=a.top-d:e>=a.top&&e<=a.top+o;if(t){this.prevNode=i;let t=h>0?h:5;this.placeholder.size(i.width,t).move(a.originLeft,a.originBottom)}else if(n){this.nextNode=i;let t=d>0?d:5;this.placeholder.size(i.width,t).move(a.originLeft,a.originTop-t)}}this.overlapNode||this.prevNode||this.nextNode||a.top+(d>0?0:o)<=e&&a.bottom-(h>0?0:o)>=e&&(this.overlapNode=i)}}),this.overlapNode&&this.mindMap.renderer.setNodeActive(this.overlapNode,!0)}getNodeRect(t){let{scaleX:e,scaleY:i,translateX:a,translateY:o}=this.drawTransform,{left:n,top:s,width:r,height:l}=t,d=n,h=s,c=s+l,p=(n+r)*e+a,m=(s+l)*i+o;return n=n*e+a,s=s*i+o,{width:r,height:l,left:n,top:s,right:p,bottom:m,originLeft:d,originTop:h,originBottom:c}}}on.instanceName="drag";var nn=on;class sn{constructor({mindMap:t}){this.mindMap=t,this.rect=null,this.isMousedown=!1,this.mouseDownX=0,this.mouseDownY=0,this.mouseMoveX=0,this.mouseMoveY=0,this.bindEvent()}bindEvent(){this.checkInNodes=ye(this.checkInNodes,300,this),this.mindMap.on("mousedown",t=>{if(this.mindMap.opt.readonly)return;let{useLeftKeySelectionRightKeyDrag:e}=this.mindMap.opt;if(!t.ctrlKey&&(e?1!==t.which:3!==t.which))return;t.preventDefault(),this.isMousedown=!0;let{x:i,y:a}=this.mindMap.toPos(t.clientX,t.clientY);this.mouseDownX=i,this.mouseDownY=a,this.createRect(i,a)}),this.mindMap.on("mousemove",t=>{if(this.mindMap.opt.readonly)return;if(!this.isMousedown)return;let{x:e,y:i}=this.mindMap.toPos(t.clientX,t.clientY);this.mouseMoveX=e,this.mouseMoveY=i,Math.abs(e-this.mouseDownX)<=10&&Math.abs(i-this.mouseDownY)<=10||(clearTimeout(this.autoMoveTimer),this.onMove(e,i))}),this.mindMap.on("mouseup",()=>{this.mindMap.opt.readonly||this.isMousedown&&(this.mindMap.emit("node_active",null,this.mindMap.renderer.activeNodeList),clearTimeout(this.autoMoveTimer),this.isMousedown=!1,this.rect&&this.rect.remove(),this.rect=null)})}onMove(t,e){this.rect.plot([[this.mouseDownX,this.mouseDownY],[this.mouseMoveX,this.mouseDownY],[this.mouseMoveX,this.mouseMoveY],[this.mouseDownX,this.mouseMoveY]]),this.checkInNodes();let i=this.mindMap.opt.selectTranslateStep,a=this.mindMap.opt.selectTranslateLimit,o=0;t<=this.mindMap.elRect.left+a&&(this.mouseDownX+=i,this.mindMap.view.translateX(i),o++),t>=this.mindMap.elRect.right-a&&(this.mouseDownX-=i,this.mindMap.view.translateX(-i),o++),e<=this.mindMap.elRect.top+a&&(this.mouseDownY+=i,this.mindMap.view.translateY(i),o++),e>=this.mindMap.elRect.bottom-a&&(this.mouseDownY-=i,this.mindMap.view.translateY(-i),o++),o>0&&this.startAutoMove(t,e)}startAutoMove(t,e){this.autoMoveTimer=setTimeout(()=>{this.onMove(t,e)},20)}createRect(t,e){this.rect=this.mindMap.svg.polygon().stroke({color:"#0984e3"}).fill({color:"rgba(9,132,227,0.3)"}).plot([[t,e]])}checkInNodes(){let{scaleX:t,scaleY:e,translateX:i,translateY:a}=this.mindMap.draw.transform(),o=Math.min(this.mouseDownX,this.mouseMoveX),n=Math.min(this.mouseDownY,this.mouseMoveY),s=Math.max(this.mouseDownX,this.mouseMoveX),r=Math.max(this.mouseDownY,this.mouseMoveY);ue(this.mindMap.renderer.root,l=>{let{left:d,top:h,width:c,height:p}=l,m=(d+c)*t+i,u=(h+p)*e+a;if(d=d*t+i,h=h*e+a,(d>=o&&d<=s||m>=o&&m<=s)&&(h>=n&&h<=r||u>=n&&u<=r)){if(l.nodeData.data.isActive)return;this.mindMap.renderer.setNodeActive(l,!0),this.mindMap.renderer.addActiveNode(l)}else if(l.nodeData.data.isActive){if(!l.nodeData.data.isActive)return;this.mindMap.renderer.setNodeActive(l,!1),this.mindMap.renderer.removeActiveNode(l)}})}}sn.instanceName="select";var rn=sn,ln=i("4f98"),dn=i.n(ln),hn=(i("5ba9"),i("c444")),cn=i.n(hn);let pn=!1,mn=["宋体, SimSun, Songti SC","微软雅黑, Microsoft YaHei","楷体, 楷体_GB2312, SimKai, STKaiti","黑体, SimHei, Heiti SC","隶书, SimLi","andale mono","arial, helvetica, sans-serif","arial black, avant garde","comic sans ms","impact, chicago","times new roman","sans-serif","serif"],un=new Array(100).fill(0).map((t,e)=>e+"px");class gn{constructor({mindMap:t,pluginOpt:e}){this.mindMap=t,this.pluginOpt=e,this.textEditNode=null,this.showTextEdit=!1,this.quill=null,this.range=null,this.lastRange=null,this.node=null,this.styleEl=null,this.cacheEditingText="",this.lostStyle=!1,this.isCompositing=!1,this.initOpt(),this.extendQuill(),this.appendCss(),this.bindEvent(),this.mindMap.opt.data&&(this.mindMap.opt.data=this.handleSetData(this.mindMap.opt.data))}bindEvent(){this.onCompositionStart=this.onCompositionStart.bind(this),this.onCompositionEnd=this.onCompositionEnd.bind(this),window.addEventListener("compositionstart",this.onCompositionStart),window.addEventListener("compositionend",this.onCompositionEnd)}unbindEvent(){window.removeEventListener("compositionstart",this.onCompositionStart),window.removeEventListener("compositionend",this.onCompositionEnd)}appendCss(){let t="\n .ql-editor {\n overflow: hidden;\n padding: 0;\n height: auto;\n line-height: normal;\n -webkit-user-select: text;\n }\n \n .ql-container {\n height: auto;\n font-size: inherit;\n }\n\n .ql-container.ql-snow {\n border: none;\n }\n\n .smm-richtext-node-wrap p {\n font-family: auto;\n }\n\n .smm-richtext-node-edit-wrap p {\n font-family: auto;\n }\n ";this.styleEl=document.createElement("style"),this.styleEl.type="text/css",this.styleEl.innerHTML=t,document.head.appendChild(this.styleEl)}initOpt(){this.pluginOpt.fontFamilyList&&Array.isArray(this.pluginOpt.fontFamilyList)&&(mn=this.pluginOpt.fontFamilyList),this.pluginOpt.fontSizeList&&Array.isArray(this.pluginOpt.fontSizeList)&&(un=this.pluginOpt.fontSizeList)}extendQuill(){if(pn)return;pn=!0;const t=dn.a.import("attributors/class/font");t.whitelist=mn,dn.a.register(t,!0);const e=dn.a.import("attributors/style/font");e.whitelist=mn,dn.a.register(e,!0);const i=dn.a.import("attributors/class/size");i.whitelist=un,dn.a.register(i,!0);const a=dn.a.import("attributors/style/size");a.whitelist=un,dn.a.register(a,!0)}showEditText(t,e){if(this.showTextEdit)return;this.node=t,e||(e=t._textData.node.node.getBoundingClientRect()),this.mindMap.emit("before_show_text_edit"),this.mindMap.renderer.textEdit.registerTmpShortcut();let i=t._textData.node,a=i.attr("data-width"),o=i.attr("data-height"),n=e.width/a,s=e.height/o;const r=6,l=4;this.textEditNode||(this.textEditNode=document.createElement("div"),this.textEditNode.classList.add("smm-richtext-node-edit-wrap"),this.textEditNode.style.cssText=`position:fixed;box-sizing: border-box;box-shadow: 0 0 20px rgba(0,0,0,.5);outline: none; word-break: break-all;padding: ${l}px ${r}px;`,this.textEditNode.addEventListener("click",t=>{t.stopPropagation()}),document.body.appendChild(this.textEditNode));let d=t.style.merge("fillColor");if(this.textEditNode.style.marginLeft=`-${r*n}px`,this.textEditNode.style.marginTop=`-${l*s}px`,this.textEditNode.style.zIndex=this.mindMap.opt.nodeTextEditZIndex,this.textEditNode.style.backgroundColor="transparent"===d?"#fff":d,this.textEditNode.style.minWidth=a+2*r+"px",this.textEditNode.style.minHeight=o+"px",this.textEditNode.style.left=e.left+"px",this.textEditNode.style.top=e.top+"px",this.textEditNode.style.display="block",this.textEditNode.style.maxWidth=this.mindMap.opt.textAutoWrapWidth+2*r+"px",this.textEditNode.style.transform=`scale(${n}, ${s})`,this.textEditNode.style.transformOrigin="left top",t.nodeData.data.richText)this.textEditNode.innerHTML=this.cacheEditingText||t.nodeData.data.text;else{let e=t.nodeData.data.text.split(/\n/gim).join(" "),i=`${e}
`;this.textEditNode.innerHTML=this.cacheEditingText||i}this.initQuillEditor(),document.querySelector(".ql-editor").style.minHeight=o+"px",this.showTextEdit=!0,this.focus(),t.nodeData.data.richText||this.setTextStyleIfNotRichText(t),this.cacheEditingText=""}setTextStyleIfNotRichText(t){let e={font:t.style.merge("fontFamily"),color:t.style.merge("color"),italic:"italic"===t.style.merge("fontStyle"),bold:"bold"===t.style.merge("fontWeight"),size:t.style.merge("fontSize")+"px",underline:"underline"===t.style.merge("textDecoration"),strike:"line-through"===t.style.merge("textDecoration")};this.formatAllText(e)}getEditText(){let t=this.quill.container.firstChild.innerHTML;return t.replace(/ <\/p>$/,"")}hideEditText(t){if(!this.showTextEdit)return;let e=this.getEditText(),i=t&&t.length>0?t:this.mindMap.renderer.activeNodeList;i.forEach(t=>{this.mindMap.execCommand("SET_NODE_TEXT",t,e,!0),t.isGeneralization&&t.generalizationBelongNode.updateGeneralization(),this.mindMap.render()}),this.mindMap.emit("hide_text_edit",this.textEditNode,i),this.textEditNode.style.display="none",this.showTextEdit=!1,this.mindMap.emit("rich_text_selection_change",!1),this.node=null}initQuillEditor(){this.quill=new dn.a(this.textEditNode,{modules:{toolbar:!1,keyboard:{bindings:{enter:{key:13,handler:function(){}}}}},theme:"snow"}),this.quill.on("selection-change",t=>{if(this.lastRange=this.range,this.range=null,t){let e=this.quill.getBounds(t.index,t.length),i=this.textEditNode.getBoundingClientRect(),a={left:e.left+i.left,top:e.top+i.top,right:e.right+i.left,bottom:e.bottom+i.top,width:e.width},o=this.quill.getFormat(t.index,t.length),n=!1;0==t.length?n=!1:(this.range=t,n=!0),this.mindMap.emit("rich_text_selection_change",n,a,o)}}),this.quill.on("text-change",()=>{let t=this.quill.getContents(),e=t.ops.length;e<=0||1===e&&"\n"===t.ops[0].insert?(this.lostStyle=!0,this.syncFormatToNodeConfig(null,!0)):this.lostStyle&&!this.isCompositing&&(this.setTextStyleIfNotRichText(this.node),this.lostStyle=!1)})}onCompositionStart(){this.showTextEdit&&(this.isCompositing=!0)}onCompositionEnd(){this.showTextEdit&&(this.isCompositing=!1,this.setTextStyleIfNotRichText(this.node))}selectAll(){this.quill.setSelection(0,this.quill.getLength())}focus(){let t=this.quill.getLength();this.quill.setSelection(t,t)}formatText(t={},e=!1){if(!this.range&&!this.lastRange)return;this.syncFormatToNodeConfig(t,e);let i=!this.range,a=i?this.lastRange:this.range;e?this.quill.removeFormat(a.index,a.length):this.quill.formatText(a.index,a.length,t),i&&this.quill.setSelection(this.lastRange.index,this.lastRange.length)}removeFormat(){this.formatText({},!0)}formatRangeText(t,e={}){t&&(this.syncFormatToNodeConfig(e),this.quill.formatText(t.index,t.length,e))}formatAllText(t={}){this.syncFormatToNodeConfig(t),this.quill.formatText(0,this.quill.getLength(),t)}syncFormatToNodeConfig(t,e){if(this.node)if(e)["fontFamily","fontSize","fontWeight","fontStyle","textDecoration","color"].forEach(t=>{delete this.node.nodeData.data[t]});else{let e=this.richTextStyleToNormalStyle(t);this.mindMap.renderer.setNodeData(this.node,e)}}normalStyleToRichTextStyle(t){let e={};return Object.keys(t).forEach(i=>{let a=t[i];switch(i){case"fontFamily":e.font=a;break;case"fontSize":e.size=a+"px";break;case"fontWeight":e.bold="bold"===a;break;case"fontStyle":e.italic="italic"===a;break;case"textDecoration":e.underline="underline"===a,e.strike="line-through"===a;break;case"color":e.color=a;break;default:break}}),e}richTextStyleToNormalStyle(t){let e={};return Object.keys(t).forEach(i=>{let a=t[i];switch(i){case"font":e.fontFamily=a;break;case"size":e.fontSize=parseFloat(a);break;case"bold":e.fontWeight=a?"bold":"normal";break;case"italic":e.fontStyle=a?"italic":"normal";break;case"underline":e.textDecoration=a?"underline":"none";break;case"strike":e.textDecoration=a?"line-through":"none";break;case"color":e.color=a;break;default:break}}),e}async handleExportPng(t){let e=document.createElement("div");e.style.position="absolute",e.style.left="-9999999px",e.appendChild(t),this.mindMap.el.appendChild(e);let i=t=>{t.style.margin=0,t.style.padding=0,t.hasChildNodes()&&Array.from(t.children).forEach(t=>{i(t)})};i(t);let a=await cn()(e,{backgroundColor:null});return this.mindMap.el.removeChild(e),a.toDataURL()}transformAllNodesToNormalNode(){me(this.mindMap.renderer.renderTree,null,t=>{t.data.richText&&(t.data.richText=!1,t.data.text=De(t.data.text))},null,!0,0,0),this.mindMap.command.clearHistory(),this.mindMap.command.addHistory(),this.mindMap.render(null,ot.TRANSFORM_TO_NORMAL_NODE)}handleSetData(t){let e=t=>{t.data.richText||(t.data.richText=!0,t.data.resetRichText=!0),t.children&&t.children.length>0&&Array.from(t.children).forEach(t=>{e(t)})};return e(t),t}beforePluginRemove(){this.transformAllNodesToNormalNode(),document.head.removeChild(this.styleEl)}}gn.instanceName="richText";var fn=gn,vn=i("0f9c");const bn=(t,e)=>t.nodeData.data.associativeLineTargets.findIndex(t=>t===e.nodeData.data.id),xn=(t,e,i,a)=>{let o=t+(i-t)/2,n=e,s=o,r=a;return Math.abs(t-i)<=5&&(o=t+(a-e)/2,s=o),[{x:o,y:n},{x:s,y:r}]},Cn=(t,e,i,a)=>`M ${t.x},${t.y} C ${i.x},${i.y} ${a.x},${a.y} ${e.x},${e.y}`,wn=t=>{let{left:e,top:i,width:a,height:o}=t;return{right:e+a,bottom:i+o,left:e,top:i}},yn=(t,e,i,a)=>{let o=xn(t,e,i,a);return Cn({x:t,y:e},{x:i,y:a},o[0],o[1])},An=(t,e="right")=>{let{left:i,top:a,width:o,height:n}=t;switch(e){case"left":return{x:i,y:a+n/2};case"right":return{x:i+o,y:a+n/2};case"top":return{x:i+o/2,y:a};case"bottom":return{x:i+o/2,y:a+n};default:break}},Mn=(t,e)=>{let i=wn(t),a=(i.right+i.left)/2,o=(i.bottom+i.top)/2,n=wn(e),s=(n.right+n.left)/2,r=(n.bottom+n.top)/2,l=s-a,d=r-o;if(0===l&&0===d)return;let h="",c="";return l<=0&&l<=d&&l<=-d?(h="left",c="right"):l>0&&l>=-d&&l>=d?(h="right",c="left"):d<=0&&d0&&-dl&&(h="bottom",c="top"),[An(t,h),An(e,c)]},Tn=(t,e,i,a)=>{let o=bn(i,a),n=[],s=i.nodeData.data.associativeLineTargetControlOffsets;if(s&&s[o]){let i=s[o];n=[{x:t.x+i[0].x,y:t.y+i[0].y},{x:e.x+i[1].x,y:e.y+i[1].y}]}else n=xn(t.x,t.y,e.x,e.y);return{path:Cn(t,e,n[0],n[1]),controlPoints:n}},Nn=(t,e)=>{let i=xn(t.x,t.y,e.x,e.y);return[{x:i[0].x-t.x,y:i[0].y-t.y},{x:i[1].x-e.x,y:i[1].y-e.y}]};function Sn(){let{associativeLineActiveColor:t}=this.mindMap.themeConfig;this.controlLine1=this.draw.line().stroke({color:t,width:2}),this.controlLine2=this.draw.line().stroke({color:t,width:2}),this.controlPoint1=this.createOneControlNode("controlPoint1"),this.controlPoint2=this.createOneControlNode("controlPoint2")}function En(t){let{associativeLineActiveColor:e}=this.mindMap.themeConfig;return this.draw.circle(this.controlPointDiameter).stroke({color:e}).fill({color:"#fff"}).click(t=>{t.stopPropagation()}).mousedown(e=>{this.onControlPointMousedown(e,t)})}function Ln(t,e){t.stopPropagation(),this.isControlPointMousedown=!0,this.mousedownControlPointKey=e}function kn(t){if(!this.isControlPointMousedown||!this.mousedownControlPointKey||!this[this.mousedownControlPointKey])return;t.stopPropagation(),t.preventDefault();let e=this.controlPointDiameter/2,{x:i,y:a}=this.getTransformedEventPos(t);this.controlPointMousemoveState.pos={x:i,y:a},this[this.mousedownControlPointKey].x(i-e).y(a-e);let[o,n,s,r,l]=this.activeLine,[d,h]=Mn(r,l);this.controlPointMousemoveState.startPoint=d,this.controlPointMousemoveState.endPoint=h;let c=bn(r,l);this.controlPointMousemoveState.targetIndex=c;let p=[],m=r.nodeData.data.associativeLineTargetControlOffsets;p=m?m[c]:Nn(d,h);let u=null,g=null;"controlPoint1"===this.mousedownControlPointKey?(u={x:i,y:a},g={x:h.x+p[1].x,y:h.y+p[1].y},this.controlLine1.plot(d.x,d.y,u.x,u.y)):(u={x:d.x+p[0].x,y:d.y+p[0].y},g={x:i,y:a},this.controlLine2.plot(h.x,h.y,g.x,g.y));let f=Cn(d,h,u,g);o.plot(f),n.plot(f),this.updateTextPos(o,s),this.updateTextEditBoxPos(s)}function zn(t){if(!this.isControlPointMousedown)return;t.stopPropagation(),t.preventDefault();let{pos:e,startPoint:i,endPoint:a,targetIndex:o}=this.controlPointMousemoveState,[,,,n]=this.activeLine,s=[],r=n.nodeData.data.associativeLineTargetControlOffsets;r?s=r:s[o]=Nn(i,a);let l=null,d=null;"controlPoint1"===this.mousedownControlPointKey?(l={x:e.x-i.x,y:e.y-i.y},d=s[o][1]):(l=s[o][0],d={x:e.x-a.x,y:e.y-a.y}),s[o]=[l,d],this.mindMap.execCommand("SET_NODE_DATA",n,{associativeLineTargetControlOffsets:s}),setTimeout(()=>{this.resetControlPoint()},0)}function Dn(){this.isControlPointMousedown=!1,this.mousedownControlPointKey="",this.controlPointMousemoveState={pos:null,startPoint:null,endPoint:null,targetIndex:""}}function Pn(t,e,i,a){this.controlLine1||this.createControlNodes();let o=this.controlPointDiameter/2;this.controlLine1.plot(t.x,t.y,i.x,i.y),this.controlLine2.plot(e.x,e.y,a.x,a.y),this.controlPoint1.x(i.x-o).y(i.y-o),this.controlPoint2.x(a.x-o).y(a.y-o)}function In(){this.controlLine1&&([this.controlLine1,this.controlLine2,this.controlPoint1,this.controlPoint2].forEach(t=>{t.remove()}),this.controlLine1=null,this.controlLine2=null,this.controlPoint1=null,this.controlPoint2=null)}function Fn(){this.controlLine1&&[this.controlLine1,this.controlLine2,this.controlPoint1,this.controlPoint2].forEach(t=>{t.hide()})}function On(){this.controlLine1&&[this.controlLine1,this.controlLine2,this.controlPoint1,this.controlPoint2].forEach(t=>{t.show()})}var Rn={createControlNodes:Sn,createOneControlNode:En,onControlPointMousedown:Ln,onControlPointMousemove:kn,onControlPointMouseup:zn,resetControlPoint:Dn,renderControls:Pn,removeControls:In,hideControls:Fn,showControls:On};function Bn(t){let e=this.draw.group();const i=()=>{this.activeLine&&this.activeLine[3]===t.node&&this.activeLine[4]===t.toNode||this.setActiveLine({...t,text:e})};return e.click(t=>{t.stopPropagation(),i()}),e.on("dblclick",t=>{t.stopPropagation(),i(),this.activeLine&&this.showEditTextBox(e)}),e}function Un(t){this.mindMap.emit("before_show_text_edit"),this.mindMap.keyCommand.addShortcut("Enter",()=>{this.hideEditTextBox()}),this.textEditNode||(this.textEditNode=document.createElement("div"),this.textEditNode.style.cssText="position:fixed;box-sizing: border-box;background-color:#fff;box-shadow: 0 0 20px rgba(0,0,0,.5);padding: 3px 5px;margin-left: -5px;margin-top: -3px;outline: none; word-break: break-all;",this.textEditNode.setAttribute("contenteditable",!0),this.textEditNode.addEventListener("keyup",t=>{t.stopPropagation()}),this.textEditNode.addEventListener("click",t=>{t.stopPropagation()}),document.body.appendChild(this.textEditNode));let{associativeLineTextFontSize:e,associativeLineTextFontFamily:i,associativeLineTextLineHeight:a}=this.mindMap.themeConfig,o=this.mindMap.view.scale,[,,,n,s]=this.activeLine,r=(this.getText(n,s)||this.mindMap.opt.defaultAssociativeLineText).split(/\n/gim);this.textEditNode.style.fontFamily=i,this.textEditNode.style.fontSize=e*o+"px",this.textEditNode.style.lineHeight=r.length>1?a:"normal",this.textEditNode.style.zIndex=this.mindMap.opt.nodeTextEditZIndex,this.textEditNode.innerHTML=r.join(" "),this.textEditNode.style.display="block",this.updateTextEditBoxPos(t),this.showTextEdit=!0}function Gn(){this.hideEditTextBox()}function Hn(t){let e=t.node.getBoundingClientRect();this.textEditNode.style.minWidth=e.width+10+"px",this.textEditNode.style.minHeight=e.height+6+"px",this.textEditNode.style.left=e.left+"px",this.textEditNode.style.top=e.top+"px"}function Wn(){if(!this.showTextEdit)return;let[t,,e,i,a]=this.activeLine,o=fe(this.textEditNode.innerHTML);this.mindMap.execCommand("SET_NODE_DATA",i,{associativeLineText:{...i.nodeData.data.associativeLineText||{},[a.nodeData.data.id]:o}}),this.textEditNode.style.display="none",this.textEditNode.innerHTML="",this.showTextEdit=!1,this.renderText(o,t,e),this.mindMap.emit("hide_text_edit")}function Yn(t,e){let i=t.nodeData.data.associativeLineText;return i&&i[e.nodeData.data.id]||""}function jn(t,e,i){if(!t)return;let{associativeLineTextFontSize:a,associativeLineTextLineHeight:o}=this.mindMap.themeConfig;i.clear();let n=t.split(/\n/gim);n.forEach((t,e)=>{let n=(new Pi["j"]).text(t);n.y(a*o*e),this.styleText(n),i.add(n)}),Xn(e,i)}function Zn(t){let{associativeLineTextColor:e,associativeLineTextFontSize:i,associativeLineTextFontFamily:a}=this.mindMap.themeConfig;t.fill({color:e}).css({"font-family":a,"font-size":i})}function Xn(t,e){let i=t.length(),a=t.pointAt(i/2),{width:o,height:n}=e.bbox();e.x(a.x-o/2),e.y(a.y-n/2)}var Vn={getText:Yn,createText:Bn,styleText:Zn,onScale:Gn,showEditTextBox:Un,hideEditTextBox:Wn,updateTextEditBoxPos:Hn,renderText:jn,updateTextPos:Xn};class Kn{constructor(t={}){this.mindMap=t.mindMap,this.draw=this.mindMap.draw,this.lineList=[],this.activeLine=null,this.isCreatingLine=!1,this.creatingStartNode=null,this.creatingLine=null,this.overlapNode=null,this.isNodeDragging=!1,this.markerPath=null,this.marker=this.createMarker(),this.controlLine1=null,this.controlLine2=null,this.controlPoint1=null,this.controlPoint2=null,this.controlPointDiameter=10,this.isControlPointMousedown=!1,this.mousedownControlPointKey="",this.controlPointMousemoveState={pos:null,startPoint:null,endPoint:null,targetIndex:""},this.checkOverlapNode=ye(this.checkOverlapNode,100,this),Object.keys(Rn).forEach(t=>{this[t]=Rn[t].bind(this)}),Object.keys(Vn).forEach(t=>{this[t]=Vn[t].bind(this)}),this.bindEvent()}bindEvent(){this.renderAllLines=this.renderAllLines.bind(this),this.mindMap.on("node_tree_render_end",this.renderAllLines),this.mindMap.on("data_change",this.renderAllLines),this.mindMap.on("draw_click",()=>{this.isControlPointMousedown||this.clearActiveLine()}),this.mindMap.on("node_click",t=>{this.isCreatingLine?this.completeCreateLine(t):this.clearActiveLine()}),this.mindMap.keyCommand.addShortcut("Del|Backspace",this.removeLine.bind(this)),this.mindMap.command.add("ADD_ASSOCIATIVE_LINE",this.addLine.bind(this)),this.mindMap.on("mousemove",this.onMousemove.bind(this)),this.mindMap.on("node_dragging",this.onNodeDragging.bind(this)),this.mindMap.on("node_dragend",this.onNodeDragend.bind(this)),this.mindMap.on("mouseup",this.onControlPointMouseup.bind(this)),this.mindMap.on("scale",this.onScale)}createMarker(){return this.draw.marker(20,20,t=>{t.ref(2,5),t.size(10,10),t.attr("orient","auto-start-reverse"),this.markerPath=t.path("M0,0 L2,5 L0,10 L10,5 Z")})}renderAllLines(){this.removeAllLines(),this.removeControls(),this.clearActiveLine();let t=this.mindMap.renderer.root;if(!t)return;let e=new Map,i=new Map;me(t,null,t=>{if(!t)return;let a=t.nodeData.data;a.associativeLineTargets&&a.associativeLineTargets.length>0&&i.set(t,a.associativeLineTargets),a.id&&e.set(a.id,t)},()=>{},!0,0),i.forEach((t,i)=>{t.forEach(t=>{let a=e.get(t);if(!i||!a)return;let[o,n]=Mn(i,a);this.drawLine(o,n,i,a)})})}drawLine(t,e,i,a){let{associativeLineWidth:o,associativeLineColor:n,associativeLineActiveWidth:s,associativeLineActiveColor:r}=this.mindMap.themeConfig;this.markerPath.stroke({color:n}).fill({color:n});let{path:l,controlPoints:d}=Tn(t,e,i,a),h=this.draw.path();h.stroke({width:o,color:n,dasharray:[6,4]}).fill({color:"none"}),h.plot(l),h.marker("end",this.marker);let c=this.draw.path();c.stroke({width:s,color:"transparent"}).fill({color:"none"}),c.plot(l);let p=this.createText({path:h,clickPath:c,node:i,toNode:a,startPoint:t,endPoint:e,controlPoints:d});c.click(o=>{o.stopPropagation(),this.setActiveLine({path:h,clickPath:c,text:p,node:i,toNode:a,startPoint:t,endPoint:e,controlPoints:d})}),this.renderText(this.getText(i,a),h,p),this.lineList.push([h,c,p,i,a])}setActiveLine({path:t,clickPath:e,text:i,node:a,toNode:o,startPoint:n,endPoint:s,controlPoints:r}){let{associativeLineActiveColor:l}=this.mindMap.themeConfig;this.mindMap.renderer.activeNodeList.length>0?this.clearActiveNodes():(this.clearActiveLine(),this.activeLine=[t,e,i,a,o],e.stroke({color:l}),this.getText(a,o)||this.renderText(this.mindMap.opt.defaultAssociativeLineText,t,i),this.renderControls(n,s,r[0],r[1]),this.mindMap.emit("associative_line_click",t,e,a,o))}removeAllLines(){this.lineList.forEach(t=>{t[0].remove(),t[1].remove(),t[2].remove()}),this.lineList=[]}createLineFromActiveNode(){if(this.mindMap.renderer.activeNodeList.length<=0)return;let t=this.mindMap.renderer.activeNodeList[0];this.createLine(t)}createLine(t){let{associativeLineWidth:e,associativeLineColor:i}=this.mindMap.themeConfig;!this.isCreatingLine&&t&&(this.isCreatingLine=!0,this.creatingStartNode=t,this.creatingLine=this.draw.path(),this.creatingLine.stroke({width:e,color:i,dasharray:[6,4]}).fill({color:"none"}),this.creatingLine.marker("end",this.marker))}onMousemove(t){this.onControlPointMousemove(t),this.updateCreatingLine(t)}updateCreatingLine(t){if(!this.isCreatingLine)return;let{x:e,y:i}=this.getTransformedEventPos(t),a=An(this.creatingStartNode),o=e>a.x?-10:10,n=yn(a.x,a.y,e+o,i);this.creatingLine.plot(n),this.checkOverlapNode(e,i)}getTransformedEventPos(t){let{x:e,y:i}=this.mindMap.toPos(t.clientX,t.clientY),{scaleX:a,scaleY:o,translateX:n,translateY:s}=this.mindMap.draw.transform();return{x:(e-n)/a,y:(i-s)/o}}checkOverlapNode(t,e){this.overlapNode=null,ue(this.mindMap.renderer.root,i=>{if(i.nodeData.data.isActive&&this.mindMap.renderer.setNodeActive(i,!1),i===this.creatingStartNode||this.overlapNode)return;let{left:a,top:o,width:n,height:s}=i,r=a+n,l=o+s;t>=a&&t<=r&&e>=o&&e<=l&&(this.overlapNode=i)}),this.overlapNode&&!this.overlapNode.nodeData.data.isActive&&this.mindMap.renderer.setNodeActive(this.overlapNode,!0)}completeCreateLine(t){this.creatingStartNode!==t&&(this.addLine(this.creatingStartNode,t),this.overlapNode&&this.overlapNode.nodeData.data.isActive&&this.mindMap.renderer.setNodeActive(this.overlapNode,!1),this.isCreatingLine=!1,this.creatingStartNode=null,this.creatingLine.remove(),this.creatingLine=null,this.overlapNode=null)}addLine(t,e){if(!t||!e)return;let i=e.nodeData.data.id;i||(i=Object(vn["a"])(),this.mindMap.execCommand("SET_NODE_DATA",e,{id:i}));let a=t.nodeData.data.associativeLineTargets||[];a.push(i);let[o,n]=Mn(t,e),s=xn(o.x,o.y,n.x,n.y),r=t.nodeData.data.associativeLineTargetControlOffsets||[];r[a.length-1]=[{x:s[0].x-o.x,y:s[0].y-o.y},{x:s[1].x-n.x,y:s[1].y-n.y}],this.mindMap.execCommand("SET_NODE_DATA",t,{associativeLineTargets:a,associativeLineTargetControlOffsets:r})}removeLine(){if(!this.activeLine)return;let[,,,t,e]=this.activeLine;this.removeControls();let{associativeLineTargets:i,associativeLineTargetControlOffsets:a,associativeLineText:o}=t.nodeData.data,n=bn(t,e),s={};o&&Object.keys(o).forEach(t=>{t!==e.nodeData.data.id&&(s[t]=o[t])}),this.mindMap.execCommand("SET_NODE_DATA",t,{associativeLineTargets:i.filter((t,e)=>e!==n),associativeLineTargetControlOffsets:a?a.filter((t,e)=>e!==n):[],associativeLineText:s})}clearActiveNodes(){this.mindMap.renderer.activeNodeList.length>0&&this.mindMap.execCommand("CLEAR_ACTIVE_NODE")}clearActiveLine(){if(this.activeLine){let[,t,e,i,a]=this.activeLine;t.stroke({color:"transparent"}),this.hideEditTextBox(),this.getText(i,a)||e.clear(),this.activeLine=null,this.removeControls()}}onNodeDragging(){this.isNodeDragging||(this.isNodeDragging=!0,this.lineList.forEach(t=>{t[0].hide(),t[1].hide(),t[2].hide()}),this.hideControls())}onNodeDragend(){this.isNodeDragging&&(this.lineList.forEach(t=>{t[0].show(),t[1].show(),t[2].show()}),this.showControls(),this.isNodeDragging=!1)}}Kn.instanceName="associativeLine";var qn=Kn,Jn=function(){var t=this,e=t._self._c;return e("Sidebar",{ref:"sidebar",attrs:{title:t.$t("outline.title")}},[e("el-tree",{staticClass:"outlineTree",attrs:{data:t.data,props:t.defaultProps,"expand-on-click-node":!1,"default-expand-all":""},scopedSlots:t._u([{key:"default",fn:function({node:i,data:a}){return e("span",{staticClass:"customNode",on:{click:function(e){return t.onClick(e,i)}}},[e("span",{key:t.getKey(),staticClass:"nodeEdit",attrs:{contenteditable:"true"},domProps:{innerHTML:t._s(i.label)},on:{keydown:function(e){return e.stopPropagation(),t.onKeydown(e,i)},keyup:function(t){t.stopPropagation()},blur:function(e){return t.onBlur(e,i)}}})])}}])})],1)},Qn=[],_n=(i("5b81"),function(){var t=this,e=t._self._c;return e("div",{staticClass:"sidebarContainer",class:{show:t.show},style:{zIndex:t.zIndex},on:{click:function(t){t.stopPropagation()}}},[e("span",{staticClass:"closeBtn el-icon-close",on:{click:t.close}}),t.title?e("div",{staticClass:"sidebarHeader"},[t._v(" "+t._s(t.title)+" ")]):t._e(),e("div",{staticClass:"sidebarContent"},[t._t("default")],2)])}),$n=[],ts={name:"Sidebar",props:{title:{type:String,default:""}},data(){return{show:!1,zIndex:0}},watch:{show(t,e){t&&!e&&(this.zIndex=St.sidebarZIndex++)}},methods:{...Object(ut["c"])(["setActiveSidebar"]),close(){this.show=!1,this.setActiveSidebar("")}}},es=ts,is=(i("674e"),Object(l["a"])(es,_n,$n,!1,null,"165d863b",null)),as=is.exports,os={name:"Outline",components:{Sidebar:as},props:{mindMap:{type:Object}},data(){return{data:[],defaultProps:{label(t){return t.data.text.replaceAll(/\n/g,"")}},notHandleDataChange:!1,isCreateNode:!1}},computed:{...Object(ut["d"])(["activeSidebar"])},watch:{activeSidebar(t){this.$refs.sidebar.show="outline"===t}},created(){this.$bus.$on("data_change",t=>{this.notHandleDataChange?this.notHandleDataChange=!1:this.data=[this.mindMap.renderer.renderTree]})},methods:{onBlur(t,e){this.isCreateNode?this.isCreateNode=!1:e.data._node.setText(t.target.innerText)},getKey(){return Math.random()},onKeydown(t){13!==t.keyCode||t.shiftKey||(t.preventDefault(),this.insertNode()),9===t.keyCode&&(t.preventDefault(),this.insertChildNode())},insertNode(){this.notHandleDataChange=!1,this.isCreateNode=!0,this.mindMap.execCommand("INSERT_NODE",!1)},insertChildNode(){this.notHandleDataChange=!1,this.isCreateNode=!0,this.mindMap.execCommand("INSERT_CHILD_NODE",!1)},onClick(t,e){this.notHandleDataChange=!0;let i=e.data._node;i.nodeData.data.isActive||(i.mindMap.renderer.moveNodeToCenter(i),i.active())}}},ns=os,ss=(i("4fee"),Object(l["a"])(ns,Jn,Qn,!1,null,"49c50148",null)),rs=ss.exports,ls=function(){var t=this,e=t._self._c;return e("Sidebar",{ref:"sidebar",attrs:{title:t.$t("style.title")}},[t.activeNodes.length>0?e("div",{staticClass:"styleBox"},[e("el-tabs",{staticClass:"tab",on:{"tab-click":t.handleTabClick},model:{value:t.activeTab,callback:function(e){t.activeTab=e},expression:"activeTab"}},[e("el-tab-pane",{attrs:{label:t.$t("style.normal"),name:"normal"}}),e("el-tab-pane",{attrs:{label:t.$t("style.active"),name:"active"}})],1),t.activeNodes.length>0?e("div",{staticClass:"sidebarContent"},[e("div",{staticClass:"title noTop"},[t._v(t._s(t.$t("style.text")))]),e("div",{staticClass:"row"},[e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("style.fontFamily")))]),e("el-select",{attrs:{size:"mini",placeholder:"",disabled:t.checkDisabled("fontFamily")},on:{change:function(e){return t.update("fontFamily")}},model:{value:t.style.fontFamily,callback:function(e){t.$set(t.style,"fontFamily",e)},expression:"style.fontFamily"}},t._l(t.fontFamilyList,(function(t){return e("el-option",{key:t.value,style:{fontFamily:t.value},attrs:{label:t.name,value:t.value}})})),1)],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("style.fontSize")))]),e("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:"",disabled:t.checkDisabled("fontSize")},on:{change:function(e){return t.update("fontSize")}},model:{value:t.style.fontSize,callback:function(e){t.$set(t.style,"fontSize",e)},expression:"style.fontSize"}},t._l(t.fontSizeList,(function(t){return e("el-option",{key:t,style:{fontSize:t+"px"},attrs:{label:t,value:t}})})),1)],1),e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("style.lineHeight")))]),e("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:"",disabled:t.checkDisabled("lineHeight")},on:{change:function(e){return t.update("lineHeight")}},model:{value:t.style.lineHeight,callback:function(e){t.$set(t.style,"lineHeight",e)},expression:"style.lineHeight"}},t._l(t.lineHeightList,(function(t){return e("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"btnGroup"},[e("el-tooltip",{attrs:{content:t.$t("style.color"),placement:"bottom"}},[e("div",{directives:[{name:"popover",rawName:"v-popover:popover",arg:"popover"}],staticClass:"styleBtn",class:{disabled:t.checkDisabled("color")}},[t._v(" A "),e("span",{staticClass:"colorShow",style:{backgroundColor:t.style.color||"#eee"}})])]),e("el-tooltip",{attrs:{content:t.$t("style.addFontWeight"),placement:"bottom"}},[e("div",{staticClass:"styleBtn",class:{actived:"bold"===t.style.fontWeight,disabled:t.checkDisabled("fontWeight")},on:{click:t.toggleFontWeight}},[t._v(" B ")])]),e("el-tooltip",{attrs:{content:t.$t("style.italic"),placement:"bottom"}},[e("div",{staticClass:"styleBtn i",class:{actived:"italic"===t.style.fontStyle,disabled:t.checkDisabled("fontStyle")},on:{click:t.toggleFontStyle}},[t._v(" I ")])]),e("el-tooltip",{attrs:{content:t.$t("style.textDecoration"),placement:"bottom"}},[e("div",{directives:[{name:"popover",rawName:"v-popover:popover2",arg:"popover2"}],staticClass:"styleBtn u",class:{disabled:t.checkDisabled("textDecoration")},style:{textDecoration:t.style.textDecoration||"none"}},[t._v(" U ")])])],1),e("el-popover",{ref:"popover",attrs:{placement:"bottom",trigger:"hover",disabled:t.checkDisabled("color")}},[e("Color",{attrs:{color:t.style.color},on:{change:t.changeFontColor}})],1),e("el-popover",{ref:"popover2",attrs:{placement:"bottom",trigger:"hover",disabled:t.checkDisabled("textDecoration")}},[e("el-radio-group",{attrs:{size:"mini"},on:{change:function(e){return t.update("textDecoration")}},model:{value:t.style.textDecoration,callback:function(e){t.$set(t.style,"textDecoration",e)},expression:"style.textDecoration"}},[e("el-radio-button",{attrs:{label:"underline"}},[t._v(t._s(t.$t("style.underline")))]),e("el-radio-button",{attrs:{label:"line-through"}},[t._v(t._s(t.$t("style.lineThrough")))]),e("el-radio-button",{attrs:{label:"overline"}},[t._v(t._s(t.$t("style.overline")))])],1)],1)],1),e("div",{staticClass:"title"},[t._v(t._s(t.$t("style.border")))]),e("div",{staticClass:"row"},[e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("style.color")))]),e("span",{directives:[{name:"popover",rawName:"v-popover:popover3",arg:"popover3"}],staticClass:"block",class:{disabled:t.checkDisabled("borderColor")},style:{width:"80px",backgroundColor:t.style.borderColor}}),e("el-popover",{ref:"popover3",attrs:{placement:"bottom",trigger:"hover",disabled:t.checkDisabled("borderColor")}},[e("Color",{attrs:{color:t.style.borderColor},on:{change:t.changeBorderColor}})],1)],1),e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("style.style")))]),e("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:"",disabled:t.checkDisabled("borderDasharray")},on:{change:function(e){return t.update("borderDasharray")}},model:{value:t.style.borderDasharray,callback:function(e){t.$set(t.style,"borderDasharray",e)},expression:"style.borderDasharray"}},t._l(t.borderDasharrayList,(function(t){return e("el-option",{key:t.value,attrs:{label:t.name,value:t.value}})})),1)],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("style.width")))]),e("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:"",disabled:t.checkDisabled("borderWidth")},on:{change:function(e){return t.update("borderWidth")}},model:{value:t.style.borderWidth,callback:function(e){t.$set(t.style,"borderWidth",e)},expression:"style.borderWidth"}},t._l(t.borderWidthList,(function(t){return e("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1),e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("style.borderRadius")))]),e("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:"",disabled:t.checkDisabled("borderRadius")},on:{change:function(e){return t.update("borderRadius")}},model:{value:t.style.borderRadius,callback:function(e){t.$set(t.style,"borderRadius",e)},expression:"style.borderRadius"}},t._l(t.borderRadiusList,(function(t){return e("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1)]),e("div",{staticClass:"title"},[t._v(t._s(t.$t("style.background")))]),e("div",{staticClass:"row"},[e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("style.color")))]),e("span",{directives:[{name:"popover",rawName:"v-popover:popover4",arg:"popover4"}],staticClass:"block",class:{disabled:t.checkDisabled("fillColor")},style:{backgroundColor:t.style.fillColor}}),e("el-popover",{ref:"popover4",attrs:{placement:"bottom",trigger:"hover",disabled:t.checkDisabled("fillColor")}},[e("Color",{attrs:{color:t.style.fillColor},on:{change:t.changeFillColor}})],1)],1)]),e("div",{staticClass:"title"},[t._v(t._s(t.$t("style.shape")))]),e("div",{staticClass:"row"},[e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("style.shape")))]),e("el-select",{staticStyle:{width:"120px"},attrs:{size:"mini",placeholder:"",disabled:t.checkDisabled("shape")},on:{change:function(e){return t.update("shape")}},model:{value:t.style.shape,callback:function(e){t.$set(t.style,"shape",e)},expression:"style.shape"}},t._l(t.shapeList,(function(t){return e("el-option",{key:t.value,attrs:{label:t.name,value:t.value}})})),1)],1)]),e("div",{staticClass:"title"},[t._v(t._s(t.$t("style.line")))]),e("div",{staticClass:"row"},[e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("style.color")))]),e("span",{directives:[{name:"popover",rawName:"v-popover:popover5",arg:"popover5"}],staticClass:"block",class:{disabled:t.checkDisabled("lineColor")},style:{width:"80px",backgroundColor:t.style.lineColor}}),e("el-popover",{ref:"popover5",attrs:{placement:"bottom",trigger:"hover",disabled:t.checkDisabled("lineColor")}},[e("Color",{attrs:{color:t.style.lineColor},on:{change:t.changeLineColor}})],1)],1),e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("style.style")))]),e("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:"",disabled:t.checkDisabled("lineDasharray")},on:{change:function(e){return t.update("lineDasharray")}},model:{value:t.style.lineDasharray,callback:function(e){t.$set(t.style,"lineDasharray",e)},expression:"style.lineDasharray"}},t._l(t.borderDasharrayList,(function(t){return e("el-option",{key:t.value,attrs:{label:t.name,value:t.value}})})),1)],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("style.width")))]),e("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:"",disabled:t.checkDisabled("lineWidth")},on:{change:function(e){return t.update("lineWidth")}},model:{value:t.style.lineWidth,callback:function(e){t.$set(t.style,"lineWidth",e)},expression:"style.lineWidth"}},t._l(t.borderWidthList,(function(t){return e("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1)]),e("div",{staticClass:"title noTop"},[t._v(t._s(t.$t("style.nodePadding")))]),e("div",{staticClass:"row"},[e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("style.horizontal")))]),e("el-slider",{staticStyle:{width:"200px"},attrs:{disabled:t.checkDisabled("paddingX")},on:{change:function(e){return t.update("paddingX")}},model:{value:t.style.paddingX,callback:function(e){t.$set(t.style,"paddingX",e)},expression:"style.paddingX"}})],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("style.vertical")))]),e("el-slider",{staticStyle:{width:"200px"},attrs:{disabled:t.checkDisabled("paddingY")},on:{change:function(e){return t.update("paddingY")}},model:{value:t.style.paddingY,callback:function(e){t.$set(t.style,"paddingY",e)},expression:"style.paddingY"}})],1)])]):t._e()],1):e("div",{staticClass:"tipBox"},[e("div",{staticClass:"tipIcon iconfont icontianjiazijiedian"}),e("div",{staticClass:"tipText"},[t._v("请选择一个节点")])])])},ds=[],hs=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"colorList"},t._l(t.colorList,(function(i){return e("span",{key:i,staticClass:"colorItem",style:{backgroundColor:i},on:{click:function(e){return t.clickColorItem(i)}}})})),0),e("div",{staticClass:"moreColor"},[e("span",[t._v(t._s(t.$t("color.moreColor")))]),e("el-color-picker",{attrs:{size:"mini"},on:{change:t.changeColor},model:{value:t.selectColor,callback:function(e){t.selectColor=e},expression:"selectColor"}})],1)])},cs=[],ps={name:"Color",props:{color:{type:String,default:""}},data(){return{colorList:bt,selectColor:""}},watch:{color(){this.selectColor=this.color}},created(){this.selectColor=this.color},methods:{clickColorItem(t){this.$emit("change",t)},changeColor(){this.$emit("change",this.selectColor)}}},ms=ps,us=(i("02e3"),Object(l["a"])(ms,hs,cs,!1,null,"3f3112fa",null)),gs=us.exports,fs={name:"Style",components:{Sidebar:as,Color:gs},data(){return{supportActiveStyle:Ga,fontSizeList:ft,borderWidthList:xt,borderRadiusList:wt,lineHeightList:vt,activeNodes:[],activeTab:"normal",style:{shape:"",paddingX:0,paddingY:0,color:"",fontFamily:"",fontSize:"",lineHeight:"",textDecoration:"",fontWeight:"",fontStyle:"",borderWidth:"",borderColor:"",fillColor:"",borderDasharray:"",borderRadius:"",lineColor:"",lineDasharray:"",lineWidth:""}}},computed:{...Object(ut["d"])(["activeSidebar"]),fontFamilyList(){return Yt[this.$i18n.locale]||Yt.zh},borderDasharrayList(){return jt[this.$i18n.locale]||jt.zh},shapeList(){return Jt[this.$i18n.locale]||Jt.zh}},watch:{activeSidebar(t){this.$refs.sidebar.show="nodeStyle"===t}},created(){this.$bus.$on("node_active",this.onNodeActive)},beforeDestroy(){this.$bus.$off("node_active",this.onNodeActive)},methods:{onNodeActive(...t){this.$nextTick(()=>{this.activeTab="normal",this.activeNodes=t[1],this.initNodeStyle()})},handleTabClick(){this.initNodeStyle()},checkDisabled(t){return"active"===this.activeTab&&!this.supportActiveStyle.includes(t)},initNodeStyle(){this.activeNodes.length<=0?this.activeTab="normal":["shape","paddingX","paddingY","color","fontFamily","fontSize","lineHeight","textDecoration","fontWeight","fontStyle","borderWidth","borderColor","fillColor","borderDasharray","borderRadius","lineColor","lineDasharray","lineWidth"].forEach(t=>{this.style[t]=this.activeNodes[0].getStyle(t,!1,"active"===this.activeTab)})},update(t){this.activeNodes.forEach(e=>{e.setStyle(t,this.style[t],"active"===this.activeTab)})},toggleFontWeight(){"bold"===this.style.fontWeight?this.style.fontWeight="normal":this.style.fontWeight="bold",this.update("fontWeight")},toggleFontStyle(){"italic"===this.style.fontStyle?this.style.fontStyle="normal":this.style.fontStyle="italic",this.update("fontStyle")},changeFontColor(t){this.style.color=t,this.update("color")},changeBorderColor(t){this.style.borderColor=t,this.update("borderColor")},changeLineColor(t){this.style.lineColor=t,this.update("lineColor")},changeFillColor(t){this.style.fillColor=t,this.update("fillColor")}}},vs=fs,bs=(i("6950"),Object(l["a"])(vs,ls,ds,!1,null,"7eecacc2",null)),xs=bs.exports,Cs=function(){var t=this,e=t._self._c;return e("Sidebar",{ref:"sidebar",attrs:{title:t.$t("baseStyle.title")}},[t.data?e("div",{staticClass:"sidebarContent"},[e("div",{staticClass:"title noTop"},[t._v(t._s(t.$t("baseStyle.background")))]),e("div",{staticClass:"row"},[e("el-tabs",{staticClass:"tab",model:{value:t.activeTab,callback:function(e){t.activeTab=e},expression:"activeTab"}},[e("el-tab-pane",{attrs:{label:t.$t("baseStyle.color"),name:"color"}},[e("Color",{attrs:{color:t.style.backgroundColor},on:{change:e=>{t.update("backgroundColor",e)}}})],1),e("el-tab-pane",{attrs:{label:t.$t("baseStyle.image"),name:"image"}},[e("ImgUpload",{staticClass:"imgUpload",on:{change:e=>{t.update("backgroundImage",e)}},model:{value:t.style.backgroundImage,callback:function(e){t.$set(t.style,"backgroundImage",e)},expression:"style.backgroundImage"}}),e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("baseStyle.imageRepeat")))]),e("el-select",{staticStyle:{width:"120px"},attrs:{size:"mini",placeholder:""},on:{change:e=>{t.update("backgroundRepeat",e)}},model:{value:t.style.backgroundRepeat,callback:function(e){t.$set(t.style,"backgroundRepeat",e)},expression:"style.backgroundRepeat"}},t._l(t.backgroundRepeatList,(function(t){return e("el-option",{key:t.value,attrs:{label:t.name,value:t.value}})})),1)],1),e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("baseStyle.imagePosition")))]),e("el-select",{staticStyle:{width:"120px"},attrs:{size:"mini",placeholder:""},on:{change:e=>{t.update("backgroundPosition",e)}},model:{value:t.style.backgroundPosition,callback:function(e){t.$set(t.style,"backgroundPosition",e)},expression:"style.backgroundPosition"}},t._l(t.backgroundPositionList,(function(t){return e("el-option",{key:t.value,attrs:{label:t.name,value:t.value}})})),1)],1),e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("baseStyle.imageSize")))]),e("el-select",{staticStyle:{width:"120px"},attrs:{size:"mini",placeholder:""},on:{change:e=>{t.update("backgroundSize",e)}},model:{value:t.style.backgroundSize,callback:function(e){t.$set(t.style,"backgroundSize",e)},expression:"style.backgroundSize"}},t._l(t.backgroundSizeList,(function(t){return e("el-option",{key:t.value,attrs:{label:t.name,value:t.value}})})),1)],1)],1)],1)],1),e("div",{staticClass:"title noTop"},[t._v(t._s(t.$t("baseStyle.line")))]),e("div",{staticClass:"row"},[e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("baseStyle.color")))]),e("span",{directives:[{name:"popover",rawName:"v-popover:popover",arg:"popover"}],staticClass:"block",style:{backgroundColor:t.style.lineColor}}),e("el-popover",{ref:"popover",attrs:{placement:"bottom",trigger:"click"}},[e("Color",{attrs:{color:t.style.lineColor},on:{change:e=>{t.update("lineColor",e)}}})],1)],1),e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("baseStyle.width")))]),e("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:""},on:{change:e=>{t.update("lineWidth",e)}},model:{value:t.style.lineWidth,callback:function(e){t.$set(t.style,"lineWidth",e)},expression:"style.lineWidth"}},t._l(t.lineWidthList,(function(t){return e("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("baseStyle.style")))]),e("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:""},on:{change:e=>{t.update("lineStyle",e)}},model:{value:t.style.lineStyle,callback:function(e){t.$set(t.style,"lineStyle",e)},expression:"style.lineStyle"}},t._l(t.lineStyleList,(function(t){return e("el-option",{key:t.value,attrs:{label:t.name,value:t.value}})})),1)],1)]),e("div",{staticClass:"title noTop"},[t._v(t._s(t.$t("baseStyle.lineOfOutline")))]),e("div",{staticClass:"row"},[e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("baseStyle.color")))]),e("span",{directives:[{name:"popover",rawName:"v-popover:popover2",arg:"popover2"}],staticClass:"block",style:{backgroundColor:t.style.generalizationLineColor}}),e("el-popover",{ref:"popover2",attrs:{placement:"bottom",trigger:"click"}},[e("Color",{attrs:{color:t.style.generalizationLineColor},on:{change:e=>{t.update("generalizationLineColor",e)}}})],1)],1),e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("baseStyle.width")))]),e("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:""},on:{change:e=>{t.update("generalizationLineWidth",e)}},model:{value:t.style.generalizationLineWidth,callback:function(e){t.$set(t.style,"generalizationLineWidth",e)},expression:"style.generalizationLineWidth"}},t._l(t.lineWidthList,(function(t){return e("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1)]),e("div",{staticClass:"title noTop"},[t._v(t._s(t.$t("baseStyle.associativeLine")))]),e("div",{staticClass:"row"},[e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("baseStyle.associativeLineColor")))]),e("span",{directives:[{name:"popover",rawName:"v-popover:popover4",arg:"popover4"}],staticClass:"block",style:{backgroundColor:t.style.associativeLineColor}}),e("el-popover",{ref:"popover4",attrs:{placement:"bottom",trigger:"click"}},[e("Color",{attrs:{color:t.style.associativeLineColor},on:{change:e=>{t.update("associativeLineColor",e)}}})],1)],1),e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("baseStyle.associativeLineWidth")))]),e("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:""},on:{change:e=>{t.update("associativeLineWidth",e)}},model:{value:t.style.associativeLineWidth,callback:function(e){t.$set(t.style,"associativeLineWidth",e)},expression:"style.associativeLineWidth"}},t._l(t.lineWidthList,(function(t){return e("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("baseStyle.associativeLineActiveColor")))]),e("span",{directives:[{name:"popover",rawName:"v-popover:popover5",arg:"popover5"}],staticClass:"block",style:{backgroundColor:t.style.associativeLineActiveColor}}),e("el-popover",{ref:"popover5",attrs:{placement:"bottom",trigger:"click"}},[e("Color",{attrs:{color:t.style.associativeLineActiveColor},on:{change:e=>{t.update("associativeLineActiveColor",e)}}})],1)],1),e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("baseStyle.associativeLineActiveWidth")))]),e("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:""},on:{change:e=>{t.update("associativeLineActiveWidth",e)}},model:{value:t.style.associativeLineActiveWidth,callback:function(e){t.$set(t.style,"associativeLineActiveWidth",e)},expression:"style.associativeLineActiveWidth"}},t._l(t.lineWidthList,(function(t){return e("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1)]),e("div",{staticClass:"title noTop"},[t._v("关联线文字")]),e("div",{staticClass:"row"},[e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v("字体")]),e("el-select",{attrs:{size:"mini",placeholder:""},on:{change:function(e){return t.update("associativeLineTextFontFamily",e)}},model:{value:t.style.associativeLineTextFontFamily,callback:function(e){t.$set(t.style,"associativeLineTextFontFamily",e)},expression:"style.associativeLineTextFontFamily"}},t._l(t.fontFamilyList,(function(t){return e("el-option",{key:t.value,style:{fontFamily:t.value},attrs:{label:t.name,value:t.value}})})),1)],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v("颜色")]),e("span",{directives:[{name:"popover",rawName:"v-popover:popover6",arg:"popover6"}],staticClass:"block",style:{backgroundColor:t.style.associativeLineTextColor}}),e("el-popover",{ref:"popover6",attrs:{placement:"bottom",trigger:"click"}},[e("Color",{attrs:{color:t.style.associativeLineTextColor},on:{change:e=>{t.update("associativeLineTextColor",e)}}})],1)],1),e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v("字号")]),e("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:""},on:{change:function(e){return t.update("associativeLineTextFontSize",e)}},model:{value:t.style.associativeLineTextFontSize,callback:function(e){t.$set(t.style,"associativeLineTextFontSize",e)},expression:"style.associativeLineTextFontSize"}},t._l(t.fontSizeList,(function(t){return e("el-option",{key:t,style:{fontSize:t+"px"},attrs:{label:t,value:t}})})),1)],1)]),e("div",{staticClass:"title noTop"},[t._v(t._s(t.$t("baseStyle.nodeBorderType")))]),e("div",{staticClass:"row"},[e("div",{staticClass:"rowItem"},[e("el-checkbox",{on:{change:e=>{t.update("nodeUseLineStyle",e)}},model:{value:t.style.nodeUseLineStyle,callback:function(e){t.$set(t.style,"nodeUseLineStyle",e)},expression:"style.nodeUseLineStyle"}},[t._v(t._s(t.$t("baseStyle.nodeUseLineStyle")))])],1)]),e("div",{staticClass:"title noTop"},[t._v(t._s(t.$t("baseStyle.nodePadding")))]),e("div",{staticClass:"row"},[e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("baseStyle.horizontal")))]),e("el-slider",{staticStyle:{width:"200px"},on:{change:e=>{t.update("paddingX",e)}},model:{value:t.style.paddingX,callback:function(e){t.$set(t.style,"paddingX",e)},expression:"style.paddingX"}})],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("baseStyle.vertical")))]),e("el-slider",{staticStyle:{width:"200px"},on:{change:e=>{t.update("paddingY",e)}},model:{value:t.style.paddingY,callback:function(e){t.$set(t.style,"paddingY",e)},expression:"style.paddingY"}})],1)]),e("div",{staticClass:"title noTop"},[t._v(t._s(t.$t("baseStyle.image")))]),e("div",{staticClass:"row"},[e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("baseStyle.maximumWidth")))]),e("el-slider",{staticStyle:{width:"140px"},attrs:{min:10,max:300},on:{change:e=>{t.update("imgMaxWidth",e)}},model:{value:t.style.imgMaxWidth,callback:function(e){t.$set(t.style,"imgMaxWidth",e)},expression:"style.imgMaxWidth"}})],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("baseStyle.maximumHeight")))]),e("el-slider",{staticStyle:{width:"140px"},attrs:{min:10,max:300},on:{change:e=>{t.update("imgMaxHeight",e)}},model:{value:t.style.imgMaxHeight,callback:function(e){t.$set(t.style,"imgMaxHeight",e)},expression:"style.imgMaxHeight"}})],1)]),e("div",{staticClass:"title noTop"},[t._v(t._s(t.$t("baseStyle.icon")))]),e("div",{staticClass:"row"},[e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("baseStyle.size")))]),e("el-slider",{staticStyle:{width:"200px"},attrs:{min:12,max:50},on:{change:e=>{t.update("iconSize",e)}},model:{value:t.style.iconSize,callback:function(e){t.$set(t.style,"iconSize",e)},expression:"style.iconSize"}})],1)]),e("div",{staticClass:"title noTop"},[t._v(t._s(t.$t("baseStyle.nodeMargin")))]),e("div",{staticClass:"row column"},[e("el-tabs",{staticClass:"tab",on:{"tab-click":t.initMarginStyle},model:{value:t.marginActiveTab,callback:function(e){t.marginActiveTab=e},expression:"marginActiveTab"}},[e("el-tab-pane",{attrs:{label:t.$t("baseStyle.level2Node"),name:"second"}}),e("el-tab-pane",{attrs:{label:t.$t("baseStyle.belowLevel2Node"),name:"node"}})],1),e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("baseStyle.horizontal")))]),e("el-slider",{staticStyle:{width:"200px"},attrs:{max:200},on:{change:e=>{t.updateMargin("marginX",e)}},model:{value:t.style.marginX,callback:function(e){t.$set(t.style,"marginX",e)},expression:"style.marginX"}})],1),e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("baseStyle.vertical")))]),e("el-slider",{staticStyle:{width:"200px"},attrs:{max:200},on:{change:e=>{t.updateMargin("marginY",e)}},model:{value:t.style.marginY,callback:function(e){t.$set(t.style,"marginY",e)},expression:"style.marginY"}})],1)],1),e("div",{staticClass:"title noTop"},[t._v(t._s(t.$t("baseStyle.watermark")))]),e("div",{staticClass:"row"},[e("div",{staticClass:"rowItem"},[e("el-checkbox",{on:{change:t.watermarkShowChange},model:{value:t.watermarkConfig.show,callback:function(e){t.$set(t.watermarkConfig,"show",e)},expression:"watermarkConfig.show"}},[t._v(t._s(t.$t("baseStyle.showWatermark")))])],1)]),t.watermarkConfig.show?[e("div",{staticClass:"row"},[e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("baseStyle.watermarkText")))]),e("el-input",{attrs:{size:"small"},on:{change:t.updateWatermarkConfig},model:{value:t.watermarkConfig.text,callback:function(e){t.$set(t.watermarkConfig,"text",e)},expression:"watermarkConfig.text"}})],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("baseStyle.watermarkTextColor")))]),e("span",{directives:[{name:"popover",rawName:"v-popover:popover3",arg:"popover3"}],staticClass:"block",style:{backgroundColor:t.watermarkConfig.textStyle.color}}),e("el-popover",{ref:"popover3",attrs:{placement:"bottom",trigger:"click"}},[e("Color",{attrs:{color:t.watermarkConfig.textStyle.color},on:{change:e=>{t.watermarkConfig.textStyle.color=e,t.updateWatermarkConfig()}}})],1)],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("baseStyle.watermarkTextOpacity")))]),e("el-slider",{staticStyle:{width:"170px"},attrs:{min:0,max:1,step:.1},on:{change:t.updateWatermarkConfig},model:{value:t.watermarkConfig.textStyle.opacity,callback:function(e){t.$set(t.watermarkConfig.textStyle,"opacity",e)},expression:"watermarkConfig.textStyle.opacity"}})],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("baseStyle.watermarkTextFontSize")))]),e("el-input-number",{attrs:{size:"small",min:0,max:50,step:1},on:{change:t.updateWatermarkConfig},model:{value:t.watermarkConfig.textStyle.fontSize,callback:function(e){t.$set(t.watermarkConfig.textStyle,"fontSize",e)},expression:"watermarkConfig.textStyle.fontSize"}})],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("baseStyle.watermarkAngle")))]),e("el-input-number",{attrs:{size:"small",min:0,max:90,step:10},on:{change:t.updateWatermarkConfig},model:{value:t.watermarkConfig.angle,callback:function(e){t.$set(t.watermarkConfig,"angle",e)},expression:"watermarkConfig.angle"}})],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("baseStyle.watermarkLineSpacing")))]),e("el-input-number",{attrs:{size:"small",step:10},on:{change:t.updateWatermarkConfig},model:{value:t.watermarkConfig.lineSpacing,callback:function(e){t.$set(t.watermarkConfig,"lineSpacing",e)},expression:"watermarkConfig.lineSpacing"}})],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("baseStyle.watermarkTextSpacing")))]),e("el-input-number",{attrs:{size:"small",step:10},on:{change:t.updateWatermarkConfig},model:{value:t.watermarkConfig.textSpacing,callback:function(e){t.$set(t.watermarkConfig,"textSpacing",e)},expression:"watermarkConfig.textSpacing"}})],1)])]:t._e(),e("div",{staticClass:"title noTop"},[t._v(t._s(t.$t("baseStyle.otherConfig")))]),e("div",{staticClass:"row"},[e("div",{staticClass:"rowItem"},[e("el-checkbox",{on:{change:e=>{t.updateOtherConfig("enableFreeDrag",e)}},model:{value:t.config.enableFreeDrag,callback:function(e){t.$set(t.config,"enableFreeDrag",e)},expression:"config.enableFreeDrag"}},[t._v(t._s(t.$t("baseStyle.enableFreeDrag")))])],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"rowItem"},[e("el-checkbox",{on:{change:t.enableNodeRichTextChange},model:{value:t.enableNodeRichText,callback:function(e){t.enableNodeRichText=e},expression:"enableNodeRichText"}},[t._v(t._s(t.$t("baseStyle.isEnableNodeRichText")))])],1)]),e("div",{staticClass:"row"},[e("div",{staticClass:"rowItem"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("baseStyle.mousewheelAction")))]),e("el-select",{staticStyle:{width:"120px"},attrs:{size:"mini",placeholder:""},on:{change:e=>{t.updateOtherConfig("mousewheelAction",e)}},model:{value:t.config.mousewheelAction,callback:function(e){t.$set(t.config,"mousewheelAction",e)},expression:"config.mousewheelAction"}},[e("el-option",{attrs:{label:t.$t("baseStyle.zoomView"),value:"zoom"}}),e("el-option",{attrs:{label:t.$t("baseStyle.moveViewUpDown"),value:"move"}})],1)],1)])],2):t._e()])},ws=[],ys={name:"BaseStyle",components:{Sidebar:as,Color:gs,ImgUpload:A},props:{data:{type:[Object,null],default:null},mindMap:{type:Object}},data(){return{lineWidthList:yt,fontSizeList:ft,activeTab:"color",marginActiveTab:"second",style:{backgroundColor:"",lineColor:"",lineWidth:"",lineStyle:"",generalizationLineWidth:"",generalizationLineColor:"",associativeLineColor:"",associativeLineWidth:0,associativeLineActiveWidth:0,associativeLineActiveColor:"",associativeLineTextFontSize:0,associativeLineTextColor:"",associativeLineTextFontFamily:"",paddingX:0,paddingY:0,imgMaxWidth:0,imgMaxHeight:0,iconSize:0,backgroundImage:"",backgroundRepeat:"no-repeat",backgroundPosition:"",backgroundSize:"",marginX:0,marginY:0,nodeUseLineStyle:!1},config:{enableFreeDrag:!1,mousewheelAction:"zoom"},watermarkConfig:{show:!1,text:"",lineSpacing:100,textSpacing:100,angle:30,textStyle:{color:"",opacity:0,fontSize:1}},updateWatermarkTimer:null,enableNodeRichText:!0}},computed:{...Object(ut["d"])(["activeSidebar","localConfig"]),lineStyleList(){return Zt[this.$i18n.locale]||Zt.zh},backgroundRepeatList(){return Xt[this.$i18n.locale]||Xt.zh},backgroundPositionList(){return Vt[this.$i18n.locale]||Vt.zh},backgroundSizeList(){return Kt[this.$i18n.locale]||Kt.zh},fontFamilyList(){return Yt[this.$i18n.locale]||Yt.zh}},watch:{activeSidebar(t){"baseStyle"===t?(this.$refs.sidebar.show=!0,this.initStyle(),this.initConfig(),this.initWatermark()):this.$refs.sidebar.show=!1}},created(){this.enableNodeRichText=this.localConfig.openNodeRichText,this.mousewheelAction=this.localConfig.mousewheelAction},methods:{...Object(ut["c"])(["setLocalConfig"]),initStyle(){["backgroundColor","lineWidth","lineStyle","lineColor","generalizationLineWidth","generalizationLineColor","associativeLineColor","associativeLineWidth","associativeLineActiveWidth","associativeLineActiveColor","associativeLineTextFontSize","associativeLineTextColor","associativeLineTextFontFamily","paddingX","paddingY","imgMaxWidth","imgMaxHeight","iconSize","backgroundImage","backgroundRepeat","backgroundPosition","backgroundSize","nodeUseLineStyle"].forEach(t=>{this.style[t]=this.mindMap.getThemeConfig(t),"backgroundImage"===t&&"none"===this.style[t]&&(this.style[t]="")}),this.initMarginStyle()},initConfig(){["enableFreeDrag","mousewheelAction"].forEach(t=>{this.config[t]=this.mindMap.getConfig(t)})},initWatermark(){let t=this.mindMap.getConfig("watermarkConfig");["text","lineSpacing","textSpacing","angle"].forEach(e=>{this.watermarkConfig[e]=t[e]}),this.watermarkConfig.show=!!t.text,this.watermarkConfig.textStyle={...t.textStyle}},initMarginStyle(){["marginX","marginY"].forEach(t=>{this.style[t]=this.mindMap.getThemeConfig()[this.marginActiveTab][t]})},update(t,e){this.style[t]="backgroundImage"===t&&"none"===e?"":e,this.data.theme.config[t]=e,this.mindMap.setThemeConfig(this.data.theme.config),di({theme:{template:this.mindMap.getTheme(),config:this.data.theme.config}})},updateOtherConfig(t,e){this.mindMap.updateConfig({[t]:e}),this.data.config=this.data.config||{},this.data.config[t]=e,di({config:this.data.config})},updateWatermarkConfig(){clearTimeout(this.updateWatermarkTimer),this.updateWatermarkTimer=setTimeout(()=>{let{show:t,...e}=this.watermarkConfig;this.mindMap.watermark.updateWatermark({...e}),this.data.config=this.data.config||{},this.data.config.watermarkConfig=this.mindMap.getConfig("watermarkConfig"),di({config:this.data.config})},300)},updateMargin(t,e){this.style[t]=e,this.data.theme.config[this.marginActiveTab]||(this.data.theme.config[this.marginActiveTab]={}),this.data.theme.config[this.marginActiveTab][t]=e,this.mindMap.setThemeConfig(this.data.theme.config)},watermarkShowChange(t){if(t){let t=this.watermarkConfig.text||this.$t("baseStyle.watermarkDefaultText");this.watermarkConfig.text=t}else this.watermarkConfig.text="";this.updateWatermarkConfig()},enableNodeRichTextChange(t){this.setLocalConfig({openNodeRichText:t})},mousewheelActionChange(t){this.setLocalConfig({mousewheelAction:t}),this.mindMap.updateConfig}}},As=ys,Ms=(i("9750"),Object(l["a"])(As,Cs,ws,!1,null,"111de5c8",null)),Ts=Ms.exports,Ns=function(){var t=this,e=t._self._c;return e("Sidebar",{ref:"sidebar",attrs:{title:t.$t("theme.title")}},[e("div",{staticClass:"themeList"},t._l(t.themeList,(function(i){return e("div",{key:i.value,staticClass:"themeItem",class:{active:i.value===t.theme},on:{click:function(e){return t.useTheme(i)}}},[e("div",{staticClass:"imgBox"},[e("img",{attrs:{src:t.themeMap[i.value],alt:""}})]),e("div",{staticClass:"name"},[t._v(t._s(i.name))])])})),0)])},Ss=[];const Es={logicalStructure:i("11fc"),mindMap:i("3586"),organizationStructure:i("358b"),catalogOrganization:i("6ec6"),timeline:i("92d5"),timeline2:i("e24b"),fishbone:i("4e0e")},Ls={default:i("dc3a"),classic:i("b383"),minions:i("406b"),pinkGrape:i("7695"),mint:i("622c"),gold:i("95cb"),vitalityOrange:i("d703"),greenLeaf:i("9d9d"),dark2:i("faad"),skyGreen:i("8fec"),classic2:i("069b"),classic3:i("120b"),classic4:i("3957"),classicGreen:i("fd00"),classicBlue:i("dc61"),blueSky:i("3a7d"),brainImpairedPink:i("c25f"),dark:i("0bbf"),earthYellow:i("e054"),freshGreen:i("eb54"),freshRed:i("cf82"),romanticPurple:i("1b96"),simpleBlack:i("60ba"),courseGreen:i("4796"),coffee:i("7077"),redSpirit:i("5078"),blackHumour:i("5b76"),lateNightOffice:i("afb9"),blackGold:i("4d97"),autumn:i("2da0"),avocado:i("9fba"),orangeJuice:i("97f6")};var ks={name:"Theme",components:{Sidebar:as},props:{mindMap:{type:Object}},data(){return{themeList:[...at].reverse(),themeMap:Ls,theme:""}},computed:{...Object(ut["d"])(["activeSidebar"])},watch:{activeSidebar(t){"theme"===t?(this.theme=this.mindMap.getTheme(),this.$refs.sidebar.show=!0):this.$refs.sidebar.show=!1}},methods:{useTheme(t){this.theme=t.value,this.mindMap.setTheme(t.value),di({theme:{template:t.value,config:this.mindMap.getCustomThemeConfig()}})}}},zs=ks,Ds=(i("7521"),Object(l["a"])(zs,Ns,Ss,!1,null,"7f5a4633",null)),Ps=Ds.exports,Is=function(){var t=this,e=t._self._c;return e("Sidebar",{ref:"sidebar",attrs:{title:t.$t("strusture.title")}},[e("div",{staticClass:"layoutList"},t._l(t.layoutList,(function(i){return e("div",{key:i.value,staticClass:"layoutItem",class:{active:i.value===t.layout},on:{click:function(e){return t.useLayout(i)}}},[e("div",{staticClass:"imgBox"},[e("img",{attrs:{src:t.layoutImgMap[i.value],alt:""}})]),e("div",{staticClass:"name"},[t._v(t._s(i.name))])])})),0)])},Fs=[],Os={name:"Structure",components:{Sidebar:as},props:{mindMap:{type:Object}},data(){return{layoutList:st,layoutImgMap:Es,layout:""}},computed:{...Object(ut["d"])(["activeSidebar"])},watch:{activeSidebar(t){"structure"===t?(this.layout=this.mindMap.getLayout(),this.$refs.sidebar.show=!0):this.$refs.sidebar.show=!1}},methods:{useLayout(t){this.layout=t.value,this.mindMap.setLayout(t.value),di({layout:t.value})}}},Rs=Os,Bs=(i("e561"),Object(l["a"])(Rs,Is,Fs,!1,null,"964f9afe",null)),Us=Bs.exports,Gs=function(){var t=this,e=t._self._c;return e("div",{staticClass:"countContainer"},[e("div",{staticClass:"item"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("count.words")))]),e("span",{staticClass:"value"},[t._v(t._s(t.words))])]),e("div",{staticClass:"item"},[e("span",{staticClass:"name"},[t._v(t._s(t.$t("count.nodes")))]),e("span",{staticClass:"value"},[t._v(t._s(t.num))])])])},Hs=[];let Ws=document.createElement("div");var Ys={name:"Count",props:{},data(){return{textStr:"",words:0,num:0}},created(){this.$bus.$on("data_change",this.onDataChange)},beforeDestroy(){this.$bus.$off("data_change",this.onDataChange)},methods:{onDataChange(t){this.textStr="",this.words=0,this.num=0,this.walk(t),Ws.innerHTML=this.textStr,this.words=Ws.textContent.length},walk(t){this.num++,this.textStr+=String(t.data.text)||"",t.children&&t.children.length>0&&t.children.forEach(t=>{this.walk(t)})}}},js=Ys,Zs=(i("0ff3"),Object(l["a"])(js,Gs,Hs,!1,null,"9caafcf0",null)),Xs=Zs.exports,Vs=function(){var t=this,e=t._self._c;return e("div",{staticClass:"navigatorContainer"},[e("div",{staticClass:"item"},[e("el-select",{staticStyle:{width:"100px"},attrs:{size:"small"},on:{change:t.onLangChange},model:{value:t.lang,callback:function(e){t.lang=e},expression:"lang"}},t._l(t.langList,(function(t){return e("el-option",{key:t.value,attrs:{label:t.name,value:t.value}})})),1)],1),e("div",{staticClass:"item"},[e("MouseAction",{attrs:{mindMap:t.mindMap}})],1),e("div",{staticClass:"item"},[e("el-checkbox",{on:{change:t.toggleMiniMap},model:{value:t.openMiniMap,callback:function(e){t.openMiniMap=e},expression:"openMiniMap"}},[t._v(t._s(t.$t("navigatorToolbar.openMiniMap")))])],1),e("div",{staticClass:"item"},[e("el-switch",{attrs:{"active-text":t.$t("navigatorToolbar.readonly"),"inactive-text":t.$t("navigatorToolbar.edit")},on:{change:t.readonlyChange},model:{value:t.isReadonly,callback:function(e){t.isReadonly=e},expression:"isReadonly"}})],1),e("div",{staticClass:"item"},[e("Scale",{attrs:{mindMap:t.mindMap}})],1),e("div",{staticClass:"item"},[e("Fullscreen",{attrs:{mindMap:t.mindMap}})],1),t._m(0)])},Ks=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"item"},[e("a",{attrs:{href:"https://github.com/wanglin2/mind-map",target:"_blank"}},[e("span",{staticClass:"iconfont icongithub"})])])}],qs=function(){var t=this,e=t._self._c;return e("div",{staticClass:"scaleContainer"},[e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.$t("scale.zoomOut"),placement:"top"}},[e("div",{staticClass:"btn el-icon-minus",on:{click:t.narrow}})]),e("div",{staticClass:"scaleInfo"},[t._v(t._s(t.scaleNum)+"%")]),e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.$t("scale.zoomIn"),placement:"top"}},[e("div",{staticClass:"btn el-icon-plus",on:{click:t.enlarge}})])],1)},Js=[],Qs={name:"Scale",props:{mindMap:{type:Object}},data(){return{scaleNum:100}},watch:{mindMap(t,e){t&&!e&&(this.mindMap.on("scale",t=>{this.scaleNum=this.toPer(t)}),this.scaleNum=this.toPer(this.mindMap.view.scale))}},methods:{toPer(t){return(100*t).toFixed(0)},narrow(){this.mindMap.view.narrow()},enlarge(){this.mindMap.view.enlarge()}}},_s=Qs,$s=(i("5b00"),Object(l["a"])(_s,qs,Js,!1,null,"748ba0ea",null)),tr=$s.exports,er=function(){var t=this,e=t._self._c;return e("div",{staticClass:"fullscreenContainer"},[e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.$t("fullscreen.fullscreenShow"),placement:"top"}},[e("div",{staticClass:"btn iconfont iconquanping",on:{click:t.toFullscreenShow}})]),e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.$t("fullscreen.fullscreenEdit"),placement:"top"}},[e("div",{staticClass:"btn iconfont iconquanping1",on:{click:t.toFullscreenEdit}})])],1)},ir=[],ar={name:"Fullscreen",props:{mindMap:{type:Object}},data(){return{}},created(){document[je]=()=>{setTimeout(()=>{this.mindMap.resize()},1e3)}},methods:{toFullscreenShow(){Ze(this.mindMap.el)},toFullscreenEdit(){Ze(document.body)}}},or=ar,nr=(i("c8d5"),Object(l["a"])(or,er,ir,!1,null,"744fc583",null)),sr=nr.exports,rr=function(){var t=this,e=t._self._c;return e("div",{staticClass:"mouseActionContainer"},[e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.useLeftKeySelectionRightKeyDrag?t.$t("mouseAction.tip2"):t.$t("mouseAction.tip1"),placement:"top"}},[e("div",{staticClass:"btn iconfont",class:[t.useLeftKeySelectionRightKeyDrag?"iconmouseR":"iconmouseL"],on:{click:t.toggleAction}})])],1)},lr=[],dr={name:"MouseAction",props:{mindMap:{type:Object}},data(){return{}},computed:{...Object(ut["d"])({useLeftKeySelectionRightKeyDrag:t=>t.localConfig.useLeftKeySelectionRightKeyDrag})},methods:{...Object(ut["c"])(["setLocalConfig"]),toggleAction(){let t=!this.useLeftKeySelectionRightKeyDrag;this.mindMap.updateConfig({useLeftKeySelectionRightKeyDrag:t}),this.setLocalConfig({useLeftKeySelectionRightKeyDrag:t})}}},hr=dr,cr=(i("a1a1"),Object(l["a"])(hr,rr,lr,!1,null,"12dd7dd7",null)),pr=cr.exports,mr=i("a925"),ur={baseStyle:{title:"BaseStyle",background:"Background",color:"Color",image:"Image",imageRepeat:"Image repeat",imagePosition:"Image position",imageSize:"Image size",line:"Line",width:"Width",style:"Style",lineOfOutline:"Line of outline",nodePadding:"Node padding",nodeMargin:"Node margin",horizontal:"Horizontal",vertical:"Vertical",maximumWidth:"Max width",maximumHeight:"Max height",icon:"Icon",size:"Size",level2Node:"Level2 node",belowLevel2Node:"Below level2 node",nodeBorderType:"Node border style",nodeUseLineStyle:"Use only has bottom border style",otherConfig:"Other config",enableFreeDrag:"Enable node free drag",watermark:"Watermark",showWatermark:"Is show watermark",watermarkDefaultText:"Watermark text",watermarkText:"Watermark text",watermarkTextColor:"Text color",watermarkLineSpacing:"Line spacing",watermarkTextSpacing:"Text spacing",watermarkAngle:"Angle",watermarkTextOpacity:"Text opacity",watermarkTextFontSize:"Font size",isEnableNodeRichText:"Enable node rich text editing",mousewheelAction:"Mouse wheel behavior",zoomView:"Zoom view",moveViewUpDown:"Move view up and down",associativeLine:"Associative line",associativeLineWidth:"Width",associativeLineColor:"Color",associativeLineActiveWidth:"Active width",associativeLineActiveColor:"Active color"},color:{moreColor:"More color"},contextmenu:{insertSiblingNode:"Insert sibling node",insertChildNode:"Insert child node",insertSummary:"Insert summary",moveUpNode:"Move up node",moveDownNode:"Move down node",deleteNode:"Delete node",copyNode:"Copy node",cutNode:"Cut node",pasteNode:"Paste node",backCenter:"Back center",expandAll:"Expand all",unExpandAll:"Un expand all",expandTo:"Expand to",arrangeLayout:"Arrange layout",level1:"Level1",level2:"Level2",level3:"Level3",level4:"Level4",level5:"Level5",level6:"Level6",zenMode:"Zen mode",fitCanvas:"Fit canvas"},count:{words:"Words",nodes:"Nodes"},dialog:{cancel:"Cancel",confirm:"Confirm"},export:{title:"Export",filename:"Filename",include:"Is include config like theme and structure",dedicatedFile:"Dedicated file",jsonFile:"json file",imageFile:"Image file",svgFile:"svg file",pdfFile:"pdf file",markdownFile:"markdown file",tips:"tips: .smm and .json file can be import",isTransparent:"Background is transparent",pngTips:"tips: Exporting pictures in rich text mode is time-consuming. It is recommended to export to svg format",svgTips:"tips: Exporting pictures in rich text mode is time-consuming",transformingDomToImages:"Converting nodes: ",notifyTitle:"Info",notifyMessage:"If the download is not triggered, check whether it is blocked by the browser",paddingX:"Padding x",paddingY:"Padding y"},fullscreen:{fullscreenShow:"Full screen show",fullscreenEdit:"Full screen edit"},import:{title:"Import",selectFile:"Select file",supportFile:"Support .smm、.json、.xmind、.xlsx、.md file"},navigatorToolbar:{openMiniMap:"Open mini map",readonly:"Readonly",edit:"Edit"},nodeHyperlink:{title:"Link",link:"Href",name:"Name"},nodeIcon:{title:"Icon"},nodeImage:{title:"Image",imgTitle:"Title"},nodeNote:{title:"Note"},nodeTag:{title:"Tag",addTip:"Press Enter to add"},outline:{title:"Outline"},scale:{zoomIn:"Zoom in",zoomOut:"Zoom out"},shortcutKey:{title:"Shortcut key"},strusture:{title:"Strusture"},style:{title:"Node style",normal:"Normal",active:"Active",text:"Text",fontFamily:"Font family",fontSize:"Font size",lineHeight:"Line height",color:"color",addFontWeight:"add font weight",italic:"Italic",textDecoration:"Text decoration",underline:"Underline",lineThrough:"Line through",overline:"Overline",border:"Border",style:"Style",width:"Width",borderRadius:"Border radius",background:"Background",shape:"Shape",line:"Line",nodePadding:"Node padding",horizontal:"Horizontal",vertical:"Vertical"},theme:{title:"Theme"},toolbar:{undo:"Undo",redo:"Redo",insertSiblingNode:"Insert sibling node",insertChildNode:"Insert child node",deleteNode:"Delete node",image:"Image",icon:"Icon",link:"Link",note:"Note",tag:"Tag",summary:"Summary",displayOutline:"Display outline",baseStyle:"Base style",theme:"Theme",strusture:"Strusture",newFile:"New file",openFile:"Open file",saveAs:"Save as",import:"Import",export:"Export",shortcutKey:"Shortcut key",associativeLine:"Associative line"},edit:{newFeatureNoticeTitle:"New feature reminder",newFeatureNoticeMessage:"This update supports node rich text editing, But there are some defects, The most important impact is that the time to export the image is proportional to the number of nodes, Therefore, if you are more dependent on export requirements, you can use【Base style】-【Other config】-【Enable node rich text editing】Set to turn off rich text editing mode."},mouseAction:{tip1:"Current: Left click to drag the canvas, right click to box select nodes",tip2:"Current: Left click to box select nodes, right click to drag the canvas"}},gr={baseStyle:{title:"基础样式",background:"背景",color:"颜色",image:"图片",imageRepeat:"图片重复",imagePosition:"图片位置",imageSize:"图片大小",line:"连线",width:"粗细",style:"风格",lineOfOutline:"概要的连线",nodePadding:"节点内边距",nodeMargin:"节点外边距",horizontal:"水平",vertical:"垂直",maximumWidth:"显示的最大宽度",maximumHeight:"显示的最大高度",icon:"图标",size:"大小",level2Node:"二级节点",belowLevel2Node:"三级及以下节点",nodeBorderType:"节点边框风格",nodeUseLineStyle:"是否使用只有底边框的风格",otherConfig:"其他配置",enableFreeDrag:"是否开启节点自由拖拽",watermark:"水印",showWatermark:"是否显示水印",watermarkDefaultText:"水印文字",watermarkText:"水印文字",watermarkTextColor:"文字颜色",watermarkLineSpacing:"水印行间距",watermarkTextSpacing:"水印文字间距",watermarkAngle:"旋转角度",watermarkTextOpacity:"文字透明度",watermarkTextFontSize:"文字字号",isEnableNodeRichText:"是否开启节点富文本编辑",mousewheelAction:"鼠标滚轮行为",zoomView:"缩放视图",moveViewUpDown:"上下移动视图",associativeLine:"关联线",associativeLineWidth:"粗细",associativeLineColor:"颜色",associativeLineActiveWidth:"激活粗细",associativeLineActiveColor:"激活颜色"},color:{moreColor:"更多颜色"},contextmenu:{insertSiblingNode:"插入同级节点",insertChildNode:"插入子级节点",insertSummary:"插入概要",moveUpNode:"上移节点",moveDownNode:"下移节点",deleteNode:"删除节点",copyNode:"复制节点",cutNode:"剪切节点",pasteNode:"粘贴节点",backCenter:"回到中心",expandAll:"展开所有",unExpandAll:"收起所有",expandTo:"展开到",arrangeLayout:"一键整理布局",level1:"一级主题",level2:"二级主题",level3:"三级主题",level4:"四级主题",level5:"五级主题",level6:"六级主题",zenMode:"禅模式",fitCanvas:"适应画布"},count:{words:"字数",nodes:"节点"},dialog:{cancel:"取 消",confirm:"确 定"},export:{title:"导出",filename:"导出文件名称",include:"是否包含主题、结构等配置数据",dedicatedFile:"专有文件",jsonFile:"json文件",imageFile:"图片文件",svgFile:"svg文件",pdfFile:"pdf文件",markdownFile:"markdown文件",tips:"tips:.smm和.json文件可用于导入",isTransparent:"背景是否透明",pngTips:"tips:富文本模式导出图片非常耗时,建议导出为svg格式",svgTips:"tips:富文本模式导出图片非常耗时",transformingDomToImages:"正在转换节点:",notifyTitle:"消息",notifyMessage:"如果没有触发下载,请检查是否被浏览器拦截了",paddingX:"水平内边距",paddingY:"垂直内边距"},fullscreen:{fullscreenShow:"全屏查看",fullscreenEdit:"全屏编辑"},import:{title:"导入",selectFile:"选取文件",supportFile:"支持.smm、.json、.xmind、.xlsx、.md文件"},navigatorToolbar:{openMiniMap:"开启小地图",readonly:"只读模式",edit:"编辑模式"},nodeHyperlink:{title:"超链接",link:"链接",name:"名称"},nodeIcon:{title:"图标"},nodeImage:{title:"图片",imgTitle:"图片标题"},nodeNote:{title:"备注"},nodeTag:{title:"标签",addTip:"请按回车键添加"},outline:{title:"大纲"},scale:{zoomIn:"放大",zoomOut:"缩小"},shortcutKey:{title:"快捷键"},strusture:{title:"结构"},style:{title:"节点样式",normal:"常态",active:"选中状态",text:"文字",fontFamily:"字体",fontSize:"字号",lineHeight:"行高",color:"颜色",addFontWeight:"加粗",italic:"斜体",textDecoration:"划线",underline:"下划线",lineThrough:"中划线",overline:"上划线",border:"边框",style:"样式",width:"宽度",borderRadius:"圆角",background:"背景",shape:"形状",line:"线条",nodePadding:"节点内边距",horizontal:"水平",vertical:"垂直"},theme:{title:"主题"},toolbar:{undo:"回退",redo:"前进",insertSiblingNode:"插入同级节点",insertChildNode:"插入子节点",deleteNode:"删除节点",image:"图片",icon:"图标",link:"超链接",note:"备注",tag:"标签",summary:"概要",displayOutline:"显示大纲",baseStyle:"基础样式",theme:"主题",strusture:"结构",newFile:"新建",openFile:"打开",saveAs:"另存为",import:"导入",export:"导出",shortcutKey:"快捷键",associativeLine:"关联线"},edit:{newFeatureNoticeTitle:"新特性提醒",newFeatureNoticeMessage:"本次更新支持了节点富文本编辑,但是存在一定缺陷,最主要的影响是导出为图片的时间和节点数量成正比,所以对导出需求比较依赖的话可以通过【基础样式】-【其他配置】-【是否开启节点富文本编辑】设置关掉富文本编辑模式。"},mouseAction:{tip1:"当前:左键拖动画布,右键框选节点",tip2:"当前:左键框选节点,右键拖动画布"}},fr={zh:gr,en:ur};a["default"].use(mr["a"]);const vr=new mr["a"]({locale:ci(),messages:fr});var br=vr,xr={name:"NavigatorToolbar",components:{Scale:tr,Fullscreen:sr,MouseAction:pr},props:{mindMap:{type:Object}},data(){return{langList:kt,lang:ci(),isReadonly:!1,openMiniMap:!1}},mounted(){this.toggleMiniMap(this.openMiniMap)},methods:{readonlyChange(t){this.mindMap.setMode(t?"readonly":"edit")},toggleMiniMap(t){this.$bus.$emit("toggle_mini_map",t)},onLangChange(t){br.locale=t,hi(t)}}},Cr=xr,wr=(i("1be6"),Object(l["a"])(Cr,Vs,Ks,!1,null,"2f593bec",null)),yr=wr.exports,Ar=function(){var t=this,e=t._self._c;return e("Sidebar",{ref:"sidebar",attrs:{title:t.$t("shortcutKey.title")}},[e("div",{staticClass:"box"},t._l(t.shortcutKeyList,(function(i){return e("div",{key:i.type},[e("div",{staticClass:"title"},[t._v(t._s(i.type))]),t._l(i.list,(function(i){return e("div",{key:i.value,staticClass:"list"},[e("div",{staticClass:"item"},[i.icon?e("span",{staticClass:"icon iconfont",class:[i.icon]}):t._e(),e("span",{staticClass:"name"},[t._v(t._s(i.name))]),e("div",{staticClass:"value"},[t._v(t._s(i.value))])])])}))],2)})),0)])},Mr=[],Tr={name:"ShortcutKey",components:{Sidebar:as},data(){return{}},computed:{...Object(ut["d"])(["activeSidebar"]),shortcutKeyList(){return qt[this.$i18n.locale]||qt.zh}},watch:{activeSidebar(t){this.$refs.sidebar.show="shortcutKey"===t}}},Nr=Tr,Sr=(i("5f93"),Object(l["a"])(Nr,Ar,Mr,!1,null,"a85bd4f8",null)),Er=Sr.exports,Lr=function(){var t=this,e=t._self._c;return t.isShow?e("div",{staticClass:"contextmenuContainer listBox",style:{left:t.left+"px",top:t.top+"px"}},["node"===t.type?[e("div",{staticClass:"item",class:{disabled:t.insertNodeBtnDisabled},on:{click:function(e){return t.exec("INSERT_NODE",t.insertNodeBtnDisabled)}}},[t._v(" "+t._s(t.$t("contextmenu.insertSiblingNode"))+" "),e("span",{staticClass:"desc"},[t._v("Enter")])]),e("div",{staticClass:"item",class:{disabled:t.isGeneralization},on:{click:function(e){return t.exec("INSERT_CHILD_NODE")}}},[t._v(" "+t._s(t.$t("contextmenu.insertChildNode"))+" "),e("span",{staticClass:"desc"},[t._v("Tab")])]),e("div",{staticClass:"item",class:{disabled:t.insertNodeBtnDisabled},on:{click:function(e){return t.exec("ADD_GENERALIZATION")}}},[t._v(" "+t._s(t.$t("contextmenu.insertSummary"))+" "),e("span",{staticClass:"desc"},[t._v("Ctrl + S")])]),e("div",{staticClass:"item",class:{disabled:t.upNodeBtnDisabled},on:{click:function(e){return t.exec("UP_NODE")}}},[t._v(" "+t._s(t.$t("contextmenu.moveUpNode"))+" "),e("span",{staticClass:"desc"},[t._v("Ctrl + ↑")])]),e("div",{staticClass:"item",class:{disabled:t.downNodeBtnDisabled},on:{click:function(e){return t.exec("DOWN_NODE")}}},[t._v(" "+t._s(t.$t("contextmenu.moveDownNode"))+" "),e("span",{staticClass:"desc"},[t._v("Ctrl + ↓")])]),e("div",{staticClass:"item danger",on:{click:function(e){return t.exec("REMOVE_NODE")}}},[t._v(" "+t._s(t.$t("contextmenu.deleteNode"))+" "),e("span",{staticClass:"desc"},[t._v("Delete")])]),e("div",{staticClass:"item",class:{disabled:t.isGeneralization},on:{click:function(e){return t.exec("COPY_NODE")}}},[t._v(" "+t._s(t.$t("contextmenu.copyNode"))+" "),e("span",{staticClass:"desc"},[t._v("Ctrl + C")])]),e("div",{staticClass:"item",class:{disabled:t.isGeneralization},on:{click:function(e){return t.exec("CUT_NODE")}}},[t._v(" "+t._s(t.$t("contextmenu.cutNode"))+" "),e("span",{staticClass:"desc"},[t._v("Ctrl + X")])]),e("div",{staticClass:"item",class:{disabled:null===t.copyData},on:{click:function(e){return t.exec("PASTE_NODE")}}},[t._v(" "+t._s(t.$t("contextmenu.pasteNode"))+" "),e("span",{staticClass:"desc"},[t._v("Ctrl + V")])])]:t._e(),"svg"===t.type?[e("div",{staticClass:"item",on:{click:function(e){return t.exec("RETURN_CENTER")}}},[t._v(" "+t._s(t.$t("contextmenu.backCenter"))+" "),e("span",{staticClass:"desc"},[t._v("Ctrl + Enter")])]),e("div",{staticClass:"item",on:{click:function(e){return t.exec("EXPAND_ALL")}}},[t._v(" "+t._s(t.$t("contextmenu.expandAll"))+" ")]),e("div",{staticClass:"item",on:{click:function(e){return t.exec("UNEXPAND_ALL")}}},[t._v(" "+t._s(t.$t("contextmenu.unExpandAll"))+" ")]),e("div",{staticClass:"item"},[t._v(" "+t._s(t.$t("contextmenu.expandTo"))+" "),e("div",{staticClass:"subItems listBox"},t._l(t.expandList,(function(i,a){return e("div",{key:i,staticClass:"item",on:{click:function(e){return t.exec("UNEXPAND_TO_LEVEL",!1,a+1)}}},[t._v(" "+t._s(i)+" ")])})),0)]),e("div",{staticClass:"item",on:{click:function(e){return t.exec("RESET_LAYOUT")}}},[t._v(" "+t._s(t.$t("contextmenu.arrangeLayout"))+" "),e("span",{staticClass:"desc"},[t._v("Ctrl + L")])]),e("div",{staticClass:"item",on:{click:function(e){return t.exec("FIT_CANVAS")}}},[t._v(" "+t._s(t.$t("contextmenu.fitCanvas"))+" "),e("span",{staticClass:"desc"},[t._v("Ctrl + i")])]),e("div",{staticClass:"item",on:{click:function(e){return t.exec("TOGGLE_ZEN_MODE")}}},[t._v(" "+t._s(t.$t("contextmenu.zenMode"))+" "+t._s(t.isZenMode?"√":"")+" ")])]:t._e()],2):t._e()},kr=[],zr={name:"Contextmenu",props:{mindMap:{type:Object}},data(){return{isShow:!1,left:0,top:0,node:null,copyData:null,type:"",isMousedown:!1,mosuedownX:0,mosuedownY:0}},computed:{...Object(ut["d"])({isZenMode:t=>t.localConfig.isZenMode}),expandList(){return[this.$t("contextmenu.level1"),this.$t("contextmenu.level2"),this.$t("contextmenu.level3"),this.$t("contextmenu.level4"),this.$t("contextmenu.level5"),this.$t("contextmenu.level6")]},insertNodeBtnDisabled(){return!this.node||this.node.isRoot||this.node.isGeneralization},upNodeBtnDisabled(){if(!this.node||this.node.isRoot||this.node.isGeneralization)return!0;let t=0===this.node.parent.children.findIndex(t=>t===this.node);return t},downNodeBtnDisabled(){if(!this.node||this.node.isRoot||this.node.isGeneralization)return!0;let t=this.node.parent.children,e=t.findIndex(t=>t===this.node)===t.length-1;return e},isGeneralization(){return this.node.isGeneralization}},created(){this.$bus.$on("node_contextmenu",this.show),this.$bus.$on("node_click",this.hide),this.$bus.$on("draw_click",this.hide),this.$bus.$on("expand_btn_click",this.hide),this.$bus.$on("svg_mousedown",this.onMousedown),this.$bus.$on("mouseup",this.onMouseup),this.mindMap.keyCommand.addShortcut("Control+c",this.copy),this.mindMap.keyCommand.addShortcut("Control+v",this.paste),this.mindMap.keyCommand.addShortcut("Control+x",this.cut)},beforeDestroy(){this.$bus.$off("node_contextmenu",this.show),this.$bus.$off("node_click",this.hide),this.$bus.$off("draw_click",this.hide),this.$bus.$off("expand_btn_click",this.hide),this.$bus.$on("svg_mousedown",this.onMousedown),this.$bus.$on("mouseup",this.onMouseup),this.mindMap.keyCommand.removeShortcut("Control+c",this.copy),this.mindMap.keyCommand.removeShortcut("Control+v",this.paste),this.mindMap.keyCommand.removeShortcut("Control+x",this.cut)},methods:{...Object(ut["c"])(["setLocalConfig"]),show(t,e){this.type="node",this.left=t.clientX+10,this.top=t.clientY+10,this.isShow=!0,this.node=e},onMousedown(t){3===t.which&&(this.mosuedownX=t.clientX,this.mosuedownY=t.clientY,this.isMousedown=!0)},onMouseup(t){this.isMousedown&&(this.isMousedown=!1,Math.abs(this.mosuedownX-t.clientX)>3||Math.abs(this.mosuedownY-t.clientY)>3?this.hide():this.show2(t))},show2(t){this.type="svg",this.left=t.clientX+10,this.top=t.clientY+10,this.isShow=!0},hide(){this.isShow=!1,this.left=0,this.top=0,this.type=""},exec(t,e,...i){if(!e){switch(t){case"COPY_NODE":this.copyData=this.mindMap.renderer.copyNode();break;case"CUT_NODE":this.$bus.$emit("execCommand",t,t=>{this.copyData=t});break;case"PASTE_NODE":this.$bus.$emit("execCommand",t,this.copyData);break;case"RETURN_CENTER":this.mindMap.view.reset();break;case"TOGGLE_ZEN_MODE":this.setLocalConfig({isZenMode:!this.isZenMode});break;case"FIT_CANVAS":this.mindMap.view.fit();break;default:this.$bus.$emit("execCommand",t,...i);break}this.hide()}},copy(){this.exec("COPY_NODE")},paste(){this.exec("PASTE_NODE")},cut(){this.exec("CUT_NODE")}}},Dr=zr,Pr=(i("2d4f"),Object(l["a"])(Dr,Lr,kr,!1,null,"6301ef3b",null)),Ir=Pr.exports,Fr=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"show",rawName:"v-show",value:t.showRichTextToolbar,expression:"showRichTextToolbar"}],ref:"richTextToolbar",staticClass:"richTextToolbar",style:t.style,on:{"&click":function(t){t.stopPropagation()}}},[e("el-tooltip",{attrs:{content:"加粗",placement:"top"}},[e("div",{staticClass:"btn",class:{active:t.formatInfo.bold},on:{click:t.toggleBold}},[e("span",{staticClass:"icon iconfont iconzitijiacu"})])]),e("el-tooltip",{attrs:{content:"斜体",placement:"top"}},[e("div",{staticClass:"btn",class:{active:t.formatInfo.italic},on:{click:t.toggleItalic}},[e("span",{staticClass:"icon iconfont iconzitixieti"})])]),e("el-tooltip",{attrs:{content:"下划线",placement:"top"}},[e("div",{staticClass:"btn",class:{active:t.formatInfo.underline},on:{click:t.toggleUnderline}},[e("span",{staticClass:"icon iconfont iconzitixiahuaxian"})])]),e("el-tooltip",{attrs:{content:"删除线",placement:"top"}},[e("div",{staticClass:"btn",class:{active:t.formatInfo.strike},on:{click:t.toggleStrike}},[e("span",{staticClass:"icon iconfont iconshanchuxian"})])]),e("el-tooltip",{attrs:{content:"字体",placement:"top"}},[e("el-popover",{attrs:{placement:"bottom",trigger:"hover"}},[e("div",{staticClass:"fontOptionsList"},t._l(t.fontFamilyList,(function(i){return e("div",{key:i.value,staticClass:"fontOptionItem",class:{active:t.formatInfo.font===i.value},style:{fontFamily:i.value},on:{click:function(e){return t.changeFontFamily(i.value)}}},[t._v(" "+t._s(i.name)+" ")])})),0),e("div",{staticClass:"btn",attrs:{slot:"reference"},slot:"reference"},[e("span",{staticClass:"icon iconfont iconxingzhuang-wenzi"})])])],1),e("el-tooltip",{attrs:{content:"字号",placement:"top"}},[e("el-popover",{attrs:{placement:"bottom",trigger:"hover"}},[e("div",{staticClass:"fontOptionsList"},t._l(t.fontSizeList,(function(i){return e("div",{key:i,staticClass:"fontOptionItem",class:{active:t.formatInfo.size===i+"px"},style:{fontSize:i+"px"},on:{click:function(e){return t.changeFontSize(i)}}},[t._v(" "+t._s(i)+"px ")])})),0),e("div",{staticClass:"btn",attrs:{slot:"reference"},slot:"reference"},[e("span",{staticClass:"icon iconfont iconcase fontColor"})])])],1),e("el-tooltip",{attrs:{content:"字体颜色",placement:"top"}},[e("el-popover",{attrs:{placement:"bottom",trigger:"hover"}},[e("Color",{attrs:{color:t.fontColor},on:{change:t.changeFontColor}}),e("div",{staticClass:"btn",style:{color:t.formatInfo.color},attrs:{slot:"reference"},slot:"reference"},[e("span",{staticClass:"icon iconfont iconzitiyanse"})])],1)],1),e("el-tooltip",{attrs:{content:"背景颜色",placement:"top"}},[e("el-popover",{attrs:{placement:"bottom",trigger:"hover"}},[e("Color",{attrs:{color:t.fontBackgroundColor},on:{change:t.changeFontBackgroundColor}}),e("div",{staticClass:"btn",attrs:{slot:"reference"},slot:"reference"},[e("span",{staticClass:"icon iconfont iconbeijingyanse"})])],1)],1),e("el-tooltip",{attrs:{content:"清除样式",placement:"top"}},[e("div",{staticClass:"btn",on:{click:t.removeFormat}},[e("span",{staticClass:"icon iconfont iconqingchu"})])])],1)},Or=[],Rr={name:"RichTextToolbar",components:{Color:gs},props:{mindMap:{type:Object}},data(){return{fontSizeList:ft,showRichTextToolbar:!1,style:{left:0,top:0},fontColor:"",fontBackgroundColor:"",formatInfo:{}}},computed:{fontFamilyList(){return Yt[this.$i18n.locale]||Yt.zh}},created(){this.$bus.$on("rich_text_selection_change",this.onRichTextSelectionChange)},mounted(){document.body.append(this.$refs.richTextToolbar)},beforeDestroy(){this.$bus.$off("rich_text_selection_change",this.onRichTextSelectionChange)},methods:{onRichTextSelectionChange(t,e,i){t&&(this.style.left=e.left+e.width/2+"px",this.style.top=e.top-60+"px",this.formatInfo={...i||{}}),this.showRichTextToolbar=t},toggleBold(){this.formatInfo.bold=!this.formatInfo.bold,this.mindMap.richText.formatText({bold:this.formatInfo.bold})},toggleItalic(){this.formatInfo.italic=!this.formatInfo.italic,this.mindMap.richText.formatText({italic:this.formatInfo.italic})},toggleUnderline(){this.formatInfo.underline=!this.formatInfo.underline,this.mindMap.richText.formatText({underline:this.formatInfo.underline})},toggleStrike(){this.formatInfo.strike=!this.formatInfo.strike,this.mindMap.richText.formatText({strike:this.formatInfo.strike})},changeFontFamily(t){this.formatInfo.font=t,this.mindMap.richText.formatText({font:t})},changeFontSize(t){this.formatInfo.size=t,this.mindMap.richText.formatText({size:t+"px"})},changeFontColor(t){this.formatInfo.color=t,this.mindMap.richText.formatText({color:t})},changeFontBackgroundColor(t){this.formatInfo.background=t,this.mindMap.richText.formatText({background:t})},removeFormat(){this.mindMap.richText.removeFormat()}}},Br=Rr,Ur=(i("779c"),Object(l["a"])(Br,Fr,Or,!1,null,"e5eec9d6",null)),Gr=Ur.exports,Hr=function(){var t=this,e=t._self._c;return e("div",{ref:"noteContentViewer",staticClass:"noteContentViewer",style:{left:this.left+"px",top:this.top+"px",visibility:t.show?"visible":"hidden"},on:{click:function(t){t.stopPropagation()}}})},Wr=[],Yr=i("f059"),jr=i.n(Yr),Zr=(i("fe5f"),{name:"NodeNoteContentShow",data(){return{editor:null,show:!1,left:0,top:0}},created(){this.$bus.$on("showNoteContent",this.onShowNoteContent),this.$bus.$on("hideNoteContent",this.hideNoteContent),document.body.addEventListener("click",this.hideNoteContent),this.$bus.$on("node_active",this.hideNoteContent)},mounted(){this.initEditor()},beforeDestroy(){this.$bus.$off("showNoteContent",this.onShowNoteContent),this.$bus.$off("hideNoteContent",this.hideNoteContent),document.body.removeEventListener("click",this.hideNoteContent),this.$bus.$off("node_active",this.hideNoteContent)},methods:{onShowNoteContent(t,e,i){this.editor.setMarkdown(t),this.left=e,this.top=i,this.show=!0},hideNoteContent(){this.show=!1},initEditor(){this.editor||(this.editor=new jr.a({el:this.$refs.noteContentViewer}))}}}),Xr=Zr,Vr=(i("fc3f"),Object(l["a"])(Xr,Hr,Wr,!1,null,"18c8af5a",null)),Kr=Vr.exports,qr=function(){var t=this,e=t._self._c;return t.showMiniMap?e("div",{ref:"navigatorBox",staticClass:"navigatorBox",on:{mousedown:t.onMousedown,mousemove:t.onMousemove,mouseup:t.onMouseup}},[e("div",{ref:"svgBox",staticClass:"svgBox",style:{transform:`scale(${t.svgBoxScale})`,left:t.svgBoxLeft+"px",top:t.svgBoxTop+"px"}}),e("div",{staticClass:"windowBox",style:t.viewBoxStyle})]):t._e()},Jr=[],Qr={props:{mindMap:{type:Object}},data(){return{showMiniMap:!1,timer:null,boxWidth:0,boxHeight:0,svgBoxScale:1,svgBoxLeft:0,svgBoxTop:0,viewBoxStyle:{left:0,top:0,bottom:0,right:0}}},mounted(){this.$bus.$on("toggle_mini_map",this.toggle_mini_map),this.$bus.$on("data_change",this.data_change),this.$bus.$on("view_data_change",this.data_change),this.$bus.$on("node_tree_render_end",this.data_change)},destroyed(){this.$bus.$off("toggle_mini_map",this.toggle_mini_map),this.$bus.$off("data_change",this.data_change),this.$bus.$off("view_data_change",this.data_change),this.$bus.$off("node_tree_render_end",this.data_change)},methods:{toggle_mini_map(t){this.showMiniMap=t,this.$nextTick(()=>{this.$refs.navigatorBox&&this.init(),this.$refs.svgBox&&this.drawMiniMap()})},data_change(){this.showMiniMap&&(clearTimeout(this.timer),this.timer=setTimeout(()=>{this.drawMiniMap()},500))},init(){let{width:t,height:e}=this.$refs.navigatorBox.getBoundingClientRect();this.boxWidth=t,this.boxHeight=e},drawMiniMap(){let{svgHTML:t,viewBoxStyle:e,miniMapBoxScale:i,miniMapBoxLeft:a,miniMapBoxTop:o}=this.mindMap.miniMap.calculationMiniMap(this.boxWidth,this.boxHeight);this.$refs.svgBox.innerHTML=t,this.viewBoxStyle=e,this.svgBoxScale=i,this.svgBoxLeft=a,this.svgBoxTop=o},onMousedown(t){this.mindMap.miniMap.onMousedown(t)},onMousemove(t){this.mindMap.miniMap.onMousemove(t)},onMouseup(t){this.mindMap.miniMap.onMouseup(t)}}},_r=Qr,$r=(i("8d13"),Object(l["a"])(_r,qr,Jr,!1,null,"5eacd143",null)),tl=$r.exports,el=function(){var t=this,e=t._self._c;return e("viewer",{attrs:{images:t.images}},t._l(t.images,(function(t){return e("img",{key:t,attrs:{src:t}})})),0)},il=[],al={props:{mindMap:{type:Object,default(){return null}}},data(){return{images:[]}},mounted(){this.mindMap.on("node_img_dblclick",this.onNodeTmgDblclick)},beforeDestroy(){this.mindMap.off("node_img_dblclick",this.onNodeTmgDblclick)},methods:{onNodeTmgDblclick(t,e){e.stopPropagation(),e.preventDefault(),this.images=[t.nodeData.data.image],this.$viewerApi({images:this.images})}}},ol=al,nl=Object(l["a"])(ol,el,il,!1,null,null,null),sl=nl.exports,rl=function(){var t=this,e=t._self._c;return e("div",{staticClass:"sidebarTriggerContainer",class:{show:t.activeSidebar},on:{click:function(t){t.stopPropagation()}}},[e("div",{staticClass:"trigger"},t._l(t.triggerList,(function(i){return e("div",{key:i.value,staticClass:"triggerItem",class:{active:t.activeSidebar===i.value},on:{click:function(e){return t.trigger(i)}}},[e("div",{staticClass:"triggerIcon iconfont",class:[i.icon]}),e("div",{staticClass:"triggerName"},[t._v(t._s(i.name))])])})),0)])},ll=[],dl={name:"SidebarTrigger",data(){return{show:!1}},computed:{...Object(ut["d"])(["activeSidebar"]),triggerList(){return Qt[this.$i18n.locale]||Qt.zh}},methods:{...Object(ut["c"])(["setActiveSidebar"]),trigger(t){this.setActiveSidebar(t.value)}}},hl=dl,cl=(i("97d4"),Object(l["a"])(hl,rl,ll,!1,null,"3b513f58",null)),pl=cl.exports;Fo.usePlugin(Ro).usePlugin(Uo).usePlugin(nn).usePlugin(Ho).usePlugin(jo).usePlugin(an).usePlugin(rn).usePlugin(qn);var ml={name:"Edit",components:{Outline:rs,Style:xs,BaseStyle:Ts,Theme:Ps,Structure:Us,Count:Xs,NavigatorToolbar:yr,ShortcutKey:Er,Contextmenu:Ir,RichTextToolbar:Gr,NodeNoteContentShow:Kr,Navigator:tl,NodeImgPreview:sl,SidebarTrigger:pl},data(){return{mindMap:null,mindMapData:null,prevImg:"",openTest:!1}},computed:{...Object(ut["d"])({isZenMode:t=>t.localConfig.isZenMode,openNodeRichText:t=>t.localConfig.openNodeRichText,useLeftKeySelectionRightKeyDrag:t=>t.localConfig.useLeftKeySelectionRightKeyDrag})},watch:{openNodeRichText(){this.openNodeRichText?this.addRichTextPlugin():this.removeRichTextPlugin()}},mounted(){this.getData(),this.init(),this.$bus.$on("execCommand",this.execCommand),this.$bus.$on("paddingChange",this.onPaddingChange),this.$bus.$on("export",this.export),this.$bus.$on("setData",this.setData),this.$bus.$on("startTextEdit",()=>{this.mindMap.renderer.startTextEdit()}),this.$bus.$on("endTextEdit",()=>{this.mindMap.renderer.endTextEdit()}),this.$bus.$on("createAssociativeLine",()=>{this.mindMap.associativeLine.createLineFromActiveNode()}),window.addEventListener("resize",()=>{this.mindMap.resize()}),this.openTest&&setTimeout(()=>{this.test()},5e3)},methods:{test(){let t={data:{text:"根节点",expand:!0,isActive:!1},children:[]};setTimeout(()=>{t.data.text="理想青年实验室",this.mindMap.setData(JSON.parse(JSON.stringify(t))),setTimeout(()=>{t.children.push({data:{text:"网站",expand:!0,isActive:!1},children:[]}),this.mindMap.setData(JSON.parse(JSON.stringify(t))),setTimeout(()=>{t.children.push({data:{text:"博客",expand:!0,isActive:!1},children:[]}),this.mindMap.setData(JSON.parse(JSON.stringify(t))),setTimeout(()=>{let t={transform:{scaleX:1,scaleY:1,shear:0,rotate:0,translateX:179,translateY:0,originX:0,originY:0,a:1,b:0,c:0,d:1,e:179,f:0},state:{scale:1,x:179,y:0,sx:0,sy:0}};this.mindMap.view.setTransformData(t),setTimeout(()=>{let t={transform:{scaleX:1.6000000000000005,scaleY:1.6000000000000005,shear:0,rotate:0,translateX:-373.3000000000004,translateY:-281.10000000000025,originX:0,originY:0,a:1.6000000000000005,b:0,c:0,d:1.6000000000000005,e:-373.3000000000004,f:-281.10000000000025},state:{scale:1.6000000000000005,x:179,y:0,sx:0,sy:0}};this.mindMap.view.setTransformData(t)},1e3)},1e3)},1e3)},1e3)},1e3)},getData(){let t=ri();this.mindMapData=t},bindSaveEvent(){this.openTest||(this.$bus.$on("data_change",t=>{li(t)}),this.$bus.$on("view_data_change",t=>{di({view:t})}))},manualSave(){if(this.openTest)return;let t=this.mindMap.getData(!0);di(t)},init(){let{root:t,layout:e,theme:i,view:a,config:o}=this.mindMapData;this.mindMap=new Fo({el:this.$refs.mindMapContainer,data:t,layout:e,theme:i.template,themeConfig:i.config,viewData:a,nodeTextEditZIndex:1e3,nodeNoteTooltipZIndex:1e3,customNoteContentShow:{show:(t,e,i)=>{this.$bus.$emit("showNoteContent",t,e,i)},hide:()=>{}},...o||{},iconList:W,useLeftKeySelectionRightKeyDrag:this.useLeftKeySelectionRightKeyDrag}),this.openNodeRichText&&this.addRichTextPlugin(),this.mindMap.keyCommand.addShortcut("Control+s",()=>{this.manualSave()}),["node_active","data_change","view_data_change","back_forward","node_contextmenu","node_click","draw_click","expand_btn_click","svg_mousedown","mouseup","mode_change","node_tree_render_end","rich_text_selection_change","transforming-dom-to-images","generalization_node_contextmenu"].forEach(t=>{this.mindMap.on(t,(...e)=>{this.$bus.$emit(t,...e)})}),this.bindSaveEvent()},setData(t){t.root?this.mindMap.setFullData(t):this.mindMap.setData(t),this.mindMap.view.reset(),this.manualSave()},reRender(){this.mindMap.reRender()},execCommand(...t){this.mindMap.execCommand(...t)},async export(...t){try{this.mindMap.export(...t)}catch(e){console.log(e)}},onPaddingChange(t){this.mindMap.updateConfig(t)},showNewFeatureInfo(){let t=localStorage.getItem("SIMPLE_MIND_MAP_NEW_FEATURE_TIP_1");t||this.$notify.info({title:this.$t("edit.newFeatureNoticeTitle"),message:this.$t("edit.newFeatureNoticeMessage"),duration:0,onClose:()=>{localStorage.setItem("SIMPLE_MIND_MAP_NEW_FEATURE_TIP_1",!0)}})},addRichTextPlugin(){this.mindMap&&this.mindMap.addPlugin(fn)},removeRichTextPlugin(){this.mindMap.removePlugin(fn)}}},ul=ml,gl=(i("40b8"),Object(l["a"])(ul,xi,Ci,!1,null,"620d258a",null)),fl=gl.exports,vl={name:"Index",components:{Toolbar:bi,Edit:fl},data(){return{show:!1}},computed:{...Object(ut["d"])({isZenMode:t=>t.localConfig.isZenMode})},async created(){this.initLocalConfig();const t=this.$loading({lock:!0,text:"正在加载,请稍后..."});await this.getUserMindMapData(),this.show=!0,t.close()},methods:{...Object(ut["b"])(["getUserMindMapData"]),...Object(ut["c"])(["setLocalConfig"]),initLocalConfig(){let t=mi();t&&this.setLocalConfig({...this.$store.state.localConfig,...t})}}},bl=vl,xl=(i("7341"),Object(l["a"])(bl,p,m,!1,null,"c9d4deb0",null)),Cl=xl.exports,wl=function(){var t=this,e=t._self._c;return e("div",{staticClass:"docContainer"},[e("Header"),e("div",{staticClass:"content"},[e("Sidebar"),e("div",{ref:"doc",staticClass:"doc",attrs:{id:"doc"},on:{scroll:t.onScroll}},[e("router-view")],1),e("CatalogBar",{attrs:{scrollTop:t.scrollTop},on:{scroll:t.doScroll}})],1)],1)},yl=[],Al=function(){var t=this,e=t._self._c;return e("div",{staticClass:"headerContainer"},[t._m(0),e("div",{staticClass:"center"},[e("div",{staticClass:"btn",on:{click:t.toDemo}},[t._v(t._s(t.demoName))]),e("el-dropdown",{attrs:{trigger:"click",placement:"bottom-start"},on:{command:t.handleCommand}},[e("span",{staticClass:"translateBtn"},[t._v(" "+t._s(t.currentLangName)),e("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.otherLangList,(function(i){return e("el-dropdown-item",{key:i.path,attrs:{command:i.path}},[t._v(t._s(i.name))])})),1)],1),t._m(1)],1),e("div",{staticClass:"right"})])},Ml=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"left"},[e("div",{staticClass:"title"},[e("img",{attrs:{src:i("4ffd"),alt:""}}),t._v(" SimpleMindMap ")])])},function(){var t=this,e=t._self._c;return e("a",{attrs:{href:"https://github.com/wanglin2/mind-map",target:"_blank"}},[e("span",{staticClass:"iconfont icongithub"})])}],Tl=[{lang:"zh",children:[{path:"associativeLine",title:"AssociativeLine 插件"},{path:"batchExecution",title:"BatchExecution实例"},{path:"changelog",title:"Changelog"},{path:"command",title:"Command实例"},{path:"constructor",title:"构造函数"},{path:"course1",title:"基本使用"},{path:"course2",title:"操作节点内容"},{path:"course3",title:"插入/删除节点、前进回退"},{path:"course4",title:"设置节点样式"},{path:"course5",title:"设置基础样式"},{path:"course6",title:"显示水印"},{path:"course7",title:"开启节点自由拖拽"},{path:"course8",title:"开启节点富文本编辑"},{path:"course9",title:"修改鼠标滚轮的行为"},{path:"course10",title:"主题"},{path:"course11",title:"结构"},{path:"course12",title:"如何渲染一个大纲"},{path:"course13",title:"快捷键"},{path:"course14",title:"如何渲染一个小地图"},{path:"course15",title:"如何渲染一个右键菜单"},{path:"course16",title:"如何渲染富文本的悬浮工具栏"},{path:"course17",title:"导入和导出"},{path:"course18",title:"如何持久化数据"},{path:"course19",title:"插入和扩展节点图标"},{path:"doExport",title:"Export 插件"},{path:"drag",title:"Drag插件"},{path:"introduction",title:"简介"},{path:"keyCommand",title:"KeyCommand实例"},{path:"keyboardNavigation",title:"KeyboardNavigation插件"},{path:"markdown",title:"Markdown解析"},{path:"miniMap",title:"MiniMap插件"},{path:"node",title:"Node实例"},{path:"render",title:"Render实例"},{path:"richText",title:"RichText插件"},{path:"select",title:"Select 插件 "},{path:"start",title:"开始"},{path:"translate",title:"参与翻译"},{path:"utils",title:"内置工具方法"},{path:"view",title:"View实例"},{path:"watermark",title:"Watermark插件"},{path:"xmind",title:"XMind解析"},{path:"deploy",title:"部署"},{path:"client",title:"客户端"},{path:"touchEvent",title:"TouchEvent插件"}]},{lang:"en",children:[{path:"associativeLine",title:"AssociativeLine plugin"},{path:"batchExecution",title:"batchExecution instance"},{path:"changelog",title:"Changelog"},{path:"command",title:"command instance"},{path:"constructor",title:"Constructor"},{path:"doExport",title:"Export plugin"},{path:"drag",title:"Drag plugin"},{path:"introduction",title:"Introduction"},{path:"keyCommand",title:"KeyCommand instance"},{path:"keyboardNavigation",title:"KeyboardNavigation plugin"},{path:"markdown",title:"Markdown parse"},{path:"miniMap",title:"MiniMap plugin"},{path:"node",title:"Node instance"},{path:"render",title:"Render instance"},{path:"richText",title:"RichText plugin"},{path:"select",title:"Select plugin"},{path:"start",title:"Start"},{path:"translate",title:"Participate in translation"},{path:"utils",title:"Utility Methods"},{path:"view",title:"View instance"},{path:"watermark",title:"Watermark plugin"},{path:"xmind",title:"XMind parse"},{path:"deploy",title:"Deploy"},{path:"touchEvent",title:"TouchEvent plugin"}]}];let Nl=[{name:"中文",path:"zh"},{name:"English",path:"en"}],Sl=["introduction","start","deploy","client","translate","changelog"],El=new Array(19).fill(0).map((t,e)=>"course"+(e+1)),Ll=["constructor","node","render","view","keyCommand","command","batchExecution","richText","select","drag","keyboardNavigation","doExport","miniMap","watermark","associativeLine","touchEvent","xmind","markdown","utils"];const kl=(t,e)=>{let i=Tl.find(e=>e.lang===t),a=i.children;return e.filter(t=>a.find(e=>e.path===t)).map(t=>({path:t,name:a.find(e=>e.path===t).title}))};var zl={zh:[{groupName:"开始",list:kl("zh",Sl)},{groupName:"教程",list:kl("zh",El)},{groupName:"API",list:kl("zh",Ll)}],en:[{groupName:"Start",list:kl("en",Sl)},{groupName:"Course",list:kl("zh",El)},{groupName:"API",list:kl("en",Ll)}]};const Dl={pageCatalog:{zh:"本页目录",en:"Page catalog"},demo:{zh:"在线示例",en:"Online Demo"}},Pl=(t,e)=>Dl[t]?Dl[t][e]||Dl[t].zh:"";var Il=Pl,Fl={data(){return{lang:"",currentLangName:"",otherLangList:[]}},computed:{demoName(){return Il("demo",this.lang)}},watch:{$route(){this.init()}},created(){this.init()},methods:{init(){let t=/^\/doc\/([^\/]+)\//.exec(this.$route.path);if(t&&t[1]){this.lang=t[1];let e=Nl.find(t=>t.path===this.lang);this.currentLangName=e.name,this.otherLangList=Nl.filter(t=>t.path!==this.lang)}},toDemo(){this.$router.push("/")},handleCommand(t){let e=this.$route.path.replace(/^\/doc\/([^\/]+)\//,(...e)=>`/doc/${t}/`);this.$router.push(e)}}},Ol=Fl,Rl=(i("df59"),Object(l["a"])(Ol,Al,Ml,!1,null,"166eb54c",null)),Bl=Rl.exports,Ul=function(){var t=this,e=t._self._c;return e("div",{staticClass:"sideBarContainer"},[e("div",{staticClass:"catalogGroupList"},t._l(t.groupList,(function(i,a){return e("div",{key:a,staticClass:"catalogGroup"},[e("div",{staticClass:"catalogGroupName"},[t._v(t._s(i.groupName))]),e("div",{staticClass:"catalogList"},t._l(i.list,(function(i){return e("div",{key:a+i.path,staticClass:"catalogItem",class:{active:i.path===t.currentPath},on:{click:function(e){return t.jump(i)}}},[t._v(" "+t._s(i.name)+" ")])})),0)])})),0)])},Gl=[],Hl={data(){return{groupList:[],lang:"",currentPath:""}},created(){this.initCatalog()},watch:{$route(){this.initCatalog()}},methods:{jump(t){t.path!==this.currentPath&&this.$router.push(`/doc/${this.lang}/${t.path}`)},initCatalog(){let t=/^\/doc\/([^\/]+)\//.exec(this.$route.path);t&&t[1]&&(this.lang=t[1],this.groupList=zl[this.lang]);let e=/^\/doc\/[^\/]+\/([^\/]+)(\/|$)/.exec(this.$route.path);e&&e[1]&&(this.currentPath=e[1])}}},Wl=Hl,Yl=(i("81f9"),Object(l["a"])(Wl,Ul,Gl,!1,null,"a6144452",null)),jl=Yl.exports,Zl=function(){var t=this,e=t._self._c;return e("div",{staticClass:"catalogBarContainer"},[e("div",{staticClass:"catalogBarTitle"},[t._v(t._s(t.pageCatalogTitle))]),e("div",{staticClass:"catalogList"},[t._l(t.list,(function(i,a){return e("div",{key:i.title+a,staticClass:"catalogItem",class:{active:i.title===t.activeCatalog},on:{click:function(e){return t.scrollTo(i,a)}}},[t._v(" "+t._s(i.title)+" ")])})),-1!==t.activeCatalogIndex?e("div",{staticClass:"activeBar",style:{top:4+28*t.activeCatalogIndex+"px"}}):t._e()],2)])},Xl=[],Vl={props:{scrollTop:{type:Number}},data(){return{lang:"",list:[],activeCatalog:"",activeCatalogIndex:-1,appointCatalog:!0}},computed:{pageCatalogTitle(){return Il("pageCatalog",this.lang)}},watch:{$route(t,e){this.initLang(),this.initCatalogList(t.path,e.path)},scrollTop(){this.onScroll()},lang(t,e){e&&this.initCatalogList()}},mounted(){this.initLang(),this.initCatalogList(),this.scrollToCatalog()},methods:{initLang(){let t=/^\/doc\/([^\/]+)\//.exec(this.$route.path);t&&t[1]&&(this.lang=t[1])},initCatalogList(t,e){let i=/^\/doc\/[^\/]+\/([^\/]+)/.exec(t),a=/^\/doc\/[^\/]+\/([^\/]+)/.exec(e);if(!t&&!e||i[1]!==a[1]){this.$emit("scroll",0),this.resetActive();let t=document.getElementById("doc"),e=document.querySelectorAll("#doc h2");this.list=Array.from(e).map(e=>({title:e.textContent,top:e.offsetTop-t.offsetTop}))}},scrollToCatalog(){let t=/^\/doc\/[^\/]+\/[^\/]+\/([^\/]+)($|\/)/.exec(this.$route.path);if(t&&t[1]){let e=decodeURIComponent(t[1]),i=this.list.find(t=>t.title===e),a=this.list.findIndex(t=>t.title===e);i&&(this.activeCatalog=i.title,this.activeCatalogIndex=a,this.$emit("scroll",i.top))}},scrollTo(t,e){this.appointCatalog=!0,this.routeToNewCatalog(t.title),this.$nextTick(()=>{this.activeCatalog=t.title,this.activeCatalogIndex=e,this.scrollToCatalog()})},routeToNewCatalog(t){let e=this.$route.path,i="";i=t?/^\/doc\/[^\/]+\/[^\/]+($|\/)$/.test(e)?e.replace(/^(\/doc\/[^\/]+\/[^\/]+)($|\/)$/,"$1/"+encodeURIComponent(t)):e.replace(/^(\/doc\/[^\/]+\/[^\/]+\/)([^\/]+)($|\/)/,(...e)=>e[1]+encodeURIComponent(t)):e.replace(/^(\/doc\/[^\/]+\/[^\/]+)($|\/|.*)$/,"$1"),e!==i&&this.$router.push(i)},onScroll(){if(this.appointCatalog)return void(this.appointCatalog=!1);let t=!1;for(let e=0;e=i.top&&(!a||this.scrollTop{try{this.$refs.doc.scrollTop=t}catch(e){console.log(e)}})},onScroll(){this.scrollTop=this.$refs.doc.scrollTop}}}),_l=Ql,$l=(i("fbdd"),Object(l["a"])(_l,wl,yl,!1,null,null,null)),td=$l.exports;const ed=()=>{let t=Tl[0].children;for(let e=1;e{i.find(e=>e.path===t.path)||i.push({...t,lang:"zh"})})}};ed(),a["default"].use(c["a"]);const id=[{path:"/",name:"Edit",component:Cl},...Tl.map(t=>({path:`/doc/${t.lang}/`,redirect:`/doc/${t.lang}/introduction/`})),...Tl.map(t=>({path:`/doc/${t.lang}/`,component:td,children:t.children.map(e=>({path:e.path+"/:h?",component:()=>i("b834")(`./${e.lang||t.lang}/${e.path}/index.vue`)}))}))],ad=new c["a"]({routes:id});var od=ad;a["default"].use(ut["a"]);const nd=new ut["a"].Store({state:{mindMapData:null,isHandleLocalFile:!1,localConfig:{isZenMode:!1,openNodeRichText:!0,useLeftKeySelectionRightKeyDrag:!1},activeSidebar:""},mutations:{setMindMapData(t,e){t.mindMapData=e},setIsHandleLocalFile(t,e){t.isHandleLocalFile=e},setLocalConfig(t,e){t.localConfig={...t.localConfig,...e},pi(t.localConfig)},setActiveSidebar(t,e){t.activeSidebar=e}},actions:{getUserMindMapData(t){try{let{data:e}={data:{data:{mindMapData:ii}}};t.commit("setMindMapData",e.data)}catch(e){console.log(e)}}}});var sd=nd,rd=(i("0fae"),i("9c65"),i("0808"),i("6944")),ld=i.n(rd);a["default"].config.productionTip=!1,a["default"].prototype.$bus=new a["default"],a["default"].use($e.a),a["default"].use(ld.a),new a["default"]({render:t=>t(h),router:od,store:sd,i18n:br}).$mount("#app")},"56f5":function(t,e,i){},"59a1":function(t,e,i){},"5a74":function(t,e,i){},"5b00":function(t,e,i){"use strict";i("2f05")},"5b76":function(t,e,i){t.exports=i.p+"img/blackHumour.1fb6b9b1.jpg"},"5f93":function(t,e,i){"use strict";i("1ae6")},"5fa1":function(t,e,i){},"60ba":function(t,e,i){t.exports=i.p+"img/simpleBlack.871a26f8.jpg"},"622c":function(t,e,i){t.exports=i.p+"img/mint.7933f60a.jpg"},"674e":function(t,e,i){"use strict";i("9e6a")},6950:function(t,e,i){"use strict";i("c488")},"6ba9":function(t,e,i){},"6ec6":function(t,e,i){t.exports=i.p+"img/catalogOrganization.380bb277.jpg"},7077:function(t,e,i){t.exports=i.p+"img/coffee.fea5aeed.jpg"},7341:function(t,e,i){"use strict";i("4317")},"73cd":function(t,e,i){},"74de":function(t,e,i){"use strict";i("5a74")},7521:function(t,e,i){"use strict";i("c39b")},"75d2":function(t,e,i){"use strict";i("59a1")},7695:function(t,e,i){t.exports=i.p+"img/pinkGrape.32c2587b.jpg"},"779c":function(t,e,i){"use strict";i("21ac")},"7cc6":function(t,e,i){},"81cc":function(t,e,i){},"81f9":function(t,e,i){"use strict";i("df5b")},"8d13":function(t,e,i){"use strict";i("e2cd")},"8fec":function(t,e,i){t.exports=i.p+"img/skyGreen.4cfa829a.jpg"},"90a7":function(t,e,i){"use strict";i("2962")},"92d5":function(t,e,i){t.exports=i.p+"img/timeline.37b4d50e.jpg"},"95cb":function(t,e,i){t.exports=i.p+"img/gold.3093b3c8.jpg"},9750:function(t,e,i){"use strict";i("0441")},"97d4":function(t,e,i){"use strict";i("6ba9")},"97f6":function(t,e,i){t.exports=i.p+"img/orangeJuice.3924348d.jpg"},"9c65":function(t,e,i){},"9d9d":function(t,e,i){t.exports=i.p+"img/greenLeaf.6789e8fc.jpg"},"9e6a":function(t,e,i){},"9fba":function(t,e,i){t.exports=i.p+"img/avocado.b39de895.jpg"},a1a1:function(t,e,i){"use strict";i("1b6b")},a1b5:function(t,e,i){},afb9:function(t,e,i){t.exports=i.p+"img/lateNightOffice.5204dac8.jpg"},b0e8:function(t,e,i){"use strict";i("2710")},b131:function(t,e,i){},b383:function(t,e,i){t.exports=i.p+"img/classic.733f273c.jpg"},b73c:function(t,e,i){},b834:function(t,e,i){var a={"./en/associativeLine/index.vue":["708b","chunk-2d0d5cb9"],"./en/batchExecution/index.vue":["ed72","chunk-2d2308b0"],"./en/changelog/index.vue":["a6d3","chunk-2d208ffa"],"./en/command/index.vue":["9381","chunk-2d0e5089"],"./en/constructor/index.vue":["6a50","chunk-2d0d9fbc"],"./en/doExport/index.vue":["c6ec","chunk-2d217907"],"./en/drag/index.vue":["ff2d","chunk-2d238428"],"./en/introduction/index.vue":["7f29","chunk-f19ee390"],"./en/keyCommand/index.vue":["2f7a","chunk-2d0be174"],"./en/keyboardNavigation/index.vue":["328f","chunk-2d0b92c3"],"./en/markdown/index.vue":["8102","chunk-2d0dd3b1"],"./en/miniMap/index.vue":["b98e","chunk-2d210a7a"],"./en/node/index.vue":["c133","chunk-2d216004"],"./en/render/index.vue":["8e32","chunk-2d0e9742"],"./en/richText/index.vue":["4947","chunk-2d0c20be"],"./en/select/index.vue":["ddd1","chunk-2d2299c3"],"./en/start/index.vue":["b407","chunk-2d20f68f"],"./en/touchEvent/index.vue":["a1cd","chunk-2d207d47"],"./en/translate/index.vue":["479a","chunk-2d0c1a01"],"./en/utils/index.vue":["144f","chunk-2d0ab10b"],"./en/view/index.vue":["16c7","chunk-2d0abe0f"],"./en/watermark/index.vue":["27ad","chunk-2d0b361e"],"./en/xmind/index.vue":["f127","chunk-2d22bd06"],"./zh/associativeLine/index.vue":["20fa","chunk-2d0b1c6f"],"./zh/batchExecution/index.vue":["e9ee","chunk-2d226d0a"],"./zh/changelog/index.vue":["9ac1","chunk-2d0f026c"],"./zh/client/index.vue":["92da","chunk-2d0e524c"],"./zh/command/index.vue":["6df4","chunk-2d0db0f2"],"./zh/constructor/index.vue":["6cfb","chunk-2d0dad5f"],"./zh/course1/index.vue":["8e98","chunk-2d0e9802"],"./zh/course10/index.vue":["3f2a","chunk-2d0c5538"],"./zh/course11/index.vue":["33b0","chunk-2d0b9b64"],"./zh/course12/index.vue":["eb27","chunk-2d230098"],"./zh/course13/index.vue":["c1ec","chunk-2d216642"],"./zh/course14/index.vue":["e487","chunk-2d2254a4"],"./zh/course15/index.vue":["fb9a","chunk-2d2375fa"],"./zh/course16/index.vue":["18dc","chunk-2d0ac5dc"],"./zh/course17/index.vue":["4323","chunk-2d0c09f6"],"./zh/course18/index.vue":["91b3","chunk-2d0e4e1f"],"./zh/course19/index.vue":["ae22","chunk-f42d483e"],"./zh/course2/index.vue":["c187","chunk-2d2160a3"],"./zh/course3/index.vue":["0fcd","chunk-2d0afe0d"],"./zh/course4/index.vue":["32a6","chunk-2d0b978a"],"./zh/course5/index.vue":["3c76","chunk-2d0c4a65"],"./zh/course6/index.vue":["8e25","chunk-2d0e9726"],"./zh/course7/index.vue":["c13f","chunk-2d216037"],"./zh/course8/index.vue":["cc99","chunk-2d221c76"],"./zh/course9/index.vue":["b69b","chunk-2d20ff53"],"./zh/deploy/index.vue":["71bb","chunk-2d0d6590"],"./zh/doExport/index.vue":["1256","chunk-2d0aa978"],"./zh/drag/index.vue":["4604","chunk-2d0c14fc"],"./zh/introduction/index.vue":["4710","chunk-53cf9065"],"./zh/keyCommand/index.vue":["a43c","chunk-2d2082b9"],"./zh/keyboardNavigation/index.vue":["2c18","chunk-2d0bd54e"],"./zh/markdown/index.vue":["08d0","chunk-2d0a514a"],"./zh/miniMap/index.vue":["0168","chunk-2d0a3179"],"./zh/node/index.vue":["433b","chunk-2d0c0a44"],"./zh/render/index.vue":["6c31","chunk-2d0da701"],"./zh/richText/index.vue":["35c4","chunk-2d0ba309"],"./zh/select/index.vue":["321a","chunk-2d0b91e5"],"./zh/start/index.vue":["7e57","chunk-2d0e2326"],"./zh/touchEvent/index.vue":["e021","chunk-2d2244e0"],"./zh/translate/index.vue":["1136","chunk-2d0aa579"],"./zh/utils/index.vue":["4738","chunk-2d0c191e"],"./zh/view/index.vue":["82ca","chunk-2d0dddce"],"./zh/watermark/index.vue":["848a","chunk-2d0de01b"],"./zh/xmind/index.vue":["8427","chunk-2d0ddf37"]};function o(t){if(!i.o(a,t))return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=a[t],o=e[0];return i.e(e[1]).then((function(){return i(o)}))}o.keys=function(){return Object.keys(a)},o.id="b834",t.exports=o},b844:function(t,e,i){"use strict";i("31b0")},b9d6:function(t,e,i){},c170:function(t,e,i){},c25f:function(t,e,i){t.exports=i.p+"img/brainImpairedPink.511fee22.jpg"},c39b:function(t,e,i){},c488:function(t,e,i){},c8d5:function(t,e,i){"use strict";i("7cc6")},cf82:function(t,e,i){t.exports=i.p+"img/freshRed.1c5bde77.jpg"},d030:function(t,e,i){},d703:function(t,e,i){t.exports=i.p+"img/vitalityOrange.5dd9014f.jpg"},dc3a:function(t,e,i){t.exports=i.p+"img/default.1312a3ba.jpg"},dc61:function(t,e,i){t.exports=i.p+"img/classicBlue.4b8243c6.jpg"},df59:function(t,e,i){"use strict";i("56f5")},df5b:function(t,e,i){},e054:function(t,e,i){t.exports=i.p+"img/earthYellow.c35e546d.jpg"},e24b:function(t,e,i){t.exports=i.p+"img/timeline2.f31d52a2.jpg"},e2cd:function(t,e,i){},e561:function(t,e,i){"use strict";i("ed1c")},ea16:function(t,e,i){},eb54:function(t,e,i){t.exports=i.p+"img/freshGreen.0e344e3e.jpg"},ebaf:function(t,e,i){"use strict";i("c170")},ed0c:function(t,e,i){},ed1c:function(t,e,i){},faad:function(t,e,i){t.exports=i.p+"img/dark2.c49dc11c.jpg"},fb2a:function(t,e,i){},fbdd:function(t,e,i){"use strict";i("2ef4")},fc3f:function(t,e,i){"use strict";i("ea16")},fd00:function(t,e,i){t.exports=i.p+"img/classicGreen.c2ae7bde.jpg"}});
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d0a3179.d9ba171a.js b/tools/mind-map/dist/js/chunk-2d0a3179.d9ba171a.js
deleted file mode 100644
index 32e22774..00000000
--- a/tools/mind-map/dist/js/chunk-2d0a3179.d9ba171a.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0a3179"],{"0168":function(v,s,n){"use strict";n.r(s);var _=function(){var v=this;v._self._c;return v._m(0)},i=[function(){var v=this,s=v._self._c;return s("div",[s("h1",[v._v("MiniMap插件")]),s("blockquote",[s("p",[v._v("v0.2.11+")])]),s("p",[v._v("用于帮助快速开发小地图功能,小地图由两部分组成,一个是当前的画布内容,一个是视口框,当缩放、移动、元素过多时画布上可能只显示了思维导图的部分内容,可以通过视口框来查看当前视口所在位置,以及可以通过在小地图上拖动来快速定位。")]),s("h2",[v._v("注册")]),s("pre",{staticClass:"hljs"},[s("code",[s("span",{staticClass:"hljs-keyword"},[v._v("import")]),v._v(" MindMap "),s("span",{staticClass:"hljs-keyword"},[v._v("from")]),v._v(" "),s("span",{staticClass:"hljs-string"},[v._v("'simple-mind-map'")]),v._v("\n"),s("span",{staticClass:"hljs-keyword"},[v._v("import")]),v._v(" MiniMap "),s("span",{staticClass:"hljs-keyword"},[v._v("from")]),v._v(" "),s("span",{staticClass:"hljs-string"},[v._v("'simple-mind-map/src/plugins/MiniMap.js'")]),v._v("\n"),s("span",{staticClass:"hljs-comment"},[v._v("// import MiniMap from 'simple-mind-map/src/MiniMap.js' v0.6.0以下版本使用该路径")]),v._v("\n\nMindMap.usePlugin(MiniMap)\n")])]),s("p",[v._v("注册完且实例化"),s("code",[v._v("MindMap")]),v._v("后可通过"),s("code",[v._v("mindMap.miniMap")]),v._v("获取到该实例。")]),s("h2",[v._v("方法")]),s("h3",[v._v("calculationMiniMap(boxWidth, boxHeight)")]),s("p",[v._v("计算小地图的渲染数据,该函数内会调用"),s("code",[v._v("getMiniMap()")]),v._v("方法,所以一般使用该函数即可。")]),s("p",[s("code",[v._v("boxWidth")]),v._v(":小地图容器的宽度")]),s("p",[s("code",[v._v("boxHeight")]),v._v(":小地图容器的高度")]),s("p",[v._v("函数返回内容:")]),s("pre",{staticClass:"hljs"},[s("code",[v._v("{\n svgHTML, "),s("span",{staticClass:"hljs-comment"},[v._v("// 小地图html")]),v._v("\n viewBoxStyle, "),s("span",{staticClass:"hljs-comment"},[v._v("// 视图框的位置信息")]),v._v("\n miniMapBoxScale, "),s("span",{staticClass:"hljs-comment"},[v._v("// 视图框的缩放值")]),v._v("\n miniMapBoxLeft, "),s("span",{staticClass:"hljs-comment"},[v._v("// 视图框的left值")]),v._v("\n miniMapBoxTop, "),s("span",{staticClass:"hljs-comment"},[v._v("// 视图框的top值")]),v._v("\n}\n")])]),s("p",[v._v("小地图思路:")]),s("p",[v._v("1.准备一个容器元素"),s("code",[v._v("container")]),v._v(",定位不为"),s("code",[v._v("static")])]),s("p",[v._v("2.在"),s("code",[v._v("container")]),v._v("内创建一个小地图容器元素"),s("code",[v._v("miniMapContainer")]),v._v(",绝对定位")]),s("p",[v._v("3.在"),s("code",[v._v("container")]),v._v("内创建一个视口框元素"),s("code",[v._v("viewBoxContainer")]),v._v(",绝对定位,设置边框样式,过渡属性(可选)")]),s("p",[v._v("4.监听"),s("code",[v._v("data_change")]),v._v("和"),s("code",[v._v("view_data_change")]),v._v("事件,在该事件内调用"),s("code",[v._v("calculationMiniMap")]),v._v("方法获取计算数据,然后将"),s("code",[v._v("svgHTML")]),v._v("渲染到"),s("code",[v._v("miniMapContainer")]),v._v("元素内,并且设置"),s("code",[v._v("miniMapContainer")]),v._v("元素的样式:")]),s("pre",{staticClass:"hljs"},[s("code",[v._v(":style="),s("span",{staticClass:"hljs-string"},[v._v("\"{\n transform: `scale(${miniMapBoxScale})`,\n left: miniMapBoxLeft + 'px',\n top: miniMapBoxTop + 'px',\n}\"")]),v._v("\n")])]),s("p",[v._v("5.将"),s("code",[v._v("viewBoxStyle")]),v._v("对象设置为"),s("code",[v._v("viewBoxContainer")]),v._v("元素的样式")]),s("p",[v._v("到这一步,当画布上的思维导图变化了,小地图也会实时更新,并且视口框元素会实时反映视口在思维导图图形上的位置")]),s("p",[v._v("6.监听"),s("code",[v._v("container")]),v._v("元素的"),s("code",[v._v("mousedown")]),v._v("、"),s("code",[v._v("mousemove")]),v._v("、"),s("code",[v._v("mouseup")]),v._v("事件,分别调用下面即将介绍的三个方法即可实现鼠标拖动时画布上的思维导图也随之拖动的效果")]),s("h3",[v._v("onMousedown(e)")]),s("p",[v._v("小地图鼠标按下事件执行该函数")]),s("p",[s("code",[v._v("e")]),v._v(":事件对象")]),s("h3",[v._v("onMousemove(e, sensitivityNum = 5)")]),s("p",[v._v("小地图鼠标移动事件执行该函数")]),s("p",[s("code",[v._v("e")]),v._v(":事件对象")]),s("p",[s("code",[v._v("sensitivityNum")]),v._v(":拖动灵敏度,灵敏度越大,在小地图上拖动相同距离时实际上的画布拖动距离就越大")]),s("h3",[v._v("onMouseup()")]),s("p",[v._v("小地图鼠标松开事件执行该函数")])])}],a={},e=a,o=n("2877"),t=Object(o["a"])(e,_,i,!1,null,null,null);s["default"]=t.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d0a514a.9b7a3240.js b/tools/mind-map/dist/js/chunk-2d0a514a.9b7a3240.js
deleted file mode 100644
index 1abfb7e2..00000000
--- a/tools/mind-map/dist/js/chunk-2d0a514a.9b7a3240.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0a514a"],{"08d0":function(s,a,t){"use strict";t.r(a);var n=function(){var s=this;s._self._c;return s._m(0)},v=[function(){var s=this,a=s._self._c;return a("div",[a("h1",[s._v("Markdown解析")]),a("blockquote",[a("p",[s._v("v0.4.7+")])]),a("p",[s._v("提供导入和导出"),a("code",[s._v("Markdown")]),s._v("文件的方法。")]),a("h2",[s._v("引入")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" markdown "),a("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),a("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map/src/parse/markdown.js'")]),s._v("\n")])]),a("p",[s._v("如果使用的是"),a("code",[s._v("umd")]),s._v("格式的文件,那么可以通过如下方式获取:")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-tag"},[s._v("<"),a("span",{staticClass:"hljs-name"},[s._v("script")]),s._v(" "),a("span",{staticClass:"hljs-attr"},[s._v("src")]),s._v("="),a("span",{staticClass:"hljs-string"},[s._v('"simple-mind-map/dist/simpleMindMap.umd.min.js"')]),s._v(">")]),a("span",{staticClass:"hljs-tag"},[s._v(""),a("span",{staticClass:"hljs-name"},[s._v("script")]),s._v(">")]),s._v("\n")])]),a("pre",{staticClass:"hljs"},[a("code",[s._v("simpleMindMap.markdown\n")])]),a("h2",[s._v("方法")]),a("h3",[s._v("transformToMarkdown(data)")]),a("ul",[a("li",[a("code",[s._v("data")]),s._v(":思维导图数据,可以通过"),a("code",[s._v("mindMap.getData()")]),s._v("方法获取。")])]),a("p",[s._v("将思维导图数据转换成"),a("code",[s._v("Markdown")]),s._v("格式数据,返回的是字符串。")]),a("h3",[s._v("transformMarkdownTo(mdContent)")]),a("ul",[a("li",[a("code",[s._v("mdContent")]),s._v(":要转换的"),a("code",[s._v("Markdown")]),s._v("数据,字符串类型。")])]),a("p",[s._v("将"),a("code",[s._v("Markdown")]),s._v("字符串转换成节点树数据,返回一个"),a("code",[s._v("Promise")]),s._v("实例。可以使用"),a("code",[s._v("mindMap.setData()")]),s._v("方法将转换后的数据渲染到画布上。")])])}],_={},d=_,o=t("2877"),l=Object(o["a"])(d,n,v,!1,null,null,null);a["default"]=l.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d0aa579.5eb94d61.js b/tools/mind-map/dist/js/chunk-2d0aa579.5eb94d61.js
deleted file mode 100644
index c39e62b7..00000000
--- a/tools/mind-map/dist/js/chunk-2d0aa579.5eb94d61.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0aa579"],{1136:function(v,_,e){"use strict";e.r(_);var c=function(){var v=this;v._self._c;return v._m(0)},o=[function(){var v=this,_=v._self._c;return _("div",[_("h1",[v._v("参与翻译")]),_("blockquote",[_("p",[v._v("感谢"),_("a",{attrs:{href:"https://github.com/emircanerkul"}},[v._v("Emircan ERKUL")]),v._v("提供的第一版英文翻译。")]),_("p",[v._v("因为精力有限,目前大部分翻译都是使用机翻的,所以准确度难免有问题。")]),_("p",[v._v("目前【教程】部分是没有进行翻译的,如果你有兴趣,欢迎加入我们。")])]),_("p",[v._v("如果你也想参与翻译本文档的话,可以先克隆本仓库。")]),_("p",[v._v("翻译的文档在"),_("code",[v._v("/web/src/pages/Doc/")]),v._v("目录下,目前支持英文("),_("code",[v._v("en")]),v._v(")、简体中文("),_("code",[v._v("zh")]),v._v(")两种语言。")]),_("p",[v._v("如果是新增一种语言类型,那么可以在"),_("code",[v._v("/web/src/pages/Doc/")]),v._v("目录下创建一个新目录,然后给每个章节创建一个文件夹,你也可以直接复制已存在的语言目录下的所有章节目录进行翻译,注意,你只需要编写"),_("code",[v._v("index.md")]),v._v("文件,章节目录下的"),_("code",[v._v("index.vue")]),v._v("文件是脚本根据"),_("code",[v._v("index.md")]),v._v("自动生成的。")]),_("p",[v._v("如果是给已存在的语言类型新增翻译章节,可以在目标语言目录下创建新的章节目录,目录下只需要创建"),_("code",[v._v("index.md")]),v._v("文件即可。")]),_("p",[v._v("当你完成翻译后,可以直接提交"),_("code",[v._v("Pull requests")]),v._v("。")]),_("p",[v._v("如果你是前端程序员,想运行服务,查看文档页面的效果,如果新增章节,需要修改"),_("code",[v._v("/web/src/pages/Doc/catalogList.js")]),v._v("文件,在"),_("code",[v._v("StartList")]),v._v("或者"),_("code",[v._v("APIList")]),v._v("数组里选择合适的位置插入新章节的"),_("code",[v._v("path")]),v._v("。然后需要在"),_("code",[v._v("web")]),v._v("目录下运行"),_("code",[v._v("npm run buildDoc")]),v._v("编译目录和路由,最后"),_("code",[v._v("npm run serve")]),v._v("启动本地服务,打开以下路径即可查看文档:")]),_("p",[_("code",[v._v("ip:port/#/doc/zh/introduction")])])])}],d={},n=d,t=e("2877"),p=Object(t["a"])(n,c,o,!1,null,null,null);_["default"]=p.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d0aa978.29ca76d1.js b/tools/mind-map/dist/js/chunk-2d0aa978.29ca76d1.js
deleted file mode 100644
index 7cb8bb56..00000000
--- a/tools/mind-map/dist/js/chunk-2d0aa978.29ca76d1.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0aa978"],{1256:function(s,a,v){"use strict";v.r(a);var n=function(){var s=this;s._self._c;return s._m(0)},_=[function(){var s=this,a=s._self._c;return a("div",[a("h1",[s._v("Export 插件")]),a("p",[a("code",[s._v("Export")]),s._v("插件提供导出的功能。")]),a("h2",[s._v("注册")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" MindMap "),a("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),a("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map'")]),s._v("\n"),a("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" Export "),a("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),a("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map/src/plugins/Export.js'")]),s._v("\n"),a("span",{staticClass:"hljs-comment"},[s._v("// import Export from 'simple-mind-map/src/Export.js' v0.6.0以下版本使用该路径")]),s._v("\n\nMindMap.usePlugin(Export)\n")])]),a("p",[s._v("注册完且实例化"),a("code",[s._v("MindMap")]),s._v("后可通过"),a("code",[s._v("mindMap.doExport")]),s._v("获取到该实例。")]),a("h2",[s._v("方法")]),a("p",[s._v("所有导出的方法都是异步方法,返回一个"),a("code",[s._v("Promise")]),s._v("实例,你可以使用"),a("code",[s._v("then")]),s._v("方法获取数据,或者使用"),a("code",[s._v("async await")]),s._v("函数获取:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("mindMap.doExport.png().then("),a("span",{staticClass:"hljs-function"},[s._v("("),a("span",{staticClass:"hljs-params"},[s._v("data")]),s._v(") =>")]),s._v(" {\n "),a("span",{staticClass:"hljs-comment"},[s._v("// ...")]),s._v("\n})\n\n"),a("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" "),a("span",{staticClass:"hljs-keyword"},[s._v("export")]),s._v(" = "),a("span",{staticClass:"hljs-keyword"},[s._v("async")]),s._v(" () => {\n "),a("span",{staticClass:"hljs-keyword"},[s._v("let")]),s._v(" data = "),a("span",{staticClass:"hljs-keyword"},[s._v("await")]),s._v(" mindMap.doExport.png()\n "),a("span",{staticClass:"hljs-comment"},[s._v("// ...")]),s._v("\n}\n")])]),a("p",[s._v("返回的数据为"),a("code",[s._v("data:url")]),s._v("格式的,你可以创建一个"),a("code",[s._v("a")]),s._v("标签来触发下载:")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("let")]),s._v(" a = "),a("span",{staticClass:"hljs-built_in"},[s._v("document")]),s._v(".createElement("),a("span",{staticClass:"hljs-string"},[s._v("'a'")]),s._v(")\na.href = "),a("span",{staticClass:"hljs-string"},[s._v("'xxx.png'")]),a("span",{staticClass:"hljs-comment"},[s._v("// .png、.svg、.pdf、.md、.json、.smm")]),s._v("\na.download = "),a("span",{staticClass:"hljs-string"},[s._v("'xxx'")]),s._v("\na.click()\n")])]),a("h3",[s._v("png(name, transparent = false)")]),a("ul",[a("li",[a("p",[a("code",[s._v("name")]),s._v(":名称,可不传")])]),a("li",[a("p",[a("code",[s._v("transparent")]),s._v(":v0.5.7+,指定导出图片的背景是否是透明的")])])]),a("p",[s._v("导出为"),a("code",[s._v("png")]),s._v("。")]),a("h3",[s._v("svg(name, plusCssText)")]),a("ul",[a("li",[a("p",[a("code",[s._v("name")]),s._v(":"),a("code",[s._v("svg")]),s._v("标题")])]),a("li",[a("p",[a("code",[s._v("plusCssText")]),s._v(":v0.4.0+,当开启了节点富文本编辑,且"),a("code",[s._v("domToImage")]),s._v("传了"),a("code",[s._v("false")]),s._v("时,可以添加附加的"),a("code",[s._v("css")]),s._v("样式,如果"),a("code",[s._v("svg")]),s._v("中存在"),a("code",[s._v("dom")]),s._v("节点,想要设置一些针对节点的样式可以通过这个参数传入,比如:")])])]),a("pre",{staticClass:"hljs"},[a("code",[s._v("svg(\n "),a("span",{staticClass:"hljs-string"},[s._v("''")]),s._v(", \n "),a("span",{staticClass:"hljs-literal"},[s._v("false")]),s._v(", \n "),a("span",{staticClass:"hljs-string"},[s._v("`* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n }`")]),s._v("\n)\n")])]),a("p",[s._v("导出为"),a("code",[s._v("svg")]),s._v("。")]),a("h3",[s._v("pdf(name)")]),a("blockquote",[a("p",[s._v("v0.2.1+")])]),a("p",[a("code",[s._v("name")]),s._v(":文件名称")]),a("p",[s._v("导出为"),a("code",[s._v("pdf")]),s._v(",和其他导出方法不一样,这个方法不会返回数据,会直接触发下载。")]),a("blockquote",[a("p",[s._v("v0.6.0版本以后,需要额外注册一个ExportPDF插件")])]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" ExportPDF "),a("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),a("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map/src/plugins/ExportPDF.js'")]),s._v("\nMindMap.usePlugin(ExportPDF)\n")])]),a("h3",[s._v("json(name, withConfig)")]),a("p",[a("code",[s._v("name")]),s._v(":暂时没有用处,传空字符串即可")]),a("p",[a("code",[s._v("withConfig``:Boolean")]),s._v(", 默认为"),a("code",[s._v("true")]),s._v(",数据中是否包含配置,否则为纯思维导图节点数据")]),a("p",[s._v("返回"),a("code",[s._v("json")]),s._v("数据。")]),a("h3",[s._v("smm(name, withConfig)")]),a("p",[a("code",[s._v("simple-mind-map")]),s._v("自定义的文件格式,其实就是"),a("code",[s._v("json")]),s._v(",和"),a("code",[s._v("json")]),s._v("方法返回的数据一模一样。")]),a("h3",[s._v("md()")]),a("blockquote",[a("p",[s._v("v0.4.7+")])]),a("p",[s._v("导出"),a("code",[s._v("markdown")]),s._v("文件。")]),a("h3",[s._v("getSvgData()")]),a("p",[s._v("获取"),a("code",[s._v("svg")]),s._v("数据,异步方法,返回一个对象:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("{\n node"),a("span",{staticClass:"hljs-comment"},[s._v("// svg节点")]),s._v("\n str"),a("span",{staticClass:"hljs-comment"},[s._v("// svg字符串")]),s._v("\n}\n")])])])}],t={},o=t,e=v("2877"),p=Object(e["a"])(o,n,_,!1,null,null,null);a["default"]=p.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d0ab10b.0e224dbf.js b/tools/mind-map/dist/js/chunk-2d0ab10b.0e224dbf.js
deleted file mode 100644
index 0f581f65..00000000
--- a/tools/mind-map/dist/js/chunk-2d0ab10b.0e224dbf.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0ab10b"],{"144f":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this;e._self._c;return e._m(0)},o=[function(){var e=this,t=e._self._c;return t("div",[t("h1",[e._v("Utility Methods")]),t("h2",[e._v("Base utility Methods")]),t("p",[e._v("Reference:")]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-keyword"},[e._v("import")]),e._v(" {walk, ...} "),t("span",{staticClass:"hljs-keyword"},[e._v("from")]),e._v(" "),t("span",{staticClass:"hljs-string"},[e._v("'simple-mind-map/src/utils'")]),e._v("\n")])]),t("h3",[e._v("Methods")]),t("h4",[e._v("walk(root, parent, beforeCallback, afterCallback, isRoot, layerIndex = 0, index = 0)")]),t("p",[e._v("Depth-first traversal of a tree")]),t("p",[t("code",[e._v("root")]),e._v(": the root node of the tree to be traversed")]),t("p",[t("code",[e._v("parent")]),e._v(": parent node")]),t("p",[t("code",[e._v("beforeCallback")]),e._v(": preorder traversal callback function, callback parameters are: root, parent, isRoot, layerIndex, index")]),t("p",[t("code",[e._v("afterCallback")]),e._v(": postorder traversal callback function, callback parameters are: root, parent, isRoot, layerIndex, index")]),t("p",[t("code",[e._v("isRoot")]),e._v(": whether it is the root node")]),t("p",[t("code",[e._v("layerIndex")]),e._v(": node level")]),t("p",[t("code",[e._v("index")]),e._v(": index of the node among its siblings")]),t("p",[e._v("Example:")]),t("pre",{staticClass:"hljs"},[t("code",[e._v("walk(tree, "),t("span",{staticClass:"hljs-literal"},[e._v("null")]),e._v(", "),t("span",{staticClass:"hljs-function"},[e._v("() =>")]),e._v(" {}, "),t("span",{staticClass:"hljs-function"},[e._v("() =>")]),e._v(" {}, "),t("span",{staticClass:"hljs-literal"},[e._v("false")]),e._v(", "),t("span",{staticClass:"hljs-number"},[e._v("0")]),e._v(", "),t("span",{staticClass:"hljs-number"},[e._v("0")]),e._v(");\n")])]),t("h4",[e._v("bfsWalk(root, callback)")]),t("p",[e._v("Breadth-first traversal of a tree")]),t("h4",[e._v("resizeImgSize(width, height, maxWidth, maxHeight)")]),t("p",[e._v("Resize image size")]),t("p",[t("code",[e._v("width")]),e._v(": original width of the image")]),t("p",[t("code",[e._v("height")]),e._v(": original height of the image")]),t("p",[t("code",[e._v("maxWidth")]),e._v(": the width to resize to")]),t("p",[t("code",[e._v("maxHeight")]),e._v(": the height to resize to")]),t("p",[t("code",[e._v("maxWidth")]),e._v(" and "),t("code",[e._v("maxHeight")]),e._v(" can both be passed, or only one of them can be passed")]),t("h4",[e._v("resizeImg(imgUrl, maxWidth, maxHeight)")]),t("p",[e._v("Resize image, internally loads the image first, then calls the "),t("code",[e._v("resizeImgSize")]),e._v(" method, and returns a "),t("code",[e._v("promise")])]),t("h4",[e._v("simpleDeepClone(data)")]),t("p",[e._v("Extremely simple deep copy method, can only be used for objects that are all basic data, otherwise it will throw an error")]),t("h4",[e._v("copyRenderTree(tree, root)")]),t("p",[e._v("Copy render tree data, example:")]),t("pre",{staticClass:"hljs"},[t("code",[e._v("copyRenderTree({}, "),t("span",{staticClass:"hljs-built_in"},[e._v("this")]),e._v(".mindMap.renderer.renderTree);\n")])]),t("h4",[e._v("copyNodeTree(tree, root, removeActiveState, keepId)")]),t("ul",[t("li",[t("p",[t("code",[e._v("removeActiveState")]),e._v(": "),t("code",[e._v("Boolean")]),e._v(", default is "),t("code",[e._v("false")]),e._v(", Whether to remove the active state of the node")])]),t("li",[t("p",[t("code",[e._v("keepId")]),e._v(": v0.4.6+, "),t("code",[e._v("Boolean")]),e._v(", default is "),t("code",[e._v("false")]),e._v(", Whether to retain the "),t("code",[e._v("id")]),e._v(" of the replicated node will be deleted by default to prevent duplicate node "),t("code",[e._v("id")]),e._v(". However, for mobile node scenarios, the original "),t("code",[e._v("id")]),e._v(" of the node needs to be retained")])])]),t("p",[e._v("Copy node tree data, mainly eliminating the reference "),t("code",[e._v("node")]),e._v(" instance "),t("code",[e._v("_node")]),e._v(" and copying the "),t("code",[e._v("data")]),e._v(" of the data object, example:")]),t("pre",{staticClass:"hljs"},[t("code",[e._v("copyNodeTree({}, node);\n")])]),t("h4",[e._v("imgToDataUrl(src)")]),t("p",[e._v("Convert image to dataURL")]),t("h4",[e._v("downloadFile(file, fileName)")]),t("p",[e._v("Download file")]),t("h4",[e._v("throttle(fn, time = 300, ctx)")]),t("p",[e._v("Throttle function")]),t("h4",[e._v("asyncRun(taskList, callback = () => {})")]),t("p",[e._v("Run tasks in task list asynchronously, tasks are run synchronously without order")]),t("h4",[e._v("degToRad(deg)")]),t("blockquote",[t("p",[e._v("v0.2.24+")])]),t("p",[e._v("Angle to radian")]),t("h4",[e._v("camelCaseToHyphen(str)")]),t("blockquote",[t("p",[e._v("v0.2.24+")])]),t("p",[e._v("CamelCase to hyphen")]),t("h4",[e._v("joinFontStr({ italic, bold, fontSize, fontFamily })")]),t("blockquote",[t("p",[e._v("v0.3.4+")])]),t("p",[e._v("Join the "),t("code",[e._v("font")]),e._v(" attribute value of the "),t("code",[e._v("css")]),e._v(" font")]),t("h4",[e._v("measureText(text, { italic, bold, fontSize, fontFamily })")]),t("blockquote",[t("p",[e._v("v0.3.4+")])]),t("p",[e._v("Measure the width and height of the text, return value:")]),t("pre",{staticClass:"hljs"},[t("code",[e._v("{ width, height }\n")])]),t("h4",[e._v("getTextFromHtml(html)")]),t("p",[e._v("Extract plain text content from an HTML string.")]),t("h4",[e._v("readBlob(blob)")]),t("blockquote",[t("p",[e._v("v0.5.9+")])]),t("p",[e._v("Convert "),t("code",[e._v("blob")]),e._v(" data to "),t("code",[e._v("data:url")]),e._v(" data.")]),t("h2",[e._v("Simulate CSS background in Canvas")]),t("p",[e._v("Import:")]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-keyword"},[e._v("import")]),e._v(" drawBackgroundImageToCanvas "),t("span",{staticClass:"hljs-keyword"},[e._v("from")]),e._v(" "),t("span",{staticClass:"hljs-string"},[e._v("'simple-mind-map/src/utils/simulateCSSBackgroundInCanvas'")]),e._v("\n")])]),t("p",[e._v("Usage:")]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-keyword"},[e._v("let")]),e._v(" width = "),t("span",{staticClass:"hljs-number"},[e._v("500")]),e._v("\n"),t("span",{staticClass:"hljs-keyword"},[e._v("let")]),e._v(" height = "),t("span",{staticClass:"hljs-number"},[e._v("500")]),e._v("\n"),t("span",{staticClass:"hljs-keyword"},[e._v("let")]),e._v(" img = "),t("span",{staticClass:"hljs-string"},[e._v("'/1.jpg'")]),e._v("\n"),t("span",{staticClass:"hljs-keyword"},[e._v("let")]),e._v(" canvas = "),t("span",{staticClass:"hljs-built_in"},[e._v("document")]),e._v(".createElement("),t("span",{staticClass:"hljs-string"},[e._v("'canvas'")]),e._v(")\ncanvas.width = width\ncanvas.height = height\ndrawBackgroundImageToCanvas(ctx, width, height, img, {\n "),t("span",{staticClass:"hljs-attr"},[e._v("backgroundRepeat")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("'repeat-y'")]),e._v(",\n "),t("span",{staticClass:"hljs-attr"},[e._v("backgroundSize")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("'60%'")]),e._v(",\n "),t("span",{staticClass:"hljs-attr"},[e._v("backgroundPosition")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("'center center'")]),e._v("\n}, "),t("span",{staticClass:"hljs-function"},[e._v("("),t("span",{staticClass:"hljs-params"},[e._v("err")]),e._v(") =>")]),e._v(" {\n "),t("span",{staticClass:"hljs-keyword"},[e._v("if")]),e._v(" (err) {\n "),t("span",{staticClass:"hljs-comment"},[e._v("// fail")]),e._v("\n } "),t("span",{staticClass:"hljs-keyword"},[e._v("else")]),e._v(" {\n "),t("span",{staticClass:"hljs-comment"},[e._v("// success")]),e._v("\n }\n})\n")])]),t("h2",[e._v("LRU cache class")]),t("blockquote",[t("p",[e._v("v0.5.10+")])]),t("p",[e._v("Import:")]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-keyword"},[e._v("import")]),e._v(" Lru "),t("span",{staticClass:"hljs-keyword"},[e._v("from")]),e._v(" "),t("span",{staticClass:"hljs-string"},[e._v("'simple-mind-map/src/utils/Lru.js'")]),e._v("\n")])]),t("h3",[e._v("Constructor")]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-keyword"},[e._v("let")]),e._v(" lru = "),t("span",{staticClass:"hljs-keyword"},[e._v("new")]),e._v(" Lru(max)\n")])]),t("p",[t("code",[e._v("max")]),e._v(": Specify the maximum number of caches.")]),t("h3",[e._v("Instance properties")]),t("h4",[e._v("size")]),t("p",[e._v("The current number of caches.")]),t("h4",[e._v("pool")]),t("p",[e._v("Get cache pool.")]),t("h3",[e._v("Instance methods")]),t("h4",[e._v("add(key, value)")]),t("p",[e._v("Add cache.")]),t("h4",[e._v("delete(key)")]),t("p",[e._v("Delete cache.")]),t("h4",[e._v("has(key)")]),t("p",[e._v("Check if a cache exists.")]),t("h4",[e._v("get(key)")]),t("p",[e._v("Gets the value of a cache.")])])}],l={},v=l,n=a("2877"),i=Object(n["a"])(v,s,o,!1,null,null,null);t["default"]=i.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d0abe0f.94c914d7.js b/tools/mind-map/dist/js/chunk-2d0abe0f.94c914d7.js
deleted file mode 100644
index ab08bcfa..00000000
--- a/tools/mind-map/dist/js/chunk-2d0abe0f.94c914d7.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0abe0f"],{"16c7":function(t,e,o){"use strict";o.r(e);var a=function(){var t=this;t._self._c;return t._m(0)},n=[function(){var t=this,e=t._self._c;return e("div",[e("h1",[t._v("View instance")]),e("p",[t._v("The "),e("code",[t._v("view")]),t._v(" instance is responsible for view operations, and can be obtained through "),e("code",[t._v("mindMap.view")])]),e("h2",[t._v("Methods")]),e("h3",[t._v("fit()")]),e("blockquote",[e("p",[t._v("v0.6.0+")])]),e("p",[t._v("Zoom the mind map to fit the canvas.")]),e("h3",[t._v("translateX(step)")]),e("p",[t._v("Translate in the "),e("code",[t._v("x")]),t._v(" direction, "),e("code",[t._v("step")]),t._v(": number of pixels to translate")]),e("h3",[t._v("translateY(step)")]),e("p",[t._v("Translate in the "),e("code",[t._v("y")]),t._v(" direction, "),e("code",[t._v("step")]),t._v(": number of pixels to translate")]),e("h3",[t._v("translateXTo(x)")]),e("blockquote",[e("p",[t._v("v0.2.11+")])]),e("p",[t._v("Translate the "),e("code",[t._v("x")]),t._v(" direction to a specific position")]),e("h3",[t._v("translateYTo(y)")]),e("blockquote",[e("p",[t._v("v0.2.11+")])]),e("p",[t._v("Translate the "),e("code",[t._v("y")]),t._v(" direction to a specific position")]),e("h3",[t._v("reset()")]),e("p",[t._v("Revert to the default transformation")]),e("h3",[t._v("narrow()")]),e("p",[t._v("Zoom out")]),e("h3",[t._v("enlarge()")]),e("p",[t._v("Zoom in")]),e("h3",[t._v("getTransformData()")]),e("blockquote",[e("p",[t._v("v0.1.1+")])]),e("p",[t._v("Get the current transform data, can be used for display")]),e("h3",[t._v("setTransformData(data)")]),e("blockquote",[e("p",[t._v("v0.1.1+")])]),e("p",[t._v('Dynamically set transform data, transform data can be obtained through the getTransformData method"')]),e("h3",[t._v("setScale(scale)")]),e("blockquote",[e("p",[t._v("v0.2.17+")])]),e("p",[t._v("Setting Zoom")])])}],v={},r=v,s=o("2877"),_=Object(s["a"])(r,a,n,!1,null,null,null);e["default"]=_.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d0ac5dc.1d1bb02c.js b/tools/mind-map/dist/js/chunk-2d0ac5dc.1d1bb02c.js
deleted file mode 100644
index 0f2b0efd..00000000
--- a/tools/mind-map/dist/js/chunk-2d0ac5dc.1d1bb02c.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0ac5dc"],{"18dc":function(s,t,a){"use strict";a.r(t);var l=function(){var s=this;s._self._c;return s._m(0)},n=[function(){var s=this,t=s._self._c;return t("div",[t("h1",[s._v("如何渲染富文本的悬浮工具栏")]),t("blockquote",[t("p",[s._v("要支持节点富文本编辑需要使用富文本插件")])]),t("p",[s._v("如果开启了节点富文本编辑,那么可以对节点内的部分文本应用样式,一般当选中文本时上方会出现一个工具栏,有加粗、斜体、改变颜色等等的按钮。")]),t("p",[s._v("首先要监听"),t("code",[s._v("rich_text_selection_change")]),s._v("事件,也就是选中文本的事件:")]),t("pre",{staticClass:"hljs"},[t("code",[s._v("mindMap.on("),t("span",{staticClass:"hljs-string"},[s._v("'rich_text_selection_change'")]),s._v(", "),t("span",{staticClass:"hljs-function"},[s._v("("),t("span",{staticClass:"hljs-params"},[s._v("hasRange, rect, formatInfo")]),s._v(") =>")]),s._v(" {\n "),t("span",{staticClass:"hljs-comment"},[s._v("// hasRange(是否存在选区)")]),s._v("\n "),t("span",{staticClass:"hljs-comment"},[s._v("// rectInfo(选区的尺寸和位置信息)")]),s._v("\n "),t("span",{staticClass:"hljs-comment"},[s._v("// formatInfo(选区的文本格式化信息)")]),s._v("\n "),t("span",{staticClass:"hljs-comment"},[s._v("// 显示你的工具栏")]),s._v("\n})\n")])]),t("p",[s._v("可以通过"),t("code",[s._v("hasRange")]),s._v("来判断是否显示工具栏,工具栏的位置可以通过"),t("code",[s._v("rectInfo")]),s._v("获取,通过"),t("code",[s._v("formatInfo")]),s._v("可以获取当前选中文本的样式信息,比如已经被加粗了,那么你的加粗按钮就可以渲染为激活状态。")]),t("h3",[s._v("工具栏定位")]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-keyword"},[s._v("let")]),s._v(" left = rect.left + rect.width / "),t("span",{staticClass:"hljs-number"},[s._v("2")]),s._v(" + "),t("span",{staticClass:"hljs-string"},[s._v("'px'")]),s._v("\n"),t("span",{staticClass:"hljs-keyword"},[s._v("let")]),s._v(" top = rect.top - "),t("span",{staticClass:"hljs-number"},[s._v("60")]),s._v(" + "),t("span",{staticClass:"hljs-string"},[s._v("'px'")]),s._v("\n")])]),t("p",[s._v("计算出来的是相对于浏览器窗口左上角的位置,所以你的工具栏元素最好是添加在body元素下面,并且使用固定定位或相对定位,另外"),t("code",[s._v("z-index")]),s._v("的属性最好也设置的高一点,否则在弹窗等场景下可能会被挡住。")]),t("h3",[s._v("加粗/取消加粗")]),t("pre",{staticClass:"hljs"},[t("code",[s._v("mindMap.richText.formatText({\n "),t("span",{staticClass:"hljs-attr"},[s._v("bold")]),s._v(": "),t("span",{staticClass:"hljs-literal"},[s._v("true")]),s._v("/"),t("span",{staticClass:"hljs-literal"},[s._v("false")]),s._v("\n})\n")])]),t("h3",[s._v("斜体/取消斜体")]),t("pre",{staticClass:"hljs"},[t("code",[s._v("mindMap.richText.formatText({\n "),t("span",{staticClass:"hljs-attr"},[s._v("italic")]),s._v(": "),t("span",{staticClass:"hljs-literal"},[s._v("true")]),s._v("/"),t("span",{staticClass:"hljs-literal"},[s._v("false")]),s._v("\n})\n")])]),t("h3",[s._v("下划线/取消下划线")]),t("pre",{staticClass:"hljs"},[t("code",[s._v("mindMap.richText.formatText({\n "),t("span",{staticClass:"hljs-attr"},[s._v("underline")]),s._v(": "),t("span",{staticClass:"hljs-literal"},[s._v("true")]),s._v("/"),t("span",{staticClass:"hljs-literal"},[s._v("false")]),s._v("\n})\n")])]),t("h3",[s._v("删除线/取消删除线")]),t("pre",{staticClass:"hljs"},[t("code",[s._v("mindMap.richText.formatText({\n "),t("span",{staticClass:"hljs-attr"},[s._v("strike")]),s._v(": "),t("span",{staticClass:"hljs-literal"},[s._v("true")]),s._v("/"),t("span",{staticClass:"hljs-literal"},[s._v("false")]),s._v("\n})\n")])]),t("h3",[s._v("设置字体")]),t("pre",{staticClass:"hljs"},[t("code",[s._v("mindMap.richText.formatText({\n "),t("span",{staticClass:"hljs-attr"},[s._v("font")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'宋体, SimSun, Songti SC'")]),s._v("\n})\n")])]),t("h3",[s._v("设置字号")]),t("pre",{staticClass:"hljs"},[t("code",[s._v("mindMap.richText.formatText({\n "),t("span",{staticClass:"hljs-attr"},[s._v("font")]),s._v(": "),t("span",{staticClass:"hljs-number"},[s._v("16")]),s._v(" + "),t("span",{staticClass:"hljs-string"},[s._v("'px'")]),s._v("\n})\n")])]),t("h3",[s._v("设置文字颜色")]),t("pre",{staticClass:"hljs"},[t("code",[s._v("mindMap.richText.formatText({\n "),t("span",{staticClass:"hljs-attr"},[s._v("color")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'#fff'")]),s._v("\n})\n")])]),t("h3",[s._v("设置文字背景颜色")]),t("pre",{staticClass:"hljs"},[t("code",[s._v("mindMap.richText.formatText({\n "),t("span",{staticClass:"hljs-attr"},[s._v("background")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'#fff'")]),s._v("\n})\n")])]),t("h3",[s._v("清除样式")]),t("pre",{staticClass:"hljs"},[t("code",[s._v("mindMap.richText.removeFormat()\n")])]),t("h2",[s._v("完整示例")]),t("iframe",{staticStyle:{width:"100%",height:"455px",border:"none"},attrs:{src:"https://wanglin2.github.io/playground/#eNrFVk+P20QU/yqDUWUHEiegcjHZUlpA6mERWhUJialWjj2OB8Yzlj1Otkp96akUJCQOcOFQceHeA6J74ct0u+Vb8N6M/202aXMjUaKZN7/3fm/m/ZnZOJ/mub+qmBM48zIqeK5JyXSV36KSZ7kqNNmQgiVjouSxqqRm8ZiUaSiEWp+whNQkKVRGXLDgdhrHXMbHYW6XqFOCWLBJBtJJFubUoZIQKgXTBGWIPCKyEoJKKiMlS3AhVev7SolFWMAa8HtJKEo2atcFS3SzMOuEWqGhq7KoKgom9ReqyEJ9TyaqQWxqgPSKy6Vgd5SIYdUbkaNbZIM+XlP2V6GomL+wyHfetI76ze78gkfpfXam/cQgcegZAkIQGryRCHHobL3t79cyZoXgkh3mdDWA7/W8Ax3ofoffv4crJrc2EqWhXLK7SigM8wGbiBqoW7AY8u0gH41O0Kt0PnQZ7Q2YBxnJ1m0mt6aYCEisoioD3/wl058LhsM7D+/Fntto3lVSh7Ddwh2NrVYc6jCw1vFDHRRQZyCyYg1Oo5g6r569eP308eXjF7ZW8FM3xhAYpVzEcD4I/ra3sWVuJ8s208vzny7P/9wmu0q4g/RBvzbE/U8etMNG1upxyfWJUvpLFbOvVMk1VxI0XWwe7pi4EYQOwvTAwOvRx7Yt9TmlpOdiXp2is6clEyxCE6c2a8GCl4blCY7H0FMiPSY2+TBf+4QCP5IeOeoPA92waW16UqR909Xet+M1j3VKpuRDELj5GWQu1fiFJndVCbvehNycdTg8KwDuKSFQG4TD932vd5o8ekRMY9w6VyxWJZgv1NLbY7ZRalQG7btjbU8AN2JKEH7zqb1y4LKBiWZwT4SawYyQecxXJBJhWR5Rp4nIZyxT1DHLDYDH/WpXeACZT2F1CGwtaesVdchqwhMQDFwFYVDqh4KBeIOxCEyMxnixBPhXd+RgdVFBLCS5HQkefW8st5cIoDabHS3MXBufEPfi519f/fXk4umzy+e/uQQ6UzOs6/nUWn0bS9f691H1zb7je/n3jxdPfrk8/8dQ9rNDWAd9Ghj//eP31z8839LqT7wdzaeDgMLUHK1B3G7eCdTxp/Zx0PRZn5WZH5Uldbpi9AexbzPX1EZAPpjNbhgcIXlX3gUDRr5iZsGkI/7e3c6R1lSvGC4gxyttFW11BmTWzEwGtJPr9CnjyxTgN2ez/Kxl3s37XsuchcWSA29rNQ/jmMtlK+hchwK376C3eayLUJZYzJCrOMST/8abfDS7YVsbWIR6M0Fwxo4NAb7H/O9KJeH5Z+zTZgFC0PVt6sDrzjZrfwpDv4Bbk2cMozVZFGpdsgKMUKfpuztefFb3eqxRq/Gtdur/AJ09jnE="}})])}],e={},c=e,i=a("2877"),v=Object(i["a"])(c,l,n,!1,null,null,null);t["default"]=v.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d0afe0d.bf066d25.js b/tools/mind-map/dist/js/chunk-2d0afe0d.bf066d25.js
deleted file mode 100644
index 078bf266..00000000
--- a/tools/mind-map/dist/js/chunk-2d0afe0d.bf066d25.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0afe0d"],{"0fcd":function(s,a,t){"use strict";t.r(a);var n=function(){var s=this;s._self._c;return s._m(0)},e=[function(){var s=this,a=s._self._c;return a("div",[a("h1",[s._v("插入/删除节点、前进回退")]),a("p",[s._v("首先和操作节点内容一样,也需要监听节点的激活事件,然后禁用相关按钮。")]),a("h2",[s._v("插入子节点")]),a("p",[s._v("插入子节点很节点,执行"),a("code",[s._v("INSERT_CHILD_NODE")]),s._v("命令即可:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("mindMap.execCommand("),a("span",{staticClass:"hljs-string"},[s._v("'INSERT_CHILD_NODE'")]),s._v(")\n")])]),a("p",[s._v("这样就会在当前激活节点(如果存在多个激活节点,默认会操作第一个激活节点)下添加一个子节点。")]),a("p",[a("code",[s._v("INSERT_CHILD_NODE")]),s._v("命令还支持传入几个参数,详细详细请阅读【API】-【构造函数】-【execCommand方法】。")]),a("h2",[s._v("插入兄弟节点")]),a("p",[s._v("插入兄弟节点和插入子节点方式完全一致:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("mindMap.execCommand("),a("span",{staticClass:"hljs-string"},[s._v("'INSERT_NODE'")]),s._v(")\n")])]),a("h2",[s._v("删除节点")]),a("p",[s._v("删除节点也是执行命令:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("mindMap.execCommand("),a("span",{staticClass:"hljs-string"},[s._v("'REMOVE_NODE'")]),s._v(")\n")])]),a("p",[s._v("会删除当前激活的所有节点。")]),a("h2",[s._v("前进回退")]),a("p",[s._v("首先需要监听"),a("code",[s._v("back_forward")]),s._v("事件,事件回调中可以获取当前的历史记录总数,以及当前所在的历史记录索引,那么就可以判断当前是否处于历史记录的最开始,还是最后,然后对前进回退按钮进行禁用。")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" isStart = ref("),a("span",{staticClass:"hljs-literal"},[s._v("true")]),s._v(")\n"),a("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" isEnd = ref("),a("span",{staticClass:"hljs-literal"},[s._v("true")]),s._v(")\nmindMap.on("),a("span",{staticClass:"hljs-string"},[s._v("'back_forward'")]),s._v(", "),a("span",{staticClass:"hljs-function"},[s._v("("),a("span",{staticClass:"hljs-params"},[s._v("index, len")]),s._v(") =>")]),s._v(" {\n isStart.value = index <= "),a("span",{staticClass:"hljs-number"},[s._v("0")]),s._v("\n isEnd.value = index >= len - "),a("span",{staticClass:"hljs-number"},[s._v("1")]),s._v("\n})\n")])]),a("p",[s._v("然后前进回退调用相关命令即可:")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-comment"},[s._v("// 回退一次")]),s._v("\nmindMap.execCommand("),a("span",{staticClass:"hljs-string"},[s._v("'BACK'")]),s._v(")\n\n"),a("span",{staticClass:"hljs-comment"},[s._v("// 前进一次")]),s._v("\nmindMap.execCommand("),a("span",{staticClass:"hljs-string"},[s._v("'FORWARD'")]),s._v(")\n")])]),a("h2",[s._v("完整示例")]),a("iframe",{staticStyle:{width:"100%",height:"455px",border:"none"},attrs:{src:"https://wanglin2.github.io/playground/#eNrFVt1qG0cUfpXTLUVykVYy9EqVRBxZpaaxXZTSXmSCWe2OpGl2Z5bdkeRgBCYkkP7RtKWU1tCm0NJetKUXpRCnIS/jtZ236Jmd/dMPWLmKYMXOnHO+78ycM9/OkbHl++ZkTI2G0QztgPkSQirHfptw5vkikHAEAR1UQPBdMeaSOhUIR5brimmPDmAGg0B4UEKEUhaxy7iza/naRIwQp11a9XC26lk+MQgHINylEtSc8mwBH7su4YTXanD519/Rs2+jT764fH4Snfz44viYcFvwUAILb0oLCVoqpbIMxnQjN3W5M29QJAgXPfsGsc6fH5//8/Tih/uXn967uPckevjd5c+/p8GWLdmE7gmHhgiRL6986zbiaJS5RPqWfQc9yxvQasORokpWYtJDaneE51ncKZeub3XeKyHCLAWJ15SCDEQwtQKV9FU47+z3PtrqbRehzr/8Onrwa/TgfvTfT3pJ2U7wkAZSLWYN5J29m93eBwd7+9vdFeh/PloF3Rkx13k5/M67Oze2l1iih49ffP/LPIVDsS/iUqyB3uvu7n/YncfN+rS8HK36jE7T/izHJgDqNsAR9tijXJpDKrsuVa/X7+4gRRLZEVxajNOgtFHRUY4lrYZGVz9iqAliFKb0tKSHUk0T4/zxk2St8QlQv1kCphxtta0B5cr5Vo6xALeSZZHp7PTzi9PfFsnmCVeQ3s5tRb9XlEH6msylcYwz2RMibvD3RcgkExwjSy4dyFIFSjaWDssUR8023tYyAIDtdnHyVfToD52TloOz08/Onv5bbC/ByyWOyAdaEhCwrIYVUP83WCjznoKibJgTyx2rlk39NH3CTmR2+LWOrCZWqnKQqIJiRhM9rIBLeZEVt0DLYMYZ+0GzBfXcA9Vwwd5uKSSowmaam3qaNa36qPc4kBSl2pIURwBNh03Adq0wbBEjyXObeoIYsTlxYE5uzU4JujRraC06pkhSCLdvKRdtJLLZH0spOFyzXWbfQRe1EcSASZUNcPRasl6M0LvXrOmABADxFwGSTZzDwB1RCHEVrkbIVTQHKdYbt3IoR9DGPTfay2K8LkGmpeuzpKJ8NUWupWugF8V4ATovZfrWrBU6BYehvOvqprmW3AGIYdb0hz9RW5OGnmmHITGyM2kWmirt7ilz5KgBm/X6G7EfgJ8d8oAiI2YfG2J9UM/ri82XQuWBVj8U7ljqQMBjMJANqCcjKfx8sEw/omw4Qve36nX/MGVezftmyuxZwZAhb4rqW47D+DCdyFI3k7OwZsabaQZJ0tkYAfEcxzUwKoaugLpqmR+HguPNLobHlosNWIFMvImBFzet2GYNX80AP53Mo6pY1X4gptijCEKMRHxXXOZ07HKpVVSS28yY/Q8ZbqFI"}})])}],i={},l=i,v=t("2877"),c=Object(v["a"])(l,n,e,!1,null,null,null);a["default"]=c.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d0b1c6f.f3c34e9c.js b/tools/mind-map/dist/js/chunk-2d0b1c6f.f3c34e9c.js
deleted file mode 100644
index 1418e16e..00000000
--- a/tools/mind-map/dist/js/chunk-2d0b1c6f.f3c34e9c.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0b1c6f"],{"20fa":function(s,v,e){"use strict";e.r(v);var i=function(){var s=this;s._self._c;return s._m(0)},_=[function(){var s=this,v=s._self._c;return v("div",[v("h1",[s._v("AssociativeLine 插件")]),v("blockquote",[v("p",[s._v("v0.4.5+")])]),v("blockquote",[v("p",[s._v("调整关联线控制点的功能从v0.4.6+开始支持")])]),v("blockquote",[v("p",[s._v("关联性支持文本编辑从v0.5.11+开始支持")])]),v("p",[s._v("该插件用于支持添加关联线。")]),v("h2",[s._v("注册")]),v("pre",{staticClass:"hljs"},[v("code",[v("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" MindMap "),v("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),v("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map'")]),s._v("\n"),v("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" AssociativeLine "),v("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),v("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map/src/plugins/AssociativeLine.js'")]),s._v("\n"),v("span",{staticClass:"hljs-comment"},[s._v("// import AssociativeLine from 'simple-mind-map/src/AssociativeLine.js' v0.6.0以下版本使用该路径")]),s._v("\n\nMindMap.usePlugin(AssociativeLine)\n")])]),v("p",[s._v("注册完且实例化"),v("code",[s._v("MindMap")]),s._v("后可通过"),v("code",[s._v("mindMap.associativeLine")]),s._v("获取到该实例。")]),v("h2",[s._v("配置")]),v("p",[s._v("支持修改关联线的粗细和颜色,分为默认状态和激活状态。配置如下:")]),v("ul",[v("li",[v("p",[v("code",[s._v("associativeLineWidth")]),s._v(":关联线默认状态的粗细,默认值为"),v("code",[s._v("2")])])]),v("li",[v("p",[v("code",[s._v("associativeLineColor")]),s._v(":关联线默认状态的颜色,默认值为"),v("code",[s._v("rgb(51, 51, 51)")])])]),v("li",[v("p",[v("code",[s._v("associativeLineActiveWidth")]),s._v(":关联线激活状态的粗细,默认值为"),v("code",[s._v("8")])])]),v("li",[v("p",[v("code",[s._v("associativeLineActiveColor")]),s._v(":关联线激活状态的颜色,默认值为"),v("code",[s._v("rgba(2, 167, 240, 1)")])])])]),v("p",[s._v("配置以主题的方式提供,所以如果想要修改这四个属性,可以通过"),v("code",[s._v("mindMap.setThemeConfig(config)")]),s._v("方法进行修改。")]),v("h2",[s._v("属性")]),v("h3",[s._v("mindMap.associativeLine.lineList")]),v("p",[s._v("当前所有连接线数据,数组类型,数组的每一项也是一个数组:")]),v("pre",{staticClass:"hljs"},[v("code",[s._v("[\n path, "),v("span",{staticClass:"hljs-comment"},[s._v("// 连接线节点")]),s._v("\n clickPath, "),v("span",{staticClass:"hljs-comment"},[s._v("// 不可见的点击线节点")]),s._v("\n node, "),v("span",{staticClass:"hljs-comment"},[s._v("// 起始节点")]),s._v("\n toNode "),v("span",{staticClass:"hljs-comment"},[s._v("// 目标节点")]),s._v("\n]\n")])]),v("h3",[s._v("mindMap.associativeLine.activeLine")]),v("p",[s._v("当前激活的连接线,数组类型,同"),v("code",[s._v("lineList")]),s._v("数组的每一项的结构。")]),v("h2",[s._v("方法")]),v("h3",[s._v("renderAllLines()")]),v("p",[s._v("重新渲染所有关联线。")]),v("h3",[s._v("removeAllLines()")]),v("p",[s._v("移除所有关联线。")]),v("h3",[s._v("createLineFromActiveNode()")]),v("p",[s._v("从当前激活节点开始创建关联线,如果有多个激活节点,默认为第一个节点。")]),v("p",[s._v("调用该方法后,会从第一个激活节点到当前鼠标实时位置渲染一条关联线,当点击某个目标节点后则代表创建完成,会在第一个激活节点和点击节点之间渲染一条关联线。")]),v("h3",[s._v("createLine(fromNode)")]),v("p",[s._v("从指定节点开始创建关联线。")]),v("p",[s._v("调用该方法后,会从指定节点到当前鼠标实时位置渲染一条关联线,当点击某个目标节点后则代表创建完成,会在指定节点和点击节点之间渲染一条关联线。")]),v("h3",[s._v("addLine(fromNode, toNode)")]),v("p",[s._v("直接添加一条关联线。")]),v("p",[s._v("调用该方法,会直接创建一条从"),v("code",[s._v("fromNode")]),s._v("到"),v("code",[s._v("toNode")]),s._v("节点的关联线。")]),v("h3",[s._v("removeLine()")]),v("p",[s._v("删除当前激活的关联线。点击某条关联线则视为激活。")]),v("h3",[s._v("clearActiveLine()")]),v("p",[s._v("清除当前激活的关联线的激活状态。")])])}],n={},a=n,o=e("2877"),t=Object(o["a"])(a,i,_,!1,null,null,null);v["default"]=t.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d0b361e.f24689bd.js b/tools/mind-map/dist/js/chunk-2d0b361e.f24689bd.js
deleted file mode 100644
index 98b1cf9f..00000000
--- a/tools/mind-map/dist/js/chunk-2d0b361e.f24689bd.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0b361e"],{"27ad":function(s,a,t){"use strict";t.r(a);var e=function(){var s=this;s._self._c;return s._m(0)},n=[function(){var s=this,a=s._self._c;return a("div",[a("h1",[s._v("Watermark plugin")]),a("blockquote",[a("p",[s._v("0.2.24+")])]),a("p",[a("code",[s._v("Watermark")]),s._v(" instance is responsible for displaying the watermark.")]),a("p",[s._v("Please refer to the "),a("a",{attrs:{href:"/mind-map/#/doc/zh/constructor"}},[s._v("Instantiation Options")]),s._v(" of the "),a("code",[s._v("MindMap")]),s._v(" class for configuration.")]),a("h2",[s._v("Register")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" MindMap "),a("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),a("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map'")]),s._v("\n"),a("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" Watermark "),a("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),a("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map/src/plugins/Watermark.js'")]),s._v("\n"),a("span",{staticClass:"hljs-comment"},[s._v("// import Watermark from 'simple-mind-map/src/Watermark.js' Use this path for versions below v0.6.0")]),s._v("\n\nMindMap.usePlugin(Watermark)\n")])]),a("p",[s._v("After registration and instantiation of "),a("code",[s._v("MindMap")]),s._v(", the instance can be obtained through "),a("code",[s._v("mindMap.watermark")]),s._v(".")]),a("h2",[s._v("Methods")]),a("h3",[s._v("draw()")]),a("p",[s._v("Redraw the watermark.")]),a("p",[s._v("Note: For imprecise rendering, some watermarks beyond the visible area will be drawn. If you have extreme performance requirements, it is recommended to develop the watermark function yourself.")]),a("h3",[s._v("updateWatermark(config)")]),a("p",[s._v("Update watermark config. Example:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("mindMap.watermark.updateWatermark({\n "),a("span",{staticClass:"hljs-attr"},[s._v("text")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'Watermark text'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("lineSpacing")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("100")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("textSpacing")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("100")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("angle")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("50")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("textStyle")]),s._v(": {\n "),a("span",{staticClass:"hljs-attr"},[s._v("color")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'#000'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("opacity")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("1")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("fontSize")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("20")]),s._v("\n }\n})\n")])]),a("h3",[s._v("hasWatermark()")]),a("blockquote",[a("p",[s._v("v0.3.2+")])]),a("p",[s._v("Gets whether the watermark exists.")])])}],r={},i=r,l=t("2877"),v=Object(l["a"])(i,e,n,!1,null,null,null);a["default"]=v.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d0b91e5.fadbdc10.js b/tools/mind-map/dist/js/chunk-2d0b91e5.fadbdc10.js
deleted file mode 100644
index 5639ab63..00000000
--- a/tools/mind-map/dist/js/chunk-2d0b91e5.fadbdc10.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0b91e5"],{"321a":function(s,e,t){"use strict";t.r(e);var n=function(){var s=this;s._self._c;return s._m(0)},l=[function(){var s=this,e=s._self._c;return e("div",[e("h1",[s._v("Select 插件")]),e("p",[e("code",[s._v("Select")]),s._v("插件提供鼠标右键多选节点的功能。")]),e("h2",[s._v("注册")]),e("pre",{staticClass:"hljs"},[e("code",[e("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" MindMap "),e("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),e("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map'")]),s._v("\n"),e("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" Select "),e("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),e("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map/src/plugins/Select.js'")]),s._v("\n"),e("span",{staticClass:"hljs-comment"},[s._v("// import Select from 'simple-mind-map/src/Select.js' v0.6.0以下版本使用该路径")]),s._v("\n\nMindMap.usePlugin(Select)\n")])]),e("p",[s._v("注册完且实例化"),e("code",[s._v("MindMap")]),s._v("后可通过"),e("code",[s._v("mindMap.select")]),s._v("获取到该实例。")]),e("h2",[s._v("方法")]),e("h3",[s._v("toPos(x, y)")]),e("p",[s._v("转换鼠标位置为相对于容器"),e("code",[s._v("el")]),s._v("的位置")])])}],a={},c=a,i=t("2877"),v=Object(i["a"])(c,n,l,!1,null,null,null);e["default"]=v.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d0b92c3.52bac6b0.js b/tools/mind-map/dist/js/chunk-2d0b92c3.52bac6b0.js
deleted file mode 100644
index 75b2921f..00000000
--- a/tools/mind-map/dist/js/chunk-2d0b92c3.52bac6b0.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0b92c3"],{"328f":function(e,t,o){"use strict";o.r(t);var n=function(){var e=this;e._self._c;return e._m(0)},a=[function(){var e=this,t=e._self._c;return t("div",[t("h1",[e._v("KeyboardNavigation plugin")]),t("blockquote",[t("p",[e._v("v0.2.17+")])]),t("p",[t("code",[e._v("KeyboardNavigation")]),e._v(" plugin provides keyboard navigation function, that is, when you press the direction key, it will automatically find the next node and activate it.")]),t("h2",[e._v("Register")]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-keyword"},[e._v("import")]),e._v(" MindMap "),t("span",{staticClass:"hljs-keyword"},[e._v("from")]),e._v(" "),t("span",{staticClass:"hljs-string"},[e._v("'simple-mind-map'")]),e._v("\n"),t("span",{staticClass:"hljs-keyword"},[e._v("import")]),e._v(" KeyboardNavigation "),t("span",{staticClass:"hljs-keyword"},[e._v("from")]),e._v(" "),t("span",{staticClass:"hljs-string"},[e._v("'simple-mind-map/src/plugins/KeyboardNavigation.js'")]),e._v("\n"),t("span",{staticClass:"hljs-comment"},[e._v("// import KeyboardNavigation from 'simple-mind-map/src/KeyboardNavigation.js' Use this path for versions below v0.6.0")]),e._v("\n\nMindMap.usePlugin(KeyboardNavigation)\n")])]),t("p",[e._v("After registration and instantiation of "),t("code",[e._v("MindMap")]),e._v(", the instance can be obtained through "),t("code",[e._v("mindMap.keyboardNavigation")]),e._v(".")]),t("h2",[e._v("Methods")]),t("h3",[e._v("focus(dir)")]),t("p",[t("code",[e._v("dir")]),e._v(":Which direction to find the next node,Optional value:"),t("code",[e._v("Left")]),e._v("、 "),t("code",[e._v("Up")]),e._v("、 "),t("code",[e._v("Right")]),e._v("、 "),t("code",[e._v("Down")])]),t("p",[e._v("Focus on the next node")]),t("h3",[e._v("getNodeRect(node)")]),t("p",[t("code",[e._v("node")]),e._v(":Node")]),t("p",[e._v("Get the location information of the node and return an object:")]),t("pre",{staticClass:"hljs"},[t("code",[e._v("{\n left,\n top,\n right,\n bottom\n}\n")])]),t("h3",[e._v("getDistance(node1Rect, node2Rect)")]),t("p",[t("code",[e._v("node1Rect")]),e._v("、"),t("code",[e._v("node2Rect")]),e._v(":The location data of nodes can be obtained through the "),t("code",[e._v("getNodeRect(node)")])]),t("p",[e._v("Get the distance between two nodes")]),t("h3",[e._v("getCenter(nodeRect)")]),t("p",[t("code",[e._v("nodeRect")]),e._v(":The location data of nodes can be obtained through the "),t("code",[e._v("getNodeRect(node)")])]),t("p",[e._v("Get the center point of the node")])])}],i={},s=i,d=o("2877"),v=Object(d["a"])(s,n,a,!1,null,null,null);t["default"]=v.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d0b978a.f02411f2.js b/tools/mind-map/dist/js/chunk-2d0b978a.f02411f2.js
deleted file mode 100644
index 1f34522a..00000000
--- a/tools/mind-map/dist/js/chunk-2d0b978a.f02411f2.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0b978a"],{"32a6":function(s,a,t){"use strict";t.r(a);var n=function(){var s=this;s._self._c;return s._m(0)},l=[function(){var s=this,a=s._self._c;return a("div",[a("h1",[s._v("设置节点样式")]),a("p",[s._v("本节将介绍如何更新当前激活节点的样式。")]),a("p",[s._v("样式总体上分为两类,一是常态的样式,二是激活的样式。设置的方法都是"),a("code",[s._v("setStyle")]),s._v("方法,通过第三个参数进行指定:")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-comment"},[s._v("// 设置常态样式")]),s._v("\nnode.setStyle("),a("span",{staticClass:"hljs-string"},[s._v("'样式属性'")]),s._v(", "),a("span",{staticClass:"hljs-string"},[s._v("'样式值'")]),s._v(")\n\n"),a("span",{staticClass:"hljs-comment"},[s._v("// 设置激活样式")]),s._v("\nnode.setStyle("),a("span",{staticClass:"hljs-string"},[s._v("'样式属性'")]),s._v(", "),a("span",{staticClass:"hljs-string"},[s._v("'样式值'")]),s._v(", "),a("span",{staticClass:"hljs-literal"},[s._v("true")]),s._v(")\n")])]),a("h2",[s._v("设置常态样式")]),a("h3",[s._v("设置文字样式")]),a("p",[s._v("文字样式目前支持:"),a("code",[s._v("字体")]),s._v("、"),a("code",[s._v("字号")]),s._v("、"),a("code",[s._v("行高")]),s._v("、"),a("code",[s._v("颜色")]),s._v("、"),a("code",[s._v("加粗")]),s._v("、"),a("code",[s._v("斜体")]),s._v("、"),a("code",[s._v("划线")]),s._v("。")]),a("p",[s._v("这些样式选择的UI界面都需要你自行开发,然后调用节点的"),a("code",[s._v("setStyle")]),s._v("方法更新。")]),a("p",[s._v("同样首先需要监听节点的激活事件来换取当前激活的节点:")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" activeNodes = shallowRef([])\nmindMap.on("),a("span",{staticClass:"hljs-string"},[s._v("'node_active'")]),s._v(", "),a("span",{staticClass:"hljs-function"},[s._v("("),a("span",{staticClass:"hljs-params"},[s._v("node, activeNodeList")]),s._v(") =>")]),s._v(" {\n activeNodes.value = activeNodeList\n})\n")])]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-comment"},[s._v("// 设置字体")]),s._v("\nactiveNodes.value.forEach("),a("span",{staticClass:"hljs-function"},[a("span",{staticClass:"hljs-params"},[s._v("node")]),s._v(" =>")]),s._v(" {\n node.setStyle("),a("span",{staticClass:"hljs-string"},[s._v("'fontFamily'")]),s._v(", "),a("span",{staticClass:"hljs-string"},[s._v("'宋体, SimSun, Songti SC'")]),s._v(")\n})\n\n"),a("span",{staticClass:"hljs-comment"},[s._v("// 设置字号")]),s._v("\nactiveNodes.value.forEach("),a("span",{staticClass:"hljs-function"},[a("span",{staticClass:"hljs-params"},[s._v("node")]),s._v(" =>")]),s._v(" {\n node.setStyle("),a("span",{staticClass:"hljs-string"},[s._v("'fontSize'")]),s._v(", "),a("span",{staticClass:"hljs-number"},[s._v("16")]),s._v(")\n})\n\n"),a("span",{staticClass:"hljs-comment"},[s._v("// 设置行高")]),s._v("\nactiveNodes.value.forEach("),a("span",{staticClass:"hljs-function"},[a("span",{staticClass:"hljs-params"},[s._v("node")]),s._v(" =>")]),s._v(" {\n node.setStyle("),a("span",{staticClass:"hljs-string"},[s._v("'lineHeight'")]),s._v(", "),a("span",{staticClass:"hljs-number"},[s._v("1.5")]),s._v(")\n})\n\n"),a("span",{staticClass:"hljs-comment"},[s._v("// 设置颜色")]),s._v("\nactiveNodes.value.forEach("),a("span",{staticClass:"hljs-function"},[a("span",{staticClass:"hljs-params"},[s._v("node")]),s._v(" =>")]),s._v(" {\n node.setStyle("),a("span",{staticClass:"hljs-string"},[s._v("'color'")]),s._v(", "),a("span",{staticClass:"hljs-string"},[s._v("'#fff'")]),s._v(")\n})\n\n"),a("span",{staticClass:"hljs-comment"},[s._v("// 设置加粗")]),s._v("\nactiveNodes.value.forEach("),a("span",{staticClass:"hljs-function"},[a("span",{staticClass:"hljs-params"},[s._v("node")]),s._v(" =>")]),s._v(" {\n node.setStyle("),a("span",{staticClass:"hljs-string"},[s._v("'fontWeight'")]),s._v(", "),a("span",{staticClass:"hljs-string"},[s._v("'bold'")]),s._v(")"),a("span",{staticClass:"hljs-comment"},[s._v("// node.setStyle('fontWeight', 'normal')")]),s._v("\n})\n\n"),a("span",{staticClass:"hljs-comment"},[s._v("// 设置划线")]),s._v("\nactiveNodes.value.forEach("),a("span",{staticClass:"hljs-function"},[a("span",{staticClass:"hljs-params"},[s._v("node")]),s._v(" =>")]),s._v(" {\n "),a("span",{staticClass:"hljs-comment"},[s._v("// 下划线")]),s._v("\n node.setStyle("),a("span",{staticClass:"hljs-string"},[s._v("'textDecoration'")]),s._v(", "),a("span",{staticClass:"hljs-string"},[s._v("'underline'")]),s._v(")\n "),a("span",{staticClass:"hljs-comment"},[s._v("// 删除线")]),s._v("\n node.setStyle("),a("span",{staticClass:"hljs-string"},[s._v("'textDecoration'")]),s._v(", "),a("span",{staticClass:"hljs-string"},[s._v("'line-through'")]),s._v(")\n "),a("span",{staticClass:"hljs-comment"},[s._v("// 上划线")]),s._v("\n node.setStyle("),a("span",{staticClass:"hljs-string"},[s._v("'textDecoration'")]),s._v(", "),a("span",{staticClass:"hljs-string"},[s._v("'overline'")]),s._v(")\n})\n")])]),a("h3",[s._v("设置边框样式")]),a("p",[s._v("边框样式支持设置:"),a("code",[s._v("颜色")]),s._v("、"),a("code",[s._v("虚线")]),s._v("、"),a("code",[s._v("线宽")]),s._v("、"),a("code",[s._v("圆角")]),s._v("。")]),a("p",[s._v("设置边框样式前请先检查线宽是否被设置成了0。")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-comment"},[s._v("// 设置边框颜色")]),s._v("\nactiveNodes.value.forEach("),a("span",{staticClass:"hljs-function"},[a("span",{staticClass:"hljs-params"},[s._v("node")]),s._v(" =>")]),s._v(" {\n node.setStyle("),a("span",{staticClass:"hljs-string"},[s._v("'borderColor'")]),s._v(", "),a("span",{staticClass:"hljs-string"},[s._v("'#000'")]),s._v(")\n})\n\n"),a("span",{staticClass:"hljs-comment"},[s._v("// 设置边框虚线")]),s._v("\nactiveNodes.value.forEach("),a("span",{staticClass:"hljs-function"},[a("span",{staticClass:"hljs-params"},[s._v("node")]),s._v(" =>")]),s._v(" {\n node.setStyle("),a("span",{staticClass:"hljs-string"},[s._v("'borderDasharray'")]),s._v(", "),a("span",{staticClass:"hljs-string"},[s._v("'5,5'")]),s._v(")"),a("span",{staticClass:"hljs-comment"},[s._v("// node.setStyle('borderDasharray', 'none')")]),s._v("\n})\n\n"),a("span",{staticClass:"hljs-comment"},[s._v("// 设置边框宽度")]),s._v("\nactiveNodes.value.forEach("),a("span",{staticClass:"hljs-function"},[a("span",{staticClass:"hljs-params"},[s._v("node")]),s._v(" =>")]),s._v(" {\n node.setStyle("),a("span",{staticClass:"hljs-string"},[s._v("'borderWidth'")]),s._v(", "),a("span",{staticClass:"hljs-number"},[s._v("2")]),s._v(")\n})\n\n"),a("span",{staticClass:"hljs-comment"},[s._v("// 设置边框圆角")]),s._v("\nactiveNodes.value.forEach("),a("span",{staticClass:"hljs-function"},[a("span",{staticClass:"hljs-params"},[s._v("node")]),s._v(" =>")]),s._v(" {\n node.setStyle("),a("span",{staticClass:"hljs-string"},[s._v("'borderRadius'")]),s._v(", "),a("span",{staticClass:"hljs-number"},[s._v("5")]),s._v(")\n})\n")])]),a("h3",[s._v("设置背景样式")]),a("p",[s._v("背景样式也就是背景颜色。")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("activeNodes.value.forEach("),a("span",{staticClass:"hljs-function"},[a("span",{staticClass:"hljs-params"},[s._v("node")]),s._v(" =>")]),s._v(" {\n node.setStyle("),a("span",{staticClass:"hljs-string"},[s._v("'fillColor'")]),s._v(", "),a("span",{staticClass:"hljs-string"},[s._v("'#fff'")]),s._v(")\n})\n")])]),a("h3",[s._v("设置形状样式")]),a("p",[s._v("目前支持以下形状:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("[\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'矩形'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'rectangle'")]),s._v("\n },\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'菱形'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'diamond'")]),s._v("\n },\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'平行四边形'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'parallelogram'")]),s._v("\n },\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'圆角矩形'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'roundedRectangle'")]),s._v("\n },\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'八角矩形'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'octagonalRectangle'")]),s._v("\n },\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'外三角矩形'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'outerTriangularRectangle'")]),s._v("\n },\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'内三角矩形'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'innerTriangularRectangle'")]),s._v("\n },\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'椭圆'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'ellipse'")]),s._v("\n },\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'圆'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'circle'")]),s._v("\n }\n]\n")])]),a("p",[s._v("设置形状前请先确认边框宽度是否被设置成了0。")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("activeNodes.value.forEach("),a("span",{staticClass:"hljs-function"},[a("span",{staticClass:"hljs-params"},[s._v("node")]),s._v(" =>")]),s._v(" {\n node.setStyle("),a("span",{staticClass:"hljs-string"},[s._v("'shape'")]),s._v(", "),a("span",{staticClass:"hljs-string"},[s._v("'circle'")]),s._v(")\n})\n")])]),a("h3",[s._v("设置线条样式")]),a("p",[s._v("节点线条支持设置:"),a("code",[s._v("颜色")]),s._v("、"),a("code",[s._v("虚线")]),s._v("、"),a("code",[s._v("线宽")]),s._v("。")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-comment"},[s._v("// 设置线条颜色")]),s._v("\nactiveNodes.value.forEach("),a("span",{staticClass:"hljs-function"},[a("span",{staticClass:"hljs-params"},[s._v("node")]),s._v(" =>")]),s._v(" {\n node.setStyle("),a("span",{staticClass:"hljs-string"},[s._v("'lineColor'")]),s._v(", "),a("span",{staticClass:"hljs-string"},[s._v("'#000'")]),s._v(")\n})\n\n"),a("span",{staticClass:"hljs-comment"},[s._v("// 设置线条虚线")]),s._v("\nactiveNodes.value.forEach("),a("span",{staticClass:"hljs-function"},[a("span",{staticClass:"hljs-params"},[s._v("node")]),s._v(" =>")]),s._v(" {\n node.setStyle("),a("span",{staticClass:"hljs-string"},[s._v("'lineDasharray'")]),s._v(", "),a("span",{staticClass:"hljs-string"},[s._v("'5, 5, 1, 5'")]),s._v(")"),a("span",{staticClass:"hljs-comment"},[s._v("// node.setStyle('lineDasharray', 'none')")]),s._v("\n})\n\n"),a("span",{staticClass:"hljs-comment"},[s._v("// 设置线条宽度")]),s._v("\nactiveNodes.value.forEach("),a("span",{staticClass:"hljs-function"},[a("span",{staticClass:"hljs-params"},[s._v("node")]),s._v(" =>")]),s._v(" {\n node.setStyle("),a("span",{staticClass:"hljs-string"},[s._v("'lineWidth'")]),s._v(", "),a("span",{staticClass:"hljs-number"},[s._v("3")]),s._v(")\n})\n")])]),a("h3",[s._v("设置节点内边距")]),a("p",[s._v("节点内边距支持设置水平和垂直方向的内边距。")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("activeNodes.value.forEach("),a("span",{staticClass:"hljs-function"},[a("span",{staticClass:"hljs-params"},[s._v("node")]),s._v(" =>")]),s._v(" {\n node.setStyle("),a("span",{staticClass:"hljs-string"},[s._v("'paddingX'")]),s._v(", "),a("span",{staticClass:"hljs-number"},[s._v("50")]),s._v(")\n node.setStyle("),a("span",{staticClass:"hljs-string"},[s._v("'paddingY'")]),s._v(", "),a("span",{staticClass:"hljs-number"},[s._v("50")]),s._v(")\n})\n")])]),a("h2",[s._v("设置激活样式")]),a("p",[s._v("激活样式只支持设置边框相关样式和背景。可以通过如下方式获取支持的属性:")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" { supportActiveStyle } "),a("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),a("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map/src/themes/default'")]),s._v("\n\n"),a("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" checkIsSupportActive = "),a("span",{staticClass:"hljs-function"},[s._v("("),a("span",{staticClass:"hljs-params"},[s._v("prop")]),s._v(") =>")]),s._v(" {\n "),a("span",{staticClass:"hljs-keyword"},[s._v("return")]),s._v(" supportActiveStyle.includes(prop)\n}\n")])]),a("p",[s._v("其他和数值常态样式是一样的,只需要给"),a("code",[s._v("setStyle")]),s._v("方法传入第三个参数:")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-comment"},[s._v("// 设置边框颜色")]),s._v("\nactiveNodes.value.forEach("),a("span",{staticClass:"hljs-function"},[a("span",{staticClass:"hljs-params"},[s._v("node")]),s._v(" =>")]),s._v(" {\n node.setStyle("),a("span",{staticClass:"hljs-string"},[s._v("'borderColor'")]),s._v(", "),a("span",{staticClass:"hljs-string"},[s._v("'#000'")]),s._v(", "),a("span",{staticClass:"hljs-literal"},[s._v("true")]),s._v(")\n})\n\n"),a("span",{staticClass:"hljs-comment"},[s._v("// 设置边框虚线")]),s._v("\nactiveNodes.value.forEach("),a("span",{staticClass:"hljs-function"},[a("span",{staticClass:"hljs-params"},[s._v("node")]),s._v(" =>")]),s._v(" {\n node.setStyle("),a("span",{staticClass:"hljs-string"},[s._v("'borderDasharray'")]),s._v(", "),a("span",{staticClass:"hljs-string"},[s._v("'5,5'")]),s._v(", "),a("span",{staticClass:"hljs-literal"},[s._v("true")]),s._v(")"),a("span",{staticClass:"hljs-comment"},[s._v("// node.setStyle('borderDasharray', 'none', true)")]),s._v("\n})\n\n"),a("span",{staticClass:"hljs-comment"},[s._v("// 设置边框宽度")]),s._v("\nactiveNodes.value.forEach("),a("span",{staticClass:"hljs-function"},[a("span",{staticClass:"hljs-params"},[s._v("node")]),s._v(" =>")]),s._v(" {\n node.setStyle("),a("span",{staticClass:"hljs-string"},[s._v("'borderWidth'")]),s._v(", "),a("span",{staticClass:"hljs-number"},[s._v("2")]),s._v(", "),a("span",{staticClass:"hljs-literal"},[s._v("true")]),s._v(")\n})\n\n"),a("span",{staticClass:"hljs-comment"},[s._v("// 设置边框圆角")]),s._v("\nactiveNodes.value.forEach("),a("span",{staticClass:"hljs-function"},[a("span",{staticClass:"hljs-params"},[s._v("node")]),s._v(" =>")]),s._v(" {\n node.setStyle("),a("span",{staticClass:"hljs-string"},[s._v("'borderRadius'")]),s._v(", "),a("span",{staticClass:"hljs-number"},[s._v("5")]),s._v(", "),a("span",{staticClass:"hljs-literal"},[s._v("true")]),s._v(")\n})\n\n"),a("span",{staticClass:"hljs-comment"},[s._v("// 设置背景颜色")]),s._v("\nactiveNodes.value.forEach("),a("span",{staticClass:"hljs-function"},[a("span",{staticClass:"hljs-params"},[s._v("node")]),s._v(" =>")]),s._v(" {\n node.setStyle("),a("span",{staticClass:"hljs-string"},[s._v("'fillColor'")]),s._v(", "),a("span",{staticClass:"hljs-string"},[s._v("'#fff'")]),s._v(", "),a("span",{staticClass:"hljs-literal"},[s._v("true")]),s._v(")\n})\n")])]),a("h2",[s._v("完整示例")]),a("iframe",{staticStyle:{width:"100%",height:"455px",border:"none"},attrs:{src:"https://wanglin2.github.io/playground/#eNrFV91uG0UUfpXRVmgd5KwdIFwYJypNikBqUBUjFdSt0Hh3bA/MzqxmZ52GyBIqUKAtAlSJClClhhu4gHCDqJI27cvEP4/RM/tfex35wlKj2N6Z+b5zzsz55szsgfGu71v9kBgNoxk4kvoKBUSF/qbNqecLqdABkqRTRYLviJAr4lZR0MOMib1d0kED1JHCQyZYMDPGDuXuDvbjIdsIoJuRVQ96Vz3s24bNEbI5IwrpPo3cQDxkzOY2r9XQ8PT+8PsfRs+/HP33ZPzb15M7t8a3joffPZgc/mVzR/BAIewo2icfCpcEwM3jqVy/sZJYmRw9G58ejX75dvjPg9Gjx8OnP6ZkmN9H5KZqqX1GgF1ZQRub6EAHVTBr9TELidUR8jJ2ehUOfRkMId20wE5ko2J2BFfvYY+yfbOKzOHR3bPT+1XUol4r5PAreFdR1NoyIbY57Bb9ggB37e1yCKOcvE9ot6c0yFovRzmCCakjkMQ9x9e11JDZFmweUMEKbRNHSKyo4BqsY1hVPSnCbk+TbDWA78FLyz15djw6vD2z3JeEdIlc4oK3I4Nb6Xwv1Ov1OfOIkdsYNCIljvKzXl0/F3yNuqoHwDfOA+1il4YBoHQuSpfiq3ujX/8tLkJ3SWKjjGUzbwNvXjKGp3+M7/xfiKDVw/6SEgDL6WvBmg6VDpsbwvjk+ejh4YweroCUlqgGrcxFtKBxU0pA8L8G3+cwUjm8OW+Zb38Dsp88fliY4FXsupQvKeF+bOxjLbZ6eZwJ5JMUUogzq9uVQiiFukv20npdSdwT1kCucEKPcGV1ibrMiH68tP+BWzET5hbUEQyLI82VasxyscKNdAZQ3w3dYRuFrrhbFxbdbRujR8dxbY9PBP03SIxpoNOjzJWEa/D13MaUuVIv057OTu6NT/6cdvaywxKnN/KxIu4VRZA+Jn0pj3KqdoVQWldXRUB1uQamyUgnqvEOpA7SFLEGK+/EZy9CIN/x7z8Pf/o7jik+bc9O7p49gYqRCcQSvGJqrX0aixcMRmKtRgK8QgOVa6pE4FpfCS52D5qET7MW3zTgjgENReB6gBWBFkJNl/aRw3AQbNhGEsQ28YRtRMMJgLr5aKZEgDRrMFoEppaUEKyNAYL6q7QDHcVQGYHzuYc2UT3zYqtmO1RKcHTRYdT5HBjFWwPgZq8XzVpMSUxABCUmCidhZqR4aC5mpJtzo1NmIVZU/TNifDgsRMyqdUYulvWFTCT1MPee1swpdp7A9KlZK+gDmoEOJEJcTG6btmHV4itmUscsEniWEwS2kandKkgpVeuerusNtFavvxbhEPKz7SMJeASBRAPRztOfC9OSS03lRNwOBAtVTERIb8IGqictJfy8Meu+F93LGuitet2/mXou9/t66tnDskvBb2o1OQjSjix0K9kBC0a8lkaQBJ21wSDs3igHRtWIM6Av9dZngeDwDhGZt5MByEBWFm0DXhHiWmjV4NGScChRj+hkrbal2AuIBCO2kZS1kteGmDubas1KYhsYgxcal4r4"}})])}],v={},e=v,_=t("2877"),i=Object(_["a"])(e,n,l,!1,null,null,null);a["default"]=i.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d0b9b64.a3b7b0e2.js b/tools/mind-map/dist/js/chunk-2d0b9b64.a3b7b0e2.js
deleted file mode 100644
index 3810f32e..00000000
--- a/tools/mind-map/dist/js/chunk-2d0b9b64.a3b7b0e2.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0b9b64"],{"33b0":function(t,s,a){"use strict";a.r(s);var n=function(){var t=this;t._self._c;return t._m(0)},i=[function(){var t=this,s=t._self._c;return s("div",[s("h1",[t._v("结构")]),s("p",[s("code",[t._v("simple-mind-map")]),t._v("目前支持四种结构:logicalStructure(逻辑结构图)、mindMap(思维导图)、organizationStructure(组织结构图)、catalogOrganization(目录组织图)、timeline(时间轴)、timeline2(时间轴2)、fishbone(鱼骨图)。")]),s("p",[t._v("可以在实例化"),s("code",[t._v("simple-mind-map")]),t._v("时通过选项指定使用的结构:")]),s("pre",{staticClass:"hljs"},[s("code",[s("span",{staticClass:"hljs-keyword"},[t._v("new")]),t._v(" MindMap({\n "),s("span",{staticClass:"hljs-comment"},[t._v("// ...")]),t._v("\n "),s("span",{staticClass:"hljs-attr"},[t._v("layout")]),t._v(": "),s("span",{staticClass:"hljs-string"},[t._v("'logicalStructure'")]),t._v("\n})\n")])]),s("p",[t._v("也可以动态切换结构:")]),s("pre",{staticClass:"hljs"},[s("code",[t._v("mindMap.setLayout("),s("span",{staticClass:"hljs-string"},[t._v("'organizationStructure'")]),t._v(")\n")])]),s("p",[t._v("获取当前使用的结构可以使用"),s("code",[t._v("getLayout")]),t._v("方法:")]),s("pre",{staticClass:"hljs"},[s("code",[s("span",{staticClass:"hljs-keyword"},[t._v("const")]),t._v(" layout = mindMap.getLayout()\n")])]),s("h2",[t._v("完整示例")]),s("iframe",{staticStyle:{width:"100%",height:"455px",border:"none"},attrs:{src:"https://wanglin2.github.io/playground/#eNrFVVtrFDEU/iuHiMxWtrNb8Gndlnp7EFqR+tgUSWfS3WgmGSaZXiwLUgrWS0Hpg6Ag6os++ChCW8Q/0+72Z3iymZkd2z745sIsk3P5vpOc72S2yc00DddzTjqka6JMpBYMt3k6R5VIUp1Z2IaMrzVBq0WdK8vjJpg+k1JvLPE1GMBaphMIECGoMhaFihdZ6l2UGDRLPp2gdTphKSVUAVAluQVnc5GzoHIpvb3VgtNfB6cv9oe/nw1/HI/e75693BntHJ7uvTv7/I2qSCtjgUVWrPP7OuYGsycVNZZXpqjyKHvPh/tfRscHw4+7ZVrUZ6rHF7aYzi3mNaZgdg62HXFRSoi7X2Bb6G4EOusxJZ4yK7R6aLM8snnGA4QfOIbqQBoXUdyG+EZ5EI2xC4DLDsQ6yhOubNjj9q7k7vXW1r24ERSZt7WyTCieBVNNnxUzyzoe3f0ocQZKaiZvtnzTOjMlw0+H/sj8UbvfoABzgVFfyDjjygUvTzDOwV3Kcp7p5Oj16OjrebK/CS8hXZn46nH/qYLytbCVeUIJu6S1dRp7oI1wKsDMQPI1GzQhiLB12KaVIlyORdOBQOqeiJicCMb5B1M3vLoBUJmjD29P33z3RXuVnxy9Ojn+WdehVo1AIfUjr3RkbLhlE9z/gjB2IjqoT0O4zmTOnQCLOE+PosWn2/IzjtONC8txMJnluALoxmIdIsmMmaWkKOIOTzQlY3cRIOKJt5IqhnRb6K0HlkhWa7nKXIh3Uttdza3VCuYjKaInGFKfSYyrj2235YNL5IqlfOu2apvApbFb0u9nvriMKAlb/gYqpjHkJgkjYyipWhLW9lse6YaIbb8DM+321XEcQFqJIOPIiAc+doz1454r58+lhJokslWjZW59ImoGpdSBdrGyOp0sLtL3uej1Mfx6u51ulsyX814rmROW9QTylqgpi2OheqWhKj0s2vSPFc+UFRRFV2sERImNe0CaxHfA3fnhY6MVfmLG8LRwYAeq4aYEvyB+osMWvoYZXq0i4a5Z06uZ3jA8QxBKimm75Kvicy+22mUVtQ3I4A+xm1Zg"}})])}],l={},e=l,o=a("2877"),p=Object(o["a"])(e,n,i,!1,null,null,null);s["default"]=p.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d0ba309.02149e2b.js b/tools/mind-map/dist/js/chunk-2d0ba309.02149e2b.js
deleted file mode 100644
index cf333d69..00000000
--- a/tools/mind-map/dist/js/chunk-2d0ba309.02149e2b.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0ba309"],{"35c4":function(s,t,a){"use strict";a.r(t);var v=function(){var s=this;s._self._c;return s._m(0)},_=[function(){var s=this,t=s._self._c;return t("div",[t("h1",[s._v("RichText插件")]),t("blockquote",[t("p",[s._v("v0.4.0+")])]),t("blockquote",[t("p",[s._v("注意:这是一个测试性质和不完善的功能")])]),t("p",[s._v("该插件提供节点富文本编辑的能力,注册了即可生效。")]),t("p",[s._v("默认节点编辑只能对节点内所有文本统一应用样式,通过该插件可以支持富文本编辑的效果,目前支持:加粗、斜体、下划线、删除线、字体、字号、颜色、背景颜色。不支持上划线、行高。")]),t("p",[s._v("该插件的原理是使用"),t("a",{attrs:{href:"https://github.com/quilljs/quill"}},[s._v("Quill")]),s._v("编辑器实现富文本编辑,然后把编辑后生成的"),t("code",[s._v("DOM")]),s._v("节点直接作为节点的文本数据,并且在渲染的时候通过"),t("code",[s._v("svg")]),s._v("的"),t("code",[s._v("foreignObject")]),s._v("标签嵌入"),t("code",[s._v("DOM")]),s._v("节点。")]),t("blockquote",[t("p",[s._v("v0.5.6即以前的版本存在以下提示:")]),t("p",[s._v("这样也造成了一个问题,就是导出为图片的功能受到了影响,原本将"),t("code",[s._v("svg")]),s._v("导出为图片的原理很简单,获取到"),t("code",[s._v("svg")]),s._v("字符串,然后创建为"),t("code",[s._v("type=image/svg+xml")]),s._v("类型的"),t("code",[s._v("blob")]),s._v("数据,再使用"),t("code",[s._v("URL.createObjectURL")]),s._v("方法生成"),t("code",[s._v("data:url")]),s._v("数据,再创建一个"),t("code",[s._v("Image")]),s._v("标签,将"),t("code",[s._v("data:url")]),s._v("作为该图片的"),t("code",[s._v("src")]),s._v(",最后再将这个图片绘制到"),t("code",[s._v("canvas")]),s._v("对象上进行导出,但是经过测试,当"),t("code",[s._v("svg")]),s._v("中嵌入了"),t("code",[s._v("DOM")]),s._v("节点,这种方式导出会出错,并且尝试了多种方式后都无法实现完美的导出效果,目前的方式是遍历"),t("code",[s._v("svg")]),s._v("中的"),t("code",[s._v("foreignObject")]),s._v("节点,使用"),t("a",{attrs:{href:"https://github.com/niklasvh/html2canvas"}},[s._v("html2canvas")]),s._v("将"),t("code",[s._v("foreignObject")]),s._v("节点内的"),t("code",[s._v("DOM")]),s._v("节点转换为图片再替换掉"),t("code",[s._v("foreignObject")]),s._v("节点,这种方式可以工作,但是非常耗时,因为"),t("code",[s._v("html2canvas")]),s._v("转换一次的时间很长,导致转换一个节点都需要耗时差不多2秒,这样导致节点越多,转换时间越慢,所以如果无法忍受长时间的导出的话推荐不要使用该插件。")])]),t("p",[t("code",[s._v("v0.5.7+")]),s._v("的版本直接使用"),t("code",[s._v("html2canvas")]),s._v("转换整个"),t("code",[s._v("svg")]),s._v(",速度不再是问题,但是目前存在一个"),t("code",[s._v("bug")]),s._v(",就是节点的颜色导出后不生效。")]),t("h2",[s._v("注册")]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" MindMap "),t("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),t("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map'")]),s._v("\n"),t("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" RichText "),t("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),t("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map/src/plugins/RichText.js'")]),s._v("\n"),t("span",{staticClass:"hljs-comment"},[s._v("// import RichText from 'simple-mind-map/src/RichText.js' v0.6.0以下版本使用该路径")]),s._v("\n\nMindMap.usePlugin(RichText, opt?)\n")])]),t("p",[s._v("注册完且实例化"),t("code",[s._v("MindMap")]),s._v("后可通过"),t("code",[s._v("mindMap.richText")]),s._v("获取到该实例。")]),t("h3",[s._v("注册选项")]),t("p",[t("code",[s._v("opt")]),s._v("选项可以传递以下参数:")]),t("ul",[t("li",[t("code",[s._v("opt.fontFamilyList")])])]),t("p",[s._v("替换富文本编辑时内置字体列表。内置的列表为:")]),t("pre",{staticClass:"hljs"},[t("code",[s._v("[\n "),t("span",{staticClass:"hljs-string"},[s._v("'宋体, SimSun, Songti SC'")]),s._v(",\n "),t("span",{staticClass:"hljs-string"},[s._v("'微软雅黑, Microsoft YaHei'")]),s._v(",\n "),t("span",{staticClass:"hljs-string"},[s._v("'楷体, 楷体_GB2312, SimKai, STKaiti'")]),s._v(",\n "),t("span",{staticClass:"hljs-string"},[s._v("'黑体, SimHei, Heiti SC'")]),s._v(",\n "),t("span",{staticClass:"hljs-string"},[s._v("'隶书, SimLi'")]),s._v(",\n "),t("span",{staticClass:"hljs-string"},[s._v("'andale mono'")]),s._v(",\n "),t("span",{staticClass:"hljs-string"},[s._v("'arial, helvetica, sans-serif'")]),s._v(",\n "),t("span",{staticClass:"hljs-string"},[s._v("'arial black, avant garde'")]),s._v(",\n "),t("span",{staticClass:"hljs-string"},[s._v("'comic sans ms'")]),s._v(",\n "),t("span",{staticClass:"hljs-string"},[s._v("'impact, chicago'")]),s._v(",\n "),t("span",{staticClass:"hljs-string"},[s._v("'times new roman'")]),s._v(",\n "),t("span",{staticClass:"hljs-string"},[s._v("'sans-serif'")]),s._v(",\n "),t("span",{staticClass:"hljs-string"},[s._v("'serif'")]),s._v("\n]\n")])]),t("ul",[t("li",[t("code",[s._v("opt.fontSizeList")])])]),t("p",[s._v("替换富文本编辑时内置字号列表。内置的列表为:")]),t("pre",{staticClass:"hljs"},[t("code",[s._v("["),t("span",{staticClass:"hljs-number"},[s._v("1")]),s._v(", "),t("span",{staticClass:"hljs-number"},[s._v("2")]),s._v(", "),t("span",{staticClass:"hljs-number"},[s._v("3")]),s._v(", .."),t("span",{staticClass:"hljs-number"},[s._v(".100")]),s._v("]\n")])]),t("h2",[s._v("方法")]),t("h3",[s._v("selectAll()")]),t("p",[s._v("选中全部。当节点正在编辑中可以通过该方法选中节点内的所有文本。")]),t("h3",[s._v("focus()")]),t("blockquote",[t("p",[s._v("v0.4.7+")])]),t("p",[s._v("聚焦。")]),t("h3",[s._v("formatText(config = {})")]),t("ul",[t("li",[t("code",[s._v("config")]),s._v(":对象,键为样式属性,值为样式值,完整的配置如下:")])]),t("pre",{staticClass:"hljs"},[t("code",[s._v("{\n "),t("span",{staticClass:"hljs-attr"},[s._v("font")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'字体'")]),s._v(",\n "),t("span",{staticClass:"hljs-attr"},[s._v("size")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'12px,'")]),s._v(" "),t("span",{staticClass:"hljs-comment"},[s._v("// 字号")]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("bold")]),s._v(": "),t("span",{staticClass:"hljs-literal"},[s._v("true")]),s._v(", "),t("span",{staticClass:"hljs-comment"},[s._v("// 是否加粗,true/false ")]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("italic")]),s._v(": "),t("span",{staticClass:"hljs-literal"},[s._v("true")]),s._v(", "),t("span",{staticClass:"hljs-comment"},[s._v("// 是否斜体,true/false ")]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("underline")]),s._v(": "),t("span",{staticClass:"hljs-literal"},[s._v("true")]),s._v(", "),t("span",{staticClass:"hljs-comment"},[s._v("// 是否显示下划线,true/false ")]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("strike")]),s._v(": "),t("span",{staticClass:"hljs-literal"},[s._v("true")]),s._v(", "),t("span",{staticClass:"hljs-comment"},[s._v("// 是否显示删除线,true/false ")]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("color")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'#333'")]),s._v(" "),t("span",{staticClass:"hljs-comment"},[s._v("// 颜色")]),s._v("\n}\n")])]),t("p",[s._v("格式化当前选中的文本。")]),t("h3",[s._v("formatRangeText(range, config = {})")]),t("ul",[t("li",[t("code",[s._v("range")]),s._v(":"),t("code",[s._v("Quill")]),s._v("的范围对象,格式如下:")])]),t("pre",{staticClass:"hljs"},[t("code",[s._v("{\n index,\n length\n}\n")])]),t("ul",[t("li",[t("code",[s._v("config")]),s._v(":同"),t("code",[s._v("formatText")]),s._v("方法")])]),t("p",[s._v("格式化指定范围的文本。")]),t("h3",[s._v("formatAllText(config = {})")]),t("ul",[t("li",[t("code",[s._v("config")]),s._v(":同"),t("code",[s._v("formatText")]),s._v("方法")])]),t("p",[s._v("格式化当前编辑节点的所有文本。")]),t("h3",[s._v("removeFormat()")]),t("blockquote",[t("p",[s._v("v0.4.1+")])]),t("p",[s._v("清除当前选中文本的样式。")]),t("h3",[s._v("normalStyleToRichTextStyle(style)")]),t("p",[s._v("将普通节点样式对象转换成富文本样式对象。因为非富文本编辑时的节点样式属性和富文本样式属性是存在差异的,所以需要一个转换操作。比如:")]),t("pre",{staticClass:"hljs"},[t("code",[s._v("{\n "),t("span",{staticClass:"hljs-attr"},[s._v("fontFamily")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'xxx'")]),s._v("\n}\n\n"),t("span",{staticClass:"hljs-comment"},[s._v("// 转换后")]),s._v("\n\n{\n "),t("span",{staticClass:"hljs-attr"},[s._v("font")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'xxx'")]),s._v("\n}\n")])]),t("h3",[s._v("richTextStyleToNormalStyle(config)")]),t("p",[s._v("将富文本样式对象转换成普通节点样式对象。比如:")]),t("pre",{staticClass:"hljs"},[t("code",[s._v("{\n "),t("span",{staticClass:"hljs-attr"},[s._v("size")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'16px'")]),s._v("\n}\n\n"),t("span",{staticClass:"hljs-comment"},[s._v("// 转换后")]),s._v("\n\n{\n "),t("span",{staticClass:"hljs-attr"},[s._v("fontSize")]),s._v(": "),t("span",{staticClass:"hljs-number"},[s._v("16")]),s._v("\n}\n")])]),t("h3",[s._v("handleSvgDomElements(svg)")]),t("ul",[t("li",[t("code",[s._v("svg")]),s._v(": "),t("code",[s._v("svg")]),s._v("节点")])]),t("p",[s._v("将"),t("code",[s._v("svg")]),s._v("中嵌入的"),t("code",[s._v("dom")]),s._v("元素转换成图片,返回一个"),t("code",[s._v("Promise")]),s._v("。")]),t("h3",[s._v("transformAllNodesToNormalNode()")]),t("p",[s._v("将所有节点转换成非富文本节点。")])])}],l={},n=l,i=a("2877"),c=Object(i["a"])(n,v,_,!1,null,null,null);t["default"]=c.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d0bd54e.c6794f4b.js b/tools/mind-map/dist/js/chunk-2d0bd54e.c6794f4b.js
deleted file mode 100644
index 6add80fa..00000000
--- a/tools/mind-map/dist/js/chunk-2d0bd54e.c6794f4b.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0bd54e"],{"2c18":function(e,o,v){"use strict";v.r(o);var t=function(){var e=this;e._self._c;return e._m(0)},n=[function(){var e=this,o=e._self._c;return o("div",[o("h1",[e._v("KeyboardNavigation插件")]),o("blockquote",[o("p",[e._v("v0.2.17+")])]),o("p",[o("code",[e._v("KeyboardNavigation")]),e._v("插件提供键盘导航的功能,也就是当你按下方向键时会自动寻找下一个节点并激活")]),o("h2",[e._v("注册")]),o("pre",{staticClass:"hljs"},[o("code",[o("span",{staticClass:"hljs-keyword"},[e._v("import")]),e._v(" MindMap "),o("span",{staticClass:"hljs-keyword"},[e._v("from")]),e._v(" "),o("span",{staticClass:"hljs-string"},[e._v("'simple-mind-map'")]),e._v("\n"),o("span",{staticClass:"hljs-keyword"},[e._v("import")]),e._v(" KeyboardNavigation "),o("span",{staticClass:"hljs-keyword"},[e._v("from")]),e._v(" "),o("span",{staticClass:"hljs-string"},[e._v("'simple-mind-map/src/plugins/KeyboardNavigation.js'")]),e._v("\n"),o("span",{staticClass:"hljs-comment"},[e._v("// import KeyboardNavigation from 'simple-mind-map/src/KeyboardNavigation.js' v0.6.0以下版本使用该路径")]),e._v("\n\nMindMap.usePlugin(KeyboardNavigation)\n")])]),o("p",[e._v("注册完且实例化"),o("code",[e._v("MindMap")]),e._v("后可通过"),o("code",[e._v("mindMap.keyboardNavigation")]),e._v("获取到该实例。")]),o("h2",[e._v("方法")]),o("h3",[e._v("focus(dir)")]),o("p",[o("code",[e._v("dir")]),e._v(":要寻找哪个方向的下一个节点,可选值:"),o("code",[e._v("Left")]),e._v("、 "),o("code",[e._v("Up")]),e._v("、 "),o("code",[e._v("Right")]),e._v("、 "),o("code",[e._v("Down")])]),o("p",[e._v("聚焦到下一个节点")]),o("h3",[e._v("getNodeRect(node)")]),o("p",[o("code",[e._v("node")]),e._v(":节点")]),o("p",[e._v("获取节点的位置信息,返回一个对象:")]),o("pre",{staticClass:"hljs"},[o("code",[e._v("{\n left,\n top,\n right,\n bottom\n}\n")])]),o("h3",[e._v("getDistance(node1Rect, node2Rect)")]),o("p",[o("code",[e._v("node1Rect")]),e._v("、"),o("code",[e._v("node2Rect")]),e._v(":节点的位置数据,可通过"),o("code",[e._v("getNodeRect(node)")]),e._v("方法获取")]),o("p",[e._v("获取两个节点的距离")]),o("h3",[e._v("getCenter(nodeRect)")]),o("p",[o("code",[e._v("nodeRect")]),e._v(":节点的位置数据,可通过"),o("code",[e._v("getNodeRect(node)")]),e._v("方法获取")]),o("p",[e._v("获取节点的中心点")])])}],s={},a=s,_=v("2877"),d=Object(_["a"])(a,t,n,!1,null,null,null);o["default"]=d.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d0be174.cfca2bec.js b/tools/mind-map/dist/js/chunk-2d0be174.cfca2bec.js
deleted file mode 100644
index da521df8..00000000
--- a/tools/mind-map/dist/js/chunk-2d0be174.cfca2bec.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0be174"],{"2f7a":function(t,e,s){"use strict";s.r(e);var a=function(){var t=this;t._self._c;return t._m(0)},n=[function(){var t=this,e=t._self._c;return e("div",[e("h1",[t._v("KeyCommand instance")]),e("p",[t._v("The "),e("code",[t._v("keyCommand")]),t._v(" instance is responsible for adding and triggering shortcuts. It includes some built-in shortcuts and can also be added manually. The "),e("code",[t._v("mindMap.keyCommand")]),t._v(" instance can be obtained through this.")]),e("h2",[t._v("Methods")]),e("h3",[t._v("addShortcut(key, fn)")]),e("p",[t._v("Add a shortcut")]),e("p",[e("code",[t._v("key")]),t._v(": Shortcut key, key values can be viewed at "),e("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/core/command/keyMap.js"}},[t._v("keyMap.js")]),t._v(" Example:")]),e("pre",{staticClass:"hljs"},[e("code",[e("span",{staticClass:"hljs-comment"},[t._v("// Single key")]),t._v("\nmindMap.keyCommand.addShortcut("),e("span",{staticClass:"hljs-string"},[t._v('"Enter"')]),t._v(", "),e("span",{staticClass:"hljs-function"},[t._v("() =>")]),t._v(" {});\n"),e("span",{staticClass:"hljs-comment"},[t._v("// Or")]),t._v("\nmindMap.keyCommand.addShortcut("),e("span",{staticClass:"hljs-string"},[t._v('"Del|Backspace"')]),t._v(", "),e("span",{staticClass:"hljs-function"},[t._v("() =>")]),t._v(" {});\n"),e("span",{staticClass:"hljs-comment"},[t._v("// Combination key")]),t._v("\nmindMap.keyCommand.addShortcut("),e("span",{staticClass:"hljs-string"},[t._v('"Control+Enter"')]),t._v(", "),e("span",{staticClass:"hljs-function"},[t._v("() =>")]),t._v(" {});\n")])]),e("p",[e("code",[t._v("fn")]),t._v(": Method to be executed")]),e("h3",[t._v("removeShortcut(key, fn)")]),e("p",[t._v("Remove a shortcut command, if "),e("code",[t._v("fn")]),t._v(" is not specified, all callback methods for the shortcut will be removed")]),e("h3",[t._v("getShortcutFn(key)")]),e("blockquote",[e("p",[t._v("v0.2.2+")])]),e("p",[t._v("Get the processing function for the specified shortcut")]),e("h3",[t._v("pause()")]),e("blockquote",[e("p",[t._v("v0.2.2+")])]),e("p",[t._v("Pause all shortcut responses")]),e("h3",[t._v("recovery()")]),e("blockquote",[e("p",[t._v("v0.2.2+")])]),e("p",[t._v("Restore shortcut responses")]),e("h3",[t._v("save()")]),e("blockquote",[e("p",[t._v("v0.2.3+")])]),e("p",[t._v("Save the current registered shortcut data, then clear the shortcut data")]),e("h3",[t._v("restore()")]),e("blockquote",[e("p",[t._v("v0.2.3+")])]),e("p",[t._v("Restore saved shortcut data, then clear the cache data")])])}],o={},c=o,v=s("2877"),r=Object(v["a"])(c,a,n,!1,null,null,null);e["default"]=r.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d0c09f6.f3cf9ea8.js b/tools/mind-map/dist/js/chunk-2d0c09f6.f3cf9ea8.js
deleted file mode 100644
index b7abe615..00000000
--- a/tools/mind-map/dist/js/chunk-2d0c09f6.f3cf9ea8.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c09f6"],{4323:function(s,a,t){"use strict";t.r(a);var n=function(){var s=this;s._self._c;return s._m(0)},l=[function(){var s=this,a=s._self._c;return a("div",[a("h1",[s._v("导入和导出")]),a("h2",[s._v("导出")]),a("blockquote",[a("p",[s._v("要使用导出功能需要使用导出插件。")])]),a("p",[s._v("目前支持导出为"),a("code",[s._v(".smm")]),s._v("、"),a("code",[s._v(".json")]),s._v("、"),a("code",[s._v(".svg")]),s._v("、"),a("code",[s._v(".png")]),s._v("、"),a("code",[s._v(".pdf")]),s._v("、"),a("code",[s._v(".md")]),s._v("文件。")]),a("p",[a("code",[s._v(".smm")]),s._v("是"),a("code",[s._v("simple-mind-map")]),s._v("自己定义的一种文件,其实就是"),a("code",[s._v("json")]),s._v("文件,换了一个扩展名而已。")]),a("p",[s._v("导出直接调用"),a("code",[s._v("export")]),s._v("方法即可:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("mindMap.export(type, isDownload, fileName, ...)\n")])]),a("p",[a("code",[s._v("type")]),s._v(":文件类型")]),a("p",[a("code",[s._v("isDownload")]),s._v(":传"),a("code",[s._v("true")]),s._v("会触发下载,"),a("code",[s._v("false")]),s._v("则不会,函数会返回导出文件的数据,"),a("code",[s._v("data:url")]),s._v("格式,你可以自行下载,"),a("code",[s._v("pdf")]),s._v("不支持该参数,默认会直接下载。")]),a("p",[a("code",[s._v("fileName")]),s._v(":下载的文件名称")]),a("h3",[s._v("导出为smm、json")]),a("p",[s._v("这两种文件的导出是一样的:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("mindMap.export(type, isDownload, fileName, withConfig)\n")])]),a("p",[a("code",[s._v("withConfig")]),s._v("指定导出的数据中是否要包含节点数据外的配置数据,比如使用的布局、主题等,传"),a("code",[s._v("true")]),s._v(",导出的结构如下:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("{\n layout,\n root,\n "),a("span",{staticClass:"hljs-attr"},[s._v("theme")]),s._v(": {\n template,\n config\n },\n view\n}\n")])]),a("p",[s._v("如果传"),a("code",[s._v("false")]),s._v(",导出的数据只有"),a("code",[s._v("root")]),s._v("部分,也就是纯节点树。")]),a("p",[s._v("示例:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("mindMap.export("),a("span",{staticClass:"hljs-string"},[s._v("'smm'")]),s._v(", "),a("span",{staticClass:"hljs-literal"},[s._v("true")]),s._v(", "),a("span",{staticClass:"hljs-string"},[s._v("'文件名'")]),s._v(", "),a("span",{staticClass:"hljs-literal"},[s._v("true")]),s._v(")\nmindMap.export("),a("span",{staticClass:"hljs-string"},[s._v("'json'")]),s._v(", "),a("span",{staticClass:"hljs-literal"},[s._v("true")]),s._v(", "),a("span",{staticClass:"hljs-string"},[s._v("'文件名'")]),s._v(", "),a("span",{staticClass:"hljs-literal"},[s._v("false")]),s._v(")\n")])]),a("h3",[s._v("导出为png、pdf")]),a("p",[s._v("导出这两种文件很简单:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("mindMap.export("),a("span",{staticClass:"hljs-string"},[s._v("'png'")]),s._v(", "),a("span",{staticClass:"hljs-literal"},[s._v("true")]),s._v(", "),a("span",{staticClass:"hljs-string"},[s._v("'文件名'")]),s._v(")\nmindMap.export("),a("span",{staticClass:"hljs-string"},[s._v("'pdf'")]),s._v(", "),a("span",{staticClass:"hljs-literal"},[s._v("true")]),s._v(", "),a("span",{staticClass:"hljs-string"},[s._v("'文件名'")]),s._v(")\n")])]),a("blockquote",[a("p",[s._v("从v0.6.0+,要导出pdf,需要额外注册一个ExportPDF插件。")])]),a("h3",[s._v("导出为svg")]),a("p",[s._v("导出为"),a("code",[s._v("svg")]),s._v("可以传递的参数如下:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("mindMap.export(type, isDownload, fileName, plusCssText = "),a("span",{staticClass:"hljs-string"},[s._v("''")]),s._v(")\n")])]),a("p",[s._v("如果开启了节点富文本编辑,也就是"),a("code",[s._v("svg")]),s._v("中会存在节点的"),a("code",[s._v("html")]),s._v("结构,这就又存在一个问题,因为浏览器对每个元素默认会设置一些样式,影响最大的就是"),a("code",[s._v("margin")]),s._v("和"),a("code",[s._v("padding")]),s._v(",这就有可能会导致节点中的文字错位,所以可以通过"),a("code",[s._v("plusCssText")]),s._v("参数传入"),a("code",[s._v("css")]),s._v("样式:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("mindMap.export(\n "),a("span",{staticClass:"hljs-string"},[s._v("'svg'")]),s._v(", \n "),a("span",{staticClass:"hljs-literal"},[s._v("true")]),s._v(", \n "),a("span",{staticClass:"hljs-string"},[s._v("'文件名'")]),s._v(", \n "),a("span",{staticClass:"hljs-literal"},[s._v("false")]),s._v(", \n "),a("span",{staticClass:"hljs-string"},[s._v("`* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n }`")]),s._v("\n)\n")])]),a("h3",[s._v("导出为md")]),a("p",[s._v("导出为"),a("code",[s._v("markdown")]),s._v("文件只要传递默认的三个参数即可:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("mindMap.export("),a("span",{staticClass:"hljs-string"},[s._v("'md'")]),s._v(", "),a("span",{staticClass:"hljs-literal"},[s._v("true")]),s._v(", "),a("span",{staticClass:"hljs-string"},[s._v("'文件名'")]),s._v(")\n")])]),a("h2",[s._v("导入")]),a("p",[s._v("目前支持从"),a("code",[s._v(".smm")]),s._v("、"),a("code",[s._v(".json")]),s._v("、"),a("code",[s._v(".xmind")]),s._v("、"),a("code",[s._v(".xlsx")]),s._v("、"),a("code",[s._v(".md")]),s._v("格式的文件导入。")]),a("h3",[s._v("导入smm、json")]),a("p",[s._v("这两个文件导入很简单,直接读取文件内容,转成对象,然后调用相关方法渲染到画布即可。")]),a("p",[s._v("因为导出这两种类型时可以选择是否包含配置数据,所以导入的时候调用的方法也是不一样的:")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("let")]),s._v(" data = "),a("span",{staticClass:"hljs-built_in"},[s._v("JSON")]),s._v(".parse("),a("span",{staticClass:"hljs-string"},[s._v("'json数据'")]),s._v(")\n"),a("span",{staticClass:"hljs-comment"},[s._v("// 如果数据中存在root属性,那么代表是包含配置的完整数据,则使用setFullData方法导入数据")]),s._v("\n"),a("span",{staticClass:"hljs-keyword"},[s._v("if")]),s._v(" (data.root) {\n mindMap.setFullData(data)\n} "),a("span",{staticClass:"hljs-keyword"},[s._v("else")]),s._v(" {\n"),a("span",{staticClass:"hljs-comment"},[s._v("// 否则使用setData方法导入")]),s._v("\n mindMap.setData(data)\n}\n"),a("span",{staticClass:"hljs-comment"},[s._v("// 导入数据后有可能新数据渲染在可视区域外了,所以为了更好的体验,可以复位一下视图的变换")]),s._v("\nmindMap.view.reset()\n")])]),a("h3",[s._v("导入xmind")]),a("p",[s._v("要导入"),a("code",[s._v("xmind")]),s._v("文件,需要引入"),a("code",[s._v("xmind")]),s._v("的解析方法:")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" xmind "),a("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),a("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map/src/parse/xmind.js'")]),s._v("\n")])]),a("p",[s._v("如果使用的是"),a("code",[s._v("umd")]),s._v("文件,可以这样获取:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("MindMap.xmind\n")])]),a("p",[s._v("如果你是通过"),a("code",[s._v("input type=file")]),s._v("等方式获取到的"),a("code",[s._v("File")]),s._v("文件对象,那么可以直接传递给"),a("code",[s._v("parseXmindFile")]),s._v("方法解析,注意返回的是一个"),a("code",[s._v("Promise")]),s._v("实例,会返回解析后的节点树数据,使用"),a("code",[s._v("setData")]),s._v("方法渲染到画布即可。")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("let")]),s._v(" data = "),a("span",{staticClass:"hljs-keyword"},[s._v("await")]),s._v(" xmind.parseXmindFile(file)\nmindMap.setData(data)\n")])]),a("p",[a("code",[s._v(".xmind")]),s._v("文件本质上是一个压缩包,改成"),a("code",[s._v("zip")]),s._v("后缀可以解压缩,里面存在一个"),a("code",[s._v("content.json")]),s._v("文件,如果你自己解析出了这个文件,那么可以把这个文件内容传递给这个"),a("code",[s._v("transformXmind")]),s._v("方法进行转换:")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("let")]),s._v(" data = "),a("span",{staticClass:"hljs-keyword"},[s._v("await")]),s._v(" xmind.transformXmind(fileContent)\nmindMap.setData(data)\n")])]),a("p",[s._v("另外如果导入的是"),a("code",[s._v("xmind8")]),s._v("版本的数据,需要使用"),a("code",[s._v("transformOldXmind")]),s._v("方法。")]),a("h3",[s._v("导入xlsx")]),a("p",[s._v("这个文件的导入没有内置方法,需要你自己开发,以下是一个使用"),a("code",[s._v("xlsx")]),s._v("库的方式:")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" { read, utils } "),a("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),a("span",{staticClass:"hljs-string"},[s._v("'xlsx'")]),s._v("\n\n"),a("span",{staticClass:"hljs-comment"},[s._v("// 文件转buffer")]),s._v("\n"),a("span",{staticClass:"hljs-keyword"},[s._v("export")]),s._v(" "),a("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" fileToBuffer = "),a("span",{staticClass:"hljs-function"},[a("span",{staticClass:"hljs-params"},[s._v("file")]),s._v(" =>")]),s._v(" {\n "),a("span",{staticClass:"hljs-keyword"},[s._v("return")]),s._v(" "),a("span",{staticClass:"hljs-keyword"},[s._v("new")]),s._v(" "),a("span",{staticClass:"hljs-built_in"},[s._v("Promise")]),s._v("("),a("span",{staticClass:"hljs-function"},[a("span",{staticClass:"hljs-params"},[s._v("r")]),s._v(" =>")]),s._v(" {\n "),a("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" reader = "),a("span",{staticClass:"hljs-keyword"},[s._v("new")]),s._v(" FileReader()\n reader.onload = "),a("span",{staticClass:"hljs-function"},[s._v("() =>")]),s._v(" {\n r(reader.result)\n }\n reader.readAsArrayBuffer(file)\n })\n}\n\n"),a("span",{staticClass:"hljs-comment"},[s._v("// File文件对象")]),s._v("\n"),a("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" transformXLSXToJson = "),a("span",{staticClass:"hljs-keyword"},[s._v("async")]),s._v(" (file) => {\n "),a("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" wb = read("),a("span",{staticClass:"hljs-keyword"},[s._v("await")]),s._v(" fileToBuffer(file))\n "),a("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" data = utils.sheet_to_json(wb.Sheets[wb.SheetNames["),a("span",{staticClass:"hljs-number"},[s._v("0")]),s._v("]], {\n "),a("span",{staticClass:"hljs-attr"},[s._v("header")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("1")]),s._v("\n })\n "),a("span",{staticClass:"hljs-keyword"},[s._v("if")]),s._v(" (data.length <= "),a("span",{staticClass:"hljs-number"},[s._v("0")]),s._v(") {\n "),a("span",{staticClass:"hljs-keyword"},[s._v("return")]),s._v("\n }\n "),a("span",{staticClass:"hljs-keyword"},[s._v("let")]),s._v(" max = "),a("span",{staticClass:"hljs-number"},[s._v("0")]),s._v("\n data.forEach("),a("span",{staticClass:"hljs-function"},[a("span",{staticClass:"hljs-params"},[s._v("arr")]),s._v(" =>")]),s._v(" {\n "),a("span",{staticClass:"hljs-keyword"},[s._v("if")]),s._v(" (arr.length > max) {\n max = arr.length\n }\n })\n "),a("span",{staticClass:"hljs-keyword"},[s._v("let")]),s._v(" layers = []\n "),a("span",{staticClass:"hljs-keyword"},[s._v("let")]),s._v(" walk = "),a("span",{staticClass:"hljs-function"},[a("span",{staticClass:"hljs-params"},[s._v("layer")]),s._v(" =>")]),s._v(" {\n "),a("span",{staticClass:"hljs-keyword"},[s._v("if")]),s._v(" (!layers[layer]) {\n layers[layer] = []\n }\n "),a("span",{staticClass:"hljs-keyword"},[s._v("for")]),s._v(" ("),a("span",{staticClass:"hljs-keyword"},[s._v("let")]),s._v(" i = "),a("span",{staticClass:"hljs-number"},[s._v("0")]),s._v("; i < data.length; i++) {\n "),a("span",{staticClass:"hljs-keyword"},[s._v("if")]),s._v(" (data[i][layer]) {\n "),a("span",{staticClass:"hljs-keyword"},[s._v("let")]),s._v(" node = {\n "),a("span",{staticClass:"hljs-attr"},[s._v("data")]),s._v(": {\n "),a("span",{staticClass:"hljs-attr"},[s._v("text")]),s._v(": data[i][layer]\n },\n "),a("span",{staticClass:"hljs-attr"},[s._v("children")]),s._v(": [],\n "),a("span",{staticClass:"hljs-attr"},[s._v("_row")]),s._v(": i\n }\n layers[layer].push(node)\n }\n }\n "),a("span",{staticClass:"hljs-keyword"},[s._v("if")]),s._v(" (layer < max - "),a("span",{staticClass:"hljs-number"},[s._v("1")]),s._v(") {\n walk(layer + "),a("span",{staticClass:"hljs-number"},[s._v("1")]),s._v(")\n }\n }\n walk("),a("span",{staticClass:"hljs-number"},[s._v("0")]),s._v(")\n "),a("span",{staticClass:"hljs-keyword"},[s._v("let")]),s._v(" getParent = "),a("span",{staticClass:"hljs-function"},[s._v("("),a("span",{staticClass:"hljs-params"},[s._v("arr, row")]),s._v(") =>")]),s._v(" {\n "),a("span",{staticClass:"hljs-keyword"},[s._v("for")]),s._v(" ("),a("span",{staticClass:"hljs-keyword"},[s._v("let")]),s._v(" i = arr.length - "),a("span",{staticClass:"hljs-number"},[s._v("1")]),s._v("; i >= "),a("span",{staticClass:"hljs-number"},[s._v("0")]),s._v("; i--) {\n "),a("span",{staticClass:"hljs-keyword"},[s._v("if")]),s._v(" (row >= arr[i]._row) {\n "),a("span",{staticClass:"hljs-keyword"},[s._v("return")]),s._v(" arr[i]\n }\n }\n }\n "),a("span",{staticClass:"hljs-keyword"},[s._v("for")]),s._v(" ("),a("span",{staticClass:"hljs-keyword"},[s._v("let")]),s._v(" i = "),a("span",{staticClass:"hljs-number"},[s._v("1")]),s._v("; i < layers.length; i++) {\n "),a("span",{staticClass:"hljs-keyword"},[s._v("let")]),s._v(" arr = layers[i]\n "),a("span",{staticClass:"hljs-keyword"},[s._v("for")]),s._v(" ("),a("span",{staticClass:"hljs-keyword"},[s._v("let")]),s._v(" j = "),a("span",{staticClass:"hljs-number"},[s._v("0")]),s._v("; j < arr.length; j++) {\n "),a("span",{staticClass:"hljs-keyword"},[s._v("let")]),s._v(" item = arr[j]\n "),a("span",{staticClass:"hljs-keyword"},[s._v("let")]),s._v(" parent = getParent(layers[i - "),a("span",{staticClass:"hljs-number"},[s._v("1")]),s._v("], item._row)\n "),a("span",{staticClass:"hljs-keyword"},[s._v("if")]),s._v(" (parent) {\n parent.children.push(item)\n }\n }\n }\n\n "),a("span",{staticClass:"hljs-keyword"},[s._v("return")]),s._v(" layers["),a("span",{staticClass:"hljs-number"},[s._v("0")]),s._v("]["),a("span",{staticClass:"hljs-number"},[s._v("0")]),s._v("]\n}\n\n"),a("span",{staticClass:"hljs-keyword"},[s._v("let")]),s._v(" data = transformXLSXToJson("),a("span",{staticClass:"hljs-string"},[s._v("'xlsx文件对象'")]),s._v(")\nmindMap.setData(data)\n")])]),a("h3",[s._v("导入md")]),a("p",[s._v("要导入"),a("code",[s._v("markdown")]),s._v("文件需要引入相应的解析方法:")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" markdown "),a("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),a("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map/src/parse/markdown.js'")]),s._v("\n")])]),a("p",[s._v("如果使用的是umd格式的文件,那么可以通过如下方式获取:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("MindMap.markdown\n")])]),a("p",[s._v("获取到"),a("code",[s._v("md")]),s._v("文件的内容后调用"),a("code",[s._v("transformMarkdownTo")]),s._v("方法转换即可,返回一个"),a("code",[s._v("Promise")]),s._v("实例:")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("let")]),s._v(" data = "),a("span",{staticClass:"hljs-keyword"},[s._v("await")]),s._v(" markdown.transformMarkdownTo("),a("span",{staticClass:"hljs-string"},[s._v("'md文件内容'")]),s._v(")\nmindMap.setData(data)\n")])]),a("h3",[s._v("完整示例")]),a("iframe",{staticStyle:{width:"100%",height:"455px",border:"none"},attrs:{src:"https://wanglin2.github.io/playground/#eNrFV81u20YQfpUN24JUoVAK0JMrB3YbB0gApYGTQ4EwhzW5kuiQu8TuypJhC0iDJkHaBsglPfXQQ4Oil7intnb7NvVf36KzfxRNUXUuQQ3bImdnvm925tsf7XnrRRHujIm34vVEzNNCIkHkuLge0TQvGJdoD3EyaCNG+2xMJUnaSIxwlrHJJhmgGRpwliMfEPwyop/SpI8LMxR5AswZuZqD9WqOi8iLKEIRzYhEyqY8VxEdZ1lEI9rpoJODv06evjn9/vnxn79FNGZUSGC/RYuxBMeAtNDqdbSnQBTEIM0ImEkoMR8SGap38aD70I1zMoThThSFgcjz/ami3N8WjO5PMzHdz5PWhx3lmw5QcAWcQ0mEDBRKSHFOWi1DhRDOCJeBf37w+z+PX5x++0sIcH8//ipUWOpTI+sHwFWfeWLm4LcMAIe6cpgiQjNHWKalQCCRpeQjTJOM3MtzPagBZ4hkgpQwmv5ShC+V13IMyPxSiI1pTLKlEPnlOfSrCUQUfk3bf/r67NWzalUvSqAsgRKBBljQwSbBCeFKTWSCbpaGQFPNHUIOH+viPpmaLOvDjGYMJ0pUO6A4y4GQ5Lvu0VAmWGLwun3vizthgbkgAQQ4HXIixpm0rTfdlrsFYQMTdmV1Fflsa5vE0i/ro1lGnE30BDY4ZzzwTRVOnj09eXt4+sOL84MDJygrJPUDa/YGwAYK247OUIxlPIIFo3AqHKqcDHqTsaEdswHNDdHCamqF1hLMH4tdGtdbUilWpVR4gtNyfzDIpnIaS3Vs3pCGSS2ZUvOEGmYC8m6aiFb0solA+NnrN3WsHPNHCZs0SrS/tCjvS6eG7N3UerEFbh6h5JiKAeN531rus/9Q83uRm9n2X/96+vKtK6jlUSteU5XzU8tJWULOmCzJ7HESQthNOE/q4tEb1aJrzU39c6M7KZmouROpelPN9PnR8R9HapNyqZKpOvvWxW2wqXxVrprLYRmHwFdBfhv6MyZt5Fb3q5dgGmBIsImnoMM6zV2qjjXNYqZUp4GYJhYHXx7nwSKGFabVSGArRrIVlLB4nBMqQ9DERkbU42e7t5LAt5GfMypxSgn3W20Tpeq6MhdD5ClD5FVMxixB5Moceac/Hp5/8+TsyaG5KGipWDDlGI/SLOGEKucHc4waXCNLnen46Luzo5/rZBcJG0j11WLR73/KwD1am4tLaSo3YW3cYQm5y0QqU0Yh0s/IQIIu/BhaB216qN1nrU9BFiCNXsfcAeH2By+SwMUNSwJvCPWSdAfFGRZiNfJsu2+QnEWeHrYOaTIfLcUALr0OjFYdHZJkLNvCysUMRrKX6pueOixhXG13kYfWtBHe7UWw9Ae4rbGUsObW4iyNH4FLdSWC34XV2usY78ujYYFVg2E51WLnU3JPvU6lYvAq5G5mirdmb8aRF3bMddhtwETkYSxE5EEH1K0YobBSXKeeSZrI0Qq61u1+pP0QKsqecgKM6Q7RA1oO6u+DehMc1DwQb8G+PJYmUJ0RA7mCuvZNsmL+skg/IulwBO6fdLvF1DE3835cbrlwlKTA61ALnCQpHTpDmXpoNfGOGV9zGdiky3cABD3rHnhtz3RAfQHRd0v4vqPhIzsAHSjXauTB1xmzQMMOPIYcdso0J6pZV7fgeibg8N2GCLvWGr7imNjFVqsod+55s38BRuykJA=="}})])}],v={},_=v,e=t("2877"),i=Object(e["a"])(_,n,l,!1,null,null,null);a["default"]=i.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d0c0a44.acfd4033.js b/tools/mind-map/dist/js/chunk-2d0c0a44.acfd4033.js
deleted file mode 100644
index 0bfd31fc..00000000
--- a/tools/mind-map/dist/js/chunk-2d0c0a44.acfd4033.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c0a44"],{"433b":function(v,_,e){"use strict";e.r(_);var o=function(){var v=this;v._self._c;return v._m(0)},t=[function(){var v=this,_=v._self._c;return _("div",[_("h1",[v._v("Node实例")]),_("p",[v._v("每个节点都会实例化一个"),_("code",[v._v("node")]),v._v("实例")]),_("h2",[v._v("属性")]),_("h3",[v._v("nodeData")]),_("p",[v._v("该节点对应的真实数据")]),_("h3",[v._v("uid")]),_("p",[v._v("该节点唯一的标识")]),_("h3",[v._v("isRoot")]),_("p",[v._v("是否是根节点")]),_("h3",[v._v("layerIndex")]),_("p",[v._v("节点层级")]),_("h3",[v._v("width")]),_("p",[v._v("节点的宽")]),_("h3",[v._v("height")]),_("p",[v._v("节点的高")]),_("h3",[v._v("left")]),_("p",[v._v("节点的"),_("code",[v._v("left")]),v._v("位置")]),_("h3",[v._v("top")]),_("p",[v._v("节点的"),_("code",[v._v("top")]),v._v("位置")]),_("h3",[v._v("parent")]),_("p",[v._v("节点的父节点")]),_("h3",[v._v("children")]),_("p",[v._v("节点的子节点列表")]),_("h3",[v._v("group")]),_("p",[v._v("节点是内容容器,"),_("code",[v._v("svg")]),v._v("对象")]),_("h3",[v._v("isDrag")]),_("blockquote",[_("p",[v._v("v0.1.5+")])]),_("p",[v._v("节点是否正在拖拽中")]),_("h2",[v._v("方法")]),_("h3",[v._v("getSize()")]),_("p",[v._v("通过重新创建节点内容更新节点的宽高,返回一个布尔值,代表是否宽高发生了变化")]),_("h3",[v._v("render()")]),_("p",[v._v("递归渲染该节点及其所有子节点")]),_("h3",[v._v("updateNodeShape()")]),_("blockquote",[_("p",[v._v("v0.5.0+")])]),_("p",[v._v("更新节点形状节点。比如当节点状态改变后,调用该方法显示或取消激活样式。")]),_("h3",[v._v("remove()")]),_("p",[v._v("递归删除,只是从画布删除,节点容器还在,后续还可以重新插回画布")]),_("h3",[v._v("destroy()")]),_("blockquote",[_("p",[v._v("v0.5.0+")])]),_("p",[v._v("销毁节点,不但会从画布删除,而且原节点直接置空,后续无法再插回画布")]),_("h3",[v._v("renderLine()")]),_("p",[v._v("重新渲染该节点到其子节点之间的连线")]),_("h3",[v._v("removeLine()")]),_("p",[v._v("移除该节点到其子节点之间的连线")]),_("h3",[v._v("renderExpandBtn()")]),_("p",[v._v("渲染展开收缩按钮的内容")]),_("h3",[v._v("removeExpandBtn()")]),_("p",[v._v("移除展开收缩按钮")]),_("h3",[v._v("getStyle(prop, root, isActive)")]),_("p",[v._v("获取某个最终应用到该节点的样式值")]),_("p",[_("code",[v._v("prop")]),v._v(":要获取的样式属性")]),_("p",[_("code",[v._v("root")]),v._v(":是否是根节点,默认"),_("code",[v._v("false")])]),_("p",[_("code",[v._v("isActive")]),v._v(":获取的是否是激活状态的样式值,默认"),_("code",[v._v("false")])]),_("h3",[v._v("setStyle(prop, value, isActive)")]),_("p",[v._v("修改节点的某个样式,"),_("code",[v._v("SET_NODE_STYLE")]),v._v("命令的快捷方法")]),_("h3",[v._v("getData(key)")]),_("p",[v._v("获取该节点真实数据"),_("code",[v._v("nodeData")]),v._v("的"),_("code",[v._v("data")]),v._v("对象里的指定值,"),_("code",[v._v("key")]),v._v("不传返回这个"),_("code",[v._v("data")]),v._v("对象")]),_("h3",[v._v("setData(data)")]),_("p",[v._v("设置节点数据,"),_("code",[v._v("SET_NODE_DATA")]),v._v("命令的快捷方法")]),_("h3",[v._v("setText(text, richText)")]),_("ul",[_("li",[_("code",[v._v("richText")]),v._v(":v0.4.2+,"),_("code",[v._v("Boolean")]),v._v(",如果要设置的是富文本内容,也就是"),_("code",[v._v("html")]),v._v("字符,"),_("code",[v._v("richText")]),v._v("需要传"),_("code",[v._v("true")])])]),_("p",[v._v("设置节点文本,"),_("code",[v._v("SET_NODE_TEXT")]),v._v("命令的快捷方法")]),_("h3",[v._v("setImage(imgData)")]),_("p",[v._v("设置节点图片,"),_("code",[v._v("SET_NODE_IMAGE")]),v._v("命令的快捷方法")]),_("h3",[v._v("setIcon(icons)")]),_("p",[v._v("设置节点图标,"),_("code",[v._v("SET_NODE_ICON")]),v._v("命令的快捷方法")]),_("h3",[v._v("setHyperlink(link, title)")]),_("p",[v._v("设置节点超链接,"),_("code",[v._v("SET_NODE_HYPERLINK")]),v._v("命令的快捷方法")]),_("h3",[v._v("setNote(note)")]),_("p",[v._v("设置节点备注,"),_("code",[v._v("SET_NODE_NOTE")]),v._v("命令的快捷方法")]),_("h3",[v._v("setTag(tag)")]),_("p",[v._v("设置节点标签,"),_("code",[v._v("SET_NODE_TAG")]),v._v("的快捷方法")]),_("h3",[v._v("hide()")]),_("blockquote",[_("p",[v._v("v0.1.5+")])]),_("p",[v._v("隐藏节点及其下级节点")]),_("h3",[v._v("show()")]),_("blockquote",[_("p",[v._v("v0.1.5+")])]),_("p",[v._v("显示节点及其下级节点")]),_("h3",[v._v("isParent(node)")]),_("blockquote",[_("p",[v._v("v0.1.5+")])]),_("p",[v._v("检测当前节点是否是某个节点的祖先节点")]),_("h3",[v._v("isBrother(node)")]),_("blockquote",[_("p",[v._v("v0.1.5+")])]),_("p",[v._v("检测当前节点是否是某个节点的兄弟节点")]),_("h3",[v._v("checkHasGeneralization()")]),_("blockquote",[_("p",[v._v("v0.2.0+")])]),_("p",[v._v("检查是否存在概要")]),_("h3",[v._v("hideGeneralization()")]),_("blockquote",[_("p",[v._v("v0.2.0+")])]),_("p",[v._v("隐藏概要节点")]),_("h3",[v._v("showGeneralization()")]),_("blockquote",[_("p",[v._v("v0.2.0+")])]),_("p",[v._v("显示概要节点")]),_("h3",[v._v("updateGeneralization()")]),_("blockquote",[_("p",[v._v("v0.2.0+")])]),_("p",[v._v("更新概要节点")]),_("h3",[v._v("hasCustomPosition()")]),_("blockquote",[_("p",[v._v("v0.2.0+")])]),_("p",[v._v("检查节点是否存在自定义数据")]),_("h3",[v._v("ancestorHasCustomPosition()")]),_("blockquote",[_("p",[v._v("v0.2.0+")])]),_("p",[v._v("检查节点是否存在自定义位置的祖先节点")]),_("h3",[v._v("getShape()")]),_("blockquote",[_("p",[v._v("v0.2.4+")])]),_("p",[v._v("获取节点形状")]),_("h3",[v._v("setShape(shape)")]),_("blockquote",[_("p",[v._v("v0.2.4+")])]),_("p",[v._v("设置节点形状,"),_("code",[v._v("SET_NODE_SHAPE")]),v._v("命令的快捷方法")]),_("h3",[v._v("getSelfStyle(prop)")]),_("blockquote",[_("p",[v._v("v0.2.5+")])]),_("p",[v._v("获取节点自身的自定义样式")]),_("h3",[v._v("getParentSelfStyle(prop)")]),_("blockquote",[_("p",[v._v("v0.2.5+")])]),_("p",[v._v("获取最近一个存在自身自定义样式的祖先节点的自定义样式")]),_("h3",[v._v("getSelfInhertStyle(prop)")]),_("blockquote",[_("p",[v._v("v0.2.5+")])]),_("p",[v._v("获取自身可继承的自定义样式")])])}],p={},h=p,c=e("2877"),a=Object(c["a"])(h,o,t,!1,null,null,null);_["default"]=a.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d0c14fc.4b3116f3.js b/tools/mind-map/dist/js/chunk-2d0c14fc.4b3116f3.js
deleted file mode 100644
index 67868072..00000000
--- a/tools/mind-map/dist/js/chunk-2d0c14fc.4b3116f3.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c14fc"],{4604:function(s,a,n){"use strict";n.r(a);var t=function(){var s=this;s._self._c;return s._m(0)},r=[function(){var s=this,a=s._self._c;return a("div",[a("h1",[s._v("Drag插件")]),a("p",[a("code",[s._v("Drag")]),s._v("插件提供节点拖拽的功能,包括:")]),a("p",[s._v("1.拖拽节点进行移动,改变节点在节点树中的位置,即作为其他节点的子节点、兄弟节点等等")]),a("p",[s._v("2.拖拽节点到自定义的画布位置")]),a("p",[s._v("配置请参考"),a("code",[s._v("MindMap")]),s._v("类的"),a("a",{attrs:{href:"/mind-map/#/doc/zh/constructor"}},[s._v("实例化选项")]),s._v("。")]),a("h2",[s._v("注册")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" MindMap "),a("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),a("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map'")]),s._v("\n"),a("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" Drag "),a("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),a("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map/src/plugins/Drag.js'")]),s._v("\n"),a("span",{staticClass:"hljs-comment"},[s._v("// import Drag from 'simple-mind-map/src/Drag.js' v0.6.0以下版本使用该路径")]),s._v("\n\nMindMap.usePlugin(Drag)\n")])]),a("p",[s._v("注册完且实例化"),a("code",[s._v("MindMap")]),s._v("后可通过"),a("code",[s._v("mindMap.drag")]),s._v("获取到该实例。")])])}],i={},p=i,v=n("2877"),_=Object(v["a"])(p,t,r,!1,null,null,null);a["default"]=_.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d0c191e.4994e978.js b/tools/mind-map/dist/js/chunk-2d0c191e.4994e978.js
deleted file mode 100644
index 4cf856ef..00000000
--- a/tools/mind-map/dist/js/chunk-2d0c191e.4994e978.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c191e"],{4738:function(s,a,e){"use strict";e.r(a);var t=function(){var s=this;s._self._c;return s._m(0)},v=[function(){var s=this,a=s._self._c;return a("div",[a("h1",[s._v("内置工具方法")]),a("h2",[s._v("基础工具方法")]),a("p",[s._v("引用:")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" {walk, ...} "),a("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),a("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map/src/utils'")]),s._v("\n")])]),a("h3",[s._v("方法")]),a("h4",[s._v("walk(root, parent, beforeCallback, afterCallback, isRoot, layerIndex = 0, index = 0)")]),a("p",[s._v("深度优先遍历树")]),a("p",[a("code",[s._v("root")]),s._v(":要遍历的树的根节点")]),a("p",[a("code",[s._v("parent")]),s._v(":父节点")]),a("p",[a("code",[s._v("beforeCallback")]),s._v(":前序遍历回调函数,回调参数为:root, parent, isRoot, layerIndex, index")]),a("p",[a("code",[s._v("afterCallback")]),s._v(":后序遍历回调函数,回调参数为:root, parent, isRoot, layerIndex, index")]),a("p",[a("code",[s._v("isRoot")]),s._v(":是否是根节点")]),a("p",[a("code",[s._v("layerIndex")]),s._v(":节点层级")]),a("p",[a("code",[s._v("index")]),s._v(":节点在同级节点里的索引")]),a("p",[s._v("示例:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("walk(tree, "),a("span",{staticClass:"hljs-literal"},[s._v("null")]),s._v(", "),a("span",{staticClass:"hljs-function"},[s._v("() =>")]),s._v(" {}, "),a("span",{staticClass:"hljs-function"},[s._v("() =>")]),s._v(" {}, "),a("span",{staticClass:"hljs-literal"},[s._v("false")]),s._v(", "),a("span",{staticClass:"hljs-number"},[s._v("0")]),s._v(", "),a("span",{staticClass:"hljs-number"},[s._v("0")]),s._v(")\n")])]),a("h4",[s._v("bfsWalk(root, callback)")]),a("p",[s._v("广度优先遍历树")]),a("h4",[s._v("resizeImgSize(width, height, maxWidth, maxHeight)")]),a("p",[s._v("缩放图片的尺寸")]),a("p",[a("code",[s._v("width")]),s._v(":图片原本的宽")]),a("p",[a("code",[s._v("height")]),s._v(":图片原本的高")]),a("p",[a("code",[s._v("maxWidth")]),s._v(":要缩放到的宽")]),a("p",[a("code",[s._v("maxHeight")]),s._v(":要缩放到的高")]),a("p",[a("code",[s._v("maxWidth")]),s._v("和"),a("code",[s._v("maxHeight")]),s._v("可以同时都传,也可以只传一个")]),a("h4",[s._v("resizeImg(imgUrl, maxWidth, maxHeight)")]),a("p",[s._v("缩放图片,内部先加载图片,然后调用"),a("code",[s._v("resizeImgSize")]),s._v("方法,返回一个"),a("code",[s._v("promise")])]),a("h4",[s._v("simpleDeepClone(data)")]),a("p",[s._v("极简的深拷贝方法,只能针对全是基本数据的对象,否则会报错")]),a("h4",[s._v("copyRenderTree(tree, root)")]),a("p",[s._v("复制渲染树数据,示例:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("copyRenderTree({}, "),a("span",{staticClass:"hljs-built_in"},[s._v("this")]),s._v(".mindMap.renderer.renderTree)\n")])]),a("h4",[s._v("copyNodeTree(tree, root, removeActiveState, keepId)")]),a("ul",[a("li",[a("p",[a("code",[s._v("removeActiveState")]),s._v(":"),a("code",[s._v("Boolean")]),s._v(",默认为"),a("code",[s._v("false")]),s._v(",是否移除节点的激活状态")])]),a("li",[a("p",[a("code",[s._v("keepId")]),s._v(":v0.4.6+,"),a("code",[s._v("Boolean")]),s._v(",默认为"),a("code",[s._v("false")]),s._v(",是否保留被复制节点的"),a("code",[s._v("id")]),s._v(",默认会删除"),a("code",[s._v("id")]),s._v("防止节点"),a("code",[s._v("id")]),s._v("重复,但是对于移动节点的场景,节点原"),a("code",[s._v("id")]),s._v("需要保留")])])]),a("p",[s._v("复制节点树数据,主要是剔除其中的引用"),a("code",[s._v("node")]),s._v("实例的"),a("code",[s._v("_node")]),s._v(",然后复制"),a("code",[s._v("data")]),s._v("对象的数据,示例:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("copyNodeTree({}, node)\n")])]),a("h4",[s._v("imgToDataUrl(src)")]),a("p",[s._v("图片转成dataURL")]),a("h4",[s._v("downloadFile(file, fileName)")]),a("p",[s._v("下载文件")]),a("h4",[s._v("throttle(fn, time = 300, ctx)")]),a("p",[s._v("节流函数")]),a("h4",[s._v("asyncRun(taskList, callback = () => {})")]),a("p",[s._v("异步执行任务队列,多个任务是同步执行的,没有先后顺序")]),a("h4",[s._v("degToRad(deg)")]),a("blockquote",[a("p",[s._v("v0.2.24+")])]),a("p",[s._v("角度转弧度")]),a("h4",[s._v("camelCaseToHyphen(str)")]),a("blockquote",[a("p",[s._v("v0.2.24+")])]),a("p",[s._v("驼峰转连字符")]),a("h4",[s._v("joinFontStr({ italic, bold, fontSize, fontFamily })")]),a("blockquote",[a("p",[s._v("v0.3.4+")])]),a("p",[s._v("拼接"),a("code",[s._v("css")]),s._v("字体的"),a("code",[s._v("font")]),s._v("属性值")]),a("h4",[s._v("measureText(text, { italic, bold, fontSize, fontFamily })")]),a("blockquote",[a("p",[s._v("v0.3.4+")])]),a("p",[s._v("测量文本的宽高,返回值:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("{ width, height }\n")])]),a("h4",[s._v("getTextFromHtml(html)")]),a("p",[s._v("提取html字符串里的纯文本内容。")]),a("h4",[s._v("readBlob(blob)")]),a("blockquote",[a("p",[s._v("v0.5.9+")])]),a("p",[s._v("将"),a("code",[s._v("blob")]),s._v("数据转成"),a("code",[s._v("data:url")]),s._v("数据。")]),a("h2",[s._v("在canvas中模拟css的背景属性")]),a("p",[s._v("引入:")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" drawBackgroundImageToCanvas "),a("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),a("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map/src/utils/simulateCSSBackgroundInCanvas'")]),s._v("\n")])]),a("p",[s._v("使用:")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("let")]),s._v(" width = "),a("span",{staticClass:"hljs-number"},[s._v("500")]),s._v("\n"),a("span",{staticClass:"hljs-keyword"},[s._v("let")]),s._v(" height = "),a("span",{staticClass:"hljs-number"},[s._v("500")]),s._v("\n"),a("span",{staticClass:"hljs-keyword"},[s._v("let")]),s._v(" img = "),a("span",{staticClass:"hljs-string"},[s._v("'/1.jpg'")]),s._v("\n"),a("span",{staticClass:"hljs-keyword"},[s._v("let")]),s._v(" canvas = "),a("span",{staticClass:"hljs-built_in"},[s._v("document")]),s._v(".createElement("),a("span",{staticClass:"hljs-string"},[s._v("'canvas'")]),s._v(")\ncanvas.width = width\ncanvas.height = height\ndrawBackgroundImageToCanvas(ctx, width, height, img, {\n "),a("span",{staticClass:"hljs-attr"},[s._v("backgroundRepeat")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'repeat-y'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("backgroundSize")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'60%'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("backgroundPosition")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'center center'")]),s._v("\n}, "),a("span",{staticClass:"hljs-function"},[s._v("("),a("span",{staticClass:"hljs-params"},[s._v("err")]),s._v(") =>")]),s._v(" {\n "),a("span",{staticClass:"hljs-keyword"},[s._v("if")]),s._v(" (err) {\n "),a("span",{staticClass:"hljs-comment"},[s._v("// 失败")]),s._v("\n } "),a("span",{staticClass:"hljs-keyword"},[s._v("else")]),s._v(" {\n "),a("span",{staticClass:"hljs-comment"},[s._v("// 成功")]),s._v("\n }\n})\n")])]),a("h2",[s._v("LRU缓存类")]),a("blockquote",[a("p",[s._v("v0.5.10+")])]),a("p",[s._v("引入:")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" Lru "),a("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),a("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map/src/utils/Lru.js'")]),s._v("\n")])]),a("h3",[s._v("构造函数")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("let")]),s._v(" lru = "),a("span",{staticClass:"hljs-keyword"},[s._v("new")]),s._v(" Lru(max)\n")])]),a("p",[a("code",[s._v("max")]),s._v(":指定最大缓存数量。")]),a("h3",[s._v("实例属性")]),a("h4",[s._v("size")]),a("p",[s._v("当前缓存的数量。")]),a("h4",[s._v("pool")]),a("p",[s._v("获取缓存池。")]),a("h3",[s._v("实例方法")]),a("h4",[s._v("add(key, value)")]),a("p",[s._v("添加缓存。")]),a("h4",[s._v("delete(key)")]),a("p",[s._v("删除指定缓存。")]),a("h4",[s._v("has(key)")]),a("p",[s._v("检查某个缓存是否存在。")]),a("h4",[s._v("get(key)")]),a("p",[s._v("获取某个缓存的值。")])])}],_={},l=_,n=e("2877"),o=Object(n["a"])(l,t,v,!1,null,null,null);a["default"]=o.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d0c1a01.1b2967c3.js b/tools/mind-map/dist/js/chunk-2d0c1a01.1b2967c3.js
deleted file mode 100644
index ebb7a1bf..00000000
--- a/tools/mind-map/dist/js/chunk-2d0c1a01.1b2967c3.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c1a01"],{"479a":function(e,t,r){"use strict";r.r(t);var o=function(){var e=this;e._self._c;return e._m(0)},n=[function(){var e=this,t=e._self._c;return t("div",[t("h1",[e._v("Participate in translation")]),t("blockquote",[t("p",[e._v("Thanks for the first version English translation provided by "),t("a",{attrs:{href:"https://github.com/emircanerkul"}},[e._v("Emircan ERKUL")]),e._v(".")]),t("p",[e._v("Due to limited energy, most translations currently use machine translation, so accuracy is inevitably problematic.")]),t("p",[e._v("At present, the 【Course】 section is not translated. If you are interested, please join us.")])]),t("p",[e._v("If you want to participate in the translation of this document, you can clone this repository first.")]),t("p",[e._v("The translated documents are in the "),t("code",[e._v("/web/src/pages/Doc/")]),e._v(" directory, and currently support English("),t("code",[e._v("en")]),e._v(") and Simplified Chinese("),t("code",[e._v("zh")]),e._v(").")]),t("p",[e._v("If you are adding a new language type, you can create a new directory under the "),t("code",[e._v("/web/src/pages/Doc/")]),e._v(" directory, Then create a folder for each chapter, You can also directly copy all chapter directories under the existing language directory for translation, Note that you only need to write the "),t("code",[e._v("index.md")]),e._v(" file, The "),t("code",[e._v("index.vue")]),e._v(" file under the chapter directory is automatically generated by the script according to "),t("code",[e._v("index.md")]),e._v(".")]),t("p",[e._v("If you are adding a translation chapter to an existing language type, You can create a new chapter directory under the target language directory, You only need to create a "),t("code",[e._v("index.md")]),e._v(" file under the directory.")]),t("p",[e._v("After you complete the translation, you can directly submit "),t("code",[e._v("Pull requests")]),e._v(".")]),t("p",[e._v("If you are a front-end programmer and want to run the service, check the effect of the document page, If a new chapter is added, the file "),t("code",[e._v("/web/src/pages/Doc/catalogList.js")]),e._v(" needs to be modified, Select the appropriate location in the "),t("code",[e._v("StartList")]),e._v(" or "),t("code",[e._v("APIList")]),e._v(" array to insert the "),t("code",[e._v("path")]),e._v(" of the new chapter. Then you need to run "),t("code",[e._v("npm run buildDoc")]),e._v(" under the "),t("code",[e._v("web")]),e._v(" directory to compile the directory and route. Finally, run "),t("code",[e._v("npm run serve")]),e._v(" starts the local service. Open the following path to view the document:")]),t("p",[t("code",[e._v("ip:port/#/doc/zh/introduction")])])])}],a={},i=a,c=r("2877"),d=Object(c["a"])(i,o,n,!1,null,null,null);t["default"]=d.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d0c20be.de21aadc.js b/tools/mind-map/dist/js/chunk-2d0c20be.de21aadc.js
deleted file mode 100644
index 695c5b9d..00000000
--- a/tools/mind-map/dist/js/chunk-2d0c20be.de21aadc.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c20be"],{4947:function(t,e,s){"use strict";s.r(e);var n=function(){var t=this;t._self._c;return t._m(0)},a=[function(){var t=this,e=t._self._c;return e("div",[e("h1",[t._v("RichText plugin")]),e("blockquote",[e("p",[t._v("v0.4.0+")])]),e("blockquote",[e("p",[t._v("Note: This is a testing nature and imperfect function")])]),e("p",[t._v("This plugin provides the ability to edit rich text of nodes, and takes effect after registration.")]),e("p",[t._v("By default, node editing can only uniformly apply styles to all text in the node. This plugin can support rich text editing effects. Currently, it supports bold, italic, underline, strikethrough, font, font size, color, and backgroundColor. Underline and line height are not supported.")]),e("p",[t._v("The principle of this plugin is to use "),e("a",{attrs:{href:"https://github.com/quilljs/quill"}},[t._v("Quill")]),t._v(" editor implements rich text editing, and then uses the edited "),e("code",[t._v("DOM")]),t._v(" node directly as the text data of the node, and embeds the "),e("code",[t._v("DOM")]),t._v(" node through the "),e("code",[t._v("svg")]),t._v(" "),e("code",[t._v("foreignObject")]),t._v(" tag during rendering.")]),e("blockquote",[e("p",[t._v("The following prompts exist in versions prior to v0.5.6:")]),e("p",[t._v("This also caused a problem, that is, the function of exporting as a picture was affected, The original principle of exporting "),e("code",[t._v("svg")]),t._v(" as an image is very simple, Get the "),e("code",[t._v("svg")]),t._v(" string, and then create the "),e("code",[t._v("blob")]),t._v(" data of the "),e("code",[t._v("type=image/svg+xml")]),t._v(" type. Then use the "),e("code",[t._v("URL.createObjectURL")]),t._v(" method to generate the "),e("code",[t._v("data:url")]),t._v(" data. Then create a "),e("code",[t._v("Image")]),t._v(" tag, use the "),e("code",[t._v("data:url")]),t._v(" as the "),e("code",[t._v("src")]),t._v(" of the image, and finally draw the image on the "),e("code",[t._v("canvas")]),t._v(" object for export, However, after testing, when the "),e("code",[t._v("DOM")]),t._v(" node is embedded in the "),e("code",[t._v("svg")]),t._v(", this method of export will cause errors, and after trying many ways, the perfect export effect cannot be achieved, The current method is to traverse the "),e("code",[t._v("foreignObject")]),t._v(" node in "),e("code",[t._v("svg")]),t._v(", using "),e("a",{attrs:{href:"https://github.com/niklasvh/html2canvas"}},[t._v("html2canvas")]),t._v(" Convert the "),e("code",[t._v("DOM")]),t._v(" node in the "),e("code",[t._v("foreignObject")]),t._v(" node into an image and then replace the "),e("code",[t._v("foreignObject")]),t._v(" node. This method can work, but it is very time-consuming. Because the "),e("code",[t._v("html2canvas")]),t._v(" conversion takes a long time, it takes about 2 seconds to convert a node. This leads to the more nodes, the slower the conversion time. Therefore, it is recommended not to use this plugin if you cannot tolerate the long time of export.")])]),e("p",[t._v("The version of "),e("code",[t._v("v0.5.7+")]),t._v(" directly uses "),e("code",[t._v("html2canvas")]),t._v(" to convert the entire "),e("code",[t._v("svg")]),t._v(", which is no longer an issue with speed. However, there is currently a bug where the color of the node does not take effect after export.")]),e("h2",[t._v("Register")]),e("pre",{staticClass:"hljs"},[e("code",[e("span",{staticClass:"hljs-keyword"},[t._v("import")]),t._v(" MindMap "),e("span",{staticClass:"hljs-keyword"},[t._v("from")]),t._v(" "),e("span",{staticClass:"hljs-string"},[t._v("'simple-mind-map'")]),t._v("\n"),e("span",{staticClass:"hljs-keyword"},[t._v("import")]),t._v(" RichText "),e("span",{staticClass:"hljs-keyword"},[t._v("from")]),t._v(" "),e("span",{staticClass:"hljs-string"},[t._v("'simple-mind-map/src/plugins/RichText.js'")]),t._v("\n"),e("span",{staticClass:"hljs-comment"},[t._v("// import RichText from 'simple-mind-map/src/RichText.js' Use this path for versions below v0.6.0")]),t._v("\n\nMindMap.usePlugin(RichText, opt?)\n")])]),e("p",[t._v("After registration and instantiation of "),e("code",[t._v("MindMap")]),t._v(", the instance can be obtained through "),e("code",[t._v("mindMap.richText")]),t._v(".")]),e("h3",[t._v("Register options")]),e("p",[t._v("The "),e("code",[t._v("opt")]),t._v(" option can pass the following parameters:")]),e("ul",[e("li",[e("code",[t._v("opt.fontFamilyList")])])]),e("p",[t._v("Replace the built-in font list during rich text editing. The built-in list is:")]),e("pre",{staticClass:"hljs"},[e("code",[t._v("[\n "),e("span",{staticClass:"hljs-string"},[t._v("'宋体, SimSun, Songti SC'")]),t._v(",\n "),e("span",{staticClass:"hljs-string"},[t._v("'微软雅黑, Microsoft YaHei'")]),t._v(",\n "),e("span",{staticClass:"hljs-string"},[t._v("'楷体, 楷体_GB2312, SimKai, STKaiti'")]),t._v(",\n "),e("span",{staticClass:"hljs-string"},[t._v("'黑体, SimHei, Heiti SC'")]),t._v(",\n "),e("span",{staticClass:"hljs-string"},[t._v("'隶书, SimLi'")]),t._v(",\n "),e("span",{staticClass:"hljs-string"},[t._v("'andale mono'")]),t._v(",\n "),e("span",{staticClass:"hljs-string"},[t._v("'arial, helvetica, sans-serif'")]),t._v(",\n "),e("span",{staticClass:"hljs-string"},[t._v("'arial black, avant garde'")]),t._v(",\n "),e("span",{staticClass:"hljs-string"},[t._v("'comic sans ms'")]),t._v(",\n "),e("span",{staticClass:"hljs-string"},[t._v("'impact, chicago'")]),t._v(",\n "),e("span",{staticClass:"hljs-string"},[t._v("'times new roman'")]),t._v(",\n "),e("span",{staticClass:"hljs-string"},[t._v("'sans-serif'")]),t._v(",\n "),e("span",{staticClass:"hljs-string"},[t._v("'serif'")]),t._v("\n]\n")])]),e("ul",[e("li",[e("code",[t._v("opt.fontSizeList")])])]),e("p",[t._v("Replace the built-in font size list during rich text editing. The built-in list is:")]),e("pre",{staticClass:"hljs"},[e("code",[t._v("["),e("span",{staticClass:"hljs-number"},[t._v("1")]),t._v(", "),e("span",{staticClass:"hljs-number"},[t._v("2")]),t._v(", "),e("span",{staticClass:"hljs-number"},[t._v("3")]),t._v(", .."),e("span",{staticClass:"hljs-number"},[t._v(".100")]),t._v("]\n")])]),e("h2",[t._v("Method")]),e("h3",[t._v("selectAll()")]),e("p",[t._v("Select All. When the node is being edited, you can select all the text in the node through this method.")]),e("h3",[t._v("focus()")]),e("blockquote",[e("p",[t._v("v0.4.7+")])]),e("p",[t._v("Focus.")]),e("h3",[t._v("formatText(config = {})")]),e("ul",[e("li",[e("code",[t._v("config")]),t._v(":Object. The key is the style attribute and the value is the style value. The complete configuration is as follows:")])]),e("pre",{staticClass:"hljs"},[e("code",[t._v("{\n "),e("span",{staticClass:"hljs-attr"},[t._v("font")]),t._v(": "),e("span",{staticClass:"hljs-string"},[t._v("'字体'")]),t._v(",\n "),e("span",{staticClass:"hljs-attr"},[t._v("size")]),t._v(": "),e("span",{staticClass:"hljs-string"},[t._v("'12px,'")]),t._v(" "),e("span",{staticClass:"hljs-comment"},[t._v("// font size")]),t._v("\n "),e("span",{staticClass:"hljs-attr"},[t._v("bold")]),t._v(": "),e("span",{staticClass:"hljs-literal"},[t._v("true")]),t._v(", "),e("span",{staticClass:"hljs-comment"},[t._v("// Bold or not, true/false ")]),t._v("\n "),e("span",{staticClass:"hljs-attr"},[t._v("italic")]),t._v(": "),e("span",{staticClass:"hljs-literal"},[t._v("true")]),t._v(", "),e("span",{staticClass:"hljs-comment"},[t._v("// Italic or not, true/false ")]),t._v("\n "),e("span",{staticClass:"hljs-attr"},[t._v("underline")]),t._v(": "),e("span",{staticClass:"hljs-literal"},[t._v("true")]),t._v(", "),e("span",{staticClass:"hljs-comment"},[t._v("// Show underline or not, true/false ")]),t._v("\n "),e("span",{staticClass:"hljs-attr"},[t._v("strike")]),t._v(": "),e("span",{staticClass:"hljs-literal"},[t._v("true")]),t._v(", "),e("span",{staticClass:"hljs-comment"},[t._v("// Whether to display strikethrough, true/false ")]),t._v("\n "),e("span",{staticClass:"hljs-attr"},[t._v("color")]),t._v(": "),e("span",{staticClass:"hljs-string"},[t._v("'#333'")]),t._v(" "),e("span",{staticClass:"hljs-comment"},[t._v("// color")]),t._v("\n}\n")])]),e("p",[t._v("Formats the currently selected text.")]),e("h3",[t._v("formatRangeText(range, config = {})")]),e("ul",[e("li",[e("code",[t._v("range")]),t._v(":The range object of "),e("code",[t._v("Quill")]),t._v(", has the following format:")])]),e("pre",{staticClass:"hljs"},[e("code",[t._v("{\n index,\n length\n}\n")])]),e("ul",[e("li",[e("code",[t._v("config")]),t._v(":Same as "),e("code",[t._v("formatText")]),t._v(" method")])]),e("p",[t._v("Formats the text of the specified range.")]),e("h3",[t._v("formatAllText(config = {})")]),e("ul",[e("li",[e("code",[t._v("config")]),t._v(":Same as "),e("code",[t._v("formatText")]),t._v(" method")])]),e("p",[t._v("Formats all text of the current edit node.")]),e("h3",[t._v("removeFormat()")]),e("blockquote",[e("p",[t._v("v0.4.1+")])]),e("p",[t._v("Clears the style of the currently selected text.")]),e("h3",[t._v("normalStyleToRichTextStyle(style)")]),e("p",[t._v("Converts a normal node style object to a rich text style object. Because there are differences between node style attributes and rich text style attributes during non-rich text editing, a conversion operation is required. For example:")]),e("pre",{staticClass:"hljs"},[e("code",[t._v("{\n "),e("span",{staticClass:"hljs-attr"},[t._v("fontFamily")]),t._v(": "),e("span",{staticClass:"hljs-string"},[t._v("'xxx'")]),t._v("\n}\n\n"),e("span",{staticClass:"hljs-comment"},[t._v("// After conversion")]),t._v("\n\n{\n "),e("span",{staticClass:"hljs-attr"},[t._v("font")]),t._v(": "),e("span",{staticClass:"hljs-string"},[t._v("'xxx'")]),t._v("\n}\n")])]),e("h3",[t._v("richTextStyleToNormalStyle(config)")]),e("p",[t._v("Converts rich text style objects to normal node style objects. For example:")]),e("pre",{staticClass:"hljs"},[e("code",[t._v("{\n "),e("span",{staticClass:"hljs-attr"},[t._v("size")]),t._v(": "),e("span",{staticClass:"hljs-string"},[t._v("'16px'")]),t._v("\n}\n\n"),e("span",{staticClass:"hljs-comment"},[t._v("// After conversion")]),t._v("\n\n{\n "),e("span",{staticClass:"hljs-attr"},[t._v("fontSize")]),t._v(": "),e("span",{staticClass:"hljs-number"},[t._v("16")]),t._v("\n}\n")])]),e("h3",[t._v("handleSvgDomElements(svg)")]),e("ul",[e("li",[e("code",[t._v("svg")]),t._v(": "),e("code",[t._v("svg")]),t._v(" node")])]),e("p",[t._v("Convert the "),e("code",[t._v("dom")]),t._v(" element embedded in the "),e("code",[t._v("svg")]),t._v(" into a picture and return a "),e("code",[t._v("Promise")]),t._v(".")]),e("h3",[t._v("transformAllNodesToNormalNode()")]),e("p",[t._v("Convert all nodes to non-rich text nodes.")])])}],i={},o=i,l=s("2877"),v=Object(l["a"])(o,n,a,!1,null,null,null);e["default"]=v.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d0c4a65.0cd59c76.js b/tools/mind-map/dist/js/chunk-2d0c4a65.0cd59c76.js
deleted file mode 100644
index 273c301a..00000000
--- a/tools/mind-map/dist/js/chunk-2d0c4a65.0cd59c76.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c4a65"],{"3c76":function(s,a,t){"use strict";t.r(a);var n=function(){var s=this;s._self._c;return s._m(0)},v=[function(){var s=this,a=s._self._c;return a("div",[a("h1",[s._v("设置基础样式")]),a("p",[s._v("基础样式修改的其实是主题配置,所以会通过"),a("code",[s._v("setThemeConfig")]),s._v("方法设置。")]),a("h2",[s._v("设置背景")]),a("p",[s._v("画布背景可以设置颜色或图片。")]),a("h3",[s._v("设置画布背景颜色")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("mindMap.setThemeConfig({\n "),a("span",{staticClass:"hljs-attr"},[s._v("backgroundColor")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'#A4DD00'")]),s._v("\n})\n")])]),a("h3",[s._v("设置背景图片")]),a("p",[s._v("背景图片还支持设置三个属性:"),a("code",[s._v("图片重复")]),s._v("、"),a("code",[s._v("图片位置")]),s._v("、"),a("code",[s._v("图片大小")]),s._v("。其实就是"),a("code",[s._v("css")]),s._v("的"),a("code",[s._v("background-repeat")]),s._v("、"),a("code",[s._v("background-position")]),s._v("、"),a("code",[s._v("background-size")]),s._v("三个属性。")]),a("p",[s._v("不过导出为图片的时候背景图片的行为和"),a("code",[s._v("css")]),s._v("并不完全一致,因为导出是通过"),a("code",[s._v("canvas")]),s._v("实现的,而"),a("code",[s._v("canvas")]),s._v("并不存在这三个属性,所以是通过有限模拟"),a("code",[s._v("css")]),s._v("这三个属性行为实现的,详情可以阅读文章"),a("a",{attrs:{href:"https://juejin.cn/post/7204854015463538744"}},[s._v("如何在canvas中模拟css的背景图片样式")]),s._v("。")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("mindMap.setThemeConfig({\n "),a("span",{staticClass:"hljs-attr"},[s._v("backgroundImage")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'xxx.png'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("backgroundRepeat")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'no-repeat'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("backgroundPosition")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'center center'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("backgroundSize")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'cover'")]),s._v("\n})\n")])]),a("p",[a("code",[s._v("backgroundRepeat")]),s._v("支持设置的值如下:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("[\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'不重复'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'no-repeat'")]),s._v("\n },\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'重复'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'repeat'")]),s._v("\n },\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'水平方向重复'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'repeat-x'")]),s._v("\n },\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'垂直方向重复'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'repeat-y'")]),s._v("\n }\n]\n")])]),a("p",[a("code",[s._v("backgroundPosition")]),s._v("支持设置的值如下:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("[\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'默认'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'0% 0%'")]),s._v("\n },\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'左上'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'left top'")]),s._v("\n },\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'左中'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'left center'")]),s._v("\n },\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'左下'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'left bottom'")]),s._v("\n },\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'右上'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'right top'")]),s._v("\n },\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'右中'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'right center'")]),s._v("\n },\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'右下'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'right bottom'")]),s._v("\n },\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'中上'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'center top'")]),s._v("\n },\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'居中'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'center center'")]),s._v("\n },\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'中下'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'center bottom'")]),s._v("\n }\n]\n")])]),a("p",[a("code",[s._v("backgroundSize")]),s._v("支持设置的值如下:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("[\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'自动'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'auto'")]),s._v("\n },\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'覆盖'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'cover'")]),s._v("\n },\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'保持'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'contain'")]),s._v("\n }\n]\n")])]),a("h2",[s._v("设置连线样式")]),a("p",[s._v("设置节点间的连线样式,支持:"),a("code",[s._v("颜色")]),s._v("、"),a("code",[s._v("粗细")]),s._v("、"),a("code",[s._v("虚线")]),s._v("、"),a("code",[s._v("风格")]),s._v("。")]),a("p",[s._v("目前支持三种连线风格,分别是:曲线(curve)、直线(straight)、直连(direct),其中曲线只在"),a("code",[s._v("logicalStructure")]),s._v("逻辑结构图和"),a("code",[s._v("mindMap")]),s._v("思维导图两种结构时生效。")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("mindMap.setThemeConfig({\n "),a("span",{staticClass:"hljs-attr"},[s._v("lineColor")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'#009CE0'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("lineWidth")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("3")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("lineDasharray")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'15, 10, 5, 10, 15'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("lineStyle")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'curve'")]),s._v("\n})\n")])]),a("h2",[s._v("设置概要的连线样式")]),a("p",[s._v("概要节点前面会有一条弧线,它的颜色和粗细可以修改。")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("mindMap.setThemeConfig({\n "),a("span",{staticClass:"hljs-attr"},[s._v("generalizationLineColor")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'#FA28FF'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("generalizationLineWidth")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("4")]),s._v("\n})\n")])]),a("h2",[s._v("设置关联线的样式")]),a("blockquote",[a("p",[s._v("关联线需要使用关联线插件")])]),a("p",[s._v("关联线支持设置颜色和粗细,因为它还可以被激活选中,所以还可以设置激活时的颜色和粗细。")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("mindMap.setThemeConfig({\n "),a("span",{staticClass:"hljs-attr"},[s._v("associativeLineColor")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'#FA28FF'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("associativeLineWidth")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("4")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("associativeLineActiveColor")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'#9F0500'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("associativeLineActiveWidth")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("6")]),s._v("\n})\n")])]),a("h2",[s._v("设置节点边框风格")]),a("p",[s._v("默认节点的边框时封闭图形,不过也提供了一种只有底边边框的风格。")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("mindMap.setThemeConfig({\n "),a("span",{staticClass:"hljs-attr"},[s._v("nodeUseLineStyle")]),s._v(": "),a("span",{staticClass:"hljs-literal"},[s._v("true")]),s._v("\n})\n")])]),a("h2",[s._v("设置节点内边距")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("mindMap.setThemeConfig({\n "),a("span",{staticClass:"hljs-attr"},[s._v("paddingX")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("30")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("paddingY")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("20")]),s._v("\n})\n")])]),a("h2",[s._v("设置节点内的图片最大的显示宽高")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("mindMap.setThemeConfig({\n "),a("span",{staticClass:"hljs-attr"},[s._v("imgMaxWidth")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("100")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("imgMaxHeight")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("50")]),s._v("\n})\n")])]),a("h2",[s._v("设置节点内图标的显示大小")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("mindMap.setThemeConfig({\n "),a("span",{staticClass:"hljs-attr"},[s._v("iconSize")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("30")]),s._v(",\n})\n")])]),a("h2",[s._v("设置节点外边距")]),a("p",[s._v("设置节点外边距稍微麻烦一点,需要针对不同层级的节点进行设置。")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("mindMap.setThemeConfig({\n "),a("span",{staticClass:"hljs-comment"},[s._v("// 二级节点样式")]),s._v("\n "),a("span",{staticClass:"hljs-attr"},[s._v("second")]),s._v(": {\n "),a("span",{staticClass:"hljs-attr"},[s._v("marginX")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("30")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("marginY")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("20")]),s._v("\n },\n "),a("span",{staticClass:"hljs-comment"},[s._v("// 三级及以下节点样式")]),s._v("\n "),a("span",{staticClass:"hljs-attr"},[s._v("node")]),s._v(": {\n "),a("span",{staticClass:"hljs-attr"},[s._v("marginX")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("40")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("marginY")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("30")]),s._v("\n }\n})\n")])]),a("h2",[s._v("完整示例")]),a("iframe",{staticStyle:{width:"100%",height:"455px",border:"none"},attrs:{src:"https://wanglin2.github.io/playground/#eNq1WAtvE0cQ/iurQ8hOsc92EofgJoiQEIpEWgRUEOUidL5b2xfOt+ZunThEkYCWR3iUVqUtLbRKaQpIraBqq0ISkvyZ+JF/0dm9p31OsKM2UuS7nZlvvp3dnZ25BWGkVBJny1jICEOWYmoliixMy6WjkqEVS8SkaAGZOBdDxJggZYNiNYasgqzrZO4szqFFlDNJEUUAIeJZTGiGOiGXbJEkWDCs43gRRuNFuSQJkoGQZOiYIjbGNIeRUdZ1yZCMRAJVN76uLj2obV2r/b1e/+Hzxt0b9Rur1TvfNX5+KRkKMSyKZIVqs/hjomILbH0+0anpHgel8WqzvvGq8dn92vevd549bSz96RrD/I7nR4lOTLCN9qDho2iBUXLIiCA/X8BFPEqMnJaPchlCWVm5nDchBCo3zaDIgZH+sbFkEuYt0UVwu9jseeun+tpWbflN9d3DJs+ninIe788zNwXPBUpLViaR0CtXDGveEollxRUjnsXajGbkRVnX5suGYokKKSZkC1CtRC+eHEwPjqSKRJwp4Xwk1op9FpewTAHcIHGTP4d1zhBLoxoxQEvBsBdMZP+ENc9pVxlRhcyCtKsAndYMfI7O612FSAcjb1mSySOjJ5IuJya6oKm0kEF9gaExGXaNacrzYJFKx1AqGUPOTyrNbJspV+/crj14ZlPe+eWL2vI7ewMrZdMjfMpQcQVYJ20R88LHT2sws2E0FQHlWRyJoYhFTVnLFyDCKKJqJlZoZNoLwZxGlcK+o8CNMs3Op6IhmocO9aCDqA+8IhRemtrzG43n19nZa7dGnOBJeV8U89jAJuzPqzLbRwzCW7bxkd7B8XF32cKKziL2t99N1Zt/Na4/ArLAuh3fEWtffOH0EEUDDrMQyV3Jtmi5TNtLR3ju8pCOjCfTkET20nXwBlpnvr2xVX/0srr2TWNz1d2U9pzLFk+O+5qyAYafWr5tBlGzjHc5w3ZuvnUTGDTe/Bg4xsz9GVlVIR9147xkm1yEw5p0QuIMTWZQL5ysPVnA2lefbNaXbteeXquuvGBb4fFmfWWt+mpj57fHLex4MmV5qht+WjE/IVecBUm7FO3RjzA702z4PTSBY235ts9u5UX1j2AK5OzgrWtyjo0TvD04rHzbdsEmZDOvGd24ZLtw7X597YUN7J48JrIwYKsZG8X+K3L84OL6o876soFFR8jA3y4BePXh3e31X7ff3gt7Ybu1vY/+tj76XB9N8fGKm2h45qw4wXNuUeNOHOsZpBKlXIQLUMxjekKH2Bj0+PwpNRpxLCFUVIZjZEZ6HCqqTOUAW0lgA5KQCfCXBIorFMYkoba8ak9YErypuLFhikpB01UTG6A85QMEsNp7aPESXL+AI1evORGHkZoZ84sjhOKTDr/tNo3QVPaaTguN6p1btUevt9+u7zx7HCJj67KzArpwK5dMjZganb+UikyHVJu5hvnyC3R39f9xAi03xXnY4FDn8RgKAwNKti8n4/jhVB+O9/cmU/Fsr9wXHxzoT6bUgb5cNj0oCeHZ7orLdrJJ9E9yOVZMMidTC5JQgYd4bzomCfPwlFyMOWOBoemWAHUf0eBrQBaE+Y93vKZyrc6CGLZm1wrbWZLQTZl+Ra8kKoXekYuXj1cmi+mZkzidGzs8dmHSHE1nxZKR380VS/jMXZutNseuKSZLJYO50BUX+H3lyAMJiEJi7PjABpfEfXTGXDPN0OhZQuySwOsgpiI6zvEK2OkhnFr0Q7s75Nm//uSr6pe/O0mf94Pba/e21/8J3kvEiELLouJLdk8IgFH2GuM3A6t+/YQO5ZXfN4qzsl5m16ur55XC8D+UsHth6ILhhWJoYGWK4Q2hIVWbRYoOx2RYEhwSY7hIJIGLHQVN9aXeNQAqQwmQBhVdJEqInpWZii2U6FC2TCkx0DFF15TLoOL3raAVbm+HEraBAwD4bQF42dMCYBdNHQF4ZaEPEegROoBobm8AJdxadYoS6EE8Nm1bl04BA02CBxhuLN6P1lp+A1i4Vu8o3IEy2g94c9HdMY5X8LYi8dW3a+TOwZxaM4wFpW2XWHbZ2Yrk1qgtMP4Jcp+GEoEDCq8WCznXOOZ8kJIEMWF/hXKqOBFbRVGx4Cbz0o0YOMtuuuAJlKfHg1wPmhEvf5kYPEIy4QKe+tj/gdYz70L5hnLWInqZ2obQtEMWzKCk80ZJyX8Ju7dTNqttk6WK67m93w9cz3bp66M6/ZQ74FEXnRTUIeOUy8Ah7b0DIKRPvgZCDO4otgLsu584YxEDPjNyeHZ5MQGrJVyHkgBfEe2bU0zAo2hCSa4VMVuseNYkcxY2AcS7CNt8WbRtw0vNrBxui8Liv2HIkPI="}})])}],l={},_=l,i=t("2877"),e=Object(i["a"])(_,n,v,!1,null,null,null);a["default"]=e.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d0c5538.8e8634f2.js b/tools/mind-map/dist/js/chunk-2d0c5538.8e8634f2.js
deleted file mode 100644
index 1089ab2a..00000000
--- a/tools/mind-map/dist/js/chunk-2d0c5538.8e8634f2.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c5538"],{"3f2a":function(s,t,a){"use strict";a.r(t);var n=function(){var s=this;s._self._c;return s._m(0)},l=[function(){var s=this,t=s._self._c;return t("div",[t("h1",[s._v("主题")]),t("h2",[s._v("使用和切换主题")]),t("p",[t("code",[s._v("simple-mind-map")]),s._v("内置了很多主题,可以通过如下方式获取到所有的内置主题列表:")]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" { themeList } "),t("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),t("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map/src/constants/constant'")]),s._v("\n"),t("span",{staticClass:"hljs-comment"},[s._v("// import { themeList } from 'simple-mind-map/src/utils/constant' v0.6.0以下版本使用该路径")]),s._v("\n")])]),t("p",[s._v("可以在实例化"),t("code",[s._v("simple-mind-map")]),s._v("时指定使用的主题:")]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-keyword"},[s._v("new")]),s._v(" MindMap({\n "),t("span",{staticClass:"hljs-attr"},[s._v("theme")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'minions'")]),s._v("\n})\n")])]),t("p",[s._v("如果想动态切换主题也很简单:")]),t("pre",{staticClass:"hljs"},[t("code",[s._v("mindMap.setTheme("),t("span",{staticClass:"hljs-string"},[s._v("'classic'")]),s._v(")\n")])]),t("p",[s._v("如果要获取当前使用的主题名称可以使用:")]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" theme = mindMap.getTheme()\n")])]),t("h2",[s._v("定义新主题")]),t("p",[s._v("除了可以使用内置的主题外,你也可以自定义新主题:")]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" MindMap "),t("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),t("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map'")]),s._v("\n\n"),t("span",{staticClass:"hljs-comment"},[s._v("// 注册新主题")]),s._v("\nMindMap.defineTheme("),t("span",{staticClass:"hljs-string"},[s._v("'主题名称'")]),s._v(", {\n "),t("span",{staticClass:"hljs-comment"},[s._v("// 主题配置")]),s._v("\n})\n\n"),t("span",{staticClass:"hljs-comment"},[s._v("// 1.实例化时使用新注册的主题")]),s._v("\n"),t("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" mindMap = "),t("span",{staticClass:"hljs-keyword"},[s._v("new")]),s._v(" MindMap({\n "),t("span",{staticClass:"hljs-attr"},[s._v("theme")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'主题名称'")]),s._v("\n})\n\n"),t("span",{staticClass:"hljs-comment"},[s._v("// 2.动态切换新主题")]),s._v("\nmindMap.setTheme("),t("span",{staticClass:"hljs-string"},[s._v("'主题名称'")]),s._v(")\n")])]),t("p",[s._v("最好在实例化之前进行注册,这样在实例化时可以直接使用新注册的主题。")]),t("p",[s._v("一个主题其实就是一个普通的对象,完整配置可以参考"),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/themes/default.js"}},[s._v("默认主题")]),s._v(","),t("code",[s._v("defineTheme")]),s._v("方法会把你传入的配置和默认配置做合并。大部分主题其实需要自定义的部分不是很多,一个典型的自定义主题配置可以参考"),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/themes/blueSky.js"}},[s._v("blueSky")]),s._v("。")]),t("pre",{staticClass:"hljs"},[t("code",[s._v("MindMap.defineTheme("),t("span",{staticClass:"hljs-string"},[s._v("'redSpirit'")]),s._v(", {\n "),t("span",{staticClass:"hljs-comment"},[s._v("// 背景颜色")]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("backgroundColor")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'rgb(255, 238, 228)'")]),s._v(",\n "),t("span",{staticClass:"hljs-comment"},[s._v("// 连线的颜色")]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("lineColor")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'rgb(230, 138, 131)'")]),s._v(",\n "),t("span",{staticClass:"hljs-attr"},[s._v("lineWidth")]),s._v(": "),t("span",{staticClass:"hljs-number"},[s._v("3")]),s._v(",\n "),t("span",{staticClass:"hljs-comment"},[s._v("// 概要连线的粗细")]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("generalizationLineWidth")]),s._v(": "),t("span",{staticClass:"hljs-number"},[s._v("3")]),s._v(",\n "),t("span",{staticClass:"hljs-comment"},[s._v("// 概要连线的颜色")]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("generalizationLineColor")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'rgb(222, 101, 85)'")]),s._v(",\n "),t("span",{staticClass:"hljs-comment"},[s._v("// 根节点样式")]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("root")]),s._v(": {\n "),t("span",{staticClass:"hljs-attr"},[s._v("fillColor")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'rgb(207, 44, 44)'")]),s._v(",\n "),t("span",{staticClass:"hljs-attr"},[s._v("color")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'rgb(255, 233, 157)'")]),s._v(",\n "),t("span",{staticClass:"hljs-attr"},[s._v("borderColor")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("''")]),s._v(",\n "),t("span",{staticClass:"hljs-attr"},[s._v("borderWidth")]),s._v(": "),t("span",{staticClass:"hljs-number"},[s._v("0")]),s._v(",\n "),t("span",{staticClass:"hljs-attr"},[s._v("fontSize")]),s._v(": "),t("span",{staticClass:"hljs-number"},[s._v("24")]),s._v(",\n "),t("span",{staticClass:"hljs-attr"},[s._v("active")]),s._v(": {\n "),t("span",{staticClass:"hljs-attr"},[s._v("borderColor")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'rgb(255, 233, 157)'")]),s._v(",\n "),t("span",{staticClass:"hljs-attr"},[s._v("borderWidth")]),s._v(": "),t("span",{staticClass:"hljs-number"},[s._v("3")]),s._v(",\n }\n },\n "),t("span",{staticClass:"hljs-comment"},[s._v("// 二级节点样式")]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("second")]),s._v(": {\n "),t("span",{staticClass:"hljs-attr"},[s._v("fillColor")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'rgb(255, 255, 255)'")]),s._v(",\n "),t("span",{staticClass:"hljs-attr"},[s._v("color")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'rgb(211, 58, 21)'")]),s._v(",\n "),t("span",{staticClass:"hljs-attr"},[s._v("borderColor")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'rgb(222, 101, 85)'")]),s._v(",\n "),t("span",{staticClass:"hljs-attr"},[s._v("borderWidth")]),s._v(": "),t("span",{staticClass:"hljs-number"},[s._v("2")]),s._v(",\n "),t("span",{staticClass:"hljs-attr"},[s._v("fontSize")]),s._v(": "),t("span",{staticClass:"hljs-number"},[s._v("18")]),s._v(",\n "),t("span",{staticClass:"hljs-attr"},[s._v("active")]),s._v(": {\n "),t("span",{staticClass:"hljs-attr"},[s._v("borderColor")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'rgb(255, 233, 157)'")]),s._v(",\n }\n },\n "),t("span",{staticClass:"hljs-comment"},[s._v("// 三级及以下节点样式")]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("node")]),s._v(": {\n "),t("span",{staticClass:"hljs-attr"},[s._v("fontSize")]),s._v(": "),t("span",{staticClass:"hljs-number"},[s._v("14")]),s._v(",\n "),t("span",{staticClass:"hljs-attr"},[s._v("color")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'rgb(144, 71, 43)'")]),s._v(",\n "),t("span",{staticClass:"hljs-attr"},[s._v("active")]),s._v(": {\n "),t("span",{staticClass:"hljs-attr"},[s._v("borderColor")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'rgb(255, 233, 157)'")]),s._v("\n }\n },\n "),t("span",{staticClass:"hljs-comment"},[s._v("// 概要节点样式")]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("generalization")]),s._v(": {\n "),t("span",{staticClass:"hljs-attr"},[s._v("fontSize")]),s._v(": "),t("span",{staticClass:"hljs-number"},[s._v("14")]),s._v(",\n "),t("span",{staticClass:"hljs-attr"},[s._v("fillColor")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'rgb(255, 247, 211)'")]),s._v(",\n "),t("span",{staticClass:"hljs-attr"},[s._v("borderColor")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'rgb(255, 202, 162)'")]),s._v(",\n "),t("span",{staticClass:"hljs-attr"},[s._v("borderWidth")]),s._v(": "),t("span",{staticClass:"hljs-number"},[s._v("2")]),s._v(",\n "),t("span",{staticClass:"hljs-attr"},[s._v("color")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'rgb(187, 101, 69)'")]),s._v(",\n "),t("span",{staticClass:"hljs-attr"},[s._v("active")]),s._v(": {\n "),t("span",{staticClass:"hljs-attr"},[s._v("borderColor")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'rgb(222, 101, 85)'")]),s._v("\n }\n }\n})\n")])]),t("h2",[s._v("完整示例")]),t("iframe",{staticStyle:{width:"100%",height:"455px",border:"none"},attrs:{src:"https://wanglin2.github.io/playground/#eNrFV+tvG0UQ/1dWh9A5yDk/0wTjVIXCB6QGoRaJD7kIne/W9rbn3eN2nUcjSxBQadpUBYEoL6ESiZIPSKCCSh5U+Wf8SP8LZm/vZfuSlqpSP/ixszO/mf3N7Nzcpvam5xmrXazVtDq3feIJxLHoeudNSjoe8wXaRD5u5hGjS6xLBXbyiLct12Vrl3ET9VDTZx2kA4IeWywR6ixZntoyNQ5iF892QDrbsTxTMylCJnWxQFImNRcR7bqukhcKaPD468H2neHxJ8O/j0Y/fH5ya2u0dTC4ee/klz2T2oxygSxbkFX8HnMwB+skotzyyoxJFcrNL4Z3dvv7R092v4vM7LZFW/iDNu5gMMvNoMXzaFP6DSMx4PDBbk63XYtzYusA1wsRh3/tDW7sDA4e9R8fj77ZG3775zi6g5uEZqGHjBgphZzuY+eKR3wi9LzSQgh8nHy2M/z+jye7P51sP1TChmVfa/lAvnORucyvId1vNXLlubk8KlcW4Ku8MKPnE4Djn0eHx0BbGsMFt2PWlWIelaR1qVKKraXWh8QR7RqqJIDDB1snDz6NYUcP742ObqjdFqbYt1xy3RKE0UvPYp6Oatp8LMZyGcIrlvJoYS59wOH9A1URw/v/DP69q+Q+Y6IW0YhQk7juGFZxPo+qVfmJoRCyp/msgMu5+ZROg/kO9iOsSXl43GIsbjIqrpDruIbK1VioijUV3iTsWQFMuIqYRQiqMvhJmOkf7owOf5smh2OoT+csegLf4ddpBJUgE3Oy3pKCyTxHVtomDlHO4Ku08GL4yqBlfxtoGdy91T/6tb9/e5ofCm0kzU4SU5LDNBUlWUnzcMJqJeX4eaI+Pejw2kzFOn5nnhZ1dqKrcBkgnWenMdAsylyeKz89j2P0LAB+UAHnXv/f/IxVzyQ90IdFDxpyVr9O2mnUseNHVm660ctHDl6LGnMujAm7NeQwu9vBVBgtLN5xAZqKtzbedXJ6aHkReLagVfn6THg0xxJW6limJgWmNnZSKRZ4XUixqcUtTD0M06mXinabuI6PqVReTjAm4DK9THpKt4TE2bjDDKcryV5a7yVFEP0NZZEdoURchr4vp4D3GSfqQizrLm7KZ6puQ+ogTSuhupB1AmUGeQRFHhRXb+YNNXUEd27041eDL38P71wwffQPb/ePHqULjtGcLvvFR6qcwU9OLvNBE7lEuEhKLSr5YEoxVi23K8eCSE+5h1KFT72gZi+YumAhMAxMlsCwQqjukFUUzCKLphYG8TbuMFMLtkMF4iS7cYGCSr0Au2nFCEkw5jYsqaI2TVFvdIVgFF2wXWJfA5XUrARq6WmqXlC6oS1AT9qmBh2wPW1umsBJgo3+1QspLmDJxYaraLkQzpqmZhTUgBnNWJh3DJtzU4sza6RoizKzphpYqVh8NdBDyIsryMfgEfIWbATFJz+vTNIbQSWGVoMztyuUIYxTUIcwG4QrwbxkMe2+jUmrDerVYtFbjzxn+30t8tyx/BYBvxGqZzkOoa1IEIduhNl+xohLUQRh0PEaAKFSgxxoeU1lQI70xlXOKLxBBPBmuAEZiDuDqcELgmoHRgH+Gj70ZdLBMlmzDZ+tcewDiKmFVzXjpUHatoXweK1QcNc/pnyDG4zzWZvONjC5Csc24Km40aU2N2zWKUCZY8EzakO6CQ/T03r/AbfdVt0="}})])}],v={},i=v,_=a("2877"),r=Object(_["a"])(i,n,l,!1,null,null,null);t["default"]=r.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d0d5cb9.3547f556.js b/tools/mind-map/dist/js/chunk-2d0d5cb9.3547f556.js
deleted file mode 100644
index 6f451a2e..00000000
--- a/tools/mind-map/dist/js/chunk-2d0d5cb9.3547f556.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0d5cb9"],{"708b":function(e,i,t){"use strict";t.r(i);var s=function(){var e=this;e._self._c;return e._m(0)},a=[function(){var e=this,i=e._self._c;return i("div",[i("h1",[e._v("AssociativeLine plugin")]),i("blockquote",[i("p",[e._v("v0.4.5+")])]),i("blockquote",[i("p",[e._v("The function of adjusting associated line control points is supported from v0.4.6+")])]),i("blockquote",[i("p",[e._v("Relevance support for text editing starting from v0.5.11+")])]),i("p",[e._v("This plugin is used to support the addition of associative lines.")]),i("h2",[e._v("Register")]),i("pre",{staticClass:"hljs"},[i("code",[i("span",{staticClass:"hljs-keyword"},[e._v("import")]),e._v(" MindMap "),i("span",{staticClass:"hljs-keyword"},[e._v("from")]),e._v(" "),i("span",{staticClass:"hljs-string"},[e._v("'simple-mind-map'")]),e._v("\n"),i("span",{staticClass:"hljs-keyword"},[e._v("import")]),e._v(" AssociativeLine "),i("span",{staticClass:"hljs-keyword"},[e._v("from")]),e._v(" "),i("span",{staticClass:"hljs-string"},[e._v("'simple-mind-map/src/plugins/AssociativeLine.js'")]),e._v("\n"),i("span",{staticClass:"hljs-comment"},[e._v("// import AssociativeLine from 'simple-mind-map/src/AssociativeLine.js' Use this path for versions below v0.6.0")]),e._v("\n\nMindMap.usePlugin(AssociativeLine)\n")])]),i("p",[e._v("After registration and instantiation of "),i("code",[e._v("MindMap")]),e._v(", the instance can be obtained through "),i("code",[e._v("mindMap.associativeLine")]),e._v(".")]),i("h2",[e._v("Config")]),i("p",[e._v("Support for modifying the thickness and color of associated lines, divided into default and active states. The configuration is as follows:")]),i("ul",[i("li",[i("p",[i("code",[e._v("associativeLineWidth")]),e._v(": The thickness of the default state of the associated line. The default value is "),i("code",[e._v("2")])])]),i("li",[i("p",[i("code",[e._v("associativeLineColor")]),e._v(": Color of the default state of associative lines. The default value is "),i("code",[e._v("rgb(51, 51, 51)")])])]),i("li",[i("p",[i("code",[e._v("associativeLineActiveWidth")]),e._v(": The thickness of the active state of the associated line. The default value is "),i("code",[e._v("8")])])]),i("li",[i("p",[i("code",[e._v("associativeLineActiveColor")]),e._v(": The color of the active state of the associated line. The default value is "),i("code",[e._v("rgba(2, 167, 240, 1)")])])])]),i("p",[e._v("The configuration is provided as a theme, so if you want to modify these four properties, you can modify them using the "),i("code",[e._v("mindMap.setThemeConfig(config)")]),e._v(" method.")]),i("h2",[e._v("Props")]),i("h3",[e._v("mindMap.associativeLine.lineList")]),i("p",[e._v("Currently, all connection line data, array types, and each item of the array are also an array:")]),i("pre",{staticClass:"hljs"},[i("code",[e._v("[\n path, "),i("span",{staticClass:"hljs-comment"},[e._v("// Connector node")]),e._v("\n clickPath, "),i("span",{staticClass:"hljs-comment"},[e._v("// Invisible click line node")]),e._v("\n node, "),i("span",{staticClass:"hljs-comment"},[e._v("// Start node")]),e._v("\n toNode "),i("span",{staticClass:"hljs-comment"},[e._v("// Target node")]),e._v("\n]\n")])]),i("h3",[e._v("mindMap.associativeLine.activeLine")]),i("p",[e._v("The currently active connection line and array type are the same as the structure of each item in the "),i("code",[e._v("lineList")]),e._v(" array.")]),i("h2",[e._v("Methods")]),i("h3",[e._v("renderAllLines()")]),i("p",[e._v("Re-render all associated lines.")]),i("h3",[e._v("removeAllLines()")]),i("p",[e._v("Remove all associated lines.")]),i("h3",[e._v("createLineFromActiveNode()")]),i("p",[e._v("Create an associated line from the current active node. If there are multiple active nodes, the default is the first node.")]),i("p",[e._v("After calling this method, an association line will be rendered from the first active node to the current mouse real-time position. When a target node is clicked, it represents completion of creation. An association line will be rendered between the first active node and the clicked node.")]),i("h3",[e._v("createLine(fromNode)")]),i("p",[e._v("Creates an associative line starting at the specified node.")]),i("p",[e._v("After calling this method, an association line will be rendered from the specified node to the current mouse real-time position. When a target node is clicked, it represents completion of creation, and an association line will be rendered between the specified node and the clicked node.")]),i("h3",[e._v("addLine(fromNode, toNode)")]),i("p",[e._v("Add an associative line directly.")]),i("p",[e._v("Calling this method will directly create an association line from the "),i("code",[e._v("fromNode")]),e._v(" to the "),i("code",[e._v("toNode")]),e._v(" node.")]),i("h3",[e._v("removeLine()")]),i("p",[e._v("Deletes the currently active associative line. Clicking on an associated line is considered active.")]),i("h3",[e._v("clearActiveLine()")]),i("p",[e._v("Clears the active state of the currently active association line.")])])}],n={},o=n,c=t("2877"),l=Object(c["a"])(o,s,a,!1,null,null,null);i["default"]=l.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d0d6590.07c7a6e4.js b/tools/mind-map/dist/js/chunk-2d0d6590.07c7a6e4.js
deleted file mode 100644
index e7cdfd07..00000000
--- a/tools/mind-map/dist/js/chunk-2d0d6590.07c7a6e4.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0d6590"],{"71bb":function(s,_,v){"use strict";v.r(_);var e=function(){var s=this;s._self._c;return s._m(0)},t=[function(){var s=this,_=s._self._c;return _("div",[_("h1",[s._v("部署")]),_("p",[s._v("本项目的"),_("code",[s._v("web")]),s._v("目录下提供了一个基于"),_("code",[s._v("simple-mind-map")]),s._v("库、"),_("code",[s._v("Vue2.x")]),s._v("、"),_("code",[s._v("ElementUI")]),s._v("开发的完整项目,数据默认存储在电脑本地,此外可以操作电脑本地文件,原意是作为一个线上"),_("code",[s._v("demo")]),s._v(",但是也完全可以直接把它当做一个在线版思维导图应用使用,在线地址:"),_("a",{attrs:{href:"https://wanglin2.github.io/mind-map/"}},[s._v("https://wanglin2.github.io/mind-map/")]),s._v("。")]),_("p",[s._v("如果你的网络环境访问"),_("code",[s._v("GitHub")]),s._v("服务很慢,你也可以部署到你的服务器上。")]),_("h2",[s._v("部署到静态文件服务器")]),_("p",[s._v("项目本身不依赖后端,所以完全可以部署到一个静态文件服务器上,可以依次执行如下命令:")]),_("pre",{staticClass:"hljs"},[_("code",[s._v("git "),_("span",{staticClass:"hljs-built_in"},[s._v("clone")]),s._v(" https://github.com/wanglin2/mind-map.git\n"),_("span",{staticClass:"hljs-built_in"},[s._v("cd")]),s._v(" mind-map\n"),_("span",{staticClass:"hljs-built_in"},[s._v("cd")]),s._v(" simple-mind-map\nnpm i\nnpm link\n"),_("span",{staticClass:"hljs-built_in"},[s._v("cd")]),s._v(" ..\n"),_("span",{staticClass:"hljs-built_in"},[s._v("cd")]),s._v(" web\nnpm i\nnpm link simple-mind-map\n")])]),_("p",[s._v("然后你可以选择启动本地服务:")]),_("pre",{staticClass:"hljs"},[_("code",[s._v("npm run serve\n")])]),_("p",[s._v("也可以直接打包生成构建产物:")]),_("pre",{staticClass:"hljs"},[_("code",[s._v("npm run build\n")])]),_("p",[s._v("打包完后的入口页面"),_("code",[s._v("index.html")]),s._v("可以在项目根目录找到,对应的静态资源在根目录下的"),_("code",[s._v("dist")]),s._v("目录,"),_("code",[s._v("html")]),s._v("文件中会通过相对路径访问"),_("code",[s._v("dist")]),s._v("目录的资源,比如"),_("code",[s._v("dist/xxx")]),s._v("。你可以直接把这两个文件或目录上传到你的静态文件服务器,事实上,本项目就是这样部署到"),_("code",[s._v("GitHub Pages")]),s._v("上的。")]),_("p",[s._v("如果你没有代码修改需求的话,直接从本仓库复制这些文件也是可以的。")]),_("p",[s._v("如果你想把"),_("code",[s._v("index.html")]),s._v("也打包进"),_("code",[s._v("dist")]),s._v("目录,可以修改"),_("code",[s._v("web/package.json")]),s._v("文件的"),_("code",[s._v("scripts.build")]),s._v("命令,把"),_("code",[s._v("vue-cli-service build && node ../copy.js")]),s._v("中的"),_("code",[s._v(" && node ../copy.js")]),s._v("删除即可。")]),_("p",[s._v("如果你想修改打包输出的目录,可以修改"),_("code",[s._v("web/vue.config.js")]),s._v("文件的"),_("code",[s._v("outputDir")]),s._v("配置,改成你想要输出的路径即可。")]),_("p",[s._v("如果你想修改"),_("code",[s._v("index.html")]),s._v("文件引用静态资源的路径的话可以修改"),_("code",[s._v("web/vue.config.js")]),s._v("文件的"),_("code",[s._v("publicPath")]),s._v("配置。")]),_("p",[s._v("另外默认使用的是"),_("code",[s._v("hash")]),s._v("路由,也就是路径中会在"),_("code",[s._v("#")]),s._v(",如果你想使用"),_("code",[s._v("history")]),s._v("路由,可以修改"),_("code",[s._v("web/src/router.js")]),s._v("文件,将:")]),_("pre",{staticClass:"hljs"},[_("code",[_("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" router = "),_("span",{staticClass:"hljs-keyword"},[s._v("new")]),s._v(" VueRouter({\n routes\n})\n")])]),_("p",[s._v("改成:")]),_("pre",{staticClass:"hljs"},[_("code",[_("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" router = "),_("span",{staticClass:"hljs-keyword"},[s._v("new")]),s._v(" VueRouter({\n "),_("span",{staticClass:"hljs-attr"},[s._v("mode")]),s._v(": "),_("span",{staticClass:"hljs-string"},[s._v("'history'")]),s._v(",\n routes\n})\n")])]),_("p",[s._v("不过这需要后台支持,因为我们的应用是个单页客户端应用,如果后台没有正确的配置,当用户在浏览器直接访问子路由时会返回404,所以呢你要在服务端增加一个覆盖所有情况的候选资源:如果"),_("code",[s._v("URL")]),s._v("匹配不到任何静态资源,则应该返回同一个"),_("code",[s._v("index.html")]),s._v("页面。")]),_("h2",[s._v("Docker")]),_("p",[s._v("编写中。。。")])])}],n={},i=n,c=v("2877"),o=Object(c["a"])(i,e,t,!1,null,null,null);_["default"]=o.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d0d9fbc.08147ed6.js b/tools/mind-map/dist/js/chunk-2d0d9fbc.08147ed6.js
deleted file mode 100644
index 76110607..00000000
--- a/tools/mind-map/dist/js/chunk-2d0d9fbc.08147ed6.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0d9fbc"],{"6a50":function(e,t,n){"use strict";n.r(t);var o=function(){var e=this;e._self._c;return e._m(0)},a=[function(){var e=this,t=e._self._c;return t("div",[t("h1",[e._v("Constructor")]),t("h2",[e._v("Basic use")]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-tag"},[e._v("<"),t("span",{staticClass:"hljs-name"},[e._v("div")]),e._v(" "),t("span",{staticClass:"hljs-attr"},[e._v("id")]),e._v("="),t("span",{staticClass:"hljs-string"},[e._v('"mindMapContainer"')]),e._v(">")]),t("span",{staticClass:"hljs-tag"},[e._v(""),t("span",{staticClass:"hljs-name"},[e._v("div")]),e._v(">")]),e._v("\n")])]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-keyword"},[e._v("import")]),e._v(" MindMap "),t("span",{staticClass:"hljs-keyword"},[e._v("from")]),e._v(" "),t("span",{staticClass:"hljs-string"},[e._v('"simple-mind-map"')]),e._v(";\n\n"),t("span",{staticClass:"hljs-keyword"},[e._v("const")]),e._v(" mindMap = "),t("span",{staticClass:"hljs-keyword"},[e._v("new")]),e._v(" MindMap({\n "),t("span",{staticClass:"hljs-attr"},[e._v("el")]),e._v(": "),t("span",{staticClass:"hljs-built_in"},[e._v("document")]),e._v(".getElementById("),t("span",{staticClass:"hljs-string"},[e._v('"mindMapContainer"')]),e._v("),\n "),t("span",{staticClass:"hljs-attr"},[e._v("data")]),e._v(": {\n "),t("span",{staticClass:"hljs-string"},[e._v('"data"')]),e._v(": {\n "),t("span",{staticClass:"hljs-string"},[e._v('"text"')]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v('"Root Node"')]),e._v("\n },\n "),t("span",{staticClass:"hljs-string"},[e._v('"children"')]),e._v(": []\n }\n});\n")])]),t("h2",[e._v("Instantiation options")]),t("table",[t("thead",[t("tr",[t("th",[e._v("Field Name")]),t("th",[e._v("Type")]),t("th",[e._v("Default Value")]),t("th",[e._v("Description")]),t("th",[e._v("Required")])])]),t("tbody",[t("tr",[t("td",[e._v("el")]),t("td",[e._v("Element")]),t("td"),t("td",[e._v("Container element, must be a DOM element")]),t("td",[e._v("Yes")])]),t("tr",[t("td",[e._v("data")]),t("td",[e._v("Object")]),t("td",[e._v("{}")]),t("td",[e._v("Mind map data, refer to: "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exampleData.js"}},[e._v("exampleData.js")])]),t("td")]),t("tr",[t("td",[e._v("layout")]),t("td",[e._v("String")]),t("td",[e._v("logicalStructure")]),t("td",[e._v("Layout type, options: logicalStructure (logical structure diagram), mindMap (mind map), catalogOrganization (catalog organization diagram), organizationStructure (organization structure diagram)、timeline(v0.5.4+, timeline)、timeline2(v0.5.4+, up down alternating timeline)、fishbone(v0.5.4+, fishbone diagram)")]),t("td")]),t("tr",[t("td",[e._v("fishboneDeg(v0.5.4+)")]),t("td",[e._v("Number")]),t("td",[e._v("45")]),t("td",[e._v("Set the diagonal angle of the fishbone structure diagram")]),t("td")]),t("tr",[t("td",[e._v("theme")]),t("td",[e._v("String")]),t("td",[e._v("default")]),t("td",[e._v("Theme, options: default, classic, minions, pinkGrape, mint, gold, vitalityOrange, greenLeaf, dark2, skyGreen, classic2, classic3, classic4(v0.2.0+), classicGreen, classicBlue, blueSky, brainImpairedPink, dark, earthYellow, freshGreen, freshRed, romanticPurple, simpleBlack(v0.5.4+), courseGreen(v0.5.4+), coffee(v0.5.4+), redSpirit(v0.5.4+), blackHumour(v0.5.4+), lateNightOffice(v0.5.4+), blackGold(v0.5.4+)、、avocado(v.5.10-fix.2+)、autumn(v.5.10-fix.2+)、orangeJuice(v.5.10-fix.2+)")]),t("td")]),t("tr",[t("td",[e._v("themeConfig")]),t("td",[e._v("Object")]),t("td",[e._v("{}")]),t("td",[e._v("Theme configuration, will be merged with the selected theme, available fields refer to: "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/themes/default.js"}},[e._v("default.js")])]),t("td")]),t("tr",[t("td",[e._v("scaleRatio")]),t("td",[e._v("Number")]),t("td",[e._v("0.1")]),t("td",[e._v("The incremental scaling ratio")]),t("td")]),t("tr",[t("td",[e._v("maxTag")]),t("td",[e._v("Number")]),t("td",[e._v("5")]),t("td",[e._v("The maximum number of tags displayed in the node, any additional tags will be discarded")]),t("td")]),t("tr",[t("td",[e._v("exportPadding")]),t("td",[e._v("Number")]),t("td",[e._v("20")]),t("td",[e._v("The padding for exporting images")]),t("td")]),t("tr",[t("td",[e._v("imgTextMargin")]),t("td",[e._v("Number")]),t("td",[e._v("5")]),t("td",[e._v("The spacing between the image and text in the node")]),t("td")]),t("tr",[t("td",[e._v("textContentMargin")]),t("td",[e._v("Number")]),t("td",[e._v("2")]),t("td",[e._v("The spacing between various text information in the node, such as the spacing between the icon and text")]),t("td")]),t("tr",[t("td",[e._v("selectTranslateStep")]),t("td",[e._v("Number")]),t("td",[e._v("3")]),t("td",[e._v("The canvas offset when mouse moves to the edge during multi-select node")]),t("td")]),t("tr",[t("td",[e._v("selectTranslateLimit")]),t("td",[e._v("Number")]),t("td",[e._v("20")]),t("td",[e._v("The distance from the edge when the canvas begins to offset during multi-select node")]),t("td")]),t("tr",[t("td",[e._v("customNoteContentShow(v0.1.6+)")]),t("td",[e._v("Object")]),t("td",[e._v("null")]),t("td",[e._v("Custom node note content display, object type, structure: {show: (noteContent, left, top) => {// your display node note logic }, hide: () => {// your hide node note logic }}")]),t("td")]),t("tr",[t("td",[e._v("readonly(v0.1.7+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Whether it is read-only mode")]),t("td")]),t("tr",[t("td",[e._v("enableFreeDrag(v0.2.4+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Enable node free drag")]),t("td")]),t("tr",[t("td",[e._v("watermarkConfig(v0.2.4+)")]),t("td",[e._v("Object")]),t("td"),t("td",[e._v("Watermark config, Please refer to the table 【Watermark config】 below for detailed configuration")]),t("td")]),t("tr",[t("td",[e._v("textAutoWrapWidth(v0.3.4+)")]),t("td",[e._v("Number")]),t("td",[e._v("500")]),t("td",[e._v("Each line of text in the node will wrap automatically when it reaches the width")]),t("td")]),t("tr",[t("td",[e._v("customHandleMousewheel(v0.4.3+)")]),t("td",[e._v("Function")]),t("td",[e._v("null")]),t("td",[e._v("User-defined mouse wheel event processing can pass a function, and the callback parameter is the event object")]),t("td")]),t("tr",[t("td",[e._v("mousewheelAction(v0.4.3+)")]),t("td",[e._v("String")]),t("td",[e._v("zoom")]),t("td",[e._v("The behavior of the mouse wheel, "),t("code",[e._v("zoom")]),e._v("(Zoom in and out)、"),t("code",[e._v("move")]),e._v("(Move up and down). If "),t("code",[e._v("customHandleMousewheel")]),e._v(" passes a custom function, this property will not take effect")]),t("td")]),t("tr",[t("td",[e._v("mousewheelMoveStep(v0.4.3+)")]),t("td",[e._v("Number")]),t("td",[e._v("100")]),t("td",[e._v("When the "),t("code",[e._v("mousewheelAction")]),e._v(" is set to "),t("code",[e._v("move")]),e._v(", you can use this attribute to control the step length of the view movement when the mouse scrolls. The unit is "),t("code",[e._v("px")])]),t("td")]),t("tr",[t("td",[e._v("defaultInsertSecondLevelNodeText(v0.4.7+)")]),t("td",[e._v("String")]),t("td",[e._v("二级节点")]),t("td",[e._v("Text of the default inserted secondary node")]),t("td")]),t("tr",[t("td",[e._v("defaultInsertBelowSecondLevelNodeText(v0.4.7+)")]),t("td",[e._v("String")]),t("td",[e._v("分支主题")]),t("td",[e._v("Text for nodes below the second level inserted by default")]),t("td")]),t("tr",[t("td",[e._v("expandBtnStyle(v0.5.0+)")]),t("td",[e._v("Object")]),t("td",[e._v("{ color: '#808080', fill: '#fff' }")]),t("td",[e._v("Expand the color of the stow button")]),t("td")]),t("tr",[t("td",[e._v("expandBtnIcon(v0.5.0+)")]),t("td",[e._v("Object")]),t("td",[e._v("{ open: '', close: '' }")]),t("td",[e._v("Customize the icon of the expand/collapse button, and you can transfer the svg string of the icon")]),t("td")]),t("tr",[t("td",[e._v("enableShortcutOnlyWhenMouseInSvg(v0.5.1+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Only respond to shortcut key events when the mouse is inside the canvas")]),t("td")]),t("tr",[t("td",[e._v("enableNodeTransitionMove(v0.5.1+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Whether to enable node animation transition")]),t("td")]),t("tr",[t("td",[e._v("nodeTransitionMoveDuration(v0.5.1+)")]),t("td",[e._v("Number")]),t("td",[e._v("300")]),t("td",[e._v("If node animation transition is enabled, the transition time can be set using this attribute, in milliseconds")]),t("td")]),t("tr",[t("td",[e._v("initRootNodePosition(v0.5.3+)")]),t("td",[e._v("Array")]),t("td",[e._v("null")]),t("td",[e._v("The position of the initial root node can be passed as an array, default is "),t("code",[e._v("['center', 'center']")]),e._v(", Represents the root node at the center of the canvas, In addition to "),t("code",[e._v("center")]),e._v(", keywords can also be set to "),t("code",[e._v("left")]),e._v(", "),t("code",[e._v("top")]),e._v(", "),t("code",[e._v("right")]),e._v(", and "),t("code",[e._v("bottom")]),e._v(", In addition to passing keywords, each item in the array can also pass a number representing a specific pixel, Can pass a percentage string, such as "),t("code",[e._v("['40%', '60%']")]),e._v(", Represents a horizontal position at "),t("code",[e._v("40%")]),e._v(" of the canvas width, and a vertical position at "),t("code",[e._v("60%")]),e._v(" of the canvas height")]),t("td")]),t("tr",[t("td",[e._v("exportPaddingX(v0.5.5+)")]),t("td",[e._v("Number")]),t("td",[e._v("10")]),t("td",[e._v("Horizontal padding of graphics when exporting PNG, SVG, and PDF")]),t("td")]),t("tr",[t("td",[e._v("exportPaddingY(v0.5.5+)")]),t("td",[e._v("Number")]),t("td",[e._v("10")]),t("td",[e._v("Vertical padding of graphics when exporting PNG, SVG, and PDF")]),t("td")]),t("tr",[t("td",[e._v("nodeTextEditZIndex(v0.5.5+)")]),t("td",[e._v("Number")]),t("td",[e._v("3000")]),t("td"),t("td",[e._v("z-index of node text edit box elements")])]),t("tr",[t("td",[e._v("nodeNoteTooltipZIndex(v0.5.5+)")]),t("td",[e._v("Number")]),t("td",[e._v("3000")]),t("td",[e._v("z-index of floating layer elements in node comments")]),t("td")]),t("tr",[t("td",[e._v("isEndNodeTextEditOnClickOuter(v0.5.5+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Whether to end the editing status of node text when clicking on an area outside the canvas")]),t("td")]),t("tr",[t("td",[e._v("maxHistoryCount(v0.5.6+)")]),t("td",[e._v("Number")]),t("td",[e._v("1000")]),t("td"),t("td",[e._v("Maximum number of history records")])]),t("tr",[t("td",[e._v("alwaysShowExpandBtn(v0.5.8+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Whether to always display the expand and collapse buttons of nodes, which are only displayed when the mouse is moved up and activated by default")]),t("td")]),t("tr",[t("td",[e._v("iconList(v0.5.8+)")]),t("td",[e._v("Array")]),t("td",[e._v("[]")]),t("td",[e._v('The icons that can be inserted into the extension node, and each item in the array is an object. Please refer to the "Icon Configuration" table below for the detailed structure of the object')]),t("td")]),t("tr",[t("td",[e._v("maxNodeCacheCount(v0.5.10+)")]),t("td",[e._v("Number")]),t("td",[e._v("1000")]),t("td",[e._v("The maximum number of cached nodes. To optimize performance, an internal node cache pool is maintained to reuse nodes. This attribute allows you to specify the maximum number of caches in the pool")]),t("td")]),t("tr",[t("td",[e._v("defaultAssociativeLineText(v0.5.11+)")]),t("td",[e._v("String")]),t("td",[e._v("关联")]),t("td",[e._v("Association Line Default Text")]),t("td")]),t("tr",[t("td",[e._v("fitPadding(v0.6.0+)")]),t("td",[e._v("Number")]),t("td",[e._v("50")]),t("td",[e._v("The padding of mind mapping when adapting to canvas size, Unit: px")]),t("td")]),t("tr",[t("td",[e._v("enableCtrlKeyNodeSelection(v0.6.0+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Whether to enable the function of holding down the Ctrl key to select multiple nodes")]),t("td")]),t("tr",[t("td",[e._v("useLeftKeySelectionRightKeyDrag(v0.6.0+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Setting to left click to select multiple nodes and right click to drag the canvas.")]),t("td")]),t("tr",[t("td",[e._v("beforeTextEdit(v0.6.0+)")]),t("td",[e._v("Function/null")]),t("td",[e._v("null")]),t("td",[e._v("The callback method before the node is about to enter editing. If the method returns a value other than true, the editing will be canceled. The function can return a value or a promise, and the callback parameter is the node instance")]),t("td")])])]),t("h3",[e._v("Watermark config")]),t("table",[t("thead",[t("tr",[t("th",[e._v("Field Name")]),t("th",[e._v("Type")]),t("th",[e._v("Default Value")]),t("th",[e._v("Description")])])]),t("tbody",[t("tr",[t("td",[e._v("text")]),t("td",[e._v("String")]),t("td",[e._v("''")]),t("td",[e._v("Watermark text. If it is an empty string, the watermark will not be displayed")])]),t("tr",[t("td",[e._v("lineSpacing")]),t("td",[e._v("Number")]),t("td",[e._v("100")]),t("td",[e._v("Spacing between watermark lines")])]),t("tr",[t("td",[e._v("textSpacing")]),t("td",[e._v("Number")]),t("td",[e._v("100")]),t("td",[e._v("Spacing between watermarks in the same row")])]),t("tr",[t("td",[e._v("angle")]),t("td",[e._v("Number")]),t("td",[e._v("30")]),t("td",[e._v("Tilt angle of watermark, range: [0, 90]")])]),t("tr",[t("td",[e._v("textStyle")]),t("td",[e._v("Object")]),t("td",[e._v("{color: '#999', opacity: 0.5, fontSize: 14}")]),t("td",[e._v("Watermark text style")])])])]),t("h3",[e._v("Icon Configuration")]),t("table",[t("thead",[t("tr",[t("th",[e._v("Field Name")]),t("th",[e._v("Type")]),t("th",[e._v("Default Value")]),t("th",[e._v("Description")])])]),t("tbody",[t("tr",[t("td",[e._v("name")]),t("td",[e._v("String")]),t("td"),t("td",[e._v("The name of the icon group")])]),t("tr",[t("td",[e._v("type")]),t("td",[e._v("String")]),t("td"),t("td",[e._v("Values for icon grouping")])]),t("tr",[t("td",[e._v("list")]),t("td",[e._v("Array")]),t("td"),t("td",[e._v("A list of icons under grouping, with each item in the array being an object, "),t("code",[e._v("{ name: '', icon: '' }")]),e._v(","),t("code",[e._v("name")]),e._v("represents the name of the icon, "),t("code",[e._v("icon")]),e._v("represents the icon, Can be an "),t("code",[e._v("svg")]),e._v(" icon, such as "),t("code",[e._v(" ")]),e._v(", also can be a image "),t("code",[e._v("url")]),e._v(", or "),t("code",[e._v("base64")]),e._v(" icon, such as "),t("code",[e._v("data:image/png;base64,...")])])])])]),t("h2",[e._v("Static methods")]),t("h3",[e._v("defineTheme(name, config)")]),t("blockquote",[t("p",[e._v("v0.2.23+")])]),t("p",[e._v("Define new theme.")]),t("p",[t("code",[e._v("name")]),e._v(":New theme name")]),t("p",[t("code",[e._v("config")]),e._v(":New theme config")]),t("p",[t("code",[e._v("Simple-mind-map ")]),e._v(" Built-in many themes. In addition, you can register new theme. It is recommended to register before instantiation, so that you can directly use the newly registered theme during instantiation. Use example:")]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-keyword"},[e._v("import")]),e._v(" MindMap "),t("span",{staticClass:"hljs-keyword"},[e._v("from")]),e._v(" "),t("span",{staticClass:"hljs-string"},[e._v("'simple-mind-map'")]),e._v("\n"),t("span",{staticClass:"hljs-comment"},[e._v("// 注册新主题")]),e._v("\nMindMap.defineTheme("),t("span",{staticClass:"hljs-string"},[e._v("'Theme name'")]),e._v(", {})\n\n"),t("span",{staticClass:"hljs-comment"},[e._v("// 1.实例化时使用新注册的主题")]),e._v("\n"),t("span",{staticClass:"hljs-keyword"},[e._v("const")]),e._v(" mindMap = "),t("span",{staticClass:"hljs-keyword"},[e._v("new")]),e._v(" MindMap({\n "),t("span",{staticClass:"hljs-attr"},[e._v("theme")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("'Theme name'")]),e._v("\n})\n\n"),t("span",{staticClass:"hljs-comment"},[e._v("// 2.动态切换新主题")]),e._v("\nmindMap.setTheme("),t("span",{staticClass:"hljs-string"},[e._v("'Theme name'")]),e._v(")\n")])]),t("p",[e._v("For all configurations of theme, please refer to "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/themes/default.js"}},[e._v("Default Topic")]),e._v(". The "),t("code",[e._v("defineTheme")]),e._v("method will merge the configuration you passed in with the default configuration. Most of the themes do not need custom many parts. For a typical customized theme configuration, please refer to "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/themes/blueSky.js"}},[e._v("blueSky")]),e._v(".")]),t("h3",[e._v("usePlugin(plugin, opt = {})")]),t("blockquote",[t("p",[e._v("v0.3.0+")])]),t("ul",[t("li",[t("code",[e._v("opt")]),e._v(":v0.4.0+,Plugin options. If a plugin supports custom options, it can be passed in through this parameter.")])]),t("p",[e._v("If you need to use some non-core functions, such as mini map, watermark, etc, you can register plugin through this method. Can be called in chain.")]),t("p",[e._v("Note: The plugin needs to be registered before instantiating "),t("code",[e._v("MindMap")]),e._v(".")]),t("h3",[e._v("hasPlugin(plugin)")]),t("blockquote",[t("p",[e._v("v0.4.0+")])]),t("p",[e._v("Get whether a plugin is registered, The index of the plugin in the registered plugin list is returned, If it is "),t("code",[e._v("-1")]),e._v(", it means that the plugin is not registered.")]),t("h2",[e._v("Static props")]),t("h3",[e._v("pluginList")]),t("blockquote",[t("p",[e._v("v0.3.0+")])]),t("p",[e._v("List of all currently registered plugins.")]),t("h2",[e._v("Instance methods")]),t("h3",[e._v("destroy()")]),t("blockquote",[t("p",[e._v("v0.6.0+")])]),t("p",[e._v("Destroy mind maps. It will remove registered plugins, remove listening events, and delete all nodes on the canvas.")]),t("h3",[e._v("getSvgData({ paddingX = 0, paddingY = 0 })")]),t("blockquote",[t("p",[e._v("v0.3.0+")])]),t("p",[t("code",[e._v("paddingX")]),e._v(": Padding x")]),t("p",[t("code",[e._v("paddingY")]),e._v(": Padding y")]),t("p",[e._v("Get the "),t("code",[e._v("svg")]),e._v(" data and return an object. The detailed structure is as follows:")]),t("pre",{staticClass:"hljs"},[t("code",[e._v("{\n svg, "),t("span",{staticClass:"hljs-comment"},[e._v("// Element, the overall svg element of the mind map graphics, including: svg (canvas container), g (actual mind map group)")]),e._v("\n svgHTML, "),t("span",{staticClass:"hljs-comment"},[e._v("// String, svg string, i.e. html string, can be directly rendered to the small map container you prepared")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("rect")]),e._v(": "),t("span",{staticClass:"hljs-comment"},[e._v("// Object, position, size, etc. of mind map graphics before zoom")]),e._v("\n origWidth, "),t("span",{staticClass:"hljs-comment"},[e._v("// Number, canvas width")]),e._v("\n origHeight, "),t("span",{staticClass:"hljs-comment"},[e._v("// Number, canvas height")]),e._v("\n scaleX, "),t("span",{staticClass:"hljs-comment"},[e._v("// Number, horizontal zoom value of mind map graphics")]),e._v("\n scaleY, "),t("span",{staticClass:"hljs-comment"},[e._v("// Number, vertical zoom value of mind map graphics")]),e._v("\n}\n")])]),t("h3",[e._v("render(callback)")]),t("ul",[t("li",[t("code",[e._v("callback")]),e._v(": "),t("code",[e._v("v0.3.2+")]),e._v(", "),t("code",[e._v("Function")]),e._v(", Called when the re-rendering is complete")])]),t("p",[e._v("Triggers a full rendering, which will reuse nodes for better performance. If only the node positions have changed, this method can be called to "),t("code",[e._v("reRender")]),e._v(".")]),t("h3",[e._v("reRender(callback)")]),t("ul",[t("li",[t("code",[e._v("callback")]),e._v(": "),t("code",[e._v("v0.3.2+")]),e._v(", "),t("code",[e._v("Function")]),e._v(", Called when the re-rendering is complete")])]),t("p",[e._v("Performs a full re-render, clearing the canvas and creating new nodes. This has poor performance and should be used sparingly.")]),t("h3",[e._v("resize()")]),t("p",[e._v("After the container size has changed, this method should be called to adjust.")]),t("h3",[e._v("setMode(mode)")]),t("blockquote",[t("p",[e._v("v0.1.7+")])]),t("p",[e._v("Switches between readonly and edit mode.")]),t("p",[t("code",[e._v("mode")]),e._v(":readonly、edit")]),t("h3",[e._v("on(event, fn)")]),t("p",[e._v("Listen to an event. Event list:")]),t("table",[t("thead",[t("tr",[t("th",[e._v("Event Name")]),t("th",[e._v("Description")]),t("th",[e._v("Callback Parameters")])])]),t("tbody",[t("tr",[t("td",[e._v("data_change")]),t("td",[e._v("Tree rendering data change, listen to this method to get the latest data")]),t("td",[e._v("data (current tree rendering data)")])]),t("tr",[t("td",[e._v("view_data_change(v0.1.1+)")]),t("td",[e._v("View change data, such as when dragging or zooming")]),t("td",[e._v("data (current view state data)")])]),t("tr",[t("td",[e._v("back_forward")]),t("td",[e._v("Forward or backward")]),t("td",[e._v("activeHistoryIndex (current index in the history data array), length (current length of the history data array)")])]),t("tr",[t("td",[e._v("draw_click")]),t("td",[e._v("Canvas click event")]),t("td",[e._v("e (event object)")])]),t("tr",[t("td",[e._v("svg_mousedown")]),t("td",[e._v("svg canvas mouse down event")]),t("td",[e._v("e (event object)")])]),t("tr",[t("td",[e._v("mousedown")]),t("td",[e._v("el element mouse down event")]),t("td",[e._v("e (event object), this (Event event class instance)")])]),t("tr",[t("td",[e._v("mousemove")]),t("td",[e._v("el element mouse move event")]),t("td",[e._v("e (event object), this (Event event class instance)")])]),t("tr",[t("td",[e._v("drag")]),t("td",[e._v("If it is a drag event while holding down the left button")]),t("td",[e._v("e (event object), this (Event event class instance)")])]),t("tr",[t("td",[e._v("mouseup")]),t("td",[e._v("el element mouse up event")]),t("td",[e._v("e (event object), this (Event event class instance)")])]),t("tr",[t("td",[e._v("mousewheel")]),t("td",[e._v("Mouse scroll event")]),t("td",[e._v("e (event object), dir (up or down scroll), this (Event event class instance)")])]),t("tr",[t("td",[e._v("contextmenu")]),t("td",[e._v("svg canvas right mouse button menu event")]),t("td",[e._v("e (event object)")])]),t("tr",[t("td",[e._v("node_click")]),t("td",[e._v("Node click event")]),t("td",[e._v("this (node instance), e (event object)")])]),t("tr",[t("td",[e._v("node_mousedown")]),t("td",[e._v("Node mouse down event")]),t("td",[e._v("this (node instance), e (event object)")])]),t("tr",[t("td",[e._v("node_mouseup")]),t("td",[e._v("node mouseup event")]),t("td",[e._v("this (node instance), e (event object)")])]),t("tr",[t("td",[e._v("node_mouseup")]),t("td",[e._v("Node mouseup event")]),t("td",[e._v("this (node instance), e (event object)")])]),t("tr",[t("td",[e._v("node_dblclick")]),t("td",[e._v("Node double-click event")]),t("td",[e._v("this (node instance), e (event object)")])]),t("tr",[t("td",[e._v("node_contextmenu")]),t("td",[e._v("Node right-click menu event")]),t("td",[e._v("e (event object), this (node instance)")])]),t("tr",[t("td",[e._v("node_mouseenter(v0.4.1+)")]),t("td",[e._v("Node mouseenter event")]),t("td",[e._v("this (node instance), e (event object)")])]),t("tr",[t("td",[e._v("node_mouseleave(v0.4.1+)")]),t("td",[e._v("Node mouseleave event")]),t("td",[e._v("this (node instance), e (event object)")])]),t("tr",[t("td",[e._v("before_node_active")]),t("td",[e._v("Event before node activation")]),t("td",[e._v("this (node instance), activeNodeList (current list of active nodes)")])]),t("tr",[t("td",[e._v("node_active")]),t("td",[e._v("Node activation event")]),t("td",[e._v("this (node instance), activeNodeList (current list of active nodes)")])]),t("tr",[t("td",[e._v("expand_btn_click")]),t("td",[e._v("Node expand or collapse event")]),t("td",[e._v("this (node instance)")])]),t("tr",[t("td",[e._v("before_show_text_edit")]),t("td",[e._v("Event before node text edit box opens")]),t("td")]),t("tr",[t("td",[e._v("hide_text_edit")]),t("td",[e._v("Node text edit box close event")]),t("td",[e._v("textEditNode (text edit box DOM node), activeNodeList (current list of active nodes)")])]),t("tr",[t("td",[e._v("scale")]),t("td",[e._v("Zoom event")]),t("td",[e._v("scale (zoom ratio)")])]),t("tr",[t("td",[e._v("node_img_dblclick(v0.2.15+)")]),t("td",[e._v("Node image double-click event")]),t("td",[e._v("this (node instance), e (event object)")])]),t("tr",[t("td",[e._v("node_tree_render_end(v0.2.16+)")]),t("td",[e._v("Node tree render end event")]),t("td")]),t("tr",[t("td",[e._v("rich_text_selection_change(v0.4.0+)")]),t("td",[e._v("Available when the "),t("code",[e._v("RichText")]),e._v(" plugin is registered. Triggered when the text selection area changes when the node is edited")]),t("td",[e._v("hasRange(Whether there is a selection)、rectInfo(Size and location information of the selected area)、formatInfo(Text formatting information of the selected area)")])]),t("tr",[t("td",[e._v("transforming-dom-to-images(v0.4.0+)")]),t("td",[e._v("Available when the "),t("code",[e._v("RichText")]),e._v(" plugin is registered. When there is a "),t("code",[e._v("DOM")]),e._v(" node in "),t("code",[e._v("svg")]),e._v(", the "),t("code",[e._v("DOM")]),e._v(" node will be converted to an image when exporting to an image. This event will be triggered during the conversion process. You can use this event to prompt the user about the node to which you are currently converting")]),t("td",[e._v("index(Index of the node currently converted to)、len(Total number of nodes to be converted)")])]),t("tr",[t("td",[e._v("node_dragging(v0.4.5+)")]),t("td",[e._v("Triggered when a node is dragged")]),t("td",[e._v("node(The currently dragged node)")])]),t("tr",[t("td",[e._v("node_dragend(v0.4.5+)")]),t("td",[e._v("Triggered when the node is dragged and ends")]),t("td")]),t("tr",[t("td",[e._v("associative_line_click(v0.4.5+)")]),t("td",[e._v("Triggered when an associated line is clicked")]),t("td",[e._v("path(Connector node)、clickPath(Invisible click line node)、node(Start node)、toNode(Target node)")])]),t("tr",[t("td",[e._v("svg_mouseenter(v0.5.1+)")]),t("td",[e._v("Triggered when the mouse moves into the SVG canvas")]),t("td",[e._v("e(event object)")])]),t("tr",[t("td",[e._v("svg_mouseleave(v0.5.1+)")]),t("td",[e._v("Triggered when the mouse moves out of the SVG canvas")]),t("td",[e._v("e(event object)")])])])]),t("h3",[e._v("emit(event, ...args)")]),t("p",[e._v("Trigger an event, which can be one of the events listed above or a custom event.")]),t("h3",[e._v("off(event, fn)")]),t("p",[e._v("Unbind an event.")]),t("h3",[e._v("setTheme(theme)")]),t("p",[e._v("Switches the theme. Available themes can be found in the options table above.")]),t("h3",[e._v("getTheme()")]),t("p",[e._v("Gets the current theme.")]),t("h3",[e._v("setThemeConfig(config)")]),t("p",[e._v("Sets the theme configuration. "),t("code",[e._v("config")]),e._v(" is the same as the "),t("code",[e._v("themeConfig")]),e._v(" option in the options table above.")]),t("h3",[e._v("getCustomThemeConfig()")]),t("p",[e._v("Gets the custom theme configuration.")]),t("h3",[e._v("getThemeConfig(prop)")]),t("p",[e._v("Gets the value of a specific theme configuration property.")]),t("h3",[e._v("getConfig("),t("em",[e._v("prop")]),e._v(")")]),t("blockquote",[t("p",[e._v("0.2.24+")])]),t("p",[t("code",[e._v("prop")]),e._v(":Get the value of the specified configuration, and return the entire configuration if not passed")]),t("p",[e._v("Get config, That is, "),t("code",[e._v("opt")]),e._v(" of "),t("code",[e._v("new MindMap (opt)")])]),t("h3",[e._v("updateConfig("),t("em",[e._v("opt")]),e._v(" = {})")]),t("blockquote",[t("p",[e._v("0.2.24+")])]),t("p",[t("code",[e._v("opt")]),e._v(":Configuration to update")]),t("p",[e._v("Update config,That is update "),t("code",[e._v("opt")]),e._v(" of "),t("code",[e._v("new MindMap(opt)")]),e._v(",You can only update some data, such as:")]),t("pre",{staticClass:"hljs"},[t("code",[e._v("mindMap.updateConfig({\n "),t("span",{staticClass:"hljs-attr"},[e._v("enableFreeDrag")]),e._v(": "),t("span",{staticClass:"hljs-literal"},[e._v("true")]),t("span",{staticClass:"hljs-comment"},[e._v("// 开启节点自由拖拽")]),e._v("\n})\n")])]),t("p",[e._v("This method only updates the configuration and has no other side effects, such as triggering canvas re-rendering")]),t("h3",[e._v("getLayout()")]),t("p",[e._v("Gets the current layout structure.")]),t("h3",[e._v("setLayout(layout)")]),t("p",[e._v("Sets the layout structure. Available values can be found in the "),t("code",[e._v("layout")]),e._v(" field in the options table above.")]),t("h3",[e._v("execCommand(name, ...args)")]),t("p",[e._v("Executes a command, which will add a record to the history stack for undo or redo. All commands are as follows:")]),t("table",[t("thead",[t("tr",[t("th",[e._v("Command name")]),t("th",[e._v("Description")]),t("th",[e._v("Parameters")])])]),t("tbody",[t("tr",[t("td",[e._v("SELECT_ALL")]),t("td",[e._v("Select all")]),t("td")]),t("tr",[t("td",[e._v("BACK")]),t("td",[e._v("Go back a specified number of steps")]),t("td",[e._v("step (the number of steps to go back, default is 1)")])]),t("tr",[t("td",[e._v("FORWARD")]),t("td",[e._v("Go forward a specified number of steps")]),t("td",[e._v("step (the number of steps to go forward, default is 1)")])]),t("tr",[t("td",[e._v("INSERT_NODE")]),t("td",[e._v("Insert a sibling node, the active node or appoint node will be the operation node. If there are multiple active nodes, only the first one will be effective")]),t("td",[e._v("openEdit(v0.4.6+, Whether to activate the newly inserted node and enter editing mode, default is "),t("code",[e._v("true")]),e._v(") 、 appointNodes(v0.4.7+, Optional, appoint node, Specifying multiple nodes can pass an array)、 appointData(Optional, Specify the data for the newly created node, Such as {text: 'xxx', ...}, Detailed structure can be referred to "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exampleData.js"}},[e._v("exampleData.js")]),e._v(" )")])]),t("tr",[t("td",[e._v("INSERT_CHILD_NODE")]),t("td",[e._v("Insert a child node, the active node or appoint node will be the operation node")]),t("td",[e._v("openEdit(v0.4.6+, Whether to activate the newly inserted node and enter editing mode, default is "),t("code",[e._v("true")]),e._v(")、 appointNodes(v0.4.7+, Optional, appoint node, Specifying multiple nodes can pass an array)、 appointData(Optional, Specify the data for the newly created node, Such as {text: 'xxx', ...}, Detailed structure can be referred to "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exampleData.js"}},[e._v("exampleData.js")]),e._v(" )")])]),t("tr",[t("td",[e._v("UP_NODE")]),t("td",[e._v("Move node up, the active node will be the operation node. If there are multiple active nodes, only the first one will be effective. Using this command on the root node or the first node in the list will be invalid")]),t("td")]),t("tr",[t("td",[e._v("DOWN_NODE")]),t("td",[e._v("Move node down, the active node will be the operation node. If there are multiple active nodes, only the first one will be effective. Using this command on the root node or the last node in the list will be invalid")]),t("td")]),t("tr",[t("td",[e._v("REMOVE_NODE")]),t("td",[e._v("Remove node, the active node or appoint node will be the operation node")]),t("td",[e._v("appointNodes(v0.4.7+, Optional, appoint node, Specifying multiple nodes can pass an array)")])]),t("tr",[t("td",[e._v("PASTE_NODE")]),t("td",[e._v("Paste node to a node, the active node will be the operation node")]),t("td",[e._v("data (the node data to paste, usually obtained through the renderer.copyNode() and renderer.cutNode() methods)")])]),t("tr",[t("td",[e._v("SET_NODE_STYLE")]),t("td",[e._v("Modify node style")]),t("td",[e._v("node (the node to set the style of), prop (style property), value (style property value), isActive (boolean, whether the style being set is for the active state)")])]),t("tr",[t("td",[e._v("SET_NODE_ACTIVE")]),t("td",[e._v("Set whether the node is active")]),t("td",[e._v("node (the node to set), active (boolean, whether to activate)")])]),t("tr",[t("td",[e._v("CLEAR_ACTIVE_NODE")]),t("td",[e._v("Clear the active state of the currently active node(s), the active node will be the operation node")]),t("td")]),t("tr",[t("td",[e._v("SET_NODE_EXPAND")]),t("td",[e._v("Set whether the node is expanded")]),t("td",[e._v("node (the node to set), expand (boolean, whether to expand)")])]),t("tr",[t("td",[e._v("EXPAND_ALL")]),t("td",[e._v("Expand all nodes")]),t("td")]),t("tr",[t("td",[e._v("UNEXPAND_ALL")]),t("td",[e._v("Collapse all nodes")]),t("td")]),t("tr",[t("td",[e._v("UNEXPAND_TO_LEVEL (v0.2.8+)")]),t("td",[e._v("Expand to a specified level")]),t("td",[e._v("level (the level to expand to, 1, 2, 3...)")])]),t("tr",[t("td",[e._v("SET_NODE_DATA")]),t("td",[e._v("Update node data, that is, update the data in the data object of the node data object")]),t("td",[e._v("node (the node to set), data (object, the data to update, e.g. "),t("code",[e._v("{expand: true}")]),e._v(")")])]),t("tr",[t("td",[e._v("SET_NODE_TEXT")]),t("td",[e._v("Set node text")]),t("td",[e._v("node (the node to set), text (the new text for the node), richText(v0.4.0+, If you want to set a rich text character, you need to set it to "),t("code",[e._v("true")]),e._v(")")])]),t("tr",[t("td",[e._v("SET_NODE_IMAGE")]),t("td",[e._v("Set Node Image")]),t("td",[e._v("node (node to set), imgData (object, image information, structured as: "),t("code",[e._v("{url, title, width, height}")]),e._v(", the width and height of the image must be passed)")])]),t("tr",[t("td",[e._v("SET_NODE_ICON")]),t("td",[e._v("Set Node Icon")]),t("td",[e._v("node (node to set), icons (array, predefined image names array, available icons can be obtained in the nodeIconList list in the "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/svg/icons.js"}},[e._v("icons.js")]),e._v(" file, icon name is type_name, such as ['priority_1'])")])]),t("tr",[t("td",[e._v("SET_NODE_HYPERLINK")]),t("td",[e._v("Set Node Hyperlink")]),t("td",[e._v("node (node to set), link (hyperlink address), title (hyperlink name, optional)")])]),t("tr",[t("td",[e._v("SET_NODE_NOTE")]),t("td",[e._v("Set Node Note")]),t("td",[e._v("node (node to set), note (note text)")])]),t("tr",[t("td",[e._v("SET_NODE_TAG")]),t("td",[e._v("Set Node Tag")]),t("td",[e._v("node (node to set), tag (string array, built-in color information can be obtained in "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/constants/constant.js"}},[e._v("constant.js")]),e._v(")")])]),t("tr",[t("td",[e._v("INSERT_AFTER (v0.1.5+)")]),t("td",[e._v("Move Node to After Another Node")]),t("td",[e._v("node (node to move), exist (target node)")])]),t("tr",[t("td",[e._v("INSERT_BEFORE (v0.1.5+)")]),t("td",[e._v("Move Node to Before Another Node")]),t("td",[e._v("node (node to move), exist (target node)")])]),t("tr",[t("td",[e._v("MOVE_NODE_TO (v0.1.5+)")]),t("td",[e._v("Move a node as a child of another node")]),t("td",[e._v("node (the node to move), toNode (the target node)")])]),t("tr",[t("td",[e._v("ADD_GENERALIZATION (v0.2.0+)")]),t("td",[e._v("Add a node summary")]),t("td",[e._v("data (the data for the summary, in object format, all numerical fields of the node are supported, default is "),t("code",[e._v("{text: 'summary'}")]),e._v(")")])]),t("tr",[t("td",[e._v("REMOVE_GENERALIZATION (v0.2.0+)")]),t("td",[e._v("Remove a node summary")]),t("td")]),t("tr",[t("td",[e._v("SET_NODE_CUSTOM_POSITION (v0.2.0+)")]),t("td",[e._v("Set a custom position for a node")]),t("td",[e._v("node (the node to set), left (custom x coordinate, default is undefined), top (custom y coordinate, default is undefined)")])]),t("tr",[t("td",[e._v("RESET_LAYOUT (v0.2.0+)")]),t("td",[e._v("Arrange layout with one click")]),t("td")]),t("tr",[t("td",[e._v("SET_NODE_SHAPE (v0.2.4+)")]),t("td",[e._v("Set the shape of a node")]),t("td",[e._v("node (the node to set), shape (the shape, all shapes: "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/core/render/node/Shape.js"}},[e._v("Shape.js")]),e._v(")")])])])]),t("h3",[e._v("setData(data)")]),t("p",[e._v("Dynamic setting of mind map data, pure node data")]),t("p",[t("code",[e._v("data")]),e._v(": mind map structure data")]),t("h3",[e._v("setFullData("),t("em",[e._v("data")]),e._v(")")]),t("blockquote",[t("p",[e._v("v0.2.7+")])]),t("p",[e._v("Dynamic setting of mind map data, including node data, layout, theme, view")]),t("p",[t("code",[e._v("data")]),e._v(": complete data, structure can refer to "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exportFullData.json"}},[e._v("exportFullData")])]),t("h3",[e._v("getData(withConfig)")]),t("blockquote",[t("p",[e._v("v0.2.9+")])]),t("p",[e._v("Gets mind map data")]),t("p",[t("code",[e._v("withConfig")]),e._v(": "),t("code",[e._v("Boolean")]),e._v(", default is "),t("code",[e._v("false")]),e._v(", that is, the obtained data only includes the node tree, if "),t("code",[e._v("true")]),e._v(" is passed, it will also include theme, layout, view, etc. data")]),t("h3",[e._v("export(type, isDownload, fileName)")]),t("blockquote",[t("p",[e._v("You need to register the "),t("code",[e._v("Export")]),e._v(" plugin first")])]),t("p",[e._v("Export")]),t("p",[t("code",[e._v("type")]),e._v(": the type to be exported, optional values: png, svg, json, pdf (v0.2.1+), smm (essentially also json)")]),t("p",[t("code",[e._v("isDownload")]),e._v(": whether to directly trigger download, Boolean value, default is "),t("code",[e._v("false")])]),t("p",[t("code",[e._v("fileName")]),e._v(": (v0.1.6+) the name of the exported file, default is "),t("code",[e._v("思维导图")]),e._v(" (mind map).")]),t("p",[e._v("If it is exported as "),t("code",[e._v("png")]),e._v(", the fourth parameter can be passed:")]),t("p",[t("code",[e._v("transparent")]),e._v(": v0.5.7+, "),t("code",[e._v("Boolean")]),e._v(", default is "),t("code",[e._v("false")]),e._v(", Specify whether the background of the exported image is transparent")]),t("p",[e._v("If it is exported as "),t("code",[e._v("svg")]),e._v(", the fourth parameter can be passed:")]),t("p",[t("code",[e._v("plusCssText")]),e._v(": Additional "),t("code",[e._v("CSS")]),e._v(" style. If there is a "),t("code",[e._v("dom")]),e._v(" node in "),t("code",[e._v("svg")]),e._v(", you can pass in some styles specific to the node through this parameter")]),t("p",[e._v("If it is exported as "),t("code",[e._v("json")]),e._v(" or "),t("code",[e._v("smm")]),e._v(", the fourth parameter can be passed:")]),t("p",[t("code",[e._v("withConfig")]),e._v(": "),t("code",[e._v("Boolean")]),e._v(", default is "),t("code",[e._v("true")]),e._v(", Specify whether the exported data includes configuration data, otherwise only pure node tree data will be exported")]),t("h3",[e._v("toPos(x, y)")]),t("blockquote",[t("p",[e._v("v0.1.5+")])]),t("p",[e._v("Convert the coordinates of the browser's visible window to coordinates relative to the canvas.")]),t("h3",[e._v("addPlugin(plugin, opt)")]),t("blockquote",[t("p",[e._v("v0.4.0+")])]),t("p",[e._v("Register plugin, Use "),t("code",[e._v("MindMap.usePlugin")]),e._v(" to register plugin only before instantiation, The registered plugin will not take effect after instantiation, So if you want to register the plugin after instantiation, you can use the "),t("code",[e._v("addPlugin")]),e._v(" method of the instance.")]),t("h3",[e._v("removePlugin(plugin)")]),t("blockquote",[t("p",[e._v("v0.4.0+")])]),t("p",[e._v("Remove registered plugin, Plugins registered through the "),t("code",[e._v("usePlugin")]),e._v(" or "),t("code",[e._v("addPlugin")]),e._v(" methods can be removed.")])])}],d={},i=d,v=n("2877"),s=Object(v["a"])(i,o,a,!1,null,null,null);t["default"]=s.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d0da701.364ae0e3.js b/tools/mind-map/dist/js/chunk-2d0da701.364ae0e3.js
deleted file mode 100644
index 20bbd13c..00000000
--- a/tools/mind-map/dist/js/chunk-2d0da701.364ae0e3.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0da701"],{"6c31":function(e,v,_){"use strict";_.r(v);var o=function(){var e=this;e._self._c;return e._m(0)},d=[function(){var e=this,v=e._self._c;return v("div",[v("h1",[e._v("Render实例")]),v("p",[v("code",[e._v("render")]),e._v("实例负载整个渲染过程,可通过"),v("code",[e._v("mindMap.renderer")]),e._v("获取到")]),v("h2",[e._v("属性")]),v("h3",[e._v("activeNodeList")]),v("p",[e._v("获取当前激活的节点列表")]),v("h3",[e._v("root")]),v("p",[e._v("获取节点树的根节点")]),v("h2",[e._v("方法")]),v("h3",[e._v("clearActive()")]),v("p",[e._v("清除当前激活的节点")]),v("h3",[e._v("clearAllActive()")]),v("p",[e._v("清除当前所有激活节点,并会触发"),v("code",[e._v("node_active")]),e._v("事件")]),v("h3",[e._v("startTextEdit()")]),v("p",[e._v("(v0.1.6+)若有文字编辑需求可调用该方法,会禁用回车键和删除键相关快捷键防止冲突")]),v("h3",[e._v("endTextEdit()")]),v("p",[e._v("(v0.1.6+)结束文字编辑,会恢复回车键和删除键相关快捷键")]),v("h3",[e._v("addActiveNode(node)")]),v("p",[e._v("添加节点到激活列表里")]),v("h3",[e._v("removeActiveNode(node)")]),v("p",[e._v("在激活列表里移除某个节点")]),v("h3",[e._v("findActiveNodeIndex(node)")]),v("p",[e._v("检索某个节点在激活列表里的索引")]),v("h3",[e._v("getNodeIndex(node)")]),v("p",[e._v("获取节点在同级里的位置索引")]),v("h3",[e._v("removeOneNode(node)")]),v("p",[e._v("删除某个指定节点")]),v("h3",[e._v("copyNode()")]),v("p",[e._v("复制节点,操作节点为当前激活节点,有多个激活节点只会操作第一个节点")]),v("h3",[e._v("setNodeDataRender(node, data)")]),v("p",[e._v("设置节点数据,即"),v("code",[e._v("data")]),e._v("字段的数据,并会根据节点大小是否变化来判断是否需要重新渲染该节点,"),v("code",[e._v("data")]),e._v("为对象,如:"),v("code",[e._v("{text: '我是新文本'}")])]),v("h3",[e._v("moveNodeTo(node, toNode)")]),v("blockquote",[v("p",[e._v("v0.1.5+")])]),v("p",[e._v("移动一个节点作为另一个节点的子节点")]),v("h3",[e._v("insertBefore(node, exist)")]),v("blockquote",[v("p",[e._v("v0.1.5+")])]),v("p",[e._v("将节点移动到另一个节点的前面")]),v("h3",[e._v("insertAfter(node, exist)")]),v("blockquote",[v("p",[e._v("v0.1.5+")])]),v("p",[e._v("将节点移动到另一个节点的后面")]),v("h3",[e._v("moveNodeToCenter(node)")]),v("blockquote",[v("p",[e._v("v0.2.17+")])]),v("p",[e._v("移动节点到画布中心。")]),v("p",[e._v("目前如果是存在缩放的情况下回到中心会重置缩放。")])])}],t={},n=t,c=_("2877"),p=Object(c["a"])(n,o,d,!1,null,null,null);v["default"]=p.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d0dad5f.bc456c65.js b/tools/mind-map/dist/js/chunk-2d0dad5f.bc456c65.js
deleted file mode 100644
index 5858f0bb..00000000
--- a/tools/mind-map/dist/js/chunk-2d0dad5f.bc456c65.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0dad5f"],{"6cfb":function(t,v,_){"use strict";_.r(v);var d=function(){var t=this;t._self._c;return t._m(0)},e=[function(){var t=this,v=t._self._c;return v("div",[v("h1",[t._v("构造函数")]),v("h2",[t._v("基本使用")]),v("pre",{staticClass:"hljs"},[v("code",[v("span",{staticClass:"hljs-tag"},[t._v("<"),v("span",{staticClass:"hljs-name"},[t._v("div")]),t._v(" "),v("span",{staticClass:"hljs-attr"},[t._v("id")]),t._v("="),v("span",{staticClass:"hljs-string"},[t._v('"mindMapContainer"')]),t._v(">")]),v("span",{staticClass:"hljs-tag"},[t._v(""),v("span",{staticClass:"hljs-name"},[t._v("div")]),t._v(">")]),t._v("\n")])]),v("pre",{staticClass:"hljs"},[v("code",[v("span",{staticClass:"hljs-keyword"},[t._v("import")]),t._v(" MindMap "),v("span",{staticClass:"hljs-keyword"},[t._v("from")]),t._v(" "),v("span",{staticClass:"hljs-string"},[t._v('"simple-mind-map"')]),t._v(";\n\n"),v("span",{staticClass:"hljs-keyword"},[t._v("const")]),t._v(" mindMap = "),v("span",{staticClass:"hljs-keyword"},[t._v("new")]),t._v(" MindMap({\n "),v("span",{staticClass:"hljs-attr"},[t._v("el")]),t._v(": "),v("span",{staticClass:"hljs-built_in"},[t._v("document")]),t._v(".getElementById("),v("span",{staticClass:"hljs-string"},[t._v("'mindMapContainer'")]),t._v("),\n "),v("span",{staticClass:"hljs-attr"},[t._v("data")]),t._v(": {\n "),v("span",{staticClass:"hljs-string"},[t._v('"data"')]),t._v(": {\n "),v("span",{staticClass:"hljs-string"},[t._v('"text"')]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v('"根节点"')]),t._v("\n },\n "),v("span",{staticClass:"hljs-string"},[t._v('"children"')]),t._v(": []\n }\n});\n")])]),v("h2",[t._v("实例化选项")]),v("table",[v("thead",[v("tr",[v("th",[t._v("字段名称")]),v("th",[t._v("类型")]),v("th",[t._v("默认值")]),v("th",[t._v("描述")]),v("th",[t._v("是否必填")])])]),v("tbody",[v("tr",[v("td",[t._v("el")]),v("td",[t._v("Element")]),v("td"),v("td",[t._v("容器元素,必须为DOM元素")]),v("td",[t._v("是")])]),v("tr",[v("td",[t._v("data")]),v("td",[t._v("Object")]),v("td",[t._v("{}")]),v("td",[t._v("思维导图数据,可参考:"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exampleData.js"}},[t._v("exampleData.js")])]),v("td")]),v("tr",[v("td",[t._v("layout")]),v("td",[t._v("String")]),v("td",[t._v("logicalStructure")]),v("td",[t._v("布局类型,可选列表:logicalStructure(逻辑结构图)、mindMap(思维导图)、catalogOrganization(目录组织图)、organizationStructure(组织结构图)、timeline(v0.5.4+,时间轴)、timeline2(v0.5.4+,上下交替型时间轴)、fishbone(v0.5.4+,鱼骨图)")]),v("td")]),v("tr",[v("td",[t._v("fishboneDeg(v0.5.4+)")]),v("td",[t._v("Number")]),v("td",[t._v("45")]),v("td",[t._v("设置鱼骨结构图的斜线角度")]),v("td")]),v("tr",[v("td",[t._v("theme")]),v("td",[t._v("String")]),v("td",[t._v("default")]),v("td",[t._v("主题,可选列表:default(默认)、classic(脑图经典)、minions(小黄人)、pinkGrape(粉红葡萄)、mint(薄荷)、gold(金色vip)、vitalityOrange(活力橙)、greenLeaf(绿叶)、dark2(暗色2)、skyGreen(天清绿)、classic2(脑图经典2)、classic3(脑图经典3)、classic4(脑图经典4,v0.2.0+)、classicGreen(经典绿)、classicBlue(经典蓝)、blueSky(天空蓝)、brainImpairedPink(脑残粉)、dark(暗色)、earthYellow(泥土黄)、freshGreen(清新绿)、freshRed(清新红)、romanticPurple(浪漫紫)、simpleBlack(v0.5.4+简约黑)、courseGreen(v0.5.4+课程绿)、coffee(v0.5.4+咖啡)、redSpirit(v0.5.4+红色精神)、blackHumour(v0.5.4+黑色幽默)、lateNightOffice(v0.5.4+深夜办公室)、blackGold(v0.5.4+黑金)、avocado(v.5.10-fix.2+牛油果)、autumn(v.5.10-fix.2+秋天)、orangeJuice(v.5.10-fix.2+橙汁)")]),v("td")]),v("tr",[v("td",[t._v("themeConfig")]),v("td",[t._v("Object")]),v("td",[t._v("{}")]),v("td",[t._v("主题配置,会和所选择的主题进行合并,可用字段可参考:"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/themes/default.js"}},[t._v("default.js")])]),v("td")]),v("tr",[v("td",[t._v("scaleRatio")]),v("td",[t._v("Number")]),v("td",[t._v("0.1")]),v("td",[t._v("放大缩小的增量比例")]),v("td")]),v("tr",[v("td",[t._v("maxTag")]),v("td",[t._v("Number")]),v("td",[t._v("5")]),v("td",[t._v("节点里最多显示的标签数量,多余的会被丢弃")]),v("td")]),v("tr",[v("td",[t._v("exportPadding")]),v("td",[t._v("Number")]),v("td",[t._v("20")]),v("td",[t._v("导出图片时的内边距")]),v("td")]),v("tr",[v("td",[t._v("imgTextMargin")]),v("td",[t._v("Number")]),v("td",[t._v("5")]),v("td",[t._v("节点里图片和文字的间距")]),v("td")]),v("tr",[v("td",[t._v("textContentMargin")]),v("td",[t._v("Number")]),v("td",[t._v("2")]),v("td",[t._v("节点里各种文字信息的间距,如图标和文字的间距")]),v("td")]),v("tr",[v("td",[t._v("selectTranslateStep")]),v("td",[t._v("Number")]),v("td",[t._v("3")]),v("td",[t._v("多选节点时鼠标移动到边缘时的画布移动偏移量")]),v("td")]),v("tr",[v("td",[t._v("selectTranslateLimit")]),v("td",[t._v("Number")]),v("td",[t._v("20")]),v("td",[t._v("多选节点时鼠标移动距边缘多少距离时开始偏移")]),v("td")]),v("tr",[v("td",[t._v("customNoteContentShow(v0.1.6+)")]),v("td",[t._v("Object")]),v("td",[t._v("null")]),v("td",[t._v("自定义节点备注内容显示,Object类型,结构为:{show: (noteContent, left, top) => {// 你的显示节点备注逻辑 }, hide: () => {// 你的隐藏节点备注逻辑 }}")]),v("td")]),v("tr",[v("td",[t._v("readonly(v0.1.7+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("是否是只读模式")]),v("td")]),v("tr",[v("td",[t._v("enableFreeDrag(v0.2.4+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("是否开启节点自由拖拽")]),v("td")]),v("tr",[v("td",[t._v("watermarkConfig(v0.2.4+)")]),v("td",[t._v("Object")]),v("td"),v("td",[t._v("水印配置,详细配置请参考下方表格【水印配置】")]),v("td")]),v("tr",[v("td",[t._v("textAutoWrapWidth(v0.3.4+)")]),v("td",[t._v("Number")]),v("td",[t._v("500")]),v("td",[t._v("节点内每行文本达到该宽度后自动换行")]),v("td")]),v("tr",[v("td",[t._v("customHandleMousewheel(v0.4.3+)")]),v("td",[t._v("Function")]),v("td",[t._v("null")]),v("td",[t._v("自定义鼠标滚轮事件处理,可以传一个函数,回调参数为事件对象")]),v("td")]),v("tr",[v("td",[t._v("mousewheelAction(v0.4.3+)")]),v("td",[t._v("String")]),v("td",[t._v("zoom")]),v("td",[t._v("鼠标滚轮的行为,"),v("code",[t._v("zoom")]),t._v("(放大缩小)、"),v("code",[t._v("move")]),t._v("(上下移动)。如果"),v("code",[t._v("customHandleMousewheel")]),t._v("传了自定义函数,这个属性不生效")]),v("td")]),v("tr",[v("td",[t._v("mousewheelMoveStep(v0.4.3+)")]),v("td",[t._v("Number")]),v("td",[t._v("100")]),v("td",[t._v("当"),v("code",[t._v("mousewheelAction")]),t._v("设为"),v("code",[t._v("move")]),t._v("时,可以通过该属性控制鼠标滚动一下视图移动的步长,单位"),v("code",[t._v("px")])]),v("td")]),v("tr",[v("td",[t._v("defaultInsertSecondLevelNodeText(v0.4.7+)")]),v("td",[t._v("String")]),v("td",[t._v("二级节点")]),v("td",[t._v("默认插入的二级节点的文字")]),v("td")]),v("tr",[v("td",[t._v("defaultInsertBelowSecondLevelNodeText(v0.4.7+)")]),v("td",[t._v("String")]),v("td",[t._v("分支主题")]),v("td",[t._v("默认插入的二级以下节点的文字")]),v("td")]),v("tr",[v("td",[t._v("expandBtnStyle(v0.5.0+)")]),v("td",[t._v("Object")]),v("td",[t._v("{ color: '#808080', fill: '#fff' }")]),v("td",[t._v("展开收起按钮的颜色")]),v("td")]),v("tr",[v("td",[t._v("expandBtnIcon(v0.5.0+)")]),v("td",[t._v("Object")]),v("td",[t._v("{ open: '', close: '' }")]),v("td",[t._v("自定义展开收起按钮的图标,可以传图标的svg字符串")]),v("td")]),v("tr",[v("td",[t._v("enableShortcutOnlyWhenMouseInSvg(v0.5.1+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("是否只有当鼠标在画布内才响应快捷键事件")]),v("td")]),v("tr",[v("td",[t._v("enableNodeTransitionMove(v0.5.1+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("是否开启节点动画过渡")]),v("td")]),v("tr",[v("td",[t._v("nodeTransitionMoveDuration(v0.5.1+)")]),v("td",[t._v("Number")]),v("td",[t._v("300")]),v("td",[t._v("如果开启节点动画过渡,可以通过该属性设置过渡的时间,单位ms")]),v("td")]),v("tr",[v("td",[t._v("initRootNodePosition(v0.5.3+)")]),v("td",[t._v("Array")]),v("td",[t._v("null")]),v("td",[t._v("初始根节点的位置,可传一个数组,默认为"),v("code",[t._v("['center', 'center']")]),t._v(",代表根节点处于画布中心位置,除了"),v("code",[t._v("center")]),t._v(",关键词还可以设置"),v("code",[t._v("left")]),t._v("、"),v("code",[t._v("top")]),t._v("、"),v("code",[t._v("right")]),t._v("、"),v("code",[t._v("bottom")]),t._v(",除了可以传关键词,数组的每项还可以传递一个数字,代表具体的像素,可以传递一个百分比字符串,比如"),v("code",[t._v("['40%', '60%']")]),t._v(",代表水平位置在画布宽度的"),v("code",[t._v("40%")]),t._v("的位置,垂直位置在画布高度的"),v("code",[t._v("60%")]),t._v("的位置")]),v("td")]),v("tr",[v("td",[t._v("exportPaddingX(v0.5.5+)")]),v("td",[t._v("Number")]),v("td",[t._v("10")]),v("td",[t._v("导出png、svg、pdf时的图形水平内边距")]),v("td")]),v("tr",[v("td",[t._v("exportPaddingY(v0.5.5+)")]),v("td",[t._v("Number")]),v("td",[t._v("10")]),v("td",[t._v("导出png、svg、pdf时的图形垂直内边距")]),v("td")]),v("tr",[v("td",[t._v("nodeTextEditZIndex(v0.5.5+)")]),v("td",[t._v("Number")]),v("td",[t._v("3000")]),v("td",[t._v("节点文本编辑框元素的z-index")]),v("td")]),v("tr",[v("td",[t._v("nodeNoteTooltipZIndex(v0.5.5+)")]),v("td",[t._v("Number")]),v("td",[t._v("3000")]),v("td",[t._v("节点备注浮层元素的z-index")]),v("td")]),v("tr",[v("td",[t._v("isEndNodeTextEditOnClickOuter(v0.5.5+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("是否在点击了画布外的区域时结束节点文本的编辑状态")]),v("td")]),v("tr",[v("td",[t._v("maxHistoryCount(v0.5.6+)")]),v("td",[t._v("Number")]),v("td",[t._v("1000")]),v("td",[t._v("最大历史记录数")]),v("td")]),v("tr",[v("td",[t._v("alwaysShowExpandBtn(v0.5.8+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("是否一直显示节点的展开收起按钮,默认为鼠标移上去和激活时才显示")]),v("td")]),v("tr",[v("td",[t._v("iconList(v0.5.8+)")]),v("td",[t._v("Array")]),v("td",[t._v("[]")]),v("td",[t._v("扩展节点可插入的图标,数组的每一项为一个对象,对象详细结构请参考下方【图标配置】表格")]),v("td")]),v("tr",[v("td",[t._v("maxNodeCacheCount(v0.5.10+)")]),v("td",[t._v("Number")]),v("td",[t._v("1000")]),v("td",[t._v("节点最大缓存数量。为了优化性能,内部会维护一个节点缓存池,用来复用节点,通过该属性可以指定池的最大缓存数量")]),v("td")]),v("tr",[v("td",[t._v("defaultAssociativeLineText(v0.5.11+)")]),v("td",[t._v("String")]),v("td",[t._v("关联")]),v("td",[t._v("关联线默认文字")]),v("td")]),v("tr",[v("td",[t._v("fitPadding(v0.6.0+)")]),v("td",[t._v("Number")]),v("td",[t._v("50")]),v("td",[t._v("思维导图适应画布大小时的内边距,单位:px")]),v("td")]),v("tr",[v("td",[t._v("enableCtrlKeyNodeSelection(v0.6.0+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("是否开启按住ctrl键多选节点的功能")]),v("td")]),v("tr",[v("td",[t._v("useLeftKeySelectionRightKeyDrag(v0.6.0+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("设置为左键多选节点,右键拖动画布")]),v("td")]),v("tr",[v("td",[t._v("beforeTextEdit(v0.6.0+)")]),v("td",[t._v("Function/null")]),v("td",[t._v("null")]),v("td",[t._v("节点即将进入编辑前的回调方法,如果该方法返回true以外的值,那么将取消编辑,函数可以返回一个值,或一个Promise,回调参数为节点实例")]),v("td")])])]),v("h3",[t._v("水印配置")]),v("table",[v("thead",[v("tr",[v("th",[t._v("字段名称")]),v("th",[t._v("类型")]),v("th",[t._v("默认值")]),v("th",[t._v("描述")])])]),v("tbody",[v("tr",[v("td",[t._v("text")]),v("td",[t._v("String")]),v("td",[t._v("''")]),v("td",[t._v("水印文字,如果为空字符串则不显示水印")])]),v("tr",[v("td",[t._v("lineSpacing")]),v("td",[t._v("Number")]),v("td",[t._v("100")]),v("td",[t._v("水印每行之间的间距")])]),v("tr",[v("td",[t._v("textSpacing")]),v("td",[t._v("Number")]),v("td",[t._v("100")]),v("td",[t._v("同一行水印之间的间距")])]),v("tr",[v("td",[t._v("angle")]),v("td",[t._v("Number")]),v("td",[t._v("30")]),v("td",[t._v("水印的倾斜角度,范围:[0, 90]")])]),v("tr",[v("td",[t._v("textStyle")]),v("td",[t._v("Object")]),v("td",[t._v("{color: '#999', opacity: 0.5, fontSize: 14}")]),v("td",[t._v("水印文字样式")])])])]),v("h3",[t._v("图标配置")]),v("table",[v("thead",[v("tr",[v("th",[t._v("字段名称")]),v("th",[t._v("类型")]),v("th",[t._v("默认值")]),v("th",[t._v("描述")])])]),v("tbody",[v("tr",[v("td",[t._v("name")]),v("td",[t._v("String")]),v("td"),v("td",[t._v("图标分组的名称")])]),v("tr",[v("td",[t._v("type")]),v("td",[t._v("String")]),v("td"),v("td",[t._v("图标分组的值")])]),v("tr",[v("td",[t._v("list")]),v("td",[t._v("Array")]),v("td"),v("td",[t._v("分组下的图标列表,数组的每一项为一个对象,"),v("code",[t._v("{ name: '', icon: '' }")]),t._v(","),v("code",[t._v("name")]),t._v("代表图标的名称,"),v("code",[t._v("icon")]),t._v("代表图标,可以是"),v("code",[t._v("svg")]),t._v("图标,比如"),v("code",[t._v(" ")]),t._v(",也可以是图片"),v("code",[t._v("url")]),t._v(",或者是"),v("code",[t._v("base64")]),t._v("图标,比如"),v("code",[t._v("data:image/png;base64,...")])])])])]),v("h2",[t._v("静态方法")]),v("h3",[t._v("defineTheme(name, config)")]),v("blockquote",[v("p",[t._v("v0.2.23+")])]),v("p",[t._v("定义新主题。")]),v("p",[v("code",[t._v("name")]),t._v(":新主题名称")]),v("p",[v("code",[t._v("config")]),t._v(":主题数据")]),v("p",[v("code",[t._v("simple-mind-map")]),t._v("内置了众多主题,另外你也可以注册新主题,建议在实例化之前进行注册,这样在实例化时可以直接使用新注册的主题,使用示例:")]),v("pre",{staticClass:"hljs"},[v("code",[v("span",{staticClass:"hljs-keyword"},[t._v("import")]),t._v(" MindMap "),v("span",{staticClass:"hljs-keyword"},[t._v("from")]),t._v(" "),v("span",{staticClass:"hljs-string"},[t._v("'simple-mind-map'")]),t._v("\n"),v("span",{staticClass:"hljs-comment"},[t._v("// 注册新主题")]),t._v("\nMindMap.defineTheme("),v("span",{staticClass:"hljs-string"},[t._v("'主题名称'")]),t._v(", {})\n\n"),v("span",{staticClass:"hljs-comment"},[t._v("// 1.实例化时使用新注册的主题")]),t._v("\n"),v("span",{staticClass:"hljs-keyword"},[t._v("const")]),t._v(" mindMap = "),v("span",{staticClass:"hljs-keyword"},[t._v("new")]),t._v(" MindMap({\n "),v("span",{staticClass:"hljs-attr"},[t._v("theme")]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v("'主题名称'")]),t._v("\n})\n\n"),v("span",{staticClass:"hljs-comment"},[t._v("// 2.动态切换新主题")]),t._v("\nmindMap.setTheme("),v("span",{staticClass:"hljs-string"},[t._v("'主题名称'")]),t._v(")\n")])]),v("p",[t._v("主题的所有配置可以参考"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/themes/default.js"}},[t._v("默认主题")]),t._v("。"),v("code",[t._v("defineTheme")]),t._v("方法会把你传入的配置和默认配置做合并。大部分主题其实需要自定义的部分不是很多,一个典型的自定义主题配置可以参考"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/themes/blueSky.js"}},[t._v("blueSky")]),t._v("。")]),v("h3",[t._v("usePlugin(plugin, opt = {})")]),v("blockquote",[v("p",[t._v("v0.3.0+")])]),v("ul",[v("li",[v("code",[t._v("opt")]),t._v(":v0.4.0+,插件参数。如果某个插件支持自定义选项的话可以通过这个参数传入。")])]),v("p",[t._v("注册插件,如果需要使用非核心的一些功能,比如小地图、水印等,可以通过该方法进行注册。可链式调用。")]),v("p",[t._v("注意:插件需要在实例化"),v("code",[t._v("MindMap")]),t._v("前注册。")]),v("h3",[t._v("hasPlugin(plugin)")]),v("blockquote",[v("p",[t._v("v0.4.0+")])]),v("p",[t._v("获取是否注册了某个插件,返回的是插件在注册插件列表里的索引,为"),v("code",[t._v("-1")]),t._v("则代表插件没有注册。")]),v("h2",[t._v("静态属性")]),v("h3",[t._v("pluginList")]),v("blockquote",[v("p",[t._v("v0.3.0+")])]),v("p",[t._v("当前注册的所有插件列表。")]),v("h2",[t._v("实例方法")]),v("h3",[t._v("destroy()")]),v("blockquote",[v("p",[t._v("v0.6.0+")])]),v("p",[t._v("销毁思维导图。会移除注册的插件、移除监听的事件、删除画布的所有节点。")]),v("h3",[t._v("getSvgData({ paddingX = 0, paddingY = 0 })")]),v("blockquote",[v("p",[t._v("v0.3.0+")])]),v("p",[v("code",[t._v("paddingX")]),t._v(":水平内边距")]),v("p",[v("code",[t._v("paddingY")]),t._v(":垂直内边距")]),v("p",[t._v("获取"),v("code",[t._v("svg")]),t._v("数据,返回一个对象,详细结构如下:")]),v("pre",{staticClass:"hljs"},[v("code",[t._v("{\n svg, "),v("span",{staticClass:"hljs-comment"},[t._v("// Element,思维导图图形的整体svg元素,包括:svg(画布容器)、g(实际的思维导图组)")]),t._v("\n svgHTML, "),v("span",{staticClass:"hljs-comment"},[t._v("// String,svg字符串,即html字符串,可以直接渲染到你准备的小地图容器内")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("rect")]),t._v(": "),v("span",{staticClass:"hljs-comment"},[t._v("// Object,思维导图图形未缩放时的位置尺寸等信息")]),t._v("\n origWidth, "),v("span",{staticClass:"hljs-comment"},[t._v("// Number,画布宽度")]),t._v("\n origHeight, "),v("span",{staticClass:"hljs-comment"},[t._v("// Number,画布高度")]),t._v("\n scaleX, "),v("span",{staticClass:"hljs-comment"},[t._v("// Number,思维导图图形的水平缩放值")]),t._v("\n scaleY, "),v("span",{staticClass:"hljs-comment"},[t._v("// Number,思维导图图形的垂直缩放值")]),t._v("\n}\n")])]),v("h3",[t._v("render(callback)")]),v("ul",[v("li",[v("code",[t._v("callback")]),t._v(":"),v("code",[t._v("v0.3.2+")]),t._v(","),v("code",[t._v("Function")]),t._v(",当重新渲染完成时调用")])]),v("p",[t._v("触发整体渲染,会进行节点复用,性能较"),v("code",[t._v("reRender")]),t._v("会更好一点,如果只是节点位置变化了可以调用该方法进行渲染")]),v("h3",[t._v("reRender(callback)")]),v("ul",[v("li",[v("code",[t._v("callback")]),t._v(":"),v("code",[t._v("v0.3.2+")]),t._v(","),v("code",[t._v("Function")]),t._v(",当重新渲染完成时调用")])]),v("p",[t._v("整体重新渲染,会清空画布,节点也会重新创建,性能不好,慎重使用")]),v("h3",[t._v("resize()")]),v("p",[t._v("容器尺寸变化后,需要调用该方法进行适应")]),v("h3",[t._v("setMode(mode)")]),v("blockquote",[v("p",[t._v("v0.1.7+")])]),v("p",[t._v("切换模式为只读或编辑。")]),v("p",[v("code",[t._v("mode")]),t._v(":readonly、edit")]),v("h3",[t._v("on(event, fn)")]),v("p",[t._v("监听事件,事件列表:")]),v("table",[v("thead",[v("tr",[v("th",[t._v("事件名称")]),v("th",[t._v("描述")]),v("th",[t._v("回调参数")])])]),v("tbody",[v("tr",[v("td",[t._v("data_change")]),v("td",[t._v("渲染树数据变化,可以监听该方法获取最新数据")]),v("td",[t._v("data(当前渲染树数据)")])]),v("tr",[v("td",[t._v("view_data_change(v0.1.1+)")]),v("td",[t._v("视图变化数据,比如拖动或缩放时会触发")]),v("td",[t._v("data(当前视图状态数据)")])]),v("tr",[v("td",[t._v("back_forward")]),v("td",[t._v("前进或回退")]),v("td",[t._v("activeHistoryIndex(当前在历史数据数组里的索引)、length(当前历史数据数组的长度)")])]),v("tr",[v("td",[t._v("draw_click")]),v("td",[v("em",[t._v("画布的单击事件")])]),v("td",[t._v("e(事件对象)")])]),v("tr",[v("td",[t._v("svg_mousedown")]),v("td",[t._v("svg画布的鼠标按下事件")]),v("td",[t._v("e(事件对象)")])]),v("tr",[v("td",[t._v("mousedown")]),v("td",[t._v("el元素的鼠标按下事件")]),v("td",[t._v("e(事件对象)、this(Event事件类实例)")])]),v("tr",[v("td",[t._v("mousemove")]),v("td",[t._v("el元素的鼠标移动事件")]),v("td",[t._v("e(事件对象)、this(Event事件类实例)")])]),v("tr",[v("td",[t._v("drag")]),v("td",[t._v("如果是按住左键拖动的话会触发拖动事件")]),v("td",[t._v("e(事件对象)、this(Event事件类实例)")])]),v("tr",[v("td",[t._v("mouseup")]),v("td",[t._v("el元素的鼠标松开事件")]),v("td",[t._v("e(事件对象)、this(Event事件类实例)")])]),v("tr",[v("td",[t._v("mousewheel")]),v("td",[t._v("鼠标滚动事件")]),v("td",[t._v("e(事件对象)、dir(向上up还是向下down滚动)、this(Event事件类实例)")])]),v("tr",[v("td",[t._v("contextmenu")]),v("td",[t._v("svg画布的鼠标右键菜单事件")]),v("td",[t._v("e(事件对象)")])]),v("tr",[v("td",[t._v("node_click")]),v("td",[t._v("节点的单击事件")]),v("td",[t._v("this(节点实例)、e(事件对象)")])]),v("tr",[v("td",[t._v("node_mousedown")]),v("td",[t._v("节点的鼠标按下事件")]),v("td",[t._v("this(节点实例)、e(事件对象)")])]),v("tr",[v("td",[t._v("node_mouseup")]),v("td",[t._v("节点的鼠标松开事件")]),v("td",[t._v("this(节点实例)、e(事件对象)")])]),v("tr",[v("td",[t._v("node_dblclick")]),v("td",[t._v("节点的双击事件")]),v("td",[t._v("this(节点实例)、e(事件对象)")])]),v("tr",[v("td",[t._v("node_contextmenu")]),v("td",[t._v("节点的右键菜单事件")]),v("td",[t._v("e(事件对象)、this(节点实例)")])]),v("tr",[v("td",[t._v("node_mouseenter(v0.4.1+)")]),v("td",[t._v("节点的鼠标移入事件")]),v("td",[t._v("this(节点实例)、e(事件对象)")])]),v("tr",[v("td",[t._v("node_mouseleave(v0.4.1+)")]),v("td",[t._v("节点的鼠标移出事件")]),v("td",[t._v("this(节点实例)、e(事件对象)")])]),v("tr",[v("td",[t._v("before_node_active")]),v("td",[t._v("节点激活前事件")]),v("td",[t._v("this(节点实例)、activeNodeList(当前激活的所有节点列表)")])]),v("tr",[v("td",[t._v("node_active")]),v("td",[t._v("节点激活事件")]),v("td",[t._v("this(节点实例)、activeNodeList(当前激活的所有节点列表)")])]),v("tr",[v("td",[t._v("expand_btn_click")]),v("td",[t._v("节点展开或收缩事件")]),v("td",[t._v("this(节点实例)")])]),v("tr",[v("td",[t._v("before_show_text_edit")]),v("td",[t._v("节点文本编辑框即将打开事件")]),v("td")]),v("tr",[v("td",[t._v("hide_text_edit")]),v("td",[t._v("节点文本编辑框关闭事件")]),v("td",[t._v("textEditNode(文本编辑框DOM节点)、activeNodeList(当前激活的所有节点列表)")])]),v("tr",[v("td",[t._v("scale")]),v("td",[t._v("放大缩小事件")]),v("td",[t._v("scale(缩放比例)")])]),v("tr",[v("td",[t._v("node_img_dblclick(v0.2.15+)")]),v("td",[t._v("节点内图片的双击事件")]),v("td",[t._v("this(节点实例)、e(事件对象)")])]),v("tr",[v("td",[t._v("node_tree_render_end(v0.2.16+)")]),v("td",[t._v("节点树渲染完毕事件")]),v("td")]),v("tr",[v("td",[t._v("rich_text_selection_change(v0.4.0+)")]),v("td",[t._v("当注册了"),v("code",[t._v("RichText")]),t._v("插件时可用。当节点编辑时,文本选区发生改变时触发")]),v("td",[t._v("hasRange(是否存在选区)、rectInfo(选区的尺寸和位置信息)、formatInfo(选区的文本格式化信息)")])]),v("tr",[v("td",[t._v("transforming-dom-to-images(v0.4.0+)")]),v("td",[t._v("当注册了"),v("code",[t._v("RichText")]),t._v("插件时可用。当"),v("code",[t._v("svg")]),t._v("中存在"),v("code",[t._v("DOM")]),t._v("节点时,导出为图片时会将"),v("code",[t._v("DOM")]),t._v("节点转换为图片,转换过程中会触发该事件,可用通过该事件给用户提示,告知目前转换到的节点")]),v("td",[t._v("index(当前转换到的节点索引)、len(一共需要转换的节点数量)")])]),v("tr",[v("td",[t._v("node_dragging(v0.4.5+)")]),v("td",[t._v("当某个节点被拖拽时触发")]),v("td",[t._v("node(当前被拖拽的节点)")])]),v("tr",[v("td",[t._v("node_dragend(v0.4.5+)")]),v("td",[t._v("节点被拖拽结束时触发")]),v("td")]),v("tr",[v("td",[t._v("associative_line_click(v0.4.5+)")]),v("td",[t._v("点击某条关联线时触发")]),v("td",[t._v("path(连接线节点)、clickPath(不可见的点击线节点)、node(起始节点)、toNode(目标节点)")])]),v("tr",[v("td",[t._v("svg_mouseenter(v0.5.1+)")]),v("td",[t._v("鼠标移入svg画布时触发")]),v("td",[t._v("e(事件对象)")])]),v("tr",[v("td",[t._v("svg_mouseleave(v0.5.1+)")]),v("td",[t._v("鼠标移出svg画布时触发")]),v("td",[t._v("e(事件对象)")])])])]),v("h3",[t._v("emit(event, ...args)")]),v("p",[t._v("触发事件,可以是上面表格里的事件,也可以是自定义事件")]),v("h3",[t._v("off(event, fn)")]),v("p",[t._v("解绑事件")]),v("h3",[t._v("setTheme(theme)")]),v("p",[t._v("切换主题,可选主题见上面的选项表格")]),v("h3",[t._v("getTheme()")]),v("p",[t._v("获取当前主题")]),v("h3",[t._v("setThemeConfig(config)")]),v("p",[t._v("设置主题配置,"),v("code",[t._v("config")]),t._v("同上面选项表格里的选项"),v("code",[t._v("themeConfig")])]),v("h3",[t._v("getCustomThemeConfig()")]),v("p",[t._v("获取自定义主题配置")]),v("h3",[t._v("getThemeConfig(prop)")]),v("p",[t._v("获取某个主题配置属性值")]),v("h3",[t._v("getConfig("),v("em",[t._v("prop")]),t._v(")")]),v("blockquote",[v("p",[t._v("0.2.24+")])]),v("p",[v("code",[t._v("prop")]),t._v(":获取指定配置的值,不传则返回整个配置")]),v("p",[t._v("获取配置,即"),v("code",[t._v("new MindMap(opt)")]),t._v("的"),v("code",[t._v("opt")])]),v("h3",[t._v("updateConfig("),v("em",[t._v("opt")]),t._v(" = {})")]),v("blockquote",[v("p",[t._v("0.2.24+")])]),v("p",[v("code",[t._v("opt")]),t._v(":要更新的配置")]),v("p",[t._v("更新配置,即更新"),v("code",[t._v("new MindMap(opt)")]),t._v("的"),v("code",[t._v("opt")]),t._v(",可以只更新部分数据,比如:")]),v("pre",{staticClass:"hljs"},[v("code",[t._v("mindMap.updateConfig({\n "),v("span",{staticClass:"hljs-attr"},[t._v("enableFreeDrag")]),t._v(": "),v("span",{staticClass:"hljs-literal"},[t._v("true")]),v("span",{staticClass:"hljs-comment"},[t._v("// 开启节点自由拖拽")]),t._v("\n})\n")])]),v("p",[t._v("该方法只做更新配置的事情,没有其他副作用,比如触发画布重新渲染之类的")]),v("h3",[t._v("getLayout()")]),v("p",[t._v("获取当前的布局结构")]),v("h3",[t._v("setLayout(layout)")]),v("p",[t._v("设置布局结构,可选值见上面选项表格的"),v("code",[t._v("layout")]),t._v("字段")]),v("h3",[t._v("execCommand(name, ...args)")]),v("p",[t._v("执行命令,每执行一个命令就会在历史堆栈里添加一条记录用于回退或前进。所有命令如下:")]),v("table",[v("thead",[v("tr",[v("th",[t._v("命令名称")]),v("th",[t._v("描述")]),v("th",[t._v("参数")])])]),v("tbody",[v("tr",[v("td",[t._v("SELECT_ALL")]),v("td",[t._v("全选")]),v("td")]),v("tr",[v("td",[t._v("BACK")]),v("td",[t._v("回退指定的步数")]),v("td",[t._v("step(要回退的步数,默认为1)")])]),v("tr",[v("td",[t._v("FORWARD")]),v("td",[t._v("前进指定的步数")]),v("td",[t._v("step(要前进的步数,默认为1)")])]),v("tr",[v("td",[t._v("INSERT_NODE")]),v("td",[t._v("插入同级节点,操作节点为当前激活的节点或指定节点,如果有多个激活节点,只会对第一个有效")]),v("td",[t._v("openEdit(v0.4.6+,是否激活新插入的节点并进入编辑模式,默认为"),v("code",[t._v("true")]),t._v(")、 appointNodes(v0.4.7+,可选,指定节点,指定多个节点可以传一个数组)、 appointData(可选,指定新创建节点的数据,比如{text: 'xxx', ...},详细结构可以参考"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exampleData.js"}},[t._v("exampleData.js")]),t._v(")")])]),v("tr",[v("td",[t._v("INSERT_CHILD_NODE")]),v("td",[t._v("插入子节点,操作节点为当前激活的节点或指定节点")]),v("td",[t._v("openEdit(v0.4.6+,是否激活新插入的节点并进入编辑模式,默认为"),v("code",[t._v("true")]),t._v(")、 appointNodes(v0.4.7+,可选,指定节点,指定多个节点可以传一个数组)、 appointData(可选,指定新创建节点的数据,比如{text: 'xxx', ...},详细结构可以参考"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exampleData.js"}},[t._v("exampleData.js")]),t._v(")")])]),v("tr",[v("td",[t._v("UP_NODE")]),v("td",[t._v("上移节点,操作节点为当前激活的节点,如果有多个激活节点,只会对第一个有效,对根节点或在列表里的第一个节点使用无效")]),v("td")]),v("tr",[v("td",[t._v("DOWN_NODE")]),v("td",[t._v("操作节点为当前激活的节点,如果有多个激活节点,只会对第一个有效,对根节点或在列表里的最后一个节点使用无效")]),v("td")]),v("tr",[v("td",[t._v("REMOVE_NODE")]),v("td",[t._v("删除节点,操作节点为当前激活的节点或指定节点")]),v("td",[t._v("appointNodes(v0.4.7+,可选,指定节点,指定多个节点可以传一个数组)")])]),v("tr",[v("td",[t._v("PASTE_NODE")]),v("td",[t._v("粘贴节点到节点,操作节点为当前激活的节点")]),v("td",[t._v("data(要粘贴的节点数据,一般通过"),v("code",[t._v("renderer.copyNode()")]),t._v("方法和"),v("code",[t._v("renderer.cutNode()")]),t._v("方法获取)")])]),v("tr",[v("td",[t._v("CUT_NODE")]),v("td",[t._v("剪切节点,操作节点为当前激活的节点,如果有多个激活节点,只会对第一个有效,对根节点使用无效")]),v("td",[t._v("callback(回调函数,剪切的节点数据会通过调用该函数并通过参数返回)")])]),v("tr",[v("td",[t._v("SET_NODE_STYLE")]),v("td",[t._v("修改节点样式")]),v("td",[t._v("node(要设置样式的节点)、prop(样式属性)、value(样式属性值)、isActive(布尔值,是否设置的是激活状态的样式)")])]),v("tr",[v("td",[t._v("SET_NODE_ACTIVE")]),v("td",[t._v("设置节点是否激活")]),v("td",[t._v("node(要设置的节点)、active(布尔值,是否激活)")])]),v("tr",[v("td",[t._v("CLEAR_ACTIVE_NODE")]),v("td",[t._v("清除当前已激活节点的激活状态,操作节点为当前激活的节点")]),v("td")]),v("tr",[v("td",[t._v("SET_NODE_EXPAND")]),v("td",[t._v("设置节点是否展开")]),v("td",[t._v("node(要设置的节点)、expand(布尔值,是否展开)")])]),v("tr",[v("td",[t._v("EXPAND_ALL")]),v("td",[t._v("展开所有节点")]),v("td")]),v("tr",[v("td",[t._v("UNEXPAND_ALL")]),v("td",[t._v("收起所有节点")]),v("td")]),v("tr",[v("td",[t._v("UNEXPAND_TO_LEVEL(v0.2.8+)")]),v("td",[t._v("展开到指定层级")]),v("td",[t._v("level(要展开到的层级,1、2、3...)")])]),v("tr",[v("td",[t._v("SET_NODE_DATA")]),v("td",[t._v("更新节点数据,即更新节点数据对象里"),v("code",[t._v("data")]),t._v("对象的数据")]),v("td",[t._v("node(要设置的节点)、data(对象,要更新的数据,如"),v("code",[t._v("{expand: true}")]),t._v(")")])]),v("tr",[v("td",[t._v("SET_NODE_TEXT")]),v("td",[t._v("设置节点文本")]),v("td",[t._v("node(要设置的节点)、text(要设置的文本字符串,换行可以使用"),v("code",[t._v("\\n")]),t._v(")、richText(v0.4.0+,如果要设置的是富文本字符,需要设为"),v("code",[t._v("true")]),t._v(")")])]),v("tr",[v("td",[t._v("SET_NODE_IMAGE")]),v("td",[t._v("设置节点图片")]),v("td",[t._v("node(要设置的节点)、imgData(对象,图片信息,结构为:"),v("code",[t._v("{url, title, width, height}")]),t._v(",图片的宽高必须要传)")])]),v("tr",[v("td",[t._v("SET_NODE_ICON")]),v("td",[t._v("设置节点图标")]),v("td",[t._v("node(要设置的节点)、icons(数组,预定义的图片名称组成的数组,可用图标可在"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/svg/icons.js"}},[t._v("icons.js")]),t._v("文件里的"),v("code",[t._v("nodeIconList")]),t._v("列表里获取到,图标名称为"),v("code",[t._v("type_name")]),t._v(",如"),v("code",[t._v("['priority_1']")]),t._v(")")])]),v("tr",[v("td",[t._v("SET_NODE_HYPERLINK")]),v("td",[t._v("设置节点超链接")]),v("td",[t._v("node(要设置的节点)、link(超链接地址)、title(超链接名称,可选)")])]),v("tr",[v("td",[t._v("SET_NODE_NOTE")]),v("td",[t._v("设置节点备注")]),v("td",[t._v("node(要设置的节点)、note(备注文字)")])]),v("tr",[v("td",[t._v("SET_NODE_TAG")]),v("td",[t._v("设置节点标签")]),v("td",[t._v("node(要设置的节点)、tag(字符串数组,内置颜色信息可在"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/constants/constant.js"}},[t._v("constant.js")]),t._v("里获取到)")])]),v("tr",[v("td",[t._v("INSERT_AFTER(v0.1.5+)")]),v("td",[t._v("将节点移动到另一个节点的后面")]),v("td",[t._v("node(要移动的节点)、 exist(目标节点)")])]),v("tr",[v("td",[t._v("INSERT_BEFORE(v0.1.5+)")]),v("td",[t._v("将节点移动到另一个节点的前面")]),v("td",[t._v("node(要移动的节点)、 exist(目标节点)")])]),v("tr",[v("td",[t._v("MOVE_NODE_TO(v0.1.5+)")]),v("td",[t._v("移动一个节点作为另一个节点的子节点")]),v("td",[t._v("node(要移动的节点)、 toNode(目标节点)")])]),v("tr",[v("td",[t._v("ADD_GENERALIZATION(v0.2.0+)")]),v("td",[t._v("添加节点概要")]),v("td",[t._v("data(概要的数据,对象格式,节点的数字段都支持,默认为{text: '概要'})")])]),v("tr",[v("td",[t._v("REMOVE_GENERALIZATION(v0.2.0+)")]),v("td",[t._v("删除节点概要")]),v("td")]),v("tr",[v("td",[t._v("SET_NODE_CUSTOM_POSITION(v0.2.0+)")]),v("td",[t._v("设置节点自定义位置")]),v("td",[t._v("node(要设置的节点)、 left(自定义的x坐标,默认为undefined)、 top(自定义的y坐标,默认为undefined)")])]),v("tr",[v("td",[t._v("RESET_LAYOUT(v0.2.0+)")]),v("td",[t._v("一键整理布局")]),v("td")]),v("tr",[v("td",[t._v("SET_NODE_SHAPE(v0.2.4+)")]),v("td",[t._v("设置节点形状")]),v("td",[t._v("node(要设置的节点)、shape(形状,全部形状:"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/core/render/node/Shape.js"}},[t._v("Shape.js")]),t._v(")")])])])]),v("h3",[t._v("setData(data)")]),v("p",[t._v("动态设置思维导图数据,纯节点数据")]),v("p",[v("code",[t._v("data")]),t._v(":思维导图结构数据")]),v("h3",[t._v("setFullData("),v("em",[t._v("data")]),t._v(")")]),v("blockquote",[v("p",[t._v("v0.2.7+")])]),v("p",[t._v("动态设置思维导图数据,包括节点数据、布局、主题、视图")]),v("p",[v("code",[t._v("data")]),t._v(":完整数据,结构可参考"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exportFullData.json"}},[t._v("exportFullData")])]),v("h3",[t._v("getData(withConfig)")]),v("blockquote",[v("p",[t._v("v0.2.9+")])]),v("p",[t._v("获取思维导图数据")]),v("p",[v("code",[t._v("withConfig")]),t._v(":"),v("code",[t._v("Boolean")]),t._v(",默认为"),v("code",[t._v("false")]),t._v(",即获取的数据只包括节点树,如果传"),v("code",[t._v("true")]),t._v("则会包含主题、布局、视图等数据")]),v("h3",[t._v("export(type, isDownload, fileName)")]),v("blockquote",[v("p",[t._v("需要先注册"),v("code",[t._v("Export")]),t._v("插件")])]),v("p",[t._v("导出")]),v("p",[v("code",[t._v("type")]),t._v(":要导出的类型,可选值:png、svg、json、pdf(v0.2.1+)、smm(本质也是json)")]),v("p",[v("code",[t._v("isDownload")]),t._v(":是否需要直接触发下载,布尔值,默认为"),v("code",[t._v("false")])]),v("p",[v("code",[t._v("fileName")]),t._v(":(v0.1.6+)导出文件的名称,默认为"),v("code",[t._v("思维导图")])]),v("p",[t._v("如果是导出为"),v("code",[t._v("png")]),t._v(",那么可以传递第四个参数:")]),v("p",[v("code",[t._v("transparent")]),t._v(":v0.5.7+, "),v("code",[t._v("Boolean")]),t._v(",默认为"),v("code",[t._v("false")]),t._v(",指定导出图片的背景是否是透明的")]),v("p",[t._v("如果是导出为"),v("code",[t._v("svg")]),t._v(",那么可以传递第四个参数:")]),v("p",[v("code",[t._v("plusCssText")]),t._v(":附加的"),v("code",[t._v("css")]),t._v("样式,如果"),v("code",[t._v("svg")]),t._v("中存在"),v("code",[t._v("dom")]),t._v("节点,想要设置一些针对节点的样式可以通过这个参数传入")]),v("p",[t._v("如果是导出为"),v("code",[t._v("json")]),t._v("或"),v("code",[t._v("smm")]),t._v(",那么可以传递第四个参数:")]),v("p",[v("code",[t._v("withConfig")]),t._v(":"),v("code",[t._v("Boolean")]),t._v(",默认为"),v("code",[t._v("true")]),t._v(",指定导出的数据中是否包含配置数据,否则只导出纯节点树数据")]),v("h3",[t._v("toPos(x, y)")]),v("blockquote",[v("p",[t._v("v0.1.5+")])]),v("p",[t._v("将浏览器可视窗口的坐标转换成相对于画布的坐标")]),v("h3",[t._v("addPlugin(plugin, opt)")]),v("blockquote",[v("p",[t._v("v0.4.0+")])]),v("p",[t._v("注册插件,使用"),v("code",[t._v("MindMap.usePlugin")]),t._v("注册插件只能在实例化之前,实例化后注册的插件是不会生效的,所以如果想在实例化后注册插件可以使用实例的"),v("code",[t._v("addPlugin")]),t._v("方法。")]),v("h3",[t._v("removePlugin(plugin)")]),v("blockquote",[v("p",[t._v("v0.4.0+")])]),v("p",[t._v("移除注册的插件,无论是通过"),v("code",[t._v("usePlugin")]),t._v("还是"),v("code",[t._v("addPlugin")]),t._v("方法注册的插件都可以移除。")])])}],a={},n=a,s=_("2877"),o=Object(s["a"])(n,d,e,!1,null,null,null);v["default"]=o.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d0db0f2.bb3276f8.js b/tools/mind-map/dist/js/chunk-2d0db0f2.bb3276f8.js
deleted file mode 100644
index e47c1587..00000000
--- a/tools/mind-map/dist/js/chunk-2d0db0f2.bb3276f8.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0db0f2"],{"6df4":function(n,v,_){"use strict";_.r(v);var e=function(){var n=this;n._self._c;return n._m(0)},o=[function(){var n=this,v=n._self._c;return v("div",[v("h1",[n._v("Command实例")]),v("p",[v("code",[n._v("command")]),n._v("实例负责命令的添加及执行,内置了很多命令,也可以自行添加,命令指需要在历史堆栈数据里添加副本的操作。可通过"),v("code",[n._v("mindMap.command")]),n._v("获取到该实例")]),v("h2",[n._v("方法")]),v("h3",[n._v("add(name, fn)")]),v("p",[n._v("添加命令。")]),v("p",[v("code",[n._v("name")]),n._v(":命令名称")]),v("p",[v("code",[n._v("fn")]),n._v(":命令要执行的方法")]),v("h3",[n._v("remove(name, fn)")]),v("p",[n._v("移除命令。")]),v("p",[v("code",[n._v("name")]),n._v(":要移除的命令名称")]),v("p",[v("code",[n._v("fn")]),n._v(":要移除的方法,不传的话移除该命令所有的方法")]),v("h3",[n._v("getCopyData()")]),v("p",[n._v("获取渲染树数据副本")]),v("h3",[n._v("clearHistory()")]),v("p",[n._v("清空历史堆栈数据")])])}],a={},c=a,d=_("2877"),p=Object(d["a"])(c,e,o,!1,null,null,null);v["default"]=p.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d0dd3b1.c0ec6c51.js b/tools/mind-map/dist/js/chunk-2d0dd3b1.c0ec6c51.js
deleted file mode 100644
index daac9ff4..00000000
--- a/tools/mind-map/dist/js/chunk-2d0dd3b1.c0ec6c51.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0dd3b1"],{8102:function(a,t,s){"use strict";s.r(t);var n=function(){var a=this;a._self._c;return a._m(0)},e=[function(){var a=this,t=a._self._c;return t("div",[t("h1",[a._v("Markdown parse")]),t("blockquote",[t("p",[a._v("v0.4.7+")])]),t("p",[a._v("Provides methods for importing and exporting "),t("code",[a._v("Markdown")]),a._v(" files.")]),t("h2",[a._v("Import")]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-keyword"},[a._v("import")]),a._v(" markdown "),t("span",{staticClass:"hljs-keyword"},[a._v("from")]),a._v(" "),t("span",{staticClass:"hljs-string"},[a._v("'simple-mind-map/src/parse/markdown.js'")]),a._v("\n")])]),t("p",[a._v("If you are using the file in the format of "),t("code",[a._v("umd")]),a._v(", you can obtain it in the following way:")]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-tag"},[a._v("<"),t("span",{staticClass:"hljs-name"},[a._v("script")]),a._v(" "),t("span",{staticClass:"hljs-attr"},[a._v("src")]),a._v("="),t("span",{staticClass:"hljs-string"},[a._v('"simple-mind-map/dist/simpleMindMap.umd.min.js"')]),a._v(">")]),t("span",{staticClass:"hljs-tag"},[a._v(""),t("span",{staticClass:"hljs-name"},[a._v("script")]),a._v(">")]),a._v("\n")])]),t("pre",{staticClass:"hljs"},[t("code",[a._v("simpleMindMap.markdown\n")])]),t("h2",[a._v("Methods")]),t("h3",[a._v("transformToMarkdown(data)")]),t("ul",[t("li",[t("code",[a._v("data")]),a._v(": Mind map data can be obtained using the "),t("code",[a._v("mindMap.getData()")]),a._v(" method.")])]),t("p",[a._v("Convert mind map data into "),t("code",[a._v("Markdown")]),a._v(" format data, and the returned data is a string.")]),t("h3",[a._v("transformMarkdownTo(mdContent)")]),t("ul",[t("li",[t("code",[a._v("mdContent")]),a._v(": The "),t("code",[a._v("Markdown")]),a._v(" data to convert, string type.")])]),t("p",[a._v("Convert the "),t("code",[a._v("Markdown")]),a._v(" string into node tree data and return a "),t("code",[a._v("Promise")]),a._v(" instance. You can use the "),t("code",[a._v("mindMap.setData()")]),a._v(" method to render the converted data onto the canvas.")])])}],o={},d=o,i=s("2877"),r=Object(i["a"])(d,n,e,!1,null,null,null);t["default"]=r.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d0dddce.5a0d97af.js b/tools/mind-map/dist/js/chunk-2d0dddce.5a0d97af.js
deleted file mode 100644
index 5da0113f..00000000
--- a/tools/mind-map/dist/js/chunk-2d0dddce.5a0d97af.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0dddce"],{"82ca":function(v,_,e){"use strict";e.r(_);var t=function(){var v=this;v._self._c;return v._m(0)},o=[function(){var v=this,_=v._self._c;return _("div",[_("h1",[v._v("View实例")]),_("p",[_("code",[v._v("view")]),v._v("实例负责视图操作,可通过"),_("code",[v._v("mindMap.view")]),v._v("获取到该实例")]),_("h2",[v._v("方法")]),_("h3",[v._v("fit()")]),_("blockquote",[_("p",[v._v("v0.6.0+")])]),_("p",[v._v("缩放思维导图至适应画布。")]),_("h3",[v._v("translateX(step)")]),_("p",[_("code",[v._v("x")]),v._v("方向进行平移,"),_("code",[v._v("step")]),v._v(":要平移的像素")]),_("h3",[v._v("translateY(step)")]),_("p",[_("code",[v._v("y")]),v._v("方向进行平移,"),_("code",[v._v("step")]),v._v(":要平移的像素")]),_("h3",[v._v("translateXTo(x)")]),_("blockquote",[_("p",[v._v("v0.2.11+")])]),_("p",[v._v("平移"),_("code",[v._v("x")]),v._v("方向到指定位置")]),_("h3",[v._v("translateYTo(y)")]),_("blockquote",[_("p",[v._v("v0.2.11+")])]),_("p",[v._v("平移"),_("code",[v._v("y")]),v._v("方向到指定位置")]),_("h3",[v._v("reset()")]),_("p",[v._v("恢复到默认的变换")]),_("h3",[v._v("narrow()")]),_("p",[v._v("缩小")]),_("h3",[v._v("enlarge()")]),_("p",[v._v("放大")]),_("h3",[v._v("getTransformData()")]),_("blockquote",[_("p",[v._v("v0.1.1+")])]),_("p",[v._v("获取当前变换数据,可用于回显")]),_("h3",[v._v("setTransformData(data)")]),_("blockquote",[_("p",[v._v("v0.1.1+")])]),_("p",[v._v("动态设置变换数据,可以通过getTransformData方法获取变换数据")]),_("h3",[v._v("setScale(scale)")]),_("blockquote",[_("p",[v._v("v0.2.17+")])]),_("p",[v._v("设置缩放")])])}],a={},p=a,c=e("2877"),n=Object(c["a"])(p,t,o,!1,null,null,null);_["default"]=n.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d0ddf37.6fecab33.js b/tools/mind-map/dist/js/chunk-2d0ddf37.6fecab33.js
deleted file mode 100644
index 26abb623..00000000
--- a/tools/mind-map/dist/js/chunk-2d0ddf37.6fecab33.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0ddf37"],{8427:function(s,n,v){"use strict";v.r(n);var _=function(){var s=this;s._self._c;return s._m(0)},t=[function(){var s=this,n=s._self._c;return n("div",[n("h1",[s._v("XMind解析")]),n("blockquote",[n("p",[s._v("v0.2.7+")])]),n("p",[s._v("提供导入"),n("code",[s._v("XMind")]),s._v("文件的方法。")]),n("h2",[s._v("引入")]),n("pre",{staticClass:"hljs"},[n("code",[n("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" xmind "),n("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),n("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map/src/parse/xmind.js'")]),s._v("\n")])]),n("p",[s._v("如果使用的是"),n("code",[s._v("umd")]),s._v("格式的文件,那么可以通过如下方式获取:")]),n("pre",{staticClass:"hljs"},[n("code",[n("span",{staticClass:"hljs-tag"},[s._v("<"),n("span",{staticClass:"hljs-name"},[s._v("script")]),s._v(" "),n("span",{staticClass:"hljs-attr"},[s._v("src")]),s._v("="),n("span",{staticClass:"hljs-string"},[s._v('"simple-mind-map/dist/simpleMindMap.umd.min.js"')]),s._v(">")]),n("span",{staticClass:"hljs-tag"},[s._v(""),n("span",{staticClass:"hljs-name"},[s._v("script")]),s._v(">")]),s._v("\n")])]),n("pre",{staticClass:"hljs"},[n("code",[s._v("simpleMindMap.xmind\n")])]),n("h2",[s._v("方法")]),n("h3",[s._v("xmind.parseXmindFile(file)")]),n("p",[s._v("解析"),n("code",[s._v(".xmind")]),s._v("文件,返回解析后的数据,可以使用"),n("code",[s._v("mindMap.setData(data)")]),s._v("来将返回的数据渲染到画布上")]),n("p",[n("code",[s._v("file")]),s._v(":"),n("code",[s._v("File")]),s._v("对象")]),n("h3",[s._v("xmind.transformXmind(content)")]),n("p",[s._v("转换"),n("code",[s._v("xmind")]),s._v("数据,"),n("code",[s._v(".xmind")]),s._v("文件本质上是一个压缩包,改成"),n("code",[s._v("zip")]),s._v("后缀可以解压缩,里面存在一个"),n("code",[s._v("content.json")]),s._v("文件,如果你自己解析出了这个文件,那么可以把这个文件内容传递给这个方法进行转换,转换后的数据,可以使用"),n("code",[s._v("mindMap.setData(data)")]),s._v("来将返回的数据渲染到画布上")]),n("p",[n("code",[s._v("content")]),s._v(":"),n("code",[s._v(".xmind")]),s._v("压缩包内的"),n("code",[s._v("content.json")]),s._v("文件内容")]),n("h3",[s._v("xmind.transformOldXmind(content)")]),n("blockquote",[n("p",[s._v("v0.2.8+")])]),n("p",[s._v("针对"),n("code",[s._v("xmind8")]),s._v("版本的数据解析,因为该版本的"),n("code",[s._v(".xmind")]),s._v("文件内没有"),n("code",[s._v("content.json")]),s._v(",对应的是"),n("code",[s._v("content.xml")]),s._v("。")]),n("p",[n("code",[s._v("content")]),s._v(":"),n("code",[s._v(".xmind")]),s._v("压缩包内的"),n("code",[s._v("content.xml")]),s._v("文件内容")])])}],e={},a=e,d=v("2877"),c=Object(d["a"])(a,_,t,!1,null,null,null);n["default"]=c.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d0de01b.aea9cd3b.js b/tools/mind-map/dist/js/chunk-2d0de01b.aea9cd3b.js
deleted file mode 100644
index 053b2f04..00000000
--- a/tools/mind-map/dist/js/chunk-2d0de01b.aea9cd3b.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0de01b"],{"848a":function(s,a,t){"use strict";t.r(a);var n=function(){var s=this;s._self._c;return s._m(0)},v=[function(){var s=this,a=s._self._c;return a("div",[a("h1",[s._v("Watermark插件")]),a("blockquote",[a("p",[s._v("0.2.24+")])]),a("p",[a("code",[s._v("Watermark")]),s._v("插件负责显示水印。")]),a("p",[s._v("配置请参考"),a("code",[s._v("MindMap")]),s._v("类的"),a("a",{attrs:{href:"/mind-map/#/doc/zh/constructor"}},[s._v("实例化选项")]),s._v("。")]),a("h2",[s._v("注册")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" MindMap "),a("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),a("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map'")]),s._v("\n"),a("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" Watermark "),a("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),a("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map/src/plugins/Watermark.js'")]),s._v("\n"),a("span",{staticClass:"hljs-comment"},[s._v("// import Watermark from 'simple-mind-map/src/Watermark.js' v0.6.0以下版本使用该路径")]),s._v("\n\nMindMap.usePlugin(Watermark)\n")])]),a("p",[s._v("注册完且实例化"),a("code",[s._v("MindMap")]),s._v("后可通过"),a("code",[s._v("mindMap.watermark")]),s._v("获取到该实例。")]),a("h2",[s._v("方法")]),a("h3",[s._v("draw()")]),a("p",[s._v("重新绘制水印。")]),a("p",[s._v("注意:非精确绘制,会绘制一些超出可视区域的水印,如果对性能有极致要求,推荐自行开发水印功能。")]),a("h3",[s._v("updateWatermark(config)")]),a("p",[s._v("更新水印配置。示例:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("mindMap.watermark.updateWatermark({\n "),a("span",{staticClass:"hljs-attr"},[s._v("text")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'水印文字'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("lineSpacing")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("100")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("textSpacing")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("100")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("angle")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("50")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("textStyle")]),s._v(": {\n "),a("span",{staticClass:"hljs-attr"},[s._v("color")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'#000'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("opacity")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("1")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("fontSize")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("20")]),s._v("\n }\n})\n")])]),a("h3",[s._v("hasWatermark()")]),a("blockquote",[a("p",[s._v("v0.3.2+")])]),a("p",[s._v("获取是否存在水印。")])])}],_={},r=_,l=t("2877"),i=Object(l["a"])(r,n,v,!1,null,null,null);a["default"]=i.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d0e2326.46e0dfe8.js b/tools/mind-map/dist/js/chunk-2d0e2326.46e0dfe8.js
deleted file mode 100644
index fbeeb3da..00000000
--- a/tools/mind-map/dist/js/chunk-2d0e2326.46e0dfe8.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0e2326"],{"7e57":function(s,a,t){"use strict";t.r(a);var n=function(){var s=this;s._self._c;return s._m(0)},_=[function(){var s=this,a=s._self._c;return a("div",[a("h1",[s._v("开始")]),a("h2",[s._v("安装")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("npm i simple-mind-map\n")])]),a("p",[a("code",[s._v("0.2.0")]),s._v("版本之前的注意事项:")]),a("blockquote",[a("p",[s._v("注意:本项目为源码直接发布,并未进行打包,如果出现编译失败的情况,Vue CLI创建的项目可以在vue.config.js文件中增加如下配置来让babel-loader编译本依赖:")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-built_in"},[s._v("module")]),s._v(".exports = {\n "),a("span",{staticClass:"hljs-attr"},[s._v("transpileDependencies")]),s._v(": ["),a("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map'")]),s._v("]\n}\n")])]),a("p",[s._v("其他项目请自行修改打包配置。")])]),a("h2",[s._v("使用")]),a("blockquote",[a("p",[s._v("本仓库的"),a("code",[s._v("web")]),s._v("目录提供了一个基于"),a("code",[s._v("Vue2")]),s._v("的完整项目,如果你遇到了一些使用上的疑惑,可以参考该项目的实现。")])]),a("blockquote",[a("p",[s._v("想要了解在其他框架中的使用,你可以参考以下这些非官方的实现:")]),a("p",[s._v("1."),a("a",{attrs:{href:"https://github.com/huangyuanyin/hyy-vue3-mindMap"}},[s._v("https://github.com/huangyuanyin/hyy-vue3-mindMap")]),s._v(":一个基于 Vue3.2 +ElementPlus的思维导图。")])]),a("p",[s._v("首先提供一个宽高不为0的容器元素:")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-tag"},[s._v("<"),a("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),a("span",{staticClass:"hljs-attr"},[s._v("id")]),s._v("="),a("span",{staticClass:"hljs-string"},[s._v('"mindMapContainer"')]),s._v(">")]),a("span",{staticClass:"hljs-tag"},[s._v(""),a("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(">")]),s._v("\n")])]),a("p",[s._v("另外再设置一下"),a("code",[s._v("css")]),s._v("样式:")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-selector-id"},[s._v("#mindMapContainer")]),s._v(" * {\n "),a("span",{staticClass:"hljs-attribute"},[s._v("margin")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("0")]),s._v(";\n "),a("span",{staticClass:"hljs-attribute"},[s._v("padding")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("0")]),s._v(";\n}\n")])]),a("p",[s._v("然后引入"),a("code",[s._v("simple-mind-map")]),s._v("库,创建一个实例:")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" MindMap "),a("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),a("span",{staticClass:"hljs-string"},[s._v('"simple-mind-map"')]),s._v(";\n\n"),a("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" mindMap = "),a("span",{staticClass:"hljs-keyword"},[s._v("new")]),s._v(" MindMap({\n "),a("span",{staticClass:"hljs-attr"},[s._v("el")]),s._v(": "),a("span",{staticClass:"hljs-built_in"},[s._v("document")]),s._v(".getElementById("),a("span",{staticClass:"hljs-string"},[s._v("'mindMapContainer'")]),s._v("),\n "),a("span",{staticClass:"hljs-attr"},[s._v("data")]),s._v(": {\n "),a("span",{staticClass:"hljs-string"},[s._v('"data"')]),s._v(": {\n "),a("span",{staticClass:"hljs-string"},[s._v('"text"')]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v('"根节点"')]),s._v("\n },\n "),a("span",{staticClass:"hljs-string"},[s._v('"children"')]),s._v(": []\n }\n});\n")])]),a("p",[s._v("这样即可得一个思维导图。")]),a("p",[s._v("如果你想要实现一个完整思维导图,那么通常你需要开发一些ui界面,通过"),a("code",[s._v("simple-mind-map")]),s._v("库提供的接口来实现更多功能。")]),a("p",[a("code",[s._v("simple-mind-map")]),s._v("支持丰富的配置、事件、命令,以及一些额外的插件扩展,阅读后续的文档来了解更多吧。")]),a("p",[s._v("默认引入的是未打包的"),a("code",[s._v("ES")]),s._v("模块,且只包含核心功能,不包含未注册的插件内容,能有效减小体积,不过你需要在你的项目中配置"),a("code",[s._v("babel")]),s._v("编译"),a("code",[s._v("simple-mind-map")]),s._v(",防止一些较新的"),a("code",[s._v("js")]),s._v("语法部分浏览器不支持。")]),a("p",[s._v("如果你需要"),a("code",[s._v("umd")]),s._v("模块格式的文件,比如以"),a("code",[s._v("CDN")]),s._v("的方式在浏览器上使用,那么你可以从"),a("code",[s._v("/simple-mind-map/dist/")]),s._v("目录中找到"),a("code",[s._v("simpleMindMap.umd.min.js")]),s._v("文件和"),a("code",[s._v("simpleMindMap.css")]),s._v("文件,复制到你的项目中,然后在页面中引入:")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-tag"},[s._v("<"),a("span",{staticClass:"hljs-name"},[s._v("link")]),s._v(" "),a("span",{staticClass:"hljs-attr"},[s._v("rel")]),s._v("="),a("span",{staticClass:"hljs-string"},[s._v('"stylesheet"')]),s._v(" "),a("span",{staticClass:"hljs-attr"},[s._v("href")]),s._v("="),a("span",{staticClass:"hljs-string"},[s._v('"simpleMindMap.css"')]),s._v(">")]),s._v("\n"),a("span",{staticClass:"hljs-tag"},[s._v("<"),a("span",{staticClass:"hljs-name"},[s._v("script")]),s._v(" "),a("span",{staticClass:"hljs-attr"},[s._v("scr")]),s._v("="),a("span",{staticClass:"hljs-string"},[s._v('"simpleMindMap.umd.min.js"')]),s._v(">")]),a("span",{staticClass:"hljs-tag"},[s._v(""),a("span",{staticClass:"hljs-name"},[s._v("script")]),s._v(">")]),s._v("\n")])]),a("p",[s._v("会创建一个全局变量"),a("code",[s._v("window.simpleMindMap")]),s._v("。")]),a("p",[s._v("这种方式的缺点是会包含所有的内容,包括你没有注册的插件,所以整体体积会比较大。")]),a("p",[s._v("(v0.5.4+)如果你想直接在浏览器端通过"),a("code",[s._v("ES")]),s._v("模块的方式来使用,你可以在"),a("code",[s._v("/simple-mind-map/dist/")]),s._v("目录中找到"),a("code",[s._v("simpleMindMap.esm.js")]),s._v("和"),a("code",[s._v("simpleMindMap.esm.css")]),s._v("文件。")]),a("h2",[s._v("开发")]),a("p",[s._v("如果你只是使用库的话可以不用阅读此小节。")]),a("h3",[s._v("本地开发")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("git "),a("span",{staticClass:"hljs-built_in"},[s._v("clone")]),s._v(" https://github.com/wanglin2/mind-map.git\n"),a("span",{staticClass:"hljs-built_in"},[s._v("cd")]),s._v(" mind-map\n"),a("span",{staticClass:"hljs-built_in"},[s._v("cd")]),s._v(" simple-mind-map\nnpm i\nnpm link\n"),a("span",{staticClass:"hljs-built_in"},[s._v("cd")]),s._v(" ..\n"),a("span",{staticClass:"hljs-built_in"},[s._v("cd")]),s._v(" web\nnpm i\nnpm link simple-mind-map\nnpm run serve\n")])]),a("h3",[s._v("打包库")]),a("p",[s._v("自"),a("code",[s._v("0.2.0")]),s._v("版本开始增加了对核心库"),a("code",[s._v("simple-mind-map")]),s._v("的打包,复用了示例项目"),a("code",[s._v("web")]),s._v("的打包工具。")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-built_in"},[s._v("cd")]),s._v(" web\nnpm run buildLibrary\n")])]),a("p",[a("code",[s._v("simple-mind-map")]),s._v("库的"),a("code",[s._v("package.json")]),s._v("文件提供了两个导出字段:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("{\n "),a("span",{staticClass:"hljs-attr"},[s._v('"module"')]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v('"index.js"')]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v('"main"')]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v('"./dist/simpleMindMap.umd.min.js"')]),s._v(",\n}\n")])]),a("p",[s._v("支持"),a("code",[s._v("module")]),s._v("字段的环境会以"),a("code",[s._v("index.js")]),s._v("为入口,否则会以打包后的"),a("code",[s._v("simpleMindMap.umd.min.js")]),s._v("为入口。")]),a("h3",[s._v("编译文档")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-built_in"},[s._v("cd")]),s._v(" web \nnpm run buildDoc\n")])]),a("h3",[s._v("打包demo")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-built_in"},[s._v("cd")]),s._v(" web\nnpm run build\n")])]),a("p",[s._v("会自动把"),a("code",[s._v("index.html")]),s._v("移动到根目录。")]),a("h2",[s._v("问题")]),a("h3",[s._v("1.在Vite中使用报错,提示xml-js依赖出错")]),a("p",[s._v("解决方法:使用如下引入方式:")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" MindMap "),a("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),a("span",{staticClass:"hljs-string"},[s._v('"simple-mind-map/dist/simpleMindMap.umd.min"')]),s._v("\n")])]),a("p",[a("code",[s._v("simple-mind-map")]),s._v("包提供未打包的入口字段"),a("code",[s._v("module")]),s._v(",依赖的"),a("code",[s._v("xml-js")]),s._v("包需要引入"),a("code",[s._v("node")]),s._v("环境下的包,所以在"),a("code",[s._v("Vite")]),s._v("中获取不到会报错,所以指定引入打包后的入口,相关包都已打包进产物,所以不会报错。")]),a("p",[s._v("如果需要二次开发,也就是必须要使用未打包代码的话,如果你不需要解析"),a("code",[s._v("xmind")]),s._v("文件的话,可以去除"),a("code",[s._v("xmind")]),s._v("模块,如果需要的话那么可以尝试换成其他的解析"),a("code",[s._v("xml")]),s._v("为"),a("code",[s._v("json")]),s._v("的库。")]),a("h3",[s._v("2.报错"),a("code",[s._v("Getting bbox of element \"text\" is not possible: TypeError: Cannot read properties of undefined (reading 'apply')")])]),a("p",[s._v("原因为安装的"),a("code",[s._v("@svgdotjs/svg.js")]),s._v("版本太高,手动降到"),a("code",[s._v("3.0.16")]),s._v("版本即可。")])])}],v={},i=v,l=t("2877"),e=Object(l["a"])(i,n,_,!1,null,null,null);a["default"]=e.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d0e4e1f.976b8d32.js b/tools/mind-map/dist/js/chunk-2d0e4e1f.976b8d32.js
deleted file mode 100644
index 7701cd4b..00000000
--- a/tools/mind-map/dist/js/chunk-2d0e4e1f.976b8d32.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0e4e1f"],{"91b3":function(s,a,t){"use strict";t.r(a);var e=function(){var s=this;s._self._c;return s._m(0)},n=[function(){var s=this,a=s._self._c;return a("div",[a("h1",[s._v("如何持久化数据")]),a("p",[s._v("在线"),a("code",[s._v("demo")]),s._v("的数据是存储在电脑本地的,也就是"),a("code",[s._v("localStorage")]),s._v("里,当然,你也可以存储到数据库中。")]),a("h2",[s._v("保存数据")]),a("p",[s._v("保存数据,一般有两种做法,一是让用户手动保存,二是当画布上的数据改变后自动保存,显然,第二中体验更好一点。")]),a("p",[s._v("要获取画布的数据,可以使用"),a("code",[s._v("getData")]),s._v("方法,可以传递一个参数,"),a("code",[s._v("true")]),s._v("指定返回的数据中包含配置数据,"),a("code",[s._v("false")]),s._v("指定只返回节点树数据。")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" data = mindMap.getData("),a("span",{staticClass:"hljs-literal"},[s._v("true")]),s._v(")\n")])]),a("p",[s._v("包含配置的完整数据结构:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("{\n layout,\n root,\n "),a("span",{staticClass:"hljs-attr"},[s._v("theme")]),s._v(": {\n template,\n config\n },\n view\n}\n")])]),a("p",[s._v("你可以直接把获取到的数据保存起来即可。")]),a("p",[s._v("如果要自动保存,那么肯定需要监听相关事件:")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-built_in"},[s._v("this")]),s._v(".$bus.$on("),a("span",{staticClass:"hljs-string"},[s._v("'data_change'")]),s._v(", "),a("span",{staticClass:"hljs-function"},[a("span",{staticClass:"hljs-params"},[s._v("data")]),s._v(" =>")]),s._v(" {\n "),a("span",{staticClass:"hljs-comment"},[s._v("// 节点树数据改变")]),s._v("\n "),a("span",{staticClass:"hljs-comment"},[s._v("// data即完整数据中的root部分")]),s._v("\n})\n"),a("span",{staticClass:"hljs-built_in"},[s._v("this")]),s._v(".$bus.$on("),a("span",{staticClass:"hljs-string"},[s._v("'view_data_change'")]),s._v(", "),a("span",{staticClass:"hljs-function"},[a("span",{staticClass:"hljs-params"},[s._v("data")]),s._v(" =>")]),s._v(" {\n "),a("span",{staticClass:"hljs-comment"},[s._v("// 视图数据改变")]),s._v("\n "),a("span",{staticClass:"hljs-comment"},[s._v("// data即完整数据中的view部分")]),s._v("\n})\n")])]),a("p",[s._v("主题和结构的改变一般是开发者提供一个ui界面让用户选择,所以可以自行触发保存。")]),a("h2",[s._v("回显数据")]),a("p",[s._v("当从数据库获取到了保存的数据,那么怎么渲染到画布上呢,首先可以直接在"),a("code",[s._v("new")]),s._v("一个"),a("code",[s._v("MindMap")]),s._v("实例时直接传入:")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-comment"},[s._v("// 从数据中取出各个部分")]),s._v("\n"),a("span",{staticClass:"hljs-keyword"},[s._v("let")]),s._v(" { root, layout, theme, view } = storeData\n"),a("span",{staticClass:"hljs-keyword"},[s._v("let")]),s._v(" mindMap = "),a("span",{staticClass:"hljs-keyword"},[s._v("new")]),s._v(" MindMap({\n "),a("span",{staticClass:"hljs-attr"},[s._v("el")]),s._v(": container,\n "),a("span",{staticClass:"hljs-attr"},[s._v("data")]),s._v(": root,\n "),a("span",{staticClass:"hljs-attr"},[s._v("layout")]),s._v(": layout,\n "),a("span",{staticClass:"hljs-attr"},[s._v("theme")]),s._v(": theme.template,\n "),a("span",{staticClass:"hljs-attr"},[s._v("themeConfig")]),s._v(": theme.config,\n "),a("span",{staticClass:"hljs-attr"},[s._v("viewData")]),s._v(": view,\n "),a("span",{staticClass:"hljs-comment"},[s._v("// ...")]),s._v("\n})\n")])]),a("p",[s._v("其次如果是包含配置的完整数据也可以调用"),a("code",[s._v("setFullData")]),s._v("方法:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("mindMap.setFullData(data)\n")])]),a("p",[s._v("如果是纯节点数据可以调用"),a("code",[s._v("setData")]),s._v("方法:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("mindMap.setData(data)\n")])]),a("p",[s._v("修改结构可以调用"),a("code",[s._v("setLayout")]),s._v("方法:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("mindMap.setLayout(layout)\n")])]),a("p",[s._v("设置主题可以调用"),a("code",[s._v("setTheme")]),s._v("方法:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("mindMap.setTheme(theme)\n")])]),a("p",[s._v("设置主题配置可以调用"),a("code",[s._v("setThemeConfig")]),s._v("方法:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("mindMap.setThemeConfig(themeConfig)\n")])]),a("p",[s._v("设置视图数据可以调用"),a("code",[s._v("view.setTransformData")]),s._v("方法:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("mindMap.view.setTransformData(view)\n")])]),a("h3",[s._v("完整示例")]),a("iframe",{staticStyle:{width:"100%",height:"455px",border:"none"},attrs:{src:"https://wanglin2.github.io/playground/#eNrFVc1u00AQfpXRIpQEpXYqcQpuVaAggdSCypHtYWNvkoX1ruVdN42qXHpEBU7lzI1bxQEJtc9D0z4Gs/6Lm0QIiQOWLO3OzPd945md9Ql5nCTeUcZJnwQmTEViwXCbJdtUiTjRqYUTSPmwC1rt6UxZHnXBjJmUenLAhzCDYapjaCFDq0bsCRXtsaRwUWLQLPlGjNaNmCWUUAVAleQWnM1FboHKpKSKKt+H208/rz9/ub44m5//mJ9/n3+8oCrUylgYcfsc43aZZQhhZqpCaHdgaxtOHCeTPLXtl29e7XvGpkKNxHDaLiU8xDpc26YZ73Q6VM3uyN1+OL05vVyR+yepIZOmoVVXsN0galSAT6rKtXMXAJd9iHSYxVxZx/pMcrd8Mn0RtVsl8qlWlgnF01anW6Ai1O4X7O6hxBkoaZgKs+XH1pkpmX+9LL6/6I17ZiWZCwzHQkYpVy747YJjiW6tyrLSr6uzm6tvy2J3BdeIHi58zbj/lEG1LG0VTihhD7S2+zrir7URVmiFyJbkQ9vqQivE1mGbDvPwWecRHgs8GoFfjB0OHG4sx1lhluMOIIjEEYSSGbNFSdnuXR5rSnJ3GSCihbc+DBgS+OhtBlZMVms5YC6k+pBgkFmrFeyEUoTvMaQxaBi2OpCBXyD+yHAH3ZyvJfQi0WoV+I064NbYqSxKslNeMZR4fnGvlCPjcRN7oTGUYF3d9QLgNUpWnYmJiOy4D5u93v08DiCpO5VyVBRHPHfkTXbvveXSVlQLIBsYLTNbAAFcv/vQK3dWJ4vNqvyYi9EYwx/2eslxpbxe90GlHLN0JFC3Yk1YFOEVVBnq1L2y03+Z8WaVQZl0vUdCPKV5D0iXFB1wN7n3zmiFP46cnpYO7EA9gZTgf6EYO8/HpZfi/Sdi7pq1MUj1xPAUSSgpJ2jNv6LArrbaocrcZmT2G71jRY0="}})])}],v={},l=v,i=t("2877"),_=Object(i["a"])(l,e,n,!1,null,null,null);a["default"]=_.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d0e5089.2caabcf3.js b/tools/mind-map/dist/js/chunk-2d0e5089.2caabcf3.js
deleted file mode 100644
index 32d24f7a..00000000
--- a/tools/mind-map/dist/js/chunk-2d0e5089.2caabcf3.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0e5089"],{9381:function(e,a,n){"use strict";n.r(a);var o=function(){var e=this;e._self._c;return e._m(0)},d=[function(){var e=this,a=e._self._c;return a("div",[a("h1",[e._v("command instance")]),a("p",[e._v("The "),a("code",[e._v("command")]),e._v(" instance is responsible for adding and executing commands. It includes many built-in commands and can also be added manually. A command refers to an operation that needs to add a copy to the history stack data. The "),a("code",[e._v("mindMap.command")]),e._v(' instance can be obtained through this."')]),a("h2",[e._v("Methods")]),a("h3",[e._v("add(name, fn)")]),a("p",[e._v("Add a command.")]),a("p",[a("code",[e._v("name")]),e._v(": Command name")]),a("p",[a("code",[e._v("fn")]),e._v(": Method to be executed by the command")]),a("h3",[e._v("remove(name, fn)")]),a("p",[e._v("Remove a command.")]),a("p",[a("code",[e._v("name")]),e._v(": Name of the command to be removed")]),a("p",[a("code",[e._v("fn")]),e._v(": Method to be removed, if not provided all methods for the command will be removed")]),a("h3",[e._v("getCopyData()")]),a("p",[e._v("Get a copy of the rendering tree data")]),a("h3",[e._v("clearHistory()")]),a("p",[e._v("Clear the history stack data")])])}],t={},c=t,m=n("2877"),v=Object(m["a"])(c,o,d,!1,null,null,null);a["default"]=v.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d0e524c.e88a9cb2.js b/tools/mind-map/dist/js/chunk-2d0e524c.e88a9cb2.js
deleted file mode 100644
index d55ea6c1..00000000
--- a/tools/mind-map/dist/js/chunk-2d0e524c.e88a9cb2.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0e524c"],{"92da":function(n,s,t){"use strict";t.r(s);var _=function(){var n=this;n._self._c;return n._m(0)},e=[function(){var n=this,s=n._self._c;return s("div",[s("h1",[n._v("客户端")]),s("p",[n._v("本项目也提供了客户端版本,使用"),s("a",{attrs:{href:"https://www.electronjs.org/"}},[n._v("Electron")]),n._v("开发。支持"),s("code",[n._v("Windows")]),n._v("、"),s("code",[n._v("Mac")]),n._v("及"),s("code",[n._v("Linux")]),n._v("。")]),s("p",[n._v("目前功能比较简单:")]),s("p",[n._v("1.支持新建、打开文件进行编辑;")]),s("p",[n._v("2.支持查看最近编辑文件列表;")]),s("p",[n._v("3.支持文件的复制、删除、重命名;")]),s("h2",[n._v("下载")]),s("p",[n._v("你可以直接下载对应的客户端安装使用,提供了两个下载地址:")]),s("p",[n._v("Github:"),s("a",{attrs:{href:"https://github.com/wanglin2/mind-map/releases"}},[n._v("releases")]),n._v("。")]),s("p",[n._v("百度云盘:"),s("a",{attrs:{href:"https://pan.baidu.com/s/1huasEbKsGNH2Af68dvWiOg?pwd=3bp3"}},[n._v("地址")]),n._v("。")]),s("h2",[n._v("开发")]),s("p",[n._v("如果有需要,你也可以进行二次开发。")]),s("h3",[n._v("clone")]),s("pre",{staticClass:"hljs"},[s("code",[n._v("git "),s("span",{staticClass:"hljs-built_in"},[n._v("clone")]),n._v(" https://github.com/wanglin2/mind-map.git\n"),s("span",{staticClass:"hljs-built_in"},[n._v("cd")]),n._v(" mind-map\ngit checkout electron\n")])]),s("h3",[n._v("启动服务")]),s("p",[n._v("在项目根目录下执行:")]),s("pre",{staticClass:"hljs"},[s("code",[s("span",{staticClass:"hljs-built_in"},[n._v("cd")]),n._v(" simple-mind-map\nnpm i\nnpm link\n"),s("span",{staticClass:"hljs-built_in"},[n._v("cd")]),n._v(" ..\n"),s("span",{staticClass:"hljs-built_in"},[n._v("cd")]),n._v(" web\nnpm i\nnpm link simple-mind-map\nnpm run electron:serve\n")])]),s("h3",[n._v("打包客户端")]),s("p",[n._v("你至少需要两台电脑,一台"),s("code",[n._v("Windows")]),n._v("和一台"),s("code",[n._v("Mac")]),n._v("。")]),s("p",[n._v("打包"),s("code",[n._v("Windows")]),n._v("应用:")]),s("pre",{staticClass:"hljs"},[s("code",[n._v("npm run electron:build-win\n")])]),s("p",[n._v("打包"),s("code",[n._v("Mac")]),n._v("应用:")]),s("pre",{staticClass:"hljs"},[s("code",[n._v("npm run electron:build-mac\n")])]),s("p",[n._v("打包"),s("code",[n._v("Linux")]),n._v("应用:")]),s("pre",{staticClass:"hljs"},[s("code",[n._v("npm run electron:build-linux\n")])]),s("p",[n._v("打包全部应用:")]),s("pre",{staticClass:"hljs"},[s("code",[n._v("npm run electron:build-all\n")])]),s("p",[n._v("根据你的电脑系统自动打包:")]),s("pre",{staticClass:"hljs"},[s("code",[n._v("npm run electron:build\n")])])])}],v={},l=v,i=t("2877"),c=Object(i["a"])(l,_,e,!1,null,null,null);s["default"]=c.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d0e9726.128b8ec1.js b/tools/mind-map/dist/js/chunk-2d0e9726.128b8ec1.js
deleted file mode 100644
index ece2f7a1..00000000
--- a/tools/mind-map/dist/js/chunk-2d0e9726.128b8ec1.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0e9726"],{"8e25":function(s,a,t){"use strict";t.r(a);var n=function(){var s=this;s._self._c;return s._m(0)},l=[function(){var s=this,a=s._self._c;return a("div",[a("h1",[s._v("显示水印")]),a("blockquote",[a("p",[s._v("要使用水印需要注册水印插件")])]),a("p",[a("code",[s._v("simple-mind-map")]),s._v("提供了水印的插件,使用非常简单,首先可以在实例化"),a("code",[s._v("simple-mind-map")]),s._v("时提供水印的选项配置来直接显示水印:")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("new")]),s._v(" MindMap({\n "),a("span",{staticClass:"hljs-comment"},[s._v("// ...")]),s._v("\n "),a("span",{staticClass:"hljs-attr"},[s._v("watermarkConfig")]),s._v(": {\n "),a("span",{staticClass:"hljs-attr"},[s._v("text")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'水印文字'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("lineSpacing")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("100")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("textSpacing")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("100")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("angle")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("30")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("textStyle")]),s._v(": {\n "),a("span",{staticClass:"hljs-attr"},[s._v("color")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'#999'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("opacity")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("0.5")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("fontSize")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("14")]),s._v("\n }\n }\n})\n")])]),a("p",[s._v("详细字段含义可以阅读【API】-【构造函数】-【实例化选项】小节。")]),a("p",[s._v("此外也可以动态更新水印,"),a("code",[s._v("watermarkConfig")]),s._v("的所有配置都可以修改,如果不想再显示水印将"),a("code",[s._v("text")]),s._v("传入空字符串即可。")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("mindMap.watermark.updateWatermark({\n "),a("span",{staticClass:"hljs-attr"},[s._v("text")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'街角小林'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("lineSpacing")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("50")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("textSpacing")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("50")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("angle")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("45")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("textStyle")]),s._v(": {\n "),a("span",{staticClass:"hljs-attr"},[s._v("color")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'#73D8FF'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("opacity")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("1")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("fontSize")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("12")]),s._v("\n }\n})\n")])]),a("h2",[s._v("完整示例")]),a("iframe",{staticStyle:{width:"100%",height:"455px",border:"none"},attrs:{src:"https://wanglin2.github.io/playground/#eNrFVdtqG0cYfpVhQ1m5SLty49BalUPapoFCXUpy0YuMKavdkTTJ7Mx2Z9ayagQlFHoMPUEMDZTmKrlIwBcmEIeQl7FkP0b+2ZlZrQ4XuYtg7Zn/9P3nOfQ+ybJgvyBex+vKOKeZQpKoIruKOU0zkSt0iHLSbyLBd0XBFUmaSA4jxsToJumjCernIkU+WPArjV3Kk90oMyzsSSAz0kqB2kqjDHuYI4Q5IwppmpbcQbxgzNDDEE1f/TP95f7s9Q+zk5fn//548eu983svpj8fXTx6gnksuFQoihXdJ1+JhEjQnnvUuL23gXlpZfbwZPbgeHZ8Mr1/7NSKLIkU+Qa+PI3yu6Da2EA7V9GhxrbeBCPHDpbEG6UYQoocqA7yLx4dXTz+e3r8x+y/I79pWIxyciuLYsoHHXSlbalaYZUa8QEjHbR1pS6lxppmgfQvFkzkgHbpw8vXP7pxwwHpn9Am1biDNmvEvuDqFv0ejGx+YKgTSIiaQFr0gVeFbKyGrgtBRq6ALlzCOigRcZESroIBUZ8zoo+fjr9IGr7V/AxQI4g99zesL5C5qBYI9jQBewuxabKOWpOxN/v/hSm1aZHS9Sow7MVDypKccC18e25jydxalGWks9Pfz08fL4MtAq4B3Zvz6nLvyAN3tDSnRzlVN4VQeja+FpIqKjho+oz0ld9EfgylgzLtWfGq2aGCfQrtWXPb9rkZodmDn6bPqj5f6fXNtmvrlYZfZNmuv7wivtL5C92/vb1dx15o/3bgRmjNEGytpKz8N9n42OwbhGBXnD/8a/rnU1MOs3fOTn87e/m8vhYEb/gckvqt2T2Qy4a+NpH++yWVaj5OEOV8PwX7ESuIHi0rZ+BhHOHrhmbrwr6FiyKwKqEgcEOom9B9FLNIyh3sWSeuk1Rgr2RbAZrMudUQgkg3BG5d0FlSQrBepEUME6tur1BKcHQtZjS+CyJLaw9E67u0Gxp5Z7wCcqduWIsDrlJXtpS4Zl8I7AWheRbsqgmITINYSuxVVQlqIbusjmiihmVDvVfKIZRVHZ4TQIScl4yyxPq7tJwaZ2quGPWkYIUyitDVMCfQUvamRDa/rMIPCR0MQXyr3c4OHPJ63PcdMqR0QAHXWc2iJCnnxBAq1wNbqbf0eNN5YJ2u7mAQuqysgdf0TAX0QxzckYLDu1+ax5YBFahmEHvwrJt1FYRwDHJ4N2hKdLFavVyMJMnBCPbs8K156rXuUKlMdsKQHXzH5VgGQspWzFs9Qu9A2EHE6LjgsQxikYbQokTJNb2hYWwwE2/yBqzl3vI="}})])}],v={},r=v,i=t("2877"),p=Object(i["a"])(r,n,l,!1,null,null,null);a["default"]=p.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d0e9742.98466fae.js b/tools/mind-map/dist/js/chunk-2d0e9742.98466fae.js
deleted file mode 100644
index ce2c0439..00000000
--- a/tools/mind-map/dist/js/chunk-2d0e9742.98466fae.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0e9742"],{"8e32":function(e,t,o){"use strict";o.r(t);var n=function(){var e=this;e._self._c;return e._m(0)},d=[function(){var e=this,t=e._self._c;return t("div",[t("h1",[e._v("Render instance")]),t("p",[e._v("The "),t("code",[e._v("render")]),e._v(" instance is responsible for the entire rendering process and can be accessed through "),t("code",[e._v("mindMap.renderer")]),e._v(".")]),t("h2",[e._v("Properties")]),t("h3",[e._v("activeNodeList")]),t("p",[e._v("Gets the current list of active nodes")]),t("h3",[e._v("root")]),t("p",[e._v("Gets the root node of the node tree")]),t("h2",[e._v("Methods")]),t("h3",[e._v("clearActive()")]),t("p",[e._v("Clears the currently active node")]),t("h3",[e._v("clearAllActive()")]),t("p",[e._v("Clears all currently active nodes and triggers the "),t("code",[e._v("node_active")]),e._v(" event")]),t("h3",[e._v("startTextEdit()")]),t("blockquote",[t("p",[e._v("v0.1.6+")])]),t("p",[e._v("If there is a text editing requirement, this method can be called to disable the enter key and delete key related shortcuts to prevent conflicts")]),t("h3",[e._v("endTextEdit()")]),t("blockquote",[t("p",[e._v("v0.1.6+")])]),t("p",[e._v("End text editing, restore enter key and delete key related shortcuts")]),t("h3",[e._v("addActiveNode(node)")]),t("p",[e._v("Add a node to the active list")]),t("h3",[e._v("removeActiveNode(node)")]),t("p",[e._v("Remove a node from the active list")]),t("h3",[e._v("findActiveNodeIndex(node)")]),t("p",[e._v("Search for the index of a node in the active list")]),t("h3",[e._v("getNodeIndex(node)")]),t("p",[e._v("Get the position index of a node among its siblings")]),t("h3",[e._v("removeOneNode(node)")]),t("p",[e._v("Delete a specific node")]),t("h3",[e._v("copyNode()")]),t("p",[e._v("Copy a node, the active node is the node to be operated on, if there are multiple active nodes, only the first node will be operated on")]),t("h3",[e._v("setNodeDataRender(node, data)")]),t("p",[e._v("Set node "),t("code",[e._v("data")]),e._v(", i.e. the data in the data field, and will determine whether the node needs to be re-rendered based on whether the node size has changed, "),t("code",[e._v("data")]),e._v(" is an object, e.g. "),t("code",[e._v("{text: 'I am new text'}")])]),t("h3",[e._v("moveNodeTo(node, toNode)")]),t("blockquote",[t("p",[e._v("v0.1.5+")])]),t("p",[e._v("Move a node as a child of another node")]),t("h3",[e._v("insertBefore(node, exist)")]),t("blockquote",[t("p",[e._v("v0.1.5+")])]),t("p",[e._v("Move a node in front of another node")]),t("h3",[e._v("insertAfter(node, exist)")]),t("blockquote",[t("p",[e._v("v0.1.5+")])]),t("p",[e._v("Move a node behind another node")]),t("h3",[e._v("moveNodeToCenter(node)")]),t("blockquote",[t("p",[e._v("v0.2.17+")])]),t("p",[e._v("Move a node to the center of the canvas.")]),t("p",[e._v("Currently, if there is zoom, returning to the center will reset the zoom.")])])}],v={},r=v,i=o("2877"),a=Object(i["a"])(r,n,d,!1,null,null,null);t["default"]=a.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d0e9802.911b1278.js b/tools/mind-map/dist/js/chunk-2d0e9802.911b1278.js
deleted file mode 100644
index db99a7ed..00000000
--- a/tools/mind-map/dist/js/chunk-2d0e9802.911b1278.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0e9802"],{"8e98":function(s,t,a){"use strict";a.r(t);var n=function(){var s=this;s._self._c;return s._m(0)},i=[function(){var s=this,t=s._self._c;return t("div",[t("h1",[s._v("基本使用")]),t("blockquote",[t("p",[s._v("重要说明:")]),t("p",[s._v("1.本教程中的在线编辑器中使用的是完整版的simple-mind-map,即包含所有插件,如果你是通过"),t("code",[s._v("npm")]),s._v("方式使用的话,需要自己手动注册相关插件。")]),t("p",[s._v("2.本教程的代码示例基于Vue3.x,但是您不必担心,因为simple-mind-map本身是框架无关的,所以即使某些Vue3的语法您看不懂也不会影响对于逻辑的理解。")])]),t("p",[t("code",[s._v("simple-mind-map")]),s._v("的使用非常简单,提供一个宽高不为0的元素,然后创建一个实例即可:")]),t("iframe",{staticStyle:{width:"100%",height:"455px",border:"none"},attrs:{src:"https://wanglin2.github.io/playground/#eNptUktu2zAQvcqARWG7sCUV6EqVjX7QRRc+QacLVZzYLKQRQdJxAkObLHuKXiMXanOMDEXZCJIIECS+mff4+Dgn9dna7PpAqlSVb5yxATyFg90gm872LsAJHF0toedtf+BAGga4cn0HM2HNLl1bw3pb21RC5QVuadUJuupqiwoZ+SIxny9gvYETMkDTsw8QGyN9DUzHs9h8bACgtgTdN4eOOGQ7Ct9air9fbr/r+Wxifu051IbJzRbLxNJ1qMu0R3xQRQDVEyjBgW5ChFH9+3v/8Ofu/919tJvKwyQWG5u9abUjjs0/fiZ8iJ9h8RF5WCBXeYpQwpNFIMmgDiQrgEqbazB6jeq5YVSbKpeqtFX5E44sfbhtE/3TFDOqLE/ZThll5Lus8R6VeBCX8r55vsP5xEejw76E90XxdmwG2JPZ7UMJH4rC3oyYHOh1jXdnla52O8MlFJOGrbU2vDsDIiAxjMbVUiXbcQSy375nmbJRBaeC2L7cByoZqHQRWS6/mZNZMR3FE65+uf7oyYkIqulKXhmyxH2ZT2RN3gY1PAJQKfo9"}}),t("p",[s._v("注意,我们还给容器元素设置了样式:")]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-selector-id"},[s._v("#mindMapContainer")]),s._v(" * {\n "),t("span",{staticClass:"hljs-attribute"},[s._v("margin")]),s._v(": "),t("span",{staticClass:"hljs-number"},[s._v("0")]),s._v(";\n "),t("span",{staticClass:"hljs-attribute"},[s._v("padding")]),s._v(": "),t("span",{staticClass:"hljs-number"},[s._v("0")]),s._v(";\n}\n")])]),t("p",[s._v("这是为了避免节点内的文字因为默认样式而出现偏移。")]),t("p",[s._v("一个节点的基本数据结构如下所示:")]),t("pre",{staticClass:"hljs"},[t("code",[s._v("{\n "),t("span",{staticClass:"hljs-attr"},[s._v("data")]),s._v(": {\n "),t("span",{staticClass:"hljs-comment"},[s._v("// 节点文本")]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("text")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'根节点'")]),s._v(",\n "),t("span",{staticClass:"hljs-comment"},[s._v("// 图片")]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("image")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'xxx.jpg'")]),s._v(",\n "),t("span",{staticClass:"hljs-attr"},[s._v("imageTitle")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'图片名称'")]),s._v(",\n "),t("span",{staticClass:"hljs-attr"},[s._v("imageSize")]),s._v(": {\n "),t("span",{staticClass:"hljs-attr"},[s._v("width")]),s._v(": "),t("span",{staticClass:"hljs-number"},[s._v("1152")]),s._v(",\n "),t("span",{staticClass:"hljs-attr"},[s._v("height")]),s._v(": "),t("span",{staticClass:"hljs-number"},[s._v("1152")]),s._v("\n },\n "),t("span",{staticClass:"hljs-comment"},[s._v("// 图标")]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("icon")]),s._v(": ["),t("span",{staticClass:"hljs-string"},[s._v("'priority_1'")]),s._v("],\n "),t("span",{staticClass:"hljs-comment"},[s._v("// 标签")]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("tag")]),s._v(": ["),t("span",{staticClass:"hljs-string"},[s._v("'标签1'")]),s._v(", "),t("span",{staticClass:"hljs-string"},[s._v("'标签2'")]),s._v("],\n "),t("span",{staticClass:"hljs-comment"},[s._v("// 链接")]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("hyperlink")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'http://lxqnsys.com/'")]),s._v(",\n "),t("span",{staticClass:"hljs-attr"},[s._v("hyperlinkTitle")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'理想青年实验室'")]),s._v(",\n "),t("span",{staticClass:"hljs-comment"},[s._v("// 备注内容")]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("note")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'理想青年实验室\\n一个有意思的角落'")]),s._v(",\n "),t("span",{staticClass:"hljs-comment"},[s._v("// 概要")]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("generalization")]),s._v(": {\n "),t("span",{staticClass:"hljs-attr"},[s._v("text")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'概要的内容'")]),s._v("\n },\n "),t("span",{staticClass:"hljs-comment"},[s._v("// 节点是否展开")]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("expand")]),s._v(": "),t("span",{staticClass:"hljs-literal"},[s._v("true")]),s._v(",\n },\n "),t("span",{staticClass:"hljs-attr"},[s._v("children")]),s._v(": []"),t("span",{staticClass:"hljs-comment"},[s._v("// 子节点")]),s._v("\n}\n")])]),t("p",[t("code",[s._v("icon")]),s._v("可以使用内置的图标,完整图标可以在"),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/svg/icons.js"}},[s._v("icons.js")]),s._v("文件中查看。也可以扩展图标,参考"),t("a",{attrs:{href:"https://wanglin2.github.io/mind-map/#/doc/zh/course19/%E6%89%A9%E5%B1%95%E5%9B%BE%E6%A0%87"}},[s._v("扩展图标")]),s._v("。")]),t("p",[s._v("创建实例时还支持传递其他很多选项参数,完整选项列表可以在"),t("a",{attrs:{href:"https://wanglin2.github.io/mind-map/#/doc/zh/constructor/%E5%AE%9E%E4%BE%8B%E5%8C%96%E9%80%89%E9%A1%B9"}},[s._v("实例化选项")]),s._v("查看。")]),t("p",[s._v("这样得到的思维导图可以通过鼠标和快捷键进行操作,比如单击某个节点可以激活它,双击某个节点可以编辑节点文本,按下"),t("code",[s._v("Tab")]),s._v("键会给当前激活的节点添加一个子节点,按下"),t("code",[s._v("Enter")]),s._v("键会给当前激活的节点添加一个兄弟节点等等,完整的快捷键列表可以参考"),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/web/src/config/zh.js#L246"}},[s._v("快捷键列表")]),s._v("。")]),t("p",[s._v("当然有些功能还是需要UI界面的,比如图标列表、编辑超链接等等,需要注意的是"),t("code",[s._v("simple-mind-map")]),s._v("库并不包含UI界面,所以需要你自己开发,然后通过"),t("code",[s._v("simple-mind-map")]),s._v("提供的相关API来操作,本教程的其他章节会向你介绍如何使用。")])])}],l={},v=l,_=a("2877"),p=Object(_["a"])(v,n,i,!1,null,null,null);t["default"]=p.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d0f026c.f437d660.js b/tools/mind-map/dist/js/chunk-2d0f026c.f437d660.js
deleted file mode 100644
index 80add43f..00000000
--- a/tools/mind-map/dist/js/chunk-2d0f026c.f437d660.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0f026c"],{"9ac1":function(v,_,p){"use strict";p.r(_);var h=function(){var v=this;v._self._c;return v._m(0)},s=[function(){var v=this,_=v._self._c;return _("div",[_("h1",[v._v("Changelog")]),_("h2",[v._v("0.6.0")]),_("p",[v._v("破坏性更新:调整了simple-mind-map源码的目录结构,主要影响:1.插件的引入路径需要修改。2.constant文件路径需要修改。")]),_("p",[v._v("新增:1.支持一键缩放至适应画布功能。 2.按住Ctrl键多选功能可通过配置按需开启。 3.支持设置为左键多选节点,右键拖动画布。 4.支持控制节点是否允许编辑。 5.新增销毁思维导图的方法。 6.新增触摸事件支持插件。")]),_("p",[v._v("修复:1.修复按住ctrl键多选节点时不会触发节点的click事件的问题。 2.修复清空一个节点后再输入文字时节点样式丢失的问题。")]),_("h2",[v._v("0.5.11")]),_("p",[v._v("新增:支持关联性文本编辑。")]),_("p",[v._v("优化:优化主题配置更新,改变不涉及节点大小的配置不触发节点重新计算。")]),_("h2",[v._v("0.5.10")]),_("p",[v._v("新增:使用LRU缓存算法优化节点复用逻辑。")]),_("h2",[v._v("0.5.10-fix.1")]),_("p",[v._v("修复:修复导入出错的问题。")]),_("h2",[v._v("0.5.10-fix.2")]),_("p",[v._v("修复:修复富文本模式下,切换主题、导入数据后没有触发数据改变的问题。")]),_("p",[v._v("新增:新增三种主题。")]),_("h2",[v._v("0.5.9")]),_("p",[v._v("修改:统一导出方法的格式,使用"),_("code",[v._v("FileReader")]),v._v("代替"),_("code",[v._v("URL.createObjectURL")]),v._v("转换"),_("code",[v._v("blob")]),v._v("数据。")]),_("h2",[v._v("0.5.8")]),_("p",[v._v("优化:1.节点位置没有变化不触发位置设置。 2.展开收起状态没有变化不触发按钮更新。")]),_("p",[v._v("新增:1.默认改为鼠标移上节点才显示展开收起按钮。 2.支持扩展节点可插入的图标列表。")]),_("h2",[v._v("0.5.7")]),_("p",[v._v("破坏性更新:富文本模式下导出png改为使用html2canvas转换整个svg,大幅提高导出速度,不过html2canvas存在一个bug,foreignObject元素中的dom节点内联的文字颜色无法识别,所以导出节点的文字颜色是固定的,不过相对于之前的导出基本不可用状态,目前至少能快速顺利的导出。")]),_("p",[v._v("优化:优化富文本节点编辑体验。")]),_("p",[v._v("新增:富文本模式下,导入数据、初始化数据、切换主题场景节点样式支持跟随主题变化。")]),_("h2",[v._v("0.5.6")]),_("p",[v._v("修复:1.修复短时间快速多次渲染时节点位置错乱的问题。 2.修复节点正在编辑中时拖动画布导致编辑框和节点分离的问题。")]),_("p",[v._v("新增:1.添加最大历史记录数限制。")]),_("h2",[v._v("0.5.5")]),_("p",[v._v("新增:1.支持配置导出为png、svg、pdf时的内边距。 2.支持配置节点文本编辑框、节点备注浮层元素的z-index。 3.支持点击画布外的区域结束节点编辑状态。")]),_("h2",[v._v("0.5.5-fix.1")]),_("p",[v._v("修复:1.修复节点在画布外编辑时编辑框也在画布外的问题。 2.修改结构后复位变换,防止存在缩放时切换结构后第一次拖动时会发生位置突变的问题。")]),_("p",[v._v("优化:1.节点多选时只要节点和选区存在交叉即认为被选中。")]),_("h2",[v._v("0.5.5-fix.2")]),_("p",[v._v("修复:1.修复小地图报错。")]),_("h2",[v._v("0.5.4")]),_("p",[v._v("新增:1.添加新主题。 2.新增时间轴和鱼骨结构。")]),_("p",[v._v("修复:1.修复节点右键和画布右键的冲突问题。 2.修复组织结构图、目录组织图等节点拖拽时存在线段未隐藏的bug。")]),_("p",[v._v("优化:1.优化组织结构图布局。2.优化目录组织图布局。")]),_("h2",[v._v("0.5.4-fix.1")]),_("p",[v._v("优化:1.优化鱼骨图布局。")]),_("h2",[v._v("0.5.3")]),_("p",[v._v("修复:1.修复富文本模式下,如果选择了多个节点时设置文本样式,会将所有多选节点的文本改成最后一个多选节点的文本的问题。")]),_("p",[v._v("新增:1.支持设置初始中心节点的位置。")]),_("h3",[v._v("0.5.3-fix.1")]),_("p",[v._v("修复:1.修复设置初始中心节点的位置不生效的问题。")]),_("h3",[v._v("0.5.3-fix.2")]),_("p",[v._v("修复:1.修复导出为图片时,节点中的图片显示不出来的问题。")]),_("h2",[v._v("0.5.2")]),_("p",[v._v("修复:1.导出的"),_("code",[v._v("json")]),v._v("数据中去除"),_("code",[v._v("uid")]),v._v(";2.重新渲染时清空节点缓存池。")]),_("h2",[v._v("0.5.1")]),_("p",[v._v("优化:1.只有当鼠标在画布内才响应快捷键事件。")]),_("p",[v._v("修复:1.修复快速操作时节点位置不正确的问题。")]),_("h2",[v._v("0.5.0")]),_("p",[v._v("这个版本主要是代码层面的改动和优化,核心是为了提升渲染性能,减少卡顿问题。")]),_("p",[v._v("新增:1.支持自定义展开收起节点图标和颜色;")]),_("p",[v._v("优化:1.优化渲染逻辑,设置主题、前进回退等操作不再全量渲染;")]),_("pre",[_("code",[v._v(" 2.优化节点拖拽逻辑,修复无法拖动到两个节点之间的问题;\n\n 3.收起全部节点操作增加回到中心点的逻辑;\n\n 4.修复短时间多次触发渲染造成节点乱飞和错乱的问题;\n\n 5.优化节点编辑的体验;\n")])]),_("p",[v._v("修复:1.修复setData方法不触发历史记录的问题;")]),_("p",[v._v("修改:从0.5.0版本开始,考虑性能问题,节点激活状态只能修改形状相关的样式:")]),_("pre",{staticClass:"hljs"},[_("code",[v._v("[\n "),_("span",{staticClass:"hljs-string"},[v._v("'fillColor'")]),v._v(",\n "),_("span",{staticClass:"hljs-string"},[v._v("'borderColor'")]),v._v(",\n "),_("span",{staticClass:"hljs-string"},[v._v("'borderWidth'")]),v._v(",\n "),_("span",{staticClass:"hljs-string"},[v._v("'borderDasharray'")]),v._v(",\n "),_("span",{staticClass:"hljs-string"},[v._v("'borderRadius'")]),v._v("\n]\n")])]),_("h2",[v._v("0.4.7")]),_("p",[v._v("优化:1.富文本编辑时初始聚焦时不再默认全选;2.富文本编辑时使用节点填充色作为背景色,避免节点颜色为白色时看不见。 3.节点激活状态切换不再触发历史记录。 4.短时间多次触发历史记录,只会添加最后一次的数据。 5.优化历史记录添加,当有回退时,再次添加新记录时删除当前指针后面的历史数据。")]),_("p",[v._v("新增:1.支持导入和导出Markdown格式文件。 2.支持配置插入节点时的初始文字。 3.扩展插入节点和删除节点的命令,支持指定节点。")]),_("h2",[v._v("0.4.6")]),_("p",[v._v("新增:1.关联线支持调整控制点。")]),_("p",[v._v("优化:1.添加历史数据时过滤和上一次相比没有改变的数据。")]),_("p",[v._v("修复:1.修复节点编辑时方向键和方向键导航功能的冲突问题。 2.修复拖拽移动节点时节点id的丢失问题,这会导致关联线丢失。")]),_("h2",[v._v("0.4.5")]),_("p",[v._v("新增:1.支持关联线。 2.按住根节点也可以拖动画布。3.按住ctrl键可以调整多选节点。")]),_("h2",[v._v("0.4.4")]),_("p",[v._v("新增:支持响应鼠标的横向滚动。")]),_("h2",[v._v("0.4.3")]),_("p",[v._v("修复:前进回退后没有触发"),_("code",[v._v("data_change")]),v._v("事件的问题。")]),_("p",[v._v("新增:支持自定义鼠标滚轮事件;鼠标滚轮调整为支持缩放视图和上下移动视图。")]),_("h2",[v._v("0.4.2")]),_("p",[v._v("新增:"),_("code",[v._v("Node")]),v._v("类的"),_("code",[v._v("setText")]),v._v("方法增加第二个参数,以支持设置富文本内容。")]),_("h2",[v._v("0.4.1")]),_("p",[v._v("新增:1.新增抛出节点鼠标移入和移除事件;2.节点富文本支持设置背景颜色;3.节点富文本支持清除样式。")]),_("p",[v._v("修复:1.Mac系统触控板缩放相反的问题;2.设备window.devicePixelRatio不为1时,当存在富文本节点时导出的图片中富文本节点尺寸会变大的问题。")]),_("h2",[v._v("0.4.0")]),_("p",[v._v("新增:节点支持富文本编辑。")]),_("h2",[v._v("0.3.4")]),_("p",[v._v("新增:节点文本增加自动换行功能。")]),_("p",[v._v("修复:1.修复批量删除的节点中如果存在根节点会出现删除异常的问题。2.修复底边风格的情况下,节点高度过高会和其他节点重叠的问题。")]),_("h2",[v._v("0.3.3")]),_("p",[v._v("修复:根节点文字无法换行的问题。")]),_("h2",[v._v("0.3.2")]),_("p",[v._v("修复:1.修复二级节点拖拽到其他节点或其他节点拖拽到二级节点时节点样式没有更新的问题;2.修复当思维导图实际内容大于屏幕宽高时,导出的时候超出的部分没有绘制水印的问题。")]),_("h2",[v._v("0.3.1")]),_("p",[v._v("修复:1.删除背景图片不生效的问题;2.节点拖拽到根节点时连接线跑到根节点上方的问题。")]),_("p",[v._v("新增:背景图片展示增加位置和大小设置。导出的图片也同步支持该设置。")]),_("h2",[v._v("0.3.0")]),_("p",[v._v("升级为插件化架构,将一些非核心功能抽离出来作为插件,按需注册,减小整体体积。")]),_("h2",[v._v("0.2.24")]),_("p",[v._v("新增:节点自由拖拽改为可配置,默认为"),_("code",[v._v("false")]),v._v("不开启;支持添加水印。")]),_("h2",[v._v("0.2.23")]),_("p",[v._v("新增:支持注册新主题。")]),_("h2",[v._v("0.2.22")]),_("p",[v._v("优化:取消内置"),_("code",[v._v("simple-mind-map")]),v._v("包的主题和结构图片,改为由使用者自行维护,原有图片可在"),_("code",[v._v("web/assets/img/")]),v._v("目录找到。")]),_("h2",[v._v("0.2.21")]),_("p",[v._v("新增:支持节点横线风格。")]),_("h2",[v._v("0.2.20")]),_("p",[v._v("修复:画布距窗口左上角不为0时节点拖拽出现偏移的问题。")]),_("h2",[v._v("0.2.19")]),_("p",[v._v("修复:没有激活节点时随便按什么键都会触发自动聚焦的问题。")]),_("h2",[v._v("0.2.18")]),_("p",[v._v("优化:键盘导航寻找焦点的算法,支持简单算法、区域算法、阴影算法。")]),_("h2",[v._v("0.2.17")]),_("p",[v._v("新增:键盘导航,即通过方向键来切换激活的节点;支持在大纲直接编辑节点文本内容。")]),_("h2",[v._v("0.2.16")]),_("p",[v._v("优化:小地图、拖拽性能。")]),_("h2",[v._v("0.2.15")]),_("p",[v._v("优化:本地文件编辑。")]),_("p",[v._v("新增:支持双击节点内图片进行大图预览。")]),_("h2",[v._v("0.2.14")]),_("p",[v._v("优化:插入子节点时自动展开。")]),_("p",[v._v("修复:小地图关闭时报错的问题。")]),_("h2",[v._v("0.2.13")]),_("p",[v._v("修复:子节点收起状态复制时丢失的问题。")]),_("h2",[v._v("0.2.11")]),_("p",[v._v("修复:修复子节点收起状态复制时丢失的问题。")]),_("p",[v._v("新增:支持小地图。")]),_("h2",[v._v("0.2.10")]),_("p",[v._v("优化:手动创建节点时立即聚焦。")]),_("p",[v._v("修复:连线样式深度更新问题。")]),_("p",[v._v("新增:逻辑结构图、思维导图新增直线连接风格、直连风格。")]),_("h2",[v._v("0.2.9")]),_("p",[v._v("新增:支持新建、打开、保存到电脑本地文件。")]),_("h2",[v._v("0.2.8")]),_("p",[v._v("修复:xmind8版本文件导入失败的问题。")]),_("p",[v._v("新增:支持展开到指定层级。")]),_("h2",[v._v("0.2.7")]),_("p",[v._v("修复:根节点添加多个节点爆栈的问题。")]),_("p",[v._v("新增:支持导入.xmind文件。")]),_("h2",[v._v("0.2.6")]),_("p",[v._v("新增:导出svg增加title标签。")]),_("h2",[v._v("0.2.5")]),_("p",[v._v("修复:节点展开收起的bug。")]),_("p",[v._v("新增:节点支持自定义线条样式。")]),_("h2",[v._v("0.2.4")]),_("p",[v._v("新增:节点支持多种形状。")]),_("h2",[v._v("0.2.3")]),_("p",[v._v("修复:编辑节点文本时快捷键冲突的问题;右键菜单快捷键提示错误;右键菜单快捷键提示。")]),_("h2",[v._v("0.2.2")]),_("p",[v._v("修复:输入字符串'/'和快捷键'/'冲突问题。")]),_("h2",[v._v("0.2.1")]),_("p",[v._v("新增:支持导出为pdf。")]),_("h2",[v._v("0.2.0")]),_("p",[v._v("新增:经典4主题;支持添加概要;支持自由拖拽;上移节点、下移节点、复制节点、剪切节点、粘贴节点、一键整理布快捷键;库打包;Ctrl+左键多选。")]),_("h2",[v._v("0.1.18")]),_("p",[v._v("修复:节点图标不能删除的问题;工具按钮置灰仍然可以点击的问题。")]),_("h2",[v._v("0.1.17")]),_("p",[v._v("新增:增加只读模式。")]),_("h2",[v._v("0.1.16")]),_("p",[v._v("新增:节点备注支持markdown及富文本。")]),_("p",[v._v("修复:不能选中文字的问题;节点标注在节点激活后无法隐藏问题;超链接、备注、标签等文字编辑时返回键和回车键与思维导图快捷键冲突的问题。")]),_("h2",[v._v("0.1.15")]),_("p",[v._v("新增:状态数据支持保存激活状态、视图状态(拖动位置、缩放值);支持节点拖拽。")]),_("h2",[v._v("0.1.14")]),_("p",[v._v("修复:存在激活节点时设置主题存在的问题。")]),_("h2",[v._v("0.1.13")]),_("p",[v._v("新增:快捷键功能;新增导出为json。")]),_("p",[v._v("优化:一些细节。")]),_("h2",[v._v("0.1.12")]),_("p",[v._v("新增:本地存储;右键菜单功能等。")]),_("h2",[v._v("0.1.0")]),_("p",[v._v("完成基本功能。")])])}],n={},e=n,a=p("2877"),t=Object(a["a"])(e,h,s,!1,null,null,null);_["default"]=t.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d207d47.619f3d6b.js b/tools/mind-map/dist/js/chunk-2d207d47.619f3d6b.js
deleted file mode 100644
index 7d50530e..00000000
--- a/tools/mind-map/dist/js/chunk-2d207d47.619f3d6b.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d207d47"],{a1cd:function(s,n,t){"use strict";t.r(n);var e=function(){var s=this;s._self._c;return s._m(0)},i=[function(){var s=this,n=s._self._c;return n("div",[n("h1",[s._v("TouchEvent plugin")]),n("blockquote",[n("p",[s._v("v0.6.0+")])]),n("p",[s._v("This plugin supports mobile touch events for users. The principle is to listen for 'touchstart', 'touchmove', and 'touchend' events on the mobile end, and then dispatch corresponding mouse events.")]),n("p",[s._v("Currently, it supports single finger touch to move the canvas, click to activate nodes, double finger zoom the canvas, single finger double-click to reset and edit nodes.")]),n("h2",[s._v("Register")]),n("pre",{staticClass:"hljs"},[n("code",[n("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" MindMap "),n("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),n("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map'")]),s._v("\n"),n("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" TouchEvent "),n("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),n("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map/src/plugins/TouchEvent.js'")]),s._v("\n\nMindMap.usePlugin(TouchEvent)\n")])]),n("p",[s._v("After registration and instantiation of "),n("code",[s._v("MindMap")]),s._v(", the instance can be obtained through "),n("code",[s._v("mindMap.touchEvent")]),s._v(".")])])}],o={},a=o,c=t("2877"),r=Object(c["a"])(a,e,i,!1,null,null,null);n["default"]=r.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d2082b9.04099460.js b/tools/mind-map/dist/js/chunk-2d2082b9.04099460.js
deleted file mode 100644
index 59c107c9..00000000
--- a/tools/mind-map/dist/js/chunk-2d2082b9.04099460.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d2082b9"],{a43c:function(s,t,n){"use strict";n.r(t);var a=function(){var s=this;s._self._c;return s._m(0)},v=[function(){var s=this,t=s._self._c;return t("div",[t("h1",[s._v("KeyCommand实例")]),t("p",[t("code",[s._v("keyCommand")]),s._v("实例负责快捷键的添加及触发,内置了一些快捷键,也可以自行添加。可通过"),t("code",[s._v("mindMap.keyCommand")]),s._v("获取到该实例。")]),t("h2",[s._v("方法")]),t("h3",[s._v("addShortcut(key, fn)")]),t("p",[s._v("添加快捷键")]),t("p",[t("code",[s._v("key")]),s._v(":快捷键按键,按键值可以通过"),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/core/command/keyMap.js"}},[s._v("keyMap.js")]),s._v("查看。示例:")]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-comment"},[s._v("// 单个按键")]),s._v("\nmindMap.keyCommand.addShortcut("),t("span",{staticClass:"hljs-string"},[s._v("'Enter'")]),s._v(", "),t("span",{staticClass:"hljs-function"},[s._v("() =>")]),s._v(" {})\n"),t("span",{staticClass:"hljs-comment"},[s._v("// 或")]),s._v("\nmindMap.keyCommand.addShortcut("),t("span",{staticClass:"hljs-string"},[s._v("'Del|Backspace'")]),s._v(", "),t("span",{staticClass:"hljs-function"},[s._v("() =>")]),s._v(" {})\n"),t("span",{staticClass:"hljs-comment"},[s._v("// 组合键")]),s._v("\nmindMap.keyCommand.addShortcut("),t("span",{staticClass:"hljs-string"},[s._v("'Control+Enter'")]),s._v(", "),t("span",{staticClass:"hljs-function"},[s._v("() =>")]),s._v(" {})\n")])]),t("p",[t("code",[s._v("fn")]),s._v(":要执行的方法")]),t("h3",[s._v("removeShortcut(key, fn)")]),t("p",[s._v("移除快捷键命令,"),t("code",[s._v("fn")]),s._v("不指定则移除该快捷键的所有回调方法")]),t("h3",[s._v("getShortcutFn(key)")]),t("blockquote",[t("p",[s._v("v0.2.2+")])]),t("p",[s._v("获取指定快捷键的处理函数")]),t("h3",[s._v("pause()")]),t("blockquote",[t("p",[s._v("v0.2.2+")])]),t("p",[s._v("暂停所有快捷键响应")]),t("h3",[s._v("recovery()")]),t("blockquote",[t("p",[s._v("v0.2.2+")])]),t("p",[s._v("恢复快捷键响应")]),t("h3",[s._v("save()")]),t("blockquote",[t("p",[s._v("v0.2.3+")])]),t("p",[s._v("保存当前注册的快捷键数据,然后清空快捷键数据")]),t("h3",[s._v("restore()")]),t("blockquote",[t("p",[s._v("v0.2.3+")])]),t("p",[s._v("恢复保存的快捷键数据,然后清空缓存数据")])])}],_={},e=_,c=n("2877"),o=Object(c["a"])(e,a,v,!1,null,null,null);t["default"]=o.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d208ffa.258996a9.js b/tools/mind-map/dist/js/chunk-2d208ffa.258996a9.js
deleted file mode 100644
index 6942beaf..00000000
--- a/tools/mind-map/dist/js/chunk-2d208ffa.258996a9.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d208ffa"],{a6d3:function(e,t,i){"use strict";i.r(t);var o=function(){var e=this;e._self._c;return e._m(0)},n=[function(){var e=this,t=e._self._c;return t("div",[t("h1",[e._v("Changelog")]),t("h2",[e._v("0.6.0")]),t("p",[e._v("Breaking change: Adjusted the directory structure of the simple-mind-map source code, Main impact: 1. The introduction path of the plugin needs to be modified. The constant file path needs to be modified.")]),t("p",[e._v("New: 1.Supports one click zoom to fit the canvas function. 2.Press and hold the Ctrl key to activate the multi selection function on demand through configuration. 3.Support setting to left click to select multiple nodes and right click to drag the canvas. 4. Support controlling whether nodes are allowed to be edited. 5.Add a method for destroying mind maps. 6.Added touch event support plugin.")]),t("p",[e._v("Fix: 1.Fix the issue where holding down the Ctrl key to select multiple nodes does not trigger the click event for the node. 2.Fixed the issue of node style loss when clearing a node and then entering text.")]),t("h2",[e._v("0.5.11")]),t("p",[e._v("New: Supports associative text editing.")]),t("p",[e._v("optimization: Optimizing theme configuration updates, changing configurations that do not involve node size does not trigger node recalculation.")]),t("h2",[e._v("0.5.10")]),t("p",[e._v("New: Optimize node reuse logic using LRU caching algorithm.")]),t("h2",[e._v("0.5.10-fix.1")]),t("p",[e._v("Fix: Fix the issue of import errors.")]),t("h2",[e._v("0.5.10-fix.2")]),t("p",[e._v("Fix: Fixed the issue of switching themes and importing data without triggering data changes in rich text mode.")]),t("p",[e._v("New: Add three new themes.")]),t("h2",[e._v("0.5.9")]),t("p",[e._v("Change: Unified export method format, using "),t("code",[e._v("FileReader")]),e._v(" instead of "),t("code",[e._v("URL.createObjectURL")]),e._v(" to convert "),t("code",[e._v("blob")]),e._v(" data.")]),t("h2",[e._v("0.5.8")]),t("p",[e._v("optimization: 1.The position setting is not triggered when the node position does not change. 2.The unfolding and folding status does not change and does not trigger button updates.")]),t("p",[e._v("New: 1.The default setting is to move the mouse over the node to display the expand and collapse buttons. 2.Support the list of icons that can be inserted into extended nodes.")]),t("h2",[e._v("0.5.7")]),t("p",[e._v("Breaking change:In rich text mode, exporting png has been changed to using html2canvas to convert the entire svg, greatly improving the export speed. However, html2canvas has a bug where the text color inline with the dom node in the foreignObject element cannot be recognized. Therefore, the text color of the exported node is fixed. However, compared to the previously unavailable state of the export, it can at least be exported quickly and smoothly.")]),t("p",[e._v("optimization: Optimize the rich text node editing experience.")]),t("p",[e._v("New: In rich text mode, importing data, initializing data, and switching theme scene node styles support following theme changes.")]),t("h2",[e._v("0.5.6")]),t("p",[e._v("Fix: 1.Fix the issue of node position disorder during fast and multiple renderings in a short period of time. 2.Fix the issue of dragging the canvas while the node is being edited, causing the edit box and node to separate.")]),t("p",[e._v("New: 1.Add a maximum history limit.")]),t("h2",[e._v("0.5.5-fix.1")]),t("p",[e._v("Fix: 1.Fix the issue where the edit box is also outside the canvas when editing nodes outside the canvas. 2.After modifying the structure, reset the transformation to prevent the problem of sudden position changes during the first drag after switching the structure during scaling.")]),t("p",[e._v("optimization: 1.When multiple nodes are selected, as long as there is a cross between the node and the selection area, it is considered selected.")]),t("h2",[e._v("0.5.5-fix.2")]),t("p",[e._v("Fix: 1.Fix mini map error.")]),t("h2",[e._v("0.5.5")]),t("p",[e._v("New: 1.Supports configuring the padding when exporting to PNG, SVG, or PDF. 2.Support the configuration of z-index for node text editing boxes and node comment floating layer elements. 3.Support clicking on areas outside the canvas to end node editing status.")]),t("h2",[e._v("0.5.4")]),t("p",[e._v("New: 1.Add new themes. 2.Added timeline and fishbone structure.")]),t("p",[e._v("Fix: 1.Fix the conflict issue between node right-click and canvas right-click. 2.Fix the bug that the line segment is not hidden when dragging nodes such as organizational chart and directory organization chart.")]),t("p",[e._v("optimization: 1.Optimize the layout of organizational chart. 2.Optimize the layout of the directory organization chart.")]),t("h2",[e._v("0.5.4-fix.1")]),t("p",[e._v("optimization: 1.Optimize fishbone layout.")]),t("h2",[e._v("0.5.3")]),t("p",[e._v("Fix: 1.Fixed the issue of setting the text style when multiple nodes were selected in rich text mode, which would change the text of all selected nodes to the text of the last selected node.")]),t("p",[e._v("New: 1.Support setting the position of the initial central node.")]),t("h3",[e._v("0.5.3-fix.1")]),t("p",[e._v("Fix: 1.Fix the issue where setting the position of the initial central node does not take effect.")]),t("h3",[e._v("0.5.3-fix.2")]),t("p",[e._v("Fix: 1.Fix the issue of not displaying images in nodes when exporting as images.")]),t("h2",[e._v("0.5.2")]),t("p",[e._v("Fix: 1.Remove "),t("code",[e._v("uid")]),e._v(" from exported "),t("code",[e._v("JSON")]),e._v(" data; 2.Clear the node cache pool when re rendering.")]),t("h2",[e._v("0.5.1")]),t("p",[e._v("optimization: 1.Only respond to shortcut key events when the mouse is inside the canvas")]),t("p",[e._v("Fix: 1.Fix the issue of incorrect node position during fast operation")]),t("h2",[e._v("0.5.0")]),t("p",[e._v("This version is mainly about code level changes and optimization, with the core goal of improving rendering performance and reducing stuck issues.")]),t("p",[e._v("New: 1.Support custom expansion and collapse node icons and colors;")]),t("p",[e._v("optimization: 1.Optimize rendering logic, set the theme, move forward and backward, and other operations no longer require full rendering;")]),t("pre",[t("code",[e._v(" 2.Optimize node drag logic, and fix the problem of being unable to drag between two nodes;\n\n 3.Collapse all nodes adds logic to return to the center point;\n\n 4.Fix the problem of nodes flying and scrambling caused by triggering rendering multiple times in a short time;\n\n 5.Optimize the experience of node editing;\n")])]),t("p",[e._v("Fix: 1.Fix the issue where the setData method does not trigger history;")]),t("p",[e._v("modify: Starting from version 0.5.0, considering performance issues, the node activation state can only modify shape related styles:")]),t("pre",{staticClass:"hljs"},[t("code",[e._v("[\n "),t("span",{staticClass:"hljs-string"},[e._v("'fillColor'")]),e._v(",\n "),t("span",{staticClass:"hljs-string"},[e._v("'borderColor'")]),e._v(",\n "),t("span",{staticClass:"hljs-string"},[e._v("'borderWidth'")]),e._v(",\n "),t("span",{staticClass:"hljs-string"},[e._v("'borderDasharray'")]),e._v(",\n "),t("span",{staticClass:"hljs-string"},[e._v("'borderRadius'")]),e._v("\n]\n")])]),t("h2",[e._v("0.4.7")]),t("p",[e._v("optimization: 1.During rich text editing, when initially focusing, all are no longer selected by default; 2.When editing rich text, use the node fill color as the background color to avoid being invisible when the node color is white. 3.Node activation state switching no longer triggers history. 4.Triggering history multiple times in a short time will only add the last data. 5.Optimize the addition of historical records. When there is a rollback, delete the historical data after the current pointer when adding a new record again.")]),t("p",[e._v("New: 1.Support for importing and exporting Markdown format files. 2.Support for configuring initial text when inserting nodes. 3.Expand the commands for inserting and deleting nodes to support specifying nodes.")]),t("h2",[e._v("0.4.6")]),t("p",[e._v("New: 1.Associated lines support adjusting control points.")]),t("p",[e._v("optimization: 1.When adding historical data, filter data that has not changed compared to the previous time.")]),t("p",[e._v("Fix: 1.Fixed a conflict between the direction keys and the navigation function of the direction keys during node editing. 2.Fixed the issue of node id loss when dragging a mobile node, which can cause associated lines to be lost.")]),t("h2",[e._v("0.4.5")]),t("p",[e._v("New: 1.Supports associative lines. 2.You can also drag the canvas by holding down the root node. 3. Hold down the ctrl key to adjust multiple selected nodes.")]),t("h2",[e._v("0.4.4")]),t("p",[e._v("New: Support horizontal scrolling in response to the mouse.")]),t("h2",[e._v("0.4.3")]),t("p",[e._v("Fix: No trigger after forward and backward "),t("code",[e._v("data_ Change")]),e._v(" event.")]),t("p",[e._v("New: Support user-defined mouse wheel events; The mouse wheel is adjusted to support zooming and moving the view up and down.")]),t("h2",[e._v("0.4.2")]),t("p",[e._v("New: The "),t("code",[e._v("setText")]),e._v(" method of the Node class adds a second parameter to support setting rich text content.")]),t("h2",[e._v("0.4.1")]),t("p",[e._v("New: 1.Add and throw node mouseenter and mouseleave events; 2.Node rich text supports setting background color; 3.Node rich text supports clear style.")]),t("p",[e._v("Fix: 1.Mac system touchpad scaling is the opposite problem; 2.When the device window.devicePixelRatio is not 1, the size of the rich text node in the exported image will become larger when there are rich text nodes.")]),t("h2",[e._v("0.4.0")]),t("p",[e._v("New: The node supports rich text editing.")]),t("h2",[e._v("0.3.4")]),t("p",[e._v("New: Automatic line wrapping function is added to node text.")]),t("p",[e._v("Fix: 1.Fix the problem of deletion exceptions if there are root nodes in the batch deleted nodes. 2.Fix the problem that high node height will overlap with other nodes in the case of bottom edge style.")]),t("h2",[e._v("0.3.3")]),t("p",[e._v("Fix: The root node text cannot wrap.")]),t("h2",[e._v("0.3.2")]),t("p",[e._v("Fix: 1.Fix the problem that the node style is not updated when the secondary node is dragged to other nodes or other nodes are dragged to the secondary node; 2.Fix the problem that when the actual content of the mind map is larger than the screen width and height, the excess part is not watermarked when exporting.")]),t("h2",[e._v("0.3.1")]),t("p",[e._v("Fix: 1.The problem that deleting the background image does not take effect; 2.The problem that the connector runs above the root node when the node is dragged to the root node.")]),t("p",[e._v("New: Add position and size settings for background image display. This setting is also supported for exported pictures.")]),t("h2",[e._v("0.3.0")]),t("p",[e._v("Upgrade to plugin architecture, pull out some non-core functions as plugins, register as needed, and reduce the overall volume.")]),t("h2",[e._v("0.2.24")]),t("p",[e._v("New: Node free drag is changed to configurable, the default is "),t("code",[e._v("false")]),e._v(", not open; Support add watermark.")]),t("h2",[e._v("0.2.23")]),t("p",[e._v("New: Support register new theme.")]),t("h2",[e._v("0.2.22")]),t("p",[e._v("optimization:The theme and structure pictures of the built-in "),t("code",[e._v("simple-mind-map")]),e._v(" package are removed and replaced by user self-maintenance. The original pictures can be found in the "),t("code",[e._v("web/assets/img/")]),e._v(" directory.")]),t("h2",[e._v("0.2.21")]),t("p",[e._v("New: Support node horizontal line style.")]),t("h2",[e._v("0.2.20")]),t("p",[e._v("fix:When the distance from the canvas to the upper left corner of the window is not 0, the node dragging will have an offset problem.")]),t("h2",[e._v("0.2.19")]),t("p",[e._v("fix:When the node is not activated, pressing any key will trigger the problem of automatic focus.")]),t("h2",[e._v("0.2.18")]),t("p",[e._v("optimization:Keyboard navigation algorithm for finding focus, supporting simple algorithm, region algorithm and shadow algorithm.")]),t("h2",[e._v("0.2.17")]),t("p",[e._v("New:Keyboard navigation, that is, switch the active nodes through the direction keys; The node text content can be edited directly in the outline.")]),t("h2",[e._v("0.2.16")]),t("p",[e._v("optimization:Mini map; drag performance.")]),t("h2",[e._v("0.2.15")]),t("p",[e._v("optimization:Local file editing.")]),t("p",[e._v("New:Double-click the image in the node to preview the large image.")]),t("h2",[e._v("0.2.14")]),t("p",[e._v("optimization:Automatically expand when inserting child nodes.")]),t("p",[e._v("fix:The error occurred when the mini map was closed.")]),t("h2",[e._v("0.2.13")]),t("p",[e._v("fix:The child node is missing when collapsing state replication.")]),t("h2",[e._v("0.2.11")]),t("p",[e._v("fix:Fix the problem that is lost when the child node collapses state replication.")]),t("p",[e._v("New:Support mini map.")]),t("h2",[e._v("0.2.10")]),t("p",[e._v("optimization:Focus immediately when you manually create a node.")]),t("p",[e._v("fix:Connection style depth update problem.")]),t("p",[e._v("New:Logical structure diagram and mind map add linear connection style and direct connection style.")]),t("h2",[e._v("0.2.9")]),t("p",[e._v("New:Support the creation, opening and saving of local files on the computer.")]),t("h2",[e._v("0.2.8")]),t("p",[e._v("fix:Xmind8 version file import failed.")]),t("p",[e._v("New:Expanding to the specified level is supported.")]),t("h2",[e._v("0.2.7")]),t("p",[e._v("fix:The root node adds multiple nodes to burst the stack.")]),t("p",[e._v("New:Support import .xmind file.")]),t("h2",[e._v("0.2.6")]),t("p",[e._v("New:The title tag is added when exporting svg.")]),t("h2",[e._v("0.2.5")]),t("p",[e._v("fix:Bugs caused by node expansion and collapse.")]),t("p",[e._v("New:Node supports custom line styles.")]),t("h2",[e._v("0.2.4")]),t("p",[e._v("New:Nodes support multiple shapes.")]),t("h2",[e._v("0.2.3")]),t("p",[e._v("fix:Shortcut key conflicts when editing node text; Right-click menu shortcut prompt error; Right-click menu shortcut prompt.")]),t("h2",[e._v("0.2.2")]),t("p",[e._v("fix:The input string '/' conflicts with the shortcut key '/'.")]),t("h2",[e._v("0.2.1")]),t("p",[e._v("New:Support export as pdf.")]),t("h2",[e._v("0.2.0")]),t("p",[e._v("New:Classic4 theme;Support adding summary; Support free drag; Move Node Up, Move Node Down, Copy Node, Cut Node, Paste Node, One-click Organize Cloth Shortcut; Library packaging; Ctrl+left click to select multiple.")]),t("h2",[e._v("0.1.18")]),t("p",[e._v("fix:The problem that the node icon cannot be deleted; The tool button is grayed out and can still be clicked.")]),t("h2",[e._v("0.1.17")]),t("p",[e._v("New:Add read-only mode.")]),t("h2",[e._v("0.1.16")]),t("p",[e._v("New:Node notes support markdown and rich text.")]),t("p",[e._v("fix:Can't select text; Node annotations cannot hide problems after node activation; When editing text such as hyperlinks, notes, labels, etc., the return key and return key conflict with the shortcut key of mind map.")]),t("h2",[e._v("0.1.15")]),t("p",[e._v("New:The status data supports saving the active status and view status (drag position, zoom value);Support node drag.")]),t("h2",[e._v("0.1.14")]),t("p",[e._v("fix:There are problems with setting topics when activating nodes.")]),t("h2",[e._v("0.1.13")]),t("p",[e._v("New:Shortcut key function; Support export as json。")]),t("p",[e._v("optimization:Some details.")]),t("h2",[e._v("0.1.12")]),t("p",[e._v("New:Local storage;Right-click menu function, etc.")]),t("h2",[e._v("0.1.0")]),t("p",[e._v("Complete basic functions.")])])}],a={},s=a,r=i("2877"),d=Object(r["a"])(s,o,n,!1,null,null,null);t["default"]=d.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d20ec02.917aff76.js b/tools/mind-map/dist/js/chunk-2d20ec02.917aff76.js
deleted file mode 100644
index 53dddcca..00000000
--- a/tools/mind-map/dist/js/chunk-2d20ec02.917aff76.js
+++ /dev/null
@@ -1,3 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d20ec02"],{b163:function(e,t,n){
-/*! @license DOMPurify 2.4.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.1/LICENSE */
-(function(t,n){e.exports=n()})(0,(function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function r(e,o,a){return r=n()?Reflect.construct:function(e,n,r){var o=[null];o.push.apply(o,n);var a=Function.bind.apply(e,o),i=new a;return r&&t(i,r.prototype),i},r.apply(null,arguments)}function o(e){return a(e)||i(e)||l(e)||u()}function a(e){if(Array.isArray(e))return c(e)}function i(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function l(e,t){if(e){if("string"===typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?n-1:0),o=1;o/gm),J=g(/\${[\w\W]*}/gm),X=g(/^data-[\-\w.\u00B7-\uFFFF]/),Z=g(/^aria-[\-\w]+$/),Q=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ee=g(/^(?:\w+script|data):/i),te=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ne=g(/^html$/i),re=function(){return"undefined"===typeof window?null:window},oe=function(t,n){if("object"!==e(t)||"function"!==typeof t.createPolicy)return null;var r=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(r=n.currentScript.getAttribute(o));var a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(i){return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function ae(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:re(),n=function(e){return ae(e)};if(n.version="2.4.1",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,a=t.document,i=t.DocumentFragment,l=t.HTMLTemplateElement,c=t.Node,u=t.Element,s=t.NodeFilter,m=t.NamedNodeMap,f=void 0===m?t.NamedNodeMap||t.MozNamedAttrMap:m,p=t.HTMLFormElement,d=t.DOMParser,g=t.trustedTypes,y=u.prototype,b=F(y,"cloneNode"),v=F(y,"nextSibling"),T=F(y,"childNodes"),R=F(y,"parentNode");if("function"===typeof l){var C=a.createElement("template");C.content&&C.content.ownerDocument&&(a=C.content.ownerDocument)}var ie=oe(g,r),le=ie?ie.createHTML(""):"",ce=a,ue=ce.implementation,se=ce.createNodeIterator,me=ce.createDocumentFragment,fe=ce.getElementsByTagName,pe=r.importNode,de={};try{de=I(a).documentMode?a.documentMode:{}}catch(Rt){}var he={};n.isSupported="function"===typeof R&&ue&&"undefined"!==typeof ue.createHTMLDocument&&9!==de;var ge,ye,be=K,ve=V,Te=J,Ne=X,Ae=Z,Ee=ee,we=te,Se=Q,ke=null,xe=M({},[].concat(o(U),o(H),o(z),o(B),o(G))),_e=null,Oe=M({},[].concat(o(W),o(q),o(Y),o($))),De=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Le=null,Re=null,Ce=!0,Me=!0,Ie=!1,Fe=!1,Ue=!1,He=!1,ze=!1,Pe=!1,Be=!1,je=!1,Ge=!0,We=!1,qe="user-content-",Ye=!0,$e=!1,Ke={},Ve=null,Je=M({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Xe=null,Ze=M({},["audio","video","img","source","image","track"]),Qe=null,et=M({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tt="http://www.w3.org/1998/Math/MathML",nt="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml",ot=rt,at=!1,it=null,lt=M({},[tt,nt,rt],S),ct=["application/xhtml+xml","text/html"],ut="text/html",st=null,mt=a.createElement("form"),ft=function(e){return e instanceof RegExp||e instanceof Function},pt=function(t){st&&st===t||(t&&"object"===e(t)||(t={}),t=I(t),ge=ge=-1===ct.indexOf(t.PARSER_MEDIA_TYPE)?ut:t.PARSER_MEDIA_TYPE,ye="application/xhtml+xml"===ge?S:w,ke="ALLOWED_TAGS"in t?M({},t.ALLOWED_TAGS,ye):xe,_e="ALLOWED_ATTR"in t?M({},t.ALLOWED_ATTR,ye):Oe,it="ALLOWED_NAMESPACES"in t?M({},t.ALLOWED_NAMESPACES,S):lt,Qe="ADD_URI_SAFE_ATTR"in t?M(I(et),t.ADD_URI_SAFE_ATTR,ye):et,Xe="ADD_DATA_URI_TAGS"in t?M(I(Ze),t.ADD_DATA_URI_TAGS,ye):Ze,Ve="FORBID_CONTENTS"in t?M({},t.FORBID_CONTENTS,ye):Je,Le="FORBID_TAGS"in t?M({},t.FORBID_TAGS,ye):{},Re="FORBID_ATTR"in t?M({},t.FORBID_ATTR,ye):{},Ke="USE_PROFILES"in t&&t.USE_PROFILES,Ce=!1!==t.ALLOW_ARIA_ATTR,Me=!1!==t.ALLOW_DATA_ATTR,Ie=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Fe=t.SAFE_FOR_TEMPLATES||!1,Ue=t.WHOLE_DOCUMENT||!1,Pe=t.RETURN_DOM||!1,Be=t.RETURN_DOM_FRAGMENT||!1,je=t.RETURN_TRUSTED_TYPE||!1,ze=t.FORCE_BODY||!1,Ge=!1!==t.SANITIZE_DOM,We=t.SANITIZE_NAMED_PROPS||!1,Ye=!1!==t.KEEP_CONTENT,$e=t.IN_PLACE||!1,Se=t.ALLOWED_URI_REGEXP||Se,ot=t.NAMESPACE||rt,t.CUSTOM_ELEMENT_HANDLING&&ft(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(De.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ft(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(De.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(De.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Fe&&(Me=!1),Be&&(Pe=!0),Ke&&(ke=M({},o(G)),_e=[],!0===Ke.html&&(M(ke,U),M(_e,W)),!0===Ke.svg&&(M(ke,H),M(_e,q),M(_e,$)),!0===Ke.svgFilters&&(M(ke,z),M(_e,q),M(_e,$)),!0===Ke.mathMl&&(M(ke,B),M(_e,Y),M(_e,$))),t.ADD_TAGS&&(ke===xe&&(ke=I(ke)),M(ke,t.ADD_TAGS,ye)),t.ADD_ATTR&&(_e===Oe&&(_e=I(_e)),M(_e,t.ADD_ATTR,ye)),t.ADD_URI_SAFE_ATTR&&M(Qe,t.ADD_URI_SAFE_ATTR,ye),t.FORBID_CONTENTS&&(Ve===Je&&(Ve=I(Ve)),M(Ve,t.FORBID_CONTENTS,ye)),Ye&&(ke["#text"]=!0),Ue&&M(ke,["html","head","body"]),ke.table&&(M(ke,["tbody"]),delete Le.tbody),h&&h(t),st=t)},dt=M({},["mi","mo","mn","ms","mtext"]),ht=M({},["foreignobject","desc","title","annotation-xml"]),gt=M({},["title","style","font","a","script"]),yt=M({},H);M(yt,z),M(yt,P);var bt=M({},B);M(bt,j);var vt=function(e){var t=R(e);t&&t.tagName||(t={namespaceURI:ot,tagName:"template"});var n=w(e.tagName),r=w(t.tagName);return!!it[e.namespaceURI]&&(e.namespaceURI===nt?t.namespaceURI===rt?"svg"===n:t.namespaceURI===tt?"svg"===n&&("annotation-xml"===r||dt[r]):Boolean(yt[n]):e.namespaceURI===tt?t.namespaceURI===rt?"math"===n:t.namespaceURI===nt?"math"===n&&ht[r]:Boolean(bt[n]):e.namespaceURI===rt?!(t.namespaceURI===nt&&!ht[r])&&(!(t.namespaceURI===tt&&!dt[r])&&(!bt[n]&&(gt[n]||!yt[n]))):!("application/xhtml+xml"!==ge||!it[e.namespaceURI]))},Tt=function(e){E(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(Rt){try{e.outerHTML=le}catch(Rt){e.remove()}}},Nt=function(e,t){try{E(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(Rt){E(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!_e[e])if(Pe||Be)try{Tt(t)}catch(Rt){}else try{t.setAttribute(e,"")}catch(Rt){}},At=function(e){var t,n;if(ze)e=" "+e;else{var r=k(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===ge&&ot===rt&&(e=''+e+"");var o=ie?ie.createHTML(e):e;if(ot===rt)try{t=(new d).parseFromString(o,ge)}catch(Rt){}if(!t||!t.documentElement){t=ue.createDocument(ot,"template",null);try{t.documentElement.innerHTML=at?"":o}catch(Rt){}}var i=t.body||t.documentElement;return e&&n&&i.insertBefore(a.createTextNode(n),i.childNodes[0]||null),ot===rt?fe.call(t,Ue?"html":"body")[0]:Ue?t.documentElement:i},Et=function(e){return se.call(e.ownerDocument||e,e,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT,null,!1)},wt=function(e){return e instanceof p&&("string"!==typeof e.nodeName||"string"!==typeof e.textContent||"function"!==typeof e.removeChild||!(e.attributes instanceof f)||"function"!==typeof e.removeAttribute||"function"!==typeof e.setAttribute||"string"!==typeof e.namespaceURI||"function"!==typeof e.insertBefore||"function"!==typeof e.hasChildNodes)},St=function(t){return"object"===e(c)?t instanceof c:t&&"object"===e(t)&&"number"===typeof t.nodeType&&"string"===typeof t.nodeName},kt=function(e,t,r){he[e]&&N(he[e],(function(e){e.call(n,t,r,st)}))},xt=function(e){var t;if(kt("beforeSanitizeElements",e,null),wt(e))return Tt(e),!0;if(D(/[\u0080-\uFFFF]/,e.nodeName))return Tt(e),!0;var r=ye(e.nodeName);if(kt("uponSanitizeElement",e,{tagName:r,allowedTags:ke}),e.hasChildNodes()&&!St(e.firstElementChild)&&(!St(e.content)||!St(e.content.firstElementChild))&&D(/<[/\w]/g,e.innerHTML)&&D(/<[/\w]/g,e.textContent))return Tt(e),!0;if("select"===r&&D(/=0;--l)o.insertBefore(b(a[l],!0),v(e))}return Tt(e),!0}return e instanceof u&&!vt(e)?(Tt(e),!0):"noscript"!==r&&"noembed"!==r||!D(/<\/no(script|embed)/i,e.innerHTML)?(Fe&&3===e.nodeType&&(t=e.textContent,t=x(t,be," "),t=x(t,ve," "),t=x(t,Te," "),e.textContent!==t&&(E(n.removed,{element:e.cloneNode()}),e.textContent=t)),kt("afterSanitizeElements",e,null),!1):(Tt(e),!0)},_t=function(e,t,n){if(Ge&&("id"===t||"name"===t)&&(n in a||n in mt))return!1;if(Me&&!Re[t]&&D(Ne,t));else if(Ce&&D(Ae,t));else if(!_e[t]||Re[t]){if(!(Ot(e)&&(De.tagNameCheck instanceof RegExp&&D(De.tagNameCheck,e)||De.tagNameCheck instanceof Function&&De.tagNameCheck(e))&&(De.attributeNameCheck instanceof RegExp&&D(De.attributeNameCheck,t)||De.attributeNameCheck instanceof Function&&De.attributeNameCheck(t))||"is"===t&&De.allowCustomizedBuiltInElements&&(De.tagNameCheck instanceof RegExp&&D(De.tagNameCheck,n)||De.tagNameCheck instanceof Function&&De.tagNameCheck(n))))return!1}else if(Qe[t]);else if(D(Se,x(n,we,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==_(n,"data:")||!Xe[e]){if(Ie&&!D(Ee,x(n,we,"")));else if(n)return!1}else;return!0},Ot=function(e){return e.indexOf("-")>0},Dt=function(t){var r,o,a,i;kt("beforeSanitizeAttributes",t,null);var l=t.attributes;if(l){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:_e};i=l.length;while(i--){r=l[i];var u=r,s=u.name,m=u.namespaceURI;if(o="value"===s?r.value:O(r.value),a=ye(s),c.attrName=a,c.attrValue=o,c.keepAttr=!0,c.forceKeepAttr=void 0,kt("uponSanitizeAttribute",t,c),o=c.attrValue,!c.forceKeepAttr&&(Nt(s,t),c.keepAttr))if(D(/\/>/i,o))Nt(s,t);else{Fe&&(o=x(o,be," "),o=x(o,ve," "),o=x(o,Te," "));var f=ye(t.nodeName);if(_t(f,a,o)){if(!We||"id"!==a&&"name"!==a||(Nt(s,t),o=qe+o),ie&&"object"===e(g)&&"function"===typeof g.getAttributeType)if(m);else switch(g.getAttributeType(f,a)){case"TrustedHTML":o=ie.createHTML(o);break;case"TrustedScriptURL":o=ie.createScriptURL(o);break}try{m?t.setAttributeNS(m,s,o):t.setAttribute(s,o),A(n.removed)}catch(Rt){}}}}kt("afterSanitizeAttributes",t,null)}},Lt=function e(t){var n,r=Et(t);kt("beforeSanitizeShadowDOM",t,null);while(n=r.nextNode())kt("uponSanitizeShadowNode",n,null),xt(n)||(n.content instanceof i&&e(n.content),Dt(n));kt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(o){var a,l,u,s,m,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(at=!o,at&&(o="\x3c!--\x3e"),"string"!==typeof o&&!St(o)){if("function"!==typeof o.toString)throw L("toString is not a function");if(o=o.toString(),"string"!==typeof o)throw L("dirty is not a string, aborting")}if(!n.isSupported){if("object"===e(t.toStaticHTML)||"function"===typeof t.toStaticHTML){if("string"===typeof o)return t.toStaticHTML(o);if(St(o))return t.toStaticHTML(o.outerHTML)}return o}if(He||pt(f),n.removed=[],"string"===typeof o&&($e=!1),$e){if(o.nodeName){var p=ye(o.nodeName);if(!ke[p]||Le[p])throw L("root node is forbidden and cannot be sanitized in-place")}}else if(o instanceof c)a=At("\x3c!----\x3e"),l=a.ownerDocument.importNode(o,!0),1===l.nodeType&&"BODY"===l.nodeName||"HTML"===l.nodeName?a=l:a.appendChild(l);else{if(!Pe&&!Fe&&!Ue&&-1===o.indexOf("<"))return ie&&je?ie.createHTML(o):o;if(a=At(o),!a)return Pe?null:je?le:""}a&&ze&&Tt(a.firstChild);var d=Et($e?o:a);while(u=d.nextNode())3===u.nodeType&&u===s||xt(u)||(u.content instanceof i&&Lt(u.content),Dt(u),s=u);if(s=null,$e)return o;if(Pe){if(Be){m=me.call(a.ownerDocument);while(a.firstChild)m.appendChild(a.firstChild)}else m=a;return _e.shadowroot&&(m=pe.call(r,m,!0)),m}var h=Ue?a.outerHTML:a.innerHTML;return Ue&&ke["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&D(ne,a.ownerDocument.doctype.name)&&(h="\n"+h),Fe&&(h=x(h,be," "),h=x(h,ve," "),h=x(h,Te," ")),ie&&je?ie.createHTML(h):h},n.setConfig=function(e){pt(e),He=!0},n.clearConfig=function(){st=null,He=!1},n.isValidAttribute=function(e,t,n){st||pt({});var r=ye(e),o=ye(t);return _t(r,o,n)},n.addHook=function(e,t){"function"===typeof t&&(he[e]=he[e]||[],E(he[e],t))},n.removeHook=function(e){if(he[e])return A(he[e])},n.removeHooks=function(e){he[e]&&(he[e]=[])},n.removeAllHooks=function(){he={}},n}var ie=ae();return ie}))}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d20f68f.70af391b.js b/tools/mind-map/dist/js/chunk-2d20f68f.70af391b.js
deleted file mode 100644
index a7f86478..00000000
--- a/tools/mind-map/dist/js/chunk-2d20f68f.70af391b.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d20f68f"],{b407:function(s,e,t){"use strict";t.r(e);var a=function(){var s=this;s._self._c;return s._m(0)},n=[function(){var s=this,e=s._self._c;return e("div",[e("h1",[s._v("Start")]),e("h2",[s._v("Installation")]),e("blockquote",[e("p",[s._v("Things to note before version 0.2.0:")])]),e("pre",{staticClass:"hljs"},[e("code",[s._v("npm i simple-mind-map\n")])]),e("p",[e("code",[s._v("0.2.0")]),s._v(" Notes for previous versions:")]),e("blockquote",[e("p",[s._v("Note: This project is directly published in source code form and has not been packaged. If compilation fails, a Vue CLI-created project can add the following configuration to the vue.config.js file to allow babel-loader to compile this dependency:")]),e("pre",{staticClass:"hljs"},[e("code",[e("span",{staticClass:"hljs-built_in"},[s._v("module")]),s._v(".exports = {\n "),e("span",{staticClass:"hljs-attr"},[s._v("transpileDependencies")]),s._v(": ["),e("span",{staticClass:"hljs-string"},[s._v('"simple-mind-map"')]),s._v("],\n};\n")])]),e("p",[s._v("Other projects should modify the packaging configuration as needed.")])]),e("h2",[s._v("Usage")]),e("blockquote",[e("p",[s._v("The "),e("code",[s._v("web")]),s._v(" directory of this repository provides a complete project based on "),e("code",[s._v("Vue2")]),s._v(". If you encounter any doubts about using it, you can refer to the implementation of this project.")])]),e("blockquote",[e("p",[s._v("To learn about its use in other frameworks, you can refer to the following unofficial implementations:")]),e("p",[s._v("1."),e("a",{attrs:{href:"https://github.com/huangyuanyin/hyy-vue3-mindMap"}},[s._v("https://github.com/huangyuanyin/hyy-vue3-mindMap")]),s._v(": A mind map based on Vue3.2+ElementPlus.")])]),e("p",[s._v("Firstly, provide a container element with a width and height not equal to 0:")]),e("pre",{staticClass:"hljs"},[e("code",[e("span",{staticClass:"hljs-tag"},[s._v("<"),e("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(" "),e("span",{staticClass:"hljs-attr"},[s._v("id")]),s._v("="),e("span",{staticClass:"hljs-string"},[s._v('"mindMapContainer"')]),s._v(">")]),e("span",{staticClass:"hljs-tag"},[s._v(""),e("span",{staticClass:"hljs-name"},[s._v("div")]),s._v(">")]),s._v("\n")])]),e("p",[s._v("Also, set the "),e("code",[s._v("CSS")]),s._v(" style again:")]),e("pre",{staticClass:"hljs"},[e("code",[e("span",{staticClass:"hljs-selector-id"},[s._v("#mindMapContainer")]),s._v(" * {\n "),e("span",{staticClass:"hljs-attribute"},[s._v("margin")]),s._v(": "),e("span",{staticClass:"hljs-number"},[s._v("0")]),s._v(";\n "),e("span",{staticClass:"hljs-attribute"},[s._v("padding")]),s._v(": "),e("span",{staticClass:"hljs-number"},[s._v("0")]),s._v(";\n}\n")])]),e("p",[s._v("Then introduce the "),e("code",[s._v("simple-mind-map")]),s._v(" library and create an instance:")]),e("pre",{staticClass:"hljs"},[e("code",[e("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" MindMap "),e("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),e("span",{staticClass:"hljs-string"},[s._v('"simple-mind-map"')]),s._v(";\n\n"),e("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" mindMap = "),e("span",{staticClass:"hljs-keyword"},[s._v("new")]),s._v(" MindMap({\n "),e("span",{staticClass:"hljs-attr"},[s._v("el")]),s._v(": "),e("span",{staticClass:"hljs-built_in"},[s._v("document")]),s._v(".getElementById("),e("span",{staticClass:"hljs-string"},[s._v("'mindMapContainer'")]),s._v("),\n "),e("span",{staticClass:"hljs-attr"},[s._v("data")]),s._v(": {\n "),e("span",{staticClass:"hljs-string"},[s._v('"data"')]),s._v(": {\n "),e("span",{staticClass:"hljs-string"},[s._v('"text"')]),s._v(": "),e("span",{staticClass:"hljs-string"},[s._v('"Root Node"')]),s._v("\n },\n "),e("span",{staticClass:"hljs-string"},[s._v('"children"')]),s._v(": []\n }\n});\n")])]),e("p",[s._v("This will result in a mind map.")]),e("p",[s._v("If you want to implement a complete mind map, you usually need to develop some UI interfaces to achieve more functions through the interfaces provided by the "),e("code",[s._v("simple-mind-map")]),s._v(" library.")]),e("p",[e("code",[s._v("simple-mind-map")]),s._v(" supports rich configurations, events, commands, and some additional plugin extensions. Read the subsequent documentation to learn more.")]),e("p",[s._v("The non-packaged 'ES' module is introduced by default, and only contains core functions, not unregistered plugin content, which can effectively reduce the size. However, you need to configure the "),e("code",[s._v("babel")]),s._v(" compilation "),e("code",[s._v("simple mind-map")]),s._v(" in your project to prevent some newer "),e("code",[s._v("js")]),s._v(" syntax some browsers not supporting it.")]),e("p",[s._v("If you need a file in the format of "),e("code",[s._v("umd")]),s._v(" module, such as "),e("code",[s._v("CDN")]),s._v(" in the browser, Then you can find the "),e("code",[s._v("simpleMindMap.umd.min.js")]),s._v(" file and "),e("code",[s._v("simpleMindMap.css")]),s._v(" file in the "),e("code",[s._v("/simple-mind-map/dist/")]),s._v(" directory, copy it to your project, and then import it into the page:")]),e("pre",{staticClass:"hljs"},[e("code",[e("span",{staticClass:"hljs-tag"},[s._v("<"),e("span",{staticClass:"hljs-name"},[s._v("link")]),s._v(" "),e("span",{staticClass:"hljs-attr"},[s._v("rel")]),s._v("="),e("span",{staticClass:"hljs-string"},[s._v('"stylesheet"')]),s._v(" "),e("span",{staticClass:"hljs-attr"},[s._v("href")]),s._v("="),e("span",{staticClass:"hljs-string"},[s._v('"simpleMindMap.css"')]),s._v(">")]),s._v("\n"),e("span",{staticClass:"hljs-tag"},[s._v("<"),e("span",{staticClass:"hljs-name"},[s._v("script")]),s._v(" "),e("span",{staticClass:"hljs-attr"},[s._v("scr")]),s._v("="),e("span",{staticClass:"hljs-string"},[s._v('"simpleMindMap.umd.min.js"')]),s._v(">")]),e("span",{staticClass:"hljs-tag"},[s._v(""),e("span",{staticClass:"hljs-name"},[s._v("script")]),s._v(">")]),s._v("\n")])]),e("p",[s._v("A global variable "),e("code",[s._v("window.simpleMindMap")]),s._v(" will be created.")]),e("p",[s._v("The disadvantage of this method is that it will contain all the content, including the plugins you have not registered, so the overall volume will be relatively large.")]),e("p",[s._v("(v0.5.4+)If you want to use the "),e("code",[s._v("ES")]),s._v(" module directly on the browser side, you can find the "),e("code",[s._v("simpleMindMap.esm.js")]),s._v(" and "),e("code",[s._v("simpleMindMap.esm.css")]),s._v(" files in the "),e("code",[s._v("/simple-mind-map/dist/")]),s._v(" directory.")]),e("h2",[s._v("Development")]),e("p",[s._v("If you only use library, you don't need to read this section.")]),e("h3",[s._v("Local Development")]),e("pre",{staticClass:"hljs"},[e("code",[s._v("git "),e("span",{staticClass:"hljs-built_in"},[s._v("clone")]),s._v(" https://github.com/wanglin2/mind-map.git\n"),e("span",{staticClass:"hljs-built_in"},[s._v("cd")]),s._v(" mind-map\n"),e("span",{staticClass:"hljs-built_in"},[s._v("cd")]),s._v(" simple-mind-map\nnpm i\nnpm link\n"),e("span",{staticClass:"hljs-built_in"},[s._v("cd")]),s._v(" ..\n"),e("span",{staticClass:"hljs-built_in"},[s._v("cd")]),s._v(" web\nnpm i\nnpm link simple-mind-map\nnpm run serve\n")])]),e("h3",[s._v("Packaging the Library")]),e("p",[s._v("Since version "),e("code",[s._v("0.2.0")]),s._v(", we have added support for packaging the core library simple-mind-map. This uses the same packaging tool as the sample project web.")]),e("pre",{staticClass:"hljs"},[e("code",[e("span",{staticClass:"hljs-built_in"},[s._v("cd")]),s._v(" web\nnpm run buildLibrary\n")])]),e("p",[s._v("The "),e("code",[s._v("package.json")]),s._v(" file in the "),e("code",[s._v("simple-mind-map")]),s._v(" library provides two export fields:")]),e("pre",{staticClass:"hljs"},[e("code",[s._v("{\n "),e("span",{staticClass:"hljs-attr"},[s._v('"module"')]),s._v(": "),e("span",{staticClass:"hljs-string"},[s._v('"index.js"')]),s._v(",\n "),e("span",{staticClass:"hljs-attr"},[s._v('"main"')]),s._v(": "),e("span",{staticClass:"hljs-string"},[s._v('"./dist/simpleMindMap.umd.min.js"')]),s._v("\n}\n")])]),e("p",[s._v("Environments that support the "),e("code",[s._v("module")]),s._v(" field will use "),e("code",[s._v("index.js")]),s._v(" as the entry point, otherwise the packed "),e("code",[s._v("simpleMindMap.umd.min.js")]),s._v(" will be used as the entry point.")]),e("h3",[s._v("Compile the doc")]),e("pre",{staticClass:"hljs"},[e("code",[e("span",{staticClass:"hljs-built_in"},[s._v("cd")]),s._v(" web \nnpm run buildDoc\n")])]),e("h3",[s._v("Packaging the Demo")]),e("pre",{staticClass:"hljs"},[e("code",[e("span",{staticClass:"hljs-built_in"},[s._v("cd")]),s._v(" web\nnpm run build\n")])]),e("p",[s._v("The "),e("code",[s._v("index.html")]),s._v(" file will be automatically moved to the root directory.")]),e("h2",[s._v("Problems")]),e("h3",[s._v("Error when using in Vite, indicating xml-js dependency error")]),e("p",[s._v("Solution: use the following import method:")]),e("pre",{staticClass:"hljs"},[e("code",[e("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" MindMap "),e("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),e("span",{staticClass:"hljs-string"},[s._v('"simple-mind-map/dist/simpleMindMap.umd.min"')]),s._v(";\n")])]),e("p",[s._v("The "),e("code",[s._v("simple-mind-map")]),s._v(" package provides the unpacked entry field "),e("code",[s._v("module")]),s._v(", and the "),e("code",[s._v("xml-js")]),s._v(" package dependency needs to import the package in the "),e("code",[s._v("node")]),s._v(" environment. Therefore, it cannot be obtained in "),e("code",[s._v("Vite")]),s._v(" and an error will be reported. Therefore, specify the import of the packed entry, and all relevant packages are packed into the product, so there will be no error.")]),e("p",[s._v("If you need to do further development, that is, you must use the unpacked code, and if you do not need to parse the "),e("code",[s._v("xmind")]),s._v(" file, you can remove the "),e("code",[s._v("xmind")]),s._v(" module. If you need it, you can try using other libraries to parse "),e("code",[s._v("xml")]),s._v(" to "),e("code",[s._v("json")]),s._v(".")]),e("h3",[s._v("Error "),e("code",[s._v("Getting bbox of element \"text\" is not possible: TypeError: Cannot read properties of undefined (reading 'apply')")])]),e("p",[s._v("The reason is that the installed version of "),e("code",[s._v("@svgdotjs/svg.js")]),s._v(" is too high. You can manually reduce it to the version of "),e("code",[s._v("3.0.16")]),s._v(".")])])}],i={},o=i,l=t("2877"),v=Object(l["a"])(o,a,n,!1,null,null,null);e["default"]=v.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d20ff53.18de3d7d.js b/tools/mind-map/dist/js/chunk-2d20ff53.18de3d7d.js
deleted file mode 100644
index f1de12ee..00000000
--- a/tools/mind-map/dist/js/chunk-2d20ff53.18de3d7d.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d20ff53"],{b69b:function(s,t,a){"use strict";a.r(t);var n=function(){var s=this;s._self._c;return s._m(0)},e=[function(){var s=this,t=s._self._c;return t("div",[t("h1",[s._v("修改鼠标滚轮的行为")]),t("p",[s._v("鼠标滚轮的行为支持放大缩小画布和上下移动画布,可以在实例化时通过配置指定:")]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-keyword"},[s._v("new")]),s._v(" MindMap({\n "),t("span",{staticClass:"hljs-comment"},[s._v("// ...")]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("mousewheelAction")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'zoom'")]),t("span",{staticClass:"hljs-comment"},[s._v("// zoom(放大缩小)、move(上下移动)")]),s._v("\n "),t("span",{staticClass:"hljs-comment"},[s._v("// 当mousewheelAction设为move时,可以通过该属性控制鼠标滚动一下视图移动的步长,单位px")]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("mousewheelMoveStep")]),s._v(": "),t("span",{staticClass:"hljs-number"},[s._v("100")]),s._v(",\n})\n")])]),t("p",[s._v("如果需要动态的切换行为可以使用"),t("code",[s._v("updateConfig")]),s._v("方法:")]),t("pre",{staticClass:"hljs"},[t("code",[s._v("mindMap.updateConfig({\n "),t("span",{staticClass:"hljs-attr"},[s._v("mousewheelAction")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'move'")]),s._v("\n})\n")])]),t("p",[s._v("此外也支持让你自行处理鼠标滚轮事件:")]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-keyword"},[s._v("new")]),s._v(" MindMap({\n "),t("span",{staticClass:"hljs-comment"},[s._v("// ...")]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("customHandleMousewheel")]),s._v(": "),t("span",{staticClass:"hljs-function"},[s._v("("),t("span",{staticClass:"hljs-params"},[s._v("e")]),s._v(") =>")]),s._v(" {\n "),t("span",{staticClass:"hljs-comment"},[s._v("// 你的自定义逻辑")]),s._v("\n }\n})\n")])]),t("p",[s._v("当传了"),t("code",[s._v("customHandleMousewheel")]),s._v("选项,"),t("code",[s._v("mousewheelAction")]),s._v("选项将不生效。")]),t("h2",[s._v("完整示例")]),t("iframe",{staticStyle:{width:"100%",height:"455px",border:"none"},attrs:{src:"https://wanglin2.github.io/playground/#eNrFVU+P20QU/ypPRshZlNipxCkkpeXPAYlFqNedFXLsSTJlPGM842SXyBKqkFpKK4FAQiqXLZcWCXFCiO628GU2yfIteOPxON6QAzciOZp57/fe7828P7P0bmdZMC+oN/CGKs5ZpkFRXWQ3iWBpJnMNS8jppAtSHMpCaJp0Qc0izuXiDp1ACZNcpuCjB7+xOGQiOYwyqyKeQjGnvRSlvTTKiEcEABGcajAygxyBKDi38jCE1avvVl89Xv/1xfq3i82TL68e3tvce7F68MPV0+dExFIoDVGs2Zx+JBOq0HobUefo+IAIh4qLPKdC30awFIjDk3T8z6VM/QpkqB7cXz/+6e+XZ+uz++uLJ1evfr16+ujyj3PnQcvplFM8uqKLGaW8cdU5gNFNWJqYr7EE84gXFAF7paMRWH54G/xUzqkPg1piPNX3ERRZEmn6rhQTNu1UHKjbiWGwjwFPpUs8W2mO16Ss0wq2deV04VLlOCgfQCLjIkW3wZTq9zk1y3dOP0g6fm2JUemICZr7B11rhbFGA+vd/IhnBMRriaxY0xNtxMRbn72wSbXFYH5l7cwA4xnjCR7NgI+2Pnbc7WXZZbo8f7Q5f7ZLdp1wD+nxVtfG/U8RuGUtc3ZMMH1HSm264GOpmK2KI5/Tifa74MeYOkzTcQUvD96y/QWAZb/58dvVN7/YoGyfXZ5/fXnxe7sIpej4Al1/YnsNPXbMtgvm/0Om9LaooN2PTQc4nKXHosRvGNopg/MFN5riaMBKxx3AMGFziHmk1Ih4dRDv0VQSr1LXAJZstU0pImQYorYNdJ60lHwcGYhVEj0cF1pjE9+KOYs/rSD7mhwtlsvdEXKtge3wwGmxeXaxevi86uWt7OXP6+//9KEsh6EldNE1kbrVMGxdBG6VPuX2Tm7VI5V4QWjnaN2xAVVpECtFvCatQevOXFoWLNGzAdzo91+vcABZUyg5RUZMWqWoasx8r+3erXO1NYzGSvJCW0MAU24D6Nc7LbPt5t/0M8qmM4S/2e9nJ455P+8bjjmN8ilDXuc1i5KEiakTNKEHdar/Y8Q3XAR10M0eHWKZVjnwup7NgHm5grtKCnwoK/ekVmAGmgFAPHwHbdcHIS6DHMcvS6lJVm+cy4WiOTohXt3Ae95GYzvTOlODMOQnnwl1qgKpVC8WvTFld/HYQcTZaSFiFcQyDbHGqVZ7asPQ1IcpvfIftRG5qQ=="}})])}],l={},v=l,c=a("2877"),i=Object(c["a"])(v,n,e,!1,null,null,null);t["default"]=i.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d210a7a.a6e9e73d.js b/tools/mind-map/dist/js/chunk-2d210a7a.a6e9e73d.js
deleted file mode 100644
index cb3a1935..00000000
--- a/tools/mind-map/dist/js/chunk-2d210a7a.a6e9e73d.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d210a7a"],{b98e:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this;e._self._c;return e._m(0)},i=[function(){var e=this,t=e._self._c;return t("div",[t("h1",[e._v("MiniMap plugin")]),t("blockquote",[t("p",[e._v("v0.2.11+")])]),t("p",[e._v("Used to help quickly develop a small map feature, the small map consists of two parts, one is the current canvas content, and the other is the viewport frame. When zoomed, moved, or there are too many elements, the canvas may only display part of the mind map content. The viewport frame can be used to view the current viewport location, and can be quickly positioned by dragging on the small map.")]),t("h2",[e._v("Register")]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-keyword"},[e._v("import")]),e._v(" MindMap "),t("span",{staticClass:"hljs-keyword"},[e._v("from")]),e._v(" "),t("span",{staticClass:"hljs-string"},[e._v("'simple-mind-map'")]),e._v("\n"),t("span",{staticClass:"hljs-keyword"},[e._v("import")]),e._v(" MiniMap "),t("span",{staticClass:"hljs-keyword"},[e._v("from")]),e._v(" "),t("span",{staticClass:"hljs-string"},[e._v("'simple-mind-map/src/plugins/MiniMap.js'")]),e._v("\n"),t("span",{staticClass:"hljs-comment"},[e._v("// import MiniMap from 'simple-mind-map/src/MiniMap.js' Use this path for versions below v0.6.0")]),e._v("\n\nMindMap.usePlugin(MiniMap)\n")])]),t("p",[e._v("After registration and instantiation of "),t("code",[e._v("MindMap")]),e._v(", the instance can be obtained through "),t("code",[e._v("mindMap.miniMap")]),e._v(".")]),t("h2",[e._v("Methods")]),t("h3",[e._v("calculationMiniMap(boxWidth, boxHeight)")]),t("p",[e._v('"Calculate the rendering data for the small map, this function will call the '),t("code",[e._v("getMiniMap()")]),e._v(" method, so using this function is sufficient.")]),t("p",[t("code",[e._v("boxWidth")]),e._v(": the width of the small map container")]),t("p",[t("code",[e._v("boxHeight")]),e._v(": the height of the small map container")]),t("p",[e._v("Function return content:")]),t("pre",{staticClass:"hljs"},[t("code",[e._v("{\n svgHTML, "),t("span",{staticClass:"hljs-comment"},[e._v("// small map html")]),e._v("\n viewBoxStyle, "),t("span",{staticClass:"hljs-comment"},[e._v("// view box position information")]),e._v("\n miniMapBoxScale, "),t("span",{staticClass:"hljs-comment"},[e._v("// view box zoom value")]),e._v("\n miniMapBoxLeft, "),t("span",{staticClass:"hljs-comment"},[e._v("// view box left value")]),e._v("\n miniMapBoxTop, "),t("span",{staticClass:"hljs-comment"},[e._v("// view box top value")]),e._v("\n}\n")])]),t("p",[e._v("Small map idea:")]),t("p",[e._v("1.Prepare a container element "),t("code",[e._v("container")]),e._v(", position is not "),t("code",[e._v("static")])]),t("p",[e._v("2.In "),t("code",[e._v("container")]),e._v(", create a small map container element "),t("code",[e._v("miniMapContainer")]),e._v(", absolute positioning")]),t("p",[e._v("3.In "),t("code",[e._v("container")]),e._v(", create a view box element "),t("code",[e._v("viewBoxContainer")]),e._v(", absolute positioning, set border style, transition property (optional)")]),t("p",[e._v("4.Listen for "),t("code",[e._v("data_change")]),e._v(" and "),t("code",[e._v("view_data_change")]),e._v(" events, and in this event call the "),t("code",[e._v("calculationMiniMap")]),e._v(" method to get calculation data, then render "),t("code",[e._v("svgHTML")]),e._v(" to the "),t("code",[e._v("miniMapContainer")]),e._v(" element and set "),t("code",[e._v("miniMapContainer")]),e._v(" element style:")]),t("pre",{staticClass:"hljs"},[t("code",[e._v(":style="),t("span",{staticClass:"hljs-string"},[e._v("\"{\n transform: `scale(${miniMapBoxScale})`,\n left: miniMapBoxLeft + 'px',\n top: miniMapBoxTop + 'px',\n}\"")]),e._v("\n")])]),t("p",[e._v("5.Set the "),t("code",[e._v("viewBoxStyle")]),e._v(" object as the style of the "),t("code",[e._v("viewBoxContainer")]),e._v(" element")]),t("p",[e._v("At this point, when the mind map on the canvas changes, the small map will also be updated in real time, and the view box element will reflect the position of the viewport on the mind map graph in real time")]),t("p",[e._v("6.Listen for the "),t("code",[e._v("mousedown")]),e._v(", "),t("code",[e._v("mousemove")]),e._v(", and "),t("code",[e._v("mouseup")]),e._v(" events of the "),t("code",[e._v("container")]),e._v(" element, and call the three methods that will be introduced below to achieve the effect of the mind map on the canvas being dragged with the mouse")]),t("h3",[e._v("onMousedown(e)")]),t("p",[e._v("Small map mouse down event executes this function")]),t("p",[t("code",[e._v("e")]),e._v(": event object")]),t("h3",[e._v("onMousemove(e, sensitivityNum = 5)")]),t("p",[e._v("This function is executed on the small map mouse move event.")]),t("p",[t("code",[e._v("e")]),e._v(": event object")]),t("p",[t("code",[e._v("sensitivityNum")]),e._v(": drag sensitivity, the higher the sensitivity, the greater the actual canvas dragging distance on the small map when dragging the same distance on the small map")]),t("h3",[e._v("onMouseup()")]),t("p",[e._v("This function is executed on the small map mouse release event.")])])}],o={},s=o,v=n("2877"),l=Object(v["a"])(s,a,i,!1,null,null,null);t["default"]=l.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d216004.d4985acd.js b/tools/mind-map/dist/js/chunk-2d216004.d4985acd.js
deleted file mode 100644
index 0cb81c7a..00000000
--- a/tools/mind-map/dist/js/chunk-2d216004.d4985acd.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d216004"],{c133:function(e,t,o){"use strict";o.r(t);var n=function(){var e=this;e._self._c;return e._m(0)},v=[function(){var e=this,t=e._self._c;return t("div",[t("h1",[e._v("Node instance")]),t("p",[e._v("Each node will instantiate a "),t("code",[e._v("node")]),e._v(" instance")]),t("h2",[e._v("Property")]),t("h3",[e._v("nodeData")]),t("p",[e._v("The real data corresponding to this node")]),t("h3",[e._v("uid")]),t("p",[e._v("The unique identifier of this node")]),t("h3",[e._v("isRoot")]),t("p",[e._v("Whether it is the root node")]),t("h3",[e._v("layerIndex")]),t("p",[e._v("Node level")]),t("h3",[e._v("width")]),t("p",[e._v("Width of the node")]),t("h3",[e._v("height")]),t("p",[e._v("Height of the node")]),t("h3",[e._v("left")]),t("p",[t("code",[e._v("left")]),e._v(" position of the node")]),t("h3",[e._v("top")]),t("p",[t("code",[e._v("top")]),e._v(" position of the node")]),t("h3",[e._v("parent")]),t("p",[e._v("Parent node of the node")]),t("h3",[e._v("children")]),t("p",[e._v("List of child nodes of the node")]),t("h3",[e._v("group")]),t("p",[e._v("Node is the content container, "),t("code",[e._v("svg")]),e._v(" object")]),t("h3",[e._v("isDrag")]),t("blockquote",[t("p",[e._v("v0.1.5+")])]),t("p",[e._v("Whether the node is currently being dragged")]),t("h2",[e._v("Methods")]),t("h3",[e._v("getSize()")]),t("p",[e._v("Update the width and height of the node by recreating the node content, and return a Boolean value indicating whether the width and height have changed")]),t("h3",[e._v("render()")]),t("p",[e._v("Recursively render this node and all its child nodes")]),t("h3",[e._v("updateNodeShape()")]),t("blockquote",[t("p",[e._v("v0.5.0+")])]),t("p",[e._v("Update node shape nodes. For example, when the node status changes, call this method to display or deactivate the style.")]),t("h3",[e._v("remove()")]),t("p",[e._v("Recursive deletion, which is only deleted from the canvas. The node container is still present, and can be reinserted back into the canvas in the future")]),t("h3",[e._v("destroy()")]),t("blockquote",[t("p",[e._v("v0.5.0+")])]),t("p",[e._v("Destroying a node will not only delete it from the canvas, but also directly empty the original node, which cannot be inserted back into the canvas in the future")]),t("h3",[e._v("renderLine()")]),t("p",[e._v("Re-render the line from this node to its child nodes")]),t("h3",[e._v("removeLine()")]),t("p",[e._v("Remove the line from this node to its child nodes")]),t("h3",[e._v("renderExpandBtn()")]),t("p",[e._v("Render the content of the expand/collapse button")]),t("h3",[e._v("removeExpandBtn()")]),t("p",[e._v("Remove the expand/collapse button")]),t("h3",[e._v("getStyle(prop, root, isActive)")]),t("p",[e._v("Get the final style value applied to this node")]),t("p",[t("code",[e._v("prop")]),e._v(": the style property to get")]),t("p",[t("code",[e._v("root")]),e._v(": whether it is the root node, default "),t("code",[e._v("false")])]),t("p",[t("code",[e._v("isActive")]),e._v(": whether the value being fetched is the active state style value, default "),t("code",[e._v("false")])]),t("h3",[e._v("setStyle(prop, value, isActive)")]),t("p",[e._v("Modify a style of the node, a shortcut method for the "),t("code",[e._v("SET_NODE_STYLE")]),e._v(" command")]),t("h3",[e._v("getData(key)")]),t("p",[e._v("Get the specified value in the "),t("code",[e._v("data")]),e._v(" object of the node's real data "),t("code",[e._v("nodeData")]),e._v(", if "),t("code",[e._v("key")]),e._v(" is not passed, return the "),t("code",[e._v("data")]),e._v(" object")]),t("h3",[e._v("setData(data)")]),t("p",[e._v("Set the value of the specified key in the data object of the node's real data nodeData, "),t("code",[e._v("SET_NODE_DATA")]),e._v(" command's shortcut method")]),t("h3",[e._v("setText(text, richText)")]),t("ul",[t("li",[t("code",[e._v("richText")]),e._v(": v0.4.2+,"),t("code",[e._v("Boolean")]),e._v(", If you want to set rich text content, that is, "),t("code",[e._v("html")]),e._v(" character, "),t("code",[e._v("richText")]),e._v(" needs to be passed "),t("code",[e._v("true")])])]),t("p",[e._v("Setting the node text, a shortcut for the "),t("code",[e._v("SET_NODE_TEXT")]),e._v(" command")]),t("h3",[e._v("setImage(imgData)")]),t("p",[e._v("Setting the node image, a shortcut for the "),t("code",[e._v("SET_NODE_IMAGE")]),e._v(" command")]),t("h3",[e._v("setIcon(icons)")]),t("p",[e._v("Setting the node icon, a shortcut for the "),t("code",[e._v("SET_NODE_ICON")]),e._v(" command")]),t("h3",[e._v("setHyperlink(link, title)")]),t("p",[e._v("Setting the node hyperlink, a shortcut for the "),t("code",[e._v("SET_NODE_HYPERLINK")]),e._v(" command")]),t("h3",[e._v("setNote(note)")]),t("p",[e._v("Setting the node note, a shortcut for the "),t("code",[e._v("SET_NODE_NOTE")]),e._v(" command")]),t("h3",[e._v("setTag(tag)")]),t("p",[e._v("Setting the node tag, a shortcut for the "),t("code",[e._v("SET_NODE_TAG")]),e._v(' command"')]),t("h3",[e._v("hide()")]),t("blockquote",[t("p",[e._v("v0.1.5+")])]),t("p",[e._v("Hide node and its sub-nodes")]),t("h3",[e._v("show()")]),t("blockquote",[t("p",[e._v("v0.1.5+")])]),t("p",[e._v("Show node and its sub-nodes")]),t("h3",[e._v("isParent(node)")]),t("blockquote",[t("p",[e._v("v0.1.5+")])]),t("p",[e._v("Check if the current node is an ancestor of a certain node")]),t("h3",[e._v("isBrother(node)")]),t("blockquote",[t("p",[e._v("v0.1.5+")])]),t("p",[e._v("Check if the current node is a sibling of a certain node")]),t("h3",[e._v("checkHasGeneralization()")]),t("blockquote",[t("p",[e._v("v0.2.0+")])]),t("p",[e._v("Check if there is a summary")]),t("h3",[e._v("hideGeneralization()")]),t("blockquote",[t("p",[e._v("v0.2.0+")])]),t("p",[e._v("Hide summary node")]),t("h3",[e._v("showGeneralization()")]),t("blockquote",[t("p",[e._v("v0.2.0+")])]),t("p",[e._v("Show summary node")]),t("h3",[e._v("updateGeneralization()")]),t("blockquote",[t("p",[e._v("v0.2.0+")])]),t("p",[e._v("Update summary node")]),t("h3",[e._v("hasCustomPosition()")]),t("blockquote",[t("p",[e._v("v0.2.0+")])]),t("p",[e._v("Check if the node has custom data")]),t("h3",[e._v("ancestorHasCustomPosition()")]),t("blockquote",[t("p",[e._v("v0.2.0+")])]),t("p",[e._v("Check if there is an ancestor node with custom position")]),t("h3",[e._v("getShape()")]),t("blockquote",[t("p",[e._v("v0.2.4+")])]),t("p",[e._v("Get node shape")]),t("h3",[e._v("setShape(shape)")]),t("blockquote",[t("p",[e._v("v0.2.4+")])]),t("p",[e._v("Set node shape, a shortcut method for the "),t("code",[e._v("SET_NODE_SHAPE")]),e._v(" command")]),t("h3",[e._v("getSelfStyle(prop)")]),t("blockquote",[t("p",[e._v("v0.2.5+")])]),t("p",[e._v("Get the node's own custom style")]),t("h3",[e._v("getParentSelfStyle(prop)")]),t("blockquote",[t("p",[e._v("v0.2.5+")])]),t("p",[e._v("Get the custom style of the nearest ancestor node with its own custom style")]),t("h3",[e._v("getSelfInhertStyle(prop)")]),t("blockquote",[t("p",[e._v("v0.2.5+")])]),t("p",[e._v("Get the node's own inheritable custom style")])])}],h={},_=h,d=o("2877"),a=Object(d["a"])(_,n,v,!1,null,null,null);t["default"]=a.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d216037.2ed6cede.js b/tools/mind-map/dist/js/chunk-2d216037.2ed6cede.js
deleted file mode 100644
index 1411a968..00000000
--- a/tools/mind-map/dist/js/chunk-2d216037.2ed6cede.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d216037"],{c13f:function(s,t,n){"use strict";n.r(t);var a=function(){var s=this;s._self._c;return s._m(0)},e=[function(){var s=this,t=s._self._c;return t("div",[t("h1",[s._v("开启节点自由拖拽")]),t("p",[s._v("节点支持自由拖拽,也就是可以把它拖动到你指定的位置,默认是不开启的,如果需要开启可以在实例化"),t("code",[s._v("simple-mind-map")]),s._v("时传入开启的选项:")]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-keyword"},[s._v("new")]),s._v(" MindMap({\n "),t("span",{staticClass:"hljs-comment"},[s._v("// ...")]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("enableFreeDrag")]),s._v(": "),t("span",{staticClass:"hljs-literal"},[s._v("true")]),s._v("\n})\n")])]),t("p",[s._v("也可以动态切换是否开启:")]),t("pre",{staticClass:"hljs"},[t("code",[s._v("mindMap.updateConfig({\n "),t("span",{staticClass:"hljs-attr"},[s._v("enableFreeDrag")]),s._v(": "),t("span",{staticClass:"hljs-literal"},[s._v("true")]),t("span",{staticClass:"hljs-comment"},[s._v("// false")]),s._v("\n})\n")])]),t("p",[s._v("自由拖拽很容器将节点拖的乱七八糟,所以也可以通过命令回到默认的位置:")]),t("pre",{staticClass:"hljs"},[t("code",[s._v("mindMap.execCommand("),t("span",{staticClass:"hljs-string"},[s._v("'RESET_LAYOUT'")]),s._v(")\n")])]),t("p",[s._v("也可以使用快捷键"),t("code",[s._v("Ctrl + L")]),s._v("来恢复。")]),t("h2",[s._v("完整示例")]),t("iframe",{staticStyle:{width:"100%",height:"455px",border:"none"},attrs:{src:"https://wanglin2.github.io/playground/#eNrFVd1uG0UUfpVhEVoH2buuxJVxSksbJKSEolAuUDeqxrtje8rszLIzm8SyVgoF1EKIFASiFdxAVQFCQFWBEE2oeJmsnb4FZ3b2L44veldLa82c853znZnzM1PrchQ52wmxelZf+jGNFJJEJdFFj9MwErFCUxSTYRsJviESrkjQRnKMGRM7m2SIUjSMRYhs8GBXFhuUBxs4MirPkiBmpBOCtBPiyLM8jpDHGVFIyzRyFfGEMSN3XZQ9/Tr7/GD2397sr+P5d5+efnF7fvtJdvfe6Y+/eNwXXCqEfUW3yTsiIBKs64haN7ZWPF6iqLwWEf5WTMjVGI8ACEdpDTGTJAdpqrt3ZgcPZvcfZYc/Zf/uZYePTu/8Ov/m8Wz/29n+09KPEqMRIw0/rRW0ehFNdcRnOZxtzBICiJeWyTW+OLOTRAFW5IrgQzpq5Z4QIhwPap7eUt8QuEoh/LQ4wezjB9nDg2fH90//eJj980n2eK+MOiaQynU8EYk6G3IZAtkl/hURhpgHLXtz7b216zfXL39w7f3rdum/ynrrvLnOGtkps10dgfVQIPwkJFw5I6LWGNHLNydvA0dhCYdWmHIS2yttYwVXgXvGu/55lhZ4VkNkxIrsKi32rNkPT0xdmHrSv7RwpoH+mLIgJlyDb9Q+FtwtZVlkOjn6cn708yLZWcIlpFu1rol7QRGUy0JW2lFO1aYQSjfSu0JSRQUHS5uRobLbyPYhdZCmrQK+WJ95K2lVuvK66V6EoCTn33+VHf5m4jVdfHK0f3L8d7P2BG/ZHFhvmk4GspbetpH+X6dS1fWGmt1eNViJM/RQr/D1XTPDYHrBRhEYPNBjsEOoH9Bt5DMs5apnFUFcJaHwrFxdAGhQa6sqBUjfBW0TWHpSQrAB1hCj9FR/kCglOLrkM+p/mEOawwOQ0+niYHoD2dlnfz6793tz+NioB+JzM8lGadp3DUlBCjEtkjZ6HxjPz4gFD/X5ylXfbVwfbKWaMHOTl4ox71mOa2Z7MQIcIkPHl9KzqmJwGjddJnOHBmrcQxe63VdyHEJRVXkxAUZIda7Ii1Z/Ly9mpHRVG+KBFCxRxhAhXb891C12SkT15jz9mNDRGOCvdbvRbsm8nPfVkjnE8YgCb+k1wkFAObSEEVShO0WBPGfEF8oIiqCrPTiE4s5zYLUtkwH9mjq3pODweOfuvUIBGagmimfB22zGiOPC0olhntOQ6GR1BrHYkSQGJ55VtPiS91rbjpWKZM912e5HXE6kI6Ts+LwzIPQWHNvBjE4S7kvHF6ELnUGUXFIbmqY4TGql/wPpBfrv"}})])}],l={},r=l,i=n("2877"),p=Object(i["a"])(r,a,e,!1,null,null,null);t["default"]=p.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d2160a3.2f3400cd.js b/tools/mind-map/dist/js/chunk-2d2160a3.2f3400cd.js
deleted file mode 100644
index 7251a42a..00000000
--- a/tools/mind-map/dist/js/chunk-2d2160a3.2f3400cd.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d2160a3"],{c187:function(s,a,t){"use strict";t.r(a);var n=function(){var s=this;s._self._c;return s._m(0)},v=[function(){var s=this,a=s._self._c;return a("div",[a("h1",[s._v("操作节点内容")]),a("p",[s._v("目前支持在节点中插入"),a("code",[s._v("图片")]),s._v("、"),a("code",[s._v("图标")]),s._v("、"),a("code",[s._v("超链接")]),s._v("、"),a("code",[s._v("备注")]),s._v("、"),a("code",[s._v("标签")]),s._v("、"),a("code",[s._v("概要")]),s._v("、"),a("code",[s._v("关联线")]),s._v(",本节教程会介绍如何通过UI界面来完成这些内容的插入。")]),a("h2",[s._v("监听节点激活事件")]),a("p",[s._v("首先我们要监听节点的激活事件,如果当前没有激活节点,那么对应的UI界面肯定是禁用状态。可以通过"),a("code",[s._v("node_active")]),s._v("事件来监听节点激活事件:")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" activeNodes = shallowRef([])\nmindMap.on("),a("span",{staticClass:"hljs-string"},[s._v("'node_active'")]),s._v(", "),a("span",{staticClass:"hljs-function"},[s._v("("),a("span",{staticClass:"hljs-params"},[s._v("node, activeNodeList")]),s._v(") =>")]),s._v(" {\n activeNodes.value = activeNodeList\n})\n")])]),a("p",[s._v("你还可以进一步判断当前激活的节点中是否操作根节点,是否存在概要节点,因为根节点肯定不能添加兄弟节点,概要节点则子节点、兄弟节点、概要节点、关联线都不能添加。")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" hasRoot = computed("),a("span",{staticClass:"hljs-function"},[s._v("() =>")]),s._v(" {\n "),a("span",{staticClass:"hljs-keyword"},[s._v("return")]),s._v(" activeNodes.value.findIndex("),a("span",{staticClass:"hljs-function"},[a("span",{staticClass:"hljs-params"},[s._v("node")]),s._v(" =>")]),s._v(" {\n "),a("span",{staticClass:"hljs-keyword"},[s._v("return")]),s._v(" node.isRoot\n }) !== -"),a("span",{staticClass:"hljs-number"},[s._v("1")]),s._v("\n})\n\n\n"),a("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" hasGeneralization = computed("),a("span",{staticClass:"hljs-function"},[s._v("() =>")]),s._v(" {\n "),a("span",{staticClass:"hljs-keyword"},[s._v("return")]),s._v(" activeNodes.value.findIndex("),a("span",{staticClass:"hljs-function"},[a("span",{staticClass:"hljs-params"},[s._v("node")]),s._v(" =>")]),s._v(" {\n "),a("span",{staticClass:"hljs-keyword"},[s._v("return")]),s._v(" node.isGeneralization\n }) !== -"),a("span",{staticClass:"hljs-number"},[s._v("1")]),s._v("\n})\n")])]),a("p",[s._v("有了这些判断以后,我们就可以对工具按钮进行控制了,接下来就是实现按钮的相关功能。")]),a("h2",[s._v("插入图片")]),a("p",[s._v("选择图片和上传图片的功能需要你自行开发,假设我们已经上传了一张图片,我们就可以遍历当前激活的节点,挨个调用节点的"),a("code",[s._v("setImage")]),s._v("方法设置图片:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("activeNodes.value.forEach("),a("span",{staticClass:"hljs-function"},[s._v("("),a("span",{staticClass:"hljs-params"},[s._v("node")]),s._v(") =>")]),s._v(" {\n node.setImage({\n "),a("span",{staticClass:"hljs-attr"},[s._v("url")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'图片url'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("title")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'图片的标题或描述'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("width")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("100")]),s._v(","),a("span",{staticClass:"hljs-comment"},[s._v("// 图片的宽高也不能少")]),s._v("\n "),a("span",{staticClass:"hljs-attr"},[s._v("height")]),s._v(": "),a("span",{staticClass:"hljs-number"},[s._v("100")]),s._v("\n })\n})\n")])]),a("p",[s._v("图片回显也很简单,可以使用节点的"),a("code",[s._v("getData")]),s._v("方法获取节点的图片:")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" img = activeNode.getData("),a("span",{staticClass:"hljs-string"},[s._v("'image'")]),s._v(")\n"),a("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" imgTitle = activeNode.getData("),a("span",{staticClass:"hljs-string"},[s._v("'imageTitle'")]),s._v(")\n")])]),a("h2",[s._v("插入图标")]),a("p",[s._v("整体逻辑和插入图片是一样的,不过你需要显示所有可插入的图标,目前只能使用库里自带的一些图标,然后将选择的图标插入到节点中:")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" iconList = ["),a("span",{staticClass:"hljs-string"},[s._v("'priority_1'")]),s._v(", "),a("span",{staticClass:"hljs-string"},[s._v("'...'")]),s._v("]"),a("span",{staticClass:"hljs-comment"},[s._v("// 选择的图标")]),s._v("\nactiveNodes.value.forEach("),a("span",{staticClass:"hljs-function"},[a("span",{staticClass:"hljs-params"},[s._v("node")]),s._v(" =>")]),s._v(" {\n node.setIcon(iconList)\n})\n")])]),a("p",[s._v("获取节点的图标数据:")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" iconList = activeNode.getData("),a("span",{staticClass:"hljs-string"},[s._v("'icon'")]),s._v(") || []\n")])]),a("h2",[s._v("插入超链接")]),a("p",[s._v("对于超链接,你需要实现两个输入框,分别输入"),a("code",[s._v("url")]),s._v("和名称,然后插入到节点:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("activeNodes.value.forEach("),a("span",{staticClass:"hljs-function"},[a("span",{staticClass:"hljs-params"},[s._v("node")]),s._v(" =>")]),s._v(" {\n node.setHyperlink("),a("span",{staticClass:"hljs-string"},[s._v("'url'")]),s._v(", "),a("span",{staticClass:"hljs-string"},[s._v("'名称'")]),s._v(")\n})\n")])]),a("p",[s._v("获取节点超链接数据:")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" url = activeNode.getData("),a("span",{staticClass:"hljs-string"},[s._v("'hyperlink'")]),s._v(")\n"),a("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" name = activeNode.getData("),a("span",{staticClass:"hljs-string"},[s._v("'hyperlinkTitle'")]),s._v(")\n")])]),a("h2",[s._v("插入备注")]),a("p",[s._v("备注会稍微复杂一点,因为支持两种方式。")]),a("h3",[s._v("使用内置逻辑")]),a("p",[s._v("使用内置的逻辑,只能插入纯文本备注,所以你只需要显示一个输入框用来输入文本,然后插入到节点:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("activeNodes.value.forEach("),a("span",{staticClass:"hljs-function"},[a("span",{staticClass:"hljs-params"},[s._v("node")]),s._v(" =>")]),s._v(" {\n node.setNote("),a("span",{staticClass:"hljs-string"},[s._v("'备注内容'")]),s._v(")\n})\n")])]),a("p",[s._v("这样在鼠标移入节点内的备注图标时会显示你插入的备注内容。")]),a("h3",[s._v("自定义显示备注")]),a("p",[s._v("如果你想显示更丰富的备注内容,比如支持"),a("code",[s._v("markdown")]),s._v(",那么你可以在实例化"),a("code",[s._v("simple-mind-map")]),s._v("时插入"),a("code",[s._v("customNoteContentShow")]),s._v("选项。")]),a("p",[s._v("设置备注内容还是使用"),a("code",[s._v("setNote")]),s._v("方法,只不过现在插入的是"),a("code",[s._v("markdown")]),s._v("字符串,因为内置的备注弹窗只能处理纯文本内容,所以你需要自己来渲染"),a("code",[s._v("markdown")]),s._v(":")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" mindMap = "),a("span",{staticClass:"hljs-keyword"},[s._v("new")]),s._v(" MindMap({\n "),a("span",{staticClass:"hljs-comment"},[s._v("// ...")]),s._v("\n "),a("span",{staticClass:"hljs-attr"},[s._v("customNoteContentShow")]),s._v(": {\n "),a("span",{staticClass:"hljs-attr"},[s._v("show")]),s._v(": "),a("span",{staticClass:"hljs-function"},[s._v("("),a("span",{staticClass:"hljs-params"},[s._v("content, left, top")]),s._v(") =>")]),s._v(" {\n "),a("span",{staticClass:"hljs-comment"},[s._v("// 在这里显示你的自定义弹窗")]),s._v("\n "),a("span",{staticClass:"hljs-comment"},[s._v("// content表示你插入的备注的内容,left和top时弹窗应该显示的位置,你需要将你的弹窗元素设置成fixed定位")]),s._v("\n },\n "),a("span",{staticClass:"hljs-attr"},[s._v("hide")]),s._v(": "),a("span",{staticClass:"hljs-function"},[s._v("() =>")]),s._v(" {\n "),a("span",{staticClass:"hljs-comment"},[s._v("// 在这里隐藏你的自定义弹窗")]),s._v("\n "),a("span",{staticClass:"hljs-comment"},[s._v("// 你也可以选择不在鼠标移出备注图标时隐藏弹窗,比如可以在画布被点击时隐藏")]),s._v("\n }\n },\n})\n")])]),a("p",[s._v("获取节点的备注内容可以通过"),a("code",[s._v("getData")]),s._v("方法:")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" note = activeNode.getData("),a("span",{staticClass:"hljs-string"},[s._v("'note'")]),s._v(")\n")])]),a("h2",[s._v("插入标签")]),a("p",[s._v("标签其实就是一个个带背景颜色的文本块,你需要实现的就是一个可以输入多个文本的输入框,然后插入到节点:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("activeNodes.value.forEach("),a("span",{staticClass:"hljs-function"},[a("span",{staticClass:"hljs-params"},[s._v("node")]),s._v(" =>")]),s._v(" {\n node.setTag(["),a("span",{staticClass:"hljs-string"},[s._v("'标签1'")]),s._v(", "),a("span",{staticClass:"hljs-string"},[s._v("'...'")]),s._v("])\n})\n")])]),a("p",[s._v("获取节点标签数据:")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" tagArr = activeNode.getData("),a("span",{staticClass:"hljs-string"},[s._v("'tag'")]),s._v(") || []\n")])]),a("h2",[s._v("插入概要")]),a("p",[s._v("插入概要可以不需要实现UI,直接调用插入概要的命令即可:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("mindMap.execCommand("),a("span",{staticClass:"hljs-string"},[s._v("'ADD_GENERALIZATION'")]),s._v(", data)\n")])]),a("p",[s._v("会给当前激活的节点插入一个概要节点,第二个参数"),a("code",[s._v("data")]),s._v("可以不传,默认为:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("{\n "),a("span",{staticClass:"hljs-attr"},[s._v("text")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'概要'")]),s._v("\n}\n")])]),a("p",[s._v("概要节点本质上也是一个节点,所以普通节点支持的内容它也支持。")]),a("h2",[s._v("插入关联线")]),a("blockquote",[a("p",[s._v("要支持关联线需要使用关联线插件")])]),a("p",[s._v("关联线也不需要UI,调用一个方法即可:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("mindMap.associativeLine.createLineFromActiveNode()\n")])]),a("p",[s._v("然后会从激活的节点(如果有多个激活节点,默认是第一个)到鼠标的实时位置生成一条曲线,点击某个目标节点后就会创建一条从激活节点到目标节点的关联线。")]),a("h2",[s._v("完整示例")]),a("iframe",{staticStyle:{width:"100%",height:"455px",border:"none"},attrs:{src:"https://wanglin2.github.io/playground/#eNrFV/9PHEUU/1cma8we5tiDRmKCBykFRBJAQ5poZRuy7M7dDezObHfn4AghsVRK0Vb6xWjTRq2mraYqaULTCA3wz7B3x3/hm539dsdhzvhDSQ5m3rzPe+/el88Ma8qI62rLVawMKkXf9IjLkY951R3WKXFc5nG0hjxcyiNGp1mVcmzlkV8xbJutzOISWkcljzlIBQtqgpgm1Jo2XHmkKz6IbdzrgLTXMVxd0SlCOrUxR0ImNIcQrdq2lBcKKDh8EGzfqR9/WX/1pvHoq+bXG42N/eDWD81fftepyajPkWFysoxnmIV9QKcR5eau9ug0tFLfuR9sPgseHzW2t2IYoT72Jh2jjAGV60FDw2hNuM2Y05YNu4q1EvPGDbOSy1EQpooIib0GOQqt5CKh+Kl69iBSK5y7/mChYNeuUX/V15jv95q0dwGTRULLmmGT1So1fc1kTuGaXSvUKhdGPl+6VLviDCxO4IHS2Adjn13xRgcWNJeW1XxqnhNuY3AgvxCkpf5k6/TXh/Vb39d3dprHL7O6K8TilUHU39eXF+mMEcHu4ekfD0/2fz75+07zxmHw8l4KqWBSrvAQI4XrIo9c/F5vTyh4bkkon4RNa0KjU/gzRWAxhOZU1yPMI3x1vl/No3R3Qb367xUQCe+Uf7Cdix2cE2vz9ebpg6P6t89aw50idKnb+p/j/eNVF3s22MmFFc8UXBRWfMHG3Zv1G3unP94P9l8Fuz+dvrgd7D5Vz0vq0636XtLcMsoZxrvu0nOiFCZyqjQe3NwMdvfPCwBK2vjrqDWAy0b5f/oHC7k5VdoOqy6XUPLzwni+0Xx+vTWMCaM1iog0NFzD5ihzHINaOXVkbGx+YnxmfHZkavKLkcuTn8yAu1Bd5xzXoLHV5taLYPfRyf62dBLlQ6h0qMfmXvP6d42D4zON01aSOBjD95lJDJEfoaSZHjZ4uPwIWHAkSVwudpXwae6sNcGHeCXm0ZhjMNCLxcyqgynXypiP21gsL61OwvePkKOMcgOcempPRAeWwY3BuC6QDUUIdCUjkmKRJCHWlfqTfcm4kqlDLki4RVfMCrEtD1OhPJfaaDPX0Uu7p5OD242D39qdtTrs4DTki7N6bymCeBnJYhyhhM8yBiNo4U+ZTzhhFJCqjUtcTIIJpYMyhaj1ng/l3YcQdGDj8b3g7p8yJnkHnhx8c/LmdbbdgPpUMWTzciTBYDiC+XDyQkLMTOOZsRX9Fekl7Q+fYkG+AODuhw3HcG1DD8MOoaJFlpFpQ5cP6UoUxBh2mK6Ex5ECsdLTpBNBpViA06xibIkzZi8YoIKWe0kJBNlQbUzLvIKGUV/iRefFhSrncNlcNG1iLgEivdFBK3vlFwtSNYKC547Q8B7JQoGiuoWKeySBJndNt2hBzqnjkKO7hQKvJkhJqd0iJ2AmYmBIg//hu2aijemxDZ0WOl4VC5k+gq3PV23ZUhej16KuaAX5RIz4TsO+o5m+ryvJVGiZlou7On3jvBvqIeQmY+Zh8AiNFB6EEyo+77S3ZmwqBRoLPrOrXAIREsM6iPqiHWduujnrPn5Bvd/X59Ziz539vhd7dgyvTMBvbNU1LAueibEgCV2LJqXLiPvjCKKgkz0YhCkPa6DkFVkB8SjXFn1G4X8AeWNGB1CBhD51BZ74kjO1Aiw1Dy4v4mBRrN4Fj61Aj4ARXYnor8OzX2LPllqgotjWlfV/AEgelAo="}})])}],e={},l=e,c=t("2877"),i=Object(c["a"])(l,n,v,!1,null,null,null);a["default"]=i.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d216642.1dd23711.js b/tools/mind-map/dist/js/chunk-2d216642.1dd23711.js
deleted file mode 100644
index a05442df..00000000
--- a/tools/mind-map/dist/js/chunk-2d216642.1dd23711.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d216642"],{c1ec:function(s,a,t){"use strict";t.r(a);var n=function(){var s=this;s._self._c;return s._m(0)},l=[function(){var s=this,a=s._self._c;return a("div",[a("h1",[s._v("快捷键")]),a("p",[a("code",[s._v("simple-mind-map")]),s._v("常用操作都支持快捷键方式使用,目前所有的快捷键列表如下:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("[\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("type")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'节点操作'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("list")]),s._v(": [\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'插入下级节点'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'Tab'")]),s._v("\n },\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'插入同级节点'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'Enter'")]),s._v("\n },\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'上移节点'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'Ctrl + ↑'")]),s._v("\n },\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'下移节点'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'Ctrl + ↓'")]),s._v("\n },\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'插入概要'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'Ctrl + S'")]),s._v("\n },\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'展开/收起节点'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'/'")]),s._v("\n },\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'删除节点'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'Delete | Backspace'")]),s._v("\n },\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'复制节点'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'Ctrl + C'")]),s._v("\n },\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'剪切节点'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'Ctrl + X'")]),s._v("\n },\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'粘贴节点'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'Ctrl + V'")]),s._v("\n },\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'编辑节点'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'F2'")]),s._v("\n },\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'文本换行'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'Shift + Enter'")]),s._v("\n },\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'回退'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'Ctrl + Z'")]),s._v("\n },\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'前进'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'Ctrl + Y'")]),s._v("\n },\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'全选'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'Ctrl + A'")]),s._v("\n },\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'多选'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'右键 / Ctrl + 左键'")]),s._v("\n },\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'一键整理布局'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'Ctrl + L'")]),s._v("\n }\n ]\n },\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("type")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'画布操作'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("list")]),s._v(": [\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'放大'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'Ctrl + +'")]),s._v("\n },\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'缩小'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'Ctrl + -'")]),s._v("\n },\n {\n "),a("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'恢复默认'")]),s._v(",\n "),a("span",{staticClass:"hljs-attr"},[s._v("value")]),s._v(": "),a("span",{staticClass:"hljs-string"},[s._v("'Ctrl + Enter'")]),s._v("\n }\n ]\n }\n]\n")])]),a("p",[s._v("默认当鼠标滑入画布范围内才会响应快捷键操作,如果你想去掉这个限制可以在实例化"),a("code",[s._v("simple-mind-map")]),s._v("时通过选项指定:")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("new")]),s._v(" MindMap({\n "),a("span",{staticClass:"hljs-comment"},[s._v("// ...")]),s._v("\n "),a("span",{staticClass:"hljs-attr"},[s._v("enableShortcutOnlyWhenMouseInSvg")]),s._v(": "),a("span",{staticClass:"hljs-literal"},[s._v("false")]),s._v("\n})\n")])]),a("p",[s._v("你也可以添加新的快捷键:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("mindMap.keyCommand.addShortcut("),a("span",{staticClass:"hljs-string"},[s._v("'key'")]),s._v(", "),a("span",{staticClass:"hljs-function"},[s._v("() =>")]),s._v(" {\n "),a("span",{staticClass:"hljs-comment"},[s._v("// 执行一些操作")]),s._v("\n})\n")])]),a("p",[a("code",[s._v("key")]),s._v("支持三种方式:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("Enter // 单个按键\nTab | Insert // 或\nShift + a // 与\n")])]),a("p",[s._v("要获取所有的按键值对应的名称,可以:")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" { keyMap } "),a("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),a("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map/src/utils/keyMap'")]),s._v("\n")])]),a("p",[s._v("可以添加当然也可以移除,详细文档可以参考"),a("a",{attrs:{href:"https://wanglin2.github.io/mind-map/#/doc/zh/keyCommand"}},[s._v("keyCommand")]),s._v("。")])])}],v={},_=v,i=t("2877"),r=Object(i["a"])(_,n,l,!1,null,null,null);a["default"]=r.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d217907.3bd419d4.js b/tools/mind-map/dist/js/chunk-2d217907.3bd419d4.js
deleted file mode 100644
index bac210df..00000000
--- a/tools/mind-map/dist/js/chunk-2d217907.3bd419d4.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d217907"],{c6ec:function(s,t,a){"use strict";a.r(t);var n=function(){var s=this;s._self._c;return s._m(0)},e=[function(){var s=this,t=s._self._c;return t("div",[t("h1",[s._v("Export plugin")]),t("p",[s._v("The "),t("code",[s._v("Export")]),s._v(" plugin provides the export function.")]),t("h2",[s._v("Register")]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" MindMap "),t("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),t("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map'")]),s._v("\n"),t("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" Export "),t("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),t("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map/src/plugins/Export.js'")]),s._v("\n"),t("span",{staticClass:"hljs-comment"},[s._v("// import Export from 'simple-mind-map/src/Export.js' Use this path for versions below v0.6.0")]),s._v("\n\nMindMap.usePlugin(Export)\n")])]),t("p",[s._v("After registration and instantiation of "),t("code",[s._v("MindMap")]),s._v(", the instance can be obtained through "),t("code",[s._v("mindMap.doExport")]),s._v(".")]),t("h2",[s._v("Methods")]),t("p",[s._v("All exported methods are asynchronous and return an instance of "),t("code",[s._v("Promise")]),s._v(". You can use the "),t("code",[s._v("then")]),s._v(" method to obtain data, or use the "),t("code",[s._v("async await")]),s._v(" function to obtain:")]),t("pre",{staticClass:"hljs"},[t("code",[s._v("mindMap.doExport.png().then("),t("span",{staticClass:"hljs-function"},[s._v("("),t("span",{staticClass:"hljs-params"},[s._v("data")]),s._v(") =>")]),s._v(" {\n "),t("span",{staticClass:"hljs-comment"},[s._v("// ...")]),s._v("\n})\n\n"),t("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" "),t("span",{staticClass:"hljs-keyword"},[s._v("export")]),s._v(" = "),t("span",{staticClass:"hljs-keyword"},[s._v("async")]),s._v(" () => {\n "),t("span",{staticClass:"hljs-keyword"},[s._v("let")]),s._v(" data = "),t("span",{staticClass:"hljs-keyword"},[s._v("await")]),s._v(" mindMap.doExport.png()\n "),t("span",{staticClass:"hljs-comment"},[s._v("// ...")]),s._v("\n}\n")])]),t("p",[s._v("The returned data is in the format of "),t("code",[s._v("data:URL")]),s._v(". You can create an "),t("code",[s._v("a")]),s._v(" tag to trigger the download:")]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-keyword"},[s._v("let")]),s._v(" a = "),t("span",{staticClass:"hljs-built_in"},[s._v("document")]),s._v(".createElement("),t("span",{staticClass:"hljs-string"},[s._v("'a'")]),s._v(")\na.href = "),t("span",{staticClass:"hljs-string"},[s._v("'xxx.png'")]),t("span",{staticClass:"hljs-comment"},[s._v("// .png、.svg、.pdf、.md、.json、.smm")]),s._v("\na.download = "),t("span",{staticClass:"hljs-string"},[s._v("'xxx'")]),s._v("\na.click()\n")])]),t("h3",[s._v("png(name, transparent = false)")]),t("ul",[t("li",[t("p",[t("code",[s._v("name")]),s._v(": Name, optional")])]),t("li",[t("p",[t("code",[s._v("transparent")]),s._v(": v0.5.7+, Specify whether the background of the exported image is transparent")])])]),t("p",[s._v("Exports as "),t("code",[s._v("png")]),s._v(".")]),t("h3",[s._v("svg(name, plusCssText)")]),t("ul",[t("li",[t("p",[t("code",[s._v("name")]),s._v(":"),t("code",[s._v("svg")]),s._v(" title")])]),t("li",[t("p",[t("code",[s._v("plusCssText")]),s._v(":v0.4.0+, When node rich text editing is enabled and "),t("code",[s._v("domToImage")]),s._v(" passes "),t("code",[s._v("false")]),s._v(", additional "),t("code",[s._v("css")]),s._v(" styles can be added. If there is a "),t("code",[s._v("dom")]),s._v(" node in "),t("code",[s._v("svg")]),s._v(", you can set some styles for the node through this parameter, such as:")])])]),t("pre",{staticClass:"hljs"},[t("code",[s._v("svg(\n "),t("span",{staticClass:"hljs-string"},[s._v("''")]),s._v(", \n "),t("span",{staticClass:"hljs-literal"},[s._v("false")]),s._v(", \n "),t("span",{staticClass:"hljs-string"},[s._v("`* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n }`")]),s._v("\n)\n")])]),t("p",[s._v("Exports as "),t("code",[s._v("svg")]),s._v(".")]),t("h3",[s._v("pdf(name)")]),t("blockquote",[t("p",[s._v("v0.2.1+")])]),t("p",[t("code",[s._v("name")]),s._v(":File name")]),t("p",[s._v("Export as "),t("code",[s._v("pdf")]),s._v(". Unlike other export methods, this method does not return data and directly triggers the download.")]),t("blockquote",[t("p",[s._v("After v0.6.0, an additional ExportPDF plugin needs to be registered")])]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" ExportPDF "),t("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),t("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map/src/plugins/ExportPDF.js'")]),s._v("\nMindMap.usePlugin(ExportPDF)\n")])]),t("h3",[s._v("json(name, withConfig)")]),t("p",[t("code",[s._v("name")]),s._v(":It is temporarily useless, just pass an empty string")]),t("p",[t("code",[s._v("withConfig``:Boolean")]),s._v(", default "),t("code",[s._v("true")]),s._v(", Whether the data contains configuration, otherwise it is pure mind map node data")]),t("p",[s._v("Return "),t("code",[s._v("json")]),s._v(" data.")]),t("h3",[s._v("md()")]),t("blockquote",[t("p",[s._v("v0.4.7+")])]),t("p",[s._v("Export as "),t("code",[s._v("markdown")]),s._v(" file.")]),t("h3",[s._v("getSvgData()")]),t("p",[s._v("Gets "),t("code",[s._v("svg")]),s._v(" data, an async method that returns an object:")]),t("pre",{staticClass:"hljs"},[t("code",[s._v("{\n node "),t("span",{staticClass:"hljs-comment"},[s._v("// svg node")]),s._v("\n str "),t("span",{staticClass:"hljs-comment"},[s._v("// svg string")]),s._v("\n}\n")])])])}],o={},v=o,i=a("2877"),_=Object(i["a"])(v,n,e,!1,null,null,null);t["default"]=_.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d221c76.db20dd50.js b/tools/mind-map/dist/js/chunk-2d221c76.db20dd50.js
deleted file mode 100644
index 9ae322e7..00000000
--- a/tools/mind-map/dist/js/chunk-2d221c76.db20dd50.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d221c76"],{cc99:function(s,t,i){"use strict";i.r(t);var n=function(){var s=this;s._self._c;return s._m(0)},a=[function(){var s=this,t=s._self._c;return t("div",[t("h1",[s._v("开启节点富文本编辑")]),t("p",[s._v("默认节点编辑是不支持富文本模式的,如果要开启需要使用富文本编辑插件,但是富文本编辑模式目前存在缺陷,详情可以阅读"),t("a",{attrs:{href:"https://wanglin2.github.io/mind-map/#/doc/zh/richText"}},[s._v("richText")]),s._v("。")]),t("p",[s._v("富文本编辑的优势就是可以对一个节点内的部分文本设置样式,所以通常来说还需要搭配一个悬浮的工具栏,这个功能默认也是没有的,涉及到UI的功能一般都不提供,所以也需要你自行开发,如何渲染这个悬浮工具栏可以阅读"),t("a",{attrs:{href:"https://wanglin2.github.io/mind-map/#/doc/zh/course16"}},[s._v("如何渲染富文本的悬浮工具栏")]),s._v("。")]),t("p",[s._v("如果也你需要动态切换是否开启富文本编辑的功能可以参考如下代码:")]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" MindMap "),t("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),t("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map'")]),s._v("\n"),t("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" RichText "),t("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),t("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map/src/plugins/RichText.js'")]),s._v("\n"),t("span",{staticClass:"hljs-comment"},[s._v("// import RichText from 'simple-mind-map/src/RichText.js' v0.6.0以下版本使用该路径")]),s._v("\n\n"),t("span",{staticClass:"hljs-comment"},[s._v("// 动态开启富文本编辑")]),s._v("\nmindMap.addPlugin(RichText)\n\n"),t("span",{staticClass:"hljs-comment"},[s._v("// 动态关闭富文本编辑")]),s._v("\nmindMap.removePlugin(RichText)\n")])]),t("p",[s._v("如果你使用的是"),t("code",[s._v("simpleMindMap.umd.js")]),s._v("或"),t("code",[s._v("simpleMindMap.esm.js")]),s._v("这种打包后的完整版,那么是不支持切换的,默认是就是开启的,如有相关需求可以提"),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/issues"}},[s._v("issue")]),s._v("。")])])}],c={},e=c,p=i("2877"),l=Object(p["a"])(e,n,a,!1,null,null,null);t["default"]=l.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d2244e0.1c8f7321.js b/tools/mind-map/dist/js/chunk-2d2244e0.1c8f7321.js
deleted file mode 100644
index f63b449e..00000000
--- a/tools/mind-map/dist/js/chunk-2d2244e0.1c8f7321.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d2244e0"],{e021:function(s,n,t){"use strict";t.r(n);var v=function(){var s=this;s._self._c;return s._m(0)},a=[function(){var s=this,n=s._self._c;return n("div",[n("h1",[s._v("TouchEvent插件")]),n("blockquote",[n("p",[s._v("v0.6.0+")])]),n("p",[s._v("该插件用户支持移动端触摸事件。原理是监听移动端的"),n("code",[s._v("touchstart")]),s._v("、"),n("code",[s._v("touchmove")]),s._v("、"),n("code",[s._v("touchend")]),s._v("事件,然后派发对应的鼠标事件。")]),n("p",[s._v("目前支持单指触摸移动画布、点击激活节点,双指缩放画布,单指双击复位和编辑节点。")]),n("h2",[s._v("注册")]),n("pre",{staticClass:"hljs"},[n("code",[n("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" MindMap "),n("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),n("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map'")]),s._v("\n"),n("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" TouchEvent "),n("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),n("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map/src/plugins/TouchEvent.js'")]),s._v("\n\nMindMap.usePlugin(TouchEvent)\n")])]),n("p",[s._v("注册完且实例化"),n("code",[s._v("MindMap")]),s._v("后可通过"),n("code",[s._v("mindMap.touchEvent")]),s._v("获取到该实例。")])])}],e={},c=e,o=t("2877"),_=Object(o["a"])(c,v,a,!1,null,null,null);n["default"]=_.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d2254a4.fe83b386.js b/tools/mind-map/dist/js/chunk-2d2254a4.fe83b386.js
deleted file mode 100644
index 66b4e76d..00000000
--- a/tools/mind-map/dist/js/chunk-2d2254a4.fe83b386.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d2254a4"],{e487:function(n,s,a){"use strict";a.r(s);var t=function(){var n=this;n._self._c;return n._m(0)},i=[function(){var n=this,s=n._self._c;return s("div",[s("h1",[n._v("如何渲染一个小地图")]),s("blockquote",[s("p",[n._v("要使用小地图需要注册小地图插件")])]),s("p",[n._v("小地图可以方便看到当前画布可视区域在思维导图树的哪个部分。")]),s("p",[n._v("虽然小地图需要你自行开发,不过"),s("code",[n._v("simple-mind-map")]),n._v("提供了一些方法来帮你快速的完成这一工作。")]),s("p",[n._v("小地图由两部分组成,一个是当前的画布内容,一个是视口框,当缩放、移动、元素过多时画布上可能只显示了思维导图的部分内容,可以通过视口框来查看当前视口所在位置,以及可以通过在小地图上拖动来快速定位。")]),s("p",[n._v("当注册了小地图插件后可以通过"),s("code",[n._v("mindMap.miniMap")]),n._v("获取到插件实例,然后通过"),s("code",[n._v("mindMap.miniMap.calculationMiniMap")]),n._v("方法即可获取小地图渲染需要的数据,返回的数据结构如下:")]),s("pre",{staticClass:"hljs"},[s("code",[n._v("{\n svgHTML, "),s("span",{staticClass:"hljs-comment"},[n._v("// 小地图html")]),n._v("\n viewBoxStyle, "),s("span",{staticClass:"hljs-comment"},[n._v("// 视图框的位置信息")]),n._v("\n miniMapBoxScale, "),s("span",{staticClass:"hljs-comment"},[n._v("// 视图框的缩放值")]),n._v("\n miniMapBoxLeft, "),s("span",{staticClass:"hljs-comment"},[n._v("// 视图框的left值")]),n._v("\n miniMapBoxTop, "),s("span",{staticClass:"hljs-comment"},[n._v("// 视图框的top值")]),n._v("\n}\n")])]),s("p",[n._v("完整实现思路如下:")]),s("p",[n._v("1.准备一个宽高不为0的容器元素container,定位不为static")]),s("p",[n._v("2.在container内创建一个小地图容器元素miniMapContainer,绝对定位,设置变换中心点为"),s("code",[n._v("left top")]),n._v(":")]),s("pre",{staticClass:"hljs"},[s("code",[s("span",{staticClass:"hljs-attribute"},[n._v("transform-origin")]),n._v(": left top;\n")])]),s("p",[n._v("3.在container内创建一个视口框元素viewBoxContainer,绝对定位,设置边框样式,过渡属性(可选)")]),s("p",[n._v("4.监听data_change和view_data_change事件,最好也监听一下node_tree_render_end事件,防止初次渲染完毕后小地图没有刷新,在该事件内调用calculationMiniMap方法获取计算数据,然后将返回数据中的svgHTML渲染到miniMapContainer元素内,并且给miniMapContainer元素设置或更新如下样式:")]),s("pre",{staticClass:"hljs"},[s("code",[n._v("{\n "),s("span",{staticClass:"hljs-attr"},[n._v("transform")]),n._v(": "),s("span",{staticClass:"hljs-string"},[n._v("`scale("),s("span",{staticClass:"hljs-subst"},[n._v("${miniMapBoxScale}")]),n._v(")`")]),n._v(",\n "),s("span",{staticClass:"hljs-attr"},[n._v("left")]),n._v(": miniMapBoxLeft + "),s("span",{staticClass:"hljs-string"},[n._v("'px'")]),n._v(",\n "),s("span",{staticClass:"hljs-attr"},[n._v("top")]),n._v(": miniMapBoxTop + "),s("span",{staticClass:"hljs-string"},[n._v("'px'")]),n._v(",\n}\n")])]),s("p",[n._v("5.将viewBoxStyle对象设置为viewBoxContainer元素的样式")]),s("p",[n._v("到这一步,当画布上的思维导图变化了,小地图也会实时更新,并且视口框元素会实时反映视口在思维导图图形上的位置")]),s("p",[n._v("6.监听container元素的mousedown、mousemove、mouseup事件,分别调用小地图插件实例的三个方法即可实现鼠标拖动时画布上的思维导图也随之拖动的效果")]),s("p",[n._v("插件的完整信息可以参考"),s("a",{attrs:{href:"https://wanglin2.github.io/mind-map/#/doc/zh/miniMap"}},[n._v("miniMap")]),n._v("。")]),s("h2",[n._v("完整示例")]),s("iframe",{staticStyle:{width:"100%",height:"455px",border:"none"},attrs:{src:"https://wanglin2.github.io/playground/#eNrFVt2O20QUfpWRASULWSfbUgQhW5UCEkgNQqUSF0yVeu1J4sqesTzjJFWUm4oLhEBcIH6LBFyBhBStEBdsJXgaki1vwTn2jD12stpy1ZU28sz3nZ85c35m6byRJO4sY07fGUg/DRNFJFNZcp3yME5EqsiSpGzcIYIPRcYVCzpETr0oEvPbbExWZJyKmLRAQ6uUGIY8GHpJAVFHwnbEDmPYPYy9hDqUE0J5xBTBPWQeE55FEeWUd7tkc/rF5ofTzaO/N+uzzXe/nn//8Wb917+/fUu5L7hUBH6VF3KWfhgGagqyR73eDvYOCydTBeA1wHK120d/bL8+LZUbCXAhBBfeNIIgAudtoz8HhjML2fymWHygHkRM48tViWoNSPC9knC0B7/FxugSwr098B2BkaijWRJ4ikFEwyGC7QNyfJ0sMYJwpCfrn8/X35RH2n51uv18jRjGFuQ8kNAhdrUZF1z0s8hTIVxosdWuB7TTDCL4klvb/vn79scvN5/YMSQ78XNnXpQxN+Qof2d4C1xAT1w5m+ASRexwFnRDshFLuQltndwA63wM9UV0xOpsiPxFZIAoX2EOFReS14FkgZhzvA9WXUgz0hYTaPuUxGKGFp9CCTIvUJLleXG5iiypFJTF3LYSyipGNjdF3M4hQljUJ4Hws5hx5U6Yejti+HnzwbtBu6UlyxxoHXQKKYxlv9COf9TBDepYW8W2YguF29TZ/nT25NOH5w/PijaBfyutDIn+NIyClHEkf1TpaKjba6Vp6Z/Hn50//qVprG5wj9G7FWbznpEH5lPvGTm4eXVbCPWeCNj7QoZY7SDZiiDzWx3S8uHq4Jru5vTVwetFR65SR/B2C48w8qcenzAQsftQ3hBsKpbt6H/wObg1UiljIzhTwNIR/O7KYIcddIuhBOMIForBJAEKrAgZBOGM+JEn5TF1tPa3oFCok8OaEAYVWuYnUAZdQG2iiaTRWDbB6mZuxKaeAbeq2zCoKhhYrBUDV01GllR4piciIdodqmoOWT41ey11bBYMjr0ci9KX2FmB1chLlXpcjkUa98k9ic20/fyy0V5XB/dqSYlDZqz6zen2Emkli1aDqURiE3HOFbyysBVVq8pTHYgc0V/2fTXuXg8NOyrlOWsDpXHr5bf5GnStBINlriRn3NAvG+q43eI5o9ujy2Ts+lJSp6wh7LsmF039z3Gw9vGh8kLOIyQpqzJlOI1nLAfygsb/55o5a1RVgt6JFFGmCkFzHT29ykNuFrvmp/lk75OXe71kYSzvt/uisRx76SQEu0Zr4gVByCdmo3TdLUvnKX0+Mj5ot6115Xm5ZVy/ZnleRb7+lrvMfpn3hyIN88OhR+hFQ3Mzxy7VfCJSaGx9ciVZEADCgKSTk/aVq692yCuv4X/RdLULRkcUkZ57VRrj0P3yFHQ6TpGA+H5270vB4bmee0A1AAlYDhvI+gySHSeM24VPN4VRH8YMc/XwJBVzCa+0+yChq3TPC72Q3c10lNK+rZzVf9RSHZw="}})])}],e={},p=e,v=a("2877"),l=Object(v["a"])(p,t,i,!1,null,null,null);s["default"]=l.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d226d0a.b103d90b.js b/tools/mind-map/dist/js/chunk-2d226d0a.b103d90b.js
deleted file mode 100644
index 38688d8e..00000000
--- a/tools/mind-map/dist/js/chunk-2d226d0a.b103d90b.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d226d0a"],{e9ee:function(n,e,c){"use strict";c.r(e);var t=function(){var n=this;n._self._c;return n._m(0)},_=[function(){var n=this,e=n._self._c;return e("div",[e("h1",[n._v("BatchExecution实例")]),e("p",[e("code",[n._v("batchExecution")]),n._v("用来批量异步的执行一些操作,如果某个操作同时多次调用,那么只会在下一个事件循环里执行一次。可以通过"),e("code",[n._v("mindMap.batchExecution")]),n._v("获取到该实例")]),e("h2",[n._v("方法")]),e("h3",[n._v("push(name, fn)")]),e("p",[n._v("添加任务。")]),e("p",[e("code",[n._v("name")]),n._v(":任务名称")]),e("p",[e("code",[n._v("fn")]),n._v(":任务")])])}],u={},v=u,o=c("2877"),a=Object(o["a"])(v,t,_,!1,null,null,null);e["default"]=a.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d2299c3.4bfe3eb1.js b/tools/mind-map/dist/js/chunk-2d2299c3.4bfe3eb1.js
deleted file mode 100644
index de4c2997..00000000
--- a/tools/mind-map/dist/js/chunk-2d2299c3.4bfe3eb1.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d2299c3"],{ddd1:function(s,t,e){"use strict";e.r(t);var n=function(){var s=this;s._self._c;return s._m(0)},i=[function(){var s=this,t=s._self._c;return t("div",[t("h1",[s._v("Select plugin")]),t("p",[s._v("The "),t("code",[s._v("Select")]),s._v(" plugin provides the function of right-clicking to select multiple nodes.")]),t("h2",[s._v("Register")]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" MindMap "),t("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),t("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map'")]),s._v("\n"),t("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" Select "),t("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),t("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map/src/plugins/Select.js'")]),s._v("\n"),t("span",{staticClass:"hljs-comment"},[s._v("// import Select from 'simple-mind-map/src/Select.js' Use this path for versions below v0.6.0")]),s._v("\n\nMindMap.usePlugin(Select)\n")])]),t("p",[s._v("After registration and instantiation of "),t("code",[s._v("MindMap")]),s._v(", the instance can be obtained through "),t("code",[s._v("mindMap.select")]),s._v(".")]),t("h2",[s._v("Method")]),t("h3",[s._v("toPos(x, y)")]),t("p",[s._v("Convert mouse position to position relative to the container "),t("code",[s._v("el")])])])}],o={},a=o,l=e("2877"),c=Object(l["a"])(a,n,i,!1,null,null,null);t["default"]=c.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d22bd06.def375cf.js b/tools/mind-map/dist/js/chunk-2d22bd06.def375cf.js
deleted file mode 100644
index 88a511e7..00000000
--- a/tools/mind-map/dist/js/chunk-2d22bd06.def375cf.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d22bd06"],{f127:function(e,t,s){"use strict";s.r(t);var n=function(){var e=this;e._self._c;return e._m(0)},a=[function(){var e=this,t=e._self._c;return t("div",[t("h1",[e._v("XMind parse")]),t("blockquote",[t("p",[e._v("v0.2.7+")])]),t("p",[e._v("Provides methods for importing "),t("code",[e._v("XMind")]),e._v(" files.")]),t("h2",[e._v("Import")]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-keyword"},[e._v("import")]),e._v(" xmind "),t("span",{staticClass:"hljs-keyword"},[e._v("from")]),e._v(" "),t("span",{staticClass:"hljs-string"},[e._v("'simple-mind-map/src/parse/xmind.js'")]),e._v("\n")])]),t("p",[e._v("If you are using the file in the format of "),t("code",[e._v("umd")]),e._v(", you can obtain it in the following way:")]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-tag"},[e._v("<"),t("span",{staticClass:"hljs-name"},[e._v("script")]),e._v(" "),t("span",{staticClass:"hljs-attr"},[e._v("src")]),e._v("="),t("span",{staticClass:"hljs-string"},[e._v('"simple-mind-map/dist/simpleMindMap.umd.min.js"')]),e._v(">")]),t("span",{staticClass:"hljs-tag"},[e._v(""),t("span",{staticClass:"hljs-name"},[e._v("script")]),e._v(">")]),e._v("\n")])]),t("pre",{staticClass:"hljs"},[t("code",[e._v("simpleMindMap.xmind\n")])]),t("h2",[e._v("Methods")]),t("h3",[e._v("xmind.parseXmindFile(file)")]),t("p",[e._v("Parsing the "),t("code",[e._v(".xmind")]),e._v(" file and returning the parsed data. You can use "),t("code",[e._v("mindMap.setData(data)")]),e._v(" to render the returned data to the canvas.")]),t("p",[t("code",[e._v("file")]),e._v(": "),t("code",[e._v("File")]),e._v(" object")]),t("h3",[e._v("xmind.transformXmind(content)")]),t("p",[e._v("Convert "),t("code",[e._v("xmind")]),e._v(" data. The "),t("code",[e._v(".xmind")]),e._v(" file is essentially a "),t("code",[e._v("zip")]),e._v(" file that can be decompressed by changing the suffix to zip. Inside, there is a "),t("code",[e._v("content.json")]),e._v(" file. If you have parsed this file yourself, you can pass the contents of this file to this method for conversion. You can use "),t("code",[e._v("mindMap.setData(data)")]),e._v(" to render the returned data to the canvas.")]),t("p",[t("code",[e._v("content")]),e._v(": the contents of the "),t("code",[e._v("content.json")]),e._v(" file within the "),t("code",[e._v(".xmind")]),e._v(" zip package")]),t("h3",[e._v("xmind.transformOldXmind(content)")]),t("blockquote",[t("p",[e._v("v0.2.8+")])]),t("p",[e._v("For data parsing of the "),t("code",[e._v("xmind8")]),e._v(" version, because the "),t("code",[e._v(".xmind")]),e._v(" file in this version does not have a "),t("code",[e._v("content.json")]),e._v(", it corresponds to "),t("code",[e._v("content.xml")]),e._v(".")]),t("p",[t("code",[e._v("content")]),e._v(": the contents of the "),t("code",[e._v("content.xml")]),e._v(" file within the "),t("code",[e._v(".xmind")]),e._v(" zip package")])])}],i={},o=i,v=s("2877"),d=Object(v["a"])(o,n,a,!1,null,null,null);t["default"]=d.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d230098.adb9f950.js b/tools/mind-map/dist/js/chunk-2d230098.adb9f950.js
deleted file mode 100644
index 3ecbea01..00000000
--- a/tools/mind-map/dist/js/chunk-2d230098.adb9f950.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d230098"],{eb27:function(s,a,n){"use strict";n.r(a);var t=function(){var s=this;s._self._c;return s._m(0)},e=[function(){var s=this,a=s._self._c;return a("div",[a("h1",[s._v("如何渲染一个大纲")]),a("p",[s._v("思维导图本质就是一颗树,所以你可以使用树组件来完成大纲的显示。")]),a("p",[s._v("可以监听"),a("code",[s._v("data_change")]),s._v("事件来获取当前最新的思维导图数据:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("mindMap.on("),a("span",{staticClass:"hljs-string"},[s._v("'data_change'")]),s._v(", "),a("span",{staticClass:"hljs-function"},[s._v("("),a("span",{staticClass:"hljs-params"},[s._v("data")]),s._v(") =>")]),s._v(" {\n "),a("span",{staticClass:"hljs-comment"},[s._v("// data数据是不带节点对象的纯数据")]),s._v("\n "),a("span",{staticClass:"hljs-comment"},[s._v("// 如果你需要操作节点对象,可以使用mindMap.renderer.renderTree")]),s._v("\n "),a("span",{staticClass:"hljs-built_in"},[s._v("console")]),s._v(".log(data, mindMap.renderer.renderTree)\n})\n")])]),a("p",[s._v("通常点击了大纲的某个节点,会将画布定位到该节点并激活该节点,这可以这么做:")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" node = data._node\nmindMap.renderer.moveNodeToCenter(node)\nnode.active()\n")])]),a("p",[s._v("当在大纲树上编辑了某个节点的内容,需要同步到思维导图树上:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("data._node.setText("),a("span",{staticClass:"hljs-string"},[s._v("'xxx'")]),s._v(")\n")])]),a("p",[s._v("要插入兄弟节点或子节点可以这么操作:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("mindMap.execCommand("),a("span",{staticClass:"hljs-string"},[s._v("'INSERT_NODE'")]),s._v(", "),a("span",{staticClass:"hljs-literal"},[s._v("false")]),s._v(")\nmindMap.execCommand("),a("span",{staticClass:"hljs-string"},[s._v("'INSERT_CHILD_NODE'")]),s._v(", "),a("span",{staticClass:"hljs-literal"},[s._v("false")]),s._v(")\n")])])])}],l={},_=l,c=n("2877"),i=Object(c["a"])(_,t,e,!1,null,null,null);a["default"]=i.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d2308b0.6c83815b.js b/tools/mind-map/dist/js/chunk-2d2308b0.6c83815b.js
deleted file mode 100644
index 9e058adb..00000000
--- a/tools/mind-map/dist/js/chunk-2d2308b0.6c83815b.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d2308b0"],{ed72:function(e,n,t){"use strict";t.r(n);var o=function(){var e=this;e._self._c;return e._m(0)},a=[function(){var e=this,n=e._self._c;return n("div",[n("h1",[e._v("batchExecution instance")]),n("p",[e._v("The "),n("code",[e._v("batchExecution")]),e._v(" is used to batch asynchronously perform some operations, and if a certain operation is called multiple times at the same time, it will only be executed once in the next event loop. Can be obtained through "),n("code",[e._v("mindMap.batchExecution")])]),n("h2",[e._v("Method")]),n("h3",[e._v("push(name, fn)")]),n("p",[e._v("Add task.")]),n("p",[n("code",[e._v("name")]),e._v(": task name")]),n("p",[n("code",[e._v("fn")]),e._v(": task")])])}],c={},i=c,s=t("2877"),u=Object(s["a"])(i,o,a,!1,null,null,null);n["default"]=u.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d2375fa.86620513.js b/tools/mind-map/dist/js/chunk-2d2375fa.86620513.js
deleted file mode 100644
index aefda18d..00000000
--- a/tools/mind-map/dist/js/chunk-2d2375fa.86620513.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d2375fa"],{fb9a:function(s,a,n){"use strict";n.r(a);var t=function(){var s=this;s._self._c;return s._m(0)},l=[function(){var s=this,a=s._self._c;return a("div",[a("h1",[s._v("如何渲染一个右键菜单")]),a("p",[s._v("右键菜单可以方便的完成一些功能,大体上分两种,一是在画布上点击右键,二是在节点上点击右键,两者的功能肯定是不一样的,甚至根节点和其他节点功能上也有些不同,比如根节点不能添加同级节点,也不能被删除等等。")]),a("p",[s._v("右键菜单的UI界面需要你自行开发,可以设置成绝对定位或固定定位,然后让它显示在鼠标右键点击的位置即可。")]),a("h2",[s._v("右键菜单的显示和隐藏")]),a("p",[s._v("首先监听"),a("code",[s._v("node_contextmenu")]),s._v("事件在右键点击节点时显示菜单:")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-comment"},[s._v("// 当前右键点击的类型")]),s._v("\n"),a("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" type = ref("),a("span",{staticClass:"hljs-string"},[s._v("''")]),s._v(")\n"),a("span",{staticClass:"hljs-comment"},[s._v("// 如果点击的节点,那么代表被点击的节点")]),s._v("\n"),a("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" currentNode = shallowRef("),a("span",{staticClass:"hljs-literal"},[s._v("null")]),s._v(")\n"),a("span",{staticClass:"hljs-comment"},[s._v("// 菜单显示的位置")]),s._v("\n"),a("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" left = ref("),a("span",{staticClass:"hljs-number"},[s._v("0")]),s._v(")\n"),a("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" top = ref("),a("span",{staticClass:"hljs-number"},[s._v("0")]),s._v(")\n"),a("span",{staticClass:"hljs-comment"},[s._v("// 是否显示菜单")]),s._v("\n"),a("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" show = ref("),a("span",{staticClass:"hljs-literal"},[s._v("false")]),s._v(")\n\nmindMap.on("),a("span",{staticClass:"hljs-string"},[s._v("'node_contextmenu'")]),s._v(", "),a("span",{staticClass:"hljs-function"},[s._v("("),a("span",{staticClass:"hljs-params"},[s._v("e, node")]),s._v(") =>")]),s._v(" {\n type.value = "),a("span",{staticClass:"hljs-string"},[s._v("'node'")]),s._v("\n left.value = e.clientX + "),a("span",{staticClass:"hljs-number"},[s._v("10")]),s._v("\n top.value = e.clientY + "),a("span",{staticClass:"hljs-number"},[s._v("10")]),s._v("\n show.value = "),a("span",{staticClass:"hljs-literal"},[s._v("true")]),s._v("\n currentNode.value = node\n})\n")])]),a("p",[s._v("你可以根据当前点击的节点来判断一些操作是否可用。比如根节点不能删除,不能插入同级节点,又比如同级第一个节点不能再被往上移,同级最后一个节点不能被往下移。")]),a("p",[s._v("对于画布的处理会比较麻烦,不能直接监听"),a("code",[s._v("contextmenu")]),s._v("事件,因为会和右键多选节点冲突,所以需要结合"),a("code",[s._v("mousedown")]),s._v("事件和"),a("code",[s._v("mouseup")]),s._v("事件来处理。")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-comment"},[s._v("// 记录鼠标右键按下的位置")]),s._v("\n"),a("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" mousedownX = ref("),a("span",{staticClass:"hljs-number"},[s._v("0")]),s._v(")\n"),a("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" mousedownY = ref("),a("span",{staticClass:"hljs-number"},[s._v("0")]),s._v(")\n"),a("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" isMousedown = ref("),a("span",{staticClass:"hljs-literal"},[s._v("false")]),s._v(")\n\nmindMap.on("),a("span",{staticClass:"hljs-string"},[s._v("'svg_mousedown'")]),s._v(", "),a("span",{staticClass:"hljs-function"},[s._v("("),a("span",{staticClass:"hljs-params"},[s._v("e")]),s._v(") =>")]),s._v(" {\n "),a("span",{staticClass:"hljs-comment"},[s._v("// 如果不是右键点击直接返回")]),s._v("\n "),a("span",{staticClass:"hljs-keyword"},[s._v("if")]),s._v(" (e.which !== "),a("span",{staticClass:"hljs-number"},[s._v("3")]),s._v(") {\n "),a("span",{staticClass:"hljs-keyword"},[s._v("return")]),s._v("\n }\n mousedownX.value = e.clientX\n mousedownY.value = e.clientY\n isMousedown.value = "),a("span",{staticClass:"hljs-literal"},[s._v("true")]),s._v("\n})\n\nmindMap.on("),a("span",{staticClass:"hljs-string"},[s._v("'mouseup'")]),s._v(", "),a("span",{staticClass:"hljs-function"},[s._v("("),a("span",{staticClass:"hljs-params"},[s._v("e")]),s._v(") =>")]),s._v(" {\n "),a("span",{staticClass:"hljs-keyword"},[s._v("if")]),s._v(" (!isMousedown.value) {\n "),a("span",{staticClass:"hljs-keyword"},[s._v("return")]),s._v("\n }\n isMousedown.value = "),a("span",{staticClass:"hljs-literal"},[s._v("false")]),s._v("\n "),a("span",{staticClass:"hljs-comment"},[s._v("// 如果鼠标松开和按下的距离大于3,则不认为是点击事件")]),s._v("\n "),a("span",{staticClass:"hljs-keyword"},[s._v("if")]),s._v(" (\n "),a("span",{staticClass:"hljs-built_in"},[s._v("Math")]),s._v(".abs(mousedownX.value - e.clientX) > "),a("span",{staticClass:"hljs-number"},[s._v("3")]),s._v(" ||\n "),a("span",{staticClass:"hljs-built_in"},[s._v("Math")]),s._v(".abs(mousedownX.value - e.clientY) > "),a("span",{staticClass:"hljs-number"},[s._v("3")]),s._v("\n ) {\n hide()\n "),a("span",{staticClass:"hljs-keyword"},[s._v("return")]),s._v("\n }\n type.value = "),a("span",{staticClass:"hljs-string"},[s._v("'svg'")]),s._v("\n left.value = e.clientX + "),a("span",{staticClass:"hljs-number"},[s._v("10")]),s._v("\n top.value = e.clientY + "),a("span",{staticClass:"hljs-number"},[s._v("10")]),s._v("\n show.value = "),a("span",{staticClass:"hljs-literal"},[s._v("true")]),s._v("\n})\n")])]),a("p",[s._v("很简单,其实就是判断鼠标按下和松开的距离是否很小,是的话就认为是点击事件,否则应该是鼠标拖动。")]),a("p",[s._v("右键菜单显示了,肯定就需要隐藏,当左键点击了画布、左键点击了节点、左键点击了展开收起按钮时都需要隐藏右键菜单。")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" hide = "),a("span",{staticClass:"hljs-function"},[s._v("() =>")]),s._v(" {\n show.value = "),a("span",{staticClass:"hljs-literal"},[s._v("false")]),s._v("\n left.value = "),a("span",{staticClass:"hljs-number"},[s._v("0")]),s._v("\n top.value = "),a("span",{staticClass:"hljs-number"},[s._v("0")]),s._v("\n type.value = "),a("span",{staticClass:"hljs-string"},[s._v("''")]),s._v("\n}\nmindMap.on("),a("span",{staticClass:"hljs-string"},[s._v("'node_click'")]),s._v(", hide)\nmindMap.on("),a("span",{staticClass:"hljs-string"},[s._v("'draw_click'")]),s._v(", hide)\nmindMap.on("),a("span",{staticClass:"hljs-string"},[s._v("'expand_btn_click'")]),s._v(", hide)\n")])]),a("h2",[s._v("复制、剪切、粘贴的实现")]),a("p",[s._v("接下来介绍一下复制、剪切、粘贴的实现。")]),a("p",[s._v("一般来说你的右键菜单中肯定也会添加这三个按钮,另外快捷键操作也是必不可少的,但是这三个快捷键是没有内置的,所以你需要自己注册一下:")]),a("pre",{staticClass:"hljs"},[a("code",[s._v("mindMap.keyCommand.addShortcut("),a("span",{staticClass:"hljs-string"},[s._v("'Control+c'")]),s._v(", copy)\nmindMap.keyCommand.addShortcut("),a("span",{staticClass:"hljs-string"},[s._v("'Control+v'")]),s._v(", paste)\nmindMap.keyCommand.addShortcut("),a("span",{staticClass:"hljs-string"},[s._v("'Control+x'")]),s._v(", cut)\n")])]),a("p",[s._v("如需删除调用"),a("code",[s._v("removeShortcut")]),s._v("方法即可。")]),a("p",[s._v("接下来实现一下这三个方法:")]),a("pre",{staticClass:"hljs"},[a("code",[a("span",{staticClass:"hljs-comment"},[s._v("// 保存复制/剪切的节点的数据,后续可以原来粘贴")]),s._v("\n"),a("span",{staticClass:"hljs-keyword"},[s._v("let")]),s._v(" copyData = "),a("span",{staticClass:"hljs-literal"},[s._v("null")]),s._v("\n\n"),a("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" copy = "),a("span",{staticClass:"hljs-function"},[s._v("() =>")]),s._v(" {\n copyData = mindMap.renderer.copyNode()\n}\n\n"),a("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" cut = "),a("span",{staticClass:"hljs-function"},[s._v("() =>")]),s._v(" {\n mindMap.execCommand("),a("span",{staticClass:"hljs-string"},[s._v("'CUT_NODE'")]),s._v(", "),a("span",{staticClass:"hljs-function"},[a("span",{staticClass:"hljs-params"},[s._v("_copyData")]),s._v(" =>")]),s._v(" {\n copyData = _copyData\n })\n}\n\n"),a("span",{staticClass:"hljs-keyword"},[s._v("const")]),s._v(" paste = "),a("span",{staticClass:"hljs-function"},[s._v("() =>")]),s._v(" {\n mindMap.execCommand("),a("span",{staticClass:"hljs-string"},[s._v("'PASTE_NODE'")]),s._v(", copyData)\n}\n")])]),a("h2",[s._v("完整示例")]),a("iframe",{staticStyle:{width:"100%",height:"455px",border:"none"},attrs:{src:"https://wanglin2.github.io/playground/#eNrFV1tv1EYU/itTo2o3JfEG0Re2SQQFHngIRUAlohpFjj2bNXg9lj3ObhoioagSSUkCakFKC6G0BKhaEWhLuWQJ/Jm1d3nqX+iZi2/rkNBKVR9WWp/bd+Zc5pyZU464rjoTYKWqjPiGZ7kU+ZgG7pjmWA2XeBTNIQ/XBhFxxkngUGwOIr+u2zZpnsY1NI9qHmmgElgoJRrjlmOO665gaYoPZBsPNYA61NBdTdEchDTHxhQxGpMcRU5g25qjOZUKCre/DZdWwmt/vL2x2V14GV5pd7//qvtbO7xzVXMM4vgU0VkXgxI4Vi6VBoTWg4Xozu1Evvf1Avz/69Xy24V7nZeLnfa93o8/9376tU8gNmgEnocdepKYzG56wDLzSwD0rt0OV25Ga6+7G1ug39le6W5vxvo2rlHp0DCISy8JO1lMAxPR2uPw+gNhQpiLRf06aUrZmm77WEJuPgm3b759dTe6e0XEI1pe6ry4WoBvkMDHJmk65wpOJKyJAsvyIaWCWcTuvFkPH62FGyvh4rNKuPRLuHgliRr8iW4+iVY2Ib7h9dVu+1F47XGnfT9c/SFav9/9fa339KlIsEHc2WM61TMZlgEHBhDLA2h0DM2xikBZYVkYKiTFxB72VMZj2SmDd/MZMwELe85KrIpb2DhKGg3dMculo5+fnTz52bHjpUE0mcIkOn3oiYjgzucxXd2nrEr2Rj115MzZ4zFubDNvrG7xisvZYsWgzuh2wDg8JYLOiiyhDwsa1FiBBM2R0ErQlhwu6d9yBivTf7gZ921ZuoHtKjKJETSgMdRpTI/bmP39dPYEHE1qHiUO1S0He6WBQaFlwhGraVw1hRE0JUMSZIpblJE1Jbr7UjYjvxl4xKUxJmjULduEOmDCX6Q2+sztiNKP1Nla7m497AfLA+4Aej7lZeX+Jw/iv5IW61mORU8Twq+wU8S3qEUc0CyxooHqKxmQOkjTeS4+P/CJuITTwr2IZ2XdqrppnqnDRQ7NBZ0DGfaIvd+QJQzlq9H3VZoBJd4u/0irxaACynQyDhKnXHLgcNCccJIWhVoMQLCMBxEjZxso3wGMC11Q6CCsGrYFUTmH9qMDO7RTzJ/I8HOtSb1AdmZmfCRcBstOzW6PfKjZSfyZ6cnkaubHyB4gmWedFytsaGRn4a2n0er93psb4a07MvM10Fabdcuoow9GR9HBgWwNejDNPR7IpHbSaVGMRZ/ERDEaEjSdHX3xECfO5pudl1sM3MJJmfMfFIztdYKd0DMXZRI+MTqj9dfhq8vhN8vJ9Ow9X+8+aIcbDztbqwfZEFv8DiLd29zovNiCeItId7audtrPUjdTj8Z1Wlf1Kb9ciORQGskBNIYOokuXdlOLw5uqTXA1oZOLAhsUbPjtEpV82UOF/YdV/666Fh1qW8ZFSDXzOdf5TML09ObuErjlwt0wOUWdfjmGOVIReypsqPBBMSyXOsXwhdCIac0gw9Z9f1RTpMVjuEE0hbOlgGWm3GR+gchIBbhZwdiSvHDG4cLRFDQzZNWAyGICX1WfztoYvud4mKtiE9yPSi67xSCwVb4GCgIkKvYEIGLXY4tiqYUGljdWKqrRd/lzAoyAF4d5nDjLnQVFsbZlD7TboQpGAphWY2Ln+7c2+K0PVsQymLcyUsllbY9g8Dp+/1iMRTee9f58Hi1djm4v7YGbsuN/ORH45NnlEofl40ZT1Ip40ch1ScV+QzV8X1OSmapmai/u4aZl0noVWmr4Qy6HkJtMaQ8DojWDOYM3M/vt66/R2FSqCJcJsQMqFEWjV9Gw/OLFF38U4evYmq6D+MfDw24rRt4Z96Nky9W9aQtwY6suzG/LmY4Jieuwridp2dPrL4cAD7eq6NChQ5I0pRsXpz3YV80q2ler1frhDmRcLiKyQkjeFIHnE68K6Bbbf2IluER4ZpVBReSVvUzVCz5x4CHMVTXJgLwmO52mwDtXLHJqBf6qHmzUVgOzEhia8kjTh5fKBdCQO9kOb1+hWywgpiV9m1fm/wbZvoo9"}})])}],v={},e=v,i=n("2877"),c=Object(i["a"])(e,t,l,!1,null,null,null);a["default"]=c.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-2d238428.9462b5a1.js b/tools/mind-map/dist/js/chunk-2d238428.9462b5a1.js
deleted file mode 100644
index f961fd60..00000000
--- a/tools/mind-map/dist/js/chunk-2d238428.9462b5a1.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d238428"],{ff2d:function(s,n,t){"use strict";t.r(n);var a=function(){var s=this;s._self._c;return s._m(0)},i=[function(){var s=this,n=s._self._c;return n("div",[n("h1",[s._v("Drag plugin")]),n("p",[s._v("The "),n("code",[s._v("Drag")]),s._v(" plugin provides the function of node dragging, including:")]),n("p",[s._v("1.Drag the node to move and change its position in the node tree, That is, as a child node, sibling node, etc. of other nodes")]),n("p",[s._v("2.Drag the node to the custom canvas location")]),n("p",[s._v("Please refer to the "),n("a",{attrs:{href:"/mind-map/#/doc/zh/constructor"}},[s._v("Instantiation Options")]),s._v(" of the "),n("code",[s._v("MindMap")]),s._v(" class for configuration.")]),n("h2",[s._v("Register")]),n("pre",{staticClass:"hljs"},[n("code",[n("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" MindMap "),n("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),n("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map'")]),s._v("\n"),n("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" Drag "),n("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),n("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map/src/plugins/Drag.js'")]),s._v("\n"),n("span",{staticClass:"hljs-comment"},[s._v("// import Drag from 'simple-mind-map/src/Drag.js' Use this path for versions below v0.6.0")]),s._v("\n\nMindMap.usePlugin(Drag)\n")])]),n("p",[s._v("After registration and instantiation of "),n("code",[s._v("MindMap")]),s._v(", the instance can be obtained through "),n("code",[s._v("mindMap.drag")]),s._v(".")])])}],e={},o=e,r=t("2877"),c=Object(r["a"])(o,a,i,!1,null,null,null);n["default"]=c.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-3a2f3e67.13278516.js b/tools/mind-map/dist/js/chunk-3a2f3e67.13278516.js
deleted file mode 100644
index a7d93ee6..00000000
--- a/tools/mind-map/dist/js/chunk-3a2f3e67.13278516.js
+++ /dev/null
@@ -1,16 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3a2f3e67"],{"01b1":function(t,e,r){var i=r("9431"),n=r("1a89");t.exports=/ipad|iphone|ipod/i.test(i)&&void 0!==n.Pebble},"03e8":function(t,e,r){"use strict";var i=r("6632"),n=r("46ab"),a=r("b2d1"),s=r("44c1"),o=r("0d96"),u=r("fe11"),h=r("d530"),c=r("279c").get,l=r("167a"),f=r("90c6"),d=u("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,p=g,v=n("".charAt),y=n("".indexOf),m=n("".replace),x=n("".slice),b=function(){var t=/a/,e=/b*/g;return i(g,t,"a"),i(g,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),w=o.BROKEN_CARET,S=void 0!==/()??/.exec("")[1],T=b||S||w||l||f;T&&(p=function(t){var e,r,n,o,u,l,f,T=this,A=c(T),C=a(t),O=A.raw;if(O)return O.lastIndex=T.lastIndex,e=i(p,O,C),T.lastIndex=O.lastIndex,e;var E=A.groups,P=w&&T.sticky,M=i(s,T),N=T.source,R=0,V=C;if(P&&(M=m(M,"y",""),-1===y(M,"g")&&(M+="g"),V=x(C,T.lastIndex),T.lastIndex>0&&(!T.multiline||T.multiline&&"\n"!==v(C,T.lastIndex-1))&&(N="(?: "+N+")",V=" "+V,R++),r=new RegExp("^(?:"+N+")",M)),S&&(r=new RegExp("^"+N+"$(?!\\s)",M)),b&&(n=T.lastIndex),o=i(g,P?r:T,V),P?o?(o.input=x(o.input,R),o[0]=x(o[0],R),o.index=T.lastIndex,T.lastIndex+=o[0].length):T.lastIndex=0:b&&o&&(T.lastIndex=T.global?o.index+o[0].length:n),S&&o&&o.length>1&&i(d,o[0],r,(function(){for(u=1;u")}));s("replace",(function(t,e,r){var a=M?"$":"$0";return[function(t,r){var i=g(this),a=c(t)?void 0:v(t,b);return a?n(a,t,i,r):n(e,d(i),t,r)},function(t,n){var s=u(this),o=d(t);if("string"==typeof n&&-1===C(n,a)&&-1===C(n,"$<")){var c=r(e,s,o,n);if(c.done)return c.value}var g=h(n);g||(n=d(n));var v=s.global;if(v){var x=s.unicode;s.lastIndex=0}var b=[];while(1){var P=m(s,o);if(null===P)break;if(A(b,P),!v)break;var M=d(P[0]);""===M&&(s.lastIndex=p(o,f(s.lastIndex),x))}for(var N="",R=0,V=0;V=R&&(N+=O(o,R,k)+U,R=k+_.length)}return N+O(o,R)}]}),!N||!P||M)},"0b10":function(t,e,r){var i=r("2393"),n=r("364c");t.exports=!i&&!n&&"object"==typeof window&&"object"==typeof document},"0bbb":function(t,e){t.exports=function(t){this.ok=!1,this.alpha=1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=t.replace(/ /g,""),t=t.toLowerCase();var e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};t=e[t]||t;for(var r=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseFloat(t[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],i=0;i3&&(this.alpha=o[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),r=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==r.length&&(r="0"+r),"#"+t+e+r},this.getHelpXML=function(){for(var t=new Array,i=0;i "+h.toRGB()+" -> "+h.toHex());u.appendChild(c),u.appendChild(l),o.appendChild(u)}catch(f){}return o}}},"0bdf":function(t,e,r){var i=r("50f5"),n=r("9440"),a=r("8bf1"),s=Array,o=Math.max;t.exports=function(t,e,r){for(var u=n(t),h=i(e,u),c=i(void 0===r?u:r,u),l=s(o(c-h,0)),f=0;h1||"".split(/.?/).length?function(t,r){var a=g(c(this)),s=void 0===r?S:r>>>0;if(0===s)return[];if(void 0===t)return[a];if(!h(t))return n(e,a,t,s);var o,u,l,f=[],d=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),p=0,y=new RegExp(t.source,d+"g");while(o=n(m,y,a)){if(u=y.lastIndex,u>p&&(O(f,E(a,p,o.index)),o.length>1&&o.index=s))break;y.lastIndex===o.index&&y.lastIndex++}return p===a.length?!l&&C(y,"")||O(f,""):O(f,E(a,p)),f.length>s?v(f,0,s):f}:"0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:n(e,this,t,r)}:e,[function(e,r){var i=c(this),s=u(e)?void 0:p(e,t);return s?n(s,e,i,r):n(a,g(i),e,r)},function(t,i){var n=o(this),s=g(t),u=r(a,n,s,i,a!==e);if(u.done)return u.value;var h=l(n,RegExp),c=n.unicode,p=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(w?"g":"y"),v=new h(w?"^(?:"+n.source+")":n,p),m=void 0===i?S:i>>>0;if(0===m)return[];if(0===s.length)return null===y(v,s)?[s]:[];var x=0,b=0,A=[];while(b0&&void 0!==arguments[0]?arguments[0]:{},e={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,createCanvas(t,e){return new OffscreenCanvas(t,e)},createImage(t){return n()((function*(){var e=yield fetch(t),r=yield e.blob(),i=yield createImageBitmap(r);return i}))()}};return"undefined"===typeof DOMParser&&"undefined"!==typeof t||Reflect.deleteProperty(e,"DOMParser"),e}function g(t){var{DOMParser:e,canvas:r,fetch:i}=t;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,fetch:i,createCanvas:r.createCanvas,createImage:r.loadImage}}var p=Object.freeze({__proto__:null,offscreen:d,node:g});function v(t){return t.replace(/(?!\u3000)\s+/gm," ")}function y(t){return t.replace(/^[\n \t]+/,"")}function m(t){return t.replace(/[\n \t]+$/,"")}function x(t){var e=(t||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return e.map(parseFloat)}var b=/^[A-Z-]+$/;function w(t){return b.test(t)?t.toLowerCase():t}function S(t){var e=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(t)||[];return e[2]||e[3]||e[4]}function T(t){if(!t.startsWith("rgb"))return t;var e=3,r=t.replace(/\d+(\.\d+)?/g,(t,r)=>e--&&r?String(Math.round(parseFloat(t))):t);return r}var A=/(\[[^\]]+\])/g,C=/(#[^\s+>~.[:]+)/g,O=/(\.[^\s+>~.[:]+)/g,E=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,P=/(:[\w-]+\([^)]*\))/gi,M=/(:[^\s+>~.[:]+)/g,N=/([^\s+>~.[:]+)/g;function R(t,e){var r=e.exec(t);return r?[t.replace(e," "),r.length]:[t,0]}function V(t){var e=[0,0,0],r=t.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),i=0;return[r,i]=R(r,A),e[1]+=i,[r,i]=R(r,C),e[0]+=i,[r,i]=R(r,O),e[1]+=i,[r,i]=R(r,E),e[2]+=i,[r,i]=R(r,P),e[1]+=i,[r,i]=R(r,M),e[1]+=i,r=r.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[r,i]=R(r,N),e[2]+=i,e.join("")}var _=1e-8;function k(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))}function I(t,e){return(t[0]*e[0]+t[1]*e[1])/(k(t)*k(e))}function L(t,e){return(t[0]*e[1]0&&void 0!==arguments[0]?arguments[0]:" ",{document:e,name:r}=this;return v(this.getString()).trim().split(t).map(t=>new j(e,r,t))}hasValue(t){var{value:e}=this;return null!==e&&""!==e&&(t||0!==e)&&"undefined"!==typeof e}isString(t){var{value:e}=this,r="string"===typeof e;return r&&t?t.test(e):r}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var t=this.getString();switch(!0){case t.endsWith("px"):case/^[0-9]+$/.test(t):return!0;default:return!1}}setValue(t){return this.value=t,this}getValue(t){return"undefined"===typeof t||this.hasValue()?this.value:t}getNumber(t){if(!this.hasValue())return"undefined"===typeof t?0:parseFloat(t);var{value:e}=this,r=parseFloat(e);return this.isString(/%$/)&&(r/=100),r}getString(t){return"undefined"===typeof t||this.hasValue()?"undefined"===typeof this.value?"":String(this.value):String(t)}getColor(t){var e=this.getString(t);return this.isNormalizedColor||(this.isNormalizedColor=!0,e=T(e),this.value=e),e}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var[r,i]="boolean"===typeof t?[void 0,t]:[t],{viewPort:n}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(n.computeSize("x"),n.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(n.computeSize("x"),n.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*n.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*n.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return 15*this.getNumber();case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case this.isString(/%$/)&&i:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*n.computeSize(r);default:var a=this.getNumber();return e&&a<1?a*n.computeSize(r):a}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var t=this.getString(),e=/#([^)'"]+)/.exec(t);return e&&(e=e[1]),e||(e=t),this.document.definitions[e]}getFillStyleDefinition(t,e){var r=this.getDefinition();if(!r)return null;if("function"===typeof r.createGradient)return r.createGradient(this.document.ctx,t,e);if("function"===typeof r.createPattern){if(r.getHrefAttribute().hasValue()){var i=r.getAttribute("patternTransform");r=r.getHrefAttribute().getDefinition(),i.hasValue()&&r.getAttribute("patternTransform",!0).setValue(i.value)}return r.createPattern(this.document.ctx,t,e)}return null}getTextBaseline(){return this.hasValue()?j.textBaselineMapping[this.getString()]:null}addOpacity(t){for(var e=this.getColor(),r=e.length,i=0,n=0;n1&&void 0!==arguments[1]?arguments[1]:0,[r=e,i=e]=x(t);return new q(r,i)}static parseScale(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,[r=e,i=r]=x(t);return new q(r,i)}static parsePath(t){for(var e=x(t),r=e.length,i=[],n=0;n0}runEvents(){if(this.working){var{screen:t,events:e,eventElements:r}=this,{style:i}=t.ctx.canvas;i&&(i.cursor=""),e.forEach((t,e)=>{var{run:i}=t,n=r[e];while(n)i(n),n=n.parent}),this.events=[],this.eventElements=[]}}checkPath(t,e){if(this.working&&e){var{events:r,eventElements:i}=this;r.forEach((r,n)=>{var{x:a,y:s}=r;!i[n]&&e.isPointInPath&&e.isPointInPath(a,s)&&(i[n]=t)})}}checkBoundingBox(t,e){if(this.working&&e){var{events:r,eventElements:i}=this;r.forEach((r,n)=>{var{x:a,y:s}=r;!i[n]&&e.isPointInBox(a,s)&&(i[n]=t)})}}mapXY(t,e){var{window:r,ctx:i}=this.screen,n=new q(t,e),a=i.canvas;while(a)n.x-=a.offsetLeft,n.y-=a.offsetTop,a=a.offsetParent;return r.scrollX&&(n.x+=r.scrollX),r.scrollY&&(n.y+=r.scrollY),n}onClick(t){var{x:e,y:r}=this.mapXY(t.clientX,t.clientY);this.events.push({type:"onclick",x:e,y:r,run(t){t.onClick&&t.onClick()}})}onMouseMove(t){var{x:e,y:r}=this.mapXY(t.clientX,t.clientY);this.events.push({type:"onmousemove",x:e,y:r,run(t){t.onMouseMove&&t.onMouseMove()}})}}var G="undefined"!==typeof window?window:null,Q="undefined"!==typeof fetch?fetch.bind(void 0):null;class ${constructor(t){var{fetch:e=Q,window:r=G}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.ctx=t,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new Y,this.mouse=new W(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=r,this.fetch=e}wait(t){this.waits.push(t)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var t=this.waits.every(t=>t());return t&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=t,t}setDefaults(t){t.strokeStyle="rgba(0,0,0,0)",t.lineCap="butt",t.lineJoin="miter",t.miterLimit=4}setViewBox(t){var{document:e,ctx:r,aspectRatio:i,width:n,desiredWidth:a,height:s,desiredHeight:o,minX:u=0,minY:h=0,refX:c,refY:l,clip:f=!1,clipX:d=0,clipY:g=0}=t,p=v(i).replace(/^defer\s/,""),[y,m]=p.split(" "),x=y||"xMidYMid",b=m||"meet",w=n/a,S=s/o,T=Math.min(w,S),A=Math.max(w,S),C=a,O=o;"meet"===b&&(C*=T,O*=T),"slice"===b&&(C*=A,O*=A);var E=new j(e,"refX",c),P=new j(e,"refY",l),M=E.hasValue()&&P.hasValue();if(M&&r.translate(-T*E.getPixels("x"),-T*P.getPixels("y")),f){var N=T*d,R=T*g;r.beginPath(),r.moveTo(N,R),r.lineTo(n,R),r.lineTo(n,s),r.lineTo(N,s),r.closePath(),r.clip()}if(!M){var V="meet"===b&&T===S,_="slice"===b&&A===S,k="meet"===b&&T===w,I="slice"===b&&A===w;x.startsWith("xMid")&&(V||_)&&r.translate(n/2-C/2,0),x.endsWith("YMid")&&(k||I)&&r.translate(0,s/2-O/2),x.startsWith("xMax")&&(V||_)&&r.translate(n-C,0),x.endsWith("YMax")&&(k||I)&&r.translate(0,s-O)}switch(!0){case"none"===x:r.scale(w,S);break;case"meet"===b:r.scale(T,T);break;case"slice"===b:r.scale(A,A);break}r.translate(-u,-h)}start(t){var{enableRedraw:e=!1,ignoreMouse:r=!1,ignoreAnimation:i=!1,ignoreDimensions:n=!1,ignoreClear:a=!1,forceRedraw:s,scaleWidth:o,scaleHeight:h,offsetX:c,offsetY:l}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{FRAMERATE:f,mouse:d}=this,g=1e3/f;if(this.frameDuration=g,this.readyPromise=new Promise(t=>{this.resolveReady=t}),this.isReady()&&this.render(t,n,a,o,h,c,l),e){var p=Date.now(),v=p,y=0,m=()=>{p=Date.now(),y=p-v,y>=g&&(v=p-y%g,this.shouldUpdate(i,s)&&(this.render(t,n,a,o,h,c,l),d.runEvents())),this.intervalId=u()(m)};r||d.start(),this.intervalId=u()(m)}}stop(){this.intervalId&&(u.a.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(t,e){if(!t){var{frameDuration:r}=this,i=this.animations.reduce((t,e)=>e.update(r)||t,!1);if(i)return!0}return!("function"!==typeof e||!e())||(!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents())}render(t,e,r,i,n,a,s){var{CLIENT_WIDTH:o,CLIENT_HEIGHT:u,viewPort:h,ctx:c,isFirstRender:l}=this,f=c.canvas;h.clear(),f.width&&f.height?h.setCurrent(f.width,f.height):h.setCurrent(o,u);var d=t.getStyle("width"),g=t.getStyle("height");!e&&(l||"number"!==typeof i&&"number"!==typeof n)&&(d.hasValue()&&(f.width=d.getPixels("x"),f.style&&(f.style.width="".concat(f.width,"px"))),g.hasValue()&&(f.height=g.getPixels("y"),f.style&&(f.style.height="".concat(f.height,"px"))));var p=f.clientWidth||f.width,v=f.clientHeight||f.height;if(e&&d.hasValue()&&g.hasValue()&&(p=d.getPixels("x"),v=g.getPixels("y")),h.setCurrent(p,v),"number"===typeof a&&t.getAttribute("x",!0).setValue(a),"number"===typeof s&&t.getAttribute("y",!0).setValue(s),"number"===typeof i||"number"===typeof n){var y=x(t.getAttribute("viewBox").getString()),m=0,b=0;if("number"===typeof i){var w=t.getStyle("width");w.hasValue()?m=w.getPixels("x")/i:isNaN(y[2])||(m=y[2]/i)}if("number"===typeof n){var S=t.getStyle("height");S.hasValue()?b=S.getPixels("y")/n:isNaN(y[3])||(b=y[3]/n)}m||(m=b),b||(b=m),t.getAttribute("width",!0).setValue(i),t.getAttribute("height",!0).setValue(n);var T=t.getStyle("transform",!0,!0);T.setValue("".concat(T.getString()," scale(").concat(1/m,", ").concat(1/b,")"))}r||c.clearRect(0,0,p,v),t.render(c),l&&(this.isFirstRender=!1)}}$.defaultWindow=G,$.defaultFetch=Q;var{defaultFetch:Z}=$,K="undefined"!==typeof DOMParser?DOMParser:null;class J{constructor(){var{fetch:t=Z,DOMParser:e=K}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.fetch=t,this.DOMParser=e}parse(t){var e=this;return n()((function*(){return t.startsWith("<")?e.parseFromString(t):e.load(t)}))()}parseFromString(t){var e=new this.DOMParser;try{return this.checkDocument(e.parseFromString(t,"image/svg+xml"))}catch(r){return this.checkDocument(e.parseFromString(t,"text/xml"))}}checkDocument(t){var e=t.getElementsByTagName("parsererror")[0];if(e)throw new Error(e.textContent);return t}load(t){var e=this;return n()((function*(){var r=yield e.fetch(t),i=yield r.text();return e.parseFromString(i)}))()}}class tt{constructor(t,e){this.type="translate",this.point=null,this.point=q.parse(e)}apply(t){var{x:e,y:r}=this.point;t.translate(e||0,r||0)}unapply(t){var{x:e,y:r}=this.point;t.translate(-1*e||0,-1*r||0)}applyToPoint(t){var{x:e,y:r}=this.point;t.applyTransform([1,0,0,1,e||0,r||0])}}class et{constructor(t,e,r){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var i=x(e);this.angle=new j(t,"angle",i[0]),this.originX=r[0],this.originY=r[1],this.cx=i[1]||0,this.cy=i[2]||0}apply(t){var{cx:e,cy:r,originX:i,originY:n,angle:a}=this,s=e+i.getPixels("x"),o=r+n.getPixels("y");t.translate(s,o),t.rotate(a.getRadians()),t.translate(-s,-o)}unapply(t){var{cx:e,cy:r,originX:i,originY:n,angle:a}=this,s=e+i.getPixels("x"),o=r+n.getPixels("y");t.translate(s,o),t.rotate(-1*a.getRadians()),t.translate(-s,-o)}applyToPoint(t){var{cx:e,cy:r,angle:i}=this,n=i.getRadians();t.applyTransform([1,0,0,1,e||0,r||0]),t.applyTransform([Math.cos(n),Math.sin(n),-Math.sin(n),Math.cos(n),0,0]),t.applyTransform([1,0,0,1,-e||0,-r||0])}}class rt{constructor(t,e,r){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var i=q.parseScale(e);0!==i.x&&0!==i.y||(i.x=_,i.y=_),this.scale=i,this.originX=r[0],this.originY=r[1]}apply(t){var{scale:{x:e,y:r},originX:i,originY:n}=this,a=i.getPixels("x"),s=n.getPixels("y");t.translate(a,s),t.scale(e,r||e),t.translate(-a,-s)}unapply(t){var{scale:{x:e,y:r},originX:i,originY:n}=this,a=i.getPixels("x"),s=n.getPixels("y");t.translate(a,s),t.scale(1/e,1/r||e),t.translate(-a,-s)}applyToPoint(t){var{x:e,y:r}=this.scale;t.applyTransform([e||0,0,0,r||0,0,0])}}class it{constructor(t,e,r){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=x(e),this.originX=r[0],this.originY=r[1]}apply(t){var{originX:e,originY:r,matrix:i}=this,n=e.getPixels("x"),a=r.getPixels("y");t.translate(n,a),t.transform(i[0],i[1],i[2],i[3],i[4],i[5]),t.translate(-n,-a)}unapply(t){var{originX:e,originY:r,matrix:i}=this,n=i[0],a=i[2],s=i[4],o=i[1],u=i[3],h=i[5],c=0,l=0,f=1,d=1/(n*(u*f-h*l)-a*(o*f-h*c)+s*(o*l-u*c)),g=e.getPixels("x"),p=r.getPixels("y");t.translate(g,p),t.transform(d*(u*f-h*l),d*(h*c-o*f),d*(s*l-a*f),d*(n*f-s*c),d*(a*h-s*u),d*(s*o-n*h)),t.translate(-g,-p)}applyToPoint(t){t.applyTransform(this.matrix)}}class nt extends it{constructor(t,e,r){super(t,e,r),this.type="skew",this.angle=null,this.angle=new j(t,"angle",e)}}class at extends nt{constructor(t,e,r){super(t,e,r),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class st extends nt{constructor(t,e,r){super(t,e,r),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}function ot(t){return v(t).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function ut(t){var[e,r]=t.split("(");return[e.trim(),r.trim().replace(")","")]}class ht{constructor(t,e,r){this.document=t,this.transforms=[];var i=ot(e);i.forEach(t=>{if("none"!==t){var[e,i]=ut(t),n=ht.transformTypes[e];"undefined"!==typeof n&&this.transforms.push(new n(this.document,i,r))}})}static fromElement(t,e){var r=e.getStyle("transform",!1,!0),[i,n=i]=e.getStyle("transform-origin",!1,!0).split(),a=[i,n];return r.hasValue()?new ht(t,r.getString(),a):null}apply(t){for(var{transforms:e}=this,r=e.length,i=0;i=0;i--)e[i].unapply(t)}applyToPoint(t){for(var{transforms:e}=this,r=e.length,i=0;i2&&void 0!==arguments[2]&&arguments[2];if(this.document=t,this.node=e,this.captureTextNodes=r,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],e&&1===e.nodeType){if(Array.from(e.attributes).forEach(e=>{var r=w(e.nodeName);this.attributes[r]=new j(t,r,e.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var i=this.getAttribute("style").getString().split(";").map(t=>t.trim());i.forEach(e=>{if(e){var[r,i]=e.split(":").map(t=>t.trim());this.styles[r]=new j(t,r,i)}})}var{definitions:n}=t,a=this.getAttribute("id");a.hasValue()&&(n[a.getString()]||(n[a.getString()]=this)),Array.from(e.childNodes).forEach(e=>{if(1===e.nodeType)this.addChild(e);else if(r&&(3===e.nodeType||4===e.nodeType)){var i=t.createTextNode(e);i.getText().length>0&&this.addChild(i)}})}}getAttribute(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.attributes[t];if(!r&&e){var i=new j(this.document,t,"");return this.attributes[t]=i,i}return r||j.empty(this.document)}getHrefAttribute(){for(var t in this.attributes)if("href"===t||t.endsWith(":href"))return this.attributes[t];return j.empty(this.document)}getStyle(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.styles[t];if(i)return i;var n=this.getAttribute(t);if(null!==n&&void 0!==n&&n.hasValue())return this.styles[t]=n,n;if(!r){var{parent:a}=this;if(a){var s=a.getStyle(t);if(null!==s&&void 0!==s&&s.hasValue())return s}}if(e){var o=new j(this.document,t,"");return this.styles[t]=o,o}return i||j.empty(this.document)}render(t){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(t.save(),this.getStyle("mask").hasValue()){var e=this.getStyle("mask").getDefinition();e&&(this.applyEffects(t),e.apply(t,this))}else if("none"!==this.getStyle("filter").getValue("none")){var r=this.getStyle("filter").getDefinition();r&&(this.applyEffects(t),r.apply(t,this))}else this.setContext(t),this.renderChildren(t),this.clearContext(t);t.restore()}}setContext(t){}applyEffects(t){var e=ht.fromElement(this.document,this);e&&e.apply(t);var r=this.getStyle("clip-path",!1,!0);if(r.hasValue()){var i=r.getDefinition();i&&i.apply(t)}}clearContext(t){}renderChildren(t){this.children.forEach(e=>{e.render(t)})}addChild(t){var e=t instanceof ct?t:this.document.createElement(t);e.parent=this,ct.ignoreChildTypes.includes(e.type)||this.children.push(e)}matchesSelector(t){var e,{node:r}=this;if("function"===typeof r.matches)return r.matches(t);var i=null===(e=r.getAttribute)||void 0===e?void 0:e.call(r,"class");return!(!i||""===i)&&i.split(" ").some(e=>".".concat(e)===t)}addStylesFromStyleDefinition(){var{styles:t,stylesSpecificity:e}=this.document;for(var r in t)if(!r.startsWith("@")&&this.matchesSelector(r)){var i=t[r],n=e[r];if(i)for(var a in i){var s=this.stylesSpecificity[a];"undefined"===typeof s&&(s="000"),n>=s&&(this.styles[a]=i[a],this.stylesSpecificity[a]=n)}}}removeStyles(t,e){var r=e.reduce((e,r)=>{var i=t.getStyle(r);if(!i.hasValue())return e;var n=i.getString();return i.setValue(""),[...e,[r,n]]},[]);return r}restoreStyles(t,e){e.forEach(e=>{var[r,i]=e;t.getStyle(r,!0).setValue(i)})}isFirstChild(){var t;return 0===(null===(t=this.parent)||void 0===t?void 0:t.children.indexOf(this))}}ct.ignoreChildTypes=["title"];class lt extends ct{constructor(t,e,r){super(t,e,r)}}function ft(t){var e=t.trim();return/^('|")/.test(e)?e:'"'.concat(e,'"')}function dt(e){return"undefined"===typeof t?e:e.trim().split(",").map(ft).join(",")}function gt(t){if(!t)return"";var e=t.trim().toLowerCase();switch(e){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return e;default:return/^oblique\s+(-|)\d+deg$/.test(e)?e:""}}function pt(t){if(!t)return"";var e=t.trim().toLowerCase();switch(e){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return e;default:return/^[\d.]+$/.test(e)?e:""}}class vt{constructor(t,e,r,i,n,a){var s=a?"string"===typeof a?vt.parse(a):a:{};this.fontFamily=n||s.fontFamily,this.fontSize=i||s.fontSize,this.fontStyle=t||s.fontStyle,this.fontWeight=r||s.fontWeight,this.fontVariant=e||s.fontVariant}static parse(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0,r="",i="",n="",a="",s="",o=v(t).trim().split(" "),u={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return o.forEach(t=>{switch(!0){case!u.fontStyle&&vt.styles.includes(t):"inherit"!==t&&(r=t),u.fontStyle=!0;break;case!u.fontVariant&&vt.variants.includes(t):"inherit"!==t&&(i=t),u.fontStyle=!0,u.fontVariant=!0;break;case!u.fontWeight&&vt.weights.includes(t):"inherit"!==t&&(n=t),u.fontStyle=!0,u.fontVariant=!0,u.fontWeight=!0;break;case!u.fontSize:"inherit"!==t&&([a]=t.split("/")),u.fontStyle=!0,u.fontVariant=!0,u.fontWeight=!0,u.fontSize=!0;break;default:"inherit"!==t&&(s+=t)}}),new vt(r,i,n,a,s,e)}toString(){return[gt(this.fontStyle),this.fontVariant,pt(this.fontWeight),this.fontSize,dt(this.fontFamily)].join(" ").trim()}}vt.styles="normal|italic|oblique|inherit",vt.variants="normal|small-caps|inherit",vt.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class yt{constructor(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;this.x1=t,this.y1=e,this.x2=r,this.y2=i,this.addPoint(t,e),this.addPoint(r,i)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(t,e){"undefined"!==typeof t&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=t,this.x2=t),tthis.x2&&(this.x2=t)),"undefined"!==typeof e&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=e,this.y2=e),ethis.y2&&(this.y2=e))}addX(t){this.addPoint(t,null)}addY(t){this.addPoint(null,t)}addBoundingBox(t){if(t){var{x1:e,y1:r,x2:i,y2:n}=t;this.addPoint(e,r),this.addPoint(i,n)}}sumCubic(t,e,r,i,n){return Math.pow(1-t,3)*e+3*Math.pow(1-t,2)*t*r+3*(1-t)*Math.pow(t,2)*i+Math.pow(t,3)*n}bezierCurveAdd(t,e,r,i,n){var a=6*e-12*r+6*i,s=-3*e+9*r-9*i+3*n,o=3*r-3*e;if(0!==s){var u=Math.pow(a,2)-4*o*s;if(!(u<0)){var h=(-a+Math.sqrt(u))/(2*s);0=e.length-1}next(){var t=this.commands[++this.i];return this.previousCommand=this.command,this.command=t,t}getPoint(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",r=new q(this.command[t],this.command[e]);return this.makeAbsolute(r)}getAsControlPoint(t,e){var r=this.getPoint(t,e);return this.control=r,r}getAsCurrentPoint(t,e){var r=this.getPoint(t,e);return this.current=r,r}getReflectedControlPoint(){var t=this.previousCommand.type;if(t!==l["a"].CURVE_TO&&t!==l["a"].SMOOTH_CURVE_TO&&t!==l["a"].QUAD_TO&&t!==l["a"].SMOOTH_QUAD_TO)return this.current;var{current:{x:e,y:r},control:{x:i,y:n}}=this,a=new q(2*e-i,2*r-n);return a}makeAbsolute(t){if(this.command.relative){var{x:e,y:r}=this.current;t.x+=e,t.y+=r}return t}addMarker(t,e,r){var{points:i,angles:n}=this;r&&n.length>0&&!n[n.length-1]&&(n[n.length-1]=i[i.length-1].angleTo(r)),this.addMarkerAngle(t,e?e.angleTo(t):null)}addMarkerAngle(t,e){this.points.push(t),this.angles.push(e)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:t}=this,e=t.length,r=0;r1&&void 0!==arguments[1]&&arguments[1];if(!e){var r=this.getStyle("fill"),i=this.getStyle("fill-opacity"),n=this.getStyle("stroke"),a=this.getStyle("stroke-opacity");if(r.isUrlDefinition()){var s=r.getFillStyleDefinition(this,i);s&&(t.fillStyle=s)}else if(r.hasValue()){"currentColor"===r.getString()&&r.setValue(this.getStyle("color").getColor());var o=r.getColor();"inherit"!==o&&(t.fillStyle="none"===o?"rgba(0,0,0,0)":o)}if(i.hasValue()){var u=new j(this.document,"fill",t.fillStyle).addOpacity(i).getColor();t.fillStyle=u}if(n.isUrlDefinition()){var h=n.getFillStyleDefinition(this,a);h&&(t.strokeStyle=h)}else if(n.hasValue()){"currentColor"===n.getString()&&n.setValue(this.getStyle("color").getColor());var c=n.getString();"inherit"!==c&&(t.strokeStyle="none"===c?"rgba(0,0,0,0)":c)}if(a.hasValue()){var l=new j(this.document,"stroke",t.strokeStyle).addOpacity(a).getString();t.strokeStyle=l}var f=this.getStyle("stroke-width");if(f.hasValue()){var d=f.getPixels();t.lineWidth=d||_}var g=this.getStyle("stroke-linecap"),p=this.getStyle("stroke-linejoin"),v=this.getStyle("stroke-miterlimit"),y=this.getStyle("stroke-dasharray"),m=this.getStyle("stroke-dashoffset");if(g.hasValue()&&(t.lineCap=g.getString()),p.hasValue()&&(t.lineJoin=p.getString()),v.hasValue()&&(t.miterLimit=v.getNumber()),y.hasValue()&&"none"!==y.getString()){var b=x(y.getString());"undefined"!==typeof t.setLineDash?t.setLineDash(b):"undefined"!==typeof t.webkitLineDash?t.webkitLineDash=b:"undefined"===typeof t.mozDash||1===b.length&&0===b[0]||(t.mozDash=b);var w=m.getPixels();"undefined"!==typeof t.lineDashOffset?t.lineDashOffset=w:"undefined"!==typeof t.webkitLineDashOffset?t.webkitLineDashOffset=w:"undefined"!==typeof t.mozDashOffset&&(t.mozDashOffset=w)}}if(this.modifiedEmSizeStack=!1,"undefined"!==typeof t.font){var S=this.getStyle("font"),T=this.getStyle("font-style"),A=this.getStyle("font-variant"),C=this.getStyle("font-weight"),O=this.getStyle("font-size"),E=this.getStyle("font-family"),P=new vt(T.getString(),A.getString(),C.getString(),O.hasValue()?"".concat(O.getPixels(!0),"px"):"",E.getString(),vt.parse(S.getString(),t.font));T.setValue(P.fontStyle),A.setValue(P.fontVariant),C.setValue(P.fontWeight),O.setValue(P.fontSize),E.setValue(P.fontFamily),t.font=P.toString(),O.isPixels()&&(this.document.emSize=O.getPixels(),this.modifiedEmSizeStack=!0)}e||(this.applyEffects(t),t.globalAlpha=this.calculateOpacity())}clearContext(t){super.clearContext(t),this.modifiedEmSizeStack&&this.document.popEmSize()}}class bt extends xt{constructor(t,e,r){super(t,e,r),this.type="path",this.pathParser=null,this.pathParser=new mt(this.getAttribute("d").getString())}path(t){var{pathParser:e}=this,r=new yt;e.reset(),t&&t.beginPath();while(!e.isEnd())switch(e.next().type){case mt.MOVE_TO:this.pathM(t,r);break;case mt.LINE_TO:this.pathL(t,r);break;case mt.HORIZ_LINE_TO:this.pathH(t,r);break;case mt.VERT_LINE_TO:this.pathV(t,r);break;case mt.CURVE_TO:this.pathC(t,r);break;case mt.SMOOTH_CURVE_TO:this.pathS(t,r);break;case mt.QUAD_TO:this.pathQ(t,r);break;case mt.SMOOTH_QUAD_TO:this.pathT(t,r);break;case mt.ARC:this.pathA(t,r);break;case mt.CLOSE_PATH:this.pathZ(t,r);break}return r}getBoundingBox(t){return this.path()}getMarkers(){var{pathParser:t}=this,e=t.getMarkerPoints(),r=t.getMarkerAngles(),i=e.map((t,e)=>[t,r[e]]);return i}renderChildren(t){this.path(t),this.document.screen.mouse.checkPath(this,t);var e=this.getStyle("fill-rule");""!==t.fillStyle&&("inherit"!==e.getString("inherit")?t.fill(e.getString()):t.fill()),""!==t.strokeStyle&&("non-scaling-stroke"===this.getAttribute("vector-effect").getString()?(t.save(),t.setTransform(1,0,0,1,0,0),t.stroke(),t.restore()):t.stroke());var r=this.getMarkers();if(r){var i=r.length-1,n=this.getStyle("marker-start"),a=this.getStyle("marker-mid"),s=this.getStyle("marker-end");if(n.isUrlDefinition()){var o=n.getDefinition(),[u,h]=r[0];o.render(t,u,h)}if(a.isUrlDefinition())for(var c=a.getDefinition(),l=1;l1&&(i*=Math.sqrt(l),n*=Math.sqrt(l));var f=(s===o?-1:1)*Math.sqrt((Math.pow(i,2)*Math.pow(n,2)-Math.pow(i,2)*Math.pow(c.y,2)-Math.pow(n,2)*Math.pow(c.x,2))/(Math.pow(i,2)*Math.pow(c.y,2)+Math.pow(n,2)*Math.pow(c.x,2)));isNaN(f)&&(f=0);var d=new q(f*i*c.y/n,f*-n*c.x/i),g=new q((e.x+h.x)/2+Math.cos(u)*d.x-Math.sin(u)*d.y,(e.y+h.y)/2+Math.sin(u)*d.x+Math.cos(u)*d.y),p=L([1,0],[(c.x-d.x)/i,(c.y-d.y)/n]),v=[(c.x-d.x)/i,(c.y-d.y)/n],y=[(-c.x-d.x)/i,(-c.y-d.y)/n],m=L(v,y);return I(v,y)<=-1&&(m=Math.PI),I(v,y)>=1&&(m=0),{currentPoint:h,rX:i,rY:n,sweepFlag:o,xAxisRotation:u,centp:g,a1:p,ad:m}}pathA(t,e){var{pathParser:r}=this,{currentPoint:i,rX:n,rY:a,sweepFlag:s,xAxisRotation:o,centp:u,a1:h,ad:c}=bt.pathA(r),l=1-s?1:-1,f=h+l*(c/2),d=new q(u.x+n*Math.cos(f),u.y+a*Math.sin(f));if(r.addMarkerAngle(d,f-l*Math.PI/2),r.addMarkerAngle(i,f-l*Math.PI),e.addPoint(i.x,i.y),t&&!isNaN(h)&&!isNaN(c)){var g=n>a?n:a,p=n>a?1:n/a,v=n>a?a/n:1;t.translate(u.x,u.y),t.rotate(o),t.scale(p,v),t.arc(0,0,g,h,h+c,Boolean(1-s)),t.scale(1/p,1/v),t.rotate(-o),t.translate(-u.x,-u.y)}}static pathZ(t){t.current=t.start}pathZ(t,e){bt.pathZ(this.pathParser),t&&e.x1!==e.x2&&e.y1!==e.y2&&t.closePath()}}class wt extends bt{constructor(t,e,r){super(t,e,r),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class St extends xt{constructor(t,e,r){super(t,e,new.target===St||r),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super.setContext(t,e);var r=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();r&&(t.textBaseline=r)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(t){if("text"!==this.type)return this.getTElementBoundingBox(t);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(t);var e=null;return this.children.forEach((r,i)=>{var n=this.getChildBoundingBox(t,this,this,i);e?e.addBoundingBox(n):e=n}),e}getFontSize(){var{document:t,parent:e}=this,r=vt.parse(t.ctx.font).fontSize,i=e.getStyle("font-size").getNumber(r);return i}getTElementBoundingBox(t){var e=this.getFontSize();return new yt(this.x,this.y-e,this.x+this.measureText(t),this.y)}getGlyph(t,e,r){var i=e[r],n=null;if(t.isArabic){var a=e.length,s=e[r-1],o=e[r+1],u="isolated";if((0===r||" "===s)&&r0&&" "!==s&&r0&&" "!==s&&(r===a-1||" "===o)&&(u="initial"),"undefined"!==typeof t.glyphs[i]){var h=t.glyphs[i];n=h instanceof wt?h:h[u]}}else n=t.glyphs[i];return n||(n=t.missingGlyph),n}getText(){return""}getTextFromNode(t){var e=t||this.node,r=Array.from(e.parentNode.childNodes),i=r.indexOf(e),n=r.length-1,a=v(e.textContent||"");return 0===i&&(a=y(a)),i===n&&(a=m(a)),a}renderChildren(t){if("text"===this.type){this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(t),this.children.forEach((e,r)=>{this.renderChild(t,this,this,r)});var{mouse:e}=this.document.screen;e.isWorking()&&e.checkBoundingBox(this,this.getBoundingBox(t))}else this.renderTElementChildren(t)}renderTElementChildren(t){var{document:e,parent:r}=this,i=this.getText(),n=r.getStyle("font-family").getDefinition();if(n)for(var{unitsPerEm:a}=n.fontFace,s=vt.parse(e.ctx.font),o=r.getStyle("font-size").getNumber(s.fontSize),u=r.getStyle("font-style").getString(s.fontStyle),h=o/a,c=n.isRTL?i.split("").reverse().join(""):i,l=x(r.getAttribute("dx").getString()),f=c.length,d=0;d=this.leafTexts.length)){var t=this.leafTexts[this.textChunkStart],e=t.getStyle("text-anchor").getString("start"),r=!1,i=0;i="start"===e&&!r||"end"===e&&r?t.x-this.minX:"end"===e&&!r||"start"===e&&r?t.x-this.maxX:t.x-(this.minX+this.maxX)/2;for(var n=this.textChunkStart;n{this.adjustChildCoordinatesRecursiveCore(t,this,this,r)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(t,e,r,i){var n=r.children[i];n.children.length>0?n.children.forEach((r,i)=>{e.adjustChildCoordinatesRecursiveCore(t,e,n,i)}):this.adjustChildCoordinates(t,e,r,i)}adjustChildCoordinates(t,e,r,i){var n=r.children[i];if("function"!==typeof n.measureText)return n;t.save(),n.setContext(t,!0);var a=n.getAttribute("x"),s=n.getAttribute("y"),o=n.getAttribute("dx"),u=n.getAttribute("dy"),h=n.getStyle("font-family").getDefinition(),c=Boolean(h)&&h.isRTL;0===i&&(a.hasValue()||a.setValue(n.getInheritedAttribute("x")),s.hasValue()||s.setValue(n.getInheritedAttribute("y")),o.hasValue()||o.setValue(n.getInheritedAttribute("dx")),u.hasValue()||u.setValue(n.getInheritedAttribute("dy")));var l=n.measureText(t);return c&&(e.x-=l),a.hasValue()?(e.applyAnchoring(),n.x=a.getPixels("x"),o.hasValue()&&(n.x+=o.getPixels("x"))):(o.hasValue()&&(e.x+=o.getPixels("x")),n.x=e.x),e.x=n.x,c||(e.x+=l),s.hasValue()?(n.y=s.getPixels("y"),u.hasValue()&&(n.y+=u.getPixels("y"))):(u.hasValue()&&(e.y+=u.getPixels("y")),n.y=e.y),e.y=n.y,e.leafTexts.push(n),e.minX=Math.min(e.minX,n.x,n.x+l),e.maxX=Math.max(e.maxX,n.x,n.x+l),n.clearContext(t),t.restore(),n}getChildBoundingBox(t,e,r,i){var n=r.children[i];if("function"!==typeof n.getBoundingBox)return null;var a=n.getBoundingBox(t);return a?(n.children.forEach((r,i)=>{var s=e.getChildBoundingBox(t,e,n,i);a.addBoundingBox(s)}),a):null}renderChild(t,e,r,i){var n=r.children[i];n.render(t),n.children.forEach((r,i)=>{e.renderChild(t,e,n,i)})}measureText(t){var{measureCache:e}=this;if(~e)return e;var r=this.getText(),i=this.measureTargetText(t,r);return this.measureCache=i,i}measureTargetText(t,e){if(!e.length)return 0;var{parent:r}=this,i=r.getStyle("font-family").getDefinition();if(i){for(var n=this.getFontSize(),a=i.isRTL?e.split("").reverse().join(""):e,s=x(r.getAttribute("dx").getString()),o=a.length,u=0,h=0;h0?"":this.getTextFromNode()}getText(){return this.text}}class At extends Tt{constructor(){super(...arguments),this.type="textNode"}}class Ct extends xt{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(t){var e,{document:r}=this,{screen:i,window:n}=r,a=t.canvas;if(i.setDefaults(t),a.style&&"undefined"!==typeof t.font&&n&&"undefined"!==typeof n.getComputedStyle){t.font=n.getComputedStyle(a).getPropertyValue("font");var s=new j(r,"fontSize",vt.parse(t.font).fontSize);s.hasValue()&&(r.rootEmSize=s.getPixels("y"),r.emSize=r.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:o,height:u}=i.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var h=this.getAttribute("refX"),c=this.getAttribute("refY"),l=this.getAttribute("viewBox"),f=l.hasValue()?x(l.getString()):null,d=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),g=0,p=0,v=0,y=0;f&&(g=f[0],p=f[1]),this.root||(o=this.getStyle("width").getPixels("x"),u=this.getStyle("height").getPixels("y"),"marker"===this.type&&(v=g,y=p,g=0,p=0)),i.viewPort.setCurrent(o,u),!this.node||this.parent&&"foreignObject"!==(null===(e=this.node.parentNode)||void 0===e?void 0:e.nodeName)||!this.getStyle("transform",!1,!0).hasValue()||this.getStyle("transform-origin",!1,!0).hasValue()||this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(t),t.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),f&&(o=f[2],u=f[3]),r.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:i.viewPort.width,desiredWidth:o,height:i.viewPort.height,desiredHeight:u,minX:g,minY:p,refX:h.getValue(),refY:c.getValue(),clip:d,clipX:v,clipY:y}),f&&(i.viewPort.removeCurrent(),i.viewPort.setCurrent(o,u))}clearContext(t){super.clearContext(t),this.document.screen.viewPort.removeCurrent()}resize(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.getAttribute("width",!0),n=this.getAttribute("height",!0),a=this.getAttribute("viewBox"),s=this.getAttribute("style"),o=i.getNumber(0),u=n.getNumber(0);if(r)if("string"===typeof r)this.getAttribute("preserveAspectRatio",!0).setValue(r);else{var h=this.getAttribute("preserveAspectRatio");h.hasValue()&&h.setValue(h.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(i.setValue(t),n.setValue(e),a.hasValue()||a.setValue("0 0 ".concat(o||t," ").concat(u||e)),s.hasValue()){var c=this.getStyle("width"),l=this.getStyle("height");c.hasValue()&&c.setValue("".concat(t,"px")),l.hasValue()&&l.setValue("".concat(e,"px"))}}}class Ot extends bt{constructor(){super(...arguments),this.type="rect"}path(t){var e=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),i=this.getStyle("width",!1,!0).getPixels("x"),n=this.getStyle("height",!1,!0).getPixels("y"),a=this.getAttribute("rx"),s=this.getAttribute("ry"),o=a.getPixels("x"),u=s.getPixels("y");if(a.hasValue()&&!s.hasValue()&&(u=o),s.hasValue()&&!a.hasValue()&&(o=u),o=Math.min(o,i/2),u=Math.min(u,n/2),t){var h=(Math.sqrt(2)-1)/3*4;t.beginPath(),n>0&&i>0&&(t.moveTo(e+o,r),t.lineTo(e+i-o,r),t.bezierCurveTo(e+i-o+h*o,r,e+i,r+u-h*u,e+i,r+u),t.lineTo(e+i,r+n-u),t.bezierCurveTo(e+i,r+n-u+h*u,e+i-o+h*o,r+n,e+i-o,r+n),t.lineTo(e+o,r+n),t.bezierCurveTo(e+o-h*o,r+n,e,r+n-u+h*u,e,r+n-u),t.lineTo(e,r+u),t.bezierCurveTo(e,r+u-h*u,e+o-h*o,r,e+o,r),t.closePath())}return new yt(e,r,e+i,r+n)}getMarkers(){return null}}class Et extends bt{constructor(){super(...arguments),this.type="circle"}path(t){var e=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),i=this.getAttribute("r").getPixels();return t&&i>0&&(t.beginPath(),t.arc(e,r,i,0,2*Math.PI,!1),t.closePath()),new yt(e-i,r-i,e+i,r+i)}getMarkers(){return null}}class Pt extends bt{constructor(){super(...arguments),this.type="ellipse"}path(t){var e=(Math.sqrt(2)-1)/3*4,r=this.getAttribute("rx").getPixels("x"),i=this.getAttribute("ry").getPixels("y"),n=this.getAttribute("cx").getPixels("x"),a=this.getAttribute("cy").getPixels("y");return t&&r>0&&i>0&&(t.beginPath(),t.moveTo(n+r,a),t.bezierCurveTo(n+r,a+e*i,n+e*r,a+i,n,a+i),t.bezierCurveTo(n-e*r,a+i,n-r,a+e*i,n-r,a),t.bezierCurveTo(n-r,a-e*i,n-e*r,a-i,n,a-i),t.bezierCurveTo(n+e*r,a-i,n+r,a-e*i,n+r,a),t.closePath()),new yt(n-r,a-i,n+r,a+i)}getMarkers(){return null}}class Mt extends bt{constructor(){super(...arguments),this.type="line"}getPoints(){return[new q(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new q(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(t){var[{x:e,y:r},{x:i,y:n}]=this.getPoints();return t&&(t.beginPath(),t.moveTo(e,r),t.lineTo(i,n)),new yt(e,r,i,n)}getMarkers(){var[t,e]=this.getPoints(),r=t.angleTo(e);return[[t,r],[e,r]]}}class Nt extends bt{constructor(t,e,r){super(t,e,r),this.type="polyline",this.points=[],this.points=q.parsePath(this.getAttribute("points").getString())}path(t){var{points:e}=this,[{x:r,y:i}]=e,n=new yt(r,i);return t&&(t.beginPath(),t.moveTo(r,i)),e.forEach(e=>{var{x:r,y:i}=e;n.addPoint(r,i),t&&t.lineTo(r,i)}),n}getMarkers(){var{points:t}=this,e=t.length-1,r=[];return t.forEach((i,n)=>{n!==e&&r.push([i,i.angleTo(t[n+1])])}),r.length>0&&r.push([t[t.length-1],r[r.length-1][1]]),r}}class Rt extends Nt{constructor(){super(...arguments),this.type="polygon"}path(t){var e=super.path(t),[{x:r,y:i}]=this.points;return t&&(t.lineTo(r,i),t.closePath()),e}}class Vt extends ct{constructor(){super(...arguments),this.type="pattern"}createPattern(t,e,r){var i=this.getStyle("width").getPixels("x",!0),n=this.getStyle("height").getPixels("y",!0),a=new Ct(this.document,null);a.attributes.viewBox=new j(this.document,"viewBox",this.getAttribute("viewBox").getValue()),a.attributes.width=new j(this.document,"width","".concat(i,"px")),a.attributes.height=new j(this.document,"height","".concat(n,"px")),a.attributes.transform=new j(this.document,"transform",this.getAttribute("patternTransform").getValue()),a.children=this.children;var s=this.document.createCanvas(i,n),o=s.getContext("2d"),u=this.getAttribute("x"),h=this.getAttribute("y");u.hasValue()&&h.hasValue()&&o.translate(u.getPixels("x",!0),h.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var c=-1;c<=1;c++)for(var l=-1;l<=1;l++)o.save(),a.attributes.x=new j(this.document,"x",c*s.width),a.attributes.y=new j(this.document,"y",l*s.height),a.render(o),o.restore();var f=t.createPattern(s,"repeat");return f}}class _t extends ct{constructor(){super(...arguments),this.type="marker"}render(t,e,r){if(e){var{x:i,y:n}=e,a=this.getAttribute("orient").getString("auto"),s=this.getAttribute("markerUnits").getString("strokeWidth");t.translate(i,n),"auto"===a&&t.rotate(r),"strokeWidth"===s&&t.scale(t.lineWidth,t.lineWidth),t.save();var o=new Ct(this.document,null);o.type=this.type,o.attributes.viewBox=new j(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.refX=new j(this.document,"refX",this.getAttribute("refX").getValue()),o.attributes.refY=new j(this.document,"refY",this.getAttribute("refY").getValue()),o.attributes.width=new j(this.document,"width",this.getAttribute("markerWidth").getValue()),o.attributes.height=new j(this.document,"height",this.getAttribute("markerHeight").getValue()),o.attributes.overflow=new j(this.document,"overflow",this.getAttribute("overflow").getValue()),o.attributes.fill=new j(this.document,"fill",this.getAttribute("fill").getColor("black")),o.attributes.stroke=new j(this.document,"stroke",this.getAttribute("stroke").getValue("none")),o.children=this.children,o.render(t),t.restore(),"strokeWidth"===s&&t.scale(1/t.lineWidth,1/t.lineWidth),"auto"===a&&t.rotate(-r),t.translate(-i,-n)}}}class kt extends ct{constructor(){super(...arguments),this.type="defs"}render(){}}class It extends xt{constructor(){super(...arguments),this.type="g"}getBoundingBox(t){var e=new yt;return this.children.forEach(r=>{e.addBoundingBox(r.getBoundingBox(t))}),e}}class Lt extends ct{constructor(t,e,r){super(t,e,r),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:i,children:n}=this;n.forEach(t=>{"stop"===t.type&&i.push(t)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(t,e,r){var i=this;this.getHrefAttribute().hasValue()&&(i=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(i));var{stops:n}=i,a=this.getGradient(t,e);if(!a)return this.addParentOpacity(r,n[n.length-1].color);if(n.forEach(t=>{a.addColorStop(t.offset,this.addParentOpacity(r,t.color))}),this.getAttribute("gradientTransform").hasValue()){var{document:s}=this,{MAX_VIRTUAL_PIXELS:o,viewPort:u}=s.screen,[h]=u.viewPorts,c=new Ot(s,null);c.attributes.x=new j(s,"x",-o/3),c.attributes.y=new j(s,"y",-o/3),c.attributes.width=new j(s,"width",o),c.attributes.height=new j(s,"height",o);var l=new It(s,null);l.attributes.transform=new j(s,"transform",this.getAttribute("gradientTransform").getValue()),l.children=[c];var f=new Ct(s,null);f.attributes.x=new j(s,"x",0),f.attributes.y=new j(s,"y",0),f.attributes.width=new j(s,"width",h.width),f.attributes.height=new j(s,"height",h.height),f.children=[l];var d=s.createCanvas(h.width,h.height),g=d.getContext("2d");return g.fillStyle=a,f.render(g),g.createPattern(d,"no-repeat")}return a}inheritStopContainer(t){this.attributesToInherit.forEach(e=>{!this.getAttribute(e).hasValue()&&t.getAttribute(e).hasValue()&&this.getAttribute(e,!0).setValue(t.getAttribute(e).getValue())})}addParentOpacity(t,e){if(t.hasValue()){var r=new j(this.document,"color",e);return r.addOpacity(t).getColor()}return e}}class Dt extends Lt{constructor(t,e,r){super(t,e,r),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(t,e){var r="objectBoundingBox"===this.getGradientUnits(),i=r?e.getBoundingBox(t):null;if(r&&!i)return null;this.getAttribute("x1").hasValue()||this.getAttribute("y1").hasValue()||this.getAttribute("x2").hasValue()||this.getAttribute("y2").hasValue()||(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var n=r?i.x+i.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),a=r?i.y+i.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),s=r?i.x+i.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),o=r?i.y+i.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return n===s&&a===o?null:t.createLinearGradient(n,a,s,o)}}class Bt extends Lt{constructor(t,e,r){super(t,e,r),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(t,e){var r="objectBoundingBox"===this.getGradientUnits(),i=e.getBoundingBox(t);if(r&&!i)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var n=r?i.x+i.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),a=r?i.y+i.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),s=n,o=a;this.getAttribute("fx").hasValue()&&(s=r?i.x+i.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(o=r?i.y+i.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var u=r?(i.width+i.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),h=this.getAttribute("fr").getPixels();return t.createRadialGradient(s,o,h,n,a,u)}}class Ut extends ct{constructor(t,e,r){super(t,e,r),this.type="stop";var i=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),n=this.getStyle("stop-opacity"),a=this.getStyle("stop-color",!0);""===a.getString()&&a.setValue("#000"),n.hasValue()&&(a=a.addOpacity(n)),this.offset=i,this.color=a.getColor()}}class Ft extends ct{constructor(t,e,r){super(t,e,r),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,t.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new j(t,"values",null);var i=this.getAttribute("values");i.hasValue()&&this.values.setValue(i.getString().split(";"))}getProperty(){var t=this.getAttribute("attributeType").getString(),e=this.getAttribute("attributeName").getString();return"CSS"===t?this.parent.getStyle(e,!0):this.parent.getAttribute(e,!0)}calcValue(){var{initialUnits:t}=this,{progress:e,from:r,to:i}=this.getProgress(),n=r.getNumber()+(i.getNumber()-r.getNumber())*e;return"%"===t&&(n*=100),"".concat(n).concat(t)}update(t){var{parent:e}=this,r=this.getProperty();if(this.initialValue||(this.initialValue=r.getString(),this.initialUnits=r.getUnits()),this.duration>this.maxDuration){var i=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==i||this.frozen){if("remove"===i&&!this.removed)return this.removed=!0,r.setValue(e.animationFrozen?e.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,e.animationFrozen=!0,e.animationFrozenValue=r.getString();return!1}this.duration+=t;var n=!1;if(this.begin{var i=n[r];return e+(i-e)*t}).join(" ");return a}}class Xt extends ct{constructor(t,e,r){super(t,e,r),this.type="font",this.glyphs={},this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:i}=t,{children:n}=this;for(var a of n)switch(a.type){case"font-face":this.fontFace=a;var s=a.getStyle("font-family");s.hasValue()&&(i[s.getString()]=this);break;case"missing-glyph":this.missingGlyph=a;break;case"glyph":var o=a;o.arabicForm?(this.isRTL=!0,this.isArabic=!0,"undefined"===typeof this.glyphs[o.unicode]&&(this.glyphs[o.unicode]={}),this.glyphs[o.unicode][o.arabicForm]=o):this.glyphs[o.unicode]=o;break}}render(){}}class jt extends ct{constructor(t,e,r){super(t,e,r),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class Yt extends bt{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class qt extends St{constructor(){super(...arguments),this.type="tref"}getText(){var t=this.getHrefAttribute().getDefinition();if(t){var e=t.children[0];if(e)return e.getText()}return""}}class Wt extends St{constructor(t,e,r){super(t,e,r),this.type="a";var{childNodes:i}=e,n=i[0],a=i.length>0&&Array.from(i).every(t=>3===t.nodeType);this.hasText=a,this.text=a?this.getTextFromNode(n):""}getText(){return this.text}renderChildren(t){if(this.hasText){super.renderChildren(t);var{document:e,x:r,y:i}=this,{mouse:n}=e.screen,a=new j(e,"fontSize",vt.parse(e.ctx.font).fontSize);n.isWorking()&&n.checkBoundingBox(this,new yt(r,i-a.getPixels("y"),r+this.measureText(t),i))}else if(this.children.length>0){var s=new It(this.document,null);s.children=this.children,s.parent=this,s.render(t)}}onClick(){var{window:t}=this.document;t&&t.open(this.getHrefAttribute().getString())}onMouseMove(){var t=this.document.ctx;t.canvas.style.cursor="pointer"}}function Gt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function Qt(t){for(var e=1;e{var{type:r,points:i}=e;switch(r){case mt.LINE_TO:t&&t.lineTo(i[0],i[1]);break;case mt.MOVE_TO:t&&t.moveTo(i[0],i[1]);break;case mt.CURVE_TO:t&&t.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]);break;case mt.QUAD_TO:t&&t.quadraticCurveTo(i[0],i[1],i[2],i[3]);break;case mt.ARC:var[n,a,s,o,u,h,c,l]=i,f=s>o?s:o,d=s>o?1:s/o,g=s>o?o/s:1;t&&(t.translate(n,a),t.rotate(c),t.scale(d,g),t.arc(0,0,f,u,u+h,Boolean(1-l)),t.scale(1/d,1/g),t.rotate(-c),t.translate(-n,-a));break;case mt.CLOSE_PATH:t&&t.closePath();break}})}renderChildren(t){this.setTextData(t),t.save();var e=this.parent.getStyle("text-decoration").getString(),r=this.getFontSize(),{glyphInfo:i}=this,n=t.fillStyle;"underline"===e&&t.beginPath(),i.forEach((i,n)=>{var{p0:a,p1:s,rotation:o,text:u}=i;t.save(),t.translate(a.x,a.y),t.rotate(o),t.fillStyle&&t.fillText(u,0,0),t.strokeStyle&&t.strokeText(u,0,0),t.restore(),"underline"===e&&(0===n&&t.moveTo(a.x,a.y+r/8),t.lineTo(s.x,s.y+r/5))}),"underline"===e&&(t.lineWidth=r/20,t.strokeStyle=n,t.stroke(),t.closePath()),t.restore()}getLetterSpacingAt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.letterSpacingCache[t]||0}findSegmentToFitChar(t,e,r,i,n,a,s,o,u){var h=a,c=this.measureText(t,o);" "===o&&"justify"===e&&r-1&&(h+=this.getLetterSpacingAt(u));var l=this.textHeight/20,f=this.getEquidistantPointOnPath(h,l,0),d=this.getEquidistantPointOnPath(h+c,l,0),g={p0:f,p1:d},p=f&&d?Math.atan2(d.y-f.y,d.x-f.x):0;if(s){var v=Math.cos(Math.PI/2+p)*s,y=Math.cos(-p)*s;g.p0=Qt(Qt({},f),{},{x:f.x+v,y:f.y+y}),g.p1=Qt(Qt({},d),{},{x:d.x+v,y:d.y+y})}return h+=c,{offset:h,segment:g,rotation:p}}measureText(t,e){var{measuresCache:r}=this,i=e||this.getText();if(r.has(i))return r.get(i);var n=this.measureTargetText(t,i);return r.set(i,n),n}setTextData(t){if(!this.glyphInfo){var e=this.getText(),r=e.split(""),i=e.split(" ").length-1,n=this.parent.getAttribute("dx").split().map(t=>t.getPixels("x")),a=this.parent.getAttribute("dy").getPixels("y"),s=this.parent.getStyle("text-anchor").getString("start"),o=this.getStyle("letter-spacing"),u=this.parent.getStyle("letter-spacing"),h=0;o.hasValue()&&"inherit"!==o.getValue()?o.hasValue()&&"initial"!==o.getValue()&&"unset"!==o.getValue()&&(h=o.getPixels()):h=u.getPixels();var c=[],l=e.length;this.letterSpacingCache=c;for(var f=0;f0===r?0:t+e||0,0),g=this.measureText(t),p=Math.max(g+d,0);this.textWidth=g,this.textHeight=this.getFontSize(),this.glyphInfo=[];var v=this.getPathLength(),y=this.getStyle("startOffset").getNumber(0)*v,m=0;"middle"!==s&&"center"!==s||(m=-p/2),"end"!==s&&"right"!==s||(m=-p),m+=y,r.forEach((e,n)=>{var{offset:o,segment:u,rotation:h}=this.findSegmentToFitChar(t,s,p,v,i,m,a,e,n);m=o,u.p0&&u.p1&&this.glyphInfo.push({text:r[n],p0:u.p0,p1:u.p1,rotation:h})})}}parsePathData(t){if(this.pathLength=-1,!t)return[];var e=[],{pathParser:r}=t;r.reset();while(!r.isEnd()){var{current:i}=r,n=i?i.x:0,a=i?i.y:0,s=r.next(),o=s.type,u=[];switch(s.type){case mt.MOVE_TO:this.pathM(r,u);break;case mt.LINE_TO:o=this.pathL(r,u);break;case mt.HORIZ_LINE_TO:o=this.pathH(r,u);break;case mt.VERT_LINE_TO:o=this.pathV(r,u);break;case mt.CURVE_TO:this.pathC(r,u);break;case mt.SMOOTH_CURVE_TO:o=this.pathS(r,u);break;case mt.QUAD_TO:this.pathQ(r,u);break;case mt.SMOOTH_QUAD_TO:o=this.pathT(r,u);break;case mt.ARC:u=this.pathA(r);break;case mt.CLOSE_PATH:bt.pathZ(r);break}s.type!==mt.CLOSE_PATH?e.push({type:o,points:u,start:{x:n,y:a},pathLength:this.calcLength(n,a,o,u)}):e.push({type:mt.CLOSE_PATH,points:[],pathLength:0})}return e}pathM(t,e){var{x:r,y:i}=bt.pathM(t).point;e.push(r,i)}pathL(t,e){var{x:r,y:i}=bt.pathL(t).point;return e.push(r,i),mt.LINE_TO}pathH(t,e){var{x:r,y:i}=bt.pathH(t).point;return e.push(r,i),mt.LINE_TO}pathV(t,e){var{x:r,y:i}=bt.pathV(t).point;return e.push(r,i),mt.LINE_TO}pathC(t,e){var{point:r,controlPoint:i,currentPoint:n}=bt.pathC(t);e.push(r.x,r.y,i.x,i.y,n.x,n.y)}pathS(t,e){var{point:r,controlPoint:i,currentPoint:n}=bt.pathS(t);return e.push(r.x,r.y,i.x,i.y,n.x,n.y),mt.CURVE_TO}pathQ(t,e){var{controlPoint:r,currentPoint:i}=bt.pathQ(t);e.push(r.x,r.y,i.x,i.y)}pathT(t,e){var{controlPoint:r,currentPoint:i}=bt.pathT(t);return e.push(r.x,r.y,i.x,i.y),mt.QUAD_TO}pathA(t){var{rX:e,rY:r,sweepFlag:i,xAxisRotation:n,centp:a,a1:s,ad:o}=bt.pathA(t);return 0===i&&o>0&&(o-=2*Math.PI),1===i&&o<0&&(o+=2*Math.PI),[a.x,a.y,e,r,s,o,n,i]}calcLength(t,e,r,i){var n=0,a=null,s=null,o=0;switch(r){case mt.LINE_TO:return this.getLineLength(t,e,i[0],i[1]);case mt.CURVE_TO:for(n=0,a=this.getPointOnCubicBezier(0,t,e,i[0],i[1],i[2],i[3],i[4],i[5]),o=.01;o<=1;o+=.01)s=this.getPointOnCubicBezier(o,t,e,i[0],i[1],i[2],i[3],i[4],i[5]),n+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;return n;case mt.QUAD_TO:for(n=0,a=this.getPointOnQuadraticBezier(0,t,e,i[0],i[1],i[2],i[3]),o=.01;o<=1;o+=.01)s=this.getPointOnQuadraticBezier(o,t,e,i[0],i[1],i[2],i[3]),n+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;return n;case mt.ARC:n=0;var u=i[4],h=i[5],c=i[4]+h,l=Math.PI/180;if(Math.abs(u-c)c;o-=l)s=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],o,0),n+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;else for(o=u+l;o5&&void 0!==arguments[5]?arguments[5]:e,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:r,o=(n-r)/(i-e+_),u=Math.sqrt(t*t/(1+o*o));ie)return null;var{dataArray:n}=this;for(var a of n){if(!a||!(a.pathLength<5e-5||r+a.pathLength+5e-5=0&&o>c)break;i=this.getPointOnEllipticalArc(a.points[0],a.points[1],a.points[2],a.points[3],o,a.points[6]);break;case mt.CURVE_TO:o=s/a.pathLength,o>1&&(o=1),i=this.getPointOnCubicBezier(o,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3],a.points[4],a.points[5]);break;case mt.QUAD_TO:o=s/a.pathLength,o>1&&(o=1),i=this.getPointOnQuadraticBezier(o,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3]);break}if(i)return i;break}r+=a.pathLength}return null}getLineLength(t,e,r,i){return Math.sqrt((r-t)*(r-t)+(i-e)*(i-e))}getPathLength(){return-1===this.pathLength&&(this.pathLength=this.dataArray.reduce((t,e)=>e.pathLength>0?t+e.pathLength:t,0)),this.pathLength}getPointOnCubicBezier(t,e,r,i,n,a,s,o,u){var h=o*D(t)+a*B(t)+i*U(t)+e*F(t),c=u*D(t)+s*B(t)+n*U(t)+r*F(t);return{x:h,y:c}}getPointOnQuadraticBezier(t,e,r,i,n,a,s){var o=a*z(t)+i*H(t)+e*X(t),u=s*z(t)+n*H(t)+r*X(t);return{x:o,y:u}}getPointOnEllipticalArc(t,e,r,i,n,a){var s=Math.cos(a),o=Math.sin(a),u={x:r*Math.cos(n),y:i*Math.sin(n)};return{x:t+(u.x*s-u.y*o),y:e+(u.x*o+u.y*s)}}buildEquidistantCache(t,e){var r=this.getPathLength(),i=e||.25,n=t||r/100;if(!this.equidistantCache||this.equidistantCache.step!==n||this.equidistantCache.precision!==i){this.equidistantCache={step:n,precision:i,points:[]};for(var a=0,s=0;s<=r;s+=i){var o=this.getPointOnPath(s),u=this.getPointOnPath(s+i);o&&u&&(a+=this.getLineLength(o.x,o.y,u.x,u.y),a>=n&&(this.equidistantCache.points.push({x:o.x,y:o.y,distance:s}),a-=n))}}}getEquidistantPointOnPath(t,e,r){if(this.buildEquidistantCache(e,r),t<0||t-this.getPathLength()>5e-5)return null;var i=Math.round(t/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[i]||null}}var Zt=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class Kt extends xt{constructor(t,e,r){super(t,e,r),this.type="image",this.loaded=!1;var i=this.getHrefAttribute().getString();if(i){var n=i.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(i);t.images.push(this),n?this.loadSvg(i):this.loadImage(i),this.isSvg=n}}loadImage(t){var e=this;return n()((function*(){try{var r=yield e.document.createImage(t);e.image=r}catch(i){console.error('Error while loading image "'.concat(t,'":'),i)}e.loaded=!0}))()}loadSvg(t){var e=this;return n()((function*(){var r=Zt.exec(t);if(r){var i=r[5];"base64"===r[4]?e.image=atob(i):e.image=decodeURIComponent(i)}else try{var n=yield e.document.fetch(t),a=yield n.text();e.image=a}catch(s){console.error('Error while loading image "'.concat(t,'":'),s)}e.loaded=!0}))()}renderChildren(t){var{document:e,image:r,loaded:i}=this,n=this.getAttribute("x").getPixels("x"),a=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),o=this.getStyle("height").getPixels("y");if(i&&r&&s&&o){if(t.save(),t.translate(n,a),this.isSvg){var u=e.canvg.forkString(t,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:s,scaleHeight:o});u.document.documentElement.parent=this,u.render()}else{var h=this.image;e.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:s,desiredWidth:h.width,height:o,desiredHeight:h.height}),this.loaded&&("undefined"===typeof h.complete||h.complete)&&t.drawImage(h,0,0)}t.restore()}}getBoundingBox(){var t=this.getAttribute("x").getPixels("x"),e=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),i=this.getStyle("height").getPixels("y");return new yt(t,e,t+r,e+i)}}class Jt extends xt{constructor(){super(...arguments),this.type="symbol"}render(t){}}class te{constructor(t){this.document=t,this.loaded=!1,t.fonts.push(this)}load(t,e){var r=this;return n()((function*(){try{var{document:i}=r,n=yield i.canvg.parser.load(e),a=n.getElementsByTagName("font");Array.from(a).forEach(e=>{var r=i.createElement(e);i.definitions[t]=r})}catch(s){console.error('Error while loading font "'.concat(e,'":'),s)}r.loaded=!0}))()}}class ee extends ct{constructor(t,e,r){super(t,e,r),this.type="style";var i=v(Array.from(e.childNodes).map(t=>t.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),n=i.split("}");n.forEach(e=>{var r=e.trim();if(r){var i=r.split("{"),n=i[0].split(","),a=i[1].split(";");n.forEach(e=>{var r=e.trim();if(r){var i=t.styles[r]||{};if(a.forEach(e=>{var r=e.indexOf(":"),n=e.substr(0,r).trim(),a=e.substr(r+1,e.length-r).trim();n&&a&&(i[n]=new j(t,n,a))}),t.styles[r]=i,t.stylesSpecificity[r]=V(r),"@font-face"===r){var n=i["font-family"].getString().replace(/"|'/g,""),s=i.src.getString().split(",");s.forEach(e=>{if(e.indexOf('format("svg")')>0){var r=S(e);r&&new te(t).load(n,r)}})}}})}})}}ee.parseExternalUrl=S;class re extends xt{constructor(){super(...arguments),this.type="use"}setContext(t){super.setContext(t);var e=this.getAttribute("x"),r=this.getAttribute("y");e.hasValue()&&t.translate(e.getPixels("x"),0),r.hasValue()&&t.translate(0,r.getPixels("y"))}path(t){var{element:e}=this;e&&e.path(t)}renderChildren(t){var{document:e,element:r}=this;if(r){var i=r;if("symbol"===r.type&&(i=new Ct(e,null),i.attributes.viewBox=new j(e,"viewBox",r.getAttribute("viewBox").getString()),i.attributes.preserveAspectRatio=new j(e,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),i.attributes.overflow=new j(e,"overflow",r.getAttribute("overflow").getString()),i.children=r.children,r.styles.opacity=new j(e,"opacity",this.calculateOpacity())),"svg"===i.type){var n=this.getStyle("width",!1,!0),a=this.getStyle("height",!1,!0);n.hasValue()&&(i.attributes.width=new j(e,"width",n.getString())),a.hasValue()&&(i.attributes.height=new j(e,"height",a.getString()))}var s=i.parent;i.parent=this,i.render(t),i.parent=s}}getBoundingBox(t){var{element:e}=this;return e?e.getBoundingBox(t):null}elementTransform(){var{document:t,element:e}=this;return ht.fromElement(t,e)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function ie(t,e,r,i,n,a){return t[r*i*4+4*e+a]}function ne(t,e,r,i,n,a,s){t[r*i*4+4*e+a]=s}function ae(t,e,r){var i=t[e];return i*r}function se(t,e,r,i){return e+Math.cos(t)*r+Math.sin(t)*i}class oe extends ct{constructor(t,e,r){super(t,e,r),this.type="feColorMatrix";var i=x(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":var n=i[0];i=[.213+.787*n,.715-.715*n,.072-.072*n,0,0,.213-.213*n,.715+.285*n,.072-.072*n,0,0,.213-.213*n,.715-.715*n,.072+.928*n,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var a=i[0]*Math.PI/180;i=[se(a,.213,.787,-.213),se(a,.715,-.715,-.715),se(a,.072,-.072,.928),0,0,se(a,.213,-.213,.143),se(a,.715,.285,.14),se(a,.072,-.072,-.283),0,0,se(a,.213,-.213,-.787),se(a,.715,-.715,.715),se(a,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}this.matrix=i,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(t,e,r,i,n){for(var{includeOpacity:a,matrix:s}=this,o=t.getImageData(0,0,i,n),u=0;u{o.addBoundingBox(e.getBoundingBox(t))}),i=Math.floor(o.x1),n=Math.floor(o.y1),a=Math.floor(o.width),s=Math.floor(o.height)}var u=this.removeStyles(e,ue.ignoreStyles),h=r.createCanvas(i+a,n+s),c=h.getContext("2d");r.screen.setDefaults(c),this.renderChildren(c),new oe(r,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(c,0,0,i+a,n+s);var l=r.createCanvas(i+a,n+s),f=l.getContext("2d");r.screen.setDefaults(f),e.render(f),f.globalCompositeOperation="destination-in",f.fillStyle=c.createPattern(h,"no-repeat"),f.fillRect(0,0,i+a,n+s),t.fillStyle=f.createPattern(l,"no-repeat"),t.fillRect(0,0,i+a,n+s),this.restoreStyles(e,u)}render(t){}}ue.ignoreStyles=["mask","transform","clip-path"];var he=()=>{};class ce extends ct{constructor(){super(...arguments),this.type="clipPath"}apply(t){var{document:e}=this,r=Reflect.getPrototypeOf(t),{beginPath:i,closePath:n}=t;r&&(r.beginPath=he,r.closePath=he),Reflect.apply(i,t,[]),this.children.forEach(i=>{if("undefined"!==typeof i.path){var a="undefined"!==typeof i.elementTransform?i.elementTransform():null;a||(a=ht.fromElement(e,i)),a&&a.apply(t),i.path(t),r&&(r.closePath=n),a&&a.unapply(t)}}),Reflect.apply(n,t,[]),t.clip(),r&&(r.beginPath=i,r.closePath=n)}render(t){}}class le extends ct{constructor(){super(...arguments),this.type="filter"}apply(t,e){var{document:r,children:i}=this,n=e.getBoundingBox(t);if(n){var a=0,s=0;i.forEach(t=>{var e=t.extraFilterDistance||0;a=Math.max(a,e),s=Math.max(s,e)});var o=Math.floor(n.width),u=Math.floor(n.height),h=o+2*a,c=u+2*s;if(!(h<1||c<1)){var l=Math.floor(n.x),f=Math.floor(n.y),d=this.removeStyles(e,le.ignoreStyles),g=r.createCanvas(h,c),p=g.getContext("2d");r.screen.setDefaults(p),p.translate(-l+a,-f+s),e.render(p),i.forEach(t=>{"function"===typeof t.apply&&t.apply(p,0,0,h,c)}),t.drawImage(g,0,0,h,c,l-a,f-s,h,c),this.restoreStyles(e,d)}}}render(t){}}le.ignoreStyles=["filter","transform","clip-path"];class fe extends ct{constructor(t,e,r){super(t,e,r),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(t,e,r,i,n){}}class de extends ct{constructor(){super(...arguments),this.type="feMorphology"}apply(t,e,r,i,n){}}class ge extends ct{constructor(){super(...arguments),this.type="feComposite"}apply(t,e,r,i,n){}}class pe extends ct{constructor(t,e,r){super(t,e,r),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(t,e,r,i,n){var{document:a,blurRadius:s}=this,o=a.window?a.window.document.body:null,u=t.canvas;u.id=a.getUniqueId(),o&&(u.style.display="none",o.appendChild(u)),Object(f["a"])(u,e,r,i,n,s),o&&o.removeChild(u)}}class ve extends ct{constructor(){super(...arguments),this.type="title"}}class ye extends ct{constructor(){super(...arguments),this.type="desc"}}var me={svg:Ct,rect:Ot,circle:Et,ellipse:Pt,line:Mt,polyline:Nt,polygon:Rt,path:bt,pattern:Vt,marker:_t,defs:kt,linearGradient:Dt,radialGradient:Bt,stop:Ut,animate:Ft,animateColor:zt,animateTransform:Ht,font:Xt,"font-face":jt,"missing-glyph":Yt,glyph:wt,text:St,tspan:Tt,tref:qt,a:Wt,textPath:$t,image:Kt,g:It,symbol:Jt,style:ee,use:re,mask:ue,clipPath:ce,filter:le,feDropShadow:fe,feMorphology:de,feComposite:ge,feColorMatrix:oe,feGaussianBlur:pe,title:ve,desc:ye};function xe(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function be(t){for(var e=1;e1&&void 0!==arguments[1]&&arguments[1],r=document.createElement("img");return e&&(r.crossOrigin="Anonymous"),new Promise((e,i)=>{r.onload=()=>{e(r)},r.onerror=(t,e,r,n,a)=>{i(a)},r.src=t})})),Te.apply(this,arguments)}class Ae{constructor(t){var{rootEmSize:e=12,emSize:r=12,createCanvas:i=Ae.createCanvas,createImage:n=Ae.createImage,anonymousCrossOrigin:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.canvg=t,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=t.screen,this.rootEmSize=e,this.emSize=r,this.createCanvas=i,this.createImage=this.bindCreateImage(n,a),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(t,e){return"boolean"===typeof e?(r,i)=>t(r,"boolean"===typeof i?i:e):t}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:t}=this;return t[t.length-1]}set emSize(t){var{emSizeStack:e}=this;e.push(t)}popEmSize(){var{emSizeStack:t}=this;t.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(t=>t.loaded)}isFontsLoaded(){return this.fonts.every(t=>t.loaded)}createDocumentElement(t){var e=this.createElement(t.documentElement);return e.root=!0,e.addStylesFromStyleDefinition(),this.documentElement=e,e}createElement(t){var e=t.nodeName.replace(/^[^:]+:/,""),r=Ae.elementTypes[e];return"undefined"!==typeof r?new r(this,t):new lt(this,t)}createTextNode(t){return new At(this,t)}setViewBox(t){this.screen.setViewBox(be({document:this},t))}}function Ce(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function Oe(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:{};this.parser=new J(r),this.screen=new $(t,r),this.options=r;var i=new Ae(this,r),n=i.createDocumentElement(e);this.document=i,this.documentElement=n}static from(t,e){var r=arguments;return n()((function*(){var i=r.length>2&&void 0!==r[2]?r[2]:{},n=new J(i),a=yield n.parse(e);return new Ee(t,a,i)}))()}static fromString(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new J(r),n=i.parseFromString(e);return new Ee(t,n,r)}fork(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Ee.from(t,e,Oe(Oe({},this.options),r))}forkString(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Ee.fromString(t,e,Oe(Oe({},this.options),r))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var t=arguments,e=this;return n()((function*(){var r=t.length>0&&void 0!==t[0]?t[0]:{};e.start(Oe({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},r)),yield e.ready(),e.stop()}))()}start(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{documentElement:e,screen:r,options:i}=this;r.start(e,Oe(Oe({enableRedraw:!0},i),t))}stop(){this.screen.stop()}resize(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.documentElement.resize(t,e,r)}}}.call(this,r("4362"))},"3cba":function(t,e,r){"use strict";var i=r("6632"),n=r("badf"),a=r("cf4b"),s=r("443d"),o=r("933e"),u=r("b2d1"),h=r("601e"),c=r("4eb4"),l=r("66e0"),f=r("305a");n("match",(function(t,e,r){return[function(e){var r=h(this),n=s(e)?void 0:c(e,t);return n?i(n,e,r):new RegExp(e)[t](u(r))},function(t){var i=a(this),n=u(t),s=r(e,i,n);if(s.done)return s.value;if(!i.global)return f(i,n);var h=i.unicode;i.lastIndex=0;var c,d=[],g=0;while(null!==(c=f(i,n))){var p=u(c[0]);d[g]=p,""===p&&(i.lastIndex=l(n,o(i.lastIndex),h)),g++}return 0===g?null:d}]}))},4009:function(t,e,r){var i=r("46ab"),n=r("601e"),a=r("b2d1"),s=r("796f"),o=i("".replace),u="["+s+"]",h=RegExp("^"+u+u+"*"),c=RegExp(u+u+"*$"),l=function(t){return function(e){var r=a(n(e));return 1&t&&(r=o(r,h,"")),2&t&&(r=o(r,c,"")),r}};t.exports={start:l(1),end:l(2),trim:l(3)}},"41c4":function(t,e,r){var i=r("1a33"),n=TypeError;t.exports=function(t,e){if(i(e,t))return t;throw n("Incorrect invocation")}},4378:function(t,e,r){"use strict";var i,n,a,s=r("8af8"),o=r("5e8c"),u=r("feb8"),h=r("d530"),c=r("7f79"),l=r("0cca"),f=r("6053"),d=r("ec82"),g=f("iterator"),p=!1;[].keys&&(a=[].keys(),"next"in a?(n=c(c(a)),n!==Object.prototype&&(i=n)):p=!0);var v=!u(i)||s((function(){var t={};return i[g].call(t)!==t}));v?i={}:d&&(i=h(i)),o(i[g])||l(i,g,(function(){return this})),t.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:p}},"44c1":function(t,e,r){"use strict";var i=r("cf4b");t.exports=function(){var t=i(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},"4c92":function(t,e,r){var i=r("6053"),n=i("iterator"),a=!1;try{var s=0,o={next:function(){return{done:!!s++}},return:function(){a=!0}};o[n]=function(){return this},Array.from(o,(function(){throw 2}))}catch(u){}t.exports=function(t,e){if(!e&&!a)return!1;var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},t(i)}catch(u){}return r}},"4de1":function(t,e,r){"use strict";r.d(e,"a",(function(){return S}));
-/*! *****************************************************************************
-Copyright (c) Microsoft Corporation.
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
-REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
-INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
-OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-PERFORMANCE OF THIS SOFTWARE.
-***************************************************************************** */
-var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function n(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function a(t){var e="";Array.isArray(t)||(t=[t]);for(var r=0;rt.phi1&&(t.phi2-=2*u),1===t.sweepFlag&&t.phi2i)return[];if(0===i)return[[t*r/(t*t+e*e),e*r/(t*t+e*e)]];var n=Math.sqrt(i);return[[(t*r+e*n)/(t*t+e*e),(e*r-t*n)/(t*t+e*e)],[(t*r-e*n)/(t*t+e*e),(e*r+t*n)/(t*t+e*e)]]}var l,f=Math.PI/180;function d(t,e,r){return(1-r)*t+r*e}function g(t,e,r,i){return t+Math.cos(i/180*u)*e+Math.sin(i/180*u)*r}function p(t,e,r,i){var n=1e-6,a=e-t,s=r-e,o=3*a+3*(i-r)-6*s,u=6*(s-a),h=3*a;return Math.abs(o)v&&(n.sweepFlag=+!n.sweepFlag),n}))}function u(){return function(t){var e={};for(var r in t)e[r]=t[r];return e}}t.ROUND=function(t){function e(e){return Math.round(e*t)/t}return void 0===t&&(t=1e13),o(t),function(t){return void 0!==t.x1&&(t.x1=e(t.x1)),void 0!==t.y1&&(t.y1=e(t.y1)),void 0!==t.x2&&(t.x2=e(t.x2)),void 0!==t.y2&&(t.y2=e(t.y2)),void 0!==t.x&&(t.x=e(t.x)),void 0!==t.y&&(t.y=e(t.y)),void 0!==t.rX&&(t.rX=e(t.rX)),void 0!==t.rY&&(t.rY=e(t.rY)),t}},t.TO_ABS=e,t.TO_REL=function(){return n((function(t,e,r){return t.relative||(void 0!==t.x1&&(t.x1-=e),void 0!==t.y1&&(t.y1-=r),void 0!==t.x2&&(t.x2-=e),void 0!==t.y2&&(t.y2-=r),void 0!==t.x&&(t.x-=e),void 0!==t.y&&(t.y-=r),t.relative=!0),t}))},t.NORMALIZE_HVZ=function(t,e,r){return void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),n((function(i,n,a,s,o){if(isNaN(s)&&!(i.type&S.MOVE_TO))throw new Error("path must start with moveto");return e&&i.type&S.HORIZ_LINE_TO&&(i.type=S.LINE_TO,i.y=i.relative?0:a),r&&i.type&S.VERT_LINE_TO&&(i.type=S.LINE_TO,i.x=i.relative?0:n),t&&i.type&S.CLOSE_PATH&&(i.type=S.LINE_TO,i.x=i.relative?s-n:s,i.y=i.relative?o-a:o),i.type&S.ARC&&(0===i.rX||0===i.rY)&&(i.type=S.LINE_TO,delete i.rX,delete i.rY,delete i.xRot,delete i.lArcFlag,delete i.sweepFlag),i}))},t.NORMALIZE_ST=r,t.QT_TO_C=i,t.INFO=n,t.SANITIZE=function(t){void 0===t&&(t=0),o(t);var e=NaN,r=NaN,i=NaN,a=NaN;return n((function(n,s,o,u,h){var c=Math.abs,l=!1,f=0,d=0;if(n.type&S.SMOOTH_CURVE_TO&&(f=isNaN(e)?0:s-e,d=isNaN(r)?0:o-r),n.type&(S.CURVE_TO|S.SMOOTH_CURVE_TO)?(e=n.relative?s+n.x2:n.x2,r=n.relative?o+n.y2:n.y2):(e=NaN,r=NaN),n.type&S.SMOOTH_QUAD_TO?(i=isNaN(i)?s:2*s-i,a=isNaN(a)?o:2*o-a):n.type&S.QUAD_TO?(i=n.relative?s+n.x1:n.x1,a=n.relative?o+n.y1:n.y2):(i=NaN,a=NaN),n.type&S.LINE_COMMANDS||n.type&S.ARC&&(0===n.rX||0===n.rY||!n.lArcFlag)||n.type&S.CURVE_TO||n.type&S.SMOOTH_CURVE_TO||n.type&S.QUAD_TO||n.type&S.SMOOTH_QUAD_TO){var g=void 0===n.x?0:n.relative?n.x:n.x-s,p=void 0===n.y?0:n.relative?n.y:n.y-o;f=isNaN(i)?void 0===n.x1?f:n.relative?n.x:n.x1-s:i-s,d=isNaN(a)?void 0===n.y1?d:n.relative?n.y:n.y1-o:a-o;var v=void 0===n.x2?0:n.relative?n.x:n.x2-s,y=void 0===n.y2?0:n.relative?n.y:n.y2-o;c(g)<=t&&c(p)<=t&&c(f)<=t&&c(d)<=t&&c(v)<=t&&c(y)<=t&&(l=!0)}return n.type&S.CLOSE_PATH&&c(s-u)<=t&&c(o-h)<=t&&(l=!0),l?[]:n}))},t.MATRIX=a,t.ROTATE=function(t,e,r){void 0===e&&(e=0),void 0===r&&(r=0),o(t,e,r);var i=Math.sin(t),n=Math.cos(t);return a(n,i,-i,n,e-e*n+r*i,r-e*i-r*n)},t.TRANSLATE=function(t,e){return void 0===e&&(e=0),o(t,e),a(1,0,0,1,t,e)},t.SCALE=function(t,e){return void 0===e&&(e=t),o(t,e),a(t,0,0,e,0,0)},t.SKEW_X=function(t){return o(t),a(1,0,Math.atan(t),1,0,0)},t.SKEW_Y=function(t){return o(t),a(1,Math.atan(t),0,1,0,0)},t.X_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),o(t),a(-1,0,0,1,t,0)},t.Y_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),o(t),a(1,0,0,-1,0,t)},t.A_TO_C=function(){return n((function(t,e,r){return S.ARC===t.type?function(t,e,r){var i,n,a,o;t.cX||h(t,e,r);for(var u=Math.min(t.phi1,t.phi2),c=Math.max(t.phi1,t.phi2)-u,l=Math.ceil(c/90),g=new Array(l),p=e,v=r,y=0;yu.maxX&&(u.maxX=t),tu.maxY&&(u.maxY=t),tk&&l(v(r,n.x1,n.x2,n.x,k));for(var m=0,x=p(i,n.y1,n.y2,n.y);mk&&f(v(i,n.y1,n.y2,n.y,k))}if(n.type&S.ARC){l(n.x),f(n.y),h(n,r,i);for(var b=n.xRot/180*Math.PI,w=Math.cos(b)*n.rX,T=Math.sin(b)*n.rX,A=-Math.sin(b)*n.rY,C=Math.cos(b)*n.rY,O=n.phi1n.phi2?[n.phi2+360,n.phi1+360]:[n.phi2,n.phi1],E=O[0],P=O[1],M=function(t){var e=t[0],r=t[1],i=180*Math.atan2(r,e)/Math.PI;return iE&&kE&&k
u)throw new SyntaxError('Expected positive number, got "'+u+'" at index "'+n+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+n+'"');this.curArgs.push(u),this.curArgs.length===T[this.curCommandType]&&(S.HORIZ_LINE_TO===this.curCommandType?i({type:S.HORIZ_LINE_TO,relative:this.curCommandRelative,x:u}):S.VERT_LINE_TO===this.curCommandType?i({type:S.VERT_LINE_TO,relative:this.curCommandRelative,y:u}):this.curCommandType===S.MOVE_TO||this.curCommandType===S.LINE_TO||this.curCommandType===S.SMOOTH_QUAD_TO?(i({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),S.MOVE_TO===this.curCommandType&&(this.curCommandType=S.LINE_TO)):this.curCommandType===S.CURVE_TO?i({type:S.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===S.SMOOTH_CURVE_TO?i({type:S.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===S.QUAD_TO?i({type:S.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===S.ARC&&i({type:S.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!x(a))if(","===a&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==a&&"-"!==a&&"."!==a)if(o)this.curNumber=a,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+n+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+a+'" at index '+n+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==a&&"Z"!==a)if("h"===a||"H"===a)this.curCommandType=S.HORIZ_LINE_TO,this.curCommandRelative="h"===a;else if("v"===a||"V"===a)this.curCommandType=S.VERT_LINE_TO,this.curCommandRelative="v"===a;else if("m"===a||"M"===a)this.curCommandType=S.MOVE_TO,this.curCommandRelative="m"===a;else if("l"===a||"L"===a)this.curCommandType=S.LINE_TO,this.curCommandRelative="l"===a;else if("c"===a||"C"===a)this.curCommandType=S.CURVE_TO,this.curCommandRelative="c"===a;else if("s"===a||"S"===a)this.curCommandType=S.SMOOTH_CURVE_TO,this.curCommandRelative="s"===a;else if("q"===a||"Q"===a)this.curCommandType=S.QUAD_TO,this.curCommandRelative="q"===a;else if("t"===a||"T"===a)this.curCommandType=S.SMOOTH_QUAD_TO,this.curCommandRelative="t"===a;else{if("a"!==a&&"A"!==a)throw new SyntaxError('Unexpected character "'+a+'" at index '+n+".");this.curCommandType=S.ARC,this.curCommandRelative="a"===a}else e.push({type:S.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=a,this.curNumberHasDecimal="."===a}else this.curNumber+=a,this.curNumberHasDecimal=!0;else this.curNumber+=a;else this.curNumber+=a,this.curNumberHasExp=!0;else this.curNumber+=a,this.curNumberHasExpDigits=this.curNumberHasExp}return e},e.prototype.transform=function(t){return Object.create(this,{parse:{value:function(e,r){void 0===r&&(r=[]);for(var i=0,n=Object.getPrototypeOf(this).parse.call(this,e);ic)a.f(t,r=n[c++],i[r]);return t}},"51a9":function(t,e,r){var i=r("46ab"),n=r("8af8"),a=r("5e8c"),s=r("e2cd9"),o=r("b257"),u=r("2c9d"),h=function(){},c=[],l=o("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=i(f.exec),g=!f.exec(h),p=function(t){if(!a(t))return!1;try{return l(h,c,t),!0}catch(e){return!1}},v=function(t){if(!a(t))return!1;switch(s(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return g||!!d(f,u(t))}catch(e){return!0}};v.sham=!0,t.exports=!l||n((function(){var t;return p(p.call)||!p(Object)||!p((function(){t=!0}))||t}))?v:p},5215:function(t,e,r){"use strict";var i=r("3475"),n=r("6632"),a=r("a569"),s=r("5487").CONSTRUCTOR;i({target:"Promise",stat:!0,forced:s},{reject:function(t){var e=a.f(this);return n(e.reject,void 0,t),e.promise}})},"53f4":function(t,e,r){"use strict";var i=r("3475"),n=r("a578"),a=r("0965").indexOf,s=r("5afb"),o=n([].indexOf),u=!!o&&1/o([1],1,-0)<0,h=s("indexOf");i({target:"Array",proto:!0,forced:u||!h},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return u?o(this,t,e)||0:a(this,t,e)}})},5487:function(t,e,r){var i=r("1a89"),n=r("f34c"),a=r("5e8c"),s=r("afc0"),o=r("2c9d"),u=r("6053"),h=r("0b10"),c=r("2393"),l=r("ec82"),f=r("23a2"),d=n&&n.prototype,g=u("species"),p=!1,v=a(i.PromiseRejectionEvent),y=s("Promise",(function(){var t=o(n),e=t!==String(n);if(!e&&66===f)return!0;if(l&&(!d["catch"]||!d["finally"]))return!0;if(!f||f<51||!/native code/.test(t)){var r=new n((function(t){t(1)})),i=function(t){t((function(){}),(function(){}))},a=r.constructor={};if(a[g]=i,p=r.then((function(){}))instanceof i,!p)return!0}return!e&&(h||c)&&!v}));t.exports={CONSTRUCTOR:y,REJECTION_EVENT:v,SUBCLASSING:p}},"562a":function(t,e,r){"use strict";var i=r("3475"),n=r("b257"),a=r("ec82"),s=r("f34c"),o=r("5487").CONSTRUCTOR,u=r("2564"),h=n("Promise"),c=a&&!o;i({target:"Promise",stat:!0,forced:a||o},{resolve:function(t){return u(c&&this===h?s:this,t)}})},"58b7":function(t,e,r){"use strict";var i=r("3475"),n=r("ec82"),a=r("5487").CONSTRUCTOR,s=r("f34c"),o=r("b257"),u=r("5e8c"),h=r("0cca"),c=s&&s.prototype;if(i({target:"Promise",proto:!0,forced:a,real:!0},{catch:function(t){return this.then(void 0,t)}}),!n&&u(s)){var l=o("Promise").prototype["catch"];c["catch"]!==l&&h(c,"catch",l,{unsafe:!0})}},"5d09":function(t,e){t.exports=function(t,e){return{value:t,done:e}}},"5d12":function(t,e,r){(function(e){for(var i=r("2f1f"),n="undefined"===typeof window?e:window,a=["moz","webkit"],s="AnimationFrame",o=n["request"+s],u=n["cancel"+s]||n["cancelRequest"+s],h=0;!o&&h=e.length?(t.target=void 0,h(void 0,!0)):h("keys"==r?i:"values"==r?e[i]:[i,e[i]],!1)}),"values");var p=a.Arguments=a.Array;if(n("keys"),n("values"),n("entries"),!c&&l&&"values"!==p.name)try{o(p,"name",{value:"values"})}catch(v){}},"624a":function(t,e,r){var i=r("6632"),n=r("cc50"),a=r("cf4b"),s=r("cda9"),o=r("f482"),u=TypeError;t.exports=function(t,e){var r=arguments.length<2?o(t):e;if(n(r))return a(i(r,t));throw u(s(t)+" is not iterable")}},"66e0":function(t,e,r){"use strict";var i=r("e211").charAt;t.exports=function(t,e,r){return e+(r?i(t,e).length:1)}},"69bf":function(t,e,r){var i=r("b257");t.exports=i("document","documentElement")},"6d05":function(t,e,r){var i=r("cf4b"),n=r("6023"),a=r("443d"),s=r("6053"),o=s("species");t.exports=function(t,e){var r,s=i(t).constructor;return void 0===s||a(r=i(s)[o])?e:n(r)}},"6f13":function(t,e,r){var i=r("6171")["default"],n=r("e8f7");function a(t){var e=n(t,"string");return"symbol"===i(e)?e:String(e)}t.exports=a,t.exports.__esModule=!0,t.exports["default"]=t.exports},7468:function(t,e,r){var i=r("9431");t.exports=/web0s(?!.*chrome)/i.test(i)},"77f5":function(t,e,r){var i=r("f34c"),n=r("4c92"),a=r("5487").CONSTRUCTOR;t.exports=a||!n((function(t){i.all(t).then(void 0,(function(){}))}))},"78bd":function(t,e,r){var i,n,a,s,o,u,h,c,l=r("1a89"),f=r("6005"),d=r("dacf").f,g=r("99c6").set,p=r("2c3a"),v=r("01b1"),y=r("7468"),m=r("364c"),x=l.MutationObserver||l.WebKitMutationObserver,b=l.document,w=l.process,S=l.Promise,T=d(l,"queueMicrotask"),A=T&&T.value;A||(i=function(){var t,e;m&&(t=w.domain)&&t.exit();while(n){e=n.fn,n=n.next;try{e()}catch(r){throw n?s():a=void 0,r}}a=void 0,t&&t.enter()},p||m||y||!x||!b?!v&&S&&S.resolve?(h=S.resolve(void 0),h.constructor=S,c=f(h.then,h),s=function(){c(i)}):m?s=function(){w.nextTick(i)}:(g=f(g,l),s=function(){g(i)}):(o=!0,u=b.createTextNode(""),new x(i).observe(u,{characterData:!0}),s=function(){u.data=o=!o})),t.exports=A||function(t){var e={fn:t,next:void 0};a&&(a.next=e),n||(n=e,s()),a=e}},"796f":function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"7f79":function(t,e,r){var i=r("4d80"),n=r("5e8c"),a=r("8300"),s=r("0e26"),o=r("cffe"),u=s("IE_PROTO"),h=Object,c=h.prototype;t.exports=o?h.getPrototypeOf:function(t){var e=a(t);if(i(e,u))return e[u];var r=e.constructor;return n(r)&&e instanceof r?r.prototype:e instanceof h?c:null}},"83d5":function(t,e,r){"use strict";var i=r("b257"),n=r("6e16"),a=r("6053"),s=r("8d5c"),o=a("species");t.exports=function(t){var e=i(t),r=n.f;s&&e&&!e[o]&&r(e,o,{configurable:!0,get:function(){return this}})}},"8bf1":function(t,e,r){"use strict";var i=r("4f65"),n=r("6e16"),a=r("0259");t.exports=function(t,e,r){var s=i(e);s in t?n.f(t,s,a(0,r)):t[s]=r}},"8c7c":function(t,e,r){"use strict";var i=r("3475"),n=r("46ab"),a=r("916c"),s=n([].reverse),o=[1,2];i({target:"Array",proto:!0,forced:String(o)===String(o.reverse())},{reverse:function(){return a(this)&&(this.length=this.length),s(this)}})},"8d96":function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},"8f6c":function(t,e,r){"use strict";var i=r("3475"),n=r("6632"),a=r("cc50"),s=r("a569"),o=r("8d96"),u=r("99f3"),h=r("77f5");i({target:"Promise",stat:!0,forced:h},{race:function(t){var e=this,r=s.f(e),i=r.reject,h=o((function(){var s=a(e.resolve);u(t,(function(t){n(s,e,t).then(r.resolve,i)}))}));return h.error&&i(h.value),r.promise}})},"906f":function(t,e,r){"use strict";var i=r("3475"),n=r("6632"),a=r("cc50"),s=r("a569"),o=r("8d96"),u=r("99f3"),h=r("77f5");i({target:"Promise",stat:!0,forced:h},{all:function(t){var e=this,r=s.f(e),i=r.resolve,h=r.reject,c=o((function(){var r=a(e.resolve),s=[],o=0,c=1;u(t,(function(t){var a=o++,u=!1;c++,n(r,e,t).then((function(t){u||(u=!0,s[a]=t,--c||i(s))}),h)})),--c||i(s)}));return c.error&&h(c.value),r.promise}})},"90c6":function(t,e,r){var i=r("8af8"),n=r("1a89"),a=n.RegExp;t.exports=i((function(){var t=a("(?b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$ c")}))},"92ca":function(t,e,r){var i=r("d12a"),n=TypeError;t.exports=function(t){if(i(t))throw n("The method doesn't accept regular expressions");return t}},"94c8":function(t,e){var r=TypeError;t.exports=function(t,e){if(tm;m++)if(b=N(t[m]),b&&h(p,b))return b;return new g(!1)}v=c(t,y)}w=C?t.next:v.next;while(!(S=n(w,v)).done){try{b=N(S.value)}catch(R){f(v,"throw",R)}if("object"==typeof b&&b&&h(p,b))return b}return new g(!1)}},"9e3a":function(t,e,r){var i=r("6632"),n=r("4d80"),a=r("1a33"),s=r("44c1"),o=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in o||n(t,"flags")||!a(o,t)?e:i(s,t)}},a1db:function(t,e,r){"use strict";var i=r("3475"),n=r("a578"),a=r("dacf").f,s=r("933e"),o=r("b2d1"),u=r("92ca"),h=r("601e"),c=r("2f7d"),l=r("ec82"),f=n("".startsWith),d=n("".slice),g=Math.min,p=c("startsWith"),v=!l&&!p&&!!function(){var t=a(String.prototype,"startsWith");return t&&!t.writable}();i({target:"String",proto:!0,forced:!v&&!p},{startsWith:function(t){var e=o(h(this));u(t);var r=s(g(arguments.length>1?arguments[1]:void 0,e.length)),i=o(t);return f?f(e,i,r):d(e,r,r+i.length)===i}})},a1e9:function(t,e,r){"use strict";function i(t){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}r.d(e,"a",(function(){return u}));var a=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],s=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function o(t,e,r,n,a){if("string"===typeof t&&(t=document.getElementById(t)),!t||"object"!==i(t)||!("getContext"in t))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var s=t.getContext("2d");try{return s.getImageData(e,r,n,a)}catch(o){throw new Error("unable to access image data: "+o)}}function u(t,e,r,i,n,a){if(!(isNaN(a)||a<1)){a|=0;var s=o(t,e,r,i,n);s=h(s,e,r,i,n,a),t.getContext("2d").putImageData(s,e,r)}}function h(t,e,r,i,n,o){for(var u,h=t.data,l=2*o+1,f=i-1,d=n-1,g=o+1,p=g*(g+1)/2,v=new c,y=v,m=1;m>A;if(h[S+3]=Z,0!==Z){var K=255/Z;h[S]=(U*T>>A)*K,h[S+1]=(F*T>>A)*K,h[S+2]=(z*T>>A)*K}else h[S]=h[S+1]=h[S+2]=0;U-=I,F-=L,z-=D,H-=B,I-=x.r,L-=x.g,D-=x.b,B-=x.a;var J=$+o+1;J=w+(J>A,ht>0?(ht=255/ht,h[Et]=(gt*T>>A)*ht,h[Et+1]=(pt*T>>A)*ht,h[Et+2]=(vt*T>>A)*ht):h[Et]=h[Et+1]=h[Et+2]=0,gt-=ct,pt-=lt,vt-=ft,yt-=dt,ct-=x.r,lt-=x.g,ft-=x.b,dt-=x.a,Et=at+((Et=Ot+g)1?arguments[1]:void 0)}})},be14:function(t,e,r){var i=r("1a89");t.exports=function(t,e){var r=i.console;r&&r.error&&(1==arguments.length?r.error(t):r.error(t,e))}},be39:function(t,e,r){"use strict";var i=r("3475"),n=r("4009").trim,a=r("1361");i({target:"String",proto:!0,forced:a("trim")},{trim:function(){return n(this)}})},c053:function(t,e,r){"use strict";var i=r("4378").IteratorPrototype,n=r("d530"),a=r("0259"),s=r("f474"),o=r("fec3"),u=function(){return this};t.exports=function(t,e,r,h){var c=e+" Iterator";return t.prototype=n(i,{next:a(+!h,r)}),s(t,c,!1,!0),o[c]=u,t}},c085:function(t,e,r){var i=r("b895"),n=r("d0dc");t.exports=Object.keys||function(t){return i(t,n)}},cffe:function(t,e,r){var i=r("8af8");t.exports=!i((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},d093:function(t,e){var r=function(){this.head=null,this.tail=null};r.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}},t.exports=r},d12a:function(t,e,r){var i=r("feb8"),n=r("424c"),a=r("6053"),s=a("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[s])?!!e:"RegExp"==n(t))}},d530:function(t,e,r){var i,n=r("cf4b"),a=r("517f"),s=r("d0dc"),o=r("6797"),u=r("69bf"),h=r("b957"),c=r("0e26"),l=">",f="<",d="prototype",g="script",p=c("IE_PROTO"),v=function(){},y=function(t){return f+g+l+t+f+"/"+g+l},m=function(t){t.write(y("")),t.close();var e=t.parentWindow.Object;return t=null,e},x=function(){var t,e=h("iframe"),r="java"+g+":";return e.style.display="none",u.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(y("document.F=Object")),t.close(),t.F},b=function(){try{i=new ActiveXObject("htmlfile")}catch(e){}b="undefined"!=typeof document?document.domain&&i?m(i):x():m(i);var t=s.length;while(t--)delete b[d][s[t]];return b()};o[p]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(v[d]=n(t),r=new v,v[d]=null,r[p]=t):r=b(),void 0===e?r:a.f(r,e)}},e211:function(t,e,r){var i=r("46ab"),n=r("ed00"),a=r("b2d1"),s=r("601e"),o=i("".charAt),u=i("".charCodeAt),h=i("".slice),c=function(t){return function(e,r){var i,c,l=a(s(e)),f=n(r),d=l.length;return f<0||f>=d?t?"":void 0:(i=u(l,f),i<55296||i>56319||f+1===d||(c=u(l,f+1))<56320||c>57343?t?o(l,f):i:t?h(l,f,f+2):c-56320+(i-55296<<10)+65536)}};t.exports={codeAt:c(!1),charAt:c(!0)}},e2d9:function(t,e,r){var i=r("46ab"),n=r("8300"),a=Math.floor,s=i("".charAt),o=i("".replace),u=i("".slice),h=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,r,i,l,f){var d=r+t.length,g=i.length,p=c;return void 0!==l&&(l=n(l),p=h),o(f,p,(function(n,o){var h;switch(s(o,0)){case"$":return"$";case"&":return t;case"`":return u(e,0,r);case"'":return u(e,d);case"<":h=l[u(o,1,-1)];break;default:var c=+o;if(0===c)return n;if(c>g){var f=a(c/10);return 0===f?n:f<=g?void 0===i[f-1]?s(o,1):i[f-1]+s(o,1):n}h=i[c-1]}return void 0===h?"":h}))}},e715:function(t,e,r){var i=r("6053"),n=r("fec3"),a=i("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||s[a]===t)}},e7a9:function(t,e,r){"use strict";var i=r("3475"),n=r("a578"),a=r("dacf").f,s=r("933e"),o=r("b2d1"),u=r("92ca"),h=r("601e"),c=r("2f7d"),l=r("ec82"),f=n("".endsWith),d=n("".slice),g=Math.min,p=c("endsWith"),v=!l&&!p&&!!function(){var t=a(String.prototype,"endsWith");return t&&!t.writable}();i({target:"String",proto:!0,forced:!v&&!p},{endsWith:function(t){var e=o(h(this));u(t);var r=arguments.length>1?arguments[1]:void 0,i=e.length,n=void 0===r?i:g(s(r),i),a=o(t);return f?f(e,a,n):d(e,n-a.length,n)===a}})},e8f7:function(t,e,r){r("f8ac");var i=r("6171")["default"];function n(t,e){if("object"!==i(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},ebb8:function(t,e,r){var i=r("b957"),n=i("span").classList,a=n&&n.constructor&&n.constructor.prototype;t.exports=a===Object.prototype?void 0:a},ec73:function(t,e,r){var i=r("46ab");t.exports=i([].slice)},f34c:function(t,e,r){var i=r("1a89");t.exports=i.Promise},f474:function(t,e,r){var i=r("6e16").f,n=r("4d80"),a=r("6053"),s=a("toStringTag");t.exports=function(t,e,r){t&&!r&&(t=t.prototype),t&&!n(t,s)&&i(t,s,{configurable:!0,value:e})}},f482:function(t,e,r){var i=r("e2cd9"),n=r("4eb4"),a=r("443d"),s=r("fec3"),o=r("6053"),u=o("iterator");t.exports=function(t){if(!a(t))return n(t,u)||n(t,"@@iterator")||s[i(t)]}},faee:function(t,e){function r(t,e,r,i,n,a,s){try{var o=t[a](s),u=o.value}catch(h){return void r(h)}o.done?e(u):Promise.resolve(u).then(i,n)}function i(t){return function(){var e=this,i=arguments;return new Promise((function(n,a){var s=t.apply(e,i);function o(t){r(s,n,a,o,u,"next",t)}function u(t){r(s,n,a,o,u,"throw",t)}o(void 0)}))}}t.exports=i,t.exports.__esModule=!0,t.exports["default"]=t.exports},fd89:function(t,e,r){"use strict";var i=r("3475"),n=r("03e8");i({target:"RegExp",proto:!0,forced:/./.exec!==n},{exec:n})},fec3:function(t,e){t.exports={}}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-53cf9065.43d57024.js b/tools/mind-map/dist/js/chunk-53cf9065.43d57024.js
deleted file mode 100644
index 9ab2ab16..00000000
--- a/tools/mind-map/dist/js/chunk-53cf9065.43d57024.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-53cf9065"],{"076b":function(t,e,c){t.exports=c.p+"img/alipay.6b6aea86.jpg"},4710:function(t,e,c){"use strict";c.r(e);var i=function(){var t=this;t._self._c;return t._m(0)},o=[function(){var t=this,e=t._self._c;return e("div",[e("h1",[t._v("简介")]),e("p",[e("code",[t._v("simple-mind-map")]),t._v("是一个简单&强大的Web思维导图库,不依赖任何特定框架。可以帮助你快速开发思维导图产品。")]),e("blockquote",[e("p",[t._v("如果你只是想使用思维导图,你也完全可以把本项目的demo作为一个普通的在线思维导图工具使用。点击右上角的【在线示例】开始使用吧。")]),e("p",[t._v("另外也提供了客户端可供下载,支持"),e("code",[t._v("Windows")]),t._v("、"),e("code",[t._v("Mac")]),t._v("及"),e("code",[t._v("Linux")]),t._v(","),e("a",{attrs:{href:"/mind-map/#/doc/zh/client"}},[t._v("点此了解更多")]),t._v("。")])]),e("h2",[t._v("特性")]),e("ul",[e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox0",checked:"true"}}),e("label",{attrs:{for:"checkbox0"}},[t._v("插件化架构,除核心功能外,其他功能作为插件提供,按需使用,减小整体体积")])]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox1",checked:"true"}}),e("label",{attrs:{for:"checkbox1"}},[t._v("支持逻辑结构图、思维导图、组织结构图、目录组织图、时间轴、鱼骨图六种结构")])]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox2",checked:"true"}}),e("label",{attrs:{for:"checkbox2"}},[t._v("内置多种主题,允许高度自定义样式,支持注册新主题")])]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox3",checked:"true"}}),e("label",{attrs:{for:"checkbox3"}},[t._v("支持快捷键")])]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox4",checked:"true"}}),e("label",{attrs:{for:"checkbox4"}},[t._v("节点内容支持图片、图标、超链接、备注、标签、概要")])]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox5",checked:"true"}}),e("label",{attrs:{for:"checkbox5"}},[t._v("支持前进后退")])]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox6",checked:"true"}}),e("label",{attrs:{for:"checkbox6"}},[t._v("支持拖动、缩放")])]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox7",checked:"true"}}),e("label",{attrs:{for:"checkbox7"}},[t._v("支持右键和Ctrl+左键两种多选方式")])]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox8",checked:"true"}}),e("label",{attrs:{for:"checkbox8"}},[t._v("支持节点自由拖拽、拖拽调整")])]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox9",checked:"true"}}),e("label",{attrs:{for:"checkbox9"}},[t._v("支持多种节点形状")])]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox10",checked:"true"}}),e("label",{attrs:{for:"checkbox10"}},[t._v("支持导出为")]),e("code",[t._v("json")]),t._v("、"),e("code",[t._v("png")]),t._v("、"),e("code",[t._v("svg")]),t._v("、"),e("code",[t._v("pdf")]),t._v("、"),e("code",[t._v("markdown")]),t._v(",支持从"),e("code",[t._v("json")]),t._v("、"),e("code",[t._v("xmind")]),t._v("、"),e("code",[t._v("markdown")]),t._v("导入")]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox11",checked:"true"}}),e("label",{attrs:{for:"checkbox11"}},[t._v("支持小地图、支持水印")])]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox12",checked:"true"}}),e("label",{attrs:{for:"checkbox12"}},[t._v("支持关联线")])])]),e("h2",[t._v("仓库目录介绍")]),e("p",[t._v("1."),e("code",[t._v("simple-mind-map")])]),e("p",[t._v("思维导图库,框架无关,"),e("code",[t._v("Vue")]),t._v("、"),e("code",[t._v("React")]),t._v("等框架或无框架都可以使用。")]),e("p",[t._v("2."),e("code",[t._v("web")])]),e("p",[t._v("使用"),e("code",[t._v("simple-mind-map")]),t._v("库,基于"),e("code",[t._v("vue2.x")]),t._v("、"),e("code",[t._v("ElementUI")]),t._v("搭建的在线思维导图。特性:")]),e("ul",[e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox13",checked:"true"}}),e("label",{attrs:{for:"checkbox13"}},[t._v("工具栏,支持插入节点、删除节点;编辑节点图片、图标、超链接、备注、标签、概要")])]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox14",checked:"true"}}),e("label",{attrs:{for:"checkbox14"}},[t._v("侧边栏,基础样式设置面板、节点样式设置面板、大纲面板、主题选择面板、结构选择面板")])]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox15",checked:"true"}}),e("label",{attrs:{for:"checkbox15"}},[t._v("导入导出功能;数据默认保存在浏览器本地存储,也支持直接创建、打开、编辑电脑本地文件")])]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox16",checked:"true"}}),e("label",{attrs:{for:"checkbox16"}},[t._v("右键菜单,支持展开、收起、整理布局等操作")])]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox17",checked:"true"}}),e("label",{attrs:{for:"checkbox17"}},[t._v("底部栏,支持节点数量、字数统计;支持切换编辑和只读模式;支持放大缩小;支持全屏切换;支持小地图")])])]),e("p",[t._v("提供文档页面服务。")]),e("p",[t._v("3."),e("code",[t._v("dist")])]),e("p",[t._v("打包"),e("code",[t._v("web")]),t._v("后的资源文件夹。")]),e("h2",[t._v("相关文章")]),e("p",[e("a",{attrs:{href:"https://juejin.cn/post/6987711560521089061"}},[t._v("Web思维导图实现的技术点分析")])]),e("p",[e("a",{attrs:{href:"https://juejin.cn/post/7157681502506090510"}},[t._v("只需百来行代码,为你的Web页面增加本地文件操作能力,确定不试试吗?")])]),e("p",[e("a",{attrs:{href:"https://juejin.cn/post/7199666255883927612"}},[t._v("当你按下方向键,电视是如何寻找下一个焦点的")])]),e("p",[e("a",{attrs:{href:"https://juejin.cn/post/7204854015463538744"}},[t._v("如何在canvas中模拟css的背景图片样式")])]),e("p",[e("a",{attrs:{href:"https://juejin.cn/post/7233012756314701884"}},[t._v("我的第一个Electron应用")])]),e("h2",[t._v("特别说明")]),e("p",[t._v("本项目可用于学习和参考,用于实际项目时请先深度体验一下是否能满足您的需求。")]),e("p",[t._v("本项目可能没有完整测试到每一个功能点,所以可能存在bug,另外,当节点数量非常多的时候,性能也存在一些问题,因为每个人能接受的卡顿程度不一样,所以你可以自行测试节点数量上限。")]),e("p",[t._v("如果有建议或发现了bug,可以在此提交"),e("a",{attrs:{href:"https://github.com/wanglin2/mind-map/issues"}},[t._v("issues")]),t._v("。")]),e("p",[t._v("项目内置的主题和图标来自于:")]),e("p",[e("a",{attrs:{href:"https://naotu.baidu.com/"}},[t._v("百度脑图")])]),e("p",[e("a",{attrs:{href:"https://www.zhixi.com/"}},[t._v("知犀思维导图")])]),e("p",[t._v("尊重版权,主题和图标请勿直接用于商业项目。")]),e("h2",[t._v("为什么不是?")]),e("p",[t._v("1."),e("a",{attrs:{href:"https://www.zhixi.com/"}},[t._v("知犀")])]),e("p",[t._v("知犀是一个免费的思维导图产品,支持多端同步,ui设计很漂亮,功能也很齐全,但是它并不开源,所以只能作为一个用户,而无法在你的项目中使用。")]),e("p",[t._v("类似知犀的其他在线思维导图产品还有很多,比如"),e("a",{attrs:{href:"https://gitmind.cn/"}},[t._v("GitMind")]),t._v("、"),e("a",{attrs:{href:"http://www.mindline.cn/"}},[t._v("MindLine")]),t._v("、"),e("a",{attrs:{href:"https://www.mindmeister.com/zh"}},[t._v("MinMeister")]),t._v("、"),e("a",{attrs:{href:"https://mubu.com/"}},[t._v("幕布")]),t._v("等等,搜索引擎上搜索一下非常多,但是这些产品或者是要收费,或者是小公司开发的,稳定性和持续性无法保证,当然最关键的就是它们都不开源。")]),e("p",[t._v("2."),e("a",{attrs:{href:"https://github.com/fex-team/kityminder-core"}},[t._v("kityminder-core")])]),e("p",[e("code",[t._v("kityminder-core")]),t._v("是百度开发的开源的脑图工具,功能很强大,性能也很好,但是它已经不维护了,所以代码比较陈旧,界面美观度也比较一般,另外bug只能自己修,功能只能自己开发,对前端开发能力要求比较高。")]),e("p",[t._v("3."),e("a",{attrs:{href:"https://github.com/hizzgdev/jsmind"}},[t._v("jsmind")]),t._v("、"),e("a",{attrs:{href:"https://github.com/ssshooter/mind-elixir-core"}},[t._v("Mind-elixir")]),t._v("、"),e("a",{attrs:{href:"https://github.com/ondras/my-mind"}},[t._v("my-mind")]),t._v("、"),e("a",{attrs:{href:"https://github.com/awehook/blink-mind"}},[t._v("blink-mind")]),t._v("、"),e("a",{attrs:{href:"https://github.com/luvsic3/remind"}},[t._v("remind")]),t._v("、"),e("a",{attrs:{href:"https://github.com/hellowuxin/vue3-mindmap"}},[t._v("vue3-mindmap")]),t._v("、"),e("a",{attrs:{href:"https://github.com/zyascend/ZMindMap"}},[t._v("ZMindMap")]),t._v("...")]),e("p",[t._v("这些开源的思维导图也都不错,各有各的特点,但是它们也都有一定缺点,比如停止更新、界面美观度一般、功能比较少、依赖某个框架等等。")]),e("p",[t._v("综上,在开源的思维导图中,你很难找到一个比"),e("code",[t._v("simple-mind-map")]),t._v("更好的选择。当然,"),e("code",[t._v("simple-mind-map")]),t._v("也远远谈不上最好,它也有很多不足,如你在前面的【特别说明】所看到的那样,不过"),e("code",[t._v("simple-mind-map")]),t._v("一直处于快速迭代中,欢迎你加入进来一起完善它。")]),e("h2",[t._v("浏览器兼容性")]),e("p",[t._v("推荐使用最新版"),e("code",[t._v("chrome")]),t._v("浏览器。")]),e("p",[t._v("有限测试情况:")]),e("p",[t._v("正常运行:"),e("code",[t._v("360")]),t._v("极速浏览器(v13.5.2036.0)、"),e("code",[t._v("opera")]),t._v("浏览器(v71.0.3770.284)。")]),e("p",[t._v("非正常运行:"),e("code",[t._v("Firefox")]),t._v("(v98.0.2),富文本模式下节点内容无法显示,如果要支持"),e("code",[t._v("Firefox")]),t._v("浏览器,请使用非富文本模式。")]),e("p",[t._v("不支持:"),e("code",[t._v("IE")]),t._v("浏览器。")]),e("h2",[t._v("License")]),e("p",[e("a",{attrs:{href:"https://opensource.org/licenses/MIT"}},[t._v("MIT")])]),e("h2",[t._v("请作者喝杯咖啡")]),e("p",[t._v("开源不易,如果本项目有帮助到你的话,可以请作者喝杯咖啡哟~")]),e("blockquote",[e("p",[t._v("转账请备注【思维导图】。你的头像和名字将会出现在下面。")])]),e("img",{staticStyle:{width:"300px"},attrs:{src:c("076b")}}),e("img",{staticStyle:{width:"300px"},attrs:{src:c("4968")}}),e("div",{staticStyle:{display:"flex"}},[e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:c("f8ce")}}),e("p",[t._v("Think")])])])])}],r={},v=r,h=c("2877"),_=Object(h["a"])(v,i,o,!1,null,null,null);e["default"]=_.exports},4968:function(t,e,c){t.exports=c.p+"img/wechat.444e29cb.jpg"},f8ce:function(t,e,c){t.exports=c.p+"img/Think.b3740bfb.jpg"}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-f19ee390.aec06c00.js b/tools/mind-map/dist/js/chunk-f19ee390.aec06c00.js
deleted file mode 100644
index 84ca7cec..00000000
--- a/tools/mind-map/dist/js/chunk-f19ee390.aec06c00.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f19ee390"],{"076b":function(e,t,o){e.exports=o.p+"img/alipay.6b6aea86.jpg"},4968:function(e,t,o){e.exports=o.p+"img/wechat.444e29cb.jpg"},"7f29":function(e,t,o){"use strict";o.r(t);var i=function(){var e=this;e._self._c;return e._m(0)},a=[function(){var e=this,t=e._self._c;return t("div",[t("h1",[e._v("Introduction")]),t("p",[t("code",[e._v("simple-mind-map")]),e._v(" is a simple and powerful web mind map library, not dependent on any specific framework. Can help you quickly develop mind mapping products.")]),t("blockquote",[t("p",[e._v("If you just want to use mind mapping, you can also use the demo of this project as a regular online mind mapping tool. Click on the 【Online Demo】 in the upper right corner to start using it.")]),t("p",[e._v("Additionally, a client is provided for download, support "),t("code",[e._v("Windows")]),e._v("、"),t("code",[e._v("Mac")]),e._v(" and "),t("code",[e._v("Linux")]),e._v(", "),t("a",{attrs:{href:"/mind-map/#/doc/zh/client"}},[e._v("Click here to learn more")]),e._v("。")])]),t("h2",[e._v("Features")]),t("ul",[t("li",[t("input",{attrs:{type:"checkbox",id:"checkbox18",checked:"true"}}),t("label",{attrs:{for:"checkbox18"}},[e._v("Plugin architecture. In addition to core functions, other functions are provided as plugins, which can be used as needed to reduce the overall volume")])]),t("li",[t("input",{attrs:{type:"checkbox",id:"checkbox19",checked:"true"}}),t("label",{attrs:{for:"checkbox19"}},[e._v("Supports six types of structures: logical structure diagrams, mind maps,")]),e._v(" organizational structure diagrams, directory organization diagrams, timeline, and fishbone diagrams")]),t("li",[t("input",{attrs:{type:"checkbox",id:"checkbox20",checked:"true"}}),t("label",{attrs:{for:"checkbox20"}},[e._v("Built-in multiple themes and allows for highly customized styles, and support register new themes")])]),t("li",[t("input",{attrs:{type:"checkbox",id:"checkbox21",checked:"true"}}),t("label",{attrs:{for:"checkbox21"}},[e._v("Supports shortcuts")])]),t("li",[t("input",{attrs:{type:"checkbox",id:"checkbox22",checked:"true"}}),t("label",{attrs:{for:"checkbox22"}},[e._v("Node content supports images, icons, hyperlinks, notes, tags, and")]),e._v(" summaries")]),t("li",[t("input",{attrs:{type:"checkbox",id:"checkbox23",checked:"true"}}),t("label",{attrs:{for:"checkbox23"}},[e._v("Supports forward and backward navigation")])]),t("li",[t("input",{attrs:{type:"checkbox",id:"checkbox24",checked:"true"}}),t("label",{attrs:{for:"checkbox24"}},[e._v("Supports dragging and scaling")])]),t("li",[t("input",{attrs:{type:"checkbox",id:"checkbox25",checked:"true"}}),t("label",{attrs:{for:"checkbox25"}},[e._v("Supports right-click and Ctrl + left-click to select multiple items")])]),t("li",[t("input",{attrs:{type:"checkbox",id:"checkbox26",checked:"true"}}),t("label",{attrs:{for:"checkbox26"}},[e._v("Supports free dragging and dragging to adjust nodes")])]),t("li",[t("input",{attrs:{type:"checkbox",id:"checkbox27",checked:"true"}}),t("label",{attrs:{for:"checkbox27"}},[e._v("Supports various node shapes")])]),t("li",[t("input",{attrs:{type:"checkbox",id:"checkbox28",checked:"true"}}),t("label",{attrs:{for:"checkbox28"}},[e._v("Supports export to json, png, svg, pdf markdown, and import from json, xmind, markdown")])]),t("li",[t("input",{attrs:{type:"checkbox",id:"checkbox29",checked:"true"}}),t("label",{attrs:{for:"checkbox29"}},[e._v("Supports mini map、support watermark")])]),t("li",[t("input",{attrs:{type:"checkbox",id:"checkbox30",checked:"true"}}),t("label",{attrs:{for:"checkbox30"}},[e._v("Supports associative lines")])])]),t("h2",[e._v("Repository Catalog Introduction")]),t("p",[e._v("1."),t("code",[e._v("simple-mind-map")])]),t("p",[e._v("This is a mind map library that is framework-agnostic and can be used with frameworks such as Vue and React, or without a framework.")]),t("p",[e._v("2."),t("code",[e._v("web")])]),t("p",[e._v("This is an online mind map built using the "),t("code",[e._v("simple-mind-map")]),e._v(" library and based on "),t("code",[e._v("Vue2.x")]),e._v(" and "),t("code",[e._v("ElementUI")]),e._v(". Features include:")]),t("ul",[t("li",[t("input",{attrs:{type:"checkbox",id:"checkbox31",checked:"true"}}),t("label",{attrs:{for:"checkbox31"}},[e._v("Toolbar, which supports inserting and deleting nodes, and editing node")]),e._v(" images, icons, hyperlinks, notes, tags, and summaries")]),t("li",[t("input",{attrs:{type:"checkbox",id:"checkbox32",checked:"true"}}),t("label",{attrs:{for:"checkbox32"}},[e._v("Sidebar, with panels for basic style settings, node style settings,")]),e._v(" outline, theme selection, and structure selection")]),t("li",[t("input",{attrs:{type:"checkbox",id:"checkbox33",checked:"true"}}),t("label",{attrs:{for:"checkbox33"}},[e._v("Import and export functionality; data is saved in the browser's local")]),e._v(" storage by default, but it also supports creating, opening, and editing local files on the computer directly")]),t("li",[t("input",{attrs:{type:"checkbox",id:"checkbox34",checked:"true"}}),t("label",{attrs:{for:"checkbox34"}},[e._v("Right-click menu, which supports operations such as expanding, collapsing,")]),e._v(" and organizing layout")]),t("li",[t("input",{attrs:{type:"checkbox",id:"checkbox35",checked:"true"}}),t("label",{attrs:{for:"checkbox35"}},[e._v("Bottom bar, which supports node and word count statistics, switching")]),e._v(" between edit and read-only modes, zooming in and out, and switching to full screen, support mini map")])]),t("p",[e._v("Provide document page service.")]),t("p",[e._v("3."),t("code",[e._v("dist")])]),t("p",[e._v("The folder containing the packaged resources for the "),t("code",[e._v("web")]),e._v(" folder.")]),t("h2",[e._v("Related Articles")]),t("p",[t("a",{attrs:{href:"https://juejin.cn/post/6987711560521089061"}},[e._v("Technical Analysis of Web Mind Map Implementation (chi)")])]),t("p",[t("a",{attrs:{href:"https://juejin.cn/post/7157681502506090510"}},[e._v("Only a hundred lines of code are needed to add local file operation capability to your Web page. Are you sure not to try?")])]),t("p",[t("a",{attrs:{href:"https://juejin.cn/post/7199666255883927612"}},[e._v("When you press the direction key, how does the TV find the next focus")])]),t("p",[t("a",{attrs:{href:"https://juejin.cn/post/7204854015463538744"}},[e._v("How to simulate the background image style of css in canvas")])]),t("p",[t("a",{attrs:{href:"https://juejin.cn/post/7233012756314701884"}},[e._v("My first Electron application")])]),t("h2",[e._v("Special Note")]),t("p",[e._v("This project can be used for learning and reference. Please deeply experience whether it can meet your needs when using it for actual projects.")]),t("p",[e._v("This project may not have fully tested every function point, so there may be bugs. In addition, when the number of nodes is very large, there may be some performance issues. Because everyone can accept different levels of congestion, you can test the maximum number of nodes yourself.")]),t("p",[e._v("If you have suggestions or find bugs, you can submit "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/issues"}},[e._v("issues")]),e._v(" here.")]),t("p",[e._v("The built-in themes and icons in the project come from:")]),t("p",[t("a",{attrs:{href:"https://naotu.baidu.com/"}},[e._v("Baidu Mind Map")])]),t("p",[t("a",{attrs:{href:"https://www.zhixi.com/"}},[e._v("Zhixi Mind Map")])]),t("p",[e._v("Respect the copyright, and do not use the theme and icons directly for commercial projects.")]),t("h2",[e._v("Why not?")]),t("p",[e._v("1."),t("a",{attrs:{href:"https://www.zhixi.com/"}},[e._v("Zhixi")])]),t("p",[e._v("Zhixi is a free mind mapping product that supports multi end synchronization. The UI design is beautiful and the features are complete, but it is not open source, so it can only be used as a user and cannot be used in your project.")]),t("p",[e._v("There are many other online mind mapping products similar to Zhixi, such as "),t("a",{attrs:{href:"https://gitmind.cn/"}},[e._v("GitMind")]),e._v("、"),t("a",{attrs:{href:"http://www.mindline.cn/"}},[e._v("MindLine")]),e._v("、"),t("a",{attrs:{href:"https://www.mindmeister.com/zh"}},[e._v("MinMeister")]),e._v("、"),t("a",{attrs:{href:"https://mubu.com/"}},[e._v("Mubu")]),e._v(" and so on, There are many searches on search engines, but these products either require fees or are developed by small companies, and their stability and sustainability cannot be guaranteed. Of course, the most crucial thing is that they are not open-source.")]),t("p",[e._v("2."),t("a",{attrs:{href:"https://github.com/fex-team/kityminder-core"}},[e._v("kityminder-core")])]),t("p",[t("code",[e._v("kityminder-core")]),e._v(" is an open source brain mapping tool developed by Baidu. It has powerful functions and good performance, but it is no longer maintained. Therefore, the code is relatively old, and the interface beauty is relatively ordinary. In addition, bugs can only be fixed by yourself, and the functions can only be developed by yourself. It has high requirements for front-end development capabilities.")]),t("p",[e._v("3."),t("a",{attrs:{href:"https://github.com/hizzgdev/jsmind"}},[e._v("jsmind")]),e._v("、"),t("a",{attrs:{href:"https://github.com/ssshooter/mind-elixir-core"}},[e._v("Mind-elixir")]),e._v("、"),t("a",{attrs:{href:"https://github.com/ondras/my-mind"}},[e._v("my-mind")]),e._v("、"),t("a",{attrs:{href:"https://github.com/awehook/blink-mind"}},[e._v("blink-mind")]),e._v("、"),t("a",{attrs:{href:"https://github.com/luvsic3/remind"}},[e._v("remind")]),e._v("、"),t("a",{attrs:{href:"https://github.com/hellowuxin/vue3-mindmap"}},[e._v("vue3-mindmap")]),e._v("、"),t("a",{attrs:{href:"https://github.com/zyascend/ZMindMap"}},[e._v("ZMindMap")]),e._v("...")]),t("p",[e._v("These open-source mind maps are also good, each with its own characteristics, but they also have certain drawbacks, such as stopping updates, average interface aesthetics, less functionality, relying on a certain framework, and so on.")]),t("p",[e._v("In summary, in open-source mind maps, it is difficult to find a better choice than "),t("code",[e._v("simple-mind-map")]),e._v(". Of course, "),t("code",[e._v("simple-mind-map")]),e._v(" is far from being the best, and it also has many shortcomings, as you saw in the previous [special note]. However, "),t("code",[e._v("simple-mind-map")]),e._v(" has always been in a fast iteration process, and we welcome you to join and improve it together.")]),t("h2",[e._v("Browser Compatibility")]),t("p",[e._v("We recommend using the latest version of the "),t("code",[e._v("Chrome")]),e._v(" browser.")]),t("p",[e._v("Limited testing situation:")]),t("p",[e._v("Normal operation: "),t("code",[e._v("360")]),e._v(" extreme speed browser(v13.5.2036.0)、"),t("code",[e._v("opera")]),e._v(" browser(v71.0.3770.284)。")]),t("p",[e._v("Abnormal operation: "),t("code",[e._v("Firefox")]),e._v("(v98.0.2), Node content cannot be displayed in rich text mode. If you want to support the "),t("code",[e._v("Firefox")]),e._v(" browser, please use non rich text mode.")]),t("p",[e._v("Unsupported: "),t("code",[e._v("IE")]),e._v(" browser.")]),t("h2",[e._v("License")]),t("p",[t("a",{attrs:{href:"https://opensource.org/licenses/MIT"}},[e._v("MIT")])]),t("h2",[e._v("Invite the author to a cup of coffee")]),t("p",[e._v("Open source is not easy. If this project is helpful to you, you can invite the author to have a cup of coffee~")]),t("blockquote",[t("p",[e._v("Please note the 【mind map】 for transfer. Your avatar and name will appear below.")])]),t("img",{staticStyle:{width:"300px"},attrs:{src:o("076b")}}),t("img",{staticStyle:{width:"300px"},attrs:{src:o("4968")}})])}],r={},n=r,s=o("2877"),c=Object(s["a"])(n,i,a,!1,null,null,null);t["default"]=c.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-f42d483e.67ff2fdd.js b/tools/mind-map/dist/js/chunk-f42d483e.67ff2fdd.js
deleted file mode 100644
index 9051bed1..00000000
--- a/tools/mind-map/dist/js/chunk-f42d483e.67ff2fdd.js
+++ /dev/null
@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f42d483e"],{"0afa":function(s,t,a){s.exports=a.p+"img/iconList.4fe8aef2.jpg"},ae22:function(s,t,a){"use strict";a.r(t);var n=function(){var s=this;s._self._c;return s._m(0)},v=[function(){var s=this,t=s._self._c;return t("div",[t("h1",[s._v("插入和扩展节点图标")]),t("h2",[s._v("插入图标")]),t("p",[t("code",[s._v("simple-mind-map")]),s._v("内置了一些图标:")]),t("img",{attrs:{src:a("0afa")}}),t("p",[s._v("你可以通过如下方式获取:")]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-keyword"},[s._v("import")]),s._v(" { nodeIconList } "),t("span",{staticClass:"hljs-keyword"},[s._v("from")]),s._v(" "),t("span",{staticClass:"hljs-string"},[s._v("'simple-mind-map/src/svg/icons'")]),s._v("\n")])]),t("p",[s._v("如果你使用的是"),t("code",[s._v("umd")]),s._v("格式的文件,可以通过如下方式获取(v0.5.8+):")]),t("pre",{staticClass:"hljs"},[t("code",[s._v("simpleMindMap.iconList\n")])]),t("p",[s._v("结构如下:")]),t("pre",{staticClass:"hljs"},[t("code",[s._v("[\n {\n "),t("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'优先级图标'")]),s._v(",\n "),t("span",{staticClass:"hljs-attr"},[s._v("type")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'priority'")]),s._v(",\n "),t("span",{staticClass:"hljs-attr"},[s._v("list")]),s._v(": [\n {\n "),t("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("'1'")]),s._v(",\n "),t("span",{staticClass:"hljs-attr"},[s._v("icon")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v('` `')]),s._v("\n }\n ]\n }\n]\n")])]),t("p",[s._v("你可以通过UI界面展示出来,要给一个节点设置图标,可以使用"),t("code",[s._v("node.setIcon([])")]),s._v("方法,要获取节点当前的图标,可以使用"),t("code",[s._v("node.getData('icon')")]),s._v("方法。")]),t("p",[s._v("一个图标由"),t("code",[s._v("type_name")]),s._v("构成,比如前面的图标要插入节点,那么图标的值为"),t("code",[s._v("priority_1")]),s._v("。")]),t("p",[s._v("通常一个分组的图标只允许插入一个,所以存在一个替换的逻辑,完整示例如下:")]),t("iframe",{staticStyle:{width:"100%",height:"455px",border:"none"},attrs:{src:"https://wanglin2.github.io/playground/#eNrFVltvG0UU/ivDIrRrcNZ2xZOxowLtQySCUF+9UbTZHdtDd2dWO7NJrNRSqYooVSpQkVBLkAjQFIRU9ZFeBP0zsWP+Befs7M0bV2qe+mBr51y+78y5zMyB8XEU2bsJNbpGT3oxixSRVCXRusNZGIlYkQMS02GTCL4pEq6o3yRy7AaB2LtGh2RKhrEIiQkIZuGxybi/6UZa5RgSxAFdC0G6FrqRYzicEIcHVBGUoWWf8CQIHO5wT3CpiOsptks/Fz6VoCv5rMFWQ3t6SRxTrjbA/jMGHn0y2Cr9YQuoAamlJhFtEu6GtEH66+QAyRHgOp2AGrXkA2Jum/CPRqhutcj895vzX05m//ww+/be4u6ts1vP5w+ezr5/PHvyYPbzn4unJ7Ojf+fH3+RgsA26D3C1qOwhKDZQZzFFw4KfQEpVEnOipf0+RoOKKewu5dc8szsPZ3eO/3v4iAEgatiQWJrrHXBa6zRyvDqxjALmUW3bJJ0UdkpoIGnugSSwH2R4NP/xid6q3lW21fuHi8dfzb+7P/v65Oyn24Xq9NnN02d/nb28DUINhRnARKY7vUgWlvKQxqwsKEVj0N5Ks4Kg2lInRpdmOQTYweLV0eLXw/nRq/m937QZ5qmMqJar12ar8ICMNbEkGely4iqpm//9cnb3OC/OKuQokWOrgpTWAf8qHW7vukFC7aGIr7re2OIgq+QIl3bWz9bAtu0aBQ6Ezg/gOrwYU8sq+70yZnQvH08rI6BBl/jCS0IAtUdUXQ0ofn4y2fAtM/P8VHDlMk5js9HUXr6r3G6ZEsdAgWNURFqs6L5CsWPMj5/rSdIHQJqODAwNvTELfNgYGg9KjBrcSpY60+mLw7MXf9TJlglXkML5scruLUWQf2ay3I9xpq4JobBzvhCSKSY4eJoBHSqzSUwPSgdl2krNp42P9FlbtIANTWRiS23rBgQXC3rKjUeybJcV3QmtgzaDThYODtj5Fg4oH6kxWSftyrDh6TBksUxDRpy6G0z7a8YHrAtPbM0rkHvLxHkzG+TGjSJh9QFdfTmUA4jDAr9eS994cNfBAo6gKHAVhRUhPZ/tEi9wpew7Rpa7KzQUjpGqMwPml9piRMCk1wJt1TBHUkIEOy6a5KH2dhKl4Ka67MERdB1M8lE3o5iJmKkJVrVjNsAnl2x3ei3tdkGYS8swly4EI0YxlbIajZZcMJoSJo8mg6lHUyYx/+q1KjWCpVSTQJfrcvbycAy7pZ8b2SFnUxnanpSOUUyCXSln3jJ7zFfjLum02++ldoRExWzFFBihY1NF2j/4e7de9hyqdHR3pAgSpR1xDoaqS9rZSomoXJynH1M2GoP5h+12tJ8zr+Z9P2cOYUIZ8Oaokev7jI9yQRG6nXXhG0bcySPIgi7WAAgTlNbAaBq6AvjAs7+UgsN7MoV3MgVUoDgzHQOei/qgtFvwacdwY7GQYrHWdmKxJ2kMII6RnXkrnpDa93yp0SuLbWpM/wfhELfG"}}),t("h2",[s._v("扩展图标")]),t("blockquote",[t("p",[s._v("v0.5.8+")])]),t("p",[s._v("除了使用内置的图标外,你也可以扩展图标,实例化"),t("code",[s._v("simple-mind-map")]),s._v("时传入你要扩展的图标列表即可:")]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-keyword"},[s._v("new")]),s._v(" MindMap({\n "),t("span",{staticClass:"hljs-comment"},[s._v("// ...")]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("iconList")]),s._v(": [\n {\n "),t("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("''")]),s._v(","),t("span",{staticClass:"hljs-comment"},[s._v("// 分组名称")]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("type")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("''")]),s._v(","),t("span",{staticClass:"hljs-comment"},[s._v("// 分组的值")]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("list")]),s._v(": ["),t("span",{staticClass:"hljs-comment"},[s._v("// 分组下的图标列表")]),s._v("\n {\n "),t("span",{staticClass:"hljs-attr"},[s._v("name")]),s._v(": "),t("span",{staticClass:"hljs-string"},[s._v("''")]),s._v(","),t("span",{staticClass:"hljs-comment"},[s._v("// 图标名称")]),s._v("\n "),t("span",{staticClass:"hljs-attr"},[s._v("icon")]),s._v(":"),t("span",{staticClass:"hljs-string"},[s._v("''")]),t("span",{staticClass:"hljs-comment"},[s._v("// 图标,可以传svg或图片")]),s._v("\n }\n ]\n }\n ]\n})\n")])]),t("p",[s._v("然后和插入内置图标一样,通过"),t("code",[s._v("setIcon")]),s._v("方法插入图标的"),t("code",[s._v("key")]),s._v("即可。")]),t("p",[s._v("完整示例:")]),t("iframe",{staticStyle:{width:"100%",height:"455px",border:"none"},attrs:{src:"https://wanglin2.github.io/playground/#eNrFWGmP28YZ/iusikLaai2SklarddZBqINaXdSxkijRMgIeI5ISL/HSkRhIg7RxUgcJUiDNUaBOGydBgDT91lxt/sxqvf3Uv9AZUpfXG6D+VAKUZt7jeY95h3yHr0Qoy0r4Hojcjpw6oq1aLuYA17NeHBqqbpm2i72C2WB0iJlG3fQMF0iHmKPwmmbO2mCE3cdGtqljUYgQ3WrUVUOq81bIGkYcSNbALR1Sb+m8NYwMDQwbGhpwMURDkncww9O0oTE0RNNwXIwXXdUHjCkBB/J29mJ37x2EmqJn28Bwy1C+pkKNO9jdezt9GALiQGrMXVjgEDN4HRxgd17EXkHGEcAELCAbcbE4Fn05Cn+REGLjOHb519cu//x49c8/rN565+rt15+8/t3lh9+s3vt89fWHqz99efXN49Un/7p89OYGDIYB5hDumleJEWSUES+mukDf2sdgSl3PNrCQeucO8gYx7sPoAvuhndWDj1YPHv37o89UCIg46giLhbZ+AZVukQcbvOuGHUtTRRDKHmJkAHsfA5oDNhrICIwHWfjs8oOvw1DDqNahvv/w6vPfXL77/uq3j598/MaWdfHtaxfffvXkhzcgMYRCGUCJDCJ9niw8lYfAZzcGl+LgLnEvyAoCDSXDxIRL87QLMIKrnz65+vTh5Sc/Xb7zl1AM5Wnn0bVc/Wy2thowY4doSdZGn07cXuou//HD6u1Hm8W5CdnyHCW2hxSsA/rZq/CEz2seSIxMu8iLSsyAtL0coWliXc+xu4lE4poJtCHC/EDcobHdprHYrt73thmYbbZnbG0AaLcxyRQ9HYImZOAWNYCGuUVZikXXmnnTcHnVAHb04DDUkniXv71LyTCCCMPIHikku2DuIvIwcvnou3AnhQ+AIB1rMCQoKqomwcCQ8N0dxjW4G61ct3Tx/cMn339x3djTBm8wCp8fN8n9nzzYDNe0jZ5qqG7bNF1UOU3TUV3VNKBmVAMjN3qIRUW4dHCZ7m3E11Wyl9M9x9ED7zYWvXrzq9XfPr747q3Vg9/BTRU9RAUeDFfvvfPki7/vFNAOgQqi57imvieH9uFrP+7ktNDkln/x7e+3j5DVgz9effrlfhaupXLtFRnihzrX/NiEdjsa1KGq8zLALUN+QeAdkEkfqr1coz0jqiXZpODFnHeVYleGo/IM/uTreaqO/rkzu4gGVK4k5TrdIkXVSs08PldyLUSll92JlKeqx42zxgRJ6d3ivNvuzi1xVJlwTRxd6XjwX9E5P6AdxUcBfe+i2Z6Px3EfjRmDu84OLv9sjvv0fLQcpba0Csdusfj2JBjzrUlgD2JONaaWdpCjskRXGt1ZgUk2u92leJwkc5yG+/0UlfVzTt5Xx06qnqJzVLpBAD/t4ay3pAGKMUVX2kW6CxjbTdGuby6pluKVkvJgQJW5Ja9YsyqOnzSFaXbRKDNJ0yBOVFuo9vMDKZOZFNqTcRxvVh0OTy6mJh8/toUzu641sy0RP+qSydSZQHL82DNBRwLVpD7uulZprh8vCLIRXwqNaVy1VboJ6OyZLGR53HPjDYbsGs75vDLq+EnJj6f8bLzW7bFJlW1ycMGcsi3C6uOEdonhBCqZUut8kof/bM5ynU5fHOh+cjAuEkS1TGaso6mc8jM8KYKl62gFQXKWaWlxMu9lCTfjtLM0f0JqjSbOxgnF8liBbDbJXjw3dUd0Lz1b6BVTLfbsrJ5TG3p3ztTPVUYis7zMafVOp26O+wW7waq1Ml9ihXPdwPtdUYlXuJ5RqPHVNshMASNONOfI0Vvputsde0d8iZOc6Xl3kunn6Kl2rlkWl8TPMhm2uGCklioJShwcLclzyT1yxv1W2WDZFguYsTjvg2m8xJLVo4Zla7n++ARYaH7cXxD+jD9v8YKiF7RMtcTXVC0v2AKlqzOLHRdwI10s6dW2kqa7vVadcZnzHnD6VZniOEdvK8UqlaP1+sAsF1nbK7GjE2CaQoFuZZqCPOjZXrlnn+XnFLWYNUp6bk5Q+Zo84wZp3aMqQqbE2mqJ9Wdkql4O7lmjOk23eY9qc32Y81lBoNJ8GeIBxpl0bY/ILP3RGF+QM6pGTNs1Xe3V8uq8LC9IcbZIxUv6sbK77TmZomrBPcvXpmlOaFCD7LRJOHjzrFwb4B2hOKvhmX7ab+aP0qNmnhmlYRwoliAev0oUxgKhdcyy5rJ8PFexOe2sXNQ9uWeiuNJJ+AiQxRpRUAZemRPkutCZjVEtuecmVWTNepEdpZNJn3FYhLHoVGWVJSvF6VKhlcmAr1aQTo4atxr0NDd38nlG6BkSRxT5yszvi5TPNmg1rWieyFD6bM5wXUagZh2+lOziAiV7I73o86kcpI2lTD45h7Eu27ljhRmYRc5PZjOcwvqLIz4VX5Yq9nE1FSd8lanVhFJhcmYCSk3xZUIqnJzBR5mfZzpmekCcVx1Yu3ZRbRc0l6On6nxG8ifS2aKrqCxv+fPBSKXq5kl5QE9rbc2gW0S33y7leJPgeK87pRtEW2Ytt8TWe9KcJHJjtqyU2ONatSBXOmpy7JRrlDQBA5aQ5DbfcbI1hZ+me3TS6VNMAddr0Od0tiWp6bYVr5fbA6/ICbjZHDfmR7hTN8bj1GzeEJs0vsyLo6kCDJ91UmQPp0qMLwOizR4vPPSAo4oa3Zmcey09n49u3wr/+fHh6t1vLn54fPHjI8eXLx98AOlP3gq68mfeo9s36ZYWzO8fvBAeR7ZdUgL2WVHUdb0c9mjwrRqDbRdvy86uo7qhgYPdFZK5S67toB702S5PA4bsKtiLGLHXj6IGeqTaTvBWRzjX1WBD/DMdJpTeaqLurQDfh7EoejdGD7BXX932FNd72JvPT7seFfWT8D7Fw0MhPA7CCezSLY13AZxh2Kmk+pio8Y5zZxhZ564AdHMYCdhrAVXacbddJBQ5xSF3X3CD5JqmJvBIZOPqqeC5LjzMvSTCLn0CRTbdcNSyVdNW3QVqfMjoAdTZUF4mT/FQ7Tlhkk/DJJ8LxpRt4Dj73oSU5/RmB7PxZg3zPN5serSNL+H8GU9267AZneJ7ywynjrvQwhV/aX2+H0YSeHioXx8lEsDRE6LjDCPbzZTYq4hN1c1UyVVuYyRB/CqQwzBr28HaAFqERR8wghJE9y+vV84GaqfIC46peW6oiLbSCHaexHrmmtZu8qx5BaiyAsXTBGHNN5ZvtvvrjWUdbnIV2t2gWrwkqYa8IWxdT6wL+X/0mNx4sHZ6O4eAcBMGaxA5jIQrgD6jJMaOacCvNgH8cM2AK7A9mQwj8KNMeBxJ4HCYsOG5UNUBWqxbgm3OHGBDkGFkfVS44UNNqPvsUiOttW/3I/f/Cx/8M9s="}})])}],l={},i=l,c=a("2877"),e=Object(c["a"])(i,n,v,!1,null,null,null);t["default"]=e.exports}}]);
\ No newline at end of file
diff --git a/tools/mind-map/dist/js/chunk-vendors.d36f5bd6.js b/tools/mind-map/dist/js/chunk-vendors.d36f5bd6.js
deleted file mode 100644
index 0ebd6563..00000000
--- a/tools/mind-map/dist/js/chunk-vendors.d36f5bd6.js
+++ /dev/null
@@ -1,407 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"00ee":function(e,t,n){var r=n("b622"),i=r("toStringTag"),o={};o[i]="z",e.exports="[object z]"===String(o)},"0259":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"03d6":function(e,t,n){var r=n("9c0e"),i=n("6ca1"),o=n("39ad")(!1),a=n("5a94")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),l=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);while(t.length>l)r(s,n=t[l++])&&(~o(c,n)||c.push(n));return c}},"04f8":function(e,t,n){var r=n("2d00"),i=n("d039");e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},"051b":function(e,t,n){var r=n("1a14"),i=n("10db");e.exports=n("0bad")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"05f5":function(e,t,n){var r=n("7a41"),i=n("ef08").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},"06cf":function(e,t,n){var r=n("83ab"),i=n("c65b"),o=n("d1e7"),a=n("5c6c"),s=n("fc6a"),l=n("a04b"),c=n("1a2d"),u=n("0cfb"),h=Object.getOwnPropertyDescriptor;t.f=r?h:function(e,t){if(e=s(e),t=l(t),u)try{return h(e,t)}catch(n){}if(c(e,t))return a(!i(o.f,e,t),e[t])}},"072d":function(e,t,n){"use strict";var r=n("0bad"),i=n("9876"),o=n("fed5"),a=n("1917"),s=n("0983"),l=n("9fbb"),c=Object.assign;e.exports=!c||n("4b8b")((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r}))?function(e,t){var n=s(e),c=arguments.length,u=1,h=o.f,f=a.f;while(c>u){var d,A=l(arguments[u++]),p=h?i(A).concat(h(A)):i(A),m=p.length,g=0;while(m>g)d=p[g++],r&&!f.call(A,d)||(n[d]=A[d])}return n}:c},"07fa":function(e,t,n){var r=n("50c4");e.exports=function(e){return r(e.length)}},"0808":function(e,t,n){},"0960":function(e,t,n){e.exports=n("b19a")},"0965":function(e,t,n){var r=n("44c7"),i=n("50f5"),o=n("9440"),a=function(e){return function(t,n,a){var s,l=r(t),c=o(l),u=i(a,c);if(e&&n!=n){while(c>u)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},"0983":function(e,t,n){var r=n("c901");e.exports=function(e){return Object(r(e))}},"09d9":function(e,t,n){var r=n("9a1c").isArray;e.exports={copyOptions:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},ensureFlagExists:function(e,t){e in t&&"boolean"===typeof t[e]||(t[e]=!1)},ensureSpacesExists:function(e){(!("spaces"in e)||"number"!==typeof e.spaces&&"string"!==typeof e.spaces)&&(e.spaces=0)},ensureAlwaysArrayExists:function(e){"alwaysArray"in e&&("boolean"===typeof e.alwaysArray||r(e.alwaysArray))||(e.alwaysArray=!1)},ensureKeyExists:function(e,t){e+"Key"in t&&"string"===typeof t[e+"Key"]||(t[e+"Key"]=t.compact?"_"+e:e)},checkFnExists:function(e,t){return e+"Fn"in t}}},"0ae2":function(e,t,n){var r=n("9876"),i=n("fed5"),o=n("1917");e.exports=function(e){var t=r(e),n=i.f;if(n){var a,s=n(e),l=o.f,c=0;while(s.length>c)l.call(e,a=s[c++])&&t.push(a)}return t}},"0b99":function(e,t,n){"use strict";var r=n("19fa")(!0);n("393a")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},"0bad":function(e,t,n){e.exports=!n("4b8b")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"0cb2":function(e,t,n){var r=n("e330"),i=n("7b0b"),o=Math.floor,a=r("".charAt),s=r("".replace),l=r("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,h,f){var d=n+e.length,A=r.length,p=u;return void 0!==h&&(h=i(h),p=c),s(f,p,(function(i,s){var c;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,d);case"<":c=h[l(s,1,-1)];break;default:var u=+s;if(0===u)return i;if(u>A){var f=o(u/10);return 0===f?i:f<=A?void 0===r[f-1]?a(s,1):r[f-1]+a(s,1):i}c=r[u-1]}return void 0===c?"":c}))}},"0cca":function(e,t,n){var r=n("5e8c"),i=n("6e16"),o=n("54be"),a=n("f2fc");e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:t;if(r(n)&&o(n,c,s),s.global)l?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(u){}l?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},"0cfb":function(e,t,n){var r=n("83ab"),i=n("d039"),o=n("cc12");e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d26":function(e,t,n){var r=n("e330"),i=Error,o=r("".replace),a=function(e){return String(i(e).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,l=s.test(a);e.exports=function(e,t){if(l&&"string"==typeof e&&!i.prepareStackTrace)while(t--)e=o(e,s,"");return e}},"0d51":function(e,t){var n=String;e.exports=function(e){try{return n(e)}catch(t){return"Object"}}},"0e15":function(e,t,n){var r=n("597f");e.exports=function(e,t,n){return void 0===n?r(e,t,!1):r(e,n,!1!==t)}},"0e26":function(e,t,n){var r=n("fe11"),i=n("6bd1"),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},"0f9c":function(e,t,n){"use strict";const r="undefined"!==typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var i={randomUUID:r};let o;const a=new Uint8Array(16);function s(){if(!o&&(o="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!o))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(a)}const l=[];for(let h=0;h<256;++h)l.push((h+256).toString(16).slice(1));function c(e,t=0){return(l[e[t+0]]+l[e[t+1]]+l[e[t+2]]+l[e[t+3]]+"-"+l[e[t+4]]+l[e[t+5]]+"-"+l[e[t+6]]+l[e[t+7]]+"-"+l[e[t+8]]+l[e[t+9]]+"-"+l[e[t+10]]+l[e[t+11]]+l[e[t+12]]+l[e[t+13]]+l[e[t+14]]+l[e[t+15]]).toLowerCase()}function u(e,t,n){if(i.randomUUID&&!t&&!e)return i.randomUUID();e=e||{};const r=e.random||(e.rng||s)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return c(r)}t["a"]=u},"0fae":function(e,t,n){},1098:function(e,t,n){"use strict";t.__esModule=!0;var r=n("17ed"),i=l(r),o=n("f893"),a=l(o),s="function"===typeof a.default&&"symbol"===typeof i.default?function(e){return typeof e}:function(e){return e&&"function"===typeof a.default&&e.constructor===a.default&&e!==a.default.prototype?"symbol":typeof e};function l(e){return e&&e.__esModule?e:{default:e}}t.default="function"===typeof a.default&&"symbol"===s(i.default)?function(e){return"undefined"===typeof e?"undefined":s(e)}:function(e){return e&&"function"===typeof a.default&&e.constructor===a.default&&e!==a.default.prototype?"symbol":"undefined"===typeof e?"undefined":s(e)}},"10ad":function(e,t,n){var r,i,o=n("a83d"),a={on:function(){},parse:function(){}},s=n("09d9"),l=n("9a1c").isArray,c=!0;function u(e){return r=s.copyOptions(e),s.ensureFlagExists("ignoreDeclaration",r),s.ensureFlagExists("ignoreInstruction",r),s.ensureFlagExists("ignoreAttributes",r),s.ensureFlagExists("ignoreText",r),s.ensureFlagExists("ignoreComment",r),s.ensureFlagExists("ignoreCdata",r),s.ensureFlagExists("ignoreDoctype",r),s.ensureFlagExists("compact",r),s.ensureFlagExists("alwaysChildren",r),s.ensureFlagExists("addParent",r),s.ensureFlagExists("trim",r),s.ensureFlagExists("nativeType",r),s.ensureFlagExists("nativeTypeAttributes",r),s.ensureFlagExists("sanitize",r),s.ensureFlagExists("instructionHasAttributes",r),s.ensureFlagExists("captureSpacesBetweenElements",r),s.ensureAlwaysArrayExists(r),s.ensureKeyExists("declaration",r),s.ensureKeyExists("instruction",r),s.ensureKeyExists("attributes",r),s.ensureKeyExists("text",r),s.ensureKeyExists("comment",r),s.ensureKeyExists("cdata",r),s.ensureKeyExists("doctype",r),s.ensureKeyExists("type",r),s.ensureKeyExists("name",r),s.ensureKeyExists("elements",r),s.ensureKeyExists("parent",r),s.checkFnExists("doctype",r),s.checkFnExists("instruction",r),s.checkFnExists("cdata",r),s.checkFnExists("comment",r),s.checkFnExists("text",r),s.checkFnExists("instructionName",r),s.checkFnExists("elementName",r),s.checkFnExists("attributeName",r),s.checkFnExists("attributeValue",r),s.checkFnExists("attributes",r),r}function h(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return"true"===n||"false"!==n&&e}function f(e,t){var n;if(r.compact){if(!i[r[e+"Key"]]&&(l(r.alwaysArray)?-1!==r.alwaysArray.indexOf(r[e+"Key"]):r.alwaysArray)&&(i[r[e+"Key"]]=[]),i[r[e+"Key"]]&&!l(i[r[e+"Key"]])&&(i[r[e+"Key"]]=[i[r[e+"Key"]]]),e+"Fn"in r&&"string"===typeof t&&(t=r[e+"Fn"](t,i)),"instruction"===e&&("instructionFn"in r||"instructionNameFn"in r))for(n in t)if(t.hasOwnProperty(n))if("instructionFn"in r)t[n]=r.instructionFn(t[n],n,i);else{var o=t[n];delete t[n],t[r.instructionNameFn(n,o,i)]=o}l(i[r[e+"Key"]])?i[r[e+"Key"]].push(t):i[r[e+"Key"]]=t}else{i[r.elementsKey]||(i[r.elementsKey]=[]);var a={};if(a[r.typeKey]=e,"instruction"===e){for(n in t)if(t.hasOwnProperty(n))break;a[r.nameKey]="instructionNameFn"in r?r.instructionNameFn(n,t,i):n,r.instructionHasAttributes?(a[r.attributesKey]=t[n][r.attributesKey],"instructionFn"in r&&(a[r.attributesKey]=r.instructionFn(a[r.attributesKey],n,i))):("instructionFn"in r&&(t[n]=r.instructionFn(t[n],n,i)),a[r.instructionKey]=t[n])}else e+"Fn"in r&&(t=r[e+"Fn"](t,i)),a[r[e+"Key"]]=t;r.addParent&&(a[r.parentKey]=i),i[r.elementsKey].push(a)}}function d(e){var t;if("attributesFn"in r&&e&&(e=r.attributesFn(e,i)),(r.trim||"attributeValueFn"in r||"attributeNameFn"in r||r.nativeTypeAttributes)&&e)for(t in e)if(e.hasOwnProperty(t)&&(r.trim&&(e[t]=e[t].trim()),r.nativeTypeAttributes&&(e[t]=h(e[t])),"attributeValueFn"in r&&(e[t]=r.attributeValueFn(e[t],t,i)),"attributeNameFn"in r)){var n=e[t];delete e[t],e[r.attributeNameFn(t,e[t],i)]=n}return e}function A(e){var t={};if(e.body&&("xml"===e.name.toLowerCase()||r.instructionHasAttributes)){var n,o=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g;while(null!==(n=o.exec(e.body)))t[n[1]]=n[2]||n[3]||n[4];t=d(t)}if("xml"===e.name.toLowerCase()){if(r.ignoreDeclaration)return;i[r.declarationKey]={},Object.keys(t).length&&(i[r.declarationKey][r.attributesKey]=t),r.addParent&&(i[r.declarationKey][r.parentKey]=i)}else{if(r.ignoreInstruction)return;r.trim&&(e.body=e.body.trim());var a={};r.instructionHasAttributes&&Object.keys(t).length?(a[e.name]={},a[e.name][r.attributesKey]=t):a[e.name]=e.body,f("instruction",a)}}function p(e,t){var n;if("object"===typeof e&&(t=e.attributes,e=e.name),t=d(t),"elementNameFn"in r&&(e=r.elementNameFn(e,i)),r.compact){var o;if(n={},!r.ignoreAttributes&&t&&Object.keys(t).length)for(o in n[r.attributesKey]={},t)t.hasOwnProperty(o)&&(n[r.attributesKey][o]=t[o]);!(e in i)&&(l(r.alwaysArray)?-1!==r.alwaysArray.indexOf(e):r.alwaysArray)&&(i[e]=[]),i[e]&&!l(i[e])&&(i[e]=[i[e]]),l(i[e])?i[e].push(n):i[e]=n}else i[r.elementsKey]||(i[r.elementsKey]=[]),n={},n[r.typeKey]="element",n[r.nameKey]=e,!r.ignoreAttributes&&t&&Object.keys(t).length&&(n[r.attributesKey]=t),r.alwaysChildren&&(n[r.elementsKey]=[]),i[r.elementsKey].push(n);n[r.parentKey]=i,i=n}function m(e){r.ignoreText||(e.trim()||r.captureSpacesBetweenElements)&&(r.trim&&(e=e.trim()),r.nativeType&&(e=h(e)),r.sanitize&&(e=e.replace(/&/g,"&").replace(//g,">")),f("text",e))}function g(e){r.ignoreComment||(r.trim&&(e=e.trim()),f("comment",e))}function v(e){var t=i[r.parentKey];r.addParent||delete i[r.parentKey],i=t}function b(e){r.ignoreCdata||(r.trim&&(e=e.trim()),f("cdata",e))}function y(e){r.ignoreDoctype||(e=e.replace(/^ /,""),r.trim&&(e=e.trim()),f("doctype",e))}function w(e){e.note=e}e.exports=function(e,t){var n=c?o.parser(!0,{}):n=new a.Parser("UTF-8"),s={};if(i=s,r=u(t),c?(n.opt={strictEntities:!0},n.onopentag=p,n.ontext=m,n.oncomment=g,n.onclosetag=v,n.onerror=w,n.oncdata=b,n.ondoctype=y,n.onprocessinginstruction=A):(n.on("startElement",p),n.on("text",m),n.on("comment",g),n.on("endElement",v),n.on("error",w)),c)n.write(e).close();else if(!n.parse(e))throw new Error("XML parsing error: "+n.getError());if(s[r.elementsKey]){var l=s[r.elementsKey];delete s[r.elementsKey],s[r.elementsKey]=l,delete s.text}return s}},"10db":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"12f2":function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return{methods:{focus:function(){this.$refs[e].focus()}}}}},"13d2":function(e,t,n){var r=n("d039"),i=n("1626"),o=n("1a2d"),a=n("83ab"),s=n("5e77").CONFIGURABLE,l=n("8925"),c=n("69f3"),u=c.enforce,h=c.get,f=Object.defineProperty,d=a&&!r((function(){return 8!==f((function(){}),"length",{value:8}).length})),A=String(String).split("String"),p=e.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!o(e,"name")||s&&e.name!==t)&&(a?f(e,"name",{value:t,configurable:!0}):e.name=t),d&&n&&o(n,"arity")&&e.length!==n.arity&&f(e,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?a&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var r=u(e);return o(r,"source")||(r.source=A.join("string"==typeof t?t:"")),e};Function.prototype.toString=p((function(){return i(this)&&h(this).source||l(this)}),"toString")},"14cc":function(e,t){var n=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var t=+e;return(t>0?r:n)(t)}},"14d9":function(e,t,n){"use strict";var r=n("23e7"),i=n("7b0b"),o=n("07fa"),a=n("3a34"),s=n("3511"),l=n("d039"),c=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),u=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}();r({target:"Array",proto:!0,arity:1,forced:c||u},{push:function(e){var t=i(this),n=o(t),r=arguments.length;s(n+r);for(var l=0;l=c?e?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536)}}},"1a14":function(e,t,n){var r=n("77e9"),i=n("faf5"),o=n("3397"),a=Object.defineProperty;t.f=n("0bad")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"1a2d":function(e,t,n){var r=n("e330"),i=n("7b0b"),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},"1a33":function(e,t,n){var r=n("46ab");e.exports=r({}.isPrototypeOf)},"1a89":function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},"1d80":function(e,t,n){var r=n("7234"),i=TypeError;e.exports=function(e){if(r(e))throw i("Can't call method on "+e);return e}},"1fb5":function(e,t,n){"use strict";t.byteLength=u,t.toByteArray=f,t.fromByteArray=p;for(var r=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function u(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function h(e,t,n){return 3*(t+n)/4-n}function f(e){var t,n,r=c(e),a=r[0],s=r[1],l=new o(h(e,a,s)),u=0,f=s>0?a-4:a;for(n=0;n>16&255,l[u++]=t>>8&255,l[u++]=255&t;return 2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[u++]=255&t),1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l}function d(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function A(e,t,n){for(var r,i=[],o=t;ol?l:s+a));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},2347:function(e,t,n){var r=n("2ed3");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"23a2":function(e,t,n){var r,i,o=n("1a89"),a=n("9431"),s=o.process,l=o.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(r=u.split("."),i=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=+r[1]))),e.exports=i},"23cb":function(e,t,n){var r=n("5926"),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},"23e7":function(e,t,n){var r=n("da84"),i=n("06cf").f,o=n("9112"),a=n("cb2d"),s=n("6374"),l=n("e893"),c=n("94ca");e.exports=function(e,t){var n,u,h,f,d,A,p=e.target,m=e.global,g=e.stat;if(u=m?r:g?r[p]||s(p,{}):(r[p]||{}).prototype,u)for(h in t){if(d=t[h],e.dontCallGetSet?(A=i(u,h),f=A&&A.value):f=u[h],n=c(m?h:p+(g?".":"#")+h,e.forced),!n&&void 0!==f){if(typeof d==typeof f)continue;l(d,f)}(e.sham||f&&f.sham)&&o(d,"sham",!0),a(u,h,d,e)}}},"241c":function(e,t,n){var r=n("ca84"),i=n("7839"),o=i.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},"25ca":function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return cA})),n.d(t,"b",(function(){return TA}));
-/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
-var i={version:"0.18.5"},o=1200,a=1252,s=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],l={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},c=function(e){-1!=s.indexOf(e)&&(a=l[0]=e)};function u(){c(1252)}var h=function(e){o=e,c(e)};function f(){h(1200),u()}function d(e){for(var t=[],n=0,r=e.length;n>1;++n)t[n]=String.fromCharCode(e.charCodeAt(2*n)+(e.charCodeAt(2*n+1)<<8));return t.join("")}function p(e){for(var t=[],n=0;n>1;++n)t[n]=String.fromCharCode(e.charCodeAt(2*n+1)+(e.charCodeAt(2*n)<<8));return t.join("")}var m,g=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1);return 255==t&&254==n?A(e.slice(2)):254==t&&255==n?p(e.slice(2)):65279==t?e.slice(1):e},v=function(e){return String.fromCharCode(e)},b=function(e){return String.fromCharCode(e)};var y=null,w=!0,x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function C(e){for(var t="",n=0,r=0,i=0,o=0,a=0,s=0,l=0,c=0;c>2,r=e.charCodeAt(c++),a=(3&n)<<4|r>>4,i=e.charCodeAt(c++),s=(15&r)<<2|i>>6,l=63&i,isNaN(r)?s=l=64:isNaN(i)&&(l=64),t+=x.charAt(o)+x.charAt(a)+x.charAt(s)+x.charAt(l);return t}function k(e){var t="",n=0,r=0,i=0,o=0,a=0,s=0,l=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var c=0;c>4,t+=String.fromCharCode(n),s=x.indexOf(e.charAt(c++)),r=(15&a)<<4|s>>2,64!==s&&(t+=String.fromCharCode(r)),l=x.indexOf(e.charAt(c++)),i=(3&s)<<6|l,64!==l&&(t+=String.fromCharCode(i));return t}var _=function(){return"undefined"!==typeof e&&"undefined"!==typeof r&&"undefined"!==typeof r.versions&&!!r.versions.node}(),E=function(){if("undefined"!==typeof e){var t=!e.from;if(!t)try{e.from("foo","utf8")}catch(n){t=!0}return t?function(t,n){return n?new e(t,n):new e(t)}:e.from.bind(e)}return function(){}}();function B(t){return _?e.alloc?e.alloc(t):new e(t):"undefined"!=typeof Uint8Array?new Uint8Array(t):new Array(t)}function S(t){return _?e.allocUnsafe?e.allocUnsafe(t):new e(t):"undefined"!=typeof Uint8Array?new Uint8Array(t):new Array(t)}var T=function(e){return _?E(e,"binary"):e.split("").map((function(e){return 255&e.charCodeAt(0)}))};function O(e){if(Array.isArray(e))return e.map((function(e){return String.fromCharCode(e)})).join("");for(var t=[],n=0;n>6&31,i[n++]=128|63&a;else if(a>=55296&&a<57344){a=64+(1023&a);var s=1023&e.charCodeAt(++o);i[n++]=240|a>>8&7,i[n++]=128|a>>2&63,i[n++]=128|s>>6&15|(3&a)<<4,i[n++]=128|63&s}else i[n++]=224|a>>12&15,i[n++]=128|a>>6&63,i[n++]=128|63&a;n>r&&(t.push(i.slice(0,n)),n=0,i=B(65535),r=65530)}return t.push(i.slice(0,n)),N(t)}var I=/\u0000/g,D=/[\u0001-\u0006]/g;function M(e){var t="",n=e.length-1;while(n>=0)t+=e.charAt(n--);return t}function P(e,t){var n=""+e;return n.length>=t?n:dt("0",t-n.length)+n}function U(e,t){var n=""+e;return n.length>=t?n:dt(" ",t-n.length)+n}function R(e,t){var n=""+e;return n.length>=t?n:n+dt(" ",t-n.length)}function j(e,t){var n=""+Math.round(e);return n.length>=t?n:dt("0",t-n.length)+n}function Q(e,t){var n=""+e;return n.length>=t?n:dt("0",t-n.length)+n}var H=Math.pow(2,32);function z(e,t){if(e>H||e<-H)return j(e,t);var n=Math.round(e);return Q(n,t)}function V(e,t){return t=t||0,e.length>=7+t&&103===(32|e.charCodeAt(t))&&101===(32|e.charCodeAt(t+1))&&110===(32|e.charCodeAt(t+2))&&101===(32|e.charCodeAt(t+3))&&114===(32|e.charCodeAt(t+4))&&97===(32|e.charCodeAt(t+5))&&108===(32|e.charCodeAt(t+6))}var q=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],K=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function W(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',e}var G={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},Y={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},X={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function J(e,t,n){var r=e<0?-1:1,i=e*r,o=0,a=1,s=0,l=1,c=0,u=0,h=Math.floor(i);while(ct&&(c>t?(u=l,s=o):(u=c,s=a)),!n)return[0,r*s,u];var f=Math.floor(r*s/u);return[f,r*s-f*u,u]}function Z(e,t,n){if(e>2958465||e<0)return null;var r=0|e,i=Math.floor(86400*(e-r)),o=0,a=[],s={D:r,T:i,u:86400*(e-r)-i,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(s.u)<1e-6&&(s.u=0),t&&t.date1904&&(r+=1462),s.u>.9999&&(s.u=0,86400==++i&&(s.T=i=0,++r,++s.D)),60===r)a=n?[1317,10,29]:[1900,2,29],o=3;else if(0===r)a=n?[1317,8,29]:[1900,1,0],o=6;else{r>60&&--r;var l=new Date(1900,0,1);l.setDate(l.getDate()+r-1),a=[l.getFullYear(),l.getMonth()+1,l.getDate()],o=l.getDay(),r<60&&(o=(o+6)%7),n&&(o=ue(l,a))}return s.y=a[0],s.m=a[1],s.d=a[2],s.S=i%60,i=Math.floor(i/60),s.M=i%60,i=Math.floor(i/60),s.H=i,s.q=o,s}var ee=new Date(1899,11,31,0,0,0),te=ee.getTime(),ne=new Date(1900,2,1,0,0,0);function re(e,t){var n=e.getTime();return t?n-=1262304e5:e>=ne&&(n+=864e5),(n-(te+6e4*(e.getTimezoneOffset()-ee.getTimezoneOffset())))/864e5}function ie(e){return-1==e.indexOf(".")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function oe(e){return-1==e.indexOf("E")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function ae(e){var t=e<0?12:11,n=ie(e.toFixed(12));return n.length<=t?n:(n=e.toPrecision(10),n.length<=t?n:e.toExponential(5))}function se(e){var t=ie(e.toFixed(11));return t.length>(e<0?12:11)||"0"===t||"-0"===t?e.toPrecision(6):t}function le(e){var t,n=Math.floor(Math.log(Math.abs(e))*Math.LOG10E);return t=n>=-4&&n<=-1?e.toPrecision(10+n):Math.abs(n)<=9?ae(e):10===n?e.toFixed(10).substr(0,12):se(e),ie(oe(t.toUpperCase()))}function ce(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(0|e)===e?e.toString(10):le(e);case"undefined":return"";case"object":if(null==e)return"";if(e instanceof Date)return Qe(14,re(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function ue(e,t){t[0]-=581;var n=e.getDay();return e<60&&(n=(n+6)%7),n}function he(e,t,n,r){var i,o="",a=0,s=0,l=n.y,c=0;switch(e){case 98:l=n.y+543;case 121:switch(t.length){case 1:case 2:i=l%100,c=2;break;default:i=l%1e4,c=4;break}break;case 109:switch(t.length){case 1:case 2:i=n.m,c=t.length;break;case 3:return K[n.m-1][1];case 5:return K[n.m-1][0];default:return K[n.m-1][2]}break;case 100:switch(t.length){case 1:case 2:i=n.d,c=t.length;break;case 3:return q[n.q][0];default:return q[n.q][1]}break;case 104:switch(t.length){case 1:case 2:i=1+(n.H+11)%12,c=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:i=n.H,c=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:i=n.M,c=t.length;break;default:throw"bad minute format: "+t}break;case 115:if("s"!=t&&"ss"!=t&&".0"!=t&&".00"!=t&&".000"!=t)throw"bad second format: "+t;return 0!==n.u||"s"!=t&&"ss"!=t?(s=r>=2?3===r?1e3:100:1===r?10:1,a=Math.round(s*(n.S+n.u)),a>=60*s&&(a=0),"s"===t?0===a?"0":""+a/s:(o=P(a,2+r),"ss"===t?o.substr(0,2):"."+o.substr(2,t.length-1))):P(n.S,t.length);case 90:switch(t){case"[h]":case"[hh]":i=24*n.D+n.H;break;case"[m]":case"[mm]":i=60*(24*n.D+n.H)+n.M;break;case"[s]":case"[ss]":i=60*(60*(24*n.D+n.H)+n.M)+Math.round(n.S+n.u);break;default:throw"bad abstime format: "+t}c=3===t.length?1:2;break;case 101:i=l,c=1;break}var u=c>0?P(i,c):"";return u}function fe(e){var t=3;if(e.length<=t)return e;for(var n=e.length%t,r=e.substr(0,n);n!=e.length;n+=t)r+=(r.length>0?",":"")+e.substr(n,t);return r}var de=/%/g;function Ae(e,t,n){var r=t.replace(de,""),i=t.length-r.length;return Le(e,r,n*Math.pow(10,2*i))+dt("%",i)}function pe(e,t,n){var r=t.length-1;while(44===t.charCodeAt(r-1))--r;return Le(e,t.substr(0,r),n/Math.pow(10,3*(t.length-r)))}function me(e,t){var n,r=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(0==t)return"0.0E+0";if(t<0)return"-"+me(e,-t);var i=e.indexOf(".");-1===i&&(i=e.indexOf("E"));var o=Math.floor(Math.log(t)*Math.LOG10E)%i;if(o<0&&(o+=i),n=(t/Math.pow(10,o)).toPrecision(r+1+(i+o)%i),-1===n.indexOf("e")){var a=Math.floor(Math.log(t)*Math.LOG10E);-1===n.indexOf(".")?n=n.charAt(0)+"."+n.substr(1)+"E+"+(a-n.length+o):n+="E+"+(a-o);while("0."===n.substr(0,2))n=n.charAt(0)+n.substr(2,i)+"."+n.substr(2+i),n=n.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");n=n.replace(/\+-/,"-")}n=n.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,t,n,r){return t+n+r.substr(0,(i+o)%i)+"."+r.substr(o)+"E"}))}else n=t.toExponential(r);return e.match(/E\+00$/)&&n.match(/e[+-]\d$/)&&(n=n.substr(0,n.length-1)+"0"+n.charAt(n.length-1)),e.match(/E\-/)&&n.match(/e\+/)&&(n=n.replace(/e\+/,"e")),n.replace("e","E")}var ge=/# (\?+)( ?)\/( ?)(\d+)/;function ve(e,t,n){var r=parseInt(e[4],10),i=Math.round(t*r),o=Math.floor(i/r),a=i-o*r,s=r;return n+(0===o?"":""+o)+" "+(0===a?dt(" ",e[1].length+1+e[4].length):U(a,e[1].length)+e[2]+"/"+e[3]+P(s,e[4].length))}function be(e,t,n){return n+(0===t?"":""+t)+dt(" ",e[1].length+2+e[4].length)}var ye=/^#*0*\.([0#]+)/,we=/\).*[0#]/,xe=/\(###\) ###\\?-####/;function Ce(e){for(var t,n="",r=0;r!=e.length;++r)switch(t=e.charCodeAt(r)){case 35:break;case 63:n+=" ";break;case 48:n+="0";break;default:n+=String.fromCharCode(t)}return n}function ke(e,t){var n=Math.pow(10,t);return""+Math.round(e*n)/n}function _e(e,t){var n=e-Math.floor(e),r=Math.pow(10,t);return t<(""+Math.round(n*r)).length?0:Math.round(n*r)}function Ee(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function Be(e){return e<2147483647&&e>-2147483648?""+(e>=0?0|e:e-1|0):""+Math.floor(e)}function Se(e,t,n){if(40===e.charCodeAt(0)&&!t.match(we)){var r=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return n>=0?Se("n",r,n):"("+Se("n",r,-n)+")"}if(44===t.charCodeAt(t.length-1))return pe(e,t,n);if(-1!==t.indexOf("%"))return Ae(e,t,n);if(-1!==t.indexOf("E"))return me(t,n);if(36===t.charCodeAt(0))return"$"+Se(e,t.substr(" "==t.charAt(1)?2:1),n);var i,o,a,s,l=Math.abs(n),c=n<0?"-":"";if(t.match(/^00+$/))return c+z(l,t.length);if(t.match(/^[#?]+$/))return i=z(n,0),"0"===i&&(i=""),i.length>t.length?i:Ce(t.substr(0,t.length-i.length))+i;if(o=t.match(ge))return ve(o,l,c);if(t.match(/^#+0+$/))return c+z(l,t.length-t.indexOf("0"));if(o=t.match(ye))return i=ke(n,o[1].length).replace(/^([^\.]+)$/,"$1."+Ce(o[1])).replace(/\.$/,"."+Ce(o[1])).replace(/\.(\d*)$/,(function(e,t){return"."+t+dt("0",Ce(o[1]).length-t.length)})),-1!==t.indexOf("0.")?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),o=t.match(/^(0*)\.(#*)$/))return c+ke(l,o[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,o[1].length?"0.":".");if(o=t.match(/^#{1,3},##0(\.?)$/))return c+fe(z(l,0));if(o=t.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+Se(e,t,-n):fe(""+(Math.floor(n)+Ee(n,o[1].length)))+"."+P(_e(n,o[1].length),o[1].length);if(o=t.match(/^#,#*,#0/))return Se(e,t.replace(/^#,#*,/,""),n);if(o=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=M(Se(e,t.replace(/[\\-]/g,""),n)),a=0,M(M(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return a=0?Ne("n",r,n):"("+Ne("n",r,-n)+")"}if(44===t.charCodeAt(t.length-1))return Te(e,t,n);if(-1!==t.indexOf("%"))return Oe(e,t,n);if(-1!==t.indexOf("E"))return Fe(t,n);if(36===t.charCodeAt(0))return"$"+Ne(e,t.substr(" "==t.charAt(1)?2:1),n);var i,o,a,s,l=Math.abs(n),c=n<0?"-":"";if(t.match(/^00+$/))return c+P(l,t.length);if(t.match(/^[#?]+$/))return i=""+n,0===n&&(i=""),i.length>t.length?i:Ce(t.substr(0,t.length-i.length))+i;if(o=t.match(ge))return be(o,l,c);if(t.match(/^#+0+$/))return c+P(l,t.length-t.indexOf("0"));if(o=t.match(ye))return i=(""+n).replace(/^([^\.]+)$/,"$1."+Ce(o[1])).replace(/\.$/,"."+Ce(o[1])),i=i.replace(/\.(\d*)$/,(function(e,t){return"."+t+dt("0",Ce(o[1]).length-t.length)})),-1!==t.indexOf("0.")?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),o=t.match(/^(0*)\.(#*)$/))return c+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,o[1].length?"0.":".");if(o=t.match(/^#{1,3},##0(\.?)$/))return c+fe(""+l);if(o=t.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+Ne(e,t,-n):fe(""+n)+"."+dt("0",o[1].length);if(o=t.match(/^#,#*,#0/))return Ne(e,t.replace(/^#,#*,/,""),n);if(o=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=M(Ne(e,t.replace(/[\\-]/g,""),n)),a=0,M(M(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return a-1||"\\"==n&&"-"==e.charAt(t+1)&&"0#".indexOf(e.charAt(t+2))>-1));break;case"?":while(e.charAt(++t)===n);break;case"*":++t," "!=e.charAt(t)&&"*"!=e.charAt(t)||++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":while(t-1);break;case" ":++t;break;default:++t;break}return!1}function Pe(e,t,n,r){var i,o,a,s=[],l="",c=0,u="",h="t",f="H";while(c=12?"P":"A"),p.t="T",f="h",c+=3):"AM/PM"===e.substr(c,5).toUpperCase()?(null!=i&&(p.v=i.H>=12?"PM":"AM"),p.t="T",c+=5,f="h"):"上午/下午"===e.substr(c,5).toUpperCase()?(null!=i&&(p.v=i.H>=12?"下午":"上午"),p.t="T",c+=5,f="h"):(p.t="t",++c),null==i&&"T"===p.t)return"";s[s.length]=p,h=u;break;case"[":l=u;while("]"!==e.charAt(c++)&&c-1&&(l=(l.match(/\$([^-\[\]]*)/)||[])[1]||"$",Me(e)||(s[s.length]={t:"t",v:l}));break;case".":if(null!=i){l=u;while(++c-1)l+=u;s[s.length]={t:"n",v:l};break;case"?":l=u;while(e.charAt(++c)===u)l+=u;s[s.length]={t:u,v:l},h=u;break;case"*":++c," "!=e.charAt(c)&&"*"!=e.charAt(c)||++c;break;case"(":case")":s[s.length]={t:1===r?"t":u,v:u},++c;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":l=u;while(c-1)l+=e.charAt(c);s[s.length]={t:"D",v:l};break;case" ":s[s.length]={t:u,v:u},++c;break;case"$":s[s.length]={t:"t",v:"$"},++c;break;default:if(-1===",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(u))throw new Error("unrecognized character "+u+" in "+e);s[s.length]={t:"t",v:u},++c;break}var m,g=0,v=0;for(c=s.length-1,h="t";c>=0;--c)switch(s[c].t){case"h":case"H":s[c].t=f,h="h",g<1&&(g=1);break;case"s":(m=s[c].v.match(/\.0+$/))&&(v=Math.max(v,m[0].length-1)),g<3&&(g=3);case"d":case"y":case"M":case"e":h=s[c].t;break;case"m":"s"===h&&(s[c].t="M",g<2&&(g=2));break;case"X":break;case"Z":g<1&&s[c].v.match(/[Hh]/)&&(g=1),g<2&&s[c].v.match(/[Mm]/)&&(g=2),g<3&&s[c].v.match(/[Ss]/)&&(g=3)}switch(g){case 0:break;case 1:i.u>=.5&&(i.u=0,++i.S),i.S>=60&&(i.S=0,++i.M),i.M>=60&&(i.M=0,++i.H);break;case 2:i.u>=.5&&(i.u=0,++i.S),i.S>=60&&(i.S=0,++i.M);break}var b,y="";for(c=0;c0){40==y.charCodeAt(0)?(w=t<0&&45===y.charCodeAt(0)?-t:t,x=Le("n",y,w)):(w=t<0&&r>1?-t:t,x=Le("n",y,w),w<0&&s[0]&&"t"==s[0].t&&(x=x.substr(1),s[0].v="-"+s[0].v)),b=x.length-1;var k=s.length;for(c=0;c-1){k=c;break}var _=s.length;if(k===s.length&&-1===x.indexOf("E")){for(c=s.length-1;c>=0;--c)null!=s[c]&&-1!=="n?".indexOf(s[c].t)&&(b>=s[c].v.length-1?(b-=s[c].v.length,s[c].v=x.substr(b+1,s[c].v.length)):b<0?s[c].v="":(s[c].v=x.substr(0,b+1),b=-1),s[c].t="t",_=c);b>=0&&_=0;--c)if(null!=s[c]&&-1!=="n?".indexOf(s[c].t)){for(o=s[c].v.indexOf(".")>-1&&c===k?s[c].v.indexOf(".")-1:s[c].v.length-1,C=s[c].v.substr(o+1);o>=0;--o)b>=0&&("0"===s[c].v.charAt(o)||"#"===s[c].v.charAt(o))&&(C=x.charAt(b--)+C);s[c].v=C,s[c].t="t",_=c}for(b>=0&&_-1&&c===k?s[c].v.indexOf(".")+1:0,C=s[c].v.substr(0,o);o-1&&(w=r>1&&t<0&&c>0&&"-"===s[c-1].v?-t:t,s[c].v=Le(s[c].t,s[c].v,w),s[c].t="t");var E="";for(c=0;c!==s.length;++c)null!=s[c]&&(E+=s[c].v);return E}var Ue=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function Re(e,t){if(null==t)return!1;var n=parseFloat(t[2]);switch(t[1]){case"=":if(e==n)return!0;break;case">":if(e>n)return!0;break;case"<":if(e":if(e!=n)return!0;break;case">=":if(e>=n)return!0;break;case"<=":if(e<=n)return!0;break}return!1}function je(e,t){var n=Ie(e),r=n.length,i=n[r-1].indexOf("@");if(r<4&&i>-1&&--r,n.length>4)throw new Error("cannot find right format for |"+n.join("|")+"|");if("number"!==typeof t)return[4,4===n.length||i>-1?n[n.length-1]:"@"];switch(n.length){case 1:n=i>-1?["General","General","General",n[0]]:[n[0],n[0],n[0],"@"];break;case 2:n=i>-1?[n[0],n[0],n[0],n[1]]:[n[0],n[1],n[0],"@"];break;case 3:n=i>-1?[n[0],n[1],n[0],n[2]]:[n[0],n[1],n[2],"@"];break;case 4:break}var o=t>0?n[0]:t<0?n[1]:n[2];if(-1===n[0].indexOf("[")&&-1===n[1].indexOf("["))return[r,o];if(null!=n[0].match(/\[[=<>]/)||null!=n[1].match(/\[[=<>]/)){var a=n[0].match(Ue),s=n[1].match(Ue);return Re(t,a)?[r,n[0]]:Re(t,s)?[r,n[1]]:[r,n[null!=a&&null!=s?2:1]]}return[r,o]}function Qe(e,t,n){null==n&&(n={});var r="";switch(typeof e){case"string":r="m/d/yy"==e&&n.dateNF?n.dateNF:e;break;case"number":r=14==e&&n.dateNF?n.dateNF:(null!=n.table?n.table:G)[e],null==r&&(r=n.table&&n.table[Y[e]]||G[Y[e]]),null==r&&(r=X[e]||"General");break}if(V(r,0))return ce(t,n);t instanceof Date&&(t=re(t,n.date1904));var i=je(r,t);if(V(i[1]))return ce(t,n);if(!0===t)t="TRUE";else if(!1===t)t="FALSE";else if(""===t||null==t)return"";return Pe(i[1],t,n,i[0])}function He(e,t){if("number"!=typeof t){t=+t||-1;for(var n=0;n<392;++n)if(void 0!=G[n]){if(G[n]==e){t=n;break}}else t<0&&(t=n);t<0&&(t=391)}return G[t]=e,t}function $e(){G=W()}var ze={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},Ve=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function qe(e){var t="number"==typeof e?G[e]:e;return t=t.replace(Ve,"(\\d+)"),new RegExp("^"+t+"$")}function Ke(e,t,n){var r=-1,i=-1,o=-1,a=-1,s=-1,l=-1;(t.match(Ve)||[]).forEach((function(e,t){var c=parseInt(n[t+1],10);switch(e.toLowerCase().charAt(0)){case"y":r=c;break;case"d":o=c;break;case"h":a=c;break;case"s":l=c;break;case"m":a>=0?s=c:i=c;break}})),l>=0&&-1==s&&i>=0&&(s=i,i=-1);var c=(""+(r>=0?r:(new Date).getFullYear())).slice(-4)+"-"+("00"+(i>=1?i:1)).slice(-2)+"-"+("00"+(o>=1?o:1)).slice(-2);7==c.length&&(c="0"+c),8==c.length&&(c="20"+c);var u=("00"+(a>=0?a:0)).slice(-2)+":"+("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return-1==a&&-1==s&&-1==l?c:-1==r&&-1==i&&-1==o?u:c+"T"+u}var We=function(){var e={};function t(){for(var e=0,t=new Array(256),n=0;256!=n;++n)e=n,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,t[n]=e;return"undefined"!==typeof Int32Array?new Int32Array(t):t}e.version="1.2.0";var n=t();function r(e){var t=0,n=0,r=0,i="undefined"!==typeof Int32Array?new Int32Array(4096):new Array(4096);for(r=0;256!=r;++r)i[r]=e[r];for(r=0;256!=r;++r)for(n=e[r],t=256+r;t<4096;t+=256)n=i[t]=n>>>8^e[255&n];var o=[];for(r=1;16!=r;++r)o[r-1]="undefined"!==typeof Int32Array?i.subarray(256*r,256*r+256):i.slice(256*r,256*r+256);return o}var i=r(n),o=i[0],a=i[1],s=i[2],l=i[3],c=i[4],u=i[5],h=i[6],f=i[7],d=i[8],A=i[9],p=i[10],m=i[11],g=i[12],v=i[13],b=i[14];function y(e,t){for(var r=-1^t,i=0,o=e.length;i>>8^n[255&(r^e.charCodeAt(i++))];return~r}function w(e,t){for(var r=-1^t,i=e.length-15,y=0;y>8&255]^g[e[y++]^r>>16&255]^m[e[y++]^r>>>24]^p[e[y++]]^A[e[y++]]^d[e[y++]]^f[e[y++]]^h[e[y++]]^u[e[y++]]^c[e[y++]]^l[e[y++]]^s[e[y++]]^a[e[y++]]^o[e[y++]]^n[e[y++]];i+=15;while(y>>8^n[255&(r^e[y++])];return~r}function x(e,t){for(var r=-1^t,i=0,o=e.length,a=0,s=0;i>>8^n[255&(r^a)]:a<2048?(r=r>>>8^n[255&(r^(192|a>>6&31))],r=r>>>8^n[255&(r^(128|63&a))]):a>=55296&&a<57344?(a=64+(1023&a),s=1023&e.charCodeAt(i++),r=r>>>8^n[255&(r^(240|a>>8&7))],r=r>>>8^n[255&(r^(128|a>>2&63))],r=r>>>8^n[255&(r^(128|s>>6&15|(3&a)<<4))],r=r>>>8^n[255&(r^(128|63&s))]):(r=r>>>8^n[255&(r^(224|a>>12&15))],r=r>>>8^n[255&(r^(128|a>>6&63))],r=r>>>8^n[255&(r^(128|63&a))]);return~r}return e.table=n,e.bstr=y,e.buf=w,e.str=x,e}(),Ge=function(){var t,n={};function r(e,t){for(var n=e.split("/"),r=t.split("/"),i=0,o=0,a=Math.min(n.length,r.length);i>>1,e.write_shift(2,n);var r=t.getFullYear()-1980;r=r<<4|t.getMonth()+1,r=r<<5|t.getDate(),e.write_shift(2,r)}function s(e){var t=65535&e.read_shift(2),n=65535&e.read_shift(2),r=new Date,i=31&n;n>>>=5;var o=15&n;n>>>=4,r.setMilliseconds(0),r.setFullYear(n+1980),r.setMonth(o-1),r.setDate(i);var a=31&t;t>>>=5;var s=63&t;return t>>>=6,r.setHours(t),r.setMinutes(s),r.setSeconds(a<<1),r}function l(e){Gn(e,0);var t={},n=0;while(e.l<=e.length-4){var r=e.read_shift(2),i=e.read_shift(2),o=e.l+i,a={};switch(r){case 21589:n=e.read_shift(1),1&n&&(a.mtime=e.read_shift(4)),i>5&&(2&n&&(a.atime=e.read_shift(4)),4&n&&(a.ctime=e.read_shift(4))),a.mtime&&(a.mt=new Date(1e3*a.mtime));break}e.l=o,t[r]=a}return t}function c(){return t||(t={})}function u(e,t){if(80==e[0]&&75==e[1])return Ne(e,t);if(109==(32|e[0])&&105==(32|e[1]))return Qe(e,t);if(e.length<512)throw new Error("CFB file size "+e.length+" < 512");var n=3,r=512,i=0,o=0,a=0,s=0,l=0,c=[],u=e.slice(0,512);Gn(u,0);var p=h(u);switch(n=p[0],n){case 3:r=512;break;case 4:r=4096;break;case 0:if(0==p[1])return Ne(e,t);default:throw new Error("Major Version: Expected 3 or 4 saw "+n)}512!==r&&(u=e.slice(0,r),Gn(u,28));var g=e.slice(0,r);f(u,n);var y=u.read_shift(4,"i");if(3===n&&0!==y)throw new Error("# Directory Sectors: Expected 0 saw "+y);u.l+=4,a=u.read_shift(4,"i"),u.l+=4,u.chk("00100000","Mini Stream Cutoff Size: "),s=u.read_shift(4,"i"),i=u.read_shift(4,"i"),l=u.read_shift(4,"i"),o=u.read_shift(4,"i");for(var w=-1,x=0;x<109;++x){if(w=u.read_shift(4,"i"),w<0)break;c[x]=w}var C=d(e,r);m(l,o,C,r,c);var k=v(C,a,c,r);k[a].name="!Directory",i>0&&s!==j&&(k[s].name="!MiniFAT"),k[c[0]].name="!FAT",k.fat_addrs=c,k.ssz=r;var _={},E=[],B=[],S=[];b(a,k,C,E,i,_,B,s),A(B,S,E),E.shift();var T={FileIndex:B,FullPaths:S};return t&&t.raw&&(T.raw={header:g,sectors:C}),T}function h(e){if(80==e[e.l]&&75==e[e.l+1])return[0,0];e.chk(Q,"Header Signature: "),e.l+=16;var t=e.read_shift(2,"u");return[e.read_shift(2,"u"),t]}function f(e,t){var n=9;switch(e.l+=2,n=e.read_shift(2)){case 9:if(3!=t)throw new Error("Sector Shift: Expected 9 saw "+n);break;case 12:if(4!=t)throw new Error("Sector Shift: Expected 12 saw "+n);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+n)}e.chk("0600","Mini Sector Shift: "),e.chk("000000000000","Reserved: ")}function d(e,t){for(var n=Math.ceil(e.length/t)-1,r=[],i=1;i0&&a>=0)o.push(t.slice(a*R,a*R+R)),i-=R,a=Qn(n,4*a);return 0===o.length?Xn(0):N(o).slice(0,e.size)}function m(e,t,n,r,i){var o=j;if(e===j){if(0!==t)throw new Error("DIFAT chain shorter than expected")}else if(-1!==e){var a=n[e],s=(r>>>2)-1;if(!a)return;for(var l=0;l=0;){i[l]=!0,o[o.length]=l,a.push(e[l]);var u=n[Math.floor(4*l/r)];if(c=4*l&s,r<4+c)throw new Error("FAT boundary crossed: "+l+" 4 "+r);if(!e[u])break;l=Qn(e[u],c)}return{nodes:o,data:mn([a])}}function v(e,t,n,r){var i=e.length,o=[],a=[],s=[],l=[],c=r-1,u=0,h=0,f=0,d=0;for(u=0;u=i&&(f-=i),!a[f]){l=[];var A=[];for(h=f;h>=0;){A[h]=!0,a[h]=!0,s[s.length]=h,l.push(e[h]);var p=n[Math.floor(4*h/r)];if(d=4*h&c,r<4+d)throw new Error("FAT boundary crossed: "+h+" 4 "+r);if(!e[p])break;if(h=Qn(e[p],d),A[h])break}o[f]={nodes:s,data:mn([l])}}return o}function b(e,t,n,r,i,o,a,s){for(var l,c=0,u=r.length?2:0,h=t[e].data,f=0,d=0;f0&&c!==j&&(t[c].name="!StreamData")):m.size>=4096?(m.storage="fat",void 0===t[m.start]&&(t[m.start]=g(n,m.start,t.fat_addrs,t.ssz)),t[m.start].name=m.name,m.content=t[m.start].data.slice(0,m.size)):(m.storage="minifat",m.size<0?m.size=0:c!==j&&m.start!==j&&t[c]&&(m.content=p(m,t[c].data,(t[s]||{}).data))),m.content&&Gn(m.content,0),o[l]=m,a.push(m)}}function y(e,t){return new Date(1e3*(jn(e,t+4)/1e7*Math.pow(2,32)+jn(e,t)/1e7-11644473600))}function w(e,n){return c(),u(t.readFileSync(e),n)}function x(t,n){var r=n&&n.type;switch(r||_&&e.isBuffer(t)&&(r="buffer"),r||"base64"){case"file":return w(t,n);case"base64":return u(T(k(t)),n);case"binary":return u(T(t),n)}return u(t,n)}function O(e,t){var n=t||{},r=n.root||"Root Entry";if(e.FullPaths||(e.FullPaths=[]),e.FileIndex||(e.FileIndex=[]),e.FullPaths.length!==e.FileIndex.length)throw new Error("inconsistent CFB structure");0===e.FullPaths.length&&(e.FullPaths[0]=r+"/",e.FileIndex[0]={name:r,type:5}),n.CLSID&&(e.FileIndex[0].clsid=n.CLSID),F(e)}function F(e){var t="Sh33tJ5";if(!Ge.find(e,"/"+t)){var n=Xn(4);n[0]=55,n[1]=n[3]=50,n[2]=54,e.FileIndex.push({name:t,type:2,content:n,size:4,L:69,R:69,C:69}),e.FullPaths.push(e.FullPaths[0]+t),L(e)}}function L(e,t){O(e);for(var n=!1,a=!1,s=e.FullPaths.length-1;s>=0;--s){var l=e.FileIndex[s];switch(l.type){case 0:a?n=!0:(e.FileIndex.pop(),e.FullPaths.pop());break;case 1:case 2:case 5:a=!0,isNaN(l.R*l.L*l.C)&&(n=!0),l.R>-1&&l.L>-1&&l.R==l.L&&(n=!0);break;default:n=!0;break}}if(n||t){var c=new Date(1987,1,19),u=0,h=Object.create?Object.create(null):{},f=[];for(s=0;s1?1:-1,A.size=0,A.type=5;else if("/"==p.slice(-1)){for(u=s+1;u=f.length?-1:u,u=s+1;u=f.length?-1:u,A.type=1}else i(e.FullPaths[s+1]||"")==i(p)&&(A.R=s+1),A.type=2}}}function M(t,n){var r=n||{};if("mad"==r.fileType)return He(t,r);switch(L(t),r.fileType){case"zip":return Ie(t,r)}var i=function(e){for(var t=0,n=0,r=0;r0&&(o<4096?t+=o+63>>6:n+=o+511>>9)}}var a=e.FullPaths.length+3>>2,s=t+7>>3,l=t+127>>7,c=s+n+a+l,u=c+127>>7,h=u<=109?0:Math.ceil((u-109)/127);while(c+u+h+127>>7>u)h=++u<=109?0:Math.ceil((u-109)/127);var f=[1,h,u,l,a,n,t,0];return e.FileIndex[0].size=t<<6,f[7]=(e.FileIndex[0].start=f[0]+f[1]+f[2]+f[3]+f[4]+f[5])+(f[6]+7>>3),f}(t),o=Xn(i[7]<<9),a=0,s=0;for(a=0;a<8;++a)o.write_shift(1,H[a]);for(a=0;a<8;++a)o.write_shift(2,0);for(o.write_shift(2,62),o.write_shift(2,3),o.write_shift(2,65534),o.write_shift(2,9),o.write_shift(2,6),a=0;a<3;++a)o.write_shift(2,0);for(o.write_shift(4,0),o.write_shift(4,i[2]),o.write_shift(4,i[0]+i[1]+i[2]+i[3]-1),o.write_shift(4,0),o.write_shift(4,4096),o.write_shift(4,i[3]?i[0]+i[1]+i[2]-1:j),o.write_shift(4,i[3]),o.write_shift(-4,i[1]?i[0]-1:j),o.write_shift(4,i[1]),a=0;a<109;++a)o.write_shift(-4,a>9)));l(i[6]+7>>3);while(511&o.l)o.write_shift(-4,z.ENDOFCHAIN);for(s=a=0,c=0;c=4096||(h.start=s,l(u+63>>6)));while(511&o.l)o.write_shift(-4,z.ENDOFCHAIN);for(a=0;a=4096)if(o.l=h.start+1<<9,_&&e.isBuffer(h.content))h.content.copy(o,o.l,0,h.size),o.l+=h.size+511&-512;else{for(c=0;c0&&h.size<4096)if(_&&e.isBuffer(h.content))h.content.copy(o,o.l,0,h.size),o.l+=h.size+63&-64;else{for(c=0;c>16|t>>8|t)}for(var te="undefined"!==typeof Uint8Array,ne=te?new Uint8Array(256):[],re=0;re<256;++re)ne[re]=ee(re);function ie(e,t){var n=ne[255&e];return t<=8?n>>>8-t:(n=n<<8|ne[e>>8&255],t<=16?n>>>16-t:(n=n<<8|ne[e>>16&255],n>>>24-t))}function oe(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=6?0:e[r+1]<<8))>>>n&3}function ae(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=5?0:e[r+1]<<8))>>>n&7}function se(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=4?0:e[r+1]<<8))>>>n&15}function le(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=3?0:e[r+1]<<8))>>>n&31}function ce(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=1?0:e[r+1]<<8))>>>n&127}function ue(e,t,n){var r=7&t,i=t>>>3,o=(1<>>r;return n<8-r?a&o:(a|=e[i+1]<<8-r,n<16-r?a&o:(a|=e[i+2]<<16-r,n<24-r||(a|=e[i+3]<<24-r),a&o))}function he(e,t,n){var r=7&t,i=t>>>3;return r<=5?e[i]|=(7&n)<>8-r),t+3}function fe(e,t,n){var r=7&t,i=t>>>3;return n=(1&n)<>>3;return n<<=r,e[i]|=255&n,n>>>=8,e[i+1]=n,t+8}function Ae(e,t,n){var r=7&t,i=t>>>3;return n<<=r,e[i]|=255&n,n>>>=8,e[i+1]=255&n,e[i+2]=n>>>8,t+16}function pe(e,t){var n=e.length,r=2*n>t?2*n:t+5,i=0;if(n>=t)return e;if(_){var o=S(r);if(e.copy)e.copy(o);else for(;i>r-h,a=(1<=0;--a)t[s|a<0)t[t.l++]=e[n++]}return t.l}function o(t,n){var i=0,o=0,a=te?new Uint16Array(32768):[];while(o0)n[n.l++]=t[o++];i=8*n.l}else{i=he(n,i,+!(o+s!=t.length)+2);var l=0;while(s-- >0){var c=t[o];l=32767&(l<<5^c);var u=-1,h=0;if((u=a[l])&&(u|=-32768&o,u>o&&(u-=32768),u2){c=r[h],c<=22?i=de(n,i,ne[c+1]>>1)-1:(de(n,i,3),i+=5,de(n,i,ne[c-23]>>5),i+=3);var f=c<8?0:c-4>>2;f>0&&(Ae(n,i,h-J[c]),i+=f),c=e[o-u],i=de(n,i,ne[c]>>3),i-=3;var d=c<4?0:c-2>>1;d>0&&(Ae(n,i,o-u-Z[c]),i+=d);for(var A=0;A>8-A;for(var p=(1<<7-A)-1;p>=0;--p)_e[d|p<>>=3){case 16:o=3+oe(e,t),t+=2,d=m[m.length-1];while(o-- >0)m.push(d);break;case 17:o=3+ae(e,t),t+=3;while(o-- >0)m.push(0);break;case 18:o=11+ce(e,t),t+=7;while(o-- >0)m.push(0);break;default:m.push(d),l>>0,s=0,l=0;while(0==(1&r))if(r=ae(e,n),n+=3,r>>>1!=0)for(r>>1==1?(s=9,l=5):(n=Se(e,n),s=Ee,l=Be);;){!t&&a>>1==1?ve[c]:Ce[c];if(n+=15&u,u>>>=4,0===(u>>>8&255))i[o++]=u;else{if(256==u)break;u-=257;var h=u<8?0:u-4>>2;h>5&&(h=0);var f=o+J[u];h>0&&(f+=ue(e,n,h),n+=h),c=ue(e,n,l),u=r>>>1==1?be[c]:ke[c],n+=15&u,u>>>=4;var d=u<4?0:u-2>>1,A=Z[u];d>0&&(A+=ue(e,n,d),n+=d),!t&&a>>3]|e[1+(n>>>3)]<<8;if(n+=32,p>0){!t&&a0)i[o++]=e[n>>>3],n+=8}}return t?[i,n+7>>>3]:[i.slice(0,o),n+7>>>3]}function Oe(e,t){var n=e.slice(e.l||0),r=Te(n,t);return e.l+=r[1],r[0]}function Fe(e,t){if(!e)throw new Error(t);"undefined"!==typeof console&&console.error(t)}function Ne(e,t){var n=e;Gn(n,0);var r=[],i=[],o={FileIndex:r,FullPaths:i};O(o,{root:t.root});var a=n.length-4;while((80!=n[a]||75!=n[a+1]||5!=n[a+2]||6!=n[a+3])&&a>=0)--a;n.l=a+4,n.l+=4;var s=n.read_shift(2);n.l+=6;var c=n.read_shift(4);for(n.l=c,a=0;a0)if(r=r.slice(0,r.length-1),r=r.slice(0,r.lastIndexOf("/")+1),a.slice(0,r.length)==r)break;var s=(i[1]||"").match(/boundary="(.*?)"/);if(!s)throw new Error("MAD cannot find boundary");var l="--"+(s[1]||""),c=[],u=[],h={FileIndex:c,FullPaths:u};O(h);var f,d=0;for(o=0;o=32&&A<128&&++f;var m=f>=4*d/5;o.push(i),o.push("Content-Location: "+(r.root||"file:///C:/SheetJS/")+s),o.push("Content-Transfer-Encoding: "+(m?"quoted-printable":"base64")),o.push("Content-Type: "+Me(l,s)),o.push(""),o.push(m?Ue(h):Pe(h))}return o.push(i+"--\r\n"),o.join("\r\n")}function $e(e){var t={};return O(t,e),t}function ze(e,t,n,r){var i=r&&r.unsafe;i||O(e);var a=!i&&Ge.find(e,t);if(!a){var s=e.FullPaths[0];t.slice(0,s.length)==s?s=t:("/"!=s.slice(-1)&&(s+="/"),s=(s+t).replace("//","/")),a={name:o(t),type:2},e.FileIndex.push(a),e.FullPaths.push(s),i||Ge.utils.cfb_gc(e)}return a.content=n,a.size=n?n.length:0,r&&(r.CLSID&&(a.clsid=r.CLSID),r.mt&&(a.mt=r.mt),r.ct&&(a.ct=r.ct)),a}function Ve(e,t){O(e);var n=Ge.find(e,t);if(n)for(var r=0;r3&&(r=!0),i[o].slice(i[o].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+i[o].slice(i[o].length-1));case"D":n*=24;case"H":n*=60;case"M":if(!r)throw new Error("Unsupported ISO Duration Field: M");n*=60;case"S":break}t+=n*parseInt(i[o],10)}return t}var st=new Date("2017-02-19T19:06:09.000Z"),lt=isNaN(st.getFullYear())?new Date("2/19/17"):st,ct=2017==lt.getFullYear();function ut(e,t){var n=new Date(e);if(ct)return t>0?n.setTime(n.getTime()+60*n.getTimezoneOffset()*1e3):t<0&&n.setTime(n.getTime()-60*n.getTimezoneOffset()*1e3),n;if(e instanceof Date)return e;if(1917==lt.getFullYear()&&!isNaN(n.getFullYear())){var r=n.getFullYear();return e.indexOf(""+r)>-1||n.setFullYear(n.getFullYear()+100),n}var i=e.match(/\d+/g)||["2017","2","19","0","0","0"],o=new Date(+i[0],+i[1]-1,+i[2],+i[3]||0,+i[4]||0,+i[5]||0);return e.indexOf("Z")>-1&&(o=new Date(o.getTime()-60*o.getTimezoneOffset()*1e3)),o}function ht(t,n){if(_&&e.isBuffer(t)){if(n){if(255==t[0]&&254==t[1])return Jt(t.slice(2).toString("utf16le"));if(254==t[1]&&255==t[2])return Jt(p(t.slice(2).toString("binary")))}return t.toString("binary")}if("undefined"!==typeof TextDecoder)try{if(n){if(255==t[0]&&254==t[1])return Jt(new TextDecoder("utf-16le").decode(t.slice(2)));if(254==t[0]&&255==t[1])return Jt(new TextDecoder("utf-16be").decode(t.slice(2)))}var r={"€":"","‚":"","ƒ":"","„":"","…":"
","†":"","‡":"","ˆ":"","‰":"","Š":"","‹":"","Œ":"","Ž":"","‘":"","’":"","“":"","”":"","•":"","–":"","—":"","˜":"","™":"","š":"","›":"","œ":"","ž":"","Ÿ":""};return Array.isArray(t)&&(t=new Uint8Array(t)),new TextDecoder("latin1").decode(t).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,(function(e){return r[e]||e}))}catch(a){}for(var i=[],o=0;o!=t.length;++o)i.push(String.fromCharCode(t[o]));return i.join("")}function ft(e){if("undefined"!=typeof JSON&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if("object"!=typeof e||null==e)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=ft(e[n]));return t}function dt(e,t){var n="";while(n.length3&&-1==pt.indexOf(a))return n}else if(a.match(/[a-z]/))return n;return r<0||r>8099?n:(i>0||o>1)&&101!=r?t:e.match(/[^-0-9:,\/\\]/)?n:t}var gt=function(){var e=5=="abacaba".split(/(:?b)/i).length;return function(t,n,r){if(e||"string"==typeof n)return t.split(n);for(var i=t.split(n),o=[i[0]],a=1;a\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,Nt=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/gm,Lt=/<[^>]*>/g,It=Ot.match(Nt)?Nt:Lt,Dt=/<\w*:/,Mt=/<(\/?)\w+:/;function Pt(e,t,n){for(var r={},i=0,o=0;i!==e.length;++i)if(32===(o=e.charCodeAt(i))||10===o||13===o)break;if(t||(r[0]=e.slice(0,i)),i===e.length)return r;var a=e.match(Ft),s=0,l="",c=0,u="",h="",f=1;if(a)for(c=0;c!=a.length;++c){for(h=a[c],o=0;o!=h.length;++o)if(61===h.charCodeAt(o))break;u=h.slice(0,o).trim();while(32==h.charCodeAt(o+1))++o;for(f=34==(i=h.charCodeAt(o+1))||39==i?1:0,l=h.slice(o+1+f,h.length-f),s=0;s!=u.length;++s)if(58===u.charCodeAt(s))break;if(s===u.length)u.indexOf("_")>0&&(u=u.slice(0,u.indexOf("_"))),r[u]=l,n||(r[u.toLowerCase()]=l);else{var d=(5===s&&"xmlns"===u.slice(0,5)?"xmlns":"")+u.slice(s+1);if(r[d]&&"ext"==u.slice(s-3,s))continue;r[d]=l,n||(r[d.toLowerCase()]=l)}}return r}function Ut(e){return e.replace(Mt,"<$1")}var Rt={""":'"',"'":"'",">":">","<":"<","&":"&"},jt=Ze(Rt),Qt=function(){var e=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/gi,t=/_x([\da-fA-F]{4})_/gi;return function n(r){var i=r+"",o=i.indexOf("-1?16:10))||e})).replace(t,(function(e,t){return String.fromCharCode(parseInt(t,16))}));var a=i.indexOf("]]>");return n(i.slice(0,o))+i.slice(o+9,a)+n(i.slice(a+3))}}(),Ht=/[&<>'"]/g;var $t=/[\u0000-\u001f]/g;function zt(e){var t=e+"";return t.replace(Ht,(function(e){return jt[e]})).replace(/\n/g," ").replace($t,(function(e){return""+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"}))}var Vt=function(){var e=/(\d+);/g;function t(e,t){return String.fromCharCode(parseInt(t,10))}return function(n){return n.replace(e,t)}}();function qt(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function Kt(e){var t="",n=0,r=0,i=0,o=0,a=0,s=0;while(n191&&r<224?(a=(31&r)<<6,a|=63&i,t+=String.fromCharCode(a)):(o=e.charCodeAt(n++),r<240?t+=String.fromCharCode((15&r)<<12|(63&i)<<6|63&o):(a=e.charCodeAt(n++),s=((7&r)<<18|(63&i)<<12|(63&o)<<6|63&a)-65536,t+=String.fromCharCode(55296+(s>>>10&1023)),t+=String.fromCharCode(56320+(1023&s)))));return t}function Wt(e){var t,n,r,i=B(2*e.length),o=1,a=0,s=0;for(n=0;n>>10&1023),t=56320+(1023&t)),0!==s&&(i[a++]=255&s,i[a++]=s>>>8,s=0),i[a++]=t%256,i[a++]=t>>>8;return i.slice(0,a).toString("ucs2")}function Gt(e){return E(e,"binary").toString("utf8")}var Yt="foo bar bazâð£",Xt=_&&(Gt(Yt)==Kt(Yt)&&Gt||Wt(Yt)==Kt(Yt)&&Wt)||Kt,Jt=_?function(e){return E(e,"utf8").toString("binary")}:function(e){var t=[],n=0,r=0,i=0;while(n>6))),t.push(String.fromCharCode(128+(63&r)));break;case r>=55296&&r<57344:r-=55296,i=e.charCodeAt(n++)-56320+(r<<10),t.push(String.fromCharCode(240+(i>>18&7))),t.push(String.fromCharCode(144+(i>>12&63))),t.push(String.fromCharCode(128+(i>>6&63))),t.push(String.fromCharCode(128+(63&i)));break;default:t.push(String.fromCharCode(224+(r>>12))),t.push(String.fromCharCode(128+(r>>6&63))),t.push(String.fromCharCode(128+(63&r)))}return t.join("")},Zt=function(){var e={};return function(t,n){var r=t+"|"+(n||"");return e[r]?e[r]:e[r]=new RegExp("<(?:\\w+:)?"+t+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)(?:\\w+:)?'+t+">",n||"")}}(),en=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map((function(e){return[new RegExp("&"+e[0]+";","ig"),e[1]]}));return function(t){for(var n=t.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+/g,"\n").replace(/<[^>]*>/g,""),r=0;r([\\s\\S]*?)(?:vt:)?"+t+">","g")}}(),nn=/<\/?(?:vt:)?variant>/g,rn=/<(?:vt:)([^>]*)>([\s\S]*);function on(e,t){var n=Pt(e),r=e.match(tn(n.baseType))||[],i=[];if(r.length!=n.size){if(t.WTF)throw new Error("unexpected vector length "+r.length+" != "+n.size);return i}return r.forEach((function(e){var t=e.replace(nn,"").match(rn);t&&i.push({v:Xt(t[2]),t:t[1]})})),i}var an=/(^\s|\s$|\n)/;function sn(e){return Je(e).map((function(t){return" "+t+'="'+e[t]+'"'})).join("")}function ln(e,t,n){return"<"+e+(null!=n?sn(n):"")+(null!=t?(t.match(an)?' xml:space="preserve"':"")+">"+t+""+e:"/")+">"}function cn(t){if(_&&e.isBuffer(t))return t.toString("utf8");if("string"===typeof t)return t;if("undefined"!==typeof Uint8Array&&t instanceof Uint8Array)return Xt(O(F(t)));throw new Error("Bad input format: expected Buffer or string")}var un=/<(\/?)([^\s?>:\/]+)(?:[\s?:\/][^>]*)?>/gm,hn={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},fn=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"];function dn(e,t){for(var n=1-2*(e[t+7]>>>7),r=((127&e[t+7])<<4)+(e[t+6]>>>4&15),i=15&e[t+6],o=5;o>=0;--o)i=256*i+e[t+o];return 2047==r?0==i?n*(1/0):NaN:(0==r?r=-1022:(r-=1023,i+=Math.pow(2,52)),n*Math.pow(2,r-52)*i)}function An(e,t,n){var r=(t<0||1/t==-1/0?1:0)<<7,i=0,o=0,a=r?-t:t;isFinite(a)?0==a?i=o=0:(i=Math.floor(Math.log(a)/Math.LN2),o=a*Math.pow(2,52-i),i<=-1023&&(!isFinite(o)||o>4|r}var pn=function(e){for(var t=[],n=10240,r=0;r0&&e.isBuffer(t[0][0])?e.concat(t[0].map((function(t){return e.isBuffer(t)?t:E(t)}))):pn(t)}:pn,gn=function(e,t,n){for(var r=[],i=t;i0?xn(e,t+4,t+4+n-1):""},kn=Cn,_n=function(e,t){var n=jn(e,t);return n>0?xn(e,t+4,t+4+n-1):""},En=_n,Bn=function(e,t){var n=2*jn(e,t);return n>0?xn(e,t+4,t+4+n-1):""},Sn=Bn,Tn=function(e,t){var n=jn(e,t);return n>0?vn(e,t+4,t+4+n):""},On=Tn,Fn=function(e,t){var n=jn(e,t);return n>0?xn(e,t+4,t+4+n):""},Nn=Fn,Ln=function(e,t){return dn(e,t)},In=Ln,Dn=function(e){return Array.isArray(e)||"undefined"!==typeof Uint8Array&&e instanceof Uint8Array};function Mn(){vn=function(e,t,n){return m.utils.decode(1200,e.slice(t,n)).replace(I,"")},xn=function(e,t,n){return m.utils.decode(65001,e.slice(t,n))},kn=function(e,t){var n=jn(e,t);return n>0?m.utils.decode(a,e.slice(t+4,t+4+n-1)):""},En=function(e,t){var n=jn(e,t);return n>0?m.utils.decode(o,e.slice(t+4,t+4+n-1)):""},Sn=function(e,t){var n=2*jn(e,t);return n>0?m.utils.decode(1200,e.slice(t+4,t+4+n-1)):""},On=function(e,t){var n=jn(e,t);return n>0?m.utils.decode(1200,e.slice(t+4,t+4+n)):""},Nn=function(e,t){var n=jn(e,t);return n>0?m.utils.decode(65001,e.slice(t+4,t+4+n)):""}}_&&(kn=function(t,n){if(!e.isBuffer(t))return Cn(t,n);var r=t.readUInt32LE(n);return r>0?t.toString("utf8",n+4,n+4+r-1):""},En=function(t,n){if(!e.isBuffer(t))return _n(t,n);var r=t.readUInt32LE(n);return r>0?t.toString("utf8",n+4,n+4+r-1):""},Sn=function(t,n){if(!e.isBuffer(t))return Bn(t,n);var r=2*t.readUInt32LE(n);return t.toString("utf16le",n+4,n+4+r-1)},On=function(t,n){if(!e.isBuffer(t))return Tn(t,n);var r=t.readUInt32LE(n);return t.toString("utf16le",n+4,n+4+r)},Nn=function(t,n){if(!e.isBuffer(t))return Fn(t,n);var r=t.readUInt32LE(n);return t.toString("utf8",n+4,n+4+r)},In=function(t,n){return e.isBuffer(t)?t.readDoubleLE(n):Ln(t,n)},Dn=function(t){return e.isBuffer(t)||Array.isArray(t)||"undefined"!==typeof Uint8Array&&t instanceof Uint8Array}),"undefined"!==typeof m&&Mn();var Pn=function(e,t){return e[t]},Un=function(e,t){return 256*e[t+1]+e[t]},Rn=function(e,t){var n=256*e[t+1]+e[t];return n<32768?n:-1*(65535-n+1)},jn=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},Qn=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},Hn=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function $n(t,n){var r,i,a,s,l,c,u="",h=[];switch(n){case"dbcs":if(c=this.l,_&&e.isBuffer(this))u=this.slice(this.l,this.l+2*t).toString("utf16le");else for(l=0;l0?Qn:Hn)(this,this.l),this.l+=4,r):(i=jn(this,this.l),this.l+=4,i);case 8:case-8:if("f"===n)return i=8==t?In(this,this.l):In([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,i;t=8;case 16:u=yn(this,this.l,t);break}}return this.l+=t,u}var zn=function(e,t,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24&255},Vn=function(e,t,n){e[n]=255&t,e[n+1]=t>>8&255,e[n+2]=t>>16&255,e[n+3]=t>>24&255},qn=function(e,t,n){e[n]=255&t,e[n+1]=t>>>8&255};function Kn(e,t,n){var r=0,i=0;if("dbcs"===n){for(i=0;i!=t.length;++i)qn(this,t.charCodeAt(i),this.l+2*i);r=2*t.length}else if("sbcs"===n){if("undefined"!==typeof m&&874==a)for(i=0;i!=t.length;++i){var o=m.utils.encode(a,t.charAt(i));this[this.l+i]=o[0]}else for(t=t.replace(/[^\x00-\x7F]/g,"_"),i=0;i!=t.length;++i)this[this.l+i]=255&t.charCodeAt(i);r=t.length}else{if("hex"===n){for(;i>8}while(this.l>>=8,this[this.l+1]=255&t;break;case 3:r=3,this[this.l]=255&t,t>>>=8,this[this.l+1]=255&t,t>>>=8,this[this.l+2]=255&t;break;case 4:r=4,zn(this,t,this.l);break;case 8:if(r=8,"f"===n){An(this,t,this.l);break}case 16:break;case-4:r=4,Vn(this,t,this.l);break}}return this.l+=r,this}function Wn(e,t){var n=yn(this,this.l,e.length>>1);if(n!==e)throw new Error(t+"Expected "+e+" saw "+n);this.l+=e.length>>1}function Gn(e,t){e.l=t,e.read_shift=$n,e.chk=Wn,e.write_shift=Kn}function Yn(e,t){e.l+=t}function Xn(e){var t=B(e);return Gn(t,0),t}function Jn(e,t,n){if(e){var r,i,o;Gn(e,e.l||0);var a=e.length,s=0,l=0;while(e.lr.l&&(r=r.slice(0,r.l),r.l=r.length),r.length>0&&e.push(r),r=null)},o=function(e){return r&&e=256)r.c-=256;while(r.r>=65536)r.r-=65536}return r}function tr(e,t,n){var r=ft(e);return r.s=er(r.s,t.s,n),r.e=er(r.e,t.s,n),r}function nr(e,t){if(e.cRel&&e.c<0){e=ft(e);while(e.c<0)e.c+=t>8?16384:256}if(e.rRel&&e.r<0){e=ft(e);while(e.r<0)e.r+=t>8?1048576:t>5?65536:16384}var n=Ar(e);return e.cRel||null==e.cRel||(n=ur(n)),e.rRel||null==e.rRel||(n=ar(n)),n}function rr(e,t){return 0!=e.s.r||e.s.rRel||e.e.r!=(t.biff>=12?1048575:t.biff>=8?65536:16384)||e.e.rRel?0!=e.s.c||e.s.cRel||e.e.c!=(t.biff>=12?16383:255)||e.e.cRel?nr(e.s,t.biff)+":"+nr(e.e,t.biff):(e.s.rRel?"":"$")+or(e.s.r)+":"+(e.e.rRel?"":"$")+or(e.e.r):(e.s.cRel?"":"$")+cr(e.s.c)+":"+(e.e.cRel?"":"$")+cr(e.e.c)}function ir(e){return parseInt(sr(e),10)-1}function or(e){return""+(e+1)}function ar(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function sr(e){return e.replace(/\$(\d+)$/,"$1")}function lr(e){for(var t=hr(e),n=0,r=0;r!==t.length;++r)n=26*n+t.charCodeAt(r)-64;return n-1}function cr(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function ur(e){return e.replace(/^([A-Z])/,"$$$1")}function hr(e){return e.replace(/^\$([A-Z])/,"$1")}function fr(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function dr(e){for(var t=0,n=0,r=0;r=48&&i<=57?t=10*t+(i-48):i>=65&&i<=90&&(n=26*n+(i-64))}return{c:n-1,r:t-1}}function Ar(e){for(var t=e.c+1,n="";t;t=(t-1)/26|0)n=String.fromCharCode((t-1)%26+65)+n;return n+(e.r+1)}function pr(e){var t=e.indexOf(":");return-1==t?{s:dr(e),e:dr(e)}:{s:dr(e.slice(0,t)),e:dr(e.slice(t+1))}}function mr(e,t){return"undefined"===typeof t||"number"===typeof t?mr(e.s,e.e):("string"!==typeof e&&(e=Ar(e)),"string"!==typeof t&&(t=Ar(t)),e==t?e:e+":"+t)}function gr(e){var t={s:{c:0,r:0},e:{c:0,r:0}},n=0,r=0,i=0,o=e.length;for(n=0;r26)break;n=26*n+i}for(t.s.c=--n,n=0;r9)break;n=10*n+i}if(t.s.r=--n,r===o||10!=i)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++r,n=0;r!=o;++r){if((i=e.charCodeAt(r)-64)<1||i>26)break;n=26*n+i}for(t.e.c=--n,n=0;r!=o;++r){if((i=e.charCodeAt(r)-48)<0||i>9)break;n=10*n+i}return t.e.r=--n,t}function vr(e,t){var n="d"==e.t&&t instanceof Date;if(null!=e.z)try{return e.w=Qe(e.z,n?tt(t):t)}catch(r){}try{return e.w=Qe((e.XF||{}).numFmtId||(n?14:0),n?tt(t):t)}catch(r){return""+t}}function br(e,t,n){return null==e||null==e.t||"z"==e.t?"":void 0!==e.w?e.w:("d"==e.t&&!e.z&&n&&n.dateNF&&(e.z=n.dateNF),"e"==e.t?ci[e.v]||e.v:vr(e,void 0==t?e.v:t))}function yr(e,t){var n=t&&t.sheet?t.sheet:"Sheet1",r={};return r[n]=e,{SheetNames:[n],Sheets:r}}function wr(e,t,n){var r=n||{},i=e?Array.isArray(e):r.dense;null!=y&&null==i&&(i=y);var o=e||(i?[]:{}),a=0,s=0;if(o&&null!=r.origin){if("number"==typeof r.origin)a=r.origin;else{var l="string"==typeof r.origin?dr(r.origin):r.origin;a=l.r,s=l.c}o["!ref"]||(o["!ref"]="A1:A1")}var c={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(o["!ref"]){var u=gr(o["!ref"]);c.s.c=u.s.c,c.s.r=u.s.r,c.e.c=Math.max(c.e.c,u.e.c),c.e.r=Math.max(c.e.r,u.e.r),-1==a&&(c.e.r=a=u.e.r+1)}for(var h=0;h!=t.length;++h)if(t[h]){if(!Array.isArray(t[h]))throw new Error("aoa_to_sheet expects an array of arrays");for(var f=0;f!=t[h].length;++f)if("undefined"!==typeof t[h][f]){var d={v:t[h][f]},A=a+h,p=s+f;if(c.s.r>A&&(c.s.r=A),c.s.c>p&&(c.s.c=p),c.e.r>2;return n?i/100:i}function Dr(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}var Mr=Dr;function Pr(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function Ur(e){var t={},n=e.read_shift(1),r=n>>>1,i=e.read_shift(1),o=e.read_shift(2,"i"),a=e.read_shift(1),s=e.read_shift(1),l=e.read_shift(1);switch(e.l++,r){case 0:t.auto=1;break;case 1:t.index=i;var c=li[i];c&&(t.rgb=Os(c));break;case 2:t.rgb=Os([a,s,l]);break;case 3:t.theme=i;break}return 0!=o&&(t.tint=o>0?o/32767:o/32768),t}function Rr(e){var t=e.read_shift(1);e.l++;var n={fBold:1&t,fItalic:2&t,fUnderline:4&t,fStrikeout:8&t,fOutline:16&t,fShadow:32&t,fCondense:64&t,fExtend:128&t};return n}function jr(e,t){var n={2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"},r=e.read_shift(4);switch(r){case 0:return"";case 4294967295:case 4294967294:return n[e.read_shift(4)]||""}if(r>400)throw new Error("Unsupported Clipboard: "+r.toString(16));return e.l-=4,e.read_shift(0,1==t?"lpstr":"lpwstr")}function Qr(e){return jr(e,1)}function Hr(e){return jr(e,2)}var $r=2,zr=3,Vr=11,qr=12,Kr=19,Wr=64,Gr=65,Yr=71,Xr=4108,Jr=4126,Zr=80,ei=81,ti=[Zr,ei],ni={1:{n:"CodePage",t:$r},2:{n:"Category",t:Zr},3:{n:"PresentationFormat",t:Zr},4:{n:"ByteCount",t:zr},5:{n:"LineCount",t:zr},6:{n:"ParagraphCount",t:zr},7:{n:"SlideCount",t:zr},8:{n:"NoteCount",t:zr},9:{n:"HiddenCount",t:zr},10:{n:"MultimediaClipCount",t:zr},11:{n:"ScaleCrop",t:Vr},12:{n:"HeadingPairs",t:Xr},13:{n:"TitlesOfParts",t:Jr},14:{n:"Manager",t:Zr},15:{n:"Company",t:Zr},16:{n:"LinksUpToDate",t:Vr},17:{n:"CharacterCount",t:zr},19:{n:"SharedDoc",t:Vr},22:{n:"HyperlinksChanged",t:Vr},23:{n:"AppVersion",t:zr,p:"version"},24:{n:"DigSig",t:Gr},26:{n:"ContentType",t:Zr},27:{n:"ContentStatus",t:Zr},28:{n:"Language",t:Zr},29:{n:"Version",t:Zr},255:{},2147483648:{n:"Locale",t:Kr},2147483651:{n:"Behavior",t:Kr},1919054434:{}},ri={1:{n:"CodePage",t:$r},2:{n:"Title",t:Zr},3:{n:"Subject",t:Zr},4:{n:"Author",t:Zr},5:{n:"Keywords",t:Zr},6:{n:"Comments",t:Zr},7:{n:"Template",t:Zr},8:{n:"LastAuthor",t:Zr},9:{n:"RevNumber",t:Zr},10:{n:"EditTime",t:Wr},11:{n:"LastPrinted",t:Wr},12:{n:"CreatedDate",t:Wr},13:{n:"ModifiedDate",t:Wr},14:{n:"PageCount",t:zr},15:{n:"WordCount",t:zr},16:{n:"CharCount",t:zr},17:{n:"Thumbnail",t:Yr},18:{n:"Application",t:Zr},19:{n:"DocSecurity",t:zr},255:{},2147483648:{n:"Locale",t:Kr},2147483651:{n:"Behavior",t:Kr},1919054434:{}},ii={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"},oi=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function ai(e){return e.map((function(e){return[e>>16&255,e>>8&255,255&e]}))}var si=ai([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),li=ft(si),ci={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},ui={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},hi={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"};function fi(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function di(e){var t=fi();if(!e||!e.match)return t;var n={};if((e.match(It)||[]).forEach((function(e){var r=Pt(e);switch(r[0].replace(Dt,"<")){case"0?t.calcchains[0]:"",t.sst=t.strs.length>0?t.strs[0]:"",t.style=t.styles.length>0?t.styles[0]:"",t.defaults=n,delete t.calcchains,t}var Ai={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function pi(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function mi(e,t){var n={"!id":{}};if(!e)return n;"/"!==t.charAt(0)&&(t="/"+t);var r={};return(e.match(It)||[]).forEach((function(e){var i=Pt(e);if("]*>([\\s\\S]*?)"+r+">")}return e}();function wi(e){var t={};e=Xt(e);for(var n=0;n0&&(t[r[1]]=Qt(i[1])),"date"===r[2]&&t[r[1]]&&(t[r[1]]=ut(t[r[1]]))}return t}var xi=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]];function Ci(e,t,n,r){var i=[];if("string"==typeof e)i=on(e,r);else for(var o=0;o0)for(var c=0;c!==i.length;c+=2){switch(l=+i[c+1].v,i[c].v){case"Worksheets":case"工作表":case"Листы":case"أوراق العمل":case"ワークシート":case"גליונות עבודה":case"Arbeitsblätter":case"Çalışma Sayfaları":case"Feuilles de calcul":case"Fogli di lavoro":case"Folhas de cálculo":case"Planilhas":case"Regneark":case"Hojas de cálculo":case"Werkbladen":n.Worksheets=l,n.SheetNames=a.slice(s,s+l);break;case"Named Ranges":case"Rangos con nombre":case"名前付き一覧":case"Benannte Bereiche":case"Navngivne områder":n.NamedRanges=l,n.DefinedNames=a.slice(s,s+l);break;case"Charts":case"Diagramme":n.Chartsheets=l,n.ChartNames=a.slice(s,s+l);break}s+=l}}function ki(e,t,n){var r={};return t||(t={}),e=Xt(e),xi.forEach((function(n){var i=(e.match(Zt(n[0]))||[])[1];switch(n[2]){case"string":i&&(t[n[1]]=Qt(i));break;case"bool":t[n[1]]="true"===i;break;case"raw":var o=e.match(new RegExp("<"+n[0]+"[^>]*>([\\s\\S]*?)"+n[0]+">"));o&&o.length>0&&(r[n[1]]=o[1]);break}})),r.HeadingPairs&&r.TitlesOfParts&&Ci(r.HeadingPairs,r.TitlesOfParts,t,n),t}var _i=/<[^>]+>[^<]*/g;function Ei(e,t){var n={},r="",i=e.match(_i);if(i)for(var o=0;o!=i.length;++o){var a=i[o],s=Pt(a);switch(s[0]){case"":r=null;break;default:if(0===a.indexOf(""),c=l[0].slice(4),u=l[1];switch(c){case"lpstr":case"bstr":case"lpwstr":n[r]=Qt(u);break;case"bool":n[r]=qt(u);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":n[r]=parseInt(u,10);break;case"r4":case"r8":case"decimal":n[r]=parseFloat(u);break;case"filetime":case"date":n[r]=ut(u);break;case"cy":case"error":n[r]=Qt(u);break;default:if("/"==c.slice(-1))break;t.WTF&&"undefined"!==typeof console&&console.warn("Unexpected",a,c,l)}}else if(""===a.slice(0,2));else if(t.WTF)throw new Error(a)}}return n}var Bi,Si={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function Ti(e,t,n){Bi||(Bi=Ze(Si)),t=Bi[t]||t,e[t]=n}function Oi(e){var t=e.read_shift(4),n=e.read_shift(4);return new Date(1e3*(n/1e7*Math.pow(2,32)+t/1e7-11644473600)).toISOString().replace(/\.000/,"")}function Fi(e,t,n){var r=e.l,i=e.read_shift(0,"lpstr-cp");if(n)while(e.l-r&3)++e.l;return i}function Ni(e,t,n){var r=e.read_shift(0,"lpwstr");return n&&(e.l+=4-(r.length+1&3)&3),r}function Li(e,t,n){return 31===t?Ni(e):Fi(e,t,n)}function Ii(e,t,n){return Li(e,t,!1===n?0:4)}function Di(e,t){if(!t)throw new Error("VtUnalignedString must have positive length");return Li(e,t,0)}function Mi(e){for(var t=e.read_shift(4),n=[],r=0;r!=t;++r){var i=e.l;n[r]=e.read_shift(0,"lpwstr").replace(I,""),e.l-i&2&&(e.l+=2)}return n}function Pi(e){for(var t=e.read_shift(4),n=[],r=0;r!=t;++r)n[r]=e.read_shift(0,"lpstr-cp").replace(I,"");return n}function Ui(e){var t=e.l,n=$i(e,ei);0==e[e.l]&&0==e[e.l+1]&&e.l-t&2&&(e.l+=2);var r=$i(e,zr);return[n,r]}function Ri(e){for(var t=e.read_shift(4),n=[],r=0;r>3<<2),r}function Qi(e){var t=e.read_shift(4),n=e.slice(e.l,e.l+t);return e.l+=t,(3&t)>0&&(e.l+=4-(3&t)&3),n}function Hi(e){var t={};return t.Size=e.read_shift(4),e.l+=t.Size+3-(t.Size-1)%4,t}function $i(e,t,n){var r,i=e.read_shift(2),o=n||{};if(e.l+=2,t!==qr&&i!==t&&-1===ti.indexOf(t)&&(4126!=(65534&t)||4126!=(65534&i)))throw new Error("Expected type "+t+" saw "+i);switch(t===qr?i:t){case 2:return r=e.read_shift(2,"i"),o.raw||(e.l+=2),r;case 3:return r=e.read_shift(4,"i"),r;case 11:return 0!==e.read_shift(4);case 19:return r=e.read_shift(4),r;case 30:return Fi(e,i,4).replace(I,"");case 31:return Ni(e);case 64:return Oi(e);case 65:return Qi(e);case 71:return Hi(e);case 80:return Ii(e,i,!o.raw).replace(I,"");case 81:return Di(e,i).replace(I,"");case 4108:return Ri(e);case 4126:case 4127:return 4127==i?Mi(e):Pi(e);default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+i)}}function zi(e,t){var n=e.l,r=e.read_shift(4),i=e.read_shift(4),o=[],a=0,s=0,l=-1,c={};for(a=0;a!=i;++a){var u=e.read_shift(4),f=e.read_shift(4);o[a]=[u,f+n]}o.sort((function(e,t){return e[1]-t[1]}));var d={};for(a=0;a!=i;++a){if(e.l!==o[a][1]){var A=!0;if(a>0&&t)switch(t[o[a-1][0]].t){case 2:e.l+2===o[a][1]&&(e.l+=2,A=!1);break;case 80:e.l<=o[a][1]&&(e.l=o[a][1],A=!1);break;case 4108:e.l<=o[a][1]&&(e.l=o[a][1],A=!1);break}if((!t||0==a)&&e.l<=o[a][1]&&(A=!1,e.l=o[a][1]),A)throw new Error("Read Error: Expected address "+o[a][1]+" at "+e.l+" :"+a)}if(t){var p=t[o[a][0]];if(d[p.n]=$i(e,p.t,{raw:!0}),"version"===p.p&&(d[p.n]=String(d[p.n]>>16)+"."+("0000"+String(65535&d[p.n])).slice(-4)),"CodePage"==p.n)switch(d[p.n]){case 0:d[p.n]=1252;case 874:case 932:case 936:case 949:case 950:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 1e4:case 1200:case 1201:case 1252:case 65e3:case-536:case 65001:case-535:h(s=d[p.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+d[p.n])}}else if(1===o[a][0]){if(s=d.CodePage=$i(e,$r),h(s),-1!==l){var m=e.l;e.l=o[l][1],c=ji(e,s),e.l=m}}else if(0===o[a][0]){if(0===s){l=a,e.l=o[a+1][1];continue}c=ji(e,s)}else{var g,v=c[o[a][0]];switch(e[e.l]){case 65:e.l+=4,g=Qi(e);break;case 30:e.l+=4,g=Ii(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 31:e.l+=4,g=Ii(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 3:e.l+=4,g=e.read_shift(4,"i");break;case 19:e.l+=4,g=e.read_shift(4);break;case 5:e.l+=4,g=e.read_shift(8,"f");break;case 11:e.l+=4,g=Wi(e,4);break;case 64:e.l+=4,g=ut(Oi(e));break;default:throw new Error("unparsed value: "+e[e.l])}d[v]=g}}return e.l=n+r,d}function Vi(e,t,n){var r=e.content;if(!r)return{};Gn(r,0);var i,o,a,s,l=0;r.chk("feff","Byte Order: "),r.read_shift(2);var c=r.read_shift(4),u=r.read_shift(16);if(u!==Ge.utils.consts.HEADER_CLSID&&u!==n)throw new Error("Bad PropertySet CLSID "+u);if(i=r.read_shift(4),1!==i&&2!==i)throw new Error("Unrecognized #Sets: "+i);if(o=r.read_shift(16),s=r.read_shift(4),1===i&&s!==r.l)throw new Error("Length mismatch: "+s+" !== "+r.l);2===i&&(a=r.read_shift(16),l=r.read_shift(4));var h,f=zi(r,t),d={SystemIdentifier:c};for(var A in f)d[A]=f[A];if(d.FMTID=o,1===i)return d;if(l-r.l==2&&(r.l+=2),r.l!==l)throw new Error("Length mismatch 2: "+r.l+" !== "+l);try{h=zi(r,null)}catch(p){}for(A in h)d[A]=h[A];return d.FMTID=[o,a],d}function qi(e,t){return e.read_shift(t),null}function Ki(e,t,n){var r=[],i=e.l+t;while(e.l=12?2:1),i="sbcs-cont",a=o;if(n&&n.biff>=8&&(o=1200),n&&8!=n.biff)12==n.biff&&(i="wstr");else{var s=e.read_shift(1);s&&(i="dbcs-cont")}n.biff>=2&&n.biff<=5&&(i="cpstr");var l=r?e.read_shift(r,i):"";return o=a,l}function Zi(e){var t=o;o=1200;var n,r=e.read_shift(2),i=e.read_shift(1),a=4&i,s=8&i,l=1+(1&i),c=0,u={};s&&(c=e.read_shift(2)),a&&(n=e.read_shift(4));var h=2==l?"dbcs-cont":"sbcs-cont",f=0===r?"":e.read_shift(r,h);return s&&(e.l+=4*c),a&&(e.l+=n),u.t=f,s||(u.raw=""+u.t+" ",u.r=u.t),o=t,u}function eo(e,t,n){var r;if(n){if(n.biff>=2&&n.biff<=5)return e.read_shift(t,"cpstr");if(n.biff>=12)return e.read_shift(t,"dbcs-cont")}var i=e.read_shift(1);return r=0===i?e.read_shift(t,"sbcs-cont"):e.read_shift(t,"dbcs-cont"),r}function to(e,t,n){var r=e.read_shift(n&&2==n.biff?1:2);return 0===r?(e.l++,""):eo(e,r,n)}function no(e,t,n){if(n.biff>5)return to(e,t,n);var r=e.read_shift(1);return 0===r?(e.l++,""):e.read_shift(r,n.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function ro(e){var t=e.read_shift(1);e.l++;var n=e.read_shift(2);return e.l+=2,[t,n]}function io(e){var t=e.read_shift(4),n=e.l,r=!1;t>24&&(e.l+=t-24,"795881f43b1d7f48af2c825dc4852763"===e.read_shift(16)&&(r=!0),e.l=n);var i=e.read_shift((r?t-24:t)>>1,"utf16le").replace(I,"");return r&&(e.l+=24),i}function oo(e){var t=e.read_shift(2),n="";while(t-- >0)n+="../";var r=e.read_shift(0,"lpstr-ansi");if(e.l+=2,57005!=e.read_shift(2))throw new Error("Bad FileMoniker");var i=e.read_shift(4);if(0===i)return n+r.replace(/\\/g,"/");var o=e.read_shift(4);if(3!=e.read_shift(2))throw new Error("Bad FileMoniker");var a=e.read_shift(o>>1,"utf16le").replace(I,"");return n+a}function ao(e,t){var n=e.read_shift(16);switch(t-=16,n){case"e0c9ea79f9bace118c8200aa004ba90b":return io(e,t);case"0303000000000000c000000000000046":return oo(e,t);default:throw new Error("Unsupported Moniker "+n)}}function so(e){var t=e.read_shift(4),n=t>0?e.read_shift(t,"utf16le").replace(I,""):"";return n}function lo(e,t){var n=e.l+t,r=e.read_shift(4);if(2!==r)throw new Error("Unrecognized streamVersion: "+r);var i=e.read_shift(2);e.l+=2;var o,a,s,l,c,u,h="";16&i&&(o=so(e,n-e.l)),128&i&&(a=so(e,n-e.l)),257===(257&i)&&(s=so(e,n-e.l)),1===(257&i)&&(l=ao(e,n-e.l)),8&i&&(h=so(e,n-e.l)),32&i&&(c=e.read_shift(16)),64&i&&(u=Oi(e)),e.l=n;var f=a||s||l||"";f&&h&&(f+="#"+h),f||(f="#"+h),2&i&&"/"==f.charAt(0)&&"/"!=f.charAt(1)&&(f="file://"+f);var d={Target:f};return c&&(d.guid=c),u&&(d.time=u),o&&(d.Tooltip=o),d}function co(e){var t=e.read_shift(1),n=e.read_shift(1),r=e.read_shift(1),i=e.read_shift(1);return[t,n,r,i]}function uo(e,t){var n=co(e,t);return n[3]=0,n}function ho(e){var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(2);return{r:t,c:n,ixfe:r}}function fo(e){var t=e.read_shift(2),n=e.read_shift(2);return e.l+=8,{type:t,flags:n}}function Ao(e,t,n){return 0===t?"":no(e,t,n)}function po(e,t,n){var r=n.biff>8?4:2,i=e.read_shift(r),o=e.read_shift(r,"i"),a=e.read_shift(r,"i");return[i,o,a]}function mo(e){var t=e.read_shift(2),n=Ir(e);return[t,n]}function go(e,t,n){e.l+=4,t-=4;var r=e.l+t,i=Ji(e,t,n),o=e.read_shift(2);if(r-=e.l,o!==r)throw new Error("Malformed AddinUdf: padding = "+r+" != "+o);return e.l+=o,i}function vo(e){var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(2),i=e.read_shift(2);return{s:{c:r,r:t},e:{c:i,r:n}}}function bo(e){var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(1),i=e.read_shift(1);return{s:{c:r,r:t},e:{c:i,r:n}}}var yo=bo;function wo(e){e.l+=4;var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(2);return e.l+=12,[n,t,r]}function xo(e){var t={};return e.l+=4,e.l+=16,t.fSharedNote=e.read_shift(2),e.l+=4,t}function Co(e){var t={};return e.l+=4,e.cf=e.read_shift(2),t}function ko(e){e.l+=2,e.l+=e.read_shift(2)}var _o={0:ko,4:ko,5:ko,6:ko,7:Co,8:ko,9:ko,10:ko,11:ko,12:ko,13:xo,14:ko,15:ko,16:ko,17:ko,18:ko,19:ko,20:ko,21:wo};function Eo(e,t){var n=e.l+t,r=[];while(e.l=2&&(n.dt=e.read_shift(2),e.l-=2),n.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(t>6)throw new Error("Unexpected BIFF Ver "+n.BIFFVer)}return e.read_shift(t),n}function So(e,t){return 0===t||e.read_shift(2),1200}function To(e,t,n){if(n.enc)return e.l+=t,"";var r=e.l,i=no(e,0,n);return e.read_shift(t+r-e.l),i}function Oo(e,t,n){var r=n&&8==n.biff||2==t?e.read_shift(2):(e.l+=t,0);return{fDialog:16&r,fBelow:64&r,fRight:128&r}}function Fo(e,t,n){var r=e.read_shift(4),i=3&e.read_shift(1),o=e.read_shift(1);switch(o){case 0:o="Worksheet";break;case 1:o="Macrosheet";break;case 2:o="Chartsheet";break;case 6:o="VBAModule";break}var a=Ji(e,0,n);return 0===a.length&&(a="Sheet1"),{pos:r,hs:i,dt:o,name:a}}function No(e,t){for(var n=e.l+t,r=e.read_shift(4),i=e.read_shift(4),o=[],a=0;a!=i&&e.l>15),i&=32767);var o={Unsynced:1&r,DyZero:(2&r)>>1,ExAsc:(4&r)>>2,ExDsc:(8&r)>>3};return[o,i]}function Uo(e){var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(2),i=e.read_shift(2),o=e.read_shift(2),a=e.read_shift(2),s=e.read_shift(2),l=e.read_shift(2),c=e.read_shift(2);return{Pos:[t,n],Dim:[r,i],Flags:o,CurTab:a,FirstTab:s,Selected:l,TabRatio:c}}function Ro(e,t,n){if(n&&n.biff>=2&&n.biff<5)return{};var r=e.read_shift(2);return{RTL:64&r}}function jo(){}function Qo(e,t,n){var r={dyHeight:e.read_shift(2),fl:e.read_shift(2)};switch(n&&n.biff||8){case 2:break;case 3:case 4:e.l+=2;break;default:e.l+=10;break}return r.name=Ji(e,0,n),r}function Ho(e){var t=ho(e);return t.isst=e.read_shift(4),t}function $o(e,t,n){n.biffguess&&2==n.biff&&(n.biff=5);var r=e.l+t,i=ho(e,6);2==n.biff&&e.l++;var o=to(e,r-e.l,n);return i.val=o,i}function zo(e,t,n){var r=e.read_shift(2),i=no(e,0,n);return[r,i]}var Vo=no;function qo(e,t,n){var r=e.l+t,i=8!=n.biff&&n.biff?2:4,o=e.read_shift(i),a=e.read_shift(i),s=e.read_shift(2),l=e.read_shift(2);return e.l=r,{s:{r:o,c:s},e:{r:a,c:l}}}function Ko(e){var t=e.read_shift(2),n=e.read_shift(2),r=mo(e);return{r:t,c:n,ixfe:r[0],rknum:r[1]}}function Wo(e,t){var n=e.l+t-2,r=e.read_shift(2),i=e.read_shift(2),o=[];while(e.l>26],r.cellStyles?(i.alc=7&o,i.fWrap=o>>3&1,i.alcV=o>>4&7,i.fJustLast=o>>7&1,i.trot=o>>8&255,i.cIndent=o>>16&15,i.fShrinkToFit=o>>20&1,i.iReadOrder=o>>22&2,i.fAtrNum=o>>26&1,i.fAtrFnt=o>>27&1,i.fAtrAlc=o>>28&1,i.fAtrBdr=o>>29&1,i.fAtrPat=o>>30&1,i.fAtrProt=o>>31&1,i.dgLeft=15&a,i.dgRight=a>>4&15,i.dgTop=a>>8&15,i.dgBottom=a>>12&15,i.icvLeft=a>>16&127,i.icvRight=a>>23&127,i.grbitDiag=a>>30&3,i.icvTop=127&s,i.icvBottom=s>>7&127,i.icvDiag=s>>14&127,i.dgDiag=s>>21&15,i.icvFore=127&l,i.icvBack=l>>7&127,i.fsxButton=l>>14&1,i):i}function Xo(e,t,n){var r={};return r.ifnt=e.read_shift(2),r.numFmtId=e.read_shift(2),r.flags=e.read_shift(2),r.fStyle=r.flags>>2&1,t-=6,r.data=Yo(e,t,r.fStyle,n),r}function Jo(e){e.l+=4;var t=[e.read_shift(2),e.read_shift(2)];if(0!==t[0]&&t[0]--,0!==t[1]&&t[1]--,t[0]>7||t[1]>7)throw new Error("Bad Gutters: "+t.join("|"));return t}function Zo(e,t,n){var r=ho(e,6);2!=n.biff&&9!=t||++e.l;var i=Xi(e,2);return r.val=i,r.t=!0===i||!1===i?"b":"e",r}function ea(e,t,n){n.biffguess&&2==n.biff&&(n.biff=5);var r=ho(e,6),i=Pr(e,8);return r.val=i,r}var ta=Ao;function na(e,t,n){var r=e.l+t,i=e.read_shift(2),o=e.read_shift(2);if(n.sbcch=o,1025==o||14849==o)return[o,i];if(o<1||o>255)throw new Error("Unexpected SupBook type: "+o);var a=eo(e,o),s=[];while(r>e.l)s.push(to(e));return[o,i,a,s]}function ra(e,t,n){var r,i=e.read_shift(2),o={fBuiltIn:1&i,fWantAdvise:i>>>1&1,fWantPict:i>>>2&1,fOle:i>>>3&1,fOleLink:i>>>4&1,cf:i>>>5&1023,fIcon:i>>>15&1};return 14849===n.sbcch&&(r=go(e,t-2,n)),o.body=r||e.read_shift(t-2),"string"===typeof r&&(o.Name=r),o}var ia=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];function oa(e,t,n){var r=e.l+t,i=e.read_shift(2),o=e.read_shift(1),a=e.read_shift(1),s=e.read_shift(n&&2==n.biff?1:2),l=0;(!n||n.biff>=5)&&(5!=n.biff&&(e.l+=2),l=e.read_shift(2),5==n.biff&&(e.l+=2),e.l+=4);var c=eo(e,a,n);32&i&&(c=ia[c.charCodeAt(0)]);var u=r-e.l;n&&2==n.biff&&--u;var h=r!=e.l&&0!==s&&u>0?Mu(e,u,n,s):[];return{chKey:o,Name:c,itab:l,rgce:h}}function aa(e,t,n){if(n.biff<8)return sa(e,t,n);var r=[],i=e.l+t,o=e.read_shift(n.biff>8?4:2);while(0!==o--)r.push(po(e,n.biff>8?12:6,n));if(e.l!=i)throw new Error("Bad ExternSheet: "+e.l+" != "+i);return r}function sa(e,t,n){3==e[e.l+1]&&e[e.l]++;var r=Ji(e,t,n);return 3==r.charCodeAt(0)?r.slice(1):r}function la(e,t,n){if(!(n.biff<8)){var r=e.read_shift(2),i=e.read_shift(2),o=eo(e,r,n),a=eo(e,i,n);return[o,a]}e.l+=t}function ca(e,t,n){var r=bo(e,6);e.l++;var i=e.read_shift(1);return t-=8,[Pu(e,t,n),i,r]}function ua(e,t,n){var r=yo(e,6);switch(n.biff){case 2:e.l++,t-=7;break;case 3:case 4:e.l+=2,t-=8;break;default:e.l+=6,t-=12}return[r,Iu(e,t,n,r)]}function ha(e){var t=0!==e.read_shift(4),n=0!==e.read_shift(4),r=e.read_shift(4);return[t,n,r]}function fa(e,t,n){if(!(n.biff<8)){var r=e.read_shift(2),i=e.read_shift(2),o=e.read_shift(2),a=e.read_shift(2),s=no(e,0,n);return n.biff<8&&e.read_shift(1),[{r:r,c:i},s,a,o]}}function da(e,t,n){return fa(e,t,n)}function Aa(e,t){var n=[],r=e.read_shift(2);while(r--)n.push(vo(e,t));return n}function pa(e,t,n){if(n&&n.biff<8)return ga(e,t,n);var r=wo(e,22),i=Eo(e,t-22,r[1]);return{cmo:r,ft:i}}var ma={8:function(e,t){var n=e.l+t;e.l+=10;var r=e.read_shift(2);e.l+=4,e.l+=2,e.l+=2,e.l+=2,e.l+=4;var i=e.read_shift(1);return e.l+=i,e.l=n,{fmt:r}}};function ga(e,t,n){e.l+=4;var r=e.read_shift(2),i=e.read_shift(2),o=e.read_shift(2);e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=6,t-=36;var a=[];return a.push((ma[r]||Yn)(e,t,n)),{cmo:[i,r,o],ft:a}}function va(e,t,n){var r=e.l,i="";try{e.l+=4;var o=(n.lastobj||{cmo:[0,0]}).cmo[1];-1==[0,5,7,11,12,14].indexOf(o)?e.l+=6:ro(e,6,n);var a=e.read_shift(2);e.read_shift(2),Gi(e,2);var s=e.read_shift(2);e.l+=s;for(var l=1;l=(c?a:2*a))break}if(i.length!==a&&i.length!==2*a)throw new Error("cchText: "+a+" != "+i.length);return e.l=r+t,{t:i}}catch(h){return e.l=r+t,{t:i}}}function ba(e,t){var n=vo(e,8);e.l+=16;var r=lo(e,t-24);return[n,r]}function ya(e,t){e.read_shift(2);var n=vo(e,8),r=e.read_shift((t-10)/2,"dbcs-cont");return r=r.replace(I,""),[n,r]}function wa(e){var t,n=[0,0];return t=e.read_shift(2),n[0]=ii[t]||t,t=e.read_shift(2),n[1]=ii[t]||t,n}function xa(e){var t=e.read_shift(2),n=[];while(t-- >0)n.push(uo(e,8));return n}function Ca(e){var t=e.read_shift(2),n=[];while(t-- >0)n.push(uo(e,8));return n}function ka(e){e.l+=2;var t={cxfs:0,crc:0};return t.cxfs=e.read_shift(2),t.crc=e.read_shift(4),t}function _a(e,t,n){if(!n.cellStyles)return Yn(e,t);var r=n&&n.biff>=12?4:2,i=e.read_shift(r),o=e.read_shift(r),a=e.read_shift(r),s=e.read_shift(r),l=e.read_shift(2);2==r&&(e.l+=2);var c={s:i,e:o,w:a,ixfe:s,flags:l};return(n.biff>=5||!n.biff)&&(c.level=l>>8&7),c}function Ea(e,t){var n={};return t<32||(e.l+=16,n.header=Pr(e,8),n.footer=Pr(e,8),e.l+=2),n}function Ba(e,t,n){var r={area:!1};if(5!=n.biff)return e.l+=t,r;var i=e.read_shift(1);return e.l+=3,16&i&&(r.area=!0),r}var Sa=ho,Ta=Yi,Oa=to;function Fa(e){var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(4),i={fmt:t,env:n,len:r,data:e.slice(e.l,e.l+r)};return e.l+=r,i}function Na(e,t,n){n.biffguess&&5==n.biff&&(n.biff=2);var r=ho(e,6);++e.l;var i=no(e,t-7,n);return r.t="str",r.val=i,r}function La(e){var t=ho(e,6);++e.l;var n=Pr(e,8);return t.t="n",t.val=n,t}function Ia(e){var t=ho(e,6);++e.l;var n=e.read_shift(2);return t.t="n",t.val=n,t}function Da(e){var t=e.read_shift(1);return 0===t?(e.l++,""):e.read_shift(t,"sbcs-cont")}function Ma(e,t){e.l+=6,e.l+=2,e.l+=1,e.l+=3,e.l+=1,e.l+=t-13}function Pa(e,t,n){var r=e.l+t,i=ho(e,6),o=e.read_shift(2),a=eo(e,o,n);return e.l=r,i.t="str",i.val=a,i}var Ua=[2,3,48,49,131,139,140,245],Ra=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},t=Ze({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function n(t,n){var r=[],i=B(1);switch(n.type){case"base64":i=T(k(t));break;case"binary":i=T(t);break;case"buffer":case"array":i=t;break}Gn(i,0);var o=i.read_shift(1),a=!!(136&o),s=!1,l=!1;switch(o){case 2:break;case 3:break;case 48:s=!0,a=!0;break;case 49:s=!0,a=!0;break;case 131:break;case 139:break;case 140:l=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+o.toString(16))}var c=0,u=521;2==o&&(c=i.read_shift(2)),i.l+=3,2!=o&&(c=i.read_shift(4)),c>1048576&&(c=1e6),2!=o&&(u=i.read_shift(2));var h=i.read_shift(2),f=n.codepage||1252;2!=o&&(i.l+=16,i.read_shift(1),0!==i[i.l]&&(f=e[i[i.l]]),i.l+=1,i.l+=2),l&&(i.l+=36);var d=[],A={},p=Math.min(i.length,2==o?521:u-10-(s?264:0)),g=l?32:11;while(i.l0)if(42!==i[i.l])for(++i.l,r[++v]=[],b=0,b=0;b!=d.length;++b){var y=i.slice(i.l,i.l+d[b].len);i.l+=d[b].len,Gn(y,0);var w=m.utils.decode(f,y);switch(d[b].type){case"C":w.trim().length&&(r[v][b]=w.replace(/\s+$/,""));break;case"D":8===w.length?r[v][b]=new Date(+w.slice(0,4),+w.slice(4,6)-1,+w.slice(6,8)):r[v][b]=w;break;case"F":r[v][b]=parseFloat(w.trim());break;case"+":case"I":r[v][b]=l?2147483648^y.read_shift(-4,"i"):y.read_shift(4,"i");break;case"L":switch(w.trim().toUpperCase()){case"Y":case"T":r[v][b]=!0;break;case"N":case"F":r[v][b]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+w+"|")}break;case"M":if(!a)throw new Error("DBF Unexpected MEMO for type "+o.toString(16));r[v][b]="##MEMO##"+(l?parseInt(w.trim(),10):y.read_shift(4));break;case"N":w=w.replace(/\u0000/g,"").trim(),w&&"."!=w&&(r[v][b]=+w||0);break;case"@":r[v][b]=new Date(y.read_shift(-8,"f")-621356832e5);break;case"T":r[v][b]=new Date(864e5*(y.read_shift(4)-2440588)+y.read_shift(4));break;case"Y":r[v][b]=y.read_shift(4,"i")/1e4+y.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":r[v][b]=-y.read_shift(-8,"f");break;case"B":if(s&&8==d[b].len){r[v][b]=y.read_shift(8,"f");break}case"G":case"P":y.l+=d[b].len;break;case"0":if("_NullFlags"===d[b].name)break;default:throw new Error("DBF Unsupported data type "+d[b].type)}}else i.l+=h;if(2!=o&&i.l=0&&h(+r.codepage),"string"==r.type)throw new Error("Cannot write DBF to JS string");var i=Zn(),s=hA(e,{header:1,raw:!0,cellDates:!0}),l=s[0],c=s.slice(1),u=e["!cols"]||[],f=0,d=0,A=0,p=1;for(f=0;f250&&(x=250),w=((u[f]||{}).DBF||{}).type,"C"==w&&u[f].DBF.len>x&&(x=u[f].DBF.len),"B"==y&&"N"==w&&(y="N",b[f]=u[f].DBF.dec,x=u[f].DBF.len),v[f]="C"==y||"N"==w?x:o[y]||0,p+=v[f],g[f]=y}else g[f]="?"}var k=i.next(32);for(k.write_shift(4,318902576),k.write_shift(4,c.length),k.write_shift(2,296+32*A),k.write_shift(2,p),f=0;f<4;++f)k.write_shift(4,0);for(k.write_shift(4,0|(+t[a]||3)<<8),f=0,d=0;f":190,"?":191,"{":223},n=new RegExp("N("+Je(t).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(e,n){var r=t[n];return"number"==typeof r?b(r):r},i=function(e,t,n){var r=t.charCodeAt(0)-32<<4|n.charCodeAt(0)-48;return 59==r?e:b(r)};function o(t,n){switch(n.type){case"base64":return a(k(t),n);case"binary":return a(t,n);case"buffer":return a(_&&e.isBuffer(t)?t.toString("binary"):O(t),n);case"array":return a(ht(t),n)}throw new Error("Unrecognized type "+n.type)}function a(e,t){var o,a=e.split(/[\n\r]+/),s=-1,l=-1,c=0,u=0,f=[],d=[],A=null,p={},g=[],v=[],b=[],y=0;for(+t.codepage>=0&&h(+t.codepage);c!==a.length;++c){y=0;var w,x=a[c].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,i).replace(n,r),C=x.replace(/;;/g,"\0").split(";").map((function(e){return e.replace(/\u0000/g,";")})),k=C[0];if(x.length>0)switch(k){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":"P"==C[1].charAt(0)&&d.push(x.slice(3).replace(/;;/g,";"));break;case"C":var _=!1,E=!1,B=!1,S=!1,T=-1,O=-1;for(u=1;u-1&&f[T][O];if(!N||!N[1])throw new Error("SYLK shared formula cannot find base");f[s][l][1]=tc(N[1],{r:s-T,c:l-O})}break;case"F":var L=0;for(u=1;u0?(g[s].hpt=y,g[s].hpx=Ks(y)):0===y&&(g[s].hidden=!0);break;default:if(t&&t.WTF)throw new Error("SYLK bad record "+x)}L<1&&(A=null);break;default:if(t&&t.WTF)throw new Error("SYLK bad record "+x)}}return g.length>0&&(p["!rows"]=g),v.length>0&&(p["!cols"]=v),t&&t.sheetRows&&(f=f.slice(0,t.sheetRows)),[f,p]}function s(e,t){var n=o(e,t),r=n[0],i=n[1],a=xr(r,t);return Je(i).forEach((function(e){a[e]=i[e]})),a}function l(e,t){return yr(s(e,t),t)}function c(e,t,n,r){var i="C;Y"+(n+1)+";X"+(r+1)+";K";switch(e.t){case"n":i+=e.v||0,e.f&&!e.F&&(i+=";E"+ec(e.f,{r:n,c:r}));break;case"b":i+=e.v?"TRUE":"FALSE";break;case"e":i+=e.w||e.v;break;case"d":i+='"'+(e.w||e.v)+'"';break;case"s":i+='"'+e.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return i}function u(e,t){t.forEach((function(t,n){var r="F;W"+(n+1)+" "+(n+1)+" ";t.hidden?r+="0":("number"!=typeof t.width||t.wpx||(t.wpx=Us(t.width)),"number"!=typeof t.wpx||t.wch||(t.wch=Rs(t.wpx)),"number"==typeof t.wch&&(r+=Math.round(t.wch)))," "!=r.charAt(r.length-1)&&e.push(r)}))}function f(e,t){t.forEach((function(t,n){var r="F;";t.hidden?r+="M0;":t.hpt?r+="M"+20*t.hpt+";":t.hpx&&(r+="M"+20*qs(t.hpx)+";"),r.length>2&&e.push(r+"R"+(n+1))}))}function d(e,t){var n,r=["ID;PWXL;N;E"],i=[],o=gr(e["!ref"]),a=Array.isArray(e),s="\r\n";r.push("P;PGeneral"),r.push("F;P0;DG0G8;M255"),e["!cols"]&&u(r,e["!cols"]),e["!rows"]&&f(r,e["!rows"]),r.push("B;Y"+(o.e.r-o.s.r+1)+";X"+(o.e.c-o.s.c+1)+";D"+[o.s.c,o.s.r,o.e.c,o.e.r].join(" "));for(var l=o.s.r;l<=o.e.r;++l)for(var h=o.s.c;h<=o.e.c;++h){var d=Ar({r:l,c:h});n=a?(e[l]||[])[h]:e[d],n&&(null!=n.v||n.f&&!n.F)&&i.push(c(n,e,l,h,t))}return r.join(s)+s+i.join(s)+s+"E"+s}return t["|"]=254,{to_workbook:l,to_sheet:s,from_sheet:d}}(),Qa=function(){function t(t,r){switch(r.type){case"base64":return n(k(t),r);case"binary":return n(t,r);case"buffer":return n(_&&e.isBuffer(t)?t.toString("binary"):O(t),r);case"array":return n(ht(t),r)}throw new Error("Unrecognized type "+r.type)}function n(e,t){for(var n=e.split("\n"),r=-1,i=-1,o=0,a=[];o!==n.length;++o)if("BOT"!==n[o].trim()){if(!(r<0)){var s=n[o].trim().split(","),l=s[0],c=s[1];++o;var u=n[o]||"";while(1&(u.match(/["]/g)||[]).length&&o=0&&0===o[a].length)--a;for(var s=10,l=0,c=0;c<=a;++c)l=o[c].indexOf(" "),-1==l?l=o[c].length:l++,s=Math.max(s,l);for(c=0;c<=a;++c){i[c]=[];var u=0;for(t(o[c].slice(0,s).trim(),i,c,u,r),u=1;u<=(o[c].length-s)/10+1;++u)t(o[c].slice(s+10*(u-1),s+10*u).trim(),i,c,u,r)}return r.sheetRows&&(i=i.slice(0,r.sheetRows)),i}var r={44:",",9:"\t",59:";",124:"|"},i={44:3,9:2,59:1,124:0};function o(e){for(var t={},n=!1,o=0,a=0;o0&&g(),i["!ref"]=mr(a),i}function s(e,t){return t&&t.PRN?t.FS||"sep="==e.slice(0,4)||e.indexOf("\t")>=0||e.indexOf(",")>=0||e.indexOf(";")>=0?a(e,t):xr(n(e,t),t):a(e,t)}function l(t,n){var r="",i="string"==n.type?[0,0,0,0]:tA(t,n);switch(n.type){case"base64":r=k(t);break;case"binary":r=t;break;case"buffer":r=65001==n.codepage?t.toString("utf8"):n.codepage&&"undefined"!==typeof m?m.utils.decode(n.codepage,t):_&&e.isBuffer(t)?t.toString("binary"):O(t);break;case"array":r=ht(t);break;case"string":r=t;break;default:throw new Error("Unrecognized type "+n.type)}return 239==i[0]&&187==i[1]&&191==i[2]?r=Xt(r.slice(3)):"string"!=n.type&&"buffer"!=n.type&&65001==n.codepage?r=Xt(r):"binary"==n.type&&"undefined"!==typeof m&&n.codepage&&(r=m.utils.decode(n.codepage,m.utils.encode(28591,r))),"socialcalc:version:"==r.slice(0,19)?Ha.to_sheet("string"==n.type?r:Xt(r),n):s(r,n)}function c(e,t){return yr(l(e,t),t)}function u(e){for(var t,n=[],r=gr(e["!ref"]),i=Array.isArray(e),o=r.s.r;o<=r.e.r;++o){for(var a=[],s=r.s.c;s<=r.e.c;++s){var l=Ar({r:o,c:s});if(t=i?(e[o]||[])[s]:e[l],t&&null!=t.v){var c=(t.w||(br(t),t.w)||"").slice(0,10);while(c.length<10)c+=" ";a.push(c+(0===s?" ":""))}else a.push(" ")}n.push(a.join(""))}return n.join("\n")}return{to_workbook:c,to_sheet:l,from_sheet:u}}();function za(e,t){var n=t||{},r=!!n.WTF;n.WTF=!0;try{var i=ja.to_workbook(e,n);return n.WTF=r,i}catch(o){if(n.WTF=r,!o.message.match(/SYLK bad record ID/)&&r)throw o;return $a.to_workbook(e,t)}}var Va=function(){function e(e,t,n){if(e){Gn(e,e.l||0);var r=n.Enum||j;while(e.l=16&&5==t[14]&&108===t[15])throw new Error("Unsupported Works 3 for Mac file");if(2==t[2])r.Enum=j,e(t,(function(e,t,n){switch(n){case 0:r.vers=e,e>=4096&&(r.qpro=!0);break;case 6:h=e;break;case 204:e&&(a=e);break;case 222:a=e;break;case 15:case 51:r.qpro||(e[1].v=e[1].v.slice(1));case 13:case 14:case 16:14==n&&112==(112&e[2])&&(15&e[2])>1&&(15&e[2])<15&&(e[1].z=r.dateNF||G[14],r.cellDates&&(e[1].t="d",e[1].v=ot(e[1].v))),r.qpro&&e[3]>s&&(i["!ref"]=mr(h),l[o]=i,c.push(o),i=r.dense?[]:{},h={s:{r:0,c:0},e:{r:0,c:0}},s=e[3],o=a||"Sheet"+(s+1),a="");var u=r.dense?(i[e[0].r]||[])[e[0].c]:i[Ar(e[0])];if(u){u.t=e[1].t,u.v=e[1].v,null!=e[1].z&&(u.z=e[1].z),null!=e[1].f&&(u.f=e[1].f);break}r.dense?(i[e[0].r]||(i[e[0].r]=[]),i[e[0].r][e[0].c]=e[1]):i[Ar(e[0])]=e[1];break;default:}}),r);else{if(26!=t[2]&&14!=t[2])throw new Error("Unrecognized LOTUS BOF "+t[2]);r.Enum=Q,14==t[2]&&(r.qpro=!0,t.l=0),e(t,(function(e,t,n){switch(n){case 204:o=e;break;case 22:e[1].v=e[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(e[3]>s&&(i["!ref"]=mr(h),l[o]=i,c.push(o),i=r.dense?[]:{},h={s:{r:0,c:0},e:{r:0,c:0}},s=e[3],o="Sheet"+(s+1)),f>0&&e[0].r>=f)break;r.dense?(i[e[0].r]||(i[e[0].r]=[]),i[e[0].r][e[0].c]=e[1]):i[Ar(e[0])]=e[1],h.e.c=0&&h(+n.codepage),"string"==n.type)throw new Error("Cannot write WK1 to JS string");var r=Zn(),i=gr(e["!ref"]),a=Array.isArray(e),s=[];od(r,0,o(1030)),od(r,6,l(i));for(var c=Math.min(i.e.r,8191),u=i.s.r;u<=c;++u)for(var d=or(u),p=i.s.c;p<=i.e.c;++p){u===i.s.r&&(s[p]=cr(p));var g=s[p]+d,v=a?(e[u]||[])[p]:e[g];if(v&&"z"!=v.t)if("n"==v.t)(0|v.v)==v.v&&v.v>=-32768&&v.v<=32767?od(r,13,A(u,p,v.v)):od(r,14,m(u,p,v.v));else{var b=br(v);od(r,15,f(u,p,b.slice(0,239)))}}return od(r,1),r.end()}function i(e,t){var n=t||{};if(+n.codepage>=0&&h(+n.codepage),"string"==n.type)throw new Error("Cannot write WK3 to JS string");var r=Zn();od(r,0,a(e));for(var i=0,o=0;i8191&&(n=8191),t.write_shift(2,n),t.write_shift(1,i),t.write_shift(1,r),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(1,1),t.write_shift(1,2),t.write_shift(4,0),t.write_shift(4,0),t}function s(e,t,n){var r={s:{c:0,r:0},e:{c:0,r:0}};return 8==t&&n.qpro?(r.s.c=e.read_shift(1),e.l++,r.s.r=e.read_shift(2),r.e.c=e.read_shift(1),e.l++,r.e.r=e.read_shift(2),r):(r.s.c=e.read_shift(2),r.s.r=e.read_shift(2),12==t&&n.qpro&&(e.l+=2),r.e.c=e.read_shift(2),r.e.r=e.read_shift(2),12==t&&n.qpro&&(e.l+=2),65535==r.s.c&&(r.s.c=r.e.c=r.s.r=r.e.r=0),r)}function l(e){var t=Xn(8);return t.write_shift(2,e.s.c),t.write_shift(2,e.s.r),t.write_shift(2,e.e.c),t.write_shift(2,e.e.r),t}function c(e,t,n){var r=[{c:0,r:0},{t:"n",v:0},0,0];return n.qpro&&20768!=n.vers?(r[0].c=e.read_shift(1),r[3]=e.read_shift(1),r[0].r=e.read_shift(2),e.l+=2):(r[2]=e.read_shift(1),r[0].c=e.read_shift(2),r[0].r=e.read_shift(2)),r}function u(e,t,n){var r=e.l+t,i=c(e,t,n);if(i[1].t="s",20768==n.vers){e.l++;var o=e.read_shift(1);return i[1].v=e.read_shift(o,"utf8"),i}return n.qpro&&e.l++,i[1].v=e.read_shift(r-e.l,"cstr"),i}function f(e,t,n){var r=Xn(7+n.length);r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(1,39);for(var i=0;i=128?95:o)}return r.write_shift(1,0),r}function d(e,t,n){var r=c(e,t,n);return r[1].v=e.read_shift(2,"i"),r}function A(e,t,n){var r=Xn(7);return r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(2,n,"i"),r}function p(e,t,n){var r=c(e,t,n);return r[1].v=e.read_shift(8,"f"),r}function m(e,t,n){var r=Xn(13);return r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(8,n,"f"),r}function g(e,t,n){var r=e.l+t,i=c(e,t,n);if(i[1].v=e.read_shift(8,"f"),n.qpro)e.l=r;else{var o=e.read_shift(2);x(e.slice(e.l,e.l+o),i),e.l+=o}return i}function v(e,t,n){var r=32768&t;return t&=-32769,t=(r?e:0)+(t>=8192?t-16384:t),(r?"":"$")+(n?cr(t):or(t))}var b={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},w=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function x(e,t){Gn(e,0);var n=[],r=0,i="",o="",a="",s="";while(e.ln.length)return void console.error("WK1 bad formula parse 0x"+l.toString(16)+":|"+n.join("|")+"|");var f=n.slice(-r);n.length-=r,n.push(b[l][0]+"("+f.join(",")+")")}}}1==n.length?t[1].f=""+n[0]:console.error("WK1 bad formula parse |"+n.join("|")+"|")}function C(e){var t=[{c:0,r:0},{t:"n",v:0},0];return t[0].r=e.read_shift(2),t[3]=e[e.l++],t[0].c=e[e.l++],t}function _(e,t){var n=C(e,t);return n[1].t="s",n[1].v=e.read_shift(t-4,"cstr"),n}function E(e,t,n,r){var i=Xn(6+r.length);i.write_shift(2,e),i.write_shift(1,n),i.write_shift(1,t),i.write_shift(1,39);for(var o=0;o=128?95:a)}return i.write_shift(1,0),i}function B(e,t){var n=C(e,t);n[1].v=e.read_shift(2);var r=n[1].v>>1;if(1&n[1].v)switch(7&r){case 0:r=5e3*(r>>3);break;case 1:r=500*(r>>3);break;case 2:r=(r>>3)/20;break;case 3:r=(r>>3)/200;break;case 4:r=(r>>3)/2e3;break;case 5:r=(r>>3)/2e4;break;case 6:r=(r>>3)/16;break;case 7:r=(r>>3)/64;break}return n[1].v=r,n}function S(e,t){var n=C(e,t),r=e.read_shift(4),i=e.read_shift(4),o=e.read_shift(2);if(65535==o)return 0===r&&3221225472===i?(n[1].t="e",n[1].v=15):0===r&&3489660928===i?(n[1].t="e",n[1].v=42):n[1].v=0,n;var a=32768&o;return o=(32767&o)-16446,n[1].v=(1-2*a)*(i*Math.pow(2,o+32)+r*Math.pow(2,o)),n}function O(e,t,n,r){var i=Xn(14);if(i.write_shift(2,e),i.write_shift(1,n),i.write_shift(1,t),0==r)return i.write_shift(4,0),i.write_shift(4,0),i.write_shift(2,65535),i;var o=0,a=0,s=0,l=0;return r<0&&(o=1,r=-r),a=0|Math.log2(r),r/=Math.pow(2,a-31),l=r>>>0,0==(2147483648&l)&&(r/=2,++a,l=r>>>0),r-=l,l|=2147483648,l>>>=0,r*=Math.pow(2,32),s=r>>>0,i.write_shift(4,s),i.write_shift(4,l),a+=16383+(o?32768:0),i.write_shift(2,a),i}function F(e,t){var n=S(e,14);return e.l+=t-14,n}function N(e,t){var n=C(e,t),r=e.read_shift(4);return n[1].v=r>>6,n}function L(e,t){var n=C(e,t),r=e.read_shift(8,"f");return n[1].v=r,n}function I(e,t){var n=L(e,14);return e.l+=t-10,n}function D(e,t){return 0==e[e.l+t-1]?e.read_shift(t,"cstr"):""}function M(e,t){var n=e[e.l++];n>t-1&&(n=t-1);var r="";while(r.length127?95:i}return n[n.l++]=0,n}var j={0:{n:"BOF",f:Gi},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:s},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:d},14:{n:"NUMBER",f:p},15:{n:"LABEL",f:u},16:{n:"FORMULA",f:g},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:u},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:D},222:{n:"SHEETNAMELP",f:M},65535:{n:""}},Q={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:_},23:{n:"NUMBER17",f:S},24:{n:"NUMBER18",f:B},25:{n:"FORMULA19",f:F},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:U},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:N},38:{n:"??"},39:{n:"NUMBER27",f:L},40:{n:"FORMULA28",f:I},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:D},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:P},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:r,book_to_wk3:i,to_workbook:t}}();function qa(e){var t={},n=e.match(It),r=0,i=!1;if(n)for(;r!=n.length;++r){var o=Pt(n[r]);switch(o[0].replace(/\w*:/g,"")){case"":case" ":t.shadow=1;break;case"":break;case"":case" ":t.outline=1;break;case"":break;case"":case" ":t.strike=1;break;case"":break;case"":case" ":t.u=1;break;case" ":break;case"":case" ":t.b=1;break;case" ":break;case"":case" ":t.i=1;break;case" ":break;case"":case" ":case" ":break;case"":case" ":case" ":break;case"":case" ":case" ":break;case"":case" ":case" ":break;case"":case" ":break;case"":i=!1;break;default:if(47!==o[0].charCodeAt(1)&&!i)throw new Error("Unrecognized rich format "+o[0])}}return t}var Ka=function(){var e=Zt("t"),t=Zt("rPr");function n(n){var r=n.match(e);if(!r)return{t:"s",v:""};var i={t:"s",v:Qt(r[1])},o=n.match(t);return o&&(i.s=qa(o[1])),i}var r=/<(?:\w+:)?r>/g,i=/<\/(?:\w+:)?r>/;return function(e){return e.replace(r,"").split(i).map(n).filter((function(e){return e.v}))}}(),Wa=function(){var e=/(\r\n|\n)/g;function t(e,t,n){var r=[];e.u&&r.push("text-decoration: underline;"),e.uval&&r.push("text-underline-style:"+e.uval+";"),e.sz&&r.push("font-size:"+e.sz+"pt;"),e.outline&&r.push("text-effect: outline;"),e.shadow&&r.push("text-shadow: auto;"),t.push(''),e.b&&(t.push(""),n.push(" ")),e.i&&(t.push(""),n.push(" ")),e.strike&&(t.push(""),n.push(" "));var i=e.valign||"";return"superscript"==i||"super"==i?i="sup":"subscript"==i&&(i="sub"),""!=i&&(t.push("<"+i+">"),n.push(""+i+">")),n.push(" "),e}function n(n){var r=[[],n.v,[]];return n.v?(n.s&&t(n.s,r[0],r[2]),r[0].join("")+r[1].replace(e," ")+r[2].join("")):""}return function(e){return e.map(n).join("")}}(),Ga=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,Ya=/<(?:\w+:)?r>/,Xa=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function Ja(e,t){var n=!t||t.cellHTML,r={};return e?(e.match(/^\s*<(?:\w+:)?t[^>]*>/)?(r.t=Qt(Xt(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),r.r=Xt(e),n&&(r.h=zt(r.t))):e.match(Ya)&&(r.r=Xt(e),r.t=Qt(Xt((e.replace(Xa,"").match(Ga)||[]).join("").replace(It,""))),n&&(r.h=Wa(Ka(r.r)))),r):{t:""}}var Za=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,es=/<(?:\w+:)?(?:si|sstItem)>/g,ts=/<\/(?:\w+:)?(?:si|sstItem)>/;function ns(e,t){var n=[],r="";if(!e)return n;var i=e.match(Za);if(i){r=i[2].replace(es,"").split(ts);for(var o=0;o!=r.length;++o){var a=Ja(r[o].trim(),t);null!=a&&(n[n.length]=a)}i=Pt(i[1]),n.Count=i.count,n.Unique=i.uniqueCount}return n}function rs(e){return[e.read_shift(4),e.read_shift(4)]}function is(e,t){var n=[],r=!1;return Jn(e,(function(e,i,o){switch(o){case 159:n.Count=e[0],n.Unique=e[1];break;case 19:n.push(e);break;case 160:return!0;case 35:r=!0;break;case 36:r=!1;break;default:if(i.T,!r||t.WTF)throw new Error("Unexpected record 0x"+o.toString(16))}})),n}function os(e){if("undefined"!==typeof m)return m.utils.encode(a,e);for(var t=[],n=e.split(""),r=0;r=4&&(e.l+=t-4),n}function ss(e){var t={};return t.id=e.read_shift(0,"lpp4"),t.R=as(e,4),t.U=as(e,4),t.W=as(e,4),t}function ls(e){var t=e.read_shift(4),n=e.l+t-4,r={},i=e.read_shift(4),o=[];while(i-- >0)o.push({t:e.read_shift(4),v:e.read_shift(0,"lpp4")});if(r.name=e.read_shift(0,"lpp4"),r.comps=o,e.l!=n)throw new Error("Bad DataSpaceMapEntry: "+e.l+" != "+n);return r}function cs(e){var t=[];e.l+=4;var n=e.read_shift(4);while(n-- >0)t.push(ls(e));return t}function us(e){var t=[];e.l+=4;var n=e.read_shift(4);while(n-- >0)t.push(e.read_shift(0,"lpp4"));return t}function hs(e){var t={};return e.read_shift(4),e.l+=4,t.id=e.read_shift(0,"lpp4"),t.name=e.read_shift(0,"lpp4"),t.R=as(e,4),t.U=as(e,4),t.W=as(e,4),t}function fs(e){var t=hs(e);if(t.ename=e.read_shift(0,"8lpp4"),t.blksz=e.read_shift(4),t.cmode=e.read_shift(4),4!=e.read_shift(4))throw new Error("Bad !Primary record");return t}function ds(e,t){var n=e.l+t,r={};r.Flags=63&e.read_shift(4),e.l+=4,r.AlgID=e.read_shift(4);var i=!1;switch(r.AlgID){case 26126:case 26127:case 26128:i=36==r.Flags;break;case 26625:i=4==r.Flags;break;case 0:i=16==r.Flags||4==r.Flags||36==r.Flags;break;default:throw"Unrecognized encryption algorithm: "+r.AlgID}if(!i)throw new Error("Encryption Flags/AlgID mismatch");return r.AlgIDHash=e.read_shift(4),r.KeySize=e.read_shift(4),r.ProviderType=e.read_shift(4),e.l+=8,r.CSPName=e.read_shift(n-e.l>>1,"utf16le"),e.l=n,r}function As(e,t){var n={},r=e.l+t;return e.l+=4,n.Salt=e.slice(e.l,e.l+16),e.l+=16,n.Verifier=e.slice(e.l,e.l+16),e.l+=16,e.read_shift(4),n.VerifierHash=e.slice(e.l,r),e.l=r,n}function ps(e){var t=as(e);switch(t.Minor){case 2:return[t.Minor,ms(e,t)];case 3:return[t.Minor,gs(e,t)];case 4:return[t.Minor,vs(e,t)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+t.Minor)}function ms(e){var t=e.read_shift(4);if(36!=(63&t))throw new Error("EncryptionInfo mismatch");var n=e.read_shift(4),r=ds(e,n),i=As(e,e.length-e.l);return{t:"Std",h:r,v:i}}function gs(){throw new Error("File is password-protected: ECMA-376 Extensible")}function vs(e){var t=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];e.l+=4;var n=e.read_shift(e.length-e.l,"utf8"),r={};return n.replace(It,(function(e){var n=Pt(e);switch(Ut(n[0])){case"":break;case"":case"":break;case"":break;case"4||r.Major<2)throw new Error("unrecognized major version code: "+r.Major);n.Flags=e.read_shift(4),t-=4;var i=e.read_shift(4);return t-=4,n.EncryptionHeader=ds(e,i),t-=i,n.EncryptionVerifier=As(e,t),n}function ys(e){var t={},n=t.EncryptionVersionInfo=as(e,4);if(1!=n.Major||1!=n.Minor)throw"unrecognized version code "+n.Major+" : "+n.Minor;return t.Salt=e.read_shift(16),t.EncryptedVerifier=e.read_shift(16),t.EncryptedVerifierHash=e.read_shift(16),t}function ws(e){var t,n,r,i,o,a,s=0,l=os(e),c=l.length+1;for(t=B(c),t[0]=l.length,n=1;n!=c;++n)t[n]=l[n-1];for(n=c-1;n>=0;--n)r=t[n],i=0===(16384&s)?0:1,o=s<<1&32767,a=i|o,s=a^r;return 52811^s}var xs=function(){var e=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],t=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],n=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628],r=function(e){return 255&(e/2|128*e)},i=function(e,t){return r(e^t)},o=function(e){for(var r=t[e.length-1],i=104,o=e.length-1;o>=0;--o)for(var a=e[o],s=0;7!=s;++s)64&a&&(r^=n[i]),a*=2,--i;return r};return function(t){for(var n,r,a,s=os(t),l=o(s),c=s.length,u=B(16),h=0;16!=h;++h)u[h]=0;1===(1&c)&&(n=l>>8,u[c]=i(e[0],n),--c,n=255&l,r=s[s.length-1],u[c]=i(r,n));while(c>0)--c,n=l>>8,u[c]=i(s[c],n),--c,n=255&l,u[c]=i(s[c],n);c=15,a=15-s.length;while(a>0)n=l>>8,u[c]=i(e[a],n),--c,--a,n=255&l,u[c]=i(s[c],n),--c,--a;return u}}(),Cs=function(e,t,n,r,i){var o,a;for(i||(i=t),r||(r=xs(e)),o=0;o!=t.length;++o)a=t[o],a^=r[n],a=255&(a>>5|a<<3),i[o]=a,++n;return[i,n,r]},ks=function(e){var t=0,n=xs(e);return function(e){var r=Cs("",e,t,n);return t=r[1],r[0]}};function _s(e,t,n,r){var i={key:Gi(e),verificationBytes:Gi(e)};return n.password&&(i.verifier=ws(n.password)),r.valid=i.verificationBytes===i.verifier,r.valid&&(r.insitu=ks(n.password)),i}function Es(e,t,n){var r=n||{};return r.Info=e.read_shift(2),e.l-=2,1===r.Info?r.Data=ys(e,t):r.Data=bs(e,t),r}function Bs(e,t,n){var r={Type:n.biff>=8?e.read_shift(2):0};return r.Type?Es(e,t-2,r):_s(e,n.biff>=8?t:t-2,n,r),r}var Ss=function(){function t(t,r){switch(r.type){case"base64":return n(k(t),r);case"binary":return n(t,r);case"buffer":return n(_&&e.isBuffer(t)?t.toString("binary"):O(t),r);case"array":return n(ht(t),r)}throw new Error("Unrecognized type "+r.type)}function n(e,t){var n=t||{},r=n.dense?[]:{},i=e.match(/\\trowd.*?\\row\b/g);if(!i.length)throw new Error("RTF missing table");var o={s:{c:0,r:0},e:{c:0,r:i.length-1}};return i.forEach((function(e,t){Array.isArray(r)&&(r[t]=[]);var n,i=/\\\w+\b/g,a=0,s=-1;while(n=i.exec(e)){switch(n[0]){case"\\cell":var l=e.slice(a,i.lastIndex-n[0].length);if(" "==l[0]&&(l=l.slice(1)),++s,l.length){var c={v:l,t:"s"};Array.isArray(r)?r[t][s]=c:r[Ar({r:t,c:s})]=c}break}a=i.lastIndex}s>o.e.c&&(o.e.c=s)})),r["!ref"]=mr(o),r}function r(e,n){return yr(t(e,n),n)}function i(e){for(var t,n=["{\\rtf1\\ansi"],r=gr(e["!ref"]),i=Array.isArray(e),o=r.s.r;o<=r.e.r;++o){n.push("\\trowd\\trautofit1");for(var a=r.s.c;a<=r.e.c;++a)n.push("\\cellx"+(a+1));for(n.push("\\pard\\intbl"),a=r.s.c;a<=r.e.c;++a){var s=Ar({r:o,c:a});t=i?(e[o]||[])[a]:e[s],t&&(null!=t.v||t.f&&!t.F)&&(n.push(" "+(t.w||(br(t),t.w))),n.push("\\cell"))}n.push("\\pard\\intbl\\row")}return n.join("")+"}"}return{to_workbook:r,to_sheet:t,from_sheet:i}}();function Ts(e){var t=e.slice("#"===e[0]?1:0).slice(0,6);return[parseInt(t.slice(0,2),16),parseInt(t.slice(2,4),16),parseInt(t.slice(4,6),16)]}function Os(e){for(var t=0,n=1;3!=t;++t)n=256*n+(e[t]>255?255:e[t]<0?0:e[t]);return n.toString(16).toUpperCase().slice(1)}function Fs(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(t,n,r),o=Math.min(t,n,r),a=i-o;if(0===a)return[0,0,t];var s=0,l=0,c=i+o;switch(l=a/(c>1?2-c:c),i){case t:s=((n-r)/a+6)%6;break;case n:s=(r-t)/a+2;break;case r:s=(t-n)/a+4;break}return[s/6,l,c/2]}function Ns(e){var t,n=e[0],r=e[1],i=e[2],o=2*r*(i<.5?i:1-i),a=i-o/2,s=[a,a,a],l=6*n;if(0!==r)switch(0|l){case 0:case 6:t=o*l,s[0]+=o,s[1]+=t;break;case 1:t=o*(2-l),s[0]+=t,s[1]+=o;break;case 2:t=o*(l-2),s[1]+=o,s[2]+=t;break;case 3:t=o*(4-l),s[1]+=t,s[2]+=o;break;case 4:t=o*(l-4),s[2]+=o,s[0]+=t;break;case 5:t=o*(6-l),s[2]+=t,s[0]+=o;break}for(var c=0;3!=c;++c)s[c]=Math.round(255*s[c]);return s}function Ls(e,t){if(0===t)return e;var n=Fs(Ts(e));return n[2]=t<0?n[2]*(1+t):1-(1-n[2])*(1-t),Os(Ns(n))}var Is=6,Ds=15,Ms=1,Ps=Is;function Us(e){return Math.floor((e+Math.round(128/Ps)/256)*Ps)}function Rs(e){return Math.floor((e-5)/Ps*100+.5)/100}function js(e){return Math.round((e*Ps+5)/Ps*256)/256}function Qs(e){return js(Rs(Us(e)))}function Hs(e){var t=Math.abs(e-Qs(e)),n=Ps;if(t>.005)for(Ps=Ms;Ps":case"":break;case"":case" ":i={},n.diagonalUp&&(i.diagonalUp=qt(n.diagonalUp)),n.diagonalDown&&(i.diagonalDown=qt(n.diagonalDown)),t.Borders.push(i);break;case" ":break;case" ":break;case"":break;case" ":break;case" ":break;case"":break;case" ":break;case" ":break;case"":break;case" ":break;case" ":break;case"":break;case" ":break;case"":case" ":break;case" ":break;case"":case" ":break;case" ":break;case"":case" ":break;case" ":break;case"":case" ":break;case" ":break;case"":case" ":break;case" ":break;case"":break;case" ":case" ":break;case"":case" ":break;case"":o=!1;break;default:if(r&&r.WTF&&!o)throw new Error("unrecognized "+n[0]+" in borders")}}))}function Ys(e,t,n,r){t.Fills=[];var i={},o=!1;(e[0].match(It)||[]).forEach((function(e){var n=Pt(e);switch(Ut(n[0])){case"":case" ":break;case"":case" ":i={},t.Fills.push(i);break;case" ":break;case"":break;case"":t.Fills.push(i),i={};break;case"":n.patternType&&(i.patternType=n.patternType);break;case" ":case" ":break;case" ":case"":break;case" ":case"":break;case" ":break;case"":break;case" ":break;case"":break;case"":case" ":break;case"":o=!1;break;default:if(r&&r.WTF&&!o)throw new Error("unrecognized "+n[0]+" in fills")}}))}function Xs(e,t,n,r){t.Fonts=[];var i={},o=!1;(e[0].match(It)||[]).forEach((function(e){var a=Pt(e);switch(Ut(a[0])){case"":case" ":break;case"":break;case" ":case" ":t.Fonts.push(i),i={};break;case" ":case"":break;case" ":i.bold=1;break;case" ":i.italic=1;break;case" ":i.underline=1;break;case" ":i.strike=1;break;case" ":i.outline=1;break;case" ":i.shadow=1;break;case" ":i.condense=1;break;case" ":i.extend=1;break;case" ":case"":break;case" ":case"":break;case" ":case"":break;case" ":case"":break;case" ":case"":break;case"":o=!1;break;case"":case" ":break;case"":o=!1;break;default:if(r&&r.WTF&&!o)throw new Error("unrecognized "+a[0]+" in fonts")}}))}function Js(e,t,n){t.NumberFmt=[];for(var r=Je(G),i=0;i":case" ":case"":break;case"0){if(l>392){for(l=392;l>60;--l)if(null==t.NumberFmt[l])break;t.NumberFmt[l]=s}He(s,l)}break;case" ":break;default:if(n.WTF)throw new Error("unrecognized "+a[0]+" in numFmts")}}}var Zs=["numFmtId","fillId","fontId","borderId","xfId"],el=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];function tl(e,t,n){var r;t.CellXf=[];var i=!1;(e[0].match(It)||[]).forEach((function(e){var o=Pt(e),a=0;switch(Ut(o[0])){case"":case" ":case" ":break;case" ":for(r=o,delete r[0],a=0;a392)for(a=392;a>60;--a)if(t.NumberFmt[r.numFmtId]==t.NumberFmt[a]){r.numFmtId=a;break}t.CellXf.push(r);break;case"":break;case" ":var s={};o.vertical&&(s.vertical=o.vertical),o.horizontal&&(s.horizontal=o.horizontal),null!=o.textRotation&&(s.textRotation=o.textRotation),o.indent&&(s.indent=o.indent),o.wrapText&&(s.wrapText=qt(o.wrapText)),r.alignment=s;break;case"":break;case"":case" ":break;case"":i=!1;break;case"":case" ":break;case"":i=!1;break;default:if(n&&n.WTF&&!i)throw new Error("unrecognized "+o[0]+" in cellXfs")}}))}var nl=function(){var e=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,t=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,n=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,r=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,i=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(o,a,s){var l,c={};return o?(o=o.replace(//gm,"").replace(//gm,""),(l=o.match(e))&&Js(l,c,s),(l=o.match(r))&&Xs(l,c,a,s),(l=o.match(n))&&Ys(l,c,a,s),(l=o.match(i))&&Gs(l,c,a,s),(l=o.match(t))&&tl(l,c,s),c):c}}();function rl(e,t){var n=e.read_shift(2),r=kr(e,t-2);return[n,r]}function il(e,t,n){var r={};r.sz=e.read_shift(2)/20;var i=Rr(e,2,n);i.fItalic&&(r.italic=1),i.fCondense&&(r.condense=1),i.fExtend&&(r.extend=1),i.fShadow&&(r.shadow=1),i.fOutline&&(r.outline=1),i.fStrikeout&&(r.strike=1);var o=e.read_shift(2);switch(700===o&&(r.bold=1),e.read_shift(2)){case 1:r.vertAlign="superscript";break;case 2:r.vertAlign="subscript";break}var a=e.read_shift(1);0!=a&&(r.underline=a);var s=e.read_shift(1);s>0&&(r.family=s);var l=e.read_shift(1);switch(l>0&&(r.charset=l),e.l++,r.color=Ur(e,8),e.read_shift(1)){case 1:r.scheme="major";break;case 2:r.scheme="minor";break}return r.name=kr(e,t-21),r}var ol=Yn;function al(e,t){var n=e.l+t,r=e.read_shift(2),i=e.read_shift(2);return e.l=n,{ixfe:r,numFmtId:i}}var sl=Yn;function ll(e,t,n){var r={NumberFmt:[]};for(var i in G)r.NumberFmt[i]=G[i];r.CellXf=[],r.Fonts=[];var o=[],a=!1;return Jn(e,(function(e,i,s){switch(s){case 44:r.NumberFmt[e[0]]=e[1],He(e[1],e[0]);break;case 43:r.Fonts.push(e),null!=e.color.theme&&t&&t.themeElements&&t.themeElements.clrScheme&&(e.color.rgb=Ls(t.themeElements.clrScheme[e.color.theme].rgb,e.color.tint||0));break;case 1025:break;case 45:break;case 46:break;case 47:617==o[o.length-1]&&r.CellXf.push(e);break;case 48:case 507:case 572:case 475:break;case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 35:a=!0;break;case 36:a=!1;break;case 37:o.push(s),a=!0;break;case 38:o.pop(),a=!1;break;default:if(i.T>0)o.push(s);else if(i.T<0)o.pop();else if(!a||n.WTF&&37!=o[o.length-1])throw new Error("Unexpected record 0x"+s.toString(16))}})),r}var cl=["","","","","","","","","","","",""];function ul(e,t,n){t.themeElements.clrScheme=[];var r={};(e[0].match(It)||[]).forEach((function(e){var i=Pt(e);switch(i[0]){case"":break;case"":case"":case"":case" ":case"":case" ":case"":case" ":case"":case" ":case"":case" ":case"":case" ":case"":case" ":case"":case" ":case"":case" ":case"":case" ":case"":case" ":"/"===i[0].charAt(1)?(t.themeElements.clrScheme[cl.indexOf(i[0])]=r,r={}):r.name=i[0].slice(3,i[0].length-1);break;default:if(n&&n.WTF)throw new Error("Unrecognized "+i[0]+" in clrScheme")}}))}function hl(){}function fl(){}var dl=/]*)>[\s\S]*<\/a:clrScheme>/,Al=/]*)>[\s\S]*<\/a:fontScheme>/,pl=/]*)>[\s\S]*<\/a:fmtScheme>/;function ml(e,t,n){var r;t.themeElements={},[["clrScheme",dl,ul],["fontScheme",Al,hl],["fmtScheme",pl,fl]].forEach((function(i){if(!(r=e.match(i[1])))throw new Error(i[0]+" not found in themeElements");i[2](r,t,n)}))}var gl=/]*)>[\s\S]*<\/a:themeElements>/;function vl(e,t){var n;e&&0!==e.length||(e=bl());var r={};if(!(n=e.match(gl)))throw new Error("themeElements not found in theme");return ml(n[0],r,t),r.raw=e,r}function bl(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&"string"==typeof e.raw)return e.raw;var n=[Ot];return n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=" ",n[n.length]='',n[n.length]="",n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=" ",n[n.length]="",n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=" ",n[n.length]=" ",n[n.length]='',n[n.length]="",n[n.length]=' ',n[n.length]='',n[n.length]="",n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=" ",n[n.length]=' ',n[n.length]=" ",n[n.length]='',n[n.length]="",n[n.length]=' ',n[n.length]=' ',n[n.length]=" ",n[n.length]=' ',n[n.length]=" ",n[n.length]=" ",n[n.length]="",n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=" ",n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]=' ',n[n.length]=" ",n[n.length]=" ",n[n.length]="",n[n.length]="",n[n.length]=' ',n[n.length]=" ",n[n.length]=" ",n[n.length]="",n[n.length]="",n[n.length]=' ',n[n.length]=" ",n[n.length]=' ',n[n.length]=' ',n[n.length]=" ",n[n.length]=" ",n[n.length]="",n[n.length]=' ',n[n.length]='',n[n.length]="",n[n.length]=' ',n[n.length]=' ',n[n.length]=' ',n[n.length]=" ",n[n.length]=' ',n[n.length]=" ",n[n.length]='',n[n.length]="",n[n.length]=' ',n[n.length]=' ',n[n.length]=" ",n[n.length]=' ',n[n.length]=" ",n[n.length]=" ",n[n.length]=" ",n[n.length]=" ",n[n.length]="",n[n.length]="",n[n.length]=' ',n[n.length]=" ",n[n.length]="",n[n.length]=' ',n[n.length]=" ",n[n.length]=" ",n[n.length]=" ",n[n.length]=" ",n.join("")}function yl(e,t,n){var r=e.l+t,i=e.read_shift(4);if(124226!==i)if(n.cellStyles){var o,a=e.slice(e.l);e.l=r;try{o=St(a,{type:"array"})}catch(l){return}var s=kt(o,"theme/theme/theme1.xml",!0);if(s)return vl(s,n)}else e.l=r}function wl(e){return e.read_shift(4)}function xl(e){var t={};switch(t.xclrType=e.read_shift(2),t.nTintShade=e.read_shift(2),t.xclrType){case 0:e.l+=4;break;case 1:t.xclrValue=Cl(e,4);break;case 2:t.xclrValue=co(e,4);break;case 3:t.xclrValue=wl(e,4);break;case 4:e.l+=4;break}return e.l+=8,t}function Cl(e,t){return Yn(e,t)}function kl(e,t){return Yn(e,t)}function _l(e){var t=e.read_shift(2),n=e.read_shift(2)-4,r=[t];switch(t){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:r[1]=xl(e,n);break;case 6:r[1]=kl(e,n);break;case 14:case 15:r[1]=e.read_shift(1===n?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+t+" "+n)}return r}function El(e,t){var n=e.l+t;e.l+=2;var r=e.read_shift(2);e.l+=2;var i=e.read_shift(2),o=[];while(i-- >0)o.push(_l(e,n-e.l));return{ixfe:r,ext:o}}function Bl(e,t){t.forEach((function(e){switch(e[0]){case 4:break;case 5:break;case 6:break;case 7:break;case 8:break;case 9:break;case 10:break;case 11:break;case 13:break;case 14:break;case 15:break}}))}function Sl(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:kr(e,t-8)}}function Tl(e){var t=[],n=e.read_shift(4);while(n-- >0)t.push([e.read_shift(4),e.read_shift(4)]);return t}function Ol(e){return e.l+=4,0!=e.read_shift(4)}function Fl(e,t,n){var r={Types:[],Cell:[],Value:[]},i=n||{},o=[],a=!1,s=2;return Jn(e,(function(e,t,n){switch(n){case 335:r.Types.push({name:e.name});break;case 51:e.forEach((function(e){1==s?r.Cell.push({type:r.Types[e[0]-1].name,index:e[1]}):0==s&&r.Value.push({type:r.Types[e[0]-1].name,index:e[1]})}));break;case 337:s=e?1:0;break;case 338:s=2;break;case 35:o.push(n),a=!0;break;case 36:o.pop(),a=!1;break;default:if(t.T);else if(!a||i.WTF&&35!=o[o.length-1])throw new Error("Unexpected record 0x"+n.toString(16))}})),r}function Nl(e,t,n){var r={Types:[],Cell:[],Value:[]};if(!e)return r;var i,o=!1,a=2;return e.replace(It,(function(e){var t=Pt(e);switch(Ut(t[0])){case"":break;case"":break;case"":break;case"":break;case"":break;case" ":break;case"":break;case"":a=2;break;case"":a=2;break;case"":case" ":case" ":break;case"":o=!1;break;case"":case"":break;case"]*r:id="([^"]*)"/)||["",""])[1];return t["!id"][n].Target}function Rl(e,t,n,r){var i,o=Array.isArray(e);t.forEach((function(t){var a=dr(t.ref);if(o?(e[a.r]||(e[a.r]=[]),i=e[a.r][a.c]):i=e[t.ref],!i){i={t:"z"},o?e[a.r][a.c]=i:e[t.ref]=i;var s=gr(e["!ref"]||"BDWGO1000001:A1");s.s.r>a.r&&(s.s.r=a.r),s.e.ra.c&&(s.s.c=a.c),s.e.c=0;--u){if(!n&&i.c[u].T)return;n&&!i.c[u].T&&i.c.splice(u,1)}if(n&&r)for(u=0;u /))return[];var n=[],r=[],i=e.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);i&&i[1]&&i[1].split(/<\/\w*:?author>/).forEach((function(e){if(""!==e&&""!==e.trim()){var t=e.match(/<(?:\w+:)?author[^>]*>(.*)/);t&&n.push(t[1])}}));var o=e.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return o&&o[1]&&o[1].split(/<\/\w*:?comment>/).forEach((function(e){if(""!==e&&""!==e.trim()){var i=e.match(/<(?:\w+:)?comment[^>]*>/);if(i){var o=Pt(i[0]),a={author:o.authorId&&n[o.authorId]||"sheetjsghost",ref:o.ref,guid:o.guid},s=dr(o.ref);if(!(t.sheetRows&&t.sheetRows<=s.r)){var l=e.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),c=!!l&&!!l[1]&&Ja(l[1])||{r:"",t:"",h:""};a.r=c.r," "==c.r&&(c.t=c.h=""),a.t=(c.t||"").replace(/\r\n/g,"\n").replace(/\r/g,"\n"),t.cellHTML&&(a.h=c.h),r.push(a)}}}})),r}function Ql(e,t){var n=[],r=!1,i={},o=0;return e.replace(It,(function(a,s){var l=Pt(a);switch(Ut(l[0])){case"":break;case"":null!=i.t&&n.push(i);break;case"":case"":i.t=e.slice(o,s).replace(/\r\n/g,"\n").replace(/\r/g,"\n");break;case"":r=!0;break;case" ":r=!1;break;case"":case" ":case" ":break;case"":r=!1;break;default:if(!r&&t.WTF)throw new Error("unrecognized "+l[0]+" in threaded comments")}return a})),n}function Hl(e,t){var n=[],r=!1;return e.replace(It,(function(e){var i=Pt(e);switch(Ut(i[0])){case"":break;case"":break;case"":case" ":case" ":break;case"":r=!1;break;default:if(!r&&t.WTF)throw new Error("unrecognized "+i[0]+" in threaded comments")}return e})),n}function $l(e){var t={};t.iauthor=e.read_shift(4);var n=Mr(e,16);return t.rfx=n.s,t.ref=Ar(n.s),e.l+=16,t}var zl=kr;function Vl(e,t){var n=[],r=[],i={},o=!1;return Jn(e,(function(e,a,s){switch(s){case 632:r.push(e);break;case 635:i=e;break;case 637:i.t=e.t,i.h=e.h,i.r=e.r;break;case 636:if(i.author=r[i.iauthor],delete i.iauthor,t.sheetRows&&i.rfx&&t.sheetRows<=i.rfx.r)break;i.t||(i.t=""),delete i.rfx,n.push(i);break;case 3072:break;case 35:o=!0;break;case 36:o=!1;break;case 37:break;case 38:break;default:if(a.T);else if(!o||t.WTF)throw new Error("Unexpected record 0x"+s.toString(16))}})),n}var ql="application/vnd.ms-office.vbaProject";function Kl(e){var t=Ge.utils.cfb_new({root:"R"});return e.FullPaths.forEach((function(n,r){if("/"!==n.slice(-1)&&n.match(/_VBA_PROJECT_CUR/)){var i=n.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");Ge.utils.cfb_add(t,i,e.FileIndex[r].content)}})),Ge.write(t)}function Wl(){return{"!type":"dialog"}}function Gl(){return{"!type":"dialog"}}function Yl(){return{"!type":"macro"}}function Xl(){return{"!type":"macro"}}var Jl=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function n(e,n,r,i){var o=!1,a=!1;0==r.length?a=!0:"["==r.charAt(0)&&(a=!0,r=r.slice(1,-1)),0==i.length?o=!0:"["==i.charAt(0)&&(o=!0,i=i.slice(1,-1));var s=r.length>0?0|parseInt(r,10):0,l=i.length>0?0|parseInt(i,10):0;return o?l+=t.c:--l,a?s+=t.r:--s,n+(o?"":"$")+cr(l)+(a?"":"$")+or(s)}return function(r,i){return t=i,r.replace(e,n)}}(),Zl=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,ec=function(){return function(e,t){return e.replace(Zl,(function(e,n,r,i,o,a){var s=lr(i)-(r?0:t.c),l=ir(a)-(o?0:t.r),c=0==l?"":o?l+1:"["+l+"]",u=0==s?"":r?s+1:"["+s+"]";return n+"R"+c+"C"+u}))}}();function tc(e,t){return e.replace(Zl,(function(e,n,r,i,o,a){return n+("$"==r?r+i:cr(lr(i)+t.c))+("$"==o?o+a:or(ir(a)+t.r))}))}function nc(e,t,n){var r=pr(t),i=r.s,o=dr(n),a={r:o.r-i.r,c:o.c-i.c};return tc(e,a)}function rc(e){return 1!=e.length}function ic(e){return e.replace(/_xlfn\./g,"")}function oc(e){e.l+=1}function ac(e,t){var n=e.read_shift(1==t?1:2);return[16383&n,n>>14&1,n>>15&1]}function sc(e,t,n){var r=2;if(n){if(n.biff>=2&&n.biff<=5)return lc(e,t,n);12==n.biff&&(r=4)}var i=e.read_shift(r),o=e.read_shift(r),a=ac(e,2),s=ac(e,2);return{s:{r:i,c:a[0],cRel:a[1],rRel:a[2]},e:{r:o,c:s[0],cRel:s[1],rRel:s[2]}}}function lc(e){var t=ac(e,2),n=ac(e,2),r=e.read_shift(1),i=e.read_shift(1);return{s:{r:t[0],c:r,cRel:t[1],rRel:t[2]},e:{r:n[0],c:i,cRel:n[1],rRel:n[2]}}}function cc(e,t,n){if(n.biff<8)return lc(e,t,n);var r=e.read_shift(12==n.biff?4:2),i=e.read_shift(12==n.biff?4:2),o=ac(e,2),a=ac(e,2);return{s:{r:r,c:o[0],cRel:o[1],rRel:o[2]},e:{r:i,c:a[0],cRel:a[1],rRel:a[2]}}}function uc(e,t,n){if(n&&n.biff>=2&&n.biff<=5)return hc(e,t,n);var r=e.read_shift(n&&12==n.biff?4:2),i=ac(e,2);return{r:r,c:i[0],cRel:i[1],rRel:i[2]}}function hc(e){var t=ac(e,2),n=e.read_shift(1);return{r:t[0],c:n,cRel:t[1],rRel:t[2]}}function fc(e){var t=e.read_shift(2),n=e.read_shift(2);return{r:t,c:255&n,fQuoted:!!(16384&n),cRel:n>>15,rRel:n>>15}}function dc(e,t,n){var r=n&&n.biff?n.biff:8;if(r>=2&&r<=5)return Ac(e,t,n);var i=e.read_shift(r>=12?4:2),o=e.read_shift(2),a=(16384&o)>>14,s=(32768&o)>>15;if(o&=16383,1==s)while(i>524287)i-=1048576;if(1==a)while(o>8191)o-=16384;return{r:i,c:o,cRel:a,rRel:s}}function Ac(e){var t=e.read_shift(2),n=e.read_shift(1),r=(32768&t)>>15,i=(16384&t)>>14;return t&=16383,1==r&&t>=8192&&(t-=16384),1==i&&n>=128&&(n-=256),{r:t,c:n,cRel:i,rRel:r}}function pc(e,t,n){var r=(96&e[e.l++])>>5,i=sc(e,n.biff>=2&&n.biff<=5?6:8,n);return[r,i]}function mc(e,t,n){var r=(96&e[e.l++])>>5,i=e.read_shift(2,"i"),o=8;if(n)switch(n.biff){case 5:e.l+=12,o=6;break;case 12:o=12;break}var a=sc(e,o,n);return[r,i,a]}function gc(e,t,n){var r=(96&e[e.l++])>>5;return e.l+=n&&n.biff>8?12:n.biff<8?6:8,[r]}function vc(e,t,n){var r=(96&e[e.l++])>>5,i=e.read_shift(2),o=8;if(n)switch(n.biff){case 5:e.l+=12,o=6;break;case 12:o=12;break}return e.l+=o,[r,i]}function bc(e,t,n){var r=(96&e[e.l++])>>5,i=cc(e,t-1,n);return[r,i]}function yc(e,t,n){var r=(96&e[e.l++])>>5;return e.l+=2==n.biff?6:12==n.biff?14:7,[r]}function wc(e){var t=1&e[e.l+1],n=1;return e.l+=4,[t,n]}function xc(e,t,n){e.l+=2;for(var r=e.read_shift(n&&2==n.biff?1:2),i=[],o=0;o<=r;++o)i.push(e.read_shift(n&&2==n.biff?1:2));return i}function Cc(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=2,[r,e.read_shift(n&&2==n.biff?1:2)]}function kc(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=2,[r,e.read_shift(n&&2==n.biff?1:2)]}function _c(e){var t=255&e[e.l+1]?1:0;return e.l+=2,[t,e.read_shift(2)]}function Ec(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=n&&2==n.biff?3:4,[r]}function Bc(e){var t=e.read_shift(1),n=e.read_shift(1);return[t,n]}function Sc(e){return e.read_shift(2),Bc(e,2)}function Tc(e){return e.read_shift(2),Bc(e,2)}function Oc(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var i=uc(e,0,n);return[r,i]}function Fc(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var i=dc(e,0,n);return[r,i]}function Nc(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var i=e.read_shift(2);n&&5==n.biff&&(e.l+=12);var o=uc(e,0,n);return[r,i,o]}function Lc(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var i=e.read_shift(n&&n.biff<=3?1:2);return[Ku[i],qu[i],r]}function Ic(e,t,n){var r=e[e.l++],i=e.read_shift(1),o=n&&n.biff<=3?[88==r?-1:0,e.read_shift(1)]:Dc(e);return[i,(0===o[0]?qu:Vu)[o[1]]]}function Dc(e){return[e[e.l+1]>>7,32767&e.read_shift(2)]}function Mc(e,t,n){e.l+=n&&2==n.biff?3:4}function Pc(e,t,n){if(e.l++,n&&12==n.biff)return[e.read_shift(4,"i"),0];var r=e.read_shift(2),i=e.read_shift(n&&2==n.biff?1:2);return[r,i]}function Uc(e){return e.l++,ci[e.read_shift(1)]}function Rc(e){return e.l++,e.read_shift(2)}function jc(e){return e.l++,0!==e.read_shift(1)}function Qc(e){return e.l++,Pr(e,8)}function Hc(e,t,n){return e.l++,Ji(e,t-1,n)}function $c(e,t){var n=[e.read_shift(1)];if(12==t)switch(n[0]){case 2:n[0]=4;break;case 4:n[0]=16;break;case 0:n[0]=1;break;case 1:n[0]=2;break}switch(n[0]){case 4:n[1]=Wi(e,1)?"TRUE":"FALSE",12!=t&&(e.l+=7);break;case 37:case 16:n[1]=ci[e[e.l]],e.l+=12==t?4:8;break;case 0:e.l+=8;break;case 1:n[1]=Pr(e,8);break;case 2:n[1]=no(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+n[0])}return n}function zc(e,t,n){for(var r=e.read_shift(12==n.biff?4:2),i=[],o=0;o!=r;++o)i.push((12==n.biff?Mr:vo)(e,8));return i}function Vc(e,t,n){var r=0,i=0;12==n.biff?(r=e.read_shift(4),i=e.read_shift(4)):(i=1+e.read_shift(1),r=1+e.read_shift(2)),n.biff>=2&&n.biff<8&&(--r,0==--i&&(i=256));for(var o=0,a=[];o!=r&&(a[o]=[]);++o)for(var s=0;s!=i;++s)a[o][s]=$c(e,n.biff);return a}function qc(e,t,n){var r=e.read_shift(1)>>>5&3,i=!n||n.biff>=8?4:2,o=e.read_shift(i);switch(n.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12;break}return[r,0,o]}function Kc(e,t,n){if(5==n.biff)return Wc(e,t,n);var r=e.read_shift(1)>>>5&3,i=e.read_shift(2),o=e.read_shift(4);return[r,i,o]}function Wc(e){var t=e.read_shift(1)>>>5&3,n=e.read_shift(2,"i");e.l+=8;var r=e.read_shift(2);return e.l+=12,[t,n,r]}function Gc(e,t,n){var r=e.read_shift(1)>>>5&3;e.l+=n&&2==n.biff?3:4;var i=e.read_shift(n&&2==n.biff?1:2);return[r,i]}function Yc(e,t,n){var r=e.read_shift(1)>>>5&3,i=e.read_shift(n&&2==n.biff?1:2);return[r,i]}function Xc(e,t,n){var r=e.read_shift(1)>>>5&3;return e.l+=4,n.biff<8&&e.l--,12==n.biff&&(e.l+=2),[r]}function Jc(e,t,n){var r=(96&e[e.l++])>>5,i=e.read_shift(2),o=4;if(n)switch(n.biff){case 5:o=15;break;case 12:o=6;break}return e.l+=o,[r,i]}var Zc=Yn,eu=Yn,tu=Yn;function nu(e,t,n){return e.l+=2,[fc(e,4,n)]}function ru(e){return e.l+=6,[]}var iu=nu,ou=ru,au=ru,su=nu;function lu(e){return e.l+=2,[Gi(e),1&e.read_shift(2)]}var cu=nu,uu=lu,hu=ru,fu=nu,du=nu,Au=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function pu(e){e.l+=2;var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(4),i=e.read_shift(2),o=e.read_shift(2),a=Au[n>>2&31];return{ixti:t,coltype:3&n,rt:a,idx:r,c:i,C:o}}function mu(e){return e.l+=2,[e.read_shift(4)]}function gu(e,t,n){return e.l+=5,e.l+=2,e.l+=2==n.biff?1:4,["PTGSHEET"]}function vu(e,t,n){return e.l+=2==n.biff?4:5,["PTGENDSHEET"]}function bu(e){var t=e.read_shift(1)>>>5&3,n=e.read_shift(2);return[t,n]}function yu(e){var t=e.read_shift(1)>>>5&3,n=e.read_shift(2);return[t,n]}function wu(e){return e.l+=4,[0,0]}var xu={1:{n:"PtgExp",f:Pc},2:{n:"PtgTbl",f:tu},3:{n:"PtgAdd",f:oc},4:{n:"PtgSub",f:oc},5:{n:"PtgMul",f:oc},6:{n:"PtgDiv",f:oc},7:{n:"PtgPower",f:oc},8:{n:"PtgConcat",f:oc},9:{n:"PtgLt",f:oc},10:{n:"PtgLe",f:oc},11:{n:"PtgEq",f:oc},12:{n:"PtgGe",f:oc},13:{n:"PtgGt",f:oc},14:{n:"PtgNe",f:oc},15:{n:"PtgIsect",f:oc},16:{n:"PtgUnion",f:oc},17:{n:"PtgRange",f:oc},18:{n:"PtgUplus",f:oc},19:{n:"PtgUminus",f:oc},20:{n:"PtgPercent",f:oc},21:{n:"PtgParen",f:oc},22:{n:"PtgMissArg",f:oc},23:{n:"PtgStr",f:Hc},26:{n:"PtgSheet",f:gu},27:{n:"PtgEndSheet",f:vu},28:{n:"PtgErr",f:Uc},29:{n:"PtgBool",f:jc},30:{n:"PtgInt",f:Rc},31:{n:"PtgNum",f:Qc},32:{n:"PtgArray",f:yc},33:{n:"PtgFunc",f:Lc},34:{n:"PtgFuncVar",f:Ic},35:{n:"PtgName",f:qc},36:{n:"PtgRef",f:Oc},37:{n:"PtgArea",f:pc},38:{n:"PtgMemArea",f:Gc},39:{n:"PtgMemErr",f:Zc},40:{n:"PtgMemNoMem",f:eu},41:{n:"PtgMemFunc",f:Yc},42:{n:"PtgRefErr",f:Xc},43:{n:"PtgAreaErr",f:gc},44:{n:"PtgRefN",f:Fc},45:{n:"PtgAreaN",f:bc},46:{n:"PtgMemAreaN",f:bu},47:{n:"PtgMemNoMemN",f:yu},57:{n:"PtgNameX",f:Kc},58:{n:"PtgRef3d",f:Nc},59:{n:"PtgArea3d",f:mc},60:{n:"PtgRefErr3d",f:Jc},61:{n:"PtgAreaErr3d",f:vc},255:{}},Cu={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},ku={1:{n:"PtgElfLel",f:lu},2:{n:"PtgElfRw",f:fu},3:{n:"PtgElfCol",f:iu},6:{n:"PtgElfRwV",f:du},7:{n:"PtgElfColV",f:su},10:{n:"PtgElfRadical",f:cu},11:{n:"PtgElfRadicalS",f:hu},13:{n:"PtgElfColS",f:ou},15:{n:"PtgElfColSV",f:au},16:{n:"PtgElfRadicalLel",f:uu},25:{n:"PtgList",f:pu},29:{n:"PtgSxName",f:mu},255:{}},_u={0:{n:"PtgAttrNoop",f:wu},1:{n:"PtgAttrSemi",f:Ec},2:{n:"PtgAttrIf",f:kc},4:{n:"PtgAttrChoose",f:xc},8:{n:"PtgAttrGoto",f:Cc},16:{n:"PtgAttrSum",f:Mc},32:{n:"PtgAttrBaxcel",f:wc},33:{n:"PtgAttrBaxcel",f:wc},64:{n:"PtgAttrSpace",f:Sc},65:{n:"PtgAttrSpaceSemi",f:Tc},128:{n:"PtgAttrIfError",f:_c},255:{}};function Eu(e,t,n,r){if(r.biff<8)return Yn(e,t);for(var i=e.l+t,o=[],a=0;a!==n.length;++a)switch(n[a][0]){case"PtgArray":n[a][1]=Vc(e,0,r),o.push(n[a][1]);break;case"PtgMemArea":n[a][2]=zc(e,n[a][1],r),o.push(n[a][2]);break;case"PtgExp":r&&12==r.biff&&(n[a][1][1]=e.read_shift(4),o.push(n[a][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+n[a][0];default:break}return t=i-e.l,0!==t&&o.push(Yn(e,t)),o}function Bu(e,t,n){var r,i,o=e.l+t,a=[];while(o!=e.l)t=o-e.l,i=e[e.l],r=xu[i]||xu[Cu[i]],24!==i&&25!==i||(r=(24===i?ku:_u)[e[e.l+1]]),r&&r.f?a.push([r.n,r.f(e,t,n)]):Yn(e,t);return a}function Su(e){for(var t=[],n=0;n=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function Ou(e,t){if(!e&&!(t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}function Fu(e,t,n){if(!e)return"SH33TJSERR0";if(n.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var r=e.XTI[t];if(n.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),0==t?"":e.XTI[t-1];if(!r)return"SH33TJSERR1";var i="";if(n.biff>8)switch(e[r[0]][0]){case 357:return i=-1==r[1]?"#REF":e.SheetNames[r[1]],r[1]==r[2]?i:i+":"+e.SheetNames[r[2]];case 358:return null!=n.SID?e.SheetNames[n.SID]:"SH33TJSSAME"+e[r[0]][0];case 355:default:return"SH33TJSSRC"+e[r[0]][0]}switch(e[r[0]][0][0]){case 1025:return i=-1==r[1]?"#REF":e.SheetNames[r[1]]||"SH33TJSERR3",r[1]==r[2]?i:i+":"+e.SheetNames[r[2]];case 14849:return e[r[0]].slice(1).map((function(e){return e.Name})).join(";;");default:return e[r[0]][0][3]?(i=-1==r[1]?"#REF":e[r[0]][0][3][r[1]]||"SH33TJSERR4",r[1]==r[2]?i:i+":"+e[r[0]][0][3][r[2]]):"SH33TJSERR2"}}function Nu(e,t,n){var r=Fu(e,t,n);return"#REF"==r?r:Ou(r,n)}function Lu(e,t,n,r,i){var o,a,s,l,c=i&&i.biff||8,u={s:{c:0,r:0},e:{c:0,r:0}},h=[],f=0,d=0,A="";if(!e[0]||!e[0][0])return"";for(var p=-1,m="",g=0,v=e[0].length;g=0){switch(e[0][p][1][0]){case 0:m=dt(" ",e[0][p][1][1]);break;case 1:m=dt("\r",e[0][p][1][1]);break;default:if(m="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][p][1][0])}a+=m,p=-1}h.push(a+Tu[b[0]]+o);break;case"PtgIsect":o=h.pop(),a=h.pop(),h.push(a+" "+o);break;case"PtgUnion":o=h.pop(),a=h.pop(),h.push(a+","+o);break;case"PtgRange":o=h.pop(),a=h.pop(),h.push(a+":"+o);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":s=er(b[1][1],u,i),h.push(nr(s,c));break;case"PtgRefN":s=n?er(b[1][1],n,i):b[1][1],h.push(nr(s,c));break;case"PtgRef3d":f=b[1][1],s=er(b[1][2],u,i),A=Nu(r,f,i);h.push(A+"!"+nr(s,c));break;case"PtgFunc":case"PtgFuncVar":var y=b[1][0],w=b[1][1];y||(y=0),y&=127;var x=0==y?[]:h.slice(-y);h.length-=y,"User"===w&&(w=x.shift()),h.push(w+"("+x.join(",")+")");break;case"PtgBool":h.push(b[1]?"TRUE":"FALSE");break;case"PtgInt":h.push(b[1]);break;case"PtgNum":h.push(String(b[1]));break;case"PtgStr":h.push('"'+b[1].replace(/"/g,'""')+'"');break;case"PtgErr":h.push(b[1]);break;case"PtgAreaN":l=tr(b[1][1],n?{s:n}:u,i),h.push(rr(l,i));break;case"PtgArea":l=tr(b[1][1],u,i),h.push(rr(l,i));break;case"PtgArea3d":f=b[1][1],l=b[1][2],A=Nu(r,f,i),h.push(A+"!"+rr(l,i));break;case"PtgAttrSum":h.push("SUM("+h.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":d=b[1][2];var C=(r.names||[])[d-1]||(r[0]||[])[d],k=C?C.Name:"SH33TJSNAME"+String(d);k&&"_xlfn."==k.slice(0,6)&&!i.xlfn&&(k=k.slice(6)),h.push(k);break;case"PtgNameX":var _,E=b[1][1];if(d=b[1][2],!(i.biff<=5)){var B="";if(14849==((r[E]||[])[0]||[])[0]||(1025==((r[E]||[])[0]||[])[0]?r[E][d]&&r[E][d].itab>0&&(B=r.SheetNames[r[E][d].itab-1]+"!"):B=r.SheetNames[d-1]+"!"),r[E]&&r[E][d])B+=r[E][d].Name;else if(r[0]&&r[0][d])B+=r[0][d].Name;else{var S=(Fu(r,E,i)||"").split(";;");S[d-1]?B=S[d-1]:B+="SH33TJSERRX"}h.push(B);break}E<0&&(E=-E),r[E]&&(_=r[E][d]),_||(_={Name:"SH33TJSERRY"}),h.push(_.Name);break;case"PtgParen":var T="(",O=")";if(p>=0){switch(m="",e[0][p][1][0]){case 2:T=dt(" ",e[0][p][1][1])+T;break;case 3:T=dt("\r",e[0][p][1][1])+T;break;case 4:O=dt(" ",e[0][p][1][1])+O;break;case 5:O=dt("\r",e[0][p][1][1])+O;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][p][1][0])}p=-1}h.push(T+h.pop()+O);break;case"PtgRefErr":h.push("#REF!");break;case"PtgRefErr3d":h.push("#REF!");break;case"PtgExp":s={c:b[1][1],r:b[1][0]};var F={c:n.c,r:n.r};if(r.sharedf[Ar(s)]){var N=r.sharedf[Ar(s)];h.push(Lu(N,u,F,r,i))}else{var L=!1;for(o=0;o!=r.arrayf.length;++o)if(a=r.arrayf[o],!(s.ca[0].e.c)&&!(s.r a[0].e.r)){h.push(Lu(a[1],u,F,r,i)),L=!0;break}L||h.push(b[1])}break;case"PtgArray":h.push("{"+Su(b[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":p=g;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":h.push("");break;case"PtgAreaErr":h.push("#REF!");break;case"PtgAreaErr3d":h.push("#REF!");break;case"PtgList":h.push("Table"+b[1].idx+"[#"+b[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(b));default:throw new Error("Unrecognized Formula Token: "+String(b))}var I=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(3!=i.biff&&p>=0&&-1==I.indexOf(e[0][g][0])){b=e[0][p];var D=!0;switch(b[1][0]){case 4:D=!1;case 0:m=dt(" ",b[1][1]);break;case 5:D=!1;case 1:m=dt("\r",b[1][1]);break;default:if(m="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+b[1][0])}h.push((D?m:"")+h.pop()+(D?"":m)),p=-1}}if(h.length>1&&i.WTF)throw new Error("bad formula stack");return h[0]}function Iu(e,t,n){var r,i=e.l+t,o=2==n.biff?1:2,a=e.read_shift(o);if(65535==a)return[[],Yn(e,t-2)];var s=Bu(e,a,n);return t!==a+o&&(r=Eu(e,t-a-o,s,n)),e.l=i,[s,r]}function Du(e,t,n){var r,i=e.l+t,o=2==n.biff?1:2,a=e.read_shift(o);if(65535==a)return[[],Yn(e,t-2)];var s=Bu(e,a,n);return t!==a+o&&(r=Eu(e,t-a-o,s,n)),e.l=i,[s,r]}function Mu(e,t,n,r){var i,o=e.l+t,a=Bu(e,r,n);return o!==e.l&&(i=Eu(e,o-e.l,a,n)),[a,i]}function Pu(e,t,n){var r,i=e.l+t,o=e.read_shift(2),a=Bu(e,o,n);return 65535==o?[[],Yn(e,t-2)]:(t!==o+2&&(r=Eu(e,i-o-2,a,n)),[a,r])}function Uu(e){var t;if(65535!==Un(e,e.l+6))return[Pr(e),"n"];switch(e[e.l]){case 0:return e.l+=8,["String","s"];case 1:return t=1===e[e.l+2],e.l+=8,[t,"b"];case 2:return t=e[e.l+2],e.l+=8,[t,"e"];case 3:return e.l+=8,["","s"]}return[]}function Ru(e,t,n){var r=e.l+t,i=ho(e,6);2==n.biff&&++e.l;var o=Uu(e,8),a=e.read_shift(1);2!=n.biff&&(e.read_shift(1),n.biff>=5&&e.read_shift(4));var s=Du(e,r-e.l,n);return{cell:i,val:o[0],formula:s,shared:a>>3&1,tt:o[1]}}function ju(e,t,n){var r=e.read_shift(4),i=Bu(e,r,n),o=e.read_shift(4),a=o>0?Eu(e,o,i,n):null;return[i,a]}var Qu=ju,Hu=ju,$u=ju,zu=ju,Vu={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},qu={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},Ku={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function Wu(e){return"of:"==e.slice(0,3)&&(e=e.slice(3)),61==e.charCodeAt(0)&&(e=e.slice(1),61==e.charCodeAt(0)&&(e=e.slice(1))),e=e.replace(/COM\.MICROSOFT\./g,""),e=e.replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,(function(e,t){return t.replace(/\./g,"")})),e=e.replace(/\[.(#[A-Z]*[?!])\]/g,"$1"),e.replace(/[;~]/g,",").replace(/\|/g,";")}function Gu(e){var t=e.split(":"),n=t[0].split(".")[0];return[n,t[0].split(".")[1]+(t.length>1?":"+(t[1].split(".")[1]||t[1].split(".")[0]):"")]}var Yu={},Xu={};function Ju(e,t){if(e){var n=[.7,.7,.75,.75,.3,.3];"xlml"==t&&(n=[1,1,1,1,.5,.5]),null==e.left&&(e.left=n[0]),null==e.right&&(e.right=n[1]),null==e.top&&(e.top=n[2]),null==e.bottom&&(e.bottom=n[3]),null==e.header&&(e.header=n[4]),null==e.footer&&(e.footer=n[5])}}function Zu(e,t,n,r,i,o){try{r.cellNF&&(e.z=G[t])}catch(s){if(r.WTF)throw s}if("z"!==e.t||r.cellStyles){if("d"===e.t&&"string"===typeof e.v&&(e.v=ut(e.v)),(!r||!1!==r.cellText)&&"z"!==e.t)try{if(null==G[t]&&He(ze[t]||"General",t),"e"===e.t)e.w=e.w||ci[e.v];else if(0===t)if("n"===e.t)(0|e.v)===e.v?e.w=e.v.toString(10):e.w=le(e.v);else if("d"===e.t){var a=tt(e.v);e.w=(0|a)===a?a.toString(10):le(a)}else{if(void 0===e.v)return"";e.w=ce(e.v,Xu)}else"d"===e.t?e.w=Qe(t,tt(e.v),Xu):e.w=Qe(t,e.v,Xu)}catch(s){if(r.WTF)throw s}if(r.cellStyles&&null!=n)try{e.s=o.Fills[n],e.s.fgColor&&e.s.fgColor.theme&&!e.s.fgColor.rgb&&(e.s.fgColor.rgb=Ls(i.themeElements.clrScheme[e.s.fgColor.theme].rgb,e.s.fgColor.tint||0),r.WTF&&(e.s.fgColor.raw_rgb=i.themeElements.clrScheme[e.s.fgColor.theme].rgb)),e.s.bgColor&&e.s.bgColor.theme&&(e.s.bgColor.rgb=Ls(i.themeElements.clrScheme[e.s.bgColor.theme].rgb,e.s.bgColor.tint||0),r.WTF&&(e.s.bgColor.raw_rgb=i.themeElements.clrScheme[e.s.bgColor.theme].rgb))}catch(s){if(r.WTF&&o.Fills)throw s}}}function eh(e,t){var n=gr(t);n.s.r<=n.e.r&&n.s.c<=n.e.c&&n.s.r>=0&&n.s.c>=0&&(e["!ref"]=mr(n))}var th=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,nh=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,rh=/<(?:\w:)?hyperlink [^>]*>/gm,ih=/"(\w*:\w*)"/,oh=/<(?:\w:)?col\b[^>]*[\/]?>/g,ah=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,sh=/<(?:\w:)?pageMargins[^>]*\/>/g,lh=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,ch=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,uh=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function hh(e,t,n,r,i,o,a){if(!e)return e;r||(r={"!id":{}}),null!=y&&null==t.dense&&(t.dense=y);var s=t.dense?[]:{},l={s:{r:2e6,c:2e6},e:{r:0,c:0}},c="",u="",h=e.match(nh);h?(c=e.slice(0,h.index),u=e.slice(h.index+h[0].length)):c=u=e;var f=c.match(lh);f?fh(f[0],s,i,n):(f=c.match(ch))&&dh(f[0],f[1]||"",s,i,n,a,o);var d=(c.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(d>0){var A=c.slice(d,d+50).match(ih);A&&eh(s,A[1])}var p=c.match(uh);p&&p[1]&&bh(p[1],i);var m=[];if(t.cellStyles){var g=c.match(oh);g&&mh(m,g)}h&&yh(h[1],s,t,l,o,a);var v=u.match(ah);v&&(s["!autofilter"]=gh(v[0]));var b=[],w=u.match(th);if(w)for(d=0;d!=w.length;++d)b[d]=gr(w[d].slice(w[d].indexOf('"')+1));var x=u.match(rh);x&&Ah(s,x,r);var C=u.match(sh);if(C&&(s["!margins"]=ph(Pt(C[0]))),!s["!ref"]&&l.e.c>=l.s.c&&l.e.r>=l.s.r&&(s["!ref"]=mr(l)),t.sheetRows>0&&s["!ref"]){var k=gr(s["!ref"]);t.sheetRows<=+k.e.r&&(k.e.r=t.sheetRows-1,k.e.r>l.e.r&&(k.e.r=l.e.r),k.e.rl.e.c&&(k.e.c=l.e.c),k.e.c0&&(s["!cols"]=m),b.length>0&&(s["!merges"]=b),s}function fh(e,t,n,r){var i=Pt(e);n.Sheets[r]||(n.Sheets[r]={}),i.codeName&&(n.Sheets[r].CodeName=Qt(Xt(i.codeName)))}function dh(e,t,n,r,i){fh(e.slice(0,e.indexOf(">")),n,r,i)}function Ah(e,t,n){for(var r=Array.isArray(e),i=0;i!=t.length;++i){var o=Pt(Xt(t[i]),!0);if(!o.ref)return;var a=((n||{})["!id"]||[])[o.id];a?(o.Target=a.Target,o.location&&(o.Target+="#"+Qt(o.location))):(o.Target="#"+Qt(o.location),a={Target:o.Target,TargetMode:"Internal"}),o.Rel=a,o.tooltip&&(o.Tooltip=o.tooltip,delete o.tooltip);for(var s=gr(o.ref),l=s.s.r;l<=s.e.r;++l)for(var c=s.s.c;c<=s.e.c;++c){var u=Ar({c:c,r:l});r?(e[l]||(e[l]=[]),e[l][c]||(e[l][c]={t:"z",v:void 0}),e[l][c].l=o):(e[u]||(e[u]={t:"z",v:void 0}),e[u].l=o)}}}function ph(e){var t={};return["left","right","top","bottom","header","footer"].forEach((function(n){e[n]&&(t[n]=parseFloat(e[n]))})),t}function mh(e,t){for(var n=!1,r=0;r!=t.length;++r){var i=Pt(t[r],!0);i.hidden&&(i.hidden=qt(i.hidden));var o=parseInt(i.min,10)-1,a=parseInt(i.max,10)-1;i.outlineLevel&&(i.level=+i.outlineLevel||0),delete i.min,delete i.max,i.width=+i.width,!n&&i.width&&(n=!0,Hs(i.width)),$s(i);while(o<=a)e[o++]=ft(i)}}function gh(e){var t={ref:(e.match(/ref="([^"]*)"/)||[])[1]};return t}var vh=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/;function bh(e,t){t.Views||(t.Views=[{}]),(e.match(vh)||[]).forEach((function(e,n){var r=Pt(e);t.Views[n]||(t.Views[n]={}),+r.zoomScale&&(t.Views[n].zoom=+r.zoomScale),qt(r.rightToLeft)&&(t.Views[n].RTL=!0)}))}var yh=function(){var e=/<(?:\w+:)?c[ \/>]/,t=/<\/(?:\w+:)?row>/,n=/r=["']([^"']*)["']/,r=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,i=/ref=["']([^"']*)["']/,o=Zt("v"),a=Zt("f");return function(s,l,c,u,h,f){for(var d,A,p,m,g,v=0,b="",y=[],w=[],x=0,C=0,k=0,_="",E=0,B=0,S=0,T=0,O=Array.isArray(f.CellXf),F=[],N=[],L=Array.isArray(l),I=[],D={},M=!1,P=!!c.sheetStubs,U=s.split(t),R=0,j=U.length;R!=j;++R){b=U[R].trim();var Q=b.length;if(0!==Q){var H=0;e:for(v=0;v":if("/"!=b[v-1]){++v;break e}if(c&&c.cellStyles){if(A=Pt(b.slice(H,v),!0),E=null!=A.r?parseInt(A.r,10):E+1,B=-1,c.sheetRows&&c.sheetRows=v)break;if(A=Pt(b.slice(H,v),!0),E=null!=A.r?parseInt(A.r,10):E+1,B=-1,!(c.sheetRows&&c.sheetRowsE-1&&(u.s.r=E-1),u.e.r":"")+b,null!=w&&2===w.length){for(x=0,_=w[1],C=0;C!=_.length;++C){if((k=_.charCodeAt(C)-64)<1||k>26)break;x=26*x+k}--x,B=x}else++B;for(C=0;C!=b.length;++C)if(62===b.charCodeAt(C))break;if(++C,A=Pt(b.slice(0,C),!0),A.r||(A.r=Ar({r:E-1,c:B})),_=b.slice(C),d={t:""},null!=(w=_.match(o))&&""!==w[1]&&(d.v=Qt(w[1])),c.cellFormula){if(null!=(w=_.match(a))&&""!==w[1]){if(d.f=Qt(Xt(w[1])).replace(/\r\n/g,"\n"),c.xlfn||(d.f=ic(d.f)),w[0].indexOf('t="array"')>-1)d.F=(_.match(i)||[])[1],d.F.indexOf(":")>-1&&F.push([gr(d.F),d.F]);else if(w[0].indexOf('t="shared"')>-1){m=Pt(w[0]);var z=Qt(Xt(w[1]));c.xlfn||(z=ic(z)),N[parseInt(m.si,10)]=[m,z,A.r]}}else(w=_.match(/