mind-elixir 3.2.2 → 3.2.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,8 +1,8 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.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}.map-container{-webkit-user-select:none;user-select:none;height:100%;width:100%;overflow:scroll;font-size:15px}.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;line-height:1.2em;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:20px 65px}.map-container me-main>me-wrapper>me-parent{margin:var(--gap);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 var(--gap)}.map-container me-main>me-wrapper>me-parent>me-tpc #input-box{padding:8px var(--gap)}.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);line-height:1.2em}.map-container me-parent me-tpc>div,.map-container me-parent me-tpc>span,.map-container me-parent me-tpc>img{pointer-events:none}.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>img{pointer-events:none;display:block;margin-top:8px}.map-container .circle{position:absolute;height:10px;width:10px;margin-top:-5px;margin-left:-5px;border-radius:100%;background:#aaa;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}.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}.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(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
2
- (function(t) {
3
- var e, n, i, o, s, 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 && !t.__iconfont__svg__cssinject__) {
5
- t.__iconfont__svg__cssinject__ = !0;
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}.map-container{-webkit-user-select:none;user-select:none;height:100%;width:100%;overflow:scroll;font-size:15px}.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;line-height:1.2em;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:20px 65px}.map-container me-main>me-wrapper>me-parent{margin:var(--gap);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 var(--gap)}.map-container me-main>me-wrapper>me-parent>me-tpc #input-box{padding:8px var(--gap)}.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);line-height:1.2em}.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>div,.map-container me-tpc>span,.map-container me-tpc>img{pointer-events:none}.map-container me-tpc>img{display:block;margin-bottom:8px;object-fit:cover}.map-container .circle{position:absolute;height:10px;width:10px;margin-top:-5px;margin-left:-5px;border-radius:100%;background:#aaa;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}.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
+ (function(e) {
3
+ var t, n, i, o, s, 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__) {
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>"
@@ -14,12 +14,12 @@
14
14
  function h() {
15
15
  s || (s = !0, i());
16
16
  }
17
- e = function() {
17
+ t = function() {
18
18
  var a, u, d, p;
19
19
  (p = document.createElement("div")).innerHTML = l, l = null, (d = p.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 ? (p = a, (d = u.firstChild).parentNode.insertBefore(p, d)) : u.appendChild(a));
20
- }, document.addEventListener ? ~["complete", "loaded", "interactive"].indexOf(document.readyState) ? setTimeout(e, 0) : (n = function() {
21
- document.removeEventListener("DOMContentLoaded", n, !1), e();
22
- }, document.addEventListener("DOMContentLoaded", n, !1)) : document.attachEvent && (i = e, o = t.document, s = !1, (r = function() {
20
+ }, document.addEventListener ? ~["complete", "loaded", "interactive"].indexOf(document.readyState) ? setTimeout(t, 0) : (n = function() {
21
+ document.removeEventListener("DOMContentLoaded", n, !1), t();
22
+ }, document.addEventListener("DOMContentLoaded", n, !1)) : document.attachEvent && (i = t, o = e.document, s = !1, (r = function() {
23
23
  try {
24
24
  o.documentElement.doScroll("left");
25
25
  } catch {
@@ -30,7 +30,7 @@
30
30
  o.readyState == "complete" && (o.onreadystatechange = null, h());
31
31
  });
32
32
  })(window);
33
- const S = 0, H = 1, K = 2, M = 30, L = 8, Se = {
33
+ const S = 0, H = 1, K = 2, M = 30, L = 8, Le = {
34
34
  name: "Latte",
35
35
  palette: ["#dd7878", "#ea76cb", "#8839ef", "#e64553", "#fe640b", "#df8e1d", "#40a02b", "#209fb5", "#1e66f5", "#7287fd"],
36
36
  cssVar: {
@@ -42,7 +42,7 @@ const S = 0, H = 1, K = 2, M = 30, L = 8, Se = {
42
42
  "--panel-bgcolor": "#ffffff",
43
43
  "--panel-border-color": "#eaeaea"
44
44
  }
45
- }, Le = {
45
+ }, Me = {
46
46
  name: "Dark",
47
47
  palette: ["#848FA0", "#748BE9", "#D2F9FE", "#4145A5", "#789AFA", "#706CF4", "#EF987F", "#775DD5", "#FCEECF", "#DA7FBC"],
48
48
  cssVar: {
@@ -55,39 +55,39 @@ const S = 0, H = 1, K = 2, M = 30, L = 8, Se = {
55
55
  "--panel-border-color": "#696969"
56
56
  }
57
57
  };
58
- function ee(t) {
59
- return t.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/"/g, "&quot;");
58
+ function ee(e) {
59
+ return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/"/g, "&quot;");
60
60
  }
61
- const Xe = () => /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent), Me = function(t, e) {
62
- if (e.id === t)
63
- return e;
64
- if (e.children && e.children.length) {
65
- for (let n = 0; n < e.children.length; n++) {
66
- const i = Me(t, e.children[n]);
61
+ const Xe = () => /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent), te = function(e, t) {
62
+ if (t.id === e)
63
+ return t;
64
+ if (t.children && t.children.length) {
65
+ for (let n = 0; n < t.children.length; n++) {
66
+ const i = te(e, t.children[n]);
67
67
  if (i)
68
68
  return i;
69
69
  }
70
70
  return null;
71
71
  } else
72
72
  return null;
73
- }, T = (t, e) => {
74
- if (t.parent = e, t.children)
75
- for (let n = 0; n < t.children.length; n++)
76
- T(t.children[n], t);
73
+ }, T = (e, t) => {
74
+ if (e.parent = t, e.children)
75
+ for (let n = 0; n < e.children.length; n++)
76
+ T(e.children[n], e);
77
77
  };
78
- function Te(t) {
79
- if (t.id = U(), t.children)
80
- for (let e = 0; e < t.children.length; e++)
81
- Te(t.children[e]);
78
+ function Te(e) {
79
+ if (e.id = U(), e.children)
80
+ for (let t = 0; t < e.children.length; t++)
81
+ Te(e.children[t]);
82
82
  }
83
- const Ke = (t, e) => {
83
+ const Ke = (e, t) => {
84
84
  let n = Date.now();
85
85
  return function(...i) {
86
- Date.now() - n >= e && (t(...i), n = Date.now());
86
+ Date.now() - n >= t && (e(...i), n = Date.now());
87
87
  };
88
88
  };
89
- function $e(t, e, n, i) {
90
- const o = i - e, s = t - n;
89
+ function $e(e, t, n, i) {
90
+ const o = i - t, s = e - n;
91
91
  let r = Math.atan(Math.abs(o) / Math.abs(s)) / 3.14 * 180;
92
92
  s < 0 && o > 0 && (r = 180 - r), s < 0 && o < 0 && (r = 180 + r), s > 0 && o < 0 && (r = 360 - r);
93
93
  const l = 15, c = 30, h = r + c, a = r - c;
@@ -102,130 +102,130 @@ function U() {
102
102
  return ((/* @__PURE__ */ new Date()).getTime().toString(16) + Math.random().toString(16).substr(2)).substr(2, 16);
103
103
  }
104
104
  const Ue = function() {
105
- const t = U();
105
+ const e = U();
106
106
  return {
107
107
  topic: this.newTopicName,
108
- id: t
108
+ id: e
109
109
  };
110
110
  };
111
- function Ge(t, e) {
111
+ function Ge(e, t) {
112
112
  let n = !0;
113
- for (; e.parent; ) {
114
- if (e.parent === t) {
113
+ for (; t.parent; ) {
114
+ if (t.parent === e) {
115
115
  n = !1;
116
116
  break;
117
117
  }
118
- e = e.parent;
118
+ t = t.parent;
119
119
  }
120
120
  return n;
121
121
  }
122
- const P = (t) => {
122
+ const P = (e) => {
123
123
  var i;
124
- const e = (i = t.parent) == null ? void 0 : i.children, n = e.indexOf(t);
125
- return { siblings: e, index: n };
124
+ const t = (i = e.parent) == null ? void 0 : i.children, n = t.indexOf(e);
125
+ return { siblings: t, index: n };
126
126
  };
127
- function Je(t) {
128
- const { siblings: e, index: n } = P(t), i = e[n];
129
- n === 0 ? (e[n] = e[e.length - 1], e[e.length - 1] = i) : (e[n] = e[n - 1], e[n - 1] = i);
127
+ function Je(e) {
128
+ const { siblings: t, index: n } = P(e), i = t[n];
129
+ n === 0 ? (t[n] = t[t.length - 1], t[t.length - 1] = i) : (t[n] = t[n - 1], t[n - 1] = i);
130
130
  }
131
- function Qe(t) {
132
- const { siblings: e, index: n } = P(t), i = e[n];
133
- n === e.length - 1 ? (e[n] = e[0], e[0] = i) : (e[n] = e[n + 1], e[n + 1] = i);
131
+ function Qe(e) {
132
+ const { siblings: t, index: n } = P(e), i = t[n];
133
+ n === t.length - 1 ? (t[n] = t[0], t[0] = i) : (t[n] = t[n + 1], t[n + 1] = i);
134
134
  }
135
- function ie(t) {
136
- const { siblings: e, index: n } = P(t);
137
- return e.splice(n, 1), e.length;
135
+ function oe(e) {
136
+ const { siblings: t, index: n } = P(e);
137
+ return t.splice(n, 1), t.length;
138
138
  }
139
- function Ze(t, e) {
140
- const { siblings: n, index: i } = P(t);
141
- n.splice(i + 1, 0, e);
142
- }
143
- function et(t, e) {
144
- const { siblings: n, index: i } = P(t);
145
- n.splice(i, 0, e);
146
- }
147
- function tt(t, e) {
148
- const { siblings: n, index: i } = P(t);
149
- n[i] = e, e.children = [t];
150
- }
151
- function nt(t, e) {
152
- ie(t), e.children ? e.children.push(t) : e.children = [t];
139
+ function Ze(e, t) {
140
+ const { siblings: n, index: i } = P(e);
141
+ n.splice(i + 1, 0, t);
153
142
  }
154
- function it(t, e) {
155
- ie(t);
143
+ function et(e, t) {
156
144
  const { siblings: n, index: i } = P(e);
157
145
  n.splice(i, 0, t);
158
146
  }
159
- function ot(t, e) {
160
- ie(t);
147
+ function tt(e, t) {
161
148
  const { siblings: n, index: i } = P(e);
162
- n.splice(i + 1, 0, t);
149
+ n[i] = t, t.children = [e];
150
+ }
151
+ function nt(e, t) {
152
+ oe(e), t.children ? t.children.push(e) : t.children = [e];
153
+ }
154
+ function it(e, t) {
155
+ oe(e);
156
+ const { siblings: n, index: i } = P(t);
157
+ n.splice(i, 0, e);
158
+ }
159
+ function ot(e, t) {
160
+ oe(e);
161
+ const { siblings: n, index: i } = P(t);
162
+ n.splice(i + 1, 0, e);
163
163
  }
164
- function De(t) {
164
+ function De(e) {
165
165
  return JSON.parse(
166
- JSON.stringify(t, (n, i) => {
166
+ JSON.stringify(e, (n, i) => {
167
167
  if (n !== "parent")
168
168
  return i;
169
169
  })
170
170
  );
171
171
  }
172
- const W = (t, e) => {
172
+ const W = (e, t) => {
173
173
  let n = 0, i = 0;
174
- for (; e && e !== t; )
175
- n += e.offsetLeft, i += e.offsetTop, e = e.offsetParent;
174
+ for (; t && t !== e; )
175
+ n += t.offsetLeft, i += t.offsetTop, t = t.offsetParent;
176
176
  return { offsetLeft: n, offsetTop: i };
177
- }, N = (t, e) => {
178
- for (const n in e)
179
- t.setAttribute(n, e[n]);
177
+ }, N = (e, t) => {
178
+ for (const n in t)
179
+ e.setAttribute(n, t[n]);
180
180
  }, D = {
181
181
  moved: !1,
182
182
  // diffrentiate click and move
183
183
  mousedown: !1,
184
184
  lastX: 0,
185
185
  lastY: 0,
186
- onMove(t, e) {
186
+ onMove(e, t) {
187
187
  if (this.mousedown) {
188
188
  if (this.moved = !0, !this.lastX) {
189
- this.lastX = t.pageX, this.lastY = t.pageY;
189
+ this.lastX = e.pageX, this.lastY = e.pageY;
190
190
  return;
191
191
  }
192
- const n = this.lastX - t.pageX, i = this.lastY - t.pageY;
193
- e.scrollTo(e.scrollLeft + n, e.scrollTop + i), this.lastX = t.pageX, this.lastY = t.pageY;
192
+ const n = this.lastX - e.pageX, i = this.lastY - e.pageY;
193
+ t.scrollTo(t.scrollLeft + n, t.scrollTop + i), this.lastX = e.pageX, this.lastY = e.pageY;
194
194
  }
195
195
  },
196
196
  clear() {
197
197
  this.moved = !1, this.mousedown = !1, this.lastX = 0, this.lastY = 0;
198
198
  }
199
- }, ue = (t) => t.tagName === "ME-TPC";
200
- function st(t) {
201
- t.map.addEventListener("click", (e) => {
199
+ }, fe = (e) => e.tagName === "ME-TPC";
200
+ function st(e) {
201
+ e.map.addEventListener("click", (t) => {
202
202
  if (D.moved) {
203
203
  D.clear();
204
204
  return;
205
205
  }
206
- t.unselectNode(), t.unselectNodes(), t.unselectSummary(), t.unselectLink();
207
- const n = e.target;
206
+ e.unselectNode(), e.unselectNodes(), e.unselectSummary(), e.unselectLink();
207
+ const n = t.target;
208
208
  if (n.tagName === "ME-EPD")
209
- t.expandNode(n.previousSibling);
210
- else if (t.editable)
211
- ue(n) ? t.selectNode(n, !1, e) : n.tagName === "text" ? n.dataset.type === "custom-link" ? t.selectLink(n.parentElement) : t.selectSummary(n.parentElement) : n.className === "circle" || t.hideLinkController && t.hideLinkController();
209
+ e.expandNode(n.previousSibling);
210
+ else if (e.editable)
211
+ fe(n) ? e.selectNode(n, !1, t) : n.tagName === "text" ? n.dataset.type === "custom-link" ? e.selectLink(n.parentElement) : e.selectSummary(n.parentElement) : n.className === "circle" || e.hideLinkController && e.hideLinkController();
212
212
  else
213
213
  return;
214
- }), t.map.addEventListener("dblclick", (e) => {
215
- if (e.preventDefault(), !t.editable)
214
+ }), e.map.addEventListener("dblclick", (t) => {
215
+ if (t.preventDefault(), !e.editable)
216
216
  return;
217
- const n = e.target;
218
- ue(n) ? t.beginEdit(n) : n.tagName === "text" && (n.dataset.type === "custom-link" ? t.editCutsomLinkLabel(n.parentElement) : t.editSummary(n.parentElement));
219
- }), t.map.addEventListener("mousemove", (e) => {
220
- e.target.contentEditable !== "true" && D.onMove(e, t.container);
221
- }), t.map.addEventListener("mousedown", (e) => {
222
- e.button === 2 && e.target.contentEditable !== "true" && (D.moved = !1, D.mousedown = !0);
223
- }), t.map.addEventListener("mouseleave", (e) => {
224
- console.log(e.button), e.button === 2 && D.clear();
225
- }), t.map.addEventListener("mouseup", (e) => {
226
- e.button === 2 && D.clear();
227
- }), t.map.addEventListener("contextmenu", (e) => {
228
- e.preventDefault();
217
+ const n = t.target;
218
+ fe(n) ? e.beginEdit(n) : n.tagName === "text" && (n.dataset.type === "custom-link" ? e.editCutsomLinkLabel(n.parentElement) : e.editSummary(n.parentElement));
219
+ }), e.map.addEventListener("mousemove", (t) => {
220
+ t.target.contentEditable !== "true" && D.onMove(t, e.container);
221
+ }), e.map.addEventListener("mousedown", (t) => {
222
+ t.button === 2 && t.target.contentEditable !== "true" && (D.moved = !1, D.mousedown = !0);
223
+ }), e.map.addEventListener("mouseleave", (t) => {
224
+ console.log(t.button), t.button === 2 && D.clear();
225
+ }), e.map.addEventListener("mouseup", (t) => {
226
+ t.button === 2 && D.clear();
227
+ }), e.map.addEventListener("contextmenu", (t) => {
228
+ t.preventDefault();
229
229
  });
230
230
  }
231
231
  const rt = {
@@ -235,34 +235,34 @@ const rt = {
235
235
  showHandler: function() {
236
236
  console.log(this.handlers);
237
237
  },
238
- addListener: function(t, e) {
239
- this.handlers[t] === void 0 && (this.handlers[t] = []), this.handlers[t].push(e);
238
+ addListener: function(e, t) {
239
+ this.handlers[e] === void 0 && (this.handlers[e] = []), this.handlers[e].push(t);
240
240
  },
241
- fire: function(t, ...e) {
242
- if (this.handlers[t] instanceof Array) {
243
- const n = this.handlers[t];
241
+ fire: function(e, ...t) {
242
+ if (this.handlers[e] instanceof Array) {
243
+ const n = this.handlers[e];
244
244
  for (let i = 0; i < n.length; i++)
245
- n[i](...e);
245
+ n[i](...t);
246
246
  }
247
247
  },
248
- removeListener: function(t, e) {
249
- if (!this.handlers[t])
248
+ removeListener: function(e, t) {
249
+ if (!this.handlers[e])
250
250
  return;
251
- const n = this.handlers[t];
252
- if (!e)
251
+ const n = this.handlers[e];
252
+ if (!t)
253
253
  n.length = 0;
254
254
  else if (n.length)
255
255
  for (let i = 0; i < n.length; i++)
256
- n[i] === e && this.handlers[t].splice(i, 1);
256
+ n[i] === t && this.handlers[e].splice(i, 1);
257
257
  }
258
258
  };
259
259
  }
260
- }, te = document, lt = function() {
260
+ }, ne = document, lt = function() {
261
261
  console.time("layout"), this.nodes.innerHTML = "";
262
- const t = this.createTopic(this.nodeData);
263
- ae(t, this.nodeData), t.draggable = !1;
264
- const e = te.createElement("me-root");
265
- e.appendChild(t);
262
+ const e = this.createTopic(this.nodeData);
263
+ de(e, this.nodeData), e.draggable = !1;
264
+ const t = ne.createElement("me-root");
265
+ t.appendChild(e);
266
266
  const n = this.nodeData.children || [];
267
267
  if (this.direction === K) {
268
268
  let i = 0, o = 0;
@@ -270,115 +270,126 @@ const rt = {
270
270
  s.direction === S ? i += 1 : s.direction === H ? o += 1 : i <= o ? (s.direction = S, i += 1) : (s.direction = H, o += 1);
271
271
  });
272
272
  }
273
- ct(this, n, e), console.timeEnd("layout");
274
- }, ct = function(t, e, n) {
275
- const i = te.createElement("me-main");
273
+ ct(this, n, t), console.timeEnd("layout");
274
+ }, ct = function(e, t, n) {
275
+ const i = ne.createElement("me-main");
276
276
  i.className = "lhs";
277
- const o = te.createElement("me-main");
277
+ const o = ne.createElement("me-main");
278
278
  o.className = "rhs";
279
- for (let s = 0; s < e.length; s++) {
280
- const r = e[s], { grp: l } = t.createWrapper(r);
281
- t.direction === K ? r.direction === S ? i.appendChild(l) : o.appendChild(l) : t.direction === S ? i.appendChild(l) : o.appendChild(l);
282
- }
283
- t.nodes.appendChild(i), t.nodes.appendChild(n), t.nodes.appendChild(o), t.nodes.appendChild(t.lines);
284
- }, at = function(t, e) {
285
- const n = te.createElement("me-children");
286
- for (let i = 0; i < e.length; i++) {
287
- const o = e[i], { grp: s } = t.createWrapper(o);
279
+ for (let s = 0; s < t.length; s++) {
280
+ const r = t[s], { grp: l } = e.createWrapper(r);
281
+ e.direction === K ? r.direction === S ? i.appendChild(l) : o.appendChild(l) : e.direction === S ? i.appendChild(l) : o.appendChild(l);
282
+ }
283
+ e.nodes.appendChild(i), e.nodes.appendChild(n), e.nodes.appendChild(o), e.nodes.appendChild(e.lines);
284
+ }, at = function(e, t) {
285
+ const n = ne.createElement("me-children");
286
+ for (let i = 0; i < t.length; i++) {
287
+ const o = t[i], { grp: s } = e.createWrapper(o);
288
288
  n.appendChild(s);
289
289
  }
290
290
  return n;
291
- }, k = document, E = (t, e) => (e ? e.mindElixirBox : k).querySelector(`[data-nodeid=me${t}]`), ae = function(t, e) {
292
- if (t.textContent = e.topic, e.style && (t.style.color = e.style.color || "", t.style.background = e.style.background || "", t.style.fontSize = e.style.fontSize + "px", t.style.fontWeight = e.style.fontWeight || "normal"), e.image) {
293
- const n = e.image;
291
+ }, k = document, E = (e, t) => {
292
+ const i = (t ? t.mindElixirBox : k).querySelector(`[data-nodeid=me${e}]`);
293
+ if (!i)
294
+ throw new Error(`FindEle: Node ${e} not found, maybe it's collapsed.`);
295
+ return i;
296
+ }, de = function(e, t) {
297
+ if (t.style && (e.style.color = t.style.color || "", e.style.background = t.style.background || "", e.style.fontSize = t.style.fontSize + "px", e.style.fontWeight = t.style.fontWeight || "normal"), t.branchColor && (e.style.borderColor = t.branchColor), t.image) {
298
+ const n = t.image;
294
299
  if (n.url && n.width && n.height) {
295
300
  const i = k.createElement("img");
296
- i.src = n.url, i.style.width = n.width + "px", i.style.height = n.height + "px", t.appendChild(i), t.image = i;
301
+ i.src = n.url, i.style.width = n.width + "px", i.style.height = n.height + "px", e.appendChild(i), e.image = i;
297
302
  } else
298
303
  console.warn("image url/width/height are required");
304
+ } else
305
+ e.image && (e.image = void 0);
306
+ {
307
+ const n = k.createElement("span");
308
+ n.className = "text", n.textContent = t.topic, e.appendChild(n), e.text = n;
299
309
  }
300
- if (e.hyperLink) {
310
+ if (t.hyperLink) {
301
311
  const n = k.createElement("a");
302
- n.className = "hyper-link", n.target = "_blank", n.innerText = "🔗", n.href = e.hyperLink, t.appendChild(n), t.linkContainer = n;
312
+ n.className = "hyper-link", n.target = "_blank", n.innerText = "🔗", n.href = t.hyperLink, e.appendChild(n), e.linkContainer = n;
303
313
  } else
304
- t.linkContainer && (t.linkContainer.remove(), t.linkContainer = null);
305
- if (e.icons && e.icons.length) {
314
+ e.linkContainer && (e.linkContainer = void 0);
315
+ if (t.icons && t.icons.length) {
306
316
  const n = k.createElement("span");
307
- n.className = "icons", n.innerHTML = e.icons.map((i) => `<span>${ee(i)}</span>`).join(""), t.appendChild(n), t.icons = n;
308
- }
309
- if (e.tags && e.tags.length) {
317
+ n.className = "icons", n.innerHTML = t.icons.map((i) => `<span>${ee(i)}</span>`).join(""), e.appendChild(n), e.icons = n;
318
+ } else
319
+ e.icons && (e.icons = void 0);
320
+ if (t.tags && t.tags.length) {
310
321
  const n = k.createElement("div");
311
- n.className = "tags", n.innerHTML = e.tags.map((i) => `<span>${ee(i)}</span>`).join(""), t.appendChild(n), t.tags = n;
312
- }
313
- e.branchColor && (t.style.borderColor = e.branchColor);
314
- }, dt = function(t, e) {
315
- const n = k.createElement("me-wrapper"), { p: i, tpc: o } = this.createParent(t);
316
- if (n.appendChild(i), !e && t.children && t.children.length > 0) {
317
- const s = oe(t.expanded);
318
- if (i.appendChild(s), t.expanded !== !1) {
319
- const r = at(this, t.children);
322
+ n.className = "tags", n.innerHTML = t.tags.map((i) => `<span>${ee(i)}</span>`).join(""), e.appendChild(n), e.tags = n;
323
+ } else
324
+ e.tags && (e.tags = void 0);
325
+ }, dt = function(e, t) {
326
+ const n = k.createElement("me-wrapper"), { p: i, tpc: o } = this.createParent(e);
327
+ if (n.appendChild(i), !t && e.children && e.children.length > 0) {
328
+ const s = se(e.expanded);
329
+ if (i.appendChild(s), e.expanded !== !1) {
330
+ const r = at(this, e.children);
320
331
  n.appendChild(r);
321
332
  }
322
333
  }
323
334
  return { grp: n, top: i, tpc: o };
324
- }, ht = function(t) {
325
- const e = k.createElement("me-parent"), n = this.createTopic(t);
326
- return ae(n, t), e.appendChild(n), { p: e, tpc: n };
327
- }, ut = function(t) {
328
- const e = k.createElement("me-children");
329
- return e.append(...t), e;
330
- }, ft = function(t) {
331
- const e = k.createElement("me-tpc");
332
- return e.nodeObj = t, e.dataset.nodeid = "me" + t.id, e.draggable = this.draggable, e;
335
+ }, ht = function(e) {
336
+ const t = k.createElement("me-parent"), n = this.createTopic(e);
337
+ return de(n, e), t.appendChild(n), { p: t, tpc: n };
338
+ }, ut = function(e) {
339
+ const t = k.createElement("me-children");
340
+ return t.append(...e), t;
341
+ }, ft = function(e) {
342
+ const t = k.createElement("me-tpc");
343
+ return t.nodeObj = e, t.dataset.nodeid = "me" + e.id, t.draggable = this.draggable, t;
333
344
  };
334
- function Oe(t) {
335
- const e = k.createRange();
336
- e.selectNodeContents(t);
345
+ function Oe(e) {
346
+ const t = k.createRange();
347
+ t.selectNodeContents(e);
337
348
  const n = window.getSelection();
338
- n && (n.removeAllRanges(), n.addRange(e));
349
+ n && (n.removeAllRanges(), n.addRange(t));
339
350
  }
340
- const pt = function(t) {
341
- if (console.time("editTopic"), !t)
351
+ const pt = function(e) {
352
+ if (console.time("editTopic"), !e)
342
353
  return;
343
- const e = k.createElement("div"), n = t.childNodes[0].textContent;
344
- t.appendChild(e), e.id = "input-box", e.textContent = n, e.contentEditable = "true", e.spellcheck = !1, e.style.cssText = `min-width:${t.offsetWidth - 8}px;`, this.direction === S && (e.style.right = "0"), e.focus(), Oe(e), this.bus.fire("operation", {
354
+ const t = k.createElement("div"), n = e.text.textContent;
355
+ 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 === S && (t.style.right = "0"), t.focus(), Oe(t), this.bus.fire("operation", {
345
356
  name: "beginEdit",
346
- obj: t.nodeObj
347
- }), e.addEventListener("keydown", (i) => {
357
+ obj: e.nodeObj
358
+ }), t.addEventListener("keydown", (i) => {
348
359
  i.stopPropagation();
349
360
  const o = i.key;
350
361
  if (o === "Enter" || o === "Tab") {
351
362
  if (i.shiftKey)
352
363
  return;
353
- i.preventDefault(), e == null || e.blur(), this.map.focus();
364
+ i.preventDefault(), t == null || t.blur(), this.map.focus();
354
365
  }
355
- }), e.addEventListener("blur", () => {
366
+ }), t.addEventListener("blur", () => {
356
367
  var s;
357
- if (!e)
368
+ if (!t)
358
369
  return;
359
- const i = t.nodeObj, o = ((s = e.textContent) == null ? void 0 : s.trim()) || "";
360
- console.log(o), o === "" ? i.topic = n : i.topic = o, e.remove(), o !== n && (t.childNodes[0].textContent = i.topic, this.linkDiv(), this.bus.fire("operation", {
370
+ const i = e.nodeObj, o = ((s = t.textContent) == null ? void 0 : s.trim()) || "";
371
+ console.log(o), o === "" ? i.topic = n : i.topic = o, t.remove(), o !== n && (e.text.textContent = i.topic, this.linkDiv(), this.bus.fire("operation", {
361
372
  name: "finishEdit",
362
373
  obj: i,
363
374
  origin: n
364
375
  }));
365
376
  }), console.timeEnd("editTopic");
366
- }, oe = function(t) {
367
- const e = k.createElement("me-epd");
368
- return e.expanded = t !== !1, e.className = t !== !1 ? "minus" : "", e;
369
- }, z = document, R = "http://www.w3.org/2000/svg", mt = function(t, e) {
377
+ }, se = function(e) {
378
+ const t = k.createElement("me-epd");
379
+ return t.expanded = e !== !1, t.className = e !== !1 ? "minus" : "", t;
380
+ }, z = document, R = "http://www.w3.org/2000/svg", mt = function(e, t) {
370
381
  const n = z.createElementNS(R, "path");
371
- return n.setAttribute("d", t), n.setAttribute("stroke", e || "#666"), n.setAttribute("fill", "none"), n.setAttribute("stroke-width", "3"), n;
372
- }, X = function(t) {
373
- const e = z.createElementNS(R, "svg");
374
- return e.setAttribute("class", t), e.setAttribute("overflow", "visible"), e;
375
- }, fe = function() {
376
- const t = z.createElementNS(R, "line");
377
- return t.setAttribute("stroke", "#bbb"), t.setAttribute("fill", "none"), t.setAttribute("stroke-width", "2"), t;
378
- }, gt = function(t, e) {
382
+ return n.setAttribute("d", e), n.setAttribute("stroke", t || "#666"), n.setAttribute("fill", "none"), n.setAttribute("stroke-width", "3"), n;
383
+ }, X = function(e) {
384
+ const t = z.createElementNS(R, "svg");
385
+ return t.setAttribute("class", e), t.setAttribute("overflow", "visible"), t;
386
+ }, pe = function() {
387
+ const e = z.createElementNS(R, "line");
388
+ return e.setAttribute("stroke", "#bbb"), e.setAttribute("fill", "none"), e.setAttribute("stroke-width", "2"), e;
389
+ }, gt = function(e, t) {
379
390
  const n = z.createElementNS(R, "path");
380
- return n.setAttribute("d", t), n.setAttribute("stroke", e || "#555"), n.setAttribute("fill", "none"), n.setAttribute("stroke-linecap", "square"), n.setAttribute("stroke-width", "2"), n;
381
- }, vt = function(t, e) {
391
+ return n.setAttribute("d", e), n.setAttribute("stroke", t || "#555"), n.setAttribute("fill", "none"), n.setAttribute("stroke-linecap", "square"), n.setAttribute("stroke-width", "2"), n;
392
+ }, vt = function(e, t) {
382
393
  const n = {
383
394
  stroke: "rgb(235, 95, 82)",
384
395
  fill: "none",
@@ -386,60 +397,60 @@ const pt = function(t) {
386
397
  "stroke-width": "2"
387
398
  }, i = z.createElementNS(R, "g"), o = z.createElementNS(R, "path"), s = z.createElementNS(R, "path");
388
399
  return N(s, {
389
- d: e,
400
+ d: t,
390
401
  ...n
391
402
  }), N(o, {
392
- d: t,
403
+ d: e,
393
404
  ...n,
394
405
  "stroke-dasharray": "8,2"
395
406
  }), i.appendChild(o), i.appendChild(s), i;
396
- }, Ae = function(t, e, n) {
397
- if (console.time("editSummary"), !e)
407
+ }, Ae = function(e, t, n) {
408
+ if (console.time("editSummary"), !t)
398
409
  return;
399
410
  const i = document.createElement("div");
400
- t.nodes.appendChild(i);
401
- const o = e.innerHTML;
411
+ e.nodes.appendChild(i);
412
+ const o = t.innerHTML;
402
413
  i.id = "input-box", i.textContent = o, i.contentEditable = "true", i.spellcheck = !1;
403
- const s = e.getAttribute("x") + "px", r = e.getAttribute("y") + "px";
414
+ const s = t.getAttribute("x") + "px", r = t.getAttribute("y") + "px";
404
415
  i.style.cssText = `min-width:${100 - 8}px;position:absolute;left:${s};top:${r};`;
405
- const l = e.getAttribute("text-anchor");
416
+ const l = t.getAttribute("text-anchor");
406
417
  l === "end" ? i.style.cssText += "transform: translate(-100%, -100%);" : l === "middle" ? i.style.cssText += "transform: translate(-50%, -100%);" : i.style.cssText += "transform: translate(0, -100%);", i.focus(), Oe(i), i.addEventListener("keydown", (c) => {
407
418
  c.stopPropagation();
408
419
  const h = c.key;
409
420
  if (h === "Enter" || h === "Tab") {
410
421
  if (c.shiftKey)
411
422
  return;
412
- c.preventDefault(), i.blur(), t.map.focus();
423
+ c.preventDefault(), i.blur(), e.map.focus();
413
424
  }
414
425
  }), i.addEventListener("blur", () => {
415
426
  i && n(i);
416
427
  }), console.timeEnd("editSummary");
417
428
  };
418
429
  let Pe = He;
419
- const bt = function(t) {
430
+ const bt = function(e) {
420
431
  console.time("linkDiv");
421
- const e = this.map.querySelector("me-root");
422
- this.nodes.style.top = `${1e4 - this.nodes.offsetHeight / 2}px`, this.nodes.style.left = `${1e4 - e.offsetLeft - e.offsetWidth / 2}px`;
432
+ const t = this.map.querySelector("me-root");
433
+ this.nodes.style.top = `${1e4 - this.nodes.offsetHeight / 2}px`, this.nodes.style.left = `${1e4 - t.offsetLeft - t.offsetWidth / 2}px`;
423
434
  const n = this.map.querySelectorAll("me-main > me-wrapper");
424
435
  this.lines.innerHTML = "", Pe = this.subLinkStyle === 2 ? wt : He;
425
436
  for (let i = 0; i < n.length; i++) {
426
437
  const o = n[i], s = o.querySelector("me-tpc"), r = o.firstChild, l = o.parentNode.className;
427
- let c = e.offsetLeft + e.offsetWidth / 2;
428
- const h = e.offsetTop + e.offsetHeight / 2;
438
+ let c = t.offsetLeft + t.offsetWidth / 2;
439
+ const h = t.offsetTop + t.offsetHeight / 2;
429
440
  let a;
430
441
  const u = this.theme.palette, d = s.nodeObj.branchColor || u[i % u.length], { offsetLeft: p, offsetTop: g } = W(this.nodes, r);
431
442
  l === "lhs" ? a = p + r.offsetWidth : a = p;
432
443
  const m = g + r.offsetHeight / 2;
433
444
  let f = "";
434
445
  if (this.mainLinkStyle === 2)
435
- this.direction === K && (l === "lhs" ? c = c - e.offsetWidth / 6 : c = c + e.offsetWidth / 6), f = yt({ x1: c, y1: h, x2: a, y2: m });
446
+ this.direction === K && (l === "lhs" ? c = c - t.offsetWidth / 6 : c = c + t.offsetWidth / 6), f = yt({ x1: c, y1: h, x2: a, y2: m });
436
447
  else {
437
- const b = (1 - Math.abs(m - o.parentElement.offsetTop - o.parentElement.offsetHeight / 2) / o.parentElement.offsetHeight) * 0.25 * (e.offsetWidth / 2);
438
- l === "lhs" ? c = c - e.offsetWidth / 10 - b : c = c + e.offsetWidth / 10 + b, f = xt({ x1: c, y1: h, x2: a, y2: m });
448
+ const b = (1 - Math.abs(m - o.parentElement.offsetTop - o.parentElement.offsetHeight / 2) / o.parentElement.offsetHeight) * 0.25 * (t.offsetWidth / 2);
449
+ l === "lhs" ? c = c - t.offsetWidth / 10 - b : c = c + t.offsetWidth / 10 + b, f = xt({ x1: c, y1: h, x2: a, y2: m });
439
450
  }
440
451
  this.lines.appendChild(mt(f, d));
441
452
  const v = o.children[0].children[1];
442
- if (v && (v.style.top = (v.parentNode.offsetHeight - v.offsetHeight) / 2 + "px", l === "lhs" ? v.style.left = "-10px" : v.style.right = "-10px"), !(t && t !== o) && o.childElementCount) {
453
+ if (v && (v.style.top = (v.parentNode.offsetHeight - v.offsetHeight) / 2 + "px", l === "lhs" ? v.style.left = "-10px" : v.style.right = "-10px"), !(e && e !== o) && o.childElementCount) {
443
454
  const x = X("subLines"), b = o.lastChild;
444
455
  b.tagName === "svg" && b.remove(), o.appendChild(x);
445
456
  const y = o.firstChild, C = o.children[1].children, _ = je(C, y, l, !0);
@@ -447,11 +458,11 @@ const bt = function(t) {
447
458
  }
448
459
  }
449
460
  this.renderCustomLink(), this.renderSummary(), console.timeEnd("linkDiv");
450
- }, je = function(t, e, n, i) {
461
+ }, je = function(e, t, n, i) {
451
462
  let o = "";
452
- const s = e.offsetTop, r = e.offsetLeft, l = e.offsetWidth, c = e.offsetHeight;
453
- for (let h = 0; h < t.length; h++) {
454
- const a = t[h], u = a.firstChild, d = u.offsetTop, p = u.offsetLeft, g = u.offsetWidth, m = u.offsetHeight;
463
+ const s = t.offsetTop, r = t.offsetLeft, l = t.offsetWidth, c = t.offsetHeight;
464
+ for (let h = 0; h < e.length; h++) {
465
+ const a = e[h], u = a.firstChild, d = u.offsetTop, p = u.offsetLeft, g = u.offsetWidth, m = u.offsetHeight;
455
466
  o += Pe({ pT: s, pL: r, pW: l, pH: c, cT: d, cL: p, cW: g, cH: m, direction: n, isFirst: i });
456
467
  const f = u.children[1];
457
468
  if (f) {
@@ -464,28 +475,28 @@ const bt = function(t) {
464
475
  }
465
476
  return o;
466
477
  };
467
- function yt({ x1: t, y1: e, x2: n, y2: i }) {
468
- return `M ${t} ${e} V ${i > e ? i - 20 : i + 20} C ${t} ${i} ${t} ${i} ${n > t ? t + 20 : t - 20} ${i} H ${n}`;
478
+ function yt({ x1: e, y1: t, x2: n, y2: i }) {
479
+ return `M ${e} ${t} V ${i > t ? i - 20 : i + 20} C ${e} ${i} ${e} ${i} ${n > e ? e + 20 : e - 20} ${i} H ${n}`;
469
480
  }
470
- function xt({ x1: t, y1: e, x2: n, y2: i }) {
471
- return `M ${t} ${e} Q ${t} ${i} ${n} ${i}`;
481
+ function xt({ x1: e, y1: t, x2: n, y2: i }) {
482
+ return `M ${e} ${t} Q ${e} ${i} ${n} ${i}`;
472
483
  }
473
- function wt({ pT: t, pL: e, pW: n, pH: i, cT: o, cL: s, cW: r, cH: l, direction: c, isFirst: h }) {
484
+ function wt({ pT: e, pL: t, pW: n, pH: i, cT: o, cL: s, cW: r, cH: l, direction: c, isFirst: h }) {
474
485
  let a;
475
- h ? a = t + i / 2 : a = t + i;
486
+ h ? a = e + i / 2 : a = e + i;
476
487
  const u = o + l;
477
488
  let d = 0, p = 0, g = 0;
478
- return c === "lhs" ? (d = e + M, p = s, g = s + r) : c === "rhs" && (d = e + n - M, p = s + r, g = s), u < a + 50 && u > a - 50 ? `M ${d} ${a} H ${g} V ${u} H ${p}` : u >= a ? `M ${d} ${a} H ${g} V ${u - L} A ${L} ${L} 0 0 ${d > p ? 1 : 0} ${d > p ? g - L : g + L} ${u} H ${p}` : `M ${d} ${a} H ${g} V ${u + L} A ${L} ${L} 0 0 ${d > p ? 0 : 1} ${d > p ? g - L : g + L} ${u} H ${p}`;
489
+ return c === "lhs" ? (d = t + M, p = s, g = s + r) : c === "rhs" && (d = t + n - M, p = s + r, g = s), u < a + 50 && u > a - 50 ? `M ${d} ${a} H ${g} V ${u} H ${p}` : u >= a ? `M ${d} ${a} H ${g} V ${u - L} A ${L} ${L} 0 0 ${d > p ? 1 : 0} ${d > p ? g - L : g + L} ${u} H ${p}` : `M ${d} ${a} H ${g} V ${u + L} A ${L} ${L} 0 0 ${d > p ? 0 : 1} ${d > p ? g - L : g + L} ${u} H ${p}`;
479
490
  }
480
- function He({ pT: t, pL: e, pW: n, pH: i, cT: o, cL: s, cW: r, cH: l, direction: c, isFirst: h }) {
491
+ function He({ pT: e, pL: t, pW: n, pH: i, cT: o, cL: s, cW: r, cH: l, direction: c, isFirst: h }) {
481
492
  let a = 0, u = 0;
482
- h ? a = t + i / 2 : a = t + i;
493
+ h ? a = e + i / 2 : a = e + i;
483
494
  const d = o + l;
484
495
  let p = 0, g = 0, m = 0;
485
496
  const f = Math.min(Math.abs(a - d) / 800, 1.2) * M;
486
- return c === "lhs" ? (m = e, p = m + M, g = m - M, u = s + M, `M ${p} ${a} C ${m} ${a} ${m + f} ${d} ${g} ${d} H ${u}`) : (m = e + n, p = m - M, g = m + M, u = s + r - M, `M ${p} ${a} C ${m} ${a} ${m - f} ${d} ${g} ${d} H ${u}`);
497
+ return c === "lhs" ? (m = t, p = m + M, g = m - M, u = s + M, `M ${p} ${a} C ${m} ${a} ${m + f} ${d} ${g} ${d} H ${u}`) : (m = t + n, p = m - M, g = m + M, u = s + r - M, `M ${p} ${a} C ${m} ${a} ${m - f} ${d} ${g} ${d} H ${u}`);
487
498
  }
488
- const pe = {
499
+ const me = {
489
500
  addChild: "插入子节点",
490
501
  addParent: "插入父节点",
491
502
  addSibling: "插入同级节点",
@@ -497,9 +508,9 @@ const pe = {
497
508
  link: "连接",
498
509
  clickTips: "请点击目标节点",
499
510
  summary: "摘要"
500
- }, me = {
501
- cn: pe,
502
- zh_CN: pe,
511
+ }, ge = {
512
+ cn: me,
513
+ zh_CN: me,
503
514
  zh_TW: {
504
515
  addChild: "插入子節點",
505
516
  addParent: "插入父節點",
@@ -566,268 +577,272 @@ const pe = {
566
577
  summary: "Resumo"
567
578
  }
568
579
  };
569
- function Et(t, e) {
580
+ function Et(e, t) {
570
581
  const n = (b) => {
571
582
  const y = document.createElement("div");
572
583
  return y.innerText = b, y.className = "tips", y;
573
584
  }, i = (b, y, C) => {
574
585
  const _ = document.createElement("li");
575
586
  return _.id = b, _.innerHTML = `<span>${ee(y)}</span><span>${ee(C)}</span>`, _;
576
- }, o = me[t.locale] ? t.locale : "en", s = me[o], r = i("cm-add_child", s.addChild, "tab"), l = i("cm-add_parent", s.addParent, ""), c = i("cm-add_sibling", s.addSibling, "enter"), h = i("cm-remove_child", s.removeNode, "delete"), a = i("cm-fucus", s.focus, ""), u = i("cm-unfucus", s.cancelFocus, ""), d = i("cm-up", s.moveUp, "PgUp"), p = i("cm-down", s.moveDown, "Pgdn"), g = i("cm-down", s.link, ""), m = i("cm-down", s.summary, ""), f = document.createElement("ul");
577
- if (f.className = "menu-list", f.appendChild(r), f.appendChild(l), f.appendChild(c), f.appendChild(h), (!e || e.focus) && (f.appendChild(a), f.appendChild(u)), f.appendChild(d), f.appendChild(p), f.appendChild(m), (!e || e.link) && f.appendChild(g), e && e.extend)
578
- for (let b = 0; b < e.extend.length; b++) {
579
- const y = e.extend[b], C = i(y.name, y.name, y.key || "");
587
+ }, o = ge[e.locale] ? e.locale : "en", s = ge[o], r = i("cm-add_child", s.addChild, "tab"), l = i("cm-add_parent", s.addParent, ""), c = i("cm-add_sibling", s.addSibling, "enter"), h = i("cm-remove_child", s.removeNode, "delete"), a = i("cm-fucus", s.focus, ""), u = i("cm-unfucus", s.cancelFocus, ""), d = i("cm-up", s.moveUp, "PgUp"), p = i("cm-down", s.moveDown, "Pgdn"), g = i("cm-down", s.link, ""), m = i("cm-down", s.summary, ""), f = document.createElement("ul");
588
+ 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(p), f.appendChild(m), (!t || t.link) && f.appendChild(g), t && t.extend)
589
+ for (let b = 0; b < t.extend.length; b++) {
590
+ const y = t.extend[b], C = i(y.name, y.name, y.key || "");
580
591
  f.appendChild(C), C.onclick = (_) => {
581
592
  y.onclick(_);
582
593
  };
583
594
  }
584
595
  const v = document.createElement("div");
585
- v.className = "context-menu", v.appendChild(f), v.hidden = !0, t.container.append(v);
596
+ v.className = "context-menu", v.appendChild(f), v.hidden = !0, e.container.append(v);
586
597
  let x = !0;
587
- t.container.oncontextmenu = function(b) {
588
- if (b.preventDefault(), !t.editable)
598
+ e.container.oncontextmenu = function(b) {
599
+ if (b.preventDefault(), !e.editable)
589
600
  return;
590
601
  const y = b.target;
591
602
  if (y.tagName === "ME-TPC") {
592
- y.parentElement.tagName === "ME-ROOT" ? x = !0 : x = !1, x ? (a.className = "disabled", d.className = "disabled", p.className = "disabled", l.className = "disabled", c.className = "disabled", h.className = "disabled") : (a.className = "", d.className = "", p.className = "", l.className = "", c.className = "", h.className = ""), t.currentNodes || t.selectNode(y), v.hidden = !1;
603
+ y.parentElement.tagName === "ME-ROOT" ? x = !0 : x = !1, x ? (a.className = "disabled", d.className = "disabled", p.className = "disabled", l.className = "disabled", c.className = "disabled", h.className = "disabled") : (a.className = "", d.className = "", p.className = "", l.className = "", c.className = "", h.className = ""), e.currentNodes || e.selectNode(y), v.hidden = !1;
593
604
  const C = f.offsetHeight, _ = f.offsetWidth;
594
605
  C + b.clientY > window.innerHeight ? (f.style.top = "", f.style.bottom = "0px") : (f.style.bottom = "", f.style.top = b.clientY + 15 + "px"), _ + b.clientX > window.innerWidth ? (f.style.left = "", f.style.right = "0px") : (f.style.right = "", f.style.left = b.clientX + 10 + "px");
595
606
  }
596
607
  }, v.onclick = (b) => {
597
608
  b.target === v && (v.hidden = !0);
598
609
  }, r.onclick = () => {
599
- t.addChild(), v.hidden = !0;
610
+ e.addChild(), v.hidden = !0;
600
611
  }, l.onclick = () => {
601
- t.insertParent(), v.hidden = !0;
612
+ e.insertParent(), v.hidden = !0;
602
613
  }, c.onclick = () => {
603
- x || (t.insertSibling(), v.hidden = !0);
614
+ x || (e.insertSibling(), v.hidden = !0);
604
615
  }, h.onclick = () => {
605
- x || (t.removeNode(), v.hidden = !0);
616
+ x || (e.removeNode(), v.hidden = !0);
606
617
  }, a.onclick = () => {
607
- x || (t.focusNode(t.currentNode), v.hidden = !0);
618
+ x || (e.focusNode(e.currentNode), v.hidden = !0);
608
619
  }, u.onclick = () => {
609
- t.cancelFocus(), v.hidden = !0;
620
+ e.cancelFocus(), v.hidden = !0;
610
621
  }, d.onclick = () => {
611
- x || (t.moveUpNode(), v.hidden = !0);
622
+ x || (e.moveUpNode(), v.hidden = !0);
612
623
  }, p.onclick = () => {
613
- x || (t.moveDownNode(), v.hidden = !0);
624
+ x || (e.moveDownNode(), v.hidden = !0);
614
625
  }, g.onclick = () => {
615
626
  v.hidden = !0;
616
- const b = t.currentNode, y = n(s.clickTips);
617
- t.container.appendChild(y), t.map.addEventListener(
627
+ const b = e.currentNode, y = n(s.clickTips);
628
+ e.container.appendChild(y), e.map.addEventListener(
618
629
  "click",
619
630
  (C) => {
620
631
  C.preventDefault(), y.remove();
621
632
  const _ = C.target;
622
- _.parentElement.tagName === "ME-PARENT" || _.parentElement.tagName === "ME-ROOT" ? t.createLink(b, _) : console.log("link cancel");
633
+ _.parentElement.tagName === "ME-PARENT" || _.parentElement.tagName === "ME-ROOT" ? e.createLink(b, _) : console.log("link cancel");
623
634
  },
624
635
  {
625
636
  once: !0
626
637
  }
627
638
  );
628
639
  }, m.onclick = () => {
629
- v.hidden = !0, t.createSummary(), t.unselectNodes();
640
+ v.hidden = !0, e.createSummary(), e.unselectNodes();
630
641
  };
631
642
  }
632
- const Nt = (t) => {
633
- const e = t.map.querySelectorAll(".lhs>me-wrapper>me-parent>me-tpc");
634
- t.selectNode(e[Math.ceil(e.length / 2) - 1]);
635
- }, Ct = (t) => {
636
- const e = t.map.querySelectorAll(".rhs>me-wrapper>me-parent>me-tpc");
637
- t.selectNode(e[Math.ceil(e.length / 2) - 1]);
638
- }, ge = (t) => {
639
- t.selectNode(t.map.querySelector("me-root>me-tpc"));
643
+ const Nt = (e) => {
644
+ const t = e.map.querySelectorAll(".lhs>me-wrapper>me-parent>me-tpc");
645
+ e.selectNode(t[Math.ceil(t.length / 2) - 1]);
646
+ }, Ct = (e) => {
647
+ const t = e.map.querySelectorAll(".rhs>me-wrapper>me-parent>me-tpc");
648
+ e.selectNode(t[Math.ceil(t.length / 2) - 1]);
649
+ }, ve = (e) => {
650
+ e.selectNode(e.map.querySelector("me-root>me-tpc"));
640
651
  };
641
- function _t(t) {
642
- const e = {
643
- 13: () => {
644
- t.insertSibling();
652
+ function _t(e) {
653
+ const t = {
654
+ 13: (n) => {
655
+ n.shiftKey ? e.insertBefore() : e.insertSibling();
645
656
  },
646
657
  9: () => {
647
- t.addChild();
658
+ e.addChild();
648
659
  },
649
660
  112: () => {
650
- t.toCenter();
661
+ e.toCenter();
651
662
  },
652
663
  113: () => {
653
- t.beginEdit();
664
+ e.beginEdit();
654
665
  },
655
666
  38: (n) => {
656
- if (n.metaKey || n.ctrlKey)
657
- return t.initSide();
658
- t.selectPrevSibling();
667
+ if (n.altKey)
668
+ e.moveUpNode();
669
+ else {
670
+ if (n.metaKey || n.ctrlKey)
671
+ return e.initSide();
672
+ e.selectPrevSibling();
673
+ }
659
674
  },
660
- 40: () => {
661
- t.selectNextSibling();
675
+ 40: (n) => {
676
+ n.altKey ? e.moveDownNode() : e.selectNextSibling();
662
677
  },
663
678
  37: (n) => {
664
679
  var s;
665
680
  if (n.metaKey || n.ctrlKey)
666
- return t.initLeft();
667
- if (!t.currentNode)
681
+ return e.initLeft();
682
+ if (!e.currentNode)
668
683
  return;
669
- const i = t.currentNode.nodeObj, o = t.currentNode.offsetParent.offsetParent.parentElement;
670
- t.currentNode.nodeObj.root ? Nt(t) : o.className === "rhs" ? (s = i.parent) != null && s.root ? ge(t) : t.selectParent() : o.className === "lhs" && t.selectFirstChild();
684
+ const i = e.currentNode.nodeObj, o = e.currentNode.offsetParent.offsetParent.parentElement;
685
+ e.currentNode.nodeObj.root ? Nt(e) : o.className === "rhs" ? (s = i.parent) != null && s.root ? ve(e) : e.selectParent() : o.className === "lhs" && e.selectFirstChild();
671
686
  },
672
687
  39: (n) => {
673
688
  var s;
674
689
  if (n.metaKey || n.ctrlKey)
675
- return t.initRight();
676
- if (!t.currentNode)
690
+ return e.initRight();
691
+ if (!e.currentNode)
677
692
  return;
678
- const i = t.currentNode.nodeObj, o = t.currentNode.offsetParent.offsetParent.parentElement;
679
- i.root ? Ct(t) : o.className === "lhs" ? (s = i.parent) != null && s.root ? ge(t) : t.selectParent() : o.className === "rhs" && t.selectFirstChild();
693
+ const i = e.currentNode.nodeObj, o = e.currentNode.offsetParent.offsetParent.parentElement;
694
+ i.root ? Ct(e) : o.className === "lhs" ? (s = i.parent) != null && s.root ? ve(e) : e.selectParent() : o.className === "rhs" && e.selectFirstChild();
680
695
  },
681
696
  33() {
682
- t.moveUpNode();
697
+ e.moveUpNode();
683
698
  },
684
699
  34() {
685
- t.moveDownNode();
700
+ e.moveDownNode();
686
701
  },
687
702
  67: (n) => {
688
- (n.metaKey || n.ctrlKey) && (t.waitCopy = t.currentNode);
703
+ (n.metaKey || n.ctrlKey) && (e.waitCopy = e.currentNode);
689
704
  },
690
705
  86: (n) => {
691
- !t.waitCopy || !t.currentNode || (n.metaKey || n.ctrlKey) && (t.copyNode(t.waitCopy, t.currentNode), t.waitCopy = null);
706
+ !e.waitCopy || !e.currentNode || (n.metaKey || n.ctrlKey) && (e.copyNode(e.waitCopy, e.currentNode), e.waitCopy = null);
692
707
  },
693
708
  // ctrl +
694
709
  187: (n) => {
695
710
  if (n.metaKey || n.ctrlKey) {
696
- if (t.scaleVal > 1.6)
711
+ if (e.scaleVal > 1.6)
697
712
  return;
698
- t.scale(t.scaleVal += 0.2);
713
+ e.scale(e.scaleVal += 0.2);
699
714
  }
700
715
  },
701
716
  // ctrl -
702
717
  189: (n) => {
703
718
  if (n.metaKey || n.ctrlKey) {
704
- if (t.scaleVal < 0.6)
719
+ if (e.scaleVal < 0.6)
705
720
  return;
706
- t.scale(t.scaleVal -= 0.2);
721
+ e.scale(e.scaleVal -= 0.2);
707
722
  }
708
723
  },
709
724
  // ctrl 0
710
725
  48: (n) => {
711
- (n.metaKey || n.ctrlKey) && t.scale(1);
726
+ (n.metaKey || n.ctrlKey) && e.scale(1);
712
727
  }
713
728
  };
714
- t.map.onkeydown = (n) => {
715
- if (n.preventDefault(), !!t.editable && n.target === n.currentTarget)
729
+ e.map.onkeydown = (n) => {
730
+ if (n.preventDefault(), !!e.editable && n.target === n.currentTarget)
716
731
  if (n.keyCode === 8 || n.keyCode === 46)
717
- t.currentLink ? t.removeLink() : t.currentSummary ? t.removeSummary(t.currentSummary.summaryObj.id) : t.removeNode();
732
+ e.currentLink ? e.removeLink() : e.currentSummary ? e.removeSummary(e.currentSummary.summaryObj.id) : e.removeNode();
718
733
  else {
719
- const i = e[n.keyCode];
734
+ const i = t[n.keyCode];
720
735
  i && i(n);
721
736
  }
722
737
  };
723
738
  }
724
- function kt(t, e) {
739
+ function kt(e, t) {
725
740
  const n = (d, p) => {
726
741
  const g = document.createElement("div");
727
742
  return g.id = d, g.innerHTML = `<svg class="icon" aria-hidden="true">
728
743
  <use xlink:href="#icon-${p}"></use>
729
744
  </svg>`, g;
730
745
  }, i = n("cm-add_child", "zijiedian"), o = n("cm-add_sibling", "tongjijiedian-"), s = n("cm-remove_child", "shanchu2"), r = n("cm-up", "rising"), l = n("cm-down", "falling"), c = n("cm-edit", "edit"), h = document.createElement("ul");
731
- if (h.className = "menu-list", e && e.extend)
732
- for (let d = 0; d < e.extend.length; d++) {
733
- const p = e.extend[d], g = n(p.name, p.name);
746
+ if (h.className = "menu-list", t && t.extend)
747
+ for (let d = 0; d < t.extend.length; d++) {
748
+ const p = t.extend[d], g = n(p.name, p.name);
734
749
  h.appendChild(g), g.onclick = (m) => {
735
750
  p.onclick(m);
736
751
  };
737
752
  }
738
753
  const a = document.createElement("mmenu");
739
- a.className = "mobile-menu", a.appendChild(i), a.appendChild(o), a.appendChild(s), a.appendChild(r), a.appendChild(l), a.appendChild(c), a.hidden = !0, t.container.append(a);
754
+ a.className = "mobile-menu", a.appendChild(i), a.appendChild(o), a.appendChild(s), a.appendChild(r), a.appendChild(l), a.appendChild(c), a.hidden = !0, e.container.append(a);
740
755
  let u = !0;
741
- t.bus.addListener("unselectNode", function() {
756
+ e.bus.addListener("unselectNode", function() {
742
757
  a.hidden = !0;
743
- }), t.bus.addListener("selectNode", function(d) {
758
+ }), e.bus.addListener("selectNode", function(d) {
744
759
  a.hidden = !1, d.root ? u = !0 : u = !1;
745
760
  }), a.onclick = (d) => {
746
761
  d.target === a && (a.hidden = !0);
747
762
  }, i.onclick = () => {
748
- t.addChild();
763
+ e.addChild();
749
764
  }, o.onclick = () => {
750
- u || t.insertSibling();
765
+ u || e.insertSibling();
751
766
  }, s.onclick = () => {
752
- u || t.removeNode();
767
+ u || e.removeNode();
753
768
  }, r.onclick = (d) => {
754
- u || t.moveUpNode();
769
+ u || e.moveUpNode();
755
770
  }, l.onclick = (d) => {
756
- u || t.moveDownNode();
771
+ u || e.moveDownNode();
757
772
  }, c.onclick = (d) => {
758
- t.beginEdit();
773
+ e.beginEdit();
759
774
  };
760
775
  }
761
- const le = document, St = function(t, e) {
762
- if (!e)
763
- return ce(t), t;
764
- const n = t.getElementsByClassName("insert-preview"), i = `insert-preview ${e} show`;
776
+ const ce = document, St = function(e, t) {
777
+ if (!t)
778
+ return ae(e), e;
779
+ const n = e.getElementsByClassName("insert-preview"), i = `insert-preview ${t} show`;
765
780
  if (n.length > 0)
766
781
  n[0].className = i;
767
782
  else {
768
- const o = le.createElement("div");
769
- o.className = i, t.appendChild(o);
783
+ const o = ce.createElement("div");
784
+ o.className = i, e.appendChild(o);
770
785
  }
771
- return t;
772
- }, ce = function(t) {
773
- if (!t)
786
+ return e;
787
+ }, ae = function(e) {
788
+ if (!e)
774
789
  return;
775
- const e = t.getElementsByClassName("insert-preview");
776
- for (const n of e || [])
790
+ const t = e.getElementsByClassName("insert-preview");
791
+ for (const n of t || [])
777
792
  n.remove();
778
- }, ve = function(t, e) {
779
- const n = e.parentElement.parentElement.contains(t);
780
- return t && t.tagName === "ME-TPC" && t !== e && !n && t.nodeObj.root !== !0;
781
- }, Lt = function(t) {
782
- const e = document.createElement("div");
783
- return e.className = "mind-elixir-ghost", t.map.appendChild(e), e;
793
+ }, be = function(e, t) {
794
+ const n = t.parentElement.parentElement.contains(e);
795
+ return e && e.tagName === "ME-TPC" && e !== t && !n && e.nodeObj.root !== !0;
796
+ }, Lt = function(e) {
797
+ const t = document.createElement("div");
798
+ return t.className = "mind-elixir-ghost", e.map.appendChild(t), t;
784
799
  };
785
- function Mt(t) {
786
- let e = null, n = null, i = null;
787
- const o = Lt(t), s = 12;
788
- t.map.addEventListener("dragstart", (r) => {
800
+ function Mt(e) {
801
+ let t = null, n = null, i = null;
802
+ const o = Lt(e), s = 12;
803
+ e.map.addEventListener("dragstart", (r) => {
789
804
  var c;
790
805
  const l = r.target;
791
806
  if ((l == null ? void 0 : l.tagName) !== "ME-TPC") {
792
807
  r.preventDefault();
793
808
  return;
794
809
  }
795
- e = l, e.parentElement.parentElement.style.opacity = "0.5", o.innerHTML = e.innerHTML, (c = r.dataTransfer) == null || c.setDragImage(o, 0, 0), D.clear();
796
- }), t.map.addEventListener("dragend", async (r) => {
797
- if (!e)
810
+ t = l, t.parentElement.parentElement.style.opacity = "0.5", o.innerHTML = t.innerHTML, (c = r.dataTransfer) == null || c.setDragImage(o, 0, 0), D.clear();
811
+ }), e.map.addEventListener("dragend", async (r) => {
812
+ if (!t)
798
813
  return;
799
- e.parentElement.parentElement.style.opacity = "1";
814
+ t.parentElement.parentElement.style.opacity = "1";
800
815
  const l = r.target;
801
816
  if (l.style.opacity = "", !i)
802
817
  return;
803
- ce(i);
804
- const c = e.nodeObj;
818
+ ae(i);
819
+ const c = t.nodeObj;
805
820
  switch (n) {
806
821
  case "before":
807
- t.moveNodeBefore(e, i), t.selectNode(E(c.id));
822
+ e.moveNodeBefore(t, i), e.selectNode(E(c.id));
808
823
  break;
809
824
  case "after":
810
- t.moveNodeAfter(e, i), t.selectNode(E(c.id));
825
+ e.moveNodeAfter(t, i), e.selectNode(E(c.id));
811
826
  break;
812
827
  case "in":
813
- t.moveNode(e, i);
828
+ e.moveNode(t, i);
814
829
  break;
815
830
  }
816
- e = null;
817
- }), t.map.addEventListener(
831
+ t = null;
832
+ }), e.map.addEventListener(
818
833
  "dragover",
819
834
  Ke(function(r) {
820
- if (!e)
835
+ if (!t)
821
836
  return;
822
- ce(i);
823
- const l = le.elementFromPoint(r.clientX, r.clientY - s);
824
- if (ve(l, e)) {
837
+ ae(i);
838
+ const l = ce.elementFromPoint(r.clientX, r.clientY - s);
839
+ if (be(l, t)) {
825
840
  i = l;
826
841
  const c = l.getBoundingClientRect().y;
827
842
  r.clientY > c + l.clientHeight ? n = "after" : r.clientY > c + l.clientHeight / 2 && (n = "in");
828
843
  } else {
829
- const c = le.elementFromPoint(r.clientX, r.clientY + s);
830
- if (ve(c, e)) {
844
+ const c = ce.elementFromPoint(r.clientX, r.clientY + s);
845
+ if (be(c, t)) {
831
846
  i = c;
832
847
  const h = c.getBoundingClientRect().y;
833
848
  r.clientY < h ? n = "before" : r.clientY < h + c.clientHeight / 2 && (n = "in");
@@ -838,77 +853,77 @@ function Mt(t) {
838
853
  }, 200)
839
854
  );
840
855
  }
841
- function Tt(t) {
842
- let e = [], n = -1, i = t.getData();
843
- t.bus.addListener("operation", (o) => {
856
+ function Tt(e) {
857
+ let t = [], n = -1, i = e.getData();
858
+ e.bus.addListener("operation", (o) => {
844
859
  if (o.name === "beginEdit")
845
860
  return;
846
- e = e.slice(0, n + 1);
847
- const s = t.getData();
848
- e.push({ prev: i, currentNodeId: o.obj.id, next: s }), i = s, n = e.length - 1, console.log("operation", o.obj.id, e);
849
- }), t.undo = function() {
861
+ t = t.slice(0, n + 1);
862
+ const s = e.getData();
863
+ t.push({ prev: i, currentNodeId: o.obj.id, next: s }), i = s, n = t.length - 1, console.log("operation", o.obj.id, t);
864
+ }), e.undo = function() {
850
865
  if (n > -1) {
851
- const o = e[n];
852
- i = o.prev, t.refresh(o.prev), t.selectNode(E(o.currentNodeId)), n--, console.log("current", i);
866
+ const o = t[n];
867
+ i = o.prev, e.refresh(o.prev), e.selectNode(E(o.currentNodeId)), n--, console.log("current", i);
853
868
  }
854
- }, t.redo = function() {
855
- if (n < e.length - 1) {
869
+ }, e.redo = function() {
870
+ if (n < t.length - 1) {
856
871
  n++;
857
- const o = e[n];
858
- i = o.next, t.refresh(o.next), t.selectNode(E(o.currentNodeId));
872
+ const o = t[n];
873
+ i = o.next, e.refresh(o.next), e.selectNode(E(o.currentNodeId));
859
874
  }
860
- }, t.map.addEventListener("keydown", (o) => {
861
- (o.metaKey || o.ctrlKey) && o.shiftKey && o.key === "Z" ? t.redo() : (o.metaKey || o.ctrlKey) && o.key === "z" && t.undo();
875
+ }, e.map.addEventListener("keydown", (o) => {
876
+ (o.metaKey || o.ctrlKey) && o.shiftKey && o.key === "Z" ? e.redo() : (o.metaKey || o.ctrlKey) && o.key === "z" && e.undo();
862
877
  });
863
878
  }
864
- const B = (t, e) => {
879
+ const B = (e, t) => {
865
880
  const n = document.createElement("span");
866
- return n.id = t, n.innerHTML = `<svg class="icon" aria-hidden="true">
867
- <use xlink:href="#icon-${e}"></use>
881
+ return n.id = e, n.innerHTML = `<svg class="icon" aria-hidden="true">
882
+ <use xlink:href="#icon-${t}"></use>
868
883
  </svg>`, n;
869
884
  };
870
- function $t(t) {
871
- const e = document.createElement("div"), n = B("fullscreen", "full"), i = B("toCenter", "living"), o = B("zoomout", "move"), s = B("zoomin", "add"), r = document.createElement("span");
872
- return r.innerText = "100%", e.appendChild(n), e.appendChild(i), e.appendChild(o), e.appendChild(s), e.className = "mind-elixir-toolbar rb", n.onclick = () => {
873
- t.container.requestFullscreen();
885
+ function $t(e) {
886
+ const t = document.createElement("div"), n = B("fullscreen", "full"), i = B("toCenter", "living"), o = B("zoomout", "move"), s = B("zoomin", "add"), r = document.createElement("span");
887
+ return r.innerText = "100%", t.appendChild(n), t.appendChild(i), t.appendChild(o), t.appendChild(s), t.className = "mind-elixir-toolbar rb", n.onclick = () => {
888
+ e.container.requestFullscreen();
874
889
  }, i.onclick = () => {
875
- t.toCenter();
890
+ e.toCenter();
876
891
  }, o.onclick = () => {
877
- t.scaleVal < 0.6 || t.scale(t.scaleVal -= 0.2);
892
+ e.scaleVal < 0.6 || e.scale(e.scaleVal -= 0.2);
878
893
  }, s.onclick = () => {
879
- t.scaleVal > 1.6 || t.scale(t.scaleVal += 0.2);
880
- }, e;
894
+ e.scaleVal > 1.6 || e.scale(e.scaleVal += 0.2);
895
+ }, t;
881
896
  }
882
- function Dt(t) {
883
- const e = document.createElement("div"), n = B("tbltl", "left"), i = B("tbltr", "right"), o = B("tblts", "side");
884
- return e.appendChild(n), e.appendChild(i), e.appendChild(o), e.className = "mind-elixir-toolbar lt", n.onclick = () => {
885
- t.initLeft();
897
+ function Dt(e) {
898
+ const t = document.createElement("div"), n = B("tbltl", "left"), i = B("tbltr", "right"), o = B("tblts", "side");
899
+ return t.appendChild(n), t.appendChild(i), t.appendChild(o), t.className = "mind-elixir-toolbar lt", n.onclick = () => {
900
+ e.initLeft();
886
901
  }, i.onclick = () => {
887
- t.initRight();
902
+ e.initRight();
888
903
  }, o.onclick = () => {
889
- t.initSide();
890
- }, e;
904
+ e.initSide();
905
+ }, t;
891
906
  }
892
- function Ot(t) {
893
- t.container.append($t(t)), t.container.append(Dt(t));
907
+ function Ot(e) {
908
+ e.container.append($t(e)), e.container.append(Dt(e));
894
909
  }
895
910
  /*! @viselect/vanilla v3.3.1 MIT | https://github.com/Simonwep/selection/tree/master/packages/vanilla */
896
- var At = Object.defineProperty, Pt = (t, e, n) => e in t ? At(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, w = (t, e, n) => (Pt(t, typeof e != "symbol" ? e + "" : e, n), n);
911
+ var At = Object.defineProperty, Pt = (e, t, n) => t in e ? At(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, w = (e, t, n) => (Pt(e, typeof t != "symbol" ? t + "" : t, n), n);
897
912
  class jt {
898
913
  constructor() {
899
914
  w(this, "_listeners", /* @__PURE__ */ new Map()), w(this, "on", this.addEventListener), w(this, "off", this.removeEventListener), w(this, "emit", this.dispatchEvent);
900
915
  }
901
- addEventListener(e, n) {
902
- const i = this._listeners.get(e) ?? /* @__PURE__ */ new Set();
903
- return this._listeners.set(e, i), i.add(n), this;
916
+ addEventListener(t, n) {
917
+ const i = this._listeners.get(t) ?? /* @__PURE__ */ new Set();
918
+ return this._listeners.set(t, i), i.add(n), this;
904
919
  }
905
- removeEventListener(e, n) {
920
+ removeEventListener(t, n) {
906
921
  var i;
907
- return (i = this._listeners.get(e)) == null || i.delete(n), this;
922
+ return (i = this._listeners.get(t)) == null || i.delete(n), this;
908
923
  }
909
- dispatchEvent(e, ...n) {
924
+ dispatchEvent(t, ...n) {
910
925
  let i = !0;
911
- for (const o of this._listeners.get(e) ?? [])
926
+ for (const o of this._listeners.get(t) ?? [])
912
927
  i = o(...n) !== !1 && i;
913
928
  return i;
914
929
  }
@@ -916,64 +931,64 @@ class jt {
916
931
  this._listeners.clear();
917
932
  }
918
933
  }
919
- const be = (t, e = "px") => typeof t == "number" ? t + e : t;
920
- function O({ style: t }, e, n) {
921
- if (typeof e == "object")
922
- for (const [i, o] of Object.entries(e))
923
- o !== void 0 && (t[i] = be(o));
934
+ const ye = (e, t = "px") => typeof e == "number" ? e + t : e;
935
+ function O({ style: e }, t, n) {
936
+ if (typeof t == "object")
937
+ for (const [i, o] of Object.entries(t))
938
+ o !== void 0 && (e[i] = ye(o));
924
939
  else
925
- n !== void 0 && (t[e] = be(n));
940
+ n !== void 0 && (e[t] = ye(n));
926
941
  }
927
- function Be(t) {
928
- return (e, n, i, o = {}) => {
929
- e instanceof HTMLCollection || e instanceof NodeList ? e = Array.from(e) : Array.isArray(e) || (e = [e]), Array.isArray(n) || (n = [n]);
930
- for (const s of e)
942
+ function Be(e) {
943
+ return (t, n, i, o = {}) => {
944
+ t instanceof HTMLCollection || t instanceof NodeList ? t = Array.from(t) : Array.isArray(t) || (t = [t]), Array.isArray(n) || (n = [n]);
945
+ for (const s of t)
931
946
  for (const r of n)
932
- s[t](r, i, { capture: !1, ...o });
933
- return [e, n, i, o];
947
+ s[e](r, i, { capture: !1, ...o });
948
+ return [t, n, i, o];
934
949
  };
935
950
  }
936
- const q = Be("addEventListener"), A = Be("removeEventListener"), Q = (t) => {
937
- var e;
938
- const { clientX: n, clientY: i, target: o } = ((e = t.touches) == null ? void 0 : e[0]) ?? t;
951
+ const q = Be("addEventListener"), A = Be("removeEventListener"), Q = (e) => {
952
+ var t;
953
+ const { clientX: n, clientY: i, target: o } = ((t = e.touches) == null ? void 0 : t[0]) ?? e;
939
954
  return { x: n, y: i, target: o };
940
955
  };
941
- function ye(t, e, n = "touch") {
956
+ function xe(e, t, n = "touch") {
942
957
  switch (n) {
943
958
  case "center": {
944
- const i = e.left + e.width / 2, o = e.top + e.height / 2;
945
- return i >= t.left && i <= t.right && o >= t.top && o <= t.bottom;
959
+ const i = t.left + t.width / 2, o = t.top + t.height / 2;
960
+ return i >= e.left && i <= e.right && o >= e.top && o <= e.bottom;
946
961
  }
947
962
  case "cover":
948
- return e.left >= t.left && e.top >= t.top && e.right <= t.right && e.bottom <= t.bottom;
963
+ return t.left >= e.left && t.top >= e.top && t.right <= e.right && t.bottom <= e.bottom;
949
964
  case "touch":
950
- return t.right >= e.left && t.left <= e.right && t.bottom >= e.top && t.top <= e.bottom;
965
+ return e.right >= t.left && e.left <= t.right && e.bottom >= t.top && e.top <= t.bottom;
951
966
  }
952
967
  }
953
- function F(t, e = document) {
954
- const n = Array.isArray(t) ? t : [t];
968
+ function F(e, t = document) {
969
+ const n = Array.isArray(e) ? e : [e];
955
970
  let i = [];
956
971
  for (let o = 0, s = n.length; o < s; o++) {
957
972
  const r = n[o];
958
- typeof r == "string" ? i = i.concat(Array.from(e.querySelectorAll(r))) : r instanceof Element && i.push(r);
973
+ typeof r == "string" ? i = i.concat(Array.from(t.querySelectorAll(r))) : r instanceof Element && i.push(r);
959
974
  }
960
975
  return i;
961
976
  }
962
- const Ht = () => matchMedia("(hover: none), (pointer: coarse)").matches, Bt = () => "safari" in window, zt = (t) => {
963
- let e, n = -1, i = !1;
977
+ const Ht = () => matchMedia("(hover: none), (pointer: coarse)").matches, Bt = () => "safari" in window, zt = (e) => {
978
+ let t, n = -1, i = !1;
964
979
  return {
965
980
  next(...o) {
966
- e = o, i || (i = !0, n = requestAnimationFrame(() => {
967
- t(...e), i = !1;
981
+ t = o, i || (i = !0, n = requestAnimationFrame(() => {
982
+ e(...t), i = !1;
968
983
  }));
969
984
  },
970
985
  cancel() {
971
986
  cancelAnimationFrame(n), i = !1;
972
987
  }
973
988
  };
974
- }, { abs: j, max: xe, min: we, ceil: Ee } = Math;
989
+ }, { abs: j, max: we, min: Ee, ceil: Ne } = Math;
975
990
  class ze extends jt {
976
- constructor(e) {
991
+ constructor(t) {
977
992
  var n, i, o, s, r;
978
993
  super(), w(this, "_options"), w(this, "_selection", {
979
994
  stored: [],
@@ -993,31 +1008,31 @@ class ze extends jt {
993
1008
  startAreas: ["html"],
994
1009
  boundaries: ["html"],
995
1010
  container: "body",
996
- ...e,
1011
+ ...t,
997
1012
  behaviour: {
998
1013
  overlap: "invert",
999
1014
  intersect: "touch",
1000
- ...e.behaviour,
1001
- startThreshold: (n = e.behaviour) != null && n.startThreshold ? typeof e.behaviour.startThreshold == "number" ? e.behaviour.startThreshold : { x: 10, y: 10, ...e.behaviour.startThreshold } : { x: 10, y: 10 },
1015
+ ...t.behaviour,
1016
+ 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 },
1002
1017
  scrolling: {
1003
1018
  speedDivider: 10,
1004
1019
  manualSpeed: 750,
1005
- ...(i = e.behaviour) == null ? void 0 : i.scrolling,
1020
+ ...(i = t.behaviour) == null ? void 0 : i.scrolling,
1006
1021
  startScrollMargins: {
1007
1022
  x: 0,
1008
1023
  y: 0,
1009
- ...(s = (o = e.behaviour) == null ? void 0 : o.scrolling) == null ? void 0 : s.startScrollMargins
1024
+ ...(s = (o = t.behaviour) == null ? void 0 : o.scrolling) == null ? void 0 : s.startScrollMargins
1010
1025
  }
1011
1026
  }
1012
1027
  },
1013
1028
  features: {
1014
1029
  range: !0,
1015
1030
  touch: !0,
1016
- ...e.features,
1031
+ ...t.features,
1017
1032
  singleTap: {
1018
1033
  allow: !0,
1019
1034
  intersect: "native",
1020
- ...(r = e.features) == null ? void 0 : r.singleTap
1035
+ ...(r = t.features) == null ? void 0 : r.singleTap
1021
1036
  }
1022
1037
  }
1023
1038
  };
@@ -1040,26 +1055,26 @@ class ze extends jt {
1040
1055
  this._recalculateSelectionAreaRect(), this._updateElementSelection(), this._emitEvent("move", a), this._redrawSelectionArea();
1041
1056
  }), this.enable();
1042
1057
  }
1043
- _bindStartEvents(e = !0) {
1044
- const { document: n, features: i } = this._options, o = e ? q : A;
1058
+ _bindStartEvents(t = !0) {
1059
+ const { document: n, features: i } = this._options, o = t ? q : A;
1045
1060
  o(n, "mousedown", this._onTapStart), i.touch && o(n, "touchstart", this._onTapStart, {
1046
1061
  passive: !1
1047
1062
  });
1048
1063
  }
1049
- _onTapStart(e, n = !1) {
1050
- const { x: i, y: o, target: s } = Q(e), { _options: r } = this, { document: l } = this._options, c = s.getBoundingClientRect(), h = F(r.startAreas, r.document), a = F(r.boundaries, r.document);
1064
+ _onTapStart(t, n = !1) {
1065
+ const { x: i, y: o, target: s } = Q(t), { _options: r } = this, { document: l } = this._options, c = s.getBoundingClientRect(), h = F(r.startAreas, r.document), a = F(r.boundaries, r.document);
1051
1066
  this._targetElement = a.find(
1052
- (p) => ye(p.getBoundingClientRect(), c)
1067
+ (p) => xe(p.getBoundingClientRect(), c)
1053
1068
  );
1054
- const u = e.composedPath();
1055
- if (!this._targetElement || !h.find((p) => u.includes(p)) || !a.find((p) => u.includes(p)) || !n && this._emitEvent("beforestart", e) === !1)
1069
+ const u = t.composedPath();
1070
+ if (!this._targetElement || !h.find((p) => u.includes(p)) || !a.find((p) => u.includes(p)) || !n && this._emitEvent("beforestart", t) === !1)
1056
1071
  return;
1057
1072
  this._areaLocation = { x1: i, y1: o, x2: 0, y2: 0 };
1058
1073
  const d = l.scrollingElement ?? l.body;
1059
1074
  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);
1060
1075
  }
1061
- _onSingleTap(e) {
1062
- const { singleTap: { intersect: n }, range: i } = this._options.features, o = Q(e);
1076
+ _onSingleTap(t) {
1077
+ const { singleTap: { intersect: n }, range: i } = this._options.features, o = Q(t);
1063
1078
  let s;
1064
1079
  if (n === "native")
1065
1080
  s = o.target;
@@ -1079,33 +1094,33 @@ class ze extends jt {
1079
1094
  s = s.parentElement;
1080
1095
  }
1081
1096
  const { stored: r } = this._selection;
1082
- if (this._emitEvent("start", e), e.shiftKey && i && this._latestElement) {
1097
+ if (this._emitEvent("start", t), t.shiftKey && i && this._latestElement) {
1083
1098
  const l = this._latestElement, [c, h] = l.compareDocumentPosition(s) & 4 ? [s, l] : [l, s], a = [...this._selectables.filter(
1084
1099
  (u) => u.compareDocumentPosition(c) & 4 && u.compareDocumentPosition(h) & 2
1085
1100
  ), c, h];
1086
1101
  this.select(a), this._latestElement = l;
1087
1102
  } else
1088
- r.includes(s) && (r.length === 1 || e.ctrlKey || r.every((l) => this._selection.stored.includes(l))) ? this.deselect(s) : (this.select(s), this._latestElement = s);
1089
- this._emitEvent("stop", e);
1103
+ r.includes(s) && (r.length === 1 || t.ctrlKey || r.every((l) => this._selection.stored.includes(l))) ? this.deselect(s) : (this.select(s), this._latestElement = s);
1104
+ this._emitEvent("stop", t);
1090
1105
  }
1091
- _delayedTapMove(e) {
1092
- const { container: n, document: i, behaviour: { startThreshold: o } } = this._options, { x1: s, y1: r } = this._areaLocation, { x: l, y: c } = Q(e);
1106
+ _delayedTapMove(t) {
1107
+ const { container: n, document: i, behaviour: { startThreshold: o } } = this._options, { x1: s, y1: r } = this._areaLocation, { x: l, y: c } = Q(t);
1093
1108
  if (
1094
1109
  // Single number for both coordinates
1095
1110
  typeof o == "number" && j(l + c - (s + r)) >= o || // Different x and y threshold
1096
1111
  typeof o == "object" && j(l - s) >= o.x || j(c - r) >= o.y
1097
1112
  ) {
1098
- if (A(i, ["mousemove", "touchmove"], this._delayedTapMove, { passive: !1 }), this._emitEvent("beforedrag", e) === !1) {
1113
+ if (A(i, ["mousemove", "touchmove"], this._delayedTapMove, { passive: !1 }), this._emitEvent("beforedrag", t) === !1) {
1099
1114
  A(i, ["mouseup", "touchcancel", "touchend"], this._onTapStop);
1100
1115
  return;
1101
1116
  }
1102
- q(i, ["mousemove", "touchmove"], this._onTapMove, { passive: !1 }), O(this._area, "display", "block"), F(n, i)[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(i, "wheel", this._manualScroll, { passive: !1 }), this._selectables = this._selectables.filter((h) => this._targetElement.contains(h))), this._setupSelectionArea(), this._emitEvent("start", e), this._onTapMove(e);
1117
+ q(i, ["mousemove", "touchmove"], this._onTapMove, { passive: !1 }), O(this._area, "display", "block"), F(n, i)[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(i, "wheel", this._manualScroll, { passive: !1 }), this._selectables = this._selectables.filter((h) => this._targetElement.contains(h))), this._setupSelectionArea(), this._emitEvent("start", t), this._onTapMove(t);
1103
1118
  }
1104
- this._handleMoveEvent(e);
1119
+ this._handleMoveEvent(t);
1105
1120
  }
1106
1121
  _setupSelectionArea() {
1107
- const { _clippingElement: e, _targetElement: n, _area: i } = this, o = this._targetRect = n.getBoundingClientRect();
1108
- this._scrollAvailable ? (O(e, {
1122
+ const { _clippingElement: t, _targetElement: n, _area: i } = this, o = this._targetRect = n.getBoundingClientRect();
1123
+ this._scrollAvailable ? (O(t, {
1109
1124
  top: o.top,
1110
1125
  left: o.left,
1111
1126
  width: o.width,
@@ -1113,7 +1128,7 @@ class ze extends jt {
1113
1128
  }), O(i, {
1114
1129
  marginTop: -o.top,
1115
1130
  marginLeft: -o.left
1116
- })) : (O(e, {
1131
+ })) : (O(t, {
1117
1132
  top: 0,
1118
1133
  left: 0,
1119
1134
  width: "100%",
@@ -1123,8 +1138,8 @@ class ze extends jt {
1123
1138
  marginLeft: 0
1124
1139
  }));
1125
1140
  }
1126
- _onTapMove(e) {
1127
- const { x: n, y: i } = Q(e), { _scrollSpeed: o, _areaLocation: s, _options: r, _frame: l } = this, { speedDivider: c } = r.behaviour.scrolling, h = this._targetElement;
1141
+ _onTapMove(t) {
1142
+ const { x: n, y: i } = Q(t), { _scrollSpeed: o, _areaLocation: s, _options: r, _frame: l } = this, { speedDivider: c } = r.behaviour.scrolling, h = this._targetElement;
1128
1143
  if (s.x2 = n, s.y2 = i, this._scrollAvailable && !this._scrollingActive && (o.y || o.x)) {
1129
1144
  this._scrollingActive = !0;
1130
1145
  const a = () => {
@@ -1133,47 +1148,47 @@ class ze extends jt {
1133
1148
  return;
1134
1149
  }
1135
1150
  const { scrollTop: u, scrollLeft: d } = h;
1136
- o.y && (h.scrollTop += Ee(o.y / c), s.y1 -= h.scrollTop - u), o.x && (h.scrollLeft += Ee(o.x / c), s.x1 -= h.scrollLeft - d), l.next(e), requestAnimationFrame(a);
1151
+ o.y && (h.scrollTop += Ne(o.y / c), s.y1 -= h.scrollTop - u), o.x && (h.scrollLeft += Ne(o.x / c), s.x1 -= h.scrollLeft - d), l.next(t), requestAnimationFrame(a);
1137
1152
  };
1138
1153
  requestAnimationFrame(a);
1139
1154
  } else
1140
- l.next(e);
1141
- this._handleMoveEvent(e);
1155
+ l.next(t);
1156
+ this._handleMoveEvent(t);
1142
1157
  }
1143
- _handleMoveEvent(e) {
1158
+ _handleMoveEvent(t) {
1144
1159
  const { features: n } = this._options;
1145
- (n.touch && Ht() || this._scrollAvailable && Bt()) && e.preventDefault();
1160
+ (n.touch && Ht() || this._scrollAvailable && Bt()) && t.preventDefault();
1146
1161
  }
1147
1162
  _onScroll() {
1148
- const { _scrollDelta: e, _options: { document: n } } = this, { scrollTop: i, scrollLeft: o } = n.scrollingElement ?? n.body;
1149
- this._areaLocation.x1 += e.x - o, this._areaLocation.y1 += e.y - i, e.x = o, e.y = i, this._setupSelectionArea(), this._frame.next(null);
1163
+ const { _scrollDelta: t, _options: { document: n } } = this, { scrollTop: i, scrollLeft: o } = n.scrollingElement ?? n.body;
1164
+ this._areaLocation.x1 += t.x - o, this._areaLocation.y1 += t.y - i, t.x = o, t.y = i, this._setupSelectionArea(), this._frame.next(null);
1150
1165
  }
1151
- _manualScroll(e) {
1152
- const { manualSpeed: n } = this._options.behaviour.scrolling, i = e.deltaY ? e.deltaY > 0 ? 1 : -1 : 0, o = e.deltaX ? e.deltaX > 0 ? 1 : -1 : 0;
1153
- this._scrollSpeed.y += i * n, this._scrollSpeed.x += o * n, this._onTapMove(e), e.preventDefault();
1166
+ _manualScroll(t) {
1167
+ const { manualSpeed: n } = this._options.behaviour.scrolling, i = t.deltaY ? t.deltaY > 0 ? 1 : -1 : 0, o = t.deltaX ? t.deltaX > 0 ? 1 : -1 : 0;
1168
+ this._scrollSpeed.y += i * n, this._scrollSpeed.x += o * n, this._onTapMove(t), t.preventDefault();
1154
1169
  }
1155
1170
  _recalculateSelectionAreaRect() {
1156
- const { _scrollSpeed: e, _areaLocation: n, _areaRect: i, _targetElement: o, _options: s } = this, { scrollTop: r, scrollHeight: l, clientHeight: c, scrollLeft: h, scrollWidth: a, clientWidth: u } = o, d = this._targetRect, { x1: p, y1: g } = n;
1171
+ const { _scrollSpeed: t, _areaLocation: n, _areaRect: i, _targetElement: o, _options: s } = this, { scrollTop: r, scrollHeight: l, clientHeight: c, scrollLeft: h, scrollWidth: a, clientWidth: u } = o, d = this._targetRect, { x1: p, y1: g } = n;
1157
1172
  let { x2: m, y2: f } = n;
1158
1173
  const { behaviour: { scrolling: { startScrollMargins: v } } } = s;
1159
- m < d.left + v.x ? (e.x = h ? -j(d.left - m + v.x) : 0, m = m < d.left ? d.left : m) : m > d.right - v.x ? (e.x = a - h - u ? j(d.left + d.width - m - v.x) : 0, m = m > d.right ? d.right : m) : e.x = 0, f < d.top + v.y ? (e.y = r ? -j(d.top - f + v.y) : 0, f = f < d.top ? d.top : f) : f > d.bottom - v.y ? (e.y = l - r - c ? j(d.top + d.height - f - v.y) : 0, f = f > d.bottom ? d.bottom : f) : e.y = 0;
1160
- const x = we(p, m), b = we(g, f), y = xe(p, m), C = xe(g, f);
1174
+ m < d.left + v.x ? (t.x = h ? -j(d.left - m + v.x) : 0, m = m < d.left ? d.left : m) : m > d.right - v.x ? (t.x = a - h - u ? j(d.left + d.width - m - v.x) : 0, m = m > d.right ? d.right : m) : t.x = 0, f < d.top + v.y ? (t.y = r ? -j(d.top - f + v.y) : 0, f = f < d.top ? d.top : f) : f > d.bottom - v.y ? (t.y = l - r - c ? j(d.top + d.height - f - v.y) : 0, f = f > d.bottom ? d.bottom : f) : t.y = 0;
1175
+ const x = Ee(p, m), b = Ee(g, f), y = we(p, m), C = we(g, f);
1161
1176
  i.x = x, i.y = b, i.width = y - x, i.height = C - b;
1162
1177
  }
1163
1178
  _redrawSelectionArea() {
1164
- const { x: e, y: n, width: i, height: o } = this._areaRect, { style: s } = this._area;
1165
- s.left = `${e}px`, s.top = `${n}px`, s.width = `${i}px`, s.height = `${o}px`;
1179
+ const { x: t, y: n, width: i, height: o } = this._areaRect, { style: s } = this._area;
1180
+ s.left = `${t}px`, s.top = `${n}px`, s.width = `${i}px`, s.height = `${o}px`;
1166
1181
  }
1167
- _onTapStop(e, n) {
1182
+ _onTapStop(t, n) {
1168
1183
  var i;
1169
1184
  const { document: o, features: s } = this._options, { _singleClick: r } = this;
1170
- A(o, ["mousemove", "touchmove"], this._delayedTapMove), A(o, ["touchmove", "mousemove"], this._onTapMove), A(o, ["mouseup", "touchcancel", "touchend"], this._onTapStop), A(o, "scroll", this._onScroll), this._keepSelection(), e && r && s.singleTap.allow ? this._onSingleTap(e) : !r && !n && (this._updateElementSelection(), this._emitEvent("stop", e)), this._scrollSpeed.x = 0, this._scrollSpeed.y = 0, this._scrollAvailable && A(o, "wheel", this._manualScroll, { passive: !0 }), this._clippingElement.remove(), (i = this._frame) == null || i.cancel(), O(this._area, "display", "none");
1185
+ A(o, ["mousemove", "touchmove"], this._delayedTapMove), A(o, ["touchmove", "mousemove"], this._onTapMove), A(o, ["mouseup", "touchcancel", "touchend"], this._onTapStop), A(o, "scroll", this._onScroll), this._keepSelection(), t && r && s.singleTap.allow ? this._onSingleTap(t) : !r && !n && (this._updateElementSelection(), this._emitEvent("stop", t)), this._scrollSpeed.x = 0, this._scrollSpeed.y = 0, this._scrollAvailable && A(o, "wheel", this._manualScroll, { passive: !0 }), this._clippingElement.remove(), (i = this._frame) == null || i.cancel(), O(this._area, "display", "none");
1171
1186
  }
1172
1187
  _updateElementSelection() {
1173
- const { _selectables: e, _options: n, _selection: i, _areaRect: o } = this, { stored: s, selected: r, touched: l } = i, { intersect: c, overlap: h } = n.behaviour, a = h === "invert", u = [], d = [], p = [];
1174
- for (let m = 0; m < e.length; m++) {
1175
- const f = e[m];
1176
- if (ye(o, f.getBoundingClientRect(), c)) {
1188
+ const { _selectables: t, _options: n, _selection: i, _areaRect: o } = this, { stored: s, selected: r, touched: l } = i, { intersect: c, overlap: h } = n.behaviour, a = h === "invert", u = [], d = [], p = [];
1189
+ for (let m = 0; m < t.length; m++) {
1190
+ const f = t[m];
1191
+ if (xe(o, f.getBoundingClientRect(), c)) {
1177
1192
  if (r.includes(f))
1178
1193
  s.includes(f) && !l.includes(f) && l.push(f);
1179
1194
  else if (a && s.includes(f)) {
@@ -1194,16 +1209,16 @@ class ze extends jt {
1194
1209
  }
1195
1210
  i.selected = u, i.changed = { added: d, removed: p }, this._latestElement = void 0;
1196
1211
  }
1197
- _emitEvent(e, n) {
1198
- return this.emit(e, {
1212
+ _emitEvent(t, n) {
1213
+ return this.emit(t, {
1199
1214
  event: n,
1200
1215
  store: this._selection,
1201
1216
  selection: this
1202
1217
  });
1203
1218
  }
1204
1219
  _keepSelection() {
1205
- const { _options: e, _selection: n } = this, { selected: i, changed: o, touched: s, stored: r } = n, l = i.filter((c) => !r.includes(c));
1206
- switch (e.behaviour.overlap) {
1220
+ const { _options: t, _selection: n } = this, { selected: i, changed: o, touched: s, stored: r } = n, l = i.filter((c) => !r.includes(c));
1221
+ switch (t.behaviour.overlap) {
1207
1222
  case "drop": {
1208
1223
  n.stored = [
1209
1224
  ...l,
@@ -1235,8 +1250,8 @@ class ze extends jt {
1235
1250
  * @param evt A MouseEvent / TouchEvent -like object
1236
1251
  * @param silent If beforestart should be fired,
1237
1252
  */
1238
- trigger(e, n = !0) {
1239
- this._onTapStart(e, n);
1253
+ trigger(t, n = !0) {
1254
+ this._onTapStart(t, n);
1240
1255
  }
1241
1256
  /**
1242
1257
  * Can be used if during a selection elements have been added.
@@ -1250,13 +1265,13 @@ class ze extends jt {
1250
1265
  * @param includeStored If the store should also get cleared
1251
1266
  * @param quiet If move / stop events should be fired
1252
1267
  */
1253
- clearSelection(e = !0, n = !1) {
1268
+ clearSelection(t = !0, n = !1) {
1254
1269
  const { selected: i, stored: o, changed: s } = this._selection;
1255
1270
  s.added = [], s.removed.push(
1256
1271
  ...i,
1257
- ...e ? o : []
1272
+ ...t ? o : []
1258
1273
  ), n || (this._emitEvent("move", null), this._emitEvent("stop", null)), this._selection = {
1259
- stored: e ? [] : o,
1274
+ stored: t ? [] : o,
1260
1275
  selected: [],
1261
1276
  touched: [],
1262
1277
  changed: { added: [], removed: [] }
@@ -1278,8 +1293,8 @@ class ze extends jt {
1278
1293
  * Cancel the current selection process.
1279
1294
  * @param keepEvent {boolean} true to fire a stop event after cancel.
1280
1295
  */
1281
- cancel(e = !1) {
1282
- this._onTapStop(null, !e);
1296
+ cancel(t = !1) {
1297
+ this._onTapStop(null, !t);
1283
1298
  }
1284
1299
  /**
1285
1300
  * Unbinds all events and removes the area-element.
@@ -1292,8 +1307,8 @@ class ze extends jt {
1292
1307
  * @param query - CSS Query, can be an array of queries
1293
1308
  * @param quiet - If this should not trigger the move event
1294
1309
  */
1295
- select(e, n = !1) {
1296
- const { changed: i, selected: o, stored: s } = this._selection, r = F(e, this._options.document).filter(
1310
+ select(t, n = !1) {
1311
+ const { changed: i, selected: o, stored: s } = this._selection, r = F(t, this._options.document).filter(
1297
1312
  (l) => !o.includes(l) && !s.includes(l)
1298
1313
  );
1299
1314
  return s.push(...r), o.push(...r), i.added.push(...r), i.removed = [], this._latestElement = void 0, n || (this._emitEvent("move", null), this._emitEvent("stop", null)), r;
@@ -1303,8 +1318,8 @@ class ze extends jt {
1303
1318
  * @param query - CSS Query, can be an array of queries
1304
1319
  * @param quiet - If this should not trigger the move event
1305
1320
  */
1306
- deselect(e, n = !1) {
1307
- const { selected: i, stored: o, changed: s } = this._selection, r = F(e, this._options.document).filter(
1321
+ deselect(t, n = !1) {
1322
+ const { selected: i, stored: o, changed: s } = this._selection, r = F(t, this._options.document).filter(
1308
1323
  (l) => i.includes(l) || o.includes(l)
1309
1324
  );
1310
1325
  r.length && (this._selection.stored = o.filter((l) => !r.includes(l)), this._selection.selected = i.filter((l) => !r.includes(l)), this._selection.changed.added = [], this._selection.changed.removed.push(
@@ -1313,11 +1328,11 @@ class ze extends jt {
1313
1328
  }
1314
1329
  }
1315
1330
  w(ze, "version", "3.3.1");
1316
- function Rt(t) {
1317
- const e = new ze({
1331
+ function Rt(e) {
1332
+ const t = new ze({
1318
1333
  selectables: [".map-container me-tpc"],
1319
- boundaries: [t.container],
1320
- container: t.container,
1334
+ boundaries: [e.container],
1335
+ container: e.container,
1321
1336
  behaviour: {
1322
1337
  // Scroll configuration.
1323
1338
  scrolling: {
@@ -1334,7 +1349,7 @@ function Rt(t) {
1334
1349
  }
1335
1350
  }
1336
1351
  }).on("beforestart", ({ event: n }) => !(n.button !== 0 || n.target.tagName === "ME-TPC" || n.target.id === "input-box" || n.target.className === "circle")).on("start", ({ event: n }) => {
1337
- !n.ctrlKey && !n.metaKey && (t.unselectNode(), t.unselectNodes(), t.unselectSummary(), t.unselectLink(), e.clearSelection(!0, !0));
1352
+ !n.ctrlKey && !n.metaKey && (e.unselectNode(), e.unselectNodes(), e.unselectSummary(), e.unselectLink(), t.clearSelection(!0, !0));
1338
1353
  }).on(
1339
1354
  "move",
1340
1355
  ({
@@ -1349,121 +1364,121 @@ function Rt(t) {
1349
1364
  o.classList.remove("selected");
1350
1365
  }
1351
1366
  ).on("stop", ({ store: { stored: n } }) => {
1352
- console.log(n, "stored"), t.selectNodes(n);
1367
+ console.log(n, "stored"), e.selectNodes(n);
1353
1368
  });
1354
1369
  }
1355
- const qt = function(t, e = !0) {
1356
- this.theme = t;
1370
+ const qt = function(e, t = !0) {
1371
+ this.theme = e;
1357
1372
  const n = this.theme.cssVar, i = Object.keys(n);
1358
1373
  for (let o = 0; o < i.length; o++) {
1359
1374
  const s = i[o];
1360
1375
  this.mindElixirBox.style.setProperty(s, n[s]);
1361
1376
  }
1362
- e && this.refresh();
1377
+ t && this.refresh();
1363
1378
  };
1364
- function Re(t) {
1379
+ function Re(e) {
1365
1380
  return {
1366
- nodeData: t.isFocusMode ? t.nodeDataBackup : t.nodeData,
1367
- linkData: t.linkData,
1368
- summaries: t.summaries,
1369
- direction: t.direction,
1370
- theme: t.theme
1381
+ nodeData: e.isFocusMode ? e.nodeDataBackup : e.nodeData,
1382
+ linkData: e.linkData,
1383
+ summaries: e.summaries,
1384
+ direction: e.direction,
1385
+ theme: e.theme
1371
1386
  };
1372
1387
  }
1373
- const Ft = function(t, e, n) {
1374
- if (t) {
1375
- if (console.time("selectNode"), typeof t == "string") {
1376
- const i = E(t);
1388
+ const Ft = function(e, t, n) {
1389
+ if (e) {
1390
+ if (console.time("selectNode"), typeof e == "string") {
1391
+ const i = E(e);
1377
1392
  return i ? this.selectNode(i) : void 0;
1378
1393
  }
1379
- this.currentNode && (this.currentNode.className = ""), t.className = "selected", t.scrollIntoView({ block: "nearest", inline: "nearest" }), this.currentNode = t, e ? this.bus.fire("selectNewNode", t.nodeObj) : this.bus.fire("selectNode", t.nodeObj, n), console.timeEnd("selectNode");
1394
+ this.currentNode && (this.currentNode.className = ""), 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");
1380
1395
  }
1381
1396
  }, Vt = function() {
1382
1397
  this.currentNode && (this.currentNode.className = ""), this.currentNode = null, this.bus.fire("unselectNode");
1383
- }, Wt = function(t) {
1384
- if (t) {
1398
+ }, Wt = function(e) {
1399
+ if (e) {
1385
1400
  console.time("selectNodes");
1386
- for (const e of t)
1387
- e.className = "selected";
1388
- this.currentNodes = t, this.bus.fire(
1401
+ for (const t of e)
1402
+ t.className = "selected";
1403
+ this.currentNodes = e, this.bus.fire(
1389
1404
  "selectNodes",
1390
- t.map((e) => e.nodeObj)
1405
+ e.map((t) => t.nodeObj)
1391
1406
  ), console.timeEnd("selectNodes");
1392
1407
  }
1393
1408
  }, Yt = function() {
1394
1409
  if (this.currentNodes)
1395
- for (const t of this.currentNodes)
1396
- t.classList.remove("selected");
1410
+ for (const e of this.currentNodes)
1411
+ e.classList.remove("selected");
1397
1412
  this.currentNodes = null, this.bus.fire("unselectNodes");
1398
1413
  }, It = function() {
1399
1414
  if (!this.currentNode || this.currentNode.dataset.nodeid === "meroot")
1400
1415
  return !1;
1401
- const t = this.currentNode.parentElement.parentElement.nextSibling;
1402
- let e;
1403
- if (t)
1404
- e = t.firstChild.firstChild;
1416
+ const e = this.currentNode.parentElement.parentElement.nextSibling;
1417
+ let t;
1418
+ if (e)
1419
+ t = e.firstChild.firstChild;
1405
1420
  else
1406
1421
  return !1;
1407
- return this.selectNode(e), !0;
1422
+ return this.selectNode(t), !0;
1408
1423
  }, Xt = function() {
1409
1424
  if (!this.currentNode || this.currentNode.dataset.nodeid === "meroot")
1410
1425
  return !1;
1411
- const t = this.currentNode.parentElement.parentElement.previousSibling;
1412
- let e;
1413
- if (t)
1414
- e = t.firstChild.firstChild;
1426
+ const e = this.currentNode.parentElement.parentElement.previousSibling;
1427
+ let t;
1428
+ if (e)
1429
+ t = e.firstChild.firstChild;
1415
1430
  else
1416
1431
  return !1;
1417
- return this.selectNode(e), !0;
1432
+ return this.selectNode(t), !0;
1418
1433
  }, Kt = function() {
1419
1434
  if (!this.currentNode)
1420
1435
  return;
1421
- const t = this.currentNode.parentElement.nextSibling;
1422
- if (t && t.firstChild) {
1423
- const e = t.firstChild.firstChild.firstChild;
1424
- this.selectNode(e);
1436
+ const e = this.currentNode.parentElement.nextSibling;
1437
+ if (e && e.firstChild) {
1438
+ const t = e.firstChild.firstChild.firstChild;
1439
+ this.selectNode(t);
1425
1440
  }
1426
1441
  }, Ut = function() {
1427
1442
  if (!this.currentNode || this.currentNode.dataset.nodeid === "meroot")
1428
1443
  return;
1429
- const t = this.currentNode.parentElement.parentElement.parentElement.previousSibling;
1430
- if (t) {
1431
- const e = t.firstChild;
1432
- this.selectNode(e);
1444
+ const e = this.currentNode.parentElement.parentElement.parentElement.previousSibling;
1445
+ if (e) {
1446
+ const t = e.firstChild;
1447
+ this.selectNode(t);
1433
1448
  }
1434
1449
  }, Gt = function() {
1435
- const t = Re(this);
1436
- return JSON.stringify(t, (e, n) => {
1437
- if (!(e === "parent" && typeof n != "string"))
1450
+ const e = Re(this);
1451
+ return JSON.stringify(e, (t, n) => {
1452
+ if (!(t === "parent" && typeof n != "string"))
1438
1453
  return n;
1439
1454
  });
1440
1455
  }, Jt = function() {
1441
1456
  return JSON.parse(this.getDataString());
1442
1457
  }, Qt = function() {
1443
- const t = Re(this).nodeData;
1444
- let e = "# " + t.topic + `
1458
+ const e = Re(this).nodeData;
1459
+ let t = "# " + e.topic + `
1445
1460
 
1446
1461
  `;
1447
1462
  function n(i, o) {
1448
1463
  for (let s = 0; s < i.length; s++)
1449
- o <= 6 ? e += "".padStart(o, "#") + " " + i[s].topic + `
1464
+ o <= 6 ? t += "".padStart(o, "#") + " " + i[s].topic + `
1450
1465
 
1451
- ` : e += "".padStart(o - 7, " ") + "- " + i[s].topic + `
1466
+ ` : t += "".padStart(o - 7, " ") + "- " + i[s].topic + `
1452
1467
  `, i[s].children && n(i[s].children || [], o + 1);
1453
1468
  }
1454
- return n(t.children || [], 2), e;
1469
+ return n(e.children || [], 2), t;
1455
1470
  }, Zt = function() {
1456
1471
  this.editable = !0;
1457
1472
  }, en = function() {
1458
1473
  this.editable = !1;
1459
- }, tn = function(t) {
1460
- this.scaleVal = t, this.map.style.transform = "scale(" + t + ")";
1474
+ }, tn = function(e) {
1475
+ this.scaleVal = e, this.map.style.transform = "scale(" + e + ")";
1461
1476
  }, nn = function() {
1462
1477
  this.container.scrollTo(1e4 - this.container.offsetWidth / 2, 1e4 - this.container.offsetHeight / 2);
1463
- }, on = function(t) {
1464
- t(this);
1465
- }, sn = function(t) {
1466
- t.nodeObj.root || (this.tempDirection === null && (this.tempDirection = this.direction), this.isFocusMode || (this.nodeDataBackup = this.nodeData, this.isFocusMode = !0), this.nodeData = t.nodeObj, this.nodeData.root = !0, this.initRight(), this.toCenter());
1478
+ }, on = function(e) {
1479
+ e(this);
1480
+ }, sn = function(e) {
1481
+ 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());
1467
1482
  }, rn = function() {
1468
1483
  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());
1469
1484
  }, ln = function() {
@@ -1472,13 +1487,13 @@ const Ft = function(t, e, n) {
1472
1487
  this.direction = 1, this.refresh();
1473
1488
  }, an = function() {
1474
1489
  this.direction = 2, this.refresh();
1475
- }, dn = function(t) {
1476
- this.locale = t, this.refresh();
1477
- }, hn = function(t, e) {
1478
- const n = t.nodeObj;
1479
- typeof e == "boolean" ? n.expanded = e : n.expanded !== !1 ? n.expanded = !1 : n.expanded = !0, this.layout(), this.linkDiv(), this.bus.fire("expandNode", n);
1480
- }, un = function(t) {
1481
- t && (t = JSON.parse(JSON.stringify(t)), this.nodeData = t.nodeData, this.linkData = t.linkData || {}), T(this.nodeData), this.layout(), this.linkDiv();
1490
+ }, dn = function(e) {
1491
+ this.locale = e, this.refresh();
1492
+ }, hn = function(e, t) {
1493
+ const n = e.nodeObj;
1494
+ typeof t == "boolean" ? n.expanded = t : n.expanded !== !1 ? n.expanded = !1 : n.expanded = !0, this.layout(), this.linkDiv(), this.bus.fire("expandNode", n);
1495
+ }, un = function(e) {
1496
+ e && (e = JSON.parse(JSON.stringify(e)), this.nodeData = e.nodeData, this.linkData = e.linkData || {}), T(this.nodeData), this.layout(), this.linkDiv();
1482
1497
  }, fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1483
1498
  __proto__: null,
1484
1499
  cancelFocus: rn,
@@ -1505,32 +1520,32 @@ const Ft = function(t, e, n) {
1505
1520
  toCenter: nn,
1506
1521
  unselectNode: Vt,
1507
1522
  unselectNodes: Yt
1508
- }, Symbol.toStringTag, { value: "Module" })), se = function(t) {
1509
- const n = t.parentElement.parentElement.lastElementChild;
1523
+ }, Symbol.toStringTag, { value: "Module" })), re = function(e) {
1524
+ const n = e.parentElement.parentElement.lastElementChild;
1510
1525
  (n == null ? void 0 : n.tagName) === "svg" && (n == null || n.remove());
1511
- }, qe = function(t, e) {
1526
+ }, qe = function(e, t) {
1512
1527
  var n, i;
1513
- if (t === S)
1528
+ if (e === S)
1514
1529
  return S;
1515
- if (t === H)
1530
+ if (e === H)
1516
1531
  return H;
1517
- if (t === K) {
1532
+ if (e === K) {
1518
1533
  const o = ((n = document.querySelector(".lhs")) == null ? void 0 : n.childElementCount) || 0, s = ((i = document.querySelector(".rhs")) == null ? void 0 : i.childElementCount) || 0;
1519
- return o <= s ? (e.direction = S, S) : (e.direction = H, H);
1520
- }
1521
- }, pn = function(t, e) {
1522
- console.log(e);
1523
- const n = t.nodeObj, i = De(n);
1524
- i.style && e.style && (e.style = Object.assign(i.style, e.style));
1525
- const o = Object.assign(n, e);
1526
- ae(t, o), this.linkDiv(), this.bus.fire("operation", {
1534
+ return o <= s ? (t.direction = S, S) : (t.direction = H, H);
1535
+ }
1536
+ }, pn = function(e, t) {
1537
+ console.log(t);
1538
+ const n = e.nodeObj, i = De(n);
1539
+ i.style && t.style && (t.style = Object.assign(i.style, t.style));
1540
+ const o = Object.assign(n, t);
1541
+ de(e, o), this.linkDiv(), this.bus.fire("operation", {
1527
1542
  name: "reshapeNode",
1528
1543
  obj: o,
1529
1544
  origin: i
1530
1545
  });
1531
- }, mn = function(t, e) {
1546
+ }, mn = function(e, t) {
1532
1547
  var h, a, u;
1533
- const n = t || this.currentNode;
1548
+ const n = e || this.currentNode;
1534
1549
  if (!n)
1535
1550
  return;
1536
1551
  const i = n.nodeObj;
@@ -1541,17 +1556,17 @@ const Ft = function(t, e, n) {
1541
1556
  this.addChild(E(i.parent.id));
1542
1557
  return;
1543
1558
  }
1544
- const o = e || this.generateNewObj();
1559
+ const o = t || this.generateNewObj();
1545
1560
  Ze(i, o), T(this.nodeData);
1546
1561
  const s = n.parentElement;
1547
1562
  console.time("insertSibling_DOM");
1548
1563
  const { grp: r, top: l } = this.createWrapper(o);
1549
- s.parentNode.parentNode.insertBefore(r, s.parentNode.nextSibling), this.linkDiv(r.offsetParent), e || this.editTopic(l.firstChild), this.selectNode(l.firstChild, !0), console.timeEnd("insertSibling_DOM"), this.bus.fire("operation", {
1564
+ s.parentNode.parentNode.insertBefore(r, s.parentNode.nextSibling), this.linkDiv(r.offsetParent), t || this.editTopic(l.firstChild), this.selectNode(l.firstChild, !0), console.timeEnd("insertSibling_DOM"), this.bus.fire("operation", {
1550
1565
  name: "insertSibling",
1551
1566
  obj: o
1552
1567
  });
1553
- }, gn = function(t, e) {
1554
- const n = t || this.currentNode;
1568
+ }, gn = function(e, t) {
1569
+ const n = e || this.currentNode;
1555
1570
  if (!n)
1556
1571
  return;
1557
1572
  const i = n.nodeObj;
@@ -1559,72 +1574,72 @@ const Ft = function(t, e, n) {
1559
1574
  this.addChild();
1560
1575
  return;
1561
1576
  }
1562
- const o = e || this.generateNewObj();
1577
+ const o = t || this.generateNewObj();
1563
1578
  et(i, o), T(this.nodeData);
1564
1579
  const s = n.parentElement;
1565
1580
  console.time("insertSibling_DOM");
1566
1581
  const { grp: r, top: l } = this.createWrapper(o);
1567
- s.parentNode.parentNode.insertBefore(r, s.parentNode), this.linkDiv(r.offsetParent), e || this.editTopic(l.firstChild), this.selectNode(l.firstChild, !0), console.timeEnd("insertSibling_DOM"), this.bus.fire("operation", {
1582
+ s.parentNode.parentNode.insertBefore(r, s.parentNode), this.linkDiv(r.offsetParent), t || this.editTopic(l.firstChild), this.selectNode(l.firstChild, !0), console.timeEnd("insertSibling_DOM"), this.bus.fire("operation", {
1568
1583
  name: "insertBefore",
1569
1584
  obj: o
1570
1585
  });
1571
- }, vn = function(t, e) {
1572
- const n = t || this.currentNode;
1586
+ }, vn = function(e, t) {
1587
+ const n = e || this.currentNode;
1573
1588
  if (!n)
1574
1589
  return;
1575
- se(n);
1590
+ re(n);
1576
1591
  const i = n.nodeObj;
1577
1592
  if (i.root === !0)
1578
1593
  return;
1579
- const o = e || this.generateNewObj();
1594
+ const o = t || this.generateNewObj();
1580
1595
  tt(i, o), T(this.nodeData);
1581
1596
  const s = n.parentElement.parentElement;
1582
1597
  console.time("insertParent_DOM");
1583
1598
  const { grp: r, top: l } = this.createWrapper(o, !0);
1584
- l.appendChild(oe(!0)), s.insertAdjacentElement("afterend", r);
1599
+ l.appendChild(se(!0)), s.insertAdjacentElement("afterend", r);
1585
1600
  const c = this.createChildren([s]);
1586
- l.insertAdjacentElement("afterend", c), this.linkDiv(), e || this.editTopic(l.firstChild), this.selectNode(l.firstChild, !0), console.timeEnd("insertParent_DOM"), this.bus.fire("operation", {
1601
+ l.insertAdjacentElement("afterend", c), this.linkDiv(), t || this.editTopic(l.firstChild), this.selectNode(l.firstChild, !0), console.timeEnd("insertParent_DOM"), this.bus.fire("operation", {
1587
1602
  name: "insertParent",
1588
1603
  obj: o
1589
1604
  });
1590
- }, Fe = function(t, e) {
1605
+ }, Fe = function(e, t) {
1591
1606
  var l, c;
1592
- if (!t)
1607
+ if (!e)
1593
1608
  return null;
1594
- const n = t.nodeObj;
1595
- n.expanded === !1 && (this.expandNode(t, !0), t = E(n.id));
1596
- const i = e || this.generateNewObj();
1609
+ const n = e.nodeObj;
1610
+ n.expanded === !1 && (this.expandNode(e, !0), e = E(n.id));
1611
+ const i = t || this.generateNewObj();
1597
1612
  n.children ? n.children.push(i) : n.children = [i], T(this.nodeData);
1598
- const o = t.parentElement, { grp: s, top: r } = this.createWrapper(i);
1613
+ const o = e.parentElement, { grp: s, top: r } = this.createWrapper(i);
1599
1614
  if (o.tagName === "ME-PARENT") {
1600
1615
  if (o.children[1])
1601
1616
  o.nextSibling.appendChild(s);
1602
1617
  else {
1603
1618
  const h = this.createChildren([s]);
1604
- o.appendChild(oe(!0)), o.insertAdjacentElement("afterend", h);
1619
+ o.appendChild(se(!0)), o.insertAdjacentElement("afterend", h);
1605
1620
  }
1606
1621
  this.linkDiv(s.offsetParent);
1607
1622
  } else
1608
1623
  o.tagName === "ME-ROOT" && (qe(this.direction, i) === S ? (l = document.querySelector(".lhs")) == null || l.appendChild(s) : (c = document.querySelector(".rhs")) == null || c.appendChild(s), this.linkDiv());
1609
1624
  return { newTop: r, newNodeObj: i };
1610
- }, bn = function(t, e) {
1625
+ }, bn = function(e, t) {
1611
1626
  console.time("addChild");
1612
- const n = t || this.currentNode;
1627
+ const n = e || this.currentNode;
1613
1628
  if (!n)
1614
1629
  return;
1615
- const i = Fe.call(this, n, e);
1630
+ const i = Fe.call(this, n, t);
1616
1631
  if (!i)
1617
1632
  return;
1618
1633
  const { newTop: o, newNodeObj: s } = i;
1619
1634
  this.bus.fire("operation", {
1620
1635
  name: "addChild",
1621
1636
  obj: s
1622
- }), console.timeEnd("addChild"), e || this.editTopic(o.firstChild), this.selectNode(o.firstChild, !0);
1623
- }, yn = function(t, e) {
1637
+ }), console.timeEnd("addChild"), t || this.editTopic(o.firstChild), this.selectNode(o.firstChild, !0);
1638
+ }, yn = function(e, t) {
1624
1639
  console.time("copyNode");
1625
- const n = De(t.nodeObj);
1640
+ const n = De(e.nodeObj);
1626
1641
  Te(n);
1627
- const i = Fe.call(this, e, n);
1642
+ const i = Fe.call(this, t, n);
1628
1643
  if (!i)
1629
1644
  return;
1630
1645
  const { newNodeObj: o } = i;
@@ -1632,33 +1647,33 @@ const Ft = function(t, e, n) {
1632
1647
  name: "copyNode",
1633
1648
  obj: o
1634
1649
  });
1635
- }, xn = function(t) {
1636
- const e = t || this.currentNode;
1637
- if (!e)
1650
+ }, xn = function(e) {
1651
+ const t = e || this.currentNode;
1652
+ if (!t)
1638
1653
  return;
1639
- const n = e.parentNode.parentNode, i = e.nodeObj;
1654
+ const n = t.parentNode.parentNode, i = t.nodeObj;
1640
1655
  Je(i), n.parentNode.insertBefore(n, n.previousSibling), this.linkDiv(), this.bus.fire("operation", {
1641
1656
  name: "moveUpNode",
1642
1657
  obj: i
1643
1658
  });
1644
- }, wn = function(t) {
1645
- const e = t || this.currentNode;
1646
- if (!e)
1659
+ }, wn = function(e) {
1660
+ const t = e || this.currentNode;
1661
+ if (!t)
1647
1662
  return;
1648
- const n = e.parentNode.parentNode, i = e.nodeObj;
1663
+ const n = t.parentNode.parentNode, i = t.nodeObj;
1649
1664
  Qe(i), n.nextSibling ? n.nextSibling.insertAdjacentElement("afterend", n) : n.parentNode.prepend(n), this.linkDiv(), this.bus.fire("operation", {
1650
1665
  name: "moveDownNode",
1651
1666
  obj: i
1652
1667
  });
1653
- }, En = function(t) {
1668
+ }, En = function(e) {
1654
1669
  var l;
1655
- const e = t || this.currentNode;
1656
- if (!e)
1670
+ const t = e || this.currentNode;
1671
+ if (!t)
1657
1672
  return;
1658
- const n = e.nodeObj;
1673
+ const n = t.nodeObj;
1659
1674
  if (n.root === !0)
1660
1675
  throw new Error("Can not remove root node");
1661
- const i = n.parent.children, o = i.findIndex((c) => c === n), s = ie(n), r = e.parentNode;
1676
+ const i = n.parent.children, o = i.findIndex((c) => c === n), s = oe(n), r = t.parentNode;
1662
1677
  if (s === 0) {
1663
1678
  const c = r.parentNode.parentNode;
1664
1679
  c.tagName !== "ME-MAIN" && c.previousSibling.children[1].remove();
@@ -1668,34 +1683,27 @@ const Ft = function(t, e, n) {
1668
1683
  this.selectNode(E(c.id));
1669
1684
  } else
1670
1685
  this.selectNode(E(n.parent.id));
1671
- for (const c in this.linkData) {
1672
- const h = this.linkData[c];
1673
- if (h.from === n.id || h.to === n.id) {
1674
- const a = this.mindElixirBox.querySelector(`[data-linkid=${this.linkData[c].id}]`);
1675
- this.removeLink(a);
1676
- }
1677
- }
1678
1686
  r.parentNode.remove(), this.linkDiv(), this.bus.fire("operation", {
1679
1687
  name: "removeNode",
1680
1688
  obj: n,
1681
1689
  originIndex: o,
1682
1690
  originParentId: (l = n == null ? void 0 : n.parent) == null ? void 0 : l.id
1683
1691
  });
1684
- }, Nn = function(t, e) {
1692
+ }, Nn = function(e, t) {
1685
1693
  var l;
1686
- const n = t.nodeObj, i = e.nodeObj, o = (l = n == null ? void 0 : n.parent) == null ? void 0 : l.id;
1687
- if (i.expanded === !1 && (this.expandNode(e, !0), t = E(n.id), e = E(i.id)), !Ge(n, i)) {
1694
+ const n = e.nodeObj, i = t.nodeObj, o = (l = n == null ? void 0 : n.parent) == null ? void 0 : l.id;
1695
+ if (i.expanded === !1 && (this.expandNode(t, !0), e = E(n.id), t = E(i.id)), !Ge(n, i)) {
1688
1696
  console.warn("Invalid move");
1689
1697
  return;
1690
1698
  }
1691
1699
  console.time("moveNode"), nt(n, i), T(this.nodeData);
1692
- const s = t.parentElement, r = e.parentElement;
1700
+ const s = e.parentElement, r = t.parentElement;
1693
1701
  if (r.tagName === "ME-PARENT")
1694
- if (se(t), r.children[1])
1702
+ if (re(e), r.children[1])
1695
1703
  r.nextSibling.appendChild(s.parentElement);
1696
1704
  else {
1697
1705
  const c = this.createChildren([s.parentElement]);
1698
- r.appendChild(oe(!0)), r.parentElement.insertBefore(c, r.nextSibling);
1706
+ r.appendChild(se(!0)), r.parentElement.insertBefore(c, r.nextSibling);
1699
1707
  }
1700
1708
  else
1701
1709
  r.tagName === "ME-ROOT" && (qe(this.direction, n), r.nextSibling.appendChild(s.parentElement));
@@ -1705,33 +1713,33 @@ const Ft = function(t, e, n) {
1705
1713
  toObj: i,
1706
1714
  originParentId: o
1707
1715
  }), console.timeEnd("moveNode");
1708
- }, Cn = function(t, e) {
1716
+ }, Cn = function(e, t) {
1709
1717
  var h;
1710
- const n = t.nodeObj, i = e.nodeObj, o = (h = n.parent) == null ? void 0 : h.id;
1711
- it(n, i), T(this.nodeData), se(t);
1712
- const r = t.parentElement.parentNode;
1713
- e.parentElement.parentNode.insertAdjacentElement("beforebegin", r), this.linkDiv(), this.bus.fire("operation", {
1718
+ const n = e.nodeObj, i = t.nodeObj, o = (h = n.parent) == null ? void 0 : h.id;
1719
+ it(n, i), T(this.nodeData), re(e);
1720
+ const r = e.parentElement.parentNode;
1721
+ t.parentElement.parentNode.insertAdjacentElement("beforebegin", r), this.linkDiv(), this.bus.fire("operation", {
1714
1722
  name: "moveNodeBefore",
1715
1723
  obj: n,
1716
1724
  toObj: i,
1717
1725
  originParentId: o
1718
1726
  });
1719
- }, _n = function(t, e) {
1727
+ }, _n = function(e, t) {
1720
1728
  var h;
1721
- const n = t.nodeObj, i = e.nodeObj, o = (h = n.parent) == null ? void 0 : h.id;
1722
- ot(n, i), T(this.nodeData), se(t);
1723
- const r = t.parentElement.parentElement;
1724
- e.parentElement.parentElement.insertAdjacentElement("afterend", r), this.linkDiv(), this.bus.fire("operation", {
1729
+ const n = e.nodeObj, i = t.nodeObj, o = (h = n.parent) == null ? void 0 : h.id;
1730
+ ot(n, i), T(this.nodeData), re(e);
1731
+ const r = e.parentElement.parentElement;
1732
+ t.parentElement.parentElement.insertAdjacentElement("afterend", r), this.linkDiv(), this.bus.fire("operation", {
1725
1733
  name: "moveNodeAfter",
1726
1734
  obj: n,
1727
1735
  toObj: i,
1728
1736
  originParentId: o
1729
1737
  });
1730
- }, kn = function(t) {
1731
- const e = t || this.currentNode;
1732
- e && this.editTopic(e);
1733
- }, Sn = function(t, e) {
1734
- t.childNodes[0].textContent = e, t.nodeObj.topic = e, this.linkDiv();
1738
+ }, kn = function(e) {
1739
+ const t = e || this.currentNode;
1740
+ t && this.editTopic(t);
1741
+ }, Sn = function(e, t) {
1742
+ e.text.textContent = t, e.nodeObj.topic = t, this.linkDiv();
1735
1743
  }, Ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1736
1744
  __proto__: null,
1737
1745
  addChild: bn,
@@ -1748,44 +1756,44 @@ const Ft = function(t, e, n) {
1748
1756
  removeNode: En,
1749
1757
  reshapeNode: pn,
1750
1758
  setNodeTopic: Sn
1751
- }, Symbol.toStringTag, { value: "Module" })), Ln = function(t) {
1759
+ }, Symbol.toStringTag, { value: "Module" })), Ln = function(e) {
1752
1760
  return {
1753
- dom: t,
1761
+ dom: e,
1754
1762
  mousedown: !1,
1755
1763
  lastX: 0,
1756
1764
  lastY: 0,
1757
- handleMouseMove(e) {
1765
+ handleMouseMove(t) {
1758
1766
  if (this.mousedown) {
1759
1767
  if (!this.lastX) {
1760
- this.lastX = e.pageX, this.lastY = e.pageY;
1768
+ this.lastX = t.pageX, this.lastY = t.pageY;
1761
1769
  return;
1762
1770
  }
1763
- const n = this.lastX - e.pageX, i = this.lastY - e.pageY;
1764
- this.cb && this.cb(n, i), this.lastX = e.pageX, this.lastY = e.pageY;
1771
+ const n = this.lastX - t.pageX, i = this.lastY - t.pageY;
1772
+ this.cb && this.cb(n, i), this.lastX = t.pageX, this.lastY = t.pageY;
1765
1773
  }
1766
1774
  },
1767
- handleMouseDown(e) {
1775
+ handleMouseDown(t) {
1768
1776
  this.mousedown = !0;
1769
1777
  },
1770
- handleClear(e) {
1778
+ handleClear(t) {
1771
1779
  this.clear();
1772
1780
  },
1773
1781
  cb: null,
1774
- init(e, n) {
1775
- this.cb = n, this.handleClear = this.handleClear.bind(this), this.handleMouseMove = this.handleMouseMove.bind(this), this.handleMouseDown = this.handleMouseDown.bind(this), e.addEventListener("mousemove", this.handleMouseMove), e.addEventListener("mouseleave", this.handleClear), e.addEventListener("mouseup", this.handleClear), this.dom.addEventListener("mousedown", this.handleMouseDown);
1782
+ init(t, n) {
1783
+ this.cb = n, this.handleClear = this.handleClear.bind(this), this.handleMouseMove = this.handleMouseMove.bind(this), this.handleMouseDown = this.handleMouseDown.bind(this), t.addEventListener("mousemove", this.handleMouseMove), t.addEventListener("mouseleave", this.handleClear), t.addEventListener("mouseup", this.handleClear), this.dom.addEventListener("mousedown", this.handleMouseDown);
1776
1784
  },
1777
- destory(e) {
1778
- e.removeEventListener("mousemove", this.handleMouseMove), e.removeEventListener("mouseleave", this.handleClear), e.removeEventListener("mouseup", this.handleClear), this.dom.removeEventListener("mousedown", this.handleMouseDown);
1785
+ destory(t) {
1786
+ t.removeEventListener("mousemove", this.handleMouseMove), t.removeEventListener("mouseleave", this.handleClear), t.removeEventListener("mouseup", this.handleClear), this.dom.removeEventListener("mousedown", this.handleMouseDown);
1779
1787
  },
1780
1788
  clear() {
1781
1789
  this.mousedown = !1, this.lastX = 0, this.lastY = 0;
1782
1790
  }
1783
1791
  };
1784
- }, Ne = {
1792
+ }, Ce = {
1785
1793
  create: Ln
1786
1794
  };
1787
- function ne(t, e, n) {
1788
- const { offsetLeft: i, offsetTop: o } = W(t.nodes, e), s = e.offsetWidth, r = e.offsetHeight, l = i + s / 2, c = o + r / 2, h = l + n.x, a = c + n.y;
1795
+ function ie(e, t, n) {
1796
+ const { offsetLeft: i, offsetTop: o } = W(e.nodes, t), s = t.offsetWidth, r = t.offsetHeight, l = i + s / 2, c = o + r / 2, h = l + n.x, a = c + n.y;
1789
1797
  return {
1790
1798
  w: s,
1791
1799
  h: r,
@@ -1795,40 +1803,40 @@ function ne(t, e, n) {
1795
1803
  ctrlY: a
1796
1804
  };
1797
1805
  }
1798
- function V(t) {
1799
- let e, n;
1800
- const i = (t.cy - t.ctrlY) / (t.ctrlX - t.cx);
1801
- return i > t.h / t.w || i < -t.h / t.w ? t.cy - t.ctrlY < 0 ? (e = t.cx - t.h / 2 / i, n = t.cy + t.h / 2) : (e = t.cx + t.h / 2 / i, n = t.cy - t.h / 2) : t.cx - t.ctrlX < 0 ? (e = t.cx + t.w / 2, n = t.cy - t.w * i / 2) : (e = t.cx - t.w / 2, n = t.cy + t.w * i / 2), {
1802
- x: e,
1806
+ function V(e) {
1807
+ let t, n;
1808
+ const i = (e.cy - e.ctrlY) / (e.ctrlX - e.cx);
1809
+ return i > e.h / e.w || i < -e.h / e.w ? e.cy - e.ctrlY < 0 ? (t = e.cx - e.h / 2 / i, n = e.cy + e.h / 2) : (t = e.cx + e.h / 2 / i, n = e.cy - e.h / 2) : e.cx - e.ctrlX < 0 ? (t = e.cx + e.w / 2, n = e.cy - e.w * i / 2) : (t = e.cx - e.w / 2, n = e.cy + e.w * i / 2), {
1810
+ x: t,
1803
1811
  y: n
1804
1812
  };
1805
1813
  }
1806
- const Mn = function(t, e, n, i) {
1814
+ const Mn = function(e, t, n, i) {
1807
1815
  const o = document.createElementNS("http://www.w3.org/2000/svg", "text");
1808
1816
  return N(o, {
1809
1817
  "text-anchor": "middle",
1810
- x: e + "",
1818
+ x: t + "",
1811
1819
  y: n + "",
1812
1820
  fill: i || "#666"
1813
- }), o.dataset.type = "custom-link", o.innerHTML = t, o;
1814
- }, Tn = function(t, e, n, i) {
1815
- if (!t || !e)
1821
+ }), o.dataset.type = "custom-link", o.innerHTML = e, o;
1822
+ }, Tn = function(e, t, n, i) {
1823
+ if (!e || !t)
1816
1824
  return;
1817
1825
  const o = performance.now();
1818
1826
  this.hideLinkController();
1819
- const s = ne(this, t, n.delta1), r = ne(this, e, n.delta2), { x: l, y: c } = V(s), { ctrlX: h, ctrlY: a } = s, { ctrlX: u, ctrlY: d } = r, { x: p, y: g } = V(r), m = $e(u, d, p, g), f = vt(
1827
+ const s = ie(this, e, n.delta1), r = ie(this, t, n.delta2), { x: l, y: c } = V(s), { ctrlX: h, ctrlY: a } = s, { ctrlX: u, ctrlY: d } = r, { x: p, y: g } = V(r), m = $e(u, d, p, g), f = vt(
1820
1828
  `M ${l} ${c} C ${h} ${a} ${u} ${d} ${p} ${g}`,
1821
1829
  `M ${m.x1} ${m.y1} L ${p} ${g} L ${m.x2} ${m.y2}`
1822
1830
  ), v = l / 8 + h * 3 / 8 + u * 3 / 8 + p / 8, x = c / 8 + a * 3 / 8 + d * 3 / 8 + g / 8, b = Mn(n.label, v, x, this.theme.cssVar["--color"]);
1823
1831
  f.appendChild(b), f.linkObj = n, f.dataset.linkid = n.id, this.linkSvgGroup.appendChild(f), i || (this.linkData[n.id] = n, this.currentLink = f, this.showLinkController(n, s, r));
1824
1832
  const y = performance.now();
1825
1833
  console.log(`DrawCustomLink Execution time: ${y - o} ms`);
1826
- }, $n = function(t, e) {
1834
+ }, $n = function(e, t) {
1827
1835
  const n = {
1828
1836
  id: U(),
1829
1837
  label: "Custom Link",
1830
- from: t.nodeObj.id,
1831
- to: e.nodeObj.id,
1838
+ from: e.nodeObj.id,
1839
+ to: t.nodeObj.id,
1832
1840
  delta1: {
1833
1841
  x: 0,
1834
1842
  y: -200
@@ -1838,25 +1846,25 @@ const Mn = function(t, e, n, i) {
1838
1846
  y: -200
1839
1847
  }
1840
1848
  };
1841
- this.drawCustomLink(t, e, n);
1842
- }, Dn = function(t) {
1843
- let e;
1844
- if (t ? e = t : e = this.currentLink, !e)
1849
+ this.drawCustomLink(e, t, n);
1850
+ }, Dn = function(e) {
1851
+ let t;
1852
+ if (e ? t = e : t = this.currentLink, !t)
1845
1853
  return;
1846
1854
  this.hideLinkController();
1847
- const n = e.linkObj.id;
1848
- delete this.linkData[n], e.remove(), e = null;
1849
- }, On = function(t) {
1850
- this.currentLink = t;
1851
- const e = t.linkObj, n = E(e.from), i = E(e.to), o = ne(this, n, e.delta1), s = ne(this, i, e.delta2);
1852
- this.showLinkController(e, o, s);
1855
+ const n = t.linkObj.id;
1856
+ delete this.linkData[n], t.remove();
1857
+ }, On = function(e) {
1858
+ this.currentLink = e;
1859
+ const t = e.linkObj, n = E(t.from), i = E(t.to), o = ie(this, n, t.delta1), s = ie(this, i, t.delta2);
1860
+ this.showLinkController(t, o, s);
1853
1861
  }, An = function() {
1854
1862
  this.currentLink = null, this.hideLinkController();
1855
1863
  }, Pn = function() {
1856
1864
  this.linkController.style.display = "none", this.P2.style.display = "none", this.P3.style.display = "none";
1857
- }, jn = function(t, e, n) {
1865
+ }, jn = function(e, t, n) {
1858
1866
  this.linkController.style.display = "initial", this.P2.style.display = "initial", this.P3.style.display = "initial", this.nodes.appendChild(this.linkController), this.nodes.appendChild(this.P2), this.nodes.appendChild(this.P3);
1859
- let { x: i, y: o } = V(e), { ctrlX: s, ctrlY: r } = e, { ctrlX: l, ctrlY: c } = n, { x: h, y: a } = V(n);
1867
+ let { x: i, y: o } = V(t), { ctrlX: s, ctrlY: r } = t, { ctrlX: l, ctrlY: c } = n, { x: h, y: a } = V(n);
1860
1868
  this.P2.style.cssText = `top:${r}px;left:${s}px;`, this.P3.style.cssText = `top:${c}px;left:${l}px;`, N(this.line1, {
1861
1869
  x1: i + "",
1862
1870
  y1: o + "",
@@ -1867,10 +1875,10 @@ const Mn = function(t, e, n, i) {
1867
1875
  y1: c + "",
1868
1876
  x2: h + "",
1869
1877
  y2: a + ""
1870
- }), this.helper1 && (this.helper1.destory(this.map), this.helper2.destory(this.map)), this.helper1 = Ne.create(this.P2), this.helper2 = Ne.create(this.P3), this.helper1.init(this.map, (u, d) => {
1878
+ }), this.helper1 && (this.helper1.destory(this.map), this.helper2.destory(this.map)), this.helper1 = Ce.create(this.P2), this.helper2 = Ce.create(this.P3), this.helper1.init(this.map, (u, d) => {
1871
1879
  var f;
1872
1880
  s = s - u / this.scaleVal, r = r - d / this.scaleVal;
1873
- const p = V({ ...e, ctrlX: s, ctrlY: r });
1881
+ const p = V({ ...t, ctrlX: s, ctrlY: r });
1874
1882
  i = p.x, o = p.y;
1875
1883
  const g = i / 8 + s * 3 / 8 + l * 3 / 8 + h / 8, m = o / 8 + r * 3 / 8 + c * 3 / 8 + a / 8;
1876
1884
  this.P2.style.top = r + "px", this.P2.style.left = s + "px", (f = this.currentLink) == null || f.children[0].setAttribute("d", `M ${i} ${o} C ${s} ${r} ${l} ${c} ${h} ${a}`), N(this.currentLink.children[2], {
@@ -1881,7 +1889,7 @@ const Mn = function(t, e, n, i) {
1881
1889
  y1: o + "",
1882
1890
  x2: s + "",
1883
1891
  y2: r + ""
1884
- }), t.delta1.x = s - e.cx, t.delta1.y = r - e.cy;
1892
+ }), e.delta1.x = s - t.cx, e.delta1.y = r - t.cy;
1885
1893
  }), this.helper2.init(this.map, (u, d) => {
1886
1894
  var v, x;
1887
1895
  l = l - u / this.scaleVal, c = c - d / this.scaleVal;
@@ -1896,28 +1904,34 @@ const Mn = function(t, e, n, i) {
1896
1904
  y1: c + "",
1897
1905
  x2: h + "",
1898
1906
  y2: a + ""
1899
- }), t.delta2.x = l - n.cx, t.delta2.y = c - n.cy;
1907
+ }), e.delta2.x = l - n.cx, e.delta2.y = c - n.cy;
1900
1908
  });
1901
1909
  };
1902
1910
  function Hn() {
1903
1911
  this.linkSvgGroup.innerHTML = "";
1904
- for (const t in this.linkData) {
1905
- const e = this.linkData[t];
1906
- this.drawCustomLink(E(e.from), E(e.to), e, !0);
1912
+ for (const e in this.linkData) {
1913
+ const t = this.linkData[e];
1914
+ this.drawCustomLink(E(t.from), E(t.to), t, !0);
1907
1915
  }
1908
1916
  this.nodes.appendChild(this.linkSvgGroup);
1909
1917
  }
1910
- function Bn(t) {
1911
- if (console.time("editSummary"), !t)
1918
+ function Bn(e) {
1919
+ if (console.time("editSummary"), !e)
1912
1920
  return;
1913
- const e = t.children[2];
1914
- console.log(e, t), Ae(this, e, (n) => {
1921
+ const t = e.children[2];
1922
+ console.log(t, e), Ae(this, t, (n) => {
1915
1923
  var s;
1916
- const i = t.linkObj, o = ((s = n.textContent) == null ? void 0 : s.trim()) || "";
1917
- o === "" ? i.label = origin : i.label = o, n.remove(), o !== origin && (e.innerHTML = i.label, this.linkDiv());
1924
+ const i = e.linkObj, o = ((s = n.textContent) == null ? void 0 : s.trim()) || "";
1925
+ o === "" ? i.label = origin : i.label = o, n.remove(), o !== origin && (t.innerHTML = i.label, this.linkDiv());
1918
1926
  }), console.timeEnd("editSummary");
1919
1927
  }
1920
- const zn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1928
+ function zn() {
1929
+ for (const e in this.linkData) {
1930
+ const t = this.linkData[e];
1931
+ (!te(t.from, this.nodeData) || !te(t.to, this.nodeData)) && delete this.linkData[t.id];
1932
+ }
1933
+ }
1934
+ const Rn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1921
1935
  __proto__: null,
1922
1936
  createLink: $n,
1923
1937
  drawCustomLink: Tn,
@@ -1927,13 +1941,14 @@ const zn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1927
1941
  renderCustomLink: Hn,
1928
1942
  selectLink: On,
1929
1943
  showLinkController: jn,
1944
+ tidyCustomLink: zn,
1930
1945
  unselectLink: An
1931
- }, Symbol.toStringTag, { value: "Module" })), Rn = function(t) {
1946
+ }, Symbol.toStringTag, { value: "Module" })), qn = function(e) {
1932
1947
  var c, h;
1933
- if (t.length === 0)
1948
+ if (e.length === 0)
1934
1949
  throw new Error("No selected node.");
1935
- if (t.length === 1) {
1936
- const a = t[0].nodeObj, u = t[0].nodeObj.parent;
1950
+ if (e.length === 1) {
1951
+ const a = e[0].nodeObj, u = e[0].nodeObj.parent;
1937
1952
  if (!u)
1938
1953
  throw new Error("Can not select root node.");
1939
1954
  const d = u.children.findIndex((p) => a === p);
@@ -1943,19 +1958,19 @@ const zn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1943
1958
  end: d
1944
1959
  };
1945
1960
  }
1946
- let e = 0;
1947
- const n = t.map((a) => {
1961
+ let t = 0;
1962
+ const n = e.map((a) => {
1948
1963
  let u = a.nodeObj;
1949
1964
  const d = [];
1950
1965
  for (; u.parent; ) {
1951
1966
  const p = u.parent, g = p.children, m = g == null ? void 0 : g.indexOf(u);
1952
1967
  u = p, d.unshift({ node: u, index: m });
1953
1968
  }
1954
- return d.length > e && (e = d.length), d;
1969
+ return d.length > t && (t = d.length), d;
1955
1970
  });
1956
1971
  let i = 0;
1957
1972
  e:
1958
- for (; i < e; i++) {
1973
+ for (; i < t; i++) {
1959
1974
  const a = (c = n[0][i]) == null ? void 0 : c.node;
1960
1975
  for (let u = 1; u < n.length; u++)
1961
1976
  if (((h = n[u][i]) == null ? void 0 : h.node) !== a)
@@ -1971,141 +1986,141 @@ const zn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1971
1986
  start: s,
1972
1987
  end: r
1973
1988
  };
1974
- }, qn = function(t) {
1975
- const e = document.createElementNS("http://www.w3.org/2000/svg", "g");
1976
- return e.setAttribute("id", t), e;
1977
- }, Ce = function(t, e) {
1989
+ }, Fn = function(e) {
1990
+ const t = document.createElementNS("http://www.w3.org/2000/svg", "g");
1991
+ return t.setAttribute("id", e), t;
1992
+ }, _e = function(e, t) {
1978
1993
  const n = document.createElementNS("http://www.w3.org/2000/svg", "path");
1979
1994
  return N(n, {
1980
- d: t,
1981
- stroke: e || "#666",
1995
+ d: e,
1996
+ stroke: t || "#666",
1982
1997
  fill: "none",
1983
1998
  "stroke-linecap": "round",
1984
1999
  "stroke-width": "2"
1985
2000
  }), n;
1986
- }, _e = function(t, e, n, i, o) {
2001
+ }, ke = function(e, t, n, i, o) {
1987
2002
  const s = document.createElementNS("http://www.w3.org/2000/svg", "text");
1988
2003
  return N(s, {
1989
2004
  "text-anchor": i,
1990
- x: e + "",
2005
+ x: t + "",
1991
2006
  y: n + "",
1992
2007
  fill: o || "#666"
1993
- }), s.innerHTML = t, s;
1994
- }, Fn = (t) => E(t).parentElement.parentElement, Vn = function({ parent: t, start: e }) {
2008
+ }), s.innerHTML = e, s;
2009
+ }, Vn = (e) => E(e).parentElement.parentElement, Wn = function({ parent: e, start: t }) {
1995
2010
  var s, r;
1996
- const n = E(t), i = n.nodeObj;
2011
+ const n = E(e), i = n.nodeObj;
1997
2012
  let o;
1998
- return i.root === !0 ? o = (s = E(i.children[e].id).closest("me-main")) == null ? void 0 : s.className : o = (r = n.closest("me-main")) == null ? void 0 : r.className, o;
1999
- }, We = function(t, e) {
2013
+ return i.root === !0 ? o = (s = E(i.children[t].id).closest("me-main")) == null ? void 0 : s.className : o = (r = n.closest("me-main")) == null ? void 0 : r.className, o;
2014
+ }, We = function(e, t) {
2000
2015
  var _;
2001
- const { id: n, text: i, parent: o, start: s, end: r } = e, l = t.nodes, h = E(o).nodeObj, a = Vn(e);
2016
+ const { id: n, text: i, parent: o, start: s, end: r } = t, l = e.nodes, h = E(o).nodeObj, a = Wn(t);
2002
2017
  let u = 1 / 0, d = 0, p = 0, g = 0;
2003
2018
  for (let Y = s; Y <= r; Y++) {
2004
- const de = (_ = h.children) == null ? void 0 : _[Y];
2005
- if (!de)
2006
- return console.warn("Child not found"), t.removeSummary(n), null;
2007
- const G = Fn(de.id), { offsetLeft: J, offsetTop: he } = W(l, G);
2008
- Y === s && (p = he), Y === r && (g = he + G.offsetHeight), J < u && (u = J), G.offsetWidth + J > d && (d = G.offsetWidth + J);
2019
+ const he = (_ = h.children) == null ? void 0 : _[Y];
2020
+ if (!he)
2021
+ return console.warn("Child not found"), e.removeSummary(n), null;
2022
+ const G = Vn(he.id), { offsetLeft: J, offsetTop: ue } = W(l, G);
2023
+ Y === s && (p = ue), Y === r && (g = ue + G.offsetHeight), J < u && (u = J), G.offsetWidth + J > d && (d = G.offsetWidth + J);
2009
2024
  }
2010
2025
  let m, f;
2011
- const v = p + 10, x = g + 10, b = (v + x) / 2, y = t.theme.cssVar["--color"];
2012
- a === "lhs" ? (m = Ce(`M ${u + 10} ${v} c -5 0 -10 5 -10 10 L ${u} ${x - 10} c 0 5 5 10 10 10 M ${u} ${b} h -10`, y), f = _e(i, u - 20, b + 6, "end", y)) : (m = Ce(`M ${d - 10} ${v} c 5 0 10 5 10 10 L ${d} ${x - 10} c 0 5 -5 10 -10 10 M ${d} ${b} h 10`, y), f = _e(i, d + 20, b + 6, "start", y));
2013
- const C = qn("s-" + n);
2014
- return C.appendChild(m), C.appendChild(f), C.summaryObj = e, t.summarySvg.appendChild(C), C;
2015
- }, Wn = function() {
2016
- let t = [];
2017
- this.currentNode ? t = [this.currentNode] : this.currentNodes && (t = this.currentNodes);
2018
- const { parent: e, start: n, end: i } = Rn(t), o = { id: U(), parent: e, start: n, end: i, text: "summary" }, s = We(this, o);
2026
+ const v = p + 10, x = g + 10, b = (v + x) / 2, y = e.theme.cssVar["--color"];
2027
+ a === "lhs" ? (m = _e(`M ${u + 10} ${v} c -5 0 -10 5 -10 10 L ${u} ${x - 10} c 0 5 5 10 10 10 M ${u} ${b} h -10`, y), f = ke(i, u - 20, b + 6, "end", y)) : (m = _e(`M ${d - 10} ${v} c 5 0 10 5 10 10 L ${d} ${x - 10} c 0 5 -5 10 -10 10 M ${d} ${b} h 10`, y), f = ke(i, d + 20, b + 6, "start", y));
2028
+ const C = Fn("s-" + n);
2029
+ return C.appendChild(m), C.appendChild(f), C.summaryObj = t, e.summarySvg.appendChild(C), C;
2030
+ }, Yn = function() {
2031
+ let e = [];
2032
+ this.currentNode ? e = [this.currentNode] : this.currentNodes && (e = this.currentNodes);
2033
+ const { parent: t, start: n, end: i } = qn(e), o = { id: U(), parent: t, start: n, end: i, text: "summary" }, s = We(this, o);
2019
2034
  this.summaries.push(o), this.editSummary(s);
2020
- }, Yn = function(t) {
2035
+ }, In = function(e) {
2021
2036
  var n;
2022
- const e = this.summaries.findIndex((i) => i.id === t);
2023
- e > -1 && (this.summaries.splice(e, 1), (n = document.querySelector("#s-" + t)) == null || n.remove());
2024
- }, In = function(t) {
2025
- const e = t.children[1].getBBox(), n = 6, i = 3, o = document.createElementNS("http://www.w3.org/2000/svg", "rect");
2037
+ const t = this.summaries.findIndex((i) => i.id === e);
2038
+ t > -1 && (this.summaries.splice(t, 1), (n = document.querySelector("#s-" + e)) == null || n.remove());
2039
+ }, Xn = function(e) {
2040
+ const t = e.children[1].getBBox(), n = 6, i = 3, o = document.createElementNS("http://www.w3.org/2000/svg", "rect");
2026
2041
  N(o, {
2027
- x: e.x - n + "",
2028
- y: e.y - n + "",
2029
- width: e.width + n * 2 + "",
2030
- height: e.height + n * 2 + "",
2042
+ x: t.x - n + "",
2043
+ y: t.y - n + "",
2044
+ width: t.width + n * 2 + "",
2045
+ height: t.height + n * 2 + "",
2031
2046
  rx: i + "",
2032
2047
  stroke: this.theme.cssVar["--selected"] || "#4dc4ff",
2033
2048
  "stroke-width": "2",
2034
2049
  fill: "none"
2035
- }), o.classList.add("selected"), t.appendChild(o), this.currentSummary = t;
2036
- }, Xn = function() {
2037
- var t, e;
2038
- (e = (t = this.currentSummary) == null ? void 0 : t.querySelector("rect")) == null || e.remove(), this.currentSummary = null;
2050
+ }), o.classList.add("selected"), e.appendChild(o), this.currentSummary = e;
2039
2051
  }, Kn = function() {
2040
- this.summarySvg.innerHTML = "", this.summaries.forEach((t) => {
2041
- We(this, t);
2052
+ var e, t;
2053
+ (t = (e = this.currentSummary) == null ? void 0 : e.querySelector("rect")) == null || t.remove(), this.currentSummary = null;
2054
+ }, Un = function() {
2055
+ this.summarySvg.innerHTML = "", this.summaries.forEach((e) => {
2056
+ We(this, e);
2042
2057
  }), this.nodes.insertAdjacentElement("beforeend", this.summarySvg);
2043
- }, Un = function(t) {
2044
- if (console.time("editSummary"), !t)
2058
+ }, Gn = function(e) {
2059
+ if (console.time("editSummary"), !e)
2045
2060
  return;
2046
- const e = t.childNodes[1];
2047
- Ae(this, e, (n) => {
2061
+ const t = e.childNodes[1];
2062
+ Ae(this, t, (n) => {
2048
2063
  var s;
2049
- const i = t.summaryObj, o = ((s = n.textContent) == null ? void 0 : s.trim()) || "";
2050
- o === "" ? i.text = origin : i.text = o, n.remove(), o !== origin && (e.innerHTML = i.text, this.linkDiv(), this.bus.fire("operation", {
2064
+ const i = e.summaryObj, o = ((s = n.textContent) == null ? void 0 : s.trim()) || "";
2065
+ o === "" ? i.text = origin : i.text = o, n.remove(), o !== origin && (t.innerHTML = i.text, this.linkDiv(), this.bus.fire("operation", {
2051
2066
  name: "finishEditSummary",
2052
2067
  obj: i,
2053
2068
  origin
2054
2069
  }));
2055
2070
  }), console.timeEnd("editSummary");
2056
- }, Gn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2071
+ }, Jn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2057
2072
  __proto__: null,
2058
- createSummary: Wn,
2059
- editSummary: Un,
2060
- removeSummary: Yn,
2061
- renderSummary: Kn,
2062
- selectSummary: In,
2063
- unselectSummary: Xn
2073
+ createSummary: Yn,
2074
+ editSummary: Gn,
2075
+ removeSummary: In,
2076
+ renderSummary: Un,
2077
+ selectSummary: Xn,
2078
+ unselectSummary: Kn
2064
2079
  }, Symbol.toStringTag, { value: "Module" }));
2065
- function Jn(t, e) {
2080
+ function Qn(e, t) {
2066
2081
  const n = document.createElementNS("http://www.w3.org/2000/svg", "svg");
2067
2082
  return N(n, {
2068
2083
  version: "1.1",
2069
2084
  xmlns: "http://www.w3.org/2000/svg",
2070
- height: t,
2071
- width: e
2085
+ height: e,
2086
+ width: t
2072
2087
  }), n;
2073
2088
  }
2074
- function Qn(t, e) {
2075
- return (parseInt(t) - parseInt(e)) / 2;
2089
+ function Zn(e, t) {
2090
+ return (parseInt(e) - parseInt(t)) / 2;
2076
2091
  }
2077
- function Zn(t, e, n, i) {
2092
+ function ei(e, t, n, i) {
2078
2093
  const o = document.createElementNS("http://www.w3.org/2000/svg", "g");
2079
- return t.childNodes[0].textContent.split(`
2094
+ return e.childNodes[0].textContent.split(`
2080
2095
  `).forEach((l, c) => {
2081
2096
  const h = document.createElementNS("http://www.w3.org/2000/svg", "text");
2082
2097
  N(h, {
2083
- x: n + parseInt(e.paddingLeft) + "",
2084
- y: i + parseInt(e.paddingTop) + Qn(e.lineHeight, e.fontSize) * (c + 1) + parseFloat(e.fontSize) * (c + 1) + "",
2098
+ x: n + parseInt(t.paddingLeft) + "",
2099
+ y: i + parseInt(t.paddingTop) + Zn(t.lineHeight, t.fontSize) * (c + 1) + parseFloat(t.fontSize) * (c + 1) + "",
2085
2100
  "text-anchor": "start",
2086
- "font-family": e.fontFamily,
2087
- "font-size": `${e.fontSize}`,
2088
- "font-weight": `${e.fontWeight}`,
2089
- fill: `${e.color}`
2101
+ "font-family": t.fontFamily,
2102
+ "font-size": `${t.fontSize}`,
2103
+ "font-weight": `${t.fontWeight}`,
2104
+ fill: `${t.color}`
2090
2105
  }), h.innerHTML = l, o.appendChild(h);
2091
2106
  }), o;
2092
2107
  }
2093
- function ei(t, e, n, i) {
2094
- const o = t.childNodes[0].textContent, s = document.createElementNS("http://www.w3.org/2000/svg", "foreignObject");
2108
+ function ti(e, t, n, i) {
2109
+ const o = e.childNodes[0].textContent, s = document.createElementNS("http://www.w3.org/2000/svg", "foreignObject");
2095
2110
  N(s, {
2096
- x: n + parseInt(e.paddingLeft) + "",
2097
- y: i + parseInt(e.paddingTop) + "",
2098
- width: e.width,
2099
- height: e.height
2111
+ x: n + parseInt(t.paddingLeft) + "",
2112
+ y: i + parseInt(t.paddingTop) + "",
2113
+ width: t.width,
2114
+ height: t.height
2100
2115
  });
2101
2116
  const r = document.createElement("div");
2102
2117
  return N(r, {
2103
2118
  xmlns: "http://www.w3.org/1999/xhtml",
2104
- style: `font-family: ${e.fontFamily}; font-size: ${e.fontSize}; font-weight: ${e.fontWeight}; color: ${e.color}; white-space: pre-wrap;`
2119
+ style: `font-family: ${t.fontFamily}; font-size: ${t.fontSize}; font-weight: ${t.fontWeight}; color: ${t.color}; white-space: pre-wrap;`
2105
2120
  }), r.innerHTML = o, s.appendChild(r), s;
2106
2121
  }
2107
- function re(t, e, n = !1) {
2108
- const i = getComputedStyle(e), { offsetLeft: o, offsetTop: s } = W(t.nodes, e), r = document.createElementNS("http://www.w3.org/2000/svg", "rect");
2122
+ function le(e, t, n = !1) {
2123
+ const i = getComputedStyle(t), { offsetLeft: o, offsetTop: s } = W(e.nodes, t), r = document.createElementNS("http://www.w3.org/2000/svg", "rect");
2109
2124
  N(r, {
2110
2125
  x: o + "",
2111
2126
  y: s + "",
@@ -2120,10 +2135,10 @@ function re(t, e, n = !1) {
2120
2135
  const l = document.createElementNS("http://www.w3.org/2000/svg", "g");
2121
2136
  l.appendChild(r);
2122
2137
  let c;
2123
- return n ? c = ei(e, i, o, s) : c = Zn(e, i, o, s), l.appendChild(c), l;
2138
+ return n ? c = ti(t, i, o, s) : c = ei(t, i, o, s), l.appendChild(c), l;
2124
2139
  }
2125
- function ti(t, e) {
2126
- const n = getComputedStyle(e), { offsetLeft: i, offsetTop: o } = W(t.nodes, e), s = document.createElementNS("http://www.w3.org/2000/svg", "a"), r = document.createElementNS("http://www.w3.org/2000/svg", "text");
2140
+ function ni(e, t) {
2141
+ const n = getComputedStyle(t), { offsetLeft: i, offsetTop: o } = W(e.nodes, t), s = document.createElementNS("http://www.w3.org/2000/svg", "a"), r = document.createElementNS("http://www.w3.org/2000/svg", "text");
2127
2142
  return N(r, {
2128
2143
  x: i + "",
2129
2144
  y: o + parseInt(n.fontSize) + "",
@@ -2132,80 +2147,80 @@ function ti(t, e) {
2132
2147
  "font-size": `${n.fontSize}`,
2133
2148
  "font-weight": `${n.fontWeight}`,
2134
2149
  fill: `${n.color}`
2135
- }), r.innerHTML = e.textContent, s.appendChild(r), s.setAttribute("href", e.href), s;
2150
+ }), r.innerHTML = t.textContent, s.appendChild(r), s.setAttribute("href", t.href), s;
2136
2151
  }
2137
- const Z = 100, ni = '<?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">', Ye = (t) => {
2138
- var a, u, d;
2139
- const e = t.nodes, n = e.offsetHeight + Z * 2, i = e.offsetWidth + Z * 2, o = Jn(n + "px", i + "px"), s = document.createElementNS("http://www.w3.org/2000/svg", "svg"), r = document.createElementNS("http://www.w3.org/2000/svg", "rect");
2140
- N(r, {
2152
+ const Z = 100, ii = '<?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">', Ye = (e, t = !1) => {
2153
+ var u, d, p;
2154
+ const n = e.nodes, i = n.offsetHeight + Z * 2, o = n.offsetWidth + Z * 2, s = Qn(i + "px", o + "px"), r = document.createElementNS("http://www.w3.org/2000/svg", "svg"), l = document.createElementNS("http://www.w3.org/2000/svg", "rect");
2155
+ N(l, {
2141
2156
  x: "0",
2142
2157
  y: "0",
2143
- width: `${i}`,
2144
- height: `${n}`,
2145
- fill: t.theme.cssVar["--bgcolor"]
2146
- }), o.appendChild(r), e.querySelectorAll(".subLines").forEach((p) => {
2147
- const g = p.cloneNode(!0), { offsetLeft: m, offsetTop: f } = W(e, p.parentElement);
2148
- g.setAttribute("x", `${m}`), g.setAttribute("y", `${f}`), s.appendChild(g);
2158
+ width: `${o}`,
2159
+ height: `${i}`,
2160
+ fill: e.theme.cssVar["--bgcolor"]
2161
+ }), s.appendChild(l), n.querySelectorAll(".subLines").forEach((g) => {
2162
+ const m = g.cloneNode(!0), { offsetLeft: f, offsetTop: v } = W(n, g.parentElement);
2163
+ m.setAttribute("x", `${f}`), m.setAttribute("y", `${v}`), r.appendChild(m);
2149
2164
  });
2150
- const l = (a = e.querySelector(".lines")) == null ? void 0 : a.cloneNode(!0);
2151
- l && s.appendChild(l);
2152
- const c = (u = e.querySelector(".topiclinks")) == null ? void 0 : u.cloneNode(!0);
2153
- c && s.appendChild(c);
2154
- const h = (d = e.querySelector(".summary")) == null ? void 0 : d.cloneNode(!0);
2155
- return h && s.appendChild(h), e.querySelectorAll("me-tpc").forEach((p) => {
2156
- s.appendChild(re(t, p, !0));
2157
- }), e.querySelectorAll(".tags > span").forEach((p) => {
2158
- s.appendChild(re(t, p));
2159
- }), e.querySelectorAll(".icons > span").forEach((p) => {
2160
- s.appendChild(re(t, p));
2161
- }), e.querySelectorAll(".hyper-link").forEach((p) => {
2162
- s.appendChild(ti(t, p));
2163
- }), N(s, {
2165
+ const c = (u = n.querySelector(".lines")) == null ? void 0 : u.cloneNode(!0);
2166
+ c && r.appendChild(c);
2167
+ const h = (d = n.querySelector(".topiclinks")) == null ? void 0 : d.cloneNode(!0);
2168
+ h && r.appendChild(h);
2169
+ const a = (p = n.querySelector(".summary")) == null ? void 0 : p.cloneNode(!0);
2170
+ return a && r.appendChild(a), n.querySelectorAll("me-tpc").forEach((g) => {
2171
+ r.appendChild(le(e, g.text, !t));
2172
+ }), n.querySelectorAll(".tags > span").forEach((g) => {
2173
+ r.appendChild(le(e, g));
2174
+ }), n.querySelectorAll(".icons > span").forEach((g) => {
2175
+ r.appendChild(le(e, g));
2176
+ }), n.querySelectorAll(".hyper-link").forEach((g) => {
2177
+ r.appendChild(ni(e, g));
2178
+ }), N(r, {
2164
2179
  x: Z + "",
2165
2180
  y: Z + "",
2166
2181
  overflow: "visible"
2167
- }), o.appendChild(s), ni + o.outerHTML;
2182
+ }), s.appendChild(r), ii + s.outerHTML;
2168
2183
  };
2169
- function ii(t) {
2170
- return new Promise((e, n) => {
2184
+ function oi(e) {
2185
+ return new Promise((t, n) => {
2171
2186
  const i = new FileReader();
2172
2187
  i.onload = (o) => {
2173
- e(o.target.result);
2188
+ t(o.target.result);
2174
2189
  }, i.onerror = (o) => {
2175
2190
  n(o);
2176
- }, i.readAsDataURL(t);
2191
+ }, i.readAsDataURL(e);
2177
2192
  });
2178
2193
  }
2179
- const oi = function() {
2180
- const t = Ye(this);
2194
+ const si = function(e = !1) {
2195
+ const t = Ye(this, e);
2181
2196
  return new Blob([t], { type: "image/svg+xml" });
2182
- }, si = async function() {
2183
- const t = Ye(this), e = new Blob([t], { type: "image/svg+xml" }), n = await ii(e);
2184
- return new Promise((i, o) => {
2185
- const s = new Image();
2186
- s.setAttribute("crossOrigin", "anonymous"), s.onload = () => {
2187
- const r = document.createElement("canvas");
2188
- r.width = s.width, r.height = s.height, r.getContext("2d").drawImage(s, 0, 0), r.toBlob(i, "image/png", 1);
2189
- }, s.src = n, s.onerror = o;
2197
+ }, ri = async function(e = !1) {
2198
+ const t = Ye(this, e), n = new Blob([t], { type: "image/svg+xml" }), i = await oi(n);
2199
+ return new Promise((o, s) => {
2200
+ const r = new Image();
2201
+ r.setAttribute("crossOrigin", "anonymous"), r.onload = () => {
2202
+ const l = document.createElement("canvas");
2203
+ l.width = r.width, l.height = r.height, l.getContext("2d").drawImage(r, 0, 0), l.toBlob(o, "image/png", 1);
2204
+ }, r.src = i, r.onerror = s;
2190
2205
  });
2191
- }, ri = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2206
+ }, li = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2192
2207
  __proto__: null,
2193
- exportPng: si,
2194
- exportSvg: oi
2208
+ exportPng: ri,
2209
+ exportSvg: si
2195
2210
  }, Symbol.toStringTag, { value: "Module" }));
2196
- function li(t, e) {
2211
+ function ci(e, t) {
2197
2212
  return async function(...n) {
2198
- const i = this.before[e];
2199
- i && !await i.apply(this, n) || t.apply(this, n);
2213
+ const i = this.before[t];
2214
+ i && !await i.apply(this, n) || e.apply(this, n);
2200
2215
  };
2201
2216
  }
2202
- const ke = Object.keys(Ve), Ie = {};
2203
- for (let t = 0; t < ke.length; t++) {
2204
- const e = ke[t];
2205
- Ie[e] = li(Ve[e], e);
2217
+ const Se = Object.keys(Ve), Ie = {};
2218
+ for (let e = 0; e < Se.length; e++) {
2219
+ const t = Se[e];
2220
+ Ie[t] = ci(Ve[t], t);
2206
2221
  }
2207
- const ci = {
2208
- getObjById: Me,
2222
+ const ai = {
2223
+ getObjById: te,
2209
2224
  generateNewObj: Ue,
2210
2225
  layout: lt,
2211
2226
  linkDiv: bt,
@@ -2218,18 +2233,18 @@ const ci = {
2218
2233
  changeTheme: qt,
2219
2234
  ...fn,
2220
2235
  ...Ie,
2221
- ...zn,
2222
- ...Gn,
2223
- ...ri,
2224
- init(t) {
2225
- if (!t || !t.nodeData)
2236
+ ...Rn,
2237
+ ...Jn,
2238
+ ...li,
2239
+ init(e) {
2240
+ if (!e || !e.nodeData)
2226
2241
  return new Error("MindElixir: `data` is required");
2227
- t.direction !== void 0 && (this.direction = t.direction), this.changeTheme(t.theme || this.theme, !1), this.nodeData = t.nodeData, T(this.nodeData), this.linkData = t.linkData || {}, this.summaries = t.summaries || [], this.toolBar && Ot(this), this.keypress && _t(this), this.editable && Rt(this), Xe() && this.mobileMenu ? kt(this) : this.contextMenu && Et(this, this.contextMenuOption), this.draggable && Mt(this), this.allowUndo && Tt(this), this.toCenter(), this.layout(), this.linkDiv();
2242
+ e.direction !== void 0 && (this.direction = e.direction), this.changeTheme(e.theme || this.theme, !1), this.nodeData = e.nodeData, T(this.nodeData), this.linkData = e.linkData || {}, this.summaries = e.summaries || [], this.tidyCustomLink(), this.toolBar && Ot(this), this.keypress && _t(this), this.editable && Rt(this), Xe() && this.mobileMenu ? kt(this) : this.contextMenu && Et(this, this.contextMenuOption), this.draggable && Mt(this), this.allowUndo && Tt(this), this.toCenter(), this.layout(), this.linkDiv();
2228
2243
  }
2229
2244
  }, I = document;
2230
2245
  function $({
2231
- el: t,
2232
- direction: e,
2246
+ el: e,
2247
+ direction: t,
2233
2248
  locale: n,
2234
2249
  draggable: i,
2235
2250
  editable: o,
@@ -2248,27 +2263,27 @@ function $({
2248
2263
  }) {
2249
2264
  console.log("ME_version " + $.version, this);
2250
2265
  let v = null;
2251
- const x = Object.prototype.toString.call(t);
2252
- if (x === "[object HTMLDivElement]" ? v = t : x === "[object String]" && (v = document.querySelector(t)), !v)
2266
+ const x = Object.prototype.toString.call(e);
2267
+ if (x === "[object HTMLDivElement]" ? v = e : x === "[object String]" && (v = document.querySelector(e)), !v)
2253
2268
  throw new Error("MindElixir: el is not a valid element");
2254
- v.className += " mind-elixir", v.innerHTML = "", v.style.setProperty("--gap", M + "px"), this.mindElixirBox = v, this.before = h || {}, this.locale = n || "en", this.contextMenuOption = r, this.contextMenu = s === void 0 ? !0 : s, this.toolBar = l === void 0 ? !0 : l, this.keypress = c === void 0 ? !0 : c, this.mobileMenu = m || !1, this.direction = typeof e == "number" ? e : 1, this.draggable = i === void 0 ? !0 : i, this.newTopicName = a || "new node", this.editable = o === void 0 ? !0 : o, this.allowUndo = u === void 0 ? !1 : u, this.currentNode = null, this.currentLink = null, this.scaleVal = 1, this.tempDirection = null, this.mainLinkStyle = d || 0, this.subLinkStyle = p || 0, this.overflowHidden = g || !1, this.bus = rt.create(), this.container = I.createElement("div"), this.container.className = "map-container";
2269
+ v.className += " mind-elixir", v.innerHTML = "", v.style.setProperty("--gap", M + "px"), this.mindElixirBox = v, this.before = h || {}, this.locale = n || "en", this.contextMenuOption = r, this.contextMenu = s === void 0 ? !0 : s, this.toolBar = l === void 0 ? !0 : l, this.keypress = c === void 0 ? !0 : c, this.mobileMenu = m || !1, this.direction = typeof t == "number" ? t : 1, this.draggable = i === void 0 ? !0 : i, this.newTopicName = a || "new node", this.editable = o === void 0 ? !0 : o, this.allowUndo = u === void 0 ? !1 : u, this.currentNode = null, this.currentLink = null, this.scaleVal = 1, this.tempDirection = null, this.mainLinkStyle = d || 0, this.subLinkStyle = p || 0, this.overflowHidden = g || !1, this.bus = rt.create(), this.container = I.createElement("div"), this.container.className = "map-container";
2255
2270
  const b = window.matchMedia("(prefers-color-scheme: dark)");
2256
- this.theme = f || (b.matches ? Le : Se);
2271
+ this.theme = f || (b.matches ? Me : Le);
2257
2272
  const y = I.createElement("div");
2258
- y.className = "map-canvas", this.map = y, this.map.setAttribute("tabindex", "0"), this.container.appendChild(this.map), this.mindElixirBox.appendChild(this.container), this.nodes = I.createElement("me-nodes"), this.nodes.className = "main-node-container", this.lines = X("lines"), this.summarySvg = X("summary"), this.linkController = X("linkcontroller"), this.P2 = I.createElement("div"), this.P3 = I.createElement("div"), this.P2.className = this.P3.className = "circle", this.P2.style.display = this.P3.style.display = "none", this.line1 = fe(), this.line2 = fe(), 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" : st(this);
2273
+ y.className = "map-canvas", this.map = y, this.map.setAttribute("tabindex", "0"), this.container.appendChild(this.map), this.mindElixirBox.appendChild(this.container), this.nodes = I.createElement("me-nodes"), this.nodes.className = "main-node-container", this.lines = X("lines"), this.summarySvg = X("summary"), this.linkController = X("linkcontroller"), this.P2 = I.createElement("div"), this.P3 = I.createElement("div"), this.P2.className = this.P3.className = "circle", this.P2.style.display = this.P3.style.display = "none", this.line1 = pe(), this.line2 = pe(), 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" : st(this);
2259
2274
  }
2260
- $.prototype = ci;
2275
+ $.prototype = ai;
2261
2276
  $.LEFT = S;
2262
2277
  $.RIGHT = H;
2263
2278
  $.SIDE = K;
2264
- $.THEME = Se;
2265
- $.DARK_THEME = Le;
2266
- $.version = "3.2.2";
2279
+ $.THEME = Le;
2280
+ $.DARK_THEME = Me;
2281
+ $.version = "3.2.4";
2267
2282
  $.E = E;
2268
- $.new = (t) => ({
2283
+ $.new = (e) => ({
2269
2284
  nodeData: {
2270
2285
  id: U(),
2271
- topic: t || "new topic",
2286
+ topic: e || "new topic",
2272
2287
  root: !0,
2273
2288
  children: []
2274
2289
  },