mind-elixir 4.3.2 → 4.3.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,7 +1,7 @@
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;--root-border-color: rgba(0, 0, 0, 0);--main-color: #444446;--main-bgcolor: #ffffff;--topic-padding: 3px;--color: #777777;--bgcolor: #f6f6f6;--selected: #4dc4ff;--panel-color: #444446;--panel-bgcolor: #ffffff;--panel-border-color: #eaeaea;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif}.mind-elixir .hyper-link{text-decoration:none;margin-left:.3em}.map-container{-webkit-user-select:none;user-select:none;height:100%;width:100%;overflow:scroll;font-size:15px}.map-container *{box-sizing:border-box}.map-container::-webkit-scrollbar{width:0px;height:0px}.map-container .selected{outline:2px solid var(--selected);outline-offset:1px}.map-container .lhs{direction:rtl}.map-container .lhs me-tpc{direction:ltr}.map-container .map-canvas{height:20000px;width:20000px;position:relative;-webkit-user-select:none;user-select:none;transition:transform .3s;transform:scale(1);background-color:var(--bgcolor)}.map-container .map-canvas me-nodes{position:absolute;display:flex;justify-content:center;align-items:center;height:fit-content;width:fit-content}.map-container .map-canvas me-root{position:relative}.map-container .map-canvas me-root me-tpc{display:block;font-size:25px;color:var(--root-color);padding:10px var(--gap);border-radius:var(--root-radius);border:var(--root-border-color) 2px solid;white-space:pre-wrap;background-color:var(--root-bgcolor)}.map-container me-main>me-wrapper{position:relative;margin:45px 65px}.map-container me-main>me-wrapper>me-parent{margin:10px;padding:0}.map-container me-main>me-wrapper>me-parent>me-tpc{border-radius:var(--main-radius);background-color:var(--main-bgcolor);border:2px solid var(--main-color);color:var(--main-color);padding:8px 25px}.map-container me-wrapper{display:block;pointer-events:none;width:fit-content}.map-container me-children,.map-container me-parent{display:inline-block;vertical-align:middle}.map-container me-parent{position:relative;cursor:pointer;padding:6px var(--gap);margin-top:10px}.map-container me-parent me-tpc{position:relative;display:block;border-radius:3px;color:var(--color);pointer-events:all;max-width:35em;white-space:pre-wrap;padding:var(--topic-padding)}.map-container me-parent me-tpc .insert-preview{position:absolute;width:100%;left:0;z-index:9}.map-container me-parent me-tpc .show{background:#7ad5ff;pointer-events:none;opacity:.7}.map-container me-parent me-tpc .before{height:14px;top:-14px}.map-container me-parent me-tpc .in{height:100%;top:0}.map-container me-parent me-tpc .after{height:14px;bottom:-14px}.map-container me-parent me-epd{position:absolute;height:18px;width:18px;opacity:.8;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgdD0iMTY1NjY1NDcxNzI0MiIgY2xhc3M9Imljb24iIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHZlcnNpb249IjEuMSIKICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+CiAgICA8cGF0aCBkPSJNNTEyIDc0LjY2NjY2N0MyNzAuOTMzMzMzIDc0LjY2NjY2NyA3NC42NjY2NjcgMjcwLjkzMzMzMyA3NC42NjY2NjcgNTEyUzI3MC45MzMzMzMgOTQ5LjMzMzMzMyA1MTIgOTQ5LjMzMzMzMyA5NDkuMzMzMzMzIDc1My4wNjY2NjcgOTQ5LjMzMzMzMyA1MTIgNzUzLjA2NjY2NyA3NC42NjY2NjcgNTEyIDc0LjY2NjY2N3oiIHN0cm9rZS13aWR0aD0iNTQiIHN0cm9rZT0nYmxhY2snIGZpbGw9J3doaXRlJyA+PC9wYXRoPgogICAgPHBhdGggZD0iTTY4Mi42NjY2NjcgNDgwaC0xMzguNjY2NjY3VjM0MS4zMzMzMzNjMC0xNy4wNjY2NjctMTQuOTMzMzMzLTMyLTMyLTMycy0zMiAxNC45MzMzMzMtMzIgMzJ2MTM4LjY2NjY2N0gzNDEuMzMzMzMzYy0xNy4wNjY2NjcgMC0zMiAxNC45MzMzMzMtMzIgMzJzMTQuOTMzMzMzIDMyIDMyIDMyaDEzOC42NjY2NjdWNjgyLjY2NjY2N2MwIDE3LjA2NjY2NyAxNC45MzMzMzMgMzIgMzIgMzJzMzItMTQuOTMzMzMzIDMyLTMydi0xMzguNjY2NjY3SDY4Mi42NjY2NjdjMTcuMDY2NjY3IDAgMzItMTQuOTMzMzMzIDMyLTMycy0xNC45MzMzMzMtMzItMzItMzJ6Ij48L3BhdGg+Cjwvc3ZnPg==);background-repeat:no-repeat;background-size:contain;background-position:center;pointer-events:all;z-index:9}.map-container me-parent me-epd.minus{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgdD0iMTY1NjY1NTU2NDk4NSIgY2xhc3M9Imljb24iIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHZlcnNpb249IjEuMSIKICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+CiAgICA8cGF0aCBkPSJNNTEyIDc0LjY2NjY2N0MyNzAuOTMzMzMzIDc0LjY2NjY2NyA3NC42NjY2NjcgMjcwLjkzMzMzMyA3NC42NjY2NjcgNTEyUzI3MC45MzMzMzMgOTQ5LjMzMzMzMyA1MTIgOTQ5LjMzMzMzMyA5NDkuMzMzMzMzIDc1My4wNjY2NjcgOTQ5LjMzMzMzMyA1MTIgNzUzLjA2NjY2NyA3NC42NjY2NjcgNTEyIDc0LjY2NjY2N3oiIHN0cm9rZS13aWR0aD0iNTQiIHN0cm9rZT0nYmxhY2snIGZpbGw9J3doaXRlJyA+PC9wYXRoPgogICAgPHBhdGggZD0iTTY4Mi42NjY2NjcgNTQ0SDM0MS4zMzMzMzNjLTE3LjA2NjY2NyAwLTMyLTE0LjkzMzMzMy0zMi0zMnMxNC45MzMzMzMtMzIgMzItMzJoMzQxLjMzMzMzNGMxNy4wNjY2NjcgMCAzMiAxNC45MzMzMzMgMzIgMzJzLTE0LjkzMzMzMyAzMi0zMiAzMnoiPjwvcGF0aD4KPC9zdmc+)!important;transition:opacity .3s;opacity:0}.map-container me-parent me-epd.minus:hover{opacity:.8}.map-container .icon{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.map-container .lines,.map-container .summary,.map-container .subLines,.map-container .topiclinks,.map-container .linkcontroller{position:absolute;height:102%;width:100%;top:0;left:0}.map-container .topiclinks,.map-container .linkcontroller,.map-container .summary{pointer-events:none}.map-container .topiclinks text,.map-container .linkcontroller text,.map-container .summary text{pointer-events:all}.map-container .topiclinks .selected,.map-container .linkcontroller .selected,.map-container .summary .selected{pointer-events:none}.map-container .lines,.map-container .subLines{pointer-events:none;z-index:-1}.map-container .topiclinks *,.map-container .linkcontroller *{z-index:100}.map-container .topiclinks g{cursor:pointer}.map-container #input-box{position:absolute;top:0;left:0;width:max-content;max-width:35em;z-index:11;direction:ltr;-webkit-user-select:auto;user-select:auto;pointer-events:auto;background-color:var(--bgcolor)}.map-container me-tpc>*{pointer-events:none}.map-container me-tpc>a{pointer-events:auto}.map-container me-tpc>img{display:block;margin-bottom:8px;object-fit:cover}.map-container me-tpc>.text{display:inline-block}.map-container .circle{position:absolute;height:10px;width:10px;margin-top:-5px;margin-left:-5px;border-radius:100%;background:#757575;border:2px solid #ffffff;cursor:pointer}.map-container .tags{direction:ltr}.map-container .tags span{display:inline-block;border-radius:3px;padding:2px 4px;background:#d6f0f8;color:#276f86;margin:2px 4px 0 0;font-size:12px;line-height:1.3em}.map-container .icons{display:inline-block;direction:ltr;margin-right:10px}.map-container .icons span{display:inline-block;line-height:1.3em}.map-container .mind-elixir-ghost{position:fixed;top:-100%;left:-100%;box-sizing:content-box;opacity:.5;background-color:#f6f6f6;max-width:200px;width:fit-content;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:8px 16px;border-radius:6px;border:#666666 2px solid}.map-container .selection-area{background:#4f90f22d;border:1px solid #4f90f2}.mind-elixir .context-menu{position:fixed;top:0;left:0;width:100%;height:100%;z-index:99}.mind-elixir .context-menu .menu-list{position:fixed;list-style:none;margin:0;padding:0;color:var(--panel-color);box-shadow:0 12px 15px #0003;border-radius:5px;overflow:hidden}.mind-elixir .context-menu .menu-list li{min-width:200px;overflow:hidden;white-space:nowrap;padding:6px 10px;background:var(--panel-bgcolor);border-bottom:1px solid var(--panel-border-color);cursor:pointer}.mind-elixir .context-menu .menu-list li span{line-height:20px}.mind-elixir .context-menu .menu-list li a{color:#333;text-decoration:none}.mind-elixir .context-menu .menu-list li.disabled{display:none}.mind-elixir .context-menu .menu-list li:hover{filter:brightness(.95)}.mind-elixir .context-menu .menu-list li:last-child{border-bottom:0}.mind-elixir .context-menu .menu-list li span:last-child{float:right}.mind-elixir .context-menu .key{font-size:10px;background-color:#f1f1f1;color:#333;padding:2px 5px;border-radius:3px}.mind-elixir .tips{position:absolute;bottom:20px;left:50%;transform:translate(-50%);color:var(--panel-color);font-weight:bolder}.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)}})();
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;--root-border-color: rgba(0, 0, 0, 0);--main-color: #444446;--main-bgcolor: #ffffff;--topic-padding: 3px;--color: #777777;--bgcolor: #f6f6f6;--selected: #4dc4ff;--panel-color: #444446;--panel-bgcolor: #ffffff;--panel-border-color: #eaeaea;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif}.mind-elixir .hyper-link{text-decoration:none;margin-left:.3em}.map-container{-webkit-user-select:none;user-select:none;height:100%;width:100%;overflow:scroll;font-size:15px}.map-container *{box-sizing:border-box}.map-container::-webkit-scrollbar{width:0px;height:0px}.map-container .selected{outline:2px solid var(--selected);outline-offset:1px}.map-container .lhs{direction:rtl}.map-container .lhs me-tpc{direction:ltr}.map-container .map-canvas{height:20000px;width:20000px;position:relative;-webkit-user-select:none;user-select:none;transition:transform .3s;transform:scale(1);background-color:var(--bgcolor)}.map-container .map-canvas me-nodes{position:absolute;display:flex;justify-content:center;align-items:center;height:fit-content;width:fit-content}.map-container .map-canvas me-root{position:relative}.map-container .map-canvas me-root me-tpc{display:block;font-size:25px;color:var(--root-color);padding:10px var(--gap);border-radius:var(--root-radius);border:var(--root-border-color) 2px solid;white-space:pre-wrap;background-color:var(--root-bgcolor)}.map-container me-main>me-wrapper{position:relative;margin:45px 65px}.map-container me-main>me-wrapper>me-parent{margin:10px;padding:0}.map-container me-main>me-wrapper>me-parent>me-tpc{border-radius:var(--main-radius);background-color:var(--main-bgcolor);border:2px solid var(--main-color);color:var(--main-color);padding:8px 25px}.map-container me-wrapper{display:block;pointer-events:none;width:fit-content}.map-container me-children,.map-container me-parent{display:inline-block;vertical-align:middle}.map-container me-parent{position:relative;cursor:pointer;padding:6px var(--gap);margin-top:10px}.map-container me-parent me-tpc{position:relative;display:block;border-radius:3px;color:var(--color);pointer-events:all;max-width:35em;white-space:pre-wrap;padding:var(--topic-padding)}.map-container me-parent me-tpc .insert-preview{position:absolute;width:100%;left:0;z-index:9}.map-container me-parent me-tpc .show{background:#7ad5ff;pointer-events:none;opacity:.7}.map-container me-parent me-tpc .before{height:14px;top:-14px}.map-container me-parent me-tpc .in{height:100%;top:0}.map-container me-parent me-tpc .after{height:14px;bottom:-14px}.map-container me-parent me-epd{position:absolute;height:18px;width:18px;opacity:.8;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgdD0iMTY1NjY1NDcxNzI0MiIgY2xhc3M9Imljb24iIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHZlcnNpb249IjEuMSIKICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+CiAgICA8cGF0aCBkPSJNNTEyIDc0LjY2NjY2N0MyNzAuOTMzMzMzIDc0LjY2NjY2NyA3NC42NjY2NjcgMjcwLjkzMzMzMyA3NC42NjY2NjcgNTEyUzI3MC45MzMzMzMgOTQ5LjMzMzMzMyA1MTIgOTQ5LjMzMzMzMyA5NDkuMzMzMzMzIDc1My4wNjY2NjcgOTQ5LjMzMzMzMyA1MTIgNzUzLjA2NjY2NyA3NC42NjY2NjcgNTEyIDc0LjY2NjY2N3oiIHN0cm9rZS13aWR0aD0iNTQiIHN0cm9rZT0nYmxhY2snIGZpbGw9J3doaXRlJyA+PC9wYXRoPgogICAgPHBhdGggZD0iTTY4Mi42NjY2NjcgNDgwaC0xMzguNjY2NjY3VjM0MS4zMzMzMzNjMC0xNy4wNjY2NjctMTQuOTMzMzMzLTMyLTMyLTMycy0zMiAxNC45MzMzMzMtMzIgMzJ2MTM4LjY2NjY2N0gzNDEuMzMzMzMzYy0xNy4wNjY2NjcgMC0zMiAxNC45MzMzMzMtMzIgMzJzMTQuOTMzMzMzIDMyIDMyIDMyaDEzOC42NjY2NjdWNjgyLjY2NjY2N2MwIDE3LjA2NjY2NyAxNC45MzMzMzMgMzIgMzIgMzJzMzItMTQuOTMzMzMzIDMyLTMydi0xMzguNjY2NjY3SDY4Mi42NjY2NjdjMTcuMDY2NjY3IDAgMzItMTQuOTMzMzMzIDMyLTMycy0xNC45MzMzMzMtMzItMzItMzJ6Ij48L3BhdGg+Cjwvc3ZnPg==);background-repeat:no-repeat;background-size:contain;background-position:center;pointer-events:all;z-index:9}.map-container me-parent me-epd.minus{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgdD0iMTY1NjY1NTU2NDk4NSIgY2xhc3M9Imljb24iIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHZlcnNpb249IjEuMSIKICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+CiAgICA8cGF0aCBkPSJNNTEyIDc0LjY2NjY2N0MyNzAuOTMzMzMzIDc0LjY2NjY2NyA3NC42NjY2NjcgMjcwLjkzMzMzMyA3NC42NjY2NjcgNTEyUzI3MC45MzMzMzMgOTQ5LjMzMzMzMyA1MTIgOTQ5LjMzMzMzMyA5NDkuMzMzMzMzIDc1My4wNjY2NjcgOTQ5LjMzMzMzMyA1MTIgNzUzLjA2NjY2NyA3NC42NjY2NjcgNTEyIDc0LjY2NjY2N3oiIHN0cm9rZS13aWR0aD0iNTQiIHN0cm9rZT0nYmxhY2snIGZpbGw9J3doaXRlJyA+PC9wYXRoPgogICAgPHBhdGggZD0iTTY4Mi42NjY2NjcgNTQ0SDM0MS4zMzMzMzNjLTE3LjA2NjY2NyAwLTMyLTE0LjkzMzMzMy0zMi0zMnMxNC45MzMzMzMtMzIgMzItMzJoMzQxLjMzMzMzNGMxNy4wNjY2NjcgMCAzMiAxNC45MzMzMzMgMzIgMzJzLTE0LjkzMzMzMyAzMi0zMiAzMnoiPjwvcGF0aD4KPC9zdmc+)!important;transition:opacity .3s;opacity:0}.map-container me-parent me-epd.minus:hover{opacity:.8}.map-container .icon{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.map-container .lines,.map-container .summary,.map-container .subLines,.map-container .topiclinks,.map-container .linkcontroller{position:absolute;height:102%;width:100%;top:0;left:0}.map-container .topiclinks,.map-container .linkcontroller,.map-container .summary{pointer-events:none}.map-container .topiclinks text,.map-container .linkcontroller text,.map-container .summary text{pointer-events:all}.map-container .topiclinks .selected,.map-container .linkcontroller .selected,.map-container .summary .selected{pointer-events:none}.map-container .lines,.map-container .subLines{pointer-events:none;z-index:-1}.map-container .topiclinks *,.map-container .linkcontroller *{z-index:100}.map-container .topiclinks g{cursor:pointer}.map-container #input-box{position:absolute;top:0;left:0;width:max-content;max-width:35em;z-index:11;direction:ltr;-webkit-user-select:auto;user-select:auto;pointer-events:auto;background-color:var(--bgcolor)}.map-container me-tpc>*{pointer-events:none}.map-container me-tpc>a{pointer-events:auto}.map-container me-tpc>img{display:block;margin-bottom:8px;object-fit:cover}.map-container me-tpc>.text{display:inline-block}.map-container .circle{position:absolute;height:10px;width:10px;margin-top:-5px;margin-left:-5px;border-radius:100%;background:#757575;border:2px solid #ffffff;cursor:pointer}.map-container .tags{direction:ltr}.map-container .tags span{display:inline-block;border-radius:3px;padding:2px 4px;background:#d6f0f8;color:#276f86;margin:2px 4px 0 0;font-size:12px;line-height:1.3em}.map-container .icons{display:inline-block;direction:ltr;margin-left:5px}.map-container .icons span{display:inline-block;line-height:1.3em}.map-container .mind-elixir-ghost{position:fixed;top:-100%;left:-100%;box-sizing:content-box;opacity:.5;background-color:#f6f6f6;max-width:200px;width:fit-content;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:8px 16px;border-radius:6px;border:#666666 2px solid}.map-container .selection-area{background:#4f90f22d;border:1px solid #4f90f2}.mind-elixir .context-menu{position:fixed;top:0;left:0;width:100%;height:100%;z-index:99}.mind-elixir .context-menu .menu-list{position:fixed;list-style:none;margin:0;padding:0;color:var(--panel-color);box-shadow:0 12px 15px #0003;border-radius:5px;overflow:hidden}.mind-elixir .context-menu .menu-list li{min-width:200px;overflow:hidden;white-space:nowrap;padding:6px 10px;background:var(--panel-bgcolor);border-bottom:1px solid var(--panel-border-color);cursor:pointer}.mind-elixir .context-menu .menu-list li span{line-height:20px}.mind-elixir .context-menu .menu-list li a{color:#333;text-decoration:none}.mind-elixir .context-menu .menu-list li.disabled{display:none}.mind-elixir .context-menu .menu-list li:hover{filter:brightness(.95)}.mind-elixir .context-menu .menu-list li:last-child{border-bottom:0}.mind-elixir .context-menu .menu-list li span:last-child{float:right}.mind-elixir .context-menu .key{font-size:10px;background-color:#f1f1f1;color:#333;padding:2px 5px;border-radius:3px}.mind-elixir .tips{position:absolute;bottom:20px;left:50%;transform:translate(-50%);color:var(--panel-color);font-weight:bolder}.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
2
  (function(e) {
3
- var t, n, o, s, i, r, l = '<svg><symbol id="icon-edit" viewBox="0 0 1024 1024"><path d="M423.765333 128a42.666667 42.666667 0 0 1 3.2 85.205333L423.765333 213.333333H234.666667a64 64 0 0 0-63.872 60.245334L170.666667 277.333333v512a64 64 0 0 0 60.245333 63.872L234.666667 853.333333h512a64 64 0 0 0 63.872-60.245333L810.666667 789.333333v-189.098666a42.666667 42.666667 0 0 1 85.205333-3.2l0.128 3.2V789.333333a149.333333 149.333333 0 0 1-144.213333 149.248L746.666667 938.666667h-512a149.333333 149.333333 0 0 1-149.248-144.213334L85.333333 789.333333v-512a149.333333 149.333333 0 0 1 144.213334-149.248L234.666667 128h189.098666z m324.949334-53.248a42.666667 42.666667 0 0 1 60.330666 0l150.869334 150.869333a42.666667 42.666667 0 0 1 0 60.330667l-329.386667 329.386667a42.666667 42.666667 0 0 1-29.44 12.458666l-153.386667 2.517334a42.666667 42.666667 0 0 1-43.349333-43.349334l2.56-153.386666a42.666667 42.666667 0 0 1 12.458667-29.44z m30.165333 90.496L491.946667 452.266667l-1.493334 91.989333 92.032-1.493333 286.976-286.976-90.538666-90.538667z" ></path></symbol><symbol id="icon-rising" viewBox="0 0 1024 1024"><path d="M553.173333 803.84h-64l0.021334-474.581333-224.021334 224-45.269333-45.226667L521.6 206.293333l301.717333 301.696-45.269333 45.269334-224.853333-224.896v475.477333z" ></path></symbol><symbol id="icon-falling" viewBox="0 0 1024 1024"><path d="M553.173333 238.314667h-64l0.021334 474.602666-224.021334-224-45.269333 45.226667L521.6 835.861333l301.717333-301.717333-45.269333-45.226667-224.853333 224.853334V238.336z" ></path></symbol><symbol id="icon-shanchu2" viewBox="0 0 1024 1024"><path d="M516.60601807 107.93026734c-82.64382935 0-149.71865844 65.51751709-152.5729065 147.77160644H171.37136841c-21.40603638 0-38.92044068 17.38504028-38.92044068 38.92126465 0 21.40686036 17.38504028 38.92208862 38.92126466 38.92208862h42.94308471v435.40136719c0 81.73498536 55.39828492 148.55026245 123.90106201 148.55026245h348.99444581c68.37341309 0 123.90106201-66.42553711 123.901062-148.55026245V333.80477906h38.92126465c21.40686036 0 38.92126464-17.38586426 38.92126465-38.92208863 0-21.40686036-17.38504028-38.92126464-38.92126465-38.92126465H668.91854859C666.45321656 173.44860839 599.24902344 107.93109131 516.60601807 107.93109131z m-79.65939331 147.77160644c2.85424805-42.16442872 37.2354126-74.85809326 79.78875732-74.85809326s76.93450927 32.82302857 79.39984131 74.85809326H436.94662476z m-98.86047364 589.01165771c-24.2611084 0-50.98754883-31.13717651-50.98754883-75.76693725V333.80477906h450.97036744V769.33551026c0 44.50039673-26.72644043 75.76776123-50.98754884 75.76776122H338.08615112v-0.38973999z m0 0" ></path><path d="M390.37063599 751.17263794c17.77313232 0 32.43411255-17.7739563 32.43411255-40.08883667V482.35504151c0-22.31488037-14.53079224-40.08966065-32.43411255-40.08966065-17.77478027 0-32.43493653 17.77478027-32.43493653 40.08966065v228.72875976c0 22.18469239 14.27124023 40.08883667 32.43493653 40.08883667z m117.41308594 0c17.7739563 0 32.43411255-17.7739563 32.43411255-40.08883667V482.35504151c0-22.31488037-14.53079224-40.08966065-32.43411255-40.08966065-17.7739563 0-32.43493653 17.77478027-32.43493653 40.08966065v228.72875976c0 22.18469239 14.66098023 40.08883667 32.43493653 40.08883667z m123.51049804 0c17.7739563 0 32.43493653-17.7739563 32.43493652-40.08883667V482.35504151c0-22.31488037-14.53079224-40.08966065-32.43493652-40.08966065-17.7739563 0-32.43411255 17.77478027-32.43411255 40.08966065v228.72875976c0 22.18469239 14.14105224 40.08883667 32.43411255 40.08883667z m0 0" ></path></symbol><symbol id="icon-zijiedian" viewBox="0 0 1024 1024"><path d="M312.208 472c19.568-157.856 153.432-280 315.656-280 175.68 0 318.112 143.272 318.112 320S803.552 832 627.864 832c-162.224 0-296.08-122.144-315.656-280H120a40 40 0 0 1 0-80h192.208zM632 752c132.552 0 240-107.448 240-240 0-132.552-107.448-240-240-240-132.552 0-240 107.448-240 240 0 132.552 107.448 240 240 240z m-40-280v-80a40 40 0 0 1 80 0v80h80a40 40 0 0 1 0 80h-80v80a40 40 0 0 1-80 0v-80h-80a40 40 0 0 1 0-80h80z" ></path></symbol><symbol id="icon-tongjijiedian-" viewBox="0 0 1024 1024"><path d="M803.84 131.626667H410.24A59.733333 59.733333 0 0 0 350.506667 192v45.226667H199.68a51.626667 51.626667 0 0 0-51.626667 51.626666v465.92a51.626667 51.626667 0 0 0 51.626667 51.626667h187.52v-55.466667h-162.133333a21.333333 21.333333 0 0 1-21.333334-21.333333V313.386667a21.333333 21.333333 0 0 1 21.333334-21.333334h125.653333v64a59.733333 59.733333 0 0 0 59.733333 59.733334h393.386667a59.733333 59.733333 0 0 0 59.733333-59.733334V192a59.733333 59.733333 0 0 0-59.733333-60.373333z m4.266667 224.64a4.266667 4.266667 0 0 1-4.266667 4.266666H410.24a4.266667 4.266667 0 0 1-4.266667-4.266666V192a4.266667 4.266667 0 0 1 4.266667-4.266667h393.6a4.266667 4.266667 0 0 1 4.266667 4.266667zM716.16 749.44h-81.28v-81.493333a27.733333 27.733333 0 0 0-55.466667 0v81.28h-81.493333a27.733333 27.733333 0 1 0 0 55.466666h81.28v81.28a27.733333 27.733333 0 1 0 55.466667 0v-81.066666h81.28a27.733333 27.733333 0 0 0 0-55.466667z" ></path></symbol><symbol id="icon-close" viewBox="0 0 1024 1024"><path d="M557.312 513.248l265.28-263.904c12.544-12.48 12.608-32.704 0.128-45.248-12.512-12.576-32.704-12.608-45.248-0.128L512.128 467.904l-263.04-263.84c-12.448-12.48-32.704-12.544-45.248-0.064-12.512 12.48-12.544 32.736-0.064 45.28l262.976 263.776L201.6 776.8c-12.544 12.48-12.608 32.704-0.128 45.248a31.937 31.937 0 0 0 22.688 9.44c8.16 0 16.32-3.104 22.56-9.312l265.216-263.808 265.44 266.24c6.24 6.272 14.432 9.408 22.656 9.408a31.94 31.94 0 0 0 22.592-9.344c12.512-12.48 12.544-32.704 0.064-45.248L557.312 513.248z" fill="" ></path></symbol><symbol id="icon-menu" viewBox="0 0 1024 1024"><path d="M109.714 292.571h804.572c21.943 0 36.571-21.942 36.571-43.885 0-14.629-14.628-29.257-36.571-29.257H109.714c-21.943 0-36.571 14.628-36.571 36.571 0 14.629 14.628 36.571 36.571 36.571zM914.286 512H109.714c-21.943 0-36.571 14.629-36.571 36.571 0 14.629 14.628 36.572 36.571 36.572h804.572c21.943 0 36.571-21.943 36.571-43.886 0-14.628-14.628-29.257-36.571-29.257z m0 292.571H109.714c-21.943 0-36.571 14.629-36.571 36.572s14.628 36.571 36.571 36.571h804.572c21.943 0 36.571-21.943 36.571-36.571 0-21.943-14.628-36.572-36.571-36.572z" ></path></symbol><symbol id="icon-right" viewBox="0 0 1024 1024"><path d="M385 560.69999999L385 738.9c0 36.90000001 26.4 68.5 61.3 68.5l150.2 0c1.5 0 3-0.1 4.5-0.3 10.2 38.7 45.5 67.3 87.5 67.3 50 0 90.5-40.5 90.5-90.5s-40.5-90.5-90.5-90.5c-42 0-77.3 28.6-87.5 67.39999999-1.4-0.3-2.9-0.4-4.5-0.39999999L446.3 760.4c-6.8 0-14.3-8.9-14.3-21.49999999l0-427.00000001c0-12.7 7.40000001-21.5 14.30000001-21.5l150.19999999 0c1.5 0 3-0.2 4.5-0.4 10.2 38.8 45.5 67.3 87.5 67.3 50 0 90.5-40.5 90.5-90.4 0-49.9-40.5-90.6-90.5-90.59999999-42 0-77.3 28.6-87.5 67.39999999-1.4-0.2-2.9-0.4-4.49999999-0.4L446.3 243.3c-34.80000001 0-61.3 31.6-61.3 68.50000001L385 513.7l-79.1 0c-10.4-38.5-45.49999999-67-87.4-67-50 0-90.5 40.5-90.5 90.5s40.5 90.5 90.5 90.5c41.79999999 0 77.00000001-28.4 87.4-67L385 560.69999999z" fill="" ></path></symbol><symbol id="icon-left" viewBox="0 0 1024 1024"><path d="M639 463.30000001L639 285.1c0-36.90000001-26.4-68.5-61.3-68.5l-150.2 0c-1.5 0-3 0.1-4.5 0.3-10.2-38.7-45.5-67.3-87.5-67.3-50 0-90.5 40.5-90.5 90.5s40.5 90.5 90.5 90.5c42 0 77.3-28.6 87.5-67.39999999 1.4 0.3 2.9 0.4 4.5 0.39999999L577.7 263.6c6.8 0 14.3 8.9 14.3 21.49999999l0 427.00000001c0 12.7-7.40000001 21.5-14.30000001 21.5l-150.19999999 0c-1.5 0-3 0.2-4.5 0.4-10.2-38.8-45.5-67.3-87.5-67.3-50 0-90.5 40.5-90.5 90.4 0 49.9 40.5 90.6 90.5 90.59999999 42 0 77.3-28.6 87.5-67.39999999 1.4 0.2 2.9 0.4 4.49999999 0.4L577.7 780.7c34.80000001 0 61.3-31.6 61.3-68.50000001L639 510.3l79.1 0c10.4 38.5 45.49999999 67 87.4 67 50 0 90.5-40.5 90.5-90.5s-40.5-90.5-90.5-90.5c-41.79999999 0-77.00000001 28.4-87.4 67L639 463.30000001z" fill="" ></path></symbol><symbol id="icon-side" viewBox="0 0 1024 1024"><path d="M851.91168 328.45312c-59.97056 0-108.6208 48.47104-108.91264 108.36992l-137.92768 38.4a109.14304 109.14304 0 0 0-63.46752-46.58688l1.39264-137.11872c47.29344-11.86816 82.31936-54.66624 82.31936-105.64096 0-60.15488-48.76288-108.91776-108.91776-108.91776s-108.91776 48.76288-108.91776 108.91776c0 49.18784 32.60928 90.75712 77.38368 104.27392l-1.41312 138.87488a109.19936 109.19936 0 0 0-63.50336 48.55808l-138.93632-39.48544 0.01024-0.72704c0-60.15488-48.76288-108.91776-108.91776-108.91776s-108.91776 48.75776-108.91776 108.91776c0 60.15488 48.76288 108.91264 108.91776 108.91264 39.3984 0 73.91232-20.92032 93.03552-52.2496l139.19232 39.552-0.00512 0.2304c0 25.8304 9.00096 49.5616 24.02816 68.23424l-90.14272 132.63872a108.7488 108.7488 0 0 0-34.2528-5.504c-60.15488 0-108.91776 48.768-108.91776 108.91776 0 60.16 48.76288 108.91776 108.91776 108.91776 60.16 0 108.92288-48.75776 108.92288-108.91776 0-27.14624-9.9328-51.968-26.36288-71.04l89.04704-131.03104a108.544 108.544 0 0 0 37.6832 6.70208 108.672 108.672 0 0 0 36.48512-6.272l93.13792 132.57216a108.48256 108.48256 0 0 0-24.69888 69.0688c0 60.16 48.768 108.92288 108.91776 108.92288 60.16 0 108.91776-48.76288 108.91776-108.92288 0-60.14976-48.75776-108.91776-108.91776-108.91776a108.80512 108.80512 0 0 0-36.69504 6.3488l-93.07136-132.48a108.48768 108.48768 0 0 0 24.79616-72.22784l136.09984-37.888c18.99008 31.93856 53.84192 53.3504 93.69088 53.3504 60.16 0 108.92288-48.75776 108.92288-108.91264-0.00512-60.15488-48.77312-108.92288-108.92288-108.92288z" ></path></symbol><symbol id="icon-B" viewBox="0 0 1024 1024"><path d="M98.067692 65.457231H481.28c75.854769 0 132.411077 3.150769 169.668923 9.452307 37.336615 6.301538 70.656 19.534769 100.036923 39.620924 29.459692 20.007385 53.956923 46.710154 73.570462 80.029538 19.692308 33.398154 29.459692 70.734769 29.459692 112.167385 0 44.898462-12.130462 86.094769-36.233846 123.588923a224.886154 224.886154 0 0 1-98.461539 84.283077c58.368 17.092923 103.266462 46.08 134.695385 87.04 31.350154 40.96 47.025231 89.088 47.025231 144.462769 0 43.638154-10.082462 86.016-30.404923 127.212308-20.243692 41.196308-47.891692 74.043077-83.02277 98.697846-35.052308 24.654769-78.296615 39.778462-129.732923 45.449846-32.295385 3.465846-110.119385 5.671385-233.472 6.537846H98.067692V65.457231z m193.536 159.507692V446.621538h126.818462c75.460923 0 122.328615-1.024 140.603077-3.229538 33.083077-3.938462 59.155692-15.36 78.139077-34.343385 18.904615-18.904615 28.435692-43.874462 28.435692-74.830769 0-29.696-8.192-53.720615-24.497231-72.310154-16.384-18.510769-40.644923-29.696-72.940307-33.634461-19.140923-2.205538-74.279385-3.308308-165.415385-3.308308h-111.064615z m0 381.243077v256.315077h179.2c69.710769 0 113.979077-1.969231 132.726154-5.907692 28.750769-5.198769 52.145231-17.959385 70.262154-38.281847 18.116923-20.243692 27.096615-47.340308 27.096615-81.368615 0-28.750769-6.931692-53.169231-20.873846-73.255385a118.232615 118.232615 0 0 0-60.494769-43.795692c-26.387692-9.137231-83.574154-13.705846-171.638154-13.705846H291.603692z" ></path></symbol><symbol id="icon-a" viewBox="0 0 1024 1024"><path d="M757.76 665.6q0 20.48 1.536 34.304t7.68 22.016 18.944 12.288 34.304 4.096q-3.072 25.6-15.36 44.032-11.264 16.384-33.28 29.696t-62.976 13.312q-11.264 0-20.48-0.512t-17.408-2.56l-6.144-2.048-1.024 0q-4.096-1.024-10.24-4.096-2.048-2.048-4.096-2.048-1.024-1.024-2.048-1.024-14.336-8.192-23.552-17.408t-14.336-17.408q-6.144-10.24-9.216-20.48-63.488 75.776-178.176 75.776-48.128 0-88.064-15.36t-69.12-44.032-45.056-68.096-15.872-88.576 16.896-89.088 47.616-67.584 74.24-42.496 96.768-14.848q48.128 0 88.576 17.408t66.048 49.152q0-8.192 0.512-16.384t0.512-15.36q0-71.68-39.936-104.448t-128-32.768q-43.008 0-84.992 6.656t-84.992 17.92q14.336-28.672 25.088-47.616t24.064-29.184q30.72-24.576 158.72-24.576 79.872 0 135.168 13.824t90.624 43.52 51.2 75.264 15.872 108.032l0 200.704zM487.424 743.424q50.176 0 79.872-33.28t29.696-95.744q0-61.44-28.672-93.696t-76.8-32.256q-52.224 0-82.944 33.28t-30.72 94.72q0 58.368 31.744 92.672t77.824 34.304z" ></path></symbol><symbol id="icon-full" viewBox="0 0 1024 1024"><path d="M639.328 416c8.032 0 16.096-3.008 22.304-9.056l202.624-197.184-0.8 143.808c-0.096 17.696 14.144 32.096 31.808 32.192 0.064 0 0.128 0 0.192 0 17.6 0 31.904-14.208 32-31.808l1.248-222.208c0-0.672-0.352-1.248-0.384-1.92 0.032-0.512 0.288-0.896 0.288-1.408 0.032-17.664-14.272-32-31.968-32.032L671.552 96l-0.032 0c-17.664 0-31.968 14.304-32 31.968C639.488 145.632 653.824 160 671.488 160l151.872 0.224-206.368 200.8c-12.672 12.32-12.928 32.608-0.64 45.248C622.656 412.736 630.976 416 639.328 416z" ></path><path d="M896.032 639.552 896.032 639.552c-17.696 0-32 14.304-32.032 31.968l-0.224 151.872-200.832-206.4c-12.32-12.64-32.576-12.96-45.248-0.64-12.672 12.352-12.928 32.608-0.64 45.248l197.184 202.624-143.808-0.8c-0.064 0-0.128 0-0.192 0-17.6 0-31.904 14.208-32 31.808-0.096 17.696 14.144 32.096 31.808 32.192l222.24 1.248c0.064 0 0.128 0 0.192 0 0.64 0 1.12-0.32 1.76-0.352 0.512 0.032 0.896 0.288 1.408 0.288l0.032 0c17.664 0 31.968-14.304 32-31.968L928 671.584C928.032 653.952 913.728 639.584 896.032 639.552z" ></path><path d="M209.76 159.744l143.808 0.8c0.064 0 0.128 0 0.192 0 17.6 0 31.904-14.208 32-31.808 0.096-17.696-14.144-32.096-31.808-32.192L131.68 95.328c-0.064 0-0.128 0-0.192 0-0.672 0-1.248 0.352-1.888 0.384-0.448 0-0.8-0.256-1.248-0.256 0 0-0.032 0-0.032 0-17.664 0-31.968 14.304-32 31.968L96 352.448c-0.032 17.664 14.272 32 31.968 32.032 0 0 0.032 0 0.032 0 17.664 0 31.968-14.304 32-31.968l0.224-151.936 200.832 206.4c6.272 6.464 14.624 9.696 22.944 9.696 8.032 0 16.096-3.008 22.304-9.056 12.672-12.32 12.96-32.608 0.64-45.248L209.76 159.744z" ></path><path d="M362.368 617.056l-202.624 197.184 0.8-143.808c0.096-17.696-14.144-32.096-31.808-32.192-0.064 0-0.128 0-0.192 0-17.6 0-31.904 14.208-32 31.808l-1.248 222.24c0 0.704 0.352 1.312 0.384 2.016 0 0.448-0.256 0.832-0.256 1.312-0.032 17.664 14.272 32 31.968 32.032L352.448 928c0 0 0.032 0 0.032 0 17.664 0 31.968-14.304 32-31.968s-14.272-32-31.968-32.032l-151.936-0.224 206.4-200.832c12.672-12.352 12.96-32.608 0.64-45.248S375.008 604.704 362.368 617.056z" ></path></symbol><symbol id="icon-add" viewBox="0 0 1024 1024"><path d="M863.328 482.56l-317.344-1.12L545.984 162.816c0-17.664-14.336-32-32-32s-32 14.336-32 32l0 318.4L159.616 480.064c-0.032 0-0.064 0-0.096 0-17.632 0-31.936 14.24-32 31.904C127.424 529.632 141.728 544 159.392 544.064l322.592 1.152 0 319.168c0 17.696 14.336 32 32 32s32-14.304 32-32l0-318.944 317.088 1.12c0.064 0 0.096 0 0.128 0 17.632 0 31.936-14.24 32-31.904C895.264 496.992 880.96 482.624 863.328 482.56z" ></path></symbol><symbol id="icon-move" viewBox="0 0 1024 1024"><path d="M863.744 544 163.424 544c-17.664 0-32-14.336-32-32s14.336-32 32-32l700.32 0c17.696 0 32 14.336 32 32S881.44 544 863.744 544z" ></path></symbol><symbol id="icon-living" viewBox="0 0 1024 1024"><path d="M514.133333 488.533333m-106.666666 0a106.666667 106.666667 0 1 0 213.333333 0 106.666667 106.666667 0 1 0-213.333333 0Z" fill="" ></path><path d="M512 64C264.533333 64 64 264.533333 64 512c0 236.8 183.466667 428.8 416 445.866667v-134.4c-53.333333-59.733333-200.533333-230.4-200.533333-334.933334 0-130.133333 104.533333-234.666667 234.666666-234.666666s234.666667 104.533333 234.666667 234.666666c0 61.866667-49.066667 153.6-145.066667 270.933334l-59.733333 68.266666V960C776.533333 942.933333 960 748.8 960 512c0-247.466667-200.533333-448-448-448z" fill="" ></path></symbol></svg>', c = (c = document.getElementsByTagName("script"))[c.length - 1].getAttribute("data-injectcss");
4
- if (c && !e.__iconfont__svg__cssinject__) {
3
+ var t, n, o, s, i, r, c = '<svg><symbol id="icon-edit" viewBox="0 0 1024 1024"><path d="M423.765333 128a42.666667 42.666667 0 0 1 3.2 85.205333L423.765333 213.333333H234.666667a64 64 0 0 0-63.872 60.245334L170.666667 277.333333v512a64 64 0 0 0 60.245333 63.872L234.666667 853.333333h512a64 64 0 0 0 63.872-60.245333L810.666667 789.333333v-189.098666a42.666667 42.666667 0 0 1 85.205333-3.2l0.128 3.2V789.333333a149.333333 149.333333 0 0 1-144.213333 149.248L746.666667 938.666667h-512a149.333333 149.333333 0 0 1-149.248-144.213334L85.333333 789.333333v-512a149.333333 149.333333 0 0 1 144.213334-149.248L234.666667 128h189.098666z m324.949334-53.248a42.666667 42.666667 0 0 1 60.330666 0l150.869334 150.869333a42.666667 42.666667 0 0 1 0 60.330667l-329.386667 329.386667a42.666667 42.666667 0 0 1-29.44 12.458666l-153.386667 2.517334a42.666667 42.666667 0 0 1-43.349333-43.349334l2.56-153.386666a42.666667 42.666667 0 0 1 12.458667-29.44z m30.165333 90.496L491.946667 452.266667l-1.493334 91.989333 92.032-1.493333 286.976-286.976-90.538666-90.538667z" ></path></symbol><symbol id="icon-rising" viewBox="0 0 1024 1024"><path d="M553.173333 803.84h-64l0.021334-474.581333-224.021334 224-45.269333-45.226667L521.6 206.293333l301.717333 301.696-45.269333 45.269334-224.853333-224.896v475.477333z" ></path></symbol><symbol id="icon-falling" viewBox="0 0 1024 1024"><path d="M553.173333 238.314667h-64l0.021334 474.602666-224.021334-224-45.269333 45.226667L521.6 835.861333l301.717333-301.717333-45.269333-45.226667-224.853333 224.853334V238.336z" ></path></symbol><symbol id="icon-shanchu2" viewBox="0 0 1024 1024"><path d="M516.60601807 107.93026734c-82.64382935 0-149.71865844 65.51751709-152.5729065 147.77160644H171.37136841c-21.40603638 0-38.92044068 17.38504028-38.92044068 38.92126465 0 21.40686036 17.38504028 38.92208862 38.92126466 38.92208862h42.94308471v435.40136719c0 81.73498536 55.39828492 148.55026245 123.90106201 148.55026245h348.99444581c68.37341309 0 123.90106201-66.42553711 123.901062-148.55026245V333.80477906h38.92126465c21.40686036 0 38.92126464-17.38586426 38.92126465-38.92208863 0-21.40686036-17.38504028-38.92126464-38.92126465-38.92126465H668.91854859C666.45321656 173.44860839 599.24902344 107.93109131 516.60601807 107.93109131z m-79.65939331 147.77160644c2.85424805-42.16442872 37.2354126-74.85809326 79.78875732-74.85809326s76.93450927 32.82302857 79.39984131 74.85809326H436.94662476z m-98.86047364 589.01165771c-24.2611084 0-50.98754883-31.13717651-50.98754883-75.76693725V333.80477906h450.97036744V769.33551026c0 44.50039673-26.72644043 75.76776123-50.98754884 75.76776122H338.08615112v-0.38973999z m0 0" ></path><path d="M390.37063599 751.17263794c17.77313232 0 32.43411255-17.7739563 32.43411255-40.08883667V482.35504151c0-22.31488037-14.53079224-40.08966065-32.43411255-40.08966065-17.77478027 0-32.43493653 17.77478027-32.43493653 40.08966065v228.72875976c0 22.18469239 14.27124023 40.08883667 32.43493653 40.08883667z m117.41308594 0c17.7739563 0 32.43411255-17.7739563 32.43411255-40.08883667V482.35504151c0-22.31488037-14.53079224-40.08966065-32.43411255-40.08966065-17.7739563 0-32.43493653 17.77478027-32.43493653 40.08966065v228.72875976c0 22.18469239 14.66098023 40.08883667 32.43493653 40.08883667z m123.51049804 0c17.7739563 0 32.43493653-17.7739563 32.43493652-40.08883667V482.35504151c0-22.31488037-14.53079224-40.08966065-32.43493652-40.08966065-17.7739563 0-32.43411255 17.77478027-32.43411255 40.08966065v228.72875976c0 22.18469239 14.14105224 40.08883667 32.43411255 40.08883667z m0 0" ></path></symbol><symbol id="icon-zijiedian" viewBox="0 0 1024 1024"><path d="M312.208 472c19.568-157.856 153.432-280 315.656-280 175.68 0 318.112 143.272 318.112 320S803.552 832 627.864 832c-162.224 0-296.08-122.144-315.656-280H120a40 40 0 0 1 0-80h192.208zM632 752c132.552 0 240-107.448 240-240 0-132.552-107.448-240-240-240-132.552 0-240 107.448-240 240 0 132.552 107.448 240 240 240z m-40-280v-80a40 40 0 0 1 80 0v80h80a40 40 0 0 1 0 80h-80v80a40 40 0 0 1-80 0v-80h-80a40 40 0 0 1 0-80h80z" ></path></symbol><symbol id="icon-tongjijiedian-" viewBox="0 0 1024 1024"><path d="M803.84 131.626667H410.24A59.733333 59.733333 0 0 0 350.506667 192v45.226667H199.68a51.626667 51.626667 0 0 0-51.626667 51.626666v465.92a51.626667 51.626667 0 0 0 51.626667 51.626667h187.52v-55.466667h-162.133333a21.333333 21.333333 0 0 1-21.333334-21.333333V313.386667a21.333333 21.333333 0 0 1 21.333334-21.333334h125.653333v64a59.733333 59.733333 0 0 0 59.733333 59.733334h393.386667a59.733333 59.733333 0 0 0 59.733333-59.733334V192a59.733333 59.733333 0 0 0-59.733333-60.373333z m4.266667 224.64a4.266667 4.266667 0 0 1-4.266667 4.266666H410.24a4.266667 4.266667 0 0 1-4.266667-4.266666V192a4.266667 4.266667 0 0 1 4.266667-4.266667h393.6a4.266667 4.266667 0 0 1 4.266667 4.266667zM716.16 749.44h-81.28v-81.493333a27.733333 27.733333 0 0 0-55.466667 0v81.28h-81.493333a27.733333 27.733333 0 1 0 0 55.466666h81.28v81.28a27.733333 27.733333 0 1 0 55.466667 0v-81.066666h81.28a27.733333 27.733333 0 0 0 0-55.466667z" ></path></symbol><symbol id="icon-close" viewBox="0 0 1024 1024"><path d="M557.312 513.248l265.28-263.904c12.544-12.48 12.608-32.704 0.128-45.248-12.512-12.576-32.704-12.608-45.248-0.128L512.128 467.904l-263.04-263.84c-12.448-12.48-32.704-12.544-45.248-0.064-12.512 12.48-12.544 32.736-0.064 45.28l262.976 263.776L201.6 776.8c-12.544 12.48-12.608 32.704-0.128 45.248a31.937 31.937 0 0 0 22.688 9.44c8.16 0 16.32-3.104 22.56-9.312l265.216-263.808 265.44 266.24c6.24 6.272 14.432 9.408 22.656 9.408a31.94 31.94 0 0 0 22.592-9.344c12.512-12.48 12.544-32.704 0.064-45.248L557.312 513.248z" fill="" ></path></symbol><symbol id="icon-menu" viewBox="0 0 1024 1024"><path d="M109.714 292.571h804.572c21.943 0 36.571-21.942 36.571-43.885 0-14.629-14.628-29.257-36.571-29.257H109.714c-21.943 0-36.571 14.628-36.571 36.571 0 14.629 14.628 36.571 36.571 36.571zM914.286 512H109.714c-21.943 0-36.571 14.629-36.571 36.571 0 14.629 14.628 36.572 36.571 36.572h804.572c21.943 0 36.571-21.943 36.571-43.886 0-14.628-14.628-29.257-36.571-29.257z m0 292.571H109.714c-21.943 0-36.571 14.629-36.571 36.572s14.628 36.571 36.571 36.571h804.572c21.943 0 36.571-21.943 36.571-36.571 0-21.943-14.628-36.572-36.571-36.572z" ></path></symbol><symbol id="icon-right" viewBox="0 0 1024 1024"><path d="M385 560.69999999L385 738.9c0 36.90000001 26.4 68.5 61.3 68.5l150.2 0c1.5 0 3-0.1 4.5-0.3 10.2 38.7 45.5 67.3 87.5 67.3 50 0 90.5-40.5 90.5-90.5s-40.5-90.5-90.5-90.5c-42 0-77.3 28.6-87.5 67.39999999-1.4-0.3-2.9-0.4-4.5-0.39999999L446.3 760.4c-6.8 0-14.3-8.9-14.3-21.49999999l0-427.00000001c0-12.7 7.40000001-21.5 14.30000001-21.5l150.19999999 0c1.5 0 3-0.2 4.5-0.4 10.2 38.8 45.5 67.3 87.5 67.3 50 0 90.5-40.5 90.5-90.4 0-49.9-40.5-90.6-90.5-90.59999999-42 0-77.3 28.6-87.5 67.39999999-1.4-0.2-2.9-0.4-4.49999999-0.4L446.3 243.3c-34.80000001 0-61.3 31.6-61.3 68.50000001L385 513.7l-79.1 0c-10.4-38.5-45.49999999-67-87.4-67-50 0-90.5 40.5-90.5 90.5s40.5 90.5 90.5 90.5c41.79999999 0 77.00000001-28.4 87.4-67L385 560.69999999z" fill="" ></path></symbol><symbol id="icon-left" viewBox="0 0 1024 1024"><path d="M639 463.30000001L639 285.1c0-36.90000001-26.4-68.5-61.3-68.5l-150.2 0c-1.5 0-3 0.1-4.5 0.3-10.2-38.7-45.5-67.3-87.5-67.3-50 0-90.5 40.5-90.5 90.5s40.5 90.5 90.5 90.5c42 0 77.3-28.6 87.5-67.39999999 1.4 0.3 2.9 0.4 4.5 0.39999999L577.7 263.6c6.8 0 14.3 8.9 14.3 21.49999999l0 427.00000001c0 12.7-7.40000001 21.5-14.30000001 21.5l-150.19999999 0c-1.5 0-3 0.2-4.5 0.4-10.2-38.8-45.5-67.3-87.5-67.3-50 0-90.5 40.5-90.5 90.4 0 49.9 40.5 90.6 90.5 90.59999999 42 0 77.3-28.6 87.5-67.39999999 1.4 0.2 2.9 0.4 4.49999999 0.4L577.7 780.7c34.80000001 0 61.3-31.6 61.3-68.50000001L639 510.3l79.1 0c10.4 38.5 45.49999999 67 87.4 67 50 0 90.5-40.5 90.5-90.5s-40.5-90.5-90.5-90.5c-41.79999999 0-77.00000001 28.4-87.4 67L639 463.30000001z" fill="" ></path></symbol><symbol id="icon-side" viewBox="0 0 1024 1024"><path d="M851.91168 328.45312c-59.97056 0-108.6208 48.47104-108.91264 108.36992l-137.92768 38.4a109.14304 109.14304 0 0 0-63.46752-46.58688l1.39264-137.11872c47.29344-11.86816 82.31936-54.66624 82.31936-105.64096 0-60.15488-48.76288-108.91776-108.91776-108.91776s-108.91776 48.76288-108.91776 108.91776c0 49.18784 32.60928 90.75712 77.38368 104.27392l-1.41312 138.87488a109.19936 109.19936 0 0 0-63.50336 48.55808l-138.93632-39.48544 0.01024-0.72704c0-60.15488-48.76288-108.91776-108.91776-108.91776s-108.91776 48.75776-108.91776 108.91776c0 60.15488 48.76288 108.91264 108.91776 108.91264 39.3984 0 73.91232-20.92032 93.03552-52.2496l139.19232 39.552-0.00512 0.2304c0 25.8304 9.00096 49.5616 24.02816 68.23424l-90.14272 132.63872a108.7488 108.7488 0 0 0-34.2528-5.504c-60.15488 0-108.91776 48.768-108.91776 108.91776 0 60.16 48.76288 108.91776 108.91776 108.91776 60.16 0 108.92288-48.75776 108.92288-108.91776 0-27.14624-9.9328-51.968-26.36288-71.04l89.04704-131.03104a108.544 108.544 0 0 0 37.6832 6.70208 108.672 108.672 0 0 0 36.48512-6.272l93.13792 132.57216a108.48256 108.48256 0 0 0-24.69888 69.0688c0 60.16 48.768 108.92288 108.91776 108.92288 60.16 0 108.91776-48.76288 108.91776-108.92288 0-60.14976-48.75776-108.91776-108.91776-108.91776a108.80512 108.80512 0 0 0-36.69504 6.3488l-93.07136-132.48a108.48768 108.48768 0 0 0 24.79616-72.22784l136.09984-37.888c18.99008 31.93856 53.84192 53.3504 93.69088 53.3504 60.16 0 108.92288-48.75776 108.92288-108.91264-0.00512-60.15488-48.77312-108.92288-108.92288-108.92288z" ></path></symbol><symbol id="icon-B" viewBox="0 0 1024 1024"><path d="M98.067692 65.457231H481.28c75.854769 0 132.411077 3.150769 169.668923 9.452307 37.336615 6.301538 70.656 19.534769 100.036923 39.620924 29.459692 20.007385 53.956923 46.710154 73.570462 80.029538 19.692308 33.398154 29.459692 70.734769 29.459692 112.167385 0 44.898462-12.130462 86.094769-36.233846 123.588923a224.886154 224.886154 0 0 1-98.461539 84.283077c58.368 17.092923 103.266462 46.08 134.695385 87.04 31.350154 40.96 47.025231 89.088 47.025231 144.462769 0 43.638154-10.082462 86.016-30.404923 127.212308-20.243692 41.196308-47.891692 74.043077-83.02277 98.697846-35.052308 24.654769-78.296615 39.778462-129.732923 45.449846-32.295385 3.465846-110.119385 5.671385-233.472 6.537846H98.067692V65.457231z m193.536 159.507692V446.621538h126.818462c75.460923 0 122.328615-1.024 140.603077-3.229538 33.083077-3.938462 59.155692-15.36 78.139077-34.343385 18.904615-18.904615 28.435692-43.874462 28.435692-74.830769 0-29.696-8.192-53.720615-24.497231-72.310154-16.384-18.510769-40.644923-29.696-72.940307-33.634461-19.140923-2.205538-74.279385-3.308308-165.415385-3.308308h-111.064615z m0 381.243077v256.315077h179.2c69.710769 0 113.979077-1.969231 132.726154-5.907692 28.750769-5.198769 52.145231-17.959385 70.262154-38.281847 18.116923-20.243692 27.096615-47.340308 27.096615-81.368615 0-28.750769-6.931692-53.169231-20.873846-73.255385a118.232615 118.232615 0 0 0-60.494769-43.795692c-26.387692-9.137231-83.574154-13.705846-171.638154-13.705846H291.603692z" ></path></symbol><symbol id="icon-a" viewBox="0 0 1024 1024"><path d="M757.76 665.6q0 20.48 1.536 34.304t7.68 22.016 18.944 12.288 34.304 4.096q-3.072 25.6-15.36 44.032-11.264 16.384-33.28 29.696t-62.976 13.312q-11.264 0-20.48-0.512t-17.408-2.56l-6.144-2.048-1.024 0q-4.096-1.024-10.24-4.096-2.048-2.048-4.096-2.048-1.024-1.024-2.048-1.024-14.336-8.192-23.552-17.408t-14.336-17.408q-6.144-10.24-9.216-20.48-63.488 75.776-178.176 75.776-48.128 0-88.064-15.36t-69.12-44.032-45.056-68.096-15.872-88.576 16.896-89.088 47.616-67.584 74.24-42.496 96.768-14.848q48.128 0 88.576 17.408t66.048 49.152q0-8.192 0.512-16.384t0.512-15.36q0-71.68-39.936-104.448t-128-32.768q-43.008 0-84.992 6.656t-84.992 17.92q14.336-28.672 25.088-47.616t24.064-29.184q30.72-24.576 158.72-24.576 79.872 0 135.168 13.824t90.624 43.52 51.2 75.264 15.872 108.032l0 200.704zM487.424 743.424q50.176 0 79.872-33.28t29.696-95.744q0-61.44-28.672-93.696t-76.8-32.256q-52.224 0-82.944 33.28t-30.72 94.72q0 58.368 31.744 92.672t77.824 34.304z" ></path></symbol><symbol id="icon-full" viewBox="0 0 1024 1024"><path d="M639.328 416c8.032 0 16.096-3.008 22.304-9.056l202.624-197.184-0.8 143.808c-0.096 17.696 14.144 32.096 31.808 32.192 0.064 0 0.128 0 0.192 0 17.6 0 31.904-14.208 32-31.808l1.248-222.208c0-0.672-0.352-1.248-0.384-1.92 0.032-0.512 0.288-0.896 0.288-1.408 0.032-17.664-14.272-32-31.968-32.032L671.552 96l-0.032 0c-17.664 0-31.968 14.304-32 31.968C639.488 145.632 653.824 160 671.488 160l151.872 0.224-206.368 200.8c-12.672 12.32-12.928 32.608-0.64 45.248C622.656 412.736 630.976 416 639.328 416z" ></path><path d="M896.032 639.552 896.032 639.552c-17.696 0-32 14.304-32.032 31.968l-0.224 151.872-200.832-206.4c-12.32-12.64-32.576-12.96-45.248-0.64-12.672 12.352-12.928 32.608-0.64 45.248l197.184 202.624-143.808-0.8c-0.064 0-0.128 0-0.192 0-17.6 0-31.904 14.208-32 31.808-0.096 17.696 14.144 32.096 31.808 32.192l222.24 1.248c0.064 0 0.128 0 0.192 0 0.64 0 1.12-0.32 1.76-0.352 0.512 0.032 0.896 0.288 1.408 0.288l0.032 0c17.664 0 31.968-14.304 32-31.968L928 671.584C928.032 653.952 913.728 639.584 896.032 639.552z" ></path><path d="M209.76 159.744l143.808 0.8c0.064 0 0.128 0 0.192 0 17.6 0 31.904-14.208 32-31.808 0.096-17.696-14.144-32.096-31.808-32.192L131.68 95.328c-0.064 0-0.128 0-0.192 0-0.672 0-1.248 0.352-1.888 0.384-0.448 0-0.8-0.256-1.248-0.256 0 0-0.032 0-0.032 0-17.664 0-31.968 14.304-32 31.968L96 352.448c-0.032 17.664 14.272 32 31.968 32.032 0 0 0.032 0 0.032 0 17.664 0 31.968-14.304 32-31.968l0.224-151.936 200.832 206.4c6.272 6.464 14.624 9.696 22.944 9.696 8.032 0 16.096-3.008 22.304-9.056 12.672-12.32 12.96-32.608 0.64-45.248L209.76 159.744z" ></path><path d="M362.368 617.056l-202.624 197.184 0.8-143.808c0.096-17.696-14.144-32.096-31.808-32.192-0.064 0-0.128 0-0.192 0-17.6 0-31.904 14.208-32 31.808l-1.248 222.24c0 0.704 0.352 1.312 0.384 2.016 0 0.448-0.256 0.832-0.256 1.312-0.032 17.664 14.272 32 31.968 32.032L352.448 928c0 0 0.032 0 0.032 0 17.664 0 31.968-14.304 32-31.968s-14.272-32-31.968-32.032l-151.936-0.224 206.4-200.832c12.672-12.352 12.96-32.608 0.64-45.248S375.008 604.704 362.368 617.056z" ></path></symbol><symbol id="icon-add" viewBox="0 0 1024 1024"><path d="M863.328 482.56l-317.344-1.12L545.984 162.816c0-17.664-14.336-32-32-32s-32 14.336-32 32l0 318.4L159.616 480.064c-0.032 0-0.064 0-0.096 0-17.632 0-31.936 14.24-32 31.904C127.424 529.632 141.728 544 159.392 544.064l322.592 1.152 0 319.168c0 17.696 14.336 32 32 32s32-14.304 32-32l0-318.944 317.088 1.12c0.064 0 0.096 0 0.128 0 17.632 0 31.936-14.24 32-31.904C895.264 496.992 880.96 482.624 863.328 482.56z" ></path></symbol><symbol id="icon-move" viewBox="0 0 1024 1024"><path d="M863.744 544 163.424 544c-17.664 0-32-14.336-32-32s14.336-32 32-32l700.32 0c17.696 0 32 14.336 32 32S881.44 544 863.744 544z" ></path></symbol><symbol id="icon-living" viewBox="0 0 1024 1024"><path d="M514.133333 488.533333m-106.666666 0a106.666667 106.666667 0 1 0 213.333333 0 106.666667 106.666667 0 1 0-213.333333 0Z" fill="" ></path><path d="M512 64C264.533333 64 64 264.533333 64 512c0 236.8 183.466667 428.8 416 445.866667v-134.4c-53.333333-59.733333-200.533333-230.4-200.533333-334.933334 0-130.133333 104.533333-234.666667 234.666666-234.666666s234.666667 104.533333 234.666667 234.666666c0 61.866667-49.066667 153.6-145.066667 270.933334l-59.733333 68.266666V960C776.533333 942.933333 960 748.8 960 512c0-247.466667-200.533333-448-448-448z" fill="" ></path></symbol></svg>', l = (l = document.getElementsByTagName("script"))[l.length - 1].getAttribute("data-injectcss");
4
+ if (l && !e.__iconfont__svg__cssinject__) {
5
5
  e.__iconfont__svg__cssinject__ = !0;
6
6
  try {
7
7
  document.write(
@@ -10,12 +10,12 @@
10
10
  } catch {
11
11
  }
12
12
  }
13
- function d() {
13
+ function f() {
14
14
  i || (i = !0, o());
15
15
  }
16
16
  t = function() {
17
- var h, a, f, g;
18
- (g = document.createElement("div")).innerHTML = l, l = null, (f = g.getElementsByTagName("svg")[0]) && (f.setAttribute("aria-hidden", "true"), f.style.position = "absolute", f.style.width = 0, f.style.height = 0, f.style.overflow = "hidden", h = f, (a = document.body).firstChild ? (g = h, (f = a.firstChild).parentNode.insertBefore(g, f)) : a.appendChild(h));
17
+ var h, a, d, p;
18
+ (p = document.createElement("div")).innerHTML = c, c = 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", h = d, (a = document.body).firstChild ? (p = h, (d = a.firstChild).parentNode.insertBefore(p, d)) : a.appendChild(h));
19
19
  }, document.addEventListener ? ~["complete", "loaded", "interactive"].indexOf(document.readyState) ? setTimeout(t, 0) : (n = function() {
20
20
  document.removeEventListener("DOMContentLoaded", n, !1), t();
21
21
  }, document.addEventListener("DOMContentLoaded", n, !1)) : document.attachEvent && (o = t, s = e.document, i = !1, (r = function() {
@@ -24,12 +24,12 @@
24
24
  } catch {
25
25
  return void setTimeout(r, 50);
26
26
  }
27
- d();
27
+ f();
28
28
  })(), s.onreadystatechange = function() {
29
- s.readyState == "complete" && (s.onreadystatechange = null, d());
29
+ s.readyState == "complete" && (s.onreadystatechange = null, f());
30
30
  });
31
31
  })(window);
32
- const O = 0, J = 1, Q = 2, ge = {
32
+ const D = 0, W = 1, R = 2, se = {
33
33
  name: "Latte",
34
34
  type: "light",
35
35
  palette: ["#dd7878", "#ea76cb", "#8839ef", "#e64553", "#fe640b", "#df8e1d", "#40a02b", "#209fb5", "#1e66f5", "#7287fd"],
@@ -43,7 +43,7 @@ const O = 0, J = 1, Q = 2, ge = {
43
43
  "--panel-bgcolor": "#ffffff",
44
44
  "--panel-border-color": "#eaeaea"
45
45
  }
46
- }, ve = {
46
+ }, ie = {
47
47
  name: "Dark",
48
48
  type: "dark",
49
49
  palette: ["#848FA0", "#748BE9", "#D2F9FE", "#4145A5", "#789AFA", "#706CF4", "#EF987F", "#775DD5", "#FCEECF", "#DA7FBC"],
@@ -57,48 +57,48 @@ const O = 0, J = 1, Q = 2, ge = {
57
57
  "--panel-border-color": "#696969"
58
58
  }
59
59
  };
60
- function se(e) {
60
+ function Q(e) {
61
61
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/"/g, "&quot;");
62
62
  }
63
- const G = function(e, t) {
63
+ const q = function(e, t) {
64
64
  if (t.id === e)
65
65
  return t;
66
66
  if (t.children && t.children.length) {
67
67
  for (let n = 0; n < t.children.length; n++) {
68
- const o = G(e, t.children[n]);
68
+ const o = q(e, t.children[n]);
69
69
  if (o)
70
70
  return o;
71
71
  }
72
72
  return null;
73
73
  } else
74
74
  return null;
75
- }, Z = (e, t) => {
75
+ }, G = (e, t) => {
76
76
  if (e.parent = t, e.children)
77
77
  for (let n = 0; n < e.children.length; n++)
78
- Z(e.children[n], e);
78
+ G(e.children[n], e);
79
79
  };
80
- function ye(e, t, n, o) {
80
+ function re(e, t, n, o) {
81
81
  const s = o - t, i = e - n;
82
82
  let r = Math.atan(Math.abs(s) / Math.abs(i)) / 3.14 * 180;
83
83
  i < 0 && s > 0 && (r = 180 - r), i < 0 && s < 0 && (r = 180 + r), i > 0 && s < 0 && (r = 360 - r);
84
- const l = 15, c = 30, d = r + c, h = r - c;
84
+ const c = 15, l = 30, f = r + l, h = r - l;
85
85
  return {
86
- x1: n + Math.cos(Math.PI * d / 180) * l,
87
- y1: o - Math.sin(Math.PI * d / 180) * l,
88
- x2: n + Math.cos(Math.PI * h / 180) * l,
89
- y2: o - Math.sin(Math.PI * h / 180) * l
86
+ x1: n + Math.cos(Math.PI * f / 180) * c,
87
+ y1: o - Math.sin(Math.PI * f / 180) * c,
88
+ x2: n + Math.cos(Math.PI * h / 180) * c,
89
+ y2: o - Math.sin(Math.PI * h / 180) * c
90
90
  };
91
91
  }
92
- function ee() {
92
+ function Y() {
93
93
  return ((/* @__PURE__ */ new Date()).getTime().toString(16) + Math.random().toString(16).substr(2)).substr(2, 16);
94
94
  }
95
- const Ne = function() {
96
- const e = ee();
95
+ const ye = function() {
96
+ const e = Y();
97
97
  return {
98
98
  topic: this.newTopicName,
99
99
  id: e
100
100
  };
101
- }, $ = (e, t) => {
101
+ }, M = (e, t) => {
102
102
  let n = 0, o = 0;
103
103
  for (; t && t !== e; )
104
104
  n += t.offsetLeft, o += t.offsetTop, t = t.offsetParent;
@@ -106,7 +106,7 @@ const Ne = function() {
106
106
  }, x = (e, t) => {
107
107
  for (const n in t)
108
108
  e.setAttribute(n, t[n]);
109
- }, ie = (e) => e ? e.tagName === "ME-TPC" : !1, A = {
109
+ }, Z = (e) => e ? e.tagName === "ME-TPC" : !1, N = {
110
110
  moved: !1,
111
111
  // diffrentiate click and move
112
112
  mousedown: !1,
@@ -121,7 +121,7 @@ const Ne = function() {
121
121
  this.moved = !1, this.mousedown = !1;
122
122
  }
123
123
  };
124
- function Ae(e) {
124
+ function xe(e) {
125
125
  e.map.addEventListener("click", (t) => {
126
126
  var o, s;
127
127
  if (t.button !== 0)
@@ -134,15 +134,15 @@ function Ae(e) {
134
134
  e.helper2.clear();
135
135
  return;
136
136
  }
137
- if (A.moved) {
138
- A.clear();
137
+ if (N.moved) {
138
+ N.clear();
139
139
  return;
140
140
  }
141
141
  e.clearSelection();
142
142
  const n = t.target;
143
143
  if (n.tagName === "ME-EPD")
144
144
  e.expandNode(n.previousSibling);
145
- else if (ie(n))
145
+ else if (Z(n))
146
146
  e.selectNode(n, !1, t);
147
147
  else if (e.editable)
148
148
  n.tagName === "text" ? n.dataset.type === "custom-link" ? e.selectArrow(n.parentElement) : e.selectSummary(n.parentElement) : n.className;
@@ -152,21 +152,21 @@ function Ae(e) {
152
152
  if (!e.editable)
153
153
  return;
154
154
  const n = t.target;
155
- ie(n) ? e.beginEdit(n) : n.tagName === "text" && (n.dataset.type === "custom-link" ? e.editArrowLabel(n.parentElement) : e.editSummary(n.parentElement));
155
+ Z(n) ? e.beginEdit(n) : n.tagName === "text" && (n.dataset.type === "custom-link" ? e.editArrowLabel(n.parentElement) : e.editSummary(n.parentElement));
156
156
  }), e.map.addEventListener("mousemove", (t) => {
157
- t.target.contentEditable !== "true" && A.onMove(t, e.container);
157
+ t.target.contentEditable !== "true" && N.onMove(t, e.container);
158
158
  }), e.map.addEventListener("mousedown", (t) => {
159
159
  const n = e.mouseSelectionButton === 0 ? 2 : 0;
160
- t.button === n && t.target.contentEditable !== "true" && (A.moved = !1, A.mousedown = !0);
160
+ t.button === n && t.target.contentEditable !== "true" && (N.moved = !1, N.mousedown = !0);
161
161
  }), e.map.addEventListener("mouseleave", (t) => {
162
162
  const n = e.mouseSelectionButton === 0 ? 2 : 0;
163
- t.button === n && A.clear();
163
+ t.button === n && N.clear();
164
164
  }), e.map.addEventListener("mouseup", (t) => {
165
165
  const n = e.mouseSelectionButton === 0 ? 2 : 0;
166
- t.button === n && A.clear();
166
+ t.button === n && N.clear();
167
167
  });
168
168
  }
169
- const ke = {
169
+ const ve = {
170
170
  create() {
171
171
  return {
172
172
  handlers: {},
@@ -194,43 +194,43 @@ const ke = {
194
194
  }
195
195
  };
196
196
  }
197
- }, K = document, Be = function() {
197
+ }, I = document, be = function() {
198
198
  this.nodes.innerHTML = "";
199
199
  const e = this.createTopic(this.nodeData);
200
- be(e, this.nodeData), e.draggable = !1;
201
- const t = K.createElement("me-root");
200
+ ce(e, this.nodeData), e.draggable = !1;
201
+ const t = I.createElement("me-root");
202
202
  t.appendChild(e);
203
203
  const n = this.nodeData.children || [];
204
- if (this.direction === Q) {
204
+ if (this.direction === R) {
205
205
  let o = 0, s = 0;
206
206
  n.map((i) => {
207
- i.direction === O ? o += 1 : i.direction === J ? s += 1 : o <= s ? (i.direction = O, o += 1) : (i.direction = J, s += 1);
207
+ i.direction === D ? o += 1 : i.direction === W ? s += 1 : o <= s ? (i.direction = D, o += 1) : (i.direction = W, s += 1);
208
208
  });
209
209
  }
210
- De(this, n, t);
211
- }, De = function(e, t, n) {
212
- const o = K.createElement("me-main");
210
+ we(this, n, t);
211
+ }, we = function(e, t, n) {
212
+ const o = I.createElement("me-main");
213
213
  o.className = "lhs";
214
- const s = K.createElement("me-main");
214
+ const s = I.createElement("me-main");
215
215
  s.className = "rhs";
216
216
  for (let i = 0; i < t.length; i++) {
217
- const r = t[i], { grp: l } = e.createWrapper(r);
218
- e.direction === Q ? r.direction === O ? o.appendChild(l) : s.appendChild(l) : e.direction === O ? o.appendChild(l) : s.appendChild(l);
217
+ const r = t[i], { grp: c } = e.createWrapper(r);
218
+ e.direction === R ? r.direction === D ? o.appendChild(c) : s.appendChild(c) : e.direction === D ? o.appendChild(c) : s.appendChild(c);
219
219
  }
220
220
  e.nodes.appendChild(o), e.nodes.appendChild(n), e.nodes.appendChild(s), e.nodes.appendChild(e.lines);
221
- }, He = function(e, t) {
222
- const n = K.createElement("me-children");
221
+ }, Ce = function(e, t) {
222
+ const n = I.createElement("me-children");
223
223
  for (let o = 0; o < t.length; o++) {
224
224
  const s = t[o], { grp: i } = e.createWrapper(s);
225
225
  n.appendChild(i);
226
226
  }
227
227
  return n;
228
- }, S = document, L = (e, t) => {
229
- const o = (t ? t.mindElixirBox : S).querySelector(`[data-nodeid=me${e}]`);
228
+ }, E = document, S = (e, t) => {
229
+ const o = (t ? t.mindElixirBox : E).querySelector(`[data-nodeid=me${e}]`);
230
230
  if (!o)
231
231
  throw new Error(`FindEle: Node ${e} not found, maybe it's collapsed.`);
232
232
  return o;
233
- }, be = function(e, t) {
233
+ }, ce = function(e, t) {
234
234
  if (e.innerHTML = "", 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.dangerouslySetInnerHTML) {
235
235
  e.innerHTML = t.dangerouslySetInnerHTML;
236
236
  return;
@@ -238,60 +238,60 @@ const ke = {
238
238
  if (t.image) {
239
239
  const n = t.image;
240
240
  if (n.url && n.width && n.height) {
241
- const o = S.createElement("img");
241
+ const o = E.createElement("img");
242
242
  o.src = n.url, o.style.width = n.width + "px", o.style.height = n.height + "px", n.fit && (o.style.objectFit = n.fit), e.appendChild(o), e.image = o;
243
243
  }
244
244
  } else
245
245
  e.image && (e.image = void 0);
246
246
  {
247
- const n = S.createElement("span");
247
+ const n = E.createElement("span");
248
248
  n.className = "text", n.textContent = t.topic, e.appendChild(n), e.text = n;
249
249
  }
250
250
  if (t.hyperLink) {
251
- const n = S.createElement("a");
251
+ const n = E.createElement("a");
252
252
  n.className = "hyper-link", n.target = "_blank", n.innerText = "🔗", n.href = t.hyperLink, e.appendChild(n), e.link = n;
253
253
  } else
254
254
  e.link && (e.link = void 0);
255
255
  if (t.icons && t.icons.length) {
256
- const n = S.createElement("span");
257
- n.className = "icons", n.innerHTML = t.icons.map((o) => `<span>${se(o)}</span>`).join(""), e.appendChild(n), e.icons = n;
256
+ const n = E.createElement("span");
257
+ n.className = "icons", n.innerHTML = t.icons.map((o) => `<span>${Q(o)}</span>`).join(""), e.appendChild(n), e.icons = n;
258
258
  } else
259
259
  e.icons && (e.icons = void 0);
260
260
  if (t.tags && t.tags.length) {
261
- const n = S.createElement("div");
262
- n.className = "tags", n.innerHTML = t.tags.map((o) => `<span>${se(o)}</span>`).join(""), e.appendChild(n), e.tags = n;
261
+ const n = E.createElement("div");
262
+ n.className = "tags", n.innerHTML = t.tags.map((o) => `<span>${Q(o)}</span>`).join(""), e.appendChild(n), e.tags = n;
263
263
  } else
264
264
  e.tags && (e.tags = void 0);
265
- }, Pe = function(e, t) {
266
- const n = S.createElement("me-wrapper"), { p: o, tpc: s } = this.createParent(e);
265
+ }, Ee = function(e, t) {
266
+ const n = E.createElement("me-wrapper"), { p: o, tpc: s } = this.createParent(e);
267
267
  if (n.appendChild(o), !t && e.children && e.children.length > 0) {
268
- const i = Re(e.expanded);
268
+ const i = Ne(e.expanded);
269
269
  if (o.appendChild(i), e.expanded !== !1) {
270
- const r = He(this, e.children);
270
+ const r = Ce(this, e.children);
271
271
  n.appendChild(r);
272
272
  }
273
273
  }
274
274
  return { grp: n, top: o, tpc: s };
275
- }, ze = function(e) {
276
- const t = S.createElement("me-parent"), n = this.createTopic(e);
277
- return be(n, e), t.appendChild(n), { p: t, tpc: n };
278
- }, je = function(e) {
279
- const t = S.createElement("me-children");
275
+ }, Le = function(e) {
276
+ const t = E.createElement("me-parent"), n = this.createTopic(e);
277
+ return ce(n, e), t.appendChild(n), { p: t, tpc: n };
278
+ }, Se = function(e) {
279
+ const t = E.createElement("me-children");
280
280
  return t.append(...e), t;
281
- }, Oe = function(e) {
282
- const t = S.createElement("me-tpc");
281
+ }, Me = function(e) {
282
+ const t = E.createElement("me-tpc");
283
283
  return t.nodeObj = e, t.dataset.nodeid = "me" + e.id, t.draggable = this.draggable, t;
284
284
  };
285
- function xe(e) {
286
- const t = S.createRange();
285
+ function le(e) {
286
+ const t = E.createRange();
287
287
  t.selectNodeContents(e);
288
288
  const n = window.getSelection();
289
289
  n && (n.removeAllRanges(), n.addRange(t));
290
290
  }
291
- const qe = function(e) {
291
+ const $e = function(e) {
292
292
  if (!e)
293
293
  return;
294
- const t = S.createElement("div"), n = e.text.textContent;
294
+ const t = E.createElement("div"), n = e.text.textContent;
295
295
  e.appendChild(t), t.id = "input-box", t.textContent = n, t.contentEditable = "true", t.spellcheck = !1;
296
296
  const o = getComputedStyle(e);
297
297
  t.style.cssText = `min-width:${e.offsetWidth - 8}px;
@@ -300,7 +300,7 @@ const qe = function(e) {
300
300
  margin:${o.margin};
301
301
  font:${o.font};
302
302
  background-color:${o.backgroundColor !== "rgba(0, 0, 0, 0)" && o.backgroundColor};
303
- border-radius:${o.borderRadius};`, this.direction === O && (t.style.right = "0"), t.focus(), xe(t), this.bus.fire("operation", {
303
+ border-radius:${o.borderRadius};`, this.direction === D && (t.style.right = "0"), t.focus(), le(t), this.bus.fire("operation", {
304
304
  name: "beginEdit",
305
305
  obj: e.nodeObj
306
306
  }), t.addEventListener("keydown", (s) => {
@@ -309,7 +309,7 @@ const qe = function(e) {
309
309
  if (i === "Enter" || i === "Tab") {
310
310
  if (s.shiftKey)
311
311
  return;
312
- s.preventDefault(), t == null || t.blur(), this.map.focus();
312
+ s.preventDefault(), t.blur(), this.map.focus();
313
313
  }
314
314
  }), t.addEventListener("blur", () => {
315
315
  var r;
@@ -322,30 +322,30 @@ const qe = function(e) {
322
322
  origin: n
323
323
  }));
324
324
  });
325
- }, Re = function(e) {
326
- const t = S.createElement("me-epd");
325
+ }, Ne = function(e) {
326
+ const t = E.createElement("me-epd");
327
327
  return t.expanded = e !== !1, t.className = e !== !1 ? "minus" : "", t;
328
- }, z = document, j = "http://www.w3.org/2000/svg", we = function(e, t, n) {
329
- const o = z.createElementNS(j, "path");
328
+ }, H = document, A = "http://www.w3.org/2000/svg", ae = function(e, t, n) {
329
+ const o = H.createElementNS(A, "path");
330
330
  return x(o, {
331
331
  d: e,
332
332
  stroke: t || "#666",
333
333
  fill: "none",
334
334
  "stroke-width": n
335
335
  }), o;
336
- }, V = function(e) {
337
- const t = z.createElementNS(j, "svg");
336
+ }, z = function(e) {
337
+ const t = H.createElementNS(A, "svg");
338
338
  return t.setAttribute("class", e), t.setAttribute("overflow", "visible"), t;
339
- }, re = function() {
340
- const e = z.createElementNS(j, "line");
339
+ }, ee = function() {
340
+ const e = H.createElementNS(A, "line");
341
341
  return e.setAttribute("stroke", "#bbb"), e.setAttribute("fill", "none"), e.setAttribute("stroke-width", "2"), e;
342
- }, Ve = function(e, t) {
342
+ }, Te = function(e, t) {
343
343
  const n = {
344
344
  stroke: "rgb(235, 95, 82)",
345
345
  fill: "none",
346
346
  "stroke-linecap": "cap",
347
347
  "stroke-width": "2"
348
- }, o = z.createElementNS(j, "g"), s = z.createElementNS(j, "path"), i = z.createElementNS(j, "path");
348
+ }, o = H.createElementNS(A, "g"), s = H.createElementNS(A, "path"), i = H.createElementNS(A, "path");
349
349
  return x(i, {
350
350
  d: t,
351
351
  ...n
@@ -354,67 +354,72 @@ const qe = function(e) {
354
354
  ...n,
355
355
  "stroke-dasharray": "8,2"
356
356
  }), o.appendChild(s), o.appendChild(i), o;
357
- }, _e = function(e, t, n) {
357
+ }, he = function(e, t, n) {
358
358
  if (!t)
359
359
  return;
360
360
  const o = document.createElement("div");
361
361
  e.nodes.appendChild(o);
362
362
  const s = t.innerHTML;
363
363
  o.id = "input-box", o.textContent = s, o.contentEditable = "true", o.spellcheck = !1;
364
- const i = t.getAttribute("x"), r = t.getAttribute("y");
365
- o.style.cssText = `min-width:88px;position:absolute;left:${i}px;top:${r}px;`;
366
- const l = t.getAttribute("text-anchor");
367
- l === "end" ? o.style.cssText += "transform: translate(-100%, -100%);" : l === "middle" ? o.style.cssText += "transform: translate(-50%, -100%);" : o.style.cssText += "transform: translate(0, -100%);", o.focus(), xe(o), o.addEventListener("keydown", (c) => {
368
- c.stopPropagation();
369
- const d = c.key;
370
- if (d === "Enter" || d === "Tab") {
371
- if (c.shiftKey)
364
+ const i = t.getBBox();
365
+ o.style.cssText = `
366
+ min-width:${Math.max(88, i.width)}px;
367
+ position:absolute;
368
+ left:${i.x}px;
369
+ top:${i.y}px;
370
+ padding: 2px 4px;
371
+ margin: -2px -4px;
372
+ `, o.focus(), le(o), o.addEventListener("keydown", (r) => {
373
+ r.stopPropagation();
374
+ const c = r.key;
375
+ if (c === "Enter" || c === "Tab") {
376
+ if (r.shiftKey)
372
377
  return;
373
- c.preventDefault(), o.blur(), e.map.focus();
378
+ r.preventDefault(), o.blur(), e.map.focus();
374
379
  }
375
380
  }), o.addEventListener("blur", () => {
376
381
  o && n(o);
377
382
  });
378
- }, Ie = function(e) {
383
+ }, ke = function(e) {
379
384
  const t = this.map.querySelector("me-root"), n = t.offsetTop, o = t.offsetLeft, s = t.offsetWidth, i = t.offsetHeight;
380
385
  this.nodes.style.top = `${1e4 - this.nodes.offsetHeight / 2}px`, this.nodes.style.left = `${1e4 - o - s / 2}px`;
381
386
  const r = this.map.querySelectorAll("me-main > me-wrapper");
382
387
  this.lines.innerHTML = "";
383
- for (let l = 0; l < r.length; l++) {
384
- const c = r[l], d = c.querySelector("me-tpc"), { offsetLeft: h, offsetTop: a } = $(this.nodes, d), f = d.offsetWidth, g = d.offsetHeight, u = c.parentNode.className, p = this.generateMainBranch({ pT: n, pL: o, pW: s, pH: i, cT: a, cL: h, cW: f, cH: g, direction: u, containerHeight: this.nodes.offsetHeight }), m = this.theme.palette, y = d.nodeObj.branchColor || m[l % m.length];
385
- d.style.borderColor = y, this.lines.appendChild(we(p, y, "3"));
386
- const v = c.children[0].children[1];
387
- if (v && (v.style.top = (v.parentNode.offsetHeight - v.offsetHeight) / 2 + "px", u === "lhs" ? v.style.left = "-10px" : v.style.right = "-10px"), e && e !== c)
388
+ for (let c = 0; c < r.length; c++) {
389
+ const l = r[c], f = l.querySelector("me-tpc"), { offsetLeft: h, offsetTop: a } = M(this.nodes, f), d = f.offsetWidth, p = f.offsetHeight, u = l.parentNode.className, m = this.generateMainBranch({ pT: n, pL: o, pW: s, pH: i, cT: a, cL: h, cW: d, cH: p, direction: u, containerHeight: this.nodes.offsetHeight }), g = this.theme.palette, v = f.nodeObj.branchColor || g[c % g.length];
390
+ f.style.borderColor = v, this.lines.appendChild(ae(m, v, "3"));
391
+ const y = l.children[0].children[1];
392
+ if (y && (y.style.top = (y.parentNode.offsetHeight - y.offsetHeight) / 2 + "px", u === "lhs" ? y.style.left = "-10px" : y.style.right = "-10px"), e && e !== l)
388
393
  continue;
389
- const w = V("subLines"), _ = c.lastChild;
390
- _.tagName === "svg" && _.remove(), c.appendChild(w), Ee(this, w, y, c, u, !0);
394
+ const b = z("subLines"), C = l.lastChild;
395
+ C.tagName === "svg" && C.remove(), l.appendChild(b), de(this, b, v, l, u, !0);
391
396
  }
392
397
  this.renderArrow(), this.renderSummary(), this.bus.fire("linkDiv");
393
- }, Ee = function(e, t, n, o, s, i) {
394
- const r = o.firstChild, l = o.children[1].children;
395
- if (l.length === 0)
398
+ }, de = function(e, t, n, o, s, i) {
399
+ const r = o.firstChild, c = o.children[1].children;
400
+ if (c.length === 0)
396
401
  return;
397
- const c = r.offsetTop, d = r.offsetLeft, h = r.offsetWidth, a = r.offsetHeight;
398
- for (let f = 0; f < l.length; f++) {
399
- const g = l[f], u = g.firstChild, p = u.offsetTop, m = u.offsetLeft, y = u.offsetWidth, v = u.offsetHeight, w = u.firstChild.nodeObj.branchColor || n, _ = e.generateSubBranch({ pT: c, pL: d, pW: h, pH: a, cT: p, cL: m, cW: y, cH: v, direction: s, isFirst: i });
400
- t.appendChild(we(_, w, "2"));
401
- const E = u.children[1];
402
- if (E) {
403
- if (E.style.bottom = -(E.offsetHeight / 2) + "px", s === "lhs" ? E.style.left = "10px" : s === "rhs" && (E.style.right = "10px"), !E.expanded)
402
+ const l = r.offsetTop, f = r.offsetLeft, h = r.offsetWidth, a = r.offsetHeight;
403
+ for (let d = 0; d < c.length; d++) {
404
+ const p = c[d], u = p.firstChild, m = u.offsetTop, g = u.offsetLeft, v = u.offsetWidth, y = u.offsetHeight, b = u.firstChild.nodeObj.branchColor || n, C = e.generateSubBranch({ pT: l, pL: f, pW: h, pH: a, cT: m, cL: g, cW: v, cH: y, direction: s, isFirst: i });
405
+ t.appendChild(ae(C, b, "2"));
406
+ const w = u.children[1];
407
+ if (w) {
408
+ if (w.style.bottom = -(w.offsetHeight / 2) + "px", s === "lhs" ? w.style.left = "10px" : s === "rhs" && (w.style.right = "10px"), !w.expanded)
404
409
  continue;
405
410
  } else
406
411
  continue;
407
- Ee(e, t, w, g, s);
412
+ de(e, t, b, p, s);
408
413
  }
409
414
  };
410
- const D = (e, t) => {
415
+ const T = (e, t) => {
411
416
  const n = document.createElement("span");
412
417
  return n.id = e, n.innerHTML = `<svg class="icon" aria-hidden="true">
413
418
  <use xlink:href="#icon-${t}"></use>
414
419
  </svg>`, n;
415
420
  };
416
- function Fe(e) {
417
- const t = document.createElement("div"), n = D("fullscreen", "full"), o = D("toCenter", "living"), s = D("zoomout", "move"), i = D("zoomin", "add"), r = document.createElement("span");
421
+ function He(e) {
422
+ const t = document.createElement("div"), n = T("fullscreen", "full"), o = T("toCenter", "living"), s = T("zoomout", "move"), i = T("zoomin", "add"), r = document.createElement("span");
418
423
  return r.innerText = "100%", t.appendChild(n), t.appendChild(o), t.appendChild(s), t.appendChild(i), t.className = "mind-elixir-toolbar rb", n.onclick = () => {
419
424
  e.mindElixirBox.requestFullscreen();
420
425
  }, o.onclick = () => {
@@ -425,8 +430,8 @@ function Fe(e) {
425
430
  e.scaleVal > 1.6 || e.scale(e.scaleVal + 0.2);
426
431
  }, t;
427
432
  }
428
- function We(e) {
429
- const t = document.createElement("div"), n = D("tbltl", "left"), o = D("tbltr", "right"), s = D("tblts", "side");
433
+ function Ae(e) {
434
+ const t = document.createElement("div"), n = T("tbltl", "left"), o = T("tbltr", "right"), s = T("tblts", "side");
430
435
  return t.appendChild(n), t.appendChild(o), t.appendChild(s), t.className = "mind-elixir-toolbar lt", n.onclick = () => {
431
436
  e.initLeft();
432
437
  }, o.onclick = () => {
@@ -435,446 +440,10 @@ function We(e) {
435
440
  e.initSide();
436
441
  }, t;
437
442
  }
438
- function Xe(e) {
439
- e.container.append(Fe(e)), e.container.append(We(e));
440
- }
441
- /*! @viselect/vanilla v3.6.0 MIT | https://github.com/Simonwep/selection/tree/master/packages/vanilla */
442
- var Ye = Object.defineProperty, Ge = (e, t, n) => t in e ? Ye(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, b = (e, t, n) => Ge(e, typeof t != "symbol" ? t + "" : t, n);
443
- class Ke {
444
- constructor() {
445
- b(this, "_listeners", /* @__PURE__ */ new Map()), b(this, "on", this.addEventListener), b(this, "off", this.removeEventListener), b(this, "emit", this.dispatchEvent);
446
- }
447
- addEventListener(t, n) {
448
- const o = this._listeners.get(t) ?? /* @__PURE__ */ new Set();
449
- return this._listeners.set(t, o), o.add(n), this;
450
- }
451
- removeEventListener(t, n) {
452
- var o;
453
- return (o = this._listeners.get(t)) == null || o.delete(n), this;
454
- }
455
- dispatchEvent(t, ...n) {
456
- let o = !0;
457
- for (const s of this._listeners.get(t) ?? [])
458
- o = s(...n) !== !1 && o;
459
- return o;
460
- }
461
- unbindAllListeners() {
462
- this._listeners.clear();
463
- }
464
- }
465
- const le = (e, t = "px") => typeof e == "number" ? e + t : e;
466
- function T({ style: e }, t, n) {
467
- if (typeof t == "object")
468
- for (const [o, s] of Object.entries(t))
469
- s !== void 0 && (e[o] = le(s));
470
- else
471
- n !== void 0 && (e[t] = le(n));
472
- }
473
- const Se = (e) => (t, n, o, s = {}) => {
474
- t instanceof HTMLCollection || t instanceof NodeList ? t = Array.from(t) : Array.isArray(t) || (t = [t]), Array.isArray(n) || (n = [n]);
475
- for (const i of t)
476
- if (i)
477
- for (const r of n)
478
- i[e](r, o, { capture: !1, ...s });
479
- return [t, n, o, s];
480
- }, k = Se("addEventListener"), M = Se("removeEventListener"), W = (e) => {
481
- var t;
482
- const { clientX: n, clientY: o, target: s } = ((t = e.touches) == null ? void 0 : t[0]) ?? e;
483
- return { x: n, y: o, target: s };
484
- };
485
- function ce(e, t, n = "touch") {
486
- switch (n) {
487
- case "center": {
488
- const o = t.left + t.width / 2, s = t.top + t.height / 2;
489
- return o >= e.left && o <= e.right && s >= e.top && s <= e.bottom;
490
- }
491
- case "cover":
492
- return t.left >= e.left && t.top >= e.top && t.right <= e.right && t.bottom <= e.bottom;
493
- case "touch":
494
- return e.right >= t.left && e.left <= t.right && e.bottom >= t.top && e.top <= t.bottom;
495
- }
496
- }
497
- function H(e, t = document) {
498
- const n = Array.isArray(e) ? e : [e];
499
- let o = [];
500
- for (let s = 0, i = n.length; s < i; s++) {
501
- const r = n[s];
502
- typeof r == "string" ? o = o.concat(Array.from(t.querySelectorAll(r))) : r instanceof Element && o.push(r);
503
- }
504
- return o;
505
- }
506
- const Ue = () => matchMedia("(hover: none), (pointer: coarse)").matches, Je = () => "safari" in window, Qe = (e) => {
507
- let t, n = -1, o = !1;
508
- return {
509
- next(...s) {
510
- t = s, o || (o = !0, n = requestAnimationFrame(() => {
511
- e(...t), o = !1;
512
- }));
513
- },
514
- cancel() {
515
- cancelAnimationFrame(n), o = !1;
516
- }
517
- };
518
- };
519
- function Ze(e, t) {
520
- for (const n of t) {
521
- if (typeof n == "number")
522
- return e.button === n;
523
- if (typeof n == "object") {
524
- const o = n.button === e.button, s = n.modifiers.every((i) => {
525
- switch (i) {
526
- case "alt":
527
- return e.altKey;
528
- case "ctrl":
529
- return e.ctrlKey || e.metaKey;
530
- case "shift":
531
- return e.shiftKey;
532
- }
533
- });
534
- return o && s;
535
- }
536
- }
537
- return !1;
443
+ function De(e) {
444
+ e.container.append(He(e)), e.container.append(Ae(e));
538
445
  }
539
- const { abs: B, max: ae, min: he, ceil: de } = Math, ue = (e = []) => ({
540
- stored: e,
541
- selected: [],
542
- touched: [],
543
- changed: { added: [], removed: [] }
544
- });
545
- class et extends Ke {
546
- constructor(t) {
547
- var n, o, s, i, r;
548
- super(), b(this, "_options"), b(this, "_selection", ue()), b(this, "_area"), b(this, "_clippingElement"), b(this, "_targetElement"), b(this, "_targetBoundary"), b(this, "_targetBoundaryScrolled", !0), b(this, "_targetRect"), b(this, "_selectables", []), b(this, "_latestElement"), b(this, "_areaLocation", { y1: 0, x2: 0, y2: 0, x1: 0 }), b(this, "_areaRect", new DOMRect()), b(this, "_singleClick", !0), b(this, "_frame"), b(this, "_scrollAvailable", !0), b(this, "_scrollingActive", !1), b(this, "_scrollSpeed", { x: 0, y: 0 }), b(this, "_scrollDelta", { x: 0, y: 0 }), b(this, "disable", this._toggleStartEvents.bind(this, !1)), b(this, "enable", this._toggleStartEvents), this._options = {
549
- selectionAreaClass: "selection-area",
550
- selectionContainerClass: void 0,
551
- selectables: [],
552
- document: window.document,
553
- startAreas: ["html"],
554
- boundaries: ["html"],
555
- container: "body",
556
- ...t,
557
- behaviour: {
558
- overlap: "invert",
559
- intersect: "touch",
560
- triggers: [0],
561
- ...t.behaviour,
562
- 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 },
563
- scrolling: {
564
- speedDivider: 10,
565
- manualSpeed: 750,
566
- ...(o = t.behaviour) == null ? void 0 : o.scrolling,
567
- startScrollMargins: {
568
- x: 0,
569
- y: 0,
570
- ...(i = (s = t.behaviour) == null ? void 0 : s.scrolling) == null ? void 0 : i.startScrollMargins
571
- }
572
- }
573
- },
574
- features: {
575
- range: !0,
576
- touch: !0,
577
- deselectOnBlur: !1,
578
- ...t.features,
579
- singleTap: {
580
- allow: !0,
581
- intersect: "native",
582
- ...(r = t.features) == null ? void 0 : r.singleTap
583
- }
584
- }
585
- };
586
- for (const h of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))
587
- typeof this[h] == "function" && (this[h] = this[h].bind(this));
588
- const { document: l, selectionAreaClass: c, selectionContainerClass: d } = this._options;
589
- this._area = l.createElement("div"), this._clippingElement = l.createElement("div"), this._clippingElement.appendChild(this._area), this._area.classList.add(c), d && this._clippingElement.classList.add(d), T(this._area, {
590
- willChange: "top, left, bottom, right, width, height",
591
- top: 0,
592
- left: 0,
593
- position: "fixed"
594
- }), T(this._clippingElement, {
595
- overflow: "hidden",
596
- position: "fixed",
597
- transform: "translate3d(0, 0, 0)",
598
- // https://stackoverflow.com/a/38268846
599
- pointerEvents: "none",
600
- zIndex: "1"
601
- }), this._frame = Qe((h) => {
602
- this._recalculateSelectionAreaRect(), this._updateElementSelection(), this._emitEvent("move", h), this._redrawSelectionArea();
603
- }), this.enable();
604
- }
605
- _toggleStartEvents(t = !0) {
606
- const { document: n, features: o } = this._options, s = t ? k : M;
607
- s(n, "mousedown", this._onTapStart), o.touch && s(n, "touchstart", this._onTapStart, { passive: !1 });
608
- }
609
- _onTapStart(t, n = !1) {
610
- const { x: o, y: s, target: i } = W(t), { document: r, startAreas: l, boundaries: c, features: d, behaviour: h } = this._options, a = i.getBoundingClientRect();
611
- if (t instanceof MouseEvent && !Ze(t, h.triggers))
612
- return;
613
- const f = H(l, r), g = H(c, r);
614
- this._targetElement = g.find(
615
- (y) => ce(y.getBoundingClientRect(), a)
616
- );
617
- const u = t.composedPath(), p = f.find((y) => u.includes(y));
618
- if (this._targetBoundary = g.find((y) => u.includes(y)), !this._targetElement || !p || !this._targetBoundary || !n && this._emitEvent("beforestart", t) === !1)
619
- return;
620
- this._areaLocation = { x1: o, y1: s, x2: 0, y2: 0 };
621
- const m = r.scrollingElement ?? r.body;
622
- this._scrollDelta = { x: m.scrollLeft, y: m.scrollTop }, this._singleClick = !0, this.clearSelection(!1, !0), k(r, ["touchmove", "mousemove"], this._delayedTapMove, { passive: !1 }), k(r, ["mouseup", "touchcancel", "touchend"], this._onTapStop), k(r, "scroll", this._onScroll), d.deselectOnBlur && (this._targetBoundaryScrolled = !1, k(this._targetBoundary, "scroll", this._onStartAreaScroll));
623
- }
624
- _onSingleTap(t) {
625
- const { singleTap: { intersect: n }, range: o } = this._options.features, s = W(t);
626
- let i;
627
- if (n === "native")
628
- i = s.target;
629
- else if (n === "touch") {
630
- this.resolveSelectables();
631
- const { x: l, y: c } = s;
632
- i = this._selectables.find((d) => {
633
- const { right: h, left: a, top: f, bottom: g } = d.getBoundingClientRect();
634
- return l < h && l > a && c < g && c > f;
635
- });
636
- }
637
- if (!i)
638
- return;
639
- for (this.resolveSelectables(); !this._selectables.includes(i); )
640
- if (i.parentElement)
641
- i = i.parentElement;
642
- else {
643
- this._targetBoundaryScrolled || this.clearSelection();
644
- return;
645
- }
646
- const { stored: r } = this._selection;
647
- if (this._emitEvent("start", t), t.shiftKey && o && this._latestElement) {
648
- const l = this._latestElement, [c, d] = l.compareDocumentPosition(i) & 4 ? [i, l] : [l, i], h = [...this._selectables.filter(
649
- (a) => a.compareDocumentPosition(c) & 4 && a.compareDocumentPosition(d) & 2
650
- ), c, d];
651
- this.select(h), this._latestElement = l;
652
- } else
653
- r.includes(i) && (r.length === 1 || t.ctrlKey || r.every((l) => this._selection.stored.includes(l))) ? this.deselect(i) : (this.select(i), this._latestElement = i);
654
- }
655
- _delayedTapMove(t) {
656
- const { container: n, document: o, behaviour: { startThreshold: s } } = this._options, { x1: i, y1: r } = this._areaLocation, { x: l, y: c } = W(t);
657
- if (
658
- // Single number for both coordinates
659
- typeof s == "number" && B(l + c - (i + r)) >= s || // Different x and y threshold
660
- typeof s == "object" && B(l - i) >= s.x || B(c - r) >= s.y
661
- ) {
662
- if (M(o, ["mousemove", "touchmove"], this._delayedTapMove, { passive: !1 }), this._emitEvent("beforedrag", t) === !1) {
663
- M(o, ["mouseup", "touchcancel", "touchend"], this._onTapStop);
664
- return;
665
- }
666
- k(o, ["mousemove", "touchmove"], this._onTapMove, { passive: !1 }), T(this._area, "display", "block"), H(n, o)[0].appendChild(this._clippingElement), this.resolveSelectables(), this._singleClick = !1, this._targetRect = this._targetElement.getBoundingClientRect(), this._scrollAvailable = this._targetElement.scrollHeight !== this._targetElement.clientHeight || this._targetElement.scrollWidth !== this._targetElement.clientWidth, this._scrollAvailable && (k(this._targetElement, "wheel", this._manualScroll, { passive: !1 }), this._selectables = this._selectables.filter((d) => this._targetElement.contains(d))), this._setupSelectionArea(), this._emitEvent("start", t), this._onTapMove(t);
667
- }
668
- this._handleMoveEvent(t);
669
- }
670
- _setupSelectionArea() {
671
- const { _clippingElement: t, _targetElement: n, _area: o } = this, s = this._targetRect = n.getBoundingClientRect();
672
- this._scrollAvailable ? (T(t, {
673
- top: s.top,
674
- left: s.left,
675
- width: s.width,
676
- height: s.height
677
- }), T(o, {
678
- marginTop: -s.top,
679
- marginLeft: -s.left
680
- })) : (T(t, {
681
- top: 0,
682
- left: 0,
683
- width: "100%",
684
- height: "100%"
685
- }), T(o, {
686
- marginTop: 0,
687
- marginLeft: 0
688
- }));
689
- }
690
- _onTapMove(t) {
691
- const { _scrollSpeed: n, _areaLocation: o, _options: s, _frame: i } = this, { speedDivider: r } = s.behaviour.scrolling, l = this._targetElement, { x: c, y: d } = W(t);
692
- if (o.x2 = c, o.y2 = d, this._scrollAvailable && !this._scrollingActive && (n.y || n.x)) {
693
- this._scrollingActive = !0;
694
- const h = () => {
695
- if (!n.x && !n.y) {
696
- this._scrollingActive = !1;
697
- return;
698
- }
699
- const { scrollTop: a, scrollLeft: f } = l;
700
- n.y && (l.scrollTop += de(n.y / r), o.y1 -= l.scrollTop - a), n.x && (l.scrollLeft += de(n.x / r), o.x1 -= l.scrollLeft - f), i.next(t), requestAnimationFrame(h);
701
- };
702
- requestAnimationFrame(h);
703
- } else
704
- i.next(t);
705
- this._handleMoveEvent(t);
706
- }
707
- _handleMoveEvent(t) {
708
- const { features: n } = this._options;
709
- (n.touch && Ue() || this._scrollAvailable && Je()) && t.preventDefault();
710
- }
711
- _onScroll() {
712
- const { _scrollDelta: t, _options: { document: n } } = this, { scrollTop: o, scrollLeft: s } = n.scrollingElement ?? n.body;
713
- this._areaLocation.x1 += t.x - s, this._areaLocation.y1 += t.y - o, t.x = s, t.y = o, this._setupSelectionArea(), this._frame.next(null);
714
- }
715
- _onStartAreaScroll() {
716
- this._targetBoundaryScrolled = !0, M(this._targetElement, "scroll", this._onStartAreaScroll);
717
- }
718
- _manualScroll(t) {
719
- const { manualSpeed: n } = this._options.behaviour.scrolling, o = t.deltaY ? t.deltaY > 0 ? 1 : -1 : 0, s = t.deltaX ? t.deltaX > 0 ? 1 : -1 : 0;
720
- this._scrollSpeed.y += o * n, this._scrollSpeed.x += s * n, this._onTapMove(t), t.preventDefault();
721
- }
722
- _recalculateSelectionAreaRect() {
723
- const { _scrollSpeed: t, _areaLocation: n, _targetElement: o, _options: s } = this, { scrollTop: i, scrollHeight: r, clientHeight: l, scrollLeft: c, scrollWidth: d, clientWidth: h } = o, a = this._targetRect, { x1: f, y1: g } = n;
724
- let { x2: u, y2: p } = n;
725
- const { behaviour: { scrolling: { startScrollMargins: m } } } = s;
726
- u < a.left + m.x ? (t.x = c ? -B(a.left - u + m.x) : 0, u = u < a.left ? a.left : u) : u > a.right - m.x ? (t.x = d - c - h ? B(a.left + a.width - u - m.x) : 0, u = u > a.right ? a.right : u) : t.x = 0, p < a.top + m.y ? (t.y = i ? -B(a.top - p + m.y) : 0, p = p < a.top ? a.top : p) : p > a.bottom - m.y ? (t.y = r - i - l ? B(a.top + a.height - p - m.y) : 0, p = p > a.bottom ? a.bottom : p) : t.y = 0;
727
- const y = he(f, u), v = he(g, p), w = ae(f, u), _ = ae(g, p);
728
- this._areaRect = new DOMRect(y, v, w - y, _ - v);
729
- }
730
- _redrawSelectionArea() {
731
- const { x: t, y: n, width: o, height: s } = this._areaRect, { style: i } = this._area;
732
- i.left = `${t}px`, i.top = `${n}px`, i.width = `${o}px`, i.height = `${s}px`;
733
- }
734
- _onTapStop(t, n) {
735
- var o;
736
- const { document: s, features: i } = this._options, { _singleClick: r } = this;
737
- M(this._targetElement, "scroll", this._onStartAreaScroll), M(s, ["mousemove", "touchmove"], this._delayedTapMove), M(s, ["touchmove", "mousemove"], this._onTapMove), M(s, ["mouseup", "touchcancel", "touchend"], this._onTapStop), M(s, "scroll", this._onScroll), this._keepSelection(), t && r && i.singleTap.allow ? this._onSingleTap(t) : !r && !n && (this._updateElementSelection(), this._emitEvent("stop", t)), this._scrollSpeed.x = 0, this._scrollSpeed.y = 0, M(this._targetElement, "wheel", this._manualScroll, { passive: !0 }), this._clippingElement.remove(), (o = this._frame) == null || o.cancel(), T(this._area, "display", "none");
738
- }
739
- _updateElementSelection() {
740
- const { _selectables: t, _options: n, _selection: o, _areaRect: s } = this, { stored: i, selected: r, touched: l } = o, { intersect: c, overlap: d } = n.behaviour, h = d === "invert", a = [], f = [], g = [];
741
- for (let p = 0; p < t.length; p++) {
742
- const m = t[p];
743
- if (ce(s, m.getBoundingClientRect(), c)) {
744
- if (r.includes(m))
745
- i.includes(m) && !l.includes(m) && l.push(m);
746
- else if (h && i.includes(m)) {
747
- g.push(m);
748
- continue;
749
- } else
750
- f.push(m);
751
- a.push(m);
752
- }
753
- }
754
- h && f.push(...i.filter((p) => !r.includes(p)));
755
- const u = d === "keep";
756
- for (let p = 0; p < r.length; p++) {
757
- const m = r[p];
758
- !a.includes(m) && !// Check if the user wants to keep previously selected elements, e.g.,
759
- // not make them part of the current selection as soon as they're touched.
760
- (u && i.includes(m)) && g.push(m);
761
- }
762
- o.selected = a, o.changed = { added: f, removed: g }, this._latestElement = void 0;
763
- }
764
- _emitEvent(t, n) {
765
- return this.emit(t, {
766
- event: n,
767
- store: this._selection,
768
- selection: this
769
- });
770
- }
771
- _keepSelection() {
772
- const { _options: t, _selection: n } = this, { selected: o, changed: s, touched: i, stored: r } = n, l = o.filter((c) => !r.includes(c));
773
- switch (t.behaviour.overlap) {
774
- case "drop": {
775
- n.stored = [
776
- ...l,
777
- ...r.filter((c) => !i.includes(c))
778
- // Elements not touched
779
- ];
780
- break;
781
- }
782
- case "invert": {
783
- n.stored = [
784
- ...l,
785
- ...r.filter((c) => !s.removed.includes(c))
786
- // Elements not removed from selection
787
- ];
788
- break;
789
- }
790
- case "keep": {
791
- n.stored = [
792
- ...r,
793
- ...o.filter((c) => !r.includes(c))
794
- // Newly added
795
- ];
796
- break;
797
- }
798
- }
799
- }
800
- /**
801
- * Manually triggers the start of a selection
802
- * @param evt A MouseEvent / TouchEvent-like object
803
- * @param silent If beforestart should be fired,
804
- */
805
- trigger(t, n = !0) {
806
- this._onTapStart(t, n);
807
- }
808
- /**
809
- * Can be used if during a selection elements have been added.
810
- * Will update everything that can be selected.
811
- */
812
- resolveSelectables() {
813
- this._selectables = H(this._options.selectables, this._options.document);
814
- }
815
- /**
816
- * Same as deselecting, but for all elements currently selected.
817
- * @param includeStored If the store should also get cleared
818
- * @param quiet If move / stop events should be fired
819
- */
820
- clearSelection(t = !0, n = !1) {
821
- const { selected: o, stored: s, changed: i } = this._selection;
822
- i.added = [], i.removed.push(
823
- ...o,
824
- ...t ? s : []
825
- ), n || (this._emitEvent("move", null), this._emitEvent("stop", null)), this._selection = ue(t ? [] : s);
826
- }
827
- /**
828
- * @returns {Array} Selected elements
829
- */
830
- getSelection() {
831
- return this._selection.stored;
832
- }
833
- /**
834
- * @returns {HTMLElement} The selection area element
835
- */
836
- getSelectionArea() {
837
- return this._area;
838
- }
839
- /**
840
- * Cancel the current selection process, pass true to fire a stop event after cancel.
841
- */
842
- cancel(t = !1) {
843
- this._onTapStop(null, !t);
844
- }
845
- /**
846
- * Unbinds all events and removes the area-element.
847
- */
848
- destroy() {
849
- this.cancel(), this.disable(), this._clippingElement.remove(), super.unbindAllListeners();
850
- }
851
- /**
852
- * Adds elements to the selection
853
- * @param query - CSS Query, can be an array of queries
854
- * @param quiet - If this should not trigger the move event
855
- */
856
- select(t, n = !1) {
857
- const { changed: o, selected: s, stored: i } = this._selection, r = H(t, this._options.document).filter(
858
- (l) => !s.includes(l) && !i.includes(l)
859
- );
860
- return i.push(...r), s.push(...r), o.added.push(...r), o.removed = [], this._latestElement = void 0, n || (this._emitEvent("move", null), this._emitEvent("stop", null)), r;
861
- }
862
- /**
863
- * Removes a particular element from the selection.
864
- * @param query - CSS Query, can be an array of queries
865
- * @param quiet - If this should not trigger the move event
866
- */
867
- deselect(t, n = !1) {
868
- const { selected: o, stored: s, changed: i } = this._selection, r = H(t, this._options.document).filter(
869
- (l) => o.includes(l) || s.includes(l)
870
- );
871
- r.length && (this._selection.stored = s.filter((l) => !r.includes(l)), this._selection.selected = o.filter((l) => !r.includes(l)), this._selection.changed.added = [], this._selection.changed.removed.push(
872
- ...r.filter((l) => !i.removed.includes(l))
873
- ), this._latestElement = void 0, n || (this._emitEvent("move", null), this._emitEvent("stop", null)));
874
- }
875
- }
876
- b(et, "version", "3.6.0");
877
- const tt = function(e, t = !0) {
446
+ const Be = function(e, t = !0) {
878
447
  this.theme = e;
879
448
  const n = this.theme.cssVar, o = Object.keys(n);
880
449
  this.mindElixirBox.style.cssText = "";
@@ -883,11 +452,11 @@ const tt = function(e, t = !0) {
883
452
  this.mindElixirBox.style.setProperty(i, n[i]);
884
453
  }
885
454
  e.cssVar["--gap"] || this.mindElixirBox.style.setProperty("--gap", "30px"), t && this.refresh();
886
- }, nt = function(e) {
455
+ }, Pe = function(e) {
887
456
  const n = e.parentElement.parentElement.lastElementChild;
888
457
  (n == null ? void 0 : n.tagName) === "svg" && (n == null || n.remove());
889
458
  };
890
- function Ce(e) {
459
+ function fe(e) {
891
460
  return {
892
461
  nodeData: e.isFocusMode ? e.nodeDataBackup : e.nodeData,
893
462
  arrows: e.arrows,
@@ -896,17 +465,17 @@ function Ce(e) {
896
465
  theme: e.theme
897
466
  };
898
467
  }
899
- const ot = function(e, t, n) {
468
+ const ze = function(e, t, n) {
900
469
  if (e) {
901
470
  if (this.clearSelection(), typeof e == "string") {
902
- const o = L(e);
471
+ const o = S(e);
903
472
  return o ? this.selectNode(o) : void 0;
904
473
  }
905
474
  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);
906
475
  }
907
- }, st = function() {
476
+ }, je = function() {
908
477
  this.currentNode && (this.currentNode.className = ""), this.currentNode = null, this.bus.fire("unselectNode");
909
- }, it = function(e) {
478
+ }, Oe = function(e) {
910
479
  this.clearSelection();
911
480
  for (const t of e)
912
481
  t.className = "selected";
@@ -914,23 +483,23 @@ const ot = function(e, t, n) {
914
483
  "selectNodes",
915
484
  e.map((t) => t.nodeObj)
916
485
  );
917
- }, rt = function() {
486
+ }, Ve = function() {
918
487
  if (this.currentNodes)
919
488
  for (const e of this.currentNodes)
920
489
  e.classList.remove("selected");
921
490
  this.currentNodes = null, this.bus.fire("unselectNodes");
922
- }, lt = function() {
491
+ }, _e = function() {
923
492
  this.unselectNode(), this.unselectNodes(), this.unselectSummary(), this.unselectArrow();
924
- }, ct = function() {
925
- const e = Ce(this);
493
+ }, qe = function() {
494
+ const e = fe(this);
926
495
  return JSON.stringify(e, (t, n) => {
927
496
  if (!(t === "parent" && typeof n != "string"))
928
497
  return n;
929
498
  });
930
- }, at = function() {
499
+ }, Ie = function() {
931
500
  return JSON.parse(this.getDataString());
932
- }, ht = function() {
933
- const e = Ce(this).nodeData;
501
+ }, Fe = function() {
502
+ const e = fe(this).nodeData;
934
503
  let t = "# " + e.topic + `
935
504
 
936
505
  `;
@@ -942,33 +511,33 @@ const ot = function(e, t, n) {
942
511
  `, o[i].children && n(o[i].children || [], s + 1);
943
512
  }
944
513
  return n(e.children || [], 2), t;
945
- }, dt = function() {
514
+ }, We = function() {
946
515
  this.editable = !0;
947
- }, ut = function() {
516
+ }, Re = function() {
948
517
  this.editable = !1;
949
- }, ft = function(e) {
518
+ }, Ge = function(e) {
950
519
  this.scaleVal = e, this.map.style.transform = "scale(" + e + ")", this.bus.fire("scale", e);
951
- }, pt = function() {
520
+ }, Ye = function() {
952
521
  this.container.scrollTo(1e4 - this.container.offsetWidth / 2, 1e4 - this.container.offsetHeight / 2);
953
- }, mt = function(e) {
522
+ }, Xe = function(e) {
954
523
  e(this);
955
- }, gt = function(e) {
524
+ }, Ue = function(e) {
956
525
  e.nodeObj.parent && (this.tempDirection === null && (this.tempDirection = this.direction), this.isFocusMode || (this.nodeDataBackup = this.nodeData, this.isFocusMode = !0), this.nodeData = e.nodeObj, this.initRight(), this.toCenter());
957
- }, vt = function() {
526
+ }, Je = function() {
958
527
  this.isFocusMode = !1, this.tempDirection !== null && (this.nodeData = this.nodeDataBackup, this.direction = this.tempDirection, this.tempDirection = null, this.refresh(), this.toCenter());
959
- }, yt = function() {
528
+ }, Ke = function() {
960
529
  this.direction = 0, this.refresh();
961
- }, bt = function() {
530
+ }, Qe = function() {
962
531
  this.direction = 1, this.refresh();
963
- }, xt = function() {
532
+ }, Ze = function() {
964
533
  this.direction = 2, this.refresh();
965
- }, wt = function(e) {
534
+ }, et = function(e) {
966
535
  this.locale = e, this.refresh();
967
- }, _t = function(e, t) {
536
+ }, tt = function(e, t) {
968
537
  const n = e.nodeObj;
969
538
  typeof t == "boolean" ? n.expanded = t : n.expanded !== !1 ? n.expanded = !1 : n.expanded = !0;
970
539
  const o = e.parentNode, s = o.children[1];
971
- if (s.expanded = n.expanded, s.className = n.expanded ? "minus" : "", nt(e), n.expanded) {
540
+ if (s.expanded = n.expanded, s.className = n.expanded ? "minus" : "", Pe(e), n.expanded) {
972
541
  const i = this.createChildren(
973
542
  n.children.map((r) => this.createWrapper(r).grp)
974
543
  );
@@ -976,32 +545,32 @@ const ot = function(e, t, n) {
976
545
  } else
977
546
  o.parentNode.children[1].remove();
978
547
  this.linkDiv(), this.bus.fire("expandNode", n);
979
- }, Et = function(e) {
980
- e && (e = JSON.parse(JSON.stringify(e)), this.nodeData = e.nodeData, this.arrows = e.arrows || [], this.summaries = e.summaries || []), Z(this.nodeData), this.layout(), this.linkDiv();
981
- }, St = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
548
+ }, nt = function(e) {
549
+ e && (e = JSON.parse(JSON.stringify(e)), this.nodeData = e.nodeData, this.arrows = e.arrows || [], this.summaries = e.summaries || []), G(this.nodeData), this.layout(), this.linkDiv();
550
+ }, ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
982
551
  __proto__: null,
983
- cancelFocus: vt,
984
- clearSelection: lt,
985
- disableEdit: ut,
986
- enableEdit: dt,
987
- expandNode: _t,
988
- focusNode: gt,
989
- getData: at,
990
- getDataMd: ht,
991
- getDataString: ct,
992
- initLeft: yt,
993
- initRight: bt,
994
- initSide: xt,
995
- install: mt,
996
- refresh: Et,
997
- scale: ft,
998
- selectNode: ot,
999
- selectNodes: it,
1000
- setLocale: wt,
1001
- toCenter: pt,
1002
- unselectNode: st,
1003
- unselectNodes: rt
1004
- }, Symbol.toStringTag, { value: "Module" })), Ct = function(e) {
552
+ cancelFocus: Je,
553
+ clearSelection: _e,
554
+ disableEdit: Re,
555
+ enableEdit: We,
556
+ expandNode: tt,
557
+ focusNode: Ue,
558
+ getData: Ie,
559
+ getDataMd: Fe,
560
+ getDataString: qe,
561
+ initLeft: Ke,
562
+ initRight: Qe,
563
+ initSide: Ze,
564
+ install: Xe,
565
+ refresh: nt,
566
+ scale: Ge,
567
+ selectNode: ze,
568
+ selectNodes: Oe,
569
+ setLocale: et,
570
+ toCenter: Ye,
571
+ unselectNode: je,
572
+ unselectNodes: Ve
573
+ }, Symbol.toStringTag, { value: "Module" })), st = function(e) {
1005
574
  return {
1006
575
  dom: e,
1007
576
  moved: !1,
@@ -1027,21 +596,21 @@ const ot = function(e, t, n) {
1027
596
  this.moved = !1, this.mousedown = !1;
1028
597
  }
1029
598
  };
1030
- }, fe = {
1031
- create: Ct
599
+ }, te = {
600
+ create: st
1032
601
  };
1033
- function U(e, t, n) {
1034
- const { offsetLeft: o, offsetTop: s } = $(e.nodes, t), i = t.offsetWidth, r = t.offsetHeight, l = o + i / 2, c = s + r / 2, d = l + n.x, h = c + n.y;
602
+ function F(e, t, n) {
603
+ const { offsetLeft: o, offsetTop: s } = M(e.nodes, t), i = t.offsetWidth, r = t.offsetHeight, c = o + i / 2, l = s + r / 2, f = c + n.x, h = l + n.y;
1035
604
  return {
1036
605
  w: i,
1037
606
  h: r,
1038
- cx: l,
1039
- cy: c,
1040
- ctrlX: d,
607
+ cx: c,
608
+ cy: l,
609
+ ctrlX: f,
1041
610
  ctrlY: h
1042
611
  };
1043
612
  }
1044
- function P(e) {
613
+ function k(e) {
1045
614
  let t, n;
1046
615
  const o = (e.cy - e.ctrlY) / (e.ctrlX - e.cx);
1047
616
  return o > e.h / e.w || o < -e.h / e.w ? e.cy - e.ctrlY < 0 ? (t = e.cx - e.h / 2 / o, n = e.cy + e.h / 2) : (t = e.cx + e.h / 2 / o, n = e.cy - e.h / 2) : e.cx - e.ctrlX < 0 ? (t = e.cx + e.w / 2, n = e.cy - e.w * o / 2) : (t = e.cx - e.w / 2, n = e.cy + e.w * o / 2), {
@@ -1049,7 +618,7 @@ function P(e) {
1049
618
  y: n
1050
619
  };
1051
620
  }
1052
- const Lt = function(e, t, n, o) {
621
+ const it = function(e, t, n, o) {
1053
622
  const s = document.createElementNS("http://www.w3.org/2000/svg", "text");
1054
623
  return x(s, {
1055
624
  "text-anchor": "middle",
@@ -1057,18 +626,18 @@ const Lt = function(e, t, n, o) {
1057
626
  y: n + "",
1058
627
  fill: o || "#666"
1059
628
  }), s.dataset.type = "custom-link", s.innerHTML = e, s;
1060
- }, Le = function(e, t, n, o, s) {
629
+ }, ue = function(e, t, n, o, s) {
1061
630
  if (!t || !n)
1062
631
  return;
1063
632
  performance.now();
1064
- const i = U(e, t, o.delta1), r = U(e, n, o.delta2), { x: l, y: c } = P(i), { ctrlX: d, ctrlY: h } = i, { ctrlX: a, ctrlY: f } = r, { x: g, y: u } = P(r), p = ye(a, f, g, u), m = Ve(
1065
- `M ${l} ${c} C ${d} ${h} ${a} ${f} ${g} ${u}`,
1066
- `M ${p.x1} ${p.y1} L ${g} ${u} L ${p.x2} ${p.y2}`
1067
- ), y = l / 8 + d * 3 / 8 + a * 3 / 8 + g / 8, v = c / 8 + h * 3 / 8 + f * 3 / 8 + u / 8, w = Lt(o.label, y, v, e.theme.cssVar["--color"]);
1068
- m.appendChild(w), m.arrowObj = o, m.dataset.linkid = o.id, e.linkSvgGroup.appendChild(m), s || (e.arrows.push(o), e.currentArrow = m, Te(e, o, i, r)), performance.now();
1069
- }, Mt = function(e, t) {
633
+ const i = F(e, t, o.delta1), r = F(e, n, o.delta2), { x: c, y: l } = k(i), { ctrlX: f, ctrlY: h } = i, { ctrlX: a, ctrlY: d } = r, { x: p, y: u } = k(r), m = re(a, d, p, u), g = Te(
634
+ `M ${c} ${l} C ${f} ${h} ${a} ${d} ${p} ${u}`,
635
+ `M ${m.x1} ${m.y1} L ${p} ${u} L ${m.x2} ${m.y2}`
636
+ ), v = c / 8 + f * 3 / 8 + a * 3 / 8 + p / 8, y = l / 8 + h * 3 / 8 + d * 3 / 8 + u / 8, b = it(o.label, v, y, e.theme.cssVar["--color"]);
637
+ g.appendChild(b), g.arrowObj = o, g.dataset.linkid = o.id, e.linkSvgGroup.appendChild(g), s || (e.arrows.push(o), e.currentArrow = g, me(e, o, i, r)), performance.now();
638
+ }, rt = function(e, t) {
1070
639
  const n = {
1071
- id: ee(),
640
+ id: Y(),
1072
641
  label: "Custom Link",
1073
642
  from: e.nodeObj.id,
1074
643
  to: t.nodeObj.id,
@@ -1081,15 +650,15 @@ const Lt = function(e, t, n, o) {
1081
650
  y: -200
1082
651
  }
1083
652
  };
1084
- Le(this, e, t, n), this.bus.fire("operation", {
653
+ ue(this, e, t, n), this.bus.fire("operation", {
1085
654
  name: "createArrow",
1086
655
  obj: n
1087
656
  });
1088
- }, Tt = function(e) {
657
+ }, ct = function(e) {
1089
658
  let t;
1090
659
  if (e ? t = e : t = this.currentArrow, !t)
1091
660
  return;
1092
- Me(this);
661
+ pe(this);
1093
662
  const n = t.arrowObj.id;
1094
663
  this.arrows = this.arrows.filter((o) => o.id !== n), t.remove(), this.bus.fire("operation", {
1095
664
  name: "removeArrow",
@@ -1097,76 +666,76 @@ const Lt = function(e, t, n, o) {
1097
666
  id: n
1098
667
  }
1099
668
  });
1100
- }, $t = function(e) {
669
+ }, lt = function(e) {
1101
670
  this.currentArrow = e;
1102
- const t = e.arrowObj, n = L(t.from), o = L(t.to), s = U(this, n, t.delta1), i = U(this, o, t.delta2);
1103
- Te(this, t, s, i);
1104
- }, Nt = function() {
1105
- this.currentArrow = null, Me(this);
1106
- }, Me = function(e) {
671
+ const t = e.arrowObj, n = S(t.from), o = S(t.to), s = F(this, n, t.delta1), i = F(this, o, t.delta2);
672
+ me(this, t, s, i);
673
+ }, at = function() {
674
+ this.currentArrow = null, pe(this);
675
+ }, pe = function(e) {
1107
676
  e.linkController.style.display = "none", e.P2.style.display = "none", e.P3.style.display = "none";
1108
- }, Te = function(e, t, n, o) {
1109
- var f;
677
+ }, me = function(e, t, n, o) {
678
+ var d;
1110
679
  e.linkController.style.display = "initial", e.P2.style.display = "initial", e.P3.style.display = "initial", e.nodes.appendChild(e.linkController), e.nodes.appendChild(e.P2), e.nodes.appendChild(e.P3);
1111
- let { x: s, y: i } = P(n), { ctrlX: r, ctrlY: l } = n, { ctrlX: c, ctrlY: d } = o, { x: h, y: a } = P(o);
1112
- e.P2.style.cssText = `top:${l}px;left:${r}px;`, e.P3.style.cssText = `top:${d}px;left:${c}px;`, x(e.line1, {
680
+ let { x: s, y: i } = k(n), { ctrlX: r, ctrlY: c } = n, { ctrlX: l, ctrlY: f } = o, { x: h, y: a } = k(o);
681
+ e.P2.style.cssText = `top:${c}px;left:${r}px;`, e.P3.style.cssText = `top:${f}px;left:${l}px;`, x(e.line1, {
1113
682
  x1: s + "",
1114
683
  y1: i + "",
1115
684
  x2: r + "",
1116
- y2: l + ""
685
+ y2: c + ""
1117
686
  }), x(e.line2, {
1118
- x1: c + "",
1119
- y1: d + "",
687
+ x1: l + "",
688
+ y1: f + "",
1120
689
  x2: h + "",
1121
690
  y2: a + ""
1122
- }), e.helper1 && (e.helper1.destory(e.map), (f = e.helper2) == null || f.destory(e.map)), e.helper1 = fe.create(e.P2), e.helper2 = fe.create(e.P3), e.helper1.init(e.map, (g, u) => {
1123
- var v;
1124
- r = r + g / e.scaleVal, l = l + u / e.scaleVal;
1125
- const p = P({ ...n, ctrlX: r, ctrlY: l });
1126
- s = p.x, i = p.y;
1127
- const m = s / 8 + r * 3 / 8 + c * 3 / 8 + h / 8, y = i / 8 + l * 3 / 8 + d * 3 / 8 + a / 8;
1128
- e.P2.style.top = l + "px", e.P2.style.left = r + "px", (v = e.currentArrow) == null || v.children[0].setAttribute("d", `M ${s} ${i} C ${r} ${l} ${c} ${d} ${h} ${a}`), x(e.currentArrow.children[2], {
1129
- x: m + "",
1130
- y: y + ""
691
+ }), e.helper1 && (e.helper1.destory(e.map), (d = e.helper2) == null || d.destory(e.map)), e.helper1 = te.create(e.P2), e.helper2 = te.create(e.P3), e.helper1.init(e.map, (p, u) => {
692
+ var y;
693
+ r = r + p / e.scaleVal, c = c + u / e.scaleVal;
694
+ const m = k({ ...n, ctrlX: r, ctrlY: c });
695
+ s = m.x, i = m.y;
696
+ const g = s / 8 + r * 3 / 8 + l * 3 / 8 + h / 8, v = i / 8 + c * 3 / 8 + f * 3 / 8 + a / 8;
697
+ e.P2.style.top = c + "px", e.P2.style.left = r + "px", (y = e.currentArrow) == null || y.children[0].setAttribute("d", `M ${s} ${i} C ${r} ${c} ${l} ${f} ${h} ${a}`), x(e.currentArrow.children[2], {
698
+ x: g + "",
699
+ y: v + ""
1131
700
  }), x(e.line1, {
1132
701
  x1: s + "",
1133
702
  y1: i + "",
1134
703
  x2: r + "",
1135
- y2: l + ""
1136
- }), t.delta1.x = r - n.cx, t.delta1.y = l - n.cy;
1137
- }), e.helper2.init(e.map, (g, u) => {
1138
- var w, _;
1139
- c = c + g / e.scaleVal, d = d + u / e.scaleVal;
1140
- const p = P({ ...o, ctrlX: c, ctrlY: d });
1141
- h = p.x, a = p.y;
1142
- const m = s / 8 + r * 3 / 8 + c * 3 / 8 + h / 8, y = i / 8 + l * 3 / 8 + d * 3 / 8 + a / 8, v = ye(c, d, h, a);
1143
- e.P3.style.top = d + "px", e.P3.style.left = c + "px", (w = e.currentArrow) == null || w.children[0].setAttribute("d", `M ${s} ${i} C ${r} ${l} ${c} ${d} ${h} ${a}`), (_ = e.currentArrow) == null || _.children[1].setAttribute("d", `M ${v.x1} ${v.y1} L ${h} ${a} L ${v.x2} ${v.y2}`), x(e.currentArrow.children[2], {
1144
- x: m + "",
1145
- y: y + ""
704
+ y2: c + ""
705
+ }), t.delta1.x = r - n.cx, t.delta1.y = c - n.cy;
706
+ }), e.helper2.init(e.map, (p, u) => {
707
+ var b, C;
708
+ l = l + p / e.scaleVal, f = f + u / e.scaleVal;
709
+ const m = k({ ...o, ctrlX: l, ctrlY: f });
710
+ h = m.x, a = m.y;
711
+ const g = s / 8 + r * 3 / 8 + l * 3 / 8 + h / 8, v = i / 8 + c * 3 / 8 + f * 3 / 8 + a / 8, y = re(l, f, h, a);
712
+ e.P3.style.top = f + "px", e.P3.style.left = l + "px", (b = e.currentArrow) == null || b.children[0].setAttribute("d", `M ${s} ${i} C ${r} ${c} ${l} ${f} ${h} ${a}`), (C = e.currentArrow) == null || C.children[1].setAttribute("d", `M ${y.x1} ${y.y1} L ${h} ${a} L ${y.x2} ${y.y2}`), x(e.currentArrow.children[2], {
713
+ x: g + "",
714
+ y: v + ""
1146
715
  }), x(e.line2, {
1147
- x1: c + "",
1148
- y1: d + "",
716
+ x1: l + "",
717
+ y1: f + "",
1149
718
  x2: h + "",
1150
719
  y2: a + ""
1151
- }), t.delta2.x = c - o.cx, t.delta2.y = d - o.cy;
720
+ }), t.delta2.x = l - o.cx, t.delta2.y = f - o.cy;
1152
721
  });
1153
722
  };
1154
- function At() {
723
+ function ht() {
1155
724
  this.linkSvgGroup.innerHTML = "";
1156
725
  for (let e = 0; e < this.arrows.length; e++) {
1157
726
  const t = this.arrows[e];
1158
727
  try {
1159
- Le(this, L(t.from), L(t.to), t, !0);
728
+ ue(this, S(t.from), S(t.to), t, !0);
1160
729
  } catch {
1161
730
  }
1162
731
  }
1163
732
  this.nodes.appendChild(this.linkSvgGroup);
1164
733
  }
1165
- function kt(e) {
734
+ function dt(e) {
1166
735
  if (!e)
1167
736
  return;
1168
737
  const t = e.children[2];
1169
- _e(this, t, (n) => {
738
+ he(this, t, (n) => {
1170
739
  var i;
1171
740
  const o = e.arrowObj, s = ((i = n.textContent) == null ? void 0 : i.trim()) || "";
1172
741
  s === "" ? o.label = origin : o.label = s, n.remove(), s !== origin && (t.innerHTML = o.label, this.linkDiv(), this.bus.fire("operation", {
@@ -1175,65 +744,65 @@ function kt(e) {
1175
744
  }));
1176
745
  });
1177
746
  }
1178
- function Bt() {
1179
- this.arrows = this.arrows.filter((e) => G(e.from, this.nodeData) && G(e.to, this.nodeData));
747
+ function ft() {
748
+ this.arrows = this.arrows.filter((e) => q(e.from, this.nodeData) && q(e.to, this.nodeData));
1180
749
  }
1181
- const Dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
750
+ const ut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1182
751
  __proto__: null,
1183
- createArrow: Mt,
1184
- editArrowLabel: kt,
1185
- removeArrow: Tt,
1186
- renderArrow: At,
1187
- selectArrow: $t,
1188
- tidyArrow: Bt,
1189
- unselectArrow: Nt
1190
- }, Symbol.toStringTag, { value: "Module" })), Ht = function(e) {
1191
- var c, d;
752
+ createArrow: rt,
753
+ editArrowLabel: dt,
754
+ removeArrow: ct,
755
+ renderArrow: ht,
756
+ selectArrow: lt,
757
+ tidyArrow: ft,
758
+ unselectArrow: at
759
+ }, Symbol.toStringTag, { value: "Module" })), pt = function(e) {
760
+ var l, f;
1192
761
  if (e.length === 0)
1193
762
  throw new Error("No selected node.");
1194
763
  if (e.length === 1) {
1195
764
  const h = e[0].nodeObj, a = e[0].nodeObj.parent;
1196
765
  if (!a)
1197
766
  throw new Error("Can not select root node.");
1198
- const f = a.children.findIndex((g) => h === g);
767
+ const d = a.children.findIndex((p) => h === p);
1199
768
  return {
1200
769
  parent: a.id,
1201
- start: f,
1202
- end: f
770
+ start: d,
771
+ end: d
1203
772
  };
1204
773
  }
1205
774
  let t = 0;
1206
775
  const n = e.map((h) => {
1207
776
  let a = h.nodeObj;
1208
- const f = [];
777
+ const d = [];
1209
778
  for (; a.parent; ) {
1210
- const g = a.parent, u = g.children, p = u == null ? void 0 : u.indexOf(a);
1211
- a = g, f.unshift({ node: a, index: p });
779
+ const p = a.parent, u = p.children, m = u == null ? void 0 : u.indexOf(a);
780
+ a = p, d.unshift({ node: a, index: m });
1212
781
  }
1213
- return f.length > t && (t = f.length), f;
782
+ return d.length > t && (t = d.length), d;
1214
783
  });
1215
784
  let o = 0;
1216
785
  e:
1217
786
  for (; o < t; o++) {
1218
- const h = (c = n[0][o]) == null ? void 0 : c.node;
787
+ const h = (l = n[0][o]) == null ? void 0 : l.node;
1219
788
  for (let a = 1; a < n.length; a++)
1220
- if (((d = n[a][o]) == null ? void 0 : d.node) !== h)
789
+ if (((f = n[a][o]) == null ? void 0 : f.node) !== h)
1221
790
  break e;
1222
791
  }
1223
792
  if (!o)
1224
793
  throw new Error("Can not select root node.");
1225
- const s = n.map((h) => h[o - 1].index).sort(), i = s[0] || 0, r = s[s.length - 1] || 0, l = n[0][o - 1].node;
1226
- if (!l.parent)
794
+ const s = n.map((h) => h[o - 1].index).sort(), i = s[0] || 0, r = s[s.length - 1] || 0, c = n[0][o - 1].node;
795
+ if (!c.parent)
1227
796
  throw new Error("Please select nodes in the same main topic.");
1228
797
  return {
1229
- parent: l.id,
798
+ parent: c.id,
1230
799
  start: i,
1231
800
  end: r
1232
801
  };
1233
- }, Pt = function(e) {
802
+ }, mt = function(e) {
1234
803
  const t = document.createElementNS("http://www.w3.org/2000/svg", "g");
1235
804
  return t.setAttribute("id", e), t;
1236
- }, pe = function(e, t) {
805
+ }, ne = function(e, t) {
1237
806
  const n = document.createElementNS("http://www.w3.org/2000/svg", "path");
1238
807
  return x(n, {
1239
808
  d: e,
@@ -1242,7 +811,7 @@ const Dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1242
811
  "stroke-linecap": "round",
1243
812
  "stroke-width": "2"
1244
813
  }), n;
1245
- }, me = function(e, t, n, o, s) {
814
+ }, oe = function(e, t, n, o, s) {
1246
815
  const i = document.createElementNS("http://www.w3.org/2000/svg", "text");
1247
816
  return x(i, {
1248
817
  "text-anchor": o,
@@ -1250,43 +819,43 @@ const Dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1250
819
  y: n + "",
1251
820
  fill: s || "#666"
1252
821
  }), i.innerHTML = e, i;
1253
- }, zt = (e) => L(e).parentElement.parentElement, jt = function({ parent: e, start: t }) {
822
+ }, gt = (e) => S(e).parentElement.parentElement, yt = function({ parent: e, start: t }) {
1254
823
  var i, r;
1255
- const n = L(e), o = n.nodeObj;
824
+ const n = S(e), o = n.nodeObj;
1256
825
  let s;
1257
- return o.parent ? s = (i = n.closest("me-main")) == null ? void 0 : i.className : s = (r = L(o.children[t].id).closest("me-main")) == null ? void 0 : r.className, s;
1258
- }, $e = function(e, t) {
1259
- var te;
1260
- const { id: n, text: o, parent: s, start: i, end: r } = t, l = e.nodes, d = L(s).nodeObj, h = jt(t);
1261
- let a = 1 / 0, f = 0, g = 0, u = 0;
1262
- for (let q = i; q <= r; q++) {
1263
- const ne = (te = d.children) == null ? void 0 : te[q];
1264
- if (!ne)
826
+ return o.parent ? s = (i = n.closest("me-main")) == null ? void 0 : i.className : s = (r = S(o.children[t].id).closest("me-main")) == null ? void 0 : r.className, s;
827
+ }, ge = function(e, t) {
828
+ var X;
829
+ const { id: n, text: o, parent: s, start: i, end: r } = t, c = e.nodes, f = S(s).nodeObj, h = yt(t);
830
+ let a = 1 / 0, d = 0, p = 0, u = 0;
831
+ for (let B = i; B <= r; B++) {
832
+ const U = (X = f.children) == null ? void 0 : X[B];
833
+ if (!U)
1265
834
  return e.removeSummary(n), null;
1266
- const I = zt(ne.id), { offsetLeft: F, offsetTop: oe } = $(l, I);
1267
- q === i && (g = oe + 20), q === r && (u = oe + I.offsetHeight - 20), F < a && (a = F), I.offsetWidth + F > f && (f = I.offsetWidth + F);
835
+ const j = gt(U.id), { offsetLeft: O, offsetTop: J } = M(c, j), K = i === r ? 10 : 20;
836
+ B === i && (p = J + K), B === r && (u = J + j.offsetHeight - K), O < a && (a = O), j.offsetWidth + O > d && (d = j.offsetWidth + O);
1268
837
  }
1269
- let p, m;
1270
- const y = g + 10, v = u + 10, w = (y + v) / 2, _ = e.theme.cssVar["--color"];
1271
- h === "lhs" ? (p = pe(`M ${a + 10} ${y} c -5 0 -10 5 -10 10 L ${a} ${v - 10} c 0 5 5 10 10 10 M ${a} ${w} h -10`, _), m = me(o, a - 20, w + 6, "end", _)) : (p = pe(`M ${f - 10} ${y} c 5 0 10 5 10 10 L ${f} ${v - 10} c 0 5 -5 10 -10 10 M ${f} ${w} h 10`, _), m = me(o, f + 20, w + 6, "start", _));
1272
- const E = Pt("s-" + n);
1273
- return E.appendChild(p), E.appendChild(m), E.summaryObj = t, e.summarySvg.appendChild(E), E;
1274
- }, Ot = function() {
838
+ let m, g;
839
+ const v = p + 10, y = u + 10, b = (v + y) / 2, C = e.theme.cssVar["--color"];
840
+ h === "lhs" ? (m = ne(`M ${a + 10} ${v} c -5 0 -10 5 -10 10 L ${a} ${y - 10} c 0 5 5 10 10 10 M ${a} ${b} h -10`, C), g = oe(o, a - 20, b + 6, "end", C)) : (m = ne(`M ${d - 10} ${v} c 5 0 10 5 10 10 L ${d} ${y - 10} c 0 5 -5 10 -10 10 M ${d} ${b} h 10`, C), g = oe(o, d + 20, b + 6, "start", C));
841
+ const w = mt("s-" + n);
842
+ return w.appendChild(m), w.appendChild(g), w.summaryObj = t, e.summarySvg.appendChild(w), w;
843
+ }, xt = function() {
1275
844
  let e = [];
1276
845
  this.currentNode ? e = [this.currentNode] : this.currentNodes && (e = this.currentNodes);
1277
- const { parent: t, start: n, end: o } = Ht(e), s = { id: ee(), parent: t, start: n, end: o, text: "summary" }, i = $e(this, s);
846
+ const { parent: t, start: n, end: o } = pt(e), s = { id: Y(), parent: t, start: n, end: o, text: "summary" }, i = ge(this, s);
1278
847
  this.summaries.push(s), this.editSummary(i), this.bus.fire("operation", {
1279
848
  name: "createSummary",
1280
849
  obj: s
1281
850
  });
1282
- }, qt = function(e) {
851
+ }, vt = function(e) {
1283
852
  var n;
1284
853
  const t = this.summaries.findIndex((o) => o.id === e);
1285
854
  t > -1 && (this.summaries.splice(t, 1), (n = document.querySelector("#s-" + e)) == null || n.remove()), this.bus.fire("operation", {
1286
855
  name: "removeSummary",
1287
856
  obj: { id: e }
1288
857
  });
1289
- }, Rt = function(e) {
858
+ }, bt = function(e) {
1290
859
  const t = e.children[1].getBBox(), n = 6, o = 3, s = document.createElementNS("http://www.w3.org/2000/svg", "rect");
1291
860
  x(s, {
1292
861
  x: t.x - n + "",
@@ -1297,22 +866,22 @@ const Dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1297
866
  stroke: this.theme.cssVar["--selected"] || "#4dc4ff",
1298
867
  "stroke-width": "2",
1299
868
  fill: "none"
1300
- }), s.classList.add("selected"), e.appendChild(s), this.currentSummary = e;
1301
- }, Vt = function() {
869
+ }), e.appendChild(s), this.currentSummary = e;
870
+ }, wt = function() {
1302
871
  var e, t;
1303
872
  (t = (e = this.currentSummary) == null ? void 0 : e.querySelector("rect")) == null || t.remove(), this.currentSummary = null;
1304
- }, It = function() {
873
+ }, Ct = function() {
1305
874
  this.summarySvg.innerHTML = "", this.summaries.forEach((e) => {
1306
875
  try {
1307
- $e(this, e);
876
+ ge(this, e);
1308
877
  } catch {
1309
878
  }
1310
879
  }), this.nodes.insertAdjacentElement("beforeend", this.summarySvg);
1311
- }, Ft = function(e) {
880
+ }, Et = function(e) {
1312
881
  if (!e)
1313
882
  return;
1314
883
  const t = e.childNodes[1];
1315
- _e(this, t, (n) => {
884
+ he(this, t, (n) => {
1316
885
  var i;
1317
886
  const o = e.summaryObj, s = ((i = n.textContent) == null ? void 0 : i.trim()) || "";
1318
887
  s === "" ? o.text = origin : o.text = s, n.remove(), s !== origin && (t.innerHTML = o.text, this.linkDiv(), this.bus.fire("operation", {
@@ -1320,49 +889,49 @@ const Dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1320
889
  obj: o
1321
890
  }));
1322
891
  });
1323
- }, Wt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
892
+ }, Lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1324
893
  __proto__: null,
1325
- createSummary: Ot,
1326
- editSummary: Ft,
1327
- removeSummary: qt,
1328
- renderSummary: It,
1329
- selectSummary: Rt,
1330
- unselectSummary: Vt
1331
- }, Symbol.toStringTag, { value: "Module" })), C = "http://www.w3.org/2000/svg";
1332
- function Xt(e, t) {
1333
- const n = document.createElementNS(C, "svg");
894
+ createSummary: xt,
895
+ editSummary: Et,
896
+ removeSummary: vt,
897
+ renderSummary: Ct,
898
+ selectSummary: bt,
899
+ unselectSummary: wt
900
+ }, Symbol.toStringTag, { value: "Module" })), L = "http://www.w3.org/2000/svg";
901
+ function St(e, t) {
902
+ const n = document.createElementNS(L, "svg");
1334
903
  return x(n, {
1335
904
  version: "1.1",
1336
- xmlns: C,
905
+ xmlns: L,
1337
906
  height: e,
1338
907
  width: t
1339
908
  }), n;
1340
909
  }
1341
- function Yt(e, t) {
910
+ function Mt(e, t) {
1342
911
  return (parseInt(e) - parseInt(t)) / 2;
1343
912
  }
1344
- function Gt(e, t, n, o) {
1345
- const s = document.createElementNS(C, "g");
913
+ function $t(e, t, n, o) {
914
+ const s = document.createElementNS(L, "g");
1346
915
  let i = "";
1347
916
  return e.text ? i = e.text.textContent : i = e.childNodes[0].textContent, i.split(`
1348
- `).forEach((l, c) => {
1349
- const d = document.createElementNS(C, "text");
1350
- x(d, {
917
+ `).forEach((c, l) => {
918
+ const f = document.createElementNS(L, "text");
919
+ x(f, {
1351
920
  x: n + parseInt(t.paddingLeft) + "",
1352
- y: o + parseInt(t.paddingTop) + Yt(t.lineHeight, t.fontSize) * (c + 1) + parseFloat(t.fontSize) * (c + 1) + "",
921
+ y: o + parseInt(t.paddingTop) + Mt(t.lineHeight, t.fontSize) * (l + 1) + parseFloat(t.fontSize) * (l + 1) + "",
1353
922
  "text-anchor": "start",
1354
923
  "font-family": t.fontFamily,
1355
924
  "font-size": `${t.fontSize}`,
1356
925
  "font-weight": `${t.fontWeight}`,
1357
926
  fill: `${t.color}`
1358
- }), d.innerHTML = l, s.appendChild(d);
927
+ }), f.innerHTML = c, s.appendChild(f);
1359
928
  }), s;
1360
929
  }
1361
- function Kt(e, t, n, o) {
1362
- var l;
930
+ function Nt(e, t, n, o) {
931
+ var c;
1363
932
  let s = "";
1364
- (l = e.nodeObj) != null && l.dangerouslySetInnerHTML ? s = e.nodeObj.dangerouslySetInnerHTML : e.text ? s = e.text.textContent : s = e.childNodes[0].textContent;
1365
- const i = document.createElementNS(C, "foreignObject");
933
+ (c = e.nodeObj) != null && c.dangerouslySetInnerHTML ? s = e.nodeObj.dangerouslySetInnerHTML : e.text ? s = e.text.textContent : s = e.childNodes[0].textContent;
934
+ const i = document.createElementNS(L, "foreignObject");
1366
935
  x(i, {
1367
936
  x: n + parseInt(t.paddingLeft) + "",
1368
937
  y: o + parseInt(t.paddingTop) + "",
@@ -1375,8 +944,8 @@ function Kt(e, t, n, o) {
1375
944
  style: `font-family: ${t.fontFamily}; font-size: ${t.fontSize}; font-weight: ${t.fontWeight}; color: ${t.color}; white-space: pre-wrap;`
1376
945
  }), r.innerHTML = s, i.appendChild(r), i;
1377
946
  }
1378
- function Ut(e, t) {
1379
- const n = getComputedStyle(t), { offsetLeft: o, offsetTop: s } = $(e.nodes, t), i = document.createElementNS(C, "rect");
947
+ function Tt(e, t) {
948
+ const n = getComputedStyle(t), { offsetLeft: o, offsetTop: s } = M(e.nodes, t), i = document.createElementNS(L, "rect");
1380
949
  return x(i, {
1381
950
  x: o + "",
1382
951
  y: s + "",
@@ -1389,8 +958,8 @@ function Ut(e, t) {
1389
958
  "stroke-width": n.borderWidth
1390
959
  }), i;
1391
960
  }
1392
- function X(e, t, n = !1) {
1393
- const o = getComputedStyle(t), { offsetLeft: s, offsetTop: i } = $(e.nodes, t), r = document.createElementNS(C, "rect");
961
+ function V(e, t, n = !1) {
962
+ const o = getComputedStyle(t), { offsetLeft: s, offsetTop: i } = M(e.nodes, t), r = document.createElementNS(L, "rect");
1394
963
  x(r, {
1395
964
  x: s + "",
1396
965
  y: i + "",
@@ -1402,13 +971,13 @@ function X(e, t, n = !1) {
1402
971
  stroke: o.borderColor,
1403
972
  "stroke-width": o.borderWidth
1404
973
  });
1405
- const l = document.createElementNS(C, "g");
1406
- l.appendChild(r);
1407
- let c;
1408
- return n ? c = Kt(t, o, s, i) : c = Gt(t, o, s, i), l.appendChild(c), l;
974
+ const c = document.createElementNS(L, "g");
975
+ c.appendChild(r);
976
+ let l;
977
+ return n ? l = Nt(t, o, s, i) : l = $t(t, o, s, i), c.appendChild(l), c;
1409
978
  }
1410
- function Jt(e, t) {
1411
- const n = getComputedStyle(t), { offsetLeft: o, offsetTop: s } = $(e.nodes, t), i = document.createElementNS(C, "a"), r = document.createElementNS(C, "text");
979
+ function kt(e, t) {
980
+ const n = getComputedStyle(t), { offsetLeft: o, offsetTop: s } = M(e.nodes, t), i = document.createElementNS(L, "a"), r = document.createElementNS(L, "text");
1412
981
  return x(r, {
1413
982
  x: o + "",
1414
983
  y: s + parseInt(n.fontSize) + "",
@@ -1419,8 +988,8 @@ function Jt(e, t) {
1419
988
  fill: `${n.color}`
1420
989
  }), r.innerHTML = t.textContent, i.appendChild(r), i.setAttribute("href", t.href), i;
1421
990
  }
1422
- function Qt(e, t) {
1423
- const n = getComputedStyle(t), { offsetLeft: o, offsetTop: s } = $(e.nodes, t), i = document.createElementNS(C, "image");
991
+ function Ht(e, t) {
992
+ const n = getComputedStyle(t), { offsetLeft: o, offsetTop: s } = M(e.nodes, t), i = document.createElementNS(L, "image");
1424
993
  return x(i, {
1425
994
  x: o + "",
1426
995
  y: s + "",
@@ -1429,41 +998,41 @@ function Qt(e, t) {
1429
998
  href: t.src
1430
999
  }), i;
1431
1000
  }
1432
- const Y = 100, Zt = '<?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">', en = (e, t = !1) => {
1433
- var a, f, g;
1434
- const n = e.nodes, o = n.offsetHeight + Y * 2, s = n.offsetWidth + Y * 2, i = Xt(o + "px", s + "px"), r = document.createElementNS(C, "svg"), l = document.createElementNS(C, "rect");
1435
- x(l, {
1001
+ const _ = 100, At = '<?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">', Dt = (e, t = !1) => {
1002
+ var a, d, p;
1003
+ const n = e.nodes, o = n.offsetHeight + _ * 2, s = n.offsetWidth + _ * 2, i = St(o + "px", s + "px"), r = document.createElementNS(L, "svg"), c = document.createElementNS(L, "rect");
1004
+ x(c, {
1436
1005
  x: "0",
1437
1006
  y: "0",
1438
1007
  width: `${s}`,
1439
1008
  height: `${o}`,
1440
1009
  fill: e.theme.cssVar["--bgcolor"]
1441
- }), i.appendChild(l), n.querySelectorAll(".subLines").forEach((u) => {
1442
- const p = u.cloneNode(!0), { offsetLeft: m, offsetTop: y } = $(n, u.parentElement);
1443
- p.setAttribute("x", `${m}`), p.setAttribute("y", `${y}`), r.appendChild(p);
1010
+ }), i.appendChild(c), n.querySelectorAll(".subLines").forEach((u) => {
1011
+ const m = u.cloneNode(!0), { offsetLeft: g, offsetTop: v } = M(n, u.parentElement);
1012
+ m.setAttribute("x", `${g}`), m.setAttribute("y", `${v}`), r.appendChild(m);
1444
1013
  });
1445
- const c = (a = n.querySelector(".lines")) == null ? void 0 : a.cloneNode(!0);
1446
- c && r.appendChild(c);
1447
- const d = (f = n.querySelector(".topiclinks")) == null ? void 0 : f.cloneNode(!0);
1448
- d && r.appendChild(d);
1449
- const h = (g = n.querySelector(".summary")) == null ? void 0 : g.cloneNode(!0);
1014
+ const l = (a = n.querySelector(".lines")) == null ? void 0 : a.cloneNode(!0);
1015
+ l && r.appendChild(l);
1016
+ const f = (d = n.querySelector(".topiclinks")) == null ? void 0 : d.cloneNode(!0);
1017
+ f && r.appendChild(f);
1018
+ const h = (p = n.querySelector(".summary")) == null ? void 0 : p.cloneNode(!0);
1450
1019
  return h && r.appendChild(h), n.querySelectorAll("me-tpc").forEach((u) => {
1451
- u.nodeObj.dangerouslySetInnerHTML ? r.appendChild(X(e, u, !t)) : (r.appendChild(Ut(e, u)), r.appendChild(X(e, u.text, !t)));
1020
+ u.nodeObj.dangerouslySetInnerHTML ? r.appendChild(V(e, u, !t)) : (r.appendChild(Tt(e, u)), r.appendChild(V(e, u.text, !t)));
1452
1021
  }), n.querySelectorAll(".tags > span").forEach((u) => {
1453
- r.appendChild(X(e, u));
1022
+ r.appendChild(V(e, u));
1454
1023
  }), n.querySelectorAll(".icons > span").forEach((u) => {
1455
- r.appendChild(X(e, u));
1024
+ r.appendChild(V(e, u));
1456
1025
  }), n.querySelectorAll(".hyper-link").forEach((u) => {
1457
- r.appendChild(Jt(e, u));
1026
+ r.appendChild(kt(e, u));
1458
1027
  }), n.querySelectorAll("img").forEach((u) => {
1459
- r.appendChild(Qt(e, u));
1028
+ r.appendChild(Ht(e, u));
1460
1029
  }), x(r, {
1461
- x: Y + "",
1462
- y: Y + "",
1030
+ x: _ + "",
1031
+ y: _ + "",
1463
1032
  overflow: "visible"
1464
1033
  }), i.appendChild(r), i;
1465
- }, tn = (e, t) => (t && e.insertAdjacentHTML("afterbegin", "<style>" + t + "</style>"), Zt + e.outerHTML);
1466
- function nn(e) {
1034
+ }, Bt = (e, t) => (t && e.insertAdjacentHTML("afterbegin", "<style>" + t + "</style>"), At + e.outerHTML);
1035
+ function Pt(e) {
1467
1036
  return new Promise((t, n) => {
1468
1037
  const o = new FileReader();
1469
1038
  o.onload = (s) => {
@@ -1473,68 +1042,68 @@ function nn(e) {
1473
1042
  }, o.readAsDataURL(e);
1474
1043
  });
1475
1044
  }
1476
- const on = function(e = !1, t) {
1477
- const n = en(this, e), o = tn(n, t);
1045
+ const zt = function(e = !1, t) {
1046
+ const n = Dt(this, e), o = Bt(n, t);
1478
1047
  return new Blob([o], { type: "image/svg+xml" });
1479
- }, sn = async function(e = !1, t) {
1480
- const n = this.exportSvg(e, t), o = await nn(n);
1048
+ }, jt = async function(e = !1, t) {
1049
+ const n = this.exportSvg(e, t), o = await Pt(n);
1481
1050
  return new Promise((s, i) => {
1482
1051
  const r = new Image();
1483
1052
  r.setAttribute("crossOrigin", "anonymous"), r.onload = () => {
1484
- const l = document.createElement("canvas");
1485
- l.width = r.width, l.height = r.height, l.getContext("2d").drawImage(r, 0, 0), l.toBlob(s, "image/png", 1);
1053
+ const c = document.createElement("canvas");
1054
+ c.width = r.width, c.height = r.height, c.getContext("2d").drawImage(r, 0, 0), c.toBlob(s, "image/png", 1);
1486
1055
  }, r.src = o, r.onerror = i;
1487
1056
  });
1488
- }, rn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1057
+ }, Ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1489
1058
  __proto__: null,
1490
- exportPng: sn,
1491
- exportSvg: on
1492
- }, Symbol.toStringTag, { value: "Module" })), ln = {}, cn = {
1493
- getObjById: G,
1494
- generateNewObj: Ne,
1495
- layout: Be,
1496
- linkDiv: Ie,
1497
- editTopic: qe,
1498
- createWrapper: Pe,
1499
- createParent: ze,
1500
- createChildren: je,
1501
- createTopic: Oe,
1502
- findEle: L,
1503
- changeTheme: tt,
1504
- ...St,
1505
- ...ln,
1506
- ...Dt,
1507
- ...Wt,
1508
- ...rn,
1059
+ exportPng: jt,
1060
+ exportSvg: zt
1061
+ }, Symbol.toStringTag, { value: "Module" })), Vt = {}, _t = {
1062
+ getObjById: q,
1063
+ generateNewObj: ye,
1064
+ layout: be,
1065
+ linkDiv: ke,
1066
+ editTopic: $e,
1067
+ createWrapper: Ee,
1068
+ createParent: Le,
1069
+ createChildren: Se,
1070
+ createTopic: Me,
1071
+ findEle: S,
1072
+ changeTheme: Be,
1073
+ ...ot,
1074
+ ...Vt,
1075
+ ...ut,
1076
+ ...Lt,
1077
+ ...Ot,
1509
1078
  init(e) {
1510
1079
  if (!e || !e.nodeData)
1511
1080
  return new Error("MindElixir: `data` is required");
1512
- e.direction !== void 0 && (this.direction = e.direction), this.changeTheme(e.theme || this.theme, !1), this.nodeData = e.nodeData, Z(this.nodeData), this.arrows = e.arrows || [], this.summaries = e.summaries || [], this.tidyArrow(), this.toolBar && Xe(this), this.toCenter(), this.layout(), this.linkDiv();
1081
+ e.direction !== void 0 && (this.direction = e.direction), this.changeTheme(e.theme || this.theme, !1), this.nodeData = e.nodeData, G(this.nodeData), this.arrows = e.arrows || [], this.summaries = e.summaries || [], this.tidyArrow(), this.toolBar && De(this), this.toCenter(), this.layout(), this.linkDiv();
1513
1082
  },
1514
1083
  destroy() {
1515
1084
  var e;
1516
1085
  this.disposable.forEach((t) => t()), this.mindElixirBox && (this.mindElixirBox.innerHTML = ""), this.mindElixirBox = void 0, this.nodeData = void 0, this.arrows = void 0, this.summaries = void 0, this.currentArrow = void 0, this.currentNode = void 0, this.currentNodes = void 0, this.currentSummary = void 0, this.waitCopy = void 0, this.theme = void 0, this.direction = void 0, this.bus = void 0, this.container = void 0, this.map = void 0, this.lines = void 0, this.linkController = void 0, this.linkSvgGroup = void 0, this.P2 = void 0, this.P3 = void 0, this.line1 = void 0, this.line2 = void 0, this.nodes = void 0, (e = this.selection) == null || e.destroy(), this.selection = void 0;
1517
1086
  }
1518
1087
  };
1519
- function an({ pT: e, pL: t, pW: n, pH: o, cT: s, cL: i, cW: r, cH: l, direction: c, containerHeight: d }) {
1088
+ function qt({ pT: e, pL: t, pW: n, pH: o, cT: s, cL: i, cW: r, cH: c, direction: l, containerHeight: f }) {
1520
1089
  let h = t + n / 2;
1521
1090
  const a = e + o / 2;
1522
- let f;
1523
- c === "lhs" ? f = i + r : f = i;
1524
- const g = s + l / 2, p = (1 - Math.abs(g - a) / d) * 0.25 * (n / 2);
1525
- return c === "lhs" ? h = h - n / 10 - p : h = h + n / 10 + p, `M ${h} ${a} Q ${h} ${g} ${f} ${g}`;
1091
+ let d;
1092
+ l === "lhs" ? d = i + r : d = i;
1093
+ const p = s + c / 2, m = (1 - Math.abs(p - a) / f) * 0.25 * (n / 2);
1094
+ return l === "lhs" ? h = h - n / 10 - m : h = h + n / 10 + m, `M ${h} ${a} Q ${h} ${p} ${d} ${p}`;
1526
1095
  }
1527
- function hn({ pT: e, pL: t, pW: n, pH: o, cT: s, cL: i, cW: r, cH: l, direction: c, isFirst: d }) {
1096
+ function It({ pT: e, pL: t, pW: n, pH: o, cT: s, cL: i, cW: r, cH: c, direction: l, isFirst: f }) {
1528
1097
  const h = parseInt(this.mindElixirBox.style.getPropertyValue("--gap"));
1529
- let a = 0, f = 0;
1530
- d ? a = e + o / 2 : a = e + o;
1531
- const g = s + l;
1532
- let u = 0, p = 0, m = 0;
1533
- const y = Math.abs(a - g) / 300 * h;
1534
- return c === "lhs" ? (m = t, u = m + h, p = m - h, f = i + h, `M ${u} ${a} C ${m} ${a} ${m + y} ${g} ${p} ${g} H ${f}`) : (m = t + n, u = m - h, p = m + h, f = i + r - h, `M ${u} ${a} C ${m} ${a} ${m - y} ${g} ${p} ${g} H ${f}`);
1098
+ let a = 0, d = 0;
1099
+ f ? a = e + o / 2 : a = e + o;
1100
+ const p = s + c;
1101
+ let u = 0, m = 0, g = 0;
1102
+ const v = Math.abs(a - p) / 300 * h;
1103
+ return l === "lhs" ? (g = t, u = g + h, m = g - h, d = i + h, `M ${u} ${a} C ${g} ${a} ${g + v} ${p} ${m} ${p} H ${d}`) : (g = t + n, u = g - h, m = g + h, d = i + r - h, `M ${u} ${a} C ${g} ${a} ${g - v} ${p} ${m} ${p} H ${d}`);
1535
1104
  }
1536
- const dn = "4.3.2", R = document;
1537
- function N({
1105
+ const Ft = "4.3.4", P = document;
1106
+ function $({
1538
1107
  el: e,
1539
1108
  direction: t,
1540
1109
  locale: n,
@@ -1542,36 +1111,36 @@ function N({
1542
1111
  editable: s,
1543
1112
  contextMenu: i,
1544
1113
  contextMenuOption: r,
1545
- toolBar: l,
1546
- keypress: c,
1547
- mouseSelectionButton: d,
1114
+ toolBar: c,
1115
+ keypress: l,
1116
+ mouseSelectionButton: f,
1548
1117
  selectionContainer: h,
1549
1118
  before: a,
1550
- newTopicName: f,
1551
- allowUndo: g,
1119
+ newTopicName: d,
1120
+ allowUndo: p,
1552
1121
  generateMainBranch: u,
1553
- generateSubBranch: p,
1554
- overflowHidden: m,
1555
- theme: y
1122
+ generateSubBranch: m,
1123
+ overflowHidden: g,
1124
+ theme: v
1556
1125
  }) {
1557
- let v = null;
1558
- const w = Object.prototype.toString.call(e);
1559
- if (w === "[object HTMLDivElement]" ? v = e : w === "[object String]" && (v = document.querySelector(e)), !v)
1126
+ let y = null;
1127
+ const b = Object.prototype.toString.call(e);
1128
+ if (b === "[object HTMLDivElement]" ? y = e : b === "[object String]" && (y = document.querySelector(e)), !y)
1560
1129
  throw new Error("MindElixir: el is not a valid element");
1561
- v.className += " mind-elixir", v.innerHTML = "", this.mindElixirBox = v, this.disposable = [], this.before = a || {}, this.locale = n || "en", this.contextMenuOption = r, this.contextMenu = i === void 0 ? !0 : i, this.toolBar = l === void 0 ? !0 : l, this.keypress = c === void 0 ? !0 : c, this.mouseSelectionButton = d || 0, this.direction = typeof t == "number" ? t : 1, this.draggable = o === void 0 ? !0 : o, this.newTopicName = f || "new node", this.editable = s === void 0 ? !0 : s, this.allowUndo = g === void 0 ? !1 : g, this.currentNode = null, this.currentArrow = null, this.scaleVal = 1, this.tempDirection = null, this.generateMainBranch = u || an, this.generateSubBranch = p || hn, this.overflowHidden = m || !1, this.bus = ke.create(), this.container = R.createElement("div"), this.selectionContainer = h || this.container, this.container.className = "map-container";
1562
- const _ = window.matchMedia("(prefers-color-scheme: dark)");
1563
- this.theme = y || (_.matches ? ve : ge);
1564
- const E = R.createElement("div");
1565
- E.className = "map-canvas", this.map = E, this.map.setAttribute("tabindex", "0"), this.container.appendChild(this.map), this.mindElixirBox.appendChild(this.container), this.nodes = R.createElement("me-nodes"), this.nodes.className = "main-node-container", this.lines = V("lines"), this.summarySvg = V("summary"), this.linkController = V("linkcontroller"), this.P2 = R.createElement("div"), this.P3 = R.createElement("div"), this.P2.className = this.P3.className = "circle", this.P2.style.display = this.P3.style.display = "none", this.line1 = re(), this.line2 = re(), this.linkController.appendChild(this.line1), this.linkController.appendChild(this.line2), this.linkSvgGroup = V("topiclinks"), this.map.appendChild(this.nodes), this.overflowHidden ? this.container.style.overflow = "hidden" : Ae(this);
1130
+ y.className += " mind-elixir", y.innerHTML = "", this.mindElixirBox = y, this.disposable = [], this.before = a || {}, this.locale = n || "en", this.contextMenuOption = r, this.contextMenu = i === void 0 ? !0 : i, this.toolBar = c === void 0 ? !0 : c, this.keypress = l === void 0 ? !0 : l, this.mouseSelectionButton = f || 0, this.direction = typeof t == "number" ? t : 1, this.draggable = o === void 0 ? !0 : o, this.newTopicName = d || "new node", this.editable = s === void 0 ? !0 : s, this.allowUndo = p === void 0 ? !1 : p, this.currentNode = null, this.currentArrow = null, this.scaleVal = 1, this.tempDirection = null, this.generateMainBranch = u || qt, this.generateSubBranch = m || It, this.overflowHidden = g || !1, this.bus = ve.create(), this.container = P.createElement("div"), this.selectionContainer = h || this.container, this.container.className = "map-container";
1131
+ const C = window.matchMedia("(prefers-color-scheme: dark)");
1132
+ this.theme = v || (C.matches ? ie : se);
1133
+ const w = P.createElement("div");
1134
+ w.className = "map-canvas", this.map = w, this.map.setAttribute("tabindex", "0"), this.container.appendChild(this.map), this.mindElixirBox.appendChild(this.container), this.nodes = P.createElement("me-nodes"), this.nodes.className = "main-node-container", this.lines = z("lines"), this.summarySvg = z("summary"), this.linkController = z("linkcontroller"), this.P2 = P.createElement("div"), this.P3 = P.createElement("div"), this.P2.className = this.P3.className = "circle", this.P2.style.display = this.P3.style.display = "none", this.line1 = ee(), this.line2 = ee(), this.linkController.appendChild(this.line1), this.linkController.appendChild(this.line2), this.linkSvgGroup = z("topiclinks"), this.map.appendChild(this.nodes), this.overflowHidden ? this.container.style.overflow = "hidden" : xe(this);
1566
1135
  }
1567
- N.prototype = cn;
1568
- N.LEFT = O;
1569
- N.RIGHT = J;
1570
- N.SIDE = Q;
1571
- N.THEME = ge;
1572
- N.DARK_THEME = ve;
1573
- N.version = dn;
1574
- N.E = L;
1136
+ $.prototype = _t;
1137
+ $.LEFT = D;
1138
+ $.RIGHT = W;
1139
+ $.SIDE = R;
1140
+ $.THEME = se;
1141
+ $.DARK_THEME = ie;
1142
+ $.version = Ft;
1143
+ $.E = S;
1575
1144
  export {
1576
- N as default
1145
+ $ as default
1577
1146
  };