@polyv/live-watch-ai-ui 1.0.0-rc-20250724.1
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/live-watch-ai-ui.cjs.js +8 -0
- package/live-watch-ai-ui.es.d.ts +44 -0
- package/live-watch-ai-ui.es.js +19242 -0
- package/live-watch-ai-ui.umd.js +9 -0
- package/package.json +26 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var p=document.createElement("style");p.appendChild(document.createTextNode('@charset "UTF-8";.plv-polyv-ui-empty-css{font-size:14px}.plv-click-out-side{display:none}.plv-popper{position:fixed;border:1px solid #e5e5e5;font-size:14px;background:#fff;border-radius:2px}.plv-popper .popper__arrow,.plv-popper .popper__arrow:after{position:absolute;display:block;width:0;height:0;border-color:#0000;border-style:solid}.plv-popper .popper__arrow{border-width:6px}.plv-popper .popper__arrow:after{content:" ";border-width:6px}.plv-popper[x-placement^=top]{margin-bottom:9px}.plv-popper[x-placement^=top] .popper__arrow{bottom:-7px;border-top-color:#e5e5e5;border-bottom-width:0}.plv-popper[x-placement^=top] .popper__arrow:after{bottom:1.5px;margin-left:-6px;border-top-color:#fff;border-bottom-width:0}.plv-popper[x-placement^=bottom]{margin-top:9px}.plv-popper[x-placement^=bottom] .popper__arrow{top:-7px;border-top-width:0;border-bottom-color:#e5e5e5}.plv-popper[x-placement^=bottom] .popper__arrow:after{top:1.5px;margin-left:-6px;border-top-width:0;border-bottom-color:#fff}.plv-popper[x-placement=bottom-start] .popper__arrow,.plv-popper[x-placement=top-start] .popper__arrow{margin-left:-13px}.plv-popper[x-placement=bottom] .popper__arrow,.plv-popper[x-placement=top] .popper__arrow{left:50%!important;margin-left:-6px}.plv-popper[x-placement=bottom-end] .popper__arrow,.plv-popper[x-placement=top-end] .popper__arrow{margin-left:-13px}.plv-popper[x-placement^=right]{margin-left:9px}.plv-popper[x-placement^=right] .popper__arrow{left:-7px;border-right-color:#e5e5e5;border-left-width:0}.plv-popper[x-placement^=right] .popper__arrow:after{bottom:-6px;left:1.5px;border-right-color:#fff;border-left-width:0}.plv-popper[x-placement^=left]{margin-right:9px}.plv-popper[x-placement^=left] .popper__arrow{right:-7px;border-right-width:0;border-left-color:#e5e5e5}.plv-popper[x-placement^=left] .popper__arrow:after{right:1.5px;bottom:-6px;margin-left:-6px;border-right-width:0;border-left-color:#fff}.plv-popper[x-placement=left] .popper__arrow,.plv-popper[x-placement=right] .popper__arrow{top:50%!important;margin-top:-6px}.plv-popper[x-placement=left-end] .popper__arrow,.plv-popper[x-placement=left-start] .popper__arrow,.plv-popper[x-placement=right-end] .popper__arrow,.plv-popper[x-placement=right-start] .popper__arrow{margin-top:-11px}.plv-popper.plv-popper--dark{border:none;background:#0a0a11cc;color:#fff}.plv-popper.plv-popper--dark .popper__arrow:after{display:none}.plv-popper.plv-popper--dark[x-placement^=bottom] .popper__arrow{top:-4px!important;border-bottom-color:#0a0a11cc}.plv-popper.plv-popper--dark[x-placement^=top] .popper__arrow{bottom:-4px;border-top-color:#0a0a11cc}.plv-popper.plv-popper--dark[x-placement^=left] .popper__arrow{right:-4px;border-left-color:#0a0a11cc}.plv-popper.plv-popper--dark[x-placement^=right] .popper__arrow{left:-4px;border-right-color:#0a0a11cc}.plv-ai-playback-outline{width:100%;height:100%;overflow:hidden}.plv-ai-playback-outline__content{width:100%;height:100%;overflow-y:auto;box-sizing:border-box;padding:16px;position:relative}.plv-ai-playback-outline__content::-webkit-scrollbar{display:none}.plv-ai-playback-outline--color .plv-ai-playback-outline__content{background:#202127}.plv-ai-playback-outline__title{padding:10px 0;font-size:16px;font-weight:700;line-height:24px;display:flex;align-items:center;justify-content:space-between}.plv-ai-playback-outline--color .plv-ai-playback-outline__title{color:#fff}.plv-ai-playback-outline__min-map{display:flex;align-items:center;gap:4px;font-size:14px;cursor:pointer;-webkit-tap-highlight-color:transparent}.plv-ai-playback-outline__min-map span{display:flex;font-size:14px}.plv-ai-playback-outline__abstract{position:relative;box-sizing:border-box;padding:12px;margin-bottom:10px;border-radius:4px;font-size:14px;line-height:22px}.plv-ai-playback-outline--color .plv-ai-playback-outline__abstract{background:#ffffff1a;color:#fffc}.plv-ai-playback-outline__abstract-footer{text-align:right;cursor:pointer;-webkit-tap-highlight-color:transparent;line-height:22px}.plv-ai-playback-outline--color .plv-ai-playback-outline__abstract-footer{color:#3f76fc}.plv-ai-playback-outline__summary{padding:12px;font-size:14px;line-height:17px;border-radius:4px}.plv-ai-playback-outline--color .plv-ai-playback-outline__summary{background:#ffffff1a;color:#fffc}.plv-ai-playback-outline--color .plv-ai-playback-outline__summary-item{border-color:#ffffff1a}.plv-ai-playback-outline__summary-item+.plv-ai-playback-outline__summary-item{margin-top:12px;padding-top:12px;border-top-width:1px;border-top-style:solid}.plv-ai-playback-outline__summary-item-title{white-space:nowrap;display:flex;align-items:center;gap:8px;margin-bottom:8px}.plv-ai-playback-outline__summary-item-title-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}.plv-ai-playback-outline__summary-item-time{line-height:20px;cursor:pointer;border-bottom:1px solid currentColor;-webkit-tap-highlight-color:transparent}.plv-ai-playback-outline--color .plv-ai-playback-outline__summary-item-time{color:#5394f6}.plv-ai-playback-outline__summary-item__children{line-height:22px}.plv-ai-playback-outline__empty{position:absolute;top:50%;left:50%;width:146px;font-size:14px;transform:translate(-50%,-100px);white-space:nowrap;display:flex;flex-direction:column;align-items:center;justify-content:center}.plv-ai-playback-outline--color .plv-ai-playback-outline__empty{color:#fffc}.plv-ai-playback-outline__empty__icon{width:26px;height:18px;margin-bottom:15px}.plv-ai-outline-mind-map__control{position:absolute;bottom:10px;left:50%;transform:translate(-50%);width:140px;height:32px;padding:0 20px;cursor:pointer;-webkit-tap-highlight-color:transparent}.plv-ai-outline-mind-map__control .track{position:relative;height:100%}.plv-ai-outline-mind-map__control .track-line{position:absolute;top:50%;right:0;left:0;height:2px;background:#e0e0e0;transform:translateY(-50%)}.plv-ai-outline-mind-map__control .slider-thumb{position:absolute;top:50%;width:12px;height:12px;background:#fff;border:1px solid #bdbdbd;border-radius:50%;box-shadow:0 2px 4px #0003;transition:transform .2s ease,box-shadow .2s ease;transform:translate(-50%,-50%)}.plv-ai-outline-mind-map__control .slider-thumb.dragging{box-shadow:0 4px 8px #0003;transform:translate(-50%,-50%) scale(1.2)}.plv-ai-outline-mind-map__control .symbol{position:absolute;top:50%;font-size:20px;color:#757575;user-select:none;transition:color .2s ease;transform:translateY(-50%)}.plv-ai-outline-mind-map__control .minus{left:0}.plv-ai-outline-mind-map__control .plus{right:0}.plv-ai-outline-mind-map__control .slider-container:hover .track-line{background:#bdbdbd}.plv-ai-outline-mind-map__control .slider-container:hover .symbol{color:#fff}.plv-ai-outline-mind-map__control .slider-thumb:hover{transform:translate(-50%,-50%) scale(1.1)}.plv-ai-outline-mind-map{position:fixed;top:0;left:0;width:100%;height:100%;z-index:9999;background:#0000004d;display:flex;align-items:center;justify-content:center}.plv-ai-outline-mind-map__content{width:90%;max-width:738px;height:90%;max-height:420px;background:#36373d;border:1px solid #fff;position:relative}.plv-ai-outline-mind-map__content-mind-map{width:100%;height:100%}.plv-ai-outline-mind-map__close{position:absolute;top:0;right:0;width:48px;height:48px;font-size:20px;display:flex;align-items:center;justify-content:center;cursor:pointer;-webkit-tap-highlight-color:transparent;color:#999}')),document.head.appendChild(p)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}}();
|
|
2
|
+
"use strict";var t=Object.defineProperty,e=Object.defineProperties,i=Object.getOwnPropertyDescriptors,n=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,o=Math.pow,a=(e,i,n)=>i in e?t(e,i,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[i]=n,h=(t,e)=>{for(var i in e||(e={}))s.call(e,i)&&a(t,i,e[i]);if(n)for(var i of n(e))r.call(e,i)&&a(t,i,e[i]);return t},d=(t,n)=>e(t,i(n)),l=(t,e,i)=>a(t,"symbol"!=typeof e?e+"":e,i),c=(t,e,i)=>new Promise(((n,s)=>{var r=t=>{try{a(i.next(t))}catch(e){s(e)}},o=t=>{try{a(i.throw(t))}catch(e){s(e)}},a=t=>t.done?n(t.value):Promise.resolve(t.value).then(r,o);a((i=i.apply(t,e)).next())}));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("vue");
|
|
3
|
+
/*!
|
|
4
|
+
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
7
|
+
* Released under the MIT License.
|
|
8
|
+
*/function p(t){return"[object Object]"===Object.prototype.toString.call(t)}function m(){return m=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},m.apply(this,arguments)}function f(t,e){if(null==t)return{};var i,n,s={},r=Object.keys(t);for(n=0;n<r.length;n++)e.indexOf(i=r[n])>=0||(s[i]=t[i]);return s}const g={silent:!1,logLevel:"warn"},y=["validator"],x=Object.prototype,v=x.toString,w=x.hasOwnProperty,_=/^\s*function (\w+)/;function E(t){var e;const i=null!==(e=null==t?void 0:t.type)&&void 0!==e?e:t;if(i){const t=i.toString().match(_);return t?t[1]:""}return""}const M=function(t){var e,i;return!1!==p(t)&&(void 0===(e=t.constructor)||!1!==p(i=e.prototype)&&!1!==i.hasOwnProperty("isPrototypeOf"))},b=t=>t;let N=b;if("production"!=={}.NODE_ENV){const t="undefined"!=typeof console;N=t?function(t,e=g.logLevel){!1===g.silent&&console[e](`[VueTypes warn]: ${t}`)}:b}const C=(t,e)=>w.call(t,e),T=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},L=Array.isArray||function(t){return"[object Array]"===v.call(t)},S=t=>"[object Function]"===v.call(t),D=t=>M(t)&&C(t,"_vueTypes_name"),O=t=>M(t)&&(C(t,"type")||["_vueTypes_name","validator","default","required"].some((e=>C(t,e))));function A(t,e){return Object.defineProperty(t.bind(e),"__original",{value:t})}function R(t,e,i=!1){let n,s=!0,r="";n=M(t)?t:{type:t};const o=D(n)?n._vueTypes_name+" - ":"";if(O(n)&&null!==n.type){if(void 0===n.type||!0===n.type)return s;if(!n.required&&void 0===e)return s;L(n.type)?(s=n.type.some((t=>!0===R(t,e,!0))),r=n.type.map((t=>E(t))).join(" or ")):(r=E(n),s="Array"===r?L(e):"Object"===r?M(e):"String"===r||"Number"===r||"Boolean"===r||"Function"===r?function(t){if(null==t)return"";const e=t.constructor.toString().match(_);return e?e[1]:""}(e)===r:e instanceof n.type)}if(!s){const t=`${o}value "${e}" should be of type "${r}"`;return!1===i?(N(t),!1):t}if(C(n,"validator")&&S(n.validator)){const t=N,r=[];if(N=t=>{r.push(t)},s=n.validator(e),N=t,!s){const t=(r.length>1?"* ":"")+r.join("\n* ");return r.length=0,!1===i?(N(t),s):t}}return s}function z(t,e){const i=Object.defineProperties(e,{_vueTypes_name:{value:t,writable:!0},isRequired:{get(){return this.required=!0,this}},def:{value(t){return void 0===t?(C(this,"default")&&delete this.default,this):S(t)||!0===R(this,t,!0)?(this.default=L(t)?()=>[...t]:M(t)?()=>Object.assign({},t):t,this):(N(`${this._vueTypes_name} - invalid default value: "${t}"`),this)}}}),{validator:n}=i;return S(n)&&(i.validator=A(n,i)),i}function I(t,e){const i=z(t,e);return Object.defineProperty(i,"validate",{value(t){return S(this.validator)&&N(`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:\n${JSON.stringify(this)}`),this.validator=A(t,this),this}})}function F(t,e,i){const n=function(t){const e={};return Object.getOwnPropertyNames(t).forEach((i=>{e[i]=Object.getOwnPropertyDescriptor(t,i)})),Object.defineProperties({},e)}(e);if(n._vueTypes_name=t,!M(i))return n;const{validator:s}=i,r=f(i,y);if(S(s)){let{validator:t}=n;t&&(t=null!==(a=(o=t).__original)&&void 0!==a?a:o),n.validator=A(t?function(e){return t.call(this,e)&&s.call(this,e)}:s,n)}var o,a;return Object.assign(n,r)}function k(t){return t.replace(/^(?!\s*$)/gm," ")}const P=()=>I("any",{}),B=()=>I("function",{type:Function}),H=()=>I("boolean",{type:Boolean}),$=()=>I("string",{type:String}),G=()=>I("number",{type:Number}),U=()=>I("array",{type:Array}),j=()=>I("object",{type:Object});function W(t,e="custom validation failed"){if("function"!=typeof t)throw new TypeError("[VueTypes error]: You must provide a function as argument");return z(t.name||"<<anonymous function>>",{type:null,validator(i){const n=t(i);return n||N(`${this._vueTypes_name} - ${e}`),n}})}function Y(t){if(!L(t))throw new TypeError("[VueTypes error]: You must provide an array as argument.");const e=`oneOf - value should be one of "${t.join('", "')}".`,i=t.reduce(((t,e)=>{if(null!=e){const i=e.constructor;-1===t.indexOf(i)&&t.push(i)}return t}),[]);return z("oneOf",{type:i.length>0?i:void 0,validator(i){const n=-1!==t.indexOf(i);return n||N(e),n}})}function V(t){if(!L(t))throw new TypeError("[VueTypes error]: You must provide an array as argument");let e=!1,i=[];for(let s=0;s<t.length;s+=1){const n=t[s];if(O(n)){if(D(n)&&"oneOf"===n._vueTypes_name&&n.type){i=i.concat(n.type);continue}if(S(n.validator)&&(e=!0),!0===n.type||!n.type){N('oneOfType - invalid usage of "true" or "null" as types.');continue}i=i.concat(n.type)}else i.push(n)}i=i.filter(((t,e)=>i.indexOf(t)===e));const n=i.length>0?i:null;return z("oneOfType",e?{type:n,validator(e){const i=[],n=t.some((t=>{const n=R(D(t)&&"oneOf"===t._vueTypes_name?t.type||null:t,e,!0);return"string"==typeof n&&i.push(n),!0===n}));return n||N(`oneOfType - provided value does not match any of the ${i.length} passed-in validators:\n${k(i.join("\n"))}`),n}}:{type:n})}function X(t){return z("arrayOf",{type:Array,validator(e){let i="";const n=e.every((e=>(i=R(t,e,!0),!0===i)));return n||N(`arrayOf - value validation error:\n${k(i)}`),n}})}function Z(t){return z("instanceOf",{type:t})}function K(t){return z("objectOf",{type:Object,validator(e){let i="";const n=Object.keys(e).every((n=>(i=R(t,e[n],!0),!0===i)));return n||N(`objectOf - value validation error:\n${k(i)}`),n}})}function q(t){const e=Object.keys(t),i=e.filter((e=>{var i;return!(null===(i=t[e])||void 0===i||!i.required)})),n=z("shape",{type:Object,validator(n){if(!M(n))return!1;const s=Object.keys(n);if(i.length>0&&i.some((t=>-1===s.indexOf(t)))){const t=i.filter((t=>-1===s.indexOf(t)));return N(1===t.length?`shape - required property "${t[0]}" is not defined.`:`shape - required properties "${t.join('", "')}" are not defined.`),!1}return s.every((i=>{if(-1===e.indexOf(i))return!0===this._vueTypes_isLoose||(N(`shape - shape definition does not include a "${i}" property. Allowed keys: "${e.join('", "')}".`),!1);const s=R(t[i],n[i],!0);return"string"==typeof s&&N(`shape - "${i}" property validation error:\n ${k(s)}`),!0===s}))}});return Object.defineProperty(n,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(n,"loose",{get(){return this._vueTypes_isLoose=!0,this}}),n}const Q=["name","validate","getter"],J=(()=>{var t;return(t=class{static get any(){return P()}static get func(){return B().def(this.defaults.func)}static get bool(){return H().def(this.defaults.bool)}static get string(){return $().def(this.defaults.string)}static get number(){return G().def(this.defaults.number)}static get array(){return U().def(this.defaults.array)}static get object(){return j().def(this.defaults.object)}static get integer(){return z("integer",{type:Number,validator:t=>T(t)}).def(this.defaults.integer)}static get symbol(){return z("symbol",{validator:t=>"symbol"==typeof t})}static get nullable(){return{type:null}}static extend(t){if(L(t))return t.forEach((t=>this.extend(t))),this;const{name:e,validate:i=!1,getter:n=!1}=t,s=f(t,Q);if(C(this,e))throw new TypeError(`[VueTypes error]: Type "${e}" already defined`);const{type:r}=s;if(D(r))return delete s.type,Object.defineProperty(this,e,n?{get:()=>F(e,r,s)}:{value(...t){const i=F(e,r,s);return i.validator&&(i.validator=i.validator.bind(i,...t)),i}});let o;return o=n?{get(){const t=Object.assign({},s);return i?I(e,t):z(e,t)},enumerable:!0}:{value(...t){const n=Object.assign({},s);let r;return r=i?I(e,n):z(e,n),n.validator&&(r.validator=n.validator.bind(r,...t)),r},enumerable:!0},Object.defineProperty(this,e,o)}}).defaults={},t.sensibleDefaults=void 0,t.config=g,t.custom=W,t.oneOf=Y,t.instanceOf=Z,t.oneOfType=V,t.arrayOf=X,t.objectOf=K,t.shape=q,t.utils={validate:(t,e)=>!0===R(e,t,!0),toType:(t,e,i=!1)=>i?I(t,e):z(t,e)},t})();!function(t={func:()=>{},bool:!0,string:"",number:0,array:()=>[],object:()=>({}),integer:0}){var e;(e=class extends J{static get sensibleDefaults(){return m({},this.defaults)}static set sensibleDefaults(e){this.defaults=!1!==e?m({},!0!==e?e:t):{}}}).defaults=m({},t)}();class tt{static get string(){return $().def("")}static get looseString(){return $()}static get number(){return G().def(0)}static get looseNumber(){return G()}static get bool(){return H().def(!0)}static get looseBool(){return V([]).def(void 0)}static get looseElement(){return V([]).def(void 0)}}function et(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}l(tt,"objectType",j),l(tt,"array",(()=>U().def([]))),l(tt,"object",j),l(tt,"func",B),l(tt,"oneOf",Y),l(tt,"oneOfType",V),l(tt,"enum",$),l(tt,"any",P);var it={},nt={};!function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.getColorDescription=t.defaultIconConfig=t.currentColor=void 0,t.currentColor="currentColor",t.defaultIconConfig={size:"1em",type:"outline",strokeLinecap:"round",strokeLinejoin:"round",colors:{outline:{background:"none"},filled:{background:"#FFF"},twoTone:{stroke:"#333",fill:"#2F88FF"},multiColor:{outStroke:"#333",outFill:"#2F88FF",innerStroke:"#FFF",innerFill:"#43CCF8"}}};t.getColorDescription=function(e,i){var n="string"==typeof e?[e]:e||[],s=[t.currentColor,t.currentColor,t.currentColor,t.currentColor];switch(i){case"outline":s[0]="string"==typeof n[0]?n[0]:t.currentColor,s[1]="none",s[2]="string"==typeof n[0]?n[0]:t.currentColor,s[3]="none";break;case"filled":s[0]="string"==typeof n[0]?n[0]:t.currentColor,s[1]="string"==typeof n[0]?n[0]:t.currentColor,s[2]="#FFF",s[3]="#FFF";break;case"two-tone":var r=t.defaultIconConfig.colors.twoTone,o=r.stroke,a=r.fill;s[0]="string"==typeof n[0]?n[0]:o,s[1]="string"==typeof n[1]?n[1]:a,s[2]="string"==typeof n[0]?n[0]:o,s[3]="string"==typeof n[1]?n[1]:a;break;case"multi-color":var h=t.defaultIconConfig.colors.multiColor,d=h.outStroke,l=h.outFill,c=h.innerStroke,u=h.innerFill;s[0]="string"==typeof n[0]?n[0]:d,s[1]="string"==typeof n[1]?n[1]:l,s[2]="string"==typeof n[2]?n[2]:c,s[3]="string"==typeof n[3]?n[3]:u}return s}}(nt);var st={},rt={};Object.defineProperty(rt,"__esModule",{value:!0}),rt.CLASS_NAME_PREFIX=void 0,rt.CLASS_NAME_PREFIX="polyv",Object.defineProperty(st,"__esModule",{value:!0}),st.line2UpperCase=st.createClsName=void 0;var ot=rt;st.createClsName=function(t){return"".concat(ot.CLASS_NAME_PREFIX,"-").concat(t)};st.line2UpperCase=function(t){return t.replace(/(^\w|-\w)/g,(function(t){return t.slice(-1).toUpperCase()}))},Object.defineProperty(it,"__esModule",{value:!0});var at=it.IconBuilder=void 0,ht=nt,dt=st;(at=it.IconBuilder=function(t,e){return{name:t,props:["size","type","color","strokeLinecap","strokeLinejoin"],computed:{renderData:function(){var t=this.color,e=this.type||ht.defaultIconConfig.type,i=this.size||ht.defaultIconConfig.size,n=this.strokeLinecap||ht.defaultIconConfig.strokeLinecap,s=this.strokeLinejoin||ht.defaultIconConfig.strokeLinejoin;return{size:i,colorDesc:(0,ht.getColorDescription)(t,e),strokeLinecap:n,strokeLinejoin:s}}},render:function(i){var n=this.renderData,s=[(0,dt.createClsName)("icon"),(0,dt.createClsName)("icon-".concat(t))],r={};return n.size&&(r.fontSize="".concat(n.size,"px")),i("span",{class:s.join(" "),style:r,on:this.$listeners,attrs:this.$attrs,domProps:{innerHTML:e(n)}})}}})("arrow-down",(t=>`\n<svg\n width="${t.size}"\n height="${t.size}"\n fill="${t.colorDesc[0]}"\n viewBox="0 0 1024 1024"\n>\n <path\n d="M253.44 373.504a31.744 31.744 0 0 1 23.04-10.24c8.789333 0 17.066667 3.669333 23.210667 10.24L501.248 587.946667l198.656-211.541334c12.8-13.568 33.536-13.568 46.336 0 12.8 13.653333 12.8 35.754667 0 49.322667L525.994667 660.309333a31.232 31.232 0 0 1-40.277334 5.034667 32.170667 32.170667 0 0 1-12.117333-8.106667L253.44 422.741333a36.437333 36.437333 0 0 1 0-49.237333z"\n />\n</svg>\n`)),at("arrow-left",(t=>`\n<svg\n width="${t.size}"\n height="${t.size}"\n fill="${t.colorDesc[0]}"\n viewBox="0 0 1024 1024"\n>\n <path\n d="M650.496 253.44a31.744 31.744 0 0 1 10.24 23.04c0 8.78933301-3.669333 17.066667-10.24 23.210667L436.053333 501.24799999l211.541334 198.65600001c13.568 12.8 13.568 33.536 0 46.336-13.653333 12.8-35.754667 12.79999999-49.322667 0L363.690667 525.994667a31.232 31.232 0 0 1-5.034667-40.277334 32.170667 32.170667 0 0 1 8.106667-12.117333L601.258667 253.44a36.437333 36.437333 0 0 1 49.237333 0z"\n />\n</svg>\n`));const lt=at("arrow-right",(t=>`\n<svg\n width="${t.size}"\n height="${t.size}"\n fill="${t.colorDesc[0]}"\n viewBox="0 0 1024 1024"\n>\n <path\n d="M373.504 770.56a31.744 31.744 0 0 1-10.24-23.04c0-8.78933301 3.669333-17.066667 10.24-23.210667L587.946667 522.75200001l-211.541334-198.65600001c-13.568-12.8-13.568-33.536 0-46.336 13.653333-12.8 35.754667-12.79999999 49.322667 0L660.309333 498.005333a31.232 31.232 0 0 1 5.034667 40.277334 32.170667 32.170667 0 0 1-8.106667 12.117333L422.741333 770.56a36.437333 36.437333 0 0 1-49.237333 0z"\n />\n</svg>\n`));at("arrow-up",(t=>`\n<svg\n width="${t.size}"\n height="${t.size}"\n fill="${t.colorDesc[0]}"\n viewBox="0 0 1024 1024"\n>\n <path\n d="M770.56 650.496a31.744 31.744 0 0 1-23.04 10.24c-8.78933301 0-17.066667-3.669333-23.210667-10.24L522.75200001 436.053333l-198.65600001 211.541334c-12.8 13.568-33.536 13.568-46.336 0-12.8-13.653333-12.79999999-35.754667 0-49.322667L498.005333 363.690667a31.232 31.232 0 0 1 40.277334-5.034667 32.170667 32.170667 0 0 1 12.117333 8.106667L770.56 601.258667a36.437333 36.437333 0 0 1 0 49.237333z"\n />\n</svg>\n`));const ct=at("close",(t=>`\n<svg width="${t.size}" height="${t.size}" fill="none" viewBox="0 0 24 24">\n <g>\n <g />\n <g>\n <path\n fill="${t.colorDesc[0]}"\n fill-rule="evenodd"\n d="M13.06067779937744,12.72779953125L18.894417799377443,6.89409953125Q18.99981779937744,6.78860953125,19.05691779937744,6.65077953125Q19.114017799377443,6.51295353125,19.114017799377443,6.36376953125Q19.114017799377443,6.21458553125,19.05691779937744,6.07675653125Q18.99981779937744,5.93892853125,18.894417799377443,5.83343953125Q18.788917799377444,5.72795053125,18.651017799377442,5.67085993125Q18.513217799377443,5.61376953125,18.364017799377443,5.61376953125Q18.214817799377442,5.61376953125,18.077017799377444,5.67085993125Q17.93921779937744,5.72795053125,17.83371779937744,5.83343953125L12.000017799377442,11.667139531250001L6.166317799377442,5.83343953125Q6.114087799377441,5.78120653125,6.052667799377441,5.74016753125Q5.991247799377441,5.69912813125,5.922997799377441,5.67085993125Q5.854753799377441,5.64259163125,5.7823047993774415,5.62818063125Q5.709855799377442,5.6137695661656,5.6359867993774415,5.6137695661656Q5.5621187993774415,5.6137695661656,5.489669799377442,5.62818063125Q5.417219799377442,5.64259163125,5.348974799377442,5.67085993125Q5.280728799377441,5.69912813125,5.2193097993774415,5.74016753125Q5.1578897993774415,5.78120653125,5.105656799377441,5.83343953125Q5.053423799377441,5.88567253125,5.0123847993774415,5.94709153125Q4.971345899377441,6.00851153125,4.943077699377441,6.07675653125Q4.914809399377441,6.14500253125,4.900398399377441,6.21745153125Q4.885987318077442,6.28990053125,4.885987318077442,6.36376953125Q4.885987318077442,6.43763753125,4.900398399377441,6.51008753125Q4.914809399377441,6.58253653125,4.943077699377441,6.65077953125Q4.971345899377441,6.7190295312499995,5.0123847993774415,6.7804495312499995Q5.053423799377441,6.8418695312499995,5.105656799377441,6.89409953125L10.939357799377442,12.72779953125L5.105793799377442,18.56136953125Q5.053560799377442,18.61356953125,5.012521799377441,18.67496953125Q4.971482499377442,18.736469531250002,4.943214099377442,18.80466953125Q4.914945799377441,18.87296953125,4.900534699377442,18.94536953125Q4.886123590377442,19.01786953125,4.886123523377441,19.091669531249998Q4.886123457377441,19.16556953125,4.900534399377442,19.237969531250002Q4.914945399377442,19.31046953125,4.943213599377441,19.37866953125Q4.971481799377441,19.446969531249998,5.012520799377441,19.50836953125Q5.0535597993774415,19.56976953125,5.105792799377442,19.62206953125Q5.158025799377441,19.674269531249998,5.219445799377441,19.71526953125Q5.280864799377442,19.75636953125,5.349110799377441,19.78456953125Q5.417355799377441,19.81286953125,5.489804799377441,19.82726953125Q5.562254799377442,19.841669531249998,5.636122799377441,19.841669531249998Q5.709991799377441,19.841669531249998,5.782440799377442,19.82726953125Q5.854889799377442,19.81286953125,5.923137799377441,19.78456953125Q5.9913777993774415,19.75636953125,6.052797799377442,19.71526953125Q6.114217799377442,19.674269531249998,6.166457799377442,19.62206953125L12.000017799377442,13.78845953125L17.833617799377443,19.62206953125Q17.885817799377442,19.674269531249998,17.94721779937744,19.71526953125Q18.00861779937744,19.75636953125,18.07691779937744,19.78456953125Q18.14511779937744,19.81286953125,18.217617799377443,19.82726953125Q18.29001779937744,19.841669531249998,18.36391779937744,19.841669531249998Q18.43781779937744,19.841669531249998,18.510217799377443,19.82726953125Q18.58271779937744,19.81286953125,18.650917799377442,19.78456953125Q18.719117799377443,19.75636953125,18.780617799377442,19.71526953125Q18.84201779937744,19.674269531249998,18.894217799377444,19.62206953125Q18.94651779937744,19.56976953125,18.987517799377443,19.50836953125Q19.02851779937744,19.446969531249998,19.05681779937744,19.37866953125Q19.085117799377443,19.31046953125,19.09951779937744,19.237969531250002Q19.11391779937744,19.16556953125,19.11391779937744,19.091669531249998Q19.11391779937744,19.01786953125,19.09951779937744,18.94536953125Q19.085117799377443,18.87296953125,19.05681779937744,18.80466953125Q19.02851779937744,18.736469531250002,18.987517799377443,18.67496953125Q18.94651779937744,18.61356953125,18.894217799377444,18.56136953125L13.06067779937744,12.72779953125Z"\n />\n </g>\n </g>\n</svg>\n`)),ut={"base.packUp":"Pack up","base.spreadOut":"Open","ai.summary.desc":"Abstract","ai.summary.mind":"Mind map","ai.summary.sum":"Segmented summary","ai.summary.init":"Analysis, please be patient","ai.summary.empty":"No data available, please try again later","ai.summary.redirect.tip":"Click to jump to {content}"},pt={zh_CN:{"base.packUp":"收起","base.spreadOut":"展开","ai.summary.desc":"摘要","ai.summary.mind":"思维导图","ai.summary.sum":"分段总结","ai.summary.init":"分析中,请耐心等待","ai.summary.empty":"暂无数据,请稍后再试","ai.summary.redirect.tip":"点击跳转至 {content}"},en:ut,ja:{"base.packUp":"折りたたむ","base.spreadOut":"展開する","ai.summary.desc":"要約","ai.summary.mind":"マインドマップ","ai.summary.sum":"セクションごとの要約","ai.summary.init":"分析中です。しばらくお待ちください。","ai.summary.empty":"データがありません。しばらくしてからもう一度お試しください。","ai.summary.redirect.tip":"{content} に移動するにはクリックしてください"},ko:{"base.packUp":"접기","base.spreadOut":"펼치기","ai.summary.desc":"요약","ai.summary.mind":"마인드맵","ai.summary.sum":"단락 요약","ai.summary.init":"분석 중입니다. 잠시만 기다려 주세요.","ai.summary.empty":"데이터가 없습니다. 나중에 다시 시도해 주세요.","ai.summary.redirect.tip":"{content} 로 이동하려면 클릭하세요"},ru:{"base.packUp":"Свернуть","base.spreadOut":"Развернуть","ai.summary.desc":"Резюме","ai.summary.mind":"Карта мыслей","ai.summary.sum":"Сводка по разделам","ai.summary.init":"Анализ... Пожалуйста, подождите","ai.summary.empty":"Нет данных. Пожалуйста, попробуйте позже","ai.summary.redirect.tip":"Нажмите, чтобы перейти к {content}"},zh_TW:{"base.packUp":"收合","base.spreadOut":"展開","ai.summary.desc":"摘要","ai.summary.mind":"心智圖","ai.summary.sum":"分段摘要","ai.summary.init":"分析中,請耐心等待","ai.summary.empty":"暫無資料,請稍後再試","ai.summary.redirect.tip":"點擊跳轉至 {content}"}};const mt=et(function(t){var e={};function i(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)i.d(n,s,function(e){return t[e]}.bind(null,s));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=100)}({0:function(t,e,i){function n(t,e,i,n,s,r,o,a){var h,d="function"==typeof t?t.options:t;if(e&&(d.render=e,d.staticRenderFns=i,d._compiled=!0),n&&(d.functional=!0),r&&(d._scopeId="data-v-"+r),o?(h=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},d._ssrRegister=h):s&&(h=a?function(){s.call(this,this.$root.$options.shadowRoot)}:s),h)if(d.functional){d._injectStyles=h;var l=d.render;d.render=function(t,e){return h.call(e),l(t,e)}}else{var c=d.beforeCreate;d.beforeCreate=c?[].concat(c,h):[h]}return{exports:t,options:d}}i.d(e,"a",(function(){return n}))},100:function(t,e,i){i.r(e);var n=i(2),s=i.n(n),r=i(20),o=i(33),a={name:"plv-popper",mixins:[r.a],directives:{clickOutSide:o.default},props:{visible:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},content:String,visibleArrow:{type:Boolean,default:!0},popperPadding:{type:String,default:"10px 8px"},clearStyle:{type:Boolean,default:!1},popperClassName:{type:String,default:""},theme:{type:String,default:""},beforeClickOpen:Function},computed:{popperStyle:function(){return this.clearStyle?{}:{padding:this.popperPadding}}},model:{prop:"visible"},watch:{visible:{immediate:!0,handler:function(t){this.showPopper=t}},showPopper:function(t){this.$emit("input",t)}},methods:{doToggle:function(){this.showPopper=!this.showPopper},doShow:function(){this.showPopper=!0},doClose:function(){this.showPopper=!1},handleClick:function(){return s.a.async((function(t){for(;;)switch(t.prev=t.next){case 0:if("click"!==this.trigger){t.next=5;break}if(this.showPopper||"function"!=typeof this.beforeClickOpen){t.next=4;break}return t.next=4,s.a.awrap(this.beforeClickOpen());case 4:this.doToggle();case 5:case"end":return t.stop()}}),null,this)},handleClickOutSide:function(){"click"===this.trigger&&this.doClose()},handleMouseEnter:function(){var t=this;"hover"===this.trigger&&(clearTimeout(this._timer),this.hoverOpenDelay?this._timer=setTimeout((function(){t.showPopper=!0}),this.hoverOpenDelay):this.showPopper=!0)},handleMouseLeave:function(){var t=this;"hover"===this.trigger&&(clearTimeout(this._timer),this.hoverCloseDelay?this._timer=setTimeout((function(){t.showPopper=!1}),this.hoverCloseDelay):this.showPopper=!1)}},mounted:function(){var t,e;this.$slots.reference&&this.$slots.reference[0]&&(t=this.$slots.reference[0].elm),this.$refs.popper&&(e=this.$refs.popper),this.initPopper(t,e)}},h=(i(195),i(0)),d=Object(h.a)(a,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("span",{directives:[{name:"click-out-side",rawName:"v-click-out-side",value:t.handleClickOutSide,expression:"handleClickOutSide"}],on:{click:t.handleClick,mouseenter:t.handleMouseEnter,mouseleave:t.handleMouseLeave}},[i("transition",t._g({attrs:{name:t.transition}},t.$listeners),[i("div",{directives:[{name:"show",rawName:"v-show",value:t.showPopper&&!t.disabled,expression:"showPopper && !disabled"}],ref:"popper",class:[t.clearStyle?"":"plv-popper",t.theme?"plv-popper--"+t.theme:"",t.popperClassName],style:t.popperStyle,on:{mouseenter:t.handleMouseEnter,mouseleave:t.handleMouseLeave}},[t._t("default",[t._v(t._s(t.content))])],2)]),t._v(" "),t._t("reference")],2)}),[],!1,null,null,null).exports;d.install=function(t){t.component(d.name,d)},e.default=d},11:function(t,e){t.exports=function(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t},t.exports.default=t.exports,t.exports.__esModule=!0},14:function(t,e,i){i.r(e),i(41);var n="@@polyvAdminUIzIndex",s={ctx:n,openPopper:function(t){s.zIndex++,t.style.zIndex=s.zIndex},install:function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).defaultZIndex,i=void 0===e?3e3:e;window[n]=i}};Object.defineProperty(s,"zIndex",{configurable:!0,get:function(){return window[n]||(window[n]=3e3),window[n]},set:function(t){window[n]=t}}),e.default=s},195:function(t,e,i){var n=i(97);i.n(n).a},2:function(t,e,i){t.exports=i(24)},20:function(t,e,i){var n=i(11),s=i.n(n),r=i(3),o=i.n(r),a=i(14);function h(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}var d=o.a.prototype.$isServer,l=d?function(){}:i(50).default;e.a={props:{trigger:{type:String,default:"click",validator:function(t){return-1!==["click","hover","custom"].indexOf(t)}},placement:{type:String,default:"bottom",validator:function(t){return-1!==["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"].indexOf(t)}},offset:{type:Number,default:0},transition:{type:String,default:"plv-fade-in-linear"},hoverOpenDelay:{type:Number,default:0},hoverCloseDelay:{type:Number,default:300},visibleArrow:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!0}},data:function(){return{popperElm:null,referenceElm:null,showPopper:!1,popperJS:null,defaultPopperOptions:{gpuAcceleration:!1}}},watch:{showPopper:function(t){this.disabled||this.readonly||(t&&this.updatePopper(),t?this.$emit("show-popper"):this.$emit("hidden-popper"))}},methods:{initPopper:function(t,e){d||(this.referenceElm=t,this.popperElm=e,this.appendToBody&&document.body.appendChild(e))},createPopper:function(){var t=this;if(!d&&/^(top|bottom|left|right)(-start|-end)?$/g.test(this.placement)){var e=this.popperElm,i=this.referenceElm;if(e&&i){this.visibleArrow&&this.appendArrow(e),this.popperJS&&"function"==typeof this.popperJS.destroy&&this.popperJS.destroy();var n=function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?h(i,!0).forEach((function(e){s()(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):h(i).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({},this.defaultPopperOptions,{placement:this.placement,offset:this.offset});this.popperJS=new l(i,e,n),this.popperJS.onCreate((function(e){t.resetTransformOrigin(e),t.$emit("created",t)}))}}},updatePopper:function(){d||(this.popperJS?this.popperJS.update():this.createPopper(),a.default.openPopper(this.popperElm))},appendArrow:function(t){if(!d&&!this.appended){this.appended=!0;var e=document.createElement("div");e.setAttribute("x-arrow",""),e.className="popper__arrow",t.appendChild(e)}},doDestroy:function(){d||(this.popperJS._popper.removeEventListener("transitionend",this.doDestroy),this.popperJS.destroy(),this.popperJS=null)},destroyPopper:function(){d||this.popperJS&&(this.resetTransformOrigin(this.popperJS),this.transition?this.popperJS._popper.addEventListener("transitionend",this.doDestroy):this.doDestroy())},resetTransformOrigin:function(t){if(!d){var e=t._popper.getAttribute("x-placement").split("-")[0],i={top:"bottom",bottom:"top",left:"right",right:"left"}[e];t._popper.style.transformOrigin=["top","bottom"].indexOf(e)>-1?"center ".concat(i):"".concat(i," center")}},destroyPopperDom:function(){d||(this.popperJS&&this.popperJS.destroy(),this.appendToBody&&this.popperElm.parentNode===document.body&&document.body.removeChild(this.popperElm))}},beforeDestroy:function(){this.destroyPopperDom()},deactivated:function(){this.destroyPopperDom()}}},24:function(t,e,i){var n=function(t){var e,i=Object.prototype,n=i.hasOwnProperty,s="function"==typeof Symbol?Symbol:{},r=s.iterator||"@@iterator",o=s.asyncIterator||"@@asyncIterator",a=s.toStringTag||"@@toStringTag";function h(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(O){h=function(t,e,i){return t[e]=i}}function d(t,e,i,n){var s=e&&e.prototype instanceof g?e:g,r=Object.create(s.prototype),o=new L(n||[]);return r._invoke=function(t,e,i){var n=c;return function(s,r){if(n===p)throw new Error("Generator is already running");if(n===m){if("throw"===s)throw r;return D()}for(i.method=s,i.arg=r;;){var o=i.delegate;if(o){var a=N(o,i);if(a){if(a===f)continue;return a}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(n===c)throw n=m,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);n=p;var h=l(t,e,i);if("normal"===h.type){if(n=i.done?m:u,h.arg===f)continue;return{value:h.arg,done:i.done}}"throw"===h.type&&(n=m,i.method="throw",i.arg=h.arg)}}}(t,i,o),r}function l(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(n){return{type:"throw",arg:n}}}t.wrap=d;var c="suspendedStart",u="suspendedYield",p="executing",m="completed",f={};function g(){}function y(){}function x(){}var v={};h(v,r,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(S([])));_&&_!==i&&n.call(_,r)&&(v=_);var E=x.prototype=g.prototype=Object.create(v);function M(t){["next","throw","return"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){var i;this._invoke=function(s,r){function o(){return new e((function(i,o){!function i(s,r,o,a){var h=l(t[s],t,r);if("throw"!==h.type){var d=h.arg,c=d.value;return c&&"object"==typeof c&&n.call(c,"__await")?e.resolve(c.__await).then((function(t){i("next",t,o,a)}),(function(t){i("throw",t,o,a)})):e.resolve(c).then((function(t){d.value=t,o(d)}),(function(t){return i("throw",t,o,a)}))}a(h.arg)}(s,r,i,o)}))}return i=i?i.then(o,o):o()}}function N(t,i){var n=t.iterator[i.method];if(n===e){if(i.delegate=null,"throw"===i.method){if(t.iterator.return&&(i.method="return",i.arg=e,N(t,i),"throw"===i.method))return f;i.method="throw",i.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var s=l(n,t.iterator,i.arg);if("throw"===s.type)return i.method="throw",i.arg=s.arg,i.delegate=null,f;var r=s.arg;return r?r.done?(i[t.resultName]=r.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=e),i.delegate=null,f):r:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,f)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function S(t){if(t){var i=t[r];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var s=-1,o=function i(){for(;++s<t.length;)if(n.call(t,s))return i.value=t[s],i.done=!1,i;return i.value=e,i.done=!0,i};return o.next=o}}return{next:D}}function D(){return{value:e,done:!0}}return y.prototype=x,h(E,"constructor",x),h(x,"constructor",y),y.displayName=h(x,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,h(t,a,"GeneratorFunction")),t.prototype=Object.create(E),t},t.awrap=function(t){return{__await:t}},M(b.prototype),h(b.prototype,o,(function(){return this})),t.AsyncIterator=b,t.async=function(e,i,n,s,r){void 0===r&&(r=Promise);var o=new b(d(e,i,n,s),r);return t.isGeneratorFunction(i)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},M(E),h(E,a,"Generator"),h(E,r,(function(){return this})),h(E,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var i in t)e.push(i);return e.reverse(),function i(){for(;e.length;){var n=e.pop();if(n in t)return i.value=n,i.done=!1,i}return i.done=!0,i}},t.values=S,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var i in this)"t"===i.charAt(0)&&n.call(this,i)&&!isNaN(+i.slice(1))&&(this[i]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var i=this;function s(n,s){return a.type="throw",a.arg=t,i.next=n,s&&(i.method="next",i.arg=e),!!s}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return s("end");if(o.tryLoc<=this.prev){var h=n.call(o,"catchLoc"),d=n.call(o,"finallyLoc");if(h&&d){if(this.prev<o.catchLoc)return s(o.catchLoc,!0);if(this.prev<o.finallyLoc)return s(o.finallyLoc)}else if(h){if(this.prev<o.catchLoc)return s(o.catchLoc,!0)}else{if(!d)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return s(o.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var s=this.tryEntries[i];if(s.tryLoc<=this.prev&&n.call(s,"finallyLoc")&&this.prev<s.finallyLoc){var r=s;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=t,o.arg=e,r?(this.method="next",this.next=r.finallyLoc,f):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),T(i),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var n=i.completion;if("throw"===n.type){var s=n.arg;T(i)}return s}}throw new Error("illegal catch attempt")},delegateYield:function(t,i,n){return this.delegate={iterator:S(t),resultName:i,nextLoc:n},"next"===this.method&&(this.arg=e),f}},t}(t.exports);try{regeneratorRuntime=n}catch(s){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},3:function(t,e){t.exports=u},32:function(t,e,i){var n,s;void 0===(s="function"==typeof(n=function(){var t=window,e={placement:"bottom",gpuAcceleration:!0,offset:0,boundariesElement:"viewport",boundariesPadding:5,preventOverflowOrder:["left","right","top","bottom"],flipBehavior:"flip",arrowElement:"[x-arrow]",arrowOffset:0,modifiers:["shift","offset","preventOverflow","keepTogether","arrow","flip","applyStyle"],modifiersIgnored:[],forceAbsolute:!1};function i(t,i,n){this._reference=t.jquery?t[0]:t,this.state={};var s=null==i,r=i&&"[object Object]"===Object.prototype.toString.call(i);return this._popper=s||r?this.parse(r?i:{}):i.jquery?i[0]:i,this._options=Object.assign({},e,n),this._options.modifiers=this._options.modifiers.map(function(t){if(-1===this._options.modifiersIgnored.indexOf(t))return"applyStyle"===t&&this._popper.setAttribute("x-placement",this._options.placement),this.modifiers[t]||t}.bind(this)),this.state.position=this._getPosition(this._popper,this._reference),l(this._popper,{position:this.state.position,top:0}),this.update(),this._setupEventListeners(),this}function n(e){var i=e.style.display,n=e.style.visibility;e.style.display="block",e.style.visibility="hidden",e.offsetWidth;var s=t.getComputedStyle(e),r=parseFloat(s.marginTop)+parseFloat(s.marginBottom),o=parseFloat(s.marginLeft)+parseFloat(s.marginRight),a={width:e.offsetWidth+o,height:e.offsetHeight+r};return e.style.display=i,e.style.visibility=n,a}function s(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function r(t){var e=Object.assign({},t);return e.right=e.left+e.width,e.bottom=e.top+e.height,e}function o(t,e){var i,n=0;for(i in t){if(t[i]===e)return n;n++}return null}function a(e,i){return t.getComputedStyle(e,null)[i]}function h(e){var i=e.offsetParent;return i!==t.document.body&&i?i:t.document.documentElement}function d(e){var i=e.parentNode;return i?i===t.document?t.document.body.scrollTop||t.document.body.scrollLeft?t.document.body:t.document.documentElement:-1!==["scroll","auto"].indexOf(a(i,"overflow"))||-1!==["scroll","auto"].indexOf(a(i,"overflow-x"))||-1!==["scroll","auto"].indexOf(a(i,"overflow-y"))?i:d(e.parentNode):e}function l(t,e){Object.keys(e).forEach((function(i){var n,s="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&""!==(n=e[i])&&!isNaN(parseFloat(n))&&isFinite(n)&&(s="px"),t.style[i]=e[i]+s}))}function c(t){var e={width:t.offsetWidth,height:t.offsetHeight,left:t.offsetLeft,top:t.offsetTop};return e.right=e.left+e.width,e.bottom=e.top+e.height,e}function u(t){var e=t.getBoundingClientRect(),i=-1!=navigator.userAgent.indexOf("MSIE")&&"HTML"===t.tagName?-t.scrollTop:e.top;return{left:e.left,top:i,right:e.right,bottom:e.bottom,width:e.right-e.left,height:e.bottom-i}}function p(e){for(var i=["","ms","webkit","moz","o"],n=0;n<i.length;n++){var s=i[n]?i[n]+e.charAt(0).toUpperCase()+e.slice(1):e;if(void 0!==t.document.body.style[s])return s}return null}return i.prototype.destroy=function(){return this._popper.removeAttribute("x-placement"),this._popper.style.left="",this._popper.style.position="",this._popper.style.top="",this._popper.style[p("transform")]="",this._removeEventListeners(),this._options.removeOnDestroy&&this._popper.remove(),this},i.prototype.update=function(){var t={instance:this,styles:{}};t.placement=this._options.placement,t._originalPlacement=this._options.placement,t.offsets=this._getOffsets(this._popper,this._reference,t.placement),t.boundaries=this._getBoundaries(t,this._options.boundariesPadding,this._options.boundariesElement),t=this.runModifiers(t,this._options.modifiers),"function"==typeof this.state.updateCallback&&this.state.updateCallback(t)},i.prototype.onCreate=function(t){return t(this),this},i.prototype.onUpdate=function(t){return this.state.updateCallback=t,this},i.prototype.parse=function(e){var i={tagName:"div",classNames:["popper"],attributes:[],parent:t.document.body,content:"",contentType:"text",arrowTagName:"div",arrowClassNames:["popper__arrow"],arrowAttributes:["x-arrow"]};e=Object.assign({},i,e);var n=t.document,s=n.createElement(e.tagName);if(a(s,e.classNames),h(s,e.attributes),"node"===e.contentType?s.appendChild(e.content.jquery?e.content[0]:e.content):"html"===e.contentType?s.innerHTML=e.content:s.textContent=e.content,e.arrowTagName){var r=n.createElement(e.arrowTagName);a(r,e.arrowClassNames),h(r,e.arrowAttributes),s.appendChild(r)}var o=e.parent.jquery?e.parent[0]:e.parent;if("string"==typeof o){if((o=n.querySelectorAll(e.parent)).length>1&&console.warn("WARNING: the given `parent` query("+e.parent+") matched more than one element, the first one will be used"),0===o.length)throw"ERROR: the given `parent` doesn't exists!";o=o[0]}return o.length>1&&o instanceof Element==0&&(console.warn("WARNING: you have passed as parent a list of elements, the first one will be used"),o=o[0]),o.appendChild(s),s;function a(t,e){e.forEach((function(e){t.classList.add(e)}))}function h(t,e){e.forEach((function(e){t.setAttribute(e.split(":")[0],e.split(":")[1]||"")}))}},i.prototype._getPosition=function(e,i){return h(i),this._options.forceAbsolute?"absolute":function e(i){return i!==t.document.body&&("fixed"===a(i,"position")||(i.parentNode?e(i.parentNode):i))}(i)?"fixed":"absolute"},i.prototype._getOffsets=function(t,e,i){i=i.split("-")[0];var s={};s.position=this.state.position;var r="fixed"===s.position,o=function(t,e,i){var n=u(t),s=u(e);if(i){var r=d(e);s.top+=r.scrollTop,s.bottom+=r.scrollTop,s.left+=r.scrollLeft,s.right+=r.scrollLeft}return{top:n.top-s.top,left:n.left-s.left,bottom:n.top-s.top+n.height,right:n.left-s.left+n.width,width:n.width,height:n.height}}(e,h(t),r),a=n(t);return-1!==["right","left"].indexOf(i)?(s.top=o.top+o.height/2-a.height/2,s.left="left"===i?o.left-a.width:o.right):(s.left=o.left+o.width/2-a.width/2,s.top="top"===i?o.top-a.height:o.bottom),s.width=a.width,s.height=a.height,{popper:s,reference:o}},i.prototype._setupEventListeners=function(){if(this.state.updateBound=this.update.bind(this),t.addEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement){var e=d(this._reference);e!==t.document.body&&e!==t.document.documentElement||(e=t),e.addEventListener("scroll",this.state.updateBound),this.state.scrollTarget=e}},i.prototype._removeEventListeners=function(){t.removeEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement&&this.state.scrollTarget&&(this.state.scrollTarget.removeEventListener("scroll",this.state.updateBound),this.state.scrollTarget=null),this.state.updateBound=null},i.prototype._getBoundaries=function(e,i,n){var s,r,o,a={};if("window"===n){var l=t.document.body,u=t.document.documentElement;s=Math.max(l.scrollHeight,l.offsetHeight,u.clientHeight,u.scrollHeight,u.offsetHeight),a={top:0,right:Math.max(l.scrollWidth,l.offsetWidth,u.clientWidth,u.scrollWidth,u.offsetWidth),bottom:s,left:0}}else if("viewport"===n){var p=h(this._popper),m=d(this._popper),f=c(p),g="fixed"===e.offsets.popper.position?0:(r=m)==document.body?Math.max(document.documentElement.scrollTop,document.body.scrollTop):r.scrollTop,y="fixed"===e.offsets.popper.position?0:(o=m)==document.body?Math.max(document.documentElement.scrollLeft,document.body.scrollLeft):o.scrollLeft;a={top:0-(f.top-g),right:t.document.documentElement.clientWidth-(f.left-y),bottom:t.document.documentElement.clientHeight-(f.top-g),left:0-(f.left-y)}}else a=h(this._popper)===n?{top:0,left:0,right:n.clientWidth,bottom:n.clientHeight}:c(n);return a.left+=i,a.right-=i,a.top=a.top+i,a.bottom=a.bottom-i,a},i.prototype.runModifiers=function(t,e,i){var n=e.slice();return void 0!==i&&(n=this._options.modifiers.slice(0,o(this._options.modifiers,i))),n.forEach(function(e){var i;(i=e)&&"[object Function]"==={}.toString.call(i)&&(t=e.call(this,t))}.bind(this)),t},i.prototype.isModifierRequired=function(t,e){var i=o(this._options.modifiers,t);return!!this._options.modifiers.slice(0,i).filter((function(t){return t===e})).length},i.prototype.modifiers={},i.prototype.modifiers.applyStyle=function(t){var e,i={position:t.offsets.popper.position},n=Math.round(t.offsets.popper.left),s=Math.round(t.offsets.popper.top);return this._options.gpuAcceleration&&(e=p("transform"))?(i[e]="translate3d("+n+"px, "+s+"px, 0)",i.top=0,i.left=0):(i.left=n,i.top=s),Object.assign(i,t.styles),l(this._popper,i),this._popper.setAttribute("x-placement",t.placement),this.isModifierRequired(this.modifiers.applyStyle,this.modifiers.arrow)&&t.offsets.arrow&&l(t.arrowElement,t.offsets.arrow),t},i.prototype.modifiers.shift=function(t){var e=t.placement,i=e.split("-")[0],n=e.split("-")[1];if(n){var s=t.offsets.reference,o=r(t.offsets.popper),a={y:{start:{top:s.top},end:{top:s.top+s.height-o.height}},x:{start:{left:s.left},end:{left:s.left+s.width-o.width}}},h=-1!==["bottom","top"].indexOf(i)?"x":"y";t.offsets.popper=Object.assign(o,a[h][n])}return t},i.prototype.modifiers.preventOverflow=function(t){var e=this._options.preventOverflowOrder,i=r(t.offsets.popper),n={left:function(){var e=i.left;return i.left<t.boundaries.left&&(e=Math.max(i.left,t.boundaries.left)),{left:e}},right:function(){var e=i.left;return i.right>t.boundaries.right&&(e=Math.min(i.left,t.boundaries.right-i.width)),{left:e}},top:function(){var e=i.top;return i.top<t.boundaries.top&&(e=Math.max(i.top,t.boundaries.top)),{top:e}},bottom:function(){var e=i.top;return i.bottom>t.boundaries.bottom&&(e=Math.min(i.top,t.boundaries.bottom-i.height)),{top:e}}};return e.forEach((function(e){t.offsets.popper=Object.assign(i,n[e]())})),t},i.prototype.modifiers.keepTogether=function(t){var e=r(t.offsets.popper),i=t.offsets.reference,n=Math.floor;return e.right<n(i.left)&&(t.offsets.popper.left=n(i.left)-e.width),e.left>n(i.right)&&(t.offsets.popper.left=n(i.right)),e.bottom<n(i.top)&&(t.offsets.popper.top=n(i.top)-e.height),e.top>n(i.bottom)&&(t.offsets.popper.top=n(i.bottom)),t},i.prototype.modifiers.flip=function(t){if(!this.isModifierRequired(this.modifiers.flip,this.modifiers.preventOverflow))return console.warn("WARNING: preventOverflow modifier is required by flip modifier in order to work, be sure to include it before flip!"),t;if(t.flipped&&t.placement===t._originalPlacement)return t;var e=t.placement.split("-")[0],i=s(e),n=t.placement.split("-")[1]||"",o=[];return(o="flip"===this._options.flipBehavior?[e,i]:this._options.flipBehavior).forEach(function(a,h){if(e===a&&o.length!==h+1){e=t.placement.split("-")[0],i=s(e);var d=r(t.offsets.popper),l=-1!==["right","bottom"].indexOf(e);(l&&Math.floor(t.offsets.reference[e])>Math.floor(d[i])||!l&&Math.floor(t.offsets.reference[e])<Math.floor(d[i]))&&(t.flipped=!0,t.placement=o[h+1],n&&(t.placement+="-"+n),t.offsets.popper=this._getOffsets(this._popper,this._reference,t.placement).popper,t=this.runModifiers(t,this._options.modifiers,this._flip))}}.bind(this)),t},i.prototype.modifiers.offset=function(t){var e=this._options.offset,i=t.offsets.popper;return-1!==t.placement.indexOf("left")?i.top-=e:-1!==t.placement.indexOf("right")?i.top+=e:-1!==t.placement.indexOf("top")?i.left-=e:-1!==t.placement.indexOf("bottom")&&(i.left+=e),t},i.prototype.modifiers.arrow=function(t){var e=this._options.arrowElement,i=this._options.arrowOffset;if("string"==typeof e&&(e=this._popper.querySelector(e)),!e)return t;if(!this._popper.contains(e))return console.warn("WARNING: `arrowElement` must be child of its popper element!"),t;if(!this.isModifierRequired(this.modifiers.arrow,this.modifiers.keepTogether))return console.warn("WARNING: keepTogether modifier is required by arrow modifier in order to work, be sure to include it before arrow!"),t;var s={},o=t.placement.split("-")[0],a=r(t.offsets.popper),h=t.offsets.reference,d=-1!==["left","right"].indexOf(o),l=d?"height":"width",c=d?"top":"left",u=d?"left":"top",p=d?"bottom":"right",m=n(e)[l];h[p]-m<a[c]&&(t.offsets.popper[c]-=a[c]-(h[p]-m)),h[c]+m>a[p]&&(t.offsets.popper[c]+=h[c]+m-a[p]);var f=h[c]+(i||h[l]/2-m/2)-a[c];return f=Math.max(Math.min(a[l]-m-8,f),8),s[c]=f,s[u]="",t.offsets.arrow=s,t.arrowElement=e,t},Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(t){if(null==t)throw new TypeError("Cannot convert first argument to object");for(var e=Object(t),i=1;i<arguments.length;i++){var n=arguments[i];if(null!=n){n=Object(n);for(var s=Object.keys(n),r=0,o=s.length;r<o;r++){var a=s[r],h=Object.getOwnPropertyDescriptor(n,a);void 0!==h&&h.enumerable&&(e[a]=n[a])}}}return e}}),i})?n.call(e,i,e,t):n)||(t.exports=s)},33:function(t,e,i){i.r(e),i(64);var n="@@plvUIclickOutSideContext",s={name:"click-out-side",bind:function(t,e,i){var s=function(n){var s=n.target;i.context.popperElm&&i.context.popperElm.contains(s)||t.contains(s)||e.value(n)};t[n]=s,document.addEventListener("mouseup",s)},unbind:function(t){document.removeEventListener("mouseup",t[n]),delete t[n]},install:function(t){t.directive(s.name,s)}};e.default=s},41:function(t,e,i){},50:function(t,e,i){i.r(e);var n=i(32),s=i.n(n);e.default=s.a},64:function(t,e,i){},97:function(t,e,i){}}).default);function ft(t,e){let i;return e.some((e=>{let n,s=!1;return e.regExp?(s=e.regExp.test(t),s&&(n=RegExp.$1)):e.keywords?s=function(t,e){t=t.toLowerCase();const i=/[/\s;_-]/,n=/[/\s;_-]/;return e.some((e=>{const s=t.indexOf(e.toLowerCase());if(-1!==s&&(i.test(t[s-1])||0===s)&&(n.test(t[s+e.length])||s+e.length>=t.length))return!0}))}(t,e.keywords):e.modelRegExp&&(s=function(t,e){return!!/;\s*([^;)]*?)(?:\s+Build\/[^;)]+)?(?:;(?:\s*wv)?)?\)/.test(t)&&e.test(RegExp.$1)}(t,e.modelRegExp)),s&&(i={name:e.name,version:n}),s})),i}const gt=[{name:"windows",regExp:/\bWindows\s?NT\s?(([\d.]+))\b/},{name:"ios",regExp:/\bOS(?:\s([\d_.]+))?\slike\sMac\sOS\sX\b/},{name:"macos",regExp:/\bMac\sOS\sX(?:\s([\d_.]+))?/},{name:"openharmony",regExp:/\bOpenHarmony\s([\d.]+)\b/},{name:"android",regExp:/\bAndroid;?(?:[-/\s]([\d.]+))?(?:\b|_)/},{name:"android",regExp:/\bAdr\s([\d.]+)(?:\b|_)/}];class yt{constructor(t){this._ver=(t||"").replace(/_/g,".").replace(/\.+$/,""),Object.freeze(this)}_compare(t,e){if(!this._ver||!t)return!1;const i=Array.isArray(e)?e:[e],n=function(t,e){const i=/(\.0+)+$/,n=String(t).replace(i,"").split("."),s=String(e).replace(i,"").split("."),r=Math.min(n.length,s.length);for(let o=0;o<r;o++){const t=parseInt(n[o])-parseInt(s[o]);if(t)return t}return n.length-s.length}(this._ver,t);return i.some((function(t){return n*t>0||0===n&&0===t}))}gt(t){return this._compare(t,1)}gte(t){return this._compare(t,[1,0])}lt(t){return this._compare(t,-1)}lte(t){return this._compare(t,[-1,0])}eq(t){return this._compare(t,0)}toString(){return this._ver}}const xt={ios:"isIOS",openharmony:"isOpenHarmony",android:"isAndroid",windows:"isWindows",macos:"isMacOS"};class vt{constructor(t,e){var i;let n;if(this.isIOS=!1,this.isAndroid=!1,this.isHarmonyOS=!1,this.isOpenHarmony=!1,this.isWindows=!1,this.isMacOS=!1,null==e?void 0:e.platform){const t=function(t){switch(t){case"Android":return"android";case"iPad":case"iPhone":case"iPod":return"ios";case"MacIntel":return"macos";case"Win32":return"windows"}}(e.platform);void 0!==t&&(n={name:t,version:""})}let s=null!==(i=ft(t,gt))&&void 0!==i?i:n;s?(n&&n.name!==s.name&&(s=n),"macos"===s.name&&(null==e?void 0:e.maxTouchPoints)&&(s.name="ios",s.version=""),this[xt[s.name]]=!0,this.version=new yt(s.version),this.isAndroid&&/\bHarmonyOS\b/.test(t)&&(this.isHarmonyOS=!0),Object.freeze(this)):this.version=Object.freeze(new yt(""))}}const wt=[{name:"ipad",regExp:/iPad/},{name:"ipod",regExp:/iPod/},{name:"iphone",regExp:/iPhone/}],_t=[{name:"huawei",regExp:/\b(?:huawei|honor)/i},{name:"huawei",keywords:["ideahub","figi"]},{name:"vivo",keywords:["vivo"]},{name:"oppo",keywords:["oppo"]},{name:"mi",keywords:["redmi","hongmi","shark","Mi","MIX","POCO"]},{name:"mi",regExp:/\bxiaomi/i},{name:"samsung",keywords:["samsung","galaxy"]},{name:"oneplus",keywords:["oneplus","one"]},{name:"huawei",modelRegExp:/^Mate\s*\d{2}/i},{name:"huawei",modelRegExp:/^MatePad/i},{name:"huawei",modelRegExp:/^Nova\s\d$/},{name:"huawei",regExp:/\b(?:Liantong|UNICOMVSENS)VP\d{3}\b/},{name:"huawei",regExp:/\bCMDCSP\d{3}\b/},{name:"huawei",regExp:/\bTDTECH/i},{name:"huawei",modelRegExp:/^[A-Z]{3}\d?-W[0-3]9[A-Z]*$/},{name:"huawei",modelRegExp:/^[A-Z][A-Za-z]{2,3}-(?:AN|BD|BX|AL|TL)\d{2}[A-Za-z]*$/},{name:"huawei",modelRegExp:/^TYH\d+[A-Z]?$/},{name:"huawei",modelRegExp:/^H60-L0[12]$/},{name:"mi",modelRegExp:/^MI\s?(?:\d|CC|Note|MAX|PLAY|PAD)/i},{name:"mi",modelRegExp:/^(?:AWM|SKR|SKW|DLT)-/},{name:"mi",modelRegExp:/^XIG\d{2}$/},{name:"mi",modelRegExp:/^M\d{4}[A-Z]\d{1,2}[A-Z]{1,3}$/},{name:"mi",modelRegExp:/^2\d{3}[A-Z0-9]{6}$/},{name:"mi",modelRegExp:/^2\d{5}[0-9A-Z]{2}[A-Z]$/},{name:"mi",modelRegExp:/^2\d{6}[A-Z]$/},{name:"mi",modelRegExp:/^2\d{7}[A-Z]{2,3}$/},{name:"samsung",modelRegExp:/^S(?:M|[CGP]H)-[A-Za-z0-9]+$/},{name:"samsung",modelRegExp:/^SCV3\d$/},{name:"samsung",modelRegExp:/^SC-\d{2}[A-Z]$/},{name:"samsung",modelRegExp:/^SH[WV]-/},{name:"samsung",modelRegExp:/^GT[-_][A-Z][A-Z0-9]{3,}$/i},{name:"oppo",modelRegExp:/^(?:CPH|OPD|iPA)\d{4}$/},{name:"oppo",modelRegExp:/^OPG\d{2}$/},{name:"oppo",modelRegExp:/^A10[1-9]OP$/},{name:"oneplus",modelRegExp:/^(?:KB|HD|IN|GM|NE|LE|MT)\d{4}$/},{name:"vivo",modelRegExp:/^V[12]\d{3}[A-Z]{0,2}$/}],Et={ipod:"isIPod",iphone:"isIPhone",ipad:"isIPad",huawei:"isHuawei",mi:"isMi",oppo:"isOppo",vivo:"isVivo",oneplus:"isOnePlus",samsung:"isSamsung"};class Mt{constructor(t,e){let i;if(this.isHuawei=!1,this.isMi=!1,this.isOppo=!1,this.isVivo=!1,this.isOnePlus=!1,this.isSamsung=!1,this.isIPod=!1,this.isIPhone=!1,this.isIPad=!1,this.isMac=!1,this.isApple=!1,e.isIOS?(i=wt,this.isApple=!0):e.isMacOS?(this.isMac=!0,this.isApple=!0):(e.isAndroid||e.isOpenHarmony)&&(i=_t),i){const n=ft(t,i);n?this[Et[n.name]]=!0:e.isIOS&&(this.isIPad=!0)}Object.freeze(this)}}const bt=[{name:"edge",regExp:/\bEdge\/([\d.]+)/},{name:"chrome",regExp:/\b(?:Chrome|CrMo|CriOS)\/([\d.]+)/},{name:"safari",regExp:/\b(?:Version\/([\d.]+).*\s?)?Safari\b/},{name:"ie",regExp:/\bMSIE\s(\d+)/i},{name:"ie",regExp:/\bTrident\/.*;\srv:(\d+)/},{name:"firefox",regExp:/\bFirefox\/([\d.]+)/},{name:"opera-presto",regExp:/\bOpera\/([\d.]+)/}],Nt={chrome:"isChrome",safari:"isSafari",edge:"isEdge",ie:"isIE",firefox:"isFirefox","opera-presto":"isPrestoOpera"};class Ct{constructor(t){this.isChrome=!1,this.isSafari=!1,this.isEdge=!1,this.isIE=!1,this.isFirefox=!1,this.isPrestoOpera=!1;const e=ft(t,bt);e?(this[Nt[e.name]]=!0,this.version=new yt(e.version)):this.version=new yt(""),Object.freeze(this)}}let Tt=[{name:"wxwork",regExp:/\bwxwork\/([\d.]+)/},{name:"wx",regExp:/\bMicroMessenger\/([\d.]+)/},{name:"ding",regExp:/\bDingTalk\/([\d.]+)/},{name:"qq",regExp:/\bQQ\/([\d.]+)/},{name:"qq",regExp:/\bIPadQQ\b/},{name:"weibo",regExp:/(?:\b|_)Weibo(?:\b|_)/i},{name:"edge",regExp:/\bEdge?\/([\d.]+)/},{name:"opera-blink",regExp:/\bOPR\/([\d.]+)/},{name:"qqbrowser",regExp:/\bM?QQBrowser(?:\/([\d.]+))?/i},{name:"ucbrowser",regExp:/\b(?:UCBrowser|UCWEB)(?:-CMCC)?\/?\s?([\d.]+)/},{name:"ucbrowser",regExp:/\bUC\b/},{name:"quark",regExp:/\bQuark\/([\d.]+)/},{name:"maxthon",regExp:/\b(?:Maxthon|MxBrowser)(?:[/\s]([\d.]+))?/},{name:"theworld",regExp:/\bTheWorld(?:\s([\d.]+))?/i},{name:"baidubrowser",regExp:/\b(?:baidubrowser|bdbrowser_i18n|BIDUBrowser)(?:[/\s]([\d.]+))?/i},{name:"baidubrowser",regExp:/\bbaidubrowserpad\b/},{name:"baiduapp",regExp:/\bbaiduboxapp\b\/([\d.]+)?/i},{name:"baiduapp",regExp:/\bbaiduboxpad\b/i}];Tt=Tt.concat(bt);const Lt={wxwork:"isWxWork",wx:"isWx",ding:"isDing",qq:"isQQ",weibo:"isWeibo",edge:"isEdge","opera-blink":"isOpera","opera-presto":"isOpera",qqbrowser:"isQQBrowser",ucbrowser:"isUCBrowser",quark:"isQuark",maxthon:"isMaxthon",theworld:"isTheWorld",baidubrowser:"isBaiduBrowser",baiduapp:"isBaiduApp",chrome:"isChrome",safari:"isSafari",ie:"isIE",firefox:"isFirefox"};class St{constructor(t){this.isWxWork=!1,this.isWx=!1,this.isWxMiniProgram=!1,this.isDing=!1,this.isQQ=!1,this.isWeibo=!1,this.isEdge=!1,this.isOpera=!1,this.isQQBrowser=!1,this.isUCBrowser=!1,this.isQuark=!1,this.isMaxthon=!1,this.isTheWorld=!1,this.isBaiduBrowser=!1,this.isBaiduApp=!1,this.isChrome=!1,this.isSafari=!1,this.isIE=!1,this.isFirefox=!1;const e=ft(t,Tt);e?(this[Lt[e.name]]=!0,this.version=new yt(e.version)):this.version=new yt(""),this.isWxMiniProgram=(this.isWx||this.isWxWork)&&/\bMiniProgramEnv\b/.test(t),Object.freeze(this)}}class Dt{constructor(t,e){this.os=Object.freeze(new vt(t,e)),this.brand=Object.freeze(new Mt(t,this.os)),this.browser=Object.freeze(new Ct(t)),this.client=Object.freeze(new St(t)),this.os.isIOS||this.os.isAndroid?this.isPortable=!0:/\(X11[;)]/i.test(t)||/\b(Windows\sNT|Macintosh)\b/.test(t)?this.isPortable=!1:this.isPortable=/mobile|android/i.test(t),this.isTablet=this.brand.isIPad||/\bTablet\b/i.test(t)||this.os.isAndroid&&!/\bMobile\b/i.test(t),Object.freeze(this)}}let Ot;const At=(Ot||(Ot=Object.freeze("undefined"!=typeof window?new Dt(window.navigator.userAgent,window.navigator):new Dt(""))),Ot).isPortable,Rt=u.defineComponent({__name:"playback-outline",props:d(h({},{lang:tt.string.def("zh_CN")}),{outlineData:tt.object(),showColor:tt.bool.def(!0)}),emits:{"seek-video":()=>!0,"open-mind-map":()=>!0},setup(t,{emit:e}){const i=t,{$t:n}=((t={})=>{const{props:e}=t,i=u.computed((()=>e?e.lang:"zh_CN")),n=u.computed((()=>["zh_CN","zh_TW"].includes(i.value)));function s(t,e,i){return i.replace(new RegExp("\\{"+t+"}","g"),e)}return{currentLang:i,isZhCN:n,$t:function(t,e={}){let n=(pt[i.value]||ut)[t];if(e){const t=Object.keys(e);for(const i of t)n=s(i,e[i].toString(),n)}return n}}})({props:i});const{contentStyle:s,contentRef:r,isMultiLineClamp:o,isExpand:a,toggleExpand:h}=((t=3)=>{const e=u.ref(!1),i=u.ref(!1),n=u.computed((()=>{let i={};return e.value||(i={display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":`${t}`,overflow:"hidden"}),i})),s=u.ref();function r(){if(!s.value)return;const e=s.value;u.nextTick((()=>{const n=parseInt(getComputedStyle(e).lineHeight)*t;i.value=e.scrollHeight>n}))}return u.watch((()=>s.value),(()=>{e.value=!1,r()}),{immediate:!0}),{isExpand:e,contentStyle:n,contentRef:s,isMultiLineClamp:i,computedIsMultiLineClamp:r,toggleExpand:function(t){t.stopPropagation(),e.value=!e.value,e.value||u.nextTick((()=>{r()}))}}})();const d=u.ref("null");return u.watch((()=>i.outlineData),(()=>{i.outlineData?i.outlineData.introduction||0!==i.outlineData.outlineContent.length?d.value="finish":d.value="init":d.value="null"}),{immediate:!0}),{__sfc:!0,props:i,emit:e,$t:n,openMinMap:function(){i.outlineData&&e("open-mind-map",i.outlineData)},contentStyle:s,contentRef:r,isMultiLineClamp:o,isExpand:a,toggleExpand:h,formatTime:function(t){return t.split(",")[0]},onClickTime:function(t){const i=t.split(",")[0];if("00:00:00"===i)return void e("seek-video",0);e("seek-video",(t=>{const[e,i,n]=t.split(":").map(Number);return 3600*e+60*i+n})(i))},outlineStatus:d,AiIconArrowRight:lt,PlvPopper:mt,isMobile:At}}});function zt(t,e,i,n,s,r,o,a){var h="function"==typeof t?t.options:t;return e&&(h.render=e,h.staticRenderFns=i,h._compiled=!0),{exports:t,options:h}}const It=zt(Rt,(function(){var t=this,e=t._self._c,i=t._self._setupProxy;return e("div",{staticClass:"plv-ai-playback-outline",class:{"plv-ai-playback-outline--color":t.showColor}},[e("div",{staticClass:"plv-ai-playback-outline__content"},[t.outlineData&&"finish"===i.outlineStatus?[e("div",{staticClass:"plv-ai-playback-outline__title pws-primary-text-color"},[t._v(" "+t._s(i.$t("ai.summary.desc"))+" "),e("span",{staticClass:"plv-ai-playback-outline__min-map",on:{click:i.openMinMap}},[t._v(" "+t._s(i.$t("ai.summary.mind"))+" "),e(i.AiIconArrowRight)],1)]),e("div",{staticClass:"plv-ai-playback-outline__abstract pws-dark-white-bg-10 pws-light-basic-bg-60 pws-dark-white-color-80 pws-light-black-color-80"},[t.outlineData.introduction?e("div",{ref:"contentRef",style:i.contentStyle},[t._v(" "+t._s(t.outlineData.introduction)+" ")]):t._e(),i.isMultiLineClamp?e("div",{staticClass:"plv-ai-playback-outline__abstract-footer pws-special-text-color",on:{click:i.toggleExpand}},[t._v(" "+t._s(i.isExpand?i.$t("base.packUp"):i.$t("base.spreadOut"))+" ")]):t._e()]),e("div",{staticClass:"plv-ai-playback-outline__title pws-primary-text-color"},[t._v(t._s(i.$t("ai.summary.sum")))]),e("div",{staticClass:"plv-ai-playback-outline__summary pws-dark-white-bg-10 pws-light-basic-bg-60 pws-dark-white-color-80 pws-light-black-color-80"},t._l(t.outlineData.outlineContent,(function(n,s){return e("div",{key:s,staticClass:"plv-ai-playback-outline__summary-item pws-basic-border-color"},[e("div",{staticClass:"plv-ai-playback-outline__summary-item-title"},[e("span",{staticClass:"plv-ai-playback-outline__summary-item-title-text"},[t._v(t._s(n.title))]),e("span",{staticClass:"plv-ai-playback-outline__summary-item-time pws-special-text-color",on:{click:function(t){return i.onClickTime(n.startTime)}}},[i.isMobile?e("div",[t._v(t._s(i.formatTime(n.startTime)))]):e(i.PlvPopper,{attrs:{theme:"dark",trigger:"hover",placement:"bottom"}},[e("div",[t._v(t._s(i.$t("ai.summary.redirect.tip",{content:i.formatTime(n.startTime)})))]),e("div",{attrs:{slot:"reference"},slot:"reference"},[t._v(t._s(i.formatTime(n.startTime)))])])],1)]),t._l(n.summary,(function(i,n){return e("div",{key:`${s}-${n}`,staticClass:"plv-ai-playback-outline__summary-item__children"},[t._v(" "+t._s(n+1)+". "+t._s(i)+" ")])}))],2)})),0)]:t._e(),"finish"!==i.outlineStatus?e("div",{staticClass:"plv-ai-playback-outline__empty"},["init"===i.outlineStatus?e("img",{staticClass:"plv-ai-playback-outline__empty__icon",attrs:{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAAkCAYAAADGrhlwAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAnESURBVFiF1Zndj53XVcZ/a+0z9oztsRMnsdNIVEgojXoRPio3Kopa1WkgTosliEQQF0iAkHLHBXDD3fwBiPtcALcoQqqaksStMCNKSFXJFKIkbalEAsRK23yMscfz4Tnveh4u9nvGM7bHGSdFiD16dc6Z8+699vOuZz1r7XWC/0djednzc+trn5+GHyLyLkdsyXrH4tVf+cqR1wDi/3qT+x3Ly+8eaRsLvyvyOMhFypEy5TJ2TP71ySfnvzH5aRn8/lcvfdEtH4eYSCLaRJKQcWshBZYF5Jbw+c+cPfrtO1k/Nw49VeF7ynIEduBy4cAEloeff/7ctYs/FQ/98G9XPz1U/TGRljF0g3KYlDGWsRNDSgjV3J898uuH3t7P+ufOXT4+V/mHDgS4L1p2S3XvpAy29U5+XDC2cyh+W6Rk5ECVobJNQyZV0ekhUqJvIFr93H5tHBzyASUm0xVpARXpQQBpCQhs8sTHptz3nr/yqyZOOpBsE2kQEVglO7GcVsgtmhSyDLT85H5trFHrBzznMkTDZfr7SA8IAClxkh/LQ2991XdBnnFGYSu76yVQRfeMSClQRGpAFlggw337tbO+fuyiiGsOPC0op510MJGuxELIDB8L0HquPuVgLkAFqkBCtlMCEZ2CESFFbNOvwIN1cnnZ+2LI00/HliP+qYyVWBQaQU2BApxpZ6x+ZECvfu3KQ0V8RoEGYaKDmHnEMSob9hCyLCsxxs4eU6ys3L9fe08+ufAyma8orJlHBiATM8bVMAxvfaQY8pLzVa78piOEsQIc2PRXiE6BGAFEduUDK9JCYMz8/P3Axf3a/bUzC8vPvbj6erT2YKTvojUPxtTAMJl754evLLz+kQC99otrjwXtXtliBEKEjcDp2gbXgchCpAOskE0YMK3t20Oz8fSXF98D3tvr+zsG9IOveXEz1h53Isk40kaYsAACg8b/M/4vHcYVYWEYc5KqPnGn9j9s3DGgjVw7W9JcOuXImf53qilRCpMW/i/MfRAHK8KKGZAwiSVw7l/p/lcA/ctLGz+raf1S5KSMKIC47gVF3yURG8Ohw3+Ra6u/FZP8lCSc29/bYFpa0sFz5y4fP3Pm2MqH2X7xRR9cOc5Bbrjz3asXp3/09M9s3DEgLzm/O934DQXqtEpAqMAtjYUDSGzy/OnTsbl8bvMnUA+6l0TMXgnsXg6hjBNw4zZ3j78+d/UX/nuy8XhcYRLzqQpc6sJy93331V+eX/vW73/p8Heh72pf48Ijq79coRMGleUKy4HckMOSQwprEO+f/878KwCaXlsxyGO9JbAbqsBCdks55k7ezu7SktMHJo8pW+t5R5SATDvTsnJo7dFnL3hu34DeWPYRKx6zQxWW7RFUqCK2E6gjpdQLS0shAM0f+PEArpaqkMt4VstV4AJX+LaAHjx1+dhgHZBgYPTySPeeVJOCydqbFyewT8qtXr16huSAQyJAAQQ9ayZMDTRs+83Hnjz6b7N5m5vz708m6yZkR9oNJI25KnueIk/cznYuHjtStWWHu/jQgQWgBPf8Nszi6EM9dOH5jU/SeBjP6NWzfEUvdRzIRoLaSr+0c+7Zs7EeEes1HikKOVqqn196oi187K+W35rfy/5UW8dEMQCz6iAmPdcBCFDkle0HcDswS0vO6URfqcJT43JqWvIMmHIWGzLwz088sfjujWtUi/dm5xaMp3SqqY20C3yUk/fuCahysaeBTjdn8zACGeheGspX9wXoS5+98lnDvW5Z0bIcKFrWtmeCXkFnW1+bXl6+1RpFrhg8TUYR6CDGqtsF3ijvmWA14UiPHUYg1ct5elFagmy5Ort/zxj6+tffORRun3f0xy+ABqocPwi3HP3ufzx79oH1W60Tke+WZAMjkHEzIsezE7Q9PYR1rKIZquc9wJPmqsLZ16v0NuX2BHQ3x76o5rn+IBsGVAohyH7owcLi0oGFQxf2WudabVxym3OM6qQd31ViKZG1pzAMxBFRdKVuLgqPn00ihOM65W4J6OVvrj3gIR6OCA1WjDXBqEr0Y2MbeVzT5SdOx7DXhlTxAYmr1xO9YmBGnSKimYh79prv0CIGj2A6kIZaEQaRSLW3KCwtObcGPz5FniJ7R45xpNxSU5fLtsL/efbs0R/stRmA7y1cuFRpV9rTtGdCUNHs6AE+ZGvPLvsm2j17wXNlDla2bapevxrKjmBzbWtvUfjC59YeDjhhGOV5h0xbnnVZhlBdc52/HRiApdOnhyJW7F7uDFT3DsUMaGfA1k2AVldXj3kEwwhi9+cuDJ+49+i2KOwC9Nxzby/geLRmHtHYxdkBpJALnOK1p24h07caCn9QxpXZqwPSlb1rY+Nys9BNZ6M2v3hkp1c8GTs+21cDc+2ZUzGdzdkVQ8eP3v1oyQfIFMBgRa+e0wYUCpEGmM4f/s5+wABYcaky3GMhuzAYHGC6fjny7pvmbW0t9sCHSmBQeDIKq0BWRF5PqrsAvfDC1fsd+emxmsZWKNIElMaW8RjQFsHWxu/9zTfXY/b0cPxkav3975w5/KMbNzZkrRCTbap45L9UQTYD2Dfnoog8umW6qtIrhLFp1eNHoODqzjkJsLS0lA1/oVx2oCl4iNxOnhqvsR/Wr+z3KFK0VGWc8CS/fCsPbU5zpXxdDIZR4SrxlGJKMQ0t/PkrXtg5bxq16MlYVbNTELJfmYi2unPOBODUo3/6kDTcE/Qk4yCgev9p5oEESFcoyLSlIMcWkkYqZhy+FaDJPQsf+OrUkkJZELho0IvL0WuQsXkS+I/ZPMXkqMb1I3OXGMxe0+yiXL7xhg806REHVjRtUe5/Y8/YHsWglyne6SXGojPSDmzx5q0APXMq1ge45sTuwtCVrnZL8dbm7opBpcX+sKCkKCkKhVHMJHsrd1Nu8tbF4ZTQQdxEVLg1S4RiPLFEs6NCNBsC0jbBJD2IGPltB8HmdG+haHlpWrofgTLHSrl3TqrN7tGus1ElR7Y9Mupxzd6IEOBhYzegiOFTFqYVRY6bBkcHBiMtEsogKohmS1GZhsQoDP/+B73FdMsxDMMltzwJoOsPgtFkjH2J47P7/+QbPz7s7E+3U/t6htmmXIMDbeHyTju5FV4dAg2znzvCGsIqsCfZu5Qxp2H2E0k0zcp/G1fKFVkVB28r4zV38O1Zye8J26fOAkZaG/LS7P4j3z65YXGtxjidAVCDCkWFArG59LnYHUPT6cK3IieXHGhrlkATK1KDy4pU5Xh8zpQT01KDe5Pczg3wPzxzOt6/HaArf8f3VfG6om1JMOScZ1lfCRX+0dbQXp7dv7QUMtOXHLmqMRd5jKPOiljZnOTzN9r5H8ahyetlclrqAAAAAElFTkSuQmCC"}}):t._e(),t._v(" "+t._s("init"===i.outlineStatus?i.$t("ai.summary.init"):i.$t("ai.summary.empty"))+" ")]):t._e()],2)])}),[]).exports,Ft={CHANGE_THEME:"changeTheme",CHANGE_LAYOUT:"changeLayout",SET_DATA:"setData",MODE:{READONLY:"readonly",EDIT:"edit"},LAYOUT:{LOGICAL_STRUCTURE:"logicalStructure",LOGICAL_STRUCTURE_LEFT:"logicalStructureLeft",MIND_MAP:"mindMap",ORGANIZATION_STRUCTURE:"organizationStructure",CATALOG_ORGANIZATION:"catalogOrganization",TIMELINE:"timeline",TIMELINE2:"timeline2",FISHBONE:"fishbone",VERTICAL_TIMELINE:"verticalTimeline"},DIR:{UP:"up",LEFT:"left",DOWN:"down",RIGHT:"right"},KEY_DIR:{LEFT:"Left",UP:"Up",RIGHT:"Right",DOWN:"Down"},SHAPE:{RECTANGLE:"rectangle",DIAMOND:"diamond",PARALLELOGRAM:"parallelogram",ROUNDED_RECTANGLE:"roundedRectangle",OCTAGONAL_RECTANGLE:"octagonalRectangle",OUTER_TRIANGULAR_RECTANGLE:"outerTriangularRectangle",INNER_TRIANGULAR_RECTANGLE:"innerTriangularRectangle",ELLIPSE:"ellipse",CIRCLE:"circle"},MOUSE_WHEEL_ACTION:{ZOOM:"zoom",MOVE:"move"},INIT_ROOT_NODE_POSITION:{LEFT:"left",TOP:"top",RIGHT:"right",BOTTOM:"bottom",CENTER:"center"},LAYOUT_GROW_DIR:{LEFT:"left",TOP:"top",RIGHT:"right",BOTTOM:"bottom"},PASTE_TYPE:{CLIP_BOARD:"clipBoard",CANVAS:"canvas"},SCROLL_BAR_DIR:{VERTICAL:"vertical",HORIZONTAL:"horizontal"},CREATE_NEW_NODE_BEHAVIOR:{DEFAULT:"default",NOT_ACTIVE:"notActive",ACTIVE_ONLY:"activeOnly"},TAG_POSITION:{RIGHT:"right",BOTTOM:"bottom"},EDIT_NODE_CLASS:{SMM_NODE_EDIT_WRAP:"smm-node-edit-wrap",RICH_TEXT_EDIT_WRAP:"ql-editor",ASSOCIATIVE_LINE_TEXT_EDIT_WRAP:"associative-line-text-edit-warp"}},kt={[Ft.INIT_ROOT_NODE_POSITION.LEFT]:0,[Ft.INIT_ROOT_NODE_POSITION.TOP]:0,[Ft.INIT_ROOT_NODE_POSITION.RIGHT]:1,[Ft.INIT_ROOT_NODE_POSITION.BOTTOM]:1,[Ft.INIT_ROOT_NODE_POSITION.CENTER]:.5},Pt=[Ft.LAYOUT.LOGICAL_STRUCTURE,Ft.LAYOUT.LOGICAL_STRUCTURE_LEFT,Ft.LAYOUT.MIND_MAP,Ft.LAYOUT.CATALOG_ORGANIZATION,Ft.LAYOUT.ORGANIZATION_STRUCTURE,Ft.LAYOUT.TIMELINE,Ft.LAYOUT.TIMELINE2,Ft.LAYOUT.VERTICAL_TIMELINE,Ft.LAYOUT.FISHBONE],Bt=["text","image","imageTitle","imageSize","icon","tag","hyperlink","hyperlinkTitle","note","expand","isActive","generalization","richText","resetRichText","uid","activeStyle","associativeLineTargets","associativeLineTargetControlOffsets","associativeLinePoint","associativeLineText","attachmentUrl","attachmentName","notation","outerFrame","number","range","customLeft","customTop","customTextWidth","checkbox","dir","needUpdate"],Ht="read_clipboard_error",$t="custom_handle_clipboard_text_error",Gt="load_clipboard_image_error",Ut="before_text_edit_error",jt="export_error",Wt="data_change_detail_event_error",Yt=1.2,Vt=["fontFamily","fontSize","fontWeight","fontStyle","textDecoration","color"];class Xt{constructor(t={}){this.opt=t,this.mindMap=this.opt.mindMap,this.scale=1,this.sx=0,this.sy=0,this.x=0,this.y=0,this.firstDrag=!0,this.setTransformData(this.mindMap.opt.viewData),this.bind()}bind(){this.mindMap.keyCommand.addShortcut("Control+=",(()=>{this.enlarge()})),this.mindMap.keyCommand.addShortcut("Control+-",(()=>{this.narrow()})),this.mindMap.keyCommand.addShortcut("Control+i",(()=>{this.fit()})),this.mindMap.event.on("mousedown",(t=>{const{isDisableDrag:e,mousedownEventPreventDefault:i}=this.mindMap.opt;e||(i&&t.preventDefault(),this.sx=this.x,this.sy=this.y)})),this.mindMap.event.on("drag",((t,e)=>{t.ctrlKey||t.metaKey||this.mindMap.opt.isDisableDrag||(this.firstDrag&&(this.firstDrag=!1,this.mindMap.renderer.activeNodeList.length>0&&this.mindMap.execCommand("CLEAR_ACTIVE_NODE")),this.x=this.sx+e.mousemoveOffset.x,this.y=this.sy+e.mousemoveOffset.y,this.transform())})),this.mindMap.event.on("mouseup",(()=>{this.firstDrag=!0})),this.mindMap.event.on("mousewheel",((t,e,i,n)=>{const{customHandleMousewheel:s,mousewheelAction:r,mouseScaleCenterUseMousePosition:o,mousewheelMoveStep:a,mousewheelZoomActionReverse:h,disableMouseWheelZoom:d,translateRatio:l}=this.mindMap.opt;if(s&&"function"==typeof s)return s(t);if(r===Ft.MOUSE_WHEEL_ACTION.ZOOM||t.ctrlKey||t.metaKey){if(d)return;const{x:i,y:s}=this.mindMap.toPos(t.clientX,t.clientY),r=o?i:void 0,a=o?s:void 0;switch(n&&(e.includes(Ft.DIR.LEFT)||e.includes(Ft.DIR.RIGHT))&&(e=e.filter((t=>![Ft.DIR.LEFT,Ft.DIR.RIGHT].includes(t)))),!0){case e.includes(Ft.DIR.UP):h?this.enlarge(r,a,n):this.narrow(r,a,n);break;case e.includes(Ft.DIR.DOWN):h?this.narrow(r,a,n):this.enlarge(r,a,n)}}else{let i=0,s=0;n?(i=Math.abs(t.wheelDeltaX),s=Math.abs(t.wheelDeltaY)):i=s=a;let r=0,o=0;e.includes(Ft.DIR.DOWN)&&(o=-s),e.includes(Ft.DIR.UP)&&(o=s),e.includes(Ft.DIR.LEFT)&&(r=i),e.includes(Ft.DIR.RIGHT)&&(r=-i),this.translateXY(r*l,o*l)}})),this.mindMap.on("resize",(()=>{this.checkNeedMindMapInCanvas()&&this.transform()}))}getTransformData(){return{transform:this.mindMap.draw.transform(),state:{scale:this.scale,x:this.x,y:this.y,sx:this.sx,sy:this.sy}}}setTransformData(t){t&&(Object.keys(t.state).forEach((e=>{this[e]=t.state[e]})),this.mindMap.draw.transform(h({},t.transform)),this.mindMap.emit("view_data_change",this.getTransformData()),this.emitEvent("scale"),this.emitEvent("translate"))}translateXY(t,e){0===t&&0===e||(this.x+=t,this.y+=e,this.transform(),this.emitEvent("translate"))}translateX(t){0!==t&&(this.x+=t,this.transform(),this.emitEvent("translate"))}translateXTo(t){this.x=t,this.transform(),this.emitEvent("translate")}translateY(t){0!==t&&(this.y+=t,this.transform(),this.emitEvent("translate"))}translateYTo(t){this.y=t,this.transform(),this.emitEvent("translate")}transform(){try{this.limitMindMapInCanvas()}catch(t){}this.mindMap.draw.transform({origin:[0,0],scale:this.scale,translate:[this.x,this.y]}),this.mindMap.emit("view_data_change",this.getTransformData())}reset(){const t=1!==this.scale,e=0!==this.x||0!==this.y;this.scale=1,this.x=0,this.y=0,this.transform(),t&&this.emitEvent("scale"),e&&this.emitEvent("translate")}narrow(t,e,i){let{scaleRatio:n,minZoomRatio:s}=this.mindMap.opt;n/=i?5:1;const r=Math.max(this.scale-n,s/100);this.scaleInCenter(r,t,e),this.transform(),this.emitEvent("scale")}enlarge(t,e,i){let{scaleRatio:n,maxZoomRatio:s}=this.mindMap.opt;n/=i?5:1;let r=0;r=-1===s?this.scale+n:Math.min(this.scale+n,s/100),this.scaleInCenter(r,t,e),this.transform(),this.emitEvent("scale")}scaleInCenter(t,e,i){void 0!==e&&void 0!==i||(e=this.mindMap.width/2,i=this.mindMap.height/2);const n=1-t/this.scale,s=(e-this.x)*n,r=(i-this.y)*n;this.x+=s,this.y+=r,this.scale=t}setScale(t,e,i){void 0!==e&&void 0!==i?this.scaleInCenter(t,e,i):this.scale=t,this.transform(),this.emitEvent("scale")}fit(t=()=>{},e=!1,i){i=void 0===i?this.mindMap.opt.fitPadding:i;const n=this.mindMap.draw,s=n.transform(),r=t()||n.rbox(),o=r.width/s.scaleX,a=r.height/s.scaleY,h=o/a;let{width:d,height:l}=this.mindMap.elRect;d-=2*i,l-=2*i;let c=0,u="";if(o<=d&&a<=l&&!e)c=1,u=1;else{let t=0;h>d/l?(t=d,u=2):(t=l*h,u=3),c=t/o}this.setScale(c);const p=t()||n.rbox();p.x-=this.mindMap.elRect.left,p.y-=this.mindMap.elRect.top;let m=0,f=0;1===u?(m=-p.x+i+(d-p.width)/2,f=-p.y+i+(l-p.height)/2):2===u?(m=-p.x+i,f=-p.y+i+(l-p.height)/2):3===u&&(m=-p.x+i+(d-p.width)/2,f=-p.y+i),this.translateXY(m,f)}checkNeedMindMapInCanvas(){if(this.mindMap.demonstrate&&this.mindMap.demonstrate.isInDemonstrate)return!1;const{isLimitMindMapInCanvasWhenHasScrollbar:t,isLimitMindMapInCanvas:e}=this.mindMap.opt;return this.mindMap.scrollbar?t:e}limitMindMapInCanvas(){if(!this.checkNeedMindMapInCanvas())return;let{scale:t,left:e,top:i,right:n,bottom:s}=this.getPositionLimit();const r=(this.mindMap.width-this.mindMap.initWidth)/2*t,o=(this.mindMap.height-this.mindMap.initHeight)/2*t,a=this.scale/t;e*=a,n*=a,i*=a,s*=a;const h=this.mindMap.width/2,d=this.mindMap.height/2,l=this.scale-1;e-=l*h-r,n-=l*h-r,i-=l*d-o,s-=l*d-o,this.x>e&&(this.x=e),this.x<n&&(this.x=n),this.y>i&&(this.y=i),this.y<s&&(this.y=s)}getPositionLimit(){const{scaleX:t,scaleY:e}=this.mindMap.draw.transform(),i=this.mindMap.draw.rbox(),n=this.mindMap.renderer.root.group.rbox(),s=this.mindMap.renderer.layout.getRootCenterOffset(n.width,n.height);return{scale:t,left:n.x-i.x-s.x*t,right:n.x-i.x2-s.x*t,top:n.y-i.y-s.y*e,bottom:n.y-i.y2-s.y*e}}emitEvent(t){switch(t){case"scale":this.mindMap.emit("scale",this.scale);case"translate":this.mindMap.emit("translate",this.x,this.y)}}}var Zt={exports:{}};!function(t){var e=Object.prototype.hasOwnProperty,i="~";function n(){}function s(t,e,i){this.fn=t,this.context=e,this.once=i||!1}function r(t,e,n,r,o){if("function"!=typeof n)throw new TypeError("The listener must be a function");var a=new s(n,r||t,o),h=i?i+e:e;return t._events[h]?t._events[h].fn?t._events[h]=[t._events[h],a]:t._events[h].push(a):(t._events[h]=a,t._eventsCount++),t}function o(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function a(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(i=!1)),a.prototype.eventNames=function(){var t,n,s=[];if(0===this._eventsCount)return s;for(n in t=this._events)e.call(t,n)&&s.push(i?n.slice(1):n);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(t)):s},a.prototype.listeners=function(t){var e=i?i+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var s=0,r=n.length,o=new Array(r);s<r;s++)o[s]=n[s].fn;return o},a.prototype.listenerCount=function(t){var e=i?i+t:t,n=this._events[e];return n?n.fn?1:n.length:0},a.prototype.emit=function(t,e,n,s,r,o){var a=i?i+t:t;if(!this._events[a])return!1;var h,d,l=this._events[a],c=arguments.length;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),c){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,n),!0;case 4:return l.fn.call(l.context,e,n,s),!0;case 5:return l.fn.call(l.context,e,n,s,r),!0;case 6:return l.fn.call(l.context,e,n,s,r,o),!0}for(d=1,h=new Array(c-1);d<c;d++)h[d-1]=arguments[d];l.fn.apply(l.context,h)}else{var u,p=l.length;for(d=0;d<p;d++)switch(l[d].once&&this.removeListener(t,l[d].fn,void 0,!0),c){case 1:l[d].fn.call(l[d].context);break;case 2:l[d].fn.call(l[d].context,e);break;case 3:l[d].fn.call(l[d].context,e,n);break;case 4:l[d].fn.call(l[d].context,e,n,s);break;default:if(!h)for(u=1,h=new Array(c-1);u<c;u++)h[u-1]=arguments[u];l[d].fn.apply(l[d].context,h)}}return!0},a.prototype.on=function(t,e,i){return r(this,t,e,i,!1)},a.prototype.once=function(t,e,i){return r(this,t,e,i,!0)},a.prototype.removeListener=function(t,e,n,s){var r=i?i+t:t;if(!this._events[r])return this;if(!e)return o(this,r),this;var a=this._events[r];if(a.fn)a.fn!==e||s&&!a.once||n&&a.context!==n||o(this,r);else{for(var h=0,d=[],l=a.length;h<l;h++)(a[h].fn!==e||s&&!a[h].once||n&&a[h].context!==n)&&d.push(a[h]);d.length?this._events[r]=1===d.length?d[0]:d:o(this,r)}return this},a.prototype.removeAllListeners=function(t){var e;return t?(e=i?i+t:t,this._events[e]&&o(this,e)):(this._events=new n,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=i,a.EventEmitter=a,t.exports=a}(Zt);const Kt=et(Zt.exports);class qt extends Kt{constructor(t={}){super(),this.opt=t,this.mindMap=t.mindMap,this.isLeftMousedown=!1,this.isRightMousedown=!1,this.isMiddleMousedown=!1,this.mousedownPos={x:0,y:0},this.mousemovePos={x:0,y:0},this.mousemoveOffset={x:0,y:0},this.bindFn(),this.bind()}bindFn(){this.onBodyMousedown=this.onBodyMousedown.bind(this),this.onBodyClick=this.onBodyClick.bind(this),this.onDrawClick=this.onDrawClick.bind(this),this.onMousedown=this.onMousedown.bind(this),this.onMousemove=this.onMousemove.bind(this),this.onMouseup=this.onMouseup.bind(this),this.onNodeMouseup=this.onNodeMouseup.bind(this),this.onMousewheel=this.onMousewheel.bind(this),this.onContextmenu=this.onContextmenu.bind(this),this.onSvgMousedown=this.onSvgMousedown.bind(this),this.onKeyup=this.onKeyup.bind(this),this.onMouseenter=this.onMouseenter.bind(this),this.onMouseleave=this.onMouseleave.bind(this)}bind(){document.body.addEventListener("mousedown",this.onBodyMousedown),document.body.addEventListener("click",this.onBodyClick),this.mindMap.svg.on("click",this.onDrawClick),this.mindMap.el.addEventListener("mousedown",this.onMousedown),this.mindMap.svg.on("mousedown",this.onSvgMousedown),window.addEventListener("mousemove",this.onMousemove),window.addEventListener("mouseup",this.onMouseup),this.on("node_mouseup",this.onNodeMouseup),this.mindMap.el.addEventListener("wheel",this.onMousewheel),this.mindMap.svg.on("contextmenu",this.onContextmenu),this.mindMap.svg.on("mouseenter",this.onMouseenter),this.mindMap.svg.on("mouseleave",this.onMouseleave),window.addEventListener("keyup",this.onKeyup)}unbind(){document.body.removeEventListener("mousedown",this.onBodyMousedown),document.body.removeEventListener("click",this.onBodyClick),this.mindMap.svg.off("click",this.onDrawClick),this.mindMap.el.removeEventListener("mousedown",this.onMousedown),window.removeEventListener("mousemove",this.onMousemove),window.removeEventListener("mouseup",this.onMouseup),this.off("node_mouseup",this.onNodeMouseup),this.mindMap.el.removeEventListener("wheel",this.onMousewheel),this.mindMap.svg.off("contextmenu",this.onContextmenu),this.mindMap.svg.off("mouseenter",this.onMouseenter),this.mindMap.svg.off("mouseleave",this.onMouseleave),window.removeEventListener("keyup",this.onKeyup)}onDrawClick(t){this.emit("draw_click",t)}onBodyMousedown(t){this.emit("body_mousedown",t)}onBodyClick(t){this.emit("body_click",t)}onSvgMousedown(t){this.emit("svg_mousedown",t)}onMousedown(t){1===t.which?this.isLeftMousedown=!0:3===t.which?this.isRightMousedown=!0:2===t.which&&(this.isMiddleMousedown=!0),this.mousedownPos.x=t.clientX,this.mousedownPos.y=t.clientY,this.emit("mousedown",t,this)}onMousemove(t){let{useLeftKeySelectionRightKeyDrag:e}=this.mindMap.opt;this.mousemovePos.x=t.clientX,this.mousemovePos.y=t.clientY,this.mousemoveOffset.x=t.clientX-this.mousedownPos.x,this.mousemoveOffset.y=t.clientY-this.mousedownPos.y,this.emit("mousemove",t,this),(this.isMiddleMousedown||(e?this.isRightMousedown:this.isLeftMousedown))&&(t.preventDefault(),this.emit("drag",t,this))}onMouseup(t){this.onNodeMouseup(),this.emit("mouseup",t,this)}onNodeMouseup(){this.isLeftMousedown=!1,this.isRightMousedown=!1,this.isMiddleMousedown=!1}onMousewheel(t){t.stopPropagation(),t.preventDefault();const e=[];t.deltaY<0&&e.push(Ft.DIR.UP),t.deltaY>0&&e.push(Ft.DIR.DOWN),t.deltaX<0&&e.push(Ft.DIR.LEFT),t.deltaX>0&&e.push(Ft.DIR.RIGHT);let i=!1;const{customCheckIsTouchPad:n}=this.mindMap.opt;i="function"==typeof n?n(t):Math.abs(t.deltaY)<=10,this.emit("mousewheel",t,e,this,i)}onContextmenu(t){t.preventDefault(),t.ctrlKey||this.emit("contextmenu",t)}onKeyup(t){this.emit("keyup",t)}onMouseenter(t){this.emit("svg_mouseenter",t)}onMouseleave(t){this.emit("svg_mouseleave",t)}}var Qt=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===Jt}(t)}(t)};var Jt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function te(t,e){var i;return e&&!0===e.clone&&Qt(t)?ie((i=t,Array.isArray(i)?[]:{}),t,e):t}function ee(t,e,i){var n=t.slice();return e.forEach((function(e,s){void 0===n[s]?n[s]=te(e,i):Qt(e)?n[s]=ie(t[s],e,i):-1===t.indexOf(e)&&n.push(te(e,i))})),n}function ie(t,e,i){var n=Array.isArray(e);return n===Array.isArray(t)?n?((i||{arrayMerge:ee}).arrayMerge||ee)(t,e,i):function(t,e,i){var n={};return Qt(t)&&Object.keys(t).forEach((function(e){n[e]=te(t[e],i)})),Object.keys(e).forEach((function(s){Qt(e[s])&&t[s]?n[s]=ie(t[s],e[s],i):n[s]=te(e[s],i)})),n}(t,e,i):te(e,i)}ie.all=function(t,e){if(!Array.isArray(t)||t.length<2)throw new Error("first argument should be an array with at least two elements");return t.reduce((function(t,i){return ie(t,i,e)}))};var ne=ie;let se;const re=new Uint8Array(16);function oe(){if(!se&&(se="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!se))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return se(re)}const ae=[];for(let Rr=0;Rr<256;++Rr)ae.push((Rr+256).toString(16).slice(1));const he={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function de(t,e,i){if(he.randomUUID&&!e&&!t)return he.randomUUID();const n=(t=t||{}).random||(t.rng||oe)();return n[6]=15&n[6]|64,n[8]=63&n[8]|128,function(t,e=0){return ae[t[e+0]]+ae[t[e+1]]+ae[t[e+2]]+ae[t[e+3]]+"-"+ae[t[e+4]]+ae[t[e+5]]+"-"+ae[t[e+6]]+ae[t[e+7]]+"-"+ae[t[e+8]]+ae[t[e+9]]+"-"+ae[t[e+10]]+ae[t[e+11]]+ae[t[e+12]]+ae[t[e+13]]+ae[t[e+14]]+ae[t[e+15]]}(n)}function le(t){this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=new Array(this.N),this.mti=this.N+1,this.init_genrand(t)}le.prototype.init_genrand=function(t){for(this.mt[0]=t>>>0,this.mti=1;this.mti<this.N;this.mti++)t=this.mt[this.mti-1]^this.mt[this.mti-1]>>>30,this.mt[this.mti]=(1812433253*((4294901760&t)>>>16)<<16)+1812433253*(65535&t)+this.mti,this.mt[this.mti]>>>=0},le.prototype.genrand_int32=function(){var t,e=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var i;for(this.mti==this.N+1&&this.init_genrand(5489),i=0;i<this.N-this.M;i++)t=this.mt[i]&this.UPPER_MASK|this.mt[i+1]&this.LOWER_MASK,this.mt[i]=this.mt[i+this.M]^t>>>1^e[1&t];for(;i<this.N-1;i++)t=this.mt[i]&this.UPPER_MASK|this.mt[i+1]&this.LOWER_MASK,this.mt[i]=this.mt[i+(this.M-this.N)]^t>>>1^e[1&t];t=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^t>>>1^e[1&t],this.mti=0}return t=this.mt[this.mti++],t^=t>>>11,t^=t<<7&2636928640,t^=t<<15&4022730752,(t^=t>>>18)>>>0};const ce={},ue=[];function pe(t,e){if(Array.isArray(t))for(const i of t)pe(i,e);else if("object"!=typeof t)fe(Object.getOwnPropertyNames(e)),ce[t]=Object.assign(ce[t]||{},e);else for(const i in t)pe(i,t[i])}function me(t){return ce[t]||{}}function fe(t){ue.push(...t)}function ge(t,e){let i;const n=t.length,s=[];for(i=0;i<n;i++)s.push(e(t[i]));return s}function ye(t){return t%360*Math.PI/180}function xe(t){return t.toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()}))}function ve(t){return t.charAt(0).toUpperCase()+t.slice(1)}function we(t,e,i,n){return null!=e&&null!=i||(n=n||t.bbox(),null==e?e=n.width/n.height*i:null==i&&(i=n.height/n.width*e)),{width:e,height:i}}function _e(t,e){const i=t.origin;let n=null!=t.ox?t.ox:null!=t.originX?t.originX:"center",s=null!=t.oy?t.oy:null!=t.originY?t.originY:"center";null!=i&&([n,s]=Array.isArray(i)?i:"object"==typeof i?[i.x,i.y]:[i,i]);const r="string"==typeof n,o="string"==typeof s;if(r||o){const{height:t,width:i,x:a,y:h}=e.bbox();r&&(n=n.includes("left")?a:n.includes("right")?a+i:a+i/2),o&&(s=s.includes("top")?h:s.includes("bottom")?h+t:h+t/2)}return[n,s]}const Ee="http://www.w3.org/2000/svg",Me="http://www.w3.org/2000/xmlns/",be="http://www.w3.org/1999/xlink",Ne={window:"undefined"==typeof window?null:window,document:"undefined"==typeof document?null:document};let Ce=class{};const Te={},Le="___SYMBOL___ROOT___";function Se(t,e=Ee){return Ne.document.createElementNS(e,t)}function De(t,e=!1){if(t instanceof Ce)return t;if("object"==typeof t)return Re(t);if(null==t)return new Te[Le];if("string"==typeof t&&"<"!==t.charAt(0))return Re(Ne.document.querySelector(t));const i=e?Ne.document.createElement("div"):Se("svg");return i.innerHTML=t,t=Re(i.firstChild),i.removeChild(i.firstChild),t}function Oe(t,e){return e&&e.ownerDocument&&e instanceof e.ownerDocument.defaultView.Node?e:Se(t)}function Ae(t){if(!t)return null;if(t.instance instanceof Ce)return t.instance;if("#document-fragment"===t.nodeName)return new Te.Fragment(t);let e=ve(t.nodeName||"Dom");return"LinearGradient"===e||"RadialGradient"===e?e="Gradient":Te[e]||(e="Dom"),new Te[e](t)}let Re=Ae;function ze(t,e=t.name,i=!1){return Te[e]=t,i&&(Te[Le]=t),fe(Object.getOwnPropertyNames(t.prototype)),t}let Ie=1e3;function Fe(t){return"Svgjs"+ve(t)+Ie++}function ke(t){for(let e=t.children.length-1;e>=0;e--)ke(t.children[e]);return t.id?(t.id=Fe(t.nodeName),t):t}function Pe(t,e){let i,n;for(n=(t=Array.isArray(t)?t:[t]).length-1;n>=0;n--)for(i in e)t[n].prototype[i]=e[i]}function Be(t){return function(...e){const i=e[e.length-1];return!i||i.constructor!==Object||i instanceof Array?t.apply(this,e):t.apply(this,e.slice(0,-1)).attr(i)}}pe("Dom",{siblings:function(){return this.parent().children()},position:function(){return this.parent().index(this)},next:function(){return this.siblings()[this.position()+1]},prev:function(){return this.siblings()[this.position()-1]},forward:function(){const t=this.position();return this.parent().add(this.remove(),t+1),this},backward:function(){const t=this.position();return this.parent().add(this.remove(),t?t-1:0),this},front:function(){return this.parent().add(this.remove()),this},back:function(){return this.parent().add(this.remove(),0),this},before:function(t){(t=De(t)).remove();const e=this.position();return this.parent().add(t,e),this},after:function(t){(t=De(t)).remove();const e=this.position();return this.parent().add(t,e+1),this},insertBefore:function(t){return(t=De(t)).before(this),this},insertAfter:function(t){return(t=De(t)).after(this),this}});const He=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,$e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Ge=/rgb\((\d+),(\d+),(\d+)\)/,Ue=/(#[a-z_][a-z0-9\-_]*)/i,je=/\)\s*,?\s*/,We=/\s/g,Ye=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i,Ve=/^rgb\(/,Xe=/^(\s+)?$/,Ze=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Ke=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,qe=/[\s,]+/,Qe=/[MLHVCSQTAZ]/i;function Je(t){const e=Math.round(t),i=Math.max(0,Math.min(255,e)).toString(16);return 1===i.length?"0"+i:i}function ti(t,e){for(let i=e.length;i--;)if(null==t[e[i]])return!1;return!0}function ei(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}pe("Dom",{classes:function(){const t=this.attr("class");return null==t?[]:t.trim().split(qe)},hasClass:function(t){return-1!==this.classes().indexOf(t)},addClass:function(t){if(!this.hasClass(t)){const e=this.classes();e.push(t),this.attr("class",e.join(" "))}return this},removeClass:function(t){return this.hasClass(t)&&this.attr("class",this.classes().filter((function(e){return e!==t})).join(" ")),this},toggleClass:function(t){return this.hasClass(t)?this.removeClass(t):this.addClass(t)}}),pe("Dom",{css:function(t,e){const i={};if(0===arguments.length)return this.node.style.cssText.split(/\s*;\s*/).filter((function(t){return!!t.length})).forEach((function(t){const e=t.split(/\s*:\s*/);i[e[0]]=e[1]})),i;if(arguments.length<2){if(Array.isArray(t)){for(const e of t){const t=xe(e);i[e]=this.node.style[t]}return i}if("string"==typeof t)return this.node.style[xe(t)];if("object"==typeof t)for(const e in t)this.node.style[xe(e)]=null==t[e]||Xe.test(t[e])?"":t[e]}return 2===arguments.length&&(this.node.style[xe(t)]=null==e||Xe.test(e)?"":e),this},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},visible:function(){return"none"!==this.css("display")}}),pe("Dom",{data:function(t,e,i){if(null==t)return this.data(ge(function(t,e){let i;const n=t.length,s=[];for(i=0;i<n;i++)e(t[i])&&s.push(t[i]);return s}(this.node.attributes,(t=>0===t.nodeName.indexOf("data-"))),(t=>t.nodeName.slice(5))));if(t instanceof Array){const e={};for(const i of t)e[i]=this.data(i);return e}if("object"==typeof t)for(e in t)this.data(e,t[e]);else if(arguments.length<2)try{return JSON.parse(this.attr("data-"+t))}catch(n){return this.attr("data-"+t)}else this.attr("data-"+t,null===e?null:!0===i||"string"==typeof e||"number"==typeof e?e:JSON.stringify(e));return this}}),pe("Dom",{remember:function(t,e){if("object"==typeof arguments[0])for(const i in t)this.remember(i,t[i]);else{if(1===arguments.length)return this.memory()[t];this.memory()[t]=e}return this},forget:function(){if(0===arguments.length)this._memory={};else for(let t=arguments.length-1;t>=0;t--)delete this.memory()[arguments[t]];return this},memory:function(){return this._memory=this._memory||{}}});class ii{constructor(...t){this.init(...t)}static isColor(t){return t&&(t instanceof ii||this.isRgb(t)||this.test(t))}static isRgb(t){return t&&"number"==typeof t.r&&"number"==typeof t.g&&"number"==typeof t.b}static random(t="vibrant",e,i){const{random:n,round:s,sin:r,PI:o}=Math;if("vibrant"===t){const t=24*n()+57,e=38*n()+45,i=360*n();return new ii(t,e,i,"lch")}if("sine"===t){const t=s(80*r(2*o*(e=null==e?n():e)/.5+.01)+150),i=s(50*r(2*o*e/.5+4.6)+200),a=s(100*r(2*o*e/.5+2.3)+150);return new ii(t,i,a)}if("pastel"===t){const t=8*n()+86,e=17*n()+9,i=360*n();return new ii(t,e,i,"lch")}if("dark"===t){const t=10+10*n(),e=50*n()+86,i=360*n();return new ii(t,e,i,"lch")}if("rgb"===t){const t=255*n(),e=255*n(),i=255*n();return new ii(t,e,i)}if("lab"===t){const t=100*n(),e=256*n()-128,i=256*n()-128;return new ii(t,e,i,"lab")}if("grey"===t){const t=255*n();return new ii(t,t,t)}throw new Error("Unsupported random color mode")}static test(t){return"string"==typeof t&&(Ye.test(t)||Ve.test(t))}cmyk(){const{_a:t,_b:e,_c:i}=this.rgb(),[n,s,r]=[t,e,i].map((t=>t/255)),o=Math.min(1-n,1-s,1-r);if(1===o)return new ii(0,0,0,1,"cmyk");return new ii((1-n-o)/(1-o),(1-s-o)/(1-o),(1-r-o)/(1-o),o,"cmyk")}hsl(){const{_a:t,_b:e,_c:i}=this.rgb(),[n,s,r]=[t,e,i].map((t=>t/255)),o=Math.max(n,s,r),a=Math.min(n,s,r),h=(o+a)/2,d=o===a,l=o-a;return new ii(360*(d?0:o===n?((s-r)/l+(s<r?6:0))/6:o===s?((r-n)/l+2)/6:o===r?((n-s)/l+4)/6:0),100*(d?0:h>.5?l/(2-o-a):l/(o+a)),100*h,"hsl")}init(t=0,e=0,i=0,n=0,s="rgb"){if(t=t||0,this.space)for(const c in this.space)delete this[this.space[c]];if("number"==typeof t)s="string"==typeof n?n:s,n="string"==typeof n?0:n,Object.assign(this,{_a:t,_b:e,_c:i,_d:n,space:s});else if(t instanceof Array)this.space=e||("string"==typeof t[3]?t[3]:t[4])||"rgb",Object.assign(this,{_a:t[0],_b:t[1],_c:t[2],_d:t[3]||0});else if(t instanceof Object){const i=function(t,e){const i=ti(t,"rgb")?{_a:t.r,_b:t.g,_c:t.b,_d:0,space:"rgb"}:ti(t,"xyz")?{_a:t.x,_b:t.y,_c:t.z,_d:0,space:"xyz"}:ti(t,"hsl")?{_a:t.h,_b:t.s,_c:t.l,_d:0,space:"hsl"}:ti(t,"lab")?{_a:t.l,_b:t.a,_c:t.b,_d:0,space:"lab"}:ti(t,"lch")?{_a:t.l,_b:t.c,_c:t.h,_d:0,space:"lch"}:ti(t,"cmyk")?{_a:t.c,_b:t.m,_c:t.y,_d:t.k,space:"cmyk"}:{_a:0,_b:0,_c:0,space:"rgb"};return i.space=e||i.space,i}(t,e);Object.assign(this,i)}else if("string"==typeof t)if(Ve.test(t)){const e=t.replace(We,""),[i,n,s]=Ge.exec(e).slice(1,4).map((t=>parseInt(t)));Object.assign(this,{_a:i,_b:n,_c:s,_d:0,space:"rgb"})}else{if(!Ye.test(t))throw Error("Unsupported string format, can't construct Color");{const e=t=>parseInt(t,16),[,i,n,s]=$e.exec((r=t,4===r.length?["#",r.substring(1,2),r.substring(1,2),r.substring(2,3),r.substring(2,3),r.substring(3,4),r.substring(3,4)].join(""):r)).map(e);Object.assign(this,{_a:i,_b:n,_c:s,_d:0,space:"rgb"})}}var r;const{_a:o,_b:a,_c:h,_d:d}=this,l="rgb"===this.space?{r:o,g:a,b:h}:"xyz"===this.space?{x:o,y:a,z:h}:"hsl"===this.space?{h:o,s:a,l:h}:"lab"===this.space?{l:o,a:a,b:h}:"lch"===this.space?{l:o,c:a,h:h}:"cmyk"===this.space?{c:o,m:a,y:h,k:d}:{};Object.assign(this,l)}lab(){const{x:t,y:e,z:i}=this.xyz();return new ii(116*e-16,500*(t-e),200*(e-i),"lab")}lch(){const{l:t,a:e,b:i}=this.lab(),n=Math.sqrt(o(e,2)+o(i,2));let s=180*Math.atan2(i,e)/Math.PI;s<0&&(s*=-1,s=360-s);return new ii(t,n,s,"lch")}rgb(){if("rgb"===this.space)return this;if("lab"===(t=this.space)||"xyz"===t||"lch"===t){let{x:t,y:e,z:i}=this;if("lab"===this.space||"lch"===this.space){let{l:n,a:s,b:r}=this;if("lch"===this.space){const{c:t,h:e}=this,i=Math.PI/180;s=t*Math.cos(i*e),r=t*Math.sin(i*e)}const a=(n+16)/116,h=s/500+a,d=a-r/200,l=16/116,c=.008856,u=7.787;t=.95047*(o(h,3)>c?o(h,3):(h-l)/u),e=1*(o(a,3)>c?o(a,3):(a-l)/u),i=1.08883*(o(d,3)>c?o(d,3):(d-l)/u)}const n=3.2406*t+-1.5372*e+-.4986*i,s=-.9689*t+1.8758*e+.0415*i,r=.0557*t+-.204*e+1.057*i,a=Math.pow,h=.0031308,d=n>h?1.055*a(n,1/2.4)-.055:12.92*n,l=s>h?1.055*a(s,1/2.4)-.055:12.92*s,c=r>h?1.055*a(r,1/2.4)-.055:12.92*r;return new ii(255*d,255*l,255*c)}if("hsl"===this.space){let{h:t,s:e,l:i}=this;if(t/=360,e/=100,i/=100,0===e){i*=255;return new ii(i,i,i)}const n=i<.5?i*(1+e):i+e-i*e,s=2*i-n,r=255*ei(s,n,t+1/3),o=255*ei(s,n,t),a=255*ei(s,n,t-1/3);return new ii(r,o,a)}if("cmyk"===this.space){const{c:t,m:e,y:i,k:n}=this,s=255*(1-Math.min(1,t*(1-n)+n)),r=255*(1-Math.min(1,e*(1-n)+n)),o=255*(1-Math.min(1,i*(1-n)+n));return new ii(s,r,o)}return this;var t}toArray(){const{_a:t,_b:e,_c:i,_d:n,space:s}=this;return[t,e,i,n,s]}toHex(){const[t,e,i]=this._clamped().map(Je);return`#${t}${e}${i}`}toRgb(){const[t,e,i]=this._clamped();return`rgb(${t},${e},${i})`}toString(){return this.toHex()}xyz(){const{_a:t,_b:e,_c:i}=this.rgb(),[n,s,r]=[t,e,i].map((t=>t/255)),o=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,a=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92,h=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,d=(.4124*o+.3576*a+.1805*h)/.95047,l=(.2126*o+.7152*a+.0722*h)/1,c=(.0193*o+.1192*a+.9505*h)/1.08883,u=d>.008856?Math.pow(d,1/3):7.787*d+16/116,p=l>.008856?Math.pow(l,1/3):7.787*l+16/116,m=c>.008856?Math.pow(c,1/3):7.787*c+16/116;return new ii(u,p,m,"xyz")}_clamped(){const{_a:t,_b:e,_c:i}=this.rgb(),{max:n,min:s,round:r}=Math;return[t,e,i].map((t=>n(0,s(r(t),255))))}}class ni{constructor(...t){this.init(...t)}clone(){return new ni(this)}init(t,e){const i=0,n=0,s=Array.isArray(t)?{x:t[0],y:t[1]}:"object"==typeof t?{x:t.x,y:t.y}:{x:t,y:e};return this.x=null==s.x?i:s.x,this.y=null==s.y?n:s.y,this}toArray(){return[this.x,this.y]}transform(t){return this.clone().transformO(t)}transformO(t){ri.isMatrixLike(t)||(t=new ri(t));const{x:e,y:i}=this;return this.x=t.a*e+t.c*i+t.e,this.y=t.b*e+t.d*i+t.f,this}}function si(t,e,i){return Math.abs(e-t)<1e-6}class ri{constructor(...t){this.init(...t)}static formatTransforms(t){const e="both"===t.flip||!0===t.flip,i=t.flip&&(e||"x"===t.flip)?-1:1,n=t.flip&&(e||"y"===t.flip)?-1:1,s=t.skew&&t.skew.length?t.skew[0]:isFinite(t.skew)?t.skew:isFinite(t.skewX)?t.skewX:0,r=t.skew&&t.skew.length?t.skew[1]:isFinite(t.skew)?t.skew:isFinite(t.skewY)?t.skewY:0,o=t.scale&&t.scale.length?t.scale[0]*i:isFinite(t.scale)?t.scale*i:isFinite(t.scaleX)?t.scaleX*i:i,a=t.scale&&t.scale.length?t.scale[1]*n:isFinite(t.scale)?t.scale*n:isFinite(t.scaleY)?t.scaleY*n:n,h=t.shear||0,d=t.rotate||t.theta||0,l=new ni(t.origin||t.around||t.ox||t.originX,t.oy||t.originY),c=l.x,u=l.y,p=new ni(t.position||t.px||t.positionX||NaN,t.py||t.positionY||NaN),m=p.x,f=p.y,g=new ni(t.translate||t.tx||t.translateX,t.ty||t.translateY),y=g.x,x=g.y,v=new ni(t.relative||t.rx||t.relativeX,t.ry||t.relativeY);return{scaleX:o,scaleY:a,skewX:s,skewY:r,shear:h,theta:d,rx:v.x,ry:v.y,tx:y,ty:x,ox:c,oy:u,px:m,py:f}}static fromArray(t){return{a:t[0],b:t[1],c:t[2],d:t[3],e:t[4],f:t[5]}}static isMatrixLike(t){return null!=t.a||null!=t.b||null!=t.c||null!=t.d||null!=t.e||null!=t.f}static matrixMultiply(t,e,i){const n=t.a*e.a+t.c*e.b,s=t.b*e.a+t.d*e.b,r=t.a*e.c+t.c*e.d,o=t.b*e.c+t.d*e.d,a=t.e+t.a*e.e+t.c*e.f,h=t.f+t.b*e.e+t.d*e.f;return i.a=n,i.b=s,i.c=r,i.d=o,i.e=a,i.f=h,i}around(t,e,i){return this.clone().aroundO(t,e,i)}aroundO(t,e,i){const n=t||0,s=e||0;return this.translateO(-n,-s).lmultiplyO(i).translateO(n,s)}clone(){return new ri(this)}decompose(t=0,e=0){const i=this.a,n=this.b,s=this.c,r=this.d,o=this.e,a=this.f,h=i*r-n*s,d=h>0?1:-1,l=d*Math.sqrt(i*i+n*n),c=Math.atan2(d*n,d*i),u=180/Math.PI*c,p=Math.cos(c),m=Math.sin(c),f=(i*s+n*r)/h,g=s*l/(f*i-n)||r*l/(f*n+i);return{scaleX:l,scaleY:g,shear:f,rotate:u,translateX:o-t+t*p*l+e*(f*p*l-m*g),translateY:a-e+t*m*l+e*(f*m*l+p*g),originX:t,originY:e,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}equals(t){if(t===this)return!0;const e=new ri(t);return si(this.a,e.a)&&si(this.b,e.b)&&si(this.c,e.c)&&si(this.d,e.d)&&si(this.e,e.e)&&si(this.f,e.f)}flip(t,e){return this.clone().flipO(t,e)}flipO(t,e){return"x"===t?this.scaleO(-1,1,e,0):"y"===t?this.scaleO(1,-1,0,e):this.scaleO(-1,-1,t,e||t)}init(t){const e=ri.fromArray([1,0,0,1,0,0]);return t=t instanceof Si?t.matrixify():"string"==typeof t?ri.fromArray(t.split(qe).map(parseFloat)):Array.isArray(t)?ri.fromArray(t):"object"==typeof t&&ri.isMatrixLike(t)?t:"object"==typeof t?(new ri).transform(t):6===arguments.length?ri.fromArray([].slice.call(arguments)):e,this.a=null!=t.a?t.a:e.a,this.b=null!=t.b?t.b:e.b,this.c=null!=t.c?t.c:e.c,this.d=null!=t.d?t.d:e.d,this.e=null!=t.e?t.e:e.e,this.f=null!=t.f?t.f:e.f,this}inverse(){return this.clone().inverseO()}inverseO(){const t=this.a,e=this.b,i=this.c,n=this.d,s=this.e,r=this.f,o=t*n-e*i;if(!o)throw new Error("Cannot invert "+this);const a=n/o,h=-e/o,d=-i/o,l=t/o,c=-(a*s+d*r),u=-(h*s+l*r);return this.a=a,this.b=h,this.c=d,this.d=l,this.e=c,this.f=u,this}lmultiply(t){return this.clone().lmultiplyO(t)}lmultiplyO(t){const e=t instanceof ri?t:new ri(t);return ri.matrixMultiply(e,this,this)}multiply(t){return this.clone().multiplyO(t)}multiplyO(t){const e=t instanceof ri?t:new ri(t);return ri.matrixMultiply(this,e,this)}rotate(t,e,i){return this.clone().rotateO(t,e,i)}rotateO(t,e=0,i=0){t=ye(t);const n=Math.cos(t),s=Math.sin(t),{a:r,b:o,c:a,d:h,e:d,f:l}=this;return this.a=r*n-o*s,this.b=o*n+r*s,this.c=a*n-h*s,this.d=h*n+a*s,this.e=d*n-l*s+i*s-e*n+e,this.f=l*n+d*s-e*s-i*n+i,this}scale(t,e,i,n){return this.clone().scaleO(...arguments)}scaleO(t,e=t,i=0,n=0){3===arguments.length&&(n=i,i=e,e=t);const{a:s,b:r,c:o,d:a,e:h,f:d}=this;return this.a=s*t,this.b=r*e,this.c=o*t,this.d=a*e,this.e=h*t-i*t+i,this.f=d*e-n*e+n,this}shear(t,e,i){return this.clone().shearO(t,e,i)}shearO(t,e=0,i=0){const{a:n,b:s,c:r,d:o,e:a,f:h}=this;return this.a=n+s*t,this.c=r+o*t,this.e=a+h*t-i*t,this}skew(t,e,i,n){return this.clone().skewO(...arguments)}skewO(t,e=t,i=0,n=0){3===arguments.length&&(n=i,i=e,e=t),t=ye(t),e=ye(e);const s=Math.tan(t),r=Math.tan(e),{a:o,b:a,c:h,d:d,e:l,f:c}=this;return this.a=o+a*s,this.b=a+o*r,this.c=h+d*s,this.d=d+h*r,this.e=l+c*s-n*s,this.f=c+l*r-i*r,this}skewX(t,e,i){return this.skew(t,0,e,i)}skewY(t,e,i){return this.skew(0,t,e,i)}toArray(){return[this.a,this.b,this.c,this.d,this.e,this.f]}toString(){return"matrix("+this.a+","+this.b+","+this.c+","+this.d+","+this.e+","+this.f+")"}transform(t){if(ri.isMatrixLike(t)){return new ri(t).multiplyO(this)}const e=ri.formatTransforms(t),{x:i,y:n}=new ni(e.ox,e.oy).transform(this),s=(new ri).translateO(e.rx,e.ry).lmultiplyO(this).translateO(-i,-n).scaleO(e.scaleX,e.scaleY).skewO(e.skewX,e.skewY).shearO(e.shear).rotateO(e.theta).translateO(i,n);if(isFinite(e.px)||isFinite(e.py)){const t=new ni(i,n).transform(s),r=isFinite(e.px)?e.px-t.x:0,o=isFinite(e.py)?e.py-t.y:0;s.translateO(r,o)}return s.translateO(e.tx,e.ty),s}translate(t,e){return this.clone().translateO(t,e)}translateO(t,e){return this.e+=t||0,this.f+=e||0,this}valueOf(){return{a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}}function oi(){if(!oi.nodes){const t=De().size(2,0);t.node.style.cssText=["opacity: 0","position: absolute","left: -100%","top: -100%","overflow: hidden"].join(";"),t.attr("focusable","false"),t.attr("aria-hidden","true");const e=t.path().node;oi.nodes={svg:t,path:e}}if(!oi.nodes.svg.node.parentNode){const t=Ne.document.body||Ne.document.documentElement;oi.nodes.svg.addTo(t)}return oi.nodes}function ai(t){return!(t.width||t.height||t.x||t.y)}ze(ri,"Matrix");class hi{constructor(...t){this.init(...t)}addOffset(){return this.x+=Ne.window.pageXOffset,this.y+=Ne.window.pageYOffset,new hi(this)}init(t){return t="string"==typeof t?t.split(qe).map(parseFloat):Array.isArray(t)?t:"object"==typeof t?[null!=t.left?t.left:t.x,null!=t.top?t.top:t.y,t.width,t.height]:4===arguments.length?[].slice.call(arguments):[0,0,0,0],this.x=t[0]||0,this.y=t[1]||0,this.width=this.w=t[2]||0,this.height=this.h=t[3]||0,this.x2=this.x+this.w,this.y2=this.y+this.h,this.cx=this.x+this.w/2,this.cy=this.y+this.h/2,this}isNulled(){return ai(this)}merge(t){const e=Math.min(this.x,t.x),i=Math.min(this.y,t.y),n=Math.max(this.x+this.width,t.x+t.width)-e,s=Math.max(this.y+this.height,t.y+t.height)-i;return new hi(e,i,n,s)}toArray(){return[this.x,this.y,this.width,this.height]}toString(){return this.x+" "+this.y+" "+this.width+" "+this.height}transform(t){t instanceof ri||(t=new ri(t));let e=1/0,i=-1/0,n=1/0,s=-1/0;return[new ni(this.x,this.y),new ni(this.x2,this.y),new ni(this.x,this.y2),new ni(this.x2,this.y2)].forEach((function(r){r=r.transform(t),e=Math.min(e,r.x),i=Math.max(i,r.x),n=Math.min(n,r.y),s=Math.max(s,r.y)})),new hi(e,n,i-e,s-n)}}function di(t,e,i){let n;try{if(n=e(t.node),ai(n)&&((s=t.node)!==Ne.document&&!(Ne.document.documentElement.contains||function(t){for(;t.parentNode;)t=t.parentNode;return t===Ne.document}).call(Ne.document.documentElement,s)))throw new Error("Element not in the dom")}catch(r){n=i(t)}var s;return n}pe({viewbox:{viewbox(t,e,i,n){return null==t?new hi(this.attr("viewBox")):this.attr("viewBox",new hi(t,e,i,n))},zoom(t,e){let{width:i,height:n}=this.attr(["width","height"]);if((i||n)&&"string"!=typeof i&&"string"!=typeof n||(i=this.node.clientWidth,n=this.node.clientHeight),!i||!n)throw new Error("Impossible to get absolute width and height. Please provide an absolute width and height attribute on the zooming element");const s=this.viewbox(),r=i/s.width,o=n/s.height,a=Math.min(r,o);if(null==t)return a;let h=a/t;h===1/0&&(h=Number.MAX_SAFE_INTEGER/100),e=e||new ni(i/2/r+s.x,n/2/o+s.y);const d=new hi(s).transform(new ri({scale:h,origin:e}));return this.viewbox(d)}}}),ze(hi,"Box");class li extends Array{constructor(t=[],...e){if(super(t,...e),"number"==typeof t)return this;this.length=0,this.push(...t)}}Pe([li],{each(t,...e){return"function"==typeof t?this.map(((e,i,n)=>t.call(e,e,i,n))):this.map((i=>i[t](...e)))},toArray(){return Array.prototype.concat.apply([],this)}});const ci=["toArray","constructor","each"];function ui(t,e){return new li(ge((e||Ne.document).querySelectorAll(t),(function(t){return Ae(t)})))}li.extend=function(t){t=t.reduce(((t,e)=>(ci.includes(e)||"_"===e[0]||(t[e]=function(...t){return this.each(e,...t)}),t)),{}),Pe([li],t)};let pi=0;const mi={};function fi(t){let e=t.getEventHolder();return e===Ne.window&&(e=mi),e.events||(e.events={}),e.events}function gi(t){return t.getEventTarget()}function yi(t,e,i,n,s){const r=i.bind(n||t),o=De(t),a=fi(o),h=gi(o);e=Array.isArray(e)?e:e.split(qe),i._svgjsListenerId||(i._svgjsListenerId=++pi),e.forEach((function(t){const e=t.split(".")[0],n=t.split(".")[1]||"*";a[e]=a[e]||{},a[e][n]=a[e][n]||{},a[e][n][i._svgjsListenerId]=r,h.addEventListener(e,r,s||!1)}))}function xi(t,e,i,n){const s=De(t),r=fi(s),o=gi(s);("function"!=typeof i||(i=i._svgjsListenerId))&&(e=Array.isArray(e)?e:(e||"").split(qe)).forEach((function(t){const e=t&&t.split(".")[0],a=t&&t.split(".")[1];let h,d;if(i)r[e]&&r[e][a||"*"]&&(o.removeEventListener(e,r[e][a||"*"][i],n||!1),delete r[e][a||"*"][i]);else if(e&&a){if(r[e]&&r[e][a]){for(d in r[e][a])xi(o,[e,a].join("."),d);delete r[e][a]}}else if(a)for(t in r)for(h in r[t])a===h&&xi(o,[t,a].join("."));else if(e){if(r[e]){for(h in r[e])xi(o,[e,h].join("."));delete r[e]}}else{for(t in r)xi(o,t);!function(t){let e=t.getEventHolder();e===Ne.window&&(e=mi),e.events&&(e.events={})}(s)}}))}class vi extends Ce{addEventListener(){}dispatch(t,e,i){return function(t,e,i,n){const s=gi(t);return e instanceof Ne.window.Event||(e=new Ne.window.CustomEvent(e,h({detail:i,cancelable:!0},n))),s.dispatchEvent(e),e}(this,t,e,i)}dispatchEvent(t){const e=this.getEventHolder().events;if(!e)return!0;const i=e[t.type];for(const n in i)for(const e in i[n])i[n][e](t);return!t.defaultPrevented}fire(t,e,i){return this.dispatch(t,e,i),this}getEventHolder(){return this}getEventTarget(){return this}off(t,e,i){return xi(this,t,e,i),this}on(t,e,i,n){return yi(this,t,e,i,n),this}removeEventListener(){}}function wi(){}ze(vi,"EventTarget");const _i=400,Ei=">",Mi=0,bi={"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","text-anchor":"start"};class Ni extends Array{constructor(...t){super(...t),this.init(...t)}clone(){return new this.constructor(this)}init(t){return"number"==typeof t||(this.length=0,this.push(...this.parse(t))),this}parse(t=[]){return t instanceof Array?t:t.trim().split(qe).map(parseFloat)}toArray(){return Array.prototype.concat.apply([],this)}toSet(){return new Set(this)}toString(){return this.join(" ")}valueOf(){const t=[];return t.push(...this),t}}class Ci{constructor(...t){this.init(...t)}convert(t){return new Ci(this.value,t)}divide(t){return t=new Ci(t),new Ci(this/t,this.unit||t.unit)}init(t,e){return e=Array.isArray(t)?t[1]:e,t=Array.isArray(t)?t[0]:t,this.value=0,this.unit=e||"","number"==typeof t?this.value=isNaN(t)?0:isFinite(t)?t:t<0?-34e37:34e37:"string"==typeof t?(e=t.match(He))&&(this.value=parseFloat(e[1]),"%"===e[5]?this.value/=100:"s"===e[5]&&(this.value*=1e3),this.unit=e[5]):t instanceof Ci&&(this.value=t.valueOf(),this.unit=t.unit),this}minus(t){return t=new Ci(t),new Ci(this-t,this.unit||t.unit)}plus(t){return t=new Ci(t),new Ci(this+t,this.unit||t.unit)}times(t){return t=new Ci(t),new Ci(this*t,this.unit||t.unit)}toArray(){return[this.value,this.unit]}toJSON(){return this.toString()}toString(){return("%"===this.unit?~~(1e8*this.value)/1e6:"s"===this.unit?this.value/1e3:this.value)+this.unit}valueOf(){return this.value}}const Ti=[];class Li extends vi{constructor(t,e){super(),this.node=t,this.type=t.nodeName,e&&t!==e&&this.attr(e)}add(t,e){return(t=De(t)).removeNamespace&&this.node instanceof Ne.window.SVGElement&&t.removeNamespace(),null==e?this.node.appendChild(t.node):t.node!==this.node.childNodes[e]&&this.node.insertBefore(t.node,this.node.childNodes[e]),this}addTo(t,e){return De(t).put(this,e)}children(){return new li(ge(this.node.children,(function(t){return Ae(t)})))}clear(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return this}clone(t=!0,e=!0){this.writeDataToDom();let i=this.node.cloneNode(t);return e&&(i=ke(i)),new this.constructor(i)}each(t,e){const i=this.children();let n,s;for(n=0,s=i.length;n<s;n++)t.apply(i[n],[n,i]),e&&i[n].each(t,e);return this}element(t,e){return this.put(new Li(Se(t),e))}first(){return Ae(this.node.firstChild)}get(t){return Ae(this.node.childNodes[t])}getEventHolder(){return this.node}getEventTarget(){return this.node}has(t){return this.index(t)>=0}html(t,e){return this.xml(t,e,"http://www.w3.org/1999/xhtml")}id(t){return void 0!==t||this.node.id||(this.node.id=Fe(this.type)),this.attr("id",t)}index(t){return[].slice.call(this.node.childNodes).indexOf(t.node)}last(){return Ae(this.node.lastChild)}matches(t){const e=this.node,i=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector||null;return i&&i.call(e,t)}parent(t){let e=this;if(!e.node.parentNode)return null;if(e=Ae(e.node.parentNode),!t)return e;do{if("string"==typeof t?e.matches(t):e instanceof t)return e}while(e=Ae(e.node.parentNode));return e}put(t,e){return t=De(t),this.add(t,e),t}putIn(t,e){return De(t).add(this,e)}remove(){return this.parent()&&this.parent().removeElement(this),this}removeElement(t){return this.node.removeChild(t.node),this}replace(t){return t=De(t),this.node.parentNode&&this.node.parentNode.replaceChild(t.node,this.node),t}round(t=2,e=null){const i=o(10,t),n=this.attr(e);for(const s in n)"number"==typeof n[s]&&(n[s]=Math.round(n[s]*i)/i);return this.attr(n),this}svg(t,e){return this.xml(t,e,Ee)}toString(){return this.id()}words(t){return this.node.textContent=t,this}wrap(t){const e=this.parent();if(!e)return this.addTo(t);const i=e.index(this);return e.put(t,i).put(this)}writeDataToDom(){return this.each((function(){this.writeDataToDom()})),this}xml(t,e,i){if("boolean"==typeof t&&(i=e,e=t,t=null),null==t||"function"==typeof t){e=null==e||e,this.writeDataToDom();let i=this;if(null!=t){if(i=Ae(i.node.cloneNode(!0)),e){const e=t(i);if(i=e||i,!1===e)return""}i.each((function(){const e=t(this),i=e||this;!1===e?this.remove():e&&this!==i&&this.replace(i)}),!0)}return e?i.node.outerHTML:i.node.innerHTML}e=null!=e&&e;const n=Se("wrapper",i),s=Ne.document.createDocumentFragment();n.innerHTML=t;for(let o=n.children.length;o--;)s.appendChild(n.firstElementChild);const r=this.parent();return e?this.replace(s)&&r:this.add(s)}}Pe(Li,{attr:function(t,e,i){if(null==t){t={},e=this.node.attributes;for(const i of e)t[i.nodeName]=Ze.test(i.nodeValue)?parseFloat(i.nodeValue):i.nodeValue;return t}if(t instanceof Array)return t.reduce(((t,e)=>(t[e]=this.attr(e),t)),{});if("object"==typeof t&&t.constructor===Object)for(e in t)this.attr(e,t[e]);else if(null===e)this.node.removeAttribute(t);else{if(null==e)return null==(e=this.node.getAttribute(t))?bi[t]:Ze.test(e)?parseFloat(e):e;"number"==typeof(e=Ti.reduce(((e,i)=>i(t,e,this)),e))?e=new Ci(e):ii.isColor(e)?e=new ii(e):e.constructor===Array&&(e=new Ni(e)),"leading"===t?this.leading&&this.leading(e):"string"==typeof i?this.node.setAttributeNS(i,t,e.toString()):this.node.setAttribute(t,e.toString()),!this.rebuild||"font-size"!==t&&"x"!==t||this.rebuild()}return this},find:function(t){return ui(t,this.node)},findOne:function(t){return Ae(this.node.querySelector(t))}}),ze(Li,"Dom");let Si=class extends Li{constructor(t,e){super(t,e),this.dom={},this.node.instance=this,t.hasAttribute("svgjs:data")&&this.setData(JSON.parse(t.getAttribute("svgjs:data"))||{})}center(t,e){return this.cx(t).cy(e)}cx(t){return null==t?this.x()+this.width()/2:this.x(t-this.width()/2)}cy(t){return null==t?this.y()+this.height()/2:this.y(t-this.height()/2)}defs(){const t=this.root();return t&&t.defs()}dmove(t,e){return this.dx(t).dy(e)}dx(t=0){return this.x(new Ci(t).plus(this.x()))}dy(t=0){return this.y(new Ci(t).plus(this.y()))}getEventHolder(){return this}height(t){return this.attr("height",t)}move(t,e){return this.x(t).y(e)}parents(t=this.root()){const e="string"==typeof t;e||(t=De(t));const i=new li;let n=this;for(;(n=n.parent())&&n.node!==Ne.document&&"#document-fragment"!==n.nodeName&&(i.push(n),e||n.node!==t.node)&&(!e||!n.matches(t));)if(n.node===this.root().node)return null;return i}reference(t){if(!(t=this.attr(t)))return null;const e=(t+"").match(Ue);return e?De(e[1]):null}root(){const t=this.parent(Te[Le]);return t&&t.root()}setData(t){return this.dom=t,this}size(t,e){const i=we(this,t,e);return this.width(new Ci(i.width)).height(new Ci(i.height))}width(t){return this.attr("width",t)}writeDataToDom(){return this.node.removeAttribute("svgjs:data"),Object.keys(this.dom).length&&this.node.setAttribute("svgjs:data",JSON.stringify(this.dom)),super.writeDataToDom()}x(t){return this.attr("x",t)}y(t){return this.attr("y",t)}};Pe(Si,{bbox:function(){const t=di(this,(t=>t.getBBox()),(t=>{try{const e=t.clone().addTo(oi().svg).show(),i=e.node.getBBox();return e.remove(),i}catch(e){throw new Error(`Getting bbox of element "${t.node.nodeName}" is not possible: ${e.toString()}`)}}));return new hi(t)},rbox:function(t){const e=di(this,(t=>t.getBoundingClientRect()),(t=>{throw new Error(`Getting rbox of element "${t.node.nodeName}" is not possible`)})),i=new hi(e);return t?i.transform(t.screenCTM().inverseO()):i.addOffset()},inside:function(t,e){const i=this.bbox();return t>i.x&&e>i.y&&t<i.x+i.width&&e<i.y+i.height},point:function(t,e){return new ni(t,e).transformO(this.screenCTM().inverseO())},ctm:function(){return new ri(this.node.getCTM())},screenCTM:function(){if("function"==typeof this.isRoot&&!this.isRoot()){const t=this.rect(1,1),e=t.node.getScreenCTM();return t.remove(),new ri(e)}return new ri(this.node.getScreenCTM())}}),ze(Si,"Element");const Di={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(t,e){return"color"===e?t:t+"-"+e}};["fill","stroke"].forEach((function(t){const e={};let i;e[t]=function(e){if(void 0===e)return this.attr(t);if("string"==typeof e||e instanceof ii||ii.isRgb(e)||e instanceof Si)this.attr(t,e);else for(i=Di[t].length-1;i>=0;i--)null!=e[Di[t][i]]&&this.attr(Di.prefix(t,Di[t][i]),e[Di[t][i]]);return this},pe(["Element","Runner"],e)})),pe(["Element","Runner"],{matrix:function(t,e,i,n,s,r){return null==t?new ri(this):this.attr("transform",new ri(t,e,i,n,s,r))},rotate:function(t,e,i){return this.transform({rotate:t,ox:e,oy:i},!0)},skew:function(t,e,i,n){return 1===arguments.length||3===arguments.length?this.transform({skew:t,ox:e,oy:i},!0):this.transform({skew:[t,e],ox:i,oy:n},!0)},shear:function(t,e,i){return this.transform({shear:t,ox:e,oy:i},!0)},scale:function(t,e,i,n){return 1===arguments.length||3===arguments.length?this.transform({scale:t,ox:e,oy:i},!0):this.transform({scale:[t,e],ox:i,oy:n},!0)},translate:function(t,e){return this.transform({translate:[t,e]},!0)},relative:function(t,e){return this.transform({relative:[t,e]},!0)},flip:function(t="both",e="center"){return-1==="xybothtrue".indexOf(t)&&(e=t,t="both"),this.transform({flip:t,origin:e},!0)},opacity:function(t){return this.attr("opacity",t)}}),pe("radius",{radius:function(t,e=t){return"radialGradient"===(this._element||this).type?this.attr("r",new Ci(t)):this.rx(t).ry(e)}}),pe("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(t){return new ni(this.node.getPointAtLength(t))}}),pe(["Element","Runner"],{font:function(t,e){if("object"==typeof t){for(e in t)this.font(e,t[e]);return this}return"leading"===t?this.leading(e):"anchor"===t?this.attr("text-anchor",e):"size"===t||"family"===t||"weight"===t||"stretch"===t||"variant"===t||"style"===t?this.attr("font-"+t,e):this.attr(t,e)}});pe("Element",["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","touchstart","touchmove","touchleave","touchend","touchcancel"].reduce((function(t,e){return t[e]=function(t){return null===t?this.off(e):this.on(e,t),this},t}),{})),pe("Element",{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(je).slice(0,-1).map((function(t){const e=t.trim().split("(");return[e[0],e[1].split(qe).map((function(t){return parseFloat(t)}))]})).reverse().reduce((function(t,e){return"matrix"===e[0]?t.lmultiply(ri.fromArray(e[1])):t[e[0]].apply(t,e[1])}),new ri)},toParent:function(t,e){if(this===t)return this;const i=this.screenCTM(),n=t.screenCTM().inverse();return this.addTo(t,e).untransform().transform(n.multiply(i)),this},toRoot:function(t){return this.toParent(this.root(),t)},transform:function(t,e){if(null==t||"string"==typeof t){const e=new ri(this).decompose();return null==t?e:e[t]}ri.isMatrixLike(t)||(t=d(h({},t),{origin:_e(t,this)}));const i=new ri(!0===e?this:e||!1).transform(t);return this.attr("transform",i)}});class Oi extends Si{flatten(t=this,e){return this.each((function(){if(this instanceof Oi)return this.flatten().ungroup()})),this}ungroup(t=this.parent(),e=t.index(this)){return e=-1===e?t.children().length:e,this.each((function(i,n){return n[n.length-i-1].toParent(t,e)})),this.remove()}}ze(Oi,"Container");class Ai extends Oi{constructor(t,e=t){super(Oe("defs",t),e)}flatten(){return this}ungroup(){return this}}ze(Ai,"Defs");let Ri=class extends Si{};function zi(t){return this.attr("rx",t)}function Ii(t){return this.attr("ry",t)}function Fi(t){return null==t?this.cx()-this.rx():this.cx(t+this.rx())}function ki(t){return null==t?this.cy()-this.ry():this.cy(t+this.ry())}function Pi(t){return this.attr("cx",t)}function Bi(t){return this.attr("cy",t)}function Hi(t){return null==t?2*this.rx():this.rx(new Ci(t).divide(2))}function $i(t){return null==t?2*this.ry():this.ry(new Ci(t).divide(2))}ze(Ri,"Shape");var Gi={__proto__:null,rx:zi,ry:Ii,x:Fi,y:ki,cx:Pi,cy:Bi,width:Hi,height:$i};class Ui extends Ri{constructor(t,e=t){super(Oe("ellipse",t),e)}size(t,e){const i=we(this,t,e);return this.rx(new Ci(i.width).divide(2)).ry(new Ci(i.height).divide(2))}}Pe(Ui,Gi),pe("Container",{ellipse:Be((function(t=0,e=t){return this.put(new Ui).size(t,e).move(0,0)}))}),ze(Ui,"Ellipse");class ji extends Li{constructor(t=Ne.document.createDocumentFragment()){super(t)}xml(t,e,i){if("boolean"==typeof t&&(i=e,e=t,t=null),null==t||"function"==typeof t){const t=new Li(Se("wrapper",i));return t.add(this.node.cloneNode(!0)),t.xml(!1,i)}return super.xml(t,!1,i)}}function Wi(t,e){return"radialGradient"===(this._element||this).type?this.attr({fx:new Ci(t),fy:new Ci(e)}):this.attr({x1:new Ci(t),y1:new Ci(e)})}function Yi(t,e){return"radialGradient"===(this._element||this).type?this.attr({cx:new Ci(t),cy:new Ci(e)}):this.attr({x2:new Ci(t),y2:new Ci(e)})}ze(ji,"Fragment");var Vi={__proto__:null,from:Wi,to:Yi};class Xi extends Oi{constructor(t,e){super(Oe(t+"Gradient","string"==typeof t?null:t),e)}attr(t,e,i){return"transform"===t&&(t="gradientTransform"),super.attr(t,e,i)}bbox(){return new hi}targets(){return ui("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}url(){return"url(#"+this.id()+")"}}Pe(Xi,Vi),pe({Container:{gradient(...t){return this.defs().gradient(...t)}},Defs:{gradient:Be((function(t,e){return this.put(new Xi(t)).update(e)}))}}),ze(Xi,"Gradient");class Zi extends Oi{constructor(t,e=t){super(Oe("pattern",t),e)}attr(t,e,i){return"transform"===t&&(t="patternTransform"),super.attr(t,e,i)}bbox(){return new hi}targets(){return ui("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}url(){return"url(#"+this.id()+")"}}pe({Container:{pattern(...t){return this.defs().pattern(...t)}},Defs:{pattern:Be((function(t,e,i){return this.put(new Zi).update(i).attr({x:0,y:0,width:t,height:e,patternUnits:"userSpaceOnUse"})}))}}),ze(Zi,"Pattern");let Ki=class extends Ri{constructor(t,e=t){super(Oe("image",t),e)}load(t,e){if(!t)return this;const i=new Ne.window.Image;return yi(i,"load",(function(t){const n=this.parent(Zi);0===this.width()&&0===this.height()&&this.size(i.width,i.height),n instanceof Zi&&0===n.width()&&0===n.height()&&n.size(this.width(),this.height()),"function"==typeof e&&e.call(this,t)}),this),yi(i,"load error",(function(){xi(i)})),this.attr("href",i.src=t,be)}};var qi;qi=function(t,e,i){return"fill"!==t&&"stroke"!==t||Ke.test(e)&&(e=i.root().defs().image(e)),e instanceof Ki&&(e=i.root().defs().pattern(0,0,(t=>{t.add(e)}))),e},Ti.push(qi),pe({Container:{image:Be((function(t,e){return this.put(new Ki).size(0,0).load(t,e)}))}}),ze(Ki,"Image");class Qi extends Ni{bbox(){let t=-1/0,e=-1/0,i=1/0,n=1/0;return this.forEach((function(s){t=Math.max(s[0],t),e=Math.max(s[1],e),i=Math.min(s[0],i),n=Math.min(s[1],n)})),new hi(i,n,t-i,e-n)}move(t,e){const i=this.bbox();if(t-=i.x,e-=i.y,!isNaN(t)&&!isNaN(e))for(let n=this.length-1;n>=0;n--)this[n]=[this[n][0]+t,this[n][1]+e];return this}parse(t=[0,0]){const e=[];(t=t instanceof Array?Array.prototype.concat.apply([],t):t.trim().split(qe).map(parseFloat)).length%2!=0&&t.pop();for(let i=0,n=t.length;i<n;i+=2)e.push([t[i],t[i+1]]);return e}size(t,e){let i;const n=this.bbox();for(i=this.length-1;i>=0;i--)n.width&&(this[i][0]=(this[i][0]-n.x)*t/n.width+n.x),n.height&&(this[i][1]=(this[i][1]-n.y)*e/n.height+n.y);return this}toLine(){return{x1:this[0][0],y1:this[0][1],x2:this[1][0],y2:this[1][1]}}toString(){const t=[];for(let e=0,i=this.length;e<i;e++)t.push(this[e].join(","));return t.join(" ")}transform(t){return this.clone().transformO(t)}transformO(t){ri.isMatrixLike(t)||(t=new ri(t));for(let e=this.length;e--;){const[i,n]=this[e];this[e][0]=t.a*i+t.c*n+t.e,this[e][1]=t.b*i+t.d*n+t.f}return this}}var Ji={__proto__:null,MorphArray:Qi,x:function(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)},y:function(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)},width:function(t){const e=this.bbox();return null==t?e.width:this.size(t,e.height)},height:function(t){const e=this.bbox();return null==t?e.height:this.size(e.width,t)}};class tn extends Ri{constructor(t,e=t){super(Oe("line",t),e)}array(){return new Qi([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])}move(t,e){return this.attr(this.array().move(t,e).toLine())}plot(t,e,i,n){return null==t?this.array():(t=void 0!==e?{x1:t,y1:e,x2:i,y2:n}:new Qi(t).toLine(),this.attr(t))}size(t,e){const i=we(this,t,e);return this.attr(this.array().size(i.width,i.height).toLine())}}Pe(tn,Ji),pe({Container:{line:Be((function(...t){return tn.prototype.plot.apply(this.put(new tn),null!=t[0]?t:[0,0,0,0])}))}}),ze(tn,"Line");class en extends Oi{constructor(t,e=t){super(Oe("marker",t),e)}height(t){return this.attr("markerHeight",t)}orient(t){return this.attr("orient",t)}ref(t,e){return this.attr("refX",t).attr("refY",e)}toString(){return"url(#"+this.id()+")"}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}width(t){return this.attr("markerWidth",t)}}function nn(t,e){return function(i){return null==i?this[t]:(this[t]=i,e&&e.call(this),this)}}pe({Container:{marker(...t){return this.defs().marker(...t)}},Defs:{marker:Be((function(t,e,i){return this.put(new en).size(t,e).ref(t/2,e/2).viewbox(0,0,t,e).attr("orient","auto").update(i)}))},marker:{marker(t,e,i,n){let s=["marker"];return"all"!==t&&s.push(t),s=s.join("-"),t=arguments[1]instanceof en?arguments[1]:this.defs().marker(e,i,n),this.attr(s,t)}}}),ze(en,"Marker");const sn={"-":function(t){return t},"<>":function(t){return-Math.cos(t*Math.PI)/2+.5},">":function(t){return Math.sin(t*Math.PI/2)},"<":function(t){return 1-Math.cos(t*Math.PI/2)},bezier:function(t,e,i,n){return function(s){return s<0?t>0?e/t*s:i>0?n/i*s:0:s>1?i<1?(1-n)/(1-i)*s+(n-i)/(1-i):t<1?(1-e)/(1-t)*s+(e-t)/(1-t):1:3*s*o(1-s,2)*e+3*o(s,2)*(1-s)*n+o(s,3)}},steps:function(t,e="end"){e=e.split("-").reverse()[0];let i=t;return"none"===e?--i:"both"===e&&++i,(n,s=!1)=>{let r=Math.floor(n*t);const o=n*r%1==0;return"start"!==e&&"both"!==e||++r,s&&o&&--r,n>=0&&r<0&&(r=0),n<=1&&r>i&&(r=i),r/i}}};class rn{done(){return!1}}class on extends rn{constructor(t=Ei){super(),this.ease=sn[t]||t}step(t,e,i){return"number"!=typeof t?i<1?t:e:t+(e-t)*this.ease(i)}}class an extends rn{constructor(t){super(),this.stepper=t}done(t){return t.done}step(t,e,i,n){return this.stepper(t,e,i,n)}}function hn(){const t=(this._duration||500)/1e3,e=this._overshoot||0,i=Math.PI,n=Math.log(e/100+1e-10),s=-n/Math.sqrt(i*i+n*n),r=3.9/(s*t);this.d=2*s*r,this.k=r*r}Pe(class extends an{constructor(t=500,e=0){super(),this.duration(t).overshoot(e)}step(t,e,i,n){if("string"==typeof t)return t;if(n.done=i===1/0,i===1/0)return e;if(0===i)return t;i>100&&(i=16),i/=1e3;const s=n.velocity||0,r=-this.d*s-this.k*(t-e),o=t+s*i+r*i*i/2;return n.velocity=s+r*i,n.done=Math.abs(e-o)+Math.abs(s)<.002,n.done?e:o}},{duration:nn("_duration",hn),overshoot:nn("_overshoot",hn)});Pe(class extends an{constructor(t=.1,e=.01,i=0,n=1e3){super(),this.p(t).i(e).d(i).windup(n)}step(t,e,i,n){if("string"==typeof t)return t;if(n.done=i===1/0,i===1/0)return e;if(0===i)return t;const s=e-t;let r=(n.integral||0)+s*i;const o=(s-(n.error||0))/i,a=this._windup;return!1!==a&&(r=Math.max(-a,Math.min(r,a))),n.error=s,n.integral=r,n.done=Math.abs(s)<.001,n.done?e:t+(this.P*s+this.I*r+this.D*o)}},{windup:nn("_windup"),p:nn("P"),i:nn("I"),d:nn("D")});const dn={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0},ln={M:function(t,e,i){return e.x=i.x=t[0],e.y=i.y=t[1],["M",e.x,e.y]},L:function(t,e){return e.x=t[0],e.y=t[1],["L",t[0],t[1]]},H:function(t,e){return e.x=t[0],["H",t[0]]},V:function(t,e){return e.y=t[0],["V",t[0]]},C:function(t,e){return e.x=t[4],e.y=t[5],["C",t[0],t[1],t[2],t[3],t[4],t[5]]},S:function(t,e){return e.x=t[2],e.y=t[3],["S",t[0],t[1],t[2],t[3]]},Q:function(t,e){return e.x=t[2],e.y=t[3],["Q",t[0],t[1],t[2],t[3]]},T:function(t,e){return e.x=t[0],e.y=t[1],["T",t[0],t[1]]},Z:function(t,e,i){return e.x=i.x,e.y=i.y,["Z"]},A:function(t,e){return e.x=t[5],e.y=t[6],["A",t[0],t[1],t[2],t[3],t[4],t[5],t[6]]}},cn="mlhvqtcsaz".split("");for(let Rr=0,zr=cn.length;Rr<zr;++Rr)ln[cn[Rr]]=function(t){return function(e,i,n){if("H"===t)e[0]=e[0]+i.x;else if("V"===t)e[0]=e[0]+i.y;else if("A"===t)e[5]=e[5]+i.x,e[6]=e[6]+i.y;else for(let t=0,s=e.length;t<s;++t)e[t]=e[t]+(t%2?i.y:i.x);return ln[t](e,i,n)}}(cn[Rr].toUpperCase());function un(t){return t.segment.length&&t.segment.length-1===dn[t.segment[0].toUpperCase()]}function pn(t,e){t.inNumber&&mn(t,!1);const i=Qe.test(e);if(i)t.segment=[e];else{const e=t.lastCommand,i=e.toLowerCase(),n=e===i;t.segment=["m"===i?n?"l":"L":e]}return t.inSegment=!0,t.lastCommand=t.segment[0],i}function mn(t,e){if(!t.inNumber)throw new Error("Parser Error");t.number&&t.segment.push(parseFloat(t.number)),t.inNumber=e,t.number="",t.pointSeen=!1,t.hasExponent=!1,un(t)&&fn(t)}function fn(t){t.inSegment=!1,t.absolute&&(t.segment=function(t){const e=t.segment[0];return ln[e](t.segment.slice(1),t.p,t.p0)}(t)),t.segments.push(t.segment)}function gn(t){if(!t.segment.length)return!1;const e="A"===t.segment[0].toUpperCase(),i=t.segment.length;return e&&(4===i||5===i)}function yn(t){return"E"===t.lastToken.toUpperCase()}class xn extends Ni{bbox(){return oi().path.setAttribute("d",this.toString()),new hi(oi.nodes.path.getBBox())}move(t,e){const i=this.bbox();if(t-=i.x,e-=i.y,!isNaN(t)&&!isNaN(e))for(let n,s=this.length-1;s>=0;s--)n=this[s][0],"M"===n||"L"===n||"T"===n?(this[s][1]+=t,this[s][2]+=e):"H"===n?this[s][1]+=t:"V"===n?this[s][1]+=e:"C"===n||"S"===n||"Q"===n?(this[s][1]+=t,this[s][2]+=e,this[s][3]+=t,this[s][4]+=e,"C"===n&&(this[s][5]+=t,this[s][6]+=e)):"A"===n&&(this[s][6]+=t,this[s][7]+=e);return this}parse(t="M0 0"){return Array.isArray(t)&&(t=Array.prototype.concat.apply([],t).toString()),function(t,e=!0){let i=0,n="";const s={segment:[],inNumber:!1,number:"",lastToken:"",inSegment:!1,segments:[],pointSeen:!1,hasExponent:!1,absolute:e,p0:new ni,p:new ni};for(;s.lastToken=n,n=t.charAt(i++);)if(s.inSegment||!pn(s,n))if("."!==n)if(isNaN(parseInt(n)))if(" "!==n&&","!==n)if("-"!==n)if("E"!==n.toUpperCase()){if(Qe.test(n)){if(s.inNumber)mn(s,!1);else{if(!un(s))throw new Error("parser Error");fn(s)}--i}}else s.number+=n,s.hasExponent=!0;else{if(s.inNumber&&!yn(s)){mn(s,!1),--i;continue}s.number+=n,s.inNumber=!0}else s.inNumber&&mn(s,!1);else{if("0"===s.number||gn(s)){s.inNumber=!0,s.number=n,mn(s,!0);continue}s.inNumber=!0,s.number+=n}else{if(s.pointSeen||s.hasExponent){mn(s,!1),--i;continue}s.inNumber=!0,s.pointSeen=!0,s.number+=n}return s.inNumber&&mn(s,!1),s.inSegment&&un(s)&&fn(s),s.segments}(t)}size(t,e){const i=this.bbox();let n,s;for(i.width=0===i.width?1:i.width,i.height=0===i.height?1:i.height,n=this.length-1;n>=0;n--)s=this[n][0],"M"===s||"L"===s||"T"===s?(this[n][1]=(this[n][1]-i.x)*t/i.width+i.x,this[n][2]=(this[n][2]-i.y)*e/i.height+i.y):"H"===s?this[n][1]=(this[n][1]-i.x)*t/i.width+i.x:"V"===s?this[n][1]=(this[n][1]-i.y)*e/i.height+i.y:"C"===s||"S"===s||"Q"===s?(this[n][1]=(this[n][1]-i.x)*t/i.width+i.x,this[n][2]=(this[n][2]-i.y)*e/i.height+i.y,this[n][3]=(this[n][3]-i.x)*t/i.width+i.x,this[n][4]=(this[n][4]-i.y)*e/i.height+i.y,"C"===s&&(this[n][5]=(this[n][5]-i.x)*t/i.width+i.x,this[n][6]=(this[n][6]-i.y)*e/i.height+i.y)):"A"===s&&(this[n][1]=this[n][1]*t/i.width,this[n][2]=this[n][2]*e/i.height,this[n][6]=(this[n][6]-i.x)*t/i.width+i.x,this[n][7]=(this[n][7]-i.y)*e/i.height+i.y);return this}toString(){return function(t){let e="";for(let i=0,n=t.length;i<n;i++)e+=t[i][0],null!=t[i][1]&&(e+=t[i][1],null!=t[i][2]&&(e+=" ",e+=t[i][2],null!=t[i][3]&&(e+=" ",e+=t[i][3],e+=" ",e+=t[i][4],null!=t[i][5]&&(e+=" ",e+=t[i][5],e+=" ",e+=t[i][6],null!=t[i][7]&&(e+=" ",e+=t[i][7])))));return e+" "}(this)}}const vn=t=>{const e=typeof t;return"number"===e?Ci:"string"===e?ii.isColor(t)?ii:qe.test(t)?Qe.test(t)?xn:Ni:He.test(t)?Ci:_n:Nn.indexOf(t.constructor)>-1?t.constructor:Array.isArray(t)?Ni:"object"===e?bn:_n};class wn{constructor(t){this._stepper=t||new on("-"),this._from=null,this._to=null,this._type=null,this._context=null,this._morphObj=null}at(t){return this._morphObj.morph(this._from,this._to,t,this._stepper,this._context)}done(){return this._context.map(this._stepper.done).reduce((function(t,e){return t&&e}),!0)}from(t){return null==t?this._from:(this._from=this._set(t),this)}stepper(t){return null==t?this._stepper:(this._stepper=t,this)}to(t){return null==t?this._to:(this._to=this._set(t),this)}type(t){return null==t?this._type:(this._type=t,this)}_set(t){this._type||this.type(vn(t));let e=new this._type(t);return this._type===ii&&(e=this._to?e[this._to[4]]():this._from?e[this._from[4]]():e),this._type===bn&&(e=this._to?e.align(this._to):this._from?e.align(this._from):e),e=e.toConsumable(),this._morphObj=this._morphObj||new this._type,this._context=this._context||Array.apply(null,Array(e.length)).map(Object).map((function(t){return t.done=!0,t})),e}}class _n{constructor(...t){this.init(...t)}init(t){return t=Array.isArray(t)?t[0]:t,this.value=t,this}toArray(){return[this.value]}valueOf(){return this.value}}class En{constructor(...t){this.init(...t)}init(t){return Array.isArray(t)&&(t={scaleX:t[0],scaleY:t[1],shear:t[2],rotate:t[3],translateX:t[4],translateY:t[5],originX:t[6],originY:t[7]}),Object.assign(this,En.defaults,t),this}toArray(){const t=this;return[t.scaleX,t.scaleY,t.shear,t.rotate,t.translateX,t.translateY,t.originX,t.originY]}}En.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const Mn=(t,e)=>t[0]<e[0]?-1:t[0]>e[0]?1:0;class bn{constructor(...t){this.init(...t)}align(t){const e=this.values;for(let i=0,n=e.length;i<n;++i){if(e[i+1]===t[i+1]){if(e[i+1]===ii&&t[i+7]!==e[i+7]){const e=t[i+7],n=new ii(this.values.splice(i+3,5))[e]().toArray();this.values.splice(i+3,0,...n)}i+=e[i+2]+2;continue}if(!t[i+1])return this;const n=(new t[i+1]).toArray(),s=e[i+2]+3;e.splice(i,s,t[i],t[i+1],t[i+2],...n),i+=e[i+2]+2}return this}init(t){if(this.values=[],Array.isArray(t))return void(this.values=t.slice());t=t||{};const e=[];for(const i in t){const n=vn(t[i]),s=new n(t[i]).toArray();e.push([i,n,s.length,...s])}return e.sort(Mn),this.values=e.reduce(((t,e)=>t.concat(e)),[]),this}toArray(){return this.values}valueOf(){const t={},e=this.values;for(;e.length;){const i=e.shift(),n=e.shift(),s=e.shift(),r=e.splice(0,s);t[i]=new n(r)}return t}}const Nn=[_n,En,bn];class Cn extends Ri{constructor(t,e=t){super(Oe("path",t),e)}array(){return this._array||(this._array=new xn(this.attr("d")))}clear(){return delete this._array,this}height(t){return null==t?this.bbox().height:this.size(this.bbox().width,t)}move(t,e){return this.attr("d",this.array().move(t,e))}plot(t){return null==t?this.array():this.clear().attr("d","string"==typeof t?t:this._array=new xn(t))}size(t,e){const i=we(this,t,e);return this.attr("d",this.array().size(i.width,i.height))}width(t){return null==t?this.bbox().width:this.size(t,this.bbox().height)}x(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)}y(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}}Cn.prototype.MorphArray=xn,pe({Container:{path:Be((function(t){return this.put(new Cn).plot(t||new xn)}))}}),ze(Cn,"Path");var Tn={__proto__:null,array:function(){return this._array||(this._array=new Qi(this.attr("points")))},clear:function(){return delete this._array,this},move:function(t,e){return this.attr("points",this.array().move(t,e))},plot:function(t){return null==t?this.array():this.clear().attr("points","string"==typeof t?t:this._array=new Qi(t))},size:function(t,e){const i=we(this,t,e);return this.attr("points",this.array().size(i.width,i.height))}};class Ln extends Ri{constructor(t,e=t){super(Oe("polygon",t),e)}}pe({Container:{polygon:Be((function(t){return this.put(new Ln).plot(t||new Qi)}))}}),Pe(Ln,Ji),Pe(Ln,Tn),ze(Ln,"Polygon");class Sn extends Ri{constructor(t,e=t){super(Oe("polyline",t),e)}}pe({Container:{polyline:Be((function(t){return this.put(new Sn).plot(t||new Qi)}))}}),Pe(Sn,Ji),Pe(Sn,Tn),ze(Sn,"Polyline");class Dn extends Ri{constructor(t,e=t){super(Oe("rect",t),e)}}Pe(Dn,{rx:zi,ry:Ii}),pe({Container:{rect:Be((function(t,e){return this.put(new Dn).size(t,e)}))}}),ze(Dn,"Rect");class On{constructor(){this._first=null,this._last=null}first(){return this._first&&this._first.value}last(){return this._last&&this._last.value}push(t){const e=void 0!==t.next?t:{value:t,next:null,prev:null};return this._last?(e.prev=this._last,this._last.next=e,this._last=e):(this._last=e,this._first=e),e}remove(t){t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t===this._last&&(this._last=t.prev),t===this._first&&(this._first=t.next),t.prev=null,t.next=null}shift(){const t=this._first;return t?(this._first=t.next,this._first&&(this._first.prev=null),this._last=this._first?this._last:null,t.value):null}}const An={nextDraw:null,frames:new On,timeouts:new On,immediates:new On,timer:()=>Ne.window.performance||Ne.window.Date,transforms:[],frame(t){const e=An.frames.push({run:t});return null===An.nextDraw&&(An.nextDraw=Ne.window.requestAnimationFrame(An._draw)),e},timeout(t,e){e=e||0;const i=An.timer().now()+e,n=An.timeouts.push({run:t,time:i});return null===An.nextDraw&&(An.nextDraw=Ne.window.requestAnimationFrame(An._draw)),n},immediate(t){const e=An.immediates.push(t);return null===An.nextDraw&&(An.nextDraw=Ne.window.requestAnimationFrame(An._draw)),e},cancelFrame(t){null!=t&&An.frames.remove(t)},clearTimeout(t){null!=t&&An.timeouts.remove(t)},cancelImmediate(t){null!=t&&An.immediates.remove(t)},_draw(t){let e=null;const i=An.timeouts.last();for(;(e=An.timeouts.shift())&&(t>=e.time?e.run():An.timeouts.push(e),e!==i););let n=null;const s=An.frames.last();for(;n!==s&&(n=An.frames.shift());)n.run(t);let r=null;for(;r=An.immediates.shift();)r();An.nextDraw=An.timeouts.first()||An.frames.first()?Ne.window.requestAnimationFrame(An._draw):null}},Rn=function(t){const e=t.start,i=t.runner.duration();return{start:e,duration:i,end:e+i,runner:t.runner}},zn=function(){const t=Ne.window;return(t.performance||t.Date).now()};let In=class extends vi{constructor(t=zn){super(),this._timeSource=t,this._startTime=0,this._speed=1,this._persist=0,this._nextFrame=null,this._paused=!0,this._runners=[],this._runnerIds=[],this._lastRunnerId=-1,this._time=0,this._lastSourceTime=0,this._lastStepTime=0,this._step=this._stepFn.bind(this,!1),this._stepImmediate=this._stepFn.bind(this,!0)}active(){return!!this._nextFrame}finish(){return this.time(this.getEndTimeOfTimeline()+1),this.pause()}getEndTime(){const t=this.getLastRunnerInfo(),e=t?t.runner.duration():0;return(t?t.start:this._time)+e}getEndTimeOfTimeline(){const t=this._runners.map((t=>t.start+t.runner.duration()));return Math.max(0,...t)}getLastRunnerInfo(){return this.getRunnerInfoById(this._lastRunnerId)}getRunnerInfoById(t){return this._runners[this._runnerIds.indexOf(t)]||null}pause(){return this._paused=!0,this._continue()}persist(t){return null==t?this._persist:(this._persist=t,this)}play(){return this._paused=!1,this.updateTime()._continue()}reverse(t){const e=this.speed();if(null==t)return this.speed(-e);const i=Math.abs(e);return this.speed(t?-i:i)}schedule(t,e,i){if(null==t)return this._runners.map(Rn);let n=0;const s=this.getEndTime();if(e=e||0,null==i||"last"===i||"after"===i)n=s;else if("absolute"===i||"start"===i)n=e,e=0;else if("now"===i)n=this._time;else if("relative"===i){const i=this.getRunnerInfoById(t.id);i&&(n=i.start+e,e=0)}else{if("with-last"!==i)throw new Error('Invalid value for the "when" parameter');{const t=this.getLastRunnerInfo();n=t?t.start:this._time}}t.unschedule(),t.timeline(this);const r=t.persist(),o={persist:null===r?this._persist:r,start:n+e,runner:t};return this._lastRunnerId=t.id,this._runners.push(o),this._runners.sort(((t,e)=>t.start-e.start)),this._runnerIds=this._runners.map((t=>t.runner.id)),this.updateTime()._continue(),this}seek(t){return this.time(this._time+t)}source(t){return null==t?this._timeSource:(this._timeSource=t,this)}speed(t){return null==t?this._speed:(this._speed=t,this)}stop(){return this.time(0),this.pause()}time(t){return null==t?this._time:(this._time=t,this._continue(!0))}unschedule(t){const e=this._runnerIds.indexOf(t.id);return e<0||(this._runners.splice(e,1),this._runnerIds.splice(e,1),t.timeline(null)),this}updateTime(){return this.active()||(this._lastSourceTime=this._timeSource()),this}_continue(t=!1){return An.cancelFrame(this._nextFrame),this._nextFrame=null,t?this._stepImmediate():(this._paused||(this._nextFrame=An.frame(this._step)),this)}_stepFn(t=!1){const e=this._timeSource();let i=e-this._lastSourceTime;t&&(i=0);const n=this._speed*i+(this._time-this._lastStepTime);this._lastSourceTime=e,t||(this._time+=n,this._time=this._time<0?0:this._time),this._lastStepTime=this._time,this.fire("time",this._time);for(let r=this._runners.length;r--;){const t=this._runners[r],e=t.runner;this._time-t.start<=0&&e.reset()}let s=!1;for(let r=0,o=this._runners.length;r<o;r++){const t=this._runners[r],e=t.runner;let i=n;const a=this._time-t.start;if(a<=0){s=!0;continue}if(a<i&&(i=a),!e.active())continue;if(e.step(i).done){if(!0!==t.persist){e.duration()-e.time()+this._time+t.persist<this._time&&(e.unschedule(),--r,--o)}}else s=!0}return s&&!(this._speed<0&&0===this._time)||this._runnerIds.length&&this._speed<0&&this._time>0?this._continue():(this.pause(),this.fire("finished")),this}};pe({Element:{timeline:function(t){return null==t?(this._timeline=this._timeline||new In,this._timeline):(this._timeline=t,this)}}});class Fn extends vi{constructor(t){super(),this.id=Fn.id++,t="function"==typeof(t=null==t?_i:t)?new an(t):t,this._element=null,this._timeline=null,this.done=!1,this._queue=[],this._duration="number"==typeof t&&t,this._isDeclarative=t instanceof an,this._stepper=this._isDeclarative?t:new on,this._history={},this.enabled=!0,this._time=0,this._lastTime=0,this._reseted=!0,this.transforms=new ri,this.transformId=1,this._haveReversed=!1,this._reverse=!1,this._loopsDone=0,this._swing=!1,this._wait=0,this._times=1,this._frameId=null,this._persist=!!this._isDeclarative||null}static sanitise(t,e,i){let n=1,s=!1,r=0;return e=e||Mi,i=i||"last","object"!=typeof(t=t||_i)||t instanceof rn||(e=t.delay||e,i=t.when||i,s=t.swing||s,n=t.times||n,r=t.wait||r,t=t.duration||_i),{duration:t,delay:e,swing:s,times:n,wait:r,when:i}}active(t){return null==t?this.enabled:(this.enabled=t,this)}addTransform(t,e){return this.transforms.lmultiplyO(t),this}after(t){return this.on("finished",t)}animate(t,e,i){const n=Fn.sanitise(t,e,i),s=new Fn(n.duration);return this._timeline&&s.timeline(this._timeline),this._element&&s.element(this._element),s.loop(n).schedule(n.delay,n.when)}clearTransform(){return this.transforms=new ri,this}clearTransformsFromQueue(){this.done&&this._timeline&&this._timeline._runnerIds.includes(this.id)||(this._queue=this._queue.filter((t=>!t.isTransform)))}delay(t){return this.animate(0,t)}duration(){return this._times*(this._wait+this._duration)-this._wait}during(t){return this.queue(null,t)}ease(t){return this._stepper=new on(t),this}element(t){return null==t?this._element:(this._element=t,t._prepareRunner(),this)}finish(){return this.step(1/0)}loop(t,e,i){return"object"==typeof t&&(e=t.swing,i=t.wait,t=t.times),this._times=t||1/0,this._swing=e||!1,this._wait=i||0,!0===this._times&&(this._times=1/0),this}loops(t){const e=this._duration+this._wait;if(null==t){const t=Math.floor(this._time/e),i=(this._time-t*e)/this._duration;return Math.min(t+i,this._times)}const i=t%1,n=e*Math.floor(t)+this._duration*i;return this.time(n)}persist(t){return null==t?this._persist:(this._persist=t,this)}position(t){const e=this._time,i=this._duration,n=this._wait,s=this._times,r=this._swing,o=this._reverse;let a;if(null==t){const t=function(t){const e=r*Math.floor(t%(2*(n+i))/(n+i)),s=e&&!o||!e&&o,a=Math.pow(-1,s)*(t%(n+i))/i+s;return Math.max(Math.min(a,1),0)},h=s*(n+i)-n;return a=e<=0?Math.round(t(1e-5)):e<h?t(e):Math.round(t(h-1e-5)),a}const h=Math.floor(this.loops()),d=r&&h%2==0;return a=h+(d&&!o||o&&d?t:1-t),this.loops(a)}progress(t){return null==t?Math.min(1,this._time/this.duration()):this.time(t*this.duration())}queue(t,e,i,n){this._queue.push({initialiser:t||wi,runner:e||wi,retarget:i,isTransform:n,initialised:!1,finished:!1});return this.timeline()&&this.timeline()._continue(),this}reset(){return this._reseted||(this.time(0),this._reseted=!0),this}reverse(t){return this._reverse=null==t?!this._reverse:t,this}schedule(t,e,i){if(t instanceof In||(i=e,e=t,t=this.timeline()),!t)throw Error("Runner cannot be scheduled without timeline");return t.schedule(this,e,i),this}step(t){if(!this.enabled)return this;t=null==t?16:t,this._time+=t;const e=this.position(),i=this._lastPosition!==e&&this._time>=0;this._lastPosition=e;const n=this.duration(),s=this._lastTime<=0&&this._time>0,r=this._lastTime<n&&this._time>=n;this._lastTime=this._time,s&&this.fire("start",this);const o=this._isDeclarative;this.done=!o&&!r&&this._time>=n,this._reseted=!1;let a=!1;return(i||o)&&(this._initialise(i),this.transforms=new ri,a=this._run(o?t:e),this.fire("step",this)),this.done=this.done||a&&o,r&&this.fire("finished",this),this}time(t){if(null==t)return this._time;const e=t-this._time;return this.step(e),this}timeline(t){return void 0===t?this._timeline:(this._timeline=t,this)}unschedule(){const t=this.timeline();return t&&t.unschedule(this),this}_initialise(t){if(t||this._isDeclarative)for(let e=0,i=this._queue.length;e<i;++e){const i=this._queue[e],n=this._isDeclarative||!i.initialised&&t;t=!i.finished,n&&t&&(i.initialiser.call(this),i.initialised=!0)}}_rememberMorpher(t,e){if(this._history[t]={morpher:e,caller:this._queue[this._queue.length-1]},this._isDeclarative){const t=this.timeline();t&&t.play()}}_run(t){let e=!0;for(let i=0,n=this._queue.length;i<n;++i){const n=this._queue[i],s=n.runner.call(this,t);n.finished=n.finished||!0===s,e=e&&n.finished}return e}_tryRetarget(t,e,i){if(this._history[t]){if(!this._history[t].caller.initialised){const e=this._queue.indexOf(this._history[t].caller);return this._queue.splice(e,1),!1}this._history[t].caller.retarget?this._history[t].caller.retarget.call(this,e,i):this._history[t].morpher.to(e),this._history[t].caller.finished=!1;const n=this.timeline();return n&&n.play(),!0}return!1}}Fn.id=0;class kn{constructor(t=new ri,e=-1,i=!0){this.transforms=t,this.id=e,this.done=i}clearTransformsFromQueue(){}}Pe([Fn,kn],{mergeWith(t){return new kn(t.transforms.lmultiply(this.transforms),t.id)}});const Pn=(t,e)=>t.lmultiplyO(e),Bn=t=>t.transforms;function Hn(){const t=this._transformationRunners.runners.map(Bn).reduce(Pn,new ri);this.transform(t),this._transformationRunners.merge(),1===this._transformationRunners.length()&&(this._frameId=null)}class $n{constructor(){this.runners=[],this.ids=[]}add(t){if(this.runners.includes(t))return;const e=t.id+1;return this.runners.push(t),this.ids.push(e),this}clearBefore(t){const e=this.ids.indexOf(t+1)||1;return this.ids.splice(0,e,0),this.runners.splice(0,e,new kn).forEach((t=>t.clearTransformsFromQueue())),this}edit(t,e){const i=this.ids.indexOf(t+1);return this.ids.splice(i,1,t+1),this.runners.splice(i,1,e),this}getByID(t){return this.runners[this.ids.indexOf(t+1)]}length(){return this.ids.length}merge(){let t=null;for(let e=0;e<this.runners.length;++e){const i=this.runners[e];if(t&&i.done&&t.done&&(!i._timeline||!i._timeline._runnerIds.includes(i.id))&&(!t._timeline||!t._timeline._runnerIds.includes(t.id))){this.remove(i.id);const n=i.mergeWith(t);this.edit(t.id,n),t=n,--e}else t=i}return this}remove(t){const e=this.ids.indexOf(t+1);return this.ids.splice(e,1),this.runners.splice(e,1),this}}pe({Element:{animate(t,e,i){const n=Fn.sanitise(t,e,i),s=this.timeline();return new Fn(n.duration).loop(n).element(this).timeline(s.play()).schedule(n.delay,n.when)},delay(t,e){return this.animate(0,t,e)},_clearTransformRunnersBefore(t){this._transformationRunners.clearBefore(t.id)},_currentTransform(t){return this._transformationRunners.runners.filter((e=>e.id<=t.id)).map(Bn).reduce(Pn,new ri)},_addRunner(t){this._transformationRunners.add(t),An.cancelImmediate(this._frameId),this._frameId=An.immediate(Hn.bind(this))},_prepareRunner(){null==this._frameId&&(this._transformationRunners=(new $n).add(new kn(new ri(this))))}}});Pe(Fn,{attr(t,e){return this.styleAttr("attr",t,e)},css(t,e){return this.styleAttr("css",t,e)},styleAttr(t,e,i){if("string"==typeof e)return this.styleAttr(t,{[e]:i});let n=e;if(this._tryRetarget(t,n))return this;let s=new wn(this._stepper).to(n),r=Object.keys(n);return this.queue((function(){s=s.from(this.element()[t](r))}),(function(e){return this.element()[t](s.at(e).valueOf()),s.done()}),(function(e){const i=Object.keys(e),o=(a=r,i.filter((t=>!a.includes(t))));var a;if(o.length){const e=this.element()[t](o),i=new bn(s.from()).valueOf();Object.assign(i,e),s.from(i)}const h=new bn(s.to()).valueOf();Object.assign(h,e),s.to(h),r=i,n=e})),this._rememberMorpher(t,s),this},zoom(t,e){if(this._tryRetarget("zoom",t,e))return this;let i=new wn(this._stepper).to(new Ci(t));return this.queue((function(){i=i.from(this.element().zoom())}),(function(t){return this.element().zoom(i.at(t),e),i.done()}),(function(t,n){e=n,i.to(t)})),this._rememberMorpher("zoom",i),this},transform(t,e,i){if(e=t.relative||e,this._isDeclarative&&!e&&this._tryRetarget("transform",t))return this;const n=ri.isMatrixLike(t);i=null!=t.affine?t.affine:null!=i?i:!n;const s=new wn(this._stepper).type(i?En:ri);let r,o,a,l,c;return this.queue((function(){o=o||this.element(),r=r||_e(t,o),c=new ri(e?void 0:o),o._addRunner(this),e||o._clearTransformRunnersBefore(this)}),(function(u){e||this.clearTransform();const{x:p,y:m}=new ni(r).transform(o._currentTransform(this));let f=new ri(d(h({},t),{origin:[p,m]})),g=this._isDeclarative&&a?a:c;if(i){f=f.decompose(p,m),g=g.decompose(p,m);const t=f.rotate,e=g.rotate,i=[t-360,t,t+360],n=i.map((t=>Math.abs(t-e))),s=Math.min(...n),r=n.indexOf(s);f.rotate=i[r]}e&&(n||(f.rotate=t.rotate||0),this._isDeclarative&&l&&(g.rotate=l)),s.from(g),s.to(f);const y=s.at(u);return l=y.rotate,a=new ri(y),this.addTransform(a),o._addRunner(this),s.done()}),(function(e){(e.origin||"center").toString()!==(t.origin||"center").toString()&&(r=_e(e,o)),t=d(h({},e),{origin:r})}),!0),this._isDeclarative&&this._rememberMorpher("transform",s),this},x(t,e){return this._queueNumber("x",t)},y(t){return this._queueNumber("y",t)},dx(t=0){return this._queueNumberDelta("x",t)},dy(t=0){return this._queueNumberDelta("y",t)},dmove(t,e){return this.dx(t).dy(e)},_queueNumberDelta(t,e){if(e=new Ci(e),this._tryRetarget(t,e))return this;const i=new wn(this._stepper).to(e);let n=null;return this.queue((function(){n=this.element()[t](),i.from(n),i.to(n+e)}),(function(e){return this.element()[t](i.at(e)),i.done()}),(function(t){i.to(n+new Ci(t))})),this._rememberMorpher(t,i),this},_queueObject(t,e){if(this._tryRetarget(t,e))return this;const i=new wn(this._stepper).to(e);return this.queue((function(){i.from(this.element()[t]())}),(function(e){return this.element()[t](i.at(e)),i.done()})),this._rememberMorpher(t,i),this},_queueNumber(t,e){return this._queueObject(t,new Ci(e))},cx(t){return this._queueNumber("cx",t)},cy(t){return this._queueNumber("cy",t)},move(t,e){return this.x(t).y(e)},center(t,e){return this.cx(t).cy(e)},size(t,e){let i;return t&&e||(i=this._element.bbox()),t||(t=i.width/i.height*e),e||(e=i.height/i.width*t),this.width(t).height(e)},width(t){return this._queueNumber("width",t)},height(t){return this._queueNumber("height",t)},plot(t,e,i,n){if(4===arguments.length)return this.plot([t,e,i,n]);if(this._tryRetarget("plot",t))return this;const s=new wn(this._stepper).type(this._element.MorphArray).to(t);return this.queue((function(){s.from(this._element.array())}),(function(t){return this._element.plot(s.at(t)),s.done()})),this._rememberMorpher("plot",s),this},leading(t){return this._queueNumber("leading",t)},viewbox(t,e,i,n){return this._queueObject("viewbox",new hi(t,e,i,n))},update(t){return"object"!=typeof t?this.update({offset:arguments[0],color:arguments[1],opacity:arguments[2]}):(null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",t.offset),this)}}),Pe(Fn,{rx:zi,ry:Ii,from:Wi,to:Yi}),ze(Fn,"Runner");class Gn extends Oi{constructor(t,e=t){super(Oe("svg",t),e),this.namespace()}defs(){return this.isRoot()?Ae(this.node.querySelector("defs"))||this.put(new Ai):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof Ne.window.SVGElement)&&"#document-fragment"!==this.node.parentNode.nodeName}namespace(){return this.isRoot()?this.attr({xmlns:Ee,version:"1.1"}).attr("xmlns:xlink",be,Me).attr("xmlns:svgjs","http://svgjs.dev/svgjs",Me):this.root().namespace()}removeNamespace(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,Me).attr("xmlns:svgjs",null,Me)}root(){return this.isRoot()?this:super.root()}}pe({Container:{nested:Be((function(){return this.put(new Gn)}))}}),ze(Gn,"Svg",!0);let Un=class extends Oi{constructor(t,e=t){super(Oe("symbol",t),e)}};pe({Container:{symbol:Be((function(){return this.put(new Un)}))}}),ze(Un,"Symbol");var jn={__proto__:null,plain:function(t){return!1===this._build&&this.clear(),this.node.appendChild(Ne.document.createTextNode(t)),this},length:function(){return this.node.getComputedTextLength()},x:function(t,e=this.bbox()){return null==t?e.x:this.attr("x",this.attr("x")+t-e.x)},y:function(t,e=this.bbox()){return null==t?e.y:this.attr("y",this.attr("y")+t-e.y)},move:function(t,e,i=this.bbox()){return this.x(t,i).y(e,i)},cx:function(t,e=this.bbox()){return null==t?e.cx:this.attr("x",this.attr("x")+t-e.cx)},cy:function(t,e=this.bbox()){return null==t?e.cy:this.attr("y",this.attr("y")+t-e.cy)},center:function(t,e,i=this.bbox()){return this.cx(t,i).cy(e,i)},ax:function(t){return this.attr("x",t)},ay:function(t){return this.attr("y",t)},amove:function(t,e){return this.ax(t).ay(e)},build:function(t){return this._build=!!t,this}};class Wn extends Ri{constructor(t,e=t){super(Oe("text",t),e),this.dom.leading=new Ci(1.3),this._rebuild=!0,this._build=!1}leading(t){return null==t?this.dom.leading:(this.dom.leading=new Ci(t),this.rebuild())}rebuild(t){if("boolean"==typeof t&&(this._rebuild=t),this._rebuild){const t=this;let e=0;const i=this.dom.leading;this.each((function(n){const s=Ne.window.getComputedStyle(this.node).getPropertyValue("font-size"),r=i*new Ci(s);this.dom.newLined&&(this.attr("x",t.attr("x")),"\n"===this.text()?e+=r:(this.attr("dy",n?r+e:0),e=0))})),this.fire("rebuild")}return this}setData(t){return this.dom=t,this.dom.leading=new Ci(t.leading||1.3),this}text(t){if(void 0===t){const e=this.node.childNodes;let i=0;t="";for(let n=0,s=e.length;n<s;++n)"textPath"!==e[n].nodeName?(n!==i&&3!==e[n].nodeType&&!0===Ae(e[n]).dom.newLined&&(t+="\n"),t+=e[n].textContent):0===n&&(i=1);return t}if(this.clear().build(!0),"function"==typeof t)t.call(this,this);else for(let e=0,i=(t=(t+"").split("\n")).length;e<i;e++)this.newLine(t[e]);return this.build(!1).rebuild()}}Pe(Wn,jn),pe({Container:{text:Be((function(t=""){return this.put(new Wn).text(t)})),plain:Be((function(t=""){return this.put(new Wn).plain(t)}))}}),ze(Wn,"Text");class Yn extends Ri{constructor(t,e=t){super(Oe("tspan",t),e),this._build=!1}dx(t){return this.attr("dx",t)}dy(t){return this.attr("dy",t)}newLine(){this.dom.newLined=!0;const t=this.parent();if(!(t instanceof Wn))return this;const e=t.index(this),i=Ne.window.getComputedStyle(this.node).getPropertyValue("font-size"),n=t.dom.leading*new Ci(i);return this.dy(e?n:0).attr("x",t.x())}text(t){return null==t?this.node.textContent+(this.dom.newLined?"\n":""):("function"==typeof t?(this.clear().build(!0),t.call(this,this),this.build(!1)):this.plain(t),this)}}Pe(Yn,jn),pe({Tspan:{tspan:Be((function(t=""){const e=new Yn;return this._build||this.clear(),this.put(e).text(t)}))},Text:{newLine:function(t=""){return this.tspan(t).newLine()}}}),ze(Yn,"Tspan");class Vn extends Ri{constructor(t,e=t){super(Oe("circle",t),e)}radius(t){return this.attr("r",t)}rx(t){return this.attr("r",t)}ry(t){return this.rx(t)}size(t){return this.radius(new Ci(t).divide(2))}}Pe(Vn,{x:Fi,y:ki,cx:Pi,cy:Bi,width:Hi,height:$i}),pe({Container:{circle:Be((function(t=0){return this.put(new Vn).size(t).move(0,0)}))}}),ze(Vn,"Circle");class Xn extends Oi{constructor(t,e=t){super(Oe("clipPath",t),e)}remove(){return this.targets().forEach((function(t){t.unclip()})),super.remove()}targets(){return ui("svg [clip-path*="+this.id()+"]")}}pe({Container:{clip:Be((function(){return this.defs().put(new Xn)}))},Element:{clipper(){return this.reference("clip-path")},clipWith(t){const e=t instanceof Xn?t:this.parent().clip().add(t);return this.attr("clip-path","url(#"+e.id()+")")},unclip(){return this.attr("clip-path",null)}}}),ze(Xn,"ClipPath");class Zn extends Si{constructor(t,e=t){super(Oe("foreignObject",t),e)}}pe({Container:{foreignObject:Be((function(t,e){return this.put(new Zn).size(t,e)}))}}),ze(Zn,"ForeignObject");var Kn={__proto__:null,dmove:function(t,e){return this.children().forEach(((i,n)=>{let s;try{s=i.bbox()}catch(h){return}const r=new ri(i),o=r.translate(t,e).transform(r.inverse()),a=new ni(s.x,s.y).transform(o);i.move(a.x,a.y)})),this},dx:function(t){return this.dmove(t,0)},dy:function(t){return this.dmove(0,t)},height:function(t,e=this.bbox()){return null==t?e.height:this.size(e.width,t,e)},move:function(t=0,e=0,i=this.bbox()){const n=t-i.x,s=e-i.y;return this.dmove(n,s)},size:function(t,e,i=this.bbox()){const n=we(this,t,e,i),s=n.width/i.width,r=n.height/i.height;return this.children().forEach(((t,e)=>{const n=new ni(i).transform(new ri(t).inverse());t.scale(s,r,n.x,n.y)})),this},width:function(t,e=this.bbox()){return null==t?e.width:this.size(t,e.height,e)},x:function(t,e=this.bbox()){return null==t?e.x:this.move(t,e.y,e)},y:function(t,e=this.bbox()){return null==t?e.y:this.move(e.x,t,e)}};class qn extends Oi{constructor(t,e=t){super(Oe("g",t),e)}}Pe(qn,Kn),pe({Container:{group:Be((function(){return this.put(new qn)}))}}),ze(qn,"G");class Qn extends Oi{constructor(t,e=t){super(Oe("a",t),e)}target(t){return this.attr("target",t)}to(t){return this.attr("href",t,be)}}Pe(Qn,Kn),pe({Container:{link:Be((function(t){return this.put(new Qn).to(t)}))},Element:{unlink(){const t=this.linker();if(!t)return this;const e=t.parent();if(!e)return this.remove();const i=e.index(t);return e.add(this,i),t.remove(),this},linkTo(t){let e=this.linker();return e||(e=new Qn,this.wrap(e)),"function"==typeof t?t.call(e,e):e.to(t),this},linker(){const t=this.parent();return t&&"a"===t.node.nodeName.toLowerCase()?t:null}}}),ze(Qn,"A");class Jn extends Oi{constructor(t,e=t){super(Oe("mask",t),e)}remove(){return this.targets().forEach((function(t){t.unmask()})),super.remove()}targets(){return ui("svg [mask*="+this.id()+"]")}}pe({Container:{mask:Be((function(){return this.defs().put(new Jn)}))},Element:{masker(){return this.reference("mask")},maskWith(t){const e=t instanceof Jn?t:this.parent().mask().add(t);return this.attr("mask","url(#"+e.id()+")")},unmask(){return this.attr("mask",null)}}}),ze(Jn,"Mask");class ts extends Si{constructor(t,e=t){super(Oe("stop",t),e)}update(t){return("number"==typeof t||t instanceof Ci)&&(t={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",new Ci(t.offset)),this}}pe({Gradient:{stop:function(t,e,i){return this.put(new ts).update(t,e,i)}}}),ze(ts,"Stop");let es=class extends Si{constructor(t,e=t){super(Oe("style",t),e)}addText(t=""){return this.node.textContent+=t,this}font(t,e,i={}){return this.rule("@font-face",h({fontFamily:t,src:e},i))}rule(t,e){return this.addText(function(t,e){if(!t)return"";if(!e)return t;let i=t+"{";for(const n in e)i+=n.replace(/([A-Z])/g,(function(t,e){return"-"+e.toLowerCase()}))+":"+e[n]+";";return i+="}",i}(t,e))}};pe("Dom",{style(t,e){return this.put(new es).rule(t,e)},fontface(t,e,i){return this.put(new es).font(t,e,i)}}),ze(es,"Style");class is extends Wn{constructor(t,e=t){super(Oe("textPath",t),e)}array(){const t=this.track();return t?t.array():null}plot(t){const e=this.track();let i=null;return e&&(i=e.plot(t)),null==t?i:this}track(){return this.reference("href")}}pe({Container:{textPath:Be((function(t,e){return t instanceof Wn||(t=this.text(t)),t.path(e)}))},Text:{path:Be((function(t,e=!0){const i=new is;let n;if(t instanceof Cn||(t=this.defs().path(t)),i.attr("href","#"+t,be),e)for(;n=this.node.firstChild;)i.node.appendChild(n);return this.put(i)})),textPath(){return this.findOne("textPath")}},Path:{text:Be((function(t){return t instanceof Wn||(t=(new Wn).addTo(this.parent()).text(t)),t.path(this)})),targets(){return ui("svg textPath").filter((t=>(t.attr("href")||"").includes(this.id())))}}}),is.prototype.MorphArray=xn,ze(is,"TextPath");class ns extends Ri{constructor(t,e=t){super(Oe("use",t),e)}use(t,e){return this.attr("href",(e||"")+"#"+t,be)}}pe({Container:{use:Be((function(t,e){return this.put(new ns).use(t,e)}))}}),ze(ns,"Use");const ss=De;Pe([Gn,Un,Ki,Zi,en],me("viewbox")),Pe([tn,Sn,Ln,Cn],me("marker")),Pe(Wn,me("Text")),Pe(Cn,me("Path")),Pe(Ai,me("Defs")),Pe([Wn,Yn],me("Tspan")),Pe([Dn,Ui,Xi,Fn],me("radius")),Pe(vi,me("EventTarget")),Pe(Li,me("Dom")),Pe(Si,me("Element")),Pe(Ri,me("Shape")),Pe([Oi,ji],me("Container")),Pe(Xi,me("Gradient")),Pe(Fn,me("Runner")),li.extend([...new Set(ue)]),function(t=[]){Nn.push(...[].concat(t))}([Ci,ii,hi,ri,Ni,Qi,xn,ni]),Pe(Nn,{to(t){return(new wn).type(this.constructor).from(this.toArray()).to(t)},fromArray(t){return this.init(t),this},toConsumable(){return this.toArray()},morph(t,e,i,n,s){return this.fromArray(t.map((function(t,r){return n.step(t,e[r],i,s[r],s)})))}});const rs={paddingX:15,paddingY:5,imgMaxWidth:200,imgMaxHeight:100,iconSize:20,lineWidth:1,lineColor:"#549688",lineDasharray:"none",lineFlow:!1,lineFlowDuration:1,lineFlowForward:!0,lineStyle:"straight",rootLineKeepSameInCurve:!0,rootLineStartPositionKeepSameInCurve:!1,lineRadius:5,showLineMarker:!1,generalizationLineWidth:1,generalizationLineColor:"#549688",generalizationLineMargin:0,generalizationNodeMargin:20,associativeLineWidth:2,associativeLineColor:"rgb(51, 51, 51)",associativeLineActiveWidth:8,associativeLineActiveColor:"rgba(2, 167, 240, 1)",associativeLineDasharray:[6,4],associativeLineTextColor:"rgb(51, 51, 51)",associativeLineTextFontSize:14,associativeLineTextLineHeight:1.2,associativeLineTextFontFamily:"微软雅黑, Microsoft YaHei",backgroundColor:"#fafafa",backgroundImage:"none",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"cover",nodeUseLineStyle:!1,root:{shape:"rectangle",fillColor:"#549688",fontFamily:"微软雅黑, Microsoft YaHei",color:"#fff",fontSize:16,fontWeight:"bold",fontStyle:"normal",borderColor:"transparent",borderWidth:0,borderDasharray:"none",borderRadius:5,textDecoration:"none",gradientStyle:!1,startColor:"#549688",endColor:"#fff",startDir:[0,0],endDir:[1,0],lineMarkerDir:"end",hoverRectColor:"",hoverRectRadius:5},second:{shape:"rectangle",marginX:100,marginY:40,fillColor:"#fff",fontFamily:"微软雅黑, Microsoft YaHei",color:"#565656",fontSize:16,fontWeight:"normal",fontStyle:"normal",borderColor:"#549688",borderWidth:1,borderDasharray:"none",borderRadius:5,textDecoration:"none",gradientStyle:!1,startColor:"#549688",endColor:"#fff",startDir:[0,0],endDir:[1,0],lineMarkerDir:"end",hoverRectColor:"",hoverRectRadius:5},node:{shape:"rectangle",marginX:50,marginY:0,fillColor:"transparent",fontFamily:"微软雅黑, Microsoft YaHei",color:"#6a6d6c",fontSize:14,fontWeight:"normal",fontStyle:"normal",borderColor:"transparent",borderWidth:0,borderRadius:5,borderDasharray:"none",textDecoration:"none",gradientStyle:!1,startColor:"#549688",endColor:"#fff",startDir:[0,0],endDir:[1,0],lineMarkerDir:"end",hoverRectColor:"",hoverRectRadius:5},generalization:{shape:"rectangle",marginX:100,marginY:40,fillColor:"#fff",fontFamily:"微软雅黑, Microsoft YaHei",color:"#565656",fontSize:16,fontWeight:"normal",fontStyle:"normal",borderColor:"#549688",borderWidth:1,borderDasharray:"none",borderRadius:5,textDecoration:"none",gradientStyle:!1,startColor:"#549688",endColor:"#fff",startDir:[0,0],endDir:[1,0],hoverRectColor:"",hoverRectRadius:5}},os=["lineWidth","lineColor","lineDasharray","lineStyle","generalizationLineWidth","generalizationLineColor","associativeLineWidth","associativeLineColor","associativeLineActiveWidth","associativeLineActiveColor","associativeLineTextColor","associativeLineTextFontSize","associativeLineTextLineHeight","associativeLineTextFontFamily","backgroundColor","backgroundImage","backgroundRepeat","backgroundPosition","backgroundSize","rootLineKeepSameInCurve","rootLineStartPositionKeepSameInCurve","showLineMarker","lineRadius","hoverRectColor","hoverRectRadius","lineFlow","lineFlowDuration","lineFlowForward"],as=["lineColor","lineDasharray","lineWidth","lineMarkerDir","lineFlow","lineFlowDuration","lineFlowForward"],hs=(t,e,i,n,s,r=0,o=0,a=[])=>{let h=!1;if(i&&(h=i(t,e,s,r,o,a)),!h&&t.children&&t.children.length>0){let e=r+1;t.children.forEach(((s,r)=>{hs(s,t,i,n,!1,e,r,[...a,t])}))}n&&n(t,e,s,r,o,a)},ds=t=>{try{return JSON.parse(JSON.stringify(t))}catch(e){return null}},ls=(t,e,i=!1)=>{if(t.data=ds(e.data),i){t.data.isActive=!1;Us(t.data).forEach((t=>{t.isActive=!1}))}return t.children=[],e.children&&e.children.length>0&&e.children.forEach(((e,n)=>{t.children[n]=ls({},e,i)})),Object.keys(e).forEach((i=>{["data","children"].includes(i)||/^_/.test(i)||(t[i]=e[i])})),t},cs=(t,e,i=!1,n=!0)=>{const s=e.nodeData?e.nodeData:e;return t.data=ds(s.data),n?delete t.data.uid:t.data.uid||(t.data.uid=ys()),i&&(t.data.isActive=!1),t.children=[],e.children&&e.children.length>0?e.children.forEach(((e,s)=>{t.children[s]=cs({},e,i,n)})):e.nodeData&&e.nodeData.children&&e.nodeData.children.length>0&&e.nodeData.children.forEach(((e,s)=>{t.children[s]=cs({},e,i,n)})),Object.keys(s).forEach((e=>{["data","children"].includes(e)||/^_/.test(e)||(t[e]=s[e])})),t},us=(t,e=300,i)=>{let n=null;return(...s)=>{n||(n=setTimeout((()=>{t.call(i,...s),n=null}),e))}},ps=(t,e=()=>{})=>{let i=0,n=t.length;if(n<=0)return e();let s=()=>{i>=n?e():(t[i](),setTimeout((()=>{i++,s()}),0))};s()},ms=t=>t*(Math.PI/180);let fs=null;const gs=t=>(fs||(fs=document.createElement("div")),fs.innerHTML=t,fs.textContent),ys=()=>de(),xs=t=>new Promise(((e,i)=>{let n=new FileReader;n.readAsDataURL(t),n.onload=t=>c(exports,null,(function*(){let i=t.target.result,n=yield(s=i,new Promise((t=>{let e=new Image;e.src=s,e.onload=()=>{t({width:e.width,height:e.height})},e.onerror=()=>{t({width:0,height:0})}})));var s;e({url:i,size:n})})),n.onerror=t=>{i(t)}})),vs=t=>Object.prototype.toString.call(t).slice(8,-1),ws=t=>null==t||""===t;let _s=null;const Es=t=>(t=String(t).replaceAll(/\s+/g,""),["#fff","#ffffff","#FFF","#FFFFFF","rgb(255,255,255)"].includes(t)||/rgba\(255,255,255,[^)]+\)/.test(t)),Ms=t=>(t=String(t).replaceAll(/\s+/g,""),["","transparent"].includes(t)||/rgba\(\d+,\d+,\d+,0\)/.test(t));let bs=null;const Ns=t=>!/^_/.test(t)&&!Bt.includes(t),Cs=t=>{let e=[];return t.forEach((i=>{t.find((t=>t.uid!==i.uid&&t.isAncestor(i)))||e.push(i)})),e},Ts=(t,e={})=>{(e=h({},e))&&e.richText&&e.resetRichText&&delete e.resetRichText;const i=t=>{t.forEach((t=>{t.data=h(h({},t.data),e),t.children&&t.children.length>0&&i(t.children)}))};return i(t),t},Ls=(t,e=!1,i=null)=>{const n=t=>{t.forEach((t=>{t.data||(t.data={}),(e||ws(t.data.uid))&&(t.data.uid=ys()),i&&i(t),t.children&&t.children.length>0&&n(t.children)}))};return n(t),t},Ss=t=>t?Array.isArray(t)?t:[t]:[],Ds=t=>t.parent?t.parent.nodeData.children.findIndex((e=>e.data.uid===t.uid)):0,Os=(t,e)=>e.findIndex((e=>e.uid===t.uid)),As=t=>{let e=0;for(let i=0;i<t.length;i++)e=t.charCodeAt(i)+((e<<5)-e);return"hsla("+new le(e).genrand_int32()%360+", 50%, 50%, 1)"},Rs=t=>([["&","&"],["<","<"],[">",">"]].forEach((e=>{t=t.replace(new RegExp(e[0],"g"),e[1])})),t),zs=(t,e)=>{const i=vs(t);if(i!==vs(e))return!1;if("Object"===i){const i=Object.keys(t),n=Object.keys(e);if(i.length!==n.length)return!1;for(let s=0;s<i.length;s++){const r=i[s];if(!n.includes(r))return!1;if(!zs(t[r],e[r]))return!1}return!0}if("Array"===i){if(t.length!==e.length)return!1;for(let i=0;i<t.length;i++){const n=t[i],s=e[i];if(vs(n)!==vs(s))return!1;if(!zs(n,s))return!1}return!0}return t===e},Is=()=>navigator.clipboard&&"function"==typeof navigator.clipboard.read,Fs=t=>{navigator.clipboard&&navigator.clipboard.writeText&&navigator.clipboard.writeText(JSON.stringify(t))},ks=t=>{if(!t||!t.parent)return;const e=Ds(t);-1!==e&&t.parent.nodeData.children.splice(e,1)},Ps=t=>({simpleMindMap:!0,data:t}),Bs=t=>{let e=null;if("string"==typeof t)try{const i=JSON.parse(t);"object"==typeof i&&i.simpleMindMap&&(e=i.data)}catch(n){}else"object"==typeof t&&t.simpleMindMap&&(e=t.data);const i=!!e;return{isSmm:i,data:i?e:String(t)}},Hs=(t,e)=>{t.preventDefault();const i=window.getSelection();if(!i.rangeCount)return;i.deleteFromDocument(),e=e||t.clipboardData.getData("text"),e=Rs(e);const n=(e=gs(e)).split(/\n/g),s=document.createDocumentFragment();n.forEach(((t,e)=>{const i=document.createTextNode(t);if(s.appendChild(i),e<n.length-1){const t=document.createElement("br");s.appendChild(t)}})),i.getRangeAt(0).insertNode(s),i.collapseToEnd()},$s=t=>{const e={},i=(t,n)=>{const s=t.data.uid;n&&n.children.push(s),e[s]={isRoot:!n,data:h({},t.data),children:[]},t.children&&t.children.length>0&&t.children.forEach((t=>{i(t,e[s])}))};return i(t,null),e};document.documentElement.requestFullScreen||document.documentElement.webkitRequestFullScreen||document.documentElement.mozRequestFullScreen||document.documentElement.msRequestFullscreen;const Gs=({el:t,width:e,height:i})=>{const n=new Zn;return void 0!==e&&n.width(e),void 0!==i&&n.height(i),n.add(t),n},Us=t=>{const e=t.generalization;return e?Array.isArray(e)?e:[e]:[]},js=t=>{t.setAttribute("xmlns","http://www.w3.org/1999/xhtml")},Ws=t=>((t=[...t]).sort(((t,e)=>t.sortIndex-e.sortIndex)),t),Ys=(t,e)=>ne(t,e,{arrayMerge:(t,e)=>e}),Vs=["backgroundColor","backgroundImage","backgroundRepeat","backgroundPosition","backgroundSize"];class Xs{static setBackgroundStyle(t,e){if(!t)return;if(!Xs.cacheStyle){Xs.cacheStyle={};let e=window.getComputedStyle(t);Vs.forEach((t=>{Xs.cacheStyle[t]=e[t]}))}let{backgroundColor:i,backgroundImage:n,backgroundRepeat:s,backgroundPosition:r,backgroundSize:o}=e;t.style.backgroundColor=i,n&&"none"!==n?(t.style.backgroundImage=`url(${n})`,t.style.backgroundRepeat=s,t.style.backgroundPosition=r,t.style.backgroundSize=o):t.style.backgroundImage="none"}static removeBackgroundStyle(t){Xs.cacheStyle&&(Vs.forEach((e=>{t.style[e]=Xs.cacheStyle[e]})),Xs.cacheStyle=null)}constructor(t){this.ctx=t,this._markerPath=null,this._marker=null,this._gradient=null}merge(t,e){let i=this.ctx.mindMap.themeConfig,n=null,s=!1;e?(s=!0,n=i):n=this.ctx.isGeneralization?i.generalization:0===this.ctx.layerIndex?i.root:1===this.ctx.layerIndex?i.second:i.node;let r="";return r=void 0!==this.getSelfStyle(t)?this.getSelfStyle(t):void 0!==n[t]?n[t]:i[t],s||this.addToEffectiveStyles({[t]:r}),r}getStyle(t,e){return this.merge(t,e)}getSelfStyle(t){return this.ctx.getData(t)}addToEffectiveStyles(t){this.ctx.effectiveStyles=h(h({},this.ctx.effectiveStyles),t)}rect(t){this.shape(t),t.radius(this.merge("borderRadius"))}shape(t){const e={gradientStyle:this.merge("gradientStyle"),startColor:this.merge("startColor"),endColor:this.merge("endColor"),startDir:this.merge("startDir"),endDir:this.merge("endDir"),fillColor:this.merge("fillColor"),borderColor:this.merge("borderColor"),borderWidth:this.merge("borderWidth"),borderDasharray:this.merge("borderDasharray")};e.gradientStyle?(this._gradient||(this._gradient=this.ctx.nodeDraw.gradient("linear")),this._gradient.update((t=>{t.stop(0,e.startColor),t.stop(1,e.endColor)})),this._gradient.from(...e.startDir).to(...e.endDir),t.fill(this._gradient)):t.fill({color:e.fillColor}),t.stroke({color:e.borderColor,width:e.borderWidth,dasharray:e.borderDasharray})}text(t){const e={color:this.merge("color"),fontFamily:this.merge("fontFamily"),fontSize:this.merge("fontSize"),fontWeight:this.merge("fontWeight"),fontStyle:this.merge("fontStyle"),textDecoration:this.merge("textDecoration")};t.fill({color:e.color}).css({"font-family":e.fontFamily,"font-size":e.fontSize+"px","font-weight":e.fontWeight,"font-style":e.fontStyle,"text-decoration":e.textDecoration})}createStyleText(t={}){const e=h({color:this.merge("color"),fontFamily:this.merge("fontFamily"),fontSize:this.merge("fontSize"),fontWeight:this.merge("fontWeight"),fontStyle:this.merge("fontStyle"),textDecoration:this.merge("textDecoration")},t);return`\n color: ${e.color};\n font-family: ${e.fontFamily};\n font-size: ${e.fontSize+"px"};\n font-weight: ${e.fontWeight};\n font-style: ${e.fontStyle};\n text-decoration: ${e.textDecoration}\n `}getTextFontStyle(){const t={color:this.merge("color"),fontFamily:this.merge("fontFamily"),fontSize:this.merge("fontSize"),fontWeight:this.merge("fontWeight"),fontStyle:this.merge("fontStyle"),textDecoration:this.merge("textDecoration")};return{italic:"italic"===t.fontStyle,bold:t.fontWeight,fontSize:t.fontSize,fontFamily:t.fontFamily}}domText(t,e=1){const i={color:this.merge("color"),fontFamily:this.merge("fontFamily"),fontSize:this.merge("fontSize"),fontWeight:this.merge("fontWeight"),fontStyle:this.merge("fontStyle"),textDecoration:this.merge("textDecoration")};t.style.color=i.color,t.style.textDecoration=i.textDecoration,t.style.fontFamily=i.fontFamily,t.style.fontSize=i.fontSize*e+"px",t.style.fontWeight=i.fontWeight||"normal",t.style.fontStyle=i.fontStyle}tagText(t,e){t.fill({color:"#fff"}).css({"font-size":e.fontSize+"px"})}tagRect(t,e){t.fill({color:e.fill}),e.radius&&t.radius(e.radius)}iconNode(t,e){t.attr({fill:e||this.merge("color")})}line(t,{width:e,color:i,dasharray:n}={},s,r){const{customHandleLine:o}=this.ctx.mindMap.opt;if("function"==typeof o&&o(this.ctx,t,{width:e,color:i,dasharray:n}),t.stroke({color:i,dasharray:n,width:e}).fill({color:"none"}),s){const e=this.merge("showLineMarker",!0),n=r.style;if(e){n._marker=n._marker||n.createMarker(),n._markerPath.stroke({color:i}).fill({color:i}),t.attr("marker-start",""),t.attr("marker-end","");const e=n.merge("lineMarkerDir");t.marker(e,n._marker)}else n._marker&&(t.attr("marker-start",""),t.attr("marker-end",""),n._marker.remove(),n._marker=null)}}createMarker(){return this.ctx.lineDraw.marker(20,20,(t=>{t.ref(8,5),t.size(20,20),t.attr("markerUnits","userSpaceOnUse"),t.attr("orient","auto-start-reverse"),this._markerPath=t.path("M0,0 L2,5 L0,10 L10,5 Z")}))}generalizationLine(t){t.stroke({width:this.merge("generalizationLineWidth",!0),color:this.merge("generalizationLineColor",!0)}).fill({color:"none"})}iconBtn(t,e,i){let{color:n,fill:s,fontSize:r,fontColor:o}=this.ctx.mindMap.opt.expandBtnStyle||{color:"#808080",fill:"#fff",fontSize:12,strokeColor:"#333333",fontColor:"#333333"};t.fill({color:n}),e.fill({color:n}),i.fill({color:s}),this.ctx.mindMap.opt.isShowExpandNum&&t.attr({"font-size":r+"px","font-color":o})}hasCustomStyle(){let t=!1;return Object.keys(this.ctx.getData()).forEach((e=>{Ns(e)&&(t=!0)})),t}getCustomStyle(){const t={};return Object.keys(this.ctx.getData()).forEach((e=>{Ns(e)&&(t[e]=this.ctx.getData(e))})),t}hoverNode(t){const e=this.merge("hoverRectColor")||this.ctx.mindMap.opt.hoverRectColor,i=this.merge("hoverRectRadius");t.radius(i).fill("none").stroke({color:e})}onRemove(){this._marker&&(this._marker.remove(),this._marker=null),this._markerPath&&(this._markerPath.remove(),this._markerPath=null),this._gradient&&(this._gradient.remove(),this._gradient=null)}}Xs.cacheStyle=null;class Zs{constructor(t){this.node=t,this.mindMap=t.mindMap}getShapePadding(t,e,i,n){const s=this.node.getShape(),r=t+2*i,o=e+2*n,a=Math.abs(r-o);switch(s){case Ft.SHAPE.ROUNDED_RECTANGLE:return{paddingX:e>t?(e-t)/2:0,paddingY:0};case Ft.SHAPE.DIAMOND:return{paddingX:t/2,paddingY:e/2};case Ft.SHAPE.PARALLELOGRAM:case Ft.SHAPE.OUTER_TRIANGULAR_RECTANGLE:case Ft.SHAPE.INNER_TRIANGULAR_RECTANGLE:return{paddingX:i<=0?15:0,paddingY:0};case Ft.SHAPE.ELLIPSE:return{paddingX:i<=0?15:0,paddingY:n<=0?5:0};case Ft.SHAPE.CIRCLE:return{paddingX:o>r?a/2:0,paddingY:o<r?a/2:0};default:return{paddingX:0,paddingY:0}}}createShape(){const t=this.node.getShape();let e=null;return t===Ft.SHAPE.RECTANGLE?e=this.createRect():t===Ft.SHAPE.DIAMOND?e=this.createDiamond():t===Ft.SHAPE.PARALLELOGRAM?e=this.createParallelogram():t===Ft.SHAPE.ROUNDED_RECTANGLE?e=this.createRoundedRectangle():t===Ft.SHAPE.OCTAGONAL_RECTANGLE?e=this.createOctagonalRectangle():t===Ft.SHAPE.OUTER_TRIANGULAR_RECTANGLE?e=this.createOuterTriangularRectangle():t===Ft.SHAPE.INNER_TRIANGULAR_RECTANGLE?e=this.createInnerTriangularRectangle():t===Ft.SHAPE.ELLIPSE?e=this.createEllipse():t===Ft.SHAPE.CIRCLE&&(e=this.createCircle()),e}getNodeSize(){const t=this.node.getBorderWidth();let{width:e,height:i}=this.node;return e-=t,i-=t,{width:e,height:i}}createPath(t){const{customCreateNodePath:e}=this.mindMap.opt;return e?ss(e(t)):(new Cn).plot(t)}createPolygon(t){const{customCreateNodePolygon:e}=this.mindMap.opt;return e?ss(e(t)):(new Ln).plot(t)}createRect(){let{width:t,height:e}=this.getNodeSize(),i=this.node.style.merge("borderRadius");const n=`\n M${i},0\n L${t-i},0\n C${t-i},0 ${t},0 ${t},${i}\n L${t},${e-i}\n C${t},${e-i} ${t},${e} ${t-i},${e}\n L${i},${e}\n C${i},${e} 0,${e} 0,${e-i}\n L0,${i}\n C0,${i} 0,0 ${i},0\n Z\n `;return this.createPath(n)}createDiamond(){let{width:t,height:e}=this.getNodeSize(),i=t/2,n=e/2;const s=[[i,0],[t,n],[i,e],[0,n]];return this.createPolygon(s)}createParallelogram(){let{paddingX:t}=this.node.getPaddingVale();t=t||this.node.shapePadding.paddingX;let{width:e,height:i}=this.getNodeSize();const n=[[t,0],[e,0],[e-t,i],[0,i]];return this.createPolygon(n)}createRoundedRectangle(){let{width:t,height:e}=this.getNodeSize(),i=e/2;const n=`\n M${i},0\n L${t-i},0\n A${e/2},${e/2} 0 0,1 ${t-i},${e} \n L${i},${e}\n A${e/2},${e/2} 0 0,1 ${i},0\n `;return this.createPath(n)}createOctagonalRectangle(){let{width:t,height:e}=this.getNodeSize();const i=[[0,5],[5,0],[t-5,0],[t,5],[t,e-5],[t-5,e],[5,e],[0,e-5]];return this.createPolygon(i)}createOuterTriangularRectangle(){let{paddingX:t}=this.node.getPaddingVale();t=t||this.node.shapePadding.paddingX;let{width:e,height:i}=this.getNodeSize();const n=[[t,0],[e-t,0],[e,i/2],[e-t,i],[t,i],[0,i/2]];return this.createPolygon(n)}createInnerTriangularRectangle(){let{paddingX:t}=this.node.getPaddingVale();t=t||this.node.shapePadding.paddingX;let{width:e,height:i}=this.getNodeSize();const n=[[0,0],[e,0],[e-t/2,i/2],[e,i],[0,i],[t/2,i/2]];return this.createPolygon(n)}createEllipse(){let{width:t,height:e}=this.getNodeSize(),i=t/2,n=e/2;const s=`\n M${i},0\n A${i},${n} 0 0,1 ${i},${e} \n M${i},${e} \n A${i},${n} 0 0,1 ${i},0 \n `;return this.createPath(s)}createCircle(){let{width:t,height:e}=this.getNodeSize(),i=t/2,n=e/2;const s=`\n M${i},0\n A${i},${n} 0 0,1 ${i},${e} \n M${i},${e} \n A${i},${n} 0 0,1 ${i},0 \n `;return this.createPath(s)}}const Ks=[Ft.SHAPE.RECTANGLE,Ft.SHAPE.DIAMOND,Ft.SHAPE.PARALLELOGRAM,Ft.SHAPE.ROUNDED_RECTANGLE,Ft.SHAPE.OCTAGONAL_RECTANGLE,Ft.SHAPE.OUTER_TRIANGULAR_RECTANGLE,Ft.SHAPE.INNER_TRIANGULAR_RECTANGLE,Ft.SHAPE.ELLIPSE,Ft.SHAPE.CIRCLE];const qs={formatGetGeneralization:function(){const t=this.getData("generalization");return Array.isArray(t)?t:t?[t]:[]},checkHasGeneralization:function(){return this.formatGetGeneralization().length>0},checkHasSelfGeneralization:function(){return!!this.formatGetGeneralization().find((t=>!t.range||t.range.length<=0))},getGeneralizationNodeIndex:function(t){return this._generalizationList.findIndex((e=>e.generalizationNode.uid===t.uid))},createGeneralizationNode:function(){if(this.isGeneralization||!this.checkHasGeneralization())return;let t=0,e=0;this.formatGetGeneralization().forEach(((i,n)=>{let s=this._generalizationList[n];s||(s=this._generalizationList[n]={}),s.node=this,s.range=i.range,s.generalizationLine||(s.generalizationLine=this.lineDraw.path()),s.generalizationNode||(s.generalizationNode=new ur({data:{inserting:i.inserting,data:i},uid:ys(),renderer:this.renderer,mindMap:this.mindMap,isGeneralization:!0})),delete i.inserting,s.generalizationNode.generalizationBelongNode=this,s.generalizationNode.width>t&&(t=s.generalizationNode.width),s.generalizationNode.height>e&&(e=s.generalizationNode.height),i.isActive&&this.renderer.addNodeToActiveList(s.generalizationNode)})),this._generalizationNodeWidth=t,this._generalizationNodeHeight=e},updateGeneralization:function(){this.isGeneralization||(this.removeGeneralization(),this.createGeneralizationNode())},updateGeneralizationData:function(){const t=this.nodeData.children.length,e=this.formatGetGeneralization(),i=[];e.forEach((e=>{e.range?e.range.length>0&&e.range[0]<=t-1&&e.range[1]<=t-1&&i.push(e):i.push(e)})),i.length!==e.length&&this.setData({generalization:i})},renderGeneralization:function(t){if(this.isGeneralization)return;this.updateGeneralizationData();const e=this.formatGetGeneralization();e.length<=0||!1===this.getData("expand")?this.removeGeneralization():(e.length!==this._generalizationList.length&&this.removeGeneralization(),this.createGeneralizationNode(),this.renderer.layout.renderGeneralization(this._generalizationList),this._generalizationList.forEach((e=>{this.style.generalizationLine(e.generalizationLine),e.generalizationNode.render((()=>{}),t)})))},removeGeneralization:function(){this.isGeneralization||(this._generalizationList.forEach((t=>{t.generalizationNode.style.onRemove(),t.generalizationLine&&(t.generalizationLine.remove(),t.generalizationLine=null),t.generalizationNode&&(this.renderer.removeNodeFromActiveList(t.generalizationNode),t.generalizationNode.remove(),t.generalizationNode=null)})),this._generalizationList=[],this.generalizationBelongNode&&this.nodeDraw.find(".generalization_"+this.generalizationBelongNode.uid).remove())},hideGeneralization:function(){this.isGeneralization||this._generalizationList.forEach((t=>{t.generalizationLine&&t.generalizationLine.hide(),t.generalizationNode&&t.generalizationNode.hide()}))},showGeneralization:function(){this.isGeneralization||this._generalizationList.forEach((t=>{t.generalizationLine&&t.generalizationLine.show(),t.generalizationNode&&t.generalizationNode.show()}))},setGeneralizationOpacity:function(t){this._generalizationList.forEach((e=>{e.generalizationLine.opacity(t),e.generalizationNode.group.opacity(t)}))},handleGeneralizationMouseenter:function(){const t=this.generalizationBelongNode,e=t.formatGetGeneralization()[t.getGeneralizationNodeIndex(this)],i=this.getStyle("hoverRectColor")||this.mindMap.opt.hoverRectColor,n=i?{stroke:i}:null;Array.isArray(e.range)&&e.range.length>0?this.mindMap.renderer.highlightNode(t,e.range,n):this.mindMap.renderer.highlightNode(t,null,n)},handleGeneralizationMouseleave:function(){this.mindMap.renderer.closeHighlightNode()}},Qs={open:'<svg t="1618141562310" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="13476" width="200" height="200"><path d="M475.136 327.168v147.968h-147.968v74.24h147.968v147.968h74.24v-147.968h147.968v-74.24h-147.968v-147.968h-74.24z m36.864-222.208c225.28 0 407.04 181.76 407.04 407.04s-181.76 407.04-407.04 407.04-407.04-181.76-407.04-407.04 181.76-407.04 407.04-407.04z m0-74.24c-265.216 0-480.768 215.552-480.768 480.768s215.552 480.768 480.768 480.768 480.768-215.552 480.768-480.768-215.552-480.768-480.768-480.768z" p-id="13477"></path></svg>',close:'<svg t="1618141589243" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="13611" width="200" height="200"><path d="M512 105.472c225.28 0 407.04 181.76 407.04 407.04s-181.76 407.04-407.04 407.04-407.04-181.76-407.04-407.04 181.76-407.04 407.04-407.04z m0-74.24c-265.216 0-480.768 215.552-480.768 480.768s215.552 480.768 480.768 480.768 480.768-215.552 480.768-480.768-215.552-480.768-480.768-480.768z" p-id="13612"></path><path d="M252.928 474.624h518.144v74.24h-518.144z" p-id="13613"></path></svg>',remove:'<svg width="14px" height="14px" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="13611" width="200" height="200"><path fill="#ffffff" d="M512 105.472c225.28 0 407.04 181.76 407.04 407.04s-181.76 407.04-407.04 407.04-407.04-181.76-407.04-407.04 181.76-407.04 407.04-407.04z m0-74.24c-265.216 0-480.768 215.552-480.768 480.768s215.552 480.768 480.768 480.768 480.768-215.552 480.768-480.768-215.552-480.768-480.768-480.768z" p-id="13612"></path><path fill="#ffffff" d="M252.928 474.624h518.144v74.24h-518.144z" p-id="13613"></path></svg>',imgAdjust:'<svg width="12px" height="12px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path fill="#ffffff" d="M1008.128 614.4a25.6 25.6 0 0 0-27.648 5.632l-142.848 142.848L259.072 186.88 401.92 43.52A25.6 25.6 0 0 0 384 0h-358.4a25.6 25.6 0 0 0-25.6 25.6v358.4a25.6 25.6 0 0 0 43.52 17.92l143.36-142.848 578.048 578.048-142.848 142.848a25.6 25.6 0 0 0 17.92 43.52h358.4a25.6 25.6 0 0 0 25.6-25.6v-358.4a25.6 25.6 0 0 0-15.872-25.088z" /></svg>'};const Js={createExpandNodeContent:function(){if(this._openExpandNode)return;let{close:t,open:e}=this.mindMap.opt.expandBtnIcon||{};this.mindMap.opt.isShowExpandNum?(this._openExpandNode=new Wn,this._openExpandNode.addClass("smm-expand-btn-text"),this._openExpandNode.attr({"text-anchor":"middle","dominant-baseline":"middle",x:this.expandBtnSize/2,y:2})):(this._openExpandNode=ss(e||Qs.open).size(this.expandBtnSize,this.expandBtnSize),this._openExpandNode.x(0).y(-this.expandBtnSize/2)),this._closeExpandNode=ss(t||Qs.close).size(this.expandBtnSize,this.expandBtnSize),this._closeExpandNode.x(0).y(-this.expandBtnSize/2),this._fillExpandNode=(new Vn).size(this.expandBtnSize),this._fillExpandNode.x(0).y(-this.expandBtnSize/2),this.style.iconBtn(this._openExpandNode,this._closeExpandNode,this._fillExpandNode)},updateExpandBtnNode:function(){let t,{expand:e}=this.getData();if(e!==this._lastExpandBtnType&&(this._expandBtn&&this._expandBtn.clear(),this.createExpandNodeContent(),!1===e?(t=this._openExpandNode,this._lastExpandBtnType=!1):(t=this._closeExpandNode,this._lastExpandBtnType=!0),this._expandBtn)){let{isShowExpandNum:i,expandBtnStyle:n,expandBtnNumHandler:s}=this.mindMap.opt;if(i)if(e)this._fillExpandNode.stroke("none");else{this._fillExpandNode.stroke({color:n.strokeColor});let e=this.sumNode(this.nodeData.children);if("function"==typeof s){const t=s(e,this);ws(t)||(e=t)}t.text(String(e))}this._expandBtn.add(this._fillExpandNode).add(t)}},updateExpandBtnPos:function(){this._expandBtn&&this.renderer.layout.renderExpandBtn(this,this._expandBtn)},renderExpandBtn:function(){!this.nodeData.children||this.nodeData.children.length<=0||this.isRoot||(this._expandBtn||(this._expandBtn=new qn,this._expandBtn.on("mouseover",(t=>{t.stopPropagation(),this._expandBtn.css({cursor:"pointer"})})),this._expandBtn.on("mouseout",(t=>{t.stopPropagation(),this._expandBtn.css({cursor:"auto"})})),this._expandBtn.on("click",(t=>{t.stopPropagation(),this.mindMap.execCommand("SET_NODE_EXPAND",this,!this.getData("expand")),this.mindMap.emit("expand_btn_click",this)})),this._expandBtn.on("dblclick",(t=>{t.stopPropagation()})),this._expandBtn.addClass("smm-expand-btn")),this.group.add(this._expandBtn),this._showExpandBtn=!0,this.updateExpandBtnNode(),this.updateExpandBtnPos())},removeExpandBtn:function(){this._expandBtn&&this._showExpandBtn&&(this._expandBtn.remove(),this._showExpandBtn=!1)},showExpandBtn:function(){const{alwaysShowExpandBtn:t,notShowExpandBtn:e}=this.mindMap.opt;t||e||setTimeout((()=>{this.renderExpandBtn()}),0)},hideExpandBtn:function(){const{alwaysShowExpandBtn:t,notShowExpandBtn:e}=this.mindMap.opt;if(t||this._isMouseenter||e)return;let{isActive:i,expand:n}=this.getData();!i&&n&&setTimeout((()=>{this.removeExpandBtn()}),0)},sumNode:function(t=[]){return t.reduce(((t,e)=>t+this.sumNode(e.children||[])),t.length)}};const tr={setData:function(t={}){this.mindMap.execCommand("SET_NODE_DATA",this,t)},setText:function(t,e,i){this.mindMap.execCommand("SET_NODE_TEXT",this,t,e,i)},setImage:function(t){this.mindMap.execCommand("SET_NODE_IMAGE",this,t)},setIcon:function(t){this.mindMap.execCommand("SET_NODE_ICON",this,t)},setHyperlink:function(t,e){this.mindMap.execCommand("SET_NODE_HYPERLINK",this,t,e)},setNote:function(t){this.mindMap.execCommand("SET_NODE_NOTE",this,t)},setAttachment:function(t,e){this.mindMap.execCommand("SET_NODE_ATTACHMENT",this,t,e)},setTag:function(t){this.mindMap.execCommand("SET_NODE_TAG",this,t)},setShape:function(t){this.mindMap.execCommand("SET_NODE_SHAPE",this,t)},setStyle:function(t,e){this.mindMap.execCommand("SET_NODE_STYLE",this,t,e)},setStyles:function(t){this.mindMap.execCommand("SET_NODE_STYLES",this,t)}},er=[{name:"优先级图标",type:"priority",list:[{name:"1",icon:'<svg viewBox="0 0 1024 1024"><path d="M512.042667 1024C229.248 1024 0 794.794667 0 511.957333 0 229.205333 229.248 0 512.042667 0 794.752 0 1024 229.205333 1024 511.957333 1024 794.794667 794.752 1024 512.042667 1024z" fill="#E93B30"></path><path d="M580.309333 256h-75.52c-10.666667 29.824-30.165333 55.765333-58.709333 78.165333-28.416 22.314667-54.869333 37.418667-79.146667 45.397334v84.608a320 320 0 0 0 120.234667-70.698667v352.085333H580.266667V256z" fill="#FFFFFF"></path></svg>'},{name:"2",icon:'<svg viewBox="0 0 1024 1024"><path d="M511.957333 1024C229.248 1024 0 794.752 0 512S229.248 0 511.957333 0C794.752 0 1024 229.248 1024 512s-229.248 512-512.042667 512z" fill="#FA8D2E"></path><path d="M667.946667 658.602667h-185.301334c4.864-8.533333 11.178667-17.066667 19.072-25.984 7.808-8.874667 26.453333-26.837333 55.936-53.888 29.525333-27.008 49.877333-47.786667 61.226667-62.165334 16.981333-21.717333 29.44-42.453333 37.290667-62.293333 7.808-19.84 11.776-40.746667 11.776-62.677333 0-38.570667-13.738667-70.741333-41.088-96.725334C599.466667 268.928 561.706667 256 513.834667 256c-43.690667 0-80.128 11.136-109.354667 33.578667-29.098667 22.4-46.506667 59.306667-52.010667 110.805333l93.184 9.301333c1.792-27.349333 8.405333-46.890667 19.754667-58.624 11.434667-11.776 26.837333-17.664 46.165333-17.664 19.541333 0 34.858667 5.589333 45.909334 16.768 11.136 11.264 16.682667 27.221333 16.682666 48.042667 0 18.858667-6.4 37.930667-19.242666 57.258667-9.472 14.037333-35.157333 40.533333-77.098667 79.872-52.096 48.554667-87.04 87.509333-104.704 116.821333A226.688 226.688 0 0 0 341.333333 745.429333h326.613334v-86.826666z" fill="#FFFFFF"></path></svg>'},{name:"3",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 0C229.248 0 0 229.248 0 512s229.248 512 512 512 512-229.248 512-512S794.752 0 512 0z" fill="#2E66FA"></path><path d="M627.754667 731.733333c-29.354667 25.088-66.901333 37.632-112.725334 37.632-44.928 0-81.792-11.52-110.592-34.773333-33.066667-26.538667-49.877333-64.469333-50.304-114.133333h92.16c0.426667 21.76 7.552 38.314667 21.333334 49.664 12.288 10.88 28.117333 16.341333 47.402666 16.341333 20.309333 0 36.778667-6.101333 49.322667-18.432 12.544-12.330667 18.773333-29.568 18.773333-51.797333 0-21.290667-6.229333-38.186667-18.773333-50.773334-12.544-12.501333-29.866667-18.773333-52.138667-18.773333h-13.525333v-80.042667H512c42.112 0 63.274667-21.034667 63.274667-63.146666 0-20.309333-5.888-36.096-17.706667-47.445334a60.757333 60.757333 0 0 0-43.818667-17.066666c-17.493333 0-32 5.504-43.434666 16.298666-11.562667 10.88-17.792 25.728-18.773334 44.714667H359.68c0.981333-43.946667 16.042667-78.976 45.397333-104.96 29.354667-25.941333 65.706667-39.04 109.226667-39.04 44.928 0 81.792 13.525333 110.592 40.490667 28.8 26.922667 43.306667 61.610667 43.306667 104.149333 0 48.213333-19.413333 82.688-58.154667 103.552 43.52 23.125333 65.28 61.44 65.28 114.858667 0 48.128-15.957333 85.76-47.573333 112.682666z" fill="#FFFFFF"></path></svg>'},{name:"4",icon:'<svg viewBox="0 0 1024 1024"><path d="M512.042667 1024C229.248 1024 0 794.794667 0 512.042667 0 229.205333 229.248 0 512.042667 0 794.752 0 1024 229.205333 1024 512.042667 1024 794.794667 794.752 1024 512.042667 1024z" fill="#6D768D"></path><path d="M600.96 256v309.802667h60.117333v81.536h-60.16v98.218666h-90.154666v-98.218666H311.466667v-81.237334L522.666667 256h78.293333zM510.72 399.104l-112.042667 166.698667h112.042667V399.104z" fill="#FFFFFF"></path></svg>'},{name:"5",icon:'<svg viewBox="0 0 1024 1024"><path d="M512.042667 1024C229.248 1024 0 794.794667 0 512.042667 0 229.205333 229.248 0 512.042667 0 794.752 0 1024 229.205333 1024 512.042667 1024 794.794667 794.752 1024 512.042667 1024z" fill="#6D768D"></path><path d="M470.912 343.552h175.786667V256H400.256l-47.786667 253.952 75.434667 10.837333c21.205333-23.552 45.269333-35.413333 72.021333-35.413333 21.546667 0 38.997333 7.509333 52.437334 22.4 13.312 15.018667 20.053333 37.418667 20.053333 67.328 0 31.872-6.741333 55.765333-20.181333 71.552-13.397333 15.872-29.866667 23.765333-49.237334 23.765333-17.066667 0-32.085333-6.186667-45.013333-18.432-13.013333-12.373333-20.821333-29.013333-23.466667-50.133333L341.333333 611.498667c5.546667 40.874667 22.485333 73.429333 50.730667 97.621333 28.330667 24.32 64.938667 36.437333 109.866667 36.437333 56.149333 0 100.053333-21.546667 131.754666-64.554666a176.64 176.64 0 0 0 34.816-107.52c0-48.042667-14.378667-87.210667-43.221333-117.333334-28.8-30.208-63.957333-45.312-105.514667-45.312-21.674667 0-42.922667 5.248-63.829333 15.616l14.976-82.901333z" fill="#FFFFFF"></path></svg>'},{name:"6",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 1024C229.248 1024 0 794.794667 0 512.042667 0 229.205333 229.248 0 512 0c282.88 0 512 229.205333 512 512.042667C1024 794.794667 794.88 1024 512 1024z" fill="#6D768D"></path><path d="M519.210667 256c36.992 0 67.626667 10.368 91.776 31.189333 24.192 20.821333 39.68 51.029333 46.293333 90.709334l-90.197333 9.984c-2.176-18.56-7.978667-32.298667-17.28-41.173334-9.258667-8.874667-21.418667-13.226667-36.224-13.226666-19.754667 0-36.437333 8.789333-50.048 26.453333-13.696 17.664-22.314667 54.613333-25.856 110.549333 23.296-27.52 52.138667-41.258667 86.656-41.258666 38.997333 0 72.362667 14.805333 100.181333 44.544 27.733333 29.696 41.685333 68.010667 41.685333 114.858666 0 49.877333-14.634667 89.856-43.818666 119.936-29.226667 30.208-66.730667 45.226667-112.554667 45.226667-49.066667 0-89.429333-19.072-121.130667-57.344C357.12 658.218667 341.333333 595.541333 341.333333 508.416c0-89.344 16.469333-153.813333 49.493334-193.194667C423.722667 275.754667 466.56 256 519.168 256z m-9.472 241.834667c-17.962667 0-33.066667 6.997333-45.525334 21.12-12.330667 14.037333-18.56 34.858667-18.56 62.293333 0 30.421333 6.912 53.76 20.906667 70.4 13.952 16.469333 29.866667 24.746667 47.786667 24.746667 17.28 0 31.701333-6.826667 43.178666-20.309334 11.52-13.525333 17.237333-35.669333 17.237334-66.56 0-31.658667-6.186667-54.869333-18.517334-69.546666a58.197333 58.197333 0 0 0-46.506666-22.144z" fill="#FFFFFF"></path></svg>'},{name:"7",icon:'<svg viewBox="0 0 1024 1024"><path d="M512.042667 1024C229.248 1024 0 794.752 0 512S229.248 0 512.042667 0C794.752 0 1024 229.248 1024 512s-229.248 512-511.957333 512z" fill="#6D768D"></path><path d="M673.024 273.066667H354.133333v86.869333h212.224a691.2 691.2 0 0 0-104.746666 187.989333c-26.026667 70.101333-39.978667 138.88-41.429334 206.293334h89.6c-0.298667-42.922667 6.698667-91.776 21.034667-146.474667a654.72 654.72 0 0 1 62.08-154.965333c27.136-48.554667 53.888-85.76 80.128-111.701334V273.066667z" fill="#FFFFFF"></path></svg>'},{name:"8",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 1024C229.248 1024 0 794.752 0 512S229.248 0 512 0s512 229.248 512 512-229.248 512-512 512z" fill="#6D768D"></path><path d="M512.426667 256c46.208 0 82.048 11.861333 107.605333 35.541333 25.6 23.68 38.314667 53.674667 38.314667 89.898667 0 22.613333-5.802667 42.666667-17.578667 60.330667a111.445333 111.445333 0 0 1-49.450667 40.277333c26.965333 10.837333 47.36 26.752 61.312 47.658667 13.994667 20.906667 21.034667 45.013333 21.034667 72.362666 0 45.098667-14.336 81.834667-42.965333 109.952-28.586667 28.245333-66.602667 42.368-114.090667 42.368-44.245333 0-81.066667-11.648-110.464-34.986666-34.645333-27.52-52.010667-65.28-52.010667-113.365334 0-26.368 6.528-50.645333 19.626667-72.746666 13.056-22.144 33.578667-39.210667 61.696-51.242667-24.064-10.154667-41.557333-24.192-52.48-41.941333a109.824 109.824 0 0 1-16.512-58.666667c0-36.224 12.757333-66.218667 37.973333-89.898667 25.386667-23.68 61.354667-35.541333 108.032-35.541333z m1.28 265.429333c-22.784 0-39.722667 7.978667-50.901334 23.893334-11.136 15.786667-16.64 33.066667-16.64 51.498666 0 25.984 6.485333 46.208 19.712 60.714667 13.098667 14.506667 29.525333 21.802667 49.152 21.802667 19.242667 0 35.157333-6.997333 47.786667-20.992 12.629333-13.909333 18.858667-34.048 18.858667-60.416 0-23.082667-6.314667-41.557333-19.2-55.466667a63.274667 63.274667 0 0 0-48.725334-21.034667z m-0.341334-191.488c-17.792 0-32 5.333333-42.581333 16-10.538667 10.666667-15.872 24.746667-15.872 42.325334 0 18.645333 5.248 33.152 15.701333 43.648 10.453333 10.453333 24.362667 15.658667 41.770667 15.658666 17.664 0 31.658667-5.290667 42.24-15.872 10.538667-10.581333 15.872-25.173333 15.872-43.818666 0-17.493333-5.248-31.573333-15.701333-42.154667s-24.277333-15.786667-41.429334-15.786667z" fill="#FFFFFF"></path></svg>'},{name:"9",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 1024C229.248 1024 0 794.794667 0 512.042667 0 229.333333 229.248 0 512 0c282.88 0 512 229.333333 512 512.042667C1024 794.794667 794.88 1024 512 1024z" fill="#6D768D"></path><path d="M497.28 256c49.365333 0 89.856 19.157333 121.429333 57.429333 31.701333 38.229333 47.488 101.205333 47.488 188.842667 0 89.173333-16.384 153.386667-49.365333 192.853333-32.853333 39.594667-75.605333 59.264-128.426667 59.264-37.888 0-68.608-10.154667-91.989333-30.506666s-38.4-50.816-45.013333-91.306667l90.112-9.984c2.261333 18.474667 8.021333 32.085333 17.28 41.088 9.173333 8.874667 21.418667 13.312 36.608 13.312 19.2 0 35.541333-8.874667 48.981333-26.752 13.44-17.749333 22.016-54.613333 25.770667-110.549333-23.466667 27.264-52.821333 40.874667-88.064 40.874666-38.314667 0-71.253333-14.72-99.114667-44.330666C355.242667 506.709333 341.333333 468.224 341.333333 420.864c0-49.493333 14.592-89.258667 43.946667-119.466667C414.549333 271.104 451.925333 256 497.237333 256z m-4.352 77.482667c-17.237333 0-31.658667 6.826667-43.008 20.437333-11.477333 13.653333-17.194667 35.84-17.194667 66.816 0 31.402667 6.229333 54.485333 18.645334 69.205333 12.458667 14.72 27.946667 22.101333 46.592 22.101334 18.005333 0 33.066667-7.082667 45.44-21.205334 12.330667-14.208 18.432-35.029333 18.432-62.506666 0-29.994667-6.912-53.376-20.821334-69.973334-13.824-16.597333-29.866667-24.874667-48.085333-24.874666z" fill="#FFFFFF"></path></svg>'},{name:"10",icon:'<svg viewBox="0 0 1024 1024"><path d="M512.042667 1024C229.248 1024 0 794.794667 0 511.957333 0 229.205333 229.248 0 512.042667 0 794.752 0 1024 229.205333 1024 511.957333 1024 794.794667 794.752 1024 512.042667 1024z" fill="#6D768D"></path><path d="M619.946667 273.066667c46.976 0 83.754667 16.042667 110.250666 48.042666 31.573333 37.973333 47.36 100.864 47.36 188.672 0 87.722667-15.829333 150.698667-47.658666 189.056-26.325333 31.616-62.976 47.36-109.952 47.36-47.274667 0-85.418667-17.237333-114.346667-51.968-28.885333-34.602667-43.392-96.426667-43.392-185.386666 0-87.168 15.872-150.016 47.701333-188.416 26.282667-31.488 62.933333-47.36 110.037334-47.36z m-207.488 12.8v452.266666H325.504V411.690667A299.904 299.904 0 0 1 213.333333 476.373333V398.933333c22.656-7.296 47.36-21.12 73.856-41.514666 26.624-20.522667 44.842667-44.288 54.784-71.552h70.485334z m207.488 60.842666c-11.306667 0-21.461333 3.413333-30.336 10.24-8.874667 6.826667-15.786667 19.157333-20.693334 36.864-6.4 22.997333-9.642667 61.653333-9.642666 115.968 0 54.442667 2.944 91.733333 8.661333 112.128 5.802667 20.352 13.098667 33.877333 21.845333 40.618667 8.789333 6.741333 18.858667 10.154667 30.165334 10.154667 11.349333 0 21.376-3.498667 30.250666-10.325334 8.874667-6.826667 15.786667-19.157333 20.693334-36.778666 6.4-22.826667 9.642667-61.354667 9.642666-115.797334 0-54.314667-2.858667-91.648-8.661333-112.042666-5.802667-20.352-13.013333-33.962667-21.76-40.789334a47.616 47.616 0 0 0-30.165333-10.24z" fill="#FFFFFF"></path></svg>'}]},{name:"进度图标",type:"progress",list:[{name:"1",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 0C229.248 0 0 229.248 0 512s229.248 512 512 512 512-229.248 512-512S794.752 0 512 0z" fill="#12BB37"></path><path d="M512 928c-229.76 0-416-186.24-416-416S282.24 96 512 96V512l294.144-294.144A414.72 414.72 0 0 1 928 512c0 229.76-186.24 416-416 416z" fill="#FFFFFF"></path></svg>'},{name:"2",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 0C229.248 0 0 229.248 0 512s229.248 512 512 512 512-229.248 512-512S794.752 0 512 0z" fill="#12BB37"></path><path d="M512 928c-229.76 0-416-186.24-416-416S282.24 96 512 96V512h416c0 229.76-186.24 416-416 416z" fill="#FFFFFF"></path></svg>'},{name:"3",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 0C229.248 0 0 229.248 0 512s229.248 512 512 512 512-229.248 512-512S794.752 0 512 0z" fill="#12BB37"></path><path d="M512 928c-229.76 0-416-186.24-416-416S282.24 96 512 96V512l294.144 294.144A414.72 414.72 0 0 1 512 928z" fill="#FFFFFF"></path></svg>'},{name:"4",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 0C229.248 0 0 229.248 0 512s229.248 512 512 512 512-229.248 512-512S794.752 0 512 0z" fill="#12BB37"></path><path d="M512 928c-229.76 0-416-186.24-416-416S282.24 96 512 96v832z" fill="#FFFFFF"></path></svg>'},{name:"5",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 0C229.248 0 0 229.248 0 512s229.248 512 512 512 512-229.248 512-512S794.752 0 512 0z" fill="#12BB37"></path><path d="M512 512l-294.144 294.144A414.72 414.72 0 0 1 96 512c0-229.76 186.24-416 416-416V512z" fill="#FFFFFF"></path></svg>'},{name:"6",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 0C229.248 0 0 229.248 0 512s229.248 512 512 512 512-229.248 512-512S794.752 0 512 0z" fill="#12BB37"></path><path d="M512 512H96c0-229.76 186.24-416 416-416V512z" fill="#FFFFFF"></path></svg>'},{name:"7",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 0C229.248 0 0 229.248 0 512s229.248 512 512 512 512-229.248 512-512S794.752 0 512 0z" fill="#12BB37"></path><path d="M512 512L217.856 217.856A414.72 414.72 0 0 1 512 96V512z" fill="#FFFFFF"></path></svg>'},{name:"8",icon:'<svg viewBox="0 0 1024 1024"><path d="M0 512c0 282.752 229.248 512 512 512s512-229.248 512-512S794.752 0 512 0 0 229.248 0 512z" fill="#12BB37"></path><path d="M716.629333 341.333333h-51.328a35.072 35.072 0 0 0-28.330666 14.293334l-171.989334 233.984-77.909333-106.026667a35.2 35.2 0 0 0-28.330667-14.293333H307.413333c-7.082667 0-11.264 7.936-7.082666 13.653333l136.32 185.472a35.2 35.2 0 0 0 56.533333 0l230.4-313.429333a8.533333 8.533333 0 0 0-6.954667-13.653334z" fill="#FFFFFF"></path></svg>'}]},{name:"表情图标",type:"expression",list:[{name:"1",icon:'<svg t="1624457751393" class="icon" viewBox="0 0 1026 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="12255"><path d="M1.097856 1.097642h1021.804717v1021.804716H1.097856z" fill="#F09495" p-id="12256"></path><path d="M1024.000214 1024H0.000214V0h1024v1024z m-1021.804716-2.195284h1019.609433V2.195284H2.195498v1019.609432z" fill="#FFFFFF" p-id="12257"></path><path d="M234.695985 335.179887m-27.341259 0a27.341259 27.341259 0 1 0 54.682518 0 27.341259 27.341259 0 1 0-54.682518 0Z" fill="#040000" p-id="12258"></path><path d="M234.695985 363.519002c-15.666342 0-28.339115-12.772559-28.339115-28.339115 0-15.666342 12.772559-28.339115 28.339115-28.339115s28.339115 12.772559 28.339115 28.339115c0.099786 15.666342-12.672773 28.339115-28.339115 28.339115z m0-54.582732c-14.468914 0-26.243617 11.774703-26.243617 26.243617s11.774703 26.243617 26.243617 26.243617 26.243617-11.774703 26.243617-26.243617-11.774703-26.243617-26.243617-26.243617z" fill="#FFFFFF" p-id="12259"></path><path d="M776.232528 335.179887m-27.341259 0a27.341259 27.341259 0 1 0 54.682518 0 27.341259 27.341259 0 1 0-54.682518 0Z" fill="#040000" p-id="12260"></path><path d="M776.232528 363.519002c-15.666342 0-28.339115-12.772559-28.339115-28.339115 0-15.666342 12.772559-28.339115 28.339115-28.339115 15.666342 0 28.339115 12.772559 28.339115 28.339115 0 15.666342-12.772559 28.339115-28.339115 28.339115z m0-54.582732c-14.468914 0-26.243617 11.774703-26.243617 26.243617s11.774703 26.243617 26.243617 26.243617 26.243617-11.774703 26.243617-26.243617c-0.099786-14.468914-11.874488-26.243617-26.243617-26.243617z" fill="#FFFFFF" p-id="12261"></path><path d="M512.000214 671.656987c-52.58702 0-105.872539-17.961411-105.872539-52.387449S459.413194 566.882089 512.000214 566.882089s105.872539 17.961411 105.87254 52.387449S564.587234 671.656987 512.000214 671.656987z m0-74.240499c-21.952836 0-43.207172 3.592282-58.2748 9.77899-13.870201 5.68778-17.06334 11.275775-17.06334 12.07406s3.19314 6.386279 17.06334 12.07406c15.067628 6.186708 36.321965 9.77899 58.2748 9.77899s43.207172-3.592282 58.274801-9.77899c13.870201-5.68778 17.06334-11.275775 17.06334-12.07406s-3.19314-6.386279-17.06334-12.07406c-15.067628-6.286494-36.321965-9.77899-58.274801-9.77899z" fill="#040000" p-id="12262"></path></svg>'},{name:"2",icon:'<svg t="1624457767572" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1048"><path d="M0 0h1024v1024H0z" fill="#E6A6C9" p-id="1049"></path><path d="M315.1 368.1c-23.9 0-43.3-19.4-43.3-43.3s19.4-43.3 43.3-43.3 43.3 19.4 43.3 43.3-19.4 43.3-43.3 43.3z m0-74.7c-17.3 0-31.3 14.1-31.3 31.3 0 17.3 14.1 31.3 31.3 31.3 17.3 0 31.3-14.1 31.3-31.3 0-17.2-14-31.3-31.3-31.3zM738.7 368.1c-23.9 0-43.3-19.4-43.3-43.3s19.4-43.3 43.3-43.3 43.3 19.4 43.3 43.3-19.4 43.3-43.3 43.3z m0-74.7c-17.3 0-31.3 14.1-31.3 31.3 0 17.3 14.1 31.3 31.3 31.3 17.3 0 31.3-14.1 31.3-31.3 0-17.2-14-31.3-31.3-31.3zM293.5 698.8l-14.5-1.3c0.1-0.6 1.5-14.6 15.1-27.9 17.2-16.7 45-24.8 82.7-24 4.9-0.1 10.9-10.5 16.1-19.6 8.4-14.7 19-33.1 37.9-34.3 19.4-1.2 42.2 16.4 71.5 55.4 9.9 5.2 16.5 11.2 21.8 16.1 8.4 7.7 13.1 11.9 25.1 10.8 14.9-1.4 38.9-11.1 77.5-31.4 26.8-28.4 56.4-41.4 83.5-36.6 27.9 4.9 50.6 27.6 67.5 67.5l-13.4 5.7c-14.7-34.5-34.3-54.9-56.7-58.8-22.3-3.9-47.6 7.8-71.2 33.1l-0.8 0.9-1.1 0.6c-85.6 45.1-99.4 38-120.2 19.1-5.5-5-11.2-10.2-20.1-14.7l-1.5-0.8-1-1.4c-32.2-43.2-50.4-51.6-60-51-11.1 0.7-18.8 14-26.2 27-7.6 13.2-15.4 26.9-28.8 26.9h-0.2c-78.4-1.6-83 38.3-83 38.7z" fill="#040000" p-id="1050"></path></svg>'},{name:"3",icon:'<svg t="1624457776082" class="icon" viewBox="0 0 1026 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1204" ><path d="M1.1 1.097642h1021.804716v1021.804716H1.1z" fill="#F7E983" p-id="1205"></path><path d="M1024.002358 1024H0.002358V0h1024v1024z m-1021.804716-2.195284h1019.609433V2.195284H2.197642v1019.609432z" fill="#FFFFFF" p-id="1206"></path><path d="M329.174412 344.491728a38.118106 10.277919 57.6 1 0 17.355867-11.014369 38.118106 10.277919 57.6 1 0-17.355867 11.014369Z" fill="#040000" p-id="1207"></path><path d="M644.769475 355.956059a11.175989 36.321965 30 1 0 36.321965-62.911488 11.175989 36.321965 30 1 0-36.321965 62.911488Z" fill="#040000" p-id="1208"></path><path d="M569.678445 671.158059c-26.343403 0-51.190021-5.288638-70.049503-14.967843-20.755408-10.577275-32.230754-25.445332-32.230755-41.710388 0-16.265056 11.475346-31.133112 32.230755-41.710387 18.859482-9.579419 43.805886-14.967843 70.049503-14.967843s51.190021 5.288638 70.049503 14.967843c20.755408 10.577275 32.230754 25.445332 32.230754 41.710387 0 16.265056-11.475346 31.133112-32.230754 41.710388-18.859482 9.679205-43.805886 14.967843-70.049503 14.967843z m0-95.095693c-49.693237 0-84.318846 20.356266-84.318846 38.517248s34.625609 38.517248 84.318846 38.517248 84.318846-20.356266 84.318846-38.517248-34.725395-38.517248-84.318846-38.517248z" fill="#040000" p-id="1209"></path></svg>'},{name:"4",icon:'<svg t="1624457781889" class="icon" viewBox="0 0 1026 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1363" ><path d="M1.1 1.097642h1021.804716v1021.804716H1.1z" fill="#A6D9E2" p-id="1364"></path><path d="M1024.002358 1024H0.002358V0h1024v1024z m-1021.804716-2.195284h1019.609433V2.195284H2.197642v1019.609432z" fill="#FFFFFF" p-id="1365"></path><path d="M376.194134 348.950302m-23.44962 0a23.44962 23.44962 0 1 0 46.89924 0 23.44962 23.44962 0 1 0-46.89924 0Z" fill="#040000" p-id="1366"></path><path d="M629.150672 348.950302m-24.647047 0a24.647047 24.647047 0 1 0 49.294095 0 24.647047 24.647047 0 1 0-49.294095 0Z" fill="#040000" p-id="1367"></path><path d="M397.847613 603.503411c13.471058 8.282206 28.738258 14.468914 43.7061 19.458195 29.835899 9.978562 62.266225 14.169558 93.299551 7.483921 21.054765-4.490353 40.213604-14.369129 56.778016-28.039758 6.785422-5.587995-2.893783-15.167414-9.579419-9.579419-46.999026 38.916391-112.258819 31.033327-163.847983 6.086922-4.590138-2.195284-9.080491-4.490353-13.371272-7.184564-7.583707-4.590138-14.468914 7.184564-6.984993 11.774703z" fill="#040000" p-id="1368"></path><path d="M627.753674 534.052621c-31.033327 24.048334-58.474371 68.253362-37.419607 106.970182 10.577275 19.35841 29.835899 32.629897 48.795167 42.708244 7.982849 4.190996 15.067628-7.883064 7.084779-12.07406-25.245761-13.271487-53.485091-35.324108-49.094524-66.557006 2.793997-20.156695 15.766127-37.319821 29.736114-51.190022 3.392711-3.392711 6.984993-6.785422 10.776847-9.77899 2.993569-2.295069 2.394855-7.483921 0-9.878776-2.893783-3.19314-6.885208-2.49464-9.878776-0.199572z" fill="#040000" p-id="1369"></path></svg>'},{name:"5",icon:'<svg t="1624457787809" class="icon" viewBox="0 0 1026 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1523" ><path d="M1.1 1.097642h1021.804716v1021.804716H1.1z" fill="#AD6F59" p-id="1524"></path><path d="M1024.002358 1024H0.002358V0h1024v1024z m-1021.804716-2.195284h1019.609433V2.195284H2.197642v1019.609432z" fill="#FFFFFF" p-id="1525"></path><path d="M411.829832 330.730879a38.118106 10.277919 57.6 1 0 17.355867-11.014368 38.118106 10.277919 57.6 1 0-17.355867 11.014368Z" fill="#040000" p-id="1526"></path><path d="M480.669675 609.989476c11.774703-25.844475 27.740401-51.788735 44.60417-73.342429 13.770415-17.462483 29.237186-33.92711 47.897096-44.803742 17.262912-10.078347 35.324108-13.67063 54.283376-6.58585 11.974274 4.390567 23.948548 14.468914 33.128825 24.547261 14.369129 15.865913 25.145975 34.625609 34.725394 53.684662 4.290782 8.581563 17.262912 0.997856 12.972131-7.583707-15.167414-30.334828-35.224323-63.763009-66.157864-80.327421-21.054765-11.37556-44.504385-11.475346-66.157864-1.895927-21.054765 9.280062-38.617034 25.644904-53.485091 42.907815-14.468914 16.863769-27.041902 35.324108-38.217891 54.582733-5.887351 10.178133-11.674917 20.555837-16.464627 31.232898-1.696355 3.692068-0.997856 7.982849 2.694212 10.277918 3.19314 1.895927 8.581563 0.898071 10.178133-2.694211z" fill="#040000" p-id="1527"></path><path d="M663.863649 338.091735a14.468914 33.727538 30 1 0 33.727538-58.417811 14.468914 33.727538 30 1 0-33.727538 58.417811Z" fill="#040000" p-id="1528"></path></svg>'},{name:"6",icon:'<svg t="1624457794933" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1680" ><path d="M762.9 77.4H261.1L10.2 512l250.9 434.6h501.8L1013.8 512z" fill="#83CEE3" p-id="1681"></path><path d="M369 375.8m-34.6 0a34.6 34.6 0 1 0 69.2 0 34.6 34.6 0 1 0-69.2 0Z" fill="#040000" p-id="1682"></path><path d="M369 411.7c-19.8 0-36-16.1-36-36s16.1-36 36-36 36 16.1 36 36-16.1 36-36 36z m0-69.1c-18.3 0-33.2 14.9-33.2 33.2S350.7 409 369 409s33.2-14.9 33.2-33.2-14.9-33.2-33.2-33.2z" fill="#FFFFFF" p-id="1683"></path><path d="M672.2 333.6c-15.1 7.6-30.2 15.6-44.3 25-5.9 3.9-17 10.4-14.6 19.1 1.8 6.5 12 11.2 17.3 14.3 15.7 9.3 32.1 17.6 48.3 25.9 8.6 4.4 16.2-8.5 7.6-13-14.1-7.3-28.3-14.5-42.1-22.3-3.9-2.2-7.9-4.5-11.7-6.9-1.2-0.8-2.4-1.5-3.5-2.4-0.6-0.4-1.1-0.8-1.6-1.2 2.2 1.7-0.3-0.3-0.3-0.3-0.9 0.1-1.5-3.2-0.2 0.5 0.9 2.4 1.1 3.8 0.3 5.8 0.6-1.5-0.9 0.8-0.1 0 0.5-0.5 1-1.1 1.6-1.6 0.5-0.5 1-0.9 1.6-1.3 0.6-0.5 0 0 1.2-0.9 1.7-1.3 3.5-2.5 5.3-3.6 8.4-5.5 17.2-10.4 26-15.2 5.6-3 11.2-6 16.8-8.9 8.6-4.4 1-17.3-7.6-13zM578.2 720.9c-12.5-96.7-33.3-154.7-55.6-155.6-8.8 3.9-22.3 17.5-37.7 60.1-10.8 29.8-18.4 62.2-23 81.6-1.2 5.1-2.1 9.1-2.9 11.8l-9.3-2.4c0.7-2.6 1.6-6.6 2.8-11.6 14.9-63 36-136.8 67.5-148.8l0.8-0.3h0.8c18.2-0.4 33.2 19.5 45.8 60.8 10.2 33.3 16.7 74.6 20.5 103.3l-9.7 1.1z" fill="#040000" p-id="1684"></path></svg>'},{name:"7",icon:'<svg t="1624457802025" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1838" ><path d="M762.9 77.4H261.1L10.2 512l250.9 434.6h501.8L1013.8 512z" fill="#8CC66D" p-id="1839"></path><path d="M375.778679 404.47473a14.5 33.8 30 1 0 33.8-58.543317 14.5 33.8 30 1 0-33.8 58.543317Z" fill="#040000" p-id="1840"></path><path d="M627.220263 374.211388a43.1 11.6 57.6 1 0 19.588408-12.431182 43.1 11.6 57.6 1 0-19.588408 12.431182Z" fill="#040000" p-id="1841"></path><path d="M451.1 548.5c17.6-9.3 63.9-30 105.3-16.2 17 20.3 32.7 98.8 28.8 138.1-27.5 10.2-82.5 10.2-106.1 5.8-8.3-10.5-32.7-81.8-35.3-114.6-0.4-5.5 2.5-10.6 7.3-13.1z" fill="#040000" p-id="1842"></path></svg>'},{name:"8",icon:'<svg t="1624457816632" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1996" ><path d="M762.9 77.4H261.1L10.2 512l250.9 434.6h501.8L1013.8 512z" fill="#5A74B8" p-id="1997"></path><path d="M357.7 400m-34.6 0a34.6 34.6 0 1 0 69.2 0 34.6 34.6 0 1 0-69.2 0Z" fill="#040000" p-id="1998"></path><path d="M357.7 436c-19.8 0-36-16.1-36-36s16.1-36 36-36 36 16.1 36 36-16.2 36-36 36z m0-69.2c-18.3 0-33.2 14.9-33.2 33.2s14.9 33.2 33.2 33.2 33.2-14.9 33.2-33.2-14.9-33.2-33.2-33.2z" fill="#FFFFFF" p-id="1999"></path><path d="M676 400m-34.6 0a34.6 34.6 0 1 0 69.2 0 34.6 34.6 0 1 0-69.2 0Z" fill="#040000" p-id="2000"></path><path d="M676 436c-19.8 0-36-16.1-36-36s16.1-36 36-36 36 16.1 36 36-16.2 36-36 36z m0-69.2c-18.3 0-33.2 14.9-33.2 33.2s14.9 33.2 33.2 33.2c18.3 0 33.2-14.9 33.2-33.2s-14.9-33.2-33.2-33.2z" fill="#FFFFFF" p-id="2001"></path><path d="M347.6 684.1c0.3-0.9 0.6-1.7 0.9-2.6 0.2-0.5 1.4-3.2 0.3-0.8 0.6-1.4 1.3-2.9 2-4.3 3.2-6.3 6-10.7 10.9-15.3 4.3-4 10.8-7.5 17.1-6.1 3.9 0.9 7.9 4.9 11.1 7.2 3.1 2.2 6.3 4.5 9.7 6.2 7.5 3.8 15.3 4.4 23.4 1.9 4.7-1.5 9.2-3.6 13.6-5.9 5-2.6 10.7-5 14.2-9.5 4.5-5.7 6.1-8.5 11.4-14.1 1-1 2-2 3.1-3 0.2-0.2 2.2-1.7 0.6-0.5 0.6-0.4 1.2-0.9 1.8-1.3 1-0.6 2.1-1.3 3.2-1.7-2 0.8 0.2 0 0.6-0.1 2.3-0.7-0.3-0.2 1.2-0.3 2.8-0.1 3.6 0 5.5 1 3.8 1.9 6.6 4.7 9.5 7.8 4.5 5 7.5 11.1 11.7 16.2 1.8 2.2 3.7 4.3 5.4 6.5 8.1 10.3 17.7 22.2 32.2 22 8.8-0.1 16.6-5.2 22.6-11.2 4.2-4.1 7.7-8.9 11-13.7 2.9-4.2 4.6-9.9 6.2-13.5 3.2-7.1 7.2-13.1 13-18.1 4.8-4.2 11.1-6.5 16.7-5.3 10.5 2.4 17.2 12.1 23.1 20.2 4.7 6.5 9.8 13 16 18.2 7.8 6.4 17.1 11.4 27.5 11.1 14.1-0.4 25.5-9.5 34.2-19.9 3-3.6 3.6-8.8 0-12.4-3.1-3.1-9.4-3.7-12.4 0-6.3 7.6-14.7 15.9-24.9 14.7-2.2-0.3-5.3-1.5-7.9-3.1-3.5-2.1-6.1-4.4-9.1-7.5-4.9-5.1-6.8-8.1-10.9-13.8-7.3-10.1-16.1-19.6-28.2-23.7-18.5-6.3-35.7 5.6-46 20.1-2.4 3.3-4.4 6.9-6.1 10.6-1.8 3.9-2.7 8.5-5.2 11.9-3.1 4.4-6.2 8.8-10.2 12.5-3 2.8-5.7 4.4-8.6 5.1-0.4 0.1-1.7 0.1 0.1 0h-2.2c2.1 0.1 0 0-0.5-0.1-0.7-0.2-1.4-0.4-2-0.6 1.8 0.7-1.8-1.1-2.4-1.5l-1.2-0.9c1.5 1.2-0.9-0.9-1.2-1.1-4.7-4.3-8.4-9.5-12.3-14.4-10.9-13.6-20.9-34-41-34.9-14.2-0.6-24.5 10.6-32.4 20.8-1.2 1.6-2.5 3.2-3.7 4.8-1.5 1.9 1.1-1.4-0.4 0.5-0.4 0.5-0.8 1.2-1.3 1.6-1.7 1.4-4.6 2.6-6.6 3.6-2.9 1.6-5.9 3.2-9 4.5-1.6 0.7-3.4 1.2-5.1 1.7-2.2 0.6-0.7 0.5-2.8 0.4-2.8 0-3.9-0.4-6.6-1.9-3.9-2.2-7.5-4.9-11.1-7.5-5.6-4-10-6.9-17-7.5-10.5-0.9-20.3 3.2-28.2 9.9-9.4 8.1-16.4 20.2-20.1 32-3.6 11.2 13.3 15.8 16.8 5.1z" fill="#040000" p-id="2002"></path></svg>'},{name:"9",icon:'<svg t="1624457826949" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2156" ><path d="M762.9 77.4H261.1L10.2 512l250.9 434.6h501.8L1013.8 512z" fill="#F0884F" p-id="2157"></path><path d="M287.2 382c6.4 2.3 11.6-3.7 15.4-7.9 5.1-5.5 10.2-11 16-15.9 0.8-0.7 1.7-1.4 2.5-2.1 1.2-0.9-1.7 1.3 0.2-0.2l1.2-0.9c2.1-1.5 4.3-2.9 6.5-4.3 2-1.2 4-2.2 6.1-3.2 0.6-0.3 1.2-0.6 1.9-0.9-0.3 0.2-1.5 0.6 0.2-0.1 1.3-0.5 2.6-1 4-1.5 11.2-3.7 21.8-4 33.4-1.1 19.5 4.9 36.4 17 51.2 30.2 8.6 7.7 21.4-5 12.7-12.7-25.2-22.6-57.1-42.1-92.2-36.2-20.4 3.4-37.7 16.1-51.6 30.9-2.3 2.4-4.5 5-6.8 7.4-0.7 0.7-1.9 1.5-2.4 2.4-0.5 0.8 2.3-1.5 0.8-0.7 1.3-0.7 3.9-1.4 5.8-0.7-11.1-3.7-15.8 13.7-4.9 17.5zM598 382c6.4 2.3 11.6-3.7 15.4-7.9 5.1-5.5 10.2-11 16-15.9 0.8-0.7 1.7-1.4 2.5-2.1 1.2-0.9-1.7 1.3 0.2-0.2l1.2-0.9c2.1-1.5 4.3-2.9 6.5-4.3 2-1.2 4-2.2 6.1-3.2 0.6-0.3 1.2-0.6 1.9-0.9-0.3 0.2-1.5 0.6 0.2-0.1 1.3-0.5 2.6-1 4-1.5 11.2-3.7 21.8-4 33.4-1.1 19.5 4.9 36.4 17 51.2 30.2 8.6 7.7 21.4-5 12.7-12.7-25.2-22.6-57.1-42.1-92.2-36.2-20.4 3.4-37.7 16.1-51.6 30.9-2.3 2.4-4.5 5-6.8 7.4-0.7 0.7-1.9 1.5-2.4 2.4-0.5 0.8 2.3-1.5 0.8-0.7 1.3-0.7 3.9-1.4 5.8-0.7-11.1-3.7-15.8 13.7-4.9 17.5zM505.9 527.1c3.4 0.7 6.8 1.7 10.2 2.8 6.7 2.2 10.4 3.5 16.6 7.7 1.6 1.1-0.5-0.5 0.6 0.5 0.6 0.5 1.1 1.1 1.7 1.6 1.5 1.4-0.1-0.4 0.5 0.6 0.4 0.6 0.7 1.2 1 1.8-1-2 0.1 0 0 0.5 0.1-2-0.1 0-0.1 0-0.1 0.8 0 0.7 0.1-0.5-0.1 0.4-0.1 0.7-0.3 1.1-0.6 1 0.7-0.9-0.4 1-1.6 2.5-4.6 5.4-8.1 7.8-6.8 4.6-14.4 8.2-22 11.4-7 3-7.4 11.9 0 14.8 7.4 2.8 15 5.3 22.4 8.1 3.1 1.1 4.2 1.5 6.9 2.9 1.1 0.6 2.1 1.2 3.2 1.8 1.2 0.8-0.7-0.5 0.1 0 0.4 0.3 0.8 0.7 1.1 1.1 0.6 0.8-1.1-1.2-0.2-0.2 0.8 0.9-0.3-1.4-0.1-0.2 0.1 0.9 0.2-1.9 0-0.9-0.1 0.5-0.8 1.8 0 0.2-0.2 0.5-0.5 1-0.8 1.4-0.3 0.3-0.9 1.3-0.3 0.5-0.5 0.7-1.1 1.3-1.7 1.9-6.9 7.3-15.9 12.8-24.4 18.1-8.3 5.3-0.6 18.5 7.7 13.2 9.9-6.3 20.9-12.8 28.6-21.8 4.8-5.5 8.1-12.9 4.2-19.9-3.4-6-10.5-8.9-16.6-11.4-8.6-3.5-17.5-6.2-26.2-9.5v14.8c14.4-6.1 47.2-18.8 41.2-40.3-3.5-12.9-19.4-18.9-30.8-22.6-3.4-1.1-6.9-2.1-10.5-2.9-9.1-2.2-13.3 12.5-3.6 14.6z" fill="#040000" p-id="2158"></path></svg>'},{name:"10",icon:'<svg t="1624457835383" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2312" ><path d="M762.9 77.4H261.1L10.2 512l250.9 434.6h501.8L1013.8 512z" fill="#F6F180" p-id="2313"></path><path d="M342.9 400.6m-29.5 0a29.5 29.5 0 1 0 59 0 29.5 29.5 0 1 0-59 0Z" fill="#040000" p-id="2314"></path><path d="M342.9 431.3c-16.9 0-30.7-13.8-30.7-30.7s13.8-30.7 30.7-30.7 30.7 13.8 30.7 30.7-13.7 30.7-30.7 30.7z m0-59c-15.6 0-28.3 12.7-28.3 28.3s12.7 28.3 28.3 28.3 28.3-12.7 28.3-28.3-12.6-28.3-28.3-28.3z" fill="#FFFFFF" p-id="2315"></path><path d="M702 400.6m-29.5 0a29.5 29.5 0 1 0 59 0 29.5 29.5 0 1 0-59 0Z" fill="#040000" p-id="2316"></path><path d="M702 431.3c-16.9 0-30.7-13.8-30.7-30.7s13.8-30.7 30.7-30.7 30.7 13.8 30.7 30.7-13.8 30.7-30.7 30.7z m0-59c-15.6 0-28.3 12.7-28.3 28.3s12.7 28.3 28.3 28.3 28.3-12.7 28.3-28.3-12.7-28.3-28.3-28.3z" fill="#FFFFFF" p-id="2317"></path><path d="M358.7 519.9c20 22 45.5 40.4 71.3 54.8 51.2 28.5 111.7 39.9 168 19.5 44.3-16.1 80.7-47.8 110.2-83.9 3-3.7 3.6-8.9 0-12.5-3.1-3.1-9.5-3.7-12.5 0-25.5 31.4-56.2 59.7-93.7 76-27.1 11.7-56.6 15.7-85.8 12.2-24.7-2.9-49.5-11.8-71.5-23.4-18.7-9.8-36.6-22.2-51.1-34.3-7.8-6.5-15.5-13.3-22.4-20.9-7.7-8.5-20.1 4.1-12.5 12.5z" p-id="2318"></path></svg>'},{name:"11",icon:'<svg t="1624457841751" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2472" ><path d="M48.2 844.9c-68.5-210.6 186-782.1 409.1-795.4 6.3-0.4 12.5 0.2 18.6 1.6C665.1 94.6 985.4 515 987.1 821.3c0.1 20-12.9 37.9-22.4 43.1-162.7 89.8-605.8 179.7-884.4 30.9-15-7.9-24.2-26.1-32.1-50.4z" fill="#F0884F" p-id="2473"></path><path d="M401 352.1m-52.4 0a52.4 52.4 0 1 0 104.8 0 52.4 52.4 0 1 0-104.8 0Z" fill="#FFFFFF" p-id="2474"></path><path d="M408.7 329m-29.3 0a29.3 29.3 0 1 0 58.6 0 29.3 29.3 0 1 0-58.6 0Z" fill="#040000" p-id="2475"></path><path d="M527.5 352.1m-52.4 0a52.4 52.4 0 1 0 104.8 0 52.4 52.4 0 1 0-104.8 0Z" fill="#FFFFFF" p-id="2476"></path><path d="M527.5 329m-29.3 0a29.3 29.3 0 1 0 58.6 0 29.3 29.3 0 1 0-58.6 0Z" fill="#040000" p-id="2477"></path><path d="M450.7 517c1.1-8.2 3.2-16.4 6.1-24.1 0.1-0.3 1-2.5 0.5-1.4s0.3-0.7 0.5-1c0.7-1.4 1.4-2.8 2.2-4.1 0.4-0.8 2.8-3.9 1.3-2.1 0.8-1 1.7-1.9 2.6-2.8 1-1-1.5 1 0.1 0 0.5-0.3 1-0.6 1.5-0.8-1.3 0.7-1.2 0.3 0 0.1 1.9-0.3-1.8 0.3 0.1 0 1.2-0.2 1.5 0.3 0-0.1 0.6 0.2 1.3 0.3 1.9 0.5 0.3 0.1-1.3-0.7 0.2 0.1 0.8 0.5 1.6 0.9 2.4 1.4 1.4 1 0-0.1 1.4 1.1 0.9 0.8 1.8 1.7 2.6 2.6 1.8 1.9 3.5 3.9 5 6.1 5.1 7.1 9.3 14.8 13.2 22.6 3.5 6.9 13.7 4.7 15.8-2.1 2.6-8.7 4.8-17.4 7.4-26.1 0.9-3.2 1.9-6.4 3.2-9.4-0.7 1.6 0.8-1.6 1.2-2.2l0.9-1.5c0.7-1.2-1.4 0.7 0.1-0.1 1.7-0.9-1.2 0.3-0.3 0.1 0.8-0.2 1-1.2 0.3-0.3-0.6 0.8 0.6 0-0.5 0.2-2 0.3 2.4 0.5-1.1 0 0.5 0.1 1.2 0.2 1.6 0.4-1.1-0.8-0.8-0.4 0.2 0.2 0.7 0.4 3.4 2.3 2.7 1.8 8.9 7.1 15.9 16.9 22.5 26 2.8 3.8 7.5 5.6 11.8 3.1 3.7-2.2 5.9-8 3.1-11.8-8.2-11.1-16.6-23-27.7-31.4-6.3-4.7-14.5-7.6-21.7-3-6.7 4.2-9.6 12.5-11.9 19.6-3.2 9.9-5.5 20-8.6 29.9 5.3-0.7 10.5-1.4 15.8-2.1-7.8-15.5-24.8-50.1-48-41.7-14.1 5.1-19.7 23-22.9 36.2-0.9 3.8-1.8 7.7-2.3 11.6-0.6 4.6 1.1 9.3 6 10.6 4.2 1 10.2-1.5 10.8-6.1z" fill="#040000" p-id="2478"></path></svg>'},{name:"12",icon:'<svg t="1624457847424" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2632" ><path d="M485.538528 993.072489a362.00362 481.804818 3.149 1 0 52.933731-962.15464 362.00362 481.804818 3.149 1 0-52.933731 962.15464Z" fill="#AADCF0" p-id="2633"></path><path d="M688.2 334.1c-15.1 7.6-30.2 15.6-44.3 25-5.9 3.9-17 10.4-14.6 19.1 1.8 6.5 12 11.2 17.3 14.3 15.7 9.3 32.1 17.6 48.3 25.9 8.6 4.4 16.2-8.5 7.6-13-14.1-7.3-28.3-14.5-42.1-22.3-3.9-2.2-7.9-4.5-11.7-6.9-1.2-0.8-2.4-1.5-3.5-2.4-0.6-0.4-1.1-0.8-1.6-1.2 2.2 1.7-0.3-0.3-0.3-0.3-0.9 0.1-1.5-3.2-0.2 0.5 0.9 2.4 1.1 3.8 0.3 5.8 0.6-1.5-0.9 0.8-0.1 0 0.5-0.5 1-1.1 1.6-1.6 0.5-0.5 1-0.9 1.6-1.3 0.6-0.5 0 0 1.2-0.9 1.7-1.3 3.5-2.5 5.3-3.6 8.4-5.5 17.2-10.4 26-15.2 5.6-3 11.2-6 16.8-8.9 8.6-4.4 1-17.4-7.6-13zM375.8 347c13.4 6.8 26.7 14 39.5 21.9 1.8 1.2 3.7 2.3 5.5 3.5 0.9 0.6 1.7 1.2 2.6 1.8 0.9 0.6 1.9 1.4 1.6 1.1 1.1 0.9 2.1 1.9 3.1 2.8 1.2 1 0-0.3 0.1 0 0-0.2-0.8-2.4-0.3-4.1 1.5-5.5 2.3-2.7 0.8-2-0.4 0.2-0.9 0.8-1.3 1.1 1.7-1.4-1.6 1.1-2.3 1.6-3.4 2.3-6.9 4.4-10.4 6.4-14.9 8.6-30.3 16.4-45.6 24.3-8.6 4.4-1 17.4 7.6 13 15-7.7 30.1-15.4 44.8-23.8 6.2-3.6 13.8-7.3 18.7-12.7 7.6-8.3-3.8-16.6-9.9-20.9-8.7-6.1-18-11.3-27.3-16.4-6.5-3.6-13-7.1-19.6-10.4-8.6-4.5-16.3 8.5-7.6 12.8zM412.8 570.9c13.5 7.7 28.5 13.3 43.3 17.9 29.8 9.2 61.7 13.1 92.6 7.3 20.6-3.9 40-12.5 56.6-25.2 2.8-2.2 4.3-5.6 2.3-9-1.6-2.8-6.2-4.5-9-2.3-48.3 36.9-113.3 30-165.6 6.7-4.6-2.1-9.2-4.2-13.7-6.7-7.3-4.2-13.9 7.2-6.5 11.3z" fill="#040000" p-id="2634"></path><path d="M644.6 505.2c-30.1 21.5-60.6 62.5-39.1 99.8 10.7 18.6 30.3 30.9 49.1 40.1 7.8 3.8 14.6-7.9 6.8-11.7-23.6-11.5-53.7-31.4-49.4-60.9 2.8-18.9 15.8-34.6 29.5-47.2 2.5-2.3 5.1-4.6 7.8-6.7 0.5-0.4 0.9-0.7 1.4-1.1-0.4 0.3-1.2 0.9-0.1 0.1l0.9-0.6c6.9-5.1 0.2-16.8-6.9-11.8z" fill="#040000" p-id="2635"></path></svg>'},{name:"13",icon:'<svg t="1624457855182" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2789" ><path d="M235.1 76.9c75.6-26.5 297.3-90.1 514.2-16.6 16.3 5.5 29.8 17.4 37.1 33 57.5 122.4 127.1 602.1 62.1 785.6a62.58 62.58 0 0 1-32.5 35.8c-109.5 51.8-428.1 136.7-609.3 37.2-14.4-7.9-25-21.3-29.7-37.1-41.9-140.6-37-627.7 19.1-798 6.1-18.7 20.5-33.4 39-39.9z" fill="#F9DABD" p-id="2790"></path><path d="M392.2 360.2m-35.2 0a35.2 35.2 0 1 0 70.4 0 35.2 35.2 0 1 0-70.4 0Z" fill="#040000" p-id="2791"></path><path d="M618.6 360.2m-35.2 0a35.2 35.2 0 1 0 70.4 0 35.2 35.2 0 1 0-70.4 0Z" fill="#040000" p-id="2792"></path><path d="M512 562.6c-36 0-65.3-29.3-65.3-65.3S476 432 512 432s65.3 29.3 65.3 65.3-29.3 65.3-65.3 65.3z m0-122.9c-31.7 0-57.6 25.8-57.6 57.6s25.8 57.6 57.6 57.6c31.7 0 57.6-25.8 57.6-57.6s-25.9-57.6-57.6-57.6z" fill="#040000" p-id="2793"></path></svg>'},{name:"14",icon:'<svg t="1624457863444" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2947" ><path d="M178.1 971.5c38.1 15.9 98.7 26.6 171.3-12.3 3.7-2 8.4-1.6 11.6 1.1 43.3 35.9 123.3 80.8 236 10.9 3.8-2.4 8.7-2.4 12.6-0.2 41.8 23.9 191.6 58.2 246.6 14.2 4.4-3.5 9.1-6.6 14.5-8.5C1065 909.5 678.2-652 194.3 351c-37.5 77.8-38.4 94.1-71.9 211.3-27.6 96.3-29.1 231.3 1.4 348.1 7.2 27.3 27.3 49.9 54.3 61.1z" fill="#ABAAAA" p-id="2948"></path><path d="M468.9 349H418c-6.1 0-11.1-5-11.1-11.1V336c0-6.1 5-11.1 11.1-11.1h50.9c6.1 0 11.1 5 11.1 11.1v1.9c0 6.1-5 11.1-11.1 11.1zM643 471.9H390c-6.6 0-12-5.4-12-12s5.4-12 12-12h253c6.6 0 12 5.4 12 12s-5.4 12-12 12zM609 349h-61.2c-6 0-11-4.9-11-11v-2.1c0-6 4.9-11 11-11H609c6 0 11 4.9 11 11v2.1c0 6.1-4.9 11-11 11z" fill="#040000" p-id="2949"></path></svg>'},{name:"15",icon:'<svg t="1624457870536" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3103" ><path d="M673.1 318.7c3.7-17.5 5.6-35.7 5.6-54.4 0-137.9-105.5-249.7-235.6-249.7S207.4 126.4 207.4 264.3c0 55.4 17.1 106.7 45.9 148.1-55.2 63.3-88.6 145.9-88.6 236.3 0 199.2 162.1 360.6 362.1 360.6 200 0 362.1-161.5 362.1-360.6 0.1-147.3-88.7-274-215.8-330z" fill="#4F8A54" p-id="3104"></path><path d="M392 246.2m-47.1 0a47.1 47.1 0 1 0 94.2 0 47.1 47.1 0 1 0-94.2 0Z" fill="#FFFFFF" p-id="3105"></path><path d="M386 252.8m-26.4 0a26.4 26.4 0 1 0 52.8 0 26.4 26.4 0 1 0-52.8 0Z" fill="#040000" p-id="3106"></path><path d="M505.6 246.2m-47.1 0a47.1 47.1 0 1 0 94.2 0 47.1 47.1 0 1 0-94.2 0Z" fill="#FFFFFF" p-id="3107"></path><path d="M501.4 252.8m-26.4 0a26.4 26.4 0 1 0 52.8 0 26.4 26.4 0 1 0-52.8 0Z" fill="#040000" p-id="3108"></path><path d="M474.3 364.8h-50.9c-6.1 0-11.1-5-11.1-11.1v-1.9c0-6.1 5-11.1 11.1-11.1h50.9c6.1 0 11.1 5 11.1 11.1v1.9c0 6.2-5 11.1-11.1 11.1z" fill="#040000" p-id="3109"></path></svg>'},{name:"16",icon:'<svg t="1624457876371" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3263" ><path d="M246.4 227.6c-166.9 101.1-461.9 344 87 564.1 1.5 0.6 2.9 1.1 4.4 1.6 80.7 27.7 392.8 165.4 641-198.1 40-58.6 38.5-136.2-3.7-193.3C892 289.5 727 201.1 429.1 182.7c-64.1-4-127.8 11.6-182.7 44.9z" fill="#CF92BE" p-id="3264"></path><path d="M617.1 393.4c-17.4 8.8-34.9 18.1-51.2 28.9-6.9 4.6-20.3 12.3-17.4 22.6 1.2 4.3 5.6 7 9 9.5 3.7 2.7 7.6 5 11.5 7.3 18.2 10.8 37.1 20.3 55.9 30 10 5.1 18.9-10 8.8-15.1-16.4-8.4-32.9-16.9-49-26-4.5-2.6-9.1-5.2-13.5-8l-4.5-3c-0.7-0.5-1.3-1-2-1.5 1.6 1.2 0.7 0.4-0.2-0.2-1.3-0.9-0.3-0.9-0.5-0.3 0.2 0.2 0.4 0.5 0.6 0.7 1 1.9 1.3 3.7 0.8 5.7 0.1-0.6 0.7-1.4-0.6 1.3 0.7-1.5-0.1 0-0.2 0.1 0.6-0.6 1.2-1.3 1.9-1.9l1.8-1.5c1.8-1.6-0.6 0.3 1.2-0.9 2-1.5 4.1-2.9 6.2-4.3 10-6.5 20.4-12.4 30.9-18 6.5-3.5 13.1-7 19.7-10.4 9.6-5 0.8-20.1-9.2-15zM323.1 408.5c15.9 8.1 31.7 16.5 46.8 26 2.2 1.4 4.3 2.8 6.5 4.2 1 0.7 1.9 1.3 2.8 2 0.5 0.3 1 0.7 1.4 1.1-1.1-0.9-0.3-0.3 0.3 0.3 1.1 1 2.2 2.2 3.3 3.1 1.4 1.1-1-1.7-0.1-0.1-0.6-1.1-0.9-4.1 0.3-6.7 2.2-4.8 0.7 0.1 0-0.5 0 0-1.1 0.9-1.3 1 2.3-1.9 0 0-0.5 0.4-0.8 0.5-1.5 1.1-2.3 1.6-4 2.7-8.1 5.1-12.3 7.5-17.3 10-35.1 19.1-52.8 28.2-10 5.1-1.2 20.2 8.8 15.1 17.5-9 35-17.9 52-27.7 7.3-4.2 15.9-8.6 21.8-14.7 9.3-9.7-4.3-19.7-11.5-24.7-10.1-7.1-20.9-13.1-31.7-19-7.6-4.2-15.2-8.2-22.9-12.1-9.7-5.2-18.6 9.9-8.6 15zM513 592.1c-12.2 0-24.6-1.4-36.3-4.3-8-2-13.9-8.2-15.4-16.2s1.7-15.8 8.4-20.5c23.2-16.3 60.5-31.9 106.2-13 6.4 2.6 11 8.3 12.3 15.1 1.3 6.7-0.8 13.6-5.7 18.3-13.5 13.1-40.9 20.6-69.5 20.6z m-37.4-32.5c-3.4 2.4-4.9 6.2-4.2 10.2 0.8 4.1 3.6 7.1 7.7 8.1 39.1 9.7 81.2 0.7 96.1-13.7 2.4-2.3 3.4-5.6 2.7-8.9-0.7-3.4-2.9-6.2-6.1-7.5-41.2-17.2-75.1-3.1-96.2 11.8z" fill="#040000" p-id="3265"></path></svg>'},{name:"17",icon:'<svg t="1624457881793" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3419" ><path d="M1008.6 465.7c0-124.9-95.5-226.2-213.4-226.2-12 0-23.8 1.1-35.2 3.1v-3.1c0-124.9-95.5-226.2-213.4-226.2S333.4 114.6 333.4 239.5c0 2.4 0 4.8 0.1 7.2-17.1-4.7-35-7.2-53.4-7.2-117.8 0-213.4 101.3-213.4 226.2 0 92.1 51.9 171.3 126.3 206.6-13.7 29.9-21.4 63.4-21.4 98.8 0 124.9 95.5 226.2 213.4 226.2 68.8 0 130-34.5 169-88.1 39 53.6 100.2 88.1 169 88.1 117.8 0 213.4-101.3 213.4-226.2 0-41.2-10.4-79.9-28.6-113.1 60.5-39.9 100.8-111.1 100.8-192.3z" fill="#8CC66D" p-id="3420"></path><path d="M437.8 400.7m-24.7 0a24.7 24.7 0 1 0 49.4 0 24.7 24.7 0 1 0-49.4 0Z" fill="#040000" p-id="3421"></path><path d="M649.7 400.7m-24.7 0a24.7 24.7 0 1 0 49.4 0 24.7 24.7 0 1 0-49.4 0Z" fill="#040000" p-id="3422"></path><path d="M527.3 625.9c6.3-14.2 13.1-28.3 17.9-43 6.2-19 8.3-38.6 10.5-58.3l2.1-19.2c0.7-6.2-9-6.1-9.7 0-1.7 16.3-2.8 32.8-5.7 48.9-4.2 23.7-13.8 45-23.5 66.7-2.5 5.6 5.9 10.5 8.4 4.9z" fill="#252525" p-id="3423"></path><path d="M447.7 522.3c20.3-0.1 40.6-0.2 61-0.4l96.6-0.6c7.5 0 14.9-0.1 22.4-0.1 16.6-0.1 16.7-25.9 0-25.8-20.3 0.1-40.6 0.2-61 0.4l-96.6 0.6c-7.5 0-14.9 0.1-22.4 0.1-16.6 0.1-16.7 25.9 0 25.8z" fill="#040000" p-id="3424"></path><path d="M495.4 508.2c-10.3 3.8-9.2 20.9-9.2 29.5 0.1 16 2.1 32.3 6.1 47.8 3.5 13.7 8.7 29.9 20.6 38.7 12.9 9.5 27.6 2.1 37.6-7.9 10.2-10.3 17.8-23 24.7-35.6 11.6-21.3 20.9-43.8 29.7-66.4 3-7.8-9.5-11.1-12.5-3.4-7.4 19.1-15.3 38.1-24.7 56.4-5.9 11.5-12.2 23-20.3 33.1-2.8 3.5-5.8 6.9-9.2 9.8-1.9 1.7-1.4 1.3-3.3 2.5-1.3 0.8-2.6 1.6-3.9 2.2-0.7 0.3 1-0.2-0.8 0.3-0.6 0.2-1.2 0.3-1.8 0.5-1.1 0.3-1.2 0.2-0.5 0.1-0.6 0-1.3 0-1.9 0.1-2.2 0.1 0.6 0.5-1.8-0.2l-1.8-0.6c1.5 0.5 0.2 0.1-0.5-0.3-0.8-0.5-2.9-2.1-1.7-1.1-1-0.9-2-1.7-2.8-2.7-0.4-0.5-0.9-1-1.3-1.5 0.4 0.5 0.1 0.2-0.5-0.7-0.8-1.3-1.7-2.5-2.4-3.9-0.7-1.3-1.4-2.5-2-3.8-0.4-0.8-0.8-1.6-1.1-2.4-0.1-0.2-0.5-1.1 0 0l-0.6-1.5a86.8 86.8 0 0 1-3.3-9.8c-4.4-14.9-6.2-27.9-6.8-42.8-0.3-6.6-0.3-13.1 0.4-19.7 0.2-1.5-0.3 1.5 0.1-0.5l0.3-1.8c0.2-0.9 0.5-1.8 0.7-2.8 0.4-1.9-0.7 1.1 0.3-0.7 0.5-1-1.3 1.2-0.3 0.5-0.3 0.3-1.1 0.8-2 1.1 7.7-2.9 4.3-15.4-3.5-12.5z" fill="#040000" p-id="3425"></path></svg>'},{name:"18",icon:'<svg t="1624457899440" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3579" ><path d="M75.4 739.8c-78.7-134.4-194-455.7 401.4-579.6 9.8-2 19.2-6.2 29.2-7.5C656.8 133 947.3 205 1000.1 578.4c42.6 223.8 29.7 392.1-822 233.6-43.1-8-80.6-34.4-102.7-72.2z" fill="#F09495" p-id="3580"></path><path d="M704.6 875.4c-129 0-301.8-20.5-526.6-62.3-43.5-8.1-81.2-34.6-103.5-72.7-19.3-32.9-44.8-84.3-57.1-142.5-13.9-65.1-8.8-125.3 15.1-179.2 54.3-122.3 203.7-209.6 444-259.6 4.1-0.9 8.3-2.1 12.3-3.4 5.5-1.7 11.1-3.4 16.9-4.2 29-3.8 75.7-5.9 133.8 5.7 54.5 10.9 105.3 31 150.8 59.9C843.7 251 888.2 296 922.7 351c39.7 63.1 66.1 139.6 78.5 227.3 8.1 42.4 15.2 87.3 12.5 127.9-2.8 42.6-16.4 75.5-41.5 100.7-42.5 42.7-120.3 65-237.8 68.1-9.6 0.2-19.6 0.4-29.8 0.4zM76.3 739.3c22 37.6 59.2 63.7 102.1 71.7 242.5 45.1 424.4 65.3 556.1 61.9 116.9-3.1 194.1-25.2 236.3-67.5 55.4-55.6 44.4-142.5 28.3-226.7C976 415.8 903.4 291.5 789.2 219c-124-78.7-248.1-69.9-283.2-65.3-5.6 0.7-11.2 2.4-16.6 4.1-4.1 1.2-8.3 2.5-12.5 3.4C237.3 211.1 88.5 298 34.5 419.6c-54.6 122.8 2.8 253 41.8 319.7z" fill="#FFFFFF" p-id="3581"></path><path d="M424.1 442.5m-24.7 0a24.7 24.7 0 1 0 49.4 0 24.7 24.7 0 1 0-49.4 0Z" fill="#040000" p-id="3582"></path><path d="M635.9 442.5m-24.7 0a24.7 24.7 0 1 0 49.4 0 24.7 24.7 0 1 0-49.4 0Z" fill="#040000" p-id="3583"></path><path d="M426.2 543.3c17.1 7.9 36.6 26 25.5 46.1-6.9 12.5-19.8 21.2-31.7 28.4-4.5 2.7-0.4 9.8 4.1 7.1 17.4-10.5 41.6-27.6 39-51.1-1.6-14-12.4-24.8-23.5-32.3-3-2-6.1-3.9-9.3-5.4-4.8-2.1-8.9 5-4.1 7.2zM629.5 535.4c-21.8 11.7-40.6 37-25.7 61.3 8.2 13.4 22.2 22.7 35.7 30.3 4.7 2.7 8.9-4.6 4.2-7.2-15.5-8.7-39.9-23.9-36.9-45.2 1.6-11.4 10.7-20.7 19.6-27.2 2.4-1.7 4.8-3.4 7.4-4.8 4.7-2.5 0.4-9.8-4.3-7.2z" fill="#040000" p-id="3584"></path><path d="M457.2 584.6c25.6 25.6 66.7 41 101.8 28.3 18.2-6.6 33.2-19.1 45.5-33.8 4.2-5.1-3-12.4-7.3-7.3-18.5 22-43.3 38.1-73 35-18.6-1.9-36.2-10.8-50.9-22-2.9-2.2-6.1-4.8-8.8-7.5-4.7-4.7-12 2.6-7.3 7.3z" fill="#040000" p-id="3585"></path></svg>'},{name:"19",icon:'<svg t="1624457904464" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3739" ><path d="M915.9 510.5c8.4-19 13.1-39.8 13.1-61.7 0-90-78.9-162.9-176.2-162.9-3.2 0-6.3 0.1-9.5 0.2v-0.2c0-94.8-116.2-171.6-259.6-171.6S224 191.2 224 286v2c-96.2 0-174.1 72-174.1 160.9 0 38 14.3 73 38.2 100.5-41.8 29.4-68.8 75.9-68.8 128.2 0 88.9 78 160.9 174.1 160.9 17.1 0 33.6-2.3 49.3-6.5 28.9 46.1 88.7 77.7 157.6 77.7 49.4 0 94-16.2 126-42.3 32 26.1 76.6 42.3 126 42.3 77.3 0 143-39.7 166.7-95 3.1 0.2 6.3 0.2 9.5 0.2 97.3 0 176.2-72.9 176.2-162.9 0-60.6-35.7-113.4-88.8-141.5z" fill="#5A74B8" p-id="3740"></path><path d="M357.6 449.5a46.6 73.2 0 1 0 93.2 0 46.6 73.2 0 1 0-93.2 0Z" fill="#FEFEFD" p-id="3741"></path><path d="M357.5 449.5a25.1 39.4 0 1 0 50.2 0 25.1 39.4 0 1 0-50.2 0Z" fill="#040000" p-id="3742"></path><path d="M531.3 449.5a46.6 73.2 0 1 0 93.2 0 46.6 73.2 0 1 0-93.2 0Z" fill="#FEFEFD" p-id="3743"></path><path d="M531.2 449.5a25.1 39.4 0 1 0 50.2 0 25.1 39.4 0 1 0-50.2 0Z" fill="#040000" p-id="3744"></path><path d="M426.7 574.6c20.9 29.9 59.7 52.2 96.2 38.6 19.2-7.2 34.7-21.2 47.6-36.9 2.8-3.5 3.4-8.3 0-11.7-2.9-2.9-8.9-3.5-11.7 0-16.5 20.2-40.9 40.9-68.1 35.5-17.3-3.4-31-13.2-42.9-25.9-2-2.2-3.9-4.4-5.8-6.7-1.6-1.9 1.1 1.5-0.4-0.6-0.2-0.2-0.3-0.5-0.5-0.7-6.2-8.7-20.6-0.4-14.4 8.4z" fill="#040000" p-id="3745"></path></svg>'},{name:"20",icon:'<svg t="1624457910321" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3899" ><path d="M792.8 301.4c-8.2 0-16.2 0.4-24.2 1.3-12.3-81.8-129.2-145.9-271.8-145.9-137.1 0-250.5 59.3-269.9 136.6C105.3 295.5 7.4 391.2 7.4 508.9c0 119.1 100.2 215.6 223.7 215.6 5.3 0 10.6-0.2 15.8-0.5 14.4 80.5 130.4 143.2 271.3 143.2 135.9 0 248.6-58.3 269.4-134.6 1.7 0 3.4 0.1 5.1 0.1 123.6 0 223.7-96.5 223.7-215.6s-100-215.7-223.6-215.7z" fill="#F6CD50" p-id="3900"></path><path d="M435.9 431.5m-52.2 0a52.2 52.2 0 1 0 104.4 0 52.2 52.2 0 1 0-104.4 0Z" fill="#FAFAFA" p-id="3901"></path><path d="M588.1 431.5m-52.2 0a52.2 52.2 0 1 0 104.4 0 52.2 52.2 0 1 0-104.4 0Z" fill="#FAFAFA" p-id="3902"></path><path d="M435.9 431.5m-27.8 0a27.8 27.8 0 1 0 55.6 0 27.8 27.8 0 1 0-55.6 0Z" fill="#040000" p-id="3903"></path><path d="M601.9 407.4c-5.7 2.9-11.3 5.9-16.9 9-6.8 3.8-15.3 7.8-20.5 13.8-5.6 6.5 1.6 11.1 6.7 14.4 11.2 7.1 23.3 13 35.1 19 5.7 2.9 10.8-5.7 5.1-8.6-10.9-5.6-21.9-11.1-32.4-17.4-2.4-1.4-4.6-3.1-7-4.6 1 0.6-0.4-0.4-0.4-0.4-1.9-0.3-0.5 4.2 0.5 4.1-0.1 0-0.6 0.3 0.3-0.3 0.5-0.3 1-0.9 1.5-1.3 9.7-7.9 21.9-13.5 33.1-19.2 5.7-2.7 0.6-11.4-5.1-8.5zM406.6 547.6c11.5 14.4 27 26.7 42.7 36.3 32.2 19.8 71.2 27.2 107.6 15.4 29.5-9.6 54.6-29.1 75.5-51.6 10.8-11.6-6.6-29.1-17.5-17.5-9.4 10.1-19.5 19.7-30.8 27.7-4.6 3.2-9.3 6.2-14.2 8.9-5 2.8-9.9 5.1-14.1 6.7-4.6 1.7-9.3 3.2-14.1 4.4-2.2 0.5-4.4 1-6.6 1.4-1 0.2-2 0.3-2.9 0.5 2.6-0.4-2.1 0.2-2.5 0.3-4.1 0.4-8.3 0.5-12.5 0.4-2.2-0.1-4.4-0.2-6.6-0.4-1.1-0.1-2.2-0.2-3.2-0.3-1.5-0.2-1.4-0.2 0.1 0l-2.1-0.3c-7.8-1.3-15.4-3.4-22.8-6.2-0.9-0.4-1.8-0.7-2.8-1.1-3.1-1.2 2.3 1.1-0.7-0.3-1.5-0.7-2.9-1.3-4.4-2-3.7-1.8-7.2-3.7-10.8-5.8-5.7-3.4-11.1-7.1-16.4-11.1 3 2.3-1.1-0.9-1.8-1.5-1.1-0.9-2.1-1.7-3.1-2.6-2.1-1.8-4.2-3.7-6.3-5.6-4.4-4.1-8.7-8.4-12.4-13.1-4.2-5.2-13.1-4.3-17.5 0-5 5.1-4 12.2 0.2 17.4z" fill="#040000" p-id="3904"></path></svg>'}]},{name:"标记图标",type:"sign",list:[{name:"1",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M809.728 429.696a18.901333 18.901333 0 0 0-15.274667-12.885333l-183.466666-26.624-81.92-166.272a18.901333 18.901333 0 0 0-34.005334 0l-81.92 166.272-183.594666 26.624a19.029333 19.029333 0 0 0-10.496 32.298666l132.693333 129.536-31.274667 182.741334a18.816 18.816 0 0 0 27.477334 19.84l164.138666-86.186667 164.096 86.058667a18.773333 18.773333 0 1 0 27.434667-19.84l-31.36-182.741334 132.693333-129.408a18.901333 18.901333 0 0 0 4.778667-19.413333z" fill="#FFFFFF"></path></svg>'},{name:"2",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M644.565333 306.901333c32.128 0 65.834667-5.76 101.077334-17.237333a17.066667 17.066667 0 0 1 22.357333 16.213333v328.32c-1.109333 0.768 10.325333 27.093333-99.370667 19.84-109.653333-7.210667-181.76-45.098667-246.869333-45.098666-65.152 0-49.322667 2.688-74.154667 8.405333v168.064a24.746667 24.746667 0 0 1-24.490666 25.258667 22.528 22.528 0 0 1-17.28-7.253334 24.149333 24.149333 0 0 1-7.168-18.005333V281.258667C299.776 280.490667 328.106667 256 421.76 256s164.437333 50.901333 222.805333 50.901333z" fill="#FFFFFF"></path></svg>'},{name:"3",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M524.074667 225.408l274.517333 274.517333a17.066667 17.066667 0 0 1 0 24.149334l-274.517333 274.517333a17.066667 17.066667 0 0 1-24.149334 0l-274.517333-274.517333a17.066667 17.066667 0 0 1 0-24.149334l274.517333-274.517333a17.066667 17.066667 0 0 1 24.149334 0z" fill="#FFFFFF"></path></svg>'},{name:"4",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M317.866667 300.8h388.266666c9.386667 0 17.066667 7.68 17.066667 17.066667v388.266666a17.066667 17.066667 0 0 1-17.066667 17.066667h-388.266666a17.066667 17.066667 0 0 1-17.066667-17.066667v-388.266666c0-9.386667 7.68-17.066667 17.066667-17.066667z" fill="#FFFFFF"></path></svg>'},{name:"5",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M498.346667 279.082667L248.789333 701.44a15.829333 15.829333 0 0 0 13.653334 23.893333h499.114666a15.829333 15.829333 0 0 0 13.653334-23.893333l-249.6-422.357333a15.829333 15.829333 0 0 0-27.264 0z" fill="#FFFFFF"></path></svg>'},{name:"6",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M497.749333 798.549333l-31.445333-28.501333C313.941333 631.722667 213.333333 540.501333 213.333333 428.8a160.981333 160.981333 0 0 1 162.730667-162.730667c51.498667 0 100.906667 23.978667 133.12 61.696a177.536 177.536 0 0 1 133.162667-61.696 160.981333 160.981333 0 0 1 162.730666 162.730667c0 111.701333-100.608 202.965333-252.970666 341.333333l-31.445334 28.458667a17.066667 17.066667 0 0 1-22.912 0z" fill="#FFFFFF"></path><path d="M634.538667 487.808L555.050667 426.24 507.306667 256a201.002667 201.002667 0 0 0-23.594667 20.394667l-0.256-0.256L525.653333 426.666667l-133.290666 59.946666a14.08 14.08 0 0 0-8.021334 15.957334l28.757334 126.378666a14.208 14.208 0 0 0 27.733333-6.229333l-26.24-115.114667 126.037333-56.704 76.416 59.136a14.250667 14.250667 0 0 0 19.968-2.474666 14.08 14.08 0 0 0-2.474666-19.797334z" fill="#6D768D"></path></svg>'},{name:"7",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M497.749333 798.549333l-31.445333-28.501333C313.941333 631.722667 213.333333 540.501333 213.333333 428.8a160.981333 160.981333 0 0 1 162.730667-162.730667c51.498667 0 100.906667 23.978667 133.12 61.696a177.536 177.536 0 0 1 133.162667-61.696 160.981333 160.981333 0 0 1 162.730666 162.730667c0 111.701333-100.608 202.965333-252.970666 341.333333l-31.445334 28.458667a17.066667 17.066667 0 0 1-22.912 0z" fill="#FFFFFF"></path></svg>'},{name:"8",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M374.656 273.194667c5.973333 4.48 12.117333 9.6 18.346667 15.36 6.272 5.717333 11.904 12.373333 16.896 19.84 2.517333 4.010667 5.504 8.490667 9.002666 13.482666a529.493333 529.493333 0 0 1 20.266667 32.213334h155.221333a169.813333 169.813333 0 0 0 9.770667-15.744c2.474667-4.48 5.248-8.96 8.234667-13.482667a460.842667 460.842667 0 0 1 23.253333-31.829333c4.992-6.229333 12.245333-12.373333 21.76-18.346667a34.261333 34.261333 0 0 0 10.112-9.728 31.274667 31.274667 0 0 0 5.248-11.989333 18.56 18.56 0 0 0-1.536-11.605334 17.664 17.664 0 0 0-10.112-8.618666c-4.48-1.493333-8.362667-2.005333-11.605333-1.493334a46.933333 46.933333 0 0 0-9.770667 2.602667c-3.242667 1.28-6.613333 2.645333-10.112 4.138667a32.426667 32.426667 0 0 1-12.757333 2.261333 26.026667 26.026667 0 0 1-12.373334-2.645333 45.653333 45.653333 0 0 1-8.96-6.357334l-8.661333-7.850666a30.336 30.336 0 0 0-11.989333-6.4c-9.984-3.968-18.005333-4.693333-24.021334-2.218667-5.973333 2.474667-11.946667 6.485333-17.962666 11.946667a88.618667 88.618667 0 0 1-11.989334 10.496 7.338667 7.338667 0 0 1-3.754666 1.493333 46.165333 46.165333 0 0 1-8.277334-5.205333 71.808 71.808 0 0 1-7.125333-4.906667 37.973333 37.973333 0 0 1-6.4-6.357333c-3.968-3.968-9.941333-6.613333-17.92-7.850667a31.061333 31.061333 0 0 0-21.76 4.138667c-8.533333 5.461333-14.506667 10.069333-18.048 13.824a29.354667 29.354667 0 0 1-15.744 7.893333 23.978667 23.978667 0 0 1-13.098667-0.768 987.733333 987.733333 0 0 0-14.634666-4.48 80.725333 80.725333 0 0 0-14.250667-2.986667 16.768 16.768 0 0 0-11.989333 2.986667c-6.997333 5.461333-9.258667 12.074667-6.741334 19.84a34.56 34.56 0 0 0 13.482667 18.346667z" fill="#FFFFFF"></path><path d="M780.757333 545.152a219.306667 219.306667 0 0 0-19.882666-65.536 224.981333 224.981333 0 0 0-33.365334-49.792 430.336 430.336 0 0 0-37.12-37.12c-14.506667-11.946667-27.264-23.296-38.272-34.048a544.512 544.512 0 0 1-27.733333-28.842667 305.28 305.28 0 0 1-22.485333-26.197333h-168.746667c-6.485333 8.490667-13.994667 17.493333-22.485333 26.965333a360.96 360.96 0 0 1-26.24 28.074667c-10.538667 10.24-22.272 21.12-35.285334 32.597333a305.493333 305.493333 0 0 0-41.6 44.16 250.026667 250.026667 0 0 0-49.493333 117.589334 216.106667 216.106667 0 0 0 1.877333 70.4 220.586667 220.586667 0 0 0 75.349334 126.549333c21.248 18.005333 47.146667 32.597333 77.653333 43.818667 30.464 11.264 65.493333 16.853333 104.96 16.853333 38.528 0 72.874667-4.864 103.125333-14.592a265.045333 265.045333 0 0 0 78.378667-39.338667c21.973333-16.469333 39.594667-35.797333 52.864-58.026666 13.226667-22.186667 22.101333-45.824 26.624-70.784 4.992-30.421333 5.632-58.026667 1.877333-82.773334z" fill="#FFFFFF"></path><path d="M593.322667 647.509333a20.48 20.48 0 0 1-11.861334 3.2h-50.133333v14.165334c0 4.266667-1.792 8.362667-5.376 12.373333a15.914667 15.914667 0 0 1-13.952 5.333333 24.917333 24.917333 0 0 1-14.336-3.882666c-3.84-2.602667-5.973333-7.210667-6.4-13.824v-14.165334h-48.725333a17.792 17.792 0 0 1-11.818667-3.882666 10.24 10.24 0 0 1-3.968-9.6c0-4.266667 1.578667-7.68 4.693333-10.24a16.768 16.768 0 0 1 11.093334-3.925334h48.682666v-24.789333h-48.682666a15.573333 15.573333 0 0 1-11.52-4.266667 13.525333 13.525333 0 0 1-4.266667-9.941333 15.36 15.36 0 0 1 4.693333-10.624 14.72 14.72 0 0 1 11.093334-4.949333h48.682666l0.725334-14.890667a1053.568 1053.568 0 0 1-40.832-42.538667l-10.752-9.898666a41.216 41.216 0 0 1-6.442667-11.690667c-1.92-4.992-0.938667-10.069333 2.858667-15.274667a13.653333 13.653333 0 0 1 15.786666-3.84c6.186667 2.090667 11.221333 4.821333 15.018667 8.106667 1.92 2.389333 5.248 5.888 10.026667 10.666667l15.061333 14.848 19.328 19.157333 22.186667-20.565333a987.605333 987.605333 0 0 1 29.397333-25.514667 21.162667 21.162667 0 0 1 14.293333-5.674667c5.290667 0 9.557333 2.133333 12.928 6.4 6.186667 7.082667 3.84 15.36-7.168 24.789334a179.072 179.072 0 0 0-12.885333 12.373333c-5.76 5.973333-11.52 11.733333-17.194667 17.408-6.698667 7.082667-14.08 14.378667-22.186666 21.973333v13.44h46.506666c6.698667 0 11.605333 1.536 14.72 4.608a14.165333 14.165333 0 0 1 4.650667 10.282667c0 4.266667-1.450667 7.936-4.309333 11.008-2.858667 3.029333-7.637333 4.352-14.336 3.84l-46.506667 0.768-0.768 24.064h45.866667c13.354667 0 20.053333 4.992 20.053333 14.933333 0.469333 4.693333-0.853333 8.106667-3.925333 10.24z" fill="#6D768D"></path></svg>'},{name:"9",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M512 213.333333l234.666667 341.333334h-128v213.333333h-213.333334v-213.333333h-128L512 213.333333z" fill="#FFFFFF"></path></svg>'},{name:"10",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M533.333333 810.666667L298.666667 469.333333h128V256h213.333333v213.333333h128l-234.666667 341.333334z" fill="#FFFFFF"></path></svg>'},{name:"11",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M213.333333 533.333333L554.666667 298.666667v128h213.333333v213.333333h-213.333333v128l-341.333334-234.666667z" fill="#FFFFFF"></path></svg>'},{name:"12",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M810.666667 533.333333L469.333333 768v-128H256v-213.333333h213.333333V298.666667l341.333334 234.666666z" fill="#FFFFFF"></path></svg>'},{name:"13",icon:'<svg viewBox="0 0 1024 1024"><path d="M0 512c0 282.752 229.248 512 512 512s512-229.248 512-512S794.752 0 512 0 0 229.248 0 512z" fill="#6D768D"></path><path d="M571.349333 508.586667l162.389334-162.346667a44.330667 44.330667 0 1 0-62.72-62.72l-162.389334 162.389333-162.517333-162.389333a44.330667 44.330667 0 1 0-62.72 62.72l162.389333 162.389333-162.389333 162.474667a44.330667 44.330667 0 1 0 62.72 62.72l162.389333-162.346667 162.389334 162.389334a44.330667 44.330667 0 1 0 62.72-62.72l-162.261334-162.56z" fill="#FFFFFF"></path></svg>'},{name:"14",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 0C233.386667 0 0 225.877333 0 512s225.877333 512 512 512 512-225.877333 512-512S790.613333 0 512 0z" fill="#6D768D"></path><path d="M726.144 311.210667l-277.333333 305.066666-124.8-124.8c-13.866667-13.866667-41.6-13.866667-55.466667 0-13.866667 13.866667-13.866667 41.6 0 55.466667l159.445333 152.533333c13.866667 13.866667 41.6 13.866667 55.466667 0l305.066667-332.8c13.866667-13.866667 13.866667-41.6 0-55.466666-20.778667-13.866667-48.512-13.866667-62.378667 0z" fill="#FFFFFF"></path></svg>'},{name:"15",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M541.952 755.626667a40.618667 40.618667 0 0 1-29.824 12.373333 41.344 41.344 0 0 1-30.122667-12.373333 40.106667 40.106667 0 0 1-12.672-30.122667c0-11.605333 4.096-21.845333 12.672-30.122667a40.405333 40.405333 0 0 1 30.122667-12.714666c11.605333 0 21.546667 4.138667 29.824 12.714666a40.32 40.32 0 0 1 12.714667 30.122667c0 11.861333-4.096 21.76-12.714667 30.122667zM450.986667 241.28A77.866667 77.866667 0 0 1 512.256 213.333333c24.874667 0 45.354667 8.917333 61.354667 27.946667 15.488 18.432 23.722667 41.685333 23.722666 69.674667 0 23.765333-33.152 200.533333-44.672 329.045333h-80.128C463.146667 511.402667 426.666667 334.677333 426.666667 310.954667c0-27.392 8.277333-50.645333 24.32-69.674667z" fill="#FFFFFF"></path></svg>'},{name:"16",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 0C229.248 0 0 229.248 0 512s229.248 512 512 512 512-229.248 512-512S794.794667 0 512 0z" fill="#6D768D"></path><path d="M490.666667 682.666667a64 64 0 1 1 0 128 64 64 0 0 1 0-128z m13.994666-490.752c61.397333 0 112.341333 14.634667 153.002667 43.946666 40.533333 29.269333 60.885333 72.618667 60.885333 130.133334 0 35.242667-12.373333 64.938667-29.952 89.045333-10.282667 14.677333-33.664 33.408-62.890666 56.192l-32.426667 22.357333c-15.701333 12.202667-29.696 26.453333-34.858667 42.666667-1.706667 5.546667-3.072 14.677333-3.968 24.533333-0.426667 4.949333-4.864 15.018667-15.232 15.018667h-83.328c-13.568 0-15.957333-10.581333-15.744-15.786667 1.493333-34.005333 4.608-64.213333 18.474667-80.469333 28.074667-32.896 91.904-73.813333 91.904-73.813333a104.106667 104.106667 0 0 0 23.552-24.021334c10.837333-14.933333 19.797333-31.317333 19.797333-49.237333 0-20.565333-6.016-39.338667-18.090666-56.32-12.032-16.938667-34.090667-25.386667-66.005334-25.386667-31.445333 0-53.76 10.410667-66.901333 31.274667-9.685333 15.445333-15.786667 29.610667-18.346667 45.013333-0.853333 5.461333-4.394667 16.981333-16.042666 16.981334H327.210667c-17.322667 0-21.12-11.221333-20.650667-16.64 6.272-68.138667 32.896-114.688 80-144.597334 32-20.565333 71.381333-30.890667 118.101333-30.890666z" fill="#FFFFFF"></path></svg>'},{name:"17",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M336.256 410.026667H253.312a40.021333 40.021333 0 0 0-39.850667 43.264l23.296 278.101333c1.706667 20.693333 19.072 36.608 39.850667 36.608h59.648c11.050667 0 20.010667-8.96 20.010667-19.968v-318.037333a19.968 19.968 0 0 0-20.010667-19.968z m434.432 0h-178.944C653.312 182.314667 548.949333 170.666667 548.949333 170.666667c-44.288 0-35.114667 34.986667-38.442666 40.832 0 84.48-68.010667 155.093333-101.034667 184.362666a39.552 39.552 0 0 0-13.226667 29.653334v322.56c0 11.008 8.96 19.925333 20.010667 19.925333h233.728c30.378667 0 58.154667-17.152 71.68-44.373333 18.176-36.736 40.448-90.112 54.656-133.973334 13.781333-42.410667 26.24-94.976 33.578667-131.968a39.850667 39.850667 0 0 0-39.253334-47.658666z" fill="#FFFFFF"></path></svg>'},{name:"18",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M796.16 413.909333c-31.146667-0.298667-115.626667-0.085333-146.858667-0.085333h-158.464c8.533333-7.68 15.914667-14.506667 23.594667-20.906667 29.781333-24.874667 25.813333-71.082667-14.208-88.874666-22.954667-10.24-44.970667-5.632-64 11.52-34.944 31.274667-69.632 62.677333-104.277333 93.994666a15.488 15.488 0 0 1-11.178667 4.437334c-11.221333-0.085333-26.88-0.128-46.933333-0.170667a17.066667 17.066667 0 0 0-17.109334 17.066667L256 719.701333a17.066667 17.066667 0 0 0 17.066667 17.152l49.578666-0.085333c3.968 0 7.466667 0.768 10.88 2.602667 15.829333 8.832 31.701333 17.493333 47.616 26.24a18.133333 18.133333 0 0 0 9.301334 2.346666h168.405333c6.186667 0 11.946667-0.981333 17.834667-2.56 29.44-7.253333 40.021333-30.293333 38.528-52.565333-0.768-9.728-4.266667-18.346667-9.984-26.24 19.626667-5.76 35.114667-16.213333 42.112-36.096 7.125333-20.394667 1.621333-38.4-12.672-53.333333 28.16-19.754667 34.858667-44.672 18.645333-75.648h140.458667c6.570667 0 13.013333-0.597333 19.370666-2.645334 31.957333-9.813333 48.810667-42.88 35.626667-71.552-10.154667-22.186667-28.629333-33.152-52.608-33.450666z" fill="#FFFFFF"></path></svg>'},{name:"19",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M270.506667 413.909333c31.146667-0.298667 115.626667-0.085333 146.858666-0.085333h158.464c-8.533333-7.68-15.914667-14.506667-23.594666-20.906667-29.781333-24.874667-25.813333-71.082667 14.208-88.874666 22.954667-10.24 44.970667-5.632 64 11.52 34.944 31.274667 69.632 62.677333 104.277333 93.994666 3.413333 2.986667 6.528 4.437333 11.178667 4.437334 11.221333-0.085333 26.88-0.128 46.933333-0.170667a17.066667 17.066667 0 0 1 17.109333 17.066667l0.682667 288.853333a17.066667 17.066667 0 0 1-17.066667 17.152l-49.578666-0.085333a22.101333 22.101333 0 0 0-10.88 2.602666c-15.829333 8.832-31.701333 17.493333-47.616 26.24a18.133333 18.133333 0 0 1-9.301334 2.346667h-168.405333a68.693333 68.693333 0 0 1-17.834667-2.56c-29.44-7.253333-40.021333-30.293333-38.528-52.565333 0.768-9.728 4.266667-18.346667 9.984-26.24-19.626667-5.76-35.114667-16.213333-42.112-36.096-7.125333-20.394667-1.621333-38.4 12.672-53.333334-28.16-19.754667-34.858667-44.672-18.645333-75.648H272.853333c-6.570667 0-13.013333-0.597333-19.370666-2.645333-31.957333-9.813333-48.810667-42.88-35.626667-71.552 10.154667-22.186667 28.629333-33.152 52.608-33.450667z" fill="#FFFFFF"></path></svg>'},{name:"20",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M667.733333 480.128H400v-111.36a97.706667 97.706667 0 0 1 97.621333-97.621333 97.706667 97.706667 0 0 1 97.578667 97.621333 28.885333 28.885333 0 0 0 57.813333 0A155.605333 155.605333 0 0 0 497.621333 213.333333a155.605333 155.605333 0 0 0-155.392 155.434667v111.36h-14.677333A28.885333 28.885333 0 0 0 298.666667 509.013333v292.010667a28.885333 28.885333 0 0 0 28.885333 28.885333h340.138667a28.885333 28.885333 0 0 0 28.928-28.885333V509.013333a28.885333 28.885333 0 0 0-28.928-28.885333z" fill="#FFFFFF"></path></svg>'},{name:"21",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M400.042667 437.461333v-111.36a97.706667 97.706667 0 0 1 97.621333-97.621333 97.706667 97.706667 0 0 1 97.578667 97.621333 28.885333 28.885333 0 0 0 57.813333 0A155.605333 155.605333 0 0 0 497.621333 170.666667a155.605333 155.605333 0 0 0-155.392 155.434666v111.36h-14.677333A28.885333 28.885333 0 0 0 298.666667 466.346667v292.010666a28.885333 28.885333 0 0 0 28.885333 28.885334h340.138667a28.885333 28.885333 0 0 0 28.928-28.885334V466.346667a28.885333 28.885333 0 0 0-28.928-28.885334H400.042667z" fill="#FFFFFF"></path><path d="M595.242667 437.461333v-111.36a97.706667 97.706667 0 0 0-97.621334-97.621333 97.706667 97.706667 0 0 0-97.578666 97.621333 28.885333 28.885333 0 0 1-57.813334 0A155.605333 155.605333 0 0 1 497.621333 170.666667a155.605333 155.605333 0 0 1 155.434667 155.434666v111.36h14.634667c16 0 28.928 12.928 28.928 28.885334v292.010666a28.885333 28.885333 0 0 1-28.928 28.885334H327.552A28.885333 28.885333 0 0 1 298.666667 758.357333V466.346667c0-15.957333 12.928-28.885333 28.885333-28.885334h267.690667z" fill="#FFFFFF"></path></svg>'},{name:"22",icon:'<svg viewBox="0 0 1024 1024"><path d="M511.999787 512.000213m-511.999787 0a511.999787 511.999787 0 1 0 1023.999573 0 511.999787 511.999787 0 1 0-1023.999573 0Z" fill="#6D768D"></path><path d="M381.354508 364.586941c0 54.015977 29.013321 103.935957 75.946635 130.986613a152.53327 152.53327 0 0 0 151.935936 0 151.12527 151.12527 0 0 0 75.946636-130.986613A151.594604 151.594604 0 0 0 533.333111 213.333671a151.594604 151.594604 0 0 0-151.89327 151.25327zM660.479725 498.901552a185.258589 185.258589 0 0 1-127.146614 50.346646c-49.066646 0-93.866628-19.199992-127.06128-50.346646C317.141201 544.853533 255.999893 637.440161 255.999893 744.106783c0 13.183995 10.709329 23.850657 23.978657 23.850657h506.709122a23.893323 23.893323 0 0 0 23.978657-23.893323c0-106.538622-61.098641-199.25325-150.186604-245.205232z" fill="#FFFFFF"></path></svg>'},{name:"23",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M445.610667 401.578667a129.322667 129.322667 0 1 0 258.645333 0 129.322667 129.322667 0 0 0-258.645333 0z m237.568 114.901333a157.354667 157.354667 0 0 1-216.362667 0 236.373333 236.373333 0 0 0-127.957333 209.706667c0 11.264 9.130667 20.394667 20.394666 20.394666h431.402667a20.394667 20.394667 0 0 0 20.394667-20.394666 236.373333 236.373333 0 0 0-127.872-209.706667zM409.813333 401.578667c0-40.362667 14.592-77.397333 38.698667-106.112a112.725333 112.725333 0 0 0-29.013333-3.925334 112.64 112.64 0 0 0-112.426667 112.469334 112.64 112.64 0 0 0 144.853333 107.648 164.693333 164.693333 0 0 1-42.112-110.08z m-18.602666 136.704a136.533333 136.533333 0 0 1-65.706667-34.474667 205.44 205.44 0 0 0-111.232 182.4c0 9.813333 7.936 17.706667 17.706667 17.706667H303.36a273.621333 273.621333 0 0 1 87.893333-165.632z" fill="#FFFFFF"></path></svg>'}]}],ir='<svg t="1624174958075" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7982" ><path d="M435.484444 251.733333v68.892445L295.822222 320.682667a168.504889 168.504889 0 0 0-2.844444 336.952889h142.506666v68.892444H295.822222a237.397333 237.397333 0 0 1 0-474.794667h139.662222z m248.945778 0a237.397333 237.397333 0 0 1 0 474.851556H544.654222v-69.006222l139.776 0.056889a168.504889 168.504889 0 0 0 2.844445-336.952889H544.597333V251.676444h139.776z m-25.827555 203.946667a34.474667 34.474667 0 0 1 0 68.892444H321.649778a34.474667 34.474667 0 0 1 0-68.892444h336.952889z" p-id="7983"></path></svg>',nr='<svg t="1624195132675" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8792" ><path d="M152.768 985.984 152.768 49.856l434.56 0 66.816 0 234.048 267.392 0 66.816 0 601.92L152.768 985.984 152.768 985.984zM654.144 193.088l0 124.16 108.736 0L654.144 193.088 654.144 193.088zM821.312 384.064l-167.168 0L587.328 384.064 587.328 317.312 587.328 116.736 219.584 116.736 219.584 919.04l601.728 0L821.312 384.064 821.312 384.064zM386.688 517.888 319.808 517.888 319.808 450.944l66.816 0L386.624 517.888 386.688 517.888zM386.688 651.584 319.808 651.584 319.808 584.704l66.816 0L386.624 651.584 386.688 651.584zM386.688 785.344 319.808 785.344l0-66.88 66.816 0L386.624 785.344 386.688 785.344zM721.024 517.888 453.632 517.888 453.632 450.944l267.392 0L721.024 517.888 721.024 517.888zM654.144 651.584 453.632 651.584 453.632 584.704l200.512 0L654.144 651.584 654.144 651.584zM620.672 785.344l-167.04 0 0-66.88 167.04 0L620.672 785.344 620.672 785.344z" p-id="8793"></path></svg>',sr='<svg t="1711935375590" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3864" xmlns:xlink="http://www.w3.org/1999/xlink" width="128" height="128"><path d="M516.373333 375.978667l136.576-136.576a147.797333 147.797333 0 0 1 208.853334-0.021334 147.690667 147.690667 0 0 1-0.042667 208.832l-204.8 204.778667v0.021333l-153.621333 153.6c-85.973333 85.973333-225.28 85.973333-311.253334 0.021334-85.994667-85.973333-85.973333-225.216 0.149334-311.36L431.146667 256.362667a21.333333 21.333333 0 0 0-30.165334-30.165334L162.069333 465.066667c-102.805333 102.826667-102.826667 269.056-0.149333 371.733333 102.613333 102.613333 268.970667 102.613333 371.584 0l153.6-153.642667h0.021333l0.021334-0.021333 204.778666-204.778667c74.325333-74.325333 74.346667-194.858667 0.021334-269.184-74.24-74.24-194.88-74.24-269.162667 0.042667l-136.576 136.554667-187.626667 187.626666a117.845333 117.845333 0 0 0-0.106666 166.826667 118.037333 118.037333 0 0 0 166.826666-0.106667l255.850667-255.829333a21.333333 21.333333 0 0 0-30.165333-30.165333L435.136 669.973333a75.370667 75.370667 0 0 1-106.496 0.106667 75.178667 75.178667 0 0 1 0.128-106.496l187.605333-187.605333z" p-id="3865"></path></svg>',rr=(t,e=[])=>{let i=t.split("_");let n=[...er,...e].reduce(((t,e)=>{const i=t.find((t=>t.type===e.type));return i?e.list.forEach((t=>{const e=i.list.find((e=>e.name===t.name));e?e.icon=t.icon:i.list.push(t)})):t.push(h({},e)),t}),[]).find((t=>t.type===i[0]));if(n){let t=n.list.find((t=>t.name===i[1]));return t?t.icon:""}return""},or=(t,e)=>{const i=new qn,n=(new Wn).text(t);return e.text(n),i.add(n),i.bbox()},ar={radius:3,fontSize:12,fill:"",height:20,paddingX:8};const hr={createImgNode:function(){const t=this.getData("image");if(!t)return;const e=this.getImgShowSize(),i=(new Ki).load(t).size(...e),{defaultNodeImage:n}=this.mindMap.opt;if(n){const e=new Image;e.onerror=()=>{i.load(n)},e.src=t}return this.getData("imageTitle")&&i.attr("title",this.getData("imageTitle")),i.on("dblclick",(t=>{this.mindMap.emit("node_img_dblclick",this,t)})),i.on("mouseenter",(t=>{this.mindMap.emit("node_img_mouseenter",this,i,t)})),i.on("mouseleave",(t=>{this.mindMap.emit("node_img_mouseleave",this,i,t)})),i.on("mousemove",(t=>{this.mindMap.emit("node_img_mousemove",this,i,t)})),{node:i,width:e[0],height:e[1]}},getImgShowSize:function(){const{custom:t,width:e,height:i}=this.getData("imageSize");return t?[e,i]:((t,e,i,n)=>{let s=t/e,r=[];i&&n?r=t<=i&&e<=n?[t,e]:s>i/n?[i,i/s]:[s*n,n]:i?r=t<=i?[t,e]:[i,i/s]:n&&(r=e<=n?[t,e]:[s*n,n]);return r})(e,i,this.mindMap.themeConfig.imgMaxWidth,this.mindMap.themeConfig.imgMaxHeight)},createIconNode:function(){let t=this.getData();if(!t.icon||t.icon.length<=0)return[];let e=this.mindMap.themeConfig.iconSize;return t.icon.map((t=>{let i=rr(t,this.mindMap.opt.iconList||[]),n=null;return n=/^<svg/.test(i)?ss(i):(new Ki).load(i),n.size(e,e),n.on("click",(e=>{this.mindMap.emit("node_icon_click",this,t,e,n)})),n.on("mouseenter",(e=>{this.mindMap.emit("node_icon_mouseenter",this,t,e,n)})),n.on("mouseleave",(e=>{this.mindMap.emit("node_icon_mouseleave",this,t,e,n)})),{node:n,width:e,height:e}}))},createRichTextNode:function(t){const e=this.hasCustomWidth();let i="string"==typeof t?t:this.getData("text"),{textAutoWrapWidth:n,emptyTextMeasureHeightText:s}=this.mindMap.opt;n=e?this.customTextWidth:n;const r=new qn;let o=!1;this.getData("resetRichText")&&(delete this.nodeData.data.resetRichText,o=!0),o&&!ws(i)&&(i=(t=>{_s||(_s=document.createElement("div")),_s.innerHTML=t;for(let e=_s.childNodes,i=e.length;i--;)if(1==e[i].nodeType)return!0;return!1})(i)?(t=>{bs||(bs=document.createElement("div")),bs.innerHTML=t;const e=bs.querySelectorAll(".ql-formula");Array.from(e).forEach((t=>{const e=document.createTextNode("$smmformula$");t.parentNode.replaceChild(e,t)}));const i=bs.childNodes;let n=[];for(let s=0;s<i.length;s++){const t=i[s];1===t.nodeType?n.push(t.textContent):3===t.nodeType&&n.push(t.nodeValue)}if(t=n.map((t=>`<p><span>${Rs(t)}</span></p>`)).join(""),e.length>0){t=t.replace(/\$smmformula\$/g,'<span class="smmformula"></span>'),bs.innerHTML=t;const i=bs.querySelectorAll(".smmformula");Array.from(i).forEach(((t,i)=>{t.parentNode.replaceChild(e[i],t)})),t=bs.innerHTML}return t})(i):`<p>${i}</p>`,this.setData({text:i}));const a=[],h=(t=>{const e={};return Vt.forEach((i=>{let n=t.style.merge(i);"fontSize"===i&&(n+="px"),e[i]=n})),e})(this);Object.keys(h).forEach((t=>{a.push([t,h[t]])})),this.mindMap.commonCaches.measureRichtextNodeTextSizeEl||(this.mindMap.commonCaches.measureRichtextNodeTextSizeEl=document.createElement("div"),this.mindMap.commonCaches.measureRichtextNodeTextSizeEl.style.position="fixed",this.mindMap.commonCaches.measureRichtextNodeTextSizeEl.style.left="-999999px",this.mindMap.el.appendChild(this.mindMap.commonCaches.measureRichtextNodeTextSizeEl));const d=this.mindMap.commonCaches.measureRichtextNodeTextSizeEl;a.forEach((([t,e])=>{d.style[t]=e})),d.style.lineHeight=1.2;const l=`<div>${i}</div>`;d.innerHTML=l;const c=d.children[0];c.classList.add("smm-richtext-node-wrap"),js(c),c.style.maxWidth=n+"px",c.style.width=e?this.customTextWidth+"px":"";let{width:u,height:p}=c.getBoundingClientRect();if(p<=0){d.innerHTML=`<p>${s}</p>`;let t=d.children[0];t.classList.add("smm-richtext-node-wrap"),p=t.getBoundingClientRect().height,d.innerHTML=l}u=Math.min(Math.ceil(u)+1,n),p=Math.ceil(p),r.attr("data-width",u),r.attr("data-height",p);const m=Gs({el:d.children[0],width:u,height:p}),f={"line-height":1.2};return a.forEach((([t,e])=>{var i;f[(i=t,i.replace(/([a-z])([A-Z])/g,((...t)=>t[1]+"-"+t[2].toLowerCase())))]=e})),m.css(f),r.add(m),{node:r,nodeContent:m,width:u,height:p}},createTextNode:function(t){if(this.getData("needUpdate")&&delete this.nodeData.data.needUpdate,this.getData("richText"))return this.createRichTextNode(t);const e="string"==typeof t?t:this.getData("text");this.getData("resetRichText")&&delete this.nodeData.data.resetRichText;let i=new qn,n=this.getStyle("fontSize",!1),s=[];ws(e)||(s=String(e).split(/\n/gim));const{textAutoWrapWidth:r,emptyTextMeasureHeightText:o}=this.mindMap.opt;let a=s.length>1;s.forEach(((t,e)=>{let i=t.split(""),n=[],o=[];for(;i.length;){let t=i.shift(),e=[...o,t].join("");or(e,this.style).width<=r?o.push(t):(n.push(o.join("")),o=[t])}o.length>0&&n.push(o.join("")),n.length>1&&(a=!0),s[e]=n.join("\n")})),s=s.join("\n").replace(/\n$/g,"").split(/\n/gim),s.forEach(((t,e)=>{""===t&&(t="\ufeff");const s=(new Wn).text(t);s.addClass("smm-text-node-wrap"),this.style.text(s),s.y(n*Yt*e+.19999999999999996*n/2),i.add(s)}));let{width:h,height:d}=i.bbox();if(d<=0){const t=(new Wn).text(o);this.style.text(t);d=t.bbox().height}return h=Math.min(Math.ceil(h),r),d=Math.ceil(d),i.attr("data-width",h),i.attr("data-height",d),i.attr("data-ismultiLine",a||s.length>1),{node:i,width:h,height:d}},createHyperlinkNode:function(){const{hyperlink:t,hyperlinkTitle:e}=this.getData();if(!t)return;const{customHyperlinkJump:i,hyperlinkIcon:n}=this.mindMap.opt,{icon:s,style:r}=n,o=this.getNodeIconSize("hyperlinkIcon"),a=(new ss).size(o,o),h=(new Qn).to(t).target("_blank");h.node.addEventListener("click",(e=>{"function"==typeof i&&(e.preventDefault(),i(t,this))})),e&&a.add(ss(`<title>${e}</title>`)),h.rect(o,o).fill({color:"transparent"});const d=ss(s||ir).size(o,o);return this.style.iconNode(d,r.color),h.add(d),a.add(h),{node:a,width:o,height:o}},createTagNode:function(){const t=this.getData("tag");if(!t||t.length<=0)return[];let{maxTag:e,tagsColorMap:i}=this.mindMap.opt;i=i||{};const n=[];return t.slice(0,e).forEach(((t,e)=>{let s="",r=h({},ar);"string"==typeof t?s=t:(s=t.text,r=h(h({},ar),t.style));const o=void 0!==r.width,a=new qn;a.on("click",(()=>{this.mindMap.emit("node_tag_click",this,t,e,a)}));const l=(new Wn).text(s);this.style.tagText(l,r);const{width:c,height:u}=l.bbox(),p=o?r.width:c+2*r.paddingX,m=o?Math.max(p,c):p,f=Math.max(r.height,u);o?l.x((m-c)/2):l.x(o?0:r.paddingX),l.cy(-f/2);const g=(new Dn).size(p,r.height).cy(-f/2);o&&g.x((m-p)/2),this.style.tagRect(g,d(h({},r),{fill:r.fill||i[l.node.textContent]||As(l.node.textContent)})),a.add(g).add(l),n.push({node:a,width:m,height:f})})),n},createNoteNode:function(){if(!this.getData("note"))return null;const{icon:t,style:e}=this.mindMap.opt.noteIcon,i=this.getNodeIconSize("noteIcon"),n=(new ss).attr("cursor","pointer").addClass("smm-node-note").size(i,i);n.add((new Dn).size(i,i).fill({color:"transparent"}));const s=ss(t||nr).size(i,i);if(this.style.iconNode(s,e.color),n.add(s),!this.mindMap.opt.customNoteContentShow){if(!this.noteEl){this.noteEl=document.createElement("div"),this.noteEl.style.cssText=`\n position: fixed;\n padding: 10px;\n border-radius: 5px;\n box-shadow: 0 2px 5px rgb(0 0 0 / 10%);\n display: none;\n background-color: #fff;\n z-index: ${this.mindMap.opt.nodeNoteTooltipZIndex}\n `;(this.mindMap.opt.customInnerElsAppendTo||document.body).appendChild(this.noteEl)}this.noteEl.innerText=this.getData("note")}return n.on("mouseover",(()=>{const{left:t,top:e}=this.getNoteContentPosition();this.mindMap.opt.customNoteContentShow?this.mindMap.opt.customNoteContentShow.show(this.getData("note"),t,e,this):(this.noteEl.style.left=t+"px",this.noteEl.style.top=e+"px",this.noteEl.style.display="block")})),n.on("mouseout",(()=>{this.mindMap.opt.customNoteContentShow?this.mindMap.opt.customNoteContentShow.hide():this.noteEl.style.display="none"})),n.on("click",(t=>{this.mindMap.emit("node_note_click",this,t,n)})),n.on("dblclick",(t=>{this.mindMap.emit("node_note_dblclick",this,t,n)})),{node:n,width:i,height:i}},createAttachmentNode:function(){const{attachmentUrl:t,attachmentName:e}=this.getData();if(!t)return;const i=this.getNodeIconSize("attachmentIcon"),{icon:n,style:s}=this.mindMap.opt.attachmentIcon,r=(new ss).attr("cursor","pointer").size(i,i);e&&r.add(ss(`<title>${e}</title>`)),r.add((new Dn).size(i,i).fill({color:"transparent"}));const o=ss(n||sr).size(i,i);return this.style.iconNode(o,s.color),r.add(o),r.on("click",(t=>{this.mindMap.emit("node_attachmentClick",this,t,r)})),r.on("contextmenu",(t=>{this.mindMap.emit("node_attachmentContextmenu",this,t,r)})),{node:r,width:i,height:i}},getNoteContentPosition:function(){const t=this.getNodeIconSize("noteIcon"),{scaleY:e}=this.mindMap.view.getTransformData().transform,i=t*e;let{left:n,top:s}=this._noteData.node.node.getBoundingClientRect();return s+=i,{left:n,top:s}},getNodeIconSize:function(t){const{style:e}=this.mindMap.opt[t];return ws(e.size)?this.mindMap.themeConfig.iconSize:e.size},measureCustomNodeContentSize:function(t){this.mindMap.commonCaches.measureCustomNodeContentSizeEl||(this.mindMap.commonCaches.measureCustomNodeContentSizeEl=document.createElement("div"),this.mindMap.commonCaches.measureCustomNodeContentSizeEl.style.cssText="\n position: fixed;\n left: -99999px;\n top: -99999px;\n ",this.mindMap.el.appendChild(this.mindMap.commonCaches.measureCustomNodeContentSizeEl)),this.mindMap.commonCaches.measureCustomNodeContentSizeEl.innerHTML="",this.mindMap.commonCaches.measureCustomNodeContentSizeEl.appendChild(t);let e=this.mindMap.commonCaches.measureCustomNodeContentSizeEl.getBoundingClientRect();return{width:e.width,height:e.height}},isUseCustomNodeContent:function(){return!!this._customNodeContent}};const dr={renderExpandBtnPlaceholderRect:function(){if(!this.nodeData.children||this.nodeData.children.length<=0||this.isRoot)return;const{alwaysShowExpandBtn:t,notShowExpandBtn:e}=this.mindMap.opt;if(!t&&!e){let{width:t,height:e}=this;this._unVisibleRectRegionNode||(this._unVisibleRectRegionNode=new Dn,this._unVisibleRectRegionNode.fill({color:"transparent"})),this.group.add(this._unVisibleRectRegionNode),this.renderer.layout.renderExpandBtnRect(this._unVisibleRectRegionNode,this.expandBtnSize,t,e,this)}},clearExpandBtnPlaceholderRect:function(){this._unVisibleRectRegionNode&&(this._unVisibleRectRegionNode.remove(),this._unVisibleRectRegionNode=null)},updateExpandBtnPlaceholderRect:function(){this.needRerenderExpandBtnPlaceholderRect&&(this.needRerenderExpandBtnPlaceholderRect=!1,this.renderExpandBtnPlaceholderRect()),this.nodeData.children&&this.nodeData.children.length>0?this._unVisibleRectRegionNode||this.renderExpandBtnPlaceholderRect():this._unVisibleRectRegionNode&&this.clearExpandBtnPlaceholderRect()}};const lr={initDragHandle:function(){this.checkEnableDragModifyNodeWidth()&&(this._dragHandleNodes=null,this.dragHandleWidth=4,this.dragHandleMousedownX=0,this.isDragHandleMousedown=!1,this.dragHandleIndex=0,this.dragHandleMousedownCustomTextWidth=0,this.dragHandleMousedownBodyCursor="",this.dragHandleMousedownLeft=0,this.onDragMousemoveHandle=this.onDragMousemoveHandle.bind(this),window.addEventListener("mousemove",this.onDragMousemoveHandle),this.onDragMouseupHandle=this.onDragMouseupHandle.bind(this),window.addEventListener("mouseup",this.onDragMouseupHandle),this.mindMap.on("node_mouseup",this.onDragMouseupHandle))},onDragMousemoveHandle:function(t){if(!this.isDragHandleMousedown)return;t.stopPropagation(),t.preventDefault();let{minNodeTextModifyWidth:e,maxNodeTextModifyWidth:i,isUseCustomNodeContent:n,customCreateNodeContent:s}=this.mindMap.opt;const r=n&&s&&this._customNodeContent;document.body.style.cursor="ew-resize",this.group.css({cursor:"ew-resize"});const{scaleX:o}=this.mindMap.draw.transform(),a=t.clientX-this.dragHandleMousedownX;let h=this.dragHandleMousedownCustomTextWidth+(0===this.dragHandleIndex?-a:a)/o;if(h=Math.max(h,e),-1!==i&&(h=Math.min(h,i)),!r&&this.getData("image")){const t=this.getImgShowSize();this._rectInfo.textContentWidth-this.customTextWidth+h<=t[0]&&(h=t[0]+this.customTextWidth-this._rectInfo.textContentWidth)}this.customTextWidth=h,0===this.dragHandleIndex&&(this.left=this.dragHandleMousedownLeft+a/o),this.reRender(r?[]:["text"],{ignoreUpdateCustomTextWidth:!0})},onDragMouseupHandle:function(){this.isDragHandleMousedown&&(document.body.style.cursor=this.dragHandleMousedownBodyCursor,this.group.css({cursor:"default"}),this.isDragHandleMousedown=!1,this.dragHandleMousedownX=0,this.dragHandleIndex=0,this.dragHandleMousedownCustomTextWidth=0,this.setData({customTextWidth:this.customTextWidth}),this.mindMap.render(),this.mindMap.emit("dragModifyNodeWidthEnd",this))},createDragHandleNode:function(){const t=[new Dn,new Dn];return t.forEach(((t,e)=>{t.size(this.dragHandleWidth,this.height).fill({color:"transparent"}).css({cursor:"ew-resize"}),t.on("mousedown",(t=>{t.stopPropagation(),t.preventDefault(),this.dragHandleMousedownX=t.clientX,this.dragHandleIndex=e,this.dragHandleMousedownCustomTextWidth=void 0===this.customTextWidth?this._textData?this._textData.width:this.width:this.customTextWidth,this.dragHandleMousedownBodyCursor=document.body.style.cursor,this.dragHandleMousedownLeft=this.left,this.isDragHandleMousedown=!0}))})),t},updateDragHandle:function(){this.checkEnableDragModifyNodeWidth()&&(this._dragHandleNodes||(this._dragHandleNodes=this.createDragHandleNode()),this.getData("isActive")?(this._dragHandleNodes.forEach((t=>{t.height(this.height),this.group.add(t)})),this._dragHandleNodes[1].x(this.width-this.dragHandleWidth)):this._dragHandleNodes.forEach((t=>{t.remove()})))}};const cr={createUserListNode:function(){this.mindMap.cooperate&&(this._userListGroup=new qn,this.group.add(this._userListGroup))},updateUserListNode:function(){if(!this._userListGroup)return;const{avatarSize:t}=this.mindMap.opt.cooperateStyle;this._userListGroup.clear();const e=this.userList.length,i=Math.floor(this.width/t),n=[];e>i?n.push(...this.userList.slice(0,i-1),{isMore:!0,name:"+"+(e-i+1)}):n.push(...this.userList),n.forEach(((e,i)=>{let n=null;n=e.avatar?this.createImageAvatar(e):this.createTextAvatar(e),n.on("click",(t=>{this.mindMap.emit("node_cooperate_avatar_click",e,this,n,t)})),n.on("mouseenter",(t=>{this.mindMap.emit("node_cooperate_avatar_mouseenter",e,this,n,t)})),n.on("mouseleave",(t=>{this.mindMap.emit("node_cooperate_avatar_mouseleave",e,this,n,t)})),n.x(i*t).cy(-t/2),this._userListGroup.add(n)}))},createTextAvatar:function(t){const{avatarSize:e,fontSize:i}=this.mindMap.opt.cooperateStyle,n=new qn,s=t.isMore?t.name:String(t.name)[0],r=(new Vn).size(e,e);r.fill({color:t.color||As(s)});const o=(new Wn).text(s).fill({color:"#fff"}).css({"font-size":i+"px"}).dx(-i/2).dy((e-i)/2);return n.add(r).add(o),n},createImageAvatar:function(t){const{avatarSize:e}=this.mindMap.opt.cooperateStyle;return(new Ki).load(t.avatar).size(e,e)},addUser:function(t){this.userList.find((e=>e.id==t.id))||(this.userList.push(t),this.updateUserListNode())},removeUser:function(t){const e=this.userList.findIndex((e=>e.id==t.id));-1!==e&&(this.userList.splice(e,1),this.updateUserListNode())},emptyUser:function(){this.userList=[],this.updateUserListNode()}};class ur{constructor(t={}){this.opt=t,this.nodeData=this.handleData(t.data||{}),this.nodeDataSnapshot="",this.uid=t.uid,this.mindMap=t.mindMap,this.renderer=t.renderer,this.draw=this.mindMap.draw,this.nodeDraw=this.mindMap.nodeDraw,this.lineDraw=this.mindMap.lineDraw,this.style=new Xs(this),this.effectiveStyles={},this.shapeInstance=new Zs(this),this.shapePadding={paddingX:0,paddingY:0},this.isRoot=void 0!==t.isRoot&&t.isRoot,this.isGeneralization=void 0!==t.isGeneralization&&t.isGeneralization,this.generalizationBelongNode=null,this.layerIndex=void 0===t.layerIndex?0:t.layerIndex,this.width=t.width||0,this.height=t.height||0,this.customTextWidth=t.data.data.customTextWidth||void 0,this._left=t.left||0,this._top=t.top||0,this.customLeft=t.data.data.customLeft||void 0,this.customTop=t.data.data.customTop||void 0,this.isDrag=!1,this.parent=t.parent||null,this.children=t.children||[],this.userList=[],this.group=null,this.shapeNode=null,this.hoverNode=null,this._customNodeContent=null,this._imgData=null,this._iconData=null,this._textData=null,this._hyperlinkData=null,this._tagData=null,this._noteData=null,this.noteEl=null,this.noteContentIsShow=!1,this._attachmentData=null,this._prefixData=null,this._postfixData=null,this._expandBtn=null,this._lastExpandBtnType=null,this._showExpandBtn=!1,this._openExpandNode=null,this._closeExpandNode=null,this._fillExpandNode=null,this._userListGroup=null,this._lines=[],this._generalizationList=[],this._unVisibleRectRegionNode=null,this._isMouseenter=!1,this._rectInfo={imgContentWidth:0,imgContentHeight:0,textContentWidth:0,textContentHeight:0},this._generalizationNodeWidth=0,this._generalizationNodeHeight=0,this.textContentItemMargin=this.mindMap.opt.textContentMargin,this.blockContentMargin=this.mindMap.opt.imgTextMargin,this.expandBtnSize=this.mindMap.opt.expandBtnSize,this.isMultipleChoice=!1,this.needLayout=!1,this.isHide=!1;const e=Object.getPrototypeOf(this);e.bindEvent||(Object.keys(qs).forEach((t=>{e[t]=qs[t]})),Object.keys(Js).forEach((t=>{e[t]=Js[t]})),Object.keys(dr).forEach((t=>{e[t]=dr[t]})),Object.keys(tr).forEach((t=>{e[t]=tr[t]})),Object.keys(hr).forEach((t=>{e[t]=hr[t]})),this.mindMap.cooperate&&Object.keys(cr).forEach((t=>{e[t]=cr[t]})),Object.keys(lr).forEach((t=>{e[t]=lr[t]})),e.bindEvent=!0),this.getSize(),this.updateGeneralization(),this.initDragHandle()}get left(){return this.customLeft||this._left}set left(t){this._left=t}get top(){return this.customTop||this._top}set top(t){this._top=t}reset(){this.children=[],this.parent=null,this.isRoot=!1,this.layerIndex=0,this.left=0,this.top=0}resetWhenDelete(){this._isMouseenter=!1}handleData(t){return t.data.expand=!1!==t.data.expand,t.data.isActive=!0===t.data.isActive,t.children=t.children||[],t}createNodeData(t){const{isUseCustomNodeContent:e,customCreateNodeContent:i,createNodePrefixContent:n,createNodePostfixContent:s}=this.mindMap.opt,r=["custom","image","icon","text","hyperlink","tag","note","attachment","prefix","postfix",...this.mindMap.nodeInnerPrefixList.map((t=>t.name))],o={};Array.isArray(t)?r.forEach((e=>{t.includes(e)&&(o[e]=!0)})):r.forEach((t=>{o[t]=!0})),e&&i&&o.custom&&(this._customNodeContent=i(this)),this._customNodeContent?js(this._customNodeContent):(o.image&&(this._imgData=this.createImgNode()),o.icon&&(this._iconData=this.createIconNode()),o.text&&(this._textData=this.createTextNode()),o.hyperlink&&(this._hyperlinkData=this.createHyperlinkNode()),o.tag&&(this._tagData=this.createTagNode()),o.note&&(this._noteData=this.createNoteNode()),o.attachment&&(this._attachmentData=this.createAttachmentNode()),this.mindMap.nodeInnerPrefixList.forEach((t=>{o[t.name]&&(this[`_${t.name}Data`]=t.createContent(this))})),o.prefix&&(this._prefixData=n?n(this):null,this._prefixData&&this._prefixData.el&&js(this._prefixData.el)),o.postfix&&(this._postfixData=s?s(this):null,this._postfixData&&this._postfixData.el&&js(this._postfixData.el)))}getSize(t,e={}){e.ignoreUpdateCustomTextWidth||!1||(this.customTextWidth=this.getData("customTextWidth")||void 0),this.customLeft=this.getData("customLeft")||void 0,this.customTop=this.getData("customTop")||void 0,this.createNodeData(t);const{width:i,height:n}=this.getNodeRect(),s=this.width!==i||this.height!==n;return this.width=i,this.height=n,s}getNodeRect(){if(this.isUseCustomNodeContent()){const t=this.measureCustomNodeContentSize(this._customNodeContent);return{width:this.hasCustomWidth()?this.customTextWidth:t.width,height:t.height}}const{tagPosition:t}=this.mindMap.opt,e=t===Ft.TAG_POSITION.BOTTOM;let i=0,n=0,s=0,r=0,o=0,a=0;if(this._imgData&&(this._rectInfo.imgContentWidth=i=this._imgData.width,this._rectInfo.imgContentHeight=n=this._imgData.height),this.mindMap.nodeInnerPrefixList.forEach((t=>{const e=this[`_${t.name}Data`];e&&(s+=e.width,r=Math.max(r,e.height))})),this._prefixData&&(s+=this._prefixData.width,r=Math.max(r,this._prefixData.height)),this._iconData.length>0&&(s+=this._iconData.reduce(((t,e)=>(r=Math.max(r,e.height),t+(e.width+this.textContentItemMargin))),0)),this._textData&&(s+=this._textData.width,r=Math.max(r,this._textData.height)),this._hyperlinkData&&(s+=this._hyperlinkData.width,r=Math.max(r,this._hyperlinkData.height)),this._tagData.length>0){let t=0;const i=this._tagData.reduce(((e,i)=>(t=Math.max(t,i.height),e+(i.width+this.textContentItemMargin))),0);e?(o=i,a=t):(s+=i,r=Math.max(r,t))}this._noteData&&(s+=this._noteData.width,r=Math.max(r,this._noteData.height)),this._attachmentData&&(s+=this._attachmentData.width,r=Math.max(r,this._attachmentData.height)),this._postfixData&&(s+=this._postfixData.width,r=Math.max(r,this._postfixData.height)),this._rectInfo.textContentWidth=s,this._rectInfo.textContentHeight=r;let h=n>0&&r>0?this.blockContentMargin:0;const{paddingX:d,paddingY:l}=this.getPaddingVale();let c=Math.max(i,s),u=n+r;e&&a>0&&r>0&&(h+=this.blockContentMargin,c=Math.max(c,o),u+=a);const{paddingX:p,paddingY:m}=this.shapeInstance.getShapePadding(c,u,d,l);this.shapePadding.paddingX=p,this.shapePadding.paddingY=m;const f=this.getBorderWidth();return{width:c+2*d+2*p+f,height:u+2*l+h+2*m+f}}layout(){if(!this.group)return;this.group.clear();const{hoverRectPadding:t,tagPosition:e,openRealtimeRenderOnNodeTextEdit:i}=this.mindMap.opt;let{width:n,height:s,textContentItemMargin:r}=this,{paddingY:o}=this.getPaddingVale();const a=this.getBorderWidth()/2;o+=this.shapePadding.paddingY+a,this.shapeNode=this.shapeInstance.createShape(),this.shapeNode.addClass("smm-node-shape"),this.shapeNode.translate(a,a),this.style.shape(this.shapeNode),this.group.add(this.shapeNode),this.renderExpandBtnPlaceholderRect(),this.createUserListNode&&this.createUserListNode(),this.isGeneralization&&this.generalizationBelongNode&&this.group.addClass("generalization_"+this.generalizationBelongNode.uid);const h=()=>{this.hoverNode=(new Dn).size(n+2*t,s+2*t).x(-t).y(-t),this.hoverNode.addClass("smm-hover-node"),this.style.hoverNode(this.hoverNode,n,s),this.group.add(this.hoverNode)};if(this.isUseCustomNodeContent()){const t=Gs({el:this._customNodeContent,width:n,height:s});return this.group.add(t),void h()}const d=e===Ft.TAG_POSITION.BOTTOM,{textContentHeight:l}=this._rectInfo;let c=0;this._imgData&&(c=this._imgData.height,this.group.add(this._imgData.node),this._imgData.node.cx(n/2).y(o));let u=new qn,p=0;if(this.mindMap.nodeInnerPrefixList.forEach((t=>{const e=this[`_${t.name}Data`];e&&(e.node.x(p).y((l-e.height)/2),u.add(e.node),p+=e.width+r)})),this._prefixData){const t=Gs({el:this._prefixData.el,width:this._prefixData.width,height:this._prefixData.height});t.x(p).y((l-this._prefixData.height)/2),u.add(t),p+=this._prefixData.width+r}let m=new qn;if(this._iconData&&this._iconData.length>0){let t=0;this._iconData.forEach((e=>{e.node.x(p+t).y((l-e.height)/2),m.add(e.node),t+=e.width+r})),u.add(m),p+=t}if(this._textData){const t=this._textData.node.attr("data-offsetx")||0;this._textData.node.attr("data-offsetx",p),(this._textData.nodeContent||this._textData.node).x(-t).x(p).y((l-this._textData.height)/2),i&&this._textData.node.opacity(this.mindMap.renderer.textEdit.getCurrentEditNode()===this?0:1),u.add(this._textData.node),p+=this._textData.width+r}this._hyperlinkData&&(this._hyperlinkData.node.x(p).y((l-this._hyperlinkData.height)/2),u.add(this._hyperlinkData.node),p+=this._hyperlinkData.width+r);let f=new qn;if(this._tagData&&this._tagData.length>0)if(d){let t=0;this._tagData.forEach((e=>{e.node.x(t).y(0),f.add(e.node),t+=e.width+r})),f.cx(n/2).y(o+c+l+(c>0&&l>0?this.blockContentMargin:0)+this.blockContentMargin),this.group.add(f)}else{let t=0;this._tagData.forEach((e=>{e.node.x(p+t).y((l-e.height)/2),f.add(e.node),t+=e.width+r})),u.add(f),p+=t}if(this._noteData&&(this._noteData.node.x(p).y((l-this._noteData.height)/2),u.add(this._noteData.node),p+=this._noteData.width),this._attachmentData&&(this._attachmentData.node.x(p).y((l-this._attachmentData.height)/2),u.add(this._attachmentData.node),p+=this._attachmentData.width),this._postfixData){const t=Gs({el:this._postfixData.el,width:this._postfixData.width,height:this._postfixData.height});t.x(p).y((l-this._postfixData.height)/2),u.add(t),p+=this._postfixData.width}this.group.add(u),u.translate(n/2-u.bbox().width/2,o+c+(c>0&&l>0?this.blockContentMargin:0)),h(),this.mindMap.emit("node_layout_end",this)}bindGroupEvent(){this.group.on("click",(t=>{if(this.mindMap.emit("node_click",this,t),this.isMultipleChoice)return t.stopPropagation(),void(this.isMultipleChoice=!1);this.mindMap.opt.onlyOneEnableActiveNodeOnCooperate&&this.userList.length>0||this.active(t)})),this.group.on("mousedown",(t=>{const{readonly:e,enableCtrlKeyNodeSelection:i,useLeftKeySelectionRightKeyDrag:n,mousedownEventPreventDefault:s}=this.mindMap.opt;if(s&&t.preventDefault(),e||(this.isRoot?3!==t.which||n||t.stopPropagation():2!==t.which&&t.stopPropagation()),!e&&(t.ctrlKey||t.metaKey)&&i){this.isMultipleChoice=!0;const t=this.getData("isActive");t||this.mindMap.emit("before_node_active",this,this.renderer.activeNodeList),this.mindMap.renderer[t?"removeNodeFromActiveList":"addNodeToActiveList"](this,!0),this.renderer.emitNodeActiveEvent(t?null:this)}this.mindMap.emit("node_mousedown",this,t)})),this.group.on("mouseup",(t=>{this.isRoot||2===t.which||this.mindMap.opt.readonly||t.stopPropagation(),this.mindMap.emit("node_mouseup",this,t)})),this.group.on("mouseenter",(t=>{this.isDrag||(this._isMouseenter=!0,this.showExpandBtn(),this.isGeneralization&&this.handleGeneralizationMouseenter(),this.mindMap.emit("node_mouseenter",this,t))})),this.group.on("mouseleave",(t=>{this._isMouseenter&&(this._isMouseenter=!1,this.hideExpandBtn(),this.isGeneralization&&this.handleGeneralizationMouseleave(),this.mindMap.emit("node_mouseleave",this,t))})),this.group.on("dblclick",(t=>{const{readonly:e,onlyOneEnableActiveNodeOnCooperate:i}=this.mindMap.opt;e||t.ctrlKey||t.metaKey||(t.stopPropagation(),i&&this.userList.length>0||this.mindMap.emit("node_dblclick",this,t))})),this.group.on("contextmenu",(t=>{const{readonly:e,useLeftKeySelectionRightKeyDrag:i}=this.mindMap.opt;e||t.ctrlKey||(t.stopPropagation(),t.preventDefault(),this.mindMap.select&&!i&&this.mindMap.select.hasSelectRange()||(this.getData("isActive")&&1===this.renderer.activeNodeList.length||(this.renderer.clearActiveNodeList(),this.active(t)),this.mindMap.emit("node_contextmenu",t,this)))}))}active(t){this.mindMap.opt.readonly||(t&&t.stopPropagation(),this.getData("isActive")||(this.mindMap.emit("before_node_active",this,this.renderer.activeNodeList),this.renderer.clearActiveNodeList(),this.renderer.addNodeToActiveList(this,!0),this.renderer.emitNodeActiveEvent(this)))}deactivate(){this.mindMap.renderer.removeNodeFromActiveList(this),this.mindMap.renderer.emitNodeActiveEvent()}update(t){if(!this.group)return;this.updateNodeActiveClass();const{alwaysShowExpandBtn:e,notShowExpandBtn:i}=this.mindMap.opt;if(!i){const t=this.nodeData.children.length;if(e)this._expandBtn&&t<=0?this.removeExpandBtn():this.renderExpandBtn();else{const{isActive:e,expand:i}=this.getData();t<=0?this.removeExpandBtn():!i||e||this._isMouseenter?this.showExpandBtn():this.hideExpandBtn()}}this.updateDragHandle(),this.renderGeneralization(t),this.updateUserListNode&&this.updateUserListNode();const n=this.group.transform();this.nodeDataSnapshot=JSON.stringify(this.getData()),this.left===n.translateX&&this.top===n.translateY||this.group.translate(this.left-n.translateX,this.top-n.translateY)}getNodePosInClient(t,e){const i=this.mindMap.draw.transform(),{scaleX:n,scaleY:s,translateX:r,translateY:o}=i;return{left:t*n+r,top:e*s+o}}checkIsInClient(t=0){const{left:e,top:i}=this.getNodePosInClient(this.left,this.top);return e+this.width>0-t&&i+this.height>0-t&&e<this.mindMap.width+t&&i<this.mindMap.height+t}reRender(t,e){const i=this.getSize(t,e);return this.layout(),this.update(),i}updateNodeActiveClass(){if(!this.group)return;const t=this.getData("isActive");this.group[t?"addClass":"removeClass"]("active")}updateNodeByActive(t){this.group&&(t?this.showExpandBtn():this.hideExpandBtn(),this.updateNodeActiveClass(),this.updateDragHandle())}render(t=()=>{},e=!1,i=!1){this.renderLine();const{openPerformance:n,performanceConfig:s}=this.mindMap.opt;if(e||!n||this.checkIsInClient(s.padding)||this.isRoot?this.group?(this.nodeDraw.has(this.group)||this.nodeDraw.add(this.group),this.needLayout&&(this.needLayout=!1,this.layout()),this.updateExpandBtnPlaceholderRect(),this.update(e)):(this.group=new qn,this.group.addClass("smm-node"),this.group.css({cursor:"default"}),this.bindGroupEvent(),this.nodeDraw.add(this.group),this.layout(),this.update(e)):n&&s.removeNodeWhenOutCanvas&&this.removeSelf(),this.children&&this.children.length&&!1!==this.getData("expand")){let n=0;this.children.forEach((s=>{const r=()=>{s.render((()=>{n++,n>=this.children.length&&t()}),e,i)};i?setTimeout(r,0):r()}))}else t();this.nodeData.inserting&&(delete this.nodeData.inserting,this.active(),this.mindMap.emit("node_dblclick",this,null,!0))}removeSelf(){this.group&&(this.group.remove(),this.removeGeneralization())}remove(){this.group&&(this.group.remove(),this.removeGeneralization(),this.removeLine(),this.children&&this.children.length&&this.children.forEach((t=>{t.remove()})))}destroy(){this.removeLine(),this.parent&&this.parent.removeLine(),this.group&&(this.emptyUser&&this.emptyUser(),this.resetWhenDelete(),this.group.remove(),this.removeGeneralization(),this.group=null,this.style.onRemove())}hide(){if(this.group&&this.group.hide(),this.hideGeneralization(),this.parent){const t=this.parent.children.indexOf(this);this.parent._lines[t]&&this.parent._lines[t].hide(),this._lines.forEach((t=>{t.hide()}))}this.children&&this.children.length&&this.children.forEach((t=>{t.hide()}))}show(){if(this.group){if(this.group.show(),this.showGeneralization(),this.parent){const t=this.parent.children.indexOf(this);this.parent._lines[t]&&this.parent._lines[t].show(),this._lines.forEach((t=>{t.show()}))}this.children&&this.children.length&&this.children.forEach((t=>{t.show()}))}}setOpacity(t){this.group&&this.group.opacity(t),this._lines.forEach((e=>{e.opacity(t)})),this.children.forEach((e=>{e.setOpacity(t)})),this.setGeneralizationOpacity(t)}hideChildren(){this._lines.forEach((t=>{t.hide()})),this.children&&this.children.length&&this.children.forEach((t=>{t.hide()}))}showChildren(){this._lines.forEach((t=>{t.show()})),this.children&&this.children.length&&this.children.forEach((t=>{t.show()}))}startDrag(){this.isDrag=!0,this.group&&this.group.addClass("smm-node-dragging")}endDrag(){this.isDrag=!1,this.group&&this.group.removeClass("smm-node-dragging")}renderLine(t=!1){if(!1===this.getData("expand"))return;let e=this.nodeData.children.length;this.mindMap.opt.layout!==Ft.LAYOUT.FISHBONE||!this.isRoot&&1!==this.layerIndex||(e=0),e>this._lines.length?new Array(e-this._lines.length).fill(0).forEach((()=>{this._lines.push(this.lineDraw.path())})):e<this._lines.length&&(this._lines.slice(e).forEach((t=>{t.remove()})),this._lines=this._lines.slice(0,e)),this.renderer.layout.renderLine(this,this._lines,((...t)=>{this.styleLine(...t)}),this.style.getStyle("lineStyle",!0)),t&&this.children&&this.children.length>0&&this.children.forEach((e=>{e.renderLine(t)}))}getShape(){return this.mindMap.themeConfig.nodeUseLineStyle?Ft.SHAPE.RECTANGLE:this.style.getStyle("shape",!1,!1)}hasCustomPosition(){return void 0!==this.customLeft&&void 0!==this.customTop}ancestorHasCustomPosition(){let t=this;for(;t;){if(t.hasCustomPosition())return!0;t=t.parent}return!1}ancestorHasGeneralization(){let t=this.parent;for(;t;){if(t.checkHasGeneralization())return!0;t=t.parent}return!1}addChildren(t){this.children.push(t)}styleLine(t,e,i){const n=e.getSelfInhertStyle("lineWidth")||e.getStyle("lineWidth",!0),s=e.getSelfInhertStyle("lineColor")||this.getRainbowLineColor(e)||e.getStyle("lineColor",!0),r=e.getSelfInhertStyle("lineDasharray")||e.getStyle("lineDasharray",!0);this.style.line(t,{width:n,color:s,dasharray:r},i,e)}getRainbowLineColor(t){return this.mindMap.rainbowLines?this.mindMap.rainbowLines.getNodeColor(t):""}removeLine(){this._lines.forEach((t=>{t.remove()})),this._lines=[]}isAncestor(t){if(this.uid===t.uid)return!1;let e=t.parent;for(;e;){if(this.uid===e.uid)return!0;e=e.parent}return!1}isParent(t){if(this.uid===t.uid)return!1;const e=t.parent;return!(!e||this.uid!==e.uid)}isBrother(t){return!(!this.parent||this.uid===t.uid)&&this.parent.children.find((e=>e.uid===t.uid))}getIndexInBrothers(){return this.parent&&this.parent.children?this.parent.children.findIndex((t=>t.uid===this.uid)):-1}getPaddingVale(){return{paddingX:this.getStyle("paddingX"),paddingY:this.getStyle("paddingY")}}getStyle(t,e){const i=this.style.merge(t,e);return void 0===i?"":i}getSelfStyle(t){return this.style.getSelfStyle(t)}getParentSelfStyle(t){return this.parent?this.parent.getSelfStyle(t)||this.parent.getParentSelfStyle(t):null}getSelfInhertStyle(t){return this.getSelfStyle(t)||this.getParentSelfStyle(t)}getBorderWidth(){return this.style.merge("borderWidth",!1)||0}getData(t){return t?this.nodeData.data[t]:this.nodeData.data}getPureData(t=!0,e=!1){return cs({},this,t,e)}getAncestorNodes(){const t=[];let e=this.parent;for(;e;)t.unshift(e),e=e.parent;return t}hasCustomStyle(){return this.style.hasCustomStyle()}getRect(){return this.group?this.group.rbox():null}getRectInSvg(){const{scaleX:t,scaleY:e,translateX:i,translateY:n}=this.mindMap.draw.transform();let{left:s,top:r,width:o,height:a}=this;const h=(s+o)*t+i,d=(r+a)*e+n;return s=s*t+i,r=r*e+n,{left:s,right:h,top:r,bottom:d,width:o*t,height:a*e}}highlight(){this.group&&this.group.addClass("smm-node-highlight")}closeHighlight(){this.group&&this.group.removeClass("smm-node-highlight")}fakeClone(){const t=new ur(d(h({},this.opt),{uid:ys()}));return Object.keys(this).forEach((e=>{t[e]=this[e]})),t}createSvgTextNode(t=""){return(new Wn).text(t)}getSvgObjects(){return{SVG:ss,G:qn,Rect:Dn}}checkEnableDragModifyNodeWidth(){const{enableDragModifyNodeWidth:t,isUseCustomNodeContent:e,customCreateNodeContent:i}=this.mindMap.opt;return t&&(this.mindMap.richText||e&&i)}hasCustomWidth(){return this.checkEnableDragModifyNodeWidth()&&void 0!==this.customTextWidth}}class pr{constructor(t){this.max=t||1e3,this.size=0,this.pool=new Map}add(t,e){return!(!this.has(t)&&this.size>=this.max)&&(this.delete(t),this.pool.set(t,e),this.size++,!0)}delete(t){this.pool.has(t)&&(this.pool.delete(t),this.size--)}has(t){return this.pool.has(t)}get(t){if(this.pool.has(t))return this.pool.get(t)}clear(){this.size=0,this.pool=new Map}}class mr{constructor(t){this.renderer=t,this.mindMap=t.mindMap,this.draw=this.mindMap.draw,this.lineDraw=this.mindMap.lineDraw,this.root=null,this.lru=new pr(this.mindMap.opt.maxNodeCacheCount),this.rootNodeCenterOffset=null}doLayout(){throw new Error("【computed】方法为必要方法,需要子类进行重写!")}renderLine(){throw new Error("【renderLine】方法为必要方法,需要子类进行重写!")}renderExpandBtn(){throw new Error("【renderExpandBtn】方法为必要方法,需要子类进行重写!")}renderGeneralization(){}cacheNode(t,e){this.renderer.nodeCache[t]=e,this.lru.add(t,e)}checkIsNeedResizeSources(){return[Ft.CHANGE_THEME].includes(this.renderer.renderSource)}checkIsLayerTypeChange(t,e){return!(t>=2&&e>=2)&&(t>=2&&e<2||(t<2&&e>=2||void 0))}checkIsLayoutChangeRerenderExpandBtnPlaceholderRect(t){this.renderer.renderSource===Ft.CHANGE_LAYOUT&&(t.needRerenderExpandBtnPlaceholderRect=!0)}checkIsNodeDataChange(t,e){return t&&((t="string"==typeof t?JSON.parse(t):t).isActive=e.isActive,t.expand=e.expand,t=JSON.stringify(t)),t!==JSON.stringify(e)}createNode(t,e,i,n,s,r){const o={};this.mindMap.nodeInnerPrefixList.forEach((i=>{if(i.createNodeData){const[a,h]=i.createNodeData({data:t,parent:e,ancestors:r,layerIndex:n,index:s});o[a]=h}}));const a=t.data.uid;let d=null;if(t&&t._node&&!this.renderer.reRender){d=t._node;const s=this.checkIsLayerTypeChange(d.layerIndex,n);d.reset(),d.layerIndex=n,i?d.isRoot=!0:d.parent=e._node,this.cacheNode(t._node.uid,d),this.checkIsLayoutChangeRerenderExpandBtnPlaceholderRect(d);let r=!1;this.mindMap.nodeInnerPrefixList.forEach((t=>{if(t.updateNodeData){const e=t.updateNodeData(d,o);e&&(r=e)}}));const a=this.checkIsNeedResizeSources(),h=this.checkIsNodeDataChange(t._node.nodeDataSnapshot,t.data);(a||h||s||d.getData("resetRichText")||d.getData("needUpdate")||r)&&(d.getSize(),d.needLayout=!0),this.checkGetGeneralizationChange(d,a)}else if(!this.lru.has(a)&&!this.renderer.lastNodeCache[a]||this.renderer.reRender){const s=a||ys();d=new ur(h({data:t,uid:s,renderer:this.renderer,mindMap:this.mindMap,draw:this.draw,layerIndex:n,isRoot:i,parent:i?null:e._node},o)),t.data.uid=s,this.cacheNode(s,d),t._node=d}else{d=this.lru.get(a)||this.renderer.lastNodeCache[a];const s=JSON.stringify(d.getData()),r=this.checkIsLayerTypeChange(d.layerIndex,n);d.reset(),d.nodeData=d.handleData(t||{}),d.layerIndex=n,i?d.isRoot=!0:d.parent=e._node,this.cacheNode(a,d),this.checkIsLayoutChangeRerenderExpandBtnPlaceholderRect(d),t._node=d;const h=this.checkIsNeedResizeSources(),l=this.checkIsNodeDataChange(s,t.data);let c=!1;this.mindMap.nodeInnerPrefixList.forEach((t=>{if(t.updateNodeData){const e=t.updateNodeData(d,o);e&&(c=e)}})),(h||l||r||d.getData("resetRichText")||d.getData("needUpdate")||c)&&(d.getSize(),d.needLayout=!0),this.checkGetGeneralizationChange(d,h)}return t.data.isActive&&this.renderer.addNodeToActiveList(d),-1!==this.mindMap.renderer.findActiveNodeIndex(d)&&d.setData({isActive:!0}),i?this.root=d:e._node.addChildren(d),d}checkGetGeneralizationChange(t,e){const i=t.getData("generalization");i&&t._generalizationList&&t._generalizationList.length>0&&t._generalizationList.forEach(((t,n)=>{const s=t.generalizationNode,r=s.getData(),o=i[n];(e||o&&JSON.stringify(r)!==JSON.stringify(o))&&(o&&(s.nodeData.data=o),s.getSize(),s.needLayout=!0)}))}formatPosition(t,e,i){return"number"==typeof t?t:void 0!==kt[t]?e*kt[t]:/^\d\d*%$/.test(t)?Number.parseFloat(t)/100*e:(e-i)/2}formatInitRootNodePosition(t){const{CENTER:e}=Ft.INIT_ROOT_NODE_POSITION;return(!t||!Array.isArray(t)||t.length<2)&&(t=[e,e]),t}setNodeCenter(t,e){let{initRootNodePosition:i}=this.mindMap.opt;i=this.formatInitRootNodePosition(e||i),t.left=this.formatPosition(i[0],this.mindMap.width,t.width),t.top=this.formatPosition(i[1],this.mindMap.height,t.height)}getRootCenterOffset(t,e){if(this.rootNodeCenterOffset)return this.rootNodeCenterOffset;let{initRootNodePosition:i}=this.mindMap.opt;const{CENTER:n}=Ft.INIT_ROOT_NODE_POSITION;if(i=this.formatInitRootNodePosition(i),i[0]===n&&i[1]===n)this.rootNodeCenterOffset={x:0,y:0};else{const i={width:t,height:e},s={width:t,height:e};this.setNodeCenter(i,[n,n]),this.setNodeCenter(s),this.rootNodeCenterOffset={x:s.left-i.left,y:s.top-i.top}}return this.rootNodeCenterOffset}updateChildren(t,e,i){t.forEach((t=>{t[e]+=i,t.children&&t.children.length&&!t.hasCustomPosition()&&this.updateChildren(t.children,e,i)}))}updateChildrenPro(t,e){t.forEach((t=>{Object.keys(e).forEach((i=>{t[i]+=e[i]})),t.children&&t.children.length&&!t.hasCustomPosition()&&this.updateChildrenPro(t.children,e)}))}getNodeAreaWidth(t,e=!1){let i=[],n=0,s=(t,r)=>{e&&t.checkHasGeneralization()&&(n+=t._generalizationNodeWidth),t.children.length?(r+=t.width/2,t.children.forEach((t=>{s(t,r)}))):(r+=t.width,i.push(r))};return s(t,0),Math.max(...i)+n}quadraticCurvePath(t,e,i,n,s=!1){let r,o;return s?(r=t+.8*(i-t),o=e+.2*(n-e)):(r=t+.2*(i-t),o=e+.8*(n-e)),`M ${t},${e} Q ${r},${o} ${i},${n}`}cubicBezierPath(t,e,i,n,s=!1){let r,o,a,h;return s?(r=t,o=e+(n-e)/2,a=i,h=o):(r=t+(i-t)/2,o=e,a=r,h=n),`M ${t},${e} C ${r},${o} ${a},${h} ${i},${n}`}computeNewPoint(t,e,i=0){return t[0]===e[0]?e[1]>t[1]?[e[0],e[1]-i]:[e[0],e[1]+i]:t[1]===e[1]?e[0]>t[0]?[e[0]-i,e[1]]:[e[0]+i,e[1]]:void 0}createFoldLine(t){const{lineRadius:e}=this.mindMap.themeConfig,i=t.length;let n="",s="";if(i>=3&&e>0){const n=t[i-3],r=t[i-2],o=t[i-1];if(!(n[0].toFixed(0)===r[0].toFixed(0)&&r[0].toFixed(0)===o[0].toFixed(0)||n[1].toFixed(0)===r[1].toFixed(0)&&r[1].toFixed(0)===o[1].toFixed(0))){const a=this.computeNewPoint(n,r,e),h=this.computeNewPoint(o,r,e);s=`Q ${r[0]},${r[1]} ${h[0]},${h[1]}`,t.splice(i-2,1,a,s)}}return t.forEach(((t,e)=>{if("string"==typeof t)n+=t;else{const[i,s]=t;n+=0===e?`M ${i},${s}`:`L ${i},${s}`}})),n}getMarginX(t){const{themeConfig:e,opt:i}=this.mindMap,{second:n,node:s}=e,r=2*i.hoverRectPadding;return 1===t?n.marginX+r:s.marginX+r}getMarginY(t){const{themeConfig:e,opt:i}=this.mindMap,{second:n,node:s}=e,r=2*i.hoverRectPadding;return 1===t?n.marginY+r:s.marginY+r}getNodeWidthWithGeneralization(t){return Math.max(t.width,t.checkHasGeneralization()?t._generalizationNodeWidth:0)}getNodeHeightWithGeneralization(t){return Math.max(t.height,t.checkHasGeneralization()?t._generalizationNodeHeight:0)}getNodeBoundaries(t,e){let{generalizationLineMargin:i,generalizationNodeMargin:n}=this.mindMap.themeConfig,s=t=>{let i=1/0,r=-1/0,o=1/0,a=-1/0;t.children&&t.children.length>0&&t.children.forEach((t=>{let{left:h,right:d,top:l,bottom:c}=s(t),u=t.checkHasGeneralization()&&t.getData("expand")?t._generalizationNodeWidth+n:0,p=t.checkHasGeneralization()&&t.getData("expand")?t._generalizationNodeHeight+n:0;h-("h"===e?u:0)<i&&(i=h-("h"===e?u:0)),d+("h"===e?u:0)>r&&(r=d+("h"===e?u:0)),l<o&&(o=l),c+("v"===e?p:0)>a&&(a=c+("v"===e?p:0))}));let h={left:t.left,right:t.left+t.width,top:t.top,bottom:t.top+t.height};return{left:h.left<i?h.left:i,right:h.right>r?h.right:r,top:h.top<o?h.top:o,bottom:h.bottom>a?h.bottom:a}},{left:r,right:o,top:a,bottom:h}=s(t);return{left:r,right:o,top:a,bottom:h,generalizationLineMargin:i,generalizationNodeMargin:n}}getChildrenBoundaries(t,e,i=0,n){let{generalizationLineMargin:s,generalizationNodeMargin:r}=this.mindMap.themeConfig;const o=t.children.slice(i,n+1);let a=1/0,h=-1/0,d=1/0,l=-1/0;return o.forEach((t=>{const i=this.getNodeBoundaries(t,e);a=i.left<a?i.left:a,h=i.right>h?i.right:h,d=i.top<d?i.top:d,l=i.bottom>l?i.bottom:l})),{left:a,right:h,top:d,bottom:l,generalizationLineMargin:s,generalizationNodeMargin:r}}getNodeGeneralizationRenderBoundaries(t,e){let i=null;return i=t.range?this.getChildrenBoundaries(t.node,e,t.range[0],t.range[1]):this.getNodeBoundaries(t.node,e),i}getNodeActChildrenLength(t){return t.nodeData.children&&t.nodeData.children.length}setLineStyle(t,e,i,n){e.plot(this.transformPath(i)),t&&t(e,n,!0)}transformPath(t){const{customTransformNodeLinePath:e}=this.mindMap.opt;return e?e(t):t}}class fr extends mr{constructor(t={},e){super(t),this.isUseLeft=e===Ft.LAYOUT.LOGICAL_STRUCTURE_LEFT}doLayout(t){ps([()=>{this.computedBaseValue()},()=>{this.computedTopValue()},()=>{this.adjustTopValue()},()=>{t(this.root)}])}computedBaseValue(){let t=0;hs(this.renderer.renderTree,null,((e,i,n,s,r,o)=>{let a=this.createNode(e,i,n,s,r,o);if(a.sortIndex=t,t++,n?this.setNodeCenter(a):this.isUseLeft?a.left=i._node.left-a.width-this.getMarginX(s):a.left=i._node.left+i._node.width+this.getMarginX(s),!e.data.expand)return!0}),((t,e,i,n)=>{let s=!1===t.data.expand?0:t._node.children.length;t._node.childrenAreaHeight=s?t._node.children.reduce(((t,e)=>t+e.height),0)+(s+1)*this.getMarginY(n+1):0;let r=t._node.checkHasGeneralization()?t._node._generalizationNodeHeight+this.getMarginY(n+1):0;t._node.childrenAreaHeight2=Math.max(t._node.childrenAreaHeight,r)}),!0,0)}computedTopValue(){hs(this.root,null,((t,e,i,n)=>{if(t.getData("expand")&&t.children&&t.children.length){let e=this.getMarginY(n+1),i=t.top+t.height/2-t.childrenAreaHeight/2+e;t.children.forEach((t=>{t.top=i,i+=t.height+e}))}}),null,!0)}adjustTopValue(){hs(this.root,null,((t,e,i,n)=>{if(!t.getData("expand"))return;let s=t.childrenAreaHeight2-2*this.getMarginY(n+1)-t.height;s>0&&this.updateBrothers(t,s/2)}),null,!0)}updateBrothers(t,e){if(t.parent){let i=t.parent.children,n=Os(t,i);i.forEach(((i,s)=>{if(i.uid===t.uid||i.hasCustomPosition())return;let r=0;s<n?r=-e:s>n&&(r=e),i.top+=r,i.children&&i.children.length&&this.updateChildren(i.children,"top",r)})),this.updateBrothers(t.parent,e)}}renderLine(t,e,i,n){"curve"===n?this.renderLineCurve(t,e,i):"direct"===n?this.renderLineDirect(t,e,i):this.renderLineStraight(t,e,i)}renderLineStraight(t,e,i){if(t.children.length<=0)return[];let{left:n,top:s,width:r,height:o,expandBtnSize:a}=t;const{alwaysShowExpandBtn:h,notShowExpandBtn:d}=this.mindMap.opt;h&&!d||(a=0);let l=.6*(this.getMarginX(t.layerIndex+1)-a);this.isUseLeft&&(l*=-1);let c=this.mindMap.themeConfig.nodeUseLineStyle;t.children.forEach(((h,d)=>{let u;u=this.isUseLeft?0===t.layerIndex?n:n-a:0===t.layerIndex?n+r:n+r+a;let p=s+o/2,m=this.isUseLeft?h.left+h.width:h.left,f=h.top+h.height/2,g=c?h.width*(this.isUseLeft?-1:1):0;p=c&&!t.isRoot?p+o/2:p,f=c?f+h.height/2:f;let y=this.createFoldLine([[u,p],[u+l,p],[u+l,f],[m+g,f]]);this.setLineStyle(i,e[d],y,h)}))}renderLineDirect(t,e,i){if(t.children.length<=0)return[];let{left:n,top:s,width:r,height:o,expandBtnSize:a}=t;const{alwaysShowExpandBtn:h,notShowExpandBtn:d}=this.mindMap.opt;h&&!d||(a=0);const{nodeUseLineStyle:l}=this.mindMap.themeConfig;t.children.forEach(((h,d)=>{0===t.layerIndex&&(a=0);let c=this.isUseLeft?n-a:n+r+a,u=s+o/2,p=this.isUseLeft?h.left+h.width:h.left,m=h.top+h.height/2;u=l&&!t.isRoot?u+o/2:u,m=l?m+h.height/2:m;let f=`M ${c},${u} L ${p},${m}`+(l?` L ${this.isUseLeft?h.left:h.left+h.width},${m}`:"");this.setLineStyle(i,e[d],f,h)}))}renderLineCurve(t,e,i){if(t.children.length<=0)return[];let{left:n,top:s,width:r,height:o,expandBtnSize:a}=t;const{alwaysShowExpandBtn:h,notShowExpandBtn:d}=this.mindMap.opt;h&&!d||(a=0);const{nodeUseLineStyle:l,rootLineStartPositionKeepSameInCurve:c,rootLineKeepSameInCurve:u}=this.mindMap.themeConfig;t.children.forEach(((h,d)=>{let p;0===t.layerIndex&&(a=0),p=this.isUseLeft?0!==t.layerIndex||c?n-a:n+r/2:0!==t.layerIndex||c?n+r+a:n+r/2;let m,f=s+o/2,g=this.isUseLeft?h.left+h.width:h.left,y=h.top+h.height/2,x="";f=l&&!t.isRoot?f+o/2:f,y=l?y+h.height/2:y,m=this.isUseLeft?l?` L ${h.left},${y}`:"":l?` L ${h.left+h.width},${y}`:"",x=t.isRoot&&!u?this.quadraticCurvePath(p,f,g,y)+m:this.cubicBezierPath(p,f,g,y)+m,this.setLineStyle(i,e[d],x,h)}))}renderExpandBtn(t,e){let{width:i,height:n,expandBtnSize:s,layerIndex:r}=t;0===r&&(s=0);let{translateX:o,translateY:a}=e.transform(),h=this.mindMap.themeConfig.nodeUseLineStyle?n/2:0,d=this.isUseLeft?0-s:i,l=n/2+h;d===o&&l===a||e.translate(d-o,l-a)}renderGeneralization(t){t.forEach((t=>{let{left:e,top:i,bottom:n,right:s,generalizationLineMargin:r,generalizationNodeMargin:o}=this.getNodeGeneralizationRenderBoundaries(t,"h"),a=this.isUseLeft?e-r:s+r,h=i,d=a,l=n,c=`M ${a},${h} Q ${a+(this.isUseLeft?-20:20)},${h+(l-h)/2} ${d},${l}`;t.generalizationLine.plot(c),t.generalizationNode.left=a+(this.isUseLeft?-o:o)-(this.isUseLeft?t.generalizationNode.width:0),t.generalizationNode.top=i+(n-i-t.generalizationNode.height)/2}))}renderExpandBtnRect(t,e,i,n){this.isUseLeft?t.size(e,n).x(-e).y(0):t.size(e,n).x(i).y(0)}}class gr extends mr{constructor(t={},e){super(t),this.layout=e}doLayout(t){ps([()=>{this.computedBaseValue()},()=>{this.computedLeftTopValue()},()=>{this.adjustLeftTopValue()},()=>{t(this.root)}])}computedBaseValue(){hs(this.renderer.renderTree,null,((t,e,i,n,s,r)=>{let o=this.createNode(t,e,i,n,s,r);if(i?this.setNodeCenter(o):(this.layout===Ft.LAYOUT.TIMELINE2?e._node.dir?o.dir=e._node.dir:o.dir=s%2==0?Ft.LAYOUT_GROW_DIR.BOTTOM:Ft.LAYOUT_GROW_DIR.TOP:o.dir="",e._node.isRoot&&(o.top=e._node.top+(t._node.height>e._node.height?-(t._node.height-e._node.height)/2:(e._node.height-t._node.height)/2))),!t.data.expand)return!0}),null,!0,0)}computedLeftTopValue(){hs(this.root,null,((t,e,i,n,s)=>{if(t.getData("expand")&&t.children&&t.children.length){let e=this.getMarginX(n+1),s=this.getMarginY(n+1);if(i){let i=t.left+t.width+e;t.children.forEach((t=>{t.left=i,i+=t.width+e}))}else{let e=t.top+t.height+s+(this.getNodeActChildrenLength(t)>0?t.expandBtnSize:0);t.children.forEach((i=>{i.left=t.left+.5*t.width,i.top=e,e+=i.height+s+(this.getNodeActChildrenLength(i)>0?i.expandBtnSize:0)}))}}}),null,!0)}adjustLeftTopValue(){hs(this.root,null,((t,e,i,n)=>{if(!t.getData("expand"))return;t.isRoot&&this.updateBrothersLeft(t);let s=t.children.length;if(e&&!e.isRoot&&s>0){let e=this.getMarginY(n+1),i=t.children.reduce(((t,e)=>t+e.height+(this.getNodeActChildrenLength(e)>0?e.expandBtnSize:0)),0)+s*e;this.updateBrothersTop(t,i)}}),((t,e,i,n)=>{e&&e.isRoot&&t.dir===Ft.LAYOUT_GROW_DIR.TOP&&t.children.forEach((e=>{let i=this.getNodeAreaHeight(e),n=e.top;e.top=t.top-(e.top-t.top)-i+t.height,this.updateChildren(e.children,"top",e.top-n)}))}),!0)}getNodeAreaHeight(t){let e=0,i=t=>{e+=t.height+(this.getNodeActChildrenLength(t)>0?t.expandBtnSize:0)+this.getMarginY(t.layerIndex),t.children.length&&t.children.forEach((t=>{i(t)}))};return i(t),e}updateBrothersLeft(t){let e=t.children,i=0;e.forEach((t=>{t.left+=i,t.children&&t.children.length&&this.updateChildren(t.children,"left",i);let{left:e,right:n}=this.getNodeBoundaries(t,"h"),s=n-e-t.width;s>0&&(i+=s)}))}updateBrothersTop(t,e){if(t.parent&&!t.parent.isRoot){let i=t.parent.children,n=Os(t,i);i.forEach(((t,i)=>{if(t.hasCustomPosition())return;let s=0;i>n&&(s=e),t.top+=s,t.children&&t.children.length&&this.updateChildren(t.children,"top",s)})),this.updateBrothersTop(t.parent,e)}}renderLine(t,e,i){if(t.children.length<=0)return[];let{left:n,top:s,width:r,height:o,expandBtnSize:a}=t;const{alwaysShowExpandBtn:h,notShowExpandBtn:d}=this.mindMap.opt;h&&!d||(a=0);let l=t.children.length;if(t.isRoot){let n=t;t.children.forEach(((s,r)=>{let o=n.left+n.width,a=s.left,h=t.top+t.height/2,d=`M ${o},${h} L ${a},${h}`;this.setLineStyle(i,e[r],d,s),n=s}))}else{let n=-1/0,r=1/0,h=t.left+.3*t.width;if(t.children.forEach(((t,s)=>{let o=t.top+t.height/2;o>n&&(n=o),o<r&&(r=o);let a=`M ${h},${o} L ${t.left},${o}`;this.setLineStyle(i,e[s],a,t)})),l>0){let e=this.lineDraw.path();a=l>0?a:0,t.parent&&t.parent.isRoot&&t.dir===Ft.LAYOUT_GROW_DIR.TOP?e.plot(this.transformPath(`M ${h},${s} L ${h},${r}`)):e.plot(this.transformPath(`M ${h},${s+o+a} L ${h},${n}`)),t.style.line(e),t._lines.push(e),i&&i(e,t)}}}renderExpandBtn(t,e){let{width:i,height:n,expandBtnSize:s,isRoot:r}=t;if(!r){let{translateX:r,translateY:o}=e.transform();t.parent&&t.parent.isRoot&&t.dir===Ft.LAYOUT_GROW_DIR.TOP?e.translate(.3*i-s/2-r,-s/2-o):e.translate(.3*i-s/2-r,n+s/2-o)}}renderGeneralization(t){t.forEach((t=>{let{top:e,bottom:i,right:n,generalizationLineMargin:s,generalizationNodeMargin:r}=this.getNodeGeneralizationRenderBoundaries(t,"h"),o=n+s,a=`M ${o},${e} Q ${o+20},${e+(i-e)/2} ${n+s},${i}`;t.generalizationLine.plot(this.transformPath(a)),t.generalizationNode.left=n+r,t.generalizationNode.top=e+(i-e-t.generalizationNode.height)/2}))}renderExpandBtnRect(t,e,i,n,s){if(this.layout===Ft.LAYOUT.TIMELINE)t.size(i,e).x(0).y(n);else{let r="";r=s.dir===Ft.LAYOUT_GROW_DIR.TOP&&1===s.layerIndex?Ft.LAYOUT_GROW_DIR.TOP:Ft.LAYOUT_GROW_DIR.BOTTOM,r===Ft.LAYOUT_GROW_DIR.TOP?t.size(i,e).x(0).y(-e):t.size(i,e).x(0).y(n)}}}const yr={top:{renderExpandBtn({node:t,btn:e,expandBtnSize:i,translateX:n,translateY:s,width:r,height:o}){t.parent&&t.parent.isRoot?e.translate(.3*r-i/2-n,-i/2-s):e.translate(.3*r-i/2-n,o+i/2-s)},renderLine({node:t,line:e,top:i,x:n,lineLength:s,height:r,expandBtnSize:o,maxy:a,ctx:h}){t.parent&&t.parent.isRoot?e.plot(h.transformPath(`M ${n},${i} L ${n+s},${i-Math.tan(ms(h.mindMap.opt.fishboneDeg))*s}`)):e.plot(h.transformPath(`M ${n},${i+r+o} L ${n},${a}`))},computedLeftTopValue({layerIndex:t,node:e,ctx:i}){if(t>=1&&e.children){let n=i.getMarginY(t+1),s=e.left+e.width*i.childIndent,r=e.top+e.height+(i.getNodeActChildrenLength(e)>0?e.expandBtnSize:0)+n;e.children.forEach((t=>{t.left=s,t.top+=r,r+=t.height+(i.getNodeActChildrenLength(t)>0?t.expandBtnSize:0)+n}))}},adjustLeftTopValueBefore({node:t,parent:e,ctx:i,layerIndex:n}){let s=t.children.length,r=i.getMarginY(n+1);if(e&&!e.isRoot&&s>0){let e=t.children.reduce(((t,e)=>t+e.height+(i.getNodeActChildrenLength(e)>0?e.expandBtnSize:0)+r),0);i.updateBrothersTop(t,e)}},adjustLeftTopValueAfter({parent:t,node:e,ctx:i}){if(t&&t.isRoot){let t=i.getMarginY(e.layerIndex+1),n=e.expandBtnSize+t;e.children.forEach((t=>{let s=i.getNodeAreaHeight(t),r=t.top,o=t.left;t.top=e.top-(t.top-e.top)-s+e.height,t.left=e.left+e.width*i.indent+(s+n)/Math.tan(ms(i.mindMap.opt.fishboneDeg)),n+=s,i.updateChildrenPro(t.children,{top:t.top-r,left:t.left-o})}))}}},bottom:{renderExpandBtn({node:t,btn:e,expandBtnSize:i,translateX:n,translateY:s,width:r,height:o}){t.parent&&t.parent.isRoot?e.translate(.3*r-i/2-n,o+i/2-s):e.translate(.3*r-i/2-n,-i/2-s)},renderLine({node:t,line:e,top:i,x:n,lineLength:s,height:r,miny:o,ctx:a}){t.parent&&t.parent.isRoot?e.plot(a.transformPath(`M ${n},${i+r} L ${n+s},${i+r+Math.tan(ms(a.mindMap.opt.fishboneDeg))*s}`)):e.plot(a.transformPath(`M ${n},${i} L ${n},${o}`))},computedLeftTopValue({layerIndex:t,node:e,ctx:i}){let n=i.getMarginY(t+1);if(1===t&&e.children){let t=e.left+e.width*i.childIndent,s=e.top+e.height+(i.getNodeActChildrenLength(e)>0?e.expandBtnSize:0)+n;e.children.forEach((e=>{e.left=t,e.top=s+(i.getNodeActChildrenLength(e)>0?e.expandBtnSize:0),s+=e.height+(i.getNodeActChildrenLength(e)>0?e.expandBtnSize:0)+n}))}if(t>1&&e.children){let t=e.left+e.width*i.childIndent,s=e.top-(i.getNodeActChildrenLength(e)>0?e.expandBtnSize:0)-n;e.children.forEach((e=>{e.left=t,e.top=s-e.height,s-=e.height+(i.getNodeActChildrenLength(e)>0?e.expandBtnSize:0)+n}))}},adjustLeftTopValueBefore({node:t,ctx:e,layerIndex:i}){let n=e.getMarginY(i+1),s=t.children.length;if(i>2&&s>0){let i=t.children.reduce(((t,i)=>t+i.height+(e.getNodeActChildrenLength(i)>0?i.expandBtnSize:0)+n),0);e.updateBrothersTop(t,-i)}},adjustLeftTopValueAfter({parent:t,node:e,ctx:i}){if(t&&t.isRoot){let t=i.getMarginY(e.layerIndex+1),n=0,s=e.expandBtnSize;e.children.forEach((r=>{let o=i.getNodeActChildrenLength(r)>0,a=i.getNodeAreaHeight(r),h=o?a-r.height-(o?r.expandBtnSize:0):0;h-=o?t:0;let d=n+h,l=r.left;r.top+=d,r.left=e.left+e.width*i.indent+(a+s)/Math.tan(ms(i.mindMap.opt.fishboneDeg)),n+=h,s+=a,i.updateChildrenPro(r.children,{top:d,left:r.left-l})}))}}}};class xr{constructor(t){this.renderer=t,this.mindMap=t.mindMap,this.currentNode=null,this.textEditNode=null,this.showTextEdit=!1,this.cacheEditingText="",this.hasBodyMousedown=!1,this.textNodePaddingX=5,this.textNodePaddingY=3,this.isNeedUpdateTextEditNode=!1,this.bindEvent()}bindEvent(){this.show=this.show.bind(this),this.onScale=this.onScale.bind(this),this.onKeydown=this.onKeydown.bind(this),this.mindMap.on("node_dblclick",((t,e,i)=>{this.show({node:t,e:e,isInserting:i})})),this.mindMap.on("draw_click",(()=>{this.hideEditTextBox()})),this.mindMap.on("body_mousedown",(()=>{this.hasBodyMousedown=!0})),this.mindMap.on("body_click",(()=>{this.hasBodyMousedown&&(this.hasBodyMousedown=!1,this.mindMap.opt.isEndNodeTextEditOnClickOuter&&this.hideEditTextBox())})),this.mindMap.on("svg_mousedown",(()=>{this.hideEditTextBox()})),this.mindMap.on("expand_btn_click",(()=>{this.hideEditTextBox()})),this.mindMap.on("before_node_active",(()=>{this.hideEditTextBox()})),this.mindMap.on("mousewheel",(()=>{this.mindMap.opt.mousewheelAction===Ft.MOUSE_WHEEL_ACTION.MOVE&&this.hideEditTextBox()})),this.mindMap.keyCommand.addShortcut("F2",(()=>{this.renderer.activeNodeList.length<=0||this.show({node:this.renderer.activeNodeList[0]})})),this.mindMap.on("scale",this.onScale),this.mindMap.opt.enableAutoEnterTextEditWhenKeydown&&window.addEventListener("keydown",this.onKeydown),this.mindMap.on("beforeDestroy",(()=>{this.unBindEvent()})),this.mindMap.on("after_update_config",((t,e)=>{t.openRealtimeRenderOnNodeTextEdit!==e.openRealtimeRenderOnNodeTextEdit&&(this.mindMap.richText?this.mindMap.richText.onOpenRealtimeRenderOnNodeTextEditConfigUpdate(t.openRealtimeRenderOnNodeTextEdit):this.onOpenRealtimeRenderOnNodeTextEditConfigUpdate(t.openRealtimeRenderOnNodeTextEdit)),t.enableAutoEnterTextEditWhenKeydown!==e.enableAutoEnterTextEditWhenKeydown&&window[t.enableAutoEnterTextEditWhenKeydown?"addEventListener":"removeEventListener"]("keydown",this.onKeydown)})),this.mindMap.on("afterExecCommand",(()=>{this.isShowTextEdit()&&(this.isNeedUpdateTextEditNode=!0)})),this.mindMap.on("node_tree_render_end",(()=>{this.isShowTextEdit()&&this.isNeedUpdateTextEditNode&&(this.isNeedUpdateTextEditNode=!1,this.updateTextEditNode())}))}unBindEvent(){window.removeEventListener("keydown",this.onKeydown)}onKeydown(t){if(t.target!==document.body)return;const e=this.mindMap.renderer.activeNodeList;if(e.length<=0||e.length>1)return;const i=e[0];i&&this.checkIsAutoEnterTextEditKey(t)&&(t.preventDefault(),this.show({node:i,e:t,isInserting:!1,isFromKeyDown:!0}))}checkIsAutoEnterTextEditKey(t){const e=t.keyCode;return(229===e||e>=65&&e<=90||e>=48&&e<=57)&&!this.mindMap.keyCommand.hasCombinationKey(t)}registerTmpShortcut(){this.mindMap.keyCommand.addShortcut("Enter",(()=>{this.hideEditTextBox()})),this.mindMap.keyCommand.addShortcut("Tab",(()=>{this.hideEditTextBox()}))}isShowTextEdit(){return this.mindMap.richText?this.mindMap.richText.showTextEdit:this.showTextEdit}show(t){return c(this,arguments,(function*({node:t,isInserting:e=!1,isFromKeyDown:i=!1,isFromScale:n=!1}){if(t.isUseCustomNodeContent())return;this.getCurrentEditNode()&&this.hideEditTextBox();const{beforeTextEdit:s,openRealtimeRenderOnNodeTextEdit:r}=this.mindMap.opt;if("function"==typeof s){let i=!1;try{i=yield s(t,e)}catch(c){i=!1,this.mindMap.opt.errorHandler(Ut,c)}if(!i)return}const{offsetLeft:o,offsetTop:a}=((t,e)=>{let i=t.elRect,{scaleX:n,scaleY:s,translateX:r,translateY:o}=t.draw.transform(),{left:a,top:h,width:d,height:l}=e,c=(a+d)*n+r,u=(h+l)*s+o;a=a*n+r,h=h*s+o;let p=0,m=0;return a<0&&(p=-a),c>i.width&&(p=-(c-i.width)),h<0&&(m=-h),u>i.height&&(m=-(u-i.height)),{isOuter:0!==p||0!==m,offsetLeft:p,offsetTop:m}})(this.mindMap,t);this.mindMap.view.translateXY(o,a);const h=t._textData.node;r&&h.show();const d=h.node.getBoundingClientRect();r&&h.hide();const l={node:t,rect:d,isInserting:e,isFromKeyDown:i,isFromScale:n};this.mindMap.richText?this.mindMap.richText.showEditText(l):(this.currentNode=t,this.showEditTextBox(l))}))}onOpenRealtimeRenderOnNodeTextEditConfigUpdate(t){this.textEditNode&&(this.textEditNode.style.background=t?"transparent":this.currentNode?this.getBackground(this.currentNode):"",this.textEditNode.style.boxShadow=t?"none":"0 0 20px rgba(0,0,0,.5)")}onScale(){const t=this.getCurrentEditNode();t&&(this.mindMap.richText?(this.mindMap.richText.cacheEditingText=this.mindMap.richText.getEditText(),this.mindMap.richText.showTextEdit=!1):(this.cacheEditingText=this.getEditText(),this.showTextEdit=!1),this.show({node:t,isFromScale:!0}))}showEditTextBox({node:t,rect:e,isInserting:i,isFromKeyDown:n,isFromScale:s}){if(this.showTextEdit)return;const{nodeTextEditZIndex:r,textAutoWrapWidth:o,selectTextOnEnterEditText:a,openRealtimeRenderOnNodeTextEdit:h,autoEmptyTextWhenKeydownEnterEdit:d}=this.mindMap.opt;if(s||this.mindMap.emit("before_show_text_edit"),this.registerTmpShortcut(),!this.textEditNode){this.textEditNode=document.createElement("div"),this.textEditNode.classList.add(Ft.EDIT_NODE_CLASS.SMM_NODE_EDIT_WRAP),this.textEditNode.style.cssText=`\n position: fixed;\n box-sizing: border-box;\n ${h?"":"box-shadow: 0 0 20px rgba(0,0,0,.5);"}\n padding: ${this.textNodePaddingY}px ${this.textNodePaddingX}px;\n margin-left: -${this.textNodePaddingX}px;\n margin-top: -${this.textNodePaddingY}px;\n outline: none; \n word-break: break-all;\n line-break: anywhere;\n `,this.textEditNode.setAttribute("contenteditable",!0),this.textEditNode.addEventListener("keyup",(t=>{t.stopPropagation()})),this.textEditNode.addEventListener("click",(t=>{t.stopPropagation()})),this.textEditNode.addEventListener("mousedown",(t=>{t.stopPropagation()})),this.textEditNode.addEventListener("keydown",(t=>{this.checkIsAutoEnterTextEditKey(t)&&t.stopPropagation()})),this.textEditNode.addEventListener("paste",(t=>{const e=t.clipboardData.getData("text"),{isSmm:i,data:n}=Bs(e);i&&n[0]&&n[0].data?Hs(t,gs(n[0].data.text)):Hs(t),this.emitTextChangeEvent()})),this.textEditNode.addEventListener("input",(()=>{this.emitTextChangeEvent()}));(this.mindMap.opt.customInnerElsAppendTo||document.body).appendChild(this.textEditNode)}const l=this.mindMap.view.scale,c=t.style.merge("fontSize"),u=(this.cacheEditingText||t.getData("text")).split(/\n/gim).map((t=>Rs(t))),p="true"===t._textData.node.attr("data-ismultiLine");t.style.domText(this.textEditNode,l),h||(this.textEditNode.style.background=this.getBackground(t)),this.textEditNode.style.zIndex=r,this.textEditNode.innerHTML=n&&d?"":u.join("<br>"),this.textEditNode.style.minWidth=e.width+2*this.textNodePaddingX+"px",this.textEditNode.style.minHeight=e.height+"px",this.textEditNode.style.left=Math.floor(e.left)+"px",this.textEditNode.style.top=Math.floor(e.top)+"px",this.textEditNode.style.display="block",this.textEditNode.style.maxWidth=o*l+"px",p?(this.textEditNode.style.lineHeight=Yt,this.textEditNode.style.transform=`translateY(${.19999999999999996*c/2*l}px)`):this.textEditNode.style.lineHeight="normal",this.showTextEdit=!0,i||a&&!n?(t=>{let e=window.getSelection(),i=document.createRange();i.selectNodeContents(t),e.removeAllRanges(),e.addRange(i)})(this.textEditNode):(t=>{let e=window.getSelection(),i=document.createRange();i.selectNodeContents(t),i.collapse(),e.removeAllRanges(),e.addRange(i)})(this.textEditNode),this.cacheEditingText=""}emitTextChangeEvent(){this.mindMap.emit("node_text_edit_change",{node:this.currentNode,text:this.getEditText(),richText:!1})}updateTextEditNode(){if(this.mindMap.richText)return void this.mindMap.richText.updateTextEditNode();if(!this.showTextEdit||!this.currentNode)return;const t=this.currentNode._textData.node.node.getBoundingClientRect();this.textEditNode.style.minWidth=t.width+2*this.textNodePaddingX+"px",this.textEditNode.style.minHeight=t.height+2*this.textNodePaddingY+"px",this.textEditNode.style.left=Math.floor(t.left)+"px",this.textEditNode.style.top=Math.floor(t.top)+"px"}getBackground(t){if(t.style.merge("gradientStyle")){return`linear-gradient(to right, ${t.style.merge("startColor")}, ${t.style.merge("endColor")})`}{const e=t.style.merge("fillColor"),i=t.style.merge("color");return"transparent"===e?Es(i)?(t=>{let{lineColor:e,root:i,second:n,node:s}=t,r=[e,i.fillColor,i.color,n.fillColor,n.color,s.fillColor,s.color,i.borderColor,n.borderColor,s.borderColor];for(let o=0;o<r.length;o++){let t=r[o];if(!Ms(t)&&!Es(t))return t}})(this.mindMap.themeConfig):"#fff":e}}removeTextEditEl(){if(this.mindMap.richText)return void this.mindMap.richText.removeTextEditEl();if(!this.textEditNode)return;(this.mindMap.opt.customInnerElsAppendTo||document.body).removeChild(this.textEditNode)}getEditText(){return(t=>{t=t.replace(/<br>/gim,"\n");let e=document.createElement("div");return e.innerHTML=t,e.textContent})(this.textEditNode.innerHTML)}hideEditTextBox(){if(this.mindMap.richText)return this.mindMap.richText.hideEditText();if(!this.showTextEdit)return;const t=this.currentNode,e=this.getEditText();this.currentNode=null,this.textEditNode.style.display="none",this.textEditNode.innerHTML="",this.textEditNode.style.fontFamily="inherit",this.textEditNode.style.fontSize="inherit",this.textEditNode.style.fontWeight="normal",this.textEditNode.style.transform="translateY(0)",this.showTextEdit=!1,this.mindMap.execCommand("SET_NODE_TEXT",t,e),this.mindMap.render(),this.mindMap.emit("hide_text_edit",this.textEditNode,this.renderer.activeNodeList,t)}getCurrentEditNode(){return this.mindMap.richText?this.mindMap.richText.node:this.currentNode}}const vr={[Ft.LAYOUT.LOGICAL_STRUCTURE]:fr,[Ft.LAYOUT.LOGICAL_STRUCTURE_LEFT]:fr,[Ft.LAYOUT.MIND_MAP]:class extends mr{constructor(t={}){super(t)}doLayout(t){ps([()=>{this.computedBaseValue()},()=>{this.computedTopValue()},()=>{this.adjustTopValue()},()=>{t(this.root)}])}computedBaseValue(){hs(this.renderer.renderTree,null,((t,e,i,n,s,r)=>{let o=this.createNode(t,e,i,n,s,r);if(i?this.setNodeCenter(o):(e._node.dir?o.dir=e._node.dir:o.dir=o.getData("dir")||(s%2==0?Ft.LAYOUT_GROW_DIR.RIGHT:Ft.LAYOUT_GROW_DIR.LEFT),o.left=o.dir===Ft.LAYOUT_GROW_DIR.RIGHT?e._node.left+e._node.width+this.getMarginX(n):e._node.left-this.getMarginX(n)-o.width),!t.data.expand)return!0}),((t,e,i,n)=>{if(!t.data.expand)return t._node.leftChildrenAreaHeight=0,void(t._node.rightChildrenAreaHeight=0);let s=0,r=0,o=0,a=0;t._node.children.forEach((t=>{t.dir===Ft.LAYOUT_GROW_DIR.LEFT?(s++,o+=t.height):(r++,a+=t.height)})),t._node.leftChildrenAreaHeight=o+(s+1)*this.getMarginY(n+1),t._node.rightChildrenAreaHeight=a+(r+1)*this.getMarginY(n+1);let h=t._node.checkHasGeneralization()?t._node._generalizationNodeHeight+this.getMarginY(n+1):0;t._node.leftChildrenAreaHeight2=Math.max(t._node.leftChildrenAreaHeight,h),t._node.rightChildrenAreaHeight2=Math.max(t._node.rightChildrenAreaHeight,h)}),!0,0)}computedTopValue(){hs(this.root,null,((t,e,i,n)=>{if(t.getData("expand")&&t.children&&t.children.length){let e=this.getMarginY(n+1),i=t.top+t.height/2+e,s=i-t.leftChildrenAreaHeight/2,r=i-t.rightChildrenAreaHeight/2;t.children.forEach((t=>{t.dir===Ft.LAYOUT_GROW_DIR.LEFT?(t.top=s,s+=t.height+e):(t.top=r,r+=t.height+e)}))}}),null,!0)}adjustTopValue(){hs(this.root,null,((t,e,i,n)=>{if(!t.getData("expand"))return;let s=2*this.getMarginY(n+1)+t.height,r=t.leftChildrenAreaHeight2-s,o=t.rightChildrenAreaHeight2-s;(r>0||o>0)&&this.updateBrothers(t,r/2,o/2)}),null,!0)}updateBrothers(t,e,i){if(t.parent){let n=t.parent.children.filter((e=>e.dir===t.dir)),s=Os(t,n);n.forEach(((t,n)=>{if(t.hasCustomPosition())return;let r=0,o=t.dir===Ft.LAYOUT_GROW_DIR.LEFT?e:i;n<s?r=-o:n>s&&(r=o),t.top+=r,t.children&&t.children.length&&this.updateChildren(t.children,"top",r)})),this.updateBrothers(t.parent,e,i)}}renderLine(t,e,i,n){"curve"===n?this.renderLineCurve(t,e,i):"direct"===n?this.renderLineDirect(t,e,i):this.renderLineStraight(t,e,i)}renderLineStraight(t,e,i){if(t.children.length<=0)return[];let{left:n,top:s,width:r,height:o,expandBtnSize:a}=t;const{alwaysShowExpandBtn:h,notShowExpandBtn:d}=this.mindMap.opt;h&&!d||(a=0);let l=.6*(this.getMarginX(t.layerIndex+1)-a),c=this.mindMap.themeConfig.nodeUseLineStyle;t.children.forEach(((h,d)=>{let u=0,p=0,m=c?h.width:0;h.dir===Ft.LAYOUT_GROW_DIR.LEFT?(p=-l,u=0===t.layerIndex?n:n-a,m=-m):(p=l,u=0===t.layerIndex?n+r:n+r+a);let f=s+o/2,g=h.dir===Ft.LAYOUT_GROW_DIR.LEFT?h.left+h.width:h.left,y=h.top+h.height/2;f=c&&!t.isRoot?f+o/2:f,y=c?y+h.height/2:y;let x=this.createFoldLine([[u,f],[u+p,f],[u+p,y],[g+m,y]]);this.setLineStyle(i,e[d],x,h)}))}renderLineDirect(t,e,i){if(t.children.length<=0)return[];let{left:n,top:s,width:r,height:o,expandBtnSize:a}=t;const{alwaysShowExpandBtn:h,notShowExpandBtn:d}=this.mindMap.opt;h&&!d||(a=0);const{nodeUseLineStyle:l}=this.mindMap.themeConfig;t.children.forEach(((h,d)=>{0===t.layerIndex&&(a=0);let c=h.dir===Ft.LAYOUT_GROW_DIR.LEFT?n-a:n+r+a,u=s+o/2,p=h.dir===Ft.LAYOUT_GROW_DIR.LEFT?h.left+h.width:h.left,m=h.top+h.height/2;u=l&&!t.isRoot?u+o/2:u,m=l?m+h.height/2:m;let f="";l&&(f=h.dir===Ft.LAYOUT_GROW_DIR.LEFT?` L ${h.left},${m}`:` L ${h.left+h.width},${m}`);let g=`M ${c},${u} L ${p},${m}`+f;this.setLineStyle(i,e[d],g,h)}))}renderLineCurve(t,e,i){if(t.children.length<=0)return[];let{left:n,top:s,width:r,height:o,expandBtnSize:a}=t;const{alwaysShowExpandBtn:h,notShowExpandBtn:d}=this.mindMap.opt;h&&!d||(a=0);const{nodeUseLineStyle:l,rootLineKeepSameInCurve:c,rootLineStartPositionKeepSameInCurve:u}=this.mindMap.themeConfig;t.children.forEach(((h,d)=>{0===t.layerIndex&&(a=0);let p=0!==t.layerIndex||u?h.dir===Ft.LAYOUT_GROW_DIR.LEFT?n-a:n+r+a:n+r/2,m=s+o/2,f=h.dir===Ft.LAYOUT_GROW_DIR.LEFT?h.left+h.width:h.left,g=h.top+h.height/2,y="";m=l&&!t.isRoot?m+o/2:m,g=l?g+h.height/2:g;let x="";l&&(x=h.dir===Ft.LAYOUT_GROW_DIR.LEFT?` L ${h.left},${g}`:` L ${h.left+h.width},${g}`),y=t.isRoot&&!c?this.quadraticCurvePath(p,m,f,g)+x:this.cubicBezierPath(p,m,f,g)+x,this.setLineStyle(i,e[d],y,h)}))}renderExpandBtn(t,e){let{width:i,height:n,expandBtnSize:s}=t,{translateX:r,translateY:o}=e.transform(),a=this.mindMap.themeConfig.nodeUseLineStyle?n/2:0,h=t.dir===Ft.LAYOUT_GROW_DIR.LEFT?0-s:i,d=n/2+a;if(h===r&&d===o)return;let l=h-r,c=d-o;e.translate(l,c)}renderGeneralization(t){t.forEach((t=>{let e=t.node.dir===Ft.LAYOUT_GROW_DIR.LEFT,{top:i,bottom:n,left:s,right:r,generalizationLineMargin:o,generalizationNodeMargin:a}=this.getNodeGeneralizationRenderBoundaries(t,"h"),h=e?s-o:r+o,d=`M ${h},${i} Q ${h+(e?-20:20)},${i+(n-i)/2} ${h},${n}`;t.generalizationLine.plot(d),t.generalizationNode.left=h+(e?-a:a)-(e?t.generalizationNode.width:0),t.generalizationNode.top=i+(n-i-t.generalizationNode.height)/2}))}renderExpandBtnRect(t,e,i,n,s){s.dir===Ft.LAYOUT_GROW_DIR.LEFT?t.size(e,n).x(-e).y(0):t.size(e,n).x(i).y(0)}},[Ft.LAYOUT.CATALOG_ORGANIZATION]:class extends mr{constructor(t={}){super(t)}doLayout(t){ps([()=>{this.computedBaseValue()},()=>{this.computedLeftTopValue()},()=>{this.adjustLeftTopValue()},()=>{t(this.root)}])}computedBaseValue(){hs(this.renderer.renderTree,null,((t,e,i,n,s,r)=>{let o=this.createNode(t,e,i,n,s,r);if(i?this.setNodeCenter(o):e._node.isRoot&&(o.top=e._node.top+e._node.height+this.getMarginX(n)),!t.data.expand)return!0}),((t,e,i,n)=>{if(i){let e=!1===t.data.expand?0:t._node.children.length;t._node.childrenAreaWidth=e?t._node.children.reduce(((t,e)=>t+e.width),0)+(e+1)*this.getMarginX(n+1):0}}),!0,0)}computedLeftTopValue(){hs(this.root,null,((t,e,i,n)=>{if(t.getData("expand")&&t.children&&t.children.length){let e=this.getMarginX(n+1),s=this.getMarginY(n+1);if(i){let i=t.left+t.width/2-t.childrenAreaWidth/2+e;t.children.forEach((t=>{t.left=i,i+=t.width+e}))}else{let e=t.top+this.getNodeHeightWithGeneralization(t)+s+(this.getNodeActChildrenLength(t)>0?t.expandBtnSize:0);t.children.forEach((i=>{i.left=t.left+.5*t.width,i.top=e,e+=this.getNodeHeightWithGeneralization(i)+s+(this.getNodeActChildrenLength(i)>0?i.expandBtnSize:0)}))}}}),null,!0)}adjustLeftTopValue(){hs(this.root,null,((t,e,i,n)=>{if(!t.getData("expand"))return;if(e&&e.isRoot){let e=this.getNodeAreaWidth(t,!0)-t.width;e>0&&this.updateBrothersLeft(t,e)}let s=t.children.length;if(e&&!e.isRoot&&s>0){let e=this.getMarginY(n+1),i=t.children.reduce(((t,e)=>t+this.getNodeHeightWithGeneralization(e)+(this.getNodeActChildrenLength(e)>0?e.expandBtnSize:0)),0)+s*e;this.updateBrothersTop(t,i)}}),((t,e,i)=>{if(i){let{right:e,left:i}=this.getNodeBoundaries(t,"h"),n=e-i,s=t.left-i-(n-t.width)/2;this.updateChildren(t.children,"left",s)}}),!0)}updateBrothersLeft(t,e){if(t.parent){let i=t.parent.children,n=Os(t,i);i.forEach(((t,i)=>{t.hasCustomPosition()||i<=n||(t.left+=e,t.children&&t.children.length&&this.updateChildren(t.children,"left",e))})),this.updateBrothersLeft(t.parent,e)}}updateBrothersTop(t,e){if(t.parent&&!t.parent.isRoot){let i=t.parent.children,n=Os(t,i);i.forEach(((t,i)=>{if(t.hasCustomPosition())return;let s=0;i>n&&(s=e),t.top+=s,t.children&&t.children.length&&this.updateChildren(t.children,"top",s)})),this.updateBrothersTop(t.parent,e)}}renderLine(t,e,i){if(t.children.length<=0)return[];let{left:n,top:s,width:r,height:o,expandBtnSize:a}=t;const{alwaysShowExpandBtn:h,notShowExpandBtn:d}=this.mindMap.opt;h&&!d||(a=0);let l=t.children.length,c=this.getMarginX(t.layerIndex+1);if(t.isRoot){let a=n+r/2,h=s+o,d=.7*c,u=1/0,p=-1/0;t.children.forEach(((t,n)=>{let s=t.left+t.width/2,r=t.top;s<u&&(u=s),s>p&&(p=s);let o=this.mindMap.themeConfig.nodeUseLineStyle?` L ${t.left},${r} L ${t.left+t.width},${r}`:"",a=`M ${s},${h+d} L ${s},${h+d>r?r+t.height:r}`+o;this.setLineStyle(i,e[n],a,t)})),u=Math.min(u,a),p=Math.max(p,a);let m=this.lineDraw.path();if(t.style.line(m),m.plot(this.transformPath(`M ${a},${h} L ${a},${h+d}`)),t._lines.push(m),i&&i(m,t),l>0){let e=this.lineDraw.path();t.style.line(e),e.plot(this.transformPath(`M ${u},${h+d} L ${p},${h+d}`)),t._lines.push(e),i&&i(e,t)}}else{let n=s+o,r=-1/0,h=t.left+.3*t.width;if(t.children.forEach(((o,a)=>{let d=o.top+o.height/2;d>r&&(r=d);let l="",c=o.left,u=o.left+o.width<h,p=!1;u?c=o.left+o.width:o.left<h&&o.left+o.width>h&&(p=!0,d=o.top,r=d),d>s&&d<n?l=`M ${u?t.left:t.left+t.width},${d} L ${c},${d}`:d<n?(p&&(d=o.top+o.height,c=h),l=`M ${h},${s} L ${h},${d} L ${c},${d}`):(p&&(c=h),l=`M ${h},${d} L ${c},${d}`),l+=this.mindMap.themeConfig.nodeUseLineStyle?` L ${c},${d-o.height/2} L ${c},${d+o.height/2}`:"",this.setLineStyle(i,e[a],l,o)})),l>0){let e=this.lineDraw.path();a=l>0?a:0,t.style.line(e),r<n+a?e.hide():(e.plot(this.transformPath(`M ${h},${n+a} L ${h},${r}`)),e.show()),t._lines.push(e),i&&i(e,t)}}}renderExpandBtn(t,e){let{width:i,height:n,expandBtnSize:s,isRoot:r}=t;if(!r){let{translateX:t,translateY:r}=e.transform();e.translate(.3*i-s/2-t,n+s/2-r)}}renderGeneralization(t){t.forEach((t=>{let{top:e,bottom:i,right:n,generalizationLineMargin:s,generalizationNodeMargin:r}=this.getNodeGeneralizationRenderBoundaries(t,"h"),o=n+s,a=`M ${o},${e} Q ${o+20},${e+(i-e)/2} ${n+s},${i}`;t.generalizationLine.plot(this.transformPath(a)),t.generalizationNode.left=n+r,t.generalizationNode.top=e+(i-e-t.generalizationNode.height)/2}))}renderExpandBtnRect(t,e,i,n,s){t.size(i,e).x(0).y(n)}},[Ft.LAYOUT.ORGANIZATION_STRUCTURE]:class extends mr{constructor(t={}){super(t)}doLayout(t){ps([()=>{this.computedBaseValue()},()=>{this.computedLeftValue()},()=>{this.adjustLeftValue()},()=>{t(this.root)}])}computedBaseValue(){hs(this.renderer.renderTree,null,((t,e,i,n,s,r)=>{let o=this.createNode(t,e,i,n,s,r);if(i?this.setNodeCenter(o):o.top=e._node.top+e._node.height+this.getMarginX(n),!t.data.expand)return!0}),((t,e,i,n)=>{let s=!1===t.data.expand?0:t._node.children.length;t._node.childrenAreaWidth=s?t._node.children.reduce(((t,e)=>t+e.width),0)+(s+1)*this.getMarginY(n+1):0;let r=t._node.checkHasGeneralization()?t._node._generalizationNodeWidth+this.getMarginY(n+1):0;t._node.childrenAreaWidth2=Math.max(t._node.childrenAreaWidth,r)}),!0,0)}computedLeftValue(){hs(this.root,null,((t,e,i,n)=>{if(t.getData("expand")&&t.children&&t.children.length){let e=this.getMarginY(n+1),i=t.left+t.width/2-t.childrenAreaWidth/2+e;t.children.forEach((t=>{t.left=i,i+=t.width+e}))}}),null,!0)}adjustLeftValue(){hs(this.root,null,((t,e,i,n)=>{if(!t.getData("expand"))return;let s=t.childrenAreaWidth2-2*this.getMarginY(n+1)-t.width;s>0&&this.updateBrothers(t,s/2)}),null,!0)}updateBrothers(t,e){if(t.parent){let i=t.parent.children,n=Os(t,i);i.forEach(((t,i)=>{if(t.hasCustomPosition())return;let s=0;i<n?s=-e:i>n&&(s=e),t.left+=s,t.children&&t.children.length&&this.updateChildren(t.children,"left",s)})),this.updateBrothers(t.parent,e)}}renderLine(t,e,i,n){"curve"===n?this.renderLineCurve(t,e,i):"direct"===n?this.renderLineDirect(t,e,i):this.renderLineStraight(t,e,i)}renderLineCurve(t,e,i){if(t.children.length<=0)return[];let{left:n,top:s,width:r,height:o,expandBtnSize:a}=t;const{alwaysShowExpandBtn:h,notShowExpandBtn:d}=this.mindMap.opt;h&&!d||(a=0);const{nodeUseLineStyle:l,rootLineStartPositionKeepSameInCurve:c,rootLineKeepSameInCurve:u}=this.mindMap.themeConfig;t.children.forEach(((h,d)=>{0===t.layerIndex&&(a=0);let p=n+r/2,m=0!==t.layerIndex||c?s+o+a:s+o/2,f=h.left+h.width/2,g=h.top,y="",x=l?` L ${h.left},${g} L ${h.left+h.width},${g}`:"";y=t.isRoot&&!u?this.quadraticCurvePath(p,m,f,g,!0)+x:this.cubicBezierPath(p,m,f,g,!0)+x,this.setLineStyle(i,e[d],y,h)}))}renderLineDirect(t,e,i){if(t.children.length<=0)return[];let{left:n,top:s,width:r,height:o}=t;const{nodeUseLineStyle:a}=this.mindMap.themeConfig;let h=n+r/2,d=s+o;t.children.forEach(((t,n)=>{let s=t.left+t.width/2,r=t.top,o=a?` L ${t.left},${r} L ${t.left+t.width},${r}`:"",l=`M ${h},${d} L ${s},${r}`+o;this.setLineStyle(i,e[n],l,t)}))}renderLineStraight(t,e,i){if(t.children.length<=0)return[];let{left:n,top:s,width:r,height:o,expandBtnSize:a,isRoot:h}=t;const{alwaysShowExpandBtn:d,notShowExpandBtn:l}=this.mindMap.opt;d&&!l||(a=0);let c=n+r/2,u=s+o,p=.7*this.getMarginX(t.layerIndex+1),m=1/0,f=-1/0,g=t.children.length;t.children.forEach(((t,n)=>{let s=t.left+t.width/2,r=u+p>t.top?t.top+t.height:t.top;s<m&&(m=s),s>f&&(f=s);let o=this.mindMap.themeConfig.nodeUseLineStyle?` L ${t.left},${r} L ${t.left+t.width},${r}`:"",a=`M ${s},${u+p} L ${s},${r}`+o;this.setLineStyle(i,e[n],a,t)})),m=Math.min(c,m),f=Math.max(c,f);let y=this.lineDraw.path();if(t.style.line(y),a=g>0&&!h?a:0,y.plot(this.transformPath(`M ${c},${u+a} L ${c},${u+p}`)),t._lines.push(y),i&&i(y,t),g>0){let e=this.lineDraw.path();t.style.line(e),e.plot(this.transformPath(`M ${m},${u+p} L ${f},${u+p}`)),t._lines.push(e),i&&i(e,t)}}renderExpandBtn(t,e){let{width:i,height:n,expandBtnSize:s}=t,{translateX:r,translateY:o}=e.transform();e.translate(i/2-s/2-r,n+s/2-o)}renderGeneralization(t){t.forEach((t=>{let{bottom:e,left:i,right:n,generalizationLineMargin:s,generalizationNodeMargin:r}=this.getNodeGeneralizationRenderBoundaries(t,"v"),o=e+s,a=`M ${i},${o} Q ${i+(n-i)/2},${o+20} ${n},${e+s}`;t.generalizationLine.plot(this.transformPath(a)),t.generalizationNode.top=e+r,t.generalizationNode.left=i+(n-i-t.generalizationNode.width)/2}))}renderExpandBtnRect(t,e,i,n,s){t.size(i,e).x(0).y(n)}},[Ft.LAYOUT.TIMELINE]:gr,[Ft.LAYOUT.TIMELINE2]:gr,[Ft.LAYOUT.VERTICAL_TIMELINE]:class extends mr{constructor(t={},e){super(t),this.layout=e}doLayout(t){ps([()=>{this.computedBaseValue()},()=>{this.computedTopValue()},()=>{this.adjustLeftTopValue()},()=>{t(this.root)}])}computedBaseValue(){hs(this.renderer.renderTree,null,((t,e,i,n,s,r)=>{let o=this.createNode(t,e,i,n,s,r);if(i?this.setNodeCenter(o):(e._node.dir?o.dir=e._node.dir:o.dir=s%2==0?Ft.LAYOUT_GROW_DIR.RIGHT:Ft.LAYOUT_GROW_DIR.LEFT,e._node.isRoot?o.left=e._node.left+(t._node.width>e._node.width?-(t._node.width-e._node.width)/2:(e._node.width-t._node.width)/2):o.left=o.dir===Ft.LAYOUT_GROW_DIR.RIGHT?e._node.left+e._node.width+this.getMarginX(n):e._node.left-this.getMarginX(n)-o.width),!t.data.expand)return!0}),((t,e,i,n)=>{if(i)return;let s=!1===t.data.expand?0:t._node.children.length;t._node.childrenAreaHeight=s?t._node.children.reduce(((t,e)=>t+e.height),0)+(s+1)*this.getMarginY(n+1):0}),!0,0)}computedTopValue(){hs(this.root,null,((t,e,i,n,s)=>{if(t.getData("expand")&&t.children&&t.children.length){let e=this.getMarginY(n+1);if(i){let i=t.top+t.height+e;t.children.forEach((t=>{t.top=i,i+=t.height+e}))}else{let e=this.getMarginY(n+1),i=t.top+t.height/2+e-t.childrenAreaHeight/2;t.children.forEach((t=>{t.top=i,i+=t.height+e}))}}}),null,!0)}adjustLeftTopValue(){hs(this.root,null,((t,e,i,n)=>{if(!t.getData("expand"))return;if(i)return;let s=2*this.getMarginY(n+1)+t.height,r=t.childrenAreaHeight-s;r>0&&this.updateBrothers(t,r/2)}),null,!0)}updateBrothers(t,e){if(t.parent){let i=t.parent.children,n=Os(t,i);i.forEach(((i,s)=>{if(i.hasCustomPosition())return;if(!t.parent.isRoot&&i.uid===t.uid)return;let r=0;t.parent.isRoot?r=s<n?0:s>n?2*e:e:s<n?r=-e:s>n&&(r=e),i.top+=r,i.children&&i.children.length&&this.updateChildren(i.children,"top",r)})),this.updateBrothers(t.parent,e)}}updateBrothersTop(t,e){if(t.parent&&!t.parent.isRoot){let i=t.parent.children,n=Os(t,i);i.forEach(((t,i)=>{if(t.hasCustomPosition())return;let s=0;i>n&&(s=e),t.top+=s,t.children&&t.children.length&&this.updateChildren(t.children,"top",s)})),this.updateBrothersTop(t.parent,e)}}renderLine(t,e,i,n){"curve"===n?this.renderLineCurve(t,e,i):"direct"===n?this.renderLineDirect(t,e,i):this.renderLineStraight(t,e,i)}renderLineStraight(t,e,i){if(t.children.length<=0)return[];let{expandBtnSize:n}=t;const{alwaysShowExpandBtn:s,notShowExpandBtn:r}=this.mindMap.opt;if(s&&!r||(n=0),t.isRoot){let n=t;t.children.forEach(((s,r)=>{let o=n.top+n.height,a=s.top,h=t.left+t.width/2,d=`M ${h},${o} L ${h},${a}`;this.setLineStyle(i,e[r],d,s),n=s}))}else if(t.dir===Ft.LAYOUT_GROW_DIR.RIGHT){let s=t.left+t.width,r=t.top+t.height/2,o=.6*(this.getMarginX(t.layerIndex+1)-n);t.children.forEach(((t,n)=>{let a=t.left,h=t.top+t.height/2,d=this.createFoldLine([[s,r],[s+o,r],[s+o,h],[a,h]]);this.setLineStyle(i,e[n],d,t)}))}else{let s=t.left,r=t.top+t.height/2,o=.6*(this.getMarginX(t.layerIndex+1)-n);t.children.forEach(((t,n)=>{let a=t.left+t.width,h=t.top+t.height/2,d=this.createFoldLine([[s,r],[s-o,r],[s-o,h],[a,h]]);this.setLineStyle(i,e[n],d,t)}))}}renderLineDirect(t,e,i){if(t.children.length<=0)return[];let{left:n,top:s,width:r,height:o,expandBtnSize:a}=t;const{alwaysShowExpandBtn:h,notShowExpandBtn:d}=this.mindMap.opt;h&&!d||(a=0),t.children.forEach(((h,d)=>{if(t.isRoot){let n=t;t.children.forEach(((s,r)=>{let o=n.top+n.height,a=s.top,h=t.left+t.width/2,d=`M ${h},${o} L ${h},${a}`;this.setLineStyle(i,e[r],d,s),n=s}))}else{let t=`M ${h.dir===Ft.LAYOUT_GROW_DIR.LEFT?n-a:n+r+a},${s+o/2} L ${h.dir===Ft.LAYOUT_GROW_DIR.LEFT?h.left+h.width:h.left},${h.top+h.height/2}`;this.setLineStyle(i,e[d],t,h)}}))}renderLineCurve(t,e,i){if(t.children.length<=0)return[];let{left:n,top:s,width:r,height:o,expandBtnSize:a}=t;const{alwaysShowExpandBtn:h,notShowExpandBtn:d}=this.mindMap.opt;h&&!d||(a=0),t.children.forEach(((h,d)=>{if(t.isRoot){let n=t;t.children.forEach(((s,r)=>{let o=n.top+n.height,a=s.top,h=t.left+t.width/2,d=`M ${h},${o} L ${h},${a}`;this.setLineStyle(i,e[r],d,s),n=s}))}else{let t=h.dir===Ft.LAYOUT_GROW_DIR.LEFT?n-a:n+r+a,l=s+o/2,c=h.dir===Ft.LAYOUT_GROW_DIR.LEFT?h.left+h.width:h.left,u=h.top+h.height/2,p=this.cubicBezierPath(t,l,c,u);this.setLineStyle(i,e[d],p,h)}}))}renderExpandBtn(t,e){let{width:i,height:n,expandBtnSize:s,isRoot:r}=t;if(!r){let{translateX:r,translateY:o}=e.transform();t.dir===Ft.LAYOUT_GROW_DIR.RIGHT?e.translate(i-r,n/2-o):e.translate(-s-r,n/2-o)}}renderGeneralization(t){t.forEach((t=>{let e=t.node.dir===Ft.LAYOUT_GROW_DIR.LEFT,{top:i,bottom:n,left:s,right:r,generalizationLineMargin:o,generalizationNodeMargin:a}=this.getNodeGeneralizationRenderBoundaries(t,"h"),h=e?s-o:r+o,d=`M ${h},${i} Q ${h+(e?-20:20)},${i+(n-i)/2} ${h},${n}`;t.generalizationLine.plot(this.transformPath(d)),t.generalizationNode.left=h+(e?-a:a)-(e?t.generalizationNode.width:0),t.generalizationNode.top=i+(n-i-t.generalizationNode.height)/2}))}renderExpandBtnRect(t,e,i,n,s){s.dir===Ft.LAYOUT_GROW_DIR.LEFT?t.size(e,n).x(-e).y(0):t.size(e,n).x(i).y(0)}},[Ft.LAYOUT.FISHBONE]:class extends mr{constructor(t={}){super(t),this.indent=.3,this.childIndent=.5}doLayout(t){ps([()=>{this.computedBaseValue()},()=>{this.computedLeftTopValue()},()=>{this.adjustLeftTopValue()},()=>{t(this.root)}])}computedBaseValue(){hs(this.renderer.renderTree,null,((t,e,i,n,s,r)=>{let o=this.createNode(t,e,i,n,s,r);if(i)this.setNodeCenter(o);else if(e._node.dir?o.dir=e._node.dir:o.dir=s%2==0?Ft.LAYOUT_GROW_DIR.TOP:Ft.LAYOUT_GROW_DIR.BOTTOM,e._node.isRoot){let t=this.getMarginY(n);this.checkIsTop(o)?o.top=e._node.top-o.height-t:o.top=e._node.top+e._node.height+t}if(!t.data.expand)return!0}),null,!0,0)}computedLeftTopValue(){hs(this.root,null,((t,e,i,n)=>{if(t.isRoot){let e=this.getMarginX(n+1),i=t.left+t.width+t.height+e,s=t.left+t.width+t.height+e;t.children.forEach((t=>{this.checkIsTop(t)?(t.left=i,i+=t.width+e):(t.left=s+20,s+=t.width+e)}))}let s={layerIndex:n,node:t,ctx:this};this.checkIsTop(t)?yr.top.computedLeftTopValue(s):yr.bottom.computedLeftTopValue(s)}),null,!0)}adjustLeftTopValue(){hs(this.root,null,((t,e,i,n)=>{if(!t.getData("expand"))return;let s={node:t,parent:e,layerIndex:n,ctx:this};this.checkIsTop(t)?yr.top.adjustLeftTopValueBefore(s):yr.bottom.adjustLeftTopValueBefore(s)}),((t,e)=>{let i={parent:e,node:t,ctx:this};if(this.checkIsTop(t)?yr.top.adjustLeftTopValueAfter(i):yr.bottom.adjustLeftTopValueAfter(i),t.isRoot){let e=0,i=0;t.children.forEach((t=>{if(this.checkIsTop(t)){t.left+=e,this.updateChildren(t.children,"left",e);let{left:i,right:n}=this.getNodeBoundaries(t,"h");e+=n-i}else{t.left+=i,this.updateChildren(t.children,"left",i);let{left:e,right:n}=this.getNodeBoundaries(t,"h");i+=n-e}}))}}),!0)}getNodeAreaHeight(t){let e=0,i=t=>{let n=this.getMarginY(t.layerIndex);e+=t.height+(this.getNodeActChildrenLength(t)>0?t.expandBtnSize:0)+n,t.children.length&&t.children.forEach((t=>{i(t)}))};return i(t),e}updateBrothersLeft(t){let e=t.children,i=0;e.forEach((t=>{t.left+=i,t.children&&t.children.length&&this.updateChildren(t.children,"left",i);let{left:e,right:n}=this.getNodeBoundaries(t,"h"),s=n-e-t.width;s>0&&(i+=s)}))}updateBrothersTop(t,e){if(t.parent&&!t.parent.isRoot){let i=t.parent.children,n=Os(t,i);i.forEach(((t,i)=>{if(t.hasCustomPosition())return;let s=0;i>n&&(s=e),t.top+=s,t.children&&t.children.length&&this.updateChildren(t.children,"top",s)})),this.checkIsTop(t)?this.updateBrothersTop(t.parent,e):this.updateBrothersTop(t.parent,3===t.layerIndex?0:e)}}checkIsTop(t){return t.dir===Ft.LAYOUT_GROW_DIR.TOP}renderLine(t,e,i){if(1!==t.layerIndex&&t.children.length<=0)return[];let{top:n,height:s,expandBtnSize:r}=t;const{alwaysShowExpandBtn:o,notShowExpandBtn:a}=this.mindMap.opt;o&&!a||(r=0);let h=t.children.length;if(t.isRoot){let e=-1/0;t.children.forEach((n=>{n.left>e&&(e=n.left);let s=this.getMarginY(n.layerIndex),r=n.left,o=t.height/2+s,a=o/Math.tan(ms(this.mindMap.opt.fishboneDeg)),h=this.lineDraw.path();this.checkIsTop(n)?h.plot(this.transformPath(`M ${r-a},${n.top+n.height+o} L ${n.left},${n.top+n.height}`)):h.plot(this.transformPath(`M ${r-a},${n.top-o} L ${r},${n.top}`)),t.style.line(h),t._lines.push(h),i&&i(h,t)}));let n=t.top+t.height/2,s=t.height/2+this.getMarginY(t.layerIndex+1),r=this.lineDraw.path();r.plot(this.transformPath(`M ${t.left+t.width},${n} L ${e-s/Math.tan(ms(this.mindMap.opt.fishboneDeg))},${n}`)),t.style.line(r),t._lines.push(r),i&&i(r,t)}else{let o=-1/0,a=1/0,d=-1/0,l=t.left+t.width*this.indent;if(t.children.forEach(((n,s)=>{n.left>d&&(d=n.left);let r=n.top+n.height/2;if(r>o&&(o=r),r<a&&(a=r),t.layerIndex>1){let t=`M ${l},${r} L ${n.left},${r}`;this.setLineStyle(i,e[s],t,n)}})),h>=0){let e=this.lineDraw.path();r=h>0?r:0;let c=d-t.left-t.width*this.indent;c=Math.max(c,0);let u={node:t,line:e,top:n,x:l,lineLength:c,height:s,expandBtnSize:r,maxy:o,miny:a,ctx:this};this.checkIsTop(t)?yr.top.renderLine(u):yr.bottom.renderLine(u),t.style.line(e),t._lines.push(e),i&&i(e,t)}}}renderExpandBtn(t,e){let{width:i,height:n,expandBtnSize:s,isRoot:r}=t;if(!r){let{translateX:r,translateY:o}=e.transform(),a={node:t,btn:e,expandBtnSize:s,translateX:r,translateY:o,width:i,height:n};this.checkIsTop(t)?yr.top.renderExpandBtn(a):yr.bottom.renderExpandBtn(a)}}renderGeneralization(t){t.forEach((t=>{let{top:e,bottom:i,right:n,generalizationLineMargin:s,generalizationNodeMargin:r}=this.getNodeGeneralizationRenderBoundaries(t,"h"),o=n+s,a=`M ${o},${e} Q ${o+20},${e+(i-e)/2} ${n+s},${i}`;t.generalizationLine.plot(this.transformPath(a)),t.generalizationNode.left=n+r,t.generalizationNode.top=e+(i-e-t.generalizationNode.height)/2}))}renderExpandBtnRect(t,e,i,n,s){let r="";r=s.dir===Ft.LAYOUT_GROW_DIR.TOP?1===s.layerIndex?Ft.LAYOUT_GROW_DIR.TOP:Ft.LAYOUT_GROW_DIR.BOTTOM:1===s.layerIndex?Ft.LAYOUT_GROW_DIR.BOTTOM:Ft.LAYOUT_GROW_DIR.TOP,r===Ft.LAYOUT_GROW_DIR.TOP?t.size(i,e).x(0).y(-e):t.size(i,e).x(0).y(n)}}};class wr{constructor(t={}){this.opt=t,this.mindMap=t.mindMap,this.themeConfig=this.mindMap.themeConfig,this.renderTree=this.mindMap.opt.data?ne({},this.mindMap.opt.data):null,this.reRender=!1,this.isRendering=!1,this.hasWaitRendering=!1,this.waitRenderingParams=[],this.nodeCache={},this.lastNodeCache={},this.renderSource="",this.activeNodeList=[],this.root=null,this.textEdit=new xr(this),this.beingCopyData=null,this.highlightBoxNode=null,this.highlightBoxNodeStyle=null,this.lastActiveNodeList=[],this.setLayout(),this.bindEvent(),this.registerCommands(),this.registerShortcutKeys()}setLayout(){const{layout:t}=this.mindMap.opt;this.layout=new(vr[t]?vr[t]:vr[Ft.LAYOUT.LOGICAL_STRUCTURE])(this,t)}setData(t){this.renderTree=t||null}bindEvent(){const{openPerformance:t,performanceConfig:e,openRealtimeRenderOnNodeTextEdit:i}=this.mindMap.opt;this.mindMap.on("draw_click",(t=>{this.clearActiveNodeListOnDrawClick(t,"click")})),this.mindMap.on("contextmenu",(t=>{this.clearActiveNodeListOnDrawClick(t,"contextmenu")})),this.mindMap.svg.on("dblclick",(()=>{this.mindMap.opt.enableDblclickBackToRootNode&&this.setRootNodeCenter()}));const n=us((()=>{this.root&&(this.mindMap.emit("node_tree_render_start"),this.root.render((()=>{this.mindMap.emit("node_tree_render_end")}),!1,!0))}),e.time);t&&this.mindMap.on("view_data_change",n),this.onNodeTextEditChange=((t,e=300,i)=>{let n=null;return(...s)=>{n&&clearTimeout(n);const r=!n;n=setTimeout((()=>{n=null,t.apply(i,s)}),e),r&&t.apply(i,s)}})(this.onNodeTextEditChange,100,this),i&&this.mindMap.on("node_text_edit_change",this.onNodeTextEditChange),this.mindMap.on("after_update_config",((t,e)=>{t.openPerformance!==e.openPerformance&&(this.mindMap[t.openPerformance?"on":"off"]("view_data_change",n),this.forceLoadNode()),t.openRealtimeRenderOnNodeTextEdit!==e.openRealtimeRenderOnNodeTextEdit&&this.mindMap[t.openRealtimeRenderOnNodeTextEdit?"on":"off"]("node_text_edit_change",this.onNodeTextEditChange)}))}onNodeTextEditChange({node:t,text:e}){t._textData=t.createTextNode(e);const{width:i,height:n}=t.getNodeRect();t.width=i,t.height=n,t.layout(),this.mindMap.render((()=>{this.textEdit.updateTextEditNode()}))}forceLoadNode(t){(t=t||this.root)&&(this.mindMap.emit("node_tree_render_start"),t.render((()=>{this.mindMap.emit("node_tree_render_end")}),!0))}registerCommands(){this.selectAll=this.selectAll.bind(this),this.mindMap.command.add("SELECT_ALL",this.selectAll),this.back=this.back.bind(this),this.mindMap.command.add("BACK",this.back),this.forward=this.forward.bind(this),this.mindMap.command.add("FORWARD",this.forward),this.insertNode=this.insertNode.bind(this),this.mindMap.command.add("INSERT_NODE",this.insertNode),this.insertMultiNode=this.insertMultiNode.bind(this),this.mindMap.command.add("INSERT_MULTI_NODE",this.insertMultiNode),this.insertChildNode=this.insertChildNode.bind(this),this.mindMap.command.add("INSERT_CHILD_NODE",this.insertChildNode),this.insertMultiChildNode=this.insertMultiChildNode.bind(this),this.mindMap.command.add("INSERT_MULTI_CHILD_NODE",this.insertMultiChildNode),this.insertParentNode=this.insertParentNode.bind(this),this.mindMap.command.add("INSERT_PARENT_NODE",this.insertParentNode),this.upNode=this.upNode.bind(this),this.mindMap.command.add("UP_NODE",this.upNode),this.downNode=this.downNode.bind(this),this.mindMap.command.add("DOWN_NODE",this.downNode),this.moveUpOneLevel=this.moveUpOneLevel.bind(this),this.mindMap.command.add("MOVE_UP_ONE_LEVEL",this.moveUpOneLevel),this.insertAfter=this.insertAfter.bind(this),this.mindMap.command.add("INSERT_AFTER",this.insertAfter),this.insertBefore=this.insertBefore.bind(this),this.mindMap.command.add("INSERT_BEFORE",this.insertBefore),this.moveNodeTo=this.moveNodeTo.bind(this),this.mindMap.command.add("MOVE_NODE_TO",this.moveNodeTo),this.removeNode=this.removeNode.bind(this),this.mindMap.command.add("REMOVE_NODE",this.removeNode),this.removeCurrentNode=this.removeCurrentNode.bind(this),this.mindMap.command.add("REMOVE_CURRENT_NODE",this.removeCurrentNode),this.pasteNode=this.pasteNode.bind(this),this.mindMap.command.add("PASTE_NODE",this.pasteNode),this.cutNode=this.cutNode.bind(this),this.mindMap.command.add("CUT_NODE",this.cutNode),this.setNodeStyle=this.setNodeStyle.bind(this),this.mindMap.command.add("SET_NODE_STYLE",this.setNodeStyle),this.setNodeStyles=this.setNodeStyles.bind(this),this.mindMap.command.add("SET_NODE_STYLES",this.setNodeStyles),this.setNodeActive=this.setNodeActive.bind(this),this.mindMap.command.add("SET_NODE_ACTIVE",this.setNodeActive),this.clearActiveNode=this.clearActiveNode.bind(this),this.mindMap.command.add("CLEAR_ACTIVE_NODE",this.clearActiveNode),this.setNodeExpand=this.setNodeExpand.bind(this),this.mindMap.command.add("SET_NODE_EXPAND",this.setNodeExpand),this.expandAllNode=this.expandAllNode.bind(this),this.mindMap.command.add("EXPAND_ALL",this.expandAllNode),this.unexpandAllNode=this.unexpandAllNode.bind(this),this.mindMap.command.add("UNEXPAND_ALL",this.unexpandAllNode),this.expandToLevel=this.expandToLevel.bind(this),this.mindMap.command.add("UNEXPAND_TO_LEVEL",this.expandToLevel),this.setNodeData=this.setNodeData.bind(this),this.mindMap.command.add("SET_NODE_DATA",this.setNodeData),this.setNodeText=this.setNodeText.bind(this),this.mindMap.command.add("SET_NODE_TEXT",this.setNodeText),this.setNodeImage=this.setNodeImage.bind(this),this.mindMap.command.add("SET_NODE_IMAGE",this.setNodeImage),this.setNodeIcon=this.setNodeIcon.bind(this),this.mindMap.command.add("SET_NODE_ICON",this.setNodeIcon),this.setNodeHyperlink=this.setNodeHyperlink.bind(this),this.mindMap.command.add("SET_NODE_HYPERLINK",this.setNodeHyperlink),this.setNodeNote=this.setNodeNote.bind(this),this.mindMap.command.add("SET_NODE_NOTE",this.setNodeNote),this.setNodeAttachment=this.setNodeAttachment.bind(this),this.mindMap.command.add("SET_NODE_ATTACHMENT",this.setNodeAttachment),this.setNodeTag=this.setNodeTag.bind(this),this.mindMap.command.add("SET_NODE_TAG",this.setNodeTag),this.insertFormula=this.insertFormula.bind(this),this.mindMap.command.add("INSERT_FORMULA",this.insertFormula),this.addGeneralization=this.addGeneralization.bind(this),this.mindMap.command.add("ADD_GENERALIZATION",this.addGeneralization),this.removeGeneralization=this.removeGeneralization.bind(this),this.mindMap.command.add("REMOVE_GENERALIZATION",this.removeGeneralization),this.setNodeCustomPosition=this.setNodeCustomPosition.bind(this),this.mindMap.command.add("SET_NODE_CUSTOM_POSITION",this.setNodeCustomPosition),this.resetLayout=this.resetLayout.bind(this),this.mindMap.command.add("RESET_LAYOUT",this.resetLayout),this.setNodeShape=this.setNodeShape.bind(this),this.mindMap.command.add("SET_NODE_SHAPE",this.setNodeShape),this.goTargetNode=this.goTargetNode.bind(this),this.mindMap.command.add("GO_TARGET_NODE",this.goTargetNode),this.removeCustomStyles=this.removeCustomStyles.bind(this),this.mindMap.command.add("REMOVE_CUSTOM_STYLES",this.removeCustomStyles),this.removeAllNodeCustomStyles=this.removeAllNodeCustomStyles.bind(this),this.mindMap.command.add("REMOVE_ALL_NODE_CUSTOM_STYLES",this.removeAllNodeCustomStyles)}registerShortcutKeys(){this.mindMap.keyCommand.addShortcut("Tab",(()=>{this.mindMap.execCommand("INSERT_CHILD_NODE")})),this.mindMap.keyCommand.addShortcut("Insert",(()=>{this.mindMap.execCommand("INSERT_CHILD_NODE")})),this.mindMap.keyCommand.addShortcut("Enter",(()=>{this.mindMap.execCommand("INSERT_NODE")})),this.mindMap.keyCommand.addShortcut("Shift+Tab",(()=>{this.mindMap.execCommand("INSERT_PARENT_NODE")})),this.mindMap.keyCommand.addShortcut("Control+g",(()=>{this.mindMap.execCommand("ADD_GENERALIZATION")})),this.toggleActiveExpand=this.toggleActiveExpand.bind(this),this.mindMap.keyCommand.addShortcut("/",this.toggleActiveExpand),this.mindMap.keyCommand.addShortcut("Del|Backspace",(()=>{this.mindMap.execCommand("REMOVE_NODE")})),this.mindMap.keyCommand.addShortcut("Shift+Backspace",(()=>{this.mindMap.execCommand("REMOVE_CURRENT_NODE")})),this.mindMap.on("before_show_text_edit",(()=>{this.startTextEdit()})),this.mindMap.on("hide_text_edit",(()=>{this.endTextEdit()})),this.mindMap.keyCommand.addShortcut("Control+a",(()=>{this.mindMap.execCommand("SELECT_ALL")})),this.mindMap.keyCommand.addShortcut("Control+l",(()=>{this.mindMap.execCommand("RESET_LAYOUT")})),this.mindMap.keyCommand.addShortcut("Control+Up",(()=>{this.mindMap.execCommand("UP_NODE")})),this.mindMap.keyCommand.addShortcut("Control+Down",(()=>{this.mindMap.execCommand("DOWN_NODE")})),this.mindMap.keyCommand.addShortcut("Control+c",(()=>{this.copy()})),this.mindMap.keyCommand.addShortcut("Control+x",(()=>{this.cut()})),this.mindMap.keyCommand.addShortcut("Control+v",(()=>{this.paste()})),this.mindMap.keyCommand.addShortcut("Control+Enter",(()=>{this.setRootNodeCenter()}))}emitNodeActiveEvent(t=null,e=[...this.activeNodeList]){!((t,e)=>{if(t.length!==e.length)return!1;for(let i=0;i<t.length;i++)if(!e.find((e=>e.uid===t[i].uid)))return!1;return!0})(this.lastActiveNodeList,e)&&(this.lastActiveNodeList=[...e],this.mindMap.batchExecution.push("emitNodeActiveEvent",(()=>{this.mindMap.emit("node_active",t,e)})))}clearActiveNodeListOnDrawClick(t,e){if(this.activeNodeList.length<=0)return;let i=!0;const{useLeftKeySelectionRightKeyDrag:n}=this.mindMap.opt;if("contextmenu"===e?!n:n){const e=this.mindMap.event.mousedownPos;i=Math.abs(t.clientX-e.x)<=5&&Math.abs(t.clientY-e.y)<=5}i&&this.mindMap.execCommand("CLEAR_ACTIVE_NODE")}startTextEdit(){this.mindMap.keyCommand.save()}endTextEdit(){this.mindMap.keyCommand.restore()}clearCache(){this.layout.lru.clear(),this.nodeCache={},this.lastNodeCache={}}render(t=()=>{},e){return e===Ft.CHANGE_THEME&&this.resetUnExpandNodeStyle(),this.isRendering?(this.hasWaitRendering=!0,void(this.waitRenderingParams=[t,e])):(this.isRendering=!0,this.renderSource=e,this.lastNodeCache=this.nodeCache,this.nodeCache={},this.reRender&&this.clearActiveNodeList(),this.renderTree?(this.mindMap.emit("node_tree_render_start"),this.root=null,this.layout.doLayout((e=>{Object.keys(this.lastNodeCache).forEach((t=>{this.nodeCache[t]||(this.removeNodeFromActiveList(this.lastNodeCache[t]),this.emitNodeActiveEvent(),this.lastNodeCache[t].destroy())})),this.root=e,this.root.render((()=>{if(this.isRendering=!1,t&&t(),this.hasWaitRendering){const t=this.waitRenderingParams;this.hasWaitRendering=!1,this.waitRenderingParams=[],this.render(...t)}else this.renderSource="",this.reRender&&(this.reRender=!1);this.mindMap.emit("node_tree_render_end")}))})),void this.emitNodeActiveEvent()):(this.isRendering=!1,void this.mindMap.emit("node_tree_render_end")))}resetUnExpandNodeStyle(){this.renderTree&&hs(this.renderTree,null,(t=>{if(!t.data.expand)return hs(t,null,(t=>{t.data.needUpdate=!0})),!0}))}clearActiveNode(){this.activeNodeList.length<=0||(this.clearActiveNodeList(),this.emitNodeActiveEvent(null,[]))}clearActiveNodeList(){this.activeNodeList.forEach((t=>{this.mindMap.execCommand("SET_NODE_ACTIVE",t,!1)})),this.activeNodeList=[]}addNodeToActiveList(t,e=!1){if(this.mindMap.opt.onlyOneEnableActiveNodeOnCooperate&&t.userList.length>0)return;-1===this.findActiveNodeIndex(t)&&(e||this.mindMap.emit("before_node_active",t,this.activeNodeList),this.mindMap.execCommand("SET_NODE_ACTIVE",t,!0),this.activeNodeList.push(t))}removeNodeFromActiveList(t){let e=this.findActiveNodeIndex(t);-1!==e&&(this.mindMap.execCommand("SET_NODE_ACTIVE",t,!1),this.activeNodeList.splice(e,1))}activeMultiNode(t=[]){t.forEach((t=>{this.mindMap.emit("before_node_active",t,this.activeNodeList),this.addNodeToActiveList(t,!0),this.emitNodeActiveEvent(t)}))}cancelActiveMultiNode(t=[]){t.forEach((t=>{this.removeNodeFromActiveList(t),this.emitNodeActiveEvent(null)}))}findActiveNodeIndex(t){return Os(t,this.activeNodeList)}selectAll(){this.mindMap.opt.readonly||(hs(this.root,null,(t=>{t.getData("isActive")||this.addNodeToActiveList(t),t._generalizationList&&t._generalizationList.length>0&&t._generalizationList.forEach((t=>{const e=t.generalizationNode;e.getData("isActive")||this.addNodeToActiveList(e)}))}),null,!0,0,0),this.emitNodeActiveEvent())}back(t){this.backForward("back",t)}forward(t){this.backForward("forward",t)}backForward(t,e){this.mindMap.execCommand("CLEAR_ACTIVE_NODE");const i=this.mindMap.command[t](e);i&&(this.renderTree=i,this.mindMap.render()),this.mindMap.emit("data_change",i)}getNewNodeBehavior(t=!1,e=!1){const{createNewNodeBehavior:i}=this.mindMap.opt;let n=!1,s=!1;switch(i){case Ft.CREATE_NEW_NODE_BEHAVIOR.DEFAULT:n=e||!t,s=!e&&t;break;case Ft.CREATE_NEW_NODE_BEHAVIOR.NOT_ACTIVE:n=!1,s=!1;break;case Ft.CREATE_NEW_NODE_BEHAVIOR.ACTIVE_ONLY:n=!0,s=!1}return{focusNewNode:n,inserting:s}}insertNode(t=!0,e=[],i=null,n=[]){if(e=Ss(e),this.activeNodeList.length<=0&&e.length<=0)return;this.textEdit.hideEditTextBox();const{defaultInsertSecondLevelNodeText:s,defaultInsertBelowSecondLevelNodeText:r}=this.mindMap.opt,o=e.length>0?e:this.activeNodeList,a=o.length>1,l=this.hasRichTextPlugin(),{focusNewNode:c,inserting:u}=this.getNewNodeBehavior(t,a),p={expand:!0,richText:l,isActive:c};l&&(p.resetRichText=!0),n=Ts(n,p);const m=i&&i.richText;let f=!1;o.forEach((t=>{if(t.isGeneralization||t.isRoot)return;n=ds(n);const e=t.parent,o=1===t.layerIndex?s:r,a=Ds(t);m&&p.resetRichText&&delete p.resetRichText;const l={inserting:u,data:h(d(h({text:o},p),{uid:ys()}),i||{}),children:[...Ls(n,f)]};f=!0,e.nodeData.children.splice(a+1,0,l)})),c&&this.clearActiveNodeList(),this.mindMap.render()}insertMultiNode(t,e){if(!e||e.length<=0)return;if(t=Ss(t),this.activeNodeList.length<=0&&t.length<=0)return;this.textEdit.hideEditTextBox();const i=t.length>0?t:this.activeNodeList,n=this.hasRichTextPlugin(),{focusNewNode:s}=this.getNewNodeBehavior(!1,!0),r={expand:!0,richText:n,isActive:s};n&&(r.resetRichText=!0),e=Ts(e,r);let o=!1;i.forEach((t=>{if(t.isGeneralization||t.isRoot)return;e=ds(e);const i=t.parent,n=Ds(t),s=Ls(e,o);o=!0,i.nodeData.children.splice(n+1,0,...s)})),s&&this.clearActiveNodeList(),this.mindMap.render()}insertChildNode(t=!0,e=[],i=null,n=[]){if(e=Ss(e),this.activeNodeList.length<=0&&e.length<=0)return;this.textEdit.hideEditTextBox();const{defaultInsertSecondLevelNodeText:s,defaultInsertBelowSecondLevelNodeText:r}=this.mindMap.opt,o=e.length>0?e:this.activeNodeList,a=o.length>1,d=this.hasRichTextPlugin(),{focusNewNode:l,inserting:c}=this.getNewNodeBehavior(t,a),u={expand:!0,richText:d,isActive:l};d&&(u.resetRichText=!0),n=Ts(n,u);const p=i&&i.richText;let m=!1;o.forEach((t=>{if(t.isGeneralization)return;n=ds(n),t.nodeData.children||(t.nodeData.children=[]);const e=t.isRoot?s:r;p&&u.resetRichText&&delete u.resetRichText;const o={inserting:c,data:h(h({text:e,uid:ys()},u),i||{}),children:[...Ls(n,m)]};m=!0,t.nodeData.children.push(o),t.setData({expand:!0})})),l&&this.clearActiveNodeList(),this.mindMap.render()}insertMultiChildNode(t,e){if(!e||e.length<=0)return;if(t=Ss(t),this.activeNodeList.length<=0&&t.length<=0)return;this.textEdit.hideEditTextBox();const i=t.length>0?t:this.activeNodeList,n=this.hasRichTextPlugin(),{focusNewNode:s}=this.getNewNodeBehavior(!1,!0),r={expand:!0,richText:n,isActive:s};n&&(r.resetRichText=!0),e=Ts(e,r);let o=!1;i.forEach((t=>{t.isGeneralization||(e=ds(e),t.nodeData.children||(t.nodeData.children=[]),e=Ls(e,o),o=!0,t.nodeData.children.push(...e),t.setData({expand:!0}))})),s&&this.clearActiveNodeList(),this.mindMap.render()}insertParentNode(t=!0,e,i){if(e=Ss(e),this.activeNodeList.length<=0&&e.length<=0)return;this.textEdit.hideEditTextBox();const{defaultInsertSecondLevelNodeText:n,defaultInsertBelowSecondLevelNodeText:s}=this.mindMap.opt,r=e.length>0?e:this.activeNodeList,o=r.length>1,a=this.hasRichTextPlugin(),{focusNewNode:d,inserting:l}=this.getNewNodeBehavior(t,o),c={expand:!0,richText:a,isActive:d};a&&(c.resetRichText=!0);const u=i&&i.richText;r.forEach((t=>{if(t.isGeneralization||t.isRoot)return;const e=1===t.layerIndex?n:s;u&&c.resetRichText&&delete c.resetRichText;const r={inserting:l,data:h(h({text:e,uid:ys()},c),i||{}),children:[t.nodeData]},o=t.parent,a=Ds(t);o.nodeData.children.splice(a,1,r)})),d&&this.clearActiveNodeList(),this.mindMap.render()}upNode(t){if(this.activeNodeList.length<=0&&!t)return;const e=(t?[t]:this.activeNodeList)[0];if(e.isRoot)return;let i=e.parent,n=i.children,s=Os(e,n);if(-1===s||0===s)return;let r=s-1;n.splice(s,1),n.splice(r,0,e),i.nodeData.children.splice(s,1),i.nodeData.children.splice(r,0,e.nodeData),this.mindMap.render()}downNode(t){if(this.activeNodeList.length<=0&&!t)return;const e=(t?[t]:this.activeNodeList)[0];if(e.isRoot)return;let i=e.parent,n=i.children,s=Os(e,n);if(-1===s||s===n.length-1)return;let r=s+1;n.splice(s,1),n.splice(r,0,e),i.nodeData.children.splice(s,1),i.nodeData.children.splice(r,0,e.nodeData),this.mindMap.render()}moveUpOneLevel(t){if(!(t=t||this.activeNodeList[0])||t.isRoot||t.layerIndex<=1)return;const e=t.parent,i=e.parent,n=Os(t,e.children),s=Os(e,i.children);e.nodeData.children.splice(n,1),i.nodeData.children.splice(s+1,0,t.nodeData),this.mindMap.render()}_handleRemoveCustomStyles(t){let e=!1;return Object.keys(t).forEach((i=>{Ns(i)&&(e=!0,delete t[i])})),this.hasRichTextPlugin()&&(e=!0,t.resetRichText=!0),e}removeCustomStyles(t){if(!(t=t||this.activeNodeList[0]))return;this._handleRemoveCustomStyles(t.getData())&&this.reRenderNodeCheckChange(t)}removeAllNodeCustomStyles(t){t=Ss(t);let e=!1;if(t.length>0)t.forEach((t=>{this._handleRemoveCustomStyles(t.getData())&&(e=!0)}));else{if(!this.renderTree)return;hs(this.renderTree,null,(t=>{this._handleRemoveCustomStyles(t.data)&&(e=!0);const i=Us(t.data);i.length>0&&i.forEach((t=>{this._handleRemoveCustomStyles(t)&&(e=!0)}))}))}e&&this.mindMap.reRender()}copy(){this.beingCopyData=this.copyNode(),this.beingCopyData&&(this.mindMap.opt.disabledClipboard||Fs(Ps(this.beingCopyData)))}cut(){this.mindMap.execCommand("CUT_NODE",(t=>{this.beingCopyData=t,this.mindMap.opt.disabledClipboard||Fs(Ps(t))}))}handlePaste(t){const{disabledClipboard:e}=this.mindMap.opt;if(e)return;const i=t.clipboardData||t.originalEvent.clipboardData,n=i.items;Array.from(n).forEach((t=>{t.type.indexOf("image")>-1&&t.getAsFile(),t.type.indexOf("text")>-1&&i.getData("text")})),this.paste()}paste(){return c(this,null,(function*(){const{errorHandler:t,handleIsSplitByWrapOnPasteCreateNewNode:e,handleNodePasteImg:i,disabledClipboard:n,onlyPasteTextWhenHasImgAndText:s}=this.mindMap.opt;if(!n&&Is())try{const n=yield c(exports,null,(function*(){let t=null,e=null;if(Is()){const i=yield navigator.clipboard.read();if(i&&i.length>0)for(const n of i)for(const i of n.types)if(/^image\//.test(i))e=yield n.getType(i);else if("text/plain"===i){const e=yield n.getType(i);t=yield e.text()}}return{text:t,img:e}}));let o=n.text||"",a=n.img||null;if(o){let i=null,n=!0;if(this.mindMap.opt.customHandleClipboardText)try{const t=yield this.mindMap.opt.customHandleClipboardText(o);if(!ws(t)){n=!1;const e=Bs(t);e.isSmm?i=e.data:o=e.data}}catch(r){t($t,r)}if(n){const t=Bs(o);t.isSmm?i=t.data:o=t.data}if(i)this.mindMap.execCommand("INSERT_MULTI_CHILD_NODE",[],Array.isArray(i)?i:[i]);else{this.hasRichTextPlugin()&&(o=Rs(o));const t=o.split(new RegExp("\r?\n|(?<!\n)\r","g")).filter((t=>!!t));t.length>1&&e?e().then((()=>{this.mindMap.execCommand("INSERT_MULTI_CHILD_NODE",[],t.map((t=>({data:{text:t},children:[]}))))})).catch((()=>{this.mindMap.execCommand("INSERT_CHILD_NODE",!1,[],{text:o})})):this.mindMap.execCommand("INSERT_CHILD_NODE",!1,[],{text:o})}}if(a&&(!o||!s))try{let t=null;t=i&&"function"==typeof i?yield i(a):yield xs(a),this.activeNodeList.length>0&&this.activeNodeList.forEach((e=>{this.mindMap.execCommand("SET_NODE_IMAGE",e,{url:t.url,title:"",width:t.size.width,height:t.size.height})}))}catch(r){t(Gt,r)}}catch(r){t(Ht,r)}else this.beingCopyData&&this.mindMap.execCommand("PASTE_NODE",this.beingCopyData)}))}insertBefore(t,e){this.insertTo(t,e,"before")}insertAfter(t,e){this.insertTo(t,e,"after")}insertTo(t,e,i="before"){let n=Ss(t);n=n.filter((t=>!t.isRoot)),"after"===i&&n.reverse(),n.forEach((t=>{let n=t.parent,s=n.children,r=Os(t,s);if(-1===r)return;s.splice(r,1),n.nodeData.children.splice(r,1);let o=e.parent,a=o.children,h=Os(e,a);-1!==h&&("after"===i&&h++,a.splice(h,0,t),o.nodeData.children.splice(h,0,t.nodeData))})),this.mindMap.render()}removeNode(t=[]){if(t=Ss(t),this.activeNodeList.length<=0&&t.length<=0)return;let e=null,i=t.length>0,n=i?t:this.activeNodeList,s=n.find((t=>t.isRoot));if(s)this.clearActiveNodeList(),s.children=[],s.nodeData.children=[];else{e=this.getNextActiveNode(n);for(let t=0;t<n.length;t++){const e=n[t],s=this.textEdit.getCurrentEditNode();s&&s.getData("uid")===e.getData("uid")&&this.textEdit.hideEditTextBox(),i&&n.splice(t,1),e.isGeneralization?(this.deleteNodeGeneralization(e),this.removeNodeFromActiveList(e),t--):(this.removeNodeFromActiveList(e),ks(e),t--)}}this.activeNodeList=[],e&&this.addNodeToActiveList(e),this.emitNodeActiveEvent(),this.mindMap.render()}deleteNodeGeneralization(t){const e=t.generalizationBelongNode,i=e.getGeneralizationNodeIndex(t);let n=e.getData("generalization");Array.isArray(n)?n.splice(i,1):n=null,this.mindMap.execCommand("SET_NODE_DATA",e,{generalization:n}),this.closeHighlightNode()}removeCurrentNode(t=[]){if(t=Ss(t),this.activeNodeList.length<=0&&t.length<=0)return;let e=t.length>0?t:this.activeNodeList;e=e.filter((t=>!t.isRoot));let i=this.getNextActiveNode(e);for(let n=0;n<e.length;n++){let t=e[n];if(t.isGeneralization)this.deleteNodeGeneralization(t);else{const e=t.parent,i=Ds(t);e.nodeData.children.splice(i,1,...t.nodeData.children||[])}}this.activeNodeList=[],i&&this.addNodeToActiveList(i),this.emitNodeActiveEvent(),this.mindMap.render()}getNextActiveNode(t){if(1!==t.length)return null;if(-1===this.findActiveNodeIndex(t[0]))return null;let e=null;if(1===this.activeNodeList.length&&!this.activeNodeList[0].isGeneralization&&this.mindMap.opt.deleteNodeActive){const t=this.activeNodeList[0],i=t.parent.children,n=Os(t,i);e=n<i.length-1?i[n+1]:n>0?i[n-1]:t.parent}return e}copyNode(){if(this.activeNodeList.length<=0)return null;let t=Cs(this.activeNodeList);return t=Ws(t),t.map((t=>cs({},t,!0)))}cutNode(t){if(this.activeNodeList.length<=0)return;let e=Cs(this.activeNodeList).filter((t=>!t.isRoot));e=Ws(e);const i=e.map((t=>cs({},t,!0)));e.forEach((t=>{ks(t)})),this.clearActiveNodeList(),this.mindMap.render(),t&&"function"==typeof t&&t(i)}moveNodeTo(t,e){let i=Ss(t);i=i.filter((t=>!t.isRoot)),i.forEach((t=>{this.removeNodeFromActiveList(t),ks(t),e.setData({expand:!0}),e.nodeData.children.push(t.nodeData)})),this.emitNodeActiveEvent(),this.mindMap.render()}pasteNode(t){t=Ss(t),this.mindMap.execCommand("INSERT_MULTI_CHILD_NODE",[],t)}setNodeStyle(t,e,i){const n={[e]:i};this.setNodeDataRender(t,n),as.includes(e)&&(t.parent||t).renderLine(!0)}setNodeStyles(t,e){const i=h({},e);this.setNodeDataRender(t,i);let n=Object.keys(e),s=!1;n.forEach((t=>{as.includes(t)&&(s=!0)})),s&&(t.parent||t).renderLine(!0)}setNodeActive(t,e){this.mindMap.execCommand("SET_NODE_DATA",t,{isActive:e}),t.updateNodeByActive(e)}setNodeExpand(t,e){this.mindMap.execCommand("SET_NODE_DATA",t,{expand:e}),this.mindMap.render()}expandAllNode(t=""){if(!this.renderTree)return;const e=(i,n)=>{n||i.data.uid!==t||(n=!0),n&&!i.data.expand&&(i.data.expand=!0),i.children&&i.children.length>0&&i.children.forEach((t=>{e(t,n)}))};e(this.renderTree,!t),this.mindMap.render()}unexpandAllNode(t=!0,e=""){if(!this.renderTree)return;const i=(t,n,s)=>{s||t.data.uid!==e||(s=!0),s&&!n&&t.children&&t.children.length>0&&(t.data.expand=!1),t.children&&t.children.length>0&&t.children.forEach((t=>{i(t,!1,s)}))};i(this.renderTree,!0,!e),this.mindMap.render((()=>{t&&this.setRootNodeCenter()}))}expandToLevel(t){this.renderTree&&(hs(this.renderTree,null,((e,i,n,s)=>{s<t?e.data.expand=!0:!n&&e.children&&e.children.length>0&&(e.data.expand=!1)}),null,!0,0,0),this.mindMap.render())}toggleActiveExpand(){this.activeNodeList.forEach((t=>{t.nodeData.children.length<=0||t.isRoot||this.toggleNodeExpand(t)}))}toggleNodeExpand(t){this.mindMap.execCommand("SET_NODE_EXPAND",t,!t.getData("expand"))}setNodeText(t,e,i,n){i=void 0===i?t.getData("richText"):i,this.setNodeDataRender(t,{text:e,richText:i,resetRichText:n})}setNodeImage(t,e){const{url:i,title:n,width:s,height:r,custom:o=!1}=e||{url:"",title:"",width:0,height:0,custom:!1};this.setNodeDataRender(t,{image:i,imageTitle:n||"",imageSize:{width:s,height:r,custom:o}})}setNodeIcon(t,e){this.setNodeDataRender(t,{icon:e})}setNodeHyperlink(t,e,i=""){this.setNodeDataRender(t,{hyperlink:e,hyperlinkTitle:i})}setNodeNote(t,e){this.setNodeDataRender(t,{note:e})}setNodeAttachment(t,e,i=""){this.setNodeDataRender(t,{attachmentUrl:e,attachmentName:i})}setNodeTag(t,e){this.setNodeDataRender(t,{tag:e})}insertFormula(t,e=[]){if(!this.hasRichTextPlugin()||!this.mindMap.formula)return;((e=Ss(e)).length>0?e:this.activeNodeList).forEach((e=>{this.mindMap.formula.insertFormulaToNode(e,t)}))}addGeneralization(t,e=!0){if(this.activeNodeList.length<=0)return;const i=(t=>{const e={},i={};t.forEach((t=>{const n=t.parent;if(n){const s=n.uid;i[s]=n;const r=t.getIndexInBrothers(),o={node:t,index:r};e[s]?e[s].find((t=>t.index===o.index))||e[s].push(o):e[s]=[o]}}));const n=[];return Object.keys(e).forEach((t=>{if(e[t].length>1){const s=e[t].map((t=>t.index)).sort(((t,e)=>t-e));n.push({node:i[t],range:[s[0],s[s.length-1]]})}else n.push({node:e[t][0].node})})),n})(this.activeNodeList.filter((t=>!t.isRoot&&!t.isGeneralization&&!t.checkHasSelfGeneralization())));if(i.length<=0)return;const n=this.hasRichTextPlugin(),{focusNewNode:s,inserting:r}=this.getNewNodeBehavior(e,i.length>1);let o=!1;const a=t&&t.richText;i.forEach((e=>{const i=d(h({inserting:r},t||{text:this.mindMap.opt.defaultGeneralizationText}),{range:e.range||null,uid:ys(),richText:n,isActive:s});n&&!a&&(i.resetRichText=n);let l=e.node.getData("generalization");if(l=l?Array.isArray(l)?l:[l]:[],e.range){if(!!l.find((t=>t.range&&t.range[0]===e.range[0]&&t.range[1]===e.range[1])))return;l.push(i)}else l.push(i);o=!0,this.mindMap.execCommand("SET_NODE_DATA",e.node,{generalization:l}),e.node.setData({expand:!0})})),o&&(s&&this.clearActiveNodeList(),this.mindMap.render((()=>{this.mindMap.render()})))}removeGeneralization(){this.activeNodeList.length<=0||(this.activeNodeList.forEach((t=>{t.checkHasGeneralization()&&this.mindMap.execCommand("SET_NODE_DATA",t,{generalization:null})})),this.mindMap.render(),this.closeHighlightNode())}setNodeCustomPosition(t,e=void 0,i=void 0){[t].forEach((t=>{this.mindMap.execCommand("SET_NODE_DATA",t,{customLeft:e,customTop:i})}))}resetLayout(){hs(this.root,null,(t=>{t.customLeft=void 0,t.customTop=void 0,this.mindMap.execCommand("SET_NODE_DATA",t,{customLeft:void 0,customTop:void 0}),this.mindMap.render()}),null,!0,0,0)}setNodeShape(t,e){if(!e||!Ks.includes(e))return;[t].forEach((t=>{this.setNodeStyle(t,"shape",e)}))}goTargetNode(t,e=()=>{}){let i="string"==typeof t?t:t.getData("uid");i&&this.expandToNodeUid(i,(()=>{let t=this.findNodeByUid(i);t&&(t.active(),this.moveNodeToCenter(t),e(t))}))}setNodeData(t,e){Object.keys(e).forEach((i=>{t.nodeData.data[i]=e[i]}))}setNodeDataRender(t,e,i=!1){this.mindMap.execCommand("SET_NODE_DATA",t,e),(t=>{const e=[...as],i=Object.keys(t);for(let n=0;n<i.length;n++)if(!e.includes(i[n]))return!1;return!0})(e)?this.mindMap.emit("node_tree_render_end"):this.reRenderNodeCheckChange(t,i)}reRenderNodeCheckChange(t,e){t.reRender()?e||this.mindMap.render():this.mindMap.emit("node_tree_render_end")}moveNodeToCenter(t,e){let{resetScaleOnMoveNodeToCenter:i}=this.mindMap.opt;void 0!==e&&(i=e);let{transform:n,state:s}=this.mindMap.view.getTransformData(),{left:r,top:o,width:a,height:h}=t;i||(r*=n.scaleX,o*=n.scaleY,a*=n.scaleX,h*=n.scaleY);let d=this.mindMap.width/2,l=this.mindMap.height/2,c=r+a/2,u=o+h/2,p=d-s.x-c,m=l-s.y-u;this.mindMap.view.translateX(p),this.mindMap.view.translateY(m),i&&this.mindMap.view.setScale(1)}setRootNodeCenter(){this.moveNodeToCenter(this.root)}expandToNodeUid(t,e=()=>{}){if(!this.renderTree)return void e();let i=[],n=!1;const s={};((t,e)=>{let i=[t],n=!1;for("stop"===e(t,null)&&(n=!0);i.length&&!n;){let t=i.shift();t.children&&t.children.length&&t.children.forEach((s=>{n||(i.push(s),"stop"===e(s,t)&&(n=!0))}))}})(this.renderTree,((e,r)=>{if(e.data.uid===t)return i=r?[...s[r.data.uid],r]:[],"stop";if(Us(e.data).forEach((o=>{o.uid===t&&(i=r?[...s[r.data.uid],r,e]:[],n=!0)})),n)return"stop";s[e.data.uid]=r?[...s[r.data.uid],r]:[]}));let r=!1;if(i.forEach((t=>{t.data.expand||(r=!0,t.data.expand=!0)})),n){const t=i[i.length-1];t&&hs(t,null,(t=>{t.data.expand||(r=!0,t.data.expand=!0)}))}r?this.mindMap.render(e):e()}findNodeByUid(t){if(!this.root)return;let e=null;return hs(this.root,null,(i=>{if(i.getData("uid")===t)return e=i,!0;let n=!1;return(i._generalizationList||[]).forEach((i=>{i.generalizationNode.getData("uid")===t&&(e=i.generalizationNode,n=!0)})),!!n||void 0})),e}highlightNode(t,e,i){if(this.isRendering)return;i=h({stroke:"rgb(94, 200, 248)",fill:"transparent"},i||{}),this.highlightBoxNode?this.highlightBoxNodeStyle&&(this.highlightBoxNodeStyle.stroke===i.stroke&&this.highlightBoxNodeStyle.fill===i.fill||this.highlightBoxNode.stroke({color:i.stroke||"transparent"}).fill({color:i.fill||"transparent"})):this.highlightBoxNode=(new Ln).stroke({color:i.stroke||"transparent"}).fill({color:i.fill||"transparent"}),this.highlightBoxNodeStyle=h({},i);let n=1/0,s=1/0,r=-1/0,o=-1/0;if(e){t.children.slice(e[0],e[1]+1).forEach((t=>{t.left<n&&(n=t.left),t.top<s&&(s=t.top);const e=t.left+t.width,i=t.top+t.height;e>r&&(r=e),i>o&&(o=i)}))}else n=t.left,s=t.top,r=t.left+t.width,o=t.top+t.height;this.highlightBoxNode.plot([[n,s],[r,s],[r,o],[n,o]]),this.mindMap.otherDraw.add(this.highlightBoxNode)}closeHighlightNode(){this.highlightBoxNode&&this.highlightBoxNode.remove()}hasRichTextPlugin(){return!!this.mindMap.richText}}const _r={default:rs},Er={Backspace:8,Tab:9,Enter:13,Shift:16,Control:17,Alt:18,CapsLock:20,Esc:27,Spacebar:32,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Left:37,Up:38,Right:39,Down:40,Del:46,NumLock:144,Cmd:91,CmdFF:224,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"`":192,"=":187,"-":189,"/":191,".":190};for(let Rr=0;Rr<=9;Rr++)Er[Rr]=Rr+48;"abcdefghijklmnopqrstuvwxyz".split("").forEach(((t,e)=>{Er[t]=e+65}));const Mr=Er;class br{constructor(t){this.opt=t,this.mindMap=t.mindMap,this.shortcutMap={},this.shortcutMapCache={},this.isPause=!1,this.isInSvg=!1,this.bindEvent()}extendKeyMap(t,e){Mr[t]=e}removeKeyMap(t){void 0!==Mr[t]&&delete Mr[t]}pause(){this.isPause=!0}recovery(){this.isPause=!1}save(){Object.keys(this.shortcutMapCache).length>0||(this.shortcutMapCache=this.shortcutMap,this.shortcutMap={})}restore(){Object.keys(this.shortcutMapCache).length<=0||(this.shortcutMap=this.shortcutMapCache,this.shortcutMapCache={})}bindEvent(){this.onKeydown=this.onKeydown.bind(this),this.mindMap.on("svg_mouseenter",(()=>{this.isInSvg=!0})),this.mindMap.on("svg_mouseleave",(()=>{this.mindMap.renderer.textEdit.isShowTextEdit()||this.mindMap.associativeLine&&this.mindMap.associativeLine.showTextEdit||(this.isInSvg=!1)})),window.addEventListener("keydown",this.onKeydown),this.mindMap.on("beforeDestroy",(()=>{this.unBindEvent()}))}unBindEvent(){window.removeEventListener("keydown",this.onKeydown)}defaultEnableCheck(t){const e=t.target;return e===document.body||e.classList.contains(Ft.EDIT_NODE_CLASS.SMM_NODE_EDIT_WRAP)||e.classList.contains(Ft.EDIT_NODE_CLASS.RICH_TEXT_EDIT_WRAP)||e.classList.contains(Ft.EDIT_NODE_CLASS.ASSOCIATIVE_LINE_TEXT_EDIT_WRAP)}onKeydown(t){const{enableShortcutOnlyWhenMouseInSvg:e,beforeShortcutRun:i,customCheckEnableShortcut:n}=this.mindMap.opt;("function"==typeof n?n:this.defaultEnableCheck)(t)&&(this.isPause||e&&!this.isInSvg||Object.keys(this.shortcutMap).forEach((e=>{if(this.checkKey(t,e)){if(this.checkKey(t,"Control+v")||(t.stopPropagation(),t.preventDefault()),"function"==typeof i){if(i(e,[...this.mindMap.renderer.activeNodeList]))return}this.shortcutMap[e].forEach((t=>{t()}))}})))}checkKey(t,e){let i=this.getOriginEventCodeArr(t),n=this.getKeyCodeArr(e);if(i.length!==n.length)return!1;for(let s=0;s<i.length;s++){let t=n.findIndex((t=>t===i[s]));if(-1===t)return!1;n.splice(t,1)}return!0}getOriginEventCodeArr(t){let e=[];return(t.ctrlKey||t.metaKey)&&e.push(Mr.Control),t.altKey&&e.push(Mr.Alt),t.shiftKey&&e.push(Mr.Shift),e.includes(t.keyCode)||e.push(t.keyCode),e}hasCombinationKey(t){return t.ctrlKey||t.metaKey||t.altKey||t.shiftKey}getKeyCodeArr(t){let e=t.split(/\s*\+\s*/),i=[];return e.forEach((t=>{i.push(Mr[t])})),i}addShortcut(t,e){t.split(/\s*\|\s*/).forEach((t=>{this.shortcutMap[t]?this.shortcutMap[t].push(e):this.shortcutMap[t]=[e]}))}removeShortcut(t,e){t.split(/\s*\|\s*/).forEach((t=>{if(this.shortcutMap[t])if(e){let i=this.shortcutMap[t].findIndex((t=>t===e));-1!==i&&this.shortcutMap[t].splice(i,1)}else this.shortcutMap[t]=[],delete this.shortcutMap[t]}))}getShortcutFn(t){let e=[];return t.split(/\s*\|\s*/).forEach((t=>{e=this.shortcutMap[t]||[]})),e}}const Nr="0.13.0";class Cr{constructor(t={}){this.opt=t,this.mindMap=t.mindMap,this.commands={},this.history=[],this.activeHistoryIndex=0,this.registerShortcutKeys(),this.originAddHistory=this.addHistory.bind(this),this.addHistory=us(this.addHistory,this.mindMap.opt.addHistoryTime,this),this.isPause=!1}pause(){this.isPause=!0}recovery(){this.isPause=!1}clearHistory(){this.history=[],this.activeHistoryIndex=0,this.mindMap.emit("back_forward",0,0)}registerShortcutKeys(){this.mindMap.keyCommand.addShortcut("Control+z",(()=>{this.mindMap.execCommand("BACK")})),this.mindMap.keyCommand.addShortcut("Control+y",(()=>{this.mindMap.execCommand("FORWARD")}))}exec(t,...e){if(this.commands[t]){if(this.commands[t].forEach((t=>{t(...e)})),this.mindMap.emit("afterExecCommand",t,...e),["BACK","FORWARD","SET_NODE_ACTIVE","CLEAR_ACTIVE_NODE"].includes(t))return;this.addHistory()}}add(t,e){this.commands[t]?this.commands[t].push(e):this.commands[t]=[e]}remove(t,e){if(this.commands[t])if(e){let i=this.commands[t].find((t=>t===e));-1!==i&&this.commands[t].splice(i,1)}else this.commands[t]=[],delete this.commands[t]}addHistory(){if(this.mindMap.opt.readonly||this.isPause)return;const t=this.history.length>0?this.history[this.activeHistoryIndex]:null,e=this.getCopyData();t!==e&&(t&&JSON.stringify(t)===JSON.stringify(e)||(this.emitDataUpdatesEvent(t,e),this.history=this.history.slice(0,this.activeHistoryIndex+1),this.history.push(ds(e)),this.history.length>this.mindMap.opt.maxHistoryCount&&this.history.shift(),this.activeHistoryIndex=this.history.length-1,this.mindMap.emit("data_change",e),this.mindMap.emit("back_forward",this.activeHistoryIndex,this.history.length)))}back(t=1){if(!this.mindMap.opt.readonly&&this.activeHistoryIndex-t>=0){const e=this.history[this.activeHistoryIndex];this.activeHistoryIndex-=t,this.mindMap.emit("back_forward",this.activeHistoryIndex,this.history.length);const i=ds(this.history[this.activeHistoryIndex]);return this.emitDataUpdatesEvent(e,i),i}}forward(t=1){if(this.mindMap.opt.readonly)return;let e=this.history.length;if(this.activeHistoryIndex+t<=e-1){const e=this.history[this.activeHistoryIndex];this.activeHistoryIndex+=t,this.mindMap.emit("back_forward",this.activeHistoryIndex,this.history.length);const i=ds(this.history[this.activeHistoryIndex]);return this.emitDataUpdatesEvent(e,i),i}}getCopyData(){if(!this.mindMap.renderer.renderTree)return null;const t=ls({},this.mindMap.renderer.renderTree,!0);return t.smmVersion=Nr,t}removeDataUid(t){t=ds(t);let e=t=>{delete t.data.uid,t.children&&t.children.length>0&&t.children.forEach((t=>{e(t)}))};return e(t),t}emitDataUpdatesEvent(t,e){try{const i="data_change_detail";if(this.mindMap.event.listenerCount(i)>0&&t&&e){const n=ds($s(t)),s=ds($s(e)),r=[],o=(t,e)=>(t.children&&t.children.length>0&&t.children.forEach(((i,n)=>{t.children[n]="string"==typeof i?e[i]:e[i.data.uid],o(t.children[n],e)})),t);Object.keys(s).forEach((t=>{n[t]?zs(n[t],s[t])||r.push({action:"update",oldData:o(n[t],n),data:o(s[t],s)}):r.push({action:"create",data:o(s[t],s)})})),Object.keys(n).forEach((t=>{s[t]||r.push({action:"delete",data:o(n[t],n)})})),this.mindMap.emit(i,r)}}catch(i){this.mindMap.opt.errorHandler(Wt,i)}}}class Tr{constructor(){this.has={},this.queue=[],this.nextTick=function(t,e){let i=!1,n=null,s=()=>{i=!1,e?t.call(e):t()};if("undefined"!=typeof MutationObserver){let t=1,e=new MutationObserver(s),i=document.createTextNode(t);e.observe(i,{characterData:!0}),n=function(){t=(t+1)%2,i.data=t}}else n=setTimeout;return function(){i||(i=!0,n(s,0))}}(this.flush,this)}push(t,e){this.has[t]?this.replaceTask(t,e):(this.has[t]=!0,this.queue.push({name:t,fn:e}),this.nextTick())}replaceTask(t,e){const i=this.queue.findIndex((e=>e.name===t));-1!==i&&(this.queue[i]={name:t,fn:e})}flush(){let t=this.queue.slice(0);this.queue=[],t.forEach((({name:t,fn:e})=>{this.has[t]=!1,e()}))}}const Lr={el:null,data:null,viewData:null,readonly:!1,layout:Ft.LAYOUT.LOGICAL_STRUCTURE,fishboneDeg:45,theme:"default",themeConfig:{},scaleRatio:.2,translateRatio:1,minZoomRatio:20,maxZoomRatio:400,customCheckIsTouchPad:null,mouseScaleCenterUseMousePosition:!0,maxTag:5,tagPosition:Ft.TAG_POSITION.RIGHT,expandBtnSize:20,imgTextMargin:5,textContentMargin:2,customNoteContentShow:null,textAutoWrapWidth:500,customHandleMousewheel:null,mousewheelAction:Ft.MOUSE_WHEEL_ACTION.MOVE,mousewheelMoveStep:100,mousewheelZoomActionReverse:!0,defaultInsertSecondLevelNodeText:"二级节点",defaultInsertBelowSecondLevelNodeText:"分支主题",expandBtnStyle:{color:"#808080",fill:"#fff",fontSize:13,strokeColor:"#333333"},expandBtnIcon:{open:"",close:""},expandBtnNumHandler:null,isShowExpandNum:!0,enableShortcutOnlyWhenMouseInSvg:!0,customCheckEnableShortcut:null,initRootNodePosition:null,nodeTextEditZIndex:3e3,nodeNoteTooltipZIndex:3e3,isEndNodeTextEditOnClickOuter:!0,maxHistoryCount:500,alwaysShowExpandBtn:!1,notShowExpandBtn:!1,iconList:[],maxNodeCacheCount:1e3,fitPadding:50,enableCtrlKeyNodeSelection:!0,useLeftKeySelectionRightKeyDrag:!1,beforeTextEdit:null,isUseCustomNodeContent:!1,customCreateNodeContent:null,customInnerElsAppendTo:null,enableAutoEnterTextEditWhenKeydown:!1,autoEmptyTextWhenKeydownEnterEdit:!1,customHandleClipboardText:null,disableMouseWheelZoom:!1,errorHandler:(t,e)=>{console.error(t,e)},enableDblclickBackToRootNode:!1,hoverRectColor:"rgb(94, 200, 248)",hoverRectPadding:2,selectTextOnEnterEditText:!1,deleteNodeActive:!0,fit:!1,tagsColorMap:{},cooperateStyle:{avatarSize:22,fontSize:12},onlyOneEnableActiveNodeOnCooperate:!1,defaultGeneralizationText:"概要",handleIsSplitByWrapOnPasteCreateNewNode:null,addHistoryTime:100,isDisableDrag:!1,createNewNodeBehavior:Ft.CREATE_NEW_NODE_BEHAVIOR.DEFAULT,defaultNodeImage:"",isLimitMindMapInCanvas:!1,handleNodePasteImg:null,customCreateNodePath:null,customCreateNodePolygon:null,customTransformNodeLinePath:null,beforeShortcutRun:null,resetScaleOnMoveNodeToCenter:!1,createNodePrefixContent:null,createNodePostfixContent:null,disabledClipboard:!1,customHyperlinkJump:null,openPerformance:!1,performanceConfig:{time:250,padding:100,removeNodeWhenOutCanvas:!0},emptyTextMeasureHeightText:"abc123我和你",openRealtimeRenderOnNodeTextEdit:!1,mousedownEventPreventDefault:!1,onlyPasteTextWhenHasImgAndText:!0,enableDragModifyNodeWidth:!0,minNodeTextModifyWidth:20,maxNodeTextModifyWidth:-1,customHandleLine:null,addHistoryOnInit:!0,noteIcon:{icon:"",style:{}},hyperlinkIcon:{icon:"",style:{}},attachmentIcon:{icon:"",style:{}},selectTranslateStep:3,selectTranslateLimit:20,enableFreeDrag:!1,autoMoveWhenMouseInEdgeOnDrag:!0,dragMultiNodeRectConfig:{width:40,height:20,fill:"rgb(94, 200, 248)"},dragPlaceholderRectFill:"rgb(94, 200, 248)",dragPlaceholderLineConfig:{color:"rgb(94, 200, 248)",width:2},dragOpacityConfig:{cloneNodeOpacity:.5,beingDragNodeOpacity:.3},handleDragCloneNode:null,beforeDragEnd:null,beforeDragStart:null,watermarkConfig:{onlyExport:!1,text:"",lineSpacing:100,textSpacing:100,angle:30,textStyle:{color:"#999",opacity:.5,fontSize:14},belowNode:!1},exportPaddingX:10,exportPaddingY:10,resetCss:"\n * {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n }\n ",minExportImgCanvasScale:2,addContentToHeader:null,addContentToFooter:null,handleBeingExportSvg:null,maxCanvasSize:16384,defaultAssociativeLineText:"关联",associativeLineIsAlwaysAboveNode:!0,associativeLineInitPointsPosition:{from:"",to:""},enableAdjustAssociativeLinePoints:!0,beforeAssociativeLineConnection:null,disableTouchZoom:!1,minTouchZoomScale:20,maxTouchZoomScale:-1,isLimitMindMapInCanvasWhenHasScrollbar:!0,isOnlySearchCurrentRenderNodes:!1,beforeCooperateUpdate:null,rainbowLinesConfig:{open:!1,colorsList:[]},demonstrateConfig:null,enableEditFormulaInRichTextEdit:!0,katexFontPath:"https://unpkg.com/katex@0.16.11/dist/",getKatexOutputType:null,transformRichTextOnEnterEdit:null,beforeHideRichTextEdit:null,outerFramePaddingX:10,outerFramePaddingY:10,onlyPainterNodeCustomStyles:!1,beforeDeleteNodeImg:null,imgResizeBtnSize:25,minImgResizeWidth:50,minImgResizeHeight:50,maxImgResizeWidthInheritTheme:!1,maxImgResizeWidth:1/0,maxImgResizeHeight:1/0};class Sr{constructor(t={}){if(Sr.instanceCount++,this.opt=this.handleOpt(ne(Lr,t)),this.opt.data=this.handleData(this.opt.data),this.el=this.opt.el,!this.el)throw new Error("缺少容器元素el");this.getElRectInfo(),this.initWidth=this.width,this.initHeight=this.height,this.cssEl=null,this.cssTextMap={},this.nodeInnerPrefixList=[],this.initContainer(),this.initTheme(),this.initCache(),this.event=new qt({mindMap:this}),this.keyCommand=new br({mindMap:this}),this.command=new Cr({mindMap:this}),this.renderer=new wr({mindMap:this}),this.view=new Xt({mindMap:this}),this.batchExecution=new Tr,Sr.pluginList.forEach((t=>{this.initPlugin(t)})),this.addCss(),this.render(this.opt.fit?()=>this.view.fit():()=>{}),this.opt.addHistoryOnInit&&this.opt.data&&this.command.addHistory()}handleOpt(t){return Pt.includes(t.layout)||(t.layout=Ft.LAYOUT.LOGICAL_STRUCTURE),t.theme=t.theme&&_r[t.theme]?t.theme:"default",t}handleData(t){return ws(t)||Object.keys(t).length<=0?null:((t=ds(t||{})).data&&!t.data.expand&&(t.data.expand=!0),t)}initContainer(){const{associativeLineIsAlwaysAboveNode:t}=this.opt;this.el.classList.add("smm-mind-map-container");const e=()=>{this.associativeLineDraw=this.draw.group(),this.associativeLineDraw.addClass("smm-associative-line-container")};this.svg=ss().addTo(this.el).size(this.width,this.height),this.draw=this.svg.group(),this.draw.addClass("smm-container"),this.lineDraw=this.draw.group(),this.lineDraw.addClass("smm-line-container"),t||e(),this.nodeDraw=this.draw.group(),this.nodeDraw.addClass("smm-node-container"),t&&e(),this.otherDraw=this.draw.group(),this.otherDraw.addClass("smm-other-container")}clearDraw(){this.lineDraw.clear(),this.associativeLineDraw.clear(),this.nodeDraw.clear(),this.otherDraw.clear()}appendCss(t,e){this.cssTextMap[t]=e,this.removeCss(),this.addCss()}removeAppendCss(t){this.cssTextMap[t]&&(delete this.cssTextMap[t],this.removeCss(),this.addCss())}joinCss(){return"\n /* 鼠标hover和激活时渲染的矩形 */\n .smm-hover-node{\n display: none;\n opacity: 0.6;\n stroke-width: 1;\n }\n\n .smm-node:not(.smm-node-dragging):hover .smm-hover-node{\n display: block;\n }\n\n .smm-node.active .smm-hover-node, .smm-node-highlight .smm-hover-node{\n display: block;\n opacity: 1;\n stroke-width: 2;\n }\n\n .smm-text-node-wrap, .smm-expand-btn-text {\n user-select: none;\n }\n"+Object.keys(this.cssTextMap).map((t=>this.cssTextMap[t])).join("\n")}addCss(){this.cssEl=document.createElement("style"),this.cssEl.type="text/css",this.cssEl.innerHTML=this.joinCss(),document.head.appendChild(this.cssEl)}removeCss(){this.cssEl&&document.head.removeChild(this.cssEl)}render(t,e=""){this.batchExecution.push("render",(()=>{this.initTheme(),this.renderer.render(t,e)}))}reRender(t,e=""){this.renderer.reRender=!0,this.renderer.clearCache(),this.clearDraw(),this.render(t,e)}getElRectInfo(){if(this.elRect=this.el.getBoundingClientRect(),this.width=this.elRect.width,this.height=this.elRect.height,this.width<=0||this.height<=0)throw new Error("容器元素el的宽高不能为0")}resize(){const t=this.width,e=this.height;this.getElRectInfo(),this.svg.size(this.width,this.height),t===this.width&&e===this.height||this.demonstrate&&this.demonstrate.isInDemonstrate||this.render(),this.emit("resize")}on(t,e){this.event.on(t,e)}emit(t,...e){this.event.emit(t,...e)}off(t,e){this.event.off(t,e)}initCache(){this.commonCaches={measureCustomNodeContentSizeEl:null,measureRichtextNodeTextSizeEl:null}}initTheme(){this.themeConfig=Ys(_r[this.opt.theme]||_r.default,this.opt.themeConfig),Xs.setBackgroundStyle(this.el,this.themeConfig)}setTheme(t,e=!1){this.execCommand("CLEAR_ACTIVE_NODE"),this.opt.theme=t,e||this.render(null,Ft.CHANGE_THEME),this.emit("view_theme_change",t)}getTheme(){return this.opt.theme}setThemeConfig(t,e=!1){const i=((t,e)=>{const i={};return Object.keys(e).forEach((n=>{const s=t[n],r=e[n];if(vs(s)===vs(r)){if("Object"===vs(s)){if(JSON.stringify(s)!==JSON.stringify(r))return void(i[n]=r)}else if(s!==r)return void(i[n]=r)}else i[n]=r})),i})(this.themeConfig,t);if(this.opt.themeConfig=t,!e){const t=(t=>{let e=Object.keys(t);for(let i=0;i<e.length;i++)if(!os.find((t=>t===e[i])))return!1;return!0})(i);this.render(null,t?"":Ft.CHANGE_THEME)}}getCustomThemeConfig(){return this.opt.themeConfig}getThemeConfig(t){return void 0===t?this.themeConfig:this.themeConfig[t]}getConfig(t){return void 0===t?this.opt:this.opt[t]}updateConfig(t={}){this.emit("before_update_config",this.opt);const e=h({},this.opt);this.opt=this.handleOpt(ne.all([Lr,this.opt,t])),this.emit("after_update_config",this.opt,e)}getLayout(){return this.opt.layout}setLayout(t,e=!1){Pt.includes(t)||(t=Ft.LAYOUT.LOGICAL_STRUCTURE),this.opt.layout=t,this.view.reset(),this.renderer.setLayout(),e||this.render(null,Ft.CHANGE_LAYOUT),this.emit("layout_change",t)}execCommand(...t){this.command.exec(...t)}updateData(t){this.emit("before_update_data",t),this.renderer.setData(t),this.render(),this.command.addHistory(),this.emit("update_data",t)}setData(t){t=this.handleData(t),this.emit("before_set_data",t),this.opt.data=t,this.execCommand("CLEAR_ACTIVE_NODE"),this.command.clearHistory(),this.command.addHistory(),this.renderer.setData(t),this.reRender((()=>{}),Ft.SET_DATA),this.emit("set_data",t)}setFullData(t){t.root&&this.setData(t.root),t.layout&&this.setLayout(t.layout),t.theme&&(t.theme.template&&this.setTheme(t.theme.template),t.theme.config&&this.setThemeConfig(t.theme.config)),t.view&&this.view.setTransformData(t.view)}getData(t){let e=this.command.getCopyData(),i={};return i=t?{layout:this.getLayout(),root:e,theme:{template:this.getTheme(),config:this.getCustomThemeConfig()},view:this.view.getTransformData()}:e,ds(i)}export(...t){return c(this,null,(function*(){try{if(!this.doExport)throw new Error("请注册Export插件!");return yield this.doExport.export(...t)}catch(e){this.opt.errorHandler(jt,e)}}))}toPos(t,e){return{x:t-this.elRect.left,y:e-this.elRect.top}}setMode(t){if(![Ft.MODE.READONLY,Ft.MODE.EDIT].includes(t))return;const e=t===Ft.MODE.READONLY;e!==this.opt.readonly&&(e&&(this.renderer.textEdit.isShowTextEdit()&&(this.renderer.textEdit.hideEditTextBox(),this.command.originAddHistory()),this.execCommand("CLEAR_ACTIVE_NODE")),this.opt.readonly=e,!e&&this.command.history.length<=0&&this.command.originAddHistory(),this.emit("mode_change",t))}getSvgData({paddingX:t=0,paddingY:e=0,ignoreWatermark:i=!1,addContentToHeader:n,addContentToFooter:s,node:r}={}){const{watermarkConfig:o,openPerformance:a}=this.opt;a&&this.renderer.forceLoadNode(r);const{cssTextList:l,header:c,headerHeight:u,footer:p,footerHeight:m}=(({addContentToHeader:t,addContentToFooter:e})=>{const i=[];let n=null,s=0,r=null,o=0;const a=(t,e)=>{if("function"==typeof t){const n=t();if(!n)return;const{el:s,cssText:r,height:o}=n;s instanceof HTMLElement&&(js(s),e(Gs({el:s,height:o}),o)),r&&i.push(r)}};return a(t,((t,e)=>{n=t,s=e})),a(e,((t,e)=>{r=t,o=e})),{cssTextList:i,header:n,headerHeight:s,footer:r,footerHeight:o}})({addContentToHeader:n,addContentToFooter:s}),f=this.svg,g=this.draw,y=f.width(),x=f.height(),v=g.transform(),w=this.elRect;g.scale(1/v.scaleX,1/v.scaleY);const _=g.rbox();let E=null;r&&(E=((t,e=0,i=0,n=0,s=0,r=!1,o=!1)=>{let a=1/0,h=-1/0,d=1/0,l=-1/0;const c=(t,e)=>{if((!e||!r)&&t.group)try{const{x:e,y:i,width:n,height:s}=t.group.findOne(".smm-node-shape").rbox();e<a&&(a=e),e+n>h&&(h=e+n),i<d&&(d=i),i+s>l&&(l=i+s)}catch(i){}!o&&t._generalizationList.length>0&&t._generalizationList.forEach((t=>{c(t.generalizationNode)})),t.children&&t.children.forEach((t=>{c(t)}))};return c(t,!0),a=a-e+n,d=d-i+s,h=h-e+n,l=l-i+s,{left:a,top:d,width:h-a,height:l-d}})(r,_.x,_.y,t,e));_.width+=2*t,_.height+=2*e+0+u+m,g.translate(t,e),f.size(_.width,_.height),g.translate(-_.x+w.left,-_.y+w.top);let M=f.clone();const b=this.watermark&&this.watermark.hasWatermark();if(!i&&b){this.watermark.isInExport=!0;const{onlyExport:t}=o;_.width>y||_.height>x?(this.width=_.width,this.height=_.height,this.watermark.onResize(),M=f.clone(),this.width=y,this.height=x,this.watermark.onResize()):t&&(this.watermark.onResize(),M=f.clone()),t&&this.watermark.clear(),this.watermark.isInExport=!1}[this.joinCss(),...l].forEach((t=>{M.add(ss(`<style>${t}</style>`))})),c&&u>0&&(M.findOne(".smm-container").translate(0,u),c.width(_.width),c.y(e),M.add(c,0)),p&&m>0&&(p.width(_.width),p.y(_.height-e-m),M.add(p));const N=f.find("defs"),C=M.find("defs");return N.forEach(((t,e)=>{const i=C[e];if(!i)return;const n=t.children(),s=i.children();for(let r=0;r<n.length;r++){const t=n[r],e=s[r];t&&e&&e.attr("id",t.attr("id"))}})),f.size(y,x),g.transform(v),{svg:M,svgHTML:M.svg(),clipData:E,rect:d(h({},_),{ratio:_.width/_.height}),origWidth:y,origHeight:x,scaleX:v.scaleX,scaleY:v.scaleY}}addPlugin(t,e){-1===Sr.hasPlugin(t)&&Sr.usePlugin(t,e),this.initPlugin(t)}removePlugin(t){let e=Sr.hasPlugin(t);-1!==e&&(Sr.pluginList.splice(e,1),this[t.instanceName]&&(this[t.instanceName].beforePluginRemove&&this[t.instanceName].beforePluginRemove(),delete this[t.instanceName]))}initPlugin(t){this[t.instanceName]||(this[t.instanceName]=new t({mindMap:this,pluginOpt:t.pluginOpt}))}destroy(){this.emit("beforeDestroy"),this.renderer.textEdit.hideEditTextBox(),this.renderer.textEdit.removeTextEditEl(),[...Sr.pluginList].forEach((t=>{this[t.instanceName]&&this[t.instanceName].beforePluginDestroy&&this[t.instanceName].beforePluginDestroy(),this[t.instanceName]=null})),this.event.unbind(),this.svg.remove(),Xs.removeBackgroundStyle(this.el),this.el.classList.remove("smm-mind-map-container"),this.el.innerHTML="",this.el=null,this.removeCss(),Sr.instanceCount--}}Sr.pluginList=[],Sr.usePlugin=(t,e={})=>(-1!==Sr.hasPlugin(t)||(t.pluginOpt=e,Sr.pluginList.push(t)),Sr),Sr.hasPlugin=t=>Sr.pluginList.findIndex((e=>e===t)),Sr.instanceCount=0,Sr.defineTheme=(t,e={})=>{if(_r[t])return new Error("该主题名称已存在");_r[t]=Ys(rs,e)},Sr.removeTheme=t=>{_r[t]&&(_r[t]=null)};const Dr=(t,e)=>{const i=u.computed((()=>{let t=document.body;return u.unref(e)&&(t=u.unref(e)),t}));u.watch((()=>[u.unref(t),u.unref(i)]),(()=>{!function(){const e=u.unref(t),n=u.unref(i);e&&n&&n.appendChild(e)}()}),{immediate:!0}),u.onBeforeUnmount((()=>{const e=u.unref(t);e&&e.parentNode&&e.parentNode.removeChild(e)}))};const Or=zt(u.defineComponent({__name:"map-control",emits:{"update-mind-map-scale":()=>!0},setup(t,{emit:e}){const i=u.ref(!1),n=u.ref(0),s=u.ref(1),r=u.ref(),o=u.ref(),a=u.computed((()=>({left:(s.value-.1)/1.9*100+"%"}))),h=()=>{var t;n.value=null==(t=o.value)?void 0:t.offsetWidth,r.value=o.value.getBoundingClientRect()},d=t=>{r.value&&(s.value=Number(t.toFixed(1)),e("update-mind-map-scale",s.value))},l=t=>{if(!r.value)return;const e=(t.clientX-r.value.left)/r.value.width,i=Number(Math.min(2,Math.max(.1,.1+1.9*e)).toFixed(1));s.value!==i&&d(i)};return u.onMounted((()=>{h(),window.addEventListener("resize",h)})),u.onBeforeUnmount((()=>{window.removeEventListener("resize",h)})),{__sfc:!0,emit:e,isDragging:i,containerWidth:n,mindScale:s,containerRect:r,trackRef:o,thumbPosition:a,updateDimensions:h,updateScale:d,updateMindMapScale:l,decrementScale:()=>{if(s.value<=.1)return;const t=Math.max(.1,s.value-.1);d(t)},incrementScale:()=>{if(s.value>=2)return;const t=Math.min(2,s.value+.1);d(t)},handleScaleChange:t=>{h(),l(t)},startDrag:t=>{i.value=!0,l(t)},handleDrag:t=>{i.value&&l(t)},endDrag:()=>{i.value=!1}}}}),(function(){var t=this,e=t._self._c,i=t._self._setupProxy;return e("div",{staticClass:"plv-ai-outline-mind-map__control"},[e("div",{ref:"trackRef",staticClass:"track",on:{click:i.handleScaleChange,mousedown:i.startDrag,mousemove:i.handleDrag,mouseup:i.endDrag,mouseleave:i.endDrag}},[e("div",{staticClass:"track-line"}),e("div",{staticClass:"slider-thumb",class:{dragging:i.isDragging},style:i.thumbPosition})]),e("span",{staticClass:"symbol minus",on:{click:function(t){return t.stopPropagation(),i.decrementScale.apply(null,arguments)}}},[t._v("−")]),e("span",{staticClass:"symbol plus",on:{click:function(t){return t.stopPropagation(),i.incrementScale.apply(null,arguments)}}},[t._v("+")])])}),[]).exports;const Ar=zt(u.defineComponent({__name:"outline-mind-map",setup(t,{expose:e}){const i=u.ref(),n=u.computed((()=>{var t;return(null==(t=i.value)?void 0:t.outlineContent)||[]})),s=u.computed((()=>r(n.value)));function r(t){if(!t.length)return null;const e=e=>{if(!t.length)return[];const i=[];for(let t=0;t<e.length;t++)i.push({data:{text:e[t]}});return i};return{data:{text:t[0].title},children:t.map((t=>({data:{text:t.title},children:e(t.summary)})))}}let o=null;const a=u.ref();function h(){return c(this,null,(function*(){yield u.nextTick(),d(),s.value&&a.value&&(o=new Sr({el:a.value,data:s.value,enableFreeDrag:!1,readonly:!0,isLimitMindMapInCanvas:!0,initRootNodePosition:["center","center"],layout:"logicalStructure"}),o.setThemeConfig({backgroundColor:"#36373d",lineColor:"#EEEEEE",lineWidth:3,lineStyle:"straight",lineRadius:4,paddingX:15,paddingY:10,root:{shape:"rectangle",fillColor:"#36373d",color:"#EEEEEE",borderColor:"#EEEEEE",borderRadius:4,borderWidth:2,borderDasharray:"none"},second:{shape:"rectangle",lineColor:"transparent",fillColor:"transparent",color:"#EEEEEE",borderColor:"#EEEEEE",borderRadius:5,borderWidth:2},node:{shape:"rectangle",lineColor:"transparent",fillColor:"transparent",color:"#EEEEEE",borderColor:"transparent",borderRadius:5,borderWidth:0}}),o.on("node_tree_render_end",(()=>{null==o||o.view.fit((()=>(null==o||o.getElRectInfo(),null==o||o.resize(),!1)),!1,0)})))}))}function d(){o&&(o.destroy(),o=null)}const l=u.ref();Dr(l),u.watch((()=>i.value),(()=>{h()}),{immediate:!0});const p=u.ref(!1);function m(t){i.value=t,p.value=!0,h()}function f(){p.value=!1,d()}return e({openMindMap:m,closeMindMap:f}),{__sfc:!0,outlineData:i,summaryList:n,mapDomTree:s,transformOutline:r,mindMap:o,mindMapContainerRef:a,initMindMap:h,destroyMindMap:d,updateMindMapScale:function(t){o&&o.view.setScale(t,0,0)},wrapRef:l,visible:p,openMindMap:m,closeMindMap:f,AiIconClose:ct,MapControl:Or,isMobile:At}}}),(function(){var t=this,e=t._self._c,i=t._self._setupProxy;return i.visible?e("div",{ref:"wrapRef",staticClass:"plv-ai-outline-mind-map"},[e("div",{staticClass:"plv-ai-outline-mind-map__content"},[e("div",{ref:"mindMapContainerRef",staticClass:"plv-ai-outline-mind-map__content-mind-map"}),e(i.AiIconClose,{staticClass:"plv-ai-outline-mind-map__close",on:{click:i.closeMindMap}}),i.isMobile?t._e():e(i.MapControl,{on:{"update-mind-map-scale":i.updateMindMapScale}})],1)]):t._e()}),[]).exports;exports.OutlineMindMap=Ar,exports.PlaybackOutline=It,console.log("%c@polyv/live-watch-ai-ui","background:#a20a1f;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 1.0.0-rc-20250724.1]","[buildTime: 2025-07-24 02:58:52]");
|