@logicflow/extension 0.7.8 → 0.7.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/cjs/NodeResize/Control/ControlGroup.js +3 -1
- package/cjs/NodeResize/Node/DiamondResize.js +1 -0
- package/cjs/NodeResize/Node/EllipseResize.js +1 -0
- package/cjs/NodeResize/Node/RectResize.js +1 -0
- package/cjs/NodeResize/index.js +0 -15
- package/cjs/components/context-menu/index.js +4 -8
- package/cjs/style/index.css +6 -0
- package/es/NodeResize/Control/ControlGroup.js +3 -1
- package/es/NodeResize/Node/DiamondResize.js +1 -0
- package/es/NodeResize/Node/EllipseResize.js +1 -0
- package/es/NodeResize/Node/RectResize.js +1 -0
- package/es/NodeResize/index.js +0 -15
- package/es/components/context-menu/index.js +4 -8
- package/es/style/index.css +6 -0
- package/lib/ContextMenu.js +1 -1
- package/lib/NodeResize.js +1 -1
- package/lib/style/index.css +6 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,23 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.7.9](https://github.com/didi/LogicFlow/compare/@logicflow/extension@0.7.8...@logicflow/extension@0.7.9) (2021-11-23)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* context menu edge icon position ([f06ead4](https://github.com/didi/LogicFlow/commit/f06ead4e687498550012e654765430d1fa1f48a2))
|
|
12
|
+
* nodeResize outline bugfix ([8e76f5f](https://github.com/didi/LogicFlow/commit/8e76f5f8e79a18189f48339b85904b06d29cfda2))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* context-menu use className ([e58eaea](https://github.com/didi/LogicFlow/commit/e58eaea67aaf7c8f420aed849a4f77b753a1bc6c))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
6
23
|
## [0.7.8](https://github.com/didi/LogicFlow/compare/@logicflow/extension@0.7.7...@logicflow/extension@0.7.8) (2021-11-22)
|
|
7
24
|
|
|
8
25
|
|
|
@@ -71,7 +71,9 @@ var ControlGroup = /** @class */ (function (_super) {
|
|
|
71
71
|
return (preact_1.h(Rect_1.default, { fill: "none", x: x, y: y, width: width, height: height, stroke: stroke, strokeWidth: strokeWidth, strokeDasharray: strokeDasharray }));
|
|
72
72
|
};
|
|
73
73
|
ControlGroup.prototype.render = function () {
|
|
74
|
-
return (preact_1.h("g", { className: "lf-resize-control" },
|
|
74
|
+
return (preact_1.h("g", { className: "lf-resize-control" },
|
|
75
|
+
this.getGroupSolid(),
|
|
76
|
+
this.getResizeControl()));
|
|
75
77
|
};
|
|
76
78
|
return ControlGroup;
|
|
77
79
|
}(preact_1.Component));
|
|
@@ -33,6 +33,7 @@ var DiamondResizeModel = /** @class */ (function (_super) {
|
|
|
33
33
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
34
34
|
}
|
|
35
35
|
DiamondResizeModel.prototype.setAttributes = function () {
|
|
36
|
+
this.hideOutline = true;
|
|
36
37
|
// @ts-ignore
|
|
37
38
|
var nodeSize = this.properties.nodeSize;
|
|
38
39
|
if (nodeSize) {
|
package/cjs/NodeResize/index.js
CHANGED
|
@@ -47,21 +47,6 @@ var NodeResize = {
|
|
|
47
47
|
},
|
|
48
48
|
},
|
|
49
49
|
install: function (lf) {
|
|
50
|
-
// 设置默认样式,主要将outlineColor设置为透明,不再core包中默认的节点外框
|
|
51
|
-
lf.setTheme({
|
|
52
|
-
rect: {
|
|
53
|
-
strokeWidth: 2,
|
|
54
|
-
outlineColor: 'transparent',
|
|
55
|
-
},
|
|
56
|
-
ellipse: {
|
|
57
|
-
strokeWidth: 2,
|
|
58
|
-
outlineColor: 'transparent',
|
|
59
|
-
},
|
|
60
|
-
diamond: {
|
|
61
|
-
strokeWidth: 2,
|
|
62
|
-
outlineColor: 'transparent',
|
|
63
|
-
},
|
|
64
|
-
});
|
|
65
50
|
lf.register({
|
|
66
51
|
type: RectResize_1.default.type,
|
|
67
52
|
view: RectResize_1.default.view,
|
|
@@ -73,7 +73,6 @@ var ContextMenu = /** @class */ (function () {
|
|
|
73
73
|
* 获取新菜单位置
|
|
74
74
|
*/
|
|
75
75
|
ContextMenu.prototype.getContextMenuPosition = function () {
|
|
76
|
-
var _a;
|
|
77
76
|
var data = this._activeData;
|
|
78
77
|
var Model = this.lf.graphModel.getElement(data.id);
|
|
79
78
|
if (!Model) {
|
|
@@ -98,11 +97,10 @@ var ContextMenu = /** @class */ (function () {
|
|
|
98
97
|
}
|
|
99
98
|
}
|
|
100
99
|
if (Model.BaseType === 'node') {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
_a = __read(this.lf.graphModel.transformMatrix.CanvasPointToHtmlPoint([x1, y1]), 2), x = _a[0], y = _a[1];
|
|
100
|
+
x = data.x + Model.width / 2;
|
|
101
|
+
y = data.y - Model.height / 2;
|
|
104
102
|
}
|
|
105
|
-
return [x, y];
|
|
103
|
+
return this.lf.graphModel.transformMatrix.CanvasPointToHtmlPoint([x, y]);
|
|
106
104
|
};
|
|
107
105
|
ContextMenu.prototype.createContextMenu = function () {
|
|
108
106
|
var _this = this;
|
|
@@ -119,9 +117,7 @@ var ContextMenu = /** @class */ (function () {
|
|
|
119
117
|
menuItem.className = 'lf-context-item';
|
|
120
118
|
var img = document.createElement('img');
|
|
121
119
|
img.src = item.icon;
|
|
122
|
-
img.
|
|
123
|
-
img.style.height = '20px';
|
|
124
|
-
img.style.cursor = 'pointer';
|
|
120
|
+
img.className = 'lf-context-img';
|
|
125
121
|
img.addEventListener('click', function () {
|
|
126
122
|
_this.hideMenu();
|
|
127
123
|
if (item.callback) {
|
package/cjs/style/index.css
CHANGED
|
@@ -191,7 +191,13 @@
|
|
|
191
191
|
width: 20px;
|
|
192
192
|
height: 20px;
|
|
193
193
|
margin: 0 2px 2px 0;
|
|
194
|
+
box-sizing: content-box;
|
|
194
195
|
}
|
|
195
196
|
.lf-context-item:hover {
|
|
196
197
|
background: rgba(201, 217, 216, 0.5);
|
|
198
|
+
}
|
|
199
|
+
.lf-context-img {
|
|
200
|
+
width: 20px;
|
|
201
|
+
height: 20px;
|
|
202
|
+
cursor: pointer;
|
|
197
203
|
}
|
|
@@ -69,7 +69,9 @@ var ControlGroup = /** @class */ (function (_super) {
|
|
|
69
69
|
return (h(Rect, { fill: "none", x: x, y: y, width: width, height: height, stroke: stroke, strokeWidth: strokeWidth, strokeDasharray: strokeDasharray }));
|
|
70
70
|
};
|
|
71
71
|
ControlGroup.prototype.render = function () {
|
|
72
|
-
return (h("g", { className: "lf-resize-control" },
|
|
72
|
+
return (h("g", { className: "lf-resize-control" },
|
|
73
|
+
this.getGroupSolid(),
|
|
74
|
+
this.getResizeControl()));
|
|
73
75
|
};
|
|
74
76
|
return ControlGroup;
|
|
75
77
|
}(Component));
|
|
@@ -31,6 +31,7 @@ var DiamondResizeModel = /** @class */ (function (_super) {
|
|
|
31
31
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
32
32
|
}
|
|
33
33
|
DiamondResizeModel.prototype.setAttributes = function () {
|
|
34
|
+
this.hideOutline = true;
|
|
34
35
|
// @ts-ignore
|
|
35
36
|
var nodeSize = this.properties.nodeSize;
|
|
36
37
|
if (nodeSize) {
|
package/es/NodeResize/index.js
CHANGED
|
@@ -41,21 +41,6 @@ var NodeResize = {
|
|
|
41
41
|
},
|
|
42
42
|
},
|
|
43
43
|
install: function (lf) {
|
|
44
|
-
// 设置默认样式,主要将outlineColor设置为透明,不再core包中默认的节点外框
|
|
45
|
-
lf.setTheme({
|
|
46
|
-
rect: {
|
|
47
|
-
strokeWidth: 2,
|
|
48
|
-
outlineColor: 'transparent',
|
|
49
|
-
},
|
|
50
|
-
ellipse: {
|
|
51
|
-
strokeWidth: 2,
|
|
52
|
-
outlineColor: 'transparent',
|
|
53
|
-
},
|
|
54
|
-
diamond: {
|
|
55
|
-
strokeWidth: 2,
|
|
56
|
-
outlineColor: 'transparent',
|
|
57
|
-
},
|
|
58
|
-
});
|
|
59
44
|
lf.register({
|
|
60
45
|
type: RectResize.type,
|
|
61
46
|
view: RectResize.view,
|
|
@@ -70,7 +70,6 @@ var ContextMenu = /** @class */ (function () {
|
|
|
70
70
|
* 获取新菜单位置
|
|
71
71
|
*/
|
|
72
72
|
ContextMenu.prototype.getContextMenuPosition = function () {
|
|
73
|
-
var _a;
|
|
74
73
|
var data = this._activeData;
|
|
75
74
|
var Model = this.lf.graphModel.getElement(data.id);
|
|
76
75
|
if (!Model) {
|
|
@@ -95,11 +94,10 @@ var ContextMenu = /** @class */ (function () {
|
|
|
95
94
|
}
|
|
96
95
|
}
|
|
97
96
|
if (Model.BaseType === 'node') {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
_a = __read(this.lf.graphModel.transformMatrix.CanvasPointToHtmlPoint([x1, y1]), 2), x = _a[0], y = _a[1];
|
|
97
|
+
x = data.x + Model.width / 2;
|
|
98
|
+
y = data.y - Model.height / 2;
|
|
101
99
|
}
|
|
102
|
-
return [x, y];
|
|
100
|
+
return this.lf.graphModel.transformMatrix.CanvasPointToHtmlPoint([x, y]);
|
|
103
101
|
};
|
|
104
102
|
ContextMenu.prototype.createContextMenu = function () {
|
|
105
103
|
var _this = this;
|
|
@@ -116,9 +114,7 @@ var ContextMenu = /** @class */ (function () {
|
|
|
116
114
|
menuItem.className = 'lf-context-item';
|
|
117
115
|
var img = document.createElement('img');
|
|
118
116
|
img.src = item.icon;
|
|
119
|
-
img.
|
|
120
|
-
img.style.height = '20px';
|
|
121
|
-
img.style.cursor = 'pointer';
|
|
117
|
+
img.className = 'lf-context-img';
|
|
122
118
|
img.addEventListener('click', function () {
|
|
123
119
|
_this.hideMenu();
|
|
124
120
|
if (item.callback) {
|
package/es/style/index.css
CHANGED
|
@@ -191,7 +191,13 @@
|
|
|
191
191
|
width: 20px;
|
|
192
192
|
height: 20px;
|
|
193
193
|
margin: 0 2px 2px 0;
|
|
194
|
+
box-sizing: content-box;
|
|
194
195
|
}
|
|
195
196
|
.lf-context-item:hover {
|
|
196
197
|
background: rgba(201, 217, 216, 0.5);
|
|
198
|
+
}
|
|
199
|
+
.lf-context-img {
|
|
200
|
+
width: 20px;
|
|
201
|
+
height: 20px;
|
|
202
|
+
cursor: pointer;
|
|
197
203
|
}
|
package/lib/ContextMenu.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return 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=182)}([function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n(83))},function(t,e,n){var r=n(0),o=n(35),i=n(5),u=n(29),c=n(36),a=n(47),f=o("wks"),s=r.Symbol,l=a?s:s&&s.withoutSetter||u;t.exports=function(t){return i(f,t)&&(c||"string"==typeof f[t])||(c&&i(s,t)?f[t]=s[t]:f[t]=l("Symbol."+t)),f[t]}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(0),o=n(18).f,i=n(9),u=n(13),c=n(33),a=n(57),f=n(58);t.exports=function(t,e){var n,s,l,p,v,y=t.target,h=t.global,d=t.stat;if(n=h?r:d?r[y]||c(y,{}):(r[y]||{}).prototype)for(s in e){if(p=e[s],l=t.noTargetGet?(v=o(n,s))&&v.value:n[s],!f(h?s:y+(d?".":"#")+s,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;a(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),u(n,s,p,t)}}},function(t,e,n){var r=n(11),o={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,e){return o.call(r(t),e)}},function(t,e,n){var r=n(7),o=n(48),i=n(8),u=n(21),c=Object.defineProperty;e.f=r?c:function(t,e,n){if(i(t),e=u(e),i(n),o)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(2);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,n){var r=n(3);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e,n){var r=n(7),o=n(6),i=n(15);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(41),o=n(27);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(27);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(0),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t]):r[t]&&r[t][e]}},function(t,e,n){var r=n(0),o=n(9),i=n(5),u=n(33),c=n(44),a=n(17),f=a.get,s=a.enforce,l=String(String).split("String");(t.exports=function(t,e,n,c){var a,f=!!c&&!!c.unsafe,p=!!c&&!!c.enumerable,v=!!c&&!!c.noTargetGet;"function"==typeof n&&("string"!=typeof e||i(n,"name")||o(n,"name",e),(a=s(n)).source||(a.source=l.join("string"==typeof e?e:""))),t!==r?(f?!v&&t[e]&&(p=!0):delete t[e],p?t[e]=n:o(t,e,n)):p?t[e]=n:u(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&f(this).source||c(this)}))},function(t,e,n){var r=n(34),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports={}},function(t,e,n){var r,o,i,u=n(85),c=n(0),a=n(3),f=n(9),s=n(5),l=n(32),p=n(26),v=n(16),y=c.WeakMap;if(u||l.state){var h=l.state||(l.state=new y),d=h.get,g=h.has,m=h.set;r=function(t,e){if(g.call(h,t))throw new TypeError("Object already initialized");return e.facade=t,m.call(h,t,e),e},o=function(t){return d.call(h,t)||{}},i=function(t){return g.call(h,t)}}else{var x=p("state");v[x]=!0,r=function(t,e){if(s(t,x))throw new TypeError("Object already initialized");return e.facade=t,f(t,x,e),e},o=function(t){return s(t,x)?t[x]:{}},i=function(t){return s(t,x)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!a(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){var r=n(7),o=n(50),i=n(15),u=n(10),c=n(21),a=n(5),f=n(48),s=Object.getOwnPropertyDescriptor;e.f=r?s:function(t,e){if(t=u(t),e=c(e),f)try{return s(t,e)}catch(t){}if(a(t,e))return i(!o.f.call(t,e),t[e])}},function(t,e,n){var r=n(12),o=n(47);t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return"function"==typeof e&&Object(t)instanceof e}},function(t,e,n){var r,o=n(8),i=n(82),u=n(37),c=n(16),a=n(92),f=n(51),s=n(26),l=s("IE_PROTO"),p=function(){},v=function(t){return"<script>"+t+"<\/script>"},y=function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e},h=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e;h="undefined"!=typeof document?document.domain&&r?y(r):((e=f("iframe")).style.display="none",a.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):y(r);for(var n=u.length;n--;)delete h.prototype[u[n]];return h()};c[l]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(p.prototype=o(t),n=new p,p.prototype=null,n[l]=t):n=h(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(76),o=n(19);t.exports=function(t){var e=r(t,"string");return o(e)?e:String(e)}},function(t,e){t.exports={}},,function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=!1},function(t,e,n){var r=n(35),o=n(29),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(24);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},function(t,e,n){var r=n(53),o=n(37).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(19);t.exports=function(t){if(r(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)}},function(t,e,n){var r=n(0),o=n(33),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,e,n){var r=n(0);t.exports=function(t,e){try{Object.defineProperty(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(25),o=n(32);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.17.2",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(38),o=n(2);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,n){var r,o,i=n(0),u=n(66),c=i.process,a=i.Deno,f=c&&c.versions||a&&a.version,s=f&&f.v8;s?o=(r=s.split("."))[0]<4?1:r[0]+r[1]:u&&(!(r=u.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=u.match(/Chrome\/(\d+)/))&&(o=r[1]),t.exports=o&&+o},function(t,e,n){var r=n(6).f,o=n(5),i=n(1)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(45);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(2),o=n(24),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},function(t,e,n){var r=n(40),o=n(41),i=n(11),u=n(14),c=n(59),a=[].push,f=function(t){var e=1==t,n=2==t,f=3==t,s=4==t,l=6==t,p=7==t,v=5==t||l;return function(y,h,d,g){for(var m,x,b=i(y),S=o(b),w=r(h,d,3),O=u(S.length),E=0,M=g||c,_=e?M(y,O):n||p?M(y,0):void 0;O>E;E++)if((v||E in S)&&(x=w(m=S[E],E,b),t))if(e)_[E]=x;else if(x)switch(t){case 3:return!0;case 5:return m;case 6:return E;case 2:a.call(_,m)}else switch(t){case 4:return!1;case 7:a.call(_,m)}return l?-1:f||s?s:_}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},function(t,e,n){var r={};r[n(1)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,e,n){var r=n(32),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e,n){var r=n(53),o=n(37);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(36);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){var r=n(7),o=n(2),i=n(51);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){"use strict";var r=n(10),o=n(91),i=n(22),u=n(17),c=n(56),a=u.set,f=u.getterFor("Array Iterator");t.exports=c(Array,"Array",(function(t,e){a(this,{type:"Array Iterator",target:r(t),index:0,kind:e})}),(function(){var t=f(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},function(t,e,n){var r=n(0),o=n(3),i=r.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},function(t,e,n){var r=n(5),o=n(11),i=n(26),u=n(87),c=i("IE_PROTO"),a=Object.prototype;t.exports=u?Object.getPrototypeOf:function(t){return t=o(t),r(t,c)?t[c]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(5),o=n(10),i=n(72).indexOf,u=n(16);t.exports=function(t,e){var n,c=o(t),a=0,f=[];for(n in c)!r(u,n)&&r(c,n)&&f.push(n);for(;e.length>a;)r(c,n=e[a++])&&(~i(f,n)||f.push(n));return f}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){"use strict";var r=n(21),o=n(6),i=n(15);t.exports=function(t,e,n){var u=r(e);u in t?o.f(t,u,i(0,n)):t[u]=n}},function(t,e,n){"use strict";var r=n(4),o=n(94),i=n(52),u=n(64),c=n(39),a=n(9),f=n(13),s=n(1),l=n(25),p=n(22),v=n(65),y=v.IteratorPrototype,h=v.BUGGY_SAFARI_ITERATORS,d=s("iterator"),g=function(){return this};t.exports=function(t,e,n,s,v,m,x){o(n,e,s);var b,S,w,O=function(t){if(t===v&&T)return T;if(!h&&t in _)return _[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},E=e+" Iterator",M=!1,_=t.prototype,j=_[d]||_["@@iterator"]||v&&_[v],T=!h&&j||O(v),A="Array"==e&&_.entries||j;if(A&&(b=i(A.call(new t)),y!==Object.prototype&&b.next&&(l||i(b)===y||(u?u(b,y):"function"!=typeof b[d]&&a(b,d,g)),c(b,E,!0,!0),l&&(p[E]=g))),"values"==v&&j&&"values"!==j.name&&(M=!0,T=function(){return j.call(this)}),l&&!x||_[d]===T||a(_,d,T),p[e]=T,v)if(S={values:O("values"),keys:m?T:O("keys"),entries:O("entries")},x)for(w in S)(h||M||!(w in _))&&f(_,w,S[w]);else r({target:e,proto:!0,forced:h||M},S);return S}},function(t,e,n){var r=n(5),o=n(71),i=n(18),u=n(6);t.exports=function(t,e){for(var n=o(e),c=u.f,a=i.f,f=0;f<n.length;f++){var s=n[f];r(t,s)||c(t,s,a(e,s))}}},function(t,e,n){var r=n(2),o=/#|\.prototype\./,i=function(t,e){var n=c[u(t)];return n==f||n!=a&&("function"==typeof e?r(e):!!e)},u=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=i.data={},a=i.NATIVE="N",f=i.POLYFILL="P";t.exports=i},function(t,e,n){var r=n(86);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},function(t,e,n){var r=n(34),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},function(t,e,n){"use strict";var r=n(42).forEach,o=n(67)("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,n){var r=n(2),o=n(1),i=n(38),u=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[];return(e.constructor={})[u]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,n){var r=n(8),o=n(95);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return r(n),o(i),e?t.call(n,i):n.__proto__=i,n}}():void 0)},function(t,e,n){"use strict";var r,o,i,u=n(2),c=n(52),a=n(9),f=n(5),s=n(1),l=n(25),p=s("iterator"),v=!1;[].keys&&("next"in(i=[].keys())?(o=c(c(i)))!==Object.prototype&&(r=o):v=!0);var y=null==r||u((function(){var t={};return r[p].call(t)!==t}));y&&(r={}),l&&!y||f(r,p)||a(r,p,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}},function(t,e,n){var r=n(12);t.exports=r("navigator","userAgent")||""},function(t,e,n){"use strict";var r=n(2);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},function(t,e,n){var r=n(43),o=n(13),i=n(100);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,e,n){"use strict";var r=n(93).charAt,o=n(31),i=n(17),u=n(56),c=i.set,a=i.getterFor("String Iterator");u(String,"String",(function(t){c(this,{type:"String Iterator",string:o(t),index:0})}),(function(){var t,e=a(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})}))},function(t,e,n){"use strict";var r=n(4),o=n(0),i=n(12),u=n(25),c=n(7),a=n(36),f=n(2),s=n(5),l=n(28),p=n(3),v=n(19),y=n(8),h=n(11),d=n(10),g=n(21),m=n(31),x=n(15),b=n(20),S=n(46),w=n(30),O=n(88),E=n(54),M=n(18),_=n(6),j=n(50),T=n(9),A=n(13),I=n(35),N=n(26),P=n(16),k=n(29),C=n(1),D=n(75),L=n(78),F=n(39),R=n(17),G=n(42).forEach,z=N("hidden"),V=C("toPrimitive"),B=R.set,H=R.getterFor("Symbol"),U=Object.prototype,W=o.Symbol,X=i("JSON","stringify"),Y=M.f,$=_.f,K=O.f,q=j.f,J=I("symbols"),Q=I("op-symbols"),Z=I("string-to-symbol-registry"),tt=I("symbol-to-string-registry"),et=I("wks"),nt=o.QObject,rt=!nt||!nt.prototype||!nt.prototype.findChild,ot=c&&f((function(){return 7!=b($({},"a",{get:function(){return $(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Y(U,e);r&&delete U[e],$(t,e,n),r&&t!==U&&$(U,e,r)}:$,it=function(t,e){var n=J[t]=b(W.prototype);return B(n,{type:"Symbol",tag:t,description:e}),c||(n.description=e),n},ut=function(t,e,n){t===U&&ut(Q,e,n),y(t);var r=g(e);return y(n),s(J,r)?(n.enumerable?(s(t,z)&&t[z][r]&&(t[z][r]=!1),n=b(n,{enumerable:x(0,!1)})):(s(t,z)||$(t,z,x(1,{})),t[z][r]=!0),ot(t,r,n)):$(t,r,n)},ct=function(t,e){y(t);var n=d(e),r=S(n).concat(lt(n));return G(r,(function(e){c&&!at.call(n,e)||ut(t,e,n[e])})),t},at=function(t){var e=g(t),n=q.call(this,e);return!(this===U&&s(J,e)&&!s(Q,e))&&(!(n||!s(this,e)||!s(J,e)||s(this,z)&&this[z][e])||n)},ft=function(t,e){var n=d(t),r=g(e);if(n!==U||!s(J,r)||s(Q,r)){var o=Y(n,r);return!o||!s(J,r)||s(n,z)&&n[z][r]||(o.enumerable=!0),o}},st=function(t){var e=K(d(t)),n=[];return G(e,(function(t){s(J,t)||s(P,t)||n.push(t)})),n},lt=function(t){var e=t===U,n=K(e?Q:d(t)),r=[];return G(n,(function(t){!s(J,t)||e&&!s(U,t)||r.push(J[t])})),r};(a||(A((W=function(){if(this instanceof W)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,e=k(t),n=function(t){this===U&&n.call(Q,t),s(this,z)&&s(this[z],e)&&(this[z][e]=!1),ot(this,e,x(1,t))};return c&&rt&&ot(U,e,{configurable:!0,set:n}),it(e,t)}).prototype,"toString",(function(){return H(this).tag})),A(W,"withoutSetter",(function(t){return it(k(t),t)})),j.f=at,_.f=ut,M.f=ft,w.f=O.f=st,E.f=lt,D.f=function(t){return it(C(t),t)},c&&($(W.prototype,"description",{configurable:!0,get:function(){return H(this).description}}),u||A(U,"propertyIsEnumerable",at,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!a,sham:!a},{Symbol:W}),G(S(et),(function(t){L(t)})),r({target:"Symbol",stat:!0,forced:!a},{for:function(t){var e=m(t);if(s(Z,e))return Z[e];var n=W(e);return Z[e]=n,tt[n]=e,n},keyFor:function(t){if(!v(t))throw TypeError(t+" is not a symbol");if(s(tt,t))return tt[t]},useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),r({target:"Object",stat:!0,forced:!a,sham:!c},{create:function(t,e){return void 0===e?b(t):ct(b(t),e)},defineProperty:ut,defineProperties:ct,getOwnPropertyDescriptor:ft}),r({target:"Object",stat:!0,forced:!a},{getOwnPropertyNames:st,getOwnPropertySymbols:lt}),r({target:"Object",stat:!0,forced:f((function(){E.f(1)}))},{getOwnPropertySymbols:function(t){return E.f(h(t))}}),X)&&r({target:"JSON",stat:!0,forced:!a||f((function(){var t=W();return"[null]"!=X([t])||"{}"!=X({a:t})||"{}"!=X(Object(t))}))},{stringify:function(t,e,n){for(var r,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=e,(p(e)||void 0!==t)&&!v(t))return l(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!v(e))return e}),o[1]=e,X.apply(null,o)}});W.prototype[V]||T(W.prototype,V,W.prototype.valueOf),F(W,"Symbol"),P[z]=!0},function(t,e,n){var r=n(12),o=n(30),i=n(54),u=n(8);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(u(t)),n=i.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(10),o=n(14),i=n(60),u=function(t){return function(e,n,u){var c,a=r(e),f=o(a.length),s=i(u,f);if(t&&n!=n){for(;f>s;)if((c=a[s++])!=c)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===n)return t||s||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},function(t,e,n){var r=n(74),o=n(22),i=n(1)("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e,n){var r=n(43),o=n(24),i=n(1)("toStringTag"),u="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:u?o(e):"Object"==(r=o(e))&&"function"==typeof e.callee?"Arguments":r}},function(t,e,n){var r=n(1);e.f=r},function(t,e,n){var r=n(3),o=n(19),i=n(84),u=n(1)("toPrimitive");t.exports=function(t,e){if(!r(t)||o(t))return t;var n,c=t[u];if(void 0!==c){if(void 0===e&&(e="default"),n=c.call(t,e),!r(n)||o(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),i(t,e)}},function(t,e,n){var r=n(0),o=n(62),i=n(49),u=n(9),c=n(1),a=c("iterator"),f=c("toStringTag"),s=i.values;for(var l in o){var p=r[l],v=p&&p.prototype;if(v){if(v[a]!==s)try{u(v,a,s)}catch(t){v[a]=s}if(v[f]||u(v,f,l),o[l])for(var y in i)if(v[y]!==i[y])try{u(v,y,i[y])}catch(t){v[y]=i[y]}}}},function(t,e,n){var r=n(101),o=n(5),i=n(75),u=n(6).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||u(e,t,{value:i.f(t)})}},function(t,e,n){var r=n(4),o=n(7);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:n(6).f})},function(t,e,n){"use strict";var r=n(4),o=n(7),i=n(0),u=n(5),c=n(3),a=n(6).f,f=n(57),s=i.Symbol;if(o&&"function"==typeof s&&(!("description"in s.prototype)||void 0!==s().description)){var l={},p=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof p?new s(t):void 0===t?s():s(t);return""===t&&(l[e]=!0),e};f(p,s);var v=p.prototype=s.prototype;v.constructor=p;var y=v.toString,h="Symbol(test)"==String(s("test")),d=/^Symbol\((.*)\)[^)]+$/;a(v,"description",{configurable:!0,get:function(){var t=c(this)?this.valueOf():this,e=y.call(t);if(u(l,t))return"";var n=h?e.slice(7,-1):e.replace(d,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:p})}},function(t,e,n){n(78)("iterator")},function(t,e,n){var r=n(7),o=n(6),i=n(8),u=n(46);t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=u(e),c=r.length,a=0;c>a;)o.f(t,n=r[a++],e[n]);return t}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(3);t.exports=function(t,e){var n,o;if("string"===e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if("string"!==e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(0),o=n(44),i=r.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},function(t,e,n){var r=n(3),o=n(28),i=n(1)("species");t.exports=function(t){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)?r(e)&&null===(e=e[i])&&(e=void 0):e=void 0),void 0===e?Array:e}},function(t,e,n){var r=n(2);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,n){var r=n(10),o=n(30).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return u.slice()}}(t):o(r(t))}},function(t,e,n){"use strict";var r=n(4),o=n(61);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,e,n){var r=n(0),o=n(62),i=n(61),u=n(9);for(var c in o){var a=r[c],f=a&&a.prototype;if(f&&f.forEach!==i)try{u(f,"forEach",i)}catch(t){f.forEach=i}}},function(t,e,n){var r=n(1),o=n(20),i=n(6),u=r("unscopables"),c=Array.prototype;null==c[u]&&i.f(c,u,{configurable:!0,value:o(null)}),t.exports=function(t){c[u][t]=!0}},function(t,e,n){var r=n(12);t.exports=r("document","documentElement")},function(t,e,n){var r=n(34),o=n(31),i=n(27),u=function(t){return function(e,n){var u,c,a=o(i(e)),f=r(n),s=a.length;return f<0||f>=s?t?"":void 0:(u=a.charCodeAt(f))<55296||u>56319||f+1===s||(c=a.charCodeAt(f+1))<56320||c>57343?t?a.charAt(f):u:t?a.slice(f,f+2):c-56320+(u-55296<<10)+65536}};t.exports={codeAt:u(!1),charAt:u(!0)}},function(t,e,n){"use strict";var r=n(65).IteratorPrototype,o=n(20),i=n(15),u=n(39),c=n(22),a=function(){return this};t.exports=function(t,e,n){var f=e+" Iterator";return t.prototype=o(r,{next:i(1,n)}),u(t,f,!1,!0),c[f]=a,t}},function(t,e,n){var r=n(3);t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,e,n){var r=n(1),o=n(22),i=r("iterator"),u=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||u[i]===t)}},function(t,e,n){var r=n(8),o=n(73);t.exports=function(t,e){var n=arguments.length<2?o(t):e;if("function"!=typeof n)throw TypeError(String(t)+" is not iterable");return r(n.call(t))}},function(t,e,n){var r=n(8);t.exports=function(t,e,n){var o,i;r(t);try{if(void 0===(o=t.return)){if("throw"===e)throw n;return n}o=o.call(t)}catch(t){i=!0,o=t}if("throw"===e)throw n;if(i)throw o;return r(o),n}},function(t,e,n){var r=n(1)("iterator"),o=!1;try{var i=0,u={next:function(){return{done:!!i++}},return:function(){o=!0}};u[r]=function(){return this},Array.from(u,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(43),o=n(74);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,e,n){var r=n(0);t.exports=r},function(t,e,n){var r=n(8),o=n(96),i=n(14),u=n(40),c=n(97),a=n(73),f=n(98),s=function(t,e){this.stopped=t,this.result=e};t.exports=function(t,e,n){var l,p,v,y,h,d,g,m=n&&n.that,x=!(!n||!n.AS_ENTRIES),b=!(!n||!n.IS_ITERATOR),S=!(!n||!n.INTERRUPTED),w=u(e,m,1+x+S),O=function(t){return l&&f(l,"normal",t),new s(!0,t)},E=function(t){return x?(r(t),S?w(t[0],t[1],O):w(t[0],t[1])):S?w(t,O):w(t)};if(b)l=t;else{if("function"!=typeof(p=a(t)))throw TypeError("Target is not iterable");if(o(p)){for(v=0,y=i(t.length);y>v;v++)if((h=E(t[v]))&&h instanceof s)return h;return new s(!1)}l=c(t,p)}for(d=l.next;!(g=d.call(l)).done;){try{h=E(g.value)}catch(t){f(l,"throw",t)}if("object"==typeof h&&h&&h instanceof s)return h}return new s(!1)}},function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},function(t,e,n){"use strict";var r=n(4),o=n(2),i=n(28),u=n(3),c=n(11),a=n(14),f=n(55),s=n(59),l=n(63),p=n(1),v=n(38),y=p("isConcatSpreadable"),h=v>=51||!o((function(){var t=[];return t[y]=!1,t.concat()[0]!==t})),d=l("concat"),g=function(t){if(!u(t))return!1;var e=t[y];return void 0!==e?!!e:i(t)};r({target:"Array",proto:!0,forced:!h||!d},{concat:function(t){var e,n,r,o,i,u=c(this),l=s(u,0),p=0;for(e=-1,r=arguments.length;e<r;e++)if(g(i=-1===e?u:arguments[e])){if(p+(o=a(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,p++)n in i&&f(l,p,i[n])}else{if(p>=9007199254740991)throw TypeError("Maximum allowed index exceeded");f(l,p++,i)}return l.length=p,l}})},function(t,e,n){var r=n(4),o=n(16),i=n(3),u=n(5),c=n(6).f,a=n(30),f=n(88),s=n(29),l=n(125),p=!1,v=s("meta"),y=0,h=Object.isExtensible||function(){return!0},d=function(t){c(t,v,{value:{objectID:"O"+y++,weakData:{}}})},g=t.exports={enable:function(){g.enable=function(){},p=!0;var t=a.f,e=[].splice,n={};n[v]=1,t(n).length&&(a.f=function(n){for(var r=t(n),o=0,i=r.length;o<i;o++)if(r[o]===v){e.call(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:f.f}))},fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!u(t,v)){if(!h(t))return"F";if(!e)return"E";d(t)}return t[v].objectID},getWeakData:function(t,e){if(!u(t,v)){if(!h(t))return!0;if(!e)return!1;d(t)}return t[v].weakData},onFreeze:function(t){return l&&p&&h(t)&&!u(t,v)&&d(t),t}};o[v]=!0},,function(t,e,n){var r=n(3),o=n(64);t.exports=function(t,e,n){var i,u;return o&&"function"==typeof(i=e.constructor)&&i!==n&&r(u=i.prototype)&&u!==n.prototype&&o(t,u),t}},function(t,e,n){var r=n(4),o=n(113);r({target:"Array",stat:!0,forced:!n(99)((function(t){Array.from(t)}))},{from:o})},,,,,function(t,e,n){"use strict";var r=n(40),o=n(11),i=n(114),u=n(96),c=n(14),a=n(55),f=n(97),s=n(73);t.exports=function(t){var e,n,l,p,v,y,h=o(t),d="function"==typeof this?this:Array,g=arguments.length,m=g>1?arguments[1]:void 0,x=void 0!==m,b=s(h),S=0;if(x&&(m=r(m,g>2?arguments[2]:void 0,2)),null==b||d==Array&&u(b))for(n=new d(e=c(h.length));e>S;S++)y=x?m(h[S],S):h[S],a(n,S,y);else for(v=(p=f(h,b)).next,n=new d;!(l=v.call(p)).done;S++)y=x?i(p,m,[l.value,S],!0):l.value,a(n,S,y);return n.length=S,n}},function(t,e,n){var r=n(8),o=n(98);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){o(t,"throw",e)}}},function(t,e,n){n(4)({target:"Array",stat:!0},{isArray:n(28)})},function(t,e,n){"use strict";var r=n(4),o=n(3),i=n(28),u=n(60),c=n(14),a=n(10),f=n(55),s=n(1),l=n(63)("slice"),p=s("species"),v=[].slice,y=Math.max;r({target:"Array",proto:!0,forced:!l},{slice:function(t,e){var n,r,s,l=a(this),h=c(l.length),d=u(t,h),g=u(void 0===e?h:e,h);if(i(l)&&("function"!=typeof(n=l.constructor)||n!==Array&&!i(n.prototype)?o(n)&&null===(n=n[p])&&(n=void 0):n=void 0,n===Array||void 0===n))return v.call(l,d,g);for(r=new(void 0===n?Array:n)(y(g-d,0)),s=0;d<g;d++,s++)d in l&&f(r,s,l[d]);return r.length=s,r}})},function(t,e,n){var r=n(7),o=n(6).f,i=Function.prototype,u=i.toString,c=/^\s*function ([^ (]*)/;r&&!("name"in i)&&o(i,"name",{configurable:!0,get:function(){try{return u.call(this).match(c)[1]}catch(t){return""}}})},function(t,e,n){"use strict";var r=n(4),o=n(0),i=n(58),u=n(13),c=n(105),a=n(102),f=n(103),s=n(3),l=n(2),p=n(99),v=n(39),y=n(107);t.exports=function(t,e,n){var h=-1!==t.indexOf("Map"),d=-1!==t.indexOf("Weak"),g=h?"set":"add",m=o[t],x=m&&m.prototype,b=m,S={},w=function(t){var e=x[t];u(x,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(d&&!s(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return d&&!s(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(d&&!s(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this})};if(i(t,"function"!=typeof m||!(d||x.forEach&&!l((function(){(new m).entries().next()})))))b=n.getConstructor(e,t,h,g),c.enable();else if(i(t,!0)){var O=new b,E=O[g](d?{}:-0,1)!=O,M=l((function(){O.has(1)})),_=p((function(t){new m(t)})),j=!d&&l((function(){for(var t=new m,e=5;e--;)t[g](e,e);return!t.has(-0)}));_||((b=e((function(e,n){f(e,b,t);var r=y(new m,e,b);return null!=n&&a(n,r[g],{that:r,AS_ENTRIES:h}),r}))).prototype=x,x.constructor=b),(M||j)&&(w("delete"),w("has"),h&&w("get")),(j||E)&&w(g),d&&x.clear&&delete x.clear}return S[t]=b,r({global:!0,forced:b!=m},S),v(b,t),d||n.setStrong(b,t,h),b}},function(t,e,n){"use strict";var r=n(6).f,o=n(20),i=n(120),u=n(40),c=n(103),a=n(102),f=n(56),s=n(121),l=n(7),p=n(105).fastKey,v=n(17),y=v.set,h=v.getterFor;t.exports={getConstructor:function(t,e,n,f){var s=t((function(t,r){c(t,s,e),y(t,{type:e,index:o(null),first:void 0,last:void 0,size:0}),l||(t.size=0),null!=r&&a(r,t[f],{that:t,AS_ENTRIES:n})})),v=h(e),d=function(t,e,n){var r,o,i=v(t),u=g(t,e);return u?u.value=n:(i.last=u={index:o=p(e,!0),key:e,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=u),r&&(r.next=u),l?i.size++:t.size++,"F"!==o&&(i.index[o]=u)),t},g=function(t,e){var n,r=v(t),o=p(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==e)return n};return i(s.prototype,{clear:function(){for(var t=v(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,l?t.size=0:this.size=0},delete:function(t){var e=v(this),n=g(this,t);if(n){var r=n.next,o=n.previous;delete e.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),e.first==n&&(e.first=r),e.last==n&&(e.last=o),l?e.size--:this.size--}return!!n},forEach:function(t){for(var e,n=v(this),r=u(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!g(this,t)}}),i(s.prototype,n?{get:function(t){var e=g(this,t);return e&&e.value},set:function(t,e){return d(this,0===t?0:t,e)}}:{add:function(t){return d(this,t=0===t?0:t,t)}}),l&&r(s.prototype,"size",{get:function(){return v(this).size}}),s},setStrong:function(t,e,n){var r=e+" Iterator",o=h(e),i=h(r);f(t,e,(function(t,e){y(this,{type:r,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),s(e)}}},function(t,e,n){var r=n(13);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){"use strict";var r=n(12),o=n(6),i=n(1),u=n(7),c=i("species");t.exports=function(t){var e=r(t),n=o.f;u&&e&&!e[c]&&n(e,c,{configurable:!0,get:function(){return this}})}},,,function(t,e,n){"use strict";var r=n(118),o=n(119);t.exports=r("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),o)},function(t,e,n){var r=n(2);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},,,,,,,,,,,,,function(t,e,n){"use strict";var r=n(7),o=n(0),i=n(58),u=n(13),c=n(5),a=n(24),f=n(107),s=n(19),l=n(76),p=n(2),v=n(20),y=n(30).f,h=n(18).f,d=n(6).f,g=n(139).trim,m=o.Number,x=m.prototype,b="Number"==a(v(x)),S=function(t){if(s(t))throw TypeError("Cannot convert a Symbol value to a number");var e,n,r,o,i,u,c,a,f=l(t,"number");if("string"==typeof f&&f.length>2)if(43===(e=(f=g(f)).charCodeAt(0))||45===e){if(88===(n=f.charCodeAt(2))||120===n)return NaN}else if(48===e){switch(f.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+f}for(u=(i=f.slice(2)).length,c=0;c<u;c++)if((a=i.charCodeAt(c))<48||a>o)return NaN;return parseInt(i,r)}return+f};if(i("Number",!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var w,O=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof O&&(b?p((function(){x.valueOf.call(n)})):"Number"!=a(n))?f(new m(S(e)),n,O):S(e)},E=r?y(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),M=0;E.length>M;M++)c(m,w=E[M])&&!c(O,w)&&d(O,w,h(m,w));O.prototype=x,x.constructor=O,u(o,"Number",O)}},function(t,e,n){var r=n(27),o=n(31),i="["+n(140)+"]",u=RegExp("^"+i+i+"*"),c=RegExp(i+i+"*$"),a=function(t){return function(e){var n=o(r(e));return 1&t&&(n=n.replace(u,"")),2&t&&(n=n.replace(c,"")),n}};t.exports={start:a(1),end:a(2),trim:a(3)}},function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},,,,,,,,,,,,,,,,,,,function(t,e,n){n(4)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.r(e),n.d(e,"ContextMenu",(function(){return c}));n(49),n(124),n(68),n(69),n(77),n(183),n(138),n(159),n(89),n(90),n(104),n(79),n(115),n(70),n(80),n(81),n(116),n(117),n(108);function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],u=!0,c=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(c)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(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,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 u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c=function(){function t(e){var n=this,r=e.lf;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),u(this,"__menuDOM",void 0),u(this,"lf",void 0),u(this,"_activeData",void 0),u(this,"menuTypeMap",new Map),u(this,"container",void 0),u(this,"isShow",void 0),u(this,"listenDelete",(function(){n.hideMenu()})),this.lf=r,this.__menuDOM=document.createElement("div"),this.__menuDOM.className="lf-inner-context",this.menuTypeMap.set("menu-common",[]),this.lf.setContextMenuByType=function(t,e){n.menuTypeMap.set(t,e)},this.lf.setContextMenuItems=function(t){n.menuTypeMap.set("menu-common",t)},this.lf.showContextMenu=function(t){t&&t.id?(n._activeData=t,n.createContextMenu()):console.warn("请检查传入的参数")},this.lf.hideContextMenu=function(){n.hideMenu()}}var e,n,o;return e=t,(n=[{key:"render",value:function(t,e){var n=this;this.container=e,t.on("node:click",(function(t){var e=t.data;n._activeData=e,n.createContextMenu()})),t.on("edge:click",(function(t){var e=t.data;n._activeData=e,n.createContextMenu()})),t.on("blank:click",(function(){n.hideMenu()}))}},{key:"getContextMenuPosition",value:function(){var t=this._activeData,e=this.lf.graphModel.getElement(t.id);if(e){var n,o;if("edge"===e.BaseType){n=Number.MIN_SAFE_INTEGER,o=Number.MAX_SAFE_INTEGER;var i=e.getData();n=Math.max(i.startPoint.x,n),o=Math.min(i.startPoint.y,o),n=Math.max(i.endPoint.x,n),o=Math.min(i.endPoint.y,o),i.pointsList&&i.pointsList.forEach((function(t){n=Math.max(t.x,n),o=Math.min(t.y,o)}))}if("node"===e.BaseType){var u=t.x+e.width/2,c=t.y-e.height/2,a=r(this.lf.graphModel.transformMatrix.CanvasPointToHtmlPoint([u,c]),2);n=a[0],o=a[1]}return[n,o]}console.warn("找不到元素".concat(t.id))}},{key:"createContextMenu",value:function(){var t=this;if(!this.lf.options.isSilentMode){var e=this.menuTypeMap.get(this._activeData.type)||[];e=e.concat(this.menuTypeMap.get("menu-common"));var n=document.createDocumentFragment();e.forEach((function(e){var r=document.createElement("div");r.className="lf-context-item";var o=document.createElement("img");o.src=e.icon,o.style.width="20px",o.style.height="20px",o.style.cursor="pointer",o.addEventListener("click",(function(){t.hideMenu(),e.callback?e.callback(t._activeData):t.addNode({sourceId:t._activeData.id,x:t._activeData.x,y:t._activeData.y,properties:e.properties,type:e.type})})),r.appendChild(o),n.appendChild(r)})),this.__menuDOM.innerHTML="",this.__menuDOM.appendChild(n),this.showMenu()}}},{key:"addNode",value:function(t,e){var n=void 0!==e;void 0===e&&(e=t.y);var r=this.lf.getNodeModel(t.sourceId),o=t.x-r.width+200,i=e-t.y/2-20,u=t.x+r.width+200,c=e+t.y/2+20;if(this.lf.getAreaElement([o,i],[u,c]).length)return e+=100,void this.addNode(t,e);var a,f,s=this.lf.addNode({type:t.type,x:t.x+200,y:e,properties:t.properties});n&&(a={x:t.x,y:t.y+r.height/2},f={x:s.x-s.width/2,y:s.y}),this.lf.createEdge({sourceNodeId:t.sourceId,targetNodeId:s.id,startPoint:a,endPoint:f})}},{key:"showMenu",value:function(){var t=r(this.getContextMenuPosition(),2),e=t[0],n=t[1];this.__menuDOM.style.display="flex",this.__menuDOM.style.top="".concat(n,"px"),this.__menuDOM.style.left="".concat(e+10,"px"),this.container.appendChild(this.__menuDOM),!this.isShow&&this.lf.on("node:delete,edge:delete,node:drag,graph:transform",this.listenDelete),this.isShow=!0}},{key:"hideMenu",value:function(){this.__menuDOM.innerHTML="",this.__menuDOM.style.display="none",this.isShow&&this.container.removeChild(this.__menuDOM),this.lf.off("node:delete,edge:delete,node:drag,graph:transform",this.listenDelete),this.isShow=!1}}])&&i(e.prototype,n),o&&i(e,o),t}();u(c,"pluginName","ContextMenu"),e.default=c},function(t,e,n){n(4)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})}])}));
|
|
1
|
+
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return 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=182)}([function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n(83))},function(t,e,n){var r=n(0),o=n(35),i=n(5),u=n(29),c=n(36),a=n(47),f=o("wks"),s=r.Symbol,l=a?s:s&&s.withoutSetter||u;t.exports=function(t){return i(f,t)&&(c||"string"==typeof f[t])||(c&&i(s,t)?f[t]=s[t]:f[t]=l("Symbol."+t)),f[t]}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(0),o=n(18).f,i=n(9),u=n(13),c=n(33),a=n(57),f=n(58);t.exports=function(t,e){var n,s,l,p,v,y=t.target,h=t.global,d=t.stat;if(n=h?r:d?r[y]||c(y,{}):(r[y]||{}).prototype)for(s in e){if(p=e[s],l=t.noTargetGet?(v=o(n,s))&&v.value:n[s],!f(h?s:y+(d?".":"#")+s,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;a(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),u(n,s,p,t)}}},function(t,e,n){var r=n(11),o={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,e){return o.call(r(t),e)}},function(t,e,n){var r=n(7),o=n(48),i=n(8),u=n(21),c=Object.defineProperty;e.f=r?c:function(t,e,n){if(i(t),e=u(e),i(n),o)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(2);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,n){var r=n(3);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e,n){var r=n(7),o=n(6),i=n(15);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(41),o=n(27);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(27);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(0),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t]):r[t]&&r[t][e]}},function(t,e,n){var r=n(0),o=n(9),i=n(5),u=n(33),c=n(44),a=n(17),f=a.get,s=a.enforce,l=String(String).split("String");(t.exports=function(t,e,n,c){var a,f=!!c&&!!c.unsafe,p=!!c&&!!c.enumerable,v=!!c&&!!c.noTargetGet;"function"==typeof n&&("string"!=typeof e||i(n,"name")||o(n,"name",e),(a=s(n)).source||(a.source=l.join("string"==typeof e?e:""))),t!==r?(f?!v&&t[e]&&(p=!0):delete t[e],p?t[e]=n:o(t,e,n)):p?t[e]=n:u(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&f(this).source||c(this)}))},function(t,e,n){var r=n(34),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports={}},function(t,e,n){var r,o,i,u=n(85),c=n(0),a=n(3),f=n(9),s=n(5),l=n(32),p=n(26),v=n(16),y=c.WeakMap;if(u||l.state){var h=l.state||(l.state=new y),d=h.get,g=h.has,m=h.set;r=function(t,e){if(g.call(h,t))throw new TypeError("Object already initialized");return e.facade=t,m.call(h,t,e),e},o=function(t){return d.call(h,t)||{}},i=function(t){return g.call(h,t)}}else{var x=p("state");v[x]=!0,r=function(t,e){if(s(t,x))throw new TypeError("Object already initialized");return e.facade=t,f(t,x,e),e},o=function(t){return s(t,x)?t[x]:{}},i=function(t){return s(t,x)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!a(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){var r=n(7),o=n(50),i=n(15),u=n(10),c=n(21),a=n(5),f=n(48),s=Object.getOwnPropertyDescriptor;e.f=r?s:function(t,e){if(t=u(t),e=c(e),f)try{return s(t,e)}catch(t){}if(a(t,e))return i(!o.f.call(t,e),t[e])}},function(t,e,n){var r=n(12),o=n(47);t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return"function"==typeof e&&Object(t)instanceof e}},function(t,e,n){var r,o=n(8),i=n(82),u=n(37),c=n(16),a=n(92),f=n(51),s=n(26),l=s("IE_PROTO"),p=function(){},v=function(t){return"<script>"+t+"<\/script>"},y=function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e},h=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e;h="undefined"!=typeof document?document.domain&&r?y(r):((e=f("iframe")).style.display="none",a.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):y(r);for(var n=u.length;n--;)delete h.prototype[u[n]];return h()};c[l]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(p.prototype=o(t),n=new p,p.prototype=null,n[l]=t):n=h(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(76),o=n(19);t.exports=function(t){var e=r(t,"string");return o(e)?e:String(e)}},function(t,e){t.exports={}},,function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=!1},function(t,e,n){var r=n(35),o=n(29),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(24);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},function(t,e,n){var r=n(53),o=n(37).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(19);t.exports=function(t){if(r(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)}},function(t,e,n){var r=n(0),o=n(33),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,e,n){var r=n(0);t.exports=function(t,e){try{Object.defineProperty(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(25),o=n(32);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.17.2",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(38),o=n(2);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,n){var r,o,i=n(0),u=n(66),c=i.process,a=i.Deno,f=c&&c.versions||a&&a.version,s=f&&f.v8;s?o=(r=s.split("."))[0]<4?1:r[0]+r[1]:u&&(!(r=u.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=u.match(/Chrome\/(\d+)/))&&(o=r[1]),t.exports=o&&+o},function(t,e,n){var r=n(6).f,o=n(5),i=n(1)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(45);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(2),o=n(24),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},function(t,e,n){var r=n(40),o=n(41),i=n(11),u=n(14),c=n(59),a=[].push,f=function(t){var e=1==t,n=2==t,f=3==t,s=4==t,l=6==t,p=7==t,v=5==t||l;return function(y,h,d,g){for(var m,x,b=i(y),S=o(b),w=r(h,d,3),O=u(S.length),E=0,M=g||c,_=e?M(y,O):n||p?M(y,0):void 0;O>E;E++)if((v||E in S)&&(x=w(m=S[E],E,b),t))if(e)_[E]=x;else if(x)switch(t){case 3:return!0;case 5:return m;case 6:return E;case 2:a.call(_,m)}else switch(t){case 4:return!1;case 7:a.call(_,m)}return l?-1:f||s?s:_}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},function(t,e,n){var r={};r[n(1)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,e,n){var r=n(32),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e,n){var r=n(53),o=n(37);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(36);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){var r=n(7),o=n(2),i=n(51);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){"use strict";var r=n(10),o=n(91),i=n(22),u=n(17),c=n(56),a=u.set,f=u.getterFor("Array Iterator");t.exports=c(Array,"Array",(function(t,e){a(this,{type:"Array Iterator",target:r(t),index:0,kind:e})}),(function(){var t=f(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},function(t,e,n){var r=n(0),o=n(3),i=r.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},function(t,e,n){var r=n(5),o=n(11),i=n(26),u=n(87),c=i("IE_PROTO"),a=Object.prototype;t.exports=u?Object.getPrototypeOf:function(t){return t=o(t),r(t,c)?t[c]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(5),o=n(10),i=n(72).indexOf,u=n(16);t.exports=function(t,e){var n,c=o(t),a=0,f=[];for(n in c)!r(u,n)&&r(c,n)&&f.push(n);for(;e.length>a;)r(c,n=e[a++])&&(~i(f,n)||f.push(n));return f}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){"use strict";var r=n(21),o=n(6),i=n(15);t.exports=function(t,e,n){var u=r(e);u in t?o.f(t,u,i(0,n)):t[u]=n}},function(t,e,n){"use strict";var r=n(4),o=n(94),i=n(52),u=n(64),c=n(39),a=n(9),f=n(13),s=n(1),l=n(25),p=n(22),v=n(65),y=v.IteratorPrototype,h=v.BUGGY_SAFARI_ITERATORS,d=s("iterator"),g=function(){return this};t.exports=function(t,e,n,s,v,m,x){o(n,e,s);var b,S,w,O=function(t){if(t===v&&T)return T;if(!h&&t in _)return _[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},E=e+" Iterator",M=!1,_=t.prototype,j=_[d]||_["@@iterator"]||v&&_[v],T=!h&&j||O(v),A="Array"==e&&_.entries||j;if(A&&(b=i(A.call(new t)),y!==Object.prototype&&b.next&&(l||i(b)===y||(u?u(b,y):"function"!=typeof b[d]&&a(b,d,g)),c(b,E,!0,!0),l&&(p[E]=g))),"values"==v&&j&&"values"!==j.name&&(M=!0,T=function(){return j.call(this)}),l&&!x||_[d]===T||a(_,d,T),p[e]=T,v)if(S={values:O("values"),keys:m?T:O("keys"),entries:O("entries")},x)for(w in S)(h||M||!(w in _))&&f(_,w,S[w]);else r({target:e,proto:!0,forced:h||M},S);return S}},function(t,e,n){var r=n(5),o=n(71),i=n(18),u=n(6);t.exports=function(t,e){for(var n=o(e),c=u.f,a=i.f,f=0;f<n.length;f++){var s=n[f];r(t,s)||c(t,s,a(e,s))}}},function(t,e,n){var r=n(2),o=/#|\.prototype\./,i=function(t,e){var n=c[u(t)];return n==f||n!=a&&("function"==typeof e?r(e):!!e)},u=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=i.data={},a=i.NATIVE="N",f=i.POLYFILL="P";t.exports=i},function(t,e,n){var r=n(86);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},function(t,e,n){var r=n(34),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},function(t,e,n){"use strict";var r=n(42).forEach,o=n(67)("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,n){var r=n(2),o=n(1),i=n(38),u=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[];return(e.constructor={})[u]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,n){var r=n(8),o=n(95);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return r(n),o(i),e?t.call(n,i):n.__proto__=i,n}}():void 0)},function(t,e,n){"use strict";var r,o,i,u=n(2),c=n(52),a=n(9),f=n(5),s=n(1),l=n(25),p=s("iterator"),v=!1;[].keys&&("next"in(i=[].keys())?(o=c(c(i)))!==Object.prototype&&(r=o):v=!0);var y=null==r||u((function(){var t={};return r[p].call(t)!==t}));y&&(r={}),l&&!y||f(r,p)||a(r,p,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}},function(t,e,n){var r=n(12);t.exports=r("navigator","userAgent")||""},function(t,e,n){"use strict";var r=n(2);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},function(t,e,n){var r=n(43),o=n(13),i=n(100);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,e,n){"use strict";var r=n(93).charAt,o=n(31),i=n(17),u=n(56),c=i.set,a=i.getterFor("String Iterator");u(String,"String",(function(t){c(this,{type:"String Iterator",string:o(t),index:0})}),(function(){var t,e=a(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})}))},function(t,e,n){"use strict";var r=n(4),o=n(0),i=n(12),u=n(25),c=n(7),a=n(36),f=n(2),s=n(5),l=n(28),p=n(3),v=n(19),y=n(8),h=n(11),d=n(10),g=n(21),m=n(31),x=n(15),b=n(20),S=n(46),w=n(30),O=n(88),E=n(54),M=n(18),_=n(6),j=n(50),T=n(9),A=n(13),I=n(35),N=n(26),P=n(16),k=n(29),C=n(1),D=n(75),L=n(78),F=n(39),R=n(17),G=n(42).forEach,z=N("hidden"),V=C("toPrimitive"),B=R.set,H=R.getterFor("Symbol"),U=Object.prototype,W=o.Symbol,X=i("JSON","stringify"),Y=M.f,$=_.f,K=O.f,q=j.f,J=I("symbols"),Q=I("op-symbols"),Z=I("string-to-symbol-registry"),tt=I("symbol-to-string-registry"),et=I("wks"),nt=o.QObject,rt=!nt||!nt.prototype||!nt.prototype.findChild,ot=c&&f((function(){return 7!=b($({},"a",{get:function(){return $(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Y(U,e);r&&delete U[e],$(t,e,n),r&&t!==U&&$(U,e,r)}:$,it=function(t,e){var n=J[t]=b(W.prototype);return B(n,{type:"Symbol",tag:t,description:e}),c||(n.description=e),n},ut=function(t,e,n){t===U&&ut(Q,e,n),y(t);var r=g(e);return y(n),s(J,r)?(n.enumerable?(s(t,z)&&t[z][r]&&(t[z][r]=!1),n=b(n,{enumerable:x(0,!1)})):(s(t,z)||$(t,z,x(1,{})),t[z][r]=!0),ot(t,r,n)):$(t,r,n)},ct=function(t,e){y(t);var n=d(e),r=S(n).concat(lt(n));return G(r,(function(e){c&&!at.call(n,e)||ut(t,e,n[e])})),t},at=function(t){var e=g(t),n=q.call(this,e);return!(this===U&&s(J,e)&&!s(Q,e))&&(!(n||!s(this,e)||!s(J,e)||s(this,z)&&this[z][e])||n)},ft=function(t,e){var n=d(t),r=g(e);if(n!==U||!s(J,r)||s(Q,r)){var o=Y(n,r);return!o||!s(J,r)||s(n,z)&&n[z][r]||(o.enumerable=!0),o}},st=function(t){var e=K(d(t)),n=[];return G(e,(function(t){s(J,t)||s(P,t)||n.push(t)})),n},lt=function(t){var e=t===U,n=K(e?Q:d(t)),r=[];return G(n,(function(t){!s(J,t)||e&&!s(U,t)||r.push(J[t])})),r};(a||(A((W=function(){if(this instanceof W)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,e=k(t),n=function(t){this===U&&n.call(Q,t),s(this,z)&&s(this[z],e)&&(this[z][e]=!1),ot(this,e,x(1,t))};return c&&rt&&ot(U,e,{configurable:!0,set:n}),it(e,t)}).prototype,"toString",(function(){return H(this).tag})),A(W,"withoutSetter",(function(t){return it(k(t),t)})),j.f=at,_.f=ut,M.f=ft,w.f=O.f=st,E.f=lt,D.f=function(t){return it(C(t),t)},c&&($(W.prototype,"description",{configurable:!0,get:function(){return H(this).description}}),u||A(U,"propertyIsEnumerable",at,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!a,sham:!a},{Symbol:W}),G(S(et),(function(t){L(t)})),r({target:"Symbol",stat:!0,forced:!a},{for:function(t){var e=m(t);if(s(Z,e))return Z[e];var n=W(e);return Z[e]=n,tt[n]=e,n},keyFor:function(t){if(!v(t))throw TypeError(t+" is not a symbol");if(s(tt,t))return tt[t]},useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),r({target:"Object",stat:!0,forced:!a,sham:!c},{create:function(t,e){return void 0===e?b(t):ct(b(t),e)},defineProperty:ut,defineProperties:ct,getOwnPropertyDescriptor:ft}),r({target:"Object",stat:!0,forced:!a},{getOwnPropertyNames:st,getOwnPropertySymbols:lt}),r({target:"Object",stat:!0,forced:f((function(){E.f(1)}))},{getOwnPropertySymbols:function(t){return E.f(h(t))}}),X)&&r({target:"JSON",stat:!0,forced:!a||f((function(){var t=W();return"[null]"!=X([t])||"{}"!=X({a:t})||"{}"!=X(Object(t))}))},{stringify:function(t,e,n){for(var r,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=e,(p(e)||void 0!==t)&&!v(t))return l(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!v(e))return e}),o[1]=e,X.apply(null,o)}});W.prototype[V]||T(W.prototype,V,W.prototype.valueOf),F(W,"Symbol"),P[z]=!0},function(t,e,n){var r=n(12),o=n(30),i=n(54),u=n(8);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(u(t)),n=i.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(10),o=n(14),i=n(60),u=function(t){return function(e,n,u){var c,a=r(e),f=o(a.length),s=i(u,f);if(t&&n!=n){for(;f>s;)if((c=a[s++])!=c)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===n)return t||s||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},function(t,e,n){var r=n(74),o=n(22),i=n(1)("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e,n){var r=n(43),o=n(24),i=n(1)("toStringTag"),u="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:u?o(e):"Object"==(r=o(e))&&"function"==typeof e.callee?"Arguments":r}},function(t,e,n){var r=n(1);e.f=r},function(t,e,n){var r=n(3),o=n(19),i=n(84),u=n(1)("toPrimitive");t.exports=function(t,e){if(!r(t)||o(t))return t;var n,c=t[u];if(void 0!==c){if(void 0===e&&(e="default"),n=c.call(t,e),!r(n)||o(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),i(t,e)}},function(t,e,n){var r=n(0),o=n(62),i=n(49),u=n(9),c=n(1),a=c("iterator"),f=c("toStringTag"),s=i.values;for(var l in o){var p=r[l],v=p&&p.prototype;if(v){if(v[a]!==s)try{u(v,a,s)}catch(t){v[a]=s}if(v[f]||u(v,f,l),o[l])for(var y in i)if(v[y]!==i[y])try{u(v,y,i[y])}catch(t){v[y]=i[y]}}}},function(t,e,n){var r=n(101),o=n(5),i=n(75),u=n(6).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||u(e,t,{value:i.f(t)})}},function(t,e,n){var r=n(4),o=n(7);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:n(6).f})},function(t,e,n){"use strict";var r=n(4),o=n(7),i=n(0),u=n(5),c=n(3),a=n(6).f,f=n(57),s=i.Symbol;if(o&&"function"==typeof s&&(!("description"in s.prototype)||void 0!==s().description)){var l={},p=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof p?new s(t):void 0===t?s():s(t);return""===t&&(l[e]=!0),e};f(p,s);var v=p.prototype=s.prototype;v.constructor=p;var y=v.toString,h="Symbol(test)"==String(s("test")),d=/^Symbol\((.*)\)[^)]+$/;a(v,"description",{configurable:!0,get:function(){var t=c(this)?this.valueOf():this,e=y.call(t);if(u(l,t))return"";var n=h?e.slice(7,-1):e.replace(d,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:p})}},function(t,e,n){n(78)("iterator")},function(t,e,n){var r=n(7),o=n(6),i=n(8),u=n(46);t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=u(e),c=r.length,a=0;c>a;)o.f(t,n=r[a++],e[n]);return t}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(3);t.exports=function(t,e){var n,o;if("string"===e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if("string"!==e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(0),o=n(44),i=r.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},function(t,e,n){var r=n(3),o=n(28),i=n(1)("species");t.exports=function(t){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)?r(e)&&null===(e=e[i])&&(e=void 0):e=void 0),void 0===e?Array:e}},function(t,e,n){var r=n(2);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,n){var r=n(10),o=n(30).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return u.slice()}}(t):o(r(t))}},function(t,e,n){"use strict";var r=n(4),o=n(61);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,e,n){var r=n(0),o=n(62),i=n(61),u=n(9);for(var c in o){var a=r[c],f=a&&a.prototype;if(f&&f.forEach!==i)try{u(f,"forEach",i)}catch(t){f.forEach=i}}},function(t,e,n){var r=n(1),o=n(20),i=n(6),u=r("unscopables"),c=Array.prototype;null==c[u]&&i.f(c,u,{configurable:!0,value:o(null)}),t.exports=function(t){c[u][t]=!0}},function(t,e,n){var r=n(12);t.exports=r("document","documentElement")},function(t,e,n){var r=n(34),o=n(31),i=n(27),u=function(t){return function(e,n){var u,c,a=o(i(e)),f=r(n),s=a.length;return f<0||f>=s?t?"":void 0:(u=a.charCodeAt(f))<55296||u>56319||f+1===s||(c=a.charCodeAt(f+1))<56320||c>57343?t?a.charAt(f):u:t?a.slice(f,f+2):c-56320+(u-55296<<10)+65536}};t.exports={codeAt:u(!1),charAt:u(!0)}},function(t,e,n){"use strict";var r=n(65).IteratorPrototype,o=n(20),i=n(15),u=n(39),c=n(22),a=function(){return this};t.exports=function(t,e,n){var f=e+" Iterator";return t.prototype=o(r,{next:i(1,n)}),u(t,f,!1,!0),c[f]=a,t}},function(t,e,n){var r=n(3);t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,e,n){var r=n(1),o=n(22),i=r("iterator"),u=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||u[i]===t)}},function(t,e,n){var r=n(8),o=n(73);t.exports=function(t,e){var n=arguments.length<2?o(t):e;if("function"!=typeof n)throw TypeError(String(t)+" is not iterable");return r(n.call(t))}},function(t,e,n){var r=n(8);t.exports=function(t,e,n){var o,i;r(t);try{if(void 0===(o=t.return)){if("throw"===e)throw n;return n}o=o.call(t)}catch(t){i=!0,o=t}if("throw"===e)throw n;if(i)throw o;return r(o),n}},function(t,e,n){var r=n(1)("iterator"),o=!1;try{var i=0,u={next:function(){return{done:!!i++}},return:function(){o=!0}};u[r]=function(){return this},Array.from(u,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(43),o=n(74);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,e,n){var r=n(0);t.exports=r},function(t,e,n){var r=n(8),o=n(96),i=n(14),u=n(40),c=n(97),a=n(73),f=n(98),s=function(t,e){this.stopped=t,this.result=e};t.exports=function(t,e,n){var l,p,v,y,h,d,g,m=n&&n.that,x=!(!n||!n.AS_ENTRIES),b=!(!n||!n.IS_ITERATOR),S=!(!n||!n.INTERRUPTED),w=u(e,m,1+x+S),O=function(t){return l&&f(l,"normal",t),new s(!0,t)},E=function(t){return x?(r(t),S?w(t[0],t[1],O):w(t[0],t[1])):S?w(t,O):w(t)};if(b)l=t;else{if("function"!=typeof(p=a(t)))throw TypeError("Target is not iterable");if(o(p)){for(v=0,y=i(t.length);y>v;v++)if((h=E(t[v]))&&h instanceof s)return h;return new s(!1)}l=c(t,p)}for(d=l.next;!(g=d.call(l)).done;){try{h=E(g.value)}catch(t){f(l,"throw",t)}if("object"==typeof h&&h&&h instanceof s)return h}return new s(!1)}},function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},function(t,e,n){"use strict";var r=n(4),o=n(2),i=n(28),u=n(3),c=n(11),a=n(14),f=n(55),s=n(59),l=n(63),p=n(1),v=n(38),y=p("isConcatSpreadable"),h=v>=51||!o((function(){var t=[];return t[y]=!1,t.concat()[0]!==t})),d=l("concat"),g=function(t){if(!u(t))return!1;var e=t[y];return void 0!==e?!!e:i(t)};r({target:"Array",proto:!0,forced:!h||!d},{concat:function(t){var e,n,r,o,i,u=c(this),l=s(u,0),p=0;for(e=-1,r=arguments.length;e<r;e++)if(g(i=-1===e?u:arguments[e])){if(p+(o=a(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,p++)n in i&&f(l,p,i[n])}else{if(p>=9007199254740991)throw TypeError("Maximum allowed index exceeded");f(l,p++,i)}return l.length=p,l}})},function(t,e,n){var r=n(4),o=n(16),i=n(3),u=n(5),c=n(6).f,a=n(30),f=n(88),s=n(29),l=n(125),p=!1,v=s("meta"),y=0,h=Object.isExtensible||function(){return!0},d=function(t){c(t,v,{value:{objectID:"O"+y++,weakData:{}}})},g=t.exports={enable:function(){g.enable=function(){},p=!0;var t=a.f,e=[].splice,n={};n[v]=1,t(n).length&&(a.f=function(n){for(var r=t(n),o=0,i=r.length;o<i;o++)if(r[o]===v){e.call(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:f.f}))},fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!u(t,v)){if(!h(t))return"F";if(!e)return"E";d(t)}return t[v].objectID},getWeakData:function(t,e){if(!u(t,v)){if(!h(t))return!0;if(!e)return!1;d(t)}return t[v].weakData},onFreeze:function(t){return l&&p&&h(t)&&!u(t,v)&&d(t),t}};o[v]=!0},,function(t,e,n){var r=n(3),o=n(64);t.exports=function(t,e,n){var i,u;return o&&"function"==typeof(i=e.constructor)&&i!==n&&r(u=i.prototype)&&u!==n.prototype&&o(t,u),t}},function(t,e,n){var r=n(4),o=n(113);r({target:"Array",stat:!0,forced:!n(99)((function(t){Array.from(t)}))},{from:o})},,,,,function(t,e,n){"use strict";var r=n(40),o=n(11),i=n(114),u=n(96),c=n(14),a=n(55),f=n(97),s=n(73);t.exports=function(t){var e,n,l,p,v,y,h=o(t),d="function"==typeof this?this:Array,g=arguments.length,m=g>1?arguments[1]:void 0,x=void 0!==m,b=s(h),S=0;if(x&&(m=r(m,g>2?arguments[2]:void 0,2)),null==b||d==Array&&u(b))for(n=new d(e=c(h.length));e>S;S++)y=x?m(h[S],S):h[S],a(n,S,y);else for(v=(p=f(h,b)).next,n=new d;!(l=v.call(p)).done;S++)y=x?i(p,m,[l.value,S],!0):l.value,a(n,S,y);return n.length=S,n}},function(t,e,n){var r=n(8),o=n(98);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){o(t,"throw",e)}}},function(t,e,n){n(4)({target:"Array",stat:!0},{isArray:n(28)})},function(t,e,n){"use strict";var r=n(4),o=n(3),i=n(28),u=n(60),c=n(14),a=n(10),f=n(55),s=n(1),l=n(63)("slice"),p=s("species"),v=[].slice,y=Math.max;r({target:"Array",proto:!0,forced:!l},{slice:function(t,e){var n,r,s,l=a(this),h=c(l.length),d=u(t,h),g=u(void 0===e?h:e,h);if(i(l)&&("function"!=typeof(n=l.constructor)||n!==Array&&!i(n.prototype)?o(n)&&null===(n=n[p])&&(n=void 0):n=void 0,n===Array||void 0===n))return v.call(l,d,g);for(r=new(void 0===n?Array:n)(y(g-d,0)),s=0;d<g;d++,s++)d in l&&f(r,s,l[d]);return r.length=s,r}})},function(t,e,n){var r=n(7),o=n(6).f,i=Function.prototype,u=i.toString,c=/^\s*function ([^ (]*)/;r&&!("name"in i)&&o(i,"name",{configurable:!0,get:function(){try{return u.call(this).match(c)[1]}catch(t){return""}}})},function(t,e,n){"use strict";var r=n(4),o=n(0),i=n(58),u=n(13),c=n(105),a=n(102),f=n(103),s=n(3),l=n(2),p=n(99),v=n(39),y=n(107);t.exports=function(t,e,n){var h=-1!==t.indexOf("Map"),d=-1!==t.indexOf("Weak"),g=h?"set":"add",m=o[t],x=m&&m.prototype,b=m,S={},w=function(t){var e=x[t];u(x,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(d&&!s(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return d&&!s(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(d&&!s(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this})};if(i(t,"function"!=typeof m||!(d||x.forEach&&!l((function(){(new m).entries().next()})))))b=n.getConstructor(e,t,h,g),c.enable();else if(i(t,!0)){var O=new b,E=O[g](d?{}:-0,1)!=O,M=l((function(){O.has(1)})),_=p((function(t){new m(t)})),j=!d&&l((function(){for(var t=new m,e=5;e--;)t[g](e,e);return!t.has(-0)}));_||((b=e((function(e,n){f(e,b,t);var r=y(new m,e,b);return null!=n&&a(n,r[g],{that:r,AS_ENTRIES:h}),r}))).prototype=x,x.constructor=b),(M||j)&&(w("delete"),w("has"),h&&w("get")),(j||E)&&w(g),d&&x.clear&&delete x.clear}return S[t]=b,r({global:!0,forced:b!=m},S),v(b,t),d||n.setStrong(b,t,h),b}},function(t,e,n){"use strict";var r=n(6).f,o=n(20),i=n(120),u=n(40),c=n(103),a=n(102),f=n(56),s=n(121),l=n(7),p=n(105).fastKey,v=n(17),y=v.set,h=v.getterFor;t.exports={getConstructor:function(t,e,n,f){var s=t((function(t,r){c(t,s,e),y(t,{type:e,index:o(null),first:void 0,last:void 0,size:0}),l||(t.size=0),null!=r&&a(r,t[f],{that:t,AS_ENTRIES:n})})),v=h(e),d=function(t,e,n){var r,o,i=v(t),u=g(t,e);return u?u.value=n:(i.last=u={index:o=p(e,!0),key:e,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=u),r&&(r.next=u),l?i.size++:t.size++,"F"!==o&&(i.index[o]=u)),t},g=function(t,e){var n,r=v(t),o=p(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==e)return n};return i(s.prototype,{clear:function(){for(var t=v(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,l?t.size=0:this.size=0},delete:function(t){var e=v(this),n=g(this,t);if(n){var r=n.next,o=n.previous;delete e.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),e.first==n&&(e.first=r),e.last==n&&(e.last=o),l?e.size--:this.size--}return!!n},forEach:function(t){for(var e,n=v(this),r=u(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!g(this,t)}}),i(s.prototype,n?{get:function(t){var e=g(this,t);return e&&e.value},set:function(t,e){return d(this,0===t?0:t,e)}}:{add:function(t){return d(this,t=0===t?0:t,t)}}),l&&r(s.prototype,"size",{get:function(){return v(this).size}}),s},setStrong:function(t,e,n){var r=e+" Iterator",o=h(e),i=h(r);f(t,e,(function(t,e){y(this,{type:r,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),s(e)}}},function(t,e,n){var r=n(13);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){"use strict";var r=n(12),o=n(6),i=n(1),u=n(7),c=i("species");t.exports=function(t){var e=r(t),n=o.f;u&&e&&!e[c]&&n(e,c,{configurable:!0,get:function(){return this}})}},,,function(t,e,n){"use strict";var r=n(118),o=n(119);t.exports=r("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),o)},function(t,e,n){var r=n(2);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},,,,,,,,,,,,,function(t,e,n){"use strict";var r=n(7),o=n(0),i=n(58),u=n(13),c=n(5),a=n(24),f=n(107),s=n(19),l=n(76),p=n(2),v=n(20),y=n(30).f,h=n(18).f,d=n(6).f,g=n(139).trim,m=o.Number,x=m.prototype,b="Number"==a(v(x)),S=function(t){if(s(t))throw TypeError("Cannot convert a Symbol value to a number");var e,n,r,o,i,u,c,a,f=l(t,"number");if("string"==typeof f&&f.length>2)if(43===(e=(f=g(f)).charCodeAt(0))||45===e){if(88===(n=f.charCodeAt(2))||120===n)return NaN}else if(48===e){switch(f.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+f}for(u=(i=f.slice(2)).length,c=0;c<u;c++)if((a=i.charCodeAt(c))<48||a>o)return NaN;return parseInt(i,r)}return+f};if(i("Number",!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var w,O=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof O&&(b?p((function(){x.valueOf.call(n)})):"Number"!=a(n))?f(new m(S(e)),n,O):S(e)},E=r?y(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),M=0;E.length>M;M++)c(m,w=E[M])&&!c(O,w)&&d(O,w,h(m,w));O.prototype=x,x.constructor=O,u(o,"Number",O)}},function(t,e,n){var r=n(27),o=n(31),i="["+n(140)+"]",u=RegExp("^"+i+i+"*"),c=RegExp(i+i+"*$"),a=function(t){return function(e){var n=o(r(e));return 1&t&&(n=n.replace(u,"")),2&t&&(n=n.replace(c,"")),n}};t.exports={start:a(1),end:a(2),trim:a(3)}},function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},,,,,,,,,,,,,,,,,,,function(t,e,n){n(4)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.r(e),n.d(e,"ContextMenu",(function(){return c}));n(49),n(124),n(68),n(69),n(77),n(183),n(138),n(159),n(89),n(90),n(104),n(79),n(115),n(70),n(80),n(81),n(116),n(117),n(108);function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],u=!0,c=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);u=!0);}catch(t){c=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(c)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(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,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 u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c=function(){function t(e){var n=this,r=e.lf;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),u(this,"__menuDOM",void 0),u(this,"lf",void 0),u(this,"_activeData",void 0),u(this,"menuTypeMap",new Map),u(this,"container",void 0),u(this,"isShow",void 0),u(this,"listenDelete",(function(){n.hideMenu()})),this.lf=r,this.__menuDOM=document.createElement("div"),this.__menuDOM.className="lf-inner-context",this.menuTypeMap.set("menu-common",[]),this.lf.setContextMenuByType=function(t,e){n.menuTypeMap.set(t,e)},this.lf.setContextMenuItems=function(t){n.menuTypeMap.set("menu-common",t)},this.lf.showContextMenu=function(t){t&&t.id?(n._activeData=t,n.createContextMenu()):console.warn("请检查传入的参数")},this.lf.hideContextMenu=function(){n.hideMenu()}}var e,n,o;return e=t,(n=[{key:"render",value:function(t,e){var n=this;this.container=e,t.on("node:click",(function(t){var e=t.data;n._activeData=e,n.createContextMenu()})),t.on("edge:click",(function(t){var e=t.data;n._activeData=e,n.createContextMenu()})),t.on("blank:click",(function(){n.hideMenu()}))}},{key:"getContextMenuPosition",value:function(){var t=this._activeData,e=this.lf.graphModel.getElement(t.id);if(e){var n,r;if("edge"===e.BaseType){n=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER;var o=e.getData();n=Math.max(o.startPoint.x,n),r=Math.min(o.startPoint.y,r),n=Math.max(o.endPoint.x,n),r=Math.min(o.endPoint.y,r),o.pointsList&&o.pointsList.forEach((function(t){n=Math.max(t.x,n),r=Math.min(t.y,r)}))}return"node"===e.BaseType&&(n=t.x+e.width/2,r=t.y-e.height/2),this.lf.graphModel.transformMatrix.CanvasPointToHtmlPoint([n,r])}console.warn("找不到元素".concat(t.id))}},{key:"createContextMenu",value:function(){var t=this;if(!this.lf.options.isSilentMode){var e=this.menuTypeMap.get(this._activeData.type)||[];e=e.concat(this.menuTypeMap.get("menu-common"));var n=document.createDocumentFragment();e.forEach((function(e){var r=document.createElement("div");r.className="lf-context-item";var o=document.createElement("img");o.src=e.icon,o.className="lf-context-img",o.addEventListener("click",(function(){t.hideMenu(),e.callback?e.callback(t._activeData):t.addNode({sourceId:t._activeData.id,x:t._activeData.x,y:t._activeData.y,properties:e.properties,type:e.type})})),r.appendChild(o),n.appendChild(r)})),this.__menuDOM.innerHTML="",this.__menuDOM.appendChild(n),this.showMenu()}}},{key:"addNode",value:function(t,e){var n=void 0!==e;void 0===e&&(e=t.y);var r=this.lf.getNodeModel(t.sourceId),o=t.x-r.width+200,i=e-t.y/2-20,u=t.x+r.width+200,c=e+t.y/2+20;if(this.lf.getAreaElement([o,i],[u,c]).length)return e+=100,void this.addNode(t,e);var a,f,s=this.lf.addNode({type:t.type,x:t.x+200,y:e,properties:t.properties});n&&(a={x:t.x,y:t.y+r.height/2},f={x:s.x-s.width/2,y:s.y}),this.lf.createEdge({sourceNodeId:t.sourceId,targetNodeId:s.id,startPoint:a,endPoint:f})}},{key:"showMenu",value:function(){var t=r(this.getContextMenuPosition(),2),e=t[0],n=t[1];this.__menuDOM.style.display="flex",this.__menuDOM.style.top="".concat(n,"px"),this.__menuDOM.style.left="".concat(e+10,"px"),this.container.appendChild(this.__menuDOM),!this.isShow&&this.lf.on("node:delete,edge:delete,node:drag,graph:transform",this.listenDelete),this.isShow=!0}},{key:"hideMenu",value:function(){this.__menuDOM.innerHTML="",this.__menuDOM.style.display="none",this.isShow&&this.container.removeChild(this.__menuDOM),this.lf.off("node:delete,edge:delete,node:drag,graph:transform",this.listenDelete),this.isShow=!1}}])&&i(e.prototype,n),o&&i(e,o),t}();u(c,"pluginName","ContextMenu"),e.default=c},function(t,e,n){n(4)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})}])}));
|
package/lib/NodeResize.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("window"));else if("function"==typeof define&&define.amd)define(["window"],e);else{var n="object"==typeof exports?e(require("window")):e(t.window);for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(window,(function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return 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=202)}([function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n(83))},function(t,e,n){var r=n(0),o=n(35),i=n(5),u=n(29),c=n(36),a=n(47),f=o("wks"),l=r.Symbol,s=a?l:l&&l.withoutSetter||u;t.exports=function(t){return i(f,t)&&(c||"string"==typeof f[t])||(c&&i(l,t)?f[t]=l[t]:f[t]=s("Symbol."+t)),f[t]}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(0),o=n(18).f,i=n(9),u=n(13),c=n(33),a=n(57),f=n(58);t.exports=function(t,e){var n,l,s,p,d,y=t.target,h=t.global,v=t.stat;if(n=h?r:v?r[y]||c(y,{}):(r[y]||{}).prototype)for(l in e){if(p=e[l],s=t.noTargetGet?(d=o(n,l))&&d.value:n[l],!f(h?l:y+(v?".":"#")+l,t.forced)&&void 0!==s){if(typeof p==typeof s)continue;a(p,s)}(t.sham||s&&s.sham)&&i(p,"sham",!0),u(n,l,p,t)}}},function(t,e,n){var r=n(11),o={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,e){return o.call(r(t),e)}},function(t,e,n){var r=n(7),o=n(48),i=n(8),u=n(21),c=Object.defineProperty;e.f=r?c:function(t,e,n){if(i(t),e=u(e),i(n),o)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(2);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,n){var r=n(3);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e,n){var r=n(7),o=n(6),i=n(15);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(41),o=n(27);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(27);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(0),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t]):r[t]&&r[t][e]}},function(t,e,n){var r=n(0),o=n(9),i=n(5),u=n(33),c=n(44),a=n(17),f=a.get,l=a.enforce,s=String(String).split("String");(t.exports=function(t,e,n,c){var a,f=!!c&&!!c.unsafe,p=!!c&&!!c.enumerable,d=!!c&&!!c.noTargetGet;"function"==typeof n&&("string"!=typeof e||i(n,"name")||o(n,"name",e),(a=l(n)).source||(a.source=s.join("string"==typeof e?e:""))),t!==r?(f?!d&&t[e]&&(p=!0):delete t[e],p?t[e]=n:o(t,e,n)):p?t[e]=n:u(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&f(this).source||c(this)}))},function(t,e,n){var r=n(34),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports={}},function(t,e,n){var r,o,i,u=n(85),c=n(0),a=n(3),f=n(9),l=n(5),s=n(32),p=n(26),d=n(16),y=c.WeakMap;if(u||s.state){var h=s.state||(s.state=new y),v=h.get,g=h.has,_=h.set;r=function(t,e){if(g.call(h,t))throw new TypeError("Object already initialized");return e.facade=t,_.call(h,t,e),e},o=function(t){return v.call(h,t)||{}},i=function(t){return g.call(h,t)}}else{var b=p("state");d[b]=!0,r=function(t,e){if(l(t,b))throw new TypeError("Object already initialized");return e.facade=t,f(t,b,e),e},o=function(t){return l(t,b)?t[b]:{}},i=function(t){return l(t,b)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!a(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){var r=n(7),o=n(50),i=n(15),u=n(10),c=n(21),a=n(5),f=n(48),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=u(t),e=c(e),f)try{return l(t,e)}catch(t){}if(a(t,e))return i(!o.f.call(t,e),t[e])}},function(t,e,n){var r=n(12),o=n(47);t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return"function"==typeof e&&Object(t)instanceof e}},function(t,e,n){var r,o=n(8),i=n(82),u=n(37),c=n(16),a=n(92),f=n(51),l=n(26),s=l("IE_PROTO"),p=function(){},d=function(t){return"<script>"+t+"<\/script>"},y=function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e},h=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e;h="undefined"!=typeof document?document.domain&&r?y(r):((e=f("iframe")).style.display="none",a.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F):y(r);for(var n=u.length;n--;)delete h.prototype[u[n]];return h()};c[s]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(p.prototype=o(t),n=new p,p.prototype=null,n[s]=t):n=h(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(76),o=n(19);t.exports=function(t){var e=r(t,"string");return o(e)?e:String(e)}},function(t,e){t.exports={}},function(e,n){e.exports=t},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=!1},function(t,e,n){var r=n(35),o=n(29),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(24);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},function(t,e,n){var r=n(53),o=n(37).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(19);t.exports=function(t){if(r(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)}},function(t,e,n){var r=n(0),o=n(33),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,e,n){var r=n(0);t.exports=function(t,e){try{Object.defineProperty(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(25),o=n(32);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.17.2",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(38),o=n(2);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,n){var r,o,i=n(0),u=n(66),c=i.process,a=i.Deno,f=c&&c.versions||a&&a.version,l=f&&f.v8;l?o=(r=l.split("."))[0]<4?1:r[0]+r[1]:u&&(!(r=u.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=u.match(/Chrome\/(\d+)/))&&(o=r[1]),t.exports=o&&+o},function(t,e,n){var r=n(6).f,o=n(5),i=n(1)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(45);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(2),o=n(24),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},function(t,e,n){var r=n(40),o=n(41),i=n(11),u=n(14),c=n(59),a=[].push,f=function(t){var e=1==t,n=2==t,f=3==t,l=4==t,s=6==t,p=7==t,d=5==t||s;return function(y,h,v,g){for(var _,b,m=i(y),O=o(m),x=r(h,v,3),w=u(O.length),j=0,S=g||c,P=e?S(y,w):n||p?S(y,0):void 0;w>j;j++)if((d||j in O)&&(b=x(_=O[j],j,m),t))if(e)P[j]=b;else if(b)switch(t){case 3:return!0;case 5:return _;case 6:return j;case 2:a.call(P,_)}else switch(t){case 4:return!1;case 7:a.call(P,_)}return s?-1:f||l?l:P}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},function(t,e,n){var r={};r[n(1)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,e,n){var r=n(32),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e,n){var r=n(53),o=n(37);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(36);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){var r=n(7),o=n(2),i=n(51);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){"use strict";var r=n(10),o=n(91),i=n(22),u=n(17),c=n(56),a=u.set,f=u.getterFor("Array Iterator");t.exports=c(Array,"Array",(function(t,e){a(this,{type:"Array Iterator",target:r(t),index:0,kind:e})}),(function(){var t=f(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},function(t,e,n){var r=n(0),o=n(3),i=r.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},function(t,e,n){var r=n(5),o=n(11),i=n(26),u=n(87),c=i("IE_PROTO"),a=Object.prototype;t.exports=u?Object.getPrototypeOf:function(t){return t=o(t),r(t,c)?t[c]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(5),o=n(10),i=n(72).indexOf,u=n(16);t.exports=function(t,e){var n,c=o(t),a=0,f=[];for(n in c)!r(u,n)&&r(c,n)&&f.push(n);for(;e.length>a;)r(c,n=e[a++])&&(~i(f,n)||f.push(n));return f}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){"use strict";var r=n(21),o=n(6),i=n(15);t.exports=function(t,e,n){var u=r(e);u in t?o.f(t,u,i(0,n)):t[u]=n}},function(t,e,n){"use strict";var r=n(4),o=n(94),i=n(52),u=n(64),c=n(39),a=n(9),f=n(13),l=n(1),s=n(25),p=n(22),d=n(65),y=d.IteratorPrototype,h=d.BUGGY_SAFARI_ITERATORS,v=l("iterator"),g=function(){return this};t.exports=function(t,e,n,l,d,_,b){o(n,e,l);var m,O,x,w=function(t){if(t===d&&k)return k;if(!h&&t in P)return P[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},j=e+" Iterator",S=!1,P=t.prototype,E=P[v]||P["@@iterator"]||d&&P[d],k=!h&&E||w(d),M="Array"==e&&P.entries||E;if(M&&(m=i(M.call(new t)),y!==Object.prototype&&m.next&&(s||i(m)===y||(u?u(m,y):"function"!=typeof m[v]&&a(m,v,g)),c(m,j,!0,!0),s&&(p[j]=g))),"values"==d&&E&&"values"!==E.name&&(S=!0,k=function(){return E.call(this)}),s&&!b||P[v]===k||a(P,v,k),p[e]=k,d)if(O={values:w("values"),keys:_?k:w("keys"),entries:w("entries")},b)for(x in O)(h||S||!(x in P))&&f(P,x,O[x]);else r({target:e,proto:!0,forced:h||S},O);return O}},function(t,e,n){var r=n(5),o=n(71),i=n(18),u=n(6);t.exports=function(t,e){for(var n=o(e),c=u.f,a=i.f,f=0;f<n.length;f++){var l=n[f];r(t,l)||c(t,l,a(e,l))}}},function(t,e,n){var r=n(2),o=/#|\.prototype\./,i=function(t,e){var n=c[u(t)];return n==f||n!=a&&("function"==typeof e?r(e):!!e)},u=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=i.data={},a=i.NATIVE="N",f=i.POLYFILL="P";t.exports=i},function(t,e,n){var r=n(86);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},function(t,e,n){var r=n(34),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},function(t,e,n){"use strict";var r=n(42).forEach,o=n(67)("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,n){var r=n(2),o=n(1),i=n(38),u=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[];return(e.constructor={})[u]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,n){var r=n(8),o=n(95);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return r(n),o(i),e?t.call(n,i):n.__proto__=i,n}}():void 0)},function(t,e,n){"use strict";var r,o,i,u=n(2),c=n(52),a=n(9),f=n(5),l=n(1),s=n(25),p=l("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(o=c(c(i)))!==Object.prototype&&(r=o):d=!0);var y=null==r||u((function(){var t={};return r[p].call(t)!==t}));y&&(r={}),s&&!y||f(r,p)||a(r,p,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},function(t,e,n){var r=n(12);t.exports=r("navigator","userAgent")||""},function(t,e,n){"use strict";var r=n(2);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},function(t,e,n){var r=n(43),o=n(13),i=n(100);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,e,n){"use strict";var r=n(93).charAt,o=n(31),i=n(17),u=n(56),c=i.set,a=i.getterFor("String Iterator");u(String,"String",(function(t){c(this,{type:"String Iterator",string:o(t),index:0})}),(function(){var t,e=a(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})}))},function(t,e,n){"use strict";var r=n(4),o=n(0),i=n(12),u=n(25),c=n(7),a=n(36),f=n(2),l=n(5),s=n(28),p=n(3),d=n(19),y=n(8),h=n(11),v=n(10),g=n(21),_=n(31),b=n(15),m=n(20),O=n(46),x=n(30),w=n(88),j=n(54),S=n(18),P=n(6),E=n(50),k=n(9),M=n(13),R=n(35),N=n(26),T=n(16),D=n(29),A=n(1),C=n(75),L=n(78),z=n(39),I=n(17),Y=n(42).forEach,F=N("hidden"),W=A("toPrimitive"),X=I.set,G=I.getterFor("Symbol"),H=Object.prototype,B=o.Symbol,U=i("JSON","stringify"),q=S.f,V=P.f,$=w.f,J=E.f,K=R("symbols"),Q=R("op-symbols"),Z=R("string-to-symbol-registry"),tt=R("symbol-to-string-registry"),et=R("wks"),nt=o.QObject,rt=!nt||!nt.prototype||!nt.prototype.findChild,ot=c&&f((function(){return 7!=m(V({},"a",{get:function(){return V(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=q(H,e);r&&delete H[e],V(t,e,n),r&&t!==H&&V(H,e,r)}:V,it=function(t,e){var n=K[t]=m(B.prototype);return X(n,{type:"Symbol",tag:t,description:e}),c||(n.description=e),n},ut=function(t,e,n){t===H&&ut(Q,e,n),y(t);var r=g(e);return y(n),l(K,r)?(n.enumerable?(l(t,F)&&t[F][r]&&(t[F][r]=!1),n=m(n,{enumerable:b(0,!1)})):(l(t,F)||V(t,F,b(1,{})),t[F][r]=!0),ot(t,r,n)):V(t,r,n)},ct=function(t,e){y(t);var n=v(e),r=O(n).concat(st(n));return Y(r,(function(e){c&&!at.call(n,e)||ut(t,e,n[e])})),t},at=function(t){var e=g(t),n=J.call(this,e);return!(this===H&&l(K,e)&&!l(Q,e))&&(!(n||!l(this,e)||!l(K,e)||l(this,F)&&this[F][e])||n)},ft=function(t,e){var n=v(t),r=g(e);if(n!==H||!l(K,r)||l(Q,r)){var o=q(n,r);return!o||!l(K,r)||l(n,F)&&n[F][r]||(o.enumerable=!0),o}},lt=function(t){var e=$(v(t)),n=[];return Y(e,(function(t){l(K,t)||l(T,t)||n.push(t)})),n},st=function(t){var e=t===H,n=$(e?Q:v(t)),r=[];return Y(n,(function(t){!l(K,t)||e&&!l(H,t)||r.push(K[t])})),r};(a||(M((B=function(){if(this instanceof B)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?_(arguments[0]):void 0,e=D(t),n=function(t){this===H&&n.call(Q,t),l(this,F)&&l(this[F],e)&&(this[F][e]=!1),ot(this,e,b(1,t))};return c&&rt&&ot(H,e,{configurable:!0,set:n}),it(e,t)}).prototype,"toString",(function(){return G(this).tag})),M(B,"withoutSetter",(function(t){return it(D(t),t)})),E.f=at,P.f=ut,S.f=ft,x.f=w.f=lt,j.f=st,C.f=function(t){return it(A(t),t)},c&&(V(B.prototype,"description",{configurable:!0,get:function(){return G(this).description}}),u||M(H,"propertyIsEnumerable",at,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!a,sham:!a},{Symbol:B}),Y(O(et),(function(t){L(t)})),r({target:"Symbol",stat:!0,forced:!a},{for:function(t){var e=_(t);if(l(Z,e))return Z[e];var n=B(e);return Z[e]=n,tt[n]=e,n},keyFor:function(t){if(!d(t))throw TypeError(t+" is not a symbol");if(l(tt,t))return tt[t]},useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),r({target:"Object",stat:!0,forced:!a,sham:!c},{create:function(t,e){return void 0===e?m(t):ct(m(t),e)},defineProperty:ut,defineProperties:ct,getOwnPropertyDescriptor:ft}),r({target:"Object",stat:!0,forced:!a},{getOwnPropertyNames:lt,getOwnPropertySymbols:st}),r({target:"Object",stat:!0,forced:f((function(){j.f(1)}))},{getOwnPropertySymbols:function(t){return j.f(h(t))}}),U)&&r({target:"JSON",stat:!0,forced:!a||f((function(){var t=B();return"[null]"!=U([t])||"{}"!=U({a:t})||"{}"!=U(Object(t))}))},{stringify:function(t,e,n){for(var r,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=e,(p(e)||void 0!==t)&&!d(t))return s(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!d(e))return e}),o[1]=e,U.apply(null,o)}});B.prototype[W]||k(B.prototype,W,B.prototype.valueOf),z(B,"Symbol"),T[F]=!0},function(t,e,n){var r=n(12),o=n(30),i=n(54),u=n(8);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(u(t)),n=i.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(10),o=n(14),i=n(60),u=function(t){return function(e,n,u){var c,a=r(e),f=o(a.length),l=i(u,f);if(t&&n!=n){for(;f>l;)if((c=a[l++])!=c)return!0}else for(;f>l;l++)if((t||l in a)&&a[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},,function(t,e,n){var r=n(43),o=n(24),i=n(1)("toStringTag"),u="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:u?o(e):"Object"==(r=o(e))&&"function"==typeof e.callee?"Arguments":r}},function(t,e,n){var r=n(1);e.f=r},function(t,e,n){var r=n(3),o=n(19),i=n(84),u=n(1)("toPrimitive");t.exports=function(t,e){if(!r(t)||o(t))return t;var n,c=t[u];if(void 0!==c){if(void 0===e&&(e="default"),n=c.call(t,e),!r(n)||o(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),i(t,e)}},function(t,e,n){var r=n(0),o=n(62),i=n(49),u=n(9),c=n(1),a=c("iterator"),f=c("toStringTag"),l=i.values;for(var s in o){var p=r[s],d=p&&p.prototype;if(d){if(d[a]!==l)try{u(d,a,l)}catch(t){d[a]=l}if(d[f]||u(d,f,s),o[s])for(var y in i)if(d[y]!==i[y])try{u(d,y,i[y])}catch(t){d[y]=i[y]}}}},function(t,e,n){var r=n(101),o=n(5),i=n(75),u=n(6).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||u(e,t,{value:i.f(t)})}},function(t,e,n){var r=n(4),o=n(7);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:n(6).f})},function(t,e,n){"use strict";var r=n(4),o=n(7),i=n(0),u=n(5),c=n(3),a=n(6).f,f=n(57),l=i.Symbol;if(o&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var s={},p=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof p?new l(t):void 0===t?l():l(t);return""===t&&(s[e]=!0),e};f(p,l);var d=p.prototype=l.prototype;d.constructor=p;var y=d.toString,h="Symbol(test)"==String(l("test")),v=/^Symbol\((.*)\)[^)]+$/;a(d,"description",{configurable:!0,get:function(){var t=c(this)?this.valueOf():this,e=y.call(t);if(u(s,t))return"";var n=h?e.slice(7,-1):e.replace(v,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:p})}},function(t,e,n){n(78)("iterator")},function(t,e,n){var r=n(7),o=n(6),i=n(8),u=n(46);t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=u(e),c=r.length,a=0;c>a;)o.f(t,n=r[a++],e[n]);return t}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(3);t.exports=function(t,e){var n,o;if("string"===e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if("string"!==e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(0),o=n(44),i=r.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},function(t,e,n){var r=n(3),o=n(28),i=n(1)("species");t.exports=function(t){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)?r(e)&&null===(e=e[i])&&(e=void 0):e=void 0),void 0===e?Array:e}},function(t,e,n){var r=n(2);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,n){var r=n(10),o=n(30).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return u.slice()}}(t):o(r(t))}},function(t,e,n){"use strict";var r=n(4),o=n(61);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,e,n){var r=n(0),o=n(62),i=n(61),u=n(9);for(var c in o){var a=r[c],f=a&&a.prototype;if(f&&f.forEach!==i)try{u(f,"forEach",i)}catch(t){f.forEach=i}}},function(t,e,n){var r=n(1),o=n(20),i=n(6),u=r("unscopables"),c=Array.prototype;null==c[u]&&i.f(c,u,{configurable:!0,value:o(null)}),t.exports=function(t){c[u][t]=!0}},function(t,e,n){var r=n(12);t.exports=r("document","documentElement")},function(t,e,n){var r=n(34),o=n(31),i=n(27),u=function(t){return function(e,n){var u,c,a=o(i(e)),f=r(n),l=a.length;return f<0||f>=l?t?"":void 0:(u=a.charCodeAt(f))<55296||u>56319||f+1===l||(c=a.charCodeAt(f+1))<56320||c>57343?t?a.charAt(f):u:t?a.slice(f,f+2):c-56320+(u-55296<<10)+65536}};t.exports={codeAt:u(!1),charAt:u(!0)}},function(t,e,n){"use strict";var r=n(65).IteratorPrototype,o=n(20),i=n(15),u=n(39),c=n(22),a=function(){return this};t.exports=function(t,e,n){var f=e+" Iterator";return t.prototype=o(r,{next:i(1,n)}),u(t,f,!1,!0),c[f]=a,t}},function(t,e,n){var r=n(3);t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},,,,,function(t,e,n){"use strict";var r=n(43),o=n(74);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,e,n){var r=n(0);t.exports=r},,,function(t,e,n){"use strict";var r=n(4),o=n(2),i=n(28),u=n(3),c=n(11),a=n(14),f=n(55),l=n(59),s=n(63),p=n(1),d=n(38),y=p("isConcatSpreadable"),h=d>=51||!o((function(){var t=[];return t[y]=!1,t.concat()[0]!==t})),v=s("concat"),g=function(t){if(!u(t))return!1;var e=t[y];return void 0!==e?!!e:i(t)};r({target:"Array",proto:!0,forced:!h||!v},{concat:function(t){var e,n,r,o,i,u=c(this),s=l(u,0),p=0;for(e=-1,r=arguments.length;e<r;e++)if(g(i=-1===e?u:arguments[e])){if(p+(o=a(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,p++)n in i&&f(s,p,i[n])}else{if(p>=9007199254740991)throw TypeError("Maximum allowed index exceeded");f(s,p++,i)}return s.length=p,s}})},,function(t,e,n){var r=n(4),o=n(2),i=n(10),u=n(18).f,c=n(7),a=o((function(){u(1)}));r({target:"Object",stat:!0,forced:!c||a,sham:!c},{getOwnPropertyDescriptor:function(t,e){return u(i(t),e)}})},,,function(t,e,n){n(4)({target:"Object",stat:!0},{setPrototypeOf:n(64)})},function(t,e,n){var r=n(4),o=n(2),i=n(11),u=n(52),c=n(87);r({target:"Object",stat:!0,forced:o((function(){u(1)})),sham:!c},{getPrototypeOf:function(t){return u(i(t))}})},function(t,e,n){var r=n(4),o=n(12),i=n(45),u=n(8),c=n(3),a=n(20),f=n(131),l=n(2),s=o("Reflect","construct"),p=l((function(){function t(){}return!(s((function(){}),[],t)instanceof t)})),d=!l((function(){s((function(){}))})),y=p||d;r({target:"Reflect",stat:!0,forced:y,sham:y},{construct:function(t,e){i(t),u(e);var n=arguments.length<3?t:i(arguments[2]);if(d&&!p)return s(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 r.push.apply(r,e),new(f.apply(t,r))}var o=n.prototype,l=a(c(o)?o:Object.prototype),y=Function.apply.call(t,l,e);return c(y)?y:l}})},function(t,e,n){n(4)({target:"Object",stat:!0,sham:!n(7)},{create:n(20)})},,,,,,,,,,,,,,function(t,e,n){var r=n(4),o=n(11),i=n(46);r({target:"Object",stat:!0,forced:n(2)((function(){i(1)}))},{keys:function(t){return i(o(t))}})},,function(t,e,n){"use strict";var r=n(4),o=n(42).filter;r({target:"Array",proto:!0,forced:!n(63)("filter")},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(4),o=n(7),i=n(71),u=n(10),c=n(18),a=n(55);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){for(var e,n,r=u(t),o=c.f,f=i(r),l={},s=0;f.length>s;)void 0!==(n=o(r,e=f[s++]))&&a(l,e,n);return l}})},function(t,e,n){var r=n(4),o=n(7);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperties:n(82)})},function(t,e,n){"use strict";var r=n(45),o=n(3),i=[].slice,u={},c=function(t,e,n){if(!(e in u)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";u[e]=Function("C,a","return new C("+r.join(",")+")")}return u[e](t,n)};t.exports=Function.bind||function(t){var e=r(this),n=i.call(arguments,1),u=function(){var r=n.concat(i.call(arguments));return this instanceof u?c(e,r.length,r):e.apply(t,r)};return o(e.prototype)&&(u.prototype=e.prototype),u}},function(t,e,n){var r=n(4),o=n(3),i=n(8),u=n(152),c=n(18),a=n(52);r({target:"Reflect",stat:!0},{get:function t(e,n){var r,f,l=arguments.length<3?e:arguments[2];return i(e)===l?e[n]:(r=c.f(e,n))?u(r)?r.value:void 0===r.get?void 0:r.get.call(l):o(f=a(e))?t(f,n,l):void 0}})},,,function(t,e,n){"use strict";var r=n(4),o=n(42).map;r({target:"Array",proto:!0,forced:!n(63)("map")},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},,function(t,e,n){var r=n(4),o=n(153);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},,,,,,,,function(t,e,n){var r=n(4),o=n(160),i=n(91);r({target:"Array",proto:!0},{fill:o}),i("fill")},,,,,function(t,e,n){"use strict";var r=n(4),o=n(41),i=n(10),u=n(67),c=[].join,a=o!=Object,f=u("join",",");r({target:"Array",proto:!0,forced:a||!f},{join:function(t){return c.call(i(this),void 0===t?",":t)}})},,function(t,e,n){var r=n(5);t.exports=function(t){return void 0!==t&&(r(t,"value")||r(t,"writable"))}},function(t,e,n){"use strict";var r=n(7),o=n(2),i=n(46),u=n(54),c=n(50),a=n(11),f=n(41),l=Object.assign,s=Object.defineProperty;t.exports=!l||o((function(){if(r&&1!==l({b:1},l(s({},"a",{enumerable:!0,get:function(){s(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=l({},t)[n]||"abcdefghijklmnopqrst"!=i(l({},e)).join("")}))?function(t,e){for(var n=a(t),o=arguments.length,l=1,s=u.f,p=c.f;o>l;)for(var d,y=f(arguments[l++]),h=s?i(y).concat(s(y)):i(y),v=h.length,g=0;v>g;)d=h[g++],r&&!p.call(y,d)||(n[d]=y[d]);return n}:l},,,,,,,function(t,e,n){"use strict";var r=n(11),o=n(60),i=n(14);t.exports=function(t){for(var e=r(this),n=i(e.length),u=arguments.length,c=o(u>1?arguments[1]:void 0,n),a=u>2?arguments[2]:void 0,f=void 0===a?n:o(a,n);f>c;)e[c++]=t;return e}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.r(e),n.d(e,"NodeResize",(function(){return ue})),n.d(e,"RectResize",(function(){return Et})),n.d(e,"EllipseResize",(function(){return Bt})),n.d(e,"DiamondResize",(function(){return ie}));n(104),n(79),n(109),n(110),n(111),n(112),n(132),n(106),n(137),n(70),n(80),n(68),n(81),n(49),n(69),n(77);var r,o,i,u,c,a,f=n(23),l=(n(135),{}),s=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function d(t,e){for(var n in e)t[n]=e[n];return t}function y(t){var e=t.parentNode;e&&e.removeChild(t)}function h(t,e,n){var o,i,u,c={};for(u in e)"key"==u?o=e[u]:"ref"==u?i=e[u]:c[u]=e[u];if(arguments.length>2&&(c.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(u in t.defaultProps)void 0===c[u]&&(c[u]=t.defaultProps[u]);return v(t,c,o,i,null)}function v(t,e,n,r,u){var c={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==u?++i:u};return null!=o.vnode&&o.vnode(c),c}function g(t){return t.children}function _(t,e){this.props=t,this.context=e}function b(t,e){if(null==e)return t.__?b(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?b(t):null}function m(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return m(t)}}function O(t){(!t.__d&&(t.__d=!0)&&u.push(t)&&!x.__r++||a!==o.debounceRendering)&&((a=o.debounceRendering)||c)(x)}function x(){for(var t;x.__r=u.length;)t=u.sort((function(t,e){return t.__v.__b-e.__v.__b})),u=[],t.some((function(t){var e,n,r,o,i,u;t.__d&&(i=(o=(e=t).__v).__e,(u=e.__P)&&(n=[],(r=d({},o)).__v=o.__v+1,R(u,o,r,e.__n,void 0!==u.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?b(o):i,o.__h),N(n,o),o.__e!=i&&m(o)))}))}function w(t,e,n,r,o,i,u,c,a,f){var p,d,y,h,_,m,O,x=r&&r.__k||s,w=x.length;for(n.__k=[],p=0;p<e.length;p++)if(null!=(h=n.__k[p]=null==(h=e[p])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?v(null,h,null,null,h):Array.isArray(h)?v(g,{children:h},null,null,null):h.__b>0?v(h.type,h.props,h.key,null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(y=x[p])||y&&h.key==y.key&&h.type===y.type)x[p]=void 0;else for(d=0;d<w;d++){if((y=x[d])&&h.key==y.key&&h.type===y.type){x[d]=void 0;break}y=null}R(t,h,y=y||l,o,i,u,c,a,f),_=h.__e,(d=h.ref)&&y.ref!=d&&(O||(O=[]),y.ref&&O.push(y.ref,null,h),O.push(d,h.__c||_,h)),null!=_?(null==m&&(m=_),"function"==typeof h.type&&null!=h.__k&&h.__k===y.__k?h.__d=a=j(h,a,t):a=S(t,h,y,x,_,a),f||"option"!==n.type?"function"==typeof n.type&&(n.__d=a):t.value=""):a&&y.__e==a&&a.parentNode!=t&&(a=b(y))}for(n.__e=m,p=w;p--;)null!=x[p]&&("function"==typeof n.type&&null!=x[p].__e&&x[p].__e==n.__d&&(n.__d=b(r,p+1)),A(x[p],x[p]));if(O)for(p=0;p<O.length;p++)D(O[p],O[++p],O[++p])}function j(t,e,n){var r,o;for(r=0;r<t.__k.length;r++)(o=t.__k[r])&&(o.__=t,e="function"==typeof o.type?j(o,e,n):S(n,o,o,t.__k,o.__e,e));return e}function S(t,e,n,r,o,i){var u,c,a;if(void 0!==e.__d)u=e.__d,e.__d=void 0;else if(null==n||o!=i||null==o.parentNode)t:if(null==i||i.parentNode!==t)t.appendChild(o),u=null;else{for(c=i,a=0;(c=c.nextSibling)&&a<r.length;a+=2)if(c==o)break t;t.insertBefore(o,i),u=i}return void 0!==u?u:o.nextSibling}function P(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]=null==n?"":"number"!=typeof n||p.test(e)?n:n+"px"}function E(t,e,n,r,o){var i;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||P(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||P(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])i=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?r||t.addEventListener(e,i?M:k,i):t.removeEventListener(e,i?M:k,i);else if("dangerouslySetInnerHTML"!==e){if(o)e=e.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null!=n&&(!1!==n||"a"===e[0]&&"r"===e[1])?t.setAttribute(e,n):t.removeAttribute(e))}}function k(t){this.l[t.type+!1](o.event?o.event(t):t)}function M(t){this.l[t.type+!0](o.event?o.event(t):t)}function R(t,e,n,r,i,u,c,a,f){var l,s,p,y,h,v,b,m,O,x,j,S=e.type;if(void 0!==e.constructor)return null;null!=n.__h&&(f=n.__h,a=e.__e=n.__e,e.__h=null,u=[a]),(l=o.__b)&&l(e);try{t:if("function"==typeof S){if(m=e.props,O=(l=S.contextType)&&r[l.__c],x=l?O?O.props.value:l.__:r,n.__c?b=(s=e.__c=n.__c).__=s.__E:("prototype"in S&&S.prototype.render?e.__c=s=new S(m,x):(e.__c=s=new _(m,x),s.constructor=S,s.render=C),O&&O.sub(s),s.props=m,s.state||(s.state={}),s.context=x,s.__n=r,p=s.__d=!0,s.__h=[]),null==s.__s&&(s.__s=s.state),null!=S.getDerivedStateFromProps&&(s.__s==s.state&&(s.__s=d({},s.__s)),d(s.__s,S.getDerivedStateFromProps(m,s.__s))),y=s.props,h=s.state,p)null==S.getDerivedStateFromProps&&null!=s.componentWillMount&&s.componentWillMount(),null!=s.componentDidMount&&s.__h.push(s.componentDidMount);else{if(null==S.getDerivedStateFromProps&&m!==y&&null!=s.componentWillReceiveProps&&s.componentWillReceiveProps(m,x),!s.__e&&null!=s.shouldComponentUpdate&&!1===s.shouldComponentUpdate(m,s.__s,x)||e.__v===n.__v){s.props=m,s.state=s.__s,e.__v!==n.__v&&(s.__d=!1),s.__v=e,e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),s.__h.length&&c.push(s);break t}null!=s.componentWillUpdate&&s.componentWillUpdate(m,s.__s,x),null!=s.componentDidUpdate&&s.__h.push((function(){s.componentDidUpdate(y,h,v)}))}s.context=x,s.props=m,s.state=s.__s,(l=o.__r)&&l(e),s.__d=!1,s.__v=e,s.__P=t,l=s.render(s.props,s.state,s.context),s.state=s.__s,null!=s.getChildContext&&(r=d(d({},r),s.getChildContext())),p||null==s.getSnapshotBeforeUpdate||(v=s.getSnapshotBeforeUpdate(y,h)),j=null!=l&&l.type===g&&null==l.key?l.props.children:l,w(t,Array.isArray(j)?j:[j],e,n,r,i,u,c,a,f),s.base=e.__e,e.__h=null,s.__h.length&&c.push(s),b&&(s.__E=s.__=null),s.__e=!1}else null==u&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=T(n.__e,e,n,r,i,u,c,f);(l=o.diffed)&&l(e)}catch(t){e.__v=null,(f||null!=u)&&(e.__e=a,e.__h=!!f,u[u.indexOf(a)]=null),o.__e(t,e,n)}}function N(t,e){o.__c&&o.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){o.__e(t,e.__v)}}))}function T(t,e,n,o,i,u,c,a){var f,s,p,d=n.props,h=e.props,v=e.type,g=0;if("svg"===v&&(i=!0),null!=u)for(;g<u.length;g++)if((f=u[g])&&(f===t||(v?f.localName==v:3==f.nodeType))){t=f,u[g]=null;break}if(null==t){if(null===v)return document.createTextNode(h);t=i?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,h.is&&h),u=null,a=!1}if(null===v)d===h||a&&t.data===h||(t.data=h);else{if(u=u&&r.call(t.childNodes),s=(d=n.props||l).dangerouslySetInnerHTML,p=h.dangerouslySetInnerHTML,!a){if(null!=u)for(d={},g=0;g<t.attributes.length;g++)d[t.attributes[g].name]=t.attributes[g].value;(p||s)&&(p&&(s&&p.__html==s.__html||p.__html===t.innerHTML)||(t.innerHTML=p&&p.__html||""))}if(function(t,e,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in e||E(t,i,null,n[i],r);for(i in e)o&&"function"!=typeof e[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===e[i]||E(t,i,e[i],n[i],r)}(t,h,d,i,a),p)e.__k=[];else if(g=e.props.children,w(t,Array.isArray(g)?g:[g],e,n,o,i&&"foreignObject"!==v,u,c,u?u[0]:n.__k&&b(n,0),a),null!=u)for(g=u.length;g--;)null!=u[g]&&y(u[g]);a||("value"in h&&void 0!==(g=h.value)&&(g!==t.value||"progress"===v&&!g)&&E(t,"value",g,d.value,!1),"checked"in h&&void 0!==(g=h.checked)&&g!==t.checked&&E(t,"checked",g,d.checked,!1))}return t}function D(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){o.__e(t,n)}}function A(t,e,n){var r,i;if(o.unmount&&o.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||D(r,null,e)),null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){o.__e(t,e)}r.base=r.__P=null}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&A(r[i],e,"function"!=typeof t.type);n||null==t.__e||y(t.__e),t.__e=t.__d=void 0}function C(t,e,n){return this.constructor(t,n)}r=s.slice,o={__e:function(t,e){for(var n,r,o;e=e.__;)if((n=e.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(t)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(t),o=n.__d),o)return n.__E=n}catch(e){t=e}throw t}},i=0,_.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof t&&(t=t(d({},n),this.props)),t&&d(n,t),null!=t&&this.__v&&(e&&this.__h.push(e),O(this))},_.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),O(this))},_.prototype.render=g,u=[],c="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,x.__r=0;var L;n(89),n(90),n(145),n(126),n(128),n(129),n(130);function z(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function I(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?z(Object(n),!0).forEach((function(e){Y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function F(t){var e=t.x,n=t.y,r=t.width,o=t.height,i=t.radius,u=t.className,c=e-r/2,a=n-o/2,l=I(I({width:10,height:10,cx:0,cy:0,rx:i||0,ry:i||0,fill:"transparent",fillOpacity:1,strokeWidth:"1px",stroke:"#000",strokeOpacity:1,className:"lf-basic-shape ".concat(u)},t),{},{x:c,y:a});return Object(f.h)("rect",l)}function W(t){var e=t.x,n=t.y,r=t.width,o=t.height;return{minX:e-r/2,minY:n-o/2,maxX:e+r/2,maxY:n+o/2}}function X(t){var e=W(t),n=t.radius,r=e.minX,o=e.minY,i=e.maxX,u=e.maxY;return[{x:r+n,y:o+n},{x:i-n,y:o+n},{x:i-n,y:u-n},{x:r+n,y:u-n}]}function G(t){var e=t.point,n=t.beforeNode,r=t.afterNode,o=e.x,i=e.y,u={x:o,y:i},c=n.radius,a=W(n),f=W(r);if(o===a.minX){u.x=f.minX;var l=(i-n.y)/(n.height/2-c);u.y=l?r.y+(r.height/2-c)*l:r.y}else if(o===a.maxX){u.x=f.maxX;var s=(i-n.y)/(n.height/2-c);u.y=s?r.y+(r.height/2-c)*s:r.y}else if(i===a.minY){u.y=f.minY;var p=(o-n.x)/(n.width/2-c);u.x=p?r.x+(r.width/2-c)*p:r.x}else if(i===a.maxY){u.y=f.maxY;var d=(o-n.x)/(n.width/2-c);u.x=d?r.x+(r.width/2-c)*d:r.x}else{var y=X(n),h=X(r),v=W(n),g=v.minX,_=v.minY,b=v.maxX,m=v.maxY,O=-1;if(o-g<c&&i-_<c?O=0:b-o<c&&i-_<c?O=1:b-o<c&&m-i<c?O=2:o-g<c&&_-i<c&&(O=3),O>-1){var x=Math.atan2(i-y[O].y,o-y[O].x);u.x=h[O].x+c*Math.cos(x),u.y=h[O].y+c*Math.sin(x)}}return u}function H(t){var e,n,r=t.point,o=t.beforeNode,i=t.afterNode,u=i.rx,c=i.ry,a=(r.y-o.y)/(r.x-o.x),f=u,l=c;return a>=1/0?(e=0,n=l):a<=-1/0?(e=0,n=-l):r.x-o.x>0?(e=f*l/Math.sqrt(l*l+f*f*a*a),n=f*l*a/Math.sqrt(l*l+f*f*a*a)):(e=-f*l/Math.sqrt(l*l+f*f*a*a),n=-f*l*a/Math.sqrt(l*l+f*f*a*a)),{x:e+i.x,y:n+i.y}}function B(t){var e,n=t.point,r=t.beforeNode,o=t.afterNode,i=n.x-r.x,u=n.y-r.y,c=r.rx,a=r.ry,f=Math.sqrt((c-Math.abs(i))*(c-Math.abs(i))+u*u)/Math.sqrt(c*c+a*a),l=o.rx,s=o.ry,p=Math.sqrt((l*l+s*s)*f*f*(l*l/(l*l+s*s))),d=p*(s/l);return e=u>0?d:-d,{x:(i>=0?l-p:p-l)+o.x,y:e+o.y}}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})(t)}function q(){return(q=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function V(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function $(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?V(Object(n),!0).forEach((function(e){nt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function J(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 K(t,e){return(K=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Q(t){var e=function(){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}}();return function(){var n,r=et(t);if(e){var o=et(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Z(this,n)}}function Z(t,e){if(e&&("object"===U(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return tt(t)}function tt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function et(t){return(et=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function nt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}F.defaultProps={radius:0,stroke:"",strokeDasharray:"",className:""},function(t){t.NODE="node",t.CIRCLE_NODE="circle-node",t.POLYGON_NODE="polygon-node",t.RECT_NODE="rect-node",t.TEXT_NODE="text-node",t.ELLIPSE_NODE="ellipse-node",t.DIAMOND_NODE="diamond-node",t.EDGE="edge",t.LINE_EDGE="line-edge",t.POLYLINE_EDGE="polyline-edge",t.BEZIER_EDGE="bezier-edge",t.GRAPH="graph"}(L||(L={}));var rt=f.LogicFlowUtil.createDrag,ot=function(t){!function(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&&K(t,e)}(i,t);var e,n,r,o=Q(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),nt(tt(e=o.call(this)),"dragHandler",void 0),nt(tt(e),"index",void 0),nt(tt(e),"nodeModel",void 0),nt(tt(e),"graphModel",void 0),nt(tt(e),"updatePosition",(function(t){var n=t.deltaX,r=t.deltaY,o=e.nodeModel,i=o.x,u=o.y;e.nodeModel.x=i+n/2,e.nodeModel.y=u+r/2,e.nodeModel.moveText(n/2,r/2)})),nt(tt(e),"getResize",(function(t){var e=t.index,n=t.deltaX,r=t.deltaY,o=t.width,i=t.height,u=t.pct,c=void 0===u?1:u,a={width:o,height:i};switch(e){case 0:a.width=o-n*c,a.height=i-r*c;break;case 1:a.width=o+n*c,a.height=i-r*c;break;case 2:a.width=o+n,a.height=i+r*c;break;case 3:a.width=o-n*c,a.height=i+r*c}return a})),nt(tt(e),"updateRect",(function(t){var n=t.deltaX,r=t.deltaY,o=e.nodeModel,i=o.id,u=o.x,c=o.y,a=o.width,f=o.height,l=o.radius,s=tt(e).index,p=e.getResize({index:s,deltaX:n,deltaY:r,width:a,height:f,pct:1}),d=e.nodeModel,y=d.minWidth,h=d.minHeight,v=d.maxWidth,g=d.maxHeight;if(!(p.width<y||p.width>v||p.height<h||p.height>g)){e.updatePosition({deltaX:n,deltaY:r}),e.nodeModel.width=p.width,e.nodeModel.height=p.height,e.nodeModel.setProperties({nodeSize:{width:p.width,height:p.height}});var _,b=e.getNodeEdges(i),m={x:u,y:c,width:a,height:f,radius:l},O={x:e.nodeModel.x,y:e.nodeModel.y,width:e.nodeModel.width,height:e.nodeModel.height,radius:l},x={point:"",beforeNode:m,afterNode:O};b.sourceEdges.forEach((function(t){x.point=t.startPoint,_=G(x),t.updateStartPoint(_)})),b.targetEdges.forEach((function(t){x.point=t.endPoint,_=G(x),t.updateEndPoint(_)})),e.eventEmit({beforeNode:m,afterNode:O})}})),nt(tt(e),"updateEllipse",(function(t){var n=t.deltaX,r=t.deltaY,o=e.nodeModel,i=o.id,u=o.rx,c=o.ry,a=o.x,f=o.y,l=tt(e).index,s=u,p=c,d=e.getResize({index:l,deltaX:n,deltaY:r,width:s,height:p,pct:.5}),y=e.nodeModel,h=y.minWidth,v=y.minHeight,g=y.maxWidth,_=y.maxHeight;if(!(d.width<h/2||d.width>g/2||d.height<v/2||d.height>_/2)){e.updatePosition({deltaX:n,deltaY:r}),e.nodeModel.rx=d.width,e.nodeModel.ry=d.height,e.nodeModel.setProperties({nodeSize:{rx:d.width,ry:d.height}});var b,m=e.getNodeEdges(i),O={x:a,y:f},x={rx:d.width,ry:d.height,x:e.nodeModel.x,y:e.nodeModel.y},w={point:{},beforeNode:O,afterNode:x};m.sourceEdges.forEach((function(t){w.point=t.startPoint,b=H(w),t.updateStartPoint(b)})),m.targetEdges.forEach((function(t){w.point=t.endPoint,b=H(w),t.updateEndPoint(b)})),e.eventEmit({beforeNode:$($({},O),{},{rx:u,ry:c}),afterNode:x})}})),nt(tt(e),"updateDiamond",(function(t){var n=t.deltaX,r=t.deltaY,o=e.nodeModel,i=o.id,u=o.rx,c=o.ry,a=o.x,f=o.y,l=tt(e).index,s=u,p=c,d=e.getResize({index:l,deltaX:n,deltaY:r,width:s,height:p,pct:.5}),y=ce.sizeRange.ellipse,h=y.minRx,v=y.minRy,g=y.maxRx,_=y.maxRy;if(!(d.width<h||d.width>g||d.height<v||d.height>_)){e.updatePosition({deltaX:n,deltaY:r}),e.nodeModel.rx=d.width,e.nodeModel.ry=d.height,e.nodeModel.setProperties({nodeSize:{rx:d.width,ry:d.height}});var b,m={x:a,y:f,rx:u,ry:c},O={rx:d.width,ry:d.height,x:e.nodeModel.x,y:e.nodeModel.y},x={point:{},beforeNode:m,afterNode:O},w=e.getNodeEdges(i);w.sourceEdges.forEach((function(t){x.point=t.startPoint,b=B(x),t.updateStartPoint(b)})),w.targetEdges.forEach((function(t){x.point=t.endPoint,b=B(x),t.updateEndPoint(b)})),e.eventEmit({beforeNode:m,afterNode:O})}})),nt(tt(e),"eventEmit",(function(t){var n=t.beforeNode,r=t.afterNode,o=e.nodeModel,i=o.id,u=o.modelType,c=o.type,a=$({id:i,modelType:u,type:c},n),f=$({id:i,modelType:u,type:c},r);e.graphModel.eventCenter.emit("node:resize",{oldNodeSize:a,newNodeSize:f})})),nt(tt(e),"onDraging",(function(t){var n=t.deltaX,r=t.deltaY,o=e.nodeModel.modelType;o===L.RECT_NODE?e.updateRect({deltaX:n,deltaY:r}):o===L.ELLIPSE_NODE?e.updateEllipse({deltaX:n,deltaY:r}):o===L.DIAMOND_NODE&&e.updateDiamond({deltaX:n,deltaY:r})})),e.index=t.index,e.nodeModel=t.nodeModel,e.graphModel=t.graphModel;var n=e.graphModel.gridSize,r=2;return n>1&&(r=2*n),e.state={},e.dragHandler=rt({onDraging:e.onDraging,step:r}),e}return e=i,(n=[{key:"getNodeEdges",value:function(t){for(var e=this.graphModel.edges,n=[],r=[],o=0;o<e.length;o++){var i=e[o];i.sourceNodeId===t?n.push(i):e[o].targetNodeId===t&&r.push(i)}return{sourceEdges:n,targetEdges:r}}},{key:"render",value:function(){var t=this.props,e=t.x,n=t.y,r=t.style,o=t.index,i=ce.style.controlPoint,u=i.width,c=i.height,a=i.fill,f=i.stroke;return h("g",{className:"lf-resize-control-".concat(o)},h(F,q({className:"lf-node-control",x:e,y:n},r,{width:u,height:c,fill:a,stroke:f,onMouseDown:this.dragHandler})))}}])&&J(e.prototype,n),r&&J(e,r),i}(_);function it(t){return(it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ut(){return(ut=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function ct(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 at(t,e){return(at=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ft(t){var e=function(){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}}();return function(){var n,r=st(t);if(e){var o=st(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return lt(this,n)}}function lt(t,e){if(e&&("object"===it(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function st(t){return(st=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var pt=function(t){!function(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&&at(t,e)}(i,t);var e,n,r,o=ft(i);function i(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this)).state={},t}return e=i,(n=[{key:"getResizeControl",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,o=t.height,i=t.nodeModel,u=t.graphModel,c={minX:e-r/2,minY:n-o/2,maxX:e+r/2,maxY:n+o/2},a=c.minX,f=c.minY,l=c.maxX,s=c.maxY;return[{x:a,y:f},{x:l,y:f},{x:l,y:s},{x:a,y:s}].map((function(t,e){return h(ot,ut({index:e},t,{nodeModel:i,graphModel:u}))}))}},{key:"getGroupSolid",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,o=t.height,i=ce.style.outline;return h(F,{fill:"none",x:e,y:n,width:r,height:o,stroke:i.stroke,strokeWidth:i.strokeWidth,strokeDasharray:i.strokeDasharray})}},{key:"render",value:function(){return h("g",{className:"lf-resize-control"},this.getResizeControl())}}])&&ct(e.prototype,n),r&&ct(e,r),i}(_);function dt(t){return(dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yt(){return(yt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function ht(t,e,n){return(ht="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=jt(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function vt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gt(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 _t(t,e,n){return e&>(t.prototype,e),n&>(t,n),t}function bt(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&&mt(t,e)}function mt(t,e){return(mt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ot(t){var e=function(){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}}();return function(){var n,r=jt(t);if(e){var o=jt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xt(this,n)}}function xt(t,e){if(e&&("object"===dt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return wt(t)}function wt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function jt(t){return(jt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function St(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Pt=function(t){bt(n,t);var e=Ot(n);function n(){var t;vt(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return St(wt(t=e.call.apply(e,[this].concat(o))),"minWidth",30),St(wt(t),"minHeight",30),St(wt(t),"maxWidth",2e3),St(wt(t),"maxHeight",2e3),t}return _t(n,[{key:"setAttributes",value:function(){var t=this.properties.nodeSize;t&&(this.width=t.width,this.height=t.height)}}]),n}(f.RectNodeModel),Et={type:"rect",view:function(t){bt(n,t);var e=Ot(n);function n(){return vt(this,n),e.apply(this,arguments)}return _t(n,[{key:"getControlGroup",value:function(t){var e=this.props,n=e.model,r=e.graphModel;return Object(f.h)(pt,yt({},t,{nodeModel:n,graphModel:r}))}},{key:"getResizeShape",value:function(){return ht(jt(n.prototype),"getShape",this).call(this)}},{key:"getShape",value:function(){var t=ht(jt(n.prototype),"getAttributes",this).call(this),e=this.props.model.isSelected;return Object(f.h)("g",null,this.getResizeShape(),e?this.getControlGroup(t):"")}}]),n}(f.RectNode),model:Pt};function kt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Mt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Rt(t){var e=t.x,n=void 0===e?0:e,r=t.y,o=void 0===r?0:r,i=t.rx,u=void 0===i?4:i,c=t.ry,a=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?kt(Object(n),!0).forEach((function(e){Mt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):kt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({cx:n,cy:o,rx:u,ry:void 0===c?4:c,fill:"transparent",fillOpacity:1,strokeWidth:1,stroke:"#000",strokeOpacity:1},t);return Object(f.h)("ellipse",a)}function Nt(t){return(Nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Tt(){return(Tt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function Dt(t,e,n){return(Dt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Xt(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function At(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ct(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 Lt(t,e,n){return e&&Ct(t.prototype,e),n&&Ct(t,n),t}function zt(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&&It(t,e)}function It(t,e){return(It=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Yt(t){var e=function(){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}}();return function(){var n,r=Xt(t);if(e){var o=Xt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ft(this,n)}}function Ft(t,e){if(e&&("object"===Nt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Wt(t)}function Wt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Xt(t){return(Xt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Gt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ht=function(t){zt(n,t);var e=Yt(n);function n(){var t;At(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return Gt(Wt(t=e.call.apply(e,[this].concat(o))),"minWidth",30),Gt(Wt(t),"minHeight",30),Gt(Wt(t),"maxWidth",2e3),Gt(Wt(t),"maxHeight",2e3),t}return Lt(n,[{key:"setAttributes",value:function(){var t=this.properties.nodeSize;t&&(this.rx=t.rx,this.ry=t.ry)}}]),n}(f.EllipseNodeModel),Bt={type:"ellipse",view:function(t){zt(n,t);var e=Yt(n);function n(){return At(this,n),e.apply(this,arguments)}return Lt(n,[{key:"getControlGroup",value:function(t){var e=this.props,n=e.model,r=e.graphModel;return Object(f.h)(pt,Tt({},t,{nodeModel:n,graphModel:r}))}},{key:"getResizeShape",value:function(t){return Object(f.h)("g",null,Object(f.h)(Rt,t))}},{key:"getShape",value:function(){var t=Dt(Xt(n.prototype),"getAttributes",this).call(this),e=this.props.model.isSelected;return Object(f.h)("g",null,this.getResizeShape(t),e?this.getControlGroup(t):"")}}]),n}(f.EllipseNode),model:Ht};n(150);function Ut(t){var e=t.fillOpacity,n=void 0===e?1:e,r=t.strokeWidth,o=void 0===r?1:r,i=t.strokeOpacity,u=void 0===i?1:i,c=t.fill,a=void 0===c?"transparent":c,l=t.stroke,s=void 0===l?"#000":l,p=t.points,d=t.className,y={fill:a,fillOpacity:n,strokeWidth:o,stroke:s,strokeOpacity:u,points:"",className:void 0===d?"lf-basic-shape":d};return y.points=p.map((function(t){return t.join(",")})).join(" "),Object(f.h)("polygon",y)}function qt(t){return(qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Vt(){return(Vt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function $t(t,e,n){return($t="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=re(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Jt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Kt(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 Qt(t,e,n){return e&&Kt(t.prototype,e),n&&Kt(t,n),t}function Zt(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&&te(t,e)}function te(t,e){return(te=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ee(t){var e=function(){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}}();return function(){var n,r=re(t);if(e){var o=re(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ne(this,n)}}function ne(t,e){if(e&&("object"===qt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function re(t){return(re=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var oe=function(t){Zt(n,t);var e=ee(n);function n(){return Jt(this,n),e.apply(this,arguments)}return Qt(n,[{key:"setAttributes",value:function(){var t=this.properties.nodeSize;t&&(this.rx=t.rx,this.ry=t.ry)}}]),n}(f.DiamondNodeModel),ie={type:"diamond",view:function(t){Zt(n,t);var e=ee(n);function n(){return Jt(this,n),e.apply(this,arguments)}return Qt(n,[{key:"getControlGroup",value:function(t){var e=this.props,n=e.model,r=e.graphModel;return Object(f.h)(pt,Vt({},t,{nodeModel:n,graphModel:r}))}},{key:"getResizeShape",value:function(t){return Object(f.h)("g",null,Object(f.h)(Ut,t))}},{key:"getShape",value:function(){var t=$t(re(n.prototype),"getAttributes",this).call(this),e=this.props.model.isSelected;return Object(f.h)("g",null,this.getResizeShape(t),e?this.getControlGroup(t):"")}}]),n}(f.DiamondNode),model:oe},ue={pluginName:"node-resize",step:0,style:{outline:{stroke:"#000000",strokeWidth:1,strokeDasharray:"3,3"},controlPoint:{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}},sizeRange:{ellipse:{minRx:15,minRy:15,maxRx:150,maxRy:150},diamond:{minRx:15,minRy:15,maxRx:150,maxRy:150}},install:function(t){t.setTheme({rect:{strokeWidth:2,outlineColor:"transparent"},ellipse:{strokeWidth:2,outlineColor:"transparent"},diamond:{strokeWidth:2,outlineColor:"transparent"}}),t.register({type:Et.type,view:Et.view,model:Et.model}),t.register({type:Bt.type,view:Bt.view,model:Bt.model}),t.register({type:ie.type,view:ie.view,model:ie.model})}},ce=e.default=ue}])}));
|
|
1
|
+
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("window"));else if("function"==typeof define&&define.amd)define(["window"],e);else{var n="object"==typeof exports?e(require("window")):e(t.window);for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(window,(function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return 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=202)}([function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n(83))},function(t,e,n){var r=n(0),o=n(35),i=n(5),u=n(29),c=n(36),a=n(47),f=o("wks"),l=r.Symbol,s=a?l:l&&l.withoutSetter||u;t.exports=function(t){return i(f,t)&&(c||"string"==typeof f[t])||(c&&i(l,t)?f[t]=l[t]:f[t]=s("Symbol."+t)),f[t]}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(0),o=n(18).f,i=n(9),u=n(13),c=n(33),a=n(57),f=n(58);t.exports=function(t,e){var n,l,s,p,d,y=t.target,h=t.global,v=t.stat;if(n=h?r:v?r[y]||c(y,{}):(r[y]||{}).prototype)for(l in e){if(p=e[l],s=t.noTargetGet?(d=o(n,l))&&d.value:n[l],!f(h?l:y+(v?".":"#")+l,t.forced)&&void 0!==s){if(typeof p==typeof s)continue;a(p,s)}(t.sham||s&&s.sham)&&i(p,"sham",!0),u(n,l,p,t)}}},function(t,e,n){var r=n(11),o={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,e){return o.call(r(t),e)}},function(t,e,n){var r=n(7),o=n(48),i=n(8),u=n(21),c=Object.defineProperty;e.f=r?c:function(t,e,n){if(i(t),e=u(e),i(n),o)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(2);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,n){var r=n(3);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e,n){var r=n(7),o=n(6),i=n(15);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(41),o=n(27);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(27);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(0),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t]):r[t]&&r[t][e]}},function(t,e,n){var r=n(0),o=n(9),i=n(5),u=n(33),c=n(44),a=n(17),f=a.get,l=a.enforce,s=String(String).split("String");(t.exports=function(t,e,n,c){var a,f=!!c&&!!c.unsafe,p=!!c&&!!c.enumerable,d=!!c&&!!c.noTargetGet;"function"==typeof n&&("string"!=typeof e||i(n,"name")||o(n,"name",e),(a=l(n)).source||(a.source=s.join("string"==typeof e?e:""))),t!==r?(f?!d&&t[e]&&(p=!0):delete t[e],p?t[e]=n:o(t,e,n)):p?t[e]=n:u(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&f(this).source||c(this)}))},function(t,e,n){var r=n(34),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports={}},function(t,e,n){var r,o,i,u=n(85),c=n(0),a=n(3),f=n(9),l=n(5),s=n(32),p=n(26),d=n(16),y=c.WeakMap;if(u||s.state){var h=s.state||(s.state=new y),v=h.get,g=h.has,_=h.set;r=function(t,e){if(g.call(h,t))throw new TypeError("Object already initialized");return e.facade=t,_.call(h,t,e),e},o=function(t){return v.call(h,t)||{}},i=function(t){return g.call(h,t)}}else{var b=p("state");d[b]=!0,r=function(t,e){if(l(t,b))throw new TypeError("Object already initialized");return e.facade=t,f(t,b,e),e},o=function(t){return l(t,b)?t[b]:{}},i=function(t){return l(t,b)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!a(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){var r=n(7),o=n(50),i=n(15),u=n(10),c=n(21),a=n(5),f=n(48),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=u(t),e=c(e),f)try{return l(t,e)}catch(t){}if(a(t,e))return i(!o.f.call(t,e),t[e])}},function(t,e,n){var r=n(12),o=n(47);t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return"function"==typeof e&&Object(t)instanceof e}},function(t,e,n){var r,o=n(8),i=n(82),u=n(37),c=n(16),a=n(92),f=n(51),l=n(26),s=l("IE_PROTO"),p=function(){},d=function(t){return"<script>"+t+"<\/script>"},y=function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e},h=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e;h="undefined"!=typeof document?document.domain&&r?y(r):((e=f("iframe")).style.display="none",a.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F):y(r);for(var n=u.length;n--;)delete h.prototype[u[n]];return h()};c[s]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(p.prototype=o(t),n=new p,p.prototype=null,n[s]=t):n=h(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(76),o=n(19);t.exports=function(t){var e=r(t,"string");return o(e)?e:String(e)}},function(t,e){t.exports={}},function(e,n){e.exports=t},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=!1},function(t,e,n){var r=n(35),o=n(29),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(24);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},function(t,e,n){var r=n(53),o=n(37).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(19);t.exports=function(t){if(r(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)}},function(t,e,n){var r=n(0),o=n(33),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,e,n){var r=n(0);t.exports=function(t,e){try{Object.defineProperty(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(25),o=n(32);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.17.2",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(38),o=n(2);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,n){var r,o,i=n(0),u=n(66),c=i.process,a=i.Deno,f=c&&c.versions||a&&a.version,l=f&&f.v8;l?o=(r=l.split("."))[0]<4?1:r[0]+r[1]:u&&(!(r=u.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=u.match(/Chrome\/(\d+)/))&&(o=r[1]),t.exports=o&&+o},function(t,e,n){var r=n(6).f,o=n(5),i=n(1)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(45);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(2),o=n(24),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},function(t,e,n){var r=n(40),o=n(41),i=n(11),u=n(14),c=n(59),a=[].push,f=function(t){var e=1==t,n=2==t,f=3==t,l=4==t,s=6==t,p=7==t,d=5==t||s;return function(y,h,v,g){for(var _,b,m=i(y),O=o(m),x=r(h,v,3),w=u(O.length),j=0,S=g||c,P=e?S(y,w):n||p?S(y,0):void 0;w>j;j++)if((d||j in O)&&(b=x(_=O[j],j,m),t))if(e)P[j]=b;else if(b)switch(t){case 3:return!0;case 5:return _;case 6:return j;case 2:a.call(P,_)}else switch(t){case 4:return!1;case 7:a.call(P,_)}return s?-1:f||l?l:P}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},function(t,e,n){var r={};r[n(1)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,e,n){var r=n(32),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e,n){var r=n(53),o=n(37);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(36);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){var r=n(7),o=n(2),i=n(51);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){"use strict";var r=n(10),o=n(91),i=n(22),u=n(17),c=n(56),a=u.set,f=u.getterFor("Array Iterator");t.exports=c(Array,"Array",(function(t,e){a(this,{type:"Array Iterator",target:r(t),index:0,kind:e})}),(function(){var t=f(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},function(t,e,n){var r=n(0),o=n(3),i=r.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},function(t,e,n){var r=n(5),o=n(11),i=n(26),u=n(87),c=i("IE_PROTO"),a=Object.prototype;t.exports=u?Object.getPrototypeOf:function(t){return t=o(t),r(t,c)?t[c]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(5),o=n(10),i=n(72).indexOf,u=n(16);t.exports=function(t,e){var n,c=o(t),a=0,f=[];for(n in c)!r(u,n)&&r(c,n)&&f.push(n);for(;e.length>a;)r(c,n=e[a++])&&(~i(f,n)||f.push(n));return f}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){"use strict";var r=n(21),o=n(6),i=n(15);t.exports=function(t,e,n){var u=r(e);u in t?o.f(t,u,i(0,n)):t[u]=n}},function(t,e,n){"use strict";var r=n(4),o=n(94),i=n(52),u=n(64),c=n(39),a=n(9),f=n(13),l=n(1),s=n(25),p=n(22),d=n(65),y=d.IteratorPrototype,h=d.BUGGY_SAFARI_ITERATORS,v=l("iterator"),g=function(){return this};t.exports=function(t,e,n,l,d,_,b){o(n,e,l);var m,O,x,w=function(t){if(t===d&&k)return k;if(!h&&t in P)return P[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},j=e+" Iterator",S=!1,P=t.prototype,E=P[v]||P["@@iterator"]||d&&P[d],k=!h&&E||w(d),M="Array"==e&&P.entries||E;if(M&&(m=i(M.call(new t)),y!==Object.prototype&&m.next&&(s||i(m)===y||(u?u(m,y):"function"!=typeof m[v]&&a(m,v,g)),c(m,j,!0,!0),s&&(p[j]=g))),"values"==d&&E&&"values"!==E.name&&(S=!0,k=function(){return E.call(this)}),s&&!b||P[v]===k||a(P,v,k),p[e]=k,d)if(O={values:w("values"),keys:_?k:w("keys"),entries:w("entries")},b)for(x in O)(h||S||!(x in P))&&f(P,x,O[x]);else r({target:e,proto:!0,forced:h||S},O);return O}},function(t,e,n){var r=n(5),o=n(71),i=n(18),u=n(6);t.exports=function(t,e){for(var n=o(e),c=u.f,a=i.f,f=0;f<n.length;f++){var l=n[f];r(t,l)||c(t,l,a(e,l))}}},function(t,e,n){var r=n(2),o=/#|\.prototype\./,i=function(t,e){var n=c[u(t)];return n==f||n!=a&&("function"==typeof e?r(e):!!e)},u=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=i.data={},a=i.NATIVE="N",f=i.POLYFILL="P";t.exports=i},function(t,e,n){var r=n(86);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},function(t,e,n){var r=n(34),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},function(t,e,n){"use strict";var r=n(42).forEach,o=n(67)("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,n){var r=n(2),o=n(1),i=n(38),u=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[];return(e.constructor={})[u]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,n){var r=n(8),o=n(95);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return r(n),o(i),e?t.call(n,i):n.__proto__=i,n}}():void 0)},function(t,e,n){"use strict";var r,o,i,u=n(2),c=n(52),a=n(9),f=n(5),l=n(1),s=n(25),p=l("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(o=c(c(i)))!==Object.prototype&&(r=o):d=!0);var y=null==r||u((function(){var t={};return r[p].call(t)!==t}));y&&(r={}),s&&!y||f(r,p)||a(r,p,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},function(t,e,n){var r=n(12);t.exports=r("navigator","userAgent")||""},function(t,e,n){"use strict";var r=n(2);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},function(t,e,n){var r=n(43),o=n(13),i=n(100);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,e,n){"use strict";var r=n(93).charAt,o=n(31),i=n(17),u=n(56),c=i.set,a=i.getterFor("String Iterator");u(String,"String",(function(t){c(this,{type:"String Iterator",string:o(t),index:0})}),(function(){var t,e=a(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})}))},function(t,e,n){"use strict";var r=n(4),o=n(0),i=n(12),u=n(25),c=n(7),a=n(36),f=n(2),l=n(5),s=n(28),p=n(3),d=n(19),y=n(8),h=n(11),v=n(10),g=n(21),_=n(31),b=n(15),m=n(20),O=n(46),x=n(30),w=n(88),j=n(54),S=n(18),P=n(6),E=n(50),k=n(9),M=n(13),R=n(35),N=n(26),T=n(16),D=n(29),A=n(1),C=n(75),L=n(78),z=n(39),I=n(17),Y=n(42).forEach,F=N("hidden"),X=A("toPrimitive"),W=I.set,G=I.getterFor("Symbol"),H=Object.prototype,B=o.Symbol,U=i("JSON","stringify"),q=S.f,V=P.f,$=w.f,J=E.f,K=R("symbols"),Q=R("op-symbols"),Z=R("string-to-symbol-registry"),tt=R("symbol-to-string-registry"),et=R("wks"),nt=o.QObject,rt=!nt||!nt.prototype||!nt.prototype.findChild,ot=c&&f((function(){return 7!=m(V({},"a",{get:function(){return V(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=q(H,e);r&&delete H[e],V(t,e,n),r&&t!==H&&V(H,e,r)}:V,it=function(t,e){var n=K[t]=m(B.prototype);return W(n,{type:"Symbol",tag:t,description:e}),c||(n.description=e),n},ut=function(t,e,n){t===H&&ut(Q,e,n),y(t);var r=g(e);return y(n),l(K,r)?(n.enumerable?(l(t,F)&&t[F][r]&&(t[F][r]=!1),n=m(n,{enumerable:b(0,!1)})):(l(t,F)||V(t,F,b(1,{})),t[F][r]=!0),ot(t,r,n)):V(t,r,n)},ct=function(t,e){y(t);var n=v(e),r=O(n).concat(st(n));return Y(r,(function(e){c&&!at.call(n,e)||ut(t,e,n[e])})),t},at=function(t){var e=g(t),n=J.call(this,e);return!(this===H&&l(K,e)&&!l(Q,e))&&(!(n||!l(this,e)||!l(K,e)||l(this,F)&&this[F][e])||n)},ft=function(t,e){var n=v(t),r=g(e);if(n!==H||!l(K,r)||l(Q,r)){var o=q(n,r);return!o||!l(K,r)||l(n,F)&&n[F][r]||(o.enumerable=!0),o}},lt=function(t){var e=$(v(t)),n=[];return Y(e,(function(t){l(K,t)||l(T,t)||n.push(t)})),n},st=function(t){var e=t===H,n=$(e?Q:v(t)),r=[];return Y(n,(function(t){!l(K,t)||e&&!l(H,t)||r.push(K[t])})),r};(a||(M((B=function(){if(this instanceof B)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?_(arguments[0]):void 0,e=D(t),n=function(t){this===H&&n.call(Q,t),l(this,F)&&l(this[F],e)&&(this[F][e]=!1),ot(this,e,b(1,t))};return c&&rt&&ot(H,e,{configurable:!0,set:n}),it(e,t)}).prototype,"toString",(function(){return G(this).tag})),M(B,"withoutSetter",(function(t){return it(D(t),t)})),E.f=at,P.f=ut,S.f=ft,x.f=w.f=lt,j.f=st,C.f=function(t){return it(A(t),t)},c&&(V(B.prototype,"description",{configurable:!0,get:function(){return G(this).description}}),u||M(H,"propertyIsEnumerable",at,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!a,sham:!a},{Symbol:B}),Y(O(et),(function(t){L(t)})),r({target:"Symbol",stat:!0,forced:!a},{for:function(t){var e=_(t);if(l(Z,e))return Z[e];var n=B(e);return Z[e]=n,tt[n]=e,n},keyFor:function(t){if(!d(t))throw TypeError(t+" is not a symbol");if(l(tt,t))return tt[t]},useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),r({target:"Object",stat:!0,forced:!a,sham:!c},{create:function(t,e){return void 0===e?m(t):ct(m(t),e)},defineProperty:ut,defineProperties:ct,getOwnPropertyDescriptor:ft}),r({target:"Object",stat:!0,forced:!a},{getOwnPropertyNames:lt,getOwnPropertySymbols:st}),r({target:"Object",stat:!0,forced:f((function(){j.f(1)}))},{getOwnPropertySymbols:function(t){return j.f(h(t))}}),U)&&r({target:"JSON",stat:!0,forced:!a||f((function(){var t=B();return"[null]"!=U([t])||"{}"!=U({a:t})||"{}"!=U(Object(t))}))},{stringify:function(t,e,n){for(var r,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=e,(p(e)||void 0!==t)&&!d(t))return s(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!d(e))return e}),o[1]=e,U.apply(null,o)}});B.prototype[X]||k(B.prototype,X,B.prototype.valueOf),z(B,"Symbol"),T[F]=!0},function(t,e,n){var r=n(12),o=n(30),i=n(54),u=n(8);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(u(t)),n=i.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(10),o=n(14),i=n(60),u=function(t){return function(e,n,u){var c,a=r(e),f=o(a.length),l=i(u,f);if(t&&n!=n){for(;f>l;)if((c=a[l++])!=c)return!0}else for(;f>l;l++)if((t||l in a)&&a[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},,function(t,e,n){var r=n(43),o=n(24),i=n(1)("toStringTag"),u="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:u?o(e):"Object"==(r=o(e))&&"function"==typeof e.callee?"Arguments":r}},function(t,e,n){var r=n(1);e.f=r},function(t,e,n){var r=n(3),o=n(19),i=n(84),u=n(1)("toPrimitive");t.exports=function(t,e){if(!r(t)||o(t))return t;var n,c=t[u];if(void 0!==c){if(void 0===e&&(e="default"),n=c.call(t,e),!r(n)||o(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),i(t,e)}},function(t,e,n){var r=n(0),o=n(62),i=n(49),u=n(9),c=n(1),a=c("iterator"),f=c("toStringTag"),l=i.values;for(var s in o){var p=r[s],d=p&&p.prototype;if(d){if(d[a]!==l)try{u(d,a,l)}catch(t){d[a]=l}if(d[f]||u(d,f,s),o[s])for(var y in i)if(d[y]!==i[y])try{u(d,y,i[y])}catch(t){d[y]=i[y]}}}},function(t,e,n){var r=n(101),o=n(5),i=n(75),u=n(6).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||u(e,t,{value:i.f(t)})}},function(t,e,n){var r=n(4),o=n(7);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:n(6).f})},function(t,e,n){"use strict";var r=n(4),o=n(7),i=n(0),u=n(5),c=n(3),a=n(6).f,f=n(57),l=i.Symbol;if(o&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var s={},p=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof p?new l(t):void 0===t?l():l(t);return""===t&&(s[e]=!0),e};f(p,l);var d=p.prototype=l.prototype;d.constructor=p;var y=d.toString,h="Symbol(test)"==String(l("test")),v=/^Symbol\((.*)\)[^)]+$/;a(d,"description",{configurable:!0,get:function(){var t=c(this)?this.valueOf():this,e=y.call(t);if(u(s,t))return"";var n=h?e.slice(7,-1):e.replace(v,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:p})}},function(t,e,n){n(78)("iterator")},function(t,e,n){var r=n(7),o=n(6),i=n(8),u=n(46);t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=u(e),c=r.length,a=0;c>a;)o.f(t,n=r[a++],e[n]);return t}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(3);t.exports=function(t,e){var n,o;if("string"===e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if("string"!==e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(0),o=n(44),i=r.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},function(t,e,n){var r=n(3),o=n(28),i=n(1)("species");t.exports=function(t){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)?r(e)&&null===(e=e[i])&&(e=void 0):e=void 0),void 0===e?Array:e}},function(t,e,n){var r=n(2);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,n){var r=n(10),o=n(30).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return u.slice()}}(t):o(r(t))}},function(t,e,n){"use strict";var r=n(4),o=n(61);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,e,n){var r=n(0),o=n(62),i=n(61),u=n(9);for(var c in o){var a=r[c],f=a&&a.prototype;if(f&&f.forEach!==i)try{u(f,"forEach",i)}catch(t){f.forEach=i}}},function(t,e,n){var r=n(1),o=n(20),i=n(6),u=r("unscopables"),c=Array.prototype;null==c[u]&&i.f(c,u,{configurable:!0,value:o(null)}),t.exports=function(t){c[u][t]=!0}},function(t,e,n){var r=n(12);t.exports=r("document","documentElement")},function(t,e,n){var r=n(34),o=n(31),i=n(27),u=function(t){return function(e,n){var u,c,a=o(i(e)),f=r(n),l=a.length;return f<0||f>=l?t?"":void 0:(u=a.charCodeAt(f))<55296||u>56319||f+1===l||(c=a.charCodeAt(f+1))<56320||c>57343?t?a.charAt(f):u:t?a.slice(f,f+2):c-56320+(u-55296<<10)+65536}};t.exports={codeAt:u(!1),charAt:u(!0)}},function(t,e,n){"use strict";var r=n(65).IteratorPrototype,o=n(20),i=n(15),u=n(39),c=n(22),a=function(){return this};t.exports=function(t,e,n){var f=e+" Iterator";return t.prototype=o(r,{next:i(1,n)}),u(t,f,!1,!0),c[f]=a,t}},function(t,e,n){var r=n(3);t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},,,,,function(t,e,n){"use strict";var r=n(43),o=n(74);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,e,n){var r=n(0);t.exports=r},,,function(t,e,n){"use strict";var r=n(4),o=n(2),i=n(28),u=n(3),c=n(11),a=n(14),f=n(55),l=n(59),s=n(63),p=n(1),d=n(38),y=p("isConcatSpreadable"),h=d>=51||!o((function(){var t=[];return t[y]=!1,t.concat()[0]!==t})),v=s("concat"),g=function(t){if(!u(t))return!1;var e=t[y];return void 0!==e?!!e:i(t)};r({target:"Array",proto:!0,forced:!h||!v},{concat:function(t){var e,n,r,o,i,u=c(this),s=l(u,0),p=0;for(e=-1,r=arguments.length;e<r;e++)if(g(i=-1===e?u:arguments[e])){if(p+(o=a(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,p++)n in i&&f(s,p,i[n])}else{if(p>=9007199254740991)throw TypeError("Maximum allowed index exceeded");f(s,p++,i)}return s.length=p,s}})},,function(t,e,n){var r=n(4),o=n(2),i=n(10),u=n(18).f,c=n(7),a=o((function(){u(1)}));r({target:"Object",stat:!0,forced:!c||a,sham:!c},{getOwnPropertyDescriptor:function(t,e){return u(i(t),e)}})},,,function(t,e,n){n(4)({target:"Object",stat:!0},{setPrototypeOf:n(64)})},function(t,e,n){var r=n(4),o=n(2),i=n(11),u=n(52),c=n(87);r({target:"Object",stat:!0,forced:o((function(){u(1)})),sham:!c},{getPrototypeOf:function(t){return u(i(t))}})},function(t,e,n){var r=n(4),o=n(12),i=n(45),u=n(8),c=n(3),a=n(20),f=n(131),l=n(2),s=o("Reflect","construct"),p=l((function(){function t(){}return!(s((function(){}),[],t)instanceof t)})),d=!l((function(){s((function(){}))})),y=p||d;r({target:"Reflect",stat:!0,forced:y,sham:y},{construct:function(t,e){i(t),u(e);var n=arguments.length<3?t:i(arguments[2]);if(d&&!p)return s(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 r.push.apply(r,e),new(f.apply(t,r))}var o=n.prototype,l=a(c(o)?o:Object.prototype),y=Function.apply.call(t,l,e);return c(y)?y:l}})},function(t,e,n){n(4)({target:"Object",stat:!0,sham:!n(7)},{create:n(20)})},,,,,,,,,,,,,,function(t,e,n){var r=n(4),o=n(11),i=n(46);r({target:"Object",stat:!0,forced:n(2)((function(){i(1)}))},{keys:function(t){return i(o(t))}})},,function(t,e,n){"use strict";var r=n(4),o=n(42).filter;r({target:"Array",proto:!0,forced:!n(63)("filter")},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(4),o=n(7),i=n(71),u=n(10),c=n(18),a=n(55);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){for(var e,n,r=u(t),o=c.f,f=i(r),l={},s=0;f.length>s;)void 0!==(n=o(r,e=f[s++]))&&a(l,e,n);return l}})},function(t,e,n){var r=n(4),o=n(7);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperties:n(82)})},function(t,e,n){"use strict";var r=n(45),o=n(3),i=[].slice,u={},c=function(t,e,n){if(!(e in u)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";u[e]=Function("C,a","return new C("+r.join(",")+")")}return u[e](t,n)};t.exports=Function.bind||function(t){var e=r(this),n=i.call(arguments,1),u=function(){var r=n.concat(i.call(arguments));return this instanceof u?c(e,r.length,r):e.apply(t,r)};return o(e.prototype)&&(u.prototype=e.prototype),u}},function(t,e,n){var r=n(4),o=n(3),i=n(8),u=n(152),c=n(18),a=n(52);r({target:"Reflect",stat:!0},{get:function t(e,n){var r,f,l=arguments.length<3?e:arguments[2];return i(e)===l?e[n]:(r=c.f(e,n))?u(r)?r.value:void 0===r.get?void 0:r.get.call(l):o(f=a(e))?t(f,n,l):void 0}})},,,function(t,e,n){"use strict";var r=n(4),o=n(42).map;r({target:"Array",proto:!0,forced:!n(63)("map")},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},,function(t,e,n){var r=n(4),o=n(153);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},,,,,,,,function(t,e,n){var r=n(4),o=n(160),i=n(91);r({target:"Array",proto:!0},{fill:o}),i("fill")},,,,,function(t,e,n){"use strict";var r=n(4),o=n(41),i=n(10),u=n(67),c=[].join,a=o!=Object,f=u("join",",");r({target:"Array",proto:!0,forced:a||!f},{join:function(t){return c.call(i(this),void 0===t?",":t)}})},,function(t,e,n){var r=n(5);t.exports=function(t){return void 0!==t&&(r(t,"value")||r(t,"writable"))}},function(t,e,n){"use strict";var r=n(7),o=n(2),i=n(46),u=n(54),c=n(50),a=n(11),f=n(41),l=Object.assign,s=Object.defineProperty;t.exports=!l||o((function(){if(r&&1!==l({b:1},l(s({},"a",{enumerable:!0,get:function(){s(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=l({},t)[n]||"abcdefghijklmnopqrst"!=i(l({},e)).join("")}))?function(t,e){for(var n=a(t),o=arguments.length,l=1,s=u.f,p=c.f;o>l;)for(var d,y=f(arguments[l++]),h=s?i(y).concat(s(y)):i(y),v=h.length,g=0;v>g;)d=h[g++],r&&!p.call(y,d)||(n[d]=y[d]);return n}:l},,,,,,,function(t,e,n){"use strict";var r=n(11),o=n(60),i=n(14);t.exports=function(t){for(var e=r(this),n=i(e.length),u=arguments.length,c=o(u>1?arguments[1]:void 0,n),a=u>2?arguments[2]:void 0,f=void 0===a?n:o(a,n);f>c;)e[c++]=t;return e}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.r(e),n.d(e,"NodeResize",(function(){return ue})),n.d(e,"RectResize",(function(){return Et})),n.d(e,"EllipseResize",(function(){return Bt})),n.d(e,"DiamondResize",(function(){return ie}));n(104),n(79),n(109),n(110),n(111),n(112),n(132),n(106),n(137),n(70),n(80),n(68),n(81),n(49),n(69),n(77);var r,o,i,u,c,a,f=n(23),l=(n(135),{}),s=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function d(t,e){for(var n in e)t[n]=e[n];return t}function y(t){var e=t.parentNode;e&&e.removeChild(t)}function h(t,e,n){var o,i,u,c={};for(u in e)"key"==u?o=e[u]:"ref"==u?i=e[u]:c[u]=e[u];if(arguments.length>2&&(c.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(u in t.defaultProps)void 0===c[u]&&(c[u]=t.defaultProps[u]);return v(t,c,o,i,null)}function v(t,e,n,r,u){var c={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==u?++i:u};return null!=o.vnode&&o.vnode(c),c}function g(t){return t.children}function _(t,e){this.props=t,this.context=e}function b(t,e){if(null==e)return t.__?b(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?b(t):null}function m(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return m(t)}}function O(t){(!t.__d&&(t.__d=!0)&&u.push(t)&&!x.__r++||a!==o.debounceRendering)&&((a=o.debounceRendering)||c)(x)}function x(){for(var t;x.__r=u.length;)t=u.sort((function(t,e){return t.__v.__b-e.__v.__b})),u=[],t.some((function(t){var e,n,r,o,i,u;t.__d&&(i=(o=(e=t).__v).__e,(u=e.__P)&&(n=[],(r=d({},o)).__v=o.__v+1,R(u,o,r,e.__n,void 0!==u.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?b(o):i,o.__h),N(n,o),o.__e!=i&&m(o)))}))}function w(t,e,n,r,o,i,u,c,a,f){var p,d,y,h,_,m,O,x=r&&r.__k||s,w=x.length;for(n.__k=[],p=0;p<e.length;p++)if(null!=(h=n.__k[p]=null==(h=e[p])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?v(null,h,null,null,h):Array.isArray(h)?v(g,{children:h},null,null,null):h.__b>0?v(h.type,h.props,h.key,null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(y=x[p])||y&&h.key==y.key&&h.type===y.type)x[p]=void 0;else for(d=0;d<w;d++){if((y=x[d])&&h.key==y.key&&h.type===y.type){x[d]=void 0;break}y=null}R(t,h,y=y||l,o,i,u,c,a,f),_=h.__e,(d=h.ref)&&y.ref!=d&&(O||(O=[]),y.ref&&O.push(y.ref,null,h),O.push(d,h.__c||_,h)),null!=_?(null==m&&(m=_),"function"==typeof h.type&&null!=h.__k&&h.__k===y.__k?h.__d=a=j(h,a,t):a=S(t,h,y,x,_,a),f||"option"!==n.type?"function"==typeof n.type&&(n.__d=a):t.value=""):a&&y.__e==a&&a.parentNode!=t&&(a=b(y))}for(n.__e=m,p=w;p--;)null!=x[p]&&("function"==typeof n.type&&null!=x[p].__e&&x[p].__e==n.__d&&(n.__d=b(r,p+1)),A(x[p],x[p]));if(O)for(p=0;p<O.length;p++)D(O[p],O[++p],O[++p])}function j(t,e,n){var r,o;for(r=0;r<t.__k.length;r++)(o=t.__k[r])&&(o.__=t,e="function"==typeof o.type?j(o,e,n):S(n,o,o,t.__k,o.__e,e));return e}function S(t,e,n,r,o,i){var u,c,a;if(void 0!==e.__d)u=e.__d,e.__d=void 0;else if(null==n||o!=i||null==o.parentNode)t:if(null==i||i.parentNode!==t)t.appendChild(o),u=null;else{for(c=i,a=0;(c=c.nextSibling)&&a<r.length;a+=2)if(c==o)break t;t.insertBefore(o,i),u=i}return void 0!==u?u:o.nextSibling}function P(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]=null==n?"":"number"!=typeof n||p.test(e)?n:n+"px"}function E(t,e,n,r,o){var i;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||P(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||P(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])i=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?r||t.addEventListener(e,i?M:k,i):t.removeEventListener(e,i?M:k,i);else if("dangerouslySetInnerHTML"!==e){if(o)e=e.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null!=n&&(!1!==n||"a"===e[0]&&"r"===e[1])?t.setAttribute(e,n):t.removeAttribute(e))}}function k(t){this.l[t.type+!1](o.event?o.event(t):t)}function M(t){this.l[t.type+!0](o.event?o.event(t):t)}function R(t,e,n,r,i,u,c,a,f){var l,s,p,y,h,v,b,m,O,x,j,S=e.type;if(void 0!==e.constructor)return null;null!=n.__h&&(f=n.__h,a=e.__e=n.__e,e.__h=null,u=[a]),(l=o.__b)&&l(e);try{t:if("function"==typeof S){if(m=e.props,O=(l=S.contextType)&&r[l.__c],x=l?O?O.props.value:l.__:r,n.__c?b=(s=e.__c=n.__c).__=s.__E:("prototype"in S&&S.prototype.render?e.__c=s=new S(m,x):(e.__c=s=new _(m,x),s.constructor=S,s.render=C),O&&O.sub(s),s.props=m,s.state||(s.state={}),s.context=x,s.__n=r,p=s.__d=!0,s.__h=[]),null==s.__s&&(s.__s=s.state),null!=S.getDerivedStateFromProps&&(s.__s==s.state&&(s.__s=d({},s.__s)),d(s.__s,S.getDerivedStateFromProps(m,s.__s))),y=s.props,h=s.state,p)null==S.getDerivedStateFromProps&&null!=s.componentWillMount&&s.componentWillMount(),null!=s.componentDidMount&&s.__h.push(s.componentDidMount);else{if(null==S.getDerivedStateFromProps&&m!==y&&null!=s.componentWillReceiveProps&&s.componentWillReceiveProps(m,x),!s.__e&&null!=s.shouldComponentUpdate&&!1===s.shouldComponentUpdate(m,s.__s,x)||e.__v===n.__v){s.props=m,s.state=s.__s,e.__v!==n.__v&&(s.__d=!1),s.__v=e,e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),s.__h.length&&c.push(s);break t}null!=s.componentWillUpdate&&s.componentWillUpdate(m,s.__s,x),null!=s.componentDidUpdate&&s.__h.push((function(){s.componentDidUpdate(y,h,v)}))}s.context=x,s.props=m,s.state=s.__s,(l=o.__r)&&l(e),s.__d=!1,s.__v=e,s.__P=t,l=s.render(s.props,s.state,s.context),s.state=s.__s,null!=s.getChildContext&&(r=d(d({},r),s.getChildContext())),p||null==s.getSnapshotBeforeUpdate||(v=s.getSnapshotBeforeUpdate(y,h)),j=null!=l&&l.type===g&&null==l.key?l.props.children:l,w(t,Array.isArray(j)?j:[j],e,n,r,i,u,c,a,f),s.base=e.__e,e.__h=null,s.__h.length&&c.push(s),b&&(s.__E=s.__=null),s.__e=!1}else null==u&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=T(n.__e,e,n,r,i,u,c,f);(l=o.diffed)&&l(e)}catch(t){e.__v=null,(f||null!=u)&&(e.__e=a,e.__h=!!f,u[u.indexOf(a)]=null),o.__e(t,e,n)}}function N(t,e){o.__c&&o.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){o.__e(t,e.__v)}}))}function T(t,e,n,o,i,u,c,a){var f,s,p,d=n.props,h=e.props,v=e.type,g=0;if("svg"===v&&(i=!0),null!=u)for(;g<u.length;g++)if((f=u[g])&&(f===t||(v?f.localName==v:3==f.nodeType))){t=f,u[g]=null;break}if(null==t){if(null===v)return document.createTextNode(h);t=i?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,h.is&&h),u=null,a=!1}if(null===v)d===h||a&&t.data===h||(t.data=h);else{if(u=u&&r.call(t.childNodes),s=(d=n.props||l).dangerouslySetInnerHTML,p=h.dangerouslySetInnerHTML,!a){if(null!=u)for(d={},g=0;g<t.attributes.length;g++)d[t.attributes[g].name]=t.attributes[g].value;(p||s)&&(p&&(s&&p.__html==s.__html||p.__html===t.innerHTML)||(t.innerHTML=p&&p.__html||""))}if(function(t,e,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in e||E(t,i,null,n[i],r);for(i in e)o&&"function"!=typeof e[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===e[i]||E(t,i,e[i],n[i],r)}(t,h,d,i,a),p)e.__k=[];else if(g=e.props.children,w(t,Array.isArray(g)?g:[g],e,n,o,i&&"foreignObject"!==v,u,c,u?u[0]:n.__k&&b(n,0),a),null!=u)for(g=u.length;g--;)null!=u[g]&&y(u[g]);a||("value"in h&&void 0!==(g=h.value)&&(g!==t.value||"progress"===v&&!g)&&E(t,"value",g,d.value,!1),"checked"in h&&void 0!==(g=h.checked)&&g!==t.checked&&E(t,"checked",g,d.checked,!1))}return t}function D(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){o.__e(t,n)}}function A(t,e,n){var r,i;if(o.unmount&&o.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||D(r,null,e)),null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){o.__e(t,e)}r.base=r.__P=null}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&A(r[i],e,"function"!=typeof t.type);n||null==t.__e||y(t.__e),t.__e=t.__d=void 0}function C(t,e,n){return this.constructor(t,n)}r=s.slice,o={__e:function(t,e){for(var n,r,o;e=e.__;)if((n=e.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(t)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(t),o=n.__d),o)return n.__E=n}catch(e){t=e}throw t}},i=0,_.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof t&&(t=t(d({},n),this.props)),t&&d(n,t),null!=t&&this.__v&&(e&&this.__h.push(e),O(this))},_.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),O(this))},_.prototype.render=g,u=[],c="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,x.__r=0;var L;n(89),n(90),n(145),n(126),n(128),n(129),n(130);function z(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function I(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?z(Object(n),!0).forEach((function(e){Y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function F(t){var e=t.x,n=t.y,r=t.width,o=t.height,i=t.radius,u=t.className,c=e-r/2,a=n-o/2,l=I(I({width:10,height:10,cx:0,cy:0,rx:i||0,ry:i||0,fill:"transparent",fillOpacity:1,strokeWidth:"1px",stroke:"#000",strokeOpacity:1,className:"lf-basic-shape ".concat(u)},t),{},{x:c,y:a});return Object(f.h)("rect",l)}function X(t){var e=t.x,n=t.y,r=t.width,o=t.height;return{minX:e-r/2,minY:n-o/2,maxX:e+r/2,maxY:n+o/2}}function W(t){var e=X(t),n=t.radius,r=e.minX,o=e.minY,i=e.maxX,u=e.maxY;return[{x:r+n,y:o+n},{x:i-n,y:o+n},{x:i-n,y:u-n},{x:r+n,y:u-n}]}function G(t){var e=t.point,n=t.beforeNode,r=t.afterNode,o=e.x,i=e.y,u={x:o,y:i},c=n.radius,a=X(n),f=X(r);if(o===a.minX){u.x=f.minX;var l=(i-n.y)/(n.height/2-c);u.y=l?r.y+(r.height/2-c)*l:r.y}else if(o===a.maxX){u.x=f.maxX;var s=(i-n.y)/(n.height/2-c);u.y=s?r.y+(r.height/2-c)*s:r.y}else if(i===a.minY){u.y=f.minY;var p=(o-n.x)/(n.width/2-c);u.x=p?r.x+(r.width/2-c)*p:r.x}else if(i===a.maxY){u.y=f.maxY;var d=(o-n.x)/(n.width/2-c);u.x=d?r.x+(r.width/2-c)*d:r.x}else{var y=W(n),h=W(r),v=X(n),g=v.minX,_=v.minY,b=v.maxX,m=v.maxY,O=-1;if(o-g<c&&i-_<c?O=0:b-o<c&&i-_<c?O=1:b-o<c&&m-i<c?O=2:o-g<c&&_-i<c&&(O=3),O>-1){var x=Math.atan2(i-y[O].y,o-y[O].x);u.x=h[O].x+c*Math.cos(x),u.y=h[O].y+c*Math.sin(x)}}return u}function H(t){var e,n,r=t.point,o=t.beforeNode,i=t.afterNode,u=i.rx,c=i.ry,a=(r.y-o.y)/(r.x-o.x),f=u,l=c;return a>=1/0?(e=0,n=l):a<=-1/0?(e=0,n=-l):r.x-o.x>0?(e=f*l/Math.sqrt(l*l+f*f*a*a),n=f*l*a/Math.sqrt(l*l+f*f*a*a)):(e=-f*l/Math.sqrt(l*l+f*f*a*a),n=-f*l*a/Math.sqrt(l*l+f*f*a*a)),{x:e+i.x,y:n+i.y}}function B(t){var e,n=t.point,r=t.beforeNode,o=t.afterNode,i=n.x-r.x,u=n.y-r.y,c=r.rx,a=r.ry,f=Math.sqrt((c-Math.abs(i))*(c-Math.abs(i))+u*u)/Math.sqrt(c*c+a*a),l=o.rx,s=o.ry,p=Math.sqrt((l*l+s*s)*f*f*(l*l/(l*l+s*s))),d=p*(s/l);return e=u>0?d:-d,{x:(i>=0?l-p:p-l)+o.x,y:e+o.y}}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})(t)}function q(){return(q=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function V(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function $(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?V(Object(n),!0).forEach((function(e){nt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function J(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 K(t,e){return(K=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Q(t){var e=function(){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}}();return function(){var n,r=et(t);if(e){var o=et(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Z(this,n)}}function Z(t,e){if(e&&("object"===U(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return tt(t)}function tt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function et(t){return(et=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function nt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}F.defaultProps={radius:0,stroke:"",strokeDasharray:"",className:""},function(t){t.NODE="node",t.CIRCLE_NODE="circle-node",t.POLYGON_NODE="polygon-node",t.RECT_NODE="rect-node",t.TEXT_NODE="text-node",t.ELLIPSE_NODE="ellipse-node",t.DIAMOND_NODE="diamond-node",t.EDGE="edge",t.LINE_EDGE="line-edge",t.POLYLINE_EDGE="polyline-edge",t.BEZIER_EDGE="bezier-edge",t.GRAPH="graph"}(L||(L={}));var rt=f.LogicFlowUtil.createDrag,ot=function(t){!function(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&&K(t,e)}(i,t);var e,n,r,o=Q(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),nt(tt(e=o.call(this)),"dragHandler",void 0),nt(tt(e),"index",void 0),nt(tt(e),"nodeModel",void 0),nt(tt(e),"graphModel",void 0),nt(tt(e),"updatePosition",(function(t){var n=t.deltaX,r=t.deltaY,o=e.nodeModel,i=o.x,u=o.y;e.nodeModel.x=i+n/2,e.nodeModel.y=u+r/2,e.nodeModel.moveText(n/2,r/2)})),nt(tt(e),"getResize",(function(t){var e=t.index,n=t.deltaX,r=t.deltaY,o=t.width,i=t.height,u=t.pct,c=void 0===u?1:u,a={width:o,height:i};switch(e){case 0:a.width=o-n*c,a.height=i-r*c;break;case 1:a.width=o+n*c,a.height=i-r*c;break;case 2:a.width=o+n,a.height=i+r*c;break;case 3:a.width=o-n*c,a.height=i+r*c}return a})),nt(tt(e),"updateRect",(function(t){var n=t.deltaX,r=t.deltaY,o=e.nodeModel,i=o.id,u=o.x,c=o.y,a=o.width,f=o.height,l=o.radius,s=tt(e).index,p=e.getResize({index:s,deltaX:n,deltaY:r,width:a,height:f,pct:1}),d=e.nodeModel,y=d.minWidth,h=d.minHeight,v=d.maxWidth,g=d.maxHeight;if(!(p.width<y||p.width>v||p.height<h||p.height>g)){e.updatePosition({deltaX:n,deltaY:r}),e.nodeModel.width=p.width,e.nodeModel.height=p.height,e.nodeModel.setProperties({nodeSize:{width:p.width,height:p.height}});var _,b=e.getNodeEdges(i),m={x:u,y:c,width:a,height:f,radius:l},O={x:e.nodeModel.x,y:e.nodeModel.y,width:e.nodeModel.width,height:e.nodeModel.height,radius:l},x={point:"",beforeNode:m,afterNode:O};b.sourceEdges.forEach((function(t){x.point=t.startPoint,_=G(x),t.updateStartPoint(_)})),b.targetEdges.forEach((function(t){x.point=t.endPoint,_=G(x),t.updateEndPoint(_)})),e.eventEmit({beforeNode:m,afterNode:O})}})),nt(tt(e),"updateEllipse",(function(t){var n=t.deltaX,r=t.deltaY,o=e.nodeModel,i=o.id,u=o.rx,c=o.ry,a=o.x,f=o.y,l=tt(e).index,s=u,p=c,d=e.getResize({index:l,deltaX:n,deltaY:r,width:s,height:p,pct:.5}),y=e.nodeModel,h=y.minWidth,v=y.minHeight,g=y.maxWidth,_=y.maxHeight;if(!(d.width<h/2||d.width>g/2||d.height<v/2||d.height>_/2)){e.updatePosition({deltaX:n,deltaY:r}),e.nodeModel.rx=d.width,e.nodeModel.ry=d.height,e.nodeModel.setProperties({nodeSize:{rx:d.width,ry:d.height}});var b,m=e.getNodeEdges(i),O={x:a,y:f},x={rx:d.width,ry:d.height,x:e.nodeModel.x,y:e.nodeModel.y},w={point:{},beforeNode:O,afterNode:x};m.sourceEdges.forEach((function(t){w.point=t.startPoint,b=H(w),t.updateStartPoint(b)})),m.targetEdges.forEach((function(t){w.point=t.endPoint,b=H(w),t.updateEndPoint(b)})),e.eventEmit({beforeNode:$($({},O),{},{rx:u,ry:c}),afterNode:x})}})),nt(tt(e),"updateDiamond",(function(t){var n=t.deltaX,r=t.deltaY,o=e.nodeModel,i=o.id,u=o.rx,c=o.ry,a=o.x,f=o.y,l=tt(e).index,s=u,p=c,d=e.getResize({index:l,deltaX:n,deltaY:r,width:s,height:p,pct:.5}),y=ce.sizeRange.ellipse,h=y.minRx,v=y.minRy,g=y.maxRx,_=y.maxRy;if(!(d.width<h||d.width>g||d.height<v||d.height>_)){e.updatePosition({deltaX:n,deltaY:r}),e.nodeModel.rx=d.width,e.nodeModel.ry=d.height,e.nodeModel.setProperties({nodeSize:{rx:d.width,ry:d.height}});var b,m={x:a,y:f,rx:u,ry:c},O={rx:d.width,ry:d.height,x:e.nodeModel.x,y:e.nodeModel.y},x={point:{},beforeNode:m,afterNode:O},w=e.getNodeEdges(i);w.sourceEdges.forEach((function(t){x.point=t.startPoint,b=B(x),t.updateStartPoint(b)})),w.targetEdges.forEach((function(t){x.point=t.endPoint,b=B(x),t.updateEndPoint(b)})),e.eventEmit({beforeNode:m,afterNode:O})}})),nt(tt(e),"eventEmit",(function(t){var n=t.beforeNode,r=t.afterNode,o=e.nodeModel,i=o.id,u=o.modelType,c=o.type,a=$({id:i,modelType:u,type:c},n),f=$({id:i,modelType:u,type:c},r);e.graphModel.eventCenter.emit("node:resize",{oldNodeSize:a,newNodeSize:f})})),nt(tt(e),"onDraging",(function(t){var n=t.deltaX,r=t.deltaY,o=e.nodeModel.modelType;o===L.RECT_NODE?e.updateRect({deltaX:n,deltaY:r}):o===L.ELLIPSE_NODE?e.updateEllipse({deltaX:n,deltaY:r}):o===L.DIAMOND_NODE&&e.updateDiamond({deltaX:n,deltaY:r})})),e.index=t.index,e.nodeModel=t.nodeModel,e.graphModel=t.graphModel;var n=e.graphModel.gridSize,r=2;return n>1&&(r=2*n),e.state={},e.dragHandler=rt({onDraging:e.onDraging,step:r}),e}return e=i,(n=[{key:"getNodeEdges",value:function(t){for(var e=this.graphModel.edges,n=[],r=[],o=0;o<e.length;o++){var i=e[o];i.sourceNodeId===t?n.push(i):e[o].targetNodeId===t&&r.push(i)}return{sourceEdges:n,targetEdges:r}}},{key:"render",value:function(){var t=this.props,e=t.x,n=t.y,r=t.style,o=t.index,i=ce.style.controlPoint,u=i.width,c=i.height,a=i.fill,f=i.stroke;return h("g",{className:"lf-resize-control-".concat(o)},h(F,q({className:"lf-node-control",x:e,y:n},r,{width:u,height:c,fill:a,stroke:f,onMouseDown:this.dragHandler})))}}])&&J(e.prototype,n),r&&J(e,r),i}(_);function it(t){return(it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ut(){return(ut=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function ct(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 at(t,e){return(at=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ft(t){var e=function(){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}}();return function(){var n,r=st(t);if(e){var o=st(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return lt(this,n)}}function lt(t,e){if(e&&("object"===it(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function st(t){return(st=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var pt=function(t){!function(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&&at(t,e)}(i,t);var e,n,r,o=ft(i);function i(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this)).state={},t}return e=i,(n=[{key:"getResizeControl",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,o=t.height,i=t.nodeModel,u=t.graphModel,c={minX:e-r/2,minY:n-o/2,maxX:e+r/2,maxY:n+o/2},a=c.minX,f=c.minY,l=c.maxX,s=c.maxY;return[{x:a,y:f},{x:l,y:f},{x:l,y:s},{x:a,y:s}].map((function(t,e){return h(ot,ut({index:e},t,{nodeModel:i,graphModel:u}))}))}},{key:"getGroupSolid",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,o=t.height,i=ce.style.outline;return h(F,{fill:"none",x:e,y:n,width:r,height:o,stroke:i.stroke,strokeWidth:i.strokeWidth,strokeDasharray:i.strokeDasharray})}},{key:"render",value:function(){return h("g",{className:"lf-resize-control"},this.getGroupSolid(),this.getResizeControl())}}])&&ct(e.prototype,n),r&&ct(e,r),i}(_);function dt(t){return(dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yt(){return(yt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function ht(t,e,n){return(ht="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=jt(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function vt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gt(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 _t(t,e,n){return e&>(t.prototype,e),n&>(t,n),t}function bt(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&&mt(t,e)}function mt(t,e){return(mt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ot(t){var e=function(){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}}();return function(){var n,r=jt(t);if(e){var o=jt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xt(this,n)}}function xt(t,e){if(e&&("object"===dt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return wt(t)}function wt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function jt(t){return(jt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function St(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Pt=function(t){bt(n,t);var e=Ot(n);function n(){var t;vt(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return St(wt(t=e.call.apply(e,[this].concat(o))),"minWidth",30),St(wt(t),"minHeight",30),St(wt(t),"maxWidth",2e3),St(wt(t),"maxHeight",2e3),t}return _t(n,[{key:"setAttributes",value:function(){this.hideOutline=!0;var t=this.properties.nodeSize;t&&(this.width=t.width,this.height=t.height)}}]),n}(f.RectNodeModel),Et={type:"rect",view:function(t){bt(n,t);var e=Ot(n);function n(){return vt(this,n),e.apply(this,arguments)}return _t(n,[{key:"getControlGroup",value:function(t){var e=this.props,n=e.model,r=e.graphModel;return Object(f.h)(pt,yt({},t,{nodeModel:n,graphModel:r}))}},{key:"getResizeShape",value:function(){return ht(jt(n.prototype),"getShape",this).call(this)}},{key:"getShape",value:function(){var t=ht(jt(n.prototype),"getAttributes",this).call(this),e=this.props.model.isSelected;return Object(f.h)("g",null,this.getResizeShape(),e?this.getControlGroup(t):"")}}]),n}(f.RectNode),model:Pt};function kt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Mt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Rt(t){var e=t.x,n=void 0===e?0:e,r=t.y,o=void 0===r?0:r,i=t.rx,u=void 0===i?4:i,c=t.ry,a=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?kt(Object(n),!0).forEach((function(e){Mt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):kt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({cx:n,cy:o,rx:u,ry:void 0===c?4:c,fill:"transparent",fillOpacity:1,strokeWidth:1,stroke:"#000",strokeOpacity:1},t);return Object(f.h)("ellipse",a)}function Nt(t){return(Nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Tt(){return(Tt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function Dt(t,e,n){return(Dt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Wt(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function At(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ct(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 Lt(t,e,n){return e&&Ct(t.prototype,e),n&&Ct(t,n),t}function zt(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&&It(t,e)}function It(t,e){return(It=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Yt(t){var e=function(){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}}();return function(){var n,r=Wt(t);if(e){var o=Wt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ft(this,n)}}function Ft(t,e){if(e&&("object"===Nt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Xt(t)}function Xt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Wt(t){return(Wt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Gt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ht=function(t){zt(n,t);var e=Yt(n);function n(){var t;At(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return Gt(Xt(t=e.call.apply(e,[this].concat(o))),"minWidth",30),Gt(Xt(t),"minHeight",30),Gt(Xt(t),"maxWidth",2e3),Gt(Xt(t),"maxHeight",2e3),t}return Lt(n,[{key:"setAttributes",value:function(){this.hideOutline=!0;var t=this.properties.nodeSize;t&&(this.rx=t.rx,this.ry=t.ry)}}]),n}(f.EllipseNodeModel),Bt={type:"ellipse",view:function(t){zt(n,t);var e=Yt(n);function n(){return At(this,n),e.apply(this,arguments)}return Lt(n,[{key:"getControlGroup",value:function(t){var e=this.props,n=e.model,r=e.graphModel;return Object(f.h)(pt,Tt({},t,{nodeModel:n,graphModel:r}))}},{key:"getResizeShape",value:function(t){return Object(f.h)("g",null,Object(f.h)(Rt,t))}},{key:"getShape",value:function(){var t=Dt(Wt(n.prototype),"getAttributes",this).call(this),e=this.props.model.isSelected;return Object(f.h)("g",null,this.getResizeShape(t),e?this.getControlGroup(t):"")}}]),n}(f.EllipseNode),model:Ht};n(150);function Ut(t){var e=t.fillOpacity,n=void 0===e?1:e,r=t.strokeWidth,o=void 0===r?1:r,i=t.strokeOpacity,u=void 0===i?1:i,c=t.fill,a=void 0===c?"transparent":c,l=t.stroke,s=void 0===l?"#000":l,p=t.points,d=t.className,y={fill:a,fillOpacity:n,strokeWidth:o,stroke:s,strokeOpacity:u,points:"",className:void 0===d?"lf-basic-shape":d};return y.points=p.map((function(t){return t.join(",")})).join(" "),Object(f.h)("polygon",y)}function qt(t){return(qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Vt(){return(Vt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function $t(t,e,n){return($t="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=re(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Jt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Kt(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 Qt(t,e,n){return e&&Kt(t.prototype,e),n&&Kt(t,n),t}function Zt(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&&te(t,e)}function te(t,e){return(te=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ee(t){var e=function(){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}}();return function(){var n,r=re(t);if(e){var o=re(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ne(this,n)}}function ne(t,e){if(e&&("object"===qt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function re(t){return(re=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var oe=function(t){Zt(n,t);var e=ee(n);function n(){return Jt(this,n),e.apply(this,arguments)}return Qt(n,[{key:"setAttributes",value:function(){this.hideOutline=!0;var t=this.properties.nodeSize;t&&(this.rx=t.rx,this.ry=t.ry)}}]),n}(f.DiamondNodeModel),ie={type:"diamond",view:function(t){Zt(n,t);var e=ee(n);function n(){return Jt(this,n),e.apply(this,arguments)}return Qt(n,[{key:"getControlGroup",value:function(t){var e=this.props,n=e.model,r=e.graphModel;return Object(f.h)(pt,Vt({},t,{nodeModel:n,graphModel:r}))}},{key:"getResizeShape",value:function(t){return Object(f.h)("g",null,Object(f.h)(Ut,t))}},{key:"getShape",value:function(){var t=$t(re(n.prototype),"getAttributes",this).call(this),e=this.props.model.isSelected;return Object(f.h)("g",null,this.getResizeShape(t),e?this.getControlGroup(t):"")}}]),n}(f.DiamondNode),model:oe},ue={pluginName:"node-resize",step:0,style:{outline:{stroke:"#000000",strokeWidth:1,strokeDasharray:"3,3"},controlPoint:{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}},sizeRange:{ellipse:{minRx:15,minRy:15,maxRx:150,maxRy:150},diamond:{minRx:15,minRy:15,maxRx:150,maxRy:150}},install:function(t){t.register({type:Et.type,view:Et.view,model:Et.model}),t.register({type:Bt.type,view:Bt.view,model:Bt.model}),t.register({type:ie.type,view:ie.view,model:ie.model})}},ce=e.default=ue}])}));
|
package/lib/style/index.css
CHANGED
|
@@ -191,7 +191,13 @@
|
|
|
191
191
|
width: 20px;
|
|
192
192
|
height: 20px;
|
|
193
193
|
margin: 0 2px 2px 0;
|
|
194
|
+
box-sizing: content-box;
|
|
194
195
|
}
|
|
195
196
|
.lf-context-item:hover {
|
|
196
197
|
background: rgba(201, 217, 216, 0.5);
|
|
198
|
+
}
|
|
199
|
+
.lf-context-img {
|
|
200
|
+
width: 20px;
|
|
201
|
+
height: 20px;
|
|
202
|
+
cursor: pointer;
|
|
197
203
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logicflow/extension",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.9",
|
|
4
4
|
"description": "LogicFlow extension",
|
|
5
5
|
"main": "cjs/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"readme.md"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@logicflow/core": "^0.7.
|
|
35
|
+
"@logicflow/core": "^0.7.9",
|
|
36
36
|
"ids": "^1.0.0",
|
|
37
37
|
"preact": "^10.4.8"
|
|
38
38
|
},
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"webpack-cli": "^3.3.11",
|
|
85
85
|
"webpack-dev-server": "^3.10.3"
|
|
86
86
|
},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "5112c8926b0e25deb44d3ac08f9d168f1c8be3c0"
|
|
88
88
|
}
|