mind-elixir-yg 1.0.1 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/MindElixir.js +55 -0
- package/dist/MindElixirLite.js +21 -21
- package/dist/painter.js +16 -0
- package/package.json +1 -1
|
@@ -0,0 +1,55 @@
|
|
|
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 n={8074:(e,t,n)=>{(e.exports=n(3645)(!1)).push([e.id,".mind-elixir {\n position: relative;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\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 [contentEditable] {\n position: absolute;\n top: 0;\n left: 0;\n background-color: #00aaff;\n max-width: 300px;\n z-index: 11;\n user-select: auto;\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 [contentEditable] {\n position: absolute;\n top: 0;\n left: 0;\n background-color: #fff;\n max-width: 300px;\n padding: 8px 10px;\n z-index: 11;\n direction: ltr;\n user-select: auto;\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}\n.map-container .box t tpc [contentEditable] {\n position: absolute;\n top: 0;\n left: 0;\n background-color: #fff;\n max-width: 300px;\n padding: 5px;\n z-index: 11;\n direction: ltr;\n user-select: auto;\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: 12px;\n width: 12px;\n line-height: 12px;\n text-align: center;\n border-radius: 50%;\n border: 1px solid #4f4f4f;\n background-color: #fff;\n pointer-events: all;\n z-index: 9;\n}\n.map-container .box t epd.minus {\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 .svg2nd,\n.map-container .svg3rd,\n.map-container .topiclinks,\n.map-container .linkcontroller {\n position: absolute;\n height: 100%;\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 .svg2nd,\n.map-container .svg3rd {\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.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",""])},5165:(e,t,n)=>{(e.exports=n(3645)(!1)).push([e.id,"cmenu {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 99;\n}\ncmenu .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}\ncmenu .menu-list * {\n transition: color 0.4s, background-color 0.4s;\n}\ncmenu .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}\ncmenu .menu-list li a {\n color: #333;\n text-decoration: none;\n}\ncmenu .menu-list li.disabled {\n color: #5e5e5e;\n background-color: #f7f7f7;\n}\ncmenu .menu-list li.disabled:hover {\n cursor: default;\n background-color: #f7f7f7;\n}\ncmenu .menu-list li:hover {\n cursor: pointer;\n background-color: #ecf0f1;\n}\ncmenu .menu-list li:first-child {\n border-radius: 5px 5px 0 0;\n}\ncmenu .menu-list li:last-child {\n border-bottom: 0;\n border-radius: 0 0 5px 5px;\n}\ncmenu .menu-list li span:last-child {\n float: right;\n}\n",""])},7787:(e,t,n)=>{(e.exports=n(3645)(!1)).push([e.id,"mmenu {\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}\nmmenu * {\n transition: color 0.4s, background-color 0.4s;\n}\nmmenu 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}\nmmenu div a {\n color: #333;\n text-decoration: none;\n}\nmmenu div.disabled {\n color: #5e5e5e;\n background-color: #f7f7f7;\n}\nmmenu div.disabled:hover {\n cursor: default;\n background-color: #f7f7f7;\n}\nmmenu div:hover {\n cursor: pointer;\n background-color: #ecf0f1;\n}\n",""])},9519:(e,t,n)=>{(e.exports=n(3645)(!1)).push([e.id,"nmenu {\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}\nnmenu.close {\n height: 30px;\n width: 50px;\n overflow: hidden;\n}\nnmenu .button-container {\n padding: 3px 0;\n direction: rtl;\n}\nnmenu #nm-tag {\n margin-top: 20px;\n}\nnmenu .nm-fontsize-container {\n display: flex;\n justify-content: space-around;\n margin-bottom: 20px;\n}\nnmenu .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}\nnmenu .nm-fontcolor-container {\n margin-bottom: 10px;\n}\nnmenu input {\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}\nnmenu .split6 {\n display: inline-block;\n width: 16.66%;\n margin-bottom: 5px;\n}\nnmenu .palette {\n border-radius: 100%;\n width: 21px;\n height: 21px;\n border: 1px solid #edf1f2;\n margin: auto;\n}\nnmenu .nmenu-selected,\nnmenu .palette:hover {\n box-shadow: tomato 0 0 0 2px;\n background-color: #c7e9fa;\n}\nnmenu .size-selected {\n background-color: tomato !important;\n border-color: tomato;\n fill: white;\n color: white;\n}\nnmenu .size-selected svg {\n color: #fff;\n}\nnmenu .bof {\n text-align: center;\n}\nnmenu .bof span {\n display: inline-block;\n font-size: 14px;\n border-radius: 4px;\n padding: 2px 5px;\n}\nnmenu .bof .selected {\n background-color: tomato;\n color: white;\n}\n",""])},8301:(e,t,n)=>{(e.exports=n(3645)(!1)).push([e.id,"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}\ntoolbar span:active {\n opacity: 0.5;\n}\n.rb {\n right: 20px;\n bottom: 20px;\n font-family: iconfont;\n}\n.rb span + span {\n margin-left: 10px;\n}\n.lt {\n font-size: 20px;\n left: 20px;\n top: 20px;\n width: 20px;\n}\n.lt span {\n display: block;\n}\n.lt span + span {\n margin-top: 10px;\n}\n",""])},3645:e=>{"use strict";e.exports=function(n){var a=[];return a.toString=function(){return this.map(function(e){var t=function(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa)return e=function(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}(i),t=i.sources.map(function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"}),[n].concat(t).concat([e]).join("\n");return[n].join("\n")}(e,n);return e[2]?"@media "+e[2]+"{"+t+"}":t}).join("")},a.i=function(e,t){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},i=0;i<this.length;i++){var o=this[i][0];null!=o&&(n[o]=!0)}for(i=0;i<e.length;i++){var r=e[i];null!=r[0]&&n[r[0]]||(t&&!r[2]?r[2]=t:t&&(r[2]="("+r[2]+") and ("+t+")"),a.push(r))}},a}},6194:(e,t,n)=>{var i=n(8074),o=("string"==typeof i&&(i=[[e.id,i,""]]),{hmr:!0});o.transform=void 0,o.insertInto=void 0,n(6723)(i,o);i.locals&&(e.exports=i.locals)},6684:(e,t,n)=>{var i=n(5165),o=("string"==typeof i&&(i=[[e.id,i,""]]),{hmr:!0});o.transform=void 0,o.insertInto=void 0,n(6723)(i,o);i.locals&&(e.exports=i.locals)},9721:(e,t,n)=>{var i=n(7787),o=("string"==typeof i&&(i=[[e.id,i,""]]),{hmr:!0});o.transform=void 0,o.insertInto=void 0,n(6723)(i,o);i.locals&&(e.exports=i.locals)},3832:(e,t,n)=>{var i=n(9519),o=("string"==typeof i&&(i=[[e.id,i,""]]),{hmr:!0});o.transform=void 0,o.insertInto=void 0,n(6723)(i,o);i.locals&&(e.exports=i.locals)},485:(e,t,n)=>{var i=n(8301),o=("string"==typeof i&&(i=[[e.id,i,""]]),{hmr:!0});o.transform=void 0,o.insertInto=void 0,n(6723)(i,o);i.locals&&(e.exports=i.locals)},6723:(e,t,i)=>{var n,o,r,l={},c=(n=function(){return window&&document&&document.all&&!window.atob},function(){return o=void 0===o?n.apply(this,arguments):o}),a=(r={},function(e,t){if("function"==typeof e)return e();if(void 0===r[e]){t=function(e,t){return(t||document).querySelector(e)}.call(this,e,t);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}r[e]=t}return r[e]}),s=null,d=0,h=[],p=i(1947);function u(e,t){for(var n=0;n<e.length;n++){var i=e[n],o=l[i.id];if(o){o.refs++;for(var r=0;r<o.parts.length;r++)o.parts[r](i.parts[r]);for(;r<i.parts.length;r++)o.parts.push(x(i.parts[r],t))}else{for(var a=[],r=0;r<i.parts.length;r++)a.push(x(i.parts[r],t));l[i.id]={id:i.id,refs:1,parts:a}}}}function f(e,t){for(var n=[],i={},o=0;o<e.length;o++){var r=e[o],a=t.base?r[0]+t.base:r[0],r={css:r[1],media:r[2],sourceMap:r[3]};i[a]?i[a].parts.push(r):n.push(i[a]={id:a,parts:[r]})}return n}function m(e,t){var n=a(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var i=h[h.length-1];if("top"===e.insertAt)i?i.nextSibling?n.insertBefore(t,i.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),h.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");i=a(e.insertAt.before,n);n.insertBefore(t,i)}}function b(e){null!==e.parentNode&&(e.parentNode.removeChild(e),0<=(e=h.indexOf(e))&&h.splice(e,1))}function g(e){var t,n=document.createElement("style");return void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce&&(t=i.nc)&&(e.attrs.nonce=t),v(n,e.attrs),m(e,n),n}function v(t,n){Object.keys(n).forEach(function(e){t.setAttribute(e,n[e])})}function x(t,e){var n,i,o,r,a;if(e.transform&&t.css){if(!(r="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=r}return o=e.singleton?(r=d++,n=s=s||g(e),i=k.bind(null,n,r,!1),k.bind(null,n,r,!0)):t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(r=e,a=document.createElement("link"),void 0===r.attrs.type&&(r.attrs.type="text/css"),r.attrs.rel="stylesheet",v(a,r.attrs),m(r,a),n=a,i=function(e,t,n){var i=n.css,n=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&n;(t.convertToAbsoluteUrls||o)&&(i=p(i));n&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */");t=new Blob([i],{type:"text/css"}),o=e.href;e.href=URL.createObjectURL(t),o&&URL.revokeObjectURL(o)}.bind(null,n,e),function(){b(n),n.href&&URL.revokeObjectURL(n.href)}):(n=g(e),i=function(e,t){var n=t.css,t=t.media;t&&e.setAttribute("media",t);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),function(){b(n)}),i(t),function(e){e?e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap||i(t=e):o()}}e.exports=function(e,a){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(a=a||{}).attrs="object"==typeof a.attrs?a.attrs:{},a.singleton||"boolean"==typeof a.singleton||(a.singleton=c()),a.insertInto||(a.insertInto="head"),a.insertAt||(a.insertAt="bottom");var s=f(e,a);return u(s,a),function(e){for(var t=[],n=0;n<s.length;n++){var i=s[n];(o=l[i.id]).refs--,t.push(o)}e&&u(f(e,a),a);for(var o,n=0;n<t.length;n++)if(0===(o=t[n]).refs){for(var r=0;r<o.parts.length;r++)o.parts[r]();delete l[o.id]}}};y=[];var y,N=function(e,t){return y[e]=t,y.filter(Boolean).join("\n")};function k(e,t,n,i){var n=n?"":i.css;e.styleSheet?e.styleSheet.cssText=N(t,n):(i=document.createTextNode(n),(n=e.childNodes)[t]&&e.removeChild(n[t]),n.length?e.insertBefore(i,n[t]):e.appendChild(i))}},1947:e=>{e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,i=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){t=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(t)?e:(e=0===t.indexOf("//")?t:0===t.indexOf("/")?n+t:i+t.replace(/^\.\//,""),"url("+JSON.stringify(e)+")")})}},9857:()=>{var e,t,n,i,o,r,a=window,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&&!a.__iconfont__svg__cssinject__){a.__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(a){console}}function c(){o||(o=!0,n())}e=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?(n=t.firstChild).parentNode.insertBefore(i=e,n):t.appendChild(e))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(e,0):(t=function(){document.removeEventListener("DOMContentLoaded",t,!1),e()},document.addEventListener("DOMContentLoaded",t,!1)):document.attachEvent&&(n=e,i=a.document,o=!1,(r=function(){try{i.documentElement.doScroll("left")}catch(e){return void setTimeout(r,50)}c()})(),i.onreadystatechange=function(){"complete"==i.readyState&&(i.onreadystatechange=null,c())})}},i={},F.d=(e,t)=>{for(var n in t)F.o(t,n)&&!F.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},F.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),W={},(()=>{"use strict";F.d(W,{default:()=>q});const C=15,$=8;function g(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/"/g,""")}function o(t,n){if((n=n||this.nodeData).id===t)return n;if(!n.children||!n.children.length)return null;for(let e=0;e<n.children.length;e++){var i=o(t,n.children[e]);if(i)return i}}const i=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)}),S=(t,e)=>{if(t.parent=e,t.children)for(let e=0;e<t.children.length;e++)S(t.children[e],t)};function N(e,t,n,i){t=i-t,e-=n;let o=Math.atan(Math.abs(t)/Math.abs(e))/3.14*180;e<0&&0<t&&(o=180-o),e<0&&t<0&&(o=180+o);e=(o=0<e&&t<0?360-o:o)+30,t=o-30;return{x1:n+20*Math.cos(Math.PI*e/180),y1:i-20*Math.sin(Math.PI*e/180),x2:n+20*Math.cos(Math.PI*t/180),y2:i-20*Math.sin(Math.PI*t/180)}}function k(e,t,n){let i,o;var r=(e.cy-n)/(t-e.cx);return o=r>e.h/e.w||r<-e.h/e.w?e.cy-n<0?(i=e.cx-e.h/2/r,e.cy+e.h/2):(i=e.cx+e.h/2/r,e.cy-e.h/2):e.cx-t<0?(i=e.cx+e.w/2,e.cy-e.w*r/2):(i=e.cx-e.w/2,e.cy+e.w*r/2),{x:i,y:o}}function w(e,t,n){let i,o;var r=(e.cy-n)/(t-e.cx);return o=r>e.h/e.w||r<-e.h/e.w?e.cy-n<0?(i=e.cx-e.h/2/r,e.cy+e.h/2):(i=e.cx+e.h/2/r,e.cy-e.h/2):e.cx-t<0?(i=e.cx+e.w/2,e.cy-e.w*r/2):(i=e.cx-e.w/2,e.cy+e.w*r/2),{x:i,y:o}}function L(){return((new Date).getTime().toString(16)+Math.random().toString(16).substr(2)).substr(2,16)}function d(e){const t=e.parent.children;e=t.indexOf(e);return t.splice(e,1),t.length}const M={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);var 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 t(e){this.dom=e,this.mousedown=!1,this.lastX=null,this.lastY=null}t.prototype.init=function(e,i){this.handleMouseMove=e=>{if(e.stopPropagation(),this.mousedown){if(!this.lastX)return this.lastX=e.pageX,void(this.lastY=e.pageY);var t=this.lastX-e.pageX,n=this.lastY-e.pageY;i(t,n),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)},t.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)},t.prototype.clear=function(){this.mousedown=!1,this.lastX=null,this.lastY=null};function r(e,t){if(e.innerText=t.topic,t.style&&(e.style.color=t.style.color||"inherit",e.style.background=t.style.background||"inherit",e.style.fontSize=t.style.fontSize+"px",e.style.fontWeight=t.style.fontWeight||"normal"),t.hyperLink){const n=s.createElement("a");n.className="hyper-link",n.target="_blank",n.innerText="🔗",n.href=t.hyperLink,e.appendChild(n)}if(t.icons){const i=s.createElement("span");i.className="icons",i.innerHTML=t.icons.map(e=>`<span>${g(e)}</span>`).join(""),e.appendChild(i)}if(t.tags){const o=s.createElement("div");o.className="tags",o.innerHTML=t.tags.map(e=>`<span>${g(e)}</span>`).join(""),e.appendChild(o)}}const s=document,E=(e,t)=>{const n=t?t.mindElixirBox:s;return n.querySelector(`[data-nodeid=me${e}]`)};const h=function(e){const t=s.createElement("epd");return t.innerText=!1!==e?"-":"+",t.expanded=!1!==e,t.className=!1!==e?"minus":"",t};function j(e){const t=D.createElementNS(T,"svg");return t.setAttribute("class",e),t}function O(e,t,n,i){const o=D.createElementNS(T,"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}const D=document,T="http://www.w3.org/2000/svg";function n(e){return e.isFocusMode?e.nodeDataBackup:e.nodeData}const p=document;function a(e,t){if(e){const i=e.nodeObj;!1===i.expanded&&(this.expandNode(e,!0),e=E(i.id));t=t||this.generateNewObj();i.children?i.children.push(t):i.children=[t],S(this.nodeData);const o=e.parentElement;var{grp:e,top:n}=this.createGroup(t);if("T"===o.tagName){if(o.children[1])o.nextSibling.appendChild(e);else{const r=p.createElement("children");r.appendChild(e),o.appendChild(h(!0)),o.parentElement.insertBefore(r,o.nextSibling)}this.linkDiv(e.offsetParent)}else"ROOT"===o.tagName&&(this.processPrimaryNode(e,t),o.nextSibling.appendChild(e),this.linkDiv());return{newTop:n,newNodeObj:t}}}let z="";var e={addChild:"插入子节点",addSibling:"插入同级节点",removeNode:"删除节点",focus:"专注",cancelFocus:"取消专注",moveUp:"上移",moveDown:"下移",link:"连接",clickTips:"请点击目标节点",font:"文字",background:"背景",tag:"标签",icon:"图标",tagsSeparate:"多个标签半角逗号分隔",iconsSeparate:"多个图标半角逗号分隔"};const A={cn:e,zh_CN:e,zh_TW:{addChild:"插入子節點",addSibling:"插入同級節點",removeNode:"刪除節點",focus:"專注",cancelFocus:"取消專注",moveUp:"上移",moveDown:"下移",link:"連接",clickTips:"請點擊目標節點",font:"文字",background:"背景",tag:"標簽",icon:"圖標",tagsSeparate:"多個標簽半角逗號分隔",iconsSeparate:"多個圖標半角逗號分隔"},en:{addChild:"Add a child",addSibling:"Add a 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"},ja:{addChild:"子ノードを追加する",addSibling:"兄弟ノードを追加する",removeNode:"ノードを削除",focus:"集中",cancelFocus:"集中解除",moveUp:"上へ移動",moveDown:"下へ移動",link:"コネクト",clickTips:"ターゲットノードをクリックしてください",font:"フォント",background:"バックグラウンド",tag:"タグ",icon:"アイコン",tagsSeparate:"複数タグはカンマ区切り",iconsSeparate:"複数アイコンはカンマ区切り"},pt:{addChild:"Adicionar item filho",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"}};function H(i,t){var n=(e,t,n)=>{const i=document.createElement("li");return i.id=e,i.innerHTML=`<span>${g(t)}</span><span>${g(n)}</span>`,i};const o=A[i.locale]?i.locale:"en",e=n("cm-add_child",A[o].addChild,"tab"),r=n("cm-add_sibling",A[o].addSibling,"enter"),a=n("cm-remove_child",A[o].removeNode,"delete"),s=n("cm-fucus",A[o].focus,""),l=n("cm-unfucus",A[o].cancelFocus,""),c=n("cm-up",A[o].moveUp,"PgUp"),d=n("cm-down",A[o].moveDown,"Pgdn"),h=n("cm-down",A[o].link,""),p=document.createElement("ul");if(p.className="menu-list",p.appendChild(e),p.appendChild(r),p.appendChild(a),t&&!t.focus||(p.appendChild(s),p.appendChild(l)),p.appendChild(c),p.appendChild(d),t&&!t.link||p.appendChild(h),t&&t.extend)for(let e=0;e<t.extend.length;e++){const m=t.extend[e],b=n(m.name,m.name,m.key||"");p.appendChild(b),b.onclick=e=>{m.onclick(e)}}const u=document.createElement("cmenu");u.appendChild(p),u.hidden=!0,i.container.append(u);let f=!0;i.container.oncontextmenu=function(e){var t,n;e.preventDefault(),!i.editable||"TPC"===(t=e.target).tagName&&((f="ROOT"===t.parentElement.tagName)?(s.className="disabled",c.className="disabled",d.className="disabled",r.className="disabled",a.className="disabled"):(s.className="",c.className="",d.className="",r.className="",a.className=""),i.selectNode(t),u.hidden=!1,t=p.offsetHeight,n=p.offsetWidth,t+e.clientY>window.innerHeight?(p.style.top="",p.style.bottom="0px"):(p.style.bottom="",p.style.top=e.clientY+15+"px"),n+e.clientX>window.innerWidth?(p.style.left="",p.style.right="0px"):(p.style.right="",p.style.left=e.clientX+10+"px"))},u.onclick=e=>{e.target===u&&(u.hidden=!0)},e.onclick=e=>{i.addChild(),u.hidden=!0},r.onclick=e=>{f||(i.insertSibling(),u.hidden=!0)},a.onclick=e=>{f||(i.removeNode(),u.hidden=!0)},s.onclick=e=>{f||(i.focusNode(i.currentNode),u.hidden=!0)},l.onclick=e=>{i.cancelFocus(),u.hidden=!0},c.onclick=e=>{f||(i.moveUpNode(),u.hidden=!0)},d.onclick=e=>{f||(i.moveDownNode(),u.hidden=!0)},h.onclick=e=>{u.hidden=!0;const t=i.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})(A[o].clickTips);i.container.appendChild(n),i.map.addEventListener("click",e=>{e.preventDefault(),n.remove(),"T"!==e.target.parentElement.nodeName&&"ROOT"!==e.target.parentElement.nodeName||i.createLink(t,i.currentNode)},{once:!0})}}const l=(e,t)=>{const n=document.createElement("span");return n.id=e,n.innerHTML=`<svg class="icon" aria-hidden="true">
|
|
2
|
+
<use xlink:href="#icon-${t}"></use>
|
|
3
|
+
</svg>`,n};function R(e){e.container.append(function(e){const t=document.createElement("toolbar"),n=l("fullscreen","full"),i=l("toCenter","living"),o=l("zoomout","move"),r=l("zoomin","add"),a=document.createElement("span");return a.innerText="100%",t.appendChild(n),t.appendChild(i),t.appendChild(o),t.appendChild(r),t.className="rb",n.onclick=()=>{e.container.requestFullscreen()},i.onclick=()=>{e.toCenter()},o.onclick=()=>{e.scaleVal<.6||e.scale(e.scaleVal-=.2)},r.onclick=()=>{1.6<e.scaleVal||e.scale(e.scaleVal+=.2)},t}(e)),e.container.append(function(e){const t=document.createElement("toolbar"),n=l("tbltl","left"),i=l("tbltr","right"),o=l("tblts","side");return t.appendChild(n),t.appendChild(i),t.appendChild(o),t.className="lt",n.onclick=()=>{e.initLeft()},i.onclick=()=>{e.initRight()},o.onclick=()=>{e.initSide()},t}(e))}const P=e=>{const t=document.createElement("div");return t.id=e,t},I=["#2c3e50","#34495e","#7f8c8d","#94a5a6","#bdc3c7","#ecf0f1","#8e44ad","#9b59b6","#2980b9","#3298db","#c0392c","#e74c3c","#d35400","#f39c11","#f1c40e","#17a085","#27ae61","#2ecc71"];var v=function(e,a,s,l){return new(s=s||Promise)(function(n,t){function i(e){try{r(l.next(e))}catch(e){t(e)}}function o(e){try{r(l.throw(e))}catch(e){t(e)}}function r(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(i,o)}r((l=l.apply(e,a||[])).next())})};function c(e,t){var n=t.parentNode.parentNode.contains(e);return e&&"TPC"===e.tagName&&e!==t&&!n&&!0!==e.nodeObj.root}const u=document,f=function(e){if(e)for(const t of e.getElementsByClassName("insert-preview")||[])t.remove()};function U(n){let a,s,l;var i,o,r;n.map.addEventListener("dragstart",function(e){(a=e.target).parentNode.parentNode.style.opacity="0.5",M.clear()}),n.map.addEventListener("dragend",function(t){return v(this,void 0,void 0,function*(){t.target.style.opacity="",f(l);var e=a.nodeObj;switch(s){case"before":n.moveNodeBefore(a,l),n.selectNode(E(e.id));break;case"after":n.moveNodeAfter(a,l),n.selectNode(E(e.id));break;case"in":n.moveNode(a,l)}a.parentNode.parentNode.style.opacity="1",a=null})}),n.map.addEventListener("dragover",(i=function(e){f(l);const t=u.elementFromPoint(e.clientX,e.clientY-12);if(c(t,a)){var n=(l=t).getBoundingClientRect().y;e.clientY>n+t.clientHeight?s="after":e.clientY>n+t.clientHeight/2&&(s="in")}else{const i=u.elementFromPoint(e.clientX,e.clientY+12);c(i,a)?(n=(l=i).getBoundingClientRect().y,e.clientY<n?s="before":e.clientY<n+i.clientHeight/2&&(s="in")):s=l=null}if(l){e=l,n=s;if(!n)return void!f(e);const o=e.getElementsByClassName("insert-preview");if(n=`insert-preview ${n} show`,0<o.length)o[0].className=n;else{const r=u.createElement("div");r.className=n,e.appendChild(r)}}},o=200,r=Date.now(),function(){var e=arguments,t=Date.now();o<=t-r&&(i.apply(this,e),r=Date.now())}))}function y(){this.handlers={}}y.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)for(var n=this.handlers[e],i=0;i<n.length;i++)n[i](t)},removeListener:function(e,t){if(this.handlers[e]){var n=this.handlers[e];if(t){if(n.length)for(var i=0;i<n.length;i++)n[i]===t&&this.handlers[e].splice(i,1)}else n.length=0}}};F(6194),F(6684),F(485),F(3832),F(9721),F(9857);var V=function(e,a,s,l){return new(s=s||Promise)(function(n,t){function i(e){try{r(l.next(e))}catch(e){t(e)}}function o(e){try{r(l.throw(e))}catch(e){t(e)}}function r(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(i,o)}r((l=l.apply(e,a||[])).next())})};const x=E,B=document;function m({el:e,data:t,direction:n,locale:i,draggable:o,editable:r,contextMenu:a,contextMenuOption:s,toolBar:l,nodeMenu:c,keypress:d,before:h,newTopicName:p,allowUndo:u,primaryLinkStyle:f,overflowHidden:m,primaryNodeHorizontalGap:b,primaryNodeVerticalGap:g,mobileMenu:v}){e=document.querySelector(e);e&&(this.mindElixirBox=e,this.before=h||{},this.nodeData=t.nodeData,this.linkData=t.linkData||{},this.locale=i,this.contextMenuOption=s,this.contextMenu=void 0===a||a,this.toolBar=void 0===l||l,this.nodeMenu=void 0===c||c,this.keypress=void 0===d||d,this.mobileMenu=v,this.direction="number"==typeof n?n:1,this.draggable=void 0===o||o,this.newTopicName=p,this.editable=void 0===r||r,this.allowUndo=void 0===u||u,this.currentNode=null,this.currentLink=null,this.inputDiv=null,this.scaleVal=1,this.tempDirection=null,this.primaryLinkStyle=f||0,this.overflowHidden=m,this.primaryNodeHorizontalGap=b,this.primaryNodeVerticalGap=g,this.bus=new y,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(){var e=this.history.pop();e&&(this.isUndo=!0,"moveNode"===e.name?this.moveNode(x(e.obj.fromObj.id),x(e.obj.originParentId)):"removeNode"===e.name?e.originSiblingId?this.insertBefore(x(e.originSiblingId),e.obj):this.addChild(x(e.originParentId),e.obj):"addChild"===e.name||"copyNode"===e.name?this.removeNode(x(e.obj.id)):"finishEdit"===e.name?this.setNodeTopic(x(e.obj.id),e.origin):this.isUndo=!1)})}function b(t){return function(...e){return V(this,void 0,void 0,function*(){this.before[t.name]&&!(yield this.before[t.name].apply(this,e))||t.apply(this,e)})}}m.prototype={addParentLink:S,getObjById:o,generateNewObj:function(){var e=L();return{topic:this.newTopicName||"new node",id:e}},insertSibling:b(function(e,t){e=e||this.currentNode;if(e){var n=e.nodeObj;if(!0===n.root)this.addChild();else{var i=t||this.generateNewObj();{var o=i;const a=n.parent.children;n=a.indexOf(n),a.splice(n+1,0,o)}S(this.nodeData);var n=e.parentElement,{grp:o,top:e}=this.createGroup(i);const r=n.parentNode.parentNode;r.insertBefore(o,n.parentNode.nextSibling),"box"===r.className?(this.processPrimaryNode(o,i),this.linkDiv()):this.linkDiv(o.offsetParent),t||this.createInputDiv(e.children[0]),this.selectNode(e.children[0],!0),this.bus.fire("operation",{name:"insertSibling",obj:i})}}}),insertBefore:b(function(e,t){e=e||this.currentNode;if(e){var n=e.nodeObj;if(!0===n.root)this.addChild();else{var i=t||this.generateNewObj();{var o=i;const a=n.parent.children;n=a.indexOf(n),a.splice(n,0,o)}S(this.nodeData);var n=e.parentElement,{grp:o,top:e}=this.createGroup(i);const r=n.parentNode.parentNode;r.insertBefore(o,n.parentNode),"box"===r.className?(this.processPrimaryNode(o,i),this.linkDiv()):this.linkDiv(o.offsetParent),t||this.createInputDiv(e.children[0]),this.selectNode(e.children[0],!0),this.bus.fire("operation",{name:"insertSibling",obj:i})}}}),addChild:b(function(e,t){var n,e=e||this.currentNode;e&&({newTop:e,newNodeObj:n}=a.call(this,e,t),t||this.createInputDiv(e.children[0]),this.selectNode(e.children[0],!0),this.bus.fire("operation",{name:"addChild",obj:n}))}),copyNode:b(function(e,t){e=JSON.parse(JSON.stringify(e.nodeObj,(e,t)=>{if("parent"!==e)return t})),function t(n){if(n.id=L(),n.children)for(let e=0;e<n.children.length;e++)t(n.children[e])}(e),t=a.call(this,t,e).newNodeObj;this.bus.fire("operation",{name:"copyNode",obj:t})}),moveNode:b(function(e,t){var n,i=e.nodeObj,o=t.nodeObj,r=i.parent.id;if(!1===o.expanded&&(this.expandNode(t,!0),e=E(i.id),t=E(o.id)),function(e,t){let n=!0;for(;t.parent;){if(t.parent===e){n=!1;break}t=t.parent}return n}(i,o)){a=o,d(n=i),a.children?a.children.push(n):a.children=[n],S(this.nodeData);const s=e.parentElement;var a=s.parentNode.parentNode;const 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 c=p.createElement("children");c.appendChild(s.parentNode),l.appendChild(h(!0)),l.parentElement.insertBefore(c,l.nextSibling)}else"ROOT"===l.tagName&&(this.processPrimaryNode(s.parentNode,i),l.nextSibling.appendChild(s.parentNode));this.linkDiv(),this.bus.fire("operation",{name:"moveNode",obj:{fromObj:i,toObj:o,originParentId:r}})}}),removeNode:b(function(e){e=e||this.currentNode;if(e){const o=e.nodeObj;if(!0===o.root)throw new Error("Can not remove root node");var t=o.parent.children.findIndex(e=>e===o),t=o.parent.children[t+1],t=t&&t.id,n=d(o);const r=e.parentNode;if("ROOT"!==r.tagName){if(0===n){const a=r.parentNode.parentNode.previousSibling;"ROOT"!==a.tagName&&a.children[1].remove(),this.selectParent()}else this.selectPrevSibling()||this.selectNextSibling();for(const s in this.linkData){var i=this.linkData[s];i.from!==r.firstChild&&i.to!==r.firstChild||this.removeLink(this.mindElixirBox.querySelector(`[data-linkid=${this.linkData[s].id}]`))}r.parentNode.remove(),this.linkDiv(),this.bus.fire("operation",{name:"removeNode",obj:o,originSiblingId:t,originParentId:o.parent.id})}}}),moveUpNode:b(function(e){e=e||this.currentNode;if(e){const i=e.parentNode.parentNode;e=e.nodeObj;{var t=e;const o=t.parent.children;var t=o.indexOf(t),n=o[t];0===t?(o[t]=o[o.length-1],o[o.length-1]=n):(o[t]=o[t-1],o[t-1]=n)}i.parentNode.insertBefore(i,i.previousSibling),this.linkDiv(),this.bus.fire("operation",{name:"moveUpNode",obj:e})}}),moveDownNode:b(function(e){e=e||this.currentNode;if(e){const i=e.parentNode.parentNode;e=e.nodeObj;{var t=e;const o=t.parent.children;var t=o.indexOf(t),n=o[t];t===o.length-1?(o[t]=o[0],o[0]=n):(o[t]=o[t+1],o[t+1]=n)}i.nextSibling?i.parentNode.insertBefore(i,i.nextSibling.nextSibling):i.parentNode.prepend(i),this.linkDiv(),this.bus.fire("operation",{name:"moveDownNode",obj:e})}}),beginEdit:b(function(e){e=e||this.currentNode;e&&this.createInputDiv(e)}),moveNodeBefore:b(function(e,t){var n=e.nodeObj,i=t.nodeObj,o=n.parent.id;{var r=n,a=i;d(r);const l=a.parent.children;let t=0;for(let e=0;e<l.length;e++)if(l[e]===a){t=e;break}l.splice(t,0,r)}S(this.nodeData);r=e.parentElement.parentNode,e=t.parentElement,t=e.parentNode;const s=e.parentNode.parentNode;s.insertBefore(r,t),this.linkDiv(),this.bus.fire("operation",{name:"moveNodeBefore",obj:{fromObj:n,toObj:i,originParentId:o}})}),moveNodeAfter:b(function(e,t){var n=e.nodeObj,i=t.nodeObj,o=n.parent.id;{var r=n,a=i;d(r);const l=a.parent.children;let t=0;for(let e=0;e<l.length;e++)if(l[e]===a){t=e;break}l.splice(t+1,0,r)}S(this.nodeData);r=e.parentElement.parentNode,e=t.parentElement,t=e.parentNode;const s=e.parentNode.parentNode;s.insertBefore(r,t.nextSibling),this.linkDiv(),this.bus.fire("operation",{name:"moveNodeAfter",obj:{fromObj:n,toObj:i,originParentId:o}})}),updateNodeStyle:function(e){if(e.style){const n=E(e.id,this);var t={color:n.style.color&&i(n.style.color),background:n.style.background&&i(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:t})}},updateNodeTags:function(e,t){var n;t&&(n=e.tags,e.tags=t,t=E(e.id),r(t,e),this.linkDiv(),this.bus.fire("operation",{name:"editTags",obj:e,origin:n}))},updateNodeIcons:function(e,t){var n;t&&(n=e.icons,e.icons=t,t=E(e.id),r(t,e),this.linkDiv(),this.bus.fire("operation",{name:"editIcons",obj:e,origin:n}))},processPrimaryNode:function(e,t){0===this.direction?e.className="lhs":1===this.direction?e.className="rhs":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(r,a,s,l){var c=this.map.getBoundingClientRect();if(r&&a){var d=r.getBoundingClientRect(),h=a.getBoundingClientRect(),p=(d.x+d.width/2-c.x)/this.scaleVal,u=(d.y+d.height/2-c.y)/this.scaleVal,f=(h.x+h.width/2-c.x)/this.scaleVal,m=(h.y+h.height/2-c.y)/this.scaleVal;let e,t,n,i;i=s?(e=p+l.delta1.x,t=u+l.delta1.y,n=f+l.delta2.x,m+l.delta2.y):(u+m)/2-u<=d.height/2?(e=(d.x+d.width-c.x)/this.scaleVal+100,t=u,n=(h.x+h.width-c.x)/this.scaleVal+100,m):(e=(p+f)/2,t=(u+m)/2,n=(p+f)/2,(u+m)/2);var c={cx:p,cy:u,w:d.width,h:d.height},d={cx:f,cy:m,w:h.width,h:h.height},h=k(c,e,t),b=h.x,h=h.y,g=w(d,n,i),v=g.x,g=g.y,x=N(n,i,v,g);const y=function(e,t){const n=D.createElementNS(T,"g"),i=D.createElementNS(T,"path"),o=D.createElementNS(T,"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 ${b} ${h} C ${e} ${t} ${n} ${i} ${v} `+g,`M ${x.x1} ${x.y1} L ${v} ${g} L ${x.x2} `+x.y2);let o;s?(o={id:l.id,label:"",from:r,to:a,delta1:{x:e-p,y:t-u},delta2:{x:n-f,y:i-m}},this.linkData[l.id]=o,y.linkObj=o,y.dataset.linkid=l.id):(o={id:L(),label:"",from:r,to:a,delta1:{x:e-p,y:t-u},delta2:{x:n-f,y:i-m}},this.linkData[o.id]=o,y.linkObj=o,y.dataset.linkid=o.id,this.currentLink=y),this.linkSvgGroup.appendChild(y),s||this.showLinkController(e,t,n,i,o,c,d)}},removeLink:function(e){let t;(t=e||this.currentLink)&&(this.hideLinkController(),e=t.linkObj.id,delete this.linkData[e],t.remove(),t=null)},selectLink:function(e){e=(this.currentLink=e).linkObj;const t=e.from,n=e.to;var i=this.map.getBoundingClientRect(),o=t.getBoundingClientRect(),r=n.getBoundingClientRect(),a=(o.x+o.width/2-i.x)/this.scaleVal,s=(o.y+o.height/2-i.y)/this.scaleVal,l=(r.x+r.width/2-i.x)/this.scaleVal,i=(r.y+r.height/2-i.y)/this.scaleVal,o={cx:a,cy:s,w:o.width,h:o.height},r={cx:l,cy:i,w:r.width,h:r.height},a=a+e.delta1.x,s=s+e.delta1.y,l=l+e.delta2.x,i=i+e.delta2.y;this.showLinkController(a,s,l,i,e,o,r)},hideLinkController:function(){this.linkController.style.display="none",this.P2.style.display="none",this.P3.style.display="none"},showLinkController:function(n,i,o,r,a,s,l){this.linkController.style.display="initial",this.P2.style.display="initial",this.P3.style.display="initial";var e=k(s,n,i);let c=e.x,d=e.y;e=w(l,o,r);let h=e.x,p=e.y;this.P2.style.cssText=`top:${i}px;left:${n}px;`,this.P3.style.cssText=`top:${r}px;left:${o}px;`,this.line1.setAttribute("x1",c),this.line1.setAttribute("y1",d),this.line1.setAttribute("x2",n),this.line1.setAttribute("y2",i),this.line2.setAttribute("x1",o),this.line2.setAttribute("y1",r),this.line2.setAttribute("x2",h),this.line2.setAttribute("y2",p),this.helper1&&(this.helper1.destory(this.map),this.helper2.destory(this.map)),this.helper1=new t(this.P2),this.helper2=new t(this.P3),this.helper1.init(this.map,(e,t)=>{n-=e/this.scaleVal,i-=t/this.scaleVal;e=k(s,n,i);c=e.x,d=e.y,this.P2.style.top=i+"px",this.P2.style.left=n+"px",this.currentLink.children[0].setAttribute("d",`M ${c} ${d} C ${n} ${i} ${o} ${r} ${h} `+p),this.line1.setAttribute("x1",c),this.line1.setAttribute("y1",d),this.line1.setAttribute("x2",n),this.line1.setAttribute("y2",i),a.delta1.x=n-s.cx,a.delta1.y=i-s.cy}),this.helper2.init(this.map,(e,t)=>{o-=e/this.scaleVal,r-=t/this.scaleVal;e=w(l,o,r),h=e.x,p=e.y,t=N(o,r,h,p);this.P3.style.top=r+"px",this.P3.style.left=o+"px",this.currentLink.children[0].setAttribute("d",`M ${c} ${d} C ${n} ${i} ${o} ${r} ${h} `+p),this.currentLink.children[1].setAttribute("d",`M ${t.x1} ${t.y1} L ${h} ${p} L ${t.x2} `+t.y2),this.line2.setAttribute("x1",o),this.line2.setAttribute("y1",r),this.line2.setAttribute("x2",h),this.line2.setAttribute("y2",p),a.delta2.x=o-l.cx,a.delta2.y=r-l.cy})},layout:function(){this.root.innerHTML="",this.box.innerHTML="";const e=this.createTopic(this.nodeData),i=(r(e,this.nodeData),e.draggable=!1,this.root.appendChild(e),this.nodeData.children);if(i&&0!==i.length){if(2===this.direction){let t=0,n=0;i.map(e=>{void 0===e.direction?t<=n?(e.direction=0,t+=1):(e.direction=1,n+=1):0===e.direction?t+=1:n+=1})}this.createChildren(this.nodeData.children,this.box,this.direction)}},linkDiv:function(t){var i=this.primaryNodeHorizontalGap||65,r=this.primaryNodeVerticalGap||25;const o=this.root;o.style.cssText=`top:${1e4-o.offsetHeight/2}px;left:${1e4-o.offsetWidth/2}px;`;var a=this.box.children;this.svg2nd.innerHTML="";let n=0,s,l=0,c=0,d=0,h=0,p=0,u;if(2===this.direction){let t=0,n=0,i=0,o=0;for(let e=0;e<a.length;e++){var f=a[e];"lhs"===f.className?(h+=f.offsetHeight+r,i+=f.offsetHeight,t+=1):(p+=f.offsetHeight+r,o+=f.offsetHeight,n+=1)}l=h>p?(u=1e4-Math.max(h)/2,s="r",(h-o)/(n-1)):(u=1e4-Math.max(p)/2,s="l",(p-i)/(t-1))}else{for(let e=0;e<a.length;e++){var m=a[e];n+=m.offsetHeight+r}u=1e4-n/2}let b="";for(let e=0;e<a.length;e++){let t,n;const x=a[e];var g=x.offsetHeight;if("lhs"===x.className){x.style.top=u+c+"px",x.style.left=1e4-o.offsetWidth/2-i-x.offsetWidth+"px",t=1e4-o.offsetWidth/2-i-15,n=u+c+g/2;let e=1e4;2===this.primaryLinkStyle?(2===this.direction&&(e=1e4-o.offsetWidth/6),n<1e4?b+=`M ${e} 10000
|
|
4
|
+
L ${e} ${n+20}
|
|
5
|
+
C ${e} ${n} ${e} ${n} ${e-20} ${n}
|
|
6
|
+
L ${t} `+n:b+=`M ${e} 10000
|
|
7
|
+
L ${e} ${n-20}
|
|
8
|
+
C ${e} ${n} ${e} ${n} ${e-20} ${n}
|
|
9
|
+
L ${t} `+n):b+=`M 10000 10000 C 10000 10000 ${1e4+2*i*.03} ${n} ${t} `+n,"l"===s?c+=g+l:c+=g+r}else{x.style.top=u+d+"px",x.style.left=1e4+o.offsetWidth/2+i+"px",t=1e4+o.offsetWidth/2+i+15,n=u+d+g/2;let e=1e4;2===this.primaryLinkStyle?(2===this.direction&&(e=1e4+o.offsetWidth/6),n<1e4?b+=`M ${e} 10000
|
|
10
|
+
L ${e} ${n+20}
|
|
11
|
+
C ${e} ${n} ${e} ${n} ${e+20} ${n}
|
|
12
|
+
L ${t} `+n:b+=`M ${e} 10000
|
|
13
|
+
L ${e} ${n-20}
|
|
14
|
+
C ${e} ${n} ${e} ${n} ${e+20} ${n}
|
|
15
|
+
L ${t} `+n):b+=`M 10000 10000 C 10000 10000 ${1e4+2*i*.03} ${n} ${t} `+n,"r"===s?d+=g+l:d+=g+r}const y=x.children[0].children[1];y&&(y.style.top=(y.parentNode.offsetHeight-y.offsetHeight)/2+"px","lhs"===x.className?y.style.left="-10px":y.style.left=y.parentNode.offsetWidth-10+"px")}this.svg2nd.appendChild(function(e){const t=D.createElementNS(T,"path");return t.setAttribute("d",e),t.setAttribute("stroke","#666"),t.setAttribute("fill","none"),t.setAttribute("stroke-width","2"),t}(b));for(let e=0;e<a.length;e++){const N=a[e];if((!t||t===a[e])&&N.childElementCount){const k=j("svg3rd");"svg"===N.lastChild.tagName&&N.lastChild.remove(),N.appendChild(k);var v=N.children[0];!function r(a,e,s){const l=e.offsetTop;const c=e.offsetLeft;const d=e.offsetWidth;const h=e.offsetHeight;for(let o=0;o<a.length;o++){const p=a[o],u=p.children[0],f=u.offsetTop,m=u.offsetHeight;let e;e=s?l+h/2:l+h;const b=f+m;let t,n,i;const g=p.offsetParent.className,v=("lhs"===g?(t=c+C,i=c,n=c-u.offsetWidth,f+m<l+h/2+50&&f+m>l+h/2-50?z+=`M ${t} ${e} L ${i} ${e} L ${i} ${b} L ${n} `+b:f+m>=l+h/2?z+=`M ${t} ${e}
|
|
16
|
+
L ${i} ${e}
|
|
17
|
+
L ${i} ${b-$}
|
|
18
|
+
A ${$} ${$} 0 0 1
|
|
19
|
+
${i-$},${b}
|
|
20
|
+
L ${n} `+b:z+=`M ${t} ${e}
|
|
21
|
+
L ${i} ${e}
|
|
22
|
+
L ${i} ${b+$}
|
|
23
|
+
A ${$} ${$} 0 0 0
|
|
24
|
+
${i-$},${b}
|
|
25
|
+
L ${n} `+b):"rhs"===g&&(t=c+d-C,i=c+d,n=c+d+u.offsetWidth,f+m<l+h/2+50&&f+m>l+h/2-50?z+=`M ${t} ${e} L ${i} ${e} L ${i} ${b} L ${n} `+b:f+m>=l+h/2?z+=`M ${t} ${e}
|
|
26
|
+
L ${i} ${e}
|
|
27
|
+
L ${i} ${b-$}
|
|
28
|
+
A ${$} ${$} 0 0 0 ${i+$},${b}
|
|
29
|
+
L ${n} `+b:z+=`M ${t} ${e}
|
|
30
|
+
L ${i} ${e}
|
|
31
|
+
L ${i} ${b+$}
|
|
32
|
+
A ${$} ${$} 0 0 1 ${i+$},${b}
|
|
33
|
+
L ${n} `+b),u.children[1]);if(v&&(v.style.top=(u.offsetHeight-v.offsetHeight)/2+"px","lhs"===g?v.style.left="-10px":"rhs"===g&&(v.style.left=u.offsetWidth-10+"px"),v.expanded)){const x=p.children[1].children;0<x.length&&r(x,u)}}}(N.children[1].children,v,!(z="")),k.appendChild(function(e){const t=D.createElementNS(T,"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.setAttribute("transform","translate(0.5,-0.5)"),t}(z))}}this.linkSvgGroup.innerHTML="";for(const w in this.linkData){var e=this.linkData[w];"string"==typeof e.from?this.createLink(E(e.from),E(e.to),!0,e):this.createLink(E(e.from.nodeObj.id),E(e.to.nodeObj.id),!0,e)}},createInputDiv:function(i){if(i){let n=s.createElement("div");const o=i.childNodes[0].textContent;i.appendChild(n),n.innerText=o,n.contentEditable="true",n.spellcheck=!1,n.style.cssText=`min-width:${i.offsetWidth-8}px;`,0===this.direction&&(n.style.right="0"),n.focus();{var e=n;const t=s.createRange(),r=(t.selectNodeContents(e),window.getSelection());r&&(r.removeAllRanges(),r.addRange(t))}this.inputDiv=n,this.bus.fire("operation",{name:"beginEdit",obj:i.nodeObj}),n.addEventListener("keydown",e=>{e.stopPropagation();var t=e.key;"Enter"!==t&&"Tab"!==t||e.shiftKey||(e.preventDefault(),this.inputDiv.blur(),this.map.focus())}),n.addEventListener("blur",()=>{if(n){const t=i.nodeObj;var e=n.textContent.trim();t.topic=""===e?o:e,n.remove(),this.inputDiv=n=null,this.bus.fire("operation",{name:"finishEdit",obj:t,origin:o}),e!==o&&(i.childNodes[0].textContent=t.topic,this.linkDiv())}})}},createChildren:function(t,e,n){let i;i=e||s.createElement("children");for(let e=0;e<t.length;e++){var o=t[e];const r=s.createElement("GRP"),a=(0===n?r.className="lhs":1===n?r.className="rhs":2===n&&(0===o.direction?r.className="lhs":1===o.direction&&(r.className="rhs")),this.createTop(o));o.children&&0<o.children.length?(a.appendChild(h(o.expanded)),r.appendChild(a),!1!==o.expanded&&(o=this.createChildren(o.children),r.appendChild(o))):r.appendChild(a),i.appendChild(r)}return i},createGroup:function(e){const t=s.createElement("GRP"),n=this.createTop(e);return t.appendChild(n),e.children&&0<e.children.length&&(n.appendChild(h(e.expanded)),!1!==e.expanded&&(e=this.createChildren(e.children),t.appendChild(e))),{grp:t,top:n}},createTop:function(e){const t=s.createElement("t");var n=this.createTopic(e);return r(n,e),t.appendChild(n),t},createTopic:function(e){const t=s.createElement("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(E(e));this.currentNode&&(this.currentNode.className=""),e.className="selected",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){var t=this.currentNode.parentElement.parentElement.nextSibling;let e;var n=this.currentNode.parentElement.parentElement;if("rhs"===n.className||"lhs"===n.className){var i=this.mindElixirBox.querySelectorAll("."+n.className),n=Array.from(i).indexOf(n);if(!(n+1<i.length))return!1;e=i[n+1].firstChild.firstChild}else{if(!t)return!1;e=t.firstChild.firstChild}return this.selectNode(e),!0}},selectPrevSibling:function(){if(this.currentNode&&"meroot"!==this.currentNode.dataset.nodeid){var t=this.currentNode.parentElement.parentElement.previousSibling;let e;var n=this.currentNode.parentElement.parentElement;if("rhs"===n.className||"lhs"===n.className){var i=this.mindElixirBox.querySelectorAll("."+n.className),n=Array.from(i).indexOf(n);if(!(0<=n-1))return!1;e=i[n-1].firstChild.firstChild}else{if(!t)return!1;e=t.firstChild.firstChild}return this.selectNode(e),!0}},selectFirstChild:function(){var e;!this.currentNode||(e=this.currentNode.parentElement.nextSibling)&&e.firstChild&&(e=e.firstChild.firstChild.firstChild,this.selectNode(e))},selectParent:function(){var e;!this.currentNode||"meroot"===this.currentNode.dataset.nodeid||(e=this.currentNode.parentElement.parentElement.parentElement.previousSibling)&&(e=e.firstChild,this.selectNode(e))},getAllDataString:function(){var e={nodeData:n(this),linkData:this.linkData};return JSON.stringify(e,(e,t)=>{if("parent"!==e)return"from"===e||"to"===e?t.nodeObj.id:t})},getAllData:function(){var e={nodeData:n(this),linkData:this.linkData};return JSON.parse(JSON.stringify(e,(e,t)=>{if("parent"!==e)return"from"===e||"to"===e?t.nodeObj.id:t}))},getAllDataMd:function(){var e=n(this);let o="# "+e.topic+"\n\n";return function t(n,i){for(let e=0;e<n.length;e++)o+=i<=6?"".padStart(i,"#")+" "+n[e].topic+"\n\n":"".padStart(i-7,"\t")+"- "+n[e].topic+"\n",n[e].children&&t(n[e].children,i+1)}(e.children,2),o},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())},cancelFocus:function(){this.isFocusMode=!1,null!==this.tempDirection&&(delete this.nodeData.root,this.nodeData=this.nodeDataBackup,this.direction=this.tempDirection,this.tempDirection=null,this.init())},initLeft:function(){this.direction=0,this.init()},initRight:function(){this.direction=1,this.init()},initSide:function(){this.direction=2,this.init()},setLocale:function(e){this.locale=e,this.init()},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(){this.addParentLink(this.nodeData),this.layout(),this.linkDiv()},init:function(){if(S(this.nodeData),this.mindElixirBox.className+=" mind-elixir",this.mindElixirBox.innerHTML="",this.container=B.createElement("div"),this.container.className="map-container",this.overflowHidden&&(this.container.style.overflow="hidden"),this.map=B.createElement("div"),this.map.className="map-canvas",this.map.setAttribute("tabindex","0"),this.container.appendChild(this.map),this.mindElixirBox.appendChild(this.container),this.root=B.createElement("root"),this.box=B.createElement("children"),this.box.className="box",this.svg2nd=j("svg2nd"),this.linkController=j("linkcontroller"),this.P2=B.createElement("div"),this.P3=B.createElement("div"),this.P2.className=this.P3.className="circle",this.line1=O(0,0,0,0),this.line2=O(0,0,0,0),this.linkController.appendChild(this.line1),this.linkController.appendChild(this.line2),this.linkSvgGroup=j("topiclinks"),this.map.appendChild(this.root),this.map.appendChild(this.box),this.map.appendChild(this.svg2nd),this.map.appendChild(this.linkController),this.map.appendChild(this.linkSvgGroup),this.map.appendChild(this.P2),this.map.appendChild(this.P3),this.toolBar&&R(this),this.nodeMenu){var o=this,e=A[o.locale]?o.locale:"en";let i;const l=P("nm-style"),c=P("nm-tag"),d=P("nm-icon"),h=(l.innerHTML=`
|
|
34
|
+
<div class="nm-fontsize-container">
|
|
35
|
+
${["15","24","32"].map(e=>`<div class="size" data-size="${e}">
|
|
36
|
+
<svg class="icon" style="width: ${e}px;height: ${e}px" aria-hidden="true">
|
|
37
|
+
<use xlink:href="#icon-a"></use>
|
|
38
|
+
</svg></div>`).join("")}<div class="bold"><svg class="icon" aria-hidden="true">
|
|
39
|
+
<use xlink:href="#icon-B"></use>
|
|
40
|
+
</svg></div>
|
|
41
|
+
</div>
|
|
42
|
+
<div class="nm-fontcolor-container">
|
|
43
|
+
${I.map(e=>`<div class="split6"><div class="palette" data-color="${e}" style="background-color: ${e};"></div></div>`).join("")}
|
|
44
|
+
</div>
|
|
45
|
+
<div class="bof">
|
|
46
|
+
<span class="font">${A[e].font}</span>
|
|
47
|
+
<span class="background">${A[e].background}</span>
|
|
48
|
+
</div>
|
|
49
|
+
`,c.innerHTML=`${A[e].tag}<input class="nm-tag" tabindex="-1" placeholder="${A[e].tagsSeparate}" /><br>`,d.innerHTML=`${A[e].icon}<input class="nm-icon" tabindex="-1" placeholder="${A[e].iconsSeparate}" /><br>`,document.createElement("nmenu"));function r(e,t){e=o.container.querySelectorAll(e);[].forEach.call(e,function(e){e.classList.remove(t)})}h.innerHTML=`
|
|
50
|
+
<div class="button-container"><svg class="icon" aria-hidden="true">
|
|
51
|
+
<use xlink:href="#icon-close"></use>
|
|
52
|
+
</svg></div>
|
|
53
|
+
`,h.appendChild(l),h.appendChild(c),h.appendChild(d),h.hidden=!0,o.container.append(h),e=h.querySelectorAll(".size");const p=h.querySelector(".bold"),u=h.querySelector(".button-container"),f=h.querySelector(".font"),m=o.container.querySelector(".nm-tag"),b=o.container.querySelector(".nm-icon");h.onclick=e=>{if(o.currentNode){const t=o.currentNode.nodeObj,n=e.target;"palette"===n.className?(t.style||(t.style={}),r(".palette","nmenu-selected"),n.className="palette nmenu-selected","font"===i?t.style.color=n.dataset.color:"background"===i&&(t.style.background=n.dataset.color),o.updateNodeStyle(t)):"background"===n.className?(r(".palette","nmenu-selected"),i="background",n.className="background selected",n.previousElementSibling.className="font",t.style&&t.style.background&&(h.querySelector('.palette[data-color="'+t.style.background+'"]').className="palette nmenu-selected")):"font"===n.className&&(r(".palette","nmenu-selected"),i="font",n.className="font selected",n.nextElementSibling.className="background",t.style&&t.style.color&&(h.querySelector('.palette[data-color="'+t.style.color+'"]').className="palette nmenu-selected"))}},Array.from(e).map(e=>{e.onclick=e=>{o.currentNode.nodeObj.style||(o.currentNode.nodeObj.style={}),r(".size","size-selected");const t=e.currentTarget;o.currentNode.nodeObj.style.fontSize=t.dataset.size,t.className="size size-selected",o.updateNodeStyle(o.currentNode.nodeObj)}}),p.onclick=e=>{o.currentNode.nodeObj.style||(o.currentNode.nodeObj.style={}),"bold"===o.currentNode.nodeObj.style.fontWeight?(delete o.currentNode.nodeObj.style.fontWeight,e.currentTarget.className="bold"):(o.currentNode.nodeObj.style.fontWeight="bold",e.currentTarget.className="bold size-selected"),o.updateNodeStyle(o.currentNode.nodeObj)},m.onchange=e=>{o.currentNode&&e.target.value&&(e=e.target.value.split(","),o.updateNodeTags(o.currentNode.nodeObj,e))},b.onchange=e=>{o.currentNode&&e.target.value&&(e=e.target.value.split(","),o.updateNodeIcons(o.currentNode.nodeObj,e))};let t="open";u.onclick=e=>{"open"===t?(t="close",h.className="close",u.innerHTML='<svg class="icon" aria-hidden="true"><use xlink:href="#icon-menu"></use></svg>'):(t="open",h.className="",u.innerHTML='<svg class="icon" aria-hidden="true"><use xlink:href="#icon-close"></use></svg>')},o.bus.addListener("unselectNode",function(){h.hidden=!0}),o.bus.addListener("selectNode",function(e){h.hidden=!1,r(".palette","nmenu-selected"),r(".size","size-selected"),r(".bold","size-selected"),i="font",f.className="font selected",f.nextElementSibling.className="background",e.style&&(e.style.fontSize&&(h.querySelector('.size[data-size="'+e.style.fontSize+'"]').className="size size-selected"),e.style.fontWeight&&(h.querySelector(".bold").className="bold size-selected"),e.style.color&&(h.querySelector('.palette[data-color="'+e.style.color+'"]').className="palette nmenu-selected")),e.tags?m.value=e.tags.join(","):m.value="",e.icons?b.value=e.icons.join(","):b.value=""})}if(this.keypress){var t=this;const g={13:()=>{t.insertSibling()},9:()=>{t.addChild()},113:()=>{t.beginEdit()},38:()=>{t.selectPrevSibling()},40:()=>{t.selectNextSibling()},37:()=>{t.currentNode&&("rhs"===t.currentNode.offsetParent.offsetParent.className?t.selectParent():"lhs"!==t.currentNode.offsetParent.offsetParent.className&&!t.currentNode.nodeObj.root||t.selectFirstChild())},39:()=>{t.currentNode&&("rhs"===t.currentNode.offsetParent.offsetParent.className||t.currentNode.nodeObj.root?t.selectFirstChild():"lhs"===t.currentNode.offsetParent.offsetParent.className&&t.selectParent())},33(){t.moveUpNode()},34(){t.moveDownNode()},67(e){(e.metaKey||e.ctrlKey)&&(t.waitCopy=t.currentNode)},86(e){t.waitCopy&&(e.metaKey||e.ctrlKey)&&(t.copyNode(t.waitCopy,t.currentNode),t.waitCopy=null)},90:e=>{t.allowUndo&&(e.metaKey||e.ctrlKey)&&t.undo()},187:e=>{!e.metaKey&&!e.ctrlKey||1.6<t.scaleVal||t.scale(t.scaleVal+=.2)},189:e=>{!e.metaKey&&!e.ctrlKey||t.scaleVal<.6||t.scale(t.scaleVal-=.2)}};t.map.onkeydown=e=>{e.preventDefault(),t.editable&&e.target===e.currentTarget&&(8===e.keyCode||46===e.keyCode?t.currentLink?t.removeLink():t.removeNode():g[e.keyCode]&&g[e.keyCode](e))}}if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&this.mobileMenu){var n=this;var i=void 0;var a=(e,t)=>{const n=document.createElement("div");return n.id=e,n.innerHTML=`<svg class="icon" aria-hidden="true">
|
|
54
|
+
<use xlink:href="#icon-${t}"></use>
|
|
55
|
+
</svg>`,n};const v=a("cm-add_child","zijiedian"),x=a("cm-add_sibling","tongjijiedian-"),y=a("cm-remove_child","shanchu2"),N=a("cm-up","rising"),k=a("cm-down","falling"),w=a("cm-edit","edit"),C=document.createElement("ul");if(C.className="menu-list",i&&i.extend)for(let e=0;e<i.extend.length;e++){const L=i.extend[e],E=a(L.name,L.name);C.appendChild(E),E.onclick=e=>{L.onclick(e)}}const $=document.createElement("mmenu");$.appendChild(v),$.appendChild(x),$.appendChild(y),$.appendChild(N),$.appendChild(k),$.appendChild(w),$.hidden=!0,n.container.append($);let t=!0;n.bus.addListener("unselectNode",function(){$.hidden=!0}),n.bus.addListener("selectNode",function(e){$.hidden=!1,t=!!e.root}),$.onclick=e=>{e.target===$&&($.hidden=!0)},v.onclick=e=>{n.addChild()},x.onclick=e=>{t||n.insertSibling()},y.onclick=e=>{t||n.removeNode()},N.onclick=e=>{t||n.moveUpNode()},k.onclick=e=>{t||n.moveDownNode()},w.onclick=e=>{n.beginEdit()}}else this.contextMenu&&H(this,this.contextMenuOption);var s;this.draggable&&U(this),this.toCenter(),this.layout(),this.linkDiv(),this.overflowHidden||((s=this).map.addEventListener("click",e=>{"EPD"===e.target.nodeName?s.expandNode(e.target.previousSibling):"T"===e.target.parentElement.nodeName||"ROOT"===e.target.parentElement.nodeName?s.selectNode(e.target):"path"===e.target.nodeName?"g"===e.target.parentElement.nodeName&&s.selectLink(e.target.parentElement):"circle"!==e.target.className&&(s.unselectNode(),s.hideLinkController())}),s.map.addEventListener("dblclick",e=>{e.preventDefault(),!s.editable||"T"!==e.target.parentElement.nodeName&&"ROOT"!==e.target.parentElement.nodeName||s.beginEdit(e.target)}),s.map.addEventListener("mousemove",e=>{"true"!==e.target.contentEditable&&M.onMove(e,s.container)}),s.map.addEventListener("mousedown",e=>{"true"!==e.target.contentEditable&&(M.afterMoving=!1,M.mousedown=!0)}),s.map.addEventListener("mouseleave",e=>{M.clear()}),s.map.addEventListener("mouseup",e=>{M.clear()}))}},m.LEFT=0,m.RIGHT=1,m.SIDE=2,m.version="0.17.0",m.E=E,m.new=e=>({nodeData:{id:L(),topic:e||"new topic",root:!0,children:[]},linkData:{}});const q=m})(),W.default;function F(e){var t=i[e];if(void 0!==t)return t.exports;t=i[e]={id:e,exports:{}};return n[e](t,t.exports,F),t.exports}var n,i,W});
|
package/dist/MindElixirLite.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
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 n={1894:(e,t,n)=>{(e.exports=n(8145)(!1)).push([e.id,".mind-elixir {\n position: relative;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\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 [contentEditable] {\n position: absolute;\n top: 0;\n left: 0;\n background-color: #00aaff;\n max-width: 300px;\n z-index: 11;\n user-select: auto;\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 [contentEditable] {\n position: absolute;\n top: 0;\n left: 0;\n background-color: #fff;\n max-width: 300px;\n padding: 8px 10px;\n z-index: 11;\n direction: ltr;\n user-select: auto;\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}\n.map-container .box t tpc [contentEditable] {\n position: absolute;\n top: 0;\n left: 0;\n background-color: #fff;\n max-width: 300px;\n padding: 5px;\n z-index: 11;\n direction: ltr;\n user-select: auto;\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: 12px;\n width: 12px;\n line-height: 12px;\n text-align: center;\n border-radius: 50%;\n border: 1px solid #4f4f4f;\n background-color: #fff;\n pointer-events: all;\n z-index: 9;\n}\n.map-container .box t epd.minus {\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 .svg2nd,\n.map-container .svg3rd,\n.map-container .topiclinks,\n.map-container .linkcontroller {\n position: absolute;\n height: 100%;\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 .svg2nd,\n.map-container .svg3rd {\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.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",""])},8195:(e,t,n)=>{(e.exports=n(8145)(!1)).push([e.id,"mmenu {\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}\nmmenu * {\n transition: color 0.4s, background-color 0.4s;\n}\nmmenu 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}\nmmenu div a {\n color: #333;\n text-decoration: none;\n}\nmmenu div.disabled {\n color: #5e5e5e;\n background-color: #f7f7f7;\n}\nmmenu div.disabled:hover {\n cursor: default;\n background-color: #f7f7f7;\n}\nmmenu div:hover {\n cursor: pointer;\n background-color: #ecf0f1;\n}\n",""])},8555:(e,t,n)=>{(e.exports=n(8145)(!1)).push([e.id,"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}\ntoolbar span:active {\n opacity: 0.5;\n}\n.rb {\n right: 20px;\n bottom: 20px;\n font-family: iconfont;\n}\n.rb span + span {\n margin-left: 10px;\n}\n.lt {\n font-size: 20px;\n left: 20px;\n top: 20px;\n width: 20px;\n}\n.lt span {\n display: block;\n}\n.lt span + span {\n margin-top: 10px;\n}\n",""])},8145:e=>{"use strict";e.exports=function(n){var r=[];return r.toString=function(){return this.map(function(e){var t=function(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){e=function(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}(i),t=i.sources.map(function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"});return[n].concat(t).concat([e]).join("\n")}return[n].join("\n")}(e,n);return e[2]?"@media "+e[2]+"{"+t+"}":t}).join("")},r.i=function(e,t){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},i=0;i<this.length;i++){var o=this[i][0];null!=o&&(n[o]=!0)}for(i=0;i<e.length;i++){var a=e[i];null!=a[0]&&n[a[0]]||(t&&!a[2]?a[2]=t:t&&(a[2]="("+a[2]+") and ("+t+")"),r.push(a))}},r}},565:(e,t,n)=>{var i=n(1894);"string"==typeof i&&(i=[[e.id,i,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(1812)(i,o);i.locals&&(e.exports=i.locals)},149:(e,t,n)=>{var i=n(8195);"string"==typeof i&&(i=[[e.id,i,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(1812)(i,o);i.locals&&(e.exports=i.locals)},3467:(e,t,n)=>{var i=n(8555);"string"==typeof i&&(i=[[e.id,i,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(1812)(i,o);i.locals&&(e.exports=i.locals)},1812:(e,t,i)=>{var n,o,a,l={},c=(n=function(){return window&&document&&document.all&&!window.atob},function(){return o=void 0===o?n.apply(this,arguments):o}),r=(a={},function(e,t){if("function"==typeof e)return e();if(void 0===a[e]){t=function(e,t){return(t||document).querySelector(e)}.call(this,e,t);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}a[e]=t}return a[e]}),s=null,d=0,h=[],p=i(4402);function u(e,t){for(var n=0;n<e.length;n++){var i=e[n],o=l[i.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](i.parts[a]);for(;a<i.parts.length;a++)o.parts.push(x(i.parts[a],t))}else{for(var r=[],a=0;a<i.parts.length;a++)r.push(x(i.parts[a],t));l[i.id]={id:i.id,refs:1,parts:r}}}}function f(e,t){for(var n=[],i={},o=0;o<e.length;o++){var a=e[o],r=t.base?a[0]+t.base:a[0],a={css:a[1],media:a[2],sourceMap:a[3]};i[r]?i[r].parts.push(a):n.push(i[r]={id:r,parts:[a]})}return n}function m(e,t){var n=r(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var i=h[h.length-1];if("top"===e.insertAt)i?i.nextSibling?n.insertBefore(t,i.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),h.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");e=r(e.insertAt.before,n);n.insertBefore(t,e)}}function g(e){null!==e.parentNode&&(e.parentNode.removeChild(e),0<=(e=h.indexOf(e))&&h.splice(e,1))}function b(e){var t,n=document.createElement("style");return void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0!==e.attrs.nonce||(t=function(){0;return i.nc}())&&(e.attrs.nonce=t),v(n,e.attrs),m(e,n),n}function v(t,n){Object.keys(n).forEach(function(e){t.setAttribute(e,n[e])})}function x(t,e){var n,i,o,a,r;if(e.transform&&t.css){if(!(a="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=a}return o=e.singleton?(r=d++,n=s=s||b(e),i=N.bind(null,n,r,!1),N.bind(null,n,r,!0)):t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(a=e,r=document.createElement("link"),void 0===a.attrs.type&&(a.attrs.type="text/css"),a.attrs.rel="stylesheet",v(r,a.attrs),m(a,r),n=r,i=function(e,t,n){var i=n.css,o=n.sourceMap,n=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||n)&&(i=p(i));o&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");o=new Blob([i],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}.bind(null,n,e),function(){g(n),n.href&&URL.revokeObjectURL(n.href)}):(n=b(e),i=function(e,t){var n=t.css,t=t.media;t&&e.setAttribute("media",t);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),function(){g(n)}),i(t),function(e){e?e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap||i(t=e):o()}}e.exports=function(e,r){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(r=r||{}).attrs="object"==typeof r.attrs?r.attrs:{},r.singleton||"boolean"==typeof r.singleton||(r.singleton=c()),r.insertInto||(r.insertInto="head"),r.insertAt||(r.insertAt="bottom");var s=f(e,r);return u(s,r),function(e){for(var t=[],n=0;n<s.length;n++){var i=s[n];(o=l[i.id]).refs--,t.push(o)}e&&u(f(e,r),r);for(var o,n=0;n<t.length;n++)if(0===(o=t[n]).refs){for(var a=0;a<o.parts.length;a++)o.parts[a]();delete l[o.id]}}};var y,k=(y=[],function(e,t){return y[e]=t,y.filter(Boolean).join("\n")});function N(e,t,n,i){n=n?"":i.css;e.styleSheet?e.styleSheet.cssText=k(t,n):(i=document.createTextNode(n),(n=e.childNodes)[t]&&e.removeChild(n[t]),n.length?e.insertBefore(i,n[t]):e.appendChild(i))}},4402:e=>{e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,i=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){t=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(t)?e:(t=0===t.indexOf("//")?t:0===t.indexOf("/")?n+t:i+t.replace(/^\.\//,""),"url("+JSON.stringify(t)+")")})}},9857:()=>{!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?(n=t.firstChild).parentNode.insertBefore(i=e,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)}},i={};function x(e){var t=i[e];if(void 0!==t)return t.exports;t=i[e]={id:e,exports:{}};return n[e](t,t.exports,x),t.exports}x.d=(e,t)=>{for(var n in t)x.o(t,n)&&!x.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},x.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var y={};return(()=>{"use strict";x.d(y,{default:()=>g});const $=15,C=8;function b(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/"/g,""")}function o(t,n){if((n=n||this.nodeData).id===t)return n;if(!n.children||!n.children.length)return null;for(let e=0;e<n.children.length;e++){var i=o(t,n.children[e]);if(i)return i}}const n=(t,e)=>{if(t.parent=e,t.children)for(let e=0;e<t.children.length;e++)n(t.children[e],t)};function k(){return((new Date).getTime().toString(16)+Math.random().toString(16).substr(2)).substr(2,16)}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);var 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 a(e,t){if(e.innerText=t.topic,t.style&&(e.style.color=t.style.color||"inherit",e.style.background=t.style.background||"inherit",e.style.fontSize=t.style.fontSize+"px",e.style.fontWeight=t.style.fontWeight||"normal"),t.hyperLink){const n=s.createElement("a");n.className="hyper-link",n.target="_blank",n.innerText="🔗",n.href=t.hyperLink,e.appendChild(n)}if(t.icons){const i=s.createElement("span");i.className="icons",i.innerHTML=t.icons.map(e=>`<span>${b(e)}</span>`).join(""),e.appendChild(i)}if(t.tags){const o=s.createElement("div");o.className="tags",o.innerHTML=t.tags.map(e=>`<span>${b(e)}</span>`).join(""),e.appendChild(o)}}const s=document,L=(e,t)=>{const n=t?t.mindElixirBox:s;return n.querySelector(`[data-nodeid=me${e}]`)};function l(e){const t=s.createElement("epd");return t.innerText=!1!==e?"-":"+",t.expanded=!1!==e,t.className=!1!==e?"minus":"",t}function M(e){const t=E.createElementNS(S,"svg");return t.setAttribute("class",e),t}function e(e,t,n,i){const o=E.createElementNS(S,"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}const E=document,S="http://www.w3.org/2000/svg";function t(e){return e.isFocusMode?e.nodeDataBackup:e.nodeData}const r=document;let T="";var c={addChild:"插入子节点",addSibling:"插入同级节点",removeNode:"删除节点",focus:"专注",cancelFocus:"取消专注",moveUp:"上移",moveDown:"下移",link:"连接",clickTips:"请点击目标节点",font:"文字",background:"背景",tag:"标签",icon:"图标",tagsSeparate:"多个标签半角逗号分隔",iconsSeparate:"多个图标半角逗号分隔"};const v={cn:c,zh_CN:c,zh_TW:{addChild:"插入子節點",addSibling:"插入同級節點",removeNode:"刪除節點",focus:"專注",cancelFocus:"取消專注",moveUp:"上移",moveDown:"下移",link:"連接",clickTips:"請點擊目標節點",font:"文字",background:"背景",tag:"標簽",icon:"圖標",tagsSeparate:"多個標簽半角逗號分隔",iconsSeparate:"多個圖標半角逗號分隔"},en:{addChild:"Add a child",addSibling:"Add a 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"},ja:{addChild:"子ノードを追加する",addSibling:"兄弟ノードを追加する",removeNode:"ノードを削除",focus:"集中",cancelFocus:"集中解除",moveUp:"上へ移動",moveDown:"下へ移動",link:"コネクト",clickTips:"ターゲットノードをクリックしてください",font:"フォント",background:"バックグラウンド",tag:"タグ",icon:"アイコン",tagsSeparate:"複数タグはカンマ区切り",iconsSeparate:"複数アイコンはカンマ区切り"},pt:{addChild:"Adicionar item filho",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"}};function d(i,t){var n=(e,t,n)=>{const i=document.createElement("li");return i.id=e,i.innerHTML=`<span>${b(t)}</span><span>${b(n)}</span>`,i};const o=v[i.locale]?i.locale:"en",e=n("cm-add_child",v[o].addChild,"tab"),a=n("cm-add_sibling",v[o].addSibling,"enter"),r=n("cm-remove_child",v[o].removeNode,"delete"),s=n("cm-fucus",v[o].focus,""),l=n("cm-unfucus",v[o].cancelFocus,""),c=n("cm-up",v[o].moveUp,"PgUp"),d=n("cm-down",v[o].moveDown,"Pgdn"),h=n("cm-down",v[o].link,""),p=document.createElement("ul");if(p.className="menu-list",p.appendChild(e),p.appendChild(a),p.appendChild(r),t&&!t.focus||(p.appendChild(s),p.appendChild(l)),p.appendChild(c),p.appendChild(d),t&&!t.link||p.appendChild(h),t&&t.extend)for(let e=0;e<t.extend.length;e++){const m=t.extend[e],g=n(m.name,m.name,m.key||"");p.appendChild(g),g.onclick=e=>{m.onclick(e)}}const u=document.createElement("cmenu");u.appendChild(p),u.hidden=!0,i.container.append(u);let f=!0;i.container.oncontextmenu=function(e){var t,n;e.preventDefault(),!i.editable||"TPC"===(n=e.target).tagName&&(f="ROOT"===n.parentElement.tagName,f?(s.className="disabled",c.className="disabled",d.className="disabled",a.className="disabled",r.className="disabled"):(s.className="",c.className="",d.className="",a.className="",r.className=""),i.selectNode(n),u.hidden=!1,t=p.offsetHeight,n=p.offsetWidth,t+e.clientY>window.innerHeight?(p.style.top="",p.style.bottom="0px"):(p.style.bottom="",p.style.top=e.clientY+15+"px"),n+e.clientX>window.innerWidth?(p.style.left="",p.style.right="0px"):(p.style.right="",p.style.left=e.clientX+10+"px"))},u.onclick=e=>{e.target===u&&(u.hidden=!0)},e.onclick=e=>{i.addChild(),u.hidden=!0},a.onclick=e=>{f||(i.insertSibling(),u.hidden=!0)},r.onclick=e=>{f||(i.removeNode(),u.hidden=!0)},s.onclick=e=>{f||(i.focusNode(i.currentNode),u.hidden=!0)},l.onclick=e=>{i.cancelFocus(),u.hidden=!0},c.onclick=e=>{f||(i.moveUpNode(),u.hidden=!0)},d.onclick=e=>{f||(i.moveDownNode(),u.hidden=!0)},h.onclick=e=>{u.hidden=!0;const t=i.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})(v[o].clickTips);i.container.appendChild(n),i.map.addEventListener("click",e=>{e.preventDefault(),n.remove(),"T"!==e.target.parentElement.nodeName&&"ROOT"!==e.target.parentElement.nodeName||i.createLink(t,i.currentNode)},{once:!0})}}const h=(e,t)=>{const n=document.createElement("span");return n.id=e,n.innerHTML=`<svg class="icon" aria-hidden="true">
|
|
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 n={8074:(e,t,n)=>{(e.exports=n(3645)(!1)).push([e.id,".mind-elixir {\n position: relative;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\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 [contentEditable] {\n position: absolute;\n top: 0;\n left: 0;\n background-color: #00aaff;\n max-width: 300px;\n z-index: 11;\n user-select: auto;\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 [contentEditable] {\n position: absolute;\n top: 0;\n left: 0;\n background-color: #fff;\n max-width: 300px;\n padding: 8px 10px;\n z-index: 11;\n direction: ltr;\n user-select: auto;\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}\n.map-container .box t tpc [contentEditable] {\n position: absolute;\n top: 0;\n left: 0;\n background-color: #fff;\n max-width: 300px;\n padding: 5px;\n z-index: 11;\n direction: ltr;\n user-select: auto;\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: 12px;\n width: 12px;\n line-height: 12px;\n text-align: center;\n border-radius: 50%;\n border: 1px solid #4f4f4f;\n background-color: #fff;\n pointer-events: all;\n z-index: 9;\n}\n.map-container .box t epd.minus {\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 .svg2nd,\n.map-container .svg3rd,\n.map-container .topiclinks,\n.map-container .linkcontroller {\n position: absolute;\n height: 100%;\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 .svg2nd,\n.map-container .svg3rd {\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.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",""])},7787:(e,t,n)=>{(e.exports=n(3645)(!1)).push([e.id,"mmenu {\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}\nmmenu * {\n transition: color 0.4s, background-color 0.4s;\n}\nmmenu 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}\nmmenu div a {\n color: #333;\n text-decoration: none;\n}\nmmenu div.disabled {\n color: #5e5e5e;\n background-color: #f7f7f7;\n}\nmmenu div.disabled:hover {\n cursor: default;\n background-color: #f7f7f7;\n}\nmmenu div:hover {\n cursor: pointer;\n background-color: #ecf0f1;\n}\n",""])},8301:(e,t,n)=>{(e.exports=n(3645)(!1)).push([e.id,"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}\ntoolbar span:active {\n opacity: 0.5;\n}\n.rb {\n right: 20px;\n bottom: 20px;\n font-family: iconfont;\n}\n.rb span + span {\n margin-left: 10px;\n}\n.lt {\n font-size: 20px;\n left: 20px;\n top: 20px;\n width: 20px;\n}\n.lt span {\n display: block;\n}\n.lt span + span {\n margin-top: 10px;\n}\n",""])},3645:e=>{"use strict";e.exports=function(n){var r=[];return r.toString=function(){return this.map(function(e){var t=function(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa)return e=function(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}(i),t=i.sources.map(function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"}),[n].concat(t).concat([e]).join("\n");return[n].join("\n")}(e,n);return e[2]?"@media "+e[2]+"{"+t+"}":t}).join("")},r.i=function(e,t){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},i=0;i<this.length;i++){var o=this[i][0];null!=o&&(n[o]=!0)}for(i=0;i<e.length;i++){var a=e[i];null!=a[0]&&n[a[0]]||(t&&!a[2]?a[2]=t:t&&(a[2]="("+a[2]+") and ("+t+")"),r.push(a))}},r}},6194:(e,t,n)=>{var i=n(8074),o=("string"==typeof i&&(i=[[e.id,i,""]]),{hmr:!0});o.transform=void 0,o.insertInto=void 0,n(6723)(i,o);i.locals&&(e.exports=i.locals)},9721:(e,t,n)=>{var i=n(7787),o=("string"==typeof i&&(i=[[e.id,i,""]]),{hmr:!0});o.transform=void 0,o.insertInto=void 0,n(6723)(i,o);i.locals&&(e.exports=i.locals)},485:(e,t,n)=>{var i=n(8301),o=("string"==typeof i&&(i=[[e.id,i,""]]),{hmr:!0});o.transform=void 0,o.insertInto=void 0,n(6723)(i,o);i.locals&&(e.exports=i.locals)},6723:(e,t,i)=>{var n,o,a,l={},c=(n=function(){return window&&document&&document.all&&!window.atob},function(){return o=void 0===o?n.apply(this,arguments):o}),r=(a={},function(e,t){if("function"==typeof e)return e();if(void 0===a[e]){t=function(e,t){return(t||document).querySelector(e)}.call(this,e,t);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}a[e]=t}return a[e]}),s=null,d=0,h=[],p=i(1947);function u(e,t){for(var n=0;n<e.length;n++){var i=e[n],o=l[i.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](i.parts[a]);for(;a<i.parts.length;a++)o.parts.push(x(i.parts[a],t))}else{for(var r=[],a=0;a<i.parts.length;a++)r.push(x(i.parts[a],t));l[i.id]={id:i.id,refs:1,parts:r}}}}function f(e,t){for(var n=[],i={},o=0;o<e.length;o++){var a=e[o],r=t.base?a[0]+t.base:a[0],a={css:a[1],media:a[2],sourceMap:a[3]};i[r]?i[r].parts.push(a):n.push(i[r]={id:r,parts:[a]})}return n}function m(e,t){var n=r(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var i=h[h.length-1];if("top"===e.insertAt)i?i.nextSibling?n.insertBefore(t,i.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),h.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");i=r(e.insertAt.before,n);n.insertBefore(t,i)}}function g(e){null!==e.parentNode&&(e.parentNode.removeChild(e),0<=(e=h.indexOf(e))&&h.splice(e,1))}function b(e){var t,n=document.createElement("style");return void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce&&(t=i.nc)&&(e.attrs.nonce=t),v(n,e.attrs),m(e,n),n}function v(t,n){Object.keys(n).forEach(function(e){t.setAttribute(e,n[e])})}function x(t,e){var n,i,o,a,r;if(e.transform&&t.css){if(!(a="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=a}return o=e.singleton?(a=d++,n=s=s||b(e),i=N.bind(null,n,a,!1),N.bind(null,n,a,!0)):t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(a=e,r=document.createElement("link"),void 0===a.attrs.type&&(a.attrs.type="text/css"),a.attrs.rel="stylesheet",v(r,a.attrs),m(a,r),n=r,i=function(e,t,n){var i=n.css,n=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&n;(t.convertToAbsoluteUrls||o)&&(i=p(i));n&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */");t=new Blob([i],{type:"text/css"}),o=e.href;e.href=URL.createObjectURL(t),o&&URL.revokeObjectURL(o)}.bind(null,n,e),function(){g(n),n.href&&URL.revokeObjectURL(n.href)}):(n=b(e),i=function(e,t){var n=t.css,t=t.media;t&&e.setAttribute("media",t);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),function(){g(n)}),i(t),function(e){e?e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap||i(t=e):o()}}e.exports=function(e,r){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(r=r||{}).attrs="object"==typeof r.attrs?r.attrs:{},r.singleton||"boolean"==typeof r.singleton||(r.singleton=c()),r.insertInto||(r.insertInto="head"),r.insertAt||(r.insertAt="bottom");var s=f(e,r);return u(s,r),function(e){for(var t=[],n=0;n<s.length;n++){var i=s[n];(o=l[i.id]).refs--,t.push(o)}e&&u(f(e,r),r);for(var o,n=0;n<t.length;n++)if(0===(o=t[n]).refs){for(var a=0;a<o.parts.length;a++)o.parts[a]();delete l[o.id]}}};y=[];var y,k=function(e,t){return y[e]=t,y.filter(Boolean).join("\n")};function N(e,t,n,i){var n=n?"":i.css;e.styleSheet?e.styleSheet.cssText=k(t,n):(i=document.createTextNode(n),(n=e.childNodes)[t]&&e.removeChild(n[t]),n.length?e.insertBefore(i,n[t]):e.appendChild(i))}},1947:e=>{e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,i=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){t=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(t)?e:(e=0===t.indexOf("//")?t:0===t.indexOf("/")?n+t:i+t.replace(/^\.\//,""),"url("+JSON.stringify(e)+")")})}},9857:()=>{var e,t,n,i,o,a,r=window,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&&!r.__iconfont__svg__cssinject__){r.__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(r){console}}function c(){o||(o=!0,n())}e=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?(n=t.firstChild).parentNode.insertBefore(i=e,n):t.appendChild(e))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(e,0):(t=function(){document.removeEventListener("DOMContentLoaded",t,!1),e()},document.addEventListener("DOMContentLoaded",t,!1)):document.attachEvent&&(n=e,i=r.document,o=!1,(a=function(){try{i.documentElement.doScroll("left")}catch(e){return void setTimeout(a,50)}c()})(),i.onreadystatechange=function(){"complete"==i.readyState&&(i.onreadystatechange=null,c())})}},i={},d.d=(e,t)=>{for(var n in t)d.o(t,n)&&!d.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},d.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),h={},(()=>{"use strict";d.d(h,{default:()=>r});const C=15,L=8;function b(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/"/g,""")}function o(t,n){if((n=n||this.nodeData).id===t)return n;if(!n.children||!n.children.length)return null;for(let e=0;e<n.children.length;e++){var i=o(t,n.children[e]);if(i)return i}}const f=(t,e)=>{if(t.parent=e,t.children)for(let e=0;e<t.children.length;e++)f(t.children[e],t)};function k(){return((new Date).getTime().toString(16)+Math.random().toString(16).substr(2)).substr(2,16)}const m={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);var 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 a(e,t){if(e.innerText=t.topic,t.style&&(e.style.color=t.style.color||"inherit",e.style.background=t.style.background||"inherit",e.style.fontSize=t.style.fontSize+"px",e.style.fontWeight=t.style.fontWeight||"normal"),t.hyperLink){const n=s.createElement("a");n.className="hyper-link",n.target="_blank",n.innerText="🔗",n.href=t.hyperLink,e.appendChild(n)}if(t.icons){const i=s.createElement("span");i.className="icons",i.innerHTML=t.icons.map(e=>`<span>${b(e)}</span>`).join(""),e.appendChild(i)}if(t.tags){const o=s.createElement("div");o.className="tags",o.innerHTML=t.tags.map(e=>`<span>${b(e)}</span>`).join(""),e.appendChild(o)}}const s=document,$=(e,t)=>{const n=t?t.mindElixirBox:s;return n.querySelector(`[data-nodeid=me${e}]`)};function l(e){const t=s.createElement("epd");return t.innerText=!1!==e?"-":"+",t.expanded=!1!==e,t.className=!1!==e?"minus":"",t}function M(e){const t=E.createElementNS(S,"svg");return t.setAttribute("class",e),t}function g(e,t,n,i){const o=E.createElementNS(S,"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}const E=document,S="http://www.w3.org/2000/svg";function t(e){return e.isFocusMode?e.nodeDataBackup:e.nodeData}const n=document;let T="";var e={addChild:"插入子节点",addSibling:"插入同级节点",removeNode:"删除节点",focus:"专注",cancelFocus:"取消专注",moveUp:"上移",moveDown:"下移",link:"连接",clickTips:"请点击目标节点",font:"文字",background:"背景",tag:"标签",icon:"图标",tagsSeparate:"多个标签半角逗号分隔",iconsSeparate:"多个图标半角逗号分隔"};const v={cn:e,zh_CN:e,zh_TW:{addChild:"插入子節點",addSibling:"插入同級節點",removeNode:"刪除節點",focus:"專注",cancelFocus:"取消專注",moveUp:"上移",moveDown:"下移",link:"連接",clickTips:"請點擊目標節點",font:"文字",background:"背景",tag:"標簽",icon:"圖標",tagsSeparate:"多個標簽半角逗號分隔",iconsSeparate:"多個圖標半角逗號分隔"},en:{addChild:"Add a child",addSibling:"Add a 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"},ja:{addChild:"子ノードを追加する",addSibling:"兄弟ノードを追加する",removeNode:"ノードを削除",focus:"集中",cancelFocus:"集中解除",moveUp:"上へ移動",moveDown:"下へ移動",link:"コネクト",clickTips:"ターゲットノードをクリックしてください",font:"フォント",background:"バックグラウンド",tag:"タグ",icon:"アイコン",tagsSeparate:"複数タグはカンマ区切り",iconsSeparate:"複数アイコンはカンマ区切り"},pt:{addChild:"Adicionar item filho",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"}};function x(i,t){var n=(e,t,n)=>{const i=document.createElement("li");return i.id=e,i.innerHTML=`<span>${b(t)}</span><span>${b(n)}</span>`,i};const o=v[i.locale]?i.locale:"en",e=n("cm-add_child",v[o].addChild,"tab"),a=n("cm-add_sibling",v[o].addSibling,"enter"),r=n("cm-remove_child",v[o].removeNode,"delete"),s=n("cm-fucus",v[o].focus,""),l=n("cm-unfucus",v[o].cancelFocus,""),c=n("cm-up",v[o].moveUp,"PgUp"),d=n("cm-down",v[o].moveDown,"Pgdn"),h=n("cm-down",v[o].link,""),p=document.createElement("ul");if(p.className="menu-list",p.appendChild(e),p.appendChild(a),p.appendChild(r),t&&!t.focus||(p.appendChild(s),p.appendChild(l)),p.appendChild(c),p.appendChild(d),t&&!t.link||p.appendChild(h),t&&t.extend)for(let e=0;e<t.extend.length;e++){const m=t.extend[e],g=n(m.name,m.name,m.key||"");p.appendChild(g),g.onclick=e=>{m.onclick(e)}}const u=document.createElement("cmenu");u.appendChild(p),u.hidden=!0,i.container.append(u);let f=!0;i.container.oncontextmenu=function(e){var t,n;e.preventDefault(),!i.editable||"TPC"===(t=e.target).tagName&&((f="ROOT"===t.parentElement.tagName)?(s.className="disabled",c.className="disabled",d.className="disabled",a.className="disabled",r.className="disabled"):(s.className="",c.className="",d.className="",a.className="",r.className=""),i.selectNode(t),u.hidden=!1,t=p.offsetHeight,n=p.offsetWidth,t+e.clientY>window.innerHeight?(p.style.top="",p.style.bottom="0px"):(p.style.bottom="",p.style.top=e.clientY+15+"px"),n+e.clientX>window.innerWidth?(p.style.left="",p.style.right="0px"):(p.style.right="",p.style.left=e.clientX+10+"px"))},u.onclick=e=>{e.target===u&&(u.hidden=!0)},e.onclick=e=>{i.addChild(),u.hidden=!0},a.onclick=e=>{f||(i.insertSibling(),u.hidden=!0)},r.onclick=e=>{f||(i.removeNode(),u.hidden=!0)},s.onclick=e=>{f||(i.focusNode(i.currentNode),u.hidden=!0)},l.onclick=e=>{i.cancelFocus(),u.hidden=!0},c.onclick=e=>{f||(i.moveUpNode(),u.hidden=!0)},d.onclick=e=>{f||(i.moveDownNode(),u.hidden=!0)},h.onclick=e=>{u.hidden=!0;const t=i.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})(v[o].clickTips);i.container.appendChild(n),i.map.addEventListener("click",e=>{e.preventDefault(),n.remove(),"T"!==e.target.parentElement.nodeName&&"ROOT"!==e.target.parentElement.nodeName||i.createLink(t,i.currentNode)},{once:!0})}}const c=(e,t)=>{const n=document.createElement("span");return n.id=e,n.innerHTML=`<svg class="icon" aria-hidden="true">
|
|
2
2
|
<use xlink:href="#icon-${t}"></use>
|
|
3
|
-
</svg>`,n};function
|
|
3
|
+
</svg>`,n};function y(e){e.container.append(function(e){const t=document.createElement("toolbar"),n=c("fullscreen","full"),i=c("toCenter","living"),o=c("zoomout","move"),a=c("zoomin","add"),r=document.createElement("span");return r.innerText="100%",t.appendChild(n),t.appendChild(i),t.appendChild(o),t.appendChild(a),t.className="rb",n.onclick=()=>{e.container.requestFullscreen()},i.onclick=()=>{e.toCenter()},o.onclick=()=>{e.scaleVal<.6||e.scale(e.scaleVal-=.2)},a.onclick=()=>{1.6<e.scaleVal||e.scale(e.scaleVal+=.2)},t}(e)),e.container.append(function(e){const t=document.createElement("toolbar"),n=c("tbltl","left"),i=c("tbltr","right"),o=c("tblts","side");return t.appendChild(n),t.appendChild(i),t.appendChild(o),t.className="lt",n.onclick=()=>{e.initLeft()},i.onclick=()=>{e.initRight()},o.onclick=()=>{e.initSide()},t}(e))}function u(){this.handlers={}}u.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)for(var n=this.handlers[e],i=0;i<n.length;i++)n[i](t)},removeListener:function(e,t){if(this.handlers[e]){var n=this.handlers[e];if(t){if(n.length)for(var i=0;i<n.length;i++)n[i]===t&&this.handlers[e].splice(i,1)}else n.length=0}}};d(6194),d(485),d(9721),d(9857);const N=document;function i({el:e,data:t,direction:n,locale:i,draggable:o,toolBar:a,keypress:r,newTopicName:s,primaryLinkStyle:l,overflowHidden:c,primaryNodeHorizontalGap:d,primaryNodeVerticalGap:h,mobileMenu:p}){e=document.querySelector(e);e&&(this.mindElixirBox=e,this.nodeData=t.nodeData,this.linkData=t.linkData||{},this.locale=i,this.toolBar=void 0===a||a,this.keypress=void 0===r||r,this.mobileMenu=p,this.direction="number"==typeof n?n:1,this.draggable=void 0===o||o,this.newTopicName=s,this.editable=!1,this.currentNode=null,this.currentLink=null,this.inputDiv=null,this.scaleVal=1,this.tempDirection=null,this.primaryLinkStyle=l||0,this.overflowHidden=c,this.primaryNodeHorizontalGap=d,this.primaryNodeVerticalGap=h,this.bus=new u,this.bus.addListener("operation",e=>{this.isUndo?this.isUndo=!1:["moveNode","removeNode","addChild","finishEdit","editStyle","editTags","editIcons"].includes(e.name)&&this.history.push(e)}))}i.prototype={addParentLink:f,getObjById:o,processPrimaryNode:function(e,t){0===this.direction?e.className="lhs":1===this.direction?e.className="rhs":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(a,r,s,l){var c=this.map.getBoundingClientRect();if(a&&r){var d=a.getBoundingClientRect(),h=r.getBoundingClientRect(),p=(d.x+d.width/2-c.x)/this.scaleVal,u=(d.y+d.height/2-c.y)/this.scaleVal,f=(h.x+h.width/2-c.x)/this.scaleVal,m=(h.y+h.height/2-c.y)/this.scaleVal;let e,t,n,i;i=s?(e=p+l.delta1.x,t=u+l.delta1.y,n=f+l.delta2.x,m+l.delta2.y):(u+m)/2-u<=d.height/2?(e=(d.x+d.width-c.x)/this.scaleVal+100,t=u,n=(h.x+h.width-c.x)/this.scaleVal+100,m):(e=(p+f)/2,t=(u+m)/2,n=(p+f)/2,(u+m)/2);var c={cx:p,cy:u,w:d.width,h:d.height},d={cx:f,cy:m,w:h.width,h:h.height},h=function(e,t,n){let i,o;var a=(e.cy-n)/(t-e.cx);return o=a>e.h/e.w||a<-e.h/e.w?e.cy-n<0?(i=e.cx-e.h/2/a,e.cy+e.h/2):(i=e.cx+e.h/2/a,e.cy-e.h/2):e.cx-t<0?(i=e.cx+e.w/2,e.cy-e.w*a/2):(i=e.cx-e.w/2,e.cy+e.w*a/2),{x:i,y:o}}(c,e,t),g=h.x,h=h.y,b=function(e,t,n){let i,o;var a=(e.cy-n)/(t-e.cx);return o=a>e.h/e.w||a<-e.h/e.w?e.cy-n<0?(i=e.cx-e.h/2/a,e.cy+e.h/2):(i=e.cx+e.h/2/a,e.cy-e.h/2):e.cx-t<0?(i=e.cx+e.w/2,e.cy-e.w*a/2):(i=e.cx-e.w/2,e.cy+e.w*a/2),{x:i,y:o}}(d,n,i),v=b.x,b=b.y,x=function(e,t,n,i){t=i-t,e-=n;let o=Math.atan(Math.abs(t)/Math.abs(e))/3.14*180;return e<0&&0<t&&(o=180-o),e<0&&t<0&&(o=180+o),e=(o=0<e&&t<0?360-o:o)+30,t=o-30,{x1:n+20*Math.cos(Math.PI*e/180),y1:i-20*Math.sin(Math.PI*e/180),x2:n+20*Math.cos(Math.PI*t/180),y2:i-20*Math.sin(Math.PI*t/180)}}(n,i,v,b);const y=function(e,t){const n=E.createElementNS(S,"g"),i=E.createElementNS(S,"path"),o=E.createElementNS(S,"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 ${g} ${h} C ${e} ${t} ${n} ${i} ${v} `+b,`M ${x.x1} ${x.y1} L ${v} ${b} L ${x.x2} `+x.y2);let o;s?(o={id:l.id,label:"",from:a,to:r,delta1:{x:e-p,y:t-u},delta2:{x:n-f,y:i-m}},this.linkData[l.id]=o,y.linkObj=o,y.dataset.linkid=l.id):(o={id:k(),label:"",from:a,to:r,delta1:{x:e-p,y:t-u},delta2:{x:n-f,y:i-m}},this.linkData[o.id]=o,y.linkObj=o,y.dataset.linkid=o.id,this.currentLink=y),this.linkSvgGroup.appendChild(y),s||this.showLinkController(e,t,n,i,o,c,d)}},layout:function(){this.root.innerHTML="",this.box.innerHTML="";const e=this.createTopic(this.nodeData),i=(a(e,this.nodeData),e.draggable=!1,this.root.appendChild(e),this.nodeData.children);if(i&&0!==i.length){if(2===this.direction){let t=0,n=0;i.map(e=>{void 0===e.direction?t<=n?(e.direction=0,t+=1):(e.direction=1,n+=1):0===e.direction?t+=1:n+=1})}this.createChildren(this.nodeData.children,this.box,this.direction)}},linkDiv:function(t){var i=this.primaryNodeHorizontalGap||65,a=this.primaryNodeVerticalGap||25;const o=this.root;o.style.cssText=`top:${1e4-o.offsetHeight/2}px;left:${1e4-o.offsetWidth/2}px;`;var r=this.box.children;this.svg2nd.innerHTML="";let n=0,s,l=0,c=0,d=0,h=0,p=0,u;if(2===this.direction){let t=0,n=0,i=0,o=0;for(let e=0;e<r.length;e++){var f=r[e];"lhs"===f.className?(h+=f.offsetHeight+a,i+=f.offsetHeight,t+=1):(p+=f.offsetHeight+a,o+=f.offsetHeight,n+=1)}l=h>p?(u=1e4-Math.max(h)/2,s="r",(h-o)/(n-1)):(u=1e4-Math.max(p)/2,s="l",(p-i)/(t-1))}else{for(let e=0;e<r.length;e++){var m=r[e];n+=m.offsetHeight+a}u=1e4-n/2}let g="";for(let e=0;e<r.length;e++){let t,n;const x=r[e];var b=x.offsetHeight;if("lhs"===x.className){x.style.top=u+c+"px",x.style.left=1e4-o.offsetWidth/2-i-x.offsetWidth+"px",t=1e4-o.offsetWidth/2-i-15,n=u+c+b/2;let e=1e4;2===this.primaryLinkStyle?(2===this.direction&&(e=1e4-o.offsetWidth/6),n<1e4?g+=`M ${e} 10000
|
|
4
4
|
L ${e} ${n+20}
|
|
5
5
|
C ${e} ${n} ${e} ${n} ${e-20} ${n}
|
|
6
|
-
L ${t}
|
|
6
|
+
L ${t} `+n:g+=`M ${e} 10000
|
|
7
7
|
L ${e} ${n-20}
|
|
8
8
|
C ${e} ${n} ${e} ${n} ${e-20} ${n}
|
|
9
|
-
L ${t}
|
|
9
|
+
L ${t} `+n):g+=`M 10000 10000 C 10000 10000 ${1e4+2*i*.03} ${n} ${t} `+n,"l"===s?c+=b+l:c+=b+a}else{x.style.top=u+d+"px",x.style.left=1e4+o.offsetWidth/2+i+"px",t=1e4+o.offsetWidth/2+i+15,n=u+d+b/2;let e=1e4;2===this.primaryLinkStyle?(2===this.direction&&(e=1e4+o.offsetWidth/6),n<1e4?g+=`M ${e} 10000
|
|
10
10
|
L ${e} ${n+20}
|
|
11
11
|
C ${e} ${n} ${e} ${n} ${e+20} ${n}
|
|
12
|
-
L ${t}
|
|
12
|
+
L ${t} `+n:g+=`M ${e} 10000
|
|
13
13
|
L ${e} ${n-20}
|
|
14
14
|
C ${e} ${n} ${e} ${n} ${e+20} ${n}
|
|
15
|
-
L ${t}
|
|
15
|
+
L ${t} `+n):g+=`M 10000 10000 C 10000 10000 ${1e4+2*i*.03} ${n} ${t} `+n,"r"===s?d+=b+l:d+=b+a}const y=x.children[0].children[1];y&&(y.style.top=(y.parentNode.offsetHeight-y.offsetHeight)/2+"px","lhs"===x.className?y.style.left="-10px":y.style.left=y.parentNode.offsetWidth-10+"px")}this.svg2nd.appendChild(function(e){const t=E.createElementNS(S,"path");return t.setAttribute("d",e),t.setAttribute("stroke","#666"),t.setAttribute("fill","none"),t.setAttribute("stroke-width","2"),t}(g));for(let e=0;e<r.length;e++){const k=r[e];if((!t||t===r[e])&&k.childElementCount){const N=M("svg3rd");"svg"===k.lastChild.tagName&&k.lastChild.remove(),k.appendChild(N);var v=k.children[0];!function a(r,e,s){const l=e.offsetTop;const c=e.offsetLeft;const d=e.offsetWidth;const h=e.offsetHeight;for(let o=0;o<r.length;o++){const p=r[o],u=p.children[0],f=u.offsetTop,m=u.offsetHeight;let e;e=s?l+h/2:l+h;const g=f+m;let t,n,i;const b=p.offsetParent.className,v=("lhs"===b?(t=c+C,i=c,n=c-u.offsetWidth,f+m<l+h/2+50&&f+m>l+h/2-50?T+=`M ${t} ${e} L ${i} ${e} L ${i} ${g} L ${n} `+g:f+m>=l+h/2?T+=`M ${t} ${e}
|
|
16
16
|
L ${i} ${e}
|
|
17
|
-
L ${i} ${g-
|
|
18
|
-
A ${
|
|
19
|
-
${i-
|
|
20
|
-
L ${n}
|
|
17
|
+
L ${i} ${g-L}
|
|
18
|
+
A ${L} ${L} 0 0 1
|
|
19
|
+
${i-L},${g}
|
|
20
|
+
L ${n} `+g:T+=`M ${t} ${e}
|
|
21
21
|
L ${i} ${e}
|
|
22
|
-
L ${i} ${g+
|
|
23
|
-
A ${
|
|
24
|
-
${i-
|
|
25
|
-
L ${n}
|
|
22
|
+
L ${i} ${g+L}
|
|
23
|
+
A ${L} ${L} 0 0 0
|
|
24
|
+
${i-L},${g}
|
|
25
|
+
L ${n} `+g):"rhs"===b&&(t=c+d-C,i=c+d,n=c+d+u.offsetWidth,f+m<l+h/2+50&&f+m>l+h/2-50?T+=`M ${t} ${e} L ${i} ${e} L ${i} ${g} L ${n} `+g:f+m>=l+h/2?T+=`M ${t} ${e}
|
|
26
26
|
L ${i} ${e}
|
|
27
|
-
L ${i} ${g-
|
|
28
|
-
A ${
|
|
29
|
-
L ${n}
|
|
27
|
+
L ${i} ${g-L}
|
|
28
|
+
A ${L} ${L} 0 0 0 ${i+L},${g}
|
|
29
|
+
L ${n} `+g:T+=`M ${t} ${e}
|
|
30
30
|
L ${i} ${e}
|
|
31
|
-
L ${i} ${g+
|
|
32
|
-
A ${
|
|
33
|
-
L ${n}
|
|
31
|
+
L ${i} ${g+L}
|
|
32
|
+
A ${L} ${L} 0 0 1 ${i+L},${g}
|
|
33
|
+
L ${n} `+g),u.children[1]);if(v&&(v.style.top=(u.offsetHeight-v.offsetHeight)/2+"px","lhs"===b?v.style.left="-10px":"rhs"===b&&(v.style.left=u.offsetWidth-10+"px"),v.expanded)){const x=p.children[1].children;0<x.length&&a(x,u)}}}(k.children[1].children,v,!(T="")),N.appendChild(function(e){const t=E.createElementNS(S,"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.setAttribute("transform","translate(0.5,-0.5)"),t}(T))}}this.linkSvgGroup.innerHTML="";for(const w in this.linkData){var e=this.linkData[w];"string"==typeof e.from?this.createLink($(e.from),$(e.to),!0,e):this.createLink($(e.from.nodeObj.id),$(e.to.nodeObj.id),!0,e)}},createChildren:function(t,e,n){let i;i=e||s.createElement("children");for(let e=0;e<t.length;e++){var o=t[e];const a=s.createElement("GRP"),r=(0===n?a.className="lhs":1===n?a.className="rhs":2===n&&(0===o.direction?a.className="lhs":1===o.direction&&(a.className="rhs")),this.createTop(o));o.children&&0<o.children.length?(r.appendChild(l(o.expanded)),a.appendChild(r),!1!==o.expanded&&(o=this.createChildren(o.children),a.appendChild(o))):a.appendChild(r),i.appendChild(a)}return i},createGroup:function(e){const t=s.createElement("GRP"),n=this.createTop(e);return t.appendChild(n),e.children&&0<e.children.length&&(n.appendChild(l(e.expanded)),!1!==e.expanded&&(e=this.createChildren(e.children),t.appendChild(e))),{grp:t,top:n}},createTop:function(e){const t=s.createElement("t");var n=this.createTopic(e);return a(n,e),t.appendChild(n),t},createTopic:function(e){const t=s.createElement("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($(e));this.currentNode&&(this.currentNode.className=""),e.className="selected",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){var t=this.currentNode.parentElement.parentElement.nextSibling;let e;var n=this.currentNode.parentElement.parentElement;if("rhs"===n.className||"lhs"===n.className){var i=this.mindElixirBox.querySelectorAll("."+n.className),n=Array.from(i).indexOf(n);if(!(n+1<i.length))return!1;e=i[n+1].firstChild.firstChild}else{if(!t)return!1;e=t.firstChild.firstChild}return this.selectNode(e),!0}},selectPrevSibling:function(){if(this.currentNode&&"meroot"!==this.currentNode.dataset.nodeid){var t=this.currentNode.parentElement.parentElement.previousSibling;let e;var n=this.currentNode.parentElement.parentElement;if("rhs"===n.className||"lhs"===n.className){var i=this.mindElixirBox.querySelectorAll("."+n.className),n=Array.from(i).indexOf(n);if(!(0<=n-1))return!1;e=i[n-1].firstChild.firstChild}else{if(!t)return!1;e=t.firstChild.firstChild}return this.selectNode(e),!0}},selectFirstChild:function(){var e;!this.currentNode||(e=this.currentNode.parentElement.nextSibling)&&e.firstChild&&(e=e.firstChild.firstChild.firstChild,this.selectNode(e))},selectParent:function(){var e;!this.currentNode||"meroot"===this.currentNode.dataset.nodeid||(e=this.currentNode.parentElement.parentElement.parentElement.previousSibling)&&(e=e.firstChild,this.selectNode(e))},getAllDataString:function(){var e={nodeData:t(this),linkData:this.linkData};return JSON.stringify(e,(e,t)=>{if("parent"!==e)return"from"===e||"to"===e?t.nodeObj.id:t})},getAllData:function(){var e={nodeData:t(this),linkData:this.linkData};return JSON.parse(JSON.stringify(e,(e,t)=>{if("parent"!==e)return"from"===e||"to"===e?t.nodeObj.id:t}))},getAllDataMd:function(){var e=t(this);let o="# "+e.topic+"\n\n";return function t(n,i){for(let e=0;e<n.length;e++)o+=i<=6?"".padStart(i,"#")+" "+n[e].topic+"\n\n":"".padStart(i-7,"\t")+"- "+n[e].topic+"\n",n[e].children&&t(n[e].children,i+1)}(e.children,2),o},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())},cancelFocus:function(){this.isFocusMode=!1,null!==this.tempDirection&&(delete this.nodeData.root,this.nodeData=this.nodeDataBackup,this.direction=this.tempDirection,this.tempDirection=null,this.init())},initLeft:function(){this.direction=0,this.init()},initRight:function(){this.direction=1,this.init()},initSide:function(){this.direction=2,this.init()},setLocale:function(e){this.locale=e,this.init()},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)},init:function(){if(f(this.nodeData),this.mindElixirBox.className+=" mind-elixir",this.mindElixirBox.innerHTML="",this.container=N.createElement("div"),this.container.className="map-container",this.overflowHidden&&(this.container.style.overflow="hidden"),this.map=N.createElement("div"),this.map.className="map-canvas",this.map.setAttribute("tabindex","0"),this.container.appendChild(this.map),this.mindElixirBox.appendChild(this.container),this.root=N.createElement("root"),this.box=N.createElement("children"),this.box.className="box",this.svg2nd=M("svg2nd"),this.linkController=M("linkcontroller"),this.P2=N.createElement("div"),this.P3=N.createElement("div"),this.P2.className=this.P3.className="circle",this.line1=g(0,0,0,0),this.line2=g(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.svg2nd),this.map.appendChild(this.linkController),this.map.appendChild(this.linkSvgGroup),this.map.appendChild(this.P2),this.map.appendChild(this.P3),this.toolBar&&y(this),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&this.mobileMenu){var n=this;var i=void 0;var o=(e,t)=>{const n=document.createElement("div");return n.id=e,n.innerHTML=`<svg class="icon" aria-hidden="true">
|
|
34
34
|
<use xlink:href="#icon-${t}"></use>
|
|
35
|
-
</svg>`,n};const e=
|
|
35
|
+
</svg>`,n};const e=o("cm-add_child","zijiedian"),a=o("cm-add_sibling","tongjijiedian-"),r=o("cm-remove_child","shanchu2"),s=o("cm-up","rising"),l=o("cm-down","falling"),c=o("cm-edit","edit"),d=document.createElement("ul");if(d.className="menu-list",i&&i.extend)for(let e=0;e<i.extend.length;e++){const p=i.extend[e],u=o(p.name,p.name);d.appendChild(u),u.onclick=e=>{p.onclick(e)}}const h=document.createElement("mmenu");h.appendChild(e),h.appendChild(a),h.appendChild(r),h.appendChild(s),h.appendChild(l),h.appendChild(c),h.hidden=!0,n.container.append(h);let t=!0;n.bus.addListener("unselectNode",function(){h.hidden=!0}),n.bus.addListener("selectNode",function(e){h.hidden=!1,t=!!e.root}),h.onclick=e=>{e.target===h&&(h.hidden=!0)},e.onclick=e=>{n.addChild()},a.onclick=e=>{t||n.insertSibling()},r.onclick=e=>{t||n.removeNode()},s.onclick=e=>{t||n.moveUpNode()},l.onclick=e=>{t||n.moveDownNode()},c.onclick=e=>{n.beginEdit()}}else this.contextMenu&&x(this,this.contextMenuOption);var t;this.toCenter(),this.layout(),this.linkDiv(),this.overflowHidden||((t=this).map.addEventListener("click",e=>{"EPD"===e.target.nodeName?t.expandNode(e.target.previousSibling):"T"===e.target.parentElement.nodeName||"ROOT"===e.target.parentElement.nodeName?t.selectNode(e.target):"path"===e.target.nodeName?"g"===e.target.parentElement.nodeName&&t.selectLink(e.target.parentElement):"circle"!==e.target.className&&(t.unselectNode(),t.hideLinkController())}),t.map.addEventListener("dblclick",e=>{e.preventDefault(),!t.editable||"T"!==e.target.parentElement.nodeName&&"ROOT"!==e.target.parentElement.nodeName||t.beginEdit(e.target)}),t.map.addEventListener("mousemove",e=>{"true"!==e.target.contentEditable&&m.onMove(e,t.container)}),t.map.addEventListener("mousedown",e=>{"true"!==e.target.contentEditable&&(m.afterMoving=!1,m.mousedown=!0)}),t.map.addEventListener("mouseleave",e=>{m.clear()}),t.map.addEventListener("mouseup",e=>{m.clear()}))}},i.LEFT=0,i.RIGHT=1,i.SIDE=2,i.version="0.17.0",i.E=$;const r=i})(),h.default;function d(e){var t=i[e];if(void 0!==t)return t.exports;t=i[e]={id:e,exports:{}};return n[e](t,t.exports,d),t.exports}var n,i,h});
|
package/dist/painter.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.painter=e():t.painter=e()}(self,function(){return r={4725:(t,e,r)=>{var i=r(2691),n=r(9016),s=r(6157),a=i.TypeError;t.exports=function(t){if(n(t))return t;throw a(s(t)+" is not a function")}},8590:(t,e,r)=>{var i=r(2691),n=r(3350),s=r(6157),a=i.TypeError;t.exports=function(t){if(n(t))return t;throw a(s(t)+" is not a constructor")}},9121:(t,e,r)=>{var i=r(2691),n=r(9016),s=i.String,a=i.TypeError;t.exports=function(t){if("object"==typeof t||n(t))return t;throw a("Can't set "+s(t)+" as a prototype")}},9828:(t,e,r)=>{var i=r(5129),n=r(3372),r=r(5359),s=i("unscopables"),a=Array.prototype;null==a[s]&&r.f(a,s,{configurable:!0,value:n(null)}),t.exports=function(t){a[s][t]=!0}},7454:(t,e,r)=>{"use strict";var i=r(5346).charAt;t.exports=function(t,e,r){return e+(r?i(t,e).length:1)}},7173:(t,e,r)=>{var i=r(2691),n=r(517),s=i.TypeError;t.exports=function(t,e){if(n(e,t))return t;throw s("Incorrect invocation")}},6471:(t,e,r)=>{var i=r(2691),n=r(3836),s=i.String,a=i.TypeError;t.exports=function(t){if(n(t))return t;throw a(s(t)+" is not an object")}},3922:(t,e,r)=>{function i(o){return function(t,e,r){var i,n=h(t),s=l(n),a=u(r,s);if(o&&e!=e){for(;a<s;)if((i=n[a++])!=i)return!0}else for(;a<s;a++)if((o||a in n)&&n[a]===e)return o||a||0;return!o&&-1}}var h=r(685),u=r(7893),l=r(7005);t.exports={includes:i(!0),indexOf:i(!1)}},605:(t,e,r)=>{"use strict";var i=r(9273);t.exports=function(t,e){var r=[][t];return!!r&&i(function(){r.call(null,e||function(){return 1},1)})}},4007:(t,e,r)=>{function i(u){return function(t,e,r,i){l(e);var n=c(t),s=g(n),a=p(n),o=u?a-1:0,h=u?-1:1;if(r<2)for(;;){if(o in s){i=s[o],o+=h;break}if(o+=h,u?o<0:a<=o)throw f("Reduce of empty array with no initial value")}for(;u?0<=o:o<a;o+=h)o in s&&(i=e(i,s[o],o,n));return i}}var n=r(2691),l=r(4725),c=r(5597),g=r(8808),p=r(7005),f=n.TypeError;t.exports={left:i(!1),right:i(!0)}},8562:(t,e,r)=>{var i=r(2691),h=r(7893),u=r(7005),l=r(8328),c=i.Array,g=Math.max;t.exports=function(t,e,r){for(var i=u(t),n=h(e,i),s=h(void 0===r?i:r,i),a=c(g(s-n,0)),o=0;n<s;n++,o++)l(a,o,t[n]);return a.length=o,a}},6481:(t,e,r)=>{r=r(2090);t.exports=r([].slice)},3348:(t,e,r)=>{var n=r(5129)("iterator"),s=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){s=!0}};a[n]=function(){return this},Array.from(a,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!s)return!1;var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},t(i)}catch(t){}return r}},6911:(t,e,r)=>{var r=r(2090),i=r({}.toString),n=r("".slice);t.exports=function(t){return n(i(t),8,-1)}},1654:(t,e,r)=>{var i=r(2691),n=r(3032),s=r(9016),a=r(6911),o=r(5129)("toStringTag"),h=i.Object,u="Arguments"==a(function(){return arguments}());t.exports=n?a:function(t){var e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,e){try{return t[e]}catch(t){}}(t=h(t),o))?e:u?a(t):"Object"==(e=a(t))&&s(t.callee)?"Arguments":e}},2563:(t,e,r)=>{var h=r(5301),u=r(3487),l=r(4185),c=r(5359);t.exports=function(t,e,r){for(var i=u(e),n=c.f,s=l.f,a=0;a<i.length;a++){var o=i[a];h(t,o)||r&&h(r,o)||n(t,o,s(e,o))}}},8207:(t,e,r)=>{var i=r(5129)("match");t.exports=function(e){var r=/./;try{"/./"[e](r)}catch(t){try{return r[i]=!1,"/./"[e](r)}catch(t){}}return!1}},5173:(t,e,r)=>{r=r(9273);t.exports=!r(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},231:(t,e,r)=>{"use strict";function n(){return this}var s=r(2136).IteratorPrototype,a=r(3372),o=r(9969),h=r(8252),u=r(471);t.exports=function(t,e,r,i){e+=" Iterator";return t.prototype=a(s,{next:o(+!i,r)}),h(t,e,!1,!0),u[e]=n,t}},3725:(t,e,r)=>{var i=r(2031),n=r(5359),s=r(9969);t.exports=i?function(t,e,r){return n.f(t,e,s(1,r))}:function(t,e,r){return t[e]=r,t}},9969:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},8328:(t,e,r)=>{"use strict";var i=r(6708),n=r(5359),s=r(9969);t.exports=function(t,e,r){e=i(e);e in t?n.f(t,e,s(0,r)):t[e]=r}},8414:(t,e,r)=>{"use strict";function d(){return this}var y=r(4696),v=r(363),m=r(4289),i=r(3991),x=r(9016),b=r(231),w=r(4404),S=r(2716),T=r(8252),A=r(3725),O=r(3156),n=r(5129),C=r(471),r=r(2136),P=i.PROPER,E=i.CONFIGURABLE,M=r.IteratorPrototype,N=r.BUGGY_SAFARI_ITERATORS,R=n("iterator"),_="values",V="entries";t.exports=function(t,e,r,i,n,s,a){b(r,e,i);function o(t){if(t===n&&p)return p;if(!N&&t in c)return c[t];switch(t){case"keys":case _:case V:return function(){return new r(this,t)}}return function(){return new r(this)}}var h,u,i=e+" Iterator",l=!1,c=t.prototype,g=c[R]||c["@@iterator"]||n&&c[n],p=!N&&g||o(n),f="Array"==e&&c.entries||g;if(f&&(f=w(f.call(new t)))!==Object.prototype&&f.next&&(m||w(f)===M||(S?S(f,M):x(f[R])||O(f,R,d)),T(f,i,!0,!0),m&&(C[i]=d)),P&&n==_&&g&&g.name!==_&&(!m&&E?A(c,"name",_):(l=!0,p=function(){return v(g,this)})),n)if(h={values:o(_),keys:s?p:o("keys"),entries:o(V)},a)for(u in h)!N&&!l&&u in c||O(c,u,h[u]);else y({target:e,proto:!0,forced:N||l},h);return m&&!a||c[R]===p||O(c,R,p,{name:n}),C[e]=p,h}},2031:(t,e,r)=>{r=r(9273);t.exports=!r(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},652:(t,e,r)=>{var i=r(2691),r=r(3836),n=i.document,s=r(n)&&r(n.createElement);t.exports=function(t){return s?n.createElement(t):{}}},252:t=>{t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},5792:(t,e,r)=>{r=r(652)("span").classList,r=r&&r.constructor&&r.constructor.prototype;t.exports=r===Object.prototype?void 0:r},6233:t=>{t.exports="object"==typeof window},5700:(t,e,r)=>{var i=r(1605),r=r(2691);t.exports=/ipad|iphone|ipod/i.test(i)&&void 0!==r.Pebble},4530:(t,e,r)=>{r=r(1605);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},7610:(t,e,r)=>{var i=r(6911),r=r(2691);t.exports="process"==i(r.process)},9746:(t,e,r)=>{r=r(1605);t.exports=/web0s(?!.*chrome)/i.test(r)},1605:(t,e,r)=>{r=r(2034);t.exports=r("navigator","userAgent")||""},2647:(t,e,r)=>{var i,n,s=r(2691),r=r(1605),a=s.process,s=s.Deno,a=a&&a.versions||s&&s.version,s=a&&a.v8;!(n=s?0<(i=s.split("."))[0]&&i[0]<4?1:+(i[0]+i[1]):n)&&r&&(!(i=r.match(/Edge\/(\d+)/))||74<=i[1])&&(i=r.match(/Chrome\/(\d+)/))&&(n=+i[1]),t.exports=n},5864:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},4696:(t,e,r)=>{var u=r(2691),l=r(4185).f,c=r(3725),g=r(3156),p=r(5146),f=r(2563),d=r(8484);t.exports=function(t,e){var r,i,n,s=t.target,a=t.global,o=t.stat,h=a?u:o?u[s]||p(s,{}):(u[s]||{}).prototype;if(h)for(r in e){if(i=e[r],n=t.noTargetGet?(n=l(h,r))&&n.value:h[r],!d(a?r:s+(o?".":"#")+r,t.forced)&&void 0!==n){if(typeof i==typeof n)continue;f(i,n)}(t.sham||n&&n.sham)&&c(i,"sham",!0),g(h,r,i,t)}}},9273:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},6099:(t,e,r)=>{"use strict";r(8522);var h=r(2090),u=r(3156),l=r(2928),c=r(9273),g=r(5129),p=r(3725),f=g("species"),d=RegExp.prototype;t.exports=function(r,t,e,i){var a,n=g(r),o=!c(function(){var t={};return t[n]=function(){return 7},7!=""[r](t)}),s=o&&!c(function(){var t=!1,e=/a/;return"split"===r&&((e={constructor:{}}).constructor[f]=function(){return e},e.flags="",e[n]=/./[n]),e.exec=function(){return t=!0,null},e[n](""),!t});o&&s&&!e||(a=h(/./[n]),s=t(n,""[r],function(t,e,r,i,n){var t=h(t),s=e.exec;return s===l||s===d.exec?o&&!n?{done:!0,value:a(e,r,i)}:{done:!0,value:t(r,e,i)}:{done:!1}}),u(String.prototype,r,s[0]),u(d,n,s[1])),i&&p(d[n],"sham",!0)}},4091:(t,e,r)=>{var r=r(9922),i=Function.prototype,n=i.apply,s=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?s.bind(n):function(){return s.apply(n,arguments)})},7825:(t,e,r)=>{var i=r(2090),n=r(4725),s=r(9922),a=i(i.bind);t.exports=function(t,e){return n(t),void 0===e?t:s?a(t,e):function(){return t.apply(e,arguments)}}},9922:(t,e,r)=>{r=r(9273);t.exports=!r(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},363:(t,e,r)=>{var r=r(9922),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},3991:(t,e,r)=>{var i=r(2031),r=r(5301),n=Function.prototype,s=i&&Object.getOwnPropertyDescriptor,r=r(n,"name"),a=r&&"something"===function(){}.name,i=r&&(!i||s(n,"name").configurable);t.exports={EXISTS:r,PROPER:a,CONFIGURABLE:i}},2090:(t,e,r)=>{var r=r(9922),i=Function.prototype,n=i.bind,s=i.call,a=r&&n.bind(s,s);t.exports=r?function(t){return t&&a(t)}:function(t){return t&&function(){return s.apply(t,arguments)}}},2034:(t,e,r)=>{var i=r(2691),n=r(9016);t.exports=function(t,e){return arguments.length<2?(r=i[t],n(r)?r:void 0):i[t]&&i[t][e];var r}},1433:(t,e,r)=>{var i=r(1654),n=r(399),s=r(471),a=r(5129)("iterator");t.exports=function(t){if(null!=t)return n(t,a)||n(t,"@@iterator")||s[i(t)]}},2264:(t,e,r)=>{var i=r(2691),n=r(363),s=r(4725),a=r(6471),o=r(6157),h=r(1433),u=i.TypeError;t.exports=function(t,e){var r=arguments.length<2?h(t):e;if(s(r))return a(n(r,t));throw u(o(t)+" is not iterable")}},399:(t,e,r)=>{var i=r(4725);t.exports=function(t,e){t=t[e];return null==t?void 0:i(t)}},1208:(t,e,r)=>{var i=r(2090),n=r(5597),g=Math.floor,p=i("".charAt),f=i("".replace),d=i("".slice),y=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,v=/\$([$&'`]|\d{1,2})/g;t.exports=function(s,a,o,h,u,t){var l=o+s.length,c=h.length,e=v;return void 0!==u&&(u=n(u),e=y),f(t,e,function(t,e){var r;switch(p(e,0)){case"$":return"$";case"&":return s;case"`":return d(a,0,o);case"'":return d(a,l);case"<":r=u[d(e,1,-1)];break;default:var i,n=+e;if(0==n)return t;if(c<n)return 0!==(i=g(n/10))&&i<=c?void 0===h[i-1]?p(e,1):h[i-1]+p(e,1):t;r=h[n-1]}return void 0===r?"":r})}},2691:(t,e,r)=>{function i(t){return t&&t.Math==Math&&t}t.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof r.g&&r.g)||function(){return this}()||Function("return this")()},5301:(t,e,r)=>{var i=r(2090),n=r(5597),s=i({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return s(n(t),e)}},6573:t=>{t.exports={}},6269:(t,e,r)=>{var i=r(2691);t.exports=function(t,e){var r=i.console;r&&r.error&&(1==arguments.length?r.error(t):r.error(t,e))}},3504:(t,e,r)=>{r=r(2034);t.exports=r("document","documentElement")},8745:(t,e,r)=>{var i=r(2031),n=r(9273),s=r(652);t.exports=!i&&!n(function(){return 7!=Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a})},8808:(t,e,r)=>{var i=r(2691),n=r(2090),s=r(9273),a=r(6911),o=i.Object,h=n("".split);t.exports=s(function(){return!o("z").propertyIsEnumerable(0)})?function(t){return"String"==a(t)?h(t,""):o(t)}:o},1904:(t,e,r)=>{var i=r(2090),n=r(9016),r=r(4154),s=i(Function.toString);n(r.inspectSource)||(r.inspectSource=function(t){return s(t)}),t.exports=r.inspectSource},7945:(t,e,r)=>{var i,n,s,a,o,h,u,l,c=r(7347),g=r(2691),p=r(2090),f=r(3836),d=r(3725),y=r(5301),v=r(4154),m=r(5114),r=r(6573),x="Object already initialized",b=g.TypeError,g=g.WeakMap;u=c||v.state?(i=v.state||(v.state=new g),n=p(i.get),s=p(i.has),a=p(i.set),o=function(t,e){if(s(i,t))throw new b(x);return e.facade=t,a(i,t,e),e},h=function(t){return n(i,t)||{}},function(t){return s(i,t)}):(r[l=m("state")]=!0,o=function(t,e){if(y(t,l))throw new b(x);return e.facade=t,d(t,l,e),e},h=function(t){return y(t,l)?t[l]:{}},function(t){return y(t,l)}),t.exports={set:o,get:h,has:u,enforce:function(t){return u(t)?h(t):o(t,{})},getterFor:function(e){return function(t){if(f(t)&&(t=h(t)).type===e)return t;throw b("Incompatible receiver, "+e+" required")}}}},6283:(t,e,r)=>{var i=r(5129),n=r(471),s=i("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||a[s]===t)}},6718:(t,e,r)=>{var i=r(6911);t.exports=Array.isArray||function(t){return"Array"==i(t)}},9016:t=>{t.exports=function(t){return"function"==typeof t}},3350:(t,e,r)=>{function i(){}function n(t){if(!h(t))return!1;try{return p(i,g,t),!0}catch(t){return!1}}function s(t){if(!h(t))return!1;switch(u(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return y||!!d(f,c(t))}catch(t){return!0}}var a=r(2090),o=r(9273),h=r(9016),u=r(1654),l=r(2034),c=r(1904),g=[],p=l("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=a(f.exec),y=!f.exec(i);s.sham=!0,t.exports=!p||o(function(){var t;return n(n.call)||!n(Object)||!n(function(){t=!0})||t})?s:n},8484:(t,e,r)=>{function i(t,e){return(t=h[o(t)])==l||t!=u&&(s(e)?n(e):!!e)}var n=r(9273),s=r(9016),a=/#|\.prototype\./,o=i.normalize=function(t){return String(t).replace(a,".").toLowerCase()},h=i.data={},u=i.NATIVE="N",l=i.POLYFILL="P";t.exports=i},3836:(t,e,r)=>{var i=r(9016);t.exports=function(t){return"object"==typeof t?null!==t:i(t)}},4289:t=>{t.exports=!1},8890:(t,e,r)=>{var i=r(3836),n=r(6911),s=r(5129)("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[s])?!!e:"RegExp"==n(t))}},5063:(t,e,r)=>{var i=r(2691),n=r(2034),s=r(9016),a=r(517),r=r(1954),o=i.Object;t.exports=r?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return s(e)&&a(e.prototype,o(t))}},9281:(t,e,r)=>{function y(t,e){this.stopped=t,this.result=e}var i=r(2691),v=r(7825),m=r(363),x=r(6471),b=r(6157),w=r(6283),S=r(7005),T=r(517),A=r(2264),O=r(1433),C=r(2598),P=i.TypeError,E=y.prototype;t.exports=function(t,e,r){function i(t){return s&&C(s,"normal",t),new y(!0,t)}function n(t){return g?(x(t),f?d(t[0],t[1],i):d(t[0],t[1])):f?d(t,i):d(t)}var s,a,o,h,u,l,c=r&&r.that,g=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),f=!(!r||!r.INTERRUPTED),d=v(e,c);if(p)s=t;else{if(!(r=O(t)))throw P(b(t)+" is not iterable");if(w(r)){for(a=0,o=S(t);a<o;a++)if((h=n(t[a]))&&T(E,h))return h;return new y(!1)}s=A(t,r)}for(u=s.next;!(l=m(u,s)).done;){try{h=n(l.value)}catch(t){C(s,"throw",t)}if("object"==typeof h&&h&&T(E,h))return h}return new y(!1)}},2598:(t,e,r)=>{var s=r(363),a=r(6471),o=r(399);t.exports=function(t,e,r){var i,n;a(t);try{if(!(i=o(t,"return"))){if("throw"===e)throw r;return r}i=s(i,t)}catch(t){n=!0,i=t}if("throw"===e)throw r;if(n)throw i;return a(i),r}},2136:(t,e,r)=>{"use strict";var i,n,s=r(9273),a=r(9016),o=r(3372),h=r(4404),u=r(3156),l=r(5129),r=r(4289),c=l("iterator"),l=!1;[].keys&&("next"in(n=[].keys())?(h=h(h(n)))!==Object.prototype&&(i=h):l=!0),null==i||s(function(){var t={};return i[c].call(t)!==t})?i={}:r&&(i=o(i)),a(i[c])||u(i,c,function(){return this}),t.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:l}},471:t=>{t.exports={}},7005:(t,e,r)=>{var i=r(8626);t.exports=function(t){return i(t.length)}},6211:(t,e,r)=>{var i,n,s,a,o,h,u,l=r(2691),c=r(7825),g=r(4185).f,p=r(7196).set,f=r(4530),d=r(5700),y=r(9746),v=r(7610),r=l.MutationObserver||l.WebKitMutationObserver,m=l.document,x=l.process,b=l.Promise,g=g(l,"queueMicrotask"),g=g&&g.value;g||(i=function(){var t,e;for(v&&(t=x.domain)&&t.exit();n;){e=n.fn,n=n.next;try{e()}catch(t){throw n?a():s=void 0,t}}s=void 0,t&&t.enter()},a=f||v||y||!r||!m?!d&&b&&b.resolve?((f=b.resolve(void 0)).constructor=b,u=c(f.then,f),function(){u(i)}):v?function(){x.nextTick(i)}:(p=c(p,l),function(){p(i)}):(o=!0,h=m.createTextNode(""),new r(i).observe(h,{characterData:!0}),function(){h.data=o=!o})),t.exports=g||function(t){t={fn:t,next:void 0};s&&(s.next=t),n||(n=t,a()),s=t}},5014:(t,e,r)=>{r=r(2691);t.exports=r.Promise},4161:(t,e,r)=>{var i=r(2647),r=r(9273);t.exports=!!Object.getOwnPropertySymbols&&!r(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&i&&i<41})},7347:(t,e,r)=>{var i=r(2691),n=r(9016),r=r(1904),i=i.WeakMap;t.exports=n(i)&&/native code/.test(r(i))},3503:(t,e,r)=>{"use strict";function i(t){var r,i;this.promise=new t(function(t,e){if(void 0!==r||void 0!==i)throw TypeError("Bad Promise constructor");r=t,i=e}),this.resolve=n(r),this.reject=n(i)}var n=r(4725);t.exports.f=function(t){return new i(t)}},1285:(t,e,r)=>{var i=r(2691),n=r(8890),s=i.TypeError;t.exports=function(t){if(n(t))throw s("The method doesn't accept regular expressions");return t}},3372:(t,e,r)=>{function i(){}function n(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e}var s,a=r(6471),o=r(8058),h=r(5864),u=r(6573),l=r(3504),c=r(652),r=r(5114),g="prototype",p="script",f=r("IE_PROTO"),d=function(t){return"<"+p+">"+t+"</"+p+">"},y=function(){try{s=new ActiveXObject("htmlfile")}catch(t){}y="undefined"==typeof document||document.domain&&s?n(s):(t=c("iframe"),e="java"+p+":",t.style.display="none",l.appendChild(t),t.src=String(e),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F);for(var t,e,r=h.length;r--;)delete y[g][h[r]];return y()};u[f]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(i[g]=a(t),r=new i,i[g]=null,r[f]=t):r=y(),void 0===e?r:o.f(r,e)}},8058:(t,e,r)=>{var i=r(2031),n=r(6167),o=r(5359),h=r(6471),u=r(685),l=r(2622);e.f=i&&!n?Object.defineProperties:function(t,e){h(t);for(var r,i=u(e),n=l(e),s=n.length,a=0;a<s;)o.f(t,r=n[a++],i[r]);return t}},5359:(t,e,r)=>{var i=r(2691),n=r(2031),s=r(8745),a=r(6167),o=r(6471),h=r(6708),u=i.TypeError,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,g="enumerable",p="configurable",f="writable";e.f=n?a?function(t,e,r){var i;return o(t),e=h(e),o(r),"function"==typeof t&&"prototype"===e&&"value"in r&&f in r&&!r[f]&&((i=c(t,e))&&i[f]&&(t[e]=r.value,r={configurable:(p in r?r:i)[p],enumerable:(g in r?r:i)[g],writable:!1})),l(t,e,r)}:l:function(t,e,r){if(o(t),e=h(e),o(r),s)try{return l(t,e,r)}catch(t){}if("get"in r||"set"in r)throw u("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},4185:(t,e,r)=>{var i=r(2031),n=r(363),s=r(1233),a=r(9969),o=r(685),h=r(6708),u=r(5301),l=r(8745),c=Object.getOwnPropertyDescriptor;e.f=i?c:function(t,e){if(t=o(t),e=h(e),l)try{return c(t,e)}catch(t){}if(u(t,e))return a(!n(s.f,t,e),t[e])}},199:(t,e,r)=>{var i=r(6797),n=r(5864).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,n)}},311:(t,e)=>{e.f=Object.getOwnPropertySymbols},4404:(t,e,r)=>{var i=r(2691),n=r(5301),s=r(9016),a=r(5597),o=r(5114),r=r(5173),h=o("IE_PROTO"),u=i.Object,l=u.prototype;t.exports=r?u.getPrototypeOf:function(t){t=a(t);if(n(t,h))return t[h];var e=t.constructor;return s(e)&&t instanceof e?e.prototype:t instanceof u?l:null}},517:(t,e,r)=>{r=r(2090);t.exports=r({}.isPrototypeOf)},6797:(t,e,r)=>{var i=r(2090),a=r(5301),o=r(685),h=r(3922).indexOf,u=r(6573),l=i([].push);t.exports=function(t,e){var r,i=o(t),n=0,s=[];for(r in i)!a(u,r)&&a(i,r)&&l(s,r);for(;e.length>n;)!a(i,r=e[n++])||~h(s,r)||l(s,r);return s}},2622:(t,e,r)=>{var i=r(6797),n=r(5864);t.exports=Object.keys||function(t){return i(t,n)}},1233:(t,e)=>{"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,n=i&&!r.call({1:2},1);e.f=n?function(t){t=i(this,t);return!!t&&t.enumerable}:r},2716:(t,e,r)=>{var n=r(2090),s=r(6471),a=r(9121);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var r,i=!1,t={};try{(r=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(t,[]),i=t instanceof Array}catch(t){}return function(t,e){return s(t),a(e),i?r(t,e):t.__proto__=e,t}}():void 0)},9331:(t,e,r)=>{var i=r(2691),n=r(363),s=r(9016),a=r(3836),o=i.TypeError;t.exports=function(t,e){var r,i;if("string"===e&&s(r=t.toString)&&!a(i=n(r,t)))return i;if(s(r=t.valueOf)&&!a(i=n(r,t)))return i;if("string"!==e&&s(r=t.toString)&&!a(i=n(r,t)))return i;throw o("Can't convert object to primitive value")}},3487:(t,e,r)=>{var i=r(2034),n=r(2090),s=r(199),a=r(311),o=r(6471),h=n([].concat);t.exports=i("Reflect","ownKeys")||function(t){var e=s.f(o(t)),r=a.f;return r?h(e,r(t)):e}},4203:t=>{t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},5150:(t,e,r)=>{var i=r(6471),n=r(3836),s=r(3503);t.exports=function(t,e){if(i(t),n(e)&&e.constructor===t)return e;t=s.f(t);return(0,t.resolve)(e),t.promise}},3541:t=>{function e(){this.head=null,this.tail=null}e.prototype={add:function(t){t={item:t,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}},t.exports=e},1828:(t,e,r)=>{var n=r(3156);t.exports=function(t,e,r){for(var i in e)n(t,i,e[i],r);return t}},3156:(t,e,r)=>{var h=r(2691),u=r(9016),l=r(5301),c=r(3725),g=r(5146),i=r(1904),n=r(7945),p=r(3991).CONFIGURABLE,s=n.get,f=n.enforce,d=String(String).split("String");(t.exports=function(t,e,r,i){var n,s=!!i&&!!i.unsafe,a=!!i&&!!i.enumerable,o=!!i&&!!i.noTargetGet,i=i&&void 0!==i.name?i.name:e;u(r)&&("Symbol("===String(i).slice(0,7)&&(i="["+String(i).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!l(r,"name")||p&&r.name!==i)&&c(r,"name",i),(n=f(r)).source||(n.source=d.join("string"==typeof i?i:""))),t===h?a?t[e]=r:g(e,r):(s?!o&&t[e]&&(a=!0):delete t[e],a?t[e]=r:c(t,e,r))})(Function.prototype,"toString",function(){return u(this)&&s(this).source||i(this)})},8630:(t,e,r)=>{var i=r(2691),n=r(363),s=r(6471),a=r(9016),o=r(6911),h=r(2928),u=i.TypeError;t.exports=function(t,e){var r=t.exec;if(a(r))return null!==(r=n(r,t,e))&&s(r),r;if("RegExp"===o(t))return n(h,t,e);throw u("RegExp#exec called on incompatible receiver")}},2928:(t,e,r)=>{"use strict";var f=r(363),i=r(2090),d=r(6468),y=r(3797),n=r(2981),s=r(2855),v=r(3372),m=r(7945).get,a=r(5099),r=r(6758),x=s("native-string-replace",String.prototype.replace),b=RegExp.prototype.exec,w=b,S=i("".charAt),T=i("".indexOf),A=i("".replace),O=i("".slice),C=(s=/b*/g,f(b,i=/a/,"a"),f(b,s,"a"),0!==i.lastIndex||0!==s.lastIndex),P=n.BROKEN_CARET,E=void 0!==/()??/.exec("")[1];(C||E||P||a||r)&&(w=function(t){var e,r,i,n,s,a,o=this,h=m(o),t=d(t),u=h.raw;if(u)return u.lastIndex=o.lastIndex,c=f(w,u,t),o.lastIndex=u.lastIndex,c;var l=h.groups,u=P&&o.sticky,c=f(y,o),h=o.source,g=0,p=t;if(u&&(c=A(c,"y",""),-1===T(c,"g")&&(c+="g"),p=O(t,o.lastIndex),0<o.lastIndex&&(!o.multiline||o.multiline&&"\n"!==S(t,o.lastIndex-1))&&(h="(?: "+h+")",p=" "+p,g++),e=new RegExp("^(?:"+h+")",c)),E&&(e=new RegExp("^"+h+"$(?!\\s)",c)),C&&(r=o.lastIndex),i=f(b,u?e:o,p),u?i?(i.input=O(i.input,g),i[0]=O(i[0],g),i.index=o.lastIndex,o.lastIndex+=i[0].length):o.lastIndex=0:C&&i&&(o.lastIndex=o.global?i.index+i[0].length:r),E&&i&&1<i.length&&f(x,i[0],e,function(){for(n=1;n<arguments.length-2;n++)void 0===arguments[n]&&(i[n]=void 0)}),i&&l)for(i.groups=s=v(null),n=0;n<l.length;n++)s[(a=l[n])[0]]=i[a[1]];return i}),t.exports=w},3797:(t,e,r)=>{"use strict";var i=r(6471);t.exports=function(){var t=i(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},2981:(t,e,r)=>{var i=r(9273),n=r(2691).RegExp,r=i(function(){var t=n("a","y");return t.lastIndex=2,null!=t.exec("abcd")}),s=r||i(function(){return!n("a","y").sticky}),i=r||i(function(){var t=n("^r","gy");return t.lastIndex=2,null!=t.exec("str")});t.exports={BROKEN_CARET:i,MISSED_STICKY:s,UNSUPPORTED_Y:r}},5099:(t,e,r)=>{var i=r(9273),n=r(2691).RegExp;t.exports=i(function(){var t=n(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})},6758:(t,e,r)=>{var i=r(9273),n=r(2691).RegExp;t.exports=i(function(){var t=n("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})},3384:(t,e,r)=>{var i=r(2691).TypeError;t.exports=function(t){if(null==t)throw i("Can't call method on "+t);return t}},5146:(t,e,r)=>{var i=r(2691),n=Object.defineProperty;t.exports=function(e,r){try{n(i,e,{value:r,configurable:!0,writable:!0})}catch(t){i[e]=r}return r}},4825:(t,e,r)=>{"use strict";var i=r(2034),n=r(5359),s=r(5129),a=r(2031),o=s("species");t.exports=function(t){var t=i(t),e=n.f;a&&t&&!t[o]&&e(t,o,{configurable:!0,get:function(){return this}})}},8252:(t,e,r)=>{var i=r(5359).f,n=r(5301),s=r(5129)("toStringTag");t.exports=function(t,e,r){(t=t&&!r?t.prototype:t)&&!n(t,s)&&i(t,s,{configurable:!0,value:e})}},5114:(t,e,r)=>{var i=r(2855),n=r(7999),s=i("keys");t.exports=function(t){return s[t]||(s[t]=n(t))}},4154:(t,e,r)=>{var i=r(2691),r=r(5146),n="__core-js_shared__",i=i[n]||r(n,{});t.exports=i},2855:(t,e,r)=>{var i=r(4289),n=r(4154);(t.exports=function(t,e){return n[t]||(n[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.21.1",mode:i?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"})},9037:(t,e,r)=>{var i=r(6471),n=r(8590),s=r(5129)("species");t.exports=function(t,e){var t=i(t).constructor;return void 0===t||null==(t=i(t)[s])?e:n(t)}},5346:(t,e,r)=>{function i(n){return function(t,e){var r,t=a(o(t)),e=s(e),i=t.length;return e<0||i<=e?n?"":void 0:(r=u(t,e))<55296||56319<r||e+1===i||(i=u(t,e+1))<56320||57343<i?n?h(t,e):r:n?l(t,e,e+2):i-56320+(r-55296<<10)+65536}}var n=r(2090),s=r(8322),a=r(6468),o=r(3384),h=n("".charAt),u=n("".charCodeAt),l=n("".slice);t.exports={codeAt:i(!1),charAt:i(!0)}},6906:(t,e,r)=>{var i=r(3991).PROPER,n=r(9273),s=r(9517);t.exports=function(t){return n(function(){return!!s[t]()||"
"!=="
"[t]()||i&&s[t].name!==t})}},4319:(t,e,r)=>{function i(e){return function(t){t=a(s(t));return 1&e&&(t=o(t,h,"")),t=2&e?o(t,u,""):t}}var n=r(2090),s=r(3384),a=r(6468),r=r(9517),o=n("".replace),n="["+r+"]",h=RegExp("^"+n+n+"*"),u=RegExp(n+n+"*$");t.exports={start:i(1),end:i(2),trim:i(3)}},7196:(t,e,r)=>{var i,n,s=r(2691),a=r(4091),o=r(7825),h=r(9016),u=r(5301),l=r(9273),c=r(3504),g=r(6481),p=r(652),f=r(7805),d=r(4530),r=r(7610),y=s.setImmediate,v=s.clearImmediate,m=s.process,x=s.Dispatch,b=s.Function,w=s.MessageChannel,S=s.String,T=0,A={},O="onreadystatechange";try{i=s.location}catch(t){}function C(t){return function(){M(t)}}function P(t){M(t.data)}function E(t){s.postMessage(S(t),i.protocol+"//"+i.host)}var M=function(t){var e;u(A,t)&&(e=A[t],delete A[t],e())};y&&v||(y=function(t){f(arguments.length,1);var e=h(t)?t:b(t),r=g(arguments,1);return A[++T]=function(){a(e,void 0,r)},n(T),T},v=function(t){delete A[t]},r?n=function(t){m.nextTick(C(t))}:x&&x.now?n=function(t){x.now(C(t))}:w&&!d?(d=(r=new w).port2,r.port1.onmessage=P,n=o(d.postMessage,d)):s.addEventListener&&h(s.postMessage)&&!s.importScripts&&i&&"file:"!==i.protocol&&!l(E)?(n=E,s.addEventListener("message",P,!1)):n=O in p("script")?function(t){c.appendChild(p("script"))[O]=function(){c.removeChild(this),M(t)}}:function(t){setTimeout(C(t),0)}),t.exports={set:y,clear:v}},7893:(t,e,r)=>{var i=r(8322),n=Math.max,s=Math.min;t.exports=function(t,e){t=i(t);return t<0?n(t+e,0):s(t,e)}},685:(t,e,r)=>{var i=r(8808),n=r(3384);t.exports=function(t){return i(n(t))}},8322:t=>{var e=Math.ceil,r=Math.floor;t.exports=function(t){t=+t;return t!=t||0==t?0:(0<t?r:e)(t)}},8626:(t,e,r)=>{var i=r(8322),n=Math.min;t.exports=function(t){return 0<t?n(i(t),9007199254740991):0}},5597:(t,e,r)=>{var i=r(2691),n=r(3384),s=i.Object;t.exports=function(t){return s(n(t))}},7276:(t,e,r)=>{var i=r(2691),n=r(363),s=r(3836),a=r(5063),o=r(399),h=r(9331),r=r(5129),u=i.TypeError,l=r("toPrimitive");t.exports=function(t,e){if(!s(t)||a(t))return t;var r=o(t,l);if(r){if(r=n(r,t,e=void 0===e?"default":e),!s(r)||a(r))return r;throw u("Can't convert object to primitive value")}return h(t,e=void 0===e?"number":e)}},6708:(t,e,r)=>{var i=r(7276),n=r(5063);t.exports=function(t){t=i(t,"string");return n(t)?t:t+""}},3032:(t,e,r)=>{var i={};i[r(5129)("toStringTag")]="z",t.exports="[object z]"===String(i)},6468:(t,e,r)=>{var i=r(2691),n=r(1654),s=i.String;t.exports=function(t){if("Symbol"===n(t))throw TypeError("Cannot convert a Symbol value to a string");return s(t)}},6157:(t,e,r)=>{var i=r(2691).String;t.exports=function(t){try{return i(t)}catch(t){return"Object"}}},7999:(t,e,r)=>{var r=r(2090),i=0,n=Math.random(),s=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++i+n,36)}},1954:(t,e,r)=>{r=r(4161);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},6167:(t,e,r)=>{var i=r(2031),r=r(9273);t.exports=i&&r(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},7805:(t,e,r)=>{var i=r(2691).TypeError;t.exports=function(t,e){if(t<e)throw i("Not enough arguments");return t}},5129:(t,e,r)=>{var i=r(2691),n=r(2855),s=r(5301),a=r(7999),o=r(4161),h=r(1954),u=n("wks"),l=i.Symbol,c=l&&l.for,g=h?l:l&&l.withoutSetter||a;t.exports=function(t){var e;return s(u,t)&&(o||"string"==typeof u[t])||(e="Symbol."+t,o&&s(l,t)?u[t]=l[t]:u[t]=(h&&c?c:g)(e)),u[t]}},9517:t=>{t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},7885:(t,e,r)=>{"use strict";var i=r(4696),n=r(2090),s=r(3922).indexOf,r=r(605),a=n([].indexOf),o=!!a&&1/a([1],1,-0)<0,n=r("indexOf");i({target:"Array",proto:!0,forced:o||!n},{indexOf:function(t){var e=1<arguments.length?arguments[1]:void 0;return o?a(this,t,e)||0:s(this,t,e)}})},9234:(t,e,r)=>{"use strict";var i=r(685),n=r(9828),s=r(471),a=r(7945),o=r(5359).f,h=r(8414),u=r(4289),r=r(2031),l="Array Iterator",c=a.set,g=a.getterFor(l),a=(t.exports=h(Array,"Array",function(t,e){c(this,{type:l,target:i(t),index:0,kind:e})},function(){var t=g(this),e=t.target,r=t.kind,i=t.index++;return!e||i>=e.length?{value:t.target=void 0,done:!0}:"keys"==r?{value:i,done:!1}:"values"==r?{value:e[i],done:!1}:{value:[i,e[i]],done:!1}},"values"),s.Arguments=s.Array);if(n("keys"),n("values"),n("entries"),!u&&r&&"values"!==a.name)try{o(a,"name",{value:"values"})}catch(t){}},1537:(t,e,r)=>{"use strict";var i=r(4696),n=r(4007).left,s=r(605),a=r(2647),r=r(7610);i({target:"Array",proto:!0,forced:!s("reduce")||!r&&79<a&&a<83},{reduce:function(t){var e=arguments.length;return n(this,t,e,1<e?arguments[1]:void 0)}})},2849:(t,e,r)=>{"use strict";var i=r(4696),n=r(2090),s=r(6718),a=n([].reverse),r=[1,2];i({target:"Array",proto:!0,forced:String(r)===String(r.reverse())},{reverse:function(){return s(this)&&(this.length=this.length),a(this)}})},6498:(L,D,t)=>{"use strict";function s(t,e){var r,i,n,s,a=e.value,o=e.state==at,h=o?t.ok:t.fail,u=t.resolve,l=t.reject,c=t.domain;try{h?(o||(e.rejection===ht&&(s=e,p(y,g,function(){var t=s.facade;S?N.emit("rejectionHandled",t):gt(st,t,s.value)})),e.rejection=_),!0===h?r=a:(c&&c.enter(),r=h(a),c&&(c.exit(),n=!0)),r===t.promise?l(E("Promise-chain cycle")):(i=lt(r))?p(i,r,u,l):u(r)):l(a)}catch(t){c&&!n&&c.exit(),l(t)}}var r,e,i,n,a=t(4696),o=t(4289),g=t(2691),j=t(2034),p=t(363),h=t(5014),u=t(3156),z=t(1828),l=t(2716),B=t(8252),F=t(4825),c=t(4725),f=t(9016),H=t(3836),U=t(7173),X=t(1904),d=t(9281),Y=t(3348),$=t(9037),y=t(7196).set,v=t(6211),q=t(5150),W=t(6269),m=t(3503),x=t(4203),G=t(3541),b=t(7945),Q=t(8484),w=t(5129),Z=t(6233),S=t(7610),T=t(2647),K=w("species"),A="Promise",O=b.getterFor(A),J=b.set,tt=b.getterFor(A),t=h&&h.prototype,C=h,P=t,E=g.TypeError,M=g.document,N=g.process,R=m.f,et=R,rt=!!(M&&M.createEvent&&g.dispatchEvent),it=f(g.PromiseRejectionEvent),nt="unhandledrejection",st="rejectionhandled",at=1,ot=2,_=1,ht=2,ut=!1,w=Q(A,function(){var t=X(C),e=t!==String(C);if(!e&&66===T)return!0;if(o&&!P.finally)return!0;if(51<=T&&/native code/.test(t))return!1;function r(t){t(function(){},function(){})}t=new C(function(t){t(1)});return(t.constructor={})[K]=r,!(ut=t.then(function(){})instanceof r)||!e&&Z&&!it}),b=w||!Y(function(t){C.all(t).catch(function(){})}),lt=function(t){var e;return!(!H(t)||!f(e=t.then))&&e},ct=function(r,n){r.notified||(r.notified=!0,v(function(){for(var t,i,e=r.reactions;t=e.get();)s(t,r);r.notified=!1,n&&!r.rejection&&(i=r,p(y,g,function(){var t=i.facade,e=i.value,r=pt(i);if(r&&(r=x(function(){S?N.emit("unhandledRejection",e,t):gt(nt,t,e)}),i.rejection=S||pt(i)?ht:_,r.error))throw r.value}))}))},gt=function(t,e,r){var i;rt?((i=M.createEvent("Event")).promise=e,i.reason=r,i.initEvent(t,!1,!0),g.dispatchEvent(i)):i={promise:e,reason:r},!it&&(e=g["on"+t])?e(i):t===nt&&W("Unhandled promise rejection",r)},pt=function(t){return t.rejection!==_&&!t.parent},V=function(e,r,i){return function(t){e(r,t,i)}},k=function(t,e,r){t.done||(t.done=!0,(t=r?r:t).value=e,t.state=ot,ct(t,!0))},I=function(r,t,e){if(!r.done){r.done=!0,e&&(r=e);try{if(r.facade===t)throw E("Promise can't be resolved itself");var i=lt(t);i?v(function(){var e={done:!1};try{p(i,t,V(I,e,r),V(k,e,r))}catch(t){k(e,t,r)}}):(r.value=t,r.state=at,ct(r,!1))}catch(t){k({done:!1},t,r)}}};if(w&&(P=(C=function(t){U(this,P),c(t),p(r,this);var e=O(this);try{t(V(I,e),V(k,e))}catch(t){k(e,t)}}).prototype,(r=function(t){J(this,{type:A,done:!1,notified:!1,parent:!1,reactions:new G,rejection:!1,state:0,value:void 0})}).prototype=z(P,{then:function(t,e){var r=tt(this),i=R($(this,C));return r.parent=!0,i.ok=!f(t)||t,i.fail=f(e)&&e,i.domain=S?N.domain:void 0,0==r.state?r.reactions.add(i):v(function(){s(i,r)}),i.promise},catch:function(t){return this.then(void 0,t)}}),e=function(){var t=new r,e=O(t);this.promise=t,this.resolve=V(I,e),this.reject=V(k,e)},m.f=R=function(t){return t===C||t===i?new e:et(t)},!o&&f(h)&&t!==Object.prototype)){n=t.then,ut||(u(t,"then",function(t,e){var r=this;return new C(function(t,e){p(n,r,t,e)}).then(t,e)},{unsafe:!0}),u(t,"catch",P.catch,{unsafe:!0}));try{delete t.constructor}catch(t){}l&&l(t,P)}a({global:!0,wrap:!0,forced:w},{Promise:C}),B(C,A,!1,!0),F(A),i=j(A),a({target:A,stat:!0,forced:w},{reject:function(t){var e=R(this);return p(e.reject,void 0,t),e.promise}}),a({target:A,stat:!0,forced:o||w},{resolve:function(t){return q(o&&this===i?C:this,t)}}),a({target:A,stat:!0,forced:b},{all:function(t){var o=this,e=R(o),h=e.resolve,u=e.reject,r=x(function(){var i=c(o.resolve),n=[],s=0,a=1;d(t,function(t){var e=s++,r=!1;a++,p(i,o,t).then(function(t){r||(r=!0,n[e]=t,--a||h(n))},u)}),--a||h(n)});return r.error&&u(r.value),e.promise},race:function(t){var r=this,i=R(r),n=i.reject,e=x(function(){var e=c(r.resolve);d(t,function(t){p(e,r,t).then(i.resolve,n)})});return e.error&&n(e.value),i.promise}})},8522:(t,e,r)=>{"use strict";var i=r(4696),r=r(2928);i({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},1454:(t,e,r)=>{"use strict";var i=r(2090),n=r(3991).PROPER,s=r(3156),a=r(6471),o=r(517),h=r(6468),u=r(9273),r=r(3797),l="toString",c=RegExp.prototype,g=c[l],p=i(r),i=u(function(){return"/a/b"!=g.call({source:"a",flags:"b"})}),r=n&&g.name!=l;(i||r)&&s(RegExp.prototype,l,function(){var t=a(this),e=h(t.source),r=t.flags;return"/"+e+"/"+h(void 0!==r||!o(c,t)||"flags"in c?r:p(t))},{unsafe:!0})},8474:(t,e,r)=>{"use strict";var i=r(4696),n=r(2090),s=r(4185).f,a=r(8626),o=r(6468),h=r(1285),u=r(3384),l=r(8207),r=r(4289),c=n("".endsWith),g=n("".slice),p=Math.min,n=l("endsWith");i({target:"String",proto:!0,forced:!!(r||n||(!(l=s(String.prototype,"endsWith"))||l.writable))&&!n},{endsWith:function(t){var e=o(u(this)),r=(h(t),1<arguments.length?arguments[1]:void 0),i=e.length,r=void 0===r?i:p(a(r),i),i=o(t);return c?c(e,i,r):g(e,r-i.length,r)===i}})},6605:(t,e,r)=>{"use strict";var i=r(4696),n=r(2090),s=r(1285),a=r(3384),o=r(6468),r=r(8207),h=n("".indexOf);i({target:"String",proto:!0,forced:!r("includes")},{includes:function(t){return!!~h(o(a(this)),o(s(t)),1<arguments.length?arguments[1]:void 0)}})},9634:(t,e,r)=>{"use strict";var n=r(363),i=r(6099),u=r(6471),l=r(8626),c=r(6468),s=r(3384),a=r(399),g=r(7454),p=r(8630);i("match",function(i,o,h){return[function(t){var e=s(this),r=null==t?void 0:a(t,i);return r?n(r,t,e):new RegExp(t)[i](c(e))},function(t){var e=u(this),r=c(t),t=h(o,e,r);if(t.done)return t.value;if(!e.global)return p(e,r);for(var i=e.unicode,n=[],s=e.lastIndex=0;null!==(a=p(e,r));){var a=c(a[0]);""===(n[s]=a)&&(e.lastIndex=g(r,l(e.lastIndex),i)),s++}return 0===s?null:n}]})},8462:(t,e,r)=>{"use strict";var S=r(4091),n=r(363),i=r(2090),s=r(6099),a=r(9273),T=r(6471),A=r(9016),O=r(8322),C=r(8626),P=r(6468),o=r(3384),E=r(7454),h=r(399),M=r(1208),N=r(8630),u=r(5129)("replace"),R=Math.max,_=Math.min,V=i([].concat),k=i([].push),I=i("".indexOf),L=i("".slice),r="$0"==="a".replace(/./,"$0"),l=!!/./[u]&&""===/./[u]("a","$0");s("replace",function(t,x,b){var w=l?"$":"$0";return[function(t,e){var r=o(this),i=null==t?void 0:h(t,u);return i?n(i,t,r,e):n(x,P(r),t,e)},function(t,e){var r=T(this),i=P(t);if("string"==typeof e&&-1===I(e,w)&&-1===I(e,"$<")){t=b(x,r,i,e);if(t.done)return t.value}for(var n,s=A(e),a=(s||(e=P(e)),r.global),o=(a&&(n=r.unicode,r.lastIndex=0),[]);null!==(g=N(r,i))&&(k(o,g),a);)""===P(g[0])&&(r.lastIndex=E(i,C(r.lastIndex),n));for(var h,u="",l=0,c=0;c<o.length;c++){for(var g,p=P((g=o[c])[0]),f=R(_(O(g.index),i.length),0),d=[],y=1;y<g.length;y++)k(d,void 0===(h=g[y])?h:String(h));var v=g.groups,m=s?(m=V([p],d,f,i),void 0!==v&&k(m,v),P(S(e,void 0,m))):M(p,i,f,d,v,e);l<=f&&(u+=L(i,l,f)+m,l=f+p.length)}return u+L(i,l)}]},!!a(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})||!r||l)},7718:(t,e,r)=>{"use strict";var l=r(4091),c=r(363),i=r(2090),n=r(6099),g=r(8890),v=r(6471),p=r(3384),m=r(9037),x=r(7454),b=r(8626),w=r(6468),s=r(399),S=r(8562),T=r(8630),A=r(2928),a=r(2981),r=r(9273),O=a.UNSUPPORTED_Y,C=4294967295,P=Math.min,E=[].push,M=i(/./.exec),N=i(E),R=i("".slice);n("split",function(n,f,d){var y="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(t,e){var r=w(p(this)),i=void 0===e?C:e>>>0;if(0==i)return[];if(void 0===t)return[r];if(!g(t))return c(f,r,t,i);for(var n,s,a,o=[],e=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),h=0,u=new RegExp(t.source,e+"g");(n=c(A,u,r))&&!(h<(s=u.lastIndex)&&(N(o,R(r,h,n.index)),1<n.length&&n.index<r.length&&l(E,o,S(n,1)),a=n[0].length,h=s,i<=o.length));)u.lastIndex===n.index&&u.lastIndex++;return h===r.length?!a&&M(u,"")||N(o,""):N(o,R(r,h)),i<o.length?S(o,0,i):o}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:c(f,this,t,e)}:f;return[function(t,e){var r=p(this),i=null==t?void 0:s(t,n);return i?c(i,t,r,e):c(y,w(r),t,e)},function(t,e){var r=v(this),i=w(t),t=d(y,r,i,e,y!==f);if(t.done)return t.value;var t=m(r,RegExp),n=r.unicode,s=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(O?"g":"y"),a=new t(O?"^(?:"+r.source+")":r,s),o=void 0===e?C:e>>>0;if(0==o)return[];if(0===i.length)return null===T(a,i)?[i]:[];for(var h=0,u=0,l=[];u<i.length;){a.lastIndex=O?0:u;var c,g=T(a,O?R(i,u):i);if(null===g||(c=P(b(a.lastIndex+(O?u:0)),i.length))===h)u=x(i,u,n);else{if(N(l,R(i,h,u)),l.length===o)return l;for(var p=1;p<=g.length-1;p++)if(N(l,g[p]),l.length===o)return l;u=h=c}}return N(l,R(i,h)),l}]},!!r(function(){var t=/(?:)/,e=t.exec,t=(t.exec=function(){return e.apply(this,arguments)},"ab".split(t));return 2!==t.length||"a"!==t[0]||"b"!==t[1]}),O)},9045:(t,e,r)=>{"use strict";var i=r(4696),n=r(2090),s=r(4185).f,a=r(8626),o=r(6468),h=r(1285),u=r(3384),l=r(8207),r=r(4289),c=n("".startsWith),g=n("".slice),p=Math.min,n=l("startsWith");i({target:"String",proto:!0,forced:!!(r||n||(!(l=s(String.prototype,"startsWith"))||l.writable))&&!n},{startsWith:function(t){var e=o(u(this)),r=(h(t),a(p(1<arguments.length?arguments[1]:void 0,e.length))),t=o(t);return c?c(e,t,r):g(e,r,r+t.length)===t}})},2753:(t,e,r)=>{"use strict";var i=r(4696),n=r(4319).trim;i({target:"String",proto:!0,forced:r(6906)("trim")},{trim:function(){return n(this)}})},8976:(t,e,r)=>{function i(e,t){if(e){if(e[l]!==g)try{u(e,l,g)}catch(t){e[l]=g}if(e[c]||u(e,c,t),a[t])for(var r in h)if(e[r]!==h[r])try{u(e,r,h[r])}catch(t){e[r]=h[r]}}}var n,s=r(2691),a=r(252),o=r(5792),h=r(9234),u=r(3725),r=r(5129),l=r("iterator"),c=r("toStringTag"),g=h.values;for(n in a)i(s[n]&&s[n].prototype,n);i(o,"DOMTokenList")},75:function(a){!function(){var t,e,r,i,n,s;"undefined"!=typeof performance&&null!==performance&&performance.now?a.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(a.exports=function(){return(t()-n)/1e6},e=process.hrtime,i=(t=function(){var t=e();return 1e9*t[0]+t[1]})(),s=1e9*process.uptime(),n=i-s):r=Date.now?(a.exports=function(){return Date.now()-r},Date.now()):(a.exports=function(){return(new Date).getTime()-r},(new Date).getTime())}.call(this)},4087:(t,e,r)=>{for(var i,n,s,a=r(75),o="undefined"==typeof window?r.g:window,h=["moz","webkit"],u="AnimationFrame",l=o["request"+u],c=o["cancel"+u]||o["cancelRequest"+u],g=0;!l&&g<h.length;g++)l=o[h[g]+"Request"+u],c=o[h[g]+"Cancel"+u]||o[h[g]+"CancelRequest"+u];l&&c||(n=i=0,s=[],l=function(t){var e,r;return 0===s.length&&(e=a(),r=Math.max(0,1e3/60-(e-i)),i=r+e,setTimeout(function(){for(var t=s.slice(0),e=s.length=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(i)}catch(t){setTimeout(function(){throw t},0)}},Math.round(r))),s.push({handle:++n,callback:t,cancelled:!1}),n},c=function(t){for(var e=0;e<s.length;e++)s[e].handle===t&&(s[e].cancelled=!0)}),t.exports=function(t){return l.call(o,t)},t.exports.cancel=function(){c.apply(o,arguments)},t.exports.polyfill=function(t){(t=t||o).requestAnimationFrame=l,t.cancelAnimationFrame=c}},6131:t=>{t.exports=function(t){this.ok=!1,this.alpha=1,t=(t=(t="#"==t.charAt(0)?t.substr(1,6):t).replace(/ /g,"")).toLowerCase();for(var l={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},c=(t=l[t]||t,[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseFloat(t[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}]),e=0;e<c.length;e++){var r=c[e].re,i=c[e].process,r=r.exec(t);r&&(i=i(r),this.r=i[0],this.g=i[1],this.b=i[2],3<i.length&&(this.alpha=i[3]),this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:255<this.r?255:this.r,this.g=this.g<0||isNaN(this.g)?0:255<this.g?255:this.g,this.b=this.b<0||isNaN(this.b)?0:255<this.b?255:this.b,this.alpha=this.alpha<0?0:1<this.alpha||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),r=this.b.toString(16);return"#"+(t=1==t.length?"0"+t:t)+(e=1==e.length?"0"+e:e)+(r=1==r.length?"0"+r:r)},this.getHelpXML=function(){for(var t,e=new Array,r=0;r<c.length;r++)for(var i=c[r].example,n=0;n<i.length;n++)e[e.length]=i[n];for(t in l)e[e.length]=t;var s=document.createElement("ul");s.setAttribute("id","rgbcolor-examples");for(r=0;r<e.length;r++)try{var a=document.createElement("li"),o=new RGBColor(e[r]),h=document.createElement("div"),u=(h.style.cssText="margin: 3px; border: 1px solid black; background:"+o.toHex()+"; color:"+o.toHex(),h.appendChild(document.createTextNode("test")),document.createTextNode(" "+e[r]+" -> "+o.toRGB()+" -> "+o.toHex()));a.appendChild(h),a.appendChild(u),s.appendChild(a)}catch(t){}return s}}}},i={},Be.d=(t,e)=>{for(var r in e)Be.o(e,r)&&!Be.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},Be.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),Be.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),Fe={},(()=>{"use strict";Be.d(Fe,{default:()=>ze});Be(6498);function L(t,e,r,i,n,s,a){try{var o=t[s](a),h=o.value}catch(t){return void r(t)}o.done?e(h):Promise.resolve(h).then(i,n)}function s(o){return function(){var t=this,a=arguments;return new Promise(function(e,r){var i=o.apply(t,a);function n(t){L(i,e,r,n,s,"next",t)}function s(t){L(i,e,r,n,s,"throw",t)}n(void 0)})}}Be(9634),Be(8462),Be(9045),Be(9234),Be(8976);function D(t,e,r){e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}Be(1537),Be(8474),Be(7718);var j=Be(4087),z=(Be(2753),Be(6131)),B=(Be(7885),Be(6605),Be(2849),function(t,e){return(B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)});function F(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}B(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function H(t,e){var r=t[0],t=t[1];return[r*Math.cos(e)-t*Math.sin(e),r*Math.sin(e)+t*Math.cos(e)]}function n(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0;r<t.length;r++)if("number"!=typeof t[r])throw new Error("assertNumbers arguments["+r+"] is not a number. "+typeof t[r]+" == typeof "+t[r])}var g=Math.PI;function U(t,e,r){t.lArcFlag=0===t.lArcFlag?0:1,t.sweepFlag=0===t.sweepFlag?0:1;var i=t.rX,n=t.rY,s=t.x,a=t.y,i=Math.abs(t.rX),n=Math.abs(t.rY),o=H([(e-s)/2,(r-a)/2],-t.xRot/180*g),h=o[0],o=o[1],u=Math.pow(h,2)/Math.pow(i,2)+Math.pow(o,2)/Math.pow(n,2),u=(1<u&&(i*=Math.sqrt(u),n*=Math.sqrt(u)),t.rX=i,t.rY=n,Math.pow(i,2)*Math.pow(o,2)+Math.pow(n,2)*Math.pow(h,2)),u=(t.lArcFlag!==t.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(i,2)*Math.pow(n,2)-u)/u)),l=i*o/n*u,u=-n*h/i*u,c=H([l,u],t.xRot/180*g);t.cX=c[0]+(e+s)/2,t.cY=c[1]+(r+a)/2,t.phi1=Math.atan2((o-u)/n,(h-l)/i),t.phi2=Math.atan2((-o-u)/n,(-h-l)/i),0===t.sweepFlag&&t.phi2>t.phi1&&(t.phi2-=2*g),1===t.sweepFlag&&t.phi2<t.phi1&&(t.phi2+=2*g),t.phi1*=180/g,t.phi2*=180/g}function X(t,e,r){n(t,e,r);var i=t*t+e*e-r*r;if(i<0)return[];if(0==i)return[[t*r/(t*t+e*e),e*r/(t*t+e*e)]];i=Math.sqrt(i);return[[(t*r+e*i)/(t*t+e*e),(e*r-t*i)/(t*t+e*e)],[(t*r-e*i)/(t*t+e*e),(e*r+t*i)/(t*t+e*e)]]}var a,y=Math.PI/180;function Y(t,e,r){return(1-r)*t+r*e}function $(t,e,r,i){return t+Math.cos(i/180*g)*e+Math.sin(i/180*g)*r}function q(t,e,r,i){var n=1e-6,t=e-t,e=r-e,i=3*t+3*(i-r)-6*e,r=6*(e-t),e=3*t;return Math.abs(i)<1e-6?[-e/r]:(t=r/i,r=1e-6,e=t*t/4-e/i,e<-(r=void 0===n?1e-6:n)?[]:e<=r?[-t/2]:(r=Math.sqrt(e),[-t/2-r,-t/2+r]))}function W(t,e,r,i,n){var s=1-n;return t*(s*s*s)+e*(3*s*s*n)+r*(3*s*n*n)+i*(n*n*n)}function G(){return t(function(t,e,r){return t.relative&&(void 0!==t.x1&&(t.x1+=e),void 0!==t.y1&&(t.y1+=r),void 0!==t.x2&&(t.x2+=e),void 0!==t.y2&&(t.y2+=r),void 0!==t.x&&(t.x+=e),void 0!==t.y&&(t.y+=r),t.relative=!1),t})}function Q(){var i=NaN,n=NaN,s=NaN,a=NaN;return t(function(t,e,r){return t.type&C.SMOOTH_CURVE_TO&&(t.type=C.CURVE_TO,i=isNaN(i)?e:i,n=isNaN(n)?r:n,t.x1=t.relative?e-i:2*e-i,t.y1=t.relative?r-n:2*r-n),n=t.type&C.CURVE_TO?(i=t.relative?e+t.x2:t.x2,t.relative?r+t.y2:t.y2):i=NaN,t.type&C.SMOOTH_QUAD_TO&&(t.type=C.QUAD_TO,s=isNaN(s)?e:s,a=isNaN(a)?r:a,t.x1=t.relative?e-s:2*e-s,t.y1=t.relative?r-a:2*r-a),a=t.type&C.QUAD_TO?(s=t.relative?e+t.x1:t.x1,t.relative?r+t.y1:t.y1):s=NaN,t})}function Z(){var s=NaN,a=NaN;return t(function(t,e,r){var i,n;return t.type&C.SMOOTH_QUAD_TO&&(t.type=C.QUAD_TO,s=isNaN(s)?e:s,a=isNaN(a)?r:a,t.x1=t.relative?e-s:2*e-s,t.y1=t.relative?r-a:2*r-a),t.type&C.QUAD_TO?(s=t.relative?e+t.x1:t.x1,a=t.relative?r+t.y1:t.y1,i=t.x1,n=t.y1,t.type=C.CURVE_TO,t.x1=((t.relative?0:e)+2*i)/3,t.y1=((t.relative?0:r)+2*n)/3,t.x2=(t.x+2*i)/3,t.y2=(t.y+2*n)/3):a=s=NaN,t})}function t(r){var i=0,n=0,s=NaN,a=NaN;return function(t){if(isNaN(s)&&!(t.type&C.MOVE_TO))throw new Error("path must start with moveto");var e=r(t,i,n,s,a);return t.type&C.CLOSE_PATH&&(i=s,n=a),void 0!==t.x&&(i=t.relative?i+t.x:t.x),void 0!==t.y&&(n=t.relative?n+t.y:t.y),t.type&C.MOVE_TO&&(s=i,a=n),e}}function o(u,l,c,g,p,f){return n(u,l,c,g,p,f),t(function(t,e,r,i){var n=t.x1,s=t.x2,i=t.relative&&!isNaN(i),a=void 0!==t.x?t.x:i?0:e,o=void 0!==t.y?t.y:i?0:r;function h(t){return t*t}t.type&C.HORIZ_LINE_TO&&0!==l&&(t.type=C.LINE_TO,t.y=t.relative?0:r),t.type&C.VERT_LINE_TO&&0!==c&&(t.type=C.LINE_TO,t.x=t.relative?0:e),void 0!==t.x&&(t.x=t.x*u+o*c+(i?0:p)),void 0!==t.y&&(t.y=a*l+t.y*g+(i?0:f)),void 0!==t.x1&&(t.x1=t.x1*u+t.y1*c+(i?0:p)),void 0!==t.y1&&(t.y1=n*l+t.y1*g+(i?0:f)),void 0!==t.x2&&(t.x2=t.x2*u+t.y2*c+(i?0:p)),void 0!==t.y2&&(t.y2=s*l+t.y2*g+(i?0:f));r=u*g-l*c;return void 0===t.xRot||1===u&&0===l&&0===c&&1===g||(0==r?(delete t.rX,delete t.rY,delete t.xRot,delete t.lArcFlag,delete t.sweepFlag,t.type=C.LINE_TO):(e=t.xRot*Math.PI/180,o=Math.sin(e),a=Math.cos(e),n=1/h(t.rX),s=1/h(t.rY),i=h(a)*n+h(o)*s,e=h(o)*n+h(a)*s,a=i*g*g-(o=2*o*a*(n-s))*l*g+e*l*l,n=o*(u*g+l*c)-2*(i*c*g+e*u*l),s=i*c*c-o*u*c+e*u*u,i=(Math.atan2(n,a-s)+Math.PI)%Math.PI/2,o=Math.sin(i),e=Math.cos(i),t.rX=Math.abs(r)/Math.sqrt(a*h(e)+n*o*e+s*h(o)),t.rY=Math.abs(r)/Math.sqrt(a*h(o)-n*o*e+s*h(e)),t.xRot=180*i/Math.PI)),void 0!==t.sweepFlag&&r<0&&(t.sweepFlag=+!t.sweepFlag),t})}(e=a=a||{}).ROUND=function(e){function r(t){return Math.round(t*e)/e}return n(e=void 0===e?1e13:e),function(t){return void 0!==t.x1&&(t.x1=r(t.x1)),void 0!==t.y1&&(t.y1=r(t.y1)),void 0!==t.x2&&(t.x2=r(t.x2)),void 0!==t.y2&&(t.y2=r(t.y2)),void 0!==t.x&&(t.x=r(t.x)),void 0!==t.y&&(t.y=r(t.y)),void 0!==t.rX&&(t.rX=r(t.rX)),void 0!==t.rY&&(t.rY=r(t.rY)),t}},e.TO_ABS=G,e.TO_REL=function(){return t(function(t,e,r){return t.relative||(void 0!==t.x1&&(t.x1-=e),void 0!==t.y1&&(t.y1-=r),void 0!==t.x2&&(t.x2-=e),void 0!==t.y2&&(t.y2-=r),void 0!==t.x&&(t.x-=e),void 0!==t.y&&(t.y-=r),t.relative=!0),t})},e.NORMALIZE_HVZ=function(s,a,o){return void 0===s&&(s=!0),void 0===a&&(a=!0),void 0===o&&(o=!0),t(function(t,e,r,i,n){if(!isNaN(i)||t.type&C.MOVE_TO)return a&&t.type&C.HORIZ_LINE_TO&&(t.type=C.LINE_TO,t.y=t.relative?0:r),o&&t.type&C.VERT_LINE_TO&&(t.type=C.LINE_TO,t.x=t.relative?0:e),s&&t.type&C.CLOSE_PATH&&(t.type=C.LINE_TO,t.x=t.relative?i-e:i,t.y=t.relative?n-r:n),t.type&C.ARC&&(0===t.rX||0===t.rY)&&(t.type=C.LINE_TO,delete t.rX,delete t.rY,delete t.xRot,delete t.lArcFlag,delete t.sweepFlag),t;throw new Error("path must start with moveto")})},e.NORMALIZE_ST=Q,e.QT_TO_C=Z,e.INFO=t,e.SANITIZE=function(p){n(p=void 0===p?0:p);var f=NaN,d=NaN,y=NaN,v=NaN;return t(function(t,e,r,i,n){var s,a,o,h,u=Math.abs,l=!1,c=0,g=0;return t.type&C.SMOOTH_CURVE_TO&&(c=isNaN(f)?0:e-f,g=isNaN(d)?0:r-d),d=t.type&(C.CURVE_TO|C.SMOOTH_CURVE_TO)?(f=t.relative?e+t.x2:t.x2,t.relative?r+t.y2:t.y2):f=NaN,v=t.type&C.SMOOTH_QUAD_TO?(y=isNaN(y)?e:2*e-y,isNaN(v)?r:2*r-v):t.type&C.QUAD_TO?(y=t.relative?e+t.x1:t.x1,t.relative?r+t.y1:t.y2):y=NaN,(t.type&C.LINE_COMMANDS||t.type&C.ARC&&(0===t.rX||0===t.rY||!t.lArcFlag)||t.type&C.CURVE_TO||t.type&C.SMOOTH_CURVE_TO||t.type&C.QUAD_TO||t.type&C.SMOOTH_QUAD_TO)&&(s=void 0===t.x?0:t.relative?t.x:t.x-e,a=void 0===t.y?0:t.relative?t.y:t.y-r,c=isNaN(y)?void 0===t.x1?c:t.relative?t.x:t.x1-e:y-e,g=isNaN(v)?void 0===t.y1?g:t.relative?t.y:t.y1-r:v-r,o=void 0===t.x2?0:t.relative?t.x:t.x2-e,h=void 0===t.y2?0:t.relative?t.y:t.y2-r,u(s)<=p&&u(a)<=p&&u(c)<=p&&u(g)<=p&&u(o)<=p&&u(h)<=p&&(l=!0)),(l=t.type&C.CLOSE_PATH&&u(e-i)<=p&&u(r-n)<=p?!0:l)?[]:t})},e.MATRIX=o,e.ROTATE=function(t,e,r){n(t,e=void 0===e?0:e,r=void 0===r?0:r);var i=Math.sin(t),t=Math.cos(t);return o(t,i,-i,t,e-e*t+r*i,r-e*i-r*t)},e.TRANSLATE=function(t,e){return n(t,e=void 0===e?0:e),o(1,0,0,1,t,e)},e.SCALE=function(t,e){return n(t,e=void 0===e?t:e),o(t,0,0,e,0,0)},e.SKEW_X=function(t){return n(t),o(1,0,Math.atan(t),1,0,0)},e.SKEW_Y=function(t){return n(t),o(1,Math.atan(t),0,1,0,0)},e.X_AXIS_SYMMETRY=function(t){return n(t=void 0===t?0:t),o(-1,0,0,1,t,0)},e.Y_AXIS_SYMMETRY=function(t){return n(t=void 0===t?0:t),o(1,0,0,-1,0,t)},e.A_TO_C=function(){return t(function(t,e,r){if(C.ARC!==t.type)return t;var i=t,e=t.relative?0:e,t=t.relative?0:r;i.cX||U(i,e,t);for(var r=Math.min(i.phi1,i.phi2),r=Math.max(i.phi1,i.phi2)-r,n=Math.ceil(r/90),s=new Array(n),a=e,o=t,h=0;h<n;h++){var u=Y(i.phi1,i.phi2,h/n),l=Y(i.phi1,i.phi2,(h+1)/n),c=4/3*Math.tan((l-u)*y/4),u=[Math.cos(u*y)-c*Math.sin(u*y),Math.sin(u*y)+c*Math.cos(u*y)],g=u[0],u=u[1],p=[Math.cos(l*y),Math.sin(l*y)],f=p[0],p=p[1],c=[f+c*Math.sin(l*y),p-c*Math.cos(l*y)],l=c[0],c=c[1],d=(s[h]={relative:i.relative,type:C.CURVE_TO},function(t,e){t=H([t*i.rX,e*i.rY],i.xRot),e=t[0],t=t[1];return[i.cX+e,i.cY+t]}),g=d(g,u);s[h].x1=g[0],s[h].y1=g[1],u=d(l,c),s[h].x2=u[0],s[h].y2=u[1],g=d(f,p),s[h].x=g[0],s[h].y=g[1],i.relative&&(s[h].x1-=a,s[h].y1-=o,s[h].x2-=a,s[h].y2-=o,s[h].x-=a,s[h].y-=o),a=(l=[s[h].x,s[h].y])[0],o=l[1]}return s})},e.ANNOTATE_ARCS=function(){return t(function(t,e,r){return t.relative&&(r=e=0),C.ARC===t.type&&U(t,e,r),t})},e.CLONE=function(){return function(t){var e,r={};for(e in t)r[e]=t[e];return r}},e.CALCULATE_BOUNDS=function(){var S=G(),T=Z(),A=Q(),O=t(function(t,e,r){var i=A(T(S(function(t){var e,r={};for(e in t)r[e]=t[e];return r}(t))));function n(t){t>O.maxX&&(O.maxX=t),t<O.minX&&(O.minX=t)}function s(t){t>O.maxY&&(O.maxY=t),t<O.minY&&(O.minY=t)}if(i.type&C.DRAWING_COMMANDS&&(n(e),s(r)),i.type&C.HORIZ_LINE_TO&&n(i.x),i.type&C.VERT_LINE_TO&&s(i.y),i.type&C.LINE_TO&&(n(i.x),s(i.y)),i.type&C.CURVE_TO){n(i.x),s(i.y);for(var a=0,o=q(e,i.x1,i.x2,i.x);a<o.length;a++)0<(x=o[a])&&x<1&&n(W(e,i.x1,i.x2,i.x,x));for(var h=0,u=q(r,i.y1,i.y2,i.y);h<u.length;h++)0<(x=u[h])&&x<1&&s(W(r,i.y1,i.y2,i.y,x))}if(i.type&C.ARC){n(i.x),s(i.y),U(i,e,r);for(var l=i.xRot/180*Math.PI,c=Math.cos(l)*i.rX,g=Math.sin(l)*i.rX,p=-Math.sin(l)*i.rY,f=Math.cos(l)*i.rY,l=i.phi1<i.phi2?[i.phi1,i.phi2]:i.phi2<-180?[i.phi2+360,i.phi1+360]:[i.phi2,i.phi1],d=l[0],y=l[1],l=function(t){var e=t[0],t=t[1],t=180*Math.atan2(t,e)/Math.PI;return t<d?360+t:t},v=0,m=X(p,-c,0).map(l);v<m.length;v++)(x=m[v])>d&&x<y&&n($(i.cX,c,p,x));for(var x,b=0,w=X(f,-g,0).map(l);b<w.length;b++)(x=w[b])>d&&x<y&&s($(i.cY,g,f,x))}return t});return O.minX=1/0,O.maxX=-1/0,O.minY=1/0,O.maxY=-1/0,O};function K(t){return"0".charCodeAt(0)<=t.charCodeAt(0)&&t.charCodeAt(0)<="9".charCodeAt(0)}h.prototype.round=function(t){return this.transform(a.ROUND(t))},h.prototype.toAbs=function(){return this.transform(a.TO_ABS())},h.prototype.toRel=function(){return this.transform(a.TO_REL())},h.prototype.normalizeHVZ=function(t,e,r){return this.transform(a.NORMALIZE_HVZ(t,e,r))},h.prototype.normalizeST=function(){return this.transform(a.NORMALIZE_ST())},h.prototype.qtToC=function(){return this.transform(a.QT_TO_C())},h.prototype.aToC=function(){return this.transform(a.A_TO_C())},h.prototype.sanitize=function(t){return this.transform(a.SANITIZE(t))},h.prototype.translate=function(t,e){return this.transform(a.TRANSLATE(t,e))},h.prototype.scale=function(t,e){return this.transform(a.SCALE(t,e))},h.prototype.rotate=function(t,e,r){return this.transform(a.ROTATE(t,e,r))},h.prototype.matrix=function(t,e,r,i,n,s){return this.transform(a.MATRIX(t,e,r,i,n,s))},h.prototype.skewX=function(t){return this.transform(a.SKEW_X(t))},h.prototype.skewY=function(t){return this.transform(a.SKEW_Y(t))},h.prototype.xSymmetry=function(t){return this.transform(a.X_AXIS_SYMMETRY(t))},h.prototype.ySymmetry=function(t){return this.transform(a.Y_AXIS_SYMMETRY(t))},h.prototype.annotateArcs=function(){return this.transform(a.ANNOTATE_ARCS())};var J,tt,e=h,et=(F(i,tt=e),i.prototype.finish=function(t){if(this.parse(" ",t=void 0===t?[]:t),0===this.curArgs.length&&this.canParseCommandOrComma)return t;throw new SyntaxError("Unterminated command at the path end.")},i.prototype.parse=function(t,e){var r=this;void 0===e&&(e=[]);for(var i=function(t){e.push(t),r.curArgs.length=0,r.canParseCommandOrComma=!0},n=0;n<t.length;n++){var s=t[n],a=!(this.curCommandType!==C.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),o=K(s)&&("0"===this.curNumber&&"0"===s||a);if(!K(s)||o)if("e"!==s&&"E"!==s)if("-"!==s&&"+"!==s||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==s||this.curNumberHasExp||this.curNumberHasDecimal||a){if(this.curNumber&&-1!==this.curCommandType){var a=Number(this.curNumber);if(isNaN(a))throw new SyntaxError("Invalid number ending at "+n);if(this.curCommandType===C.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(a<0)throw new SyntaxError('Expected positive number, got "'+a+'" at index "'+n+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+n+'"');this.curArgs.push(a),this.curArgs.length===rt[this.curCommandType]&&(C.HORIZ_LINE_TO===this.curCommandType?i({type:C.HORIZ_LINE_TO,relative:this.curCommandRelative,x:a}):C.VERT_LINE_TO===this.curCommandType?i({type:C.VERT_LINE_TO,relative:this.curCommandRelative,y:a}):this.curCommandType===C.MOVE_TO||this.curCommandType===C.LINE_TO||this.curCommandType===C.SMOOTH_QUAD_TO?(i({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),C.MOVE_TO===this.curCommandType&&(this.curCommandType=C.LINE_TO)):this.curCommandType===C.CURVE_TO?i({type:C.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===C.SMOOTH_CURVE_TO?i({type:C.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===C.QUAD_TO?i({type:C.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===C.ARC&&i({type:C.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(" "!==(a=s)&&"\t"!==a&&"\r"!==a&&"\n"!==a)if(","===s&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==s&&"-"!==s&&"."!==s)if(o)this.curNumber=s,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+n+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+s+'" at index '+n+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==s&&"Z"!==s)if("h"===s||"H"===s)this.curCommandType=C.HORIZ_LINE_TO,this.curCommandRelative="h"===s;else if("v"===s||"V"===s)this.curCommandType=C.VERT_LINE_TO,this.curCommandRelative="v"===s;else if("m"===s||"M"===s)this.curCommandType=C.MOVE_TO,this.curCommandRelative="m"===s;else if("l"===s||"L"===s)this.curCommandType=C.LINE_TO,this.curCommandRelative="l"===s;else if("c"===s||"C"===s)this.curCommandType=C.CURVE_TO,this.curCommandRelative="c"===s;else if("s"===s||"S"===s)this.curCommandType=C.SMOOTH_CURVE_TO,this.curCommandRelative="s"===s;else if("q"===s||"Q"===s)this.curCommandType=C.QUAD_TO,this.curCommandRelative="q"===s;else if("t"===s||"T"===s)this.curCommandType=C.SMOOTH_QUAD_TO,this.curCommandRelative="t"===s;else{if("a"!==s&&"A"!==s)throw new SyntaxError('Unexpected character "'+s+'" at index '+n+".");this.curCommandType=C.ARC,this.curCommandRelative="a"===s}else e.push({type:C.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=s,this.curNumberHasDecimal="."===s}else this.curNumber+=s,this.curNumberHasDecimal=!0;else this.curNumber+=s;else this.curNumber+=s,this.curNumberHasExp=!0;else this.curNumber+=s,this.curNumberHasExpDigits=this.curNumberHasExp}return e},i.prototype.transform=function(s){return Object.create(this,{parse:{value:function(t,e){void 0===e&&(e=[]);for(var r=0,i=Object.getPrototypeOf(this).parse.call(this,t);r<i.length;r++){var n=i[r],n=s(n);Array.isArray(n)?e.push.apply(e,n):e.push(n)}return e}}})},i),C=(F(r,J=e),r.prototype.encode=function(){return r.encode(this.commands)},r.prototype.getBounds=function(){var t=a.CALCULATE_BOUNDS();return this.transform(t),t},r.prototype.transform=function(t){for(var e=[],r=0,i=this.commands;r<i.length;r++){var n=t(i[r]);Array.isArray(n)?e.push.apply(e,n):e.push(n)}return this.commands=e,this},r.encode=function(t){var e=t,r="";Array.isArray(e)||(e=[e]);for(var i=0;i<e.length;i++){var n=e[i];if(n.type===C.CLOSE_PATH)r+="z";else if(n.type===C.HORIZ_LINE_TO)r+=(n.relative?"h":"H")+n.x;else if(n.type===C.VERT_LINE_TO)r+=(n.relative?"v":"V")+n.y;else if(n.type===C.MOVE_TO)r+=(n.relative?"m":"M")+n.x+" "+n.y;else if(n.type===C.LINE_TO)r+=(n.relative?"l":"L")+n.x+" "+n.y;else if(n.type===C.CURVE_TO)r+=(n.relative?"c":"C")+n.x1+" "+n.y1+" "+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===C.SMOOTH_CURVE_TO)r+=(n.relative?"s":"S")+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===C.QUAD_TO)r+=(n.relative?"q":"Q")+n.x1+" "+n.y1+" "+n.x+" "+n.y;else if(n.type===C.SMOOTH_QUAD_TO)r+=(n.relative?"t":"T")+n.x+" "+n.y;else{if(n.type!==C.ARC)throw new Error('Unexpected command type "'+n.type+'" at index '+i+".");r+=(n.relative?"a":"A")+n.rX+" "+n.rY+" "+n.xRot+" "+ +n.lArcFlag+" "+ +n.sweepFlag+" "+n.x+" "+n.y}}return r},r.parse=function(t){var e=new et,r=[];return e.parse(t,r),e.finish(r),r},r.CLOSE_PATH=1,r.MOVE_TO=2,r.HORIZ_LINE_TO=4,r.VERT_LINE_TO=8,r.LINE_TO=16,r.CURVE_TO=32,r.SMOOTH_CURVE_TO=64,r.QUAD_TO=128,r.SMOOTH_QUAD_TO=256,r.ARC=512,r.LINE_COMMANDS=r.LINE_TO|r.HORIZ_LINE_TO|r.VERT_LINE_TO,r.DRAWING_COMMANDS=r.HORIZ_LINE_TO|r.VERT_LINE_TO|r.LINE_TO|r.CURVE_TO|r.SMOOTH_CURVE_TO|r.QUAD_TO|r.SMOOTH_QUAD_TO|r.ARC,r),rt=((e={})[C.MOVE_TO]=2,e[C.LINE_TO]=2,e[C.HORIZ_LINE_TO]=1,e[C.VERT_LINE_TO]=1,e[C.CLOSE_PATH]=0,e[C.QUAD_TO]=4,e[C.SMOOTH_QUAD_TO]=2,e[C.CURVE_TO]=6,e[C.SMOOTH_CURVE_TO]=4,e[C.ARC]=7,e);function r(t){var e=J.call(this)||this;return e.commands="string"==typeof t?r.parse(t):t,e}function i(){var t=tt.call(this)||this;return t.curNumber="",t.curCommandType=-1,t.curCommandRelative=!1,t.canParseCommandOrComma=!0,t.curNumberHasExp=!1,t.curNumberHasExpDigits=!1,t.curNumberHasDecimal=!1,t.curArgs=[],t}function h(){}Be(1454);function it(t){return(it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var mt=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],xt=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function nt(t,e,r,i,n){if(!((t="string"==typeof t?document.getElementById(t):t)&&"object"===it(t)&&"getContext"in t))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");t=t.getContext("2d");try{return t.getImageData(e,r,i,n)}catch(t){throw new Error("unable to access image data: "+t)}}function st(t,e,r,i,n,s){var a;isNaN(s)||s<1||(s|=0,a=function(L,t,D,e){for(var j,r=L.data,z=2*e+1,i=t-1,B=D-1,n=e+1,s=n*(n+1)/2,a=new bt,o=a,F=1;F<z;F++)o=o.next=new bt,F===n&&(j=o);o.next=a;for(var h=null,u=null,H=0,l=0,c=mt[e],g=xt[e],U=0;U<D;U++){o=a;for(var X=r[l],Y=r[l+1],$=r[l+2],q=r[l+3],W=0;W<n;W++)o.r=X,o.g=Y,o.b=$,o.a=q,o=o.next;for(var p=0,f=0,d=0,y=0,G=n*X,Q=n*Y,Z=n*$,K=n*q,v=s*X,m=s*Y,x=s*$,b=s*q,w=1;w<n;w++){var S=l+((i<w?i:w)<<2),J=r[S],tt=r[S+1],et=r[S+2],S=r[S+3],T=n-w;v+=(o.r=J)*T,m+=(o.g=tt)*T,x+=(o.b=et)*T,b+=(o.a=S)*T,p+=J,f+=tt,d+=et,y+=S,o=o.next}h=a,u=j;for(var rt=0;rt<t;rt++){var A=b*c>>g,A=(0!=(r[l+3]=A)?(A=255/A,r[l]=(v*c>>g)*A,r[l+1]=(m*c>>g)*A,r[l+2]=(x*c>>g)*A):r[l]=r[l+1]=r[l+2]=0,v-=G,m-=Q,x-=Z,b-=K,G-=h.r,Q-=h.g,Z-=h.b,K-=h.a,rt+e+1);A=H+(A<i?A:i)<<2,p+=h.r=r[A],f+=h.g=r[A+1],d+=h.b=r[A+2],y+=h.a=r[A+3],v+=p,m+=f,x+=d,b+=y,h=h.next;var A=u.r,it=u.g,nt=u.b,st=u.a;G+=A,Q+=it,Z+=nt,K+=st,p-=A,f-=it,d-=nt,y-=st,u=u.next,l+=4}H+=t}for(var O=0;O<t;O++){var C=r[l=O<<2],P=r[l+1],E=r[l+2],M=r[l+3],at=n*C,ot=n*P,ht=n*E,ut=n*M,N=s*C,R=s*P,_=s*E,V=s*M;o=a;for(var lt=0;lt<n;lt++)o.r=C,o.g=P,o.b=E,o.a=M,o=o.next;for(var ct=t,gt=0,pt=0,ft=0,dt=0,k=1;k<=e;k++){l=ct+O<<2;var yt=n-k;N+=(o.r=C=r[l])*yt,R+=(o.g=P=r[l+1])*yt,_+=(o.b=E=r[l+2])*yt,V+=(o.a=M=r[l+3])*yt,dt+=C,gt+=P,pt+=E,ft+=M,o=o.next,k<B&&(ct+=t)}l=O,h=a,u=j;for(var vt=0;vt<D;vt++){var I=l<<2;r[I+3]=M=V*c>>g,0<M?(M=255/M,r[I]=(N*c>>g)*M,r[I+1]=(R*c>>g)*M,r[I+2]=(_*c>>g)*M):r[I]=r[I+1]=r[I+2]=0,N-=at,R-=ot,_-=ht,V-=ut,at-=h.r,ot-=h.g,ht-=h.b,ut-=h.a,I=O+((I=vt+n)<B?I:B)*t<<2,N+=dt+=h.r=r[I],R+=gt+=h.g=r[I+1],_+=pt+=h.b=r[I+2],V+=ft+=h.a=r[I+3],h=h.next,at+=C=u.r,ot+=P=u.g,ht+=E=u.b,ut+=M=u.a,dt-=C,gt-=P,pt-=E,ft-=M,u=u.next,l+=t}}return L}(a=nt(t,e,r,i,n),i,n,s),t.getContext("2d").putImageData(a,e,r))}var bt=function t(){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function");this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};function x(t){return t.replace(/(?!\u3000)\s+/gm," ")}function d(t){return((t||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[]).map(parseFloat)}var at=/^[A-Z-]+$/;function ot(t){t=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(t)||[];return t[2]||t[3]||t[4]}var ht=/(\[[^\]]+\])/g,ut=/(#[^\s+>~.[:]+)/g,lt=/(\.[^\s+>~.[:]+)/g,ct=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,gt=/(:[\w-]+\([^)]*\))/gi,pt=/(:[^\s+>~.[:]+)/g,ft=/([^\s+>~.[:]+)/g;function u(t,e){var r=e.exec(t);return r?[t.replace(e," "),r.length]:[t,0]}var p=1e-8;function dt(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))}function yt(t,e){return(t[0]*e[0]+t[1]*e[1])/(dt(t)*dt(e))}function vt(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(yt(t,e))}function wt(t){return t*t*t}function St(t){return 3*t*t*(1-t)}function Tt(t){return 3*t*(1-t)*(1-t)}function At(t){return(1-t)*(1-t)*(1-t)}function Ot(t){return t*t}function Ct(t){return 2*t*(1-t)}function Pt(t){return(1-t)*(1-t)}class b{constructor(t,e,r){this.document=t,this.name=e,this.value=r,this.isNormalizedColor=!1}static empty(t){return new b(t,"EMPTY","")}split(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:" ",{document:e,name:r}=this;return x(this.getString()).trim().split(t).map(t=>new b(e,r,t))}hasValue(t){var e=this["value"];return null!==e&&""!==e&&(t||0!==e)&&void 0!==e}isString(t){var e=this["value"],r="string"==typeof e;return r&&t?t.test(e):r}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var t=this.getString();switch(!0){case t.endsWith("px"):case/^[0-9]+$/.test(t):return!0;default:return!1}}setValue(t){return this.value=t,this}getValue(t){return void 0===t||this.hasValue()?this.value:t}getNumber(t){if(!this.hasValue())return void 0===t?0:parseFloat(t);t=this.value,t=parseFloat(t);return this.isString(/%$/)&&(t/=100),t}getString(t){return void 0===t||this.hasValue()?void 0===this.value?"":String(this.value):String(t)}getColor(t){t=this.getString(t);return this.isNormalizedColor?t:(this.isNormalizedColor=!0,t=function(t){if(!t.startsWith("rgb"))return t;var r=3;return t.replace(/\d+(\.\d+)?/g,(t,e)=>r--&&e?String(Math.round(parseFloat(t))):t)}(t),this.value=t)}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var[r,t]="boolean"==typeof t?[void 0,t]:[t],i=this.document.screen["viewPort"];switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(i.computeSize("x"),i.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(i.computeSize("x"),i.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*i.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*i.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return 15*this.getNumber();case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case this.isString(/%$/)&&t:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*i.computeSize(r);default:var n=this.getNumber();return e&&n<1?n*i.computeSize(r):n}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var t=this.getString(),e=(e=/#([^)'"]+)/.exec(t))&&e[1];return this.document.definitions[e=e||t]}getFillStyleDefinition(t,e){var r,i=this.getDefinition();return i?"function"==typeof i.createGradient?i.createGradient(this.document.ctx,t,e):"function"==typeof i.createPattern?(i.getHrefAttribute().hasValue()&&(r=i.getAttribute("patternTransform"),i=i.getHrefAttribute().getDefinition(),r.hasValue()&&i.getAttribute("patternTransform",!0).setValue(r.value)),i.createPattern(this.document.ctx,t,e)):null:null}getTextBaseline(){return this.hasValue()?b.textBaselineMapping[this.getString()]:null}addOpacity(t){for(var e,r=this.getColor(),i=r.length,n=0,s=0;s<i&&(","===r[s]&&n++,3!==n);s++);return t.hasValue()&&this.isString()&&3!==n&&((e=new z(r)).ok&&(e.alpha=t.getNumber(),r=e.toRGBA())),new b(this.document,this.name,r)}}b.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};class Et{constructor(){this.viewPorts=[]}clear(){this.viewPorts=[]}setCurrent(t,e){this.viewPorts.push({width:t,height:e})}removeCurrent(){this.viewPorts.pop()}getCurrent(){var t=this["viewPorts"];return t[t.length-1]}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(t){return"number"==typeof t?t:"x"===t?this.width:"y"===t?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}}class f{constructor(t,e){this.x=t,this.y=e}static parse(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,[t=e,e=e]=d(t);return new f(t,e)}static parseScale(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1,[t=e,e=t]=d(t);return new f(t,e)}static parsePath(t){for(var e=d(t),r=e.length,i=[],n=0;n<r;n+=2)i.push(new f(e[n],e[n+1]));return i}angleTo(t){return Math.atan2(t.y-this.y,t.x-this.x)}applyTransform(t){var{x:e,y:r}=this,i=e*t[0]+r*t[2]+t[4],e=e*t[1]+r*t[3]+t[5];this.x=i,this.y=e}}class Mt{constructor(t){this.screen=t,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}isWorking(){return this.working}start(){var t,e,r;this.working||({screen:r,onClick:t,onMouseMove:e}=this,(r=r.ctx.canvas).onclick=t,r.onmousemove=e,this.working=!0)}stop(){var t;this.working&&(t=this.screen.ctx.canvas,this.working=!1,t.onclick=null,t.onmousemove=null)}hasEvents(){return this.working&&0<this.events.length}runEvents(){var t,n,e;this.working&&({screen:e,events:t,eventElements:n}=this,e=e.ctx.canvas["style"],e&&(e.cursor=""),t.forEach((t,e)=>{for(var r=t["run"],i=n[e];i;)r(i),i=i.parent}),this.events=[],this.eventElements=[])}checkPath(i,n){var t,s;this.working&&n&&({events:t,eventElements:s}=this,t.forEach((t,e)=>{var{x:t,y:r}=t;!s[e]&&n.isPointInPath&&n.isPointInPath(t,r)&&(s[e]=i)}))}checkBoundingBox(i,n){var t,s;this.working&&n&&({events:t,eventElements:s}=this,t.forEach((t,e)=>{var{x:t,y:r}=t;!s[e]&&n.isPointInBox(t,r)&&(s[e]=i)}))}mapXY(t,e){for(var{window:r,ctx:i}=this.screen,n=new f(t,e),s=i.canvas;s;)n.x-=s.offsetLeft,n.y-=s.offsetTop,s=s.offsetParent;return r.scrollX&&(n.x+=r.scrollX),r.scrollY&&(n.y+=r.scrollY),n}onClick(t){var{x:t,y:e}=this.mapXY(t.clientX,t.clientY);this.events.push({type:"onclick",x:t,y:e,run(t){t.onClick&&t.onClick()}})}onMouseMove(t){var{x:t,y:e}=this.mapXY(t.clientX,t.clientY);this.events.push({type:"onmousemove",x:t,y:e,run(t){t.onMouseMove&&t.onMouseMove()}})}}var Nt="undefined"!=typeof window?window:null,Rt="undefined"!=typeof fetch?fetch.bind(void 0):null;class _t{constructor(t){var{fetch:e=Rt,window:r=Nt}=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};this.ctx=t,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new Et,this.mouse=new Mt(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=r,this.fetch=e}wait(t){this.waits.push(t)}ready(){return this.readyPromise||Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var t=this.waits.every(t=>t());return t&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=t}setDefaults(t){t.strokeStyle="rgba(0,0,0,0)",t.lineCap="butt",t.lineJoin="miter",t.miterLimit=4}setViewBox(t){var{document:t,ctx:e,aspectRatio:r,width:i,desiredWidth:n,height:s,desiredHeight:a,minX:o=0,minY:h=0,refX:u,refY:l,clip:c=!1,clipX:g=0,clipY:p=0}=t,[r,f]=x(r).replace(/^defer\s/,"").split(" "),r=r||"xMidYMid",f=f||"meet",d=i/n,y=s/a,v=Math.min(d,y),m=Math.max(d,y),u=("meet"===f&&(n*=v,a*=v),"slice"===f&&(n*=m,a*=m),new b(t,"refX",u)),t=new b(t,"refY",l),l=u.hasValue()&&t.hasValue();switch(l&&e.translate(-v*u.getPixels("x"),-v*t.getPixels("y")),c&&(u=v*g,t=v*p,e.beginPath(),e.moveTo(u,t),e.lineTo(i,t),e.lineTo(i,s),e.lineTo(u,s),e.closePath(),e.clip()),l||(c="meet"===f&&v===y,g="slice"===f&&m===y,p="meet"===f&&v===d,t="slice"===f&&m===d,r.startsWith("xMid")&&(c||g)&&e.translate(i/2-n/2,0),r.endsWith("YMid")&&(p||t)&&e.translate(0,s/2-a/2),r.startsWith("xMax")&&(c||g)&&e.translate(i-n,0),r.endsWith("YMax")&&(p||t)&&e.translate(0,s-a)),!0){case"none"===r:e.scale(d,y);break;case"meet"===f:e.scale(v,v);break;case"slice"===f:e.scale(m,m)}e.translate(-o,-h)}start(t){var e,r,i,n,{enableRedraw:s=!1,ignoreMouse:a=!1,ignoreAnimation:o=!1,ignoreDimensions:h=!1,ignoreClear:u=!1,forceRedraw:l,scaleWidth:c,scaleHeight:g,offsetX:p,offsetY:f}=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},{FRAMERATE:d,mouse:y}=this,v=1e3/d;this.frameDuration=v,this.readyPromise=new Promise(t=>{this.resolveReady=t}),this.isReady()&&this.render(t,h,u,c,g,p,f),s&&(e=Date.now(),r=e,i=0,n=()=>{e=Date.now(),v<=(i=e-r)&&(r=e-i%v,this.shouldUpdate(o,l)&&(this.render(t,h,u,c,g,p,f),y.runEvents())),this.intervalId=j(n)},a||y.start(),this.intervalId=j(n))}stop(){this.intervalId&&(j.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(t,e){if(!t){var r=this["frameDuration"];if(this.animations.reduce((t,e)=>e.update(r)||t,!1))return!0}return!("function"!=typeof e||!e())||(!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents())}render(t,e,r,i,n,s,a){var{CLIENT_WIDTH:o,CLIENT_HEIGHT:h,viewPort:u,ctx:l,isFirstRender:c}=this,g=l.canvas,o=(u.clear(),g.width&&g.height?u.setCurrent(g.width,g.height):u.setCurrent(o,h),t.getStyle("width")),h=t.getStyle("height"),p=(!e&&(c||"number"!=typeof i&&"number"!=typeof n)&&(o.hasValue()&&(g.width=o.getPixels("x"),g.style&&(g.style.width="".concat(g.width,"px"))),h.hasValue()&&(g.height=h.getPixels("y"),g.style&&(g.style.height="".concat(g.height,"px")))),g.clientWidth||g.width),g=g.clientHeight||g.height;e&&o.hasValue()&&h.hasValue()&&(p=o.getPixels("x"),g=h.getPixels("y")),u.setCurrent(p,g),"number"==typeof s&&t.getAttribute("x",!0).setValue(s),"number"==typeof a&&t.getAttribute("y",!0).setValue(a),"number"!=typeof i&&"number"!=typeof n||(e=d(t.getAttribute("viewBox").getString()),h=o=0,"number"==typeof i&&((u=t.getStyle("width")).hasValue()?o=u.getPixels("x")/i:isNaN(e[2])||(o=e[2]/i)),"number"==typeof n&&((s=t.getStyle("height")).hasValue()?h=s.getPixels("y")/n:isNaN(e[3])||(h=e[3]/n)),o=o||h,h=h||o,t.getAttribute("width",!0).setValue(i),t.getAttribute("height",!0).setValue(n),(a=t.getStyle("transform",!0,!0)).setValue("".concat(a.getString()," scale(").concat(1/o,", ").concat(1/h,")"))),r||l.clearRect(0,0,p,g),t.render(l),c&&(this.isFirstRender=!1)}}_t.defaultWindow=Nt,_t.defaultFetch=Rt;var Vt=_t["defaultFetch"],kt="undefined"!=typeof DOMParser?DOMParser:null;class It{constructor(){var{fetch:t=Vt,DOMParser:e=kt}=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.fetch=t,this.DOMParser=e}parse(t){var e=this;return s(function*(){return t.startsWith("<")?e.parseFromString(t):e.load(t)})()}parseFromString(e){var r=new this.DOMParser;try{return this.checkDocument(r.parseFromString(e,"image/svg+xml"))}catch(t){return this.checkDocument(r.parseFromString(e,"text/xml"))}}checkDocument(t){var e=t.getElementsByTagName("parsererror")[0];if(e)throw new Error(e.textContent);return t}load(e){var r=this;return s(function*(){var t=yield(yield r.fetch(e)).text();return r.parseFromString(t)})()}}class Lt{constructor(t,e,r){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=d(e),this.originX=r[0],this.originY=r[1]}apply(t){var{originX:e,originY:r,matrix:i}=this,e=e.getPixels("x"),r=r.getPixels("y");t.translate(e,r),t.transform(i[0],i[1],i[2],i[3],i[4],i[5]),t.translate(-e,-r)}unapply(t){var{originX:e,originY:r,matrix:i}=this,n=i[0],s=i[2],a=i[4],o=i[1],h=i[3],i=i[5],u=1/(n*(+h-0*i)-s*(+o-0*i)+a*(0*o-0*h)),e=e.getPixels("x"),r=r.getPixels("y");t.translate(e,r),t.transform(u*(+h-0*i),u*(0*i-+o),u*(0*a-+s),u*(+n-0*a),u*(s*i-a*h),u*(a*o-n*i)),t.translate(-e,-r)}applyToPoint(t){t.applyTransform(this.matrix)}}class Dt extends Lt{constructor(t,e,r){super(t,e,r),this.type="skew",this.angle=null,this.angle=new b(t,"angle",e)}}class l{constructor(t,e,r){this.document=t,this.transforms=[],x(e).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/).forEach(t=>{var e;"none"!==t&&([t,e]=function(t){var[t,e]=t.split("(");return[t.trim(),e.trim().replace(")","")]}(t),void 0!==(t=l.transformTypes[t])&&this.transforms.push(new t(this.document,e,r)))})}static fromElement(t,e){var r=e.getStyle("transform",!1,!0),[e,i=e]=e.getStyle("transform-origin",!1,!0).split(),e=[e,i];return r.hasValue()?new l(t,r.getString(),e):null}apply(t){for(var e=this["transforms"],r=e.length,i=0;i<r;i++)e[i].apply(t)}unapply(t){for(var e=this["transforms"],r=e.length-1;0<=r;r--)e[r].unapply(t)}applyToPoint(t){for(var e=this["transforms"],r=e.length,i=0;i<r;i++)e[i].applyToPoint(t)}}l.transformTypes={translate:class{constructor(t,e){this.type="translate",this.point=null,this.point=f.parse(e)}apply(t){var{x:e,y:r}=this.point;t.translate(e||0,r||0)}unapply(t){var{x:e,y:r}=this.point;t.translate(-1*e||0,-1*r||0)}applyToPoint(t){var{x:e,y:r}=this.point;t.applyTransform([1,0,0,1,e||0,r||0])}},rotate:class{constructor(t,e,r){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;e=d(e);this.angle=new b(t,"angle",e[0]),this.originX=r[0],this.originY=r[1],this.cx=e[1]||0,this.cy=e[2]||0}apply(t){var{cx:e,cy:r,originX:i,originY:n,angle:s}=this,e=e+i.getPixels("x"),i=r+n.getPixels("y");t.translate(e,i),t.rotate(s.getRadians()),t.translate(-e,-i)}unapply(t){var{cx:e,cy:r,originX:i,originY:n,angle:s}=this,e=e+i.getPixels("x"),i=r+n.getPixels("y");t.translate(e,i),t.rotate(-1*s.getRadians()),t.translate(-e,-i)}applyToPoint(t){var{cx:e,cy:r,angle:i}=this,i=i.getRadians();t.applyTransform([1,0,0,1,e||0,r||0]),t.applyTransform([Math.cos(i),Math.sin(i),-Math.sin(i),Math.cos(i),0,0]),t.applyTransform([1,0,0,1,-e||0,-r||0])}},scale:class{constructor(t,e,r){this.type="scale",this.scale=null,this.originX=null,this.originY=null;e=f.parseScale(e);0!==e.x&&0!==e.y||(e.x=p,e.y=p),this.scale=e,this.originX=r[0],this.originY=r[1]}apply(t){var{scale:{x:e,y:r},originX:i,originY:n}=this,i=i.getPixels("x"),n=n.getPixels("y");t.translate(i,n),t.scale(e,r||e),t.translate(-i,-n)}unapply(t){var{scale:{x:e,y:r},originX:i,originY:n}=this,i=i.getPixels("x"),n=n.getPixels("y");t.translate(i,n),t.scale(1/e,1/r||e),t.translate(-i,-n)}applyToPoint(t){var{x:e,y:r}=this.scale;t.applyTransform([e||0,0,0,r||0,0,0])}},matrix:Lt,skewX:class extends Dt{constructor(t,e,r){super(t,e,r),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}},skewY:class extends Dt{constructor(t,e,r){super(t,e,r),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}};class c{constructor(r,t){var e,i,n=2<arguments.length&&void 0!==arguments[2]&&arguments[2];this.document=r,this.node=t,this.captureTextNodes=n,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],t&&1===t.nodeType&&(e=(Array.from(t.attributes).forEach(t=>{e=t.nodeName;var e=at.test(e)?e.toLowerCase():e;this.attributes[e]=new b(r,e,t.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()&&this.getAttribute("style").getString().split(";").map(t=>t.trim()).forEach(t=>{var e;t&&([t,e]=t.split(":").map(t=>t.trim()),this.styles[t]=new b(r,t,e))}),r)["definitions"],(i=this.getAttribute("id")).hasValue()&&!e[i.getString()]&&(e[i.getString()]=this),Array.from(t.childNodes).forEach(t=>{1===t.nodeType?this.addChild(t):!n||3!==t.nodeType&&4!==t.nodeType||0<(t=r.createTextNode(t)).getText().length&&this.addChild(t)}))}getAttribute(t){var e,r=this.attributes[t];return!r&&(1<arguments.length&&void 0!==arguments[1]&&arguments[1])?(e=new b(this.document,t,""),this.attributes[t]=e):r||b.empty(this.document)}getHrefAttribute(){for(var t in this.attributes)if("href"===t||t.endsWith(":href"))return this.attributes[t];return b.empty(this.document)}getStyle(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=this.styles[t];if(i)return i;var n=this.getAttribute(t);if(null!=n&&n.hasValue())return this.styles[t]=n;if(!r){var n=this["parent"];if(n){r=n.getStyle(t);if(null!=r&&r.hasValue())return r}}return e?(n=new b(this.document,t,""),this.styles[t]=n):i||b.empty(this.document)}render(t){var e;"none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()&&(t.save(),this.getStyle("mask").hasValue()?(e=this.getStyle("mask").getDefinition())&&(this.applyEffects(t),e.apply(t,this)):"none"!==this.getStyle("filter").getValue("none")?(e=this.getStyle("filter").getDefinition())&&(this.applyEffects(t),e.apply(t,this)):(this.setContext(t),this.renderChildren(t),this.clearContext(t)),t.restore())}setContext(t){}applyEffects(t){var e=l.fromElement(this.document,this),e=(e&&e.apply(t),this.getStyle("clip-path",!1,!0));e.hasValue()&&(e=e.getDefinition())&&e.apply(t)}clearContext(t){}renderChildren(e){this.children.forEach(t=>{t.render(e)})}addChild(t){t=t instanceof c?t:this.document.createElement(t);t.parent=this,c.ignoreChildTypes.includes(t.type)||this.children.push(t)}matchesSelector(e){var t=this["node"];if("function"==typeof t.matches)return t.matches(e);var r=null==(r=t.getAttribute)?void 0:r.call(t,"class");return!(!r||""===r)&&r.split(" ").some(t=>".".concat(t)===e)}addStylesFromStyleDefinition(){var t,{styles:e,stylesSpecificity:r}=this.document;for(t in e)if(!t.startsWith("@")&&this.matchesSelector(t)){var i=e[t],n=r[t];if(i)for(var s in i){var a=this.stylesSpecificity[s];(a=void 0===a?"000":a)<=n&&(this.styles[s]=i[s],this.stylesSpecificity[s]=n)}}}removeStyles(n,t){return t.reduce((t,e)=>{var r=n.getStyle(e);if(!r.hasValue())return t;var i=r.getString();return r.setValue(""),[...t,[e,i]]},[])}restoreStyles(r,t){t.forEach(t=>{var[t,e]=t;r.getStyle(t,!0).setValue(e)})}isFirstChild(){var t;return 0===(null==(t=this.parent)?void 0:t.children.indexOf(this))}}c.ignoreChildTypes=["title"];class jt extends c{constructor(t,e,r){super(t,e,r)}}function zt(t){t=t.trim();return/^('|")/.test(t)?t:'"'.concat(t,'"')}class v{constructor(t,e,r,i,n,s){s=s?"string"==typeof s?v.parse(s):s:{};this.fontFamily=n||s.fontFamily,this.fontSize=i||s.fontSize,this.fontStyle=t||s.fontStyle,this.fontWeight=r||s.fontWeight,this.fontVariant=e||s.fontVariant}static parse(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",e=1<arguments.length?arguments[1]:void 0,r="",i="",n="",s="",a="",t=x(t).trim().split(" "),o={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return t.forEach(t=>{switch(!0){case!o.fontStyle&&v.styles.includes(t):"inherit"!==t&&(r=t),o.fontStyle=!0;break;case!o.fontVariant&&v.variants.includes(t):"inherit"!==t&&(i=t),o.fontStyle=!0,o.fontVariant=!0;break;case!o.fontWeight&&v.weights.includes(t):"inherit"!==t&&(n=t),o.fontStyle=!0,o.fontVariant=!0,o.fontWeight=!0;break;case!o.fontSize:"inherit"!==t&&([s]=t.split("/")),o.fontStyle=!0,o.fontVariant=!0,o.fontWeight=!0,o.fontSize=!0;break;default:"inherit"!==t&&(a+=t)}}),new v(r,i,n,s,a,e)}toString(){return[function(t){if(!t)return"";var e=t.trim().toLowerCase();switch(e){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return e;default:return/^oblique\s+(-|)\d+deg$/.test(e)?e:""}}(this.fontStyle),this.fontVariant,function(t){if(!t)return"";var e=t.trim().toLowerCase();switch(e){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return e;default:return/^[\d.]+$/.test(e)?e:""}}(this.fontWeight),this.fontSize,(t=this.fontFamily,"undefined"==typeof process?t:t.trim().split(",").map(zt).join(","))].join(" ").trim();var t}}v.styles="normal|italic|oblique|inherit",v.variants="normal|small-caps|inherit",v.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class m{constructor(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:Number.NaN,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Number.NaN,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:Number.NaN,i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:Number.NaN;this.x1=t,this.y1=e,this.x2=r,this.y2=i,this.addPoint(t,e),this.addPoint(r,i)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(t,e){void 0!==t&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=t,this.x2=t),t<this.x1&&(this.x1=t),t>this.x2&&(this.x2=t)),void 0!==e&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=e,this.y2=e),e<this.y1&&(this.y1=e),e>this.y2&&(this.y2=e))}addX(t){this.addPoint(t,null)}addY(t){this.addPoint(null,t)}addBoundingBox(t){var e,r,i;t&&({x1:t,y1:e,x2:r,y2:i}=t,this.addPoint(t,e),this.addPoint(r,i))}sumCubic(t,e,r,i,n){return Math.pow(1-t,3)*e+3*Math.pow(1-t,2)*t*r+3*(1-t)*Math.pow(t,2)*i+Math.pow(t,3)*n}bezierCurveAdd(t,e,r,i,n){var s,a=6*e-12*r+6*i,o=-3*e+9*r-9*i+3*n,h=3*r-3*e;0==o?0!=a&&0<(s=-h/a)&&s<1&&(t?this.addX(this.sumCubic(s,e,r,i,n)):this.addY(this.sumCubic(s,e,r,i,n))):(s=Math.pow(a,2)-4*h*o)<0||(0<(h=(-a+Math.sqrt(s))/(2*o))&&h<1&&(t?this.addX(this.sumCubic(h,e,r,i,n)):this.addY(this.sumCubic(h,e,r,i,n))),0<(h=(-a-Math.sqrt(s))/(2*o))&&h<1&&(t?this.addX(this.sumCubic(h,e,r,i,n)):this.addY(this.sumCubic(h,e,r,i,n))))}addBezierCurve(t,e,r,i,n,s,a,o){this.addPoint(t,e),this.addPoint(a,o),this.bezierCurveAdd(!0,t,r,n,a),this.bezierCurveAdd(!1,e,i,s,o)}addQuadraticCurve(t,e,r,i,n,s){r=t+2/3*(r-t),i=e+2/3*(i-e);this.addBezierCurve(t,e,r,r+1/3*(n-t),i,i+1/3*(s-e),n,s)}isPointInBox(t,e){var{x1:r,y1:i,x2:n,y2:s}=this;return r<=t&&t<=n&&i<=e&&e<=s}}class w extends C{constructor(t){super(t.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,"")),this.control=null,this.start=null,this.current=null,this.command=null,this.commands=this.commands,this.i=-1,this.previousCommand=null,this.points=[],this.angles=[]}reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new f(0,0),this.control=new f(0,0),this.current=new f(0,0),this.points=[],this.angles=[]}isEnd(){var{i:t,commands:e}=this;return t>=e.length-1}next(){var t=this.commands[++this.i];return this.previousCommand=this.command,this.command=t}getPoint(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"x",e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"y",t=new f(this.command[t],this.command[e]);return this.makeAbsolute(t)}getAsControlPoint(t,e){t=this.getPoint(t,e);return this.control=t}getAsCurrentPoint(t,e){t=this.getPoint(t,e);return this.current=t}getReflectedControlPoint(){var t=this.previousCommand.type;if(t!==C.CURVE_TO&&t!==C.SMOOTH_CURVE_TO&&t!==C.QUAD_TO&&t!==C.SMOOTH_QUAD_TO)return this.current;var{current:{x:t,y:e},control:{x:r,y:i}}=this;return new f(2*t-r,2*e-i)}makeAbsolute(t){var e,r;return this.command.relative&&({x:e,y:r}=this.current,t.x+=e,t.y+=r),t}addMarker(t,e,r){var{points:i,angles:n}=this;r&&0<n.length&&!n[n.length-1]&&(n[n.length-1]=i[i.length-1].angleTo(r)),this.addMarkerAngle(t,e?e.angleTo(t):null)}addMarkerAngle(t,e){this.points.push(t),this.angles.push(e)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var t=this["angles"],e=t.length,r=0;r<e;r++)if(!t[r])for(var i=r+1;i<e;i++)if(t[i]){t[r]=t[i];break}return t}}class S extends c{constructor(){super(...arguments),this.modifiedEmSizeStack=!1}calculateOpacity(){for(var t=1,e=this;e;){var r=e.getStyle("opacity",!1,!0);r.hasValue(!0)&&(t*=r.getNumber()),e=e.parent}return t}setContext(t){var e,r,i,n,s,a,o=1<arguments.length&&void 0!==arguments[1]&&arguments[1];o||(a=this.getStyle("fill"),r=this.getStyle("fill-opacity"),i=this.getStyle("stroke"),n=this.getStyle("stroke-opacity"),a.isUrlDefinition()?(e=a.getFillStyleDefinition(this,r))&&(t.fillStyle=e):a.hasValue()&&("currentColor"===a.getString()&&a.setValue(this.getStyle("color").getColor()),"inherit"!==(e=a.getColor())&&(t.fillStyle="none"===e?"rgba(0,0,0,0)":e)),r.hasValue()&&(a=new b(this.document,"fill",t.fillStyle).addOpacity(r).getColor(),t.fillStyle=a),i.isUrlDefinition()?(e=i.getFillStyleDefinition(this,n))&&(t.strokeStyle=e):i.hasValue()&&("currentColor"===i.getString()&&i.setValue(this.getStyle("color").getColor()),"inherit"!==(r=i.getString())&&(t.strokeStyle="none"===r?"rgba(0,0,0,0)":r)),n.hasValue()&&(a=new b(this.document,"stroke",t.strokeStyle).addOpacity(n).getString(),t.strokeStyle=a),(e=this.getStyle("stroke-width")).hasValue()&&(i=e.getPixels(),t.lineWidth=i||p),r=this.getStyle("stroke-linecap"),n=this.getStyle("stroke-linejoin"),a=this.getStyle("stroke-miterlimit"),e=this.getStyle("stroke-dasharray"),i=this.getStyle("stroke-dashoffset"),r.hasValue()&&(t.lineCap=r.getString()),n.hasValue()&&(t.lineJoin=n.getString()),a.hasValue()&&(t.miterLimit=a.getNumber()),e.hasValue()&&"none"!==e.getString()&&(r=d(e.getString()),void 0!==t.setLineDash?t.setLineDash(r):void 0!==t.webkitLineDash?t.webkitLineDash=r:void 0===t.mozDash||1===r.length&&0===r[0]||(t.mozDash=r),n=i.getPixels(),void 0!==t.lineDashOffset?t.lineDashOffset=n:void 0!==t.webkitLineDashOffset?t.webkitLineDashOffset=n:void 0!==t.mozDashOffset&&(t.mozDashOffset=n))),this.modifiedEmSizeStack=!1,void 0!==t.font&&(a=this.getStyle("font"),e=this.getStyle("font-style"),r=this.getStyle("font-variant"),i=this.getStyle("font-weight"),n=this.getStyle("font-size"),s=this.getStyle("font-family"),a=new v(e.getString(),r.getString(),i.getString(),n.hasValue()?"".concat(n.getPixels(!0),"px"):"",s.getString(),v.parse(a.getString(),t.font)),e.setValue(a.fontStyle),r.setValue(a.fontVariant),i.setValue(a.fontWeight),n.setValue(a.fontSize),s.setValue(a.fontFamily),t.font=a.toString(),n.isPixels()&&(this.document.emSize=n.getPixels(),this.modifiedEmSizeStack=!0)),o||(this.applyEffects(t),t.globalAlpha=this.calculateOpacity())}clearContext(t){super.clearContext(t),this.modifiedEmSizeStack&&this.document.popEmSize()}}class T extends S{constructor(t,e,r){super(t,e,r),this.type="path",this.pathParser=null,this.pathParser=new w(this.getAttribute("d").getString())}path(t){var e=this["pathParser"],r=new m;for(e.reset(),t&&t.beginPath();!e.isEnd();)switch(e.next().type){case w.MOVE_TO:this.pathM(t,r);break;case w.LINE_TO:this.pathL(t,r);break;case w.HORIZ_LINE_TO:this.pathH(t,r);break;case w.VERT_LINE_TO:this.pathV(t,r);break;case w.CURVE_TO:this.pathC(t,r);break;case w.SMOOTH_CURVE_TO:this.pathS(t,r);break;case w.QUAD_TO:this.pathQ(t,r);break;case w.SMOOTH_QUAD_TO:this.pathT(t,r);break;case w.ARC:this.pathA(t,r);break;case w.CLOSE_PATH:this.pathZ(t,r)}return r}getBoundingBox(t){return this.path()}getMarkers(){var t=this["pathParser"],e=t.getMarkerPoints(),r=t.getMarkerAngles();return e.map((t,e)=>[t,r[e]])}renderChildren(t){this.path(t),this.document.screen.mouse.checkPath(this,t);var e=this.getStyle("fill-rule"),r=(""!==t.fillStyle&&("inherit"!==e.getString("inherit")?t.fill(e.getString()):t.fill()),""!==t.strokeStyle&&("non-scaling-stroke"===this.getAttribute("vector-effect").getString()?(t.save(),t.setTransform(1,0,0,1,0,0),t.stroke(),t.restore()):t.stroke()),this.getMarkers());if(r){var i,n,s=r.length-1,e=this.getStyle("marker-start"),a=this.getStyle("marker-mid"),o=this.getStyle("marker-end");if(e.isUrlDefinition()&&(e=e.getDefinition(),[i,n]=r[0],e.render(t,i,n)),a.isUrlDefinition())for(var h=a.getDefinition(),u=1;u<s;u++){var[l,c]=r[u];h.render(t,l,c)}o.isUrlDefinition()&&(e=o.getDefinition(),[i,n]=r[s],e.render(t,i,n))}}static pathM(t){var e=t.getAsCurrentPoint();return t.start=t.current,{point:e}}pathM(t,e){var r=this["pathParser"],i=T.pathM(r)["point"],{x:n,y:s}=i;r.addMarker(i),e.addPoint(n,s),t&&t.moveTo(n,s)}static pathL(t){var e=t["current"];return{current:e,point:t.getAsCurrentPoint()}}pathL(t,e){var r=this["pathParser"],{current:i,point:n}=T.pathL(r),{x:s,y:a}=n;r.addMarker(n,i),e.addPoint(s,a),t&&t.lineTo(s,a)}static pathH(t){var{current:e,command:r}=t,r=new f((r.relative?e.x:0)+r.x,e.y);return{current:e,point:t.current=r}}pathH(t,e){var r=this["pathParser"],{current:i,point:n}=T.pathH(r),{x:s,y:a}=n;r.addMarker(n,i),e.addPoint(s,a),t&&t.lineTo(s,a)}static pathV(t){var{current:e,command:r}=t,r=new f(e.x,(r.relative?e.y:0)+r.y);return{current:e,point:t.current=r}}pathV(t,e){var r=this["pathParser"],{current:i,point:n}=T.pathV(r),{x:s,y:a}=n;r.addMarker(n,i),e.addPoint(s,a),t&&t.lineTo(s,a)}static pathC(t){var e=t["current"];return{current:e,point:t.getPoint("x1","y1"),controlPoint:t.getAsControlPoint("x2","y2"),currentPoint:t.getAsCurrentPoint()}}pathC(t,e){var r=this["pathParser"],{current:i,point:n,controlPoint:s,currentPoint:a}=T.pathC(r);r.addMarker(a,s,n),e.addBezierCurve(i.x,i.y,n.x,n.y,s.x,s.y,a.x,a.y),t&&t.bezierCurveTo(n.x,n.y,s.x,s.y,a.x,a.y)}static pathS(t){var e=t["current"];return{current:e,point:t.getReflectedControlPoint(),controlPoint:t.getAsControlPoint("x2","y2"),currentPoint:t.getAsCurrentPoint()}}pathS(t,e){var r=this["pathParser"],{current:i,point:n,controlPoint:s,currentPoint:a}=T.pathS(r);r.addMarker(a,s,n),e.addBezierCurve(i.x,i.y,n.x,n.y,s.x,s.y,a.x,a.y),t&&t.bezierCurveTo(n.x,n.y,s.x,s.y,a.x,a.y)}static pathQ(t){var e=t["current"];return{current:e,controlPoint:t.getAsControlPoint("x1","y1"),currentPoint:t.getAsCurrentPoint()}}pathQ(t,e){var r=this["pathParser"],{current:i,controlPoint:n,currentPoint:s}=T.pathQ(r);r.addMarker(s,n,n),e.addQuadraticCurve(i.x,i.y,n.x,n.y,s.x,s.y),t&&t.quadraticCurveTo(n.x,n.y,s.x,s.y)}static pathT(t){var e=t.current,r=t.getReflectedControlPoint();return{current:e,controlPoint:t.control=r,currentPoint:t.getAsCurrentPoint()}}pathT(t,e){var r=this["pathParser"],{current:i,controlPoint:n,currentPoint:s}=T.pathT(r);r.addMarker(s,n,n),e.addQuadraticCurve(i.x,i.y,n.x,n.y,s.x,s.y),t&&t.quadraticCurveTo(n.x,n.y,s.x,s.y)}static pathA(t){var{current:e,command:r}=t,{rX:r,rY:i,xRot:n,lArcFlag:s,sweepFlag:a}=r,n=n*(Math.PI/180),t=t.getAsCurrentPoint(),o=new f(Math.cos(n)*(e.x-t.x)/2+Math.sin(n)*(e.y-t.y)/2,-Math.sin(n)*(e.x-t.x)/2+Math.cos(n)*(e.y-t.y)/2),h=Math.pow(o.x,2)/Math.pow(r,2)+Math.pow(o.y,2)/Math.pow(i,2),h=(1<h&&(r*=Math.sqrt(h),i*=Math.sqrt(h)),(s===a?-1:1)*Math.sqrt((Math.pow(r,2)*Math.pow(i,2)-Math.pow(r,2)*Math.pow(o.y,2)-Math.pow(i,2)*Math.pow(o.x,2))/(Math.pow(r,2)*Math.pow(o.y,2)+Math.pow(i,2)*Math.pow(o.x,2)))),s=(isNaN(h)&&(h=0),new f(h*r*o.y/i,h*-i*o.x/r)),h=new f((e.x+t.x)/2+Math.cos(n)*s.x-Math.sin(n)*s.y,(e.y+t.y)/2+Math.sin(n)*s.x+Math.cos(n)*s.y),e=vt([1,0],[(o.x-s.x)/r,(o.y-s.y)/i]),u=[(o.x-s.x)/r,(o.y-s.y)/i],o=[(-o.x-s.x)/r,(-o.y-s.y)/i],s=vt(u,o);return yt(u,o)<=-1&&(s=Math.PI),{currentPoint:t,rX:r,rY:i,sweepFlag:a,xAxisRotation:n,centp:h,a1:e,ad:s=1<=yt(u,o)?0:s}}pathA(t,e){var r=this["pathParser"],{currentPoint:i,rX:n,rY:s,sweepFlag:a,xAxisRotation:o,centp:h,a1:u,ad:l}=T.pathA(r),c=1-a?1:-1,g=u+l/2*c,p=new f(h.x+n*Math.cos(g),h.y+s*Math.sin(g));r.addMarkerAngle(p,g-c*Math.PI/2),r.addMarkerAngle(i,g-c*Math.PI),e.addPoint(i.x,i.y),!t||isNaN(u)||isNaN(l)||(p=s<n?n:s,r=s<n?1:n/s,g=s<n?s/n:1,t.translate(h.x,h.y),t.rotate(o),t.scale(r,g),t.arc(0,0,p,u,u+l,Boolean(1-a)),t.scale(1/r,1/g),t.rotate(-o),t.translate(-h.x,-h.y))}static pathZ(t){t.current=t.start}pathZ(t,e){T.pathZ(this.pathParser),t&&e.x1!==e.x2&&e.y1!==e.y2&&t.closePath()}}class Bt extends T{constructor(t,e,r){super(t,e,r),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class A extends S{constructor(t,e,r){super(t,e,new.target===A||r),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(t){super.setContext(t,1<arguments.length&&void 0!==arguments[1]&&arguments[1]);var e=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();e&&(t.textBaseline=e)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(r){if("text"!==this.type)return this.getTElementBoundingBox(r);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(r);var i=null;return this.children.forEach((t,e)=>{e=this.getChildBoundingBox(r,this,this,e);i?i.addBoundingBox(e):i=e}),i}getFontSize(){var{document:t,parent:e}=this,t=v.parse(t.ctx.font).fontSize;return e.getStyle("font-size").getNumber(t)}getTElementBoundingBox(t){var e=this.getFontSize();return new m(this.x,this.y-e,this.x+this.measureText(t),this.y)}getGlyph(t,e,r){var i,n,s=e[r],a=null;return t.isArabic?(i=e.length,n=e[r-1],e=e[r+1],n=0<r&&" "!==n&&(r===i-1||" "===e)?"initial":0<r&&" "!==n&&r<i-1&&" "!==e?"medial":(0===r||" "===n)&&r<i-1&&" "!==e?"terminal":"isolated",void 0!==t.glyphs[s]&&(a=(r=t.glyphs[s])instanceof Bt?r:r[n])):a=t.glyphs[s],a=a||t.missingGlyph}getText(){return""}getTextFromNode(t){var t=t||this.node,e=Array.from(t.parentNode.childNodes),r=e.indexOf(t),e=e.length-1,t=x(t.textContent||"");return 0===r&&(t=t.replace(/^[\n \t]+/,"")),t=r===e?t.replace(/[\n \t]+$/,""):t}renderChildren(r){var t;"text"!==this.type?this.renderTElementChildren(r):(this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(r),this.children.forEach((t,e)=>{this.renderChild(r,this,this,e)}),t=this.document.screen.mouse,t.isWorking()&&t.checkBoundingBox(this,this.getBoundingBox(r)))}renderTElementChildren(t){var{document:e,parent:r}=this,i=this.getText(),n=r.getStyle("font-family").getDefinition();if(n)for(var s=n.fontFace["unitsPerEm"],e=v.parse(e.ctx.font),a=r.getStyle("font-size").getNumber(e.fontSize),o=r.getStyle("font-style").getString(e.fontStyle),h=a/s,u=n.isRTL?i.split("").reverse().join(""):i,l=d(r.getAttribute("dx").getString()),c=u.length,g=0;g<c;g++){var p=this.getGlyph(n,u,g),f=(t.translate(this.x,this.y),t.scale(h,-h),t.lineWidth);t.lineWidth=t.lineWidth*s/a,"italic"===o&&t.transform(1,0,.4,1,0,0),p.render(t),"italic"===o&&t.transform(1,0,-.4,1,0,0),t.lineWidth=f,t.scale(1/h,-1/h),t.translate(-this.x,-this.y),this.x+=a*(p.horizAdvX||n.horizAdvX)/s,void 0===l[g]||isNaN(l[g])||(this.x+=l[g])}else{var{x:e,y:r}=this;t.fillStyle&&t.fillText(i,e,r),t.strokeStyle&&t.strokeText(i,e,r)}}applyAnchoring(){if(!(this.textChunkStart>=this.leafTexts.length)){for(var t=this.leafTexts[this.textChunkStart],e=t.getStyle("text-anchor").getString("start"),r=0,r="start"===e?t.x-this.minX:"end"===e?t.x-this.maxX:t.x-(this.minX+this.maxX)/2,i=this.textChunkStart;i<this.leafTexts.length;i++)this.leafTexts[i].x+=r;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}}adjustChildCoordinatesRecursive(r){this.children.forEach((t,e)=>{this.adjustChildCoordinatesRecursiveCore(r,this,this,e)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(r,i,t,e){var n=t.children[e];0<n.children.length?n.children.forEach((t,e)=>{i.adjustChildCoordinatesRecursiveCore(r,i,n,e)}):this.adjustChildCoordinates(r,i,t,e)}adjustChildCoordinates(t,e,r,i){r=r.children[i];if("function"!=typeof r.measureText)return r;t.save(),r.setContext(t,!0);var n=r.getAttribute("x"),s=r.getAttribute("y"),a=r.getAttribute("dx"),o=r.getAttribute("dy"),h=r.getStyle("font-family").getDefinition(),h=Boolean(h)&&h.isRTL,i=(0===i&&(n.hasValue()||n.setValue(r.getInheritedAttribute("x")),s.hasValue()||s.setValue(r.getInheritedAttribute("y")),a.hasValue()||a.setValue(r.getInheritedAttribute("dx")),o.hasValue()||o.setValue(r.getInheritedAttribute("dy"))),r.measureText(t));return h&&(e.x-=i),n.hasValue()?(e.applyAnchoring(),r.x=n.getPixels("x"),a.hasValue()&&(r.x+=a.getPixels("x"))):(a.hasValue()&&(e.x+=a.getPixels("x")),r.x=e.x),e.x=r.x,h||(e.x+=i),s.hasValue()?(r.y=s.getPixels("y"),o.hasValue()&&(r.y+=o.getPixels("y"))):(o.hasValue()&&(e.y+=o.getPixels("y")),r.y=e.y),e.y=r.y,e.leafTexts.push(r),e.minX=Math.min(e.minX,r.x,r.x+i),e.maxX=Math.max(e.maxX,r.x,r.x+i),r.clearContext(t),t.restore(),r}getChildBoundingBox(r,i,t,e){var n=t.children[e];if("function"!=typeof n.getBoundingBox)return null;var s=n.getBoundingBox(r);return s?(n.children.forEach((t,e)=>{e=i.getChildBoundingBox(r,i,n,e);s.addBoundingBox(e)}),s):null}renderChild(r,i,t,e){var n=t.children[e];n.render(r),n.children.forEach((t,e)=>{i.renderChild(r,i,n,e)})}measureText(t){var e=this["measureCache"];if(~e)return e;e=this.getText(),t=this.measureTargetText(t,e);return this.measureCache=t}measureTargetText(t,e){if(!e.length)return 0;var r=this["parent"],i=r.getStyle("font-family").getDefinition();if(i){for(var n=this.getFontSize(),s=i.isRTL?e.split("").reverse().join(""):e,a=d(r.getAttribute("dx").getString()),o=s.length,h=0,u=0;u<o;u++)h+=(this.getGlyph(i,s,u).horizAdvX||i.horizAdvX)*n/i.fontFace.unitsPerEm,void 0===a[u]||isNaN(a[u])||(h+=a[u]);return h}if(!t.measureText)return 10*e.length;t.save(),this.setContext(t,!0);r=t.measureText(e).width;return this.clearContext(t),t.restore(),r}getInheritedAttribute(t){for(var e=this;e instanceof A&&e.isFirstChild();){var r=e.parent.getAttribute(t);if(r.hasValue(!0))return r.getValue("0");e=e.parent}return null}}class Ft extends A{constructor(t,e,r){super(t,e,new.target===Ft||r),this.type="tspan",this.text=0<this.children.length?"":this.getTextFromNode()}getText(){return this.text}}class Ht extends Ft{constructor(){super(...arguments),this.type="textNode"}}class O extends S{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(t){var e,r=this["document"],{screen:i,window:n}=r,s=t.canvas,{width:s,height:n}=(i.setDefaults(t),s.style&&void 0!==t.font&&n&&void 0!==n.getComputedStyle&&(t.font=n.getComputedStyle(s).getPropertyValue("font"),(n=new b(r,"fontSize",v.parse(t.font).fontSize)).hasValue()&&(r.rootEmSize=n.getPixels("y"),r.emSize=r.rootEmSize)),this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0),i.viewPort),a=(this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black"),this.getAttribute("refX")),o=this.getAttribute("refY"),h=this.getAttribute("viewBox"),h=h.hasValue()?d(h.getString()):null,u=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),l=0,c=0,g=0,p=0;h&&(l=h[0],c=h[1]),this.root||(s=this.getStyle("width").getPixels("x"),n=this.getStyle("height").getPixels("y"),"marker"===this.type&&(g=l,p=c,c=l=0)),i.viewPort.setCurrent(s,n),!this.node||this.parent&&"foreignObject"!==(null==(e=this.node.parentNode)?void 0:e.nodeName)||!this.getStyle("transform",!1,!0).hasValue()||this.getStyle("transform-origin",!1,!0).hasValue()||this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(t),t.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),h&&(s=h[2],n=h[3]),r.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:i.viewPort.width,desiredWidth:s,height:i.viewPort.height,desiredHeight:n,minX:l,minY:c,refX:a.getValue(),refY:o.getValue(),clip:u,clipX:g,clipY:p}),h&&(i.viewPort.removeCurrent(),i.viewPort.setCurrent(s,n))}clearContext(t){super.clearContext(t),this.document.screen.viewPort.removeCurrent()}resize(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:t,r=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=this.getAttribute("width",!0),n=this.getAttribute("height",!0),s=this.getAttribute("viewBox"),a=this.getAttribute("style"),o=i.getNumber(0),h=n.getNumber(0);r&&("string"==typeof r?this.getAttribute("preserveAspectRatio",!0).setValue(r):(r=this.getAttribute("preserveAspectRatio")).hasValue()&&r.setValue(r.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))),i.setValue(t),n.setValue(e),s.hasValue()||s.setValue("0 0 ".concat(o||t," ").concat(h||e)),a.hasValue()&&(r=this.getStyle("width"),i=this.getStyle("height"),r.hasValue()&&r.setValue("".concat(t,"px")),i.hasValue()&&i.setValue("".concat(e,"px")))}}class Ut extends T{constructor(){super(...arguments),this.type="rect"}path(t){var e=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),i=this.getStyle("width",!1,!0).getPixels("x"),n=this.getStyle("height",!1,!0).getPixels("y"),s=this.getAttribute("rx"),a=this.getAttribute("ry"),o=s.getPixels("x"),h=a.getPixels("y");return s.hasValue()&&!a.hasValue()&&(h=o),a.hasValue()&&!s.hasValue()&&(o=h),o=Math.min(o,i/2),h=Math.min(h,n/2),t&&(a=(Math.sqrt(2)-1)/3*4,t.beginPath(),0<n&&0<i&&(t.moveTo(e+o,r),t.lineTo(e+i-o,r),t.bezierCurveTo(e+i-o+a*o,r,e+i,r+h-a*h,e+i,r+h),t.lineTo(e+i,r+n-h),t.bezierCurveTo(e+i,r+n-h+a*h,e+i-o+a*o,r+n,e+i-o,r+n),t.lineTo(e+o,r+n),t.bezierCurveTo(e+o-a*o,r+n,e,r+n-h+a*h,e,r+n-h),t.lineTo(e,r+h),t.bezierCurveTo(e,r+h-a*h,e+o-a*o,r,e+o,r),t.closePath())),new m(e,r,e+i,r+n)}getMarkers(){return null}}class Xt extends T{constructor(){super(...arguments),this.type="circle"}path(t){var e=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),i=this.getAttribute("r").getPixels();return t&&0<i&&(t.beginPath(),t.arc(e,r,i,0,2*Math.PI,!1),t.closePath()),new m(e-i,r-i,e+i,r+i)}getMarkers(){return null}}class Yt extends T{constructor(){super(...arguments),this.type="ellipse"}path(t){var e=(Math.sqrt(2)-1)/3*4,r=this.getAttribute("rx").getPixels("x"),i=this.getAttribute("ry").getPixels("y"),n=this.getAttribute("cx").getPixels("x"),s=this.getAttribute("cy").getPixels("y");return t&&0<r&&0<i&&(t.beginPath(),t.moveTo(n+r,s),t.bezierCurveTo(n+r,s+e*i,n+e*r,s+i,n,s+i),t.bezierCurveTo(n-e*r,s+i,n-r,s+e*i,n-r,s),t.bezierCurveTo(n-r,s-e*i,n-e*r,s-i,n,s-i),t.bezierCurveTo(n+e*r,s-i,n+r,s-e*i,n+r,s),t.closePath()),new m(n-r,s-i,n+r,s+i)}getMarkers(){return null}}class $t extends T{constructor(){super(...arguments),this.type="line"}getPoints(){return[new f(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new f(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(t){var[{x:e,y:r},{x:i,y:n}]=this.getPoints();return t&&(t.beginPath(),t.moveTo(e,r),t.lineTo(i,n)),new m(e,r,i,n)}getMarkers(){var[t,e]=this.getPoints(),r=t.angleTo(e);return[[t,r],[e,r]]}}class qt extends T{constructor(t,e,r){super(t,e,r),this.type="polyline",this.points=[],this.points=f.parsePath(this.getAttribute("points").getString())}path(r){var t=this["points"],[{x:e,y:i}]=t,n=new m(e,i);return r&&(r.beginPath(),r.moveTo(e,i)),t.forEach(t=>{var{x:t,y:e}=t;n.addPoint(t,e),r&&r.lineTo(t,e)}),n}getMarkers(){var r=this["points"],i=r.length-1,n=[];return r.forEach((t,e)=>{e!==i&&n.push([t,t.angleTo(r[e+1])])}),0<n.length&&n.push([r[r.length-1],n[n.length-1][1]]),n}}class Wt extends c{constructor(){super(...arguments),this.type="pattern"}createPattern(t,e,r){var i=this.getStyle("width").getPixels("x",!0),n=this.getStyle("height").getPixels("y",!0),s=new O(this.document,null),a=(s.attributes.viewBox=new b(this.document,"viewBox",this.getAttribute("viewBox").getValue()),s.attributes.width=new b(this.document,"width","".concat(i,"px")),s.attributes.height=new b(this.document,"height","".concat(n,"px")),s.attributes.transform=new b(this.document,"transform",this.getAttribute("patternTransform").getValue()),s.children=this.children,this.document.createCanvas(i,n)),o=a.getContext("2d"),i=this.getAttribute("x"),n=this.getAttribute("y");i.hasValue()&&n.hasValue()&&o.translate(i.getPixels("x",!0),n.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var h=-1;h<=1;h++)for(var u=-1;u<=1;u++)o.save(),s.attributes.x=new b(this.document,"x",h*a.width),s.attributes.y=new b(this.document,"y",u*a.height),s.render(o),o.restore();return t.createPattern(a,"repeat")}}class Gt extends c{constructor(){super(...arguments),this.type="marker"}render(t,e,r){var i,n,s,a;e&&({x:e,y:i}=e,n=this.getAttribute("orient").getString("auto"),s=this.getAttribute("markerUnits").getString("strokeWidth"),t.translate(e,i),"auto"===n&&t.rotate(r),"strokeWidth"===s&&t.scale(t.lineWidth,t.lineWidth),t.save(),(a=new O(this.document,null)).type=this.type,a.attributes.viewBox=new b(this.document,"viewBox",this.getAttribute("viewBox").getValue()),a.attributes.refX=new b(this.document,"refX",this.getAttribute("refX").getValue()),a.attributes.refY=new b(this.document,"refY",this.getAttribute("refY").getValue()),a.attributes.width=new b(this.document,"width",this.getAttribute("markerWidth").getValue()),a.attributes.height=new b(this.document,"height",this.getAttribute("markerHeight").getValue()),a.attributes.overflow=new b(this.document,"overflow",this.getAttribute("overflow").getValue()),a.attributes.fill=new b(this.document,"fill",this.getAttribute("fill").getColor("black")),a.attributes.stroke=new b(this.document,"stroke",this.getAttribute("stroke").getValue("none")),a.children=this.children,a.render(t),t.restore(),"strokeWidth"===s&&t.scale(1/t.lineWidth,1/t.lineWidth),"auto"===n&&t.rotate(-r),t.translate(-e,-i))}}class Qt extends c{constructor(){super(...arguments),this.type="defs"}render(){}}class Zt extends S{constructor(){super(...arguments),this.type="g"}getBoundingBox(e){var r=new m;return this.children.forEach(t=>{r.addBoundingBox(t.getBoundingBox(e))}),r}}class Kt extends c{constructor(t,e,r){super(t,e,r),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:i,children:t}=this;t.forEach(t=>{"stop"===t.type&&i.push(t)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(t,e,r){var i,n,s=this,s=(this.getHrefAttribute().hasValue()&&(s=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(s)),s)["stops"],a=this.getGradient(t,e);return a?(s.forEach(t=>{a.addColorStop(t.offset,this.addParentOpacity(r,t.color))}),this.getAttribute("gradientTransform").hasValue()?(t=this["document"],{MAX_VIRTUAL_PIXELS:e,viewPort:i}=t.screen,[i]=i.viewPorts,(n=new Ut(t,null)).attributes.x=new b(t,"x",-e/3),n.attributes.y=new b(t,"y",-e/3),n.attributes.width=new b(t,"width",e),n.attributes.height=new b(t,"height",e),(e=new Zt(t,null)).attributes.transform=new b(t,"transform",this.getAttribute("gradientTransform").getValue()),e.children=[n],(n=new O(t,null)).attributes.x=new b(t,"x",0),n.attributes.y=new b(t,"y",0),n.attributes.width=new b(t,"width",i.width),n.attributes.height=new b(t,"height",i.height),n.children=[e],(t=(e=t.createCanvas(i.width,i.height)).getContext("2d")).fillStyle=a,n.render(t),t.createPattern(e,"no-repeat")):a):this.addParentOpacity(r,s[s.length-1].color)}inheritStopContainer(e){this.attributesToInherit.forEach(t=>{!this.getAttribute(t).hasValue()&&e.getAttribute(t).hasValue()&&this.getAttribute(t,!0).setValue(e.getAttribute(t).getValue())})}addParentOpacity(t,e){return t.hasValue()?new b(this.document,"color",e).addOpacity(t).getColor():e}}class Jt extends c{constructor(t,e,r){super(t,e,r),this.type="stop";t=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),e=this.getStyle("stop-opacity"),r=this.getStyle("stop-color",!0);""===r.getString()&&r.setValue("#000"),e.hasValue()&&(r=r.addOpacity(e)),this.offset=t,this.color=r.getColor()}}class te extends c{constructor(t,e,r){super(t,e,r),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,t.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new b(t,"values",null);e=this.getAttribute("values");e.hasValue()&&this.values.setValue(e.getString().split(";"))}getProperty(){var t=this.getAttribute("attributeType").getString(),e=this.getAttribute("attributeName").getString();return"CSS"===t?this.parent.getStyle(e,!0):this.parent.getAttribute(e,!0)}calcValue(){var t=this["initialUnits"],{progress:e,from:r,to:i}=this.getProgress(),i=r.getNumber()+(i.getNumber()-r.getNumber())*e;return"%"===t&&(i*=100),"".concat(i).concat(t)}update(t){var e=this["parent"],r=this.getProperty();if(this.initialValue||(this.initialValue=r.getString(),this.initialUnits=r.getUnits()),this.duration>this.maxDuration){var i=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==i||this.frozen){if("remove"===i&&!this.removed)return this.removed=!0,r.setValue(e.animationFrozen?e.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,e.animationFrozen=!0,e.animationFrozenValue=r.getString();return!1}this.duration+=t;i=!1;return this.begin<this.duration&&(e=this.calcValue(),(t=this.getAttribute("type")).hasValue()&&(t=t.getString(),e="".concat(t,"(").concat(e,")")),r.setValue(e),i=!0),i}getProgress(){var t,e,r,{document:i,values:n}=this,s={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};return n.hasValue()?(t=s.progress*(n.getValue().length-1),e=Math.floor(t),r=Math.ceil(t),s.from=new b(i,"from",parseFloat(n.getValue()[e])),s.to=new b(i,"to",parseFloat(n.getValue()[r])),s.progress=(t-e)/(r-e)):(s.from=this.from,s.to=this.to),s}}class ee extends c{constructor(t,e,r){super(t,e,r),this.type="font",this.glyphs={},this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var i,n=t["definitions"],e=this["children"];for(i of e)switch(i.type){case"font-face":var s=(this.fontFace=i).getStyle("font-family");s.hasValue()&&(n[s.getString()]=this);break;case"missing-glyph":this.missingGlyph=i;break;case"glyph":s=i;s.arabicForm?(this.isRTL=!0,this.isArabic=!0,void 0===this.glyphs[s.unicode]&&(this.glyphs[s.unicode]={}),this.glyphs[s.unicode][s.arabicForm]=s):this.glyphs[s.unicode]=s}}render(){}}class re extends c{constructor(t,e,r){super(t,e,r),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class ie extends T{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class ne extends A{constructor(){super(...arguments),this.type="tref"}getText(){var t=this.getHrefAttribute().getDefinition();if(t){t=t.children[0];if(t)return t.getText()}return""}}class se extends A{constructor(t,e,r){super(t,e,r),this.type="a";t=e.childNodes,r=t[0],e=0<t.length&&Array.from(t).every(t=>3===t.nodeType);this.hasText=e,this.text=e?this.getTextFromNode(r):""}getText(){return this.text}renderChildren(t){var e,r,i,n;this.hasText?(super.renderChildren(t),{document:i,x:e,y:r}=this,n=i.screen["mouse"],i=new b(i,"fontSize",v.parse(i.ctx.font).fontSize),n.isWorking()&&n.checkBoundingBox(this,new m(e,r-i.getPixels("y"),e+this.measureText(t),r))):0<this.children.length&&((n=new Zt(this.document,null)).children=this.children,n.parent=this,n.render(t))}onClick(){var t=this.document["window"];t&&t.open(this.getHrefAttribute().getString())}onMouseMove(){this.document.ctx.canvas.style.cursor="pointer"}}function ae(e,t){var r,i=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,r)),i}function oe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(r),!0).forEach(function(t){D(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ae(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}class he extends A{constructor(t,e,r){super(t,e,r),this.type="textPath",this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([["",0]]);t=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(t)}getText(){return this.text}path(g){var t=this["dataArray"];g&&g.beginPath(),t.forEach(t=>{var{type:t,points:e}=t;switch(t){case w.LINE_TO:g&&g.lineTo(e[0],e[1]);break;case w.MOVE_TO:g&&g.moveTo(e[0],e[1]);break;case w.CURVE_TO:g&&g.bezierCurveTo(e[0],e[1],e[2],e[3],e[4],e[5]);break;case w.QUAD_TO:g&&g.quadraticCurveTo(e[0],e[1],e[2],e[3]);break;case w.ARC:var[r,i,n,s,a,o,h,u]=e,l=s<n?n:s,c=s<n?1:n/s,s=s<n?s/n:1;g&&(g.translate(r,i),g.rotate(h),g.scale(c,s),g.arc(0,0,l,a,a+o,Boolean(1-u)),g.scale(1/c,1/s),g.rotate(-h),g.translate(-r,-i));break;case w.CLOSE_PATH:g&&g.closePath()}})}renderChildren(s){this.setTextData(s),s.save();var a=this.parent.getStyle("text-decoration").getString(),o=this.getFontSize(),t=this["glyphInfo"],e=s.fillStyle;"underline"===a&&s.beginPath(),t.forEach((t,e)=>{var{p0:t,p1:r,rotation:i,text:n}=t;s.save(),s.translate(t.x,t.y),s.rotate(i),s.fillStyle&&s.fillText(n,0,0),s.strokeStyle&&s.strokeText(n,0,0),s.restore(),"underline"===a&&(0===e&&s.moveTo(t.x,t.y+o/8),s.lineTo(r.x,r.y+o/5))}),"underline"===a&&(s.lineWidth=o/20,s.strokeStyle=e,s.stroke(),s.closePath()),s.restore()}getLetterSpacingAt(){return this.letterSpacingCache[0<arguments.length&&void 0!==arguments[0]?arguments[0]:0]||0}findSegmentToFitChar(t,e,r,i,n,s,a,o,h){var t=this.measureText(t,o),o=(" "===o&&"justify"===e&&r<i&&(t+=(i-r)/n),-1<h&&(s+=this.getLetterSpacingAt(h)),this.textHeight/20),e=this.getEquidistantPointOnPath(s,o,0),i=this.getEquidistantPointOnPath(s+t,o,0),r={p0:e,p1:i},n=e&&i?Math.atan2(i.y-e.y,i.x-e.x):0;return a&&(h=Math.cos(Math.PI/2+n)*a,o=Math.cos(-n)*a,r.p0=oe(oe({},e),{},{x:e.x+h,y:e.y+o}),r.p1=oe(oe({},i),{},{x:i.x+h,y:i.y+o})),{offset:s+=t,segment:r,rotation:n}}measureText(t,e){var r=this["measuresCache"],e=e||this.getText();if(r.has(e))return r.get(e);t=this.measureTargetText(t,e);return r.set(e,t),t}setTextData(n){if(!this.glyphInfo){var t=this.getText(),s=t.split(""),a=t.split(" ").length-1,e=this.parent.getAttribute("dx").split().map(t=>t.getPixels("x")),o=this.parent.getAttribute("dy").getPixels("y"),h=this.parent.getStyle("text-anchor").getString("start"),r=this.getStyle("letter-spacing"),i=this.parent.getStyle("letter-spacing"),u=0,l=(r.hasValue()&&"inherit"!==r.getValue()?r.hasValue()&&"initial"!==r.getValue()&&"unset"!==r.getValue()&&(u=r.getPixels()):u=i.getPixels(),[]),c=t.length;this.letterSpacingCache=l;for(var g=0;g<c;g++)l.push(void 0!==e[g]?e[g]:u);var r=l.reduce((t,e,r)=>0!==r&&t+e||0,0),i=this.measureText(n),p=Math.max(i+r,0),f=(this.textWidth=i,this.textHeight=this.getFontSize(),this.glyphInfo=[],this.getPathLength()),t=this.getStyle("startOffset").getNumber(0)*f,d="end"!==h&&"right"!==h?"middle"!==h&&"center"!==h?0:-p/2:-p;d+=t,s.forEach((t,e)=>{var{offset:t,segment:r,rotation:i}=this.findSegmentToFitChar(n,h,p,f,a,d,o,t,e);d=t,r.p0&&r.p1&&this.glyphInfo.push({text:s[e],p0:r.p0,p1:r.p1,rotation:i})})}}parsePathData(t){if(this.pathLength=-1,!t)return[];var e=[],r=t["pathParser"];for(r.reset();!r.isEnd();){var i=r["current"],n=i?i.x:0,i=i?i.y:0,s=r.next(),a=s.type,o=[];switch(s.type){case w.MOVE_TO:this.pathM(r,o);break;case w.LINE_TO:a=this.pathL(r,o);break;case w.HORIZ_LINE_TO:a=this.pathH(r,o);break;case w.VERT_LINE_TO:a=this.pathV(r,o);break;case w.CURVE_TO:this.pathC(r,o);break;case w.SMOOTH_CURVE_TO:a=this.pathS(r,o);break;case w.QUAD_TO:this.pathQ(r,o);break;case w.SMOOTH_QUAD_TO:a=this.pathT(r,o);break;case w.ARC:o=this.pathA(r);break;case w.CLOSE_PATH:T.pathZ(r)}s.type!==w.CLOSE_PATH?e.push({type:a,points:o,start:{x:n,y:i},pathLength:this.calcLength(n,i,a,o)}):e.push({type:w.CLOSE_PATH,points:[],pathLength:0})}return e}pathM(t,e){var{x:t,y:r}=T.pathM(t).point;e.push(t,r)}pathL(t,e){var{x:t,y:r}=T.pathL(t).point;return e.push(t,r),w.LINE_TO}pathH(t,e){var{x:t,y:r}=T.pathH(t).point;return e.push(t,r),w.LINE_TO}pathV(t,e){var{x:t,y:r}=T.pathV(t).point;return e.push(t,r),w.LINE_TO}pathC(t,e){var{point:t,controlPoint:r,currentPoint:i}=T.pathC(t);e.push(t.x,t.y,r.x,r.y,i.x,i.y)}pathS(t,e){var{point:t,controlPoint:r,currentPoint:i}=T.pathS(t);return e.push(t.x,t.y,r.x,r.y,i.x,i.y),w.CURVE_TO}pathQ(t,e){var{controlPoint:t,currentPoint:r}=T.pathQ(t);e.push(t.x,t.y,r.x,r.y)}pathT(t,e){var{controlPoint:t,currentPoint:r}=T.pathT(t);return e.push(t.x,t.y,r.x,r.y),w.QUAD_TO}pathA(t){var{rX:t,rY:e,sweepFlag:r,xAxisRotation:i,centp:n,a1:s,ad:a}=T.pathA(t);return 0===r&&0<a&&(a-=2*Math.PI),1===r&&a<0&&(a+=2*Math.PI),[n.x,n.y,t,e,s,a,i,r]}calcLength(t,e,r,i){var n=0,s=null,a=null,o=0;switch(r){case w.LINE_TO:return this.getLineLength(t,e,i[0],i[1]);case w.CURVE_TO:for(s=this.getPointOnCubicBezier(n=0,t,e,i[0],i[1],i[2],i[3],i[4],i[5]),o=.01;o<=1;o+=.01)a=this.getPointOnCubicBezier(o,t,e,i[0],i[1],i[2],i[3],i[4],i[5]),n+=this.getLineLength(s.x,s.y,a.x,a.y),s=a;return n;case w.QUAD_TO:for(s=this.getPointOnQuadraticBezier(n=0,t,e,i[0],i[1],i[2],i[3]),o=.01;o<=1;o+=.01)a=this.getPointOnQuadraticBezier(o,t,e,i[0],i[1],i[2],i[3]),n+=this.getLineLength(s.x,s.y,a.x,a.y),s=a;return n;case w.ARC:var n=0,h=i[4],u=i[5],l=i[4]+u,c=Math.PI/180;if(Math.abs(h-l)<c&&(c=Math.abs(h-l)),s=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],h,0),u<0)for(o=h-c;l<o;o-=c)a=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],o,0),n+=this.getLineLength(s.x,s.y,a.x,a.y),s=a;else for(o=h+c;o<l;o+=c)a=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],o,0),n+=this.getLineLength(s.x,s.y,a.x,a.y),s=a;return a=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],l,0),n+=this.getLineLength(s.x,s.y,a.x,a.y)}return 0}getPointOnLine(t,e,r,i,n){var s=5<arguments.length&&void 0!==arguments[5]?arguments[5]:e,a=6<arguments.length&&void 0!==arguments[6]?arguments[6]:r,o=(n-r)/(i-e+p),h=Math.sqrt(t*t/(1+o*o)),u=(i<e&&(h*=-1),o*h),l=null;if(i===e)l={x:s,y:a+u};else if((a-r)/(s-e+p)==o)l={x:s+h,y:a+u};else{var c=this.getLineLength(e,r,i,n);if(c<p)return null;var g=(s-e)*(i-e)+(a-r)*(n-r),c=this.getLineLength(s,a,s=e+(g/=c*c)*(i-e),a=r+g*(n-r)),g=Math.sqrt(t*t-c*c),h=Math.sqrt(g*g/(1+o*o));i<e&&(h*=-1),l={x:s+h,y:a+(u=o*h)}}return l}getPointOnPath(t){var e=this.getPathLength(),r=0,i=null;if(t<-5e-5||e<t-5e-5)return null;var n,e=this["dataArray"];for(n of e){if(!n||!(n.pathLength<5e-5||r+n.pathLength+5e-5<t)){var s=t-r,a=0;switch(n.type){case w.LINE_TO:i=this.getPointOnLine(s,n.start.x,n.start.y,n.points[0],n.points[1],n.start.x,n.start.y);break;case w.ARC:var o=n.points[4],h=n.points[5],u=n.points[4]+h,a=o+s/n.pathLength*h;if(h<0&&a<u||0<=h&&u<a)break;i=this.getPointOnEllipticalArc(n.points[0],n.points[1],n.points[2],n.points[3],a,n.points[6]);break;case w.CURVE_TO:1<(a=s/n.pathLength)&&(a=1),i=this.getPointOnCubicBezier(a,n.start.x,n.start.y,n.points[0],n.points[1],n.points[2],n.points[3],n.points[4],n.points[5]);break;case w.QUAD_TO:1<(a=s/n.pathLength)&&(a=1),i=this.getPointOnQuadraticBezier(a,n.start.x,n.start.y,n.points[0],n.points[1],n.points[2],n.points[3])}if(i)return i;break}r+=n.pathLength}return null}getLineLength(t,e,r,i){return Math.sqrt((r-t)*(r-t)+(i-e)*(i-e))}getPathLength(){return-1===this.pathLength&&(this.pathLength=this.dataArray.reduce((t,e)=>0<e.pathLength?t+e.pathLength:t,0)),this.pathLength}getPointOnCubicBezier(t,e,r,i,n,s,a,o,h){return{x:o*wt(t)+s*St(t)+i*Tt(t)+e*At(t),y:h*wt(t)+a*St(t)+n*Tt(t)+r*At(t)}}getPointOnQuadraticBezier(t,e,r,i,n,s,a){return{x:s*Ot(t)+i*Ct(t)+e*Pt(t),y:a*Ot(t)+n*Ct(t)+r*Pt(t)}}getPointOnEllipticalArc(t,e,r,i,n,s){var a=Math.cos(s),s=Math.sin(s),r=r*Math.cos(n),i=i*Math.sin(n);return{x:t+(r*a-i*s),y:e+(r*s+i*a)}}buildEquidistantCache(t,e){var r=this.getPathLength(),i=e||.25,n=t||r/100;if(!this.equidistantCache||this.equidistantCache.step!==n||this.equidistantCache.precision!==i){this.equidistantCache={step:n,precision:i,points:[]};for(var s=0,a=0;a<=r;a+=i){var o=this.getPointOnPath(a),h=this.getPointOnPath(a+i);o&&h&&n<=(s+=this.getLineLength(o.x,o.y,h.x,h.y))&&(this.equidistantCache.points.push({x:o.x,y:o.y,distance:a}),s-=n)}}}getEquidistantPointOnPath(t,e,r){if(this.buildEquidistantCache(e,r),t<0||5e-5<t-this.getPathLength())return null;e=Math.round(t/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[e]||null}}var ue=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class le extends S{constructor(t,e,r){super(t,e,r),this.type="image",this.loaded=!1;e=this.getHrefAttribute().getString();e&&(r=e.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(e),t.images.push(this),r?this.loadSvg(e):this.loadImage(e),this.isSvg=r)}loadImage(e){var r=this;return s(function*(){try{var t=yield r.document.createImage(e);r.image=t}catch(t){}r.loaded=!0})()}loadSvg(i){var n=this;return s(function*(){var t=ue.exec(i);if(t){var e=t[5];"base64"===t[4]?n.image=atob(e):n.image=decodeURIComponent(e)}else try{var r=yield(yield n.document.fetch(i)).text();n.image=r}catch(t){}n.loaded=!0})()}renderChildren(t){var{document:e,image:r,loaded:i}=this,n=this.getAttribute("x").getPixels("x"),s=this.getAttribute("y").getPixels("y"),a=this.getStyle("width").getPixels("x"),o=this.getStyle("height").getPixels("y");i&&r&&a&&o&&(t.save(),t.translate(n,s),this.isSvg?((i=e.canvg.forkString(t,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:a,scaleHeight:o})).document.documentElement.parent=this,i.render()):(r=this.image,e.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:a,desiredWidth:r.width,height:o,desiredHeight:r.height}),this.loaded&&(void 0===r.complete||r.complete)&&t.drawImage(r,0,0)),t.restore())}getBoundingBox(){var t=this.getAttribute("x").getPixels("x"),e=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),i=this.getStyle("height").getPixels("y");return new m(t,e,t+r,e+i)}}class ce extends S{constructor(){super(...arguments),this.type="symbol"}render(t){}}class ge{constructor(t){this.document=t,this.loaded=!1,t.fonts.push(this)}load(r,i){var n=this;return s(function*(){try{var e=n["document"],t=(yield e.canvg.parser.load(i)).getElementsByTagName("font");Array.from(t).forEach(t=>{t=e.createElement(t);e.definitions[r]=t})}catch(t){}n.loaded=!0})()}}class pe extends c{constructor(o,t,e){super(o,t,e),this.type="style",x(Array.from(t.childNodes).map(t=>t.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}").forEach(t=>{var e,a,t=t.trim();t&&(e=(t=t.split("{"))[0].split(","),a=t[1].split(";"),e.forEach(t=>{var i,e,r,n,s,t=t.trim();t&&(i=o.styles[t]||{},a.forEach(t=>{var e=t.indexOf(":"),r=t.substr(0,e).trim(),t=t.substr(e+1,t.length-e).trim();r&&t&&(i[r]=new b(o,r,t))}),o.styles[t]=i,o.stylesSpecificity[t]=(r=[0,0,0],e=(e=t).replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),n=0,[e,n]=u(e,ht),r[1]+=n,[e,n]=u(e,ut),r[0]+=n,[e,n]=u(e,lt),r[1]+=n,[e,n]=u(e,ct),r[2]+=n,[e,n]=u(e,gt),r[1]+=n,[e,n]=u(e,pt),r[1]+=n,e=e.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[e,n]=u(e,ft),r[2]+=n,r.join("")),"@font-face"===t&&(s=i["font-family"].getString().replace(/"|'/g,""),i.src.getString().split(",").forEach(t=>{0<t.indexOf('format("svg")')&&((t=ot(t))&&new ge(o).load(s,t))})))}))})}}pe.parseExternalUrl=ot;class fe extends S{constructor(){super(...arguments),this.type="use"}setContext(t){super.setContext(t);var e=this.getAttribute("x"),r=this.getAttribute("y");e.hasValue()&&t.translate(e.getPixels("x"),0),r.hasValue()&&t.translate(0,r.getPixels("y"))}path(t){var e=this["element"];e&&e.path(t)}renderChildren(t){var e,r,{document:i,element:n}=this;n&&("symbol"===(e=n).type&&((e=new O(i,null)).attributes.viewBox=new b(i,"viewBox",n.getAttribute("viewBox").getString()),e.attributes.preserveAspectRatio=new b(i,"preserveAspectRatio",n.getAttribute("preserveAspectRatio").getString()),e.attributes.overflow=new b(i,"overflow",n.getAttribute("overflow").getString()),e.children=n.children,n.styles.opacity=new b(i,"opacity",this.calculateOpacity())),"svg"===e.type&&(n=this.getStyle("width",!1,!0),r=this.getStyle("height",!1,!0),n.hasValue()&&(e.attributes.width=new b(i,"width",n.getString())),r.hasValue()&&(e.attributes.height=new b(i,"height",r.getString()))),n=e.parent,e.parent=this,e.render(t),e.parent=n)}getBoundingBox(t){var e=this["element"];return e?e.getBoundingBox(t):null}elementTransform(){var{document:t,element:e}=this;return l.fromElement(t,e)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function de(t,e,r,i,n,s){return t[r*i*4+4*e+s]}function ye(t,e,r,i,n,s,a){t[r*i*4+4*e+s]=a}function P(t,e,r){return t[e]*r}function E(t,e,r,i){return e+Math.cos(t)*r+Math.sin(t)*i}class ve extends c{constructor(t,e,r){super(t,e,r),this.type="feColorMatrix";var i=d(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":var n=i[0],i=[.213+.787*n,.715-.715*n,.072-.072*n,0,0,.213-.213*n,.715+.285*n,.072-.072*n,0,0,.213-.213*n,.715-.715*n,.072+.928*n,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":n=i[0]*Math.PI/180;i=[E(n,.213,.787,-.213),E(n,.715,-.715,-.715),E(n,.072,-.072,.928),0,0,E(n,.213,-.213,.143),E(n,.715,.285,.14),E(n,.072,-.072,-.283),0,0,E(n,.213,-.213,-.787),E(n,.715,-.715,.715),E(n,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1]}this.matrix=i,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(t,e,r,i,n){for(var{includeOpacity:s,matrix:a}=this,o=t.getImageData(0,0,i,n),h=0;h<n;h++)for(var u=0;u<i;u++){var l=de(o.data,u,h,i,0,0),c=de(o.data,u,h,i,0,1),g=de(o.data,u,h,i,0,2),p=de(o.data,u,h,i,0,3),f=P(a,0,l)+P(a,1,c)+P(a,2,g)+P(a,3,p)+P(a,4,1),d=P(a,5,l)+P(a,6,c)+P(a,7,g)+P(a,8,p)+P(a,9,1),y=P(a,10,l)+P(a,11,c)+P(a,12,g)+P(a,13,p)+P(a,14,1),l=P(a,15,l)+P(a,16,c)+P(a,17,g)+P(a,18,p)+P(a,19,1);s&&(y=d=f=0,l*=p/255),ye(o.data,u,h,i,0,0,f),ye(o.data,u,h,i,0,1,d),ye(o.data,u,h,i,0,2,y),ye(o.data,u,h,i,0,3,l)}t.clearRect(0,0,i,n),t.putImageData(o,0,0)}}class me extends c{constructor(){super(...arguments),this.type="mask"}apply(e,t){var r,i=this["document"],n=this.getAttribute("x").getPixels("x"),s=this.getAttribute("y").getPixels("y"),a=this.getStyle("width").getPixels("x"),o=this.getStyle("height").getPixels("y"),h=(a||o||(r=new m,this.children.forEach(t=>{r.addBoundingBox(t.getBoundingBox(e))}),n=Math.floor(r.x1),s=Math.floor(r.y1),a=Math.floor(r.width),o=Math.floor(r.height)),this.removeStyles(t,me.ignoreStyles)),u=i.createCanvas(n+a,s+o),l=u.getContext("2d"),c=(i.screen.setDefaults(l),this.renderChildren(l),new ve(i,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(l,0,0,n+a,s+o),i.createCanvas(n+a,s+o)),g=c.getContext("2d");i.screen.setDefaults(g),t.render(g),g.globalCompositeOperation="destination-in",g.fillStyle=l.createPattern(u,"no-repeat"),g.fillRect(0,0,n+a,s+o),e.fillStyle=g.createPattern(c,"no-repeat"),e.fillRect(0,0,n+a,s+o),this.restoreStyles(t,h)}render(t){}}me.ignoreStyles=["mask","transform","clip-path"];var xe=()=>{};class be extends c{constructor(){super(...arguments),this.type="clipPath"}apply(r){var i=this["document"],n=Reflect.getPrototypeOf(r),{beginPath:t,closePath:s}=r;n&&(n.beginPath=xe,n.closePath=xe),Reflect.apply(t,r,[]),this.children.forEach(t=>{var e;void 0!==t.path&&((e=(e=void 0!==t.elementTransform?t.elementTransform():null)||l.fromElement(i,t))&&e.apply(r),t.path(r),n&&(n.closePath=s),e&&e.unapply(r))}),Reflect.apply(s,r,[]),r.clip(),n&&(n.beginPath=t,n.closePath=s)}render(t){}}class we extends c{constructor(){super(...arguments),this.type="filter"}apply(t,e){var r,i,n,s,a,o,h,u,{document:l,children:c}=this,g=e.getBoundingBox(t);g&&(i=r=0,c.forEach(t=>{t=t.extraFilterDistance||0;r=Math.max(r,t),i=Math.max(i,t)}),o=Math.floor(g.width),a=Math.floor(g.height),s=a+2*i,(n=o+2*r)<1||s<1||(a=Math.floor(g.x),o=Math.floor(g.y),g=this.removeStyles(e,we.ignoreStyles),h=l.createCanvas(n,s),u=h.getContext("2d"),l.screen.setDefaults(u),u.translate(-a+r,-o+i),e.render(u),c.forEach(t=>{"function"==typeof t.apply&&t.apply(u,0,0,n,s)}),t.drawImage(h,0,0,n,s,a-r,o-i,n,s),this.restoreStyles(e,g)))}render(t){}}we.ignoreStyles=["filter","transform","clip-path"];class Se extends c{constructor(t,e,r){super(t,e,r),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(t,e,r,i,n){}}class Te extends c{constructor(){super(...arguments),this.type="feMorphology"}apply(t,e,r,i,n){}}class Ae extends c{constructor(){super(...arguments),this.type="feComposite"}apply(t,e,r,i,n){}}class Oe extends c{constructor(t,e,r){super(t,e,r),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(t,e,r,i,n){var{document:s,blurRadius:a}=this,o=s.window?s.window.document.body:null,t=t.canvas;t.id=s.getUniqueId(),o&&(t.style.display="none",o.appendChild(t)),st(t,e,r,i,n,a),o&&o.removeChild(t)}}class Ce extends c{constructor(){super(...arguments),this.type="title"}}class Pe extends c{constructor(){super(...arguments),this.type="desc"}}e={svg:O,rect:Ut,circle:Xt,ellipse:Yt,line:$t,polyline:qt,polygon:class extends qt{constructor(){super(...arguments),this.type="polygon"}path(t){var e=super.path(t),[{x:r,y:i}]=this.points;return t&&(t.lineTo(r,i),t.closePath()),e}},path:T,pattern:Wt,marker:Gt,defs:Qt,linearGradient:class extends Kt{constructor(t,e,r){super(t,e,r),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(t,e){var r="objectBoundingBox"===this.getGradientUnits(),e=r?e.getBoundingBox(t):null;if(r&&!e)return null;this.getAttribute("x1").hasValue()||this.getAttribute("y1").hasValue()||this.getAttribute("x2").hasValue()||this.getAttribute("y2").hasValue()||(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var i=r?e.x+e.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),n=r?e.y+e.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),s=r?e.x+e.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),r=r?e.y+e.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return i===s&&n===r?null:t.createLinearGradient(i,n,s,r)}},radialGradient:class extends Kt{constructor(t,e,r){super(t,e,r),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(t,e){var r="objectBoundingBox"===this.getGradientUnits(),e=e.getBoundingBox(t);if(r&&!e)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var i=r?e.x+e.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),n=r?e.y+e.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),s=i,a=n,r=(this.getAttribute("fx").hasValue()&&(s=r?e.x+e.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(a=r?e.y+e.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y")),r?(e.width+e.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels()),e=this.getAttribute("fr").getPixels();return t.createRadialGradient(s,a,e,i,n,r)}},stop:Jt,animate:te,animateColor:class extends te{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var t,e,{progress:r,from:i,to:n}=this.getProgress(),i=new z(i.getColor()),n=new z(n.getColor());return i.ok&&n.ok?(t=i.r+(n.r-i.r)*r,e=i.g+(n.g-i.g)*r,n=i.b+(n.b-i.b)*r,"rgb(".concat(Math.floor(t),", ").concat(Math.floor(e),", ").concat(Math.floor(n),")")):this.getAttribute("from").getColor()}},animateTransform:class extends te{constructor(){super(...arguments),this.type="animateTransform"}calcValue(){var{progress:r,from:t,to:e}=this.getProgress(),t=d(t.getString()),i=d(e.getString());return t.map((t,e)=>{return t+(i[e]-t)*r}).join(" ")}},font:ee,"font-face":re,"missing-glyph":ie,glyph:Bt,text:A,tspan:Ft,tref:ne,a:se,textPath:he,image:le,g:Zt,symbol:ce,style:pe,use:fe,mask:me,clipPath:be,filter:we,feDropShadow:Se,feMorphology:Te,feComposite:Ae,feColorMatrix:ve,feGaussianBlur:Oe,title:Ce,desc:Pe};function Ee(e,t){var r,i=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,r)),i}function Me(){return(Me=s(function*(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=document.createElement("img");return t&&(r.crossOrigin="Anonymous"),new Promise((t,s)=>{r.onload=()=>{t(r)},r.onerror=(t,e,r,i,n)=>{s(n)},r.src=e})})).apply(this,arguments)}class M{constructor(t){var{rootEmSize:e=12,emSize:r=12,createCanvas:i=M.createCanvas,createImage:n=M.createImage,anonymousCrossOrigin:s}=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};this.canvg=t,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=t.screen,this.rootEmSize=e,this.emSize=r,this.createCanvas=i,this.createImage=this.bindCreateImage(n,s),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(r,i){return"boolean"==typeof i?(t,e)=>r(t,"boolean"==typeof e?e:i):r}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var t=this["emSizeStack"];return t[t.length-1]}set emSize(t){var e=this["emSizeStack"];e.push(t)}popEmSize(){var t=this["emSizeStack"];t.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(t=>t.loaded)}isFontsLoaded(){return this.fonts.every(t=>t.loaded)}createDocumentElement(t){t=this.createElement(t.documentElement);return t.root=!0,t.addStylesFromStyleDefinition(),this.documentElement=t}createElement(t){var e=t.nodeName.replace(/^[^:]+:/,""),e=M.elementTypes[e];return new(void 0!==e?e:jt)(this,t)}createTextNode(t){return new Ht(this,t)}setViewBox(t){this.screen.setViewBox(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ee(Object(r),!0).forEach(function(t){D(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ee(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({document:this},t))}}function Ne(e,t){var r,i=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,r)),i}function N(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(r),!0).forEach(function(t){D(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ne(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}M.createCanvas=function(t,e){var r=document.createElement("canvas");return r.width=t,r.height=e,r},M.createImage=function(t){return Me.apply(this,arguments)},M.elementTypes=e;class R{constructor(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},t=(this.parser=new It(r),this.screen=new _t(t,r),this.options=r,new M(this,r)),r=t.createDocumentElement(e);this.document=t,this.documentElement=r}static from(r,i){var n=arguments;return s(function*(){var t=2<n.length&&void 0!==n[2]?n[2]:{},e=yield new It(t).parse(i);return new R(r,e,t)})()}static fromString(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},e=new It(r).parseFromString(e);return new R(t,e,r)}fork(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return R.from(t,e,N(N({},this.options),r))}forkString(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return R.fromString(t,e,N(N({},this.options),r))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var t=arguments,e=this;return s(function*(){e.start(N({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},0<t.length&&void 0!==t[0]?t[0]:{})),yield e.ready(),e.stop()})()}start(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},{documentElement:e,screen:r,options:i}=this;r.start(e,N(N({enableRedraw:!0},i),t))}stop(){this.screen.stop()}resize(t){this.documentElement.resize(t,1<arguments.length&&void 0!==arguments[1]?arguments[1]:t,2<arguments.length&&void 0!==arguments[2]&&arguments[2])}}let Re='<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">',_=40,V=document,k,_e,I,Ve,ke,Ie;function Le(){k=1e4,_e=1e4,I=1e4,Ve=1e4,ke=0,Ie=0}function De(){var r=V.querySelectorAll(".box > grp, root");let e="";for(let e=0;e<r.length;e++){let t=r[e];var i=t.getBoundingClientRect(),n=t.offsetTop,s=n+i.height,a=t.offsetLeft,i=a+i.width;n<k&&(k=n),s>_e&&(_e=s),a<I&&(I=a),i>Ve&&(Ve=i)}for(let t=0;t<r.length;t++){var o=r[t];"ROOT"!==o.tagName&&(e+=function(t){let e=t.querySelectorAll("tpc"),r=t.offsetTop-k,i=t.offsetLeft-I,s="",n=t.querySelector(".svg3rd");s=(s+=`<g transform="translate(${i+_}, ${r+_})">`)+(n?n.innerHTML:"");for(let t=0;t<e.length;t++){let n=e[t];var a=n.parentNode,o=n.nodeObj;if(!o.root){var h=n.getBoundingClientRect(),u=a.offsetTop,l=a.offsetLeft,c=getComputedStyle(n),a=getComputedStyle(a),g=l+parseInt(a.paddingLeft)+parseInt(c.paddingLeft),p=u+parseInt(a.paddingTop)+parseInt(c.paddingTop)+parseInt(c.fontSize);let t="",e=("0px"!=c.borderWidth&&(t=`<rect x="${l+15}" y="${u}" rx="5px" ry="5px" width="${h.width}" height="${h.height}" style="fill: rgba(0,0,0,0); stroke:#444;stroke-width:1px;"></rect>`),""),r=("rgba(0, 0, 0, 0)"!=c.backgroundColor&&(e=`<rect x="${l+15}" y="${u}" rx="5px" ry="5px" width="${h.width}" height="${h.height}" style="fill: ${c.backgroundColor};"></rect>`),"");if(o.tags&&o.tags.length){var f=n.querySelectorAll(".tags > span");for(let e=0;e<f.length;e++){let t=f[e];var d=t.getBoundingClientRect();r+=`<rect x="${g}" y="${p+4}" rx="5px" ry="5px" width="${d.width}" height="${d.height}" style="fill: #d6f0f8;"></rect>
|
|
2
|
+
<text font-family="微软雅黑" font-size="12px" fill="#276f86" x="${g+4}" y="${p+4+12}">${t.innerHTML}</text>`}}let i="";if(o.icons&&o.icons.length){var y=n.querySelectorAll(".icons > span");for(let e=0;e<y.length;e++){let t=y[e];t.getBoundingClientRect();i+=`
|
|
3
|
+
<tspan>${t.innerHTML}</tspan>`}}s+=`<g id="${o.id}">
|
|
4
|
+
${t}
|
|
5
|
+
${e}
|
|
6
|
+
<text x="${g}" y="${p}" text-anchor="start" align="top" anchor="start" font-family="微软雅黑" font-size="${c.fontSize}" font-weight="${c.fontWeight}" fill="${c.color}">
|
|
7
|
+
${o.topic}
|
|
8
|
+
${i}
|
|
9
|
+
</text>
|
|
10
|
+
${r}
|
|
11
|
+
</g>`}}return s+="</g>"}(o))}e+=function(){let t=V.querySelector("root"),e=V.querySelector("root > tpc"),r=e.getBoundingClientRect(),i=V.querySelector("root > tpc").nodeObj,n=t.offsetTop-k,s=t.offsetLeft-I,a=V.querySelector(".svg2nd"),o=`<g transform="translate(${_-I}, ${_-k})">${a.innerHTML}</g>`;return o+`<g id="root" transform="translate(${s+_}, ${n+_})">
|
|
12
|
+
<rect x="0" y="0" rx="5px" ry="5px" width="${r.width}" height="${r.height}" style="fill: #00aaff;"></rect>
|
|
13
|
+
<text x="15" y="35" text-anchor="start" align="top" anchor="start" font-family="微软雅黑" font-size="25px" font-weight="normal" fill="#ffffff">
|
|
14
|
+
${i.topic}
|
|
15
|
+
</text>
|
|
16
|
+
</g>`}(),ke=_e-k+2*_,Ie=Ve-I+2*_;let t=function(t,e){let r=document.createElementNS("http://www.w3.org/2000/svg","svg");return r.setAttribute("height",t),r.setAttribute("width",e),r.setAttribute("xmlns","http://www.w3.org/2000/svg"),r.setAttribute("version","1.2"),r.setAttribute("xlink","http://www.w3.org/1999/xlink"),r}(ke,Ie);return e=`<rect x="0" y="0" width="${Ie}" height="${ke}" fill="#f6f6f6"></rect>`+e,t.innerHTML=e,t}function je(){return V.querySelector("root > tpc").innerText}const ze={exportSvg:function(t,e){if(!t)throw new Error("Mind-elixir instance is not presented. ---\x3e exportSvg(instance, fileName)");Le(),V=t.container;let r=De();t=URL.createObjectURL(new Blob([Re+r.outerHTML.replace(/ /g," ")]));let i=document.createElement("a");i.href=t,i.download=(e||je())+".svg",i.click()},exportPng:async function(t,e){if(!t)throw new Error("Mind-elixir instance is not presented. ---\x3e exportSvg(instance, fileName)");Le(),V=t.container;let r=De();const i=document.createElement("canvas");i.style.display="none";t=i.getContext("2d");let n=await R.fromString(t,Re+r.outerHTML.replace(/ /g," "));n.start();t=i.toDataURL("image/png");let s=document.createElement("a");s.href=t,s.download=e||je()+".png",s.click()}}})(),Fe.default;function Be(t){var e=i[t];if(void 0!==e)return e.exports;e=i[t]={exports:{}};return r[t].call(e.exports,e,e.exports,Be),e.exports}var r,i,Fe});
|