mind-elixir 1.1.5 → 2.0.0

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 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.MindElixir=t():e.MindElixir=t()}(self,(function(){return(()=>{var e={74:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var i=n(81),o=n.n(i),r=n(645),s=n.n(r),a=n(667),l=n.n(a),c=new URL(n(848),n.b),d=new URL(n(295),n.b),h=s()(o()),p=l()(c),u=l()(d);h.push([e.id,".mind-elixir {\n position: relative;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;\n}\n.mind-elixir .hyper-link {\n text-decoration: none;\n}\n.map-container {\n user-select: none;\n height: 100%;\n width: 100%;\n overflow: scroll;\n font-size: 15px;\n}\n.map-container::-webkit-scrollbar {\n width: 0px;\n height: 0px;\n}\n.map-container .focus-mode {\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n background: #fff;\n}\n.map-container .map-canvas {\n height: 20000px;\n width: 20000px;\n position: relative;\n user-select: none;\n transition: all 0.3s;\n transform: scale(1);\n background: #f6f6f6;\n}\n.map-container .map-canvas .selected {\n outline: 2px solid #4dc4ff;\n}\n.map-container .map-canvas root {\n position: absolute;\n}\n.map-container .map-canvas root tpc {\n display: block;\n color: #ffffff;\n padding: 10px 15px;\n background-color: #00aaff;\n border-radius: 5px;\n font-size: 25px;\n white-space: pre-wrap;\n}\n.map-container .map-canvas root tpc #input-box {\n padding: 10px 15px;\n}\n.map-container .box > grp {\n position: absolute;\n}\n.map-container .box > grp > t > tpc {\n background-color: #ffffff;\n border: 1px solid #444444;\n border-radius: 5px;\n color: #735c45;\n padding: 8px 10px;\n margin: 0;\n}\n.map-container .box > grp > t > tpc #input-box {\n padding: 8px 10px;\n}\n.map-container .box .lhs {\n direction: rtl;\n}\n.map-container .box .lhs tpc {\n direction: ltr;\n}\n.map-container .box grp {\n display: block;\n pointer-events: none;\n}\n.map-container .box children,\n.map-container .box t {\n display: inline-block;\n vertical-align: middle;\n}\n.map-container .box t {\n position: relative;\n cursor: pointer;\n padding: 0 15px;\n margin-top: 10px;\n}\n.map-container .box t tpc {\n position: relative;\n display: block;\n padding: 5px;\n border-radius: 3px;\n color: #666666;\n pointer-events: all;\n max-width: 800px;\n white-space: pre-wrap;\n line-height: 1.2;\n}\n.map-container .box t tpc #input-box {\n padding: 5px;\n}\n.map-container .box t tpc .tags {\n direction: ltr;\n}\n.map-container .box t tpc .tags span {\n display: inline-block;\n border-radius: 3px;\n padding: 2px 4px;\n background: #d6f0f8;\n color: #276f86;\n margin: 0px;\n font-size: 12px;\n height: 16px;\n line-height: 16px;\n margin-right: 3px;\n margin-top: 2px;\n}\n.map-container .box t tpc .icons {\n display: inline-block;\n direction: ltr;\n margin-right: 10px;\n}\n.map-container .box t tpc .insert-preview {\n position: absolute;\n width: 100%;\n left: 0px;\n z-index: 9;\n}\n.map-container .box t tpc .before {\n height: 14px;\n top: -14px;\n}\n.map-container .box t tpc .show {\n background: #7ad5ff;\n pointer-events: none;\n opacity: 0.7;\n}\n.map-container .box t tpc .in {\n height: 100%;\n top: 0px;\n}\n.map-container .box t tpc .after {\n height: 14px;\n bottom: -14px;\n}\n.map-container .box t epd {\n position: absolute;\n height: 18px;\n width: 18px;\n background-image: url("+p+");\n background-repeat: no-repeat;\n background-size: contain;\n background-position: center;\n pointer-events: all;\n z-index: 9;\n}\n.map-container .box t epd.minus {\n background-image: url("+u+") !important;\n transition: all 0.3s;\n opacity: 0;\n}\n.map-container .box t epd.minus:hover {\n opacity: 1;\n}\n.map-container .icon {\n width: 1em;\n height: 1em;\n vertical-align: -0.15em;\n fill: currentColor;\n overflow: hidden;\n}\n.map-container .lines,\n.map-container .subLines,\n.map-container .topiclinks,\n.map-container .linkcontroller {\n position: absolute;\n height: 102%;\n width: 100%;\n top: 0;\n left: 0;\n}\n.map-container .topiclinks,\n.map-container .linkcontroller {\n pointer-events: none;\n}\n.map-container .topiclinks g,\n.map-container .linkcontroller g {\n pointer-events: all;\n}\n.map-container .lines,\n.map-container .subLines {\n pointer-events: none;\n z-index: -1;\n}\n.map-container .topiclinks *,\n.map-container .linkcontroller * {\n z-index: 100;\n}\n.map-container .topiclinks g {\n cursor: pointer;\n}\ntpc > img {\n pointer-events: none;\n display: block;\n}\n.down t,\n.down children {\n display: block !important;\n}\n.down grp {\n display: inline-block !important;\n}\n.circle {\n position: absolute;\n height: 10px;\n width: 10px;\n margin-top: -5px;\n margin-left: -5px;\n border-radius: 100%;\n background: #aaa;\n cursor: pointer;\n}\n#input-box {\n position: absolute;\n top: 0;\n left: 0;\n background-color: #fff;\n color: #666666;\n width: max-content;\n max-width: 800px;\n z-index: 11;\n direction: ltr;\n user-select: auto;\n}\n",""]);const m=h},165:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(81),o=n.n(i),r=n(645),s=n.n(r)()(o());s.push([e.id,".mind-elixir .context-menu {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 99;\n}\n.mind-elixir .context-menu .menu-list {\n position: fixed;\n list-style: none;\n margin: 0;\n padding: 0;\n font: 300 15px 'Roboto', sans-serif;\n color: #333;\n box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.2);\n}\n.mind-elixir .context-menu .menu-list * {\n transition: color 0.4s, background-color 0.4s;\n}\n.mind-elixir .context-menu .menu-list li {\n min-width: 150px;\n overflow: hidden;\n white-space: nowrap;\n padding: 6px 10px;\n background-color: #fff;\n border-bottom: 1px solid #ecf0f1;\n}\n.mind-elixir .context-menu .menu-list li a {\n color: #333;\n text-decoration: none;\n}\n.mind-elixir .context-menu .menu-list li.disabled {\n color: #5e5e5e;\n background-color: #f7f7f7;\n}\n.mind-elixir .context-menu .menu-list li.disabled:hover {\n cursor: default;\n background-color: #f7f7f7;\n}\n.mind-elixir .context-menu .menu-list li:hover {\n cursor: pointer;\n background-color: #ecf0f1;\n}\n.mind-elixir .context-menu .menu-list li:first-child {\n border-radius: 5px 5px 0 0;\n}\n.mind-elixir .context-menu .menu-list li:last-child {\n border-bottom: 0;\n border-radius: 0 0 5px 5px;\n}\n.mind-elixir .context-menu .menu-list li span:last-child {\n float: right;\n}\n",""]);const a=s},787:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(81),o=n.n(i),r=n(645),s=n.n(r)()(o());s.push([e.id,".mind-elixir .mobile-menu {\n position: absolute;\n left: 20px;\n bottom: 70px;\n z-index: 99;\n margin: 0;\n padding: 0;\n color: #333;\n border-radius: 5px;\n box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.2);\n overflow: hidden;\n}\n.mind-elixir .mobile-menu * {\n transition: color 0.4s, background-color 0.4s;\n}\n.mind-elixir .mobile-menu div {\n float: left;\n text-align: center;\n width: 30px;\n overflow: hidden;\n white-space: nowrap;\n padding: 8px;\n background-color: #fff;\n border-bottom: 1px solid #ecf0f1;\n}\n.mind-elixir .mobile-menu div a {\n color: #333;\n text-decoration: none;\n}\n.mind-elixir .mobile-menu div.disabled {\n color: #5e5e5e;\n background-color: #f7f7f7;\n}\n.mind-elixir .mobile-menu div.disabled:hover {\n cursor: default;\n background-color: #f7f7f7;\n}\n.mind-elixir .mobile-menu div:hover {\n cursor: pointer;\n background-color: #ecf0f1;\n}\n",""]);const a=s},519:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(81),o=n.n(i),r=n(645),s=n.n(r)()(o());s.push([e.id,".mind-elixir .node-menu {\n position: absolute;\n right: 20px;\n top: 20px;\n background: #fff;\n padding: 10px;\n border-radius: 5px;\n box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2);\n width: 240px;\n box-sizing: border-box;\n padding: 0 15px 15px;\n transition: 0.3s all;\n}\n.mind-elixir .node-menu.close {\n height: 30px;\n width: 46px;\n overflow: hidden;\n}\n.mind-elixir .node-menu .button-container {\n padding: 3px 0;\n direction: rtl;\n}\n.mind-elixir .node-menu #nm-tag {\n margin-top: 20px;\n}\n.mind-elixir .node-menu .nm-fontsize-container {\n display: flex;\n justify-content: space-around;\n margin-bottom: 20px;\n}\n.mind-elixir .node-menu .nm-fontsize-container div {\n height: 36px;\n width: 36px;\n display: flex;\n align-items: center;\n justify-content: center;\n box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2);\n background-color: white;\n color: tomato;\n border-radius: 100%;\n}\n.mind-elixir .node-menu .nm-fontcolor-container {\n margin-bottom: 10px;\n}\n.mind-elixir .node-menu input,\n.mind-elixir .node-menu textarea {\n background: #f7f9fa;\n border: 1px solid #dce2e6;\n border-radius: 3px;\n padding: 5px;\n margin: 10px 0;\n width: 100%;\n box-sizing: border-box;\n}\n.mind-elixir .node-menu textarea {\n resize: none;\n}\n.mind-elixir .node-menu .split6 {\n display: inline-block;\n width: 16.66%;\n margin-bottom: 5px;\n}\n.mind-elixir .node-menu .palette {\n border-radius: 100%;\n width: 21px;\n height: 21px;\n border: 1px solid #edf1f2;\n margin: auto;\n}\n.mind-elixir .node-menu .nmenu-selected,\n.mind-elixir .node-menu .palette:hover {\n box-shadow: tomato 0 0 0 2px;\n background-color: #c7e9fa;\n}\n.mind-elixir .node-menu .size-selected {\n background-color: tomato !important;\n border-color: tomato;\n fill: white;\n color: white;\n}\n.mind-elixir .node-menu .size-selected svg {\n color: #fff;\n}\n.mind-elixir .node-menu .bof {\n text-align: center;\n}\n.mind-elixir .node-menu .bof span {\n display: inline-block;\n font-size: 14px;\n border-radius: 4px;\n padding: 2px 5px;\n}\n.mind-elixir .node-menu .bof .selected {\n background-color: tomato;\n color: white;\n}\n",""]);const a=s},301:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(81),o=n.n(i),r=n(645),s=n.n(r)()(o());s.push([e.id,".mind-elixir-toolbar {\n position: absolute;\n background: #fff;\n padding: 10px;\n border-radius: 5px;\n box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2);\n}\n.mind-elixir-toolbar span:active {\n opacity: 0.5;\n}\n.mind-elixir-toolbar.rb {\n right: 20px;\n bottom: 20px;\n font-family: iconfont;\n}\n.mind-elixir-toolbar.rb span + span {\n margin-left: 10px;\n}\n.mind-elixir-toolbar.lt {\n font-size: 20px;\n left: 20px;\n top: 20px;\n width: 20px;\n}\n.mind-elixir-toolbar.lt span {\n display: block;\n}\n.mind-elixir-toolbar.lt span + span {\n margin-top: 10px;\n}\n",""]);const a=s},645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",i=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),i&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),i&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,i,o,r){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(i)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(s[l]=!0)}for(var c=0;c<e.length;c++){var d=[].concat(e[c]);i&&s[d[0]]||(void 0!==r&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=r),n&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=n):d[2]=n),o&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=o):d[4]="".concat(o)),t.push(d))}},t}},667:e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},81:e=>{"use strict";e.exports=function(e){return e[1]}},379:e=>{"use strict";var t=[];function n(e){for(var n=-1,i=0;i<t.length;i++)if(t[i].identifier===e){n=i;break}return n}function i(e,i){for(var r={},s=[],a=0;a<e.length;a++){var l=e[a],c=i.base?l[0]+i.base:l[0],d=r[c]||0,h="".concat(c," ").concat(d);r[c]=d+1;var p=n(h),u={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==p)t[p].references++,t[p].updater(u);else{var m=o(u,i);i.byIndex=a,t.splice(a,0,{identifier:h,updater:m,references:1})}s.push(h)}return s}function o(e,t){var n=t.domAPI(t);n.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var r=i(e=e||[],o=o||{});return function(e){e=e||[];for(var s=0;s<r.length;s++){var a=n(r[s]);t[a].references--}for(var l=i(e,o),c=0;c<r.length;c++){var d=n(r[c]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}r=l}}},569:e=>{"use strict";var t={};e.exports=function(e,n){var i=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}},216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},565:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var i="";n.supports&&(i+="@supports (".concat(n.supports,") {")),n.media&&(i+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(i+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),i+=n.css,o&&(i+="}"),n.media&&(i+="}"),n.supports&&(i+="}");var r=n.sourceMap;r&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleTagTransform(i,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},857:()=>{!function(e){var t,n,i,o,r,s,a='<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="#333333" ></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="#333333" ></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="#666666" ></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="#666666" ></path></symbol></svg>',l=(l=document.getElementsByTagName("script"))[l.length-1].getAttribute("data-injectcss");if(l&&!e.__iconfont__svg__cssinject__){e.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(e){console}}function c(){r||(r=!0,i())}t=function(){var e,t,n,i;(i=document.createElement("div")).innerHTML=a,a=null,(n=i.getElementsByTagName("svg")[0])&&(n.setAttribute("aria-hidden","true"),n.style.position="absolute",n.style.width=0,n.style.height=0,n.style.overflow="hidden",e=n,(t=document.body).firstChild?(i=e,(n=t.firstChild).parentNode.insertBefore(i,n)):t.appendChild(e))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(t,0):(n=function(){document.removeEventListener("DOMContentLoaded",n,!1),t()},document.addEventListener("DOMContentLoaded",n,!1)):document.attachEvent&&(i=t,o=e.document,r=!1,(s=function(){try{o.documentElement.doScroll("left")}catch(e){return void setTimeout(s,50)}c()})(),o.onreadystatechange=function(){"complete"==o.readyState&&(o.onreadystatechange=null,c())})}(window)},848:e=>{"use strict";e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgdD0iMTY1NjY1NDcxNzI0MiIgY2xhc3M9Imljb24iIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHZlcnNpb249IjEuMSIKICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+CiAgICA8cGF0aCBkPSJNNTEyIDc0LjY2NjY2N0MyNzAuOTMzMzMzIDc0LjY2NjY2NyA3NC42NjY2NjcgMjcwLjkzMzMzMyA3NC42NjY2NjcgNTEyUzI3MC45MzMzMzMgOTQ5LjMzMzMzMyA1MTIgOTQ5LjMzMzMzMyA5NDkuMzMzMzMzIDc1My4wNjY2NjcgOTQ5LjMzMzMzMyA1MTIgNzUzLjA2NjY2NyA3NC42NjY2NjcgNTEyIDc0LjY2NjY2N3oiIHN0cm9rZS13aWR0aD0iNTQiIHN0cm9rZT0nYmxhY2snIGZpbGw9J3doaXRlJyA+PC9wYXRoPgogICAgPHBhdGggZD0iTTY4Mi42NjY2NjcgNDgwaC0xMzguNjY2NjY3VjM0MS4zMzMzMzNjMC0xNy4wNjY2NjctMTQuOTMzMzMzLTMyLTMyLTMycy0zMiAxNC45MzMzMzMtMzIgMzJ2MTM4LjY2NjY2N0gzNDEuMzMzMzMzYy0xNy4wNjY2NjcgMC0zMiAxNC45MzMzMzMtMzIgMzJzMTQuOTMzMzMzIDMyIDMyIDMyaDEzOC42NjY2NjdWNjgyLjY2NjY2N2MwIDE3LjA2NjY2NyAxNC45MzMzMzMgMzIgMzIgMzJzMzItMTQuOTMzMzMzIDMyLTMydi0xMzguNjY2NjY3SDY4Mi42NjY2NjdjMTcuMDY2NjY3IDAgMzItMTQuOTMzMzMzIDMyLTMycy0xNC45MzMzMzMtMzItMzItMzJ6Ij48L3BhdGg+Cjwvc3ZnPg=="},295:e=>{"use strict";e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgdD0iMTY1NjY1NTU2NDk4NSIgY2xhc3M9Imljb24iIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHZlcnNpb249IjEuMSIKICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+CiAgICA8cGF0aCBkPSJNNTEyIDc0LjY2NjY2N0MyNzAuOTMzMzMzIDc0LjY2NjY2NyA3NC42NjY2NjcgMjcwLjkzMzMzMyA3NC42NjY2NjcgNTEyUzI3MC45MzMzMzMgOTQ5LjMzMzMzMyA1MTIgOTQ5LjMzMzMzMyA5NDkuMzMzMzMzIDc1My4wNjY2NjcgOTQ5LjMzMzMzMyA1MTIgNzUzLjA2NjY2NyA3NC42NjY2NjcgNTEyIDc0LjY2NjY2N3oiIHN0cm9rZS13aWR0aD0iNTQiIHN0cm9rZT0nYmxhY2snIGZpbGw9J3doaXRlJyA+PC9wYXRoPgogICAgPHBhdGggZD0iTTY4Mi42NjY2NjcgNTQ0SDM0MS4zMzMzMzNjLTE3LjA2NjY2NyAwLTMyLTE0LjkzMzMzMy0zMi0zMnMxNC45MzMzMzMtMzIgMzItMzJoMzQxLjMzMzMzNGMxNy4wNjY2NjcgMCAzMiAxNC45MzMzMzMgMzIgMzJzLTE0LjkzMzMzMyAzMi0zMiAzMnoiPjwvcGF0aD4KPC9zdmc+"}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var r=t[i]={id:i,exports:{}};return e[i](r,r.exports,n),r.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.b=document.baseURI||self.location.href;var i={};return(()=>{"use strict";n.d(i,{default:()=>be});function e(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;")}const t=e=>e.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,(function(e,t,n,i){return"#"+("0"+Number(t).toString(16)).substr(-2)+("0"+Number(n).toString(16)).substr(-2)+("0"+Number(i).toString(16)).substr(-2)})),o=function(e,t){if((t=t||this.nodeData).id===e)return t;if(!t.children||!t.children.length)return null;for(let n=0;n<t.children.length;n++){const i=o(e,t.children[n]);if(i)return i}},r=(e,t)=>{if(e.parent=t,e.children)for(let t=0;t<e.children.length;t++)r(e.children[t],e)};function s(e){if(e.id=h(),e.children)for(let t=0;t<e.children.length;t++)s(e.children[t])}const a=(e,t)=>{let n=Date.now();return function(...i){Date.now()-n>=t&&(e.apply(this,i),n=Date.now())}};function l(e,t,n,i){const o=i-t,r=e-n;let s=Math.atan(Math.abs(o)/Math.abs(r))/3.14*180;r<0&&o>0&&(s=180-s),r<0&&o<0&&(s=180+s),r>0&&o<0&&(s=360-s);const a=s+30,l=s-30;return{x1:n+20*Math.cos(Math.PI*a/180),y1:i-20*Math.sin(Math.PI*a/180),x2:n+20*Math.cos(Math.PI*l/180),y2:i-20*Math.sin(Math.PI*l/180)}}function c(e,t,n){let i,o;const r=(e.cy-n)/(t-e.cx);return r>e.h/e.w||r<-e.h/e.w?e.cy-n<0?(i=e.cx-e.h/2/r,o=e.cy+e.h/2):(i=e.cx+e.h/2/r,o=e.cy-e.h/2):e.cx-t<0?(i=e.cx+e.w/2,o=e.cy-e.w*r/2):(i=e.cx-e.w/2,o=e.cy+e.w*r/2),{x:i,y:o}}function d(e,t,n){let i,o;const r=(e.cy-n)/(t-e.cx);return r>e.h/e.w||r<-e.h/e.w?e.cy-n<0?(i=e.cx-e.h/2/r,o=e.cy+e.h/2):(i=e.cx+e.h/2/r,o=e.cy-e.h/2):e.cx-t<0?(i=e.cx+e.w/2,o=e.cy-e.w*r/2):(i=e.cx-e.w/2,o=e.cy+e.w*r/2),{x:i,y:o}}function h(){return((new Date).getTime().toString(16)+Math.random().toString(16).substr(2)).substr(2,16)}function p(e){const t=e.parent.children,n=t.indexOf(e);return t.splice(n,1),t.length}const u={afterMoving:!1,mousedown:!1,lastX:null,lastY:null,onMove(e,t){if(this.mousedown){if(this.afterMoving=!0,!this.lastX)return this.lastX=e.pageX,void(this.lastY=e.pageY);const n=this.lastX-e.pageX,i=this.lastY-e.pageY;t.scrollTo(t.scrollLeft+n,t.scrollTop+i),this.lastX=e.pageX,this.lastY=e.pageY}},clear(){this.afterMoving=!1,this.mousedown=!1,this.lastX=null,this.lastY=null}};function m(e){this.dom=e,this.mousedown=!1,this.lastX=null,this.lastY=null}m.prototype.init=function(e,t){this.handleMouseMove=e=>{if(e.stopPropagation(),this.mousedown){if(!this.lastX)return this.lastX=e.pageX,void(this.lastY=e.pageY);const n=this.lastX-e.pageX,i=this.lastY-e.pageY;t(n,i),this.lastX=e.pageX,this.lastY=e.pageY}},this.handleMouseDown=e=>{e.stopPropagation(),this.mousedown=!0},this.handleClear=e=>{e.stopPropagation(),this.clear()},e.addEventListener("mousemove",this.handleMouseMove),e.addEventListener("mouseleave",this.handleClear),e.addEventListener("mouseup",this.handleClear),this.dom.addEventListener("mousedown",this.handleMouseDown)},m.prototype.destory=function(e){e.removeEventListener("mousemove",this.handleMouseMove),e.removeEventListener("mouseleave",this.handleClear),e.removeEventListener("mouseup",this.handleClear),this.dom.removeEventListener("mousedown",this.handleMouseDown)},m.prototype.clear=function(){this.mousedown=!1,this.lastX=null,this.lastY=null};const f=document,g=(e,t)=>(t?t.mindElixirBox:f).querySelector(`[data-nodeid=me${e}]`),b=function(t,n){if(t.textContent=n.topic,n.style&&(t.style.color=n.style.color||"inherit",t.style.background=n.style.background||"inherit",t.style.fontSize=n.style.fontSize+"px",t.style.fontWeight=n.style.fontWeight||"normal"),n.image){const e=n.image;if(e.url&&e.width&&e.height){const n=f.createElement("img");n.src=e.url,n.style.width=e.width+"px",n.style.height=e.height+"px",t.appendChild(n)}}if(n.hyperLink){const e=f.createElement("a");e.className="hyper-link",e.target="_blank",e.innerText="🔗",e.href=n.hyperLink,t.appendChild(e),t.linkContainer=e}else t.linkContainer&&(t.linkContainer.remove(),t.linkContainer=null);if(n.icons&&n.icons.length){const i=f.createElement("span");i.className="icons",i.innerHTML=n.icons.map((t=>`<span>${e(t)}</span>`)).join(""),t.appendChild(i)}if(n.tags&&n.tags.length){const i=f.createElement("div");i.className="tags",i.innerHTML=n.tags.map((t=>`<span>${e(t)}</span>`)).join(""),t.appendChild(i)}};const x=function(e){const t=f.createElement("epd");return t.expanded=!1!==e,t.className=!1!==e?"minus":"",t};const y=document,N="http://www.w3.org/2000/svg",v=function(e){const t=y.createElementNS(N,"svg");return t.setAttribute("class",e),t},M=function(e,t,n,i){const o=y.createElementNS(N,"line");return o.setAttribute("x1",e),o.setAttribute("y1",t),o.setAttribute("x2",n),o.setAttribute("y2",i),o.setAttribute("stroke","#bbb"),o.setAttribute("fill","none"),o.setAttribute("stroke-width","2"),o},k=function(e){const t=y.createElementNS(N,"path");return t.setAttribute("d",e),t.setAttribute("stroke","#555"),t.setAttribute("fill","none"),t.setAttribute("stroke-linecap","square"),t.setAttribute("stroke-width","1"),t};function C(e){return e.isFocusMode?e.nodeDataBackup:e.nodeData}const w=document,z=function(e,t){if(!e)return;const n=e.nodeObj;!1===n.expanded&&(this.expandNode(e,!0),e=g(n.id));const i=t||this.generateNewObj();n.children?n.children.push(i):n.children=[i],r(this.nodeData);const o=e.parentElement,{grp:s,top:a}=this.createGroup(i);if("T"===o.tagName){if(o.children[1])o.nextSibling.appendChild(s);else{const e=w.createElement("children");e.appendChild(s),o.appendChild(x(!0)),o.insertAdjacentElement("afterend",e)}this.linkDiv(s.offsetParent)}else"ROOT"===o.tagName&&(this.judgeDirection(s,i),o.nextSibling.appendChild(s),this.linkDiv());return{newTop:a,newNodeObj:i}};function j(e,t,n){let i="";const o=t.offsetTop,r=t.offsetLeft,s=t.offsetWidth,a=t.offsetHeight;for(let t=0;t<e.length;t++){const l=e[t],c=l.children[0],d=c.offsetTop,h=c.offsetHeight;let p;p=n?o+a/2:o+a;const u=d+h;let m,f,g;const b=l.offsetParent.className;"lhs"===b?(m=r+15,g=r,f=r-c.offsetWidth+15):"rhs"===b&&(m=r+s-15,g=r+s,f=r+s+c.offsetWidth-15),i+=S({x1:m,y1:p,x2:f,y2:u,xMiddle:g});const x=c.children[1];if(!x)continue;if(x.style.top=(c.offsetHeight-x.offsetHeight)/2+"px","lhs"===b?x.style.left="-10px":"rhs"===b&&(x.style.left=c.offsetWidth-10+"px"),!x.expanded)continue;const y=l.children[1].children;y.length>0&&(i+=j(y,c))}return i}function L({x1:e,y1:t,x2:n,y2:i}){return`M ${e} 10000 V ${i>t?i-20:i+20} C ${e} ${i} ${e} ${i} ${n>e?e+20:e-20} ${i} H ${n}`}function E({x1:e,y1:t,x2:n,y2:i}){return`M ${e} ${t} Q ${e} ${i} ${n} ${i}`}function S({x1:e,y1:t,x2:n,y2:i,xMiddle:o}){return i<t+50&&i>t-50?`M ${e} ${t} H ${o} V ${i} H ${n}`:i>=t?`M ${e} ${t} H ${o} V ${i-8} A 8 8 0 0 ${e>n?1:0} ${e>n?o-8:o+8} ${i} H ${n}`:`M ${e} ${t} H ${o} V ${i+8} A 8 8 0 0 ${e>n?0:1} ${e>n?o-8:o+8} ${i} H ${n}`}const D={addChild:"插入子节点",addParent:"插入父节点",addSibling:"插入同级节点",removeNode:"删除节点",focus:"专注",cancelFocus:"取消专注",moveUp:"上移",moveDown:"下移",link:"连接",clickTips:"请点击目标节点",font:"文字",background:"背景",tag:"标签",icon:"图标",tagsSeparate:"多个标签半角逗号分隔",iconsSeparate:"多个图标半角逗号分隔",url:"URL"},T={cn:D,zh_CN:D,zh_TW:{addChild:"插入子節點",addParent:"插入父節點",addSibling:"插入同級節點",removeNode:"刪除節點",focus:"專注",cancelFocus:"取消專注",moveUp:"上移",moveDown:"下移",link:"連接",clickTips:"請點擊目標節點",font:"文字",background:"背景",tag:"標簽",icon:"圖標",tagsSeparate:"多個標簽半角逗號分隔",iconsSeparate:"多個圖標半角逗號分隔",url:"URL"},en:{addChild:"Add child",addParent:"Add parent",addSibling:"Add sibling",removeNode:"Remove node",focus:"Focus Mode",cancelFocus:"Cancel Focus Mode",moveUp:"Move up",moveDown:"Move down",link:"Link",clickTips:"Please click the target node",font:"Font",background:"Background",tag:"Tag",icon:"Icon",tagsSeparate:"Separate tags by comma",iconsSeparate:"Separate icons by comma",url:"URL"},ru:{addChild:"Добавить дочерний элемент",addParent:"Добавить родительский элемент",addSibling:"Добавить на этом уровне",removeNode:"Удалить узел",focus:"Режим фокусировки",cancelFocus:"Отменить режим фокусировки",moveUp:"Поднять выше",moveDown:"Опустить ниже",link:"Ссылка",clickTips:"Пожалуйста, нажмите на целевой узел",font:"Цвет шрифта",background:"Цвет фона",tag:"Тег",icon:"Иконка",tagsSeparate:"Разделяйте теги запятой",iconsSeparate:"Разделяйте иконки запятой"},ja:{addChild:"子ノードを追加する",addParent:"親ノードを追加します",addSibling:"兄弟ノードを追加する",removeNode:"ノードを削除",focus:"集中",cancelFocus:"集中解除",moveUp:"上へ移動",moveDown:"下へ移動",link:"コネクト",clickTips:"ターゲットノードをクリックしてください",font:"フォント",background:"バックグラウンド",tag:"タグ",icon:"アイコン",tagsSeparate:"複数タグはカンマ区切り",iconsSeparate:"複数アイコンはカンマ区切り",url:"URL"},pt:{addChild:"Adicionar item filho",addParent:"Adicionar item pai",addSibling:"Adicionar item irmao",removeNode:"Remover item",focus:"Modo Foco",cancelFocus:"Cancelar Modo Foco",moveUp:"Mover para cima",moveDown:"Mover para baixo",link:"Link",clickTips:"Favor clicar no item alvo",font:"Fonte",background:"Cor de fundo",tag:"Tag",icon:"Icone",tagsSeparate:"Separe tags por virgula",iconsSeparate:"Separe icones por virgula",url:"URL"}};var A=n(379),I=n.n(A),O=n(795),P=n.n(O),$=n(569),H=n.n($),Y=n(565),B=n.n(Y),R=n(216),Z=n.n(R),V=n(589),F=n.n(V),W=n(165),q={};q.styleTagTransform=F(),q.setAttributes=B(),q.insert=H().bind(null,"head"),q.domAPI=P(),q.insertStyleElement=Z();I()(W.Z,q);W.Z&&W.Z.locals&&W.Z.locals;function U(t,n){const i=(t,n,i)=>{const o=document.createElement("li");return o.id=t,o.innerHTML=`<span>${e(n)}</span><span>${e(i)}</span>`,o},o=T[t.locale]?t.locale:"en",r=i("cm-add_child",T[o].addChild,"tab"),s=i("cm-add_parent",T[o].addParent,""),a=i("cm-add_sibling",T[o].addSibling,"enter"),l=i("cm-remove_child",T[o].removeNode,"delete"),c=i("cm-fucus",T[o].focus,""),d=i("cm-unfucus",T[o].cancelFocus,""),h=i("cm-up",T[o].moveUp,"PgUp"),p=i("cm-down",T[o].moveDown,"Pgdn"),u=i("cm-down",T[o].link,""),m=document.createElement("ul");if(m.className="menu-list",m.appendChild(r),m.appendChild(s),m.appendChild(a),m.appendChild(l),n&&!n.focus||(m.appendChild(c),m.appendChild(d)),m.appendChild(h),m.appendChild(p),n&&!n.link||m.appendChild(u),n&&n.extend)for(let e=0;e<n.extend.length;e++){const t=n.extend[e],o=i(t.name,t.name,t.key||"");m.appendChild(o),o.onclick=e=>{t.onclick(e)}}const f=document.createElement("div");f.className="context-menu",f.appendChild(m),f.hidden=!0,t.container.append(f);let g=!0;t.container.oncontextmenu=function(e){if(e.preventDefault(),!t.editable)return;const n=e.target;if("TPC"===n.tagName){g="ROOT"===n.parentElement.tagName,g?(c.className="disabled",h.className="disabled",p.className="disabled",a.className="disabled",l.className="disabled"):(c.className="",h.className="",p.className="",a.className="",l.className=""),t.selectNode(n),f.hidden=!1;const i=m.offsetHeight,o=m.offsetWidth;i+e.clientY>window.innerHeight?(m.style.top="",m.style.bottom="0px"):(m.style.bottom="",m.style.top=e.clientY+15+"px"),o+e.clientX>window.innerWidth?(m.style.left="",m.style.right="0px"):(m.style.right="",m.style.left=e.clientX+10+"px")}},f.onclick=e=>{e.target===f&&(f.hidden=!0)},r.onclick=()=>{t.addChild(),f.hidden=!0},s.onclick=()=>{t.insertParent(),f.hidden=!0},a.onclick=()=>{g||(t.insertSibling(),f.hidden=!0)},l.onclick=()=>{g||(t.removeNode(),f.hidden=!0)},c.onclick=()=>{g||(t.focusNode(t.currentNode),f.hidden=!0)},d.onclick=()=>{t.cancelFocus(),f.hidden=!0},h.onclick=()=>{g||(t.moveUpNode(),f.hidden=!0)},p.onclick=()=>{g||(t.moveDownNode(),f.hidden=!0)},u.onclick=()=>{f.hidden=!0;const e=t.currentNode,n=(e=>{const t=document.createElement("div");return t.innerText=e,t.style.cssText="position:absolute;bottom:20px;left:50%;transform:translateX(-50%);",t})(T[o].clickTips);t.container.appendChild(n),t.map.addEventListener("click",(i=>{i.preventDefault(),n.remove(),"T"!==i.target.parentElement.nodeName&&"ROOT"!==i.target.parentElement.nodeName||t.createLink(e,t.currentNode)}),{once:!0})}}var G=n(301),X={};X.styleTagTransform=F(),X.setAttributes=B(),X.insert=H().bind(null,"head"),X.domAPI=P(),X.insertStyleElement=Z();I()(G.Z,X);G.Z&&G.Z.locals&&G.Z.locals;const _=(e,t)=>{const n=document.createElement("span");return n.id=e,n.innerHTML=`<svg class="icon" aria-hidden="true">\n <use xlink:href="#icon-${t}"></use>\n </svg>`,n};function J(e){e.container.append(function(e){const t=document.createElement("div"),n=_("fullscreen","full"),i=_("toCenter","living"),o=_("zoomout","move"),r=_("zoomin","add");return document.createElement("span").innerText="100%",t.appendChild(n),t.appendChild(i),t.appendChild(o),t.appendChild(r),t.className="mind-elixir-toolbar rb",n.onclick=()=>{e.container.requestFullscreen()},i.onclick=()=>{e.toCenter()},o.onclick=()=>{e.scaleVal<.6||e.scale(e.scaleVal-=.2)},r.onclick=()=>{e.scaleVal>1.6||e.scale(e.scaleVal+=.2)},t}(e)),e.container.append(function(e){const t=document.createElement("div"),n=_("tbltl","left"),i=_("tbltr","right"),o=_("tblts","side");return t.appendChild(n),t.appendChild(i),t.appendChild(o),t.className="mind-elixir-toolbar lt",n.onclick=()=>{e.initLeft()},i.onclick=()=>{e.initRight()},o.onclick=()=>{e.initSide()},t}(e))}var Q=n(519),K={};K.styleTagTransform=F(),K.setAttributes=B(),K.insert=H().bind(null,"head"),K.domAPI=P(),K.insertStyleElement=Z();I()(Q.Z,K);Q.Z&&Q.Z.locals&&Q.Z.locals;const ee=(e,t)=>{const n=document.createElement("div");return n.id=e,n.innerHTML=t,n},te=["#2c3e50","#34495e","#7f8c8d","#94a5a6","#bdc3c7","#ecf0f1","#8e44ad","#9b59b6","#2980b9","#3298db","#c0392c","#e74c3c","#d35400","#f39c11","#f1c40e","#17a085","#27ae61","#2ecc71"];var ne=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const ie=document,oe=function(e){if(!e)return;const t=e.getElementsByClassName("insert-preview");for(const e of t||[])e.remove()},re=function(e,t){const n=t.parentNode.parentNode.contains(e);return e&&"TPC"===e.tagName&&e!==t&&!n&&!0!==e.nodeObj.root};function se(e){let t,n,i;e.map.addEventListener("dragstart",(function(e){t=e.target,t.parentNode.parentNode.style.opacity="0.5",u.clear()})),e.map.addEventListener("dragend",(function(o){return ne(this,void 0,void 0,(function*(){o.target.style.opacity="",oe(i);const r=t.nodeObj;switch(n){case"before":e.moveNodeBefore(t,i),e.selectNode(g(r.id));break;case"after":e.moveNodeAfter(t,i),e.selectNode(g(r.id));break;case"in":e.moveNode(t,i)}t.parentNode.parentNode.style.opacity="1",t=null}))})),e.map.addEventListener("dragover",a((function(e){oe(i);const o=ie.elementFromPoint(e.clientX,e.clientY-12);if(re(o,t)){i=o;const t=o.getBoundingClientRect().y;e.clientY>t+o.clientHeight?n="after":e.clientY>t+o.clientHeight/2&&(n="in")}else{const o=ie.elementFromPoint(e.clientX,e.clientY+12);if(re(o,t)){i=o;const t=o.getBoundingClientRect().y;e.clientY<t?n="before":e.clientY<t+o.clientHeight/2&&(n="in")}else n=i=null}i&&function(e,t){if(!t)return oe(e),e;const n=e.getElementsByClassName("insert-preview"),i=`insert-preview ${t} show`;if(n.length>0)n[0].className=i;else{const t=ie.createElement("div");t.className=i,e.appendChild(t)}}(i,n)}),200))}var ae=n(787),le={};le.styleTagTransform=F(),le.setAttributes=B(),le.insert=H().bind(null,"head"),le.domAPI=P(),le.insertStyleElement=Z();I()(ae.Z,le);ae.Z&&ae.Z.locals&&ae.Z.locals;function ce(){this.handlers={}}ce.prototype={showHandler:function(){},addListener:function(e,t){void 0===this.handlers[e]&&(this.handlers[e]=[]),this.handlers[e].push(t)},fire:function(e,...t){if(this.handlers[e]instanceof Array){const n=this.handlers[e];for(let e=0;e<n.length;e++)n[e](...t)}},removeListener:function(e,t){if(!this.handlers[e])return;const n=this.handlers[e];if(t){if(n.length)for(let i=0;i<n.length;i++)n[i]===t&&this.handlers[e].splice(i,1)}else n.length=0}};var de=n(74),he={};he.styleTagTransform=F(),he.setAttributes=B(),he.insert=H().bind(null,"head"),he.domAPI=P(),he.insertStyleElement=Z();I()(de.Z,he);de.Z&&de.Z.locals&&de.Z.locals;n(857);var pe=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const ue=g,me=document;function fe({el:e,direction:t,locale:n,draggable:i,editable:o,contextMenu:r,contextMenuOption:s,toolBar:a,nodeMenu:l,keypress:c,before:d,newTopicName:h,allowUndo:p,primaryLinkStyle:m,overflowHidden:f,primaryNodeHorizontalGap:g,primaryNodeVerticalGap:b,mobileMenu:x}){let y;const N=Object.prototype.toString.call(e);if("[object HTMLDivElement]"===N?y=e:"[object String]"===N&&(y=document.querySelector(e)),!y)return new Error("MindElixir: el is not a valid element");var k;this.mindElixirBox=y,this.before=d||{},this.locale=n,this.contextMenuOption=s,this.contextMenu=void 0===r||r,this.toolBar=void 0===a||a,this.nodeMenu=void 0===l||l,this.keypress=void 0===c||c,this.mobileMenu=x,this.direction="number"==typeof t?t:1,this.draggable=void 0===i||i,this.newTopicName=h,this.editable=void 0===o||o,this.allowUndo=void 0===p||p,this.currentNode=null,this.currentLink=null,this.inputDiv=null,this.scaleVal=1,this.tempDirection=null,this.primaryLinkStyle=m||0,this.overflowHidden=f,this.primaryNodeHorizontalGap=g,this.primaryNodeVerticalGap=b,this.bus=new ce,this.bus.addListener("operation",(e=>{this.isUndo?this.isUndo=!1:["moveNode","removeNode","addChild","finishEdit","editStyle","editTags","editIcons"].includes(e.name)&&this.history.push(e)})),this.history=[],this.isUndo=!1,this.undo=function(){const e=this.history.pop();e&&(this.isUndo=!0,"moveNode"===e.name?this.moveNode(ue(e.obj.fromObj.id),ue(e.obj.originParentId)):"removeNode"===e.name?e.originSiblingId?this.insertBefore(ue(e.originSiblingId),e.obj):this.addChild(ue(e.originParentId),e.obj):"addChild"===e.name||"copyNode"===e.name?this.removeNode(ue(e.obj.id)):"finishEdit"===e.name?this.setNodeTopic(ue(e.obj.id),e.origin):this.isUndo=!1)},this.mindElixirBox.className+=" mind-elixir",this.mindElixirBox.innerHTML="",this.container=me.createElement("div"),this.container.className="map-container",this.map=me.createElement("div"),this.map.className="map-canvas",this.map.setAttribute("tabindex","0"),this.container.appendChild(this.map),this.mindElixirBox.appendChild(this.container),this.root=me.createElement("root"),this.box=me.createElement("children"),this.box.className="box",this.lines=v("lines"),this.linkController=v("linkcontroller"),this.P2=me.createElement("div"),this.P3=me.createElement("div"),this.P2.className=this.P3.className="circle",this.line1=M(0,0,0,0),this.line2=M(0,0,0,0),this.linkController.appendChild(this.line1),this.linkController.appendChild(this.line2),this.linkSvgGroup=v("topiclinks"),this.map.appendChild(this.root),this.map.appendChild(this.box),this.map.appendChild(this.lines),this.map.appendChild(this.linkController),this.map.appendChild(this.linkSvgGroup),this.map.appendChild(this.P2),this.map.appendChild(this.P3),this.overflowHidden?this.container.style.overflow="hidden":((k=this).map.addEventListener("click",(e=>{if("EPD"===e.target.nodeName)k.expandNode(e.target.previousSibling);else{if(!k.editable)return;"T"===e.target.parentElement.nodeName||"ROOT"===e.target.parentElement.nodeName?k.selectNode(e.target,!1,e):"path"===e.target.nodeName?"g"===e.target.parentElement.nodeName&&k.selectLink(e.target.parentElement):"circle"===e.target.className||(k.unselectNode(),k.hideLinkController&&k.hideLinkController())}})),k.map.addEventListener("dblclick",(e=>{e.preventDefault(),k.editable&&("T"!==e.target.parentElement.nodeName&&"ROOT"!==e.target.parentElement.nodeName||k.beginEdit(e.target))})),k.map.addEventListener("mousemove",(e=>{"true"!==e.target.contentEditable&&u.onMove(e,k.container)})),k.map.addEventListener("mousedown",(e=>{"true"!==e.target.contentEditable&&(u.afterMoving=!1,u.mousedown=!0)})),k.map.addEventListener("mouseleave",(e=>{u.clear()})),k.map.addEventListener("mouseup",(e=>{u.clear()})))}function ge(e,t){return function(...n){return pe(this,void 0,void 0,(function*(){this.before[t]&&!(yield this.before[t].apply(this,n))||e.apply(this,n)}))}}fe.prototype={addParentLink:r,getObjById:o,generateNewObj:function(){const e=h();return{topic:this.newTopicName||"new node",id:e}},insertSibling:ge((function(e,t){const n=e||this.currentNode;if(!n)return;const i=n.nodeObj;if(!0===i.root)return void this.addChild();const o=t||this.generateNewObj();!function(e,t){const n=e.parent.children,i=n.indexOf(e);n.splice(i+1,0,t)}(i,o),r(this.nodeData);const s=n.parentElement,{grp:a,top:l}=this.createGroup(o),c=s.parentNode.parentNode;c.insertBefore(a,s.parentNode.nextSibling),"box"===c.className?(this.judgeDirection(a,o),this.linkDiv()):this.linkDiv(a.offsetParent),t||this.createInputDiv(l.children[0]),this.selectNode(l.children[0],!0),this.bus.fire("operation",{name:"insertSibling",obj:o})}),"insertSibling"),insertBefore:ge((function(e,t){const n=e||this.currentNode;if(!n)return;const i=n.nodeObj;if(!0===i.root)return void this.addChild();const o=t||this.generateNewObj();!function(e,t){const n=e.parent.children,i=n.indexOf(e);n.splice(i,0,t)}(i,o),r(this.nodeData);const s=n.parentElement,{grp:a,top:l}=this.createGroup(o),c=s.parentNode.parentNode;c.insertBefore(a,s.parentNode),"box"===c.className?(this.judgeDirection(a,o),this.linkDiv()):this.linkDiv(a.offsetParent),t||this.createInputDiv(l.children[0]),this.selectNode(l.children[0],!0),this.bus.fire("operation",{name:"insertSibling",obj:o})}),"insertBefore"),insertParent:ge((function(e,t){const n=e||this.currentNode;if(!n)return;const i=n.nodeObj;if(!0===i.root)return;const o=t||this.generateNewObj();!function(e,t){const n=e.parent.children,i=n.indexOf(e);n[i]=t,t.children=[e]}(i,o),r(this.nodeData);const s=n.parentElement.parentElement,{grp:a,top:l}=this.createGroup(o,!0);l.appendChild(x(!0));const c=s.parentNode;s.insertAdjacentElement("afterend",a);const d=w.createElement("children");d.appendChild(s),l.insertAdjacentElement("afterend",d),"box"===c.className?(a.className=s.className,s.className="",s.querySelector(".subLines").remove(),this.linkDiv()):this.linkDiv(a.offsetParent),t||this.createInputDiv(l.children[0]),this.selectNode(l.children[0],!0),this.bus.fire("operation",{name:"insertParent",obj:o})}),"insertParent"),addChild:ge((function(e,t){const n=e||this.currentNode;if(!n)return;const{newTop:i,newNodeObj:o}=z.call(this,n,t);this.bus.fire("operation",{name:"addChild",obj:o}),t||this.createInputDiv(i.children[0]),this.selectNode(i.children[0],!0)}),"addChild"),copyNode:ge((function(e,t){const n=JSON.parse(JSON.stringify(e.nodeObj,((e,t)=>{if("parent"!==e)return t})));s(n);const{newNodeObj:i}=z.call(this,t,n);this.bus.fire("operation",{name:"copyNode",obj:i})}),"copyNode"),moveNode:ge((function(e,t){const n=e.nodeObj,i=t.nodeObj,o=n.parent.id;if(!1===i.expanded&&(this.expandNode(t,!0),e=g(n.id),t=g(i.id)),!function(e,t){let n=!0;for(;t.parent;){if(t.parent===e){n=!1;break}t=t.parent}return n}(n,i))return;!function(e,t){p(e),t.children?t.children.push(e):t.children=[e]}(n,i),r(this.nodeData);const s=e.parentElement,a=s.parentNode.parentNode,l=t.parentElement;if("box"===a.className?s.parentNode.lastChild.remove():"box"===s.parentNode.className&&(s.style.cssText=""),"T"===l.tagName)if("box"===a.className&&(s.parentNode.className=""),l.children[1])l.nextSibling.appendChild(s.parentNode);else{const e=w.createElement("children");e.appendChild(s.parentNode),l.appendChild(x(!0)),l.parentElement.insertBefore(e,l.nextSibling)}else"ROOT"===l.tagName&&(this.judgeDirection(s.parentNode,n),l.nextSibling.appendChild(s.parentNode));this.linkDiv(),this.bus.fire("operation",{name:"moveNode",obj:{fromObj:n,toObj:i,originParentId:o}})}),"moveNode"),removeNode:ge((function(e){const t=e||this.currentNode;if(!t)return;const n=t.nodeObj;if(!0===n.root)throw new Error("Can not remove root node");const i=n.parent.children.findIndex((e=>e===n)),o=n.parent.children[i+1],r=o&&o.id,s=p(n),a=t.parentNode;if("ROOT"!==a.tagName){if(0===s){const e=a.parentNode.parentNode.previousSibling;"ROOT"!==e.tagName&&e.children[1].remove(),this.selectParent()}else{this.selectPrevSibling()||this.selectNextSibling()}for(const e in this.linkData){const t=this.linkData[e];t.from!==a.firstChild&&t.to!==a.firstChild||this.removeLink(this.mindElixirBox.querySelector(`[data-linkid=${this.linkData[e].id}]`))}a.parentNode.remove(),this.linkDiv(),this.bus.fire("operation",{name:"removeNode",obj:n,originSiblingId:r,originParentId:n.parent.id})}}),"removeNode"),moveUpNode:ge((function(e){const t=e||this.currentNode;if(!t)return;const n=t.parentNode.parentNode,i=t.nodeObj;!function(e){const t=e.parent.children,n=t.indexOf(e),i=t[n];0===n?(t[n]=t[t.length-1],t[t.length-1]=i):(t[n]=t[n-1],t[n-1]=i)}(i),n.parentNode.insertBefore(n,n.previousSibling),this.linkDiv(),this.bus.fire("operation",{name:"moveUpNode",obj:i})}),"moveUpNode"),moveDownNode:ge((function(e){const t=e||this.currentNode;if(!t)return;const n=t.parentNode.parentNode,i=t.nodeObj;!function(e){const t=e.parent.children,n=t.indexOf(e),i=t[n];n===t.length-1?(t[n]=t[0],t[0]=i):(t[n]=t[n+1],t[n+1]=i)}(i),n.nextSibling?n.insertAdjacentElement("afterend",n.nextSibling):n.parentNode.prepend(n),this.linkDiv(),this.bus.fire("operation",{name:"moveDownNode",obj:i})}),"moveDownNode"),beginEdit:ge((function(e){const t=e||this.currentNode;t&&this.createInputDiv(t)}),"beginEdit"),moveNodeBefore:ge((function(e,t){const n=e.nodeObj,i=t.nodeObj,o=n.parent.id;!function(e,t){p(e);const n=t.parent.children;let i=0;for(let e=0;e<n.length;e++)if(n[e]===t){i=e;break}n.splice(i,0,e)}(n,i),r(this.nodeData);const s=e.parentElement.parentNode,a=t.parentElement,l=a.parentNode;a.parentNode.parentNode.insertBefore(s,l),l.className&&(s.className=l.className),this.linkDiv(),this.bus.fire("operation",{name:"moveNodeBefore",obj:{fromObj:n,toObj:i,originParentId:o}})}),"moveNodeBefore"),moveNodeAfter:ge((function(e,t){const n=e.nodeObj,i=t.nodeObj,o=n.parent.id;!function(e,t){p(e);const n=t.parent.children;let i=0;for(let e=0;e<n.length;e++)if(n[e]===t){i=e;break}n.splice(i+1,0,e)}(n,i),r(this.nodeData);const s=e.parentElement.parentNode,a=t.parentElement,l=a.parentNode;a.parentNode.parentNode.insertBefore(s,l.nextSibling),l.className&&(s.className=l.className),this.linkDiv(),this.bus.fire("operation",{name:"moveNodeAfter",obj:{fromObj:n,toObj:i,originParentId:o}})}),"moveNodeAfter"),updateNodeStyle:function(e){if(!e.style)return;const n=g(e.id,this),i={color:n.style.color&&t(n.style.color),background:n.style.background&&t(n.style.background),fontSize:n.style.fontSize&&n.style.fontSize+"px",fontWeight:n.style.fontWeight};n.style.color=e.style.color,n.style.background=e.style.background,n.style.fontSize=e.style.fontSize+"px",n.style.fontWeight=e.style.fontWeight||"normal",this.linkDiv(),this.bus.fire("operation",{name:"editStyle",obj:e,origin:i})},updateNodeTags:function(e,t){const n=e.tags;e.tags=t;const i=g(e.id);b(i,e),this.linkDiv(),this.bus.fire("operation",{name:"editTags",obj:e,origin:n})},updateNodeIcons:function(e,t){const n=e.icons;e.icons=t;const i=g(e.id);b(i,e),this.linkDiv(),this.bus.fire("operation",{name:"editIcons",obj:e,origin:n})},updateNodeHyperLink:function(e,t){const n=e.hyperLink;e.hyperLink=t;const i=g(e.id);b(i,e),this.linkDiv(),this.bus.fire("operation",{name:"editHyperLink",obj:e,origin:n})},judgeDirection:function(e,t){if(0===this.direction)e.className="lhs";else if(1===this.direction)e.className="rhs";else if(2===this.direction){w.querySelectorAll(".lhs").length<=w.querySelectorAll(".rhs").length?(e.className="lhs",t.direction=0):(e.className="rhs",t.direction=1)}},setNodeTopic:function(e,t){e.childNodes[0].textContent=t,e.nodeObj.topic=t,this.linkDiv()},createLink:function(e,t,n,i){const o=this.map.getBoundingClientRect();if(!e||!t)return;const r=e.getBoundingClientRect(),s=t.getBoundingClientRect(),a=(r.x+r.width/2-o.x)/this.scaleVal,p=(r.y+r.height/2-o.y)/this.scaleVal,u=(s.x+s.width/2-o.x)/this.scaleVal,m=(s.y+s.height/2-o.y)/this.scaleVal;let f,g,b,x;n?(f=a+i.delta1.x,g=p+i.delta1.y,b=u+i.delta2.x,x=m+i.delta2.y):(p+m)/2-p<=r.height/2?(f=(r.x+r.width-o.x)/this.scaleVal+100,g=p,b=(s.x+s.width-o.x)/this.scaleVal+100,x=m):(f=(a+u)/2,g=(p+m)/2,b=(a+u)/2,x=(p+m)/2);const v={cx:a,cy:p,w:r.width,h:r.height},M={cx:u,cy:m,w:s.width,h:s.height},k=c(v,f,g),C=k.x,w=k.y,z=d(M,b,x),j=z.x,L=z.y,E=l(b,x,j,L),S=function(e,t){const n=y.createElementNS(N,"g"),i=y.createElementNS(N,"path"),o=y.createElementNS(N,"path");return o.setAttribute("d",t),o.setAttribute("stroke","rgb(235, 95, 82)"),o.setAttribute("fill","none"),o.setAttribute("stroke-linecap","cap"),o.setAttribute("stroke-width","2"),i.setAttribute("d",e),i.setAttribute("stroke","rgb(235, 95, 82)"),i.setAttribute("fill","none"),i.setAttribute("stroke-linecap","cap"),i.setAttribute("stroke-width","2"),n.appendChild(i),n.appendChild(o),n}(`M ${C} ${w} C ${f} ${g} ${b} ${x} ${j} ${L}`,`M ${E.x1} ${E.y1} L ${j} ${L} L ${E.x2} ${E.y2}`);let D;n?(D={id:i.id,label:"",from:e,to:t,delta1:{x:f-a,y:g-p},delta2:{x:b-u,y:x-m}},this.linkData[i.id]=D,S.linkObj=D,S.dataset.linkid=i.id):(D={id:h(),label:"",from:e,to:t,delta1:{x:f-a,y:g-p},delta2:{x:b-u,y:x-m}},this.linkData[D.id]=D,S.linkObj=D,S.dataset.linkid=D.id,this.currentLink=S),this.linkSvgGroup.appendChild(S),n||this.showLinkController(f,g,b,x,D,v,M)},removeLink:function(e){let t;if(t=e||this.currentLink,!t)return;this.hideLinkController();const n=t.linkObj.id;delete this.linkData[n],t.remove(),t=null},selectLink:function(e){this.currentLink=e;const t=e.linkObj,n=t.from,i=t.to,o=this.map.getBoundingClientRect(),r=n.getBoundingClientRect(),s=i.getBoundingClientRect(),a=(r.x+r.width/2-o.x)/this.scaleVal,l=(r.y+r.height/2-o.y)/this.scaleVal,c=(s.x+s.width/2-o.x)/this.scaleVal,d=(s.y+s.height/2-o.y)/this.scaleVal,h={cx:a,cy:l,w:r.width,h:r.height},p={cx:c,cy:d,w:s.width,h:s.height},u=a+t.delta1.x,m=l+t.delta1.y,f=c+t.delta2.x,g=d+t.delta2.y;this.showLinkController(u,m,f,g,t,h,p)},hideLinkController:function(){this.linkController.style.display="none",this.P2.style.display="none",this.P3.style.display="none"},showLinkController:function(e,t,n,i,o,r,s){this.linkController.style.display="initial",this.P2.style.display="initial",this.P3.style.display="initial";const a=c(r,e,t);let h=a.x,p=a.y;const u=d(s,n,i);let f=u.x,g=u.y;this.P2.style.cssText=`top:${t}px;left:${e}px;`,this.P3.style.cssText=`top:${i}px;left:${n}px;`,this.line1.setAttribute("x1",h),this.line1.setAttribute("y1",p),this.line1.setAttribute("x2",e),this.line1.setAttribute("y2",t),this.line2.setAttribute("x1",n),this.line2.setAttribute("y1",i),this.line2.setAttribute("x2",f),this.line2.setAttribute("y2",g),this.helper1&&(this.helper1.destory(this.map),this.helper2.destory(this.map)),this.helper1=new m(this.P2),this.helper2=new m(this.P3),this.helper1.init(this.map,((s,a)=>{e-=s/this.scaleVal,t-=a/this.scaleVal;const l=c(r,e,t);h=l.x,p=l.y,this.P2.style.top=t+"px",this.P2.style.left=e+"px",this.currentLink.children[0].setAttribute("d",`M ${h} ${p} C ${e} ${t} ${n} ${i} ${f} ${g}`),this.line1.setAttribute("x1",h),this.line1.setAttribute("y1",p),this.line1.setAttribute("x2",e),this.line1.setAttribute("y2",t),o.delta1.x=e-r.cx,o.delta1.y=t-r.cy})),this.helper2.init(this.map,((r,a)=>{n-=r/this.scaleVal,i-=a/this.scaleVal;const c=d(s,n,i);f=c.x,g=c.y;const u=l(n,i,f,g);this.P3.style.top=i+"px",this.P3.style.left=n+"px",this.currentLink.children[0].setAttribute("d",`M ${h} ${p} C ${e} ${t} ${n} ${i} ${f} ${g}`),this.currentLink.children[1].setAttribute("d",`M ${u.x1} ${u.y1} L ${f} ${g} L ${u.x2} ${u.y2}`),this.line2.setAttribute("x1",n),this.line2.setAttribute("y1",i),this.line2.setAttribute("x2",f),this.line2.setAttribute("y2",g),o.delta2.x=n-s.cx,o.delta2.y=i-s.cy}))},layout:function(){this.root.innerHTML="",this.box.innerHTML="";const e=this.createTopic(this.nodeData);b(e,this.nodeData),e.draggable=!1,this.root.appendChild(e);const t=this.nodeData.children;if(t&&0!==t.length){if(2===this.direction){let e=0,n=0;t.map((t=>{void 0===t.direction?e<=n?(t.direction=0,e+=1):(t.direction=1,n+=1):0===t.direction?e+=1:n+=1}))}this.createChildren(this.nodeData.children,this.box,this.direction)}},linkDiv:function(e){const t=this.primaryNodeHorizontalGap||65,n=this.primaryNodeVerticalGap||25,i=this.root;i.style.cssText=`top:${1e4-i.offsetHeight/2}px;left:${1e4-i.offsetWidth/2}px;`;const o=this.box.children;this.lines.innerHTML="";let r,s,a=0,l=0,c=0,d=0,h=0,p=0;if(2===this.direction){let e=0,t=0,i=0,a=0;for(let r=0;r<o.length;r++){const s=o[r];"lhs"===s.className?(h+=s.offsetHeight+n,i+=s.offsetHeight,e+=1):(p+=s.offsetHeight+n,a+=s.offsetHeight,t+=1)}h>p?(s=1e4-Math.max(h)/2,r="r",l=(h-a)/(t-1)):(s=1e4-Math.max(p)/2,r="l",l=(p-i)/(e-1))}else{for(let e=0;e<o.length;e++){a+=o[e].offsetHeight+n}s=1e4-a/2}let u="";const m=1e4-i.offsetWidth/2-t,f=1e4+i.offsetWidth/2+t;for(let e=0;e<o.length;e++){let t=1e4;const a=1e4;let h,p;const g=o[e],b=g.offsetHeight;"lhs"===g.className?(g.style.top=s+c+"px",g.style.left=m-g.offsetWidth+"px",h=m-15,p=s+c+b/2,c+="l"===r?b+l:b+n):(g.style.top=s+d+"px",g.style.left=f+"px",h=f+15,p=s+d+b/2,d+="r"===r?b+l:b+n),2===this.primaryLinkStyle?(2===this.direction&&(t="lhs"===g.className?1e4-i.offsetWidth/6:1e4+i.offsetWidth/6),u+=L({x1:t,y1:a,x2:h,y2:p})):u+=E({x1:t,y1:a,x2:h,y2:p});const x=g.children[0].children[1];x&&(x.style.top=(x.parentNode.offsetHeight-x.offsetHeight)/2+"px","lhs"===g.className?x.style.left="-10px":x.style.left=x.parentNode.offsetWidth-10+"px")}this.lines.appendChild(function(e){const t=y.createElementNS(N,"path");return t.setAttribute("d",e),t.setAttribute("stroke","#666"),t.setAttribute("fill","none"),t.setAttribute("stroke-width","2"),t}(u));for(let t=0;t<o.length;t++){const n=o[t];if((!e||e===o[t])&&n.childElementCount){const e=v("subLines");"svg"===n.lastChild.tagName&&n.lastChild.remove(),n.appendChild(e);const t=n.children[0],i=j(n.children[1].children,t,!0);e.appendChild(k(i))}}this.linkSvgGroup.innerHTML="";for(const e in this.linkData){const t=this.linkData[e];"string"==typeof t.from?this.createLink(g(t.from),g(t.to),!0,t):this.createLink(g(t.from.nodeObj.id),g(t.to.nodeObj.id),!0,t)}},createInputDiv:function(e){if(!e)return;let t=f.createElement("div");const n=e.childNodes[0].textContent;e.appendChild(t),t.id="input-box",t.textContent=n,t.contentEditable="true",t.spellcheck=!1,t.style.cssText=`min-width:${e.offsetWidth-8}px;`,0===this.direction&&(t.style.right="0"),t.focus(),function(e){const t=f.createRange();t.selectNodeContents(e);const n=window.getSelection();n&&(n.removeAllRanges(),n.addRange(t))}(t),this.inputDiv=t,this.bus.fire("operation",{name:"beginEdit",obj:e.nodeObj}),t.addEventListener("keydown",(e=>{e.stopPropagation();const t=e.key;if("Enter"===t||"Tab"===t){if(e.shiftKey)return;e.preventDefault(),this.inputDiv.blur(),this.map.focus()}})),t.addEventListener("blur",(()=>{if(!t)return;const i=e.nodeObj,o=t.textContent.trim();i.topic=""===o?n:o,t.remove(),this.inputDiv=t=null,o!==n&&(e.childNodes[0].textContent=i.topic,this.linkDiv(),this.bus.fire("operation",{name:"finishEdit",obj:i,origin:n}))}))},createChildren:function(e,t,n){let i;i=t||f.createElement("children");for(let t=0;t<e.length;t++){const o=e[t],r=f.createElement("GRP");0===n?r.className="lhs":1===n?r.className="rhs":2===n&&(0===o.direction?r.className="lhs":1===o.direction&&(r.className="rhs"));const s=this.createTop(o);if(o.children&&o.children.length>0){if(s.appendChild(x(o.expanded)),r.appendChild(s),!1!==o.expanded){const e=this.createChildren(o.children);r.appendChild(e)}}else r.appendChild(s);i.appendChild(r)}return i},createGroup:function(e,t){const n=f.createElement("GRP"),i=this.createTop(e);if(n.appendChild(i),!t&&e.children&&e.children.length>0&&(i.appendChild(x(e.expanded)),!1!==e.expanded)){const t=this.createChildren(e.children);n.appendChild(t)}return{grp:n,top:i}},createTop:function(e){const t=f.createElement("t"),n=this.createTopic(e);return b(n,e),t.appendChild(n),t},createTopic:function(e){const t=f.createElement("tpc");return t.nodeObj=e,t.dataset.nodeid="me"+e.id,t.draggable=this.draggable,t},selectNode:function(e,t,n){if(e){if("string"==typeof e)return this.selectNode(g(e));this.currentNode&&(this.currentNode.className=""),e.className="selected",this.currentNode=e,t?this.bus.fire("selectNewNode",e.nodeObj,n):this.bus.fire("selectNode",e.nodeObj,n)}},unselectNode:function(){this.currentNode&&(this.currentNode.className=""),this.currentNode=null,this.bus.fire("unselectNode")},selectNextSibling:function(){if(!this.currentNode||"meroot"===this.currentNode.dataset.nodeid)return;const e=this.currentNode.parentElement.parentElement.nextSibling;let t;const n=this.currentNode.parentElement.parentElement;if("rhs"===n.className||"lhs"===n.className){const e=this.mindElixirBox.querySelectorAll("."+n.className),i=Array.from(e).indexOf(n);if(!(i+1<e.length))return!1;t=e[i+1].firstChild.firstChild}else{if(!e)return!1;t=e.firstChild.firstChild}return this.selectNode(t),!0},selectPrevSibling:function(){if(!this.currentNode||"meroot"===this.currentNode.dataset.nodeid)return;const e=this.currentNode.parentElement.parentElement.previousSibling;let t;const n=this.currentNode.parentElement.parentElement;if("rhs"===n.className||"lhs"===n.className){const e=this.mindElixirBox.querySelectorAll("."+n.className),i=Array.from(e).indexOf(n);if(!(i-1>=0))return!1;t=e[i-1].firstChild.firstChild}else{if(!e)return!1;t=e.firstChild.firstChild}return this.selectNode(t),!0},selectFirstChild:function(){if(!this.currentNode)return;const e=this.currentNode.parentElement.nextSibling;if(e&&e.firstChild){const t=e.firstChild.firstChild.firstChild;this.selectNode(t)}},selectParent:function(){if(!this.currentNode||"meroot"===this.currentNode.dataset.nodeid)return;const e=this.currentNode.parentElement.parentElement.parentElement.previousSibling;if(e){const t=e.firstChild;this.selectNode(t)}},getAllDataString:function(){const e={nodeData:C(this),linkData:this.linkData,direction:this.direction};return JSON.stringify(e,((e,t)=>{if("parent"!==e)return"from"===e||"to"===e?t.nodeObj.id:t}))},getAllData:function(){const e={nodeData:C(this),linkData:this.linkData,direction:this.direction};return JSON.parse(JSON.stringify(e,((e,t)=>{if("parent"!==e)return"from"===e||"to"===e?t.nodeObj.id:t})))},getAllDataMd:function(){const e=C(this);let t="# "+e.topic+"\n\n";return function e(n,i){for(let o=0;o<n.length;o++)t+=i<=6?"".padStart(i,"#")+" "+n[o].topic+"\n\n":"".padStart(i-7,"\t")+"- "+n[o].topic+"\n",n[o].children&&e(n[o].children,i+1)}(e.children,2),t},scale:function(e){this.scaleVal=e,this.map.style.transform="scale("+e+")"},toCenter:function(){this.container.scrollTo(1e4-this.container.offsetWidth/2,1e4-this.container.offsetHeight/2)},focusNode:function(e){e.nodeObj.root||(null===this.tempDirection&&(this.tempDirection=this.direction),this.isFocusMode||(this.nodeDataBackup=this.nodeData,this.isFocusMode=!0),this.nodeData=e.nodeObj,this.nodeData.root=!0,this.initRight(),this.toCenter())},cancelFocus:function(){this.isFocusMode=!1,null!==this.tempDirection&&(delete this.nodeData.root,this.nodeData=this.nodeDataBackup,this.direction=this.tempDirection,this.tempDirection=null,this.refresh(),this.toCenter())},initLeft:function(){this.direction=0,this.refresh()},initRight:function(){this.direction=1,this.refresh()},initSide:function(){this.direction=2,this.refresh()},setLocale:function(e){this.locale=e,this.refresh()},enableEdit:function(){this.editable=!0},disableEdit:function(){this.editable=!1},expandNode:function(e,t){const n=e.nodeObj;"boolean"==typeof t?n.expanded=t:!1!==n.expanded?n.expanded=!1:n.expanded=!0,this.layout(),this.linkDiv(),this.bus.fire("expandNode",n)},refresh:function(e){e&&(this.nodeData=e.nodeData,this.linkData=e.linkData||{}),this.addParentLink(this.nodeData),this.layout(),this.linkDiv()},install(e){e(this)},init(e){if(!e||!e.nodeData)return new Error("MindElixir: `data` is required");e.direction&&(this.direction=e.direction),this.nodeData=e.nodeData,this.linkData=e.linkData||{},this.toolBar&&J(this),this.nodeMenu&&function(e){function t(t,n){const i=e.container.querySelectorAll(t);[].forEach.call(i,(function(e){e.classList.remove(n)}))}const n=T[e.locale]?e.locale:"en",i=ee("nm-style",`\n <div class="nm-fontsize-container">\n ${["15","24","32"].map((e=>`<div class="size" data-size="${e}">\n <svg class="icon" style="width: ${e}px;height: ${e}px" aria-hidden="true">\n <use xlink:href="#icon-a"></use>\n </svg></div>`)).join("")}<div class="bold"><svg class="icon" aria-hidden="true">\n<use xlink:href="#icon-B"></use>\n</svg></div>\n </div>\n <div class="nm-fontcolor-container">\n ${te.map((e=>`<div class="split6"><div class="palette" data-color="${e}" style="background-color: ${e};"></div></div>`)).join("")}\n </div>\n <div class="bof">\n <span class="font">${T[n].font}</span>\n <span class="background">${T[n].background}</span>\n </div>`),o=ee("nm-tag",`${T[n].tag}<input class="nm-tag" tabindex="-1" placeholder="${T[n].tagsSeparate}" />`),r=ee("nm-icon",`${T[n].icon}<input class="nm-icon" tabindex="-1" placeholder="${T[n].iconsSeparate}" />`),s=ee("nm-url",`${T[n].url}<input class="nm-url" tabindex="-1" />`),a=ee("nm-memo",`${T[n].memo||"Memo"}<textarea class="nm-memo" rows="5" tabindex="-1" />`),l=document.createElement("div");l.className="node-menu",l.innerHTML='\n <div class="button-container"><svg class="icon" aria-hidden="true">\n <use xlink:href="#icon-close"></use>\n </svg></div>\n ',l.appendChild(i),l.appendChild(o),l.appendChild(r),l.appendChild(s),l.appendChild(a),l.hidden=!0,e.container.append(l);const c=l.querySelectorAll(".size"),d=l.querySelector(".bold"),h=l.querySelector(".button-container"),p=l.querySelector(".font"),u=e.container.querySelector(".nm-tag"),m=e.container.querySelector(".nm-icon"),f=e.container.querySelector(".nm-url"),g=e.container.querySelector(".nm-memo");let b;l.onclick=n=>{if(!e.currentNode)return;const i=e.currentNode.nodeObj,o=n.target;"palette"===o.className?(i.style||(i.style={}),t(".palette","nmenu-selected"),o.className="palette nmenu-selected","font"===b?i.style.color=o.dataset.color:"background"===b&&(i.style.background=o.dataset.color),e.updateNodeStyle(i)):"background"===o.className?(t(".palette","nmenu-selected"),b="background",o.className="background selected",o.previousElementSibling.className="font",i.style&&i.style.background&&(l.querySelector('.palette[data-color="'+i.style.background+'"]').className="palette nmenu-selected")):"font"===o.className&&(t(".palette","nmenu-selected"),b="font",o.className="font selected",o.nextElementSibling.className="background",i.style&&i.style.color&&(l.querySelector('.palette[data-color="'+i.style.color+'"]').className="palette nmenu-selected"))},Array.from(c).map((n=>{n.onclick=n=>{e.currentNode.nodeObj.style||(e.currentNode.nodeObj.style={}),t(".size","size-selected");const i=n.currentTarget;e.currentNode.nodeObj.style.fontSize=i.dataset.size,i.className="size size-selected",e.updateNodeStyle(e.currentNode.nodeObj)}})),d.onclick=t=>{e.currentNode.nodeObj.style||(e.currentNode.nodeObj.style={}),"bold"===e.currentNode.nodeObj.style.fontWeight?(delete e.currentNode.nodeObj.style.fontWeight,t.currentTarget.className="bold",e.updateNodeStyle(e.currentNode.nodeObj)):(e.currentNode.nodeObj.style.fontWeight="bold",t.currentTarget.className="bold size-selected",e.updateNodeStyle(e.currentNode.nodeObj))},u.onchange=t=>{if(e.currentNode&&"string"==typeof t.target.value){const n=t.target.value.split(",");e.updateNodeTags(e.currentNode.nodeObj,n.filter((e=>e)))}},m.onchange=t=>{if(e.currentNode&&"string"==typeof t.target.value){const n=t.target.value.split(",");e.updateNodeIcons(e.currentNode.nodeObj,n.filter((e=>e)))}},f.onchange=t=>{e.currentNode&&e.updateNodeHyperLink(e.currentNode.nodeObj,t.target.value)},g.onchange=t=>{e.currentNode&&(e.currentNode.nodeObj.memo=t.target.value)};let x="open";h.onclick=e=>{"open"===x?(x="close",l.className="close",h.innerHTML='<svg class="icon" aria-hidden="true"><use xlink:href="#icon-menu"></use></svg>'):(x="open",l.className="",h.innerHTML='<svg class="icon" aria-hidden="true"><use xlink:href="#icon-close"></use></svg>')},e.bus.addListener("unselectNode",(function(){l.hidden=!0})),e.bus.addListener("selectNode",(function(e,n){n&&(l.hidden=!1,t(".palette","nmenu-selected"),t(".size","size-selected"),t(".bold","size-selected"),b="font",p.className="font selected",p.nextElementSibling.className="background",e.style&&(e.style.fontSize&&(l.querySelector('.size[data-size="'+e.style.fontSize+'"]').className="size size-selected"),e.style.fontWeight&&(l.querySelector(".bold").className="bold size-selected"),e.style.color&&(l.querySelector('.palette[data-color="'+e.style.color+'"]').className="palette nmenu-selected")),e.tags?u.value=e.tags.join(","):u.value="",e.icons?m.value=e.icons.join(","):m.value="",f.value=e.hyperLink||"",g.value=e.memo||"")}))}(this),this.keypress&&function(e){const t={13:()=>{e.insertSibling()},9:()=>{e.addChild()},113:()=>{e.beginEdit()},38:()=>{e.selectPrevSibling()},40:()=>{e.selectNextSibling()},37:()=>{e.currentNode&&("rhs"===e.currentNode.offsetParent.offsetParent.className?e.selectParent():("lhs"===e.currentNode.offsetParent.offsetParent.className||e.currentNode.nodeObj.root)&&e.selectFirstChild())},39:()=>{e.currentNode&&("rhs"===e.currentNode.offsetParent.offsetParent.className||e.currentNode.nodeObj.root?e.selectFirstChild():"lhs"===e.currentNode.offsetParent.offsetParent.className&&e.selectParent())},33(){e.moveUpNode()},34(){e.moveDownNode()},67(t){(t.metaKey||t.ctrlKey)&&(e.waitCopy=e.currentNode)},86(t){e.waitCopy&&(t.metaKey||t.ctrlKey)&&(e.copyNode(e.waitCopy,e.currentNode),e.waitCopy=null)},90:t=>{e.allowUndo&&(t.metaKey||t.ctrlKey)&&e.undo()},187:t=>{if(t.metaKey||t.ctrlKey){if(e.scaleVal>1.6)return;e.scale(e.scaleVal+=.2)}},189:t=>{if(t.metaKey||t.ctrlKey){if(e.scaleVal<.6)return;e.scale(e.scaleVal-=.2)}}};e.map.onkeydown=n=>{n.preventDefault(),e.editable&&n.target===n.currentTarget&&(8===n.keyCode||46===n.keyCode?e.currentLink?e.removeLink():e.removeNode():t[n.keyCode]&&t[n.keyCode](n))}}(this),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&this.mobileMenu?function(e,t){const n=(e,t)=>{const n=document.createElement("div");return n.id=e,n.innerHTML=`<svg class="icon" aria-hidden="true">\n <use xlink:href="#icon-${t}"></use>\n </svg>`,n},i=n("cm-add_child","zijiedian"),o=n("cm-add_sibling","tongjijiedian-"),r=n("cm-remove_child","shanchu2"),s=n("cm-up","rising"),a=n("cm-down","falling"),l=n("cm-edit","edit"),c=document.createElement("ul");if(c.className="menu-list",t&&t.extend)for(let e=0;e<t.extend.length;e++){const i=t.extend[e],o=n(i.name,i.name);c.appendChild(o),o.onclick=e=>{i.onclick(e)}}const d=document.createElement("mmenu");d.className="mobile-menu",d.appendChild(i),d.appendChild(o),d.appendChild(r),d.appendChild(s),d.appendChild(a),d.appendChild(l),d.hidden=!0,e.container.append(d);let h=!0;e.bus.addListener("unselectNode",(function(){d.hidden=!0})),e.bus.addListener("selectNode",(function(e){d.hidden=!1,h=!!e.root})),d.onclick=e=>{e.target===d&&(d.hidden=!0)},i.onclick=t=>{e.addChild()},o.onclick=t=>{h||e.insertSibling()},r.onclick=t=>{h||e.removeNode()},s.onclick=t=>{h||e.moveUpNode()},a.onclick=t=>{h||e.moveDownNode()},l.onclick=t=>{e.beginEdit()}}(this):this.contextMenu&&U(this,this.contextMenuOption),this.draggable&&se(this),r(this.nodeData),this.toCenter(),this.layout(),this.linkDiv()}},fe.LEFT=0,fe.RIGHT=1,fe.SIDE=2,fe.version="1.0.0",fe.E=g,fe.new=e=>({nodeData:{id:h(),topic:e||"new topic",root:!0,children:[]},linkData:{}});const be=fe})(),i=i.default})()}));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.MindElixir=t():e.MindElixir=t()}(self,(()=>(()=>{var e={74:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var i=n(81),o=n.n(i),r=n(645),a=n.n(r),s=n(667),l=n.n(s),c=new URL(n(848),n.b),d=new URL(n(295),n.b),h=a()(o()),p=l()(c),m=l()(d);h.push([e.id,".mind-elixir {\n --gap: 30px;\n --root-radius: 30px;\n --main-radius: 20px;\n --root-color: #ffffff;\n --root-bgcolor: #4c4f69;\n --main-color: #444446;\n --main-bgcolor: #ffffff;\n --color: #777777;\n --bgcolor: #f6f6f6;\n position: relative;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;\n}\n.mind-elixir .hyper-link {\n text-decoration: none;\n}\n.map-container {\n user-select: none;\n height: 100%;\n width: 100%;\n overflow: scroll;\n font-size: 15px;\n}\n.map-container::-webkit-scrollbar {\n width: 0px;\n height: 0px;\n}\n.map-container .map-canvas {\n height: 20000px;\n width: 20000px;\n position: relative;\n user-select: none;\n transition: all 0.3s;\n transform: scale(1);\n background-color: var(--bgcolor);\n}\n.map-container .map-canvas .selected {\n outline: 2px solid #4dc4ff;\n}\n.map-container .map-canvas me-root {\n position: absolute;\n padding: 10px var(--gap);\n color: var(--root-color);\n background-color: var(--root-bgcolor);\n border-radius: var(--root-radius);\n}\n.map-container .map-canvas me-root me-tpc {\n display: block;\n font-size: 25px;\n white-space: pre-wrap;\n}\n.map-container .map-canvas me-root me-tpc #input-box {\n padding: 10px var(--gap);\n}\n.map-container .box > me-wrapper {\n position: absolute;\n}\n.map-container .box > me-wrapper > me-parent {\n margin: var(--gap);\n background-color: var(--main-bgcolor);\n border: 1px solid var(--main-color);\n padding: 8px var(--gap);\n border-radius: var(--main-radius);\n}\n.map-container .box > me-wrapper > me-parent > me-tpc {\n color: var(--main-color);\n}\n.map-container .box .lhs {\n direction: rtl;\n}\n.map-container .box .lhs me-tpc {\n direction: ltr;\n}\n.map-container .box me-wrapper {\n display: block;\n pointer-events: none;\n}\n.map-container .box me-children,\n.map-container .box me-parent {\n display: inline-block;\n vertical-align: middle;\n}\n.map-container .box me-parent {\n position: relative;\n cursor: pointer;\n padding: 6px var(--gap);\n margin-top: 10px;\n}\n.map-container .box me-parent me-tpc {\n position: relative;\n display: block;\n border-radius: 3px;\n color: var(--color);\n pointer-events: all;\n max-width: 800px;\n white-space: pre-wrap;\n line-height: 1.2;\n}\n.map-container .box me-parent me-tpc .tags {\n direction: ltr;\n}\n.map-container .box me-parent me-tpc .tags span {\n display: inline-block;\n border-radius: 3px;\n padding: 2px 4px;\n background: #d6f0f8;\n color: #276f86;\n margin: 0px;\n font-size: 12px;\n height: 16px;\n line-height: 16px;\n margin-right: 3px;\n margin-top: 2px;\n}\n.map-container .box me-parent me-tpc .icons {\n display: inline-block;\n direction: ltr;\n margin-right: 10px;\n}\n.map-container .box me-parent me-tpc .insert-preview {\n position: absolute;\n width: 100%;\n left: 0px;\n z-index: 9;\n}\n.map-container .box me-parent me-tpc .show {\n background: #7ad5ff;\n pointer-events: none;\n opacity: 0.7;\n}\n.map-container .box me-parent me-tpc .before {\n height: 14px;\n top: -14px;\n}\n.map-container .box me-parent me-tpc .in {\n height: 100%;\n top: 0px;\n}\n.map-container .box me-parent me-tpc .after {\n height: 14px;\n bottom: -14px;\n}\n.map-container .box me-parent me-epd {\n position: absolute;\n height: 18px;\n width: 18px;\n opacity: 0.8;\n background-image: url("+p+");\n background-repeat: no-repeat;\n background-size: contain;\n background-position: center;\n pointer-events: all;\n z-index: 9;\n}\n.map-container .box me-parent me-epd.minus {\n background-image: url("+m+") !important;\n transition: all 0.3s;\n opacity: 0;\n}\n.map-container .box me-parent me-epd.minus:hover {\n opacity: 0.8;\n}\n.map-container .icon {\n width: 1em;\n height: 1em;\n vertical-align: -0.15em;\n fill: currentColor;\n overflow: hidden;\n}\n.map-container .lines,\n.map-container .subLines,\n.map-container .topiclinks,\n.map-container .linkcontroller {\n position: absolute;\n height: 102%;\n width: 100%;\n top: 0;\n left: 0;\n}\n.map-container .topiclinks,\n.map-container .linkcontroller {\n pointer-events: none;\n}\n.map-container .topiclinks g,\n.map-container .linkcontroller g {\n pointer-events: all;\n}\n.map-container .lines,\n.map-container .subLines {\n pointer-events: none;\n z-index: -1;\n}\n.map-container .topiclinks *,\n.map-container .linkcontroller * {\n z-index: 100;\n}\n.map-container .topiclinks g {\n cursor: pointer;\n}\n.map-container #input-box {\n position: absolute;\n top: 0;\n left: 0;\n background-color: #fff;\n color: #666666;\n width: max-content;\n max-width: 800px;\n z-index: 11;\n direction: ltr;\n user-select: auto;\n}\nme-tpc > img {\n pointer-events: none;\n display: block;\n}\n.circle {\n position: absolute;\n height: 10px;\n width: 10px;\n margin-top: -5px;\n margin-left: -5px;\n border-radius: 100%;\n background: #aaa;\n cursor: pointer;\n}\n",""]);const u=h},165:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(81),o=n.n(i),r=n(645),a=n.n(r)()(o());a.push([e.id,".mind-elixir .context-menu {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 99;\n}\n.mind-elixir .context-menu .menu-list {\n position: fixed;\n list-style: none;\n margin: 0;\n padding: 0;\n font: 300 15px 'Roboto', sans-serif;\n color: #333;\n box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.2);\n}\n.mind-elixir .context-menu .menu-list * {\n transition: color 0.4s, background-color 0.4s;\n}\n.mind-elixir .context-menu .menu-list li {\n min-width: 150px;\n overflow: hidden;\n white-space: nowrap;\n padding: 6px 10px;\n background-color: #fff;\n border-bottom: 1px solid #ecf0f1;\n}\n.mind-elixir .context-menu .menu-list li a {\n color: #333;\n text-decoration: none;\n}\n.mind-elixir .context-menu .menu-list li.disabled {\n color: #5e5e5e;\n background-color: #f7f7f7;\n}\n.mind-elixir .context-menu .menu-list li.disabled:hover {\n cursor: default;\n background-color: #f7f7f7;\n}\n.mind-elixir .context-menu .menu-list li:hover {\n cursor: pointer;\n background-color: #ecf0f1;\n}\n.mind-elixir .context-menu .menu-list li:first-child {\n border-radius: 5px 5px 0 0;\n}\n.mind-elixir .context-menu .menu-list li:last-child {\n border-bottom: 0;\n border-radius: 0 0 5px 5px;\n}\n.mind-elixir .context-menu .menu-list li span:last-child {\n float: right;\n}\n",""]);const s=a},787:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(81),o=n.n(i),r=n(645),a=n.n(r)()(o());a.push([e.id,".mind-elixir .mobile-menu {\n position: absolute;\n left: 20px;\n bottom: 70px;\n z-index: 99;\n margin: 0;\n padding: 0;\n color: #333;\n border-radius: 5px;\n box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.2);\n overflow: hidden;\n}\n.mind-elixir .mobile-menu * {\n transition: color 0.4s, background-color 0.4s;\n}\n.mind-elixir .mobile-menu div {\n float: left;\n text-align: center;\n width: 30px;\n overflow: hidden;\n white-space: nowrap;\n padding: 8px;\n background-color: #fff;\n border-bottom: 1px solid #ecf0f1;\n}\n.mind-elixir .mobile-menu div a {\n color: #333;\n text-decoration: none;\n}\n.mind-elixir .mobile-menu div.disabled {\n color: #5e5e5e;\n background-color: #f7f7f7;\n}\n.mind-elixir .mobile-menu div.disabled:hover {\n cursor: default;\n background-color: #f7f7f7;\n}\n.mind-elixir .mobile-menu div:hover {\n cursor: pointer;\n background-color: #ecf0f1;\n}\n",""]);const s=a},301:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(81),o=n.n(i),r=n(645),a=n.n(r)()(o());a.push([e.id,".mind-elixir-toolbar {\n position: absolute;\n background: #fff;\n padding: 10px;\n border-radius: 5px;\n box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2);\n}\n.mind-elixir-toolbar span:active {\n opacity: 0.5;\n}\n.mind-elixir-toolbar.rb {\n right: 20px;\n bottom: 20px;\n font-family: iconfont;\n}\n.mind-elixir-toolbar.rb span + span {\n margin-left: 10px;\n}\n.mind-elixir-toolbar.lt {\n font-size: 20px;\n left: 20px;\n top: 20px;\n width: 20px;\n}\n.mind-elixir-toolbar.lt span {\n display: block;\n}\n.mind-elixir-toolbar.lt span + span {\n margin-top: 10px;\n}\n",""]);const s=a},645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",i=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),i&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),i&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,i,o,r){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(i)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var c=0;c<e.length;c++){var d=[].concat(e[c]);i&&a[d[0]]||(void 0!==r&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=r),n&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=n):d[2]=n),o&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=o):d[4]="".concat(o)),t.push(d))}},t}},667:e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},81:e=>{"use strict";e.exports=function(e){return e[1]}},379:e=>{"use strict";var t=[];function n(e){for(var n=-1,i=0;i<t.length;i++)if(t[i].identifier===e){n=i;break}return n}function i(e,i){for(var r={},a=[],s=0;s<e.length;s++){var l=e[s],c=i.base?l[0]+i.base:l[0],d=r[c]||0,h="".concat(c," ").concat(d);r[c]=d+1;var p=n(h),m={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==p)t[p].references++,t[p].updater(m);else{var u=o(m,i);i.byIndex=s,t.splice(s,0,{identifier:h,updater:u,references:1})}a.push(h)}return a}function o(e,t){var n=t.domAPI(t);n.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var r=i(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<r.length;a++){var s=n(r[a]);t[s].references--}for(var l=i(e,o),c=0;c<r.length;c++){var d=n(r[c]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}r=l}}},569:e=>{"use strict";var t={};e.exports=function(e,n){var i=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}},216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},565:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var i="";n.supports&&(i+="@supports (".concat(n.supports,") {")),n.media&&(i+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(i+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),i+=n.css,o&&(i+="}"),n.media&&(i+="}"),n.supports&&(i+="}");var r=n.sourceMap;r&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleTagTransform(i,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},857:()=>{!function(e){var t,n,i,o,r,a,s='<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="#333333" ></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="#333333" ></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="#666666" ></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="#666666" ></path></symbol></svg>',l=(l=document.getElementsByTagName("script"))[l.length-1].getAttribute("data-injectcss");if(l&&!e.__iconfont__svg__cssinject__){e.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(e){console}}function c(){r||(r=!0,i())}t=function(){var e,t,n,i;(i=document.createElement("div")).innerHTML=s,s=null,(n=i.getElementsByTagName("svg")[0])&&(n.setAttribute("aria-hidden","true"),n.style.position="absolute",n.style.width=0,n.style.height=0,n.style.overflow="hidden",e=n,(t=document.body).firstChild?(i=e,(n=t.firstChild).parentNode.insertBefore(i,n)):t.appendChild(e))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(t,0):(n=function(){document.removeEventListener("DOMContentLoaded",n,!1),t()},document.addEventListener("DOMContentLoaded",n,!1)):document.attachEvent&&(i=t,o=e.document,r=!1,(a=function(){try{o.documentElement.doScroll("left")}catch(e){return void setTimeout(a,50)}c()})(),o.onreadystatechange=function(){"complete"==o.readyState&&(o.onreadystatechange=null,c())})}(window)},848:e=>{"use strict";e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgdD0iMTY1NjY1NDcxNzI0MiIgY2xhc3M9Imljb24iIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHZlcnNpb249IjEuMSIKICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+CiAgICA8cGF0aCBkPSJNNTEyIDc0LjY2NjY2N0MyNzAuOTMzMzMzIDc0LjY2NjY2NyA3NC42NjY2NjcgMjcwLjkzMzMzMyA3NC42NjY2NjcgNTEyUzI3MC45MzMzMzMgOTQ5LjMzMzMzMyA1MTIgOTQ5LjMzMzMzMyA5NDkuMzMzMzMzIDc1My4wNjY2NjcgOTQ5LjMzMzMzMyA1MTIgNzUzLjA2NjY2NyA3NC42NjY2NjcgNTEyIDc0LjY2NjY2N3oiIHN0cm9rZS13aWR0aD0iNTQiIHN0cm9rZT0nYmxhY2snIGZpbGw9J3doaXRlJyA+PC9wYXRoPgogICAgPHBhdGggZD0iTTY4Mi42NjY2NjcgNDgwaC0xMzguNjY2NjY3VjM0MS4zMzMzMzNjMC0xNy4wNjY2NjctMTQuOTMzMzMzLTMyLTMyLTMycy0zMiAxNC45MzMzMzMtMzIgMzJ2MTM4LjY2NjY2N0gzNDEuMzMzMzMzYy0xNy4wNjY2NjcgMC0zMiAxNC45MzMzMzMtMzIgMzJzMTQuOTMzMzMzIDMyIDMyIDMyaDEzOC42NjY2NjdWNjgyLjY2NjY2N2MwIDE3LjA2NjY2NyAxNC45MzMzMzMgMzIgMzIgMzJzMzItMTQuOTMzMzMzIDMyLTMydi0xMzguNjY2NjY3SDY4Mi42NjY2NjdjMTcuMDY2NjY3IDAgMzItMTQuOTMzMzMzIDMyLTMycy0xNC45MzMzMzMtMzItMzItMzJ6Ij48L3BhdGg+Cjwvc3ZnPg=="},295:e=>{"use strict";e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgdD0iMTY1NjY1NTU2NDk4NSIgY2xhc3M9Imljb24iIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHZlcnNpb249IjEuMSIKICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+CiAgICA8cGF0aCBkPSJNNTEyIDc0LjY2NjY2N0MyNzAuOTMzMzMzIDc0LjY2NjY2NyA3NC42NjY2NjcgMjcwLjkzMzMzMyA3NC42NjY2NjcgNTEyUzI3MC45MzMzMzMgOTQ5LjMzMzMzMyA1MTIgOTQ5LjMzMzMzMyA5NDkuMzMzMzMzIDc1My4wNjY2NjcgOTQ5LjMzMzMzMyA1MTIgNzUzLjA2NjY2NyA3NC42NjY2NjcgNTEyIDc0LjY2NjY2N3oiIHN0cm9rZS13aWR0aD0iNTQiIHN0cm9rZT0nYmxhY2snIGZpbGw9J3doaXRlJyA+PC9wYXRoPgogICAgPHBhdGggZD0iTTY4Mi42NjY2NjcgNTQ0SDM0MS4zMzMzMzNjLTE3LjA2NjY2NyAwLTMyLTE0LjkzMzMzMy0zMi0zMnMxNC45MzMzMzMtMzIgMzItMzJoMzQxLjMzMzMzNGMxNy4wNjY2NjcgMCAzMiAxNC45MzMzMzMgMzIgMzJzLTE0LjkzMzMzMyAzMi0zMiAzMnoiPjwvcGF0aD4KPC9zdmc+"}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var r=t[i]={id:i,exports:{}};return e[i](r,r.exports,n),r.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.b=document.baseURI||self.location.href,n.nc=void 0;var i={};return(()=>{"use strict";n.d(i,{default:()=>ue});const e=30,t={name:"Latte",palette:["#dd7878","#ea76cb","#8839ef","#e64553","#fe640b","#df8e1d","#40a02b","#209fb5","#1e66f5","#7287fd"],cssVar:{"--main-color":"#444446","--main-bgcolor":"#ffffff","--color":"#777777","--bgcolor":"#f6f6f6"}};function o(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;")}const r=function(e,t){if((t=t||this.nodeData).id===e)return t;if(!t.children||!t.children.length)return null;for(let n=0;n<t.children.length;n++){const i=r(e,t.children[n]);if(i)return i}},a=(e,t)=>{if(e.parent=t,e.children)for(let t=0;t<e.children.length;t++)a(e.children[t],e)};function s(e){if(e.id=p(),e.children)for(let t=0;t<e.children.length;t++)s(e.children[t])}const l=(e,t)=>{let n=Date.now();return function(...i){Date.now()-n>=t&&(e.apply(this,i),n=Date.now())}};function c(e,t,n,i){const o=i-t,r=e-n;let a=Math.atan(Math.abs(o)/Math.abs(r))/3.14*180;r<0&&o>0&&(a=180-a),r<0&&o<0&&(a=180+a),r>0&&o<0&&(a=360-a);const s=a+30,l=a-30;return{x1:n+20*Math.cos(Math.PI*s/180),y1:i-20*Math.sin(Math.PI*s/180),x2:n+20*Math.cos(Math.PI*l/180),y2:i-20*Math.sin(Math.PI*l/180)}}function d(e,t,n){let i,o;const r=(e.cy-n)/(t-e.cx);return r>e.h/e.w||r<-e.h/e.w?e.cy-n<0?(i=e.cx-e.h/2/r,o=e.cy+e.h/2):(i=e.cx+e.h/2/r,o=e.cy-e.h/2):e.cx-t<0?(i=e.cx+e.w/2,o=e.cy-e.w*r/2):(i=e.cx-e.w/2,o=e.cy+e.w*r/2),{x:i,y:o}}function h(e,t,n){let i,o;const r=(e.cy-n)/(t-e.cx);return r>e.h/e.w||r<-e.h/e.w?e.cy-n<0?(i=e.cx-e.h/2/r,o=e.cy+e.h/2):(i=e.cx+e.h/2/r,o=e.cy-e.h/2):e.cx-t<0?(i=e.cx+e.w/2,o=e.cy-e.w*r/2):(i=e.cx-e.w/2,o=e.cy+e.w*r/2),{x:i,y:o}}function p(){return((new Date).getTime().toString(16)+Math.random().toString(16).substr(2)).substr(2,16)}function m(e){const t=e.parent.children,n=t.indexOf(e);return t.splice(n,1),t.length}function u(e){return JSON.parse(JSON.stringify(e,((e,t)=>{if("parent"!==e)return t})))}const f=document,g=(e,t)=>(t?t.mindElixirBox:f).querySelector(`[data-nodeid=me${e}]`),b=function(e,t){if(e.textContent=t.topic,t.style&&(e.style.color=t.style.color||null,e.style.background=t.style.background||null,e.style.fontSize=t.style.fontSize+"px",e.style.fontWeight=t.style.fontWeight||"normal"),t.image){const n=t.image;if(n.url&&n.width&&n.height){const t=f.createElement("img");t.src=n.url,t.style.width=n.width+"px",t.style.height=n.height+"px",e.appendChild(t)}}if(t.hyperLink){const n=f.createElement("a");n.className="hyper-link",n.target="_blank",n.innerText="🔗",n.href=t.hyperLink,e.appendChild(n),e.linkContainer=n}else e.linkContainer&&(e.linkContainer.remove(),e.linkContainer=null);if(t.icons&&t.icons.length){const n=f.createElement("span");n.className="icons",n.innerHTML=t.icons.map((e=>`<span>${o(e)}</span>`)).join(""),e.appendChild(n)}if(t.tags&&t.tags.length){const n=f.createElement("div");n.className="tags",n.innerHTML=t.tags.map((e=>`<span>${o(e)}</span>`)).join(""),e.appendChild(n)}t.branchColor&&(e.style.borderColor=t.branchColor)};const x=function(e){const t=f.createElement("me-epd");return t.expanded=!1!==e,t.className=!1!==e?"minus":"",t},N=document,y=document,v="http://www.w3.org/2000/svg",M=function(e,t){const n=y.createElementNS(v,"path");return n.setAttribute("d",e),n.setAttribute("stroke",t||"#666"),n.setAttribute("fill","none"),n.setAttribute("stroke-width","3"),n},C=function(e){const t=y.createElementNS(v,"svg");return t.setAttribute("class",e),t},k=function(e,t,n,i){const o=y.createElementNS(v,"line");return o.setAttribute("x1",e),o.setAttribute("y1",t),o.setAttribute("x2",n),o.setAttribute("y2",i),o.setAttribute("stroke","#bbb"),o.setAttribute("fill","none"),o.setAttribute("stroke-width","2"),o},w=function(e,t){const n=y.createElementNS(v,"path");return n.setAttribute("d",e),n.setAttribute("stroke",t||"#555"),n.setAttribute("fill","none"),n.setAttribute("stroke-linecap","square"),n.setAttribute("stroke-width","2"),n};function z(e){return{nodeData:e.isFocusMode?e.nodeDataBackup:e.nodeData,linkData:e.linkData,direction:e.direction,theme:e.theme}}const E=function(e,t){if(!e)return;const n=e.nodeObj;!1===n.expanded&&(this.expandNode(e,!0),e=g(n.id));const i=t||this.generateNewObj();n.children?n.children.push(i):n.children=[i],a(this.nodeData);const o=e.parentElement,{grp:r,top:s}=this.createWrapper(i);if("ME-PARENT"===o.tagName){if(o.children[1])o.nextSibling.appendChild(r);else{const e=this.createChildren([r]);o.appendChild(x(!0)),o.insertAdjacentElement("afterend",e)}this.linkDiv(r.offsetParent)}else"ME-ROOT"===o.tagName&&(this.judgeDirection(r,i),o.nextSibling.appendChild(r),this.linkDiv());return{newTop:s,newNodeObj:i}};function j(e){this.dom=e,this.mousedown=!1,this.lastX=null,this.lastY=null}j.prototype={init(e,t){this.handleMouseMove=e=>{if(e.stopPropagation(),this.mousedown){if(!this.lastX)return this.lastX=e.pageX,void(this.lastY=e.pageY);const n=this.lastX-e.pageX,i=this.lastY-e.pageY;t(n,i),this.lastX=e.pageX,this.lastY=e.pageY}},this.handleMouseDown=e=>{e.stopPropagation(),this.mousedown=!0},this.handleClear=e=>{e.stopPropagation(),this.clear()},e.addEventListener("mousemove",this.handleMouseMove),e.addEventListener("mouseleave",this.handleClear),e.addEventListener("mouseup",this.handleClear),this.dom.addEventListener("mousedown",this.handleMouseDown)},destory(e){e.removeEventListener("mousemove",this.handleMouseMove),e.removeEventListener("mouseleave",this.handleClear),e.removeEventListener("mouseup",this.handleClear),this.dom.removeEventListener("mousedown",this.handleMouseDown)},clear(){this.mousedown=!1,this.lastX=null,this.lastY=null}};function L(e,t,n){let i="";const o=t.offsetTop,r=t.offsetLeft,a=t.offsetWidth,s=t.offsetHeight;for(let t=0;t<e.length;t++){const l=e[t],c=l.children[0],d=c.offsetTop,h=c.offsetLeft,p=c.offsetWidth,m=c.offsetHeight,u=l.offsetParent.className;i+=A({pT:o,pL:r,pW:a,pH:s,cT:d,cL:h,cW:p,cH:m,direction:u,isFirst:n});const f=c.children[1];if(!f)continue;if(f.style.bottom=-f.offsetHeight/2+"px","lhs"===u?f.style.left="-10px":"rhs"===u&&(f.style.left=c.offsetWidth-10+"px"),!f.expanded)continue;const g=l.children[1].children;g.length>0&&(i+=L(g,c))}return i}function D({x1:e,y1:t,x2:n,y2:i}){return`M ${e} 10000 V ${i>t?i-20:i+20} C ${e} ${i} ${e} ${i} ${n>e?e+20:e-20} ${i} H ${n}`}function T({x1:e,y1:t,x2:n,y2:i}){return`M ${e} ${t} Q ${e} ${i} ${n} ${i}`}function A({pT:t,pL:n,pW:i,pH:o,cT:r,cL:a,cW:s,cH:l,direction:c,isFirst:d}){let h,p;h=d?t+o/2:t+o;const m=r+l;let u,f,g;return"lhs"===c?(g=n-10,u=g+e,f=g-e,p=a+e-10):"rhs"===c&&(g=n+i+10,u=g-e,f=g+e,p=a+s-e+10),`M ${u} ${h} C ${g} ${h} ${g} ${m} ${f} ${m} H ${p}`}const I={afterMoving:!1,mousedown:!1,lastX:null,lastY:null,onMove(e,t){if(this.mousedown){if(this.afterMoving=!0,!this.lastX)return this.lastX=e.pageX,void(this.lastY=e.pageY);const n=this.lastX-e.pageX,i=this.lastY-e.pageY;t.scrollTo(t.scrollLeft+n,t.scrollTop+i),this.lastX=e.pageX,this.lastY=e.pageY}},clear(){this.afterMoving=!1,this.mousedown=!1,this.lastX=null,this.lastY=null}};const S={addChild:"插入子节点",addParent:"插入父节点",addSibling:"插入同级节点",removeNode:"删除节点",focus:"专注",cancelFocus:"取消专注",moveUp:"上移",moveDown:"下移",link:"连接",clickTips:"请点击目标节点"},P={cn:S,zh_CN:S,zh_TW:{addChild:"插入子節點",addParent:"插入父節點",addSibling:"插入同級節點",removeNode:"刪除節點",focus:"專注",cancelFocus:"取消專注",moveUp:"上移",moveDown:"下移",link:"連接",clickTips:"請點擊目標節點"},en:{addChild:"Add child",addParent:"Add parent",addSibling:"Add sibling",removeNode:"Remove node",focus:"Focus Mode",cancelFocus:"Cancel Focus Mode",moveUp:"Move up",moveDown:"Move down",link:"Link",clickTips:"Please click the target node"},ru:{addChild:"Добавить дочерний элемент",addParent:"Добавить родительский элемент",addSibling:"Добавить на этом уровне",removeNode:"Удалить узел",focus:"Режим фокусировки",cancelFocus:"Отменить режим фокусировки",moveUp:"Поднять выше",moveDown:"Опустить ниже",link:"Ссылка",clickTips:"Пожалуйста, нажмите на целевой узел"},ja:{addChild:"子ノードを追加する",addParent:"親ノードを追加します",addSibling:"兄弟ノードを追加する",removeNode:"ノードを削除",focus:"集中",cancelFocus:"集中解除",moveUp:"上へ移動",moveDown:"下へ移動",link:"コネクト",clickTips:"ターゲットノードをクリックしてください"},pt:{addChild:"Adicionar item filho",addParent:"Adicionar item pai",addSibling:"Adicionar item irmao",removeNode:"Remover item",focus:"Modo Foco",cancelFocus:"Cancelar Modo Foco",moveUp:"Mover para cima",moveDown:"Mover para baixo",link:"Link",clickTips:"Favor clicar no item alvo"}};var O=n(379),H=n.n(O),Y=n(795),B=n.n(Y),$=n(569),R=n.n($),V=n(565),Z=n.n(V),W=n(216),F=n.n(W),U=n(589),X=n.n(U),G=n(165),_={};_.styleTagTransform=X(),_.setAttributes=Z(),_.insert=R().bind(null,"head"),_.domAPI=B(),_.insertStyleElement=F();H()(G.Z,_);G.Z&&G.Z.locals&&G.Z.locals;function q(e,t){const n=(e,t,n)=>{const i=document.createElement("li");return i.id=e,i.innerHTML=`<span>${o(t)}</span><span>${o(n)}</span>`,i},i=P[e.locale]?e.locale:"en",r=n("cm-add_child",P[i].addChild,"tab"),a=n("cm-add_parent",P[i].addParent,""),s=n("cm-add_sibling",P[i].addSibling,"enter"),l=n("cm-remove_child",P[i].removeNode,"delete"),c=n("cm-fucus",P[i].focus,""),d=n("cm-unfucus",P[i].cancelFocus,""),h=n("cm-up",P[i].moveUp,"PgUp"),p=n("cm-down",P[i].moveDown,"Pgdn"),m=n("cm-down",P[i].link,""),u=document.createElement("ul");if(u.className="menu-list",u.appendChild(r),u.appendChild(a),u.appendChild(s),u.appendChild(l),t&&!t.focus||(u.appendChild(c),u.appendChild(d)),u.appendChild(h),u.appendChild(p),t&&!t.link||u.appendChild(m),t&&t.extend)for(let e=0;e<t.extend.length;e++){const i=t.extend[e],o=n(i.name,i.name,i.key||"");u.appendChild(o),o.onclick=e=>{i.onclick(e)}}const f=document.createElement("div");f.className="context-menu",f.appendChild(u),f.hidden=!0,e.container.append(f);let g=!0;e.container.oncontextmenu=function(t){if(t.preventDefault(),!e.editable)return;const n=t.target;if("ME-TPC"===n.tagName){g="ME-ROOT"===n.parentElement.tagName,g?(c.className="disabled",h.className="disabled",p.className="disabled",s.className="disabled",l.className="disabled"):(c.className="",h.className="",p.className="",s.className="",l.className=""),e.selectNode(n),f.hidden=!1;const i=u.offsetHeight,o=u.offsetWidth;i+t.clientY>window.innerHeight?(u.style.top="",u.style.bottom="0px"):(u.style.bottom="",u.style.top=t.clientY+15+"px"),o+t.clientX>window.innerWidth?(u.style.left="",u.style.right="0px"):(u.style.right="",u.style.left=t.clientX+10+"px")}},f.onclick=e=>{e.target===f&&(f.hidden=!0)},r.onclick=()=>{e.addChild(),f.hidden=!0},a.onclick=()=>{e.insertParent(),f.hidden=!0},s.onclick=()=>{g||(e.insertSibling(),f.hidden=!0)},l.onclick=()=>{g||(e.removeNode(),f.hidden=!0)},c.onclick=()=>{g||(e.focusNode(e.currentNode),f.hidden=!0)},d.onclick=()=>{e.cancelFocus(),f.hidden=!0},h.onclick=()=>{g||(e.moveUpNode(),f.hidden=!0)},p.onclick=()=>{g||(e.moveDownNode(),f.hidden=!0)},m.onclick=()=>{f.hidden=!0;const t=e.currentNode,n=(e=>{const t=document.createElement("div");return t.innerText=e,t.style.cssText="position:absolute;bottom:20px;left:50%;transform:translateX(-50%);",t})(P[i].clickTips);e.container.appendChild(n),e.map.addEventListener("click",(i=>{i.preventDefault(),n.remove(),"ME-PARENT"!==i.target.parentElement.tagName&&"ME-ROOT"!==i.target.parentElement.tagName||e.createLink(t,e.currentNode)}),{once:!0})}}var J=n(301),Q={};Q.styleTagTransform=X(),Q.setAttributes=Z(),Q.insert=R().bind(null,"head"),Q.domAPI=B(),Q.insertStyleElement=F();H()(J.Z,Q);J.Z&&J.Z.locals&&J.Z.locals;const K=(e,t)=>{const n=document.createElement("span");return n.id=e,n.innerHTML=`<svg class="icon" aria-hidden="true">\n <use xlink:href="#icon-${t}"></use>\n </svg>`,n};function ee(e){e.container.append(function(e){const t=document.createElement("div"),n=K("fullscreen","full"),i=K("toCenter","living"),o=K("zoomout","move"),r=K("zoomin","add");return document.createElement("span").innerText="100%",t.appendChild(n),t.appendChild(i),t.appendChild(o),t.appendChild(r),t.className="mind-elixir-toolbar rb",n.onclick=()=>{e.container.requestFullscreen()},i.onclick=()=>{e.toCenter()},o.onclick=()=>{e.scaleVal<.6||e.scale(e.scaleVal-=.2)},r.onclick=()=>{e.scaleVal>1.6||e.scale(e.scaleVal+=.2)},t}(e)),e.container.append(function(e){const t=document.createElement("div"),n=K("tbltl","left"),i=K("tbltr","right"),o=K("tblts","side");return t.appendChild(n),t.appendChild(i),t.appendChild(o),t.className="mind-elixir-toolbar lt",n.onclick=()=>{e.initLeft()},i.onclick=()=>{e.initRight()},o.onclick=()=>{e.initSide()},t}(e))}const te=document,ne=function(e){if(!e)return;const t=e.getElementsByClassName("insert-preview");for(const e of t||[])e.remove()},ie=function(e,t){const n=t.parentElement.parentElement.contains(e);return e&&"ME-TPC"===e.tagName&&e!==t&&!n&&!0!==e.nodeObj.root};function oe(e){let t,n,i;e.map.addEventListener("dragstart",(function(e){t=e.target,t.parentElement.parentElement.style.opacity="0.5",I.clear()})),e.map.addEventListener("dragend",(async function(o){o.target.style.opacity="",ne(i);const r=t.nodeObj;switch(n){case"before":e.moveNodeBefore(t,i),e.selectNode(g(r.id));break;case"after":e.moveNodeAfter(t,i),e.selectNode(g(r.id));break;case"in":e.moveNode(t,i)}t.parentElement.parentElement.style.opacity="1",t=null})),e.map.addEventListener("dragover",l((function(e){ne(i);const o=te.elementFromPoint(e.clientX,e.clientY-12);if(ie(o,t)){i=o;const t=o.getBoundingClientRect().y;e.clientY>t+o.clientHeight?n="after":e.clientY>t+o.clientHeight/2&&(n="in")}else{const o=te.elementFromPoint(e.clientX,e.clientY+12);if(ie(o,t)){i=o;const t=o.getBoundingClientRect().y;e.clientY<t?n="before":e.clientY<t+o.clientHeight/2&&(n="in")}else n=i=null}i&&function(e,t){if(!t)return ne(e),e;const n=e.getElementsByClassName("insert-preview"),i=`insert-preview ${t} show`;if(n.length>0)n[0].className=i;else{const t=te.createElement("div");t.className=i,e.appendChild(t)}}(i,n)}),200))}var re=n(787),ae={};ae.styleTagTransform=X(),ae.setAttributes=Z(),ae.insert=R().bind(null,"head"),ae.domAPI=B(),ae.insertStyleElement=F();H()(re.Z,ae);re.Z&&re.Z.locals&&re.Z.locals;function se(){this.handlers={}}se.prototype={showHandler:function(){},addListener:function(e,t){void 0===this.handlers[e]&&(this.handlers[e]=[]),this.handlers[e].push(t)},fire:function(e,...t){if(this.handlers[e]instanceof Array){const n=this.handlers[e];for(let e=0;e<n.length;e++)n[e](...t)}},removeListener:function(e,t){if(!this.handlers[e])return;const n=this.handlers[e];if(t){if(n.length)for(let i=0;i<n.length;i++)n[i]===t&&this.handlers[e].splice(i,1)}else n.length=0}};var le=n(74),ce={};ce.styleTagTransform=X(),ce.setAttributes=Z(),ce.insert=R().bind(null,"head"),ce.domAPI=B(),ce.insertStyleElement=F();H()(le.Z,ce);le.Z&&le.Z.locals&&le.Z.locals;n(857);const de=g,he=document;function pe({el:e,direction:n,locale:i,draggable:o,editable:r,contextMenu:a,contextMenuOption:s,toolBar:l,keypress:c,before:d,newTopicName:h,allowUndo:p,mainLinkStyle:m,overflowHidden:u,mainNodeHorizontalGap:f,mainNodeVerticalGap:g,mobileMenu:b,theme:x}){let N;const y=Object.prototype.toString.call(e);if("[object HTMLDivElement]"===y?N=e:"[object String]"===y&&(N=document.querySelector(e)),!N)return new Error("MindElixir: el is not a valid element");N.className+=" mind-elixir",N.innerHTML="",N.style.setProperty("--gap","30px"),this.mindElixirBox=N,this.before=d||{},this.locale=i,this.contextMenuOption=s,this.contextMenu=void 0===a||a,this.toolBar=void 0===l||l,this.keypress=void 0===c||c,this.mobileMenu=b,this.direction="number"==typeof n?n:1,this.draggable=void 0===o||o,this.newTopicName=h,this.editable=void 0===r||r,this.allowUndo=void 0===p||p,this.currentNode=null,this.currentLink=null,this.inputDiv=null,this.scaleVal=1,this.tempDirection=null,this.mainLinkStyle=m||0,this.overflowHidden=u,this.mainNodeHorizontalGap=f,this.mainNodeVerticalGap=g,this.bus=new se,this.bus.addListener("operation",(e=>{this.isUndo?this.isUndo=!1:["moveNode","removeNode","addChild","finishEdit","editStyle","editTags","editIcons"].includes(e.name)&&this.history.push(e)})),this.history=[],this.isUndo=!1,this.undo=function(){const e=this.history.pop();e&&(this.isUndo=!0,"moveNode"===e.name?this.moveNode(de(e.obj.fromObj.id),de(e.obj.originParentId)):"removeNode"===e.name?e.originSiblingId?this.insertBefore(de(e.originSiblingId),e.obj):this.addChild(de(e.originParentId),e.obj):"addChild"===e.name||"copyNode"===e.name?this.removeNode(de(e.obj.id)):"finishEdit"===e.name?this.setNodeTopic(de(e.obj.id),e.origin):this.isUndo=!1)},this.container=he.createElement("div"),this.container.className="map-container",this.theme=x||t;const v=he.createElement("div");var M;v.className="map-canvas",this.map=v,this.map.setAttribute("tabindex","0"),this.container.appendChild(this.map),this.mindElixirBox.appendChild(this.container),this.root=he.createElement("me-root"),this.box=he.createElement("me-children"),this.box.className="box",this.lines=C("lines"),this.linkController=C("linkcontroller"),this.P2=he.createElement("div"),this.P3=he.createElement("div"),this.P2.className=this.P3.className="circle",this.line1=k(0,0,0,0),this.line2=k(0,0,0,0),this.linkController.appendChild(this.line1),this.linkController.appendChild(this.line2),this.linkSvgGroup=C("topiclinks"),this.map.appendChild(this.root),this.map.appendChild(this.box),this.map.appendChild(this.lines),this.map.appendChild(this.linkController),this.map.appendChild(this.linkSvgGroup),this.map.appendChild(this.P2),this.map.appendChild(this.P3),this.overflowHidden?this.container.style.overflow="hidden":((M=this).map.addEventListener("click",(e=>{if("ME-EPD"===e.target.tagName)M.expandNode(e.target.previousSibling);else{if(!M.editable)return;"ME-PARENT"===e.target.parentElement.tagName||"ME-ROOT"===e.target.parentElement.tagName?M.selectNode(e.target,!1,e):"path"===e.target.tagName?"g"===e.target.parentElement.tagName&&M.selectLink(e.target.parentElement):"circle"===e.target.className||(M.unselectNode(),M.hideLinkController&&M.hideLinkController())}})),M.map.addEventListener("dblclick",(e=>{e.preventDefault(),M.editable&&("ME-PARENT"!==e.target.parentElement.tagName&&"ME-ROOT"!==e.target.parentElement.tagName||M.beginEdit(e.target))})),M.map.addEventListener("mousemove",(e=>{"true"!==e.target.contentEditable&&I.onMove(e,M.container)})),M.map.addEventListener("mousedown",(e=>{"true"!==e.target.contentEditable&&(I.afterMoving=!1,I.mousedown=!0)})),M.map.addEventListener("mouseleave",(e=>{I.clear()})),M.map.addEventListener("mouseup",(e=>{I.clear()})))}function me(e,t){return async function(...n){this.before[t]&&!await this.before[t].apply(this,n)||e.apply(this,n)}}pe.prototype={addParentLink:a,getObjById:r,generateNewObj:function(){const e=p();return{topic:this.newTopicName||"new node",id:e}},insertSibling:me((function(e,t){const n=e||this.currentNode;if(!n)return;const i=n.nodeObj;if(!0===i.root)return void this.addChild();const o=t||this.generateNewObj();!function(e,t){const n=e.parent.children,i=n.indexOf(e);n.splice(i+1,0,t)}(i,o),a(this.nodeData);const r=n.parentElement,{grp:s,top:l}=this.createWrapper(o),c=r.parentNode.parentNode;c.insertBefore(s,r.parentNode.nextSibling),"box"===c.className?(this.judgeDirection(s,o),this.linkDiv()):this.linkDiv(s.offsetParent),t||this.createInputDiv(l.children[0]),this.selectNode(l.children[0],!0),this.bus.fire("operation",{name:"insertSibling",obj:o})}),"insertSibling"),insertBefore:me((function(e,t){const n=e||this.currentNode;if(!n)return;const i=n.nodeObj;if(!0===i.root)return void this.addChild();const o=t||this.generateNewObj();!function(e,t){const n=e.parent.children,i=n.indexOf(e);n.splice(i,0,t)}(i,o),a(this.nodeData);const r=n.parentElement,{grp:s,top:l}=this.createWrapper(o),c=r.parentNode.parentNode;c.insertBefore(s,r.parentNode),"box"===c.className?(this.judgeDirection(s,o),this.linkDiv()):this.linkDiv(s.offsetParent),t||this.createInputDiv(l.children[0]),this.selectNode(l.children[0],!0),this.bus.fire("operation",{name:"insertSibling",obj:o})}),"insertBefore"),insertParent:me((function(e,t){const n=e||this.currentNode;if(!n)return;const i=n.nodeObj;if(!0===i.root)return;const o=t||this.generateNewObj();!function(e,t){const n=e.parent.children,i=n.indexOf(e);n[i]=t,t.children=[e]}(i,o),a(this.nodeData);const r=n.parentElement.parentElement,{grp:s,top:l}=this.createWrapper(o,!0);l.appendChild(x(!0)),r.insertAdjacentElement("afterend",s);const c=this.createChildren([r]);l.insertAdjacentElement("afterend",c),"box"===r.parentNode.className?(s.className=r.className,r.className="",r.querySelector(".subLines").remove(),this.linkDiv()):this.linkDiv(s.offsetParent),t||this.createInputDiv(l.children[0]),this.selectNode(l.children[0],!0),this.bus.fire("operation",{name:"insertParent",obj:o})}),"insertParent"),addChild:me((function(e,t){const n=e||this.currentNode;if(!n)return;const{newTop:i,newNodeObj:o}=E.call(this,n,t);this.bus.fire("operation",{name:"addChild",obj:o}),t||this.createInputDiv(i.children[0]),this.selectNode(i.children[0],!0)}),"addChild"),copyNode:me((function(e,t){const n=u(e.nodeObj);s(n);const{newNodeObj:i}=E.call(this,t,n);this.bus.fire("operation",{name:"copyNode",obj:i})}),"copyNode"),moveNode:me((function(e,t){const n=e.nodeObj,i=t.nodeObj,o=n.parent.id;if(!1===i.expanded&&(this.expandNode(t,!0),e=g(n.id),t=g(i.id)),!function(e,t){let n=!0;for(;t.parent;){if(t.parent===e){n=!1;break}t=t.parent}return n}(n,i))return;!function(e,t){m(e),t.children?t.children.push(e):t.children=[e]}(n,i),a(this.nodeData);const r=e.parentElement,s=r.parentElement.parentElement,l=t.parentElement;if("box"===s.className?r.parentElement.lastChild.remove():"box"===r.parentElement.className&&(r.style.cssText=""),"ME-PARENT"===l.tagName)if("box"===s.className&&(r.parentElement.className=""),l.children[1])l.nextSibling.appendChild(r.parentElement);else{const e=this.createChildren([r.parentElement]);l.appendChild(x(!0)),l.parentElement.insertBefore(e,l.nextSibling)}else"ME-ROOT"===l.tagName&&(this.judgeDirection(r.parentElement,n),l.nextSibling.appendChild(r.parentElement));this.linkDiv(),this.bus.fire("operation",{name:"moveNode",obj:{fromObj:n,toObj:i,originParentId:o}})}),"moveNode"),removeNode:me((function(e){const t=e||this.currentNode;if(!t)return;const n=t.nodeObj;if(!0===n.root)throw new Error("Can not remove root node");const i=n.parent.children.findIndex((e=>e===n)),o=n.parent.children[i+1],r=o&&o.id,a=m(n),s=t.parentNode;if(0===a){const e=s.parentNode.parentNode.previousSibling;"ME-ROOT"!==e.tagName&&e.children[1].remove(),this.selectParent()}else this.selectPrevSibling()||this.selectNextSibling()||this.selectParent();for(const e in this.linkData){const t=this.linkData[e];t.from!==s.firstChild&&t.to!==s.firstChild||this.removeLink(this.mindElixirBox.querySelector(`[data-linkid=${this.linkData[e].id}]`))}s.parentNode.remove(),this.linkDiv(),this.bus.fire("operation",{name:"removeNode",obj:n,originSiblingId:r,originParentId:n.parent.id})}),"removeNode"),moveUpNode:me((function(e){const t=e||this.currentNode;if(!t)return;const n=t.parentNode.parentNode,i=t.nodeObj;!function(e){const t=e.parent.children,n=t.indexOf(e),i=t[n];0===n?(t[n]=t[t.length-1],t[t.length-1]=i):(t[n]=t[n-1],t[n-1]=i)}(i),n.parentNode.insertBefore(n,n.previousSibling),this.linkDiv(),this.bus.fire("operation",{name:"moveUpNode",obj:i})}),"moveUpNode"),moveDownNode:me((function(e){const t=e||this.currentNode;if(!t)return;const n=t.parentNode.parentNode,i=t.nodeObj;!function(e){const t=e.parent.children,n=t.indexOf(e),i=t[n];n===t.length-1?(t[n]=t[0],t[0]=i):(t[n]=t[n+1],t[n+1]=i)}(i),n.nextSibling?n.insertAdjacentElement("afterend",n.nextSibling):n.parentNode.prepend(n),this.linkDiv(),this.bus.fire("operation",{name:"moveDownNode",obj:i})}),"moveDownNode"),beginEdit:me((function(e){const t=e||this.currentNode;t&&this.createInputDiv(t)}),"beginEdit"),moveNodeBefore:me((function(e,t){const n=e.nodeObj,i=t.nodeObj,o=n.parent.id;!function(e,t){m(e);const n=t.parent.children;let i=0;for(let e=0;e<n.length;e++)if(n[e]===t){i=e;break}n.splice(i,0,e)}(n,i),a(this.nodeData);const r=e.parentElement.parentNode,s=t.parentElement,l=s.parentNode;s.parentNode.parentNode.insertBefore(r,l),l.className&&(r.className=l.className),this.linkDiv(),this.bus.fire("operation",{name:"moveNodeBefore",obj:{fromObj:n,toObj:i,originParentId:o}})}),"moveNodeBefore"),moveNodeAfter:me((function(e,t){const n=e.nodeObj,i=t.nodeObj,o=n.parent.id;!function(e,t){m(e);const n=t.parent.children;let i=0;for(let e=0;e<n.length;e++)if(n[e]===t){i=e;break}n.splice(i+1,0,e)}(n,i),a(this.nodeData);const r=e.parentElement.parentElement,s=t.parentElement.parentElement;s.parentNode.insertBefore(r,s.nextSibling),s.className&&(r.className=s.className),this.linkDiv(),this.bus.fire("operation",{name:"moveNodeAfter",obj:{fromObj:n,toObj:i,originParentId:o}})}),"moveNodeAfter"),reshapeNode:function(e,t){const n=e.nodeObj,i=u(n);i.style&&t.style&&(t.style=Object.assign(i.style,t.style));const o=Object.assign(n,t);b(e,o),this.linkDiv(),this.bus.fire("operation",{name:"reshapeNode",obj:o,origin:i})},judgeDirection:function(e,t){if(0===this.direction)e.className="lhs";else if(1===this.direction)e.className="rhs";else if(2===this.direction){N.querySelectorAll(".lhs").length<=N.querySelectorAll(".rhs").length?(e.className="lhs",t.direction=0):(e.className="rhs",t.direction=1)}},setNodeTopic:function(e,t){e.childNodes[0].textContent=t,e.nodeObj.topic=t,this.linkDiv()},createLink:function(e,t,n,i){const o=this.map.getBoundingClientRect();if(!e||!t)return;const r=e.getBoundingClientRect(),a=t.getBoundingClientRect(),s=(r.x+r.width/2-o.x)/this.scaleVal,l=(r.y+r.height/2-o.y)/this.scaleVal,m=(a.x+a.width/2-o.x)/this.scaleVal,u=(a.y+a.height/2-o.y)/this.scaleVal;let f,g,b,x;n?(f=s+i.delta1.x,g=l+i.delta1.y,b=m+i.delta2.x,x=u+i.delta2.y):(l+u)/2-l<=r.height/2?(f=(r.x+r.width-o.x)/this.scaleVal+100,g=l,b=(a.x+a.width-o.x)/this.scaleVal+100,x=u):(f=(s+m)/2,g=(l+u)/2,b=(s+m)/2,x=(l+u)/2);const N={cx:s,cy:l,w:r.width,h:r.height},M={cx:m,cy:u,w:a.width,h:a.height},C=d(N,f,g),k=C.x,w=C.y,z=h(M,b,x),E=z.x,j=z.y,L=c(b,x,E,j),D=function(e,t){const n=y.createElementNS(v,"g"),i=y.createElementNS(v,"path"),o=y.createElementNS(v,"path");return o.setAttribute("d",t),o.setAttribute("stroke","rgb(235, 95, 82)"),o.setAttribute("fill","none"),o.setAttribute("stroke-linecap","cap"),o.setAttribute("stroke-width","2"),i.setAttribute("d",e),i.setAttribute("stroke","rgb(235, 95, 82)"),i.setAttribute("fill","none"),i.setAttribute("stroke-linecap","cap"),i.setAttribute("stroke-width","2"),n.appendChild(i),n.appendChild(o),n}(`M ${k} ${w} C ${f} ${g} ${b} ${x} ${E} ${j}`,`M ${L.x1} ${L.y1} L ${E} ${j} L ${L.x2} ${L.y2}`);let T;n?(T={id:i.id,label:"",from:e,to:t,delta1:{x:f-s,y:g-l},delta2:{x:b-m,y:x-u}},this.linkData[i.id]=T,D.linkObj=T,D.dataset.linkid=i.id):(T={id:p(),label:"",from:e,to:t,delta1:{x:f-s,y:g-l},delta2:{x:b-m,y:x-u}},this.linkData[T.id]=T,D.linkObj=T,D.dataset.linkid=T.id,this.currentLink=D),this.linkSvgGroup.appendChild(D),n||this.showLinkController(f,g,b,x,T,N,M)},removeLink:function(e){let t;if(t=e||this.currentLink,!t)return;this.hideLinkController();const n=t.linkObj.id;delete this.linkData[n],t.remove(),t=null},selectLink:function(e){this.currentLink=e;const t=e.linkObj,n=t.from,i=t.to,o=this.map.getBoundingClientRect(),r=n.getBoundingClientRect(),a=i.getBoundingClientRect(),s=(r.x+r.width/2-o.x)/this.scaleVal,l=(r.y+r.height/2-o.y)/this.scaleVal,c=(a.x+a.width/2-o.x)/this.scaleVal,d=(a.y+a.height/2-o.y)/this.scaleVal,h={cx:s,cy:l,w:r.width,h:r.height},p={cx:c,cy:d,w:a.width,h:a.height},m=s+t.delta1.x,u=l+t.delta1.y,f=c+t.delta2.x,g=d+t.delta2.y;this.showLinkController(m,u,f,g,t,h,p)},hideLinkController:function(){this.linkController.style.display="none",this.P2.style.display="none",this.P3.style.display="none"},showLinkController:function(e,t,n,i,o,r,a){this.linkController.style.display="initial",this.P2.style.display="initial",this.P3.style.display="initial";const s=d(r,e,t);let l=s.x,p=s.y;const m=h(a,n,i);let u=m.x,f=m.y;this.P2.style.cssText=`top:${t}px;left:${e}px;`,this.P3.style.cssText=`top:${i}px;left:${n}px;`,this.line1.setAttribute("x1",l),this.line1.setAttribute("y1",p),this.line1.setAttribute("x2",e),this.line1.setAttribute("y2",t),this.line2.setAttribute("x1",n),this.line2.setAttribute("y1",i),this.line2.setAttribute("x2",u),this.line2.setAttribute("y2",f),this.helper1&&(this.helper1.destory(this.map),this.helper2.destory(this.map)),this.helper1=new j(this.P2),this.helper2=new j(this.P3),this.helper1.init(this.map,((a,s)=>{e-=a/this.scaleVal,t-=s/this.scaleVal;const c=d(r,e,t);l=c.x,p=c.y,this.P2.style.top=t+"px",this.P2.style.left=e+"px",this.currentLink.children[0].setAttribute("d",`M ${l} ${p} C ${e} ${t} ${n} ${i} ${u} ${f}`),this.line1.setAttribute("x1",l),this.line1.setAttribute("y1",p),this.line1.setAttribute("x2",e),this.line1.setAttribute("y2",t),o.delta1.x=e-r.cx,o.delta1.y=t-r.cy})),this.helper2.init(this.map,((r,s)=>{n-=r/this.scaleVal,i-=s/this.scaleVal;const d=h(a,n,i);u=d.x,f=d.y;const m=c(n,i,u,f);this.P3.style.top=i+"px",this.P3.style.left=n+"px",this.currentLink.children[0].setAttribute("d",`M ${l} ${p} C ${e} ${t} ${n} ${i} ${u} ${f}`),this.currentLink.children[1].setAttribute("d",`M ${m.x1} ${m.y1} L ${u} ${f} L ${m.x2} ${m.y2}`),this.line2.setAttribute("x1",n),this.line2.setAttribute("y1",i),this.line2.setAttribute("x2",u),this.line2.setAttribute("y2",f),o.delta2.x=n-a.cx,o.delta2.y=i-a.cy}))},layout:function(){this.root.innerHTML="",this.box.innerHTML="";const e=this.createTopic(this.nodeData);b(e,this.nodeData),e.draggable=!1,this.root.appendChild(e);const t=this.nodeData.children;if(t&&0!==t.length){if(2===this.direction){let e=0,n=0;t.map((t=>{0===t.direction?e+=1:1===t.direction?n+=1:e<=n?(t.direction=0,e+=1):(t.direction=1,n+=1)}))}this.layoutChildren(this.nodeData.children,this.box,this.direction)}},linkDiv:function(t){const n=this.mainNodeHorizontalGap||65,i=this.mainNodeVerticalGap||25,o=this.root;o.style.cssText=`top:${1e4-o.offsetHeight/2}px;left:${1e4-o.offsetWidth/2}px;`;const r=this.box.children;this.lines.innerHTML="";let a,s,l=0,c=0,d=0,h=0,p=0,m=0;if(2===this.direction){let e=0,t=0,n=0,o=0;for(let a=0;a<r.length;a++){const s=r[a];"lhs"===s.className?(p+=s.offsetHeight+i,n+=s.offsetHeight,e+=1):(m+=s.offsetHeight+i,o+=s.offsetHeight,t+=1)}p>m?(s=1e4-Math.max(p)/2,a="r",c=(p-o)/(t-1)):(s=1e4-Math.max(m)/2,a="l",c=(m-n)/(e-1))}else{for(let e=0;e<r.length;e++){l+=r[e].offsetHeight+i}s=1e4-l/2}const u=1e4-o.offsetWidth/2-n,f=1e4+o.offsetWidth/2+n;for(let n=0;n<r.length;n++){let l=1e4;const p=1e4;let m,g;const b=r[n],x=this.theme.palette,N=b.querySelector("me-tpc").nodeObj.branchColor||x[n%x.length],y=b.offsetHeight;"lhs"===b.className?(b.style.top=s+d+"px",b.style.left=u-b.offsetWidth+"px",m=u-e,g=s+d+y/2,d+="l"===a?y+c:y+i):(b.style.top=s+h+"px",b.style.left=f+"px",m=f+e,g=s+h+y/2,h+="r"===a?y+c:y+i);let v="";if(2===this.mainLinkStyle)2===this.direction&&(l="lhs"===b.className?1e4-o.offsetWidth/6:1e4+o.offsetWidth/6),v=D({x1:l,y1:p,x2:m,y2:g});else{const e=Math.abs(g-1e4)/(1e4-s);l="lhs"===b.className?1e4-o.offsetWidth/10-.25*(1-e)*(o.offsetWidth/2):1e4+o.offsetWidth/10+.25*(1-e)*(o.offsetWidth/2),v=T({x1:l,y1:p,x2:m,y2:g})}this.lines.appendChild(M(v,N));const k=b.children[0].children[1];if(k&&(k.style.top=(k.parentNode.offsetHeight-k.offsetHeight)/2+"px","lhs"===b.className?k.style.left="-40px":k.style.right="-40px"),(!t||t===r[n])&&b.childElementCount){const e=C("subLines");"svg"===b.lastChild.tagName&&b.lastChild.remove(),b.appendChild(e);const t=b.children[0],n=L(b.children[1].children,t,!0);e.appendChild(w(n,N))}}this.linkSvgGroup.innerHTML="";for(const e in this.linkData){const t=this.linkData[e];"string"==typeof t.from?this.createLink(g(t.from),g(t.to),!0,t):this.createLink(g(t.from.nodeObj.id),g(t.to.nodeObj.id),!0,t)}},createInputDiv:function(e){if(!e)return;let t=f.createElement("div");const n=e.childNodes[0].textContent;e.appendChild(t),t.id="input-box",t.textContent=n,t.contentEditable="true",t.spellcheck=!1,t.style.cssText=`min-width:${e.offsetWidth-8}px;`,0===this.direction&&(t.style.right="0"),t.focus(),function(e){const t=f.createRange();t.selectNodeContents(e);const n=window.getSelection();n&&(n.removeAllRanges(),n.addRange(t))}(t),this.inputDiv=t,this.bus.fire("operation",{name:"beginEdit",obj:e.nodeObj}),t.addEventListener("keydown",(e=>{e.stopPropagation();const t=e.key;if("Enter"===t||"Tab"===t){if(e.shiftKey)return;e.preventDefault(),this.inputDiv.blur(),this.map.focus()}})),t.addEventListener("blur",(()=>{if(!t)return;const i=e.nodeObj,o=t.textContent.trim();i.topic=""===o?n:o,t.remove(),this.inputDiv=t=null,o!==n&&(e.childNodes[0].textContent=i.topic,this.linkDiv(),this.bus.fire("operation",{name:"finishEdit",obj:i,origin:n}))}))},layoutChildren:function(e,t,n){let i;i=t||N.createElement("me-children");for(let t=0;t<e.length;t++){const o=e[t],r=N.createElement("me-wrapper");0===n?r.className="lhs":1===n?r.className="rhs":2===n&&(0===o.direction?r.className="lhs":1===o.direction&&(r.className="rhs"));const a=this.createParent(o);if(o.children&&o.children.length>0){if(a.appendChild(x(o.expanded)),r.appendChild(a),!1!==o.expanded){const e=this.layoutChildren(o.children);r.appendChild(e)}}else r.appendChild(a);i.appendChild(r)}return i},createWrapper:function(e,t){const n=f.createElement("me-wrapper"),i=this.createParent(e);if(n.appendChild(i),!t&&e.children&&e.children.length>0&&(i.appendChild(x(e.expanded)),!1!==e.expanded)){const t=this.layoutChildren(e.children);n.appendChild(t)}return{grp:n,top:i}},createParent:function(e){const t=f.createElement("me-parent"),n=this.createTopic(e);return b(n,e),t.appendChild(n),t},createChildren:function(e){const t=f.createElement("me-children");return t.append(...e),t},createTopic:function(e){const t=f.createElement("me-tpc");return t.nodeObj=e,t.dataset.nodeid="me"+e.id,t.draggable=this.draggable,t},selectNode:function(e,t){if(e){if("string"==typeof e)return this.selectNode(g(e));this.currentNode&&(this.currentNode.className=""),e.className="selected",e.scrollIntoView({block:"nearest",inline:"nearest"}),this.currentNode=e,t?this.bus.fire("selectNewNode",e.nodeObj):this.bus.fire("selectNode",e.nodeObj)}},unselectNode:function(){this.currentNode&&(this.currentNode.className=""),this.currentNode=null,this.bus.fire("unselectNode")},selectNextSibling:function(){if(!this.currentNode||"meroot"===this.currentNode.dataset.nodeid)return;const e=this.currentNode.parentElement.parentElement.nextSibling;let t;const n=this.currentNode.parentElement.parentElement;if("rhs"===n.className||"lhs"===n.className){const e=this.mindElixirBox.querySelectorAll("."+n.className),i=Array.from(e).indexOf(n);if(!(i+1<e.length))return!1;t=e[i+1].firstChild.firstChild}else{if(!e)return!1;t=e.firstChild.firstChild}return this.selectNode(t),!0},selectPrevSibling:function(){if(!this.currentNode||"meroot"===this.currentNode.dataset.nodeid)return;const e=this.currentNode.parentElement.parentElement.previousSibling;let t;const n=this.currentNode.parentElement.parentElement;if("rhs"===n.className||"lhs"===n.className){const e=this.mindElixirBox.querySelectorAll("."+n.className),i=Array.from(e).indexOf(n);if(!(i-1>=0))return!1;t=e[i-1].firstChild.firstChild}else{if(!e)return!1;t=e.firstChild.firstChild}return this.selectNode(t),!0},selectFirstChild:function(){if(!this.currentNode)return;const e=this.currentNode.parentElement.nextSibling;if(e&&e.firstChild){const t=e.firstChild.firstChild.firstChild;this.selectNode(t)}},selectParent:function(){if(!this.currentNode||"meroot"===this.currentNode.dataset.nodeid)return;const e=this.currentNode.parentElement.parentElement.parentElement.previousSibling;if(e){const t=e.firstChild;this.selectNode(t)}},getDataString:function(){const e=z(this);return JSON.stringify(e,((e,t)=>{if("parent"!==e)return"from"===e||"to"===e?t.nodeObj.id:t}))},getData:function(){return JSON.parse(this.getDataString())},getDataMd:function(){const e=z(this).nodeData;let t="# "+e.topic+"\n\n";return function e(n,i){for(let o=0;o<n.length;o++)t+=i<=6?"".padStart(i,"#")+" "+n[o].topic+"\n\n":"".padStart(i-7,"\t")+"- "+n[o].topic+"\n",n[o].children&&e(n[o].children,i+1)}(e.children,2),t},scale:function(e){this.scaleVal=e,this.map.style.transform="scale("+e+")"},toCenter:function(){this.container.scrollTo(1e4-this.container.offsetWidth/2,1e4-this.container.offsetHeight/2)},focusNode:function(e){e.nodeObj.root||(null===this.tempDirection&&(this.tempDirection=this.direction),this.isFocusMode||(this.nodeDataBackup=this.nodeData,this.isFocusMode=!0),this.nodeData=e.nodeObj,this.nodeData.root=!0,this.initRight(),this.toCenter())},cancelFocus:function(){this.isFocusMode=!1,null!==this.tempDirection&&(delete this.nodeData.root,this.nodeData=this.nodeDataBackup,this.direction=this.tempDirection,this.tempDirection=null,this.refresh(),this.toCenter())},initLeft:function(){this.direction=0,this.refresh()},initRight:function(){this.direction=1,this.refresh()},initSide:function(){this.direction=2,this.refresh()},setLocale:function(e){this.locale=e,this.refresh()},enableEdit:function(){this.editable=!0},disableEdit:function(){this.editable=!1},expandNode:function(e,t){const n=e.nodeObj;"boolean"==typeof t?n.expanded=t:!1!==n.expanded?n.expanded=!1:n.expanded=!0,this.layout(),this.linkDiv(),this.bus.fire("expandNode",n)},refresh:function(e){e&&(this.nodeData=e.nodeData,this.linkData=e.linkData||{}),this.addParentLink(this.nodeData),this.layout(),this.linkDiv()},findEle:g,install(e){e(this)},init(e){if(!e||!e.nodeData)return new Error("MindElixir: `data` is required");e.direction&&(this.direction=e.direction),e.theme&&(this.theme=e.theme),this.nodeData=e.nodeData,this.linkData=e.linkData||{},this.toolBar&&ee(this),this.keypress&&function(e){const t={13:()=>{e.insertSibling()},9:()=>{e.addChild()},113:()=>{e.beginEdit()},38:()=>{e.selectPrevSibling()},40:()=>{e.selectNextSibling()},37:()=>{e.currentNode&&("rhs"===e.currentNode.offsetParent.offsetParent.className?e.selectParent():("lhs"===e.currentNode.offsetParent.offsetParent.className||e.currentNode.nodeObj.root)&&e.selectFirstChild())},39:()=>{e.currentNode&&("rhs"===e.currentNode.offsetParent.offsetParent.className||e.currentNode.nodeObj.root?e.selectFirstChild():"lhs"===e.currentNode.offsetParent.offsetParent.className&&e.selectParent())},33(){e.moveUpNode()},34(){e.moveDownNode()},67(t){(t.metaKey||t.ctrlKey)&&(e.waitCopy=e.currentNode)},86(t){e.waitCopy&&(t.metaKey||t.ctrlKey)&&(e.copyNode(e.waitCopy,e.currentNode),e.waitCopy=null)},90:t=>{e.allowUndo&&(t.metaKey||t.ctrlKey)&&e.undo()},187:t=>{if(t.metaKey||t.ctrlKey){if(e.scaleVal>1.6)return;e.scale(e.scaleVal+=.2)}},189:t=>{if(t.metaKey||t.ctrlKey){if(e.scaleVal<.6)return;e.scale(e.scaleVal-=.2)}}};e.map.onkeydown=n=>{n.preventDefault(),e.editable&&n.target===n.currentTarget&&(8===n.keyCode||46===n.keyCode?e.currentLink?e.removeLink():e.removeNode():t[n.keyCode]&&t[n.keyCode](n))}}(this),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&this.mobileMenu?function(e,t){const n=(e,t)=>{const n=document.createElement("div");return n.id=e,n.innerHTML=`<svg class="icon" aria-hidden="true">\n <use xlink:href="#icon-${t}"></use>\n </svg>`,n},i=n("cm-add_child","zijiedian"),o=n("cm-add_sibling","tongjijiedian-"),r=n("cm-remove_child","shanchu2"),a=n("cm-up","rising"),s=n("cm-down","falling"),l=n("cm-edit","edit"),c=document.createElement("ul");if(c.className="menu-list",t&&t.extend)for(let e=0;e<t.extend.length;e++){const i=t.extend[e],o=n(i.name,i.name);c.appendChild(o),o.onclick=e=>{i.onclick(e)}}const d=document.createElement("mmenu");d.className="mobile-menu",d.appendChild(i),d.appendChild(o),d.appendChild(r),d.appendChild(a),d.appendChild(s),d.appendChild(l),d.hidden=!0,e.container.append(d);let h=!0;e.bus.addListener("unselectNode",(function(){d.hidden=!0})),e.bus.addListener("selectNode",(function(e){d.hidden=!1,h=!!e.root})),d.onclick=e=>{e.target===d&&(d.hidden=!0)},i.onclick=t=>{e.addChild()},o.onclick=t=>{h||e.insertSibling()},r.onclick=t=>{h||e.removeNode()},a.onclick=t=>{h||e.moveUpNode()},s.onclick=t=>{h||e.moveDownNode()},l.onclick=t=>{e.beginEdit()}}(this):this.contextMenu&&q(this,this.contextMenuOption),this.draggable&&oe(this);const t=this.theme.cssVar,n=Object.keys(t);for(let e=0;e<n.length;e++){const i=n[e];this.mindElixirBox.style.setProperty(i,t[i])}a(this.nodeData),this.toCenter(),this.layout(),this.linkDiv()}},pe.LEFT=0,pe.RIGHT=1,pe.SIDE=2,pe.version="2.0.0",pe.E=g,pe.new=e=>({nodeData:{id:p(),topic:e||"new topic",root:!0,children:[]},linkData:{}});const ue=pe})(),i=i.default})()));
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.MindElixirLite=t():e.MindElixirLite=t()}(self,(function(){return(()=>{var e={74:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var i=n(81),o=n.n(i),a=n(645),r=n.n(a),s=n(667),l=n.n(s),c=new URL(n(848),n.b),d=new URL(n(295),n.b),h=r()(o()),p=l()(c),u=l()(d);h.push([e.id,".mind-elixir {\n position: relative;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;\n}\n.mind-elixir .hyper-link {\n text-decoration: none;\n}\n.map-container {\n user-select: none;\n height: 100%;\n width: 100%;\n overflow: scroll;\n font-size: 15px;\n}\n.map-container::-webkit-scrollbar {\n width: 0px;\n height: 0px;\n}\n.map-container .focus-mode {\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n background: #fff;\n}\n.map-container .map-canvas {\n height: 20000px;\n width: 20000px;\n position: relative;\n user-select: none;\n transition: all 0.3s;\n transform: scale(1);\n background: #f6f6f6;\n}\n.map-container .map-canvas .selected {\n outline: 2px solid #4dc4ff;\n}\n.map-container .map-canvas root {\n position: absolute;\n}\n.map-container .map-canvas root tpc {\n display: block;\n color: #ffffff;\n padding: 10px 15px;\n background-color: #00aaff;\n border-radius: 5px;\n font-size: 25px;\n white-space: pre-wrap;\n}\n.map-container .map-canvas root tpc #input-box {\n padding: 10px 15px;\n}\n.map-container .box > grp {\n position: absolute;\n}\n.map-container .box > grp > t > tpc {\n background-color: #ffffff;\n border: 1px solid #444444;\n border-radius: 5px;\n color: #735c45;\n padding: 8px 10px;\n margin: 0;\n}\n.map-container .box > grp > t > tpc #input-box {\n padding: 8px 10px;\n}\n.map-container .box .lhs {\n direction: rtl;\n}\n.map-container .box .lhs tpc {\n direction: ltr;\n}\n.map-container .box grp {\n display: block;\n pointer-events: none;\n}\n.map-container .box children,\n.map-container .box t {\n display: inline-block;\n vertical-align: middle;\n}\n.map-container .box t {\n position: relative;\n cursor: pointer;\n padding: 0 15px;\n margin-top: 10px;\n}\n.map-container .box t tpc {\n position: relative;\n display: block;\n padding: 5px;\n border-radius: 3px;\n color: #666666;\n pointer-events: all;\n max-width: 800px;\n white-space: pre-wrap;\n line-height: 1.2;\n}\n.map-container .box t tpc #input-box {\n padding: 5px;\n}\n.map-container .box t tpc .tags {\n direction: ltr;\n}\n.map-container .box t tpc .tags span {\n display: inline-block;\n border-radius: 3px;\n padding: 2px 4px;\n background: #d6f0f8;\n color: #276f86;\n margin: 0px;\n font-size: 12px;\n height: 16px;\n line-height: 16px;\n margin-right: 3px;\n margin-top: 2px;\n}\n.map-container .box t tpc .icons {\n display: inline-block;\n direction: ltr;\n margin-right: 10px;\n}\n.map-container .box t tpc .insert-preview {\n position: absolute;\n width: 100%;\n left: 0px;\n z-index: 9;\n}\n.map-container .box t tpc .before {\n height: 14px;\n top: -14px;\n}\n.map-container .box t tpc .show {\n background: #7ad5ff;\n pointer-events: none;\n opacity: 0.7;\n}\n.map-container .box t tpc .in {\n height: 100%;\n top: 0px;\n}\n.map-container .box t tpc .after {\n height: 14px;\n bottom: -14px;\n}\n.map-container .box t epd {\n position: absolute;\n height: 18px;\n width: 18px;\n background-image: url("+p+");\n background-repeat: no-repeat;\n background-size: contain;\n background-position: center;\n pointer-events: all;\n z-index: 9;\n}\n.map-container .box t epd.minus {\n background-image: url("+u+") !important;\n transition: all 0.3s;\n opacity: 0;\n}\n.map-container .box t epd.minus:hover {\n opacity: 1;\n}\n.map-container .icon {\n width: 1em;\n height: 1em;\n vertical-align: -0.15em;\n fill: currentColor;\n overflow: hidden;\n}\n.map-container .lines,\n.map-container .subLines,\n.map-container .topiclinks,\n.map-container .linkcontroller {\n position: absolute;\n height: 102%;\n width: 100%;\n top: 0;\n left: 0;\n}\n.map-container .topiclinks,\n.map-container .linkcontroller {\n pointer-events: none;\n}\n.map-container .topiclinks g,\n.map-container .linkcontroller g {\n pointer-events: all;\n}\n.map-container .lines,\n.map-container .subLines {\n pointer-events: none;\n z-index: -1;\n}\n.map-container .topiclinks *,\n.map-container .linkcontroller * {\n z-index: 100;\n}\n.map-container .topiclinks g {\n cursor: pointer;\n}\ntpc > img {\n pointer-events: none;\n display: block;\n}\n.down t,\n.down children {\n display: block !important;\n}\n.down grp {\n display: inline-block !important;\n}\n.circle {\n position: absolute;\n height: 10px;\n width: 10px;\n margin-top: -5px;\n margin-left: -5px;\n border-radius: 100%;\n background: #aaa;\n cursor: pointer;\n}\n#input-box {\n position: absolute;\n top: 0;\n left: 0;\n background-color: #fff;\n color: #666666;\n width: max-content;\n max-width: 800px;\n z-index: 11;\n direction: ltr;\n user-select: auto;\n}\n",""]);const m=h},165:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(81),o=n.n(i),a=n(645),r=n.n(a)()(o());r.push([e.id,".mind-elixir .context-menu {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 99;\n}\n.mind-elixir .context-menu .menu-list {\n position: fixed;\n list-style: none;\n margin: 0;\n padding: 0;\n font: 300 15px 'Roboto', sans-serif;\n color: #333;\n box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.2);\n}\n.mind-elixir .context-menu .menu-list * {\n transition: color 0.4s, background-color 0.4s;\n}\n.mind-elixir .context-menu .menu-list li {\n min-width: 150px;\n overflow: hidden;\n white-space: nowrap;\n padding: 6px 10px;\n background-color: #fff;\n border-bottom: 1px solid #ecf0f1;\n}\n.mind-elixir .context-menu .menu-list li a {\n color: #333;\n text-decoration: none;\n}\n.mind-elixir .context-menu .menu-list li.disabled {\n color: #5e5e5e;\n background-color: #f7f7f7;\n}\n.mind-elixir .context-menu .menu-list li.disabled:hover {\n cursor: default;\n background-color: #f7f7f7;\n}\n.mind-elixir .context-menu .menu-list li:hover {\n cursor: pointer;\n background-color: #ecf0f1;\n}\n.mind-elixir .context-menu .menu-list li:first-child {\n border-radius: 5px 5px 0 0;\n}\n.mind-elixir .context-menu .menu-list li:last-child {\n border-bottom: 0;\n border-radius: 0 0 5px 5px;\n}\n.mind-elixir .context-menu .menu-list li span:last-child {\n float: right;\n}\n",""]);const s=r},787:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(81),o=n.n(i),a=n(645),r=n.n(a)()(o());r.push([e.id,".mind-elixir .mobile-menu {\n position: absolute;\n left: 20px;\n bottom: 70px;\n z-index: 99;\n margin: 0;\n padding: 0;\n color: #333;\n border-radius: 5px;\n box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.2);\n overflow: hidden;\n}\n.mind-elixir .mobile-menu * {\n transition: color 0.4s, background-color 0.4s;\n}\n.mind-elixir .mobile-menu div {\n float: left;\n text-align: center;\n width: 30px;\n overflow: hidden;\n white-space: nowrap;\n padding: 8px;\n background-color: #fff;\n border-bottom: 1px solid #ecf0f1;\n}\n.mind-elixir .mobile-menu div a {\n color: #333;\n text-decoration: none;\n}\n.mind-elixir .mobile-menu div.disabled {\n color: #5e5e5e;\n background-color: #f7f7f7;\n}\n.mind-elixir .mobile-menu div.disabled:hover {\n cursor: default;\n background-color: #f7f7f7;\n}\n.mind-elixir .mobile-menu div:hover {\n cursor: pointer;\n background-color: #ecf0f1;\n}\n",""]);const s=r},301:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(81),o=n.n(i),a=n(645),r=n.n(a)()(o());r.push([e.id,".mind-elixir-toolbar {\n position: absolute;\n background: #fff;\n padding: 10px;\n border-radius: 5px;\n box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2);\n}\n.mind-elixir-toolbar span:active {\n opacity: 0.5;\n}\n.mind-elixir-toolbar.rb {\n right: 20px;\n bottom: 20px;\n font-family: iconfont;\n}\n.mind-elixir-toolbar.rb span + span {\n margin-left: 10px;\n}\n.mind-elixir-toolbar.lt {\n font-size: 20px;\n left: 20px;\n top: 20px;\n width: 20px;\n}\n.mind-elixir-toolbar.lt span {\n display: block;\n}\n.mind-elixir-toolbar.lt span + span {\n margin-top: 10px;\n}\n",""]);const s=r},645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",i=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),i&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),i&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,i,o,a){"string"==typeof e&&(e=[[null,e,void 0]]);var r={};if(i)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(r[l]=!0)}for(var c=0;c<e.length;c++){var d=[].concat(e[c]);i&&r[d[0]]||(void 0!==a&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=a),n&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=n):d[2]=n),o&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=o):d[4]="".concat(o)),t.push(d))}},t}},667:e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},81:e=>{"use strict";e.exports=function(e){return e[1]}},379:e=>{"use strict";var t=[];function n(e){for(var n=-1,i=0;i<t.length;i++)if(t[i].identifier===e){n=i;break}return n}function i(e,i){for(var a={},r=[],s=0;s<e.length;s++){var l=e[s],c=i.base?l[0]+i.base:l[0],d=a[c]||0,h="".concat(c," ").concat(d);a[c]=d+1;var p=n(h),u={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==p)t[p].references++,t[p].updater(u);else{var m=o(u,i);i.byIndex=s,t.splice(s,0,{identifier:h,updater:m,references:1})}r.push(h)}return r}function o(e,t){var n=t.domAPI(t);n.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var a=i(e=e||[],o=o||{});return function(e){e=e||[];for(var r=0;r<a.length;r++){var s=n(a[r]);t[s].references--}for(var l=i(e,o),c=0;c<a.length;c++){var d=n(a[c]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}a=l}}},569:e=>{"use strict";var t={};e.exports=function(e,n){var i=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}},216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},565:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var i="";n.supports&&(i+="@supports (".concat(n.supports,") {")),n.media&&(i+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(i+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),i+=n.css,o&&(i+="}"),n.media&&(i+="}"),n.supports&&(i+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(i,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},857:()=>{!function(e){var t,n,i,o,a,r,s='<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="#333333" ></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="#333333" ></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="#666666" ></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="#666666" ></path></symbol></svg>',l=(l=document.getElementsByTagName("script"))[l.length-1].getAttribute("data-injectcss");if(l&&!e.__iconfont__svg__cssinject__){e.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(e){console}}function c(){a||(a=!0,i())}t=function(){var e,t,n,i;(i=document.createElement("div")).innerHTML=s,s=null,(n=i.getElementsByTagName("svg")[0])&&(n.setAttribute("aria-hidden","true"),n.style.position="absolute",n.style.width=0,n.style.height=0,n.style.overflow="hidden",e=n,(t=document.body).firstChild?(i=e,(n=t.firstChild).parentNode.insertBefore(i,n)):t.appendChild(e))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(t,0):(n=function(){document.removeEventListener("DOMContentLoaded",n,!1),t()},document.addEventListener("DOMContentLoaded",n,!1)):document.attachEvent&&(i=t,o=e.document,a=!1,(r=function(){try{o.documentElement.doScroll("left")}catch(e){return void setTimeout(r,50)}c()})(),o.onreadystatechange=function(){"complete"==o.readyState&&(o.onreadystatechange=null,c())})}(window)},848:e=>{"use strict";e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgdD0iMTY1NjY1NDcxNzI0MiIgY2xhc3M9Imljb24iIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHZlcnNpb249IjEuMSIKICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+CiAgICA8cGF0aCBkPSJNNTEyIDc0LjY2NjY2N0MyNzAuOTMzMzMzIDc0LjY2NjY2NyA3NC42NjY2NjcgMjcwLjkzMzMzMyA3NC42NjY2NjcgNTEyUzI3MC45MzMzMzMgOTQ5LjMzMzMzMyA1MTIgOTQ5LjMzMzMzMyA5NDkuMzMzMzMzIDc1My4wNjY2NjcgOTQ5LjMzMzMzMyA1MTIgNzUzLjA2NjY2NyA3NC42NjY2NjcgNTEyIDc0LjY2NjY2N3oiIHN0cm9rZS13aWR0aD0iNTQiIHN0cm9rZT0nYmxhY2snIGZpbGw9J3doaXRlJyA+PC9wYXRoPgogICAgPHBhdGggZD0iTTY4Mi42NjY2NjcgNDgwaC0xMzguNjY2NjY3VjM0MS4zMzMzMzNjMC0xNy4wNjY2NjctMTQuOTMzMzMzLTMyLTMyLTMycy0zMiAxNC45MzMzMzMtMzIgMzJ2MTM4LjY2NjY2N0gzNDEuMzMzMzMzYy0xNy4wNjY2NjcgMC0zMiAxNC45MzMzMzMtMzIgMzJzMTQuOTMzMzMzIDMyIDMyIDMyaDEzOC42NjY2NjdWNjgyLjY2NjY2N2MwIDE3LjA2NjY2NyAxNC45MzMzMzMgMzIgMzIgMzJzMzItMTQuOTMzMzMzIDMyLTMydi0xMzguNjY2NjY3SDY4Mi42NjY2NjdjMTcuMDY2NjY3IDAgMzItMTQuOTMzMzMzIDMyLTMycy0xNC45MzMzMzMtMzItMzItMzJ6Ij48L3BhdGg+Cjwvc3ZnPg=="},295:e=>{"use strict";e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgdD0iMTY1NjY1NTU2NDk4NSIgY2xhc3M9Imljb24iIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHZlcnNpb249IjEuMSIKICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+CiAgICA8cGF0aCBkPSJNNTEyIDc0LjY2NjY2N0MyNzAuOTMzMzMzIDc0LjY2NjY2NyA3NC42NjY2NjcgMjcwLjkzMzMzMyA3NC42NjY2NjcgNTEyUzI3MC45MzMzMzMgOTQ5LjMzMzMzMyA1MTIgOTQ5LjMzMzMzMyA5NDkuMzMzMzMzIDc1My4wNjY2NjcgOTQ5LjMzMzMzMyA1MTIgNzUzLjA2NjY2NyA3NC42NjY2NjcgNTEyIDc0LjY2NjY2N3oiIHN0cm9rZS13aWR0aD0iNTQiIHN0cm9rZT0nYmxhY2snIGZpbGw9J3doaXRlJyA+PC9wYXRoPgogICAgPHBhdGggZD0iTTY4Mi42NjY2NjcgNTQ0SDM0MS4zMzMzMzNjLTE3LjA2NjY2NyAwLTMyLTE0LjkzMzMzMy0zMi0zMnMxNC45MzMzMzMtMzIgMzItMzJoMzQxLjMzMzMzNGMxNy4wNjY2NjcgMCAzMiAxNC45MzMzMzMgMzIgMzJzLTE0LjkzMzMzMyAzMi0zMiAzMnoiPjwvcGF0aD4KPC9zdmc+"}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var a=t[i]={id:i,exports:{}};return e[i](a,a.exports,n),a.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.b=document.baseURI||self.location.href;var i={};return(()=>{"use strict";n.d(i,{default:()=>J});function e(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;")}const t=function(e,n){if((n=n||this.nodeData).id===e)return n;if(!n.children||!n.children.length)return null;for(let i=0;i<n.children.length;i++){const o=t(e,n.children[i]);if(o)return o}},o=(e,t)=>{if(e.parent=t,e.children)for(let t=0;t<e.children.length;t++)o(e.children[t],e)};function a(){return((new Date).getTime().toString(16)+Math.random().toString(16).substr(2)).substr(2,16)}const r={afterMoving:!1,mousedown:!1,lastX:null,lastY:null,onMove(e,t){if(this.mousedown){if(this.afterMoving=!0,!this.lastX)return this.lastX=e.pageX,void(this.lastY=e.pageY);const n=this.lastX-e.pageX,i=this.lastY-e.pageY;t.scrollTo(t.scrollLeft+n,t.scrollTop+i),this.lastX=e.pageX,this.lastY=e.pageY}},clear(){this.afterMoving=!1,this.mousedown=!1,this.lastX=null,this.lastY=null}};function s(e){this.dom=e,this.mousedown=!1,this.lastX=null,this.lastY=null}s.prototype.init=function(e,t){this.handleMouseMove=e=>{if(e.stopPropagation(),this.mousedown){if(!this.lastX)return this.lastX=e.pageX,void(this.lastY=e.pageY);const n=this.lastX-e.pageX,i=this.lastY-e.pageY;t(n,i),this.lastX=e.pageX,this.lastY=e.pageY}},this.handleMouseDown=e=>{e.stopPropagation(),this.mousedown=!0},this.handleClear=e=>{e.stopPropagation(),this.clear()},e.addEventListener("mousemove",this.handleMouseMove),e.addEventListener("mouseleave",this.handleClear),e.addEventListener("mouseup",this.handleClear),this.dom.addEventListener("mousedown",this.handleMouseDown)},s.prototype.destory=function(e){e.removeEventListener("mousemove",this.handleMouseMove),e.removeEventListener("mouseleave",this.handleClear),e.removeEventListener("mouseup",this.handleClear),this.dom.removeEventListener("mousedown",this.handleMouseDown)},s.prototype.clear=function(){this.mousedown=!1,this.lastX=null,this.lastY=null};const l=document,c=(e,t)=>(t?t.mindElixirBox:l).querySelector(`[data-nodeid=me${e}]`),d=function(t,n){if(t.textContent=n.topic,n.style&&(t.style.color=n.style.color||"inherit",t.style.background=n.style.background||"inherit",t.style.fontSize=n.style.fontSize+"px",t.style.fontWeight=n.style.fontWeight||"normal"),n.image){const e=n.image;if(e.url&&e.width&&e.height){const n=l.createElement("img");n.src=e.url,n.style.width=e.width+"px",n.style.height=e.height+"px",t.appendChild(n)}}if(n.hyperLink){const e=l.createElement("a");e.className="hyper-link",e.target="_blank",e.innerText="🔗",e.href=n.hyperLink,t.appendChild(e),t.linkContainer=e}else t.linkContainer&&(t.linkContainer.remove(),t.linkContainer=null);if(n.icons&&n.icons.length){const i=l.createElement("span");i.className="icons",i.innerHTML=n.icons.map((t=>`<span>${e(t)}</span>`)).join(""),t.appendChild(i)}if(n.tags&&n.tags.length){const i=l.createElement("div");i.className="tags",i.innerHTML=n.tags.map((t=>`<span>${e(t)}</span>`)).join(""),t.appendChild(i)}};const h=function(e){const t=l.createElement("epd");return t.expanded=!1!==e,t.className=!1!==e?"minus":"",t};const p=document,u="http://www.w3.org/2000/svg",m=function(e){const t=p.createElementNS(u,"svg");return t.setAttribute("class",e),t},f=function(e,t,n,i){const o=p.createElementNS(u,"line");return o.setAttribute("x1",e),o.setAttribute("y1",t),o.setAttribute("x2",n),o.setAttribute("y2",i),o.setAttribute("stroke","#bbb"),o.setAttribute("fill","none"),o.setAttribute("stroke-width","2"),o},g=function(e){const t=p.createElementNS(u,"path");return t.setAttribute("d",e),t.setAttribute("stroke","#555"),t.setAttribute("fill","none"),t.setAttribute("stroke-linecap","square"),t.setAttribute("stroke-width","1"),t};function x(e){return e.isFocusMode?e.nodeDataBackup:e.nodeData}const b=document;function M(e,t,n){let i="";const o=t.offsetTop,a=t.offsetLeft,r=t.offsetWidth,s=t.offsetHeight;for(let t=0;t<e.length;t++){const l=e[t],c=l.children[0],d=c.offsetTop,h=c.offsetHeight;let p;p=n?o+s/2:o+s;const u=d+h;let m,f,g;const x=l.offsetParent.className;"lhs"===x?(m=a+15,g=a,f=a-c.offsetWidth+15):"rhs"===x&&(m=a+r-15,g=a+r,f=a+r+c.offsetWidth-15),i+=N({x1:m,y1:p,x2:f,y2:u,xMiddle:g});const b=c.children[1];if(!b)continue;if(b.style.top=(c.offsetHeight-b.offsetHeight)/2+"px","lhs"===x?b.style.left="-10px":"rhs"===x&&(b.style.left=c.offsetWidth-10+"px"),!b.expanded)continue;const y=l.children[1].children;y.length>0&&(i+=M(y,c))}return i}function y({x1:e,y1:t,x2:n,y2:i}){return`M ${e} 10000 V ${i>t?i-20:i+20} C ${e} ${i} ${e} ${i} ${n>e?e+20:e-20} ${i} H ${n}`}function v({x1:e,y1:t,x2:n,y2:i}){return`M ${e} ${t} Q ${e} ${i} ${n} ${i}`}function N({x1:e,y1:t,x2:n,y2:i,xMiddle:o}){return i<t+50&&i>t-50?`M ${e} ${t} H ${o} V ${i} H ${n}`:i>=t?`M ${e} ${t} H ${o} V ${i-8} A 8 8 0 0 ${e>n?1:0} ${e>n?o-8:o+8} ${i} H ${n}`:`M ${e} ${t} H ${o} V ${i+8} A 8 8 0 0 ${e>n?0:1} ${e>n?o-8:o+8} ${i} H ${n}`}const z={addChild:"插入子节点",addParent:"插入父节点",addSibling:"插入同级节点",removeNode:"删除节点",focus:"专注",cancelFocus:"取消专注",moveUp:"上移",moveDown:"下移",link:"连接",clickTips:"请点击目标节点",font:"文字",background:"背景",tag:"标签",icon:"图标",tagsSeparate:"多个标签半角逗号分隔",iconsSeparate:"多个图标半角逗号分隔",url:"URL"},C={cn:z,zh_CN:z,zh_TW:{addChild:"插入子節點",addParent:"插入父節點",addSibling:"插入同級節點",removeNode:"刪除節點",focus:"專注",cancelFocus:"取消專注",moveUp:"上移",moveDown:"下移",link:"連接",clickTips:"請點擊目標節點",font:"文字",background:"背景",tag:"標簽",icon:"圖標",tagsSeparate:"多個標簽半角逗號分隔",iconsSeparate:"多個圖標半角逗號分隔",url:"URL"},en:{addChild:"Add child",addParent:"Add parent",addSibling:"Add sibling",removeNode:"Remove node",focus:"Focus Mode",cancelFocus:"Cancel Focus Mode",moveUp:"Move up",moveDown:"Move down",link:"Link",clickTips:"Please click the target node",font:"Font",background:"Background",tag:"Tag",icon:"Icon",tagsSeparate:"Separate tags by comma",iconsSeparate:"Separate icons by comma",url:"URL"},ru:{addChild:"Добавить дочерний элемент",addParent:"Добавить родительский элемент",addSibling:"Добавить на этом уровне",removeNode:"Удалить узел",focus:"Режим фокусировки",cancelFocus:"Отменить режим фокусировки",moveUp:"Поднять выше",moveDown:"Опустить ниже",link:"Ссылка",clickTips:"Пожалуйста, нажмите на целевой узел",font:"Цвет шрифта",background:"Цвет фона",tag:"Тег",icon:"Иконка",tagsSeparate:"Разделяйте теги запятой",iconsSeparate:"Разделяйте иконки запятой"},ja:{addChild:"子ノードを追加する",addParent:"親ノードを追加します",addSibling:"兄弟ノードを追加する",removeNode:"ノードを削除",focus:"集中",cancelFocus:"集中解除",moveUp:"上へ移動",moveDown:"下へ移動",link:"コネクト",clickTips:"ターゲットノードをクリックしてください",font:"フォント",background:"バックグラウンド",tag:"タグ",icon:"アイコン",tagsSeparate:"複数タグはカンマ区切り",iconsSeparate:"複数アイコンはカンマ区切り",url:"URL"},pt:{addChild:"Adicionar item filho",addParent:"Adicionar item pai",addSibling:"Adicionar item irmao",removeNode:"Remover item",focus:"Modo Foco",cancelFocus:"Cancelar Modo Foco",moveUp:"Mover para cima",moveDown:"Mover para baixo",link:"Link",clickTips:"Favor clicar no item alvo",font:"Fonte",background:"Cor de fundo",tag:"Tag",icon:"Icone",tagsSeparate:"Separe tags por virgula",iconsSeparate:"Separe icones por virgula",url:"URL"}};var k=n(379),w=n.n(k),L=n(795),j=n.n(L),E=n(569),T=n.n(E),D=n(565),I=n.n(D),S=n(216),A=n.n(S),H=n(589),Y=n.n(H),P=n(165),$={};$.styleTagTransform=Y(),$.setAttributes=I(),$.insert=T().bind(null,"head"),$.domAPI=j(),$.insertStyleElement=A();w()(P.Z,$);P.Z&&P.Z.locals&&P.Z.locals;function B(t,n){const i=(t,n,i)=>{const o=document.createElement("li");return o.id=t,o.innerHTML=`<span>${e(n)}</span><span>${e(i)}</span>`,o},o=C[t.locale]?t.locale:"en",a=i("cm-add_child",C[o].addChild,"tab"),r=i("cm-add_parent",C[o].addParent,""),s=i("cm-add_sibling",C[o].addSibling,"enter"),l=i("cm-remove_child",C[o].removeNode,"delete"),c=i("cm-fucus",C[o].focus,""),d=i("cm-unfucus",C[o].cancelFocus,""),h=i("cm-up",C[o].moveUp,"PgUp"),p=i("cm-down",C[o].moveDown,"Pgdn"),u=i("cm-down",C[o].link,""),m=document.createElement("ul");if(m.className="menu-list",m.appendChild(a),m.appendChild(r),m.appendChild(s),m.appendChild(l),n&&!n.focus||(m.appendChild(c),m.appendChild(d)),m.appendChild(h),m.appendChild(p),n&&!n.link||m.appendChild(u),n&&n.extend)for(let e=0;e<n.extend.length;e++){const t=n.extend[e],o=i(t.name,t.name,t.key||"");m.appendChild(o),o.onclick=e=>{t.onclick(e)}}const f=document.createElement("div");f.className="context-menu",f.appendChild(m),f.hidden=!0,t.container.append(f);let g=!0;t.container.oncontextmenu=function(e){if(e.preventDefault(),!t.editable)return;const n=e.target;if("TPC"===n.tagName){g="ROOT"===n.parentElement.tagName,g?(c.className="disabled",h.className="disabled",p.className="disabled",s.className="disabled",l.className="disabled"):(c.className="",h.className="",p.className="",s.className="",l.className=""),t.selectNode(n),f.hidden=!1;const i=m.offsetHeight,o=m.offsetWidth;i+e.clientY>window.innerHeight?(m.style.top="",m.style.bottom="0px"):(m.style.bottom="",m.style.top=e.clientY+15+"px"),o+e.clientX>window.innerWidth?(m.style.left="",m.style.right="0px"):(m.style.right="",m.style.left=e.clientX+10+"px")}},f.onclick=e=>{e.target===f&&(f.hidden=!0)},a.onclick=()=>{t.addChild(),f.hidden=!0},r.onclick=()=>{t.insertParent(),f.hidden=!0},s.onclick=()=>{g||(t.insertSibling(),f.hidden=!0)},l.onclick=()=>{g||(t.removeNode(),f.hidden=!0)},c.onclick=()=>{g||(t.focusNode(t.currentNode),f.hidden=!0)},d.onclick=()=>{t.cancelFocus(),f.hidden=!0},h.onclick=()=>{g||(t.moveUpNode(),f.hidden=!0)},p.onclick=()=>{g||(t.moveDownNode(),f.hidden=!0)},u.onclick=()=>{f.hidden=!0;const e=t.currentNode,n=(e=>{const t=document.createElement("div");return t.innerText=e,t.style.cssText="position:absolute;bottom:20px;left:50%;transform:translateX(-50%);",t})(C[o].clickTips);t.container.appendChild(n),t.map.addEventListener("click",(i=>{i.preventDefault(),n.remove(),"T"!==i.target.parentElement.nodeName&&"ROOT"!==i.target.parentElement.nodeName||t.createLink(e,t.currentNode)}),{once:!0})}}var O=n(301),R={};R.styleTagTransform=Y(),R.setAttributes=I(),R.insert=T().bind(null,"head"),R.domAPI=j(),R.insertStyleElement=A();w()(O.Z,R);O.Z&&O.Z.locals&&O.Z.locals;const Z=(e,t)=>{const n=document.createElement("span");return n.id=e,n.innerHTML=`<svg class="icon" aria-hidden="true">\n <use xlink:href="#icon-${t}"></use>\n </svg>`,n};function F(e){e.container.append(function(e){const t=document.createElement("div"),n=Z("fullscreen","full"),i=Z("toCenter","living"),o=Z("zoomout","move"),a=Z("zoomin","add");return document.createElement("span").innerText="100%",t.appendChild(n),t.appendChild(i),t.appendChild(o),t.appendChild(a),t.className="mind-elixir-toolbar rb",n.onclick=()=>{e.container.requestFullscreen()},i.onclick=()=>{e.toCenter()},o.onclick=()=>{e.scaleVal<.6||e.scale(e.scaleVal-=.2)},a.onclick=()=>{e.scaleVal>1.6||e.scale(e.scaleVal+=.2)},t}(e)),e.container.append(function(e){const t=document.createElement("div"),n=Z("tbltl","left"),i=Z("tbltr","right"),o=Z("tblts","side");return t.appendChild(n),t.appendChild(i),t.appendChild(o),t.className="mind-elixir-toolbar lt",n.onclick=()=>{e.initLeft()},i.onclick=()=>{e.initRight()},o.onclick=()=>{e.initSide()},t}(e))}var V=n(787),W={};W.styleTagTransform=Y(),W.setAttributes=I(),W.insert=T().bind(null,"head"),W.domAPI=j(),W.insertStyleElement=A();w()(V.Z,W);V.Z&&V.Z.locals&&V.Z.locals;function G(){this.handlers={}}G.prototype={showHandler:function(){},addListener:function(e,t){void 0===this.handlers[e]&&(this.handlers[e]=[]),this.handlers[e].push(t)},fire:function(e,...t){if(this.handlers[e]instanceof Array){const n=this.handlers[e];for(let e=0;e<n.length;e++)n[e](...t)}},removeListener:function(e,t){if(!this.handlers[e])return;const n=this.handlers[e];if(t){if(n.length)for(let i=0;i<n.length;i++)n[i]===t&&this.handlers[e].splice(i,1)}else n.length=0}};var X=n(74),_={};_.styleTagTransform=Y(),_.setAttributes=I(),_.insert=T().bind(null,"head"),_.domAPI=j(),_.insertStyleElement=A();w()(X.Z,_);X.Z&&X.Z.locals&&X.Z.locals;n(857);const U=document;function q({el:e,direction:t,locale:n,toolBar:i,keypress:o,newTopicName:a,primaryLinkStyle:s,overflowHidden:l,primaryNodeHorizontalGap:c,primaryNodeVerticalGap:d,mobileMenu:h}){let p;const u=Object.prototype.toString.call(e);if("[object HTMLDivElement]"===u?p=e:"[object String]"===u&&(p=document.querySelector(e)),!p)return new Error("MindElixir: el is not a valid element");var g;this.mindElixirBox=p,this.locale=n,this.toolBar=void 0===i||i,this.keypress=void 0===o||o,this.mobileMenu=h,this.direction="number"==typeof t?t:1,this.draggable=!1,this.newTopicName=a,this.editable=!1,this.currentNode=null,this.currentLink=null,this.inputDiv=null,this.scaleVal=1,this.tempDirection=null,this.primaryLinkStyle=s||0,this.overflowHidden=l,this.primaryNodeHorizontalGap=c,this.primaryNodeVerticalGap=d,this.bus=new G,this.mindElixirBox.className+=" mind-elixir",this.mindElixirBox.innerHTML="",this.container=U.createElement("div"),this.container.className="map-container",this.overflowHidden&&(this.container.style.overflow="hidden"),this.map=U.createElement("div"),this.map.className="map-canvas",this.map.setAttribute("tabindex","0"),this.container.appendChild(this.map),this.mindElixirBox.appendChild(this.container),this.root=U.createElement("root"),this.box=U.createElement("children"),this.box.className="box",this.lines=m("lines"),this.linkController=m("linkcontroller"),this.P2=U.createElement("div"),this.P3=U.createElement("div"),this.P2.className=this.P3.className="circle",this.line1=f(0,0,0,0),this.line2=f(0,0,0,0),this.linkController.appendChild(this.line1),this.linkController.appendChild(this.line2),this.linkSvgGroup=m("topiclinks"),this.map.appendChild(this.root),this.map.appendChild(this.box),this.map.appendChild(this.lines),this.map.appendChild(this.linkController),this.map.appendChild(this.linkSvgGroup),this.map.appendChild(this.P2),this.map.appendChild(this.P3),this.overflowHidden?this.container.style.overflow="hidden":((g=this).map.addEventListener("click",(e=>{if("EPD"===e.target.nodeName)g.expandNode(e.target.previousSibling);else{if(!g.editable)return;"T"===e.target.parentElement.nodeName||"ROOT"===e.target.parentElement.nodeName?g.selectNode(e.target,!1,e):"path"===e.target.nodeName?"g"===e.target.parentElement.nodeName&&g.selectLink(e.target.parentElement):"circle"===e.target.className||(g.unselectNode(),g.hideLinkController&&g.hideLinkController())}})),g.map.addEventListener("dblclick",(e=>{e.preventDefault(),g.editable&&("T"!==e.target.parentElement.nodeName&&"ROOT"!==e.target.parentElement.nodeName||g.beginEdit(e.target))})),g.map.addEventListener("mousemove",(e=>{"true"!==e.target.contentEditable&&r.onMove(e,g.container)})),g.map.addEventListener("mousedown",(e=>{"true"!==e.target.contentEditable&&(r.afterMoving=!1,r.mousedown=!0)})),g.map.addEventListener("mouseleave",(e=>{r.clear()})),g.map.addEventListener("mouseup",(e=>{r.clear()})))}q.prototype={addParentLink:o,getObjById:t,judgeDirection:function(e,t){if(0===this.direction)e.className="lhs";else if(1===this.direction)e.className="rhs";else if(2===this.direction){b.querySelectorAll(".lhs").length<=b.querySelectorAll(".rhs").length?(e.className="lhs",t.direction=0):(e.className="rhs",t.direction=1)}},setNodeTopic:function(e,t){e.childNodes[0].textContent=t,e.nodeObj.topic=t,this.linkDiv()},createLink:function(e,t,n,i){const o=this.map.getBoundingClientRect();if(!e||!t)return;const r=e.getBoundingClientRect(),s=t.getBoundingClientRect(),l=(r.x+r.width/2-o.x)/this.scaleVal,c=(r.y+r.height/2-o.y)/this.scaleVal,d=(s.x+s.width/2-o.x)/this.scaleVal,h=(s.y+s.height/2-o.y)/this.scaleVal;let m,f,g,x;n?(m=l+i.delta1.x,f=c+i.delta1.y,g=d+i.delta2.x,x=h+i.delta2.y):(c+h)/2-c<=r.height/2?(m=(r.x+r.width-o.x)/this.scaleVal+100,f=c,g=(s.x+s.width-o.x)/this.scaleVal+100,x=h):(m=(l+d)/2,f=(c+h)/2,g=(l+d)/2,x=(c+h)/2);const b={cx:l,cy:c,w:r.width,h:r.height},M={cx:d,cy:h,w:s.width,h:s.height},y=function(e,t,n){let i,o;const a=(e.cy-n)/(t-e.cx);return a>e.h/e.w||a<-e.h/e.w?e.cy-n<0?(i=e.cx-e.h/2/a,o=e.cy+e.h/2):(i=e.cx+e.h/2/a,o=e.cy-e.h/2):e.cx-t<0?(i=e.cx+e.w/2,o=e.cy-e.w*a/2):(i=e.cx-e.w/2,o=e.cy+e.w*a/2),{x:i,y:o}}(b,m,f),v=y.x,N=y.y,z=function(e,t,n){let i,o;const a=(e.cy-n)/(t-e.cx);return a>e.h/e.w||a<-e.h/e.w?e.cy-n<0?(i=e.cx-e.h/2/a,o=e.cy+e.h/2):(i=e.cx+e.h/2/a,o=e.cy-e.h/2):e.cx-t<0?(i=e.cx+e.w/2,o=e.cy-e.w*a/2):(i=e.cx-e.w/2,o=e.cy+e.w*a/2),{x:i,y:o}}(M,g,x),C=z.x,k=z.y,w=function(e,t,n,i){const o=i-t,a=e-n;let r=Math.atan(Math.abs(o)/Math.abs(a))/3.14*180;a<0&&o>0&&(r=180-r),a<0&&o<0&&(r=180+r),a>0&&o<0&&(r=360-r);const s=r+30,l=r-30;return{x1:n+20*Math.cos(Math.PI*s/180),y1:i-20*Math.sin(Math.PI*s/180),x2:n+20*Math.cos(Math.PI*l/180),y2:i-20*Math.sin(Math.PI*l/180)}}(g,x,C,k),L=function(e,t){const n=p.createElementNS(u,"g"),i=p.createElementNS(u,"path"),o=p.createElementNS(u,"path");return o.setAttribute("d",t),o.setAttribute("stroke","rgb(235, 95, 82)"),o.setAttribute("fill","none"),o.setAttribute("stroke-linecap","cap"),o.setAttribute("stroke-width","2"),i.setAttribute("d",e),i.setAttribute("stroke","rgb(235, 95, 82)"),i.setAttribute("fill","none"),i.setAttribute("stroke-linecap","cap"),i.setAttribute("stroke-width","2"),n.appendChild(i),n.appendChild(o),n}(`M ${v} ${N} C ${m} ${f} ${g} ${x} ${C} ${k}`,`M ${w.x1} ${w.y1} L ${C} ${k} L ${w.x2} ${w.y2}`);let j;n?(j={id:i.id,label:"",from:e,to:t,delta1:{x:m-l,y:f-c},delta2:{x:g-d,y:x-h}},this.linkData[i.id]=j,L.linkObj=j,L.dataset.linkid=i.id):(j={id:a(),label:"",from:e,to:t,delta1:{x:m-l,y:f-c},delta2:{x:g-d,y:x-h}},this.linkData[j.id]=j,L.linkObj=j,L.dataset.linkid=j.id,this.currentLink=L),this.linkSvgGroup.appendChild(L),n||this.showLinkController(m,f,g,x,j,b,M)},layout:function(){this.root.innerHTML="",this.box.innerHTML="";const e=this.createTopic(this.nodeData);d(e,this.nodeData),e.draggable=!1,this.root.appendChild(e);const t=this.nodeData.children;if(t&&0!==t.length){if(2===this.direction){let e=0,n=0;t.map((t=>{void 0===t.direction?e<=n?(t.direction=0,e+=1):(t.direction=1,n+=1):0===t.direction?e+=1:n+=1}))}this.createChildren(this.nodeData.children,this.box,this.direction)}},linkDiv:function(e){const t=this.primaryNodeHorizontalGap||65,n=this.primaryNodeVerticalGap||25,i=this.root;i.style.cssText=`top:${1e4-i.offsetHeight/2}px;left:${1e4-i.offsetWidth/2}px;`;const o=this.box.children;this.lines.innerHTML="";let a,r,s=0,l=0,d=0,h=0,f=0,x=0;if(2===this.direction){let e=0,t=0,i=0,s=0;for(let a=0;a<o.length;a++){const r=o[a];"lhs"===r.className?(f+=r.offsetHeight+n,i+=r.offsetHeight,e+=1):(x+=r.offsetHeight+n,s+=r.offsetHeight,t+=1)}f>x?(r=1e4-Math.max(f)/2,a="r",l=(f-s)/(t-1)):(r=1e4-Math.max(x)/2,a="l",l=(x-i)/(e-1))}else{for(let e=0;e<o.length;e++){s+=o[e].offsetHeight+n}r=1e4-s/2}let b="";const N=1e4-i.offsetWidth/2-t,z=1e4+i.offsetWidth/2+t;for(let e=0;e<o.length;e++){let t=1e4;const s=1e4;let c,p;const u=o[e],m=u.offsetHeight;"lhs"===u.className?(u.style.top=r+d+"px",u.style.left=N-u.offsetWidth+"px",c=N-15,p=r+d+m/2,d+="l"===a?m+l:m+n):(u.style.top=r+h+"px",u.style.left=z+"px",c=z+15,p=r+h+m/2,h+="r"===a?m+l:m+n),2===this.primaryLinkStyle?(2===this.direction&&(t="lhs"===u.className?1e4-i.offsetWidth/6:1e4+i.offsetWidth/6),b+=y({x1:t,y1:s,x2:c,y2:p})):b+=v({x1:t,y1:s,x2:c,y2:p});const f=u.children[0].children[1];f&&(f.style.top=(f.parentNode.offsetHeight-f.offsetHeight)/2+"px","lhs"===u.className?f.style.left="-10px":f.style.left=f.parentNode.offsetWidth-10+"px")}this.lines.appendChild(function(e){const t=p.createElementNS(u,"path");return t.setAttribute("d",e),t.setAttribute("stroke","#666"),t.setAttribute("fill","none"),t.setAttribute("stroke-width","2"),t}(b));for(let t=0;t<o.length;t++){const n=o[t];if((!e||e===o[t])&&n.childElementCount){const e=m("subLines");"svg"===n.lastChild.tagName&&n.lastChild.remove(),n.appendChild(e);const t=n.children[0],i=M(n.children[1].children,t,!0);e.appendChild(g(i))}}this.linkSvgGroup.innerHTML="";for(const e in this.linkData){const t=this.linkData[e];"string"==typeof t.from?this.createLink(c(t.from),c(t.to),!0,t):this.createLink(c(t.from.nodeObj.id),c(t.to.nodeObj.id),!0,t)}},createChildren:function(e,t,n){let i;i=t||l.createElement("children");for(let t=0;t<e.length;t++){const o=e[t],a=l.createElement("GRP");0===n?a.className="lhs":1===n?a.className="rhs":2===n&&(0===o.direction?a.className="lhs":1===o.direction&&(a.className="rhs"));const r=this.createTop(o);if(o.children&&o.children.length>0){if(r.appendChild(h(o.expanded)),a.appendChild(r),!1!==o.expanded){const e=this.createChildren(o.children);a.appendChild(e)}}else a.appendChild(r);i.appendChild(a)}return i},createGroup:function(e,t){const n=l.createElement("GRP"),i=this.createTop(e);if(n.appendChild(i),!t&&e.children&&e.children.length>0&&(i.appendChild(h(e.expanded)),!1!==e.expanded)){const t=this.createChildren(e.children);n.appendChild(t)}return{grp:n,top:i}},createTop:function(e){const t=l.createElement("t"),n=this.createTopic(e);return d(n,e),t.appendChild(n),t},createTopic:function(e){const t=l.createElement("tpc");return t.nodeObj=e,t.dataset.nodeid="me"+e.id,t.draggable=this.draggable,t},selectNode:function(e,t,n){if(e){if("string"==typeof e)return this.selectNode(c(e));this.currentNode&&(this.currentNode.className=""),e.className="selected",this.currentNode=e,t?this.bus.fire("selectNewNode",e.nodeObj,n):this.bus.fire("selectNode",e.nodeObj,n)}},unselectNode:function(){this.currentNode&&(this.currentNode.className=""),this.currentNode=null,this.bus.fire("unselectNode")},selectNextSibling:function(){if(!this.currentNode||"meroot"===this.currentNode.dataset.nodeid)return;const e=this.currentNode.parentElement.parentElement.nextSibling;let t;const n=this.currentNode.parentElement.parentElement;if("rhs"===n.className||"lhs"===n.className){const e=this.mindElixirBox.querySelectorAll("."+n.className),i=Array.from(e).indexOf(n);if(!(i+1<e.length))return!1;t=e[i+1].firstChild.firstChild}else{if(!e)return!1;t=e.firstChild.firstChild}return this.selectNode(t),!0},selectPrevSibling:function(){if(!this.currentNode||"meroot"===this.currentNode.dataset.nodeid)return;const e=this.currentNode.parentElement.parentElement.previousSibling;let t;const n=this.currentNode.parentElement.parentElement;if("rhs"===n.className||"lhs"===n.className){const e=this.mindElixirBox.querySelectorAll("."+n.className),i=Array.from(e).indexOf(n);if(!(i-1>=0))return!1;t=e[i-1].firstChild.firstChild}else{if(!e)return!1;t=e.firstChild.firstChild}return this.selectNode(t),!0},selectFirstChild:function(){if(!this.currentNode)return;const e=this.currentNode.parentElement.nextSibling;if(e&&e.firstChild){const t=e.firstChild.firstChild.firstChild;this.selectNode(t)}},selectParent:function(){if(!this.currentNode||"meroot"===this.currentNode.dataset.nodeid)return;const e=this.currentNode.parentElement.parentElement.parentElement.previousSibling;if(e){const t=e.firstChild;this.selectNode(t)}},getAllDataString:function(){const e={nodeData:x(this),linkData:this.linkData,direction:this.direction};return JSON.stringify(e,((e,t)=>{if("parent"!==e)return"from"===e||"to"===e?t.nodeObj.id:t}))},getAllData:function(){const e={nodeData:x(this),linkData:this.linkData,direction:this.direction};return JSON.parse(JSON.stringify(e,((e,t)=>{if("parent"!==e)return"from"===e||"to"===e?t.nodeObj.id:t})))},getAllDataMd:function(){const e=x(this);let t="# "+e.topic+"\n\n";return function e(n,i){for(let o=0;o<n.length;o++)t+=i<=6?"".padStart(i,"#")+" "+n[o].topic+"\n\n":"".padStart(i-7,"\t")+"- "+n[o].topic+"\n",n[o].children&&e(n[o].children,i+1)}(e.children,2),t},scale:function(e){this.scaleVal=e,this.map.style.transform="scale("+e+")"},toCenter:function(){this.container.scrollTo(1e4-this.container.offsetWidth/2,1e4-this.container.offsetHeight/2)},focusNode:function(e){e.nodeObj.root||(null===this.tempDirection&&(this.tempDirection=this.direction),this.isFocusMode||(this.nodeDataBackup=this.nodeData,this.isFocusMode=!0),this.nodeData=e.nodeObj,this.nodeData.root=!0,this.initRight(),this.toCenter())},cancelFocus:function(){this.isFocusMode=!1,null!==this.tempDirection&&(delete this.nodeData.root,this.nodeData=this.nodeDataBackup,this.direction=this.tempDirection,this.tempDirection=null,this.refresh(),this.toCenter())},initLeft:function(){this.direction=0,this.refresh()},initRight:function(){this.direction=1,this.refresh()},initSide:function(){this.direction=2,this.refresh()},setLocale:function(e){this.locale=e,this.refresh()},expandNode:function(e,t){const n=e.nodeObj;"boolean"==typeof t?n.expanded=t:!1!==n.expanded?n.expanded=!1:n.expanded=!0,this.layout(),this.linkDiv(),this.bus.fire("expandNode",n)},refresh:function(e){e&&(this.nodeData=e.nodeData,this.linkData=e.linkData||{}),this.addParentLink(this.nodeData),this.layout(),this.linkDiv()},init:function(e){e.direction&&(this.direction=e.direction),this.nodeData=e.nodeData,this.linkData=e.linkData||{},this.toolBar&&F(this),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&this.mobileMenu?function(e,t){const n=(e,t)=>{const n=document.createElement("div");return n.id=e,n.innerHTML=`<svg class="icon" aria-hidden="true">\n <use xlink:href="#icon-${t}"></use>\n </svg>`,n},i=n("cm-add_child","zijiedian"),o=n("cm-add_sibling","tongjijiedian-"),a=n("cm-remove_child","shanchu2"),r=n("cm-up","rising"),s=n("cm-down","falling"),l=n("cm-edit","edit"),c=document.createElement("ul");if(c.className="menu-list",t&&t.extend)for(let e=0;e<t.extend.length;e++){const i=t.extend[e],o=n(i.name,i.name);c.appendChild(o),o.onclick=e=>{i.onclick(e)}}const d=document.createElement("mmenu");d.className="mobile-menu",d.appendChild(i),d.appendChild(o),d.appendChild(a),d.appendChild(r),d.appendChild(s),d.appendChild(l),d.hidden=!0,e.container.append(d);let h=!0;e.bus.addListener("unselectNode",(function(){d.hidden=!0})),e.bus.addListener("selectNode",(function(e){d.hidden=!1,h=!!e.root})),d.onclick=e=>{e.target===d&&(d.hidden=!0)},i.onclick=t=>{e.addChild()},o.onclick=t=>{h||e.insertSibling()},a.onclick=t=>{h||e.removeNode()},r.onclick=t=>{h||e.moveUpNode()},s.onclick=t=>{h||e.moveDownNode()},l.onclick=t=>{e.beginEdit()}}(this):this.contextMenu&&B(this,this.contextMenuOption),o(this.nodeData),this.toCenter(),this.layout(),this.linkDiv()}},q.LEFT=0,q.RIGHT=1,q.SIDE=2,q.version="0.19.4",q.E=c;const J=q})(),i=i.default})()}));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.MindElixirLite=t():e.MindElixirLite=t()}(self,(()=>(()=>{var e={74:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var i=n(81),o=n.n(i),a=n(645),r=n.n(a),l=n(667),s=n.n(l),c=new URL(n(848),n.b),d=new URL(n(295),n.b),h=r()(o()),p=s()(c),m=s()(d);h.push([e.id,".mind-elixir {\n --gap: 30px;\n --root-radius: 30px;\n --main-radius: 20px;\n --root-color: #ffffff;\n --root-bgcolor: #4c4f69;\n --main-color: #444446;\n --main-bgcolor: #ffffff;\n --color: #777777;\n --bgcolor: #f6f6f6;\n position: relative;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;\n}\n.mind-elixir .hyper-link {\n text-decoration: none;\n}\n.map-container {\n user-select: none;\n height: 100%;\n width: 100%;\n overflow: scroll;\n font-size: 15px;\n}\n.map-container::-webkit-scrollbar {\n width: 0px;\n height: 0px;\n}\n.map-container .map-canvas {\n height: 20000px;\n width: 20000px;\n position: relative;\n user-select: none;\n transition: all 0.3s;\n transform: scale(1);\n background-color: var(--bgcolor);\n}\n.map-container .map-canvas .selected {\n outline: 2px solid #4dc4ff;\n}\n.map-container .map-canvas me-root {\n position: absolute;\n padding: 10px var(--gap);\n color: var(--root-color);\n background-color: var(--root-bgcolor);\n border-radius: var(--root-radius);\n}\n.map-container .map-canvas me-root me-tpc {\n display: block;\n font-size: 25px;\n white-space: pre-wrap;\n}\n.map-container .map-canvas me-root me-tpc #input-box {\n padding: 10px var(--gap);\n}\n.map-container .box > me-wrapper {\n position: absolute;\n}\n.map-container .box > me-wrapper > me-parent {\n margin: var(--gap);\n background-color: var(--main-bgcolor);\n border: 1px solid var(--main-color);\n padding: 8px var(--gap);\n border-radius: var(--main-radius);\n}\n.map-container .box > me-wrapper > me-parent > me-tpc {\n color: var(--main-color);\n}\n.map-container .box .lhs {\n direction: rtl;\n}\n.map-container .box .lhs me-tpc {\n direction: ltr;\n}\n.map-container .box me-wrapper {\n display: block;\n pointer-events: none;\n}\n.map-container .box me-children,\n.map-container .box me-parent {\n display: inline-block;\n vertical-align: middle;\n}\n.map-container .box me-parent {\n position: relative;\n cursor: pointer;\n padding: 6px var(--gap);\n margin-top: 10px;\n}\n.map-container .box me-parent me-tpc {\n position: relative;\n display: block;\n border-radius: 3px;\n color: var(--color);\n pointer-events: all;\n max-width: 800px;\n white-space: pre-wrap;\n line-height: 1.2;\n}\n.map-container .box me-parent me-tpc .tags {\n direction: ltr;\n}\n.map-container .box me-parent me-tpc .tags span {\n display: inline-block;\n border-radius: 3px;\n padding: 2px 4px;\n background: #d6f0f8;\n color: #276f86;\n margin: 0px;\n font-size: 12px;\n height: 16px;\n line-height: 16px;\n margin-right: 3px;\n margin-top: 2px;\n}\n.map-container .box me-parent me-tpc .icons {\n display: inline-block;\n direction: ltr;\n margin-right: 10px;\n}\n.map-container .box me-parent me-tpc .insert-preview {\n position: absolute;\n width: 100%;\n left: 0px;\n z-index: 9;\n}\n.map-container .box me-parent me-tpc .show {\n background: #7ad5ff;\n pointer-events: none;\n opacity: 0.7;\n}\n.map-container .box me-parent me-tpc .before {\n height: 14px;\n top: -14px;\n}\n.map-container .box me-parent me-tpc .in {\n height: 100%;\n top: 0px;\n}\n.map-container .box me-parent me-tpc .after {\n height: 14px;\n bottom: -14px;\n}\n.map-container .box me-parent me-epd {\n position: absolute;\n height: 18px;\n width: 18px;\n opacity: 0.8;\n background-image: url("+p+");\n background-repeat: no-repeat;\n background-size: contain;\n background-position: center;\n pointer-events: all;\n z-index: 9;\n}\n.map-container .box me-parent me-epd.minus {\n background-image: url("+m+") !important;\n transition: all 0.3s;\n opacity: 0;\n}\n.map-container .box me-parent me-epd.minus:hover {\n opacity: 0.8;\n}\n.map-container .icon {\n width: 1em;\n height: 1em;\n vertical-align: -0.15em;\n fill: currentColor;\n overflow: hidden;\n}\n.map-container .lines,\n.map-container .subLines,\n.map-container .topiclinks,\n.map-container .linkcontroller {\n position: absolute;\n height: 102%;\n width: 100%;\n top: 0;\n left: 0;\n}\n.map-container .topiclinks,\n.map-container .linkcontroller {\n pointer-events: none;\n}\n.map-container .topiclinks g,\n.map-container .linkcontroller g {\n pointer-events: all;\n}\n.map-container .lines,\n.map-container .subLines {\n pointer-events: none;\n z-index: -1;\n}\n.map-container .topiclinks *,\n.map-container .linkcontroller * {\n z-index: 100;\n}\n.map-container .topiclinks g {\n cursor: pointer;\n}\n.map-container #input-box {\n position: absolute;\n top: 0;\n left: 0;\n background-color: #fff;\n color: #666666;\n width: max-content;\n max-width: 800px;\n z-index: 11;\n direction: ltr;\n user-select: auto;\n}\nme-tpc > img {\n pointer-events: none;\n display: block;\n}\n.circle {\n position: absolute;\n height: 10px;\n width: 10px;\n margin-top: -5px;\n margin-left: -5px;\n border-radius: 100%;\n background: #aaa;\n cursor: pointer;\n}\n",""]);const u=h},165:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(81),o=n.n(i),a=n(645),r=n.n(a)()(o());r.push([e.id,".mind-elixir .context-menu {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 99;\n}\n.mind-elixir .context-menu .menu-list {\n position: fixed;\n list-style: none;\n margin: 0;\n padding: 0;\n font: 300 15px 'Roboto', sans-serif;\n color: #333;\n box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.2);\n}\n.mind-elixir .context-menu .menu-list * {\n transition: color 0.4s, background-color 0.4s;\n}\n.mind-elixir .context-menu .menu-list li {\n min-width: 150px;\n overflow: hidden;\n white-space: nowrap;\n padding: 6px 10px;\n background-color: #fff;\n border-bottom: 1px solid #ecf0f1;\n}\n.mind-elixir .context-menu .menu-list li a {\n color: #333;\n text-decoration: none;\n}\n.mind-elixir .context-menu .menu-list li.disabled {\n color: #5e5e5e;\n background-color: #f7f7f7;\n}\n.mind-elixir .context-menu .menu-list li.disabled:hover {\n cursor: default;\n background-color: #f7f7f7;\n}\n.mind-elixir .context-menu .menu-list li:hover {\n cursor: pointer;\n background-color: #ecf0f1;\n}\n.mind-elixir .context-menu .menu-list li:first-child {\n border-radius: 5px 5px 0 0;\n}\n.mind-elixir .context-menu .menu-list li:last-child {\n border-bottom: 0;\n border-radius: 0 0 5px 5px;\n}\n.mind-elixir .context-menu .menu-list li span:last-child {\n float: right;\n}\n",""]);const l=r},787:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(81),o=n.n(i),a=n(645),r=n.n(a)()(o());r.push([e.id,".mind-elixir .mobile-menu {\n position: absolute;\n left: 20px;\n bottom: 70px;\n z-index: 99;\n margin: 0;\n padding: 0;\n color: #333;\n border-radius: 5px;\n box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.2);\n overflow: hidden;\n}\n.mind-elixir .mobile-menu * {\n transition: color 0.4s, background-color 0.4s;\n}\n.mind-elixir .mobile-menu div {\n float: left;\n text-align: center;\n width: 30px;\n overflow: hidden;\n white-space: nowrap;\n padding: 8px;\n background-color: #fff;\n border-bottom: 1px solid #ecf0f1;\n}\n.mind-elixir .mobile-menu div a {\n color: #333;\n text-decoration: none;\n}\n.mind-elixir .mobile-menu div.disabled {\n color: #5e5e5e;\n background-color: #f7f7f7;\n}\n.mind-elixir .mobile-menu div.disabled:hover {\n cursor: default;\n background-color: #f7f7f7;\n}\n.mind-elixir .mobile-menu div:hover {\n cursor: pointer;\n background-color: #ecf0f1;\n}\n",""]);const l=r},301:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(81),o=n.n(i),a=n(645),r=n.n(a)()(o());r.push([e.id,".mind-elixir-toolbar {\n position: absolute;\n background: #fff;\n padding: 10px;\n border-radius: 5px;\n box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2);\n}\n.mind-elixir-toolbar span:active {\n opacity: 0.5;\n}\n.mind-elixir-toolbar.rb {\n right: 20px;\n bottom: 20px;\n font-family: iconfont;\n}\n.mind-elixir-toolbar.rb span + span {\n margin-left: 10px;\n}\n.mind-elixir-toolbar.lt {\n font-size: 20px;\n left: 20px;\n top: 20px;\n width: 20px;\n}\n.mind-elixir-toolbar.lt span {\n display: block;\n}\n.mind-elixir-toolbar.lt span + span {\n margin-top: 10px;\n}\n",""]);const l=r},645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",i=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),i&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),i&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,i,o,a){"string"==typeof e&&(e=[[null,e,void 0]]);var r={};if(i)for(var l=0;l<this.length;l++){var s=this[l][0];null!=s&&(r[s]=!0)}for(var c=0;c<e.length;c++){var d=[].concat(e[c]);i&&r[d[0]]||(void 0!==a&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=a),n&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=n):d[2]=n),o&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=o):d[4]="".concat(o)),t.push(d))}},t}},667:e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},81:e=>{"use strict";e.exports=function(e){return e[1]}},379:e=>{"use strict";var t=[];function n(e){for(var n=-1,i=0;i<t.length;i++)if(t[i].identifier===e){n=i;break}return n}function i(e,i){for(var a={},r=[],l=0;l<e.length;l++){var s=e[l],c=i.base?s[0]+i.base:s[0],d=a[c]||0,h="".concat(c," ").concat(d);a[c]=d+1;var p=n(h),m={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==p)t[p].references++,t[p].updater(m);else{var u=o(m,i);i.byIndex=l,t.splice(l,0,{identifier:h,updater:u,references:1})}r.push(h)}return r}function o(e,t){var n=t.domAPI(t);n.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var a=i(e=e||[],o=o||{});return function(e){e=e||[];for(var r=0;r<a.length;r++){var l=n(a[r]);t[l].references--}for(var s=i(e,o),c=0;c<a.length;c++){var d=n(a[c]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}a=s}}},569:e=>{"use strict";var t={};e.exports=function(e,n){var i=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}},216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},565:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var i="";n.supports&&(i+="@supports (".concat(n.supports,") {")),n.media&&(i+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(i+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),i+=n.css,o&&(i+="}"),n.media&&(i+="}"),n.supports&&(i+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(i,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},857:()=>{!function(e){var t,n,i,o,a,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="#333333" ></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="#333333" ></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="#666666" ></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="#666666" ></path></symbol></svg>',s=(s=document.getElementsByTagName("script"))[s.length-1].getAttribute("data-injectcss");if(s&&!e.__iconfont__svg__cssinject__){e.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(e){console}}function c(){a||(a=!0,i())}t=function(){var e,t,n,i;(i=document.createElement("div")).innerHTML=l,l=null,(n=i.getElementsByTagName("svg")[0])&&(n.setAttribute("aria-hidden","true"),n.style.position="absolute",n.style.width=0,n.style.height=0,n.style.overflow="hidden",e=n,(t=document.body).firstChild?(i=e,(n=t.firstChild).parentNode.insertBefore(i,n)):t.appendChild(e))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(t,0):(n=function(){document.removeEventListener("DOMContentLoaded",n,!1),t()},document.addEventListener("DOMContentLoaded",n,!1)):document.attachEvent&&(i=t,o=e.document,a=!1,(r=function(){try{o.documentElement.doScroll("left")}catch(e){return void setTimeout(r,50)}c()})(),o.onreadystatechange=function(){"complete"==o.readyState&&(o.onreadystatechange=null,c())})}(window)},848:e=>{"use strict";e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgdD0iMTY1NjY1NDcxNzI0MiIgY2xhc3M9Imljb24iIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHZlcnNpb249IjEuMSIKICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+CiAgICA8cGF0aCBkPSJNNTEyIDc0LjY2NjY2N0MyNzAuOTMzMzMzIDc0LjY2NjY2NyA3NC42NjY2NjcgMjcwLjkzMzMzMyA3NC42NjY2NjcgNTEyUzI3MC45MzMzMzMgOTQ5LjMzMzMzMyA1MTIgOTQ5LjMzMzMzMyA5NDkuMzMzMzMzIDc1My4wNjY2NjcgOTQ5LjMzMzMzMyA1MTIgNzUzLjA2NjY2NyA3NC42NjY2NjcgNTEyIDc0LjY2NjY2N3oiIHN0cm9rZS13aWR0aD0iNTQiIHN0cm9rZT0nYmxhY2snIGZpbGw9J3doaXRlJyA+PC9wYXRoPgogICAgPHBhdGggZD0iTTY4Mi42NjY2NjcgNDgwaC0xMzguNjY2NjY3VjM0MS4zMzMzMzNjMC0xNy4wNjY2NjctMTQuOTMzMzMzLTMyLTMyLTMycy0zMiAxNC45MzMzMzMtMzIgMzJ2MTM4LjY2NjY2N0gzNDEuMzMzMzMzYy0xNy4wNjY2NjcgMC0zMiAxNC45MzMzMzMtMzIgMzJzMTQuOTMzMzMzIDMyIDMyIDMyaDEzOC42NjY2NjdWNjgyLjY2NjY2N2MwIDE3LjA2NjY2NyAxNC45MzMzMzMgMzIgMzIgMzJzMzItMTQuOTMzMzMzIDMyLTMydi0xMzguNjY2NjY3SDY4Mi42NjY2NjdjMTcuMDY2NjY3IDAgMzItMTQuOTMzMzMzIDMyLTMycy0xNC45MzMzMzMtMzItMzItMzJ6Ij48L3BhdGg+Cjwvc3ZnPg=="},295:e=>{"use strict";e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgdD0iMTY1NjY1NTU2NDk4NSIgY2xhc3M9Imljb24iIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHZlcnNpb249IjEuMSIKICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+CiAgICA8cGF0aCBkPSJNNTEyIDc0LjY2NjY2N0MyNzAuOTMzMzMzIDc0LjY2NjY2NyA3NC42NjY2NjcgMjcwLjkzMzMzMyA3NC42NjY2NjcgNTEyUzI3MC45MzMzMzMgOTQ5LjMzMzMzMyA1MTIgOTQ5LjMzMzMzMyA5NDkuMzMzMzMzIDc1My4wNjY2NjcgOTQ5LjMzMzMzMyA1MTIgNzUzLjA2NjY2NyA3NC42NjY2NjcgNTEyIDc0LjY2NjY2N3oiIHN0cm9rZS13aWR0aD0iNTQiIHN0cm9rZT0nYmxhY2snIGZpbGw9J3doaXRlJyA+PC9wYXRoPgogICAgPHBhdGggZD0iTTY4Mi42NjY2NjcgNTQ0SDM0MS4zMzMzMzNjLTE3LjA2NjY2NyAwLTMyLTE0LjkzMzMzMy0zMi0zMnMxNC45MzMzMzMtMzIgMzItMzJoMzQxLjMzMzMzNGMxNy4wNjY2NjcgMCAzMiAxNC45MzMzMzMgMzIgMzJzLTE0LjkzMzMzMyAzMi0zMiAzMnoiPjwvcGF0aD4KPC9zdmc+"}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var a=t[i]={id:i,exports:{}};return e[i](a,a.exports,n),a.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.b=document.baseURI||self.location.href,n.nc=void 0;var i={};return(()=>{"use strict";n.d(i,{default:()=>K});const e=30,t={name:"Latte",palette:["#dd7878","#ea76cb","#8839ef","#e64553","#fe640b","#df8e1d","#40a02b","#209fb5","#1e66f5","#7287fd"],cssVar:{"--main-color":"#444446","--main-bgcolor":"#ffffff","--color":"#777777","--bgcolor":"#f6f6f6"}};function o(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;")}const a=function(e,t){if((t=t||this.nodeData).id===e)return t;if(!t.children||!t.children.length)return null;for(let n=0;n<t.children.length;n++){const i=a(e,t.children[n]);if(i)return i}},r=(e,t)=>{if(e.parent=t,e.children)for(let t=0;t<e.children.length;t++)r(e.children[t],e)};function l(){return((new Date).getTime().toString(16)+Math.random().toString(16).substr(2)).substr(2,16)}const s=document,c=(e,t)=>(t?t.mindElixirBox:s).querySelector(`[data-nodeid=me${e}]`),d=function(e,t){if(e.textContent=t.topic,t.style&&(e.style.color=t.style.color||null,e.style.background=t.style.background||null,e.style.fontSize=t.style.fontSize+"px",e.style.fontWeight=t.style.fontWeight||"normal"),t.image){const n=t.image;if(n.url&&n.width&&n.height){const t=s.createElement("img");t.src=n.url,t.style.width=n.width+"px",t.style.height=n.height+"px",e.appendChild(t)}}if(t.hyperLink){const n=s.createElement("a");n.className="hyper-link",n.target="_blank",n.innerText="🔗",n.href=t.hyperLink,e.appendChild(n),e.linkContainer=n}else e.linkContainer&&(e.linkContainer.remove(),e.linkContainer=null);if(t.icons&&t.icons.length){const n=s.createElement("span");n.className="icons",n.innerHTML=t.icons.map((e=>`<span>${o(e)}</span>`)).join(""),e.appendChild(n)}if(t.tags&&t.tags.length){const n=s.createElement("div");n.className="tags",n.innerHTML=t.tags.map((e=>`<span>${o(e)}</span>`)).join(""),e.appendChild(n)}t.branchColor&&(e.style.borderColor=t.branchColor)};const h=function(e){const t=s.createElement("me-epd");return t.expanded=!1!==e,t.className=!1!==e?"minus":"",t},p=document,m=document,u="http://www.w3.org/2000/svg",f=function(e,t){const n=m.createElementNS(u,"path");return n.setAttribute("d",e),n.setAttribute("stroke",t||"#666"),n.setAttribute("fill","none"),n.setAttribute("stroke-width","3"),n},g=function(e){const t=m.createElementNS(u,"svg");return t.setAttribute("class",e),t},b=function(e,t,n,i){const o=m.createElementNS(u,"line");return o.setAttribute("x1",e),o.setAttribute("y1",t),o.setAttribute("x2",n),o.setAttribute("y2",i),o.setAttribute("stroke","#bbb"),o.setAttribute("fill","none"),o.setAttribute("stroke-width","2"),o},x=function(e,t){const n=m.createElementNS(u,"path");return n.setAttribute("d",e),n.setAttribute("stroke",t||"#555"),n.setAttribute("fill","none"),n.setAttribute("stroke-linecap","square"),n.setAttribute("stroke-width","2"),n};function M(e){return{nodeData:e.isFocusMode?e.nodeDataBackup:e.nodeData,linkData:e.linkData,direction:e.direction,theme:e.theme}}function y(e,t,n){let i="";const o=t.offsetTop,a=t.offsetLeft,r=t.offsetWidth,l=t.offsetHeight;for(let t=0;t<e.length;t++){const s=e[t],c=s.children[0],d=c.offsetTop,h=c.offsetLeft,p=c.offsetWidth,m=c.offsetHeight,u=s.offsetParent.className;i+=z({pT:o,pL:a,pW:r,pH:l,cT:d,cL:h,cW:p,cH:m,direction:u,isFirst:n});const f=c.children[1];if(!f)continue;if(f.style.bottom=-f.offsetHeight/2+"px","lhs"===u?f.style.left="-10px":"rhs"===u&&(f.style.left=c.offsetWidth-10+"px"),!f.expanded)continue;const g=s.children[1].children;g.length>0&&(i+=y(g,c))}return i}function v({x1:e,y1:t,x2:n,y2:i}){return`M ${e} 10000 V ${i>t?i-20:i+20} C ${e} ${i} ${e} ${i} ${n>e?e+20:e-20} ${i} H ${n}`}function N({x1:e,y1:t,x2:n,y2:i}){return`M ${e} ${t} Q ${e} ${i} ${n} ${i}`}function z({pT:t,pL:n,pW:i,pH:o,cT:a,cL:r,cW:l,cH:s,direction:c,isFirst:d}){let h,p;h=d?t+o/2:t+o;const m=a+s;let u,f,g;return"lhs"===c?(g=n-10,u=g+e,f=g-e,p=r+e-10):"rhs"===c&&(g=n+i+10,u=g-e,f=g+e,p=r+l-e+10),`M ${u} ${h} C ${g} ${h} ${g} ${m} ${f} ${m} H ${p}`}const C={afterMoving:!1,mousedown:!1,lastX:null,lastY:null,onMove(e,t){if(this.mousedown){if(this.afterMoving=!0,!this.lastX)return this.lastX=e.pageX,void(this.lastY=e.pageY);const n=this.lastX-e.pageX,i=this.lastY-e.pageY;t.scrollTo(t.scrollLeft+n,t.scrollTop+i),this.lastX=e.pageX,this.lastY=e.pageY}},clear(){this.afterMoving=!1,this.mousedown=!1,this.lastX=null,this.lastY=null}};const k={addChild:"插入子节点",addParent:"插入父节点",addSibling:"插入同级节点",removeNode:"删除节点",focus:"专注",cancelFocus:"取消专注",moveUp:"上移",moveDown:"下移",link:"连接",clickTips:"请点击目标节点"},w={cn:k,zh_CN:k,zh_TW:{addChild:"插入子節點",addParent:"插入父節點",addSibling:"插入同級節點",removeNode:"刪除節點",focus:"專注",cancelFocus:"取消專注",moveUp:"上移",moveDown:"下移",link:"連接",clickTips:"請點擊目標節點"},en:{addChild:"Add child",addParent:"Add parent",addSibling:"Add sibling",removeNode:"Remove node",focus:"Focus Mode",cancelFocus:"Cancel Focus Mode",moveUp:"Move up",moveDown:"Move down",link:"Link",clickTips:"Please click the target node"},ru:{addChild:"Добавить дочерний элемент",addParent:"Добавить родительский элемент",addSibling:"Добавить на этом уровне",removeNode:"Удалить узел",focus:"Режим фокусировки",cancelFocus:"Отменить режим фокусировки",moveUp:"Поднять выше",moveDown:"Опустить ниже",link:"Ссылка",clickTips:"Пожалуйста, нажмите на целевой узел"},ja:{addChild:"子ノードを追加する",addParent:"親ノードを追加します",addSibling:"兄弟ノードを追加する",removeNode:"ノードを削除",focus:"集中",cancelFocus:"集中解除",moveUp:"上へ移動",moveDown:"下へ移動",link:"コネクト",clickTips:"ターゲットノードをクリックしてください"},pt:{addChild:"Adicionar item filho",addParent:"Adicionar item pai",addSibling:"Adicionar item irmao",removeNode:"Remover item",focus:"Modo Foco",cancelFocus:"Cancelar Modo Foco",moveUp:"Mover para cima",moveDown:"Mover para baixo",link:"Link",clickTips:"Favor clicar no item alvo"}};var L=n(379),j=n.n(L),E=n(795),T=n.n(E),I=n(569),D=n.n(I),A=n(565),S=n.n(A),H=n(216),Y=n.n(H),P=n(589),B=n.n(P),O=n(165),R={};R.styleTagTransform=B(),R.setAttributes=S(),R.insert=D().bind(null,"head"),R.domAPI=T(),R.insertStyleElement=Y();j()(O.Z,R);O.Z&&O.Z.locals&&O.Z.locals;function Z(e,t){const n=(e,t,n)=>{const i=document.createElement("li");return i.id=e,i.innerHTML=`<span>${o(t)}</span><span>${o(n)}</span>`,i},i=w[e.locale]?e.locale:"en",a=n("cm-add_child",w[i].addChild,"tab"),r=n("cm-add_parent",w[i].addParent,""),l=n("cm-add_sibling",w[i].addSibling,"enter"),s=n("cm-remove_child",w[i].removeNode,"delete"),c=n("cm-fucus",w[i].focus,""),d=n("cm-unfucus",w[i].cancelFocus,""),h=n("cm-up",w[i].moveUp,"PgUp"),p=n("cm-down",w[i].moveDown,"Pgdn"),m=n("cm-down",w[i].link,""),u=document.createElement("ul");if(u.className="menu-list",u.appendChild(a),u.appendChild(r),u.appendChild(l),u.appendChild(s),t&&!t.focus||(u.appendChild(c),u.appendChild(d)),u.appendChild(h),u.appendChild(p),t&&!t.link||u.appendChild(m),t&&t.extend)for(let e=0;e<t.extend.length;e++){const i=t.extend[e],o=n(i.name,i.name,i.key||"");u.appendChild(o),o.onclick=e=>{i.onclick(e)}}const f=document.createElement("div");f.className="context-menu",f.appendChild(u),f.hidden=!0,e.container.append(f);let g=!0;e.container.oncontextmenu=function(t){if(t.preventDefault(),!e.editable)return;const n=t.target;if("ME-TPC"===n.tagName){g="ME-ROOT"===n.parentElement.tagName,g?(c.className="disabled",h.className="disabled",p.className="disabled",l.className="disabled",s.className="disabled"):(c.className="",h.className="",p.className="",l.className="",s.className=""),e.selectNode(n),f.hidden=!1;const i=u.offsetHeight,o=u.offsetWidth;i+t.clientY>window.innerHeight?(u.style.top="",u.style.bottom="0px"):(u.style.bottom="",u.style.top=t.clientY+15+"px"),o+t.clientX>window.innerWidth?(u.style.left="",u.style.right="0px"):(u.style.right="",u.style.left=t.clientX+10+"px")}},f.onclick=e=>{e.target===f&&(f.hidden=!0)},a.onclick=()=>{e.addChild(),f.hidden=!0},r.onclick=()=>{e.insertParent(),f.hidden=!0},l.onclick=()=>{g||(e.insertSibling(),f.hidden=!0)},s.onclick=()=>{g||(e.removeNode(),f.hidden=!0)},c.onclick=()=>{g||(e.focusNode(e.currentNode),f.hidden=!0)},d.onclick=()=>{e.cancelFocus(),f.hidden=!0},h.onclick=()=>{g||(e.moveUpNode(),f.hidden=!0)},p.onclick=()=>{g||(e.moveDownNode(),f.hidden=!0)},m.onclick=()=>{f.hidden=!0;const t=e.currentNode,n=(e=>{const t=document.createElement("div");return t.innerText=e,t.style.cssText="position:absolute;bottom:20px;left:50%;transform:translateX(-50%);",t})(w[i].clickTips);e.container.appendChild(n),e.map.addEventListener("click",(i=>{i.preventDefault(),n.remove(),"ME-PARENT"!==i.target.parentElement.tagName&&"ME-ROOT"!==i.target.parentElement.tagName||e.createLink(t,e.currentNode)}),{once:!0})}}var $=n(301),F={};F.styleTagTransform=B(),F.setAttributes=S(),F.insert=D().bind(null,"head"),F.domAPI=T(),F.insertStyleElement=Y();j()($.Z,F);$.Z&&$.Z.locals&&$.Z.locals;const V=(e,t)=>{const n=document.createElement("span");return n.id=e,n.innerHTML=`<svg class="icon" aria-hidden="true">\n <use xlink:href="#icon-${t}"></use>\n </svg>`,n};function W(e){e.container.append(function(e){const t=document.createElement("div"),n=V("fullscreen","full"),i=V("toCenter","living"),o=V("zoomout","move"),a=V("zoomin","add");return document.createElement("span").innerText="100%",t.appendChild(n),t.appendChild(i),t.appendChild(o),t.appendChild(a),t.className="mind-elixir-toolbar rb",n.onclick=()=>{e.container.requestFullscreen()},i.onclick=()=>{e.toCenter()},o.onclick=()=>{e.scaleVal<.6||e.scale(e.scaleVal-=.2)},a.onclick=()=>{e.scaleVal>1.6||e.scale(e.scaleVal+=.2)},t}(e)),e.container.append(function(e){const t=document.createElement("div"),n=V("tbltl","left"),i=V("tbltr","right"),o=V("tblts","side");return t.appendChild(n),t.appendChild(i),t.appendChild(o),t.className="mind-elixir-toolbar lt",n.onclick=()=>{e.initLeft()},i.onclick=()=>{e.initRight()},o.onclick=()=>{e.initSide()},t}(e))}var G=n(787),_={};_.styleTagTransform=B(),_.setAttributes=S(),_.insert=D().bind(null,"head"),_.domAPI=T(),_.insertStyleElement=Y();j()(G.Z,_);G.Z&&G.Z.locals&&G.Z.locals;function q(){this.handlers={}}q.prototype={showHandler:function(){},addListener:function(e,t){void 0===this.handlers[e]&&(this.handlers[e]=[]),this.handlers[e].push(t)},fire:function(e,...t){if(this.handlers[e]instanceof Array){const n=this.handlers[e];for(let e=0;e<n.length;e++)n[e](...t)}},removeListener:function(e,t){if(!this.handlers[e])return;const n=this.handlers[e];if(t){if(n.length)for(let i=0;i<n.length;i++)n[i]===t&&this.handlers[e].splice(i,1)}else n.length=0}};var J=n(74),U={};U.styleTagTransform=B(),U.setAttributes=S(),U.insert=D().bind(null,"head"),U.domAPI=T(),U.insertStyleElement=Y();j()(J.Z,U);J.Z&&J.Z.locals&&J.Z.locals;n(857);const Q=document;function X({el:e,direction:n,toolBar:i,keypress:o,newTopicName:a,mainLinkStyle:r,overflowHidden:l,mainNodeHorizontalGap:s,mainNodeVerticalGap:c,mobileMenu:d}){let h;const p=Object.prototype.toString.call(e);if("[object HTMLDivElement]"===p?h=e:"[object String]"===p&&(h=document.querySelector(e)),!h)return new Error("MindElixir: el is not a valid element");var m;this.mindElixirBox=h,this.toolBar=void 0===i||i,this.keypress=void 0===o||o,this.mobileMenu=d,this.direction="number"==typeof n?n:1,this.draggable=!1,this.newTopicName=a,this.editable=!1,this.currentNode=null,this.currentLink=null,this.inputDiv=null,this.scaleVal=1,this.tempDirection=null,this.mainLinkStyle=r||0,this.overflowHidden=l,this.mainNodeHorizontalGap=s,this.mainNodeVerticalGap=c,this.bus=new q,this.mindElixirBox.className+=" mind-elixir",this.mindElixirBox.innerHTML="",this.container=Q.createElement("div"),this.container.className="map-container",this.overflowHidden&&(this.container.style.overflow="hidden"),this.map=Q.createElement("div"),this.map.className="map-canvas",this.theme=t,this.map.setAttribute("tabindex","0"),this.container.appendChild(this.map),this.mindElixirBox.appendChild(this.container),this.root=Q.createElement("me-root"),this.box=Q.createElement("me-children"),this.box.className="box",this.lines=g("lines"),this.linkController=g("linkcontroller"),this.P2=Q.createElement("div"),this.P3=Q.createElement("div"),this.P2.className=this.P3.className="circle",this.line1=b(0,0,0,0),this.line2=b(0,0,0,0),this.linkController.appendChild(this.line1),this.linkController.appendChild(this.line2),this.linkSvgGroup=g("topiclinks"),this.map.appendChild(this.root),this.map.appendChild(this.box),this.map.appendChild(this.lines),this.map.appendChild(this.linkController),this.map.appendChild(this.linkSvgGroup),this.map.appendChild(this.P2),this.map.appendChild(this.P3),this.overflowHidden?this.container.style.overflow="hidden":((m=this).map.addEventListener("click",(e=>{if("ME-EPD"===e.target.tagName)m.expandNode(e.target.previousSibling);else{if(!m.editable)return;"ME-PARENT"===e.target.parentElement.tagName||"ME-ROOT"===e.target.parentElement.tagName?m.selectNode(e.target,!1,e):"path"===e.target.tagName?"g"===e.target.parentElement.tagName&&m.selectLink(e.target.parentElement):"circle"===e.target.className||(m.unselectNode(),m.hideLinkController&&m.hideLinkController())}})),m.map.addEventListener("dblclick",(e=>{e.preventDefault(),m.editable&&("ME-PARENT"!==e.target.parentElement.tagName&&"ME-ROOT"!==e.target.parentElement.tagName||m.beginEdit(e.target))})),m.map.addEventListener("mousemove",(e=>{"true"!==e.target.contentEditable&&C.onMove(e,m.container)})),m.map.addEventListener("mousedown",(e=>{"true"!==e.target.contentEditable&&(C.afterMoving=!1,C.mousedown=!0)})),m.map.addEventListener("mouseleave",(e=>{C.clear()})),m.map.addEventListener("mouseup",(e=>{C.clear()})))}X.prototype={addParentLink:r,getObjById:a,judgeDirection:function(e,t){if(0===this.direction)e.className="lhs";else if(1===this.direction)e.className="rhs";else if(2===this.direction){p.querySelectorAll(".lhs").length<=p.querySelectorAll(".rhs").length?(e.className="lhs",t.direction=0):(e.className="rhs",t.direction=1)}},setNodeTopic:function(e,t){e.childNodes[0].textContent=t,e.nodeObj.topic=t,this.linkDiv()},createLink:function(e,t,n,i){const o=this.map.getBoundingClientRect();if(!e||!t)return;const a=e.getBoundingClientRect(),r=t.getBoundingClientRect(),s=(a.x+a.width/2-o.x)/this.scaleVal,c=(a.y+a.height/2-o.y)/this.scaleVal,d=(r.x+r.width/2-o.x)/this.scaleVal,h=(r.y+r.height/2-o.y)/this.scaleVal;let p,f,g,b;n?(p=s+i.delta1.x,f=c+i.delta1.y,g=d+i.delta2.x,b=h+i.delta2.y):(c+h)/2-c<=a.height/2?(p=(a.x+a.width-o.x)/this.scaleVal+100,f=c,g=(r.x+r.width-o.x)/this.scaleVal+100,b=h):(p=(s+d)/2,f=(c+h)/2,g=(s+d)/2,b=(c+h)/2);const x={cx:s,cy:c,w:a.width,h:a.height},M={cx:d,cy:h,w:r.width,h:r.height},y=function(e,t,n){let i,o;const a=(e.cy-n)/(t-e.cx);return a>e.h/e.w||a<-e.h/e.w?e.cy-n<0?(i=e.cx-e.h/2/a,o=e.cy+e.h/2):(i=e.cx+e.h/2/a,o=e.cy-e.h/2):e.cx-t<0?(i=e.cx+e.w/2,o=e.cy-e.w*a/2):(i=e.cx-e.w/2,o=e.cy+e.w*a/2),{x:i,y:o}}(x,p,f),v=y.x,N=y.y,z=function(e,t,n){let i,o;const a=(e.cy-n)/(t-e.cx);return a>e.h/e.w||a<-e.h/e.w?e.cy-n<0?(i=e.cx-e.h/2/a,o=e.cy+e.h/2):(i=e.cx+e.h/2/a,o=e.cy-e.h/2):e.cx-t<0?(i=e.cx+e.w/2,o=e.cy-e.w*a/2):(i=e.cx-e.w/2,o=e.cy+e.w*a/2),{x:i,y:o}}(M,g,b),C=z.x,k=z.y,w=function(e,t,n,i){const o=i-t,a=e-n;let r=Math.atan(Math.abs(o)/Math.abs(a))/3.14*180;a<0&&o>0&&(r=180-r),a<0&&o<0&&(r=180+r),a>0&&o<0&&(r=360-r);const l=r+30,s=r-30;return{x1:n+20*Math.cos(Math.PI*l/180),y1:i-20*Math.sin(Math.PI*l/180),x2:n+20*Math.cos(Math.PI*s/180),y2:i-20*Math.sin(Math.PI*s/180)}}(g,b,C,k),L=function(e,t){const n=m.createElementNS(u,"g"),i=m.createElementNS(u,"path"),o=m.createElementNS(u,"path");return o.setAttribute("d",t),o.setAttribute("stroke","rgb(235, 95, 82)"),o.setAttribute("fill","none"),o.setAttribute("stroke-linecap","cap"),o.setAttribute("stroke-width","2"),i.setAttribute("d",e),i.setAttribute("stroke","rgb(235, 95, 82)"),i.setAttribute("fill","none"),i.setAttribute("stroke-linecap","cap"),i.setAttribute("stroke-width","2"),n.appendChild(i),n.appendChild(o),n}(`M ${v} ${N} C ${p} ${f} ${g} ${b} ${C} ${k}`,`M ${w.x1} ${w.y1} L ${C} ${k} L ${w.x2} ${w.y2}`);let j;n?(j={id:i.id,label:"",from:e,to:t,delta1:{x:p-s,y:f-c},delta2:{x:g-d,y:b-h}},this.linkData[i.id]=j,L.linkObj=j,L.dataset.linkid=i.id):(j={id:l(),label:"",from:e,to:t,delta1:{x:p-s,y:f-c},delta2:{x:g-d,y:b-h}},this.linkData[j.id]=j,L.linkObj=j,L.dataset.linkid=j.id,this.currentLink=L),this.linkSvgGroup.appendChild(L),n||this.showLinkController(p,f,g,b,j,x,M)},layout:function(){this.root.innerHTML="",this.box.innerHTML="";const e=this.createTopic(this.nodeData);d(e,this.nodeData),e.draggable=!1,this.root.appendChild(e);const t=this.nodeData.children;if(t&&0!==t.length){if(2===this.direction){let e=0,n=0;t.map((t=>{0===t.direction?e+=1:1===t.direction?n+=1:e<=n?(t.direction=0,e+=1):(t.direction=1,n+=1)}))}this.layoutChildren(this.nodeData.children,this.box,this.direction)}},linkDiv:function(t){const n=this.mainNodeHorizontalGap||65,i=this.mainNodeVerticalGap||25,o=this.root;o.style.cssText=`top:${1e4-o.offsetHeight/2}px;left:${1e4-o.offsetWidth/2}px;`;const a=this.box.children;this.lines.innerHTML="";let r,l,s=0,d=0,h=0,p=0,m=0,u=0;if(2===this.direction){let e=0,t=0,n=0,o=0;for(let r=0;r<a.length;r++){const l=a[r];"lhs"===l.className?(m+=l.offsetHeight+i,n+=l.offsetHeight,e+=1):(u+=l.offsetHeight+i,o+=l.offsetHeight,t+=1)}m>u?(l=1e4-Math.max(m)/2,r="r",d=(m-o)/(t-1)):(l=1e4-Math.max(u)/2,r="l",d=(u-n)/(e-1))}else{for(let e=0;e<a.length;e++){s+=a[e].offsetHeight+i}l=1e4-s/2}const b=1e4-o.offsetWidth/2-n,M=1e4+o.offsetWidth/2+n;for(let n=0;n<a.length;n++){let s=1e4;const c=1e4;let m,u;const z=a[n],C=this.theme.palette,k=z.querySelector("me-tpc").nodeObj.branchColor||C[n%C.length],w=z.offsetHeight;"lhs"===z.className?(z.style.top=l+h+"px",z.style.left=b-z.offsetWidth+"px",m=b-e,u=l+h+w/2,h+="l"===r?w+d:w+i):(z.style.top=l+p+"px",z.style.left=M+"px",m=M+e,u=l+p+w/2,p+="r"===r?w+d:w+i);let L="";if(2===this.mainLinkStyle)2===this.direction&&(s="lhs"===z.className?1e4-o.offsetWidth/6:1e4+o.offsetWidth/6),L=v({x1:s,y1:c,x2:m,y2:u});else{const e=Math.abs(u-1e4)/(1e4-l);s="lhs"===z.className?1e4-o.offsetWidth/10-.25*(1-e)*(o.offsetWidth/2):1e4+o.offsetWidth/10+.25*(1-e)*(o.offsetWidth/2),L=N({x1:s,y1:c,x2:m,y2:u})}this.lines.appendChild(f(L,k));const j=z.children[0].children[1];if(j&&(j.style.top=(j.parentNode.offsetHeight-j.offsetHeight)/2+"px","lhs"===z.className?j.style.left="-40px":j.style.right="-40px"),(!t||t===a[n])&&z.childElementCount){const e=g("subLines");"svg"===z.lastChild.tagName&&z.lastChild.remove(),z.appendChild(e);const t=z.children[0],n=y(z.children[1].children,t,!0);e.appendChild(x(n,k))}}this.linkSvgGroup.innerHTML="";for(const e in this.linkData){const t=this.linkData[e];"string"==typeof t.from?this.createLink(c(t.from),c(t.to),!0,t):this.createLink(c(t.from.nodeObj.id),c(t.to.nodeObj.id),!0,t)}},layoutChildren:function(e,t,n){let i;i=t||p.createElement("me-children");for(let t=0;t<e.length;t++){const o=e[t],a=p.createElement("me-wrapper");0===n?a.className="lhs":1===n?a.className="rhs":2===n&&(0===o.direction?a.className="lhs":1===o.direction&&(a.className="rhs"));const r=this.createParent(o);if(o.children&&o.children.length>0){if(r.appendChild(h(o.expanded)),a.appendChild(r),!1!==o.expanded){const e=this.layoutChildren(o.children);a.appendChild(e)}}else a.appendChild(r);i.appendChild(a)}return i},createWrapper:function(e,t){const n=s.createElement("me-wrapper"),i=this.createParent(e);if(n.appendChild(i),!t&&e.children&&e.children.length>0&&(i.appendChild(h(e.expanded)),!1!==e.expanded)){const t=this.layoutChildren(e.children);n.appendChild(t)}return{grp:n,top:i}},createParent:function(e){const t=s.createElement("me-parent"),n=this.createTopic(e);return d(n,e),t.appendChild(n),t},createTopic:function(e){const t=s.createElement("me-tpc");return t.nodeObj=e,t.dataset.nodeid="me"+e.id,t.draggable=this.draggable,t},selectNode:function(e,t){if(e){if("string"==typeof e)return this.selectNode(c(e));this.currentNode&&(this.currentNode.className=""),e.className="selected",e.scrollIntoView({block:"nearest",inline:"nearest"}),this.currentNode=e,t?this.bus.fire("selectNewNode",e.nodeObj):this.bus.fire("selectNode",e.nodeObj)}},unselectNode:function(){this.currentNode&&(this.currentNode.className=""),this.currentNode=null,this.bus.fire("unselectNode")},selectNextSibling:function(){if(!this.currentNode||"meroot"===this.currentNode.dataset.nodeid)return;const e=this.currentNode.parentElement.parentElement.nextSibling;let t;const n=this.currentNode.parentElement.parentElement;if("rhs"===n.className||"lhs"===n.className){const e=this.mindElixirBox.querySelectorAll("."+n.className),i=Array.from(e).indexOf(n);if(!(i+1<e.length))return!1;t=e[i+1].firstChild.firstChild}else{if(!e)return!1;t=e.firstChild.firstChild}return this.selectNode(t),!0},selectPrevSibling:function(){if(!this.currentNode||"meroot"===this.currentNode.dataset.nodeid)return;const e=this.currentNode.parentElement.parentElement.previousSibling;let t;const n=this.currentNode.parentElement.parentElement;if("rhs"===n.className||"lhs"===n.className){const e=this.mindElixirBox.querySelectorAll("."+n.className),i=Array.from(e).indexOf(n);if(!(i-1>=0))return!1;t=e[i-1].firstChild.firstChild}else{if(!e)return!1;t=e.firstChild.firstChild}return this.selectNode(t),!0},selectFirstChild:function(){if(!this.currentNode)return;const e=this.currentNode.parentElement.nextSibling;if(e&&e.firstChild){const t=e.firstChild.firstChild.firstChild;this.selectNode(t)}},selectParent:function(){if(!this.currentNode||"meroot"===this.currentNode.dataset.nodeid)return;const e=this.currentNode.parentElement.parentElement.parentElement.previousSibling;if(e){const t=e.firstChild;this.selectNode(t)}},getDataString:function(){const e=M(this);return JSON.stringify(e,((e,t)=>{if("parent"!==e)return"from"===e||"to"===e?t.nodeObj.id:t}))},getData:function(){return JSON.parse(this.getDataString())},getDataMd:function(){const e=M(this).nodeData;let t="# "+e.topic+"\n\n";return function e(n,i){for(let o=0;o<n.length;o++)t+=i<=6?"".padStart(i,"#")+" "+n[o].topic+"\n\n":"".padStart(i-7,"\t")+"- "+n[o].topic+"\n",n[o].children&&e(n[o].children,i+1)}(e.children,2),t},scale:function(e){this.scaleVal=e,this.map.style.transform="scale("+e+")"},toCenter:function(){this.container.scrollTo(1e4-this.container.offsetWidth/2,1e4-this.container.offsetHeight/2)},focusNode:function(e){e.nodeObj.root||(null===this.tempDirection&&(this.tempDirection=this.direction),this.isFocusMode||(this.nodeDataBackup=this.nodeData,this.isFocusMode=!0),this.nodeData=e.nodeObj,this.nodeData.root=!0,this.initRight(),this.toCenter())},cancelFocus:function(){this.isFocusMode=!1,null!==this.tempDirection&&(delete this.nodeData.root,this.nodeData=this.nodeDataBackup,this.direction=this.tempDirection,this.tempDirection=null,this.refresh(),this.toCenter())},initLeft:function(){this.direction=0,this.refresh()},initRight:function(){this.direction=1,this.refresh()},initSide:function(){this.direction=2,this.refresh()},setLocale:function(e){this.locale=e,this.refresh()},expandNode:function(e,t){const n=e.nodeObj;"boolean"==typeof t?n.expanded=t:!1!==n.expanded?n.expanded=!1:n.expanded=!0,this.layout(),this.linkDiv(),this.bus.fire("expandNode",n)},refresh:function(e){e&&(this.nodeData=e.nodeData,this.linkData=e.linkData||{}),this.addParentLink(this.nodeData),this.layout(),this.linkDiv()},init:function(e){e.direction&&(this.direction=e.direction),this.nodeData=e.nodeData,this.linkData=e.linkData||{},this.toolBar&&W(this),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&this.mobileMenu?function(e,t){const n=(e,t)=>{const n=document.createElement("div");return n.id=e,n.innerHTML=`<svg class="icon" aria-hidden="true">\n <use xlink:href="#icon-${t}"></use>\n </svg>`,n},i=n("cm-add_child","zijiedian"),o=n("cm-add_sibling","tongjijiedian-"),a=n("cm-remove_child","shanchu2"),r=n("cm-up","rising"),l=n("cm-down","falling"),s=n("cm-edit","edit"),c=document.createElement("ul");if(c.className="menu-list",t&&t.extend)for(let e=0;e<t.extend.length;e++){const i=t.extend[e],o=n(i.name,i.name);c.appendChild(o),o.onclick=e=>{i.onclick(e)}}const d=document.createElement("mmenu");d.className="mobile-menu",d.appendChild(i),d.appendChild(o),d.appendChild(a),d.appendChild(r),d.appendChild(l),d.appendChild(s),d.hidden=!0,e.container.append(d);let h=!0;e.bus.addListener("unselectNode",(function(){d.hidden=!0})),e.bus.addListener("selectNode",(function(e){d.hidden=!1,h=!!e.root})),d.onclick=e=>{e.target===d&&(d.hidden=!0)},i.onclick=t=>{e.addChild()},o.onclick=t=>{h||e.insertSibling()},a.onclick=t=>{h||e.removeNode()},r.onclick=t=>{h||e.moveUpNode()},l.onclick=t=>{h||e.moveDownNode()},s.onclick=t=>{e.beginEdit()}}(this):this.contextMenu&&Z(this,this.contextMenuOption);const t=this.theme.cssVar,n=Object.keys(t);for(let e=0;e<n.length;e++){const i=n[e];this.mindElixirBox.style.setProperty(i,t[i])}r(this.nodeData),this.toCenter(),this.layout(),this.linkDiv()}},X.LEFT=0,X.RIGHT=1,X.SIDE=2,X.version="0.19.4",X.E=c;const K=X})(),i=i.default})()));
package/dist/example1.js CHANGED
@@ -1 +1 @@
1
- !function(d,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.example1=e():d.example1=e()}(self,(function(){return(()=>{"use strict";var d={d:(e,i)=>{for(var c in i)d.o(i,c)&&!d.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:i[c]})},o:(d,e)=>Object.prototype.hasOwnProperty.call(d,e)},e={};d.d(e,{default:()=>i});const i={direction:0,nodeData:{id:"root",topic:"Mind Elixir",root:!0,children:[{topic:"logo",id:"56dae51a90d350a8",direction:0,expanded:!0,children:[{topic:"mind-elixir",image:{url:"https://raw.githubusercontent.com/ssshooter/mind-elixir-core/master/images/logo.png",height:90,width:300}}]},{topic:"What is Minde Elixir",id:"bd4313fbac40284b",direction:0,expanded:!0,children:[{topic:"A mind map core",id:"beeb823afd6d2114"},{topic:"Free",id:"c1f068377de9f3a0"},{topic:"Open-Source",id:"c1f06d38a09f23ca"},{topic:"Use without JavaScript framework",id:"c1f06e4cbcf16463",expanded:!0,children:[]},{topic:"Use in your own project",id:"c1f1f11a7fbf7550",children:[{topic:"import MindElixir from 'mind-elixir'",id:"c1f1e245b0a89f9b"},{topic:"new MindElixir({...}).init(data)",id:"c1f1ebc7072c8928"}]},{topic:"Easy to use",id:"c1f0723c07b408d7",expanded:!0,children:[{topic:"Use it like other mind map application",id:"c1f09612fd89920d"}]}]},{topic:"Basics",id:"bd1b66c4b56754d9",direction:0,expanded:!0,children:[{topic:"tab - Create a child node",id:"bd1b6892bcab126a"},{topic:"enter - Create a sibling node",id:"bd1b6b632a434b27"},{topic:"del - Remove a node",id:"bd1b983085187c0a"}]},{topic:"Focus mode",id:"bd1b9b94a9a7a913",direction:1,expanded:!0,children:[{topic:"Right click and select Focus Mode",id:"bd1bb2ac4bbab458"},{topic:"Right click and select Cancel Focus Mode",id:"bd1bb4b14d6697c3"}]},{topic:"Left menu",id:"bd1b9d1816ede134",direction:0,expanded:!0,children:[{topic:"Node distribution",id:"bd1ba11e620c3c1a",expanded:!0,children:[{topic:"Left",id:"bd1c1cb51e6745d3"},{topic:"Right",id:"bd1c1e12fd603ff6"},{topic:"Both l & r",id:"bd1c1f03def5c97b"}]}]},{topic:"Bottom menu",id:"bd1ba66996df4ba4",direction:1,expanded:!0,children:[{topic:"Full screen",id:"bd1ba81d9bc95a7e"},{topic:"Return to Center",id:"bd1babdd5c18a7a2"},{topic:"Zoom in",id:"bd1bae68e0ab186e"},{topic:"Zoom out",id:"bd1bb06377439977"}]},{topic:"Link",id:"bd1beff607711025",direction:0,expanded:!0,children:[{topic:"Right click and select Link",id:"bd1bf320da90046a"},{topic:"Click the target you want to link",id:"bd1bf6f94ff2e642"},{topic:"Modify link with control points",id:"bd1c0c4a487bd036"}]},{topic:"Node style",id:"bd1c217f9d0b20bd",direction:0,expanded:!0,children:[{topic:"Font Size",id:"bd1c24420cd2c2f5",style:{fontSize:"32",color:"#3298db"}},{topic:"Font Color",id:"bd1c2a59b9a2739c",style:{color:"#c0392c"}},{topic:"Background Color",id:"bd1c2de33f057eb4",style:{color:"#bdc3c7",background:"#2c3e50"}},{topic:"Add tags",id:"bd1cff58364436d0",tags:["Completed"]},{topic:"Add icons",id:"bd1d0317f7e8a61a",icons:["😂"],tags:["www"]},{topic:"Bolder",id:"bd41fd4ca32322a4",style:{fontWeight:"bold"}},{topic:"Hyper link",id:"bd41fd4ca32322a5",hyperLink:"https://github.com/ssshooter/mind-elixir-core"}]},{topic:"Draggable",id:"bd1f03fee1f63bc6",direction:1,expanded:!0,children:[{topic:"Drag a node to another node\nand the former one will become a child node of latter one",id:"bd1f07c598e729dc"}]},{topic:"TODO",id:"bd1facea32a1967c",direction:1,expanded:!0,children:[{topic:"Add image",id:"bd1fb1ec53010749"},{topic:"Free node (position)",id:"bd42d3e3bee992b9"},{topic:"Style adjustment",id:"beeb7f3db6ad6496"}]},{topic:"Export data",id:"beeb7586973430db",direction:1,expanded:!0,children:[{topic:"JSON",id:"beeb784cc189375f"},{topic:"HTML",id:"beeb7a6bec2d68f5"}]},{topic:"Caution",id:"bd42dad21aaf6bae",direction:0,style:{background:"#f1c40e"},expanded:!0,children:[{topic:"Only save manually",id:"bd42e1d0163ebf04",expanded:!0,children:[{topic:"Save button in the top-right corner",id:"bd42e619051878b3",expanded:!0,children:[]},{topic:"ctrl + S",id:"bd42e97d7ac35e99"}]}]}],expanded:!0},linkData:{}};return e=e.default})()}));
1
+ !function(d,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.example1=e():d.example1=e()}(self,(()=>(()=>{"use strict";var d={d:(e,i)=>{for(var c in i)d.o(i,c)&&!d.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:i[c]})},o:(d,e)=>Object.prototype.hasOwnProperty.call(d,e)},e={};d.d(e,{default:()=>i});const i={direction:0,theme:{name:"Dark",palette:["#848FA0","#748BE9","#D2F9FE","#4145A5","#789AFA","#706CF4","#EF987F","#775DD5","#FCEECF","#DA7FBC"],cssVar:{"--main-color":"#ffffff","--main-bgcolor":"#4c4f69","--color":"#cccccc","--bgcolor":"#252526"}},nodeData:{id:"me-root",topic:"Mind Elixir",root:!0,children:[{topic:"logo2",id:"56dae51a90d350a8",direction:0,expanded:!0,children:[{topic:"mind-elixir",image:{url:"https://raw.githubusercontent.com/ssshooter/mind-elixir-core/master/images/logo2.png",height:90,width:90}}]},{topic:"What is Minde Elixir",id:"bd4313fbac40284b",direction:0,expanded:!0,children:[{topic:"A mind map core",id:"beeb823afd6d2114"},{topic:"Free",id:"c1f068377de9f3a0"},{topic:"Open-Source",id:"c1f06d38a09f23ca"},{topic:"Use without JavaScript framework",id:"c1f06e4cbcf16463",expanded:!0,children:[]},{topic:"Use in your own project",id:"c1f1f11a7fbf7550",children:[{topic:"import MindElixir from 'mind-elixir'",id:"c1f1e245b0a89f9b"},{topic:"new MindElixir({...}).init(data)",id:"c1f1ebc7072c8928"}]},{topic:"Easy to use",id:"c1f0723c07b408d7",expanded:!0,children:[{topic:"Use it like other mind map application",id:"c1f09612fd89920d"}]}]},{topic:"Basics",id:"bd1b66c4b56754d9",direction:0,expanded:!0,children:[{topic:"tab - Create a child node",id:"bd1b6892bcab126a"},{topic:"enter - Create a sibling node",id:"bd1b6b632a434b27"},{topic:"del - Remove a node",id:"bd1b983085187c0a"}]},{topic:"Focus mode",id:"bd1b9b94a9a7a913",direction:1,expanded:!0,children:[{topic:"Right click and select Focus Mode",id:"bd1bb2ac4bbab458"},{topic:"Right click and select Cancel Focus Mode",id:"bd1bb4b14d6697c3"}]},{topic:"Left menu",id:"bd1b9d1816ede134",direction:0,expanded:!0,children:[{topic:"Node distribution",id:"bd1ba11e620c3c1a",expanded:!0,children:[{topic:"Left",id:"bd1c1cb51e6745d3"},{topic:"Right",id:"bd1c1e12fd603ff6"},{topic:"Both l & r",id:"bd1c1f03def5c97b"}]}]},{topic:"Bottom menu",id:"bd1ba66996df4ba4",direction:1,expanded:!0,children:[{topic:"Full screen",id:"bd1ba81d9bc95a7e"},{topic:"Return to Center",id:"bd1babdd5c18a7a2"},{topic:"Zoom in",id:"bd1bae68e0ab186e"},{topic:"Zoom out",id:"bd1bb06377439977"}]},{topic:"Link",id:"bd1beff607711025",direction:0,expanded:!0,children:[{topic:"Right click and select Link",id:"bd1bf320da90046a"},{topic:"Click the target you want to link",id:"bd1bf6f94ff2e642"},{topic:"Modify link with control points",id:"bd1c0c4a487bd036"}]},{topic:"Node style",id:"bd1c217f9d0b20bd",direction:0,expanded:!0,children:[{topic:"Font Size",id:"bd1c24420cd2c2f5",style:{fontSize:"32",color:"#3298db"}},{topic:"Font Color",id:"bd1c2a59b9a2739c",style:{color:"#c0392c"}},{topic:"Background Color",id:"bd1c2de33f057eb4",style:{color:"#bdc3c7",background:"#2c3e50"}},{topic:"Add tags",id:"bd1cff58364436d0",tags:["Completed"]},{topic:"Add icons",id:"bd1d0317f7e8a61a",icons:["😂"],tags:["www"]},{topic:"Bolder",id:"bd41fd4ca32322a4",style:{fontWeight:"bold"}},{topic:"Hyper link",id:"bd41fd4ca32322a5",hyperLink:"https://github.com/ssshooter/mind-elixir-core"}]},{topic:"Draggable",id:"bd1f03fee1f63bc6",direction:1,expanded:!0,children:[{topic:"Drag a node to another node\nand the former one will become a child node of latter one",id:"bd1f07c598e729dc"}]},{topic:"TODO",id:"bd1facea32a1967c",direction:1,expanded:!0,children:[{topic:"Add image",id:"bd1fb1ec53010749"},{topic:"Free node (position)",id:"bd42d3e3bee992b9"},{topic:"Style adjustment",id:"beeb7f3db6ad6496"}]},{topic:"Export data",id:"beeb7586973430db",direction:1,expanded:!0,children:[{topic:"JSON",id:"beeb784cc189375f"},{topic:"HTML",id:"beeb7a6bec2d68f5"}]},{topic:"Caution",id:"bd42dad21aaf6bae",direction:0,style:{background:"#f1c40e"},expanded:!0,children:[{topic:"Only save manually",id:"bd42e1d0163ebf04",expanded:!0,children:[{topic:"Save button in the top-right corner",id:"bd42e619051878b3",expanded:!0,children:[]},{topic:"ctrl + S",id:"bd42e97d7ac35e99"}]}]}],expanded:!0},linkData:{}};return e=e.default})()));
package/dist/example2.js CHANGED
@@ -1 +1 @@
1
- !function(e,d){"object"==typeof exports&&"object"==typeof module?module.exports=d():"function"==typeof define&&define.amd?define([],d):"object"==typeof exports?exports.example2=d():e.example2=d()}(self,(function(){return(()=>{"use strict";var e={d:(d,t)=>{for(var i in t)e.o(t,i)&&!e.o(d,i)&&Object.defineProperty(d,i,{enumerable:!0,get:t[i]})},o:(e,d)=>Object.prototype.hasOwnProperty.call(e,d)},d={};e.d(d,{default:()=>t});const t={direction:1,nodeData:{id:"root",topic:"HTML structure",root:!0,children:[{topic:"div.map-container",id:"33905a6bde6512e4",expanded:!0,children:[{topic:"div.map-canvas",id:"33905d3c66649e8f",tags:["A special case of grp tag"],expanded:!0,children:[{topic:"root",id:"33906b754897b9b9",tags:["A special case of t tag"],expanded:!0,children:[{topic:"tpc",id:"33b5cbc93b9968ab"}]},{topic:"children.box",id:"33906db16ed7f956",expanded:!0,children:[{topic:"grp(group)",id:"33907d9a3664cc8a",expanded:!0,children:[{topic:"t(top)",id:"3390856d09415b95",expanded:!0,children:[{topic:"tpc(topic)",id:"33908dd36c7d32c5",expanded:!0,children:[{topic:"text",id:"3391630d4227e248"},{topic:"icons",id:"33916d74224b141f"},{topic:"tags",id:"33916421bfff1543"}],tags:["E() function return"]},{topic:"epd(expander)",id:"33909032ed7b5e8e",tags:["If had child"]}],tags:["createTop retun"]},{topic:"children",id:"339087e1a8a5ea68",expanded:!0,children:[{topic:"grp",id:"3390930112ea7367",tags:["what add node actually do is to append grp tag to children"]},{topic:"grp...",id:"3390940a8c8380a6"}],tags:["createChildren return"]},{topic:"svg.subLines",id:"33908986b6336a4f"}],tags:["have child"]},{topic:"grp",id:"339081c3c5f57756",expanded:!0,children:[{topic:"t",id:"33b6160ec048b997",expanded:!0,children:[{topic:"tpc",id:"33b616f9fe7763fc"}]}],tags:["no child"]},{topic:"grp...",id:"33b61346707af71a"}]},{topic:"svg.lines",id:"3390707d68c0779d"},{topic:"svg.linkcontroller",id:"339072cb6cf95295"},{topic:"svg.topiclinks",id:"3390751acbdbdb9f"}]},{topic:"cmenu",id:"33905f95aeab942d"},{topic:"toolbar.rb",id:"339060ac0343f0d7"},{topic:"toolbar.lt",id:"3390622b29323de9"},{topic:"nmenu",id:"3390645e6d7c2b4e"}]}]},linkData:{}};return d=d.default})()}));
1
+ !function(e,d){"object"==typeof exports&&"object"==typeof module?module.exports=d():"function"==typeof define&&define.amd?define([],d):"object"==typeof exports?exports.example2=d():e.example2=d()}(self,(()=>(()=>{"use strict";var e={d:(d,i)=>{for(var t in i)e.o(i,t)&&!e.o(d,t)&&Object.defineProperty(d,t,{enumerable:!0,get:i[t]})},o:(e,d)=>Object.prototype.hasOwnProperty.call(e,d)},d={};e.d(d,{default:()=>i});const i={direction:1,nodeData:{id:"me-root",topic:"HTML structure",root:!0,children:[{topic:"div.map-container",id:"33905a6bde6512e4",expanded:!0,children:[{topic:"div.map-canvas",id:"33905d3c66649e8f",tags:["A special case of a `grp` tag"],expanded:!0,children:[{topic:"me-root",id:"33906b754897b9b9",tags:["A special case of a `t` tag"],expanded:!0,children:[{topic:"ME-TPC",id:"33b5cbc93b9968ab"}]},{topic:"children.box",id:"33906db16ed7f956",expanded:!0,children:[{topic:"grp(group)",id:"33907d9a3664cc8a",expanded:!0,children:[{topic:"t(top)",id:"3390856d09415b95",expanded:!0,children:[{topic:"tpc(topic)",id:"33908dd36c7d32c5",expanded:!0,children:[{topic:"text",id:"3391630d4227e248"},{topic:"icons",id:"33916d74224b141f"},{topic:"tags",id:"33916421bfff1543"}],tags:["E() function return"]},{topic:"epd(expander)",id:"33909032ed7b5e8e",tags:["If had child"]}],tags:["createParent retun"]},{topic:"me-children",id:"339087e1a8a5ea68",expanded:!0,children:[{topic:"me-wrapper",id:"3390930112ea7367",tags:["what add node actually do is to append grp tag to children"]},{topic:"grp...",id:"3390940a8c8380a6"}],tags:["layoutChildren return"]},{topic:"svg.subLines",id:"33908986b6336a4f"}],tags:["have child"]},{topic:"me-wrapper",id:"339081c3c5f57756",expanded:!0,children:[{topic:"ME-PARENT",id:"33b6160ec048b997",expanded:!0,children:[{topic:"ME-TPC",id:"33b616f9fe7763fc"}]}],tags:["no child"]},{topic:"grp...",id:"33b61346707af71a"}]},{topic:"svg.lines",id:"3390707d68c0779d"},{topic:"svg.linkcontroller",id:"339072cb6cf95295"},{topic:"svg.topiclinks",id:"3390751acbdbdb9f"}]},{topic:"cmenu",id:"33905f95aeab942d"},{topic:"toolbar.rb",id:"339060ac0343f0d7"},{topic:"toolbar.lt",id:"3390622b29323de9"},{topic:"nmenu",id:"3390645e6d7c2b4e"}]}]},linkData:{}};return d=d.default})()));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mind-elixir",
3
- "version": "1.1.5",
3
+ "version": "2.0.0",
4
4
  "description": "Mind elixir is a free open source mind map core.",
