@logicflow/extension 1.2.0-next.0 → 1.2.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -111,7 +111,6 @@ var GroupNodeModel = /** @class */ (function (_super) {
|
|
|
111
111
|
// step 2
|
|
112
112
|
var allEdges = this.foldChildren(isFolded);
|
|
113
113
|
// step 3
|
|
114
|
-
console.log({ allEdges: allEdges });
|
|
115
114
|
this.foldEdge(isFolded, allEdges);
|
|
116
115
|
};
|
|
117
116
|
GroupNodeModel.prototype.getAnchorStyle = function (anchorInfo) {
|
|
@@ -109,7 +109,6 @@ var GroupNodeModel = /** @class */ (function (_super) {
|
|
|
109
109
|
// step 2
|
|
110
110
|
var allEdges = this.foldChildren(isFolded);
|
|
111
111
|
// step 3
|
|
112
|
-
console.log({ allEdges: allEdges });
|
|
113
112
|
this.foldEdge(isFolded, allEdges);
|
|
114
113
|
};
|
|
115
114
|
GroupNodeModel.prototype.getAnchorStyle = function (anchorInfo) {
|
package/lib/Group.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=238)}([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(96))},function(t,e){var n=Function.prototype,r=n.bind,o=n.call,i=r&&r.bind(o);t.exports=r?function(t){return t&&i(o,t)}:function(t){return t&&function(){return o.apply(t,arguments)}}},function(t,e){t.exports=function(t){return"function"==typeof t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(0),o=n(34),i=n(6),u=n(36),c=n(46),a=n(62),l=o("wks"),f=r.Symbol,s=f&&f.for,p=a?f:f&&f.withoutSetter||u;t.exports=function(t){if(!i(l,t)||!c&&"string"!=typeof l[t]){var e="Symbol."+t;c&&i(f,t)?l[t]=f[t]:l[t]=a&&s?s(e):p(e)}return l[t]}},function(t,e,n){var r=n(0),o=n(25).f,i=n(16),u=n(15),c=n(42),a=n(68),l=n(72);t.exports=function(t,e){var n,f,s,p,d,h=t.target,y=t.global,v=t.stat;if(n=y?r:v?r[h]||c(h,{}):(r[h]||{}).prototype)for(f in e){if(p=e[f],s=t.noTargetGet?(d=o(n,f))&&d.value:n[f],!l(y?f:h+(v?".":"#")+f,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,f,p,t)}}},function(t,e,n){var r=n(1),o=n(14),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},function(t,e,n){var r=n(3);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,n){var r=n(0),o=n(7),i=n(63),u=n(10),c=n(27),a=r.TypeError,l=Object.defineProperty;e.f=o?l:function(t,e,n){if(u(t),e=c(e),u(n),i)try{return l(t,e,n)}catch(t){}if("get"in n||"set"in n)throw a("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(2);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},function(t,e,n){var r=n(0),o=n(9),i=r.String,u=r.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not an object")}},function(t,e){var n=Function.prototype.call;t.exports=n.bind?n.bind(n):function(){return n.apply(n,arguments)}},function(t,e,n){var r=n(54),o=n(33);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(0),o=n(2),i=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t]):r[t]&&r[t][e]}},function(t,e,n){var r=n(0),o=n(33),i=r.Object;t.exports=function(t){return i(o(t))}},function(t,e,n){var r=n(0),o=n(2),i=n(6),u=n(16),c=n(42),a=n(39),l=n(21),f=n(52).CONFIGURABLE,s=l.get,p=l.enforce,d=String(String).split("String");(t.exports=function(t,e,n,a){var l,s=!!a&&!!a.unsafe,h=!!a&&!!a.enumerable,y=!!a&&!!a.noTargetGet,v=a&&void 0!==a.name?a.name:e;o(n)&&("Symbol("===String(v).slice(0,7)&&(v="["+String(v).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(n,"name")||f&&n.name!==v)&&u(n,"name",v),(l=p(n)).source||(l.source=d.join("string"==typeof v?v:""))),t!==r?(s?!y&&t[e]&&(h=!0):delete t[e],h?t[e]=n:u(t,e,n)):h?t[e]=n:c(e,n)})(Function.prototype,"toString",(function(){return o(this)&&s(this).source||a(this)}))},function(t,e,n){var r=n(7),o=n(8),i=n(20);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(88);t.exports=function(t){return r(t.length)}},function(t,e,n){var r,o=n(10),i=n(92),u=n(47),c=n(24),a=n(106),l=n(44),f=n(30),s=f("IE_PROTO"),p=function(){},d=function(t){return"<script>"+t+"<\/script>"},h=function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e;y="undefined"!=typeof document?document.domain&&r?h(r):((e=l("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):h(r);for(var n=u.length;n--;)delete y.prototype[u[n]];return y()};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=y(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(1),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r,o,i,u=n(98),c=n(0),a=n(1),l=n(9),f=n(16),s=n(6),p=n(41),d=n(30),h=n(24),y=c.TypeError,v=c.WeakMap;if(u||p.state){var g=p.state||(p.state=new v),b=a(g.get),m=a(g.has),_=a(g.set);r=function(t,e){if(m(g,t))throw new y("Object already initialized");return e.facade=t,_(g,t,e),e},o=function(t){return b(g,t)||{}},i=function(t){return m(g,t)}}else{var x=d("state");h[x]=!0,r=function(t,e){if(s(t,x))throw new y("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(!l(e)||(n=o(e)).type!==t)throw y("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){var r=n(0),o=n(32),i=r.String;t.exports=function(t){if("Symbol"===o(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},function(e,n){e.exports=t},function(t,e){t.exports={}},function(t,e,n){var r=n(7),o=n(11),i=n(60),u=n(20),c=n(12),a=n(27),l=n(6),f=n(63),s=Object.getOwnPropertyDescriptor;e.f=r?s:function(t,e){if(t=c(t),e=a(e),f)try{return s(t,e)}catch(t){}if(l(t,e))return u(!o(i.f,t,e),t[e])}},function(t,e,n){var r=n(1);t.exports=r({}.isPrototypeOf)},function(t,e,n){var r=n(94),o=n(40);t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},function(t,e){t.exports={}},function(t,e){t.exports=!1},function(t,e,n){var r=n(34),o=n(36),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e,n){var r=n(19);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(0),o=n(43),i=n(2),u=n(19),c=n(4)("toStringTag"),a=r.Object,l="Arguments"==u(function(){return arguments}());t.exports=o?u: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=a(t),c))?n:l?u(e):"Object"==(r=u(e))&&i(e.callee)?"Arguments":r}},function(t,e,n){var r=n(0).TypeError;t.exports=function(t){if(null==t)throw r("Can't call method on "+t);return t}},function(t,e,n){var r=n(29),o=n(41);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(0),o=n(2),i=n(56),u=r.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not a function")}},function(t,e,n){var r=n(1),o=0,i=Math.random(),u=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+u(++o+i,36)}},function(t,e,n){var r=n(66),o=n(47).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){var e=+t;return e!=e||0===e?0:(e>0?r:n)(e)}},function(t,e,n){var r=n(1),o=n(2),i=n(41),u=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return u(t)}),t.exports=i.inspectSource},function(t,e,n){var r=n(0),o=n(13),i=n(2),u=n(26),c=n(62),a=r.Object;t.exports=c?function(t){return"symbol"==typeof t}:function(t){var e=o("Symbol");return i(e)&&u(e.prototype,a(t))}},function(t,e,n){var r=n(0),o=n(42),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,e,n){var r=n(0),o=Object.defineProperty;t.exports=function(t,e){try{o(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},function(t,e,n){var r={};r[n(4)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,e,n){var r=n(0),o=n(9),i=r.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},function(t,e,n){"use strict";var r=n(27),o=n(8),i=n(20);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){var r=n(55),o=n(3);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=n(8).f,o=n(6),i=n(4)("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(35);t.exports=function(t,e){var n=t[e];return null==n?void 0:r(n)}},function(t,e,n){var r=n(1),o=n(35),i=r(r.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?i(t,e):function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(38),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){var r=n(7),o=n(6),i=Function.prototype,u=r&&Object.getOwnPropertyDescriptor,c=o(i,"name"),a=c&&"something"===function(){}.name,l=c&&(!r||r&&u(i,"name").configurable);t.exports={EXISTS:c,PROPER:a,CONFIGURABLE:l}},function(t,e,n){var r=n(1),o=n(3),i=n(2),u=n(32),c=n(13),a=n(39),l=function(){},f=[],s=c("Reflect","construct"),p=/^\s*(?:class|function)\b/,d=r(p.exec),h=!p.exec(l),y=function(t){if(!i(t))return!1;try{return s(l,f,t),!0}catch(t){return!1}};t.exports=!s||o((function(){var t;return y(y.call)||!y(Object)||!y((function(){t=!0}))||t}))?function(t){if(!i(t))return!1;switch(u(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return h||!!d(p,a(t))}:y},function(t,e,n){var r=n(0),o=n(1),i=n(3),u=n(19),c=r.Object,a=o("".split);t.exports=i((function(){return!c("z").propertyIsEnumerable(0)}))?function(t){return"String"==u(t)?a(t,""):c(t)}:c},function(t,e,n){var r,o,i=n(0),u=n(87),c=i.process,a=i.Deno,l=c&&c.versions||a&&a.version,f=l&&l.v8;f&&(o=(r=f.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&u&&(!(r=u.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=u.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},function(t,e,n){var r=n(0).String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},function(t,e,n){var r=n(50),o=n(1),i=n(54),u=n(14),c=n(17),a=n(71),l=o([].push),f=function(t){var e=1==t,n=2==t,o=3==t,f=4==t,s=6==t,p=7==t,d=5==t||s;return function(h,y,v,g){for(var b,m,_=u(h),x=i(_),w=r(y,v),O=c(x),S=0,j=g||a,E=e?j(h,O):n||p?j(h,0):void 0;O>S;S++)if((d||S in x)&&(m=w(b=x[S],S,_),t))if(e)E[S]=m;else if(m)switch(t){case 3:return!0;case 5:return b;case 6:return S;case 2:l(E,b)}else switch(t){case 4:return!1;case 7:l(E,b)}return s?-1:o||f?f:E}};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){"use strict";var r=n(12),o=n(101),i=n(28),u=n(21),c=n(67),a=u.set,l=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=l(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){var r=n(66),o=n(47);t.exports=Object.keys||function(t){return r(t,o)}},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(6),i=n(2),u=n(14),c=n(30),a=n(95),l=c("IE_PROTO"),f=r.Object,s=f.prototype;t.exports=a?f.getPrototypeOf:function(t){var e=u(t);if(o(e,l))return e[l];var n=e.constructor;return i(n)&&e instanceof n?n.prototype:e instanceof f?s:null}},function(t,e,n){var r=n(46);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){var r=n(7),o=n(3),i=n(44);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(43),o=n(15),i=n(100);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(1),o=n(6),i=n(12),u=n(90).indexOf,c=n(24),a=r([].push);t.exports=function(t,e){var n,r=i(t),l=0,f=[];for(n in r)!o(c,n)&&o(r,n)&&a(f,n);for(;e.length>l;)o(r,n=e[l++])&&(~u(f,n)||a(f,n));return f}},function(t,e,n){"use strict";var r=n(5),o=n(11),i=n(29),u=n(52),c=n(2),a=n(108),l=n(61),f=n(79),s=n(48),p=n(16),d=n(15),h=n(4),y=n(28),v=n(78),g=u.PROPER,b=u.CONFIGURABLE,m=v.IteratorPrototype,_=v.BUGGY_SAFARI_ITERATORS,x=h("iterator"),w=function(){return this};t.exports=function(t,e,n,u,h,v,O){a(n,e,u);var S,j,E,k=function(t){if(t===h&&N)return N;if(!_&&t in R)return R[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},P=e+" Iterator",M=!1,R=t.prototype,A=R[x]||R["@@iterator"]||h&&R[h],N=!_&&A||k(h),D="Array"==e&&R.entries||A;if(D&&(S=l(D.call(new t)))!==Object.prototype&&S.next&&(i||l(S)===m||(f?f(S,m):c(S[x])||d(S,x,w)),s(S,P,!0,!0),i&&(y[P]=w)),g&&"values"==h&&A&&"values"!==A.name&&(!i&&b?p(R,"name","values"):(M=!0,N=function(){return o(A,this)})),h)if(j={values:k("values"),keys:v?N:k("keys"),entries:k("entries")},O)for(E in j)(_||M||!(E in R))&&d(R,E,j[E]);else r({target:e,proto:!0,forced:_||M},j);return i&&!O||R[x]===N||d(R,x,N,{name:h}),y[e]=N,j}},function(t,e,n){var r=n(6),o=n(83),i=n(25),u=n(8);t.exports=function(t,e){for(var n=o(e),c=u.f,a=i.f,l=0;l<n.length;l++){var f=n[l];r(t,f)||c(t,f,a(e,f))}}},function(t,e,n){var r=n(5),o=n(7);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:n(8).f})},function(t,e,n){var r=n(1);t.exports=r([].slice)},function(t,e,n){var r=n(99);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},function(t,e,n){var r=n(3),o=n(2),i=/#|\.prototype\./,u=function(t,e){var n=a[c(t)];return n==f||n!=l&&(o(e)?r(e):!!e)},c=u.normalize=function(t){return String(t).replace(i,".").toLowerCase()},a=u.data={},l=u.NATIVE="N",f=u.POLYFILL="P";t.exports=u},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(44)("span").classList,o=r&&r.constructor&&r.constructor.prototype;t.exports=o===Object.prototype?void 0:o},function(t,e,n){"use strict";var r=n(105).charAt,o=n(22),i=n(21),u=n(67),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){var r=n(3),o=n(4),i=n(55),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){"use strict";var r=n(5),o=n(0),i=n(13),u=n(89),c=n(11),a=n(1),l=n(29),f=n(7),s=n(46),p=n(3),d=n(6),h=n(31),y=n(2),v=n(9),g=n(26),b=n(40),m=n(10),_=n(14),x=n(12),w=n(27),O=n(22),S=n(20),j=n(18),E=n(59),k=n(37),P=n(102),M=n(65),R=n(25),A=n(8),N=n(60),D=n(70),T=n(15),I=n(34),C=n(30),F=n(24),G=n(36),z=n(4),L=n(85),W=n(86),H=n(48),B=n(21),Y=n(57).forEach,X=C("hidden"),U=z("toPrimitive"),q=B.set,V=B.getterFor("Symbol"),$=Object.prototype,K=o.Symbol,J=K&&K.prototype,Q=o.TypeError,Z=o.QObject,tt=i("JSON","stringify"),et=R.f,nt=A.f,rt=P.f,ot=N.f,it=a([].push),ut=I("symbols"),ct=I("op-symbols"),at=I("string-to-symbol-registry"),lt=I("symbol-to-string-registry"),ft=I("wks"),st=!Z||!Z.prototype||!Z.prototype.findChild,pt=f&&p((function(){return 7!=j(nt({},"a",{get:function(){return nt(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=et($,e);r&&delete $[e],nt(t,e,n),r&&t!==$&&nt($,e,r)}:nt,dt=function(t,e){var n=ut[t]=j(J);return q(n,{type:"Symbol",tag:t,description:e}),f||(n.description=e),n},ht=function(t,e,n){t===$&&ht(ct,e,n),m(t);var r=w(e);return m(n),d(ut,r)?(n.enumerable?(d(t,X)&&t[X][r]&&(t[X][r]=!1),n=j(n,{enumerable:S(0,!1)})):(d(t,X)||nt(t,X,S(1,{})),t[X][r]=!0),pt(t,r,n)):nt(t,r,n)},yt=function(t,e){m(t);var n=x(e),r=E(n).concat(mt(n));return Y(r,(function(e){f&&!c(vt,n,e)||ht(t,e,n[e])})),t},vt=function(t){var e=w(t),n=c(ot,this,e);return!(this===$&&d(ut,e)&&!d(ct,e))&&(!(n||!d(this,e)||!d(ut,e)||d(this,X)&&this[X][e])||n)},gt=function(t,e){var n=x(t),r=w(e);if(n!==$||!d(ut,r)||d(ct,r)){var o=et(n,r);return!o||!d(ut,r)||d(n,X)&&n[X][r]||(o.enumerable=!0),o}},bt=function(t){var e=rt(x(t)),n=[];return Y(e,(function(t){d(ut,t)||d(F,t)||it(n,t)})),n},mt=function(t){var e=t===$,n=rt(e?ct:x(t)),r=[];return Y(n,(function(t){!d(ut,t)||e&&!d($,t)||it(r,ut[t])})),r};(s||(T(J=(K=function(){if(g(J,this))throw Q("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?O(arguments[0]):void 0,e=G(t),n=function(t){this===$&&c(n,ct,t),d(this,X)&&d(this[X],e)&&(this[X][e]=!1),pt(this,e,S(1,t))};return f&&st&&pt($,e,{configurable:!0,set:n}),dt(e,t)}).prototype,"toString",(function(){return V(this).tag})),T(K,"withoutSetter",(function(t){return dt(G(t),t)})),N.f=vt,A.f=ht,R.f=gt,k.f=P.f=bt,M.f=mt,L.f=function(t){return dt(z(t),t)},f&&(nt(J,"description",{configurable:!0,get:function(){return V(this).description}}),l||T($,"propertyIsEnumerable",vt,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!s,sham:!s},{Symbol:K}),Y(E(ft),(function(t){W(t)})),r({target:"Symbol",stat:!0,forced:!s},{for:function(t){var e=O(t);if(d(at,e))return at[e];var n=K(e);return at[e]=n,lt[n]=e,n},keyFor:function(t){if(!b(t))throw Q(t+" is not a symbol");if(d(lt,t))return lt[t]},useSetter:function(){st=!0},useSimple:function(){st=!1}}),r({target:"Object",stat:!0,forced:!s,sham:!f},{create:function(t,e){return void 0===e?j(t):yt(j(t),e)},defineProperty:ht,defineProperties:yt,getOwnPropertyDescriptor:gt}),r({target:"Object",stat:!0,forced:!s},{getOwnPropertyNames:bt,getOwnPropertySymbols:mt}),r({target:"Object",stat:!0,forced:p((function(){M.f(1)}))},{getOwnPropertySymbols:function(t){return M.f(_(t))}}),tt)&&r({target:"JSON",stat:!0,forced:!s||p((function(){var t=K();return"[null]"!=tt([t])||"{}"!=tt({a:t})||"{}"!=tt(Object(t))}))},{stringify:function(t,e,n){var r=D(arguments),o=e;if((v(e)||void 0!==t)&&!b(t))return h(e)||(e=function(t,e){if(y(o)&&(e=c(o,this,t,e)),!b(e))return e}),r[1]=e,u(tt,null,r)}});if(!J[U]){var _t=J.valueOf;T(J,U,(function(t){return c(_t,this)}))}H(K,"Symbol"),F[X]=!0},function(t,e,n){"use strict";var r,o,i,u=n(3),c=n(2),a=n(18),l=n(61),f=n(15),s=n(4),p=n(29),d=s("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(r=o):h=!0),null==r||u((function(){var t={};return r[d].call(t)!==t}))?r={}:p&&(r=a(r)),c(r[d])||f(r,d,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},function(t,e,n){var r=n(1),o=n(10),i=n(109);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return o(n),i(r),e?t(n,r):n.__proto__=r,n}}():void 0)},function(t,e,n){var r=n(0),o=n(73),i=n(74),u=n(58),c=n(16),a=n(4),l=a("iterator"),f=a("toStringTag"),s=u.values,p=function(t,e){if(t){if(t[l]!==s)try{c(t,l,s)}catch(e){t[l]=s}if(t[f]||c(t,f,e),o[e])for(var n in u)if(t[n]!==u[n])try{c(t,n,u[n])}catch(e){t[n]=u[n]}}};for(var d in o)p(r[d]&&r[d].prototype,d);p(i,"DOMTokenList")},function(t,e,n){"use strict";var r=n(5),o=n(7),i=n(0),u=n(1),c=n(6),a=n(2),l=n(26),f=n(22),s=n(8).f,p=n(68),d=i.Symbol,h=d&&d.prototype;if(o&&a(d)&&(!("description"in h)||void 0!==d().description)){var y={},v=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:f(arguments[0]),e=l(h,this)?new d(t):void 0===t?d():d(t);return""===t&&(y[e]=!0),e};p(v,d),v.prototype=h,h.constructor=v;var g="Symbol(test)"==String(d("test")),b=u(h.toString),m=u(h.valueOf),_=/^Symbol\((.*)\)[^)]+$/,x=u("".replace),w=u("".slice);s(h,"description",{configurable:!0,get:function(){var t=m(this),e=b(t);if(c(y,t))return"";var n=g?w(e,7,-1):x(e,_,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:v})}},function(t,e,n){n(86)("iterator")},function(t,e,n){var r=n(13),o=n(1),i=n(37),u=n(65),c=n(10),a=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(c(t)),n=u.f;return n?a(e,n(t)):e}},function(t,e,n){"use strict";var r=n(57).forEach,o=n(91)("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e,n){var r=n(4);e.f=r},function(t,e,n){var r=n(115),o=n(6),i=n(85),u=n(8).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(13);t.exports=r("navigator","userAgent")||""},function(t,e,n){var r=n(38),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){var n=Function.prototype,r=n.apply,o=n.bind,i=n.call;t.exports="object"==typeof Reflect&&Reflect.apply||(o?i.bind(r):function(){return i.apply(r,arguments)})},function(t,e,n){var r=n(12),o=n(51),i=n(17),u=function(t){return function(e,n,u){var c,a=r(e),l=i(a),f=o(u,l);if(t&&n!=n){for(;l>f;)if((c=a[f++])!=c)return!0}else for(;l>f;f++)if((t||f in a)&&a[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},function(t,e,n){"use strict";var r=n(3);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(7),o=n(8),i=n(10),u=n(12),c=n(59);t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=u(e),a=c(e),l=a.length,f=0;l>f;)o.f(t,n=a[f++],r[n]);return t}},function(t,e,n){var r=n(32),o=n(49),i=n(28),u=n(4)("iterator");t.exports=function(t){if(null!=t)return o(t,u)||o(t,"@@iterator")||i[r(t)]}},function(t,e,n){var r=n(0),o=n(11),i=n(9),u=n(40),c=n(49),a=n(97),l=n(4),f=r.TypeError,s=l("toPrimitive");t.exports=function(t,e){if(!i(t)||u(t))return t;var n,r=c(t,s);if(r){if(void 0===e&&(e="default"),n=o(r,t,e),!i(n)||u(n))return n;throw f("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},function(t,e,n){var r=n(3);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},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(0),o=n(11),i=n(2),u=n(9),c=r.TypeError;t.exports=function(t,e){var n,r;if("string"===e&&i(n=t.toString)&&!u(r=o(n,t)))return r;if(i(n=t.valueOf)&&!u(r=o(n,t)))return r;if("string"!==e&&i(n=t.toString)&&!u(r=o(n,t)))return r;throw c("Can't convert object to primitive value")}},function(t,e,n){var r=n(0),o=n(2),i=n(39),u=r.WeakMap;t.exports=o(u)&&/native code/.test(i(u))},function(t,e,n){var r=n(0),o=n(31),i=n(53),u=n(9),c=n(4)("species"),a=r.Array;t.exports=function(t){var e;return o(t)&&(e=t.constructor,(i(e)&&(e===a||o(e.prototype))||u(e)&&null===(e=e[c]))&&(e=void 0)),void 0===e?a:e}},function(t,e,n){"use strict";var r=n(43),o=n(32);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,e,n){var r=n(4),o=n(18),i=n(8),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(19),o=n(12),i=n(37).f,u=n(107),c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return c&&"Window"==r(t)?function(t){try{return i(t)}catch(t){return u(c)}}(t):i(o(t))}},function(t,e,n){"use strict";var r=n(5),o=n(84);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,e,n){var r=n(0),o=n(73),i=n(74),u=n(84),c=n(16),a=function(t){if(t&&t.forEach!==u)try{c(t,"forEach",u)}catch(e){t.forEach=u}};for(var l in o)o[l]&&a(r[l]&&r[l].prototype);a(i)},function(t,e,n){var r=n(1),o=n(38),i=n(22),u=n(33),c=r("".charAt),a=r("".charCodeAt),l=r("".slice),f=function(t){return function(e,n){var r,f,s=i(u(e)),p=o(n),d=s.length;return p<0||p>=d?t?"":void 0:(r=a(s,p))<55296||r>56319||p+1===d||(f=a(s,p+1))<56320||f>57343?t?c(s,p):r:t?l(s,p,p+2):f-56320+(r-55296<<10)+65536}};t.exports={codeAt:f(!1),charAt:f(!0)}},function(t,e,n){var r=n(13);t.exports=r("document","documentElement")},function(t,e,n){var r=n(0),o=n(51),i=n(17),u=n(45),c=r.Array,a=Math.max;t.exports=function(t,e,n){for(var r=i(t),l=o(e,r),f=o(void 0===n?r:n,r),s=c(a(f-l,0)),p=0;l<f;l++,p++)u(s,p,t[l]);return s.length=p,s}},function(t,e,n){"use strict";var r=n(78).IteratorPrototype,o=n(18),i=n(20),u=n(48),c=n(28),a=function(){return this};t.exports=function(t,e,n,l){var f=e+" Iterator";return t.prototype=o(r,{next:i(+!l,n)}),u(t,f,!1,!0),c[f]=a,t}},function(t,e,n){var r=n(0),o=n(2),i=r.String,u=r.TypeError;t.exports=function(t){if("object"==typeof t||o(t))return t;throw u("Can't set "+i(t)+" as a prototype")}},function(t,e,n){"use strict";var r,o,i=n(11),u=n(1),c=n(22),a=n(122),l=n(123),f=n(34),s=n(18),p=n(21).get,d=n(126),h=n(127),y=f("native-string-replace",String.prototype.replace),v=RegExp.prototype.exec,g=v,b=u("".charAt),m=u("".indexOf),_=u("".replace),x=u("".slice),w=(o=/b*/g,i(v,r=/a/,"a"),i(v,o,"a"),0!==r.lastIndex||0!==o.lastIndex),O=l.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];(w||S||O||d||h)&&(g=function(t){var e,n,r,o,u,l,f,d=this,h=p(d),j=c(t),E=h.raw;if(E)return E.lastIndex=d.lastIndex,e=i(g,E,j),d.lastIndex=E.lastIndex,e;var k=h.groups,P=O&&d.sticky,M=i(a,d),R=d.source,A=0,N=j;if(P&&(M=_(M,"y",""),-1===m(M,"g")&&(M+="g"),N=x(j,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==b(j,d.lastIndex-1))&&(R="(?: "+R+")",N=" "+N,A++),n=new RegExp("^(?:"+R+")",M)),S&&(n=new RegExp("^"+R+"$(?!\\s)",M)),w&&(r=d.lastIndex),o=i(v,P?n:d,N),P?o?(o.input=x(o.input,A),o[0]=x(o[0],A),o.index=d.lastIndex,d.lastIndex+=o[0].length):d.lastIndex=0:w&&o&&(d.lastIndex=d.global?o.index+o[0].length:r),S&&o&&o.length>1&&i(y,o[0],n,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(o[u]=void 0)})),o&&k)for(o.groups=l=s(null),u=0;u<k.length;u++)l[(f=k[u])[0]]=o[f[1]];return o}),t.exports=g},function(t,e,n){var r=n(4),o=n(28),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(0),o=n(11),i=n(35),u=n(10),c=n(56),a=n(93),l=r.TypeError;t.exports=function(t,e){var n=arguments.length<2?a(t):e;if(i(n))return u(o(n,t));throw l(c(t)+" is not iterable")}},function(t,e,n){var r=n(11),o=n(10),i=n(49);t.exports=function(t,e,n){var u,c;o(t);try{if(!(u=i(t,"return"))){if("throw"===e)throw n;return n}u=r(u,t)}catch(t){c=!0,u=t}if("throw"===e)throw n;if(c)throw u;return o(u),n}},function(t,e,n){var r=n(4)("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){var r=n(0);t.exports=r},function(t,e,n){"use strict";var r=n(5),o=n(110);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(t,e,n){var r=n(5),o=n(3),i=n(12),u=n(25).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(5)({target:"Object",stat:!0},{setPrototypeOf:n(79)})},function(t,e,n){var r=n(5),o=n(3),i=n(14),u=n(61),c=n(95);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(5),o=n(13),i=n(89),u=n(146),c=n(145),a=n(10),l=n(9),f=n(18),s=n(3),p=o("Reflect","construct"),d=Object.prototype,h=[].push,y=s((function(){function t(){}return!(p((function(){}),[],t)instanceof t)})),v=!s((function(){p((function(){}))})),g=y||v;r({target:"Reflect",stat:!0,forced:g,sham:g},{construct:function(t,e){c(t),a(e);var n=arguments.length<3?t:c(arguments[2]);if(v&&!y)return p(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 i(h,r,e),new(i(u,t,r))}var o=n.prototype,s=f(l(o)?o:d),g=i(t,s,e);return l(g)?g:s}})},function(t,e,n){n(5)({target:"Object",stat:!0,sham:!n(7)},{create:n(18)})},function(t,e,n){"use strict";var r=n(10);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){var r=n(3),o=n(0).RegExp,i=r((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),u=i||r((function(){return!o("a","y").sticky})),c=i||r((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:c,MISSED_STICKY:u,UNSUPPORTED_Y:i}},function(t,e,n){var r=n(0),o=n(50),i=n(11),u=n(10),c=n(56),a=n(111),l=n(17),f=n(26),s=n(112),p=n(93),d=n(113),h=r.TypeError,y=function(t,e){this.stopped=t,this.result=e},v=y.prototype;t.exports=function(t,e,n){var r,g,b,m,_,x,w,O=n&&n.that,S=!(!n||!n.AS_ENTRIES),j=!(!n||!n.IS_ITERATOR),E=!(!n||!n.INTERRUPTED),k=o(e,O),P=function(t){return r&&d(r,"normal",t),new y(!0,t)},M=function(t){return S?(u(t),E?k(t[0],t[1],P):k(t[0],t[1])):E?k(t,P):k(t)};if(j)r=t;else{if(!(g=p(t)))throw h(c(t)+" is not iterable");if(a(g)){for(b=0,m=l(t);m>b;b++)if((_=M(t[b]))&&f(v,_))return _;return new y(!1)}r=s(t,g)}for(x=r.next;!(w=i(x,r)).done;){try{_=M(w.value)}catch(t){d(r,"throw",t)}if("object"==typeof _&&_&&f(v,_))return _}return new y(!1)}},function(t,e,n){var r=n(0),o=n(26),i=r.TypeError;t.exports=function(t,e){if(o(e,t))return t;throw i("Incorrect invocation")}},function(t,e,n){var r=n(3),o=n(0).RegExp;t.exports=r((function(){var t=o(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},function(t,e,n){var r=n(3),o=n(0).RegExp;t.exports=r((function(){var t=o("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},function(t,e,n){var r=n(5),o=n(134);r({target:"Array",stat:!0,forced:!n(114)((function(t){Array.from(t)}))},{from:o})},function(t,e,n){var r=n(5),o=n(1),i=n(24),u=n(9),c=n(6),a=n(8).f,l=n(37),f=n(102),s=n(147),p=n(36),d=n(149),h=!1,y=p("meta"),v=0,g=function(t){a(t,y,{value:{objectID:"O"+v++,weakData:{}}})},b=t.exports={enable:function(){b.enable=function(){},h=!0;var t=l.f,e=o([].splice),n={};n[y]=1,t(n).length&&(l.f=function(n){for(var r=t(n),o=0,i=r.length;o<i;o++)if(r[o]===y){e(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:f.f}))},fastKey:function(t,e){if(!u(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!c(t,y)){if(!s(t))return"F";if(!e)return"E";g(t)}return t[y].objectID},getWeakData:function(t,e){if(!c(t,y)){if(!s(t))return!0;if(!e)return!1;g(t)}return t[y].weakData},onFreeze:function(t){return d&&h&&s(t)&&!c(t,y)&&g(t),t}};i[y]=!0},function(t,e,n){n(5)({target:"Array",stat:!0},{isArray:n(31)})},function(t,e,n){var r=n(5),o=n(14),i=n(59);r({target:"Object",stat:!0,forced:n(3)((function(){i(1)}))},{keys:function(t){return i(o(t))}})},function(t,e,n){"use strict";var r=n(5),o=n(0),i=n(31),u=n(53),c=n(9),a=n(51),l=n(17),f=n(12),s=n(45),p=n(4),d=n(76),h=n(70),y=d("slice"),v=p("species"),g=o.Array,b=Math.max;r({target:"Array",proto:!0,forced:!y},{slice:function(t,e){var n,r,o,p=f(this),d=l(p),y=a(t,d),m=a(void 0===e?d:e,d);if(i(p)&&(n=p.constructor,(u(n)&&(n===g||i(n.prototype))||c(n)&&null===(n=n[v]))&&(n=void 0),n===g||void 0===n))return h(p,y,m);for(r=new(void 0===n?g:n)(b(m-y,0)),o=0;y<m;y++,o++)y in p&&s(r,o,p[y]);return r.length=o,r}})},function(t,e,n){var r=n(7),o=n(52).EXISTS,i=n(1),u=n(8).f,c=Function.prototype,a=i(c.toString),l=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,f=i(l.exec);r&&!o&&u(c,"name",{configurable:!0,get:function(){try{return f(l,a(this))[1]}catch(t){return""}}})},function(t,e,n){"use strict";var r=n(0),o=n(50),i=n(11),u=n(14),c=n(135),a=n(111),l=n(53),f=n(17),s=n(45),p=n(112),d=n(93),h=r.Array;t.exports=function(t){var e=u(t),n=l(this),r=arguments.length,y=r>1?arguments[1]:void 0,v=void 0!==y;v&&(y=o(y,r>2?arguments[2]:void 0));var g,b,m,_,x,w,O=d(e),S=0;if(!O||this==h&&a(O))for(g=f(e),b=n?new this(g):h(g);g>S;S++)w=v?y(e[S],S):e[S],s(b,S,w);else for(x=(_=p(e,O)).next,b=n?new this:[];!(m=i(x,_)).done;S++)w=v?c(_,y,[m.value,S],!0):m.value,s(b,S,w);return b.length=S,b}},function(t,e,n){var r=n(10),o=n(113);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){"use strict";var r=n(5),o=n(57).filter;r({target:"Array",proto:!0,forced:!n(76)("filter")},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(5),o=n(7),i=n(83),u=n(12),c=n(25),a=n(45);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){for(var e,n,r=u(t),o=c.f,l=i(r),f={},s=0;l.length>s;)void 0!==(n=o(r,e=l[s++]))&&a(f,e,n);return f}})},function(t,e,n){var r=n(5),o=n(7);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperties:n(92)})},function(t,e,n){"use strict";var r=n(5),o=n(0),i=n(3),u=n(31),c=n(9),a=n(14),l=n(17),f=n(45),s=n(71),p=n(76),d=n(4),h=n(55),y=d("isConcatSpreadable"),v=o.TypeError,g=h>=51||!i((function(){var t=[];return t[y]=!1,t.concat()[0]!==t})),b=p("concat"),m=function(t){if(!c(t))return!1;var e=t[y];return void 0!==e?!!e:u(t)};r({target:"Array",proto:!0,forced:!g||!b},{concat:function(t){var e,n,r,o,i,u=a(this),c=s(u,0),p=0;for(e=-1,r=arguments.length;e<r;e++)if(m(i=-1===e?u:arguments[e])){if(p+(o=l(i))>9007199254740991)throw v("Maximum allowed index exceeded");for(n=0;n<o;n++,p++)n in i&&f(c,p,i[n])}else{if(p>=9007199254740991)throw v("Maximum allowed index exceeded");f(c,p++,i)}return c.length=p,c}})},function(t,e,n){var r=n(2),o=n(9),i=n(79);t.exports=function(t,e,n){var u,c;return i&&r(u=e.constructor)&&u!==n&&o(c=u.prototype)&&c!==n.prototype&&i(t,c),t}},function(t,e,n){"use strict";var r=n(5),o=n(0),i=n(1),u=n(72),c=n(15),a=n(129),l=n(124),f=n(125),s=n(2),p=n(9),d=n(3),h=n(114),y=n(48),v=n(140);t.exports=function(t,e,n){var g=-1!==t.indexOf("Map"),b=-1!==t.indexOf("Weak"),m=g?"set":"add",_=o[t],x=_&&_.prototype,w=_,O={},S=function(t){var e=i(x[t]);c(x,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(b&&!p(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return b&&!p(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(b&&!p(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(u(t,!s(_)||!(b||x.forEach&&!d((function(){(new _).entries().next()})))))w=n.getConstructor(e,t,g,m),a.enable();else if(u(t,!0)){var j=new w,E=j[m](b?{}:-0,1)!=j,k=d((function(){j.has(1)})),P=h((function(t){new _(t)})),M=!b&&d((function(){for(var t=new _,e=5;e--;)t[m](e,e);return!t.has(-0)}));P||((w=e((function(t,e){f(t,x);var n=v(new _,t,w);return null!=e&&l(e,n[m],{that:n,AS_ENTRIES:g}),n}))).prototype=x,x.constructor=w),(k||M)&&(S("delete"),S("has"),g&&S("get")),(M||E)&&S(m),b&&x.clear&&delete x.clear}return O[t]=w,r({global:!0,forced:w!=_},O),y(w,t),b||n.setStrong(w,t,g),w}},function(t,e,n){"use strict";var r=n(8).f,o=n(18),i=n(143),u=n(50),c=n(125),a=n(124),l=n(67),f=n(144),s=n(7),p=n(129).fastKey,d=n(21),h=d.set,y=d.getterFor;t.exports={getConstructor:function(t,e,n,l){var f=t((function(t,r){c(t,d),h(t,{type:e,index:o(null),first:void 0,last:void 0,size:0}),s||(t.size=0),null!=r&&a(r,t[l],{that:t,AS_ENTRIES:n})})),d=f.prototype,v=y(e),g=function(t,e,n){var r,o,i=v(t),u=b(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),s?i.size++:t.size++,"F"!==o&&(i.index[o]=u)),t},b=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(d,{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,s?t.size=0:this.size=0},delete:function(t){var e=v(this),n=b(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),s?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);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!b(this,t)}}),i(d,n?{get:function(t){var e=b(this,t);return e&&e.value},set:function(t,e){return g(this,0===t?0:t,e)}}:{add:function(t){return g(this,t=0===t?0:t,t)}}),s&&r(d,"size",{get:function(){return v(this).size}}),f},setStrong:function(t,e,n){var r=e+" Iterator",o=y(e),i=y(r);l(t,e,(function(t,e){h(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),f(e)}}},function(t,e,n){var r=n(15);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(13),o=n(8),i=n(4),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){var r=n(0),o=n(53),i=n(56),u=r.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not a constructor")}},function(t,e,n){"use strict";var r=n(0),o=n(1),i=n(35),u=n(9),c=n(6),a=n(70),l=r.Function,f=o([].concat),s=o([].join),p={},d=function(t,e,n){if(!c(p,e)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";p[e]=l("C,a","return new C("+s(r,",")+")")}return p[e](t,n)};t.exports=l.bind||function(t){var e=i(this),n=e.prototype,r=a(arguments,1),o=function(){var n=f(r,a(arguments));return this instanceof o?d(e,n.length,n):e.apply(t,n)};return u(n)&&(o.prototype=n),o}},function(t,e,n){var r=n(3),o=n(9),i=n(19),u=n(148),c=Object.isExtensible,a=r((function(){c(1)}));t.exports=a||u?function(t){return!!o(t)&&((!u||"ArrayBuffer"!=i(t))&&(!c||c(t)))}:c},function(t,e,n){var r=n(3);t.exports=r((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},function(t,e,n){var r=n(3);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},,,function(t,e,n){"use strict";n(141)("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(142))},function(t,e,n){"use strict";var r=n(5),o=n(57).map;r({target:"Array",proto:!0,forced:!n(76)("map")},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(5),o=n(11),i=n(9),u=n(10),c=n(173),a=n(25),l=n(61);r({target:"Reflect",stat:!0},{get:function t(e,n){var r,f,s=arguments.length<3?e:arguments[2];return u(e)===s?e[n]:(r=a.f(e,n))?c(r)?r.value:void 0===r.get?void 0:o(r.get,s):i(f=l(e))?t(f,n,s):void 0}})},,,,,function(t,e,n){var r=n(5),o=n(166);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(t,e,n){"use strict";var r=n(5),o=n(1),i=n(54),u=n(12),c=n(91),a=o([].join),l=i!=Object,f=c("join",",");r({target:"Array",proto:!0,forced:l||!f},{join:function(t){return a(u(this),void 0===t?",":t)}})},,,,,,function(t,e,n){"use strict";var r=n(7),o=n(1),i=n(11),u=n(3),c=n(59),a=n(65),l=n(60),f=n(14),s=n(54),p=Object.assign,d=Object.defineProperty,h=o([].concat);t.exports=!p||u((function(){if(r&&1!==p({b:1},p(d({},"a",{enumerable:!0,get:function(){d(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!=p({},t)[n]||"abcdefghijklmnopqrst"!=c(p({},e)).join("")}))?function(t,e){for(var n=f(t),o=arguments.length,u=1,p=a.f,d=l.f;o>u;)for(var y,v=s(arguments[u++]),g=p?h(c(v),p(v)):c(v),b=g.length,m=0;b>m;)y=g[m++],r&&!i(d,v,y)||(n[y]=v[y]);return n}:p},,,,,,,function(t,e,n){var r=n(6);t.exports=function(t){return void 0!==t&&(r(t,"value")||r(t,"writable"))}},function(t,e,n){"use strict";n(141)("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(142))},function(t,e,n){"use strict";n.r(e),n.d(e,"NodeResize",(function(){return ye})),n.d(e,"RectResize",(function(){return kt})),n.d(e,"EllipseResize",(function(){return Lt})),n.d(e,"DiamondResize",(function(){return ee})),n.d(e,"HtmlResize",(function(){return he}));n(118),n(119),n(64),n(120),n(121),n(154),n(117),n(69),n(77),n(81),n(82),n(58),n(75),n(80);var r,o,i,u,c,a,l=n(23),f=(n(153),n(159),{}),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 h(t){var e=t.parentNode;e&&e.removeChild(t)}function y(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==u&&null!=o.vnode&&o.vnode(c),c}function g(t){return t.children}function b(t,e){this.props=t,this.context=e}function m(t,e){if(null==e)return t.__?m(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?m(t):null}function _(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 _(t)}}function x(t){(!t.__d&&(t.__d=!0)&&u.push(t)&&!w.__r++||a!==o.debounceRendering)&&((a=o.debounceRendering)||c)(w)}function w(){for(var t;w.__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?m(o):i,o.__h),A(n,o),o.__e!=i&&_(o)))}))}function O(t,e,n,r,o,i,u,c,a,l){var p,d,h,y,b,_,x,w=r&&r.__k||s,O=w.length;for(n.__k=[],p=0;p<e.length;p++)if(null!=(y=n.__k[p]=null==(y=e[p])||"boolean"==typeof y?null:"string"==typeof y||"number"==typeof y||"bigint"==typeof y?v(null,y,null,null,y):Array.isArray(y)?v(g,{children:y},null,null,null):y.__b>0?v(y.type,y.props,y.key,null,y.__v):y)){if(y.__=n,y.__b=n.__b+1,null===(h=w[p])||h&&y.key==h.key&&y.type===h.type)w[p]=void 0;else for(d=0;d<O;d++){if((h=w[d])&&y.key==h.key&&y.type===h.type){w[d]=void 0;break}h=null}R(t,y,h=h||f,o,i,u,c,a,l),b=y.__e,(d=y.ref)&&h.ref!=d&&(x||(x=[]),h.ref&&x.push(h.ref,null,y),x.push(d,y.__c||b,y)),null!=b?(null==_&&(_=b),"function"==typeof y.type&&y.__k===h.__k?y.__d=a=S(y,a,t):a=j(t,y,h,w,b,a),"function"==typeof n.type&&(n.__d=a)):a&&h.__e==a&&a.parentNode!=t&&(a=m(h))}for(n.__e=_,p=O;p--;)null!=w[p]&&("function"==typeof n.type&&null!=w[p].__e&&w[p].__e==n.__d&&(n.__d=m(r,p+1)),T(w[p],w[p]));if(x)for(p=0;p<x.length;p++)D(x[p],x[++p],x[++p])}function S(t,e,n){for(var r,o=t.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=t,e="function"==typeof r.type?S(r,e,n):j(n,r,r,o,r.__e,e));return e}function j(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 E(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]=null==n?"":"number"!=typeof n||p.test(e)?n:n+"px"}function k(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||E(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||E(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:P,i):t.removeEventListener(e,i?M:P,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 P(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,l){var f,s,p,h,y,v,m,_,x,w,S,j=e.type;if(void 0!==e.constructor)return null;null!=n.__h&&(l=n.__h,a=e.__e=n.__e,e.__h=null,u=[a]),(f=o.__b)&&f(e);try{t:if("function"==typeof j){if(_=e.props,x=(f=j.contextType)&&r[f.__c],w=f?x?x.props.value:f.__:r,n.__c?m=(s=e.__c=n.__c).__=s.__E:("prototype"in j&&j.prototype.render?e.__c=s=new j(_,w):(e.__c=s=new b(_,w),s.constructor=j,s.render=I),x&&x.sub(s),s.props=_,s.state||(s.state={}),s.context=w,s.__n=r,p=s.__d=!0,s.__h=[]),null==s.__s&&(s.__s=s.state),null!=j.getDerivedStateFromProps&&(s.__s==s.state&&(s.__s=d({},s.__s)),d(s.__s,j.getDerivedStateFromProps(_,s.__s))),h=s.props,y=s.state,p)null==j.getDerivedStateFromProps&&null!=s.componentWillMount&&s.componentWillMount(),null!=s.componentDidMount&&s.__h.push(s.componentDidMount);else{if(null==j.getDerivedStateFromProps&&_!==h&&null!=s.componentWillReceiveProps&&s.componentWillReceiveProps(_,w),!s.__e&&null!=s.shouldComponentUpdate&&!1===s.shouldComponentUpdate(_,s.__s,w)||e.__v===n.__v){s.props=_,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(_,s.__s,w),null!=s.componentDidUpdate&&s.__h.push((function(){s.componentDidUpdate(h,y,v)}))}s.context=w,s.props=_,s.state=s.__s,(f=o.__r)&&f(e),s.__d=!1,s.__v=e,s.__P=t,f=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(h,y)),S=null!=f&&f.type===g&&null==f.key?f.props.children:f,O(t,Array.isArray(S)?S:[S],e,n,r,i,u,c,a,l),s.base=e.__e,e.__h=null,s.__h.length&&c.push(s),m&&(s.__E=s.__=null),s.__e=!1}else null==u&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=N(n.__e,e,n,r,i,u,c,l);(f=o.diffed)&&f(e)}catch(t){e.__v=null,(l||null!=u)&&(e.__e=a,e.__h=!!l,u[u.indexOf(a)]=null),o.__e(t,e,n)}}function A(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 N(t,e,n,o,i,u,c,a){var l,s,p,d=n.props,y=e.props,v=e.type,g=0;if("svg"===v&&(i=!0),null!=u)for(;g<u.length;g++)if((l=u[g])&&"setAttribute"in l==!!v&&(v?l.localName===v:3===l.nodeType)){t=l,u[g]=null;break}if(null==t){if(null===v)return document.createTextNode(y);t=i?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,y.is&&y),u=null,a=!1}if(null===v)d===y||a&&t.data===y||(t.data=y);else{if(u=u&&r.call(t.childNodes),s=(d=n.props||f).dangerouslySetInnerHTML,p=y.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||k(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]||k(t,i,e[i],n[i],r)}(t,y,d,i,a),p)e.__k=[];else if(g=e.props.children,O(t,Array.isArray(g)?g:[g],e,n,o,i&&"foreignObject"!==v,u,c,u?u[0]:n.__k&&m(n,0),a),null!=u)for(g=u.length;g--;)null!=u[g]&&h(u[g]);a||("value"in y&&void 0!==(g=y.value)&&(g!==d.value||g!==t.value||"progress"===v&&!g)&&k(t,"value",g,d.value,!1),"checked"in y&&void 0!==(g=y.checked)&&g!==t.checked&&k(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 T(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]&&T(r[i],e,"function"!=typeof t.type);n||null==t.__e||h(t.__e),t.__e=t.__d=void 0}function I(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,b.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),x(this))},b.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),x(this))},b.prototype.render=g,u=[],c="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,w.__r=0;var C;n(103),n(104),n(131),n(136),n(137),n(138),n(130),n(132),n(133),n(128),n(116);function F(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 G(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?F(Object(n),!0).forEach((function(e){z(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function z(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function L(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,f=G(G({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(l.h)("rect",f)}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 H(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 B(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),l=W(r);if(o===a.minX){u.x=l.minX;var f=(i-n.y)/(n.height/2-c);u.y=f?r.y+(r.height/2-c)*f:r.y}else if(o===a.maxX){u.x=l.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=l.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=l.maxY;var d=(o-n.x)/(n.width/2-c);u.x=d?r.x+(r.width/2-c)*d:r.x}else{var h=H(n),y=H(r),v=W(n),g=v.minX,b=v.minY,m=v.maxX,_=v.maxY,x=-1;if(o-g<c&&i-b<c?x=0:m-o<c&&i-b<c?x=1:m-o<c&&_-i<c?x=2:o-g<c&&b-i<c&&(x=3),x>-1){var w=Math.atan2(i-h[x].y,o-h[x].x);u.x=y[x].x+c*Math.cos(w),u.y=y[x].y+c*Math.sin(w)}}return u}function Y(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),l=u,f=c;return a>=1/0?(e=0,n=f):a<=-1/0?(e=0,n=-f):r.x-o.x>0?(e=l*f/Math.sqrt(f*f+l*l*a*a),n=l*f*a/Math.sqrt(f*f+l*l*a*a)):(e=-l*f/Math.sqrt(f*f+l*l*a*a),n=-l*f*a/Math.sqrt(f*f+l*l*a*a)),{x:e+i.x,y:n+i.y}}function X(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,l=Math.sqrt((c-Math.abs(i))*(c-Math.abs(i))+u*u)/Math.sqrt(c*c+a*a),f=o.rx,s=o.ry,p=Math.sqrt((f*f+s*s)*l*l*(f*f/(f*f+s*s))),d=p*(s/f);return e=u>0?d:-d,{x:(i>=0?f-p:p-f)+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){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 $(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 $(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 $(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 K(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 J(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?K(Object(n),!0).forEach((function(e){ot(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Q(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 Z(t,e){return(Z=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function tt(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=rt(t);if(e){var o=rt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return et(this,n)}}function et(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 nt(t)}function nt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function rt(t){return(rt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ot(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}L.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.HTML_NODE="html-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"}(C||(C={}));var it=l.LogicFlowUtil.StepDrag,ut=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&&Z(t,e)}(i,t);var e,n,r,o=tt(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),ot(nt(e=o.call(this)),"updatePosition",(function(t){var n=t.deltaX,r=t.deltaY,o=e.nodeModel,i=o.x,u=o.y;e.nodeModel.moveText(n/2,r/2),e.nodeModel.updateAttributes({x:i+n/2,y:u+r/2})})),ot(nt(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*c,a.height=i+r*c;break;case 3:a.width=o-n*c,a.height=i+r*c}return a})),ot(nt(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,l=o.height,f=o.radius,s=nt(e).index,p=e.getResize({index:s,deltaX:n,deltaY:r,width:a,height:l,pct:1}),d=e.nodeModel,h=d.minWidth,y=d.minHeight,v=d.maxWidth,g=d.maxHeight;if(p.width<h||p.width>v||p.height<y||p.height>g)e.dragHandler.cancelDrag();else{e.updatePosition({deltaX:n,deltaY:r}),e.nodeModel.setProperties({nodeSize:{width:p.width,height:p.height}}),e.nodeModel.updateAttributes({width:p.width,height:p.height});var b,m=e.getNodeEdges(i),_={x:u,y:c,width:a,height:l,radius:f},x={x:e.nodeModel.x,y:e.nodeModel.y,width:e.nodeModel.width,height:e.nodeModel.height,radius:f},w={point:"",beforeNode:_,afterNode:x};m.sourceEdges.forEach((function(t){w.point=t.startPoint,b=B(w),t.updateStartPoint(b)})),m.targetEdges.forEach((function(t){w.point=t.endPoint,b=B(w),t.updateEndPoint(b)})),e.eventEmit({beforeNode:_,afterNode:x})}})),ot(nt(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,l=o.y,f=nt(e).index,s=u,p=c,d=e.getResize({index:f,deltaX:n,deltaY:r,width:s,height:p,pct:.5}),h=e.nodeModel,y=h.minWidth,v=h.minHeight,g=h.maxWidth,b=h.maxHeight;if(d.width<y/2||d.width>g/2||d.height<v/2||d.height>b/2)e.dragHandler.cancelDrag();else{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 m,_=e.getNodeEdges(i),x={x:a,y:l},w={rx:d.width,ry:d.height,x:e.nodeModel.x,y:e.nodeModel.y},O={point:{},beforeNode:x,afterNode:w};_.sourceEdges.forEach((function(t){O.point=t.startPoint,m=Y(O),t.updateStartPoint(m)})),_.targetEdges.forEach((function(t){O.point=t.endPoint,m=Y(O),t.updateEndPoint(m)})),e.eventEmit({beforeNode:J(J({},x),{},{rx:u,ry:c}),afterNode:w})}})),ot(nt(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,l=o.y,f=nt(e).index,s=u,p=c,d=e.getResize({index:f,deltaX:n,deltaY:r,width:s,height:p,pct:.5}),h=e.nodeModel,y=h.minWidth,v=h.minHeight,g=h.maxWidth,b=h.maxHeight;if(d.width<y/2||d.width>g/2||d.height<v/2||d.height>b/2)e.dragHandler.cancelDrag();else{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 m,_={x:a,y:l,rx:u,ry:c},x={rx:d.width,ry:d.height,x:e.nodeModel.x,y:e.nodeModel.y},w={point:{},beforeNode:_,afterNode:x},O=e.getNodeEdges(i);O.sourceEdges.forEach((function(t){w.point=t.startPoint,m=X(w),t.updateStartPoint(m)})),O.targetEdges.forEach((function(t){w.point=t.endPoint,m=X(w),t.updateEndPoint(m)})),e.eventEmit({beforeNode:_,afterNode:x})}})),ot(nt(e),"eventEmit",(function(t){var n=t.beforeNode,r=t.afterNode,o=e.nodeModel,i=o.id,u=o.modelType,c=o.type,a=J({id:i,modelType:u,type:c},n),l=J({id:i,modelType:u,type:c},r);e.graphModel.eventCenter.emit("node:resize",{oldNodeSize:a,newNodeSize:l})})),ot(nt(e),"onDragging",(function(t){var n=t.deltaX,r=t.deltaY,o=e.graphModel.transformModel,i=e.nodeModel.modelType,u=V(o.fixDeltaXY(n,r),2);n=u[0],r=u[1],i===C.RECT_NODE||i===C.HTML_NODE?e.updateRect({deltaX:n,deltaY:r}):i===C.ELLIPSE_NODE?e.updateEllipse({deltaX:n,deltaY:r}):i===C.DIAMOND_NODE&&e.updateDiamond({deltaX:n,deltaY:r})})),ot(nt(e),"onDragEnd",(function(){var t=e.graphModel.gridSize,n=void 0===t?1:t,r=n*Math.round(e.nodeModel.x/n),o=n*Math.round(e.nodeModel.y/n);e.nodeModel.moveTo(r,o)})),e.index=t.index,e.nodeModel=t.model,e.graphModel=t.graphModel,e.state={},e.dragHandler=new it({onDragging:e.onDragging,onDragEnd:e.onDragEnd,step:1}),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.index,o=t.model.getControlPointStyle();return y("g",{className:"lf-resize-control-".concat(r)},y(L,q({className:"lf-node-control",x:e,y:n},o,{onMouseDown:this.dragHandler.handleMouseDown})))}}])&&Q(e.prototype,n),r&&Q(e,r),i}(b);function ct(t){return(ct="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 at(){return(at=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 lt(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 ft(t,e){return(ft=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function st(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=dt(t);if(e){var o=dt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return pt(this,n)}}function pt(t,e){if(e&&("object"===ct(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 dt(t){return(dt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ht=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&&ft(t,e)}(i,t);var e,n,r,o=st(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.model,n=t.graphModel,r=e.x,o=e.y,i=e.width,u=e.height,c={minX:r-i/2,minY:o-u/2,maxX:r+i/2,maxY:o+u/2},a=c.minX,l=c.minY,f=c.maxX,s=c.maxY;return[{x:a,y:l},{x:f,y:l},{x:f,y:s},{x:a,y:s}].map((function(t,r){return y(ut,at({index:r},t,{model:e,graphModel:n}))}))}},{key:"getGroupSolid",value:function(){var t=this.props.model,e=t.x,n=t.y,r=t.width,o=t.height;return y(L,at({fill:"none"},t.getResizeOutlineStyle(),{x:e,y:n,width:r,height:o}))}},{key:"render",value:function(){return y("g",{className:"lf-resize-control"},this.getGroupSolid(),this.getResizeControl())}}])&<(e.prototype,n),r&<(e,r),i}(b);function yt(t){return(yt="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(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 bt(t,e,n){return e&>(t.prototype,e),n&>(t,n),t}function mt(){return(mt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=_t(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}}).apply(this,arguments)}function _t(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=jt(t)););return t}function xt(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&&wt(t,e)}function wt(t,e){return(wt=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 St(this,n)}}function St(t,e){if(e&&("object"===yt(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 jt(t){return(jt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Et=function(t){xt(n,t);var e=Ot(n);function n(){return vt(this,n),e.apply(this,arguments)}return bt(n,[{key:"initNodeData",value:function(t){mt(jt(n.prototype),"initNodeData",this).call(this,t),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3}},{key:"init",value:function(){mt(jt(n.prototype),"init",this).call(this);var t=this.properties.nodeSize;t&&(this.width=t.width,this.height=t.height)}},{key:"getOutlineStyle",value:function(){var t=mt(jt(n.prototype),"getOutlineStyle",this).call(this);return this.graphModel.editConfigModel.isSilentMode||(t.stroke="none",t.hover&&(t.hover.stroke="none")),t}},{key:"getResizeOutlineStyle",value:function(){return{fill:"none",stroke:"transparent",strokeWidth:1,strokeDasharray:"3,3"}}},{key:"getControlPointStyle",value:function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}}},{key:"resize",value:function(t,e){console.log(t,e)}}]),n}(l.RectNodeModel),kt={type:"rect",view:function(t){xt(n,t);var e=Ot(n);function n(){return vt(this,n),e.apply(this,arguments)}return bt(n,[{key:"getControlGroup",value:function(){var t=this.props,e=t.model,n=t.graphModel;return Object(l.h)(ht,{model:e,graphModel:n})}},{key:"getResizeShape",value:function(){return mt(jt(n.prototype),"getShape",this).call(this)}},{key:"getShape",value:function(){var t=this.props,e=t.model.isSelected,n=t.graphModel.editConfigModel.isSilentMode;return Object(l.h)("g",null,this.getResizeShape(),e&&!n?this.getControlGroup():"")}}]),n}(l.RectNode),model:Et};function Pt(t){return(Pt="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 Mt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Rt(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,n){return e&&Rt(t.prototype,e),n&&Rt(t,n),t}function Nt(){return(Nt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=Dt(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}}).apply(this,arguments)}function Dt(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Gt(t)););return t}function Tt(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 Ct(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=Gt(t);if(e){var o=Gt(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"===Pt(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 Gt(t){return(Gt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var zt=function(t){Tt(n,t);var e=Ct(n);function n(){return Mt(this,n),e.apply(this,arguments)}return At(n,[{key:"initNodeData",value:function(t){Nt(Gt(n.prototype),"initNodeData",this).call(this,t),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3}},{key:"init",value:function(){Nt(Gt(n.prototype),"init",this).call(this);var t=this.properties.nodeSize;t&&(this.rx=t.rx,this.ry=t.ry)}},{key:"getOutlineStyle",value:function(){var t=Nt(Gt(n.prototype),"getOutlineStyle",this).call(this);return this.graphModel.editConfigModel.isSilentMode||(t.stroke="none",t.hover&&(t.hover.stroke="none")),t}},{key:"getResizeOutlineStyle",value:function(){return{stroke:"#000000",strokeWidth:1,strokeDasharray:"3,3"}}},{key:"getControlPointStyle",value:function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}}}]),n}(l.EllipseNodeModel),Lt={type:"ellipse",view:function(t){Tt(n,t);var e=Ct(n);function n(){return Mt(this,n),e.apply(this,arguments)}return At(n,[{key:"getControlGroup",value:function(){var t=this.props,e=t.model,n=t.graphModel;return Object(l.h)(ht,{model:e,graphModel:n})}},{key:"getResizeShape",value:function(){return Nt(Gt(n.prototype),"getShape",this).call(this)}},{key:"getShape",value:function(){var t=this.props,e=t.model,n=t.graphModel.editConfigModel.isSilentMode;return Object(l.h)("g",null,this.getResizeShape(),e.isSelected&&!n?this.getControlGroup():"")}}]),n}(l.EllipseNode),model:zt};n(176),n(160);function Wt(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,f=t.stroke,s=void 0===f?"#000":f,p=t.points,d=t.className,h={fill:a,fillOpacity:n,strokeWidth:o,stroke:s,strokeOpacity:u,points:"",className:void 0===d?"lf-basic-shape":d};return h.points=p.map((function(t){return t.join(",")})).join(" "),Object(l.h)("polygon",h)}function Ht(t){return(Ht="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 Bt(){return(Bt=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 Yt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Xt(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 Ut(t,e,n){return e&&Xt(t.prototype,e),n&&Xt(t,n),t}function qt(){return(qt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=Vt(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}}).apply(this,arguments)}function Vt(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Zt(t)););return t}function $t(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&&Kt(t,e)}function Kt(t,e){return(Kt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Jt(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=Zt(t);if(e){var o=Zt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Qt(this,n)}}function Qt(t,e){if(e&&("object"===Ht(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 Zt(t){return(Zt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var te=function(t){$t(n,t);var e=Jt(n);function n(){return Yt(this,n),e.apply(this,arguments)}return Ut(n,[{key:"initNodeData",value:function(t){qt(Zt(n.prototype),"initNodeData",this).call(this,t),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3,this.gridSize=1}},{key:"init",value:function(){qt(Zt(n.prototype),"init",this).call(this);var t=this.properties.nodeSize;t&&(this.rx=t.rx,this.ry=t.ry)}},{key:"getOutlineStyle",value:function(){var t=qt(Zt(n.prototype),"getOutlineStyle",this).call(this);return this.graphModel.editConfigModel.isSilentMode||(t.stroke="none",t.hover&&(t.hover.stroke="none")),t}},{key:"getResizeOutlineStyle",value:function(){return{stroke:"#000000",strokeWidth:1,strokeDasharray:"3,3"}}},{key:"getControlPointStyle",value:function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}}}]),n}(l.DiamondNodeModel),ee={type:"diamond",view:function(t){$t(n,t);var e=Jt(n);function n(){return Yt(this,n),e.apply(this,arguments)}return Ut(n,[{key:"getControlGroup",value:function(){var t=this.props,e=t.model,n=t.graphModel;return Object(l.h)(ht,{model:e,graphModel:n})}},{key:"getResizeShape",value:function(){var t=this.props.model,e=t.points,n=t.getNodeStyle();return Object(l.h)("g",null,Object(l.h)(Wt,Bt({},n,{points:e})))}},{key:"getShape",value:function(){var t=this.props,e=t.model.isSelected,n=t.graphModel.editConfigModel.isSilentMode;return Object(l.h)("g",null,this.getResizeShape(),e&&!n?this.getControlGroup():"")}}]),n}(l.DiamondNode),model:te};function ne(t){return(ne="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 re(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function oe(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 ie(t,e,n){return e&&oe(t.prototype,e),n&&oe(t,n),t}function ue(){return(ue="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=ce(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}}).apply(this,arguments)}function ce(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=pe(t)););return t}function ae(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&&le(t,e)}function le(t,e){return(le=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function fe(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=pe(t);if(e){var o=pe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return se(this,n)}}function se(t,e){if(e&&("object"===ne(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 pe(t){return(pe=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var de=function(t){ae(n,t);var e=fe(n);function n(){return re(this,n),e.apply(this,arguments)}return ie(n,[{key:"initNodeData",value:function(t){ue(pe(n.prototype),"initNodeData",this).call(this,t),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3}},{key:"init",value:function(){ue(pe(n.prototype),"init",this).call(this);var t=this.properties.nodeSize;t&&(this.width=t.width,this.height=t.height)}},{key:"getOutlineStyle",value:function(){var t=ue(pe(n.prototype),"getOutlineStyle",this).call(this);return this.graphModel.editConfigModel.isSilentMode||(t.stroke="none",t.hover&&(t.hover.stroke="none")),t}},{key:"getResizeOutlineStyle",value:function(){return{stroke:"#000000",strokeWidth:1,strokeDasharray:"3,3"}}},{key:"getControlPointStyle",value:function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}}}]),n}(l.HtmlNodeModel),he={type:"html",view:function(t){ae(n,t);var e=fe(n);function n(){return re(this,n),e.apply(this,arguments)}return ie(n,[{key:"getControlGroup",value:function(){var t=this.props,e=t.model,n=t.graphModel;return Object(l.h)(ht,{model:e,graphModel:n})}},{key:"getResizeShape",value:function(){return ue(pe(n.prototype),"getShape",this).call(this)}},{key:"getShape",value:function(){var t=this.props,e=t.model.isSelected,n=t.graphModel.editConfigModel.isSilentMode;return Object(l.h)("g",null,this.getResizeShape(),e&&!n?this.getControlGroup():"")}}]),n}(l.HtmlNode),model:de},ye={pluginName:"nodeResize",step:0,install:function(t){t.register({type:kt.type,view:kt.view,model:kt.model}),t.register({type:Lt.type,view:Lt.view,model:Lt.model}),t.register({type:ee.type,view:ee.view,model:ee.model}),t.register({type:he.type,view:he.view,model:he.model})}};e.default=ye},function(t,e,n){var r=n(5),o=n(186),i=n(101);r({target:"Array",proto:!0},{fill:o}),i("fill")},,,,,,,,,,function(t,e,n){"use strict";var r=n(14),o=n(51),i=n(17);t.exports=function(t){for(var e=r(this),n=i(e),u=arguments.length,c=o(u>1?arguments[1]:void 0,n),a=u>2?arguments[2]:void 0,l=void 0===a?n:o(a,n);l>c;)e[c++]=t;return e}},function(t,e,n){"use strict";var r=n(0),o=n(31),i=n(17),u=n(50),c=r.TypeError,a=function(t,e,n,r,l,f,s,p){for(var d,h,y=l,v=0,g=!!s&&u(s,p);v<r;){if(v in n){if(d=g?g(n[v],v,e):n[v],f>0&&o(d))h=i(d),y=a(t,e,d,h,y,f-1)-1;else{if(y>=9007199254740991)throw c("Exceed the acceptable array length");t[y]=d}y++}v++}return y};t.exports=a},,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var r=n(5),o=n(0),i=n(89),u=n(2),c=n(87),a=n(70),l=/MSIE .\./.test(c),f=o.Function,s=function(t){return function(e,n){var r=arguments.length>2,o=r?a(arguments,2):void 0;return t(r?function(){i(u(e)?e:f(e),this,o)}:e,n)}};r({global:!0,bind:!0,forced:l},{setTimeout:s(o.setTimeout),setInterval:s(o.setInterval)})},function(t,e,n){"use strict";var r=n(5),o=n(187),i=n(35),u=n(14),c=n(17),a=n(71);r({target:"Array",proto:!0},{flatMap:function(t){var e,n=u(this),r=c(n);return i(t),(e=a(n,0)).length=o(e,n,n,r,0,1,t,arguments.length>1?arguments[1]:void 0),e}})},function(t,e,n){n(101)("flatMap")},,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.r(e),n.d(e,"Group",(function(){return P})),n.d(e,"GroupNode",(function(){return O}));n(58),n(152),n(64),n(75),n(80),n(103),n(104),n(139),n(69),n(130),n(77),n(81),n(82),n(128),n(132),n(133),n(116),n(174),n(213),n(176),n(214),n(215),n(118),n(119),n(120),n(121),n(154),n(117),n(131),n(136),n(137),n(138);var r=n(23),o=n(175);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(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 c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){x(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return l(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 l(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(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 f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(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 p(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}function d(){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=h(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}}).apply(this,arguments)}function h(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=_(t)););return t}function y(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&&v(t,e)}function v(t,e){return(v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(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=_(t);if(e){var o=_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(t,e){if(e&&("object"===i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return m(t)}function m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _(t){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function x(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var w=function(t){y(n,t);var e=g(n);function n(){var t;f(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return x(m(t=e.call.apply(e,[this].concat(o))),"isGroup",!0),x(m(t),"unfoldedWidth",500),x(m(t),"unfoldedHight",300),t}return p(n,[{key:"initNodeData",value:function(t){var e=this;d(_(n.prototype),"initNodeData",this).call(this,t);var r=[];Array.isArray(t.children)&&(r=t.children),this.children=new Set(r),this.width=500,this.height=300,this.foldedWidth=80,this.foldedHeight=60,this.zIndex=-1,this.radius=0,this.text.editable=!1,this.text.draggable=!1,this.isRestrict=!1,this.resizable=!1,this.autoToFront=!1,this.foldable=!1,this.nestable=!1,void 0===this.properties.isFolded&&(this.properties.isFolded=!1),this.isFolded=this.properties.isFolded,setTimeout((function(){e.isFolded&&e.foldGroup(e.isFolded)}))}},{key:"getResizeOutlineStyle",value:function(){var t=d(_(n.prototype),"getResizeOutlineStyle",this).call(this);return t.stroke="none",t}},{key:"foldGroup",value:function(t){this.setProperty("isFolded",t),this.isFolded=t,this.foldRect(t);var e=this.foldChildren(t);console.log({allEdges:e}),this.foldEdge(t,e)}},{key:"getAnchorStyle",value:function(t){var e=d(_(n.prototype),"getAnchorStyle",this).call(this,t);return e.stroke="transparent",e.fill="transparent",e.hover.fill="transparent",e.hover.stroke="transparent",e}},{key:"foldRect",value:function(t){t?(this.unfoldedWidth=this.width,this.unfoldedHight=this.height,this.updateAttributes({x:this.x-this.width/2+this.foldedWidth/2,y:this.y-this.height/2+this.foldedHeight/2,width:this.foldedWidth,height:this.foldedHeight})):this.updateAttributes({width:this.unfoldedWidth,height:this.unfoldedHight,x:this.x+this.unfoldedWidth/2-this.foldedWidth/2,y:this.y+this.unfoldedHight/2-this.foldedHeight/2})}},{key:"foldChildren",value:function(t){var e=this,n=this.incoming.edges.concat(this.outgoing.edges);return this.children.forEach((function(r){var o=e.graphModel.getElement(r);if(o.isGroup){var i=o.foldChildren(t||o.isFolded);n=n.concat(i),o.foldEdge(t,i)}n=n.concat(o.incoming.edges.concat(o.outgoing.edges)),o.updateAttributes({visible:!t})})),n}},{key:"foldEdge",value:function(t,e){var n=this;e.forEach((function(e,r){var o=e.id,i=e.sourceNodeId,u=e.targetNodeId,c=e.startPoint,a=e.endPoint,l=e.type,f=e.properties,s=e.text,p={id:"".concat(o,"__").concat(r),sourceNodeId:i,targetNodeId:u,startPoint:c,endPoint:a,type:l,properties:f,text:null==s?void 0:s.value};e.virtual&&n.graphModel.deleteEdgeById(e.id);var d=n.graphModel.group.getNodeGroup(u);d||(d=n.graphModel.getNodeModelById(u));var h=n.graphModel.group.getNodeGroup(i);h||(h=n.graphModel.getNodeModelById(i)),t&&!1!==e.visible&&(n.children.has(i)||n.id===i?(p.startPoint=void 0,p.sourceNodeId=n.id):(p.endPoint=void 0,p.targetNodeId=n.id),d.id===n.id&&h.id===n.id||n.createVirtualEdge(p),e.updateAttributes({visible:!1})),t||!1!==e.visible||(d&&d.isGroup&&d.isFolded?(p.targetNodeId=d.id,p.endPoint=void 0,n.createVirtualEdge(p)):h&&h.isGroup&&h.isFolded?(p.sourceNodeId=h.id,p.startPoint=void 0,n.createVirtualEdge(p)):e.updateAttributes({visible:!0}))}))}},{key:"createVirtualEdge",value:function(t){t.pointsList=void 0;var e=this.graphModel.addEdge(t);e.virtual=!0,e.text.editable=!1,e.isFoldedEdge=!0}},{key:"isInRange",value:function(t){var e=t.x1,n=t.y1,r=t.x2,o=t.y2;return e>=this.x-this.width/2&&r<=this.x+this.width/2&&n>=this.y-this.height/2&&o<=this.y+this.height/2}},{key:"isAllowMoveTo",value:function(t){var e=t.x1,n=t.y1,r=t.x2,o=t.y2;return{x:e>=this.x-this.width/2&&r<=this.x+this.width/2,y:n>=this.y-this.height/2&&o<=this.y+this.height/2}}},{key:"setAllowAppendChild",value:function(t){this.setProperty("groupAddable",t)}},{key:"addChild",value:function(t){this.children.add(t)}},{key:"removeChild",value:function(t){this.children.delete(t)}},{key:"getChildren",value:function(){var t=this;return a(this.children).flatMap((function(e){var n=t.graphModel.getElement(e);return n.isGroup?[e].concat(a(n.getChildren())):e}))}},{key:"getAddableOutlineStyle",value:function(){return{stroke:"#FEB663",strokeWidth:2,strokeDasharray:"4 4",fill:"transparent"}}},{key:"getData",value:function(){var t=d(_(n.prototype),"getData",this).call(this);t.children=a(this.children);var e=t.properties;return delete e.groupAddable,delete e.isFolded,t}},{key:"getHistoryData",value:function(){var t=d(_(n.prototype),"getData",this).call(this);t.children=a(this.children);var e=t.properties;return delete e.groupAddable,e.isFolded&&(t.x=t.x+this.unfoldedWidth/2-this.foldedWidth/2,t.y=t.y+this.unfoldedHight/2-this.foldedHeight/2),t}},{key:"isAllowAppendIn",value:function(t){return!0}}]),n}(o.RectResize.model),O={type:"group",view:function(t){y(n,t);var e=g(n);function n(){return f(this,n),e.apply(this,arguments)}return p(n,[{key:"getControlGroup",value:function(){var t=this.props.model,e=t.resizable,r=t.properties;return e&&!r.isFolded?d(_(n.prototype),"getControlGroup",this).call(this):null}},{key:"getAddAbleShape",value:function(){var t=this.props.model,e=t.width,n=t.height,o=t.x,i=t.y,u=t.radius;if(!t.properties.groupAddable)return null;var a=this.props.model.getNodeStyle().strokeWidth,l=this.props.model.getAddableOutlineStyle(),f=e+a+8,s=n+a+8;return Object(r.h)("rect",c(c({},l),{},{width:f,height:s,x:o-f/2,y:i-s/2,rx:u,ry:u}))}},{key:"getFoldIcon",value:function(){var t=this.props.model,e=t.x-t.width/2+5,n=t.y-t.height/2+5;if(!t.foldable)return null;var o=Object(r.h)("path",{fill:"none",stroke:"#818281",strokeWidth:2,"pointer-events":"none",d:t.properties.isFolded?"M ".concat(e+3,",").concat(n+6," ").concat(e+11,",").concat(n+6," M").concat(e+7,",").concat(n+2," ").concat(e+7,",").concat(n+10):"M ".concat(e+3,",").concat(n+6," ").concat(e+11,",").concat(n+6," ")});return Object(r.h)("g",{},[Object(r.h)("rect",{height:12,width:14,rx:2,ry:2,strokeWidth:1,fill:"#F4F5F6",stroke:"#CECECE",cursor:"pointer",x:t.x-t.width/2+5,y:t.y-t.height/2+5,onClick:function(){t.foldGroup(!t.properties.isFolded)}}),o])}},{key:"getResizeShape",value:function(){return Object(r.h)("g",{},[this.getAddAbleShape(),d(_(n.prototype),"getResizeShape",this).call(this),this.getFoldIcon()])}}]),n}(o.RectResize.view),model:w};function S(t){return function(t){if(Array.isArray(t))return j(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return j(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 j(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(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 E(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,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var P=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),k(this,"nodeGroupMap",new Map),k(this,"graphRendered",(function(t){t&&t.nodes&&t.nodes.forEach((function(t){t.children&&t.children.forEach((function(e){n.nodeGroupMap.set(e,t.id)}))}))})),k(this,"appendNodeToGroup",(function(t){var e=t.data,r=n.nodeGroupMap.get(e.id);if(r){var o=n.lf.getNodeModelById(r);o.removeChild(e.id),n.nodeGroupMap.delete(e.id),o.setAllowAppendChild(!1)}var i=n.getGroup(n.lf.getNodeModelById(e.id));i&&(i.isAllowAppendIn(e)?e.id!==i.id?(i.addChild(e.id),n.nodeGroupMap.set(e.id,i.id),i.setAllowAppendChild(!1)):e.children&&e.children.length>0&&e.children.forEach((function(t){n.nodeGroupMap.set(t,e.id)})):n.lf.emit("group:not-allowed",{group:i.getData(),node:e}))})),k(this,"deleteGroupChild",(function(t){var e=t.data,r=n.nodeGroupMap.get(e.id);r&&(n.lf.getNodeModelById(r).removeChild(e.id),n.nodeGroupMap.delete(e.id))})),k(this,"setActiveGroup",(function(t){var e=t.data,r=n.lf.getNodeModelById(e.id),o=n.getGroup(r);(n.activeGroup&&n.activeGroup.setAllowAppendChild(!1),!o||r.isGroup&&o.id===e.id)||o.isAllowAppendIn(e)&&(n.activeGroup=o,n.activeGroup.setAllowAppendChild(!0))})),r.register(O),this.lf=r,r.graphModel.addNodeMoveRules((function(t,e,o){if(t.isGroup){var i=n.getNodeAllChild(t);return r.graphModel.moveNodes(i,e,o,!0),!0}var u=r.getNodeModelById(n.nodeGroupMap.get(t.id)),c=!0;if(u&&u.isRestrict){var a=t.getBounds(),l=a.x1,f=a.y1,s=a.x2,p=a.y2;c=u.isAllowMoveTo({x1:l+e,y1:f+o,x2:s+e,y2:p+o})}return t.isGroup&&(!0===c?r.graphModel.moveNodes(S(t.getChildren()),e,o,!0):"boolean"!=typeof c&&r.graphModel.moveNodes(S(t.getChildren()),c.x?e:0,c.y?o:0,!0)),c})),r.graphModel.group=this,r.on("node:add",this.appendNodeToGroup),r.on("node:delete",this.deleteGroupChild),r.on("node:drop",this.appendNodeToGroup),r.on("node:dnd-drag",this.setActiveGroup),r.on("node:drag",this.setActiveGroup),r.on("graph:rendered",this.graphRendered)}var e,n,r;return e=t,(n=[{key:"getNodeAllChild",value:function(t){var e=this,n=[];return t.children&&t.children.forEach((function(t){n.push(t);var r=e.lf.getNodeModelById(t);r.isGroup&&(n=n.concat(e.getNodeAllChild(r)))})),n}},{key:"getGroup",value:function(t){if(!1===t.nestable)return null;for(var e=t.getBounds(),n=this.lf.graphModel.nodes,r=null,o=0;o<n.length;o++){var i=n[o];i!==t&&i.isGroup&&i.isInRange(e)&&(r?r.zIndex>i.zIndex?r=i:r.zIndex===i.zIndex&&(i.isInRange(r.getBounds())||(r=i)):r=i)}return r}},{key:"getNodeGroup",value:function(t){var e=this.nodeGroupMap.get(t);if(e)return this.lf.getNodeModelById(e)}}])&&E(e.prototype,n),r&&E(e,r),t}();k(P,"pluginName","group")}])}));
|
|
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=238)}([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(96))},function(t,e){var n=Function.prototype,r=n.bind,o=n.call,i=r&&r.bind(o);t.exports=r?function(t){return t&&i(o,t)}:function(t){return t&&function(){return o.apply(t,arguments)}}},function(t,e){t.exports=function(t){return"function"==typeof t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(0),o=n(34),i=n(6),u=n(36),c=n(46),a=n(62),l=o("wks"),f=r.Symbol,s=f&&f.for,p=a?f:f&&f.withoutSetter||u;t.exports=function(t){if(!i(l,t)||!c&&"string"!=typeof l[t]){var e="Symbol."+t;c&&i(f,t)?l[t]=f[t]:l[t]=a&&s?s(e):p(e)}return l[t]}},function(t,e,n){var r=n(0),o=n(25).f,i=n(16),u=n(15),c=n(42),a=n(68),l=n(72);t.exports=function(t,e){var n,f,s,p,d,h=t.target,y=t.global,v=t.stat;if(n=y?r:v?r[h]||c(h,{}):(r[h]||{}).prototype)for(f in e){if(p=e[f],s=t.noTargetGet?(d=o(n,f))&&d.value:n[f],!l(y?f:h+(v?".":"#")+f,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,f,p,t)}}},function(t,e,n){var r=n(1),o=n(14),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},function(t,e,n){var r=n(3);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,n){var r=n(0),o=n(7),i=n(63),u=n(10),c=n(27),a=r.TypeError,l=Object.defineProperty;e.f=o?l:function(t,e,n){if(u(t),e=c(e),u(n),i)try{return l(t,e,n)}catch(t){}if("get"in n||"set"in n)throw a("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(2);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},function(t,e,n){var r=n(0),o=n(9),i=r.String,u=r.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not an object")}},function(t,e){var n=Function.prototype.call;t.exports=n.bind?n.bind(n):function(){return n.apply(n,arguments)}},function(t,e,n){var r=n(54),o=n(33);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(0),o=n(2),i=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t]):r[t]&&r[t][e]}},function(t,e,n){var r=n(0),o=n(33),i=r.Object;t.exports=function(t){return i(o(t))}},function(t,e,n){var r=n(0),o=n(2),i=n(6),u=n(16),c=n(42),a=n(39),l=n(21),f=n(52).CONFIGURABLE,s=l.get,p=l.enforce,d=String(String).split("String");(t.exports=function(t,e,n,a){var l,s=!!a&&!!a.unsafe,h=!!a&&!!a.enumerable,y=!!a&&!!a.noTargetGet,v=a&&void 0!==a.name?a.name:e;o(n)&&("Symbol("===String(v).slice(0,7)&&(v="["+String(v).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(n,"name")||f&&n.name!==v)&&u(n,"name",v),(l=p(n)).source||(l.source=d.join("string"==typeof v?v:""))),t!==r?(s?!y&&t[e]&&(h=!0):delete t[e],h?t[e]=n:u(t,e,n)):h?t[e]=n:c(e,n)})(Function.prototype,"toString",(function(){return o(this)&&s(this).source||a(this)}))},function(t,e,n){var r=n(7),o=n(8),i=n(20);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(88);t.exports=function(t){return r(t.length)}},function(t,e,n){var r,o=n(10),i=n(92),u=n(47),c=n(24),a=n(106),l=n(44),f=n(30),s=f("IE_PROTO"),p=function(){},d=function(t){return"<script>"+t+"<\/script>"},h=function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e;y="undefined"!=typeof document?document.domain&&r?h(r):((e=l("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):h(r);for(var n=u.length;n--;)delete y.prototype[u[n]];return y()};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=y(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(1),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r,o,i,u=n(98),c=n(0),a=n(1),l=n(9),f=n(16),s=n(6),p=n(41),d=n(30),h=n(24),y=c.TypeError,v=c.WeakMap;if(u||p.state){var g=p.state||(p.state=new v),b=a(g.get),m=a(g.has),_=a(g.set);r=function(t,e){if(m(g,t))throw new y("Object already initialized");return e.facade=t,_(g,t,e),e},o=function(t){return b(g,t)||{}},i=function(t){return m(g,t)}}else{var x=d("state");h[x]=!0,r=function(t,e){if(s(t,x))throw new y("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(!l(e)||(n=o(e)).type!==t)throw y("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){var r=n(0),o=n(32),i=r.String;t.exports=function(t){if("Symbol"===o(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},function(e,n){e.exports=t},function(t,e){t.exports={}},function(t,e,n){var r=n(7),o=n(11),i=n(60),u=n(20),c=n(12),a=n(27),l=n(6),f=n(63),s=Object.getOwnPropertyDescriptor;e.f=r?s:function(t,e){if(t=c(t),e=a(e),f)try{return s(t,e)}catch(t){}if(l(t,e))return u(!o(i.f,t,e),t[e])}},function(t,e,n){var r=n(1);t.exports=r({}.isPrototypeOf)},function(t,e,n){var r=n(94),o=n(40);t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},function(t,e){t.exports={}},function(t,e){t.exports=!1},function(t,e,n){var r=n(34),o=n(36),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e,n){var r=n(19);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(0),o=n(43),i=n(2),u=n(19),c=n(4)("toStringTag"),a=r.Object,l="Arguments"==u(function(){return arguments}());t.exports=o?u: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=a(t),c))?n:l?u(e):"Object"==(r=u(e))&&i(e.callee)?"Arguments":r}},function(t,e,n){var r=n(0).TypeError;t.exports=function(t){if(null==t)throw r("Can't call method on "+t);return t}},function(t,e,n){var r=n(29),o=n(41);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(0),o=n(2),i=n(56),u=r.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not a function")}},function(t,e,n){var r=n(1),o=0,i=Math.random(),u=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+u(++o+i,36)}},function(t,e,n){var r=n(66),o=n(47).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){var e=+t;return e!=e||0===e?0:(e>0?r:n)(e)}},function(t,e,n){var r=n(1),o=n(2),i=n(41),u=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return u(t)}),t.exports=i.inspectSource},function(t,e,n){var r=n(0),o=n(13),i=n(2),u=n(26),c=n(62),a=r.Object;t.exports=c?function(t){return"symbol"==typeof t}:function(t){var e=o("Symbol");return i(e)&&u(e.prototype,a(t))}},function(t,e,n){var r=n(0),o=n(42),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,e,n){var r=n(0),o=Object.defineProperty;t.exports=function(t,e){try{o(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},function(t,e,n){var r={};r[n(4)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,e,n){var r=n(0),o=n(9),i=r.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},function(t,e,n){"use strict";var r=n(27),o=n(8),i=n(20);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){var r=n(55),o=n(3);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=n(8).f,o=n(6),i=n(4)("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(35);t.exports=function(t,e){var n=t[e];return null==n?void 0:r(n)}},function(t,e,n){var r=n(1),o=n(35),i=r(r.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?i(t,e):function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(38),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){var r=n(7),o=n(6),i=Function.prototype,u=r&&Object.getOwnPropertyDescriptor,c=o(i,"name"),a=c&&"something"===function(){}.name,l=c&&(!r||r&&u(i,"name").configurable);t.exports={EXISTS:c,PROPER:a,CONFIGURABLE:l}},function(t,e,n){var r=n(1),o=n(3),i=n(2),u=n(32),c=n(13),a=n(39),l=function(){},f=[],s=c("Reflect","construct"),p=/^\s*(?:class|function)\b/,d=r(p.exec),h=!p.exec(l),y=function(t){if(!i(t))return!1;try{return s(l,f,t),!0}catch(t){return!1}};t.exports=!s||o((function(){var t;return y(y.call)||!y(Object)||!y((function(){t=!0}))||t}))?function(t){if(!i(t))return!1;switch(u(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return h||!!d(p,a(t))}:y},function(t,e,n){var r=n(0),o=n(1),i=n(3),u=n(19),c=r.Object,a=o("".split);t.exports=i((function(){return!c("z").propertyIsEnumerable(0)}))?function(t){return"String"==u(t)?a(t,""):c(t)}:c},function(t,e,n){var r,o,i=n(0),u=n(87),c=i.process,a=i.Deno,l=c&&c.versions||a&&a.version,f=l&&l.v8;f&&(o=(r=f.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&u&&(!(r=u.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=u.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},function(t,e,n){var r=n(0).String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},function(t,e,n){var r=n(50),o=n(1),i=n(54),u=n(14),c=n(17),a=n(71),l=o([].push),f=function(t){var e=1==t,n=2==t,o=3==t,f=4==t,s=6==t,p=7==t,d=5==t||s;return function(h,y,v,g){for(var b,m,_=u(h),x=i(_),w=r(y,v),O=c(x),S=0,j=g||a,E=e?j(h,O):n||p?j(h,0):void 0;O>S;S++)if((d||S in x)&&(m=w(b=x[S],S,_),t))if(e)E[S]=m;else if(m)switch(t){case 3:return!0;case 5:return b;case 6:return S;case 2:l(E,b)}else switch(t){case 4:return!1;case 7:l(E,b)}return s?-1:o||f?f:E}};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){"use strict";var r=n(12),o=n(101),i=n(28),u=n(21),c=n(67),a=u.set,l=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=l(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){var r=n(66),o=n(47);t.exports=Object.keys||function(t){return r(t,o)}},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(6),i=n(2),u=n(14),c=n(30),a=n(95),l=c("IE_PROTO"),f=r.Object,s=f.prototype;t.exports=a?f.getPrototypeOf:function(t){var e=u(t);if(o(e,l))return e[l];var n=e.constructor;return i(n)&&e instanceof n?n.prototype:e instanceof f?s:null}},function(t,e,n){var r=n(46);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){var r=n(7),o=n(3),i=n(44);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(43),o=n(15),i=n(100);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(1),o=n(6),i=n(12),u=n(90).indexOf,c=n(24),a=r([].push);t.exports=function(t,e){var n,r=i(t),l=0,f=[];for(n in r)!o(c,n)&&o(r,n)&&a(f,n);for(;e.length>l;)o(r,n=e[l++])&&(~u(f,n)||a(f,n));return f}},function(t,e,n){"use strict";var r=n(5),o=n(11),i=n(29),u=n(52),c=n(2),a=n(108),l=n(61),f=n(79),s=n(48),p=n(16),d=n(15),h=n(4),y=n(28),v=n(78),g=u.PROPER,b=u.CONFIGURABLE,m=v.IteratorPrototype,_=v.BUGGY_SAFARI_ITERATORS,x=h("iterator"),w=function(){return this};t.exports=function(t,e,n,u,h,v,O){a(n,e,u);var S,j,E,k=function(t){if(t===h&&N)return N;if(!_&&t in R)return R[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},P=e+" Iterator",M=!1,R=t.prototype,A=R[x]||R["@@iterator"]||h&&R[h],N=!_&&A||k(h),D="Array"==e&&R.entries||A;if(D&&(S=l(D.call(new t)))!==Object.prototype&&S.next&&(i||l(S)===m||(f?f(S,m):c(S[x])||d(S,x,w)),s(S,P,!0,!0),i&&(y[P]=w)),g&&"values"==h&&A&&"values"!==A.name&&(!i&&b?p(R,"name","values"):(M=!0,N=function(){return o(A,this)})),h)if(j={values:k("values"),keys:v?N:k("keys"),entries:k("entries")},O)for(E in j)(_||M||!(E in R))&&d(R,E,j[E]);else r({target:e,proto:!0,forced:_||M},j);return i&&!O||R[x]===N||d(R,x,N,{name:h}),y[e]=N,j}},function(t,e,n){var r=n(6),o=n(83),i=n(25),u=n(8);t.exports=function(t,e){for(var n=o(e),c=u.f,a=i.f,l=0;l<n.length;l++){var f=n[l];r(t,f)||c(t,f,a(e,f))}}},function(t,e,n){var r=n(5),o=n(7);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:n(8).f})},function(t,e,n){var r=n(1);t.exports=r([].slice)},function(t,e,n){var r=n(99);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},function(t,e,n){var r=n(3),o=n(2),i=/#|\.prototype\./,u=function(t,e){var n=a[c(t)];return n==f||n!=l&&(o(e)?r(e):!!e)},c=u.normalize=function(t){return String(t).replace(i,".").toLowerCase()},a=u.data={},l=u.NATIVE="N",f=u.POLYFILL="P";t.exports=u},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(44)("span").classList,o=r&&r.constructor&&r.constructor.prototype;t.exports=o===Object.prototype?void 0:o},function(t,e,n){"use strict";var r=n(105).charAt,o=n(22),i=n(21),u=n(67),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){var r=n(3),o=n(4),i=n(55),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){"use strict";var r=n(5),o=n(0),i=n(13),u=n(89),c=n(11),a=n(1),l=n(29),f=n(7),s=n(46),p=n(3),d=n(6),h=n(31),y=n(2),v=n(9),g=n(26),b=n(40),m=n(10),_=n(14),x=n(12),w=n(27),O=n(22),S=n(20),j=n(18),E=n(59),k=n(37),P=n(102),M=n(65),R=n(25),A=n(8),N=n(60),D=n(70),T=n(15),I=n(34),C=n(30),F=n(24),G=n(36),z=n(4),L=n(85),W=n(86),H=n(48),B=n(21),Y=n(57).forEach,X=C("hidden"),U=z("toPrimitive"),q=B.set,V=B.getterFor("Symbol"),$=Object.prototype,K=o.Symbol,J=K&&K.prototype,Q=o.TypeError,Z=o.QObject,tt=i("JSON","stringify"),et=R.f,nt=A.f,rt=P.f,ot=N.f,it=a([].push),ut=I("symbols"),ct=I("op-symbols"),at=I("string-to-symbol-registry"),lt=I("symbol-to-string-registry"),ft=I("wks"),st=!Z||!Z.prototype||!Z.prototype.findChild,pt=f&&p((function(){return 7!=j(nt({},"a",{get:function(){return nt(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=et($,e);r&&delete $[e],nt(t,e,n),r&&t!==$&&nt($,e,r)}:nt,dt=function(t,e){var n=ut[t]=j(J);return q(n,{type:"Symbol",tag:t,description:e}),f||(n.description=e),n},ht=function(t,e,n){t===$&&ht(ct,e,n),m(t);var r=w(e);return m(n),d(ut,r)?(n.enumerable?(d(t,X)&&t[X][r]&&(t[X][r]=!1),n=j(n,{enumerable:S(0,!1)})):(d(t,X)||nt(t,X,S(1,{})),t[X][r]=!0),pt(t,r,n)):nt(t,r,n)},yt=function(t,e){m(t);var n=x(e),r=E(n).concat(mt(n));return Y(r,(function(e){f&&!c(vt,n,e)||ht(t,e,n[e])})),t},vt=function(t){var e=w(t),n=c(ot,this,e);return!(this===$&&d(ut,e)&&!d(ct,e))&&(!(n||!d(this,e)||!d(ut,e)||d(this,X)&&this[X][e])||n)},gt=function(t,e){var n=x(t),r=w(e);if(n!==$||!d(ut,r)||d(ct,r)){var o=et(n,r);return!o||!d(ut,r)||d(n,X)&&n[X][r]||(o.enumerable=!0),o}},bt=function(t){var e=rt(x(t)),n=[];return Y(e,(function(t){d(ut,t)||d(F,t)||it(n,t)})),n},mt=function(t){var e=t===$,n=rt(e?ct:x(t)),r=[];return Y(n,(function(t){!d(ut,t)||e&&!d($,t)||it(r,ut[t])})),r};(s||(T(J=(K=function(){if(g(J,this))throw Q("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?O(arguments[0]):void 0,e=G(t),n=function(t){this===$&&c(n,ct,t),d(this,X)&&d(this[X],e)&&(this[X][e]=!1),pt(this,e,S(1,t))};return f&&st&&pt($,e,{configurable:!0,set:n}),dt(e,t)}).prototype,"toString",(function(){return V(this).tag})),T(K,"withoutSetter",(function(t){return dt(G(t),t)})),N.f=vt,A.f=ht,R.f=gt,k.f=P.f=bt,M.f=mt,L.f=function(t){return dt(z(t),t)},f&&(nt(J,"description",{configurable:!0,get:function(){return V(this).description}}),l||T($,"propertyIsEnumerable",vt,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!s,sham:!s},{Symbol:K}),Y(E(ft),(function(t){W(t)})),r({target:"Symbol",stat:!0,forced:!s},{for:function(t){var e=O(t);if(d(at,e))return at[e];var n=K(e);return at[e]=n,lt[n]=e,n},keyFor:function(t){if(!b(t))throw Q(t+" is not a symbol");if(d(lt,t))return lt[t]},useSetter:function(){st=!0},useSimple:function(){st=!1}}),r({target:"Object",stat:!0,forced:!s,sham:!f},{create:function(t,e){return void 0===e?j(t):yt(j(t),e)},defineProperty:ht,defineProperties:yt,getOwnPropertyDescriptor:gt}),r({target:"Object",stat:!0,forced:!s},{getOwnPropertyNames:bt,getOwnPropertySymbols:mt}),r({target:"Object",stat:!0,forced:p((function(){M.f(1)}))},{getOwnPropertySymbols:function(t){return M.f(_(t))}}),tt)&&r({target:"JSON",stat:!0,forced:!s||p((function(){var t=K();return"[null]"!=tt([t])||"{}"!=tt({a:t})||"{}"!=tt(Object(t))}))},{stringify:function(t,e,n){var r=D(arguments),o=e;if((v(e)||void 0!==t)&&!b(t))return h(e)||(e=function(t,e){if(y(o)&&(e=c(o,this,t,e)),!b(e))return e}),r[1]=e,u(tt,null,r)}});if(!J[U]){var _t=J.valueOf;T(J,U,(function(t){return c(_t,this)}))}H(K,"Symbol"),F[X]=!0},function(t,e,n){"use strict";var r,o,i,u=n(3),c=n(2),a=n(18),l=n(61),f=n(15),s=n(4),p=n(29),d=s("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(r=o):h=!0),null==r||u((function(){var t={};return r[d].call(t)!==t}))?r={}:p&&(r=a(r)),c(r[d])||f(r,d,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},function(t,e,n){var r=n(1),o=n(10),i=n(109);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return o(n),i(r),e?t(n,r):n.__proto__=r,n}}():void 0)},function(t,e,n){var r=n(0),o=n(73),i=n(74),u=n(58),c=n(16),a=n(4),l=a("iterator"),f=a("toStringTag"),s=u.values,p=function(t,e){if(t){if(t[l]!==s)try{c(t,l,s)}catch(e){t[l]=s}if(t[f]||c(t,f,e),o[e])for(var n in u)if(t[n]!==u[n])try{c(t,n,u[n])}catch(e){t[n]=u[n]}}};for(var d in o)p(r[d]&&r[d].prototype,d);p(i,"DOMTokenList")},function(t,e,n){"use strict";var r=n(5),o=n(7),i=n(0),u=n(1),c=n(6),a=n(2),l=n(26),f=n(22),s=n(8).f,p=n(68),d=i.Symbol,h=d&&d.prototype;if(o&&a(d)&&(!("description"in h)||void 0!==d().description)){var y={},v=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:f(arguments[0]),e=l(h,this)?new d(t):void 0===t?d():d(t);return""===t&&(y[e]=!0),e};p(v,d),v.prototype=h,h.constructor=v;var g="Symbol(test)"==String(d("test")),b=u(h.toString),m=u(h.valueOf),_=/^Symbol\((.*)\)[^)]+$/,x=u("".replace),w=u("".slice);s(h,"description",{configurable:!0,get:function(){var t=m(this),e=b(t);if(c(y,t))return"";var n=g?w(e,7,-1):x(e,_,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:v})}},function(t,e,n){n(86)("iterator")},function(t,e,n){var r=n(13),o=n(1),i=n(37),u=n(65),c=n(10),a=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(c(t)),n=u.f;return n?a(e,n(t)):e}},function(t,e,n){"use strict";var r=n(57).forEach,o=n(91)("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e,n){var r=n(4);e.f=r},function(t,e,n){var r=n(115),o=n(6),i=n(85),u=n(8).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(13);t.exports=r("navigator","userAgent")||""},function(t,e,n){var r=n(38),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){var n=Function.prototype,r=n.apply,o=n.bind,i=n.call;t.exports="object"==typeof Reflect&&Reflect.apply||(o?i.bind(r):function(){return i.apply(r,arguments)})},function(t,e,n){var r=n(12),o=n(51),i=n(17),u=function(t){return function(e,n,u){var c,a=r(e),l=i(a),f=o(u,l);if(t&&n!=n){for(;l>f;)if((c=a[f++])!=c)return!0}else for(;l>f;f++)if((t||f in a)&&a[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},function(t,e,n){"use strict";var r=n(3);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(7),o=n(8),i=n(10),u=n(12),c=n(59);t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=u(e),a=c(e),l=a.length,f=0;l>f;)o.f(t,n=a[f++],r[n]);return t}},function(t,e,n){var r=n(32),o=n(49),i=n(28),u=n(4)("iterator");t.exports=function(t){if(null!=t)return o(t,u)||o(t,"@@iterator")||i[r(t)]}},function(t,e,n){var r=n(0),o=n(11),i=n(9),u=n(40),c=n(49),a=n(97),l=n(4),f=r.TypeError,s=l("toPrimitive");t.exports=function(t,e){if(!i(t)||u(t))return t;var n,r=c(t,s);if(r){if(void 0===e&&(e="default"),n=o(r,t,e),!i(n)||u(n))return n;throw f("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},function(t,e,n){var r=n(3);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},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(0),o=n(11),i=n(2),u=n(9),c=r.TypeError;t.exports=function(t,e){var n,r;if("string"===e&&i(n=t.toString)&&!u(r=o(n,t)))return r;if(i(n=t.valueOf)&&!u(r=o(n,t)))return r;if("string"!==e&&i(n=t.toString)&&!u(r=o(n,t)))return r;throw c("Can't convert object to primitive value")}},function(t,e,n){var r=n(0),o=n(2),i=n(39),u=r.WeakMap;t.exports=o(u)&&/native code/.test(i(u))},function(t,e,n){var r=n(0),o=n(31),i=n(53),u=n(9),c=n(4)("species"),a=r.Array;t.exports=function(t){var e;return o(t)&&(e=t.constructor,(i(e)&&(e===a||o(e.prototype))||u(e)&&null===(e=e[c]))&&(e=void 0)),void 0===e?a:e}},function(t,e,n){"use strict";var r=n(43),o=n(32);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,e,n){var r=n(4),o=n(18),i=n(8),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(19),o=n(12),i=n(37).f,u=n(107),c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return c&&"Window"==r(t)?function(t){try{return i(t)}catch(t){return u(c)}}(t):i(o(t))}},function(t,e,n){"use strict";var r=n(5),o=n(84);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,e,n){var r=n(0),o=n(73),i=n(74),u=n(84),c=n(16),a=function(t){if(t&&t.forEach!==u)try{c(t,"forEach",u)}catch(e){t.forEach=u}};for(var l in o)o[l]&&a(r[l]&&r[l].prototype);a(i)},function(t,e,n){var r=n(1),o=n(38),i=n(22),u=n(33),c=r("".charAt),a=r("".charCodeAt),l=r("".slice),f=function(t){return function(e,n){var r,f,s=i(u(e)),p=o(n),d=s.length;return p<0||p>=d?t?"":void 0:(r=a(s,p))<55296||r>56319||p+1===d||(f=a(s,p+1))<56320||f>57343?t?c(s,p):r:t?l(s,p,p+2):f-56320+(r-55296<<10)+65536}};t.exports={codeAt:f(!1),charAt:f(!0)}},function(t,e,n){var r=n(13);t.exports=r("document","documentElement")},function(t,e,n){var r=n(0),o=n(51),i=n(17),u=n(45),c=r.Array,a=Math.max;t.exports=function(t,e,n){for(var r=i(t),l=o(e,r),f=o(void 0===n?r:n,r),s=c(a(f-l,0)),p=0;l<f;l++,p++)u(s,p,t[l]);return s.length=p,s}},function(t,e,n){"use strict";var r=n(78).IteratorPrototype,o=n(18),i=n(20),u=n(48),c=n(28),a=function(){return this};t.exports=function(t,e,n,l){var f=e+" Iterator";return t.prototype=o(r,{next:i(+!l,n)}),u(t,f,!1,!0),c[f]=a,t}},function(t,e,n){var r=n(0),o=n(2),i=r.String,u=r.TypeError;t.exports=function(t){if("object"==typeof t||o(t))return t;throw u("Can't set "+i(t)+" as a prototype")}},function(t,e,n){"use strict";var r,o,i=n(11),u=n(1),c=n(22),a=n(122),l=n(123),f=n(34),s=n(18),p=n(21).get,d=n(126),h=n(127),y=f("native-string-replace",String.prototype.replace),v=RegExp.prototype.exec,g=v,b=u("".charAt),m=u("".indexOf),_=u("".replace),x=u("".slice),w=(o=/b*/g,i(v,r=/a/,"a"),i(v,o,"a"),0!==r.lastIndex||0!==o.lastIndex),O=l.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];(w||S||O||d||h)&&(g=function(t){var e,n,r,o,u,l,f,d=this,h=p(d),j=c(t),E=h.raw;if(E)return E.lastIndex=d.lastIndex,e=i(g,E,j),d.lastIndex=E.lastIndex,e;var k=h.groups,P=O&&d.sticky,M=i(a,d),R=d.source,A=0,N=j;if(P&&(M=_(M,"y",""),-1===m(M,"g")&&(M+="g"),N=x(j,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==b(j,d.lastIndex-1))&&(R="(?: "+R+")",N=" "+N,A++),n=new RegExp("^(?:"+R+")",M)),S&&(n=new RegExp("^"+R+"$(?!\\s)",M)),w&&(r=d.lastIndex),o=i(v,P?n:d,N),P?o?(o.input=x(o.input,A),o[0]=x(o[0],A),o.index=d.lastIndex,d.lastIndex+=o[0].length):d.lastIndex=0:w&&o&&(d.lastIndex=d.global?o.index+o[0].length:r),S&&o&&o.length>1&&i(y,o[0],n,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(o[u]=void 0)})),o&&k)for(o.groups=l=s(null),u=0;u<k.length;u++)l[(f=k[u])[0]]=o[f[1]];return o}),t.exports=g},function(t,e,n){var r=n(4),o=n(28),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(0),o=n(11),i=n(35),u=n(10),c=n(56),a=n(93),l=r.TypeError;t.exports=function(t,e){var n=arguments.length<2?a(t):e;if(i(n))return u(o(n,t));throw l(c(t)+" is not iterable")}},function(t,e,n){var r=n(11),o=n(10),i=n(49);t.exports=function(t,e,n){var u,c;o(t);try{if(!(u=i(t,"return"))){if("throw"===e)throw n;return n}u=r(u,t)}catch(t){c=!0,u=t}if("throw"===e)throw n;if(c)throw u;return o(u),n}},function(t,e,n){var r=n(4)("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){var r=n(0);t.exports=r},function(t,e,n){"use strict";var r=n(5),o=n(110);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(t,e,n){var r=n(5),o=n(3),i=n(12),u=n(25).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(5)({target:"Object",stat:!0},{setPrototypeOf:n(79)})},function(t,e,n){var r=n(5),o=n(3),i=n(14),u=n(61),c=n(95);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(5),o=n(13),i=n(89),u=n(146),c=n(145),a=n(10),l=n(9),f=n(18),s=n(3),p=o("Reflect","construct"),d=Object.prototype,h=[].push,y=s((function(){function t(){}return!(p((function(){}),[],t)instanceof t)})),v=!s((function(){p((function(){}))})),g=y||v;r({target:"Reflect",stat:!0,forced:g,sham:g},{construct:function(t,e){c(t),a(e);var n=arguments.length<3?t:c(arguments[2]);if(v&&!y)return p(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 i(h,r,e),new(i(u,t,r))}var o=n.prototype,s=f(l(o)?o:d),g=i(t,s,e);return l(g)?g:s}})},function(t,e,n){n(5)({target:"Object",stat:!0,sham:!n(7)},{create:n(18)})},function(t,e,n){"use strict";var r=n(10);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){var r=n(3),o=n(0).RegExp,i=r((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),u=i||r((function(){return!o("a","y").sticky})),c=i||r((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:c,MISSED_STICKY:u,UNSUPPORTED_Y:i}},function(t,e,n){var r=n(0),o=n(50),i=n(11),u=n(10),c=n(56),a=n(111),l=n(17),f=n(26),s=n(112),p=n(93),d=n(113),h=r.TypeError,y=function(t,e){this.stopped=t,this.result=e},v=y.prototype;t.exports=function(t,e,n){var r,g,b,m,_,x,w,O=n&&n.that,S=!(!n||!n.AS_ENTRIES),j=!(!n||!n.IS_ITERATOR),E=!(!n||!n.INTERRUPTED),k=o(e,O),P=function(t){return r&&d(r,"normal",t),new y(!0,t)},M=function(t){return S?(u(t),E?k(t[0],t[1],P):k(t[0],t[1])):E?k(t,P):k(t)};if(j)r=t;else{if(!(g=p(t)))throw h(c(t)+" is not iterable");if(a(g)){for(b=0,m=l(t);m>b;b++)if((_=M(t[b]))&&f(v,_))return _;return new y(!1)}r=s(t,g)}for(x=r.next;!(w=i(x,r)).done;){try{_=M(w.value)}catch(t){d(r,"throw",t)}if("object"==typeof _&&_&&f(v,_))return _}return new y(!1)}},function(t,e,n){var r=n(0),o=n(26),i=r.TypeError;t.exports=function(t,e){if(o(e,t))return t;throw i("Incorrect invocation")}},function(t,e,n){var r=n(3),o=n(0).RegExp;t.exports=r((function(){var t=o(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},function(t,e,n){var r=n(3),o=n(0).RegExp;t.exports=r((function(){var t=o("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},function(t,e,n){var r=n(5),o=n(134);r({target:"Array",stat:!0,forced:!n(114)((function(t){Array.from(t)}))},{from:o})},function(t,e,n){var r=n(5),o=n(1),i=n(24),u=n(9),c=n(6),a=n(8).f,l=n(37),f=n(102),s=n(147),p=n(36),d=n(149),h=!1,y=p("meta"),v=0,g=function(t){a(t,y,{value:{objectID:"O"+v++,weakData:{}}})},b=t.exports={enable:function(){b.enable=function(){},h=!0;var t=l.f,e=o([].splice),n={};n[y]=1,t(n).length&&(l.f=function(n){for(var r=t(n),o=0,i=r.length;o<i;o++)if(r[o]===y){e(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:f.f}))},fastKey:function(t,e){if(!u(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!c(t,y)){if(!s(t))return"F";if(!e)return"E";g(t)}return t[y].objectID},getWeakData:function(t,e){if(!c(t,y)){if(!s(t))return!0;if(!e)return!1;g(t)}return t[y].weakData},onFreeze:function(t){return d&&h&&s(t)&&!c(t,y)&&g(t),t}};i[y]=!0},function(t,e,n){n(5)({target:"Array",stat:!0},{isArray:n(31)})},function(t,e,n){var r=n(5),o=n(14),i=n(59);r({target:"Object",stat:!0,forced:n(3)((function(){i(1)}))},{keys:function(t){return i(o(t))}})},function(t,e,n){"use strict";var r=n(5),o=n(0),i=n(31),u=n(53),c=n(9),a=n(51),l=n(17),f=n(12),s=n(45),p=n(4),d=n(76),h=n(70),y=d("slice"),v=p("species"),g=o.Array,b=Math.max;r({target:"Array",proto:!0,forced:!y},{slice:function(t,e){var n,r,o,p=f(this),d=l(p),y=a(t,d),m=a(void 0===e?d:e,d);if(i(p)&&(n=p.constructor,(u(n)&&(n===g||i(n.prototype))||c(n)&&null===(n=n[v]))&&(n=void 0),n===g||void 0===n))return h(p,y,m);for(r=new(void 0===n?g:n)(b(m-y,0)),o=0;y<m;y++,o++)y in p&&s(r,o,p[y]);return r.length=o,r}})},function(t,e,n){var r=n(7),o=n(52).EXISTS,i=n(1),u=n(8).f,c=Function.prototype,a=i(c.toString),l=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,f=i(l.exec);r&&!o&&u(c,"name",{configurable:!0,get:function(){try{return f(l,a(this))[1]}catch(t){return""}}})},function(t,e,n){"use strict";var r=n(0),o=n(50),i=n(11),u=n(14),c=n(135),a=n(111),l=n(53),f=n(17),s=n(45),p=n(112),d=n(93),h=r.Array;t.exports=function(t){var e=u(t),n=l(this),r=arguments.length,y=r>1?arguments[1]:void 0,v=void 0!==y;v&&(y=o(y,r>2?arguments[2]:void 0));var g,b,m,_,x,w,O=d(e),S=0;if(!O||this==h&&a(O))for(g=f(e),b=n?new this(g):h(g);g>S;S++)w=v?y(e[S],S):e[S],s(b,S,w);else for(x=(_=p(e,O)).next,b=n?new this:[];!(m=i(x,_)).done;S++)w=v?c(_,y,[m.value,S],!0):m.value,s(b,S,w);return b.length=S,b}},function(t,e,n){var r=n(10),o=n(113);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){"use strict";var r=n(5),o=n(57).filter;r({target:"Array",proto:!0,forced:!n(76)("filter")},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(5),o=n(7),i=n(83),u=n(12),c=n(25),a=n(45);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){for(var e,n,r=u(t),o=c.f,l=i(r),f={},s=0;l.length>s;)void 0!==(n=o(r,e=l[s++]))&&a(f,e,n);return f}})},function(t,e,n){var r=n(5),o=n(7);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperties:n(92)})},function(t,e,n){"use strict";var r=n(5),o=n(0),i=n(3),u=n(31),c=n(9),a=n(14),l=n(17),f=n(45),s=n(71),p=n(76),d=n(4),h=n(55),y=d("isConcatSpreadable"),v=o.TypeError,g=h>=51||!i((function(){var t=[];return t[y]=!1,t.concat()[0]!==t})),b=p("concat"),m=function(t){if(!c(t))return!1;var e=t[y];return void 0!==e?!!e:u(t)};r({target:"Array",proto:!0,forced:!g||!b},{concat:function(t){var e,n,r,o,i,u=a(this),c=s(u,0),p=0;for(e=-1,r=arguments.length;e<r;e++)if(m(i=-1===e?u:arguments[e])){if(p+(o=l(i))>9007199254740991)throw v("Maximum allowed index exceeded");for(n=0;n<o;n++,p++)n in i&&f(c,p,i[n])}else{if(p>=9007199254740991)throw v("Maximum allowed index exceeded");f(c,p++,i)}return c.length=p,c}})},function(t,e,n){var r=n(2),o=n(9),i=n(79);t.exports=function(t,e,n){var u,c;return i&&r(u=e.constructor)&&u!==n&&o(c=u.prototype)&&c!==n.prototype&&i(t,c),t}},function(t,e,n){"use strict";var r=n(5),o=n(0),i=n(1),u=n(72),c=n(15),a=n(129),l=n(124),f=n(125),s=n(2),p=n(9),d=n(3),h=n(114),y=n(48),v=n(140);t.exports=function(t,e,n){var g=-1!==t.indexOf("Map"),b=-1!==t.indexOf("Weak"),m=g?"set":"add",_=o[t],x=_&&_.prototype,w=_,O={},S=function(t){var e=i(x[t]);c(x,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(b&&!p(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return b&&!p(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(b&&!p(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(u(t,!s(_)||!(b||x.forEach&&!d((function(){(new _).entries().next()})))))w=n.getConstructor(e,t,g,m),a.enable();else if(u(t,!0)){var j=new w,E=j[m](b?{}:-0,1)!=j,k=d((function(){j.has(1)})),P=h((function(t){new _(t)})),M=!b&&d((function(){for(var t=new _,e=5;e--;)t[m](e,e);return!t.has(-0)}));P||((w=e((function(t,e){f(t,x);var n=v(new _,t,w);return null!=e&&l(e,n[m],{that:n,AS_ENTRIES:g}),n}))).prototype=x,x.constructor=w),(k||M)&&(S("delete"),S("has"),g&&S("get")),(M||E)&&S(m),b&&x.clear&&delete x.clear}return O[t]=w,r({global:!0,forced:w!=_},O),y(w,t),b||n.setStrong(w,t,g),w}},function(t,e,n){"use strict";var r=n(8).f,o=n(18),i=n(143),u=n(50),c=n(125),a=n(124),l=n(67),f=n(144),s=n(7),p=n(129).fastKey,d=n(21),h=d.set,y=d.getterFor;t.exports={getConstructor:function(t,e,n,l){var f=t((function(t,r){c(t,d),h(t,{type:e,index:o(null),first:void 0,last:void 0,size:0}),s||(t.size=0),null!=r&&a(r,t[l],{that:t,AS_ENTRIES:n})})),d=f.prototype,v=y(e),g=function(t,e,n){var r,o,i=v(t),u=b(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),s?i.size++:t.size++,"F"!==o&&(i.index[o]=u)),t},b=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(d,{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,s?t.size=0:this.size=0},delete:function(t){var e=v(this),n=b(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),s?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);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!b(this,t)}}),i(d,n?{get:function(t){var e=b(this,t);return e&&e.value},set:function(t,e){return g(this,0===t?0:t,e)}}:{add:function(t){return g(this,t=0===t?0:t,t)}}),s&&r(d,"size",{get:function(){return v(this).size}}),f},setStrong:function(t,e,n){var r=e+" Iterator",o=y(e),i=y(r);l(t,e,(function(t,e){h(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),f(e)}}},function(t,e,n){var r=n(15);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(13),o=n(8),i=n(4),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){var r=n(0),o=n(53),i=n(56),u=r.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not a constructor")}},function(t,e,n){"use strict";var r=n(0),o=n(1),i=n(35),u=n(9),c=n(6),a=n(70),l=r.Function,f=o([].concat),s=o([].join),p={},d=function(t,e,n){if(!c(p,e)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";p[e]=l("C,a","return new C("+s(r,",")+")")}return p[e](t,n)};t.exports=l.bind||function(t){var e=i(this),n=e.prototype,r=a(arguments,1),o=function(){var n=f(r,a(arguments));return this instanceof o?d(e,n.length,n):e.apply(t,n)};return u(n)&&(o.prototype=n),o}},function(t,e,n){var r=n(3),o=n(9),i=n(19),u=n(148),c=Object.isExtensible,a=r((function(){c(1)}));t.exports=a||u?function(t){return!!o(t)&&((!u||"ArrayBuffer"!=i(t))&&(!c||c(t)))}:c},function(t,e,n){var r=n(3);t.exports=r((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},function(t,e,n){var r=n(3);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},,,function(t,e,n){"use strict";n(141)("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(142))},function(t,e,n){"use strict";var r=n(5),o=n(57).map;r({target:"Array",proto:!0,forced:!n(76)("map")},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(5),o=n(11),i=n(9),u=n(10),c=n(173),a=n(25),l=n(61);r({target:"Reflect",stat:!0},{get:function t(e,n){var r,f,s=arguments.length<3?e:arguments[2];return u(e)===s?e[n]:(r=a.f(e,n))?c(r)?r.value:void 0===r.get?void 0:o(r.get,s):i(f=l(e))?t(f,n,s):void 0}})},,,,,function(t,e,n){var r=n(5),o=n(166);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(t,e,n){"use strict";var r=n(5),o=n(1),i=n(54),u=n(12),c=n(91),a=o([].join),l=i!=Object,f=c("join",",");r({target:"Array",proto:!0,forced:l||!f},{join:function(t){return a(u(this),void 0===t?",":t)}})},,,,,,function(t,e,n){"use strict";var r=n(7),o=n(1),i=n(11),u=n(3),c=n(59),a=n(65),l=n(60),f=n(14),s=n(54),p=Object.assign,d=Object.defineProperty,h=o([].concat);t.exports=!p||u((function(){if(r&&1!==p({b:1},p(d({},"a",{enumerable:!0,get:function(){d(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!=p({},t)[n]||"abcdefghijklmnopqrst"!=c(p({},e)).join("")}))?function(t,e){for(var n=f(t),o=arguments.length,u=1,p=a.f,d=l.f;o>u;)for(var y,v=s(arguments[u++]),g=p?h(c(v),p(v)):c(v),b=g.length,m=0;b>m;)y=g[m++],r&&!i(d,v,y)||(n[y]=v[y]);return n}:p},,,,,,,function(t,e,n){var r=n(6);t.exports=function(t){return void 0!==t&&(r(t,"value")||r(t,"writable"))}},function(t,e,n){"use strict";n(141)("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(142))},function(t,e,n){"use strict";n.r(e),n.d(e,"NodeResize",(function(){return ye})),n.d(e,"RectResize",(function(){return kt})),n.d(e,"EllipseResize",(function(){return Lt})),n.d(e,"DiamondResize",(function(){return ee})),n.d(e,"HtmlResize",(function(){return he}));n(118),n(119),n(64),n(120),n(121),n(154),n(117),n(69),n(77),n(81),n(82),n(58),n(75),n(80);var r,o,i,u,c,a,l=n(23),f=(n(153),n(159),{}),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 h(t){var e=t.parentNode;e&&e.removeChild(t)}function y(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==u&&null!=o.vnode&&o.vnode(c),c}function g(t){return t.children}function b(t,e){this.props=t,this.context=e}function m(t,e){if(null==e)return t.__?m(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?m(t):null}function _(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 _(t)}}function x(t){(!t.__d&&(t.__d=!0)&&u.push(t)&&!w.__r++||a!==o.debounceRendering)&&((a=o.debounceRendering)||c)(w)}function w(){for(var t;w.__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?m(o):i,o.__h),A(n,o),o.__e!=i&&_(o)))}))}function O(t,e,n,r,o,i,u,c,a,l){var p,d,h,y,b,_,x,w=r&&r.__k||s,O=w.length;for(n.__k=[],p=0;p<e.length;p++)if(null!=(y=n.__k[p]=null==(y=e[p])||"boolean"==typeof y?null:"string"==typeof y||"number"==typeof y||"bigint"==typeof y?v(null,y,null,null,y):Array.isArray(y)?v(g,{children:y},null,null,null):y.__b>0?v(y.type,y.props,y.key,null,y.__v):y)){if(y.__=n,y.__b=n.__b+1,null===(h=w[p])||h&&y.key==h.key&&y.type===h.type)w[p]=void 0;else for(d=0;d<O;d++){if((h=w[d])&&y.key==h.key&&y.type===h.type){w[d]=void 0;break}h=null}R(t,y,h=h||f,o,i,u,c,a,l),b=y.__e,(d=y.ref)&&h.ref!=d&&(x||(x=[]),h.ref&&x.push(h.ref,null,y),x.push(d,y.__c||b,y)),null!=b?(null==_&&(_=b),"function"==typeof y.type&&y.__k===h.__k?y.__d=a=S(y,a,t):a=j(t,y,h,w,b,a),"function"==typeof n.type&&(n.__d=a)):a&&h.__e==a&&a.parentNode!=t&&(a=m(h))}for(n.__e=_,p=O;p--;)null!=w[p]&&("function"==typeof n.type&&null!=w[p].__e&&w[p].__e==n.__d&&(n.__d=m(r,p+1)),T(w[p],w[p]));if(x)for(p=0;p<x.length;p++)D(x[p],x[++p],x[++p])}function S(t,e,n){for(var r,o=t.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=t,e="function"==typeof r.type?S(r,e,n):j(n,r,r,o,r.__e,e));return e}function j(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 E(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]=null==n?"":"number"!=typeof n||p.test(e)?n:n+"px"}function k(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||E(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||E(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:P,i):t.removeEventListener(e,i?M:P,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 P(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,l){var f,s,p,h,y,v,m,_,x,w,S,j=e.type;if(void 0!==e.constructor)return null;null!=n.__h&&(l=n.__h,a=e.__e=n.__e,e.__h=null,u=[a]),(f=o.__b)&&f(e);try{t:if("function"==typeof j){if(_=e.props,x=(f=j.contextType)&&r[f.__c],w=f?x?x.props.value:f.__:r,n.__c?m=(s=e.__c=n.__c).__=s.__E:("prototype"in j&&j.prototype.render?e.__c=s=new j(_,w):(e.__c=s=new b(_,w),s.constructor=j,s.render=I),x&&x.sub(s),s.props=_,s.state||(s.state={}),s.context=w,s.__n=r,p=s.__d=!0,s.__h=[]),null==s.__s&&(s.__s=s.state),null!=j.getDerivedStateFromProps&&(s.__s==s.state&&(s.__s=d({},s.__s)),d(s.__s,j.getDerivedStateFromProps(_,s.__s))),h=s.props,y=s.state,p)null==j.getDerivedStateFromProps&&null!=s.componentWillMount&&s.componentWillMount(),null!=s.componentDidMount&&s.__h.push(s.componentDidMount);else{if(null==j.getDerivedStateFromProps&&_!==h&&null!=s.componentWillReceiveProps&&s.componentWillReceiveProps(_,w),!s.__e&&null!=s.shouldComponentUpdate&&!1===s.shouldComponentUpdate(_,s.__s,w)||e.__v===n.__v){s.props=_,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(_,s.__s,w),null!=s.componentDidUpdate&&s.__h.push((function(){s.componentDidUpdate(h,y,v)}))}s.context=w,s.props=_,s.state=s.__s,(f=o.__r)&&f(e),s.__d=!1,s.__v=e,s.__P=t,f=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(h,y)),S=null!=f&&f.type===g&&null==f.key?f.props.children:f,O(t,Array.isArray(S)?S:[S],e,n,r,i,u,c,a,l),s.base=e.__e,e.__h=null,s.__h.length&&c.push(s),m&&(s.__E=s.__=null),s.__e=!1}else null==u&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=N(n.__e,e,n,r,i,u,c,l);(f=o.diffed)&&f(e)}catch(t){e.__v=null,(l||null!=u)&&(e.__e=a,e.__h=!!l,u[u.indexOf(a)]=null),o.__e(t,e,n)}}function A(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 N(t,e,n,o,i,u,c,a){var l,s,p,d=n.props,y=e.props,v=e.type,g=0;if("svg"===v&&(i=!0),null!=u)for(;g<u.length;g++)if((l=u[g])&&"setAttribute"in l==!!v&&(v?l.localName===v:3===l.nodeType)){t=l,u[g]=null;break}if(null==t){if(null===v)return document.createTextNode(y);t=i?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,y.is&&y),u=null,a=!1}if(null===v)d===y||a&&t.data===y||(t.data=y);else{if(u=u&&r.call(t.childNodes),s=(d=n.props||f).dangerouslySetInnerHTML,p=y.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||k(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]||k(t,i,e[i],n[i],r)}(t,y,d,i,a),p)e.__k=[];else if(g=e.props.children,O(t,Array.isArray(g)?g:[g],e,n,o,i&&"foreignObject"!==v,u,c,u?u[0]:n.__k&&m(n,0),a),null!=u)for(g=u.length;g--;)null!=u[g]&&h(u[g]);a||("value"in y&&void 0!==(g=y.value)&&(g!==d.value||g!==t.value||"progress"===v&&!g)&&k(t,"value",g,d.value,!1),"checked"in y&&void 0!==(g=y.checked)&&g!==t.checked&&k(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 T(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]&&T(r[i],e,"function"!=typeof t.type);n||null==t.__e||h(t.__e),t.__e=t.__d=void 0}function I(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,b.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),x(this))},b.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),x(this))},b.prototype.render=g,u=[],c="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,w.__r=0;var C;n(103),n(104),n(131),n(136),n(137),n(138),n(130),n(132),n(133),n(128),n(116);function F(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 G(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?F(Object(n),!0).forEach((function(e){z(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function z(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function L(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,f=G(G({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(l.h)("rect",f)}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 H(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 B(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),l=W(r);if(o===a.minX){u.x=l.minX;var f=(i-n.y)/(n.height/2-c);u.y=f?r.y+(r.height/2-c)*f:r.y}else if(o===a.maxX){u.x=l.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=l.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=l.maxY;var d=(o-n.x)/(n.width/2-c);u.x=d?r.x+(r.width/2-c)*d:r.x}else{var h=H(n),y=H(r),v=W(n),g=v.minX,b=v.minY,m=v.maxX,_=v.maxY,x=-1;if(o-g<c&&i-b<c?x=0:m-o<c&&i-b<c?x=1:m-o<c&&_-i<c?x=2:o-g<c&&b-i<c&&(x=3),x>-1){var w=Math.atan2(i-h[x].y,o-h[x].x);u.x=y[x].x+c*Math.cos(w),u.y=y[x].y+c*Math.sin(w)}}return u}function Y(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),l=u,f=c;return a>=1/0?(e=0,n=f):a<=-1/0?(e=0,n=-f):r.x-o.x>0?(e=l*f/Math.sqrt(f*f+l*l*a*a),n=l*f*a/Math.sqrt(f*f+l*l*a*a)):(e=-l*f/Math.sqrt(f*f+l*l*a*a),n=-l*f*a/Math.sqrt(f*f+l*l*a*a)),{x:e+i.x,y:n+i.y}}function X(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,l=Math.sqrt((c-Math.abs(i))*(c-Math.abs(i))+u*u)/Math.sqrt(c*c+a*a),f=o.rx,s=o.ry,p=Math.sqrt((f*f+s*s)*l*l*(f*f/(f*f+s*s))),d=p*(s/f);return e=u>0?d:-d,{x:(i>=0?f-p:p-f)+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){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 $(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 $(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 $(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 K(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 J(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?K(Object(n),!0).forEach((function(e){ot(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Q(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 Z(t,e){return(Z=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function tt(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=rt(t);if(e){var o=rt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return et(this,n)}}function et(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 nt(t)}function nt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function rt(t){return(rt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ot(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}L.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.HTML_NODE="html-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"}(C||(C={}));var it=l.LogicFlowUtil.StepDrag,ut=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&&Z(t,e)}(i,t);var e,n,r,o=tt(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),ot(nt(e=o.call(this)),"updatePosition",(function(t){var n=t.deltaX,r=t.deltaY,o=e.nodeModel,i=o.x,u=o.y;e.nodeModel.moveText(n/2,r/2),e.nodeModel.updateAttributes({x:i+n/2,y:u+r/2})})),ot(nt(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*c,a.height=i+r*c;break;case 3:a.width=o-n*c,a.height=i+r*c}return a})),ot(nt(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,l=o.height,f=o.radius,s=nt(e).index,p=e.getResize({index:s,deltaX:n,deltaY:r,width:a,height:l,pct:1}),d=e.nodeModel,h=d.minWidth,y=d.minHeight,v=d.maxWidth,g=d.maxHeight;if(p.width<h||p.width>v||p.height<y||p.height>g)e.dragHandler.cancelDrag();else{e.updatePosition({deltaX:n,deltaY:r}),e.nodeModel.setProperties({nodeSize:{width:p.width,height:p.height}}),e.nodeModel.updateAttributes({width:p.width,height:p.height});var b,m=e.getNodeEdges(i),_={x:u,y:c,width:a,height:l,radius:f},x={x:e.nodeModel.x,y:e.nodeModel.y,width:e.nodeModel.width,height:e.nodeModel.height,radius:f},w={point:"",beforeNode:_,afterNode:x};m.sourceEdges.forEach((function(t){w.point=t.startPoint,b=B(w),t.updateStartPoint(b)})),m.targetEdges.forEach((function(t){w.point=t.endPoint,b=B(w),t.updateEndPoint(b)})),e.eventEmit({beforeNode:_,afterNode:x})}})),ot(nt(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,l=o.y,f=nt(e).index,s=u,p=c,d=e.getResize({index:f,deltaX:n,deltaY:r,width:s,height:p,pct:.5}),h=e.nodeModel,y=h.minWidth,v=h.minHeight,g=h.maxWidth,b=h.maxHeight;if(d.width<y/2||d.width>g/2||d.height<v/2||d.height>b/2)e.dragHandler.cancelDrag();else{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 m,_=e.getNodeEdges(i),x={x:a,y:l},w={rx:d.width,ry:d.height,x:e.nodeModel.x,y:e.nodeModel.y},O={point:{},beforeNode:x,afterNode:w};_.sourceEdges.forEach((function(t){O.point=t.startPoint,m=Y(O),t.updateStartPoint(m)})),_.targetEdges.forEach((function(t){O.point=t.endPoint,m=Y(O),t.updateEndPoint(m)})),e.eventEmit({beforeNode:J(J({},x),{},{rx:u,ry:c}),afterNode:w})}})),ot(nt(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,l=o.y,f=nt(e).index,s=u,p=c,d=e.getResize({index:f,deltaX:n,deltaY:r,width:s,height:p,pct:.5}),h=e.nodeModel,y=h.minWidth,v=h.minHeight,g=h.maxWidth,b=h.maxHeight;if(d.width<y/2||d.width>g/2||d.height<v/2||d.height>b/2)e.dragHandler.cancelDrag();else{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 m,_={x:a,y:l,rx:u,ry:c},x={rx:d.width,ry:d.height,x:e.nodeModel.x,y:e.nodeModel.y},w={point:{},beforeNode:_,afterNode:x},O=e.getNodeEdges(i);O.sourceEdges.forEach((function(t){w.point=t.startPoint,m=X(w),t.updateStartPoint(m)})),O.targetEdges.forEach((function(t){w.point=t.endPoint,m=X(w),t.updateEndPoint(m)})),e.eventEmit({beforeNode:_,afterNode:x})}})),ot(nt(e),"eventEmit",(function(t){var n=t.beforeNode,r=t.afterNode,o=e.nodeModel,i=o.id,u=o.modelType,c=o.type,a=J({id:i,modelType:u,type:c},n),l=J({id:i,modelType:u,type:c},r);e.graphModel.eventCenter.emit("node:resize",{oldNodeSize:a,newNodeSize:l})})),ot(nt(e),"onDragging",(function(t){var n=t.deltaX,r=t.deltaY,o=e.graphModel.transformModel,i=e.nodeModel.modelType,u=V(o.fixDeltaXY(n,r),2);n=u[0],r=u[1],i===C.RECT_NODE||i===C.HTML_NODE?e.updateRect({deltaX:n,deltaY:r}):i===C.ELLIPSE_NODE?e.updateEllipse({deltaX:n,deltaY:r}):i===C.DIAMOND_NODE&&e.updateDiamond({deltaX:n,deltaY:r})})),ot(nt(e),"onDragEnd",(function(){var t=e.graphModel.gridSize,n=void 0===t?1:t,r=n*Math.round(e.nodeModel.x/n),o=n*Math.round(e.nodeModel.y/n);e.nodeModel.moveTo(r,o)})),e.index=t.index,e.nodeModel=t.model,e.graphModel=t.graphModel,e.state={},e.dragHandler=new it({onDragging:e.onDragging,onDragEnd:e.onDragEnd,step:1}),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.index,o=t.model.getControlPointStyle();return y("g",{className:"lf-resize-control-".concat(r)},y(L,q({className:"lf-node-control",x:e,y:n},o,{onMouseDown:this.dragHandler.handleMouseDown})))}}])&&Q(e.prototype,n),r&&Q(e,r),i}(b);function ct(t){return(ct="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 at(){return(at=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 lt(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 ft(t,e){return(ft=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function st(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=dt(t);if(e){var o=dt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return pt(this,n)}}function pt(t,e){if(e&&("object"===ct(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 dt(t){return(dt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ht=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&&ft(t,e)}(i,t);var e,n,r,o=st(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.model,n=t.graphModel,r=e.x,o=e.y,i=e.width,u=e.height,c={minX:r-i/2,minY:o-u/2,maxX:r+i/2,maxY:o+u/2},a=c.minX,l=c.minY,f=c.maxX,s=c.maxY;return[{x:a,y:l},{x:f,y:l},{x:f,y:s},{x:a,y:s}].map((function(t,r){return y(ut,at({index:r},t,{model:e,graphModel:n}))}))}},{key:"getGroupSolid",value:function(){var t=this.props.model,e=t.x,n=t.y,r=t.width,o=t.height;return y(L,at({fill:"none"},t.getResizeOutlineStyle(),{x:e,y:n,width:r,height:o}))}},{key:"render",value:function(){return y("g",{className:"lf-resize-control"},this.getGroupSolid(),this.getResizeControl())}}])&<(e.prototype,n),r&<(e,r),i}(b);function yt(t){return(yt="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(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 bt(t,e,n){return e&>(t.prototype,e),n&>(t,n),t}function mt(){return(mt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=_t(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}}).apply(this,arguments)}function _t(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=jt(t)););return t}function xt(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&&wt(t,e)}function wt(t,e){return(wt=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 St(this,n)}}function St(t,e){if(e&&("object"===yt(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 jt(t){return(jt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Et=function(t){xt(n,t);var e=Ot(n);function n(){return vt(this,n),e.apply(this,arguments)}return bt(n,[{key:"initNodeData",value:function(t){mt(jt(n.prototype),"initNodeData",this).call(this,t),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3}},{key:"init",value:function(){mt(jt(n.prototype),"init",this).call(this);var t=this.properties.nodeSize;t&&(this.width=t.width,this.height=t.height)}},{key:"getOutlineStyle",value:function(){var t=mt(jt(n.prototype),"getOutlineStyle",this).call(this);return this.graphModel.editConfigModel.isSilentMode||(t.stroke="none",t.hover&&(t.hover.stroke="none")),t}},{key:"getResizeOutlineStyle",value:function(){return{fill:"none",stroke:"transparent",strokeWidth:1,strokeDasharray:"3,3"}}},{key:"getControlPointStyle",value:function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}}},{key:"resize",value:function(t,e){console.log(t,e)}}]),n}(l.RectNodeModel),kt={type:"rect",view:function(t){xt(n,t);var e=Ot(n);function n(){return vt(this,n),e.apply(this,arguments)}return bt(n,[{key:"getControlGroup",value:function(){var t=this.props,e=t.model,n=t.graphModel;return Object(l.h)(ht,{model:e,graphModel:n})}},{key:"getResizeShape",value:function(){return mt(jt(n.prototype),"getShape",this).call(this)}},{key:"getShape",value:function(){var t=this.props,e=t.model.isSelected,n=t.graphModel.editConfigModel.isSilentMode;return Object(l.h)("g",null,this.getResizeShape(),e&&!n?this.getControlGroup():"")}}]),n}(l.RectNode),model:Et};function Pt(t){return(Pt="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 Mt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Rt(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,n){return e&&Rt(t.prototype,e),n&&Rt(t,n),t}function Nt(){return(Nt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=Dt(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}}).apply(this,arguments)}function Dt(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Gt(t)););return t}function Tt(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 Ct(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=Gt(t);if(e){var o=Gt(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"===Pt(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 Gt(t){return(Gt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var zt=function(t){Tt(n,t);var e=Ct(n);function n(){return Mt(this,n),e.apply(this,arguments)}return At(n,[{key:"initNodeData",value:function(t){Nt(Gt(n.prototype),"initNodeData",this).call(this,t),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3}},{key:"init",value:function(){Nt(Gt(n.prototype),"init",this).call(this);var t=this.properties.nodeSize;t&&(this.rx=t.rx,this.ry=t.ry)}},{key:"getOutlineStyle",value:function(){var t=Nt(Gt(n.prototype),"getOutlineStyle",this).call(this);return this.graphModel.editConfigModel.isSilentMode||(t.stroke="none",t.hover&&(t.hover.stroke="none")),t}},{key:"getResizeOutlineStyle",value:function(){return{stroke:"#000000",strokeWidth:1,strokeDasharray:"3,3"}}},{key:"getControlPointStyle",value:function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}}}]),n}(l.EllipseNodeModel),Lt={type:"ellipse",view:function(t){Tt(n,t);var e=Ct(n);function n(){return Mt(this,n),e.apply(this,arguments)}return At(n,[{key:"getControlGroup",value:function(){var t=this.props,e=t.model,n=t.graphModel;return Object(l.h)(ht,{model:e,graphModel:n})}},{key:"getResizeShape",value:function(){return Nt(Gt(n.prototype),"getShape",this).call(this)}},{key:"getShape",value:function(){var t=this.props,e=t.model,n=t.graphModel.editConfigModel.isSilentMode;return Object(l.h)("g",null,this.getResizeShape(),e.isSelected&&!n?this.getControlGroup():"")}}]),n}(l.EllipseNode),model:zt};n(176),n(160);function Wt(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,f=t.stroke,s=void 0===f?"#000":f,p=t.points,d=t.className,h={fill:a,fillOpacity:n,strokeWidth:o,stroke:s,strokeOpacity:u,points:"",className:void 0===d?"lf-basic-shape":d};return h.points=p.map((function(t){return t.join(",")})).join(" "),Object(l.h)("polygon",h)}function Ht(t){return(Ht="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 Bt(){return(Bt=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 Yt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Xt(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 Ut(t,e,n){return e&&Xt(t.prototype,e),n&&Xt(t,n),t}function qt(){return(qt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=Vt(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}}).apply(this,arguments)}function Vt(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Zt(t)););return t}function $t(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&&Kt(t,e)}function Kt(t,e){return(Kt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Jt(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=Zt(t);if(e){var o=Zt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Qt(this,n)}}function Qt(t,e){if(e&&("object"===Ht(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 Zt(t){return(Zt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var te=function(t){$t(n,t);var e=Jt(n);function n(){return Yt(this,n),e.apply(this,arguments)}return Ut(n,[{key:"initNodeData",value:function(t){qt(Zt(n.prototype),"initNodeData",this).call(this,t),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3,this.gridSize=1}},{key:"init",value:function(){qt(Zt(n.prototype),"init",this).call(this);var t=this.properties.nodeSize;t&&(this.rx=t.rx,this.ry=t.ry)}},{key:"getOutlineStyle",value:function(){var t=qt(Zt(n.prototype),"getOutlineStyle",this).call(this);return this.graphModel.editConfigModel.isSilentMode||(t.stroke="none",t.hover&&(t.hover.stroke="none")),t}},{key:"getResizeOutlineStyle",value:function(){return{stroke:"#000000",strokeWidth:1,strokeDasharray:"3,3"}}},{key:"getControlPointStyle",value:function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}}}]),n}(l.DiamondNodeModel),ee={type:"diamond",view:function(t){$t(n,t);var e=Jt(n);function n(){return Yt(this,n),e.apply(this,arguments)}return Ut(n,[{key:"getControlGroup",value:function(){var t=this.props,e=t.model,n=t.graphModel;return Object(l.h)(ht,{model:e,graphModel:n})}},{key:"getResizeShape",value:function(){var t=this.props.model,e=t.points,n=t.getNodeStyle();return Object(l.h)("g",null,Object(l.h)(Wt,Bt({},n,{points:e})))}},{key:"getShape",value:function(){var t=this.props,e=t.model.isSelected,n=t.graphModel.editConfigModel.isSilentMode;return Object(l.h)("g",null,this.getResizeShape(),e&&!n?this.getControlGroup():"")}}]),n}(l.DiamondNode),model:te};function ne(t){return(ne="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 re(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function oe(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 ie(t,e,n){return e&&oe(t.prototype,e),n&&oe(t,n),t}function ue(){return(ue="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=ce(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}}).apply(this,arguments)}function ce(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=pe(t)););return t}function ae(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&&le(t,e)}function le(t,e){return(le=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function fe(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=pe(t);if(e){var o=pe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return se(this,n)}}function se(t,e){if(e&&("object"===ne(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 pe(t){return(pe=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var de=function(t){ae(n,t);var e=fe(n);function n(){return re(this,n),e.apply(this,arguments)}return ie(n,[{key:"initNodeData",value:function(t){ue(pe(n.prototype),"initNodeData",this).call(this,t),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3}},{key:"init",value:function(){ue(pe(n.prototype),"init",this).call(this);var t=this.properties.nodeSize;t&&(this.width=t.width,this.height=t.height)}},{key:"getOutlineStyle",value:function(){var t=ue(pe(n.prototype),"getOutlineStyle",this).call(this);return this.graphModel.editConfigModel.isSilentMode||(t.stroke="none",t.hover&&(t.hover.stroke="none")),t}},{key:"getResizeOutlineStyle",value:function(){return{stroke:"#000000",strokeWidth:1,strokeDasharray:"3,3"}}},{key:"getControlPointStyle",value:function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}}}]),n}(l.HtmlNodeModel),he={type:"html",view:function(t){ae(n,t);var e=fe(n);function n(){return re(this,n),e.apply(this,arguments)}return ie(n,[{key:"getControlGroup",value:function(){var t=this.props,e=t.model,n=t.graphModel;return Object(l.h)(ht,{model:e,graphModel:n})}},{key:"getResizeShape",value:function(){return ue(pe(n.prototype),"getShape",this).call(this)}},{key:"getShape",value:function(){var t=this.props,e=t.model.isSelected,n=t.graphModel.editConfigModel.isSilentMode;return Object(l.h)("g",null,this.getResizeShape(),e&&!n?this.getControlGroup():"")}}]),n}(l.HtmlNode),model:de},ye={pluginName:"nodeResize",step:0,install:function(t){t.register({type:kt.type,view:kt.view,model:kt.model}),t.register({type:Lt.type,view:Lt.view,model:Lt.model}),t.register({type:ee.type,view:ee.view,model:ee.model}),t.register({type:he.type,view:he.view,model:he.model})}};e.default=ye},function(t,e,n){var r=n(5),o=n(186),i=n(101);r({target:"Array",proto:!0},{fill:o}),i("fill")},,,,,,,,,,function(t,e,n){"use strict";var r=n(14),o=n(51),i=n(17);t.exports=function(t){for(var e=r(this),n=i(e),u=arguments.length,c=o(u>1?arguments[1]:void 0,n),a=u>2?arguments[2]:void 0,l=void 0===a?n:o(a,n);l>c;)e[c++]=t;return e}},function(t,e,n){"use strict";var r=n(0),o=n(31),i=n(17),u=n(50),c=r.TypeError,a=function(t,e,n,r,l,f,s,p){for(var d,h,y=l,v=0,g=!!s&&u(s,p);v<r;){if(v in n){if(d=g?g(n[v],v,e):n[v],f>0&&o(d))h=i(d),y=a(t,e,d,h,y,f-1)-1;else{if(y>=9007199254740991)throw c("Exceed the acceptable array length");t[y]=d}y++}v++}return y};t.exports=a},,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var r=n(5),o=n(0),i=n(89),u=n(2),c=n(87),a=n(70),l=/MSIE .\./.test(c),f=o.Function,s=function(t){return function(e,n){var r=arguments.length>2,o=r?a(arguments,2):void 0;return t(r?function(){i(u(e)?e:f(e),this,o)}:e,n)}};r({global:!0,bind:!0,forced:l},{setTimeout:s(o.setTimeout),setInterval:s(o.setInterval)})},function(t,e,n){"use strict";var r=n(5),o=n(187),i=n(35),u=n(14),c=n(17),a=n(71);r({target:"Array",proto:!0},{flatMap:function(t){var e,n=u(this),r=c(n);return i(t),(e=a(n,0)).length=o(e,n,n,r,0,1,t,arguments.length>1?arguments[1]:void 0),e}})},function(t,e,n){n(101)("flatMap")},,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.r(e),n.d(e,"Group",(function(){return P})),n.d(e,"GroupNode",(function(){return O}));n(58),n(152),n(64),n(75),n(80),n(103),n(104),n(139),n(69),n(130),n(77),n(81),n(82),n(128),n(132),n(133),n(116),n(174),n(213),n(176),n(214),n(215),n(118),n(119),n(120),n(121),n(154),n(117),n(131),n(136),n(137),n(138);var r=n(23),o=n(175);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(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 c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){x(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return l(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 l(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(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 f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(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 p(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}function d(){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=h(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}}).apply(this,arguments)}function h(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=_(t)););return t}function y(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&&v(t,e)}function v(t,e){return(v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(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=_(t);if(e){var o=_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(t,e){if(e&&("object"===i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return m(t)}function m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _(t){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function x(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var w=function(t){y(n,t);var e=g(n);function n(){var t;f(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return x(m(t=e.call.apply(e,[this].concat(o))),"isGroup",!0),x(m(t),"unfoldedWidth",500),x(m(t),"unfoldedHight",300),t}return p(n,[{key:"initNodeData",value:function(t){var e=this;d(_(n.prototype),"initNodeData",this).call(this,t);var r=[];Array.isArray(t.children)&&(r=t.children),this.children=new Set(r),this.width=500,this.height=300,this.foldedWidth=80,this.foldedHeight=60,this.zIndex=-1,this.radius=0,this.text.editable=!1,this.text.draggable=!1,this.isRestrict=!1,this.resizable=!1,this.autoToFront=!1,this.foldable=!1,this.nestable=!1,void 0===this.properties.isFolded&&(this.properties.isFolded=!1),this.isFolded=this.properties.isFolded,setTimeout((function(){e.isFolded&&e.foldGroup(e.isFolded)}))}},{key:"getResizeOutlineStyle",value:function(){var t=d(_(n.prototype),"getResizeOutlineStyle",this).call(this);return t.stroke="none",t}},{key:"foldGroup",value:function(t){this.setProperty("isFolded",t),this.isFolded=t,this.foldRect(t);var e=this.foldChildren(t);this.foldEdge(t,e)}},{key:"getAnchorStyle",value:function(t){var e=d(_(n.prototype),"getAnchorStyle",this).call(this,t);return e.stroke="transparent",e.fill="transparent",e.hover.fill="transparent",e.hover.stroke="transparent",e}},{key:"foldRect",value:function(t){t?(this.unfoldedWidth=this.width,this.unfoldedHight=this.height,this.updateAttributes({x:this.x-this.width/2+this.foldedWidth/2,y:this.y-this.height/2+this.foldedHeight/2,width:this.foldedWidth,height:this.foldedHeight})):this.updateAttributes({width:this.unfoldedWidth,height:this.unfoldedHight,x:this.x+this.unfoldedWidth/2-this.foldedWidth/2,y:this.y+this.unfoldedHight/2-this.foldedHeight/2})}},{key:"foldChildren",value:function(t){var e=this,n=this.incoming.edges.concat(this.outgoing.edges);return this.children.forEach((function(r){var o=e.graphModel.getElement(r);if(o.isGroup){var i=o.foldChildren(t||o.isFolded);n=n.concat(i),o.foldEdge(t,i)}n=n.concat(o.incoming.edges.concat(o.outgoing.edges)),o.updateAttributes({visible:!t})})),n}},{key:"foldEdge",value:function(t,e){var n=this;e.forEach((function(e,r){var o=e.id,i=e.sourceNodeId,u=e.targetNodeId,c=e.startPoint,a=e.endPoint,l=e.type,f=e.properties,s=e.text,p={id:"".concat(o,"__").concat(r),sourceNodeId:i,targetNodeId:u,startPoint:c,endPoint:a,type:l,properties:f,text:null==s?void 0:s.value};e.virtual&&n.graphModel.deleteEdgeById(e.id);var d=n.graphModel.group.getNodeGroup(u);d||(d=n.graphModel.getNodeModelById(u));var h=n.graphModel.group.getNodeGroup(i);h||(h=n.graphModel.getNodeModelById(i)),t&&!1!==e.visible&&(n.children.has(i)||n.id===i?(p.startPoint=void 0,p.sourceNodeId=n.id):(p.endPoint=void 0,p.targetNodeId=n.id),d.id===n.id&&h.id===n.id||n.createVirtualEdge(p),e.updateAttributes({visible:!1})),t||!1!==e.visible||(d&&d.isGroup&&d.isFolded?(p.targetNodeId=d.id,p.endPoint=void 0,n.createVirtualEdge(p)):h&&h.isGroup&&h.isFolded?(p.sourceNodeId=h.id,p.startPoint=void 0,n.createVirtualEdge(p)):e.updateAttributes({visible:!0}))}))}},{key:"createVirtualEdge",value:function(t){t.pointsList=void 0;var e=this.graphModel.addEdge(t);e.virtual=!0,e.text.editable=!1,e.isFoldedEdge=!0}},{key:"isInRange",value:function(t){var e=t.x1,n=t.y1,r=t.x2,o=t.y2;return e>=this.x-this.width/2&&r<=this.x+this.width/2&&n>=this.y-this.height/2&&o<=this.y+this.height/2}},{key:"isAllowMoveTo",value:function(t){var e=t.x1,n=t.y1,r=t.x2,o=t.y2;return{x:e>=this.x-this.width/2&&r<=this.x+this.width/2,y:n>=this.y-this.height/2&&o<=this.y+this.height/2}}},{key:"setAllowAppendChild",value:function(t){this.setProperty("groupAddable",t)}},{key:"addChild",value:function(t){this.children.add(t)}},{key:"removeChild",value:function(t){this.children.delete(t)}},{key:"getChildren",value:function(){var t=this;return a(this.children).flatMap((function(e){var n=t.graphModel.getElement(e);return n.isGroup?[e].concat(a(n.getChildren())):e}))}},{key:"getAddableOutlineStyle",value:function(){return{stroke:"#FEB663",strokeWidth:2,strokeDasharray:"4 4",fill:"transparent"}}},{key:"getData",value:function(){var t=d(_(n.prototype),"getData",this).call(this);t.children=a(this.children);var e=t.properties;return delete e.groupAddable,delete e.isFolded,t}},{key:"getHistoryData",value:function(){var t=d(_(n.prototype),"getData",this).call(this);t.children=a(this.children);var e=t.properties;return delete e.groupAddable,e.isFolded&&(t.x=t.x+this.unfoldedWidth/2-this.foldedWidth/2,t.y=t.y+this.unfoldedHight/2-this.foldedHeight/2),t}},{key:"isAllowAppendIn",value:function(t){return!0}}]),n}(o.RectResize.model),O={type:"group",view:function(t){y(n,t);var e=g(n);function n(){return f(this,n),e.apply(this,arguments)}return p(n,[{key:"getControlGroup",value:function(){var t=this.props.model,e=t.resizable,r=t.properties;return e&&!r.isFolded?d(_(n.prototype),"getControlGroup",this).call(this):null}},{key:"getAddAbleShape",value:function(){var t=this.props.model,e=t.width,n=t.height,o=t.x,i=t.y,u=t.radius;if(!t.properties.groupAddable)return null;var a=this.props.model.getNodeStyle().strokeWidth,l=this.props.model.getAddableOutlineStyle(),f=e+a+8,s=n+a+8;return Object(r.h)("rect",c(c({},l),{},{width:f,height:s,x:o-f/2,y:i-s/2,rx:u,ry:u}))}},{key:"getFoldIcon",value:function(){var t=this.props.model,e=t.x-t.width/2+5,n=t.y-t.height/2+5;if(!t.foldable)return null;var o=Object(r.h)("path",{fill:"none",stroke:"#818281",strokeWidth:2,"pointer-events":"none",d:t.properties.isFolded?"M ".concat(e+3,",").concat(n+6," ").concat(e+11,",").concat(n+6," M").concat(e+7,",").concat(n+2," ").concat(e+7,",").concat(n+10):"M ".concat(e+3,",").concat(n+6," ").concat(e+11,",").concat(n+6," ")});return Object(r.h)("g",{},[Object(r.h)("rect",{height:12,width:14,rx:2,ry:2,strokeWidth:1,fill:"#F4F5F6",stroke:"#CECECE",cursor:"pointer",x:t.x-t.width/2+5,y:t.y-t.height/2+5,onClick:function(){t.foldGroup(!t.properties.isFolded)}}),o])}},{key:"getResizeShape",value:function(){return Object(r.h)("g",{},[this.getAddAbleShape(),d(_(n.prototype),"getResizeShape",this).call(this),this.getFoldIcon()])}}]),n}(o.RectResize.view),model:w};function S(t){return function(t){if(Array.isArray(t))return j(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return j(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 j(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(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 E(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,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var P=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),k(this,"nodeGroupMap",new Map),k(this,"graphRendered",(function(t){t&&t.nodes&&t.nodes.forEach((function(t){t.children&&t.children.forEach((function(e){n.nodeGroupMap.set(e,t.id)}))}))})),k(this,"appendNodeToGroup",(function(t){var e=t.data,r=n.nodeGroupMap.get(e.id);if(r){var o=n.lf.getNodeModelById(r);o.removeChild(e.id),n.nodeGroupMap.delete(e.id),o.setAllowAppendChild(!1)}var i=n.getGroup(n.lf.getNodeModelById(e.id));i&&(i.isAllowAppendIn(e)?e.id!==i.id?(i.addChild(e.id),n.nodeGroupMap.set(e.id,i.id),i.setAllowAppendChild(!1)):e.children&&e.children.length>0&&e.children.forEach((function(t){n.nodeGroupMap.set(t,e.id)})):n.lf.emit("group:not-allowed",{group:i.getData(),node:e}))})),k(this,"deleteGroupChild",(function(t){var e=t.data,r=n.nodeGroupMap.get(e.id);r&&(n.lf.getNodeModelById(r).removeChild(e.id),n.nodeGroupMap.delete(e.id))})),k(this,"setActiveGroup",(function(t){var e=t.data,r=n.lf.getNodeModelById(e.id),o=n.getGroup(r);(n.activeGroup&&n.activeGroup.setAllowAppendChild(!1),!o||r.isGroup&&o.id===e.id)||o.isAllowAppendIn(e)&&(n.activeGroup=o,n.activeGroup.setAllowAppendChild(!0))})),r.register(O),this.lf=r,r.graphModel.addNodeMoveRules((function(t,e,o){if(t.isGroup){var i=n.getNodeAllChild(t);return r.graphModel.moveNodes(i,e,o,!0),!0}var u=r.getNodeModelById(n.nodeGroupMap.get(t.id)),c=!0;if(u&&u.isRestrict){var a=t.getBounds(),l=a.x1,f=a.y1,s=a.x2,p=a.y2;c=u.isAllowMoveTo({x1:l+e,y1:f+o,x2:s+e,y2:p+o})}return t.isGroup&&(!0===c?r.graphModel.moveNodes(S(t.getChildren()),e,o,!0):"boolean"!=typeof c&&r.graphModel.moveNodes(S(t.getChildren()),c.x?e:0,c.y?o:0,!0)),c})),r.graphModel.group=this,r.on("node:add",this.appendNodeToGroup),r.on("node:delete",this.deleteGroupChild),r.on("node:drop",this.appendNodeToGroup),r.on("node:dnd-drag",this.setActiveGroup),r.on("node:drag",this.setActiveGroup),r.on("graph:rendered",this.graphRendered)}var e,n,r;return e=t,(n=[{key:"getNodeAllChild",value:function(t){var e=this,n=[];return t.children&&t.children.forEach((function(t){n.push(t);var r=e.lf.getNodeModelById(t);r.isGroup&&(n=n.concat(e.getNodeAllChild(r)))})),n}},{key:"getGroup",value:function(t){if(!1===t.nestable)return null;for(var e=t.getBounds(),n=this.lf.graphModel.nodes,r=null,o=0;o<n.length;o++){var i=n[o];i!==t&&i.isGroup&&i.isInRange(e)&&(r?r.zIndex>i.zIndex?r=i:r.zIndex===i.zIndex&&(i.isInRange(r.getBounds())||(r=i)):r=i)}return r}},{key:"getNodeGroup",value:function(t){var e=this.nodeGroupMap.get(t);if(e)return this.lf.getNodeModelById(e)}}])&&E(e.prototype,n),r&&E(e,r),t}();k(P,"pluginName","group")}])}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logicflow/extension",
|
|
3
|
-
"version": "1.2.0-next.
|
|
3
|
+
"version": "1.2.0-next.1",
|
|
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": "^1.2.0-next.
|
|
35
|
+
"@logicflow/core": "^1.2.0-next.1",
|
|
36
36
|
"ids": "^1.0.0",
|
|
37
37
|
"preact": "^10.4.8"
|
|
38
38
|
},
|