1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-54f59d49","chunk-1898624e","chunk-614dba81","chunk-410e40fc","chunk-b7b74f52","chunk-79c8a21a","chunk-b2629d58","chunk-181bbd58","chunk-3b76a4b8","chunk-b7b74f52","chunk-1b26ece6","chunk-1b26ece6","chunk-0495ff90","chunk-0495ff90","chunk-c821bdc2","chunk-2fbef56b","chunk-2d21b4e6","chunk-2d0e24d1"],{"0048":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),i=n("8937"),o=n("7a70"),a=n("d531"),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dom",e.canFill=!1,e.canStroke=!1,e}return r.__extends(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");i.each(e||n,(function(t,e){o.SVG_ATTR_MAP[e]&&r.setAttribute(o.SVG_ATTR_MAP[e],t)})),r.innerHTML=n["html"]},e}(a.default);e.default=s},"004e":function(t,e,n){var r=n("76e9"),i=n("8d20"),o=n("cd9d");function a(t){return t&&t.length?r(t,o,i):void 0}t.exports=a},"00c0":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=new Map;function i(t,e){r.set(t,e)}function o(t){return r.get(t)}e.register=i,e.getMethod=o},"00fd":function(t,e,n){var r=n("9e69"),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;function u(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(u){}var i=a.call(t);return r&&(e?t[s]=n:delete t[s]),i}t.exports=u},"0125":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("72fb"),i=n("2047"),o=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return r.default(t,(function(n,r){i.default(t)&&"prototype"===r||e.push(n)})),e};e.default=o},"01ce":function(t,e,n){t.exports={Graph:n("9671"),version:n("c3cd")}},"01eb":function(t,e,n){var r=n("33de");function i(){this._arr=[],this._keyIndices={}}t.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map((function(t){return t.key}))},i.prototype.has=function(t){return r.has(this._keyIndices,t)},i.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!r.has(n,t)){var i=this._arr,o=i.length;return n[t]=o,i.push({key:t,priority:e}),this._decrease(o),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},i.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},i.prototype._heapify=function(t){var e=this._arr,n=2*t,r=n+1,i=t;n<e.length&&(i=e[n].priority<e[i].priority?n:i,r<e.length&&(i=e[r].priority<e[i].priority?r:i),i!==t&&(this._swap(t,i),this._heapify(i)))},i.prototype._decrease=function(t){var e,n=this._arr,r=n[t].priority;while(0!==t){if(e=t>>1,n[e].priority<r)break;this._swap(t,e),t=e}},i.prototype._swap=function(t,e){var n=this._arr,r=this._keyIndices,i=n[t],o=n[e];n[t]=o,n[e]=i,r[o.key]=t,r[i.key]=e}},"01f9":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("bd8b");e.default=function(t){return Array.isArray?Array.isArray(t):r.default(t,"Array")}},"023a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),i=n("c3e2"),o=n("9705"),a=n("076b"),s=n("4dab"),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),this.setArrow()},e.prototype.setArrow=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2,o=t.startArrow,a=t.endArrow;o&&s.addStartArrow(this,t,r,i,e,n),a&&s.addEndArrow(this,t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){if(!n||!i)return!1;var o=this.attr(),s=o.x1,u=o.y1,c=o.x2,f=o.y2;return a.default(s,u,c,f,i,t,e)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.startArrow,u=e.endArrow,c={dx:0,dy:0},f={dx:0,dy:0};a&&a.d&&(c=s.getShortenOffset(n,r,i,o,e.startArrow.d)),u&&u.d&&(f=s.getShortenOffset(n,r,i,o,e.endArrow.d)),t.beginPath(),t.moveTo(n+c.dx,r+c.dy),t.lineTo(i-f.dx,o-f.dy)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,o=t.y2;return i.default.length(e,n,r,o)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,o=e.x2,a=e.y2;return i.default.pointAt(n,r,o,a,t)},e}(o.default);e.default=u},"03dd":function(t,e,n){var r=n("eac5"),i=n("57a5"),o=Object.prototype,a=o.hasOwnProperty;function s(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))a.call(t,n)&&"constructor"!=n&&e.push(n);return e}t.exports=s},"04cb":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("9ab4"),i=n("804a"),o=s(n("067f")),a=n("6b6a");function s(t){return t&&t.__esModule?t:{default:t}}var u=function t(e,n){if(!1!==n(e)&&e){var r=e.get("combos");if(0===r.length)return!1;(0,a.each)(r,(function(e){t(e,n)}))}},c={getDefaultCfg:function(){return{enableDelegate:!1,delegateStyle:{},onlyChangeComboSize:!1,activeState:"",selectedState:"selected"}},getEvents:function(){return{"combo:dragstart":"onDragStart","combo:drag":"onDrag","combo:dragend":"onDragEnd","combo:drop":"onDrop","combo:dragenter":"onDragEnter","combo:dragleave":"onDragLeave"}},validationCombo:function(t){var e=t.item;if(e&&this.shouldUpdate(this,t))e.getType()},onDragStart:function(t){var e=this,n=this.graph,r=t.item;this.validationCombo(r),this.targets=[];var i=n.findAllByState("combo",this.selectedState),o=r.get("id"),a=i.filter((function(t){var e=t.get("id");return o===e}));0===a.length?this.targets.push(r):this.targets=i,this.activeState&&this.targets.map((function(t){var r=t.getModel();if(r.parentId){var i=n.findById(r.parentId);i&&n.setItemState(i,e.activeState,!0)}})),this.point={},this.originPoint={},this.origin={x:t.x,y:t.y},this.currentItemChildCombos=[],u(r,(function(t){if(t.destroyed)return!1;var n=t.getModel();return e.currentItemChildCombos.push(n.id),!0}))},onDrag:function(t){var e=this;if(this.origin)if(this.validationCombo(t),this.enableDelegate)this.updateDelegate(t);else{if(this.activeState){var n=this.graph,r=t.item,i=r.getModel(),o=n.getCombos(),s=r.getBBox(),u=s.centerX,c=s.centerY,f=s.width,l=o.filter((function(t){var n=t.getModel();return i.parentId,n.id!==i.id&&!e.currentItemChildCombos.includes(n.id)}));l.map((function(t){var r=t.getBBox(),i=r.centerX,o=r.centerY,a=r.width,s=u-i,l=c-o,h=2*Math.sqrt(s*s+l*l);f+a-h>.8*f?n.setItemState(t,e.activeState,!0):n.setItemState(t,e.activeState,!1)}))}(0,a.each)(this.targets,(function(n){e.updateCombo(n,t)}))}},onDrop:function(t){var e=this,n=t.item;if(n&&this.targets){var r=this.graph,i=n.getModel();this.targets.map((function(t){var o=t.getModel();o.parentId!==i.id&&(e.activeState&&r.setItemState(n,e.activeState,!1),e.onlyChangeComboSize||r.updateComboTree(t,i.id))})),this.endComparison=!0}},onDragEnter:function(t){if(this.origin){this.validationCombo(t);var e=t.item,n=this.graph;this.activeState&&n.setItemState(e,this.activeState,!0)}},onDragLeave:function(t){if(this.origin){this.validationCombo(t);var e=t.item,n=this.graph;this.activeState&&n.setItemState(e,this.activeState,!1)}},onDragEnd:function(t){var e=this,n=this.graph;this.validationCombo(t),this.enableDelegate&&(0,a.each)(this.targets,(function(n){e.updateCombo(n,t)}));var r=t.item,i=!1,o=r.getModel();if(this.onlyChangeComboSize)n.updateCombos();else{var s=r.getType();if("combo"===s){var u=o.parentId,c=null,f=this.getParentCombo(u);if(f){c=this.enableDelegate?this.delegateShape.getBBox():r.getBBox();var l=c.x,h=c.y,d=c.centerX,p=c.centerY,g=c.width,v=f.getBBox(),y=v.minX,m=v.minY,b=v.maxX,x=v.maxY,w=v.centerX,M=v.centerY,_=v.width;if(l<=y||l>=b||h<=m||h>=x)this.activeState&&n.setItemState(f,this.activeState,!1),i=!0,n.updateComboTree(r);else{var S=d-w,P=p-M,k=2*Math.sqrt(S*S+P*P);g+_-k<.8*g&&(this.activeState&&n.setItemState(f,this.activeState,!1),i=!0,n.updateComboTree(r))}}if(!this.endComparison&&!i){var C=n.getCombos(),O=r.getBBox(),E=O.centerX,A=O.centerY,j=O.width,I=C.filter((function(t){var n=t.getModel();return o.parentId,n.id!==o.id&&!e.currentItemChildCombos.includes(n.id)}));I.map((function(t){var i=t.getModel(),o=t.getBBox(),a=o.centerX,s=o.centerY,u=o.width,c=E-a,f=A-s,l=2*Math.sqrt(c*c+f*f);e.activeState&&n.setItemState(t,e.activeState,!1),j+u-l>.8*j&&n.updateComboTree(r,i.id)}))}}}if(this.delegateShape){var T=n.get("delegateGroup");T.clear(),this.delegateShape=null}var B=this.getParentCombo(o.parentId);B&&this.activeState&&n.setItemState(B,this.activeState,!1),this.point=[],this.origin=null,this.originPoint=null,this.targets.length=0},traverse:function(t,e){var n=this;if(!1!==e(t)&&t){var r=t.get("combos");(0,a.each)(r,(function(t){n.traverse(t,e)}));var i=t.get("nodes");(0,a.each)(i,(function(t){n.traverse(t,e)}))}},updateCombo:function(t,e){var n=this;this.traverse(t,(function(t){return!t.destroyed&&(n.updateSignleItem(t,e),!0)}))},updateSignleItem:function(t,e){var n=this.origin,r=this.graph,i=t.getModel(),o=t.get("id");this.point[o]||(this.point[o]={x:i.x,y:i.y});var a=e.x-n.x+this.point[o].x,s=e.y-n.y+this.point[o].y;r.updateItem(t,{x:a,y:s})},getParentCombo:function(t){var e=this.graph;if(t){var n=e.findById(t);if(n)return n}},updateDelegate:function(t){var e=this.graph;if(this.delegateShape){var n=t.x-this.origin.x+this.originPoint.minX,a=t.y-this.origin.y+this.originPoint.minY;this.delegateShape.attr({x:n,y:a})}else{var s=e.get("delegateGroup"),u=null;u=this.targets.length>1?(0,i.calculationItemsBBox)(this.targets):this.targets[0].getBBox();var c=u.x,f=u.y,l=u.width,h=u.height,d=u.minX,p=u.minY;this.originPoint={x:c,y:f,width:l,height:h,minX:d,minY:p};var g=Object.assign({},o.default.delegateStyle,this.delegateStyle);this.delegateShape=s.addShape("rect",{attrs:(0,r.__assign)({width:u.width,height:u.height,x:u.x,y:u.y},g),name:"combo-delegate-shape"})}}};e.default=c},"04d1":function(t,e,n){var r=n("342f"),i=r.match(/firefox\/(\d+)/i);t.exports=!!i&&+i[1]},"0518":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("9ab4"),i=c(n("72fb")),o=c(n("28f9")),a=c(n("503e")),s=n("0dfa"),u=c(n("f694"));function c(t){return t&&t.__esModule?t:{default:t}}var f="anchorPointsCache",l="bboxCache",h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.getNearestPoint=function(t,e){for(var n=0,r=t[0],i=(0,s.distance)(t[0],e),o=0;o<t.length;o++){var a=t[o],u=(0,s.distance)(a,e);u<i&&(r=a,i=u,n=o)}return r.anchorIndex=n,r},e.prototype.getDefaultCfg=function(){return{type:"node",edges:[]}},e.prototype.getEdges=function(){return this.get("edges")},e.prototype.getInEdges=function(){var t=this;return this.get("edges").filter((function(e){return e.get("target")===t}))},e.prototype.getOutEdges=function(){var t=this;return this.get("edges").filter((function(e){return e.get("source")===t}))},e.prototype.getNeighbors=function(){var t=this,e=this.get("edges"),n=function(e){return e.getSource()===t?e.getTarget():e.getSource()};return e.map(n)},e.prototype.getSourceNeighbors=function(){var t=this,e=this.get("edges"),n=function(e){return e.getSource()===t};return e.filter(n).map((function(t){return t.getTarget()}))},e.prototype.getTargetNeighbors=function(){var t=this,e=this.get("edges"),n=function(e){return e.getTarget()===t};return e.filter(n).map((function(t){return t.getSource()}))},e.prototype.getLinkPointByAnchor=function(t){var e=this.getAnchorPoints();return e[t]},e.prototype.getLinkPoint=function(t){var e,n=this.get("keyShape"),r=n.get("type"),i=this.getBBox(),o=i.centerX,a=i.centerY,u=this.getAnchorPoints();switch(r){case"circle":e=(0,s.getCircleIntersectByPoint)({x:o,y:a,r:i.width/2},t);break;case"ellipse":e=(0,s.getEllipseIntersectByPoint)({x:o,y:a,rx:i.width/2,ry:i.height/2},t);break;default:e=(0,s.getRectIntersectByPoint)(i,t)}var c=e;return u.length&&(c||(c=t),c=this.getNearestPoint(u,c)),c||(c={x:o,y:a}),c},e.prototype.getAnchorPoints=function(){var t=this.get(f);if(!t){t=[];var e=this.get("shapeFactory"),n=this.getBBox(),r=this.get("model"),o=this.getShapeCfg(r),s=r.shape||r.type,u=e.getAnchorPoints(s,o)||[];(0,i.default)(u,(function(e,r){var i=(0,a.default)({x:n.minX+e[0]*n.width,y:n.minY+e[1]*n.height},e[2],{index:r});t.push(i)})),this.set(f,t)}return t},e.prototype.addEdge=function(t){this.get("edges").push(t)},e.prototype.lock=function(){this.set("locked",!0)},e.prototype.unlock=function(){this.set("locked",!1)},e.prototype.hasLocked=function(){return this.get("locked")},e.prototype.removeEdge=function(t){var e=this.getEdges(),n=e.indexOf(t);n>-1&&e.splice(n,1)},e.prototype.clearCache=function(){this.set(l,null),this.set(f,null)},e.prototype.isOnlyMove=function(t){if(!t)return!1;var e=!(0,o.default)(t.x),n=!(0,o.default)(t.y),r=Object.keys(t);return 1===r.length&&(e||n)||2===r.length&&e&&n},e}(u.default),d=h;e.default=d},"0519":function(t,e,n){(function(e,n){t.exports=n()})("undefined"!==typeof self&&self,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=31)}([function(t,e,n){"use strict";var r=n(4);e["a"]=function(t){return Array.isArray?Array.isArray(t):Object(r["a"])(t,"Array")}},function(t,e,n){"use strict";var r=function(t){return null!==t&&"function"!==typeof t&&isFinite(t.length)};e["a"]=r},function(t,e,n){"use strict";var r=n(0),i=n(13);function o(t,e){var n;if(t)if(Object(r["a"])(t)){for(var o=0,a=t.length;o<a;o++)if(n=e(t[o],o),!1===n)break}else if(Object(i["a"])(t))for(var s in t)if(t.hasOwnProperty(s)&&(n=e(t[s],s),!1===n))break}e["a"]=o},function(t,e,n){"use strict";var r=n(4);e["a"]=function(t){return Object(r["a"])(t,"Function")}},function(t,e,n){"use strict";var r={}.toString,i=function(t,e){return r.call(t)==="[object "+e+"]"};e["a"]=i},function(t,e,n){"use strict";var r=n(4),i=function(t){return Object(r["a"])(t,"Number")};e["a"]=i},function(t,e,n){"use strict";var r=function(t){return null===t||void 0===t};e["a"]=r},function(t,e,n){var r=n(33),i=r.mix;t.exports={assign:i}},function(t,e,n){"use strict";var r=n(4);e["a"]=function(t){return Object(r["a"])(t,"String")}},function(t,e,n){"use strict";var r=n(15),i=n(4),o=function(t){if(!Object(r["a"])(t)||!Object(i["a"])(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;var e=t;while(null!==Object.getPrototypeOf(e))e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e};e["a"]=o},function(t,e,n){"use strict";var r=n(6);e["a"]=function(t){return Object(r["a"])(t)?"":t.toString()}},function(t,e,n){var r=n(18),i=function(){function t(t,e){void 0===e&&(e={});var n=this;n.options=e,n.rootNode=r(t,e)}var e=t.prototype;return e.execute=function(){throw new Error("please override this method")},t}();t.exports=i},function(t,e,n){"use strict";var r=n(1),i=function(t,e){return!!Object(r["a"])(t)&&t.indexOf(e)>-1};e["a"]=i},function(t,e,n){"use strict";e["a"]=function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e}},function(t,e,n){"use strict";var r=n(2),i=n(1),o=function(t,e){if(!Object(i["a"])(t))return t;var n=[];return Object(r["a"])(t,(function(t,r){e(t,r)&&n.push(t)})),n};e["a"]=o},function(t,e,n){"use strict";var r=function(t){return"object"===typeof t&&null!==t};e["a"]=r},function(t,e,n){"use strict";function r(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function i(t,e,n,i){return e&&r(t,e),n&&r(t,n),i&&r(t,i),t}e["a"]=i},function(t,e,n){var r=n(30),i=["LR","RL","TB","BT","H","V"],o=["LR","RL","H"],a=function(t){return o.indexOf(t)>-1},s=i[0];t.exports=function(t,e,n){var o=e.direction||s;if(e.isHorizontal=a(o),o&&-1===i.indexOf(o))throw new TypeError("Invalid direction: "+o);if(o===i[0])n(t,e);else if(o===i[1])n(t,e),t.right2left();else if(o===i[2])n(t,e);else if(o===i[3])n(t,e),t.bottom2top();else if(o===i[4]||o===i[5]){var u=r(t,e),c=u.left,f=u.right;n(c,e),n(f,e),e.isHorizontal?c.right2left():c.bottom2top(),f.translate(c.x-f.x,c.y-f.y),t.x=c.x,t.y=f.y;var l=t.getBoundingBox();e.isHorizontal?l.top<0&&t.translate(0,-l.top):l.left<0&&t.translate(-l.left,0)}var h=e.fixedRoot;return void 0===h&&(h=!0),h&&t.translate(-(t.x+t.width/2+t.hgap),-(t.y+t.height/2+t.vgap)),t}},function(t,e,n){var r=n(7),i=18,o=2*i,a=i,s={getId:function(t){return t.id||t.name},getPreH:function(t){return t.preH||0},getPreV:function(t){return t.preV||0},getHGap:function(t){return t.hgap||a},getVGap:function(t){return t.vgap||a},getChildren:function(t){return t.children},getHeight:function(t){return t.height||o},getWidth:function(t){var e=t.label||" ";return t.width||e.split("").length*i}};function u(t,e){var n=this;if(n.vgap=n.hgap=0,t instanceof u)return t;n.data=t;var r=e.getHGap(t),i=e.getVGap(t);return n.preH=e.getPreH(t),n.preV=e.getPreV(t),n.width=e.getWidth(t),n.height=e.getHeight(t),n.width+=n.preH,n.height+=n.preV,n.id=e.getId(t),n.x=n.y=0,n.depth=0,n.children||(n.children=[]),n.addGap(r,i),n}function c(t,e,n){void 0===e&&(e={}),e=r.assign({},s,e);var i,o=new u(t,e),a=[o];if(!n&&!t.collapsed)while(i=a.shift())if(!i.data.collapsed){var c=e.getChildren(i.data),f=c?c.length:0;if(i.children=new Array(f),c&&f)for(var l=0;l<f;l++){var h=new u(c[l],e);i.children[l]=h,a.push(h),h.parent=i,h.depth=i.depth+1}}return o}r.assign(u.prototype,{isRoot:function(){return 0===this.depth},isLeaf:function(){return 0===this.children.length},addGap:function(t,e){var n=this;n.hgap+=t,n.vgap+=e,n.width+=2*t,n.height+=2*e},eachNode:function(t){var e,n=this,r=[n];while(e=r.shift())t(e),r=e.children.concat(r)},DFTraverse:function(t){this.eachNode(t)},BFTraverse:function(t){var e,n=this,r=[n];while(e=r.shift())t(e),r=r.concat(e.children)},getBoundingBox:function(){var t={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode((function(e){t.left=Math.min(t.left,e.x),t.top=Math.min(t.top,e.y),t.width=Math.max(t.width,e.x+e.width),t.height=Math.max(t.height,e.y+e.height)})),t},translate:function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.eachNode((function(n){n.x+=t,n.y+=e,n.x+=n.preH,n.y+=n.preV}))},right2left:function(){var t=this,e=t.getBoundingBox();t.eachNode((function(t){t.x=t.x-2*(t.x-e.left)-t.width})),t.translate(e.width,0)},bottom2top:function(){var t=this,e=t.getBoundingBox();t.eachNode((function(t){t.y=t.y-2*(t.y-e.top)-t.height})),t.translate(0,e.height)}}),t.exports=c},function(t,e,n){"use strict";var r=n(6),i=n(20);function o(t,e){var n=Object(i["a"])(e),o=n.length;if(Object(r["a"])(t))return!o;for(var a=0;a<o;a+=1){var s=n[a];if(e[s]!==t[s]||!(s in t))return!1}return!0}e["a"]=o},function(t,e,n){"use strict";var r=n(2),i=n(3),o=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return Object(r["a"])(t,(function(n,r){Object(i["a"])(t)&&"prototype"===r||e.push(r)})),e};e["a"]=o},function(t,e,n){"use strict";var r=n(1),i=Array.prototype.splice,o=function(t,e){if(!Object(r["a"])(t))return[];var n=t?e.length:0,o=n-1;while(n--){var a=void 0,s=e[n];n!==o&&s===a||(a=s,i.call(t,s,1))}return t};e["a"]=o},function(t,e,n){"use strict";var r=n(12),i=n(2),o=function(t){var e=[];return Object(i["a"])(t,(function(t){Object(r["a"])(e,t)||e.push(t)})),e};e["a"]=o},function(t,e,n){"use strict";var r=n(0),i=n(3),o=n(24),a=function(t,e){if(!e)return{0:t};if(!Object(i["a"])(e)){var n=Object(r["a"])(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",r=0,i=n.length;r<i;r++)e+=t[n[r]]&&t[n[r]].toString();return e}}var a=Object(o["a"])(t,e);return a};e["a"]=a},function(t,e,n){"use strict";var r=n(2),i=n(0),o=n(3),a=Object.prototype.hasOwnProperty;function s(t,e){if(!e||!Object(i["a"])(t))return{};var n,s={},u=Object(o["a"])(e)?e:function(t){return t[e]};return Object(r["a"])(t,(function(t){n=u(t),a.call(s,n)?s[n].push(t):s[n]=[t]})),s}e["a"]=s},function(t,e,n){"use strict";e["a"]=function(t,e){return t.hasOwnProperty(e)}},function(t,e,n){"use strict";var r=n(2),i=n(3),o=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return Object(r["a"])(t,(function(n,r){Object(i["a"])(t)&&"prototype"===r||e.push(n)})),e};e["a"]=o},function(t,e,n){"use strict";var r={}.toString,i=function(t){return r.call(t).replace(/^\[object /,"").replace(/]$/,"")};e["a"]=i},function(t,e,n){"use strict";var r=Object.prototype,i=function(t){var e=t&&t.constructor,n="function"===typeof e&&e.prototype||r;return t===n};e["a"]=i},function(t,e,n){"use strict";var r=n(15),i=n(1),o=n(8),a=function(t,e){if(t===e)return!0;if(!t||!e)return!1;if(Object(o["a"])(t)||Object(o["a"])(e))return!1;if(Object(i["a"])(t)||Object(i["a"])(e)){if(t.length!==e.length)return!1;for(var n=!0,s=0;s<t.length;s++)if(n=a(t[s],e[s]),!n)break;return n}if(Object(r["a"])(t)||Object(r["a"])(e)){var u=Object.keys(t),c=Object.keys(e);if(u.length!==c.length)return!1;for(n=!0,s=0;s<u.length;s++)if(n=a(t[u[s]],e[u[s]]),!n)break;return n}return!1};e["a"]=a},function(t,e,n){var r=n(18);t.exports=function(t,e){for(var n=r(t.data,e,!0),i=r(t.data,e,!0),o=t.children.length,a=Math.round(o/2),s=e.getSide||function(t,e){return e<a?"right":"left"},u=0;u<o;u++){var c=t.children[u],f=s(c,u);"right"===f?i.children.push(c):n.children.push(c)}return n.eachNode((function(t){t.isRoot()||(t.side="left")})),i.eachNode((function(t){t.isRoot()||(t.side="right")})),{left:n,right:i}}},function(t,e,n){var r={compactBox:n(32),dendrogram:n(114),indented:n(116),mindmap:n(118)};t.exports=r},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(11),o=n(113),a=n(17),s=n(7),u=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.execute=function(){var t=this;return a(t.rootNode,t.options,o)},e}(i),c={};function f(t,e){return e=s.assign({},c,e),new u(t,e).execute()}t.exports=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(12);n.d(e,"contains",(function(){return r["a"]})),n.d(e,"includes",(function(){return r["a"]}));var i=n(34);n.d(e,"difference",(function(){return i["a"]}));var o=n(35);n.d(e,"find",(function(){return o["a"]}));var a=n(36);n.d(e,"findIndex",(function(){return a["a"]}));var s=n(37);n.d(e,"firstValue",(function(){return s["a"]}));var u=n(38);n.d(e,"flatten",(function(){return u["a"]}));var c=n(39);n.d(e,"flattenDeep",(function(){return c["a"]}));var f=n(40);n.d(e,"getRange",(function(){return f["a"]}));var l=n(41);n.d(e,"pull",(function(){return l["a"]}));var h=n(21);n.d(e,"pullAt",(function(){return h["a"]}));var d=n(42);n.d(e,"reduce",(function(){return d["a"]}));var p=n(43);n.d(e,"remove",(function(){return p["a"]}));var g=n(44);n.d(e,"sortBy",(function(){return g["a"]}));var v=n(45);n.d(e,"union",(function(){return v["a"]}));var y=n(22);n.d(e,"uniq",(function(){return y["a"]}));var m=n(46);n.d(e,"valuesOfKey",(function(){return m["a"]}));var b=n(47);n.d(e,"head",(function(){return b["a"]}));var x=n(48);n.d(e,"last",(function(){return x["a"]}));var w=n(49);n.d(e,"startsWith",(function(){return w["a"]}));var M=n(50);n.d(e,"endsWith",(function(){return M["a"]}));var _=n(14);n.d(e,"filter",(function(){return _["a"]}));var S=n(51);n.d(e,"every",(function(){return S["a"]}));var P=n(52);n.d(e,"some",(function(){return P["a"]}));var k=n(53);n.d(e,"group",(function(){return k["a"]}));var C=n(24);n.d(e,"groupBy",(function(){return C["a"]}));var O=n(23);n.d(e,"groupToMap",(function(){return O["a"]}));var E=n(54);n.d(e,"getWrapBehavior",(function(){return E["a"]}));var A=n(55);n.d(e,"wrapBehavior",(function(){return A["a"]}));var j=n(56);n.d(e,"number2color",(function(){return j["a"]}));var I=n(57);n.d(e,"parseRadius",(function(){return I["a"]}));var T=n(58);n.d(e,"clamp",(function(){return T["a"]}));var B=n(59);n.d(e,"fixedBase",(function(){return B["a"]}));var N=n(60);n.d(e,"isDecimal",(function(){return N["a"]}));var D=n(61);n.d(e,"isEven",(function(){return D["a"]}));var L=n(62);n.d(e,"isInteger",(function(){return L["a"]}));var R=n(63);n.d(e,"isNegative",(function(){return R["a"]}));var z=n(64);n.d(e,"isNumberEqual",(function(){return z["a"]}));var F=n(65);n.d(e,"isOdd",(function(){return F["a"]}));var G=n(66);n.d(e,"isPositive",(function(){return G["a"]}));var Y=n(67);n.d(e,"maxBy",(function(){return Y["a"]}));var X=n(68);n.d(e,"minBy",(function(){return X["a"]}));var V=n(69);n.d(e,"mod",(function(){return V["a"]}));var q=n(70);n.d(e,"toDegree",(function(){return q["a"]}));var U=n(71);n.d(e,"toInteger",(function(){return U["a"]}));var W=n(72);n.d(e,"toRadian",(function(){return W["a"]}));var H=n(73);n.d(e,"forIn",(function(){return H["a"]}));var Z=n(25);n.d(e,"has",(function(){return Z["a"]}));var $=n(74);n.d(e,"hasKey",(function(){return $["a"]}));var Q=n(75);n.d(e,"hasValue",(function(){return Q["a"]}));var K=n(20);n.d(e,"keys",(function(){return K["a"]}));var J=n(19);n.d(e,"isMatch",(function(){return J["a"]}));var tt=n(26);n.d(e,"values",(function(){return tt["a"]}));var et=n(76);n.d(e,"lowerCase",(function(){return et["a"]}));var nt=n(77);n.d(e,"lowerFirst",(function(){return nt["a"]}));var rt=n(78);n.d(e,"substitute",(function(){return rt["a"]}));var it=n(79);n.d(e,"upperCase",(function(){return it["a"]}));var ot=n(80);n.d(e,"upperFirst",(function(){return ot["a"]}));var at=n(27);n.d(e,"getType",(function(){return at["a"]}));var st=n(81);n.d(e,"isArguments",(function(){return st["a"]}));var ut=n(0);n.d(e,"isArray",(function(){return ut["a"]}));var ct=n(1);n.d(e,"isArrayLike",(function(){return ct["a"]}));var ft=n(82);n.d(e,"isBoolean",(function(){return ft["a"]}));var lt=n(83);n.d(e,"isDate",(function(){return lt["a"]}));var ht=n(84);n.d(e,"isError",(function(){return ht["a"]}));var dt=n(3);n.d(e,"isFunction",(function(){return dt["a"]}));var pt=n(85);n.d(e,"isFinite",(function(){return pt["a"]}));var gt=n(6);n.d(e,"isNil",(function(){return gt["a"]}));var vt=n(86);n.d(e,"isNull",(function(){return vt["a"]}));var yt=n(5);n.d(e,"isNumber",(function(){return yt["a"]}));var mt=n(13);n.d(e,"isObject",(function(){return mt["a"]}));var bt=n(15);n.d(e,"isObjectLike",(function(){return bt["a"]}));var xt=n(9);n.d(e,"isPlainObject",(function(){return xt["a"]}));var wt=n(28);n.d(e,"isPrototype",(function(){return wt["a"]}));var Mt=n(87);n.d(e,"isRegExp",(function(){return Mt["a"]}));var _t=n(8);n.d(e,"isString",(function(){return _t["a"]}));var St=n(4);n.d(e,"isType",(function(){return St["a"]}));var Pt=n(88);n.d(e,"isUndefined",(function(){return Pt["a"]}));var kt=n(89);n.d(e,"isElement",(function(){return kt["a"]}));var Ct=n(90);n.d(e,"requestAnimationFrame",(function(){return Ct["a"]}));var Ot=n(91);n.d(e,"clearAnimationFrame",(function(){return Ot["a"]}));var Et=n(92);n.d(e,"augment",(function(){return Et["a"]}));var At=n(93);n.d(e,"clone",(function(){return At["a"]}));var jt=n(94);n.d(e,"debounce",(function(){return jt["a"]}));var It=n(95);n.d(e,"memoize",(function(){return It["a"]}));var Tt=n(96);n.d(e,"deepMix",(function(){return Tt["a"]}));var Bt=n(2);n.d(e,"each",(function(){return Bt["a"]}));var Nt=n(97);n.d(e,"extend",(function(){return Nt["a"]}));var Dt=n(98);n.d(e,"indexOf",(function(){return Dt["a"]}));var Lt=n(99);n.d(e,"isEmpty",(function(){return Lt["a"]}));var Rt=n(29);n.d(e,"isEqual",(function(){return Rt["a"]}));var zt=n(100);n.d(e,"isEqualWith",(function(){return zt["a"]}));var Ft=n(101);n.d(e,"map",(function(){return Ft["a"]}));var Gt=n(102);n.d(e,"mapValues",(function(){return Gt["a"]}));var Yt=n(16);n.d(e,"mix",(function(){return Yt["a"]})),n.d(e,"assign",(function(){return Yt["a"]}));var Xt=n(103);n.d(e,"get",(function(){return Xt["a"]}));var Vt=n(104);n.d(e,"set",(function(){return Vt["a"]}));var qt=n(105);n.d(e,"pick",(function(){return qt["a"]}));var Ut=n(106);n.d(e,"throttle",(function(){return Ut["a"]}));var Wt=n(107);n.d(e,"toArray",(function(){return Wt["a"]}));var Ht=n(10);n.d(e,"toString",(function(){return Ht["a"]}));var Zt=n(108);n.d(e,"uniqueId",(function(){return Zt["a"]}));var $t=n(109);n.d(e,"noop",(function(){return $t["a"]}));var Qt=n(110);n.d(e,"identity",(function(){return Qt["a"]}));var Kt=n(111);n.d(e,"size",(function(){return Kt["a"]}));var Jt=n(112);n.d(e,"Cache",(function(){return Jt["a"]}))},function(t,e,n){"use strict";var r=n(14),i=n(12),o=function(t,e){return void 0===e&&(e=[]),Object(r["a"])(t,(function(t){return!Object(i["a"])(e,t)}))};e["a"]=o},function(t,e,n){"use strict";var r=n(3),i=n(19),o=n(0),a=n(9);function s(t,e){if(!Object(o["a"])(t))return null;var n;if(Object(r["a"])(e)&&(n=e),Object(a["a"])(e)&&(n=function(t){return Object(i["a"])(t,e)}),n)for(var s=0;s<t.length;s+=1)if(n(t[s]))return t[s];return null}e["a"]=s},function(t,e,n){"use strict";function r(t,e,n){void 0===n&&(n=0);for(var r=n;r<t.length;r++)if(e(t[r],r))return r;return-1}e["a"]=r},function(t,e,n){"use strict";var r=n(6),i=n(0),o=function(t,e){for(var n=null,o=0;o<t.length;o++){var a=t[o],s=a[e];if(!Object(r["a"])(s)){n=Object(i["a"])(s)?s[0]:s;break}}return n};e["a"]=o},function(t,e,n){"use strict";var r=n(0),i=function(t){if(!Object(r["a"])(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e};e["a"]=i},function(t,e,n){"use strict";var r=n(0),i=function(t,e){if(void 0===e&&(e=[]),Object(r["a"])(t))for(var n=0;n<t.length;n+=1)i(t[n],e);else e.push(t);return e};e["a"]=i},function(t,e,n){"use strict";var r=n(0),i=n(14),o=function(t){if(t=Object(i["a"])(t,(function(t){return!isNaN(t)})),!t.length)return{min:0,max:0};if(Object(r["a"])(t[0])){for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);t=e}var o=Math.max.apply(null,t),a=Math.min.apply(null,t);return{min:a,max:o}};e["a"]=o},function(t,e,n){"use strict";var r=Array.prototype,i=r.splice,o=r.indexOf,a=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r++){var a=e[r],s=-1;while((s=o.call(t,a))>-1)i.call(t,s,1)}return t};e["a"]=a},function(t,e,n){"use strict";var r=n(2),i=n(0),o=n(9),a=function(t,e,n){if(!Object(i["a"])(t)&&!Object(o["a"])(t))return t;var a=n;return Object(r["a"])(t,(function(t,n){a=e(a,t,n)})),a};e["a"]=a},function(t,e,n){"use strict";var r=n(1),i=n(21),o=function(t,e){var n=[];if(!Object(r["a"])(t))return n;var o=-1,a=[],s=t.length;while(++o<s){var u=t[o];e(u,o,t)&&(n.push(u),a.push(o))}return Object(i["a"])(t,a),n};e["a"]=o},function(t,e,n){"use strict";var r=n(0),i=n(8),o=n(3);function a(t,e){var n;if(Object(o["a"])(e))n=function(t,n){return e(t)-e(n)};else{var a=[];Object(i["a"])(e)?a.push(e):Object(r["a"])(e)&&(a=e),n=function(t,e){for(var n=0;n<a.length;n+=1){var r=a[n];if(t[r]>e[r])return 1;if(t[r]<e[r])return-1}return 0}}return t.sort(n),t}e["a"]=a},function(t,e,n){"use strict";var r=n(22),i=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Object(r["a"])([].concat.apply([],t))};e["a"]=i},function(t,e,n){"use strict";var r=n(2),i=n(0),o=n(6);e["a"]=function(t,e){var n=[],a={};return t.forEach((function(t){var s=t[e];Object(o["a"])(s)||(Object(i["a"])(s)||(s=[s]),Object(r["a"])(s,(function(t){a[t]||(n.push(t),a[t]=!0)})))})),n}},function(t,e,n){"use strict";e["a"]=i;var r=n(1);function i(t){if(Object(r["a"])(t))return t[0]}},function(t,e,n){"use strict";e["a"]=i;var r=n(1);function i(t){if(Object(r["a"])(t)){var e=t;return e[e.length-1]}}},function(t,e,n){"use strict";var r=n(0),i=n(8);function o(t,e){return!(!Object(r["a"])(t)&&!Object(i["a"])(t))&&t[0]===e}e["a"]=o},function(t,e,n){"use strict";var r=n(0),i=n(8);function o(t,e){return!(!Object(r["a"])(t)&&!Object(i["a"])(t))&&t[t.length-1]===e}e["a"]=o},function(t,e,n){"use strict";var r=function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0};e["a"]=r},function(t,e,n){"use strict";var r=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n))return!0;return!1};e["a"]=r},function(t,e,n){"use strict";var r=n(23);e["a"]=function(t,e){if(!e)return[t];var n=Object(r["a"])(t,e),i=[];for(var o in n)i.push(n[o]);return i}},function(t,e,n){"use strict";function r(t,e){return t["_wrap_"+e]}e["a"]=r},function(t,e,n){"use strict";function r(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n}e["a"]=r},function(t,e,n){"use strict";var r={};function i(t){var e=r[t];if(!e){for(var n=t.toString(16),i=n.length;i<6;i++)n="0"+n;e="#"+n,r[t]=e}return e}e["a"]=i},function(t,e,n){"use strict";var r=n(0);function i(t){var e=0,n=0,i=0,o=0;return Object(r["a"])(t)?1===t.length?e=n=i=o=t[0]:2===t.length?(e=i=t[0],n=o=t[1]):3===t.length?(e=t[0],n=o=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],o=t[3]):e=n=i=o=t,{r1:e,r2:n,r3:i,r4:o}}e["a"]=i},function(t,e,n){"use strict";var r=function(t,e,n){return t<e?e:t>n?n:t};e["a"]=r},function(t,e,n){"use strict";var r=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))};e["a"]=r},function(t,e,n){"use strict";var r=n(5),i=function(t){return Object(r["a"])(t)&&t%1!==0};e["a"]=i},function(t,e,n){"use strict";var r=n(5),i=function(t){return Object(r["a"])(t)&&t%2===0};e["a"]=i},function(t,e,n){"use strict";var r=n(5),i=Number.isInteger?Number.isInteger:function(t){return Object(r["a"])(t)&&t%1===0};e["a"]=i},function(t,e,n){"use strict";var r=n(5),i=function(t){return Object(r["a"])(t)&&t<0};e["a"]=i},function(t,e,n){"use strict";e["a"]=i;var r=1e-5;function i(t,e,n){return void 0===n&&(n=r),Math.abs(t-e)<n}},function(t,e,n){"use strict";var r=n(5),i=function(t){return Object(r["a"])(t)&&t%2!==0};e["a"]=i},function(t,e,n){"use strict";var r=n(5),i=function(t){return Object(r["a"])(t)&&t>0};e["a"]=i},function(t,e,n){"use strict";var r=n(2),i=n(0),o=n(3);e["a"]=function(t,e){if(Object(i["a"])(t)){var n,a,s=t[0];return n=Object(o["a"])(e)?e(t[0]):t[0][e],Object(r["a"])(t,(function(t){a=Object(o["a"])(e)?e(t):t[e],a>n&&(s=t,n=a)})),s}}},function(t,e,n){"use strict";var r=n(2),i=n(0),o=n(3);e["a"]=function(t,e){if(Object(i["a"])(t)){var n,a,s=t[0];return n=Object(o["a"])(e)?e(t[0]):t[0][e],Object(r["a"])(t,(function(t){a=Object(o["a"])(e)?e(t):t[e],a<n&&(s=t,n=a)})),s}}},function(t,e,n){"use strict";var r=function(t,e){return(t%e+e)%e};e["a"]=r},function(t,e,n){"use strict";var r=180/Math.PI,i=function(t){return r*t};e["a"]=i},function(t,e,n){"use strict";e["a"]=parseInt},function(t,e,n){"use strict";var r=Math.PI/180,i=function(t){return r*t};e["a"]=i},function(t,e,n){"use strict";var r=n(2);e["a"]=r["a"]},function(t,e,n){"use strict";var r=n(25);e["a"]=r["a"]},function(t,e,n){"use strict";var r=n(12),i=n(26);e["a"]=function(t,e){return Object(r["a"])(Object(i["a"])(t),e)}},function(t,e,n){"use strict";var r=n(10),i=function(t){return Object(r["a"])(t).toLowerCase()};e["a"]=i},function(t,e,n){"use strict";var r=n(10),i=function(t){var e=Object(r["a"])(t);return e.charAt(0).toLowerCase()+e.substring(1)};e["a"]=i},function(t,e,n){"use strict";function r(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,(function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]})):t}e["a"]=r},function(t,e,n){"use strict";var r=n(10),i=function(t){return Object(r["a"])(t).toUpperCase()};e["a"]=i},function(t,e,n){"use strict";var r=n(10),i=function(t){var e=Object(r["a"])(t);return e.charAt(0).toUpperCase()+e.substring(1)};e["a"]=i},function(t,e,n){"use strict";var r=n(4),i=function(t){return Object(r["a"])(t,"Arguments")};e["a"]=i},function(t,e,n){"use strict";var r=n(4),i=function(t){return Object(r["a"])(t,"Boolean")};e["a"]=i},function(t,e,n){"use strict";var r=n(4),i=function(t){return Object(r["a"])(t,"Date")};e["a"]=i},function(t,e,n){"use strict";var r=n(4),i=function(t){return Object(r["a"])(t,"Error")};e["a"]=i},function(t,e,n){"use strict";var r=n(5);e["a"]=function(t){return Object(r["a"])(t)&&isFinite(t)}},function(t,e,n){"use strict";var r=function(t){return null===t};e["a"]=r},function(t,e,n){"use strict";var r=n(4),i=function(t){return Object(r["a"])(t,"RegExp")};e["a"]=i},function(t,e,n){"use strict";var r=function(t){return void 0===t};e["a"]=r},function(t,e,n){"use strict";var r=function(t){return t instanceof Element||t instanceof HTMLDocument};e["a"]=r},function(t,e,n){"use strict";function r(t){var e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)};return e(t)}e["a"]=r},function(t,e,n){"use strict";function r(t){var e=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout;e(t)}e["a"]=r},function(t,e,n){"use strict";var r=n(16),i=n(3),o=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t[0],o=1;o<t.length;o++){var a=t[o];Object(i["a"])(a)&&(a=a.prototype),Object(r["a"])(n.prototype,a)}};e["a"]=o},function(t,e,n){"use strict";var r=n(0),i=function(t){if("object"!==typeof t||null===t)return t;var e;if(Object(r["a"])(t)){e=[];for(var n=0,o=t.length;n<o;n++)"object"===typeof t[n]&&null!=t[n]?e[n]=i(t[n]):e[n]=t[n]}else for(var a in e={},t)"object"===typeof t[a]&&null!=t[a]?e[a]=i(t[a]):e[a]=t[a];return e};e["a"]=i},function(t,e,n){"use strict";function r(t,e,n){var r;return function(){var i=this,o=arguments,a=function(){r=null,n||t.apply(i,o)},s=n&&!r;clearTimeout(r),r=setTimeout(a,e),s&&t.apply(i,o)}}e["a"]=r},function(t,e,n){"use strict";var r=n(3);e["a"]=function(t,e){if(!Object(r["a"])(t))throw new TypeError("Expected a function");var n=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=e?e.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var s=t.apply(this,r);return a.set(o,s),s};return n.cache=new Map,n}},function(t,e,n){"use strict";var r=n(0),i=n(9),o=5;function a(t,e,n,s){for(var u in n=n||0,s=s||o,e)if(e.hasOwnProperty(u)){var c=e[u];null!==c&&Object(i["a"])(c)?(Object(i["a"])(t[u])||(t[u]={}),n<s?a(t[u],c,n+1,s):t[u]=e[u]):Object(r["a"])(c)?(t[u]=[],t[u]=t[u].concat(c)):void 0!==c&&(t[u]=c)}}var s=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r+=1)a(t,e[r]);return t};e["a"]=s},function(t,e,n){"use strict";var r=n(16),i=n(3),o=function(t,e,n,o){Object(i["a"])(e)||(n=e,e=t,t=function(){});var a=Object.create?function(t,e){return Object.create(t,{constructor:{value:e}})}:function(t,e){function n(){}n.prototype=t;var r=new n;return r.constructor=e,r},s=a(e.prototype,t);return t.prototype=Object(r["a"])(s,t.prototype),t.superclass=a(e.prototype,e),Object(r["a"])(s,n),Object(r["a"])(t,o),t};e["a"]=o},function(t,e,n){"use strict";var r=n(1),i=function(t,e){if(!Object(r["a"])(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var i=-1,o=0;o<t.length;o++)if(t[o]===e){i=o;break}return i};e["a"]=i},function(t,e,n){"use strict";var r=n(6),i=n(1),o=n(27),a=n(28),s=Object.prototype.hasOwnProperty;function u(t){if(Object(r["a"])(t))return!0;if(Object(i["a"])(t))return!t.length;var e=Object(o["a"])(t);if("Map"===e||"Set"===e)return!t.size;if(Object(a["a"])(t))return!Object.keys(t).length;for(var n in t)if(s.call(t,n))return!1;return!0}e["a"]=u},function(t,e,n){"use strict";var r=n(3),i=n(29);e["a"]=function(t,e,n){return Object(r["a"])(n)?!!n(t,e):Object(i["a"])(t,e)}},function(t,e,n){"use strict";var r=n(2),i=n(1),o=function(t,e){if(!Object(i["a"])(t))return t;var n=[];return Object(r["a"])(t,(function(t,r){n.push(e(t,r))})),n};e["a"]=o},function(t,e,n){"use strict";var r=n(6),i=n(13),o=function(t){return t};e["a"]=function(t,e){void 0===e&&(e=o);var n={};return Object(i["a"])(t)&&!Object(r["a"])(t)&&Object.keys(t).forEach((function(r){n[r]=e(t[r],r)})),n}},function(t,e,n){"use strict";var r=n(8);e["a"]=function(t,e,n){var i=0,o=Object(r["a"])(e)?e.split("."):e;while(t&&i<o.length)t=t[o[i++]];return void 0===t||i<o.length?n:t}},function(t,e,n){"use strict";var r=n(13),i=n(8),o=n(5);e["a"]=function(t,e,n){var a=t,s=Object(i["a"])(e)?e.split("."):e;return s.forEach((function(t,e){e<s.length-1?(Object(r["a"])(a[t])||(a[t]=Object(o["a"])(s[e+1])?[]:{}),a=a[t]):a[t]=n})),t}},function(t,e,n){"use strict";var r=n(2),i=n(9),o=Object.prototype.hasOwnProperty;e["a"]=function(t,e){if(null===t||!Object(i["a"])(t))return{};var n={};return Object(r["a"])(e,(function(e){o.call(t,e)&&(n[e]=t[e])})),n}},function(t,e,n){"use strict";e["a"]=function(t,e,n){var r,i,o,a,s=0;n||(n={});var u=function(){s=!1===n.leading?0:Date.now(),r=null,a=t.apply(i,o),r||(i=o=null)},c=function(){var c=Date.now();s||!1!==n.leading||(s=c);var f=e-(c-s);return i=this,o=arguments,f<=0||f>e?(r&&(clearTimeout(r),r=null),s=c,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(u,f)),a};return c.cancel=function(){clearTimeout(r),s=0,r=i=o=null},c}},function(t,e,n){"use strict";var r=n(1);e["a"]=function(t){return Object(r["a"])(t)?Array.prototype.slice.call(t):[]}},function(t,e,n){"use strict";var r={};e["a"]=function(t){return t=t||"g",r[t]?r[t]+=1:r[t]=1,t+r[t]}},function(t,e,n){"use strict";e["a"]=function(){}},function(t,e,n){"use strict";e["a"]=function(t){return t}},function(t,e,n){"use strict";e["a"]=o;var r=n(6),i=n(1);function o(t){return Object(r["a"])(t)?0:Object(i["a"])(t)?t.length:Object.keys(t).length}},function(t,e,n){"use strict";var r=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}();e["a"]=r},function(t,e){function n(t,e,n,r){void 0===r&&(r=[]);var i=this;i.w=t||0,i.h=e||0,i.y=n||0,i.x=0,i.c=r||[],i.cs=r.length,i.prelim=0,i.mod=0,i.shift=0,i.change=0,i.tl=null,i.tr=null,i.el=null,i.er=null,i.msel=0,i.mser=0}function r(t,e,n){n?t.y+=e:t.x+=e,t.children.forEach((function(t){r(t,e,n)}))}function i(t,e){var n=e?t.y:t.x;return t.children.forEach((function(t){n=Math.min(i(t,e),n)})),n}function o(t,e){var n=i(t,e);r(t,-n,e)}function a(t,e,n){n?e.y=t.x:e.x=t.x,t.c.forEach((function(t,r){a(t,e.children[r],n)}))}function s(t,e,n){void 0===n&&(n=0),e?(t.x=n,n+=t.width):(t.y=n,n+=t.height),t.children.forEach((function(t){s(t,e,n)}))}n.fromNode=function(t,e){if(!t)return null;var r=[];return t.children.forEach((function(t){r.push(n.fromNode(t,e))})),e?new n(t.height,t.width,t.x,r):new n(t.width,t.height,t.y,r)},t.exports=function(t,e){void 0===e&&(e={});var r=e.isHorizontal;function i(t){if(0!==t.cs){i(t.c[0]);for(var e=x(d(t.c[0].el),0,null),n=1;n<t.cs;++n){i(t.c[n]);var r=d(t.c[n].er);c(t,n,e),e=x(r,n,e)}v(t),u(t)}else u(t)}function u(t){0===t.cs?(t.el=t,t.er=t,t.msel=t.mser=0):(t.el=t.c[0].el,t.msel=t.c[0].msel,t.er=t.c[t.cs-1].er,t.mser=t.c[t.cs-1].mser)}function c(t,e,n){var r=t.c[e-1],i=r.mod,o=t.c[e],a=o.mod;while(null!==r&&null!==o){d(r)>n.low&&(n=n.nxt);var s=i+r.prelim+r.w-(a+o.prelim);s>0&&(a+=s,f(t,e,n.index,s));var u=d(r),c=d(o);u<=c&&(r=h(r),null!==r&&(i+=r.mod)),u>=c&&(o=l(o),null!==o&&(a+=o.mod))}!r&&o?p(t,e,o,a):r&&!o&&g(t,e,r,i)}function f(t,e,n,r){t.c[e].mod+=r,t.c[e].msel+=r,t.c[e].mser+=r,m(t,e,n,r)}function l(t){return 0===t.cs?t.tl:t.c[0]}function h(t){return 0===t.cs?t.tr:t.c[t.cs-1]}function d(t){return t.y+t.h}function p(t,e,n,r){var i=t.c[0].el;i.tl=n;var o=r-n.mod-t.c[0].msel;i.mod+=o,i.prelim-=o,t.c[0].el=t.c[e].el,t.c[0].msel=t.c[e].msel}function g(t,e,n,r){var i=t.c[e].er;i.tr=n;var o=r-n.mod-t.c[e].mser;i.mod+=o,i.prelim-=o,t.c[e].er=t.c[e-1].er,t.c[e].mser=t.c[e-1].mser}function v(t){t.prelim=(t.c[0].prelim+t.c[0].mod+t.c[t.cs-1].mod+t.c[t.cs-1].prelim+t.c[t.cs-1].w)/2-t.w/2}function y(t,e){e+=t.mod,t.x=t.prelim+e,b(t);for(var n=0;n<t.cs;n++)y(t.c[n],e)}function m(t,e,n,r){if(n!==e-1){var i=e-n;t.c[n+1].shift+=r/i,t.c[e].shift-=r/i,t.c[e].change-=r-r/i}}function b(t){for(var e=0,n=0,r=0;r<t.cs;r++)e+=t.c[r].shift,n+=e+t.c[r].change,t.c[r].mod+=n}function x(t,e,n){while(null!==n&&t>=n.low)n=n.nxt;return{low:t,index:e,nxt:n}}s(t,r);var w=n.fromNode(t,r);return i(w),y(w,0),a(w,t,r),o(t,r),t}},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(11),o=n(115),a=n(17),s=n(7),u=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.execute=function(){var t=this;return t.rootNode.width=0,a(t.rootNode,t.options,o)},e}(i),c={};function f(t,e){return e=s.assign({},c,e),new u(t,e).execute()}t.exports=f},function(t,e,n){var r=n(7);function i(t,e){void 0===t&&(t=0),void 0===e&&(e=[]);var n=this;n.x=n.y=0,n.leftChild=n.rightChild=null,n.height=0,n.children=e}var o={isHorizontal:!0,nodeSep:20,nodeSize:20,rankSep:200,subTreeSep:10};function a(t,e,n){n?(e.x=t.x,e.y=t.y):(e.x=t.y,e.y=t.x),t.children.forEach((function(t,r){a(t,e.children[r],n)}))}t.exports=function(t,e){void 0===e&&(e={}),e=r.assign({},o,e);var n,s=0;function u(t){if(!t)return null;t.width=0,t.depth&&t.depth>s&&(s=t.depth);var e=t.children,n=e.length,r=new i(t.height,[]);return e.forEach((function(t,e){var i=u(t);r.children.push(i),0===e&&(r.leftChild=i),e===n-1&&(r.rightChild=i)})),r.originNode=t,r.isLeaf=t.isLeaf(),r}function c(t){if(t.isLeaf||0===t.children.length)t.drawingDepth=s;else{var e=t.children.map((function(t){return c(t)})),n=Math.min.apply(null,e);t.drawingDepth=n-1}return t.drawingDepth}function f(t){t.x=t.drawingDepth*e.rankSep,t.isLeaf?(t.y=0,n&&(t.y=n.y+n.height+e.nodeSep,t.originNode.parent!==n.originNode.parent&&(t.y+=e.subTreeSep)),n=t):(t.children.forEach((function(t){f(t)})),t.y=(t.leftChild.y+t.rightChild.y)/2)}var l=u(t);return c(l),f(l),a(l,t,e.isHorizontal),t}},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(11),o=n(117),a=n(30),s=n(7),u=["LR","RL","H"],c=u[0],f=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.execute=function(){var t=this,e=t.options,n=t.rootNode;e.isHorizontal=!0;var r=e.indent,i=void 0===r?20:r,s=e.dropCap,f=void 0===s||s,l=e.direction||c;if(l&&-1===u.indexOf(l))throw new TypeError("Invalid direction: "+l);if(l===u[0])o(n,i,f);else if(l===u[1])o(n,i,f),n.right2left();else if(l===u[2]){var h=a(n,e),d=h.left,p=h.right;o(d,i,f),d.right2left(),o(p,i,f);var g=d.getBoundingBox();p.translate(g.width,0),n.x=p.x-n.width/2}return n},e}(i),l={};function h(t,e){return e=s.assign({},l,e),new f(t,e).execute()}t.exports=h},function(t,e){function n(t,e,n,r){var i="function"===typeof n?n(t):n*t.depth;if(!r)try{if(t.id===t.parent.children[0].id)return t.x+=i,void(t.y=e?e.y:0)}catch(o){}t.x+=i,t.y=e?e.y+e.height:0}t.exports=function(t,e,r){var i=null;t.eachNode((function(t){n(t,i,e,r),i=t}))}},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(11),o=n(119),a=n(17),s=n(7),u=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.execute=function(){var t=this;return a(t.rootNode,t.options,o)},e}(i),c={};function f(t,e){return e=s.assign({},c,e),new u(t,e).execute()}t.exports=f},function(t,e,n){var r=n(7);function i(t,e){var n=0;return t.children.length?t.children.forEach((function(t){n+=i(t,e)})):n=t.height,t._subTreeSep=e.getSubTreeSep(t.data),t.totalHeight=Math.max(t.height,n)+2*t._subTreeSep,t.totalHeight}function o(t){var e=t.children,n=e.length;if(n){e.forEach((function(t){o(t)}));var r=e[0],i=e[n-1],a=i.y-r.y+i.height,s=0;if(e.forEach((function(t){s+=t.totalHeight})),a>t.height)t.y=r.y+a/2-t.height/2;else if(1!==e.length||t.height>s){var u=t.y+(t.height-a)/2-r.y;e.forEach((function(t){t.translate(0,u)}))}else t.y=(r.y+r.height/2+i.y+i.height/2)/2-t.height/2}}var a={getSubTreeSep:function(){return 0}};t.exports=function(t,e){void 0===e&&(e={}),e=r.assign({},a,e),t.parent={x:0,width:0,height:0,y:0},t.BFTraverse((function(t){t.x=t.parent.x+t.parent.width})),t.parent=null,i(t,e),t.startY=0,t.y=t.totalHeight/2-t.height/2,t.eachNode((function(t){var e=t.children,n=e.length;if(n){var r=e[0];if(r.startY=t.startY+t._subTreeSep,1===n)r.y=t.y+t.height/2-r.height/2;else{r.y=r.startY+r.totalHeight/2-r.height/2;for(var i=1;i<n;i++){var o=e[i];o.startY=e[i-1].startY+e[i-1].totalHeight,o.y=o.startY+o.totalHeight/2-o.height/2}}}})),o(t)}}])}))},"0538":function(t,e,n){"use strict";var r=n("da84"),i=n("e330"),o=n("59ed"),a=n("861d"),s=n("1a2d"),u=n("f36a"),c=r.Function,f=i([].concat),l=i([].join),h={},d=function(t,e,n){if(!s(h,e)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";h[e]=c("C,a","return new C("+l(r,",")+")")}return h[e](t,n)};t.exports=c.bind||function(t){var e=o(this),n=e.prototype,r=u(arguments,1),i=function(){var n=f(r,u(arguments));return this instanceof i?d(e,n.length,n):e.apply(t,n)};return a(n)&&(i.prototype=n),i}},"060b":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("487c");function i(t,e){var n=t.cfg.el,r=t.attr(),i={dx:r.shadowOffsetX,dy:r.shadowOffsetY,blur:r.shadowBlur,color:r.shadowColor};if(i.dx||i.dy||i.blur||i.color){var o=e.find("filter",i);o||(o=e.addShadow(i)),n.setAttribute("filter","url(#"+o+")")}else n.removeAttribute("filter")}function o(t){var e=t.attr().matrix;if(e){for(var n=t.cfg.el,r=[],i=0;i<9;i+=3)r.push(e[i]+","+e[i+1]);r=r.join(","),-1===r.indexOf("NaN")?n.setAttribute("transform","matrix("+r+")"):console.warn("invalid matrix:",e)}}function a(t,e){var n=t.getClip(),i=t.get("el");if(n){if(n&&!i.hasAttribute("clip-path")){r.createDom(n),n.createPath(e);var o=e.addClip(n);i.setAttribute("clip-path","url(#"+o+")")}}else i.removeAttribute("clip-path")}e.setShadow=i,e.setTransform=o,e.setClip=a},"0621":function(t,e,n){var r=n("9e69"),i=n("d370"),o=n("6747"),a=r?r.isConcatSpreadable:void 0;function s(t){return o(t)||i(t)||!!(a&&t&&t[a])}t.exports=s},"0644":function(t,e,n){var r=n("3818"),i=1,o=4;function a(t){return r(t,i|o)}t.exports=a},"067f":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={version:"3.5.2",rootContainerClassName:"root-container",nodeContainerClassName:"node-container",edgeContainerClassName:"edge-container",comboContainerClassName:"combo-container",customGroupContainerClassName:"custom-group-container",delegateContainerClassName:"delegate-container",defaultShapeFillColor:"#C6E5FF",defaultShapeStrokeColor:"#5B8FF9",defaultLoopPosition:"top",nodeLabel:{style:{fill:"#595959",textAlign:"center",textBaseline:"middle"},offset:5},defaultNode:{type:"circle",style:{fill:"#C6E5FF",lineWidth:1,stroke:"#5B8FF9"},size:20,color:"#5B8FF9"},edgeLabel:{style:{fill:"#595959",textAlign:"center",textBaseline:"middle"}},defaultEdge:{type:"line",style:{stroke:"#e2e2e2"},size:1,color:"#e2e2e2"},comboLabel:{style:{fill:"#595959",textBaseline:"middle"},refY:10,refX:10},defaultCombo:{type:"circle",style:{fill:"#F3F9FF",lineWidth:1,stroke:"#A3B1BF",opacity:.8,r:5,width:20,height:10},size:[20,5],color:"#A3B1BF",padding:[25,20,15,20]},nodeStateStyle:{},delegateStyle:{fill:"#F3F9FF",fillOpacity:.5,stroke:"#1890FF",strokeOpacity:.9,lineDash:[5,5]}};e.default=r},"06ef":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){return"object"===typeof t&&null!==t};e.default=r},"076b":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("c3e2");function i(t,e,n,i,o,a,s){var u=Math.min(t,n),c=Math.max(t,n),f=Math.min(e,i),l=Math.max(e,i),h=o/2;return a>=u-h&&a<=c+h&&s>=f-h&&s<=l+h&&r.default.pointToLine(t,e,n,i,a,s)<=o/2}e.default=i},"07c7":function(t,e){function n(){return!1}t.exports=n},"07ea":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("01f9"),i=n("2047"),o=Object.prototype.hasOwnProperty;function a(t,e){if(!e||!r.default(t))return{};for(var n,a={},s=i.default(e)?e:function(t){return t[e]},u=0;u<t.length;u++){var c=t[u];n=s(c),o.call(a,n)?a[n].push(c):a[n]=[c]}return a}e.default=a},"087d":function(t,e){function n(t,e){var n=-1,r=e.length,i=t.length;while(++n<r)t[i+n]=e[n];return t}t.exports=n},"08cc":function(t,e,n){var r=n("1a8c");function i(t){return t===t&&!r(t)}t.exports=i},"08e0":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("842b"),i=function(t){return r.default(t)&&t%2!==0};e.default=i},"099a":function(t,e){function n(t,e,n){var r=n-1,i=t.length;while(++r<i)if(t[r]===e)return r;return-1}t.exports=n},"0a4a":function(t,e,n){"use strict";n.r(e),n.d(e,"forceCenter",(function(){return r})),n.d(e,"forceCollide",(function(){return A})),n.d(e,"forceLink",(function(){return T})),n.d(e,"forceManyBody",(function(){return vt})),n.d(e,"forceRadial",(function(){return yt})),n.d(e,"forceSimulation",(function(){return gt})),n.d(e,"forceX",(function(){return mt})),n.d(e,"forceY",(function(){return bt}));var r=function(t,e){var n,r=1;function i(){var i,o,a=n.length,s=0,u=0;for(i=0;i<a;++i)o=n[i],s+=o.x,u+=o.y;for(s=(s/a-t)*r,u=(u/a-e)*r,i=0;i<a;++i)o=n[i],o.x-=s,o.y-=u}return null==t&&(t=0),null==e&&(e=0),i.initialize=function(t){n=t},i.x=function(e){return arguments.length?(t=+e,i):t},i.y=function(t){return arguments.length?(e=+t,i):e},i.strength=function(t){return arguments.length?(r=+t,i):r},i},i=function(t){const e=+this._x.call(null,t),n=+this._y.call(null,t);return o(this.cover(e,n),e,n,t)};function o(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var i,o,a,s,u,c,f,l,h,d=t._root,p={data:r},g=t._x0,v=t._y0,y=t._x1,m=t._y1;if(!d)return t._root=p,t;while(d.length)if((c=e>=(o=(g+y)/2))?g=o:y=o,(f=n>=(a=(v+m)/2))?v=a:m=a,i=d,!(d=d[l=f<<1|c]))return i[l]=p,t;if(s=+t._x.call(null,d.data),u=+t._y.call(null,d.data),e===s&&n===u)return p.next=d,i?i[l]=p:t._root=p,t;do{i=i?i[l]=new Array(4):t._root=new Array(4),(c=e>=(o=(g+y)/2))?g=o:y=o,(f=n>=(a=(v+m)/2))?v=a:m=a}while((l=f<<1|c)===(h=(u>=a)<<1|s>=o));return i[h]=d,i[l]=p,t}function a(t){var e,n,r,i,a=t.length,s=new Array(a),u=new Array(a),c=1/0,f=1/0,l=-1/0,h=-1/0;for(n=0;n<a;++n)isNaN(r=+this._x.call(null,e=t[n]))||isNaN(i=+this._y.call(null,e))||(s[n]=r,u[n]=i,r<c&&(c=r),r>l&&(l=r),i<f&&(f=i),i>h&&(h=i));if(c>l||f>h)return this;for(this.cover(c,f).cover(l,h),n=0;n<a;++n)o(this,s[n],u[n],t[n]);return this}var s=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(n))i=(n=Math.floor(t))+1,o=(r=Math.floor(e))+1;else{var a,s,u=i-n||1,c=this._root;while(n>t||t>=i||r>e||e>=o)switch(s=(e<r)<<1|t<n,a=new Array(4),a[s]=c,c=a,u*=2,s){case 0:i=n+u,o=r+u;break;case 1:n=i-u,o=r+u;break;case 2:i=n+u,r=o-u;break;case 3:n=i-u,r=o-u;break}this._root&&this._root.length&&(this._root=c)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this},u=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},c=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},f=function(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i},l=function(t,e,n){var r,i,o,a,s,u,c,l=this._x0,h=this._y0,d=this._x1,p=this._y1,g=[],v=this._root;v&&g.push(new f(v,l,h,d,p)),null==n?n=1/0:(l=t-n,h=e-n,d=t+n,p=e+n,n*=n);while(u=g.pop())if(!(!(v=u.node)||(i=u.x0)>d||(o=u.y0)>p||(a=u.x1)<l||(s=u.y1)<h))if(v.length){var y=(i+a)/2,m=(o+s)/2;g.push(new f(v[3],y,m,a,s),new f(v[2],i,m,y,s),new f(v[1],y,o,a,m),new f(v[0],i,o,y,m)),(c=(e>=m)<<1|t>=y)&&(u=g[g.length-1],g[g.length-1]=g[g.length-1-c],g[g.length-1-c]=u)}else{var b=t-+this._x.call(null,v.data),x=e-+this._y.call(null,v.data),w=b*b+x*x;if(w<n){var M=Math.sqrt(n=w);l=t-M,h=e-M,d=t+M,p=e+M,r=v.data}}return r},h=function(t){if(isNaN(o=+this._x.call(null,t))||isNaN(a=+this._y.call(null,t)))return this;var e,n,r,i,o,a,s,u,c,f,l,h,d=this._root,p=this._x0,g=this._y0,v=this._x1,y=this._y1;if(!d)return this;if(d.length)while(1){if((c=o>=(s=(p+v)/2))?p=s:v=s,(f=a>=(u=(g+y)/2))?g=u:y=u,e=d,!(d=d[l=f<<1|c]))return this;if(!d.length)break;(e[l+1&3]||e[l+2&3]||e[l+3&3])&&(n=e,h=l)}while(d.data!==t)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):e?(i?e[l]=i:delete e[l],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(n?n[h]=d:this._root=d),this):(this._root=i,this)};function d(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this}var p=function(){return this._root},g=function(){var t=0;return this.visit((function(e){if(!e.length)do{++t}while(e=e.next)})),t},v=function(t){var e,n,r,i,o,a,s=[],u=this._root;u&&s.push(new f(u,this._x0,this._y0,this._x1,this._y1));while(e=s.pop())if(!t(u=e.node,r=e.x0,i=e.y0,o=e.x1,a=e.y1)&&u.length){var c=(r+o)/2,l=(i+a)/2;(n=u[3])&&s.push(new f(n,c,l,o,a)),(n=u[2])&&s.push(new f(n,r,l,c,a)),(n=u[1])&&s.push(new f(n,c,i,o,l)),(n=u[0])&&s.push(new f(n,r,i,c,l))}return this},y=function(t){var e,n=[],r=[];this._root&&n.push(new f(this._root,this._x0,this._y0,this._x1,this._y1));while(e=n.pop()){var i=e.node;if(i.length){var o,a=e.x0,s=e.y0,u=e.x1,c=e.y1,l=(a+u)/2,h=(s+c)/2;(o=i[0])&&n.push(new f(o,a,s,l,h)),(o=i[1])&&n.push(new f(o,l,s,u,h)),(o=i[2])&&n.push(new f(o,a,h,l,c)),(o=i[3])&&n.push(new f(o,l,h,u,c))}r.push(e)}while(e=r.pop())t(e.node,e.x0,e.y0,e.x1,e.y1);return this};function m(t){return t[0]}var b=function(t){return arguments.length?(this._x=t,this):this._x};function x(t){return t[1]}var w=function(t){return arguments.length?(this._y=t,this):this._y};function M(t,e,n){var r=new _(null==e?m:e,null==n?x:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function _(t,e,n,r,i,o){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function S(t){var e={data:t.data},n=e;while(t=t.next)n=n.next={data:t.data};return e}var P=M.prototype=_.prototype;P.copy=function(){var t,e,n=new _(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=S(r),n;t=[{source:r,target:n._root=new Array(4)}];while(r=t.pop())for(var i=0;i<4;++i)(e=r.source[i])&&(e.length?t.push({source:e,target:r.target[i]=new Array(4)}):r.target[i]=S(e));return n},P.add=i,P.addAll=a,P.cover=s,P.data=u,P.extent=c,P.find=l,P.remove=h,P.removeAll=d,P.root=p,P.size=g,P.visit=v,P.visitAfter=y,P.x=b,P.y=w;var k=function(t){return function(){return t}},C=function(t){return 1e-6*(t()-.5)};function O(t){return t.x+t.vx}function E(t){return t.y+t.vy}var A=function(t){var e,n,r,i=1,o=1;function a(){for(var t,a,u,c,f,l,h,d=e.length,p=0;p<o;++p)for(a=M(e,O,E).visitAfter(s),t=0;t<d;++t)u=e[t],l=n[u.index],h=l*l,c=u.x+u.vx,f=u.y+u.vy,a.visit(g);function g(t,e,n,o,a){var s=t.data,d=t.r,p=l+d;if(!s)return e>c+p||o<c-p||n>f+p||a<f-p;if(s.index>u.index){var g=c-s.x-s.vx,v=f-s.y-s.vy,y=g*g+v*v;y<p*p&&(0===g&&(g=C(r),y+=g*g),0===v&&(v=C(r),y+=v*v),y=(p-(y=Math.sqrt(y)))/y*i,u.vx+=(g*=y)*(p=(d*=d)/(h+d)),u.vy+=(v*=y)*p,s.vx-=g*(p=1-p),s.vy-=v*p)}}}function s(t){if(t.data)return t.r=n[t.data.index];for(var e=t.r=0;e<4;++e)t[e]&&t[e].r>t.r&&(t.r=t[e].r)}function u(){if(e){var r,i,o=e.length;for(n=new Array(o),r=0;r<o;++r)i=e[r],n[i.index]=+t(i,r,e)}}return"function"!==typeof t&&(t=k(null==t?1:+t)),a.initialize=function(t,n){e=t,r=n,u()},a.iterations=function(t){return arguments.length?(o=+t,a):o},a.strength=function(t){return arguments.length?(i=+t,a):i},a.radius=function(e){return arguments.length?(t="function"===typeof e?e:k(+e),u(),a):t},a};function j(t){return t.index}function I(t,e){var n=t.get(e);if(!n)throw new Error("node not found: "+e);return n}var T=function(t){var e,n,r,i,o,a,s=j,u=l,c=k(30),f=1;function l(t){return 1/Math.min(i[t.source.index],i[t.target.index])}function h(r){for(var i=0,s=t.length;i<f;++i)for(var u,c,l,h,d,p,g,v=0;v<s;++v)u=t[v],c=u.source,l=u.target,h=l.x+l.vx-c.x-c.vx||C(a),d=l.y+l.vy-c.y-c.vy||C(a),p=Math.sqrt(h*h+d*d),p=(p-n[v])/p*r*e[v],h*=p,d*=p,l.vx-=h*(g=o[v]),l.vy-=d*g,c.vx+=h*(g=1-g),c.vy+=d*g}function d(){if(r){var a,u,c=r.length,f=t.length,l=new Map(r.map((t,e)=>[s(t,e,r),t]));for(a=0,i=new Array(c);a<f;++a)u=t[a],u.index=a,"object"!==typeof u.source&&(u.source=I(l,u.source)),"object"!==typeof u.target&&(u.target=I(l,u.target)),i[u.source.index]=(i[u.source.index]||0)+1,i[u.target.index]=(i[u.target.index]||0)+1;for(a=0,o=new Array(f);a<f;++a)u=t[a],o[a]=i[u.source.index]/(i[u.source.index]+i[u.target.index]);e=new Array(f),p(),n=new Array(f),g()}}function p(){if(r)for(var n=0,i=t.length;n<i;++n)e[n]=+u(t[n],n,t)}function g(){if(r)for(var e=0,i=t.length;e<i;++e)n[e]=+c(t[e],e,t)}return null==t&&(t=[]),h.initialize=function(t,e){r=t,a=e,d()},h.links=function(e){return arguments.length?(t=e,d(),h):t},h.id=function(t){return arguments.length?(s=t,h):s},h.iterations=function(t){return arguments.length?(f=+t,h):f},h.strength=function(t){return arguments.length?(u="function"===typeof t?t:k(+t),p(),h):u},h.distance=function(t){return arguments.length?(c="function"===typeof t?t:k(+t),g(),h):c},h},B={value:()=>{}};function N(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new D(r)}function D(t){this._=t}function L(t,e){return t.trim().split(/^|\s+/).map((function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function R(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function z(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=B,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}D.prototype=N.prototype={constructor:D,on:function(t,e){var n,r=this._,i=L(t+"",r),o=-1,a=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!==typeof e)throw new Error("invalid callback: "+e);while(++o<a)if(n=(t=i[o]).type)r[n]=z(r[n],t.name,e);else if(null==e)for(n in r)r[n]=z(r[n],t.name,null);return this}while(++o<a)if((n=(t=i[o]).type)&&(n=R(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new D(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(r=this._[t],o=0,n=r.length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};var F,G,Y=N,X=0,V=0,q=0,U=1e3,W=0,H=0,Z=0,$="object"===typeof performance&&performance.now?performance:Date,Q="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function K(){return H||(Q(J),H=$.now()+Z)}function J(){H=0}function tt(){this._call=this._time=this._next=null}function et(t,e,n){var r=new tt;return r.restart(t,e,n),r}function nt(){K(),++X;var t,e=F;while(e)(t=H-e._time)>=0&&e._call.call(null,t),e=e._next;--X}function rt(){H=(W=$.now())+Z,X=V=0;try{nt()}finally{X=0,ot(),H=0}}function it(){var t=$.now(),e=t-W;e>U&&(Z-=e,W=t)}function ot(){var t,e,n=F,r=1/0;while(n)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:F=e);G=t,at(r)}function at(t){if(!X){V&&(V=clearTimeout(V));var e=t-H;e>24?(t<1/0&&(V=setTimeout(rt,t-$.now()-Z)),q&&(q=clearInterval(q))):(q||(W=$.now(),q=setInterval(it,U)),X=1,Q(rt))}}tt.prototype=et.prototype={constructor:tt,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?K():+n)+(null==e?0:+e),this._next||G===this||(G?G._next=this:F=this,G=this),this._call=t,this._time=n,at()},stop:function(){this._call&&(this._call=null,this._time=1/0,at())}};const st=1664525,ut=1013904223,ct=4294967296;var ft=function(){let t=1;return()=>(t=(st*t+ut)%ct)/ct};function lt(t){return t.x}function ht(t){return t.y}var dt=10,pt=Math.PI*(3-Math.sqrt(5)),gt=function(t){var e,n=1,r=.001,i=1-Math.pow(r,1/300),o=0,a=.6,s=new Map,u=et(l),c=Y("tick","end"),f=ft();function l(){h(),c.call("tick",e),n<r&&(u.stop(),c.call("end",e))}function h(r){var u,c,f=t.length;void 0===r&&(r=1);for(var l=0;l<r;++l)for(n+=(o-n)*i,s.forEach((function(t){t(n)})),u=0;u<f;++u)c=t[u],null==c.fx?c.x+=c.vx*=a:(c.x=c.fx,c.vx=0),null==c.fy?c.y+=c.vy*=a:(c.y=c.fy,c.vy=0);return e}function d(){for(var e,n=0,r=t.length;n<r;++n){if(e=t[n],e.index=n,null!=e.fx&&(e.x=e.fx),null!=e.fy&&(e.y=e.fy),isNaN(e.x)||isNaN(e.y)){var i=dt*Math.sqrt(.5+n),o=n*pt;e.x=i*Math.cos(o),e.y=i*Math.sin(o)}(isNaN(e.vx)||isNaN(e.vy))&&(e.vx=e.vy=0)}}function p(e){return e.initialize&&e.initialize(t,f),e}return null==t&&(t=[]),d(),e={tick:h,restart:function(){return u.restart(l),e},stop:function(){return u.stop(),e},nodes:function(n){return arguments.length?(t=n,d(),s.forEach(p),e):t},alpha:function(t){return arguments.length?(n=+t,e):n},alphaMin:function(t){return arguments.length?(r=+t,e):r},alphaDecay:function(t){return arguments.length?(i=+t,e):+i},alphaTarget:function(t){return arguments.length?(o=+t,e):o},velocityDecay:function(t){return arguments.length?(a=1-t,e):1-a},randomSource:function(t){return arguments.length?(f=t,s.forEach(p),e):f},force:function(t,n){return arguments.length>1?(null==n?s.delete(t):s.set(t,p(n)),e):s.get(t)},find:function(e,n,r){var i,o,a,s,u,c=0,f=t.length;for(null==r?r=1/0:r*=r,c=0;c<f;++c)s=t[c],i=e-s.x,o=n-s.y,a=i*i+o*o,a<r&&(u=s,r=a);return u},on:function(t,n){return arguments.length>1?(c.on(t,n),e):c.on(t)}}},vt=function(){var t,e,n,r,i,o=k(-30),a=1,s=1/0,u=.81;function c(n){var i,o=t.length,a=M(t,lt,ht).visitAfter(l);for(r=n,i=0;i<o;++i)e=t[i],a.visit(h)}function f(){if(t){var e,n,r=t.length;for(i=new Array(r),e=0;e<r;++e)n=t[e],i[n.index]=+o(n,e,t)}}function l(t){var e,n,r,o,a,s=0,u=0;if(t.length){for(r=o=a=0;a<4;++a)(e=t[a])&&(n=Math.abs(e.value))&&(s+=e.value,u+=n,r+=n*e.x,o+=n*e.y);t.x=r/u,t.y=o/u}else{e=t,e.x=e.data.x,e.y=e.data.y;do{s+=i[e.data.index]}while(e=e.next)}t.value=s}function h(t,o,c,f){if(!t.value)return!0;var l=t.x-e.x,h=t.y-e.y,d=f-o,p=l*l+h*h;if(d*d/u<p)return p<s&&(0===l&&(l=C(n),p+=l*l),0===h&&(h=C(n),p+=h*h),p<a&&(p=Math.sqrt(a*p)),e.vx+=l*t.value*r/p,e.vy+=h*t.value*r/p),!0;if(!(t.length||p>=s)){(t.data!==e||t.next)&&(0===l&&(l=C(n),p+=l*l),0===h&&(h=C(n),p+=h*h),p<a&&(p=Math.sqrt(a*p)));do{t.data!==e&&(d=i[t.data.index]*r/p,e.vx+=l*d,e.vy+=h*d)}while(t=t.next)}}return c.initialize=function(e,r){t=e,n=r,f()},c.strength=function(t){return arguments.length?(o="function"===typeof t?t:k(+t),f(),c):o},c.distanceMin=function(t){return arguments.length?(a=t*t,c):Math.sqrt(a)},c.distanceMax=function(t){return arguments.length?(s=t*t,c):Math.sqrt(s)},c.theta=function(t){return arguments.length?(u=t*t,c):Math.sqrt(u)},c},yt=function(t,e,n){var r,i,o,a=k(.1);function s(t){for(var a=0,s=r.length;a<s;++a){var u=r[a],c=u.x-e||1e-6,f=u.y-n||1e-6,l=Math.sqrt(c*c+f*f),h=(o[a]-l)*i[a]*t/l;u.vx+=c*h,u.vy+=f*h}}function u(){if(r){var e,n=r.length;for(i=new Array(n),o=new Array(n),e=0;e<n;++e)o[e]=+t(r[e],e,r),i[e]=isNaN(o[e])?0:+a(r[e],e,r)}}return"function"!==typeof t&&(t=k(+t)),null==e&&(e=0),null==n&&(n=0),s.initialize=function(t){r=t,u()},s.strength=function(t){return arguments.length?(a="function"===typeof t?t:k(+t),u(),s):a},s.radius=function(e){return arguments.length?(t="function"===typeof e?e:k(+e),u(),s):t},s.x=function(t){return arguments.length?(e=+t,s):e},s.y=function(t){return arguments.length?(n=+t,s):n},s},mt=function(t){var e,n,r,i=k(.1);function o(t){for(var i,o=0,a=e.length;o<a;++o)i=e[o],i.vx+=(r[o]-i.x)*n[o]*t}function a(){if(e){var o,a=e.length;for(n=new Array(a),r=new Array(a),o=0;o<a;++o)n[o]=isNaN(r[o]=+t(e[o],o,e))?0:+i(e[o],o,e)}}return"function"!==typeof t&&(t=k(null==t?0:+t)),o.initialize=function(t){e=t,a()},o.strength=function(t){return arguments.length?(i="function"===typeof t?t:k(+t),a(),o):i},o.x=function(e){return arguments.length?(t="function"===typeof e?e:k(+e),a(),o):t},o},bt=function(t){var e,n,r,i=k(.1);function o(t){for(var i,o=0,a=e.length;o<a;++o)i=e[o],i.vy+=(r[o]-i.y)*n[o]*t}function a(){if(e){var o,a=e.length;for(n=new Array(a),r=new Array(a),o=0;o<a;++o)n[o]=isNaN(r[o]=+t(e[o],o,e))?0:+i(e[o],o,e)}}return"function"!==typeof t&&(t=k(null==t?0:+t)),o.initialize=function(t){e=t,a()},o.strength=function(t){return arguments.length?(i="function"===typeof t?t:k(+t),a(),o):i},o.y=function(e){return arguments.length?(t="function"===typeof e?e:k(+e),a(),o):t},o}},"0a73":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),i=n("8937"),o=n("d531"),a=n("404b"),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="marker",e.canFill=!0,e.canStroke=!0,e}return r.__extends(e,t),e.prototype.createPath=function(t){var e=this.get("el");e.setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var t=this._getPath();return i.isArray(t)?t.map((function(t){return t.join(" ")})).join(""):t},e.prototype._getPath=function(){var t,e=this.attr(),n=e.x,r=e.y,o=e.r||e.radius,s=e.symbol||"circle";return t=i.isFunction(s)?s:a.default.get(s),t?t(n,r,o):(console.warn(t+" symbol is not exist."),null)},e.symbolsFactory=a.default,e}(o.default);e.default=s},"0b07":function(t,e,n){var r=n("34ac"),i=n("3698");function o(t,e){var n=i(t,e);return r(n)?n:void 0}t.exports=o},"0b8b":function(t,e,n){"use strict";var r=n("e849"),i=r.longestPath,o=n("1845"),a=n("74e8");function s(t){switch(t.graph().ranker){case"network-simplex":f(t);break;case"tight-tree":c(t);break;case"longest-path":u(t);break;default:f(t)}}t.exports=s;var u=i;function c(t){i(t),o(t)}function f(t){a(t)}},"0c05":function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return p}));var r=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},i=function(){function t(t,e,n){this.name=t,this.version=e,this.os=n,this.type="browser"}return t}(),o=function(){function e(e){this.version=e,this.type="node",this.name="node",this.os=t.platform}return e}(),a=function(){function t(t,e,n,r){this.name=t,this.version=e,this.os=n,this.bot=r,this.type="bot-device"}return t}(),s=function(){function t(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return t}(),u=function(){function t(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return t}(),c=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,f=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,l=3,h=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",c]],d=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function p(t){return t?v(t):"undefined"===typeof document&&"undefined"!==typeof navigator&&"ReactNative"===navigator.product?new u:"undefined"!==typeof navigator?v(navigator.userAgent):m()}function g(t){return""!==t&&h.reduce((function(e,n){var r=n[0],i=n[1];if(e)return e;var o=i.exec(t);return!!o&&[r,o]}),!1)}function v(t){var e=g(t);if(!e)return null;var n=e[0],o=e[1];if("searchbot"===n)return new s;var u=o[1]&&o[1].split(".").join("_").split("_").slice(0,3);u?u.length<l&&(u=r(r([],u,!0),b(l-u.length),!0)):u=[];var c=u.join("."),h=y(t),d=f.exec(t);return d&&d[1]?new a(n,c,h,d[1]):new i(n,c,h)}function y(t){for(var e=0,n=d.length;e<n;e++){var r=d[e],i=r[0],o=r[1],a=o.exec(t);if(a)return i}return null}function m(){var e="undefined"!==typeof t&&t.version;return e?new o(t.version.slice(1)):null}function b(t){for(var e=[],n=0;n<t;n++)e.push("0");return e}}).call(this,n("4362"))},"0cc2":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),i=n("6855"),o=n("c27f"),a=n("92ca"),s=n("c0e4"),u=n("31c4"),c=n("516b"),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e["renderer"]="canvas",e["autoDraw"]=!0,e["localRefresh"]=!0,e["refreshElements"]=[],e["clipView"]=!0,e["quickHit"]=!1,e},e.prototype.onCanvasChange=function(t){"attr"!==t&&"sort"!==t&&"changeSize"!==t||(this.set("refreshElements",[this]),this.draw())},e.prototype.getShapeBase=function(){return a},e.prototype.getGroupBase=function(){return s.default},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||c.getPixelRatio();return t>=1?Math.ceil(t):1},e.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.get("width"),maxY:this.get("height")}},e.prototype.createDom=function(){var t=document.createElement("canvas"),e=t.getContext("2d");return this.set("context",e),t},e.prototype.setDOMSize=function(e,n){t.prototype.setDOMSize.call(this,e,n);var r=this.get("context"),i=this.get("el"),o=this.getPixelRatio();i.width=o*e,i.height=o*n,o>1&&r.scale(o,o)},e.prototype.clear=function(){t.prototype.clear.call(this),this._clearFrame();var e=this.get("context"),n=this.get("el");e.clearRect(0,0,n.width,n.height)},e.prototype.getShape=function(e,n){return this.get("quickHit")?o.getShape(this,e,n):t.prototype.getShape.call(this,e,n,null)},e.prototype._getRefreshRegion=function(){var t,e=this.get("refreshElements"),n=this.getViewRange();if(e.length&&e[0]===this)t=n;else if(t=u.getMergedRegion(e),t){t.minX=Math.floor(t.minX),t.minY=Math.floor(t.minY),t.maxX=Math.ceil(t.maxX),t.maxY=Math.ceil(t.maxY);var r=this.get("clipView");r&&(t=u.mergeView(t,n))}return t},e.prototype.refreshElement=function(t){var e=this.get("refreshElements");e.push(t)},e.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&(c.clearAnimationFrame(t),this.set("drawFrame",null),this.set("refreshElements",[]))},e.prototype.draw=function(){var t=this.get("drawFrame");this.get("autoDraw")&&t||this._startDraw()},e.prototype._drawAll=function(){var t=this.get("context"),e=this.get("el"),n=this.getChildren();t.clearRect(0,0,e.width,e.height),u.applyAttrsToContext(t,this),u.drawChildren(t,n),this.set("refreshElements",[])},e.prototype._drawRegion=function(){var t=this.get("context"),e=this.get("refreshElements"),n=this.getChildren(),r=this._getRefreshRegion();r&&(t.clearRect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.save(),t.beginPath(),t.rect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.clip(),u.applyAttrsToContext(t,this),u.drawChildren(t,n,r),t.restore()),c.each(e,(function(t){t.get("hasChanged")&&t.set("hasChanged",!1)})),this.set("refreshElements",[])},e.prototype._startDraw=function(){var t=this,e=this.get("drawFrame");e||(e=c.requestAnimationFrame((function(){t.get("localRefresh")?t._drawRegion():t._drawAll(),t.set("drawFrame",null)})),this.set("drawFrame",e))},e.prototype.skipDraw=function(){},e}(i.AbstractCanvas);e.default=f},"0d24":function(t,e,n){(function(t){var r=n("2b3e"),i=n("07c7"),o=e&&!e.nodeType&&e,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===o,u=s?r.Buffer:void 0,c=u?u.isBuffer:void 0,f=c||i;t.exports=f}).call(this,n("62e4")(t))},"0d3b":function(t,e,n){var r=n("d039"),i=n("b622"),o=n("c430"),a=i("iterator");t.exports=!r((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,n="";return t.pathname="c%20d",e.forEach((function(t,r){e["delete"]("b"),n+=r+t})),o&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},"0da4":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("72fb"),i=n("2047"),o=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return r.default(t,(function(n,r){i.default(t)&&"prototype"===r||e.push(r)})),e};e.default=o},"0dfa":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getDegree=e.rotate=e.scale=e.move=e.translate=e.getAdjMatrix=e.floydWarshall=e.scaleMatrix=e.distance=e.getCircleCenterByPoints=e.invertMatrix=e.applyMatrix=e.getEllipseIntersectByPoint=e.getCircleIntersectByPoint=e.getRectIntersectByPoint=void 0;var r=n("e897"),i=o(n("01f9"));function o(t){return t&&t.__esModule?t:{default:t}}var a=function(t,e,n){return t>=e&&t<=n},s=function(t,e,n,r){var i=.001,o={x:n.x-t.x,y:n.y-t.y},s={x:e.x-t.x,y:e.y-t.y},u={x:r.x-n.x,y:r.y-n.y},c=s.x*u.y-s.y*u.x,f=c*c,l=s.x*s.x+s.y*s.y,h=u.x*u.x+u.y*u.y,d=null;if(f>i*l*h){var p=(o.x*u.y-o.y*u.x)/c,g=(o.x*s.y-o.y*s.x)/c;a(p,0,1)&&a(g,0,1)&&(d={x:t.x+p*s.x,y:t.y+p*s.y})}return d},u=function(t,e){var n=t.x,r=t.y,i=t.width,o=t.height,a=n+i/2,u=r+o/2,c=[],f={x:a,y:u};c.push({x:n,y:r}),c.push({x:n+i,y:r}),c.push({x:n+i,y:r+o}),c.push({x:n,y:r+o}),c.push({x:n,y:r});for(var l=null,h=1;h<c.length;h++)if(l=s(c[h-1],c[h],f,e),l)break;return l};e.getRectIntersectByPoint=u;var c=function(t,e){var n=t.x,r=t.y,i=t.r,o=e.x,a=e.y,s=o-n,u=a-r,c=Math.sqrt(s*s+u*u);if(c<i)return null;var f=Math.sign(s),l=Math.sign(u),h=Math.atan(u/s);return{x:n+Math.abs(i*Math.cos(h))*f,y:r+Math.abs(i*Math.sin(h))*l}};e.getCircleIntersectByPoint=c;var f=function(t,e){var n=t.rx,r=t.ry,i=t.x,o=t.y,a=e.x-i,s=e.y-o,u=Math.atan2(s/r,a/n);return u<0&&(u+=2*Math.PI),{x:i+n*Math.cos(u),y:o+r*Math.sin(u)}};e.getEllipseIntersectByPoint=f;var l=function(t,e,n){void 0===n&&(n=1);var i=[t.x,t.y,n];return e&&NaN!==e[0]||(e=r.mat3.create()),r.vec3.transformMat3(i,i,e),{x:i[0],y:i[1]}};e.applyMatrix=l;var h=function(t,e,n){void 0===n&&(n=1),e&&NaN!==e[0]||(e=r.mat3.create());var i=r.mat3.invert([],e);i||(i=r.mat3.create());var o=[t.x,t.y,n];return r.vec3.transformMat3(o,o,i),{x:o[0],y:o[1]}};e.invertMatrix=h;var d=function(t,e,n){var r=t.x-e.x,i=t.y-e.y,o=t.x-n.x,a=t.y-n.y,s=(t.x*t.x-e.x*e.x-e.y*e.y+t.y*t.y)/2,u=(t.x*t.x-n.x*n.x-n.y*n.y+t.y*t.y)/2,c=i*o-r*a;return{x:-(a*s-i*u)/c,y:-(r*u-o*s)/c}};e.getCircleCenterByPoints=d;var p=function(t,e){var n=t.x-e.x,r=t.y-e.y;return Math.sqrt(n*n+r*r)};e.distance=p;var g=function(t,e){var n=[];return t.forEach((function(t){var r=[];t.forEach((function(t){r.push(t*e)})),n.push(r)})),n};e.scaleMatrix=g;var v=function(t){for(var e=[],n=t.length,r=0;r<n;r+=1){e[r]=[];for(var i=0;i<n;i+=1)r===i?e[r][i]=0:0!==t[r][i]&&t[r][i]?e[r][i]=t[r][i]:e[r][i]=1/0}for(var o=0;o<n;o+=1)for(r=0;r<n;r+=1)for(i=0;i<n;i+=1)e[r][i]>e[r][o]+e[o][i]&&(e[r][i]=e[r][o]+e[o][i]);return e};e.floydWarshall=v;var y=function(t,e){var n=t.nodes,r=t.edges,i=[],o={};if(!n)throw new Error("invalid nodes data!");return n&&n.forEach((function(t,e){o[t.id]=e;var n=[];i.push(n)})),r&&r.forEach((function(t){var n=t.source,r=t.target,a=o[n],s=o[r];i[a][s]=1,e||(i[s][a]=1)})),i};e.getAdjMatrix=y;var m=function(t,e){t.translate(e.x,e.y)};e.translate=m;var b=function(t,e){var n=t.getMatrix();n||(n=r.mat3.create());var i=t.getCanvasBBox(),o=e.x-i.minX,a=e.y-i.minY,s=(0,r.transform)(n,[["t",o,a]]);t.setMatrix(s)};e.move=b;var x=function(t,e){var n=t.getMatrix();n||(n=r.mat3.create());var o=e;(0,i.default)(e)||(o=[e,e]),(0,i.default)(e)&&1===e.length&&(o=[e[0],e[0]]),n=(0,r.transform)(n,[["s",o[0],o[1]]]),t.setMatrix(n)};e.scale=x;var w=function(t,e){var n=t.getMatrix();n||(n=r.mat3.create()),n=(0,r.transform)(n,[["r",e]]),t.setMatrix(n)};e.rotate=w;var M=function(t,e,n){for(var r=[],i=0;i<t;i++)r[i]=0;return n.forEach((function(t){t.source&&(r[e[t.source]]+=1),t.target&&(r[e[t.target]]+=1)})),r};e.getDegree=M},"0f0f":function(t,e,n){var r=n("8eeb"),i=n("9934");function o(t,e){return t&&r(e,i(e),t)}t.exports=o},"0f5a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=function(){function t(e){this.compare=e||t.defaultCompareFunction}return t.defaultCompareFunction=function(t,e){return t===e?0:t<e?-1:1},t.prototype.equal=function(t,e){return 0===this.compare(t,e)},t.prototype.lessThan=function(t,e){return this.compare(t,e)<0},t.prototype.greaterThan=function(t,e){return this.compare(t,e)>0},t.prototype.lessThanOrEqual=function(t,e){return this.lessThan(t,e)||this.equal(t,e)},t.prototype.greaterThanOrEqual=function(t,e){return this.greaterThan(t,e)||this.equal(t,e)},t.prototype.reverse=function(){var t=this.compare;this.compare=function(e,n){return t(n,e)}},t}(),i=r;e.default=i},"100e":function(t,e,n){var r=n("cd9d"),i=n("2286"),o=n("c1c9");function a(t,e){return o(i(t,e,r),t+"")}t.exports=a},1041:function(t,e,n){var r=n("8eeb"),i=n("a029");function o(t,e){return r(t,i(t),e)}t.exports=o},1290:function(t,e){function n(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}t.exports=n},1304:function(t,e,n){var r=n("cd9d");function i(t){return"function"==typeof t?t:r}t.exports=i},1310:function(t,e){function n(t){return null!=t&&"object"==typeof t}t.exports=n},"131a":function(t,e,n){var r=n("23e7"),i=n("d2bb");r({target:"Object",stat:!0},{setPrototypeOf:i})},1322:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("00c0");e.getBBoxMethod=r.getMethod;var i=n("29d7"),o=n("6cac"),a=n("2b23"),s=n("79cf"),u=n("83bc"),c=n("2d1f"),f=n("d5f3"),l=n("71f5");r.register("rect",i.default),r.register("image",i.default),r.register("circle",o.default),r.register("marker",o.default),r.register("polyline",a.default),r.register("polygon",s.default),r.register("text",u.default),r.register("path",c.default),r.register("line",f.default),r.register("ellipse",l.default)},1368:function(t,e,n){var r=n("da03"),i=function(){var t=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function o(t){return!!i&&i in t}t.exports=o},"13c9":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=a(n("1b95")),i=a(n("72fb")),o=a(n("eafe"));function a(t){return t&&t.__esModule?t:{default:t}}var s=function(){function t(t){this._cfgs=(0,r.default)(this.getDefaultCfgs(),t),this._events={},this.destroyed=!1}return t.prototype.getDefaultCfgs=function(){return{}},t.prototype.initPlugin=function(t){var e=this;e.set("graph",t);var n=e.getEvents(),r={};(0,i.default)(n,(function(n,i){var a=(0,o.default)(e,n);r[i]=a,t.on(i,a)})),this._events=r,this.init()},t.prototype.init=function(){},t.prototype.getEvents=function(){return{}},t.prototype.get=function(t){return this._cfgs[t]},t.prototype.set=function(t,e){this._cfgs[t]=e},t.prototype.destroy=function(){},t.prototype.destroyPlugin=function(){this.destroy();var t=this.get("graph"),e=this._events;(0,i.default)(e,(function(e,n){t.off(n,e)})),this._events=null,this._cfgs=null,this.destroyed=!0},t}(),u=s;e.default=u},"13ea":function(t,e,n){var r=n("03dd"),i=n("42a2"),o=n("d370"),a=n("6747"),s=n("30c9"),u=n("0d24"),c=n("eac5"),f=n("73ac"),l="[object Map]",h="[object Set]",d=Object.prototype,p=d.hasOwnProperty;function g(t){if(null==t)return!0;if(s(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||u(t)||f(t)||o(t)))return!t.length;var e=i(t);if(e==l||e==h)return!t.size;if(c(t))return!r(t).length;for(var n in t)if(p.call(t,n))return!1;return!0}t.exports=g},"14ca":function(t,e,n){"use strict";var r=n("9ab4"),i=n("8937"),o=n("804a"),a=c(n("067f")),s=c(n("7da3")),u=n("6a23");function c(t){return t&&t.__esModule?t:{default:t}}var f={itemType:"node",shapeType:"single-node",labelPosition:"center",offset:a.default.nodeLabel.offset,getSize:function(t){var e=t.size||this.options.size||a.default.defaultNode.size;return(0,i.isArray)(e)&&1===e.length&&(e=[e[0],e[0]]),(0,i.isArray)(e)||(e=[e,e]),e},getLabelStyleByPosition:function(t,e){var n=e.position||this.labelPosition;if("center"===n)return{x:0,y:0,text:t.label};var r=e.offset;(0,i.isNil)(r)&&(r=this.offset);var o,a=this.getSize(t),s=a[0],u=a[1];switch(n){case"top":o={x:0,y:0-u/2-r,textBaseline:"bottom"};break;case"bottom":o={x:0,y:u/2+r,textBaseline:"top"};break;case"left":o={x:0-s/2-r,y:0,textAlign:"right"};break;default:o={x:s/2+r,y:0,textAlign:"left"};break}return o.text=t.label,o},getLabelBgStyleByPosition:function(t,e,n,a){if(!t)return{};var s=t.getBBox(),u=n.style&&n.style.background;if(!u)return{};var c=(0,o.formatPadding)(u.padding),f=s.width+c[1]+c[3],l=s.height+c[0]+c[2],h=n.position||this.labelPosition,d=n.offset;(0,i.isNil)(d)&&(d=this.offset);var p,g=this.getSize(e),v=g[0],y=g[1];switch(h){case"top":p={x:0-s.width/2-c[3],y:0-y/2-d-s.height-c[0]};break;case"bottom":p={x:0-s.width/2-c[3],y:y/2+d-c[2]};break;case"left":p={x:0-v/2-d-s.width-c[3],y:c[0]+c[2]===0?0:-s.height/2+(c[0]+c[2])/2};break;default:p={x:v/2+d-c[3],y:c[0]+c[2]===0?0:-s.height/2+(c[0]+c[2])/2};break}return p=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},p),u),{width:f,height:l}),p},drawShape:function(t,e){var n=this.shapeType,r=this.getShapeStyle(t),i=e.addShape(n,{attrs:r,draggable:!0,name:"node-shape"});return i},updateLinkPoints:function(t,e){var n,o=this.options.linkPoints,a=e.find((function(t){return"link-point-left"===t.get("className")})),s=e.find((function(t){return"link-point-right"===t.get("className")})),u=e.find((function(t){return"link-point-top"===t.get("className")})),c=e.find((function(t){return"link-point-bottom"===t.get("className")}));a&&(n=a.attr()),s&&!n&&(n=s.attr()),u&&!n&&(n=u.attr()),c&&!n&&(n=c.attr()),n||(n=o);var f=(0,i.mix)({},n,t.linkPoints),l=f.fill,h=f.stroke,d=f.lineWidth,p=f.size/2;p||(p=f.r);var g=t.linkPoints?t.linkPoints:{left:void 0,right:void 0,top:void 0,bottom:void 0},v=g.left,y=g.right,m=g.top,b=g.bottom,x=this.getSize(t),w=x[0],M=x[1],_={r:p,fill:l,stroke:h,lineWidth:d};a?v||void 0===v?a.attr((0,r.__assign)((0,r.__assign)({},_),{x:-w/2,y:0})):a.remove():v&&e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},_),{x:-w/2,y:0}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0}),s?(y||void 0===y||s.remove(),s.attr((0,r.__assign)((0,r.__assign)({},_),{x:w/2,y:0}))):y&&e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},_),{x:w/2,y:0}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0}),u?(m||void 0===m||u.remove(),u.attr((0,r.__assign)((0,r.__assign)({},_),{x:0,y:-M/2}))):m&&e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},_),{x:0,y:-M/2}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0}),c?b||void 0===b?c.attr((0,r.__assign)((0,r.__assign)({},_),{x:0,y:M/2})):c.remove():b&&e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},_),{x:0,y:M/2}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0})},updateShape:function(t,e,n,i){var o=e.get("keyShape");o.attr((0,r.__assign)({},n)),this.updateLabel(t,e),i&&this.updateIcon(t,e)},updateIcon:function(t,e){var n=this,o=e.getContainer(),a=this.options.icon,s=(0,i.mix)({},a,t.icon),u=(t.icon?t.icon:{show:void 0}).show,c=o.find((function(t){return t.get("className")===n.type+"-icon"}));if(c)if(u||void 0===u){var f=(0,i.mix)({},a,c.attr(),t.icon),l=f.width,h=f.height;c.attr((0,r.__assign)((0,r.__assign)({},f),{x:-l/2,y:-h/2}))}else c.remove();else if(u){l=s.width,h=s.height;o.addShape("image",{attrs:(0,r.__assign)((0,r.__assign)({},s),{x:-l/2,y:-h/2}),className:this.type+"-icon",name:this.type+"-icon"});var d=o.find((function(t){return"node-label"===t.get("className")}));d&&d.toFront()}}},l=Object.assign({},u.shapeBase,f);s.default.registerNode("single-node",l)},1529:function(t,e,n){"use strict";var r=n("9ab4"),i=s(n("1b95")),o=s(n("067f")),a=s(n("7da3"));function s(t){return t&&t.__esModule?t:{default:t}}a.default.registerNode("circle",{options:{size:o.default.defaultNode.size,style:{x:0,y:0,stroke:o.default.defaultShapeStrokeColor,fill:o.default.defaultShapeFillColor,lineWidth:o.default.defaultNode.style.lineWidth},labelCfg:{style:{fill:"#595959"}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:3,lineWidth:1,fill:"#72CC4A",stroke:"#72CC4A"},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/basement_prod/012bcf4f-423b-4922-8c24-32a89f8c41ce.svg",width:16,height:16}},shapeType:"circle",labelPosition:"center",drawShape:function(t,e){var n=this.options.icon,o=this.getShapeStyle(t),a=(0,i.default)({},n,t.icon),s=e.addShape("circle",{attrs:o,className:"circle-keyShape",draggable:!0}),u=a.width,c=a.height,f=a.show;if(f)e.addShape("image",{attrs:(0,r.__assign)({x:-u/2,y:-c/2},a),className:"circle-icon",name:"circle-icon",draggable:!0});return this.drawLinkPoints(t,e),s},drawLinkPoints:function(t,e){var n=this.options.linkPoints,o=(0,i.default)({},n,t.linkPoints),a=o.top,s=o.left,u=o.right,c=o.bottom,f=o.size,l=(0,r.__rest)(o,["top","left","right","bottom","size"]),h=this.getSize(t),d=h[0]/2;s&&e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},l),{x:-d,y:0,r:f}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0}),u&&e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},l),{x:d,y:0,r:f}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0}),a&&e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},l),{x:0,y:-d,r:f}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0}),c&&e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},l),{x:0,y:d,r:f}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0})},getShapeStyle:function(t){var e=this.options.style,n={stroke:t.color},r=(0,i.default)({},e,n,t.style),o=this.getSize(t),a=o[0]/2,s=Object.assign({},{x:0,y:0,r:a},r);return s},update:function(t,e){var n=e.getContainer(),r=this.getSize(t),o={stroke:t.color,r:r[0]/2},a=e.get("keyShape"),s=(0,i.default)({},a.attr(),o,t.style);this.updateShape(t,e,s,!0),this.updateLinkPoints(t,n)}},"single-node")},"157e":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=s(n("72fb")),i=s(n("01f9")),o=s(n("61d8")),a=s(n("2f92"));function s(t){return t&&t.__esModule?t:{default:t}}var u=function(){function t(t){this.graph=t,this.destroyed=!1,this.modes=t.get("modes")||{default:[]},this.formatModes(),this.mode=t.get("defaultMode")||"default",this.currentBehaves=[],this.setMode(this.mode)}return t.prototype.formatModes=function(){var t=this.modes;(0,r.default)(t,(function(t){(0,r.default)(t,(function(e,n){(0,o.default)(e)&&(t[n]={type:e})}))}))},t.prototype.setBehaviors=function(t){var e,n=this.graph,i=this.modes[t],o=[];(0,r.default)(i||[],(function(t){var r=a.default.getBehavior(t.type);r&&(e=new r(t),e&&(e.bind(n),o.push(e)))})),this.currentBehaves=o},t.mergeBehaviors=function(t,e){return(0,r.default)(e,(function(e){t.indexOf(e)<0&&((0,o.default)(e)&&(e={type:e}),t.push(e))})),t},t.filterBehaviors=function(t,e){var n=[];return t.forEach((function(t){var r="";r=(0,o.default)(t)?t:t.type,e.indexOf(r)<0&&n.push(t)})),n},t.prototype.setMode=function(t){var e=this,n=e.modes,i=e.graph,o=t,a=n[o];a&&(i.emit("beforemodechange",{mode:t}),(0,r.default)(this.currentBehaves,(function(t){t.unbind(i)})),this.setBehaviors(o),i.emit("aftermodechange",{mode:t}),this.mode=t)},t.prototype.getMode=function(){return this.mode},t.prototype.manipulateBehaviors=function(e,n,o){var a,s=this;if(a=(0,i.default)(e)?e:[e],(0,i.default)(n))return(0,r.default)(n,(function(e){s.modes[e]?s.modes[e]=o?t.mergeBehaviors(s.modes[e]||[],a):t.filterBehaviors(s.modes[e]||[],a):o&&(s.modes[e]=a)})),this;var u=n;return n||(u=this.mode),this.modes[u]||o&&(this.modes[u]=a),this.modes[u]=o?t.mergeBehaviors(this.modes[u]||[],a):t.filterBehaviors(this.modes[u]||[],a),this.setMode(this.mode),this},t.prototype.destroy=function(){this.graph=null,this.modes=null,this.currentBehaves=null,this.destroyed=!0},t}(),c=u;e.default=c},"159a":function(t,e,n){var r=n("32b3"),i=n("e2e4"),o=n("c098"),a=n("1a8c"),s=n("f4d6");function u(t,e,n,u){if(!a(t))return t;e=i(e,t);var c=-1,f=e.length,l=f-1,h=t;while(null!=h&&++c<f){var d=s(e[c]),p=n;if("__proto__"===d||"constructor"===d||"prototype"===d)return t;if(c!=l){var g=h[d];p=u?u(g,d,h):void 0,void 0===p&&(p=a(g)?g:o(e[c+1])?[]:{})}r(h,d,p),h=h[d]}return t}t.exports=u},"15f3":function(t,e,n){var r=n("89d9"),i=n("8604");function o(t,e){return r(t,e,(function(e,n){return i(t,n)}))}t.exports=o},1649:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=c(n("842b")),i=c(n("61d8")),o=n("804a"),a=n("0dfa"),s=n("e897"),u=c(n("c360"));function c(t){return t&&t.__esModule?t:{default:t}}var f=function(){function t(t){this.destroyed=!1,this.graph=t,this.destroyed=!1}return t.prototype.getViewCenter=function(){var t=this.getFormatPadding(),e=this.graph,n=this.graph.get("width"),r=e.get("height");return{x:(n-t[2]-t[3])/2+t[3],y:(r-t[0]-t[2])/2+t[0]}},t.prototype.fitCenter=function(){var t=this.graph,e=(t.get("width"),t.get("height"),t.get("group"));e.resetMatrix();var n=e.getCanvasBBox();if(0!==n.width&&0!==n.height){var r=this.getViewCenter(),i={x:n.x+n.width/2,y:n.y+n.height/2};t.translate(r.x-i.x,r.y-i.y)}},t.prototype.fitView=function(){var t=this.graph,e=this.getFormatPadding(),n=t.get("width"),r=t.get("height"),i=t.get("group");i.resetMatrix();var o=i.getCanvasBBox();if(0!==o.width&&0!==o.height){var a=this.getViewCenter(),s={x:o.x+o.width/2,y:o.y+o.height/2};t.translate(a.x-s.x,a.y-s.y);var u=(n-e[1]-e[3])/o.width,c=(r-e[0]-e[2])/o.height,f=u;u>c&&(f=c),t.zoom(f,a)}},t.prototype.getFormatPadding=function(){var t=this.graph.get("fitViewPadding");return(0,o.formatPadding)(t)},t.prototype.focusPoint=function(t){var e=this.getViewCenter(),n=this.getPointByCanvas(e.x,e.y),r=this.graph.get("group").getMatrix();r||(r=s.mat3.create()),this.graph.translate((n.x-t.x)*r[0],(n.y-t.y)*r[4])},t.prototype.getPointByCanvas=function(t,e){var n=this.graph.get("group").getMatrix();n||(n=s.mat3.create());var r=(0,a.invertMatrix)({x:t,y:e},n);return r},t.prototype.getPointByClient=function(t,e){var n=this.graph.get("canvas"),r=n.getPointByClient(t,e);return this.getPointByCanvas(r.x,r.y)},t.prototype.getClientByPoint=function(t,e){var n=this.graph.get("canvas"),r=this.getCanvasByPoint(t,e),i=n.getClientByPoint(r.x,r.y);return{x:i.x,y:i.y}},t.prototype.getCanvasByPoint=function(t,e){var n=this.graph.get("group").getMatrix();return n||(n=s.mat3.create()),(0,a.applyMatrix)({x:t,y:e},n)},t.prototype.focus=function(t){if((0,i.default)(t)&&(t=this.graph.findById(t)),t){var e=t.get("group"),n=e.getMatrix();n||(n=s.mat3.create()),this.focusPoint({x:n[6],y:n[7]})}},t.prototype.changeSize=function(t,e){var n=this.graph;if(!(0,r.default)(t)||!(0,r.default)(e))throw Error("invalid canvas width & height, please make sure width & height type is number");n.set({width:t,height:e});var i=n.get("canvas");i.changeSize(t,e);var o=n.get("plugins");o.forEach((function(r){if(r.get("gridContainer")){var i=n.get("minZoom");(0,u.default)(r.get("container"),{width:t+"px",height:e+"px"}),(0,u.default)(r.get("gridContainer"),{width:t/i+"px",height:e/i+"px",left:0,top:0})}}))},t.prototype.destroy=function(){this.graph=null,this.destroyed=!1},t}(),l=f;e.default=l},1729:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("9ab4"),i=d(n("01f9")),o=d(n("842b")),a=d(n("61d8")),s=d(n("2047")),u=n("0dfa"),c=n("804a"),f=n("56fa"),l=d(n("1dfb")),h=d(n("bb07"));function d(t){return t&&t.__esModule?t:{default:t}}function p(t){for(var e=t.length,n=t[0].length,r=[],i=0;i<e;i++){for(var o=[],a=0;a<n;a++)0!==t[i][a]?o.push(1/(t[i][a]*t[i][a])):o.push(0);r.push(o)}return r}function g(t,e){var n=-1;return t.forEach((function(t,r){t.id===e&&(n=r)})),n}function v(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=[0,0],e.maxIteration=1e3,e.focusNode=null,e.unitRadius=null,e.linkDistance=50,e.preventOverlap=!1,e.strictRadial=!0,e.maxPreventOverlapIteration=200,e.sortStrength=10,e}return(0,r.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{center:[0,0],maxIteration:1e3,focusNode:null,unitRadius:null,linkDistance:50,preventOverlap:!1,nodeSize:void 0,nodeSpacing:void 0,strictRadial:!0,maxPreventOverlapIteration:200,sortBy:void 0,sortStrength:10}},e.prototype.execute=function(){var t=this,e=t.nodes,n=t.edges||[],r=t.center;if(e&&0!==e.length){if(1===e.length)return e[0].x=r[0],void(e[0].y=r[1]);var f=t.linkDistance,d=null;if((0,a.default)(t.focusNode)){for(var v=!1,y=0;y<e.length;y++)e[y].id===t.focusNode&&(d=e[y],t.focusNode=d,v=!0,y=e.length);v||(d=null)}else d=t.focusNode;d||(d=e[0],t.focusNode=d);var m=g(e,d.id);t.focusIndex=m;var b=(0,u.getAdjMatrix)({nodes:e,edges:n},!1),x=(0,u.floydWarshall)(b),w=t.maxToFocus(x,m);t.handleInfinity(x,m,w+1),t.distances=x;var M=x[m];t.width||"undefined"===typeof window||(t.width=window.innerWidth),t.height||"undefined"===typeof window||(t.height=window.innerHeight);var _=t.width||500,S=t.height||500,P=_-r[0]>r[0]?r[0]:_-r[0],k=S-r[1]>r[1]?r[1]:S-r[1];0===P&&(P=_/2),0===k&&(k=S/2);var C=k>P?P:k,O=Math.max.apply(Math,M),E=[];M.forEach((function(e,n){t.unitRadius||(t.unitRadius=C/O),E[n]=e*t.unitRadius})),t.radii=E;var A=t.eIdealDisMatrix();t.eIdealDistances=A;var j=p(A);t.weights=j;var I=new l.default({distances:A,linkDistance:f}),T=I.layout();T.forEach((function(t){(0,c.isNaN)(t[0])&&(t[0]=Math.random()*f),(0,c.isNaN)(t[1])&&(t[1]=Math.random()*f)})),t.positions=T,T.forEach((function(t,n){e[n].x=t[0]+r[0],e[n].y=t[1]+r[1]})),T.forEach((function(t){t[0]-=T[m][0],t[1]-=T[m][1]})),t.run();var B,N=t.preventOverlap,D=t.nodeSize,L=t.strictRadial;if(N){var R,z=t.nodeSpacing;R=(0,o.default)(z)?function(){return z}:(0,s.default)(z)?z:function(){return 0},B=D?(0,i.default)(D)?function(t){var e=D[0]>D[1]?D[0]:D[1];return e+R(t)}:function(t){return D+R(t)}:function(t){if(t.size){if((0,i.default)(t.size)){var e=t.size[0]>t.size[1]?t.size[0]:t.size[1];return e+R(t)}return t.size+R(t)}return 10+R(t)};var F={nodeSizeFunc:B,adjMatrix:b,positions:T,radii:E,height:S,width:_,strictRadial:L,focusID:m,iterations:t.maxPreventOverlapIteration||200,k:T.length/4.5,nodes:e},G=new h.default(F);T=G.layout()}T.forEach((function(t,n){e[n].x=t[0]+r[0],e[n].y=t[1]+r[1]}))}},e.prototype.run=function(){for(var t=this,e=t.maxIteration,n=t.positions||[],r=t.weights||[],i=t.eIdealDistances||[],o=t.radii||[],a=0;a<=e;a++){var s=a/e;t.oneIteration(s,n,o,i,r)}},e.prototype.oneIteration=function(t,e,n,r,i){var o=this,a=1-t,s=o.focusIndex;e.forEach((function(o,u){var c=v(o,[0,0]),f=0===c?0:1/c;if(u!==s){var l=0,h=0,d=0;e.forEach((function(t,e){if(u!==e){var n=v(o,t),a=0===n?0:1/n,s=r[e][u];d+=i[u][e],l+=i[u][e]*(t[0]+s*(o[0]-t[0])*a),h+=i[u][e]*(t[1]+s*(o[1]-t[1])*a)}}));var p=0===n[u]?0:1/n[u];d*=a,d+=t*p*p,l*=a,l+=t*p*o[0]*f,o[0]=l/d,h*=a,h+=t*p*o[1]*f,o[1]=h/d}}))},e.prototype.eIdealDisMatrix=function(){var t=this,e=t.nodes;if(!e)return[];var n=t.distances,r=t.linkDistance,i=t.radii||[],o=t.unitRadius||50,s=[];return n&&n.forEach((function(n,u){var c=[];n.forEach((function(n,s){if(u===s)c.push(0);else if(i[u]===i[s])if("data"===t.sortBy)c.push(n*(Math.abs(u-s)*t.sortStrength)/(i[u]/o));else if(t.sortBy){var f=e[u][t.sortBy]||0,l=e[s][t.sortBy]||0;(0,a.default)(f)&&(f=f.charCodeAt(0)),(0,a.default)(l)&&(l=l.charCodeAt(0)),c.push(n*(Math.abs(f-l)*t.sortStrength)/(i[u]/o))}else c.push(n*r/(i[u]/o));else{var h=(r+o)/2;c.push(n*h)}})),s.push(c)})),s},e.prototype.handleInfinity=function(t,e,n){for(var r=t.length,i=0;i<r;i++)if(t[e][i]===1/0){t[e][i]=n,t[i][e]=n;for(var o=0;o<r;o++)t[i][o]!==1/0&&t[e][o]===1/0&&(t[e][o]=n+t[i][o],t[o][e]=n+t[i][o])}for(i=0;i<r;i++)if(i!==e)for(o=0;o<r;o++)if(t[i][o]===1/0){var a=Math.abs(t[e][i]-t[e][o]);a=0===a?1:a,t[i][o]=a}},e.prototype.maxToFocus=function(t,e){for(var n=0,r=0;r<t[e].length;r++)t[e][r]!==1/0&&(n=t[e][r]>n?t[e][r]:n);return n},e}(f.BaseLayout),m=y;e.default=m},"17d5":function(t,e,n){var r;try{r=n("e008")}catch(i){}r||(r=window.graphlib),t.exports=r},1838:function(t,e,n){var r=n("c05f"),i=n("9b02"),o=n("8604"),a=n("f608"),s=n("08cc"),u=n("20ec"),c=n("f4d6"),f=1,l=2;function h(t,e){return a(t)&&s(e)?u(c(t),e):function(n){var a=i(n,t);return void 0===a&&a===e?o(n,t):r(e,a,f|l)}}t.exports=h},1845:function(t,e,n){"use strict";var r=n("6f9c"),i=n("17d5").Graph,o=n("e849").slack;function a(t){var e,n,r=new i({directed:!1}),a=t.nodes()[0],f=t.nodeCount();r.setNode(a,{});while(s(r,t)<f)e=u(r,t),n=r.hasNode(e.v)?o(t,e):-o(t,e),c(r,t,n);return r}function s(t,e){function n(i){r.forEach(e.nodeEdges(i),(function(r){var a=r.v,s=i===a?r.w:a;t.hasNode(s)||o(e,r)||(t.setNode(s,{}),t.setEdge(i,s,{}),n(s))}))}return r.forEach(t.nodes(),n),t.nodeCount()}function u(t,e){return r.minBy(e.edges(),(function(n){if(t.hasNode(n.v)!==t.hasNode(n.w))return o(e,n)}))}function c(t,e,n){r.forEach(t.nodes(),(function(t){e.node(t).rank+=n}))}t.exports=a},"18d8":function(t,e,n){var r=n("234d"),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)})),e}));t.exports=a},"18f2":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("8937"),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,o=/[^\s\,]+/gi;function a(t){var e=t||[];return(0,r.isArray)(e)?e:(0,r.isString)(e)?(e=e.match(i),(0,r.each)(e,(function(t,n){if(t=t.match(o),t[0].length>1){var i=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=i}(0,r.each)(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0}e.default=a},"19b2":function(t,e,n){var r=n("33de"),i=n("9671");function o(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:a(t),edges:s(t)};return r.isUndefined(t.graph())||(e.value=r.clone(t.graph())),e}function a(t){return r.map(t.nodes(),(function(e){var n=t.node(e),i=t.parent(e),o={v:e};return r.isUndefined(n)||(o.value=n),r.isUndefined(i)||(o.parent=i),o}))}function s(t){return r.map(t.edges(),(function(e){var n=t.edge(e),i={v:e.v,w:e.w};return r.isUndefined(e.name)||(i.name=e.name),r.isUndefined(n)||(i.value=n),i}))}function u(t){var e=new i(t.options).setGraph(t.value);return r.each(t.nodes,(function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)})),r.each(t.edges,(function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)})),e}t.exports={write:o,read:u}},"19f7":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LAYOUT_MESSAGE=void 0;var r={RUN:"LAYOUT_RUN",END:"LAYOUT_END",ERROR:"LAYOUT_ERROR",TICK:"LAYOUT_TICK"};e.LAYOUT_MESSAGE=r},"1a2d0":function(t,e,n){var r=n("42a2"),i=n("1310"),o="[object Map]";function a(t){return i(t)&&r(t)==o}t.exports=a},"1a8c":function(t,e){function n(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=n},"1b8a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}();e.default=r},"1b92":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pointsToPolygon=e.getControlPoint=e.getSpline=void 0;var r=n("e897"),i=n("2ef1"),o=function(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,(function(t,n){return"\\"===t.charAt(0)?t.slice(1):e[n]||""})):t},a=function(t){var e=[];if(t.length<2)throw new Error("point length must largn than 2, now it's "+t.length);for(var n=0,r=t;n<r.length;n++){var o=r[n],a=o.x,s=o.y;e.push(a),e.push(s)}var u=(0,i.catmullRom2Bezier)(e);return u.unshift(["M",t[0].x,t[0].y]),u};e.getSpline=a;var s=function(t,e,n,i){void 0===n&&(n=0),void 0===i&&(i=0);var o={x:(1-n)*t.x+n*e.x,y:(1-n)*t.y+n*e.y},a=[];r.vec2.normalize(a,[e.x-t.x,e.y-t.y]),0===a.length&&(a=[0,0]);var s=[-a[1]*i,a[0]*i];return o.x+=s[0],o.y+=s[1],o};e.getControlPoint=s;var u=function(t,e){var n=t.length;if(!n)return"";for(var r="",i="",a=0;a<n;a++){var s=t[a];i=0===a?"M{x} {y}":"L{x} {y}",r+=o(i,s)}return e&&(r+="Z"),r};e.pointsToPolygon=u},"1b95":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("01f9"),i=n("cdca"),o=5;function a(t,e,n,s){for(var u in n=n||0,s=s||o,e)if(e.hasOwnProperty(u)){var c=e[u];null!==c&&i.default(c)?(i.default(t[u])||(t[u]={}),n<s?a(t[u],c,n+1,s):t[u]=e[u]):r.default(c)?(t[u]=[],t[u]=t[u].concat(c)):void 0!==c&&(t[u]=c)}}var s=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r+=1)a(t,e[r]);return t};e.default=s},"1ba9":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("842b"),i=function(t){return r.default(t)&&t>0};e.default=i},"1bac":function(t,e,n){var r=n("7d1f"),i=n("a029"),o=n("9934");function a(t){return r(t,o,i)}t.exports=a},"1c3c":function(t,e,n){var r=n("9e69"),i=n("2474"),o=n("9638"),a=n("a2be"),s=n("edfa"),u=n("ac41"),c=1,f=2,l="[object Boolean]",h="[object Date]",d="[object Error]",p="[object Map]",g="[object Number]",v="[object RegExp]",y="[object Set]",m="[object String]",b="[object Symbol]",x="[object ArrayBuffer]",w="[object DataView]",M=r?r.prototype:void 0,_=M?M.valueOf:void 0;function S(t,e,n,r,M,S,P){switch(n){case w:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case x:return!(t.byteLength!=e.byteLength||!S(new i(t),new i(e)));case l:case h:case g:return o(+t,+e);case d:return t.name==e.name&&t.message==e.message;case v:case m:return t==e+"";case p:var k=s;case y:var C=r&c;if(k||(k=u),t.size!=e.size&&!C)return!1;var O=P.get(t);if(O)return O==e;r|=f,P.set(t,e);var E=a(k(t),k(e),r,M,S,P);return P["delete"](t),E;case b:if(_)return _.call(t)==_.call(e)}return!1}t.exports=S},"1cba":function(t,e,n){var r=n("4796"),i=n("9aff"),o=n("6428");function a(t){return function(e,n,a){return a&&"number"!=typeof a&&i(e,n,a)&&(n=a=void 0),e=o(e),void 0===n?(n=e,e=0):n=o(n),a=void 0===a?e<n?1:-1:o(a),r(e,n,a,t)}}t.exports=a},"1cec":function(t,e,n){var r=n("0b07"),i=n("2b3e"),o=r(i,"Promise");t.exports=o},"1d27":function(t,e,n){"use strict";function r(t,e,n){if(t){if("function"===typeof t.addEventListener)return t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}};if("function"===typeof t.attachEvent)return t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},"1d5c":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("8937"),i="\t\n\v\f\r \u2028\u2029",o=new RegExp("([a-z])["+i+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+i+"]*,?["+i+"]*)+)","ig"),a=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+i+"]*,?["+i+"]*","ig");function s(t){if(!t)return null;if((0,r.isArray)(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(o,(function(t,r,i){var o=[],s=r.toLowerCase();if(i.replace(a,(function(t,e){e&&o.push(+e)})),"m"===s&&o.length>2&&(n.push([r].concat(o.splice(0,2))),s="l",r="m"===r?"l":"L"),"o"===s&&1===o.length&&n.push([r,o[0]]),"r"===s)n.push([r].concat(o));else while(o.length>=e[s])if(n.push([r].concat(o.splice(0,e[s]))),!e[s])break;return""})),n}e.default=s},"1dfb":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("b4ae"),i=function(){function t(t){this.distances=t.distances,this.dimension=t.dimension||2,this.linkDistance=t.linkDistance}return t.prototype.layout=function(){var t=this,e=t.dimension,n=t.distances,i=t.linkDistance;try{var o=r.Matrix.mul(r.Matrix.pow(n,2),-.5),a=o.mean("row"),s=o.mean("column"),u=o.mean();o.add(u).subRowVector(a).subColumnVector(s);var c=new r.SingularValueDecomposition(o),f=r.Matrix.sqrt(c.diagonalMatrix).diagonal();return c.leftSingularVectors.toJSON().map((function(t){return r.Matrix.mul([t],[f]).toJSON()[0].splice(0,e)}))}catch(g){for(var l=[],h=0;h<n.length;h++){var d=Math.random()*i,p=Math.random()*i;l.push([d,p])}return l}},t}(),o=i;e.default=o},"1e85":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("01f9"),i=n("61d8");function o(t,e){return!(!r.default(t)&&!i.default(t))&&t[t.length-1]===e}e.default=o},"1efc":function(t,e){function n(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}t.exports=n},"1f05":function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return i})),n.d(e,"fromMat4",(function(){return o})),n.d(e,"clone",(function(){return a})),n.d(e,"copy",(function(){return s})),n.d(e,"fromValues",(function(){return u})),n.d(e,"set",(function(){return c})),n.d(e,"identity",(function(){return f})),n.d(e,"transpose",(function(){return l})),n.d(e,"invert",(function(){return h})),n.d(e,"adjoint",(function(){return d})),n.d(e,"determinant",(function(){return p})),n.d(e,"multiply",(function(){return g})),n.d(e,"translate",(function(){return v})),n.d(e,"rotate",(function(){return y})),n.d(e,"scale",(function(){return m})),n.d(e,"fromTranslation",(function(){return b})),n.d(e,"fromRotation",(function(){return x})),n.d(e,"fromScaling",(function(){return w})),n.d(e,"fromMat2d",(function(){return M})),n.d(e,"fromQuat",(function(){return _})),n.d(e,"normalFromMat4",(function(){return S})),n.d(e,"projection",(function(){return P})),n.d(e,"str",(function(){return k})),n.d(e,"frob",(function(){return C})),n.d(e,"add",(function(){return O})),n.d(e,"subtract",(function(){return E})),n.d(e,"multiplyScalar",(function(){return A})),n.d(e,"multiplyScalarAndAdd",(function(){return j})),n.d(e,"exactEquals",(function(){return I})),n.d(e,"equals",(function(){return T})),n.d(e,"mul",(function(){return B})),n.d(e,"sub",(function(){return N}));var r=n("c94d");function i(){var t=new r["a"](9);return r["a"]!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function a(t){var e=new r["a"](9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function u(t,e,n,i,o,a,s,u,c){var f=new r["a"](9);return f[0]=t,f[1]=e,f[2]=n,f[3]=i,f[4]=o,f[5]=a,f[6]=s,f[7]=u,f[8]=c,f}function c(t,e,n,r,i,o,a,s,u,c){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=u,t[8]=c,t}function f(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function l(t,e){if(t===e){var n=e[1],r=e[2],i=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=i}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function h(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],c=e[7],f=e[8],l=f*a-s*c,h=-f*o+s*u,d=c*o-a*u,p=n*l+r*h+i*d;return p?(p=1/p,t[0]=l*p,t[1]=(-f*r+i*c)*p,t[2]=(s*r-i*a)*p,t[3]=h*p,t[4]=(f*n-i*u)*p,t[5]=(-s*n+i*o)*p,t[6]=d*p,t[7]=(-c*n+r*u)*p,t[8]=(a*n-r*o)*p,t):null}function d(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],c=e[7],f=e[8];return t[0]=a*f-s*c,t[1]=i*c-r*f,t[2]=r*s-i*a,t[3]=s*u-o*f,t[4]=n*f-i*u,t[5]=i*o-n*s,t[6]=o*c-a*u,t[7]=r*u-n*c,t[8]=n*a-r*o,t}function p(t){var e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],u=t[7],c=t[8];return e*(c*o-a*u)+n*(-c*i+a*s)+r*(u*i-o*s)}function g(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=e[6],f=e[7],l=e[8],h=n[0],d=n[1],p=n[2],g=n[3],v=n[4],y=n[5],m=n[6],b=n[7],x=n[8];return t[0]=h*r+d*a+p*c,t[1]=h*i+d*s+p*f,t[2]=h*o+d*u+p*l,t[3]=g*r+v*a+y*c,t[4]=g*i+v*s+y*f,t[5]=g*o+v*u+y*l,t[6]=m*r+b*a+x*c,t[7]=m*i+b*s+x*f,t[8]=m*o+b*u+x*l,t}function v(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=e[6],f=e[7],l=e[8],h=n[0],d=n[1];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=u,t[6]=h*r+d*a+c,t[7]=h*i+d*s+f,t[8]=h*o+d*u+l,t}function y(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=e[6],f=e[7],l=e[8],h=Math.sin(n),d=Math.cos(n);return t[0]=d*r+h*a,t[1]=d*i+h*s,t[2]=d*o+h*u,t[3]=d*a-h*r,t[4]=d*s-h*i,t[5]=d*u-h*o,t[6]=c,t[7]=f,t[8]=l,t}function m(t,e,n){var r=n[0],i=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function b(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t}function x(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function w(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function M(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t}function _(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n+n,s=r+r,u=i+i,c=n*a,f=r*a,l=r*s,h=i*a,d=i*s,p=i*u,g=o*a,v=o*s,y=o*u;return t[0]=1-l-p,t[3]=f-y,t[6]=h+v,t[1]=f+y,t[4]=1-c-p,t[7]=d-g,t[2]=h-v,t[5]=d+g,t[8]=1-c-l,t}function S(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],c=e[7],f=e[8],l=e[9],h=e[10],d=e[11],p=e[12],g=e[13],v=e[14],y=e[15],m=n*s-r*a,b=n*u-i*a,x=n*c-o*a,w=r*u-i*s,M=r*c-o*s,_=i*c-o*u,S=f*g-l*p,P=f*v-h*p,k=f*y-d*p,C=l*v-h*g,O=l*y-d*g,E=h*y-d*v,A=m*E-b*O+x*C+w*k-M*P+_*S;return A?(A=1/A,t[0]=(s*E-u*O+c*C)*A,t[1]=(u*k-a*E-c*P)*A,t[2]=(a*O-s*k+c*S)*A,t[3]=(i*O-r*E-o*C)*A,t[4]=(n*E-i*k+o*P)*A,t[5]=(r*k-n*O-o*S)*A,t[6]=(g*_-v*M+y*w)*A,t[7]=(v*x-p*_-y*b)*A,t[8]=(p*M-g*x+y*m)*A,t):null}function P(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t}function k(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"}function C(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])}function O(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t}function E(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}function A(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t}function j(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t}function I(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]}function T(t,e){var n=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],c=t[6],f=t[7],l=t[8],h=e[0],d=e[1],p=e[2],g=e[3],v=e[4],y=e[5],m=e[6],b=e[7],x=e[8];return Math.abs(n-h)<=r["b"]*Math.max(1,Math.abs(n),Math.abs(h))&&Math.abs(i-d)<=r["b"]*Math.max(1,Math.abs(i),Math.abs(d))&&Math.abs(o-p)<=r["b"]*Math.max(1,Math.abs(o),Math.abs(p))&&Math.abs(a-g)<=r["b"]*Math.max(1,Math.abs(a),Math.abs(g))&&Math.abs(s-v)<=r["b"]*Math.max(1,Math.abs(s),Math.abs(v))&&Math.abs(u-y)<=r["b"]*Math.max(1,Math.abs(u),Math.abs(y))&&Math.abs(c-m)<=r["b"]*Math.max(1,Math.abs(c),Math.abs(m))&&Math.abs(f-b)<=r["b"]*Math.max(1,Math.abs(f),Math.abs(b))&&Math.abs(l-x)<=r["b"]*Math.max(1,Math.abs(l),Math.abs(x))}var B=g,N=E},"1f3a":function(t,e,n){var r=n("6f9c");function i(t,e){return r.map(e,(function(e){var n=t.inEdges(e);if(n.length){var i=r.reduce(n,(function(e,n){var r=t.edge(n),i=t.node(n.v);return{sum:e.sum+r.weight*i.order,weight:e.weight+r.weight}}),{sum:0,weight:0});return{v:e,barycenter:i.sum/i.weight,weight:i.weight}}return{v:e}}))}t.exports=i},"1f53":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("5ac6"),i=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r.default([].concat.apply([],t))};e.default=i},"1f59":function(t,e,n){"use strict";var r=n("9ab4"),i=n("8937"),o=s(n("067f")),a=s(n("7da3"));function s(t){return t&&t.__esModule?t:{default:t}}a.default.registerNode("diamond",{options:{size:[100,100],style:{stroke:o.default.defaultShapeStrokeColor,fill:o.default.defaultShapeFillColor,lineWidth:o.default.defaultNode.style.lineWidth},labelCfg:{style:{fill:"#595959"}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:3,lineWidth:1,fill:"#72CC4A",stroke:"#72CC4A"},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/basement_prod/012bcf4f-423b-4922-8c24-32a89f8c41ce.svg",width:16,height:16}},shapeType:"circle",labelPosition:"center",drawShape:function(t,e){var n=this.options.icon,o=this.getShapeStyle(t),a=(0,i.mix)({},n,t.icon),s=e.addShape("path",{attrs:o,className:"diamond-keyShape",name:"diamond-keyShape",draggable:!0}),u=a.width,c=a.height,f=a.show;if(f)e.addShape("image",{attrs:(0,r.__assign)({x:-u/2,y:-c/2},a),className:"diamond-icon",name:"diamond-icon",draggable:!0});return this.drawLinkPoints(t,e),s},drawLinkPoints:function(t,e){var n=this.options.linkPoints,o=(0,i.mix)({},n,t.linkPoints),a=o.top,s=o.left,u=o.right,c=o.bottom,f=o.size,l=(0,r.__rest)(o,["top","left","right","bottom","size"]),h=this.getSize(t),d=h[0],p=h[1];s&&e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},l),{x:-d/2,y:0,r:f}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0}),u&&e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},l),{x:d/2,y:0,r:f}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0}),a&&e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},l),{x:0,y:-p/2,r:f}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0}),c&&e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},l),{x:0,y:p/2,r:f}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0})},getPath:function(t){var e=this.getSize(t),n=e[0],r=e[1],i=[["M",0,-r/2],["L",n/2,0],["L",0,r/2],["L",-n/2,0],["Z"]];return i},getShapeStyle:function(t){var e=this.options.style,n={stroke:t.color},o=(0,i.mix)({},e,n,t.style),a=this.getPath(t),s=(0,r.__assign)({path:a},o);return s},update:function(t,e){var n=e.getContainer(),r=this.options.style,o=this.getPath(t),a={stroke:t.color,path:o},s=e.get("keyShape"),u=(0,i.mix)({},r,s.attr(),a);u=(0,i.mix)(u,t.style),this.updateShape(t,e,u,!0),this.updateLinkPoints(t,n)}},"single-node")},"1fc8":function(t,e,n){var r=n("4245");function i(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}t.exports=i},2047:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("bd8b");e.default=function(t){return r.default(t,"Function")}},"20e7":function(t,e,n){"use strict";var r=n("1f05");n.d(e,"a",(function(){return r}));var i=n("6711");n.d(e,"b",(function(){return i}))},"20ec":function(t,e){function n(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}t.exports=n},2164:function(t,e,n){var r=n("cae7");function i(t,e,n){var i=-1,o=t.criteria,a=e.criteria,s=o.length,u=n.length;while(++i<s){var c=r(o[i],a[i]);if(c){if(i>=u)return c;var f=n[i];return c*("desc"==f?-1:1)}}return t.index-e.index}t.exports=i},"220e":function(t,e,n){var r=n("6f9c"),i=n("b50e");function o(t){function e(n){var i=t.children(n),o=t.node(n);if(i.length&&r.forEach(i,e),r.has(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(var s=o.minRank,u=o.maxRank+1;s<u;++s)a(t,"borderLeft","_bl",n,o,s),a(t,"borderRight","_br",n,o,s)}}r.forEach(t.children(),e)}function a(t,e,n,r,o,a){var s={width:0,height:0,rank:a,borderType:e},u=o[e][a-1],c=i.addDummyNode(t,"border",s,n);o[e][a]=c,t.setParent(c,r),u&&t.setEdge(u,c,{weight:1})}t.exports=o},2286:function(t,e,n){var r=n("85e3"),i=Math.max;function o(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){var o=arguments,a=-1,s=i(o.length-e,0),u=Array(s);while(++a<s)u[a]=o[e+a];a=-1;var c=Array(e+1);while(++a<e)c[a]=o[a];return c[e]=n(u),r(t,this,c)}}t.exports=o},2288:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("bd8b"),i=function(t){return r.default(t,"Date")};e.default=i},"22b0":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("01f9"),i=n("dad5"),o=n("4071"),a=function(t){var e=t.filter((function(t){return!isNaN(t)}));if(!e.length)return{min:0,max:0};if(r.default(t[0])){for(var n=[],a=0;a<t.length;a++)n=n.concat(t[a]);e=n}var s=i.default(e),u=o.default(e);return{min:u,max:s}};e.default=a},"230b":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("e275"),i=n("0125");e.default=function(t,e){return r.default(i.default(t),e)}},2325:function(t,e,n){"use strict";var r=n("6f9c"),i=n("b50e"),o=n("8c55").positionX;function a(t){t=i.asNonCompoundGraph(t),s(t),r.forEach(o(t),(function(e,n){t.node(n).x=e}))}function s(t){var e=i.buildLayerMatrix(t),n=t.graph().ranksep,o=0;r.forEach(e,(function(e){var i=r.max(r.map(e,(function(e){return t.node(e).height})));r.forEach(e,(function(e){t.node(e).y=o+i/2})),o+=i+n}))}t.exports=a},"234d":function(t,e,n){var r=n("e380"),i=500;function o(t){var e=r(t,(function(t){return n.size===i&&n.clear(),t})),n=e.cache;return e}t.exports=o},2412:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.distanceAtSegment=e.angleAtSegments=e.pointAtSegments=e.lengthOfSegment=void 0;var r=n("c3e2"),i=n("b455");function o(t){for(var e=0,n=[],r=0;r<t.length-1;r++){var o=t[r],a=t[r+1],s=i.distance(o[0],o[1],a[0],a[1]),u={from:o,to:a,length:s};n.push(u),e+=s}return{segments:n,totalLength:e}}function a(t){if(t.length<2)return 0;for(var e=0,n=0;n<t.length-1;n++){var r=t[n],o=t[n+1];e+=i.distance(r[0],r[1],o[0],o[1])}return e}function s(t,e){if(e>1||e<0||t.length<2)return null;var n=o(t),i=n.segments,a=n.totalLength;if(0===a)return{x:t[0][0],y:t[0][1]};for(var s=0,u=null,c=0;c<i.length;c++){var f=i[c],l=f.from,h=f.to,d=f.length/a;if(e>=s&&e<=s+d){var p=(e-s)/d;u=r.default.pointAt(l[0],l[1],h[0],h[1],p);break}s+=d}return u}function u(t,e){if(e>1||e<0||t.length<2)return 0;for(var n=o(t),r=n.segments,i=n.totalLength,a=0,s=0,u=0;u<r.length;u++){var c=r[u],f=c.from,l=c.to,h=c.length/i;if(e>=a&&e<=a+h){s=Math.atan2(l[1]-f[1],l[0]-f[0]);break}a+=h}return s}function c(t,e,n){for(var i=1/0,o=0;o<t.length-1;o++){var a=t[o],s=t[o+1],u=r.default.pointDistance(a[0],a[1],s[0],s[1],e,n);u<i&&(i=u)}return i}e.lengthOfSegment=a,e.pointAtSegments=s,e.angleAtSegments=u,e.distanceAtSegment=c},"242e":function(t,e,n){var r=n("72af"),i=n("ec69");function o(t,e){return t&&r(t,e,i)}t.exports=o},2470:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("67ac");e.mat3=r.default;var i=n("ad5a");e.vec2=i.default;var o=n("5ebc");e.vec3=o.default;var a=n("9b7a");e.transform=a.default},2474:function(t,e,n){var r=n("2b3e"),i=r.Uint8Array;t.exports=i},2478:function(t,e,n){var r=n("4245");function i(t){return r(this,t).get(t)}t.exports=i},"251a":function(t,e,n){var r=n("6f9c"),i=n("b50e");function o(t){var e=i.addDummyNode(t,"root",{},"_root"),n=s(t),o=r.max(r.values(n))-1,c=2*o+1;t.graph().nestingRoot=e,r.forEach(t.edges(),(function(e){t.edge(e).minlen*=c}));var f=u(t)+1;r.forEach(t.children(),(function(r){a(t,e,c,f,o,n,r)})),t.graph().nodeRankFactor=c}function a(t,e,n,o,s,u,c){var f=t.children(c);if(f.length){var l=i.addBorderNode(t,"_bt"),h=i.addBorderNode(t,"_bb"),d=t.node(c);t.setParent(l,c),d.borderTop=l,t.setParent(h,c),d.borderBottom=h,r.forEach(f,(function(r){a(t,e,n,o,s,u,r);var i=t.node(r),f=i.borderTop?i.borderTop:r,d=i.borderBottom?i.borderBottom:r,p=i.borderTop?o:2*o,g=f!==d?1:s-u[c]+1;t.setEdge(l,f,{weight:p,minlen:g,nestingEdge:!0}),t.setEdge(d,h,{weight:p,minlen:g,nestingEdge:!0})})),t.parent(c)||t.setEdge(e,l,{weight:0,minlen:s+u[c]})}else c!==e&&t.setEdge(e,c,{weight:0,minlen:n})}function s(t){var e={};function n(i,o){var a=t.children(i);a&&a.length&&r.forEach(a,(function(t){n(t,o+1)})),e[i]=o}return r.forEach(t.children(),(function(t){n(t,1)})),e}function u(t){return r.reduce(t.edges(),(function(e,n){return e+t.edge(n).weight}),0)}function c(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,r.forEach(t.edges(),(function(e){var n=t.edge(e);n.nestingEdge&&t.removeEdge(e)}))}t.exports={run:o,cleanup:c}},2524:function(t,e,n){var r=n("6044"),i="__lodash_hash_undefined__";function o(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?i:e,this}t.exports=o},"253c":function(t,e,n){var r=n("3729"),i=n("1310"),o="[object Arguments]";function a(t){return i(t)&&r(t)==o}t.exports=a},2593:function(t,e,n){var r=n("15f3"),i=n("c6cf"),o=i((function(t,e){return null==t?{}:r(t,e)}));t.exports=o},"262e":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));n("131a");function r(t,e){return r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},r(t,e)}function i(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}},"266a":function(t,e,n){var r=n("7948");function i(t,e){return r(e,(function(e){return t[e]}))}t.exports=i},"26bf":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("503e"),i=n("2047"),o=function(t,e,n,o){i.default(e)||(n=e,e=t,t=function(){});var a=Object.create?function(t,e){return Object.create(t,{constructor:{value:e}})}:function(t,e){function n(){}n.prototype=t;var r=new n;return r.constructor=e,r},s=a(e.prototype,t);return t.prototype=r.default(s,t.prototype),t.superclass=a(e.prototype,e),r.default(s,n),r.default(t,o),t};e.default=o},"26e6":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("5b8d"),i=n("5c32"),o=function(t,e){var n=[];if(!r.default(t))return n;var o=-1,a=[],s=t.length;while(++o<s){var u=t[o];e(u,o,t)&&(n.push(u),a.push(o))}return i.default(t,a),n};e.default=o},"26e8":function(t,e){function n(t,e){return null!=t&&e in Object(t)}t.exports=n},2769:function(t,e,n){var r=n("5ca0"),i=n("51f5"),o=r(i);t.exports=o},"286b":function(t,e,n){"use strict";function r(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,(function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]})):t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},"289f":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("396b");e.default=r.default},"28c9":function(t,e){function n(){this.__data__=[],this.size=0}t.exports=n},"28f9":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){return null===t||void 0===t};e.default=r},2909:function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function i(t){if(Array.isArray(t))return r(t)}n.d(e,"a",(function(){return u}));n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("a630");function o(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}n("fb6a"),n("b0c0"),n("ac1f"),n("00b4");function a(t,e){if(t){if("string"===typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(t){return i(t)||o(t)||a(t)||s()}},2967:function(t,e,n){"use strict";function r(t){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=d(n("0dfa")),o=d(n("c0b3")),a=d(n("1b92")),s=d(n("804a")),u=n("2470"),c=l(n("503e")),f=l(n("1b95"));function l(t){return t&&t.__esModule?t:{default:t}}function h(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return h=function(){return t},t}function d(t){if(t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!==typeof t)return{default:t};var e=h();if(e&&e.has(t))return e.get(t);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var a=i?Object.getOwnPropertyDescriptor(t,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=t[o]}return n.default=t,e&&e.set(t,n),n}var p={mat3:u.mat3,mix:c.default,deepMix:f.default,transform:u.transform},g=Object.assign({},p,s,o,a,i),v=g;e.default=v},"299f":function(t,e,n){var r=n("6f9c"),i=n("17d5").Graph,o=n("4589");t.exports=s;var a=r.constant(1);function s(t,e){if(t.nodeCount()<=1)return[];var n=f(t,e||a),i=u(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(i,(function(e){return t.outEdges(e.v,e.w)})),!0)}function u(t,e,n){var r,i=[],o=e[e.length-1],a=e[0];while(t.nodeCount()){while(r=a.dequeue())c(t,e,n,r);while(r=o.dequeue())c(t,e,n,r);if(t.nodeCount())for(var s=e.length-2;s>0;--s)if(r=e[s].dequeue(),r){i=i.concat(c(t,e,n,r,!0));break}}return i}function c(t,e,n,i,o){var a=o?[]:void 0;return r.forEach(t.inEdges(i.v),(function(r){var i=t.edge(r),s=t.node(r.v);o&&a.push({v:r.v,w:r.w}),s.out-=i,l(e,n,s)})),r.forEach(t.outEdges(i.v),(function(r){var i=t.edge(r),o=r.w,a=t.node(o);a["in"]-=i,l(e,n,a)})),t.removeNode(i.v),a}function f(t,e){var n=new i,a=0,s=0;r.forEach(t.nodes(),(function(t){n.setNode(t,{v:t,in:0,out:0})})),r.forEach(t.edges(),(function(t){var r=n.edge(t.v,t.w)||0,i=e(t),o=r+i;n.setEdge(t.v,t.w,o),s=Math.max(s,n.node(t.v).out+=i),a=Math.max(a,n.node(t.w)["in"]+=i)}));var u=r.range(s+a+3).map((function(){return new o})),c=a+1;return r.forEach(n.nodes(),(function(t){l(u,c,n.node(t))})),{graph:n,buckets:u,zeroIdx:c}}function l(t,e,n){n.out?n["in"]?t[n.out-n["in"]+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}},"29d7":function(t,e,n){"use strict";function r(t){var e=t.attr(),n=e.x,r=e.y,i=e.width,o=e.height;return{x:n,y:r,width:i,height:o}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},"29f3":function(t,e){var n=Object.prototype,r=n.toString;function i(t){return r.call(t)}t.exports=i},"29f4":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=1e-5;function i(t,e,n){return void 0===n&&(n=r),Math.abs(t-e)<n}e.default=i},"2a37":function(t){t.exports=JSON.parse('{"name":"@antv/g-base","version":"0.4.7","description":"A common util collection for antv projects","main":"lib/index.js","module":"esm/index.js","types":"lib/index.d.ts","files":["package.json","esm","lib","LICENSE","README.md"],"scripts":{"build":"npm run clean && run-p build:*","build:esm":"tsc -p tsconfig.json --target ES5 --module ESNext --outDir esm","build:cjs":"tsc -p tsconfig.json --target ES5 --module commonjs --outDir lib","clean":"rm -rf esm lib","watch:cjs":"tsc-watch -p tsconfig.json --target ES5 --module commonjs --outDir lib --compiler typescript/bin/tsc","coverage":"npm run coverage-generator && npm run coverage-viewer","coverage-generator":"torch --coverage --compile --source-pattern src/*.js,src/**/*.js --opts tests/mocha.opts","coverage-viewer":"torch-coverage","test":"torch --renderer --compile --opts tests/mocha.opts","test-live":"torch --compile --interactive --opts tests/mocha.opts","tsc":"tsc --noEmit","typecheck":"tsc --noEmit"},"repository":{"type":"git","url":"git+https://github.com/antvis/util.git"},"keywords":["util","antv","g"],"publishConfig":{"access":"public"},"author":"https://github.com/orgs/antvis/people","license":"ISC","bugs":{"url":"https://github.com/antvis/util/issues"},"devDependencies":{"@antv/torch":"^1.0.0","gl-matrix":"^3.0.0","less":"^3.9.0","npm-run-all":"^4.1.5","tsc-watch":"^4.0.0"},"homepage":"https://github.com/antvis/util#readme","dependencies":{"@antv/event-emitter":"^0.1.1","@antv/g-math":"^0.1.3","@antv/matrix-util":"^3.1.0-beta.1","@antv/path-util":"~2.0.5","@antv/util":"~2.0.0","@types/d3-timer":"^1.0.9","d3-ease":"^1.0.5","d3-interpolate":"^1.3.2","d3-timer":"^1.0.9","detect-browser":"^5.1.0"},"__npminstall_done":false,"gitHead":"eb6a2503cb7bb8154697592b10680939d954a31a"}')},"2a9f":function(t,e,n){"use strict";var r=n("6f9c"),i=n("e632"),o=n("d780"),a=n("38e2f"),s=n("8817"),u=n("d4f3"),c=n("17d5").Graph,f=n("b50e");function l(t){var e=f.maxRank(t),n=h(t,r.range(1,e+1),"inEdges"),a=h(t,r.range(e-1,-1,-1),"outEdges"),s=i(t);p(t,s);for(var u,c=Number.POSITIVE_INFINITY,l=0,g=0;g<4;++l,++g){d(l%2?n:a,l%4>=2),s=f.buildLayerMatrix(t);var v=o(t,s);v<c&&(g=0,u=r.cloneDeep(s),c=v)}p(t,u)}function h(t,e,n){return r.map(e,(function(e){return s(t,e,n)}))}function d(t,e){var n=new c;r.forEach(t,(function(t){var i=t.graph().root,o=a(t,i,n,e);r.forEach(o.vs,(function(e,n){t.node(e).order=n})),u(t,n,o.vs)}))}function p(t,e){r.forEach(e,(function(e){r.forEach(e,(function(e,n){t.node(e).order=n}))}))}t.exports=l},"2aaa":function(t,e,n){"use strict";var r=n("9ab4"),i=o(n("7da3"));function o(t){return t&&t.__esModule?t:{default:t}}i.default.registerNode("image",{options:{img:"https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*eD7nT6tmYgAAAAAAAAAAAABkARQnAQ",size:200,clipCfg:{show:!1,type:"circle",r:50,rx:50,ry:35,width:50,height:35,points:[[30,12],[12,30],[30,48],[48,30]],path:[["M",25,25],["L",50,25],["A",12.5,12.5,0,1,1,50,50],["A",12.5,12.5,0,1,0,50,50],["L",25,75],["Z"]],x:0,y:0}},shapeType:"image",labelPosition:"bottom",drawShape:function(t,e){var n=this.shapeType,r=this.getShapeStyle(t);delete r.fill;var i=e.addShape(n,{attrs:r,className:"image-keyShape",name:"image-keyShape",draggable:!0});return this.drawClip(t,i),i},drawClip:function(t,e){var n=Object.assign({},this.options.clipCfg,t.clipCfg);if(n.show){var i=n.type,o=n.x,a=n.y,s=n.style;if("circle"===i){var u=n.r;e.setClip({type:"circle",attrs:(0,r.__assign)({r:u,x:o,y:a},s)})}else if("rect"===i){var c=n.width,f=n.height,l=o-c/2,h=a-f/2;e.setClip({type:"rect",attrs:(0,r.__assign)({x:l,y:h,width:c,height:f},s)})}else if("ellipse"===i){var d=n.rx,p=n.ry;e.setClip({type:"ellipse",attrs:(0,r.__assign)({x:o,y:a,rx:d,ry:p},s)})}else if("polygon"===i){var g=n.points;e.setClip({type:"polygon",attrs:(0,r.__assign)({points:g},s)})}else if("path"===i){var v=n.path;e.setClip({type:"path",attrs:(0,r.__assign)({path:v},s)})}}},getShapeStyle:function(t){var e=this.getSize(t),n=t.img||this.options.img,r=e[0],i=e[1];t.style&&(r=t.style.width||e[0],i=t.style.height||e[1]);var o=Object.assign({},{x:-r/2,y:-i/2,width:r,height:i,img:n},t.style);return o},updateShapeStyle:function(t,e){var n=e.getContainer(),r=this.itemType+"-shape",i=n.find((function(t){return t.get("className")===r}))||e.getKeyShape(),o=this.getShapeStyle(t);i&&i.attr(o)}},"single-node")},"2b03":function(t,e){function n(t,e,n,r){var i=t.length,o=n+(r?1:-1);while(r?o--:++o<i)if(e(t[o],o,t))return o;return-1}t.exports=n},"2b23":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("b455"),i=n("3d7d");function o(t){for(var e=t.attr(),n=e.points,o=[],a=[],s=0;s<n.length;s++){var u=n[s];o.push(u[0]),a.push(u[1])}var c=r.getBBoxByArray(o,a),f=c.x,l=c.y,h=c.width,d=c.height,p={minX:f,minY:l,maxX:f+h,maxY:l+d};return p=i.mergeArrowBBox(t,p),{x:p.minX,y:p.minY,width:p.maxX-p.minX,height:p.maxY-p.minY}}e.default=o},"2b3d":function(t,e,n){"use strict";n("3ca3");var r,i=n("23e7"),o=n("83ab"),a=n("0d3b"),s=n("da84"),u=n("0366"),c=n("c65b"),f=n("e330"),l=n("37e8"),h=n("6eeb"),d=n("19aa"),p=n("1a2d"),g=n("60da"),v=n("4df4"),y=n("f36a"),m=n("6547").codeAt,b=n("5fb2"),x=n("577e"),w=n("d44e"),M=n("9861"),_=n("69f3"),S=_.set,P=_.getterFor("URL"),k=M.URLSearchParams,C=M.getState,O=s.URL,E=s.TypeError,A=s.parseInt,j=Math.floor,I=Math.pow,T=f("".charAt),B=f(/./.exec),N=f([].join),D=f(1..toString),L=f([].pop),R=f([].push),z=f("".replace),F=f([].shift),G=f("".split),Y=f("".slice),X=f("".toLowerCase),V=f([].unshift),q="Invalid authority",U="Invalid scheme",W="Invalid host",H="Invalid port",Z=/[a-z]/i,$=/[\d+-.a-z]/i,Q=/\d/,K=/^0x/i,J=/^[0-7]+$/,tt=/^\d+$/,et=/^[\da-f]+$/i,nt=/[\0\t\n\r #%/:<>?@[\\\]^|]/,rt=/[\0\t\n\r #/:<>?@[\\\]^|]/,it=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,ot=/[\t\n\r]/g,at=function(t,e){var n,r,i;if("["==T(e,0)){if("]"!=T(e,e.length-1))return W;if(n=ut(Y(e,1,-1)),!n)return W;t.host=n}else if(yt(t)){if(e=b(e),B(nt,e))return W;if(n=st(e),null===n)return W;t.host=n}else{if(B(rt,e))return W;for(n="",r=v(e),i=0;i<r.length;i++)n+=gt(r[i],lt);t.host=n}},st=function(t){var e,n,r,i,o,a,s,u=G(t,".");if(u.length&&""==u[u.length-1]&&u.length--,e=u.length,e>4)return t;for(n=[],r=0;r<e;r++){if(i=u[r],""==i)return t;if(o=10,i.length>1&&"0"==T(i,0)&&(o=B(K,i)?16:8,i=Y(i,8==o?1:2)),""===i)a=0;else{if(!B(10==o?tt:8==o?J:et,i))return t;a=A(i,o)}R(n,a)}for(r=0;r<e;r++)if(a=n[r],r==e-1){if(a>=I(256,5-e))return null}else if(a>255)return null;for(s=L(n),r=0;r<n.length;r++)s+=n[r]*I(256,3-r);return s},ut=function(t){var e,n,r,i,o,a,s,u=[0,0,0,0,0,0,0,0],c=0,f=null,l=0,h=function(){return T(t,l)};if(":"==h()){if(":"!=T(t,1))return;l+=2,c++,f=c}while(h()){if(8==c)return;if(":"!=h()){e=n=0;while(n<4&&B(et,h()))e=16*e+A(h(),16),l++,n++;if("."==h()){if(0==n)return;if(l-=n,c>6)return;r=0;while(h()){if(i=null,r>0){if(!("."==h()&&r<4))return;l++}if(!B(Q,h()))return;while(B(Q,h())){if(o=A(h(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;l++}u[c]=256*u[c]+i,r++,2!=r&&4!=r||c++}if(4!=r)return;break}if(":"==h()){if(l++,!h())return}else if(h())return;u[c++]=e}else{if(null!==f)return;l++,c++,f=c}}if(null!==f){a=c-f,c=7;while(0!=c&&a>0)s=u[c],u[c--]=u[f+a-1],u[f+--a]=s}else if(8!=c)return;return u},ct=function(t){for(var e=null,n=1,r=null,i=0,o=0;o<8;o++)0!==t[o]?(i>n&&(e=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n&&(e=r,n=i),e},ft=function(t){var e,n,r,i;if("number"==typeof t){for(e=[],n=0;n<4;n++)V(e,t%256),t=j(t/256);return N(e,".")}if("object"==typeof t){for(e="",r=ct(t),n=0;n<8;n++)i&&0===t[n]||(i&&(i=!1),r===n?(e+=n?":":"::",i=!0):(e+=D(t[n],16),n<7&&(e+=":")));return"["+e+"]"}return t},lt={},ht=g({},lt,{" ":1,'"':1,"<":1,">":1,"`":1}),dt=g({},ht,{"#":1,"?":1,"{":1,"}":1}),pt=g({},dt,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),gt=function(t,e){var n=m(t,0);return n>32&&n<127&&!p(e,t)?t:encodeURIComponent(t)},vt={ftp:21,file:null,http:80,https:443,ws:80,wss:443},yt=function(t){return p(vt,t.scheme)},mt=function(t){return""!=t.username||""!=t.password},bt=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},xt=function(t,e){var n;return 2==t.length&&B(Z,T(t,0))&&(":"==(n=T(t,1))||!e&&"|"==n)},wt=function(t){var e;return t.length>1&&xt(Y(t,0,2))&&(2==t.length||"/"===(e=T(t,2))||"\\"===e||"?"===e||"#"===e)},Mt=function(t){var e=t.path,n=e.length;!n||"file"==t.scheme&&1==n&&xt(e[0],!0)||e.length--},_t=function(t){return"."===t||"%2e"===X(t)},St=function(t){return t=X(t),".."===t||"%2e."===t||".%2e"===t||"%2e%2e"===t},Pt={},kt={},Ct={},Ot={},Et={},At={},jt={},It={},Tt={},Bt={},Nt={},Dt={},Lt={},Rt={},zt={},Ft={},Gt={},Yt={},Xt={},Vt={},qt={},Ut=function(t,e,n,i){var o,a,s,u,c=n||Pt,f=0,l="",h=!1,d=!1,g=!1;n||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=z(e,it,"")),e=z(e,ot,""),o=v(e);while(f<=o.length){switch(a=o[f],c){case Pt:if(!a||!B(Z,a)){if(n)return U;c=Ct;continue}l+=X(a),c=kt;break;case kt:if(a&&(B($,a)||"+"==a||"-"==a||"."==a))l+=X(a);else{if(":"!=a){if(n)return U;l="",c=Ct,f=0;continue}if(n&&(yt(t)!=p(vt,l)||"file"==l&&(mt(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=l,n)return void(yt(t)&&vt[t.scheme]==t.port&&(t.port=null));l="","file"==t.scheme?c=Rt:yt(t)&&i&&i.scheme==t.scheme?c=Ot:yt(t)?c=It:"/"==o[f+1]?(c=Et,f++):(t.cannotBeABaseURL=!0,R(t.path,""),c=Xt)}break;case Ct:if(!i||i.cannotBeABaseURL&&"#"!=a)return U;if(i.cannotBeABaseURL&&"#"==a){t.scheme=i.scheme,t.path=y(i.path),t.query=i.query,t.fragment="",t.cannotBeABaseURL=!0,c=qt;break}c="file"==i.scheme?Rt:At;continue;case Ot:if("/"!=a||"/"!=o[f+1]){c=At;continue}c=Tt,f++;break;case Et:if("/"==a){c=Bt;break}c=Yt;continue;case At:if(t.scheme=i.scheme,a==r)t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=y(i.path),t.query=i.query;else if("/"==a||"\\"==a&&yt(t))c=jt;else if("?"==a)t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=y(i.path),t.query="",c=Vt;else{if("#"!=a){t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=y(i.path),t.path.length--,c=Yt;continue}t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=y(i.path),t.query=i.query,t.fragment="",c=qt}break;case jt:if(!yt(t)||"/"!=a&&"\\"!=a){if("/"!=a){t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,c=Yt;continue}c=Bt}else c=Tt;break;case It:if(c=Tt,"/"!=a||"/"!=T(l,f+1))continue;f++;break;case Tt:if("/"!=a&&"\\"!=a){c=Bt;continue}break;case Bt:if("@"==a){h&&(l="%40"+l),h=!0,s=v(l);for(var m=0;m<s.length;m++){var b=s[m];if(":"!=b||g){var x=gt(b,pt);g?t.password+=x:t.username+=x}else g=!0}l=""}else if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&yt(t)){if(h&&""==l)return q;f-=v(l).length+1,l="",c=Nt}else l+=a;break;case Nt:case Dt:if(n&&"file"==t.scheme){c=Ft;continue}if(":"!=a||d){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&yt(t)){if(yt(t)&&""==l)return W;if(n&&""==l&&(mt(t)||null!==t.port))return;if(u=at(t,l),u)return u;if(l="",c=Gt,n)return;continue}"["==a?d=!0:"]"==a&&(d=!1),l+=a}else{if(""==l)return W;if(u=at(t,l),u)return u;if(l="",c=Lt,n==Dt)return}break;case Lt:if(!B(Q,a)){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&yt(t)||n){if(""!=l){var w=A(l,10);if(w>65535)return H;t.port=yt(t)&&w===vt[t.scheme]?null:w,l=""}if(n)return;c=Gt;continue}return H}l+=a;break;case Rt:if(t.scheme="file","/"==a||"\\"==a)c=zt;else{if(!i||"file"!=i.scheme){c=Yt;continue}if(a==r)t.host=i.host,t.path=y(i.path),t.query=i.query;else if("?"==a)t.host=i.host,t.path=y(i.path),t.query="",c=Vt;else{if("#"!=a){wt(N(y(o,f),""))||(t.host=i.host,t.path=y(i.path),Mt(t)),c=Yt;continue}t.host=i.host,t.path=y(i.path),t.query=i.query,t.fragment="",c=qt}}break;case zt:if("/"==a||"\\"==a){c=Ft;break}i&&"file"==i.scheme&&!wt(N(y(o,f),""))&&(xt(i.path[0],!0)?R(t.path,i.path[0]):t.host=i.host),c=Yt;continue;case Ft:if(a==r||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&xt(l))c=Yt;else if(""==l){if(t.host="",n)return;c=Gt}else{if(u=at(t,l),u)return u;if("localhost"==t.host&&(t.host=""),n)return;l="",c=Gt}continue}l+=a;break;case Gt:if(yt(t)){if(c=Yt,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=r&&(c=Yt,"/"!=a))continue}else t.fragment="",c=qt;else t.query="",c=Vt;break;case Yt:if(a==r||"/"==a||"\\"==a&&yt(t)||!n&&("?"==a||"#"==a)){if(St(l)?(Mt(t),"/"==a||"\\"==a&&yt(t)||R(t.path,"")):_t(l)?"/"==a||"\\"==a&&yt(t)||R(t.path,""):("file"==t.scheme&&!t.path.length&&xt(l)&&(t.host&&(t.host=""),l=T(l,0)+":"),R(t.path,l)),l="","file"==t.scheme&&(a==r||"?"==a||"#"==a))while(t.path.length>1&&""===t.path[0])F(t.path);"?"==a?(t.query="",c=Vt):"#"==a&&(t.fragment="",c=qt)}else l+=gt(a,dt);break;case Xt:"?"==a?(t.query="",c=Vt):"#"==a?(t.fragment="",c=qt):a!=r&&(t.path[0]+=gt(a,lt));break;case Vt:n||"#"!=a?a!=r&&("'"==a&&yt(t)?t.query+="%27":t.query+="#"==a?"%23":gt(a,lt)):(t.fragment="",c=qt);break;case qt:a!=r&&(t.fragment+=gt(a,ht));break}f++}},Wt=function(t){var e,n,r=d(this,Ht),i=arguments.length>1?arguments[1]:void 0,a=x(t),s=S(r,{type:"URL"});if(void 0!==i)try{e=P(i)}catch(l){if(n=Ut(e={},x(i)),n)throw E(n)}if(n=Ut(s,a,null,e),n)throw E(n);var u=s.searchParams=new k,f=C(u);f.updateSearchParams(s.query),f.updateURL=function(){s.query=x(u)||null},o||(r.href=c(Zt,r),r.origin=c($t,r),r.protocol=c(Qt,r),r.username=c(Kt,r),r.password=c(Jt,r),r.host=c(te,r),r.hostname=c(ee,r),r.port=c(ne,r),r.pathname=c(re,r),r.search=c(ie,r),r.searchParams=c(oe,r),r.hash=c(ae,r))},Ht=Wt.prototype,Zt=function(){var t=P(this),e=t.scheme,n=t.username,r=t.password,i=t.host,o=t.port,a=t.path,s=t.query,u=t.fragment,c=e+":";return null!==i?(c+="//",mt(t)&&(c+=n+(r?":"+r:"")+"@"),c+=ft(i),null!==o&&(c+=":"+o)):"file"==e&&(c+="//"),c+=t.cannotBeABaseURL?a[0]:a.length?"/"+N(a,"/"):"",null!==s&&(c+="?"+s),null!==u&&(c+="#"+u),c},$t=function(){var t=P(this),e=t.scheme,n=t.port;if("blob"==e)try{return new Wt(e.path[0]).origin}catch(r){return"null"}return"file"!=e&&yt(t)?e+"://"+ft(t.host)+(null!==n?":"+n:""):"null"},Qt=function(){return P(this).scheme+":"},Kt=function(){return P(this).username},Jt=function(){return P(this).password},te=function(){var t=P(this),e=t.host,n=t.port;return null===e?"":null===n?ft(e):ft(e)+":"+n},ee=function(){var t=P(this).host;return null===t?"":ft(t)},ne=function(){var t=P(this).port;return null===t?"":x(t)},re=function(){var t=P(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+N(e,"/"):""},ie=function(){var t=P(this).query;return t?"?"+t:""},oe=function(){return P(this).searchParams},ae=function(){var t=P(this).fragment;return t?"#"+t:""},se=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(o&&l(Ht,{href:se(Zt,(function(t){var e=P(this),n=x(t),r=Ut(e,n);if(r)throw E(r);C(e.searchParams).updateSearchParams(e.query)})),origin:se($t),protocol:se(Qt,(function(t){var e=P(this);Ut(e,x(t)+":",Pt)})),username:se(Kt,(function(t){var e=P(this),n=v(x(t));if(!bt(e)){e.username="";for(var r=0;r<n.length;r++)e.username+=gt(n[r],pt)}})),password:se(Jt,(function(t){var e=P(this),n=v(x(t));if(!bt(e)){e.password="";for(var r=0;r<n.length;r++)e.password+=gt(n[r],pt)}})),host:se(te,(function(t){var e=P(this);e.cannotBeABaseURL||Ut(e,x(t),Nt)})),hostname:se(ee,(function(t){var e=P(this);e.cannotBeABaseURL||Ut(e,x(t),Dt)})),port:se(ne,(function(t){var e=P(this);bt(e)||(t=x(t),""==t?e.port=null:Ut(e,t,Lt))})),pathname:se(re,(function(t){var e=P(this);e.cannotBeABaseURL||(e.path=[],Ut(e,x(t),Gt))})),search:se(ie,(function(t){var e=P(this);t=x(t),""==t?e.query=null:("?"==T(t,0)&&(t=Y(t,1)),e.query="",Ut(e,t,Vt)),C(e.searchParams).updateSearchParams(e.query)})),searchParams:se(oe),hash:se(ae,(function(t){var e=P(this);t=x(t),""!=t?("#"==T(t,0)&&(t=Y(t,1)),e.fragment="",Ut(e,t,qt)):e.fragment=null}))}),h(Ht,"toJSON",(function(){return c(Zt,this)}),{enumerable:!0}),h(Ht,"toString",(function(){return c(Zt,this)}),{enumerable:!0}),O){var ue=O.createObjectURL,ce=O.revokeObjectURL;ue&&h(Wt,"createObjectURL",u(ue,O)),ce&&h(Wt,"revokeObjectURL",u(ce,O))}w(Wt,"URL"),i({global:!0,forced:!a,sham:!o},{URL:Wt})},"2b3e":function(t,e,n){var r=n("585a"),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},"2b81":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("9ab4"),i=s(n("28f9")),o=s(n("cdca")),a=s(n("f694"));function s(t){return t&&t.__esModule?t:{default:t}}var u={source:"start",target:"end"},c="Node",f="Point",l="Anchor",h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{type:"edge",sourceNode:null,targetNode:null,startPoint:null,endPoint:null,linkCenter:!1}},e.prototype.setEnd=function(t,e){var n=u[t]+f,r=t+c,i=this.get(r);i&&i.removeEdge(this),(0,o.default)(e)?(this.set(n,e),this.set(r,null)):(e.addEdge(this),this.set(r,e),this.set(n,null))},e.prototype.getLinkPoint=function(t,e,n){var r=u[t]+f,o=t+c,a=this.get(r);if(!a){var s=this.get(o),h=t+l,d=this.getPrePoint(t,n),p=e[h];(0,i.default)(p)||(a=s.getLinkPointByAnchor(p)),a=a||s.getLinkPoint(d),(0,i.default)(a.index)||this.set(t+"AnchorIndex",a.index)}return a},e.prototype.getPrePoint=function(t,e){if(e&&e.length){var n="source"===t?0:e.length-1;return e[n]}var r="source"===t?"target":"source";return this.getEndPoint(r)},e.prototype.getEndPoint=function(t){var e=t+c,n=u[t]+f,r=this.get(e);return r?r.get("model"):this.get(n)},e.prototype.getControlPointsByCenter=function(t){var e=this.getEndPoint("source"),n=this.getEndPoint("target"),r=this.get("shapeFactory"),i=t.shape||t.type;return r.getControlPoints(i,{startPoint:e,endPoint:n})},e.prototype.getEndCenter=function(t){var e=t+c,n=u[t]+f,r=this.get(e);if(r){var i=r.getBBox();return{x:i.centerX,y:i.centerY}}return this.get(n)},e.prototype.init=function(){t.prototype.init.call(this),this.setSource(this.get("source")),this.setTarget(this.get("target"))},e.prototype.getShapeCfg=function(e){var n=this,r=n.get("linkCenter"),i=t.prototype.getShapeCfg.call(this,e);if(r)i.startPoint=n.getEndCenter("source"),i.endPoint=n.getEndCenter("target");else{var o=i.controlPoints||n.getControlPointsByCenter(i);i.startPoint=n.getLinkPoint("source",e,o),i.endPoint=n.getLinkPoint("target",e,o)}return i.sourceNode=n.get("sourceNode"),i.targetNode=n.get("targetNode"),i},e.prototype.getModel=function(){var t=this.get("model"),e=this.get("source"+c),n=this.get("target"+c);return e?delete t["source"+c]:t.source=this.get("start"+f),n?delete t["target"+c]:t.target=this.get("end"+f),t},e.prototype.setSource=function(t){this.setEnd("source",t),this.set("source",t)},e.prototype.setTarget=function(t){this.setEnd("target",t),this.set("target",t)},e.prototype.getSource=function(){return this.get("source")},e.prototype.getTarget=function(){return this.get("target")},e.prototype.updatePosition=function(){},e.prototype.update=function(t){var e=this.get("model");Object.assign(e,t),this.updateShape(),this.afterUpdate(),this.clearCache()},e.prototype.destroy=function(){var e=this.get("source"+c),n=this.get("target"+c);e&&!e.destroyed&&e.removeEdge(this),n&&!n.destroyed&&n.removeEdge(this),t.prototype.destroy.call(this)},e}(a.default),d=h;e.default=d},"2bdc":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("72fb"),i=n("01f9"),o=n("cdca"),a=function(t,e,n){if(!i.default(t)&&!o.default(t))return t;var a=n;return r.default(t,(function(t,n){a=e(a,t,n)})),a};e.default=a},"2c54":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=Math.min,i=Math.max,o=Math.abs,a="shift",s=["drag","shift","ctrl","alt","control"],u={getDefaultCfg:function(){return{brushStyle:{fill:"#EEF6FF",fillOpacity:.4,stroke:"#DDEEFE",lineWidth:1},onSelect:function(){},onDeselect:function(){},selectedState:"selected",trigger:a,includeEdges:!0,selectedEdges:[],selectedNodes:[]}},getEvents:function(){return s.indexOf(this.trigger.toLowerCase())>-1||(this.trigger=a,console.warn("Behavior brush-select 的 trigger 参数不合法,请输入 'drag'、'shift'、'ctrl' 或 'alt'")),"drag"===this.trigger?{dragstart:"onMouseDown",drag:"onMouseMove",dragend:"onMouseUp","canvas:click":"clearStates"}:{dragstart:"onMouseDown",drag:"onMouseMove",dragend:"onMouseUp","canvas:click":"clearStates",keyup:"onKeyUp",keydown:"onKeyDown"}},onMouseDown:function(t){var e=t.item,n=this.brush;e||("drag"===this.trigger||this.keydown)&&(this.selectedNodes&&0!==this.selectedNodes.length&&this.clearStates(),n||(n=this.createBrush()),this.originPoint={x:t.canvasX,y:t.canvasY},n.attr({width:0,height:0}),n.show(),this.dragging=!0)},onMouseMove:function(t){this.dragging&&("drag"===this.trigger||this.keydown)&&this.updateBrush(t)},onMouseUp:function(t){this.graph;(this.brush||this.dragging)&&("drag"===this.trigger||this.keydown)&&(this.brush.remove(!0),this.brush=null,this.getSelectedNodes(t),this.dragging=!1)},clearStates:function(){var t=this,e=t.graph,n=t.selectedState,r=e.findAllByState("node",n),i=e.findAllByState("edge",n);r.forEach((function(t){return e.setItemState(t,n,!1)})),i.forEach((function(t){return e.setItemState(t,n,!1)})),this.selectedNodes=[],this.selectedEdges=[],this.onDeselect&&this.onDeselect(this.selectedNodes,this.selectedEdges),e.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[]},select:!1})},getSelectedNodes:function(t){var e=this,n=this,o=n.graph,a=n.originPoint,s=n.shouldUpdate,u=this.selectedState,c={x:t.x,y:t.y},f=o.getPointByCanvas(a.x,a.y),l=r(c.x,f.x),h=i(c.x,f.x),d=r(c.y,f.y),p=i(c.y,f.y),g=[],v=[];o.getNodes().forEach((function(t){var e=t.getBBox();if(e.centerX>=l&&e.centerX<=h&&e.centerY>=d&&e.centerY<=p&&s(t,"select")){g.push(t);var n=t.getModel();v.push(n.id),o.setItemState(t,u,!0)}}));var y=[];this.includeEdges&&g.forEach((function(t){var n=t.getEdges();n.forEach((function(t){var n=t.getModel(),r=n.source,i=n.target;v.includes(r)&&v.includes(i)&&s(t,"select")&&(y.push(t),o.setItemState(t,e.selectedState,!0))}))})),this.selectedEdges=y,this.selectedNodes=g,this.onSelect&&this.onSelect(g,y),o.emit("nodeselectchange",{selectedItems:{nodes:g,edges:y},select:!0})},createBrush:function(){var t=this,e=t.graph.get("canvas").addShape("rect",{attrs:t.brushStyle,capture:!1,name:"brush-shape"});return this.brush=e,e},updateBrush:function(t){var e=this.originPoint;this.brush.attr({width:o(t.canvasX-e.x),height:o(t.canvasY-e.y),x:r(t.canvasX,e.x),y:r(t.canvasY,e.y)})},onKeyDown:function(t){var e=t.key;e&&(e.toLowerCase()===this.trigger.toLowerCase()||"control"===e.toLowerCase()?this.keydown=!0:this.keydown=!1)},onKeyUp:function(){this.brush&&(this.brush.remove(!0),this.brush=null,this.dragging=!1),this.keydown=!1}};e.default=u},"2c66":function(t,e,n){var r=n("d612"),i=n("8db3"),o=n("5edf"),a=n("c584"),s=n("750a"),u=n("ac41"),c=200;function f(t,e,n){var f=-1,l=i,h=t.length,d=!0,p=[],g=p;if(n)d=!1,l=o;else if(h>=c){var v=e?null:s(t);if(v)return u(v);d=!1,l=a,g=new r}else g=e?[]:p;t:while(++f<h){var y=t[f],m=e?e(y):y;if(y=n||0!==y?y:0,d&&m===m){var b=g.length;while(b--)if(g[b]===m)continue t;e&&g.push(m),p.push(y)}else l(g,m,n)||(g!==p&&g.push(m),p.push(y))}return p}t.exports=f},"2caf":function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));n("4ae1"),n("d3b7"),n("f8c9"),n("131a"),n("3410");function r(t){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},r(t)}function i(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}var o=n("7037"),a=n.n(o);function s(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t,e){if(e&&("object"===a()(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return s(t)}function c(t){var e=i();return function(){var n,i=r(t);if(e){var o=r(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return u(this,n)}}},"2d0a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("9ab4"),i=n("56fa"),o=n("8937"),a=n("c0b3"),s=u(n("067f"));function u(t){return t&&t.__esModule?t:{default:t}}var c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=[0,0],e.maxIteration=100,e.gravity=10,e.comboGravity=10,e.linkDistance=10,e.alpha=1,e.alphaMin=.001,e.alphaDecay=1-Math.pow(e.alphaMin,1/300),e.alphaTarget=0,e.velocityDecay=.6,e.edgeStrength=.2,e.nodeStrength=30,e.preventOverlap=!1,e.preventNodeOverlap=!1,e.preventComboOverlap=!1,e.collideStrength=void 0,e.nodeCollideStrength=void 0,e.comboCollideStrength=void 0,e.optimizeRangeFactor=1,e.onTick=function(){},e.onLayoutEnd=function(){},e.depthAttractiveForceScale=.5,e.depthRepulsiveForceScale=2,e.nodes=[],e.edges=[],e.combos=[],e.comboTrees=[],e.width=300,e.height=300,e.bias=[],e.nodeMap={},e.oriComboMap={},e.nodeIdxMap={},e.comboMap={},e.previousLayouted=!1,e}return(0,r.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{maxIteration:100,center:[0,0],gravity:10,speed:1,comboGravity:30,preventOverlap:!1,preventComboOverlap:!0,preventNodeOverlap:!0,nodeSpacing:void 0,collideStrength:void 0,nodeCollideStrength:.5,comboCollideStrength:.5,comboSpacing:20,comboPadding:10,edgeStrength:.2,nodeStrength:30,linkDistance:10}},e.prototype.execute=function(){var t=this,e=t.nodes,n=t.center;if(t.comboTree={id:"comboTreeRoot",depth:-1,children:t.comboTrees},e&&0!==e.length){if(1===e.length)return e[0].x=n[0],void(e[0].y=n[1]);t.initVals(),t.run(),t.onLayoutEnd()}},e.prototype.run=function(){var t=this,e=t.nodes,n=t.previousLayouted?t.maxIteration/5:t.maxIteration;t.width||"undefined"===typeof window||(t.width=window.innerWidth),t.height||"undefined"===typeof window||(t.height=window.innerHeight);var r=t.center,i=t.velocityDecay,a=t.comboMap;t.previousLayouted||t.initPos(a);for(var s=function(n){var r=[];e.forEach((function(t,e){r[e]={x:0,y:0}})),t.applyCalculate(r),t.applyComboCenterForce(r),e.forEach((function(t,e){(0,o.isNumber)(t.x)&&(0,o.isNumber)(t.y)&&(t.x+=r[e].x*i,t.y+=r[e].y*i)})),t.alpha+=(t.alphaTarget-t.alpha)*t.alphaDecay,t.onTick()},u=0;u<n;u++)s(u);var c=[0,0];e.forEach((function(t){(0,o.isNumber)(t.x)&&(0,o.isNumber)(t.y)&&(c[0]+=t.x,c[1]+=t.y)})),c[0]/=e.length,c[1]/=e.length;var f=[r[0]-c[0],r[1]-c[1]];e.forEach((function(t,e){(0,o.isNumber)(t.x)&&(0,o.isNumber)(t.y)&&(t.x+=f[0],t.y+=f[1])})),t.combos.forEach((function(t){var e=a[t.id];e&&e.empty&&(t.x=e.cx||t.x,t.y=e.cy||t.y)})),t.previousLayouted=!0},e.prototype.initVals=function(){var t=this,e=t.edges,n=t.nodes,r=t.combos,i={},a={},s={};n.forEach((function(t,e){a[t.id]=t,s[t.id]=e})),t.nodeMap=a,t.nodeIdxMap=s;var u={};r.forEach((function(t){u[t.id]=t})),t.oriComboMap=u,t.comboMap=t.getComboMap();var c=t.preventOverlap;t.preventComboOverlap=t.preventComboOverlap||c,t.preventNodeOverlap=t.preventNodeOverlap||c;var f=t.collideStrength;f&&(t.comboCollideStrength=f,t.nodeCollideStrength=f);for(var l=0;l<e.length;++l)i[e[l].source]?i[e[l].source]++:i[e[l].source]=1,i[e[l].target]?i[e[l].target]++:i[e[l].target]=1;var h=[];for(l=0;l<e.length;++l)h[l]=i[e[l].source]/(i[e[l].source]+i[e[l].target]);this.bias=h;var d,p,g=t.nodeSize,v=t.nodeSpacing;if(p=(0,o.isNumber)(v)?function(){return v}:(0,o.isFunction)(v)?v:function(){return 0},this.nodeSpacing=p,g)if((0,o.isFunction)(g))d=function(t){return g(t)};else if((0,o.isArray)(g)){var y=g[0]>g[1]?g[0]:g[1],m=y/2;d=function(t){return m}}else{var b=g/2;d=function(t){return b}}else d=function(t){if(t.size){if((0,o.isArray)(t.size)){var e=t.size[0]>t.size[1]?t.size[0]:t.size[1];return e/2}return t.size/2}return 10};this.nodeSize=d;var x,w=t.comboSpacing;x=(0,o.isNumber)(w)?function(){return w}:(0,o.isFunction)(w)?w:function(){return 0},this.comboSpacing=x;var M,_=t.comboPadding;M=(0,o.isNumber)(_)?function(){return _}:(0,o.isArray)(_)?function(){return Math.max.apply(null,_)}:(0,o.isFunction)(_)?_:function(){return 0},this.comboPadding=M;var S,P=this.linkDistance;P||(P=10),S=(0,o.isNumber)(P)?function(t){return P}:P,this.linkDistance=S;var k,C=this.edgeStrength;C||(C=1),k=(0,o.isNumber)(C)?function(t){return C}:C,this.edgeStrength=k;var O,E=this.nodeStrength;E||(E=30),O=(0,o.isNumber)(E)?function(t){return E}:E,this.nodeStrength=O},e.prototype.initPos=function(t){var e=this,n=e.nodes;n.forEach((function(e){if(e.comboId){var n=t[e.comboId];e.x=n.cx+100*Math.random(),e.y=n.cy+100*Math.random()}else e.x=100*Math.random(),e.y=100*Math.random()}))},e.prototype.getComboMap=function(){var t=this,e=t.nodeMap,n=t.nodeIdxMap,r=t.comboTrees,i=t.oriComboMap,s={};return r&&r.forEach((function(r){var u=[];(0,a.traverseTreeUp)(r,(function(r){if("node"===r.itemType)return!0;if(!i[r.id])return!0;if(void 0===s[r.id]){var a={name:r.id,cx:0,cy:0,count:0,depth:t.oriComboMap[r.id].depth,children:[]};s[r.id]=a}var c=r.children;c&&c.forEach((function(t){if(!s[t.id]&&!e[t.id])return!0;u.push(t)}));var f=s[r.id];if(f.cx=0,f.cy=0,0===u.length){f.empty=!0;var l=i[r.id],h=Object.keys(e).length,d=r.id+"-visual-child-"+h,p={id:d,x:l.x,y:l.y,depth:f.depth+1,itemType:"node"};t.nodes.push(p),e[d]=p,n[d]=h,f.cx=l.x,f.cy=l.y,u.push(p)}return u.forEach((function(t){if(f.count++,"node"!==t.itemType){var n=s[t.id];return(0,o.isNumber)(n.cx)&&(f.cx+=n.cx),void((0,o.isNumber)(n.cy)&&(f.cy+=n.cy))}var r=e[t.id];r&&((0,o.isNumber)(r.x)&&(f.cx+=r.x),(0,o.isNumber)(r.y)&&(f.cy+=r.y))})),f.cx/=f.count,f.cy/=f.count,f.children=u,!0}))})),s},e.prototype.applyComboCenterForce=function(t){var e=this,n=e.gravity,r=e.comboGravity||n,i=this.alpha,s=e.comboTrees,u=e.nodeIdxMap,c=e.nodeMap,f=e.comboMap;s&&s.forEach((function(e){(0,a.traverseTreeUp)(e,(function(e){if("node"===e.itemType)return!0;var n=f[e.id];if(!n)return!0;var a=f[e.id],s=.5*(a.depth+1),l=a.cx,h=a.cy;return a.cx=0,a.cy=0,a.children.forEach((function(e){if("node"!==e.itemType){var n=f[e.id];return n&&(0,o.isNumber)(n.cx)&&(a.cx+=n.cx),void(n&&(0,o.isNumber)(n.cy)&&(a.cy+=n.cy))}var d=c[e.id],p=d.x-l||.005,g=d.y-h||.005,v=Math.sqrt(p*p+g*g),y=u[d.id],m=r*i/v*s;t[y].x-=p*m,t[y].y-=g*m,(0,o.isNumber)(d.x)&&(a.cx+=d.x),(0,o.isNumber)(d.y)&&(a.cy+=d.y)})),a.cx/=a.count,a.cy/=a.count,!0}))}))},e.prototype.applyCalculate=function(t){var e=this,n=e.comboMap,r=e.nodes,i={};r.forEach((function(t,e){r.forEach((function(n,r){if(!(e<r)){var o=t.x-n.x||.005,a=t.y-n.y||.005,s=o*o+a*a,u=Math.sqrt(s);s<1&&(s=u),i[t.id+"-"+n.id]={vx:o,vy:a,vl2:s,vl:u},i[n.id+"-"+t.id]={vx:-o,vy:-a,vl2:s,vl:u}}}))})),e.updateComboSizes(n),e.calRepulsive(t,i),e.calAttractive(t,i);var o=e.preventComboOverlap;o&&e.comboNonOverlapping(t,n)},e.prototype.updateComboSizes=function(t){var e=this,n=e.comboTrees,r=e.nodeMap,i=e.nodeSize,u=e.comboSpacing,c=e.comboPadding;n&&n.forEach((function(n){var f=[];(0,a.traverseTreeUp)(n,(function(n){if("node"===n.itemType)return!0;var a=t[n.id];if(a){var l=n.children;l&&l.forEach((function(e){(t[e.id]||r[e.id])&&f.push(e)})),a.minX=1/0,a.minY=1/0,a.maxX=-1/0,a.maxY=-1/0,f.forEach((function(t){if("node"!==t.itemType)return!0;var e=r[t.id];if(!e)return!0;var n=i(e),o=e.x-n,s=e.y-n,u=e.x+n,c=e.y+n;a.minX>o&&(a.minX=o),a.minY>s&&(a.minY=s),a.maxX<u&&(a.maxX=u),a.maxY<c&&(a.maxY=c)}));var h=e.oriComboMap[n.id].size||s.default.defaultCombo.size;(0,o.isArray)(h)&&(h=h[0]);var d=Math.max(a.maxX-a.minX,a.maxY-a.minY,h);return a.r=d/2+u(a)/2+c(a),!0}}))}))},e.prototype.comboNonOverlapping=function(t,e){var n=this,r=n.comboTree,i=n.comboCollideStrength,o=n.nodeIdxMap,s=n.nodeMap;(0,a.traverseTreeUp)(r,(function(n){if(e[n.id]||s[n.id]||"comboTreeRoot"===n.id){var r=n.children;return r&&r.length>1&&r.forEach((function(n,a){if("node"!==n.itemType){var u=e[n.id];u&&r.forEach((function(r,c){if(!(a<=c)&&"node"!==r.itemType){var f=e[r.id];if(f){var l=u.cx-f.cx||.005,h=u.cy-f.cy||.005,d=l*l+h*h,p=u.r,g=f.r,v=p+g,y=g*g,m=p*p;if(d<v*v){var b=n.children;if(!b||0===b.length)return;var x=r.children;if(!x||0===x.length)return;var w=Math.sqrt(d),M=(v-w)/w*i,_=l*M,S=h*M,P=y/(m+y),k=1-P;b.forEach((function(e){if("node"===e.itemType&&s[e.id]){var n=o[e.id];x.forEach((function(e){if("node"===e.itemType&&s[e.id]){var r=o[e.id];t[n].x+=_*P,t[n].y+=S*P,t[r].x-=_*k,t[r].y-=S*k}}))}}))}}}}))}})),!0}}))},e.prototype.calRepulsive=function(t,e){var n=this,r=n.nodes,i=n.width*n.optimizeRangeFactor,o=n.nodeStrength,a=n.alpha,s=n.nodeCollideStrength,u=n.preventNodeOverlap,c=n.nodeSize,f=n.nodeSpacing,l=n.depthRepulsiveForceScale,h=n.center;r.forEach((function(d,p){if(d.x&&d.y){if(h){var g=n.gravity,v=d.x-h[0]||.005,y=d.y-h[1]||.005,m=Math.sqrt(v*v+y*y);t[p].x-=v*g*a/m,t[p].y-=y*g*a/m}r.forEach((function(n,r){if(p!==r&&n.x&&n.y){var h=e[d.id+"-"+n.id],g=h.vl2,v=h.vl;if(!(v>i)){var y=e[d.id+"-"+n.id],m=y.vx,b=y.vy,x=Math.abs(n.depth-d.depth)+1||1;n.comboId!==d.comboId&&x++;var w=x?Math.pow(l,x):1,M=o(n)*a/g*w;if(t[p].x+=m*M,t[p].y+=b*M,p<r&&u){var _=c(d)+f(d),S=c(n)+f(n),P=_+S;if(g<P*P){var k=(P-v)/v*s,C=S*S,O=C/(_*_+C),E=m*k,A=b*k;t[p].x+=E*O,t[p].y+=A*O,O=1-O,t[r].x-=E*O,t[r].y-=A*O}}}}}))}}))},e.prototype.calAttractive=function(t,e){var n=this,r=n.edges,i=n.linkDistance,a=n.alpha,s=n.edgeStrength,u=n.bias,c=n.depthAttractiveForceScale;r.forEach((function(r,f){if(r.source&&r.target&&r.source!==r.target){var l=n.nodeIdxMap[r.source],h=n.nodeIdxMap[r.target],d=n.nodeMap[r.source],p=n.nodeMap[r.target],g=Math.abs(d.depth-p.depth);d.comboId,p.comboId;var v=g?Math.pow(c,g):1;if(d.comboId!==p.comboId&&1===v?v=c/2:d.comboId===p.comboId&&(v=2),(0,o.isNumber)(p.x)&&(0,o.isNumber)(d.x)&&(0,o.isNumber)(p.y)&&(0,o.isNumber)(d.y)){var y=e[r.target+"-"+r.source],m=y.vl,b=y.vx,x=y.vy,w=(m-i(r))/m*a*s(r)*v,M=b*w,_=x*w,S=u[f];t[h].x-=M*S,t[h].y-=_*S,t[l].x+=M*(1-S),t[l].y+=_*(1-S)}}}))},e}(i.BaseLayout),f=c;e.default=f},"2d1f":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("c31b"),i=n("7d16"),o=n("a12b"),a=n("be6e"),s=n("29f4"),u=n("3d7d");function c(t,e){for(var n=[],a=[],s=[],u=0;u<t.length;u++){var c=t[u],l=c.currentPoint,h=c.params,d=c.prePoint,p=void 0;switch(c.command){case"Q":p=r.default.box(d[0],d[1],h[1],h[2],h[3],h[4]);break;case"C":p=i.default.box(d[0],d[1],h[1],h[2],h[3],h[4],h[5],h[6]);break;case"A":var g=c.arcParams;p=o.default.box(g.cx,g.cy,g.rx,g.ry,g.xRotation,g.startAngle,g.endAngle);break;default:n.push(l[0]),a.push(l[1]);break}p&&(c.box=p,n.push(p.x,p.x+p.width),a.push(p.y,p.y+p.height)),e&&("L"===c.command||"M"===c.command)&&c.prePoint&&c.nextPoint&&s.push(c)}n=n.filter((function(t){return!Number.isNaN(t)})),a=a.filter((function(t){return!Number.isNaN(t)}));var v=Math.min.apply(null,n),y=Math.min.apply(null,a),m=Math.max.apply(null,n),b=Math.max.apply(null,a);if(0===s.length)return{x:v,y:y,width:m-v,height:b-y};for(u=0;u<s.length;u++){c=s[u],l=c.currentPoint;var x=void 0;l[0]===v?(x=f(c,e),v-=x.xExtra):l[0]===m&&(x=f(c,e),m+=x.xExtra),l[1]===y?(x=f(c,e),y-=x.yExtra):l[1]===b&&(x=f(c,e),b+=x.yExtra)}return{x:v,y:y,width:m-v,height:b-y}}function f(t,e){var n=t.prePoint,r=t.currentPoint,i=t.nextPoint,o=Math.pow(r[0]-n[0],2)+Math.pow(r[1]-n[1],2),a=Math.pow(r[0]-i[0],2)+Math.pow(r[1]-i[1],2),u=Math.pow(n[0]-i[0],2)+Math.pow(n[1]-i[1],2),c=Math.acos((o+a-u)/(2*Math.sqrt(o)*Math.sqrt(a)));if(!c||0===Math.sin(c)||s.default(c,0))return{xExtra:0,yExtra:0};var f=Math.abs(Math.atan2(i[1]-r[1],i[0]-r[0])),l=Math.abs(Math.atan2(i[0]-r[0],i[1]-r[1]));f=f>Math.PI/2?Math.PI-f:f,l=l>Math.PI/2?Math.PI-l:l;var h={xExtra:Math.cos(c/2-f)*(e/2*(1/Math.sin(c/2)))-e/2||0,yExtra:Math.cos(l-c/2)*(e/2*(1/Math.sin(c/2)))-e/2||0};return h}function l(t){var e=t.attr(),n=e.path,r=e.stroke,i=r?e.lineWidth:0,o=t.get("segments")||a.default(n),s=c(o,i),f=s.x,l=s.y,h=s.width,d=s.height,p={minX:f,minY:l,maxX:f+h,maxY:l+d};return p=u.mergeArrowBBox(t,p),{x:p.minX,y:p.minY,width:p.maxX-p.minX,height:p.maxY-p.minY}}e.default=l},"2d2a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("9ab4"),i=s(n("1b95")),o=s(n("61d8")),a=n("c0b3");function s(t){return t&&t.__esModule?t:{default:t}}var u=null,c=function(){function t(e){this.graph=e;var n=e.get("groupStyle");this.styles=(0,i.default)({},t.getDefaultCfg(),n),this.customGroup={},this.delegateInGroup={},this.nodePoint=[],this.destroyed=!1}return t.getDefaultCfg=function(){return{default:{lineWidth:1,stroke:"#A3B1BF",strokeOpacity:.9,fill:"#F3F9FF",fillOpacity:.8,opacity:.8,disCoefficient:.6,minDis:30,maxDis:30},hover:{stroke:"#faad14",fill:"#ffe58f",fillOpacity:.3,opacity:.3,lineWidth:3},collapse:{r:30,width:80,height:40,stroke:"#A3B1BF",lineWidth:3,fill:"#F3F9FF",offsetX:-15,offsetY:5},icon:"https://gw.alipayobjects.com/zos/rmsportal/MXXetJAxlqrbisIuZxDO.svg",operatorBtn:{collapse:{img:"https://gw.alipayobjects.com/zos/rmsportal/uZVdwjJGqDooqKLKtvGA.svg",width:16,height:16},expand:{width:16,height:16,img:"https://gw.alipayobjects.com/zos/rmsportal/MXXetJAxlqrbisIuZxDO.svg"}},visible:!1}},t.prototype.create=function(t,e,n,i,o,a){void 0===n&&(n="circle"),void 0===i&&(i=0),void 0===o&&(o=!1),void 0===a&&(a={});var s=this.graph,u=s.get("customGroup"),c=u.get("children").map((function(t){return t.get("id")}));if(c.indexOf(t)>-1)console.warn("已经存在ID为 "+t+" 的分组,请重新设置分组ID!");else{var f=u.addGroup({id:t,zIndex:i}),l=this.styles.default,h=this.calculationGroupPosition(e),d=h.x,p=h.y,g=h.width,v=h.height,y=h.maxX,m=this.getGroupPadding(t),b=s.get("groupBBoxs");b[t]={x:d,y:p,width:g,height:v,maxX:y};var x=null;if(o){var w=s.get("groups");e.forEach((function(e){var n=s.findById(e),r=n.getModel();r.groupId||(r.groupId=t)})),w.find((function(e){return e.id===t}))||(w.push({id:t,title:a}),s.set({groups:w}))}var M=s.get("groups").filter((function(e){return e.id===t}));M&&M.length>0&&(x=M[0].title);var _=0,S=0,P=null;if("circle"===n){var k=g>v?g/2:v/2,C=(g+2*d)/2,O=(v+2*p)/2,E=k+m;P=f.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},l),{x:C,y:O,r:E}),draggable:!0,capture:!0,zIndex:i,groupId:t,name:"circle-group-shape"}),_=C,S=O-E,this.setDeletageGroupByStyle(t,f,{width:g,height:v,x:C,y:O,r:E})}else{var A=m*l.disCoefficient;P=f.addShape("rect",{attrs:(0,r.__assign)((0,r.__assign)({},l),{x:d-A,y:p-A,width:g+2*A,height:v+2*A}),draggable:!0,capture:!0,zIndex:i,groupId:t,name:"rect-group-shape"}),_=d-A+15,S=p-A+15,this.setDeletageGroupByStyle(t,f,{x:d-A,y:p-A,width:g+A,height:v+A,btnOffset:y-3})}if(x){var j=x.offsetX,I=void 0===j?0:j,T=x.offsetY,B=void 0===T?0:T,N=x.text,D=void 0===N?x:N,L=(0,r.__rest)(x,["offsetX","offsetY","text"]),R=f.addShape("text",{attrs:(0,r.__assign)({text:D,stroke:"#444",x:_+I,y:S+B},L),className:"group-title",name:"group-title-shape"});R.set("capture",!1)}f.set("keyShape",P),s.get("groupNodes")[t]=e}},t.prototype.setGroupStyle=function(t,e){if(t&&!t.get("destroyed")){var n={},r=this.styles,a=r.hover,s=r.default;(0,o.default)(e)?"default"===e?n=(0,i.default)({},s):"hover"===e&&(n=(0,i.default)({},a)):n=(0,i.default)({},s,e),Object.keys(n).forEach((function(e){t.attr(e,n[e])}))}},t.prototype.calculationGroupPosition=function(t,e){if(void 0===e&&(e={x:100,y:100}),0===t.length)return{x:e.x,y:e.y,width:100,height:100};var n=this.graph,r=1/0,i=-1/0,a=1/0,s=-1/0;t.forEach((function(t){var e=(0,o.default)(t)?n.findById(t):t,u=e.getBBox(),c=u.minX,f=u.minY,l=u.maxX,h=u.maxY;c<r&&(r=c),f<a&&(a=f),l>i&&(i=l),h>s&&(s=h)}));var u=Math.floor(r),c=Math.floor(a),f=Math.ceil(i)-u,l=Math.ceil(s)-c;return{x:u,y:c,width:f,height:l,maxX:Math.ceil(i)}},t.prototype.flatToTree=function(t,e,n){void 0===e&&(e="id"),void 0===n&&(n="parentId");var r="children",i=[],o=[];return t.forEach((function(t){i[t[e]]=t})),t.forEach((function(t){var e=i[t[n]];e?(!e[r]&&(e[r]=[]),e[r].push(t)):o.push(t)})),o},t.prototype.getGroupPadding=function(t){var e=this.graph,n=this.styles.default,r=e.get("groups"),i=r.filter((function(e){return e.parentId===t})),o=1;i.length>0&&(u||(u=this.flatToTree(r)),(0,a.traverseTree)(u[0],(function(e){if(e.parentId===t&&e.children)return o+=e.children.length,!0})));var s=r.filter((function(e){return e.id===t&&!e.parentId}));s.length>0&&(o+=1);var c=!!(r.filter((function(e){return e.parentId===t})).length>0),f=c?n.maxDis+30*(o>1?o/2:1):n.minDis;return f},t.prototype.setDeletageGroupByStyle=function(t,e,n){var r=n.width,o=n.height,a=n.x,s=n.y,u=n.r,c=n.btnOffset,f=this.customGroup[t];if(f){var l=f.groupStyle,h=(0,i.default)({},l,n);this.customGroup[t]={nodeGroup:e,groupStyle:h}}else this.customGroup[t]={nodeGroup:e,groupStyle:{width:r,height:o,x:a,y:s,r:u,btnOffset:c}}},t.prototype.getDeletageGroupById=function(t){return this.customGroup[t]},t.prototype.collapseExpandGroup=function(t){var e=this.getDeletageGroupById(t),n=e.nodeGroup,r=n.get("hasHidden");r?(n.set("hasHidden",!1),this.expandGroup(t)):(n.set("hasHidden",!0),this.collapseGroup(t))},t.prototype.setGroupTmpNode=function(t,e){var n=this.graph,r=n.get("groupNodes"),i=n.get("groups");r[t].indexOf(e)<0&&r[t].push(e);var o=i.filter((function(e){return e.id===t})),a=null;o.length>0&&(a=o[0].parentId),a&&this.setGroupTmpNode(a,e)},t.prototype.collapseGroup=function(t){var e=this,n=this.getDeletageGroupById(t),i=n.nodeGroup,o=this.styles.collapse,a=this.graph,s=a.get("groupType"),u=a.get("groupNodes")[t],c=i.get("keyShape"),f=o.r,l=o.width,h=o.height,d=o.offsetX,p=o.offsetY,g=(0,r.__rest)(o,["r","width","height","offsetX","offsetY"]);Object.keys(g).forEach((function(t){c.attr(t,g[t])}));var v={groupId:t,id:t+"-custom-node",x:c.attr("x"),y:c.attr("y"),style:{r:f},type:"circle"},y=i.find((function(t){return"group-title"===t.get("className")}));"circle"===s?(c.animate({r:f},{duration:500,easing:"easeCubic"}),y&&y.attr({x:c.attr("x")+d,y:c.attr("y")+p})):"rect"===s&&(c.animate({width:l,height:h},{duration:500,easing:"easeCubic"}),y&&y.attr({x:c.attr("x")+10,y:c.attr("y")+h/2+5}),v={groupId:t,id:t+"-custom-node",x:c.attr("x")+l/2,y:c.attr("y")+h/2,size:[l,h],type:"rect"});var m=a.getEdges(),b=m.filter((function(t){var e=t.getModel();return!u.includes(e.source)&&u.includes(e.target)})),x=m.filter((function(t){var e=t.getModel();return u.includes(e.source)&&!u.includes(e.target)})),w=m.filter((function(t){var e=t.getModel();return u.includes(e.source)&&u.includes(e.target)}));if(u.forEach((function(n){var r=a.findById(n),i=r.getModel(),o=i.groupId;if(o&&o!==t){var s=e.getDeletageGroupById(o),u=s.nodeGroup;u.hide()}r.hide()})),w.forEach((function(t){var e=t.getSource(),n=t.getTarget();e.isVisible()&&n.isVisible()?t.show():t.hide()})),b.length>0||x.length>0){var M=a.add("node",v);M.set("capture",!1),M.hide(),this.delegateInGroup[t]={delegateNode:M},this.setGroupTmpNode(t,t+"-custom-node"),this.updateEdgeInGroupLinks(t,b,x)}},t.prototype.updateEdgeInGroupLinks=function(t,e,n){var r=this.graph,o={};e.map((function(e){var n=e.getModel(),i=e.get("id"),a=n.target;return o[i]=a,r.updateItem(e,{target:t+"-custom-node"}),!0}));var a={};n.map((function(e){var n=e.getModel(),i=e.get("id"),o=n.source;return a[i]=o,r.updateItem(e,{source:t+"-custom-node"}),!0})),this.delegateInGroup[t]=(0,i.default)({sourceOutTargetInEdges:e,sourceInTargetOutEdges:n,edgesOuts:o,edgesIn:a},this.delegateInGroup[t])},t.prototype.expandGroup=function(t){var e=this,n=this.graph,r=n.get("groupType"),i=n.get("groupNodes")[t],o=i.filter((function(t){return-1===t.indexOf("custom-node")})),a=this.calculationGroupPosition(o),s=a.width,u=a.height,c=this.getDeletageGroupById(t).nodeGroup,f=c.get("keyShape"),l=this.styles,h=l.default,d=l.collapse;Object.keys(h).forEach((function(t){f.attr(t,h[t])}));var p=c.find((function(t){return"group-title"===t.get("className")})),g=this.getGroupPadding(t);if("circle"===r){var v=s>u?s/2:u/2;f.animate({r:v+g},{duration:500,easing:"easeCubic"})}else if("rect"===r){var y=d.width,m=d.height;f.animate({width:y+s+g*h.disCoefficient*2,height:m+u+g*h.disCoefficient*2},{duration:500,easing:"easeCubic"})}if(p){var b=null,x=n.get("groups").filter((function(e){return e.id===t}));x&&x.length>0&&(b=x[0].title);var w=b.offsetX,M=void 0===w?0:w,_=b.offsetY,S=void 0===_?0:_;"circle"===r?p.animate({x:f.attr("x")+M,y:f.attr("y")-f.attr("r")+S},{duration:600,easing:"easeCubic"}):"rect"===r&&p.animate({x:f.attr("x")+(15+M),y:f.attr("y")+(15+S)},{duration:600,easing:"easeCubic"})}setTimeout((function(){i.forEach((function(r){var i=n.findById(r),o=i.getModel(),a=o.groupId;if(a&&a!==t){var s=e.getDeletageGroupById(a),u=s.nodeGroup;u.show();var c=u.get("hasHidden");c||i.show()}else i.show()}));var r=n.getEdges(),o=r.filter((function(t){var e=t.getModel();return i.includes(e.source)||i.includes(e.target)}));o.forEach((function(t){var e=t.getSource(),n=t.getTarget();e.isVisible()&&n.isVisible()&&t.show()}))}),300);var P=this.delegateInGroup[t];if(P){var k=P.sourceOutTargetInEdges,C=P.sourceInTargetOutEdges,O=P.edgesOuts,E=P.edgesIn,A=P.delegateNode;k.map((function(t){var e=t.get("id"),r=O[e];return n.updateItem(t,{target:r}),!0})),C.map((function(t){var e=t.get("id"),r=E[e];return n.updateItem(t,{source:r}),!0}));var j=A.getModel();this.deleteTmpNode(t,j.id),n.remove(A),delete this.delegateInGroup[t]}},t.prototype.deleteTmpNode=function(t,e){var n=this.graph,r=n.get("groups"),i=n.get("groupNodes")[t],o=i.indexOf(e);i.splice(o,1);var a=r.filter((function(e){return e.id===t})),s=null;a.length>0&&(s=a[0].parentId),s&&this.deleteTmpNode(s,e)},t.prototype.remove=function(t){var e=this.graph,n=this.getDeletageGroupById(t);if(n){var r=n.nodeGroup,i=e.get("groupNodes"),o=i[t];o.forEach((function(n){var r=e.findById(n),i=r.getModel(),o=i.groupId;o&&t===o&&(delete i.groupId,e.updateItem(r,i))})),r.destroy(),delete this.customGroup[t];var a=e.get("groups");if(a.length>0){var s=a.filter((function(e){return e.id!==t}));e.set("groups",s)}for(var u=null,c=null,f=0;f<a.length;f++){var l=a[f];if(t===l.id){u=l.parentId,c=l;break}}c&&delete c.parentId,delete i[t],u&&(i[u]=i[u].filter((function(t){return!o.includes(t)})))}},t.prototype.updateGroup=function(t,e,n){var r=this.graph,i=r.get("groupType");this.updateItemInGroup(t,e,n);for(var o=r.save().groups,a=null,s=null,u=0;u<o.length;u++){var c=o[u];if(t===c.id){a=c.parentId,s=c;break}}if(a){var f=this.getDeletageGroupById(a).nodeGroup,l=f.get("keyShape");this.setGroupStyle(l,"default");var h=l.getBBox(),d=h.minX,p=h.minY,g=h.maxX,v=h.maxY,y=this.getDeletageGroupById(t).nodeGroup,m=y.get("keyShape"),b=m.getBBox(),x=b.x,w=b.y;if(!(x<g&&x>d&&w<v&&w>p)){delete s.parentId;var M=r.get("groupNodes"),_=M[t],S=M[a];M[a]=S.filter((function(t){return-1===_.indexOf(t)}));var P=this.calculationGroupPosition(M[a]),k=P.x,C=P.y,O=P.width,E=P.height,A=this.getGroupPadding(a),j=f.find((function(t){return"group-title"===t.get("className")})),I=0,T=0;if("circle"===i){var B=O>E?O/2:E/2,N=k,D=C;l.attr({r:B+A,x:N,y:D}),I=N,T=D-l.attr("r")}else if("rect"===i){var L=this.styles.default,R=A*L.disCoefficient;l.attr({x:k-R,y:C-R}),I=k-R+15,T=C-R+15}if(j){var z=s.title,F=0,G=0;z&&(F=z.offsetX,G=z.offsetY),j.attr({x:I+F,y:T+G})}}}},t.prototype.updateItemInGroup=function(t,e,n){var r=this,i=this.graph,o=i.get("groupType"),a=i.get("groupNodes"),s=a[t],u=this.getDeletageGroupById(t).nodeGroup,c=u.getBBox(),f=[];s.forEach((function(t,n){var o=i.findById(t),a=o.getModel(),s=a.groupId;s&&!f.includes(s)&&f.push(s),r.nodePoint[n]||(r.nodePoint[n]={x:a.x,y:a.y});var u=e.x-c.x+r.nodePoint[n].x,l=e.y-c.y+r.nodePoint[n].y;r.nodePoint[n]={x:u,y:l},i.updateItem(o,{x:u,y:l})})),f.includes(t)||f.push(t),f.forEach((function(t){var n=r.getDeletageGroupById(t).nodeGroup,i=n.get("keyShape"),s=a[t].filter((function(t){return-1===t.indexOf("custom-node")})),u=r.calculationGroupPosition(s,e),c=u.x,f=u.y,l=u.width,h=u.height,d=0,p=0;if("circle"===o){var g=(l+2*c)/2,v=(h+2*f)/2;i.attr({x:g,y:v}),d=g,p=v-i.attr("r")}else if("rect"===o){var y=n.get("hasHidden"),m=r.getGroupPadding(t),b={},x=r.styles.default,w=m*x.disCoefficient;d=c-w+15,p=f-w+15,y?(b={x:c-w,y:f-w},p+=10):b={x:c-w,y:f-w,width:l+2*w,height:h+2*w},i.attr(b)}r.updateGroupTitle(n,t,d,p)}))},t.prototype.updateGroupTitle=function(t,e,n,r){var i=this.graph,o=t.find((function(t){return"group-title"===t.get("className")}));if(o){var a=null,s=i.get("groups").filter((function(t){return t.id===e}));s&&s.length>0&&(a=s[0].title);var u=0,c=0;a&&(u=a.offsetX||0,c=a.offsetY||0),o.attr({x:n+u,y:r+c})}},t.prototype.dynamicChangeGroupSize=function(t,e,n){var r=t.item,i=r.getModel(),o=i.groupId,a=this.graph,s=a.get("groupType"),u=a.get("groupNodes"),c=u[o];if(0===c.length){delete u[o];var f=a.get("groups");a.set("groups",f.filter((function(t){return t.id!==o}))),e.remove()}else{var l=this.calculationGroupPosition(c),h=l.x,d=l.y,p=l.width,g=l.height,v=this.getGroupPadding(o),y=0,m=0;if("circle"===s){var b=p>g?p/2:g/2,x=(p+2*h)/2,w=(g+2*d)/2;n.attr({r:b+v,x:x,y:w}),y=x,m=w-n.attr("r")}else if("rect"===s){var M=this.styles.default,_=v*M.disCoefficient;n.attr({x:h-_,y:d-_,width:p+2*_,height:g+2*_}),y=h-_+15,m=d-_+15}this.updateGroupTitle(e,o,y,m)}this.setGroupStyle(n,"default")},t.prototype.resetNodePoint=function(){this.nodePoint.length=0},t.prototype.destroy=function(){this.graph=null,this.styles={},this.customGroup={},this.delegateInGroup={},this.resetNodePoint(),this.destroyed=!0},t}(),f=c;e.default=f},"2d5dc":function(t){t.exports=JSON.parse('{"name":"@antv/g6","version":"3.5.2","description":"A Graph Visualization Framework in JavaScript","keywords":["antv","g6","graph","graph analysis","graph editor","graph visualization","relational data"],"homepage":"https://g6.antv.vision","bugs":{"url":"https://github.com/antvis/g6/issues"},"repository":{"type":"git","url":"https://github.com/antvis/g6"},"license":"MIT","author":"https://github.com/orgs/antvis/people","files":["package.json","es","lib","dist","LICENSE","README.md"],"main":"lib/index.js","module":"es/index.js","browser":"dist/g6.min.js","types":"lib/index.d.ts","scripts":{"build":"npm run clean && father build && npm run build:umd","build:umd":"webpack --config webpack.config.js --mode production","ci":"npm run build && npm run coverage","clean":"rimraf es esm lib dist","coverage":"jest --coverage","demos":"start-storybook -p 8080 -c .storybook","doc":"rimraf apis && typedoc","lint":"eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty \\"./\\"","lint:src":"eslint --cache --ext .ts --format=pretty \\"./src\\"","prettier":"prettier -c --write \\"**/*\\"","site:build":"npm run site:clean && GATSBY=true gatsby build --prefix-paths","site:clean":"gatsby clean","site:develop":"GATSBY=true gatsby develop --open","site:deploy":"npm run site:build && gh-pages -d public","start":"npm run site:develop","test":"jest","test-live":"DEBUG_MODE=1 jest --watch ./tests/unit/layout/circular-spec.ts","lint-staged:js":"eslint --ext .js,.jsx,.ts,.tsx","watch":"father build -w","cdn":"antv-bin upload -n @antv/g6"},"husky":{"hooks":{"pre-commit":"npm run lint"}},"lint-staged":{"**/*.{js,jsx,tsx,ts,less,md,json}":["prettier --write","git add"],"**/*.{js,jsx}":"npm run lint-staged:js","**/*.{js,ts,tsx}":"npm run lint-staged:js"},"dependencies":{"@antv/dom-util":"^2.0.1","@antv/event-emitter":"~0.1.0","@antv/g-base":"^0.4.1","@antv/g-canvas":"^0.4.3","@antv/g-math":"^0.1.1","@antv/g-svg":"^0.4.1","@antv/hierarchy":"^0.6.2","@antv/matrix-util":"^2.0.4","@antv/path-util":"^2.0.3","@antv/scale":"^0.3.1","@antv/util":"~2.0.5","d3-force":"^2.0.1","dagre":"^0.8.5","lodash":"^4.17.15","ml-matrix":"^6.5.0"},"devDependencies":{"@antv/gatsby-theme-antv":"^0.10.59","@babel/core":"^7.7.7","@babel/preset-react":"^7.7.4","@storybook/addon-actions":"^5.2.8","@storybook/addon-info":"^5.2.8","@storybook/addon-knobs":"^5.2.8","@storybook/react":"^5.2.8","@turf/turf":"^5.1.6","@types/jest":"^25.2.1","@types/node":"13.11.1","@umijs/fabric":"^2.0.0","awesome-typescript-loader":"^5.2.1","babel-loader":"^8.0.6","event-simulate":"~1.0.0","father":"^2.29.1","gatsby":"2.20.24","gh-pages":"^2.1.1","husky":"^4.2.5","insert-css":"^2.0.0","jest":"^26.0.1","jest-electron":"^0.1.7","jest-extended":"^0.11.2","lint-staged":"^9.2.3","pre-commit":"^1.2.2","prettier":"^2.0.5","react":"^16.13.1","react-dom":"^16.13.1","react-i18next":"^11.1.0","rimraf":"^3.0.0","rollup-plugin-web-worker-loader":"^0.8.1","ts-jest":"^24.1.0","ts-loader":"^7.0.3","ttypescript":"^1.5.8","typedoc":"^0.17.6","typedoc-plugin-markdown":"^2.2.11","typescript":"^3.5.3","webpack":"^4.41.4","webpack-cli":"^3.3.10","worker-loader":"^2.0.0"}}')},"2d7c":function(t,e){function n(t,e){var n=-1,r=null==t?0:t.length,i=0,o=[];while(++n<r){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}t.exports=n},"2dcb":function(t,e,n){var r=n("91e9"),i=r(Object.getPrototypeOf,Object);t.exports=i},"2ec1":function(t,e,n){var r=n("100e"),i=n("9aff");function o(t){return r((function(e,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),e=Object(e);while(++r<o){var u=n[r];u&&t(e,u,r,a)}return e}))}t.exports=o},"2ef1":function(t,e,n){"use strict";n.r(e),n.d(e,"parsePath",(function(){return s})),n.d(e,"catmullRom2Bezier",(function(){return l})),n.d(e,"fillPath",(function(){return g})),n.d(e,"fillPathByDiff",(function(){return m})),n.d(e,"formatPath",(function(){return w})),n.d(e,"pathIntersection",(function(){return J})),n.d(e,"parsePathArray",(function(){return et})),n.d(e,"parsePathString",(function(){return k})),n.d(e,"path2Curve",(function(){return F})),n.d(e,"path2Absolute",(function(){return E})),n.d(e,"reactPath",(function(){return M})),n.d(e,"getArcParams",(function(){return at})),n.d(e,"path2Segments",(function(){return ut})),n.d(e,"getLineIntersect",(function(){return ft})),n.d(e,"isPolygonsIntersect",(function(){return bt})),n.d(e,"isPointInPolygon",(function(){return pt}));var r=n("8937"),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,o=/[^\s\,]+/gi;function a(t){var e=t||[];return Object(r["isArray"])(e)?e:Object(r["isString"])(e)?(e=e.match(i),Object(r["each"])(e,(function(t,n){if(t=t.match(o),t[0].length>1){var i=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=i}Object(r["each"])(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0}var s=a,u=n("20e7");function c(t,e,n,r){var i,o,a,s,c,f,l,h=[],d=!!r;if(d){a=r[0],s=r[1];for(var p=0,g=t.length;p<g;p+=1){var v=t[p];a=u["b"].min([0,0],a,v),s=u["b"].max([0,0],s,v)}}p=0;for(var y=t.length;p<y;p+=1){v=t[p];if(0!==p||n)if(p!==y-1||n){var m=[p?p-1:y-1,p-1][n?0:1];i=t[m],o=t[n?(p+1)%y:p+1];var b=[0,0];b=u["b"].sub(b,o,i),b=u["b"].scale(b,b,e);var x=u["b"].distance(v,i),w=u["b"].distance(v,o),M=x+w;0!==M&&(x/=M,w/=M);var _=u["b"].scale([0,0],b,-x),S=u["b"].scale([0,0],b,w);f=u["b"].add([0,0],v,_),c=u["b"].add([0,0],v,S),c=u["b"].min([0,0],c,u["b"].max([0,0],o,v)),c=u["b"].max([0,0],c,u["b"].min([0,0],o,v)),_=u["b"].sub([0,0],c,v),_=u["b"].scale([0,0],_,-x/w),f=u["b"].add([0,0],v,_),f=u["b"].min([0,0],f,u["b"].max([0,0],i,v)),f=u["b"].max([0,0],f,u["b"].min([0,0],i,v)),S=u["b"].sub([0,0],v,f),S=u["b"].scale([0,0],S,w/x),c=u["b"].add([0,0],v,S),d&&(f=u["b"].max([0,0],f,a),f=u["b"].min([0,0],f,s),c=u["b"].max([0,0],c,a),c=u["b"].min([0,0],c,s)),h.push(l),h.push(f),l=c}else f=v,h.push(l),h.push(f);else l=v}return n&&h.push(h.shift()),h}function f(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=[[0,0],[1,1]]);for(var r=!!e,i=[],o=0,a=t.length;o<a;o+=2)i.push([t[o],t[o+1]]);var s,u,f,l=c(i,.4,r,n),h=i.length,d=[];for(o=0;o<h-1;o+=1)s=l[2*o],u=l[2*o+1],f=i[o+1],d.push(["C",s[0],s[1],u[0],u[1],f[0],f[1]]);return r&&(s=l[h],u=l[h+1],f=i[0],d.push(["C",s[0],s[1],u[0],u[1],f[0],f[1]])),d}var l=f;function h(t,e){var n=[],r=[];function i(t,e){if(1===t.length)n.push(t[0]),r.push(t[0]);else{for(var o=[],a=0;a<t.length-1;a++)0===a&&n.push(t[0]),a===t.length-2&&r.push(t[a+1]),o[a]=[(1-e)*t[a][0]+e*t[a+1][0],(1-e)*t[a][1]+e*t[a+1][1]];i(o,e)}}return t.length&&i(t,e),{left:n,right:r.reverse()}}function d(t,e,n){var r=[[t[1],t[2]]];n=n||2;var i=[];"A"===e[0]?(r.push(e[6]),r.push(e[7])):"C"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]]),r.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]])):r.push([e[1],e[2]]);for(var o=r,a=1/n,s=0;s<n-1;s++){var u=a/(1-a*s),c=h(o,u);i.push(c.left),o=c.right}i.push(o);var f=i.map((function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1]),e}));return f}function p(t,e,n){if(1===n)return[[].concat(t)];var r=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])r=r.concat(d(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var o=0;o<=n-1;o++)r.push(i)}return r}function g(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,o=[];if(1===t.length&&"M"===t[0][0]){for(var a=0;a<r-n;a++)t.push(t[0]);return t}for(a=0;a<r;a++){var s=Math.floor(i*a);o[s]=(o[s]||0)+1}var u=o.reduce((function(e,r,i){return i===n?e.concat(t[n]):e.concat(p(t[i],t[i+1],r))}),[]);return u.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||u.push("Z"),u}function v(t,e,n){var r=null,i=n;return e<i&&(i=e,r="add"),t<i&&(i=t,r="del"),{type:r,min:i}}var y=function(t,e){var n,i,o=t.length,a=e.length,s=0;if(0===o||0===a)return null;for(var u=[],c=0;c<=o;c++)u[c]=[],u[c][0]={min:c};for(var f=0;f<=a;f++)u[0][f]={min:f};for(c=1;c<=o;c++){n=t[c-1];for(f=1;f<=a;f++){i=e[f-1],s=Object(r["isEqual"])(n,i)?0:1;var l=u[c-1][f].min+1,h=u[c][f-1].min+1,d=u[c-1][f-1].min+s;u[c][f]=v(l,h,d)}}return u};function m(t,e){var n=y(t,e),r=t.length,i=e.length,o=[],a=1,s=1;if(n[r][i]!==r){for(var u=1;u<=r;u++){var c=n[u][u].min;s=u;for(var f=a;f<=i;f++)n[u][f].min<c&&(c=n[u][f].min,s=f);a=s,n[u][a].type&&o.push({index:u-1,type:n[u][a].type})}for(u=o.length-1;u>=0;u--)a=o[u].index,"add"===o[u].type?t.splice(a,0,[].concat(t[a])):t.splice(a,1)}if(r=t.length,r<i)for(u=0;u<i-r;u++)"z"===t[r-1][0]||"Z"===t[r-1][0]?t.splice(r-2,0,t[r-2]):t.push(t[r-1]);return t}function b(t){var e=[];switch(t[0]){case"M":e.push([t[1],t[2]]);break;case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":e.push([t[1],t[1]]);break;case"V":e.push([t[1],t[1]]);break;default:}return e}function x(t,e,n){for(var r,i=[].concat(t),o=1/(n+1),a=b(e)[0],s=1;s<=n;s++)o*=s,r=Math.floor(t.length*o),0===r?i.unshift([a[0]*o+t[r][0]*(1-o),a[1]*o+t[r][1]*(1-o)]):i.splice(r,0,[a[0]*o+t[r][0]*(1-o),a[1]*o+t[r][1]*(1-o)]);return i}function w(t,e){if(t.length<=1)return t;for(var n,r=0;r<e.length;r++)if(t[r][0]!==e[r][0])switch(n=b(t[r]),e[r][0]){case"M":t[r]=["M"].concat(n[0]);break;case"L":t[r]=["L"].concat(n[0]);break;case"A":t[r]=[].concat(e[r]),t[r][6]=n[0][0],t[r][7]=n[0][1];break;case"Q":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=x(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){t[r]=e[r];break}n=x(n,t[r-1],2)}t[r]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=x(n,t[r-1],1)}t[r]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[r]=e[r]}return t}function M(t,e,n,r,i){return i?[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]]:[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]]}var _="\t\n\v\f\r \u2028\u2029",S=new RegExp("([a-z])["+_+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+_+"]*,?["+_+"]*)+)","ig"),P=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+_+"]*,?["+_+"]*","ig");function k(t){if(!t)return null;if(Object(r["isArray"])(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(S,(function(t,r,i){var o=[],a=r.toLowerCase();if(i.replace(P,(function(t,e){e&&o.push(+e)})),"m"===a&&o.length>2&&(n.push([r].concat(o.splice(0,2))),a="l",r="m"===r?"l":"L"),"o"===a&&1===o.length&&n.push([r,o[0]]),"r"===a)n.push([r].concat(o));else while(o.length>=e[a])if(n.push([r].concat(o.splice(0,e[a]))),!e[a])break;return""})),n}var C=/[a-z]/;function O(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function E(t){var e=k(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,r=0;r<e.length;r++){var i=e[r][0];if(C.test(i)||["V","H","T","S"].indexOf(i)>=0){n=!0;break}}if(!n)return e;var o=[],a=0,s=0,u=0,c=0,f=0,l=e[0];"M"!==l[0]&&"m"!==l[0]||(a=+l[1],s=+l[2],u=a,c=s,f++,o[0]=["M",a,s]);r=f;for(var h=e.length;r<h;r++){var d=e[r],p=o[r-1],g=[],v=(i=d[0],i.toUpperCase());if(i!==v)switch(g[0]=v,v){case"A":g[1]=d[1],g[2]=d[2],g[3]=d[3],g[4]=d[4],g[5]=d[5],g[6]=+d[6]+a,g[7]=+d[7]+s;break;case"V":g[1]=+d[1]+s;break;case"H":g[1]=+d[1]+a;break;case"M":u=+d[1]+a,c=+d[2]+s,g[1]=u,g[2]=c;break;default:for(var y=1,m=d.length;y<m;y++)g[y]=+d[y]+(y%2?a:s)}else g=e[r];switch(v){case"Z":a=+u,s=+c;break;case"H":a=g[1],g=["L",a,s];break;case"V":s=g[1],g=["L",a,s];break;case"T":a=g[1],s=g[2];var b=O([p[1],p[2]],[p[3],p[4]]);g=["Q",b[0],b[1],a,s];break;case"S":a=g[g.length-2],s=g[g.length-1];var x=p.length,w=O([p[x-4],p[x-3]],[p[x-2],p[x-1]]);g=["C",w[0],w[1],g[1],g[2],a,s];break;case"M":u=g[g.length-2],c=g[g.length-1];break;default:a=g[g.length-2],s=g[g.length-1]}o.push(g)}return o}var A=2*Math.PI,j=function(t,e,n,r,i,o,a){var s=t.x,u=t.y;s*=e,u*=n;var c=r*s-i*u,f=i*s+r*u;return{x:c+o,y:f+a}},I=function(t,e){var n=1.5707963267948966===e?.551915024494:-1.5707963267948966===e?-.551915024494:4/3*Math.tan(e/4),r=Math.cos(t),i=Math.sin(t),o=Math.cos(t+e),a=Math.sin(t+e);return[{x:r-i*n,y:i+r*n},{x:o+a*n,y:a-o*n},{x:o,y:a}]},T=function(t,e,n,r){var i=t*r-e*n<0?-1:1,o=t*n+e*r;return o>1&&(o=1),o<-1&&(o=-1),i*Math.acos(o)},B=function(t,e,n,r,i,o,a,s,u,c,f,l){var h=Math.pow(i,2),d=Math.pow(o,2),p=Math.pow(f,2),g=Math.pow(l,2),v=h*d-h*g-d*p;v<0&&(v=0),v/=h*g+d*p,v=Math.sqrt(v)*(a===s?-1:1);var y=v*i/o*l,m=v*-o/i*f,b=c*y-u*m+(t+n)/2,x=u*y+c*m+(e+r)/2,w=(f-y)/i,M=(l-m)/o,_=(-f-y)/i,S=(-l-m)/o,P=T(1,0,w,M),k=T(w,M,_,S);return 0===s&&k>0&&(k-=A),1===s&&k<0&&(k+=A),[b,x,P,k]},N=function(t){var e=t.px,n=t.py,r=t.cx,i=t.cy,o=t.rx,a=t.ry,s=t.xAxisRotation,u=void 0===s?0:s,c=t.largeArcFlag,f=void 0===c?0:c,l=t.sweepFlag,h=void 0===l?0:l,d=[];if(0===o||0===a)return[{x1:0,y1:0,x2:0,y2:0,x:r,y:i}];var p=Math.sin(u*A/360),g=Math.cos(u*A/360),v=g*(e-r)/2+p*(n-i)/2,y=-p*(e-r)/2+g*(n-i)/2;if(0===v&&0===y)return[{x1:0,y1:0,x2:0,y2:0,x:r,y:i}];o=Math.abs(o),a=Math.abs(a);var m=Math.pow(v,2)/Math.pow(o,2)+Math.pow(y,2)/Math.pow(a,2);m>1&&(o*=Math.sqrt(m),a*=Math.sqrt(m));var b=B(e,n,r,i,o,a,f,h,p,g,v,y),x=b[0],w=b[1],M=b[2],_=b[3],S=Math.abs(_)/(A/4);Math.abs(1-S)<1e-7&&(S=1);var P=Math.max(Math.ceil(S),1);_/=P;for(var k=0;k<P;k++)d.push(I(M,_)),M+=_;return d.map((function(t){var e=j(t[0],o,a,g,p,x,w),n=e.x,r=e.y,i=j(t[1],o,a,g,p,x,w),s=i.x,u=i.y,c=j(t[2],o,a,g,p,x,w),f=c.x,l=c.y;return{x1:n,y1:r,x2:s,y2:u,x:f,y:l}}))};function D(t,e,n,r,i,o,a,s,u){var c=N({px:t,py:e,cx:s,cy:u,rx:n,ry:r,xAxisRotation:i,largeArcFlag:o,sweepFlag:a});return c.reduce((function(t,e){var n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.x,s=e.y;return t.push(n,r,i,o,a,s),t}),[])}function L(t,e,n,r,i,o){var a=1/3,s=2/3;return[a*t+s*n,a*e+s*r,a*i+s*n,a*o+s*r,i,o]}function R(t,e,n,r){return[t,e,n,r,n,r]}function z(t,e){"TQ".indexOf(t[0])<0&&(e.qx=null,e.qy=null);var n=t.slice(1),r=n[0],i=n[1];switch(t[0]){case"M":return e.x=r,e.y=i,t;case"A":return["C"].concat(D.apply(0,[e.x1,e.y1].concat(t.slice(1))));case"Q":return e.qx=r,e.qy=i,["C"].concat(L.apply(0,[e.x1,e.y1].concat(t.slice(1))));case"L":return["C"].concat(R(e.x1,e.y1,t[1],t[2]));case"H":return["C"].concat(R(e.x1,e.y1,t[1],e.y1));case"V":return["C"].concat(R(e.x1,e.y1,e.x1,t[1]));case"Z":return["C"].concat(R(e.x1,e.y1,e.x,e.y));default:}return t}function F(t,e){void 0===e&&(e=!1);for(var n,r,i=E(t),o={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null},a=[],s="",u=i.length,c=[],f=0;f<u;f+=1)i[f]&&(s=i[f][0]),a[f]=s,i[f]=z(i[f],o),G(i,a,f),u=i.length,"Z"===s&&c.push(f),n=i[f],r=n.length,o.x1=+n[r-2],o.y1=+n[r-1],o.x2=+n[r-4]||o.x1,o.y2=+n[r-3]||o.y1;return e?[i,c]:i}function G(t,e,n){if(t[n].length>7){t[n].shift();var r=t[n],i=n;while(r.length)e[n]="A",t.splice(i+=1,0,["C"].concat(r.splice(0,6)));t.splice(n,1)}}var Y=function(t,e,n,r,i){var o=-3*e+9*n-9*r+3*i,a=t*o+6*e-12*n+6*r;return t*a-3*e+3*n},X=function(t,e,n,r,i,o,a,s,u){null===u&&(u=1),u=u>1?1:u<0?0:u;for(var c=u/2,f=12,l=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,p=0;p<f;p++){var g=c*l[p]+c,v=Y(g,t,n,i,a),y=Y(g,e,r,o,s),m=v*v+y*y;d+=h[p]*Math.sqrt(m)}return c*d},V=function(t,e,n,r,i,o,a,s){for(var u,c,f,l,h=[],d=[[],[]],p=0;p<2;++p)if(0===p?(c=6*t-12*n+6*i,u=-3*t+9*n-9*i+3*a,f=3*n-3*t):(c=6*e-12*r+6*o,u=-3*e+9*r-9*o+3*s,f=3*r-3*e),Math.abs(u)<1e-12){if(Math.abs(c)<1e-12)continue;l=-f/c,l>0&&l<1&&h.push(l)}else{var g=c*c-4*f*u,v=Math.sqrt(g);if(!(g<0)){var y=(-c+v)/(2*u);y>0&&y<1&&h.push(y);var m=(-c-v)/(2*u);m>0&&m<1&&h.push(m)}}var b,x=h.length,w=x;while(x--)l=h[x],b=1-l,d[0][x]=b*b*b*t+3*b*b*l*n+3*b*l*l*i+l*l*l*a,d[1][x]=b*b*b*e+3*b*b*l*r+3*b*l*l*o+l*l*l*s;return d[0][w]=t,d[1][w]=e,d[0][w+1]=a,d[1][w+1]=s,d[0].length=d[1].length=w+2,{min:{x:Math.min.apply(0,d[0]),y:Math.min.apply(0,d[1])},max:{x:Math.max.apply(0,d[0]),y:Math.max.apply(0,d[1])}}},q=function(t,e,n,r,i,o,a,s){if(!(Math.max(t,n)<Math.min(i,a)||Math.min(t,n)>Math.max(i,a)||Math.max(e,r)<Math.min(o,s)||Math.min(e,r)>Math.max(o,s))){var u=(t*r-e*n)*(i-a)-(t-n)*(i*s-o*a),c=(t*r-e*n)*(o-s)-(e-r)*(i*s-o*a),f=(t-n)*(o-s)-(e-r)*(i-a);if(f){var l=u/f,h=c/f,d=+l.toFixed(2),p=+h.toFixed(2);if(!(d<+Math.min(t,n).toFixed(2)||d>+Math.max(t,n).toFixed(2)||d<+Math.min(i,a).toFixed(2)||d>+Math.max(i,a).toFixed(2)||p<+Math.min(e,r).toFixed(2)||p>+Math.max(e,r).toFixed(2)||p<+Math.min(o,s).toFixed(2)||p>+Math.max(o,s).toFixed(2)))return{x:l,y:h}}}},U=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},W=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:M(t,e,n,r),vb:[t,e,n,r].join(" ")}},H=function(t,e){return t=W(t),e=W(e),U(e,t.x,t.y)||U(e,t.x2,t.y)||U(e,t.x,t.y2)||U(e,t.x2,t.y2)||U(t,e.x,e.y)||U(t,e.x2,e.y)||U(t,e.x,e.y2)||U(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)},Z=function(t,e,n,i,o,a,s,u){Object(r["isArray"])(t)||(t=[t,e,n,i,o,a,s,u]);var c=V.apply(null,t);return W(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)},$=function(t,e,n,r,i,o,a,s,u){var c=1-u,f=Math.pow(c,3),l=Math.pow(c,2),h=u*u,d=h*u,p=f*t+3*l*u*n+3*c*u*u*i+d*a,g=f*e+3*l*u*r+3*c*u*u*o+d*s,v=t+2*u*(n-t)+h*(i-2*n+t),y=e+2*u*(r-e)+h*(o-2*r+e),m=n+2*u*(i-n)+h*(a-2*i+n),b=r+2*u*(o-r)+h*(s-2*o+r),x=c*t+u*n,w=c*e+u*r,M=c*i+u*a,_=c*o+u*s,S=90-180*Math.atan2(v-m,y-b)/Math.PI;return{x:p,y:g,m:{x:v,y:y},n:{x:m,y:b},start:{x:x,y:w},end:{x:M,y:_},alpha:S}},Q=function(t,e,n){var r=Z(t),i=Z(e);if(!H(r,i))return n?0:[];for(var o=X.apply(0,t),a=X.apply(0,e),s=~~(o/8),u=~~(a/8),c=[],f=[],l={},h=n?0:[],d=0;d<s+1;d++){var p=$.apply(0,t.concat(d/s));c.push({x:p.x,y:p.y,t:d/s})}for(d=0;d<u+1;d++){p=$.apply(0,e.concat(d/u));f.push({x:p.x,y:p.y,t:d/u})}for(d=0;d<s;d++)for(var g=0;g<u;g++){var v=c[d],y=c[d+1],m=f[g],b=f[g+1],x=Math.abs(y.x-v.x)<.001?"y":"x",w=Math.abs(b.x-m.x)<.001?"y":"x",M=q(v.x,v.y,y.x,y.y,m.x,m.y,b.x,b.y);if(M){if(l[M.x.toFixed(4)]===M.y.toFixed(4))continue;l[M.x.toFixed(4)]=M.y.toFixed(4);var _=v.t+Math.abs((M[x]-v[x])/(y[x]-v[x]))*(y.t-v.t),S=m.t+Math.abs((M[w]-m[w])/(b[w]-m[w]))*(b.t-m.t);_>=0&&_<=1&&S>=0&&S<=1&&(n?h++:h.push({x:M.x,y:M.y,t1:_,t2:S}))}}return h},K=function(t,e,n){var r,i,o,a,s,u,c,f,l,h;t=F(t),e=F(e);for(var d=n?0:[],p=0,g=t.length;p<g;p++){var v=t[p];if("M"===v[0])r=s=v[1],i=u=v[2];else{"C"===v[0]?(l=[r,i].concat(v.slice(1)),r=l[6],i=l[7]):(l=[r,i,r,i,s,u,s,u],r=s,i=u);for(var y=0,m=e.length;y<m;y++){var b=e[y];if("M"===b[0])o=c=b[1],a=f=b[2];else{"C"===b[0]?(h=[o,a].concat(b.slice(1)),o=h[6],a=h[7]):(h=[o,a,o,a,c,f,c,f],o=c,a=f);var x=Q(l,h,n);if(n)d+=x;else{for(var w=0,M=x.length;w<M;w++)x[w].segment1=p,x[w].segment2=y,x[w].bez1=l,x[w].bez2=h;d=d.concat(x)}}}}}return d};function J(t,e){return K(t,e)}var tt=/,?([a-z]),?/gi;function et(t){return t.join(",").replace(tt,"$1")}function nt(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function rt(t,e){return nt(t)*nt(e)?(t[0]*e[0]+t[1]*e[1])/(nt(t)*nt(e)):1}function it(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(rt(t,e))}function ot(t,e){return t[0]===e[0]&&t[1]===e[1]}function at(t,e){var n=e[1],i=e[2],o=Object(r["mod"])(Object(r["toRadian"])(e[3]),2*Math.PI),a=e[4],s=e[5],u=t[0],c=t[1],f=e[6],l=e[7],h=Math.cos(o)*(u-f)/2+Math.sin(o)*(c-l)/2,d=-1*Math.sin(o)*(u-f)/2+Math.cos(o)*(c-l)/2,p=h*h/(n*n)+d*d/(i*i);p>1&&(n*=Math.sqrt(p),i*=Math.sqrt(p));var g=n*n*(d*d)+i*i*(h*h),v=g?Math.sqrt((n*n*(i*i)-g)/g):1;a===s&&(v*=-1),isNaN(v)&&(v=0);var y=i?v*n*d/i:0,m=n?v*-i*h/n:0,b=(u+f)/2+Math.cos(o)*y-Math.sin(o)*m,x=(c+l)/2+Math.sin(o)*y+Math.cos(o)*m,w=[(h-y)/n,(d-m)/i],M=[(-1*h-y)/n,(-1*d-m)/i],_=it([1,0],w),S=it(w,M);return rt(w,M)<=-1&&(S=Math.PI),rt(w,M)>=1&&(S=0),0===s&&S>0&&(S-=2*Math.PI),1===s&&S<0&&(S+=2*Math.PI),{cx:b,cy:x,rx:ot(t,[f,l])?0:n,ry:ot(t,[f,l])?0:i,startAngle:_,endAngle:_+S,xRotation:o,arcFlag:a,sweepFlag:s}}function st(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function ut(t){t=s(t);for(var e=[],n=null,r=null,i=null,o=0,a=t.length,u=0;u<a;u++){var c=t[u];r=t[u+1];var f=c[0],l={command:f,prePoint:n,params:c,startTangent:null,endTangent:null};switch(f){case"M":i=[c[1],c[2]],o=u;break;case"A":var h=at(n,c);l["arcParams"]=h;break;default:break}if("Z"===f)n=i,r=t[o+1];else{var d=c.length;n=[c[d-2],c[d-1]]}r&&"Z"===r[0]&&(r=t[o],e[o]&&(e[o].prePoint=n)),l["currentPoint"]=n,e[o]&&ot(n,e[o].currentPoint)&&(e[o].prePoint=l.prePoint);var p=r?[r[r.length-2],r[r.length-1]]:null;l["nextPoint"]=p;var g=l.prePoint;if(["L","H","V"].includes(f))l.startTangent=[g[0]-n[0],g[1]-n[1]],l.endTangent=[n[0]-g[0],n[1]-g[1]];else if("Q"===f){var v=[c[1],c[2]];l.startTangent=[g[0]-v[0],g[1]-v[1]],l.endTangent=[n[0]-v[0],n[1]-v[1]]}else if("T"===f){var y=e[u-1];v=st(y.currentPoint,g);"Q"===y.command?(l.command="Q",l.startTangent=[g[0]-v[0],g[1]-v[1]],l.endTangent=[n[0]-v[0],n[1]-v[1]]):(l.command="TL",l.startTangent=[g[0]-n[0],g[1]-n[1]],l.endTangent=[n[0]-g[0],n[1]-g[1]])}else if("C"===f){var m=[c[1],c[2]],b=[c[3],c[4]];l.startTangent=[g[0]-m[0],g[1]-m[1]],l.endTangent=[n[0]-b[0],n[1]-b[1]],0===l.startTangent[0]&&0===l.startTangent[1]&&(l.startTangent=[m[0]-b[0],m[1]-b[1]]),0===l.endTangent[0]&&0===l.endTangent[1]&&(l.endTangent=[b[0]-m[0],b[1]-m[1]])}else if("S"===f){y=e[u-1],m=st(y.currentPoint,g),b=[c[1],c[2]];"C"===y.command?(l.command="C",l.startTangent=[g[0]-m[0],g[1]-m[1]],l.endTangent=[n[0]-b[0],n[1]-b[1]]):(l.command="SQ",l.startTangent=[g[0]-b[0],g[1]-b[1]],l.endTangent=[n[0]-b[0],n[1]-b[1]])}else if("A"===f){var x=.001,w=l["arcParams"]||{},M=w.cx,_=void 0===M?0:M,S=w.cy,P=void 0===S?0:S,k=w.rx,C=void 0===k?0:k,O=w.ry,E=void 0===O?0:O,A=w.sweepFlag,j=void 0===A?0:A,I=w.startAngle,T=void 0===I?0:I,B=w.endAngle,N=void 0===B?0:B;0===j&&(x*=-1);var D=C*Math.cos(T-x)+_,L=E*Math.sin(T-x)+P;l.startTangent=[D-i[0],L-i[1]];var R=C*Math.cos(T+N+x)+_,z=E*Math.sin(T+N-x)+P;l.endTangent=[g[0]-R,g[1]-z]}e.push(l)}return e}var ct=function(t,e,n){return t>=e&&t<=n};function ft(t,e,n,r){var i=.001,o={x:n.x-t.x,y:n.y-t.y},a={x:e.x-t.x,y:e.y-t.y},s={x:r.x-n.x,y:r.y-n.y},u=a.x*s.y-a.y*s.x,c=u*u,f=a.x*a.x+a.y*a.y,l=s.x*s.x+s.y*s.y,h=null;if(c>i*f*l){var d=(o.x*s.y-o.y*s.x)/u,p=(o.x*a.y-o.y*a.x)/u;ct(d,0,1)&&ct(p,0,1)&&(h={x:t.x+d*a.x,y:t.y+d*a.y})}return h}var lt=1e-6;function ht(t){return Math.abs(t)<lt?0:t<0?-1:1}function dt(t,e,n){return(n[0]-t[0])*(e[1]-t[1])===(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function pt(t,e,n){var r=!1,i=t.length;if(i<=2)return!1;for(var o=0;o<i;o++){var a=t[o],s=t[(o+1)%i];if(dt(a,s,[e,n]))return!0;ht(a[1]-n)>0!==ht(s[1]-n)>0&&ht(e-(n-a[1])*(a[0]-s[0])/(a[1]-s[1])-a[0])<0&&(r=!r)}return r}function gt(t){for(var e=[],n=t.length,r=0;r<n-1;r++){var i=t[r],o=t[r+1];e.push({from:{x:i[0],y:i[1]},to:{x:o[0],y:o[1]}})}if(e.length>1){var a=t[0],s=t[n-1];e.push({from:{x:s[0],y:s[1]},to:{x:a[0],y:a[1]}})}return e}function vt(t,e){var n=!1;return Object(r["each"])(t,(function(t){if(ft(t.from,t.to,e.from,e.to))return n=!0,!1})),n}function yt(t){var e=t.map((function(t){return t[0]})),n=t.map((function(t){return t[1]}));return{minX:Math.min.apply(null,e),maxX:Math.max.apply(null,e),minY:Math.min.apply(null,n),maxY:Math.max.apply(null,n)}}function mt(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function bt(t,e){if(t.length<2||e.length<2)return!1;var n=yt(t),i=yt(e);if(!mt(n,i))return!1;var o=!1;if(Object(r["each"])(e,(function(e){if(pt(t,e[0],e[1]))return o=!0,!1})),o)return!0;if(Object(r["each"])(t,(function(t){if(pt(e,t[0],t[1]))return o=!0,!1})),o)return!0;var a=gt(t),s=gt(e),u=!1;return Object(r["each"])(s,(function(t){if(vt(a,t))return u=!0,!1})),u}},"2f92":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("6b6a"),i=o(n("afaa"));function o(t){return t&&t.__esModule?t:{default:t}}var a=function(){function t(){}return t.registerBehavior=function(e,n){if(!n)throw new Error("please specify handler for this behavior: "+e);var o=(0,r.clone)(i.default);Object.assign(o,n);var a=function(t){var e=this;Object.assign(this,this.getDefaultCfg(),t);var n=this.getEvents();this.events=null;var i={};n&&((0,r.each)(n,(function(t,n){i[n]=(0,r.wrapBehavior)(e,t)})),this.events=i)};a.prototype=o,t.types[e]=a},t.hasBehavior=function(e){return!!t.types[e]},t.getBehavior=function(e){return t.types[e]},t.types={},t}(),s=a;e.default=s},"2fcc":function(t,e){function n(t){var e=this.__data__,n=e["delete"](t);return this.size=e.size,n}t.exports=n},3002:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=parseInt},"30c9":function(t,e,n){var r=n("9520"),i=n("b218");function o(t){return null!=t&&i(t.length)&&!r(t)}t.exports=o},"31a5":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=c(n("1d27")),i=c(n("72fb")),o=c(n("28f9")),a=c(n("eafe")),s=n("804a"),u=n("e897");function c(t){return t&&t.__esModule?t:{default:t}}var f=["click","mousedown","mouseup","dblclick","contextmenu","mouseenter","mouseout","mouseover","mousemove","mouseleave","dragstart","dragend","drag","dragenter","dragleave","dragover","dragout","drop","touchstart","touchmove","touchend"],l=function(){function t(t){this.preItem=null,this.graph=t,this.extendEvents=[],this.dragging=!1,this.destroyed=!1,this.initEvents()}return t.prototype.initEvents=function(){var t=this,e=t.graph,n=t.extendEvents,o=e.get("canvas"),s=o.get("el"),u=(0,a.default)(this,"onCanvasEvents"),c=(0,a.default)(this,"onExtendEvents"),l=(0,a.default)(this,"onWheelEvent");(0,i.default)(f,(function(t){o.on(t,u)})),this.canvasHandler=u,n.push((0,r.default)(s,"DOMMouseScroll",l)),n.push((0,r.default)(s,"mousewheel",l)),"undefined"!==typeof window&&(n.push((0,r.default)(window,"keydown",c)),n.push((0,r.default)(window,"keyup",c)),n.push((0,r.default)(window,"focus",c)))},t.getItemRoot=function(t){while(t&&!t.get("item"))t=t.get("parent");return t},t.prototype.onCanvasEvents=function(e){var n=this.graph,r=n.get("canvas"),i=e.target,o=e.type;e.canvasX=e.x,e.canvasY=e.y;var a={x:e.canvasX,y:e.canvasY},c=n.get("group"),f=c.getMatrix();if(f||(f=u.mat3.create()),(0,s.isViewportChanged)(f)&&(a=n.getPointByCanvas(e.canvasX,e.canvasY)),e.x=a.x,e.y=a.y,e.currentTarget=n,i===r)return"mousemove"===o&&this.handleMouseMove(e,"canvas"),e.target=r,e.item=null,n.emit(o,e),void n.emit("canvas:"+o,e);var l=t.getItemRoot(i);if(l){var h=l.get("item");if(!h.destroyed){var d=h.getType();e.target=i,e.item=h,n.emit(o,e),n.emit(d+":"+o,e),"dragstart"===o&&(this.dragging=!0),"dragend"===o&&(this.dragging=!1),"mousemove"===o&&this.handleMouseMove(e,d)}}else n.emit(o,e)},t.prototype.onExtendEvents=function(t){this.graph.emit(t.type,t)},t.prototype.onWheelEvent=function(t){(0,o.default)(t.wheelDelta)&&(t.wheelDelta=-t.detail),this.graph.emit("wheel",t)},t.prototype.handleMouseMove=function(t,e){var n=this,r=n.graph,i=n.preItem,o=r.get("canvas"),a=t.target===o?null:t.item;t=(0,s.cloneEvent)(t),i&&i!==a&&!i.destroyed&&(t.item=i,this.emitCustomEvent(i.getType(),"mouseleave",t),this.dragging&&this.emitCustomEvent(i.getType(),"dragleave",t)),a&&i!==a&&(t.item=a,this.emitCustomEvent(e,"mouseenter",t),this.dragging&&this.emitCustomEvent(e,"dragenter",t)),this.preItem=a},t.prototype.emitCustomEvent=function(t,e,n){n.type=e,this.graph.emit(t+":"+e,n)},t.prototype.destroy=function(){var t=this,e=t.graph,n=t.canvasHandler,r=t.extendEvents,o=e.get("canvas");(0,i.default)(f,(function(t){o.off(t,n)})),(0,i.default)(r,(function(t){t.remove()})),this.dragging=!1,this.preItem=null,this.extendEvents.length=0,this.canvasHandler=null,this.destroyed=!0},t}(),h=l;e.default=h},"31c4":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mergeView=e.getMergedRegion=e.getRefreshRegion=e.refreshElement=e.drawPath=e.drawChildren=e.applyAttrsToContext=void 0;var r=n("8937"),i=n("7f6b"),o=n("9351"),a=n("516b"),s=n("4dab"),u={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function c(t,e){var n=e.attr();for(var o in n){var a=n[o],s=u[o]?u[o]:o;"matrix"===s&&a?t.transform(a[0],a[1],a[3],a[4],a[6],a[7]):"lineDash"===s&&t.setLineDash?r.isArray(a)&&t.setLineDash(a):("strokeStyle"===s||"fillStyle"===s?a=i.parseStyle(t,e,a):"globalAlpha"===s&&(a*=t.globalAlpha),t[s]=a)}}function f(t,e,n){for(var r=0;r<e.length;r++){var i=e[r];i.get("visible")?i.draw(t,n):i.skipDraw()}}function l(t,e,n,r){var i=n.path,a=n.startArrow,u=n.endArrow,c=[0,0],f=[0,0],l={dx:0,dy:0};e.beginPath();for(var h=0;h<i.length;h++){var d=i[h],p=d[0];if(0===h&&a&&a.d){var g=t.getStartTangent();l=s.getShortenOffset(g[0][0],g[0][1],g[1][0],g[1][1],a.d)}else if(h===i.length-2&&"Z"===i[h+1][0]&&u&&u.d){var v=i[h+1];if("Z"===v[0]){g=t.getEndTangent();l=s.getShortenOffset(g[0][0],g[0][1],g[1][0],g[1][1],u.d)}}else if(h===i.length-1&&u&&u.d&&"Z"!==i[0]){g=t.getEndTangent();l=s.getShortenOffset(g[0][0],g[0][1],g[1][0],g[1][1],u.d)}var y=l.dx,m=l.dy;switch(p){case"M":e.moveTo(d[1]-y,d[2]-m),f=[d[1],d[2]];break;case"L":e.lineTo(d[1]-y,d[2]-m);break;case"Q":e.quadraticCurveTo(d[1],d[2],d[3]-y,d[4]-m);break;case"C":e.bezierCurveTo(d[1],d[2],d[3],d[4],d[5]-y,d[6]-m);break;case"A":var b=void 0;r?(b=r[h],b||(b=o.default(c,d),r[h]=b)):b=o.default(c,d);var x=b.cx,w=b.cy,M=b.rx,_=b.ry,S=b.startAngle,P=b.endAngle,k=b.xRotation,C=b.sweepFlag;if(e.ellipse)e.ellipse(x,w,M,_,k,S,P,1-C);else{var O=M>_?M:_,E=M>_?1:M/_,A=M>_?_/M:1;e.translate(x,w),e.rotate(k),e.scale(E,A),e.arc(0,0,O,S,P,1-C),e.scale(1/E,1/A),e.rotate(-k),e.translate(-x,-w)}break;case"Z":e.closePath();break;default:break}if("Z"===p)c=f;else{var j=d.length;c=[d[j-2],d[j-1]]}}}function h(t,e){var n=t.get("canvas");n&&("remove"===e&&(t._cacheCanvasBBox=t.get("cacheCanvasBBox")),t.get("hasChanged")||(n.refreshElement(t,e,n),n.get("autoDraw")&&n.draw(),t.set("hasChanged",!0)))}function d(t){var e;if(t.destroyed)e=t["_cacheCanvasBBox"];else{var n=t.get("cacheCanvasBBox"),r=n&&!(!n.width||!n.height),i=t.getCanvasBBox(),o=i&&!(!i.width||!i.height);r&&o?e=a.mergeRegion(n,i):r?e=n:o&&(e=i)}return e}function p(t){if(!t.length)return null;var e=[],n=[],i=[],o=[];return r.each(t,(function(t){var r=d(t);r&&(e.push(r.minX),n.push(r.minY),i.push(r.maxX),o.push(r.maxY))})),{minX:Math.min.apply(null,e),minY:Math.min.apply(null,n),maxX:Math.max.apply(null,i),maxY:Math.max.apply(null,o)}}function g(t,e){return t&&e&&a.intersectRect(t,e)?{minX:Math.max(t.minX,e.minX),minY:Math.max(t.minY,e.minY),maxX:Math.min(t.maxX,e.maxX),maxY:Math.min(t.maxY,e.maxY)}:null}e.applyAttrsToContext=c,e.drawChildren=f,e.drawPath=l,e.refreshElement=h,e.getRefreshRegion=d,e.getMergedRegion=p,e.mergeView=g},3234:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("5b8d"),i=function(t,e){if(!r.default(t))return t;for(var n=[],i=0;i<t.length;i++){var o=t[i];n.push(e(o,i))}return n};e.default=i},3255:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("bd82"));function i(t){return t&&t.__esModule?t:{default:t}}var o=Object.assign({getDefaultCfg:function(){return{item:"edge",offset:12,formatText:function(t){return"source: "+t.source+" target: "+t.target}}},getEvents:function(){return{"edge:mouseenter":"onMouseEnter","edge:mouseleave":"onMouseLeave","edge:mousemove":"onMouseMove"}}},r.default);e.default=o},"32b3":function(t,e,n){var r=n("872a"),i=n("9638"),o=Object.prototype,a=o.hasOwnProperty;function s(t,e,n){var o=t[e];a.call(t,e)&&i(o,n)&&(void 0!==n||e in t)||r(t,e,n)}t.exports=s},"32b8":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r="dblclick",i=["click","dblclick"],o={getDefaultCfg:function(){return{trigger:r}},getEvents:function(){var t,e;return i.includes(this.trigger)?e=this.trigger:(e=r,console.warn("Behavior collapse-expand-group 的 trigger 参数不合法,请输入 'click' 或 'dblclick'")),t={},t[""+e]="onGroupClick",t},onGroupClick:function(t){var e=t.target,n=this.graph,r=e.get("groupId");if(r){var i=n.get("customGroupControll");i.collapseExpandGroup(r)}}};e.default=o},"32ef":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r="click",i=["click","dblclick"],o={getDefaultCfg:function(){return{trigger:r,onChange:function(){}}},getEvents:function(){var t,e;return i.includes(this.trigger)?e=this.trigger:(e=r,console.warn("Behavior collapse-expand 的 trigger 参数不合法,请输入 'click' 或 'dblclick'")),t={},t["node:"+e]="onNodeClick",t},onNodeClick:function(t){var e=t.item,n=this.graph.findDataById(e.get("id"));if(n){var r=n.children;if(r&&0!==r.length){var i=!n.collapsed;if(this.shouldBegin(t,i)&&(n.collapsed=i,e.getModel().collapsed=i,this.graph.emit("itemcollapsed",{item:t.item,collapsed:i}),this.shouldUpdate(t,i))){try{this.onChange(e,i)}catch(o){console.warn("G6 自 3.0.4 版本支持直接从 item.getModel() 获取源数据(临时通知,将在3.2.0版本中清除)",o)}this.graph.layout()}}}}};e.default=o},"32f4":function(t,e,n){var r=n("2d7c"),i=n("d327"),o=Object.prototype,a=o.propertyIsEnumerable,s=Object.getOwnPropertySymbols,u=s?function(t){return null==t?[]:(t=Object(t),r(s(t),(function(e){return a.call(t,e)})))}:i;t.exports=u},"339d":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={};e.default=function(t){return t=t||"g",r[t]?r[t]+=1:r[t]=1,t+r[t]}},"33d2":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={};function i(t){var e=r[t];if(!e){for(var n=t.toString(16),i=n.length;i<6;i++)n="0"+n;e="#"+n,r[t]=e}return e}e.default=i},"33de":function(t,e,n){var r;try{r={clone:n("b8ce"),constant:n("72f0"),each:n("c641"),filter:n("9380"),has:n("3852"),isArray:n("6747"),isEmpty:n("13ea"),isFunction:n("9520"),isUndefined:n("4cfe"),keys:n("ec69"),map:n("dd61"),reduce:n("c5a2"),size:n("d623"),transform:n("50ca"),union:n("bfc7"),values:n("3ff1")}}catch(i){}r||(r=window._),t.exports=r},3410:function(t,e,n){var r=n("23e7"),i=n("d039"),o=n("7b0b"),a=n("e163"),s=n("e177"),u=i((function(){a(1)}));r({target:"Object",stat:!0,forced:u,sham:!s},{getPrototypeOf:function(t){return a(o(t))}})},"34ac":function(t,e,n){var r=n("9520"),i=n("1368"),o=n("1a8c"),a=n("dc57"),s=/[\\^$.*+?()[\]{}|]/g,u=/^\[object .+?Constructor\]$/,c=Function.prototype,f=Object.prototype,l=c.toString,h=f.hasOwnProperty,d=RegExp("^"+l.call(h).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(t){if(!o(t)||i(t))return!1;var e=r(t)?d:u;return e.test(a(t))}t.exports=p},"34dd":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("bd8b"),i=function(t){return r.default(t,"Boolean")};e.default=i},3568:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("076b"),i=n("573a");function o(t,e,n,o,a,s,u,c){return r.default(t+a,e,t+n-a,e,s,u,c)||r.default(t+n,e+a,t+n,e+o-a,s,u,c)||r.default(t+n-a,e+o,t+a,e+o,s,u,c)||r.default(t,e+o-a,t,e+a,s,u,c)||i.default(t+n-a,e+a,a,1.5*Math.PI,2*Math.PI,s,u,c)||i.default(t+n-a,e+o-a,a,0,.5*Math.PI,s,u,c)||i.default(t+a,e+o-a,a,.5*Math.PI,Math.PI,s,u,c)||i.default(t+a,e+a,a,Math.PI,1.5*Math.PI,s,u,c)}e.default=o},3698:function(t,e){function n(t,e){return null==t?void 0:t[e]}t.exports=n},"36c6":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))};e.default=r},3729:function(t,e,n){var r=n("9e69"),i=n("00fd"),o=n("29f3"),a="[object Null]",s="[object Undefined]",u=r?r.toStringTag:void 0;function c(t){return null==t?void 0===t?s:a:u&&u in Object(t)?i(t):o(t)}t.exports=c},3753:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Math.PI/180,i=function(t){return r*t};e.default=i},"375c":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n("9cc4")),i=n("19f7");function o(t){return t&&t.__esModule?t:{default:t}}var a=self;function s(t){var e=t.data.type;return e===i.LAYOUT_MESSAGE.RUN}function u(t){var e=t.data.type;switch(e){case i.LAYOUT_MESSAGE.RUN:var n=t.data,o=n.nodes,s=n.edges,u=n.layoutCfg,c=void 0===u?{}:u,f=c.type,l=r.default[f];if(!l){a.postMessage({type:i.LAYOUT_MESSAGE.ERROR,message:"layout "+f+" not found"});break}var h=new l(c);h.init({nodes:o,edges:s}),h.execute(),a.postMessage({type:i.LAYOUT_MESSAGE.END,nodes:o}),h.destroy();break;default:break}}a.onmessage=function(t){s(t)&&u(t)};var c=null;e.default=c},"37a5":function(t,e,n){"use strict";function r(t){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("9ab4"),o=p(n("0a4a")),a=h(n("01f9")),s=h(n("2047")),u=h(n("842b")),c=h(n("503e")),f=n("56fa"),l=n("19f7");function h(t){return t&&t.__esModule?t:{default:t}}function d(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return d=function(){return t},t}function p(t){if(t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!==typeof t)return{default:t};var e=d();if(e&&e.has(t))return e.get(t);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var a=i?Object.getOwnPropertyDescriptor(t,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=t[o]}return n.default=t,e&&e.set(t,n),n}var g=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=[0,0],e.nodeStrength=null,e.edgeStrength=null,e.preventOverlap=!1,e.linkDistance=50,e.alphaDecay=.028,e.alphaMin=.001,e.alpha=.3,e.collideStrength=1,e.workerEnabled=!1,e.tick=function(){},e.onLayoutEnd=function(){},e.onTick=function(){},e.ticking=void 0,e}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{center:[0,0],nodeStrength:null,edgeStrength:null,preventOverlap:!1,nodeSize:void 0,nodeSpacing:void 0,linkDistance:50,forceSimulation:null,alphaDecay:.028,alphaMin:.001,alpha:.3,collideStrength:1,tick:function(){},onLayoutEnd:function(){},onTick:function(){},workerEnabled:!1}},e.prototype.init=function(t){var e=this;e.nodes=t.nodes||[];var n=t.edges||[];e.edges=n.map((function(t){var e={},n=["targetNode","sourceNode","startPoint","endPoint"];return Object.keys(t).forEach((function(r){n.indexOf(r)>-1||(e[r]=t[r])})),e})),e.ticking=!1},e.prototype.execute=function(){var t=this,e=t.nodes,n=t.edges;if(!t.ticking){var r=t.forceSimulation,i=t.alphaMin,a=t.alphaDecay,s=t.alpha;if(r)t.preventOverlap&&t.overlapProcess(r),r.alpha(s).restart(),this.ticking=!0;else try{var u=o.forceManyBody();if(t.nodeStrength&&u.strength(t.nodeStrength),r=o.forceSimulation().nodes(e).force("center",o.forceCenter(t.center[0],t.center[1])).force("charge",u).alpha(s).alphaDecay(a).alphaMin(i),t.preventOverlap&&t.overlapProcess(r),n){var c=o.forceLink().id((function(t){return t.id})).links(n);t.edgeStrength&&c.strength(t.edgeStrength),t.linkDistance&&c.distance(t.linkDistance),r.force("link",c)}if(t.workerEnabled&&!m()&&(t.workerEnabled=!1,console.warn("workerEnabled option is only supported when running in web worker.")),t.workerEnabled){r.stop();for(var f=y(r),h=1;h<=f;h++)r.tick(),postMessage({type:l.LAYOUT_MESSAGE.TICK,currentTick:h,totalTicks:f,nodes:e},void 0);t.ticking=!1}else r.on("tick",(function(){t.tick()})).on("end",(function(){t.ticking=!1,t.onLayoutEnd&&t.onLayoutEnd()})),t.ticking=!0;t.forceSimulation=r,t.ticking=!0}catch(d){t.ticking=!1,console.warn(d)}}},e.prototype.overlapProcess=function(t){var e,n,r=this,i=r.nodeSize,c=r.nodeSpacing,f=r.collideStrength;if(n=(0,u.default)(c)?function(){return c}:(0,s.default)(c)?c:function(){return 0},i)if((0,s.default)(i))e=function(t){var e=i(t);return e+n(t)};else if((0,a.default)(i)){var l=i[0]>i[1]?i[0]:i[1],h=l/2;e=function(t){return h+n(t)}}else if((0,u.default)(i)){var d=i/2;e=function(t){return d+n(t)}}else e=function(){return 10};else e=function(t){if(t.size){if((0,a.default)(t.size)){var e=t.size[0]>t.size[1]?t.size[0]:t.size[1];return e/2+n(t)}return t.size/2+n(t)}return 10+n(t)};t.force("collisionForce",o.forceCollide(e).strength(f))},e.prototype.updateCfg=function(t){var e=this;e.ticking&&(e.forceSimulation.stop(),e.ticking=!1),e.forceSimulation=null,(0,c.default)(e,t)},e.prototype.destroy=function(){var t=this;t.ticking&&(t.forceSimulation.stop(),t.ticking=!1),t.nodes=null,t.edges=null,t.destroyed=!0},e}(f.BaseLayout),v=g;function y(t){var e=t.alphaMin(),n=t.alphaTarget(),r=t.alpha(),i=Math.log((e-n)/(r-n))/Math.log(1-t.alphaDecay()),o=Math.ceil(i);return o}function m(){return"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope}e.default=v},3818:function(t,e,n){var r=n("7e64"),i=n("8057"),o=n("32b3"),a=n("5b01"),s=n("0f0f"),u=n("e5383"),c=n("4359"),f=n("54eb"),l=n("1041"),h=n("a994"),d=n("1bac"),p=n("42a2"),g=n("c87c"),v=n("c2b6"),y=n("fa21"),m=n("6747"),b=n("0d24"),x=n("cc45"),w=n("1a8c"),M=n("d7ee"),_=n("ec69"),S=n("9934"),P=1,k=2,C=4,O="[object Arguments]",E="[object Array]",A="[object Boolean]",j="[object Date]",I="[object Error]",T="[object Function]",B="[object GeneratorFunction]",N="[object Map]",D="[object Number]",L="[object Object]",R="[object RegExp]",z="[object Set]",F="[object String]",G="[object Symbol]",Y="[object WeakMap]",X="[object ArrayBuffer]",V="[object DataView]",q="[object Float32Array]",U="[object Float64Array]",W="[object Int8Array]",H="[object Int16Array]",Z="[object Int32Array]",$="[object Uint8Array]",Q="[object Uint8ClampedArray]",K="[object Uint16Array]",J="[object Uint32Array]",tt={};function et(t,e,n,E,A,j){var I,N=e&P,D=e&k,R=e&C;if(n&&(I=A?n(t,E,A,j):n(t)),void 0!==I)return I;if(!w(t))return t;var z=m(t);if(z){if(I=g(t),!N)return c(t,I)}else{var F=p(t),G=F==T||F==B;if(b(t))return u(t,N);if(F==L||F==O||G&&!A){if(I=D||G?{}:y(t),!N)return D?l(t,s(I,t)):f(t,a(I,t))}else{if(!tt[F])return A?t:{};I=v(t,F,N)}}j||(j=new r);var Y=j.get(t);if(Y)return Y;j.set(t,I),M(t)?t.forEach((function(r){I.add(et(r,e,n,r,t,j))})):x(t)&&t.forEach((function(r,i){I.set(i,et(r,e,n,i,t,j))}));var X=R?D?d:h:D?S:_,V=z?void 0:X(t);return i(V||t,(function(r,i){V&&(i=r,r=t[i]),o(I,i,et(r,e,n,i,t,j))})),I}tt[O]=tt[E]=tt[X]=tt[V]=tt[A]=tt[j]=tt[q]=tt[U]=tt[W]=tt[H]=tt[Z]=tt[N]=tt[D]=tt[L]=tt[R]=tt[z]=tt[F]=tt[G]=tt[$]=tt[Q]=tt[K]=tt[J]=!0,tt[I]=tt[T]=tt[Y]=!1,t.exports=et},3820:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),i=n("6855"),o=n("c31b"),a=n("7d16"),s=n("516b"),u=n("076b"),c=n("573a"),f=n("1f05"),l=n("9fe7");function h(t){for(var e=!1,n=t.length,r=0;r<n;r++){var i=t[r],o=i[0];if("C"===o||"A"===o||"Q"===o){e=!0;break}}return e}function d(t,e,n,r){for(var i=!1,h=e/2,d=0;d<t.length;d++){var p=t[d],g=p.currentPoint,v=p.params,y=p.prePoint,m=p.box;if(!m||s.inBox(m.x-h,m.y-h,m.width+e,m.height+e,n,r)){switch(p.command){case"L":case"Z":i=u.default(y[0],y[1],g[0],g[1],e,n,r);break;case"Q":var b=o.default.pointDistance(y[0],y[1],v[1],v[2],v[3],v[4],n,r);i=b<=e/2;break;case"C":var x=a.default.pointDistance(y[0],y[1],v[1],v[2],v[3],v[4],v[5],v[6],n,r);i=x<=e/2;break;case"A":var w=p.arcParams,M=w.cx,_=w.cy,S=w.rx,P=w.ry,k=w.startAngle,C=w.endAngle,O=w.xRotation,E=[n,r,1],A=[1,0,0,0,1,0,0,0,1],j=S>P?S:P,I=S>P?1:S/P,T=S>P?P/S:1;f.translate(A,A,[-M,-_]),f.rotate(A,A,-O),f.scale(A,A,[1/I,1/T]),l.transformMat3(E,E,A),i=c.default(0,0,j,k,C,e,E[0],E[1]);break;default:break}if(i)break}}return i}function p(t){for(var e=t.length,n=[],r=[],i=[],o=0;o<e;o++){var a=t[o],s=a[0];"M"===s?(i.length&&(r.push(i),i=[]),i.push([a[1],a[2]])):"Z"===s?i.length&&(n.push(i),i=[]):i.push([a[1],a[2]])}return i.length>0&&r.push(i),{polygons:n,polylines:r}}e.default=r.__assign({hasArc:h,extractPolygons:p,isPointInStroke:d},i.PathUtil)},3852:function(t,e,n){var r=n("96f3"),i=n("e2c0");function o(t,e){return null!=t&&i(t,e,r)}t.exports=o},"38e2f":function(t,e,n){var r=n("6f9c"),i=n("1f3a"),o=n("d9f3"),a=n("f352");function s(t,e,n,f){var l=t.children(e),h=t.node(e),d=h?h.borderLeft:void 0,p=h?h.borderRight:void 0,g={};d&&(l=r.filter(l,(function(t){return t!==d&&t!==p})));var v=i(t,l);r.forEach(v,(function(e){if(t.children(e.v).length){var i=s(t,e.v,n,f);g[e.v]=i,r.has(i,"barycenter")&&c(e,i)}}));var y=o(v,n);u(y,g);var m=a(y,f);if(d&&(m.vs=r.flatten([d,m.vs,p],!0),t.predecessors(d).length)){var b=t.node(t.predecessors(d)[0]),x=t.node(t.predecessors(p)[0]);r.has(m,"barycenter")||(m.barycenter=0,m.weight=0),m.barycenter=(m.barycenter*m.weight+b.order+x.order)/(m.weight+2),m.weight+=2}return m}function u(t,e){r.forEach(t,(function(t){t.vs=r.flatten(t.vs.map((function(t){return e[t]?e[t].vs:t})),!0)}))}function c(t,e){r.isUndefined(t.barycenter)?(t.barycenter=e.barycenter,t.weight=e.weight):(t.barycenter=(t.barycenter*t.weight+e.barycenter*e.weight)/(t.weight+e.weight),t.weight+=e.weight)}t.exports=s},"38f9":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("01f9"),i=n("2047"),o=n("07ea");function a(t,e){if(!e)return{0:t};if(!i.default(e)){var n=r.default(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",r=0,i=n.length;r<i;r++)e+=t[n[r]]&&t[n[r]].toString();return e}}return o.default(t,e)}e.default=a},"390f":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("9ab4"),i=o(n("13c9"));function o(t){return t&&t.__esModule?t:{default:t}}function a(t,e,n){var r=t.x-e.x,i=t.y-e.y;return!n||Math.abs(r)>n||Math.abs(i)>n?Math.sqrt(r*r+i*i):n}function s(t,e){return t.x*e.x+t.y*e.y}function u(t,e){var n=(e.source.y-e.target.y)/(e.source.x-e.target.x),r=(n*n*e.source.x+n*(t.y-e.source.y)+t.x)/(n*n+1),i=n*(r-e.source.x)+e.source.y;return{x:r,y:i}}var c=function(t){function e(e){return t.call(this,e)||this}return(0,r.__extends)(e,t),e.prototype.getDefaultCfgs=function(){return{edgeBundles:[],edgePoints:[],K:.1,lambda:.1,divisions:1,divRate:2,cycles:6,iterations:90,iterRate:.6666667,bundleThreshold:.6,eps:1e-6,onLayoutEnd:function(){},onTick:function(){}}},e.prototype.init=function(){var t=this.get("graph"),e=this.get("onTick"),n=function(){e&&e(),t.refreshPositions()};this.set("tick",n)},e.prototype.bundling=function(t){var e=this;if(e.set("data",t),!e.isTicking()){var n=t.edges||[],r=t.nodes||[],i={},o=!1;if(r.forEach((function(t){null!==t.x&&null!==!t.y&&void 0!==t.x&&void 0!==!t.y||(o=!0),i[t.id]=t})),o)throw new Error("please layout the graph or assign x and y for nodes first");e.set("nodeIdMap",i);var a=e.get("divisions"),s=e.get("divRate"),u=e.divideEdges(a);e.set("edgePoints",u);var c=e.getEdgeBundles();e.set("edgeBundles",c);for(var f=e.get("cycles"),l=e.get("iterations"),h=e.get("iterRate"),d=e.get("lambda"),p=0;p<f;p++){for(var g=function(t){var r=[];n.forEach((function(t,n){if(t.source!==t.target){var o=i[t.source],s=i[t.target];r[n]=e.getEdgeForces({source:o,target:s},n,a,d);for(var c=0;c<a+1;c++)u[n][c].x+=r[n][c].x,u[n][c].y+=r[n][c].y}}))},v=0;v<l;v++)g(v);d/=2,a*=s,l*=h,u=e.divideEdges(a),e.set("edgePoints",u)}n.forEach((function(t,e){t.source!==t.target&&(t.shape="polyline",t.type="polyline",t.controlPoints=u[e].slice(1,u[e].length-1))}));var y=e.get("graph");y.refresh()}},e.prototype.updateBundling=function(t){var e=this,n=t.data;if(n&&e.set("data",n),e.get("ticking")&&e.set("ticking",!1),Object.keys(t).forEach((function(n){e.set(n,t[n])})),t.onTick){var r=this.get("graph");e.set("tick",(function(){t.onTick(),r.refresh()}))}e.bundling(n)},e.prototype.divideEdges=function(t){var e=this,n=e.get("data").edges,r=e.get("nodeIdMap"),i=e.get("edgePoints");return i&&void 0!==i||(i=[]),n.forEach((function(n,o){i[o]&&void 0!==i[o]||(i[o]=[]);var s=r[n.source],u=r[n.target];if(1===t)i[o].push({x:s.x,y:s.y}),i[o].push({x:.5*(s.x+u.x),y:.5*(s.y+u.y)}),i[o].push({x:u.x,y:u.y});else{var c=0;c=i[o]&&i[o]!==[]?e.getEdgeLength(i[o]):a({x:s.x,y:s.y},{x:u.x,y:u.y});var f=c/(t+1),l=f,h=[{x:s.x,y:s.y}];i[o].forEach((function(t,e){if(0!==e){var n=a(t,i[o][e-1]);while(n>l){var r=l/n,s={x:i[o][e-1].x,y:i[o][e-1].y};s.x+=r*(t.x-i[o][e-1].x),s.y+=r*(t.y-i[o][e-1].y),h.push(s),n-=l,l=f}l-=n}})),h.push({x:u.x,y:u.y}),i[o]=h}})),i},e.prototype.getEdgeLength=function(t){var e=0;return t.forEach((function(n,r){0!==r&&(e+=a(n,t[r-1]))})),e},e.prototype.getEdgeBundles=function(){var t=this,e=t.get("data"),n=e.edges||[],r=t.get("bundleThreshold"),i=t.get("nodeIdMap"),o=t.get("edgeBundles");return o||(o=[]),n.forEach((function(t,e){o[e]&&void 0!==o[e]||(o[e]=[])})),n.forEach((function(e,a){var s=i[e.source],u=i[e.target];n.forEach((function(e,n){if(!(n<=a)){var c=i[e.source],f=i[e.target],l=t.getBundleScore({source:s,target:u},{source:c,target:f});l>=r&&(o[a].push(n),o[n].push(a))}}))})),o},e.prototype.getBundleScore=function(t,e){var n=this;t.vx=t.target.x-t.source.x,t.vy=t.target.y-t.source.y,e.vx=e.target.x-e.source.x,e.vy=e.target.y-e.source.y,t.length=a({x:t.source.x,y:t.source.y},{x:t.target.x,y:t.target.y}),e.length=a({x:e.source.x,y:e.source.y},{x:e.target.x,y:e.target.y});var r=n.getAngleScore(t,e),i=n.getScaleScore(t,e),o=n.getPositionScore(t,e),s=n.getVisibilityScore(t,e);return r*i*o*s},e.prototype.getAngleScore=function(t,e){var n=s({x:t.vx,y:t.vy},{x:e.vx,y:e.vy});return n/(t.length*e.length)},e.prototype.getScaleScore=function(t,e){var n=(t.length+e.length)/2,r=2/(n/Math.min(t.length,e.length)+Math.max(t.length,e.length)/n);return r},e.prototype.getPositionScore=function(t,e){var n=(t.length+e.length)/2,r={x:(t.source.x+t.target.x)/2,y:(t.source.y+t.target.y)/2},i={x:(e.source.x+e.target.x)/2,y:(e.source.y+e.target.y)/2},o=a(r,i);return n/(n+o)},e.prototype.getVisibilityScore=function(t,e){var n=this.getEdgeVisibility(t,e),r=this.getEdgeVisibility(e,t);return n<r?n:r},e.prototype.getEdgeVisibility=function(t,e){var n=u(e.source,t),r=u(e.target,t),i={x:(n.x+r.x)/2,y:(n.y+r.y)/2},o={x:(t.source.x+t.target.x)/2,y:(t.source.y+t.target.y)/2};return Math.max(0,1-2*a(i,o)/a(n,r))},e.prototype.getEdgeForces=function(t,e,n,r){for(var i=this,o=i.get("edgePoints"),s=i.get("K"),u=s/(a(t.source,t.target)*(n+1)),c=[{x:0,y:0}],f=1;f<n;f++){var l={x:0,y:0},h=i.getSpringForce({pre:o[e][f-1],cur:o[e][f],next:o[e][f+1]},u),d=i.getElectrostaticForce(f,e);l.x=r*(h.x+d.x),l.y=r*(h.y+d.y),c.push(l)}return c.push({x:0,y:0}),c},e.prototype.getSpringForce=function(t,e){var n=t.pre.x+t.next.x-2*t.cur.x,r=t.pre.y+t.next.y-2*t.cur.y;return n*=e,r*=e,{x:n,y:r}},e.prototype.getElectrostaticForce=function(t,e){var n=this,r=n.get("eps"),i=n.get("edgeBundles"),o=n.get("edgePoints"),s=i[e],u={x:0,y:0};return s.forEach((function(n){var i={x:o[n][t].x-o[e][t].x,y:o[n][t].y-o[e][t].y};if(Math.abs(i.x)>r||Math.abs(i.y)>r){var s=a(o[n][t],o[e][t]),c=1/s;u.x+=i.x*c,u.y+=i.y*c}})),u},e.prototype.isTicking=function(){return this.get("ticking")},e.prototype.getSimulation=function(){return this.get("forceSimulation")},e.prototype.destroy=function(){this.get("ticking")&&this.getSimulation().stop(),t.prototype.destroy.call(this)},e}(i.default),f=c;e.default=f},"396b":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return t.hasOwnProperty(e)}},"398d":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("804a"),i=Math.abs,o=10,a=["shift","ctrl","alt","control"],s={getDefaultCfg:function(){return{direction:"both"}},getEvents:function(){return{dragstart:"onMouseDown",drag:"onMouseMove",dragend:"onMouseUp","canvas:click":"onMouseUp",keyup:"onKeyUp",focus:"onKeyUp",keydown:"onKeyDown"}},updateViewport:function(t){var e=this.origin,n=+t.clientX,i=+t.clientY;if(!(0,r.isNaN)(n)&&!(0,r.isNaN)(i)){var o=n-e.x,a=i-e.y;"x"===this.get("direction")?a=0:"y"===this.get("direction")&&(o=0),this.origin={x:n,y:i};var s=this.graph.get("width"),u=this.graph.get("height"),c=this.graph.get("canvas").getCanvasBBox();(c.minX+o>s||c.maxX+o<0)&&(o=0),(c.minY+a>u||c.maxY+a<0)&&(a=0),this.graph.translate(o,a),this.graph.paint()}},onMouseDown:function(t){var e=this;e.keydown||t.shape||(e.origin={x:t.clientX,y:t.clientY},e.dragging=!1)},onMouseMove:function(t){var e=this.graph;if(!this.keydown&&!t.shape&&(t=(0,r.cloneEvent)(t),this.origin)){if(this.dragging)t.type="drag",e.emit("canvas:drag",t);else{if(i(this.origin.x-t.clientX)+i(this.origin.y-t.clientY)<o)return;this.shouldBegin.call(this,t)&&(t.type="dragstart",e.emit("canvas:dragstart",t),this.dragging=!0)}this.shouldUpdate.call(this,t)&&this.updateViewport(t)}},onMouseUp:function(t){var e=this.graph;this.keydown||t.shape||(this.dragging?(t=(0,r.cloneEvent)(t),this.shouldEnd.call(this,t)&&this.updateViewport(t),t.type="dragend",e.emit("canvas:dragend",t),this.endDrag()):this.origin=null)},endDrag:function(){this.origin=null,this.dragging=!1,this.dragbegin=!1},onKeyDown:function(t){var e=this,n=t.key;n&&(a.indexOf(n.toLowerCase())>-1?e.keydown=!0:e.keydown=!1)},onKeyUp:function(){this.keydown=!1}};e.default=s},"39ff":function(t,e,n){var r=n("0b07"),i=n("2b3e"),o=r(i,"WeakMap");t.exports=o},"3a44":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("01f9"),i=n("28f9");e.default=function(t,e){for(var n=[],o={},a=0;a<t.length;a++){var s=t[a],u=s[e];if(!i.default(u)){r.default(u)||(u=[u]);for(var c=0;c<u.length;c++){var f=u[c];o[f]||(n.push(f),o[f]=!0)}}}return n}},"3b4a":function(t,e,n){var r=n("0b07"),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();t.exports=i},"3bb4":function(t,e,n){var r=n("08cc"),i=n("ec69");function o(t){var e=i(t),n=e.length;while(n--){var o=e[n],a=t[o];e[n]=[o,a,r(a)]}return e}t.exports=o},"3c5c":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("739e"),i=function(t){var e=r.default(t);return e.charAt(0).toUpperCase()+e.substring(1)};e.default=i},"3d7d":function(t,e,n){"use strict";function r(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e}function i(t,e){var n=t.get("startArrowShape"),i=t.get("endArrowShape"),o=null,a=null;return n&&(o=n.getCanvasBBox(),e=r(e,o)),i&&(a=i.getCanvasBBox(),e=r(e,a)),e}Object.defineProperty(e,"__esModule",{value:!0}),e.mergeBBox=r,e.mergeArrowBBox=i},"3dfb":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("076b");function i(t,e,n,i,o){var a=t.length;if(a<2)return!1;for(var s=0;s<a-1;s++){var u=t[s][0],c=t[s][1],f=t[s+1][0],l=t[s+1][1];if(r.default(u,c,f,l,e,n,i))return!0}if(o){var h=t[0],d=t[a-1];if(r.default(h[0],h[1],d[0],d[1],e,n,i))return!0}return!1}e.default=i},"3eaf":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=180/Math.PI,i=function(t){return r*t};e.default=i},"3ff1":function(t,e,n){var r=n("266a"),i=n("ec69");function o(t){return null==t?[]:r(t,i(t))}t.exports=o},"404b":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={circle:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["z"]]},triangleDown:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}};e.default={get:function(t){return r[t]},register:function(t,e){r[t]=e},remove:function(t){delete r[t]},getAll:function(){return r}}},4071:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("01f9");e.default=function(t){if(r.default(t))return t.reduce((function(t,e){return Math.min(t,e)}),t[0])}},"408a":function(t,e,n){var r=n("e330");t.exports=r(1..valueOf)},"408c":function(t,e,n){var r=n("2b3e"),i=function(){return r.Date.now()};t.exports=i},4166:function(t,e,n){"use strict";var r=n("8937"),i=n("1b92"),o=u(n("067f")),a=u(n("7da3")),s=n("d321");function u(t){return t&&t.__esModule?t:{default:t}}a.default.registerEdge("polyline",{options:{color:o.default.defaultEdge.color,style:{radius:0,offset:5,x:0,y:0},labelCfg:{style:{fill:"#595959"}}},shapeType:"polyline",labelPosition:"center",drawShape:function(t,e){var n=this.getShapeStyle(t),r=e.addShape("path",{className:"edge-shape",name:"edge-shape",attrs:n});return r},getShapeStyle:function(t){var e=this.options.style,n={stroke:t.color},i=(0,r.mix)({},e,n,t.style);t=this.getPathPoints(t),this.radius=i.radius,this.offset=i.offset;var a=t.startPoint,s=t.endPoint,u=this.getControlPoints(t),c=[a];u&&(c=c.concat(u)),c.push(s);var f=t.sourceNode,l=t.targetNode,h={radius:i.radius};u||(h={source:f,target:l,offset:i.offset,radius:i.radius});var d=this.getPath(c,h);((0,r.isArray)(d)&&d.length<=1||(0,r.isString)(d)&&-1===d.indexOf("L"))&&(d="M0 0, L0 0"),(isNaN(a.x)||isNaN(a.y)||isNaN(s.x)||isNaN(s.y))&&(d="M0 0, L0 0");var p=(0,r.mix)({},o.default.defaultEdge.style,i,{lineWidth:t.size,path:d});return p},getPath:function(t,e){var n,o=e,a=o.source,u=o.target,c=o.offset,f=o.radius;if(!c||t.length>2){if(f)return(0,s.getPathWithBorderRadiusByPolyline)(t,f);var l=[];return(0,r.each)(t,(function(t,e){0===e?l.push(["M",t.x,t.y]):l.push(["L",t.x,t.y])})),l}if(f)return n=(0,s.simplifyPolyline)((0,s.getPolylinePoints)(t[0],t[t.length-1],a,u,c)),(0,s.getPathWithBorderRadiusByPolyline)(n,f);n=(0,s.getPolylinePoints)(t[0],t[t.length-1],a,u,c);var h=(0,i.pointsToPolygon)(n);return h}},"single-edge")},"41c3":function(t,e,n){var r=n("1a8c"),i=n("eac5"),o=n("ec8c"),a=Object.prototype,s=a.hasOwnProperty;function u(t){if(!r(t))return o(t);var e=i(t),n=[];for(var a in t)("constructor"!=a||!e&&s.call(t,a))&&n.push(a);return n}t.exports=u},4245:function(t,e,n){var r=n("1290");function i(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}t.exports=i},42454:function(t,e,n){var r=n("f909"),i=n("2ec1"),o=i((function(t,e,n){r(t,e,n)}));t.exports=o},4284:function(t,e){function n(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(e(t[n],n,t))return!0;return!1}t.exports=n},"42a2":function(t,e,n){var r=n("b5a7"),i=n("79bc"),o=n("1cec"),a=n("c869"),s=n("39ff"),u=n("3729"),c=n("dc57"),f="[object Map]",l="[object Object]",h="[object Promise]",d="[object Set]",p="[object WeakMap]",g="[object DataView]",v=c(r),y=c(i),m=c(o),b=c(a),x=c(s),w=u;(r&&w(new r(new ArrayBuffer(1)))!=g||i&&w(new i)!=f||o&&w(o.resolve())!=h||a&&w(new a)!=d||s&&w(new s)!=p)&&(w=function(t){var e=u(t),n=e==l?t.constructor:void 0,r=n?c(n):"";if(r)switch(r){case v:return g;case y:return f;case m:return h;case b:return d;case x:return p}return e}),t.exports=w},4333:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("8937"),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,o=/[^\s\,]+/gi;function a(t){var e=0,n=0,i=0,o=0;return r.isArray(t)?1===t.length?e=n=i=o=t[0]:2===t.length?(e=i=t[0],n=o=t[1]):3===t.length?(e=t[0],n=o=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],o=t[3]):e=n=i=o=t,{r1:e,r2:n,r3:i,r4:o}}function s(t){return t=t||[],r.isArray(t)?t:r.isString(t)?(t=t.match(i),r.each(t,(function(e,n){if(e=e.match(o),e[0].length>1){var i=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=i}r.each(e,(function(t,n){isNaN(t)||(e[n]=+t)})),t[n]=e})),t):void 0}e.parseRadius=a,e.parsePath=s},"434a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("2047");e.default=function(t,e){if(!r.default(t))throw new TypeError("Expected a function");var n=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=e?e.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var s=t.apply(this,r);return a.set(o,s),s};return n.cache=new Map,n}},4359:function(t,e){function n(t,e){var n=-1,r=t.length;e||(e=Array(r));while(++n<r)e[n]=t[n];return e}t.exports=n},"43e8":function(t,e,n){var r=n("8185");function i(t){try{r(t)}catch(e){if(e instanceof r.CycleException)return!1;throw e}return!0}t.exports=i},4416:function(t,e){function n(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}t.exports=n},4433:function(t,e,n){"use strict";n("95bd"),n("e387")},4589:function(t,e){function n(){var t={};t._next=t._prev=t,this._sentinel=t}function r(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function i(t,e){if("_next"!==t&&"_prev"!==t)return e}t.exports=n,n.prototype.dequeue=function(){var t=this._sentinel,e=t._prev;if(e!==t)return r(e),e},n.prototype.enqueue=function(t){var e=this._sentinel;t._prev&&t._next&&r(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e},n.prototype.toString=function(){var t=[],e=this._sentinel,n=e._prev;while(n!==e)t.push(JSON.stringify(n,i)),n=n._prev;return"["+t.join(", ")+"]"}},"45ee":function(t,e,n){"use strict";var r=n("6f9c"),i=n("b50e");function o(t){t.graph().dummyChains=[],r.forEach(t.edges(),(function(e){a(t,e)}))}function a(t,e){var n=e.v,r=t.node(n).rank,o=e.w,a=t.node(o).rank,s=e.name,u=t.edge(e),c=u.labelRank;if(a!==r+1){var f,l,h;for(t.removeEdge(e),h=0,++r;r<a;++h,++r)u.points=[],l={width:0,height:0,edgeLabel:u,edgeObj:e,rank:r},f=i.addDummyNode(t,"edge",l,"_d"),r===c&&(l.width=u.width,l.height=u.height,l.dummy="edge-label",l.labelpos=u.labelpos),t.setEdge(n,f,{weight:u.weight},s),0===h&&t.graph().dummyChains.push(f),n=f;t.setEdge(n,o,{weight:u.weight},s)}}function s(t){r.forEach(t.graph().dummyChains,(function(e){var n,r=t.node(e),i=r.edgeLabel;t.setEdge(r.edgeObj,i);while(r.dummy)n=t.successors(e)[0],t.removeNode(e),i.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height),e=n,r=t.node(e)}))}t.exports={run:o,undo:s}},"470f":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),i=n("8937"),o=n("e3ad"),a=n("9705"),s=n("516b"),u=n("31c4"),c={circle:function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]},"triangle-down":function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.initAttrs=function(t){this._resetParamsCache()},e.prototype._resetParamsCache=function(){this.set("paramsCache",{})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["symbol","x","y","r","radius"].indexOf(e)&&this._resetParamsCache()},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._getR=function(t){return i.isNil(t.r)?t.radius:t.r},e.prototype._getPath=function(){var t,n,r=this.attr(),i=r.x,a=r.y,u=r.symbol||"circle",c=this._getR(r);return s.isFunction(u)?(t=u,n=t(i,a,c),n=o.default(n)):(t=e.Symbols[u],n=t(i,a,c)),t?n:(console.warn(u+" marker is not supported."),null)},e.prototype.createPath=function(t){var e=this._getPath(),n=this.get("paramsCache");u.drawPath(this,t,{path:e},n)},e.Symbols=c,e}(a.default);e.default=f},4796:function(t,e){var n=Math.ceil,r=Math.max;function i(t,e,i,o){var a=-1,s=r(n((e-t)/(i||1)),0),u=Array(s);while(s--)u[o?s:++a]=t,t+=i;return u}t.exports=i},"47f5":function(t,e,n){var r=n("2b03"),i=n("d9a8"),o=n("099a");function a(t,e,n){return e===e?o(t,e,n):r(t,i,n)}t.exports=a},4863:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=s(n("9cc4")),i=s(n("375c")),o=n("19f7"),a=n("804a");function s(t){return t&&t.__esModule?t:{default:t}}function u(t){return u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}var c={requestAnimationFrame:function(t){var e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(t){return setTimeout(t,16)};return e(t)},cancelAnimationFrame:function(t){var e=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||function(t){return clearTimeout(t)};return e(t)}},f=function(){function t(t){this.graph=t,this.layoutCfg=t.get("layout")||{},this.layoutType=this.layoutCfg.type,this.worker=null,this.workerData={},this.initLayout()}return t.prototype.initLayout=function(){},t.prototype.getWorker=function(){return this.worker||("undefined"===typeof Worker?(console.warn("Web worker is not supported in current browser."),this.worker=null):this.worker=new i.default),this.worker},t.prototype.stopWorker=function(){var t=this.workerData;this.worker&&(this.worker.terminate(),this.worker=null,t.requestId&&(c.cancelAnimationFrame(t.requestId),t.requestId=null),t.requestId2&&(c.cancelAnimationFrame(t.requestId2),t.requestId2=null))},t.prototype.getLayoutType=function(){return this.layoutCfg.type},t.prototype.layout=function(t){var e=this.graph;this.data=this.setDataFromGraph();var n=this.data.nodes;if(!n)return!1;var i=e.get("width"),o=e.get("height"),a={};Object.assign(a,{width:i,height:o,center:[i/2,o/2]},this.layoutCfg),this.layoutCfg=a;var s=!!this.layoutType,u=this.layoutMethod;u&&u.destroy(),e.emit("beforelayout");var c=this.initPositions(a.center,n);if(this.stopWorker(),a.workerEnabled&&this.layoutWithWorker(this.data,t))return!0;if("force"===this.layoutType||"g6force"===this.layoutType){var f=a.onTick,l=function(){f&&f(),e.refreshPositions()};a.tick=l;var h=a.onLayoutEnd;a.onLayoutEnd=function(){h&&h(),e.emit("afterlayout")}}else"comboForce"===this.layoutType&&(a.comboTrees=e.get("comboTrees"));if(void 0!==this.layoutType){try{u=new r.default[this.layoutType](a)}catch(d){return console.warn("The layout method: "+this.layoutType+" does not exist! Please specify it first."),!1}u.init(this.data),s&&u.execute(),this.layoutMethod=u}return(s&&"force"!==this.layoutType||!c&&"force"!==this.layoutType)&&(e.emit("afterlayout"),this.refreshLayout()),!1},t.prototype.layoutWithWorker=function(t,e){var n=this,r=t.nodes,i=t.edges,a=this,s=a.layoutCfg,u=a.graph,c=this.getWorker(),f=this.workerData;if(!c)return!1;f.requestId=null,f.requestId2=null,f.currentTick=null,f.currentTickData=null,u.emit("beforelayout");var l=d(s,(function(t){return"function"!==typeof t}));return c.postMessage({type:o.LAYOUT_MESSAGE.RUN,nodes:r,edges:i,layoutCfg:l}),c.onmessage=function(r){n.handleWorkerMessage(r,t,e)},!0},t.prototype.handleWorkerMessage=function(t,e,n){var r=this,i=r.graph,a=r.workerData,s=r.layoutCfg,u=t.data,f=u.type,l=function(){s.onTick&&s.onTick()},d=function(){s.onLayoutEnd&&s.onLayoutEnd(),i.emit("afterlayout")};switch(f){case o.LAYOUT_MESSAGE.TICK:a.currentTick=u.currentTick,a.currentTickData=u,a.requestId||(a.requestId=c.requestAnimationFrame((function(){h(e,u),i.refreshPositions(),l(),1===u.currentTick&&n&&n(),u.currentTick===u.totalTicks?d():a.currentTick===u.totalTicks&&(a.requestId2=c.requestAnimationFrame((function(){h(e,a.currentTickData),i.refreshPositions(),a.requestId2=null,l(),d()}))),a.requestId=null})));break;case o.LAYOUT_MESSAGE.END:null==a.currentTick&&(h(e,u),this.refreshLayout(),n&&n(),i.emit("afterlayout"));break;case o.LAYOUT_MESSAGE.ERROR:break;default:break}},t.prototype.refreshLayout=function(){var t=this.graph;t.get("animate")?t.positionsAnimate():t.refreshPositions()},t.prototype.updateLayoutCfg=function(t){var e=this,n=e.graph,r=e.layoutMethod;this.layoutType=t.type,r?(this.data=this.setDataFromGraph(),this.stopWorker(),t.workerEnabled&&this.layoutWithWorker(this.data,null)||(r.init(this.data),r.updateCfg(t),n.emit("beforelayout"),r.execute(),"force"!==this.layoutType&&n.emit("afterlayout"),this.refreshLayout())):console.warn("You did not assign any layout type and the graph has no previous layout method!")},t.prototype.changeLayout=function(t){var e=this,n=e.graph,r=e.layoutMethod;this.layoutType=t,this.layoutCfg=n.get("layout")||{},this.layoutCfg.type=t,r&&r.destroy(),this.layout()},t.prototype.changeData=function(){var t=this.layoutMethod;t&&t.destroy(),this.layout()},t.prototype.setDataFromGraph=function(){var t=[],e=[],n=[],r=this.graph.getNodes(),i=this.graph.getEdges(),o=this.graph.getCombos();r.forEach((function(e){if(e.isVisible()){var n=e.getModel();t.push(n)}})),i.forEach((function(t){if(!t.destroyed&&t.isVisible()){var n=t.getModel();n.isComboEdge||e.push(n)}})),o.forEach((function(t){if(!t.destroyed&&t.isVisible()){var e=t.getModel();n.push(e)}}));var a={nodes:t,edges:e,combos:n};return a},t.prototype.relayout=function(t){var e=this,n=e.graph,r=e.layoutMethod,i=e.layoutCfg;if(t){this.data=this.setDataFromGraph();var o=this.data.nodes;if(!o)return!1;this.initPositions(i.center,o),r.init(this.data)}"force"===this.layoutType&&(r.ticking=!1,r.forceSimulation.stop()),n.emit("beforelayout"),r.execute(),"force"!==this.layoutType&&n.emit("afterlayout"),this.refreshLayout()},t.prototype.layoutAnimate=function(){},t.prototype.moveToZero=function(){var t=this.graph,e=t.get("data"),n=e.nodes;if(void 0!==n[0].x&&null!==n[0].x&&!(0,a.isNaN)(n[0].x)){var r=[0,0];n.forEach((function(t){r[0]+=t.x,r[1]+=t.y})),r[0]/=n.length,r[1]/=n.length,n.forEach((function(t){t.x-=r[0],t.y-=r[1]}))}},t.prototype.initPositions=function(t,e){var n=this.graph;if(!e)return!1;var r=!0;return e.forEach((function(e){(0,a.isNaN)(e.x)&&(r=!1,e.x=.7*(Math.random()-.5)*n.get("width")+t[0]),(0,a.isNaN)(e.y)&&(r=!1,e.y=.7*(Math.random()-.5)*n.get("height")+t[1])})),r},t.prototype.destroy=function(){var t=this.layoutMethod;this.graph=null,t&&t.destroy();var e=this.worker;e&&(e.terminate(),this.worker=null),this.destroyed=!0},t}(),l=f;function h(t,e){var n=t.nodes,r=e.nodes;n.forEach((function(t,e){t.x=r[e].x,t.y=r[e].y}))}function d(t,e){var n={};return t&&"object"===u(t)?(Object.keys(t).forEach((function(r){t.hasOwnProperty(r)&&e(t[r])&&(n[r]=t[r])})),n):t}e.default=l},"487c":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("8937"),i=n("7a70");function o(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function a(t){var e=i.SHAPE_TO_TAGS[t.type],n=t.getParent();if(!e)throw new Error("the type "+t.type+" is not supported by svg");var r=o(e);if(t.get("id")&&(r.id=t.get("id")),t.set("el",r),t.set("attrs",{}),n){var a=n.get("el");a||(a=n.createDom(),n.set("el",a)),a.appendChild(r)}return r}function s(t,e){var n=t.get("el"),i=r.toArray(n.children).sort(e),o=document.createDocumentFragment();i.forEach((function(t){o.appendChild(t)})),n.appendChild(o)}function u(t,e){var n=t.parentNode,r=Array.from(n.childNodes).filter((function(t){return 1===t.nodeType&&"defs"!==t.nodeName.toLowerCase()})),i=r[e],o=r.indexOf(t);if(i){if(o>e)n.insertBefore(t,i);else if(o<e){var a=r[e+1];a?n.insertBefore(t,a):n.appendChild(t)}}else n.appendChild(t)}e.createSVGElement=o,e.createDom=a,e.sortDom=s,e.moveTo=u},"48a0":function(t,e,n){var r=n("242e"),i=n("950a"),o=i(r);t.exports=o},"493b":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.snapLength=e.nearestPoint=void 0;var r=n("b455"),i=1e-4;function o(t,e,n,o,a,s){var u,c=1/0,f=[n,o],l=20;s&&s>200&&(l=s/10);for(var h=1/l,d=h/10,p=0;p<=l;p++){var g=p*h,v=[a.apply(null,t.concat([g])),a.apply(null,e.concat([g]))],y=r.distance(f[0],f[1],v[0],v[1]);y<c&&(u=g,c=y)}if(0===u)return{x:t[0],y:e[0]};if(1===u){var m=t.length;return{x:t[m-1],y:e[m-1]}}c=1/0;for(p=0;p<32;p++){if(d<i)break;var b=u-d,x=u+d;v=[a.apply(null,t.concat([b])),a.apply(null,e.concat([b]))],y=r.distance(f[0],f[1],v[0],v[1]);if(b>=0&&y<c)u=b,c=y;else{var w=[a.apply(null,t.concat([x])),a.apply(null,e.concat([x]))],M=r.distance(f[0],f[1],w[0],w[1]);x<=1&&M<c?(u=x,c=M):d*=.5}}return{x:a.apply(null,t.concat([u])),y:a.apply(null,e.concat([u]))}}function a(t,e){for(var n=0,i=t.length,o=0;o<i;o++){var a=t[o],s=e[o],u=t[(o+1)%i],c=e[(o+1)%i];n+=r.distance(a,s,u,c)}return n/2}e.nearestPoint=o,e.snapLength=a},4991:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),i=n("8937"),o=n("7a70"),a=n("d531"),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle",e.canFill=!0,e.canStroke=!0,e}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x:0,y:0,r:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");i.each(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):o.SVG_ATTR_MAP[e]&&r.setAttribute(o.SVG_ATTR_MAP[e],t)}))},e}(a.default);e.default=s},"49f4":function(t,e,n){var r=n("6044");function i(){this.__data__=r?r(null):{},this.size=0}t.exports=i},"4a35":function(t,e,n){"use strict";(function(t){var n=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e,n){this.name=t,this.version=e,this.os=n}return t}();e.BrowserInfo=r;var i=function(){function e(e){this.version=e,this.name="node",this.os=t.platform}return e}();e.NodeInfo=i;var o=function(){function t(){this.bot=!0,this.name="bot",this.version=null,this.os=null}return t}();e.BotInfo=o;var a=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,s=/(nuhk)|(Googlebot)|(Yammybot)|(Openbot)|(Slurp)|(MSNBot)|(Ask Jeeves\/Teoma)|(ia_archiver)/,u=3,c=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["vivaldi",/Vivaldi\/([0-9\.]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/Edg\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["searchbot",a]],f=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/],["Search Bot",s]];function l(t){return t?h(t):"undefined"!==typeof navigator?h(navigator.userAgent):p()}function h(t){var e=""!==t&&c.reduce((function(e,n){var r=n[0],i=n[1];if(e)return e;var o=i.exec(t);return!!o&&[r,o]}),!1);if(!e)return null;var i=e[0],a=e[1];if("searchbot"===i)return new o;var s=a[1]&&a[1].split(/[._]/).slice(0,3);return s?s.length<u&&(s=n(s,g(u-s.length))):s=[],new r(i,s.join("."),d(t))}function d(t){for(var e=0,n=f.length;e<n;e++){var r=f[e],i=r[0],o=r[1],a=o.test(t);if(a)return i}return null}function p(){var e="undefined"!==typeof t&&t.version;return e?new i(t.version.slice(1)):null}function g(t){for(var e=[],n=0;n<t;n++)e.push("0");return e}e.detect=l,e.parseUserAgent=h,e.detectOS=d,e.getNodeVersion=p}).call(this,n("4362"))},"4ae1":function(t,e,n){var r=n("23e7"),i=n("d066"),o=n("2ba4"),a=n("0538"),s=n("5087"),u=n("825a"),c=n("861d"),f=n("7c73"),l=n("d039"),h=i("Reflect","construct"),d=Object.prototype,p=[].push,g=l((function(){function t(){}return!(h((function(){}),[],t)instanceof t)})),v=!l((function(){h((function(){}))})),y=g||v;r({target:"Reflect",stat:!0,forced:y,sham:y},{construct:function(t,e){s(t),u(e);var n=arguments.length<3?t:s(arguments[2]);if(v&&!g)return h(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return o(p,r,e),new(o(a,t,r))}var i=n.prototype,l=f(c(i)?i:d),y=o(t,l,e);return c(y)?y:l}})},"4b17":function(t,e,n){var r=n("6428");function i(t){var e=r(t),n=e%1;return e===e?n?e-n:e:0}t.exports=i},"4c2d":function(t,e,n){"use strict";n.r(e);n("b0c0");var r=n("7bf1"),i=function(t){t.component(r["default"].name,r["default"])};"undefined"!==typeof window&&window.Vue&&i(window.Vue),e["default"]=r["default"]},"4cef":function(t,e){var n=/\s/;function r(t){var e=t.length;while(e--&&n.test(t.charAt(e)));return e}t.exports=r},"4cfe":function(t,e){function n(t){return void 0===t}t.exports=n},"4d39":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("9ab4"),i=n("56fa"),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=[0,0],e.width=300,e.height=300,e}return(0,r.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{center:[0,0],width:300,height:300}},e.prototype.execute=function(){var t=this,e=t.nodes,n=.9,r=t.center;t.width||"undefined"===typeof window||(t.width=window.innerWidth),t.height||"undefined"===typeof window||(t.height=window.innerHeight),e&&e.forEach((function(e){e.x=(Math.random()-.5)*n*t.width+r[0],e.y=(Math.random()-.5)*n*t.height+r[1]}))},e}(i.BaseLayout),a=o;e.default=a},"4d8c":function(t,e,n){var r=n("5c69");function i(t){var e=null==t?0:t.length;return e?r(t,1):[]}t.exports=i},"4dab":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addEndArrow=e.addStartArrow=e.getShortenOffset=void 0;var r=n("9ab4"),i=n("92ca"),o=Math.sin,a=Math.cos,s=Math.atan2,u=Math.PI;function c(t,e,n,r,c,f,l){var h=e.stroke,d=e.lineWidth,p=n-c,g=r-f,v=s(g,p),y=new i.Path({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*a(u/6)+","+10*o(u/6)+" L0,0 L"+10*a(u/6)+",-"+10*o(u/6),stroke:h,lineWidth:d}});y.translate(c,f),y.rotateAtPoint(c,f,v),t.set(l?"startArrowShape":"endArrowShape",y)}function f(t,e,n,u,c,f,l){var h=e.startArrow,d=e.endArrow,p=e.stroke,g=e.lineWidth,v=l?h:d,y=v.d,m=v.fill,b=v.stroke,x=v.lineWidth,w=r.__rest(v,["d","fill","stroke","lineWidth"]),M=n-c,_=u-f,S=s(_,M);y&&(c-=a(S)*y,f-=o(S)*y);var P=new i.Path({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:r.__assign(r.__assign({},w),{stroke:b||p,lineWidth:x||g,fill:m})});P.translate(c,f),P.rotateAtPoint(c,f,S),t.set(l?"startArrowShape":"endArrowShape",P)}function l(t,e,n,r,i){var u=s(r-e,n-t);return{dx:a(u)*i,dy:o(u)*i}}function h(t,e,n,r,i,o){"object"===typeof e.startArrow?f(t,e,n,r,i,o,!0):e.startArrow?c(t,e,n,r,i,o,!0):t.set("startArrowShape",null)}function d(t,e,n,r,i,o){"object"===typeof e.endArrow?f(t,e,n,r,i,o,!1):e.endArrow?c(t,e,n,r,i,o,!1):t.set("startArrowShape",null)}e.getShortenOffset=l,e.addStartArrow=h,e.addEndArrow=d},"4e63":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n("72fb")),i=o(n("61d8"));function o(t){return t&&t.__esModule?t:{default:t}}var a=null,s=function(){function t(t){this.graph=t,this.cachedStates={enabled:{},disabled:{}},this.destroyed=!1}return t.checkCache=function(t,e,n){if(n[e]){var r=n[e].indexOf(t);r>=0&&n[e].splice(r,1)}},t.cacheState=function(t,e,n){n[e]||(n[e]=[]),n[e].push(t)},t.prototype.updateState=function(e,n,r){var i=this,o=t.checkCache,s=t.cacheState;if(!e.destroyed){var u=this.cachedStates,c=u.enabled,f=u.disabled;r?(o(e,n,f),s(e,n,c)):(o(e,n,c),s(e,n,f)),a&&clearTimeout(a),a=setTimeout((function(){a=null,i.updateGraphStates()}),16)}},t.prototype.updateStates=function(t,e,n){var r=this;(0,i.default)(e)?this.updateState(t,e,n):e.forEach((function(e){r.updateState(t,e,n)}))},t.prototype.updateGraphStates=function(){var t=this.graph.get("states"),e=this.cachedStates;(0,r.default)(e.disabled,(function(e,n){t[n]&&(t[n]=t[n].filter((function(t){return e.indexOf(t)<0&&!e.destroyed})))})),(0,r.default)(e.enabled,(function(e,n){if(t[n]){var r={};t[n].forEach((function(t){t.destroyed||(r[t.get("id")]=!0)})),e.forEach((function(e){if(!e.destroyed){var i=e.get("id");r[i]||(r[i]=!0,t[n].push(e))}}))}else t[n]=e})),this.graph.emit("graphstatechange",{states:t}),this.cachedStates={enabled:{},disabled:{}}},t.prototype.destroy=function(){this.graph=null,this.cachedStates=null,a&&clearTimeout(a),a=null,this.destroyed=!0},t}(),u=s;e.default=u},"4e82":function(t,e,n){"use strict";var r=n("23e7"),i=n("e330"),o=n("59ed"),a=n("7b0b"),s=n("07fa"),u=n("577e"),c=n("d039"),f=n("addb"),l=n("a640"),h=n("04d1"),d=n("d998"),p=n("2d00"),g=n("512c"),v=[],y=i(v.sort),m=i(v.push),b=c((function(){v.sort(void 0)})),x=c((function(){v.sort(null)})),w=l("sort"),M=!c((function(){if(p)return p<70;if(!(h&&h>3)){if(d)return!0;if(g)return g<603;var t,e,n,r,i="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)v.push({k:e+r,v:n})}for(v.sort((function(t,e){return e.v-t.v})),r=0;r<v.length;r++)e=v[r].k.charAt(0),i.charAt(i.length-1)!==e&&(i+=e);return"DGBEFHACIJK"!==i}})),_=b||!x||!w||!M,S=function(t){return function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:u(e)>u(n)?1:-1}};r({target:"Array",proto:!0,forced:_},{sort:function(t){void 0!==t&&o(t);var e=a(this);if(M)return void 0===t?y(e):y(e,t);var n,r,i=[],u=s(e);for(r=0;r<u;r++)r in e&&m(i,e[r]);f(i,S(t)),n=i.length,r=0;while(r<n)e[r]=i[r++];while(r<u)delete e[r++];return e}})},"4eab":function(t,e,n){"use strict";function r(t,e){return t["_wrap_"+e]}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},"4eec":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0};e.default=r},"4f17":function(t,e,n){var r=n("df2e");function i(t,e){return r(t,e,"post")}t.exports=i},"4f50":function(t,e,n){var r=n("b760"),i=n("e5383"),o=n("c8fe"),a=n("4359"),s=n("fa21"),u=n("d370"),c=n("6747"),f=n("dcbe"),l=n("0d24"),h=n("9520"),d=n("1a8c"),p=n("60ed"),g=n("73ac"),v=n("8adb"),y=n("8de2");function m(t,e,n,m,b,x,w){var M=v(t,n),_=v(e,n),S=w.get(_);if(S)r(t,n,S);else{var P=x?x(M,_,n+"",t,e,w):void 0,k=void 0===P;if(k){var C=c(_),O=!C&&l(_),E=!C&&!O&&g(_);P=_,C||O||E?c(M)?P=M:f(M)?P=a(M):O?(k=!1,P=i(_,!0)):E?(k=!1,P=o(_,!0)):P=[]:p(_)||u(_)?(P=M,u(M)?P=y(M):d(M)&&!h(M)||(P=s(_))):k=!1}k&&(w.set(_,P),b(P,_,m,x,w),w["delete"](_)),r(t,n,P)}}t.exports=m},"503e":function(t,e,n){"use strict";function r(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function i(t,e,n,i){return e&&r(t,e),n&&r(t,n),i&&r(t,i),t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i},"50ca":function(t,e,n){var r=n("8057"),i=n("7530"),o=n("242e"),a=n("badf"),s=n("2dcb"),u=n("6747"),c=n("0d24"),f=n("9520"),l=n("1a8c"),h=n("73ac");function d(t,e,n){var d=u(t),p=d||c(t)||h(t);if(e=a(e,4),null==n){var g=t&&t.constructor;n=p?d?new g:[]:l(t)&&f(g)?i(s(t)):{}}return(p?r:o)(t,(function(t,r,i){return e(n,t,r,i)})),n}t.exports=d},"50d8":function(t,e){function n(t,e){var n=-1,r=Array(t);while(++n<t)r[n]=e(n);return r}t.exports=n},"512c":function(t,e,n){var r=n("342f"),i=r.match(/AppleWebKit\/(\d+)\./);t.exports=!!i&&+i[1]},"516b":function(t,e,n){"use strict";function r(){return window?window.devicePixelRatio:1}function i(t,e,n,r){var i=t-n,o=e-r;return Math.sqrt(i*i+o*o)}function o(t,e,n,r,i,o){return i>=t&&i<=t+n&&o>=e&&o<=e+r}function a(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function s(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e}function u(t,e){return t[0]===e[0]&&t[1]===e[1]}Object.defineProperty(e,"__esModule",{value:!0}),e.isSamePoint=e.mergeRegion=e.intersectRect=e.inBox=e.distance=e.getPixelRatio=void 0,e.getPixelRatio=r,e.distance=i,e.inBox=o,e.intersectRect=a,e.mergeRegion=s,e.isSamePoint=u;var c=n("28f9");Object.defineProperty(e,"isNil",{enumerable:!0,get:function(){return c.default}});var f=n("61d8");Object.defineProperty(e,"isString",{enumerable:!0,get:function(){return f.default}});var l=n("2047");Object.defineProperty(e,"isFunction",{enumerable:!0,get:function(){return l.default}});var h=n("01f9");Object.defineProperty(e,"isArray",{enumerable:!0,get:function(){return h.default}});var d=n("72fb");Object.defineProperty(e,"each",{enumerable:!0,get:function(){return d.default}});var p=n("3753");Object.defineProperty(e,"toRadian",{enumerable:!0,get:function(){return p.default}});var g=n("df01");Object.defineProperty(e,"mod",{enumerable:!0,get:function(){return g.default}});var v=n("29f4");Object.defineProperty(e,"isNumberEqual",{enumerable:!0,get:function(){return v.default}});var y=n("f105");Object.defineProperty(e,"requestAnimationFrame",{enumerable:!0,get:function(){return y.default}});var m=n("83be");Object.defineProperty(e,"clearAnimationFrame",{enumerable:!0,get:function(){return m.default}})},"51a8":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("842b"),i=function(t){return r.default(t)&&t%2===0};e.default=i},"51f5":function(t,e,n){var r=n("2b03"),i=n("badf"),o=n("4b17"),a=Math.max;function s(t,e,n){var s=null==t?0:t.length;if(!s)return-1;var u=null==n?0:o(n);return u<0&&(u=a(s+u,0)),r(t,i(e,3),u)}t.exports=s},5439:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("9ab4"),i=a(n("c360")),o=a(n("13c9"));function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t){function e(e){return t.call(this,e)||this}return(0,r.__extends)(e,t),e.prototype.getDefaultCfgs=function(){return{createDOM:!0,container:null,className:"g6-analyzer-menu",getContent:void 0,onShow:function(){return!0},onHide:function(){return!0}}},e.prototype.getEvents=function(){return{contextmenu:"onMenuShow"}},e.prototype.init=function(){if(this.get("createDOM")){var t=document.createElement("div");t.className=this.get("className"),(0,i.default)(t,{visibility:"hidden"});var e=this.get("container");e||(e=this.get("graph").get("container")),e.appendChild(t),this.set("menu",t)}},e.prototype.onMenuShow=function(t){var e=this,n=this.get("menu"),r=this.get("getContent"),o=this.get("onShow");if(r&&(n.innerHTML=r(t)),n){var a=this.get("graph"),s=a.get("width"),u=a.get("height"),c=n.getBoundingClientRect(),f=t.canvasX,l=t.canvasY;f+c.width>s&&(f=s-c.width,t.canvasX=f),l+c.height>u&&(l=u-c.height,t.canvasY=l),o&&!1===o(t)||(0,i.default)(n,{top:l,left:f,visibility:"visible"})}else o(t);var h=function(){e.onMenuHide()};document.body.addEventListener("click",h),this.set("handler",h)},e.prototype.onMenuHide=function(){var t=this.get("menu"),e=this.get("onHide"),n=e();n&&(t&&(0,i.default)(t,{visibility:"hidden"}),document.body.removeEventListener("click",this.get("handler")))},e.prototype.destroy=function(){var t=this.get("menu"),e=this.get("handler");t&&t.parentNode.removeChild(t),e&&document.body.removeEventListener("click",e)},e}(o.default),u=s;e.default=u},"5439b":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("c62f"));function i(t){return t&&t.__esModule?t:{default:t}}function o(t){void 0===t&&(t={});var e=t,n=function(){},r=function(){var t={};return function(e){var n=e.next,r=n.get("id");return!t[r]&&(t[r]=!0,!0)}}();return e.allowTraversal=t.allowTraversal||r,e.enter=t.enter||n,e.leave=t.leave||n,e}var a=function(t,e,n){var i=o(n),a=new r.default,s=t.findById(e);a.enqueue(s);var u=null,c=function(){var e=a.dequeue();i.enter({current:e,previous:u}),t.getSourceNeighbors(e).forEach((function(t){i.allowTraversal({previous:u,current:e,next:t})&&a.enqueue(t)})),i.leave({current:e,previous:u}),u=e};while(!a.isEmpty())c()},s=a;e.default=s},5492:function(t,e,n){var r=n("32b3"),i=n("d70d");function o(t,e){return i(t||[],e||[],r)}t.exports=o},"54eb":function(t,e,n){var r=n("8eeb"),i=n("32f4");function o(t,e){return r(t,i(t),e)}t.exports=o},5598:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("28f9"),i=n("5b8d");function o(t){return r.default(t)?0:i.default(t)?t.length:Object.keys(t).length}e.default=o},"55a3":function(t,e){function n(t){return this.__data__.has(t)}t.exports=n},"56fa":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BaseLayout=void 0;var r=n("9ab4"),i=a(n("72fb")),o=a(n("503e"));function a(t){return t&&t.__esModule?t:{default:t}}var s=function(){function t(){this.nodes=[],this.edges=[],this.combos=[],this.positions=[],this.destroyed=!1}return t.prototype.init=function(t){var e=this;e.nodes=t.nodes||[],e.edges=t.edges||[],e.combos=t.combos||[]},t.prototype.execute=function(){},t.prototype.layout=function(t){var e=this;e.init(t),e.execute()},t.prototype.getDefaultCfg=function(){return{}},t.prototype.updateCfg=function(t){var e=this;(0,o.default)(e,t)},t.prototype.destroy=function(){var t=this;t.positions=null,t.nodes=null,t.edges=null,t.destroyed=!0},t}();e.BaseLayout=s;var u={registerLayout:function(t,e,n){if(void 0===n&&(n=s),!e)throw new Error("please specify handler for this layout: "+t);var a=function(t){function n(n){var r=t.call(this)||this,a=r,s={},u=a.getDefaultCfg();return(0,o.default)(s,u,e,n),(0,i.default)(s,(function(t,e){a[e]=t})),r}return(0,r.__extends)(n,t),n}(n);u[t]=a}},c=u;e.default=c},"573a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("516b");function i(t,e,n,i,o,a,s,u){var c=(Math.atan2(u-e,s-t)+2*Math.PI)%(2*Math.PI);if(c<i||c>o)return!1;var f={x:t+n*Math.cos(c),y:e+n*Math.sin(c)};return r.distance(f.x,f.y,s,u)<=a/2}e.default=i},"57a5":function(t,e,n){var r=n("91e9"),i=r(Object.keys,Object);t.exports=i},"57dc":function(t,e){function n(t,e){return t>e}t.exports=n},5833:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),i=n("7d16"),o=n("8937"),a=n("9705"),s=n("e3ad"),u=n("be6e"),c=n("31c4"),f=n("bd06"),l=n("83e4"),h=n("3820"),d=n("4dab");function p(t,e,n){for(var r=!1,i=0;i<t.length;i++){var o=t[i];if(r=l.default(o,e,n),r)break}return r}var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this._setPathArr(t.path),this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),"path"===e&&this._setPathArr(n),this.setArrow()},e.prototype._setPathArr=function(t){this.attrs.path=s.default(t);var e=h.default.hasArc(t);this.set("hasArc",e),this.set("paramsCache",{}),this.set("segments",null),this.set("curve",null),this.set("tCache",null),this.set("totalLength",null)},e.prototype.getSegments=function(){var t=this.get("segements");return t||(t=u.default(this.attr("path")),this.set("segments",t)),t},e.prototype.setArrow=function(){var t=this.attr(),e=t.startArrow,n=t.endArrow;if(e){var r=this.getStartTangent();d.addStartArrow(this,t,r[0][0],r[0][1],r[1][0],r[1][1])}if(n){r=this.getEndTangent();d.addEndArrow(this,t,r[0][0],r[0][1],r[1][0],r[1][1])}},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.getSegments(),a=this.get("hasArc"),s=!1;if(n&&(s=h.default.isPointInStroke(o,i,t,e)),!s&&r)if(a)s=f.default(this,t,e);else{var u=this.attr("path"),c=h.default.extractPolygons(u);s=p(c.polygons,t,e)||p(c.polylines,t,e)}return s},e.prototype.createPath=function(t){var e=this.attr(),n=this.get("paramsCache");c.drawPath(this,t,e,n)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.get("totalLength");return o.isNil(t)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):t},e.prototype.getPoint=function(t){var e,n,r=this.get("tCache");r||(this._calculateCurve(),this._setTcache(),r=this.get("tCache"));var a=this.get("curve");if(!r||0===r.length)return a?{x:a[0][1],y:a[0][2]}:null;o.each(r,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)}));var s=a[n];if(o.isNil(s)||o.isNil(n))return null;var u=s.length,c=a[n+1];return i.default.pointAt(s[u-2],s[u-1],c[1],c[2],c[3],c[4],c[5],c[6],e)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",h.default.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,n,r,a=0,s=0,u=[],c=this.get("curve");c&&(o.each(c,(function(t,e){n=c[e+1],r=t.length,n&&(a+=i.default.length(t[r-2],t[r-1],n[1],n[2],n[3],n[4],n[5],n[6])||0)})),this.set("totalLength",a),0!==a?(o.each(c,(function(o,f){n=c[f+1],r=o.length,n&&(t=[],t[0]=s/a,e=i.default.length(o[r-2],o[r-1],n[1],n[2],n[3],n[4],n[5],n[6]),s+=e||0,t[1]=s/a,u.push(t))})),this.set("tCache",u)):this.set("tCache",[]))},e.prototype.getStartTangent=function(){var t,e=this.getSegments();if(e.length>1){var n=e[0].currentPoint,r=e[1].currentPoint,i=e[1].startTangent;t=[],i?(t.push([n[0]-i[0],n[1]-i[1]]),t.push([n[0],n[1]])):(t.push([r[0],r[1]]),t.push([n[0],n[1]]))}return t},e.prototype.getEndTangent=function(){var t,e=this.getSegments(),n=e.length;if(n>1){var r=e[n-2].currentPoint,i=e[n-1].currentPoint,o=e[n-1].endTangent;t=[],o?(t.push([i[0]-o[0],i[1]-o[1]]),t.push([i[0],i[1]])):(t.push([r[0],r[1]]),t.push([i[0],i[1]]))}return t},e}(a.default);e.default=g},"585a":function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n("c8ba"))},5899:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(t,e,n){var r=n("e330"),i=n("1d80"),o=n("577e"),a=n("5899"),s=r("".replace),u="["+a+"]",c=RegExp("^"+u+u+"*"),f=RegExp(u+u+"*$"),l=function(t){return function(e){var n=o(i(e));return 1&t&&(n=s(n,c,"")),2&t&&(n=s(n,f,"")),n}};t.exports={start:l(1),end:l(2),trim:l(3)}},"58f7":function(t,e){function n(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}t.exports=n},"59d5":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("bd8b"),i=function(t){return r.default(t,"Error")};e.default=i},"5a3a":function(t,e,n){var r=n("1cba"),i=r();t.exports=i},"5ac6":function(t,e,n){"use strict";function r(t,e){void 0===e&&(e=new Map);var n=[];if(Array.isArray(t))for(var r=0,i=t.length;r<i;r++){var o=t[r];e.has(o)||(n.push(o),e.set(o,!0))}return n}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},"5b01":function(t,e,n){var r=n("8eeb"),i=n("ec69");function o(t,e){return t&&r(e,i(e),t)}t.exports=o},"5b8d":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){return null!==t&&"function"!==typeof t&&isFinite(t.length)};e.default=r},"5c32":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("5b8d"),i=Array.prototype.splice,o=function(t,e){if(!r.default(t))return[];var n=t?e.length:0,o=n-1;while(n--){var a=void 0,s=e[n];n!==o&&s===a||(a=s,i.call(t,s,1))}return t};e.default=o},"5c69":function(t,e,n){var r=n("087d"),i=n("0621");function o(t,e,n,a,s){var u=-1,c=t.length;n||(n=i),s||(s=[]);while(++u<c){var f=t[u];e>0&&n(f)?e>1?o(f,e-1,n,a,s):r(s,f):a||(s[s.length]=f)}return s}t.exports=o},"5ca0":function(t,e,n){var r=n("badf"),i=n("30c9"),o=n("ec69");function a(t){return function(e,n,a){var s=Object(e);if(!i(e)){var u=r(n,3);e=o(e),n=function(t){return u(s[t],t,s)}}var c=t(e,n,a);return c>-1?s[u?e[c]:c]:void 0}}t.exports=a},"5cd2":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("739e"),i=function(t){var e=r.default(t);return e.charAt(0).toLowerCase()+e.substring(1)};e.default=i},"5ced":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("7da3"));function i(t){return t&&t.__esModule?t:{default:t}}n("14ca"),n("e9d4"),n("e115"),n("4433"),n("bc08"),n("b7ca");var o=r.default;e.default=o},"5d64":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("d080"),i=n("f4c8");function o(t,e,n){var i=1;if(r.isString(t)&&(i=t.split("\n").length),i>1){var o=a(e,n);return e*i+o*(i-1)}return e}function a(t,e){return e?e-t:.14*t}function s(t,e){var n=i.getOffScreenContext(),o=0;if(r.isNil(t)||""===t)return o;if(n.save(),n.font=e,r.isString(t)&&t.includes("\n")){var a=t.split("\n");r.each(a,(function(t){var e=n.measureText(t).width;o<e&&(o=e)}))}else o=n.measureText(t).width;return n.restore(),o}function u(t){var e=t.fontSize,n=t.fontFamily,r=t.fontWeight,i=t.fontStyle,o=t.fontVariant;return[i,o,r,e+"px",n].join(" ").trim()}e.getTextHeight=o,e.getLineSpaceing=a,e.getTextWidth=s,e.assembleFont=u},"5d89":function(t,e,n){var r=n("f8af");function i(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}t.exports=i},"5ddc":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=b(n("72fb")),i=b(n("2f92")),o=b(n("398d")),a=b(n("cfda")),s=b(n("ea70")),u=b(n("2c54")),c=b(n("c21c")),f=b(n("b10b")),l=b(n("7352")),h=b(n("3255")),d=b(n("c6c4")),p=b(n("89e6")),g=b(n("32b8")),v=b(n("32ef")),y=b(n("04cb")),m=b(n("a4a4"));function b(t){return t&&t.__esModule?t:{default:t}}var x={"drag-canvas":o.default,"zoom-canvas":f.default,"drag-node":a.default,"activate-relations":s.default,"brush-select":u.default,"click-select":c.default,tooltip:l.default,"edge-tooltip":h.default,"drag-group":d.default,"drag-node-with-group":p.default,"collapse-expand-group":g.default,"collapse-expand":v.default,"drag-combo":y.default,"collapse-expand-combo":m.default};(0,r.default)(x,(function(t,e){i.default.registerBehavior(e,t)}));var w=i.default;e.default=w},"5e2e":function(t,e,n){var r=n("28c9"),i=n("69d5"),o=n("b4c0"),a=n("fba5"),s=n("67ca");function u(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype["delete"]=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},"5ebc":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9272");e.default=r},"5edf":function(t,e){function n(t,e,n){var r=-1,i=null==t?0:t.length;while(++r<i)if(n(e,t[r]))return!0;return!1}t.exports=n},"5f1d":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("9ab4"),i=u(n("e34f")),o=u(n("01f9")),a=n("56fa"),s=n("8937");function u(t){return t&&t.__esModule?t:{default:t}}var c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.rankdir="TB",e.nodesep=50,e.ranksep=50,e.controlPoints=!1,e}return(0,r.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{rankdir:"TB",align:void 0,nodeSize:void 0,nodesepFunc:void 0,ranksepFunc:void 0,nodesep:50,ranksep:50,controlPoints:!1}},e.prototype.execute=function(){var t=this,e=t.nodes,n=t.nodeSize,r=t.rankdir;if(e){var a,s=t.edges||[],u=new i.default.graphlib.Graph;a=n?(0,o.default)(n)?function(){return n}:function(){return[n,n]}:function(t){return t.size?(0,o.default)(t.size)?t.size:[t.size,t.size]:[40,40]};var c,f=l(t.nodesepFunc,t.nodesep,50),h=l(t.ranksepFunc,t.ranksep,50);"LR"!==r&&"RL"!==r||(f=l(t.ranksepFunc,t.ranksep,50),h=l(t.nodesepFunc,t.nodesep,50)),u.setDefaultEdgeLabel((function(){return{}})),u.setGraph(t),e.forEach((function(t){var e=a(t),n=h(t),r=f(t),i=e[0]+2*r,o=e[1]+2*n;u.setNode(t.id,{width:i,height:o})})),s.forEach((function(t){u.setEdge(t.source,t.target,{weight:t.weight||1})})),i.default.layout(u),u.nodes().forEach((function(t){c=u.node(t);var n=e.findIndex((function(e){return e.id===t}));e[n].x=c.x,e[n].y=c.y})),u.edges().forEach((function(e){c=u.edge(e);var n=s.findIndex((function(t){return t.source===e.v&&t.target===e.w}));t.controlPoints&&"loop"!==s[n].type&&"loop"!==s[n].shape&&(s[n].controlPoints=c.points.slice(1,c.points.length-1))}))}},e}(a.BaseLayout),f=c;function l(t,e,n){var r;return r=t||((0,s.isNumber)(e)?function(){return e}:function(){return n}),r}e.default=f},"5fb2":function(t,e,n){"use strict";var r=n("da84"),i=n("e330"),o=2147483647,a=36,s=1,u=26,c=38,f=700,l=72,h=128,d="-",p=/[^\0-\u007E]/,g=/[.\u3002\uFF0E\uFF61]/g,v="Overflow: input needs wider integers to process",y=a-s,m=r.RangeError,b=i(g.exec),x=Math.floor,w=String.fromCharCode,M=i("".charCodeAt),_=i([].join),S=i([].push),P=i("".replace),k=i("".split),C=i("".toLowerCase),O=function(t){var e=[],n=0,r=t.length;while(n<r){var i=M(t,n++);if(i>=55296&&i<=56319&&n<r){var o=M(t,n++);56320==(64512&o)?S(e,((1023&i)<<10)+(1023&o)+65536):(S(e,i),n--)}else S(e,i)}return e},E=function(t){return t+22+75*(t<26)},A=function(t,e,n){var r=0;for(t=n?x(t/f):t>>1,t+=x(t/e);t>y*u>>1;r+=a)t=x(t/y);return x(r+(y+1)*t/(t+c))},j=function(t){var e=[];t=O(t);var n,r,i=t.length,c=h,f=0,p=l;for(n=0;n<t.length;n++)r=t[n],r<128&&S(e,w(r));var g=e.length,y=g;g&&S(e,d);while(y<i){var b=o;for(n=0;n<t.length;n++)r=t[n],r>=c&&r<b&&(b=r);var M=y+1;if(b-c>x((o-f)/M))throw m(v);for(f+=(b-c)*M,c=b,n=0;n<t.length;n++){if(r=t[n],r<c&&++f>o)throw m(v);if(r==c){for(var P=f,k=a;;k+=a){var C=k<=p?s:k>=p+u?u:k-p;if(P<C)break;var j=P-C,I=a-C;S(e,w(E(C+j%I))),P=x(j/I)}S(e,w(E(P))),p=A(f,M,y==g),f=0,++y}}++f,++c}return _(e,"")};t.exports=function(t){var e,n,r=[],i=k(P(C(t),g,"."),".");for(e=0;e<i.length;e++)n=i[e],S(r,b(p,n)?"xn--"+j(n):n);return _(r,".")}},6023:function(t,e,n){"use strict";function r(t,e,n){var r;return function(){var i=this,o=arguments,a=function(){r=null,n||t.apply(i,o)},s=n&&!r;clearTimeout(r),r=setTimeout(a,e),s&&t.apply(i,o)}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},"602a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("8937"),i=n("487c"),o=function(){function t(t,e){this.cfg={};var n=i.createSVGElement("marker"),o=r.uniqueId("marker_");n.setAttribute("id",o);var a=i.createSVGElement("path");a.setAttribute("stroke",t.stroke||"none"),a.setAttribute("fill",t.fill||"none"),n.appendChild(a),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=a,this.id=o;var s=t["marker-start"===e?"startArrow":"endArrow"];return this.stroke=t.stroke||"#000",!0===s?this._setDefaultPath(e,a):(this.cfg=s,this._setMarker(t.lineWidth,a)),this}return t.prototype.match=function(){return!1},t.prototype._setDefaultPath=function(t,e){var n=this.el;e.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),n.setAttribute("refX",""+10*Math.cos(Math.PI/6)),n.setAttribute("refY","5")},t.prototype._setMarker=function(t,e){var n=this.el,i=this.cfg.path,o=this.cfg.d;r.isArray(i)&&(i=i.map((function(t){return t.join(" ")})).join("")),e.setAttribute("d",i),n.appendChild(e),o&&n.setAttribute("refX",""+o/t)},t.prototype.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}();e.default=o},6044:function(t,e,n){var r=n("0b07"),i=r(Object,"create");t.exports=i},"60ed":function(t,e,n){var r=n("3729"),i=n("2dcb"),o=n("1310"),a="[object Object]",s=Function.prototype,u=Object.prototype,c=s.toString,f=u.hasOwnProperty,l=c.call(Object);function h(t){if(!o(t)||r(t)!=a)return!1;var e=i(t);if(null===e)return!0;var n=f.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==l}t.exports=h},"61d8":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("bd8b");e.default=function(t){return r.default(t,"String")}},"61e7":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("5b8d");e.default=function(t){return r.default(t)?Array.prototype.slice.call(t):[]}},"61e9":function(t,e,n){var r=n("33de"),i=n("9671"),o=n("01eb");function a(t,e){var n,a=new i,s={},u=new o;function c(t){var r=t.v===n?t.w:t.v,i=u.priority(r);if(void 0!==i){var o=e(t);o<i&&(s[r]=n,u.decrease(r,o))}}if(0===t.nodeCount())return a;r.each(t.nodes(),(function(t){u.add(t,Number.POSITIVE_INFINITY),a.setNode(t)})),u.decrease(t.nodes()[0],0);var f=!1;while(u.size()>0){if(n=u.removeMin(),r.has(s,n))a.setEdge(n,s[n]);else{if(f)throw new Error("Input graph is not connected: "+t);f=!0}t.nodeEdges(n).forEach(c)}return a}t.exports=a},"625f":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("5b8d");function i(t){if(r.default(t))return t[0]}e.default=i},6428:function(t,e,n){var r=n("b4b0"),i=1/0,o=17976931348623157e292;function a(t){if(!t)return 0===t?t:0;if(t=r(t),t===i||t===-i){var e=t<0?-1:1;return e*o}return t===t?t:0}t.exports=a},"642a":function(t,e,n){var r=n("966f"),i=n("3bb4"),o=n("20ec");function a(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}t.exports=a},"64be":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),i=n("9705"),o=n("7f6b"),a=n("516b"),s=n("d40f"),u=n("3568"),c=n("bd06"),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),f=o.x,l=o.y,h=o.width,d=o.height,p=o.radius;if(p){var g=!1;return n&&(g=u.default(f,l,h,d,p,i,t,e)),!g&&r&&(g=c.default(this,t,e)),g}var v=i/2;return r&&n?a.inBox(f-v,l-v,h+v,d+v,t,e):r?a.inBox(f,l,h,d,t,e):n?s.default(f,l,h,d,i,t,e):void 0},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.width,a=e.height,s=e.radius;if(t.beginPath(),0===s)t.rect(n,r,i,a);else{var u=o.parseRadius(s),c=u[0],f=u[1],l=u[2],h=u[3];t.moveTo(n+c,r),t.lineTo(n+i-f,r),0!==f&&t.arc(n+i-f,r+f,f,-Math.PI/2,0),t.lineTo(n+i,r+a-l),0!==l&&t.arc(n+i-l,r+a-l,l,0,Math.PI/2),t.lineTo(n+h,r+a),0!==h&&t.arc(n+h,r+a-h,h,Math.PI/2,Math.PI),t.lineTo(n,r+c),0!==c&&t.arc(n+c,r+c,c,Math.PI,1.5*Math.PI),t.closePath()}},e}(i.default);e.default=f},"656b":function(t,e,n){var r=n("e2e4"),i=n("f4d6");function o(t,e){e=r(e,t);var n=0,o=e.length;while(null!=t&&n<o)t=t[i(e[n++])];return n&&n==o?t:void 0}t.exports=o},6704:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("2047"),i=n("85e0"),o=n("01f9"),a=n("cdca");function s(t,e){if(!o.default(t))return null;var n;if(r.default(e)&&(n=e),a.default(e)&&(n=function(t){return i.default(t,e)}),n)for(var s=0;s<t.length;s+=1)if(n(t[s]))return t[s];return null}e.default=s},6711:function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return i})),n.d(e,"clone",(function(){return o})),n.d(e,"fromValues",(function(){return a})),n.d(e,"copy",(function(){return s})),n.d(e,"set",(function(){return u})),n.d(e,"add",(function(){return c})),n.d(e,"subtract",(function(){return f})),n.d(e,"multiply",(function(){return l})),n.d(e,"divide",(function(){return h})),n.d(e,"ceil",(function(){return d})),n.d(e,"floor",(function(){return p})),n.d(e,"min",(function(){return g})),n.d(e,"max",(function(){return v})),n.d(e,"round",(function(){return y})),n.d(e,"scale",(function(){return m})),n.d(e,"scaleAndAdd",(function(){return b})),n.d(e,"distance",(function(){return x})),n.d(e,"squaredDistance",(function(){return w})),n.d(e,"length",(function(){return M})),n.d(e,"squaredLength",(function(){return _})),n.d(e,"negate",(function(){return S})),n.d(e,"inverse",(function(){return P})),n.d(e,"normalize",(function(){return k})),n.d(e,"dot",(function(){return C})),n.d(e,"cross",(function(){return O})),n.d(e,"lerp",(function(){return E})),n.d(e,"random",(function(){return A})),n.d(e,"transformMat2",(function(){return j})),n.d(e,"transformMat2d",(function(){return I})),n.d(e,"transformMat3",(function(){return T})),n.d(e,"transformMat4",(function(){return B})),n.d(e,"rotate",(function(){return N})),n.d(e,"angle",(function(){return D})),n.d(e,"zero",(function(){return L})),n.d(e,"str",(function(){return R})),n.d(e,"exactEquals",(function(){return z})),n.d(e,"equals",(function(){return F})),n.d(e,"len",(function(){return G})),n.d(e,"sub",(function(){return Y})),n.d(e,"mul",(function(){return X})),n.d(e,"div",(function(){return V})),n.d(e,"dist",(function(){return q})),n.d(e,"sqrDist",(function(){return U})),n.d(e,"sqrLen",(function(){return W})),n.d(e,"forEach",(function(){return H}));var r=n("c94d");function i(){var t=new r["a"](2);return r["a"]!=Float32Array&&(t[0]=0,t[1]=0),t}function o(t){var e=new r["a"](2);return e[0]=t[0],e[1]=t[1],e}function a(t,e){var n=new r["a"](2);return n[0]=t,n[1]=e,n}function s(t,e){return t[0]=e[0],t[1]=e[1],t}function u(t,e,n){return t[0]=e,t[1]=n,t}function c(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function f(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function l(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function h(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function d(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t}function p(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t}function g(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function v(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function y(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t}function m(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function b(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function x(t,e){var n=e[0]-t[0],r=e[1]-t[1];return Math.hypot(n,r)}function w(t,e){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function M(t){var e=t[0],n=t[1];return Math.hypot(e,n)}function _(t){var e=t[0],n=t[1];return e*e+n*n}function S(t,e){return t[0]=-e[0],t[1]=-e[1],t}function P(t,e){return t[0]=1/e[0],t[1]=1/e[1],t}function k(t,e){var n=e[0],r=e[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i,t}function C(t,e){return t[0]*e[0]+t[1]*e[1]}function O(t,e,n){var r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t}function E(t,e,n,r){var i=e[0],o=e[1];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t}function A(t,e){e=e||1;var n=2*r["c"]()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t}function j(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i,t[1]=n[1]*r+n[3]*i,t}function I(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function T(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[3]*i+n[6],t[1]=n[1]*r+n[4]*i+n[7],t}function B(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[4]*i+n[12],t[1]=n[1]*r+n[5]*i+n[13],t}function N(t,e,n,r){var i=e[0]-n[0],o=e[1]-n[1],a=Math.sin(r),s=Math.cos(r);return t[0]=i*s-o*a+n[0],t[1]=i*a+o*s+n[1],t}function D(t,e){var n=t[0],r=t[1],i=e[0],o=e[1],a=Math.sqrt(n*n+r*r)*Math.sqrt(i*i+o*o),s=a&&(n*i+r*o)/a;return Math.acos(Math.min(Math.max(s,-1),1))}function L(t){return t[0]=0,t[1]=0,t}function R(t){return"vec2("+t[0]+", "+t[1]+")"}function z(t,e){return t[0]===e[0]&&t[1]===e[1]}function F(t,e){var n=t[0],i=t[1],o=e[0],a=e[1];return Math.abs(n-o)<=r["b"]*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-a)<=r["b"]*Math.max(1,Math.abs(i),Math.abs(a))}var G=M,Y=f,X=l,V=h,q=x,U=w,W=_,H=function(){var t=i();return function(e,n,r,i,o,a){var s,u;for(n||(n=2),r||(r=0),u=i?Math.min(i*n+r,e.length):e.length,s=r;s<u;s+=n)t[0]=e[s],t[1]=e[s+1],o(t,t,a),e[s]=t[0],e[s+1]=t[1];return e}}()},6736:function(t,e,n){var r=n("33de");t.exports=o;var i=r.constant(1);function o(t,e,n){return a(t,e||i,n||function(e){return t.outEdges(e)})}function a(t,e,n){var r={},i=t.nodes();return i.forEach((function(t){r[t]={},r[t][t]={distance:0},i.forEach((function(e){t!==e&&(r[t][e]={distance:Number.POSITIVE_INFINITY})})),n(t).forEach((function(n){var i=n.v===t?n.w:n.v,o=e(n);r[t][i]={distance:o,predecessor:t}}))})),i.forEach((function(t){var e=r[t];i.forEach((function(n){var o=r[n];i.forEach((function(n){var r=o[t],i=e[n],a=o[n],s=r.distance+i.distance;s<a.distance&&(a.distance=s,a.predecessor=i.predecessor)}))}))})),r}},6747:function(t,e){var n=Array.isArray;t.exports=n},6751:function(t,e,n){var r=n("c9ca"),i=n("aaec"),o=n("ab81");function a(t){return i(t)?o(t):r(t)}t.exports=a},"67ac":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("6c7f");r.translate=function(t,e,n){var i=new Array(9);return r.fromTranslation(i,n),r.multiply(t,i,e)},r.rotate=function(t,e,n){var i=new Array(9);return r.fromRotation(i,n),r.multiply(t,i,e)},r.scale=function(t,e,n){var i=new Array(9);return r.fromScaling(i,n),r.multiply(t,i,e)},r.transform=function(t,e){for(var n=[].concat(t),i=0,o=e.length;i<o;i++){var a=e[i];switch(a[0]){case"t":r.translate(n,n,[a[1],a[2]]);break;case"s":r.scale(n,n,[a[1],a[2]]);break;case"r":r.rotate(n,n,a[1]);break;default:break}}return n},e.default=r},"67ca":function(t,e,n){var r=n("cb5a");function i(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}t.exports=i},6855:function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return Ir})),n.d(e,"Event",(function(){return q})),n.d(e,"Base",(function(){return dt})),n.d(e,"AbstractCanvas",(function(){return kr})),n.d(e,"AbstractGroup",(function(){return Or})),n.d(e,"AbstractShape",(function(){return Ar})),n.d(e,"PathUtil",(function(){return r}));var r={};n.r(r),n.d(r,"catmullRomToBezier",(function(){return l})),n.d(r,"fillPath",(function(){return D})),n.d(r,"fillPathByDiff",(function(){return F})),n.d(r,"formatPath",(function(){return X})),n.d(r,"intersection",(function(){return I})),n.d(r,"parsePathArray",(function(){return b})),n.d(r,"parsePathString",(function(){return f})),n.d(r,"pathToAbsolute",(function(){return d})),n.d(r,"pathToCurve",(function(){return y})),n.d(r,"rectPath",(function(){return P}));var i={};n.r(i),n.d(i,"leftTranslate",(function(){return vt})),n.d(i,"leftRotate",(function(){return yt})),n.d(i,"leftScale",(function(){return mt})),n.d(i,"transform",(function(){return xt})),n.d(i,"direction",(function(){return wt})),n.d(i,"angleTo",(function(){return Mt})),n.d(i,"vertical",(function(){return _t}));var o={};n.r(o),n.d(o,"easeLinear",(function(){return de})),n.d(o,"easeQuad",(function(){return ve})),n.d(o,"easeQuadIn",(function(){return pe})),n.d(o,"easeQuadOut",(function(){return ge})),n.d(o,"easeQuadInOut",(function(){return ve})),n.d(o,"easeCubic",(function(){return be})),n.d(o,"easeCubicIn",(function(){return ye})),n.d(o,"easeCubicOut",(function(){return me})),n.d(o,"easeCubicInOut",(function(){return be})),n.d(o,"easePoly",(function(){return _e})),n.d(o,"easePolyIn",(function(){return we})),n.d(o,"easePolyOut",(function(){return Me})),n.d(o,"easePolyInOut",(function(){return _e})),n.d(o,"easeSin",(function(){return Oe})),n.d(o,"easeSinIn",(function(){return ke})),n.d(o,"easeSinOut",(function(){return Ce})),n.d(o,"easeSinInOut",(function(){return Oe})),n.d(o,"easeExp",(function(){return Ie})),n.d(o,"easeExpIn",(function(){return Ae})),n.d(o,"easeExpOut",(function(){return je})),n.d(o,"easeExpInOut",(function(){return Ie})),n.d(o,"easeCircle",(function(){return Ne})),n.d(o,"easeCircleIn",(function(){return Te})),n.d(o,"easeCircleOut",(function(){return Be})),n.d(o,"easeCircleInOut",(function(){return Ne})),n.d(o,"easeBounce",(function(){return We})),n.d(o,"easeBounceIn",(function(){return Ue})),n.d(o,"easeBounceOut",(function(){return We})),n.d(o,"easeBounceInOut",(function(){return He})),n.d(o,"easeBack",(function(){return Ke})),n.d(o,"easeBackIn",(function(){return $e})),n.d(o,"easeBackOut",(function(){return Qe})),n.d(o,"easeBackInOut",(function(){return Ke})),n.d(o,"easeElastic",(function(){return rn})),n.d(o,"easeElasticIn",(function(){return nn})),n.d(o,"easeElasticOut",(function(){return rn})),n.d(o,"easeElasticInOut",(function(){return on}));var a=n("8937"),s="\t\n\v\f\r \u2028\u2029",u=new RegExp("([a-z])["+s+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+s+"]*,?["+s+"]*)+)","ig"),c=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+s+"]*,?["+s+"]*","ig"),f=function(t){if(!t)return null;if(Object(a["isArray"])(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(u,(function(r,i,o){var a=[],s=i.toLowerCase();if(o.replace(c,(function(t,e){e&&a.push(+e)})),"m"===s&&a.length>2&&(n.push([i].concat(a.splice(0,2))),s="l",i="m"===i?"l":"L"),"o"===s&&1===a.length&&n.push([i,a[0]]),"r"===s)n.push([i].concat(a));else while(a.length>=e[s])if(n.push([i].concat(a.splice(0,e[s]))),!e[s])break;return t})),n},l=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var o=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?o[3]={x:+t[0],y:+t[1]}:i-2===r&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?o[3]=o[2]:r||(o[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n},h=function(t,e,n,r,i){var o=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var a=Math.PI/180,s=t+n*Math.cos(-r*a),u=t+n*Math.cos(-i*a),c=e+n*Math.sin(-r*a),f=e+n*Math.sin(-i*a);o=[["M",s,c],["A",n,n,0,+(i-r>180),0,u,f]]}else o=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return o},d=function(t){if(t=f(t),!t||!t.length)return[["M",0,0]];var e,n,r=[],i=0,o=0,a=0,s=0,u=0;"M"===t[0][0]&&(i=+t[0][1],o=+t[0][2],a=i,s=o,u++,r[0]=["M",i,o]);for(var c=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),d=void 0,p=void 0,g=u,v=t.length;g<v;g++){if(r.push(d=[]),p=t[g],e=p[0],e!==e.toUpperCase())switch(d[0]=e.toUpperCase(),d[0]){case"A":d[1]=p[1],d[2]=p[2],d[3]=p[3],d[4]=p[4],d[5]=p[5],d[6]=+p[6]+i,d[7]=+p[7]+o;break;case"V":d[1]=+p[1]+o;break;case"H":d[1]=+p[1]+i;break;case"R":n=[i,o].concat(p.slice(1));for(var y=2,m=n.length;y<m;y++)n[y]=+n[y]+i,n[++y]=+n[y]+o;r.pop(),r=r.concat(l(n,c));break;case"O":r.pop(),n=h(i,o,p[1],p[2]),n.push(n[0]),r=r.concat(n);break;case"U":r.pop(),r=r.concat(h(i,o,p[1],p[2],p[3])),d=["U"].concat(r[r.length-1].slice(-2));break;case"M":a=+p[1]+i,s=+p[2]+o;break;default:for(y=1,m=p.length;y<m;y++)d[y]=+p[y]+(y%2?i:o)}else if("R"===e)n=[i,o].concat(p.slice(1)),r.pop(),r=r.concat(l(n,c)),d=["R"].concat(p.slice(-2));else if("O"===e)r.pop(),n=h(i,o,p[1],p[2]),n.push(n[0]),r=r.concat(n);else if("U"===e)r.pop(),r=r.concat(h(i,o,p[1],p[2],p[3])),d=["U"].concat(r[r.length-1].slice(-2));else for(var b=0,x=p.length;b<x;b++)d[b]=p[b];if(e=e.toUpperCase(),"O"!==e)switch(d[0]){case"Z":i=+a,o=+s;break;case"H":i=d[1];break;case"V":o=d[1];break;case"M":a=d[d.length-2],s=d[d.length-1];break;default:i=d[d.length-2],o=d[d.length-1]}}return r},p=function(t,e,n,r){return[t,e,n,r,n,r]},g=function(t,e,n,r,i,o){var a=1/3,s=2/3;return[a*t+s*n,a*e+s*r,a*i+s*n,a*o+s*r,i,o]},v=function(t,e,n,r,i,o,a,s,u,c){n===r&&(n+=1);var f,l,h,d,p,g=120*Math.PI/180,y=Math.PI/180*(+i||0),m=[],b=function(t,e,n){var r=t*Math.cos(n)-e*Math.sin(n),i=t*Math.sin(n)+e*Math.cos(n);return{x:r,y:i}};if(c)l=c[0],h=c[1],d=c[2],p=c[3];else{f=b(t,e,-y),t=f.x,e=f.y,f=b(s,u,-y),s=f.x,u=f.y,t===s&&e===u&&(s+=1,u+=1);var x=(t-s)/2,w=(e-u)/2,M=x*x/(n*n)+w*w/(r*r);M>1&&(M=Math.sqrt(M),n*=M,r*=M);var _=n*n,S=r*r,P=(o===a?-1:1)*Math.sqrt(Math.abs((_*S-_*w*w-S*x*x)/(_*w*w+S*x*x)));d=P*n*w/r+(t+s)/2,p=P*-r*x/n+(e+u)/2,l=Math.asin(((e-p)/r).toFixed(9)),h=Math.asin(((u-p)/r).toFixed(9)),l=t<d?Math.PI-l:l,h=s<d?Math.PI-h:h,l<0&&(l=2*Math.PI+l),h<0&&(h=2*Math.PI+h),a&&l>h&&(l-=2*Math.PI),!a&&h>l&&(h-=2*Math.PI)}var k=h-l;if(Math.abs(k)>g){var C=h,O=s,E=u;h=l+g*(a&&h>l?1:-1),s=d+n*Math.cos(h),u=p+r*Math.sin(h),m=v(s,u,n,r,i,0,a,O,E,[h,C,d,p])}k=h-l;var A=Math.cos(l),j=Math.sin(l),I=Math.cos(h),T=Math.sin(h),B=Math.tan(k/4),N=4/3*n*B,D=4/3*r*B,L=[t,e],R=[t+N*j,e-D*A],z=[s+N*T,u-D*I],F=[s,u];if(R[0]=2*L[0]-R[0],R[1]=2*L[1]-R[1],c)return[R,z,F].concat(m);m=[R,z,F].concat(m).join().split(",");for(var G=[],Y=0,X=m.length;Y<X;Y++)G[Y]=Y%2?b(m[Y-1],m[Y],y).y:b(m[Y],m[Y+1],y).x;return G},y=function(t,e){var n,r=d(t),i=e&&d(e),o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=[],u=[],c="",f="",l=function(t,e,n){var r,i;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(v.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(r=2*e.x-e.bx,i=2*e.y-e.by):(r=e.x,i=e.y),t=["C",r,i].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(g(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(g(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(p(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(p(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(p(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(p(e.x,e.y,e.X,e.Y));break;default:break}return t},h=function(t,e){if(t[e].length>7){t[e].shift();var o=t[e];while(o.length)s[e]="A",i&&(u[e]="A"),t.splice(e++,0,["C"].concat(o.splice(0,6)));t.splice(e,1),n=Math.max(r.length,i&&i.length||0)}},y=function(t,e,o,a,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",a.x,a.y]),o.bx=0,o.by=0,o.x=t[s][1],o.y=t[s][2],n=Math.max(r.length,i&&i.length||0))};n=Math.max(r.length,i&&i.length||0);for(var m=0;m<n;m++){r[m]&&(c=r[m][0]),"C"!==c&&(s[m]=c,m&&(f=s[m-1])),r[m]=l(r[m],o,f),"A"!==s[m]&&"C"===c&&(s[m]="C"),h(r,m),i&&(i[m]&&(c=i[m][0]),"C"!==c&&(u[m]=c,m&&(f=u[m-1])),i[m]=l(i[m],a,f),"A"!==u[m]&&"C"===c&&(u[m]="C"),h(i,m)),y(r,i,o,a,m),y(i,r,a,o,m);var b=r[m],x=i&&i[m],w=b.length,M=i&&x.length;o.x=b[w-2],o.y=b[w-1],o.bx=parseFloat(b[w-4])||o.x,o.by=parseFloat(b[w-3])||o.y,a.bx=i&&(parseFloat(x[M-4])||a.x),a.by=i&&(parseFloat(x[M-3])||a.y),a.x=i&&x[M-2],a.y=i&&x[M-1]}return i?[r,i]:r},m=/,?([a-z]),?/gi,b=function(t){return t.join(",").replace(m,"$1")},x=function(t,e,n,r,i){var o=-3*e+9*n-9*r+3*i,a=t*o+6*e-12*n+6*r;return t*a-3*e+3*n},w=function(t,e,n,r,i,o,a,s,u){null===u&&(u=1),u=u>1?1:u<0?0:u;for(var c=u/2,f=12,l=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,p=0;p<f;p++){var g=c*l[p]+c,v=x(g,t,n,i,a),y=x(g,e,r,o,s),m=v*v+y*y;d+=h[p]*Math.sqrt(m)}return c*d},M=function(t,e,n,r,i,o,a,s){for(var u,c,f,l,h=[],d=[[],[]],p=0;p<2;++p)if(0===p?(c=6*t-12*n+6*i,u=-3*t+9*n-9*i+3*a,f=3*n-3*t):(c=6*e-12*r+6*o,u=-3*e+9*r-9*o+3*s,f=3*r-3*e),Math.abs(u)<1e-12){if(Math.abs(c)<1e-12)continue;l=-f/c,l>0&&l<1&&h.push(l)}else{var g=c*c-4*f*u,v=Math.sqrt(g);if(!(g<0)){var y=(-c+v)/(2*u);y>0&&y<1&&h.push(y);var m=(-c-v)/(2*u);m>0&&m<1&&h.push(m)}}var b,x=h.length,w=x;while(x--)l=h[x],b=1-l,d[0][x]=b*b*b*t+3*b*b*l*n+3*b*l*l*i+l*l*l*a,d[1][x]=b*b*b*e+3*b*b*l*r+3*b*l*l*o+l*l*l*s;return d[0][w]=t,d[1][w]=e,d[0][w+1]=a,d[1][w+1]=s,d[0].length=d[1].length=w+2,{min:{x:Math.min.apply(0,d[0]),y:Math.min.apply(0,d[1])},max:{x:Math.max.apply(0,d[0]),y:Math.max.apply(0,d[1])}}},_=function(t,e,n,r,i,o,a,s){if(!(Math.max(t,n)<Math.min(i,a)||Math.min(t,n)>Math.max(i,a)||Math.max(e,r)<Math.min(o,s)||Math.min(e,r)>Math.max(o,s))){var u=(t*r-e*n)*(i-a)-(t-n)*(i*s-o*a),c=(t*r-e*n)*(o-s)-(e-r)*(i*s-o*a),f=(t-n)*(o-s)-(e-r)*(i-a);if(f){var l=u/f,h=c/f,d=+l.toFixed(2),p=+h.toFixed(2);if(!(d<+Math.min(t,n).toFixed(2)||d>+Math.max(t,n).toFixed(2)||d<+Math.min(i,a).toFixed(2)||d>+Math.max(i,a).toFixed(2)||p<+Math.min(e,r).toFixed(2)||p>+Math.max(e,r).toFixed(2)||p<+Math.min(o,s).toFixed(2)||p>+Math.max(o,s).toFixed(2)))return{x:l,y:h}}}},S=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},P=function(t,e,n,r,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var o=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return o.parsePathArray=b,o},k=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:P(t,e,n,r),vb:[t,e,n,r].join(" ")}},C=function(t,e){return t=k(t),e=k(e),S(e,t.x,t.y)||S(e,t.x2,t.y)||S(e,t.x,t.y2)||S(e,t.x2,t.y2)||S(t,e.x,e.y)||S(t,e.x2,e.y)||S(t,e.x,e.y2)||S(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)},O=function(t,e,n,r,i,o,s,u){Object(a["isArray"])(t)||(t=[t,e,n,r,i,o,s,u]);var c=M.apply(null,t);return k(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)},E=function(t,e,n,r,i,o,a,s,u){var c=1-u,f=Math.pow(c,3),l=Math.pow(c,2),h=u*u,d=h*u,p=f*t+3*l*u*n+3*c*u*u*i+d*a,g=f*e+3*l*u*r+3*c*u*u*o+d*s,v=t+2*u*(n-t)+h*(i-2*n+t),y=e+2*u*(r-e)+h*(o-2*r+e),m=n+2*u*(i-n)+h*(a-2*i+n),b=r+2*u*(o-r)+h*(s-2*o+r),x=c*t+u*n,w=c*e+u*r,M=c*i+u*a,_=c*o+u*s,S=90-180*Math.atan2(v-m,y-b)/Math.PI;return{x:p,y:g,m:{x:v,y:y},n:{x:m,y:b},start:{x:x,y:w},end:{x:M,y:_},alpha:S}},A=function(t,e,n){var r=O(t),i=O(e);if(!C(r,i))return n?0:[];for(var o=w.apply(0,t),a=w.apply(0,e),s=~~(o/8),u=~~(a/8),c=[],f=[],l={},h=n?0:[],d=0;d<s+1;d++){var p=E.apply(0,t.concat(d/s));c.push({x:p.x,y:p.y,t:d/s})}for(d=0;d<u+1;d++){p=E.apply(0,e.concat(d/u));f.push({x:p.x,y:p.y,t:d/u})}for(d=0;d<s;d++)for(var g=0;g<u;g++){var v=c[d],y=c[d+1],m=f[g],b=f[g+1],x=Math.abs(y.x-v.x)<.001?"y":"x",M=Math.abs(b.x-m.x)<.001?"y":"x",S=_(v.x,v.y,y.x,y.y,m.x,m.y,b.x,b.y);if(S){if(l[S.x.toFixed(4)]===S.y.toFixed(4))continue;l[S.x.toFixed(4)]=S.y.toFixed(4);var P=v.t+Math.abs((S[x]-v[x])/(y[x]-v[x]))*(y.t-v.t),k=m.t+Math.abs((S[M]-m[M])/(b[M]-m[M]))*(b.t-m.t);P>=0&&P<=1&&k>=0&&k<=1&&(n?h+=1:h.push({x:S.x,y:S.y,t1:P,t2:k}))}}return h},j=function(t,e,n){var r,i,o,a,s,u,c,f,l,h;t=y(t),e=y(e);for(var d=n?0:[],p=0,g=t.length;p<g;p++){var v=t[p];if("M"===v[0])r=s=v[1],i=u=v[2];else{"C"===v[0]?(l=[r,i].concat(v.slice(1)),r=l[6],i=l[7]):(l=[r,i,r,i,s,u,s,u],r=s,i=u);for(var m=0,b=e.length;m<b;m++){var x=e[m];if("M"===x[0])o=c=x[1],a=f=x[2];else{"C"===x[0]?(h=[o,a].concat(x.slice(1)),o=h[6],a=h[7]):(h=[o,a,o,a,c,f,c,f],o=c,a=f);var w=A(l,h,n);if(n)d+=w;else{for(var M=0,_=w.length;M<_;M++)w[M].segment1=p,w[M].segment2=m,w[M].bez1=l,w[M].bez2=h;d=d.concat(w)}}}}}return d},I=function(t,e){return j(t,e)};function T(t,e){var n=[],r=[];function i(t,e){if(1===t.length)n.push(t[0]),r.push(t[0]);else{for(var o=[],a=0;a<t.length-1;a++)0===a&&n.push(t[0]),a===t.length-2&&r.push(t[a+1]),o[a]=[(1-e)*t[a][0]+e*t[a+1][0],(1-e)*t[a][1]+e*t[a+1][1]];i(o,e)}}return t.length&&i(t,e),{left:n,right:r.reverse()}}function B(t,e,n){var r=[[t[1],t[2]]];n=n||2;var i=[];"A"===e[0]?(r.push(e[6]),r.push(e[7])):"C"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]]),r.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]])):r.push([e[1],e[2]]);for(var o=r,a=1/n,s=0;s<n-1;s++){var u=a/(1-a*s),c=T(o,u);i.push(c.left),o=c.right}i.push(o);var f=i.map((function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1]),e}));return f}var N=function(t,e,n){if(1===n)return[[].concat(t)];var r=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])r=r.concat(B(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var o=0;o<=n-1;o++)r.push(i)}return r},D=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,o=[];if(1===t.length&&"M"===t[0][0]){for(var a=0;a<r-n;a++)t.push(t[0]);return t}for(a=0;a<r;a++){var s=Math.floor(i*a);o[s]=(o[s]||0)+1}var u=o.reduce((function(e,r,i){return i===n?e.concat(t[n]):e.concat(N(t[i],t[i+1],r))}),[]);return u.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||u.push("Z"),u},L=function(t,e){if(t.length!==e.length)return!1;var n=!0;return Object(a["each"])(t,(function(t,r){if(t!==e[r])return n=!1,!1})),n};function R(t,e,n){var r=null,i=n;return e<i&&(i=e,r="add"),t<i&&(i=t,r="del"),{type:r,min:i}}var z=function(t,e){var n,r,i=t.length,o=e.length,a=0;if(0===i||0===o)return null;for(var s=[],u=0;u<=i;u++)s[u]=[],s[u][0]={min:u};for(var c=0;c<=o;c++)s[0][c]={min:c};for(u=1;u<=i;u++){n=t[u-1];for(c=1;c<=o;c++){r=e[c-1],a=L(n,r)?0:1;var f=s[u-1][c].min+1,l=s[u][c-1].min+1,h=s[u-1][c-1].min+a;s[u][c]=R(f,l,h)}}return s},F=function(t,e){var n=z(t,e),r=t.length,i=e.length,o=[],a=1,s=1;if(n[r][i].min!==r){for(var u=1;u<=r;u++){var c=n[u][u].min;s=u;for(var f=a;f<=i;f++)n[u][f].min<c&&(c=n[u][f].min,s=f);a=s,n[u][a].type&&o.push({index:u-1,type:n[u][a].type})}for(u=o.length-1;u>=0;u--)a=o[u].index,"add"===o[u].type?t.splice(a,0,[].concat(t[a])):t.splice(a,1)}r=t.length;var l=i-r;if(r<i)for(u=0;u<l;u++)"z"===t[r-1][0]||"Z"===t[r-1][0]?t.splice(r-2,0,t[r-2]):t.push(t[r-1]),r+=1;return t};function G(t,e,n){for(var r,i=[].concat(t),o=1/(n+1),a=Y(e)[0],s=1;s<=n;s++)o*=s,r=Math.floor(t.length*o),0===r?i.unshift([a[0]*o+t[r][0]*(1-o),a[1]*o+t[r][1]*(1-o)]):i.splice(r,0,[a[0]*o+t[r][0]*(1-o),a[1]*o+t[r][1]*(1-o)]);return i}function Y(t){var e=[];switch(t[0]){case"M":e.push([t[1],t[2]]);break;case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":e.push([t[1],t[1]]);break;case"V":e.push([t[1],t[1]]);break;default:}return e}var X=function(t,e){if(t.length<=1)return t;for(var n,r=0;r<e.length;r++)if(t[r][0]!==e[r][0])switch(n=Y(t[r]),e[r][0]){case"M":t[r]=["M"].concat(n[0]);break;case"L":t[r]=["L"].concat(n[0]);break;case"A":t[r]=[].concat(e[r]),t[r][6]=n[0][0],t[r][7]=n[0][1];break;case"Q":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=G(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){t[r]=e[r];break}n=G(n,t[r-1],2)}t[r]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=G(n,t[r-1],1)}t[r]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[r]=e[r]}return t},V=function(){function t(t,e){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=t,this.name=t,this.originalEvent=e,this.timeStamp=e.timeStamp}return t.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.toString=function(){var t=this.type;return"[Event (type="+t+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}(),q=V,U=n("9ab4"),W=n("7fa27"),H=n("28f9"),Z=n.n(H),$=n("2047"),Q=n.n($),K=n("61d8"),J=n.n(K),tt=n("9ab4f"),et=n.n(tt),nt=(n("01f9"),n("503e")),rt=n.n(nt),it=n("72fb"),ot=n.n(it),at=n("3c5c"),st=n.n(at);function ut(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}var ct="undefined"!==typeof window&&"undefined"!==typeof window.document;function ft(t,e){if(t.isCanvas())return!0;var n=e.getParent(),r=!1;while(n){if(n===t){r=!0;break}n=n.getParent()}return r}function lt(t){return t.cfg.visible&&t.cfg.capture}var ht=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=n.getDefaultCfg();return n.cfg=rt()(r,e),n}return Object(U["__extends"])(e,t),e.prototype.getDefaultCfg=function(){return{}},e.prototype.get=function(t){return this.cfg[t]},e.prototype.set=function(t,e){this.cfg[t]=e},e.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},e}(W["default"]),dt=ht,pt=n("0c05"),gt=n("20e7");function vt(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return gt["a"].fromTranslation(r,n),gt["a"].multiply(t,r,e)}function yt(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return gt["a"].fromRotation(r,n),gt["a"].multiply(t,r,e)}function mt(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return gt["a"].fromScaling(r,n),gt["a"].multiply(t,r,e)}function bt(t,e,n){return gt["a"].multiply(t,n,e)}function xt(t,e){for(var n=t?[].concat(t):[1,0,0,0,1,0,0,0,1],r=0,i=e.length;r<i;r++){var o=e[r];switch(o[0]){case"t":vt(n,n,[o[1],o[2]]);break;case"s":mt(n,n,[o[1],o[2]]);break;case"r":yt(n,n,o[1]);break;case"m":bt(n,n,o[1]);break;default:break}}return n}function wt(t,e){return t[0]*e[1]-e[0]*t[1]}function Mt(t,e,n){var r=gt["b"].angle(t,e),i=wt(t,e)>=0;return n?i?2*Math.PI-r:r:i?r:2*Math.PI-r}function _t(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}function St(t,e){var n=[],r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],c=t[6],f=t[7],l=t[8],h=e[0],d=e[1],p=e[2],g=e[3],v=e[4],y=e[5],m=e[6],b=e[7],x=e[8];return n[0]=h*r+d*a+p*c,n[1]=h*i+d*s+p*f,n[2]=h*o+d*u+p*l,n[3]=g*r+v*a+y*c,n[4]=g*i+v*s+y*f,n[5]=g*o+v*u+y*l,n[6]=m*r+b*a+x*c,n[7]=m*i+b*s+x*f,n[8]=m*o+b*u+x*l,n}function Pt(t,e){var n=[],r=e[0],i=e[1];return n[0]=t[0]*r+t[3]*i+t[6],n[1]=t[1]*r+t[4]*i+t[7],n}function kt(t){var e=[],n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],u=t[6],c=t[7],f=t[8],l=f*a-s*c,h=-f*o+s*u,d=c*o-a*u,p=n*l+r*h+i*d;return p?(p=1/p,e[0]=l*p,e[1]=(-f*r+i*c)*p,e[2]=(s*r-i*a)*p,e[3]=h*p,e[4]=(f*n-i*u)*p,e[5]=(-s*n+i*o)*p,e[6]=d*p,e[7]=(-c*n+r*u)*p,e[8]=(a*n-r*o)*p,e):null}var Ct="matrix",Ot=["zIndex","capture","visible","type"],Et=["repeat"],At=":",jt="*";function It(t){for(var e=[],n=0;n<t.length;n++)Object(a["isArray"])(t[n])?e.push([].concat(t[n])):e.push(t[n]);return e}function Tt(t,e){var n={},r=e.attrs;for(var i in t)n[i]=r[i];return n}function Bt(t,e){var n={},r=e.attr();return Object(a["each"])(t,(function(t,e){-1!==Et.indexOf(e)||Object(a["isEqual"])(r[e],t)||(n[e]=t)})),n}function Nt(t,e){if(e.onFrame)return t;var n=e.startTime,r=e.delay,i=e.duration,o=Object.prototype.hasOwnProperty;return Object(a["each"])(t,(function(t){n+r<t.startTime+t.delay+t.duration&&i>t.delay&&Object(a["each"])(e.toAttrs,(function(e,n){o.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])}))})),t}var Dt=function(t){function e(e){var n=t.call(this,e)||this;n.attrs={};var r=n.getDefaultAttrs();return Object(a["mix"])(r,e.attrs),n.attrs=r,n.initAttrs(r),n.initAnimate(),n}return Object(U["__extends"])(e,t),e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(t){},e.prototype.initAttrs=function(t){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e[0],i=e[1];if(!r)return this.attrs;if(Object(a["isObject"])(r)){for(var o in r)this.setAttr(o,r[o]);return this.afterAttrsChange(r),this}return 2===e.length?(this.setAttr(r,i),this.afterAttrsChange((t={},t[r]=i,t)),this):this.attrs[r]},e.prototype.isClipped=function(t,e){var n=this.getClip();return n&&!n.isHit(t,e)},e.prototype.setAttr=function(t,e){var n=this.attrs[t];n!==e&&(this.attrs[t]=e,this.onAttrChange(t,e,n))},e.prototype.onAttrChange=function(t,e,n){"matrix"===t&&this.set("totalMatrix",null)},e.prototype.afterAttrsChange=function(t){this.onCanvasChange("attr")},e.prototype.show=function(){return this.set("visible",!0),this.onCanvasChange("show"),this},e.prototype.hide=function(){return this.set("visible",!1),this.onCanvasChange("hide"),this},e.prototype.setZIndex=function(t){this.set("zIndex",t);var e=this.getParent();return e&&e.sort(),this},e.prototype.toFront=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=(this.get("el"),e.indexOf(this));e.splice(n,1),e.push(this),this.onCanvasChange("zIndex")}},e.prototype.toBack=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=(this.get("el"),e.indexOf(this));e.splice(n,1),e.unshift(this),this.onCanvasChange("zIndex")}},e.prototype.remove=function(t){void 0===t&&(t=!0);var e=this.getParent();e?(ut(e.getChildren(),this),e.get("clearing")||this.onCanvasChange("remove")):this.onCanvasChange("remove"),t&&this.destroy()},e.prototype.resetMatrix=function(){this.attr(Ct,this.getDefaultMatrix()),this.onCanvasChange("matrix")},e.prototype.getMatrix=function(){return this.attr(Ct)},e.prototype.setMatrix=function(t){this.attr(Ct,t),this.onCanvasChange("matrix")},e.prototype.getTotalMatrix=function(){var t=this.get("totalMatrix");if(!t){var e=this.attr("matrix"),n=this.get("parentMatrix");t=n&&e?St(n,e):e||n,this.set("totalMatrix",t)}return t},e.prototype.applyMatrix=function(t){var e=this.attr("matrix"),n=null;n=t&&e?St(t,e):e||t,this.set("totalMatrix",n),this.set("parentMatrix",t)},e.prototype.getDefaultMatrix=function(){return null},e.prototype.applyToMatrix=function(t){var e=this.attr("matrix");return e?Pt(e,t):t},e.prototype.invertFromMatrix=function(t){var e=this.attr("matrix");if(e){var n=kt(e);if(n)return Pt(n,t)}return t},e.prototype.setClip=function(t){var e=this.getCanvas(),n=null;if(t){var r=this.getShapeBase(),i=Object(a["upperFirst"])(t.type),o=r[i];o&&(n=new o({type:t.type,isClipShape:!0,attrs:t.attrs,canvas:e}))}return this.set("clipShape",n),this.onCanvasChange("clip"),n},e.prototype.getClip=function(){var t=this.cfg.clipShape;return t||null},e.prototype.clone=function(){var t=this,e=this.attrs,n={};Object(a["each"])(e,(function(t,r){Object(a["isArray"])(e[r])?n[r]=It(e[r]):n[r]=e[r]}));var r=this.constructor,i=new r({attrs:n});return Object(a["each"])(Ot,(function(e){i.set(e,t.get(e))})),i},e.prototype.destroy=function(){var e=this.destroyed;e||(this.attrs={},t.prototype.destroy.call(this))},e.prototype.isAnimatePaused=function(){return this.get("_pause").isPaused},e.prototype.animate=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.set("animating",!0);var n=this.get("timeline");n||(n=this.get("canvas").get("timeline"),this.set("timeline",n));var r=this.get("animations")||[];n.timer||n.initTimer();var i,o,s,u,c,f=t[0],l=t[1],h=t[2],d=void 0===h?"easeLinear":h,p=t[3],g=void 0===p?a["noop"]:p,v=t[4],y=void 0===v?0:v;Object(a["isFunction"])(f)?(i=f,f={}):Object(a["isObject"])(f)&&f.onFrame&&(i=f.onFrame,o=f.repeat),Object(a["isObject"])(l)?(c=l,l=c.duration,d=c.easing||"easeLinear",y=c.delay||0,o=c.repeat||o||!1,g=c.callback||a["noop"],s=c.pauseCallback||a["noop"],u=c.resumeCallback||a["noop"]):(Object(a["isNumber"])(g)&&(y=g,g=null),Object(a["isFunction"])(d)?(g=d,d="easeLinear"):d=d||"easeLinear");var m=Bt(f,this),b={fromAttrs:Tt(m,this),toAttrs:m,duration:l,easing:d,repeat:o,callback:g,pauseCallback:s,resumeCallback:u,delay:y,startTime:n.getTime(),id:Object(a["uniqueId"])(),onFrame:i,pathFormatted:!1};r.length>0?r=Nt(r,b):n.addAnimator(this),r.push(b),this.set("animations",r),this.set("_pause",{isPaused:!1})},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0);var n=this.get("animations");Object(a["each"])(n,(function(n){t&&(n.onFrame?e.attr(n.onFrame(1)):e.attr(n.toAttrs)),n.callback&&n.callback()})),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),e=this.get("animations"),n=t.getTime();return Object(a["each"])(e,(function(t){t._paused=!0,t._pauseTime=n,t.pauseCallback&&t.pauseCallback()})),this.set("_pause",{isPaused:!0,pauseTime:n}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline"),e=t.getTime(),n=this.get("animations"),r=this.get("_pause").pauseTime;return Object(a["each"])(n,(function(t){t.startTime=t.startTime+(e-r),t._paused=!1,t._pauseTime=null,t.resumeCallback&&t.resumeCallback()})),this.set("_pause",{isPaused:!1}),this.set("animations",n),this},e.prototype.emitDelegation=function(t,e){var n,r=this,i=e.propagationPath;this.getEvents();"mouseenter"===t?n=e.fromShape:"mouseleave"===t&&(n=e.toShape);for(var o=function(t){var o=i[t],u=o.get("name");if(u){if((o.isGroup()||o.isCanvas&&o.isCanvas())&&n&&ft(o,n))return"break";Object(a["isArray"])(u)?Object(a["each"])(u,(function(t){r.emitDelegateEvent(o,t,e)})):s.emitDelegateEvent(o,u,e)}},s=this,u=0;u<i.length;u++){var c=o(u);if("break"===c)break}},e.prototype.emitDelegateEvent=function(t,e,n){var r=this.getEvents(),i=e+At+n.type;(r[i]||r[jt])&&(n.name=i,n.currentTarget=t,n.delegateTarget=this,n.delegateObject=t.get("delegateObject"),this.emit(i,n))},e.prototype.translate=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0);var n=this.getMatrix(),r=i.transform(n,[["t",t,e]]);return this.setMatrix(r),this},e.prototype.move=function(t,e){var n=this.attr("x")||0,r=this.attr("y")||0;return this.translate(t-n,e-r),this},e.prototype.moveTo=function(t,e){return this.move(t,e)},e.prototype.scale=function(t,e){var n=this.getMatrix(),r=i.transform(n,[["s",t,e||t]]);return this.setMatrix(r),this},e.prototype.rotate=function(t){var e=this.getMatrix(),n=i.transform(e,[["r",t]]);return this.setMatrix(n),this},e.prototype.rotateAtStart=function(t){var e=this.attr(),n=e.x,r=e.y,o=this.getMatrix(),a=i.transform(o,[["t",-n,-r],["r",t],["t",n,r]]);return this.setMatrix(a),this},e.prototype.rotateAtPoint=function(t,e,n){var r=this.getMatrix(),o=i.transform(r,[["t",-t,-e],["r",n],["t",t,e]]);return this.setMatrix(o),this},e}(dt),Lt=Dt,Rt={},zt="_INDEX";function Ft(t){t.isGroup()?(t.isEntityGroup()||t.get("children").length)&&t.onCanvasChange("add"):t.onCanvasChange("add")}function Gt(t,e){if(t.set("canvas",e),t.isGroup()){var n=t.get("children");n.length&&n.forEach((function(t){Gt(t,e)}))}}function Yt(t,e){if(t.set("timeline",e),t.isGroup()){var n=t.get("children");n.length&&n.forEach((function(t){Yt(t,e)}))}}function Xt(t,e,n){void 0===n&&(n=!0),n?e.destroy():(e.set("parent",null),e.set("canvas",null)),ut(t.getChildren(),e)}function Vt(t){return function(e,n){var r=t(e,n);return 0===r?e[zt]-n[zt]:r}}var qt,Ut,Wt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(U["__extends"])(e,t),e.prototype.isCanvas=function(){return!1},e.prototype.getBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,i=[],o=[],a=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));a.length>0?(ot()(a,(function(t){var e=t.getBBox();i.push(e.minX,e.maxX),o.push(e.minY,e.maxY)})),t=Math.min.apply(null,i),e=Math.max.apply(null,i),n=Math.min.apply(null,o),r=Math.max.apply(null,o)):(t=0,e=0,n=0,r=0);var s={x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n};return s},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,i=[],o=[],a=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));a.length>0?(ot()(a,(function(t){var e=t.getCanvasBBox();i.push(e.minX,e.maxX),o.push(e.minY,e.maxY)})),t=Math.min.apply(null,i),e=Math.max.apply(null,i),n=Math.min.apply(null,o),r=Math.max.apply(null,o)):(t=0,e=0,n=0,r=0);var s={x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n};return s},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e["children"]=[],e},e.prototype.onAttrChange=function(e,n,r){if(t.prototype.onAttrChange.call(this,e,n,r),"matrix"===e){var i=this.getTotalMatrix();this._applyChildrenMarix(i)}},e.prototype.applyMatrix=function(e){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var r=this.getTotalMatrix();r!==n&&this._applyChildrenMarix(r)},e.prototype._applyChildrenMarix=function(t){var e=this.getChildren();ot()(e,(function(e){e.applyMatrix(t)}))},e.prototype.addShape=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0],r=t[1];et()(n)?r=n:r["type"]=n;var i=Rt[r.type];i||(i=st()(r.type),Rt[r.type]=i);var o=this.getShapeBase(),a=new o[i](r);return this.add(a),a},e.prototype.addGroup=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n,r=t[0],i=t[1];if(Q()(r))n=new r(i||{parent:this});else{var o=r||{},a=this.getGroupBase();n=new a(o)}return this.add(n),n},e.prototype.getCanvas=function(){var t;return t=this.isCanvas()?this:this.get("canvas"),t},e.prototype.getShape=function(t,e,n){if(!lt(this))return null;var r,i=this.getChildren();if(this.isCanvas())r=this._findShape(i,t,e,n);else{var o=[t,e,1];o=this.invertFromMatrix(o),this.isClipped(o[0],o[1])||(r=this._findShape(i,o[0],o[1],n))}return r},e.prototype._findShape=function(t,e,n,r){for(var i=null,o=t.length-1;o>=0;o--){var a=t[o];if(lt(a)&&(a.isGroup()?i=a.getShape(e,n,r):a.isHit(e,n)&&(i=a)),i)break}return i},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),r=this.get("timeline"),i=t.getParent();i&&Xt(i,t,!1),t.set("parent",this),e&&Gt(t,e),r&&Yt(t,r),n.push(t),Ft(t),this._applyElementMatrix(t)},e.prototype._applyElementMatrix=function(t){var e=this.getTotalMatrix();e&&t.applyMatrix(e)},e.prototype.getChildren=function(){return this.get("children")},e.prototype.sort=function(){var t=this.getChildren();ot()(t,(function(t,e){return t[zt]=e,t})),t.sort(Vt((function(t,e){return t.get("zIndex")-e.get("zIndex")}))),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),e=t.length-1;e>=0;e--)t[e].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},e.prototype.getChildByIndex=function(t){var e=this.getChildren();return e[t]},e.prototype.getCount=function(){var t=this.getChildren();return t.length},e.prototype.contain=function(t){var e=this.getChildren();return e.indexOf(t)>-1},e.prototype.removeChild=function(t,e){void 0===e&&(e=!0),this.contain(t)&&t.remove(e)},e.prototype.findAll=function(t){var e=[],n=this.getChildren();return ot()(n,(function(n){t(n)&&e.push(n),n.isGroup()&&(e=e.concat(n.findAll(t)))})),e},e.prototype.find=function(t){var e=null,n=this.getChildren();return ot()(n,(function(n){if(t(n)?e=n:n.isGroup()&&(e=n.find(t)),e)return!1})),e},e.prototype.findById=function(t){return this.find((function(e){return e.get("id")===t}))},e.prototype.findByClassName=function(t){return this.find((function(e){return e.get("className")===t}))},e.prototype.findAllByName=function(t){return this.findAll((function(e){return e.get("name")===t}))},e}(Lt),Ht=Wt,Zt=0,$t=0,Qt=0,Kt=1e3,Jt=0,te=0,ee=0,ne="object"===typeof performance&&performance.now?performance:Date,re="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function ie(){return te||(re(oe),te=ne.now()+ee)}function oe(){te=0}function ae(){this._call=this._time=this._next=null}function se(t,e,n){var r=new ae;return r.restart(t,e,n),r}function ue(){ie(),++Zt;var t,e=qt;while(e)(t=te-e._time)>=0&&e._call.call(null,t),e=e._next;--Zt}function ce(){te=(Jt=ne.now())+ee,Zt=$t=0;try{ue()}finally{Zt=0,le(),te=0}}function fe(){var t=ne.now(),e=t-Jt;e>Kt&&(ee-=e,Jt=t)}function le(){var t,e,n=qt,r=1/0;while(n)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:qt=e);Ut=t,he(r)}function he(t){if(!Zt){$t&&($t=clearTimeout($t));var e=t-te;e>24?(t<1/0&&($t=setTimeout(ce,t-ne.now()-ee)),Qt&&(Qt=clearInterval(Qt))):(Qt||(Jt=ne.now(),Qt=setInterval(fe,Kt)),Zt=1,re(ce))}}function de(t){return+t}function pe(t){return t*t}function ge(t){return t*(2-t)}function ve(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function ye(t){return t*t*t}function me(t){return--t*t*t+1}function be(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}ae.prototype=se.prototype={constructor:ae,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?ie():+n)+(null==e?0:+e),this._next||Ut===this||(Ut?Ut._next=this:qt=this,Ut=this),this._call=t,this._time=n,he()},stop:function(){this._call&&(this._call=null,this._time=1/0,he())}};var xe=3,we=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(xe),Me=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(xe),_e=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(xe),Se=Math.PI,Pe=Se/2;function ke(t){return 1===+t?1:1-Math.cos(t*Pe)}function Ce(t){return Math.sin(t*Pe)}function Oe(t){return(1-Math.cos(Se*t))/2}function Ee(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function Ae(t){return Ee(1-+t)}function je(t){return 1-Ee(t)}function Ie(t){return((t*=2)<=1?Ee(1-t):2-Ee(t-1))/2}function Te(t){return 1-Math.sqrt(1-t*t)}function Be(t){return Math.sqrt(1- --t*t)}function Ne(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var De=4/11,Le=6/11,Re=8/11,ze=3/4,Fe=9/11,Ge=10/11,Ye=15/16,Xe=21/22,Ve=63/64,qe=1/De/De;function Ue(t){return 1-We(1-t)}function We(t){return(t=+t)<De?qe*t*t:t<Re?qe*(t-=Le)*t+ze:t<Ge?qe*(t-=Fe)*t+Ye:qe*(t-=Xe)*t+Ve}function He(t){return((t*=2)<=1?1-We(1-t):We(t-1)+1)/2}var Ze=1.70158,$e=function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(Ze),Qe=function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(Ze),Ke=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(Ze),Je=2*Math.PI,tn=1,en=.3,nn=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Je);function i(t){return e*Ee(- --t)*Math.sin((r-t)/n)}return i.amplitude=function(e){return t(e,n*Je)},i.period=function(n){return t(e,n)},i}(tn,en),rn=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Je);function i(t){return 1-e*Ee(t=+t)*Math.sin((t+r)/n)}return i.amplitude=function(e){return t(e,n*Je)},i.period=function(n){return t(e,n)},i}(tn,en),on=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Je);function i(t){return((t=2*t-1)<0?e*Ee(-t)*Math.sin((r-t)/n):2-e*Ee(t)*Math.sin((r+t)/n))/2}return i.amplitude=function(e){return t(e,n*Je)},i.period=function(n){return t(e,n)},i}(tn,en),an=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function sn(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function un(){}var cn=.7,fn=1/cn,ln="\\s*([+-]?\\d+)\\s*",hn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",dn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",pn=/^#([0-9a-f]{3,8})$/,gn=new RegExp("^rgb\\("+[ln,ln,ln]+"\\)$"),vn=new RegExp("^rgb\\("+[dn,dn,dn]+"\\)$"),yn=new RegExp("^rgba\\("+[ln,ln,ln,hn]+"\\)$"),mn=new RegExp("^rgba\\("+[dn,dn,dn,hn]+"\\)$"),bn=new RegExp("^hsl\\("+[hn,dn,dn]+"\\)$"),xn=new RegExp("^hsla\\("+[hn,dn,dn,hn]+"\\)$"),wn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Mn(){return this.rgb().formatHex()}function _n(){return Nn(this).formatHsl()}function Sn(){return this.rgb().formatRgb()}function Pn(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=pn.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?kn(e):3===n?new An(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Cn(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Cn(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=gn.exec(t))?new An(e[1],e[2],e[3],1):(e=vn.exec(t))?new An(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=yn.exec(t))?Cn(e[1],e[2],e[3],e[4]):(e=mn.exec(t))?Cn(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=bn.exec(t))?Bn(e[1],e[2]/100,e[3]/100,1):(e=xn.exec(t))?Bn(e[1],e[2]/100,e[3]/100,e[4]):wn.hasOwnProperty(t)?kn(wn[t]):"transparent"===t?new An(NaN,NaN,NaN,0):null}function kn(t){return new An(t>>16&255,t>>8&255,255&t,1)}function Cn(t,e,n,r){return r<=0&&(t=e=n=NaN),new An(t,e,n,r)}function On(t){return t instanceof un||(t=Pn(t)),t?(t=t.rgb(),new An(t.r,t.g,t.b,t.opacity)):new An}function En(t,e,n,r){return 1===arguments.length?On(t):new An(t,e,n,null==r?1:r)}function An(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function jn(){return"#"+Tn(this.r)+Tn(this.g)+Tn(this.b)}function In(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Tn(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function Bn(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Ln(t,e,n,r)}function Nn(t){if(t instanceof Ln)return new Ln(t.h,t.s,t.l,t.opacity);if(t instanceof un||(t=Pn(t)),!t)return new Ln;if(t instanceof Ln)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n<r):n===o?(r-e)/s+2:(e-n)/s+4,s/=u<.5?o+i:2-o-i,a*=60):s=u>0&&u<1?0:a,new Ln(a,s,u,t.opacity)}function Dn(t,e,n,r){return 1===arguments.length?Nn(t):new Ln(t,e,n,null==r?1:r)}function Ln(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Rn(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function zn(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}an(un,Pn,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Mn,formatHex:Mn,formatHsl:_n,formatRgb:Sn,toString:Sn}),an(An,En,sn(un,{brighter:function(t){return t=null==t?fn:Math.pow(fn,t),new An(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?cn:Math.pow(cn,t),new An(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:jn,formatHex:jn,formatRgb:In,toString:In})),an(Ln,Dn,sn(un,{brighter:function(t){return t=null==t?fn:Math.pow(fn,t),new Ln(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?cn:Math.pow(cn,t),new Ln(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new An(Rn(t>=240?t-240:t+120,i,r),Rn(t,i,r),Rn(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var Fn=function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=r<e-1?t[r+2]:2*o-i;return zn((n-r/e)*e,a,i,o,s)}},Gn=function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],a=t[(r+1)%e],s=t[(r+2)%e];return zn((n-r/e)*e,i,o,a,s)}},Yn=function(t){return function(){return t}};function Xn(t,e){return function(n){return t+n*e}}function Vn(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function qn(t){return 1===(t=+t)?Un:function(e,n){return n-e?Vn(e,n,t):Yn(isNaN(e)?n:e)}}function Un(t,e){var n=e-t;return n?Xn(t,n):Yn(isNaN(t)?e:t)}var Wn=function t(e){var n=qn(e);function r(t,e){var r=n((t=En(t)).r,(e=En(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=Un(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function Hn(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=En(e[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=t(o),a=t(a),s=t(s),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=s(t),r+""}}}Hn(Fn),Hn(Gn);var Zn=function(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}};function $n(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}var Qn=function(t,e){return($n(e)?Zn:Kn)(t,e)};function Kn(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=sr(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}}var Jn=function(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}},tr=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}},er=function(t,e){var n,r={},i={};for(n in null!==t&&"object"===typeof t||(t={}),null!==e&&"object"===typeof e||(e={}),e)n in t?r[n]=sr(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}},nr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,rr=new RegExp(nr.source,"g");function ir(t){return function(){return t}}function or(t){return function(e){return t(e)+""}}var ar=function(t,e){var n,r,i,o=nr.lastIndex=rr.lastIndex=0,a=-1,s=[],u=[];t+="",e+="";while((n=nr.exec(t))&&(r=rr.exec(e)))(i=r.index)>o&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:tr(n,r)})),o=rr.lastIndex;return o<e.length&&(i=e.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?u[0]?or(u[0].x):ir(e):(e=u.length,function(t){for(var n,r=0;r<e;++r)s[(n=u[r]).i]=n.x(t);return s.join("")})},sr=function(t,e){var n,r=typeof e;return null==e||"boolean"===r?Yn(e):("number"===r?tr:"string"===r?(n=Pn(e))?(e=n,Wn):ar:e instanceof Pn?Wn:e instanceof Date?Jn:$n(e)?Zn:Array.isArray(e)?Kn:"function"!==typeof e.valueOf&&"function"!==typeof e.toString||isNaN(e)?er:tr)(t,e)},ur=function(t){return["fill","stroke","fillStyle","strokeStyle"].includes(t)},cr=function(t){return/^[r,R,L,l]{1}[\s]*\(/.test(t)},fr=[1,0,0,0,1,0,0,0,1];function lr(t,e,n){var r={},i=e.fromAttrs,o=e.toAttrs;if(!t.destroyed){var s;for(var u in o)if(!Object(a["isEqual"])(i[u],o[u]))if("path"===u){var c=o[u],l=i[u];c.length>l.length?(c=f(o[u]),l=f(i[u]),l=F(l,c),l=X(l,c),e.fromAttrs.path=l,e.toAttrs.path=c):e.pathFormatted||(c=f(o[u]),l=f(i[u]),l=X(l,c),e.fromAttrs.path=l,e.toAttrs.path=c,e.pathFormatted=!0),r[u]=[];for(var h=0;h<c.length;h++){for(var d=c[h],p=l[h],g=[],v=0;v<d.length;v++)Object(a["isNumber"])(d[v])&&p&&Object(a["isNumber"])(p[v])?(s=sr(p[v],d[v]),g.push(s(n))):g.push(d[v]);r[u].push(g)}}else if("matrix"===u){var y=Qn(i[u]||fr,o[u]||fr),m=y(n);r[u]=m}else ur(u)&&cr(o[u])?r[u]=o[u]:Object(a["isFunction"])(o[u])||(s=sr(i[u],o[u]),r[u]=s(n));t.attr(r)}}function hr(t,e,n){var r,i=e.startTime,a=e.delay;if(n<i+a||e._paused)return!1;var s=e.duration,u=e.easing;if(n=n-i-e.delay,e.repeat)r=n%s/s,r=o[u](r);else{if(r=n/s,!(r<1))return e.onFrame?t.attr(e.onFrame(1)):t.attr(e.toAttrs),!0;r=o[u](r)}if(e.onFrame){var c=e.onFrame(r);t.attr(c)}else lr(t,e,r);return!1}var dr=function(){function t(t){this.animators=[],this.current=0,this.timer=null,this.canvas=t}return t.prototype.initTimer=function(){var t,e,n,r=this,i=!1;this.timer=se((function(o){if(r.current=o,r.animators.length>0){for(var a=r.animators.length-1;a>=0;a--)if(t=r.animators[a],t.destroyed)r.removeAnimator(a);else{if(!t.isAnimatePaused()){e=t.get("animations");for(var s=e.length-1;s>=0;s--)n=e[s],i=hr(t,n,o),i&&(e.splice(s,1),i=!1,n.callback&&n.callback())}0===e.length&&r.removeAnimator(a)}var u=r.canvas.get("autoDraw");u||r.canvas.draw()}}))},t.prototype.addAnimator=function(t){this.animators.push(t)},t.prototype.removeAnimator=function(t){this.animators.splice(t,1)},t.prototype.isAnimating=function(){return!!this.animators.length},t.prototype.stop=function(){this.timer&&this.timer.stop()},t.prototype.stopAllAnimations=function(t){void 0===t&&(t=!0),this.animators.forEach((function(e){e.stopAnimate(t)})),this.animators=[],this.canvas.draw()},t.prototype.getTime=function(){return this.current},t}(),pr=dr,gr=40,vr=0,yr=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function mr(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function br(t,e,n){if(n.bubbles){var r=void 0,i=!1;if("mouseenter"===e?(r=n.fromShape,i=!0):"mouseleave"===e&&(i=!0,r=n.toShape),t.isCanvas()&&i)return;if(r&&ft(t,r))return void(n.bubbles=!1);n.name=e,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}}var xr=function(){function t(t){var e=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(t){var n=t.type;e._triggerEvent(n,t)},this._onDocumentMove=function(t){var n=e.canvas,r=n.get("el");if(r!==t.target&&(e.dragging||e.currentShape)){var i=e._getPointInfo(t);e.dragging&&e._emitEvent("drag",t,i,e.draggingShape)}},this._onDocumentMouseUp=function(t){var n=e.canvas,r=n.get("el");if(r!==t.target&&e.dragging){var i=e._getPointInfo(t);e.draggingShape&&e._emitEvent("drop",t,i,null),e._emitEvent("dragend",t,i,e.draggingShape),e._afterDrag(e.draggingShape,i,t)}},this.canvas=t.canvas}return t.prototype.init=function(){this._bindEvents()},t.prototype._bindEvents=function(){var t=this,e=this.canvas.get("el");ot()(yr,(function(n){e.addEventListener(n,t._eventCallback)})),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._clearEvents=function(){var t=this,e=this.canvas.get("el");ot()(yr,(function(n){e.removeEventListener(n,t._eventCallback)})),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._getEventObj=function(t,e,n,r,i,o){var a=new q(t,e);return a.fromShape=i,a.toShape=o,a.x=n.x,a.y=n.y,a.clientX=n.clientX,a.clientY=n.clientY,a.propagationPath.push(r),a},t.prototype._getShape=function(t,e){return this.canvas.getShape(t.x,t.y,e)},t.prototype._getPointInfo=function(t){var e=this.canvas,n=e.getClientByEvent(t),r=e.getPointByEvent(t);return{x:r.x,y:r.y,clientX:n.x,clientY:n.y}},t.prototype._triggerEvent=function(t,e){var n=this._getPointInfo(e),r=this._getShape(n,e),i=this["_on"+t],o=!1;if(i)i.call(this,n,r,e);else{var a=this.currentShape;"mouseenter"===t||"dragenter"===t||"mouseover"===t?(this._emitEvent(t,e,n,null,null,r),r&&this._emitEvent(t,e,n,r,null,r),"mouseenter"===t&&this.draggingShape&&this._emitEvent("dragenter",e,n,null)):"mouseleave"===t||"dragleave"===t||"mouseout"===t?(o=!0,a&&this._emitEvent(t,e,n,a,a,null),this._emitEvent(t,e,n,null,a,null),"mouseleave"===t&&this.draggingShape&&this._emitEvent("dragleave",e,n,null)):this._emitEvent(t,e,n,r,null,null)}if(o||(this.currentShape=r),r&&!r.get("destroyed")){var s=this.canvas,u=s.get("el");u.style.cursor=r.attr("cursor")||s.get("cursor")}},t.prototype._onmousedown=function(t,e,n){n.button===vr&&(this.mousedownShape=e,this.mousedownPoint=t,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,t,e,null,null)},t.prototype._emitMouseoverEvents=function(t,e,n,r){var i=this.canvas.get("el");n!==r&&(n&&(this._emitEvent("mouseout",t,e,n,n,r),this._emitEvent("mouseleave",t,e,n,n,r),r&&!r.get("destroyed")||(i.style.cursor=this.canvas.get("cursor"))),r&&(this._emitEvent("mouseover",t,e,r,n,r),this._emitEvent("mouseenter",t,e,r,n,r)))},t.prototype._emitDragoverEvents=function(t,e,n,r,i){r?(r!==n&&(n&&this._emitEvent("dragleave",t,e,n,n,r),this._emitEvent("dragenter",t,e,r,n,r)),i||this._emitEvent("dragover",t,e,r)):n&&this._emitEvent("dragleave",t,e,n,n,r),i&&this._emitEvent("dragover",t,e,r)},t.prototype._afterDrag=function(t,e,n){t&&(t.set("capture",!0),this.draggingShape=null),this.dragging=!1;var r=this._getShape(e,n);r!==t&&this._emitMouseoverEvents(n,e,t,r),this.currentShape=r},t.prototype._onmouseup=function(t,e,n){if(n.button===vr){var r=this.draggingShape;this.dragging?(r&&this._emitEvent("drop",n,t,e),this._emitEvent("dragend",n,t,r),this._afterDrag(r,t,n)):(this._emitEvent("mouseup",n,t,e),e===this.mousedownShape&&this._emitEvent("click",n,t,e),this.mousedownShape=null,this.mousedownPoint=null)}},t.prototype._ondragover=function(t,e,n){n.preventDefault();var r=this.currentShape;this._emitDragoverEvents(n,t,r,e,!0)},t.prototype._onmousemove=function(t,e,n){var r=this.canvas,i=this.currentShape,o=this.draggingShape;if(this.dragging)o&&this._emitDragoverEvents(n,t,i,e,!1),this._emitEvent("drag",n,t,o);else{var a=this.mousedownPoint;if(a){var s=this.mousedownShape,u=n.timeStamp,c=u-this.mousedownTimeStamp,f=a.clientX-t.clientX,l=a.clientY-t.clientY,h=f*f+l*l;c>120||h>gr?s&&s.get("draggable")?(o=this.mousedownShape,o.set("capture",!1),this.draggingShape=o,this.dragging=!0,this._emitEvent("dragstart",n,t,o),this.mousedownShape=null,this.mousedownPoint=null):!s&&r.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e))}else this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)}},t.prototype._emitEvent=function(t,e,n,r,i,o){var a=this._getEventObj(t,e,n,r,i,o);if(r){a.shape=r,mr(r,t,a);var s=r.getParent();while(s)s.emitDelegation(t,a),a.propagationStopped||br(s,t,a),a.propagationPath.push(s),s=s.getParent()}else{var u=this.canvas;mr(u,t,a)}},t.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},t}(),wr=xr,Mr="px",_r=Object(pt["a"])(),Sr=_r&&"firefox"===_r.name,Pr=function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return Object(U["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e["cursor"]="default",e["supportCSSTransform"]=!1,e},e.prototype.initContainer=function(){var t=this.get("container");J()(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t);var e=this.get("container");e.appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new wr({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new pr(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");ct&&(n.style.width=t+Mr,n.style.height=e+Mr)},e.prototype.changeSize=function(t,e){this.setDOMSize(t,e),this.set("width",t),this.set("height",e),this.onCanvasChange("changeSize")},e.prototype.getRenderer=function(){return this.get("renderer")},e.prototype.getCursor=function(){return this.get("cursor")},e.prototype.setCursor=function(t){this.set("cursor",t);var e=this.get("el");ct&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){var e=this.get("supportCSSTransform");if(e){if(Sr&&!Z()(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!Z()(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var n=this.getClientByEvent(t),r=n.x,i=n.y;return this.getPointByClient(r,i)},e.prototype.getClientByEvent=function(t){var e=t;return t.touches&&(e="touchend"===t.type?t.changedTouches[0]:t.touches[0]),{x:e.clientX,y:e.clientY}},e.prototype.getPointByClient=function(t,e){var n=this.get("el"),r=n.getBoundingClientRect();return{x:t-r.left,y:e-r.top}},e.prototype.getClientByPoint=function(t,e){var n=this.get("el"),r=n.getBoundingClientRect();return{x:t+r.left,y:e+r.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){var t=this.get("eventController");t.destroy()},e.prototype.isCanvas=function(){return!0},e.prototype.getParent=function(){return null},e.prototype.destroy=function(){var e=this.get("timeline");this.get("destroyed")||(this.clear(),e&&e.stop(),this.clearEvents(),this.removeDom(),t.prototype.destroy.call(this))},e}(Ht),kr=Pr,Cr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(U["__extends"])(e,t),e.prototype.isGroup=function(){return!0},e.prototype.isEntityGroup=function(){return!1},e.prototype.clone=function(){for(var e=t.prototype.clone.call(this),n=this.getChildren(),r=0;r<n.length;r++){var i=n[r];e.add(i.clone())}return e},e}(Ht),Or=Cr,Er=function(t){function e(e){return t.call(this,e)||this}return Object(U["__extends"])(e,t),e.prototype._isInBBox=function(t,e){var n=this.getBBox();return n.minX<=t&&n.maxX>=t&&n.minY<=e&&n.maxY>=e},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e),this.clearCacheBBox()},e.prototype.getBBox=function(){var t=this.get("bbox");return t||(t=this.calculateBBox(),this.set("bbox",t)),t},e.prototype.getCanvasBBox=function(){var t=this.get("canvasBox");return t||(t=this.calculateCanvasBBox(),this.set("canvasBox",t)),t},e.prototype.applyMatrix=function(e){t.prototype.applyMatrix.call(this,e),this.set("canvasBox",null)},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),e=this.getTotalMatrix(),n=t.minX,r=t.minY,i=t.maxX,o=t.maxY;if(e){var a=Pt(e,[t.minX,t.minY]),s=Pt(e,[t.maxX,t.minY]),u=Pt(e,[t.minX,t.maxY]),c=Pt(e,[t.maxX,t.maxY]);n=Math.min(a[0],s[0],u[0],c[0]),i=Math.max(a[0],s[0],u[0],c[0]),r=Math.min(a[1],s[1],u[1],c[1]),o=Math.max(a[1],s[1],u[1],c[1])}var f=this.attrs;if(f.shadowColor){var l=f.shadowBlur,h=void 0===l?0:l,d=f.shadowOffsetX,p=void 0===d?0:d,g=f.shadowOffsetY,v=void 0===g?0:g,y=n-h+p,m=i+h+p,b=r-h+v,x=o+h+v;n=Math.min(n,y),i=Math.max(i,m),r=Math.min(r,b),o=Math.max(o,x)}return{x:n,y:r,minX:n,minY:r,maxX:i,maxY:o,width:i-n,height:o-r}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBox",null)},e.prototype.isClipShape=function(){return this.get("isClipShape")},e.prototype.isInShape=function(t,e){return!1},e.prototype.isOnlyHitBox=function(){return!1},e.prototype.isHit=function(t,e){var n=this.get("startArrowShape"),r=this.get("endArrowShape"),i=[t,e,1];i=this.invertFromMatrix(i);var o=i[0],a=i[1],s=this._isInBBox(o,a);if(this.isOnlyHitBox())return s;if(s&&!this.isClipped(o,a)){if(this.isInShape(o,a))return!0;if(n&&n.isHit(o,a))return!0;if(r&&r.isHit(o,a))return!0}return!1},e}(Lt),Ar=Er,jr=n("2a37"),Ir=jr.version},6891:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("8937"),i=n("93f6"),o=n("6ba5"),a=n("602a"),s=n("7174"),u=n("e9dd"),c=n("487c"),f=function(){function t(t){var e=c.createSVGElement("defs"),n=r.uniqueId("defs_");e.id=n,t.appendChild(e),this.children=[],this.defaultArrow={},this.el=e,this.canvas=t}return t.prototype.find=function(t,e){for(var n=this.children,r=null,i=0;i<n.length;i++)if(n[i].match(t,e)){r=n[i].id;break}return r},t.prototype.findById=function(t){for(var e=this.children,n=null,r=0;r<e.length;r++)if(e[r].id===t){n=e[r];break}return n},t.prototype.add=function(t){this.children.push(t),t.canvas=this.canvas,t.parent=this},t.prototype.getDefaultArrow=function(t,e){var n=t.stroke||t.strokeStyle;if(this.defaultArrow[n])return this.defaultArrow[n].id;var r=new a.default(t,e);return this.defaultArrow[n]=r,this.el.appendChild(r.el),this.add(r),r.id},t.prototype.addGradient=function(t){var e=new i.default(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addArrow=function(t,e){var n=new a.default(t,e);return this.el.appendChild(n.el),this.add(n),n.id},t.prototype.addShadow=function(t){var e=new o.default(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addPattern=function(t){var e=new u.default(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addClip=function(t){var e=new s.default(t);return this.el.appendChild(e.el),this.add(e),e.id},t}();e.default=f},"69d5":function(t,e,n){var r=n("cb5a"),i=Array.prototype,o=i.splice;function a(t){var e=this.__data__,n=r(e,t);if(n<0)return!1;var i=e.length-1;return n==i?e.pop():o.call(e,n,1),--this.size,!0}t.exports=a},"6a23":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.shapeBase=e.CLS_LABEL_BG_SUFFIX=void 0;var r=n("9ab4"),i=s(n("067f")),o=n("e897"),a=n("8937");function s(t){return t&&t.__esModule?t:{default:t}}var u="-shape",c="-label",f="-label-bg";e.CLS_LABEL_BG_SUFFIX=f;var l={options:{},itemType:"",type:"",draw:function(t,e){var n=this.drawShape(t,e);if(n.set("className",this.itemType+u),t.label){var r=this.drawLabel(t,e);r.set("className",this.itemType+c)}return n},afterDraw:function(t,e,n){},drawShape:function(t,e){return null},drawLabel:function(t,e){var n=this.options.labelCfg,r=(0,a.mix)({},n,t.labelCfg),i=this.getLabelStyle(t,r,e),s=i.rotate;delete i.rotate;var u=e.addShape("text",{attrs:i,draggable:!0,className:"text-shape",name:"text-shape"});if(s){var c=u.getBBox(),l=u.getMatrix();if(l||(l=o.mat3.create()),i.rotateCenter)switch(i.rotateCenter){case"center":l=(0,o.transform)(l,[["t",-c.width/2,-c.height/2],["r",s],["t",c.width/2,c.height/2]]);break;case"lefttop":l=(0,o.transform)(l,[["t",-i.x,-i.y],["r",s],["t",i.x,i.y]]);break;case"leftcenter":l=(0,o.transform)(l,[["t",-i.x,-i.y-c.height/2],["r",s],["t",i.x,i.y+c.height/2]]);break;default:l=(0,o.transform)(l,[["t",-c.width/2,-c.height/2],["r",s],["t",c.width/2,c.height/2]]);break}else l=(0,o.transform)(l,[["t",-i.x,-i.y-c.height/2],["r",s],["t",i.x,i.y+c.height/2]]);u.setMatrix(l)}if(i.background){var h=this.drawLabelBg(t,e,u),d=this.itemType+f;h.set("classname",d),u.toFront()}return u},drawLabelBg:function(t,e,n){var r=this.options.labelCfg,i=(0,a.mix)({},r,t.labelCfg),o=this.getLabelBgStyleByPosition(n,t,i,e),s=e.addShape("rect",{name:"text-bg-shape",attrs:o});return s},getLabelStyleByPosition:function(t,e,n){return{text:t.label}},getLabelBgStyleByPosition:function(t,e,n,r){return{}},getLabelStyle:function(t,e,n){var r=this.getLabelStyleByPosition(t,e,n),o=this.itemType+"Label",a=i.default[o]?i.default[o].style:null,s=Object.assign({},a,r,e.style);return s},getShapeStyle:function(t){return t.style},update:function(t,e){this.updateShapeStyle(t,e),this.updateLabel(t,e)},updateShapeStyle:function(t,e){var n=e.getContainer(),r=e.getKeyShape(),i=(0,a.mix)({},r.attr(),t.style),o=function(t){var e,o=i[t];if((0,a.isPlainObject)(o)){var s=n.find((function(e){return e.get("name")===t}));s&&s.attr(o)}else r.attr((e={},e[t]=o,e))};for(var s in i)o(s)},updateLabel:function(t,e){var n=e.getContainer(),i=this.options.labelCfg,s=this.itemType+c,u=n.find((function(t){return t.get("className")===s})),l=this.itemType+f,h=n.find((function(t){return t.get("classname")===l}));if(t.label||""===t.label)if(u){var d={};e.getModel&&(d=e.getModel().labelCfg);var p=(0,a.deepMix)({},i,d,t.labelCfg),g=this.getLabelStyleByPosition(t,p,n),v=t.labelCfg?t.labelCfg.style:void 0,y=p.style&&p.style.background,m=Object.assign({},u.attr(),g,v),b=m.rotate;if(delete m.rotate,b){var x=o.mat3.create();x=(0,o.transform)(x,[["t",-m.x,-m.y],["r",b],["t",m.x,m.y]]),u.resetMatrix(),u.attr((0,r.__assign)((0,r.__assign)({},m),{matrix:x}))}else u.resetMatrix(),u.attr(m);if(h)if(m.background){var w=this.getLabelBgStyleByPosition(u,t,p,n),M=Object.assign({},w,y);h.resetMatrix(),b&&h.rotateAtStart(b),h.attr(M)}else n.removeChild(h);else m.background&&(h=this.drawLabelBg(t,n,u),h.set("classname",l),u.toFront())}else{var _=this.drawLabel(t,n);_.set("className",s)}},afterUpdate:function(t,e){},setState:function(t,e,n){var r,i,o=n.get("keyShape");if(o){var s=n.getType(),u=(0,a.isBoolean)(e)?t:t+":"+e,c=this.getStateStyle(u,!0,n),f=n.getStateStyle(u),l=(0,a.mix)({},f||c),h=n.getContainer();if(e){var d=function(t){var e,n=l[t];if((0,a.isPlainObject)(n)){var r=h.find((function(e){return e.get("name")===t}));r&&r.attr(n)}else o.attr((e={},e[t]=n,e))};for(var p in l)d(p)}else{var g=(0,a.clone)(n.getCurrentStatesStyle()),v=(0,a.clone)(n.getOriginStyle()),y=o.get("name"),m=o.attr(),b={},x=function(t){var e=l[t];if((0,a.isPlainObject)(e)){var n=h.find((function(e){return e.get("name")===t}));if(n){var r=n.attr();(0,a.each)(e,(function(t,e){r[e]&&delete r[e]})),b[t]=r}}else{var i=["x","y","cx","cy"];!m[t]||i.indexOf(t)>-1||delete m[t]}};for(var w in l)x(w);for(var p in y?b[y]=m:(0,a.mix)(b,m),g){var M=g[p];(0,a.isPlainObject)(M)||(y?(0,a.mix)(v[y],(i={},i[p]=M,i)):(0,a.mix)(v,(r={},r[p]=M,r)),delete g[p])}var _={};(0,a.deepMix)(_,v,b,g);var S=function(t){var e,n,r=_[t];if((0,a.isPlainObject)(r)){var i=h.find((function(e){return e.get("name")===t}));i&&i.attr(r)}else"combo"===s?y||o.attr((e={},e[t]=r,e)):o.attr((n={},n[t]=r,n))};for(var P in _)S(P)}}},getStateStyle:function(t,e,n){var r=n.getModel();if(e){var i=r.stateStyles?r.stateStyles[t]:this.options.stateStyles&&this.options.stateStyles[t];return(0,a.mix)({},r.style,i)}return{}},getControlPoints:function(t){return t.controlPoints},getAnchorPoints:function(t){var e=this.options.anchorPoints,n=t.anchorPoints||e;return n}};e.shapeBase=l},"6a5c":function(t,e,n){var r=n("7948"),i=n("656b"),o=n("badf"),a=n("97d3"),s=n("d4b2"),u=n("b047"),c=n("2164"),f=n("cd9d"),l=n("6747");function h(t,e,n){e=e.length?r(e,(function(t){return l(t)?function(e){return i(e,1===t.length?t[0]:t)}:t})):[f];var h=-1;e=r(e,u(o));var d=a(t,(function(t,n,i){var o=r(e,(function(e){return e(t)}));return{criteria:o,index:++h,value:t}}));return s(d,(function(t,e){return c(t,e,n)}))}t.exports=h},"6aa2":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("01f9"),i=n("2047");e.default=function(t,e){if(r.default(t)){for(var n,o=1/0,a=0;a<t.length;a++){var s=t[a],u=i.default(e)?e(s):s[e];u<o&&(n=s,o=u)}return n}}},"6ac0":function(t,e){function n(t,e,n,r){var i=-1,o=null==t?0:t.length;r&&o&&(n=t[++i]);while(++i<o)n=e(n,t[i],i,t);return n}t.exports=n},"6ad5":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("739e"),i=function(t){return r.default(t).toUpperCase()};e.default=i},"6b6a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("e275");Object.defineProperty(e,"contains",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"includes",{enumerable:!0,get:function(){return r.default}});var i=n("8783");Object.defineProperty(e,"difference",{enumerable:!0,get:function(){return i.default}});var o=n("6704");Object.defineProperty(e,"find",{enumerable:!0,get:function(){return o.default}});var a=n("a446");Object.defineProperty(e,"findIndex",{enumerable:!0,get:function(){return a.default}});var s=n("9e39");Object.defineProperty(e,"firstValue",{enumerable:!0,get:function(){return s.default}});var u=n("7315");Object.defineProperty(e,"flatten",{enumerable:!0,get:function(){return u.default}});var c=n("fa89");Object.defineProperty(e,"flattenDeep",{enumerable:!0,get:function(){return c.default}});var f=n("22b0");Object.defineProperty(e,"getRange",{enumerable:!0,get:function(){return f.default}});var l=n("fb98");Object.defineProperty(e,"pull",{enumerable:!0,get:function(){return l.default}});var h=n("5c32");Object.defineProperty(e,"pullAt",{enumerable:!0,get:function(){return h.default}});var d=n("2bdc");Object.defineProperty(e,"reduce",{enumerable:!0,get:function(){return d.default}});var p=n("26e6");Object.defineProperty(e,"remove",{enumerable:!0,get:function(){return p.default}});var g=n("fb40");Object.defineProperty(e,"sortBy",{enumerable:!0,get:function(){return g.default}});var v=n("1f53");Object.defineProperty(e,"union",{enumerable:!0,get:function(){return v.default}});var y=n("5ac6");Object.defineProperty(e,"uniq",{enumerable:!0,get:function(){return y.default}});var m=n("3a44");Object.defineProperty(e,"valuesOfKey",{enumerable:!0,get:function(){return m.default}});var b=n("625f");Object.defineProperty(e,"head",{enumerable:!0,get:function(){return b.default}});var x=n("fed9");Object.defineProperty(e,"last",{enumerable:!0,get:function(){return x.default}});var w=n("8e80");Object.defineProperty(e,"startsWith",{enumerable:!0,get:function(){return w.default}});var M=n("1e85");Object.defineProperty(e,"endsWith",{enumerable:!0,get:function(){return M.default}});var _=n("e32d");Object.defineProperty(e,"filter",{enumerable:!0,get:function(){return _.default}});var S=n("4eec");Object.defineProperty(e,"every",{enumerable:!0,get:function(){return S.default}});var P=n("b3b0");Object.defineProperty(e,"some",{enumerable:!0,get:function(){return P.default}});var k=n("969b");Object.defineProperty(e,"group",{enumerable:!0,get:function(){return k.default}});var C=n("07ea");Object.defineProperty(e,"groupBy",{enumerable:!0,get:function(){return C.default}});var O=n("38f9");Object.defineProperty(e,"groupToMap",{enumerable:!0,get:function(){return O.default}});var E=n("4eab");Object.defineProperty(e,"getWrapBehavior",{enumerable:!0,get:function(){return E.default}});var A=n("eafe");Object.defineProperty(e,"wrapBehavior",{enumerable:!0,get:function(){return A.default}});var j=n("33d2");Object.defineProperty(e,"number2color",{enumerable:!0,get:function(){return j.default}});var I=n("a0a3");Object.defineProperty(e,"parseRadius",{enumerable:!0,get:function(){return I.default}});var T=n("f9d8");Object.defineProperty(e,"clamp",{enumerable:!0,get:function(){return T.default}});var B=n("36c6");Object.defineProperty(e,"fixedBase",{enumerable:!0,get:function(){return B.default}});var N=n("a645");Object.defineProperty(e,"isDecimal",{enumerable:!0,get:function(){return N.default}});var D=n("51a8");Object.defineProperty(e,"isEven",{enumerable:!0,get:function(){return D.default}});var L=n("7db1");Object.defineProperty(e,"isInteger",{enumerable:!0,get:function(){return L.default}});var R=n("8d2b");Object.defineProperty(e,"isNegative",{enumerable:!0,get:function(){return R.default}});var z=n("29f4");Object.defineProperty(e,"isNumberEqual",{enumerable:!0,get:function(){return z.default}});var F=n("08e0");Object.defineProperty(e,"isOdd",{enumerable:!0,get:function(){return F.default}});var G=n("1ba9");Object.defineProperty(e,"isPositive",{enumerable:!0,get:function(){return G.default}});var Y=n("dad5");Object.defineProperty(e,"max",{enumerable:!0,get:function(){return Y.default}});var X=n("9d50");Object.defineProperty(e,"maxBy",{enumerable:!0,get:function(){return X.default}});var V=n("4071");Object.defineProperty(e,"min",{enumerable:!0,get:function(){return V.default}});var q=n("6aa2");Object.defineProperty(e,"minBy",{enumerable:!0,get:function(){return q.default}});var U=n("df01");Object.defineProperty(e,"mod",{enumerable:!0,get:function(){return U.default}});var W=n("3eaf");Object.defineProperty(e,"toDegree",{enumerable:!0,get:function(){return W.default}});var H=n("3002");Object.defineProperty(e,"toInteger",{enumerable:!0,get:function(){return H.default}});var Z=n("3753");Object.defineProperty(e,"toRadian",{enumerable:!0,get:function(){return Z.default}});var $=n("e1b1");Object.defineProperty(e,"forIn",{enumerable:!0,get:function(){return $.default}});var Q=n("396b");Object.defineProperty(e,"has",{enumerable:!0,get:function(){return Q.default}});var K=n("289f");Object.defineProperty(e,"hasKey",{enumerable:!0,get:function(){return K.default}});var J=n("230b");Object.defineProperty(e,"hasValue",{enumerable:!0,get:function(){return J.default}});var tt=n("0da4");Object.defineProperty(e,"keys",{enumerable:!0,get:function(){return tt.default}});var et=n("85e0");Object.defineProperty(e,"isMatch",{enumerable:!0,get:function(){return et.default}});var nt=n("0125");Object.defineProperty(e,"values",{enumerable:!0,get:function(){return nt.default}});var rt=n("9d9f");Object.defineProperty(e,"lowerCase",{enumerable:!0,get:function(){return rt.default}});var it=n("5cd2");Object.defineProperty(e,"lowerFirst",{enumerable:!0,get:function(){return it.default}});var ot=n("286b");Object.defineProperty(e,"substitute",{enumerable:!0,get:function(){return ot.default}});var at=n("6ad5");Object.defineProperty(e,"upperCase",{enumerable:!0,get:function(){return at.default}});var st=n("3c5c");Object.defineProperty(e,"upperFirst",{enumerable:!0,get:function(){return st.default}});var ut=n("bec1");Object.defineProperty(e,"getType",{enumerable:!0,get:function(){return ut.default}});var ct=n("e239");Object.defineProperty(e,"isArguments",{enumerable:!0,get:function(){return ct.default}});var ft=n("01f9");Object.defineProperty(e,"isArray",{enumerable:!0,get:function(){return ft.default}});var lt=n("5b8d");Object.defineProperty(e,"isArrayLike",{enumerable:!0,get:function(){return lt.default}});var ht=n("34dd");Object.defineProperty(e,"isBoolean",{enumerable:!0,get:function(){return ht.default}});var dt=n("2288");Object.defineProperty(e,"isDate",{enumerable:!0,get:function(){return dt.default}});var pt=n("59d5");Object.defineProperty(e,"isError",{enumerable:!0,get:function(){return pt.default}});var gt=n("2047");Object.defineProperty(e,"isFunction",{enumerable:!0,get:function(){return gt.default}});var vt=n("ea58");Object.defineProperty(e,"isFinite",{enumerable:!0,get:function(){return vt.default}});var yt=n("28f9");Object.defineProperty(e,"isNil",{enumerable:!0,get:function(){return yt.default}});var mt=n("7338");Object.defineProperty(e,"isNull",{enumerable:!0,get:function(){return mt.default}});var bt=n("842b");Object.defineProperty(e,"isNumber",{enumerable:!0,get:function(){return bt.default}});var xt=n("9ab4f");Object.defineProperty(e,"isObject",{enumerable:!0,get:function(){return xt.default}});var wt=n("06ef");Object.defineProperty(e,"isObjectLike",{enumerable:!0,get:function(){return wt.default}});var Mt=n("cdca");Object.defineProperty(e,"isPlainObject",{enumerable:!0,get:function(){return Mt.default}});var _t=n("a08e");Object.defineProperty(e,"isPrototype",{enumerable:!0,get:function(){return _t.default}});var St=n("c924");Object.defineProperty(e,"isRegExp",{enumerable:!0,get:function(){return St.default}});var Pt=n("61d8");Object.defineProperty(e,"isString",{enumerable:!0,get:function(){return Pt.default}});var kt=n("bd8b");Object.defineProperty(e,"isType",{enumerable:!0,get:function(){return kt.default}});var Ct=n("d4fa");Object.defineProperty(e,"isUndefined",{enumerable:!0,get:function(){return Ct.default}});var Ot=n("ce79");Object.defineProperty(e,"isElement",{enumerable:!0,get:function(){return Ot.default}});var Et=n("f105");Object.defineProperty(e,"requestAnimationFrame",{enumerable:!0,get:function(){return Et.default}});var At=n("83be");Object.defineProperty(e,"clearAnimationFrame",{enumerable:!0,get:function(){return At.default}});var jt=n("8d88");Object.defineProperty(e,"augment",{enumerable:!0,get:function(){return jt.default}});var It=n("e0ef");Object.defineProperty(e,"clone",{enumerable:!0,get:function(){return It.default}});var Tt=n("6023");Object.defineProperty(e,"debounce",{enumerable:!0,get:function(){return Tt.default}});var Bt=n("434a");Object.defineProperty(e,"memoize",{enumerable:!0,get:function(){return Bt.default}});var Nt=n("1b95");Object.defineProperty(e,"deepMix",{enumerable:!0,get:function(){return Nt.default}});var Dt=n("72fb");Object.defineProperty(e,"each",{enumerable:!0,get:function(){return Dt.default}});var Lt=n("26bf");Object.defineProperty(e,"extend",{enumerable:!0,get:function(){return Lt.default}});var Rt=n("a233");Object.defineProperty(e,"indexOf",{enumerable:!0,get:function(){return Rt.default}});var zt=n("e0bf");Object.defineProperty(e,"isEmpty",{enumerable:!0,get:function(){return zt.default}});var Ft=n("91de");Object.defineProperty(e,"isEqual",{enumerable:!0,get:function(){return Ft.default}});var Gt=n("ed27");Object.defineProperty(e,"isEqualWith",{enumerable:!0,get:function(){return Gt.default}});var Yt=n("3234");Object.defineProperty(e,"map",{enumerable:!0,get:function(){return Yt.default}});var Xt=n("cee5");Object.defineProperty(e,"mapValues",{enumerable:!0,get:function(){return Xt.default}});var Vt=n("503e");Object.defineProperty(e,"mix",{enumerable:!0,get:function(){return Vt.default}}),Object.defineProperty(e,"assign",{enumerable:!0,get:function(){return Vt.default}});var qt=n("c75c");Object.defineProperty(e,"get",{enumerable:!0,get:function(){return qt.default}});var Ut=n("c0be");Object.defineProperty(e,"set",{enumerable:!0,get:function(){return Ut.default}});var Wt=n("a5d2");Object.defineProperty(e,"pick",{enumerable:!0,get:function(){return Wt.default}});var Ht=n("d8bc");Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return Ht.default}});var Zt=n("da0a");Object.defineProperty(e,"throttle",{enumerable:!0,get:function(){return Zt.default}});var $t=n("61e7");Object.defineProperty(e,"toArray",{enumerable:!0,get:function(){return $t.default}});var Qt=n("739e");Object.defineProperty(e,"toString",{enumerable:!0,get:function(){return Qt.default}});var Kt=n("339d");Object.defineProperty(e,"uniqueId",{enumerable:!0,get:function(){return Kt.default}});var Jt=n("7753");Object.defineProperty(e,"noop",{enumerable:!0,get:function(){return Jt.default}});var te=n("d258");Object.defineProperty(e,"identity",{enumerable:!0,get:function(){return te.default}});var ee=n("5598");Object.defineProperty(e,"size",{enumerable:!0,get:function(){return ee.default}});var ne=n("eda4");Object.defineProperty(e,"measureTextWidth",{enumerable:!0,get:function(){return ne.default}});var re=n("d6f0");Object.defineProperty(e,"getEllipsisText",{enumerable:!0,get:function(){return re.default}});var ie=n("1b8a");Object.defineProperty(e,"Cache",{enumerable:!0,get:function(){return ie.default}})},"6ba5":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("8937"),i=n("487c"),o={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},a={x:"-40%",y:"-40%",width:"200%",height:"200%"},s=function(){function t(t){this.type="filter",this.cfg={},this.type="filter";var e=i.createSVGElement("filter");return r.each(a,(function(t,n){e.setAttribute(n,t)})),this.el=e,this.id=r.uniqueId("filter_"),this.el.id=this.id,this.cfg=t,this._parseShadow(t,e),this}return t.prototype.match=function(t,e){if(this.type!==t)return!1;var n=!0,i=this.cfg;return r.each(Object.keys(i),(function(t){if(i[t]!==e[t])return n=!1,!1})),n},t.prototype.update=function(t,e){var n=this.cfg;return n[o[t]]=e,this._parseShadow(n,this.el),this},t.prototype._parseShadow=function(t,e){var n='<feDropShadow\n dx="'+(t.dx||0)+'"\n dy="'+(t.dy||0)+'"\n stdDeviation="'+(t.blur?t.blur/10:0)+'"\n flood-color="'+(t.color?t.color:"#000")+'"\n flood-opacity="'+(t.opacity?t.opacity:1)+'"\n />';e.innerHTML=n},t}();e.default=s},"6cac":function(t,e,n){"use strict";function r(t){var e=t.attr(),n=e.x,r=e.y,i=e.r;return{x:n-i,y:r-i,width:2*i,height:2*i}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},"6cd4":function(t,e,n){var r=n("8057"),i=n("48a0"),o=n("1304"),a=n("6747");function s(t,e){var n=a(t)?r:i;return n(t,o(e))}t.exports=s},"6f6c":function(t,e){var n=/\w*$/;function r(t){var e=new t.constructor(t.source,n.exec(t));return e.lastIndex=t.lastIndex,e}t.exports=r},"6f9c":function(t,e,n){var r;try{r={cloneDeep:n("0644"),constant:n("72f0"),defaults:n("95ae"),each:n("c641"),filter:n("9380"),find:n("2769"),flatten:n("4d8c"),forEach:n("6cd4"),forIn:n("9948"),has:n("3852"),isUndefined:n("4cfe"),last:n("4416"),map:n("dd61"),mapValues:n("9e86"),max:n("abdd"),merge:n("42454"),min:n("004e"),minBy:n("80f6"),now:n("408c"),pick:n("2593"),range:n("5a3a"),reduce:n("c5a2"),sortBy:n("c707"),uniqueId:n("98dc"),values:n("3ff1"),zipObject:n("5492")}}catch(i){}r||(r=window._),t.exports=r},"6fcd":function(t,e,n){var r=n("50d8"),i=n("d370"),o=n("6747"),a=n("0d24"),s=n("c098"),u=n("73ac"),c=Object.prototype,f=c.hasOwnProperty;function l(t,e){var n=o(t),c=!n&&i(t),l=!n&&!c&&a(t),h=!n&&!c&&!l&&u(t),d=n||c||l||h,p=d?r(t.length,String):[],g=p.length;for(var v in t)!e&&!f.call(t,v)||d&&("length"==v||l&&("offset"==v||"parent"==v)||h&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,g))||p.push(v);return p}t.exports=l},"6fcf":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),i=n("8937"),o=n("4a35"),a=n("060b"),s=n("7a70"),u=n("d531"),c=.3,f={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},l={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},h={left:"left",start:"left",center:"middle",right:"end",end:"end"},d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="text",e.canFill=!0,e.canStroke=!0,e}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),o=this.get("el");this._setFont(),i.each(e||r,(function(t,e){"text"===e?n._setText(""+t):"matrix"===e&&t?a.setTransform(n):s.SVG_ATTR_MAP[e]&&o.setAttribute(s.SVG_ATTR_MAP[e],t)})),o.setAttribute("paint-order","stroke"),o.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},e.prototype._setFont=function(){var t=this.get("el"),e=this.attr(),n=e.textBaseline,r=e.textAlign,i=o.detect();i&&"firefox"===i.name?t.setAttribute("dominant-baseline",l[n]||"alphabetic"):t.setAttribute("alignment-baseline",f[n]||"baseline"),t.setAttribute("text-anchor",h[r]||"left")},e.prototype._setText=function(t){var e=this.get("el"),n=this.attr(),r=n.x,o=n.textBaseline,a=void 0===o?"bottom":o;if(t)if(~t.indexOf("\n")){var s=t.split("\n"),u=s.length-1,f="";i.each(s,(function(t,e){0===e?"alphabetic"===a?f+='<tspan x="'+r+'" dy="'+-u+'em">'+t+"</tspan>":"top"===a?f+='<tspan x="'+r+'" dy="0.9em">'+t+"</tspan>":"middle"===a?f+='<tspan x="'+r+'" dy="'+-(u-1)/2+'em">'+t+"</tspan>":"bottom"===a?f+='<tspan x="'+r+'" dy="-'+(u+c)+'em">'+t+"</tspan>":"hanging"===a&&(f+='<tspan x="'+r+'" dy="'+(-(u-1)-c)+'em">'+t+"</tspan>"):f+='<tspan x="'+r+'" dy="1em">'+t+"</tspan>"})),e.innerHTML=f}else e.innerHTML=t;else e.innerHTML=""},e}(u.default);e.default=d},"6ff6":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("9ab4"),i=M(n("7fa27")),o=M(n("0cc2")),a=M(n("bb3a")),s=n("2470"),u=M(n("e0ef")),c=M(n("1b95")),f=M(n("72fb")),l=M(n("cdca")),h=M(n("61d8")),d=M(n("842b")),p=n("8be5"),g=n("0dfa"),v=n("2ef0"),y=M(n("067f")),m=n("90c8"),b=M(n("d99a")),x=n("c0b3"),w=M(n("ba23"));function M(t){return t&&t.__esModule?t:{default:t}}var _="node",S="svg",P=function(t){function e(e){var n=t.call(this)||this;return n.cfg=(0,c.default)(n.getDefaultCfg(),e),n.init(),n.animating=!1,n.destroyed=!1,n}return(0,r.__extends)(e,t),e.prototype.init=function(){this.initCanvas();var t=new m.EventController(this),e=new m.ViewController(this),n=new m.ModeController(this),r=new m.ItemController(this),i=new m.LayoutController(this),o=new m.StateController(this),a=new m.CustomGroup(this);this.set({eventController:t,viewController:e,modeController:n,itemController:r,layoutController:i,stateController:o,customGroupControll:a}),this.initPlugin()},e.prototype.initCanvas=function(){var t=this.get("container");if((0,h.default)(t)&&(t=document.getElementById(t),this.set("container",t)),!t)throw new Error("invalid container");var e,n=this.get("width"),r=this.get("height"),i=this.get("renderer");e=i===S?new a.default({container:t,width:n,height:r}):new o.default({container:t,width:n,height:r}),this.set("canvas",e),this.initGroups()},e.prototype.initPlugin=function(){var t=this;(0,f.default)(t.get("plugins"),(function(e){!e.destroyed&&e.initPlugin&&e.initPlugin(t)}))},e.prototype.initGroups=function(){var t=this.get("canvas"),e=this.get("canvas").get("el"),n=e.id,r=t.addGroup({id:n+"-root",className:y.default.rootContainerClassName});if(this.get("groupByTypes")){var i=r.addGroup({id:n+"-edge",className:y.default.edgeContainerClassName}),o=r.addGroup({id:n+"-node",className:y.default.nodeContainerClassName}),a=r.addGroup({id:n+"-combo",className:y.default.comboContainerClassName}),s=r.addGroup({id:n+"-group",className:y.default.customGroupContainerClassName});s.toBack(),a.toBack(),this.set({nodeGroup:o,edgeGroup:i,customGroup:s,comboGroup:a})}var u=r.addGroup({id:n+"-delegate",className:y.default.delegateContainerClassName});this.set({delegateGroup:u}),this.set("group",r)},e.prototype.getDefaultCfg=function(){return{container:void 0,width:void 0,height:void 0,renderer:"canvas",modes:{},plugins:[],data:{},fitViewPadding:10,minZoom:.2,maxZoom:10,event:!0,groupByTypes:!0,directed:!1,autoPaint:!0,nodes:[],edges:[],combos:[],vedges:[],itemMap:{},linkCenter:!1,defaultNode:{},defaultEdge:{},nodeStateStyles:{},edgeStateStyles:{},states:{},animate:!1,animateCfg:{onFrame:void 0,duration:500,easing:"easeLinear"},callback:void 0,groupType:"circle",groupBBoxs:{},groupNodes:{},groups:[],groupStyle:{}}},e.prototype.set=function(t,e){return(0,l.default)(t)?this.cfg=Object.assign({},this.cfg,t):this.cfg[t]=e,this},e.prototype.get=function(t){return this.cfg[t]},e.prototype.clearItemStates=function(t,e){(0,h.default)(t)&&(t=this.findById(t));var n=this.get("itemController");n.clearItemStates(t,e),e||(e=t.get("states"));var r=this.get("stateController");r.updateStates(t,e,!1)},e.prototype.node=function(t){"function"===typeof t&&this.set("nodeMapper",t)},e.prototype.edge=function(t){"function"===typeof t&&this.set("edgeMapper",t)},e.prototype.combo=function(t){"function"===typeof t&&this.set("comboMapper",t)},e.prototype.findById=function(t){return this.get("itemMap")[t]},e.prototype.find=function(t,e){var n,r=this.get(t+"s");return(0,f.default)(r,(function(t,r){if(e(t,r))return n=t,n})),n},e.prototype.findAll=function(t,e){var n=[];return(0,f.default)(this.get(t+"s"),(function(t,r){e(t,r)&&n.push(t)})),n},e.prototype.findAllByState=function(t,e){return this.findAll(t,(function(t){return t.hasState(e)}))},e.prototype.translate=function(t,e){var n=this.get("group"),r=(0,u.default)(n.getMatrix());r||(r=s.mat3.create()),s.mat3.translate(r,r,[t,e]),n.setMatrix(r),this.emit("viewportchange",{action:"translate",matrix:n.getMatrix()}),this.autoPaint()},e.prototype.moveTo=function(t,e){var n=this.get("group");(0,g.move)(n,{x:t,y:e}),this.emit("viewportchange",{action:"move",matrix:n.getMatrix()})},e.prototype.fitView=function(t){t&&this.set("fitViewPadding",t);var e=this.get("viewController");e.fitView(),this.autoPaint()},e.prototype.fitCenter=function(){var t=this.get("viewController");t.fitCenter(),this.autoPaint()},e.prototype.addBehaviors=function(t,e){var n=this.get("modeController");return n.manipulateBehaviors(t,e,!0),this},e.prototype.removeBehaviors=function(t,e){var n=this.get("modeController");return n.manipulateBehaviors(t,e,!1),this},e.prototype.zoom=function(t,e){var n=this.get("group"),r=(0,u.default)(n.getMatrix()),i=this.get("minZoom"),o=this.get("maxZoom");r||(r=s.mat3.create()),e?(s.mat3.translate(r,r,[-e.x,-e.y]),s.mat3.scale(r,r,[t,t]),s.mat3.translate(r,r,[e.x,e.y])):s.mat3.scale(r,r,[t,t]),i&&r[0]<i||o&&r[0]>o||(n.setMatrix(r),this.emit("viewportchange",{action:"zoom",matrix:r}),this.autoPaint())},e.prototype.zoomTo=function(t,e){var n=t/this.getZoom();this.zoom(n,e)},e.prototype.focusItem=function(t){var e=this.get("viewController");e.focus(t),this.autoPaint()},e.prototype.autoPaint=function(){this.get("autoPaint")&&this.paint()},e.prototype.paint=function(){this.emit("beforepaint"),this.get("canvas").draw(),this.emit("afterpaint")},e.prototype.getPointByClient=function(t,e){var n=this.get("viewController");return n.getPointByClient(t,e)},e.prototype.getClientByPoint=function(t,e){var n=this.get("viewController");return n.getClientByPoint(t,e)},e.prototype.getPointByCanvas=function(t,e){var n=this.get("viewController");return n.getPointByCanvas(t,e)},e.prototype.getCanvasByPoint=function(t,e){var n=this.get("viewController");return n.getCanvasByPoint(t,e)},e.prototype.showItem=function(t){var e=this.get("itemController");e.changeItemVisibility(t,!0)},e.prototype.hideItem=function(t){var e=this.get("itemController");e.changeItemVisibility(t,!1)},e.prototype.refreshItem=function(t){var e=this.get("itemController");e.refreshItem(t)},e.prototype.setAutoPaint=function(t){var e=this;e.set("autoPaint",t);var n=e.get("canvas");n.set("autoDraw",t)},e.prototype.remove=function(t){this.removeItem(t)},e.prototype.removeItem=function(t){var e=t;if((0,h.default)(t)&&(e=this.findById(t)),!e&&(0,h.default)(t)){console.warn("The item to be removed does not exist!");var n=this.get("customGroupControll");n.remove(t)}else if(e){var r="";e.getType&&(r=e.getType());var i=this.get("itemController");if(i.removeItem(t),"combo"===r){var o=(0,x.reconstructTree)(this.get("comboTrees"));this.set("comboTrees",o)}}},e.prototype.addItem=function(t,e){var n=this.get("itemController");if("group"===t){var i=e.groupId,o=e.nodes,a=e.type,s=e.zIndex,c=e.title,f=c;return(0,h.default)(c)&&(f={text:c}),this.get("customGroupControll").create(i,o,a,s,!0,f)}if(!e.id||!this.findById(e.id)){var l,d=this.get("comboTrees");if(d||(d=[]),"combo"===t){var p=this.get("itemMap"),g=!1;if(d.forEach((function(i){g||(0,x.traverseTreeUp)(i,(function(i){if(e.parentId===i.id){g=!0;var o=(0,r.__assign)({id:e.id,depth:i.depth+2},e);i.children?i.children.push(o):i.children=[o],e.depth=o.depth,l=n.addItem(t,e)}var a=p[i.id];return g&&a&&a.getType&&"combo"===a.getType()&&n.updateCombo(a,i.children),!0}))})),!g){var v=(0,r.__assign)({id:e.id,depth:0},e);e.depth=v.depth,d.push(v),l=n.addItem(t,e)}this.set("comboTrees",d)}else if("node"===t&&(0,h.default)(e.comboId)&&d){var y=this.findById(e.comboId);if(y&&y.getType&&"combo"!==y.getType())return void console.warn("'"+e.comboId+"' is a not id of a combo in the graph, the node will be added without combo.");l=n.addItem(t,e);var m=this.get("itemMap"),b=!1,w=!1;d&&d.forEach((function(t){w||b||(0,x.traverseTreeUp)(t,(function(t){if(t.id===e.id)return w=!0,!1;if(e.comboId===t.id&&!w){b=!0;var r=(0,u.default)(e);r.itemType="node",t.children?t.children.push(r):t.children=[r],e.depth=t.depth+1}return b&&m[t.id].getType&&"combo"===m[t.id].getType()&&n.updateCombo(m[t.id],t.children),!0}))}))}else l=n.addItem(t,e);if("node"===t&&e.comboId||"combo"===t&&e.parentId){y=this.findById(e.comboId||e.parentId);y&&y.addChild(l)}var M=this.get("combos");return M&&M.length>0&&this.sortCombos(),this.autoPaint(),l}console.warn("This item exists already. Be sure the id is unique.")},e.prototype.add=function(t,e){return this.addItem(t,e)},e.prototype.updateItem=function(t,e){var n,i=this,o=this.get("itemController");n=(0,h.default)(t)?this.findById(t):t;var a="";n.getType&&(a=n.getType());var s=(0,r.__spreadArrays)(n.getStates());"combo"===a&&(0,f.default)(s,(function(t){return i.setItemState(n,t,!1)})),o.updateItem(n,e),"combo"===a&&(0,f.default)(s,(function(t){return i.setItemState(n,t,!0)}))},e.prototype.update=function(t,e){this.updateItem(t,e)},e.prototype.setItemState=function(t,e,n){(0,h.default)(t)&&(t=this.findById(t));var r=this.get("itemController");r.setItemState(t,e,n);var i=this.get("stateController");(0,h.default)(n)?i.updateState(t,e+":"+n,!0):i.updateState(t,e,n)},e.prototype.data=function(t){this.set("data",t)},e.prototype.render=function(){var t=this,e=this.get("data");if(!e)throw new Error("data must be defined first");var n=e.nodes,r=void 0===n?[]:n,i=e.edges,o=void 0===i?[]:i,a=e.combos,s=void 0===a?[]:a;if(this.clear(),this.emit("beforerender"),(0,f.default)(r,(function(e){t.add("node",e)})),s&&0!==s.length){var u=(0,x.plainCombosToTrees)(s,r);this.set("comboTrees",u),t.addCombos(s)}(0,f.default)(o,(function(e){t.add("edge",e)}));var c=t.get("layoutController");function l(){t.get("fitView")?t.fitView():t.get("fitCenter")&&t.fitCenter(),t.autoPaint(),t.emit("afterrender")}if(c.layout(l)||l(),!this.get("groupByTypes"))if(s&&0!==s.length)this.sortCombos();else if(e.nodes&&e.edges&&e.nodes.length<e.edges.length){var h=this.getNodes();h.forEach((function(t){t.toFront()}))}else{var d=this.getEdges();d.forEach((function(t){t.toBack()}))}if(e.nodes){var p=e.nodes.filter((function(t){return t.groupId}));if(p.length>0){var g=t.get("groupType");this.renderCustomGroup(e,g)}}},e.prototype.read=function(t){this.data(t),this.render()},e.prototype.diffItems=function(t,e,n){var r,i=this,o=this.get("itemMap");(0,f.default)(n,(function(n){if(r=o[n.id],r){if(i.get("animate")&&t===_){var a=r.getContainer().getMatrix();a||(a=s.mat3.create()),r.set("originAttrs",{x:a[6],y:a[7]})}i.updateItem(r,n)}else r=i.addItem(t,n);e[t+"s"].push(r)}))},e.prototype.changeData=function(t){var e=this;if(!t)return this;this.getNodes().map((function(t){return e.clearItemStates(t)})),this.getEdges().map((function(t){return e.clearItemStates(t)}));var n=this.get("canvas"),r=n.get("localRefresh");n.set("localRefresh",!1),e.get("data")||(e.data(t),e.render());var i=this.get("itemMap"),o={nodes:[],edges:[]},a=t.combos;if(a){var s=(0,x.plainCombosToTrees)(a,t.nodes);this.set("comboTrees",s)}this.diffItems("node",o,t.nodes),this.diffItems("edge",o,t.edges),(0,f.default)(i,(function(t,n){i[n].getModel().depth=0,t.getType&&"combo"===t.getType()?(delete i[n],t.destroy()):o.nodes.indexOf(t)<0&&o.edges.indexOf(t)<0&&(delete i[n],e.remove(t))}));for(var u=this.getCombos(),c=u.length,l=c-1;l>=0;l--)u[l].destroyed&&u.splice(l,1);a&&(e.addCombos(a),this.get("groupByTypes")||this.sortCombos()),this.set({nodes:o.nodes,edges:o.edges});var h=this.get("layoutController");return h.changeData(),e.get("animate")&&!h.getLayoutType()?e.positionsAnimate():e.autoPaint(),setTimeout((function(){n.set("localRefresh",r)}),16),this},e.prototype.addCombos=function(t){var e=this,n=e.get("comboTrees"),r=this.get("itemController");r.addCombos(n,t)},e.prototype.createCombo=function(t,e){var n=this,i="";if((0,h.default)(t))i=t,this.addItem("combo",{id:t});else{if(i=t.id,!i)return void console.warn("Create combo failed. Please assign a unique string id for the adding combo.");this.addItem("combo",t)}var o=this.findById(i),a=e.map((function(t){var e=n.findById(t);o.addChild(e);var a=e.getModel(),s="";return e.getType&&(s=e.getType()),"combo"===s?a.parentId=i:"node"===s&&(a.comboId=i),(0,r.__assign)({depth:1,itemType:s},a)})),s=this.get("comboTrees");s&&s.forEach((function(t){t.id===i&&(t.itemType="combo",t.children=a)})),this.updateCombos()},e.prototype.uncombo=function(t){var e=this,n=this,r=t;if((0,h.default)(t)&&(r=this.findById(t)),!r||r.getType&&"combo"!==r.getType())console.warn("The item is not a combo!");else{var i=r.getModel().parentId,o=n.get("comboTrees");o||(o=[]);var a,s=this.get("itemMap"),u=r.get("id"),c=[],f=this.get("combos"),l=this.findById(i);if(o.forEach((function(n){a||(0,x.traverseTreeUp)(n,(function(n){if(n.id===u){a=n;var o=r.getEdges();o.forEach((function(t){e.removeItem(t)}));var h=f.indexOf(t);f.splice(h,1),delete s[u],r.destroy()}if(i&&a&&n.id===i){l.removeCombo(r),c=n.children;h=c.indexOf(a);return-1!==h&&c.splice(h,1),a.children&&a.children.forEach((function(t){var n=e.findById(t.id),r=n.getModel();n.getType&&"combo"===n.getType()?(t.parentId=i,delete t.comboId,r.parentId=i,delete r.comboId):n.getType&&"node"===n.getType()&&(t.comboId=i,r.comboId=i),l.addChild(n),c.push(t)})),!1}return!0}))})),!i&&a){var d=o.indexOf(a);o.splice(d,1),a.children&&a.children.forEach((function(t){t.parentId=void 0;var n=e.findById(t.id).getModel();n.parentId=void 0,"node"!==t.itemType&&o.push(t)}))}}},e.prototype.updateCombos=function(){var t=this,e=this,n=this.get("comboTrees"),i=e.get("itemController"),o=e.get("itemMap");n&&n.forEach((function(e){(0,x.traverseTreeUp)(e,(function(e){if(!e)return!0;var n=o[e.id];if(n&&n.getType&&"combo"===n.getType()){var a=(0,r.__spreadArrays)(n.getStates());(0,f.default)(a,(function(e){return t.setItemState(n,e,!1)})),i.updateCombo(n,e.children),(0,f.default)(a,(function(e){return t.setItemState(n,e,!0)}))}return!0}))})),e.sortCombos()},e.prototype.updateCombo=function(t){var e,n=this,i=this,o=t;if((0,h.default)(t)&&(o=this.findById(t)),!o||o.getType&&"combo"!==o.getType())console.warn("The item to be updated is not a combo!");else{e=o.get("id");var a=this.get("comboTrees"),s=i.get("itemController"),u=i.get("itemMap");a&&a.forEach((function(t){(0,x.traverseTreeUp)(t,(function(t){if(!t)return!0;var i=u[t.id];if(e===t.id&&i&&i.getType&&"combo"===i.getType()){var o=(0,r.__spreadArrays)(i.getStates());(0,f.default)(o,(function(t){return n.setItemState(i,t,!1)})),s.updateCombo(i,t.children),(0,f.default)(o,(function(t){return n.setItemState(i,t,!0)})),e&&(e=t.parentId)}return!0}))}))}},e.prototype.updateComboTree=function(t,e){var n,r=this;n=(0,h.default)(t)?r.findById(t):t;var i=n.getModel(),o=i.comboId||i.parentId;if(i.parentId||i.comboId){var a=this.findById(i.parentId||i.comboId);a&&a.removeChild(n)}var s="";if(n.getType&&(s=n.getType()),"combo"===s?i.parentId=e:"node"===s&&(i.comboId=e),e){var u=this.findById(e);u&&u.addChild(n)}if(o){u=this.findById(o);u&&u.removeChild(n)}var c=(0,x.reconstructTree)(this.get("comboTrees"),i.id,e);this.set("comboTrees",c),this.updateCombos()},e.prototype.renderCustomGroup=function(t,e){var n=this,r=t.groups,i=t.nodes,o=void 0===i?[]:i,a=10;if(r){this.set({groups:r});var s=(0,p.getAllNodeInGroups)(t);Object.keys(s).forEach((function(t){var r=s[t];n.get("customGroupControll").create(t,r,e,a),a--}));var u=this.get("customGroup");u.sort()}else{var c=o.filter((function(t){return t.groupId})),f=[],l=(0,v.groupBy)(c,"groupId");Object.keys(l).forEach((function(t){var r=l[t].map((function(t){return t.id}));n.get("customGroupControll").create(t,r,e,a),a--,f.find((function(e){return e.id===t}))||f.push({id:t})})),this.set({groups:f})}},e.prototype.save=function(){var t=[],e=[],n=[];return(0,f.default)(this.get("nodes"),(function(e){t.push(e.getModel())})),(0,f.default)(this.get("edges"),(function(t){e.push(t.getModel())})),(0,f.default)(this.get("combos"),(function(t){n.push(t.getModel())})),{nodes:t,edges:e,combos:n,groups:this.get("groups")}},e.prototype.changeSize=function(t,e){var n=this.get("viewController");return n.changeSize(t,e),this},e.prototype.refresh=function(){var t=this;if(t.emit("beforegraphrefresh"),t.get("animate"))t.positionsAnimate();else{var e=t.get("nodes"),n=t.get("edges"),r=t.get("edges");(0,f.default)(e,(function(t){t.refresh()})),(0,f.default)(n,(function(t){t.refresh()})),(0,f.default)(r,(function(t){t.refresh()}))}t.emit("aftergraphrefresh"),t.autoPaint()},e.prototype.getNodes=function(){return this.get("nodes")},e.prototype.getEdges=function(){return this.get("edges")},e.prototype.getCombos=function(){return this.get("combos")},e.prototype.getComboChildren=function(t){if((0,h.default)(t)&&(t=this.findById(t)),t&&(!t.getType||"combo"===t.getType()))return t.getChildren();console.warn("The combo does not exist!")},e.prototype.positionsAnimate=function(){var t=this;t.emit("beforeanimate");var e=t.get("animateCfg"),n=e.onFrame,r=t.getNodes(),i=r.map((function(t){var e=t.getModel();return{id:e.id,x:e.x,y:e.y}}));t.isAnimating()&&t.stopAnimate();var o=t.get("canvas");o.animate((function(e){(0,f.default)(i,(function(r){var i=t.findById(r.id);if(i&&!i.destroyed){var o=i.get("originAttrs"),a=i.get("model");if(!o){var u=i.getContainer().getMatrix();u||(u=s.mat3.create()),o={x:u[6],y:u[7]},i.set("originAttrs",o)}if(n){var c=n(i,e,r,o);i.set("model",Object.assign(a,c))}else a.x=o.x+(r.x-o.x)*e,a.y=o.y+(r.y-o.y)*e}})),t.refreshPositions()}),{duration:e.duration,easing:e.easing,callback:function(){(0,f.default)(r,(function(t){t.set("originAttrs",null)})),e.callback&&e.callback(),t.emit("afteranimate"),t.animating=!1}})},e.prototype.refreshPositions=function(){var t=this;t.emit("beforegraphrefreshposition");var e,n=t.get("nodes"),r=t.get("edges"),i=t.get("vedges"),o=t.get("combos"),a={};(0,f.default)(n,(function(t){e=t.getModel();var n=t.get("originAttrs");n&&e.x===n.x&&e.y===n.y||(t.updatePosition({x:e.x,y:e.y}),a[e.id]=!0,e.comboId&&(a[e.comboId]=!0))})),o&&0!==o.length&&t.updateCombos(),(0,f.default)(r,(function(t){var e=t.getSource().getModel(),n=t.getTarget().getModel();(a[e.id]||a[n.id]||t.getModel().isComboEdge)&&t.refresh()})),(0,f.default)(i,(function(t){t.refresh()})),t.emit("aftergraphrefreshposition"),t.autoPaint()},e.prototype.stopAnimate=function(){this.get("canvas").stopAnimate()},e.prototype.isAnimating=function(){return this.animating},e.prototype.getZoom=function(){var t=this.get("group").getMatrix();return t?t[0]:1},e.prototype.getCurrentMode=function(){var t=this.get("modeController");return t.getMode()},e.prototype.setMode=function(t){var e=this.get("modeController");return e.setMode(t),this},e.prototype.clear=function(){var t=this.get("canvas");return t.clear(),this.initGroups(),this.set({itemMap:{},nodes:[],edges:[],groups:[]}),this},e.prototype.toDataURL=function(t,e){var n=this.get("canvas"),r=n.getRenderer(),i=n.get("el");t||(t="image/png");var o="";if("svg"===r){var a=i.cloneNode(!0),s=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),u=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",s);u.replaceChild(a,u.documentElement);var c=(new XMLSerializer).serializeToString(u);o="data:image/svg+xml;charset=utf8,"+encodeURIComponent(c)}else{var f=void 0,l=i.getContext("2d"),h=this.get("width"),d=this.get("height"),p=void 0;if(e){var g=window.devicePixelRatio;f=l.getImageData(0,0,h*g,d*g),p=l.globalCompositeOperation,l.globalCompositeOperation="destination-over",l.fillStyle=e,l.fillRect(0,0,h,d)}o=i.toDataURL(t),e&&(l.clearRect(0,0,h,d),l.putImageData(f,0,0),l.globalCompositeOperation=p)}return o},e.prototype.downloadFullImage=function(t,e){var n=this,r=this.get("group").getCanvasBBox(),i=r.height,c=r.width,f=this.get("renderer"),l=(0,b.default)('<id="virtual-image"></div>'),h=e?e.backgroundColor:void 0,p=e?e.padding:void 0;p?(0,d.default)(p)&&(p=[p,p,p,p]):p=[0,0,0,0];var g=i+p[0]+p[2],v=c+p[1]+p[3],y={container:l,height:g,width:v},m="svg"===f?new a.default(y):new o.default(y),x=this.get("group"),w=x.clone(),M=(0,u.default)(w.getMatrix());M||(M=s.mat3.create());var _=(r.maxX+r.minX)/2,S=(r.maxY+r.minY)/2;s.mat3.translate(M,M,[-_,-S]),s.mat3.translate(M,M,[c/2+p[3],i/2+p[0]]),w.resetMatrix(),w.setMatrix(M),m.add(w);var P=m.get("el");setTimeout((function(){var e="image/png",r="";if("svg"===f){var i=P.cloneNode(!0),o=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),a=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",o);a.replaceChild(i,a.documentElement);var s=(new XMLSerializer).serializeToString(a);r="data:image/svg+xml;charset=utf8,"+encodeURIComponent(s)}else{var u=void 0,c=P.getContext("2d"),l=void 0;if(h){var d=window.devicePixelRatio;u=c.getImageData(0,0,v*d,g*d),l=c.globalCompositeOperation,c.globalCompositeOperation="destination-over",c.fillStyle=h,c.fillRect(0,0,v,g)}r=P.toDataURL(e),h&&(c.clearRect(0,0,v,g),c.putImageData(u,0,0),c.globalCompositeOperation=l)}var p=document.createElement("a"),y=(t||"graph")+("svg"===f?".svg":".png");n.dataURLToImage(r,f,p,y);var m=document.createEvent("MouseEvents");m.initEvent("click",!1,!1),p.dispatchEvent(m)}),16)},e.prototype.downloadImage=function(t,e){var n=this,r=this;r.isAnimating()&&r.stopAnimate();var i=r.get("canvas"),o=i.getRenderer(),a=(t||"graph")+("svg"===o?".svg":".png"),s=document.createElement("a");setTimeout((function(){var t=r.toDataURL("image/png",e);n.dataURLToImage(t,o,s,a);var i=document.createEvent("MouseEvents");i.initEvent("click",!1,!1),s.dispatchEvent(i)}),16)},e.prototype.dataURLToImage=function(t,e,n,r){if("undefined"!==typeof window)if(window.Blob&&window.URL&&"svg"!==e){var i=t.split(","),o="";if(i&&i.length>0){var a=i[0].match(/:(.*?);/);a&&a.length>=2&&(o=a[1])}var s=atob(i[1]),u=s.length,c=new Uint8Array(u);while(u--)c[u]=s.charCodeAt(u);var f=new Blob([c],{type:o});window.navigator.msSaveBlob?window.navigator.msSaveBlob(f,r):n.addEventListener("click",(function(){n.download=r,n.href=window.URL.createObjectURL(f)}))}else n.addEventListener("click",(function(){n.download=r,n.href=t}))},e.prototype.updateLayout=function(t){var e,n=this.get("layoutController");(0,h.default)(t)?(e=t,t={type:e}):e=t.type;var r=this.get("layout"),i=r?r.type:void 0;if(e&&i!==e)this.set("layout",t),n.changeLayout(e);else{var o={};Object.assign(o,r,t),o.type=i||"random",this.set("layout",o),n.updateLayoutCfg(o)}},e.prototype.layout=function(){var t=this.get("layoutController"),e=this.get("layout");e&&(e.workerEnabled?t.layout():t.layoutMethod?t.relayout(!0):t.layout())},e.prototype.collapseCombo=function(t){var e=this;if((0,h.default)(t)&&(t=this.findById(t)),t){var n=t.getModel(),r=this.getEdges().concat(this.get("vedges")),i=[],o=[],a=this.get("comboTrees"),s=!1,u={};a&&a.forEach((function(t){u[t.id]=t})),a&&a.forEach((function(t){s||(0,x.traverseTree)(t,(function(t){if(s&&u[t.id])return!1;if(n.parentId===t.id?(u={},t.children.forEach((function(t){u[t.id]=t}))):n.id===t.id&&(s=!0),s){var r=e.findById(t.id);r&&r.getType&&"combo"===r.getType()&&(i=i.concat(r.getNodes()),o=o.concat(r.getCombos()))}return!0}))}));var c={},f=[];r.forEach((function(t){var r=t.getSource(),a=t.getTarget();if((i.includes(r)||o.includes(r))&&!i.includes(a)&&!o.includes(a)||r.getModel().id===n.id){var s=t.getModel();if(s.isVEdge)return void e.removeItem(t);var u=a.getModel();while(!a.isVisible()){if(a=e.findById(u.parentId||u.comboId),!a||!u.parentId&&!u.comboId)return;u=a.getModel()}var l=u.id;if(c[n.id+"-"+l])return void(c[n.id+"-"+l]+=s.size||1);var h=e.addItem("vedge",{source:n.id,target:l,isVEdge:!0});c[n.id+"-"+l]=s.size||1,f.push(h)}else if(!i.includes(r)&&!o.includes(r)&&(i.includes(a)||o.includes(a))||a.getModel().id===n.id){s=t.getModel();if(s.isVEdge)return void e.removeItem(t);var d=r.getModel();while(!r.isVisible()){if(r=e.findById(d.parentId||d.comboId),!r||!d.parentId&&!d.comboId)return;d=r.getModel()}var p=d.id;if(c[p+"-"+n.id])return void(c[p+"-"+n.id]+=s.size||1);h=e.addItem("vedge",{target:n.id,source:p,isVEdge:!0});c[p+"-"+n.id]=s.size||1,f.push(h)}})),f.forEach((function(t){var n=t.getModel();e.updateItem(t,{size:c[n.source+"-"+n.target]})}));var l=this.get("itemController");l.collapseCombo(t),n.collapsed=!0}else console.warn("The combo to be collapsed does not exist!")},e.prototype.expandCombo=function(t){var e=this;if((0,h.default)(t)&&(t=this.findById(t)),!t||t.getType&&"combo"!==t.getType())console.warn("The combo to be collapsed does not exist!");else{var n=t.getModel(),r=this.get("itemController");r.expandCombo(t),n.collapsed=!1;var i=this.getEdges().concat(this.get("vedges")),o=[],a=[],s=this.get("comboTrees"),u=!1,c={};s&&s.forEach((function(t){c[t.id]=t})),s&&s.forEach((function(t){u||(0,x.traverseTree)(t,(function(t){if(u&&c[t.id])return!1;if(n.parentId===t.id?(c={},t.children.forEach((function(t){c[t.id]=t}))):n.id===t.id&&(u=!0),u){var r=e.findById(t.id);r&&r.getType&&"combo"===r.getType()&&(o=o.concat(r.getNodes()),a=a.concat(r.getCombos()))}return!0}))}));var f={},l={};i.forEach((function(t){var r=t.getSource(),i=t.getTarget(),s=r.get("id"),u=i.get("id");if((o.includes(r)||a.includes(r))&&!o.includes(i)&&!a.includes(i)||s===n.id){if(t.getModel().isVEdge)return void e.removeItem(t);var c=i.getModel();while(!i.isVisible()){if(i=e.findById(c.comboId||c.parentId),!i||!c.parentId&&!c.comboId)return;c=i.getModel()}u=c.id;var h=r.getModel();while(!r.isVisible()){if(r=e.findById(h.comboId||h.parentId),!r||!h.parentId&&!h.comboId)return;if(h.comboId===n.id||h.parentId===n.id)break;h=r.getModel()}if(s=h.id,u){var d=s+"-"+u;if(f[d])return f[d]+=t.getModel().size||1,void e.updateItem(l[d],{size:f[d]});var p=e.addItem("vedge",{source:s,target:u,isVEdge:!0});f[d]=t.getModel().size||1,l[d]=p}}else if(!o.includes(r)&&!a.includes(r)&&(o.includes(i)||a.includes(i))||u===n.id){if(t.getModel().isVEdge)return void e.removeItem(t);h=r.getModel();while(!r.isVisible()){if(r=e.findById(h.comboId||h.parentId),!r||!h.parentId&&!h.comboId)return;h=r.getModel()}s=h.id;c=i.getModel();while(!i.isVisible()){if(i=e.findById(c.comboId||c.parentId),!i||!c.parentId&&!c.comboId)return;if(c.comboId===n.id||c.parentId===n.id)break;c=i.getModel()}if(u=c.id,s){d=s+"-"+u;if(f[d])return f[d]+=t.getModel().size||1,void e.updateItem(l[d],{size:f[d]});p=e.addItem("vedge",{target:u,source:s,isVEdge:!0});f[d]=t.getModel().size||1,l[d]=p}}}))}},e.prototype.collapseExpandCombo=function(t){if((0,h.default)(t)&&(t=this.findById(t)),!t.getType||"combo"===t.getType()){var e=t.getModel(),n=this.findById(e.parentId);while(n){var r=n.getModel();if(r.collapsed)return console.warn("Fail to expand the combo since it's ancestor combo is collapsed."),void(n=void 0);n=this.findById(r.parentId)}var i=e.collapsed;i?this.expandCombo(t):this.collapseCombo(t)}},e.prototype.collapseGroup=function(t){var e=this.get("customGroupControll");e.collapseGroup(t)},e.prototype.expandGroup=function(t){var e=this.get("customGroupControll");e.expandGroup(t)},e.prototype.addPlugin=function(t){var e=this;t.destroyed||(e.get("plugins").push(t),t.initPlugin(e))},e.prototype.removePlugin=function(t){var e=this.get("plugins"),n=e.indexOf(t);n>=0&&(t.destroyPlugin(),e.splice(n,1))},e.prototype.sortCombos=function(){var t=this,e=[],n={},r=this.get("comboTrees");r&&r.forEach((function(t){(0,x.traverseTree)(t,(function(t){return e[t.depth]?e[t.depth].push(t.id):e[t.depth]=[t.id],n[t.id]=t.depth,!0}))}));var i=this.getEdges().concat(this.get("vedges"));i&&i.forEach((function(t){var r=t.getModel(),i=n[r.source]||0,o=n[r.target]||0,a=Math.max(i,o);e[a]?e[a].push(r.id):e[a]=[r.id]})),e.forEach((function(e){if(e&&e.length)for(var n=e.length-1;n>=0;n--){var r=t.findById(e[n]);r&&r.toFront()}}))},e.prototype.getNeighbors=function(t){var e=t;return(0,h.default)(t)&&(e=this.findById(t)),e.getNeighbors()},e.prototype.getSourceNeighbors=function(t){var e=t;return(0,h.default)(t)&&(e=this.findById(t)),e.getSourceNeighbors()},e.prototype.getTargetNeighbors=function(t){var e=t;return(0,h.default)(t)&&(e=this.findById(t)),e.getTargetNeighbors()},e.prototype.getNodeDegree=function(t,e){void 0===e&&(e=void 0);var n=t;(0,h.default)(t)&&(n=this.findById(t));var r=this.get("degrees");r||(r=(0,w.default)(this)),this.set("degees",r);var i,o=r[n.getID()];switch(e){case"in":i=o.inDegree;break;case"out":i=o.outDegree;break;case"all":i=o;break;default:i=o.degree;break}return i},e.prototype.destroy=function(){this.clear(),(0,f.default)(this.get("plugins"),(function(t){t.destroyPlugin()})),this.get("eventController").destroy(),this.get("itemController").destroy(),this.get("modeController").destroy(),this.get("viewController").destroy(),this.get("stateController").destroy(),this.get("layoutController").destroy(),this.get("customGroupControll").destroy(),this.get("canvas").destroy(),this.cfg=null,this.destroyed=!0},e}(i.default),k=P;e.default=k},7037:function(t,e,n){function r(e){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?(t.exports=r=function(t){return typeof t},t.exports["default"]=t.exports,t.exports.__esModule=!0):(t.exports=r=function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports["default"]=t.exports,t.exports.__esModule=!0),r(e)}n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),t.exports=r,t.exports["default"]=t.exports,t.exports.__esModule=!0},7174:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("8937"),i=n("487c"),o=function(){function t(t){this.type="clip",this.cfg={};var e=i.createSVGElement("clipPath");this.el=e,this.id=r.uniqueId("clip_"),e.id=this.id;var n=t.cfg.el;return e.appendChild(n),this.cfg=t,this}return t.prototype.match=function(){return!1},t.prototype.remove=function(){var t=this.el;t.parentNode.removeChild(t)},t}();e.default=o},"71f5":function(t,e,n){"use strict";function r(t){var e=t.attr(),n=e.x,r=e.y,i=e.rx,o=e.ry;return{x:n-i,y:r-o,width:2*i,height:2*o}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},"72af":function(t,e,n){var r=n("99cd"),i=r();t.exports=i},"72f0":function(t,e){function n(t){return function(){return t}}t.exports=n},"72fb":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("01f9"),i=n("9ab4f");function o(t,e){var n;if(t)if(r.default(t)){for(var o=0,a=t.length;o<a;o++)if(n=e(t[o],o),!1===n)break}else if(i.default(t))for(var s in t)if(t.hasOwnProperty(s)&&(n=e(t[s],s),!1===n))break}e.default=o},7315:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("01f9"),i=function(t){if(!r.default(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e};e.default=i},7338:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){return null===t};e.default=r},7352:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("bd82"));function i(t){return t&&t.__esModule?t:{default:t}}var o=Object.assign({getDefaultCfg:function(){return{item:"node",offset:12,formatText:function(t){return t.label}}},getEvents:function(){return{"node:mouseenter":"onMouseEnter","node:mouseleave":"onMouseLeave","node:mousemove":"onMouseMove"}}},r.default);e.default=o},"739e":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("28f9");e.default=function(t){return r.default(t)?"":t.toString()}},"73ac":function(t,e,n){var r=n("743f"),i=n("b047"),o=n("99d3"),a=o&&o.isTypedArray,s=a?i(a):r;t.exports=s},"743f":function(t,e,n){var r=n("3729"),i=n("b218"),o=n("1310"),a="[object Arguments]",s="[object Array]",u="[object Boolean]",c="[object Date]",f="[object Error]",l="[object Function]",h="[object Map]",d="[object Number]",p="[object Object]",g="[object RegExp]",v="[object Set]",y="[object String]",m="[object WeakMap]",b="[object ArrayBuffer]",x="[object DataView]",w="[object Float32Array]",M="[object Float64Array]",_="[object Int8Array]",S="[object Int16Array]",P="[object Int32Array]",k="[object Uint8Array]",C="[object Uint8ClampedArray]",O="[object Uint16Array]",E="[object Uint32Array]",A={};function j(t){return o(t)&&i(t.length)&&!!A[r(t)]}A[w]=A[M]=A[_]=A[S]=A[P]=A[k]=A[C]=A[O]=A[E]=!0,A[a]=A[s]=A[b]=A[u]=A[x]=A[c]=A[f]=A[l]=A[h]=A[d]=A[p]=A[g]=A[v]=A[y]=A[m]=!1,t.exports=j},"74e8":function(t,e,n){"use strict";var r=n("6f9c"),i=n("1845"),o=n("e849").slack,a=n("e849").longestPath,s=n("17d5").alg.preorder,u=n("17d5").alg.postorder,c=n("b50e").simplify;function f(t){t=c(t),a(t);var e,n,r=i(t);p(r),l(r,t);while(e=v(r))n=y(r,t,e),m(r,t,e,n)}function l(t,e){var n=u(t,t.nodes());n=n.slice(0,n.length-1),r.forEach(n,(function(n){h(t,e,n)}))}function h(t,e,n){var r=t.node(n),i=r.parent;t.edge(n,i).cutvalue=d(t,e,n)}function d(t,e,n){var i=t.node(n),o=i.parent,a=!0,s=e.edge(n,o),u=0;return s||(a=!1,s=e.edge(o,n)),u=s.weight,r.forEach(e.nodeEdges(n),(function(r){var i=r.v===n,s=i?r.w:r.v;if(s!==o){var c=i===a,f=e.edge(r).weight;if(u+=c?f:-f,x(t,n,s)){var l=t.edge(n,s).cutvalue;u+=c?-l:l}}})),u}function p(t,e){arguments.length<2&&(e=t.nodes()[0]),g(t,{},1,e)}function g(t,e,n,i,o){var a=n,s=t.node(i);return e[i]=!0,r.forEach(t.neighbors(i),(function(o){r.has(e,o)||(n=g(t,e,n,o,i))})),s.low=a,s.lim=n++,o?s.parent=o:delete s.parent,n}function v(t){return r.find(t.edges(),(function(e){return t.edge(e).cutvalue<0}))}function y(t,e,n){var i=n.v,a=n.w;e.hasEdge(i,a)||(i=n.w,a=n.v);var s=t.node(i),u=t.node(a),c=s,f=!1;s.lim>u.lim&&(c=u,f=!0);var l=r.filter(e.edges(),(function(e){return f===w(t,t.node(e.v),c)&&f!==w(t,t.node(e.w),c)}));return r.minBy(l,(function(t){return o(e,t)}))}function m(t,e,n,r){var i=n.v,o=n.w;t.removeEdge(i,o),t.setEdge(r.v,r.w,{}),p(t),l(t,e),b(t,e)}function b(t,e){var n=r.find(t.nodes(),(function(t){return!e.node(t).parent})),i=s(t,n);i=i.slice(1),r.forEach(i,(function(n){var r=t.node(n).parent,i=e.edge(n,r),o=!1;i||(i=e.edge(r,n),o=!0),e.node(n).rank=e.node(r).rank+(o?i.minlen:-i.minlen)}))}function x(t,e,n){return t.hasEdge(e,n)}function w(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}t.exports=f,f.initLowLimValues=p,f.initCutValues=l,f.calcCutValue=d,f.leaveEdge=v,f.enterEdge=y,f.exchangeEdges=m},"750a":function(t,e,n){var r=n("c869"),i=n("bcdf"),o=n("ac41"),a=1/0,s=r&&1/o(new r([,-0]))[1]==a?function(t){return new r(t)}:i;t.exports=s},7530:function(t,e,n){var r=n("1a8c"),i=Object.create,o=function(){function t(){}return function(e){if(!r(e))return{};if(i)return i(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=o},7680:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={" ":.3329986572265625,a:.5589996337890625,A:.6569992065429687,b:.58599853515625,B:.6769989013671875,c:.5469985961914062,C:.7279998779296875,d:.58599853515625,D:.705999755859375,e:.554998779296875,E:.63699951171875,f:.37299957275390627,F:.5769989013671875,g:.5909988403320312,G:.7479995727539063,h:.555999755859375,H:.7199996948242188,i:.255999755859375,I:.23699951171875,j:.26699981689453123,J:.5169998168945312,k:.5289993286132812,K:.6899993896484375,l:.23499908447265624,L:.5879989624023437,m:.854998779296875,M:.8819992065429687,n:.5589996337890625,N:.7189987182617188,o:.58599853515625,O:.7669998168945312,p:.58599853515625,P:.6419998168945312,q:.58599853515625,Q:.7669998168945312,r:.3649993896484375,R:.6759994506835938,s:.504998779296875,S:.6319992065429687,t:.354998779296875,T:.6189987182617187,u:.5599990844726562,U:.7139999389648437,v:.48199920654296874,V:.6389999389648438,w:.754998779296875,W:.929998779296875,x:.5089996337890625,X:.63699951171875,y:.4959991455078125,Y:.66199951171875,z:.48699951171875,Z:.6239990234375,0:.6,1:.40099945068359377,2:.6,3:.6,4:.6,5:.6,6:.6,7:.5469985961914062,8:.6,9:.6,"[":.3329986572265625,"]":.3329986572265625,",":.26399993896484375,".":.26399993896484375,";":.26399993896484375,":":.26399993896484375,"{":.3329986572265625,"}":.3329986572265625,"\\":.5,"|":.19499969482421875,"=":.604998779296875,"+":.604998779296875,"-":.604998779296875,_:.5,"`":.3329986572265625," ~":.8329986572265625,"!":.3329986572265625,"@":.8579986572265625,"#":.6,$:.6,"%":.9699996948242188,"^":.517999267578125,"&":.7259994506835937,"*":.505999755859375,"(":.3329986572265625,")":.3329986572265625,"<":.604998779296875,">":.604998779296875,"/":.5,"?":.53699951171875};e.default=r},"76dd":function(t,e,n){var r=n("ce86");function i(t){return null==t?"":r(t)}t.exports=i},"76e9":function(t,e,n){var r=n("ffd6");function i(t,e,n){var i=-1,o=t.length;while(++i<o){var a=t[i],s=e(a);if(null!=s&&(void 0===u?s===s&&!r(s):n(s,u)))var u=s,c=a}return c}t.exports=i},7753:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){}},7948:function(t,e){function n(t,e){var n=-1,r=null==t?0:t.length,i=Array(r);while(++n<r)i[n]=e(t[n],n,t);return i}t.exports=n},"79bc":function(t,e,n){var r=n("0b07"),i=n("2b3e"),o=r(i,"Map");t.exports=o},"79cf":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("b455");function i(t){for(var e=t.attr(),n=e.points,i=[],o=[],a=0;a<n.length;a++){var s=n[a];i.push(s[0]),o.push(s[1])}return r.getBBoxByArray(i,o)}e.default=i},"7a48":function(t,e,n){var r=n("6044"),i=Object.prototype,o=i.hasOwnProperty;function a(t){var e=this.__data__;return r?void 0!==e[t]:o.call(e,t)}t.exports=a},"7a70":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SHAPE_TO_TAGS={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},e.SVG_ATTR_MAP={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"},e.EVENTS=["click","mousedown","mouseup","dblclick","contextmenu","mouseenter","mouseleave","mouseover","mouseout","mousemove","wheel"]},"7a9c":function(t,e,n){"use strict";var r=n("6f9c"),i=n("a6d1"),o=n("45ee"),a=n("0b8b"),s=n("b50e").normalizeRanks,u=n("f1cd"),c=n("b50e").removeEmptyRanks,f=n("251a"),l=n("220e"),h=n("a864"),d=n("2a9f"),p=n("2325"),g=n("b50e"),v=n("17d5").Graph;function y(t,e){var n=e&&e.debugTiming?g.time:g.notime;n("layout",(function(){var e=n(" buildLayoutGraph",(function(){return O(t)}));n(" runLayout",(function(){m(e,n)})),n(" updateInputGraph",(function(){b(t,e)}))}))}function m(t,e){e(" makeSpaceForEdgeLabels",(function(){E(t)})),e(" removeSelfEdges",(function(){R(t)})),e(" acyclic",(function(){i.run(t)})),e(" nestingGraph.run",(function(){f.run(t)})),e(" rank",(function(){a(g.asNonCompoundGraph(t))})),e(" injectEdgeLabelProxies",(function(){A(t)})),e(" removeEmptyRanks",(function(){c(t)})),e(" nestingGraph.cleanup",(function(){f.cleanup(t)})),e(" normalizeRanks",(function(){s(t)})),e(" assignRankMinMax",(function(){j(t)})),e(" removeEdgeLabelProxies",(function(){I(t)})),e(" normalize.run",(function(){o.run(t)})),e(" parentDummyChains",(function(){u(t)})),e(" addBorderSegments",(function(){l(t)})),e(" order",(function(){d(t)})),e(" insertSelfEdges",(function(){z(t)})),e(" adjustCoordinateSystem",(function(){h.adjust(t)})),e(" position",(function(){p(t)})),e(" positionSelfEdges",(function(){F(t)})),e(" removeBorderNodes",(function(){L(t)})),e(" normalize.undo",(function(){o.undo(t)})),e(" fixupEdgeLabelCoords",(function(){N(t)})),e(" undoCoordinateSystem",(function(){h.undo(t)})),e(" translateGraph",(function(){T(t)})),e(" assignNodeIntersects",(function(){B(t)})),e(" reversePoints",(function(){D(t)})),e(" acyclic.undo",(function(){i.undo(t)}))}function b(t,e){r.forEach(t.nodes(),(function(n){var r=t.node(n),i=e.node(n);r&&(r.x=i.x,r.y=i.y,e.children(n).length&&(r.width=i.width,r.height=i.height))})),r.forEach(t.edges(),(function(n){var i=t.edge(n),o=e.edge(n);i.points=o.points,r.has(o,"x")&&(i.x=o.x,i.y=o.y)})),t.graph().width=e.graph().width,t.graph().height=e.graph().height}t.exports=y;var x=["nodesep","edgesep","ranksep","marginx","marginy"],w={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},M=["acyclicer","ranker","rankdir","align"],_=["width","height"],S={width:0,height:0},P=["minlen","weight","width","height","labeloffset"],k={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},C=["labelpos"];function O(t){var e=new v({multigraph:!0,compound:!0}),n=Y(t.graph());return e.setGraph(r.merge({},w,G(n,x),r.pick(n,M))),r.forEach(t.nodes(),(function(n){var i=Y(t.node(n));e.setNode(n,r.defaults(G(i,_),S)),e.setParent(n,t.parent(n))})),r.forEach(t.edges(),(function(n){var i=Y(t.edge(n));e.setEdge(n,r.merge({},k,G(i,P),r.pick(i,C)))})),e}function E(t){var e=t.graph();e.ranksep/=2,r.forEach(t.edges(),(function(n){var r=t.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}function A(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),i=t.node(e.w),o={rank:(i.rank-r.rank)/2+r.rank,e:e};g.addDummyNode(t,"edge-proxy",o,"_ep")}}))}function j(t){var e=0;r.forEach(t.nodes(),(function(n){var i=t.node(n);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,e=r.max(e,i.maxRank))})),t.graph().maxRank=e}function I(t){r.forEach(t.nodes(),(function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))}))}function T(t){var e=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,o=0,a=t.graph(),s=a.marginx||0,u=a.marginy||0;function c(t){var r=t.x,a=t.y,s=t.width,u=t.height;e=Math.min(e,r-s/2),n=Math.max(n,r+s/2),i=Math.min(i,a-u/2),o=Math.max(o,a+u/2)}r.forEach(t.nodes(),(function(e){c(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.has(n,"x")&&c(n)})),e-=s,i-=u,r.forEach(t.nodes(),(function(n){var r=t.node(n);r.x-=e,r.y-=i})),r.forEach(t.edges(),(function(n){var o=t.edge(n);r.forEach(o.points,(function(t){t.x-=e,t.y-=i})),r.has(o,"x")&&(o.x-=e),r.has(o,"y")&&(o.y-=i)})),a.width=n-e+s,a.height=o-i+u}function B(t){r.forEach(t.edges(),(function(e){var n,r,i=t.edge(e),o=t.node(e.v),a=t.node(e.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=a,r=o),i.points.unshift(g.intersectRect(o,n)),i.points.push(g.intersectRect(a,r))}))}function N(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(r.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset;break}}))}function D(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);n.reversed&&n.points.reverse()}))}function L(t){r.forEach(t.nodes(),(function(e){if(t.children(e).length){var n=t.node(e),i=t.node(n.borderTop),o=t.node(n.borderBottom),a=t.node(r.last(n.borderLeft)),s=t.node(r.last(n.borderRight));n.width=Math.abs(s.x-a.x),n.height=Math.abs(o.y-i.y),n.x=a.x+n.width/2,n.y=i.y+n.height/2}})),r.forEach(t.nodes(),(function(e){"border"===t.node(e).dummy&&t.removeNode(e)}))}function R(t){r.forEach(t.edges(),(function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}}))}function z(t){var e=g.buildLayerMatrix(t);r.forEach(e,(function(e){var n=0;r.forEach(e,(function(e,i){var o=t.node(e);o.order=i+n,r.forEach(o.selfEdges,(function(e){g.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:o.rank,order:i+ ++n,e:e.e,label:e.label},"_se")})),delete o.selfEdges}))}))}function F(t){r.forEach(t.nodes(),(function(e){var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),i=r.x+r.width/2,o=r.y,a=n.x-i,s=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*a/3,y:o-s},{x:i+5*a/6,y:o-s},{x:i+a,y:o},{x:i+5*a/6,y:o+s},{x:i+2*a/3,y:o+s}],n.label.x=n.x,n.label.y=n.y}}))}function G(t,e){return r.mapValues(r.pick(t,e),Number)}function Y(t){var e={};return r.forEach(t,(function(t,n){e[n.toLowerCase()]=t})),e}},"7b83":function(t,e,n){var r=n("7c64"),i=n("93ed"),o=n("2478"),a=n("a524"),s=n("1fc8");function u(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype["delete"]=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},"7b97":function(t,e,n){var r=n("7e64"),i=n("a2be"),o=n("1c3c"),a=n("b1e5"),s=n("42a2"),u=n("6747"),c=n("0d24"),f=n("73ac"),l=1,h="[object Arguments]",d="[object Array]",p="[object Object]",g=Object.prototype,v=g.hasOwnProperty;function y(t,e,n,g,y,m){var b=u(t),x=u(e),w=b?d:s(t),M=x?d:s(e);w=w==h?p:w,M=M==h?p:M;var _=w==p,S=M==p,P=w==M;if(P&&c(t)){if(!c(e))return!1;b=!0,_=!1}if(P&&!_)return m||(m=new r),b||f(t)?i(t,e,n,g,y,m):o(t,e,w,n,g,y,m);if(!(n&l)){var k=_&&v.call(t,"__wrapped__"),C=S&&v.call(e,"__wrapped__");if(k||C){var O=k?t.value():t,E=C?e.value():e;return m||(m=new r),y(O,E,n,g,m)}}return!!P&&(m||(m=new r),a(t,e,n,g,y,m))}t.exports=y},"7bf1":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"root"},[t.isView?t._e():n("ToolbarPanel",{ref:"toolbar"}),n("div",{staticStyle:{display:"flex"}},[t.isView?t._e():n("ItemPanel",{ref:"addItemPanel",attrs:{height:t.height}}),n("div",{ref:"canvas",staticClass:"canvasPanel",style:{height:t.height+"px",width:t.isView?"100%":"70%","border-bottom":t.isView?0:null}}),t.isView?t._e():n("DetailPanel",{ref:"detailPanel",attrs:{height:t.height,model:t.selectedModel,readOnly:"view"==t.$route.query.type,users:t.users,authorities:t.authorities,groups:t.groups,categorys:t.categorys,signalDefs:t.processModel.signalDefs,messageDefs:t.processModel.messageDefs,onChange:function(e,n){t.onItemCfgChange(e,n)}}})],1)],1)},i=[],o=n("ade3"),a=n("5530"),s=(n("a9e3"),n("d81d"),n("7db0"),n("d3b7"),n("159b"),n("b0c0"),n("db24")),u=n.n(s),c=n("51d2"),f=n("59a6"),l=n("ce44"),h=n("1001"),d=n("68a4"),p=n("7d79"),g=n("6c87"),v=n("d856"),y=n("068d"),m=n("884e"),b=n("bf2b"),x=n("07a4");Object(b["default"])(u.a),Object(x["default"])(u.a);var w={name:"wfd-vue",components:{ToolbarPanel:p["default"],ItemPanel:g["default"],DetailPanel:v["default"]},provide:function(){return{i18n:y["default"][this.lang]}},props:{isView:{type:Boolean,default:!1},mode:{type:String,default:"edit"},height:{type:Number,default:800},lang:{type:String,default:"zh"},data:{type:Object,default:function(){return{nodes:[],edges:[]}}},users:{type:Array,default:function(){return[]}},authorities:{type:Array,default:function(){return[]}},groups:{type:Array,default:function(){return[]}},categorys:{type:Array,default:function(){return[]}},propProcessModel:{type:Object,default:function(){return{id:"",name:"",category:"",clazz:"process",dataObjs:[],signalDefs:[],messageDefs:[]}}}},data:function(){return{processModel:{},resizeFunc:function(){},selectedModel:{},graph:null,cmdPlugin:null}},watch:{data:function(t,e){t!==e&&this.graph&&(this.graph.changeData(this.initShape(e)),this.graph.setMode(this.mode),this.graph.emit("canvas:click"),this.cmdPlugin&&this.cmdPlugin.initPlugin(this.graph),this.isView&&this.graph.fitView(5))}},methods:{initShape:function(t){return t&&t.nodes?{nodes:t.nodes.map((function(t){return Object(a["a"])({shape:Object(c["getShapeName"])(t.clazz)},t)})),edges:t.edges}:t},initEvents:function(){var t=this;this.graph.on("afteritemselected",(function(e){if(e&&e.length>0){var n=t.graph.findById(e[0]);n||(n=t.getNodeInSubProcess(e[0])),t.selectedModel=Object(a["a"])({},n.getModel())}else t.selectedModel=t.processModel}));var e=this.$refs["canvas"],n=this.graph,r=this.height-1;this.resizeFunc=function(){n.changeSize(e.offsetWidth,r)},window.addEventListener("resize",this.resizeFunc)},onItemCfgChange:function(t,e){var n=this.graph.get("selectedItems");if(n&&n.length>0){var r=this.graph.findById(n[0]);r||(r=this.getNodeInSubProcess(n[0])),this.graph.executeCommand?this.graph.executeCommand("update",{itemId:n[0],updateModel:Object(o["a"])({},t,e)}):this.graph.updateItem(r,Object(o["a"])({},t,e)),this.selectedModel=Object(a["a"])({},r.getModel())}else{var i=Object(a["a"])(Object(a["a"])({},this.processModel),{},Object(o["a"])({},t,e));this.selectedModel=i,this.processModel=i}},getNodeInSubProcess:function(t){var e=this.graph.find("node",(function(e){if(e.get("model")){var n=e.get("model").clazz;if("subProcess"===n){var r=e.getContainer(),i=r.subGroup,o=i.findById(t);return i.contain(o)}return!1}return!1}));if(e){var n=e.getContainer();return n.getItem(e,t)}return null}},destroyed:function(){window.removeEventListener("resize",this.resizeFunc),this.graph.getNodes().forEach((function(t){t.getKeyShape().stopAnimate()}))},mounted:function(){var t=this,e=[];if(!this.isView){this.cmdPlugin=new f["default"];var n=new l["default"]({container:this.$refs["toolbar"].$el}),r=new h["default"]({container:this.$refs["addItemPanel"].$el}),i=new d["default"]({container:this.$refs["canvas"]});e=[this.cmdPlugin,n,r,i]}var o=this.$refs["canvas"].offsetWidth;this.graph=new u.a.Graph({plugins:e,container:this.$refs["canvas"],height:this.height,width:o,modes:{default:["drag-canvas","clickSelected"],view:[],edit:["drag-canvas","hoverNodeActived","hoverAnchorActived","dragNode","dragEdge","dragPanelItemAddNode","clickSelected","deleteItem","itemAlign","dragPoint","brush-select"]},defaultEdge:{shape:"flow-polyline-round"}}),this.graph.saveXML=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return Object(m["exportXML"])(t.graph.save(),t.processModel,e)},this.graph.saveImg=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return Object(m["exportImg"])(t.$refs["canvas"],t.processModel.name,e)},this.isView?this.graph.setMode("view"):this.graph.setMode(this.mode),this.graph.data(this.initShape(this.data)),this.graph.render(),this.isView&&this.data&&this.data.nodes&&this.graph.fitView(5),this.initEvents()},created:function(){this.processModel=this.propProcessModel,this.selectedModel=this.processModel}},M=w,_=(n("d008"),n("2877")),S=Object(_["a"])(M,r,i,!1,null,"ab9dcc2e",null);e["default"]=S.exports},"7c64":function(t,e,n){var r=n("e24b"),i=n("5e2e"),o=n("79bc");function a(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}t.exports=a},"7c8a":function(t,e,n){"use strict";var r,i,o,a;function s(){r=document.createElement("table"),i=document.createElement("tr"),o=/^\s*<(\w+|!)[^>]*>/,a={tr:document.createElement("tbody"),tbody:r,thead:r,tfoot:r,td:i,th:i,"*":document.createElement("div")}}function u(t){r||s();var e=o.test(t)&&RegExp.$1;e&&e in a||(e="*");var n=a[e];t=t.replace(/(^\s*)|(\s*$)/g,""),n.innerHTML=""+t;var i=n.childNodes[0];return n.removeChild(i),i}function c(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return c}))},"7d16":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("b455"),i=n("c3e2"),o=n("493b");function a(t,e,n,r,i){var o=1-i;return o*o*o*t+3*e*i*o*o+3*n*i*i*o+r*i*i*i}function s(t,e,n,r,i){var o=1-i;return 3*(o*o*(e-t)+2*o*i*(n-e)+i*i*(r-n))}function u(t,e,n,i){var o,a,s,u=-3*t+9*e-9*n+3*i,c=6*t-12*e+6*n,f=3*e-3*t,l=[];if(r.isNumberEqual(u,0))r.isNumberEqual(c,0)||(o=-f/c,o>=0&&o<=1&&l.push(o));else{var h=c*c-4*u*f;r.isNumberEqual(h,0)?l.push(-c/(2*u)):h>0&&(s=Math.sqrt(h),o=(-c+s)/(2*u),a=(-c-s)/(2*u),o>=0&&o<=1&&l.push(o),a>=0&&a<=1&&l.push(a))}return l}function c(t,e,n,r,o,s,u,c,f){var l=a(t,n,o,u,f),h=a(e,r,s,c,f),d=i.default.pointAt(t,e,n,r,f),p=i.default.pointAt(n,r,o,s,f),g=i.default.pointAt(o,s,u,c,f),v=i.default.pointAt(d.x,d.y,p.x,p.y,f),y=i.default.pointAt(p.x,p.y,g.x,g.y,f);return[[t,e,d.x,d.y,v.x,v.y,l,h],[l,h,y.x,y.y,g.x,g.y,u,c]]}function f(t,e,n,r,i,a,s,u,l){if(0===l)return o.snapLength([t,n,i,s],[e,r,a,u]);var h=c(t,e,n,r,i,a,s,u,.5),d=h[0],p=h[1];return d.push(l-1),p.push(l-1),f.apply(null,d)+f.apply(null,p)}e.default={extrema:u,box:function(t,e,n,i,o,s,c,f){for(var l=[t,c],h=[e,f],d=u(t,n,o,c),p=u(e,i,s,f),g=0;g<d.length;g++)l.push(a(t,n,o,c,d[g]));for(g=0;g<p.length;g++)h.push(a(e,i,s,f,p[g]));return r.getBBoxByArray(l,h)},length:function(t,e,n,r,i,o,a,s){return f(t,e,n,r,i,o,a,s,3)},nearestPoint:function(t,e,n,r,i,s,u,c,f,l,h){return o.nearestPoint([t,n,i,u],[e,r,s,c],f,l,a,h)},pointDistance:function(t,e,n,i,o,a,s,u,c,f,l){var h=this.nearestPoint(t,e,n,i,o,a,s,u,c,f,l);return r.distance(h.x,h.y,c,f)},interpolationAt:a,pointAt:function(t,e,n,r,i,o,s,u,c){return{x:a(t,n,i,s,c),y:a(e,r,o,u,c)}},divide:function(t,e,n,r,i,o,a,s,u){return c(t,e,n,r,i,o,a,s,u)},tangentAngle:function(t,e,n,i,o,a,u,c,f){var l=s(t,n,o,u,f),h=s(e,i,a,c,f);return r.piMod(Math.atan2(h,l))}}},"7d1f":function(t,e,n){var r=n("087d"),i=n("6747");function o(t,e,n){var o=e(t);return i(t)?o:r(o,n(t))}t.exports=o},"7d69":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("9ab4"),i=n("56fa"),o=n("8937"),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=[0,0],e.maxIteration=500,e.gravity=10,e.clustering=!1,e.clusterGravity=10,e.linkDistance=50,e.alpha=1,e.alphaMin=.001,e.alphaDecay=1-Math.pow(e.alphaMin,1/300),e.alphaTarget=0,e.velocityDecay=.6,e.linkStrength=1,e.nodeStrength=30,e.preventOverlap=!1,e.collideStrength=1,e.optimizeRangeFactor=1,e.tick=function(){},e.nodes=[],e.edges=[],e.width=300,e.height=300,e.bias=[],e.nodeMap={},e.nodeIdxMap={},e}return(0,r.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{maxIteration:1e3,center:[0,0],gravity:10,speed:1,clustering:!1,clusterGravity:10,preventOverlap:!1,nodeSpacing:void 0,collideStrength:10}},e.prototype.execute=function(){var t=this,e=t.nodes,n=t.center;if(e&&0!==e.length){if(1===e.length)return e[0].x=n[0],void(e[0].y=n[1]);var r={},i={};e.forEach((function(t,e){r[t.id]=t,i[t.id]=e})),t.nodeMap=r,t.nodeIdxMap=i,t.run()}},e.prototype.run=function(){var t=this,e=t.nodes,n=t.edges,r=t.maxIteration;t.width||"undefined"===typeof window||(t.width=window.innerWidth),t.height||"undefined"===typeof window||(t.height=window.innerHeight);var i,a=t.center,s=t.velocityDecay,u=t.clustering;t.initVals(),u&&(i=t.getClusterMap());for(var c=function(r){var a=[];e.forEach((function(t,e){a[e]={x:0,y:0}})),t.applyCalculate(e,n,a),u&&t.applyClusterForce(i,a),e.forEach((function(t,e){(0,o.isNumber)(t.x)&&(0,o.isNumber)(t.y)&&(t.x+=a[e].x*s,t.y+=a[e].y*s)})),f.alpha+=(f.alphaTarget-f.alpha)*f.alphaDecay,t.tick()},f=this,l=0;l<r;l++)c(l);var h=[0,0];e.forEach((function(t){(0,o.isNumber)(t.x)&&(0,o.isNumber)(t.y)&&(h[0]+=t.x,h[1]+=t.y)})),h[0]/=e.length,h[1]/=e.length;var d=[a[0]-h[0],a[1]-h[1]];e.forEach((function(t,e){(0,o.isNumber)(t.x)&&(0,o.isNumber)(t.y)&&(t.x+=d[0],t.y+=d[1])}))},e.prototype.initVals=function(){for(var t=this,e=t.edges,n={},r=0;r<e.length;++r)n[e[r].source]?n[e[r].source]++:n[e[r].source]=1,n[e[r].target]?n[e[r].target]++:n[e[r].target]=1;var i=[];for(r=0;r<e.length;++r)i[r]=n[e[r].source]/(n[e[r].source]+n[e[r].target]);this.bias=i;var a,s,u=t.nodeSize,c=t.nodeSpacing;if(s=(0,o.isNumber)(c)?function(){return c}:(0,o.isFunction)(c)?c:function(){return 0},u)if((0,o.isFunction)(u))a=function(t){var e=u(t);return e+s(t)};else if((0,o.isArray)(u)){var f=u[0]>u[1]?u[0]:u[1],l=f/2;a=function(t){return l+s(t)}}else if((0,o.isNumber)(u)){var h=u/2;a=function(t){return h+s(t)}}else a=function(){return 10};else a=function(t){if(t.size){if((0,o.isArray)(t.size)){var e=t.size[0]>t.size[1]?t.size[0]:t.size[1];return e/2+s(t)}return t.size/2+s(t)}return 10+s(t)};this.nodeSize=a;var d,p=this.linkDistance;p&&(p=50),(0,o.isNumber)(p)&&(d=function(t){return p}),this.linkDistance=d;var g,v=this.linkStrength;v||(v=1),(0,o.isNumber)(v)&&(g=function(t){return v}),this.linkStrength=g;var y,m=this.nodeStrength;m||(m=30),(0,o.isNumber)(m)&&(y=function(t){return m}),this.nodeStrength=y},e.prototype.getClusterMap=function(){var t=this,e=t.nodes,n={};for(var r in e.forEach((function(t){if(void 0===n[t.cluster]){var e={name:t.cluster,cx:0,cy:0,count:0};n[t.cluster]=e}var r=n[t.cluster];(0,o.isNumber)(t.x)&&(r.cx+=t.x),(0,o.isNumber)(t.y)&&(r.cy+=t.y),r.count++})),n)n[r].cx/=n[r].count,n[r].cy/=n[r].count;return n},e.prototype.applyClusterForce=function(t,e){var n=this,r=n.gravity,i=n.nodes,a=n.clusterGravity||r,s=this.alpha;for(var u in i.forEach((function(n,r){if((0,o.isNumber)(n.x)&&(0,o.isNumber)(n.y)){var i=t[n.cluster],u=n.x-i.cx,c=n.y-i.cy,f=Math.sqrt(u*u+c*c);e[r].x-=u*a*s/f,e[r].y-=c*a*s/f}})),t)t[u].cx=0,t[u].cy=0,t[u].count=0;for(var u in i.forEach((function(e){var n=t[e.cluster];(0,o.isNumber)(e.x)&&(n.cx+=e.x),(0,o.isNumber)(e.y)&&(n.cy+=e.y),n.count++})),t)t[u].cx/=t[u].count,t[u].cy/=t[u].count},e.prototype.applyCalculate=function(t,e,n){var r=this,i={};t.forEach((function(e,r){n[r]={x:0,y:0},t.forEach((function(t,n){if(!(r<n)){var o=e.x-t.x,a=e.y-t.y,s=o*o+a*a;s<1&&(s=Math.sqrt(s)),0===o&&(o=.01*Math.random(),s+=o*o),0===a&&(a=.01*Math.random(),s+=a*a),i[e.id+"-"+t.id]={vx:o,vy:a,vl:s},i[t.id+"-"+e.id]={vx:-o,vy:-a,vl:s}}}))})),r.calRepulsive(t,n,i),r.calAttractive(e,n,i)},e.prototype.calRepulsive=function(t,e,n){var r=this.width*this.optimizeRangeFactor*this.width*this.optimizeRangeFactor,i=this.nodeStrength,a=this.alpha,s=this.collideStrength,u=this.preventOverlap,c=this.nodeSize;t.forEach((function(f,l){t.forEach((function(t,h){if(l!==h&&(0,o.isNumber)(f.x)&&(0,o.isNumber)(t.x)&&(0,o.isNumber)(f.y)&&(0,o.isNumber)(t.y)){var d=n[f.id+"-"+t.id],p=d.vl,g=d.vx,v=d.vy;if(!(p>r)&&(e[l].x+=g*i(t)*a/p,e[l].y+=v*i(t)*a/p,u&&l<h)){var y=c(f),m=c(t),b=y+m;if(p<b*b){var x=Math.sqrt(p),w=(b-x)/x*s,M=m*m/(y*y+m*m),_=g*w,S=v*w;e[l].x+=_*M,e[l].y+=S*M,M=1-M,e[h].x-=_*M,e[h].y-=S*M}}}}))}))},e.prototype.calAttractive=function(t,e,n){var r=this,i=this.linkDistance,a=this.alpha,s=this.linkStrength,u=this.bias;t.forEach((function(t,c){if(t.source&&t.target){var f=r.nodeIdxMap[t.source],l=r.nodeIdxMap[t.target];if(f!==l){var h=r.nodeMap[t.source],d=r.nodeMap[t.target];if((0,o.isNumber)(d.x)&&(0,o.isNumber)(h.x)&&(0,o.isNumber)(d.y)&&(0,o.isNumber)(h.y)){var p=n[t.target+"-"+t.source],g=p.vl,v=p.vx,y=p.vy,m=(g-i(t))/g*a*s(t),b=v*m,x=y*m,w=u[c];e[l].x-=b*w,e[l].y-=x*w,e[f].x+=b*(1-w),e[f].y+=x*(1-w)}}}}))},e}(i.BaseLayout),s=a;e.default=s},"7da3":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("8937"),i={};function o(t){return i[t]||(i[t]=(0,r.upperFirst)(t)),i[t]}var a={defaultShapeType:"defaultType",className:null,getShape:function(t){var e=this,n=e[t]||e[e.defaultShapeType];return n},draw:function(t,e,n){var r=this.getShape(t),i=r.draw(e,n);return r.afterDraw&&r.afterDraw(e,n,i),i},baseUpdate:function(t,e,n){var r=this.getShape(t);r.update&&r.update(e,n),r.afterUpdate&&r.afterUpdate(e,n)},setState:function(t,e,n,r){var i=this.getShape(t);i.setState(e,n,r)},shouldUpdate:function(t){var e=this.getShape(t);return!!e.update},getControlPoints:function(t,e){var n=this.getShape(t);return n.getControlPoints(e)},getAnchorPoints:function(t,e){var n=this.getShape(t);return n.getAnchorPoints(e)}},s={options:{},draw:function(t,e){return this.drawShape(t,e)},drawShape:function(){},afterDraw:function(){},afterUpdate:function(){},setState:function(){},getControlPoints:function(t){return t.controlPoints},getAnchorPoints:function(t){var e=this.options.anchorPoints,n=t.anchorPoints||e;return n}},u=function(){function t(){}return t.registerFactory=function(e,n){var r=o(e),i=a,s=Object.assign({},i,n);return t[r]=s,s.className=r,s},t.getFactory=function(e){var n=o(e);return t[n]},t.registerNode=function(e,n,r){var i=t.Node,o=r?i.getShape(r):s,a=Object.assign({},o,n);return a.type=e,a.itemType="node",i[e]=a,a},t.registerEdge=function(e,n,r){var i=t.Edge,o=r?i.getShape(r):s,a=Object.assign({},o,n);return a.type=e,a.itemType="edge",i[e]=a,a},t.registerCombo=function(e,n,r){var i=t.Combo,o=r?i.getShape(r):s,a=Object.assign({},o,n);return a.type=e,a.itemType="combo",i[e]=a,a},t}(),c=u;e.default=c,u.registerFactory("node",{defaultShapeType:"circle"}),u.registerFactory("edge",{defaultShapeType:"line"}),u.registerFactory("combo",{defaultShapeType:"circle"})},"7db0":function(t,e,n){"use strict";var r=n("23e7"),i=n("b727").find,o=n("44d2"),a="find",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o(a)},"7db1":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("842b"),i=Number.isInteger?Number.isInteger:function(t){return r.default(t)&&t%1===0};e.default=i},"7e64":function(t,e,n){var r=n("5e2e"),i=n("efb6"),o=n("2fcc"),a=n("802a"),s=n("55a3"),u=n("d02c");function c(t){var e=this.__data__=new r(t);this.size=e.size}c.prototype.clear=i,c.prototype["delete"]=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,t.exports=c},"7ec0":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("b455");function i(t,e){var n=Math.abs(t);return e>0?n:-1*n}e.default={box:function(t,e,n,r){return{x:t-n,y:e-r,width:2*n,height:2*r}},length:function(t,e,n,r){return Math.PI*(3*(n+r)-Math.sqrt((3*n+r)*(n+3*r)))},nearestPoint:function(t,e,n,r,o,a){var s=n,u=r;if(0===s||0===u)return{x:t,y:e};for(var c,f,l=o-t,h=a-e,d=Math.abs(l),p=Math.abs(h),g=s*s,v=u*u,y=Math.PI/4,m=0;m<4;m++){c=s*Math.cos(y),f=u*Math.sin(y);var b=(g-v)*Math.pow(Math.cos(y),3)/s,x=(v-g)*Math.pow(Math.sin(y),3)/u,w=c-b,M=f-x,_=d-b,S=p-x,P=Math.hypot(M,w),k=Math.hypot(S,_),C=P*Math.asin((w*S-M*_)/(P*k)),O=C/Math.sqrt(g+v-c*c-f*f);y+=O,y=Math.min(Math.PI/2,Math.max(0,y))}return{x:t+i(c,l),y:e+i(f,h)}},pointDistance:function(t,e,n,i,o,a){var s=this.nearestPoint(t,e,n,i,o,a);return r.distance(s.x,s.y,o,a)},pointAt:function(t,e,n,r,i){var o=2*Math.PI*i;return{x:t+n*Math.cos(o),y:e+r*Math.sin(o)}},tangentAngle:function(t,e,n,i,o){var a=2*Math.PI*o,s=Math.atan2(i*Math.cos(a),-n*Math.sin(a));return r.piMod(s)}}},"7ed2":function(t,e){var n="__lodash_hash_undefined__";function r(t){return this.__data__.set(t,n),this}t.exports=r},"7f6b":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseRadius=e.parseStyle=e.parsePattern=e.parseRadialGradient=e.parseLineGradient=void 0;var r=n("516b"),i=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,o=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,a=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function u(t,e){var n=t.match(s);r.each(n,(function(t){var n=t.split(":");e.addColorStop(n[0],n[1])}))}function c(t,e,n){var r,o,a=i.exec(n),s=parseFloat(a[1])%360*(Math.PI/180),c=a[2],f=e.getBBox();s>=0&&s<.5*Math.PI?(r={x:f.minX,y:f.minY},o={x:f.maxX,y:f.maxY}):.5*Math.PI<=s&&s<Math.PI?(r={x:f.maxX,y:f.minY},o={x:f.minX,y:f.maxY}):Math.PI<=s&&s<1.5*Math.PI?(r={x:f.maxX,y:f.maxY},o={x:f.minX,y:f.minY}):(r={x:f.minX,y:f.maxY},o={x:f.maxX,y:f.minY});var l=Math.tan(s),h=l*l,d=(o.x-r.x+l*(o.y-r.y))/(h+1)+r.x,p=l*(o.x-r.x+l*(o.y-r.y))/(h+1)+r.y,g=t.createLinearGradient(r.x,r.y,d,p);return u(c,g),g}function f(t,e,n){var r=o.exec(n),i=parseFloat(r[1]),a=parseFloat(r[2]),c=parseFloat(r[3]),f=r[4];if(0===c){var l=f.match(s);return l[l.length-1].split(":")[1]}var h=e.getBBox(),d=h.maxX-h.minX,p=h.maxY-h.minY,g=Math.sqrt(d*d+p*p)/2,v=t.createRadialGradient(h.minX+d*i,h.minY+p*a,0,h.minX+d/2,h.minY+p/2,c*g);return u(f,v),v}function l(t,e,n){if(e.get("patternSource")&&e.get("patternSource")===n)return e.get("pattern");var r,i,o=a.exec(n),s=o[1],u=o[2];function c(){r=t.createPattern(i,s),e.set("pattern",r),e.set("patternSource",n)}switch(s){case"a":s="repeat";break;case"x":s="repeat-x";break;case"y":s="repeat-y";break;case"n":s="no-repeat";break;default:s="no-repeat"}return i=new Image,u.match(/^data:/i)||(i.crossOrigin="Anonymous"),i.src=u,i.complete?c():(i.onload=c,i.src=i.src),r}function h(t,e,n){if(r.isString(n)){if("("===n[1]||"("===n[2]){if("l"===n[0])return c(t,e,n);if("r"===n[0])return f(t,e,n);if("p"===n[0])return l(t,e,n)}return n}}function d(t){var e=0,n=0,i=0,o=0;return r.isArray(t)?1===t.length?e=n=i=o=t[0]:2===t.length?(e=i=t[0],n=o=t[1]):3===t.length?(e=t[0],n=o=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],o=t[3]):e=n=i=o=t,[e,n,i,o]}e.parseLineGradient=c,e.parseRadialGradient=f,e.parsePattern=l,e.parseStyle=h,e.parseRadius=d},"7fa27":function(t,e,n){"use strict";n.r(e);var r="*",i=function(){function t(){this._events={}}return t.prototype.on=function(t,e,n){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:e,once:!!n}),this},t.prototype.once=function(t,e){return this.on(t,e,!0),this},t.prototype.emit=function(t){for(var e=this,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var o=this._events[t]||[],a=this._events[r]||[],s=function(r){for(var i=r.length,o=0;o<i;o++)if(r[o]){var a=r[o],s=a.callback,u=a.once;u&&(r.splice(o,1),0===r.length&&delete e._events[t],i--,o--),s.apply(e,n)}};s(o),s(a)},t.prototype.off=function(t,e){if(t)if(e){for(var n=this._events[t]||[],r=n.length,i=0;i<r;i++)n[i].callback===e&&(n.splice(i,1),r--,i--);0===n.length&&delete this._events[t]}else delete this._events[t];else this._events={};return this},t.prototype.getEvents=function(){return this._events},t}();e["default"]=i},"802a":function(t,e){function n(t){return this.__data__.get(t)}t.exports=n},"804a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.calculationItemsBBox=e.isNaN=e.isViewportChanged=e.cloneEvent=e.formatPadding=void 0;var r=c(n("01f9")),i=c(n("28f9")),o=c(n("842b")),a=c(n("61d8")),s=n("e0eb"),u=n("2470");function c(t){return t&&t.__esModule?t:{default:t}}var f=function(t){var e=0,n=0,s=0,u=0;if((0,o.default)(t))e=n=s=u=t;else if((0,a.default)(t)){var c=parseInt(t,10);e=n=s=u=c}else(0,r.default)(t)&&(e=t[0],s=(0,i.default)(t[1])?t[0]:t[1],u=(0,i.default)(t[2])?t[0]:t[2],n=(0,i.default)(t[3])?s:t[3]);return[e,s,u,n]};e.formatPadding=f;var l=function(t){var e=new s.G6GraphEvent(t.type,t);return e.clientX=t.clientX,e.clientY=t.clientY,e.x=t.x,e.y=t.y,e.target=t.target,e.currentTarget=t.currentTarget,e.bubbles=!0,e.item=t.item,e};e.cloneEvent=l;var h=function(t){if(!t)return!1;for(var e=9,n=u.mat3.create(),r=0;r<e;r++)if(t[r]!==n[r])return!0;return!1};e.isViewportChanged=h;var d=function(t){return Number.isNaN(Number(t))};e.isNaN=d;var p=function(t){for(var e=1/0,n=-1/0,r=1/0,i=-1/0,o=0;o<t.length;o++){var a=t[o],s=a.getBBox(),u=s.minX,c=s.minY,f=s.maxX,l=s.maxY;u<e&&(e=u),c<r&&(r=c),f>n&&(n=f),l>i&&(i=l)}var h=Math.floor(e),d=Math.floor(r),p=Math.ceil(n)-Math.floor(e),g=Math.ceil(i)-Math.floor(r);return{x:h,y:d,width:p,height:g,minX:e,minY:r}};e.calculationItemsBBox=p},8057:function(t,e){function n(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(!1===e(t[n],n,t))break;return t}t.exports=n},"80f6":function(t,e,n){var r=n("76e9"),i=n("badf"),o=n("8d20");function a(t,e){return t&&t.length?r(t,i(e,2),o):void 0}t.exports=a},"814b":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("060b"),i=n("487c");function o(t,e){e.forEach((function(e){e.draw(t)}))}function a(t,e){var n=t.get("canvas");if(n&&n.get("autoDraw")){var o=n.get("context"),a=t.getParent(),s=a?a.getChildren():[n],u=t.get("el");if("remove"===e){var c=t.get("isClipShape");if(c){var f=u&&u.parentNode,l=f&&f.parentNode;f&&l&&l.removeChild(f)}else u&&u.parentNode&&u.parentNode.removeChild(u)}else if("show"===e)u.setAttribute("visibility","visible");else if("hide"===e)u.setAttribute("visibility","hidden");else if("zIndex"===e)i.moveTo(u,s.indexOf(t));else if("sort"===e){var h=t.get("children");h&&h.length&&i.sortDom(t,(function(t,e){return h.indexOf(t)-h.indexOf(e)?1:0}))}else"clear"===e?u&&(u.innerHTML=""):"matrix"===e?r.setTransform(t):"clip"===e?r.setClip(t,o):"attr"===e||"add"===e&&t.draw(o)}}e.drawChildren=o,e.refreshElement=a},8185:function(t,e,n){var r=n("33de");function i(t){var e={},n={},i=[];function a(s){if(r.has(n,s))throw new o;r.has(e,s)||(n[s]=!0,e[s]=!0,r.each(t.predecessors(s),a),delete n[s],i.push(s))}if(r.each(t.sinks(),a),r.size(e)!==t.nodeCount())throw new o;return i}function o(){}t.exports=i,i.CycleException=o,o.prototype=new Error},8270:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=s(n("cc0c")),i=s(n("5439")),o=s(n("980a")),a=s(n("390f"));function s(t){return t&&t.__esModule?t:{default:t}}var u={Menu:i.default,Grid:r.default,Minimap:o.default,Bundling:a.default};e.default=u},"83bc":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("5d64");function i(t){var e=t.attr(),n=e.x,i=e.y,o=e.text,a=e.fontSize,s=e.lineHeight,u=e.font;u||(u=r.assembleFont(e));var c,f=r.getTextWidth(o,u);if(f){var l=e.textAlign,h=e.textBaseline,d=r.getTextHeight(o,a,s),p={x:n,y:i-d};l&&("end"===l||"right"===l?p.x-=f:"center"===l&&(p.x-=f/2)),h&&("top"===h?p.y+=d:"middle"===h&&(p.y+=d/2)),c={x:p.x,y:p.y,width:f,height:d}}else c={x:n,y:i,width:0,height:0};return c}e.default=i},"83be":function(t,e,n){"use strict";function r(t){var e=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout;e(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},"83e4":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=1e-6;function i(t){return Math.abs(t)<r?0:t<0?-1:1}function o(t,e,n){return(n[0]-t[0])*(e[1]-t[1])===(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function a(t,e,n){var r=!1,a=t.length;if(a<=2)return!1;for(var s=0;s<a;s++){var u=t[s],c=t[(s+1)%a];if(o(u,c,[e,n]))return!0;i(u[1]-n)>0!==i(c[1]-n)>0&&i(e-(n-u[1])*(u[0]-c[0])/(u[1]-c[1])-u[0])<0&&(r=!r)}return r}e.default=a},"842b":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("bd8b"),i=function(t){return r.default(t,"Number")};e.default=i},8520:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("9ab4"),i=n("b4ae"),o=n("0dfa"),a=n("56fa"),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=[0,0],e.linkDistance=50,e.scaledDistances=null,e}return(0,r.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{center:[0,0],linkDistance:50}},e.prototype.execute=function(){var t=this,e=t.nodes,n=t.edges,r=void 0===n?[]:n,i=t.center;if(e&&0!==e.length){if(1===e.length)return e[0].x=i[0],void(e[0].y=i[1]);var a=t.linkDistance,s=(0,o.getAdjMatrix)({nodes:e,edges:r},!1),u=(0,o.floydWarshall)(s);t.handleInfinity(u);var c=(0,o.scaleMatrix)(u,a);t.scaledDistances=c;var f=t.runMDS();t.positions=f,f.forEach((function(t,n){e[n].x=t[0]+i[0],e[n].y=t[1]+i[1]}))}},e.prototype.runMDS=function(){var t=this,e=2,n=t.scaledDistances,r=i.Matrix.mul(i.Matrix.pow(n,2),-.5),o=r.mean("row"),a=r.mean("column"),s=r.mean();r.add(s).subRowVector(o).subColumnVector(a);var u=new i.SingularValueDecomposition(r),c=i.Matrix.sqrt(u.diagonalMatrix).diagonal();return u.leftSingularVectors.toJSON().map((function(t){return i.Matrix.mul([t],[c]).toJSON()[0].splice(0,e)}))},e.prototype.handleInfinity=function(t){var e=-999999;t.forEach((function(t){t.forEach((function(t){t!==1/0&&e<t&&(e=t)}))})),t.forEach((function(n,r){n.forEach((function(n,i){n===1/0&&(t[r][i]=e)}))}))},e}(a.BaseLayout),u=s;e.default=u},"85e0":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("28f9"),i=n("0da4");function o(t,e){var n=i.default(e),o=n.length;if(r.default(t))return!o;for(var a=0;a<o;a+=1){var s=n[a];if(e[s]!==t[s]||!(s in t))return!1}return!0}e.default=o},"85e3":function(t,e){function n(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}t.exports=n},8604:function(t,e,n){var r=n("26e8"),i=n("e2c0");function o(t,e){return null!=t&&i(t,e,r)}t.exports=o},"872a":function(t,e,n){var r=n("3b4a");function i(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}t.exports=i},8783:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("e32d"),i=n("e275"),o=function(t,e){return void 0===e&&(e=[]),r.default(t,(function(t){return!i.default(e,t)}))};e.default=o},8817:function(t,e,n){var r=n("6f9c"),i=n("17d5").Graph;function o(t,e,n){var o=a(t),s=new i({compound:!0}).setGraph({root:o}).setDefaultNodeLabel((function(e){return t.node(e)}));return r.forEach(t.nodes(),(function(i){var a=t.node(i),u=t.parent(i);(a.rank===e||a.minRank<=e&&e<=a.maxRank)&&(s.setNode(i),s.setParent(i,u||o),r.forEach(t[n](i),(function(e){var n=e.v===i?e.w:e.v,o=s.edge(n,i),a=r.isUndefined(o)?0:o.weight;s.setEdge(n,i,{weight:t.edge(e).weight+a})})),r.has(a,"minRank")&&s.setNode(i,{borderLeft:a.borderLeft[e],borderRight:a.borderRight[e]}))})),s}function a(t){var e;while(t.hasNode(e=r.uniqueId("_root")));return e}t.exports=o},"89d9":function(t,e,n){var r=n("656b"),i=n("159a"),o=n("e2e4");function a(t,e,n){var a=-1,s=e.length,u={};while(++a<s){var c=e[a],f=r(t,c);n(f,c)&&i(u,o(c,t),f)}return u}t.exports=a},"89e6":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("9ab4"),i=a(n("1b95")),o=a(n("067f"));function a(t){return t&&t.__esModule?t:{default:t}}var s=document.body,u={getDefaultCfg:function(){return{updateEdge:!0,delegate:!0,delegateStyle:{},maxMultiple:1.1,minMultiple:1}},getEvents:function(){return{"node:dragstart":"onDragStart","node:drag":"onDrag","node:dragend":"onDragEnd","canvas:mouseleave":"onOutOfRange",dragover:"onDragOver",dragleave:"onDragLeave"}},onDragOver:function(t){var e=this.graph,n=t.target,r=n.get("groupId");if(r&&this.origin){var i=e.get("customGroupControll"),o=i.getDeletageGroupById(r);if(o){var a=o.nodeGroup,s=a.get("keyShape");this.inGroupId=r,i.setGroupStyle(s,"hover")}}},onDragLeave:function(t){var e=this.graph,n=t.target,r=n.get("groupId");if(r&&this.origin){var i=e.get("customGroupControll"),o=i.getDeletageGroupById(r);if(o){var a=o.nodeGroup,s=a.get("keyShape");i.setGroupStyle(s,"default")}}r||(this.inGroupId=null)},onDragStart:function(t){var e=this.graph;if(this.shouldBegin.call(this,t)){var n=t.item;this.target=n;var r=n.getModel(),i=r.groupId;if(i){var o=e.get("customGroupControll"),a=o.getDeletageGroupById(i);if(a){var s=a.nodeGroup,u=s.get("keyShape");o.setGroupStyle(u,"hover"),this.inGroupId=i}}this.origin={x:t.x,y:t.y},this.point={},this.originPoint={}}},onDrag:function(t){if(this.origin&&this.get("shouldUpdate").call(this,t)){this.update(this.target,t,!0);var e=t.item,n=this.graph,r=e.getModel(),i=r.groupId;if(i){var o=n.get("customGroupControll"),a=o.getDeletageGroupById(i);if(a){var s=a.nodeGroup,u=s.get("keyShape");this.inGroupId!==i?o.setGroupStyle(u,"default"):o.setGroupStyle(u,"hover")}}}},onDragEnd:function(t){if(this.origin&&this.shouldEnd.call(this,t)){if(this.shape&&(this.shape.remove(),this.shape=null),this.target){var e=this.target.get("delegateShape");e&&(e.remove(),this.target.set("delegateShape",null))}this.target&&this.update(this.target,t),this.point={},this.origin=null,this.originPoint={},this.target=null,this.setCurrentGroupStyle(t)}},setCurrentGroupStyle:function(t){var e=this.graph,n=t.item,r=n.getModel(),i=r.groupId,o=r.id,a=e.get("customGroupControll"),s=a.customGroup,u=e.get("groupNodes");if(this.inGroupId&&i){var c=s[i].nodeGroup;if(!c)return;var f=c.get("keyShape"),l=n.getBBox(),h=f.getBBox(),d=l.centerX,p=l.centerY,g=h.minX,v=h.minY,y=h.maxX,m=h.maxY;if(!(d<y*this.maxMultiple&&d>g*this.minMultiple&&p<m*this.maxMultiple&&p>v*this.minMultiple)||this.inGroupId!==i){var b=u[i];u[i]=b.filter((function(t){return t!==o})),a.dynamicChangeGroupSize(t,c,f),delete r.groupId}if(this.inGroupId!==i){var x=s[this.inGroupId].nodeGroup;if(!x)return;var w=x.get("keyShape");-1===u[this.inGroupId].indexOf(o)&&u[this.inGroupId].push(o),r.groupId=this.inGroupId,a.dynamicChangeGroupSize(t,x,w)}a.setGroupStyle(f,"default")}else if(this.inGroupId&&!i){x=s[this.inGroupId].nodeGroup;if(!x)return;f=x.get("keyShape");-1===u[this.inGroupId].indexOf(o)&&u[this.inGroupId].push(o),r.groupId=this.inGroupId,a.dynamicChangeGroupSize(t,x,f)}else if(!this.inGroupId&&i){Object.keys(u).forEach((function(t){var e=u[t];u[t]=e.filter((function(t){return t!==o}))}));c=s[i].nodeGroup;if(!c)return;f=c.get("keyShape");a.dynamicChangeGroupSize(t,c,f),delete r.groupId}this.inGroupId=null},onOutOfRange:function(t){var e=this,n=e.graph.get("canvas").get("el");function r(i){i.target!==n&&(t.item=e.target,e.onDragEnd(t),document.body.removeEventListener("mouseup",r,!0))}e.origin&&s.addEventListener("mouseup",r,!0)},update:function(t,e,n){var r=this.origin,i=t.get("model"),o=t.get("id");this.point[o]||(this.point[o]={x:i.x,y:i.y});var a=e.x-r.x+this.point[o].x,s=e.y-r.y+this.point[o].y;if(n)this.updateDelegate(e,a,s);else{var u={x:a,y:s};this.get("updateEdge")?this.graph.updateItem(t,u):(t.updatePosition(u),this.graph.paint())}},updateDelegate:function(t,e,n){var a=this.graph,s=t.item,u=a.get("groupType"),c=s.get("keyShape").getBBox();if(!this.shape){var f=a.get("delegateGroup"),l=(0,i.default)({},o.default.delegateStyle,this.delegateStyle);this.target&&(this.shape=f.addShape("rect",{attrs:(0,r.__assign)({width:c.width,height:c.height,x:e-c.width/2,y:n-c.height/2},l),name:"delegate-shape"}),this.target.set("delegateShape",this.shape)),this.shape.set("capture",!1)}this.target&&("circle"===u?this.shape.attr({x:e-c.width/2,y:n-c.height/2}):"rect"===u&&this.shape.attr({x:e,y:n}))}};e.default=u},"8adb":function(t,e){function n(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]}t.exports=n},"8be5":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getAllNodeInGroups=void 0;var r=n("9ab4"),i=o(n("07ea"));function o(t){return t&&t.__esModule?t:{default:t}}var a=function(t){var e=(0,i.default)(t.groups,"id"),n=(0,i.default)(t.groups,"parentId"),o={};for(var a in n)if(a){var s=n[a],u=e[a];if(u&&s){var c=(0,r.__spreadArrays)(s,u);o[a]=c}else s&&(o[a]=s)}var f=Object.assign({},e,o),l={};for(var h in f)if(h&&"undefined"!==h){s=f[h].map((function(t){return t.id}));l[h]=s}var d={},p=function(e){if(!e||"undefined"===e)return"continue";for(var n=l[e],r=[],i=0,o=n;i<o.length;i++){var a=o[i],s=f[a].map((function(t){return t.id}));r.push.apply(r,s)}var u=t.nodes?t.nodes.filter((function(t){return r.indexOf(t.groupId)>-1||r.indexOf(t.parentId)>-1})).map((function(t){return t.id})):[];d[e]=u};for(var h in l)p(h);return d};e.getAllNodeInGroups=a},"8c55":function(t,e,n){"use strict";var r=n("6f9c"),i=n("17d5").Graph,o=n("b50e");function a(t,e){var n={};function i(e,i){var o=0,a=0,s=e.length,f=r.last(i);return r.forEach(i,(function(e,l){var h=u(t,e),d=h?t.node(h).order:s;(h||e===f)&&(r.forEach(i.slice(a,l+1),(function(e){r.forEach(t.predecessors(e),(function(r){var i=t.node(r),a=i.order;!(a<o||d<a)||i.dummy&&t.node(e).dummy||c(n,r,e)}))})),a=l+1,o=d)})),i}return r.reduce(e,i),n}function s(t,e){var n={};function i(e,i,o,a,s){var u;r.forEach(r.range(i,o),(function(i){u=e[i],t.node(u).dummy&&r.forEach(t.predecessors(u),(function(e){var r=t.node(e);r.dummy&&(r.order<a||r.order>s)&&c(n,e,u)}))}))}function o(e,n){var o,a=-1,s=0;return r.forEach(n,(function(r,u){if("border"===t.node(r).dummy){var c=t.predecessors(r);c.length&&(o=t.node(c[0]).order,i(n,s,u,a,o),s=u,a=o)}i(n,s,n.length,o,e.length)})),n}return r.reduce(e,o),n}function u(t,e){if(t.node(e).dummy)return r.find(t.predecessors(e),(function(e){return t.node(e).dummy}))}function c(t,e,n){if(e>n){var r=e;e=n,n=r}var i=t[e];i||(t[e]=i={}),i[n]=!0}function f(t,e,n){if(e>n){var i=e;e=n,n=i}return r.has(t[e],n)}function l(t,e,n,i){var o={},a={},s={};return r.forEach(e,(function(t){r.forEach(t,(function(t,e){o[t]=t,a[t]=t,s[t]=e}))})),r.forEach(e,(function(t){var e=-1;r.forEach(t,(function(t){var u=i(t);if(u.length){u=r.sortBy(u,(function(t){return s[t]}));for(var c=(u.length-1)/2,l=Math.floor(c),h=Math.ceil(c);l<=h;++l){var d=u[l];a[t]===t&&e<s[d]&&!f(n,t,d)&&(a[d]=t,a[t]=o[t]=o[d],e=s[d])}}}))})),{root:o,align:a}}function h(t,e,n,i,o){var a={},s=d(t,e,n,o),u=o?"borderLeft":"borderRight";function c(t,e){var n=s.nodes(),r=n.pop(),i={};while(r)i[r]?t(r):(i[r]=!0,n.push(r),n=n.concat(e(r))),r=n.pop()}function f(t){a[t]=s.inEdges(t).reduce((function(t,e){return Math.max(t,a[e.v]+s.edge(e))}),0)}function l(e){var n=s.outEdges(e).reduce((function(t,e){return Math.min(t,a[e.w]-s.edge(e))}),Number.POSITIVE_INFINITY),r=t.node(e);n!==Number.POSITIVE_INFINITY&&r.borderType!==u&&(a[e]=Math.max(a[e],n))}return c(f,s.predecessors.bind(s)),c(l,s.successors.bind(s)),r.forEach(i,(function(t){a[t]=a[n[t]]})),a}function d(t,e,n,o){var a=new i,s=t.graph(),u=m(s.nodesep,s.edgesep,o);return r.forEach(e,(function(e){var i;r.forEach(e,(function(e){var r=n[e];if(a.setNode(r),i){var o=n[i],s=a.edge(o,r);a.setEdge(o,r,Math.max(u(t,e,i),s||0))}i=e}))})),a}function p(t,e){return r.minBy(r.values(e),(function(e){var n=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return r.forIn(e,(function(e,r){var o=b(t,r)/2;n=Math.max(e+o,n),i=Math.min(e-o,i)})),n-i}))}function g(t,e){var n=r.values(e),i=r.min(n),o=r.max(n);r.forEach(["u","d"],(function(n){r.forEach(["l","r"],(function(a){var s,u=n+a,c=t[u];if(c!==e){var f=r.values(c);s="l"===a?i-r.min(f):o-r.max(f),s&&(t[u]=r.mapValues(c,(function(t){return t+s})))}}))}))}function v(t,e){return r.mapValues(t.ul,(function(n,i){if(e)return t[e.toLowerCase()][i];var o=r.sortBy(r.map(t,i));return(o[1]+o[2])/2}))}function y(t){var e,n=o.buildLayerMatrix(t),i=r.merge(a(t,n),s(t,n)),u={};r.forEach(["u","d"],(function(o){e="u"===o?n:r.values(n).reverse(),r.forEach(["l","r"],(function(n){"r"===n&&(e=r.map(e,(function(t){return r.values(t).reverse()})));var a=("u"===o?t.predecessors:t.successors).bind(t),s=l(t,e,i,a),c=h(t,e,s.root,s.align,"r"===n);"r"===n&&(c=r.mapValues(c,(function(t){return-t}))),u[o+n]=c}))}));var c=p(t,u);return g(u,c),v(u,t.graph().align)}function m(t,e,n){return function(i,o,a){var s,u=i.node(o),c=i.node(a),f=0;if(f+=u.width/2,r.has(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":s=-u.width/2;break;case"r":s=u.width/2;break}if(s&&(f+=n?s:-s),s=0,f+=(u.dummy?e:t)/2,f+=(c.dummy?e:t)/2,f+=c.width/2,r.has(c,"labelpos"))switch(c.labelpos.toLowerCase()){case"l":s=c.width/2;break;case"r":s=-c.width/2;break}return s&&(f+=n?s:-s),s=0,f}}function b(t,e){return t.node(e).width}t.exports={positionX:y,findType1Conflicts:a,findType2Conflicts:s,addConflict:c,hasConflict:f,verticalAlignment:l,horizontalCompaction:h,alignCoordinates:g,findSmallestWidthAlignment:p,balance:v}},"8d20":function(t,e){function n(t,e){return t<e}t.exports=n},"8d2b":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("842b"),i=function(t){return r.default(t)&&t<0};e.default=i},"8d74":function(t,e,n){var r=n("4cef"),i=/^\s+/;function o(t){return t?t.slice(0,r(t)+1).replace(i,""):t}t.exports=o},"8d88":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("503e"),i=n("2047"),o=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t[0],o=1;o<t.length;o++){var a=t[o];i.default(a)&&(a=a.prototype),r.default(n.prototype,a)}};e.default=o},"8db3":function(t,e,n){var r=n("47f5");function i(t,e){var n=null==t?0:t.length;return!!n&&r(t,e,0)>-1}t.exports=i},"8de2":function(t,e,n){var r=n("8eeb"),i=n("9934");function o(t){return r(t,i(t))}t.exports=o},"8e80":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("01f9"),i=n("61d8");function o(t,e){return!(!r.default(t)&&!i.default(t))&&t[0]===e}e.default=o},"8eeb":function(t,e,n){var r=n("32b3"),i=n("872a");function o(t,e,n,o){var a=!n;n||(n={});var s=-1,u=e.length;while(++s<u){var c=e[s],f=o?o(n[c],t[c],c,n,t):void 0;void 0===f&&(f=t[c]),a?i(n,c,f):r(n,c,f)}return n}t.exports=o},"90c8":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ModeController",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"ViewController",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"EventController",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"ItemController",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"LayoutController",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"StateController",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"CustomGroup",{enumerable:!0,get:function(){return c.default}});var r=f(n("157e")),i=f(n("1649")),o=f(n("31a5")),a=f(n("e24f")),s=f(n("4863")),u=f(n("4e63")),c=f(n("2d2a"));function f(t){return t&&t.__esModule?t:{default:t}}},"90e6":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),i=n("9705"),o=n("516b"),a=n("5d64"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.isOnlyHitBox=function(){return!0},e.prototype.initAttrs=function(t){this._assembleFont(),t.text&&this._setText(t.text)},e.prototype._assembleFont=function(){var t=this.attrs;t.font=a.assembleFont(t)},e.prototype._setText=function(t){var e=null;o.isString(t)&&-1!==t.indexOf("\n")&&(e=t.split("\n")),this.set("textArr",e)},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),e.startsWith("font")&&this._assembleFont(),"text"===e&&this._setText(n)},e.prototype._getSpaceingY=function(){var t=this.attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},e.prototype._drawTextArr=function(t,e,n){var r,i=this.attrs,s=i.textBaseline,u=i.x,c=i.y,f=1*i.fontSize,l=this._getSpaceingY(),h=a.getTextHeight(i.text,i.fontSize,i.lineHeight);o.each(e,(function(e,i){r=c+i*(l+f)-h+f,"middle"===s&&(r+=h-f-(h-f)/2),"top"===s&&(r+=h-f),n?t.fillText(e,u,r):t.strokeText(e,u,r)}))},e.prototype._drawText=function(t,e){var n=this.attr(),r=n.x,i=n.y,o=this.get("textArr");if(o)this._drawTextArr(t,o,e);else{var a=n.text;e?t.fillText(a,r,i):t.strokeText(a,r,i)}},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,a=e.fillOpacity;this.isStroke()&&n>0&&(o.isNil(i)||1===i||(t.globalAlpha=r),this.stroke(t)),this.isFill()&&(o.isNil(a)||1===a?this.fill(t):(t.globalAlpha=a,this.fill(t),t.globalAlpha=r)),this.afterDrawPath(t)},e.prototype.fill=function(t){this._drawText(t,!0)},e.prototype.stroke=function(t){this._drawText(t,!1)},e}(i.default);e.default=s},"90f6":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isSamePoint=void 0;var r=n("8937");function i(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function o(t,e){return i(t)*i(e)?(t[0]*e[0]+t[1]*e[1])/(i(t)*i(e)):1}function a(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(o(t,e))}function s(t,e){return t[0]===e[0]&&t[1]===e[1]}function u(t,e){var n=e[1],i=e[2],u=(0,r.mod)((0,r.toRadian)(e[3]),2*Math.PI),c=e[4],f=e[5],l=t[0],h=t[1],d=e[6],p=e[7],g=Math.cos(u)*(l-d)/2+Math.sin(u)*(h-p)/2,v=-1*Math.sin(u)*(l-d)/2+Math.cos(u)*(h-p)/2,y=g*g/(n*n)+v*v/(i*i);y>1&&(n*=Math.sqrt(y),i*=Math.sqrt(y));var m=n*n*(v*v)+i*i*(g*g),b=m?Math.sqrt((n*n*(i*i)-m)/m):1;c===f&&(b*=-1),isNaN(b)&&(b=0);var x=i?b*n*v/i:0,w=n?b*-i*g/n:0,M=(l+d)/2+Math.cos(u)*x-Math.sin(u)*w,_=(h+p)/2+Math.sin(u)*x+Math.cos(u)*w,S=[(g-x)/n,(v-w)/i],P=[(-1*g-x)/n,(-1*v-w)/i],k=a([1,0],S),C=a(S,P);return o(S,P)<=-1&&(C=Math.PI),o(S,P)>=1&&(C=0),0===f&&C>0&&(C-=2*Math.PI),1===f&&C<0&&(C+=2*Math.PI),{cx:M,cy:_,rx:s(t,[d,p])?0:n,ry:s(t,[d,p])?0:i,startAngle:k,endAngle:k+C,xRotation:u,arcFlag:c,sweepFlag:f}}e.isSamePoint=s,e.default=u},"91de":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("06ef"),i=n("5b8d"),o=n("61d8"),a=function(t,e){if(t===e)return!0;if(!t||!e)return!1;if(o.default(t)||o.default(e))return!1;if(i.default(t)||i.default(e)){if(t.length!==e.length)return!1;for(var n=!0,s=0;s<t.length;s++)if(n=a(t[s],e[s]),!n)break;return n}if(r.default(t)||r.default(e)){var u=Object.keys(t),c=Object.keys(e);if(u.length!==c.length)return!1;for(n=!0,s=0;s<u.length;s++)if(n=a(t[u[s]],e[u[s]]),!n)break;return n}return!1};e.default=a},"91e9":function(t,e){function n(t,e){return function(n){return t(e(n))}}t.exports=n},9214:function(t,e){t.exports="0.8.5"},"92ca":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9705");Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return r.default}});var i=n("a120");Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return i.default}});var o=n("c3e8");Object.defineProperty(e,"Ellipse",{enumerable:!0,get:function(){return o.default}});var a=n("9b9d");Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return a.default}});var s=n("023a");Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return s.default}});var u=n("470f");Object.defineProperty(e,"Marker",{enumerable:!0,get:function(){return u.default}});var c=n("5833");Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return c.default}});var f=n("ff69");Object.defineProperty(e,"Polygon",{enumerable:!0,get:function(){return f.default}});var l=n("ac0d");Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return l.default}});var h=n("64be");Object.defineProperty(e,"Rect",{enumerable:!0,get:function(){return h.default}});var d=n("90e6");Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return d.default}})},9332:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=t,this.name=t,this.originalEvent=e,this.timeStamp=e.timeStamp}return t.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.toString=function(){var t=this.type;return"[Event (type="+t+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}();e.default=r},9351:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("516b");function i(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function o(t,e){return i(t)*i(e)?(t[0]*e[0]+t[1]*e[1])/(i(t)*i(e)):1}function a(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(o(t,e))}function s(t,e){var n=e[1],i=e[2],s=r.mod(r.toRadian(e[3]),2*Math.PI),u=e[4],c=e[5],f=t[0],l=t[1],h=e[6],d=e[7],p=Math.cos(s)*(f-h)/2+Math.sin(s)*(l-d)/2,g=-1*Math.sin(s)*(f-h)/2+Math.cos(s)*(l-d)/2,v=p*p/(n*n)+g*g/(i*i);v>1&&(n*=Math.sqrt(v),i*=Math.sqrt(v));var y=n*n*(g*g)+i*i*(p*p),m=y?Math.sqrt((n*n*(i*i)-y)/y):1;u===c&&(m*=-1),isNaN(m)&&(m=0);var b=i?m*n*g/i:0,x=n?m*-i*p/n:0,w=(f+h)/2+Math.cos(s)*b-Math.sin(s)*x,M=(l+d)/2+Math.sin(s)*b+Math.cos(s)*x,_=[(p-b)/n,(g-x)/i],S=[(-1*p-b)/n,(-1*g-x)/i],P=a([1,0],_),k=a(_,S);return o(_,S)<=-1&&(k=Math.PI),o(_,S)>=1&&(k=0),0===c&&k>0&&(k-=2*Math.PI),1===c&&k<0&&(k+=2*Math.PI),{cx:w,cy:M,rx:r.isSamePoint(t,[h,d])?0:n,ry:r.isSamePoint(t,[h,d])?0:i,startAngle:P,endAngle:P+k,xRotation:s,arcFlag:u,sweepFlag:c}}e.default=s},9380:function(t,e,n){var r=n("2d7c"),i=n("9f74"),o=n("badf"),a=n("6747");function s(t,e){var n=a(t)?r:i;return n(t,o(e,3))}t.exports=s},"93ed":function(t,e,n){var r=n("4245");function i(t){var e=r(this,t)["delete"](t);return this.size-=e?1:0,e}t.exports=i},"93f6":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("8937"),i=n("487c"),o=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,a=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function u(t){var e=t.match(s);if(!e)return"";var n="";return e.sort((function(t,e){return t=t.split(":"),e=e.split(":"),Number(t[0])-Number(e[0])})),r.each(e,(function(t){t=t.split(":"),n+='<stop offset="'+t[0]+'" stop-color="'+t[1]+'"></stop>'})),n}function c(t,e){var n,i,a=o.exec(t),s=r.mod(r.toRadian(parseFloat(a[1])),2*Math.PI),c=a[2];s>=0&&s<.5*Math.PI?(n={x:0,y:0},i={x:1,y:1}):.5*Math.PI<=s&&s<Math.PI?(n={x:1,y:0},i={x:0,y:1}):Math.PI<=s&&s<1.5*Math.PI?(n={x:1,y:1},i={x:0,y:0}):(n={x:0,y:1},i={x:1,y:0});var f=Math.tan(s),l=f*f,h=(i.x-n.x+f*(i.y-n.y))/(l+1)+n.x,d=f*(i.x-n.x+f*(i.y-n.y))/(l+1)+n.y;e.setAttribute("x1",n.x),e.setAttribute("y1",n.y),e.setAttribute("x2",h),e.setAttribute("y2",d),e.innerHTML=u(c)}function f(t,e){var n=a.exec(t),r=parseFloat(n[1]),i=parseFloat(n[2]),o=parseFloat(n[3]),s=n[4];e.setAttribute("cx",r),e.setAttribute("cy",i),e.setAttribute("r",o),e.innerHTML=u(s)}var l=function(){function t(t){this.cfg={};var e=null,n=r.uniqueId("gradient_");return"l"===t.toLowerCase()[0]?(e=i.createSVGElement("linearGradient"),c(t,e)):(e=i.createSVGElement("radialGradient"),f(t,e)),e.setAttribute("id",n),this.el=e,this.id=n,this.cfg=t,this}return t.prototype.match=function(t,e){return this.cfg===e},t}();e.default=l},"950a":function(t,e,n){var r=n("30c9");function i(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);var o=n.length,a=e?o:-1,s=Object(n);while(e?a--:++a<o)if(!1===i(s[a],a,s))break;return n}}t.exports=i},9520:function(t,e,n){var r=n("3729"),i=n("1a8c"),o="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",u="[object Proxy]";function c(t){if(!i(t))return!1;var e=r(t);return e==a||e==s||e==o||e==u}t.exports=c},"95ae":function(t,e,n){var r=n("100e"),i=n("9638"),o=n("9aff"),a=n("9934"),s=Object.prototype,u=s.hasOwnProperty,c=r((function(t,e){t=Object(t);var n=-1,r=e.length,c=r>2?e[2]:void 0;c&&o(e[0],e[1],c)&&(r=1);while(++n<r){var f=e[n],l=a(f),h=-1,d=l.length;while(++h<d){var p=l[h],g=t[p];(void 0===g||i(g,s[p])&&!u.call(t,p))&&(t[p]=f[p])}}return t}));t.exports=c},"95bd":function(t,e,n){"use strict";var r=a(n("067f")),i=a(n("7da3")),o=n("8937");function a(t){return t&&t.__esModule?t:{default:t}}i.default.registerCombo("circle",{options:{size:[r.default.defaultCombo.size[0],r.default.defaultCombo.size[0]],padding:r.default.defaultCombo.padding[0],animate:!0,style:{stroke:r.default.defaultCombo.style.stroke,fill:r.default.defaultCombo.style.fill,lineWidth:r.default.defaultCombo.style.lineWidth,opacity:.8},labelCfg:{style:{fill:"#595959"},refX:0,refY:0}},shapeType:"circle",labelPosition:"top",drawShape:function(t,e){var n=this.getShapeStyle(t);delete n.height,delete n.width;var r=e.addShape("circle",{attrs:n,className:"circle-combo",name:"circle-combo",draggable:!0});return r},getShapeStyle:function(t){var e=this.options.style,n=t.padding||this.options.padding;(0,o.isArray)(n)&&(n=n[0]);var i,a={stroke:t.color},s=(0,o.mix)({},e,a,t.style),u=this.getSize(t);i=!(0,o.isNumber)(s.r)||isNaN(s.r)?u[0]/2||r.default.defaultCombo.style.r:Math.max(s.r,u[0]/2)||u[0]/2,s.r=i+n;var c=Object.assign({},{x:0,y:0},s);return t.style?t.style.r=i:t.style={r:i},c},update:function(t,e){var n=this.getSize(t),r=t.padding||this.options.padding;(0,o.isArray)(r)&&(r=r[0]);var i=(0,o.clone)(t.style),a=Math.max(i.r,n[0]/2)||n[0]/2;i.r=a+r;var s=e.get("sizeCache");s&&(s.r=i.r);var u={stroke:t.color},c=e.get("keyShape"),f=(0,o.mix)({},c.attr(),u,i);t.style?t.style.r=a:t.style={r:a},this.updateShape(t,e,f,!0)}},"single-combo")},9638:function(t,e){function n(t,e){return t===e||t!==t&&e!==e}t.exports=n},"966f":function(t,e,n){var r=n("7e64"),i=n("c05f"),o=1,a=2;function s(t,e,n,s){var u=n.length,c=u,f=!s;if(null==t)return!c;t=Object(t);while(u--){var l=n[u];if(f&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}while(++u<c){l=n[u];var h=l[0],d=t[h],p=l[1];if(f&&l[2]){if(void 0===d&&!(h in t))return!1}else{var g=new r;if(s)var v=s(d,p,h,t,e,g);if(!(void 0===v?i(p,d,o|a,s,g):v))return!1}}return!0}t.exports=s},9671:function(t,e,n){"use strict";var r=n("33de");t.exports=s;var i="\0",o="\0",a="";function s(t){this._isDirected=!r.has(t,"directed")||t.directed,this._isMultigraph=!!r.has(t,"multigraph")&&t.multigraph,this._isCompound=!!r.has(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[o]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function u(t,e){t[e]?t[e]++:t[e]=1}function c(t,e){--t[e]||delete t[e]}function f(t,e,n,o){var s=""+e,u=""+n;if(!t&&s>u){var c=s;s=u,u=c}return s+a+u+a+(r.isUndefined(o)?i:o)}function l(t,e,n,r){var i=""+e,o=""+n;if(!t&&i>o){var a=i;i=o,o=a}var s={v:i,w:o};return r&&(s.name=r),s}function h(t,e){return f(t,e.v,e.w,e.name)}s.prototype._nodeCount=0,s.prototype._edgeCount=0,s.prototype.isDirected=function(){return this._isDirected},s.prototype.isMultigraph=function(){return this._isMultigraph},s.prototype.isCompound=function(){return this._isCompound},s.prototype.setGraph=function(t){return this._label=t,this},s.prototype.graph=function(){return this._label},s.prototype.setDefaultNodeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultNodeLabelFn=t,this},s.prototype.nodeCount=function(){return this._nodeCount},s.prototype.nodes=function(){return r.keys(this._nodes)},s.prototype.sources=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._in[e])}))},s.prototype.sinks=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._out[e])}))},s.prototype.setNodes=function(t,e){var n=arguments,i=this;return r.each(t,(function(t){n.length>1?i.setNode(t,e):i.setNode(t)})),this},s.prototype.setNode=function(t,e){return r.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=o,this._children[t]={},this._children[o][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},s.prototype.node=function(t){return this._nodes[t]},s.prototype.hasNode=function(t){return r.has(this._nodes,t)},s.prototype.removeNode=function(t){var e=this;if(r.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],r.each(this.children(t),(function(t){e.setParent(t)})),delete this._children[t]),r.each(r.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],r.each(r.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},s.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(e))e=o;else{e+="";for(var n=e;!r.isUndefined(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},s.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},s.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if(e!==o)return e}},s.prototype.children=function(t){if(r.isUndefined(t)&&(t=o),this._isCompound){var e=this._children[t];if(e)return r.keys(e)}else{if(t===o)return this.nodes();if(this.hasNode(t))return[]}},s.prototype.predecessors=function(t){var e=this._preds[t];if(e)return r.keys(e)},s.prototype.successors=function(t){var e=this._sucs[t];if(e)return r.keys(e)},s.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return r.union(e,this.successors(t))},s.prototype.isLeaf=function(t){var e;return e=this.isDirected()?this.successors(t):this.neighbors(t),0===e.length},s.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;r.each(this._nodes,(function(n,r){t(r)&&e.setNode(r,n)})),r.each(this._edgeObjs,(function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))}));var i={};function o(t){var r=n.parent(t);return void 0===r||e.hasNode(r)?(i[t]=r,r):r in i?i[r]:o(r)}return this._isCompound&&r.each(e.nodes(),(function(t){e.setParent(t,o(t))})),e},s.prototype.setDefaultEdgeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultEdgeLabelFn=t,this},s.prototype.edgeCount=function(){return this._edgeCount},s.prototype.edges=function(){return r.values(this._edgeObjs)},s.prototype.setPath=function(t,e){var n=this,i=arguments;return r.reduce(t,(function(t,r){return i.length>1?n.setEdge(t,r,e):n.setEdge(t,r),r})),this},s.prototype.setEdge=function(){var t,e,n,i,o=!1,a=arguments[0];"object"===typeof a&&null!==a&&"v"in a?(t=a.v,e=a.w,n=a.name,2===arguments.length&&(i=arguments[1],o=!0)):(t=a,e=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],o=!0)),t=""+t,e=""+e,r.isUndefined(n)||(n=""+n);var s=f(this._isDirected,t,e,n);if(r.has(this._edgeLabels,s))return o&&(this._edgeLabels[s]=i),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[s]=o?i:this._defaultEdgeLabelFn(t,e,n);var c=l(this._isDirected,t,e,n);return t=c.v,e=c.w,Object.freeze(c),this._edgeObjs[s]=c,u(this._preds[e],t),u(this._sucs[t],e),this._in[e][s]=c,this._out[t][s]=c,this._edgeCount++,this},s.prototype.edge=function(t,e,n){var r=1===arguments.length?h(this._isDirected,arguments[0]):f(this._isDirected,t,e,n);return this._edgeLabels[r]},s.prototype.hasEdge=function(t,e,n){var i=1===arguments.length?h(this._isDirected,arguments[0]):f(this._isDirected,t,e,n);return r.has(this._edgeLabels,i)},s.prototype.removeEdge=function(t,e,n){var r=1===arguments.length?h(this._isDirected,arguments[0]):f(this._isDirected,t,e,n),i=this._edgeObjs[r];return i&&(t=i.v,e=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],c(this._preds[e],t),c(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this},s.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var i=r.values(n);return e?r.filter(i,(function(t){return t.v===e})):i}},s.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var i=r.values(n);return e?r.filter(i,(function(t){return t.w===e})):i}},s.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}},"969b":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("38f9");e.default=function(t,e){if(!e)return[t];var n=r.default(t,e),i=[];for(var o in n)i.push(n[o]);return i}},"96f3":function(t,e){var n=Object.prototype,r=n.hasOwnProperty;function i(t,e){return null!=t&&r.call(t,e)}t.exports=i},9705:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),i=n("6855"),o=n("516b"),a=n("31c4"),s=n("1322"),u=n("92ca"),c=n("c0e4"),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return u},e.prototype.getGroupBase=function(){return c.default},e.prototype.onCanvasChange=function(t){a.refreshElement(this,t)},e.prototype.calculateBBox=function(){var t=this.get("type"),e=this.getHitLineWidth(),n=s.getBBoxMethod(t),r=n(this),i=e/2,o=r.x-i,a=r.y-i,u=r.x+r.width+i,c=r.y+r.height+i;return{x:o,minX:o,y:a,minY:a,width:r.width+e,height:r.height+e,maxX:u,maxY:c}},e.prototype.isFill=function(){return!!this.attrs["fill"]||this.isClipShape()},e.prototype.isStroke=function(){return!!this.attrs["stroke"]},e.prototype._applyClip=function(t,e){e&&(t.save(),a.applyAttrsToContext(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.draw=function(t,e){var n=this.getClip();if(e){var r=n?a.getMergedRegion([this,n]):this.getCanvasBBox();if(!o.intersectRect(e,r))return void this.set("hasChanged",!1)}t.save(),a.applyAttrsToContext(t,this),this._applyClip(t,this.getClip()),this.drawPath(t),t.restore(),this._afterDraw()},e.prototype._afterDraw=function(){var t=this.getCanvasBBox(),e=this.getCanvas();if(this.set("cacheCanvasBBox",t),e){var n=e.getViewRange();this.set("isInView",o.intersectRect(t,n))}this.set("hasChanged",!1)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},e.prototype.drawPath=function(t){this.createPath(t),this.strokeAndFill(t),this.afterDrawPath(t)},e.prototype.fill=function(t){t.fill()},e.prototype.stroke=function(t){t.stroke()},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,a=e.fillOpacity;this.isFill()&&(o.isNil(a)||1===a?this.fill(t):(t.globalAlpha=a,this.fill(t),t.globalAlpha=r)),this.isStroke()&&n>0&&(o.isNil(i)||1===i||(t.globalAlpha=i),this.stroke(t)),this.afterDrawPath(t)},e.prototype.createPath=function(t){},e.prototype.afterDrawPath=function(t){},e.prototype.isInShape=function(t,e){var n=this.isStroke(),r=this.isFill(),i=this.getHitLineWidth();return this.isInStrokeOrPath(t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t["lineWidth"]+t["lineAppendWidth"]},e}(i.AbstractShape);e.default=f},"97d3":function(t,e,n){var r=n("48a0"),i=n("30c9");function o(t,e){var n=-1,o=i(t)?Array(t.length):[];return r(t,(function(t,r,i){o[++n]=e(t,r,i)})),o}t.exports=o},"97d6":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),i=n("8937"),o=n("7a70"),a=n("d531"),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ellipse",e.canFill=!0,e.canStroke=!0,e}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");i.each(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):o.SVG_ATTR_MAP[e]&&r.setAttribute(o.SVG_ATTR_MAP[e],t)}))},e}(a.default);e.default=s},"980a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("9ab4"),i=p(n("0cc2")),o=p(n("bb3a")),a=p(n("13c9")),s=p(n("61d8")),u=p(n("d99a")),c=p(n("c360")),f=p(n("28f9")),l=p(n("72fb")),h=n("e897"),d=n("8937");function p(t){return t&&t.__esModule?t:{default:t}}var g=Math.max,v="default",y="keyShape",m="delegate",b="svg",x=function(t){function e(e){var n=t.call(this,e)||this;return n.handleUpdateCanvas=(0,d.debounce)((function(t){var e=n;e.destroyed||e.updateCanvas()}),100,!1),n}return(0,r.__extends)(e,t),e.prototype.getDefaultCfgs=function(){return{container:null,className:"g6-minimap",viewportClassName:"g6-minimap-viewport",type:"default",padding:50,size:[200,120],delegateStyle:{fill:"#40a9ff",stroke:"#096dd9"},refresh:!0}},e.prototype.getEvents=function(){return{beforepaint:"updateViewport",beforeanimate:"disableRefresh",afteranimate:"enableRefresh",viewportchange:"disableOneRefresh"}},e.prototype.disableRefresh=function(){this.set("refresh",!1)},e.prototype.enableRefresh=function(){this.set("refresh",!0),this.updateCanvas()},e.prototype.disableOneRefresh=function(){this.set("viewportChange",!0)},e.prototype.initViewport=function(){var t=this,e=this._cfgs,n=e.size,r=e.graph;if(!this.destroyed){var i=this.get("canvas"),o=i.get("container"),a=(0,u.default)("<div class="+e.viewportClassName+" \n style='position:absolute;\n left:0;\n top:0;\n box-sizing:border-box;\n border: 2px solid #1980ff'></div>"),s=0,l=0,h=!1,d=0,p=0,g=0,v=0,y=0,m=0;o.addEventListener("mousedown",(function(i){if(e.refresh=!1,i.target===a){var o=a.style;d=parseInt(o.left,10),p=parseInt(o.top,10),g=parseInt(o.width,10),v=parseInt(o.height,10),g>n[0]||v>n[1]||(m=r.getZoom(),y=t.get("ratio"),h=!0,s=i.clientX,l=i.clientY)}}),!1),o.addEventListener("mousemove",(function(t){if(h&&!(0,f.default)(t.clientX)&&!(0,f.default)(t.clientY)){var e=s-t.clientX,i=l-t.clientY;d-e<0?e=d:d-e+g>n[0]&&(e=d+g-n[0]),p-i<0?i=p:p-i+v>n[1]&&(i=p+v-n[1]),d-=e,p-=i,(0,c.default)(a,{left:d+"px",top:p+"px"}),r.translate(e*m/y,i*m/y),s=t.clientX,l=t.clientY}}),!1),o.addEventListener("mouseleave",(function(){h=!1,e.refresh=!0}),!1),o.addEventListener("mouseup",(function(){h=!1,e.refresh=!0}),!1),this.set("viewport",a),o.appendChild(a)}},e.prototype.updateViewport=function(){if(!this.destroyed){var t=this.get("ratio"),e=this.get("dx"),n=this.get("dy"),r=this.get("totaldx"),i=this.get("totaldy"),o=this.get("graph"),a=this.get("size"),s=o.get("width"),u=o.get("height"),f=o.getPointByCanvas(0,0),l=o.getPointByCanvas(s,u),h=o.get("canvas").getCanvasBBox(),d=this.get("viewport");d||this.initViewport();var p=o.getZoom(),g=(l.x-f.x)*t,v=(l.y-f.y)*t,y=f.x*t+r,m=f.y*t+i;g>a[0]&&(g=a[0],y=h.maxX>s?-e-(h.maxX-s)/p*t:e-h.minX/p*t),v>a[1]&&(v=a[1],m=h.maxY>u?-n-(h.maxY-u)/p*t:n-h.minY/p*t),this.set("ratio",t);var b=y+"px",x=m+"px",w=o.get("canvas").getCanvasBBox();g>=a[0]&&w.minX>0&&w.maxX<s&&(y>=0&&y+g<=a[0]?b=y+"px":y<0?b=0:y+g>a[0]&&(b=a[0]-g+"px")),v>=a[1]&&w.minY>0&&w.maxY<u&&(m>=0&&m+v<=a[1]?x=m+"px":m<0?x=0:m+v>a[1]&&(x=a[1]-v+"px")),(0,c.default)(d,{left:b,top:x,width:g+"px",height:v+"px"})}},e.prototype.updateGraphShapes=function(){var t=this._cfgs.graph,e=this.get("canvas"),n=t.get("group");if(!n.destroyed){var r=n.clone();r.resetMatrix(),e.clear(),e.add(r)}},e.prototype.updateKeyShapes=function(){var t=this,e=this._cfgs.graph;(0,l.default)(e.getEdges(),(function(e){t.updateOneEdgeKeyShape(e)})),(0,l.default)(e.getNodes(),(function(e){t.updateOneNodeKeyShape(e)})),this.clearDestroyedShapes()},e.prototype.updateOneNodeKeyShape=function(t){var e=this.get("canvas"),n=e.get("children")[0]||e.addGroup(),r=this.get("itemMap")||{},i=r[t.get("id")],o=t.getBBox(),a=t.get("keyShape").clone(),s=a.attr(),u={x:o.centerX,y:o.centerY};i?u=Object.assign(s,u):(i=a,n.add(i));var c=i.get("type");"rect"!==c&&"image"!==c||(u.x=o.minX,u.y=o.minY),i.attr(u),t.isVisible()||i.hide(),i.exist=!0,r[t.get("id")]=i,this.set("itemMap",r)},e.prototype.updateDelegateShapes=function(){var t=this,e=this._cfgs.graph;(0,l.default)(e.getEdges(),(function(e){t.updateOneEdgeKeyShape(e)})),(0,l.default)(e.getNodes(),(function(e){t.updateOneNodeDelegateShape(e)})),this.clearDestroyedShapes()},e.prototype.clearDestroyedShapes=function(){var t=this.get("itemMap")||{},e=Object.keys(t);if(e&&0!==e.length)for(var n=e.length-1;n>=0;n--){var r=t[e[n]],i=r.exist;r.exist=!1,i||(r.remove(),delete t[e[n]])}},e.prototype.updateOneEdgeKeyShape=function(t){var e=this.get("canvas"),n=e.get("children")[0]||e.addGroup(),r=this.get("itemMap")||{},i=r[t.get("id")];if(i){var o=t.get("keyShape").attr("path");i.attr("path",o)}else i=t.get("keyShape").clone(),n.add(i),i.toBack();t.isVisible()||i.hide(),i.exist=!0,r[t.get("id")]=i,this.set("itemMap",r)},e.prototype.updateOneNodeDelegateShape=function(t){var e=this.get("canvas"),n=e.get("children")[0]||e.addGroup(),i=this.get("delegateStyle"),o=this.get("itemMap")||{},a=o[t.get("id")],s=t.getBBox();if(a){var u={x:s.minX,y:s.minY,width:s.width,height:s.height};a.attr(u)}else a=n.addShape("rect",{attrs:(0,r.__assign)({x:s.minX,y:s.minY,width:s.width,height:s.height},i),name:"minimap-node-shape"});t.isVisible()||a.hide(),a.exist=!0,o[t.get("id")]=a,this.set("itemMap",o)},e.prototype.init=function(){this.initContainer(),this.get("graph").on("afterupdateitem",this.handleUpdateCanvas),this.get("graph").on("afteritemstatechange",this.handleUpdateCanvas),this.get("graph").on("afteradditem",this.handleUpdateCanvas),this.get("graph").on("afterremoveitem",this.handleUpdateCanvas),this.get("graph").on("afterrender",this.handleUpdateCanvas),this.get("graph").on("afterlayout",this.handleUpdateCanvas)},e.prototype.initContainer=function(){var t=this,e=t.get("graph"),n=t.get("size"),r=t.get("className"),a=t.get("container"),c=(0,u.default)("<div class='"+r+"' style='width: "+n[0]+"px; height: "+n[1]+"px; overflow: hidden'></div>");(0,s.default)(a)&&(a=document.getElementById(a)),a?a.appendChild(c):e.get("container").appendChild(c),t.set("container",c);var f,l=(0,u.default)('<div class="g6-minimap-container" style="position: relative;"></div>');c.appendChild(l);var h=e.get("renderer");f=h===b?new o.default({container:l,width:n[0],height:n[1]}):new i.default({container:l,width:n[0],height:n[1]}),t.set("canvas",f),t.updateCanvas()},e.prototype.updateCanvas=function(){var t=this.get("refresh");if(t){var e=this.get("graph");if(!e.get("destroyed")){this.get("viewportChange")&&(this.set("viewportChange",!1),this.updateViewport());var n=this.get("size"),r=this.get("canvas"),i=this.get("type"),o=this.get("padding");if(!r.destroyed){switch(i){case v:this.updateGraphShapes();break;case y:this.updateKeyShapes();break;case m:this.updateDelegateShapes();break}var a=r.get("children")[0];if(a){a.resetMatrix();var s=a.getCanvasBBox(),u=e.get("canvas").getBBox(),c=u.width,f=u.height;Number.isFinite(s.width)&&(c=g(s.width,c),f=g(s.height,f)),c+=2*o,f+=2*o;var l=Math.min(n[0]/c,n[1]/f),d=h.mat3.create(),p=0,b=0;Number.isFinite(s.minX)&&(p=-s.minX),Number.isFinite(s.minY)&&(b=-s.minY);var x=(n[0]-(c-2*o)*l)/2,w=(n[1]-(f-2*o)*l)/2;d=(0,h.transform)(d,[["t",p,b],["s",l,l],["t",x,w]]),a.setMatrix(d),this.set("ratio",l),this.set("totaldx",x+p*l),this.set("totaldy",w+b*l),this.set("dx",x),this.set("dy",w),this.updateViewport()}}}}},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.getViewport=function(){return this.get("viewport")},e.prototype.getContainer=function(){return this.get("container")},e.prototype.destroy=function(){this.get("canvas").destroy();var t=this.get("container");t.parentNode.removeChild(t)},e}(a.default),w=x;e.default=w},9861:function(t,e,n){"use strict";n("e260");var r=n("23e7"),i=n("da84"),o=n("d066"),a=n("c65b"),s=n("e330"),u=n("0d3b"),c=n("6eeb"),f=n("e2cc"),l=n("d44e"),h=n("9ed3"),d=n("69f3"),p=n("19aa"),g=n("1626"),v=n("1a2d"),y=n("0366"),m=n("f5df"),b=n("825a"),x=n("861d"),w=n("577e"),M=n("7c73"),_=n("5c6c"),S=n("9a1f"),P=n("35a1"),k=n("b622"),C=n("addb"),O=k("iterator"),E="URLSearchParams",A=E+"Iterator",j=d.set,I=d.getterFor(E),T=d.getterFor(A),B=o("fetch"),N=o("Request"),D=o("Headers"),L=N&&N.prototype,R=D&&D.prototype,z=i.RegExp,F=i.TypeError,G=i.decodeURIComponent,Y=i.encodeURIComponent,X=s("".charAt),V=s([].join),q=s([].push),U=s("".replace),W=s([].shift),H=s([].splice),Z=s("".split),$=s("".slice),Q=/\+/g,K=Array(4),J=function(t){return K[t-1]||(K[t-1]=z("((?:%[\\da-f]{2}){"+t+"})","gi"))},tt=function(t){try{return G(t)}catch(e){return t}},et=function(t){var e=U(t,Q," "),n=4;try{return G(e)}catch(r){while(n)e=U(e,J(n--),tt);return e}},nt=/[!'()~]|%20/g,rt={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},it=function(t){return rt[t]},ot=function(t){return U(Y(t),nt,it)},at=function(t,e){if(e){var n,r,i=Z(e,"&"),o=0;while(o<i.length)n=i[o++],n.length&&(r=Z(n,"="),q(t,{key:et(W(r)),value:et(V(r,"="))}))}},st=function(t){this.entries.length=0,at(this.entries,t)},ut=function(t,e){if(t<e)throw F("Not enough arguments")},ct=h((function(t,e){j(this,{type:A,iterator:S(I(t).entries),kind:e})}),"Iterator",(function(){var t=T(this),e=t.kind,n=t.iterator.next(),r=n.value;return n.done||(n.value="keys"===e?r.key:"values"===e?r.value:[r.key,r.value]),n})),ft=function(){p(this,lt);var t,e,n,r,i,o,s,u,c,f=arguments.length>0?arguments[0]:void 0,l=this,h=[];if(j(l,{type:E,entries:h,updateURL:function(){},updateSearchParams:st}),void 0!==f)if(x(f))if(t=P(f),t){e=S(f,t),n=e.next;while(!(r=a(n,e)).done){if(i=S(b(r.value)),o=i.next,(s=a(o,i)).done||(u=a(o,i)).done||!a(o,i).done)throw F("Expected sequence with length 2");q(h,{key:w(s.value),value:w(u.value)})}}else for(c in f)v(f,c)&&q(h,{key:c,value:w(f[c])});else at(h,"string"==typeof f?"?"===X(f,0)?$(f,1):f:w(f))},lt=ft.prototype;if(f(lt,{append:function(t,e){ut(arguments.length,2);var n=I(this);q(n.entries,{key:w(t),value:w(e)}),n.updateURL()},delete:function(t){ut(arguments.length,1);var e=I(this),n=e.entries,r=w(t),i=0;while(i<n.length)n[i].key===r?H(n,i,1):i++;e.updateURL()},get:function(t){ut(arguments.length,1);for(var e=I(this).entries,n=w(t),r=0;r<e.length;r++)if(e[r].key===n)return e[r].value;return null},getAll:function(t){ut(arguments.length,1);for(var e=I(this).entries,n=w(t),r=[],i=0;i<e.length;i++)e[i].key===n&&q(r,e[i].value);return r},has:function(t){ut(arguments.length,1);var e=I(this).entries,n=w(t),r=0;while(r<e.length)if(e[r++].key===n)return!0;return!1},set:function(t,e){ut(arguments.length,1);for(var n,r=I(this),i=r.entries,o=!1,a=w(t),s=w(e),u=0;u<i.length;u++)n=i[u],n.key===a&&(o?H(i,u--,1):(o=!0,n.value=s));o||q(i,{key:a,value:s}),r.updateURL()},sort:function(){var t=I(this);C(t.entries,(function(t,e){return t.key>e.key?1:-1})),t.updateURL()},forEach:function(t){var e,n=I(this).entries,r=y(t,arguments.length>1?arguments[1]:void 0),i=0;while(i<n.length)e=n[i++],r(e.value,e.key,this)},keys:function(){return new ct(this,"keys")},values:function(){return new ct(this,"values")},entries:function(){return new ct(this,"entries")}},{enumerable:!0}),c(lt,O,lt.entries,{name:"entries"}),c(lt,"toString",(function(){var t,e=I(this).entries,n=[],r=0;while(r<e.length)t=e[r++],q(n,ot(t.key)+"="+ot(t.value));return V(n,"&")}),{enumerable:!0}),l(ft,E),r({global:!0,forced:!u},{URLSearchParams:ft}),!u&&g(D)){var ht=s(R.has),dt=s(R.set),pt=function(t){if(x(t)){var e,n=t.body;if(m(n)===E)return e=t.headers?new D(t.headers):new D,ht(e,"content-type")||dt(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),M(t,{body:_(0,w(n)),headers:_(0,e)})}return t};if(g(B)&&r({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return B(t,arguments.length>1?pt(arguments[1]):{})}}),g(N)){var gt=function(t){return p(this,L),new N(t,arguments.length>1?pt(arguments[1]):{})};L.constructor=gt,gt.prototype=L,r({global:!0,forced:!0},{Request:gt})}}t.exports={URLSearchParams:ft,getState:I}},"98dc":function(t,e,n){var r=n("76dd"),i=0;function o(t){var e=++i;return r(t)+e}t.exports=o},9934:function(t,e,n){var r=n("6fcd"),i=n("41c3"),o=n("30c9");function a(t){return o(t)?r(t,!0):i(t)}t.exports=a},9948:function(t,e,n){var r=n("72af"),i=n("1304"),o=n("9934");function a(t,e){return null==t?t:r(t,i(e),o)}t.exports=a},"99cd":function(t,e){function n(t){return function(e,n,r){var i=-1,o=Object(e),a=r(e),s=a.length;while(s--){var u=a[t?s:++i];if(!1===n(o[u],u,o))break}return e}}t.exports=n},"99d3":function(t,e,n){(function(t){var r=n("585a"),i=e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i,s=a&&r.process,u=function(){try{var t=o&&o.require&&o.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(e){}}();t.exports=u}).call(this,n("62e4")(t))},"9ab4f":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e}},"9aff":function(t,e,n){var r=n("9638"),i=n("30c9"),o=n("c098"),a=n("1a8c");function s(t,e,n){if(!a(n))return!1;var s=typeof e;return!!("number"==s?i(n)&&o(e,n.length):"string"==s&&e in n)&&r(n[e],t)}t.exports=s},"9b02":function(t,e,n){var r=n("656b");function i(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}t.exports=i},"9b7a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("8937"),i=n("67ac");e.default=function(t,e){var n=t?r.clone(t):[1,0,0,0,1,0,0,0,1];return r.each(e,(function(t){switch(t[0]){case"t":i.default.translate(n,n,[t[1],t[2]]);break;case"s":i.default.scale(n,n,[t[1],t[2]]);break;case"r":i.default.rotate(n,n,t[1]);break;case"m":i.default.multiply(n,n,t[1]);break;default:return!1}})),n}},"9b9d":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),i=n("9705"),o=n("516b");function a(t){return t instanceof HTMLElement&&o.isString(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()}var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x:0,y:0,width:0,height:0})},e.prototype.initAttrs=function(t){this._setImage(t.img)},e.prototype.isStroke=function(){return!1},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._afterLoading=function(){if(!0===this.get("toDraw")){var t=this.get("canvas");t?t.draw():this.createPath(this.get("context"))}},e.prototype._setImage=function(t){var e=this,n=this.attrs;if(o.isString(t)){var r=new Image;r.onload=function(){if(e.destroyed)return!1;e.attr("img",r),e.set("loading",!1),e._afterLoading();var t=e.get("callback");t&&t.call(e)},r.crossOrigin="Anonymous",r.src=t,this.set("loading",!0)}else t instanceof Image?(n.width||(n.width=t.width),n.height||(n.height=t.height)):a(t)&&(n.width||(n.width=Number(t.getAttribute("width"))),n.height||(n.height,Number(t.getAttribute("height"))))},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),"img"===e&&this._setImage(n)},e.prototype.createPath=function(t){if(this.get("loading"))return this.set("toDraw",!0),void this.set("context",t);var e=this.attr(),n=e.x,r=e.y,i=e.width,s=e.height,u=e.sx,c=e.sy,f=e.swidth,l=e.sheight,h=e.img;(h instanceof Image||a(h))&&(o.isNil(u)||o.isNil(c)||o.isNil(f)||o.isNil(l)?t.drawImage(h,n,r,i,s):t.drawImage(h,u,c,f,l,n,r,i,s))},e}(i.default);e.default=s},"9c6b":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),i=n("c3e2"),o=n("d6a3"),a=n("8937"),s=n("7a70"),u=n("d531"),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polyline",e.canFill=!0,e.canStroke=!0,e}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{startArrow:!1,endArrow:!1})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");a.each(e||n,(function(t,e){"points"===e&&a.isArray(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):s.SVG_ATTR_MAP[e]&&r.setAttribute(s.SVG_ATTR_MAP[e],t)}))},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return a.isNil(e)?(this.set("totalLength",o.default.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,r=this.attr().points,o=this.get("tCache");return o||(this._setTcache(),o=this.get("tCache")),a.each(o,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),i.default.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,r,o=0,s=[];a.each(t,(function(a,u){t[u+1]&&(n=[],n[0]=o/e,r=i.default.length(a[0],a[1],t[u+1][0],t[u+1][1]),o+=r,n[1]=o/e,s.push(n))})),this.set("tCache",s)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(u.default);e.default=c},"9cc4":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=v(n("72fb")),i=v(n("56fa")),o=v(n("f128")),a=v(n("9cf8")),s=v(n("5f1d")),u=v(n("37a5")),c=v(n("7d69")),f=v(n("9ecb")),l=v(n("a02d")),h=v(n("8520")),d=v(n("1729")),p=v(n("4d39")),g=v(n("2d0a"));function v(t){return t&&t.__esModule?t:{default:t}}var y={circular:o.default,concentric:a.default,dagre:s.default,force:u.default,g6force:c.default,comboForce:g.default,fruchterman:f.default,grid:l.default,mds:h.default,radial:d.default,random:p.default};(0,r.default)(y,(function(t,e){i.default.registerLayout(e,{},t)}));var m=i.default;e.default=m},"9cf8":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("9ab4"),i=c(n("01f9")),o=c(n("61d8")),a=n("56fa"),s=n("0dfa"),u=n("8937");function c(t){return t&&t.__esModule?t:{default:t}}var f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=[0,0],e.nodeSize=30,e.minNodeSpacing=10,e.preventOverlap=!1,e.equidistant=!1,e.startAngle=1.5*Math.PI,e.clockwise=!0,e.sortBy="degree",e.nodes=[],e.edges=[],e.width=300,e.height=300,e}return(0,r.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{center:[0,0],nodeSize:30,minNodeSpacing:10,preventOverlap:!1,sweep:void 0,equidistant:!1,startAngle:1.5*Math.PI,clockwise:!0,maxLevelDiff:void 0,sortBy:"degree"}},e.prototype.execute=function(){var t=this,e=t.nodes,n=t.edges,r=e.length,a=t.center;if(0!==r){if(1===r)return e[0].x=a[0],void(e[0].y=a[1]);var c,f=[];c=(0,i.default)(t.nodeSize)?Math.max(t.nodeSize[0],t.nodeSize[1]):t.nodeSize,e.forEach((function(t){f.push(t);var e=c;(0,i.default)(t.size)?e=Math.max(t.size[0],t.size[1]):(0,u.isNumber)(t.size)&&(e=t.size),c=Math.max(c,e)})),t.width||"undefined"===typeof window||(t.width=window.innerWidth),t.height||"undefined"===typeof window||(t.height=window.innerHeight),t.clockwise=void 0!==t.counterclockwise?!t.counterclockwise:t.clockwise;var l={},h={};if(f.forEach((function(t,e){l[t.id]=t,h[t.id]=e})),("degree"===t.sortBy||!(0,o.default)(t.sortBy)||void 0===f[0][t.sortBy])&&(t.sortBy="degree",!(0,u.isNumber)(e[0].degree))){var d=(0,s.getDegree)(e.length,h,n);f.forEach((function(t,e){t.degree=d[e]}))}f.sort((function(e,n){return n[t.sortBy]-e[t.sortBy]})),t.maxValueNode=f[0],t.maxLevelDiff=t.maxLevelDiff||t.maxValueNode[t.sortBy]/4;var p=[[]],g=p[0];f.forEach((function(e){if(g.length>0){var n=Math.abs(g[0][t.sortBy]-e[t.sortBy]);t.maxLevelDiff&&n>=t.maxLevelDiff&&(g=[],p.push(g))}g.push(e)}));var v=c+t.minNodeSpacing;if(!t.preventOverlap){var y=p.length>0&&p[0].length>1,m=Math.min(t.width,t.height)/2-v,b=m/(p.length+(y?1:0));v=Math.min(v,b)}var x=0;if(p.forEach((function(e){var n=t.sweep;void 0===n&&(n=2*Math.PI-2*Math.PI/e.length);var r=e.dTheta=n/Math.max(1,e.length-1);if(e.length>1&&t.preventOverlap){var i=Math.cos(r)-Math.cos(0),o=Math.sin(r)-Math.sin(0),a=Math.sqrt(v*v/(i*i+o*o));x=Math.max(a,x)}e.r=x,x+=v})),t.equidistant){for(var w=0,M=0,_=0;_<p.length;_++){var S=p[_],P=S.r-M;w=Math.max(w,P)}M=0,p.forEach((function(t,e){0===e&&(M=t.r),t.r=M,M+=w}))}p.forEach((function(e){var n=e.dTheta,r=e.r;e.forEach((function(e,i){var o=t.startAngle+(t.clockwise?1:-1)*n*i;e.x=a[0]+r*Math.cos(o),e.y=a[1]+r*Math.sin(o)}))}))}},e}(a.BaseLayout),l=f;e.default=l},"9d50":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("01f9"),i=n("2047");e.default=function(t,e){if(r.default(t)){for(var n,o=-1/0,a=0;a<t.length;a++){var s=t[a],u=i.default(e)?e(s):s[e];u>o&&(n=s,o=u)}return n}}},"9d9f":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("739e"),i=function(t){return r.default(t).toLowerCase()};e.default=i},"9e39":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("28f9"),i=n("01f9"),o=function(t,e){for(var n=null,o=0;o<t.length;o++){var a=t[o],s=a[e];if(!r.default(s)){n=i.default(s)?s[0]:s;break}}return n};e.default=o},"9e69":function(t,e,n){var r=n("2b3e"),i=r.Symbol;t.exports=i},"9e86":function(t,e,n){var r=n("872a"),i=n("242e"),o=n("badf");function a(t,e){var n={};return e=o(e,3),i(t,(function(t,i,o){r(n,i,e(t,i,o))})),n}t.exports=a},"9ecb":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("9ab4"),i=n("56fa"),o=n("8937"),a=800,s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=[0,0],e.maxIteration=1e3,e.gravity=10,e.speed=1,e.clustering=!1,e.clusterGravity=10,e.nodes=[],e.edges=[],e.width=300,e.height=300,e.nodeMap={},e.nodeIdxMap={},e}return(0,r.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{maxIteration:1e3,center:[0,0],gravity:10,speed:1,clustering:!1,clusterGravity:10}},e.prototype.execute=function(){var t=this,e=this,n=e.nodes,r=e.center;if(n&&0!==n.length){if(1===n.length)return n[0].x=r[0],void(n[0].y=r[1]);var i={},a={};n.forEach((function(e,n){(0,o.isNumber)(e.x)||(e.x=Math.random()*t.width),(0,o.isNumber)(e.y)||(e.y=Math.random()*t.height),i[e.id]=e,a[e.id]=n})),e.nodeMap=i,e.nodeIdxMap=a,e.run()}},e.prototype.run=function(){var t=this,e=t.nodes,n=t.edges,r=t.maxIteration;t.width||"undefined"===typeof window||(t.width=window.innerWidth),t.height||"undefined"===typeof window||(t.height=window.innerHeight);var i=t.center,s=t.width/10,u=Math.sqrt(t.width*t.height/(e.length+1)),c=t.gravity,f=t.speed,l=t.clustering,h={};if(l)for(var d in e.forEach((function(t){if(void 0===h[t.cluster]){var e={name:t.cluster,cx:0,cy:0,count:0};h[t.cluster]=e}var n=h[t.cluster];(0,o.isNumber)(t.x)&&(n.cx+=t.x),(0,o.isNumber)(t.y)&&(n.cy+=t.y),n.count++})),h)h[d].cx/=h[d].count,h[d].cy/=h[d].count;for(var p=function(r){var d=[];if(e.forEach((function(t,e){d[e]={x:0,y:0}})),t.applyCalculate(e,n,d,u),l){var p=t.clusterGravity||c;for(var g in e.forEach((function(t,e){if((0,o.isNumber)(t.x)&&(0,o.isNumber)(t.y)){var n=h[t.cluster],r=Math.sqrt((t.x-n.cx)*(t.x-n.cx)+(t.y-n.cy)*(t.y-n.cy)),i=u*p;d[e].x-=i*(t.x-n.cx)/r,d[e].y-=i*(t.y-n.cy)/r}})),h)h[g].cx=0,h[g].cy=0,h[g].count=0;for(var g in e.forEach((function(t){var e=h[t.cluster];(0,o.isNumber)(t.x)&&(e.cx+=t.x),(0,o.isNumber)(t.y)&&(e.cy+=t.y),e.count++})),h)h[g].cx/=h[g].count,h[g].cy/=h[g].count}e.forEach((function(t,e){if((0,o.isNumber)(t.x)&&(0,o.isNumber)(t.y)){var n=.01*u*c;d[e].x-=n*(t.x-i[0]),d[e].y-=n*(t.y-i[1])}})),e.forEach((function(t,e){if((0,o.isNumber)(t.x)&&(0,o.isNumber)(t.y)){var n=Math.sqrt(d[e].x*d[e].x+d[e].y*d[e].y);if(n>0){var r=Math.min(s*(f/a),n);t.x+=d[e].x/n*r,t.y+=d[e].y/n*r}}}))},g=0;g<r;g++)p(g)},e.prototype.applyCalculate=function(t,e,n,r){var i=this;i.calRepulsive(t,n,r),i.calAttractive(e,n,r)},e.prototype.calRepulsive=function(t,e,n){t.forEach((function(r,i){e[i]={x:0,y:0},t.forEach((function(t,a){if(i!==a&&(0,o.isNumber)(r.x)&&(0,o.isNumber)(t.x)&&(0,o.isNumber)(r.y)&&(0,o.isNumber)(t.y)){var s=r.x-t.x,u=r.y-t.y,c=s*s+u*u;if(0===c){c=1;var f=i>a?1:-1;s=.01*f,u=.01*f}var l=n*n/c;e[i].x+=s*l,e[i].y+=u*l}}))}))},e.prototype.calAttractive=function(t,e,n){var r=this;t.forEach((function(t){if(t.source&&t.target){var i=r.nodeIdxMap[t.source],a=r.nodeIdxMap[t.target];if(i!==a){var s=r.nodeMap[t.source],u=r.nodeMap[t.target];if((0,o.isNumber)(u.x)&&(0,o.isNumber)(s.x)&&(0,o.isNumber)(u.y)&&(0,o.isNumber)(s.y)){var c=u.x-s.x,f=u.y-s.y,l=Math.sqrt(c*c+f*f),h=l*l/n;e[a].x-=c/l*h,e[a].y-=f/l*h,e[i].x+=c/l*h,e[i].y+=f/l*h}}}}))},e}(i.BaseLayout),u=s;e.default=u},"9f74":function(t,e,n){var r=n("48a0");function i(t,e){var n=[];return r(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}t.exports=i},"9fe7":function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return i})),n.d(e,"clone",(function(){return o})),n.d(e,"length",(function(){return a})),n.d(e,"fromValues",(function(){return s})),n.d(e,"copy",(function(){return u})),n.d(e,"set",(function(){return c})),n.d(e,"add",(function(){return f})),n.d(e,"subtract",(function(){return l})),n.d(e,"multiply",(function(){return h})),n.d(e,"divide",(function(){return d})),n.d(e,"ceil",(function(){return p})),n.d(e,"floor",(function(){return g})),n.d(e,"min",(function(){return v})),n.d(e,"max",(function(){return y})),n.d(e,"round",(function(){return m})),n.d(e,"scale",(function(){return b})),n.d(e,"scaleAndAdd",(function(){return x})),n.d(e,"distance",(function(){return w})),n.d(e,"squaredDistance",(function(){return M})),n.d(e,"squaredLength",(function(){return _})),n.d(e,"negate",(function(){return S})),n.d(e,"inverse",(function(){return P})),n.d(e,"normalize",(function(){return k})),n.d(e,"dot",(function(){return C})),n.d(e,"cross",(function(){return O})),n.d(e,"lerp",(function(){return E})),n.d(e,"hermite",(function(){return A})),n.d(e,"bezier",(function(){return j})),n.d(e,"random",(function(){return I})),n.d(e,"transformMat4",(function(){return T})),n.d(e,"transformMat3",(function(){return B})),n.d(e,"transformQuat",(function(){return N})),n.d(e,"rotateX",(function(){return D})),n.d(e,"rotateY",(function(){return L})),n.d(e,"rotateZ",(function(){return R})),n.d(e,"angle",(function(){return z})),n.d(e,"zero",(function(){return F})),n.d(e,"str",(function(){return G})),n.d(e,"exactEquals",(function(){return Y})),n.d(e,"equals",(function(){return X})),n.d(e,"sub",(function(){return V})),n.d(e,"mul",(function(){return q})),n.d(e,"div",(function(){return U})),n.d(e,"dist",(function(){return W})),n.d(e,"sqrDist",(function(){return H})),n.d(e,"len",(function(){return Z})),n.d(e,"sqrLen",(function(){return $})),n.d(e,"forEach",(function(){return Q}));var r=n("c94d");function i(){var t=new r["a"](3);return r["a"]!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function o(t){var e=new r["a"](3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(t){var e=t[0],n=t[1],r=t[2];return Math.hypot(e,n,r)}function s(t,e,n){var i=new r["a"](3);return i[0]=t,i[1]=e,i[2]=n,i}function u(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function c(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function f(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function l(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function h(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function d(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function p(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}function g(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}function v(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function y(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function m(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}function b(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function x(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function w(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.hypot(n,r,i)}function M(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function _(t){var e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function S(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function P(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function k(t,e){var n=e[0],r=e[1],i=e[2],o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o)),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o,t}function C(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function O(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[0],s=n[1],u=n[2];return t[0]=i*u-o*s,t[1]=o*a-r*u,t[2]=r*s-i*a,t}function E(t,e,n,r){var i=e[0],o=e[1],a=e[2];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=a+r*(n[2]-a),t}function A(t,e,n,r,i,o){var a=o*o,s=a*(2*o-3)+1,u=a*(o-2)+o,c=a*(o-1),f=a*(3-2*o);return t[0]=e[0]*s+n[0]*u+r[0]*c+i[0]*f,t[1]=e[1]*s+n[1]*u+r[1]*c+i[1]*f,t[2]=e[2]*s+n[2]*u+r[2]*c+i[2]*f,t}function j(t,e,n,r,i,o){var a=1-o,s=a*a,u=o*o,c=s*a,f=3*o*s,l=3*u*a,h=u*o;return t[0]=e[0]*c+n[0]*f+r[0]*l+i[0]*h,t[1]=e[1]*c+n[1]*f+r[1]*l+i[1]*h,t[2]=e[2]*c+n[2]*f+r[2]*l+i[2]*h,t}function I(t,e){e=e||1;var n=2*r["c"]()*Math.PI,i=2*r["c"]()-1,o=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(n)*o,t[1]=Math.sin(n)*o,t[2]=i*e,t}function T(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[3]*r+n[7]*i+n[11]*o+n[15];return a=a||1,t[0]=(n[0]*r+n[4]*i+n[8]*o+n[12])/a,t[1]=(n[1]*r+n[5]*i+n[9]*o+n[13])/a,t[2]=(n[2]*r+n[6]*i+n[10]*o+n[14])/a,t}function B(t,e,n){var r=e[0],i=e[1],o=e[2];return t[0]=r*n[0]+i*n[3]+o*n[6],t[1]=r*n[1]+i*n[4]+o*n[7],t[2]=r*n[2]+i*n[5]+o*n[8],t}function N(t,e,n){var r=n[0],i=n[1],o=n[2],a=n[3],s=e[0],u=e[1],c=e[2],f=i*c-o*u,l=o*s-r*c,h=r*u-i*s,d=i*h-o*l,p=o*f-r*h,g=r*l-i*f,v=2*a;return f*=v,l*=v,h*=v,d*=2,p*=2,g*=2,t[0]=s+f+d,t[1]=u+l+p,t[2]=c+h+g,t}function D(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function L(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function R(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function z(t,e){var n=t[0],r=t[1],i=t[2],o=e[0],a=e[1],s=e[2],u=Math.sqrt(n*n+r*r+i*i),c=Math.sqrt(o*o+a*a+s*s),f=u*c,l=f&&C(t,e)/f;return Math.acos(Math.min(Math.max(l,-1),1))}function F(t){return t[0]=0,t[1]=0,t[2]=0,t}function G(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function Y(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function X(t,e){var n=t[0],i=t[1],o=t[2],a=e[0],s=e[1],u=e[2];return Math.abs(n-a)<=r["b"]*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(i-s)<=r["b"]*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(o-u)<=r["b"]*Math.max(1,Math.abs(o),Math.abs(u))}var V=l,q=h,U=d,W=w,H=M,Z=a,$=_,Q=function(){var t=i();return function(e,n,r,i,o,a){var s,u;for(n||(n=3),r||(r=0),u=i?Math.min(i*n+r,e.length):e.length,s=r;s<u;s+=n)t[0]=e[s],t[1]=e[s+1],t[2]=e[s+2],o(t,t,a),e[s]=t[0],e[s+1]=t[1],e[s+2]=t[2];return e}}()},a00f:function(t,e,n){"use strict";function r(t,e){var n=[],r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],c=t[6],f=t[7],l=t[8],h=e[0],d=e[1],p=e[2],g=e[3],v=e[4],y=e[5],m=e[6],b=e[7],x=e[8];return n[0]=h*r+d*a+p*c,n[1]=h*i+d*s+p*f,n[2]=h*o+d*u+p*l,n[3]=g*r+v*a+y*c,n[4]=g*i+v*s+y*f,n[5]=g*o+v*u+y*l,n[6]=m*r+b*a+x*c,n[7]=m*i+b*s+x*f,n[8]=m*o+b*u+x*l,n}function i(t,e){var n=[],r=e[0],i=e[1];return n[0]=t[0]*r+t[3]*i+t[6],n[1]=t[1]*r+t[4]*i+t[7],n}function o(t){var e=[],n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],u=t[6],c=t[7],f=t[8],l=f*a-s*c,h=-f*o+s*u,d=c*o-a*u,p=n*l+r*h+i*d;return p?(p=1/p,e[0]=l*p,e[1]=(-f*r+i*c)*p,e[2]=(s*r-i*a)*p,e[3]=h*p,e[4]=(f*n-i*u)*p,e[5]=(-s*n+i*o)*p,e[6]=d*p,e[7]=(-c*n+r*u)*p,e[8]=(a*n-r*o)*p,e):null}Object.defineProperty(e,"__esModule",{value:!0}),e.multiplyMatrix=r,e.multiplyVec2=i,e.invert=o},a029:function(t,e,n){var r=n("087d"),i=n("2dcb"),o=n("32f4"),a=n("d327"),s=Object.getOwnPropertySymbols,u=s?function(t){var e=[];while(t)r(e,o(t)),t=i(t);return e}:a;t.exports=u},a02d:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("9ab4"),i=c(n("61d8")),o=n("56fa"),a=n("8937"),s=n("0dfa"),u=n("804a");function c(t){return t&&t.__esModule?t:{default:t}}var f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.begin=[0,0],e.preventOverlap=!0,e.preventOverlapPadding=10,e.condense=!1,e.sortBy="degree",e.nodeSize=30,e.nodes=[],e.edges=[],e.center=[0,0],e.width=300,e.height=300,e.row=0,e.col=0,e.cellWidth=0,e.cellHeight=0,e.cellUsed={},e.id2manPos={},e}return(0,r.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{begin:[0,0],preventOverlap:!0,preventOverlapPadding:10,condense:!1,rows:void 0,cols:void 0,position:void 0,sortBy:"degree",nodeSize:30}},e.prototype.execute=function(){var t=this,e=t.nodes,n=e.length,r=t.center;if(0!==n){if(1===n)return e[0].x=r[0],void(e[0].y=r[1]);var o=t.edges,c=[];e.forEach((function(t){c.push(t)}));var f={};if(c.forEach((function(t,e){f[t.id]=e})),("degree"===t.sortBy||!(0,i.default)(t.sortBy)||void 0===c[0][t.sortBy])&&(t.sortBy="degree",(0,u.isNaN)(e[0].degree))){var l=(0,s.getDegree)(c.length,f,o);c.forEach((function(t,e){t.degree=l[e]}))}c.sort((function(e,n){return n[t.sortBy]-e[t.sortBy]})),t.width||"undefined"===typeof window||(t.width=window.innerWidth),t.height||"undefined"===typeof window||(t.height=window.innerHeight);var h=t.rows,d=null!=t.cols?t.cols:t.columns;if(t.cells=n,null!=h&&null!=d?(t.rows=h,t.cols=d):null!=h&&null==d?(t.rows=h,t.cols=Math.ceil(t.cells/t.rows)):null==h&&null!=d?(t.cols=d,t.rows=Math.ceil(t.cells/t.cols)):(t.splits=Math.sqrt(t.cells*t.height/t.width),t.rows=Math.round(t.splits),t.cols=Math.round(t.width/t.height*t.splits)),t.cols*t.rows>t.cells){var p=t.small(),g=t.large();(p-1)*g>=t.cells?t.small(p-1):(g-1)*p>=t.cells&&t.large(g-1)}else while(t.cols*t.rows<t.cells){p=t.small(),g=t.large();(g+1)*p>=t.cells?t.large(g+1):t.small(p+1)}t.cellWidth=t.width/t.cols,t.cellHeight=t.height/t.rows,t.condense&&(t.cellWidth=0,t.cellHeight=0),t.preventOverlap&&c.forEach((function(e){var n,r;e.x&&e.y||(e.x=0,e.y=0),(0,a.isArray)(e.size)?(n=e.size[0],r=e.size[1]):(0,a.isNumber)(e.size)&&(n=e.size,r=e.size),void 0!==n&&void 0!==r||((0,a.isArray)(t.nodeSize)?(n=t.nodeSize[0],r=t.nodeSize[1]):(0,a.isNumber)(t.nodeSize)?(n=t.nodeSize,r=t.nodeSize):(n=30,r=30));var i=t.preventOverlapPadding,o=n+i,s=r+i;t.cellWidth=Math.max(t.cellWidth,o),t.cellHeight=Math.max(t.cellHeight,s)})),t.cellUsed={},t.row=0,t.col=0,t.id2manPos={};for(var v=0;v<c.length;v++){var y=c[v],m=void 0;if(t.position&&(m=t.position(y)),m&&(void 0!==m.row||void 0!==m.col)){var b={row:m.row,col:m.col};if(void 0===b.col){b.col=0;while(t.used(b.row,b.col))b.col++}else if(void 0===b.row){b.row=0;while(t.used(b.row,b.col))b.row++}t.id2manPos[y.id]=b,t.use(b.row,b.col)}t.getPos(y)}}},e.prototype.small=function(t){var e,n=this,r=n.rows||5,i=n.cols||5;if(null==t)e=Math.min(r,i);else{var o=Math.min(r,i);o===n.rows?n.rows=t:n.cols=t}return e},e.prototype.large=function(t){var e,n=this,r=n.rows||5,i=n.cols||5;if(null==t)e=Math.max(r,i);else{var o=Math.max(r,i);o===n.rows?n.rows=t:n.cols=t}return e},e.prototype.used=function(t,e){var n=this;return n.cellUsed["c-"+t+"-"+e]||!1},e.prototype.use=function(t,e){var n=this;n.cellUsed["c-"+t+"-"+e]=!0},e.prototype.moveToNextCell=function(){var t=this,e=t.cols||5;t.col++,t.col>=e&&(t.col=0,t.row++)},e.prototype.getPos=function(t){var e,n,r=this,i=r.begin,o=r.cellWidth,a=r.cellHeight,s=r.id2manPos[t.id];if(s)e=s.col*o+o/2+i[0],n=s.row*a+a/2+i[1];else{while(r.used(r.row,r.col))r.moveToNextCell();e=r.col*o+o/2+i[0],n=r.row*a+a/2+i[1],r.use(r.row,r.col),r.moveToNextCell()}t.x=e,t.y=n},e}(o.BaseLayout),l=f;e.default=l},a052:function(t,e,n){"use strict";var r=n("9ab4"),i=n("8937"),o=s(n("067f")),a=s(n("7da3"));function s(t){return t&&t.__esModule?t:{default:t}}a.default.registerNode("star",{options:{size:60,style:{stroke:o.default.defaultShapeStrokeColor,fill:o.default.defaultShapeFillColor,lineWidth:o.default.defaultNode.style.lineWidth},labelCfg:{style:{fill:"#595959"}},linkPoints:{top:!1,right:!1,left:!1,leftBottom:!1,rightBottom:!1,size:3,lineWidth:1,fill:"#fff",stroke:"#72CC4A"},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/basement_prod/012bcf4f-423b-4922-8c24-32a89f8c41ce.svg",width:16,height:16}},shapeType:"star",labelPosition:"center",drawShape:function(t,e){var n=this.options.icon,o=this.getShapeStyle(t),a=(0,i.mix)({},n,t.icon),s=e.addShape("path",{attrs:o,className:"star-keyShape",name:"star-keyShape",draggable:!0}),u=a.width,c=a.height,f=a.show;if(f)e.addShape("image",{attrs:(0,r.__assign)({x:-u/2,y:-c/2},a),className:"star-icon",name:"star-icon",draggable:!0});return this.drawLinkPoints(t,e),s},drawLinkPoints:function(t,e){var n=this.options.linkPoints,o=(0,i.mix)({},n,t.linkPoints),a=o.top,s=o.left,u=o.right,c=o.leftBottom,f=o.rightBottom,l=o.size,h=(0,r.__rest)(o,["top","left","right","leftBottom","rightBottom","size"]),d=this.getSize(t),p=d[0];if(u){var g=Math.cos(.1*Math.PI)*p,v=Math.sin(.1*Math.PI)*p;e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},h),{x:g,y:-v,r:l}),className:"link-point-right",name:"link-point-right"})}if(a){g=Math.cos(.5*Math.PI)*p,v=Math.sin(.5*Math.PI)*p;e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},h),{x:g,y:-v,r:l}),className:"link-point-top",name:"link-point-top"})}if(s){g=Math.cos(.9*Math.PI)*p,v=Math.sin(.9*Math.PI)*p;e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},h),{x:g,y:-v,r:l}),className:"link-point-left",name:"link-point-left"})}if(c){g=Math.cos(1.3*Math.PI)*p,v=Math.sin(1.3*Math.PI)*p;e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},h),{x:g,y:-v,r:l}),className:"link-point-left-bottom",name:"link-point-left-bottom"})}if(f){g=Math.cos(1.7*Math.PI)*p,v=Math.sin(1.7*Math.PI)*p;e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},h),{x:g,y:-v,r:l}),className:"link-point-right-bottom",name:"link-point-right-bottom"})}},getPath:function(t){for(var e=this.getSize(t),n=e[0],r=3*n/8,i=t.innerR||r,o=[],a=0;a<5;a++){var s=Math.cos((18+72*a)/180*Math.PI)*n,u=Math.sin((18+72*a)/180*Math.PI)*n,c=Math.cos((54+72*a)/180*Math.PI)*i,f=Math.sin((54+72*a)/180*Math.PI)*i;0===a?o.push(["M",s,-u]):o.push(["L",s,-u]),o.push(["L",c,-f])}return o.push(["Z"]),o},getShapeStyle:function(t){var e=this.options.style,n={stroke:t.color},o=(0,i.mix)({},e,n,t.style),a=this.getPath(t),s=(0,r.__assign)({path:a},o);return s},update:function(t,e){var n=e.getContainer(),r=this.options.style,o=this.getPath(t),a={stroke:t.color,path:o},s=e.get("keyShape"),u=(0,i.mix)({},r,s.attr(),a);u=(0,i.mix)(u,t.style),this.updateShape(t,e,u,!0),this.updateLinkPoints(t,n)},updateLinkPoints:function(t,e){var n=this.options.linkPoints,o=e.find((function(t){return"link-point-left"===t.get("className")})),a=e.find((function(t){return"link-point-right"===t.get("className")})),s=e.find((function(t){return"link-point-top"===t.get("className")})),u=e.find((function(t){return"link-point-left-bottom"===t.get("className")})),c=e.find((function(t){return"link-point-right-bottom"===t.get("className")})),f=n,l=o||a||s||u||c;l&&(f=l.attr());var h=(0,i.mix)({},f,t.linkPoints),d=h.fill,p=h.stroke,g=h.lineWidth,v=h.size;v||(v=h.r);var y=t.linkPoints?t.linkPoints:{left:void 0,right:void 0,top:void 0,leftBottom:void 0,rightBottom:void 0},m=y.left,b=y.right,x=y.top,w=y.leftBottom,M=y.rightBottom,_=this.getSize(t),S=_[0],P={r:v,fill:d,stroke:p,lineWidth:g},k=Math.cos(.1*Math.PI)*S,C=Math.sin(.1*Math.PI)*S;a?b||void 0===b?a.attr((0,r.__assign)((0,r.__assign)({},P),{x:k,y:-C})):a.remove():b&&e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},P),{x:k,y:-C}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0}),k=Math.cos(.5*Math.PI)*S,C=Math.sin(.5*Math.PI)*S,s?x||void 0===x?s.attr((0,r.__assign)((0,r.__assign)({},P),{x:k,y:-C})):s.remove():x&&e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},P),{x:k,y:-C}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0}),k=Math.cos(.9*Math.PI)*S,C=Math.sin(.9*Math.PI)*S,o?m||void 0===m?o.attr((0,r.__assign)((0,r.__assign)({},P),{x:k,y:-C})):o.remove():m&&e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},P),{x:k,y:-C}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0}),k=Math.cos(1.3*Math.PI)*S,C=Math.sin(1.3*Math.PI)*S,u?w||void 0===w?u.attr((0,r.__assign)((0,r.__assign)({},P),{x:k,y:-C})):u.remove():w&&e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},P),{x:k,y:-C}),className:"link-point-left-bottom",name:"link-point-left-bottom",isAnchorPoint:!0}),k=Math.cos(1.7*Math.PI)*S,C=Math.sin(1.7*Math.PI)*S,c?M||void 0===M?c.attr((0,r.__assign)((0,r.__assign)({},P),{x:k,y:-C})):u.remove():M&&e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},P),{x:k,y:-C}),className:"link-point-right-bottom",name:"link-point-right-bottom",isAnchorPoint:!0})}},"single-node")},a08e:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.prototype,i=function(t){var e=t&&t.constructor,n="function"===typeof e&&e.prototype||r;return t===n};e.default=i},a0a3:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("01f9");function i(t){var e=0,n=0,i=0,o=0;return r.default(t)?1===t.length?e=n=i=o=t[0]:2===t.length?(e=i=t[0],n=o=t[1]):3===t.length?(e=t[0],n=o=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],o=t[3]):e=n=i=o=t,{r1:e,r2:n,r3:i,r4:o}}e.default=i},a120:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),i=n("9705"),o=n("516b"),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var a=this.attr(),s=a.x,u=a.y,c=a.r,f=i/2,l=o.distance(s,u,t,e);return r&&n?l<=c+f:r?l<=c:!!n&&(l>=c-f&&l<=c+f)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.r;t.beginPath(),t.arc(n,r,i,0,2*Math.PI,!1),t.closePath()},e}(i.default);e.default=a},a12b:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("b455"),i=n("7ec0");function o(t,e,n,r,i,o,a,s){return-1*n*Math.cos(i)*Math.sin(s)-r*Math.sin(i)*Math.cos(s)}function a(t,e,n,r,i,o,a,s){return-1*n*Math.sin(i)*Math.sin(s)+r*Math.cos(i)*Math.cos(s)}function s(t,e,n){return Math.atan(-e/t*Math.tan(n))}function u(t,e,n){return Math.atan(e/(t*Math.tan(n)))}function c(t,e,n,r,i,o){return n*Math.cos(i)*Math.cos(o)-r*Math.sin(i)*Math.sin(o)+t}function f(t,e,n,r,i,o){return n*Math.sin(i)*Math.cos(o)+r*Math.cos(i)*Math.sin(o)+e}function l(t,e,n,r){var i=Math.atan2(r*t,n*e);return(i+2*Math.PI)%(2*Math.PI)}function h(t,e,n){return{x:t*Math.cos(n),y:e*Math.sin(n)}}function d(t,e,n){var r=Math.cos(n),i=Math.sin(n);return[t*r-e*i,t*i+e*r]}e.default={box:function(t,e,n,r,i,o,a){for(var l=s(n,r,i),h=1/0,d=-1/0,p=[o,a],g=2*-Math.PI;g<=2*Math.PI;g+=Math.PI){var v=l+g;o<a?o<v&&v<a&&p.push(v):a<v&&v<o&&p.push(v)}for(g=0;g<p.length;g++){var y=c(t,e,n,r,i,p[g]);y<h&&(h=y),y>d&&(d=y)}var m=u(n,r,i),b=1/0,x=-1/0,w=[o,a];for(g=2*-Math.PI;g<=2*Math.PI;g+=Math.PI){var M=m+g;o<a?o<M&&M<a&&w.push(M):a<M&&M<o&&w.push(M)}for(g=0;g<w.length;g++){var _=f(t,e,n,r,i,w[g]);_<b&&(b=_),_>x&&(x=_)}return{x:h,y:b,width:d-h,height:x-b}},length:function(t,e,n,r,i,o,a){},nearestPoint:function(t,e,n,r,o,a,s,u,c){var f=d(u-t,c-e,-o),p=f[0],g=f[1],v=i.default.nearestPoint(0,0,n,r,p,g),y=l(n,r,v.x,v.y);y<a?v=h(n,r,a):y>s&&(v=h(n,r,s));var m=d(v.x,v.y,o);return{x:m[0]+t,y:m[1]+e}},pointDistance:function(t,e,n,i,o,a,s,u,c){var f=this.nearestPoint(t,e,n,i,u,c);return r.distance(f.x,f.y,u,c)},pointAt:function(t,e,n,r,i,o,a,s){var u=(a-o)*s+o;return{x:c(t,e,n,r,i,u),y:f(t,e,n,r,i,u)}},tangentAngle:function(t,e,n,i,s,u,c,f){var l=(c-u)*f+u,h=o(t,e,n,i,s,u,c,l),d=a(t,e,n,i,s,u,c,l);return r.piMod(Math.atan2(d,h))}}},a233:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("5b8d"),i=function(t,e){if(!r.default(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var i=-1,o=0;o<t.length;o++)if(t[o]===e){i=o;break}return i};e.default=i},a2be:function(t,e,n){var r=n("d612"),i=n("4284"),o=n("c584"),a=1,s=2;function u(t,e,n,u,c,f){var l=n&a,h=t.length,d=e.length;if(h!=d&&!(l&&d>h))return!1;var p=f.get(t),g=f.get(e);if(p&&g)return p==e&&g==t;var v=-1,y=!0,m=n&s?new r:void 0;f.set(t,e),f.set(e,t);while(++v<h){var b=t[v],x=e[v];if(u)var w=l?u(x,b,v,e,t,f):u(b,x,v,t,e,f);if(void 0!==w){if(w)continue;y=!1;break}if(m){if(!i(e,(function(t,e){if(!o(m,e)&&(b===t||c(b,t,n,u,f)))return m.push(e)}))){y=!1;break}}else if(b!==x&&!c(b,x,n,u,f)){y=!1;break}}return f["delete"](t),f["delete"](e),y}t.exports=u},a2db:function(t,e,n){var r=n("9e69"),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;function a(t){return o?Object(o.call(t)):{}}t.exports=a},a3df:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),i=n("6855"),o=n("8937"),a=n("aeb1"),s=n("814b"),u=n("060b"),c=n("7a70"),f=n("487c"),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.isEntityGroup=function(){return!0},e.prototype.createDom=function(){var t=f.createSVGElement("g");this.set("el",t);var e=this.getParent();if(e){var n=e.get("el");n||(n=e.createDom(),e.set("el",n)),n.appendChild(t)}return t},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var r=n.get("context");this.createPath(r,e)}},e.prototype.onCanvasChange=function(t){s.refreshElement(this,t)},e.prototype.getShapeBase=function(){return a},e.prototype.getGroupBase=function(){return e},e.prototype.draw=function(t){var e=this.getChildren(),n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||this.createDom(),u.setClip(this,t),this.createPath(t),e.length&&s.drawChildren(t,e))},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");o.each(e||n,(function(t,e){c.SVG_ATTR_MAP[e]&&r.setAttribute(c.SVG_ATTR_MAP[e],t)})),u.setTransform(this)},e}(i.AbstractGroup);e.default=l},a434:function(t,e,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("23cb"),a=n("5926"),s=n("07fa"),u=n("7b0b"),c=n("65f0"),f=n("8418"),l=n("1dde"),h=l("splice"),d=i.TypeError,p=Math.max,g=Math.min,v=9007199254740991,y="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!h},{splice:function(t,e){var n,r,i,l,h,m,b=u(this),x=s(b),w=o(t,x),M=arguments.length;if(0===M?n=r=0:1===M?(n=0,r=x-w):(n=M-2,r=g(p(a(e),0),x-w)),x+n-r>v)throw d(y);for(i=c(b,r),l=0;l<r;l++)h=w+l,h in b&&f(i,l,b[h]);if(i.length=r,n<r){for(l=w;l<x-r;l++)h=l+r,m=l+n,h in b?b[m]=b[h]:delete b[m];for(l=x;l>x-r+n;l--)delete b[l-1]}else if(n>r)for(l=x-r;l>w;l--)h=l+r-1,m=l+n-1,h in b?b[m]=b[h]:delete b[m];for(l=0;l<n;l++)b[l+w]=arguments[l+2];return b.length=x-r+n,i}})},a446:function(t,e,n){"use strict";function r(t,e,n){void 0===n&&(n=0);for(var r=n;r<t.length;r++)if(e(t[r],r))return r;return-1}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},a454:function(t,e,n){var r=n("72f0"),i=n("3b4a"),o=n("cd9d"),a=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o;t.exports=a},a473:function(t,e,n){var r=n("33de"),i=n("01eb");t.exports=a;var o=r.constant(1);function a(t,e,n,r){return s(t,String(e),n||o,r||function(e){return t.outEdges(e)})}function s(t,e,n,r){var o,a,s={},u=new i,c=function(t){var e=t.v!==o?t.v:t.w,r=s[e],i=n(t),c=a.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+i);c<r.distance&&(r.distance=c,r.predecessor=o,u.decrease(e,c))};t.nodes().forEach((function(t){var n=t===e?0:Number.POSITIVE_INFINITY;s[t]={distance:n},u.add(t,n)}));while(u.size()>0){if(o=u.removeMin(),a=s[o],a.distance===Number.POSITIVE_INFINITY)break;r(o).forEach(c)}return s}},a4a4:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r="dblclick",i=["click","dblclick"],o={getDefaultCfg:function(){return{trigger:r}},getEvents:function(){var t,e;return i.includes(this.trigger)?e=this.trigger:(e=r,console.warn("Behavior collapse-expand-group 的 trigger 参数不合法,请输入 'click' 或 'dblclick'")),t={},t[""+e]="onComboClick",t},onComboClick:function(t){var e=t.item,n=this.graph;if(e&&"combo"===e.getType()){var r=e.getModel(),i=r.id;i&&(n.collapseExpandCombo(i),n.get("layout")?n.layout():n.refreshPositions())}}};e.default=o},a524:function(t,e,n){var r=n("4245");function i(t){return r(this,t).has(t)}t.exports=i},a5d2:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("72fb"),i=n("cdca"),o=Object.prototype.hasOwnProperty;e.default=function(t,e){if(null===t||!i.default(t))return{};var n={};return r.default(e,(function(e){o.call(t,e)&&(n[e]=t[e])})),n}},a645:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("842b"),i=function(t){return r.default(t)&&t%1!==0};e.default=i},a6d1:function(t,e,n){"use strict";var r=n("6f9c"),i=n("299f");function o(t){var e="greedy"===t.graph().acyclicer?i(t,n(t)):a(t);function n(t){return function(e){return t.edge(e).weight}}r.forEach(e,(function(e){var n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,r.uniqueId("rev"))}))}function a(t){var e=[],n={},i={};function o(a){r.has(i,a)||(i[a]=!0,n[a]=!0,r.forEach(t.outEdges(a),(function(t){r.has(n,t.w)?e.push(t):o(t.w)})),delete n[a])}return r.forEach(t.nodes(),o),e}function s(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.reversed){t.removeEdge(e);var r=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,r)}}))}t.exports={run:o,undo:s}},a864:function(t,e,n){"use strict";var r=n("6f9c");function i(t){var e=t.graph().rankdir.toLowerCase();"lr"!==e&&"rl"!==e||a(t)}function o(t){var e=t.graph().rankdir.toLowerCase();"bt"!==e&&"rl"!==e||u(t),"lr"!==e&&"rl"!==e||(f(t),a(t))}function a(t){r.forEach(t.nodes(),(function(e){s(t.node(e))})),r.forEach(t.edges(),(function(e){s(t.edge(e))}))}function s(t){var e=t.width;t.width=t.height,t.height=e}function u(t){r.forEach(t.nodes(),(function(e){c(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.forEach(n.points,c),r.has(n,"y")&&c(n)}))}function c(t){t.y=-t.y}function f(t){r.forEach(t.nodes(),(function(e){l(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.forEach(n.points,l),r.has(n,"x")&&l(n)}))}function l(t){var e=t.x;t.x=t.y,t.y=e}t.exports={adjust:i,undo:o}},a994:function(t,e,n){var r=n("7d1f"),i=n("32f4"),o=n("ec69");function a(t){return r(t,o,i)}t.exports=a},a9e3:function(t,e,n){"use strict";var r=n("83ab"),i=n("da84"),o=n("e330"),a=n("94ca"),s=n("6eeb"),u=n("1a2d"),c=n("7156"),f=n("3a9b"),l=n("d9b5"),h=n("c04e"),d=n("d039"),p=n("241c").f,g=n("06cf").f,v=n("9bf2").f,y=n("408a"),m=n("58a8").trim,b="Number",x=i[b],w=x.prototype,M=i.TypeError,_=o("".slice),S=o("".charCodeAt),P=function(t){var e=h(t,"number");return"bigint"==typeof e?e:k(e)},k=function(t){var e,n,r,i,o,a,s,u,c=h(t,"number");if(l(c))throw M("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=m(c),e=S(c,0),43===e||45===e){if(n=S(c,2),88===n||120===n)return NaN}else if(48===e){switch(S(c,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+c}for(o=_(c,2),a=o.length,s=0;s<a;s++)if(u=S(o,s),u<48||u>i)return NaN;return parseInt(o,r)}return+c};if(a(b,!x(" 0o1")||!x("0b1")||x("+0x1"))){for(var C,O=function(t){var e=arguments.length<1?0:x(P(t)),n=this;return f(w,n)&&d((function(){y(n)}))?c(Object(e),n,O):e},E=r?p(x):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),A=0;E.length>A;A++)u(x,C=E[A])&&!u(O,C)&&v(O,C,g(x,C));O.prototype=w,w.constructor=O,s(i,b,O)}},aaec:function(t,e){var n="\\ud800-\\udfff",r="\\u0300-\\u036f",i="\\ufe20-\\ufe2f",o="\\u20d0-\\u20ff",a=r+i+o,s="\\ufe0e\\ufe0f",u="\\u200d",c=RegExp("["+u+n+a+s+"]");function f(t){return c.test(t)}t.exports=f},aaf9:function(t,e,n){var r=n("df2e");function i(t,e){return r(t,e,"pre")}t.exports=i},ab81:function(t,e){var n="\\ud800-\\udfff",r="\\u0300-\\u036f",i="\\ufe20-\\ufe2f",o="\\u20d0-\\u20ff",a=r+i+o,s="\\ufe0e\\ufe0f",u="["+n+"]",c="["+a+"]",f="\\ud83c[\\udffb-\\udfff]",l="(?:"+c+"|"+f+")",h="[^"+n+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",g="\\u200d",v=l+"?",y="["+s+"]?",m="(?:"+g+"(?:"+[h,d,p].join("|")+")"+y+v+")*",b=y+v+m,x="(?:"+[h+c+"?",c,d,p,u].join("|")+")",w=RegExp(f+"(?="+f+")|"+x+b,"g");function M(t){var e=w.lastIndex=0;while(w.test(t))++e;return e}t.exports=M},abdd:function(t,e,n){var r=n("76e9"),i=n("57dc"),o=n("cd9d");function a(t){return t&&t.length?r(t,o,i):void 0}t.exports=a},ac0d:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),i=n("c3e2"),o=n("d6a3"),a=n("8937"),s=n("9705"),u=n("3dfb"),c=n("4dab"),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),this.setArrow(),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.setArrow=function(){var t=this.attr(),e=this.attrs,n=e.points,r=e.startArrow,i=e.endArrow,o=n.length,a=n[0][0],s=n[0][1],u=n[o-1][0],f=n[o-1][1];r&&c.addStartArrow(this,t,n[1][0],n[1][1],a,s),i&&c.addEndArrow(this,t,n[o-2][0],n[o-2][1],u,f)},e.prototype.isFill=function(){return!1},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){if(!n||!i)return!1;var o=this.attr().points;return u.default(o,i,t,e,!1)},e.prototype.isStroke=function(){return!0},e.prototype.createPath=function(t){var e=this.attr(),n=e.points,r=e.startArrow,i=e.endArrow,o=n.length;if(!(n.length<2)){var a=n[0][0],s=n[0][1],u=n[o-1][0],f=n[o-1][1];if(r&&r.d){var l=c.getShortenOffset(a,s,n[1][0],n[1][1],r.d);a+=l.dx,s+=l.dy}if(i&&i.d){l=c.getShortenOffset(n[o-2][0],n[o-2][1],u,f,i.d);u-=l.dx,f-=l.dy}t.beginPath(),t.moveTo(a,s);for(var h=0;h<o-1;h++){var d=n[h];t.lineTo(d[0],d[1])}t.lineTo(u,f)}},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return a.isNil(e)?(this.set("totalLength",o.default.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,r=this.attr().points,o=this.get("tCache");return o||(this._setTcache(),o=this.get("tCache")),a.each(o,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),i.default.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,r,o=0,s=[];a.each(t,(function(a,u){t[u+1]&&(n=[],n[0]=o/e,r=i.default.length(a[0],a[1],t[u+1][0],t[u+1][1]),o+=r,n[1]=o/e,s.push(n))})),this.set("tCache",s)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(s.default);e.default=f},ac41:function(t,e){function n(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}t.exports=n},ac5d:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"depthFirstSearch",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"breadthFirstSearch",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"detectDirectedCycle",{enumerable:!0,get:function(){return o.default}});var r=a(n("c01c")),i=a(n("5439b")),o=a(n("b449"));function a(t){return t&&t.__esModule?t:{default:t}}},acd5:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),i=n("8937"),o=n("7a70"),a=n("d531"),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="path",e.canFill=!0,e.canStroke=!0,e}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),a=this.get("el");i.each(e||r,(function(e,s){if("path"===s&&i.isArray(e))a.setAttribute("d",n._formatPath(e));else if("startArrow"===s||"endArrow"===s)if(e){var u=i.isObject(e)?t.addArrow(r,o.SVG_ATTR_MAP[s]):t.getDefaultArrow(r,o.SVG_ATTR_MAP[s]);a.setAttribute(o.SVG_ATTR_MAP[s],"url(#"+u+")")}else a.removeAttribute(o.SVG_ATTR_MAP[s]);else o.SVG_ATTR_MAP[s]&&a.setAttribute(o.SVG_ATTR_MAP[s],e)}))},e.prototype._formatPath=function(t){var e=t.map((function(t){return t.join(" ")})).join("");return~e.indexOf("NaN")?"":e},e.prototype.getTotalLength=function(){var t=this.get("el");return t?t.getTotalLength():null},e.prototype.getPoint=function(t){var e=this.get("el"),n=this.getTotalLength(),r=e?e.getPointAtLength(t*n):null;return r?{x:r.x,y:r.y}:null},e}(a.default);e.default=s},ace6:function(t,e,n){"use strict";var r=n("9ab4"),i=n("8937"),o=s(n("067f")),a=s(n("7da3"));function s(t){return t&&t.__esModule?t:{default:t}}a.default.registerNode("ellipse",{options:{size:[120,60],style:{x:0,y:0,stroke:o.default.defaultShapeStrokeColor,fill:o.default.defaultShapeFillColor,lineWidth:1},labelCfg:{style:{fill:"#595959"}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:3,lineWidth:1,fill:"#72CC4A",stroke:"#72CC4A"},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/basement_prod/012bcf4f-423b-4922-8c24-32a89f8c41ce.svg",width:36,height:36}},shapeType:"ellipse",labelPosition:"center",drawShape:function(t,e){var n=this.options.icon,o=this.getShapeStyle(t),a=(0,i.mix)({},n,t.icon),s=e.addShape("ellipse",{attrs:o,className:"ellipse-keyShape",name:"ellipse-keyShape",draggable:!0}),u=a.width,c=a.height,f=a.show;if(f)e.addShape("image",{attrs:(0,r.__assign)({x:-u/2,y:-c/2},a),className:"ellipse-icon",name:"ellipse-icon",draggable:!0});return this.drawLinkPoints(t,e),s},drawLinkPoints:function(t,e){var n=this.options.linkPoints,o=(0,i.mix)({},n,t.linkPoints),a=o.top,s=o.left,u=o.right,c=o.bottom,f=o.size,l=(0,r.__rest)(o,["top","left","right","bottom","size"]),h=this.getSize(t),d=h[0]/2,p=h[1]/2;s&&e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},l),{x:-d,y:0,r:f}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0}),u&&e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},l),{x:d,y:0,r:f}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0}),a&&e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},l),{x:0,y:-p,r:f}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0}),c&&e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},l),{x:0,y:p,r:f}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0})},getShapeStyle:function(t){var e=this.options.style,n={stroke:t.color},r=(0,i.mix)({},e,n,t.style),o=this.getSize(t),a=o[0]/2,s=o[1]/2,u=Object.assign({},{x:0,y:0,rx:a,ry:s},r);return u},update:function(t,e){var n=e.getContainer(),r=this.options.style,o=this.getSize(t),a={stroke:t.color,rx:o[0]/2,ry:o[1]/2},s=e.get("keyShape"),u=(0,i.mix)({},r,s.attr(),a);u=(0,i.mix)(u,t.style),this.updateShape(t,e,u,!0),this.updateLinkPoints(t,n)}},"single-node")},ad5a:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("5830"),i=n("8937");r.angle=function(t,e){var n=r.dot(t,e)/(r.length(t)*r.length(e));return Math.acos(i.clamp(n,-1,1))},r.direction=function(t,e){return t[0]*e[1]-e[0]*t[1]},r.angleTo=function(t,e,n){var i=r.angle(t,e),o=r.direction(t,e)>=0;return n?o?2*Math.PI-i:i:o?i:2*Math.PI-i},r.vertical=function(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t},e.default=r},addb:function(t,e,n){var r=n("f36a"),i=Math.floor,o=function(t,e){var n=t.length,u=i(n/2);return n<8?a(t,e):s(t,o(r(t,0,u),e),o(r(t,u),e),e)},a=function(t,e){var n,r,i=t.length,o=1;while(o<i){r=o,n=t[o];while(r&&e(t[r-1],n)>0)t[r]=t[--r];r!==o++&&(t[r]=n)}return t},s=function(t,e,n,r){var i=e.length,o=n.length,a=0,s=0;while(a<i||s<o)t[a+s]=a<i&&s<o?r(e[a],n[s])<=0?e[a++]:n[s++]:a<i?e[a++]:n[s++];return t};t.exports=o},aeb1:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("d531");e.Base=r.default;var i=n("4991");e.Circle=i.default;var o=n("0048");e.Dom=o.default;var a=n("97d6");e.Ellipse=a.default;var s=n("d124");e.Image=s.default;var u=n("f03f");e.Line=u.default;var c=n("0a73");e.Marker=c.default;var f=n("acd5");e.Path=f.default;var l=n("fc63");e.Polygon=l.default;var h=n("9c6b");e.Polyline=h.default;var d=n("bff8");e.Rect=d.default;var p=n("6fcf");e.Text=p.default},afaa:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("72fb"));function i(t){return t&&t.__esModule?t:{default:t}}var o={getDefaultCfg:function(){return{}},getEvents:function(){return{}},shouldBegin:function(){return!0},shouldUpdate:function(){return!0},shouldEnd:function(){return!0},bind:function(t){var e=this,n=this.events;this.graph=t,"drag-canvas"!==this.type&&"brush-select"!==this.type||t.get("canvas").set("draggable",!0),(0,r.default)(n,(function(e,n){t.on(n,e)})),document.addEventListener("visibilitychange",(function(){e.keydown=!1}))},unbind:function(t){var e=this.events;"drag-canvas"!==this.type&&"brush-select"!==this.type||t.get("canvas").set("draggable",!1),(0,r.default)(e,(function(e,n){t.off(n,e)}))},get:function(t){return this[t]},set:function(t,e){return this[t]=e,this}};e.default=o},b047:function(t,e){function n(t){return function(e){return t(e)}}t.exports=n},b10b:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=.05,i={getDefaultCfg:function(){return{sensitivity:2,minZoom:.2,maxZoom:10,enableOptimize:!1,optimizeZoom:.7}},getEvents:function(){return{wheel:"onWheel"}},onWheel:function(t){var e=this.graph;if(t.preventDefault(),this.shouldUpdate.call(this,t)){var n=e.get("canvas"),i=n.getPointByClient(t.clientX,t.clientY),o=this.get("sensitivity"),a=e.getZoom();a=t.wheelDelta<0?1-r*o:1+r*o;var s=a*e.getZoom();if(!(s>this.get("maxZoom")||s<this.get("minZoom"))){var u=this.get("enableOptimize");if(u){var c=this.get("optimizeZoom"),f=e.getZoom();if(f<c){var l=e.getNodes(),h=e.getEdges();l.map((function(t){if(!t.destroyed){var e=t.getContainer().get("children");e.map((function(t){t.destoryed||t.get("isKeyShape")||t.hide()}))}})),h.map((function(t){var e=t.getContainer().get("children");e.map((function(t){t.get("isKeyShape")||t.hide()}))}))}else{l=e.getNodes(),h=e.getEdges();l.map((function(t){var e=t.getContainer().get("children");e.map((function(t){t.get("visible")||t.show()}))})),h.map((function(t){var e=t.getContainer().get("children");e.map((function(t){t.get("visible")||t.show()}))}))}}e.zoom(a,{x:i.x,y:i.y}),e.emit("wheelzoom",t)}}}};e.default=i},b1e5:function(t,e,n){var r=n("a994"),i=1,o=Object.prototype,a=o.hasOwnProperty;function s(t,e,n,o,s,u){var c=n&i,f=r(t),l=f.length,h=r(e),d=h.length;if(l!=d&&!c)return!1;var p=l;while(p--){var g=f[p];if(!(c?g in e:a.call(e,g)))return!1}var v=u.get(t),y=u.get(e);if(v&&y)return v==e&&y==t;var m=!0;u.set(t,e),u.set(e,t);var b=c;while(++p<l){g=f[p];var x=t[g],w=e[g];if(o)var M=c?o(w,x,g,e,t,u):o(x,w,g,t,e,u);if(!(void 0===M?x===w||s(x,w,n,o,u):M)){m=!1;break}b||(b="constructor"==g)}if(m&&!b){var _=t.constructor,S=e.constructor;_==S||!("constructor"in t)||!("constructor"in e)||"function"==typeof _&&_ instanceof _&&"function"==typeof S&&S instanceof S||(m=!1)}return u["delete"](t),u["delete"](e),m}t.exports=s},b218:function(t,e){var n=9007199254740991;function r(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}t.exports=r},b3b0:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n))return!0;return!1};e.default=r},b449:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("c01c"));function i(t){return t&&t.__esModule?t:{default:t}}var o=function(t){var e=null,n={},i={},o={},a={};t.getNodes().forEach((function(t){i[t.getID()]=t}));var s={enter:function(t){var r=t.current,a=t.previous;if(o[r.getID()]){e={};var s=r,u=a;while(u.getID()!==r.getID())e[s.getID()]=u,s=u,u=n[u.getID()];e[s.getID()]=u}else o[r.getID()]=r,delete i[r.getID()],n[r.getID()]=a},leave:function(t){var e=t.current;a[e.getID()]=e,delete o[e.getID()]},allowTraversal:function(t){var n=t.next;return!e&&!a[n.getID()]}};while(Object.keys(i).length){var u=Object.keys(i)[0];(0,r.default)(t,u,s)}return e},a=o;e.default=a},b455:function(t,e,n){"use strict";function r(t){return Math.min.apply(null,t)}function i(t){return Math.max.apply(null,t)}function o(t,e,n,r){var i=t-n,o=e-r;return Math.sqrt(i*i+o*o)}function a(t,e){return Math.abs(t-e)<.001}function s(t,e){var n=r(t),o=r(e),a=i(t),s=i(e);return{x:n,y:o,width:a-n,height:s-o}}function u(t,e,n,o){return{minX:r([t,n]),maxX:i([t,n]),minY:r([e,o]),maxY:i([e,o])}}function c(t){return(t+2*Math.PI)%(2*Math.PI)}Object.defineProperty(e,"__esModule",{value:!0}),e.piMod=e.getBBoxRange=e.getBBoxByArray=e.isNumberEqual=e.distance=void 0,e.distance=o,e.isNumberEqual=a,e.getBBoxByArray=s,e.getBBoxRange=u,e.piMod=c},b4ae:function(t,e,n){"use strict";n.r(e),n.d(e,"AbstractMatrix",(function(){return U})),n.d(e,"default",(function(){return H})),n.d(e,"Matrix",(function(){return H})),n.d(e,"MatrixColumnView",(function(){return $})),n.d(e,"MatrixColumnSelectionView",(function(){return Q})),n.d(e,"MatrixFlipColumnView",(function(){return K})),n.d(e,"MatrixFlipRowView",(function(){return J})),n.d(e,"MatrixRowView",(function(){return tt})),n.d(e,"MatrixRowSelectionView",(function(){return et})),n.d(e,"MatrixSelectionView",(function(){return nt})),n.d(e,"MatrixSubView",(function(){return rt})),n.d(e,"MatrixTransposeView",(function(){return it})),n.d(e,"wrap",(function(){return st})),n.d(e,"WrapperMatrix1D",(function(){return ot})),n.d(e,"WrapperMatrix2D",(function(){return at})),n.d(e,"solve",(function(){return dt})),n.d(e,"inverse",(function(){return ht})),n.d(e,"determinant",(function(){return pt})),n.d(e,"linearDependencies",(function(){return yt})),n.d(e,"pseudoInverse",(function(){return mt})),n.d(e,"covariance",(function(){return bt})),n.d(e,"correlation",(function(){return xt})),n.d(e,"SingularValueDecomposition",(function(){return lt})),n.d(e,"SVD",(function(){return lt})),n.d(e,"EigenvalueDecomposition",(function(){return wt})),n.d(e,"EVD",(function(){return wt})),n.d(e,"CholeskyDecomposition",(function(){return Ct})),n.d(e,"CHO",(function(){return Ct})),n.d(e,"LuDecomposition",(function(){return ut})),n.d(e,"LU",(function(){return ut})),n.d(e,"QrDecomposition",(function(){return ft})),n.d(e,"QR",(function(){return ft})),n.d(e,"Nipals",(function(){return Ot})),n.d(e,"NIPALS",(function(){return Ot}));const r=Object.prototype.toString;function i(t){return r.call(t).endsWith("Array]")}function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!i(t))throw new TypeError("input must be an array");if(0===t.length)throw new TypeError("input must not be empty");var n=e.fromIndex,r=void 0===n?0:n,o=e.toIndex,a=void 0===o?t.length:o;if(r<0||r>=t.length||!Number.isInteger(r))throw new Error("fromIndex must be a positive integer smaller than length");if(a<=r||a>t.length||!Number.isInteger(a))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var s=t[r],u=r+1;u<a;u++)t[u]>s&&(s=t[u]);return s}var a=o;function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!i(t))throw new TypeError("input must be an array");if(0===t.length)throw new TypeError("input must not be empty");var n=e.fromIndex,r=void 0===n?0:n,o=e.toIndex,a=void 0===o?t.length:o;if(r<0||r>=t.length||!Number.isInteger(r))throw new Error("fromIndex must be a positive integer smaller than length");if(a<=r||a>t.length||!Number.isInteger(a))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var s=t[r],u=r+1;u<a;u++)t[u]<s&&(s=t[u]);return s}var u=s;function c(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!i(t))throw new TypeError("input must be an array");if(0===t.length)throw new TypeError("input must not be empty");if(void 0!==n.output){if(!i(n.output))throw new TypeError("output option must be an array if specified");e=n.output}else e=new Array(t.length);var r=u(t),o=a(t);if(r===o)throw new RangeError("minimum and maximum input values are equal. Cannot rescale a constant array");var s=n.min,c=void 0===s?n.autoMinMax?r:0:s,f=n.max,l=void 0===f?n.autoMinMax?o:1:f;if(c>=l)throw new RangeError("min option must be smaller than max option");for(var h=(l-c)/(o-r),d=0;d<t.length;d++)e[d]=(t[d]-r)*h+c;return e}const f=" ".repeat(2),l=" ".repeat(4);function h(){return d(this)}function d(t,e={}){const{maxRows:n=15,maxColumns:r=10,maxNumSize:i=8}=e;return`${t.constructor.name} {\n${f}[\n${l}${p(t,n,r,i)}\n${f}]\n${f}rows: ${t.rows}\n${f}columns: ${t.columns}\n}`}function p(t,e,n,r){const{rows:i,columns:o}=t,a=Math.min(i,e),s=Math.min(o,n),u=[];for(let c=0;c<a;c++){let e=[];for(let n=0;n<s;n++)e.push(g(t.get(c,n),r));u.push(""+e.join(" "))}return s!==o&&(u[u.length-1]+=` ... ${o-n} more columns`),a!==i&&u.push(`... ${i-e} more rows`),u.join("\n"+l)}function g(t,e){const n=String(t);if(n.length<=e)return n.padEnd(e," ");const r=t.toPrecision(e-2);if(r.length<=e)return r;const i=t.toExponential(e-2),o=i.indexOf("e"),a=i.slice(o);return i.slice(0,e-a.length)+a}function v(t,e){t.prototype.add=function(t){return"number"===typeof t?this.addS(t):this.addM(t)},t.prototype.addS=function(t){for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)+t);return this},t.prototype.addM=function(t){if(t=e.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)+t.get(e,n));return this},t.add=function(t,n){const r=new e(t);return r.add(n)},t.prototype.sub=function(t){return"number"===typeof t?this.subS(t):this.subM(t)},t.prototype.subS=function(t){for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)-t);return this},t.prototype.subM=function(t){if(t=e.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)-t.get(e,n));return this},t.sub=function(t,n){const r=new e(t);return r.sub(n)},t.prototype.subtract=t.prototype.sub,t.prototype.subtractS=t.prototype.subS,t.prototype.subtractM=t.prototype.subM,t.subtract=t.sub,t.prototype.mul=function(t){return"number"===typeof t?this.mulS(t):this.mulM(t)},t.prototype.mulS=function(t){for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)*t);return this},t.prototype.mulM=function(t){if(t=e.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)*t.get(e,n));return this},t.mul=function(t,n){const r=new e(t);return r.mul(n)},t.prototype.multiply=t.prototype.mul,t.prototype.multiplyS=t.prototype.mulS,t.prototype.multiplyM=t.prototype.mulM,t.multiply=t.mul,t.prototype.div=function(t){return"number"===typeof t?this.divS(t):this.divM(t)},t.prototype.divS=function(t){for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)/t);return this},t.prototype.divM=function(t){if(t=e.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)/t.get(e,n));return this},t.div=function(t,n){const r=new e(t);return r.div(n)},t.prototype.divide=t.prototype.div,t.prototype.divideS=t.prototype.divS,t.prototype.divideM=t.prototype.divM,t.divide=t.div,t.prototype.mod=function(t){return"number"===typeof t?this.modS(t):this.modM(t)},t.prototype.modS=function(t){for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)%t);return this},t.prototype.modM=function(t){if(t=e.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)%t.get(e,n));return this},t.mod=function(t,n){const r=new e(t);return r.mod(n)},t.prototype.modulus=t.prototype.mod,t.prototype.modulusS=t.prototype.modS,t.prototype.modulusM=t.prototype.modM,t.modulus=t.mod,t.prototype.and=function(t){return"number"===typeof t?this.andS(t):this.andM(t)},t.prototype.andS=function(t){for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)&t);return this},t.prototype.andM=function(t){if(t=e.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)&t.get(e,n));return this},t.and=function(t,n){const r=new e(t);return r.and(n)},t.prototype.or=function(t){return"number"===typeof t?this.orS(t):this.orM(t)},t.prototype.orS=function(t){for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)|t);return this},t.prototype.orM=function(t){if(t=e.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)|t.get(e,n));return this},t.or=function(t,n){const r=new e(t);return r.or(n)},t.prototype.xor=function(t){return"number"===typeof t?this.xorS(t):this.xorM(t)},t.prototype.xorS=function(t){for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)^t);return this},t.prototype.xorM=function(t){if(t=e.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)^t.get(e,n));return this},t.xor=function(t,n){const r=new e(t);return r.xor(n)},t.prototype.leftShift=function(t){return"number"===typeof t?this.leftShiftS(t):this.leftShiftM(t)},t.prototype.leftShiftS=function(t){for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)<<t);return this},t.prototype.leftShiftM=function(t){if(t=e.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)<<t.get(e,n));return this},t.leftShift=function(t,n){const r=new e(t);return r.leftShift(n)},t.prototype.signPropagatingRightShift=function(t){return"number"===typeof t?this.signPropagatingRightShiftS(t):this.signPropagatingRightShiftM(t)},t.prototype.signPropagatingRightShiftS=function(t){for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)>>t);return this},t.prototype.signPropagatingRightShiftM=function(t){if(t=e.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)>>t.get(e,n));return this},t.signPropagatingRightShift=function(t,n){const r=new e(t);return r.signPropagatingRightShift(n)},t.prototype.rightShift=function(t){return"number"===typeof t?this.rightShiftS(t):this.rightShiftM(t)},t.prototype.rightShiftS=function(t){for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)>>>t);return this},t.prototype.rightShiftM=function(t){if(t=e.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)>>>t.get(e,n));return this},t.rightShift=function(t,n){const r=new e(t);return r.rightShift(n)},t.prototype.zeroFillRightShift=t.prototype.rightShift,t.prototype.zeroFillRightShiftS=t.prototype.rightShiftS,t.prototype.zeroFillRightShiftM=t.prototype.rightShiftM,t.zeroFillRightShift=t.rightShift,t.prototype.not=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,~this.get(t,e));return this},t.not=function(t){const n=new e(t);return n.not()},t.prototype.abs=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.abs(this.get(t,e)));return this},t.abs=function(t){const n=new e(t);return n.abs()},t.prototype.acos=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.acos(this.get(t,e)));return this},t.acos=function(t){const n=new e(t);return n.acos()},t.prototype.acosh=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.acosh(this.get(t,e)));return this},t.acosh=function(t){const n=new e(t);return n.acosh()},t.prototype.asin=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.asin(this.get(t,e)));return this},t.asin=function(t){const n=new e(t);return n.asin()},t.prototype.asinh=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.asinh(this.get(t,e)));return this},t.asinh=function(t){const n=new e(t);return n.asinh()},t.prototype.atan=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.atan(this.get(t,e)));return this},t.atan=function(t){const n=new e(t);return n.atan()},t.prototype.atanh=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.atanh(this.get(t,e)));return this},t.atanh=function(t){const n=new e(t);return n.atanh()},t.prototype.cbrt=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.cbrt(this.get(t,e)));return this},t.cbrt=function(t){const n=new e(t);return n.cbrt()},t.prototype.ceil=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.ceil(this.get(t,e)));return this},t.ceil=function(t){const n=new e(t);return n.ceil()},t.prototype.clz32=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.clz32(this.get(t,e)));return this},t.clz32=function(t){const n=new e(t);return n.clz32()},t.prototype.cos=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.cos(this.get(t,e)));return this},t.cos=function(t){const n=new e(t);return n.cos()},t.prototype.cosh=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.cosh(this.get(t,e)));return this},t.cosh=function(t){const n=new e(t);return n.cosh()},t.prototype.exp=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.exp(this.get(t,e)));return this},t.exp=function(t){const n=new e(t);return n.exp()},t.prototype.expm1=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.expm1(this.get(t,e)));return this},t.expm1=function(t){const n=new e(t);return n.expm1()},t.prototype.floor=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.floor(this.get(t,e)));return this},t.floor=function(t){const n=new e(t);return n.floor()},t.prototype.fround=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.fround(this.get(t,e)));return this},t.fround=function(t){const n=new e(t);return n.fround()},t.prototype.log=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.log(this.get(t,e)));return this},t.log=function(t){const n=new e(t);return n.log()},t.prototype.log1p=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.log1p(this.get(t,e)));return this},t.log1p=function(t){const n=new e(t);return n.log1p()},t.prototype.log10=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.log10(this.get(t,e)));return this},t.log10=function(t){const n=new e(t);return n.log10()},t.prototype.log2=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.log2(this.get(t,e)));return this},t.log2=function(t){const n=new e(t);return n.log2()},t.prototype.round=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.round(this.get(t,e)));return this},t.round=function(t){const n=new e(t);return n.round()},t.prototype.sign=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.sign(this.get(t,e)));return this},t.sign=function(t){const n=new e(t);return n.sign()},t.prototype.sin=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.sin(this.get(t,e)));return this},t.sin=function(t){const n=new e(t);return n.sin()},t.prototype.sinh=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.sinh(this.get(t,e)));return this},t.sinh=function(t){const n=new e(t);return n.sinh()},t.prototype.sqrt=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.sqrt(this.get(t,e)));return this},t.sqrt=function(t){const n=new e(t);return n.sqrt()},t.prototype.tan=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.tan(this.get(t,e)));return this},t.tan=function(t){const n=new e(t);return n.tan()},t.prototype.tanh=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.tanh(this.get(t,e)));return this},t.tanh=function(t){const n=new e(t);return n.tanh()},t.prototype.trunc=function(){for(let t=0;t<this.rows;t++)for(let e=0;e<this.columns;e++)this.set(t,e,Math.trunc(this.get(t,e)));return this},t.trunc=function(t){const n=new e(t);return n.trunc()},t.pow=function(t,n){const r=new e(t);return r.pow(n)},t.prototype.pow=function(t){return"number"===typeof t?this.powS(t):this.powM(t)},t.prototype.powS=function(t){for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,Math.pow(this.get(e,n),t));return this},t.prototype.powM=function(t){if(t=e.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,Math.pow(this.get(e,n),t.get(e,n)));return this}}function y(t,e,n){let r=n?t.rows:t.rows-1;if(e<0||e>r)throw new RangeError("Row index out of range")}function m(t,e,n){let r=n?t.columns:t.columns-1;if(e<0||e>r)throw new RangeError("Column index out of range")}function b(t,e){if(e.to1DArray&&(e=e.to1DArray()),e.length!==t.columns)throw new RangeError("vector size must be the same as the number of columns");return e}function x(t,e){if(e.to1DArray&&(e=e.to1DArray()),e.length!==t.rows)throw new RangeError("vector size must be the same as the number of rows");return e}function w(t,e,n){return{row:M(t,e),column:_(t,n)}}function M(t,e){if("object"!==typeof e)throw new TypeError("unexpected type for row indices");let n=e.some(e=>e<0||e>=t.rows);if(n)throw new RangeError("row indices are out of range");return Array.isArray(e)||(e=Array.from(e)),e}function _(t,e){if("object"!==typeof e)throw new TypeError("unexpected type for column indices");let n=e.some(e=>e<0||e>=t.columns);if(n)throw new RangeError("column indices are out of range");return Array.isArray(e)||(e=Array.from(e)),e}function S(t,e,n,r,i){if(5!==arguments.length)throw new RangeError("expected 4 arguments");if(k("startRow",e),k("endRow",n),k("startColumn",r),k("endColumn",i),e>n||r>i||e<0||e>=t.rows||n<0||n>=t.rows||r<0||r>=t.columns||i<0||i>=t.columns)throw new RangeError("Submatrix indices are out of range")}function P(t,e=0){let n=[];for(let r=0;r<t;r++)n.push(e);return n}function k(t,e){if("number"!==typeof e)throw new TypeError(t+" must be a number")}function C(t){if(t.isEmpty())throw new Error("Empty matrix has no elements to index")}function O(t){let e=P(t.rows);for(let n=0;n<t.rows;++n)for(let r=0;r<t.columns;++r)e[n]+=t.get(n,r);return e}function E(t){let e=P(t.columns);for(let n=0;n<t.rows;++n)for(let r=0;r<t.columns;++r)e[r]+=t.get(n,r);return e}function A(t){let e=0;for(let n=0;n<t.rows;n++)for(let r=0;r<t.columns;r++)e+=t.get(n,r);return e}function j(t){let e=P(t.rows,1);for(let n=0;n<t.rows;++n)for(let r=0;r<t.columns;++r)e[n]*=t.get(n,r);return e}function I(t){let e=P(t.columns,1);for(let n=0;n<t.rows;++n)for(let r=0;r<t.columns;++r)e[r]*=t.get(n,r);return e}function T(t){let e=1;for(let n=0;n<t.rows;n++)for(let r=0;r<t.columns;r++)e*=t.get(n,r);return e}function B(t,e,n){const r=t.rows,i=t.columns,o=[];for(let a=0;a<r;a++){let r=0,s=0,u=0;for(let e=0;e<i;e++)u=t.get(a,e)-n[a],r+=u,s+=u*u;e?o.push((s-r*r/i)/(i-1)):o.push((s-r*r/i)/i)}return o}function N(t,e,n){const r=t.rows,i=t.columns,o=[];for(let a=0;a<i;a++){let i=0,s=0,u=0;for(let e=0;e<r;e++)u=t.get(e,a)-n[a],i+=u,s+=u*u;e?o.push((s-i*i/r)/(r-1)):o.push((s-i*i/r)/r)}return o}function D(t,e,n){const r=t.rows,i=t.columns,o=r*i;let a=0,s=0,u=0;for(let c=0;c<r;c++)for(let e=0;e<i;e++)u=t.get(c,e)-n,a+=u,s+=u*u;return e?(s-a*a/o)/(o-1):(s-a*a/o)/o}function L(t,e){for(let n=0;n<t.rows;n++)for(let r=0;r<t.columns;r++)t.set(n,r,t.get(n,r)-e[n])}function R(t,e){for(let n=0;n<t.rows;n++)for(let r=0;r<t.columns;r++)t.set(n,r,t.get(n,r)-e[r])}function z(t,e){for(let n=0;n<t.rows;n++)for(let r=0;r<t.columns;r++)t.set(n,r,t.get(n,r)-e)}function F(t){const e=[];for(let n=0;n<t.rows;n++){let r=0;for(let e=0;e<t.columns;e++)r+=Math.pow(t.get(n,e),2)/(t.columns-1);e.push(Math.sqrt(r))}return e}function G(t,e){for(let n=0;n<t.rows;n++)for(let r=0;r<t.columns;r++)t.set(n,r,t.get(n,r)/e[n])}function Y(t){const e=[];for(let n=0;n<t.columns;n++){let r=0;for(let e=0;e<t.rows;e++)r+=Math.pow(t.get(e,n),2)/(t.rows-1);e.push(Math.sqrt(r))}return e}function X(t,e){for(let n=0;n<t.rows;n++)for(let r=0;r<t.columns;r++)t.set(n,r,t.get(n,r)/e[r])}function V(t){const e=t.size-1;let n=0;for(let r=0;r<t.columns;r++)for(let i=0;i<t.rows;i++)n+=Math.pow(t.get(i,r),2)/e;return Math.sqrt(n)}function q(t,e){for(let n=0;n<t.rows;n++)for(let r=0;r<t.columns;r++)t.set(n,r,t.get(n,r)/e)}class U{static from1DArray(t,e,n){let r=t*e;if(r!==n.length)throw new RangeError("data length does not match given dimensions");let i=new H(t,e);for(let o=0;o<t;o++)for(let t=0;t<e;t++)i.set(o,t,n[o*e+t]);return i}static rowVector(t){let e=new H(1,t.length);for(let n=0;n<t.length;n++)e.set(0,n,t[n]);return e}static columnVector(t){let e=new H(t.length,1);for(let n=0;n<t.length;n++)e.set(n,0,t[n]);return e}static zeros(t,e){return new H(t,e)}static ones(t,e){return new H(t,e).fill(1)}static rand(t,e,n={}){if("object"!==typeof n)throw new TypeError("options must be an object");const{random:r=Math.random}=n;let i=new H(t,e);for(let o=0;o<t;o++)for(let t=0;t<e;t++)i.set(o,t,r());return i}static randInt(t,e,n={}){if("object"!==typeof n)throw new TypeError("options must be an object");const{min:r=0,max:i=1e3,random:o=Math.random}=n;if(!Number.isInteger(r))throw new TypeError("min must be an integer");if(!Number.isInteger(i))throw new TypeError("max must be an integer");if(r>=i)throw new RangeError("min must be smaller than max");let a=i-r,s=new H(t,e);for(let u=0;u<t;u++)for(let t=0;t<e;t++){let e=r+Math.round(o()*a);s.set(u,t,e)}return s}static eye(t,e,n){void 0===e&&(e=t),void 0===n&&(n=1);let r=Math.min(t,e),i=this.zeros(t,e);for(let o=0;o<r;o++)i.set(o,o,n);return i}static diag(t,e,n){let r=t.length;void 0===e&&(e=r),void 0===n&&(n=e);let i=Math.min(r,e,n),o=this.zeros(e,n);for(let a=0;a<i;a++)o.set(a,a,t[a]);return o}static min(t,e){t=this.checkMatrix(t),e=this.checkMatrix(e);let n=t.rows,r=t.columns,i=new H(n,r);for(let o=0;o<n;o++)for(let n=0;n<r;n++)i.set(o,n,Math.min(t.get(o,n),e.get(o,n)));return i}static max(t,e){t=this.checkMatrix(t),e=this.checkMatrix(e);let n=t.rows,r=t.columns,i=new this(n,r);for(let o=0;o<n;o++)for(let n=0;n<r;n++)i.set(o,n,Math.max(t.get(o,n),e.get(o,n)));return i}static checkMatrix(t){return U.isMatrix(t)?t:new H(t)}static isMatrix(t){return null!=t&&"Matrix"===t.klass}get size(){return this.rows*this.columns}apply(t){if("function"!==typeof t)throw new TypeError("callback must be a function");for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)t.call(this,e,n);return this}to1DArray(){let t=[];for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)t.push(this.get(e,n));return t}to2DArray(){let t=[];for(let e=0;e<this.rows;e++){t.push([]);for(let n=0;n<this.columns;n++)t[e].push(this.get(e,n))}return t}toJSON(){return this.to2DArray()}isRowVector(){return 1===this.rows}isColumnVector(){return 1===this.columns}isVector(){return 1===this.rows||1===this.columns}isSquare(){return this.rows===this.columns}isEmpty(){return 0===this.rows||0===this.columns}isSymmetric(){if(this.isSquare()){for(let t=0;t<this.rows;t++)for(let e=0;e<=t;e++)if(this.get(t,e)!==this.get(e,t))return!1;return!0}return!1}isEchelonForm(){let t=0,e=0,n=-1,r=!0,i=!1;while(t<this.rows&&r){e=0,i=!1;while(e<this.columns&&!1===i)0===this.get(t,e)?e++:1===this.get(t,e)&&e>n?(i=!0,n=e):(r=!1,i=!0);t++}return r}isReducedEchelonForm(){let t=0,e=0,n=-1,r=!0,i=!1;while(t<this.rows&&r){e=0,i=!1;while(e<this.columns&&!1===i)0===this.get(t,e)?e++:1===this.get(t,e)&&e>n?(i=!0,n=e):(r=!1,i=!0);for(let n=e+1;n<this.rows;n++)0!==this.get(t,n)&&(r=!1);t++}return r}echelonForm(){let t=this.clone(),e=0,n=0;while(e<t.rows&&n<t.columns){let r=e;for(let i=e;i<t.rows;i++)t.get(i,n)>t.get(r,n)&&(r=i);if(0===t.get(r,n))n++;else{t.swapRows(e,r);let i=t.get(e,n);for(let r=n;r<t.columns;r++)t.set(e,r,t.get(e,r)/i);for(let r=e+1;r<t.rows;r++){let i=t.get(r,n)/t.get(e,n);t.set(r,n,0);for(let o=n+1;o<t.columns;o++)t.set(r,o,t.get(r,o)-t.get(e,o)*i)}e++,n++}}return t}reducedEchelonForm(){let t=this.echelonForm(),e=t.columns,n=t.rows,r=n-1;while(r>=0)if(0===t.maxRow(r))r--;else{let i=0,o=!1;while(i<n&&!1===o)1===t.get(r,i)?o=!0:i++;for(let n=0;n<r;n++){let o=t.get(n,i);for(let a=i;a<e;a++){let e=t.get(n,a)-o*t.get(r,a);t.set(n,a,e)}}r--}return t}set(){throw new Error("set method is unimplemented")}get(){throw new Error("get method is unimplemented")}repeat(t={}){if("object"!==typeof t)throw new TypeError("options must be an object");const{rows:e=1,columns:n=1}=t;if(!Number.isInteger(e)||e<=0)throw new TypeError("rows must be a positive integer");if(!Number.isInteger(n)||n<=0)throw new TypeError("columns must be a positive integer");let r=new H(this.rows*e,this.columns*n);for(let i=0;i<e;i++)for(let t=0;t<n;t++)r.setSubMatrix(this,this.rows*i,this.columns*t);return r}fill(t){for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,t);return this}neg(){return this.mulS(-1)}getRow(t){y(this,t);let e=[];for(let n=0;n<this.columns;n++)e.push(this.get(t,n));return e}getRowVector(t){return H.rowVector(this.getRow(t))}setRow(t,e){y(this,t),e=b(this,e);for(let n=0;n<this.columns;n++)this.set(t,n,e[n]);return this}swapRows(t,e){y(this,t),y(this,e);for(let n=0;n<this.columns;n++){let r=this.get(t,n);this.set(t,n,this.get(e,n)),this.set(e,n,r)}return this}getColumn(t){m(this,t);let e=[];for(let n=0;n<this.rows;n++)e.push(this.get(n,t));return e}getColumnVector(t){return H.columnVector(this.getColumn(t))}setColumn(t,e){m(this,t),e=x(this,e);for(let n=0;n<this.rows;n++)this.set(n,t,e[n]);return this}swapColumns(t,e){m(this,t),m(this,e);for(let n=0;n<this.rows;n++){let r=this.get(n,t);this.set(n,t,this.get(n,e)),this.set(n,e,r)}return this}addRowVector(t){t=b(this,t);for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)+t[n]);return this}subRowVector(t){t=b(this,t);for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)-t[n]);return this}mulRowVector(t){t=b(this,t);for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)*t[n]);return this}divRowVector(t){t=b(this,t);for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)/t[n]);return this}addColumnVector(t){t=x(this,t);for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)+t[e]);return this}subColumnVector(t){t=x(this,t);for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)-t[e]);return this}mulColumnVector(t){t=x(this,t);for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)*t[e]);return this}divColumnVector(t){t=x(this,t);for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)/t[e]);return this}mulRow(t,e){y(this,t);for(let n=0;n<this.columns;n++)this.set(t,n,this.get(t,n)*e);return this}mulColumn(t,e){m(this,t);for(let n=0;n<this.rows;n++)this.set(n,t,this.get(n,t)*e);return this}max(){if(this.isEmpty())return NaN;let t=this.get(0,0);for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.get(e,n)>t&&(t=this.get(e,n));return t}maxIndex(){C(this);let t=this.get(0,0),e=[0,0];for(let n=0;n<this.rows;n++)for(let r=0;r<this.columns;r++)this.get(n,r)>t&&(t=this.get(n,r),e[0]=n,e[1]=r);return e}min(){if(this.isEmpty())return NaN;let t=this.get(0,0);for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)this.get(e,n)<t&&(t=this.get(e,n));return t}minIndex(){C(this);let t=this.get(0,0),e=[0,0];for(let n=0;n<this.rows;n++)for(let r=0;r<this.columns;r++)this.get(n,r)<t&&(t=this.get(n,r),e[0]=n,e[1]=r);return e}maxRow(t){if(y(this,t),this.isEmpty())return NaN;let e=this.get(t,0);for(let n=1;n<this.columns;n++)this.get(t,n)>e&&(e=this.get(t,n));return e}maxRowIndex(t){y(this,t),C(this);let e=this.get(t,0),n=[t,0];for(let r=1;r<this.columns;r++)this.get(t,r)>e&&(e=this.get(t,r),n[1]=r);return n}minRow(t){if(y(this,t),this.isEmpty())return NaN;let e=this.get(t,0);for(let n=1;n<this.columns;n++)this.get(t,n)<e&&(e=this.get(t,n));return e}minRowIndex(t){y(this,t),C(this);let e=this.get(t,0),n=[t,0];for(let r=1;r<this.columns;r++)this.get(t,r)<e&&(e=this.get(t,r),n[1]=r);return n}maxColumn(t){if(m(this,t),this.isEmpty())return NaN;let e=this.get(0,t);for(let n=1;n<this.rows;n++)this.get(n,t)>e&&(e=this.get(n,t));return e}maxColumnIndex(t){m(this,t),C(this);let e=this.get(0,t),n=[0,t];for(let r=1;r<this.rows;r++)this.get(r,t)>e&&(e=this.get(r,t),n[0]=r);return n}minColumn(t){if(m(this,t),this.isEmpty())return NaN;let e=this.get(0,t);for(let n=1;n<this.rows;n++)this.get(n,t)<e&&(e=this.get(n,t));return e}minColumnIndex(t){m(this,t),C(this);let e=this.get(0,t),n=[0,t];for(let r=1;r<this.rows;r++)this.get(r,t)<e&&(e=this.get(r,t),n[0]=r);return n}diag(){let t=Math.min(this.rows,this.columns),e=[];for(let n=0;n<t;n++)e.push(this.get(n,n));return e}norm(t="frobenius"){let e=0;if("max"===t)return this.max();if("frobenius"===t){for(let t=0;t<this.rows;t++)for(let n=0;n<this.columns;n++)e+=this.get(t,n)*this.get(t,n);return Math.sqrt(e)}throw new RangeError("unknown norm type: "+t)}cumulativeSum(){let t=0;for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)t+=this.get(e,n),this.set(e,n,t);return this}dot(t){U.isMatrix(t)&&(t=t.to1DArray());let e=this.to1DArray();if(e.length!==t.length)throw new RangeError("vectors do not have the same size");let n=0;for(let r=0;r<e.length;r++)n+=e[r]*t[r];return n}mmul(t){t=H.checkMatrix(t);let e=this.rows,n=this.columns,r=t.columns,i=new H(e,r),o=new Float64Array(n);for(let a=0;a<r;a++){for(let e=0;e<n;e++)o[e]=t.get(e,a);for(let t=0;t<e;t++){let e=0;for(let r=0;r<n;r++)e+=this.get(t,r)*o[r];i.set(t,a,e)}}return i}strassen2x2(t){t=H.checkMatrix(t);let e=new H(2,2);const n=this.get(0,0),r=t.get(0,0),i=this.get(0,1),o=t.get(0,1),a=this.get(1,0),s=t.get(1,0),u=this.get(1,1),c=t.get(1,1),f=(n+u)*(r+c),l=(a+u)*r,h=n*(o-c),d=u*(s-r),p=(n+i)*c,g=(a-n)*(r+o),v=(i-u)*(s+c),y=f+d-p+v,m=h+p,b=l+d,x=f-l+h+g;return e.set(0,0,y),e.set(0,1,m),e.set(1,0,b),e.set(1,1,x),e}strassen3x3(t){t=H.checkMatrix(t);let e=new H(3,3);const n=this.get(0,0),r=this.get(0,1),i=this.get(0,2),o=this.get(1,0),a=this.get(1,1),s=this.get(1,2),u=this.get(2,0),c=this.get(2,1),f=this.get(2,2),l=t.get(0,0),h=t.get(0,1),d=t.get(0,2),p=t.get(1,0),g=t.get(1,1),v=t.get(1,2),y=t.get(2,0),m=t.get(2,1),b=t.get(2,2),x=(n+r+i-o-a-c-f)*g,w=(n-o)*(-h+g),M=a*(-l+h+p-g-v-y+b),_=(-n+o+a)*(l-h+g),S=(o+a)*(-l+h),P=n*l,k=(-n+u+c)*(l-d+v),C=(-n+u)*(d-v),O=(u+c)*(-l+d),E=(n+r+i-a-s-u-c)*v,A=c*(-l+d+p-g-v-y+m),j=(-i+c+f)*(g+y-m),I=(i-f)*(g-m),T=i*y,B=(c+f)*(-y+m),N=(-i+a+s)*(v+y-b),D=(i-s)*(v-b),L=(a+s)*(-y+b),R=r*p,z=s*m,F=o*d,G=u*h,Y=f*b,X=P+T+R,V=x+_+S+P+j+T+B,q=P+k+O+E+T+N+L,U=w+M+_+P+T+N+D,W=w+_+S+P+z,Z=T+N+D+L+F,$=P+k+C+A+j+I+T,Q=j+I+T+B+G,K=P+k+C+O+Y;return e.set(0,0,X),e.set(0,1,V),e.set(0,2,q),e.set(1,0,U),e.set(1,1,W),e.set(1,2,Z),e.set(2,0,$),e.set(2,1,Q),e.set(2,2,K),e}mmulStrassen(t){t=H.checkMatrix(t);let e=this.clone(),n=e.rows,r=e.columns,i=t.rows,o=t.columns;function a(t,e,n){let r=t.rows,i=t.columns;if(r===e&&i===n)return t;{let r=U.zeros(e,n);return r=r.setSubMatrix(t,0,0),r}}r!==i&&console.warn(`Multiplying ${n} x ${r} and ${i} x ${o} matrix: dimensions do not match.`);let s=Math.max(n,i),u=Math.max(r,o);function c(t,e,n,r){if(n<=512||r<=512)return t.mmul(e);n%2===1&&r%2===1?(t=a(t,n+1,r+1),e=a(e,n+1,r+1)):n%2===1?(t=a(t,n+1,r),e=a(e,n+1,r)):r%2===1&&(t=a(t,n,r+1),e=a(e,n,r+1));let i=parseInt(t.rows/2,10),o=parseInt(t.columns/2,10),s=t.subMatrix(0,i-1,0,o-1),u=e.subMatrix(0,i-1,0,o-1),f=t.subMatrix(0,i-1,o,t.columns-1),l=e.subMatrix(0,i-1,o,e.columns-1),h=t.subMatrix(i,t.rows-1,0,o-1),d=e.subMatrix(i,e.rows-1,0,o-1),p=t.subMatrix(i,t.rows-1,o,t.columns-1),g=e.subMatrix(i,e.rows-1,o,e.columns-1),v=c(U.add(s,p),U.add(u,g),i,o),y=c(U.add(h,p),u,i,o),m=c(s,U.sub(l,g),i,o),b=c(p,U.sub(d,u),i,o),x=c(U.add(s,f),g,i,o),w=c(U.sub(h,s),U.add(u,l),i,o),M=c(U.sub(f,p),U.add(d,g),i,o),_=U.add(v,b);_.sub(x),_.add(M);let S=U.add(m,x),P=U.add(y,b),k=U.sub(v,y);k.add(m),k.add(w);let C=U.zeros(2*_.rows,2*_.columns);return C=C.setSubMatrix(_,0,0),C=C.setSubMatrix(S,_.rows,0),C=C.setSubMatrix(P,0,_.columns),C=C.setSubMatrix(k,_.rows,_.columns),C.subMatrix(0,n-1,0,r-1)}return e=a(e,s,u),t=a(t,s,u),c(e,t,s,u)}scaleRows(t={}){if("object"!==typeof t)throw new TypeError("options must be an object");const{min:e=0,max:n=1}=t;if(!Number.isFinite(e))throw new TypeError("min must be a number");if(!Number.isFinite(n))throw new TypeError("max must be a number");if(e>=n)throw new RangeError("min must be smaller than max");let r=new H(this.rows,this.columns);for(let i=0;i<this.rows;i++){const t=this.getRow(i);t.length>0&&c(t,{min:e,max:n,output:t}),r.setRow(i,t)}return r}scaleColumns(t={}){if("object"!==typeof t)throw new TypeError("options must be an object");const{min:e=0,max:n=1}=t;if(!Number.isFinite(e))throw new TypeError("min must be a number");if(!Number.isFinite(n))throw new TypeError("max must be a number");if(e>=n)throw new RangeError("min must be smaller than max");let r=new H(this.rows,this.columns);for(let i=0;i<this.columns;i++){const t=this.getColumn(i);t.length&&c(t,{min:e,max:n,output:t}),r.setColumn(i,t)}return r}flipRows(){const t=Math.ceil(this.columns/2);for(let e=0;e<this.rows;e++)for(let n=0;n<t;n++){let t=this.get(e,n),r=this.get(e,this.columns-1-n);this.set(e,n,r),this.set(e,this.columns-1-n,t)}return this}flipColumns(){const t=Math.ceil(this.rows/2);for(let e=0;e<this.columns;e++)for(let n=0;n<t;n++){let t=this.get(n,e),r=this.get(this.rows-1-n,e);this.set(n,e,r),this.set(this.rows-1-n,e,t)}return this}kroneckerProduct(t){t=H.checkMatrix(t);let e=this.rows,n=this.columns,r=t.rows,i=t.columns,o=new H(e*r,n*i);for(let a=0;a<e;a++)for(let e=0;e<n;e++)for(let n=0;n<r;n++)for(let s=0;s<i;s++)o.set(r*a+n,i*e+s,this.get(a,e)*t.get(n,s));return o}kroneckerSum(t){if(t=H.checkMatrix(t),!this.isSquare()||!t.isSquare())throw new Error("Kronecker Sum needs two Square Matrices");let e=this.rows,n=t.rows,r=this.kroneckerProduct(H.eye(n,n)),i=H.eye(e,e).kroneckerProduct(t);return r.add(i)}transpose(){let t=new H(this.columns,this.rows);for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)t.set(n,e,this.get(e,n));return t}sortRows(t=W){for(let e=0;e<this.rows;e++)this.setRow(e,this.getRow(e).sort(t));return this}sortColumns(t=W){for(let e=0;e<this.columns;e++)this.setColumn(e,this.getColumn(e).sort(t));return this}subMatrix(t,e,n,r){S(this,t,e,n,r);let i=new H(e-t+1,r-n+1);for(let o=t;o<=e;o++)for(let e=n;e<=r;e++)i.set(o-t,e-n,this.get(o,e));return i}subMatrixRow(t,e,n){if(void 0===e&&(e=0),void 0===n&&(n=this.columns-1),e>n||e<0||e>=this.columns||n<0||n>=this.columns)throw new RangeError("Argument out of range");let r=new H(t.length,n-e+1);for(let i=0;i<t.length;i++)for(let o=e;o<=n;o++){if(t[i]<0||t[i]>=this.rows)throw new RangeError("Row index out of range: "+t[i]);r.set(i,o-e,this.get(t[i],o))}return r}subMatrixColumn(t,e,n){if(void 0===e&&(e=0),void 0===n&&(n=this.rows-1),e>n||e<0||e>=this.rows||n<0||n>=this.rows)throw new RangeError("Argument out of range");let r=new H(n-e+1,t.length);for(let i=0;i<t.length;i++)for(let o=e;o<=n;o++){if(t[i]<0||t[i]>=this.columns)throw new RangeError("Column index out of range: "+t[i]);r.set(o-e,i,this.get(o,t[i]))}return r}setSubMatrix(t,e,n){if(t=H.checkMatrix(t),t.isEmpty())return this;let r=e+t.rows-1,i=n+t.columns-1;S(this,e,r,n,i);for(let o=0;o<t.rows;o++)for(let r=0;r<t.columns;r++)this.set(e+o,n+r,t.get(o,r));return this}selection(t,e){let n=w(this,t,e),r=new H(t.length,e.length);for(let i=0;i<n.row.length;i++){let t=n.row[i];for(let e=0;e<n.column.length;e++){let o=n.column[e];r.set(i,e,this.get(t,o))}}return r}trace(){let t=Math.min(this.rows,this.columns),e=0;for(let n=0;n<t;n++)e+=this.get(n,n);return e}clone(){let t=new H(this.rows,this.columns);for(let e=0;e<this.rows;e++)for(let n=0;n<this.columns;n++)t.set(e,n,this.get(e,n));return t}sum(t){switch(t){case"row":return O(this);case"column":return E(this);case void 0:return A(this);default:throw new Error("invalid option: "+t)}}product(t){switch(t){case"row":return j(this);case"column":return I(this);case void 0:return T(this);default:throw new Error("invalid option: "+t)}}mean(t){const e=this.sum(t);switch(t){case"row":for(let t=0;t<this.rows;t++)e[t]/=this.columns;return e;case"column":for(let t=0;t<this.columns;t++)e[t]/=this.rows;return e;case void 0:return e/this.size;default:throw new Error("invalid option: "+t)}}variance(t,e={}){if("object"===typeof t&&(e=t,t=void 0),"object"!==typeof e)throw new TypeError("options must be an object");const{unbiased:n=!0,mean:r=this.mean(t)}=e;if("boolean"!==typeof n)throw new TypeError("unbiased must be a boolean");switch(t){case"row":if(!Array.isArray(r))throw new TypeError("mean must be an array");return B(this,n,r);case"column":if(!Array.isArray(r))throw new TypeError("mean must be an array");return N(this,n,r);case void 0:if("number"!==typeof r)throw new TypeError("mean must be a number");return D(this,n,r);default:throw new Error("invalid option: "+t)}}standardDeviation(t,e){"object"===typeof t&&(e=t,t=void 0);const n=this.variance(t,e);if(void 0===t)return Math.sqrt(n);for(let r=0;r<n.length;r++)n[r]=Math.sqrt(n[r]);return n}center(t,e={}){if("object"===typeof t&&(e=t,t=void 0),"object"!==typeof e)throw new TypeError("options must be an object");const{center:n=this.mean(t)}=e;switch(t){case"row":if(!Array.isArray(n))throw new TypeError("center must be an array");return L(this,n),this;case"column":if(!Array.isArray(n))throw new TypeError("center must be an array");return R(this,n),this;case void 0:if("number"!==typeof n)throw new TypeError("center must be a number");return z(this,n),this;default:throw new Error("invalid option: "+t)}}scale(t,e={}){if("object"===typeof t&&(e=t,t=void 0),"object"!==typeof e)throw new TypeError("options must be an object");let n=e.scale;switch(t){case"row":if(void 0===n)n=F(this);else if(!Array.isArray(n))throw new TypeError("scale must be an array");return G(this,n),this;case"column":if(void 0===n)n=Y(this);else if(!Array.isArray(n))throw new TypeError("scale must be an array");return X(this,n),this;case void 0:if(void 0===n)n=V(this);else if("number"!==typeof n)throw new TypeError("scale must be a number");return q(this,n),this;default:throw new Error("invalid option: "+t)}}toString(t){return d(this,t)}}function W(t,e){return t-e}U.prototype.klass="Matrix","undefined"!==typeof Symbol&&(U.prototype[Symbol.for("nodejs.util.inspect.custom")]=h),U.random=U.rand,U.randomInt=U.randInt,U.diagonal=U.diag,U.prototype.diagonal=U.prototype.diag,U.identity=U.eye,U.prototype.negate=U.prototype.neg,U.prototype.tensorProduct=U.prototype.kroneckerProduct;class H extends U{constructor(t,e){if(super(),H.isMatrix(t))return t.clone();if(Number.isInteger(t)&&t>=0){if(this.data=[],!(Number.isInteger(e)&&e>=0))throw new TypeError("nColumns must be a positive integer");for(let n=0;n<t;n++)this.data.push(new Float64Array(e))}else{if(!Array.isArray(t))throw new TypeError("First argument must be a positive number or an array");{const n=t;if(t=n.length,e=t?n[0].length:0,"number"!==typeof e)throw new TypeError("Data must be a 2D array with at least one element");this.data=[];for(let r=0;r<t;r++){if(n[r].length!==e)throw new RangeError("Inconsistent array dimensions");this.data.push(Float64Array.from(n[r]))}}}this.rows=t,this.columns=e}set(t,e,n){return this.data[t][e]=n,this}get(t,e){return this.data[t][e]}removeRow(t){return y(this,t),this.data.splice(t,1),this.rows-=1,this}addRow(t,e){return void 0===e&&(e=t,t=this.rows),y(this,t,!0),e=Float64Array.from(b(this,e)),this.data.splice(t,0,e),this.rows+=1,this}removeColumn(t){m(this,t);for(let e=0;e<this.rows;e++){const n=new Float64Array(this.columns-1);for(let r=0;r<t;r++)n[r]=this.data[e][r];for(let r=t+1;r<this.columns;r++)n[r-1]=this.data[e][r];this.data[e]=n}return this.columns-=1,this}addColumn(t,e){"undefined"===typeof e&&(e=t,t=this.columns),m(this,t,!0),e=x(this,e);for(let n=0;n<this.rows;n++){const r=new Float64Array(this.columns+1);let i=0;for(;i<t;i++)r[i]=this.data[n][i];for(r[i++]=e[n];i<this.columns+1;i++)r[i]=this.data[n][i-1];this.data[n]=r}return this.columns+=1,this}}v(U,H);class Z extends U{constructor(t,e,n){super(),this.matrix=t,this.rows=e,this.columns=n}}class $ extends Z{constructor(t,e){m(t,e),super(t,t.rows,1),this.column=e}set(t,e,n){return this.matrix.set(t,this.column,n),this}get(t){return this.matrix.get(t,this.column)}}class Q extends Z{constructor(t,e){e=_(t,e),super(t,t.rows,e.length),this.columnIndices=e}set(t,e,n){return this.matrix.set(t,this.columnIndices[e],n),this}get(t,e){return this.matrix.get(t,this.columnIndices[e])}}class K extends Z{constructor(t){super(t,t.rows,t.columns)}set(t,e,n){return this.matrix.set(t,this.columns-e-1,n),this}get(t,e){return this.matrix.get(t,this.columns-e-1)}}class J extends Z{constructor(t){super(t,t.rows,t.columns)}set(t,e,n){return this.matrix.set(this.rows-t-1,e,n),this}get(t,e){return this.matrix.get(this.rows-t-1,e)}}class tt extends Z{constructor(t,e){y(t,e),super(t,1,t.columns),this.row=e}set(t,e,n){return this.matrix.set(this.row,e,n),this}get(t,e){return this.matrix.get(this.row,e)}}class et extends Z{constructor(t,e){e=M(t,e),super(t,e.length,t.columns),this.rowIndices=e}set(t,e,n){return this.matrix.set(this.rowIndices[t],e,n),this}get(t,e){return this.matrix.get(this.rowIndices[t],e)}}class nt extends Z{constructor(t,e,n){let r=w(t,e,n);super(t,r.row.length,r.column.length),this.rowIndices=r.row,this.columnIndices=r.column}set(t,e,n){return this.matrix.set(this.rowIndices[t],this.columnIndices[e],n),this}get(t,e){return this.matrix.get(this.rowIndices[t],this.columnIndices[e])}}class rt extends Z{constructor(t,e,n,r,i){S(t,e,n,r,i),super(t,n-e+1,i-r+1),this.startRow=e,this.startColumn=r}set(t,e,n){return this.matrix.set(this.startRow+t,this.startColumn+e,n),this}get(t,e){return this.matrix.get(this.startRow+t,this.startColumn+e)}}class it extends Z{constructor(t){super(t,t.columns,t.rows)}set(t,e,n){return this.matrix.set(e,t,n),this}get(t,e){return this.matrix.get(e,t)}}class ot extends U{constructor(t,e={}){const{rows:n=1}=e;if(t.length%n!==0)throw new Error("the data length is not divisible by the number of rows");super(),this.rows=n,this.columns=t.length/n,this.data=t}set(t,e,n){let r=this._calculateIndex(t,e);return this.data[r]=n,this}get(t,e){let n=this._calculateIndex(t,e);return this.data[n]}_calculateIndex(t,e){return t*this.columns+e}}class at extends U{constructor(t){super(),this.data=t,this.rows=t.length,this.columns=t[0].length}set(t,e,n){return this.data[t][e]=n,this}get(t,e){return this.data[t][e]}}function st(t,e){if(Array.isArray(t))return t[0]&&Array.isArray(t[0])?new at(t):new ot(t,e);throw new Error("the argument is not an array")}class ut{constructor(t){t=at.checkMatrix(t);let e,n,r,i,o,a,s,u,c,f=t.clone(),l=f.rows,h=f.columns,d=new Float64Array(l),p=1;for(e=0;e<l;e++)d[e]=e;for(u=new Float64Array(l),n=0;n<h;n++){for(e=0;e<l;e++)u[e]=f.get(e,n);for(e=0;e<l;e++){for(c=Math.min(e,n),o=0,r=0;r<c;r++)o+=f.get(e,r)*u[r];u[e]-=o,f.set(e,n,u[e])}for(i=n,e=n+1;e<l;e++)Math.abs(u[e])>Math.abs(u[i])&&(i=e);if(i!==n){for(r=0;r<h;r++)a=f.get(i,r),f.set(i,r,f.get(n,r)),f.set(n,r,a);s=d[i],d[i]=d[n],d[n]=s,p=-p}if(n<l&&0!==f.get(n,n))for(e=n+1;e<l;e++)f.set(e,n,f.get(e,n)/f.get(n,n))}this.LU=f,this.pivotVector=d,this.pivotSign=p}isSingular(){let t=this.LU,e=t.columns;for(let n=0;n<e;n++)if(0===t.get(n,n))return!0;return!1}solve(t){t=H.checkMatrix(t);let e=this.LU,n=e.rows;if(n!==t.rows)throw new Error("Invalid matrix dimensions");if(this.isSingular())throw new Error("LU matrix is singular");let r,i,o,a=t.columns,s=t.subMatrixRow(this.pivotVector,0,a-1),u=e.columns;for(o=0;o<u;o++)for(r=o+1;r<u;r++)for(i=0;i<a;i++)s.set(r,i,s.get(r,i)-s.get(o,i)*e.get(r,o));for(o=u-1;o>=0;o--){for(i=0;i<a;i++)s.set(o,i,s.get(o,i)/e.get(o,o));for(r=0;r<o;r++)for(i=0;i<a;i++)s.set(r,i,s.get(r,i)-s.get(o,i)*e.get(r,o))}return s}get determinant(){let t=this.LU;if(!t.isSquare())throw new Error("Matrix must be square");let e=this.pivotSign,n=t.columns;for(let r=0;r<n;r++)e*=t.get(r,r);return e}get lowerTriangularMatrix(){let t=this.LU,e=t.rows,n=t.columns,r=new H(e,n);for(let i=0;i<e;i++)for(let e=0;e<n;e++)i>e?r.set(i,e,t.get(i,e)):i===e?r.set(i,e,1):r.set(i,e,0);return r}get upperTriangularMatrix(){let t=this.LU,e=t.rows,n=t.columns,r=new H(e,n);for(let i=0;i<e;i++)for(let e=0;e<n;e++)i<=e?r.set(i,e,t.get(i,e)):r.set(i,e,0);return r}get pivotPermutationVector(){return Array.from(this.pivotVector)}}function ct(t,e){let n=0;return Math.abs(t)>Math.abs(e)?(n=e/t,Math.abs(t)*Math.sqrt(1+n*n)):0!==e?(n=t/e,Math.abs(e)*Math.sqrt(1+n*n)):0}class ft{constructor(t){t=at.checkMatrix(t);let e,n,r,i,o=t.clone(),a=t.rows,s=t.columns,u=new Float64Array(s);for(r=0;r<s;r++){let t=0;for(e=r;e<a;e++)t=ct(t,o.get(e,r));if(0!==t){for(o.get(r,r)<0&&(t=-t),e=r;e<a;e++)o.set(e,r,o.get(e,r)/t);for(o.set(r,r,o.get(r,r)+1),n=r+1;n<s;n++){for(i=0,e=r;e<a;e++)i+=o.get(e,r)*o.get(e,n);for(i=-i/o.get(r,r),e=r;e<a;e++)o.set(e,n,o.get(e,n)+i*o.get(e,r))}}u[r]=-t}this.QR=o,this.Rdiag=u}solve(t){t=H.checkMatrix(t);let e=this.QR,n=e.rows;if(t.rows!==n)throw new Error("Matrix row dimensions must agree");if(!this.isFullRank())throw new Error("Matrix is rank deficient");let r,i,o,a,s=t.columns,u=t.clone(),c=e.columns;for(o=0;o<c;o++)for(i=0;i<s;i++){for(a=0,r=o;r<n;r++)a+=e.get(r,o)*u.get(r,i);for(a=-a/e.get(o,o),r=o;r<n;r++)u.set(r,i,u.get(r,i)+a*e.get(r,o))}for(o=c-1;o>=0;o--){for(i=0;i<s;i++)u.set(o,i,u.get(o,i)/this.Rdiag[o]);for(r=0;r<o;r++)for(i=0;i<s;i++)u.set(r,i,u.get(r,i)-u.get(o,i)*e.get(r,o))}return u.subMatrix(0,c-1,0,s-1)}isFullRank(){let t=this.QR.columns;for(let e=0;e<t;e++)if(0===this.Rdiag[e])return!1;return!0}get upperTriangularMatrix(){let t,e,n=this.QR,r=n.columns,i=new H(r,r);for(t=0;t<r;t++)for(e=0;e<r;e++)t<e?i.set(t,e,n.get(t,e)):t===e?i.set(t,e,this.Rdiag[t]):i.set(t,e,0);return i}get orthogonalMatrix(){let t,e,n,r,i=this.QR,o=i.rows,a=i.columns,s=new H(o,a);for(n=a-1;n>=0;n--){for(t=0;t<o;t++)s.set(t,n,0);for(s.set(n,n,1),e=n;e<a;e++)if(0!==i.get(n,n)){for(r=0,t=n;t<o;t++)r+=i.get(t,n)*s.get(t,e);for(r=-r/i.get(n,n),t=n;t<o;t++)s.set(t,e,s.get(t,e)+r*i.get(t,n))}}return s}}class lt{constructor(t,e={}){if(t=at.checkMatrix(t),t.isEmpty())throw new Error("Matrix must be non-empty");let n=t.rows,r=t.columns;const{computeLeftSingularVectors:i=!0,computeRightSingularVectors:o=!0,autoTranspose:a=!1}=e;let s,u=Boolean(i),c=Boolean(o),f=!1;if(n<r)if(a){s=t.transpose(),n=s.rows,r=s.columns,f=!0;let e=u;u=c,c=e}else s=t.clone(),console.warn("Computing SVD on a matrix with more columns than rows. Consider enabling autoTranspose");else s=t.clone();let l=Math.min(n,r),h=Math.min(n+1,r),d=new Float64Array(h),p=new H(n,l),g=new H(r,r),v=new Float64Array(r),y=new Float64Array(n),m=new Float64Array(h);for(let k=0;k<h;k++)m[k]=k;let b=Math.min(n-1,r),x=Math.max(0,Math.min(r-2,n)),w=Math.max(b,x);for(let k=0;k<w;k++){if(k<b){d[k]=0;for(let t=k;t<n;t++)d[k]=ct(d[k],s.get(t,k));if(0!==d[k]){s.get(k,k)<0&&(d[k]=-d[k]);for(let t=k;t<n;t++)s.set(t,k,s.get(t,k)/d[k]);s.set(k,k,s.get(k,k)+1)}d[k]=-d[k]}for(let t=k+1;t<r;t++){if(k<b&&0!==d[k]){let e=0;for(let r=k;r<n;r++)e+=s.get(r,k)*s.get(r,t);e=-e/s.get(k,k);for(let r=k;r<n;r++)s.set(r,t,s.get(r,t)+e*s.get(r,k))}v[t]=s.get(k,t)}if(u&&k<b)for(let t=k;t<n;t++)p.set(t,k,s.get(t,k));if(k<x){v[k]=0;for(let t=k+1;t<r;t++)v[k]=ct(v[k],v[t]);if(0!==v[k]){v[k+1]<0&&(v[k]=0-v[k]);for(let t=k+1;t<r;t++)v[t]/=v[k];v[k+1]+=1}if(v[k]=-v[k],k+1<n&&0!==v[k]){for(let t=k+1;t<n;t++)y[t]=0;for(let t=k+1;t<n;t++)for(let e=k+1;e<r;e++)y[t]+=v[e]*s.get(t,e);for(let t=k+1;t<r;t++){let e=-v[t]/v[k+1];for(let r=k+1;r<n;r++)s.set(r,t,s.get(r,t)+e*y[r])}}if(c)for(let t=k+1;t<r;t++)g.set(t,k,v[t])}}let M=Math.min(r,n+1);if(b<r&&(d[b]=s.get(b,b)),n<M&&(d[M-1]=0),x+1<M&&(v[x]=s.get(x,M-1)),v[M-1]=0,u){for(let t=b;t<l;t++){for(let e=0;e<n;e++)p.set(e,t,0);p.set(t,t,1)}for(let t=b-1;t>=0;t--)if(0!==d[t]){for(let e=t+1;e<l;e++){let r=0;for(let i=t;i<n;i++)r+=p.get(i,t)*p.get(i,e);r=-r/p.get(t,t);for(let i=t;i<n;i++)p.set(i,e,p.get(i,e)+r*p.get(i,t))}for(let e=t;e<n;e++)p.set(e,t,-p.get(e,t));p.set(t,t,1+p.get(t,t));for(let e=0;e<t-1;e++)p.set(e,t,0)}else{for(let e=0;e<n;e++)p.set(e,t,0);p.set(t,t,1)}}if(c)for(let k=r-1;k>=0;k--){if(k<x&&0!==v[k])for(let t=k+1;t<r;t++){let e=0;for(let n=k+1;n<r;n++)e+=g.get(n,k)*g.get(n,t);e=-e/g.get(k+1,k);for(let n=k+1;n<r;n++)g.set(n,t,g.get(n,t)+e*g.get(n,k))}for(let t=0;t<r;t++)g.set(t,k,0);g.set(k,k,1)}let _=M-1,S=0,P=Number.EPSILON;while(M>0){let t,e;for(t=M-2;t>=-1;t--){if(-1===t)break;const e=Number.MIN_VALUE+P*Math.abs(d[t]+Math.abs(d[t+1]));if(Math.abs(v[t])<=e||Number.isNaN(v[t])){v[t]=0;break}}if(t===M-2)e=4;else{let n;for(n=M-1;n>=t;n--){if(n===t)break;let e=(n!==M?Math.abs(v[n]):0)+(n!==t+1?Math.abs(v[n-1]):0);if(Math.abs(d[n])<=P*e){d[n]=0;break}}n===t?e=3:n===M-1?e=1:(e=2,t=n)}switch(t++,e){case 1:{let e=v[M-2];v[M-2]=0;for(let n=M-2;n>=t;n--){let i=ct(d[n],e),o=d[n]/i,a=e/i;if(d[n]=i,n!==t&&(e=-a*v[n-1],v[n-1]=o*v[n-1]),c)for(let t=0;t<r;t++)i=o*g.get(t,n)+a*g.get(t,M-1),g.set(t,M-1,-a*g.get(t,n)+o*g.get(t,M-1)),g.set(t,n,i)}break}case 2:{let e=v[t-1];v[t-1]=0;for(let r=t;r<M;r++){let i=ct(d[r],e),o=d[r]/i,a=e/i;if(d[r]=i,e=-a*v[r],v[r]=o*v[r],u)for(let e=0;e<n;e++)i=o*p.get(e,r)+a*p.get(e,t-1),p.set(e,t-1,-a*p.get(e,r)+o*p.get(e,t-1)),p.set(e,r,i)}break}case 3:{const e=Math.max(Math.abs(d[M-1]),Math.abs(d[M-2]),Math.abs(v[M-2]),Math.abs(d[t]),Math.abs(v[t])),i=d[M-1]/e,o=d[M-2]/e,a=v[M-2]/e,s=d[t]/e,f=v[t]/e,l=((o+i)*(o-i)+a*a)/2,h=i*a*(i*a);let y=0;0===l&&0===h||(y=l<0?0-Math.sqrt(l*l+h):Math.sqrt(l*l+h),y=h/(l+y));let m=(s+i)*(s-i)+y,b=s*f;for(let x=t;x<M-1;x++){let e=ct(m,b);0===e&&(e=Number.MIN_VALUE);let i=m/e,o=b/e;if(x!==t&&(v[x-1]=e),m=i*d[x]+o*v[x],v[x]=i*v[x]-o*d[x],b=o*d[x+1],d[x+1]=i*d[x+1],c)for(let t=0;t<r;t++)e=i*g.get(t,x)+o*g.get(t,x+1),g.set(t,x+1,-o*g.get(t,x)+i*g.get(t,x+1)),g.set(t,x,e);if(e=ct(m,b),0===e&&(e=Number.MIN_VALUE),i=m/e,o=b/e,d[x]=e,m=i*v[x]+o*d[x+1],d[x+1]=-o*v[x]+i*d[x+1],b=o*v[x+1],v[x+1]=i*v[x+1],u&&x<n-1)for(let t=0;t<n;t++)e=i*p.get(t,x)+o*p.get(t,x+1),p.set(t,x+1,-o*p.get(t,x)+i*p.get(t,x+1)),p.set(t,x,e)}v[M-2]=m,S+=1;break}case 4:if(d[t]<=0&&(d[t]=d[t]<0?-d[t]:0,c))for(let e=0;e<=_;e++)g.set(e,t,-g.get(e,t));while(t<_){if(d[t]>=d[t+1])break;let e=d[t];if(d[t]=d[t+1],d[t+1]=e,c&&t<r-1)for(let n=0;n<r;n++)e=g.get(n,t+1),g.set(n,t+1,g.get(n,t)),g.set(n,t,e);if(u&&t<n-1)for(let r=0;r<n;r++)e=p.get(r,t+1),p.set(r,t+1,p.get(r,t)),p.set(r,t,e);t++}S=0,M--;break}}if(f){let t=g;g=p,p=t}this.m=n,this.n=r,this.s=d,this.U=p,this.V=g}solve(t){let e=t,n=this.threshold,r=this.s.length,i=H.zeros(r,r);for(let l=0;l<r;l++)Math.abs(this.s[l])<=n?i.set(l,l,0):i.set(l,l,1/this.s[l]);let o=this.U,a=this.rightSingularVectors,s=a.mmul(i),u=a.rows,c=o.rows,f=H.zeros(u,c);for(let l=0;l<u;l++)for(let t=0;t<c;t++){let e=0;for(let n=0;n<r;n++)e+=s.get(l,n)*o.get(t,n);f.set(l,t,e)}return f.mmul(e)}solveForDiagonal(t){return this.solve(H.diag(t))}inverse(){let t=this.V,e=this.threshold,n=t.rows,r=t.columns,i=new H(n,this.s.length);for(let c=0;c<n;c++)for(let n=0;n<r;n++)Math.abs(this.s[n])>e&&i.set(c,n,t.get(c,n)/this.s[n]);let o=this.U,a=o.rows,s=o.columns,u=new H(n,a);for(let c=0;c<n;c++)for(let t=0;t<a;t++){let e=0;for(let n=0;n<s;n++)e+=i.get(c,n)*o.get(t,n);u.set(c,t,e)}return u}get condition(){return this.s[0]/this.s[Math.min(this.m,this.n)-1]}get norm2(){return this.s[0]}get rank(){let t=Math.max(this.m,this.n)*this.s[0]*Number.EPSILON,e=0,n=this.s;for(let r=0,i=n.length;r<i;r++)n[r]>t&&e++;return e}get diagonal(){return Array.from(this.s)}get threshold(){return Number.EPSILON/2*Math.max(this.m,this.n)*this.s[0]}get leftSingularVectors(){return this.U}get rightSingularVectors(){return this.V}get diagonalMatrix(){return H.diag(this.s)}}function ht(t,e=!1){return t=at.checkMatrix(t),e?new lt(t).inverse():dt(t,H.eye(t.rows))}function dt(t,e,n=!1){return t=at.checkMatrix(t),e=at.checkMatrix(e),n?new lt(t).solve(e):t.isSquare()?new ut(t).solve(e):new ft(t).solve(e)}function pt(t){if(t=H.checkMatrix(t),t.isSquare()){if(0===t.columns)return 1;let e,n,r,i;if(2===t.columns)return e=t.get(0,0),n=t.get(0,1),r=t.get(1,0),i=t.get(1,1),e*i-n*r;if(3===t.columns){let i,o,a;return i=new nt(t,[1,2],[1,2]),o=new nt(t,[1,2],[0,2]),a=new nt(t,[1,2],[0,1]),e=t.get(0,0),n=t.get(0,1),r=t.get(0,2),e*pt(i)-n*pt(o)+r*pt(a)}return new ut(t).determinant}throw Error("determinant can only be calculated for a square matrix")}function gt(t,e){let n=[];for(let r=0;r<t;r++)r!==e&&n.push(r);return n}function vt(t,e,n,r=1e-9,i=1e-9){if(t>i)return new Array(e.rows+1).fill(0);{let t=e.addRow(n,[0]);for(let e=0;e<t.rows;e++)Math.abs(t.get(e,0))<r&&t.set(e,0,0);return t.to1DArray()}}function yt(t,e={}){const{thresholdValue:n=1e-9,thresholdError:r=1e-9}=e;t=H.checkMatrix(t);let i=t.rows,o=new H(i,i);for(let a=0;a<i;a++){let e=H.columnVector(t.getRow(a)),s=t.subMatrixRow(gt(i,a)).transpose(),u=new lt(s),c=u.solve(e),f=H.sub(e,s.mmul(c)).abs().max();o.setRow(a,vt(f,c,a,n,r))}return o}function mt(t,e=Number.EPSILON){if(t=H.checkMatrix(t),t.isEmpty())return t.transpose();let n=new lt(t,{autoTranspose:!0}),r=n.leftSingularVectors,i=n.rightSingularVectors,o=n.diagonal;for(let a=0;a<o.length;a++)Math.abs(o[a])>e?o[a]=1/o[a]:o[a]=0;return i.mmul(H.diag(o).mmul(r.transpose()))}function bt(t,e=t,n={}){t=new H(t);let r=!1;if("object"!==typeof e||H.isMatrix(e)||Array.isArray(e)?e=new H(e):(n=e,e=t,r=!0),t.rows!==e.rows)throw new TypeError("Both matrices must have the same number of rows");const{center:i=!0}=n;i&&(t=t.center("column"),r||(e=e.center("column")));const o=t.transpose().mmul(e);for(let a=0;a<o.rows;a++)for(let e=0;e<o.columns;e++)o.set(a,e,o.get(a,e)*(1/(t.rows-1)));return o}function xt(t,e=t,n={}){t=new H(t);let r=!1;if("object"!==typeof e||H.isMatrix(e)||Array.isArray(e)?e=new H(e):(n=e,e=t,r=!0),t.rows!==e.rows)throw new TypeError("Both matrices must have the same number of rows");const{center:i=!0,scale:o=!0}=n;i&&(t.center("column"),r||e.center("column")),o&&(t.scale("column"),r||e.scale("column"));const a=t.standardDeviation("column",{unbiased:!0}),s=r?a:e.standardDeviation("column",{unbiased:!0}),u=t.transpose().mmul(e);for(let c=0;c<u.rows;c++)for(let e=0;e<u.columns;e++)u.set(c,e,u.get(c,e)*(1/(a[c]*s[e]))*(1/(t.rows-1)));return u}class wt{constructor(t,e={}){const{assumeSymmetric:n=!1}=e;if(t=at.checkMatrix(t),!t.isSquare())throw new Error("Matrix is not a square matrix");if(t.isEmpty())throw new Error("Matrix must be non-empty");let r,i,o=t.columns,a=new H(o,o),s=new Float64Array(o),u=new Float64Array(o),c=t,f=!1;if(f=!!n||t.isSymmetric(),f){for(r=0;r<o;r++)for(i=0;i<o;i++)a.set(r,i,c.get(r,i));Mt(o,u,s,a),_t(o,u,s,a)}else{let t=new H(o,o),e=new Float64Array(o);for(i=0;i<o;i++)for(r=0;r<o;r++)t.set(r,i,c.get(r,i));St(o,t,e,a),Pt(o,u,s,a,t)}this.n=o,this.e=u,this.d=s,this.V=a}get realEigenvalues(){return Array.from(this.d)}get imaginaryEigenvalues(){return Array.from(this.e)}get eigenvectorMatrix(){return this.V}get diagonalMatrix(){let t,e,n=this.n,r=this.e,i=this.d,o=new H(n,n);for(t=0;t<n;t++){for(e=0;e<n;e++)o.set(t,e,0);o.set(t,t,i[t]),r[t]>0?o.set(t,t+1,r[t]):r[t]<0&&o.set(t,t-1,r[t])}return o}}function Mt(t,e,n,r){let i,o,a,s,u,c,f,l;for(u=0;u<t;u++)n[u]=r.get(t-1,u);for(s=t-1;s>0;s--){for(l=0,a=0,c=0;c<s;c++)l+=Math.abs(n[c]);if(0===l)for(e[s]=n[s-1],u=0;u<s;u++)n[u]=r.get(s-1,u),r.set(s,u,0),r.set(u,s,0);else{for(c=0;c<s;c++)n[c]/=l,a+=n[c]*n[c];for(i=n[s-1],o=Math.sqrt(a),i>0&&(o=-o),e[s]=l*o,a-=i*o,n[s-1]=i-o,u=0;u<s;u++)e[u]=0;for(u=0;u<s;u++){for(i=n[u],r.set(u,s,i),o=e[u]+r.get(u,u)*i,c=u+1;c<=s-1;c++)o+=r.get(c,u)*n[c],e[c]+=r.get(c,u)*i;e[u]=o}for(i=0,u=0;u<s;u++)e[u]/=a,i+=e[u]*n[u];for(f=i/(a+a),u=0;u<s;u++)e[u]-=f*n[u];for(u=0;u<s;u++){for(i=n[u],o=e[u],c=u;c<=s-1;c++)r.set(c,u,r.get(c,u)-(i*e[c]+o*n[c]));n[u]=r.get(s-1,u),r.set(s,u,0)}}n[s]=a}for(s=0;s<t-1;s++){if(r.set(t-1,s,r.get(s,s)),r.set(s,s,1),a=n[s+1],0!==a){for(c=0;c<=s;c++)n[c]=r.get(c,s+1)/a;for(u=0;u<=s;u++){for(o=0,c=0;c<=s;c++)o+=r.get(c,s+1)*r.get(c,u);for(c=0;c<=s;c++)r.set(c,u,r.get(c,u)-o*n[c])}}for(c=0;c<=s;c++)r.set(c,s+1,0)}for(u=0;u<t;u++)n[u]=r.get(t-1,u),r.set(t-1,u,0);r.set(t-1,t-1,1),e[0]=0}function _t(t,e,n,r){let i,o,a,s,u,c,f,l,h,d,p,g,v,y,m,b,x;for(a=1;a<t;a++)e[a-1]=e[a];e[t-1]=0;let w=0,M=0,_=Number.EPSILON;for(c=0;c<t;c++){M=Math.max(M,Math.abs(n[c])+Math.abs(e[c])),f=c;while(f<t){if(Math.abs(e[f])<=_*M)break;f++}if(f>c){x=0;do{for(x+=1,i=n[c],l=(n[c+1]-i)/(2*e[c]),h=ct(l,1),l<0&&(h=-h),n[c]=e[c]/(l+h),n[c+1]=e[c]*(l+h),d=n[c+1],o=i-n[c],a=c+2;a<t;a++)n[a]-=o;for(w+=o,l=n[f],p=1,g=p,v=p,y=e[c+1],m=0,b=0,a=f-1;a>=c;a--)for(v=g,g=p,b=m,i=p*e[a],o=p*l,h=ct(l,e[a]),e[a+1]=m*h,m=e[a]/h,p=l/h,l=p*n[a]-m*i,n[a+1]=o+m*(p*i+m*n[a]),u=0;u<t;u++)o=r.get(u,a+1),r.set(u,a+1,m*r.get(u,a)+p*o),r.set(u,a,p*r.get(u,a)-m*o);l=-m*b*v*y*e[c]/d,e[c]=m*l,n[c]=p*l}while(Math.abs(e[c])>_*M)}n[c]=n[c]+w,e[c]=0}for(a=0;a<t-1;a++){for(u=a,l=n[a],s=a+1;s<t;s++)n[s]<l&&(u=s,l=n[s]);if(u!==a)for(n[u]=n[a],n[a]=l,s=0;s<t;s++)l=r.get(s,a),r.set(s,a,r.get(s,u)),r.set(s,u,l)}}function St(t,e,n,r){let i,o,a,s,u,c,f,l=0,h=t-1;for(c=l+1;c<=h-1;c++){for(f=0,s=c;s<=h;s++)f+=Math.abs(e.get(s,c-1));if(0!==f){for(a=0,s=h;s>=c;s--)n[s]=e.get(s,c-1)/f,a+=n[s]*n[s];for(o=Math.sqrt(a),n[c]>0&&(o=-o),a-=n[c]*o,n[c]=n[c]-o,u=c;u<t;u++){for(i=0,s=h;s>=c;s--)i+=n[s]*e.get(s,u);for(i/=a,s=c;s<=h;s++)e.set(s,u,e.get(s,u)-i*n[s])}for(s=0;s<=h;s++){for(i=0,u=h;u>=c;u--)i+=n[u]*e.get(s,u);for(i/=a,u=c;u<=h;u++)e.set(s,u,e.get(s,u)-i*n[u])}n[c]=f*n[c],e.set(c,c-1,f*o)}}for(s=0;s<t;s++)for(u=0;u<t;u++)r.set(s,u,s===u?1:0);for(c=h-1;c>=l+1;c--)if(0!==e.get(c,c-1)){for(s=c+1;s<=h;s++)n[s]=e.get(s,c-1);for(u=c;u<=h;u++){for(o=0,s=c;s<=h;s++)o+=n[s]*r.get(s,u);for(o=o/n[c]/e.get(c,c-1),s=c;s<=h;s++)r.set(s,u,r.get(s,u)+o*n[s])}}}function Pt(t,e,n,r,i){let o,a,s,u,c,f,l,h,d,p,g,v,y,m,b,x=t-1,w=0,M=t-1,_=Number.EPSILON,S=0,P=0,k=0,C=0,O=0,E=0,A=0,j=0;for(o=0;o<t;o++)for((o<w||o>M)&&(n[o]=i.get(o,o),e[o]=0),a=Math.max(o-1,0);a<t;a++)P+=Math.abs(i.get(o,a));while(x>=w){u=x;while(u>w){if(E=Math.abs(i.get(u-1,u-1))+Math.abs(i.get(u,u)),0===E&&(E=P),Math.abs(i.get(u,u-1))<_*E)break;u--}if(u===x)i.set(x,x,i.get(x,x)+S),n[x]=i.get(x,x),e[x]=0,x--,j=0;else if(u===x-1){if(l=i.get(x,x-1)*i.get(x-1,x),k=(i.get(x-1,x-1)-i.get(x,x))/2,C=k*k+l,A=Math.sqrt(Math.abs(C)),i.set(x,x,i.get(x,x)+S),i.set(x-1,x-1,i.get(x-1,x-1)+S),h=i.get(x,x),C>=0){for(A=k>=0?k+A:k-A,n[x-1]=h+A,n[x]=n[x-1],0!==A&&(n[x]=h-l/A),e[x-1]=0,e[x]=0,h=i.get(x,x-1),E=Math.abs(h)+Math.abs(A),k=h/E,C=A/E,O=Math.sqrt(k*k+C*C),k/=O,C/=O,a=x-1;a<t;a++)A=i.get(x-1,a),i.set(x-1,a,C*A+k*i.get(x,a)),i.set(x,a,C*i.get(x,a)-k*A);for(o=0;o<=x;o++)A=i.get(o,x-1),i.set(o,x-1,C*A+k*i.get(o,x)),i.set(o,x,C*i.get(o,x)-k*A);for(o=w;o<=M;o++)A=r.get(o,x-1),r.set(o,x-1,C*A+k*r.get(o,x)),r.set(o,x,C*r.get(o,x)-k*A)}else n[x-1]=h+k,n[x]=h+k,e[x-1]=A,e[x]=-A;x-=2,j=0}else{if(h=i.get(x,x),d=0,l=0,u<x&&(d=i.get(x-1,x-1),l=i.get(x,x-1)*i.get(x-1,x)),10===j){for(S+=h,o=w;o<=x;o++)i.set(o,o,i.get(o,o)-h);E=Math.abs(i.get(x,x-1))+Math.abs(i.get(x-1,x-2)),h=d=.75*E,l=-.4375*E*E}if(30===j&&(E=(d-h)/2,E=E*E+l,E>0)){for(E=Math.sqrt(E),d<h&&(E=-E),E=h-l/((d-h)/2+E),o=w;o<=x;o++)i.set(o,o,i.get(o,o)-E);S+=E,h=d=l=.964}j+=1,c=x-2;while(c>=u){if(A=i.get(c,c),O=h-A,E=d-A,k=(O*E-l)/i.get(c+1,c)+i.get(c,c+1),C=i.get(c+1,c+1)-A-O-E,O=i.get(c+2,c+1),E=Math.abs(k)+Math.abs(C)+Math.abs(O),k/=E,C/=E,O/=E,c===u)break;if(Math.abs(i.get(c,c-1))*(Math.abs(C)+Math.abs(O))<_*(Math.abs(k)*(Math.abs(i.get(c-1,c-1))+Math.abs(A)+Math.abs(i.get(c+1,c+1)))))break;c--}for(o=c+2;o<=x;o++)i.set(o,o-2,0),o>c+2&&i.set(o,o-3,0);for(s=c;s<=x-1;s++){if(m=s!==x-1,s!==c&&(k=i.get(s,s-1),C=i.get(s+1,s-1),O=m?i.get(s+2,s-1):0,h=Math.abs(k)+Math.abs(C)+Math.abs(O),0!==h&&(k/=h,C/=h,O/=h)),0===h)break;if(E=Math.sqrt(k*k+C*C+O*O),k<0&&(E=-E),0!==E){for(s!==c?i.set(s,s-1,-E*h):u!==c&&i.set(s,s-1,-i.get(s,s-1)),k+=E,h=k/E,d=C/E,A=O/E,C/=k,O/=k,a=s;a<t;a++)k=i.get(s,a)+C*i.get(s+1,a),m&&(k+=O*i.get(s+2,a),i.set(s+2,a,i.get(s+2,a)-k*A)),i.set(s,a,i.get(s,a)-k*h),i.set(s+1,a,i.get(s+1,a)-k*d);for(o=0;o<=Math.min(x,s+3);o++)k=h*i.get(o,s)+d*i.get(o,s+1),m&&(k+=A*i.get(o,s+2),i.set(o,s+2,i.get(o,s+2)-k*O)),i.set(o,s,i.get(o,s)-k),i.set(o,s+1,i.get(o,s+1)-k*C);for(o=w;o<=M;o++)k=h*r.get(o,s)+d*r.get(o,s+1),m&&(k+=A*r.get(o,s+2),r.set(o,s+2,r.get(o,s+2)-k*O)),r.set(o,s,r.get(o,s)-k),r.set(o,s+1,r.get(o,s+1)-k*C)}}}}if(0!==P){for(x=t-1;x>=0;x--)if(k=n[x],C=e[x],0===C)for(u=x,i.set(x,x,1),o=x-1;o>=0;o--){for(l=i.get(o,o)-k,O=0,a=u;a<=x;a++)O+=i.get(o,a)*i.get(a,x);if(e[o]<0)A=l,E=O;else if(u=o,0===e[o]?i.set(o,x,0!==l?-O/l:-O/(_*P)):(h=i.get(o,o+1),d=i.get(o+1,o),C=(n[o]-k)*(n[o]-k)+e[o]*e[o],f=(h*E-A*O)/C,i.set(o,x,f),i.set(o+1,x,Math.abs(h)>Math.abs(A)?(-O-l*f)/h:(-E-d*f)/A)),f=Math.abs(i.get(o,x)),_*f*f>1)for(a=o;a<=x;a++)i.set(a,x,i.get(a,x)/f)}else if(C<0)for(u=x-1,Math.abs(i.get(x,x-1))>Math.abs(i.get(x-1,x))?(i.set(x-1,x-1,C/i.get(x,x-1)),i.set(x-1,x,-(i.get(x,x)-k)/i.get(x,x-1))):(b=kt(0,-i.get(x-1,x),i.get(x-1,x-1)-k,C),i.set(x-1,x-1,b[0]),i.set(x-1,x,b[1])),i.set(x,x-1,0),i.set(x,x,1),o=x-2;o>=0;o--){for(p=0,g=0,a=u;a<=x;a++)p+=i.get(o,a)*i.get(a,x-1),g+=i.get(o,a)*i.get(a,x);if(l=i.get(o,o)-k,e[o]<0)A=l,O=p,E=g;else if(u=o,0===e[o]?(b=kt(-p,-g,l,C),i.set(o,x-1,b[0]),i.set(o,x,b[1])):(h=i.get(o,o+1),d=i.get(o+1,o),v=(n[o]-k)*(n[o]-k)+e[o]*e[o]-C*C,y=2*(n[o]-k)*C,0===v&&0===y&&(v=_*P*(Math.abs(l)+Math.abs(C)+Math.abs(h)+Math.abs(d)+Math.abs(A))),b=kt(h*O-A*p+C*g,h*E-A*g-C*p,v,y),i.set(o,x-1,b[0]),i.set(o,x,b[1]),Math.abs(h)>Math.abs(A)+Math.abs(C)?(i.set(o+1,x-1,(-p-l*i.get(o,x-1)+C*i.get(o,x))/h),i.set(o+1,x,(-g-l*i.get(o,x)-C*i.get(o,x-1))/h)):(b=kt(-O-d*i.get(o,x-1),-E-d*i.get(o,x),A,C),i.set(o+1,x-1,b[0]),i.set(o+1,x,b[1]))),f=Math.max(Math.abs(i.get(o,x-1)),Math.abs(i.get(o,x))),_*f*f>1)for(a=o;a<=x;a++)i.set(a,x-1,i.get(a,x-1)/f),i.set(a,x,i.get(a,x)/f)}for(o=0;o<t;o++)if(o<w||o>M)for(a=o;a<t;a++)r.set(o,a,i.get(o,a));for(a=t-1;a>=w;a--)for(o=w;o<=M;o++){for(A=0,s=w;s<=Math.min(a,M);s++)A+=r.get(o,s)*i.get(s,a);r.set(o,a,A)}}}function kt(t,e,n,r){let i,o;return Math.abs(n)>Math.abs(r)?(i=r/n,o=n+i*r,[(t+i*e)/o,(e-i*t)/o]):(i=n/r,o=r+i*n,[(i*t+e)/o,(i*e-t)/o])}class Ct{constructor(t){if(t=at.checkMatrix(t),!t.isSymmetric())throw new Error("Matrix is not symmetric");let e,n,r,i=t,o=i.rows,a=new H(o,o),s=!0;for(n=0;n<o;n++){let t=0;for(r=0;r<n;r++){let o=0;for(e=0;e<r;e++)o+=a.get(r,e)*a.get(n,e);o=(i.get(n,r)-o)/a.get(r,r),a.set(n,r,o),t+=o*o}for(t=i.get(n,n)-t,s&=t>0,a.set(n,n,Math.sqrt(Math.max(t,0))),r=n+1;r<o;r++)a.set(n,r,0)}this.L=a,this.positiveDefinite=Boolean(s)}isPositiveDefinite(){return this.positiveDefinite}solve(t){t=at.checkMatrix(t);let e=this.L,n=e.rows;if(t.rows!==n)throw new Error("Matrix dimensions do not match");if(!1===this.isPositiveDefinite())throw new Error("Matrix is not positive definite");let r,i,o,a=t.columns,s=t.clone();for(o=0;o<n;o++)for(i=0;i<a;i++){for(r=0;r<o;r++)s.set(o,i,s.get(o,i)-s.get(r,i)*e.get(o,r));s.set(o,i,s.get(o,i)/e.get(o,o))}for(o=n-1;o>=0;o--)for(i=0;i<a;i++){for(r=o+1;r<n;r++)s.set(o,i,s.get(o,i)-s.get(r,i)*e.get(r,o));s.set(o,i,s.get(o,i)/e.get(o,o))}return s}get lowerTriangularMatrix(){return this.L}}class Ot{constructor(t,e={}){t=at.checkMatrix(t);let{Y:n}=e;const{scaleScores:r=!1,maxIterations:i=1e3,terminationCriteria:o=1e-10}=e;let a;if(n){if(n=Array.isArray(n)&&"number"===typeof n[0]?H.columnVector(n):at.checkMatrix(n),n.rows!==t.rows)throw new Error("Y should have the same number of rows as X");a=n.getColumnVector(0)}else a=t.getColumnVector(0);let s,u,c,f,l=1;for(let h=0;h<i&&l>o;h++)c=t.transpose().mmul(a).div(a.transpose().mmul(a).get(0,0)),c=c.div(c.norm()),s=t.mmul(c).div(c.transpose().mmul(c).get(0,0)),h>0&&(l=s.clone().sub(f).pow(2).sum()),f=s.clone(),n?(u=n.transpose().mmul(s).div(s.transpose().mmul(s).get(0,0)),u=u.div(u.norm()),a=n.mmul(u).div(u.transpose().mmul(u).get(0,0))):a=s;if(n){let e=t.transpose().mmul(s).div(s.transpose().mmul(s).get(0,0));e=e.div(e.norm());let r=t.clone().sub(s.clone().mmul(e.transpose())),i=a.transpose().mmul(s).div(s.transpose().mmul(s).get(0,0)),o=n.clone().sub(s.clone().mulS(i.get(0,0)).mmul(u.transpose()));this.t=s,this.p=e.transpose(),this.w=c.transpose(),this.q=u,this.u=a,this.s=s.transpose().mmul(s),this.xResidual=r,this.yResidual=o,this.betas=i}else this.w=c.transpose(),this.s=s.transpose().mmul(s).sqrt(),this.t=r?s.clone().div(this.s.get(0,0)):s,this.xResidual=t.sub(s.mmul(c.transpose()))}}},b4b0:function(t,e,n){var r=n("8d74"),i=n("1a8c"),o=n("ffd6"),a=NaN,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,f=parseInt;function l(t){if("number"==typeof t)return t;if(o(t))return a;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=u.test(t);return n||c.test(t)?f(t.slice(2),n?2:8):s.test(t)?a:+t}t.exports=l},b4c0:function(t,e,n){var r=n("cb5a");function i(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}t.exports=i},b50e:function(t,e,n){"use strict";var r=n("6f9c"),i=n("17d5").Graph;function o(t,e,n,i){var o;do{o=r.uniqueId(i)}while(t.hasNode(o));return n.dummy=e,t.setNode(o,n),o}function a(t){var e=(new i).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})})),e}function s(t){var e=new i({multigraph:t.isMultigraph()}).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){t.children(n).length||e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){e.setEdge(n,t.edge(n))})),e}function u(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.outEdges(e),(function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)}function c(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.inEdges(e),(function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)}function f(t,e){var n,r,i=t.x,o=t.y,a=e.x-i,s=e.y-o,u=t.width/2,c=t.height/2;if(!a&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*u>Math.abs(a)*c?(s<0&&(c=-c),n=c*a/s,r=c):(a<0&&(u=-u),n=u,r=u*s/a),{x:i+n,y:o+r}}function l(t){var e=r.map(r.range(g(t)+1),(function(){return[]}));return r.forEach(t.nodes(),(function(n){var i=t.node(n),o=i.rank;r.isUndefined(o)||(e[o][i.order]=n)})),e}function h(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank})));r.forEach(t.nodes(),(function(n){var i=t.node(n);r.has(i,"rank")&&(i.rank-=e)}))}function d(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank}))),n=[];r.forEach(t.nodes(),(function(r){var i=t.node(r).rank-e;n[i]||(n[i]=[]),n[i].push(r)}));var i=0,o=t.graph().nodeRankFactor;r.forEach(n,(function(e,n){r.isUndefined(e)&&n%o!==0?--i:i&&r.forEach(e,(function(e){t.node(e).rank+=i}))}))}function p(t,e,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),o(t,"border",i,e)}function g(t){return r.max(r.map(t.nodes(),(function(e){var n=t.node(e).rank;if(!r.isUndefined(n))return n})))}function v(t,e){var n={lhs:[],rhs:[]};return r.forEach(t,(function(t){e(t)?n.lhs.push(t):n.rhs.push(t)})),n}function y(t,e){var n=r.now();try{return e()}finally{console.log(t+" time: "+(r.now()-n)+"ms")}}function m(t,e){return e()}t.exports={addDummyNode:o,simplify:a,asNonCompoundGraph:s,successorWeights:u,predecessorWeights:c,intersectRect:f,buildLayerMatrix:l,normalizeRanks:h,removeEmptyRanks:d,addBorderNode:p,maxRank:g,partition:v,time:y,notime:m}},b5a7:function(t,e,n){var r=n("0b07"),i=n("2b3e"),o=r(i,"DataView");t.exports=o},b681:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.LinkedListNode=void 0;var r=i(n("0f5a"));function i(t){return t&&t.__esModule?t:{default:t}}var o=function(){function t(t,e){void 0===e&&(e=null),this.value=t,this.next=e}return t.prototype.toString=function(t){return t?t(this.value):""+this.value},t}();e.LinkedListNode=o;var a=function(){function t(t){void 0===t&&(t=null),this.head=null,this.tail=null,this.compare=new r.default(t)}return t.prototype.prepend=function(t){var e=new o(t,this.head);return this.head=e,this.tail||(this.tail=e),this},t.prototype.append=function(t){var e=new o(t);return this.head?(this.tail.next=e,this.tail=e,this):(this.head=e,this.tail=e,this)},t.prototype.delete=function(t){if(!this.head)return null;var e=null;while(this.head&&this.compare.equal(this.head.value,t))e=this.head,this.head=this.head.next;var n=this.head;if(null!==n)while(n.next)this.compare.equal(n.next.value,t)?(e=n.next,n.next=n.next.next):n=n.next;return this.compare.equal(this.tail.value,t)&&(this.tail=n),e},t.prototype.find=function(t){var e=t.value,n=void 0===e?void 0:e,r=t.callback,i=void 0===r?void 0:r;if(!this.head)return null;var o=this.head;while(o){if(i&&i(o.value))return o;if(void 0!==n&&this.compare.equal(o.value,n))return o;o=o.next}return null},t.prototype.deleteTail=function(){var t=this.tail;if(this.head===this.tail)return this.head=null,this.tail=null,t;var e=this.head;while(e.next)e.next.next?e=e.next:e.next=null;return this.tail=e,t},t.prototype.deleteHead=function(){if(!this.head)return null;var t=this.head;return this.head.next?this.head=this.head.next:(this.head=null,this.tail=null),t},t.prototype.fromArray=function(t){var e=this;return t.forEach((function(t){return e.append(t)})),this},t.prototype.toArray=function(){var t=[],e=this.head;while(e)t.push(e),e=e.next;return t},t.prototype.reverse=function(){var t=this.head,e=null,n=null;while(t)n=t.next,t.next=e,e=t,t=n;this.tail=this.head,this.head=e},t.prototype.toString=function(t){return void 0===t&&(t=void 0),this.toArray().map((function(e){return e.toString(t)})).toString()},t}(),s=a;e.default=s},b760:function(t,e,n){var r=n("872a"),i=n("9638");function o(t,e,n){(void 0!==n&&!i(t[e],n)||void 0===n&&!(e in t))&&r(t,e,n)}t.exports=o},b7ca:function(t,e,n){"use strict";n("4166")},b8ce:function(t,e,n){var r=n("3818"),i=4;function o(t){return r(t,i)}t.exports=o},ba23:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=function(t){var e={};return t.getNodes().forEach((function(t){e[t.getID()]={degree:0,inDegree:0,outDegree:0}})),t.getEdges().forEach((function(t){e[t.getSource().getID()].degree++,e[t.getSource().getID()].outDegree++,e[t.getTarget().getID()].degree++,e[t.getTarget().getID()].inDegree++})),e},i=r;e.default=i},badf:function(t,e,n){var r=n("642a"),i=n("1838"),o=n("cd9d"),a=n("6747"),s=n("f9ce");function u(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?a(t)?i(t[0],t[1]):r(t):s(t)}t.exports=u},bb07:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=800,i=function(){function t(t){this.disp=[],this.positions=t.positions,this.adjMatrix=t.adjMatrix,this.focusID=t.focusID,this.radii=t.radii,this.iterations=t.iterations||10,this.height=t.height||10,this.width=t.width||10,this.speed=t.speed||100,this.gravity=t.gravity||10,this.nodeSizeFunc=t.nodeSizeFunc,this.k=t.k||5,this.strictRadial=t.strictRadial,this.nodes=t.nodes}return t.prototype.layout=function(){var t=this,e=t.positions,n=[],r=t.iterations,i=t.width/10;t.maxDisplace=i,t.disp=n;for(var o=0;o<r;o++)e.forEach((function(t,e){n[e]={x:0,y:0}})),t.getRepulsion(),t.updatePositions();return e},t.prototype.getRepulsion=function(){var t=this,e=t.positions,n=t.nodes,r=t.disp,i=t.k,o=t.radii||[];e.forEach((function(a,s){r[s]={x:0,y:0},e.forEach((function(e,u){if(s!==u&&o[s]===o[u]){var c=a[0]-e[0],f=a[1]-e[1],l=Math.sqrt(c*c+f*f);if(0===l){l=1;var h=s>u?1:-1;c=.01*h,f=.01*h}if(l<t.nodeSizeFunc(n[s])/2+t.nodeSizeFunc(n[u])/2){var d=i*i/l;r[s].x+=c/l*d,r[s].y+=f/l*d}}}))}))},t.prototype.updatePositions=function(){var t=this,e=t.positions,n=t.disp,i=t.speed,o=t.strictRadial,a=t.focusID,s=t.maxDisplace||t.width/10;o&&n.forEach((function(t,n){var r=e[n][0]-e[a][0],i=e[n][1]-e[a][1],o=Math.sqrt(r*r+i*i),s=i/o,u=-r/o,c=Math.sqrt(t.x*t.x+t.y*t.y),f=Math.acos((s*t.x+u*t.y)/c);f>Math.PI/2&&(f-=Math.PI/2,s*=-1,u*=-1);var l=Math.cos(f)*c;t.x=s*l,t.y=u*l}));var u=t.radii;e.forEach((function(t,c){if(c!==a){var f=Math.sqrt(n[c].x*n[c].x+n[c].y*n[c].y);if(f>0&&c!==a){var l=Math.min(s*(i/r),f);if(t[0]+=n[c].x/f*l,t[1]+=n[c].y/f*l,o){var h=t[0]-e[a][0],d=t[1]-e[a][1],p=Math.sqrt(h*h+d*d);h=h/p*u[c],d=d/p*u[c],t[0]=e[a][0]+h,t[1]=e[a][1]+d}}}}))},t}(),o=i;e.default=o},bb3a:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),i=n("6855"),o=n("7a70"),a=n("814b"),s=n("060b"),u=n("487c"),c=n("aeb1"),f=n("a3df"),l=n("6891"),h=function(t){function e(e){return t.call(this,r.__assign(r.__assign({},e),{autoDraw:!0,renderer:"svg"}))||this}return r.__extends(e,t),e.prototype.getShapeBase=function(){return c},e.prototype.getGroupBase=function(){return f.default},e.prototype.getShape=function(t,e,n){var r=n.target||n.srcElement;if(!o.SHAPE_TO_TAGS[r.tagName]){var i=r.parentNode;while(i&&!o.SHAPE_TO_TAGS[i.tagName])i=i.parentNode;r=i}return this.find((function(t){return t.get("el")===r}))},e.prototype.createDom=function(){var t=u.createSVGElement("svg"),e=new l.default(t);return t.setAttribute("width",""+this.get("width")),t.setAttribute("height",""+this.get("height")),this.set("context",e),t},e.prototype.onCanvasChange=function(t){var e=this.get("context"),n=this.get("el");if("sort"===t){var r=this.get("children");r&&r.length&&u.sortDom(this,(function(t,e){return r.indexOf(t)-r.indexOf(e)?1:0}))}else if("clear"===t){if(n){n.innerHTML="";var i=e.el;i.innerHTML="",n.appendChild(i)}}else"matrix"===t?s.setTransform(this):"clip"===t?s.setClip(this,e):"changeSize"===t&&(n.setAttribute("width",""+this.get("width")),n.setAttribute("height",""+this.get("height")))},e.prototype.draw=function(){var t=this.get("context"),e=this.getChildren();s.setClip(this,t),e.length&&a.drawChildren(t,e)},e}(i.AbstractCanvas);e.default=h},bbc0:function(t,e,n){var r=n("6044"),i="__lodash_hash_undefined__",o=Object.prototype,a=o.hasOwnProperty;function s(t){var e=this.__data__;if(r){var n=e[t];return n===i?void 0:n}return a.call(e,t)?e[t]:void 0}t.exports=s},bc08:function(t,e,n){"use strict";n("1529"),n("f1a7"),n("ace6"),n("1f59"),n("bd87"),n("e2f9"),n("a052"),n("2aaa")},bcdf:function(t,e){function n(){}t.exports=n},bd06:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("f4c8");function i(t,e,n){var i=r.getOffScreenContext();return t.createPath(i),i.isPointInPath(e,n)}e.default=i},bd82:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n("c360")),i=o(n("d99a"));function o(t){return t&&t.__esModule?t:{default:t}}var a={onMouseEnter:function(t){var e=t.item;this.shouldBegin(t)&&(this.currentTarget=e,this.showTooltip(t),this.graph.emit("tooltipchange",{item:t.item,action:"show"}))},onMouseMove:function(t){this.shouldUpdate(t)?this.currentTarget&&t.item===this.currentTarget&&this.updatePosition(t):this.hideTooltip()},onMouseLeave:function(t){this.shouldEnd(t)&&(this.hideTooltip(),this.graph.emit("tooltipchange",{item:this.currentTarget,action:"hide"}),this.currentTarget=null)},showTooltip:function(t){var e=this.container;if(t.item){e||(e=this.createTooltip(this.graph.get("canvas")),this.container=e);var n=this.formatText(t.item.get("model"),t);e.innerHTML=n,this.updatePosition(t),(0,r.default)(this.container,{visibility:"visible"})}},hideTooltip:function(){(0,r.default)(this.container,{visibility:"hidden"})},updatePosition:function(t){var e=this,n=e.width,i=e.height,o=e.container,a=t.canvasX,s=t.canvasY,u=o.getBoundingClientRect();a>n/2?a-=u.width:a+=this.offset,s>i/2?s-=u.height:s+=this.offset;var c=a+"px",f=s+"px";(0,r.default)(this.container,{left:c,top:f,visibility:"visible"})},createTooltip:function(t){var e=t.get("el");e.style.position="relative";var n=(0,i.default)('<div class="g6-tooltip g6-'+this.item+'-tooltip"></div>');return e.parentNode.appendChild(n),(0,r.default)(n,{position:"absolute",visibility:"visible"}),this.width=t.get("width"),this.height=t.get("height"),this.container=n,n}};e.default=a},bd87:function(t,e,n){"use strict";var r=n("9ab4"),i=s(n("7da3")),o=n("8937"),a=s(n("067f"));function s(t){return t&&t.__esModule?t:{default:t}}i.default.registerNode("triangle",{options:{size:40,direction:"up",style:{stroke:a.default.defaultShapeStrokeColor,fill:a.default.defaultShapeFillColor,lineWidth:a.default.defaultNode.style.lineWidth},labelCfg:{style:{fill:"#595959"},offset:15},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:5,lineWidth:1,fill:"#fff",stroke:"#72CC4A"},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/basement_prod/012bcf4f-423b-4922-8c24-32a89f8c41ce.svg",width:16,height:16,offset:6}},shapeType:"triangle",labelPosition:"bottom",drawShape:function(t,e){var n=this.options,i=n.icon,a=n.direction,s=this.getShapeStyle(t),u=(0,o.mix)({},i,t.icon),c=t.direction||a,f=e.addShape("path",{attrs:s,className:"triangle-keyShape",name:"triangle-keyShape",draggable:!0}),l=u.width,h=u.height,d=u.show,p=u.offset;if(d){var g=-l/2,v=-h/2;"up"!==c&&"down"!==c||(v+=p),"left"!==c&&"right"!==c||(g+=p);e.addShape("image",{attrs:(0,r.__assign)({x:g,y:v},u),className:"triangle-icon",name:"triangle-icon",draggable:!0})}return this.drawLinkPoints(t,e),f},drawLinkPoints:function(t,e){var n=this.options,i=n.linkPoints,a=n.direction,s=(0,o.mix)({},i,t.linkPoints),u=t.direction||a,c=s.top,f=s.left,l=s.right,h=s.bottom,d=s.size,p=(0,r.__rest)(s,["top","left","right","bottom","size"]),g=this.getSize(t),v=g[0];if(f){var y=null,m=v*Math.sin(1/3*Math.PI),b=v*Math.sin(1/3*Math.PI);"up"===u?y=[-b,m]:"down"===u?y=[-b,-m]:"left"===u&&(y=[-b,b-m]),y&&e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},p),{x:y[0],y:y[1],r:d}),className:"link-point-left",name:"link-point-left"})}if(l){var x=null;m=v*Math.sin(1/3*Math.PI),b=v*Math.sin(1/3*Math.PI);"up"===u?x=[b,m]:"down"===u?x=[b,-m]:"right"===u&&(x=[b,b-m]),x&&e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},p),{x:x[0],y:x[1],r:d}),className:"link-point-right",name:"link-point-right"})}if(c){var w=null;m=v*Math.sin(1/3*Math.PI),b=v*Math.sin(1/3*Math.PI);"up"===u?w=[b-m,-m]:"left"===u?w=[b,-m]:"right"===u&&(w=[-b,-m]),w&&e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},p),{x:w[0],y:w[1],r:d}),className:"link-point-top",name:"link-point-top"})}if(h){var M=null;m=v*Math.sin(1/3*Math.PI),b=v*Math.sin(1/3*Math.PI);"down"===u?M=[-b+m,m]:"left"===u?M=[b,m]:"right"===u&&(M=[-b,m]),M&&e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},p),{x:M[0],y:M[1],r:d}),className:"link-point-bottom",name:"link-point-bottom"})}},getPath:function(t){var e=this.options.direction,n=t.direction||e,r=this.getSize(t),i=r[0],o=i*Math.sin(1/3*Math.PI),a=i*Math.sin(1/3*Math.PI),s=[["M",-a,o],["L",0,-o],["L",a,o],["Z"]];return"down"===n?s=[["M",-a,-o],["L",a,-o],["L",0,o],["Z"]]:"left"===n?s=[["M",-a,a-o],["L",a,-a],["L",a,a],["Z"]]:"right"===n&&(s=[["M",a,a-o],["L",-a,a],["L",-a,-a],["Z"]]),s},getShapeStyle:function(t){var e=this.options.style,n={stroke:t.color},i=(0,o.mix)({},e,n,t.style),a=this.getPath(t),s=(0,r.__assign)({path:a},i);return s},update:function(t,e){var n=e.getContainer(),r=this.options.style,i=this.getPath(t),a={stroke:t.color,path:i},s=e.get("keyShape"),u=(0,o.mix)({},r,s.attr(),a);u=(0,o.mix)(u,t.style),this.updateShape(t,e,u,!0),this.updateLinkPoints(t,n)},updateLinkPoints:function(t,e){var n=this.options,i=n.linkPoints,a=n.direction,s=t.direction||a,u=e.find((function(t){return"link-point-left"===t.get("className")})),c=e.find((function(t){return"link-point-right"===t.get("className")})),f=e.find((function(t){return"link-point-top"===t.get("className")})),l=e.find((function(t){return"link-point-bottom"===t.get("className")})),h=i,d=u||c||f||l;d&&(h=d.attr());var p=(0,o.mix)({},h,t.linkPoints),g=p.fill,v=p.stroke,y=p.lineWidth,m=p.size;m||(m=p.r);var b=t.linkPoints?t.linkPoints:{left:void 0,right:void 0,top:void 0,bottom:void 0},x=b.left,w=b.right,M=b.top,_=b.bottom,S=this.getSize(t),P=S[0],k={r:m,fill:g,stroke:v,lineWidth:y},C=null,O=P*Math.sin(1/3*Math.PI),E=P*Math.sin(1/3*Math.PI);"up"===s?C=[-E,O]:"down"===s?C=[-E,-O]:"left"===s&&(C=[-E,E-O]),C&&(u?x||void 0===x?u.attr((0,r.__assign)((0,r.__assign)({},k),{x:C[0],y:C[1]})):u.remove():x&&e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},k),{x:C[0],y:C[1]}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0}));var A=null;"up"===s?A=[E,O]:"down"===s?A=[E,-O]:"right"===s&&(A=[E,E-O]),A&&(c?w||void 0===w?c.attr((0,r.__assign)((0,r.__assign)({},k),{x:A[0],y:A[1]})):c.remove():w&&e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},k),{x:A[0],y:A[1]}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0}));var j=null;"up"===s?j=[E-O,-O]:"left"===s?j=[E,-O]:"right"===s&&(j=[-E,-O]),j&&(f?M||void 0===M?f.attr((0,r.__assign)((0,r.__assign)({},k),{x:j[0],y:j[1]})):f.remove():M&&e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},k),{x:j[0],y:j[1]}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0}));var I=null;"down"===s?I=[-E+O,O]:"left"===s?I=[E,O]:"right"===s&&(I=[-E,O]),I&&(l?_||void 0===_?l.attr((0,r.__assign)((0,r.__assign)({},k),{x:I[0],y:I[1]})):l.remove():_&&e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},k),{x:I[0],y:I[1]}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))}},"single-node")},bd8b:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={}.toString,i=function(t,e){return r.call(t)==="[object "+e+"]"};e.default=i},be6e:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("90f6"),i=n("90f6"),o=n("18f2");function a(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function s(t){t=(0,o.default)(t);for(var e=[],n=null,s=null,u=null,c=0,f=t.length,l=0;l<f;l++){var h=t[l];s=t[l+1];var d=h[0],p={command:d,prePoint:n,params:h,startTangent:null,endTangent:null};switch(d){case"M":u=[h[1],h[2]],c=l;break;case"A":var g=(0,r.default)(n,h);p["arcParams"]=g;break;default:break}if("Z"===d)n=u,s=t[c+1];else{var v=h.length;n=[h[v-2],h[v-1]]}s&&"Z"===s[0]&&(s=t[c],e[c]&&(e[c].prePoint=n)),p["currentPoint"]=n,e[c]&&(0,i.isSamePoint)(n,e[c].currentPoint)&&(e[c].prePoint=p.prePoint);var y=s?[s[s.length-2],s[s.length-1]]:null;p["nextPoint"]=y;var m=p.prePoint;if(["L","H","V"].includes(d))p.startTangent=[m[0]-n[0],m[1]-n[1]],p.endTangent=[n[0]-m[0],n[1]-m[1]];else if("Q"===d){var b=[h[1],h[2]];p.startTangent=[m[0]-b[0],m[1]-b[1]],p.endTangent=[n[0]-b[0],n[1]-b[1]]}else if("T"===d){var x=e[l-1];b=a(x.currentPoint,m);"Q"===x.command?(p.command="Q",p.startTangent=[m[0]-b[0],m[1]-b[1]],p.endTangent=[n[0]-b[0],n[1]-b[1]]):(p.command="TL",p.startTangent=[m[0]-n[0],m[1]-n[1]],p.endTangent=[n[0]-m[0],n[1]-m[1]])}else if("C"===d){var w=[h[1],h[2]],M=[h[3],h[4]];p.startTangent=[m[0]-w[0],m[1]-w[1]],p.endTangent=[n[0]-M[0],n[1]-M[1]],0===p.startTangent[0]&&0===p.startTangent[1]&&(p.startTangent=[w[0]-M[0],w[1]-M[1]]),0===p.endTangent[0]&&0===p.endTangent[1]&&(p.endTangent=[M[0]-w[0],M[1]-w[1]])}else if("S"===d){x=e[l-1],w=a(x.currentPoint,m),M=[h[1],h[2]];"C"===x.command?(p.command="C",p.startTangent=[m[0]-w[0],m[1]-w[1]],p.endTangent=[n[0]-M[0],n[1]-M[1]]):(p.command="SQ",p.startTangent=[m[0]-M[0],m[1]-M[1]],p.endTangent=[n[0]-M[0],n[1]-M[1]])}else if("A"===d){var _=.001,S=p["arcParams"]||{},P=S.cx,k=void 0===P?0:P,C=S.cy,O=void 0===C?0:C,E=S.rx,A=void 0===E?0:E,j=S.ry,I=void 0===j?0:j,T=S.sweepFlag,B=void 0===T?0:T,N=S.startAngle,D=void 0===N?0:N,L=S.endAngle,R=void 0===L?0:L;0===B&&(_*=-1);var z=A*Math.cos(D-_)+k,F=I*Math.sin(D-_)+O;p.startTangent=[z-u[0],F-u[1]];var G=A*Math.cos(D+R+_)+k,Y=I*Math.sin(D+R-_)+O;p.endTangent=[m[0]-G,m[1]-Y]}e.push(p)}return e}e.default=s},bec1:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={}.toString,i=function(t){return r.call(t).replace(/^\[object /,"").replace(/]$/,"")};e.default=i},bee2:function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}n.d(e,"a",(function(){return i}))},bfc7:function(t,e,n){var r=n("5c69"),i=n("100e"),o=n("2c66"),a=n("dcbe"),s=i((function(t){return o(r(t,1,a,!0))}));t.exports=s},bff8:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),i=n("8937"),o=n("d531"),a=n("7a70"),s=n("4333"),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rect",e.canFill=!0,e.canStroke=!0,e}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),o=this.get("el"),s=!1,u=["x","y","width","height","radius"];i.each(e||r,(function(t,e){-1===u.indexOf(e)||s?-1===u.indexOf(e)&&a.SVG_ATTR_MAP[e]&&o.setAttribute(a.SVG_ATTR_MAP[e],t):(o.setAttribute("d",n._assembleRect(r)),s=!0)}))},e.prototype._assembleRect=function(t){var e=t.x,n=t.y,r=t.width,o=t.height,a=t.radius;if(!a)return"M "+e+","+n+" l "+r+",0 l 0,"+o+" l"+-r+" 0 z";var u=s.parseRadius(a);i.isArray(a)?1===a.length?u.r1=u.r2=u.r3=u.r4=a[0]:2===a.length?(u.r1=u.r3=a[0],u.r2=u.r4=a[1]):3===a.length?(u.r1=a[0],u.r2=u.r4=a[1],u.r3=a[2]):(u.r1=a[0],u.r2=a[1],u.r3=a[2],u.r4=a[3]):u.r1=u.r2=u.r3=u.r4=a;var c=[["M "+(e+u.r1)+","+n],["l "+(r-u.r1-u.r2)+",0"],["a "+u.r2+","+u.r2+",0,0,1,"+u.r2+","+u.r2],["l 0,"+(o-u.r2-u.r3)],["a "+u.r3+","+u.r3+",0,0,1,"+-u.r3+","+u.r3],["l "+(u.r3+u.r4-r)+",0"],["a "+u.r4+","+u.r4+",0,0,1,"+-u.r4+","+-u.r4],["l 0,"+(u.r4+u.r1-o)],["a "+u.r1+","+u.r1+",0,0,1,"+u.r1+","+-u.r1],["z"]];return c.join(" ")},e}(o.default);e.default=u},c01c:function(t,e,n){"use strict";function r(t){void 0===t&&(t={});var e=t,n=function(){},r=function(){var t={};return function(e){var n=e.next;return!t[n.get("id")]&&(t[n.get("id")]=!0,!0)}}();return e.allowTraversal=t.allowTraversal||r,e.enter=t.enter||n,e.leave=t.leave||n,e}function i(t,e,n,r){r.enter({current:e,previous:n}),t.getSourceNeighbors(e).forEach((function(o){r.allowTraversal({previous:n,current:e,next:o})&&i(t,o,e,r)})),r.leave({current:e,previous:n})}function o(t,e,n){var o=null,a=t.findById(e);i(t,a,o,r(n))}Object.defineProperty(e,"__esModule",{value:!0}),e.default=o},c05f:function(t,e,n){var r=n("7b97"),i=n("1310");function o(t,e,n,a,s){return t===e||(null==t||null==e||!i(t)&&!i(e)?t!==t&&e!==e:r(t,e,n,a,o,s))}t.exports=o},c098:function(t,e){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function i(t,e){var i=typeof t;return e=null==e?n:e,!!e&&("number"==i||"symbol"!=i&&r.test(t))&&t>-1&&t%1==0&&t<e}t.exports=i},c0b3:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getComboBBox=e.reconstructTree=e.plainCombosToTrees=e.getTextSize=e.getLetterWidth=e.radialLayout=e.traverseTreeUp=e.traverseTree=e.getLabelPosition=e.getLoopCfgs=e.getBBox=void 0;var r=n("9ab4"),i=n("e897"),o=c(n("067f")),a=n("0dfa"),s=c(n("7680")),u=n("8937");function c(t){return t&&t.__esModule?t:{default:t}}var f=Math.PI,l=Math.sin,h=Math.cos,d=l(f/8),p=h(f/8),g=function(t,e){var n=t.getBBox(),r={x:n.minX,y:n.minY},o={x:n.maxX,y:n.maxY};if(e){var s=e.getMatrix();s||(s=i.mat3.create()),r=(0,a.applyMatrix)(r,s),o=(0,a.applyMatrix)(o,s)}var u=r.x,c=r.y,f=o.x,l=o.y;return{x:u,y:c,minX:u,minY:c,maxX:f,maxY:l,width:f-u,height:l-c}};e.getBBox=g;var v=function(t){var e=t.sourceNode||t.targetNode,n=e.get("group"),r=n.getMatrix();r||(r=i.mat3.create());var a=e.getKeyShape(),s=a.getBBox(),u=t.loopCfg||{},c=u.dist||2*Math.max(s.width,s.height),f=u.position||o.default.defaultLoopPosition,l=[r[6],r[7]],h=[t.startPoint.x,t.startPoint.y],g=[t.endPoint.x,t.endPoint.y],v=s.height/2,y=s.height/2,m=v*d,b=v*p,x=y*d,w=y*p;if(h[0]===g[0]&&h[1]===g[1]){switch(f){case"top":h=[l[0]-m,l[1]-b],g=[l[0]+x,l[1]-w];break;case"top-right":v=s.height/2,y=s.width/2,m=v*d,b=v*p,x=y*d,w=y*p,h=[l[0]+m,l[1]-b],g=[l[0]+w,l[1]-x];break;case"right":v=s.width/2,y=s.width/2,m=v*d,b=v*p,x=y*d,w=y*p,h=[l[0]+b,l[1]-m],g=[l[0]+w,l[1]+x];break;case"bottom-right":v=s.width/2,y=s.height/2,m=v*d,b=v*p,x=y*d,w=y*p,h=[l[0]+b,l[1]+m],g=[l[0]+x,l[1]+w];break;case"bottom":v=s.height/2,y=s.height/2,m=v*d,b=v*p,x=y*d,w=y*p,h=[l[0]+m,l[1]+b],g=[l[0]-x,l[1]+w];break;case"bottom-left":v=s.height/2,y=s.width/2,m=v*d,b=v*p,x=y*d,w=y*p,h=[l[0]-m,l[1]+b],g=[l[0]-w,l[1]+x];break;case"left":v=s.width/2,y=s.width/2,m=v*d,b=v*p,x=y*d,w=y*p,h=[l[0]-b,l[1]+m],g=[l[0]-w,l[1]-x];break;case"top-left":v=s.width/2,y=s.height/2,m=v*d,b=v*p,x=y*d,w=y*p,h=[l[0]-b,l[1]-m],g=[l[0]-x,l[1]-w];break;default:v=s.width/2,y=s.width/2,m=v*d,b=v*p,x=y*d,w=y*p,h=[l[0]-m,l[1]-b],g=[l[0]+x,l[1]-w]}if(!1===u.clockwise){var M=[h[0],h[1]];h=[g[0],g[1]],g=[M[0],M[1]]}}var _=[h[0]-l[0],h[1]-l[1]],S=(v+c)/v,P=(y+c)/y;!1===u.clockwise&&(S=(y+c)/y,P=(v+c)/v);var k=i.vec2.scale([],_,S),C=[l[0]+k[0],l[1]+k[1]],O=[g[0]-l[0],g[1]-l[1]],E=i.vec2.scale([],O,P),A=[l[0]+E[0],l[1]+E[1]];return t.startPoint={x:h[0],y:h[1]},t.endPoint={x:g[0],y:g[1]},t.controlPoints=[{x:C[0],y:C[1]},{x:A[0],y:A[1]}],t};e.getLoopCfgs=v;var y=function(t,e,n,i,o){var a=1e-4,s=[],u=t.getPoint(e);if(null===u)return{x:0,y:0,angle:0};if(e<a)s=t.getStartTangent().reverse();else if(e>1-a)s=t.getEndTangent();else{var c=t.getPoint(e+a);s.push([u.x,u.y]),s.push([c.x,c.y])}var d=Math.atan2(s[1][1]-s[0][1],s[1][0]-s[0][0]);if(d<0&&(d+=2*f),n&&(u.x+=h(d)*n,u.y+=l(d)*n),i){var p=d-f/2;d>.5*f&&d<1.5*f&&(p-=f),u.x+=h(p)*i,u.y+=l(p)*i}var g={x:u.x,y:u.y,angle:d};return o?(d>.5*f&&d<1.5*f&&(d-=f),(0,r.__assign)({rotate:d},g)):g};e.getLabelPosition=y;var m=function t(e,n){if(!1===n(e))return!1;if(e&&e.children)for(var r=e.children.length-1;r>=0;r--)if(!t(e.children[r],n))return!1;return!0},b=function t(e,n){if(e&&e.children)for(var r=e.children.length-1;r>=0;r--)if(!t(e.children[r],n))return;return!1!==n(e)},x=function(t,e){"function"===typeof e&&m(t,e)};e.traverseTree=x;var w=function(t,e){"function"===typeof e&&b(t,e)};e.traverseTreeUp=w;var M=function(t,e){var n=["V","TB","BT"],r={x:1/0,y:1/0},i={x:-1/0,y:-1/0},o="x",a="y";e&&n.indexOf(e)>=0&&(a="x",o="y");var s=0;x(t,(function(t){return s++,t.x>i.x&&(i.x=t.x),t.x<r.x&&(r.x=t.x),t.y>i.y&&(i.y=t.y),t.y<r.y&&(r.y=t.y),!0}));var u=2*f/s,c=i[a]-r[a];return 0===c||x(t,(function(e){var n=(e[a]-r[a])/c*(2*f-u)+u,i=Math.abs("x"===o?e.x-t.x:e.y-t.y);return e.x=i*Math.cos(n),e.y=i*Math.sin(n),!0})),t};e.radialLayout=M;var _=function(t,e){return e*(s.default[t]||1)};e.getLetterWidth=_;var S=function(t,e){var n=0,r=new RegExp("[一-龥]+");return t.split("").forEach((function(t){r.test(t)?n+=e:n+=_(t,e)})),[n,e]};e.getTextSize=S;var P=function(t,e){var n=[],r={},i={};t.forEach((function(t){i[t.id]=t})),t.forEach((function(t,e){var o=(0,u.clone)(t);o.itemType="combo",o.children=void 0,o.parentId===o.id?(console.warn("The parentId for combo "+o.id+" can not be the same as the combo's id"),delete o.parentId):o.parentId&&!i[o.parentId]&&(console.warn("The parent combo for combo "+o.id+" does not exist!"),delete o.parentId);var a=r[o.id];if(a){if(o.children=a.children,r[o.id]=o,a=o,!a.parentId)return void n.push(a);var s=r[a.parentId];if(s)return void(s.children?s.children.push(o):s.children=[o]);var c={id:a.parentId,children:[a]};return r[a.parentId]=c,void(r[o.id]=o)}if((0,u.isString)(t.parentId)){var f=r[t.parentId];if(f)f.children?f.children.push(o):f.children=[o],r[o.id]=o;else{var l={id:t.parentId,children:[o]};r[l.id]=l,r[o.id]=o}}else n.push(o),r[o.id]=o}));var o={};return e&&e.forEach((function(t){o[t.id]=t;var e=r[t.comboId];if(e){var n={id:t.id,comboId:t.comboId};e.children?e.children.push(n):e.children=[n],n.itemType="node",r[t.id]=n}})),n.forEach((function(t){t.depth=0,m(t,(function(t){var e,n=r[t.id]["itemType"];e="node"===n?r[t["comboId"]]:r[t.parentId],t.depth=e?"node"===n?e.depth+1:e.depth+2:0;var i=o[t.id];return i&&(i.depth=t.depth),!0}))})),n};e.plainCombosToTrees=P;var k=function(t,e,n){var r,i=t,o={root:{children:t}},a=!1,s="root";t&&t.forEach((function(t){if(!a)return t.id===e?(r=t,"combo"===t.itemType?r.parentId=n:r.comboId=n,void(a=!0)):void x(t,(function(t){return o[t.id]={children:t.children},i=o[t.parentId||t.comboId||"root"].children,!t||!t.removed&&e!==t.id||!i||(s=t.parentId||t.comboId||"root",r=t,"combo"===t.itemType?r.parentId=n:r.comboId=n,a=!0,!1)}))})),i=o[s].children;var u=i?i.indexOf(r):-1;if(u>-1&&i.splice(u,1),a||(r={id:e,itemType:"node",comboId:n},o[e]={children:void 0}),e){var c=!1;if(n){var f=0;t&&t.forEach((function(t){c||x(t,(function(t){return n!==t.id||(c=!0,t.children?t.children.push(r):t.children=[r],f=t.depth,"node"===r.itemType?r.depth=f+2:r.depth=f+1,!1)}))}))}else n&&c||"node"===r.itemType||t.push(r);var l=r.depth;x(r,(function(t){return"node"===t.itemType?l+=2:l+=1,t.depth=l,!0}))}return t};e.reconstructTree=k;var C=function(t,e){var n={minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0,x:void 0,y:void 0,width:void 0,height:void 0};return t&&0!==t.length?(t.forEach((function(t){var r=e.findById(t.id);if(r.isVisible()){r.set("bboxCanvasCache",void 0);var i=r.getCanvasBBox();i.x&&n.minX>i.minX&&(n.minX=i.minX),i.y&&n.minY>i.minY&&(n.minY=i.minY),i.x&&n.maxX<i.maxX&&(n.maxX=i.maxX),i.y&&n.maxY<i.maxY&&(n.maxY=i.maxY)}})),n.x=(n.minX+n.maxX)/2,n.y=(n.minY+n.maxY)/2,n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,Object.keys(n).forEach((function(t){n[t]!==1/0&&n[t]!==-1/0||(n[t]=void 0)})),n):n};e.getComboBBox=C},c0be:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4f"),i=n("61d8"),o=n("842b");e.default=function(t,e,n){var a=t,s=i.default(e)?e.split("."):e;return s.forEach((function(t,e){e<s.length-1?(r.default(a[t])||(a[t]=o.default(s[e+1])?[]:{}),a=a[t]):a[t]=n})),t}},c0e4:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),i=n("6855"),o=n("92ca"),a=n("31c4"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.onCanvasChange=function(t){a.refreshElement(this,t)},e.prototype.getShapeBase=function(){return o},e.prototype.getGroupBase=function(){return e},e.prototype._applyClip=function(t,e){e&&(t.save(),a.applyAttrsToContext(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.draw=function(t,e){var n=this.getChildren();n.length&&(t.save(),a.applyAttrsToContext(t,this),this._applyClip(t,this.getClip()),a.drawChildren(t,n,e),t.restore()),this.set("cacheCanvasBBox",this.getCanvasBBox()),this.set("hasChanged",!1)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},e}(i.AbstractGroup);e.default=s},c1c9:function(t,e,n){var r=n("a454"),i=n("f3c1"),o=i(r);t.exports=o},c21c:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("72fb"));function i(t){return t&&t.__esModule?t:{default:t}}var o="shift",a=["shift","ctrl","alt","control"],s={getDefaultCfg:function(){return{multiple:!0,trigger:o,selectedState:"selected"}},getEvents:function(){var t=this;return a.indexOf(t.trigger.toLowerCase())>-1||(t.trigger=o,console.warn("Behavior brush-select 的 trigger 参数不合法,请输入 'drag'、'shift'、'ctrl' 或 'alt'")),t.multiple?{"node:click":"onClick","combo:click":"onClick","canvas:click":"onCanvasClick",keyup:"onKeyUp",keydown:"onKeyDown"}:{"node:click":"onClick","combo:click":"onClick","canvas:click":"onCanvasClick"}},onClick:function(t){var e=this,n=t.item;if(n){var i=n.getType(),o=this,a=o.graph,s=o.keydown,u=o.multiple,c=o.shouldUpdate;if(!s||!u){var f=a.findAllByState(i,this.selectedState);(0,r.default)(f,(function(t){t!==n&&a.setItemState(t,e.selectedState,!1)}))}if(n.hasState(this.selectedState)){c.call(this,t)&&a.setItemState(n,this.selectedState,!1);var l=a.findAllByState("node",this.selectedState),h=a.findAllByState("combo",this.selectedState);a.emit("nodeselectchange",{target:n,selectedItems:{nodes:l,combos:h},select:!1})}else{c.call(this,t)&&a.setItemState(n,this.selectedState,!0);l=a.findAllByState("node",this.selectedState),h=a.findAllByState("combo",this.selectedState);a.emit("nodeselectchange",{target:n,selectedItems:{nodes:l,combos:h},select:!0})}}},onCanvasClick:function(){var t=this,e=this.graph,n=e.findAllByState("node",this.selectedState);(0,r.default)(n,(function(n){e.setItemState(n,t.selectedState,!1)}));var i=e.findAllByState("combo",this.selectedState);(0,r.default)(i,(function(n){e.setItemState(n,t.selectedState,!1)})),e.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[],combos:[]},select:!1})},onKeyDown:function(t){var e=t.key;e&&(e.toLowerCase()===this.trigger.toLowerCase()||"control"===e.toLowerCase()?this.keydown=!0:this.keydown=!1)},onKeyUp:function(){this.keydown=!1}};e.default=s},c27f:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getShape=void 0;var r=n("d080"),i=n("a00f");function o(t,e){if(e){var n=i.invert(e);return i.multiplyVec2(n,t)}return t}function a(t,e,n){var r=t.getTotalMatrix();if(r){var i=o([e,n,1],r),a=i[0],s=i[1];return[a,s]}return[e,n]}function s(t,e,n){if(t.isCanvas&&t.isCanvas())return!0;if(!r.isAllowCapture(t)&&!1===t.cfg.isInView)return!1;if(t.cfg.clipShape){var i=a(t,e,n),o=i[0],s=i[1];if(t.isClipped(o,s))return!1}var u=t.cfg.cacheCanvasBBox;return u||(u=t.getCanvasBBox()),e>=u.minX&&e<=u.maxX&&n>=u.minY&&n<=u.maxY}function u(t,e,n){if(!s(t,e,n))return null;for(var r=null,i=t.getChildren(),o=i.length,c=o-1;c>=0;c--){var f=i[c];if(f.isGroup())r=u(f,e,n);else if(s(f,e,n)){var l=f,h=a(f,e,n),d=h[0],p=h[1];l.isInShape(d,p)&&(r=f)}if(r)break}return r}e.getShape=u},c2aa:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("9ab4"),i=u(n("0518")),o=u(n("067f")),a=n("c0b3"),s=u(n("842b"));function u(t){return t&&t.__esModule?t:{default:t}}var c="bboxCache",f="bboxCanvasCache",l="sizeCache",h="anchorPointsCache",d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{type:"combo",nodes:[],edges:[],combos:[]}},e.prototype.getShapeCfg=function(t){var e=this.get("styles"),n=this.get("bbox");if(e){var r=t,i={r:Math.hypot(n.height,n.width)/2||o.default.defaultCombo.size[0]/2,width:n.width||o.default.defaultCombo.size[0],height:n.height||o.default.defaultCombo.size[1]};r.style=Object.assign({},e,t.style,i);var a=t.padding||o.default.defaultCombo.padding;return(0,s.default)(a)?(i.r+=a,i.width+=2*a,i.height+=2*a):(i.r+=a[0],i.width+=a[1]+a[3]||2*a[1],i.height+=a[0]+a[2]||2*a[0]),this.set(l,i),r}return t},e.prototype.calculateCanvasBBox=function(){var t=this.get("keyShape"),e=this.get("group"),n=(0,a.getBBox)(t,e);n.x=n.minX,n.y=n.minY,n.centerX=(n.minX+n.maxX)/2,n.centerY=(n.minY+n.maxY)/2;var r=this.get(l);if(r){var i=this.get("keyShape"),o=i.get("type");"circle"===o?(n.width=2*r.r,n.height=2*r.r):(n.width=r.width,n.height=r.height),n.minX=n.centerX-n.width/2,n.minY=n.centerY-n.height/2,n.maxX=n.centerX+n.width/2,n.maxY=n.centerY+n.height/2}else n.width=n.maxX-n.minX,n.height=n.maxY-n.minY;return n},e.prototype.getChildren=function(){var t=this;return{nodes:t.getNodes(),combos:t.getCombos()}},e.prototype.getNodes=function(){var t=this;return t.get("nodes")},e.prototype.getCombos=function(){var t=this;return t.get("combos")},e.prototype.addChild=function(t){var e=this,n=t.getType();switch(n){case"node":e.addNode(t);break;case"combo":e.addCombo(t);break;default:return console.warn("Only node or combo items are allowed to be added into a combo"),!1}return!0},e.prototype.addCombo=function(t){var e=this;return e.get("combos").push(t),!0},e.prototype.addNode=function(t){var e=this;return e.get("nodes").push(t),!0},e.prototype.removeChild=function(t){var e=this,n=t.getType();switch(n){case"node":e.removeNode(t);break;case"combo":e.removeCombo(t);break;default:return console.warn("Only node or combo items are allowed to be added into a combo"),!1}return!0},e.prototype.removeCombo=function(t){var e=this.getCombos(),n=e.indexOf(t);return n>-1&&(e.splice(n,1),!0)},e.prototype.removeNode=function(t){var e=this.getNodes(),n=e.indexOf(t);return n>-1&&(e.splice(n,1),!0)},e.prototype.isOnlyMove=function(t){return!1},e.prototype.getBBox=function(){this.set(f,null);var t=this.calculateCanvasBBox();return t},e.prototype.clearCache=function(){this.set(c,null),this.set(f,null),this.set(h,null)},e.prototype.destroy=function(){if(!this.destroyed){var t=this.get("animate"),e=this.get("group");t&&e.stopAnimate(),this.clearCache(),this.set(l,null),this.set("bbox",null),e.remove(),this._cfg=null,this.destroyed=!0}},e}(i.default),p=d;e.default=p},c2b6:function(t,e,n){var r=n("f8af"),i=n("5d89"),o=n("6f6c"),a=n("a2db"),s=n("c8fe"),u="[object Boolean]",c="[object Date]",f="[object Map]",l="[object Number]",h="[object RegExp]",d="[object Set]",p="[object String]",g="[object Symbol]",v="[object ArrayBuffer]",y="[object DataView]",m="[object Float32Array]",b="[object Float64Array]",x="[object Int8Array]",w="[object Int16Array]",M="[object Int32Array]",_="[object Uint8Array]",S="[object Uint8ClampedArray]",P="[object Uint16Array]",k="[object Uint32Array]";function C(t,e,n){var C=t.constructor;switch(e){case v:return r(t);case u:case c:return new C(+t);case y:return i(t,n);case m:case b:case x:case w:case M:case _:case S:case P:case k:return s(t,n);case f:return new C;case l:case p:return new C(t);case h:return o(t);case d:return new C;case g:return a(t)}}t.exports=C},c2c1:function(t,e,n){},c31b:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("c3e2"),i=n("b455"),o=n("493b");function a(t,e,n,r){var i=1-r;return i*i*t+2*r*i*e+r*r*n}function s(t,e,n){var r=t+n-2*e;if(i.isNumberEqual(r,0))return[.5];var o=(t-e)/r;return o<=1&&o>=0?[o]:[]}function u(t,e,n,r){return 2*(1-r)*(e-t)+2*r*(n-e)}function c(t,e,n,i,o,s,u){var c=a(t,n,o,u),f=a(e,i,s,u),l=r.default.pointAt(t,e,n,i,u),h=r.default.pointAt(n,i,o,s,u);return[[t,e,l.x,l.y,c,f],[c,f,h.x,h.y,o,s]]}function f(t,e,n,r,o,a,s){if(0===s)return(i.distance(t,e,n,r)+i.distance(n,r,o,a)+i.distance(t,e,o,a))/2;var u=c(t,e,n,r,o,a,.5),l=u[0],h=u[1];return l.push(s-1),h.push(s-1),f.apply(null,l)+f.apply(null,h)}e.default={box:function(t,e,n,r,o,u){var c=s(t,n,o)[0],f=s(e,r,u)[0],l=[t,o],h=[e,u];return void 0!==c&&l.push(a(t,n,o,c)),void 0!==f&&h.push(a(e,r,u,f)),i.getBBoxByArray(l,h)},length:function(t,e,n,r,i,o){return f(t,e,n,r,i,o,3)},nearestPoint:function(t,e,n,r,i,s,u,c){return o.nearestPoint([t,n,i],[e,r,s],u,c,a)},pointDistance:function(t,e,n,r,o,a,s,u){var c=this.nearestPoint(t,e,n,r,o,a,s,u);return i.distance(c.x,c.y,s,u)},interpolationAt:a,pointAt:function(t,e,n,r,i,o,s){return{x:a(t,n,i,s),y:a(e,r,o,s)}},divide:function(t,e,n,r,i,o,a){return c(t,e,n,r,i,o,a)},tangentAngle:function(t,e,n,r,o,a,s){var c=u(t,n,o,s),f=u(e,r,a,s),l=Math.atan2(f,c);return i.piMod(l)}}},c360:function(t,e,n){"use strict";function r(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},c3cd:function(t,e){t.exports="2.1.8"},c3e2:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("b455"),i=n("6711");e.default={box:function(t,e,n,i){return r.getBBoxByArray([t,n],[e,i])},length:function(t,e,n,i){return r.distance(t,e,n,i)},pointAt:function(t,e,n,r,i){return{x:(1-i)*t+i*n,y:(1-i)*e+i*r}},pointDistance:function(t,e,n,i,o,a){var s=(n-t)*(o-t)+(i-e)*(a-e);if(s<0)return r.distance(t,e,o,a);var u=(n-t)*(n-t)+(i-e)*(i-e);return s>u?r.distance(n,i,o,a):this.pointToLine(t,e,n,i,o,a)},pointToLine:function(t,e,n,r,o,a){var s=[n-t,r-e];if(i.exactEquals(s,[0,0]))return Math.sqrt((o-t)*(o-t)+(a-e)*(a-e));var u=[-s[1],s[0]];i.normalize(u,u);var c=[o-t,a-e];return Math.abs(i.dot(c,u))},tangentAngle:function(t,e,n,r){return Math.atan2(r-e,n-t)}}},c3e8:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),i=n("9705");function o(t,e,n,r){return t/(n*n)+e/(r*r)}var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var a=this.attr(),s=i/2,u=a.x,c=a.y,f=a.rx,l=a.ry,h=(t-u)*(t-u),d=(e-c)*(e-c);return r&&n?o(h,d,f+s,l+s)<=1:r?o(h,d,f,l)<=1:!!n&&(o(h,d,f-s,l-s)>=1&&o(h,d,f+s,l+s)<=1)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.rx,o=e.ry;if(t.beginPath(),t.ellipse)t.ellipse(n,r,i,o,0,0,2*Math.PI,!1);else{var a=i>o?i:o,s=i>o?1:i/o,u=i>o?o/i:1;t.save(),t.translate(n,r),t.scale(s,u),t.arc(0,0,a,0,2*Math.PI),t.restore(),t.closePath()}},e}(i.default);e.default=a},c3fc:function(t,e,n){var r=n("42a2"),i=n("1310"),o="[object Set]";function a(t){return i(t)&&r(t)==o}t.exports=a},c584:function(t,e){function n(t,e){return t.has(e)}t.exports=n},c5a2:function(t,e,n){var r=n("6ac0"),i=n("48a0"),o=n("badf"),a=n("58f7"),s=n("6747");function u(t,e,n){var u=s(t)?r:a,c=arguments.length<3;return u(t,o(e,4),n,c,i)}t.exports=u},c62f:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("b681"));function i(t){return t&&t.__esModule?t:{default:t}}var o=function(){function t(){this.linkedList=new r.default}return t.prototype.isEmpty=function(){return!this.linkedList.head},t.prototype.peek=function(){return this.linkedList.head?this.linkedList.head.value:null},t.prototype.enqueue=function(t){this.linkedList.append(t)},t.prototype.dequeue=function(){var t=this.linkedList.deleteHead();return t?t.value:null},t.prototype.toString=function(t){return this.linkedList.toString(t)},t}(),a=o;e.default=a},c641:function(t,e,n){t.exports=n("6cd4")},c6c4:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("9ab4"),i=a(n("1b95")),o=a(n("067f"));function a(t){return t&&t.__esModule?t:{default:t}}var s={getDefaultCfg:function(){return{delegate:!0,delegateStyle:{},delegateShapes:{},delegateShapeBBoxs:{}}},getEvents:function(){return{dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd","canvas:mouseleave":"onOutOfRange"}},onDragStart:function(t){var e=this.graph,n=t.target,r=n.get("groupId");if(r){var i=e.get("customGroupControll"),o=i.customGroup,a=o[r].nodeGroup;this.targetGroup=a,this.mouseOrigin={x:t.x,y:t.y};for(var s=e.save().groups,u=null,c=0;c<s.length;c++){var f=s[c];if(r===f.id){u=f.parentId;break}}if(u){var l=o[u].nodeGroup;i.setGroupStyle(l.get("keyShape"),"hover")}}},onDrag:function(t){this.mouseOrigin&&this.updateDelegate(t)},onDragEnd:function(t){var e=this.graph,n=t.target.get("groupId");if(this.delegateShapes[n]&&(this.delegateShapeBBox=this.delegateShapes[n].getBBox(),this.delegateShapes[n].remove(),delete this.delegateShapes[n]),this.delegateShapeBBox){var r=e.get("customGroupControll"),i=this.delegateShapeBBoxs[n];r.updateGroup(n,i,this.mouseOrigin),this.mouseOrigin=null,this.shapeOrigin=null,r.resetNodePoint(),this.delegateShapeBBox=null}},updateDelegate:function(t){var e=this.graph,n=t.target.get("groupId"),a=this.targetGroup.get("keyShape"),s=this.delegateShapes[n],u=a.getBBox(),c=a.get("type");if(s){var f=this,l=f.mouseOrigin,h=f.shapeOrigin,d=t.x-l.x,p=t.y-l.y,g=d+h.x,v=p+h.y;s.attr({x:g,y:v}),this.delegateShapeBBoxs[n]=s.getBBox()}else{var y=e.get("delegateGroup"),m=u.x,b=u.y,x=u.width,w=u.height,M=(0,r.__assign)({width:x,height:w},(0,i.default)({},o.default.delegateStyle,this.delegateStyle));if("circle"===c){var _=x>w?x/2:w/2,S=m+_,P=b+_;s=y.addShape("circle",{attrs:(0,r.__assign)({x:S,y:P,r:_},M),name:"circle-delegate-shape"}),this.shapeOrigin={x:S,y:P}}else s=y.addShape("rect",{attrs:(0,r.__assign)({x:m,y:b},M),name:"rect-delegate-shape"}),this.shapeOrigin={x:m,y:b};this.delegateShapes[n]=s,this.delegateShapeBBoxs[n]=s.getBBox()}},onOutOfRange:function(t){var e=this,n=this.graph.get("canvas").get("el"),r=function r(i){i.target!==n&&(e.onDragEnd(t),document.body.removeEventListener("mouseup",r,!0))};this.mouseOrigin&&document.body.addEventListener("mouseup",r,!0)}};e.default=s},c6cf:function(t,e,n){var r=n("4d8c"),i=n("2286"),o=n("c1c9");function a(t){return o(i(t,void 0,r),t+"")}t.exports=a},c707:function(t,e,n){var r=n("5c69"),i=n("6a5c"),o=n("100e"),a=n("9aff"),s=o((function(t,e){if(null==t)return[];var n=e.length;return n>1&&a(t,e[0],e[1])?e=[]:n>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])}));t.exports=s},c740:function(t,e,n){"use strict";var r=n("23e7"),i=n("b727").findIndex,o=n("44d2"),a="findIndex",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o(a)},c75c:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("61d8");e.default=function(t,e,n){var i=0,o=r.default(e)?e.split("."):e;while(t&&i<o.length)t=t[o[i++]];return void 0===t||i<o.length?n:t}},c869:function(t,e,n){var r=n("0b07"),i=n("2b3e"),o=r(i,"Set");t.exports=o},c87c:function(t,e){var n=Object.prototype,r=n.hasOwnProperty;function i(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&r.call(t,"index")&&(n.index=t.index,n.input=t.input),n}t.exports=i},c8fe:function(t,e,n){var r=n("f8af");function i(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}t.exports=i},c924:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("bd8b"),i=function(t){return r.default(t,"RegExp")};e.default=i},c94d:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return o}));var r=1e-6,i="undefined"!==typeof Float32Array?Float32Array:Array,o=Math.random;Math.PI;Math.hypot||(Math.hypot=function(){var t=0,e=arguments.length;while(e--)t+=arguments[e]*arguments[e];return Math.sqrt(t)})},c9ca:function(t,e,n){var r=n("ef5d"),i=r("length");t.exports=i},cae7:function(t,e,n){var r=n("ffd6");function i(t,e){if(t!==e){var n=void 0!==t,i=null===t,o=t===t,a=r(t),s=void 0!==e,u=null===e,c=e===e,f=r(e);if(!u&&!f&&!a&&t>e||a&&s&&c&&!u&&!f||i&&s&&c||!n&&c||!o)return 1;if(!i&&!a&&!f&&t<e||f&&n&&o&&!i&&!a||u&&n&&o||!s&&o||!c)return-1}return 0}t.exports=i},cb29:function(t,e,n){var r=n("23e7"),i=n("81d5"),o=n("44d2");r({target:"Array",proto:!0},{fill:i}),o("fill")},cb5a:function(t,e,n){var r=n("9638");function i(t,e){var n=t.length;while(n--)if(r(t[n][0],e))return n;return-1}t.exports=i},cc0c:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("9ab4"),i=u(n("d99a")),o=u(n("c360")),a=u(n("13c9")),s=n("e897");function u(t){return t&&t.__esModule?t:{default:t}}var c="url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHBhdHRlcm4gaWQ9ImdyaWQiIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTSAwIDEwIEwgNDAgMTAgTSAxMCAwIEwgMTAgNDAgTSAwIDIwIEwgNDAgMjAgTSAyMCAwIEwgMjAgNDAgTSAwIDMwIEwgNDAgMzAgTSAzMCAwIEwgMzAgNDAiIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2UwZTBlMCIgb3BhY2l0eT0iMC4yIiBzdHJva2Utd2lkdGg9IjEiLz48cGF0aCBkPSJNIDQwIDAgTCAwIDAgMCA0MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZTBlMGUwIiBzdHJva2Utd2lkdGg9IjEiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JpZCkiLz48L3N2Zz4=)",f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.getDefaultCfgs=function(){return{img:c}},e.prototype.init=function(){var t=this.get("graph"),e=t.get("minZoom"),n=t.get("container"),r=t.get("canvas").get("el"),a=t.get("width"),s=t.get("height"),u=this.get("img")||c,f=(0,i.default)('<div style="position: absolute; left:0;top:0;right:0;bottom:0;overflow: hidden;z-index: -1;"></div>'),l=(0,i.default)("<div \n class='g6-grid' \n style='position:absolute;\n transform-origin: 0% 0% 0px;\n background-image: "+u+"\n '></div>");f.appendChild(l),(0,o.default)(f,{width:a+"px",height:s+"px"}),(0,o.default)(l,{width:a/e+"px",height:s/e+"px",left:0,top:0}),n.insertBefore(f,r),this.set("container",f),this.set("gridContainer",l)},e.prototype.getEvents=function(){return{viewportchange:"updateGrid"}},e.prototype.updateGrid=function(t){var e=this.get("gridContainer"),n=t.matrix;n||(n=s.mat3.create());var r="matrix("+n[0]+", "+n[1]+", "+n[3]+", "+n[4]+", 0, 0)";(0,o.default)(e,{transform:r})},e.prototype.getContainer=function(){return this.get("container")},e.prototype.destroy=function(){var t=this.get("graph"),e=t.get("container"),n=this.get("container");e.removeChild(n)},e}(a.default),l=f;e.default=l},cc45:function(t,e,n){var r=n("1a2d0"),i=n("b047"),o=n("99d3"),a=o&&o.isMap,s=a?i(a):r;t.exports=s},cd9d:function(t,e){function n(t){return t}t.exports=n},cdca:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("06ef"),i=n("bd8b"),o=function(t){if(!r.default(t)||!i.default(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;var e=t;while(null!==Object.getPrototypeOf(e))e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e};e.default=o},ce79:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){return t instanceof Element||t instanceof HTMLDocument};e.default=r},ce86:function(t,e,n){var r=n("9e69"),i=n("7948"),o=n("6747"),a=n("ffd6"),s=1/0,u=r?r.prototype:void 0,c=u?u.toString:void 0;function f(t){if("string"==typeof t)return t;if(o(t))return i(t,f)+"";if(a(t))return c?c.call(t):"";var e=t+"";return"0"==e&&1/t==-s?"-0":e}t.exports=f},cee5:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("28f9"),i=n("9ab4f"),o=function(t){return t};e.default=function(t,e){void 0===e&&(e=o);var n={};return i.default(t)&&!r.default(t)&&Object.keys(t).forEach((function(r){n[r]=e(t[r],r)})),n}},cfa7:function(t,e,n){var r=n("33de");function i(t){var e=0,n=[],i={},o=[];function a(s){var u=i[s]={onStack:!0,lowlink:e,index:e++};if(n.push(s),t.successors(s).forEach((function(t){r.has(i,t)?i[t].onStack&&(u.lowlink=Math.min(u.lowlink,i[t].index)):(a(t),u.lowlink=Math.min(u.lowlink,i[t].lowlink))})),u.lowlink===u.index){var c,f=[];do{c=n.pop(),i[c].onStack=!1,f.push(c)}while(s!==c);o.push(f)}}return t.nodes().forEach((function(t){r.has(i,t)||a(t)})),o}t.exports=i},cfda:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("9ab4"),i=a(n("1b95")),o=a(n("067f"));function a(t){return t&&t.__esModule?t:{default:t}}var s={getDefaultCfg:function(){return{updateEdge:!0,delegateStyle:{},enableDelegate:!1,onlyChangeComboSize:!1,comboActiveState:"",selectedState:"selected"}},getEvents:function(){return{"node:dragstart":"onDragStart","node:drag":"onDrag","node:dragend":"onDragEnd","combo:dragenter":"onDragEnter","combo:dragleave":"onDragLeave","combo:drop":"onDropCombo"}},validationCombo:function(t){if(this.origin&&t)t.getType()},onDragStart:function(t){var e=this;if(this.shouldBegin.call(this,t)){var n=t.item;if(n&&!n.hasLocked()){var r=n.getContainer();r.set("capture",!1);var i=t.target;if(i){var o=i.get("isAnchorPoint");if(o)return}var a=this.graph;this.targets=[],this.targetCombo=null;var s=a.findAllByState("node",this.selectedState),u=n.get("id"),c=s.filter((function(t){var e=t.get("id");return u===e}));0===c.length?this.targets.push(n):s.length>1?s.forEach((function(t){var n=t.hasLocked();n||e.targets.push(t)})):this.targets.push(n),this.origin={x:t.x,y:t.y},this.point={},this.originPoint={}}}},onDrag:function(t){var e=this;this.origin&&this.shouldUpdate(this,t)&&(this.get("enableDelegate")?this.updateDelegate(t):this.targets.map((function(n){e.update(n,t)})))},onDragEnd:function(t){var e=this;if(this.origin&&this.shouldEnd.call(this,t)){var n=t.item,r=n.getContainer();r.set("capture",!0),this.delegateRect&&(this.delegateRect.remove(),this.delegateRect=null),this.get("enableDelegate")&&this.targets.map((function(n){return e.update(n,t)}));var i=this.graph;if(this.onlyChangeComboSize)i.updateCombos();else if(this.targetCombo){var o=this.targetCombo.getModel();this.targets.map((function(t){var e=t.getModel();e.comboId!==o.id&&i.updateComboTree(t,o.id)}))}else this.targets.map((function(t){var e=t.getModel();e.comboId&&i.updateComboTree(t)}));this.point={},this.origin=null,this.originPoint={},this.targets.length=0,this.targetCombo=null}},onDropCombo:function(t){var e=t.item;this.validationCombo(e);var n=this.graph;this.comboActiveState&&n.setItemState(e,this.comboActiveState,!1),this.targetCombo=e},onDragEnter:function(t){var e=t.item;this.validationCombo(e);var n=this.graph;this.comboActiveState&&n.setItemState(e,this.comboActiveState,!0)},onDragLeave:function(t){var e=t.item;this.validationCombo(e);var n=this.graph;this.comboActiveState&&n.setItemState(e,this.comboActiveState,!1)},update:function(t,e){var n=this.origin,r=t.get("model"),i=t.get("id");this.point[i]||(this.point[i]={x:r.x,y:r.y});var o=e.x-n.x+this.point[i].x,a=e.y-n.y+this.point[i].y,s={x:o,y:a};this.get("updateEdge")?this.graph.updateItem(t,s):t.updatePosition(s)},updateDelegate:function(t){if(this.delegateRect){var e=t.x-this.origin.x+this.originPoint.minX,n=t.y-this.origin.y+this.originPoint.minY;this.delegateRect.attr({x:e,y:n})}else{var a=this.graph.get("group"),s=(0,i.default)({},o.default.delegateStyle,this.delegateStyle),u=this.calculationGroupPosition(t),c=u.x,f=u.y,l=u.width,h=u.height,d=u.minX,p=u.minY;this.originPoint={x:c,y:f,width:l,height:h,minX:d,minY:p},this.delegateRect=a.addShape("rect",{attrs:(0,r.__assign)({width:l,height:h,x:c,y:f},s),name:"rect-delegate-shape"}),this.delegateRect.set("capture",!1)}},calculationGroupPosition:function(t){var e=this.graph,n=e.findAllByState("node",this.selectedState);0===n.length&&n.push(t.item);for(var r=1/0,i=-1/0,o=1/0,a=-1/0,s=0;s<n.length;s++){var u=n[s],c=u.getBBox(),f=c.minX,l=c.minY,h=c.maxX,d=c.maxY;f<r&&(r=f),l<o&&(o=l),h>i&&(i=h),d>a&&(a=d)}var p=Math.floor(r),g=Math.floor(o),v=Math.ceil(i)-Math.floor(r),y=Math.ceil(a)-Math.floor(o);return{x:p,y:g,width:v,height:y,minX:r,minY:o}}};e.default=s},d008:function(t,e,n){"use strict";n("c2c1")},d02c:function(t,e,n){var r=n("5e2e"),i=n("79bc"),o=n("7b83"),a=200;function s(t,e){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length<a-1)return s.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(t,e),this.size=n.size,this}t.exports=s},d080:function(t,e,n){"use strict";function r(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}Object.defineProperty(e,"__esModule",{value:!0}),e.removeFromArray=r,e.isBrowser="undefined"!==typeof window&&"undefined"!==typeof window.document;var i=n("28f9");e.isNil=i.default;var o=n("2047");e.isFunction=o.default;var a=n("61d8");e.isString=a.default;var s=n("9ab4f");e.isObject=s.default;var u=n("01f9");e.isArray=u.default;var c=n("503e");e.mix=c.default;var f=n("72fb");e.each=f.default;var l=n("3c5c");function h(t,e){if(t.isCanvas())return!0;var n=e.getParent(),r=!1;while(n){if(n===t){r=!0;break}n=n.getParent()}return r}function d(t){return t.cfg.visible&&t.cfg.capture}e.upperFirst=l.default,e.isParent=h,e.isAllowCapture=d},d124:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),i=n("8937"),o=n("7a70"),a=n("d531"),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="image",e.canFill=!1,e.canStroke=!1,e}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x:0,y:0,width:0,height:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),a=this.get("el");i.each(e||r,(function(t,e){"img"===e?n._setImage(r.img):o.SVG_ATTR_MAP[e]&&a.setAttribute(o.SVG_ATTR_MAP[e],t)}))},e.prototype.setAttr=function(t,e){this.attrs[t]=e,"img"===t&&this._setImage(e)},e.prototype._setImage=function(t){var e=this.attr(),n=this.get("el");if(i.isString(t))n.setAttribute("href",t);else if(t instanceof window.Image)e.width||(n.setAttribute("width",t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",t.height),this.attr("height",t.height)),n.setAttribute("href",t.src);else if(t instanceof HTMLElement&&i.isString(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase())n.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var r=document.createElement("canvas");r.setAttribute("width",""+t.width),r.setAttribute("height",""+t.height),r.getContext("2d").putImageData(t,0,0),e.width||(n.setAttribute("width",""+t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",""+t.height),this.attr("height",t.height)),n.setAttribute("href",r.toDataURL())}},e}(a.default);e.default=s},d258:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t}},d312:function(t,e,n){var r=n("a473"),i=n("33de");function o(t,e,n){return i.transform(t.nodes(),(function(i,o){i[o]=r(t,o,e,n)}),{})}t.exports=o},d321:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getPolylinePoints=e.getPathWithBorderRadiusByPolyline=e.getBorderRadiusPoints=e.isBending=e.pathFinder=e.getNeighborPoints=e.isSegmentCrossingBBox=e.isSegmentsIntersected=e.removeFrom=e.reconstructPath=e.heuristicCostEstimate=e._costByPoints=e.distance=e.getBBoxCrossPointsByPoint=e.getBBoxYCrossPoints=e.getBBoxXCrossPoints=e.isPointOutsideBBox=e.getPointsFromBBox=e.mergeBBox=e.getExpandedBBoxPoint=e.isHorizontalPort=e.getExpandedBBox=e.getSimplePolyline=e.simplifyPolyline=e.filterConnectPoints=e.isBBoxesOverlapping=e.getBBoxFromPoints=e.getBBoxFromPoint=void 0;var r=n("8937");function i(t){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}var o=function(t){var e=t.x,n=t.y;return{x:e,y:n,centerX:e,centerY:n,minX:e,minY:n,maxX:e,maxY:n,height:0,width:0}};e.getBBoxFromPoint=o;var a=function(t){void 0===t&&(t=[]);var e=[],n=[];t.forEach((function(t){e.push(t.x),n.push(t.y)}));var r=Math.min.apply(Math,e),i=Math.max.apply(Math,e),o=Math.min.apply(Math,n),a=Math.max.apply(Math,n);return{centerX:(r+i)/2,centerY:(o+a)/2,maxX:i,maxY:a,minX:r,minY:o,height:a-o,width:i-r}};e.getBBoxFromPoints=a;var s=function(t,e){return 2*Math.abs(t.centerX-e.centerX)<t.width+e.width&&2*Math.abs(t.centerY-e.centerY)<t.height+e.height};e.isBBoxesOverlapping=s;var u=function(t){var e=[],n={};return t.forEach((function(t){var e=t.x+"-"+t.y;t.id=e,n[e]=t})),(0,r.each)(n,(function(t){e.push(t)})),e};e.filterConnectPoints=u;var c=function(t){return t=u(t),t};e.simplifyPolyline=c;var f=function(t,e){return[t,{x:t.x,y:e.y},e]};e.getSimplePolyline=f;var l=function(t,e){return 0===t.width&&0===t.height?t:{centerX:t.centerX,centerY:t.centerY,minX:t.minX-e,minY:t.minY-e,maxX:t.maxX+e,maxY:t.maxY+e,height:t.height+2*e,width:t.width+2*e}};e.getExpandedBBox=l;var h=function(t,e){var n=Math.abs(t.x-e.centerX),r=Math.abs(t.y-e.centerY);return n/e.width>r/e.height};e.isHorizontalPort=h;var d=function(t,e){var n=h(e,t);return n?{x:e.x>t.centerX?t.maxX:t.minX,y:e.y}:{x:e.x,y:e.y>t.centerY?t.maxY:t.minY}};e.getExpandedBBoxPoint=d;var p=function(t,e){var n=Math.min(t.minX,e.minX),r=Math.min(t.minY,e.minY),i=Math.max(t.maxX,e.maxX),o=Math.max(t.maxY,e.maxY);return{centerX:(n+i)/2,centerY:(r+o)/2,minX:n,minY:r,maxX:i,maxY:o,height:o-r,width:i-n}};e.mergeBBox=p;var g=function(t){var e=t.minX,n=t.minY,r=t.maxX,i=t.maxY;return[{x:e,y:n},{x:r,y:n},{x:r,y:i},{x:e,y:i}]};e.getPointsFromBBox=g;var v=function(t,e){var n=t.x,r=t.y;return n<e.minX||n>e.maxX||r<e.minY||r>e.maxY};e.isPointOutsideBBox=v;var y=function(t,e){return e<t.minX||e>t.maxX?[]:[{x:e,y:t.minY},{x:e,y:t.maxY}]};e.getBBoxXCrossPoints=y;var m=function(t,e){return e<t.minY||e>t.maxY?[]:[{x:t.minX,y:e},{x:t.maxX,y:e}]};e.getBBoxYCrossPoints=m;var b=function(t,e){return y(t,e.x).concat(m(t,e.y))};e.getBBoxCrossPointsByPoint=b;var x=function(t,e){return Math.abs(t.x-e.x)+Math.abs(t.y-e.y)};e.distance=x;var w=function(t,e){var n=-2,r=0;return e.forEach((function(e){e&&(t.x===e.x&&(r+=n),t.y===e.y&&(r+=n))})),r};e._costByPoints=w;var M=function(t,e,n,r,i){return x(t,e)+x(t,n)+w(t,[e,n,r,i])};e.heuristicCostEstimate=M;var _=function t(e,n,r,i,o){void 0===o&&(o=0),e.unshift(n[i]),r[i]&&r[i]!==i&&o<=100&&t(e,n,r,r[i],o+1)};e.reconstructPath=_;var S=function(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)};e.removeFrom=S;var P=function(t,e,n,r){var i=e.x-t.x,o=e.y-t.y,a=r.x-n.x,s=r.y-n.y,u=(-o*(t.x-n.x)+i*(t.y-n.y))/(-a*o+i*s),c=(a*(t.y-n.y)-s*(t.x-n.x))/(-a*o+i*s);return u>=0&&u<=1&&c>=0&&c<=1};e.isSegmentsIntersected=P;var k=function(t,e,n){if(0===n.width&&0===n.height)return!1;var r=g(n),i=r[0],o=r[1],a=r[2],s=r[3];return P(t,e,i,o)||P(t,e,i,s)||P(t,e,o,a)||P(t,e,a,s)};e.isSegmentCrossingBBox=k;var C=function(t,e,n,r){var i=[];return t.forEach((function(t){t!==e&&(t.x!==e.x&&t.y!==e.y||k(t,e,n)||k(t,e,r)||i.push(t))})),u(i)};e.getNeighborPoints=C;var O=function(t,e,n,r,o,a,s){var u=[],c=[e],f={},l={},h={};l[e.id]=0,h[e.id]=M(e,n,e);var d={};t.forEach((function(t){d[t.id]=t}));var p=function(){var i,p=1/0;if(c.forEach((function(t){h[t.id]<p&&(p=h[t.id],i=t)})),i===n){var g=[];return _(g,d,f,n.id),{value:g}}S(c,i),u.push(i),C(t,i,r,o).forEach((function(t){if(-1===u.indexOf(t)){-1===c.indexOf(t)&&c.push(t);var r=h[i.id]+x(i,t);l[t.id]&&r>=l[t.id]||(f[t.id]=i.id,l[t.id]=r,h[t.id]=l[t.id]+M(t,n,e,a,s))}}))};while(c.length){var g=p();if("object"===i(g))return g.value}return[e,n]};e.pathFinder=O;var E=function(t,e,n){return!(t.x===e.x&&e.x===n.x||t.y===e.y&&e.y===n.y)};e.isBending=E;var A=function(t,e,n,r){var i=x(t,e),o=x(n,e);i<r&&(r=i),o<r&&(r=o);var a={x:e.x-r/i*(e.x-t.x),y:e.y-r/i*(e.y-t.y)},s={x:e.x-r/o*(e.x-n.x),y:e.y-r/o*(e.y-n.y)};return[a,s]};e.getBorderRadiusPoints=A;var j=function(t,e){var n=[],r=t[0];return n.push("M"+r.x+" "+r.y),t.forEach((function(r,i){var o=t[i+1],a=t[i+2];if(o&&a)if(E(r,o,a)){var s=A(r,o,a,e),u=s[0],c=s[1];n.push("L"+u.x+" "+u.y),n.push("Q"+o.x+" "+o.y+" "+c.x+" "+c.y),n.push("L"+c.x+" "+c.y)}else n.push("L"+o.x+" "+o.y);else o&&n.push("L"+o.x+" "+o.y)})),n.join("")};e.getPathWithBorderRadiusByPolyline=j;var I=function(t,e,n,r,i){var h=n&&n.getBBox()?n.getBBox():o(t),y=r&&r.getBBox()?r.getBBox():o(e);if(s(h,y))return c(f(t,e));var m=l(h,i),x=l(y,i);if(s(m,x))return c(f(t,e));var w=d(m,t),M=d(x,e),_=a([w,M]),S=(p(m,x),p(m,_)),P=p(x,_),k=[];k=k.concat(g(S)),k=k.concat(g(P));var C={x:(t.x+e.x)/2,y:(t.y+e.y)/2};[_,S,P].forEach((function(t){k=k.concat(b(t,C).filter((function(t){return v(t,m)&&v(t,x)})))})),[{x:w.x,y:M.y},{x:M.x,y:w.y}].forEach((function(t){v(t,m)&&v(t,x)&&k.push(t)})),k.unshift(w),k.push(M),k=u(k);var E=O(k,w,M,h,y,t,e);return E.unshift(t),E.push(e),c(E)};e.getPolylinePoints=I},d327:function(t,e){function n(){return[]}t.exports=n},d370:function(t,e,n){var r=n("253c"),i=n("1310"),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return i(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=u},d40f:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("516b");function i(t,e,n,i,o,a,s){var u=o/2;return r.inBox(t-u,e-u,n,o,a,s)||r.inBox(t+n-u,e-u,o,i,a,s)||r.inBox(t+u,e+i-u,n,o,a,s)||r.inBox(t-u,e+u,o,i,a,s)}e.default=i},d4b2:function(t,e){function n(t,e){var n=t.length;t.sort(e);while(n--)t[n]=t[n].value;return t}t.exports=n},d4ec:function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",(function(){return r}))},d4f3:function(t,e,n){var r=n("6f9c");function i(t,e,n){var i,o={};r.forEach(n,(function(n){var r,a,s=t.parent(n);while(s){if(r=t.parent(s),r?(a=o[r],o[r]=s):(a=i,i=s),a&&a!==s)return void e.setEdge(a,s);s=r}}))}t.exports=i},d4fa:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){return void 0===t};e.default=r},d531:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),i=n("6855"),o=n("060b"),a=n("487c"),s=n("814b"),u=n("7a70"),c=n("aeb1"),f=n("a3df"),l=n("1322"),h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="svg",e.canFill=!1,e.canStroke=!1,e}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var r=n.get("context");this.draw(r,e)}},e.prototype.getShapeBase=function(){return c},e.prototype.getGroupBase=function(){return f.default},e.prototype.onCanvasChange=function(t){s.refreshElement(this,t)},e.prototype.calculateBBox=function(){var t=this.get("el"),e=null;if(t)e=t.getBBox();else{var n=l.getBBoxMethod(this.get("type"));n&&(e=n(this))}if(e){var r=e.x,i=e.y,o=e.width,a=e.height,s=this.getHitLineWidth(),u=s/2,c=r-u,f=i-u,h=r+o+u,d=i+a+u;return{x:c,y:f,minX:c,minY:f,maxX:h,maxY:d,width:o+s,height:a+s}}return{x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0}},e.prototype.isFill=function(){var t=this.attr(),e=t.fill,n=t.fillStyle;return(e||n||this.isClipShape())&&this.canFill},e.prototype.isStroke=function(){var t=this.attr(),e=t.stroke,n=t.strokeStyle;return(e||n)&&this.canStroke},e.prototype.draw=function(t,e){var n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||a.createDom(this),o.setClip(this,t),this.createPath(t,e),this.shadow(t,e),this.strokeAndFill(t,e),this.transform(e))},e.prototype.createPath=function(t,e){},e.prototype.strokeAndFill=function(t,e){var n=e||this.attr(),r=n.fill,i=n.fillStyle,o=n.stroke,a=n.strokeStyle,s=n.fillOpacity,c=n.strokeOpacity,f=n.lineWidth,l=this.get("el");this.canFill&&(e?"fill"in n?this._setColor(t,"fill",r):"fillStyle"in n&&this._setColor(t,"fill",i):this._setColor(t,"fill",r||i),s&&l.setAttribute(u.SVG_ATTR_MAP["fillOpacity"],s)),this.canStroke&&f>0&&(e?"stroke"in n?this._setColor(t,"stroke",o):"strokeStyle"in n&&this._setColor(t,"stroke",a):this._setColor(t,"stroke",o||a),c&&l.setAttribute(u.SVG_ATTR_MAP["strokeOpacity"],c),f&&l.setAttribute(u.SVG_ATTR_MAP["lineWidth"],f))},e.prototype._setColor=function(t,e,n){var r=this.get("el");if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n)){var i=t.find("gradient",n);i||(i=t.addGradient(n)),r.setAttribute(u.SVG_ATTR_MAP[e],"url(#"+i+")")}else if(/^[p,P]{1}[\s]*\(/.test(n)){i=t.find("pattern",n);i||(i=t.addPattern(n)),r.setAttribute(u.SVG_ATTR_MAP[e],"url(#"+i+")")}else r.setAttribute(u.SVG_ATTR_MAP[e],n);else r.setAttribute(u.SVG_ATTR_MAP[e],"none")},e.prototype.shadow=function(t,e){var n=this.attr(),r=e||n,i=r.shadowOffsetX,a=r.shadowOffsetY,s=r.shadowBlur,u=r.shadowColor;(i||a||s||u)&&o.setShadow(this,t)},e.prototype.transform=function(t){var e=this.attr(),n=(t||e).matrix;n&&o.setTransform(this)},e.prototype.isInShape=function(t,e){return this.isPointInPath(t,e)},e.prototype.isPointInPath=function(t,e){var n=this.get("el"),r=this.get("canvas"),i=r.get("el").getBoundingClientRect(),o=t+i.left,a=e+i.top,s=document.elementFromPoint(o,a);return!(!s||!s.isEqualNode(n))},e.prototype.getHitLineWidth=function(){var t=this.attrs,e=t.lineWidth,n=t.lineAppendWidth;return this.isStroke()?e+n:0},e}(i.AbstractShape);e.default=h},d5f3:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("3d7d");function i(t){var e=t.attr(),n=e.x1,i=e.y1,o=e.x2,a=e.y2,s=Math.min(n,o),u=Math.max(n,o),c=Math.min(i,a),f=Math.max(i,a),l={minX:s,maxX:u,minY:c,maxY:f};return l=r.mergeArrowBBox(t,l),{x:l.minX,y:l.minY,width:l.maxX-l.minX,height:l.maxY-l.minY}}e.default=i},d612:function(t,e,n){var r=n("7b83"),i=n("7ed2"),o=n("dc0f");function a(t){var e=-1,n=null==t?0:t.length;this.__data__=new r;while(++e<n)this.add(t[e])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,t.exports=a},d623:function(t,e,n){var r=n("03dd"),i=n("42a2"),o=n("30c9"),a=n("e2a0"),s=n("6751"),u="[object Map]",c="[object Set]";function f(t){if(null==t)return 0;if(o(t))return a(t)?s(t):t.length;var e=i(t);return e==u||e==c?t.size:r(t).length}t.exports=f},d6a3:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("2412"),i=n("b455");e.default={box:function(t){for(var e=[],n=[],r=0;r<t.length;r++){var o=t[r];e.push(o[0]),n.push(o[1])}return i.getBBoxByArray(e,n)},length:function(t){return r.lengthOfSegment(t)},pointAt:function(t,e){return r.pointAtSegments(t,e)},pointDistance:function(t,e,n){return r.distanceAtSegment(t,e,n)},tangentAngle:function(t,e){return r.angleAtSegments(t,e)}}},d6f0:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("61d8"),i=n("739e"),o=n("eda4");e.default=function(t,e,n,a){void 0===a&&(a="...");var s,u,c=16,f=o.default(a,n),l=r.default(t)?t:i.default(t),h=e,d=[];if(o.default(t,n)<=e)return t;while(1){if(s=l.substr(0,c),u=o.default(s,n),u+f>h&&u>h)break;if(d.push(s),h-=u,l=l.substr(c),!l)return d.join("")}while(1){if(s=l.substr(0,1),u=o.default(s,n),u+f>h)break;if(d.push(s),h-=u,l=l.substr(1),!l)return d.join("")}return""+d.join("")+a}},d70d:function(t,e){function n(t,e,n){var r=-1,i=t.length,o=e.length,a={};while(++r<i){var s=r<o?e[r]:void 0;n(a,t[r],s)}return a}t.exports=n},d780:function(t,e,n){"use strict";var r=n("6f9c");function i(t,e){for(var n=0,r=1;r<e.length;++r)n+=o(t,e[r-1],e[r]);return n}function o(t,e,n){var i=r.zipObject(n,r.map(n,(function(t,e){return e}))),o=r.flatten(r.map(e,(function(e){return r.sortBy(r.map(t.outEdges(e),(function(e){return{pos:i[e.w],weight:t.edge(e).weight}})),"pos")})),!0),a=1;while(a<n.length)a<<=1;var s=2*a-1;a-=1;var u=r.map(new Array(s),(function(){return 0})),c=0;return r.forEach(o.forEach((function(t){var e=t.pos+a;u[e]+=t.weight;var n=0;while(e>0)e%2&&(n+=u[e+1]),e=e-1>>1,u[e]+=t.weight;c+=t.weight*n}))),c}t.exports=i},d7ee:function(t,e,n){var r=n("c3fc"),i=n("b047"),o=n("99d3"),a=o&&o.isSet,s=a?i(a):r;t.exports=s},d89f:function(t,e,n){t.exports={components:n("e44a"),dijkstra:n("a473"),dijkstraAll:n("d312"),findCycles:n("ddac"),floydWarshall:n("6736"),isAcyclic:n("43e8"),postorder:n("4f17"),preorder:n("aaf9"),prim:n("61e9"),tarjan:n("cfa7"),topsort:n("8185")}},d8bc:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("2bdc");e.default=function(t,e){return r.default(t,(function(t,n,r){return e.includes(r)||(t[r]=n),t}),{})}},d998:function(t,e,n){var r=n("342f");t.exports=/MSIE|Trident/.test(r)},d99a:function(t,e,n){"use strict";var r,i,o,a;function s(){r=document.createElement("table"),i=document.createElement("tr"),o=/^\s*<(\w+|!)[^>]*>/,a={tr:document.createElement("tbody"),tbody:r,thead:r,tfoot:r,td:i,th:i,"*":document.createElement("div")}}function u(t){r||s();var e=o.test(t)&&RegExp.$1;e&&e in a||(e="*");var n=a[e];t=t.replace(/(^\s*)|(\s*$)/g,""),n.innerHTML=""+t;var i=n.childNodes[0];return n.removeChild(i),i}Object.defineProperty(e,"__esModule",{value:!0}),e.default=u},d9a8:function(t,e){function n(t){return t!==t}t.exports=n},d9f3:function(t,e,n){"use strict";var r=n("6f9c");function i(t,e){var n={};r.forEach(t,(function(t,e){var i=n[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};r.isUndefined(t.barycenter)||(i.barycenter=t.barycenter,i.weight=t.weight)})),r.forEach(e.edges(),(function(t){var e=n[t.v],i=n[t.w];r.isUndefined(e)||r.isUndefined(i)||(i.indegree++,e.out.push(n[t.w]))}));var i=r.filter(n,(function(t){return!t.indegree}));return o(i)}function o(t){var e=[];function n(t){return function(e){e.merged||(r.isUndefined(e.barycenter)||r.isUndefined(t.barycenter)||e.barycenter>=t.barycenter)&&a(t,e)}}function i(e){return function(n){n["in"].push(e),0===--n.indegree&&t.push(n)}}while(t.length){var o=t.pop();e.push(o),r.forEach(o["in"].reverse(),n(o)),r.forEach(o.out,i(o))}return r.map(r.filter(e,(function(t){return!t.merged})),(function(t){return r.pick(t,["vs","i","barycenter","weight"])}))}function a(t,e){var n=0,r=0;t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.vs=e.vs.concat(t.vs),t.barycenter=n/r,t.weight=r,t.i=Math.min(e.i,t.i),e.merged=!0}t.exports=i},da03:function(t,e,n){var r=n("2b3e"),i=r["__core-js_shared__"];t.exports=i},da0a:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var r,i,o,a,s=0;n||(n={});var u=function(){s=!1===n.leading?0:Date.now(),r=null,a=t.apply(i,o),r||(i=o=null)},c=function(){var c=Date.now();s||!1!==n.leading||(s=c);var f=e-(c-s);return i=this,o=arguments,f<=0||f>e?(r&&(clearTimeout(r),r=null),s=c,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(u,f)),a};return c.cancel=function(){clearTimeout(r),s=0,r=i=o=null},c}},dad5:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("01f9");e.default=function(t){if(r.default(t))return t.reduce((function(t,e){return Math.max(t,e)}),t[0])}},db24:function(t,e,n){"use strict";function r(t){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Graph",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"TreeGraph",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"Layout",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"Global",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"Util",{enumerable:!0,get:function(){return l.default}}),e.Algorithm=e.default=e.registerBehavior=e.Menu=e.Bundling=e.Grid=e.Minimap=e.registerLayout=e.registerEdge=e.registerCombo=e.registerNode=void 0;var i=n("2d5dc"),o=v(n("5ddc")),a=v(n("6ff6")),s=v(n("fb7d")),u=v(n("5ced")),c=v(n("9cc4")),f=v(n("067f")),l=v(n("2967")),h=v(n("8270")),d=g(n("ac5d"));function p(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return p=function(){return t},t}function g(t){if(t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!==typeof t)return{default:t};var e=p();if(e&&e.has(t))return e.get(t);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var a=i?Object.getOwnPropertyDescriptor(t,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=t[o]}return n.default=t,e&&e.set(t,n),n}function v(t){return t&&t.__esModule?t:{default:t}}e.Algorithm=d;var y=u.default.registerNode;e.registerNode=y;var m=u.default.registerEdge;e.registerEdge=m;var b=u.default.registerCombo;e.registerCombo=b;var x=o.default.registerBehavior;e.registerBehavior=x;var w=c.default.registerLayout;e.registerLayout=w;var M=h.default.Minimap;e.Minimap=M;var _=h.default.Grid;e.Grid=_;var S=h.default.Bundling;e.Bundling=S;var P=h.default.Menu;e.Menu=P;var k={version:i.version,Graph:a.default,TreeGraph:s.default,Util:l.default,registerNode:u.default.registerNode,registerEdge:u.default.registerEdge,registerCombo:u.default.registerCombo,registerBehavior:o.default.registerBehavior,registerLayout:c.default.registerLayout,Layout:c.default,Global:f.default,Minimap:h.default.Minimap,Grid:h.default.Grid,Bundling:h.default.Bundling,Menu:h.default.Menu,Algorithm:d};e.default=k},dc0f:function(t,e){function n(t){return this.__data__.has(t)}t.exports=n},dc57:function(t,e){var n=Function.prototype,r=n.toString;function i(t){if(null!=t){try{return r.call(t)}catch(e){}try{return t+""}catch(e){}}return""}t.exports=i},dcbe:function(t,e,n){var r=n("30c9"),i=n("1310");function o(t){return i(t)&&r(t)}t.exports=o},dd61:function(t,e,n){var r=n("7948"),i=n("badf"),o=n("97d3"),a=n("6747");function s(t,e){var n=a(t)?r:o;return n(t,i(e,3))}t.exports=s},ddac:function(t,e,n){var r=n("33de"),i=n("cfa7");function o(t){return r.filter(i(t),(function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])}))}t.exports=o},df01:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){return(t%e+e)%e};e.default=r},df2e:function(t,e,n){var r=n("33de");function i(t,e,n){r.isArray(e)||(e=[e]);var i=(t.isDirected()?t.successors:t.neighbors).bind(t),a=[],s={};return r.each(e,(function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);o(t,e,"post"===n,s,i,a)})),a}function o(t,e,n,i,a,s){r.has(i,e)||(i[e]=!0,n||s.push(e),r.each(a(e),(function(e){o(t,e,n,i,a,s)})),n&&s.push(e))}t.exports=i},e008:function(t,e,n){var r=n("01ce");t.exports={Graph:r.Graph,json:n("19b2"),alg:n("d89f"),version:r.version}},e090:function(t,e,n){var r=n("6f9c"),i=n("b50e"),o=n("17d5").Graph;function a(t){var e=i.buildLayerMatrix(t),n=new o({compound:!0,multigraph:!0}).setGraph({});return r.forEach(t.nodes(),(function(e){n.setNode(e,{label:e}),n.setParent(e,"layer"+t.node(e).rank)})),r.forEach(t.edges(),(function(t){n.setEdge(t.v,t.w,{},t.name)})),r.forEach(e,(function(t,e){var i="layer"+e;n.setNode(i,{rank:"same"}),r.reduce(t,(function(t,e){return n.setEdge(t,e,{style:"invis"}),e}))})),n}t.exports={debugOrdering:a}},e0bf:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("28f9"),i=n("5b8d"),o=n("bec1"),a=n("a08e"),s=Object.prototype.hasOwnProperty;function u(t){if(r.default(t))return!0;if(i.default(t))return!t.length;var e=o.default(t);if("Map"===e||"Set"===e)return!t.size;if(a.default(t))return!Object.keys(t).length;for(var n in t)if(s.call(t,n))return!1;return!0}e.default=u},e0eb:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.G6GraphEvent=void 0;var r=n("9ab4"),i=o(n("9332"));function o(t){return t&&t.__esModule?t:{default:t}}var a=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.item=n.item,r.canvasX=n.canvasX,r.canvasY=n.canvasY,r.wheelDelta=n.wheelDelta,r.detail=n.detail,r}return(0,r.__extends)(e,t),e}(i.default);e.G6GraphEvent=a},e0ef:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("01f9"),i=function(t){if("object"!==typeof t||null===t)return t;var e;if(r.default(t)){e=[];for(var n=0,o=t.length;n<o;n++)"object"===typeof t[n]&&null!=t[n]?e[n]=i(t[n]):e[n]=t[n]}else for(var a in e={},t)"object"===typeof t[a]&&null!=t[a]?e[a]=i(t[a]):e[a]=t[a];return e};e.default=i},e115:function(t,e,n){"use strict";var r=n("9ab4"),i=n("8937"),o=u(n("067f")),a=u(n("7da3")),s=n("6a23");function u(t){return t&&t.__esModule?t:{default:t}}var c={itemType:"combo",shapeType:"single-combo",labelPosition:"top",refX:o.default.comboLabel.refX,refY:o.default.comboLabel.refY,getSize:function(t){var e=(0,i.clone)(t.size||this.options.size||o.default.defaultCombo.size);return(0,i.isArray)(e)&&1===e.length&&(e=[e[0],e[0]]),(0,i.isArray)(e)||(e=[e,e]),e},getLabelStyleByPosition:function(t,e){var n=e.position||this.labelPosition,r=t.style,o=t.padding||this.options.padding;(0,i.isArray)(o)&&(o=o[0]);var a=e.refX,s=e.refY;(0,i.isNil)(a)&&(a=this.refX),(0,i.isNil)(s)&&(s=this.refY);var u,c=this.getSize(t),f=Math.max(r.r,c[0]/2)||c[0]/2,l=f+o;switch(n){case"top":u={x:0,y:-l-s,textBaseline:"bottom",textAlign:"center"};break;case"bottom":u={x:0,y:l+s,textBaseline:"bottom",textAlign:"center"};break;case"left":u={x:-l+a,y:0,textAlign:"left"};break;case"center":u={x:0,y:0,text:t.label,textAlign:"center"};break;default:u={x:l+a,y:0,textAlign:"right"};break}return u.text=t.label,u},drawShape:function(t,e){var n=this.shapeType,r=this.getShapeStyle(t),i=e.addShape(n,{attrs:r,draggable:!0,name:"combo-shape"});return i},updateShape:function(t,e,n){var i=e.get("keyShape"),o=this.options.animate;o&&i.animate?i.animate(n,{duration:200,easing:"easeLinear"}):i.attr((0,r.__assign)({},n)),this.updateLabel(t,e)}},f=Object.assign({},s.shapeBase,c);a.default.registerCombo("single-combo",f)},e1b1:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("72fb");e.default=r.default},e239:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("bd8b"),i=function(t){return r.default(t,"Arguments")};e.default=i},e24b:function(t,e,n){var r=n("49f4"),i=n("1efc"),o=n("bbc0"),a=n("7a48"),s=n("2524");function u(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype["delete"]=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},e24f:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=p(n("e0ef")),i=p(n("1b95")),o=p(n("72fb")),a=p(n("01f9")),s=p(n("9ab4f")),u=p(n("61d8")),c=p(n("3c5c")),f=p(n("2b81")),l=p(n("0518")),h=p(n("c2aa")),d=n("c0b3");function p(t){return t&&t.__esModule?t:{default:t}}var g="node",v="edge",y="vedge",m="combo",b="default",x="Mapper",w="stateStyles",M=Object.hasOwnProperty,_=function(){function t(t){this.graph=t,this.destroyed=!1}return t.prototype.addItem=function(t,e){var n=this,a=this.graph,p=a.get(t+"Group")||a.get("group"),_=t===y?v:t,S=(0,c.default)(_),P=null,k=a.get(_+(0,c.default)(w))||{},C=a.get(b+S);e[w]&&(k=e[w]);var O=a.get(_+x);if(O){var E=O(e);E[w]&&(k=E[w],delete E[w]),e=(0,i.default)({},C,e,E)}else C&&(0,o.default)(C,(function(t,n){M.call(e,n)||((0,s.default)(t)?e[n]=(0,r.default)(t):e[n]=C[n])}));if(e.shape&&!e.type&&console.warn("shape 字段即将被废弃,请使用 type 代替"),a.emit("beforeadditem",{type:t,model:e}),t===v||t===y){var A=void 0,j=void 0;if(A=e.source,j=e.target,A&&(0,u.default)(A)&&(A=a.findById(A)),j&&(0,u.default)(j)&&(j=a.findById(j)),!A||!j)return void console.warn("The source or target node of edge "+e.id+" does not exist!");A.getType&&"combo"===A.getType()&&(e.isComboEdge=!0),j.getType&&"combo"===j.getType()&&(e.isComboEdge=!0),P=new f.default({model:e,source:A,target:j,styles:k,linkCenter:a.get("linkCenter"),group:p.addGroup()})}else if(t===g)P=new l.default({model:e,styles:k,group:p.addGroup()});else if(t===m){var I=e.children,T=(0,d.getComboBBox)(I,a);e.x=T.x||100*Math.random(),e.y=T.y||100*Math.random();var B=p.addGroup();B.setZIndex(e.depth),P=new h.default({model:e,styles:k,bbox:T,group:B}),I&&I.forEach((function(t){var e=a.findById(t.id);P.addChild(e)})),e.collapsed&&setTimeout((function(){a.collapseCombo(P),n.updateCombo(P,[])}),250)}if(P)return a.get(t+"s").push(P),a.get("itemMap")[P.get("id")]=P,a.emit("afteradditem",{item:P,model:e}),P},t.prototype.updateItem=function(t,e){var n=this.graph;if((0,u.default)(t)&&(t=n.findById(t)),t&&!t.destroyed){var r="";t.getType&&(r=t.getType());var c=n.get(r+x),f=t.getModel();if(c){var l=(0,i.default)({},f,e),h=c(l),d=(0,i.default)({},f,h,e);h[w]&&(t.set("styles",d[w]),delete d[w]),(0,o.default)(d,(function(t,n){e[n]=t}))}else(0,o.default)(e,(function(t,n){f[n]&&(0,s.default)(t)&&!(0,a.default)(t)&&(e[n]=Object.assign({},f[n],e[n]))}));if(n.emit("beforeupdateitem",{item:t,cfg:e}),r===v){if(e.source){var p=e.source;(0,u.default)(p)&&(p=n.findById(p)),t.setSource(p)}if(e.target){var y=e.target;(0,u.default)(y)&&(y=n.findById(y)),t.setTarget(y)}}if(t.update(e),r===g||r===m){var b=t.getEdges();(0,o.default)(b,(function(t){n.refreshItem(t)}))}n.emit("afterupdateitem",{item:t,cfg:e})}},t.prototype.updateCombo=function(t,e){var n=this.graph;if((0,u.default)(t)&&(t=n.findById(t)),t&&!t.destroyed){var r=(0,d.getComboBBox)(e,n);t.set("bbox",r),t.update({x:r.x,y:r.y})}},t.prototype.collapseCombo=function(t){var e=this.graph;(0,u.default)(t)&&(t=e.findById(t));var n=t.getChildren();n.nodes.forEach((function(t){e.hideItem(t)})),n.combos.forEach((function(t){e.hideItem(t)}))},t.prototype.expandCombo=function(t){var e=this.graph;(0,u.default)(t)&&(t=e.findById(t));var n=t.getChildren();n.nodes.forEach((function(t){e.showItem(t)})),n.combos.forEach((function(t){t.getModel().collapsed?t.show():e.showItem(t)}))},t.prototype.removeItem=function(t){var e=this,n=this.graph;if((0,u.default)(t)&&(t=n.findById(t)),t&&!t.destroyed){n.emit("beforeremoveitem",{item:t});var r="";t.getType&&(r=t.getType());var i=n.get(r+"s"),o=i.indexOf(t);if(o>-1&&i.splice(o,1),r===v){var a=n.get("v"+r+"s"),s=a.indexOf(t);s>-1&&a.splice(s,1)}var c=t.get("id"),f=n.get("itemMap");delete f[c];var l=n.get("comboTrees"),h=t.get("id");if(r===g){if(l){var p=l,y=!1;l.forEach((function(t){y||(0,d.traverseTree)(t,(function(t){if(t.id===h&&p){var e=p.indexOf(t);return p.splice(e,1),y=!0,!1}return p=t.children,!0}))}))}for(var b=t.getEdges(),x=b.length;x>=0;x--)n.removeItem(b[x])}else if(r===m){var w,M=!1;l&&l.forEach((function(t){M||(0,d.traverseTree)(t,(function(t){return t.id!==h||(w=t,M=!0,!1)}))})),w.removed=!0,w&&w.children&&w.children.forEach((function(t){e.removeItem(t.id)}));for(b=t.getEdges(),x=b.length;x>=0;x--)n.removeItem(b[x])}t.destroy(),n.emit("afterremoveitem",{item:t})}},t.prototype.setItemState=function(t,e,n){var r=this.graph,i=e;(0,u.default)(n)&&(i=e+":"+n),t.hasState(i)===n||(0,u.default)(n)&&t.hasState(i)||(r.emit("beforeitemstatechange",{item:t,state:i,enabled:n}),t.setState(e,n),r.autoPaint(),r.emit("afteritemstatechange",{item:t,state:i,enabled:n}))},t.prototype.clearItemStates=function(t,e){var n=this.graph;(0,u.default)(t)&&(t=n.findById(t)),n.emit("beforeitemstatesclear",{item:t,states:e}),t.clearStates(e),n.emit("afteritemstatesclear",{item:t,states:e})},t.prototype.refreshItem=function(t){var e=this.graph;(0,u.default)(t)&&(t=e.findById(t)),e.emit("beforeitemrefresh",{item:t}),t.refresh(),e.emit("afteritemrefresh",{item:t})},t.prototype.addCombos=function(t,e){var n=this;t&&t.forEach((function(t){(0,d.traverseTreeUp)(t,(function(t){var r;return e.forEach((function(e){e.id===t.id&&(e.children=t.children,e.depth=t.depth,r=e)})),r&&n.addItem("combo",r),!0}))}));var r=this.graph.get("comboGroup");r&&r.sort()},t.prototype.changeItemVisibility=function(t,e){var n=this,r=this.graph;if((0,u.default)(t)&&(t=r.findById(t)),t){if(r.emit("beforeitemvisibilitychange",{item:t,visible:e}),t.changeVisibility(e),t.getType&&t.getType()===g){var i=t.getEdges();(0,o.default)(i,(function(t){(!e||t.get("source").isVisible()&&t.get("target").isVisible())&&n.changeItemVisibility(t,e)}))}else if(t.getType&&t.getType()===m){var a=r.get("comboTrees"),s=t.get("id"),c=[],f=!1;a&&a.forEach((function(t){f||t.children&&0!==t.children.length&&(0,d.traverseTree)(t,(function(t){return t.id!==s||(c=t.children,f=!0,!1)}))})),c.forEach((function(t){var i=r.findById(t.id);n.changeItemVisibility(i,e)}));i=t.getEdges();(0,o.default)(i,(function(t){(!e||t.get("source").isVisible()&&t.get("target").isVisible())&&n.changeItemVisibility(t,e)}))}r.emit("afteritemvisibilitychange",{item:t,visible:e})}else console.warn("The item to be shown or hidden does not exist!")},t.prototype.destroy=function(){this.graph=null,this.destroyed=!0},t}(),S=_;e.default=S},e275:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("5b8d"),i=function(t,e){return!!r.default(t)&&t.indexOf(e)>-1};e.default=i},e2a0:function(t,e,n){var r=n("3729"),i=n("6747"),o=n("1310"),a="[object String]";function s(t){return"string"==typeof t||!i(t)&&o(t)&&r(t)==a}t.exports=s},e2c0:function(t,e,n){var r=n("e2e4"),i=n("d370"),o=n("6747"),a=n("c098"),s=n("b218"),u=n("f4d6");function c(t,e,n){e=r(e,t);var c=-1,f=e.length,l=!1;while(++c<f){var h=u(e[c]);if(!(l=null!=t&&n(t,h)))break;t=t[h]}return l||++c!=f?l:(f=null==t?0:t.length,!!f&&s(f)&&a(h,f)&&(o(t)||i(t)))}t.exports=c},e2e4:function(t,e,n){var r=n("6747"),i=n("f608"),o=n("18d8"),a=n("76dd");function s(t,e){return r(t)?t:i(t,e)?[t]:o(a(t))}t.exports=s},e2f9:function(t,e,n){"use strict";var r=n("9ab4"),i=u(n("1b95")),o=n("8937"),a=u(n("7da3")),s=u(n("067f"));function u(t){return t&&t.__esModule?t:{default:t}}a.default.registerNode("modelRect",{options:{size:[185,70],style:{radius:5,stroke:"#69c0ff",fill:"#ffffff",lineWidth:s.default.defaultNode.style.lineWidth,fillOpacity:1},labelCfg:{style:{fill:"#595959",fontSize:14},offset:30},descriptionCfg:{style:{fontSize:12,fill:"#bfbfbf"},paddingTop:0},preRect:{show:!0,width:4,fill:"#40a9ff",radius:2},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:3,lineWidth:1,fill:"#72CC4A",stroke:"#72CC4A"},logoIcon:{show:!0,x:0,y:0,img:"https://gw.alipayobjects.com/zos/basement_prod/4f81893c-1806-4de4-aff3-9a6b266bc8a2.svg",width:16,height:16,offset:0},stateIcon:{show:!0,x:0,y:0,img:"https://gw.alipayobjects.com/zos/basement_prod/300a2523-67e0-4cbf-9d4a-67c077b40395.svg",width:16,height:16,offset:-5},anchorPoints:[[0,.5],[1,.5]]},shapeType:"modelRect",drawShape:function(t,e){var n=this.options.preRect,i=this.getShapeStyle(t),a=this.getSize(t),s=a[0],u=a[1],c=e.addShape("rect",{attrs:i,className:"modelRect-keyShape",name:"modelRect-keyShape",draggable:!0}),f=(0,o.mix)({},n,t.preRect),l=f.show,h=(0,r.__rest)(f,["show"]);return l&&e.addShape("rect",{attrs:(0,r.__assign)({x:-s/2,y:-u/2,height:u},h),className:"pre-rect",name:"pre-rect",draggable:!0}),this.drawLogoIcon(t,e),this.drawStateIcon(t,e),this.drawLinkPoints(t,e),c},drawLogoIcon:function(t,e){var n=this.options.logoIcon,i=(0,o.mix)({},n,t.logoIcon),a=this.getSize(t),s=a[0];if(i.show){var u=i.width,c=i.height,f=i.x,l=i.y,h=i.offset,d=(0,r.__rest)(i,["width","height","x","y","offset"]);e.addShape("image",{attrs:(0,r.__assign)((0,r.__assign)({},d),{x:f||-s/2+u+h,y:l||-c/2,width:u,height:c}),className:"rect-logo-icon",name:"rect-logo-icon",draggable:!0})}},drawStateIcon:function(t,e){var n=this.options.stateIcon,i=(0,o.mix)({},n,t.stateIcon),a=this.getSize(t),s=a[0];if(i.show){var u=i.width,c=i.height,f=i.x,l=i.y,h=i.offset,d=(0,r.__rest)(i,["width","height","x","y","offset"]);e.addShape("image",{attrs:(0,r.__assign)((0,r.__assign)({},d),{x:f||s/2-u+h,y:l||-c/2,width:u,height:c}),className:"rect-state-icon",name:"rect-state-icon",draggable:!0})}},drawLinkPoints:function(t,e){var n=this.options.linkPoints,i=(0,o.mix)({},n,t.linkPoints),a=i.top,s=i.left,u=i.right,c=i.bottom,f=i.size,l=(0,r.__rest)(i,["top","left","right","bottom","size"]),h=this.getSize(t),d=h[0],p=h[1];s&&e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},l),{x:-d/2,y:0,r:f}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0}),u&&e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},l),{x:d/2,y:0,r:f}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0}),a&&e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},l),{x:0,y:-p/2,r:f}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0}),c&&e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},l),{x:0,y:p/2,r:f}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0})},drawLabel:function(t,e){var n=this.options,a=n.labelCfg,s=n.logoIcon,u=n.descriptionCfg,c=(0,o.mix)({},s,t.logoIcon),f=(0,i.default)({},a,t.labelCfg),l=(0,i.default)({},u,t.descriptionCfg),h=this.getSize(t),d=h[0],p=null,g=c.show,v=c.width,y=-d/2+f.offset;g&&(y=-d/2+v+f.offset);var m=f.style,b=l.style,x=l.paddingTop;return(0,o.isString)(t.description)?(p=e.addShape("text",{attrs:(0,r.__assign)((0,r.__assign)({},m),{x:y,y:-5,text:t.label}),className:"text-shape",name:"text-shape",draggable:!0}),e.addShape("text",{attrs:(0,r.__assign)((0,r.__assign)({},b),{x:y,y:17+x,text:t.description}),className:"rect-description",name:"rect-description",draggable:!0})):p=e.addShape("text",{attrs:(0,r.__assign)((0,r.__assign)({},m),{x:y,y:7,text:t.label}),draggable:!0}),p},getShapeStyle:function(t){var e=this.options.style,n={stroke:t.color},r=(0,o.mix)({},e,n,t.style),i=this.getSize(t),a=r.width||i[0],s=r.height||i[1],u=Object.assign({},{x:-a/2,y:-s/2,width:a,height:s},r);return u},update:function(t,e){var n=this.options,a=n.style,s=n.labelCfg,u=n.descriptionCfg,c=(0,o.mix)({},a,t.style),f=this.getSize(t),l=f[0],h=f[1],d=e.get("keyShape");d.attr((0,r.__assign)((0,r.__assign)({},c),{x:-l/2,y:-h/2,width:l,height:h}));var p=e.getContainer(),g=(0,i.default)({},s,t.labelCfg),v=p.find((function(t){return"rect-logo-icon"===t.get("className")})),y=v?v.attr():{},m=(0,o.mix)({},y,t.logoIcon),b=m.width;void 0===b&&(b=this.options.logoIcon.width);var x=t.logoIcon?t.logoIcon.show:void 0,w=g.offset,M=-l/2+b+w;x||void 0===x||(M=-l/2+w);var _=p.find((function(t){return"node-label"===t.get("className")})),S=p.find((function(t){return"rect-description"===t.get("className")}));if(t.label)if(_){var P=t.labelCfg?t.labelCfg.style:{},k=(0,o.mix)({},_.attr(),P);t.label&&(k.text=t.label),k.x=M,(0,o.isString)(t.description)&&(k.y=-5),S&&(S.resetMatrix(),S.attr({x:M})),_.resetMatrix(),_.attr(k)}else p.addShape("text",{attrs:(0,r.__assign)((0,r.__assign)({},g.style),{x:M,y:t.description?-5:7,text:t.label}),className:"node-label",name:"node-label",draggable:!0});if((0,o.isString)(t.description)){var C=(0,i.default)({},u,t.descriptionCfg),O=C.paddingTop;if(S){P=t.descriptionCfg?t.descriptionCfg.style:{};var E=(0,o.mix)({},S.attr(),P);(0,o.isString)(t.description)&&(E.text=t.description),E.x=M,S.resetMatrix(),S.attr((0,r.__assign)((0,r.__assign)({},E),{y:17+O}))}else p.addShape("text",{attrs:(0,r.__assign)((0,r.__assign)({},C.style),{x:M,y:17+O,text:t.description}),className:"rect-description",name:"rect-description",draggable:!0})}var A=p.find((function(t){return"pre-rect"===t.get("className")}));if(A){var j=(0,o.mix)({},A.attr(),t.preRect);A.attr((0,r.__assign)((0,r.__assign)({},j),{x:-l/2,y:-h/2,height:h}))}if(v)if(x||void 0===x){var I=m.width,T=m.height,B=m.x,N=m.y,D=m.offset,L=(0,r.__rest)(m,["width","height","x","y","offset"]);v.attr((0,r.__assign)((0,r.__assign)({},L),{x:B||-l/2+I+D,y:N||-T/2,width:I,height:T}))}else v.remove();else x&&this.drawLogoIcon(t,p);var R=p.find((function(t){return"rect-state-icon"===t.get("className")})),z=R?R.attr():{},F=(0,o.mix)({},z,t.stateIcon);if(R){F.show||void 0===F.show||R.remove();var G=F.width,Y=(T=F.height,B=F.x,N=F.y,F.offset),X=(0,r.__rest)(F,["width","height","x","y","offset"]);R.attr((0,r.__assign)((0,r.__assign)({},X),{x:B||l/2-G+Y,y:N||-T/2,width:G,height:T}))}else F.show&&this.drawStateIcon(t,p);this.updateLinkPoints(t,p)}},"single-node")},e32d:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("5b8d"),i=function(t,e){if(!r.default(t))return t;for(var n=[],i=0;i<t.length;i++){var o=t[i];e(o,i)&&n.push(o)}return n};e.default=i},e34f:function(t,e,n){t.exports={graphlib:n("17d5"),layout:n("7a9c"),debug:n("e090"),util:{time:n("b50e").time,notime:n("b50e").notime},version:n("9214")}},e380:function(t,e,n){var r=n("7b83"),i="Expected a function";function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(i);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(o.Cache||r),n}o.Cache=r,t.exports=o},e387:function(t,e,n){"use strict";var r=n("9ab4"),i=n("8937"),o=s(n("067f")),a=s(n("7da3"));function s(t){return t&&t.__esModule?t:{default:t}}a.default.registerCombo("rect",{options:{size:[40,5],padding:[25,20,15,20],animate:!0,style:{radius:0,stroke:o.default.defaultCombo.style.stroke,fill:o.default.defaultCombo.style.fill,lineWidth:o.default.defaultCombo.style.lineWidth,fillOpacity:1},labelCfg:{style:{fill:"#595959"}},anchorPoints:[[0,.5],[1,.5]]},shapeType:"rect",labelPosition:"top",drawShape:function(t,e){var n=this.getShapeStyle(t),r=e.addShape("rect",{attrs:n,className:"rect-combo",name:"rect-combo",draggable:!0});return r},getLabelStyleByPosition:function(t,e){var n=e.position||this.labelPosition,r=t.style,o=t.padding||this.options.padding;(0,i.isNumber)(o)&&(o=[o,o,o,o]);var a=e.refX,s=e.refY;(0,i.isNil)(a)&&(a=this.refX),(0,i.isNil)(s)&&(s=this.refY);var u,c=r.width/2+o[3],f=r.height/2+o[0];switch(n){case"top":u={x:0-c+a,y:0-f+s,textBaseline:"top",textAlign:"left"};break;case"bottom":u={x:0,y:f+s,textBaseline:"bottom",textAlign:"center"};break;case"left":u={x:0-c+s,y:0,textAlign:"left"};break;case"center":u={x:0,y:0,text:t.label,textAlign:"center"};break;default:u={x:c+a,y:0,textAlign:"right"};break}return u.text=t.label,u},getShapeStyle:function(t){var e=this.options.style,n=t.padding||this.options.padding;(0,i.isNumber)(n)&&(n=[n,n,n,n]);var r,a,s={stroke:t.color},u=(0,i.mix)({},e,s,t.style),c=this.getSize(t);r=!(0,i.isNumber)(u.width)||isNaN(u.width)?c[0]||o.default.defaultCombo.style.width:Math.max(u.width,c[0])||c[0],a=!(0,i.isNumber)(u.height)||isNaN(u.height)?c[1]||o.default.defaultCombo.style.height:Math.max(u.height,c[1])||c[1];var f=-r/2-n[3],l=-a/2-n[0];u.width=r+n[1]+n[3],u.height=a+n[0]+n[2];var h=Object.assign({},{x:f,y:l},u);return t.style?(t.style.width=r,t.style.height=a):t.style={width:r,height:a},h},update:function(t,e){var n=this.getSize(t),r=t.padding||this.options.padding;(0,i.isNumber)(r)&&(r=[r,r,r,r]);var o=(0,i.clone)(t.style),a=Math.max(o.width,n[0])||n[0],s=Math.max(o.height,n[1])||n[1];o.width=a+r[1]+r[3],o.height=s+r[0]+r[2];var u=e.get("sizeCache");u&&(u.width=o.width,u.height=o.height),o.x=-a/2-r[3],o.y=-s/2-r[0];var c={stroke:t.color},f=e.get("keyShape"),l=(0,i.mix)({},f.attr(),c,o);t.style?(t.style.width=a,t.style.height=s):t.style={width:a,height:s},this.updateShape(t,e,l,!1)},updateShape:function(t,e,n){var i=e.get("keyShape"),o=this.options.animate;o&&i.animate?i.animate(n,{duration:200,easing:"easeLinear"}):i.attr((0,r.__assign)({},n)),this.updateLabel(t,e)}},"single-combo")},e3ad:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("1d5c"),i=/[a-z]/;function o(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function a(t){var e=(0,r.default)(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,a=0;a<e.length;a++){var s=e[a][0];if(i.test(s)||["V","H","T","S"].indexOf(s)>=0){n=!0;break}}if(!n)return e;var u=[],c=0,f=0,l=0,h=0,d=0,p=e[0];"M"!==p[0]&&"m"!==p[0]||(c=+p[1],f=+p[2],l=c,h=f,d++,u[0]=["M",c,f]);a=d;for(var g=e.length;a<g;a++){var v=e[a],y=u[a-1],m=[],b=(s=v[0],s.toUpperCase());if(s!==b)switch(m[0]=b,b){case"A":m[1]=v[1],m[2]=v[2],m[3]=v[3],m[4]=v[4],m[5]=v[5],m[6]=+v[6]+c,m[7]=+v[7]+f;break;case"V":m[1]=+v[1]+f;break;case"H":m[1]=+v[1]+c;break;case"M":l=+v[1]+c,h=+v[2]+f,m[1]=l,m[2]=h;break;default:for(var x=1,w=v.length;x<w;x++)m[x]=+v[x]+(x%2?c:f)}else m=e[a];switch(b){case"Z":c=+l,f=+h;break;case"H":c=m[1],m=["L",c,f];break;case"V":f=m[1],m=["L",c,f];break;case"T":c=m[1],f=m[2];var M=o([y[1],y[2]],[y[3],y[4]]);m=["Q",M[0],M[1],c,f];break;case"S":c=m[m.length-2],f=m[m.length-1];var _=y.length,S=o([y[_-4],y[_-3]],[y[_-2],y[_-1]]);m=["C",S[0],S[1],m[1],m[2],c,f];break;case"M":l=m[m.length-2],h=m[m.length-1];break;default:c=m[m.length-2],f=m[m.length-1]}u.push(m)}return u}e.default=a},e3f8:function(t,e,n){var r=n("656b");function i(t){return function(e){return r(e,t)}}t.exports=i},e44a:function(t,e,n){var r=n("33de");function i(t){var e,n={},i=[];function o(i){r.has(n,i)||(n[i]=!0,e.push(i),r.each(t.successors(i),o),r.each(t.predecessors(i),o))}return r.each(t.nodes(),(function(t){e=[],o(t),e.length&&i.push(e)})),i}t.exports=i},e5383:function(t,e,n){(function(t){var r=n("2b3e"),i=e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i,s=a?r.Buffer:void 0,u=s?s.allocUnsafe:void 0;function c(t,e){if(e)return t.slice();var n=t.length,r=u?u(n):new t.constructor(n);return t.copy(r),r}t.exports=c}).call(this,n("62e4")(t))},e632:function(t,e,n){"use strict";var r=n("6f9c");function i(t){var e={},n=r.filter(t.nodes(),(function(e){return!t.children(e).length})),i=r.max(r.map(n,(function(e){return t.node(e).rank}))),o=r.map(r.range(i+1),(function(){return[]}));function a(n){if(!r.has(e,n)){e[n]=!0;var i=t.node(n);o[i.rank].push(n),r.forEach(t.successors(n),a)}}var s=r.sortBy(n,(function(e){return t.node(e).rank}));return r.forEach(s,a),o}t.exports=i},e849:function(t,e,n){"use strict";var r=n("6f9c");function i(t){var e={};function n(i){var o=t.node(i);if(r.has(e,i))return o.rank;e[i]=!0;var a=r.min(r.map(t.outEdges(i),(function(e){return n(e.w)-t.edge(e).minlen})));return a!==Number.POSITIVE_INFINITY&&void 0!==a&&null!==a||(a=0),o.rank=a}r.forEach(t.sources(),n)}function o(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}t.exports={longestPath:i,slack:o}},e9d4:function(t,e,n){"use strict";var r=n("9ab4"),i=n("8937"),o=n("c0b3"),a=n("0dfa"),s=n("1b92"),u=d(n("067f")),c=d(n("7da3")),f=n("6a23"),l=d(n("01f9")),h=d(n("842b"));function d(t){return t&&t.__esModule?t:{default:t}}var p="edge-shape";function g(t){var e=t;return"start"===t?e="end":"end"===t&&(e="start"),e}var v={itemType:"edge",labelPosition:"center",refX:0,refY:0,labelAutoRotate:!1,getPath:function(t){var e=[];return(0,i.each)(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},getShapeStyle:function(t){var e=this.options.style,n={stroke:t.color},r=(0,i.mix)({},e,n,t.style),o=t.size||u.default.defaultEdge.size;t=this.getPathPoints(t);var a=t.startPoint,s=t.endPoint,c=this.getControlPoints(t),f=[a];c&&(f=f.concat(c)),f.push(s);var l=this.getPath(f),h=(0,i.mix)({},u.default.defaultEdge.style,{stroke:u.default.defaultEdge.color,lineWidth:o,path:l},r);return h},updateShapeStyle:function(t,e){var n=e.getContainer(),r={stroke:t.color},o=n.find((function(t){return"edge-shape"===t.get("className")}))||e.getKeyShape(),a=t.size;t=this.getPathPoints(t);var s=t.startPoint,u=t.endPoint,c=this.getControlPoints(t),f=[s];c&&(f=f.concat(c)),f.push(u);var l=(0,i.mix)({},r,o.attr(),t.style),h=t.sourceNode,d=t.targetNode,p={radius:l.radius};c||(p={source:h,target:d,offset:l.offset,radius:l.radius});var g=this.getPath(f,p),v=(0,i.mix)(r,o.attr(),{lineWidth:a,path:g},t.style);o&&o.attr(v)},getLabelStyleByPosition:function(t,e,n){var r,a=e.position||this.labelPosition,s={},u=n&&n.find((function(t){return t.get("className")===p}));r="start"===a?0:"end"===a?1:.5;var c=e.refX||this.refX,f=e.refY||this.refY;if(t.startPoint.x===t.endPoint.x&&t.startPoint.y===t.endPoint.y)return s.x=t.startPoint.x+c,s.y=t.startPoint.y+f,s.text=t.label,s;var l=(0,i.isNil)(e.autoRotate)?this.labelAutoRotate:e.autoRotate,h=(0,o.getLabelPosition)(u,r,c,f,l);return s.x=h.x,s.y=h.y,s.rotate=h.rotate,s.textAlign=this._getTextAlign(a,h.angle),s.text=t.label,s},getLabelBgStyleByPosition:function(t,e,n,a){if(!t)return{};var s=t.getBBox(),u=n.style&&n.style.background;if(!u)return{};var c,f=u.padding,l=s.width+f[1]+f[3],h=s.height+f[0]+f[2],d=n.position||this.labelPosition,g=(0,r.__assign)((0,r.__assign)({},u),{width:l,height:h,x:s.minX-f[2],y:s.minY-f[0],rotate:0}),v=(0,i.isNil)(n.autoRotate)?this.labelAutoRotate:n.autoRotate,y=a&&a.find((function(t){return t.get("className")===p}));c="start"===d?0:"end"===d?1:.5;var m=n.refX||this.refX,b=n.refY||this.refY;if(e.startPoint.x===e.endPoint.x&&e.startPoint.y===e.endPoint.y)return g.x=e.startPoint.x+m,g.y=e.startPoint.y+b,g;var x=(0,o.getLabelPosition)(y,c,m-l/2,b+h/2,v),w=x.angle;return w>.5*Math.PI&&w<1.5*Math.PI&&(x=(0,o.getLabelPosition)(y,c,m+l/2,b+h/2,v)),v&&(g.x=x.x,g.y=x.y),g.rotate=x.rotate,g},_getTextAlign:function(t,e){var n="center";return e?(e%=2*Math.PI,"center"!==t&&(n=e>=0&&e<=Math.PI/2||e>=1.5*Math.PI&&e<2*Math.PI?t:g(t)),n):t},getControlPoints:function(t){return t.controlPoints},getPathPoints:function(t){return t},drawShape:function(t,e){var n=this.getShapeStyle(t),r=e.addShape("path",{className:p,name:p,attrs:n});return r},drawLabel:function(t,e){var n=this.options.labelCfg,r=(0,i.deepMix)({},n,t.labelCfg),o=this.getLabelStyle(t,r,e),a=o.rotate;delete o.rotate;var s=e.addShape("text",{attrs:o,name:"text-shape"});if(a&&s.rotateAtStart(a),o.background){var u=this.drawLabelBg(t,e,s),c=this.itemType+f.CLS_LABEL_BG_SUFFIX;u.set("classname",c),s.toFront()}return s},drawLabelBg:function(t,e,n){var r=this.options.labelCfg,o=(0,i.deepMix)({},r,t.labelCfg),a=this.getLabelStyle(t,o,e),s=a.rotate,u=this.getLabelBgStyleByPosition(n,t,o,e);delete u.rotate;var c=e.addShape("rect",{name:"text-bg-shape",attrs:u});return s&&c.rotateAtStart(s),c}},y=Object.assign({},f.shapeBase,v);c.default.registerEdge("single-edge",y),c.default.registerEdge("line",{getControlPoints:function(){}},"single-edge"),c.default.registerEdge("spline",{getPath:function(t){var e=(0,s.getSpline)(t);return e}},"single-edge"),c.default.registerEdge("arc",{curveOffset:20,clockwise:1,getControlPoints:function(t){var e,n,r=t.startPoint,i=t.endPoint,o={x:(r.x+i.x)/2,y:(r.y+i.y)/2};if(void 0!==t.controlPoints){if(n=t.controlPoints[0],e=(0,a.getCircleCenterByPoints)(r,n,i),r.x<=i.x&&r.y>i.y?this.clockwise=e.x>n.x?0:1:r.x<=i.x&&r.y<i.y?this.clockwise=e.x>n.x?1:0:r.x>i.x&&r.y<=i.y?this.clockwise=e.y<n.y?0:1:this.clockwise=e.y<n.y?1:0,(n.x-r.x)/(n.y-r.y)===(i.x-r.x)/(i.y-r.y))return[]}else{void 0===t.curveOffset&&(t.curveOffset=this.curveOffset),(0,l.default)(t.curveOffset)&&(t.curveOffset=t.curveOffset[0]),t.curveOffset<0?this.clockwise=0:this.clockwise=1;var s={x:i.x-r.x,y:i.y-r.y},u=Math.atan2(s.y,s.x);n={x:t.curveOffset*Math.cos(-Math.PI/2+u)+o.x,y:t.curveOffset*Math.sin(-Math.PI/2+u)+o.y},e=(0,a.getCircleCenterByPoints)(r,n,i)}var c=(0,a.distance)(r,e),f=[{x:c,y:c}];return f},getPath:function(t){var e=[];return e.push(["M",t[0].x,t[0].y]),2===t.length?e.push(["L",t[1].x,t[1].y]):e.push(["A",t[1].x,t[1].y,0,0,this.clockwise,t[2].x,t[2].y]),e}},"single-edge"),c.default.registerEdge("quadratic",{curvePosition:.5,curveOffset:-20,getControlPoints:function(t){var e=t.controlPoints;if(!e||!e.length){var n=t.startPoint,r=t.endPoint;void 0===t.curveOffset&&(t.curveOffset=this.curveOffset),void 0===t.curvePosition&&(t.curvePosition=this.curvePosition),(0,l.default)(this.curveOffset)&&(t.curveOffset=t.curveOffset[0]),(0,l.default)(this.curvePosition)&&(t.curvePosition=t.curveOffset[0]);var i=(0,s.getControlPoint)(n,r,t.curvePosition,t.curveOffset);e=[i]}return e},getPath:function(t){var e=[];return e.push(["M",t[0].x,t[0].y]),e.push(["Q",t[1].x,t[1].y,t[2].x,t[2].y]),e}},"single-edge"),c.default.registerEdge("cubic",{curvePosition:[.5,.5],curveOffset:[-20,20],getControlPoints:function(t){var e=t.controlPoints;if(void 0===t.curveOffset&&(t.curveOffset=this.curveOffset),void 0===t.curvePosition&&(t.curvePosition=this.curvePosition),(0,h.default)(t.curveOffset)&&(t.curveOffset=[t.curveOffset,-t.curveOffset]),(0,h.default)(t.curvePosition)&&(t.curvePosition=[t.curvePosition,1-t.curvePosition]),!e||!e.length||e.length<2){var n=t.startPoint,r=t.endPoint,i=(0,s.getControlPoint)(n,r,t.curvePosition[0],t.curveOffset[0]),o=(0,s.getControlPoint)(n,r,t.curvePosition[1],t.curveOffset[1]);e=[i,o]}return e},getPath:function(t){var e=[];return e.push(["M",t[0].x,t[0].y]),e.push(["C",t[1].x,t[1].y,t[2].x,t[2].y,t[3].x,t[3].y]),e}},"single-edge"),c.default.registerEdge("cubic-vertical",{curvePosition:[.5,.5],getControlPoints:function(t){var e=t.startPoint,n=t.endPoint;void 0!==t.curvePosition&&(this.curvePosition=t.curvePosition),(0,h.default)(this.curvePosition)&&(this.curvePosition=[this.curvePosition,1-this.curvePosition]);var r={x:e.x,y:(n.y-e.y)*this.curvePosition[0]+e.y},i={x:n.x,y:(n.y-e.y)*this.curvePosition[1]+e.y},o=[r,i];return o}},"cubic"),c.default.registerEdge("cubic-horizontal",{curvePosition:[.5,.5],getControlPoints:function(t){var e=t.startPoint,n=t.endPoint;void 0!==t.curvePosition&&(this.curvePosition=t.curvePosition),(0,h.default)(this.curvePosition)&&(this.curvePosition=[this.curvePosition,1-this.curvePosition]);var r={x:(n.x-e.x)*this.curvePosition[0]+e.x,y:e.y},i={x:(n.x-e.x)*this.curvePosition[1]+e.x,y:n.y},o=[r,i];return o}},"cubic"),c.default.registerEdge("loop",{getPathPoints:function(t){return(0,o.getLoopCfgs)(t)},getControlPoints:function(t){return t.controlPoints},afterDraw:function(t){t.controlPoints=void 0},afterUpdate:function(t){t.controlPoints=void 0}},"cubic")},e9dd:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("8937"),i=n("487c"),o=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,a=function(){function t(t){this.cfg={};var e=i.createSVGElement("pattern");e.setAttribute("patternUnits","userSpaceOnUse");var n=i.createSVGElement("image");e.appendChild(n);var a=r.uniqueId("pattern_");e.id=a,this.el=e,this.id=a,this.cfg=t;var s=o.exec(t),u=s[2];n.setAttribute("href",u);var c=new Image;function f(){e.setAttribute("width",""+c.width),e.setAttribute("height",""+c.height)}return u.match(/^data:/i)||(c.crossOrigin="Anonymous"),c.src=u,c.complete?f():(c.onload=f,c.src=c.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}();e.default=a},ea58:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("842b");function i(t){return r.default(t)&&isFinite(t)}e.default=i},ea70:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={getDefaultCfg:function(){return{trigger:"mouseenter",activeState:"active",inactiveState:"inactive",resetSelected:!1,shouldUpdate:function(){return!0}}},getEvents:function(){return"mouseenter"===this.get("trigger")?{"node:mouseenter":"setAllItemStates","node:mouseleave":"clearActiveState"}:{"node:click":"setAllItemStates","canvas:click":"clearAllItemStates"}},setAllItemStates:function(t){var e=t.item,n=this.get("graph");if(this.set("item",e),this.shouldUpdate(t.item,{event:t,action:"activate"})){var r=this,i=this.get("activeState"),o=this.get("inactiveState");n.getNodes().forEach((function(t){var e=t.hasState("selected");r.resetSelected&&e&&n.setItemState(t,"selected",!1),n.setItemState(t,i,!1),o&&n.setItemState(t,o,!0)})),n.getEdges().forEach((function(t){n.setItemState(t,i,!1),o&&n.setItemState(t,o,!0)})),o&&n.setItemState(e,o,!1),n.setItemState(e,i,!0),n.getEdges().forEach((function(t){if(t.getSource()===e){var r=t.getTarget();o&&n.setItemState(r,o,!1),n.setItemState(r,i,!0),n.setItemState(t,o,!1),n.setItemState(t,i,!0),t.toFront()}else if(t.getTarget()===e){var a=t.getSource();o&&n.setItemState(a,o,!1),n.setItemState(a,i,!0),n.setItemState(t,o,!1),n.setItemState(t,i,!0),t.toFront()}})),n.emit("afteractivaterelations",{item:t.item,action:"activate"})}},clearActiveState:function(t){var e=this,n=e.get("graph");if(e.shouldUpdate(t.item,{event:t,action:"deactivate"})){var r=this.get("activeState"),i=this.get("inactiveState"),o=n.get("autoPaint");n.setAutoPaint(!1),n.getNodes().forEach((function(t){n.clearItemStates(t,[r,i])})),n.getEdges().forEach((function(t){n.clearItemStates(t,[r,i,"deactivate"])})),n.paint(),n.setAutoPaint(o),n.emit("afteractivaterelations",{item:t.item||e.get("item"),action:"deactivate"})}},clearAllItemStates:function(t){var e=this,n=e.get("graph");if(e.shouldUpdate(t.item,{event:t,action:"deactivate"})){var r=this.get("activeState"),i=this.get("inactiveState");n.getNodes().forEach((function(t){n.clearItemStates(t,[r,i])})),n.getEdges().forEach((function(t){n.clearItemStates(t,[r,i,"deactivate"])})),n.emit("afteractivaterelations",{item:t.item||e.get("item"),action:"deactivate"})}}};e.default=r},eac5:function(t,e){var n=Object.prototype;function r(t){var e=t&&t.constructor,r="function"==typeof e&&e.prototype||n;return t===r}t.exports=r},eafe:function(t,e,n){"use strict";function r(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},ec69:function(t,e,n){var r=n("6fcd"),i=n("03dd"),o=n("30c9");function a(t){return o(t)?r(t):i(t)}t.exports=a},ec8c:function(t,e){function n(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}t.exports=n},ed27:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("2047"),i=n("91de");e.default=function(t,e,n){return r.default(n)?!!n(t,e):i.default(t,e)}},eda4:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n("9ab4"),o=n("0125"),a=n("434a"),s=n("61d8");e.default=a.default((function(t,e){void 0===e&&(e={});var n=e.fontSize,i=e.fontFamily,o=e.fontWeight,a=e.fontStyle,u=e.fontVariant;return r||(r=document.createElement("canvas").getContext("2d")),r.font=[a,u,o,n+"px",i].join(" "),r.measureText(s.default(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),i.__spreadArrays([t],o.default(e)).join("")}))},edfa:function(t,e){function n(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}t.exports=n},ef5d:function(t,e){function n(t){return function(e){return null==e?void 0:e[t]}}t.exports=n},efb6:function(t,e,n){var r=n("5e2e");function i(){this.__data__=new r,this.size=0}t.exports=i},f03f:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),i=n("c3e2"),o=n("8937"),a=n("7a70"),s=n("d531"),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e.canFill=!1,e.canStroke=!0,e}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");o.each(e||n,(function(e,i){if("startArrow"===i||"endArrow"===i)if(e){var s=o.isObject(e)?t.addArrow(n,a.SVG_ATTR_MAP[i]):t.getDefaultArrow(n,a.SVG_ATTR_MAP[i]);r.setAttribute(a.SVG_ATTR_MAP[i],"url(#"+s+")")}else r.removeAttribute(a.SVG_ATTR_MAP[i]);else a.SVG_ATTR_MAP[i]&&r.setAttribute(a.SVG_ATTR_MAP[i],e)}))},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,o=t.y2;return i.default.length(e,n,r,o)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,o=e.x2,a=e.y2;return i.default.pointAt(n,r,o,a,t)},e}(s.default);e.default=u},f105:function(t,e,n){"use strict";function r(t){var e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)};return e(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},f128:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("9ab4"),i=n("56fa"),o=n("0dfa"),a=n("8937");function s(t,e,n,r){t.forEach((function(e,n){t[n].children=[],t[n].parent=[]})),r?e.forEach((function(e){var r=0;e.source&&(r=n[e.source]);var i=0;e.target&&(i=n[e.target]),t[r].children.push(t[i].id),t[i].parent.push(t[r].id)})):e.forEach((function(e){var r=0;e.source&&(r=n[e.source]);var i=0;e.target&&(i=n[e.target]),t[r].children.push(t[i].id),t[i].children.push(t[r].id)}))}function u(t,e,n){for(var r=n.length,i=0;i<r;i++)if(t.id===n[i].source&&e.id===n[i].target||e.id===n[i].source&&t.id===n[i].target)return!0;return!1}function c(t,e){return t.degree<e.degree?-1:t.degree>e.degree?1:0}var f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=[0,0],e.radius=null,e.startRadius=null,e.endRadius=null,e.startAngle=0,e.endAngle=2*Math.PI,e.clockwise=!0,e.divisions=1,e.ordering=null,e.angleRatio=1,e.nodes=[],e.edges=[],e.nodeMap={},e.degrees=[],e.width=300,e.height=300,e}return(0,r.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{center:[0,0],radius:null,startRadius:null,endRadius:null,startAngle:0,endAngle:2*Math.PI,clockwise:!0,divisions:1,ordering:null,angleRatio:1}},e.prototype.execute=function(){var t=this,e=t.nodes,n=t.edges,r=e.length,i=t.center;if(0!==r){if(1===r)return e[0].x=i[0],void(e[0].y=i[1]);var a=t.radius,s=t.startRadius,u=t.endRadius,c=t.divisions,f=t.startAngle,l=t.endAngle,h=(l-f)/r,d={};e.forEach((function(t,e){d[t.id]=e})),t.nodeMap=d;var p=(0,o.getDegree)(e.length,d,n);t.degrees=p,t.width||"undefined"===typeof window||(t.width=window.innerWidth),t.height||"undefined"===typeof window||(t.height=window.innerHeight),a||s||u?!s&&u?s=u:s&&!u&&(u=s):a=t.height>t.width?t.width/2:t.height/2;var g=t.angleRatio,v=h*g;t.astep=v;var y=t.ordering,m=[];m="topology"===y?t.topologyOrdering():"topology-directed"===y?t.topologyOrdering(!0):"degree"===y?t.degreeOrdering():e;for(var b=t.clockwise,x=Math.ceil(r/c),w=0;w<r;++w){var M=a;M||null===s||null===u||(M=s+w*(u-s)/(r-1)),M||(M=10+100*w/(r-1));var _=f+w%x*v+2*Math.PI/c*Math.floor(w/x);b||(_=l-w%x*v-2*Math.PI/c*Math.floor(w/x)),m[w].x=i[0]+Math.cos(_)*M,m[w].y=i[1]+Math.sin(_)*M,m[w].weight=p[w]}}},e.prototype.topologyOrdering=function(t){void 0===t&&(t=!1);var e=this,n=e.degrees,r=e.edges,i=e.nodes,o=(0,a.clone)(i),c=e.nodeMap,f=[o[0]],l=[i[0]],h=[],d=i.length;h[0]=!0,s(o,r,c,t);var p=0;return o.forEach((function(t,e){if(0!==e)if(e!==d-1&&n[e]===n[e+1]&&!u(f[p],t,r)||!0===h[e]){for(var a=f[p].children,s=!1,g=0;g<a.length;g++){var v=c[a[g]];if(n[v]===n[e]&&!0!==h[v]){f.push(o[v]),l.push(i[c[o[v].id]]),h[v]=!0,s=!0;break}}var y=0;while(!s)if(h[y]||(f.push(o[y]),l.push(i[c[o[y].id]]),h[y]=!0,s=!0),y++,y===d)break}else f.push(t),l.push(i[c[t.id]]),h[e]=!0,p++})),l},e.prototype.degreeOrdering=function(){var t=this,e=t.nodes,n=[],r=t.degrees;return e.forEach((function(t,e){t.degree=r[e],n.push(t)})),n.sort(c),n},e}(i.BaseLayout),l=f;e.default=l},f1a7:function(t,e,n){"use strict";var r=n("9ab4"),i=n("8937"),o=s(n("067f")),a=s(n("7da3"));function s(t){return t&&t.__esModule?t:{default:t}}a.default.registerNode("rect",{options:{size:[100,30],style:{radius:0,stroke:o.default.defaultShapeStrokeColor,fill:o.default.defaultShapeFillColor,lineWidth:o.default.defaultNode.style.lineWidth,fillOpacity:1},labelCfg:{style:{fill:"#595959",fontSize:12}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:3,lineWidth:1,fill:"#72CC4A",stroke:"#72CC4A"},anchorPoints:[[0,.5],[1,.5]]},shapeType:"rect",labelPosition:"center",drawShape:function(t,e){var n=this.getShapeStyle(t),r=e.addShape("rect",{attrs:n,className:"rect-keyShape",name:"rect-keyShape",draggable:!0});return this.drawLinkPoints(t,e),r},drawLinkPoints:function(t,e){var n=this.options.linkPoints,o=(0,i.mix)({},n,t.linkPoints),a=o.top,s=o.left,u=o.right,c=o.bottom,f=o.size,l=(0,r.__rest)(o,["top","left","right","bottom","size"]),h=this.getSize(t),d=h[0],p=h[1];s&&e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},l),{x:-d/2,y:0,r:f}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0}),u&&e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},l),{x:d/2,y:0,r:f}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0}),a&&e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},l),{x:0,y:-p/2,r:f}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0}),c&&e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)({},l),{x:0,y:p/2,r:f}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0})},getShapeStyle:function(t){var e=this.options.style,n={stroke:t.color},r=(0,i.mix)({},e,n,t.style),o=this.getSize(t),a=r.width||o[0],s=r.height||o[1],u=Object.assign({},{x:-a/2,y:-s/2,width:a,height:s},r);return u},update:function(t,e){var n=e.getContainer(),r=this.options.style,o=this.getSize(t),a=e.get("keyShape");t.size||(o[0]=a.attr("width")||r.width,o[1]=a.attr("height")||r.height);var s={stroke:t.color,x:-o[0]/2,y:-o[1]/2,width:o[0],height:o[1]},u=(0,i.mix)({},r,a.attr(),s);u=(0,i.mix)(u,t.style),this.updateShape(t,e,u,!1),this.updateLinkPoints(t,n)}},"single-node")},f1cd:function(t,e,n){var r=n("6f9c");function i(t){var e=a(t);r.forEach(t.graph().dummyChains,(function(n){var r=t.node(n),i=r.edgeObj,a=o(t,e,i.v,i.w),s=a.path,u=a.lca,c=0,f=s[c],l=!0;while(n!==i.w){if(r=t.node(n),l){while((f=s[c])!==u&&t.node(f).maxRank<r.rank)c++;f===u&&(l=!1)}if(!l){while(c<s.length-1&&t.node(f=s[c+1]).minRank<=r.rank)c++;f=s[c]}t.setParent(n,f),n=t.successors(n)[0]}}))}function o(t,e,n,r){var i,o,a=[],s=[],u=Math.min(e[n].low,e[r].low),c=Math.max(e[n].lim,e[r].lim);i=n;do{i=t.parent(i),a.push(i)}while(i&&(e[i].low>u||c>e[i].lim));o=i,i=r;while((i=t.parent(i))!==o)s.push(i);return{path:a.concat(s.reverse()),lca:o}}function a(t){var e={},n=0;function i(o){var a=n;r.forEach(t.children(o),i),e[o]={low:a,lim:n++}}return r.forEach(t.children(),i),e}t.exports=i},f352:function(t,e,n){var r=n("6f9c"),i=n("b50e");function o(t,e){var n=i.partition(t,(function(t){return r.has(t,"barycenter")})),o=n.lhs,u=r.sortBy(n.rhs,(function(t){return-t.i})),c=[],f=0,l=0,h=0;o.sort(s(!!e)),h=a(c,u,h),r.forEach(o,(function(t){h+=t.vs.length,c.push(t.vs),f+=t.barycenter*t.weight,l+=t.weight,h=a(c,u,h)}));var d={vs:r.flatten(c,!0)};return l&&(d.barycenter=f/l,d.weight=l),d}function a(t,e,n){var i;while(e.length&&(i=r.last(e)).i<=n)e.pop(),t.push(i.vs),n++;return n}function s(t){return function(e,n){return e.barycenter<n.barycenter?-1:e.barycenter>n.barycenter?1:t?n.i-e.i:e.i-n.i}}t.exports=o},f3c1:function(t,e){var n=800,r=16,i=Date.now;function o(t){var e=0,o=0;return function(){var a=i(),s=r-(a-o);if(o=a,s>0){if(++e>=n)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}t.exports=o},f4c8:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=null;function i(){if(!r){var t=document.createElement("canvas");t.width=1,t.height=1,r=t.getContext("2d")}return r}e.getOffScreenContext=i},f4d6:function(t,e,n){var r=n("ffd6"),i=1/0;function o(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}t.exports=o},f608:function(t,e,n){var r=n("6747"),i=n("ffd6"),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function s(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||(a.test(t)||!o.test(t)||null!=e&&t in Object(e))}t.exports=s},f694:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("8937"),i=s(n("7da3")),o=n("c0b3"),a=n("0dfa");function s(t){return t&&t.__esModule?t:{default:t}}var u="bboxCache",c="bboxCanvasCache",f=["fillStyle","strokeStyle","path","points","img","symbol"],l=function(){function t(t){this._cfg={},this.destroyed=!1;var e={id:void 0,type:"item",model:{},group:void 0,animate:!1,visible:!0,locked:!1,event:!0,keyShape:void 0,states:[]};this._cfg=Object.assign(e,this.getDefaultCfg(),t);var n=this.get("model").id;n||(n=(0,r.uniqueId)(this.get("type")),this.get("model").id=n),this.set("id",n);var i=t.group;i&&(i.set("item",this),i.set("id",n)),this.init(),this.draw()}return t.prototype.calculateBBox=function(){var t=this.get("keyShape"),e=this.get("group"),n=(0,o.getBBox)(t,e);return n.x=n.minX,n.y=n.minY,n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n.centerX=(n.minX+n.maxX)/2,n.centerY=(n.minY+n.maxY)/2,n},t.prototype.calculateCanvasBBox=function(){var t=this.get("keyShape"),e=this.get("group"),n=(0,o.getBBox)(t,e);return n.x=n.minX,n.y=n.minY,n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n.centerX=(n.minX+n.maxX)/2,n.centerY=(n.minY+n.maxY)/2,n},t.prototype.drawInner=function(){var t=this,e=t.get("shapeFactory"),n=t.get("group"),r=t.get("model");if(n.clear(),e){t.updatePosition(r);var i=t.getShapeCfg(r),o=i.shape||i.type,a=e.draw(o,i,n);a&&(t.set("keyShape",a),a.set("isKeyShape",!0),a.set("draggable",!0)),this.setOriginStyle(),this.set("currentShape",o),this.restoreStates(e,o)}},t.prototype.setOriginStyle=function(t){var e={},n=this.get("group"),i=n.get("children"),o=this.getKeyShape(),a=this;(0,r.each)(i,(function(t){var n=t.get("name");if(n)e[n]=a.getShapeStyleByName(n);else{var r=o.get("name"),i=a.getShapeStyleByName();r?e[r]=i:Object.assign(e,i)}}));var s=this.getOriginStyle(),u={};u=t?(0,r.deepMix)({},s,e,t.style,{labelCfg:t.labelCfg}):(0,r.deepMix)({},s,e),a.set("originStyle",u)},t.prototype.restoreStates=function(t,e){var n=this,i=n.get("states");(0,r.each)(i,(function(r){t.setState(e,r,!0,n)}))},t.prototype.init=function(){var t=i.default.getFactory(this.get("type"));this.set("shapeFactory",t)},t.prototype.get=function(t){return this._cfg[t]},t.prototype.set=function(t,e){(0,r.isPlainObject)(t)?this._cfg=Object.assign({},this._cfg,t):this._cfg[t]=e},t.prototype.getDefaultCfg=function(){return{}},t.prototype.clearCache=function(){this.set(u,null),this.set(c,null)},t.prototype.beforeDraw=function(){},t.prototype.afterDraw=function(){},t.prototype.afterUpdate=function(){},t.prototype.draw=function(){this.beforeDraw(),this.drawInner(),this.afterDraw()},t.prototype.getShapeStyleByName=function(t){var e=this,n=this.get("group"),i=this.getKeyShape();if(t&&(i=n.find((function(e){return e.get("name")===t}))),i){var o={},a=this.get("states");return a.map((function(t){var n=e.getStateStyle(t);for(var i in n)if((0,r.isPlainObject)(n[i])){var o=n[i];for(var a in o)f.includes(a)||f.push(a)}else f.includes(i)||f.push(i)})),(0,r.each)(i.attr(),(function(t,e){f.indexOf(e)<0&&(o[e]=t)})),o}return{}},t.prototype.getShapeCfg=function(t){var e=this.get("styles");if(e){var n=t;return n.style=Object.assign({},e,t.style),n}return t},t.prototype.getStateStyle=function(t){var e=this.get("styles"),n=e&&e[t];return n},t.prototype.getOriginStyle=function(){return this.get("originStyle")},t.prototype.getCurrentStatesStyle=function(){var t=this,e={};return(0,r.each)(t.getStates(),(function(n){Object.assign(e,t.getStateStyle(n))})),e},t.prototype.setState=function(t,e){var n=this.get("states"),i=this.get("shapeFactory"),o=t,a=t;(0,r.isString)(e)&&(o=t+":"+e,a=t+":");var s=n;if((0,r.isBoolean)(e)){var u=n.indexOf(a);if(e){if(u>-1)return;n.push(o)}else u>-1&&n.splice(u,1)}else if((0,r.isString)(e)){var c=n.filter((function(t){return t.includes(a)}));c.length>0&&this.clearStates(c),s=s.filter((function(t){return!t.includes(a)})),s.push(o),this.set("states",s)}if(i){var f=this.get("model"),l=f.shape||f.type;i.setState(l,t,e,this)}},t.prototype.clearStates=function(t){var e=this,n=e.getStates(),i=e.get("shapeFactory"),o=e.get("model"),a=o.shape||o.type;t||(t=n),(0,r.isString)(t)&&(t=[t]);var s=n.filter((function(e){return-1===t.indexOf(e)}));e.set("states",s),t.forEach((function(t){i.setState(a,t,!1,e)}))},t.prototype.getContainer=function(){return this.get("group")},t.prototype.getKeyShape=function(){return this.get("keyShape")},t.prototype.getModel=function(){return this.get("model")},t.prototype.getType=function(){return this.get("type")},t.prototype.getID=function(){return this.get("id")},t.prototype.isItem=function(){return!0},t.prototype.getStates=function(){return this.get("states")},t.prototype.hasState=function(t){var e=this.getStates();return e.indexOf(t)>=0},t.prototype.refresh=function(){var t=this.get("model");this.updatePosition(t),this.updateShape(),this.afterUpdate(),this.clearCache()},t.prototype.isOnlyMove=function(t){return!1},t.prototype.update=function(t){var e=this.get("model"),n={x:e.x,y:e.y};t.x=isNaN(t.x)?e.x:t.x,t.y=isNaN(t.y)?e.y:t.y;var i=this.get("styles");if(t.stateStyles){var o=t.stateStyles;(0,r.mix)(i,o),delete t.stateStyles}Object.assign(e,t);var a=this.isOnlyMove(t);a?this.updatePosition(t):(n.x===t.x&&n.y===t.y||this.updatePosition(t),this.updateShape()),this.afterUpdate(),this.clearCache()},t.prototype.updateShape=function(){var t=this.get("shapeFactory"),e=this.get("model"),n=e.shape||e.type;if(t.shouldUpdate(n)&&n===this.get("currentShape")){var r=this.getShapeCfg(e);t.baseUpdate(n,r,this)}else this.draw();this.setOriginStyle(e),this.restoreStates(t,n)},t.prototype.updatePosition=function(t){var e=this.get("model"),n=(0,r.isNil)(t.x)?e.x:t.x,i=(0,r.isNil)(t.y)?e.y:t.y,o=this.get("group");(0,r.isNil)(n)||(0,r.isNil)(i)||(o.resetMatrix(),(0,a.translate)(o,{x:n,y:i}),e.x=n,e.y=i,this.clearCache())},t.prototype.getBBox=function(){var t=this.get(u);return t||(t=this.calculateBBox(),this.set(u,t)),t},t.prototype.getCanvasBBox=function(){var t=this.get(c);return t||(t=this.calculateCanvasBBox(),this.set(c,t)),t},t.prototype.toFront=function(){var t=this.get("group");t.toFront()},t.prototype.toBack=function(){var t=this.get("group");t.toBack()},t.prototype.show=function(){this.changeVisibility(!0)},t.prototype.hide=function(){this.changeVisibility(!1)},t.prototype.changeVisibility=function(t){var e=this.get("group");t?e.show():e.hide(),this.set("visible",t)},t.prototype.isVisible=function(){return this.get("visible")},t.prototype.enableCapture=function(t){var e=this.get("group");e&&e.set("capture",t)},t.prototype.destroy=function(){if(!this.destroyed){var t=this.get("animate"),e=this.get("group");t&&e.stopAnimate(),this.clearCache(),e.remove(),this._cfg=null,this.destroyed=!0}},t}(),h=l;e.default=h},f8af:function(t,e,n){var r=n("2474");function i(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}t.exports=i},f8c9:function(t,e,n){var r=n("23e7"),i=n("da84"),o=n("d44e");r({global:!0},{Reflect:{}}),o(i.Reflect,"Reflect",!0)},f909:function(t,e,n){var r=n("7e64"),i=n("b760"),o=n("72af"),a=n("4f50"),s=n("1a8c"),u=n("9934"),c=n("8adb");function f(t,e,n,l,h){t!==e&&o(e,(function(o,u){if(h||(h=new r),s(o))a(t,e,u,n,f,l,h);else{var d=l?l(c(t,u),o,u+"",t,e,h):void 0;void 0===d&&(d=o),i(t,u,d)}}),u)}t.exports=f},f9ce:function(t,e,n){var r=n("ef5d"),i=n("e3f8"),o=n("f608"),a=n("f4d6");function s(t){return o(t)?r(a(t)):i(t)}t.exports=s},f9d8:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e,n){return t<e?e:t>n?n:t};e.default=r},fa21:function(t,e,n){var r=n("7530"),i=n("2dcb"),o=n("eac5");function a(t){return"function"!=typeof t.constructor||o(t)?{}:r(i(t))}t.exports=a},fa89:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("01f9"),i=function(t,e){if(void 0===e&&(e=[]),r.default(t))for(var n=0;n<t.length;n+=1)i(t[n],e);else e.push(t);return e};e.default=i},fb40:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("01f9"),i=n("61d8"),o=n("2047");function a(t,e){var n;if(o.default(e))n=function(t,n){return e(t)-e(n)};else{var a=[];i.default(e)?a.push(e):r.default(e)&&(a=e),n=function(t,e){for(var n=0;n<a.length;n+=1){var r=a[n];if(t[r]>e[r])return 1;if(t[r]<e[r])return-1}return 0}}return t.sort(n),t}e.default=a},fb7d:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("9ab4"),i=u(n("0519")),o=n("6b6a"),a=n("c0b3"),s=u(n("6ff6"));function u(t){return t&&t.__esModule?t:{default:t}}var c=function(t){function e(e){var n=t.call(this,e)||this;return n.layoutAnimating=!1,n.set("removeList",[]),n.set("layoutMethod",n.getLayout()),n}return(0,r.__extends)(e,t),e.prototype.getLayout=function(){var t=this.get("layout");return t?"function"===typeof t?t:(t.type||(t.type="dendrogram"),t.direction||(t.direction="TB"),t.radial?function(e){var n=i.default[t.type](e,t);return(0,a.radialLayout)(n),n}:function(e){return i.default[t.type](e,t)}):null},e.indexOfChild=function(t,e){var n=-1;return(0,o.each)(t,(function(t,r){if(e===t.id)return n=r,!1})),n},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.animate=!0,e},e.prototype.innerAddChild=function(t,e,n){var r=this,i=t.data;i&&(i.x=t.x,i.y=t.y,i.depth=t.depth);var a=r.addItem("node",i);if(e){if(a.set("parent",e),n){var s=e.get("originAttrs");if(s)a.set("originAttrs",s);else{var u=e.getModel();a.set("originAttrs",{x:u.x,y:u.y})}}var c=e.get("children");c?c.push(a):e.set("children",[a]),r.addItem("edge",{source:e,target:a,id:e.get("id")+":"+a.get("id")})}return(0,o.each)(t.children||[],(function(t){r.innerAddChild(t,a,n)})),r.emit("afteraddchild",{item:a,parent:e}),a},e.prototype.innerUpdateChild=function(t,n,r){var i=this,a=i.findById(t.id);if(a){(0,o.each)(t.children||[],(function(t){i.innerUpdateChild(t,a,r)}));var s,u,c=a.get("children");if(c){var f=c.length;if(f>0)for(var l=c.length-1;l>=0;l--){var h=c[l].getModel();-1===e.indexOfChild(t.children||[],h.id)&&(i.innerRemoveChild(h.id,{x:t.x,y:t.y},r),c.splice(l,1))}}a.get("originAttrs")&&(s=a.get("originAttrs").x,u=a.get("originAttrs").y);var d=a.getModel();r&&a.set("originAttrs",{x:d.x,y:d.y}),a.set("model",t.data),s===t.x&&u===t.y||a.updatePosition({x:t.x,y:t.y})}else i.innerAddChild(t,n,r)},e.prototype.innerRemoveChild=function(t,e,n){var r=this,i=r.findById(t);if(i)if((0,o.each)(i.get("children"),(function(t){r.innerRemoveChild(t.getModel().id,e,n)})),n){var a=i.getModel();i.set("to",e),i.set("originAttrs",{x:a.x,y:a.y}),r.get("removeList").push(i)}else r.removeItem(i)},e.prototype.changeData=function(t){var e=this;t?(e.data(t),e.render()):e.layout(this.get("fitView"))},e.prototype.changeLayout=function(t){console.warn("Please call updateLayout instead of changeLayout. changeLayout will be discarded soon");var e=this;e.updateLayout(t)},e.prototype.updateLayout=function(t){var e=this;t?(e.set("layout",t),e.set("layoutMethod",e.getLayout()),e.layout()):console.warn("layout cannot be null")},e.prototype.refreshLayout=function(t){console.warn("Please call layout instead of refreshLayout. refreshLayout will be discarded soon");var e=this;e.layout(t)},e.prototype.layout=function(t){var e=this,n=e.get("data"),r=e.get("layoutMethod"),i=r(n,e.get("layout")),o=e.get("animate");if(e.emit("beforerefreshlayout",{data:n,layoutData:i}),e.emit("beforelayout"),e.innerUpdateChild(i,void 0,o),t){var a=e.get("viewController");a.fitView()}o?e.layoutAnimate(i):(e.refresh(),e.paint()),e.emit("afterrefreshlayout",{data:n,layoutData:i}),e.emit("afterlayout")},e.prototype.addChild=function(t,e){var n=this;n.emit("beforeaddchild",{model:t,parent:e}),(0,o.isString)(e)||(e=e.get("id"));var r=n.findDataById(e);r&&(r.children||(r.children=[]),r.children.push(t),n.changeData())},e.prototype.updateChild=function(t,n){var r=this;if(n&&r.findById(n)){var i=r.findById(n).getModel(),o=r.findById(t.id);if(i.children||(i.children=[]),o){var a=e.indexOfChild(i.children,t.id);i.children[a]=t}else i.children.push(t);r.changeData()}else r.changeData(t)},e.prototype.removeChild=function(t){var n=this,r=n.findById(t);if(r){var i=r.get("parent");if(i&&!i.destroyed){var o=n.findDataById(i.get("id")),a=o&&o.children||[],s=r.getModel(),u=e.indexOfChild(a,s.id);a.splice(u,1)}n.changeData()}},e.prototype.findDataById=function(t,e){var n=this;if(e||(e=n.get("data")),t===e.id)return e;var r=null;return(0,o.each)(e.children||[],(function(e){return e.id===t?(r=e,!1):(r=n.findDataById(t,e),!r&&void 0)})),r},e.prototype.layoutAnimate=function(t,e){var n=this,r=this.get("animateCfg");n.emit("beforeanimate",{data:t}),n.getEdges().forEach((function(t){var e=t.get("model");e.sourceAnchor||(e.sourceAnchor=t.get("sourceAnchorIndex"))})),this.get("canvas").animate((function(r){(0,a.traverseTree)(t,(function(i){var o=n.findById(i.id);if(o){var a=o.get("originAttrs"),s=o.get("model");if(a||(a={x:s.x,y:s.y},o.set("originAttrs",a)),e){var u=e(o,r,a,t);o.set("model",Object.assign(s,u))}else s.x=a.x+(i.x-a.x)*r,s.y=a.y+(i.y-a.y)*r}return!0})),(0,o.each)(n.get("removeList"),(function(t){var e=t.getModel(),n=t.get("originAttrs"),i=t.get("to");e.x=n.x+(i.x-n.x)*r,e.y=n.y+(i.y-n.y)*r})),n.refreshPositions()}),{duration:r.duration,easing:r.ease,callback:function(){(0,o.each)(n.getNodes(),(function(t){t.set("originAttrs",null)})),(0,o.each)(n.get("removeList"),(function(t){n.removeItem(t)})),n.set("removeList",[]),r.callback&&r.callback(),n.emit("afteranimate",{data:t})},delay:r.delay})},e.prototype.stopLayoutAnimate=function(){this.get("canvas").stopAnimate(),this.emit("layoutanimateend",{data:this.get("data")}),this.layoutAnimating=!1},e.prototype.isLayoutAnimating=function(){return this.layoutAnimating},e.prototype.render=function(){var t=this,e=t.get("data");if(!e)throw new Error("data must be defined first");t.clear(),t.emit("beforerender"),t.layout(this.get("fitView")),t.emit("afterrender")},e.prototype.save=function(){return this.get("data")},e}(s.default),f=c;e.default=f},fb98:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Array.prototype,i=r.splice,o=r.indexOf,a=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r++){var a=e[r],s=-1;while((s=o.call(t,a))>-1)i.call(t,s,1)}return t};e.default=a},fba5:function(t,e,n){var r=n("cb5a");function i(t){return r(this.__data__,t)>-1}t.exports=i},fc63:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),i=n("8937"),o=n("7a70"),a=n("d531"),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.canFill=!0,e.canStroke=!0,e}return r.__extends(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");i.each(e||n,(function(t,e){"points"===e&&i.isArray(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):o.SVG_ATTR_MAP[e]&&r.setAttribute(o.SVG_ATTR_MAP[e],t)}))},e}(a.default);e.default=s},fed9:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("5b8d");function i(t){if(r.default(t)){var e=t;return e[e.length-1]}}e.default=i},ff69:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),i=n("9705"),o=n("3dfb"),a=n("83e4"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var s=this.attr().points,u=!1;return n&&(u=o.default(s,i,t,e,!0)),!u&&r&&(u=a.default(s,t,e)),u},e.prototype.createPath=function(t){var e=this.attr(),n=e.points;if(!(n.length<2)){t.beginPath();for(var r=0;r<n.length;r++){var i=n[r];0===r?t.moveTo(i[0],i[1]):t.lineTo(i[0],i[1])}t.closePath()}},e}(i.default);e.default=s},ffd6:function(t,e,n){var r=n("3729"),i=n("1310"),o="[object Symbol]";function a(t){return"symbol"==typeof t||i(t)&&r(t)==o}t.exports=a}}]);
|