5
5
  "main": "dist/MindElixir.js",
6
6
  "scripts": {
@@ -45,13 +45,11 @@
45
45
  "@typescript-eslint/parser": "^5.52.0",
46
46
  "babel-loader": "^8.0.6",
47
47
  "better-docs": "^2.3.2",
48
- "canvg": "^3.0.6",
49
48
  "css-loader": "^6.7.1",
50
49
  "docdash": "^1.1.1",
51
50
  "eslint": "^8.34.0",
52
51
  "eslint-config-prettier": "^8.6.0",
53
52
  "eslint-plugin-prettier": "^4.2.1",
54
- "file-loader": "^6.2.0",
55
53
  "html-webpack-plugin": "^5.3.2",
56
54
  "husky": "^8.0.3",
57
55
  "jest": "^27.5.1",
@@ -69,7 +67,7 @@
69
67
  "ts-loader": "^9.2.6",
70
68
  "typescript": "^4.4.3",
71
69
  "url-loader": "^4.1.1",
72
- "webpack": "5.70.0",
70
+ "webpack": "5.76.0",
73
71
  "webpack-bundle-analyzer": "^4.5.0",
74
72
  "webpack-cli": "^4.9.2",
75
73
  "webpack-dev-server": "^4.7.4"
package/readme.cn.md CHANGED
@@ -1,6 +1,6 @@
1
- ![mindelixir logo](https://raw.githubusercontent.com/ssshooter/mind-elixir-core/master/images/logo.png)
1
+ <p align="center"><a href="mind-elixir.com" target="_blank" rel="noopener noreferrer"><img width="150" src="https://raw.githubusercontent.com/ssshooter/mind-elixir-core/master/images/logo2.png" alt="mindelixir logo2"></a></p>
2
2
 
3
- <p>
3
+ <p align="center">
4
4
  <a href="https://www.npmjs.com/package/mind-elixir">
5
5
  <img src="https://img.shields.io/npm/v/mind-elixir" alt="version">
6
6
  </a>
@@ -78,7 +78,7 @@ let options = {
78
78
  direction: MindElixir.LEFT,
79
79
  // create new map data
80
80
  data: MindElixir.new('new topic') or example,
81
- // the data return from `.getAllData()`
81
+ // the data return from `.getData()`
82
82
  draggable: true, // default true
83
83
  contextMenu: true, // default true
84
84
  toolBar: true, // default true
@@ -86,9 +86,9 @@ let options = {
86
86
  keypress: true, // default true
87
87
  locale: 'en', // [zh_CN,zh_TW,en,ja,pt] waiting for PRs
88
88
  overflowHidden: false, // default false
89
- primaryLinkStyle: 2, // [1,2] default 1
90
- primaryNodeVerticalGap: 15, // default 25
91
- primaryNodeHorizontalGap: 15, // default 65
89
+ mainLinkStyle: 2, // [1,2] default 1
90
+ mainNodeVerticalGap: 15, // default 25
91
+ mainNodeHorizontalGap: 15, // default 65
92
92
  contextMenuOption: {
93
93
  focus: true,
94
94
  link: true,
@@ -165,9 +165,9 @@ mind.bus.addListener('expandNode', node => {
165
165
  ### 数据导出
166
166
 
167
167
  ```javascript
168
- mind.getAllData() // javascript object, see src/example.js
169
- mind.getAllDataString() // stringify object
170
- mind.getAllDataMd() // markdown
168
+ mind.getData() // javascript object, see src/example.js
169
+ mind.getDataString() // stringify object
170
+ mind.getDataMd() // markdown
171
171
  ```
172
172
 
173
173
  ### 输出图片
@@ -207,7 +207,3 @@ let mind = new MindElixir({
207
207
  ## 文档
208
208
 
209
209
  https://doc.mind-elixir.com/
210
-
211
- ## 感谢
212
-
213
- [canvg](https://github.com/canvg/canvg)
package/readme.md CHANGED
@@ -1,6 +1,6 @@
1
- ![mindelixir logo](https://raw.githubusercontent.com/ssshooter/mind-elixir-core/master/images/logo.png)
1
+ <p align="center"><a href="mind-elixir.com" target="_blank" rel="noopener noreferrer"><img width="150" src="https://raw.githubusercontent.com/ssshooter/mind-elixir-core/master/images/logo2.png" alt="mindelixir logo2"></a><h1 align="center">Mind Elixir</h1></p>
2
2
 
3
- <p>
3
+ <p align="center">
4
4
  <a href="https://www.npmjs.com/package/mind-elixir">
5
5
  <img src="https://img.shields.io/npm/v/mind-elixir" alt="version">
6
6
  </a>
@@ -20,11 +20,13 @@
20
20
 
21
21
  Mind elixir is a free open source mind map core.
22
22
 
23
+ - Zero dependency
23
24
  - High performance
24
25
  - Lightweight
25
26
  - Framework agnostic
26
27
  - Pluginable
27
28
  - Build-in drag and drop / node edit plugin
29
+ - Styling your node with CSS
28
30
 
29
31
  <details>
30
32
  <summary>Table of Contents</summary>
@@ -46,6 +48,7 @@ Mind elixir is a free open source mind map core.
46
48
  - [Event Handling](#event-handling)
47
49
  - [Data Export And Import](#data-export-and-import)
48
50
  - [Operation Guards](#operation-guards)
51
+ - [Theme](#theme)
49
52
  - [Not only core](#not-only-core)
50
53
 
51
54
  </details>
@@ -66,11 +69,11 @@ https://mind-elixir.com/
66
69
 
67
70
  https://codepen.io/ssshooter/pen/GVQRYK
68
71
 
69
- #### Use with React
72
+ #### Use with React
70
73
 
71
74
  https://codesandbox.io/s/mind-elixir-react-9sisb
72
75
 
73
- #### Use with Vue
76
+ #### Use with Vue
74
77
 
75
78
  https://codesandbox.io/s/mind-elixir-vue-nqjjl
76
79
 
@@ -128,9 +131,9 @@ let options = {
128
131
  keypress: true, // default true
129
132
  locale: 'en', // [zh_CN,zh_TW,en,ja,pt,ru] waiting for PRs
130
133
  overflowHidden: false, // default false
131
- primaryLinkStyle: 2, // [1,2] default 1
132
- primaryNodeVerticalGap: 15, // default 25
133
- primaryNodeHorizontalGap: 15, // default 65
134
+ mainLinkStyle: 2, // [1,2] default 1
135
+ mainNodeVerticalGap: 15, // default 25
136
+ mainNodeHorizontalGap: 15, // default 65
134
137
  contextMenuOption: {
135
138
  focus: true,
136
139
  link: true,
@@ -162,7 +165,7 @@ mind.install(plugin) // install your plugin
162
165
  // create new map data
163
166
  const data = MindElixir.new('new topic')
164
167
  // or `example`
165
- // or the data return from `.getAllData()`
168
+ // or the data return from `.getData()`
166
169
  mind.init(data)
167
170
 
168
171
  // get a node
@@ -173,7 +176,7 @@ E('node-id')
173
176
 
174
177
  ```javascript
175
178
  // whole node data structure up to now
176
- nodeData = {
179
+ const nodeData = {
177
180
  topic: 'node topic',
178
181
  id: 'bd1c24420cd2c2f5',
179
182
  style: { fontSize: '32', color: '#3298db', background: '#ecf0f1' },
@@ -182,10 +185,10 @@ nodeData = {
182
185
  icons: ['😀'],
183
186
  hyperLink: 'https://github.com/ssshooter/mind-elixir-core',
184
187
  image: {
185
- url: 'https://raw.githubusercontent.com/ssshooter/mind-elixir-core/master/images/logo.png', // required
188
+ url: 'https://raw.githubusercontent.com/ssshooter/mind-elixir-core/master/images/logo2.png', // required
186
189
  // you need to query the height and width of the image and calculate the appropriate value to display the image
187
190
  height: 90, // required
188
- width: 300, // required
191
+ width: 90, // required
189
192
  },
190
193
  children: [
191
194
  {
@@ -227,9 +230,9 @@ mind.bus.addListener('expandNode', node => {
227
230
 
228
231
  ```javascript
229
232
  // data export
230
- const data = mind.getAllData() // javascript object, see src/example.js
231
- mind.getAllDataString() // stringify object
232
- mind.getAllDataMd() // markdown
233
+ const data = mind.getData() // javascript object, see src/example.js
234
+ mind.getDataString() // stringify object
235
+ mind.getDataMd() // markdown
233
236
 
234
237
  // data import
235
238
  // initiate
@@ -263,6 +266,28 @@ let mind = new MindElixir({
263
266
  })
264
267
  ```
265
268
 
269
+ ## Theme
270
+
271
+ ```javascript
272
+ const options = {
273
+ // ...
274
+ theme: {
275
+ name: 'Dark',
276
+ // main lines color palette
277
+ palette: ['#848FA0', '#748BE9', '#D2F9FE', '#4145A5', '#789AFA', '#706CF4', '#EF987F', '#775DD5', '#FCEECF', '#DA7FBC'],
278
+ // overwrite css variables
279
+ cssVar: {
280
+ '--main-color': '#ffffff',
281
+ '--main-bgcolor': '#4c4f69',
282
+ '--color': '#cccccc',
283
+ '--bgcolor': '#252526',
284
+ },
285
+ // all variables see /src/index.less
286
+ },
287
+ // ...
288
+ }
289
+ ```
290
+
266
291
  ## Not only core
267
292
 
268
293
  - [@mind-elixir/export-xmind](https://github.com/ssshooter/export-xmind)