mind-elixir 4.0.2 → 4.0.4

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,14 +1,13 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var i=document.createElement("style");i.appendChild(document.createTextNode(".mind-elixir{--gap: 30px;--root-radius: 30px;--main-radius: 20px;--root-color: #ffffff;--root-bgcolor: #4c4f69;--main-color: #444446;--main-bgcolor: #ffffff;--topic-padding: 3px;--color: #777777;--bgcolor: #f6f6f6;--selected: #4dc4ff;--panel-color: #444446;--panel-bgcolor: #ffffff;--panel-border-color: #eaeaea;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif}.mind-elixir .hyper-link{text-decoration:none;margin-left:.3em}.map-container{-webkit-user-select:none;user-select:none;height:100%;width:100%;overflow:scroll;font-size:15px}.map-container *{box-sizing:border-box}.map-container::-webkit-scrollbar{width:0px;height:0px}.map-container .selected{box-shadow:0 0 0 2px var(--selected)}.map-container .lhs{direction:rtl}.map-container .lhs me-tpc{direction:ltr}.map-container .map-canvas{height:20000px;width:20000px;position:relative;-webkit-user-select:none;user-select:none;transition:transform .3s;transform:scale(1);background-color:var(--bgcolor)}.map-container .map-canvas me-nodes{position:absolute;display:flex;justify-content:center;align-items:center;height:fit-content;width:fit-content}.map-container .map-canvas me-root{position:relative}.map-container .map-canvas me-root me-tpc{display:block;font-size:25px;color:var(--root-color);padding:10px var(--gap);border-radius:var(--root-radius);white-space:pre-wrap;background-color:var(--root-bgcolor)}.map-container .map-canvas me-root me-tpc #input-box{padding:10px var(--gap)}.map-container me-main>me-wrapper{position:relative;margin:45px 65px}.map-container me-main>me-wrapper>me-parent{margin:10px;padding:0}.map-container me-main>me-wrapper>me-parent>me-tpc{border-radius:var(--main-radius);background-color:var(--main-bgcolor);border:2px solid var(--main-color);color:var(--main-color);padding:8px 25px}.map-container me-main>me-wrapper>me-parent>me-tpc #input-box{padding:8px 25px}.map-container me-wrapper{display:block;pointer-events:none;width:fit-content}.map-container me-children,.map-container me-parent{display:inline-block;vertical-align:middle}.map-container me-parent{position:relative;cursor:pointer;padding:6px var(--gap);margin-top:10px}.map-container me-parent me-tpc{position:relative;display:block;border-radius:3px;color:var(--color);pointer-events:all;max-width:35em;white-space:pre-wrap;padding:var(--topic-padding)}.map-container me-parent me-tpc .insert-preview{position:absolute;width:100%;left:0;z-index:9}.map-container me-parent me-tpc .show{background:#7ad5ff;pointer-events:none;opacity:.7}.map-container me-parent me-tpc .before{height:14px;top:-14px}.map-container me-parent me-tpc .in{height:100%;top:0}.map-container me-parent me-tpc .after{height:14px;bottom:-14px}.map-container me-parent me-epd{position:absolute;height:18px;width:18px;opacity:.8;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgdD0iMTY1NjY1NDcxNzI0MiIgY2xhc3M9Imljb24iIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHZlcnNpb249IjEuMSIKICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+CiAgICA8cGF0aCBkPSJNNTEyIDc0LjY2NjY2N0MyNzAuOTMzMzMzIDc0LjY2NjY2NyA3NC42NjY2NjcgMjcwLjkzMzMzMyA3NC42NjY2NjcgNTEyUzI3MC45MzMzMzMgOTQ5LjMzMzMzMyA1MTIgOTQ5LjMzMzMzMyA5NDkuMzMzMzMzIDc1My4wNjY2NjcgOTQ5LjMzMzMzMyA1MTIgNzUzLjA2NjY2NyA3NC42NjY2NjcgNTEyIDc0LjY2NjY2N3oiIHN0cm9rZS13aWR0aD0iNTQiIHN0cm9rZT0nYmxhY2snIGZpbGw9J3doaXRlJyA+PC9wYXRoPgogICAgPHBhdGggZD0iTTY4Mi42NjY2NjcgNDgwaC0xMzguNjY2NjY3VjM0MS4zMzMzMzNjMC0xNy4wNjY2NjctMTQuOTMzMzMzLTMyLTMyLTMycy0zMiAxNC45MzMzMzMtMzIgMzJ2MTM4LjY2NjY2N0gzNDEuMzMzMzMzYy0xNy4wNjY2NjcgMC0zMiAxNC45MzMzMzMtMzIgMzJzMTQuOTMzMzMzIDMyIDMyIDMyaDEzOC42NjY2NjdWNjgyLjY2NjY2N2MwIDE3LjA2NjY2NyAxNC45MzMzMzMgMzIgMzIgMzJzMzItMTQuOTMzMzMzIDMyLTMydi0xMzguNjY2NjY3SDY4Mi42NjY2NjdjMTcuMDY2NjY3IDAgMzItMTQuOTMzMzMzIDMyLTMycy0xNC45MzMzMzMtMzItMzItMzJ6Ij48L3BhdGg+Cjwvc3ZnPg==);background-repeat:no-repeat;background-size:contain;background-position:center;pointer-events:all;z-index:9}.map-container me-parent me-epd.minus{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgdD0iMTY1NjY1NTU2NDk4NSIgY2xhc3M9Imljb24iIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHZlcnNpb249IjEuMSIKICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+CiAgICA8cGF0aCBkPSJNNTEyIDc0LjY2NjY2N0MyNzAuOTMzMzMzIDc0LjY2NjY2NyA3NC42NjY2NjcgMjcwLjkzMzMzMyA3NC42NjY2NjcgNTEyUzI3MC45MzMzMzMgOTQ5LjMzMzMzMyA1MTIgOTQ5LjMzMzMzMyA5NDkuMzMzMzMzIDc1My4wNjY2NjcgOTQ5LjMzMzMzMyA1MTIgNzUzLjA2NjY2NyA3NC42NjY2NjcgNTEyIDc0LjY2NjY2N3oiIHN0cm9rZS13aWR0aD0iNTQiIHN0cm9rZT0nYmxhY2snIGZpbGw9J3doaXRlJyA+PC9wYXRoPgogICAgPHBhdGggZD0iTTY4Mi42NjY2NjcgNTQ0SDM0MS4zMzMzMzNjLTE3LjA2NjY2NyAwLTMyLTE0LjkzMzMzMy0zMi0zMnMxNC45MzMzMzMtMzIgMzItMzJoMzQxLjMzMzMzNGMxNy4wNjY2NjcgMCAzMiAxNC45MzMzMzMgMzIgMzJzLTE0LjkzMzMzMyAzMi0zMiAzMnoiPjwvcGF0aD4KPC9zdmc+)!important;transition:opacity .3s;opacity:0}.map-container me-parent me-epd.minus:hover{opacity:.8}.map-container .icon{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.map-container .lines,.map-container .summary,.map-container .subLines,.map-container .topiclinks,.map-container .linkcontroller{position:absolute;height:102%;width:100%;top:0;left:0}.map-container .topiclinks,.map-container .linkcontroller,.map-container .summary{pointer-events:none}.map-container .topiclinks text,.map-container .linkcontroller text,.map-container .summary text{pointer-events:all}.map-container .topiclinks .selected,.map-container .linkcontroller .selected,.map-container .summary .selected{pointer-events:none}.map-container .lines,.map-container .subLines{pointer-events:none;z-index:-1}.map-container .topiclinks *,.map-container .linkcontroller *{z-index:100}.map-container .topiclinks g{cursor:pointer}.map-container #input-box{position:absolute;top:0;left:0;padding:var(--topic-padding);color:var(--color);background-color:var(--bgcolor);width:max-content;max-width:35em;z-index:11;direction:ltr;-webkit-user-select:auto;user-select:auto;pointer-events:all}.map-container me-tpc>*{pointer-events:none}.map-container me-tpc>img{display:block;margin-bottom:8px;object-fit:cover}.map-container me-tpc>.text{display:inline-block}.map-container .circle{position:absolute;height:10px;width:10px;margin-top:-5px;margin-left:-5px;border-radius:100%;background:#757575;border:2px solid #ffffff;cursor:pointer}.map-container .tags{direction:ltr}.map-container .tags span{display:inline-block;border-radius:3px;padding:2px 4px;background:#d6f0f8;color:#276f86;margin:2px 3px 0 0;font-size:12px;line-height:1.3em}.map-container .icons{display:inline-block;direction:ltr;margin-right:10px}.map-container .icons span{display:inline-block;line-height:1.3em}.map-container .mind-elixir-ghost{position:fixed;top:-100%;left:-100%;box-sizing:content-box;opacity:.5;background-color:#f6f6f6;max-width:200px;width:fit-content;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:8px 16px;border-radius:6px;border:#666666 2px solid}.map-container .selection-area{background:#4f90f22d;border:1px solid #4f90f2}.mind-elixir .context-menu{position:fixed;top:0;left:0;width:100%;height:100%;z-index:99}.mind-elixir .context-menu .menu-list{position:fixed;list-style:none;margin:0;padding:0;font:300 15px Roboto,sans-serif;color:var(--panel-color);box-shadow:0 12px 15px #0003}.mind-elixir .context-menu .menu-list li{min-width:200px;overflow:hidden;white-space:nowrap;padding:10px 14px;background:var(--panel-bgcolor);border-bottom:1px solid var(--panel-border-color)}.mind-elixir .context-menu .menu-list li a{color:#333;text-decoration:none}.mind-elixir .context-menu .menu-list li.disabled{display:none;color:#5e5e5e;background-color:#f7f7f7}.mind-elixir .context-menu .menu-list li.disabled:hover{cursor:default;background-color:#f7f7f7}.mind-elixir .context-menu .menu-list li:hover{cursor:pointer;filter:brightness(.9)}.mind-elixir .context-menu .menu-list li:first-child{border-radius:5px 5px 0 0}.mind-elixir .context-menu .menu-list li:last-child{border-bottom:0;border-radius:0 0 5px 5px}.mind-elixir .context-menu .menu-list li span:last-child{float:right}.mind-elixir .tips{position:absolute;bottom:20px;left:50%;transform:translate(-50%);color:var(--panel-color);font-weight:bolder}.mind-elixir .mobile-menu{position:absolute;left:20px;bottom:70px;z-index:99;margin:0;padding:0;color:#333;border-radius:5px;box-shadow:0 12px 15px #0003;overflow:hidden}.mind-elixir .mobile-menu *{transition:color .4s,background-color .4s}.mind-elixir .mobile-menu div{float:left;text-align:center;width:30px;overflow:hidden;white-space:nowrap;padding:8px;background-color:#fff;border-bottom:1px solid #ecf0f1}.mind-elixir .mobile-menu div a{color:#333;text-decoration:none}.mind-elixir .mobile-menu div.disabled{color:#5e5e5e;background-color:#f7f7f7}.mind-elixir .mobile-menu div.disabled:hover{cursor:default;background-color:#f7f7f7}.mind-elixir .mobile-menu div:hover{cursor:pointer;background-color:#ecf0f1}.mind-elixir-toolbar{font-family:iconfont;position:absolute;color:var(--panel-color);background:var(--panel-bgcolor);padding:10px;border-radius:5px;box-shadow:0 1px 2px #0003}.mind-elixir-toolbar svg{display:inline-block}.mind-elixir-toolbar span:active{opacity:.5}.mind-elixir-toolbar.rb{right:20px;bottom:20px}.mind-elixir-toolbar.rb span+span{margin-left:10px}.mind-elixir-toolbar.lt{font-size:20px;left:20px;top:20px}.mind-elixir-toolbar.lt span{display:block}.mind-elixir-toolbar.lt span+span{margin-top:10px}")),document.head.appendChild(i)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
2
  (function(e) {
3
- var t, n, o, s, i, r, l = '<svg><symbol id="icon-edit" viewBox="0 0 1024 1024"><path d="M423.765333 128a42.666667 42.666667 0 0 1 3.2 85.205333L423.765333 213.333333H234.666667a64 64 0 0 0-63.872 60.245334L170.666667 277.333333v512a64 64 0 0 0 60.245333 63.872L234.666667 853.333333h512a64 64 0 0 0 63.872-60.245333L810.666667 789.333333v-189.098666a42.666667 42.666667 0 0 1 85.205333-3.2l0.128 3.2V789.333333a149.333333 149.333333 0 0 1-144.213333 149.248L746.666667 938.666667h-512a149.333333 149.333333 0 0 1-149.248-144.213334L85.333333 789.333333v-512a149.333333 149.333333 0 0 1 144.213334-149.248L234.666667 128h189.098666z m324.949334-53.248a42.666667 42.666667 0 0 1 60.330666 0l150.869334 150.869333a42.666667 42.666667 0 0 1 0 60.330667l-329.386667 329.386667a42.666667 42.666667 0 0 1-29.44 12.458666l-153.386667 2.517334a42.666667 42.666667 0 0 1-43.349333-43.349334l2.56-153.386666a42.666667 42.666667 0 0 1 12.458667-29.44z m30.165333 90.496L491.946667 452.266667l-1.493334 91.989333 92.032-1.493333 286.976-286.976-90.538666-90.538667z" ></path></symbol><symbol id="icon-rising" viewBox="0 0 1024 1024"><path d="M553.173333 803.84h-64l0.021334-474.581333-224.021334 224-45.269333-45.226667L521.6 206.293333l301.717333 301.696-45.269333 45.269334-224.853333-224.896v475.477333z" ></path></symbol><symbol id="icon-falling" viewBox="0 0 1024 1024"><path d="M553.173333 238.314667h-64l0.021334 474.602666-224.021334-224-45.269333 45.226667L521.6 835.861333l301.717333-301.717333-45.269333-45.226667-224.853333 224.853334V238.336z" ></path></symbol><symbol id="icon-shanchu2" viewBox="0 0 1024 1024"><path d="M516.60601807 107.93026734c-82.64382935 0-149.71865844 65.51751709-152.5729065 147.77160644H171.37136841c-21.40603638 0-38.92044068 17.38504028-38.92044068 38.92126465 0 21.40686036 17.38504028 38.92208862 38.92126466 38.92208862h42.94308471v435.40136719c0 81.73498536 55.39828492 148.55026245 123.90106201 148.55026245h348.99444581c68.37341309 0 123.90106201-66.42553711 123.901062-148.55026245V333.80477906h38.92126465c21.40686036 0 38.92126464-17.38586426 38.92126465-38.92208863 0-21.40686036-17.38504028-38.92126464-38.92126465-38.92126465H668.91854859C666.45321656 173.44860839 599.24902344 107.93109131 516.60601807 107.93109131z m-79.65939331 147.77160644c2.85424805-42.16442872 37.2354126-74.85809326 79.78875732-74.85809326s76.93450927 32.82302857 79.39984131 74.85809326H436.94662476z m-98.86047364 589.01165771c-24.2611084 0-50.98754883-31.13717651-50.98754883-75.76693725V333.80477906h450.97036744V769.33551026c0 44.50039673-26.72644043 75.76776123-50.98754884 75.76776122H338.08615112v-0.38973999z m0 0" ></path><path d="M390.37063599 751.17263794c17.77313232 0 32.43411255-17.7739563 32.43411255-40.08883667V482.35504151c0-22.31488037-14.53079224-40.08966065-32.43411255-40.08966065-17.77478027 0-32.43493653 17.77478027-32.43493653 40.08966065v228.72875976c0 22.18469239 14.27124023 40.08883667 32.43493653 40.08883667z m117.41308594 0c17.7739563 0 32.43411255-17.7739563 32.43411255-40.08883667V482.35504151c0-22.31488037-14.53079224-40.08966065-32.43411255-40.08966065-17.7739563 0-32.43493653 17.77478027-32.43493653 40.08966065v228.72875976c0 22.18469239 14.66098023 40.08883667 32.43493653 40.08883667z m123.51049804 0c17.7739563 0 32.43493653-17.7739563 32.43493652-40.08883667V482.35504151c0-22.31488037-14.53079224-40.08966065-32.43493652-40.08966065-17.7739563 0-32.43411255 17.77478027-32.43411255 40.08966065v228.72875976c0 22.18469239 14.14105224 40.08883667 32.43411255 40.08883667z m0 0" ></path></symbol><symbol id="icon-zijiedian" viewBox="0 0 1024 1024"><path d="M312.208 472c19.568-157.856 153.432-280 315.656-280 175.68 0 318.112 143.272 318.112 320S803.552 832 627.864 832c-162.224 0-296.08-122.144-315.656-280H120a40 40 0 0 1 0-80h192.208zM632 752c132.552 0 240-107.448 240-240 0-132.552-107.448-240-240-240-132.552 0-240 107.448-240 240 0 132.552 107.448 240 240 240z m-40-280v-80a40 40 0 0 1 80 0v80h80a40 40 0 0 1 0 80h-80v80a40 40 0 0 1-80 0v-80h-80a40 40 0 0 1 0-80h80z" ></path></symbol><symbol id="icon-tongjijiedian-" viewBox="0 0 1024 1024"><path d="M803.84 131.626667H410.24A59.733333 59.733333 0 0 0 350.506667 192v45.226667H199.68a51.626667 51.626667 0 0 0-51.626667 51.626666v465.92a51.626667 51.626667 0 0 0 51.626667 51.626667h187.52v-55.466667h-162.133333a21.333333 21.333333 0 0 1-21.333334-21.333333V313.386667a21.333333 21.333333 0 0 1 21.333334-21.333334h125.653333v64a59.733333 59.733333 0 0 0 59.733333 59.733334h393.386667a59.733333 59.733333 0 0 0 59.733333-59.733334V192a59.733333 59.733333 0 0 0-59.733333-60.373333z m4.266667 224.64a4.266667 4.266667 0 0 1-4.266667 4.266666H410.24a4.266667 4.266667 0 0 1-4.266667-4.266666V192a4.266667 4.266667 0 0 1 4.266667-4.266667h393.6a4.266667 4.266667 0 0 1 4.266667 4.266667zM716.16 749.44h-81.28v-81.493333a27.733333 27.733333 0 0 0-55.466667 0v81.28h-81.493333a27.733333 27.733333 0 1 0 0 55.466666h81.28v81.28a27.733333 27.733333 0 1 0 55.466667 0v-81.066666h81.28a27.733333 27.733333 0 0 0 0-55.466667z" ></path></symbol><symbol id="icon-close" viewBox="0 0 1024 1024"><path d="M557.312 513.248l265.28-263.904c12.544-12.48 12.608-32.704 0.128-45.248-12.512-12.576-32.704-12.608-45.248-0.128L512.128 467.904l-263.04-263.84c-12.448-12.48-32.704-12.544-45.248-0.064-12.512 12.48-12.544 32.736-0.064 45.28l262.976 263.776L201.6 776.8c-12.544 12.48-12.608 32.704-0.128 45.248a31.937 31.937 0 0 0 22.688 9.44c8.16 0 16.32-3.104 22.56-9.312l265.216-263.808 265.44 266.24c6.24 6.272 14.432 9.408 22.656 9.408a31.94 31.94 0 0 0 22.592-9.344c12.512-12.48 12.544-32.704 0.064-45.248L557.312 513.248z" fill="" ></path></symbol><symbol id="icon-menu" viewBox="0 0 1024 1024"><path d="M109.714 292.571h804.572c21.943 0 36.571-21.942 36.571-43.885 0-14.629-14.628-29.257-36.571-29.257H109.714c-21.943 0-36.571 14.628-36.571 36.571 0 14.629 14.628 36.571 36.571 36.571zM914.286 512H109.714c-21.943 0-36.571 14.629-36.571 36.571 0 14.629 14.628 36.572 36.571 36.572h804.572c21.943 0 36.571-21.943 36.571-43.886 0-14.628-14.628-29.257-36.571-29.257z m0 292.571H109.714c-21.943 0-36.571 14.629-36.571 36.572s14.628 36.571 36.571 36.571h804.572c21.943 0 36.571-21.943 36.571-36.571 0-21.943-14.628-36.572-36.571-36.572z" ></path></symbol><symbol id="icon-right" viewBox="0 0 1024 1024"><path d="M385 560.69999999L385 738.9c0 36.90000001 26.4 68.5 61.3 68.5l150.2 0c1.5 0 3-0.1 4.5-0.3 10.2 38.7 45.5 67.3 87.5 67.3 50 0 90.5-40.5 90.5-90.5s-40.5-90.5-90.5-90.5c-42 0-77.3 28.6-87.5 67.39999999-1.4-0.3-2.9-0.4-4.5-0.39999999L446.3 760.4c-6.8 0-14.3-8.9-14.3-21.49999999l0-427.00000001c0-12.7 7.40000001-21.5 14.30000001-21.5l150.19999999 0c1.5 0 3-0.2 4.5-0.4 10.2 38.8 45.5 67.3 87.5 67.3 50 0 90.5-40.5 90.5-90.4 0-49.9-40.5-90.6-90.5-90.59999999-42 0-77.3 28.6-87.5 67.39999999-1.4-0.2-2.9-0.4-4.49999999-0.4L446.3 243.3c-34.80000001 0-61.3 31.6-61.3 68.50000001L385 513.7l-79.1 0c-10.4-38.5-45.49999999-67-87.4-67-50 0-90.5 40.5-90.5 90.5s40.5 90.5 90.5 90.5c41.79999999 0 77.00000001-28.4 87.4-67L385 560.69999999z" fill="" ></path></symbol><symbol id="icon-left" viewBox="0 0 1024 1024"><path d="M639 463.30000001L639 285.1c0-36.90000001-26.4-68.5-61.3-68.5l-150.2 0c-1.5 0-3 0.1-4.5 0.3-10.2-38.7-45.5-67.3-87.5-67.3-50 0-90.5 40.5-90.5 90.5s40.5 90.5 90.5 90.5c42 0 77.3-28.6 87.5-67.39999999 1.4 0.3 2.9 0.4 4.5 0.39999999L577.7 263.6c6.8 0 14.3 8.9 14.3 21.49999999l0 427.00000001c0 12.7-7.40000001 21.5-14.30000001 21.5l-150.19999999 0c-1.5 0-3 0.2-4.5 0.4-10.2-38.8-45.5-67.3-87.5-67.3-50 0-90.5 40.5-90.5 90.4 0 49.9 40.5 90.6 90.5 90.59999999 42 0 77.3-28.6 87.5-67.39999999 1.4 0.2 2.9 0.4 4.49999999 0.4L577.7 780.7c34.80000001 0 61.3-31.6 61.3-68.50000001L639 510.3l79.1 0c10.4 38.5 45.49999999 67 87.4 67 50 0 90.5-40.5 90.5-90.5s-40.5-90.5-90.5-90.5c-41.79999999 0-77.00000001 28.4-87.4 67L639 463.30000001z" fill="" ></path></symbol><symbol id="icon-side" viewBox="0 0 1024 1024"><path d="M851.91168 328.45312c-59.97056 0-108.6208 48.47104-108.91264 108.36992l-137.92768 38.4a109.14304 109.14304 0 0 0-63.46752-46.58688l1.39264-137.11872c47.29344-11.86816 82.31936-54.66624 82.31936-105.64096 0-60.15488-48.76288-108.91776-108.91776-108.91776s-108.91776 48.76288-108.91776 108.91776c0 49.18784 32.60928 90.75712 77.38368 104.27392l-1.41312 138.87488a109.19936 109.19936 0 0 0-63.50336 48.55808l-138.93632-39.48544 0.01024-0.72704c0-60.15488-48.76288-108.91776-108.91776-108.91776s-108.91776 48.75776-108.91776 108.91776c0 60.15488 48.76288 108.91264 108.91776 108.91264 39.3984 0 73.91232-20.92032 93.03552-52.2496l139.19232 39.552-0.00512 0.2304c0 25.8304 9.00096 49.5616 24.02816 68.23424l-90.14272 132.63872a108.7488 108.7488 0 0 0-34.2528-5.504c-60.15488 0-108.91776 48.768-108.91776 108.91776 0 60.16 48.76288 108.91776 108.91776 108.91776 60.16 0 108.92288-48.75776 108.92288-108.91776 0-27.14624-9.9328-51.968-26.36288-71.04l89.04704-131.03104a108.544 108.544 0 0 0 37.6832 6.70208 108.672 108.672 0 0 0 36.48512-6.272l93.13792 132.57216a108.48256 108.48256 0 0 0-24.69888 69.0688c0 60.16 48.768 108.92288 108.91776 108.92288 60.16 0 108.91776-48.76288 108.91776-108.92288 0-60.14976-48.75776-108.91776-108.91776-108.91776a108.80512 108.80512 0 0 0-36.69504 6.3488l-93.07136-132.48a108.48768 108.48768 0 0 0 24.79616-72.22784l136.09984-37.888c18.99008 31.93856 53.84192 53.3504 93.69088 53.3504 60.16 0 108.92288-48.75776 108.92288-108.91264-0.00512-60.15488-48.77312-108.92288-108.92288-108.92288z" ></path></symbol><symbol id="icon-B" viewBox="0 0 1024 1024"><path d="M98.067692 65.457231H481.28c75.854769 0 132.411077 3.150769 169.668923 9.452307 37.336615 6.301538 70.656 19.534769 100.036923 39.620924 29.459692 20.007385 53.956923 46.710154 73.570462 80.029538 19.692308 33.398154 29.459692 70.734769 29.459692 112.167385 0 44.898462-12.130462 86.094769-36.233846 123.588923a224.886154 224.886154 0 0 1-98.461539 84.283077c58.368 17.092923 103.266462 46.08 134.695385 87.04 31.350154 40.96 47.025231 89.088 47.025231 144.462769 0 43.638154-10.082462 86.016-30.404923 127.212308-20.243692 41.196308-47.891692 74.043077-83.02277 98.697846-35.052308 24.654769-78.296615 39.778462-129.732923 45.449846-32.295385 3.465846-110.119385 5.671385-233.472 6.537846H98.067692V65.457231z m193.536 159.507692V446.621538h126.818462c75.460923 0 122.328615-1.024 140.603077-3.229538 33.083077-3.938462 59.155692-15.36 78.139077-34.343385 18.904615-18.904615 28.435692-43.874462 28.435692-74.830769 0-29.696-8.192-53.720615-24.497231-72.310154-16.384-18.510769-40.644923-29.696-72.940307-33.634461-19.140923-2.205538-74.279385-3.308308-165.415385-3.308308h-111.064615z m0 381.243077v256.315077h179.2c69.710769 0 113.979077-1.969231 132.726154-5.907692 28.750769-5.198769 52.145231-17.959385 70.262154-38.281847 18.116923-20.243692 27.096615-47.340308 27.096615-81.368615 0-28.750769-6.931692-53.169231-20.873846-73.255385a118.232615 118.232615 0 0 0-60.494769-43.795692c-26.387692-9.137231-83.574154-13.705846-171.638154-13.705846H291.603692z" ></path></symbol><symbol id="icon-a" viewBox="0 0 1024 1024"><path d="M757.76 665.6q0 20.48 1.536 34.304t7.68 22.016 18.944 12.288 34.304 4.096q-3.072 25.6-15.36 44.032-11.264 16.384-33.28 29.696t-62.976 13.312q-11.264 0-20.48-0.512t-17.408-2.56l-6.144-2.048-1.024 0q-4.096-1.024-10.24-4.096-2.048-2.048-4.096-2.048-1.024-1.024-2.048-1.024-14.336-8.192-23.552-17.408t-14.336-17.408q-6.144-10.24-9.216-20.48-63.488 75.776-178.176 75.776-48.128 0-88.064-15.36t-69.12-44.032-45.056-68.096-15.872-88.576 16.896-89.088 47.616-67.584 74.24-42.496 96.768-14.848q48.128 0 88.576 17.408t66.048 49.152q0-8.192 0.512-16.384t0.512-15.36q0-71.68-39.936-104.448t-128-32.768q-43.008 0-84.992 6.656t-84.992 17.92q14.336-28.672 25.088-47.616t24.064-29.184q30.72-24.576 158.72-24.576 79.872 0 135.168 13.824t90.624 43.52 51.2 75.264 15.872 108.032l0 200.704zM487.424 743.424q50.176 0 79.872-33.28t29.696-95.744q0-61.44-28.672-93.696t-76.8-32.256q-52.224 0-82.944 33.28t-30.72 94.72q0 58.368 31.744 92.672t77.824 34.304z" ></path></symbol><symbol id="icon-full" viewBox="0 0 1024 1024"><path d="M639.328 416c8.032 0 16.096-3.008 22.304-9.056l202.624-197.184-0.8 143.808c-0.096 17.696 14.144 32.096 31.808 32.192 0.064 0 0.128 0 0.192 0 17.6 0 31.904-14.208 32-31.808l1.248-222.208c0-0.672-0.352-1.248-0.384-1.92 0.032-0.512 0.288-0.896 0.288-1.408 0.032-17.664-14.272-32-31.968-32.032L671.552 96l-0.032 0c-17.664 0-31.968 14.304-32 31.968C639.488 145.632 653.824 160 671.488 160l151.872 0.224-206.368 200.8c-12.672 12.32-12.928 32.608-0.64 45.248C622.656 412.736 630.976 416 639.328 416z" ></path><path d="M896.032 639.552 896.032 639.552c-17.696 0-32 14.304-32.032 31.968l-0.224 151.872-200.832-206.4c-12.32-12.64-32.576-12.96-45.248-0.64-12.672 12.352-12.928 32.608-0.64 45.248l197.184 202.624-143.808-0.8c-0.064 0-0.128 0-0.192 0-17.6 0-31.904 14.208-32 31.808-0.096 17.696 14.144 32.096 31.808 32.192l222.24 1.248c0.064 0 0.128 0 0.192 0 0.64 0 1.12-0.32 1.76-0.352 0.512 0.032 0.896 0.288 1.408 0.288l0.032 0c17.664 0 31.968-14.304 32-31.968L928 671.584C928.032 653.952 913.728 639.584 896.032 639.552z" ></path><path d="M209.76 159.744l143.808 0.8c0.064 0 0.128 0 0.192 0 17.6 0 31.904-14.208 32-31.808 0.096-17.696-14.144-32.096-31.808-32.192L131.68 95.328c-0.064 0-0.128 0-0.192 0-0.672 0-1.248 0.352-1.888 0.384-0.448 0-0.8-0.256-1.248-0.256 0 0-0.032 0-0.032 0-17.664 0-31.968 14.304-32 31.968L96 352.448c-0.032 17.664 14.272 32 31.968 32.032 0 0 0.032 0 0.032 0 17.664 0 31.968-14.304 32-31.968l0.224-151.936 200.832 206.4c6.272 6.464 14.624 9.696 22.944 9.696 8.032 0 16.096-3.008 22.304-9.056 12.672-12.32 12.96-32.608 0.64-45.248L209.76 159.744z" ></path><path d="M362.368 617.056l-202.624 197.184 0.8-143.808c0.096-17.696-14.144-32.096-31.808-32.192-0.064 0-0.128 0-0.192 0-17.6 0-31.904 14.208-32 31.808l-1.248 222.24c0 0.704 0.352 1.312 0.384 2.016 0 0.448-0.256 0.832-0.256 1.312-0.032 17.664 14.272 32 31.968 32.032L352.448 928c0 0 0.032 0 0.032 0 17.664 0 31.968-14.304 32-31.968s-14.272-32-31.968-32.032l-151.936-0.224 206.4-200.832c12.672-12.352 12.96-32.608 0.64-45.248S375.008 604.704 362.368 617.056z" ></path></symbol><symbol id="icon-add" viewBox="0 0 1024 1024"><path d="M863.328 482.56l-317.344-1.12L545.984 162.816c0-17.664-14.336-32-32-32s-32 14.336-32 32l0 318.4L159.616 480.064c-0.032 0-0.064 0-0.096 0-17.632 0-31.936 14.24-32 31.904C127.424 529.632 141.728 544 159.392 544.064l322.592 1.152 0 319.168c0 17.696 14.336 32 32 32s32-14.304 32-32l0-318.944 317.088 1.12c0.064 0 0.096 0 0.128 0 17.632 0 31.936-14.24 32-31.904C895.264 496.992 880.96 482.624 863.328 482.56z" ></path></symbol><symbol id="icon-move" viewBox="0 0 1024 1024"><path d="M863.744 544 163.424 544c-17.664 0-32-14.336-32-32s14.336-32 32-32l700.32 0c17.696 0 32 14.336 32 32S881.44 544 863.744 544z" ></path></symbol><symbol id="icon-living" viewBox="0 0 1024 1024"><path d="M514.133333 488.533333m-106.666666 0a106.666667 106.666667 0 1 0 213.333333 0 106.666667 106.666667 0 1 0-213.333333 0Z" fill="" ></path><path d="M512 64C264.533333 64 64 264.533333 64 512c0 236.8 183.466667 428.8 416 445.866667v-134.4c-53.333333-59.733333-200.533333-230.4-200.533333-334.933334 0-130.133333 104.533333-234.666667 234.666666-234.666666s234.666667 104.533333 234.666667 234.666666c0 61.866667-49.066667 153.6-145.066667 270.933334l-59.733333 68.266666V960C776.533333 942.933333 960 748.8 960 512c0-247.466667-200.533333-448-448-448z" fill="" ></path></symbol></svg>', c = (c = document.getElementsByTagName("script"))[c.length - 1].getAttribute("data-injectcss");
4
- if (c && !e.__iconfont__svg__cssinject__) {
3
+ var t, n, o, s, i, r, c = '<svg><symbol id="icon-edit" viewBox="0 0 1024 1024"><path d="M423.765333 128a42.666667 42.666667 0 0 1 3.2 85.205333L423.765333 213.333333H234.666667a64 64 0 0 0-63.872 60.245334L170.666667 277.333333v512a64 64 0 0 0 60.245333 63.872L234.666667 853.333333h512a64 64 0 0 0 63.872-60.245333L810.666667 789.333333v-189.098666a42.666667 42.666667 0 0 1 85.205333-3.2l0.128 3.2V789.333333a149.333333 149.333333 0 0 1-144.213333 149.248L746.666667 938.666667h-512a149.333333 149.333333 0 0 1-149.248-144.213334L85.333333 789.333333v-512a149.333333 149.333333 0 0 1 144.213334-149.248L234.666667 128h189.098666z m324.949334-53.248a42.666667 42.666667 0 0 1 60.330666 0l150.869334 150.869333a42.666667 42.666667 0 0 1 0 60.330667l-329.386667 329.386667a42.666667 42.666667 0 0 1-29.44 12.458666l-153.386667 2.517334a42.666667 42.666667 0 0 1-43.349333-43.349334l2.56-153.386666a42.666667 42.666667 0 0 1 12.458667-29.44z m30.165333 90.496L491.946667 452.266667l-1.493334 91.989333 92.032-1.493333 286.976-286.976-90.538666-90.538667z" ></path></symbol><symbol id="icon-rising" viewBox="0 0 1024 1024"><path d="M553.173333 803.84h-64l0.021334-474.581333-224.021334 224-45.269333-45.226667L521.6 206.293333l301.717333 301.696-45.269333 45.269334-224.853333-224.896v475.477333z" ></path></symbol><symbol id="icon-falling" viewBox="0 0 1024 1024"><path d="M553.173333 238.314667h-64l0.021334 474.602666-224.021334-224-45.269333 45.226667L521.6 835.861333l301.717333-301.717333-45.269333-45.226667-224.853333 224.853334V238.336z" ></path></symbol><symbol id="icon-shanchu2" viewBox="0 0 1024 1024"><path d="M516.60601807 107.93026734c-82.64382935 0-149.71865844 65.51751709-152.5729065 147.77160644H171.37136841c-21.40603638 0-38.92044068 17.38504028-38.92044068 38.92126465 0 21.40686036 17.38504028 38.92208862 38.92126466 38.92208862h42.94308471v435.40136719c0 81.73498536 55.39828492 148.55026245 123.90106201 148.55026245h348.99444581c68.37341309 0 123.90106201-66.42553711 123.901062-148.55026245V333.80477906h38.92126465c21.40686036 0 38.92126464-17.38586426 38.92126465-38.92208863 0-21.40686036-17.38504028-38.92126464-38.92126465-38.92126465H668.91854859C666.45321656 173.44860839 599.24902344 107.93109131 516.60601807 107.93109131z m-79.65939331 147.77160644c2.85424805-42.16442872 37.2354126-74.85809326 79.78875732-74.85809326s76.93450927 32.82302857 79.39984131 74.85809326H436.94662476z m-98.86047364 589.01165771c-24.2611084 0-50.98754883-31.13717651-50.98754883-75.76693725V333.80477906h450.97036744V769.33551026c0 44.50039673-26.72644043 75.76776123-50.98754884 75.76776122H338.08615112v-0.38973999z m0 0" ></path><path d="M390.37063599 751.17263794c17.77313232 0 32.43411255-17.7739563 32.43411255-40.08883667V482.35504151c0-22.31488037-14.53079224-40.08966065-32.43411255-40.08966065-17.77478027 0-32.43493653 17.77478027-32.43493653 40.08966065v228.72875976c0 22.18469239 14.27124023 40.08883667 32.43493653 40.08883667z m117.41308594 0c17.7739563 0 32.43411255-17.7739563 32.43411255-40.08883667V482.35504151c0-22.31488037-14.53079224-40.08966065-32.43411255-40.08966065-17.7739563 0-32.43493653 17.77478027-32.43493653 40.08966065v228.72875976c0 22.18469239 14.66098023 40.08883667 32.43493653 40.08883667z m123.51049804 0c17.7739563 0 32.43493653-17.7739563 32.43493652-40.08883667V482.35504151c0-22.31488037-14.53079224-40.08966065-32.43493652-40.08966065-17.7739563 0-32.43411255 17.77478027-32.43411255 40.08966065v228.72875976c0 22.18469239 14.14105224 40.08883667 32.43411255 40.08883667z m0 0" ></path></symbol><symbol id="icon-zijiedian" viewBox="0 0 1024 1024"><path d="M312.208 472c19.568-157.856 153.432-280 315.656-280 175.68 0 318.112 143.272 318.112 320S803.552 832 627.864 832c-162.224 0-296.08-122.144-315.656-280H120a40 40 0 0 1 0-80h192.208zM632 752c132.552 0 240-107.448 240-240 0-132.552-107.448-240-240-240-132.552 0-240 107.448-240 240 0 132.552 107.448 240 240 240z m-40-280v-80a40 40 0 0 1 80 0v80h80a40 40 0 0 1 0 80h-80v80a40 40 0 0 1-80 0v-80h-80a40 40 0 0 1 0-80h80z" ></path></symbol><symbol id="icon-tongjijiedian-" viewBox="0 0 1024 1024"><path d="M803.84 131.626667H410.24A59.733333 59.733333 0 0 0 350.506667 192v45.226667H199.68a51.626667 51.626667 0 0 0-51.626667 51.626666v465.92a51.626667 51.626667 0 0 0 51.626667 51.626667h187.52v-55.466667h-162.133333a21.333333 21.333333 0 0 1-21.333334-21.333333V313.386667a21.333333 21.333333 0 0 1 21.333334-21.333334h125.653333v64a59.733333 59.733333 0 0 0 59.733333 59.733334h393.386667a59.733333 59.733333 0 0 0 59.733333-59.733334V192a59.733333 59.733333 0 0 0-59.733333-60.373333z m4.266667 224.64a4.266667 4.266667 0 0 1-4.266667 4.266666H410.24a4.266667 4.266667 0 0 1-4.266667-4.266666V192a4.266667 4.266667 0 0 1 4.266667-4.266667h393.6a4.266667 4.266667 0 0 1 4.266667 4.266667zM716.16 749.44h-81.28v-81.493333a27.733333 27.733333 0 0 0-55.466667 0v81.28h-81.493333a27.733333 27.733333 0 1 0 0 55.466666h81.28v81.28a27.733333 27.733333 0 1 0 55.466667 0v-81.066666h81.28a27.733333 27.733333 0 0 0 0-55.466667z" ></path></symbol><symbol id="icon-close" viewBox="0 0 1024 1024"><path d="M557.312 513.248l265.28-263.904c12.544-12.48 12.608-32.704 0.128-45.248-12.512-12.576-32.704-12.608-45.248-0.128L512.128 467.904l-263.04-263.84c-12.448-12.48-32.704-12.544-45.248-0.064-12.512 12.48-12.544 32.736-0.064 45.28l262.976 263.776L201.6 776.8c-12.544 12.48-12.608 32.704-0.128 45.248a31.937 31.937 0 0 0 22.688 9.44c8.16 0 16.32-3.104 22.56-9.312l265.216-263.808 265.44 266.24c6.24 6.272 14.432 9.408 22.656 9.408a31.94 31.94 0 0 0 22.592-9.344c12.512-12.48 12.544-32.704 0.064-45.248L557.312 513.248z" fill="" ></path></symbol><symbol id="icon-menu" viewBox="0 0 1024 1024"><path d="M109.714 292.571h804.572c21.943 0 36.571-21.942 36.571-43.885 0-14.629-14.628-29.257-36.571-29.257H109.714c-21.943 0-36.571 14.628-36.571 36.571 0 14.629 14.628 36.571 36.571 36.571zM914.286 512H109.714c-21.943 0-36.571 14.629-36.571 36.571 0 14.629 14.628 36.572 36.571 36.572h804.572c21.943 0 36.571-21.943 36.571-43.886 0-14.628-14.628-29.257-36.571-29.257z m0 292.571H109.714c-21.943 0-36.571 14.629-36.571 36.572s14.628 36.571 36.571 36.571h804.572c21.943 0 36.571-21.943 36.571-36.571 0-21.943-14.628-36.572-36.571-36.572z" ></path></symbol><symbol id="icon-right" viewBox="0 0 1024 1024"><path d="M385 560.69999999L385 738.9c0 36.90000001 26.4 68.5 61.3 68.5l150.2 0c1.5 0 3-0.1 4.5-0.3 10.2 38.7 45.5 67.3 87.5 67.3 50 0 90.5-40.5 90.5-90.5s-40.5-90.5-90.5-90.5c-42 0-77.3 28.6-87.5 67.39999999-1.4-0.3-2.9-0.4-4.5-0.39999999L446.3 760.4c-6.8 0-14.3-8.9-14.3-21.49999999l0-427.00000001c0-12.7 7.40000001-21.5 14.30000001-21.5l150.19999999 0c1.5 0 3-0.2 4.5-0.4 10.2 38.8 45.5 67.3 87.5 67.3 50 0 90.5-40.5 90.5-90.4 0-49.9-40.5-90.6-90.5-90.59999999-42 0-77.3 28.6-87.5 67.39999999-1.4-0.2-2.9-0.4-4.49999999-0.4L446.3 243.3c-34.80000001 0-61.3 31.6-61.3 68.50000001L385 513.7l-79.1 0c-10.4-38.5-45.49999999-67-87.4-67-50 0-90.5 40.5-90.5 90.5s40.5 90.5 90.5 90.5c41.79999999 0 77.00000001-28.4 87.4-67L385 560.69999999z" fill="" ></path></symbol><symbol id="icon-left" viewBox="0 0 1024 1024"><path d="M639 463.30000001L639 285.1c0-36.90000001-26.4-68.5-61.3-68.5l-150.2 0c-1.5 0-3 0.1-4.5 0.3-10.2-38.7-45.5-67.3-87.5-67.3-50 0-90.5 40.5-90.5 90.5s40.5 90.5 90.5 90.5c42 0 77.3-28.6 87.5-67.39999999 1.4 0.3 2.9 0.4 4.5 0.39999999L577.7 263.6c6.8 0 14.3 8.9 14.3 21.49999999l0 427.00000001c0 12.7-7.40000001 21.5-14.30000001 21.5l-150.19999999 0c-1.5 0-3 0.2-4.5 0.4-10.2-38.8-45.5-67.3-87.5-67.3-50 0-90.5 40.5-90.5 90.4 0 49.9 40.5 90.6 90.5 90.59999999 42 0 77.3-28.6 87.5-67.39999999 1.4 0.2 2.9 0.4 4.49999999 0.4L577.7 780.7c34.80000001 0 61.3-31.6 61.3-68.50000001L639 510.3l79.1 0c10.4 38.5 45.49999999 67 87.4 67 50 0 90.5-40.5 90.5-90.5s-40.5-90.5-90.5-90.5c-41.79999999 0-77.00000001 28.4-87.4 67L639 463.30000001z" fill="" ></path></symbol><symbol id="icon-side" viewBox="0 0 1024 1024"><path d="M851.91168 328.45312c-59.97056 0-108.6208 48.47104-108.91264 108.36992l-137.92768 38.4a109.14304 109.14304 0 0 0-63.46752-46.58688l1.39264-137.11872c47.29344-11.86816 82.31936-54.66624 82.31936-105.64096 0-60.15488-48.76288-108.91776-108.91776-108.91776s-108.91776 48.76288-108.91776 108.91776c0 49.18784 32.60928 90.75712 77.38368 104.27392l-1.41312 138.87488a109.19936 109.19936 0 0 0-63.50336 48.55808l-138.93632-39.48544 0.01024-0.72704c0-60.15488-48.76288-108.91776-108.91776-108.91776s-108.91776 48.75776-108.91776 108.91776c0 60.15488 48.76288 108.91264 108.91776 108.91264 39.3984 0 73.91232-20.92032 93.03552-52.2496l139.19232 39.552-0.00512 0.2304c0 25.8304 9.00096 49.5616 24.02816 68.23424l-90.14272 132.63872a108.7488 108.7488 0 0 0-34.2528-5.504c-60.15488 0-108.91776 48.768-108.91776 108.91776 0 60.16 48.76288 108.91776 108.91776 108.91776 60.16 0 108.92288-48.75776 108.92288-108.91776 0-27.14624-9.9328-51.968-26.36288-71.04l89.04704-131.03104a108.544 108.544 0 0 0 37.6832 6.70208 108.672 108.672 0 0 0 36.48512-6.272l93.13792 132.57216a108.48256 108.48256 0 0 0-24.69888 69.0688c0 60.16 48.768 108.92288 108.91776 108.92288 60.16 0 108.91776-48.76288 108.91776-108.92288 0-60.14976-48.75776-108.91776-108.91776-108.91776a108.80512 108.80512 0 0 0-36.69504 6.3488l-93.07136-132.48a108.48768 108.48768 0 0 0 24.79616-72.22784l136.09984-37.888c18.99008 31.93856 53.84192 53.3504 93.69088 53.3504 60.16 0 108.92288-48.75776 108.92288-108.91264-0.00512-60.15488-48.77312-108.92288-108.92288-108.92288z" ></path></symbol><symbol id="icon-B" viewBox="0 0 1024 1024"><path d="M98.067692 65.457231H481.28c75.854769 0 132.411077 3.150769 169.668923 9.452307 37.336615 6.301538 70.656 19.534769 100.036923 39.620924 29.459692 20.007385 53.956923 46.710154 73.570462 80.029538 19.692308 33.398154 29.459692 70.734769 29.459692 112.167385 0 44.898462-12.130462 86.094769-36.233846 123.588923a224.886154 224.886154 0 0 1-98.461539 84.283077c58.368 17.092923 103.266462 46.08 134.695385 87.04 31.350154 40.96 47.025231 89.088 47.025231 144.462769 0 43.638154-10.082462 86.016-30.404923 127.212308-20.243692 41.196308-47.891692 74.043077-83.02277 98.697846-35.052308 24.654769-78.296615 39.778462-129.732923 45.449846-32.295385 3.465846-110.119385 5.671385-233.472 6.537846H98.067692V65.457231z m193.536 159.507692V446.621538h126.818462c75.460923 0 122.328615-1.024 140.603077-3.229538 33.083077-3.938462 59.155692-15.36 78.139077-34.343385 18.904615-18.904615 28.435692-43.874462 28.435692-74.830769 0-29.696-8.192-53.720615-24.497231-72.310154-16.384-18.510769-40.644923-29.696-72.940307-33.634461-19.140923-2.205538-74.279385-3.308308-165.415385-3.308308h-111.064615z m0 381.243077v256.315077h179.2c69.710769 0 113.979077-1.969231 132.726154-5.907692 28.750769-5.198769 52.145231-17.959385 70.262154-38.281847 18.116923-20.243692 27.096615-47.340308 27.096615-81.368615 0-28.750769-6.931692-53.169231-20.873846-73.255385a118.232615 118.232615 0 0 0-60.494769-43.795692c-26.387692-9.137231-83.574154-13.705846-171.638154-13.705846H291.603692z" ></path></symbol><symbol id="icon-a" viewBox="0 0 1024 1024"><path d="M757.76 665.6q0 20.48 1.536 34.304t7.68 22.016 18.944 12.288 34.304 4.096q-3.072 25.6-15.36 44.032-11.264 16.384-33.28 29.696t-62.976 13.312q-11.264 0-20.48-0.512t-17.408-2.56l-6.144-2.048-1.024 0q-4.096-1.024-10.24-4.096-2.048-2.048-4.096-2.048-1.024-1.024-2.048-1.024-14.336-8.192-23.552-17.408t-14.336-17.408q-6.144-10.24-9.216-20.48-63.488 75.776-178.176 75.776-48.128 0-88.064-15.36t-69.12-44.032-45.056-68.096-15.872-88.576 16.896-89.088 47.616-67.584 74.24-42.496 96.768-14.848q48.128 0 88.576 17.408t66.048 49.152q0-8.192 0.512-16.384t0.512-15.36q0-71.68-39.936-104.448t-128-32.768q-43.008 0-84.992 6.656t-84.992 17.92q14.336-28.672 25.088-47.616t24.064-29.184q30.72-24.576 158.72-24.576 79.872 0 135.168 13.824t90.624 43.52 51.2 75.264 15.872 108.032l0 200.704zM487.424 743.424q50.176 0 79.872-33.28t29.696-95.744q0-61.44-28.672-93.696t-76.8-32.256q-52.224 0-82.944 33.28t-30.72 94.72q0 58.368 31.744 92.672t77.824 34.304z" ></path></symbol><symbol id="icon-full" viewBox="0 0 1024 1024"><path d="M639.328 416c8.032 0 16.096-3.008 22.304-9.056l202.624-197.184-0.8 143.808c-0.096 17.696 14.144 32.096 31.808 32.192 0.064 0 0.128 0 0.192 0 17.6 0 31.904-14.208 32-31.808l1.248-222.208c0-0.672-0.352-1.248-0.384-1.92 0.032-0.512 0.288-0.896 0.288-1.408 0.032-17.664-14.272-32-31.968-32.032L671.552 96l-0.032 0c-17.664 0-31.968 14.304-32 31.968C639.488 145.632 653.824 160 671.488 160l151.872 0.224-206.368 200.8c-12.672 12.32-12.928 32.608-0.64 45.248C622.656 412.736 630.976 416 639.328 416z" ></path><path d="M896.032 639.552 896.032 639.552c-17.696 0-32 14.304-32.032 31.968l-0.224 151.872-200.832-206.4c-12.32-12.64-32.576-12.96-45.248-0.64-12.672 12.352-12.928 32.608-0.64 45.248l197.184 202.624-143.808-0.8c-0.064 0-0.128 0-0.192 0-17.6 0-31.904 14.208-32 31.808-0.096 17.696 14.144 32.096 31.808 32.192l222.24 1.248c0.064 0 0.128 0 0.192 0 0.64 0 1.12-0.32 1.76-0.352 0.512 0.032 0.896 0.288 1.408 0.288l0.032 0c17.664 0 31.968-14.304 32-31.968L928 671.584C928.032 653.952 913.728 639.584 896.032 639.552z" ></path><path d="M209.76 159.744l143.808 0.8c0.064 0 0.128 0 0.192 0 17.6 0 31.904-14.208 32-31.808 0.096-17.696-14.144-32.096-31.808-32.192L131.68 95.328c-0.064 0-0.128 0-0.192 0-0.672 0-1.248 0.352-1.888 0.384-0.448 0-0.8-0.256-1.248-0.256 0 0-0.032 0-0.032 0-17.664 0-31.968 14.304-32 31.968L96 352.448c-0.032 17.664 14.272 32 31.968 32.032 0 0 0.032 0 0.032 0 17.664 0 31.968-14.304 32-31.968l0.224-151.936 200.832 206.4c6.272 6.464 14.624 9.696 22.944 9.696 8.032 0 16.096-3.008 22.304-9.056 12.672-12.32 12.96-32.608 0.64-45.248L209.76 159.744z" ></path><path d="M362.368 617.056l-202.624 197.184 0.8-143.808c0.096-17.696-14.144-32.096-31.808-32.192-0.064 0-0.128 0-0.192 0-17.6 0-31.904 14.208-32 31.808l-1.248 222.24c0 0.704 0.352 1.312 0.384 2.016 0 0.448-0.256 0.832-0.256 1.312-0.032 17.664 14.272 32 31.968 32.032L352.448 928c0 0 0.032 0 0.032 0 17.664 0 31.968-14.304 32-31.968s-14.272-32-31.968-32.032l-151.936-0.224 206.4-200.832c12.672-12.352 12.96-32.608 0.64-45.248S375.008 604.704 362.368 617.056z" ></path></symbol><symbol id="icon-add" viewBox="0 0 1024 1024"><path d="M863.328 482.56l-317.344-1.12L545.984 162.816c0-17.664-14.336-32-32-32s-32 14.336-32 32l0 318.4L159.616 480.064c-0.032 0-0.064 0-0.096 0-17.632 0-31.936 14.24-32 31.904C127.424 529.632 141.728 544 159.392 544.064l322.592 1.152 0 319.168c0 17.696 14.336 32 32 32s32-14.304 32-32l0-318.944 317.088 1.12c0.064 0 0.096 0 0.128 0 17.632 0 31.936-14.24 32-31.904C895.264 496.992 880.96 482.624 863.328 482.56z" ></path></symbol><symbol id="icon-move" viewBox="0 0 1024 1024"><path d="M863.744 544 163.424 544c-17.664 0-32-14.336-32-32s14.336-32 32-32l700.32 0c17.696 0 32 14.336 32 32S881.44 544 863.744 544z" ></path></symbol><symbol id="icon-living" viewBox="0 0 1024 1024"><path d="M514.133333 488.533333m-106.666666 0a106.666667 106.666667 0 1 0 213.333333 0 106.666667 106.666667 0 1 0-213.333333 0Z" fill="" ></path><path d="M512 64C264.533333 64 64 264.533333 64 512c0 236.8 183.466667 428.8 416 445.866667v-134.4c-53.333333-59.733333-200.533333-230.4-200.533333-334.933334 0-130.133333 104.533333-234.666667 234.666666-234.666666s234.666667 104.533333 234.666667 234.666666c0 61.866667-49.066667 153.6-145.066667 270.933334l-59.733333 68.266666V960C776.533333 942.933333 960 748.8 960 512c0-247.466667-200.533333-448-448-448z" fill="" ></path></symbol></svg>', l = (l = document.getElementsByTagName("script"))[l.length - 1].getAttribute("data-injectcss");
4
+ if (l && !e.__iconfont__svg__cssinject__) {
5
5
  e.__iconfont__svg__cssinject__ = !0;
6
6
  try {
7
7
  document.write(
8
8
  "<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>"
9
9
  );
10
- } catch (a) {
11
- console && console.log(a);
10
+ } catch {
12
11
  }
13
12
  }
14
13
  function h() {
@@ -16,7 +15,7 @@
16
15
  }
17
16
  t = function() {
18
17
  var a, u, d, m;
19
- (m = document.createElement("div")).innerHTML = l, l = null, (d = m.getElementsByTagName("svg")[0]) && (d.setAttribute("aria-hidden", "true"), d.style.position = "absolute", d.style.width = 0, d.style.height = 0, d.style.overflow = "hidden", a = d, (u = document.body).firstChild ? (m = a, (d = u.firstChild).parentNode.insertBefore(m, d)) : u.appendChild(a));
18
+ (m = document.createElement("div")).innerHTML = c, c = null, (d = m.getElementsByTagName("svg")[0]) && (d.setAttribute("aria-hidden", "true"), d.style.position = "absolute", d.style.width = 0, d.style.height = 0, d.style.overflow = "hidden", a = d, (u = document.body).firstChild ? (m = a, (d = u.firstChild).parentNode.insertBefore(m, d)) : u.appendChild(a));
20
19
  }, document.addEventListener ? ~["complete", "loaded", "interactive"].indexOf(document.readyState) ? setTimeout(t, 0) : (n = function() {
21
20
  document.removeEventListener("DOMContentLoaded", n, !1), t();
22
21
  }, document.addEventListener("DOMContentLoaded", n, !1)) : document.attachEvent && (o = t, s = e.document, i = !1, (r = function() {
@@ -42,7 +41,7 @@ const T = 0, z = 1, ie = 2, D = 30, De = {
42
41
  "--panel-bgcolor": "#ffffff",
43
42
  "--panel-border-color": "#eaeaea"
44
43
  }
45
- }, Oe = {
44
+ }, $e = {
46
45
  name: "Dark",
47
46
  palette: ["#848FA0", "#748BE9", "#D2F9FE", "#4145A5", "#789AFA", "#706CF4", "#EF987F", "#775DD5", "#FCEECF", "#DA7FBC"],
48
47
  cssVar: {
@@ -70,10 +69,10 @@ const et = () => /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/
70
69
  return null;
71
70
  } else
72
71
  return null;
73
- }, O = (e, t) => {
72
+ }, $ = (e, t) => {
74
73
  if (e.parent = t, e.children)
75
74
  for (let n = 0; n < e.children.length; n++)
76
- O(e.children[n], e);
75
+ $(e.children[n], e);
77
76
  };
78
77
  function he(e) {
79
78
  if (e.id = G(), e.children)
@@ -86,16 +85,16 @@ const tt = (e, t) => {
86
85
  Date.now() - n < t || (e(...o), n = Date.now());
87
86
  };
88
87
  };
89
- function $e(e, t, n, o) {
88
+ function Oe(e, t, n, o) {
90
89
  const s = o - t, i = e - n;
91
90
  let r = Math.atan(Math.abs(s) / Math.abs(i)) / 3.14 * 180;
92
91
  i < 0 && s > 0 && (r = 180 - r), i < 0 && s < 0 && (r = 180 + r), i > 0 && s < 0 && (r = 360 - r);
93
- const l = 15, c = 30, h = r + c, a = r - c;
92
+ const c = 15, l = 30, h = r + l, a = r - l;
94
93
  return {
95
- x1: n + Math.cos(Math.PI * h / 180) * l,
96
- y1: o - Math.sin(Math.PI * h / 180) * l,
97
- x2: n + Math.cos(Math.PI * a / 180) * l,
98
- y2: o - Math.sin(Math.PI * a / 180) * l
94
+ x1: n + Math.cos(Math.PI * h / 180) * c,
95
+ y1: o - Math.sin(Math.PI * h / 180) * c,
96
+ x2: n + Math.cos(Math.PI * a / 180) * c,
97
+ y2: o - Math.sin(Math.PI * a / 180) * c
99
98
  };
100
99
  }
101
100
  function G() {
@@ -116,15 +115,15 @@ function ue(e) {
116
115
  })
117
116
  );
118
117
  }
119
- const $ = (e, t) => {
118
+ const O = (e, t) => {
120
119
  let n = 0, o = 0;
121
120
  for (; t && t !== e; )
122
121
  n += t.offsetLeft, o += t.offsetTop, t = t.offsetParent;
123
122
  return { offsetLeft: n, offsetTop: o };
124
- }, N = (e, t) => {
123
+ }, C = (e, t) => {
125
124
  for (const n in t)
126
125
  e.setAttribute(n, t[n]);
127
- }, ce = (e) => e ? e.tagName === "ME-TPC" : !1, re = (e) => e.filter((t) => {
126
+ }, le = (e) => e ? e.tagName === "ME-TPC" : !1, re = (e) => e.filter((t) => {
128
127
  for (let n = 0; n < e.length; n++) {
129
128
  if (t === e[n])
130
129
  continue;
@@ -168,15 +167,17 @@ function ot(e) {
168
167
  const n = t.target;
169
168
  if (n.tagName === "ME-EPD")
170
169
  e.expandNode(n.previousSibling);
170
+ else if (le(n))
171
+ e.selectNode(n, !1, t);
171
172
  else if (e.editable)
172
- ce(n) ? e.selectNode(n, !1, t) : n.tagName === "text" ? n.dataset.type === "custom-link" ? e.selectArrow(n.parentElement) : e.selectSummary(n.parentElement) : n.className;
173
+ n.tagName === "text" ? n.dataset.type === "custom-link" ? e.selectArrow(n.parentElement) : e.selectSummary(n.parentElement) : n.className;
173
174
  else
174
175
  return;
175
176
  }), e.map.addEventListener("dblclick", (t) => {
176
177
  if (t.preventDefault(), !e.editable)
177
178
  return;
178
179
  const n = t.target;
179
- ce(n) ? e.beginEdit(n) : n.tagName === "text" && (n.dataset.type === "custom-link" ? e.editArrowLabel(n.parentElement) : e.editSummary(n.parentElement));
180
+ le(n) ? e.beginEdit(n) : n.tagName === "text" && (n.dataset.type === "custom-link" ? e.editArrowLabel(n.parentElement) : e.editSummary(n.parentElement));
180
181
  }), e.map.addEventListener("mousemove", (t) => {
181
182
  t.target.contentEditable !== "true" && L.onMove(t, e.container);
182
183
  }), e.map.addEventListener("mousedown", (t) => {
@@ -197,7 +198,6 @@ const st = {
197
198
  return {
198
199
  handlers: {},
199
200
  showHandler: function() {
200
- console.log(this.handlers);
201
201
  },
202
202
  addListener: function(e, t) {
203
203
  this.handlers[e] === void 0 && (this.handlers[e] = []), this.handlers[e].push(t);
@@ -222,7 +222,7 @@ const st = {
222
222
  };
223
223
  }
224
224
  }, oe = document, it = function() {
225
- console.time("layout"), this.nodes.innerHTML = "";
225
+ this.nodes.innerHTML = "";
226
226
  const e = this.createTopic(this.nodeData);
227
227
  fe(e, this.nodeData), e.draggable = !1;
228
228
  const t = oe.createElement("me-root");
@@ -234,25 +234,25 @@ const st = {
234
234
  i.direction === T ? o += 1 : i.direction === z ? s += 1 : o <= s ? (i.direction = T, o += 1) : (i.direction = z, s += 1);
235
235
  });
236
236
  }
237
- rt(this, n, t), console.timeEnd("layout");
237
+ rt(this, n, t);
238
238
  }, rt = function(e, t, n) {
239
239
  const o = oe.createElement("me-main");
240
240
  o.className = "lhs";
241
241
  const s = oe.createElement("me-main");
242
242
  s.className = "rhs";
243
243
  for (let i = 0; i < t.length; i++) {
244
- const r = t[i], { grp: l } = e.createWrapper(r);
245
- e.direction === ie ? r.direction === T ? o.appendChild(l) : s.appendChild(l) : e.direction === T ? o.appendChild(l) : s.appendChild(l);
244
+ const r = t[i], { grp: c } = e.createWrapper(r);
245
+ e.direction === ie ? r.direction === T ? o.appendChild(c) : s.appendChild(c) : e.direction === T ? o.appendChild(c) : s.appendChild(c);
246
246
  }
247
247
  e.nodes.appendChild(o), e.nodes.appendChild(n), e.nodes.appendChild(s), e.nodes.appendChild(e.lines);
248
- }, lt = function(e, t) {
248
+ }, ct = function(e, t) {
249
249
  const n = oe.createElement("me-children");
250
250
  for (let o = 0; o < t.length; o++) {
251
251
  const s = t[o], { grp: i } = e.createWrapper(s);
252
252
  n.appendChild(i);
253
253
  }
254
254
  return n;
255
- }, S = document, C = (e, t) => {
255
+ }, S = document, N = (e, t) => {
256
256
  const o = (t ? t.mindElixirBox : S).querySelector(`[data-nodeid=me${e}]`);
257
257
  if (!o)
258
258
  throw new Error(`FindEle: Node ${e} not found, maybe it's collapsed.`);
@@ -267,8 +267,7 @@ const st = {
267
267
  if (n.url && n.width && n.height) {
268
268
  const o = S.createElement("img");
269
269
  o.src = n.url, o.style.width = n.width + "px", o.style.height = n.height + "px", e.appendChild(o), e.image = o;
270
- } else
271
- console.warn("image url/width/height are required");
270
+ }
272
271
  } else
273
272
  e.image && (e.image = void 0);
274
273
  {
@@ -290,12 +289,12 @@ const st = {
290
289
  n.className = "tags", n.innerHTML = t.tags.map((o) => `<span>${te(o)}</span>`).join(""), e.appendChild(n), e.tags = n;
291
290
  } else
292
291
  e.tags && (e.tags = void 0);
293
- }, ct = function(e, t) {
292
+ }, lt = function(e, t) {
294
293
  const n = S.createElement("me-wrapper"), { p: o, tpc: s } = this.createParent(e);
295
294
  if (n.appendChild(o), !t && e.children && e.children.length > 0) {
296
295
  const i = pe(e.expanded);
297
296
  if (o.appendChild(i), e.expanded !== !1) {
298
- const r = lt(this, e.children);
297
+ const r = ct(this, e.children);
299
298
  n.appendChild(r);
300
299
  }
301
300
  }
@@ -317,7 +316,7 @@ function Pe(e) {
317
316
  n && (n.removeAllRanges(), n.addRange(t));
318
317
  }
319
318
  const ut = function(e) {
320
- if (console.time("editTopic"), !e)
319
+ if (!e)
321
320
  return;
322
321
  const t = S.createElement("div"), n = e.text.textContent;
323
322
  e.appendChild(t), t.id = "input-box", t.textContent = n, t.contentEditable = "true", t.spellcheck = !1, t.style.cssText = `min-width:${e.offsetWidth - 8}px;`, this.direction === T && (t.style.right = "0"), t.focus(), Pe(t), this.bus.fire("operation", {
@@ -336,28 +335,28 @@ const ut = function(e) {
336
335
  if (!t)
337
336
  return;
338
337
  const o = e.nodeObj, s = ((i = t.textContent) == null ? void 0 : i.trim()) || "";
339
- console.log(s), s === "" ? o.topic = n : o.topic = s, t.remove(), s !== n && (e.text.textContent = o.topic, this.linkDiv(), this.bus.fire("operation", {
338
+ s === "" ? o.topic = n : o.topic = s, t.remove(), s !== n && (e.text.textContent = o.topic, this.linkDiv(), this.bus.fire("operation", {
340
339
  name: "finishEdit",
341
340
  obj: o,
342
341
  origin: n
343
342
  }));
344
- }), console.timeEnd("editTopic");
343
+ });
345
344
  }, pe = function(e) {
346
345
  const t = S.createElement("me-epd");
347
346
  return t.expanded = e !== !1, t.className = e !== !1 ? "minus" : "", t;
348
- }, V = document, W = "http://www.w3.org/2000/svg", He = function(e, t, n) {
349
- const o = V.createElementNS(W, "path");
350
- return N(o, {
347
+ }, K = document, V = "http://www.w3.org/2000/svg", He = function(e, t, n) {
348
+ const o = K.createElementNS(V, "path");
349
+ return C(o, {
351
350
  d: e,
352
351
  stroke: t || "#666",
353
352
  fill: "none",
354
353
  "stroke-width": n
355
354
  }), o;
356
355
  }, X = function(e) {
357
- const t = V.createElementNS(W, "svg");
356
+ const t = K.createElementNS(V, "svg");
358
357
  return t.setAttribute("class", e), t.setAttribute("overflow", "visible"), t;
359
358
  }, be = function() {
360
- const e = V.createElementNS(W, "line");
359
+ const e = K.createElementNS(V, "line");
361
360
  return e.setAttribute("stroke", "#bbb"), e.setAttribute("fill", "none"), e.setAttribute("stroke-width", "2"), e;
362
361
  }, ft = function(e, t) {
363
362
  const n = {
@@ -365,17 +364,17 @@ const ut = function(e) {
365
364
  fill: "none",
366
365
  "stroke-linecap": "cap",
367
366
  "stroke-width": "2"
368
- }, o = V.createElementNS(W, "g"), s = V.createElementNS(W, "path"), i = V.createElementNS(W, "path");
369
- return N(i, {
367
+ }, o = K.createElementNS(V, "g"), s = K.createElementNS(V, "path"), i = K.createElementNS(V, "path");
368
+ return C(i, {
370
369
  d: t,
371
370
  ...n
372
- }), N(s, {
371
+ }), C(s, {
373
372
  d: e,
374
373
  ...n,
375
374
  "stroke-dasharray": "8,2"
376
375
  }), o.appendChild(s), o.appendChild(i), o;
377
376
  }, Be = function(e, t, n) {
378
- if (console.time("editSummary"), !t)
377
+ if (!t)
379
378
  return;
380
379
  const o = document.createElement("div");
381
380
  e.nodes.appendChild(o);
@@ -383,37 +382,37 @@ const ut = function(e) {
383
382
  o.id = "input-box", o.textContent = s, o.contentEditable = "true", o.spellcheck = !1;
384
383
  const i = t.getAttribute("x"), r = t.getAttribute("y");
385
384
  o.style.cssText = `min-width:88px;position:absolute;left:${i}px;top:${r}px;`;
386
- const l = t.getAttribute("text-anchor");
387
- l === "end" ? o.style.cssText += "transform: translate(-100%, -100%);" : l === "middle" ? o.style.cssText += "transform: translate(-50%, -100%);" : o.style.cssText += "transform: translate(0, -100%);", o.focus(), Pe(o), o.addEventListener("keydown", (c) => {
388
- c.stopPropagation();
389
- const h = c.key;
385
+ const c = t.getAttribute("text-anchor");
386
+ c === "end" ? o.style.cssText += "transform: translate(-100%, -100%);" : c === "middle" ? o.style.cssText += "transform: translate(-50%, -100%);" : o.style.cssText += "transform: translate(0, -100%);", o.focus(), Pe(o), o.addEventListener("keydown", (l) => {
387
+ l.stopPropagation();
388
+ const h = l.key;
390
389
  if (h === "Enter" || h === "Tab") {
391
- if (c.shiftKey)
390
+ if (l.shiftKey)
392
391
  return;
393
- c.preventDefault(), o.blur(), e.map.focus();
392
+ l.preventDefault(), o.blur(), e.map.focus();
394
393
  }
395
394
  }), o.addEventListener("blur", () => {
396
395
  o && n(o);
397
- }), console.timeEnd("editSummary");
396
+ });
398
397
  }, pt = function(e) {
399
- console.time("linkDiv"), this.nodes.style.top = `${1e4 - this.nodes.offsetHeight / 2}px`, this.nodes.style.left = `${1e4 - this.nodes.offsetWidth / 2}px`;
398
+ this.nodes.style.top = `${1e4 - this.nodes.offsetHeight / 2}px`, this.nodes.style.left = `${1e4 - this.nodes.offsetWidth / 2}px`;
400
399
  const t = this.map.querySelectorAll("me-main > me-wrapper");
401
400
  this.lines.innerHTML = "";
402
401
  const n = this.map.querySelector("me-root"), o = n.offsetTop, s = n.offsetLeft, i = n.offsetWidth, r = n.offsetHeight;
403
- for (let l = 0; l < t.length; l++) {
404
- const c = t[l], h = c.querySelector("me-tpc"), { offsetLeft: a, offsetTop: u } = $(this.nodes, h), d = h.offsetWidth, m = h.offsetHeight, g = c.parentNode.className, p = this.generateMainBranch({ pT: o, pL: s, pW: i, pH: r, cT: u, cL: a, cW: d, cH: m, direction: g, containerHeight: this.nodes.offsetHeight }), f = this.theme.palette, v = h.nodeObj.branchColor || f[l % f.length];
402
+ for (let c = 0; c < t.length; c++) {
403
+ const l = t[c], h = l.querySelector("me-tpc"), { offsetLeft: a, offsetTop: u } = O(this.nodes, h), d = h.offsetWidth, m = h.offsetHeight, g = l.parentNode.className, p = this.generateMainBranch({ pT: o, pL: s, pW: i, pH: r, cT: u, cL: a, cW: d, cH: m, direction: g, containerHeight: this.nodes.offsetHeight }), f = this.theme.palette, v = h.nodeObj.branchColor || f[c % f.length];
405
404
  h.style.borderColor = v, this.lines.appendChild(He(p, v, "3"));
406
- const b = c.children[0].children[1];
407
- if (b && (b.style.top = (b.parentNode.offsetHeight - b.offsetHeight) / 2 + "px", g === "lhs" ? b.style.left = "-10px" : b.style.right = "-10px"), !(e && e !== c) && c.childElementCount) {
408
- const y = X("subLines"), x = c.lastChild;
409
- x.tagName === "svg" && x.remove(), c.appendChild(y), ze(this, y, v, c, g, !0);
405
+ const b = l.children[0].children[1];
406
+ if (b && (b.style.top = (b.parentNode.offsetHeight - b.offsetHeight) / 2 + "px", g === "lhs" ? b.style.left = "-10px" : b.style.right = "-10px"), !(e && e !== l) && l.childElementCount) {
407
+ const y = X("subLines"), x = l.lastChild;
408
+ x.tagName === "svg" && x.remove(), l.appendChild(y), ze(this, y, v, l, g, !0);
410
409
  }
411
410
  }
412
- this.renderArrow(), this.renderSummary(), console.timeEnd("linkDiv");
411
+ this.renderArrow(), this.renderSummary();
413
412
  }, ze = function(e, t, n, o, s, i) {
414
- const r = o.firstChild, l = o.children[1].children, c = r.offsetTop, h = r.offsetLeft, a = r.offsetWidth, u = r.offsetHeight;
415
- for (let d = 0; d < l.length; d++) {
416
- const m = l[d], g = m.firstChild, p = g.offsetTop, f = g.offsetLeft, v = g.offsetWidth, b = g.offsetHeight, y = g.firstChild.nodeObj.branchColor || n, x = e.generateSubBranch({ pT: c, pL: h, pW: a, pH: u, cT: p, cL: f, cW: v, cH: b, direction: s, isFirst: i });
413
+ const r = o.firstChild, c = o.children[1].children, l = r.offsetTop, h = r.offsetLeft, a = r.offsetWidth, u = r.offsetHeight;
414
+ for (let d = 0; d < c.length; d++) {
415
+ const m = c[d], g = m.firstChild, p = g.offsetTop, f = g.offsetLeft, v = g.offsetWidth, b = g.offsetHeight, y = g.firstChild.nodeObj.branchColor || n, x = e.generateSubBranch({ pT: l, pL: h, pW: a, pH: u, cT: p, cL: f, cW: v, cH: b, direction: s, isFirst: i });
417
416
  t.appendChild(He(x, y, "2"));
418
417
  const w = g.children[1];
419
418
  if (w) {
@@ -537,8 +536,8 @@ function mt(e, t) {
537
536
  }, o = (y, x, w) => {
538
537
  const _ = document.createElement("li");
539
538
  return _.id = y, _.innerHTML = `<span>${te(x)}</span><span>${te(w)}</span>`, _;
540
- }, s = xe[e.locale] ? e.locale : "en", i = xe[s], r = o("cm-add_child", i.addChild, "tab"), l = o("cm-add_parent", i.addParent, ""), c = o("cm-add_sibling", i.addSibling, "enter"), h = o("cm-remove_child", i.removeNode, "delete"), a = o("cm-fucus", i.focus, ""), u = o("cm-unfucus", i.cancelFocus, ""), d = o("cm-up", i.moveUp, "PgUp"), m = o("cm-down", i.moveDown, "Pgdn"), g = o("cm-down", i.link, ""), p = o("cm-down", i.summary, ""), f = document.createElement("ul");
541
- if (f.className = "menu-list", f.appendChild(r), f.appendChild(l), f.appendChild(c), f.appendChild(h), (!t || t.focus) && (f.appendChild(a), f.appendChild(u)), f.appendChild(d), f.appendChild(m), f.appendChild(p), (!t || t.link) && f.appendChild(g), t && t.extend)
539
+ }, s = xe[e.locale] ? e.locale : "en", i = xe[s], r = o("cm-add_child", i.addChild, "tab"), c = o("cm-add_parent", i.addParent, ""), l = o("cm-add_sibling", i.addSibling, "enter"), h = o("cm-remove_child", i.removeNode, "delete"), a = o("cm-fucus", i.focus, ""), u = o("cm-unfucus", i.cancelFocus, ""), d = o("cm-up", i.moveUp, "PgUp"), m = o("cm-down", i.moveDown, "Pgdn"), g = o("cm-down", i.link, ""), p = o("cm-down", i.summary, ""), f = document.createElement("ul");
540
+ if (f.className = "menu-list", f.appendChild(r), f.appendChild(c), f.appendChild(l), f.appendChild(h), (!t || t.focus) && (f.appendChild(a), f.appendChild(u)), f.appendChild(d), f.appendChild(m), f.appendChild(p), (!t || t.link) && f.appendChild(g), t && t.extend)
542
541
  for (let y = 0; y < t.extend.length; y++) {
543
542
  const x = t.extend[y], w = o(x.name, x.name, x.key || "");
544
543
  f.appendChild(w), w.onclick = (_) => {
@@ -552,8 +551,8 @@ function mt(e, t) {
552
551
  if (y.preventDefault(), !e.editable)
553
552
  return;
554
553
  const x = y.target;
555
- if (ce(x)) {
556
- x.parentElement.tagName === "ME-ROOT" ? b = !0 : b = !1, b ? (a.className = "disabled", d.className = "disabled", m.className = "disabled", l.className = "disabled", c.className = "disabled", h.className = "disabled") : (a.className = "", d.className = "", m.className = "", l.className = "", c.className = "", h.className = ""), e.currentNodes || e.selectNode(x), v.hidden = !1, L.mousedown && (L.mousedown = !1), f.style.top = "", f.style.bottom = "", f.style.left = "", f.style.right = "";
554
+ if (le(x)) {
555
+ x.parentElement.tagName === "ME-ROOT" ? b = !0 : b = !1, b ? (a.className = "disabled", d.className = "disabled", m.className = "disabled", c.className = "disabled", l.className = "disabled", h.className = "disabled") : (a.className = "", d.className = "", m.className = "", c.className = "", l.className = "", h.className = ""), e.currentNodes || e.selectNode(x), v.hidden = !1, L.mousedown && (L.mousedown = !1), f.style.top = "", f.style.bottom = "", f.style.left = "", f.style.right = "";
557
556
  const w = f.getBoundingClientRect(), _ = f.offsetHeight, P = f.offsetWidth, U = y.clientY - w.top, H = y.clientX - w.left;
558
557
  _ + U > window.innerHeight ? (f.style.top = "", f.style.bottom = "0px") : (f.style.bottom = "", f.style.top = U + 15 + "px"), P + H > window.innerWidth ? (f.style.left = "", f.style.right = "0px") : (f.style.right = "", f.style.left = H + 10 + "px");
559
558
  }
@@ -561,9 +560,9 @@ function mt(e, t) {
561
560
  y.target === v && (v.hidden = !0);
562
561
  }, r.onclick = () => {
563
562
  e.addChild(), v.hidden = !0;
564
- }, l.onclick = () => {
565
- e.insertParent(), v.hidden = !0;
566
563
  }, c.onclick = () => {
564
+ e.insertParent(), v.hidden = !0;
565
+ }, l.onclick = () => {
567
566
  b || (e.insertSibling("after"), v.hidden = !0);
568
567
  }, h.onclick = () => {
569
568
  b || (e.removeNode(), v.hidden = !0);
@@ -583,7 +582,7 @@ function mt(e, t) {
583
582
  (w) => {
584
583
  w.preventDefault(), x.remove();
585
584
  const _ = w.target;
586
- _.parentElement.tagName === "ME-PARENT" || _.parentElement.tagName === "ME-ROOT" ? e.createArrow(y, _) : console.log("link cancel");
585
+ (_.parentElement.tagName === "ME-PARENT" || _.parentElement.tagName === "ME-ROOT") && e.createArrow(y, _);
587
586
  },
588
587
  {
589
588
  once: !0
@@ -715,7 +714,7 @@ function Et(e, t) {
715
714
  return g.id = d, g.innerHTML = `<svg class="icon" aria-hidden="true">
716
715
  <use xlink:href="#icon-${m}"></use>
717
716
  </svg>`, g;
718
- }, o = n("cm-add_child", "zijiedian"), s = n("cm-add_sibling", "tongjijiedian-"), i = n("cm-remove_child", "shanchu2"), r = n("cm-up", "rising"), l = n("cm-down", "falling"), c = n("cm-edit", "edit"), h = document.createElement("ul");
717
+ }, o = n("cm-add_child", "zijiedian"), s = n("cm-add_sibling", "tongjijiedian-"), i = n("cm-remove_child", "shanchu2"), r = n("cm-up", "rising"), c = n("cm-down", "falling"), l = n("cm-edit", "edit"), h = document.createElement("ul");
719
718
  if (h.className = "menu-list", t && t.extend)
720
719
  for (let d = 0; d < t.extend.length; d++) {
721
720
  const m = t.extend[d], g = n(m.name, m.name);
@@ -724,7 +723,7 @@ function Et(e, t) {
724
723
  };
725
724
  }
726
725
  const a = document.createElement("mmenu");
727
- a.className = "mobile-menu", a.appendChild(o), a.appendChild(s), a.appendChild(i), a.appendChild(r), a.appendChild(l), a.appendChild(c), a.hidden = !0, e.container.append(a);
726
+ a.className = "mobile-menu", a.appendChild(o), a.appendChild(s), a.appendChild(i), a.appendChild(r), a.appendChild(c), a.appendChild(l), a.hidden = !0, e.container.append(a);
728
727
  let u = !0;
729
728
  e.bus.addListener("unselectNode", function() {
730
729
  a.hidden = !0;
@@ -740,13 +739,13 @@ function Et(e, t) {
740
739
  u || e.removeNode();
741
740
  }, r.onclick = (d) => {
742
741
  u || e.moveUpNode();
743
- }, l.onclick = (d) => {
744
- u || e.moveDownNode();
745
742
  }, c.onclick = (d) => {
743
+ u || e.moveDownNode();
744
+ }, l.onclick = (d) => {
746
745
  e.beginEdit();
747
746
  };
748
747
  }
749
- const ae = document, Nt = function(e, t) {
748
+ const ae = document, Ct = function(e, t) {
750
749
  if (!t)
751
750
  return de(e), e;
752
751
  let n = e.querySelector(".insert-preview");
@@ -758,59 +757,59 @@ const ae = document, Nt = function(e, t) {
758
757
  const t = e.querySelectorAll(".insert-preview");
759
758
  for (const n of t || [])
760
759
  n.remove();
761
- }, Ne = function(e, t) {
760
+ }, Ce = function(e, t) {
762
761
  for (const n of t) {
763
762
  const o = n.parentElement.parentElement.contains(e);
764
763
  if (!(e && e.tagName === "ME-TPC" && e !== n && !o && e.nodeObj.root !== !0))
765
764
  return !1;
766
765
  }
767
766
  return !0;
768
- }, Ct = function(e) {
767
+ }, Nt = function(e) {
769
768
  const t = document.createElement("div");
770
769
  return t.className = "mind-elixir-ghost", e.map.appendChild(t), t;
771
770
  };
772
771
  function _t(e) {
773
772
  let t = null, n = null, o = null;
774
- const s = Ct(e), i = 12;
773
+ const s = Nt(e), i = 12;
775
774
  e.map.addEventListener("dragstart", (r) => {
776
- var c, h;
777
- const l = r.target;
778
- if ((l == null ? void 0 : l.tagName) !== "ME-TPC") {
775
+ var l, h;
776
+ const c = r.target;
777
+ if ((c == null ? void 0 : c.tagName) !== "ME-TPC") {
779
778
  r.preventDefault();
780
779
  return;
781
780
  }
782
- (c = e.currentNodes) != null && c.includes(l) || (e.unselectNodes(), e.selectNode(l)), e.currentNodes ? (t = e.currentNodes, s.innerHTML = e.currentNodes.length + " nodes") : (t = [l], s.innerHTML = l.innerHTML);
781
+ (l = e.currentNodes) != null && l.includes(c) || (e.unselectNodes(), e.selectNode(c)), e.currentNodes ? (t = e.currentNodes, s.innerHTML = e.currentNodes.length + " nodes") : (t = [c], s.innerHTML = c.innerHTML);
783
782
  for (const a of t)
784
783
  a.parentElement.parentElement.style.opacity = "0.5";
785
784
  (h = r.dataTransfer) == null || h.setDragImage(s, 0, 0), L.clear();
786
785
  }), e.map.addEventListener("dragend", async (r) => {
787
786
  if (!t)
788
787
  return;
789
- for (const c of t)
790
- c.parentElement.parentElement.style.opacity = "1";
791
- const l = r.target;
792
- l.style.opacity = "", o && (de(o), n === "before" ? e.moveNodeBefore(t, o) : n === "after" ? e.moveNodeAfter(t, o) : n === "in" && e.moveNodeIn(t, o), t = null);
788
+ for (const l of t)
789
+ l.parentElement.parentElement.style.opacity = "1";
790
+ const c = r.target;
791
+ c.style.opacity = "", o && (de(o), n === "before" ? e.moveNodeBefore(t, o) : n === "after" ? e.moveNodeAfter(t, o) : n === "in" && e.moveNodeIn(t, o), t = null);
793
792
  }), e.map.addEventListener(
794
793
  "dragover",
795
794
  tt(function(r) {
796
795
  if (!t)
797
796
  return;
798
797
  de(o);
799
- const l = ae.elementFromPoint(r.clientX, r.clientY - i);
800
- if (Ne(l, t)) {
801
- o = l;
802
- const c = l.getBoundingClientRect().y;
803
- r.clientY > c + l.clientHeight ? n = "after" : n = "in";
798
+ const c = ae.elementFromPoint(r.clientX, r.clientY - i);
799
+ if (Ce(c, t)) {
800
+ o = c;
801
+ const l = c.getBoundingClientRect().y;
802
+ r.clientY > l + c.clientHeight ? n = "after" : n = "in";
804
803
  } else {
805
- const c = ae.elementFromPoint(r.clientX, r.clientY + i);
806
- if (Ne(c, t)) {
807
- o = c;
808
- const h = c.getBoundingClientRect().y;
804
+ const l = ae.elementFromPoint(r.clientX, r.clientY + i);
805
+ if (Ce(l, t)) {
806
+ o = l;
807
+ const h = l.getBoundingClientRect().y;
809
808
  r.clientY < h ? n = "before" : n = "in";
810
809
  } else
811
810
  n = o = null;
812
811
  }
813
- o && Nt(o, n);
812
+ o && Ct(o, n);
814
813
  }, 100)
815
814
  );
816
815
  }
@@ -840,13 +839,13 @@ function Mt(e) {
840
839
  }), e.undo = function() {
841
840
  if (n > -1) {
842
841
  const s = t[n];
843
- o = s.prev, e.refresh(s.prev), s.currentObject.type === "node" ? e.selectNode(C(s.currentObject.value)) : s.currentObject.type === "nodes" && e.selectNodes(s.currentObject.value.map((i) => C(i))), n--, console.log("current", o);
842
+ o = s.prev, e.refresh(s.prev), s.currentObject.type === "node" ? e.selectNode(N(s.currentObject.value)) : s.currentObject.type === "nodes" && e.selectNodes(s.currentObject.value.map((i) => N(i))), n--;
844
843
  }
845
844
  }, e.redo = function() {
846
845
  if (n < t.length - 1) {
847
846
  n++;
848
847
  const s = t[n];
849
- o = s.next, e.refresh(s.next), s.currentObject.type === "node" ? e.selectNode(C(s.currentObject.value)) : s.currentObject.type === "nodes" && e.selectNodes(s.currentObject.value.map((i) => C(i)));
848
+ o = s.next, e.refresh(s.next), s.currentObject.type === "node" ? e.selectNode(N(s.currentObject.value)) : s.currentObject.type === "nodes" && e.selectNodes(s.currentObject.value.map((i) => N(i)));
850
849
  }
851
850
  }, e.map.addEventListener("keydown", (s) => {
852
851
  (s.metaKey || s.ctrlKey) && s.shiftKey && s.key === "Z" ? e.redo() : (s.metaKey || s.ctrlKey) && s.key === "z" && e.undo();
@@ -883,7 +882,7 @@ function Tt(e) {
883
882
  function kt(e) {
884
883
  e.container.append(Lt(e)), e.container.append(Tt(e));
885
884
  }
886
- /*! @viselect/vanilla v3.3.1 MIT | https://github.com/Simonwep/selection/tree/master/packages/vanilla */
885
+ /*! @viselect/vanilla v3.5.1 MIT | https://github.com/Simonwep/selection/tree/master/packages/vanilla */
887
886
  var At = Object.defineProperty, jt = (e, t, n) => t in e ? At(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, E = (e, t, n) => (jt(e, typeof t != "symbol" ? t + "" : t, n), n);
888
887
  class Dt {
889
888
  constructor() {
@@ -907,24 +906,22 @@ class Dt {
907
906
  this._listeners.clear();
908
907
  }
909
908
  }
910
- const Ce = (e, t = "px") => typeof e == "number" ? e + t : e;
909
+ const Ne = (e, t = "px") => typeof e == "number" ? e + t : e;
911
910
  function A({ style: e }, t, n) {
912
911
  if (typeof t == "object")
913
912
  for (const [o, s] of Object.entries(t))
914
- s !== void 0 && (e[o] = Ce(s));
913
+ s !== void 0 && (e[o] = Ne(s));
915
914
  else
916
- n !== void 0 && (e[t] = Ce(n));
915
+ n !== void 0 && (e[t] = Ne(n));
917
916
  }
918
- function Re(e) {
919
- return (t, n, o, s = {}) => {
920
- t instanceof HTMLCollection || t instanceof NodeList ? t = Array.from(t) : Array.isArray(t) || (t = [t]), Array.isArray(n) || (n = [n]);
921
- for (const i of t)
917
+ const Re = (e) => (t, n, o, s = {}) => {
918
+ t instanceof HTMLCollection || t instanceof NodeList ? t = Array.from(t) : Array.isArray(t) || (t = [t]), Array.isArray(n) || (n = [n]);
919
+ for (const i of t)
920
+ if (i)
922
921
  for (const r of n)
923
922
  i[e](r, o, { capture: !1, ...s });
924
- return [t, n, o, s];
925
- };
926
- }
927
- const q = Re("addEventListener"), j = Re("removeEventListener"), Q = (e) => {
923
+ return [t, n, o, s];
924
+ }, q = Re("addEventListener"), j = Re("removeEventListener"), Q = (e) => {
928
925
  var t;
929
926
  const { clientX: n, clientY: o, target: s } = ((t = e.touches) == null ? void 0 : t[0]) ?? e;
930
927
  return { x: n, y: o, target: s };
@@ -950,7 +947,7 @@ function F(e, t = document) {
950
947
  }
951
948
  return o;
952
949
  }
953
- const Ot = () => matchMedia("(hover: none), (pointer: coarse)").matches, $t = () => "safari" in window, Pt = (e) => {
950
+ const $t = () => matchMedia("(hover: none), (pointer: coarse)").matches, Ot = () => "safari" in window, Pt = (e) => {
954
951
  let t, n = -1, o = !1;
955
952
  return {
956
953
  next(...s) {
@@ -962,7 +959,28 @@ const Ot = () => matchMedia("(hover: none), (pointer: coarse)").matches, $t = ()
962
959
  cancelAnimationFrame(n), o = !1;
963
960
  }
964
961
  };
965
- }, { abs: B, max: Se, min: Me, ceil: Le } = Math;
962
+ };
963
+ function Ht(e, t) {
964
+ for (const n of t) {
965
+ if (typeof n == "number")
966
+ return e.button === n;
967
+ if (typeof n == "object") {
968
+ const o = n.button === e.button, s = n.modifiers.every((i) => {
969
+ switch (i) {
970
+ case "alt":
971
+ return e.altKey;
972
+ case "ctrl":
973
+ return e.ctrlKey || e.metaKey;
974
+ case "shift":
975
+ return e.shiftKey;
976
+ }
977
+ });
978
+ return o && s;
979
+ }
980
+ }
981
+ return !1;
982
+ }
983
+ const { abs: B, max: Se, min: Me, ceil: Le } = Math;
966
984
  class qe extends Dt {
967
985
  constructor(t) {
968
986
  var n, o, s, i, r;
@@ -988,6 +1006,7 @@ class qe extends Dt {
988
1006
  behaviour: {
989
1007
  overlap: "invert",
990
1008
  intersect: "touch",
1009
+ triggers: [0],
991
1010
  ...t.behaviour,
992
1011
  startThreshold: (n = t.behaviour) != null && n.startThreshold ? typeof t.behaviour.startThreshold == "number" ? t.behaviour.startThreshold : { x: 10, y: 10, ...t.behaviour.startThreshold } : { x: 10, y: 10 },
993
1012
  scrolling: {
@@ -1014,8 +1033,8 @@ class qe extends Dt {
1014
1033
  };
1015
1034
  for (const a of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))
1016
1035
  typeof this[a] == "function" && (this[a] = this[a].bind(this));
1017
- const { document: l, selectionAreaClass: c, selectionContainerClass: h } = this._options;
1018
- this._area = l.createElement("div"), this._clippingElement = l.createElement("div"), this._clippingElement.appendChild(this._area), this._area.classList.add(c), h && this._clippingElement.classList.add(h), A(this._area, {
1036
+ const { document: c, selectionAreaClass: l, selectionContainerClass: h } = this._options;
1037
+ this._area = c.createElement("div"), this._clippingElement = c.createElement("div"), this._clippingElement.appendChild(this._area), this._area.classList.add(l), h && this._clippingElement.classList.add(h), A(this._area, {
1019
1038
  willChange: "top, left, bottom, right, width, height",
1020
1039
  top: 0,
1021
1040
  left: 0,
@@ -1038,16 +1057,19 @@ class qe extends Dt {
1038
1057
  });
1039
1058
  }
1040
1059
  _onTapStart(t, n = !1) {
1041
- const { x: o, y: s, target: i } = Q(t), { _options: r } = this, { document: l } = this._options, c = i.getBoundingClientRect(), h = F(r.startAreas, r.document), a = F(r.boundaries, r.document);
1060
+ const { x: o, y: s, target: i } = Q(t), { _options: r } = this, { document: c } = this._options, l = i.getBoundingClientRect();
1061
+ if (t instanceof MouseEvent && !Ht(t, r.behaviour.triggers))
1062
+ return;
1063
+ const h = F(r.startAreas, r.document), a = F(r.boundaries, r.document);
1042
1064
  this._targetElement = a.find(
1043
- (m) => _e(m.getBoundingClientRect(), c)
1065
+ (m) => _e(m.getBoundingClientRect(), l)
1044
1066
  );
1045
1067
  const u = t.composedPath();
1046
1068
  if (!this._targetElement || !h.find((m) => u.includes(m)) || !a.find((m) => u.includes(m)) || !n && this._emitEvent("beforestart", t) === !1)
1047
1069
  return;
1048
1070
  this._areaLocation = { x1: o, y1: s, x2: 0, y2: 0 };
1049
- const d = l.scrollingElement ?? l.body;
1050
- this._scrollDelta = { x: d.scrollLeft, y: d.scrollTop }, this._singleClick = !0, this.clearSelection(!1, !0), q(l, ["touchmove", "mousemove"], this._delayedTapMove, { passive: !1 }), q(l, ["mouseup", "touchcancel", "touchend"], this._onTapStop), q(l, "scroll", this._onScroll);
1071
+ const d = c.scrollingElement ?? c.body;
1072
+ this._scrollDelta = { x: d.scrollLeft, y: d.scrollTop }, this._singleClick = !0, this.clearSelection(!1, !0), q(c, ["touchmove", "mousemove"], this._delayedTapMove, { passive: !1 }), q(c, ["mouseup", "touchcancel", "touchend"], this._onTapStop), q(c, "scroll", this._onScroll);
1051
1073
  }
1052
1074
  _onSingleTap(t) {
1053
1075
  const { singleTap: { intersect: n }, range: o } = this._options.features, s = Q(t);
@@ -1056,10 +1078,10 @@ class qe extends Dt {
1056
1078
  i = s.target;
1057
1079
  else if (n === "touch") {
1058
1080
  this.resolveSelectables();
1059
- const { x: l, y: c } = s;
1081
+ const { x: c, y: l } = s;
1060
1082
  i = this._selectables.find((h) => {
1061
1083
  const { right: a, left: u, top: d, bottom: m } = h.getBoundingClientRect();
1062
- return l < a && l > u && c < m && c > d;
1084
+ return c < a && c > u && l < m && l > d;
1063
1085
  });
1064
1086
  }
1065
1087
  if (!i)
@@ -1071,26 +1093,25 @@ class qe extends Dt {
1071
1093
  }
1072
1094
  const { stored: r } = this._selection;
1073
1095
  if (this._emitEvent("start", t), t.shiftKey && o && this._latestElement) {
1074
- const l = this._latestElement, [c, h] = l.compareDocumentPosition(i) & 4 ? [i, l] : [l, i], a = [...this._selectables.filter(
1075
- (u) => u.compareDocumentPosition(c) & 4 && u.compareDocumentPosition(h) & 2
1076
- ), c, h];
1077
- this.select(a), this._latestElement = l;
1096
+ const c = this._latestElement, [l, h] = c.compareDocumentPosition(i) & 4 ? [i, c] : [c, i], a = [...this._selectables.filter(
1097
+ (u) => u.compareDocumentPosition(l) & 4 && u.compareDocumentPosition(h) & 2
1098
+ ), l, h];
1099
+ this.select(a), this._latestElement = c;
1078
1100
  } else
1079
- r.includes(i) && (r.length === 1 || t.ctrlKey || r.every((l) => this._selection.stored.includes(l))) ? this.deselect(i) : (this.select(i), this._latestElement = i);
1080
- this._emitEvent("stop", t);
1101
+ r.includes(i) && (r.length === 1 || t.ctrlKey || r.every((c) => this._selection.stored.includes(c))) ? this.deselect(i) : (this.select(i), this._latestElement = i);
1081
1102
  }
1082
1103
  _delayedTapMove(t) {
1083
- const { container: n, document: o, behaviour: { startThreshold: s } } = this._options, { x1: i, y1: r } = this._areaLocation, { x: l, y: c } = Q(t);
1104
+ const { container: n, document: o, behaviour: { startThreshold: s } } = this._options, { x1: i, y1: r } = this._areaLocation, { x: c, y: l } = Q(t);
1084
1105
  if (
1085
1106
  // Single number for both coordinates
1086
- typeof s == "number" && B(l + c - (i + r)) >= s || // Different x and y threshold
1087
- typeof s == "object" && B(l - i) >= s.x || B(c - r) >= s.y
1107
+ typeof s == "number" && B(c + l - (i + r)) >= s || // Different x and y threshold
1108
+ typeof s == "object" && B(c - i) >= s.x || B(l - r) >= s.y
1088
1109
  ) {
1089
1110
  if (j(o, ["mousemove", "touchmove"], this._delayedTapMove, { passive: !1 }), this._emitEvent("beforedrag", t) === !1) {
1090
1111
  j(o, ["mouseup", "touchcancel", "touchend"], this._onTapStop);
1091
1112
  return;
1092
1113
  }
1093
- q(o, ["mousemove", "touchmove"], this._onTapMove, { passive: !1 }), A(this._area, "display", "block"), F(n, o)[0].appendChild(this._clippingElement), this.resolveSelectables(), this._singleClick = !1, this._targetRect = this._targetElement.getBoundingClientRect(), this._scrollAvailable = this._targetElement.scrollHeight !== this._targetElement.clientHeight || this._targetElement.scrollWidth !== this._targetElement.clientWidth, this._scrollAvailable && (q(o, "wheel", this._manualScroll, { passive: !1 }), this._selectables = this._selectables.filter((h) => this._targetElement.contains(h))), this._setupSelectionArea(), this._emitEvent("start", t), this._onTapMove(t);
1114
+ q(o, ["mousemove", "touchmove"], this._onTapMove, { passive: !1 }), A(this._area, "display", "block"), F(n, o)[0].appendChild(this._clippingElement), this.resolveSelectables(), this._singleClick = !1, this._targetRect = this._targetElement.getBoundingClientRect(), this._scrollAvailable = this._targetElement.scrollHeight !== this._targetElement.clientHeight || this._targetElement.scrollWidth !== this._targetElement.clientWidth, this._scrollAvailable && (q(this._targetElement, "wheel", this._manualScroll, { passive: !1 }), this._selectables = this._selectables.filter((h) => this._targetElement.contains(h))), this._setupSelectionArea(), this._emitEvent("start", t), this._onTapMove(t);
1094
1115
  }
1095
1116
  this._handleMoveEvent(t);
1096
1117
  }
@@ -1115,7 +1136,7 @@ class qe extends Dt {
1115
1136
  }));
1116
1137
  }
1117
1138
  _onTapMove(t) {
1118
- const { x: n, y: o } = Q(t), { _scrollSpeed: s, _areaLocation: i, _options: r, _frame: l } = this, { speedDivider: c } = r.behaviour.scrolling, h = this._targetElement;
1139
+ const { x: n, y: o } = Q(t), { _scrollSpeed: s, _areaLocation: i, _options: r, _frame: c } = this, { speedDivider: l } = r.behaviour.scrolling, h = this._targetElement;
1119
1140
  if (i.x2 = n, i.y2 = o, this._scrollAvailable && !this._scrollingActive && (s.y || s.x)) {
1120
1141
  this._scrollingActive = !0;
1121
1142
  const a = () => {
@@ -1124,16 +1145,16 @@ class qe extends Dt {
1124
1145
  return;
1125
1146
  }
1126
1147
  const { scrollTop: u, scrollLeft: d } = h;
1127
- s.y && (h.scrollTop += Le(s.y / c), i.y1 -= h.scrollTop - u), s.x && (h.scrollLeft += Le(s.x / c), i.x1 -= h.scrollLeft - d), l.next(t), requestAnimationFrame(a);
1148
+ s.y && (h.scrollTop += Le(s.y / l), i.y1 -= h.scrollTop - u), s.x && (h.scrollLeft += Le(s.x / l), i.x1 -= h.scrollLeft - d), c.next(t), requestAnimationFrame(a);
1128
1149
  };
1129
1150
  requestAnimationFrame(a);
1130
1151
  } else
1131
- l.next(t);
1152
+ c.next(t);
1132
1153
  this._handleMoveEvent(t);
1133
1154
  }
1134
1155
  _handleMoveEvent(t) {
1135
1156
  const { features: n } = this._options;
1136
- (n.touch && Ot() || this._scrollAvailable && $t()) && t.preventDefault();
1157
+ (n.touch && $t() || this._scrollAvailable && Ot()) && t.preventDefault();
1137
1158
  }
1138
1159
  _onScroll() {
1139
1160
  const { _scrollDelta: t, _options: { document: n } } = this, { scrollTop: o, scrollLeft: s } = n.scrollingElement ?? n.body;
@@ -1144,10 +1165,10 @@ class qe extends Dt {
1144
1165
  this._scrollSpeed.y += o * n, this._scrollSpeed.x += s * n, this._onTapMove(t), t.preventDefault();
1145
1166
  }
1146
1167
  _recalculateSelectionAreaRect() {
1147
- const { _scrollSpeed: t, _areaLocation: n, _areaRect: o, _targetElement: s, _options: i } = this, { scrollTop: r, scrollHeight: l, clientHeight: c, scrollLeft: h, scrollWidth: a, clientWidth: u } = s, d = this._targetRect, { x1: m, y1: g } = n;
1168
+ const { _scrollSpeed: t, _areaLocation: n, _areaRect: o, _targetElement: s, _options: i } = this, { scrollTop: r, scrollHeight: c, clientHeight: l, scrollLeft: h, scrollWidth: a, clientWidth: u } = s, d = this._targetRect, { x1: m, y1: g } = n;
1148
1169
  let { x2: p, y2: f } = n;
1149
1170
  const { behaviour: { scrolling: { startScrollMargins: v } } } = i;
1150
- p < d.left + v.x ? (t.x = h ? -B(d.left - p + v.x) : 0, p = p < d.left ? d.left : p) : p > d.right - v.x ? (t.x = a - h - u ? B(d.left + d.width - p - v.x) : 0, p = p > d.right ? d.right : p) : t.x = 0, f < d.top + v.y ? (t.y = r ? -B(d.top - f + v.y) : 0, f = f < d.top ? d.top : f) : f > d.bottom - v.y ? (t.y = l - r - c ? B(d.top + d.height - f - v.y) : 0, f = f > d.bottom ? d.bottom : f) : t.y = 0;
1171
+ p < d.left + v.x ? (t.x = h ? -B(d.left - p + v.x) : 0, p = p < d.left ? d.left : p) : p > d.right - v.x ? (t.x = a - h - u ? B(d.left + d.width - p - v.x) : 0, p = p > d.right ? d.right : p) : t.x = 0, f < d.top + v.y ? (t.y = r ? -B(d.top - f + v.y) : 0, f = f < d.top ? d.top : f) : f > d.bottom - v.y ? (t.y = c - r - l ? B(d.top + d.height - f - v.y) : 0, f = f > d.bottom ? d.bottom : f) : t.y = 0;
1151
1172
  const b = Me(m, p), y = Me(g, f), x = Se(m, p), w = Se(g, f);
1152
1173
  o.x = b, o.y = y, o.width = x - b, o.height = w - y;
1153
1174
  }
@@ -1158,15 +1179,15 @@ class qe extends Dt {
1158
1179
  _onTapStop(t, n) {
1159
1180
  var o;
1160
1181
  const { document: s, features: i } = this._options, { _singleClick: r } = this;
1161
- j(s, ["mousemove", "touchmove"], this._delayedTapMove), j(s, ["touchmove", "mousemove"], this._onTapMove), j(s, ["mouseup", "touchcancel", "touchend"], this._onTapStop), j(s, "scroll", this._onScroll), this._keepSelection(), t && r && i.singleTap.allow ? this._onSingleTap(t) : !r && !n && (this._updateElementSelection(), this._emitEvent("stop", t)), this._scrollSpeed.x = 0, this._scrollSpeed.y = 0, this._scrollAvailable && j(s, "wheel", this._manualScroll, { passive: !0 }), this._clippingElement.remove(), (o = this._frame) == null || o.cancel(), A(this._area, "display", "none");
1182
+ j(s, ["mousemove", "touchmove"], this._delayedTapMove), j(s, ["touchmove", "mousemove"], this._onTapMove), j(s, ["mouseup", "touchcancel", "touchend"], this._onTapStop), j(s, "scroll", this._onScroll), this._keepSelection(), t && r && i.singleTap.allow ? this._onSingleTap(t) : !r && !n && (this._updateElementSelection(), this._emitEvent("stop", t)), this._scrollSpeed.x = 0, this._scrollSpeed.y = 0, j(this._targetElement, "wheel", this._manualScroll, { passive: !0 }), this._clippingElement.remove(), (o = this._frame) == null || o.cancel(), A(this._area, "display", "none");
1162
1183
  }
1163
1184
  _updateElementSelection() {
1164
- const { _selectables: t, _options: n, _selection: o, _areaRect: s } = this, { stored: i, selected: r, touched: l } = o, { intersect: c, overlap: h } = n.behaviour, a = h === "invert", u = [], d = [], m = [];
1185
+ const { _selectables: t, _options: n, _selection: o, _areaRect: s } = this, { stored: i, selected: r, touched: c } = o, { intersect: l, overlap: h } = n.behaviour, a = h === "invert", u = [], d = [], m = [];
1165
1186
  for (let p = 0; p < t.length; p++) {
1166
1187
  const f = t[p];
1167
- if (_e(s, f.getBoundingClientRect(), c)) {
1188
+ if (_e(s, f.getBoundingClientRect(), l)) {
1168
1189
  if (r.includes(f))
1169
- i.includes(f) && !l.includes(f) && l.push(f);
1190
+ i.includes(f) && !c.includes(f) && c.push(f);
1170
1191
  else if (a && i.includes(f)) {
1171
1192
  m.push(f);
1172
1193
  continue;
@@ -1193,20 +1214,20 @@ class qe extends Dt {
1193
1214
  });
1194
1215
  }
1195
1216
  _keepSelection() {
1196
- const { _options: t, _selection: n } = this, { selected: o, changed: s, touched: i, stored: r } = n, l = o.filter((c) => !r.includes(c));
1217
+ const { _options: t, _selection: n } = this, { selected: o, changed: s, touched: i, stored: r } = n, c = o.filter((l) => !r.includes(l));
1197
1218
  switch (t.behaviour.overlap) {
1198
1219
  case "drop": {
1199
1220
  n.stored = [
1200
- ...l,
1201
- ...r.filter((c) => !i.includes(c))
1221
+ ...c,
1222
+ ...r.filter((l) => !i.includes(l))
1202
1223
  // Elements not touched
1203
1224
  ];
1204
1225
  break;
1205
1226
  }
1206
1227
  case "invert": {
1207
1228
  n.stored = [
1208
- ...l,
1209
- ...r.filter((c) => !s.removed.includes(c))
1229
+ ...c,
1230
+ ...r.filter((l) => !s.removed.includes(l))
1210
1231
  // Elements not removed from selection
1211
1232
  ];
1212
1233
  break;
@@ -1214,7 +1235,7 @@ class qe extends Dt {
1214
1235
  case "keep": {
1215
1236
  n.stored = [
1216
1237
  ...r,
1217
- ...o.filter((c) => !r.includes(c))
1238
+ ...o.filter((l) => !r.includes(l))
1218
1239
  // Newly added
1219
1240
  ];
1220
1241
  break;
@@ -1285,7 +1306,7 @@ class qe extends Dt {
1285
1306
  */
1286
1307
  select(t, n = !1) {
1287
1308
  const { changed: o, selected: s, stored: i } = this._selection, r = F(t, this._options.document).filter(
1288
- (l) => !s.includes(l) && !i.includes(l)
1309
+ (c) => !s.includes(c) && !i.includes(c)
1289
1310
  );
1290
1311
  return i.push(...r), s.push(...r), o.added.push(...r), o.removed = [], this._latestElement = void 0, n || (this._emitEvent("move", null), this._emitEvent("stop", null)), r;
1291
1312
  }
@@ -1296,15 +1317,15 @@ class qe extends Dt {
1296
1317
  */
1297
1318
  deselect(t, n = !1) {
1298
1319
  const { selected: o, stored: s, changed: i } = this._selection, r = F(t, this._options.document).filter(
1299
- (l) => o.includes(l) || s.includes(l)
1320
+ (c) => o.includes(c) || s.includes(c)
1300
1321
  );
1301
- r.length && (this._selection.stored = s.filter((l) => !r.includes(l)), this._selection.selected = o.filter((l) => !r.includes(l)), this._selection.changed.added = [], this._selection.changed.removed.push(
1302
- ...r.filter((l) => !i.removed.includes(l))
1322
+ r.length && (this._selection.stored = s.filter((c) => !r.includes(c)), this._selection.selected = o.filter((c) => !r.includes(c)), this._selection.changed.added = [], this._selection.changed.removed.push(
1323
+ ...r.filter((c) => !i.removed.includes(c))
1303
1324
  ), this._latestElement = void 0, n || (this._emitEvent("move", null), this._emitEvent("stop", null)));
1304
1325
  }
1305
1326
  }
1306
- E(qe, "version", "3.3.1");
1307
- function Ht(e) {
1327
+ E(qe, "version", "3.5.1");
1328
+ function Bt(e) {
1308
1329
  const t = new qe({
1309
1330
  selectables: [".map-container me-tpc"],
1310
1331
  boundaries: [e.container],
@@ -1349,7 +1370,7 @@ function Ht(e) {
1349
1370
  });
1350
1371
  e.selection = t;
1351
1372
  }
1352
- const Bt = function(e, t = !0) {
1373
+ const zt = function(e, t = !0) {
1353
1374
  this.theme = e;
1354
1375
  const n = this.theme.cssVar, o = Object.keys(n);
1355
1376
  for (let s = 0; s < o.length; s++) {
@@ -1367,30 +1388,30 @@ function Fe(e) {
1367
1388
  theme: e.theme
1368
1389
  };
1369
1390
  }
1370
- const zt = function(e, t, n) {
1391
+ const Rt = function(e, t, n) {
1371
1392
  if (e) {
1372
- if (console.time("selectNode"), this.clearSelection(), typeof e == "string") {
1373
- const o = C(e);
1393
+ if (this.clearSelection(), typeof e == "string") {
1394
+ const o = N(e);
1374
1395
  return o ? this.selectNode(o) : void 0;
1375
1396
  }
1376
- e.className = "selected", e.scrollIntoView({ block: "nearest", inline: "nearest" }), this.currentNode = e, t ? this.bus.fire("selectNewNode", e.nodeObj) : this.bus.fire("selectNode", e.nodeObj, n), console.timeEnd("selectNode");
1397
+ e.className = "selected", e.scrollIntoView({ block: "nearest", inline: "nearest" }), this.currentNode = e, t ? this.bus.fire("selectNewNode", e.nodeObj) : this.bus.fire("selectNode", e.nodeObj, n);
1377
1398
  }
1378
- }, Rt = function() {
1399
+ }, qt = function() {
1379
1400
  this.currentNode && (this.currentNode.className = ""), this.currentNode = null, this.bus.fire("unselectNode");
1380
- }, qt = function(e) {
1381
- console.time("selectNodes"), this.clearSelection();
1401
+ }, Ft = function(e) {
1402
+ this.clearSelection();
1382
1403
  for (const t of e)
1383
1404
  t.className = "selected";
1384
1405
  this.currentNodes = e, this.bus.fire(
1385
1406
  "selectNodes",
1386
1407
  e.map((t) => t.nodeObj)
1387
- ), console.timeEnd("selectNodes");
1388
- }, Ft = function() {
1408
+ );
1409
+ }, It = function() {
1389
1410
  if (this.currentNodes)
1390
1411
  for (const e of this.currentNodes)
1391
1412
  e.classList.remove("selected");
1392
1413
  this.currentNodes = null, this.bus.fire("unselectNodes");
1393
- }, It = function() {
1414
+ }, Kt = function() {
1394
1415
  this.unselectNode(), this.unselectNodes(), this.unselectSummary(), this.unselectArrow();
1395
1416
  }, Vt = function() {
1396
1417
  const e = Fe(this);
@@ -1400,7 +1421,7 @@ const zt = function(e, t, n) {
1400
1421
  });
1401
1422
  }, Wt = function() {
1402
1423
  return JSON.parse(this.getDataString());
1403
- }, Kt = function() {
1424
+ }, Ut = function() {
1404
1425
  const e = Fe(this).nodeData;
1405
1426
  let t = "# " + e.topic + `
1406
1427
 
@@ -1413,79 +1434,79 @@ const zt = function(e, t, n) {
1413
1434
  `, o[i].children && n(o[i].children || [], s + 1);
1414
1435
  }
1415
1436
  return n(e.children || [], 2), t;
1416
- }, Ut = function() {
1417
- this.editable = !0;
1418
1437
  }, Yt = function() {
1438
+ this.editable = !0;
1439
+ }, Xt = function() {
1419
1440
  this.editable = !1;
1420
- }, Xt = function(e) {
1441
+ }, Gt = function(e) {
1421
1442
  this.scaleVal = e, this.map.style.transform = "scale(" + e + ")";
1422
- }, Gt = function() {
1443
+ }, Jt = function() {
1423
1444
  this.container.scrollTo(1e4 - this.container.offsetWidth / 2, 1e4 - this.container.offsetHeight / 2);
1424
- }, Jt = function(e) {
1425
- e(this);
1426
1445
  }, Qt = function(e) {
1446
+ e(this);
1447
+ }, Zt = function(e) {
1427
1448
  e.nodeObj.root || (this.tempDirection === null && (this.tempDirection = this.direction), this.isFocusMode || (this.nodeDataBackup = this.nodeData, this.isFocusMode = !0), this.nodeData = e.nodeObj, this.nodeData.root = !0, this.initRight(), this.toCenter());
1428
- }, Zt = function() {
1429
- this.isFocusMode = !1, this.tempDirection !== null && (delete this.nodeData.root, this.nodeData = this.nodeDataBackup, this.direction = this.tempDirection, this.tempDirection = null, this.refresh(), this.toCenter());
1430
1449
  }, en = function() {
1431
- this.direction = 0, this.refresh();
1450
+ this.isFocusMode = !1, this.tempDirection !== null && (delete this.nodeData.root, this.nodeData = this.nodeDataBackup, this.direction = this.tempDirection, this.tempDirection = null, this.refresh(), this.toCenter());
1432
1451
  }, tn = function() {
1433
- this.direction = 1, this.refresh();
1452
+ this.direction = 0, this.refresh();
1434
1453
  }, nn = function() {
1454
+ this.direction = 1, this.refresh();
1455
+ }, on = function() {
1435
1456
  this.direction = 2, this.refresh();
1436
- }, on = function(e) {
1457
+ }, sn = function(e) {
1437
1458
  this.locale = e, this.refresh();
1438
- }, sn = function(e, t) {
1459
+ }, rn = function(e, t) {
1439
1460
  const n = e.nodeObj;
1440
1461
  typeof t == "boolean" ? n.expanded = t : n.expanded !== !1 ? n.expanded = !1 : n.expanded = !0, this.layout(), this.linkDiv(), this.bus.fire("expandNode", n);
1441
- }, rn = function(e) {
1442
- e && (e = JSON.parse(JSON.stringify(e)), this.nodeData = e.nodeData, this.arrows = e.arrows || [], this.summaries = e.summaries || []), O(this.nodeData), this.layout(), this.linkDiv();
1462
+ }, cn = function(e) {
1463
+ e && (e = JSON.parse(JSON.stringify(e)), this.nodeData = e.nodeData, this.arrows = e.arrows || [], this.summaries = e.summaries || []), $(this.nodeData), this.layout(), this.linkDiv();
1443
1464
  }, ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1444
1465
  __proto__: null,
1445
- cancelFocus: Zt,
1446
- clearSelection: It,
1447
- disableEdit: Yt,
1448
- enableEdit: Ut,
1449
- expandNode: sn,
1450
- focusNode: Qt,
1466
+ cancelFocus: en,
1467
+ clearSelection: Kt,
1468
+ disableEdit: Xt,
1469
+ enableEdit: Yt,
1470
+ expandNode: rn,
1471
+ focusNode: Zt,
1451
1472
  getData: Wt,
1452
- getDataMd: Kt,
1473
+ getDataMd: Ut,
1453
1474
  getDataString: Vt,
1454
- initLeft: en,
1455
- initRight: tn,
1456
- initSide: nn,
1457
- install: Jt,
1458
- refresh: rn,
1459
- scale: Xt,
1460
- selectNode: zt,
1461
- selectNodes: qt,
1462
- setLocale: on,
1463
- toCenter: Gt,
1464
- unselectNode: Rt,
1465
- unselectNodes: Ft
1466
- }, Symbol.toStringTag, { value: "Module" })), K = (e) => {
1475
+ initLeft: tn,
1476
+ initRight: nn,
1477
+ initSide: on,
1478
+ install: Qt,
1479
+ refresh: cn,
1480
+ scale: Gt,
1481
+ selectNode: Rt,
1482
+ selectNodes: Ft,
1483
+ setLocale: sn,
1484
+ toCenter: Jt,
1485
+ unselectNode: qt,
1486
+ unselectNodes: It
1487
+ }, Symbol.toStringTag, { value: "Module" })), W = (e) => {
1467
1488
  var o;
1468
1489
  const t = (o = e.parent) == null ? void 0 : o.children, n = t.indexOf(e);
1469
1490
  return { siblings: t, index: n };
1470
1491
  };
1471
- function cn(e) {
1472
- const { siblings: t, index: n } = K(e), o = t[n];
1492
+ function an(e) {
1493
+ const { siblings: t, index: n } = W(e), o = t[n];
1473
1494
  n === 0 ? (t[n] = t[t.length - 1], t[t.length - 1] = o) : (t[n] = t[n - 1], t[n - 1] = o);
1474
1495
  }
1475
- function an(e) {
1476
- const { siblings: t, index: n } = K(e), o = t[n];
1496
+ function dn(e) {
1497
+ const { siblings: t, index: n } = W(e), o = t[n];
1477
1498
  n === t.length - 1 ? (t[n] = t[0], t[0] = o) : (t[n] = t[n + 1], t[n + 1] = o);
1478
1499
  }
1479
1500
  function me(e) {
1480
- const { siblings: t, index: n } = K(e);
1501
+ const { siblings: t, index: n } = W(e);
1481
1502
  return t.splice(n, 1), t.length;
1482
1503
  }
1483
- function dn(e, t, n) {
1484
- const { siblings: o, index: s } = K(n);
1504
+ function hn(e, t, n) {
1505
+ const { siblings: o, index: s } = W(n);
1485
1506
  t === "before" ? o.splice(s, 0, e) : o.splice(s + 1, 0, e);
1486
1507
  }
1487
- function hn(e, t) {
1488
- const { siblings: n, index: o } = K(e);
1508
+ function un(e, t) {
1509
+ const { siblings: n, index: o } = W(e);
1489
1510
  n[o] = t, t.children = [e];
1490
1511
  }
1491
1512
  function Ie(e, t, n) {
@@ -1493,11 +1514,11 @@ function Ie(e, t, n) {
1493
1514
  n.children ? n.children.push(t) : n.children = [t];
1494
1515
  else {
1495
1516
  t.direction !== void 0 && (t.direction = n.direction);
1496
- const { siblings: o, index: s } = K(n);
1517
+ const { siblings: o, index: s } = W(n);
1497
1518
  e === "before" ? o.splice(s, 0, t) : o.splice(s + 1, 0, t);
1498
1519
  }
1499
1520
  }
1500
- const un = function(e, t) {
1521
+ const fn = function(e, t) {
1501
1522
  var n, o;
1502
1523
  if (e === T)
1503
1524
  return T;
@@ -1507,42 +1528,42 @@ const un = function(e, t) {
1507
1528
  const s = ((n = document.querySelector(".lhs")) == null ? void 0 : n.childElementCount) || 0, i = ((o = document.querySelector(".rhs")) == null ? void 0 : o.childElementCount) || 0;
1508
1529
  return s <= i ? (t.direction = T, T) : (t.direction = z, z);
1509
1530
  }
1510
- }, Ve = function(e, t, n) {
1531
+ }, Ke = function(e, t, n) {
1511
1532
  var i, r;
1512
1533
  const o = n.children[0].children[0], s = t.parentElement;
1513
1534
  if (s.tagName === "ME-PARENT") {
1514
- if (le(o), s.children[1])
1535
+ if (ce(o), s.children[1])
1515
1536
  s.nextSibling.appendChild(n);
1516
1537
  else {
1517
- const l = e.createChildren([n]);
1518
- s.appendChild(pe(!0)), s.insertAdjacentElement("afterend", l);
1538
+ const c = e.createChildren([n]);
1539
+ s.appendChild(pe(!0)), s.insertAdjacentElement("afterend", c);
1519
1540
  }
1520
1541
  e.linkDiv(n.offsetParent);
1521
1542
  } else
1522
- s.tagName === "ME-ROOT" && (un(e.direction, o.nodeObj) === T ? (i = e.container.querySelector(".lhs")) == null || i.appendChild(n) : (r = e.container.querySelector(".rhs")) == null || r.appendChild(n), e.linkDiv());
1543
+ s.tagName === "ME-ROOT" && (fn(e.direction, o.nodeObj) === T ? (i = e.container.querySelector(".lhs")) == null || i.appendChild(n) : (r = e.container.querySelector(".rhs")) == null || r.appendChild(n), e.linkDiv());
1523
1544
  }, ge = function(e, t, n) {
1524
1545
  if (!t)
1525
1546
  return null;
1526
1547
  const o = t.nodeObj;
1527
- o.expanded === !1 && (e.expandNode(t, !0), t = C(o.id));
1548
+ o.expanded === !1 && (e.expandNode(t, !0), t = N(o.id));
1528
1549
  const s = n || e.generateNewObj();
1529
- o.children ? o.children.push(s) : o.children = [s], O(e.nodeData);
1550
+ o.children ? o.children.push(s) : o.children = [s], $(e.nodeData);
1530
1551
  const { grp: i, top: r } = e.createWrapper(s);
1531
- return Ve(e, t, i), { newTop: r, newNodeObj: s };
1532
- }, We = function(e, t) {
1552
+ return Ke(e, t, i), { newTop: r, newNodeObj: s };
1553
+ }, Ve = function(e, t) {
1533
1554
  const n = e.parentNode;
1534
1555
  if (t === 0) {
1535
1556
  const o = n.parentNode.parentNode;
1536
1557
  o.tagName !== "ME-MAIN" && o.previousSibling.children[1].remove();
1537
1558
  }
1538
1559
  n.parentNode.remove();
1539
- }, Ke = {
1560
+ }, We = {
1540
1561
  before: "beforebegin",
1541
1562
  after: "afterend"
1542
- }, le = function(e) {
1563
+ }, ce = function(e) {
1543
1564
  const n = e.parentElement.parentElement.lastElementChild;
1544
1565
  (n == null ? void 0 : n.tagName) === "svg" && (n == null || n.remove());
1545
- }, fn = function(e, t) {
1566
+ }, pn = function(e, t) {
1546
1567
  const n = e.nodeObj, o = ue(n);
1547
1568
  o.style && t.style && (t.style = Object.assign(o.style, t.style));
1548
1569
  const s = Object.assign(n, t);
@@ -1551,7 +1572,7 @@ const un = function(e, t) {
1551
1572
  obj: s,
1552
1573
  origin: o
1553
1574
  });
1554
- }, pn = function(e, t, n) {
1575
+ }, mn = function(e, t, n) {
1555
1576
  var h, a, u;
1556
1577
  const o = t || this.currentNode;
1557
1578
  if (!o)
@@ -1561,40 +1582,35 @@ const un = function(e, t) {
1561
1582
  this.addChild();
1562
1583
  return;
1563
1584
  } else if (((h = s.parent) == null ? void 0 : h.root) === !0 && ((u = (a = s.parent) == null ? void 0 : a.children) == null ? void 0 : u.length) === 1) {
1564
- this.addChild(C(s.parent.id));
1585
+ this.addChild(N(s.parent.id), n);
1565
1586
  return;
1566
1587
  }
1567
1588
  const i = n || this.generateNewObj();
1568
- dn(i, e, s), O(this.nodeData);
1569
- const r = o.parentElement;
1570
- console.time("insertSibling_DOM");
1571
- const { grp: l, top: c } = this.createWrapper(i);
1572
- r.parentElement.insertAdjacentElement(Ke[e], l), this.linkDiv(l.offsetParent), n || this.editTopic(c.firstChild), this.selectNode(c.firstChild, !0), console.timeEnd("insertSibling_DOM"), this.bus.fire("operation", {
1589
+ hn(i, e, s), $(this.nodeData);
1590
+ const r = o.parentElement, { grp: c, top: l } = this.createWrapper(i);
1591
+ r.parentElement.insertAdjacentElement(We[e], c), this.linkDiv(c.offsetParent), n || this.editTopic(l.firstChild), this.selectNode(l.firstChild, !0), this.bus.fire("operation", {
1573
1592
  name: "insertSibling",
1574
1593
  type: e,
1575
1594
  obj: i
1576
1595
  });
1577
- }, mn = function(e, t) {
1596
+ }, gn = function(e, t) {
1578
1597
  const n = e || this.currentNode;
1579
1598
  if (!n)
1580
1599
  return;
1581
- le(n);
1600
+ ce(n);
1582
1601
  const o = n.nodeObj;
1583
1602
  if (o.root === !0)
1584
1603
  return;
1585
1604
  const s = t || this.generateNewObj();
1586
- hn(o, s), O(this.nodeData);
1587
- const i = n.parentElement.parentElement;
1588
- console.time("insertParent_DOM");
1589
- const { grp: r, top: l } = this.createWrapper(s, !0);
1590
- l.appendChild(pe(!0)), i.insertAdjacentElement("afterend", r);
1591
- const c = this.createChildren([i]);
1592
- l.insertAdjacentElement("afterend", c), this.linkDiv(), t || this.editTopic(l.firstChild), this.selectNode(l.firstChild, !0), console.timeEnd("insertParent_DOM"), this.bus.fire("operation", {
1605
+ un(o, s), $(this.nodeData);
1606
+ const i = n.parentElement.parentElement, { grp: r, top: c } = this.createWrapper(s, !0);
1607
+ c.appendChild(pe(!0)), i.insertAdjacentElement("afterend", r);
1608
+ const l = this.createChildren([i]);
1609
+ c.insertAdjacentElement("afterend", l), this.linkDiv(), t || this.editTopic(c.firstChild), this.selectNode(c.firstChild, !0), this.bus.fire("operation", {
1593
1610
  name: "insertParent",
1594
1611
  obj: s
1595
1612
  });
1596
- }, gn = function(e, t) {
1597
- console.time("addChild");
1613
+ }, vn = function(e, t) {
1598
1614
  const n = e || this.currentNode;
1599
1615
  if (!n)
1600
1616
  return;
@@ -1605,20 +1621,19 @@ const un = function(e, t) {
1605
1621
  this.bus.fire("operation", {
1606
1622
  name: "addChild",
1607
1623
  obj: i
1608
- }), console.timeEnd("addChild"), t || this.editTopic(s.firstChild), this.selectNode(s.firstChild, !0);
1609
- }, vn = function(e, t) {
1610
- console.time("copyNode");
1624
+ }), t || this.editTopic(s.firstChild), this.selectNode(s.firstChild, !0);
1625
+ }, bn = function(e, t) {
1611
1626
  const n = ue(e.nodeObj);
1612
1627
  he(n);
1613
1628
  const o = ge(this, t, n);
1614
1629
  if (!o)
1615
1630
  return;
1616
1631
  const { newNodeObj: s } = o;
1617
- console.timeEnd("copyNode"), this.selectNode(C(s.id)), this.bus.fire("operation", {
1632
+ this.selectNode(N(s.id)), this.bus.fire("operation", {
1618
1633
  name: "copyNode",
1619
1634
  obj: s
1620
1635
  });
1621
- }, bn = function(e, t) {
1636
+ }, yn = function(e, t) {
1622
1637
  e = re(e);
1623
1638
  const n = [];
1624
1639
  for (let o = 0; o < e.length; o++) {
@@ -1627,36 +1642,36 @@ const un = function(e, t) {
1627
1642
  const r = ge(this, t, i);
1628
1643
  if (!r)
1629
1644
  return;
1630
- const { newNodeObj: l } = r;
1631
- n.push(l);
1645
+ const { newNodeObj: c } = r;
1646
+ n.push(c);
1632
1647
  }
1633
- this.selectNodes(n.map((o) => C(o.id))), this.bus.fire("operation", {
1648
+ this.selectNodes(n.map((o) => N(o.id))), this.bus.fire("operation", {
1634
1649
  name: "copyNodes",
1635
1650
  objs: n
1636
1651
  });
1637
- }, yn = function(e) {
1652
+ }, xn = function(e) {
1638
1653
  const t = e || this.currentNode;
1639
1654
  if (!t)
1640
1655
  return;
1641
1656
  const n = t.nodeObj;
1642
- cn(n);
1657
+ an(n);
1643
1658
  const o = t.parentNode.parentNode;
1644
1659
  o.parentNode.insertBefore(o, o.previousSibling), this.linkDiv(), this.bus.fire("operation", {
1645
1660
  name: "moveUpNode",
1646
1661
  obj: n
1647
1662
  });
1648
- }, xn = function(e) {
1663
+ }, wn = function(e) {
1649
1664
  const t = e || this.currentNode;
1650
1665
  if (!t)
1651
1666
  return;
1652
1667
  const n = t.nodeObj;
1653
- an(n);
1668
+ dn(n);
1654
1669
  const o = t.parentNode.parentNode;
1655
1670
  o.nextSibling ? o.nextSibling.insertAdjacentElement("afterend", o) : o.parentNode.prepend(o), this.linkDiv(), this.bus.fire("operation", {
1656
1671
  name: "moveDownNode",
1657
1672
  obj: n
1658
1673
  });
1659
- }, wn = function(e) {
1674
+ }, En = function(e) {
1660
1675
  var r;
1661
1676
  const t = e || this.currentNode;
1662
1677
  if (!t)
@@ -1664,26 +1679,26 @@ const un = function(e, t) {
1664
1679
  const n = t.nodeObj;
1665
1680
  if (n.root === !0)
1666
1681
  throw new Error("Can not remove root node");
1667
- const o = n.parent.children, s = o.findIndex((l) => l === n), i = me(n);
1668
- if (We(t, i), o.length !== 0) {
1669
- const l = o[s] || o[s - 1];
1670
- this.selectNode(C(l.id));
1682
+ const o = n.parent.children, s = o.findIndex((c) => c === n), i = me(n);
1683
+ if (Ve(t, i), o.length !== 0) {
1684
+ const c = o[s] || o[s - 1];
1685
+ this.selectNode(N(c.id));
1671
1686
  } else
1672
- this.selectNode(C(n.parent.id));
1687
+ this.selectNode(N(n.parent.id));
1673
1688
  this.linkDiv(), this.bus.fire("operation", {
1674
1689
  name: "removeNode",
1675
1690
  obj: n,
1676
1691
  originIndex: s,
1677
1692
  originParentId: (r = n == null ? void 0 : n.parent) == null ? void 0 : r.id
1678
1693
  });
1679
- }, En = function(e) {
1694
+ }, Cn = function(e) {
1680
1695
  e = re(e);
1681
1696
  for (const t of e) {
1682
1697
  const n = t.nodeObj;
1683
1698
  if (n.root === !0)
1684
1699
  continue;
1685
1700
  const o = me(n);
1686
- We(t, o);
1701
+ Ve(t, o);
1687
1702
  }
1688
1703
  this.linkDiv(), this.bus.fire("operation", {
1689
1704
  name: "removeNodes",
@@ -1692,60 +1707,60 @@ const un = function(e, t) {
1692
1707
  }, Nn = function(e, t) {
1693
1708
  e = re(e);
1694
1709
  const n = t.nodeObj;
1695
- n.expanded === !1 && (this.expandNode(t, !0), t = C(n.id)), console.time("moveNodeIn");
1710
+ n.expanded === !1 && (this.expandNode(t, !0), t = N(n.id));
1696
1711
  for (const o of e) {
1697
1712
  const s = o.nodeObj;
1698
- Ie("in", s, n), O(this.nodeData);
1713
+ Ie("in", s, n), $(this.nodeData);
1699
1714
  const i = o.parentElement;
1700
- Ve(this, t, i.parentElement);
1715
+ Ke(this, t, i.parentElement);
1701
1716
  }
1702
1717
  this.linkDiv(), this.bus.fire("operation", {
1703
1718
  name: "moveNodeIn",
1704
1719
  objs: e.map((o) => o.nodeObj),
1705
1720
  toObj: n
1706
- }), console.timeEnd("moveNodeIn");
1721
+ });
1707
1722
  }, Ue = (e, t, n, o) => {
1708
1723
  e = re(e), t === "after" && (e = e.reverse());
1709
1724
  const s = n.nodeObj;
1710
1725
  for (const i of e) {
1711
1726
  const r = i.nodeObj;
1712
- Ie(t, r, s), O(o.nodeData), le(i);
1713
- const l = i.parentElement.parentNode;
1714
- n.parentElement.parentNode.insertAdjacentElement(Ke[t], l);
1727
+ Ie(t, r, s), $(o.nodeData), ce(i);
1728
+ const c = i.parentElement.parentNode;
1729
+ n.parentElement.parentNode.insertAdjacentElement(We[t], c);
1715
1730
  }
1716
1731
  o.linkDiv(), o.bus.fire("operation", {
1717
1732
  name: t === "before" ? "moveNodeBefore" : "moveNodeAfter",
1718
1733
  objs: e.map((i) => i.nodeObj),
1719
1734
  toObj: s
1720
1735
  });
1721
- }, Cn = function(e, t) {
1722
- Ue(e, "before", t, this);
1723
1736
  }, _n = function(e, t) {
1737
+ Ue(e, "before", t, this);
1738
+ }, Sn = function(e, t) {
1724
1739
  Ue(e, "after", t, this);
1725
- }, Sn = function(e) {
1740
+ }, Mn = function(e) {
1726
1741
  const t = e || this.currentNode;
1727
1742
  t && (t.nodeObj.dangerouslySetInnerHTML || this.editTopic(t));
1728
- }, Mn = function(e, t) {
1743
+ }, Ln = function(e, t) {
1729
1744
  e.text.textContent = t, e.nodeObj.topic = t, this.linkDiv();
1730
1745
  }, Ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1731
1746
  __proto__: null,
1732
- addChild: gn,
1733
- beginEdit: Sn,
1734
- copyNode: vn,
1735
- copyNodes: bn,
1736
- insertParent: mn,
1737
- insertSibling: pn,
1738
- mainToSub: le,
1739
- moveDownNode: xn,
1740
- moveNodeAfter: _n,
1741
- moveNodeBefore: Cn,
1747
+ addChild: vn,
1748
+ beginEdit: Mn,
1749
+ copyNode: bn,
1750
+ copyNodes: yn,
1751
+ insertParent: gn,
1752
+ insertSibling: mn,
1753
+ mainToSub: ce,
1754
+ moveDownNode: wn,
1755
+ moveNodeAfter: Sn,
1756
+ moveNodeBefore: _n,
1742
1757
  moveNodeIn: Nn,
1743
- moveUpNode: yn,
1744
- removeNode: wn,
1745
- removeNodes: En,
1746
- reshapeNode: fn,
1747
- setNodeTopic: Mn
1748
- }, Symbol.toStringTag, { value: "Module" })), Ln = function(e) {
1758
+ moveUpNode: xn,
1759
+ removeNode: En,
1760
+ removeNodes: Cn,
1761
+ reshapeNode: pn,
1762
+ setNodeTopic: Ln
1763
+ }, Symbol.toStringTag, { value: "Module" })), Tn = function(e) {
1749
1764
  return {
1750
1765
  dom: e,
1751
1766
  moved: !1,
@@ -1772,15 +1787,15 @@ const un = function(e, t) {
1772
1787
  }
1773
1788
  };
1774
1789
  }, Te = {
1775
- create: Ln
1790
+ create: Tn
1776
1791
  };
1777
1792
  function se(e, t, n) {
1778
- const { offsetLeft: o, offsetTop: s } = $(e.nodes, t), i = t.offsetWidth, r = t.offsetHeight, l = o + i / 2, c = s + r / 2, h = l + n.x, a = c + n.y;
1793
+ const { offsetLeft: o, offsetTop: s } = O(e.nodes, t), i = t.offsetWidth, r = t.offsetHeight, c = o + i / 2, l = s + r / 2, h = c + n.x, a = l + n.y;
1779
1794
  return {
1780
1795
  w: i,
1781
1796
  h: r,
1782
- cx: l,
1783
- cy: c,
1797
+ cx: c,
1798
+ cy: l,
1784
1799
  ctrlX: h,
1785
1800
  ctrlY: a
1786
1801
  };
@@ -1793,9 +1808,9 @@ function I(e) {
1793
1808
  y: n
1794
1809
  };
1795
1810
  }
1796
- const Tn = function(e, t, n, o) {
1811
+ const kn = function(e, t, n, o) {
1797
1812
  const s = document.createElementNS("http://www.w3.org/2000/svg", "text");
1798
- return N(s, {
1813
+ return C(s, {
1799
1814
  "text-anchor": "middle",
1800
1815
  x: t + "",
1801
1816
  y: n + "",
@@ -1804,14 +1819,13 @@ const Tn = function(e, t, n, o) {
1804
1819
  }, Xe = function(e, t, n, o, s) {
1805
1820
  if (!t || !n)
1806
1821
  return;
1807
- const i = performance.now(), r = se(e, t, o.delta1), l = se(e, n, o.delta2), { x: c, y: h } = I(r), { ctrlX: a, ctrlY: u } = r, { ctrlX: d, ctrlY: m } = l, { x: g, y: p } = I(l), f = $e(d, m, g, p), v = ft(
1808
- `M ${c} ${h} C ${a} ${u} ${d} ${m} ${g} ${p}`,
1809
- `M ${f.x1} ${f.y1} L ${g} ${p} L ${f.x2} ${f.y2}`
1810
- ), b = c / 8 + a * 3 / 8 + d * 3 / 8 + g / 8, y = h / 8 + u * 3 / 8 + m * 3 / 8 + p / 8, x = Tn(o.label, b, y, e.theme.cssVar["--color"]);
1811
- v.appendChild(x), v.arrowObj = o, v.dataset.linkid = o.id, e.linkSvgGroup.appendChild(v), s || (e.arrows.push(o), e.currentArrow = v, Je(e, o, r, l));
1812
- const w = performance.now();
1813
- console.log(`DrawArrow Execution time: ${w - i} ms`);
1814
- }, kn = function(e, t) {
1822
+ performance.now();
1823
+ const i = se(e, t, o.delta1), r = se(e, n, o.delta2), { x: c, y: l } = I(i), { ctrlX: h, ctrlY: a } = i, { ctrlX: u, ctrlY: d } = r, { x: m, y: g } = I(r), p = Oe(u, d, m, g), f = ft(
1824
+ `M ${c} ${l} C ${h} ${a} ${u} ${d} ${m} ${g}`,
1825
+ `M ${p.x1} ${p.y1} L ${m} ${g} L ${p.x2} ${p.y2}`
1826
+ ), v = c / 8 + h * 3 / 8 + u * 3 / 8 + m / 8, b = l / 8 + a * 3 / 8 + d * 3 / 8 + g / 8, y = kn(o.label, v, b, e.theme.cssVar["--color"]);
1827
+ f.appendChild(y), f.arrowObj = o, f.dataset.linkid = o.id, e.linkSvgGroup.appendChild(f), s || (e.arrows.push(o), e.currentArrow = f, Je(e, o, i, r)), performance.now();
1828
+ }, An = function(e, t) {
1815
1829
  const n = {
1816
1830
  id: G(),
1817
1831
  label: "Custom Link",
@@ -1830,7 +1844,7 @@ const Tn = function(e, t, n, o) {
1830
1844
  name: "createArrow",
1831
1845
  obj: n
1832
1846
  });
1833
- }, An = function(e) {
1847
+ }, jn = function(e) {
1834
1848
  let t;
1835
1849
  if (e ? t = e : t = this.currentArrow, !t)
1836
1850
  return;
@@ -1842,58 +1856,58 @@ const Tn = function(e, t, n, o) {
1842
1856
  id: n
1843
1857
  }
1844
1858
  });
1845
- }, jn = function(e) {
1859
+ }, Dn = function(e) {
1846
1860
  this.currentArrow = e;
1847
- const t = e.arrowObj, n = C(t.from), o = C(t.to), s = se(this, n, t.delta1), i = se(this, o, t.delta2);
1861
+ const t = e.arrowObj, n = N(t.from), o = N(t.to), s = se(this, n, t.delta1), i = se(this, o, t.delta2);
1848
1862
  Je(this, t, s, i);
1849
- }, Dn = function() {
1863
+ }, $n = function() {
1850
1864
  this.currentArrow = null, Ge(this);
1851
1865
  }, Ge = function(e) {
1852
1866
  e.linkController.style.display = "none", e.P2.style.display = "none", e.P3.style.display = "none";
1853
1867
  }, Je = function(e, t, n, o) {
1854
1868
  var d;
1855
1869
  e.linkController.style.display = "initial", e.P2.style.display = "initial", e.P3.style.display = "initial", e.nodes.appendChild(e.linkController), e.nodes.appendChild(e.P2), e.nodes.appendChild(e.P3);
1856
- let { x: s, y: i } = I(n), { ctrlX: r, ctrlY: l } = n, { ctrlX: c, ctrlY: h } = o, { x: a, y: u } = I(o);
1857
- e.P2.style.cssText = `top:${l}px;left:${r}px;`, e.P3.style.cssText = `top:${h}px;left:${c}px;`, N(e.line1, {
1870
+ let { x: s, y: i } = I(n), { ctrlX: r, ctrlY: c } = n, { ctrlX: l, ctrlY: h } = o, { x: a, y: u } = I(o);
1871
+ e.P2.style.cssText = `top:${c}px;left:${r}px;`, e.P3.style.cssText = `top:${h}px;left:${l}px;`, C(e.line1, {
1858
1872
  x1: s + "",
1859
1873
  y1: i + "",
1860
1874
  x2: r + "",
1861
- y2: l + ""
1862
- }), N(e.line2, {
1863
- x1: c + "",
1875
+ y2: c + ""
1876
+ }), C(e.line2, {
1877
+ x1: l + "",
1864
1878
  y1: h + "",
1865
1879
  x2: a + "",
1866
1880
  y2: u + ""
1867
1881
  }), e.helper1 && (e.helper1.destory(e.map), (d = e.helper2) == null || d.destory(e.map)), e.helper1 = Te.create(e.P2), e.helper2 = Te.create(e.P3), e.helper1.init(e.map, (m, g) => {
1868
1882
  var b;
1869
- r = r + m / e.scaleVal, l = l + g / e.scaleVal;
1870
- const p = I({ ...n, ctrlX: r, ctrlY: l });
1883
+ r = r + m / e.scaleVal, c = c + g / e.scaleVal;
1884
+ const p = I({ ...n, ctrlX: r, ctrlY: c });
1871
1885
  s = p.x, i = p.y;
1872
- const f = s / 8 + r * 3 / 8 + c * 3 / 8 + a / 8, v = i / 8 + l * 3 / 8 + h * 3 / 8 + u / 8;
1873
- e.P2.style.top = l + "px", e.P2.style.left = r + "px", (b = e.currentArrow) == null || b.children[0].setAttribute("d", `M ${s} ${i} C ${r} ${l} ${c} ${h} ${a} ${u}`), N(e.currentArrow.children[2], {
1886
+ const f = s / 8 + r * 3 / 8 + l * 3 / 8 + a / 8, v = i / 8 + c * 3 / 8 + h * 3 / 8 + u / 8;
1887
+ e.P2.style.top = c + "px", e.P2.style.left = r + "px", (b = e.currentArrow) == null || b.children[0].setAttribute("d", `M ${s} ${i} C ${r} ${c} ${l} ${h} ${a} ${u}`), C(e.currentArrow.children[2], {
1874
1888
  x: f + "",
1875
1889
  y: v + ""
1876
- }), N(e.line1, {
1890
+ }), C(e.line1, {
1877
1891
  x1: s + "",
1878
1892
  y1: i + "",
1879
1893
  x2: r + "",
1880
- y2: l + ""
1881
- }), t.delta1.x = r - n.cx, t.delta1.y = l - n.cy;
1894
+ y2: c + ""
1895
+ }), t.delta1.x = r - n.cx, t.delta1.y = c - n.cy;
1882
1896
  }), e.helper2.init(e.map, (m, g) => {
1883
1897
  var y, x;
1884
- c = c + m / e.scaleVal, h = h + g / e.scaleVal;
1885
- const p = I({ ...o, ctrlX: c, ctrlY: h });
1898
+ l = l + m / e.scaleVal, h = h + g / e.scaleVal;
1899
+ const p = I({ ...o, ctrlX: l, ctrlY: h });
1886
1900
  a = p.x, u = p.y;
1887
- const f = s / 8 + r * 3 / 8 + c * 3 / 8 + a / 8, v = i / 8 + l * 3 / 8 + h * 3 / 8 + u / 8, b = $e(c, h, a, u);
1888
- e.P3.style.top = h + "px", e.P3.style.left = c + "px", (y = e.currentArrow) == null || y.children[0].setAttribute("d", `M ${s} ${i} C ${r} ${l} ${c} ${h} ${a} ${u}`), (x = e.currentArrow) == null || x.children[1].setAttribute("d", `M ${b.x1} ${b.y1} L ${a} ${u} L ${b.x2} ${b.y2}`), N(e.currentArrow.children[2], {
1901
+ const f = s / 8 + r * 3 / 8 + l * 3 / 8 + a / 8, v = i / 8 + c * 3 / 8 + h * 3 / 8 + u / 8, b = Oe(l, h, a, u);
1902
+ e.P3.style.top = h + "px", e.P3.style.left = l + "px", (y = e.currentArrow) == null || y.children[0].setAttribute("d", `M ${s} ${i} C ${r} ${c} ${l} ${h} ${a} ${u}`), (x = e.currentArrow) == null || x.children[1].setAttribute("d", `M ${b.x1} ${b.y1} L ${a} ${u} L ${b.x2} ${b.y2}`), C(e.currentArrow.children[2], {
1889
1903
  x: f + "",
1890
1904
  y: v + ""
1891
- }), N(e.line2, {
1892
- x1: c + "",
1905
+ }), C(e.line2, {
1906
+ x1: l + "",
1893
1907
  y1: h + "",
1894
1908
  x2: a + "",
1895
1909
  y2: u + ""
1896
- }), t.delta2.x = c - o.cx, t.delta2.y = h - o.cy;
1910
+ }), t.delta2.x = l - o.cx, t.delta2.y = h - o.cy;
1897
1911
  });
1898
1912
  };
1899
1913
  function On() {
@@ -1901,40 +1915,39 @@ function On() {
1901
1915
  for (let e = 0; e < this.arrows.length; e++) {
1902
1916
  const t = this.arrows[e];
1903
1917
  try {
1904
- Xe(this, C(t.from), C(t.to), t, !0);
1918
+ Xe(this, N(t.from), N(t.to), t, !0);
1905
1919
  } catch {
1906
- console.warn("Node may not be expanded");
1907
1920
  }
1908
1921
  }
1909
1922
  this.nodes.appendChild(this.linkSvgGroup);
1910
1923
  }
1911
- function $n(e) {
1912
- if (console.time("editSummary"), !e)
1924
+ function Pn(e) {
1925
+ if (!e)
1913
1926
  return;
1914
1927
  const t = e.children[2];
1915
- console.log(t, e), Be(this, t, (n) => {
1928
+ Be(this, t, (n) => {
1916
1929
  var i;
1917
1930
  const o = e.arrowObj, s = ((i = n.textContent) == null ? void 0 : i.trim()) || "";
1918
1931
  s === "" ? o.label = origin : o.label = s, n.remove(), s !== origin && (t.innerHTML = o.label, this.linkDiv(), this.bus.fire("operation", {
1919
1932
  name: "finishEditArrowLabel",
1920
1933
  obj: o
1921
1934
  }));
1922
- }), console.timeEnd("editSummary");
1935
+ });
1923
1936
  }
1924
- function Pn() {
1937
+ function Hn() {
1925
1938
  this.arrows = this.arrows.filter((e) => ne(e.from, this.nodeData) && ne(e.to, this.nodeData));
1926
1939
  }
1927
- const Hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1940
+ const Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1928
1941
  __proto__: null,
1929
- createArrow: kn,
1930
- editArrowLabel: $n,
1931
- removeArrow: An,
1942
+ createArrow: An,
1943
+ editArrowLabel: Pn,
1944
+ removeArrow: jn,
1932
1945
  renderArrow: On,
1933
- selectArrow: jn,
1934
- tidyArrow: Pn,
1935
- unselectArrow: Dn
1936
- }, Symbol.toStringTag, { value: "Module" })), Bn = function(e) {
1937
- var c, h;
1946
+ selectArrow: Dn,
1947
+ tidyArrow: Hn,
1948
+ unselectArrow: $n
1949
+ }, Symbol.toStringTag, { value: "Module" })), zn = function(e) {
1950
+ var l, h;
1938
1951
  if (e.length === 0)
1939
1952
  throw new Error("No selected node.");
1940
1953
  if (e.length === 1) {
@@ -1961,27 +1974,27 @@ const Hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1961
1974
  let o = 0;
1962
1975
  e:
1963
1976
  for (; o < t; o++) {
1964
- const a = (c = n[0][o]) == null ? void 0 : c.node;
1977
+ const a = (l = n[0][o]) == null ? void 0 : l.node;
1965
1978
  for (let u = 1; u < n.length; u++)
1966
1979
  if (((h = n[u][o]) == null ? void 0 : h.node) !== a)
1967
1980
  break e;
1968
1981
  }
1969
1982
  if (!o)
1970
1983
  throw new Error("Can not select root node.");
1971
- const s = n.map((a) => a[o - 1].index).sort(), i = s[0] || 0, r = s[s.length - 1] || 0, l = n[0][o - 1].node;
1972
- if (l.root)
1984
+ const s = n.map((a) => a[o - 1].index).sort(), i = s[0] || 0, r = s[s.length - 1] || 0, c = n[0][o - 1].node;
1985
+ if (c.root)
1973
1986
  throw new Error("Please select nodes in the same main topic.");
1974
1987
  return {
1975
- parent: l.id,
1988
+ parent: c.id,
1976
1989
  start: i,
1977
1990
  end: r
1978
1991
  };
1979
- }, zn = function(e) {
1992
+ }, Rn = function(e) {
1980
1993
  const t = document.createElementNS("http://www.w3.org/2000/svg", "g");
1981
1994
  return t.setAttribute("id", e), t;
1982
1995
  }, ke = function(e, t) {
1983
1996
  const n = document.createElementNS("http://www.w3.org/2000/svg", "path");
1984
- return N(n, {
1997
+ return C(n, {
1985
1998
  d: e,
1986
1999
  stroke: t || "#666",
1987
2000
  fill: "none",
@@ -1990,42 +2003,42 @@ const Hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1990
2003
  }), n;
1991
2004
  }, Ae = function(e, t, n, o, s) {
1992
2005
  const i = document.createElementNS("http://www.w3.org/2000/svg", "text");
1993
- return N(i, {
2006
+ return C(i, {
1994
2007
  "text-anchor": o,
1995
2008
  x: t + "",
1996
2009
  y: n + "",
1997
2010
  fill: s || "#666"
1998
2011
  }), i.innerHTML = e, i;
1999
- }, Rn = (e) => C(e).parentElement.parentElement, qn = function({ parent: e, start: t }) {
2012
+ }, qn = (e) => N(e).parentElement.parentElement, Fn = function({ parent: e, start: t }) {
2000
2013
  var i, r;
2001
- const n = C(e), o = n.nodeObj;
2014
+ const n = N(e), o = n.nodeObj;
2002
2015
  let s;
2003
- return o.root === !0 ? s = (i = C(o.children[t].id).closest("me-main")) == null ? void 0 : i.className : s = (r = n.closest("me-main")) == null ? void 0 : r.className, s;
2016
+ return o.root === !0 ? s = (i = N(o.children[t].id).closest("me-main")) == null ? void 0 : i.className : s = (r = n.closest("me-main")) == null ? void 0 : r.className, s;
2004
2017
  }, Qe = function(e, t) {
2005
2018
  var _;
2006
- const { id: n, text: o, parent: s, start: i, end: r } = t, l = e.nodes, h = C(s).nodeObj, a = qn(t);
2019
+ const { id: n, text: o, parent: s, start: i, end: r } = t, c = e.nodes, h = N(s).nodeObj, a = Fn(t);
2007
2020
  let u = 1 / 0, d = 0, m = 0, g = 0;
2008
2021
  for (let P = i; P <= r; P++) {
2009
2022
  const U = (_ = h.children) == null ? void 0 : _[P];
2010
2023
  if (!U)
2011
- return console.warn("Child not found"), e.removeSummary(n), null;
2012
- const H = Rn(U.id), { offsetLeft: J, offsetTop: ve } = $(l, H);
2024
+ return e.removeSummary(n), null;
2025
+ const H = qn(U.id), { offsetLeft: J, offsetTop: ve } = O(c, H);
2013
2026
  P === i && (m = ve), P === r && (g = ve + H.offsetHeight), J < u && (u = J), H.offsetWidth + J > d && (d = H.offsetWidth + J);
2014
2027
  }
2015
2028
  let p, f;
2016
2029
  const v = m + 10, b = g + 10, y = (v + b) / 2, x = e.theme.cssVar["--color"];
2017
2030
  a === "lhs" ? (p = ke(`M ${u + 10} ${v} c -5 0 -10 5 -10 10 L ${u} ${b - 10} c 0 5 5 10 10 10 M ${u} ${y} h -10`, x), f = Ae(o, u - 20, y + 6, "end", x)) : (p = ke(`M ${d - 10} ${v} c 5 0 10 5 10 10 L ${d} ${b - 10} c 0 5 -5 10 -10 10 M ${d} ${y} h 10`, x), f = Ae(o, d + 20, y + 6, "start", x));
2018
- const w = zn("s-" + n);
2031
+ const w = Rn("s-" + n);
2019
2032
  return w.appendChild(p), w.appendChild(f), w.summaryObj = t, e.summarySvg.appendChild(w), w;
2020
- }, Fn = function() {
2033
+ }, In = function() {
2021
2034
  let e = [];
2022
2035
  this.currentNode ? e = [this.currentNode] : this.currentNodes && (e = this.currentNodes);
2023
- const { parent: t, start: n, end: o } = Bn(e), s = { id: G(), parent: t, start: n, end: o, text: "summary" }, i = Qe(this, s);
2036
+ const { parent: t, start: n, end: o } = zn(e), s = { id: G(), parent: t, start: n, end: o, text: "summary" }, i = Qe(this, s);
2024
2037
  this.summaries.push(s), this.editSummary(i), this.bus.fire("operation", {
2025
2038
  name: "createSummary",
2026
2039
  obj: s
2027
2040
  });
2028
- }, In = function(e) {
2041
+ }, Kn = function(e) {
2029
2042
  var n;
2030
2043
  const t = this.summaries.findIndex((o) => o.id === e);
2031
2044
  t > -1 && (this.summaries.splice(t, 1), (n = document.querySelector("#s-" + e)) == null || n.remove()), this.bus.fire("operation", {
@@ -2034,7 +2047,7 @@ const Hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2034
2047
  });
2035
2048
  }, Vn = function(e) {
2036
2049
  const t = e.children[1].getBBox(), n = 6, o = 3, s = document.createElementNS("http://www.w3.org/2000/svg", "rect");
2037
- N(s, {
2050
+ C(s, {
2038
2051
  x: t.x - n + "",
2039
2052
  y: t.y - n + "",
2040
2053
  width: t.width + n * 2 + "",
@@ -2047,16 +2060,15 @@ const Hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2047
2060
  }, Wn = function() {
2048
2061
  var e, t;
2049
2062
  (t = (e = this.currentSummary) == null ? void 0 : e.querySelector("rect")) == null || t.remove(), this.currentSummary = null;
2050
- }, Kn = function() {
2063
+ }, Un = function() {
2051
2064
  this.summarySvg.innerHTML = "", this.summaries.forEach((e) => {
2052
2065
  try {
2053
2066
  Qe(this, e);
2054
2067
  } catch {
2055
- console.warn("Node may not be expanded");
2056
2068
  }
2057
2069
  }), this.nodes.insertAdjacentElement("beforeend", this.summarySvg);
2058
- }, Un = function(e) {
2059
- if (console.time("editSummary"), !e)
2070
+ }, Yn = function(e) {
2071
+ if (!e)
2060
2072
  return;
2061
2073
  const t = e.childNodes[1];
2062
2074
  Be(this, t, (n) => {
@@ -2066,65 +2078,65 @@ const Hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2066
2078
  name: "finishEditSummary",
2067
2079
  obj: o
2068
2080
  }));
2069
- }), console.timeEnd("editSummary");
2070
- }, Yn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2081
+ });
2082
+ }, Xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2071
2083
  __proto__: null,
2072
- createSummary: Fn,
2073
- editSummary: Un,
2074
- removeSummary: In,
2075
- renderSummary: Kn,
2084
+ createSummary: In,
2085
+ editSummary: Yn,
2086
+ removeSummary: Kn,
2087
+ renderSummary: Un,
2076
2088
  selectSummary: Vn,
2077
2089
  unselectSummary: Wn
2078
2090
  }, Symbol.toStringTag, { value: "Module" })), M = "http://www.w3.org/2000/svg";
2079
- function Xn(e, t) {
2091
+ function Gn(e, t) {
2080
2092
  const n = document.createElementNS(M, "svg");
2081
- return N(n, {
2093
+ return C(n, {
2082
2094
  version: "1.1",
2083
2095
  xmlns: M,
2084
2096
  height: e,
2085
2097
  width: t
2086
2098
  }), n;
2087
2099
  }
2088
- function Gn(e, t) {
2100
+ function Jn(e, t) {
2089
2101
  return (parseInt(e) - parseInt(t)) / 2;
2090
2102
  }
2091
- function Jn(e, t, n, o) {
2103
+ function Qn(e, t, n, o) {
2092
2104
  const s = document.createElementNS(M, "g");
2093
2105
  let i = "";
2094
2106
  return e.text ? i = e.text.textContent : i = e.childNodes[0].textContent, i.split(`
2095
- `).forEach((l, c) => {
2107
+ `).forEach((c, l) => {
2096
2108
  const h = document.createElementNS(M, "text");
2097
- N(h, {
2109
+ C(h, {
2098
2110
  x: n + parseInt(t.paddingLeft) + "",
2099
- y: o + parseInt(t.paddingTop) + Gn(t.lineHeight, t.fontSize) * (c + 1) + parseFloat(t.fontSize) * (c + 1) + "",
2111
+ y: o + parseInt(t.paddingTop) + Jn(t.lineHeight, t.fontSize) * (l + 1) + parseFloat(t.fontSize) * (l + 1) + "",
2100
2112
  "text-anchor": "start",
2101
2113
  "font-family": t.fontFamily,
2102
2114
  "font-size": `${t.fontSize}`,
2103
2115
  "font-weight": `${t.fontWeight}`,
2104
2116
  fill: `${t.color}`
2105
- }), h.innerHTML = l, s.appendChild(h);
2117
+ }), h.innerHTML = c, s.appendChild(h);
2106
2118
  }), s;
2107
2119
  }
2108
- function Qn(e, t, n, o) {
2109
- var l;
2120
+ function Zn(e, t, n, o) {
2121
+ var c;
2110
2122
  let s = "";
2111
- (l = e.nodeObj) != null && l.dangerouslySetInnerHTML ? s = e.nodeObj.dangerouslySetInnerHTML : e.text ? s = e.text.textContent : s = e.childNodes[0].textContent;
2123
+ (c = e.nodeObj) != null && c.dangerouslySetInnerHTML ? s = e.nodeObj.dangerouslySetInnerHTML : e.text ? s = e.text.textContent : s = e.childNodes[0].textContent;
2112
2124
  const i = document.createElementNS(M, "foreignObject");
2113
- N(i, {
2125
+ C(i, {
2114
2126
  x: n + parseInt(t.paddingLeft) + "",
2115
2127
  y: o + parseInt(t.paddingTop) + "",
2116
2128
  width: t.width,
2117
2129
  height: t.height
2118
2130
  });
2119
2131
  const r = document.createElement("div");
2120
- return N(r, {
2132
+ return C(r, {
2121
2133
  xmlns: "http://www.w3.org/1999/xhtml",
2122
2134
  style: `font-family: ${t.fontFamily}; font-size: ${t.fontSize}; font-weight: ${t.fontWeight}; color: ${t.color}; white-space: pre-wrap;`
2123
2135
  }), r.innerHTML = s, i.appendChild(r), i;
2124
2136
  }
2125
- function Zn(e, t) {
2126
- const n = getComputedStyle(t), { offsetLeft: o, offsetTop: s } = $(e.nodes, t), i = document.createElementNS(M, "rect");
2127
- return N(i, {
2137
+ function eo(e, t) {
2138
+ const n = getComputedStyle(t), { offsetLeft: o, offsetTop: s } = O(e.nodes, t), i = document.createElementNS(M, "rect");
2139
+ return C(i, {
2128
2140
  x: o + "",
2129
2141
  y: s + "",
2130
2142
  rx: n.borderRadius,
@@ -2137,8 +2149,8 @@ function Zn(e, t) {
2137
2149
  }), i;
2138
2150
  }
2139
2151
  function Z(e, t, n = !1) {
2140
- const o = getComputedStyle(t), { offsetLeft: s, offsetTop: i } = $(e.nodes, t), r = document.createElementNS(M, "rect");
2141
- N(r, {
2152
+ const o = getComputedStyle(t), { offsetLeft: s, offsetTop: i } = O(e.nodes, t), r = document.createElementNS(M, "rect");
2153
+ C(r, {
2142
2154
  x: s + "",
2143
2155
  y: i + "",
2144
2156
  rx: o.borderRadius,
@@ -2149,14 +2161,14 @@ function Z(e, t, n = !1) {
2149
2161
  stroke: o.borderColor,
2150
2162
  "stroke-width": o.borderWidth
2151
2163
  });
2152
- const l = document.createElementNS(M, "g");
2153
- l.appendChild(r);
2154
- let c;
2155
- return n ? c = Qn(t, o, s, i) : c = Jn(t, o, s, i), l.appendChild(c), l;
2164
+ const c = document.createElementNS(M, "g");
2165
+ c.appendChild(r);
2166
+ let l;
2167
+ return n ? l = Zn(t, o, s, i) : l = Qn(t, o, s, i), c.appendChild(l), c;
2156
2168
  }
2157
- function eo(e, t) {
2158
- const n = getComputedStyle(t), { offsetLeft: o, offsetTop: s } = $(e.nodes, t), i = document.createElementNS(M, "a"), r = document.createElementNS(M, "text");
2159
- return N(r, {
2169
+ function to(e, t) {
2170
+ const n = getComputedStyle(t), { offsetLeft: o, offsetTop: s } = O(e.nodes, t), i = document.createElementNS(M, "a"), r = document.createElementNS(M, "text");
2171
+ return C(r, {
2160
2172
  x: o + "",
2161
2173
  y: s + parseInt(n.fontSize) + "",
2162
2174
  "text-anchor": "start",
@@ -2166,9 +2178,9 @@ function eo(e, t) {
2166
2178
  fill: `${n.color}`
2167
2179
  }), r.innerHTML = t.textContent, i.appendChild(r), i.setAttribute("href", t.href), i;
2168
2180
  }
2169
- function to(e, t) {
2170
- const n = getComputedStyle(t), { offsetLeft: o, offsetTop: s } = $(e.nodes, t), i = document.createElementNS(M, "image");
2171
- return N(i, {
2181
+ function no(e, t) {
2182
+ const n = getComputedStyle(t), { offsetLeft: o, offsetTop: s } = O(e.nodes, t), i = document.createElementNS(M, "image");
2183
+ return C(i, {
2172
2184
  x: o + "",
2173
2185
  y: s + "",
2174
2186
  width: n.width + "",
@@ -2176,41 +2188,41 @@ function to(e, t) {
2176
2188
  href: t.src
2177
2189
  }), i;
2178
2190
  }
2179
- const ee = 100, no = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">', oo = (e, t = !1) => {
2191
+ const ee = 100, oo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">', so = (e, t = !1) => {
2180
2192
  var u, d, m;
2181
- const n = e.nodes, o = n.offsetHeight + ee * 2, s = n.offsetWidth + ee * 2, i = Xn(o + "px", s + "px"), r = document.createElementNS(M, "svg"), l = document.createElementNS(M, "rect");
2182
- N(l, {
2193
+ const n = e.nodes, o = n.offsetHeight + ee * 2, s = n.offsetWidth + ee * 2, i = Gn(o + "px", s + "px"), r = document.createElementNS(M, "svg"), c = document.createElementNS(M, "rect");
2194
+ C(c, {
2183
2195
  x: "0",
2184
2196
  y: "0",
2185
2197
  width: `${s}`,
2186
2198
  height: `${o}`,
2187
2199
  fill: e.theme.cssVar["--bgcolor"]
2188
- }), i.appendChild(l), n.querySelectorAll(".subLines").forEach((g) => {
2189
- const p = g.cloneNode(!0), { offsetLeft: f, offsetTop: v } = $(n, g.parentElement);
2200
+ }), i.appendChild(c), n.querySelectorAll(".subLines").forEach((g) => {
2201
+ const p = g.cloneNode(!0), { offsetLeft: f, offsetTop: v } = O(n, g.parentElement);
2190
2202
  p.setAttribute("x", `${f}`), p.setAttribute("y", `${v}`), r.appendChild(p);
2191
2203
  });
2192
- const c = (u = n.querySelector(".lines")) == null ? void 0 : u.cloneNode(!0);
2193
- c && r.appendChild(c);
2204
+ const l = (u = n.querySelector(".lines")) == null ? void 0 : u.cloneNode(!0);
2205
+ l && r.appendChild(l);
2194
2206
  const h = (d = n.querySelector(".topiclinks")) == null ? void 0 : d.cloneNode(!0);
2195
2207
  h && r.appendChild(h);
2196
2208
  const a = (m = n.querySelector(".summary")) == null ? void 0 : m.cloneNode(!0);
2197
2209
  return a && r.appendChild(a), n.querySelectorAll("me-tpc").forEach((g) => {
2198
- g.nodeObj.dangerouslySetInnerHTML ? r.appendChild(Z(e, g, !t)) : (r.appendChild(Zn(e, g)), r.appendChild(Z(e, g.text, !t)));
2210
+ g.nodeObj.dangerouslySetInnerHTML ? r.appendChild(Z(e, g, !t)) : (r.appendChild(eo(e, g)), r.appendChild(Z(e, g.text, !t)));
2199
2211
  }), n.querySelectorAll(".tags > span").forEach((g) => {
2200
2212
  r.appendChild(Z(e, g));
2201
2213
  }), n.querySelectorAll(".icons > span").forEach((g) => {
2202
2214
  r.appendChild(Z(e, g));
2203
2215
  }), n.querySelectorAll(".hyper-link").forEach((g) => {
2204
- r.appendChild(eo(e, g));
2205
- }), n.querySelectorAll("img").forEach((g) => {
2206
2216
  r.appendChild(to(e, g));
2207
- }), N(r, {
2217
+ }), n.querySelectorAll("img").forEach((g) => {
2218
+ r.appendChild(no(e, g));
2219
+ }), C(r, {
2208
2220
  x: ee + "",
2209
2221
  y: ee + "",
2210
2222
  overflow: "visible"
2211
2223
  }), i.appendChild(r), i;
2212
- }, so = (e, t) => (t && e.insertAdjacentHTML("afterbegin", "<style>" + t + "</style>"), no + e.outerHTML);
2213
- function io(e) {
2224
+ }, io = (e, t) => (t && e.insertAdjacentHTML("afterbegin", "<style>" + t + "</style>"), oo + e.outerHTML);
2225
+ function ro(e) {
2214
2226
  return new Promise((t, n) => {
2215
2227
  const o = new FileReader();
2216
2228
  o.onload = (s) => {
@@ -2220,24 +2232,24 @@ function io(e) {
2220
2232
  }, o.readAsDataURL(e);
2221
2233
  });
2222
2234
  }
2223
- const ro = function(e = !1, t) {
2224
- const n = oo(this, e), o = so(n, t);
2235
+ const co = function(e = !1, t) {
2236
+ const n = so(this, e), o = io(n, t);
2225
2237
  return new Blob([o], { type: "image/svg+xml" });
2226
2238
  }, lo = async function(e = !1, t) {
2227
- const n = this.exportSvg(e, t), o = await io(n);
2239
+ const n = this.exportSvg(e, t), o = await ro(n);
2228
2240
  return new Promise((s, i) => {
2229
2241
  const r = new Image();
2230
2242
  r.setAttribute("crossOrigin", "anonymous"), r.onload = () => {
2231
- const l = document.createElement("canvas");
2232
- l.width = r.width, l.height = r.height, l.getContext("2d").drawImage(r, 0, 0), l.toBlob(s, "image/png", 1);
2243
+ const c = document.createElement("canvas");
2244
+ c.width = r.width, c.height = r.height, c.getContext("2d").drawImage(r, 0, 0), c.toBlob(s, "image/png", 1);
2233
2245
  }, r.src = o, r.onerror = i;
2234
2246
  });
2235
- }, co = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2247
+ }, ao = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2236
2248
  __proto__: null,
2237
2249
  exportPng: lo,
2238
- exportSvg: ro
2250
+ exportSvg: co
2239
2251
  }, Symbol.toStringTag, { value: "Module" }));
2240
- function ao(e, t) {
2252
+ function ho(e, t) {
2241
2253
  return async function(...n) {
2242
2254
  const o = this.before[t];
2243
2255
  o && !await o.apply(this, n) || e.apply(this, n);
@@ -2246,46 +2258,46 @@ function ao(e, t) {
2246
2258
  const je = Object.keys(Ye), Ze = {};
2247
2259
  for (let e = 0; e < je.length; e++) {
2248
2260
  const t = je[e];
2249
- Ze[t] = ao(Ye[t], t);
2261
+ Ze[t] = ho(Ye[t], t);
2250
2262
  }
2251
- const ho = {
2263
+ const uo = {
2252
2264
  getObjById: ne,
2253
2265
  generateNewObj: nt,
2254
2266
  layout: it,
2255
2267
  linkDiv: pt,
2256
2268
  editTopic: ut,
2257
- createWrapper: ct,
2269
+ createWrapper: lt,
2258
2270
  createParent: at,
2259
2271
  createChildren: dt,
2260
2272
  createTopic: ht,
2261
- findEle: C,
2262
- changeTheme: Bt,
2273
+ findEle: N,
2274
+ changeTheme: zt,
2263
2275
  ...ln,
2264
2276
  ...Ze,
2265
- ...Hn,
2266
- ...Yn,
2267
- ...co,
2277
+ ...Bn,
2278
+ ...Xn,
2279
+ ...ao,
2268
2280
  init(e) {
2269
2281
  if (!e || !e.nodeData)
2270
2282
  return new Error("MindElixir: `data` is required");
2271
- e.direction !== void 0 && (this.direction = e.direction), this.changeTheme(e.theme || this.theme, !1), this.nodeData = e.nodeData, O(this.nodeData), this.arrows = e.arrows || [], this.summaries = e.summaries || [], this.tidyArrow(), this.toolBar && kt(this), this.keypress && wt(this), this.editable && Ht(this), et() && this.mobileMenu ? Et(this) : this.contextMenu && mt(this, this.contextMenuOption), this.draggable && _t(this), this.allowUndo && Mt(this), this.toCenter(), this.layout(), this.linkDiv();
2283
+ e.direction !== void 0 && (this.direction = e.direction), this.changeTheme(e.theme || this.theme, !1), this.nodeData = e.nodeData, $(this.nodeData), this.arrows = e.arrows || [], this.summaries = e.summaries || [], this.tidyArrow(), this.toolBar && kt(this), this.keypress && wt(this), this.editable && Bt(this), et() && this.mobileMenu ? Et(this) : this.contextMenu && mt(this, this.contextMenuOption), this.draggable && _t(this), this.allowUndo && Mt(this), this.toCenter(), this.layout(), this.linkDiv();
2272
2284
  }
2273
2285
  };
2274
- function uo({ pT: e, pL: t, pW: n, pH: o, cT: s, cL: i, cW: r, cH: l, direction: c, containerHeight: h }) {
2286
+ function fo({ pT: e, pL: t, pW: n, pH: o, cT: s, cL: i, cW: r, cH: c, direction: l, containerHeight: h }) {
2275
2287
  let a = t + n / 2;
2276
2288
  const u = e + o / 2;
2277
2289
  let d;
2278
- c === "lhs" ? d = i + r : d = i;
2279
- const m = s + l / 2, p = (1 - Math.abs(m - u) / h) * 0.25 * (n / 2);
2280
- return c === "lhs" ? a = a - n / 10 - p : a = a + n / 10 + p, `M ${a} ${u} Q ${a} ${m} ${d} ${m}`;
2290
+ l === "lhs" ? d = i + r : d = i;
2291
+ const m = s + c / 2, p = (1 - Math.abs(m - u) / h) * 0.25 * (n / 2);
2292
+ return l === "lhs" ? a = a - n / 10 - p : a = a + n / 10 + p, `M ${a} ${u} Q ${a} ${m} ${d} ${m}`;
2281
2293
  }
2282
- function fo({ pT: e, pL: t, pW: n, pH: o, cT: s, cL: i, cW: r, cH: l, direction: c, isFirst: h }) {
2294
+ function po({ pT: e, pL: t, pW: n, pH: o, cT: s, cL: i, cW: r, cH: c, direction: l, isFirst: h }) {
2283
2295
  let a = 0, u = 0;
2284
2296
  h ? a = e + o / 2 : a = e + o;
2285
- const d = s + l;
2297
+ const d = s + c;
2286
2298
  let m = 0, g = 0, p = 0;
2287
2299
  const f = Math.abs(a - d) / 300 * D;
2288
- return c === "lhs" ? (p = t, m = p + D, g = p - D, u = i + D, `M ${m} ${a} C ${p} ${a} ${p + f} ${d} ${g} ${d} H ${u}`) : (p = t + n, m = p - D, g = p + D, u = i + r - D, `M ${m} ${a} C ${p} ${a} ${p - f} ${d} ${g} ${d} H ${u}`);
2300
+ return l === "lhs" ? (p = t, m = p + D, g = p - D, u = i + D, `M ${m} ${a} C ${p} ${a} ${p + f} ${d} ${g} ${d} H ${u}`) : (p = t + n, m = p - D, g = p + D, u = i + r - D, `M ${m} ${a} C ${p} ${a} ${p - f} ${d} ${g} ${d} H ${u}`);
2289
2301
  }
2290
2302
  const Y = document;
2291
2303
  function k({
@@ -2296,8 +2308,8 @@ function k({
2296
2308
  editable: s,
2297
2309
  contextMenu: i,
2298
2310
  contextMenuOption: r,
2299
- toolBar: l,
2300
- keypress: c,
2311
+ toolBar: c,
2312
+ keypress: l,
2301
2313
  mouseSelectionButton: h,
2302
2314
  before: a,
2303
2315
  newTopicName: u,
@@ -2308,25 +2320,24 @@ function k({
2308
2320
  mobileMenu: f,
2309
2321
  theme: v
2310
2322
  }) {
2311
- console.log("ME_version " + k.version, this);
2312
2323
  let b = null;
2313
2324
  const y = Object.prototype.toString.call(e);
2314
2325
  if (y === "[object HTMLDivElement]" ? b = e : y === "[object String]" && (b = document.querySelector(e)), !b)
2315
2326
  throw new Error("MindElixir: el is not a valid element");
2316
- b.className += " mind-elixir", b.innerHTML = "", b.style.setProperty("--gap", D + "px"), this.mindElixirBox = b, this.before = a || {}, this.locale = n || "en", this.contextMenuOption = r, this.contextMenu = i === void 0 ? !0 : i, this.toolBar = l === void 0 ? !0 : l, this.keypress = c === void 0 ? !0 : c, this.mouseSelectionButton = h || 0, this.mobileMenu = f || !1, this.direction = typeof t == "number" ? t : 1, this.draggable = o === void 0 ? !0 : o, this.newTopicName = u || "new node", this.editable = s === void 0 ? !0 : s, this.allowUndo = d === void 0 ? !1 : d, this.currentNode = null, this.currentArrow = null, this.scaleVal = 1, this.tempDirection = null, this.generateMainBranch = m || uo, this.generateSubBranch = g || fo, this.overflowHidden = p || !1, this.bus = st.create(), this.container = Y.createElement("div"), this.container.className = "map-container";
2327
+ b.className += " mind-elixir", b.innerHTML = "", b.style.setProperty("--gap", D + "px"), this.mindElixirBox = b, this.before = a || {}, this.locale = n || "en", this.contextMenuOption = r, this.contextMenu = i === void 0 ? !0 : i, this.toolBar = c === void 0 ? !0 : c, this.keypress = l === void 0 ? !0 : l, this.mouseSelectionButton = h || 0, this.mobileMenu = f || !1, this.direction = typeof t == "number" ? t : 1, this.draggable = o === void 0 ? !0 : o, this.newTopicName = u || "new node", this.editable = s === void 0 ? !0 : s, this.allowUndo = d === void 0 ? !1 : d, this.currentNode = null, this.currentArrow = null, this.scaleVal = 1, this.tempDirection = null, this.generateMainBranch = m || fo, this.generateSubBranch = g || po, this.overflowHidden = p || !1, this.bus = st.create(), this.container = Y.createElement("div"), this.container.className = "map-container";
2317
2328
  const x = window.matchMedia("(prefers-color-scheme: dark)");
2318
- this.theme = v || (x.matches ? Oe : De);
2329
+ this.theme = v || (x.matches ? $e : De);
2319
2330
  const w = Y.createElement("div");
2320
2331
  w.className = "map-canvas", this.map = w, this.map.setAttribute("tabindex", "0"), this.container.appendChild(this.map), this.mindElixirBox.appendChild(this.container), this.nodes = Y.createElement("me-nodes"), this.nodes.className = "main-node-container", this.lines = X("lines"), this.summarySvg = X("summary"), this.linkController = X("linkcontroller"), this.P2 = Y.createElement("div"), this.P3 = Y.createElement("div"), this.P2.className = this.P3.className = "circle", this.P2.style.display = this.P3.style.display = "none", this.line1 = be(), this.line2 = be(), this.linkController.appendChild(this.line1), this.linkController.appendChild(this.line2), this.linkSvgGroup = X("topiclinks"), this.map.appendChild(this.nodes), this.overflowHidden ? this.container.style.overflow = "hidden" : ot(this);
2321
2332
  }
2322
- k.prototype = ho;
2333
+ k.prototype = uo;
2323
2334
  k.LEFT = T;
2324
2335
  k.RIGHT = z;
2325
2336
  k.SIDE = ie;
2326
2337
  k.THEME = De;
2327
- k.DARK_THEME = Oe;
2328
- k.version = "4.0.1";
2329
- k.E = C;
2338
+ k.DARK_THEME = $e;
2339
+ k.version = "4.0.4";
2340
+ k.E = N;
2330
2341
  k.new = (e) => ({
2331
2342
  nodeData: {
2332
2343
  id: G(),