flow-mindmap 0.5.2 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  (function(he,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(he=typeof globalThis<"u"?globalThis:he||self,e(he.FlowMind={},he.Vue))})(this,function(he,e){"use strict";var yg=Object.defineProperty;var Eg=(he,e,Bn)=>e in he?yg(he,e,{enumerable:!0,configurable:!0,writable:!0,value:Bn}):he[e]=Bn;var ve=(he,e,Bn)=>Eg(he,typeof e!="symbol"?e+"":e,Bn);var Qo;const Bn=["width","height","stroke-width"],ya={key:4,points:"6 9 12 15 18 9"},Ea={key:5,points:"9 6 15 12 9 18"},ye=e.defineComponent({__name:"Icon",props:{name:{},size:{},stroke:{}},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("svg",{width:t.size??16,height:t.size??16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":t.stroke??1.8,"stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[t.name==="add"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[n[0]||(n[0]=e.createElementVNode("circle",{cx:"12",cy:"12",r:"9"},null,-1)),n[1]||(n[1]=e.createElementVNode("line",{x1:"12",y1:"8",x2:"12",y2:"16"},null,-1)),n[2]||(n[2]=e.createElementVNode("line",{x1:"8",y1:"12",x2:"16",y2:"12"},null,-1))],64)):t.name==="minus"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[n[3]||(n[3]=e.createElementVNode("circle",{cx:"12",cy:"12",r:"9"},null,-1)),n[4]||(n[4]=e.createElementVNode("line",{x1:"8",y1:"12",x2:"16",y2:"12"},null,-1))],64)):t.name==="delete"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[n[5]||(n[5]=e.createStaticVNode('<polyline points="4 7 20 7"></polyline><path d="M9 7 V5 a1 1 0 0 1 1 -1 h4 a1 1 0 0 1 1 1 V7"></path><path d="M6 7 l1 12 a1 1 0 0 0 1 1 h8 a1 1 0 0 0 1 -1 l1 -12"></path><line x1="10" y1="11" x2="10" y2="18"></line><line x1="14" y1="11" x2="14" y2="18"></line>',5))],64)):t.name==="edit"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[n[6]||(n[6]=e.createElementVNode("path",{d:"M4 20 l4 -1 11 -11 -3 -3 -11 11 z"},null,-1)),n[7]||(n[7]=e.createElementVNode("line",{x1:"14",y1:"6",x2:"18",y2:"10"},null,-1))],64)):t.name==="collapse"?(e.openBlock(),e.createElementBlock("polyline",ya)):t.name==="expand"?(e.openBlock(),e.createElementBlock("polyline",Ea)):t.name==="collapse-all"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:6},[n[8]||(n[8]=e.createStaticVNode('<line x1="4" y1="4" x2="10" y2="10"></line><polyline points="6 10 10 10 10 6"></polyline><line x1="20" y1="4" x2="14" y2="10"></line><polyline points="14 6 14 10 18 10"></polyline><line x1="20" y1="20" x2="14" y2="14"></line><polyline points="14 18 14 14 18 14"></polyline><line x1="4" y1="20" x2="10" y2="14"></line><polyline points="6 14 10 14 10 18"></polyline>',8))],64)):t.name==="expand-all"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:7},[n[9]||(n[9]=e.createStaticVNode('<line x1="10" y1="10" x2="4" y2="4"></line><polyline points="4 6 4 4 6 4"></polyline><line x1="14" y1="10" x2="20" y2="4"></line><polyline points="20 6 20 4 18 4"></polyline><line x1="14" y1="14" x2="20" y2="20"></line><polyline points="20 18 20 20 18 20"></polyline><line x1="10" y1="14" x2="4" y2="20"></line><polyline points="4 18 4 20 6 20"></polyline>',8))],64)):t.name==="expand-level-1"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:8},[n[10]||(n[10]=e.createStaticVNode('<circle cx="12" cy="5" r="1.8" fill="currentColor" stroke="none"></circle><line x1="12" y1="7" x2="12" y2="11"></line><line x1="12" y1="11" x2="5" y2="17"></line><line x1="12" y1="11" x2="12" y2="17"></line><line x1="12" y1="11" x2="19" y2="17"></line><circle cx="5" cy="19" r="1.8" fill="currentColor" stroke="none"></circle><circle cx="12" cy="19" r="1.8" fill="currentColor" stroke="none"></circle><circle cx="19" cy="19" r="1.8" fill="currentColor" stroke="none"></circle>',8))],64)):t.name==="expand-level-2"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:9},[n[11]||(n[11]=e.createStaticVNode('<circle cx="12" cy="3" r="1.4" fill="currentColor" stroke="none"></circle><line x1="12" y1="4.5" x2="12" y2="7"></line><line x1="12" y1="7" x2="5" y2="11"></line><line x1="12" y1="7" x2="12" y2="11"></line><line x1="12" y1="7" x2="19" y2="11"></line><line x1="5" y1="11" x2="3" y2="16"></line><line x1="5" y1="11" x2="7" y2="16"></line><line x1="12" y1="11" x2="10" y2="16"></line><line x1="12" y1="11" x2="14" y2="16"></line><line x1="19" y1="11" x2="17" y2="16"></line><line x1="19" y1="11" x2="21" y2="16"></line><circle cx="5" cy="11" r="1.4" fill="currentColor" stroke="none"></circle><circle cx="12" cy="11" r="1.4" fill="currentColor" stroke="none"></circle><circle cx="19" cy="11" r="1.4" fill="currentColor" stroke="none"></circle><circle cx="3" cy="18" r="1.4" fill="currentColor" stroke="none"></circle><circle cx="7" cy="18" r="1.4" fill="currentColor" stroke="none"></circle><circle cx="10" cy="18" r="1.4" fill="currentColor" stroke="none"></circle><circle cx="14" cy="18" r="1.4" fill="currentColor" stroke="none"></circle><circle cx="17" cy="18" r="1.4" fill="currentColor" stroke="none"></circle><circle cx="21" cy="18" r="1.4" fill="currentColor" stroke="none"></circle>',20))],64)):t.name==="zoom-in"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:10},[n[12]||(n[12]=e.createElementVNode("circle",{cx:"11",cy:"11",r:"7"},null,-1)),n[13]||(n[13]=e.createElementVNode("line",{x1:"11",y1:"8",x2:"11",y2:"14"},null,-1)),n[14]||(n[14]=e.createElementVNode("line",{x1:"8",y1:"11",x2:"14",y2:"11"},null,-1)),n[15]||(n[15]=e.createElementVNode("line",{x1:"16",y1:"16",x2:"21",y2:"21"},null,-1))],64)):t.name==="zoom-out"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:11},[n[16]||(n[16]=e.createElementVNode("circle",{cx:"11",cy:"11",r:"7"},null,-1)),n[17]||(n[17]=e.createElementVNode("line",{x1:"8",y1:"11",x2:"14",y2:"11"},null,-1)),n[18]||(n[18]=e.createElementVNode("line",{x1:"16",y1:"16",x2:"21",y2:"21"},null,-1))],64)):t.name==="reset"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:12},[n[19]||(n[19]=e.createElementVNode("polyline",{points:"4 9 4 4 9 4"},null,-1)),n[20]||(n[20]=e.createElementVNode("polyline",{points:"15 4 20 4 20 9"},null,-1)),n[21]||(n[21]=e.createElementVNode("polyline",{points:"20 15 20 20 15 20"},null,-1)),n[22]||(n[22]=e.createElementVNode("polyline",{points:"9 20 4 20 4 15"},null,-1))],64)):t.name==="database"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:13},[n[23]||(n[23]=e.createElementVNode("ellipse",{cx:"12",cy:"6",rx:"7",ry:"2.5"},null,-1)),n[24]||(n[24]=e.createElementVNode("path",{d:"M5 6 V18 C5 19.4 8 20.5 12 20.5 C16 20.5 19 19.4 19 18 V6"},null,-1)),n[25]||(n[25]=e.createElementVNode("path",{d:"M5 12 C5 13.4 8 14.5 12 14.5 C16 14.5 19 13.4 19 12"},null,-1))],64)):t.name==="settings"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:14},[n[26]||(n[26]=e.createElementVNode("path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"},null,-1)),n[27]||(n[27]=e.createElementVNode("circle",{cx:"12",cy:"12",r:"3"},null,-1))],64)):t.name==="markdown"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:15},[n[28]||(n[28]=e.createElementVNode("rect",{x:"2",y:"5",width:"20",height:"14",rx:"2"},null,-1)),n[29]||(n[29]=e.createElementVNode("path",{d:"M6 15 V9 L9 12 L12 9 V15"},null,-1)),n[30]||(n[30]=e.createElementVNode("path",{d:"M15 15 V9 L18 12 V9 M15 12 L18 15"},null,-1))],64)):t.name==="txt"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:16},[n[31]||(n[31]=e.createElementVNode("rect",{x:"5",y:"3",width:"14",height:"18",rx:"1.5"},null,-1)),n[32]||(n[32]=e.createElementVNode("line",{x1:"8",y1:"8",x2:"16",y2:"8"},null,-1)),n[33]||(n[33]=e.createElementVNode("line",{x1:"8",y1:"12",x2:"16",y2:"12"},null,-1)),n[34]||(n[34]=e.createElementVNode("line",{x1:"8",y1:"16",x2:"13",y2:"16"},null,-1))],64)):t.name==="eye"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:17},[n[35]||(n[35]=e.createElementVNode("path",{d:"M2 12 C4 6 8 3 12 3 C16 3 20 6 22 12 C20 18 16 21 12 21 C8 21 4 18 2 12 Z"},null,-1)),n[36]||(n[36]=e.createElementVNode("circle",{cx:"12",cy:"12",r:"3.2"},null,-1))],64)):t.name==="eye-off"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:18},[n[37]||(n[37]=e.createElementVNode("path",{d:"M3 3 L21 21"},null,-1)),n[38]||(n[38]=e.createElementVNode("path",{d:"M10.5 6.2 C11 6.1 11.5 6 12 6 C16 6 19.5 8.5 21 12 C20.4 13.2 19.6 14.3 18.7 15.2"},null,-1)),n[39]||(n[39]=e.createElementVNode("path",{d:"M6.6 6.6 C4 8.2 2.7 10.2 2 12 C3 14.5 5.2 16.8 8 18.3 C9.2 19 10.6 19.4 12 19.4 C13.5 19.4 14.9 19 16.2 18.3"},null,-1)),n[40]||(n[40]=e.createElementVNode("path",{d:"M9.5 9.5 C9.1 10.2 9 11.1 9 12 C9 13.7 9.8 15.2 11 16.1"},null,-1))],64)):t.name==="outline"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:19},[n[41]||(n[41]=e.createElementVNode("rect",{x:"4",y:"3",width:"16",height:"18",rx:"2"},null,-1)),n[42]||(n[42]=e.createElementVNode("line",{x1:"8",y1:"8",x2:"16",y2:"8"},null,-1)),n[43]||(n[43]=e.createElementVNode("line",{x1:"8",y1:"12",x2:"16",y2:"12"},null,-1)),n[44]||(n[44]=e.createElementVNode("line",{x1:"8",y1:"16",x2:"13",y2:"16"},null,-1))],64)):t.name==="logo"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:20},[n[45]||(n[45]=e.createStaticVNode('<circle cx="12" cy="12" r="2.2"></circle><circle cx="4" cy="5" r="1.6"></circle><circle cx="20" cy="5" r="1.6"></circle><circle cx="4" cy="19" r="1.6"></circle><circle cx="20" cy="19" r="1.6"></circle><line x1="10.5" y1="10.8" x2="5.2" y2="6.4"></line><line x1="13.5" y1="10.8" x2="18.8" y2="6.4"></line><line x1="10.5" y1="13.2" x2="5.2" y2="17.6"></line><line x1="13.5" y1="13.2" x2="18.8" y2="17.6"></line>',9))],64)):t.name==="import"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:21},[n[46]||(n[46]=e.createElementVNode("path",{d:"M12 4 V15"},null,-1)),n[47]||(n[47]=e.createElementVNode("polyline",{points:"7 10 12 15 17 10"},null,-1)),n[48]||(n[48]=e.createElementVNode("path",{d:"M4 19 H20"},null,-1))],64)):t.name==="export"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:22},[n[49]||(n[49]=e.createElementVNode("path",{d:"M12 15 V4"},null,-1)),n[50]||(n[50]=e.createElementVNode("polyline",{points:"7 9 12 4 17 9"},null,-1)),n[51]||(n[51]=e.createElementVNode("path",{d:"M4 19 H20"},null,-1))],64)):t.name==="balance"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:23},[n[52]||(n[52]=e.createStaticVNode('<line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="18" x2="21" y2="18"></line><polyline points="9 4 5 6 9 8"></polyline><polyline points="15 4 19 6 15 8"></polyline><polyline points="9 10 5 12 9 14"></polyline><polyline points="15 10 19 12 15 14"></polyline><polyline points="9 16 5 18 9 20"></polyline><polyline points="15 16 19 18 15 20"></polyline>',9))],64)):t.name==="mindmap"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:24},[n[53]||(n[53]=e.createStaticVNode('<circle cx="12" cy="12" r="2.4" fill="currentColor" stroke="none"></circle><line x1="13.4" y1="10.6" x2="18.5" y2="5.5"></line><line x1="13.4" y1="13.4" x2="18.5" y2="18.5"></line><line x1="10.6" y1="10.6" x2="5.5" y2="5.5"></line><line x1="10.6" y1="13.4" x2="5.5" y2="18.5"></line><circle cx="19.5" cy="4.5" r="1.8" fill="currentColor" stroke="none"></circle><circle cx="19.5" cy="19.5" r="1.8" fill="currentColor" stroke="none"></circle><circle cx="4.5" cy="4.5" r="1.8" fill="currentColor" stroke="none"></circle><circle cx="4.5" cy="19.5" r="1.8" fill="currentColor" stroke="none"></circle>',9))],64)):t.name==="tree"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:25},[n[54]||(n[54]=e.createStaticVNode('<circle cx="5" cy="12" r="2" fill="currentColor" stroke="none"></circle><circle cx="19" cy="5" r="2" fill="currentColor" stroke="none"></circle><circle cx="19" cy="12" r="2" fill="currentColor" stroke="none"></circle><circle cx="19" cy="19" r="2" fill="currentColor" stroke="none"></circle><line x1="7" y1="12" x2="12" y2="12"></line><line x1="12" y1="12" x2="12" y2="5"></line><line x1="12" y1="12" x2="12" y2="19"></line><line x1="12" y1="5" x2="17" y2="5"></line><line x1="12" y1="19" x2="17" y2="19"></line>',9))],64)):t.name==="org"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:26},[n[55]||(n[55]=e.createStaticVNode('<circle cx="12" cy="5" r="2" fill="currentColor" stroke="none"></circle><circle cx="6" cy="19" r="2" fill="currentColor" stroke="none"></circle><circle cx="12" cy="19" r="2" fill="currentColor" stroke="none"></circle><circle cx="18" cy="19" r="2" fill="currentColor" stroke="none"></circle><line x1="12" y1="7" x2="12" y2="13"></line><line x1="6" y1="13" x2="18" y2="13"></line><line x1="6" y1="13" x2="6" y2="17"></line><line x1="12" y1="13" x2="12" y2="17"></line><line x1="18" y1="13" x2="18" y2="17"></line>',9))],64)):t.name==="image"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:27},[n[56]||(n[56]=e.createElementVNode("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"},null,-1)),n[57]||(n[57]=e.createElementVNode("circle",{cx:"9",cy:"11",r:"1.6"},null,-1)),n[58]||(n[58]=e.createElementVNode("polyline",{points:"3 17 9 12 13 15 16 13 21 17"},null,-1))],64)):t.name==="x"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:28},[n[59]||(n[59]=e.createElementVNode("line",{x1:"6",y1:"6",x2:"18",y2:"18"},null,-1)),n[60]||(n[60]=e.createElementVNode("line",{x1:"18",y1:"6",x2:"6",y2:"18"},null,-1))],64)):t.name==="link"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:29},[n[61]||(n[61]=e.createElementVNode("path",{d:"M10 13 a4 4 0 0 0 5.66 0 l3 -3 a4 4 0 1 0 -5.66 -5.66 l-1 1"},null,-1)),n[62]||(n[62]=e.createElementVNode("path",{d:"M14 11 a4 4 0 0 0 -5.66 0 l-3 3 a4 4 0 1 0 5.66 5.66 l1 -1"},null,-1))],64)):t.name==="note"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:30},[n[63]||(n[63]=e.createElementVNode("path",{d:"M6 4 h9 l3 3 v13 a1 1 0 0 1 -1 1 h-11 a1 1 0 0 1 -1 -1 v-15 a1 1 0 0 1 1 -1 z"},null,-1)),n[64]||(n[64]=e.createElementVNode("line",{x1:"8",y1:"10",x2:"16",y2:"10"},null,-1)),n[65]||(n[65]=e.createElementVNode("line",{x1:"8",y1:"13",x2:"16",y2:"13"},null,-1)),n[66]||(n[66]=e.createElementVNode("line",{x1:"8",y1:"16",x2:"13",y2:"16"},null,-1))],64)):t.name==="search"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:31},[n[67]||(n[67]=e.createElementVNode("circle",{cx:"11",cy:"11",r:"7"},null,-1)),n[68]||(n[68]=e.createElementVNode("line",{x1:"16",y1:"16",x2:"21",y2:"21"},null,-1))],64)):t.name==="json"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:32},[n[69]||(n[69]=e.createElementVNode("path",{d:"M8 4 C6 4 6 6 6 7 C6 8 5 8 5 9 C5 10 6 10 6 11 C6 12 6 14 8 14"},null,-1)),n[70]||(n[70]=e.createElementVNode("path",{d:"M16 4 C18 4 18 6 18 7 C18 8 19 8 19 9 C19 10 18 10 18 11 C18 12 18 14 16 14"},null,-1))],64)):t.name==="svg-export"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:33},[n[71]||(n[71]=e.createElementVNode("path",{d:"M6 3 h8 l4 4 v14 a1 1 0 0 1 -1 1 h-11 a1 1 0 0 1 -1 -1 v-15 a1 1 0 0 1 1 -1 z"},null,-1)),n[72]||(n[72]=e.createElementVNode("polyline",{points:"14 3 14 7 18 7"},null,-1)),n[73]||(n[73]=e.createElementVNode("polyline",{points:"8 14 6 16 8 18"},null,-1)),n[74]||(n[74]=e.createElementVNode("polyline",{points:"14 14 16 16 14 18"},null,-1))],64)):e.createCommentVNode("",!0)],8,Bn))}}),ri="data:image/svg+xml,%3csvg%20t='1780822312364'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='7459'%20width='200'%20height='200'%3e%3cpath%20d='M329.16%20292.571h658.286V512H329.16zM329.16%200h658.286v219.429H329.16z'%20fill='%239AA1A2'%20p-id='7460'%3e%3c/path%3e%3cpath%20d='M44.927%20146.286a46.519%2046.519%200%200%201%2038.107-73.143h319.269v73.143H109.73V791.99l-48.713%205.705-24.43-651.41h8.339z'%20fill='%239AA1A2'%20p-id='7461'%3e%3c/path%3e%3cpath%20d='M363.83%20877.714H179.51c-78.775%200-142.921-66.12-142.921-147.31V112.787c0-21.943%2017.188-39.643%2038.473-39.643%2021.211%200%2033.5%2017.774%2033.5%2039.643v617.619c0%2037.522%2028.013%2076.58%2064.438%2076.58h190.903c21.211%200%2038.766%2013.97%2038.766%2035.84%200%2021.943-17.555%2034.89-38.766%2034.89z'%20fill='%239AA1A2'%20p-id='7462'%3e%3c/path%3e%3cpath%20d='M432.95%20438.857H179.51c-78.775%200-81.043-18.578-81.043-62.903l10.094-90.624c0%2020.48%2013.458%2080.677%2049.884%2080.677h210.139c21.211%200%20120.613%204.023%20120.613%2016.018%200%2011.922-35.036%2056.832-56.32%2056.832zM640.017%20749.714V640a54.857%2054.857%200%200%201%20109.714%200v109.714h109.715a54.857%2054.857%200%200%201%200%20109.715H749.73v109.714a54.857%2054.857%200%200%201-109.714%200V859.429H530.303a54.857%2054.857%200%200%201%200-109.715h109.714z'%20fill='%239AA1A2'%20p-id='7463'%3e%3c/path%3e%3c/svg%3e",ii="data:image/svg+xml,%3csvg%20t='1780822464335'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='8457'%20width='200'%20height='200'%3e%3cpath%20d='M512%20804.571h512V1024H512V804.571zM0%200h658.286v219.429H0V0z'%20fill='%239AA1A2'%20p-id='8458'%3e%3c/path%3e%3cpath%20d='M619.813%20950.857h-184.32c-78.775%200-142.922-66.121-142.922-147.31V185.93c0-21.943%2017.189-39.643%2038.474-39.643%2021.211%200%2033.353%2017.773%2033.353%2039.643v617.618c0%2037.523%2034.743%2073.728%2071.095%2073.728h184.32c21.211%200%2038.473%2012.069%2038.473%2033.939%200%2021.943-17.189%2039.643-38.473%2039.643z'%20fill='%239AA1A2'%20p-id='8459'%3e%3c/path%3e%3cpath%20d='M676.571%20457.143V347.429a54.857%2054.857%200%200%201%20109.715%200v109.714H896a54.857%2054.857%200%200%201%200%20109.714H786.286v109.714a54.857%2054.857%200%200%201-109.715%200V566.857H566.857a54.857%2054.857%200%200%201%200-109.714h109.714z'%20fill='%239AA1A2'%20p-id='8460'%3e%3c/path%3e%3c/svg%3e",li=[22,15,13,12],ai=[700,600,500,400],xa=[46,36,30,26],wa=[120,80,60,44],Na=[.8,.8,.8,.8],Sa=1,Ta=li.length-1;function Ca(t,o){return Math.round(fr(t,o)*Na[Ao(t)])}function Ao(t){return Math.min(Ta,Math.max(0,t))}function fr(t,o=14){return Math.round(li[Ao(t)]*o/14*10)/10}function Aa(t,o=14){return Math.round(xa[Ao(t)]*o/14)}const ro=60,_a=30,Ma=.75,In=14,At=24;function si(t){return Math.max(_a,Math.round(ro*Math.pow(Ma,t)))}let mr=null;function va(){if(mr)return mr;const t=typeof document<"u"?document.createElement("canvas").getContext("2d"):null;return t?(mr=t,t):{font:"",measureText:()=>({width:0})}}const ci=new Map;function di(t,o,n){const r=`${n}|${o}|${t}`,l=ci.get(r);if(l!==void 0)return l;const c=va();c.font=`${n} ${o}px "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif`;const s=t.split(`
2
2
  `);let u=0;for(const d of s){const g=c.measureText(d).width;g>u&&(u=g)}return ci.set(r,u),u}const Ra=24,Ba=400,Ia=8,ui=16,fi=4,mi=200;function za(t,o,n){return Math.min(n,Math.max(o,t))}function Oa(t,o,n,r,l){const c=Ao(o),s=fr(o,n),u=Math.min(di(t.text||"",s,ai[c]),mi),d=Ca(o,n),g=Math.ceil(u+d*2+Sa*2),h=(t.text||"").split(`
3
- `);let w=0;for(const J of h){const I=di(J,s,ai[c]);w+=Math.max(1,Math.ceil(I/mi))}w=Math.max(1,w);const $=!!(t.richContent&&(t.richContent.kind==="code"||t.richContent.kind==="table"))?Math.ceil(s*1.2)+6:Aa(o,n)+Math.ceil(s*1.2*(w-1));let _=0;if(t.link&&(_+=ui),t.note&&(_+=ui),_>0){const J=(t.link?1:0)+(t.note?1:0);_+=fi*J}const P=14,z=2;let C=0;t.markers&&t.markers.length>0&&(C=t.markers.length*P+(t.markers.length-1)*z+fi);const x=18,k=4,f=t.tags&&t.tags.length>0?x:0,R=g+_+C,E=(()=>{const J=Math.round(wa[c]*n/14);if(t.richContent&&(t.richContent.kind==="code"||t.richContent.kind==="table")){const I=l==null?void 0:l[t.id];return Math.max(J,I??240)}return J})(),Y=!!(t.richContent&&(t.richContent.kind==="code"||t.richContent.kind==="table")),K=r==null?void 0:r[t.id],ee=Y?Math.max(24,K??Math.max(70,Math.ceil(s*5))):0,ae=ee>0?10:0;if(!t.image){const J=Math.max(E,R),I=Math.ceil($+ae+ee+(f>0?k+f:0));return{w:J,h:I}}const ie=za(t.image.width,Ra,Ba),X=Math.max(E,R,Math.ceil(ie+d*2)),te=Math.ceil(t.image.height+Ia+$+ae+ee+(f>0?k+f:0));return{w:X,h:te}}function La(t,o={}){const n=o.mode??"mindmap",r=o.preservePositions===!0,l=o.baseFontSize??14,c=gi(t,0,null,1,"right",l,o.richHeights,o.richWidths);return Va(c),Da(c,n,r),c.x=0,c.y=0,$a(c,r)}function Da(t,o,n=!1){if(o==="mindmap"){const r=t.children;if(r.length!==0)if(r.length===1)r[0]._dir="right",r[0].side=1,r[0]._dirRight=1;else{const u=r.reduce((w,S)=>w+S._subtreeH,0);let d=1,g=Math.abs(r[0]._subtreeH-(u-r[0]._subtreeH)),h=0;for(let w=0;w<r.length-1;w++){h+=r[w]._subtreeH;const S=Math.abs(h-(u-h));S<g&&(g=S,d=w+1)}for(let w=0;w<d;w++)r[w]._dir="right",r[w].side=1,r[w]._dirRight=1;for(let w=d;w<r.length;w++)r[w]._dir="left",r[w].side=-1,r[w]._dirRight=-1}const l=t.children.filter(u=>u.side===1),c=t.children.filter(u=>u.side===-1),s=(u,d)=>{const g=d==="right"?1:-1;u._dir=d,u.side=g,u._dirRight=g;for(const h of u.children)s(h,d)};for(const u of l)s(u,"right");for(const u of c)s(u,"left");if(l.length>0){const u={...t,children:l};_o(u,"right",ro,!0,n)}if(c.length>0){const u={...t,children:c};_o(u,"left",ro,!0,n)}}else if(o==="tree"){const r=l=>{l.side=1,l._dir="right";for(const c of l.children)r(c)};for(const l of t.children)l._dir="right";_o(t,"right",ro,!0,n),r(t)}else{for(const r of t.children)r._dir="down";pi(t,ro,n)}}function _o(t,o,n,r,l=!1){if(t.children.length===0)return;const c=t.children.reduce((h,w,S)=>h+w._subtreeH+(S>0?In:0),0),s=o==="right"?1:-1,u=r?s:1;let d=t.y-u*c/2;const g=si(t.depth);t.children.forEach(h=>{l||(h.x=t.x+s*(t.width/2+g+h.width/2),h.y=d+u*h._subtreeH/2),h._dir=o,d+=u*(h._subtreeH+In),_o(h,o,n,!1,l)})}function pi(t,o,n=!1){if(t.children.length===0)return;const r=t.children.reduce((s,u,d)=>s+u._subtreeW+(d>0?In*2:0),0);let l=t.x-r/2;const c=si(t.depth);t.children.forEach(s=>{n||(s.x=l+s._subtreeW/2,s.y=t.y+t.height/2+c+s.height/2),s._dir="down",l+=s._subtreeW+In*2,pi(s,o,n)})}function gi(t,o,n,r,l,c,s,u){const d=Oa(t,o,c,s,u),g={id:t.id,text:t.text,depth:o,x:t._x??0,y:t._y??0,width:d.w,height:d.h,fontSize:fr(o,c),isRoot:o===0,collapsed:t.collapsed,side:r,_dir:l,_dirRight:r,_subtreeH:d.h,_subtreeW:d.w,image:t.image?{...t.image}:void 0,link:t.link?{url:t.link.url}:void 0,note:t.note?{text:t.note.text}:void 0,richContent:t.richContent?{kind:t.richContent.kind,raw:t.richContent.raw,lang:t.richContent.lang}:void 0,markers:t.markers?[...t.markers]:void 0,tags:t.tags?[...t.tags]:void 0,children:[],parent:n};if(t.collapsed)return g;const h=t.children.length,w=Math.ceil(h/2);return g.children=t.children.map((S,$)=>{const _=o===0?$<w?1:-1:r;return gi(S,o+1,g,_,l,c,s,u)}),g}function Va(t){const o=[t];for(let n=0;n<o.length;n++){const r=o[n];for(const l of r.children)o.push(l)}for(let n=o.length-1;n>=0;n--){const r=o[n];if(r.collapsed||r.children.length===0){r._subtreeH=r.height,r._subtreeW=r.width;continue}let l=0,c=0;for(const s of r.children)l+=s._subtreeH,c+=s._subtreeW;r.children.length>1&&(l+=In*(r.children.length-1),c+=In*2*(r.children.length-1)),r._subtreeH=Math.max(r.height,l),r._subtreeW=Math.max(r.width,c)}}function $a(t,o=!1){const n=[t];let r=1/0,l=-1/0,c=1/0,s=-1/0;for(;n.length;){const g=n.pop(),h=g.width/2,w=g.height/2;g.x-h<r&&(r=g.x-h),g.x+h>l&&(l=g.x+h),g.y-w<c&&(c=g.y-w),g.y+w>s&&(s=g.y+w),n.push(...g.children)}if(o)return{root:t,width:l-r+At*2,height:s-c+At*2,vbX:r-At,vbY:c-At,vbW:l-r+At*2,vbH:s-c+At*2};const u=At-c,d=[t];for(;d.length;){const g=d.pop();g.y+=u,d.push(...g.children)}return c+=u,s+=u,{root:t,width:l-r+At*2,height:s+At,vbX:r-At,vbY:0,vbW:l-r+At*2,vbH:s+At}}const en=[{id:"default",name:"默认",colors:["#f87171","#fb923c","#fbbf24","#a3e635","#34d399","#22d3ee","#818cf8","#c084fc"]},{id:"classic",name:"经典",colors:["#ef4444","#f59e0b","#10b981","#3b82f6","#6366f1","#8b5cf6","#ec4899","#14b8a6"]},{id:"vivid",name:"活力",colors:["#dc2626","#ea580c","#ca8a04","#16a34a","#0891b2","#2563eb","#7c3aed","#db2777"]},{id:"dev",name:"代码",colors:["#f472b6","#a78bfa","#60a5fa","#38bdf8","#22d3ee","#34d399","#facc15","#fb923c"]},{id:"mint",name:"薄荷",colors:["#5eead4","#67e8f9","#93c5fd","#c4b5fd","#fbcfe8","#fde68a","#a7f3d0","#bae6fd"]}];function Pa(t,o=[]){return[...en,...o].find(r=>r.id===t)??en[0]}function Fa(t,o=8){const n=[],r=new Set,l=/#[0-9a-fA-F]{3,8}\b|rgba?\([^)]+\)|[A-Za-z][A-Za-z0-9_-]{2,30}/g;let c;for(;(c=l.exec(t))!==null;){const s=c[0];let u=null;if(s.startsWith("#")?u=Ua(s):s.startsWith("rgb")?u=Ha(s):u=Wa[s.toLowerCase()]??null,!u)continue;const d=u.toLowerCase();if(!r.has(d)&&(r.add(d),n.push(d),n.length>=o))break}return n}function Ua(t){const o=t.startsWith("#")?t.slice(1):t;if(!/^[0-9a-fA-F]+$/.test(o))return null;let n;if(o.length===3)n=o.split("").map(r=>r+r).join("");else if(o.length===4)n=o.slice(0,3).split("").map(r=>r+r).join("");else if(o.length===6)n=o;else if(o.length===8)n=o.slice(0,6);else return null;return"#"+n.toLowerCase()}function Ha(t){const o=t.match(/^rgba?\(\s*([^)]+?)\s*\)$/i);if(!o)return null;const n=o[1].split(/\s*,\s*/);if(n.length<3)return null;const r=[];for(let l=0;l<3;l++){const c=n[l];if(c.endsWith("%")){const s=parseFloat(c);if(!isFinite(s))return null;r.push(Math.round(s/100*255))}else{const s=parseInt(c,10);if(!isFinite(s)||s<0||s>255)return null;r.push(s)}}return"#"+r.map(l=>l.toString(16).padStart(2,"0")).join("").toLowerCase()}const Wa={black:"#000000",white:"#ffffff",red:"#ff0000",green:"#008000",blue:"#0000ff",yellow:"#ffff00",cyan:"#00ffff",magenta:"#ff00ff",gray:"#808080",grey:"#808080",silver:"#c0c0c0",maroon:"#800000",olive:"#808000",lime:"#00ff00",aqua:"#00ffff",teal:"#008080",navy:"#000080",fuchsia:"#ff00ff",purple:"#800080",orange:"#ffa500",pink:"#ffc0cb",brown:"#a52a2a",gold:"#ffd700",coral:"#ff7f50",tomato:"#ff6347",salmon:"#fa8072",khaki:"#f0e68c",violet:"#ee82ee",indigo:"#4b0082",turquoise:"#40e0d0",chocolate:"#d2691e",crimson:"#dc143c",darkred:"#8b0000",darkblue:"#00008b",darkgreen:"#006400",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightblue:"#add8e6",lightgreen:"#90ee90",lightyellow:"#ffffe0",lightpink:"#ffb6c1",skyblue:"#87ceeb",forestgreen:"#228b22",royalblue:"#4169e1",steelblue:"#4682b4",hotpink:"#ff69b4",deeppink:"#ff1493",orangered:"#ff4500",goldenrod:"#daa520",mediumpurple:"#9370db"};function Gt(){return"n_"+Math.random().toString(36).slice(2,10)+Date.now().toString(36).slice(-4)}function _t(t){return JSON.parse(JSON.stringify(t))}function re(t,o){if(t.id===o)return t;for(const n of t.children){const r=re(n,o);if(r)return r}return null}function Lt(t,o,n=null){if(t.id===o)return n;for(const r of t.children){const l=Lt(r,o,t);if(l!==null)return l}return null}function Mo(t,o){const n=t.children.findIndex(r=>r.id===o);if(n>=0)return t.children.splice(n,1),!0;for(const r of t.children)if(Mo(r,o))return!0;return!1}function Ga(t,o,n){const r=re(t,o);return!r||r.text===n?!1:(r.text=n,!0)}function ja(t,o,n,r){if(!Lt(t,o)||o===n||re(re(t,o),n))return!1;const l=Lt(t,o),c=l.children.findIndex(g=>g.id===o);if(c<0)return!1;const[s]=l.children.splice(c,1);if(r==="child"){const g=re(t,n);return g?(g.children.push(s),!0):(l.children.splice(c,0,s),!1)}const u=Lt(t,n);if(!u)return l.children.splice(c,0,s),!1;let d=u.children.findIndex(g=>g.id===n);return d<0?(l.children.splice(c,0,s),!1):(r==="after"&&(d+=1),u.children.splice(d,0,s),!0)}function hi(t){const o=/^新节点(?:\s+(\d+))?$/;let n=0,r=!1;for(const l of t.children){const c=l.text.match(o);if(c)if(c[1]){const s=parseInt(c[1],10);s>n&&(n=s)}else r=!0}return n===0&&!r?Ro:n>0?`新节点 ${n+1}`:"新节点 2"}function bi(t,o,n){const r=re(t,o);if(!r)return null;const l={id:Gt(),text:n??hi(r),children:[]};return r.children.push(l),l}function ki(t,o,n){const r=Lt(t,o);if(!r)return null;const l=r.children.findIndex(s=>s.id===o);if(l<0)return null;const c={id:Gt(),text:n??hi(r),children:[]};return r.children.splice(l+1,0,c),c}function Ka(t,o,n){const r=Lt(t,o);if(!r)return null;const l=r.children.findIndex(s=>s.id===o);if(l<0)return null;const c={id:Gt(),text:n,children:[]};return r.children.splice(l,0,c),c}function Ya(t,o){const n=Lt(t,o);if(!n)return null;const r=n.children.findIndex(s=>s.id===o);if(r<0)return null;const l=n.children[r],c=_t(l);return vo(c),n.children.splice(r+1,0,c),c}function vo(t){t.id=Gt();for(const o of t.children)vo(o)}function yi(t,o){const n=re(t,o);if(!n||n.id===t.id)return null;const r=_t(n);return vo(r),r}const Ro="新节点";function zn(t,o="导入的导图"){const n=t.split(/\r?\n/),r={id:Gt(),text:o,children:[]},l=[r],c=[-1/0],s=[],u=/^(#{1,6})\s+(.+?)\s*#*\s*$/,d=/^!\[([^\]]*)\]\((\S+?)(?:\s+"[^"]*")?\)\s*$/,g=/^\[([^\]]+)\]\((\S+?)(?:\s+"[^"]*")?\)\s*$/,h=/^(`{3,}|~{3,})\s*(\S+)?\s*$/;let w=!1,S=[],$=null;function _(C){S.push(C)}function P(){if($&&S.length>0){for(;S.length>0&&S[0].trim()==="";)S.shift();for(;S.length>0&&S[S.length-1].trim()==="";)S.pop();const C=S.join(`
3
+ `);let w=0;for(const J of h){const I=di(J,s,ai[c]);w+=Math.max(1,Math.ceil(I/mi))}w=Math.max(1,w);const $=!!(t.richContent&&(t.richContent.kind==="code"||t.richContent.kind==="table"))?Math.ceil(s*1.2)+6+Math.ceil(s*1.2*(w-1)):Aa(o,n)+Math.ceil(s*1.2*(w-1));let _=0;if(t.link&&(_+=ui),t.note&&(_+=ui),_>0){const J=(t.link?1:0)+(t.note?1:0);_+=fi*J}const P=14,z=2;let C=0;t.markers&&t.markers.length>0&&(C=t.markers.length*P+(t.markers.length-1)*z+fi);const x=18,k=4,f=t.tags&&t.tags.length>0?x:0,R=g+_+C,E=(()=>{const J=Math.round(wa[c]*n/14);if(t.richContent&&(t.richContent.kind==="code"||t.richContent.kind==="table")){const I=l==null?void 0:l[t.id];return Math.max(J,I??240)}return J})(),Y=!!(t.richContent&&(t.richContent.kind==="code"||t.richContent.kind==="table")),K=r==null?void 0:r[t.id],ee=Y?Math.max(24,K??Math.max(70,Math.ceil(s*5))):0,ae=ee>0?10:0;if(!t.image){const J=Math.max(E,R),I=Math.ceil($+ae+ee+(f>0?k+f:0));return{w:J,h:I}}const ie=za(t.image.width,Ra,Ba),X=Math.max(E,R,Math.ceil(ie+d*2)),te=Math.ceil(t.image.height+Ia+$+ae+ee+(f>0?k+f:0));return{w:X,h:te}}function La(t,o={}){const n=o.mode??"mindmap",r=o.preservePositions===!0,l=o.baseFontSize??14,c=gi(t,0,null,1,"right",l,o.richHeights,o.richWidths);return Va(c),Da(c,n,r),c.x=0,c.y=0,$a(c,r)}function Da(t,o,n=!1){if(o==="mindmap"){const r=t.children;if(r.length!==0)if(r.length===1)r[0]._dir="right",r[0].side=1,r[0]._dirRight=1;else{const u=r.reduce((w,S)=>w+S._subtreeH,0);let d=1,g=Math.abs(r[0]._subtreeH-(u-r[0]._subtreeH)),h=0;for(let w=0;w<r.length-1;w++){h+=r[w]._subtreeH;const S=Math.abs(h-(u-h));S<g&&(g=S,d=w+1)}for(let w=0;w<d;w++)r[w]._dir="right",r[w].side=1,r[w]._dirRight=1;for(let w=d;w<r.length;w++)r[w]._dir="left",r[w].side=-1,r[w]._dirRight=-1}const l=t.children.filter(u=>u.side===1),c=t.children.filter(u=>u.side===-1),s=(u,d)=>{const g=d==="right"?1:-1;u._dir=d,u.side=g,u._dirRight=g;for(const h of u.children)s(h,d)};for(const u of l)s(u,"right");for(const u of c)s(u,"left");if(l.length>0){const u={...t,children:l};_o(u,"right",ro,!0,n)}if(c.length>0){const u={...t,children:c};_o(u,"left",ro,!0,n)}}else if(o==="tree"){const r=l=>{l.side=1,l._dir="right";for(const c of l.children)r(c)};for(const l of t.children)l._dir="right";_o(t,"right",ro,!0,n),r(t)}else{for(const r of t.children)r._dir="down";pi(t,ro,n)}}function _o(t,o,n,r,l=!1){if(t.children.length===0)return;const c=t.children.reduce((h,w,S)=>h+w._subtreeH+(S>0?In:0),0),s=o==="right"?1:-1,u=r?s:1;let d=t.y-u*c/2;const g=si(t.depth);t.children.forEach(h=>{l||(h.x=t.x+s*(t.width/2+g+h.width/2),h.y=d+u*h._subtreeH/2),h._dir=o,d+=u*(h._subtreeH+In),_o(h,o,n,!1,l)})}function pi(t,o,n=!1){if(t.children.length===0)return;const r=t.children.reduce((s,u,d)=>s+u._subtreeW+(d>0?In*2:0),0);let l=t.x-r/2;const c=si(t.depth);t.children.forEach(s=>{n||(s.x=l+s._subtreeW/2,s.y=t.y+t.height/2+c+s.height/2),s._dir="down",l+=s._subtreeW+In*2,pi(s,o,n)})}function gi(t,o,n,r,l,c,s,u){const d=Oa(t,o,c,s,u),g={id:t.id,text:t.text,depth:o,x:t._x??0,y:t._y??0,width:d.w,height:d.h,fontSize:fr(o,c),isRoot:o===0,collapsed:t.collapsed,side:r,_dir:l,_dirRight:r,_subtreeH:d.h,_subtreeW:d.w,image:t.image?{...t.image}:void 0,link:t.link?{url:t.link.url}:void 0,note:t.note?{text:t.note.text}:void 0,richContent:t.richContent?{kind:t.richContent.kind,raw:t.richContent.raw,lang:t.richContent.lang}:void 0,markers:t.markers?[...t.markers]:void 0,tags:t.tags?[...t.tags]:void 0,children:[],parent:n};if(t.collapsed)return g;const h=t.children.length,w=Math.ceil(h/2);return g.children=t.children.map((S,$)=>{const _=o===0?$<w?1:-1:r;return gi(S,o+1,g,_,l,c,s,u)}),g}function Va(t){const o=[t];for(let n=0;n<o.length;n++){const r=o[n];for(const l of r.children)o.push(l)}for(let n=o.length-1;n>=0;n--){const r=o[n];if(r.collapsed||r.children.length===0){r._subtreeH=r.height,r._subtreeW=r.width;continue}let l=0,c=0;for(const s of r.children)l+=s._subtreeH,c+=s._subtreeW;r.children.length>1&&(l+=In*(r.children.length-1),c+=In*2*(r.children.length-1)),r._subtreeH=Math.max(r.height,l),r._subtreeW=Math.max(r.width,c)}}function $a(t,o=!1){const n=[t];let r=1/0,l=-1/0,c=1/0,s=-1/0;for(;n.length;){const g=n.pop(),h=g.width/2,w=g.height/2;g.x-h<r&&(r=g.x-h),g.x+h>l&&(l=g.x+h),g.y-w<c&&(c=g.y-w),g.y+w>s&&(s=g.y+w),n.push(...g.children)}if(o)return{root:t,width:l-r+At*2,height:s-c+At*2,vbX:r-At,vbY:c-At,vbW:l-r+At*2,vbH:s-c+At*2};const u=At-c,d=[t];for(;d.length;){const g=d.pop();g.y+=u,d.push(...g.children)}return c+=u,s+=u,{root:t,width:l-r+At*2,height:s+At,vbX:r-At,vbY:0,vbW:l-r+At*2,vbH:s+At}}const en=[{id:"default",name:"默认",colors:["#f87171","#fb923c","#fbbf24","#a3e635","#34d399","#22d3ee","#818cf8","#c084fc"]},{id:"classic",name:"经典",colors:["#ef4444","#f59e0b","#10b981","#3b82f6","#6366f1","#8b5cf6","#ec4899","#14b8a6"]},{id:"vivid",name:"活力",colors:["#dc2626","#ea580c","#ca8a04","#16a34a","#0891b2","#2563eb","#7c3aed","#db2777"]},{id:"dev",name:"代码",colors:["#f472b6","#a78bfa","#60a5fa","#38bdf8","#22d3ee","#34d399","#facc15","#fb923c"]},{id:"mint",name:"薄荷",colors:["#5eead4","#67e8f9","#93c5fd","#c4b5fd","#fbcfe8","#fde68a","#a7f3d0","#bae6fd"]}];function Pa(t,o=[]){return[...en,...o].find(r=>r.id===t)??en[0]}function Fa(t,o=8){const n=[],r=new Set,l=/#[0-9a-fA-F]{3,8}\b|rgba?\([^)]+\)|[A-Za-z][A-Za-z0-9_-]{2,30}/g;let c;for(;(c=l.exec(t))!==null;){const s=c[0];let u=null;if(s.startsWith("#")?u=Ua(s):s.startsWith("rgb")?u=Ha(s):u=Wa[s.toLowerCase()]??null,!u)continue;const d=u.toLowerCase();if(!r.has(d)&&(r.add(d),n.push(d),n.length>=o))break}return n}function Ua(t){const o=t.startsWith("#")?t.slice(1):t;if(!/^[0-9a-fA-F]+$/.test(o))return null;let n;if(o.length===3)n=o.split("").map(r=>r+r).join("");else if(o.length===4)n=o.slice(0,3).split("").map(r=>r+r).join("");else if(o.length===6)n=o;else if(o.length===8)n=o.slice(0,6);else return null;return"#"+n.toLowerCase()}function Ha(t){const o=t.match(/^rgba?\(\s*([^)]+?)\s*\)$/i);if(!o)return null;const n=o[1].split(/\s*,\s*/);if(n.length<3)return null;const r=[];for(let l=0;l<3;l++){const c=n[l];if(c.endsWith("%")){const s=parseFloat(c);if(!isFinite(s))return null;r.push(Math.round(s/100*255))}else{const s=parseInt(c,10);if(!isFinite(s)||s<0||s>255)return null;r.push(s)}}return"#"+r.map(l=>l.toString(16).padStart(2,"0")).join("").toLowerCase()}const Wa={black:"#000000",white:"#ffffff",red:"#ff0000",green:"#008000",blue:"#0000ff",yellow:"#ffff00",cyan:"#00ffff",magenta:"#ff00ff",gray:"#808080",grey:"#808080",silver:"#c0c0c0",maroon:"#800000",olive:"#808000",lime:"#00ff00",aqua:"#00ffff",teal:"#008080",navy:"#000080",fuchsia:"#ff00ff",purple:"#800080",orange:"#ffa500",pink:"#ffc0cb",brown:"#a52a2a",gold:"#ffd700",coral:"#ff7f50",tomato:"#ff6347",salmon:"#fa8072",khaki:"#f0e68c",violet:"#ee82ee",indigo:"#4b0082",turquoise:"#40e0d0",chocolate:"#d2691e",crimson:"#dc143c",darkred:"#8b0000",darkblue:"#00008b",darkgreen:"#006400",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightblue:"#add8e6",lightgreen:"#90ee90",lightyellow:"#ffffe0",lightpink:"#ffb6c1",skyblue:"#87ceeb",forestgreen:"#228b22",royalblue:"#4169e1",steelblue:"#4682b4",hotpink:"#ff69b4",deeppink:"#ff1493",orangered:"#ff4500",goldenrod:"#daa520",mediumpurple:"#9370db"};function Gt(){return"n_"+Math.random().toString(36).slice(2,10)+Date.now().toString(36).slice(-4)}function _t(t){return JSON.parse(JSON.stringify(t))}function re(t,o){if(t.id===o)return t;for(const n of t.children){const r=re(n,o);if(r)return r}return null}function Lt(t,o,n=null){if(t.id===o)return n;for(const r of t.children){const l=Lt(r,o,t);if(l!==null)return l}return null}function Mo(t,o){const n=t.children.findIndex(r=>r.id===o);if(n>=0)return t.children.splice(n,1),!0;for(const r of t.children)if(Mo(r,o))return!0;return!1}function Ga(t,o,n){const r=re(t,o);return!r||r.text===n?!1:(r.text=n,!0)}function ja(t,o,n,r){if(!Lt(t,o)||o===n||re(re(t,o),n))return!1;const l=Lt(t,o),c=l.children.findIndex(g=>g.id===o);if(c<0)return!1;const[s]=l.children.splice(c,1);if(r==="child"){const g=re(t,n);return g?(g.children.push(s),!0):(l.children.splice(c,0,s),!1)}const u=Lt(t,n);if(!u)return l.children.splice(c,0,s),!1;let d=u.children.findIndex(g=>g.id===n);return d<0?(l.children.splice(c,0,s),!1):(r==="after"&&(d+=1),u.children.splice(d,0,s),!0)}function hi(t){const o=/^新节点(?:\s+(\d+))?$/;let n=0,r=!1;for(const l of t.children){const c=l.text.match(o);if(c)if(c[1]){const s=parseInt(c[1],10);s>n&&(n=s)}else r=!0}return n===0&&!r?Ro:n>0?`新节点 ${n+1}`:"新节点 2"}function bi(t,o,n){const r=re(t,o);if(!r)return null;const l={id:Gt(),text:n??hi(r),children:[]};return r.children.push(l),l}function ki(t,o,n){const r=Lt(t,o);if(!r)return null;const l=r.children.findIndex(s=>s.id===o);if(l<0)return null;const c={id:Gt(),text:n??hi(r),children:[]};return r.children.splice(l+1,0,c),c}function Ka(t,o,n){const r=Lt(t,o);if(!r)return null;const l=r.children.findIndex(s=>s.id===o);if(l<0)return null;const c={id:Gt(),text:n,children:[]};return r.children.splice(l,0,c),c}function Ya(t,o){const n=Lt(t,o);if(!n)return null;const r=n.children.findIndex(s=>s.id===o);if(r<0)return null;const l=n.children[r],c=_t(l);return vo(c),n.children.splice(r+1,0,c),c}function vo(t){t.id=Gt();for(const o of t.children)vo(o)}function yi(t,o){const n=re(t,o);if(!n||n.id===t.id)return null;const r=_t(n);return vo(r),r}const Ro="新节点";function zn(t,o="导入的导图"){const n=t.split(/\r?\n/),r={id:Gt(),text:o,children:[]},l=[r],c=[-1/0],s=[],u=/^(#{1,6})\s+(.+?)\s*#*\s*$/,d=/^!\[([^\]]*)\]\((\S+?)(?:\s+"[^"]*")?\)\s*$/,g=/^\[([^\]]+)\]\((\S+?)(?:\s+"[^"]*")?\)\s*$/,h=/^(`{3,}|~{3,})\s*(\S+)?\s*$/;let w=!1,S=[],$=null;function _(C){S.push(C)}function P(){if($&&S.length>0){for(;S.length>0&&S[0].trim()==="";)S.shift();for(;S.length>0&&S[S.length-1].trim()==="";)S.pop();const C=S.join(`
4
4
  `);C&&($.note={text:C})}w=!1,S=[]}for(const C of n){if(w){const E=C.match(h);if(E&&E[1][0]==="`"){P();continue}_(C);continue}const x=C.match(u);if(x){const E=x[1].length,Y=x[2].trim();s.push({level:E,text:Y,body:""}),$=s[s.length-1];continue}const k=C.match(h);if(k&&k[2]==="note"){w=!0,S=[];continue}const f=C.match(d);if(f&&$){const E=f[2],Y=160,K=120;$.image={src:E,naturalW:Y,naturalH:K,width:Y,height:K};continue}const R=C.match(g);if(R&&$){$.link={url:R[2]},$.text=R[1];continue}if(C.trim().length>0&&$){const E=C.trim();$.body=$.body?$.body+`
5
5
  `+E:E}}w&&P();function z(C){for(;l.length>1;){const R=l.length-1,E=c[R];if(E!==void 0&&E<C.level)break;l.pop(),c.pop()}const x=l[l.length-1],k=C.text,f={id:Gt(),text:k,children:[]};C.image&&(f.image={...C.image}),C.link&&(f.link={url:C.link.url}),C.note&&(f.note={text:C.note.text}),C.body&&(f.note={text:C.body}),x.children.push(f),l.push(f),c.push(C.level)}for(const C of s)z(C);if(s.length>0&&s[0].level===1){const C=r.children[0];C&&(r.text=C.text,r.id=C.id,C.image&&(r.image={...C.image}),C.link&&(r.link={url:C.link.url}),C.note&&(r.note={text:C.note.text}),r.children=C.children)}return r}function On(t,o=1){let n="#".repeat(o)+" "+(t.text||"")+`
6
6
  `;t.link&&(n+=`[${t.text||"link"}](${t.link.url})
@@ -165,4 +165,4 @@ function walk(n: Node) {
165
165
  | --- | --- | --- | --- | --- |
166
166
  | 1 | 2 | 3 | 4 | 5 |
167
167
  | 6 | 7 | 8 | 9 | 10 |`},children:[]}]},{id:"r_note",text:"笔记 (note)",note:{text:`节点右上角的便签图标。
168
- 鼠标悬浮预览前 60 字,点击打开完整笔记编辑器。`},children:[{id:"r_note_a",text:"悬浮预览",children:[]},{id:"r_note_b",text:"点击展开编辑",children:[]},{id:"r_note_c",text:"export → ```note 围栏",children:[]}]},{id:"r_link",text:"链接 (link)",link:{url:"https://github.com/xz333221/flow-mindmap"},children:[{id:"r_link_a",text:"节点右侧的小图标",children:[]},{id:"r_link_b",text:"点击在新 tab 打开",children:[]},{id:"r_link_c",text:"export → [label](url)",children:[]}]},{id:"r_para",text:"段落 / 列表 (子节点)",children:[{id:"r_para_a",text:"段落不再是父节点框内文字",children:[]},{id:"r_para_b",text:"列表每项一个子节点",children:[]},{id:"r_para_c",text:"节点框大小保持一致,边线对齐",children:[]}]}]};function n(){return typeof location<"u"&&location.hash==="#fan"?r:typeof location<"u"&&location.hash==="#stress"?l:(typeof location<"u"&&location.hash==="#rich",o)}const r={id:"root",text:"flow-mindmap 思维导图",children:[{id:"n_a",text:"主题一",children:[]},{id:"n_b",text:"主题二",children:[]},{id:"n_c",text:"主题三",children:[]},{id:"n_d",text:"主题四",children:[]},{id:"n_e",text:"主题五",children:[]},{id:"n_f",text:"主题六",children:[]},{id:"n_g",text:"主题七",children:[]},{id:"n_h",text:"主题八",children:[]},{id:"n_i",text:"主题九",children:[]}]},l=(()=>{const y=(V,q)=>({id:V,text:q,children:[]}),p=[y("s_l1","左一"),y("s_l2","左二"),y("s_l3","左三"),y("s_l4","左四"),y("s_l5","左五"),y("s_l6","左六"),y("s_l7","左七")],L=[y("s_r1","右一"),y("s_r2","右二"),y("s_r3","右三"),y("s_r4","右四"),y("s_r5","右五"),y("s_r6","右六"),y("s_r7","右七")];return{id:"root",text:"flow-mindmap 思维导图",children:[...p,...L]}})(),c=e.ref(o),s=e.ref(null),u=e.ref(new Set),d=e.ref(!1),g=e.ref(!1),h=e.ref(!1),w=e.ref(!1),S=e.ref(0),$=e.ref(!1),_=e.ref(!1),P=e.ref(null);function z(){c.value=n()}function C(){g.value=!0,h.value=!1,w.value=!1}function x(y){C()}const k=e.reactive({autoBalanceOnChange:!0,lineWidthStart:12,lineWidthEnd:3.6,rainbowBranch:!0,branchPaletteId:"default",customPalettes:[],lineStyle:"curve",layoutMode:"mindmap",taperedEdge:!0,showOrderBadge:!1,canvasBg:void 0}),f=e.computed(()=>{var y;return s.value?((y=P.value)==null?void 0:y.getNodeStyle(s.value.id))??{}:{}});function R(y){var p;Object.assign(k,y),(p=P.value)==null||p.applySettings(y)}function E(y){var p;s.value&&((p=P.value)==null||p.applyNodeStyle(s.value.id,y))}function Y(){var p;const y={autoBalanceOnChange:!0,lineWidthStart:12,lineWidthEnd:.6,rainbowBranch:!0,branchPaletteId:"default",customPalettes:[],lineStyle:"curve",layoutMode:"mindmap",taperedEdge:!0,showOrderBadge:!1,canvasBg:void 0};Object.assign(k,y),(p=P.value)==null||p.applySettings(y)}function K(y){if(y.key==="Escape"){if($.value){$.value=!1,y.stopPropagation();return}_.value&&(_.value=!1,y.stopPropagation())}}e.onMounted(()=>{var y;document.addEventListener("keydown",K),window.addEventListener("hashchange",z),(y=P.value)==null||y.applySettings({rainbowBranch:k.rainbowBranch,branchPaletteId:k.branchPaletteId,customPalettes:k.customPalettes,lineWidthStart:k.lineWidthStart,lineWidthEnd:k.lineWidthEnd,lineStyle:k.lineStyle})}),e.onBeforeUnmount(()=>{document.removeEventListener("keydown",K),window.removeEventListener("hashchange",z)});function ee(y){c.value=y}function ae(y){var L;const p=y&&y.length>0?y[0]:null;s.value=p,p?!w.value&&((L=P.value)!=null&&L.nodeHasContent(p.id))&&(g.value=!1,h.value=!1,w.value=!0):w.value=!1}e.watch(c,y=>{if(!s.value)return;const p=X(y,s.value.id);p?p!==s.value&&(s.value=p):s.value=null},{deep:!1});function ie(y){if(!s.value||s.value.id!==y){const p=X(c.value,y);p&&(s.value=p)}g.value=!1,h.value=!1,w.value=!0,S.value++}function X(y,p){if(y.id===p)return y;for(const L of y.children){const V=X(L,p);if(V)return V}return null}function te(y){var p;s.value&&((p=P.value)==null||p.applyNodeNote(s.value.id,y))}function J(){var y;s.value&&((y=P.value)==null||y.removeNodeNote(s.value.id))}function I(y){var p;s.value&&((p=P.value)==null||p.applyNodeLink(s.value.id,y))}function A(y){var p;s.value&&((p=P.value)==null||p.applyNodeImageByUrl(s.value.id,y))}function U(y){var p;s.value&&((p=P.value)==null||p.applyNodeRichContent(s.value.id,y))}function F(y){const p=document.querySelector(`[data-node-id="${y.id}"]`);p&&p.click()}function G(y){const p=new Set(u.value);p.has(y)?p.delete(y):p.add(y),u.value=p}function le(y){var p;(p=P.value)==null||p.setNodeText(y.id,y.text)}function Ne(y){var p;(p=P.value)==null||p.addChild(y)}function _e(y){var p;(p=P.value)==null||p.addSibling(y)}function Re(y){var p;(p=P.value)==null||p.moveNode(y.srcId,y.targetId,y.position)}const xe=e.computed(()=>{var y;return((y=s.value)==null?void 0:y.id)??null});return(y,p)=>(e.openBlock(),e.createElementBlock("div",_p,[e.createVNode(Mt,{side:"left",width:300,open:d.value,title:"大纲","onUpdate:open":p[0]||(p[0]=L=>d.value=L)},{default:e.withCtx(()=>[e.createVNode(zo,{data:c.value,"selected-id":xe.value,"collapsed-ids":u.value,onSelect:F,onToggleCollapse:G,onEdit:le,onAddChild:Ne,onAddSibling:_e,onMove:Re},null,8,["data","selected-id","collapsed-ids"])]),_:1},8,["open"]),e.createElementVNode("main",Mp,[_.value?(e.openBlock(),e.createElementBlock("button",{key:0,class:"zm-app-preview-exit",title:"退出预览 (Esc)",onClick:p[1]||(p[1]=L=>_.value=!1)},[...p[11]||(p[11]=[e.createElementVNode("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),e.createElementVNode("line",{x1:"2",y1:"2",x2:"22",y2:"22"})],-1)])])):e.createCommentVNode("",!0),e.createElementVNode("div",vp,[e.createVNode(Jo,{ref_key:"mindMapRef",ref:P,data:c.value,"preview-mode":_.value,"built-in-drawers":!1,onChange:ee,onSelect:ae,onEditNote:ie,onCanvasSettings:p[2]||(p[2]=L=>$.value=!0),onCanvasData:C,onCanvasImport:x,onCanvasTogglePreview:p[3]||(p[3]=L=>_.value=!_.value),onCanvasOutline:p[4]||(p[4]=L=>d.value=!0)},null,8,["data","preview-mode"])])]),e.createVNode(Mt,{side:"right",width:360,open:g.value&&!_.value,title:"数据","onUpdate:open":p[6]||(p[6]=L=>g.value=L)},{default:e.withCtx(()=>[e.createVNode(Oo,{data:c.value,onImport:p[5]||(p[5]=L=>c.value=L)},null,8,["data"])]),_:1},8,["open"]),e.createVNode(Mt,{side:"right",width:420,open:h.value&&!_.value,title:"Markdown","onUpdate:open":p[8]||(p[8]=L=>h.value=L)},{default:e.withCtx(()=>[e.createVNode(Lo,{data:c.value,onImport:p[7]||(p[7]=L=>c.value=L)},null,8,["data"])]),_:1},8,["open"]),e.createVNode(Mt,{side:"right",width:360,open:w.value&&!_.value,title:"节点内容","onUpdate:open":p[9]||(p[9]=L=>w.value=L)},{default:e.withCtx(()=>[e.createVNode(Zo,{"selected-node":s.value,readonly:!1,"focus-tick":S.value,onApply:te,onRemove:J,onSetLink:I,onSetImage:A,onSetRich:U},null,8,["selected-node","focus-tick"])]),_:1},8,["open"]),e.createVNode(Mt,{side:"right",width:340,open:$.value&&!_.value,title:"设置","onUpdate:open":p[10]||(p[10]=L=>$.value=L)},{default:e.withCtx(()=>{var L;return[e.createVNode(Do,{settings:k,"has-selection":s.value!==null,"selected-node-text":(L=s.value)==null?void 0:L.text,"node-style":f.value,"onUpdate:settings":R,"onUpdate:nodeStyle":E,onReset:Y},null,8,["settings","has-selection","selected-node-text","node-style"])]}),_:1},8,["open"])]))}}),Rp="0.5.2",Bp={install(t){t.component("FlowMindMap",Jo),t.component("FlowMindMapOutline",zo),t.component("FlowMindMapDrawer",Mt),t.component("FlowMindMapDataPanel",Oo),t.component("FlowMindMapMarkdownPanel",Lo),t.component("FlowMindMapSettingsPanel",Do),t.component("FlowMindMapNotePanel",Zo),t.component("FlowMindMapApp",Gl)}};he.DataPanel=Oo,he.Drawer=Mt,he.MARKER_LIB=pr,he.MarkdownPanel=Lo,he.MindMap=Jo,he.MindMapApp=Gl,he.NotePanel=Zo,he.Outline=zo,he.SettingsPanel=Do,he.VERSION=Rp,he.addChild=bi,he.addSibling=ki,he.clone=_t,he.default=Bp,he.findNode=re,he.findParent=Lt,he.markdownToMindMap=zn,he.markdownToRichMindMap=Xa,he.markerDef=as,he.markerLabel=xi,he.markerSvg=Io,he.mindMapToMarkdown=On,he.removeNode=Mo,he.richBlockToMarkdown=Za,he.tagColor=gr,he.uid=Gt,Object.defineProperties(he,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
168
+ 鼠标悬浮预览前 60 字,点击打开完整笔记编辑器。`},children:[{id:"r_note_a",text:"悬浮预览",children:[]},{id:"r_note_b",text:"点击展开编辑",children:[]},{id:"r_note_c",text:"export → ```note 围栏",children:[]}]},{id:"r_link",text:"链接 (link)",link:{url:"https://github.com/xz333221/flow-mindmap"},children:[{id:"r_link_a",text:"节点右侧的小图标",children:[]},{id:"r_link_b",text:"点击在新 tab 打开",children:[]},{id:"r_link_c",text:"export → [label](url)",children:[]}]},{id:"r_para",text:"段落 / 列表 (子节点)",children:[{id:"r_para_a",text:"段落不再是父节点框内文字",children:[]},{id:"r_para_b",text:"列表每项一个子节点",children:[]},{id:"r_para_c",text:"节点框大小保持一致,边线对齐",children:[]}]}]};function n(){return typeof location<"u"&&location.hash==="#fan"?r:typeof location<"u"&&location.hash==="#stress"?l:(typeof location<"u"&&location.hash==="#rich",o)}const r={id:"root",text:"flow-mindmap 思维导图",children:[{id:"n_a",text:"主题一",children:[]},{id:"n_b",text:"主题二",children:[]},{id:"n_c",text:"主题三",children:[]},{id:"n_d",text:"主题四",children:[]},{id:"n_e",text:"主题五",children:[]},{id:"n_f",text:"主题六",children:[]},{id:"n_g",text:"主题七",children:[]},{id:"n_h",text:"主题八",children:[]},{id:"n_i",text:"主题九",children:[]}]},l=(()=>{const y=(V,q)=>({id:V,text:q,children:[]}),p=[y("s_l1","左一"),y("s_l2","左二"),y("s_l3","左三"),y("s_l4","左四"),y("s_l5","左五"),y("s_l6","左六"),y("s_l7","左七")],L=[y("s_r1","右一"),y("s_r2","右二"),y("s_r3","右三"),y("s_r4","右四"),y("s_r5","右五"),y("s_r6","右六"),y("s_r7","右七")];return{id:"root",text:"flow-mindmap 思维导图",children:[...p,...L]}})(),c=e.ref(o),s=e.ref(null),u=e.ref(new Set),d=e.ref(!1),g=e.ref(!1),h=e.ref(!1),w=e.ref(!1),S=e.ref(0),$=e.ref(!1),_=e.ref(!1),P=e.ref(null);function z(){c.value=n()}function C(){g.value=!0,h.value=!1,w.value=!1}function x(y){C()}const k=e.reactive({autoBalanceOnChange:!0,lineWidthStart:12,lineWidthEnd:3.6,rainbowBranch:!0,branchPaletteId:"default",customPalettes:[],lineStyle:"curve",layoutMode:"mindmap",taperedEdge:!0,showOrderBadge:!1,canvasBg:void 0}),f=e.computed(()=>{var y;return s.value?((y=P.value)==null?void 0:y.getNodeStyle(s.value.id))??{}:{}});function R(y){var p;Object.assign(k,y),(p=P.value)==null||p.applySettings(y)}function E(y){var p;s.value&&((p=P.value)==null||p.applyNodeStyle(s.value.id,y))}function Y(){var p;const y={autoBalanceOnChange:!0,lineWidthStart:12,lineWidthEnd:.6,rainbowBranch:!0,branchPaletteId:"default",customPalettes:[],lineStyle:"curve",layoutMode:"mindmap",taperedEdge:!0,showOrderBadge:!1,canvasBg:void 0};Object.assign(k,y),(p=P.value)==null||p.applySettings(y)}function K(y){if(y.key==="Escape"){if($.value){$.value=!1,y.stopPropagation();return}_.value&&(_.value=!1,y.stopPropagation())}}e.onMounted(()=>{var y;document.addEventListener("keydown",K),window.addEventListener("hashchange",z),(y=P.value)==null||y.applySettings({rainbowBranch:k.rainbowBranch,branchPaletteId:k.branchPaletteId,customPalettes:k.customPalettes,lineWidthStart:k.lineWidthStart,lineWidthEnd:k.lineWidthEnd,lineStyle:k.lineStyle})}),e.onBeforeUnmount(()=>{document.removeEventListener("keydown",K),window.removeEventListener("hashchange",z)});function ee(y){c.value=y}function ae(y){var L;const p=y&&y.length>0?y[0]:null;s.value=p,p?!w.value&&((L=P.value)!=null&&L.nodeHasContent(p.id))&&(g.value=!1,h.value=!1,w.value=!0):w.value=!1}e.watch(c,y=>{if(!s.value)return;const p=X(y,s.value.id);p?p!==s.value&&(s.value=p):s.value=null},{deep:!1});function ie(y){if(!s.value||s.value.id!==y){const p=X(c.value,y);p&&(s.value=p)}g.value=!1,h.value=!1,w.value=!0,S.value++}function X(y,p){if(y.id===p)return y;for(const L of y.children){const V=X(L,p);if(V)return V}return null}function te(y){var p;s.value&&((p=P.value)==null||p.applyNodeNote(s.value.id,y))}function J(){var y;s.value&&((y=P.value)==null||y.removeNodeNote(s.value.id))}function I(y){var p;s.value&&((p=P.value)==null||p.applyNodeLink(s.value.id,y))}function A(y){var p;s.value&&((p=P.value)==null||p.applyNodeImageByUrl(s.value.id,y))}function U(y){var p;s.value&&((p=P.value)==null||p.applyNodeRichContent(s.value.id,y))}function F(y){const p=document.querySelector(`[data-node-id="${y.id}"]`);p&&p.click()}function G(y){const p=new Set(u.value);p.has(y)?p.delete(y):p.add(y),u.value=p}function le(y){var p;(p=P.value)==null||p.setNodeText(y.id,y.text)}function Ne(y){var p;(p=P.value)==null||p.addChild(y)}function _e(y){var p;(p=P.value)==null||p.addSibling(y)}function Re(y){var p;(p=P.value)==null||p.moveNode(y.srcId,y.targetId,y.position)}const xe=e.computed(()=>{var y;return((y=s.value)==null?void 0:y.id)??null});return(y,p)=>(e.openBlock(),e.createElementBlock("div",_p,[e.createVNode(Mt,{side:"left",width:300,open:d.value,title:"大纲","onUpdate:open":p[0]||(p[0]=L=>d.value=L)},{default:e.withCtx(()=>[e.createVNode(zo,{data:c.value,"selected-id":xe.value,"collapsed-ids":u.value,onSelect:F,onToggleCollapse:G,onEdit:le,onAddChild:Ne,onAddSibling:_e,onMove:Re},null,8,["data","selected-id","collapsed-ids"])]),_:1},8,["open"]),e.createElementVNode("main",Mp,[_.value?(e.openBlock(),e.createElementBlock("button",{key:0,class:"zm-app-preview-exit",title:"退出预览 (Esc)",onClick:p[1]||(p[1]=L=>_.value=!1)},[...p[11]||(p[11]=[e.createElementVNode("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),e.createElementVNode("line",{x1:"2",y1:"2",x2:"22",y2:"22"})],-1)])])):e.createCommentVNode("",!0),e.createElementVNode("div",vp,[e.createVNode(Jo,{ref_key:"mindMapRef",ref:P,data:c.value,"preview-mode":_.value,"built-in-drawers":!1,onChange:ee,onSelect:ae,onEditNote:ie,onCanvasSettings:p[2]||(p[2]=L=>$.value=!0),onCanvasData:C,onCanvasImport:x,onCanvasTogglePreview:p[3]||(p[3]=L=>_.value=!_.value),onCanvasOutline:p[4]||(p[4]=L=>d.value=!0)},null,8,["data","preview-mode"])])]),e.createVNode(Mt,{side:"right",width:360,open:g.value&&!_.value,title:"数据","onUpdate:open":p[6]||(p[6]=L=>g.value=L)},{default:e.withCtx(()=>[e.createVNode(Oo,{data:c.value,onImport:p[5]||(p[5]=L=>c.value=L)},null,8,["data"])]),_:1},8,["open"]),e.createVNode(Mt,{side:"right",width:420,open:h.value&&!_.value,title:"Markdown","onUpdate:open":p[8]||(p[8]=L=>h.value=L)},{default:e.withCtx(()=>[e.createVNode(Lo,{data:c.value,onImport:p[7]||(p[7]=L=>c.value=L)},null,8,["data"])]),_:1},8,["open"]),e.createVNode(Mt,{side:"right",width:360,open:w.value&&!_.value,title:"节点内容","onUpdate:open":p[9]||(p[9]=L=>w.value=L)},{default:e.withCtx(()=>[e.createVNode(Zo,{"selected-node":s.value,readonly:!1,"focus-tick":S.value,onApply:te,onRemove:J,onSetLink:I,onSetImage:A,onSetRich:U},null,8,["selected-node","focus-tick"])]),_:1},8,["open"]),e.createVNode(Mt,{side:"right",width:340,open:$.value&&!_.value,title:"设置","onUpdate:open":p[10]||(p[10]=L=>$.value=L)},{default:e.withCtx(()=>{var L;return[e.createVNode(Do,{settings:k,"has-selection":s.value!==null,"selected-node-text":(L=s.value)==null?void 0:L.text,"node-style":f.value,"onUpdate:settings":R,"onUpdate:nodeStyle":E,onReset:Y},null,8,["settings","has-selection","selected-node-text","node-style"])]}),_:1},8,["open"])]))}}),Rp="0.5.3",Bp={install(t){t.component("FlowMindMap",Jo),t.component("FlowMindMapOutline",zo),t.component("FlowMindMapDrawer",Mt),t.component("FlowMindMapDataPanel",Oo),t.component("FlowMindMapMarkdownPanel",Lo),t.component("FlowMindMapSettingsPanel",Do),t.component("FlowMindMapNotePanel",Zo),t.component("FlowMindMapApp",Gl)}};he.DataPanel=Oo,he.Drawer=Mt,he.MARKER_LIB=pr,he.MarkdownPanel=Lo,he.MindMap=Jo,he.MindMapApp=Gl,he.NotePanel=Zo,he.Outline=zo,he.SettingsPanel=Do,he.VERSION=Rp,he.addChild=bi,he.addSibling=ki,he.clone=_t,he.default=Bp,he.findNode=re,he.findParent=Lt,he.markdownToMindMap=zn,he.markdownToRichMindMap=Xa,he.markerDef=as,he.markerLabel=xi,he.markerSvg=Io,he.mindMapToMarkdown=On,he.removeNode=Mo,he.richBlockToMarkdown=Za,he.tagColor=gr,he.uid=Gt,Object.defineProperties(he,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/dist/style.css CHANGED
@@ -7,4 +7,4 @@
7
7
 
8
8
  Outdated base version: https://github.com/primer/github-syntax-light
9
9
  Current colors taken from GitHub's CSS
10
- */.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}.zm-mindmap{position:relative;width:100%;height:100%;overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;-webkit-user-select:none;user-select:none}.zm-canvas{position:absolute;top:0;right:0;bottom:0;left:0;cursor:grab}.zm-canvas:active{cursor:grabbing}.zm-world{position:absolute;left:0;top:0;transform-origin:0 0}.zm-svg-layer{position:absolute;pointer-events:none;overflow:visible}.zm-marquee{position:absolute;border:1px dashed #3b82f6;background:#3b82f614;pointer-events:none;z-index:5}.zm-svg{position:absolute;left:0;top:0;pointer-events:none;overflow:visible;shape-rendering:geometricPrecision}.zm-node{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:.4em;box-sizing:border-box;border-radius:8px;border:1px solid;line-height:1.2;cursor:default;transition:box-shadow .15s;box-shadow:0 1px 2px #0000000f;white-space:nowrap;z-index:1}.zm-node:hover{box-shadow:0 4px 12px #0000001a;z-index:2}.zm-node:not(.is-root):not(.is-editing){cursor:grab}.zm-node.is-root{cursor:default}.zm-node.is-dragging-source{opacity:.4;cursor:grabbing}.zm-node.is-drop-target{outline:2px solid #4caf50;outline-offset:2px;transition:outline-color .1s ease}.zm-drag-ghost{position:absolute;pointer-events:none;z-index:10000;padding:4px 10px;background:#fff;border:1px solid #4caf50;border-radius:4px;box-shadow:0 4px 12px #00000026;font-size:13px;color:#333;white-space:nowrap;max-width:200px;overflow:hidden;text-overflow:ellipsis;will-change:transform,left,top}body.is-dragging{cursor:grabbing!important;-webkit-user-select:none;user-select:none}.zm-node.is-root{font-weight:600}.zm-node.is-selected{outline:2px solid #3b82f6;outline-offset:2px;z-index:3}.zm-node.is-selected-secondary{outline:2px solid #bfdbfe;outline-offset:2px;z-index:2}.zm-text{display:flex;align-items:center;justify-content:center;gap:4px;min-height:1.2em;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.zm-text-label{pointer-events:none;overflow:hidden;white-space:pre-line;min-width:0;flex-shrink:1}.zm-input{border:none;outline:none;background:transparent;color:inherit;font:inherit;text-align:center;width:100%;min-width:40px;resize:none;overflow:hidden;padding:0;line-height:1.2}.zm-tooltip{position:absolute;max-width:240px;padding:6px 10px;background:#0f172af0;color:#f8fafc;font-size:12px;line-height:1.4;border-radius:6px;box-shadow:0 4px 14px #0000002e;pointer-events:none;z-index:1000;white-space:normal;word-break:break-word;transform:translate(-50%,-100%);animation:zm-tooltip-in .12s ease-out}.zm-tooltip.is-below{transform:translate(-50%)}.zm-tooltip:after{content:"";position:absolute;left:50%;top:100%;transform:translate(-50%);border:4px solid transparent;border-top-color:#0f172af0}.zm-tooltip.is-below:after{top:auto;bottom:100%;border-top-color:transparent;border-bottom-color:#0f172af0}@keyframes zm-tooltip-in{0%{opacity:0;transform:translate(-50%,calc(-100% + 4px))}to{opacity:1;transform:translate(-50%,-100%)}}.zm-tooltip.is-below{animation-name:zm-tooltip-in-below}@keyframes zm-tooltip-in-below{0%{opacity:0;transform:translate(-50%,-4px)}to{opacity:1;transform:translate(-50%)}}.zm-rich{margin-top:6px;width:max-content;overflow:visible;font-size:.78em;line-height:1.35;text-align:left;border-radius:4px;padding:0 4px 4px;color:inherit}.zm-rich-above{margin:0 0 2px}.zm-rich-no-overflow{max-height:none;overflow:visible}.zm-rich-code{margin:0;padding:6px 8px;font-family:JetBrains Mono,Fira Code,Consolas,monospace;font-size:.92em;white-space:pre-wrap;word-break:break-word;background:#fffffff2;border:1px solid currentColor;border-radius:6px}.zm-rich-list{margin:0;padding-left:1.2em;list-style:disc}.zm-rich-list li{margin:1px 0}.zm-rich-table{width:100%;border-collapse:separate;border-spacing:0;font-size:.92em;background:#fffffff2;border:1px solid currentColor;border-radius:6px;overflow:hidden}.zm-rich-table td{border-top:1px solid currentColor;border-right:1px solid currentColor;padding:3px 6px;opacity:.9}.zm-rich-table tr:last-child td{border-bottom:none}.zm-rich-table td:last-child{border-right:none}.zm-rich-table-sort{position:relative;background:#fff6;font-weight:600;text-align:left;cursor:pointer;-webkit-user-select:none;user-select:none;padding:3px 6px;border-bottom:1px solid currentColor;border-right:1px solid currentColor;pointer-events:auto}.zm-rich-table-sort:last-child{border-right:none}.zm-rich-table-sort:hover{background:#ffffffa6}.zm-rich-table-sort.is-sorted{background:#ffffffb3}.zm-rich-sort-mark{position:absolute;right:4px;top:50%;transform:translateY(-50%);font-size:9px;color:#94a3b8}.zm-rich-table-sort.is-sorted .zm-rich-sort-mark{color:#1d4ed8}.zm-rich-edit{width:100%;min-height:90px;margin:0;padding:4px 6px;font-family:JetBrains Mono,Fira Code,Consolas,monospace;font-size:.92em;line-height:1.4;color:inherit;background:#fff9;border:1px solid currentColor;border-radius:3px;outline:none;resize:vertical;white-space:pre;box-sizing:border-box}.zm-rich-edit:focus{border-color:#3b82f6;box-shadow:0 0 0 2px #3b82f626}.zm-rich-paragraph{white-space:pre-wrap;word-break:break-word}.zm-btn{position:absolute;width:18px;height:18px;border-radius:50%;border:none;background:#3b82f6;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:0;transition:opacity .15s,transform .15s;z-index:4}.zm-node:hover .zm-btn,.zm-node.is-selected .zm-btn{opacity:1}.zm-btn:hover{transform:scale(1.15)}.zm-collapse{right:-8px;top:50%;width:14px;height:14px;background:#fff;border:1.5px solid;transform:translateY(-50%);box-shadow:0 1px 3px #0f172a2e}.zm-collapse.is-on-left{right:auto;left:-8px}.zm-collapse:hover{transform:translateY(-50%) scale(1.15);background:#fff}.zm-collapse-badge{position:absolute;top:50%;transform:translateY(-50%);left:calc(100% + 8px);min-width:18px;height:18px;padding:0 5px;border-radius:5px;color:#fff;font-size:11px;font-weight:600;line-height:18px;text-align:center;box-shadow:0 1px 2px #00000026;cursor:pointer;-webkit-user-select:none;user-select:none;z-index:2;transition:filter .1s}.zm-collapse-badge.is-on-left{left:auto;right:calc(100% + 8px)}.zm-collapse-badge:hover{filter:brightness(.9)}.zm-node.has-image{flex-direction:column;padding:8px;gap:6px;white-space:normal}.zm-node-img{display:block;pointer-events:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;object-fit:contain;border-radius:4px}.zm-node-link,.zm-node-note-btn{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;padding:0;border:none;background:transparent;color:currentColor;border-radius:3px;cursor:pointer;flex-shrink:0;text-decoration:none;opacity:.75;transition:opacity .1s,background .1s;pointer-events:auto}.zm-node-link:hover,.zm-node-note-btn:hover{opacity:1;background:#0f172a14}.zm-node-link svg,.zm-node-note-btn svg{display:block}.zm-img-resize-handle{position:absolute;right:-5px;bottom:-5px;width:10px;height:10px;background:#fff;border:1.5px solid #3b82f6;border-radius:2px;cursor:nwse-resize;z-index:4;box-shadow:0 1px 3px #0f172a33}.zm-node.is-resizing{cursor:nwse-resize!important}.zm-img-remove-btn{position:absolute;right:-5px;bottom:14px;width:14px;height:14px;background:#fff;border:1px solid #cbd5e1;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#64748b;padding:0;z-index:4;box-shadow:0 1px 2px #0f172a1f}.zm-img-remove-btn:hover{background:#fee2e2;color:#b91c1c;border-color:#fca5a5}.zm-order-badge{display:inline-block;margin-left:6px;padding:0 5px;font-size:10px;font-weight:600;line-height:16px;color:#475569;background:#e2e8f0;border-radius:3px;font-variant-numeric:tabular-nums;pointer-events:none;-webkit-user-select:none;user-select:none;vertical-align:middle}.zm-canvas-fab{position:absolute;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border:none;background:#fff;border:1px solid #e2e8f0;border-radius:999px;box-shadow:0 2px 8px #0f172a14;color:#475569;cursor:pointer;z-index:11;opacity:0;pointer-events:none;transform:translateY(4px);transition:opacity .18s ease,transform .18s ease,background .1s,color .1s}.zm-canvas-fab.is-visible{opacity:1;pointer-events:auto;transform:translateY(0)}.zm-canvas-fab:hover{background:#f1f5f9;color:#1e293b;box-shadow:0 4px 12px #0f172a1f}.zm-canvas-fab:active{transform:scale(.94)}.zm-canvas-fab-preview{top:16px;right:16px}.zm-canvas-fab-outline{top:16px;left:16px}.zm-toolbar{position:absolute;bottom:16px;left:50%;transform:translate(-50%);display:flex;align-items:center;gap:4px;padding:6px 10px;background:#fff;border:1px solid #e2e8f0;border-radius:999px;box-shadow:0 4px 12px #0000000f;z-index:10;transition:opacity .18s ease,transform .18s ease}.zm-toolbar.is-preview-only{opacity:0;pointer-events:none;transform:translate(-50%) translateY(8px)}.zm-toolbar.is-preview-only.is-hovered{opacity:1;pointer-events:auto;transform:translate(-50%) translateY(0)}.zm-tb-btn{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border:none;background:transparent;border-radius:6px;cursor:pointer;color:#475569}.zm-tb-btn:hover{background:#f1f5f9;color:#1e293b}.zm-tb-btn img{filter:invert(20%) sepia(15%) saturate(500%) hue-rotate(180deg);transition:filter .1s}.zm-tb-btn:hover img{filter:invert(15%) sepia(30%) saturate(800%) hue-rotate(180deg)}.zm-tb-btn.active{background:var(--zm-tb-active, #fff7ed);color:var(--zm-tb-active-fg, #c2410c)}.zm-tb-divider{width:1px;height:18px;background:#e2e8f0;margin:0 4px}.zm-tb-tip{font-size:12px;color:#64748b;min-width:38px;text-align:center}.zm-node.is-search-hit{outline:2px solid #f59e0b;outline-offset:2px;z-index:3}.zm-node.is-search-current{outline:3px solid #f97316;outline-offset:3px;z-index:4;box-shadow:0 0 0 4px #f9731626}.zm-node.is-search-dimmed{opacity:.35}.zm-node-markers{display:flex;align-items:center;gap:2px;flex-shrink:0;pointer-events:none}.zm-node-marker{display:inline-flex;width:14px;height:14px;flex-shrink:0}.zm-node-marker svg{display:block;width:14px;height:14px}.zm-node-tags{display:flex;flex-wrap:wrap;gap:3px;justify-content:center;margin-top:3px;max-width:100%;overflow:hidden}.zm-node-tag{display:inline-block;padding:1px 6px;border-radius:999px;font-size:10px;line-height:1.4;font-weight:500;white-space:nowrap;pointer-events:none}.zm-app{display:flex;width:100%;height:100%;background:#f8fafc;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;font-size:14px;color:#1e293b;overflow:hidden}.zm-app-main{flex:1;display:flex;flex-direction:column;min-width:0}.zm-app-preview-exit{position:absolute;top:12px;right:12px;z-index:10;width:32px;height:32px;border:1px solid #e2e8f0;background:#fff;color:#475569;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 2px 8px #0f172a14;transition:background .1s,color .1s,transform .1s}.zm-app-preview-exit:hover{background:#f1f5f9;color:#0f172a;transform:scale(1.05)}.zm-app-canvas{flex:1;position:relative;min-height:0}
10
+ */.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}.zm-mindmap{position:relative;width:100%;height:100%;overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;-webkit-user-select:none;user-select:none}.zm-canvas{position:absolute;top:0;right:0;bottom:0;left:0;cursor:grab}.zm-canvas:active{cursor:grabbing}.zm-world{position:absolute;left:0;top:0;transform-origin:0 0}.zm-svg-layer{position:absolute;pointer-events:none;overflow:visible}.zm-marquee{position:absolute;border:1px dashed #3b82f6;background:#3b82f614;pointer-events:none;z-index:5}.zm-svg{position:absolute;left:0;top:0;pointer-events:none;overflow:visible;shape-rendering:geometricPrecision}.zm-node{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:.4em;box-sizing:border-box;border-radius:8px;border:1px solid;line-height:1.2;cursor:default;transition:box-shadow .15s;box-shadow:0 1px 2px #0000000f;white-space:nowrap;z-index:1}.zm-node:hover{box-shadow:0 4px 12px #0000001a;z-index:2}.zm-node:not(.is-root):not(.is-editing){cursor:grab}.zm-node.is-root{cursor:default}.zm-node.is-dragging-source{opacity:.4;cursor:grabbing}.zm-node.is-drop-target{outline:2px solid #4caf50;outline-offset:2px;transition:outline-color .1s ease}.zm-drag-ghost{position:absolute;pointer-events:none;z-index:10000;padding:4px 10px;background:#fff;border:1px solid #4caf50;border-radius:4px;box-shadow:0 4px 12px #00000026;font-size:13px;color:#333;white-space:nowrap;max-width:200px;overflow:hidden;text-overflow:ellipsis;will-change:transform,left,top}body.is-dragging{cursor:grabbing!important;-webkit-user-select:none;user-select:none}.zm-node.is-root{font-weight:600}.zm-node.is-selected{outline:2px solid #3b82f6;outline-offset:2px;z-index:3}.zm-node.is-selected-secondary{outline:2px solid #bfdbfe;outline-offset:2px;z-index:2}.zm-text{display:flex;align-items:center;justify-content:center;gap:4px;min-height:1.2em;max-width:200px;overflow:hidden}.zm-text-label{pointer-events:none;overflow:hidden;white-space:pre-line;min-width:0;flex-shrink:1}.zm-input{border:none;outline:none;background:transparent;color:inherit;font:inherit;text-align:center;width:100%;min-width:40px;resize:none;overflow:hidden;padding:0;line-height:1.2}.zm-tooltip{position:absolute;max-width:240px;padding:6px 10px;background:#0f172af0;color:#f8fafc;font-size:12px;line-height:1.4;border-radius:6px;box-shadow:0 4px 14px #0000002e;pointer-events:none;z-index:1000;white-space:normal;word-break:break-word;transform:translate(-50%,-100%);animation:zm-tooltip-in .12s ease-out}.zm-tooltip.is-below{transform:translate(-50%)}.zm-tooltip:after{content:"";position:absolute;left:50%;top:100%;transform:translate(-50%);border:4px solid transparent;border-top-color:#0f172af0}.zm-tooltip.is-below:after{top:auto;bottom:100%;border-top-color:transparent;border-bottom-color:#0f172af0}@keyframes zm-tooltip-in{0%{opacity:0;transform:translate(-50%,calc(-100% + 4px))}to{opacity:1;transform:translate(-50%,-100%)}}.zm-tooltip.is-below{animation-name:zm-tooltip-in-below}@keyframes zm-tooltip-in-below{0%{opacity:0;transform:translate(-50%,-4px)}to{opacity:1;transform:translate(-50%)}}.zm-rich{margin-top:6px;width:max-content;overflow:visible;font-size:.78em;line-height:1.35;text-align:left;border-radius:4px;padding:0 4px 4px;color:inherit}.zm-rich-above{margin:0 0 2px}.zm-rich-no-overflow{max-height:none;overflow:visible}.zm-rich-code{margin:0;padding:6px 8px;font-family:JetBrains Mono,Fira Code,Consolas,monospace;font-size:.92em;white-space:pre-wrap;word-break:break-word;background:#fffffff2;border:1px solid currentColor;border-radius:6px}.zm-rich-list{margin:0;padding-left:1.2em;list-style:disc}.zm-rich-list li{margin:1px 0}.zm-rich-table{width:100%;border-collapse:separate;border-spacing:0;font-size:.92em;background:#fffffff2;border:1px solid currentColor;border-radius:6px;overflow:hidden}.zm-rich-table td{border-top:1px solid currentColor;border-right:1px solid currentColor;padding:3px 6px;opacity:.9}.zm-rich-table tr:last-child td{border-bottom:none}.zm-rich-table td:last-child{border-right:none}.zm-rich-table-sort{position:relative;background:#fff6;font-weight:600;text-align:left;cursor:pointer;-webkit-user-select:none;user-select:none;padding:3px 6px;border-bottom:1px solid currentColor;border-right:1px solid currentColor;pointer-events:auto}.zm-rich-table-sort:last-child{border-right:none}.zm-rich-table-sort:hover{background:#ffffffa6}.zm-rich-table-sort.is-sorted{background:#ffffffb3}.zm-rich-sort-mark{position:absolute;right:4px;top:50%;transform:translateY(-50%);font-size:9px;color:#94a3b8}.zm-rich-table-sort.is-sorted .zm-rich-sort-mark{color:#1d4ed8}.zm-rich-edit{width:100%;min-height:90px;margin:0;padding:4px 6px;font-family:JetBrains Mono,Fira Code,Consolas,monospace;font-size:.92em;line-height:1.4;color:inherit;background:#fff9;border:1px solid currentColor;border-radius:3px;outline:none;resize:vertical;white-space:pre;box-sizing:border-box}.zm-rich-edit:focus{border-color:#3b82f6;box-shadow:0 0 0 2px #3b82f626}.zm-rich-paragraph{white-space:pre-wrap;word-break:break-word}.zm-btn{position:absolute;width:18px;height:18px;border-radius:50%;border:none;background:#3b82f6;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:0;transition:opacity .15s,transform .15s;z-index:4}.zm-node:hover .zm-btn,.zm-node.is-selected .zm-btn{opacity:1}.zm-btn:hover{transform:scale(1.15)}.zm-collapse{right:-8px;top:50%;width:14px;height:14px;background:#fff;border:1.5px solid;transform:translateY(-50%);box-shadow:0 1px 3px #0f172a2e}.zm-collapse.is-on-left{right:auto;left:-8px}.zm-collapse:hover{transform:translateY(-50%) scale(1.15);background:#fff}.zm-collapse-badge{position:absolute;top:50%;transform:translateY(-50%);left:calc(100% + 8px);min-width:18px;height:18px;padding:0 5px;border-radius:5px;color:#fff;font-size:11px;font-weight:600;line-height:18px;text-align:center;box-shadow:0 1px 2px #00000026;cursor:pointer;-webkit-user-select:none;user-select:none;z-index:2;transition:filter .1s}.zm-collapse-badge.is-on-left{left:auto;right:calc(100% + 8px)}.zm-collapse-badge:hover{filter:brightness(.9)}.zm-node.has-image{flex-direction:column;padding:8px;gap:6px;white-space:normal}.zm-node-img{display:block;pointer-events:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;object-fit:contain;border-radius:4px}.zm-node-link,.zm-node-note-btn{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;padding:0;border:none;background:transparent;color:currentColor;border-radius:3px;cursor:pointer;flex-shrink:0;text-decoration:none;opacity:.75;transition:opacity .1s,background .1s;pointer-events:auto}.zm-node-link:hover,.zm-node-note-btn:hover{opacity:1;background:#0f172a14}.zm-node-link svg,.zm-node-note-btn svg{display:block}.zm-img-resize-handle{position:absolute;right:-5px;bottom:-5px;width:10px;height:10px;background:#fff;border:1.5px solid #3b82f6;border-radius:2px;cursor:nwse-resize;z-index:4;box-shadow:0 1px 3px #0f172a33}.zm-node.is-resizing{cursor:nwse-resize!important}.zm-img-remove-btn{position:absolute;right:-5px;bottom:14px;width:14px;height:14px;background:#fff;border:1px solid #cbd5e1;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#64748b;padding:0;z-index:4;box-shadow:0 1px 2px #0f172a1f}.zm-img-remove-btn:hover{background:#fee2e2;color:#b91c1c;border-color:#fca5a5}.zm-order-badge{display:inline-block;margin-left:6px;padding:0 5px;font-size:10px;font-weight:600;line-height:16px;color:#475569;background:#e2e8f0;border-radius:3px;font-variant-numeric:tabular-nums;pointer-events:none;-webkit-user-select:none;user-select:none;vertical-align:middle}.zm-canvas-fab{position:absolute;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border:none;background:#fff;border:1px solid #e2e8f0;border-radius:999px;box-shadow:0 2px 8px #0f172a14;color:#475569;cursor:pointer;z-index:11;opacity:0;pointer-events:none;transform:translateY(4px);transition:opacity .18s ease,transform .18s ease,background .1s,color .1s}.zm-canvas-fab.is-visible{opacity:1;pointer-events:auto;transform:translateY(0)}.zm-canvas-fab:hover{background:#f1f5f9;color:#1e293b;box-shadow:0 4px 12px #0f172a1f}.zm-canvas-fab:active{transform:scale(.94)}.zm-canvas-fab-preview{top:16px;right:16px}.zm-canvas-fab-outline{top:16px;left:16px}.zm-toolbar{position:absolute;bottom:16px;left:50%;transform:translate(-50%);display:flex;align-items:center;gap:4px;padding:6px 10px;background:#fff;border:1px solid #e2e8f0;border-radius:999px;box-shadow:0 4px 12px #0000000f;z-index:10;transition:opacity .18s ease,transform .18s ease}.zm-toolbar.is-preview-only{opacity:0;pointer-events:none;transform:translate(-50%) translateY(8px)}.zm-toolbar.is-preview-only.is-hovered{opacity:1;pointer-events:auto;transform:translate(-50%) translateY(0)}.zm-tb-btn{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border:none;background:transparent;border-radius:6px;cursor:pointer;color:#475569}.zm-tb-btn:hover{background:#f1f5f9;color:#1e293b}.zm-tb-btn img{filter:invert(20%) sepia(15%) saturate(500%) hue-rotate(180deg);transition:filter .1s}.zm-tb-btn:hover img{filter:invert(15%) sepia(30%) saturate(800%) hue-rotate(180deg)}.zm-tb-btn.active{background:var(--zm-tb-active, #fff7ed);color:var(--zm-tb-active-fg, #c2410c)}.zm-tb-divider{width:1px;height:18px;background:#e2e8f0;margin:0 4px}.zm-tb-tip{font-size:12px;color:#64748b;min-width:38px;text-align:center}.zm-node.is-search-hit{outline:2px solid #f59e0b;outline-offset:2px;z-index:3}.zm-node.is-search-current{outline:3px solid #f97316;outline-offset:3px;z-index:4;box-shadow:0 0 0 4px #f9731626}.zm-node.is-search-dimmed{opacity:.35}.zm-node-markers{display:flex;align-items:center;gap:2px;flex-shrink:0;pointer-events:none}.zm-node-marker{display:inline-flex;width:14px;height:14px;flex-shrink:0}.zm-node-marker svg{display:block;width:14px;height:14px}.zm-node-tags{display:flex;flex-wrap:wrap;gap:3px;justify-content:center;margin-top:3px;max-width:100%;overflow:hidden}.zm-node-tag{display:inline-block;padding:1px 6px;border-radius:999px;font-size:10px;line-height:1.4;font-weight:500;white-space:nowrap;pointer-events:none}.zm-app{display:flex;width:100%;height:100%;background:#f8fafc;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;font-size:14px;color:#1e293b;overflow:hidden}.zm-app-main{flex:1;display:flex;flex-direction:column;min-width:0}.zm-app-preview-exit{position:absolute;top:12px;right:12px;z-index:10;width:32px;height:32px;border:1px solid #e2e8f0;background:#fff;color:#475569;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 2px 8px #0f172a14;transition:background .1s,color .1s,transform .1s}.zm-app-preview-exit:hover{background:#f1f5f9;color:#0f172a;transform:scale(1.05)}.zm-app-canvas{flex:1;position:relative;min-height:0}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flow-mindmap",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "description": "A modern, minimalist mind mapping tool 闂?xmind-style, embeddable as a Vue component.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",