@logicflow/extension 1.2.17 → 1.2.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/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 r="object"==typeof exports?e(require("window")):e(t.window);for(var n in r)("object"==typeof exports?exports:t)[n]=r[n]}}(window,(function(t){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=250)}([function(t,e,r){(function(e){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,r(98))},function(t,e){var r=Function.prototype,n=r.bind,o=r.call,i=n&&n.bind(o);t.exports=n?function(t){return t&&i(o,t)}:function(t){return t&&function(){return o.apply(t,arguments)}}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){return"function"==typeof t}},function(t,e,r){var n=r(0),o=r(32),i=r(6),u=r(37),a=r(49),c=r(62),l=o("wks"),s=n.Symbol,f=s&&s.for,d=c?s:s&&s.withoutSetter||u;t.exports=function(t){if(!i(l,t)||!a&&"string"!=typeof l[t]){var e="Symbol."+t;a&&i(s,t)?l[t]=s[t]:l[t]=c&&f?f(e):d(e)}return l[t]}},function(t,e,r){var n=r(0),o=r(25).f,i=r(16),u=r(15),a=r(41),c=r(70),l=r(75);t.exports=function(t,e){var r,s,f,d,p,h=t.target,y=t.global,v=t.stat;if(r=y?n:v?n[h]||a(h,{}):(n[h]||{}).prototype)for(s in e){if(d=e[s],f=t.noTargetGet?(p=o(r,s))&&p.value:r[s],!l(y?s:h+(v?".":"#")+s,t.forced)&&void 0!==f){if(typeof d==typeof f)continue;c(d,f)}(t.sham||f&&f.sham)&&i(d,"sham",!0),u(r,s,d,t)}}},function(t,e,r){var n=r(1),o=r(14),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},function(t,e,r){var n=r(2);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,r){var n=r(3);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},function(t,e,r){var n=r(0),o=r(7),i=r(63),u=r(10),a=r(28),c=n.TypeError,l=Object.defineProperty;e.f=o?l:function(t,e,r){if(u(t),e=a(e),u(r),i)try{return l(t,e,r)}catch(t){}if("get"in r||"set"in r)throw c("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},function(t,e,r){var n=r(0),o=r(8),i=n.String,u=n.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not an object")}},function(t,e){var r=Function.prototype.call;t.exports=r.bind?r.bind(r):function(){return r.apply(r,arguments)}},function(t,e,r){var n=r(57),o=r(27);t.exports=function(t){return n(o(t))}},function(t,e,r){var n=r(0),o=r(3),i=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(n[t]):n[t]&&n[t][e]}},function(t,e,r){var n=r(0),o=r(27),i=n.Object;t.exports=function(t){return i(o(t))}},function(t,e,r){var n=r(0),o=r(3),i=r(6),u=r(16),a=r(41),c=r(38),l=r(22),s=r(54).CONFIGURABLE,f=l.get,d=l.enforce,p=String(String).split("String");(t.exports=function(t,e,r,c){var l,f=!!c&&!!c.unsafe,h=!!c&&!!c.enumerable,y=!!c&&!!c.noTargetGet,v=c&&void 0!==c.name?c.name:e;o(r)&&("Symbol("===String(v).slice(0,7)&&(v="["+String(v).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(r,"name")||s&&r.name!==v)&&u(r,"name",v),(l=d(r)).source||(l.source=p.join("string"==typeof v?v:""))),t!==n?(f?!y&&t[e]&&(h=!0):delete t[e],h?t[e]=r:u(t,e,r)):h?t[e]=r:a(e,r)})(Function.prototype,"toString",(function(){return o(this)&&f(this).source||c(this)}))},function(t,e,r){var n=r(7),o=r(9),i=r(23);t.exports=n?function(t,e,r){return o.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e,r){var n=r(82);t.exports=function(t){return n(t.length)}},function(t,e,r){var n=r(1),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},function(t,e,r){var n,o=r(10),i=r(92),u=r(48),a=r(24),c=r(107),l=r(42),s=r(35),f=s("IE_PROTO"),d=function(){},p=function(t){return"<script>"+t+"<\/script>"},h=function(t){t.write(p("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e;y="undefined"!=typeof document?document.domain&&n?h(n):((e=l("iframe")).style.display="none",c.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(p("document.F=Object")),t.close(),t.F):h(n);for(var r=u.length;r--;)delete y.prototype[u[r]];return y()};a[f]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(d.prototype=o(t),r=new d,d.prototype=null,r[f]=t):r=y(),void 0===e?r:i(r,e)}},function(t,e,r){var n=r(0),o=r(30),i=n.String;t.exports=function(t){if("Symbol"===o(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},function(e,r){e.exports=t},function(t,e,r){var n,o,i,u=r(101),a=r(0),c=r(1),l=r(8),s=r(16),f=r(6),d=r(40),p=r(35),h=r(24),y=a.TypeError,v=a.WeakMap;if(u||d.state){var g=d.state||(d.state=new v),b=c(g.get),m=c(g.has),_=c(g.set);n=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=p("state");h[x]=!0,n=function(t,e){if(f(t,x))throw new y("Object already initialized");return e.facade=t,s(t,x,e),e},o=function(t){return f(t,x)?t[x]:{}},i=function(t){return f(t,x)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!l(e)||(r=o(e)).type!==t)throw y("Incompatible receiver, "+t+" required");return r}}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports={}},function(t,e,r){var n=r(7),o=r(11),i=r(61),u=r(23),a=r(12),c=r(28),l=r(6),s=r(63),f=Object.getOwnPropertyDescriptor;e.f=n?f:function(t,e){if(t=a(t),e=c(e),s)try{return f(t,e)}catch(t){}if(l(t,e))return u(!o(i.f,t,e),t[e])}},function(t,e,r){var n=r(1);t.exports=n({}.isPrototypeOf)},function(t,e,r){var n=r(0).TypeError;t.exports=function(t){if(null==t)throw n("Can't call method on "+t);return t}},function(t,e,r){var n=r(99),o=r(46);t.exports=function(t){var e=n(t,"string");return o(e)?e:e+""}},function(t,e,r){var n=r(18);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,r){var n=r(0),o=r(43),i=r(3),u=r(18),a=r(4)("toStringTag"),c=n.Object,l="Arguments"==u(function(){return arguments}());t.exports=o?u:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=c(t),a))?r:l?u(e):"Object"==(n=u(e))&&i(e.callee)?"Arguments":n}},function(t,e){t.exports={}},function(t,e,r){var n=r(34),o=r(40);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:n?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(t,e,r){var n=r(0),o=r(3),i=r(52),u=n.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not a function")}},function(t,e){t.exports=!1},function(t,e,r){var n=r(32),o=r(37),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){var e=+t;return e!=e||0===e?0:(e>0?n:r)(e)}},function(t,e,r){var n=r(1),o=0,i=Math.random(),u=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+u(++o+i,36)}},function(t,e,r){var n=r(1),o=r(3),i=r(40),u=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return u(t)}),t.exports=i.inspectSource},function(t,e,r){var n=r(65),o=r(48).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},function(t,e,r){var n=r(0),o=r(41),i=n["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,e,r){var n=r(0),o=Object.defineProperty;t.exports=function(t,e){try{o(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},function(t,e,r){var n=r(0),o=r(8),i=n.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},function(t,e,r){var n={};n[r(4)("toStringTag")]="z",t.exports="[object z]"===String(n)},function(t,e,r){"use strict";var n=r(28),o=r(9),i=r(23);t.exports=function(t,e,r){var u=n(e);u in t?o.f(t,u,i(0,r)):t[u]=r}},function(t,e,r){var n=r(33);t.exports=function(t,e){var r=t[e];return null==r?void 0:n(r)}},function(t,e,r){var n=r(0),o=r(13),i=r(3),u=r(26),a=r(62),c=n.Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=o("Symbol");return i(e)&&u(e.prototype,c(t))}},function(t,e,r){var n=r(1),o=r(33),i=n(n.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){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,r){var n=r(50),o=r(2);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},function(t,e,r){var n,o,i=r(0),u=r(73),a=i.process,c=i.Deno,l=a&&a.versions||c&&c.version,s=l&&l.v8;s&&(o=(n=s.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&u&&(!(n=u.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=u.match(/Chrome\/(\d+)/))&&(o=+n[1]),t.exports=o},function(t,e,r){var n=r(9).f,o=r(6),i=r(4)("toStringTag");t.exports=function(t,e,r){t&&!o(t=r?t:t.prototype,i)&&n(t,i,{configurable:!0,value:e})}},function(t,e,r){var n=r(0).String;t.exports=function(t){try{return n(t)}catch(t){return"Object"}}},function(t,e,r){var n=r(47),o=r(1),i=r(57),u=r(14),a=r(17),c=r(71),l=o([].push),s=function(t){var e=1==t,r=2==t,o=3==t,s=4==t,f=6==t,d=7==t,p=5==t||f;return function(h,y,v,g){for(var b,m,_=u(h),x=i(_),O=n(y,v),w=a(x),S=0,P=g||c,j=e?P(h,w):r||d?P(h,0):void 0;w>S;S++)if((p||S in x)&&(m=O(b=x[S],S,_),t))if(e)j[S]=m;else if(m)switch(t){case 3:return!0;case 5:return b;case 6:return S;case 2:l(j,b)}else switch(t){case 4:return!1;case 7:l(j,b)}return f?-1:o||s?s:j}};t.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}},function(t,e,r){var n=r(7),o=r(6),i=Function.prototype,u=n&&Object.getOwnPropertyDescriptor,a=o(i,"name"),c=a&&"something"===function(){}.name,l=a&&(!n||n&&u(i,"name").configurable);t.exports={EXISTS:a,PROPER:c,CONFIGURABLE:l}},function(t,e,r){var n=r(1),o=r(2),i=r(3),u=r(30),a=r(13),c=r(38),l=function(){},s=[],f=a("Reflect","construct"),d=/^\s*(?:class|function)\b/,p=n(d.exec),h=!d.exec(l),y=function(t){if(!i(t))return!1;try{return f(l,s,t),!0}catch(t){return!1}};t.exports=!f||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||!!p(d,c(t))}:y},function(t,e,r){var n=r(36),o=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):i(r,e)}},function(t,e,r){var n=r(0),o=r(1),i=r(2),u=r(18),a=n.Object,c=o("".split);t.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==u(t)?c(t,""):a(t)}:a},function(t,e,r){var n=r(65),o=r(48);t.exports=Object.keys||function(t){return n(t,o)}},function(t,e,r){"use strict";var n=r(12),o=r(104),i=r(31),u=r(22),a=r(69),c=u.set,l=u.getterFor("Array Iterator");t.exports=a(Array,"Array",(function(t,e){c(this,{type:"Array Iterator",target:n(t),index:0,kind:e})}),(function(){var t=l(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,e,r){var n=r(43),o=r(15),i=r(103);n||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,e,r){"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!n.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:n},function(t,e,r){var n=r(49);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,r){var n=r(7),o=r(2),i=r(42);t.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e,r){var n=r(5),o=r(7);n({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:r(9).f})},function(t,e,r){var n=r(1),o=r(6),i=r(12),u=r(87).indexOf,a=r(24),c=n([].push);t.exports=function(t,e){var r,n=i(t),l=0,s=[];for(r in n)!o(a,r)&&o(n,r)&&c(s,r);for(;e.length>l;)o(n,r=e[l++])&&(~u(s,r)||c(s,r));return s}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,r){var n=r(2),o=r(4),i=r(50),u=o("species");t.exports=function(t){return i>=51||!n((function(){var e=[];return(e.constructor={})[u]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,r){var n=r(0),o=r(6),i=r(3),u=r(14),a=r(35),c=r(108),l=a("IE_PROTO"),s=n.Object,f=s.prototype;t.exports=c?s.getPrototypeOf:function(t){var e=u(t);if(o(e,l))return e[l];var r=e.constructor;return i(r)&&e instanceof r?r.prototype:e instanceof s?f:null}},function(t,e,r){"use strict";var n=r(5),o=r(11),i=r(34),u=r(54),a=r(3),c=r(116),l=r(68),s=r(86),f=r(51),d=r(16),p=r(15),h=r(4),y=r(31),v=r(88),g=u.PROPER,b=u.CONFIGURABLE,m=v.IteratorPrototype,_=v.BUGGY_SAFARI_ITERATORS,x=h("iterator"),O=function(){return this};t.exports=function(t,e,r,u,h,v,w){c(r,e,u);var S,P,j,E=function(t){if(t===h&&I)return I;if(!_&&t in R)return R[t];switch(t){case"keys":case"values":case"entries":return function(){return new r(this,t)}}return function(){return new r(this)}},k=e+" Iterator",M=!1,R=t.prototype,A=R[x]||R["@@iterator"]||h&&R[h],I=!_&&A||E(h),T="Array"==e&&R.entries||A;if(T&&(S=l(T.call(new t)))!==Object.prototype&&S.next&&(i||l(S)===m||(s?s(S,m):a(S[x])||p(S,x,O)),f(S,k,!0,!0),i&&(y[k]=O)),g&&"values"==h&&A&&"values"!==A.name&&(!i&&b?d(R,"name","values"):(M=!0,I=function(){return o(A,this)})),h)if(P={values:E("values"),keys:v?I:E("keys"),entries:E("entries")},w)for(j in P)(_||M||!(j in R))&&p(R,j,P[j]);else n({target:e,proto:!0,forced:_||M},P);return i&&!w||R[x]===I||p(R,x,I,{name:h}),y[e]=I,P}},function(t,e,r){var n=r(6),o=r(85),i=r(25),u=r(9);t.exports=function(t,e){for(var r=o(e),a=u.f,c=i.f,l=0;l<r.length;l++){var s=r[l];n(t,s)||a(t,s,c(e,s))}}},function(t,e,r){var n=r(102);t.exports=function(t,e){return new(n(t))(0===e?0:e)}},function(t,e,r){var n=r(1);t.exports=n([].slice)},function(t,e,r){var n=r(13);t.exports=n("navigator","userAgent")||""},function(t,e,r){"use strict";var n=r(53).forEach,o=r(79)("forEach");t.exports=o?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e,r){var n=r(2),o=r(3),i=/#|\.prototype\./,u=function(t,e){var r=c[a(t)];return r==s||r!=l&&(o(e)?n(e):!!e)},a=u.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=u.data={},l=u.NATIVE="N",s=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,r){var n=r(42)("span").classList,o=n&&n.constructor&&n.constructor.prototype;t.exports=o===Object.prototype?void 0:o},function(t,e,r){"use strict";var n=r(105).charAt,o=r(20),i=r(22),u=r(69),a=i.set,c=i.getterFor("String Iterator");u(String,"String",(function(t){a(this,{type:"String Iterator",string:o(t),index:0})}),(function(){var t,e=c(this),r=e.string,o=e.index;return o>=r.length?{value:void 0,done:!0}:(t=n(r,o),e.index+=t.length,{value:t,done:!1})}))},function(t,e,r){"use strict";var n=r(2);t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){throw 1},1)}))}},function(t,e,r){var n=r(30),o=r(45),i=r(31),u=r(4)("iterator");t.exports=function(t){if(null!=t)return o(t,u)||o(t,"@@iterator")||i[n(t)]}},function(t,e,r){var n=r(0),o=r(76),i=r(77),u=r(59),a=r(16),c=r(4),l=c("iterator"),s=c("toStringTag"),f=u.values,d=function(t,e){if(t){if(t[l]!==f)try{a(t,l,f)}catch(e){t[l]=f}if(t[s]||a(t,s,e),o[e])for(var r in u)if(t[r]!==u[r])try{a(t,r,u[r])}catch(e){t[r]=u[r]}}};for(var p in o)d(n[p]&&n[p].prototype,p);d(i,"DOMTokenList")},function(t,e,r){var n=r(36),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},function(t,e){var r=Function.prototype,n=r.apply,o=r.bind,i=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(o?i.bind(n):function(){return i.apply(n,arguments)})},function(t,e,r){"use strict";var n=r(5),o=r(0),i=r(13),u=r(83),a=r(11),c=r(1),l=r(34),s=r(7),f=r(49),d=r(2),p=r(6),h=r(29),y=r(3),v=r(8),g=r(26),b=r(46),m=r(10),_=r(14),x=r(12),O=r(28),w=r(20),S=r(23),P=r(19),j=r(58),E=r(39),k=r(106),M=r(66),R=r(25),A=r(9),I=r(61),T=r(72),C=r(15),N=r(32),D=r(35),z=r(24),F=r(37),G=r(4),L=r(93),B=r(94),W=r(51),H=r(22),Y=r(53).forEach,X=D("hidden"),U=G("toPrimitive"),V=H.set,$=H.getterFor("Symbol"),Z=Object.prototype,K=o.Symbol,q=K&&K.prototype,J=o.TypeError,Q=o.QObject,tt=i("JSON","stringify"),et=R.f,rt=A.f,nt=k.f,ot=I.f,it=c([].push),ut=N("symbols"),at=N("op-symbols"),ct=N("string-to-symbol-registry"),lt=N("symbol-to-string-registry"),st=N("wks"),ft=!Q||!Q.prototype||!Q.prototype.findChild,dt=s&&d((function(){return 7!=P(rt({},"a",{get:function(){return rt(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=et(Z,e);n&&delete Z[e],rt(t,e,r),n&&t!==Z&&rt(Z,e,n)}:rt,pt=function(t,e){var r=ut[t]=P(q);return V(r,{type:"Symbol",tag:t,description:e}),s||(r.description=e),r},ht=function(t,e,r){t===Z&&ht(at,e,r),m(t);var n=O(e);return m(r),p(ut,n)?(r.enumerable?(p(t,X)&&t[X][n]&&(t[X][n]=!1),r=P(r,{enumerable:S(0,!1)})):(p(t,X)||rt(t,X,S(1,{})),t[X][n]=!0),dt(t,n,r)):rt(t,n,r)},yt=function(t,e){m(t);var r=x(e),n=j(r).concat(mt(r));return Y(n,(function(e){s&&!a(vt,r,e)||ht(t,e,r[e])})),t},vt=function(t){var e=O(t),r=a(ot,this,e);return!(this===Z&&p(ut,e)&&!p(at,e))&&(!(r||!p(this,e)||!p(ut,e)||p(this,X)&&this[X][e])||r)},gt=function(t,e){var r=x(t),n=O(e);if(r!==Z||!p(ut,n)||p(at,n)){var o=et(r,n);return!o||!p(ut,n)||p(r,X)&&r[X][n]||(o.enumerable=!0),o}},bt=function(t){var e=nt(x(t)),r=[];return Y(e,(function(t){p(ut,t)||p(z,t)||it(r,t)})),r},mt=function(t){var e=t===Z,r=nt(e?at:x(t)),n=[];return Y(r,(function(t){!p(ut,t)||e&&!p(Z,t)||it(n,ut[t])})),n};(f||(C(q=(K=function(){if(g(q,this))throw J("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?w(arguments[0]):void 0,e=F(t),r=function(t){this===Z&&a(r,at,t),p(this,X)&&p(this[X],e)&&(this[X][e]=!1),dt(this,e,S(1,t))};return s&&ft&&dt(Z,e,{configurable:!0,set:r}),pt(e,t)}).prototype,"toString",(function(){return $(this).tag})),C(K,"withoutSetter",(function(t){return pt(F(t),t)})),I.f=vt,A.f=ht,R.f=gt,E.f=k.f=bt,M.f=mt,L.f=function(t){return pt(G(t),t)},s&&(rt(q,"description",{configurable:!0,get:function(){return $(this).description}}),l||C(Z,"propertyIsEnumerable",vt,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!f,sham:!f},{Symbol:K}),Y(j(st),(function(t){B(t)})),n({target:"Symbol",stat:!0,forced:!f},{for:function(t){var e=w(t);if(p(ct,e))return ct[e];var r=K(e);return ct[e]=r,lt[r]=e,r},keyFor:function(t){if(!b(t))throw J(t+" is not a symbol");if(p(lt,t))return lt[t]},useSetter:function(){ft=!0},useSimple:function(){ft=!1}}),n({target:"Object",stat:!0,forced:!f,sham:!s},{create:function(t,e){return void 0===e?P(t):yt(P(t),e)},defineProperty:ht,defineProperties:yt,getOwnPropertyDescriptor:gt}),n({target:"Object",stat:!0,forced:!f},{getOwnPropertyNames:bt,getOwnPropertySymbols:mt}),n({target:"Object",stat:!0,forced:d((function(){M.f(1)}))},{getOwnPropertySymbols:function(t){return M.f(_(t))}}),tt)&&n({target:"JSON",stat:!0,forced:!f||d((function(){var t=K();return"[null]"!=tt([t])||"{}"!=tt({a:t})||"{}"!=tt(Object(t))}))},{stringify:function(t,e,r){var n=T(arguments),o=e;if((v(e)||void 0!==t)&&!b(t))return h(e)||(e=function(t,e){if(y(o)&&(e=a(o,this,t,e)),!b(e))return e}),n[1]=e,u(tt,null,n)}});if(!q[U]){var _t=q.valueOf;C(q,U,(function(t){return a(_t,this)}))}W(K,"Symbol"),z[X]=!0},function(t,e,r){var n=r(13),o=r(1),i=r(39),u=r(66),a=r(10),c=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(a(t)),r=u.f;return r?c(e,r(t)):e}},function(t,e,r){var n=r(1),o=r(10),i=r(117);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return o(r),i(n),e?t(r,n):r.__proto__=n,r}}():void 0)},function(t,e,r){var n=r(12),o=r(56),i=r(17),u=function(t){return function(e,r,u){var a,c=n(e),l=i(c),s=o(u,l);if(t&&r!=r){for(;l>s;)if((a=c[s++])!=a)return!0}else for(;l>s;s++)if((t||s in c)&&c[s]===r)return t||s||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},function(t,e,r){"use strict";var n,o,i,u=r(2),a=r(3),c=r(19),l=r(68),s=r(15),f=r(4),d=r(34),p=f("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(n=o):h=!0),null==n||u((function(){var t={};return n[p].call(t)!==t}))?n={}:d&&(n=c(n)),a(n[p])||s(n,p,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:h}},function(t,e,r){"use strict";var n=r(5),o=r(7),i=r(0),u=r(1),a=r(6),c=r(3),l=r(26),s=r(20),f=r(9).f,d=r(70),p=i.Symbol,h=p&&p.prototype;if(o&&c(p)&&(!("description"in h)||void 0!==p().description)){var y={},v=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:s(arguments[0]),e=l(h,this)?new p(t):void 0===t?p():p(t);return""===t&&(y[e]=!0),e};d(v,p),v.prototype=h,h.constructor=v;var g="Symbol(test)"==String(p("test")),b=u(h.toString),m=u(h.valueOf),_=/^Symbol\((.*)\)[^)]+$/,x=u("".replace),O=u("".slice);f(h,"description",{configurable:!0,get:function(){var t=m(this),e=b(t);if(a(y,t))return"";var r=g?O(e,7,-1):x(e,_,"$1");return""===r?void 0:r}}),n({global:!0,forced:!0},{Symbol:v})}},function(t,e,r){r(94)("iterator")},function(t,e,r){"use strict";var n,o,i=r(11),u=r(1),a=r(20),c=r(114),l=r(118),s=r(32),f=r(19),d=r(22).get,p=r(121),h=r(122),y=s("native-string-replace",String.prototype.replace),v=RegExp.prototype.exec,g=v,b=u("".charAt),m=u("".indexOf),_=u("".replace),x=u("".slice),O=(o=/b*/g,i(v,n=/a/,"a"),i(v,o,"a"),0!==n.lastIndex||0!==o.lastIndex),w=l.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];(O||S||w||p||h)&&(g=function(t){var e,r,n,o,u,l,s,p=this,h=d(p),P=a(t),j=h.raw;if(j)return j.lastIndex=p.lastIndex,e=i(g,j,P),p.lastIndex=j.lastIndex,e;var E=h.groups,k=w&&p.sticky,M=i(c,p),R=p.source,A=0,I=P;if(k&&(M=_(M,"y",""),-1===m(M,"g")&&(M+="g"),I=x(P,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==b(P,p.lastIndex-1))&&(R="(?: "+R+")",I=" "+I,A++),r=new RegExp("^(?:"+R+")",M)),S&&(r=new RegExp("^"+R+"$(?!\\s)",M)),O&&(n=p.lastIndex),o=i(v,k?r:p,I),k?o?(o.input=x(o.input,A),o[0]=x(o[0],A),o.index=p.lastIndex,p.lastIndex+=o[0].length):p.lastIndex=0:O&&o&&(p.lastIndex=p.global?o.index+o[0].length:n),S&&o&&o.length>1&&i(y,o[0],r,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(o[u]=void 0)})),o&&E)for(o.groups=l=f(null),u=0;u<E.length;u++)l[(s=E[u])[0]]=o[s[1]];return o}),t.exports=g},function(t,e,r){var n=r(7),o=r(9),i=r(10),u=r(12),a=r(58);t.exports=n?Object.defineProperties:function(t,e){i(t);for(var r,n=u(e),c=a(e),l=c.length,s=0;l>s;)o.f(t,r=c[s++],n[r]);return t}},function(t,e,r){var n=r(4);e.f=n},function(t,e,r){var n=r(123),o=r(6),i=r(93),u=r(9).f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});o(e,t)||u(e,t,{value:i.f(t)})}},function(t,e,r){"use strict";var n=r(5),o=r(74);n({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,e,r){var n=r(0),o=r(76),i=r(77),u=r(74),a=r(16),c=function(t){if(t&&t.forEach!==u)try{a(t,"forEach",u)}catch(e){t.forEach=u}};for(var l in o)o[l]&&c(n[l]&&n[l].prototype);c(i)},function(t,e,r){"use strict";var n=r(5),o=r(91);n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){var n=r(0),o=r(11),i=r(8),u=r(46),a=r(45),c=r(100),l=r(4),s=n.TypeError,f=l("toPrimitive");t.exports=function(t,e){if(!i(t)||u(t))return t;var r,n=a(t,f);if(n){if(void 0===e&&(e="default"),r=o(n,t,e),!i(r)||u(r))return r;throw s("Can't convert object to primitive value")}return void 0===e&&(e="number"),c(t,e)}},function(t,e,r){var n=r(0),o=r(11),i=r(3),u=r(8),a=n.TypeError;t.exports=function(t,e){var r,n;if("string"===e&&i(r=t.toString)&&!u(n=o(r,t)))return n;if(i(r=t.valueOf)&&!u(n=o(r,t)))return n;if("string"!==e&&i(r=t.toString)&&!u(n=o(r,t)))return n;throw a("Can't convert object to primitive value")}},function(t,e,r){var n=r(0),o=r(3),i=r(38),u=n.WeakMap;t.exports=o(u)&&/native code/.test(i(u))},function(t,e,r){var n=r(0),o=r(29),i=r(55),u=r(8),a=r(4)("species"),c=n.Array;t.exports=function(t){var e;return o(t)&&(e=t.constructor,(i(e)&&(e===c||o(e.prototype))||u(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?c:e}},function(t,e,r){"use strict";var n=r(43),o=r(30);t.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,e,r){var n=r(4),o=r(19),i=r(9),u=n("unscopables"),a=Array.prototype;null==a[u]&&i.f(a,u,{configurable:!0,value:o(null)}),t.exports=function(t){a[u][t]=!0}},function(t,e,r){var n=r(1),o=r(36),i=r(20),u=r(27),a=n("".charAt),c=n("".charCodeAt),l=n("".slice),s=function(t){return function(e,r){var n,s,f=i(u(e)),d=o(r),p=f.length;return d<0||d>=p?t?"":void 0:(n=c(f,d))<55296||n>56319||d+1===p||(s=c(f,d+1))<56320||s>57343?t?a(f,d):n:t?l(f,d,d+2):s-56320+(n-55296<<10)+65536}};t.exports={codeAt:s(!1),charAt:s(!0)}},function(t,e,r){var n=r(18),o=r(12),i=r(39).f,u=r(113),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"Window"==n(t)?function(t){try{return i(t)}catch(t){return u(a)}}(t):i(o(t))}},function(t,e,r){var n=r(13);t.exports=n("document","documentElement")},function(t,e,r){var n=r(2);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,r){var n=r(4),o=r(31),i=n("iterator"),u=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||u[i]===t)}},function(t,e,r){var n=r(0),o=r(11),i=r(33),u=r(10),a=r(52),c=r(80),l=n.TypeError;t.exports=function(t,e){var r=arguments.length<2?c(t):e;if(i(r))return u(o(r,t));throw l(a(t)+" is not iterable")}},function(t,e,r){var n=r(11),o=r(10),i=r(45);t.exports=function(t,e,r){var u,a;o(t);try{if(!(u=i(t,"return"))){if("throw"===e)throw r;return r}u=n(u,t)}catch(t){a=!0,u=t}if("throw"===e)throw r;if(a)throw u;return o(u),r}},function(t,e,r){var n=r(4)("iterator"),o=!1;try{var i=0,u={next:function(){return{done:!!i++}},return:function(){o=!0}};u[n]=function(){return this},Array.from(u,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},t(i)}catch(t){}return r}},function(t,e,r){var n=r(0),o=r(56),i=r(17),u=r(44),a=n.Array,c=Math.max;t.exports=function(t,e,r){for(var n=i(t),l=o(e,n),s=o(void 0===r?n:r,n),f=a(c(s-l,0)),d=0;l<s;l++,d++)u(f,d,t[l]);return f.length=d,f}},function(t,e,r){"use strict";var n=r(10);t.exports=function(){var t=n(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,r){var n=r(5),o=r(2),i=r(12),u=r(25).f,a=r(7),c=o((function(){u(1)}));n({target:"Object",stat:!0,forced:!a||c,sham:!a},{getOwnPropertyDescriptor:function(t,e){return u(i(t),e)}})},function(t,e,r){"use strict";var n=r(88).IteratorPrototype,o=r(19),i=r(23),u=r(51),a=r(31),c=function(){return this};t.exports=function(t,e,r,l){var s=e+" Iterator";return t.prototype=o(n,{next:i(+!l,r)}),u(t,s,!1,!0),a[s]=c,t}},function(t,e,r){var n=r(0),o=r(3),i=n.String,u=n.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,r){var n=r(2),o=r(0).RegExp,i=n((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),u=i||n((function(){return!o("a","y").sticky})),a=i||n((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:a,MISSED_STICKY:u,UNSUPPORTED_Y:i}},function(t,e,r){var n=r(0),o=r(47),i=r(11),u=r(10),a=r(52),c=r(109),l=r(17),s=r(26),f=r(110),d=r(80),p=r(111),h=n.TypeError,y=function(t,e){this.stopped=t,this.result=e},v=y.prototype;t.exports=function(t,e,r){var n,g,b,m,_,x,O,w=r&&r.that,S=!(!r||!r.AS_ENTRIES),P=!(!r||!r.IS_ITERATOR),j=!(!r||!r.INTERRUPTED),E=o(e,w),k=function(t){return n&&p(n,"normal",t),new y(!0,t)},M=function(t){return S?(u(t),j?E(t[0],t[1],k):E(t[0],t[1])):j?E(t,k):E(t)};if(P)n=t;else{if(!(g=d(t)))throw h(a(t)+" is not iterable");if(c(g)){for(b=0,m=l(t);m>b;b++)if((_=M(t[b]))&&s(v,_))return _;return new y(!1)}n=f(t,g)}for(x=n.next;!(O=i(x,n)).done;){try{_=M(O.value)}catch(t){p(n,"throw",t)}if("object"==typeof _&&_&&s(v,_))return _}return new y(!1)}},function(t,e,r){var n=r(0),o=r(26),i=n.TypeError;t.exports=function(t,e){if(o(e,t))return t;throw i("Incorrect invocation")}},function(t,e,r){var n=r(2),o=r(0).RegExp;t.exports=n((function(){var t=o(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},function(t,e,r){var n=r(2),o=r(0).RegExp;t.exports=n((function(){var t=o("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},function(t,e,r){var n=r(0);t.exports=n},function(t,e,r){var n=r(5),o=r(14),i=r(58);n({target:"Object",stat:!0,forced:r(2)((function(){i(1)}))},{keys:function(t){return i(o(t))}})},function(t,e,r){r(5)({target:"Object",stat:!0},{setPrototypeOf:r(86)})},function(t,e,r){var n=r(5),o=r(2),i=r(14),u=r(68),a=r(108);n({target:"Object",stat:!0,forced:o((function(){u(1)})),sham:!a},{getPrototypeOf:function(t){return u(i(t))}})},function(t,e,r){var n=r(5),o=r(13),i=r(83),u=r(155),a=r(150),c=r(10),l=r(8),s=r(19),f=r(2),d=o("Reflect","construct"),p=Object.prototype,h=[].push,y=f((function(){function t(){}return!(d((function(){}),[],t)instanceof t)})),v=!f((function(){d((function(){}))})),g=y||v;n({target:"Reflect",stat:!0,forced:g,sham:g},{construct:function(t,e){a(t),c(e);var r=arguments.length<3?t:a(arguments[2]);if(v&&!y)return d(t,e,r);if(t==r){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 n=[null];return i(h,n,e),new(i(u,t,n))}var o=r.prototype,f=s(l(o)?o:p),g=i(t,f,e);return l(g)?g:f}})},function(t,e,r){r(5)({target:"Object",stat:!0,sham:!r(7)},{create:r(19)})},function(t,e,r){r(5)({target:"Array",stat:!0},{isArray:r(29)})},function(t,e,r){var n=r(5),o=r(1),i=r(24),u=r(8),a=r(6),c=r(9).f,l=r(39),s=r(106),f=r(147),d=r(37),p=r(149),h=!1,y=d("meta"),v=0,g=function(t){c(t,y,{value:{objectID:"O"+v++,weakData:{}}})},b=t.exports={enable:function(){b.enable=function(){},h=!0;var t=l.f,e=o([].splice),r={};r[y]=1,t(r).length&&(l.f=function(r){for(var n=t(r),o=0,i=n.length;o<i;o++)if(n[o]===y){e(n,o,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:s.f}))},fastKey:function(t,e){if(!u(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,y)){if(!f(t))return"F";if(!e)return"E";g(t)}return t[y].objectID},getWeakData:function(t,e){if(!a(t,y)){if(!f(t))return!0;if(!e)return!1;g(t)}return t[y].weakData},onFreeze:function(t){return p&&h&&f(t)&&!a(t,y)&&g(t),t}};i[y]=!0},function(t,e,r){"use strict";var n=r(5),o=r(0),i=r(2),u=r(29),a=r(8),c=r(14),l=r(17),s=r(44),f=r(71),d=r(67),p=r(4),h=r(50),y=p("isConcatSpreadable"),v=o.TypeError,g=h>=51||!i((function(){var t=[];return t[y]=!1,t.concat()[0]!==t})),b=d("concat"),m=function(t){if(!a(t))return!1;var e=t[y];return void 0!==e?!!e:u(t)};n({target:"Array",proto:!0,forced:!g||!b},{concat:function(t){var e,r,n,o,i,u=c(this),a=f(u,0),d=0;for(e=-1,n=arguments.length;e<n;e++)if(m(i=-1===e?u:arguments[e])){if(d+(o=l(i))>9007199254740991)throw v("Maximum allowed index exceeded");for(r=0;r<o;r++,d++)r in i&&s(a,d,i[r])}else{if(d>=9007199254740991)throw v("Maximum allowed index exceeded");s(a,d++,i)}return a.length=d,a}})},function(t,e,r){var n=r(5),o=r(139);n({target:"Array",stat:!0,forced:!r(112)((function(t){Array.from(t)}))},{from:o})},,function(t,e,r){"use strict";var n=r(5),o=r(53).filter;n({target:"Array",proto:!0,forced:!r(67)("filter")},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){var n=r(5),o=r(7),i=r(85),u=r(12),a=r(25),c=r(44);n({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){for(var e,r,n=u(t),o=a.f,l=i(n),s={},f=0;l.length>f;)void 0!==(r=o(n,e=l[f++]))&&c(s,e,r);return s}})},function(t,e,r){var n=r(5),o=r(7);n({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperties:r(92)})},function(t,e,r){"use strict";var n=r(5),o=r(0),i=r(29),u=r(55),a=r(8),c=r(56),l=r(17),s=r(12),f=r(44),d=r(4),p=r(67),h=r(72),y=p("slice"),v=d("species"),g=o.Array,b=Math.max;n({target:"Array",proto:!0,forced:!y},{slice:function(t,e){var r,n,o,d=s(this),p=l(d),y=c(t,p),m=c(void 0===e?p:e,p);if(i(d)&&(r=d.constructor,(u(r)&&(r===g||i(r.prototype))||a(r)&&null===(r=r[v]))&&(r=void 0),r===g||void 0===r))return h(d,y,m);for(n=new(void 0===r?g:r)(b(m-y,0)),o=0;y<m;y++,o++)y in d&&f(n,o,d[y]);return n.length=o,n}})},function(t,e,r){var n=r(7),o=r(54).EXISTS,i=r(1),u=r(9).f,a=Function.prototype,c=i(a.toString),l=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,s=i(l.exec);n&&!o&&u(a,"name",{configurable:!0,get:function(){try{return s(l,c(this))[1]}catch(t){return""}}})},function(t,e,r){"use strict";var n=r(0),o=r(47),i=r(11),u=r(14),a=r(140),c=r(109),l=r(55),s=r(17),f=r(44),d=r(110),p=r(80),h=n.Array;t.exports=function(t){var e=u(t),r=l(this),n=arguments.length,y=n>1?arguments[1]:void 0,v=void 0!==y;v&&(y=o(y,n>2?arguments[2]:void 0));var g,b,m,_,x,O,w=p(e),S=0;if(!w||this==h&&c(w))for(g=s(e),b=r?new this(g):h(g);g>S;S++)O=v?y(e[S],S):e[S],f(b,S,O);else for(x=(_=d(e,w)).next,b=r?new this:[];!(m=i(x,_)).done;S++)O=v?a(_,y,[m.value,S],!0):m.value,f(b,S,O);return b.length=S,b}},function(t,e,r){var n=r(10),o=r(111);t.exports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(e){o(t,"throw",e)}}},function(t,e,r){var n=r(15);t.exports=function(t,e,r){for(var o in e)n(t,o,e[o],r);return t}},function(t,e,r){"use strict";var n=r(13),o=r(9),i=r(4),u=r(7),a=i("species");t.exports=function(t){var e=n(t),r=o.f;u&&e&&!e[a]&&r(e,a,{configurable:!0,get:function(){return this}})}},function(t,e,r){"use strict";var n=r(5),o=r(0),i=r(1),u=r(75),a=r(15),c=r(130),l=r(119),s=r(120),f=r(3),d=r(8),p=r(2),h=r(112),y=r(51),v=r(145);t.exports=function(t,e,r){var g=-1!==t.indexOf("Map"),b=-1!==t.indexOf("Weak"),m=g?"set":"add",_=o[t],x=_&&_.prototype,O=_,w={},S=function(t){var e=i(x[t]);a(x,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(b&&!d(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return b&&!d(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(b&&!d(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this})};if(u(t,!f(_)||!(b||x.forEach&&!p((function(){(new _).entries().next()})))))O=r.getConstructor(e,t,g,m),c.enable();else if(u(t,!0)){var P=new O,j=P[m](b?{}:-0,1)!=P,E=p((function(){P.has(1)})),k=h((function(t){new _(t)})),M=!b&&p((function(){for(var t=new _,e=5;e--;)t[m](e,e);return!t.has(-0)}));k||((O=e((function(t,e){s(t,x);var r=v(new _,t,O);return null!=e&&l(e,r[m],{that:r,AS_ENTRIES:g}),r}))).prototype=x,x.constructor=O),(E||M)&&(S("delete"),S("has"),g&&S("get")),(M||j)&&S(m),b&&x.clear&&delete x.clear}return w[t]=O,n({global:!0,forced:O!=_},w),y(O,t),b||r.setStrong(O,t,g),O}},function(t,e,r){"use strict";var n=r(9).f,o=r(19),i=r(141),u=r(47),a=r(120),c=r(119),l=r(69),s=r(142),f=r(7),d=r(130).fastKey,p=r(22),h=p.set,y=p.getterFor;t.exports={getConstructor:function(t,e,r,l){var s=t((function(t,n){a(t,p),h(t,{type:e,index:o(null),first:void 0,last:void 0,size:0}),f||(t.size=0),null!=n&&c(n,t[l],{that:t,AS_ENTRIES:r})})),p=s.prototype,v=y(e),g=function(t,e,r){var n,o,i=v(t),u=b(t,e);return u?u.value=r:(i.last=u={index:o=d(e,!0),key:e,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=u),n&&(n.next=u),f?i.size++:t.size++,"F"!==o&&(i.index[o]=u)),t},b=function(t,e){var r,n=v(t),o=d(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==e)return r};return i(p,{clear:function(){for(var t=v(this),e=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete e[r.index],r=r.next;t.first=t.last=void 0,f?t.size=0:this.size=0},delete:function(t){var e=v(this),r=b(this,t);if(r){var n=r.next,o=r.previous;delete e.index[r.index],r.removed=!0,o&&(o.next=n),n&&(n.previous=o),e.first==r&&(e.first=n),e.last==r&&(e.last=o),f?e.size--:this.size--}return!!r},forEach:function(t){for(var e,r=v(this),n=u(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!b(this,t)}}),i(p,r?{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)}}),f&&n(p,"size",{get:function(){return v(this).size}}),s},setStrong:function(t,e,r){var n=e+" Iterator",o=y(e),i=y(n);l(t,e,(function(t,e){h(this,{type:n,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?"keys"==e?{value:r.key,done:!1}:"values"==e?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),r?"entries":"values",!r,!0),s(e)}}},function(t,e,r){var n=r(3),o=r(8),i=r(86);t.exports=function(t,e,r){var u,a;return i&&n(u=e.constructor)&&u!==r&&o(a=u.prototype)&&a!==r.prototype&&i(t,a),t}},,function(t,e,r){var n=r(2),o=r(8),i=r(18),u=r(148),a=Object.isExtensible,c=n((function(){a(1)}));t.exports=c||u?function(t){return!!o(t)&&((!u||"ArrayBuffer"!=i(t))&&(!a||a(t)))}:a},function(t,e,r){var n=r(2);t.exports=n((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},function(t,e,r){var n=r(2);t.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(t,e,r){var n=r(0),o=r(55),i=r(52),u=n.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not a constructor")}},,,,,function(t,e,r){"use strict";var n=r(0),o=r(1),i=r(33),u=r(8),a=r(6),c=r(72),l=n.Function,s=o([].concat),f=o([].join),d={},p=function(t,e,r){if(!a(d,e)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";d[e]=l("C,a","return new C("+f(n,",")+")")}return d[e](t,r)};t.exports=l.bind||function(t){var e=i(this),r=e.prototype,n=c(arguments,1),o=function(){var r=s(n,c(arguments));return this instanceof o?p(e,r.length,r):e.apply(t,r)};return u(r)&&(o.prototype=r),o}},,function(t,e,r){"use strict";var n=r(5),o=r(53).map;n({target:"Array",proto:!0,forced:!r(67)("map")},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},,function(t,e,r){"use strict";r(143)("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),r(144))},,function(t,e,r){var n=r(5),o=r(11),i=r(8),u=r(10),a=r(182),c=r(25),l=r(68);n({target:"Reflect",stat:!0},{get:function t(e,r){var n,s,f=arguments.length<3?e:arguments[2];return u(e)===f?e[r]:(n=c.f(e,r))?a(n)?n.value:void 0===n.get?void 0:o(n.get,f):i(s=l(e))?t(s,r,f):void 0}})},,,function(t,e,r){"use strict";var n=r(5),o=r(1),i=r(87).indexOf,u=r(79),a=o([].indexOf),c=!!a&&1/a([1],1,-0)<0,l=u("indexOf");n({target:"Array",proto:!0,forced:c||!l},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return c?a(this,t,e)||0:i(this,t,e)}})},function(t,e,r){"use strict";r(143)("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),r(144))},,,function(t,e,r){var n=r(5),o=r(176);n({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(t,e,r){"use strict";var n=r(5),o=r(1),i=r(57),u=r(12),a=r(79),c=o([].join),l=i!=Object,s=a("join",",");n({target:"Array",proto:!0,forced:l||!s},{join:function(t){return c(u(this),void 0===t?",":t)}})},,,,,,,function(t,e,r){"use strict";var n=r(7),o=r(1),i=r(11),u=r(2),a=r(58),c=r(66),l=r(61),s=r(14),f=r(57),d=Object.assign,p=Object.defineProperty,h=o([].concat);t.exports=!d||u((function(){if(n&&1!==d({b:1},d(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol();return t[r]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=d({},t)[r]||"abcdefghijklmnopqrst"!=a(d({},e)).join("")}))?function(t,e){for(var r=s(t),o=arguments.length,u=1,d=c.f,p=l.f;o>u;)for(var y,v=f(arguments[u++]),g=d?h(a(v),d(v)):a(v),b=g.length,m=0;b>m;)y=g[m++],n&&!i(p,v,y)||(r[y]=v[y]);return r}:d},function(t,e,r){"use strict";var n=r(5),o=r(53).find,i=r(104),u=!0;"find"in[]&&Array(1).find((function(){u=!1})),n({target:"Array",proto:!0,forced:u},{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("find")},,,,,function(t,e,r){var n=r(6);t.exports=function(t){return void 0!==t&&(n(t,"value")||n(t,"writable"))}},,function(t,e,r){"use strict";r.r(e),r.d(e,"NodeResize",(function(){return se})),r.d(e,"RectResize",(function(){return Ot})),r.d(e,"EllipseResize",(function(){return Nt})),r.d(e,"DiamondResize",(function(){return Kt})),r.d(e,"HtmlResize",(function(){return le}));r(125),r(126),r(60),r(127),r(128),r(161),r(115),r(64),r(84),r(89),r(90),r(59),r(78),r(81);var n,o,i,u,a,c,l=r(21),s=(r(157),r(168),{}),f=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(t,e){for(var r in e)t[r]=e[r];return t}function h(t){var e=t.parentNode;e&&e.removeChild(t)}function y(t,e,r){var o,i,u,a={};for(u in e)"key"==u?o=e[u]:"ref"==u?i=e[u]:a[u]=e[u];if(arguments.length>2&&(a.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(u in t.defaultProps)void 0===a[u]&&(a[u]=t.defaultProps[u]);return v(t,a,o,i,null)}function v(t,e,r,n,u){var a={type:t,props:e,key:r,ref:n,__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(a),a}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 r;e<t.__k.length;e++)if(null!=(r=t.__k[e])&&null!=r.__e)return r.__e;return"function"==typeof t.type?m(t):null}function _(t){var e,r;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(r=t.__k[e])&&null!=r.__e){t.__e=t.__c.base=r.__e;break}return _(t)}}function x(t){(!t.__d&&(t.__d=!0)&&u.push(t)&&!O.__r++||c!==o.debounceRendering)&&((c=o.debounceRendering)||a)(O)}function O(){for(var t;O.__r=u.length;)t=u.sort((function(t,e){return t.__v.__b-e.__v.__b})),u=[],t.some((function(t){var e,r,n,o,i,u;t.__d&&(i=(o=(e=t).__v).__e,(u=e.__P)&&(r=[],(n=p({},o)).__v=o.__v+1,R(u,o,n,e.__n,void 0!==u.ownerSVGElement,null!=o.__h?[i]:null,r,null==i?m(o):i,o.__h),A(r,o),o.__e!=i&&_(o)))}))}function w(t,e,r,n,o,i,u,a,c,l){var d,p,h,y,b,_,x,O=n&&n.__k||f,w=O.length;for(r.__k=[],d=0;d<e.length;d++)if(null!=(y=r.__k[d]=null==(y=e[d])||"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.__=r,y.__b=r.__b+1,null===(h=O[d])||h&&y.key==h.key&&y.type===h.type)O[d]=void 0;else for(p=0;p<w;p++){if((h=O[p])&&y.key==h.key&&y.type===h.type){O[p]=void 0;break}h=null}R(t,y,h=h||s,o,i,u,a,c,l),b=y.__e,(p=y.ref)&&h.ref!=p&&(x||(x=[]),h.ref&&x.push(h.ref,null,y),x.push(p,y.__c||b,y)),null!=b?(null==_&&(_=b),"function"==typeof y.type&&y.__k===h.__k?y.__d=c=S(y,c,t):c=P(t,y,h,O,b,c),"function"==typeof r.type&&(r.__d=c)):c&&h.__e==c&&c.parentNode!=t&&(c=m(h))}for(r.__e=_,d=w;d--;)null!=O[d]&&("function"==typeof r.type&&null!=O[d].__e&&O[d].__e==r.__d&&(r.__d=m(n,d+1)),C(O[d],O[d]));if(x)for(d=0;d<x.length;d++)T(x[d],x[++d],x[++d])}function S(t,e,r){for(var n,o=t.__k,i=0;o&&i<o.length;i++)(n=o[i])&&(n.__=t,e="function"==typeof n.type?S(n,e,r):P(r,n,n,o,n.__e,e));return e}function P(t,e,r,n,o,i){var u,a,c;if(void 0!==e.__d)u=e.__d,e.__d=void 0;else if(null==r||o!=i||null==o.parentNode)t:if(null==i||i.parentNode!==t)t.appendChild(o),u=null;else{for(a=i,c=0;(a=a.nextSibling)&&c<n.length;c+=2)if(a==o)break t;t.insertBefore(o,i),u=i}return void 0!==u?u:o.nextSibling}function j(t,e,r){"-"===e[0]?t.setProperty(e,r):t[e]=null==r?"":"number"!=typeof r||d.test(e)?r:r+"px"}function E(t,e,r,n,o){var i;t:if("style"===e)if("string"==typeof r)t.style.cssText=r;else{if("string"==typeof n&&(t.style.cssText=n=""),n)for(e in n)r&&e in r||j(t.style,e,"");if(r)for(e in r)n&&r[e]===n[e]||j(t.style,e,r[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]=r,r?n||t.addEventListener(e,i?M:k,i):t.removeEventListener(e,i?M:k,i);else if("dangerouslySetInnerHTML"!==e){if(o)e=e.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&e in t)try{t[e]=null==r?"":r;break t}catch(t){}"function"==typeof r||(null!=r&&(!1!==r||"a"===e[0]&&"r"===e[1])?t.setAttribute(e,r):t.removeAttribute(e))}}function k(t){this.l[t.type+!1](o.event?o.event(t):t)}function M(t){this.l[t.type+!0](o.event?o.event(t):t)}function R(t,e,r,n,i,u,a,c,l){var s,f,d,h,y,v,m,_,x,O,S,P=e.type;if(void 0!==e.constructor)return null;null!=r.__h&&(l=r.__h,c=e.__e=r.__e,e.__h=null,u=[c]),(s=o.__b)&&s(e);try{t:if("function"==typeof P){if(_=e.props,x=(s=P.contextType)&&n[s.__c],O=s?x?x.props.value:s.__:n,r.__c?m=(f=e.__c=r.__c).__=f.__E:("prototype"in P&&P.prototype.render?e.__c=f=new P(_,O):(e.__c=f=new b(_,O),f.constructor=P,f.render=N),x&&x.sub(f),f.props=_,f.state||(f.state={}),f.context=O,f.__n=n,d=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=P.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=p({},f.__s)),p(f.__s,P.getDerivedStateFromProps(_,f.__s))),h=f.props,y=f.state,d)null==P.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==P.getDerivedStateFromProps&&_!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(_,O),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(_,f.__s,O)||e.__v===r.__v){f.props=_,f.state=f.__s,e.__v!==r.__v&&(f.__d=!1),f.__v=e,e.__e=r.__e,e.__k=r.__k,e.__k.forEach((function(t){t&&(t.__=e)})),f.__h.length&&a.push(f);break t}null!=f.componentWillUpdate&&f.componentWillUpdate(_,f.__s,O),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(h,y,v)}))}f.context=O,f.props=_,f.state=f.__s,(s=o.__r)&&s(e),f.__d=!1,f.__v=e,f.__P=t,s=f.render(f.props,f.state,f.context),f.state=f.__s,null!=f.getChildContext&&(n=p(p({},n),f.getChildContext())),d||null==f.getSnapshotBeforeUpdate||(v=f.getSnapshotBeforeUpdate(h,y)),S=null!=s&&s.type===g&&null==s.key?s.props.children:s,w(t,Array.isArray(S)?S:[S],e,r,n,i,u,a,c,l),f.base=e.__e,e.__h=null,f.__h.length&&a.push(f),m&&(f.__E=f.__=null),f.__e=!1}else null==u&&e.__v===r.__v?(e.__k=r.__k,e.__e=r.__e):e.__e=I(r.__e,e,r,n,i,u,a,l);(s=o.diffed)&&s(e)}catch(t){e.__v=null,(l||null!=u)&&(e.__e=c,e.__h=!!l,u[u.indexOf(c)]=null),o.__e(t,e,r)}}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 I(t,e,r,o,i,u,a,c){var l,f,d,p=r.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,c=!1}if(null===v)p===y||c&&t.data===y||(t.data=y);else{if(u=u&&n.call(t.childNodes),f=(p=r.props||s).dangerouslySetInnerHTML,d=y.dangerouslySetInnerHTML,!c){if(null!=u)for(p={},g=0;g<t.attributes.length;g++)p[t.attributes[g].name]=t.attributes[g].value;(d||f)&&(d&&(f&&d.__html==f.__html||d.__html===t.innerHTML)||(t.innerHTML=d&&d.__html||""))}if(function(t,e,r,n,o){var i;for(i in r)"children"===i||"key"===i||i in e||E(t,i,null,r[i],n);for(i in e)o&&"function"!=typeof e[i]||"children"===i||"key"===i||"value"===i||"checked"===i||r[i]===e[i]||E(t,i,e[i],r[i],n)}(t,y,p,i,c),d)e.__k=[];else if(g=e.props.children,w(t,Array.isArray(g)?g:[g],e,r,o,i&&"foreignObject"!==v,u,a,u?u[0]:r.__k&&m(r,0),c),null!=u)for(g=u.length;g--;)null!=u[g]&&h(u[g]);c||("value"in y&&void 0!==(g=y.value)&&(g!==p.value||g!==t.value||"progress"===v&&!g)&&E(t,"value",g,p.value,!1),"checked"in y&&void 0!==(g=y.checked)&&g!==t.checked&&E(t,"checked",g,p.checked,!1))}return t}function T(t,e,r){try{"function"==typeof t?t(e):t.current=e}catch(t){o.__e(t,r)}}function C(t,e,r){var n,i;if(o.unmount&&o.unmount(t),(n=t.ref)&&(n.current&&n.current!==t.__e||T(n,null,e)),null!=(n=t.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(t){o.__e(t,e)}n.base=n.__P=null}if(n=t.__k)for(i=0;i<n.length;i++)n[i]&&C(n[i],e,"function"!=typeof t.type);r||null==t.__e||h(t.__e),t.__e=t.__d=void 0}function N(t,e,r){return this.constructor(t,r)}n=f.slice,o={__e:function(t,e){for(var r,n,o;e=e.__;)if((r=e.__c)&&!r.__)try{if((n=r.constructor)&&null!=n.getDerivedStateFromError&&(r.setState(n.getDerivedStateFromError(t)),o=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(t),o=r.__d),o)return r.__E=r}catch(e){t=e}throw t}},i=0,b.prototype.setState=function(t,e){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof t&&(t=t(p({},r),this.props)),t&&p(r,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=[],a="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,O.__r=0;var D;r(95),r(96),r(177),r(124),r(134),r(135),r(136),r(129),r(137),r(138),r(132),r(97);function z(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function F(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?z(Object(r),!0).forEach((function(e){G(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):z(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function G(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function L(t){var e=t.x,r=t.y,n=t.width,o=t.height,i=t.radius,u=t.className,a=e-n/2,c=r-o/2,s=F(F({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:a,y:c});return Object(l.h)("rect",s)}function B(t){return(B="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 W(){return(W=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function H(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],u=!0,a=!1;try{for(r=r.call(t);!(u=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==r.return||r.return()}finally{if(a)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Y(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Y(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 Y(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function X(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function U(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?X(Object(r),!0).forEach((function(e){Q(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):X(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function V(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function $(t,e){return($=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Z(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 r,n=J(t);if(e){var o=J(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return K(this,r)}}function K(t,e){if(e&&("object"===B(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return q(t)}function q(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function J(t){return(J=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Q(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,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"}(D||(D={}));var tt=l.LogicFlowUtil.StepDrag,et=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&&$(t,e)}(i,t);var e,r,n,o=Z(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),Q(q(e=o.call(this)),"updatePosition",(function(t){var r=t.deltaX,n=t.deltaY,o=e.nodeModel,i=o.x,u=o.y;e.nodeModel.x=i+r/2,e.nodeModel.y=u+n/2,e.nodeModel.moveText(r/2,n/2)})),Q(q(e),"getResize",(function(t){var e=t.index,r=t.deltaX,n=t.deltaY,o=t.width,i=t.height,u=t.PCTResizeInfo,a=t.pct,c=void 0===a?1:a,l={width:o,height:i,deltaX:r,deltaY:n};if(u){var s=0,f=0;switch(e){case 0:f=(-1*r-n)/4;break;case 1:f=(r-n)/4;break;case 2:f=(r+n)/4;break;case 3:f=(-1*r+n)/4}0!==f&&(s=Math.round(f/u.ResizeBasis.basisHeight*1e5)/1e3),u.ResizePCT.widthPCT=Math.max(Math.min(u.ResizePCT.widthPCT+s,u.ScaleLimit.maxScaleLimit),u.ScaleLimit.minScaleLimit),u.ResizePCT.hightPCT=Math.max(Math.min(u.ResizePCT.hightPCT+s,u.ScaleLimit.maxScaleLimit),u.ScaleLimit.minScaleLimit);var d=Math.round(u.ResizePCT.widthPCT*u.ResizeBasis.basisWidth/100),p=Math.round(u.ResizePCT.hightPCT*u.ResizeBasis.basisHeight/100);switch(e){case 0:r=o-d,n=i-p;break;case 1:r=d-o,n=i-p;break;case 2:r=d-o,n=p-i;break;case 3:r=o-d,n=p-i}return l.width=d,l.height=p,l.deltaX=r/c,l.deltaY=n/c,l}switch(e){case 0:l.width=o-r*c,l.height=i-n*c;break;case 1:l.width=o+r*c,l.height=i-n*c;break;case 2:l.width=o+r*c,l.height=i+n*c;break;case 3:l.width=o-r*c,l.height=i+n*c}return l})),Q(q(e),"updateEdgePointByAnchors",(function(){var t=e.nodeModel,r=t.id,n=t.anchors,o=e.getNodeEdges(r);o.sourceEdges.forEach((function(t){var e=n.find((function(e){return e.id===t.sourceAnchorId}));t.updateStartPoint({x:e.x,y:e.y})})),o.targetEdges.forEach((function(t){var e=n.find((function(e){return e.id===t.targetAnchorId}));t.updateEndPoint({x:e.x,y:e.y})}))})),Q(q(e),"updateRect",(function(t){var r=t.deltaX,n=t.deltaY,o=e.nodeModel,i=o.id,u=o.x,a=o.y,c=o.width,l=o.height,s=o.radius,f=o.PCTResizeInfo,d=q(e).index,p=e.getResize({index:d,deltaX:r,deltaY:n,width:c,height:l,PCTResizeInfo:f,pct:1}),h=e.nodeModel,y=h.minWidth,v=h.minHeight,g=h.maxWidth,b=h.maxHeight;if(p.width<y||p.width>g||p.height<v||p.height>b)e.dragHandler.cancelDrag();else{e.updatePosition({deltaX:p.deltaX,deltaY:p.deltaY}),e.nodeModel.width=p.width,e.nodeModel.height=p.height,e.nodeModel.setProperties({nodeSize:{width:p.width,height:p.height}});e.getNodeEdges(i);var m={x:u,y:a,width:c,height:l,radius:s},_={x:e.nodeModel.x,y:e.nodeModel.y,width:e.nodeModel.width,height:e.nodeModel.height,radius:s};e.updateEdgePointByAnchors(),e.eventEmit({beforeNode:m,afterNode:_})}})),Q(q(e),"updateEllipse",(function(t){var r=t.deltaX,n=t.deltaY,o=e.nodeModel,i=o.id,u=o.rx,a=o.ry,c=o.x,l=o.y,s=o.PCTResizeInfo,f=q(e).index,d=u,p=a,h=e.getResize({index:f,deltaX:r,deltaY:n,width:d,height:p,PCTResizeInfo:s,pct:.5}),y=e.nodeModel,v=y.minWidth,g=y.minHeight,b=y.maxWidth,m=y.maxHeight;if(h.width<v/2||h.width>b/2||h.height<g/2||h.height>m/2)e.dragHandler.cancelDrag();else{e.updatePosition({deltaX:h.deltaX,deltaY:h.deltaY}),e.nodeModel.rx=h.width,e.nodeModel.ry=h.height,e.nodeModel.setProperties({nodeSize:{rx:h.width,ry:h.height}});e.getNodeEdges(i);var _={x:c,y:l},x={rx:h.width,ry:h.height,x:e.nodeModel.x,y:e.nodeModel.y};e.updateEdgePointByAnchors(),e.eventEmit({beforeNode:U(U({},_),{},{rx:u,ry:a}),afterNode:x})}})),Q(q(e),"updateDiamond",(function(t){var r=t.deltaX,n=t.deltaY,o=e.nodeModel,i=(o.id,o.rx),u=o.ry,a=o.x,c=o.y,l=o.PCTResizeInfo,s=q(e).index,f=i,d=u,p=e.getResize({index:s,deltaX:r,deltaY:n,width:f,height:d,PCTResizeInfo:l,pct:.5}),h=e.nodeModel,y=h.minWidth,v=h.minHeight,g=h.maxWidth,b=h.maxHeight;if(p.width<y/2||p.width>g/2||p.height<v/2||p.height>b/2)e.dragHandler.cancelDrag();else{e.updatePosition({deltaX:p.deltaX,deltaY:p.deltaY}),e.nodeModel.rx=p.width,e.nodeModel.ry=p.height,e.nodeModel.setProperties({nodeSize:{rx:p.width,ry:p.height}});var m={x:a,y:c,rx:i,ry:u},_={rx:p.width,ry:p.height,x:e.nodeModel.x,y:e.nodeModel.y};e.updateEdgePointByAnchors(),e.eventEmit({beforeNode:m,afterNode:_})}})),Q(q(e),"eventEmit",(function(t){var r=t.beforeNode,n=t.afterNode,o=e.nodeModel,i=o.id,u=o.modelType,a=o.type,c=U({id:i,modelType:u,type:a},r),l=U({id:i,modelType:u,type:a},n);e.graphModel.eventCenter.emit("node:resize",{oldNodeSize:c,newNodeSize:l})})),Q(q(e),"onDragging",(function(t){var r=t.deltaX,n=t.deltaY,o=e.graphModel.transformModel,i=e.nodeModel.modelType,u=H(o.fixDeltaXY(r,n),2);r=u[0],n=u[1],i===D.RECT_NODE||i===D.HTML_NODE?e.updateRect({deltaX:r,deltaY:n}):i===D.ELLIPSE_NODE?e.updateEllipse({deltaX:r,deltaY:n}):i===D.DIAMOND_NODE&&e.updateDiamond({deltaX:r,deltaY:n})})),Q(q(e),"onDragEnd",(function(){e.updateEdgePointByAnchors();var t=e.graphModel.gridSize,r=void 0===t?1:t,n=r*Math.round(e.nodeModel.x/r),o=r*Math.round(e.nodeModel.y/r);e.nodeModel.moveTo(n,o)})),e.index=t.index,e.nodeModel=t.model,e.graphModel=t.graphModel,e.state={},e.dragHandler=new tt({onDragging:e.onDragging,onDragEnd:e.onDragEnd,step:1}),e}return e=i,(r=[{key:"getNodeEdges",value:function(t){for(var e=this.graphModel.edges,r=[],n=[],o=0;o<e.length;o++){var i=e[o];i.sourceNodeId===t?r.push(i):e[o].targetNodeId===t&&n.push(i)}return{sourceEdges:r,targetEdges:n}}},{key:"render",value:function(){var t=this.props,e=t.x,r=t.y,n=t.index,o=t.model.getControlPointStyle();return y("g",{className:"lf-resize-control-".concat(n)},y(L,W({className:"lf-node-control",x:e,y:r},o,{onMouseDown:this.dragHandler.handleMouseDown})))}}])&&V(e.prototype,r),n&&V(e,n),i}(b);function rt(t){return(rt="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 nt(){return(nt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function ot(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function it(t,e){return(it=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ut(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 r,n=ct(t);if(e){var o=ct(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return at(this,r)}}function at(t,e){if(e&&("object"===rt(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 ct(t){return(ct=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var lt=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&&it(t,e)}(i,t);var e,r,n,o=ut(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,(r=[{key:"getResizeControl",value:function(){var t=this.props,e=t.model,r=t.graphModel,n=e.x,o=e.y,i=e.width,u=e.height,a={minX:n-i/2,minY:o-u/2,maxX:n+i/2,maxY:o+u/2},c=a.minX,l=a.minY,s=a.maxX,f=a.maxY;return[{x:c,y:l},{x:s,y:l},{x:s,y:f},{x:c,y:f}].map((function(t,n){return y(et,nt({index:n},t,{model:e,graphModel:r}))}))}},{key:"getGroupSolid",value:function(){var t=this.props.model,e=t.x,r=t.y,n=t.width,o=t.height;return y(L,nt({fill:"none"},t.getResizeOutlineStyle(),{x:e,y:r,width:n,height:o}))}},{key:"render",value:function(){return y("g",{className:"lf-resize-control"},this.getGroupSolid(),this.getResizeControl())}}])&&ot(e.prototype,r),n&&ot(e,n),i}(b);function st(t){return(st="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 ft(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function pt(t,e,r){return e&&dt(t.prototype,e),r&&dt(t,r),t}function ht(){return(ht="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=yt(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}}).apply(this,arguments)}function yt(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=_t(t)););return t}function vt(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&&gt(t,e)}function gt(t,e){return(gt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function bt(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 r,n=_t(t);if(e){var o=_t(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return mt(this,r)}}function mt(t,e){if(e&&("object"===st(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 _t(t){return(_t=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var xt=function(t){vt(r,t);var e=bt(r);function r(t,n){var o;ft(this,r);var i=(o=e.call(this,t,n)).properties.nodeSize;return i&&(o.width=i.width,o.height=i.height),o}return pt(r,[{key:"initNodeData",value:function(t){ht(_t(r.prototype),"initNodeData",this).call(this,t),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3}},{key:"getOutlineStyle",value:function(){var t=ht(_t(r.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)}},{key:"enableProportionResize",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(t){var e={widthPCT:100,hightPCT:100},r={basisWidth:this.width,basisHeight:this.height},n={maxScaleLimit:Math.min(this.maxWidth/this.width*100,this.maxHeight/this.height*100),minScaleLimit:Math.max(this.minWidth/this.width*100,this.minHeight/this.height*100)};this.PCTResizeInfo={ResizePCT:e,ResizeBasis:r,ScaleLimit:n}}else delete this.PCTResizeInfo}}]),r}(l.RectNodeModel),Ot={type:"rect",view:function(t){vt(r,t);var e=bt(r);function r(){return ft(this,r),e.apply(this,arguments)}return pt(r,[{key:"getControlGroup",value:function(){var t=this.props,e=t.model,r=t.graphModel;return Object(l.h)(lt,{model:e,graphModel:r})}},{key:"getResizeShape",value:function(){return ht(_t(r.prototype),"getShape",this).call(this)}},{key:"getShape",value:function(){var t=this.props,e=t.model.isSelected,r=t.graphModel.editConfigModel.isSilentMode;return Object(l.h)("g",null,this.getResizeShape(),e&&!r?this.getControlGroup():"")}}]),r}(l.RectNode),model:xt};function wt(t){return(wt="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 St(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Pt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function jt(t,e,r){return e&&Pt(t.prototype,e),r&&Pt(t,r),t}function Et(){return(Et="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=kt(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}}).apply(this,arguments)}function kt(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Tt(t)););return t}function Mt(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&&Rt(t,e)}function Rt(t,e){return(Rt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function At(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 r,n=Tt(t);if(e){var o=Tt(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return It(this,r)}}function It(t,e){if(e&&("object"===wt(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 Tt(t){return(Tt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ct=function(t){Mt(r,t);var e=At(r);function r(t,n){var o;St(this,r);var i=(o=e.call(this,t,n)).properties.nodeSize;return i&&(o.rx=i.rx,o.ry=i.ry),o}return jt(r,[{key:"initNodeData",value:function(t){Et(Tt(r.prototype),"initNodeData",this).call(this,t),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3}},{key:"getOutlineStyle",value:function(){var t=Et(Tt(r.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"}}},{key:"enableProportionResize",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(t){var e={widthPCT:100,hightPCT:100},r={basisWidth:this.rx,basisHeight:this.ry},n={maxScaleLimit:Math.min(this.maxWidth/(2*this.rx)*100,this.maxHeight/(2*this.ry)*100),minScaleLimit:Math.max(this.minWidth/(2*this.rx)*100,this.minHeight/(2*this.ry)*100)};this.PCTResizeInfo={ResizePCT:e,ResizeBasis:r,ScaleLimit:n}}else delete this.PCTResizeInfo}}]),r}(l.EllipseNodeModel),Nt={type:"ellipse",view:function(t){Mt(r,t);var e=At(r);function r(){return St(this,r),e.apply(this,arguments)}return jt(r,[{key:"getControlGroup",value:function(){var t=this.props,e=t.model,r=t.graphModel;return Object(l.h)(lt,{model:e,graphModel:r})}},{key:"getResizeShape",value:function(){return Et(Tt(r.prototype),"getShape",this).call(this)}},{key:"getShape",value:function(){var t=this.props,e=t.model,r=t.graphModel.editConfigModel.isSilentMode;return Object(l.h)("g",null,this.getResizeShape(),e.isSelected&&!r?this.getControlGroup():"")}}]),r}(l.EllipseNode),model:Ct};r(185),r(169);function Dt(t){var e=t.fillOpacity,r=void 0===e?1:e,n=t.strokeWidth,o=void 0===n?1:n,i=t.strokeOpacity,u=void 0===i?1:i,a=t.fill,c=void 0===a?"transparent":a,s=t.stroke,f=void 0===s?"#000":s,d=t.points,p=t.className,h={fill:c,fillOpacity:r,strokeWidth:o,stroke:f,strokeOpacity:u,points:"",className:void 0===p?"lf-basic-shape":p};return h.points=d.map((function(t){return t.join(",")})).join(" "),Object(l.h)("polygon",h)}function zt(t){return(zt="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 Ft(){return(Ft=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function Gt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Lt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Bt(t,e,r){return e&&Lt(t.prototype,e),r&&Lt(t,r),t}function Wt(){return(Wt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=Ht(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}}).apply(this,arguments)}function Ht(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=$t(t)););return t}function Yt(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&&Xt(t,e)}function Xt(t,e){return(Xt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ut(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 r,n=$t(t);if(e){var o=$t(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Vt(this,r)}}function Vt(t,e){if(e&&("object"===zt(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 $t(t){return($t=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Zt=function(t){Yt(r,t);var e=Ut(r);function r(t,n){var o;Gt(this,r);var i=(o=e.call(this,t,n)).properties.nodeSize;return i&&(o.rx=i.rx,o.ry=i.ry),o}return Bt(r,[{key:"initNodeData",value:function(t){Wt($t(r.prototype),"initNodeData",this).call(this,t),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3,this.gridSize=1}},{key:"getOutlineStyle",value:function(){var t=Wt($t(r.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"}}},{key:"enableProportionResize",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(t){var e={widthPCT:100,hightPCT:100},r={basisWidth:this.rx,basisHeight:this.ry},n={maxScaleLimit:Math.min(this.maxWidth/(2*this.rx)*100,this.maxHeight/(2*this.ry)*100),minScaleLimit:Math.max(this.minWidth/(2*this.rx)*100,this.minHeight/(2*this.ry)*100)};this.PCTResizeInfo={ResizePCT:e,ResizeBasis:r,ScaleLimit:n}}else delete this.PCTResizeInfo}}]),r}(l.DiamondNodeModel),Kt={type:"diamond",view:function(t){Yt(r,t);var e=Ut(r);function r(){return Gt(this,r),e.apply(this,arguments)}return Bt(r,[{key:"getControlGroup",value:function(){var t=this.props,e=t.model,r=t.graphModel;return Object(l.h)(lt,{model:e,graphModel:r})}},{key:"getResizeShape",value:function(){var t=this.props.model,e=t.points,r=t.getNodeStyle();return Object(l.h)("g",null,Object(l.h)(Dt,Ft({},r,{points:e})))}},{key:"getShape",value:function(){var t=this.props,e=t.model.isSelected,r=t.graphModel.editConfigModel.isSilentMode;return Object(l.h)("g",null,this.getResizeShape(),e&&!r?this.getControlGroup():"")}}]),r}(l.DiamondNode),model:Zt};function qt(t){return(qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Jt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Qt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function te(t,e,r){return e&&Qt(t.prototype,e),r&&Qt(t,r),t}function ee(){return(ee="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=re(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}}).apply(this,arguments)}function re(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ae(t)););return t}function ne(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&&oe(t,e)}function oe(t,e){return(oe=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ie(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 r,n=ae(t);if(e){var o=ae(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return ue(this,r)}}function ue(t,e){if(e&&("object"===qt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function ae(t){return(ae=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ce=function(t){ne(r,t);var e=ie(r);function r(t,n){var o;Jt(this,r);var i=(o=e.call(this,t,n)).properties.nodeSize;return i&&(o.width=i.width,o.height=i.height),o}return te(r,[{key:"initNodeData",value:function(t){ee(ae(r.prototype),"initNodeData",this).call(this,t),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3}},{key:"getOutlineStyle",value:function(){var t=ee(ae(r.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"}}},{key:"enableProportionResize",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(t){var e={widthPCT:100,hightPCT:100},r={basisWidth:this.width,basisHeight:this.height},n={maxScaleLimit:Math.min(this.maxWidth/this.width*100,this.maxHeight/this.height*100),minScaleLimit:Math.max(this.minWidth/this.width*100,this.minHeight/this.height*100)};this.PCTResizeInfo={ResizePCT:e,ResizeBasis:r,ScaleLimit:n}}else delete this.PCTResizeInfo}}]),r}(l.HtmlNodeModel),le={type:"html",view:function(t){ne(r,t);var e=ie(r);function r(){return Jt(this,r),e.apply(this,arguments)}return te(r,[{key:"getControlGroup",value:function(){var t=this.props,e=t.model,r=t.graphModel;return Object(l.h)(lt,{model:e,graphModel:r})}},{key:"getResizeShape",value:function(){return ee(ae(r.prototype),"getShape",this).call(this)}},{key:"getShape",value:function(){var t=this.props,e=t.model.isSelected,r=t.graphModel.editConfigModel.isSilentMode;return Object(l.h)("g",null,this.getResizeShape(),e&&!r?this.getControlGroup():"")}}]),r}(l.HtmlNode),model:ce},se={pluginName:"nodeResize",step:0,install:function(t){t.register({type:Ot.type,view:Ot.view,model:Ot.model}),t.register({type:Nt.type,view:Nt.view,model:Nt.model}),t.register({type:Kt.type,view:Kt.view,model:Kt.model}),t.register({type:le.type,view:le.view,model:le.model})}};e.default=se},function(t,e,r){var n=r(5),o=r(218),i=r(104);n({target:"Array",proto:!0},{fill:o}),i("fill")},,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){"use strict";var n=r(5),o=r(1),i=r(33),u=r(14),a=r(17),c=r(20),l=r(2),s=r(213),f=r(79),d=r(214),p=r(215),h=r(50),y=r(216),v=[],g=o(v.sort),b=o(v.push),m=l((function(){v.sort(void 0)})),_=l((function(){v.sort(null)})),x=f("sort"),O=!l((function(){if(h)return h<70;if(!(d&&d>3)){if(p)return!0;if(y)return y<603;var t,e,r,n,o="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)v.push({k:e+n,v:r})}for(v.sort((function(t,e){return e.v-t.v})),n=0;n<v.length;n++)e=v[n].k.charAt(0),o.charAt(o.length-1)!==e&&(o+=e);return"DGBEFHACIJK"!==o}}));n({target:"Array",proto:!0,forced:m||!_||!x||!O},{sort:function(t){void 0!==t&&i(t);var e=u(this);if(O)return void 0===t?g(e):g(e,t);var r,n,o=[],l=a(e);for(n=0;n<l;n++)n in e&&b(o,e[n]);for(s(o,function(t){return function(e,r){return void 0===r?-1:void 0===e?1:void 0!==t?+t(e,r)||0:c(e)>c(r)?1:-1}}(t)),r=o.length,n=0;n<r;)e[n]=o[n++];for(;n<l;)delete e[n++];return e}})},function(t,e,r){var n=r(113),o=Math.floor,i=function(t,e){var r=t.length,c=o(r/2);return r<8?u(t,e):a(t,i(n(t,0,c),e),i(n(t,c),e),e)},u=function(t,e){for(var r,n,o=t.length,i=1;i<o;){for(n=i,r=t[i];n&&e(t[n-1],r)>0;)t[n]=t[--n];n!==i++&&(t[n]=r)}return t},a=function(t,e,r,n){for(var o=e.length,i=r.length,u=0,a=0;u<o||a<i;)t[u+a]=u<o&&a<i?n(e[u],r[a])<=0?e[u++]:r[a++]:u<o?e[u++]:r[a++];return t};t.exports=i},function(t,e,r){var n=r(73).match(/firefox\/(\d+)/i);t.exports=!!n&&+n[1]},function(t,e,r){var n=r(73);t.exports=/MSIE|Trident/.test(n)},function(t,e,r){var n=r(73).match(/AppleWebKit\/(\d+)\./);t.exports=!!n&&+n[1]},function(t,e,r){var n=r(5),o=r(0),i=r(83),u=r(3),a=r(73),c=r(72),l=/MSIE .\./.test(a),s=o.Function,f=function(t){return function(e,r){var n=arguments.length>2,o=n?c(arguments,2):void 0;return t(n?function(){i(u(e)?e:s(e),this,o)}:e,r)}};n({global:!0,bind:!0,forced:l},{setTimeout:f(o.setTimeout),setInterval:f(o.setInterval)})},function(t,e,r){"use strict";var n=r(14),o=r(56),i=r(17);t.exports=function(t){for(var e=n(this),r=i(e),u=arguments.length,a=o(u>1?arguments[1]:void 0,r),c=u>2?arguments[2]:void 0,l=void 0===c?r:o(c,r);l>a;)e[a++]=t;return e}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){"use strict";r.r(e),r.d(e,"Group",(function(){return T})),r.d(e,"GroupNode",(function(){return w}));r(124),r(164),r(84),r(129),r(89),r(90),r(132),r(137),r(138),r(97),r(115),r(135),r(136),r(59),r(159),r(60),r(78),r(81),r(95),r(96),r(212),r(134),r(165),r(157),r(131),r(64);var n=r(21),o=(r(217),r(185),r(125),r(126),r(127),r(128),r(161),r(184));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 r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach((function(e){x(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function c(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 r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))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 r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function d(t,e,r){return e&&f(t.prototype,e),r&&f(t,r),t}function p(){return(p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=h(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):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 r,n=_(t);if(e){var o=_(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return b(this,r)}}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,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var O=function(t){y(r,t);var e=g(r);function r(){var t;s(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;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),x(m(t),"childrenLastFoldStatus",{}),t}return d(r,[{key:"initNodeData",value:function(t){var e=this;p(_(r.prototype),"initNodeData",this).call(this,t);var n=[];Array.isArray(t.children)&&(n=t.children),this.children=new Set(n),this.width=500,this.height=300,this.foldedWidth=80,this.foldedHeight=60,this.zIndex=-1e4,this.radius=0,this.text.editable=!1,this.text.draggable=!1,this.isRestrict=!1,this.resizable=!1,this.autoToFront=!1,this.foldable=!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=p(_(r.prototype),"getResizeOutlineStyle",this).call(this);return t.stroke="none",t}},{key:"foldGroup",value:function(t){var e=this;if(t!==this.isFolded){this.setProperty("isFolded",t),this.isFolded=t,t?(this.x=this.x-this.width/2+this.foldedWidth/2,this.y=this.y-this.height/2+this.foldedHeight/2,this.unfoldedWidth=this.width,this.unfoldedHight=this.height,this.width=this.foldedWidth,this.height=this.foldedHeight):(this.width=this.unfoldedWidth,this.height=this.unfoldedHight,this.x=this.x+this.width/2-this.foldedWidth/2,this.y=this.y+this.height/2-this.foldedHeight/2);var r=this.incoming.edges.concat(this.outgoing.edges);this.children.forEach((function(n){var o=e.graphModel.getElement(n),i=o.isFolded;if(o.isGroup&&!o.isFolded&&o.foldGroup(t),o.isGroup&&!t){var u=e.childrenLastFoldStatus[n];void 0!==u&&u!==o.isFolded&&o.foldGroup(u)}e.childrenLastFoldStatus[n]=i,o.visible=!t,r=r.concat(o.incoming.edges.concat(o.outgoing.edges))})),this.foldEdge(t,r)}}},{key:"getAnchorStyle",value:function(t){var e=p(_(r.prototype),"getAnchorStyle",this).call(this,t);return e.stroke="transparent",e.fill="transparent",e.hover.fill="transparent",e.hover.stroke="transparent",e}},{key:"foldEdge",value:function(t,e){var r=this;e.forEach((function(e,n){var o=e.id,i=e.sourceNodeId,u=e.targetNodeId,a=e.startPoint,c=e.endPoint,l=e.type,s=e.text,f=e.getProperties(),d={id:"".concat(o,"__").concat(n),sourceNodeId:i,targetNodeId:u,startPoint:a,endPoint:c,type:l,properties:f,text:null==s?void 0:s.value};e.virtual&&r.graphModel.deleteEdgeById(e.id);var p=r.graphModel.group.getNodeGroup(u);p||(p=r.graphModel.getNodeModelById(u));var h=r.graphModel.group.getNodeGroup(i);h||(h=r.graphModel.getNodeModelById(i)),t&&!1!==e.visible&&(r.children.has(i)||r.id===i?(d.startPoint=void 0,d.sourceNodeId=r.id):(d.endPoint=void 0,d.targetNodeId=r.id),p.id===r.id&&h.id===r.id||r.createVirtualEdge(d),e.visible=!1),t||!1!==e.visible||(p&&p.isGroup&&p.isFolded?(d.targetNodeId=p.id,d.endPoint=void 0,r.createVirtualEdge(d)):h&&h.isGroup&&h.isFolded?(d.sourceNodeId=h.id,d.startPoint=void 0,r.createVirtualEdge(d)):e.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,r=t.y1,n=t.x2,o=t.y2;return e>=this.x-this.width/2&&n<=this.x+this.width/2&&r>=this.y-this.height/2&&o<=this.y+this.height/2}},{key:"isAllowMoveTo",value:function(t){var e=t.x1,r=t.y1,n=t.x2,o=t.y2;return{x:e>=this.x-this.width/2&&n<=this.x+this.width/2,y:r>=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),this.graphModel.eventCenter.emit("group:add-node",{data:this.getData()})}},{key:"removeChild",value:function(t){this.children.delete(t),this.graphModel.eventCenter.emit("group:remove-node",{data:this.getData()})}},{key:"getAddableOutlineStyle",value:function(){return{stroke:"#FEB663",strokeWidth:2,strokeDasharray:"4 4",fill:"transparent"}}},{key:"getData",value:function(){var t=this,e=p(_(r.prototype),"getData",this).call(this);e.children=[],this.children.forEach((function(r){var n=t.graphModel.getNodeModelById(r);n&&!n.virtual&&e.children.push(r)}));var n=e.properties;return delete n.groupAddable,delete n.isFolded,e}},{key:"getHistoryData",value:function(){var t=p(_(r.prototype),"getData",this).call(this);t.children=c(this.children),t.isGroup=!0;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}},{key:"toBack",value:function(){this.zIndex--}}]),r}(o.RectResize.model),w={type:"group",view:function(t){y(r,t);var e=g(r);function r(){return s(this,r),e.apply(this,arguments)}return d(r,[{key:"getControlGroup",value:function(){var t=this.props.model,e=t.resizable,n=t.properties;return e&&!n.isFolded?p(_(r.prototype),"getControlGroup",this).call(this):null}},{key:"getAddableShape",value:function(){var t=this.props.model,e=t.width,r=t.height,o=t.x,i=t.y,u=t.radius;if(!t.properties.groupAddable)return null;var c=this.props.model.getNodeStyle().strokeWidth,l=this.props.model.getAddableOutlineStyle(),s=e+c+8,f=r+c+8;return Object(n.h)("rect",a(a({},l),{},{width:s,height:f,x:o-s/2,y:i-f/2,rx:u,ry:u}))}},{key:"getFoldIcon",value:function(){var t=this.props.model,e=t.x-t.width/2+5,r=t.y-t.height/2+5;if(!t.foldable)return null;var o=Object(n.h)("path",{fill:"none",stroke:"#818281",strokeWidth:2,"pointer-events":"none",d:t.properties.isFolded?"M ".concat(e+3,",").concat(r+6," ").concat(e+11,",").concat(r+6," M").concat(e+7,",").concat(r+2," ").concat(e+7,",").concat(r+10):"M ".concat(e+3,",").concat(r+6," ").concat(e+11,",").concat(r+6," ")});return Object(n.h)("g",{},[Object(n.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(n.h)("g",{},[this.getAddableShape(),p(_(r.prototype),"getResizeShape",this).call(this),this.getFoldIcon()])}}]),r}(o.RectResize.view),model:O},S=["children"],P=["type","startPoint","endPoint","pointsList","text"];function j(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function E(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?j(Object(r),!0).forEach((function(e){I(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function k(t){return function(t){if(Array.isArray(t))return M(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 M(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return M(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 M(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function R(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function A(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function I(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var T=function(){function t(e){var r=this,n=e.lf;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),I(this,"topGroupZIndex",-1e4),I(this,"nodeGroupMap",new Map),I(this,"graphRendered",(function(t){t&&t.nodes&&t.nodes.forEach((function(t){t.children&&t.children.forEach((function(e){r.nodeGroupMap.set(e,t.id)}))}))})),I(this,"appendNodeToGroup",(function(t){var e=t.data,n=r.nodeGroupMap.get(e.id);if(n){var o=r.lf.getNodeModelById(n);o.removeChild(e.id),r.nodeGroupMap.delete(e.id),o.setAllowAppendChild(!1)}var i=r.lf.getNodeModelById(e.id),u=i.getBounds(),a=r.getGroup(u,e);(i.isGroup&&(e.children.forEach((function(t){r.nodeGroupMap.set(t,e.id)})),r.nodeSelected({data:e,isSelected:!1,isMultiple:!1})),a)&&(a.isAllowAppendIn(e)?(a.addChild(e.id),r.nodeGroupMap.set(e.id,a.id),a.setAllowAppendChild(!1)):r.lf.emit("group:not-allowed",{group:a.getData(),node:e}))})),I(this,"deleteGroupChild",(function(t){var e=t.data;e.children&&e.children.forEach((function(t){r.nodeGroupMap.delete(t),r.lf.deleteNode(t)}));var n=r.nodeGroupMap.get(e.id);n&&(r.lf.getNodeModelById(n).removeChild(e.id),r.nodeGroupMap.delete(e.id))})),I(this,"setActiveGroup",(function(t){var e=t.data,n=r.lf.getNodeModelById(e.id),o=n.getBounds(),i=r.getGroup(o,e);(r.activeGroup&&r.activeGroup.setAllowAppendChild(!1),!i||n.isGroup&&i.id===e.id)||i.isAllowAppendIn(e)&&(r.activeGroup=i,r.activeGroup.setAllowAppendChild(!0))})),I(this,"nodeSelected",(function(t){var e=t.data,n=t.isMultiple,o=t.isSelected,i=r.lf.getNodeModelById(e.id);if(r.toFrontGroup(i),r.topGroupZIndex>-1e3){r.topGroupZIndex=-1e4;for(var u=r.lf.graphModel.nodes.filter((function(t){return t.isGroup})).sort((function(t,e){return t.zIndex-e.zIndex})),a=0,c=0;c<u.length;c++){var l=u[c];l.zIndex!==a&&(r.topGroupZIndex++,a=l.zIndex),l.setZIndex(r.topGroupZIndex)}}if(n&&o)if(i.isGroup)i.children.forEach((function(t){r.lf.graphModel.getElement(t).setSelected(!1)}));else{var s=r.nodeGroupMap.get(e.id);if(s)r.lf.getNodeModelById(s).isSelected&&i.setSelected(!1)}})),I(this,"toFrontGroup",(function(t){t&&t.isGroup&&(r.topGroupZIndex++,t.setZIndex(r.topGroupZIndex),t.children&&t.children.forEach((function(t){var e=r.lf.getNodeModelById(t);r.toFrontGroup(e)})))})),n.register(w),this.lf=n,n.graphModel.addNodeMoveRules((function(t,e,o){if(t.isGroup){var i=r.getNodeAllChild(t);return n.graphModel.moveNodes(i,e,o,!0),!0}var u=n.getNodeModelById(r.nodeGroupMap.get(t.id));if(u&&u.isRestrict){var a=t.getBounds(),c=a.x1,l=a.y1,s=a.x2,f=a.y2;return u.isAllowMoveTo({x1:c+e,y1:l+o,x2:s+e,y2:f+o})}return!0})),n.graphModel.group=this,n.on("node:add,node:drop,node:dnd-add",this.appendNodeToGroup),n.on("node:delete",this.deleteGroupChild),n.on("node:dnd-drag,node:drag",this.setActiveGroup),n.on("node:click",this.nodeSelected),n.on("graph:rendered",this.graphRendered),n.addElements=function(t,e){for(var o=t.nodes,i=t.edges,u={},a={nodes:[],edges:[]},c=[],l=0;l<o.length;l++){var s=o[l],f=s.id,d=s.children,p=R(s,S),h=n.addNode(p);if(!h)return{nodes:[],edges:[]};f&&(u[f]=h.id),a.nodes.push(h);var y=r.createAllChildNodes(u,d,h,e).edgesArray;c.push.apply(c,k(y))}return c.forEach((function(t){r.createEdgeModel(t,u,e)})),i.forEach((function(t){var n=r.createEdgeModel(t,u,e);a.edges.push(n)})),a}}var e,r,o;return e=t,(r=[{key:"createAllChildNodes",value:function(t,e,r,o){var i=this,u=this.lf,a=[],c=[],l=[];null==e||e.forEach((function(e){var s=u.getNodeModelById(e),f=s.x,d=s.y,p=s.properties,h=s.type,y=s.text,v=s.rotate,g=s.children,b=(s.incoming,s.outgoing,n.EventType.NODE_GROUP_COPY||"node:group-copy-add"),m=u.addNode({x:f+o,y:d+o,properties:p,type:h,text:E(E({},y),{},{x:y.x+o,y:y.y+o}),rotate:v},b);if(r.addChild(m.id),t[e]=m.id,l.push(m),s.incoming.edges.forEach((function(t){c.push(t)})),s.outgoing.edges.forEach((function(t){c.push(t)})),g instanceof Set){var _=i.createAllChildNodes(t,g,m,o),x=_.nodesArray,O=_.edgesArray;l.push.apply(l,k(x)),a.push.apply(a,k(O))}}));var s=c.filter((function(e){return t[e.sourceNodeId]&&t[e.targetNodeId]})).map((function(t){return t.getData()}));return{nodesArray:l,edgesArray:a.concat(s)}}},{key:"createEdgeModel",value:function(t,e,r){var n=this.lf,o=t.sourceNodeId,i=t.targetNodeId;e[o]&&(o=e[o]),e[i]&&(i=e[i]);var u=t.type,a=t.startPoint,c=t.endPoint,l=t.pointsList,s=t.text,f=(R(t,P),{x:a.x+r,y:a.y+r}),d={x:c.x+r,y:c.y+r},p=[];l&&l.length>0&&(p=l.map((function(t){return t.x+=r,t.y+=r,t})));var h=s;return s&&"string"!=typeof s&&(h.x=s.x+r,h.y=s.y+r),n.graphModel.addEdge({type:u,startPoint:f,endPoint:d,sourceNodeId:o,targetNodeId:i,pointsList:p,text:h})}},{key:"getNodeAllChild",value:function(t){var e=this,r=[];return t.children&&t.children.forEach((function(t){r.push(t);var n=e.lf.getNodeModelById(t);n.isGroup&&(r=r.concat(e.getNodeAllChild(n)))})),r}},{key:"getGroup",value:function(t,e){var r=this.lf.graphModel.nodes.filter((function(r){return r.isGroup&&r.isInRange(t)&&r.id!==e.id}));if(0!==r.length){if(1===r.length)return r[0];for(var n=r[r.length-1],o=r.length-2;o>=0;o--)r[o].zIndex>n.zIndex&&(n=r[o]);return n}}},{key:"getNodeGroup",value:function(t){var e=this.nodeGroupMap.get(t);if(e)return this.lf.getNodeModelById(e)}}])&&A(e.prototype,r),o&&A(e,o),t}();I(T,"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 r="object"==typeof exports?e(require("window")):e(t.window);for(var n in r)("object"==typeof exports?exports:t)[n]=r[n]}}(window,(function(t){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=251)}([function(t,e,r){(function(e){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,r(98))},function(t,e){var r=Function.prototype,n=r.bind,o=r.call,i=n&&n.bind(o);t.exports=n?function(t){return t&&i(o,t)}:function(t){return t&&function(){return o.apply(t,arguments)}}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){return"function"==typeof t}},function(t,e,r){var n=r(0),o=r(32),i=r(6),u=r(37),a=r(49),c=r(62),l=o("wks"),s=n.Symbol,f=s&&s.for,d=c?s:s&&s.withoutSetter||u;t.exports=function(t){if(!i(l,t)||!a&&"string"!=typeof l[t]){var e="Symbol."+t;a&&i(s,t)?l[t]=s[t]:l[t]=c&&f?f(e):d(e)}return l[t]}},function(t,e,r){var n=r(0),o=r(25).f,i=r(16),u=r(15),a=r(41),c=r(70),l=r(75);t.exports=function(t,e){var r,s,f,d,p,h=t.target,y=t.global,v=t.stat;if(r=y?n:v?n[h]||a(h,{}):(n[h]||{}).prototype)for(s in e){if(d=e[s],f=t.noTargetGet?(p=o(r,s))&&p.value:r[s],!l(y?s:h+(v?".":"#")+s,t.forced)&&void 0!==f){if(typeof d==typeof f)continue;c(d,f)}(t.sham||f&&f.sham)&&i(d,"sham",!0),u(r,s,d,t)}}},function(t,e,r){var n=r(1),o=r(14),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},function(t,e,r){var n=r(2);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,r){var n=r(3);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},function(t,e,r){var n=r(0),o=r(7),i=r(63),u=r(10),a=r(28),c=n.TypeError,l=Object.defineProperty;e.f=o?l:function(t,e,r){if(u(t),e=a(e),u(r),i)try{return l(t,e,r)}catch(t){}if("get"in r||"set"in r)throw c("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},function(t,e,r){var n=r(0),o=r(8),i=n.String,u=n.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not an object")}},function(t,e){var r=Function.prototype.call;t.exports=r.bind?r.bind(r):function(){return r.apply(r,arguments)}},function(t,e,r){var n=r(57),o=r(27);t.exports=function(t){return n(o(t))}},function(t,e,r){var n=r(0),o=r(3),i=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(n[t]):n[t]&&n[t][e]}},function(t,e,r){var n=r(0),o=r(27),i=n.Object;t.exports=function(t){return i(o(t))}},function(t,e,r){var n=r(0),o=r(3),i=r(6),u=r(16),a=r(41),c=r(38),l=r(22),s=r(54).CONFIGURABLE,f=l.get,d=l.enforce,p=String(String).split("String");(t.exports=function(t,e,r,c){var l,f=!!c&&!!c.unsafe,h=!!c&&!!c.enumerable,y=!!c&&!!c.noTargetGet,v=c&&void 0!==c.name?c.name:e;o(r)&&("Symbol("===String(v).slice(0,7)&&(v="["+String(v).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(r,"name")||s&&r.name!==v)&&u(r,"name",v),(l=d(r)).source||(l.source=p.join("string"==typeof v?v:""))),t!==n?(f?!y&&t[e]&&(h=!0):delete t[e],h?t[e]=r:u(t,e,r)):h?t[e]=r:a(e,r)})(Function.prototype,"toString",(function(){return o(this)&&f(this).source||c(this)}))},function(t,e,r){var n=r(7),o=r(9),i=r(23);t.exports=n?function(t,e,r){return o.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e,r){var n=r(82);t.exports=function(t){return n(t.length)}},function(t,e,r){var n=r(1),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},function(t,e,r){var n,o=r(10),i=r(92),u=r(48),a=r(24),c=r(107),l=r(42),s=r(35),f=s("IE_PROTO"),d=function(){},p=function(t){return"<script>"+t+"<\/script>"},h=function(t){t.write(p("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e;y="undefined"!=typeof document?document.domain&&n?h(n):((e=l("iframe")).style.display="none",c.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(p("document.F=Object")),t.close(),t.F):h(n);for(var r=u.length;r--;)delete y.prototype[u[r]];return y()};a[f]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(d.prototype=o(t),r=new d,d.prototype=null,r[f]=t):r=y(),void 0===e?r:i(r,e)}},function(t,e,r){var n=r(0),o=r(30),i=n.String;t.exports=function(t){if("Symbol"===o(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},function(e,r){e.exports=t},function(t,e,r){var n,o,i,u=r(101),a=r(0),c=r(1),l=r(8),s=r(16),f=r(6),d=r(40),p=r(35),h=r(24),y=a.TypeError,v=a.WeakMap;if(u||d.state){var g=d.state||(d.state=new v),b=c(g.get),m=c(g.has),_=c(g.set);n=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=p("state");h[x]=!0,n=function(t,e){if(f(t,x))throw new y("Object already initialized");return e.facade=t,s(t,x,e),e},o=function(t){return f(t,x)?t[x]:{}},i=function(t){return f(t,x)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!l(e)||(r=o(e)).type!==t)throw y("Incompatible receiver, "+t+" required");return r}}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports={}},function(t,e,r){var n=r(7),o=r(11),i=r(61),u=r(23),a=r(12),c=r(28),l=r(6),s=r(63),f=Object.getOwnPropertyDescriptor;e.f=n?f:function(t,e){if(t=a(t),e=c(e),s)try{return f(t,e)}catch(t){}if(l(t,e))return u(!o(i.f,t,e),t[e])}},function(t,e,r){var n=r(1);t.exports=n({}.isPrototypeOf)},function(t,e,r){var n=r(0).TypeError;t.exports=function(t){if(null==t)throw n("Can't call method on "+t);return t}},function(t,e,r){var n=r(99),o=r(46);t.exports=function(t){var e=n(t,"string");return o(e)?e:e+""}},function(t,e,r){var n=r(18);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,r){var n=r(0),o=r(43),i=r(3),u=r(18),a=r(4)("toStringTag"),c=n.Object,l="Arguments"==u(function(){return arguments}());t.exports=o?u:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=c(t),a))?r:l?u(e):"Object"==(n=u(e))&&i(e.callee)?"Arguments":n}},function(t,e){t.exports={}},function(t,e,r){var n=r(34),o=r(40);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:n?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(t,e,r){var n=r(0),o=r(3),i=r(52),u=n.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not a function")}},function(t,e){t.exports=!1},function(t,e,r){var n=r(32),o=r(37),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){var e=+t;return e!=e||0===e?0:(e>0?n:r)(e)}},function(t,e,r){var n=r(1),o=0,i=Math.random(),u=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+u(++o+i,36)}},function(t,e,r){var n=r(1),o=r(3),i=r(40),u=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return u(t)}),t.exports=i.inspectSource},function(t,e,r){var n=r(65),o=r(48).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},function(t,e,r){var n=r(0),o=r(41),i=n["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,e,r){var n=r(0),o=Object.defineProperty;t.exports=function(t,e){try{o(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},function(t,e,r){var n=r(0),o=r(8),i=n.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},function(t,e,r){var n={};n[r(4)("toStringTag")]="z",t.exports="[object z]"===String(n)},function(t,e,r){"use strict";var n=r(28),o=r(9),i=r(23);t.exports=function(t,e,r){var u=n(e);u in t?o.f(t,u,i(0,r)):t[u]=r}},function(t,e,r){var n=r(33);t.exports=function(t,e){var r=t[e];return null==r?void 0:n(r)}},function(t,e,r){var n=r(0),o=r(13),i=r(3),u=r(26),a=r(62),c=n.Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=o("Symbol");return i(e)&&u(e.prototype,c(t))}},function(t,e,r){var n=r(1),o=r(33),i=n(n.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){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,r){var n=r(50),o=r(2);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},function(t,e,r){var n,o,i=r(0),u=r(73),a=i.process,c=i.Deno,l=a&&a.versions||c&&c.version,s=l&&l.v8;s&&(o=(n=s.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&u&&(!(n=u.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=u.match(/Chrome\/(\d+)/))&&(o=+n[1]),t.exports=o},function(t,e,r){var n=r(9).f,o=r(6),i=r(4)("toStringTag");t.exports=function(t,e,r){t&&!o(t=r?t:t.prototype,i)&&n(t,i,{configurable:!0,value:e})}},function(t,e,r){var n=r(0).String;t.exports=function(t){try{return n(t)}catch(t){return"Object"}}},function(t,e,r){var n=r(47),o=r(1),i=r(57),u=r(14),a=r(17),c=r(71),l=o([].push),s=function(t){var e=1==t,r=2==t,o=3==t,s=4==t,f=6==t,d=7==t,p=5==t||f;return function(h,y,v,g){for(var b,m,_=u(h),x=i(_),O=n(y,v),w=a(x),S=0,P=g||c,j=e?P(h,w):r||d?P(h,0):void 0;w>S;S++)if((p||S in x)&&(m=O(b=x[S],S,_),t))if(e)j[S]=m;else if(m)switch(t){case 3:return!0;case 5:return b;case 6:return S;case 2:l(j,b)}else switch(t){case 4:return!1;case 7:l(j,b)}return f?-1:o||s?s:j}};t.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}},function(t,e,r){var n=r(7),o=r(6),i=Function.prototype,u=n&&Object.getOwnPropertyDescriptor,a=o(i,"name"),c=a&&"something"===function(){}.name,l=a&&(!n||n&&u(i,"name").configurable);t.exports={EXISTS:a,PROPER:c,CONFIGURABLE:l}},function(t,e,r){var n=r(1),o=r(2),i=r(3),u=r(30),a=r(13),c=r(38),l=function(){},s=[],f=a("Reflect","construct"),d=/^\s*(?:class|function)\b/,p=n(d.exec),h=!d.exec(l),y=function(t){if(!i(t))return!1;try{return f(l,s,t),!0}catch(t){return!1}};t.exports=!f||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||!!p(d,c(t))}:y},function(t,e,r){var n=r(36),o=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):i(r,e)}},function(t,e,r){var n=r(0),o=r(1),i=r(2),u=r(18),a=n.Object,c=o("".split);t.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==u(t)?c(t,""):a(t)}:a},function(t,e,r){var n=r(65),o=r(48);t.exports=Object.keys||function(t){return n(t,o)}},function(t,e,r){"use strict";var n=r(12),o=r(104),i=r(31),u=r(22),a=r(69),c=u.set,l=u.getterFor("Array Iterator");t.exports=a(Array,"Array",(function(t,e){c(this,{type:"Array Iterator",target:n(t),index:0,kind:e})}),(function(){var t=l(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,e,r){var n=r(43),o=r(15),i=r(103);n||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,e,r){"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!n.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:n},function(t,e,r){var n=r(49);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,r){var n=r(7),o=r(2),i=r(42);t.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e,r){var n=r(5),o=r(7);n({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:r(9).f})},function(t,e,r){var n=r(1),o=r(6),i=r(12),u=r(87).indexOf,a=r(24),c=n([].push);t.exports=function(t,e){var r,n=i(t),l=0,s=[];for(r in n)!o(a,r)&&o(n,r)&&c(s,r);for(;e.length>l;)o(n,r=e[l++])&&(~u(s,r)||c(s,r));return s}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,r){var n=r(2),o=r(4),i=r(50),u=o("species");t.exports=function(t){return i>=51||!n((function(){var e=[];return(e.constructor={})[u]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,r){var n=r(0),o=r(6),i=r(3),u=r(14),a=r(35),c=r(108),l=a("IE_PROTO"),s=n.Object,f=s.prototype;t.exports=c?s.getPrototypeOf:function(t){var e=u(t);if(o(e,l))return e[l];var r=e.constructor;return i(r)&&e instanceof r?r.prototype:e instanceof s?f:null}},function(t,e,r){"use strict";var n=r(5),o=r(11),i=r(34),u=r(54),a=r(3),c=r(116),l=r(68),s=r(86),f=r(51),d=r(16),p=r(15),h=r(4),y=r(31),v=r(88),g=u.PROPER,b=u.CONFIGURABLE,m=v.IteratorPrototype,_=v.BUGGY_SAFARI_ITERATORS,x=h("iterator"),O=function(){return this};t.exports=function(t,e,r,u,h,v,w){c(r,e,u);var S,P,j,E=function(t){if(t===h&&I)return I;if(!_&&t in R)return R[t];switch(t){case"keys":case"values":case"entries":return function(){return new r(this,t)}}return function(){return new r(this)}},k=e+" Iterator",M=!1,R=t.prototype,A=R[x]||R["@@iterator"]||h&&R[h],I=!_&&A||E(h),T="Array"==e&&R.entries||A;if(T&&(S=l(T.call(new t)))!==Object.prototype&&S.next&&(i||l(S)===m||(s?s(S,m):a(S[x])||p(S,x,O)),f(S,k,!0,!0),i&&(y[k]=O)),g&&"values"==h&&A&&"values"!==A.name&&(!i&&b?d(R,"name","values"):(M=!0,I=function(){return o(A,this)})),h)if(P={values:E("values"),keys:v?I:E("keys"),entries:E("entries")},w)for(j in P)(_||M||!(j in R))&&p(R,j,P[j]);else n({target:e,proto:!0,forced:_||M},P);return i&&!w||R[x]===I||p(R,x,I,{name:h}),y[e]=I,P}},function(t,e,r){var n=r(6),o=r(85),i=r(25),u=r(9);t.exports=function(t,e){for(var r=o(e),a=u.f,c=i.f,l=0;l<r.length;l++){var s=r[l];n(t,s)||a(t,s,c(e,s))}}},function(t,e,r){var n=r(102);t.exports=function(t,e){return new(n(t))(0===e?0:e)}},function(t,e,r){var n=r(1);t.exports=n([].slice)},function(t,e,r){var n=r(13);t.exports=n("navigator","userAgent")||""},function(t,e,r){"use strict";var n=r(53).forEach,o=r(79)("forEach");t.exports=o?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e,r){var n=r(2),o=r(3),i=/#|\.prototype\./,u=function(t,e){var r=c[a(t)];return r==s||r!=l&&(o(e)?n(e):!!e)},a=u.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=u.data={},l=u.NATIVE="N",s=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,r){var n=r(42)("span").classList,o=n&&n.constructor&&n.constructor.prototype;t.exports=o===Object.prototype?void 0:o},function(t,e,r){"use strict";var n=r(105).charAt,o=r(20),i=r(22),u=r(69),a=i.set,c=i.getterFor("String Iterator");u(String,"String",(function(t){a(this,{type:"String Iterator",string:o(t),index:0})}),(function(){var t,e=c(this),r=e.string,o=e.index;return o>=r.length?{value:void 0,done:!0}:(t=n(r,o),e.index+=t.length,{value:t,done:!1})}))},function(t,e,r){"use strict";var n=r(2);t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){throw 1},1)}))}},function(t,e,r){var n=r(30),o=r(45),i=r(31),u=r(4)("iterator");t.exports=function(t){if(null!=t)return o(t,u)||o(t,"@@iterator")||i[n(t)]}},function(t,e,r){var n=r(0),o=r(76),i=r(77),u=r(59),a=r(16),c=r(4),l=c("iterator"),s=c("toStringTag"),f=u.values,d=function(t,e){if(t){if(t[l]!==f)try{a(t,l,f)}catch(e){t[l]=f}if(t[s]||a(t,s,e),o[e])for(var r in u)if(t[r]!==u[r])try{a(t,r,u[r])}catch(e){t[r]=u[r]}}};for(var p in o)d(n[p]&&n[p].prototype,p);d(i,"DOMTokenList")},function(t,e,r){var n=r(36),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},function(t,e){var r=Function.prototype,n=r.apply,o=r.bind,i=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(o?i.bind(n):function(){return i.apply(n,arguments)})},function(t,e,r){"use strict";var n=r(5),o=r(0),i=r(13),u=r(83),a=r(11),c=r(1),l=r(34),s=r(7),f=r(49),d=r(2),p=r(6),h=r(29),y=r(3),v=r(8),g=r(26),b=r(46),m=r(10),_=r(14),x=r(12),O=r(28),w=r(20),S=r(23),P=r(19),j=r(58),E=r(39),k=r(106),M=r(66),R=r(25),A=r(9),I=r(61),T=r(72),C=r(15),N=r(32),D=r(35),z=r(24),F=r(37),G=r(4),L=r(93),B=r(94),W=r(51),H=r(22),Y=r(53).forEach,X=D("hidden"),U=G("toPrimitive"),V=H.set,$=H.getterFor("Symbol"),Z=Object.prototype,K=o.Symbol,q=K&&K.prototype,J=o.TypeError,Q=o.QObject,tt=i("JSON","stringify"),et=R.f,rt=A.f,nt=k.f,ot=I.f,it=c([].push),ut=N("symbols"),at=N("op-symbols"),ct=N("string-to-symbol-registry"),lt=N("symbol-to-string-registry"),st=N("wks"),ft=!Q||!Q.prototype||!Q.prototype.findChild,dt=s&&d((function(){return 7!=P(rt({},"a",{get:function(){return rt(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=et(Z,e);n&&delete Z[e],rt(t,e,r),n&&t!==Z&&rt(Z,e,n)}:rt,pt=function(t,e){var r=ut[t]=P(q);return V(r,{type:"Symbol",tag:t,description:e}),s||(r.description=e),r},ht=function(t,e,r){t===Z&&ht(at,e,r),m(t);var n=O(e);return m(r),p(ut,n)?(r.enumerable?(p(t,X)&&t[X][n]&&(t[X][n]=!1),r=P(r,{enumerable:S(0,!1)})):(p(t,X)||rt(t,X,S(1,{})),t[X][n]=!0),dt(t,n,r)):rt(t,n,r)},yt=function(t,e){m(t);var r=x(e),n=j(r).concat(mt(r));return Y(n,(function(e){s&&!a(vt,r,e)||ht(t,e,r[e])})),t},vt=function(t){var e=O(t),r=a(ot,this,e);return!(this===Z&&p(ut,e)&&!p(at,e))&&(!(r||!p(this,e)||!p(ut,e)||p(this,X)&&this[X][e])||r)},gt=function(t,e){var r=x(t),n=O(e);if(r!==Z||!p(ut,n)||p(at,n)){var o=et(r,n);return!o||!p(ut,n)||p(r,X)&&r[X][n]||(o.enumerable=!0),o}},bt=function(t){var e=nt(x(t)),r=[];return Y(e,(function(t){p(ut,t)||p(z,t)||it(r,t)})),r},mt=function(t){var e=t===Z,r=nt(e?at:x(t)),n=[];return Y(r,(function(t){!p(ut,t)||e&&!p(Z,t)||it(n,ut[t])})),n};(f||(C(q=(K=function(){if(g(q,this))throw J("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?w(arguments[0]):void 0,e=F(t),r=function(t){this===Z&&a(r,at,t),p(this,X)&&p(this[X],e)&&(this[X][e]=!1),dt(this,e,S(1,t))};return s&&ft&&dt(Z,e,{configurable:!0,set:r}),pt(e,t)}).prototype,"toString",(function(){return $(this).tag})),C(K,"withoutSetter",(function(t){return pt(F(t),t)})),I.f=vt,A.f=ht,R.f=gt,E.f=k.f=bt,M.f=mt,L.f=function(t){return pt(G(t),t)},s&&(rt(q,"description",{configurable:!0,get:function(){return $(this).description}}),l||C(Z,"propertyIsEnumerable",vt,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!f,sham:!f},{Symbol:K}),Y(j(st),(function(t){B(t)})),n({target:"Symbol",stat:!0,forced:!f},{for:function(t){var e=w(t);if(p(ct,e))return ct[e];var r=K(e);return ct[e]=r,lt[r]=e,r},keyFor:function(t){if(!b(t))throw J(t+" is not a symbol");if(p(lt,t))return lt[t]},useSetter:function(){ft=!0},useSimple:function(){ft=!1}}),n({target:"Object",stat:!0,forced:!f,sham:!s},{create:function(t,e){return void 0===e?P(t):yt(P(t),e)},defineProperty:ht,defineProperties:yt,getOwnPropertyDescriptor:gt}),n({target:"Object",stat:!0,forced:!f},{getOwnPropertyNames:bt,getOwnPropertySymbols:mt}),n({target:"Object",stat:!0,forced:d((function(){M.f(1)}))},{getOwnPropertySymbols:function(t){return M.f(_(t))}}),tt)&&n({target:"JSON",stat:!0,forced:!f||d((function(){var t=K();return"[null]"!=tt([t])||"{}"!=tt({a:t})||"{}"!=tt(Object(t))}))},{stringify:function(t,e,r){var n=T(arguments),o=e;if((v(e)||void 0!==t)&&!b(t))return h(e)||(e=function(t,e){if(y(o)&&(e=a(o,this,t,e)),!b(e))return e}),n[1]=e,u(tt,null,n)}});if(!q[U]){var _t=q.valueOf;C(q,U,(function(t){return a(_t,this)}))}W(K,"Symbol"),z[X]=!0},function(t,e,r){var n=r(13),o=r(1),i=r(39),u=r(66),a=r(10),c=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(a(t)),r=u.f;return r?c(e,r(t)):e}},function(t,e,r){var n=r(1),o=r(10),i=r(117);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return o(r),i(n),e?t(r,n):r.__proto__=n,r}}():void 0)},function(t,e,r){var n=r(12),o=r(56),i=r(17),u=function(t){return function(e,r,u){var a,c=n(e),l=i(c),s=o(u,l);if(t&&r!=r){for(;l>s;)if((a=c[s++])!=a)return!0}else for(;l>s;s++)if((t||s in c)&&c[s]===r)return t||s||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},function(t,e,r){"use strict";var n,o,i,u=r(2),a=r(3),c=r(19),l=r(68),s=r(15),f=r(4),d=r(34),p=f("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(n=o):h=!0),null==n||u((function(){var t={};return n[p].call(t)!==t}))?n={}:d&&(n=c(n)),a(n[p])||s(n,p,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:h}},function(t,e,r){"use strict";var n=r(5),o=r(7),i=r(0),u=r(1),a=r(6),c=r(3),l=r(26),s=r(20),f=r(9).f,d=r(70),p=i.Symbol,h=p&&p.prototype;if(o&&c(p)&&(!("description"in h)||void 0!==p().description)){var y={},v=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:s(arguments[0]),e=l(h,this)?new p(t):void 0===t?p():p(t);return""===t&&(y[e]=!0),e};d(v,p),v.prototype=h,h.constructor=v;var g="Symbol(test)"==String(p("test")),b=u(h.toString),m=u(h.valueOf),_=/^Symbol\((.*)\)[^)]+$/,x=u("".replace),O=u("".slice);f(h,"description",{configurable:!0,get:function(){var t=m(this),e=b(t);if(a(y,t))return"";var r=g?O(e,7,-1):x(e,_,"$1");return""===r?void 0:r}}),n({global:!0,forced:!0},{Symbol:v})}},function(t,e,r){r(94)("iterator")},function(t,e,r){"use strict";var n,o,i=r(11),u=r(1),a=r(20),c=r(114),l=r(118),s=r(32),f=r(19),d=r(22).get,p=r(121),h=r(122),y=s("native-string-replace",String.prototype.replace),v=RegExp.prototype.exec,g=v,b=u("".charAt),m=u("".indexOf),_=u("".replace),x=u("".slice),O=(o=/b*/g,i(v,n=/a/,"a"),i(v,o,"a"),0!==n.lastIndex||0!==o.lastIndex),w=l.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];(O||S||w||p||h)&&(g=function(t){var e,r,n,o,u,l,s,p=this,h=d(p),P=a(t),j=h.raw;if(j)return j.lastIndex=p.lastIndex,e=i(g,j,P),p.lastIndex=j.lastIndex,e;var E=h.groups,k=w&&p.sticky,M=i(c,p),R=p.source,A=0,I=P;if(k&&(M=_(M,"y",""),-1===m(M,"g")&&(M+="g"),I=x(P,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==b(P,p.lastIndex-1))&&(R="(?: "+R+")",I=" "+I,A++),r=new RegExp("^(?:"+R+")",M)),S&&(r=new RegExp("^"+R+"$(?!\\s)",M)),O&&(n=p.lastIndex),o=i(v,k?r:p,I),k?o?(o.input=x(o.input,A),o[0]=x(o[0],A),o.index=p.lastIndex,p.lastIndex+=o[0].length):p.lastIndex=0:O&&o&&(p.lastIndex=p.global?o.index+o[0].length:n),S&&o&&o.length>1&&i(y,o[0],r,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(o[u]=void 0)})),o&&E)for(o.groups=l=f(null),u=0;u<E.length;u++)l[(s=E[u])[0]]=o[s[1]];return o}),t.exports=g},function(t,e,r){var n=r(7),o=r(9),i=r(10),u=r(12),a=r(58);t.exports=n?Object.defineProperties:function(t,e){i(t);for(var r,n=u(e),c=a(e),l=c.length,s=0;l>s;)o.f(t,r=c[s++],n[r]);return t}},function(t,e,r){var n=r(4);e.f=n},function(t,e,r){var n=r(123),o=r(6),i=r(93),u=r(9).f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});o(e,t)||u(e,t,{value:i.f(t)})}},function(t,e,r){"use strict";var n=r(5),o=r(74);n({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,e,r){var n=r(0),o=r(76),i=r(77),u=r(74),a=r(16),c=function(t){if(t&&t.forEach!==u)try{a(t,"forEach",u)}catch(e){t.forEach=u}};for(var l in o)o[l]&&c(n[l]&&n[l].prototype);c(i)},function(t,e,r){"use strict";var n=r(5),o=r(91);n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){var n=r(0),o=r(11),i=r(8),u=r(46),a=r(45),c=r(100),l=r(4),s=n.TypeError,f=l("toPrimitive");t.exports=function(t,e){if(!i(t)||u(t))return t;var r,n=a(t,f);if(n){if(void 0===e&&(e="default"),r=o(n,t,e),!i(r)||u(r))return r;throw s("Can't convert object to primitive value")}return void 0===e&&(e="number"),c(t,e)}},function(t,e,r){var n=r(0),o=r(11),i=r(3),u=r(8),a=n.TypeError;t.exports=function(t,e){var r,n;if("string"===e&&i(r=t.toString)&&!u(n=o(r,t)))return n;if(i(r=t.valueOf)&&!u(n=o(r,t)))return n;if("string"!==e&&i(r=t.toString)&&!u(n=o(r,t)))return n;throw a("Can't convert object to primitive value")}},function(t,e,r){var n=r(0),o=r(3),i=r(38),u=n.WeakMap;t.exports=o(u)&&/native code/.test(i(u))},function(t,e,r){var n=r(0),o=r(29),i=r(55),u=r(8),a=r(4)("species"),c=n.Array;t.exports=function(t){var e;return o(t)&&(e=t.constructor,(i(e)&&(e===c||o(e.prototype))||u(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?c:e}},function(t,e,r){"use strict";var n=r(43),o=r(30);t.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,e,r){var n=r(4),o=r(19),i=r(9),u=n("unscopables"),a=Array.prototype;null==a[u]&&i.f(a,u,{configurable:!0,value:o(null)}),t.exports=function(t){a[u][t]=!0}},function(t,e,r){var n=r(1),o=r(36),i=r(20),u=r(27),a=n("".charAt),c=n("".charCodeAt),l=n("".slice),s=function(t){return function(e,r){var n,s,f=i(u(e)),d=o(r),p=f.length;return d<0||d>=p?t?"":void 0:(n=c(f,d))<55296||n>56319||d+1===p||(s=c(f,d+1))<56320||s>57343?t?a(f,d):n:t?l(f,d,d+2):s-56320+(n-55296<<10)+65536}};t.exports={codeAt:s(!1),charAt:s(!0)}},function(t,e,r){var n=r(18),o=r(12),i=r(39).f,u=r(113),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"Window"==n(t)?function(t){try{return i(t)}catch(t){return u(a)}}(t):i(o(t))}},function(t,e,r){var n=r(13);t.exports=n("document","documentElement")},function(t,e,r){var n=r(2);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,r){var n=r(4),o=r(31),i=n("iterator"),u=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||u[i]===t)}},function(t,e,r){var n=r(0),o=r(11),i=r(33),u=r(10),a=r(52),c=r(80),l=n.TypeError;t.exports=function(t,e){var r=arguments.length<2?c(t):e;if(i(r))return u(o(r,t));throw l(a(t)+" is not iterable")}},function(t,e,r){var n=r(11),o=r(10),i=r(45);t.exports=function(t,e,r){var u,a;o(t);try{if(!(u=i(t,"return"))){if("throw"===e)throw r;return r}u=n(u,t)}catch(t){a=!0,u=t}if("throw"===e)throw r;if(a)throw u;return o(u),r}},function(t,e,r){var n=r(4)("iterator"),o=!1;try{var i=0,u={next:function(){return{done:!!i++}},return:function(){o=!0}};u[n]=function(){return this},Array.from(u,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},t(i)}catch(t){}return r}},function(t,e,r){var n=r(0),o=r(56),i=r(17),u=r(44),a=n.Array,c=Math.max;t.exports=function(t,e,r){for(var n=i(t),l=o(e,n),s=o(void 0===r?n:r,n),f=a(c(s-l,0)),d=0;l<s;l++,d++)u(f,d,t[l]);return f.length=d,f}},function(t,e,r){"use strict";var n=r(10);t.exports=function(){var t=n(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,r){var n=r(5),o=r(2),i=r(12),u=r(25).f,a=r(7),c=o((function(){u(1)}));n({target:"Object",stat:!0,forced:!a||c,sham:!a},{getOwnPropertyDescriptor:function(t,e){return u(i(t),e)}})},function(t,e,r){"use strict";var n=r(88).IteratorPrototype,o=r(19),i=r(23),u=r(51),a=r(31),c=function(){return this};t.exports=function(t,e,r,l){var s=e+" Iterator";return t.prototype=o(n,{next:i(+!l,r)}),u(t,s,!1,!0),a[s]=c,t}},function(t,e,r){var n=r(0),o=r(3),i=n.String,u=n.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,r){var n=r(2),o=r(0).RegExp,i=n((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),u=i||n((function(){return!o("a","y").sticky})),a=i||n((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:a,MISSED_STICKY:u,UNSUPPORTED_Y:i}},function(t,e,r){var n=r(0),o=r(47),i=r(11),u=r(10),a=r(52),c=r(109),l=r(17),s=r(26),f=r(110),d=r(80),p=r(111),h=n.TypeError,y=function(t,e){this.stopped=t,this.result=e},v=y.prototype;t.exports=function(t,e,r){var n,g,b,m,_,x,O,w=r&&r.that,S=!(!r||!r.AS_ENTRIES),P=!(!r||!r.IS_ITERATOR),j=!(!r||!r.INTERRUPTED),E=o(e,w),k=function(t){return n&&p(n,"normal",t),new y(!0,t)},M=function(t){return S?(u(t),j?E(t[0],t[1],k):E(t[0],t[1])):j?E(t,k):E(t)};if(P)n=t;else{if(!(g=d(t)))throw h(a(t)+" is not iterable");if(c(g)){for(b=0,m=l(t);m>b;b++)if((_=M(t[b]))&&s(v,_))return _;return new y(!1)}n=f(t,g)}for(x=n.next;!(O=i(x,n)).done;){try{_=M(O.value)}catch(t){p(n,"throw",t)}if("object"==typeof _&&_&&s(v,_))return _}return new y(!1)}},function(t,e,r){var n=r(0),o=r(26),i=n.TypeError;t.exports=function(t,e){if(o(e,t))return t;throw i("Incorrect invocation")}},function(t,e,r){var n=r(2),o=r(0).RegExp;t.exports=n((function(){var t=o(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},function(t,e,r){var n=r(2),o=r(0).RegExp;t.exports=n((function(){var t=o("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},function(t,e,r){var n=r(0);t.exports=n},function(t,e,r){var n=r(5),o=r(14),i=r(58);n({target:"Object",stat:!0,forced:r(2)((function(){i(1)}))},{keys:function(t){return i(o(t))}})},function(t,e,r){r(5)({target:"Object",stat:!0},{setPrototypeOf:r(86)})},function(t,e,r){var n=r(5),o=r(2),i=r(14),u=r(68),a=r(108);n({target:"Object",stat:!0,forced:o((function(){u(1)})),sham:!a},{getPrototypeOf:function(t){return u(i(t))}})},function(t,e,r){var n=r(5),o=r(13),i=r(83),u=r(155),a=r(150),c=r(10),l=r(8),s=r(19),f=r(2),d=o("Reflect","construct"),p=Object.prototype,h=[].push,y=f((function(){function t(){}return!(d((function(){}),[],t)instanceof t)})),v=!f((function(){d((function(){}))})),g=y||v;n({target:"Reflect",stat:!0,forced:g,sham:g},{construct:function(t,e){a(t),c(e);var r=arguments.length<3?t:a(arguments[2]);if(v&&!y)return d(t,e,r);if(t==r){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 n=[null];return i(h,n,e),new(i(u,t,n))}var o=r.prototype,f=s(l(o)?o:p),g=i(t,f,e);return l(g)?g:f}})},function(t,e,r){r(5)({target:"Object",stat:!0,sham:!r(7)},{create:r(19)})},function(t,e,r){r(5)({target:"Array",stat:!0},{isArray:r(29)})},function(t,e,r){var n=r(5),o=r(1),i=r(24),u=r(8),a=r(6),c=r(9).f,l=r(39),s=r(106),f=r(147),d=r(37),p=r(149),h=!1,y=d("meta"),v=0,g=function(t){c(t,y,{value:{objectID:"O"+v++,weakData:{}}})},b=t.exports={enable:function(){b.enable=function(){},h=!0;var t=l.f,e=o([].splice),r={};r[y]=1,t(r).length&&(l.f=function(r){for(var n=t(r),o=0,i=n.length;o<i;o++)if(n[o]===y){e(n,o,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:s.f}))},fastKey:function(t,e){if(!u(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,y)){if(!f(t))return"F";if(!e)return"E";g(t)}return t[y].objectID},getWeakData:function(t,e){if(!a(t,y)){if(!f(t))return!0;if(!e)return!1;g(t)}return t[y].weakData},onFreeze:function(t){return p&&h&&f(t)&&!a(t,y)&&g(t),t}};i[y]=!0},function(t,e,r){"use strict";var n=r(5),o=r(0),i=r(2),u=r(29),a=r(8),c=r(14),l=r(17),s=r(44),f=r(71),d=r(67),p=r(4),h=r(50),y=p("isConcatSpreadable"),v=o.TypeError,g=h>=51||!i((function(){var t=[];return t[y]=!1,t.concat()[0]!==t})),b=d("concat"),m=function(t){if(!a(t))return!1;var e=t[y];return void 0!==e?!!e:u(t)};n({target:"Array",proto:!0,forced:!g||!b},{concat:function(t){var e,r,n,o,i,u=c(this),a=f(u,0),d=0;for(e=-1,n=arguments.length;e<n;e++)if(m(i=-1===e?u:arguments[e])){if(d+(o=l(i))>9007199254740991)throw v("Maximum allowed index exceeded");for(r=0;r<o;r++,d++)r in i&&s(a,d,i[r])}else{if(d>=9007199254740991)throw v("Maximum allowed index exceeded");s(a,d++,i)}return a.length=d,a}})},function(t,e,r){var n=r(5),o=r(139);n({target:"Array",stat:!0,forced:!r(112)((function(t){Array.from(t)}))},{from:o})},,function(t,e,r){"use strict";var n=r(5),o=r(53).filter;n({target:"Array",proto:!0,forced:!r(67)("filter")},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){var n=r(5),o=r(7),i=r(85),u=r(12),a=r(25),c=r(44);n({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){for(var e,r,n=u(t),o=a.f,l=i(n),s={},f=0;l.length>f;)void 0!==(r=o(n,e=l[f++]))&&c(s,e,r);return s}})},function(t,e,r){var n=r(5),o=r(7);n({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperties:r(92)})},function(t,e,r){"use strict";var n=r(5),o=r(0),i=r(29),u=r(55),a=r(8),c=r(56),l=r(17),s=r(12),f=r(44),d=r(4),p=r(67),h=r(72),y=p("slice"),v=d("species"),g=o.Array,b=Math.max;n({target:"Array",proto:!0,forced:!y},{slice:function(t,e){var r,n,o,d=s(this),p=l(d),y=c(t,p),m=c(void 0===e?p:e,p);if(i(d)&&(r=d.constructor,(u(r)&&(r===g||i(r.prototype))||a(r)&&null===(r=r[v]))&&(r=void 0),r===g||void 0===r))return h(d,y,m);for(n=new(void 0===r?g:r)(b(m-y,0)),o=0;y<m;y++,o++)y in d&&f(n,o,d[y]);return n.length=o,n}})},function(t,e,r){var n=r(7),o=r(54).EXISTS,i=r(1),u=r(9).f,a=Function.prototype,c=i(a.toString),l=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,s=i(l.exec);n&&!o&&u(a,"name",{configurable:!0,get:function(){try{return s(l,c(this))[1]}catch(t){return""}}})},function(t,e,r){"use strict";var n=r(0),o=r(47),i=r(11),u=r(14),a=r(140),c=r(109),l=r(55),s=r(17),f=r(44),d=r(110),p=r(80),h=n.Array;t.exports=function(t){var e=u(t),r=l(this),n=arguments.length,y=n>1?arguments[1]:void 0,v=void 0!==y;v&&(y=o(y,n>2?arguments[2]:void 0));var g,b,m,_,x,O,w=p(e),S=0;if(!w||this==h&&c(w))for(g=s(e),b=r?new this(g):h(g);g>S;S++)O=v?y(e[S],S):e[S],f(b,S,O);else for(x=(_=d(e,w)).next,b=r?new this:[];!(m=i(x,_)).done;S++)O=v?a(_,y,[m.value,S],!0):m.value,f(b,S,O);return b.length=S,b}},function(t,e,r){var n=r(10),o=r(111);t.exports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(e){o(t,"throw",e)}}},function(t,e,r){var n=r(15);t.exports=function(t,e,r){for(var o in e)n(t,o,e[o],r);return t}},function(t,e,r){"use strict";var n=r(13),o=r(9),i=r(4),u=r(7),a=i("species");t.exports=function(t){var e=n(t),r=o.f;u&&e&&!e[a]&&r(e,a,{configurable:!0,get:function(){return this}})}},function(t,e,r){"use strict";var n=r(5),o=r(0),i=r(1),u=r(75),a=r(15),c=r(130),l=r(119),s=r(120),f=r(3),d=r(8),p=r(2),h=r(112),y=r(51),v=r(145);t.exports=function(t,e,r){var g=-1!==t.indexOf("Map"),b=-1!==t.indexOf("Weak"),m=g?"set":"add",_=o[t],x=_&&_.prototype,O=_,w={},S=function(t){var e=i(x[t]);a(x,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(b&&!d(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return b&&!d(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(b&&!d(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this})};if(u(t,!f(_)||!(b||x.forEach&&!p((function(){(new _).entries().next()})))))O=r.getConstructor(e,t,g,m),c.enable();else if(u(t,!0)){var P=new O,j=P[m](b?{}:-0,1)!=P,E=p((function(){P.has(1)})),k=h((function(t){new _(t)})),M=!b&&p((function(){for(var t=new _,e=5;e--;)t[m](e,e);return!t.has(-0)}));k||((O=e((function(t,e){s(t,x);var r=v(new _,t,O);return null!=e&&l(e,r[m],{that:r,AS_ENTRIES:g}),r}))).prototype=x,x.constructor=O),(E||M)&&(S("delete"),S("has"),g&&S("get")),(M||j)&&S(m),b&&x.clear&&delete x.clear}return w[t]=O,n({global:!0,forced:O!=_},w),y(O,t),b||r.setStrong(O,t,g),O}},function(t,e,r){"use strict";var n=r(9).f,o=r(19),i=r(141),u=r(47),a=r(120),c=r(119),l=r(69),s=r(142),f=r(7),d=r(130).fastKey,p=r(22),h=p.set,y=p.getterFor;t.exports={getConstructor:function(t,e,r,l){var s=t((function(t,n){a(t,p),h(t,{type:e,index:o(null),first:void 0,last:void 0,size:0}),f||(t.size=0),null!=n&&c(n,t[l],{that:t,AS_ENTRIES:r})})),p=s.prototype,v=y(e),g=function(t,e,r){var n,o,i=v(t),u=b(t,e);return u?u.value=r:(i.last=u={index:o=d(e,!0),key:e,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=u),n&&(n.next=u),f?i.size++:t.size++,"F"!==o&&(i.index[o]=u)),t},b=function(t,e){var r,n=v(t),o=d(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==e)return r};return i(p,{clear:function(){for(var t=v(this),e=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete e[r.index],r=r.next;t.first=t.last=void 0,f?t.size=0:this.size=0},delete:function(t){var e=v(this),r=b(this,t);if(r){var n=r.next,o=r.previous;delete e.index[r.index],r.removed=!0,o&&(o.next=n),n&&(n.previous=o),e.first==r&&(e.first=n),e.last==r&&(e.last=o),f?e.size--:this.size--}return!!r},forEach:function(t){for(var e,r=v(this),n=u(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!b(this,t)}}),i(p,r?{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)}}),f&&n(p,"size",{get:function(){return v(this).size}}),s},setStrong:function(t,e,r){var n=e+" Iterator",o=y(e),i=y(n);l(t,e,(function(t,e){h(this,{type:n,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?"keys"==e?{value:r.key,done:!1}:"values"==e?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),r?"entries":"values",!r,!0),s(e)}}},function(t,e,r){var n=r(3),o=r(8),i=r(86);t.exports=function(t,e,r){var u,a;return i&&n(u=e.constructor)&&u!==r&&o(a=u.prototype)&&a!==r.prototype&&i(t,a),t}},,function(t,e,r){var n=r(2),o=r(8),i=r(18),u=r(148),a=Object.isExtensible,c=n((function(){a(1)}));t.exports=c||u?function(t){return!!o(t)&&((!u||"ArrayBuffer"!=i(t))&&(!a||a(t)))}:a},function(t,e,r){var n=r(2);t.exports=n((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},function(t,e,r){var n=r(2);t.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(t,e,r){var n=r(0),o=r(55),i=r(52),u=n.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not a constructor")}},,,,,function(t,e,r){"use strict";var n=r(0),o=r(1),i=r(33),u=r(8),a=r(6),c=r(72),l=n.Function,s=o([].concat),f=o([].join),d={},p=function(t,e,r){if(!a(d,e)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";d[e]=l("C,a","return new C("+f(n,",")+")")}return d[e](t,r)};t.exports=l.bind||function(t){var e=i(this),r=e.prototype,n=c(arguments,1),o=function(){var r=s(n,c(arguments));return this instanceof o?p(e,r.length,r):e.apply(t,r)};return u(r)&&(o.prototype=r),o}},,function(t,e,r){"use strict";var n=r(5),o=r(53).map;n({target:"Array",proto:!0,forced:!r(67)("map")},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},,function(t,e,r){"use strict";r(143)("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),r(144))},,function(t,e,r){var n=r(5),o=r(11),i=r(8),u=r(10),a=r(182),c=r(25),l=r(68);n({target:"Reflect",stat:!0},{get:function t(e,r){var n,s,f=arguments.length<3?e:arguments[2];return u(e)===f?e[r]:(n=c.f(e,r))?a(n)?n.value:void 0===n.get?void 0:o(n.get,f):i(s=l(e))?t(s,r,f):void 0}})},,,function(t,e,r){"use strict";var n=r(5),o=r(1),i=r(87).indexOf,u=r(79),a=o([].indexOf),c=!!a&&1/a([1],1,-0)<0,l=u("indexOf");n({target:"Array",proto:!0,forced:c||!l},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return c?a(this,t,e)||0:i(this,t,e)}})},function(t,e,r){"use strict";r(143)("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),r(144))},,,function(t,e,r){var n=r(5),o=r(176);n({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(t,e,r){"use strict";var n=r(5),o=r(1),i=r(57),u=r(12),a=r(79),c=o([].join),l=i!=Object,s=a("join",",");n({target:"Array",proto:!0,forced:l||!s},{join:function(t){return c(u(this),void 0===t?",":t)}})},,,,,,,function(t,e,r){"use strict";var n=r(7),o=r(1),i=r(11),u=r(2),a=r(58),c=r(66),l=r(61),s=r(14),f=r(57),d=Object.assign,p=Object.defineProperty,h=o([].concat);t.exports=!d||u((function(){if(n&&1!==d({b:1},d(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol();return t[r]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=d({},t)[r]||"abcdefghijklmnopqrst"!=a(d({},e)).join("")}))?function(t,e){for(var r=s(t),o=arguments.length,u=1,d=c.f,p=l.f;o>u;)for(var y,v=f(arguments[u++]),g=d?h(a(v),d(v)):a(v),b=g.length,m=0;b>m;)y=g[m++],n&&!i(p,v,y)||(r[y]=v[y]);return r}:d},function(t,e,r){"use strict";var n=r(5),o=r(53).find,i=r(104),u=!0;"find"in[]&&Array(1).find((function(){u=!1})),n({target:"Array",proto:!0,forced:u},{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("find")},,,,,function(t,e,r){var n=r(6);t.exports=function(t){return void 0!==t&&(n(t,"value")||n(t,"writable"))}},,function(t,e,r){"use strict";r.r(e),r.d(e,"NodeResize",(function(){return se})),r.d(e,"RectResize",(function(){return Ot})),r.d(e,"EllipseResize",(function(){return Nt})),r.d(e,"DiamondResize",(function(){return Kt})),r.d(e,"HtmlResize",(function(){return le}));r(125),r(126),r(60),r(127),r(128),r(161),r(115),r(64),r(84),r(89),r(90),r(59),r(78),r(81);var n,o,i,u,a,c,l=r(21),s=(r(157),r(168),{}),f=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(t,e){for(var r in e)t[r]=e[r];return t}function h(t){var e=t.parentNode;e&&e.removeChild(t)}function y(t,e,r){var o,i,u,a={};for(u in e)"key"==u?o=e[u]:"ref"==u?i=e[u]:a[u]=e[u];if(arguments.length>2&&(a.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(u in t.defaultProps)void 0===a[u]&&(a[u]=t.defaultProps[u]);return v(t,a,o,i,null)}function v(t,e,r,n,u){var a={type:t,props:e,key:r,ref:n,__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(a),a}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 r;e<t.__k.length;e++)if(null!=(r=t.__k[e])&&null!=r.__e)return r.__e;return"function"==typeof t.type?m(t):null}function _(t){var e,r;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(r=t.__k[e])&&null!=r.__e){t.__e=t.__c.base=r.__e;break}return _(t)}}function x(t){(!t.__d&&(t.__d=!0)&&u.push(t)&&!O.__r++||c!==o.debounceRendering)&&((c=o.debounceRendering)||a)(O)}function O(){for(var t;O.__r=u.length;)t=u.sort((function(t,e){return t.__v.__b-e.__v.__b})),u=[],t.some((function(t){var e,r,n,o,i,u;t.__d&&(i=(o=(e=t).__v).__e,(u=e.__P)&&(r=[],(n=p({},o)).__v=o.__v+1,R(u,o,n,e.__n,void 0!==u.ownerSVGElement,null!=o.__h?[i]:null,r,null==i?m(o):i,o.__h),A(r,o),o.__e!=i&&_(o)))}))}function w(t,e,r,n,o,i,u,a,c,l){var d,p,h,y,b,_,x,O=n&&n.__k||f,w=O.length;for(r.__k=[],d=0;d<e.length;d++)if(null!=(y=r.__k[d]=null==(y=e[d])||"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.__=r,y.__b=r.__b+1,null===(h=O[d])||h&&y.key==h.key&&y.type===h.type)O[d]=void 0;else for(p=0;p<w;p++){if((h=O[p])&&y.key==h.key&&y.type===h.type){O[p]=void 0;break}h=null}R(t,y,h=h||s,o,i,u,a,c,l),b=y.__e,(p=y.ref)&&h.ref!=p&&(x||(x=[]),h.ref&&x.push(h.ref,null,y),x.push(p,y.__c||b,y)),null!=b?(null==_&&(_=b),"function"==typeof y.type&&y.__k===h.__k?y.__d=c=S(y,c,t):c=P(t,y,h,O,b,c),"function"==typeof r.type&&(r.__d=c)):c&&h.__e==c&&c.parentNode!=t&&(c=m(h))}for(r.__e=_,d=w;d--;)null!=O[d]&&("function"==typeof r.type&&null!=O[d].__e&&O[d].__e==r.__d&&(r.__d=m(n,d+1)),C(O[d],O[d]));if(x)for(d=0;d<x.length;d++)T(x[d],x[++d],x[++d])}function S(t,e,r){for(var n,o=t.__k,i=0;o&&i<o.length;i++)(n=o[i])&&(n.__=t,e="function"==typeof n.type?S(n,e,r):P(r,n,n,o,n.__e,e));return e}function P(t,e,r,n,o,i){var u,a,c;if(void 0!==e.__d)u=e.__d,e.__d=void 0;else if(null==r||o!=i||null==o.parentNode)t:if(null==i||i.parentNode!==t)t.appendChild(o),u=null;else{for(a=i,c=0;(a=a.nextSibling)&&c<n.length;c+=2)if(a==o)break t;t.insertBefore(o,i),u=i}return void 0!==u?u:o.nextSibling}function j(t,e,r){"-"===e[0]?t.setProperty(e,r):t[e]=null==r?"":"number"!=typeof r||d.test(e)?r:r+"px"}function E(t,e,r,n,o){var i;t:if("style"===e)if("string"==typeof r)t.style.cssText=r;else{if("string"==typeof n&&(t.style.cssText=n=""),n)for(e in n)r&&e in r||j(t.style,e,"");if(r)for(e in r)n&&r[e]===n[e]||j(t.style,e,r[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]=r,r?n||t.addEventListener(e,i?M:k,i):t.removeEventListener(e,i?M:k,i);else if("dangerouslySetInnerHTML"!==e){if(o)e=e.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&e in t)try{t[e]=null==r?"":r;break t}catch(t){}"function"==typeof r||(null!=r&&(!1!==r||"a"===e[0]&&"r"===e[1])?t.setAttribute(e,r):t.removeAttribute(e))}}function k(t){this.l[t.type+!1](o.event?o.event(t):t)}function M(t){this.l[t.type+!0](o.event?o.event(t):t)}function R(t,e,r,n,i,u,a,c,l){var s,f,d,h,y,v,m,_,x,O,S,P=e.type;if(void 0!==e.constructor)return null;null!=r.__h&&(l=r.__h,c=e.__e=r.__e,e.__h=null,u=[c]),(s=o.__b)&&s(e);try{t:if("function"==typeof P){if(_=e.props,x=(s=P.contextType)&&n[s.__c],O=s?x?x.props.value:s.__:n,r.__c?m=(f=e.__c=r.__c).__=f.__E:("prototype"in P&&P.prototype.render?e.__c=f=new P(_,O):(e.__c=f=new b(_,O),f.constructor=P,f.render=N),x&&x.sub(f),f.props=_,f.state||(f.state={}),f.context=O,f.__n=n,d=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=P.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=p({},f.__s)),p(f.__s,P.getDerivedStateFromProps(_,f.__s))),h=f.props,y=f.state,d)null==P.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==P.getDerivedStateFromProps&&_!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(_,O),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(_,f.__s,O)||e.__v===r.__v){f.props=_,f.state=f.__s,e.__v!==r.__v&&(f.__d=!1),f.__v=e,e.__e=r.__e,e.__k=r.__k,e.__k.forEach((function(t){t&&(t.__=e)})),f.__h.length&&a.push(f);break t}null!=f.componentWillUpdate&&f.componentWillUpdate(_,f.__s,O),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(h,y,v)}))}f.context=O,f.props=_,f.state=f.__s,(s=o.__r)&&s(e),f.__d=!1,f.__v=e,f.__P=t,s=f.render(f.props,f.state,f.context),f.state=f.__s,null!=f.getChildContext&&(n=p(p({},n),f.getChildContext())),d||null==f.getSnapshotBeforeUpdate||(v=f.getSnapshotBeforeUpdate(h,y)),S=null!=s&&s.type===g&&null==s.key?s.props.children:s,w(t,Array.isArray(S)?S:[S],e,r,n,i,u,a,c,l),f.base=e.__e,e.__h=null,f.__h.length&&a.push(f),m&&(f.__E=f.__=null),f.__e=!1}else null==u&&e.__v===r.__v?(e.__k=r.__k,e.__e=r.__e):e.__e=I(r.__e,e,r,n,i,u,a,l);(s=o.diffed)&&s(e)}catch(t){e.__v=null,(l||null!=u)&&(e.__e=c,e.__h=!!l,u[u.indexOf(c)]=null),o.__e(t,e,r)}}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 I(t,e,r,o,i,u,a,c){var l,f,d,p=r.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,c=!1}if(null===v)p===y||c&&t.data===y||(t.data=y);else{if(u=u&&n.call(t.childNodes),f=(p=r.props||s).dangerouslySetInnerHTML,d=y.dangerouslySetInnerHTML,!c){if(null!=u)for(p={},g=0;g<t.attributes.length;g++)p[t.attributes[g].name]=t.attributes[g].value;(d||f)&&(d&&(f&&d.__html==f.__html||d.__html===t.innerHTML)||(t.innerHTML=d&&d.__html||""))}if(function(t,e,r,n,o){var i;for(i in r)"children"===i||"key"===i||i in e||E(t,i,null,r[i],n);for(i in e)o&&"function"!=typeof e[i]||"children"===i||"key"===i||"value"===i||"checked"===i||r[i]===e[i]||E(t,i,e[i],r[i],n)}(t,y,p,i,c),d)e.__k=[];else if(g=e.props.children,w(t,Array.isArray(g)?g:[g],e,r,o,i&&"foreignObject"!==v,u,a,u?u[0]:r.__k&&m(r,0),c),null!=u)for(g=u.length;g--;)null!=u[g]&&h(u[g]);c||("value"in y&&void 0!==(g=y.value)&&(g!==p.value||g!==t.value||"progress"===v&&!g)&&E(t,"value",g,p.value,!1),"checked"in y&&void 0!==(g=y.checked)&&g!==t.checked&&E(t,"checked",g,p.checked,!1))}return t}function T(t,e,r){try{"function"==typeof t?t(e):t.current=e}catch(t){o.__e(t,r)}}function C(t,e,r){var n,i;if(o.unmount&&o.unmount(t),(n=t.ref)&&(n.current&&n.current!==t.__e||T(n,null,e)),null!=(n=t.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(t){o.__e(t,e)}n.base=n.__P=null}if(n=t.__k)for(i=0;i<n.length;i++)n[i]&&C(n[i],e,"function"!=typeof t.type);r||null==t.__e||h(t.__e),t.__e=t.__d=void 0}function N(t,e,r){return this.constructor(t,r)}n=f.slice,o={__e:function(t,e){for(var r,n,o;e=e.__;)if((r=e.__c)&&!r.__)try{if((n=r.constructor)&&null!=n.getDerivedStateFromError&&(r.setState(n.getDerivedStateFromError(t)),o=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(t),o=r.__d),o)return r.__E=r}catch(e){t=e}throw t}},i=0,b.prototype.setState=function(t,e){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof t&&(t=t(p({},r),this.props)),t&&p(r,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=[],a="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,O.__r=0;var D;r(95),r(96),r(177),r(124),r(134),r(135),r(136),r(129),r(137),r(138),r(132),r(97);function z(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function F(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?z(Object(r),!0).forEach((function(e){G(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):z(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function G(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function L(t){var e=t.x,r=t.y,n=t.width,o=t.height,i=t.radius,u=t.className,a=e-n/2,c=r-o/2,s=F(F({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:a,y:c});return Object(l.h)("rect",s)}function B(t){return(B="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 W(){return(W=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function H(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],u=!0,a=!1;try{for(r=r.call(t);!(u=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==r.return||r.return()}finally{if(a)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Y(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Y(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 Y(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function X(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function U(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?X(Object(r),!0).forEach((function(e){Q(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):X(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function V(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function $(t,e){return($=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Z(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 r,n=J(t);if(e){var o=J(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return K(this,r)}}function K(t,e){if(e&&("object"===B(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return q(t)}function q(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function J(t){return(J=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Q(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,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"}(D||(D={}));var tt=l.LogicFlowUtil.StepDrag,et=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&&$(t,e)}(i,t);var e,r,n,o=Z(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),Q(q(e=o.call(this)),"updatePosition",(function(t){var r=t.deltaX,n=t.deltaY,o=e.nodeModel,i=o.x,u=o.y;e.nodeModel.x=i+r/2,e.nodeModel.y=u+n/2,e.nodeModel.moveText(r/2,n/2)})),Q(q(e),"getResize",(function(t){var e=t.index,r=t.deltaX,n=t.deltaY,o=t.width,i=t.height,u=t.PCTResizeInfo,a=t.pct,c=void 0===a?1:a,l={width:o,height:i,deltaX:r,deltaY:n};if(u){var s=0,f=0;switch(e){case 0:f=(-1*r-n)/4;break;case 1:f=(r-n)/4;break;case 2:f=(r+n)/4;break;case 3:f=(-1*r+n)/4}0!==f&&(s=Math.round(f/u.ResizeBasis.basisHeight*1e5)/1e3),u.ResizePCT.widthPCT=Math.max(Math.min(u.ResizePCT.widthPCT+s,u.ScaleLimit.maxScaleLimit),u.ScaleLimit.minScaleLimit),u.ResizePCT.hightPCT=Math.max(Math.min(u.ResizePCT.hightPCT+s,u.ScaleLimit.maxScaleLimit),u.ScaleLimit.minScaleLimit);var d=Math.round(u.ResizePCT.widthPCT*u.ResizeBasis.basisWidth/100),p=Math.round(u.ResizePCT.hightPCT*u.ResizeBasis.basisHeight/100);switch(e){case 0:r=o-d,n=i-p;break;case 1:r=d-o,n=i-p;break;case 2:r=d-o,n=p-i;break;case 3:r=o-d,n=p-i}return l.width=d,l.height=p,l.deltaX=r/c,l.deltaY=n/c,l}switch(e){case 0:l.width=o-r*c,l.height=i-n*c;break;case 1:l.width=o+r*c,l.height=i-n*c;break;case 2:l.width=o+r*c,l.height=i+n*c;break;case 3:l.width=o-r*c,l.height=i+n*c}return l})),Q(q(e),"updateEdgePointByAnchors",(function(){var t=e.nodeModel,r=t.id,n=t.anchors,o=e.getNodeEdges(r);o.sourceEdges.forEach((function(t){var e=n.find((function(e){return e.id===t.sourceAnchorId}));t.updateStartPoint({x:e.x,y:e.y})})),o.targetEdges.forEach((function(t){var e=n.find((function(e){return e.id===t.targetAnchorId}));t.updateEndPoint({x:e.x,y:e.y})}))})),Q(q(e),"updateRect",(function(t){var r=t.deltaX,n=t.deltaY,o=e.nodeModel,i=o.id,u=o.x,a=o.y,c=o.width,l=o.height,s=o.radius,f=o.PCTResizeInfo,d=q(e).index,p=e.getResize({index:d,deltaX:r,deltaY:n,width:c,height:l,PCTResizeInfo:f,pct:1}),h=e.nodeModel,y=h.minWidth,v=h.minHeight,g=h.maxWidth,b=h.maxHeight;if(p.width<y||p.width>g||p.height<v||p.height>b)e.dragHandler.cancelDrag();else{e.updatePosition({deltaX:p.deltaX,deltaY:p.deltaY}),e.nodeModel.width=p.width,e.nodeModel.height=p.height,e.nodeModel.setProperties({nodeSize:{width:p.width,height:p.height}});e.getNodeEdges(i);var m={x:u,y:a,width:c,height:l,radius:s},_={x:e.nodeModel.x,y:e.nodeModel.y,width:e.nodeModel.width,height:e.nodeModel.height,radius:s};e.updateEdgePointByAnchors(),e.eventEmit({beforeNode:m,afterNode:_})}})),Q(q(e),"updateEllipse",(function(t){var r=t.deltaX,n=t.deltaY,o=e.nodeModel,i=o.id,u=o.rx,a=o.ry,c=o.x,l=o.y,s=o.PCTResizeInfo,f=q(e).index,d=u,p=a,h=e.getResize({index:f,deltaX:r,deltaY:n,width:d,height:p,PCTResizeInfo:s,pct:.5}),y=e.nodeModel,v=y.minWidth,g=y.minHeight,b=y.maxWidth,m=y.maxHeight;if(h.width<v/2||h.width>b/2||h.height<g/2||h.height>m/2)e.dragHandler.cancelDrag();else{e.updatePosition({deltaX:h.deltaX,deltaY:h.deltaY}),e.nodeModel.rx=h.width,e.nodeModel.ry=h.height,e.nodeModel.setProperties({nodeSize:{rx:h.width,ry:h.height}});e.getNodeEdges(i);var _={x:c,y:l},x={rx:h.width,ry:h.height,x:e.nodeModel.x,y:e.nodeModel.y};e.updateEdgePointByAnchors(),e.eventEmit({beforeNode:U(U({},_),{},{rx:u,ry:a}),afterNode:x})}})),Q(q(e),"updateDiamond",(function(t){var r=t.deltaX,n=t.deltaY,o=e.nodeModel,i=(o.id,o.rx),u=o.ry,a=o.x,c=o.y,l=o.PCTResizeInfo,s=q(e).index,f=i,d=u,p=e.getResize({index:s,deltaX:r,deltaY:n,width:f,height:d,PCTResizeInfo:l,pct:.5}),h=e.nodeModel,y=h.minWidth,v=h.minHeight,g=h.maxWidth,b=h.maxHeight;if(p.width<y/2||p.width>g/2||p.height<v/2||p.height>b/2)e.dragHandler.cancelDrag();else{e.updatePosition({deltaX:p.deltaX,deltaY:p.deltaY}),e.nodeModel.rx=p.width,e.nodeModel.ry=p.height,e.nodeModel.setProperties({nodeSize:{rx:p.width,ry:p.height}});var m={x:a,y:c,rx:i,ry:u},_={rx:p.width,ry:p.height,x:e.nodeModel.x,y:e.nodeModel.y};e.updateEdgePointByAnchors(),e.eventEmit({beforeNode:m,afterNode:_})}})),Q(q(e),"eventEmit",(function(t){var r=t.beforeNode,n=t.afterNode,o=e.nodeModel,i=o.id,u=o.modelType,a=o.type,c=U({id:i,modelType:u,type:a},r),l=U({id:i,modelType:u,type:a},n);e.graphModel.eventCenter.emit("node:resize",{oldNodeSize:c,newNodeSize:l})})),Q(q(e),"onDragging",(function(t){var r=t.deltaX,n=t.deltaY,o=e.graphModel.transformModel,i=e.nodeModel.modelType,u=H(o.fixDeltaXY(r,n),2);r=u[0],n=u[1],i===D.RECT_NODE||i===D.HTML_NODE?e.updateRect({deltaX:r,deltaY:n}):i===D.ELLIPSE_NODE?e.updateEllipse({deltaX:r,deltaY:n}):i===D.DIAMOND_NODE&&e.updateDiamond({deltaX:r,deltaY:n})})),Q(q(e),"onDragEnd",(function(){e.updateEdgePointByAnchors();var t=e.graphModel.gridSize,r=void 0===t?1:t,n=r*Math.round(e.nodeModel.x/r),o=r*Math.round(e.nodeModel.y/r);e.nodeModel.moveTo(n,o)})),e.index=t.index,e.nodeModel=t.model,e.graphModel=t.graphModel,e.state={},e.dragHandler=new tt({onDragging:e.onDragging,onDragEnd:e.onDragEnd,step:1}),e}return e=i,(r=[{key:"getNodeEdges",value:function(t){for(var e=this.graphModel.edges,r=[],n=[],o=0;o<e.length;o++){var i=e[o];i.sourceNodeId===t?r.push(i):e[o].targetNodeId===t&&n.push(i)}return{sourceEdges:r,targetEdges:n}}},{key:"render",value:function(){var t=this.props,e=t.x,r=t.y,n=t.index,o=t.model.getControlPointStyle();return y("g",{className:"lf-resize-control-".concat(n)},y(L,W({className:"lf-node-control",x:e,y:r},o,{onMouseDown:this.dragHandler.handleMouseDown})))}}])&&V(e.prototype,r),n&&V(e,n),i}(b);function rt(t){return(rt="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 nt(){return(nt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function ot(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function it(t,e){return(it=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ut(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 r,n=ct(t);if(e){var o=ct(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return at(this,r)}}function at(t,e){if(e&&("object"===rt(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 ct(t){return(ct=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var lt=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&&it(t,e)}(i,t);var e,r,n,o=ut(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,(r=[{key:"getResizeControl",value:function(){var t=this.props,e=t.model,r=t.graphModel,n=e.x,o=e.y,i=e.width,u=e.height,a={minX:n-i/2,minY:o-u/2,maxX:n+i/2,maxY:o+u/2},c=a.minX,l=a.minY,s=a.maxX,f=a.maxY;return[{x:c,y:l},{x:s,y:l},{x:s,y:f},{x:c,y:f}].map((function(t,n){return y(et,nt({index:n},t,{model:e,graphModel:r}))}))}},{key:"getGroupSolid",value:function(){var t=this.props.model,e=t.x,r=t.y,n=t.width,o=t.height;return y(L,nt({fill:"none"},t.getResizeOutlineStyle(),{x:e,y:r,width:n,height:o}))}},{key:"render",value:function(){return y("g",{className:"lf-resize-control"},this.getGroupSolid(),this.getResizeControl())}}])&&ot(e.prototype,r),n&&ot(e,n),i}(b);function st(t){return(st="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 ft(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function pt(t,e,r){return e&&dt(t.prototype,e),r&&dt(t,r),t}function ht(){return(ht="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=yt(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}}).apply(this,arguments)}function yt(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=_t(t)););return t}function vt(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&&gt(t,e)}function gt(t,e){return(gt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function bt(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 r,n=_t(t);if(e){var o=_t(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return mt(this,r)}}function mt(t,e){if(e&&("object"===st(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 _t(t){return(_t=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var xt=function(t){vt(r,t);var e=bt(r);function r(t,n){var o;ft(this,r);var i=(o=e.call(this,t,n)).properties.nodeSize;return i&&(o.width=i.width,o.height=i.height),o}return pt(r,[{key:"initNodeData",value:function(t){ht(_t(r.prototype),"initNodeData",this).call(this,t),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3}},{key:"getOutlineStyle",value:function(){var t=ht(_t(r.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)}},{key:"enableProportionResize",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(t){var e={widthPCT:100,hightPCT:100},r={basisWidth:this.width,basisHeight:this.height},n={maxScaleLimit:Math.min(this.maxWidth/this.width*100,this.maxHeight/this.height*100),minScaleLimit:Math.max(this.minWidth/this.width*100,this.minHeight/this.height*100)};this.PCTResizeInfo={ResizePCT:e,ResizeBasis:r,ScaleLimit:n}}else delete this.PCTResizeInfo}}]),r}(l.RectNodeModel),Ot={type:"rect",view:function(t){vt(r,t);var e=bt(r);function r(){return ft(this,r),e.apply(this,arguments)}return pt(r,[{key:"getControlGroup",value:function(){var t=this.props,e=t.model,r=t.graphModel;return Object(l.h)(lt,{model:e,graphModel:r})}},{key:"getResizeShape",value:function(){return ht(_t(r.prototype),"getShape",this).call(this)}},{key:"getShape",value:function(){var t=this.props,e=t.model.isSelected,r=t.graphModel.editConfigModel.isSilentMode;return Object(l.h)("g",null,this.getResizeShape(),e&&!r?this.getControlGroup():"")}}]),r}(l.RectNode),model:xt};function wt(t){return(wt="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 St(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Pt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function jt(t,e,r){return e&&Pt(t.prototype,e),r&&Pt(t,r),t}function Et(){return(Et="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=kt(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}}).apply(this,arguments)}function kt(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Tt(t)););return t}function Mt(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&&Rt(t,e)}function Rt(t,e){return(Rt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function At(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 r,n=Tt(t);if(e){var o=Tt(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return It(this,r)}}function It(t,e){if(e&&("object"===wt(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 Tt(t){return(Tt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ct=function(t){Mt(r,t);var e=At(r);function r(t,n){var o;St(this,r);var i=(o=e.call(this,t,n)).properties.nodeSize;return i&&(o.rx=i.rx,o.ry=i.ry),o}return jt(r,[{key:"initNodeData",value:function(t){Et(Tt(r.prototype),"initNodeData",this).call(this,t),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3}},{key:"getOutlineStyle",value:function(){var t=Et(Tt(r.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"}}},{key:"enableProportionResize",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(t){var e={widthPCT:100,hightPCT:100},r={basisWidth:this.rx,basisHeight:this.ry},n={maxScaleLimit:Math.min(this.maxWidth/(2*this.rx)*100,this.maxHeight/(2*this.ry)*100),minScaleLimit:Math.max(this.minWidth/(2*this.rx)*100,this.minHeight/(2*this.ry)*100)};this.PCTResizeInfo={ResizePCT:e,ResizeBasis:r,ScaleLimit:n}}else delete this.PCTResizeInfo}}]),r}(l.EllipseNodeModel),Nt={type:"ellipse",view:function(t){Mt(r,t);var e=At(r);function r(){return St(this,r),e.apply(this,arguments)}return jt(r,[{key:"getControlGroup",value:function(){var t=this.props,e=t.model,r=t.graphModel;return Object(l.h)(lt,{model:e,graphModel:r})}},{key:"getResizeShape",value:function(){return Et(Tt(r.prototype),"getShape",this).call(this)}},{key:"getShape",value:function(){var t=this.props,e=t.model,r=t.graphModel.editConfigModel.isSilentMode;return Object(l.h)("g",null,this.getResizeShape(),e.isSelected&&!r?this.getControlGroup():"")}}]),r}(l.EllipseNode),model:Ct};r(185),r(169);function Dt(t){var e=t.fillOpacity,r=void 0===e?1:e,n=t.strokeWidth,o=void 0===n?1:n,i=t.strokeOpacity,u=void 0===i?1:i,a=t.fill,c=void 0===a?"transparent":a,s=t.stroke,f=void 0===s?"#000":s,d=t.points,p=t.className,h={fill:c,fillOpacity:r,strokeWidth:o,stroke:f,strokeOpacity:u,points:"",className:void 0===p?"lf-basic-shape":p};return h.points=d.map((function(t){return t.join(",")})).join(" "),Object(l.h)("polygon",h)}function zt(t){return(zt="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 Ft(){return(Ft=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function Gt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Lt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Bt(t,e,r){return e&&Lt(t.prototype,e),r&&Lt(t,r),t}function Wt(){return(Wt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=Ht(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}}).apply(this,arguments)}function Ht(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=$t(t)););return t}function Yt(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&&Xt(t,e)}function Xt(t,e){return(Xt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ut(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 r,n=$t(t);if(e){var o=$t(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Vt(this,r)}}function Vt(t,e){if(e&&("object"===zt(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 $t(t){return($t=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Zt=function(t){Yt(r,t);var e=Ut(r);function r(t,n){var o;Gt(this,r);var i=(o=e.call(this,t,n)).properties.nodeSize;return i&&(o.rx=i.rx,o.ry=i.ry),o}return Bt(r,[{key:"initNodeData",value:function(t){Wt($t(r.prototype),"initNodeData",this).call(this,t),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3,this.gridSize=1}},{key:"getOutlineStyle",value:function(){var t=Wt($t(r.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"}}},{key:"enableProportionResize",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(t){var e={widthPCT:100,hightPCT:100},r={basisWidth:this.rx,basisHeight:this.ry},n={maxScaleLimit:Math.min(this.maxWidth/(2*this.rx)*100,this.maxHeight/(2*this.ry)*100),minScaleLimit:Math.max(this.minWidth/(2*this.rx)*100,this.minHeight/(2*this.ry)*100)};this.PCTResizeInfo={ResizePCT:e,ResizeBasis:r,ScaleLimit:n}}else delete this.PCTResizeInfo}}]),r}(l.DiamondNodeModel),Kt={type:"diamond",view:function(t){Yt(r,t);var e=Ut(r);function r(){return Gt(this,r),e.apply(this,arguments)}return Bt(r,[{key:"getControlGroup",value:function(){var t=this.props,e=t.model,r=t.graphModel;return Object(l.h)(lt,{model:e,graphModel:r})}},{key:"getResizeShape",value:function(){var t=this.props.model,e=t.points,r=t.getNodeStyle();return Object(l.h)("g",null,Object(l.h)(Dt,Ft({},r,{points:e})))}},{key:"getShape",value:function(){var t=this.props,e=t.model.isSelected,r=t.graphModel.editConfigModel.isSilentMode;return Object(l.h)("g",null,this.getResizeShape(),e&&!r?this.getControlGroup():"")}}]),r}(l.DiamondNode),model:Zt};function qt(t){return(qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Jt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Qt(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function te(t,e,r){return e&&Qt(t.prototype,e),r&&Qt(t,r),t}function ee(){return(ee="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=re(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}}).apply(this,arguments)}function re(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ae(t)););return t}function ne(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&&oe(t,e)}function oe(t,e){return(oe=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ie(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 r,n=ae(t);if(e){var o=ae(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return ue(this,r)}}function ue(t,e){if(e&&("object"===qt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function ae(t){return(ae=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ce=function(t){ne(r,t);var e=ie(r);function r(t,n){var o;Jt(this,r);var i=(o=e.call(this,t,n)).properties.nodeSize;return i&&(o.width=i.width,o.height=i.height),o}return te(r,[{key:"initNodeData",value:function(t){ee(ae(r.prototype),"initNodeData",this).call(this,t),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3}},{key:"getOutlineStyle",value:function(){var t=ee(ae(r.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"}}},{key:"enableProportionResize",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(t){var e={widthPCT:100,hightPCT:100},r={basisWidth:this.width,basisHeight:this.height},n={maxScaleLimit:Math.min(this.maxWidth/this.width*100,this.maxHeight/this.height*100),minScaleLimit:Math.max(this.minWidth/this.width*100,this.minHeight/this.height*100)};this.PCTResizeInfo={ResizePCT:e,ResizeBasis:r,ScaleLimit:n}}else delete this.PCTResizeInfo}}]),r}(l.HtmlNodeModel),le={type:"html",view:function(t){ne(r,t);var e=ie(r);function r(){return Jt(this,r),e.apply(this,arguments)}return te(r,[{key:"getControlGroup",value:function(){var t=this.props,e=t.model,r=t.graphModel;return Object(l.h)(lt,{model:e,graphModel:r})}},{key:"getResizeShape",value:function(){return ee(ae(r.prototype),"getShape",this).call(this)}},{key:"getShape",value:function(){var t=this.props,e=t.model.isSelected,r=t.graphModel.editConfigModel.isSilentMode;return Object(l.h)("g",null,this.getResizeShape(),e&&!r?this.getControlGroup():"")}}]),r}(l.HtmlNode),model:ce},se={pluginName:"nodeResize",step:0,install:function(t){t.register({type:Ot.type,view:Ot.view,model:Ot.model}),t.register({type:Nt.type,view:Nt.view,model:Nt.model}),t.register({type:Kt.type,view:Kt.view,model:Kt.model}),t.register({type:le.type,view:le.view,model:le.model})}};e.default=se},function(t,e,r){var n=r(5),o=r(218),i=r(104);n({target:"Array",proto:!0},{fill:o}),i("fill")},,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){"use strict";var n=r(5),o=r(1),i=r(33),u=r(14),a=r(17),c=r(20),l=r(2),s=r(213),f=r(79),d=r(214),p=r(215),h=r(50),y=r(216),v=[],g=o(v.sort),b=o(v.push),m=l((function(){v.sort(void 0)})),_=l((function(){v.sort(null)})),x=f("sort"),O=!l((function(){if(h)return h<70;if(!(d&&d>3)){if(p)return!0;if(y)return y<603;var t,e,r,n,o="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)v.push({k:e+n,v:r})}for(v.sort((function(t,e){return e.v-t.v})),n=0;n<v.length;n++)e=v[n].k.charAt(0),o.charAt(o.length-1)!==e&&(o+=e);return"DGBEFHACIJK"!==o}}));n({target:"Array",proto:!0,forced:m||!_||!x||!O},{sort:function(t){void 0!==t&&i(t);var e=u(this);if(O)return void 0===t?g(e):g(e,t);var r,n,o=[],l=a(e);for(n=0;n<l;n++)n in e&&b(o,e[n]);for(s(o,function(t){return function(e,r){return void 0===r?-1:void 0===e?1:void 0!==t?+t(e,r)||0:c(e)>c(r)?1:-1}}(t)),r=o.length,n=0;n<r;)e[n]=o[n++];for(;n<l;)delete e[n++];return e}})},function(t,e,r){var n=r(113),o=Math.floor,i=function(t,e){var r=t.length,c=o(r/2);return r<8?u(t,e):a(t,i(n(t,0,c),e),i(n(t,c),e),e)},u=function(t,e){for(var r,n,o=t.length,i=1;i<o;){for(n=i,r=t[i];n&&e(t[n-1],r)>0;)t[n]=t[--n];n!==i++&&(t[n]=r)}return t},a=function(t,e,r,n){for(var o=e.length,i=r.length,u=0,a=0;u<o||a<i;)t[u+a]=u<o&&a<i?n(e[u],r[a])<=0?e[u++]:r[a++]:u<o?e[u++]:r[a++];return t};t.exports=i},function(t,e,r){var n=r(73).match(/firefox\/(\d+)/i);t.exports=!!n&&+n[1]},function(t,e,r){var n=r(73);t.exports=/MSIE|Trident/.test(n)},function(t,e,r){var n=r(73).match(/AppleWebKit\/(\d+)\./);t.exports=!!n&&+n[1]},function(t,e,r){var n=r(5),o=r(0),i=r(83),u=r(3),a=r(73),c=r(72),l=/MSIE .\./.test(a),s=o.Function,f=function(t){return function(e,r){var n=arguments.length>2,o=n?c(arguments,2):void 0;return t(n?function(){i(u(e)?e:s(e),this,o)}:e,r)}};n({global:!0,bind:!0,forced:l},{setTimeout:f(o.setTimeout),setInterval:f(o.setInterval)})},function(t,e,r){"use strict";var n=r(14),o=r(56),i=r(17);t.exports=function(t){for(var e=n(this),r=i(e),u=arguments.length,a=o(u>1?arguments[1]:void 0,r),c=u>2?arguments[2]:void 0,l=void 0===c?r:o(c,r);l>a;)e[a++]=t;return e}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){"use strict";r.r(e),r.d(e,"Group",(function(){return T})),r.d(e,"GroupNode",(function(){return w}));r(124),r(164),r(84),r(129),r(89),r(90),r(132),r(137),r(138),r(97),r(115),r(135),r(136),r(59),r(159),r(60),r(78),r(81),r(95),r(96),r(212),r(134),r(165),r(157),r(131),r(64);var n=r(21),o=(r(217),r(185),r(125),r(126),r(127),r(128),r(161),r(184));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 r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach((function(e){x(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function c(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 r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))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 r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function d(t,e,r){return e&&f(t.prototype,e),r&&f(t,r),t}function p(){return(p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=h(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):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 r,n=_(t);if(e){var o=_(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return b(this,r)}}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,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var O=function(t){y(r,t);var e=g(r);function r(){var t;s(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;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),x(m(t),"childrenLastFoldStatus",{}),t}return d(r,[{key:"initNodeData",value:function(t){var e=this;p(_(r.prototype),"initNodeData",this).call(this,t);var n=[];Array.isArray(t.children)&&(n=t.children),this.children=new Set(n),this.width=500,this.height=300,this.foldedWidth=80,this.foldedHeight=60,this.zIndex=-1e4,this.radius=0,this.text.editable=!1,this.text.draggable=!1,this.isRestrict=!1,this.resizable=!1,this.autoToFront=!1,this.foldable=!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=p(_(r.prototype),"getResizeOutlineStyle",this).call(this);return t.stroke="none",t}},{key:"foldGroup",value:function(t){var e=this;if(t!==this.isFolded){this.setProperty("isFolded",t),this.isFolded=t,t?(this.x=this.x-this.width/2+this.foldedWidth/2,this.y=this.y-this.height/2+this.foldedHeight/2,this.unfoldedWidth=this.width,this.unfoldedHight=this.height,this.width=this.foldedWidth,this.height=this.foldedHeight):(this.width=this.unfoldedWidth,this.height=this.unfoldedHight,this.x=this.x+this.width/2-this.foldedWidth/2,this.y=this.y+this.height/2-this.foldedHeight/2);var r=this.incoming.edges.concat(this.outgoing.edges);this.children.forEach((function(n){var o=e.graphModel.getElement(n),i=o.isFolded;if(o.isGroup&&!o.isFolded&&o.foldGroup(t),o.isGroup&&!t){var u=e.childrenLastFoldStatus[n];void 0!==u&&u!==o.isFolded&&o.foldGroup(u)}e.childrenLastFoldStatus[n]=i,o.visible=!t,r=r.concat(o.incoming.edges.concat(o.outgoing.edges))})),this.foldEdge(t,r)}}},{key:"getAnchorStyle",value:function(t){var e=p(_(r.prototype),"getAnchorStyle",this).call(this,t);return e.stroke="transparent",e.fill="transparent",e.hover.fill="transparent",e.hover.stroke="transparent",e}},{key:"foldEdge",value:function(t,e){var r=this;e.forEach((function(e,n){var o=e.id,i=e.sourceNodeId,u=e.targetNodeId,a=e.startPoint,c=e.endPoint,l=e.type,s=e.text,f=e.getProperties(),d={id:"".concat(o,"__").concat(n),sourceNodeId:i,targetNodeId:u,startPoint:a,endPoint:c,type:l,properties:f,text:null==s?void 0:s.value};e.virtual&&r.graphModel.deleteEdgeById(e.id);var p=r.graphModel.group.getNodeGroup(u);p||(p=r.graphModel.getNodeModelById(u));var h=r.graphModel.group.getNodeGroup(i);h||(h=r.graphModel.getNodeModelById(i)),t&&!1!==e.visible&&(r.children.has(i)||r.id===i?(d.startPoint=void 0,d.sourceNodeId=r.id):(d.endPoint=void 0,d.targetNodeId=r.id),p.id===r.id&&h.id===r.id||r.createVirtualEdge(d),e.visible=!1),t||!1!==e.visible||(p&&p.isGroup&&p.isFolded?(d.targetNodeId=p.id,d.endPoint=void 0,r.createVirtualEdge(d)):h&&h.isGroup&&h.isFolded?(d.sourceNodeId=h.id,d.startPoint=void 0,r.createVirtualEdge(d)):e.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,r=t.y1,n=t.x2,o=t.y2;return e>=this.x-this.width/2&&n<=this.x+this.width/2&&r>=this.y-this.height/2&&o<=this.y+this.height/2}},{key:"isAllowMoveTo",value:function(t){var e=t.x1,r=t.y1,n=t.x2,o=t.y2;return{x:e>=this.x-this.width/2&&n<=this.x+this.width/2,y:r>=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),this.graphModel.eventCenter.emit("group:add-node",{data:this.getData()})}},{key:"removeChild",value:function(t){this.children.delete(t),this.graphModel.eventCenter.emit("group:remove-node",{data:this.getData()})}},{key:"getAddableOutlineStyle",value:function(){return{stroke:"#FEB663",strokeWidth:2,strokeDasharray:"4 4",fill:"transparent"}}},{key:"getData",value:function(){var t=this,e=p(_(r.prototype),"getData",this).call(this);e.children=[],this.children.forEach((function(r){var n=t.graphModel.getNodeModelById(r);n&&!n.virtual&&e.children.push(r)}));var n=e.properties;return delete n.groupAddable,delete n.isFolded,e}},{key:"getHistoryData",value:function(){var t=p(_(r.prototype),"getData",this).call(this);t.children=c(this.children),t.isGroup=!0;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}},{key:"toBack",value:function(){this.zIndex--}}]),r}(o.RectResize.model),w={type:"group",view:function(t){y(r,t);var e=g(r);function r(){return s(this,r),e.apply(this,arguments)}return d(r,[{key:"getControlGroup",value:function(){var t=this.props.model,e=t.resizable,n=t.properties;return e&&!n.isFolded?p(_(r.prototype),"getControlGroup",this).call(this):null}},{key:"getAddableShape",value:function(){var t=this.props.model,e=t.width,r=t.height,o=t.x,i=t.y,u=t.radius;if(!t.properties.groupAddable)return null;var c=this.props.model.getNodeStyle().strokeWidth,l=this.props.model.getAddableOutlineStyle(),s=e+c+8,f=r+c+8;return Object(n.h)("rect",a(a({},l),{},{width:s,height:f,x:o-s/2,y:i-f/2,rx:u,ry:u}))}},{key:"getFoldIcon",value:function(){var t=this.props.model,e=t.x-t.width/2+5,r=t.y-t.height/2+5;if(!t.foldable)return null;var o=Object(n.h)("path",{fill:"none",stroke:"#818281",strokeWidth:2,"pointer-events":"none",d:t.properties.isFolded?"M ".concat(e+3,",").concat(r+6," ").concat(e+11,",").concat(r+6," M").concat(e+7,",").concat(r+2," ").concat(e+7,",").concat(r+10):"M ".concat(e+3,",").concat(r+6," ").concat(e+11,",").concat(r+6," ")});return Object(n.h)("g",{},[Object(n.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(n.h)("g",{},[this.getAddableShape(),p(_(r.prototype),"getResizeShape",this).call(this),this.getFoldIcon()])}}]),r}(o.RectResize.view),model:O},S=["children"],P=["type","startPoint","endPoint","pointsList","text"];function j(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function E(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?j(Object(r),!0).forEach((function(e){I(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function k(t){return function(t){if(Array.isArray(t))return M(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 M(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return M(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 M(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function R(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function A(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function I(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var T=function(){function t(e){var r=this,n=e.lf;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),I(this,"topGroupZIndex",-1e4),I(this,"nodeGroupMap",new Map),I(this,"graphRendered",(function(t){t&&t.nodes&&t.nodes.forEach((function(t){t.children&&t.children.forEach((function(e){r.nodeGroupMap.set(e,t.id)}))}))})),I(this,"appendNodeToGroup",(function(t){var e=t.data,n=r.nodeGroupMap.get(e.id);if(n){var o=r.lf.getNodeModelById(n);o.removeChild(e.id),r.nodeGroupMap.delete(e.id),o.setAllowAppendChild(!1)}var i=r.lf.getNodeModelById(e.id),u=i.getBounds(),a=r.getGroup(u,e);(i.isGroup&&(e.children.forEach((function(t){r.nodeGroupMap.set(t,e.id)})),r.nodeSelected({data:e,isSelected:!1,isMultiple:!1})),a)&&(a.isAllowAppendIn(e)?(a.addChild(e.id),r.nodeGroupMap.set(e.id,a.id),a.setAllowAppendChild(!1)):r.lf.emit("group:not-allowed",{group:a.getData(),node:e}))})),I(this,"deleteGroupChild",(function(t){var e=t.data;e.children&&e.children.forEach((function(t){r.nodeGroupMap.delete(t),r.lf.deleteNode(t)}));var n=r.nodeGroupMap.get(e.id);n&&(r.lf.getNodeModelById(n).removeChild(e.id),r.nodeGroupMap.delete(e.id))})),I(this,"setActiveGroup",(function(t){var e=t.data,n=r.lf.getNodeModelById(e.id),o=n.getBounds(),i=r.getGroup(o,e);(r.activeGroup&&r.activeGroup.setAllowAppendChild(!1),!i||n.isGroup&&i.id===e.id)||i.isAllowAppendIn(e)&&(r.activeGroup=i,r.activeGroup.setAllowAppendChild(!0))})),I(this,"nodeSelected",(function(t){var e=t.data,n=t.isMultiple,o=t.isSelected,i=r.lf.getNodeModelById(e.id);if(r.toFrontGroup(i),r.topGroupZIndex>-1e3){r.topGroupZIndex=-1e4;for(var u=r.lf.graphModel.nodes.filter((function(t){return t.isGroup})).sort((function(t,e){return t.zIndex-e.zIndex})),a=0,c=0;c<u.length;c++){var l=u[c];l.zIndex!==a&&(r.topGroupZIndex++,a=l.zIndex),l.setZIndex(r.topGroupZIndex)}}if(n&&o)if(i.isGroup)i.children.forEach((function(t){r.lf.graphModel.getElement(t).setSelected(!1)}));else{var s=r.nodeGroupMap.get(e.id);if(s)r.lf.getNodeModelById(s).isSelected&&i.setSelected(!1)}})),I(this,"toFrontGroup",(function(t){t&&t.isGroup&&(r.topGroupZIndex++,t.setZIndex(r.topGroupZIndex),t.children&&t.children.forEach((function(t){var e=r.lf.getNodeModelById(t);r.toFrontGroup(e)})))})),n.register(w),this.lf=n,n.graphModel.addNodeMoveRules((function(t,e,o){if(t.isGroup){var i=r.getNodeAllChild(t);return n.graphModel.moveNodes(i,e,o,!0),!0}var u=n.getNodeModelById(r.nodeGroupMap.get(t.id));if(u&&u.isRestrict){var a=t.getBounds(),c=a.x1,l=a.y1,s=a.x2,f=a.y2;return u.isAllowMoveTo({x1:c+e,y1:l+o,x2:s+e,y2:f+o})}return!0})),n.graphModel.group=this,n.on("node:add,node:drop,node:dnd-add",this.appendNodeToGroup),n.on("node:delete",this.deleteGroupChild),n.on("node:dnd-drag,node:drag",this.setActiveGroup),n.on("node:click",this.nodeSelected),n.on("graph:rendered",this.graphRendered),n.addElements=function(t,e){for(var o=t.nodes,i=t.edges,u={},a={nodes:[],edges:[]},c=[],l=0;l<o.length;l++){var s=o[l],f=s.id,d=s.children,p=R(s,S),h=n.addNode(p);if(!h)return{nodes:[],edges:[]};f&&(u[f]=h.id),a.nodes.push(h);var y=r.createAllChildNodes(u,d,h,e).edgesArray;c.push.apply(c,k(y))}return c.forEach((function(t){r.createEdgeModel(t,u,e)})),i.forEach((function(t){var e=r.createEdgeModel(t,u,0);a.edges.push(e)})),a}}var e,r,o;return e=t,(r=[{key:"createAllChildNodes",value:function(t,e,r,o){var i=this,u=this.lf,a=[],c=[],l=[];null==e||e.forEach((function(e){var s=u.getNodeModelById(e),f=s.x,d=s.y,p=s.properties,h=s.type,y=s.text,v=s.rotate,g=s.children,b=(s.incoming,s.outgoing,n.EventType.NODE_GROUP_COPY||"node:group-copy-add"),m=u.addNode({x:f+o,y:d+o,properties:p,type:h,text:E(E({},y),{},{x:y.x+o,y:y.y+o}),rotate:v},b);if(r.addChild(m.id),t[e]=m.id,l.push(m),s.incoming.edges.forEach((function(t){c.push(t)})),s.outgoing.edges.forEach((function(t){c.push(t)})),g instanceof Set){var _=i.createAllChildNodes(t,g,m,o),x=_.nodesArray,O=_.edgesArray;l.push.apply(l,k(x)),a.push.apply(a,k(O))}}));var s=c.filter((function(e){return t[e.sourceNodeId]&&t[e.targetNodeId]})).map((function(t){return t.getData()}));return{nodesArray:l,edgesArray:a.concat(s)}}},{key:"createEdgeModel",value:function(t,e,r){var n=this.lf,o=t.sourceNodeId,i=t.targetNodeId;e[o]&&(o=e[o]),e[i]&&(i=e[i]);var u=t.type,a=t.startPoint,c=t.endPoint,l=t.pointsList,s=t.text,f=(R(t,P),{x:a.x+r,y:a.y+r}),d={x:c.x+r,y:c.y+r},p=[];l&&l.length>0&&(p=l.map((function(t){return t.x+=r,t.y+=r,t})));var h=s;return s&&"string"!=typeof s&&(h.x=s.x+r,h.y=s.y+r),n.graphModel.addEdge({type:u,startPoint:f,endPoint:d,sourceNodeId:o,targetNodeId:i,pointsList:p,text:h})}},{key:"getNodeAllChild",value:function(t){var e=this,r=[];return t.children&&t.children.forEach((function(t){r.push(t);var n=e.lf.getNodeModelById(t);n.isGroup&&(r=r.concat(e.getNodeAllChild(n)))})),r}},{key:"getGroup",value:function(t,e){var r=this.lf.graphModel.nodes.filter((function(r){return r.isGroup&&r.isInRange(t)&&r.id!==e.id}));if(0!==r.length){if(1===r.length)return r[0];for(var n=r[r.length-1],o=r.length-2;o>=0;o--)r[o].zIndex>n.zIndex&&(n=r[o]);return n}}},{key:"getNodeGroup",value:function(t){var e=this.nodeGroupMap.get(t);if(e)return this.lf.getNodeModelById(e)}}])&&A(e.prototype,r),o&&A(e,o),t}();I(T,"pluginName","group")}])}));