@logicflow/extension 1.1.0-alpha.1 → 1.1.0-alpha.2

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.
@@ -33,7 +33,7 @@ var ContextMenu = /** @class */ (function () {
33
33
  this.__menuDOM.className = 'lf-inner-context';
34
34
  this.menuTypeMap.set(COMMON_TYPE_KEY, []);
35
35
  this.lf.setContextMenuByType = function (type, menus) {
36
- _this.menuTypeMap.set(type, menus);
36
+ _this.setContextMenuByType(type, menus);
37
37
  };
38
38
  this.lf.setContextMenuItems = function (menus) {
39
39
  _this.setContextMenuItems(menus);
@@ -63,6 +63,9 @@ var ContextMenu = /** @class */ (function () {
63
63
  _this.hideContextMenu();
64
64
  });
65
65
  };
66
+ ContextMenu.prototype.setContextMenuByType = function (type, menus) {
67
+ this.menuTypeMap.set(type, menus);
68
+ };
66
69
  /**
67
70
  * 隐藏菜单
68
71
  */
@@ -33,13 +33,13 @@ var Menu = /** @class */ (function () {
33
33
  this.lf = lf;
34
34
  this.menuTypeMap = new Map();
35
35
  this.init();
36
- this.lf.extension.menu.setMenuConfig = function (config) {
36
+ this.lf.setMenuConfig = function (config) {
37
37
  _this.setMenuConfig(config);
38
38
  };
39
- this.lf.extension.menu.addMenuConfig = function (config) {
39
+ this.lf.addMenuConfig = function (config) {
40
40
  _this.addMenuConfig(config);
41
41
  };
42
- this.lf.extension.menu.setMenuByType = function (config) {
42
+ this.lf.setMenuByType = function (config) {
43
43
  _this.setMenuByType(config);
44
44
  };
45
45
  }
@@ -10,6 +10,7 @@ declare class ContextMenu {
10
10
  lf: any;
11
11
  });
12
12
  render(lf: any, container: any): void;
13
+ setContextMenuByType(type: any, menus: any): void;
13
14
  /**
14
15
  * 隐藏菜单
15
16
  */
@@ -30,7 +30,7 @@ var ContextMenu = /** @class */ (function () {
30
30
  this.__menuDOM.className = 'lf-inner-context';
31
31
  this.menuTypeMap.set(COMMON_TYPE_KEY, []);
32
32
  this.lf.setContextMenuByType = function (type, menus) {
33
- _this.menuTypeMap.set(type, menus);
33
+ _this.setContextMenuByType(type, menus);
34
34
  };
35
35
  this.lf.setContextMenuItems = function (menus) {
36
36
  _this.setContextMenuItems(menus);
@@ -60,6 +60,9 @@ var ContextMenu = /** @class */ (function () {
60
60
  _this.hideContextMenu();
61
61
  });
62
62
  };
63
+ ContextMenu.prototype.setContextMenuByType = function (type, menus) {
64
+ this.menuTypeMap.set(type, menus);
65
+ };
63
66
  /**
64
67
  * 隐藏菜单
65
68
  */
@@ -30,13 +30,13 @@ var Menu = /** @class */ (function () {
30
30
  this.lf = lf;
31
31
  this.menuTypeMap = new Map();
32
32
  this.init();
33
- this.lf.extension.menu.setMenuConfig = function (config) {
33
+ this.lf.setMenuConfig = function (config) {
34
34
  _this.setMenuConfig(config);
35
35
  };
36
- this.lf.extension.menu.addMenuConfig = function (config) {
36
+ this.lf.addMenuConfig = function (config) {
37
37
  _this.addMenuConfig(config);
38
38
  };
39
- this.lf.extension.menu.setMenuByType = function (config) {
39
+ this.lf.setMenuByType = function (config) {
40
40
  _this.setMenuByType(config);
41
41
  };
42
42
  }
@@ -1 +1 @@
1
- !function(t,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var e=n();for(var r in e)("object"==typeof exports?exports:t)[r]=e[r]}}(window,(function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=200)}([function(t,n,e){(function(n){var e=function(t){return t&&t.Math==Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n&&n)||function(){return this}()||Function("return this")()}).call(this,e(95))},function(t,n){var e=Function.prototype,r=e.bind,o=e.call,i=r&&r.bind(o);t.exports=r?function(t){return t&&i(o,t)}:function(t){return t&&function(){return o.apply(t,arguments)}}},function(t,n){t.exports=function(t){return"function"==typeof t}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,e){var r=e(0),o=e(32),i=e(5),u=e(34),a=e(45),c=e(60),f=o("wks"),s=r.Symbol,l=s&&s.for,p=c?s:s&&s.withoutSetter||u;t.exports=function(t){if(!i(f,t)||!a&&"string"!=typeof f[t]){var n="Symbol."+t;a&&i(s,t)?f[t]=s[t]:f[t]=c&&l?l(n):p(n)}return f[t]}},function(t,n,e){var r=e(1),o=e(15),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,n){return i(o(t),n)}},function(t,n,e){var r=e(0),o=e(24).f,i=e(16),u=e(14),a=e(42),c=e(67),f=e(69);t.exports=function(t,n){var e,s,l,p,v,d=t.target,y=t.global,h=t.stat;if(e=y?r:h?r[d]||a(d,{}):(r[d]||{}).prototype)for(s in n){if(p=n[s],l=t.noTargetGet?(v=o(e,s))&&v.value:e[s],!f(y?s:d+(h?".":"#")+s,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;c(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),u(e,s,p,t)}}},function(t,n,e){var r=e(3);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,n,e){var r=e(2);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},function(t,n,e){var r=e(0),o=e(7),i=e(61),u=e(10),a=e(25),c=r.TypeError,f=Object.defineProperty;n.f=o?f:function(t,n,e){if(u(t),n=a(n),u(e),i)try{return f(t,n,e)}catch(t){}if("get"in e||"set"in e)throw c("Accessors not supported");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){var r=e(0),o=e(8),i=r.String,u=r.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not an object")}},function(t,n){var e=Function.prototype.call;t.exports=e.bind?e.bind(e):function(){return e.apply(e,arguments)}},function(t,n,e){var r=e(51),o=e(30);t.exports=function(t){return r(o(t))}},function(t,n,e){var r=e(0),o=e(2),i=function(t){return o(t)?t:void 0};t.exports=function(t,n){return arguments.length<2?i(r[t]):r[t]&&r[t][n]}},function(t,n,e){var r=e(0),o=e(2),i=e(5),u=e(16),a=e(42),c=e(38),f=e(21),s=e(53).CONFIGURABLE,l=f.get,p=f.enforce,v=String(String).split("String");(t.exports=function(t,n,e,c){var f,l=!!c&&!!c.unsafe,d=!!c&&!!c.enumerable,y=!!c&&!!c.noTargetGet,h=c&&void 0!==c.name?c.name:n;o(e)&&("Symbol("===String(h).slice(0,7)&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(e,"name")||s&&e.name!==h)&&u(e,"name",h),(f=p(e)).source||(f.source=v.join("string"==typeof h?h:""))),t!==r?(l?!y&&t[n]&&(d=!0):delete t[n],d?t[n]=e:u(t,n,e)):d?t[n]=e:a(n,e)})(Function.prototype,"toString",(function(){return o(this)&&l(this).source||c(this)}))},function(t,n,e){var r=e(0),o=e(30),i=r.Object;t.exports=function(t){return i(o(t))}},function(t,n,e){var r=e(7),o=e(9),i=e(20);t.exports=r?function(t,n,e){return o.f(t,n,i(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){var r=e(76);t.exports=function(t){return r(t.length)}},function(t,n,e){var r,o=e(10),i=e(93),u=e(46),a=e(23),c=e(103),f=e(44),s=e(28),l=s("IE_PROTO"),p=function(){},v=function(t){return"<script>"+t+"<\/script>"},d=function(t){t.write(v("")),t.close();var n=t.parentWindow.Object;return t=null,n},y=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,n;y="undefined"!=typeof document?document.domain&&r?d(r):((n=f("iframe")).style.display="none",c.appendChild(n),n.src=String("javascript:"),(t=n.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):d(r);for(var e=u.length;e--;)delete y.prototype[u[e]];return y()};a[l]=!0,t.exports=Object.create||function(t,n){var e;return null!==t?(p.prototype=o(t),e=new p,p.prototype=null,e[l]=t):e=y(),void 0===n?e:i(e,n)}},function(t,n,e){var r=e(1),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,e){var r,o,i,u=e(97),a=e(0),c=e(1),f=e(8),s=e(16),l=e(5),p=e(41),v=e(28),d=e(23),y=a.TypeError,h=a.WeakMap;if(u||p.state){var x=p.state||(p.state=new h),g=c(x.get),m=c(x.has),b=c(x.set);r=function(t,n){if(m(x,t))throw new y("Object already initialized");return n.facade=t,b(x,t,n),n},o=function(t){return g(x,t)||{}},i=function(t){return m(x,t)}}else{var S=v("state");d[S]=!0,r=function(t,n){if(l(t,S))throw new y("Object already initialized");return n.facade=t,s(t,S,n),n},o=function(t){return l(t,S)?t[S]:{}},i=function(t){return l(t,S)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(n){var e;if(!f(n)||(e=o(n)).type!==t)throw y("Incompatible receiver, "+t+" required");return e}}}},function(t,n,e){var r=e(0),o=e(31),i=r.String;t.exports=function(t){if("Symbol"===o(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},function(t,n){t.exports={}},function(t,n,e){var r=e(7),o=e(11),i=e(62),u=e(20),a=e(12),c=e(25),f=e(5),s=e(61),l=Object.getOwnPropertyDescriptor;n.f=r?l:function(t,n){if(t=a(t),n=c(n),s)try{return l(t,n)}catch(t){}if(f(t,n))return u(!o(i.f,t,n),t[n])}},function(t,n,e){var r=e(87),o=e(40);t.exports=function(t){var n=r(t,"string");return o(n)?n:n+""}},function(t,n,e){var r=e(1);t.exports=r({}.isPrototypeOf)},function(t,n){t.exports=!1},function(t,n,e){var r=e(32),o=e(34),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,n){t.exports={}},function(t,n,e){var r=e(0).TypeError;t.exports=function(t){if(null==t)throw r("Can't call method on "+t);return t}},function(t,n,e){var r=e(0),o=e(43),i=e(2),u=e(19),a=e(4)("toStringTag"),c=r.Object,f="Arguments"==u(function(){return arguments}());t.exports=o?u:function(t){var n,e,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,n){try{return t[n]}catch(t){}}(n=c(t),a))?e:f?u(n):"Object"==(r=u(n))&&i(n.callee)?"Arguments":r}},function(t,n,e){var r=e(27),o=e(41);(t.exports=function(t,n){return o[t]||(o[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.19.3",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(t,n,e){var r=e(19);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){var r=e(1),o=0,i=Math.random(),u=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+u(++o+i,36)}},function(t,n,e){var r=e(64),o=e(46).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,n,e){var r=e(0),o=e(2),i=e(52),u=r.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not a function")}},,function(t,n,e){var r=e(1),o=e(2),i=e(41),u=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return u(t)}),t.exports=i.inspectSource},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){var n=+t;return n!=n||0===n?0:(n>0?r:e)(n)}},function(t,n,e){var r=e(0),o=e(13),i=e(2),u=e(26),a=e(60),c=r.Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var n=o("Symbol");return i(n)&&u(n.prototype,c(t))}},function(t,n,e){var r=e(0),o=e(42),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,n,e){var r=e(0),o=Object.defineProperty;t.exports=function(t,n){try{o(r,t,{value:n,configurable:!0,writable:!0})}catch(e){r[t]=n}return n}},function(t,n,e){var r={};r[e(4)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,n,e){var r=e(0),o=e(8),i=r.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},function(t,n,e){var r=e(48),o=e(3);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(t,n){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,n,e){var r=e(9).f,o=e(5),i=e(4)("toStringTag");t.exports=function(t,n,e){t&&!o(t=e?t:t.prototype,i)&&r(t,i,{configurable:!0,value:n})}},function(t,n,e){var r,o,i=e(0),u=e(80),a=i.process,c=i.Deno,f=a&&a.versions||c&&c.version,s=f&&f.v8;s&&(o=(r=s.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&u&&(!(r=u.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=u.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},function(t,n,e){var r=e(36);t.exports=function(t,n){var e=t[n];return null==e?void 0:r(e)}},function(t,n,e){"use strict";var r=e(25),o=e(9),i=e(20);t.exports=function(t,n,e){var u=r(n);u in t?o.f(t,u,i(0,e)):t[u]=e}},function(t,n,e){var r=e(0),o=e(1),i=e(3),u=e(19),a=r.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,n,e){var r=e(0).String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},function(t,n,e){var r=e(7),o=e(5),i=Function.prototype,u=r&&Object.getOwnPropertyDescriptor,a=o(i,"name"),c=a&&"something"===function(){}.name,f=a&&(!r||r&&u(i,"name").configurable);t.exports={EXISTS:a,PROPER:c,CONFIGURABLE:f}},function(t,n,e){var r=e(1),o=e(36),i=r(r.bind);t.exports=function(t,n){return o(t),void 0===n?t:i?i(t,n):function(){return t.apply(n,arguments)}}},function(t,n,e){var r=e(39),o=Math.max,i=Math.min;t.exports=function(t,n){var e=r(t);return e<0?o(e+n,0):i(e,n)}},function(t,n,e){var r=e(1),o=e(3),i=e(2),u=e(31),a=e(13),c=e(38),f=function(){},s=[],l=a("Reflect","construct"),p=/^\s*(?:class|function)\b/,v=r(p.exec),d=!p.exec(f),y=function(t){if(!i(t))return!1;try{return l(f,s,t),!0}catch(t){return!1}};t.exports=!l||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 d||!!v(p,c(t))}:y},function(t,n,e){var r=e(54),o=e(1),i=e(51),u=e(15),a=e(17),c=e(70),f=o([].push),s=function(t){var n=1==t,e=2==t,o=3==t,s=4==t,l=6==t,p=7==t,v=5==t||l;return function(d,y,h,x){for(var g,m,b=u(d),S=i(b),w=r(y,h),O=a(S),E=0,M=x||c,I=n?M(d,O):e||p?M(d,0):void 0;O>E;E++)if((v||E in S)&&(m=w(g=S[E],E,b),t))if(n)I[E]=m;else if(m)switch(t){case 3:return!0;case 5:return g;case 6:return E;case 2:f(I,g)}else switch(t){case 4:return!1;case 7:f(I,g)}return l?-1:o||s?s:I}};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,n,e){var r=e(64),o=e(46);t.exports=Object.keys||function(t){return r(t,o)}},function(t,n,e){"use strict";var r=e(12),o=e(106),i=e(29),u=e(21),a=e(66),c=u.set,f=u.getterFor("Array Iterator");t.exports=a(Array,"Array",(function(t,n){c(this,{type:"Array Iterator",target:r(t),index:0,kind:n})}),(function(){var t=f(this),n=t.target,e=t.kind,r=t.index++;return!n||r>=n.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==e?{value:r,done:!1}:"values"==e?{value:n[r],done:!1}:{value:[r,n[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,n,e){var r=e(45);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,n,e){var r=e(7),o=e(3),i=e(44);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,n,e){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);n.f=i?function(t){var n=o(this,t);return!!n&&n.enumerable}:r},function(t,n,e){var r=e(0),o=e(5),i=e(2),u=e(15),a=e(28),c=e(100),f=a("IE_PROTO"),s=r.Object,l=s.prototype;t.exports=c?s.getPrototypeOf:function(t){var n=u(t);if(o(n,f))return n[f];var e=n.constructor;return i(e)&&n instanceof e?e.prototype:n instanceof s?l:null}},function(t,n,e){var r=e(1),o=e(5),i=e(12),u=e(85).indexOf,a=e(23),c=r([].push);t.exports=function(t,n){var e,r=i(t),f=0,s=[];for(e in r)!o(a,e)&&o(r,e)&&c(s,e);for(;n.length>f;)o(r,e=n[f++])&&(~u(s,e)||c(s,e));return s}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){"use strict";var r=e(6),o=e(11),i=e(27),u=e(53),a=e(2),c=e(108),f=e(63),s=e(74),l=e(47),p=e(16),v=e(14),d=e(4),y=e(29),h=e(73),x=u.PROPER,g=u.CONFIGURABLE,m=h.IteratorPrototype,b=h.BUGGY_SAFARI_ITERATORS,S=d("iterator"),w=function(){return this};t.exports=function(t,n,e,u,d,h,O){c(e,n,u);var E,M,I,_=function(t){if(t===d&&N)return N;if(!b&&t in T)return T[t];switch(t){case"keys":case"values":case"entries":return function(){return new e(this,t)}}return function(){return new e(this)}},j=n+" Iterator",A=!1,T=t.prototype,P=T[S]||T["@@iterator"]||d&&T[d],N=!b&&P||_(d),C="Array"==n&&T.entries||P;if(C&&(E=f(C.call(new t)))!==Object.prototype&&E.next&&(i||f(E)===m||(s?s(E,m):a(E[S])||v(E,S,w)),l(E,j,!0,!0),i&&(y[j]=w)),x&&"values"==d&&P&&"values"!==P.name&&(!i&&g?p(T,"name","values"):(A=!0,N=function(){return o(P,this)})),d)if(M={values:_("values"),keys:h?N:_("keys"),entries:_("entries")},O)for(I in M)(b||A||!(I in T))&&v(T,I,M[I]);else r({target:n,proto:!0,forced:b||A},M);return i&&!O||T[S]===N||v(T,S,N,{name:d}),y[n]=N,M}},function(t,n,e){var r=e(5),o=e(84),i=e(24),u=e(9);t.exports=function(t,n){for(var e=o(n),a=u.f,c=i.f,f=0;f<e.length;f++){var s=e[f];r(t,s)||a(t,s,c(n,s))}}},function(t,n,e){var r=e(43),o=e(14),i=e(99);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,n,e){var r=e(3),o=e(2),i=/#|\.prototype\./,u=function(t,n){var e=c[a(t)];return e==s||e!=f&&(o(n)?r(n):!!n)},a=u.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=u.data={},f=u.NATIVE="N",s=u.POLYFILL="P";t.exports=u},function(t,n,e){var r=e(98);t.exports=function(t,n){return new(r(t))(0===n?0:n)}},function(t,n){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,n,e){var r=e(44)("span").classList,o=r&&r.constructor&&r.constructor.prototype;t.exports=o===Object.prototype?void 0:o},function(t,n,e){"use strict";var r,o,i,u=e(3),a=e(2),c=e(18),f=e(63),s=e(14),l=e(4),p=e(27),v=l("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(o=f(f(i)))!==Object.prototype&&(r=o):d=!0),null==r||u((function(){var t={};return r[v].call(t)!==t}))?r={}:p&&(r=c(r)),a(r[v])||s(r,v,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},function(t,n,e){var r=e(1),o=e(10),i=e(109);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,n=!1,e={};try{(t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),n=e instanceof Array}catch(t){}return function(e,r){return o(e),i(r),n?t(e,r):e.__proto__=r,e}}():void 0)},function(t,n,e){var r=e(1);t.exports=r([].slice)},function(t,n,e){var r=e(39),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,n,e){"use strict";var r=e(57).forEach,o=e(88)("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,n,e){"use strict";var r=e(102).charAt,o=e(22),i=e(21),u=e(66),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,n=c(this),e=n.string,o=n.index;return o>=e.length?{value:void 0,done:!0}:(t=r(e,o),n.index+=t.length,{value:t,done:!1})}))},function(t,n,e){var r=e(4);n.f=r},function(t,n,e){var r=e(13);t.exports=r("navigator","userAgent")||""},function(t,n,e){var r=e(3),o=e(4),i=e(48),u=o("species");t.exports=function(t){return i>=51||!r((function(){var n=[];return(n.constructor={})[u]=function(){return{foo:1}},1!==n[t](Boolean).foo}))}},function(t,n,e){"use strict";var r=e(6),o=e(0),i=e(13),u=e(89),a=e(11),c=e(1),f=e(27),s=e(7),l=e(45),p=e(3),v=e(5),d=e(33),y=e(2),h=e(8),x=e(26),g=e(40),m=e(10),b=e(15),S=e(12),w=e(25),O=e(22),E=e(20),M=e(18),I=e(58),_=e(35),j=e(101),A=e(65),T=e(24),P=e(9),N=e(62),C=e(75),k=e(14),R=e(32),D=e(28),L=e(23),F=e(34),G=e(4),z=e(79),B=e(83),U=e(47),V=e(21),H=e(57).forEach,W=D("hidden"),X=G("toPrimitive"),Y=V.set,$=V.getterFor("Symbol"),K=Object.prototype,q=o.Symbol,J=q&&q.prototype,Q=o.TypeError,Z=o.QObject,tt=i("JSON","stringify"),nt=T.f,et=P.f,rt=j.f,ot=N.f,it=c([].push),ut=R("symbols"),at=R("op-symbols"),ct=R("string-to-symbol-registry"),ft=R("symbol-to-string-registry"),st=R("wks"),lt=!Z||!Z.prototype||!Z.prototype.findChild,pt=s&&p((function(){return 7!=M(et({},"a",{get:function(){return et(this,"a",{value:7}).a}})).a}))?function(t,n,e){var r=nt(K,n);r&&delete K[n],et(t,n,e),r&&t!==K&&et(K,n,r)}:et,vt=function(t,n){var e=ut[t]=M(J);return Y(e,{type:"Symbol",tag:t,description:n}),s||(e.description=n),e},dt=function(t,n,e){t===K&&dt(at,n,e),m(t);var r=w(n);return m(e),v(ut,r)?(e.enumerable?(v(t,W)&&t[W][r]&&(t[W][r]=!1),e=M(e,{enumerable:E(0,!1)})):(v(t,W)||et(t,W,E(1,{})),t[W][r]=!0),pt(t,r,e)):et(t,r,e)},yt=function(t,n){m(t);var e=S(n),r=I(e).concat(mt(e));return H(r,(function(n){s&&!a(ht,e,n)||dt(t,n,e[n])})),t},ht=function(t){var n=w(t),e=a(ot,this,n);return!(this===K&&v(ut,n)&&!v(at,n))&&(!(e||!v(this,n)||!v(ut,n)||v(this,W)&&this[W][n])||e)},xt=function(t,n){var e=S(t),r=w(n);if(e!==K||!v(ut,r)||v(at,r)){var o=nt(e,r);return!o||!v(ut,r)||v(e,W)&&e[W][r]||(o.enumerable=!0),o}},gt=function(t){var n=rt(S(t)),e=[];return H(n,(function(t){v(ut,t)||v(L,t)||it(e,t)})),e},mt=function(t){var n=t===K,e=rt(n?at:S(t)),r=[];return H(e,(function(t){!v(ut,t)||n&&!v(K,t)||it(r,ut[t])})),r};(l||(k(J=(q=function(){if(x(J,this))throw Q("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?O(arguments[0]):void 0,n=F(t),e=function(t){this===K&&a(e,at,t),v(this,W)&&v(this[W],n)&&(this[W][n]=!1),pt(this,n,E(1,t))};return s&&lt&&pt(K,n,{configurable:!0,set:e}),vt(n,t)}).prototype,"toString",(function(){return $(this).tag})),k(q,"withoutSetter",(function(t){return vt(F(t),t)})),N.f=ht,P.f=dt,T.f=xt,_.f=j.f=gt,A.f=mt,z.f=function(t){return vt(G(t),t)},s&&(et(J,"description",{configurable:!0,get:function(){return $(this).description}}),f||k(K,"propertyIsEnumerable",ht,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:q}),H(I(st),(function(t){B(t)})),r({target:"Symbol",stat:!0,forced:!l},{for:function(t){var n=O(t);if(v(ct,n))return ct[n];var e=q(n);return ct[n]=e,ft[e]=n,e},keyFor:function(t){if(!g(t))throw Q(t+" is not a symbol");if(v(ft,t))return ft[t]},useSetter:function(){lt=!0},useSimple:function(){lt=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!s},{create:function(t,n){return void 0===n?M(t):yt(M(t),n)},defineProperty:dt,defineProperties:yt,getOwnPropertyDescriptor:xt}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:gt,getOwnPropertySymbols:mt}),r({target:"Object",stat:!0,forced:p((function(){A.f(1)}))},{getOwnPropertySymbols:function(t){return A.f(b(t))}}),tt)&&r({target:"JSON",stat:!0,forced:!l||p((function(){var t=q();return"[null]"!=tt([t])||"{}"!=tt({a:t})||"{}"!=tt(Object(t))}))},{stringify:function(t,n,e){var r=C(arguments),o=n;if((h(n)||void 0!==t)&&!g(t))return d(n)||(n=function(t,n){if(y(o)&&(n=a(o,this,t,n)),!g(n))return n}),r[1]=n,u(tt,null,r)}});if(!J[X]){var bt=J.valueOf;k(J,X,(function(t){return a(bt,this)}))}U(q,"Symbol"),L[W]=!0},function(t,n,e){var r=e(111),o=e(5),i=e(79),u=e(9).f;t.exports=function(t){var n=r.Symbol||(r.Symbol={});o(n,t)||u(n,t,{value:i.f(t)})}},function(t,n,e){var r=e(13),o=e(1),i=e(35),u=e(65),a=e(10),c=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var n=i.f(a(t)),e=u.f;return e?c(n,e(t)):n}},function(t,n,e){var r=e(12),o=e(55),i=e(17),u=function(t){return function(n,e,u){var a,c=r(n),f=i(c),s=o(u,f);if(t&&e!=e){for(;f>s;)if((a=c[s++])!=a)return!0}else for(;f>s;s++)if((t||s in c)&&c[s]===e)return t||s||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},function(t,n,e){var r=e(0),o=e(71),i=e(72),u=e(59),a=e(16),c=e(4),f=c("iterator"),s=c("toStringTag"),l=u.values,p=function(t,n){if(t){if(t[f]!==l)try{a(t,f,l)}catch(n){t[f]=l}if(t[s]||a(t,s,n),o[n])for(var e in u)if(t[e]!==u[e])try{a(t,e,u[e])}catch(n){t[e]=u[e]}}};for(var v in o)p(r[v]&&r[v].prototype,v);p(i,"DOMTokenList")},function(t,n,e){var r=e(0),o=e(11),i=e(8),u=e(40),a=e(49),c=e(96),f=e(4),s=r.TypeError,l=f("toPrimitive");t.exports=function(t,n){if(!i(t)||u(t))return t;var e,r=a(t,l);if(r){if(void 0===n&&(n="default"),e=o(r,t,n),!i(e)||u(e))return e;throw s("Can't convert object to primitive value")}return void 0===n&&(n="number"),c(t,n)}},function(t,n,e){"use strict";var r=e(3);t.exports=function(t,n){var e=[][t];return!!e&&r((function(){e.call(null,n||function(){throw 1},1)}))}},function(t,n){var e=Function.prototype,r=e.apply,o=e.bind,i=e.call;t.exports="object"==typeof Reflect&&Reflect.apply||(o?i.bind(r):function(){return i.apply(r,arguments)})},function(t,n,e){"use strict";var r=e(6),o=e(7),i=e(0),u=e(1),a=e(5),c=e(2),f=e(26),s=e(22),l=e(9).f,p=e(67),v=i.Symbol,d=v&&v.prototype;if(o&&c(v)&&(!("description"in d)||void 0!==v().description)){var y={},h=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:s(arguments[0]),n=f(d,this)?new v(t):void 0===t?v():v(t);return""===t&&(y[n]=!0),n};p(h,v),h.prototype=d,d.constructor=h;var x="Symbol(test)"==String(v("test")),g=u(d.toString),m=u(d.valueOf),b=/^Symbol\((.*)\)[^)]+$/,S=u("".replace),w=u("".slice);l(d,"description",{configurable:!0,get:function(){var t=m(this),n=g(t);if(a(y,t))return"";var e=x?w(n,7,-1):S(n,b,"$1");return""===e?void 0:e}}),r({global:!0,forced:!0},{Symbol:h})}},function(t,n,e){e(83)("iterator")},function(t,n,e){var r=e(6),o=e(7);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:e(9).f})},function(t,n,e){var r=e(7),o=e(9),i=e(10),u=e(12),a=e(58);t.exports=r?Object.defineProperties:function(t,n){i(t);for(var e,r=u(n),c=a(n),f=c.length,s=0;f>s;)o.f(t,e=c[s++],r[e]);return t}},function(t,n,e){var r=e(31),o=e(49),i=e(29),u=e(4)("iterator");t.exports=function(t){if(null!=t)return o(t,u)||o(t,"@@iterator")||i[r(t)]}},function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n,e){var r=e(0),o=e(11),i=e(2),u=e(8),a=r.TypeError;t.exports=function(t,n){var e,r;if("string"===n&&i(e=t.toString)&&!u(r=o(e,t)))return r;if(i(e=t.valueOf)&&!u(r=o(e,t)))return r;if("string"!==n&&i(e=t.toString)&&!u(r=o(e,t)))return r;throw a("Can't convert object to primitive value")}},function(t,n,e){var r=e(0),o=e(2),i=e(38),u=r.WeakMap;t.exports=o(u)&&/native code/.test(i(u))},function(t,n,e){var r=e(0),o=e(33),i=e(56),u=e(8),a=e(4)("species"),c=r.Array;t.exports=function(t){var n;return o(t)&&(n=t.constructor,(i(n)&&(n===c||o(n.prototype))||u(n)&&null===(n=n[a]))&&(n=void 0)),void 0===n?c:n}},function(t,n,e){"use strict";var r=e(43),o=e(31);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,n,e){var r=e(3);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,n,e){var r=e(19),o=e(12),i=e(35).f,u=e(107),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"Window"==r(t)?function(t){try{return i(t)}catch(t){return u(a)}}(t):i(o(t))}},function(t,n,e){var r=e(1),o=e(39),i=e(22),u=e(30),a=r("".charAt),c=r("".charCodeAt),f=r("".slice),s=function(t){return function(n,e){var r,s,l=i(u(n)),p=o(e),v=l.length;return p<0||p>=v?t?"":void 0:(r=c(l,p))<55296||r>56319||p+1===v||(s=c(l,p+1))<56320||s>57343?t?a(l,p):r:t?f(l,p,p+2):s-56320+(r-55296<<10)+65536}};t.exports={codeAt:s(!1),charAt:s(!0)}},function(t,n,e){var r=e(13);t.exports=r("document","documentElement")},function(t,n,e){"use strict";var r=e(6),o=e(77);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,n,e){var r=e(0),o=e(71),i=e(72),u=e(77),a=e(16),c=function(t){if(t&&t.forEach!==u)try{a(t,"forEach",u)}catch(n){t.forEach=u}};for(var f in o)o[f]&&c(r[f]&&r[f].prototype);c(i)},function(t,n,e){var r=e(4),o=e(18),i=e(9),u=r("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,n,e){var r=e(0),o=e(55),i=e(17),u=e(50),a=r.Array,c=Math.max;t.exports=function(t,n,e){for(var r=i(t),f=o(n,r),s=o(void 0===e?r:e,r),l=a(c(s-f,0)),p=0;f<s;f++,p++)u(l,p,t[f]);return l.length=p,l}},function(t,n,e){"use strict";var r=e(73).IteratorPrototype,o=e(18),i=e(20),u=e(47),a=e(29),c=function(){return this};t.exports=function(t,n,e,f){var s=n+" Iterator";return t.prototype=o(r,{next:i(+!f,e)}),u(t,s,!1,!0),a[s]=c,t}},function(t,n,e){var r=e(0),o=e(2),i=r.String,u=r.TypeError;t.exports=function(t){if("object"==typeof t||o(t))return t;throw u("Can't set "+i(t)+" as a prototype")}},function(t,n,e){"use strict";var r,o,i=e(11),u=e(1),a=e(22),c=e(120),f=e(121),s=e(32),l=e(18),p=e(21).get,v=e(125),d=e(126),y=s("native-string-replace",String.prototype.replace),h=RegExp.prototype.exec,x=h,g=u("".charAt),m=u("".indexOf),b=u("".replace),S=u("".slice),w=(o=/b*/g,i(h,r=/a/,"a"),i(h,o,"a"),0!==r.lastIndex||0!==o.lastIndex),O=f.BROKEN_CARET,E=void 0!==/()??/.exec("")[1];(w||E||O||v||d)&&(x=function(t){var n,e,r,o,u,f,s,v=this,d=p(v),M=a(t),I=d.raw;if(I)return I.lastIndex=v.lastIndex,n=i(x,I,M),v.lastIndex=I.lastIndex,n;var _=d.groups,j=O&&v.sticky,A=i(c,v),T=v.source,P=0,N=M;if(j&&(A=b(A,"y",""),-1===m(A,"g")&&(A+="g"),N=S(M,v.lastIndex),v.lastIndex>0&&(!v.multiline||v.multiline&&"\n"!==g(M,v.lastIndex-1))&&(T="(?: "+T+")",N=" "+N,P++),e=new RegExp("^(?:"+T+")",A)),E&&(e=new RegExp("^"+T+"$(?!\\s)",A)),w&&(r=v.lastIndex),o=i(h,j?e:v,N),j?o?(o.input=S(o.input,P),o[0]=S(o[0],P),o.index=v.lastIndex,v.lastIndex+=o[0].length):v.lastIndex=0:w&&o&&(v.lastIndex=v.global?o.index+o[0].length:r),E&&o&&o.length>1&&i(y,o[0],e,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(o[u]=void 0)})),o&&_)for(o.groups=f=l(null),u=0;u<_.length;u++)f[(s=_[u])[0]]=o[s[1]];return o}),t.exports=x},function(t,n,e){var r=e(0);t.exports=r},function(t,n,e){var r=e(4),o=e(29),i=r("iterator"),u=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||u[i]===t)}},function(t,n,e){var r=e(0),o=e(11),i=e(36),u=e(10),a=e(52),c=e(94),f=r.TypeError;t.exports=function(t,n){var e=arguments.length<2?c(t):n;if(i(e))return u(o(e,t));throw f(a(t)+" is not iterable")}},function(t,n,e){var r=e(11),o=e(10),i=e(49);t.exports=function(t,n,e){var u,a;o(t);try{if(!(u=i(t,"return"))){if("throw"===n)throw e;return e}u=r(u,t)}catch(t){a=!0,u=t}if("throw"===n)throw e;if(a)throw u;return o(u),e}},function(t,n,e){var r=e(4)("iterator"),o=!1;try{var i=0,u={next:function(){return{done:!!i++}},return:function(){o=!0}};u[r]=function(){return this},Array.from(u,(function(){throw 2}))}catch(t){}t.exports=function(t,n){if(!n&&!o)return!1;var e=!1;try{var i={};i[r]=function(){return{next:function(){return{done:e=!0}}}},t(i)}catch(t){}return e}},function(t,n,e){"use strict";var r=e(6),o=e(110);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(t,n,e){var r=e(0),o=e(54),i=e(11),u=e(10),a=e(52),c=e(112),f=e(17),s=e(26),l=e(113),p=e(94),v=e(114),d=r.TypeError,y=function(t,n){this.stopped=t,this.result=n},h=y.prototype;t.exports=function(t,n,e){var r,x,g,m,b,S,w,O=e&&e.that,E=!(!e||!e.AS_ENTRIES),M=!(!e||!e.IS_ITERATOR),I=!(!e||!e.INTERRUPTED),_=o(n,O),j=function(t){return r&&v(r,"normal",t),new y(!0,t)},A=function(t){return E?(u(t),I?_(t[0],t[1],j):_(t[0],t[1])):I?_(t,j):_(t)};if(M)r=t;else{if(!(x=p(t)))throw d(a(t)+" is not iterable");if(c(x)){for(g=0,m=f(t);m>g;g++)if((b=A(t[g]))&&s(h,b))return b;return new y(!1)}r=l(t,x)}for(S=r.next;!(w=i(S,r)).done;){try{b=A(w.value)}catch(t){v(r,"throw",t)}if("object"==typeof b&&b&&s(h,b))return b}return new y(!1)}},function(t,n,e){var r=e(0),o=e(26),i=r.TypeError;t.exports=function(t,n){if(o(n,t))return t;throw i("Incorrect invocation")}},function(t,n,e){"use strict";var r=e(6),o=e(0),i=e(3),u=e(33),a=e(8),c=e(15),f=e(17),s=e(50),l=e(70),p=e(81),v=e(4),d=e(48),y=v("isConcatSpreadable"),h=o.TypeError,x=d>=51||!i((function(){var t=[];return t[y]=!1,t.concat()[0]!==t})),g=p("concat"),m=function(t){if(!a(t))return!1;var n=t[y];return void 0!==n?!!n:u(t)};r({target:"Array",proto:!0,forced:!x||!g},{concat:function(t){var n,e,r,o,i,u=c(this),a=l(u,0),p=0;for(n=-1,r=arguments.length;n<r;n++)if(m(i=-1===n?u:arguments[n])){if(p+(o=f(i))>9007199254740991)throw h("Maximum allowed index exceeded");for(e=0;e<o;e++,p++)e in i&&s(a,p,i[e])}else{if(p>=9007199254740991)throw h("Maximum allowed index exceeded");s(a,p++,i)}return a.length=p,a}})},function(t,n,e){"use strict";var r=e(10);t.exports=function(){var t=r(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.dotAll&&(n+="s"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},function(t,n,e){var r=e(3),o=e(0).RegExp,i=r((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),u=i||r((function(){return!o("a","y").sticky})),a=i||r((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,n,e){var r=e(6),o=e(1),i=e(23),u=e(8),a=e(5),c=e(9).f,f=e(35),s=e(101),l=e(146),p=e(34),v=e(148),d=!1,y=p("meta"),h=0,x=function(t){c(t,y,{value:{objectID:"O"+h++,weakData:{}}})},g=t.exports={enable:function(){g.enable=function(){},d=!0;var t=f.f,n=o([].splice),e={};e[y]=1,t(e).length&&(f.f=function(e){for(var r=t(e),o=0,i=r.length;o<i;o++)if(r[o]===y){n(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:s.f}))},fastKey:function(t,n){if(!u(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,y)){if(!l(t))return"F";if(!n)return"E";x(t)}return t[y].objectID},getWeakData:function(t,n){if(!a(t,y)){if(!l(t))return!0;if(!n)return!1;x(t)}return t[y].weakData},onFreeze:function(t){return v&&d&&l(t)&&!a(t,y)&&x(t),t}};i[y]=!0},,function(t,n,e){var r=e(2),o=e(8),i=e(74);t.exports=function(t,n,e){var u,a;return i&&r(u=n.constructor)&&u!==e&&o(a=u.prototype)&&a!==e.prototype&&i(t,a),t}},function(t,n,e){var r=e(3),o=e(0).RegExp;t.exports=r((function(){var t=o(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},function(t,n,e){var r=e(3),o=e(0).RegExp;t.exports=r((function(){var t=o("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},,,,,function(t,n,e){var r=e(6),o=e(132);r({target:"Array",stat:!0,forced:!e(115)((function(t){Array.from(t)}))},{from:o})},function(t,n,e){"use strict";var r=e(0),o=e(54),i=e(11),u=e(15),a=e(133),c=e(112),f=e(56),s=e(17),l=e(50),p=e(113),v=e(94),d=r.Array;t.exports=function(t){var n=u(t),e=f(this),r=arguments.length,y=r>1?arguments[1]:void 0,h=void 0!==y;h&&(y=o(y,r>2?arguments[2]:void 0));var x,g,m,b,S,w,O=v(n),E=0;if(!O||this==d&&c(O))for(x=s(n),g=e?new this(x):d(x);x>E;E++)w=h?y(n[E],E):n[E],l(g,E,w);else for(S=(b=p(n,O)).next,g=e?new this:[];!(m=i(S,b)).done;E++)w=h?a(b,y,[m.value,E],!0):m.value,l(g,E,w);return g.length=E,g}},function(t,n,e){var r=e(10),o=e(114);t.exports=function(t,n,e,i){try{return i?n(r(e)[0],e[1]):n(e)}catch(n){o(t,"throw",n)}}},function(t,n,e){e(6)({target:"Array",stat:!0},{isArray:e(33)})},function(t,n,e){"use strict";var r=e(6),o=e(0),i=e(33),u=e(56),a=e(8),c=e(55),f=e(17),s=e(12),l=e(50),p=e(4),v=e(81),d=e(75),y=v("slice"),h=p("species"),x=o.Array,g=Math.max;r({target:"Array",proto:!0,forced:!y},{slice:function(t,n){var e,r,o,p=s(this),v=f(p),y=c(t,v),m=c(void 0===n?v:n,v);if(i(p)&&(e=p.constructor,(u(e)&&(e===x||i(e.prototype))||a(e)&&null===(e=e[h]))&&(e=void 0),e===x||void 0===e))return d(p,y,m);for(r=new(void 0===e?x:e)(g(m-y,0)),o=0;y<m;y++,o++)y in p&&l(r,o,p[y]);return r.length=o,r}})},function(t,n,e){var r=e(7),o=e(53).EXISTS,i=e(1),u=e(9).f,a=Function.prototype,c=i(a.toString),f=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,s=i(f.exec);r&&!o&&u(a,"name",{configurable:!0,get:function(){try{return s(f,c(this))[1]}catch(t){return""}}})},function(t,n,e){"use strict";var r=e(6),o=e(0),i=e(1),u=e(69),a=e(14),c=e(122),f=e(117),s=e(118),l=e(2),p=e(8),v=e(3),d=e(115),y=e(47),h=e(124);t.exports=function(t,n,e){var x=-1!==t.indexOf("Map"),g=-1!==t.indexOf("Weak"),m=x?"set":"add",b=o[t],S=b&&b.prototype,w=b,O={},E=function(t){var n=i(S[t]);a(S,t,"add"==t?function(t){return n(this,0===t?0:t),this}:"delete"==t?function(t){return!(g&&!p(t))&&n(this,0===t?0:t)}:"get"==t?function(t){return g&&!p(t)?void 0:n(this,0===t?0:t)}:"has"==t?function(t){return!(g&&!p(t))&&n(this,0===t?0:t)}:function(t,e){return n(this,0===t?0:t,e),this})};if(u(t,!l(b)||!(g||S.forEach&&!v((function(){(new b).entries().next()})))))w=e.getConstructor(n,t,x,m),c.enable();else if(u(t,!0)){var M=new w,I=M[m](g?{}:-0,1)!=M,_=v((function(){M.has(1)})),j=d((function(t){new b(t)})),A=!g&&v((function(){for(var t=new b,n=5;n--;)t[m](n,n);return!t.has(-0)}));j||((w=n((function(t,n){s(t,S);var e=h(new b,t,w);return null!=n&&f(n,e[m],{that:e,AS_ENTRIES:x}),e}))).prototype=S,S.constructor=w),(_||A)&&(E("delete"),E("has"),x&&E("get")),(A||I)&&E(m),g&&S.clear&&delete S.clear}return O[t]=w,r({global:!0,forced:w!=b},O),y(w,t),g||e.setStrong(w,t,x),w}},function(t,n,e){"use strict";var r=e(9).f,o=e(18),i=e(139),u=e(54),a=e(118),c=e(117),f=e(66),s=e(140),l=e(7),p=e(122).fastKey,v=e(21),d=v.set,y=v.getterFor;t.exports={getConstructor:function(t,n,e,f){var s=t((function(t,r){a(t,v),d(t,{type:n,index:o(null),first:void 0,last:void 0,size:0}),l||(t.size=0),null!=r&&c(r,t[f],{that:t,AS_ENTRIES:e})})),v=s.prototype,h=y(n),x=function(t,n,e){var r,o,i=h(t),u=g(t,n);return u?u.value=e:(i.last=u={index:o=p(n,!0),key:n,value:e,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=u),r&&(r.next=u),l?i.size++:t.size++,"F"!==o&&(i.index[o]=u)),t},g=function(t,n){var e,r=h(t),o=p(n);if("F"!==o)return r.index[o];for(e=r.first;e;e=e.next)if(e.key==n)return e};return i(v,{clear:function(){for(var t=h(this),n=t.index,e=t.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=void 0),delete n[e.index],e=e.next;t.first=t.last=void 0,l?t.size=0:this.size=0},delete:function(t){var n=h(this),e=g(this,t);if(e){var r=e.next,o=e.previous;delete n.index[e.index],e.removed=!0,o&&(o.next=r),r&&(r.previous=o),n.first==e&&(n.first=r),n.last==e&&(n.last=o),l?n.size--:this.size--}return!!e},forEach:function(t){for(var n,e=h(this),r=u(t,arguments.length>1?arguments[1]:void 0);n=n?n.next:e.first;)for(r(n.value,n.key,this);n&&n.removed;)n=n.previous},has:function(t){return!!g(this,t)}}),i(v,e?{get:function(t){var n=g(this,t);return n&&n.value},set:function(t,n){return x(this,0===t?0:t,n)}}:{add:function(t){return x(this,t=0===t?0:t,t)}}),l&&r(v,"size",{get:function(){return h(this).size}}),s},setStrong:function(t,n,e){var r=n+" Iterator",o=y(n),i=y(r);f(t,n,(function(t,n){d(this,{type:r,target:t,state:o(t),kind:n,last:void 0})}),(function(){for(var t=i(this),n=t.kind,e=t.last;e&&e.removed;)e=e.previous;return t.target&&(t.last=e=e?e.next:t.state.first)?"keys"==n?{value:e.key,done:!1}:"values"==n?{value:e.value,done:!1}:{value:[e.key,e.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),e?"entries":"values",!e,!0),s(n)}}},function(t,n,e){var r=e(14);t.exports=function(t,n,e){for(var o in n)r(t,o,n[o],e);return t}},function(t,n,e){"use strict";var r=e(13),o=e(9),i=e(4),u=e(7),a=i("species");t.exports=function(t){var n=r(t),e=o.f;u&&n&&!n[a]&&e(n,a,{configurable:!0,get:function(){return this}})}},,,,,function(t,n,e){"use strict";e(137)("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),e(138))},function(t,n,e){var r=e(3),o=e(8),i=e(19),u=e(147),a=Object.isExtensible,c=r((function(){a(1)}));t.exports=c||u?function(t){return!!o(t)&&((!u||"ArrayBuffer"!=i(t))&&(!a||a(t)))}:a},function(t,n,e){var r=e(3);t.exports=r((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},function(t,n,e){var r=e(3);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},,,,,,,,,,,,function(t,n,e){"use strict";var r=e(7),o=e(0),i=e(1),u=e(69),a=e(14),c=e(5),f=e(124),s=e(26),l=e(40),p=e(87),v=e(3),d=e(35).f,y=e(24).f,h=e(9).f,x=e(161),g=e(162).trim,m=o.Number,b=m.prototype,S=o.TypeError,w=i("".slice),O=i("".charCodeAt),E=function(t){var n=p(t,"number");return"bigint"==typeof n?n:M(n)},M=function(t){var n,e,r,o,i,u,a,c,f=p(t,"number");if(l(f))throw S("Cannot convert a Symbol value to a number");if("string"==typeof f&&f.length>2)if(f=g(f),43===(n=O(f,0))||45===n){if(88===(e=O(f,2))||120===e)return NaN}else if(48===n){switch(O(f,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+f}for(u=(i=w(f,2)).length,a=0;a<u;a++)if((c=O(i,a))<48||c>o)return NaN;return parseInt(i,r)}return+f};if(u("Number",!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var I,_=function(t){var n=arguments.length<1?0:m(E(t)),e=this;return s(b,e)&&v((function(){x(e)}))?f(Object(n),e,_):n},j=r?d(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),A=0;j.length>A;A++)c(m,I=j[A])&&!c(_,I)&&h(_,I,y(m,I));_.prototype=b,b.constructor=_,a(o,"Number",_)}},function(t,n,e){var r=e(1);t.exports=r(1..valueOf)},function(t,n,e){var r=e(1),o=e(30),i=e(22),u=e(163),a=r("".replace),c="["+u+"]",f=RegExp("^"+c+c+"*"),s=RegExp(c+c+"*$"),l=function(t){return function(n){var e=i(o(n));return 1&t&&(e=a(e,f,"")),2&t&&(e=a(e,s,"")),e}};t.exports={start:l(1),end:l(2),trim:l(3)}},function(t,n){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},,,,,,,,,,,,,,,,function(t,n,e){e(6)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},,,,,,,,,,,,,,,,,,,,,function(t,n,e){"use strict";e.r(n),e.d(n,"ContextMenu",(function(){return a}));e(59),e(145),e(68),e(78),e(86),e(201),e(160),e(179),e(104),e(105),e(119),e(92),e(134),e(82),e(90),e(91),e(135),e(136),e(131),e(116);function r(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==e)return;var r,o,i=[],u=!0,a=!1;try{for(e=e.call(t);!(u=(r=e.next()).done)&&(i.push(r.value),!n||i.length!==n);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==e.return||e.return()}finally{if(a)throw o}}return i}(t,n)||function(t,n){if(!t)return;if("string"==typeof t)return o(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return o(t,n)}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function i(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var a=function(){function t(n){var e=this,r=n.lf;!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),u(this,"menuTypeMap",new Map),u(this,"listenDelete",(function(){e.hideContextMenu()})),this.lf=r,this.__menuDOM=document.createElement("div"),this.__menuDOM.className="lf-inner-context",this.menuTypeMap.set("menu-common",[]),this.lf.setContextMenuByType=function(t,n){e.menuTypeMap.set(t,n)},this.lf.setContextMenuItems=function(t){e.setContextMenuItems(t)},this.lf.showContextMenu=function(t){e.showContextMenu(t)},this.lf.hideContextMenu=function(){e.hideContextMenu()}}var n,e,o;return n=t,(e=[{key:"render",value:function(t,n){var e=this;this.container=n,t.on("node:click",(function(t){var n=t.data;e._activeData=n,e.createContextMenu()})),t.on("edge:click",(function(t){var n=t.data;e._activeData=n,e.createContextMenu()})),t.on("blank:click",(function(){e.hideContextMenu()}))}},{key:"hideContextMenu",value:function(){this.__menuDOM.innerHTML="",this.__menuDOM.style.display="none",this.isShow&&this.container.removeChild(this.__menuDOM),this.lf.off("node:delete,edge:delete,node:drag,graph:transform",this.listenDelete),this.isShow=!1}},{key:"showContextMenu",value:function(t){t&&t.id?(this._activeData=t,this.createContextMenu()):console.warn("请检查传入的参数")}},{key:"setContextMenuItems",value:function(t){this.menuTypeMap.set("menu-common",t)}},{key:"getContextMenuPosition",value:function(){var t=this._activeData,n=this.lf.graphModel.getElement(t.id);if(n){var e,r;if("edge"===n.BaseType){e=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER;var o=n.getData();e=Math.max(o.startPoint.x,e),r=Math.min(o.startPoint.y,r),e=Math.max(o.endPoint.x,e),r=Math.min(o.endPoint.y,r),o.pointsList&&o.pointsList.forEach((function(t){e=Math.max(t.x,e),r=Math.min(t.y,r)}))}return"node"===n.BaseType&&(e=t.x+n.width/2,r=t.y-n.height/2),this.lf.graphModel.transformModel.CanvasPointToHtmlPoint([e,r])}console.warn("找不到元素".concat(t.id))}},{key:"createContextMenu",value:function(){var t=this;if(!this.lf.options.isSilentMode){var n=this.menuTypeMap.get(this._activeData.type)||[];n=n.concat(this.menuTypeMap.get("menu-common"));var e=document.createDocumentFragment();n.forEach((function(n){var r=document.createElement("div");r.className="lf-context-item";var o=document.createElement("img");o.src=n.icon,o.className="lf-context-img",n.className&&(r.className="".concat(r.className," ").concat(n.className)),o.addEventListener("click",(function(){t.hideContextMenu(),n.callback?n.callback(t._activeData):t.addNode({sourceId:t._activeData.id,x:t._activeData.x,y:t._activeData.y,properties:n.properties,type:n.type})})),r.appendChild(o),e.appendChild(r)})),this.__menuDOM.innerHTML="",this.__menuDOM.appendChild(e),this.showMenu()}}},{key:"addNode",value:function(t,n){var e=void 0!==n;void 0===n&&(n=t.y);var r=this.lf.getNodeModelById(t.sourceId),o=t.x-r.width+200,i=n-t.y/2-20,u=t.x+r.width+200,a=n+t.y/2+20;if(this.lf.getAreaElement([o,i],[u,a]).length)return n+=100,void this.addNode(t,n);var c,f,s=this.lf.addNode({type:t.type,x:t.x+200,y:n,properties:t.properties});e&&(c={x:t.x,y:t.y+r.height/2},f={x:s.x-s.width/2,y:s.y}),this.lf.addEdge({sourceNodeId:t.sourceId,targetNodeId:s.id,startPoint:c,endPoint:f})}},{key:"showMenu",value:function(){var t=r(this.getContextMenuPosition(),2),n=t[0],e=t[1];this.__menuDOM.style.display="flex",this.__menuDOM.style.top="".concat(e,"px"),this.__menuDOM.style.left="".concat(n+10,"px"),this.container.appendChild(this.__menuDOM),!this.isShow&&this.lf.on("node:delete,edge:delete,node:drag,graph:transform",this.listenDelete),this.isShow=!0}}])&&i(n.prototype,e),o&&i(n,o),t}();u(a,"pluginName","contextMenu"),n.default=a},function(t,n,e){e(6)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})}])}));
1
+ !function(t,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var e=n();for(var r in e)("object"==typeof exports?exports:t)[r]=e[r]}}(window,(function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=200)}([function(t,n,e){(function(n){var e=function(t){return t&&t.Math==Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n&&n)||function(){return this}()||Function("return this")()}).call(this,e(95))},function(t,n){var e=Function.prototype,r=e.bind,o=e.call,i=r&&r.bind(o);t.exports=r?function(t){return t&&i(o,t)}:function(t){return t&&function(){return o.apply(t,arguments)}}},function(t,n){t.exports=function(t){return"function"==typeof t}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,e){var r=e(0),o=e(32),i=e(5),u=e(34),a=e(45),c=e(60),f=o("wks"),s=r.Symbol,l=s&&s.for,p=c?s:s&&s.withoutSetter||u;t.exports=function(t){if(!i(f,t)||!a&&"string"!=typeof f[t]){var n="Symbol."+t;a&&i(s,t)?f[t]=s[t]:f[t]=c&&l?l(n):p(n)}return f[t]}},function(t,n,e){var r=e(1),o=e(15),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,n){return i(o(t),n)}},function(t,n,e){var r=e(0),o=e(24).f,i=e(16),u=e(14),a=e(42),c=e(67),f=e(69);t.exports=function(t,n){var e,s,l,p,v,d=t.target,y=t.global,h=t.stat;if(e=y?r:h?r[d]||a(d,{}):(r[d]||{}).prototype)for(s in n){if(p=n[s],l=t.noTargetGet?(v=o(e,s))&&v.value:e[s],!f(y?s:d+(h?".":"#")+s,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;c(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),u(e,s,p,t)}}},function(t,n,e){var r=e(3);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,n,e){var r=e(2);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},function(t,n,e){var r=e(0),o=e(7),i=e(61),u=e(10),a=e(25),c=r.TypeError,f=Object.defineProperty;n.f=o?f:function(t,n,e){if(u(t),n=a(n),u(e),i)try{return f(t,n,e)}catch(t){}if("get"in e||"set"in e)throw c("Accessors not supported");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){var r=e(0),o=e(8),i=r.String,u=r.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not an object")}},function(t,n){var e=Function.prototype.call;t.exports=e.bind?e.bind(e):function(){return e.apply(e,arguments)}},function(t,n,e){var r=e(51),o=e(30);t.exports=function(t){return r(o(t))}},function(t,n,e){var r=e(0),o=e(2),i=function(t){return o(t)?t:void 0};t.exports=function(t,n){return arguments.length<2?i(r[t]):r[t]&&r[t][n]}},function(t,n,e){var r=e(0),o=e(2),i=e(5),u=e(16),a=e(42),c=e(38),f=e(21),s=e(53).CONFIGURABLE,l=f.get,p=f.enforce,v=String(String).split("String");(t.exports=function(t,n,e,c){var f,l=!!c&&!!c.unsafe,d=!!c&&!!c.enumerable,y=!!c&&!!c.noTargetGet,h=c&&void 0!==c.name?c.name:n;o(e)&&("Symbol("===String(h).slice(0,7)&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(e,"name")||s&&e.name!==h)&&u(e,"name",h),(f=p(e)).source||(f.source=v.join("string"==typeof h?h:""))),t!==r?(l?!y&&t[n]&&(d=!0):delete t[n],d?t[n]=e:u(t,n,e)):d?t[n]=e:a(n,e)})(Function.prototype,"toString",(function(){return o(this)&&l(this).source||c(this)}))},function(t,n,e){var r=e(0),o=e(30),i=r.Object;t.exports=function(t){return i(o(t))}},function(t,n,e){var r=e(7),o=e(9),i=e(20);t.exports=r?function(t,n,e){return o.f(t,n,i(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){var r=e(76);t.exports=function(t){return r(t.length)}},function(t,n,e){var r,o=e(10),i=e(93),u=e(46),a=e(23),c=e(103),f=e(44),s=e(28),l=s("IE_PROTO"),p=function(){},v=function(t){return"<script>"+t+"<\/script>"},d=function(t){t.write(v("")),t.close();var n=t.parentWindow.Object;return t=null,n},y=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,n;y="undefined"!=typeof document?document.domain&&r?d(r):((n=f("iframe")).style.display="none",c.appendChild(n),n.src=String("javascript:"),(t=n.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):d(r);for(var e=u.length;e--;)delete y.prototype[u[e]];return y()};a[l]=!0,t.exports=Object.create||function(t,n){var e;return null!==t?(p.prototype=o(t),e=new p,p.prototype=null,e[l]=t):e=y(),void 0===n?e:i(e,n)}},function(t,n,e){var r=e(1),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,e){var r,o,i,u=e(97),a=e(0),c=e(1),f=e(8),s=e(16),l=e(5),p=e(41),v=e(28),d=e(23),y=a.TypeError,h=a.WeakMap;if(u||p.state){var x=p.state||(p.state=new h),g=c(x.get),m=c(x.has),b=c(x.set);r=function(t,n){if(m(x,t))throw new y("Object already initialized");return n.facade=t,b(x,t,n),n},o=function(t){return g(x,t)||{}},i=function(t){return m(x,t)}}else{var S=v("state");d[S]=!0,r=function(t,n){if(l(t,S))throw new y("Object already initialized");return n.facade=t,s(t,S,n),n},o=function(t){return l(t,S)?t[S]:{}},i=function(t){return l(t,S)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(n){var e;if(!f(n)||(e=o(n)).type!==t)throw y("Incompatible receiver, "+t+" required");return e}}}},function(t,n,e){var r=e(0),o=e(31),i=r.String;t.exports=function(t){if("Symbol"===o(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},function(t,n){t.exports={}},function(t,n,e){var r=e(7),o=e(11),i=e(62),u=e(20),a=e(12),c=e(25),f=e(5),s=e(61),l=Object.getOwnPropertyDescriptor;n.f=r?l:function(t,n){if(t=a(t),n=c(n),s)try{return l(t,n)}catch(t){}if(f(t,n))return u(!o(i.f,t,n),t[n])}},function(t,n,e){var r=e(87),o=e(40);t.exports=function(t){var n=r(t,"string");return o(n)?n:n+""}},function(t,n,e){var r=e(1);t.exports=r({}.isPrototypeOf)},function(t,n){t.exports=!1},function(t,n,e){var r=e(32),o=e(34),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,n){t.exports={}},function(t,n,e){var r=e(0).TypeError;t.exports=function(t){if(null==t)throw r("Can't call method on "+t);return t}},function(t,n,e){var r=e(0),o=e(43),i=e(2),u=e(19),a=e(4)("toStringTag"),c=r.Object,f="Arguments"==u(function(){return arguments}());t.exports=o?u:function(t){var n,e,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,n){try{return t[n]}catch(t){}}(n=c(t),a))?e:f?u(n):"Object"==(r=u(n))&&i(n.callee)?"Arguments":r}},function(t,n,e){var r=e(27),o=e(41);(t.exports=function(t,n){return o[t]||(o[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.19.3",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(t,n,e){var r=e(19);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){var r=e(1),o=0,i=Math.random(),u=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+u(++o+i,36)}},function(t,n,e){var r=e(64),o=e(46).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,n,e){var r=e(0),o=e(2),i=e(52),u=r.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not a function")}},,function(t,n,e){var r=e(1),o=e(2),i=e(41),u=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return u(t)}),t.exports=i.inspectSource},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){var n=+t;return n!=n||0===n?0:(n>0?r:e)(n)}},function(t,n,e){var r=e(0),o=e(13),i=e(2),u=e(26),a=e(60),c=r.Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var n=o("Symbol");return i(n)&&u(n.prototype,c(t))}},function(t,n,e){var r=e(0),o=e(42),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,n,e){var r=e(0),o=Object.defineProperty;t.exports=function(t,n){try{o(r,t,{value:n,configurable:!0,writable:!0})}catch(e){r[t]=n}return n}},function(t,n,e){var r={};r[e(4)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,n,e){var r=e(0),o=e(8),i=r.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},function(t,n,e){var r=e(48),o=e(3);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(t,n){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,n,e){var r=e(9).f,o=e(5),i=e(4)("toStringTag");t.exports=function(t,n,e){t&&!o(t=e?t:t.prototype,i)&&r(t,i,{configurable:!0,value:n})}},function(t,n,e){var r,o,i=e(0),u=e(80),a=i.process,c=i.Deno,f=a&&a.versions||c&&c.version,s=f&&f.v8;s&&(o=(r=s.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&u&&(!(r=u.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=u.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},function(t,n,e){var r=e(36);t.exports=function(t,n){var e=t[n];return null==e?void 0:r(e)}},function(t,n,e){"use strict";var r=e(25),o=e(9),i=e(20);t.exports=function(t,n,e){var u=r(n);u in t?o.f(t,u,i(0,e)):t[u]=e}},function(t,n,e){var r=e(0),o=e(1),i=e(3),u=e(19),a=r.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,n,e){var r=e(0).String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},function(t,n,e){var r=e(7),o=e(5),i=Function.prototype,u=r&&Object.getOwnPropertyDescriptor,a=o(i,"name"),c=a&&"something"===function(){}.name,f=a&&(!r||r&&u(i,"name").configurable);t.exports={EXISTS:a,PROPER:c,CONFIGURABLE:f}},function(t,n,e){var r=e(1),o=e(36),i=r(r.bind);t.exports=function(t,n){return o(t),void 0===n?t:i?i(t,n):function(){return t.apply(n,arguments)}}},function(t,n,e){var r=e(39),o=Math.max,i=Math.min;t.exports=function(t,n){var e=r(t);return e<0?o(e+n,0):i(e,n)}},function(t,n,e){var r=e(1),o=e(3),i=e(2),u=e(31),a=e(13),c=e(38),f=function(){},s=[],l=a("Reflect","construct"),p=/^\s*(?:class|function)\b/,v=r(p.exec),d=!p.exec(f),y=function(t){if(!i(t))return!1;try{return l(f,s,t),!0}catch(t){return!1}};t.exports=!l||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 d||!!v(p,c(t))}:y},function(t,n,e){var r=e(54),o=e(1),i=e(51),u=e(15),a=e(17),c=e(70),f=o([].push),s=function(t){var n=1==t,e=2==t,o=3==t,s=4==t,l=6==t,p=7==t,v=5==t||l;return function(d,y,h,x){for(var g,m,b=u(d),S=i(b),w=r(y,h),O=a(S),E=0,M=x||c,I=n?M(d,O):e||p?M(d,0):void 0;O>E;E++)if((v||E in S)&&(m=w(g=S[E],E,b),t))if(n)I[E]=m;else if(m)switch(t){case 3:return!0;case 5:return g;case 6:return E;case 2:f(I,g)}else switch(t){case 4:return!1;case 7:f(I,g)}return l?-1:o||s?s:I}};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,n,e){var r=e(64),o=e(46);t.exports=Object.keys||function(t){return r(t,o)}},function(t,n,e){"use strict";var r=e(12),o=e(106),i=e(29),u=e(21),a=e(66),c=u.set,f=u.getterFor("Array Iterator");t.exports=a(Array,"Array",(function(t,n){c(this,{type:"Array Iterator",target:r(t),index:0,kind:n})}),(function(){var t=f(this),n=t.target,e=t.kind,r=t.index++;return!n||r>=n.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==e?{value:r,done:!1}:"values"==e?{value:n[r],done:!1}:{value:[r,n[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,n,e){var r=e(45);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,n,e){var r=e(7),o=e(3),i=e(44);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,n,e){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);n.f=i?function(t){var n=o(this,t);return!!n&&n.enumerable}:r},function(t,n,e){var r=e(0),o=e(5),i=e(2),u=e(15),a=e(28),c=e(100),f=a("IE_PROTO"),s=r.Object,l=s.prototype;t.exports=c?s.getPrototypeOf:function(t){var n=u(t);if(o(n,f))return n[f];var e=n.constructor;return i(e)&&n instanceof e?e.prototype:n instanceof s?l:null}},function(t,n,e){var r=e(1),o=e(5),i=e(12),u=e(85).indexOf,a=e(23),c=r([].push);t.exports=function(t,n){var e,r=i(t),f=0,s=[];for(e in r)!o(a,e)&&o(r,e)&&c(s,e);for(;n.length>f;)o(r,e=n[f++])&&(~u(s,e)||c(s,e));return s}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){"use strict";var r=e(6),o=e(11),i=e(27),u=e(53),a=e(2),c=e(108),f=e(63),s=e(74),l=e(47),p=e(16),v=e(14),d=e(4),y=e(29),h=e(73),x=u.PROPER,g=u.CONFIGURABLE,m=h.IteratorPrototype,b=h.BUGGY_SAFARI_ITERATORS,S=d("iterator"),w=function(){return this};t.exports=function(t,n,e,u,d,h,O){c(e,n,u);var E,M,I,_=function(t){if(t===d&&N)return N;if(!b&&t in A)return A[t];switch(t){case"keys":case"values":case"entries":return function(){return new e(this,t)}}return function(){return new e(this)}},j=n+" Iterator",T=!1,A=t.prototype,P=A[S]||A["@@iterator"]||d&&A[d],N=!b&&P||_(d),C="Array"==n&&A.entries||P;if(C&&(E=f(C.call(new t)))!==Object.prototype&&E.next&&(i||f(E)===m||(s?s(E,m):a(E[S])||v(E,S,w)),l(E,j,!0,!0),i&&(y[j]=w)),x&&"values"==d&&P&&"values"!==P.name&&(!i&&g?p(A,"name","values"):(T=!0,N=function(){return o(P,this)})),d)if(M={values:_("values"),keys:h?N:_("keys"),entries:_("entries")},O)for(I in M)(b||T||!(I in A))&&v(A,I,M[I]);else r({target:n,proto:!0,forced:b||T},M);return i&&!O||A[S]===N||v(A,S,N,{name:d}),y[n]=N,M}},function(t,n,e){var r=e(5),o=e(84),i=e(24),u=e(9);t.exports=function(t,n){for(var e=o(n),a=u.f,c=i.f,f=0;f<e.length;f++){var s=e[f];r(t,s)||a(t,s,c(n,s))}}},function(t,n,e){var r=e(43),o=e(14),i=e(99);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,n,e){var r=e(3),o=e(2),i=/#|\.prototype\./,u=function(t,n){var e=c[a(t)];return e==s||e!=f&&(o(n)?r(n):!!n)},a=u.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=u.data={},f=u.NATIVE="N",s=u.POLYFILL="P";t.exports=u},function(t,n,e){var r=e(98);t.exports=function(t,n){return new(r(t))(0===n?0:n)}},function(t,n){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,n,e){var r=e(44)("span").classList,o=r&&r.constructor&&r.constructor.prototype;t.exports=o===Object.prototype?void 0:o},function(t,n,e){"use strict";var r,o,i,u=e(3),a=e(2),c=e(18),f=e(63),s=e(14),l=e(4),p=e(27),v=l("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(o=f(f(i)))!==Object.prototype&&(r=o):d=!0),null==r||u((function(){var t={};return r[v].call(t)!==t}))?r={}:p&&(r=c(r)),a(r[v])||s(r,v,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},function(t,n,e){var r=e(1),o=e(10),i=e(109);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,n=!1,e={};try{(t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),n=e instanceof Array}catch(t){}return function(e,r){return o(e),i(r),n?t(e,r):e.__proto__=r,e}}():void 0)},function(t,n,e){var r=e(1);t.exports=r([].slice)},function(t,n,e){var r=e(39),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,n,e){"use strict";var r=e(57).forEach,o=e(88)("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,n,e){"use strict";var r=e(102).charAt,o=e(22),i=e(21),u=e(66),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,n=c(this),e=n.string,o=n.index;return o>=e.length?{value:void 0,done:!0}:(t=r(e,o),n.index+=t.length,{value:t,done:!1})}))},function(t,n,e){var r=e(4);n.f=r},function(t,n,e){var r=e(13);t.exports=r("navigator","userAgent")||""},function(t,n,e){var r=e(3),o=e(4),i=e(48),u=o("species");t.exports=function(t){return i>=51||!r((function(){var n=[];return(n.constructor={})[u]=function(){return{foo:1}},1!==n[t](Boolean).foo}))}},function(t,n,e){"use strict";var r=e(6),o=e(0),i=e(13),u=e(89),a=e(11),c=e(1),f=e(27),s=e(7),l=e(45),p=e(3),v=e(5),d=e(33),y=e(2),h=e(8),x=e(26),g=e(40),m=e(10),b=e(15),S=e(12),w=e(25),O=e(22),E=e(20),M=e(18),I=e(58),_=e(35),j=e(101),T=e(65),A=e(24),P=e(9),N=e(62),C=e(75),k=e(14),R=e(32),D=e(28),L=e(23),F=e(34),G=e(4),z=e(79),B=e(83),U=e(47),V=e(21),H=e(57).forEach,W=D("hidden"),X=G("toPrimitive"),Y=V.set,$=V.getterFor("Symbol"),K=Object.prototype,q=o.Symbol,J=q&&q.prototype,Q=o.TypeError,Z=o.QObject,tt=i("JSON","stringify"),nt=A.f,et=P.f,rt=j.f,ot=N.f,it=c([].push),ut=R("symbols"),at=R("op-symbols"),ct=R("string-to-symbol-registry"),ft=R("symbol-to-string-registry"),st=R("wks"),lt=!Z||!Z.prototype||!Z.prototype.findChild,pt=s&&p((function(){return 7!=M(et({},"a",{get:function(){return et(this,"a",{value:7}).a}})).a}))?function(t,n,e){var r=nt(K,n);r&&delete K[n],et(t,n,e),r&&t!==K&&et(K,n,r)}:et,vt=function(t,n){var e=ut[t]=M(J);return Y(e,{type:"Symbol",tag:t,description:n}),s||(e.description=n),e},dt=function(t,n,e){t===K&&dt(at,n,e),m(t);var r=w(n);return m(e),v(ut,r)?(e.enumerable?(v(t,W)&&t[W][r]&&(t[W][r]=!1),e=M(e,{enumerable:E(0,!1)})):(v(t,W)||et(t,W,E(1,{})),t[W][r]=!0),pt(t,r,e)):et(t,r,e)},yt=function(t,n){m(t);var e=S(n),r=I(e).concat(mt(e));return H(r,(function(n){s&&!a(ht,e,n)||dt(t,n,e[n])})),t},ht=function(t){var n=w(t),e=a(ot,this,n);return!(this===K&&v(ut,n)&&!v(at,n))&&(!(e||!v(this,n)||!v(ut,n)||v(this,W)&&this[W][n])||e)},xt=function(t,n){var e=S(t),r=w(n);if(e!==K||!v(ut,r)||v(at,r)){var o=nt(e,r);return!o||!v(ut,r)||v(e,W)&&e[W][r]||(o.enumerable=!0),o}},gt=function(t){var n=rt(S(t)),e=[];return H(n,(function(t){v(ut,t)||v(L,t)||it(e,t)})),e},mt=function(t){var n=t===K,e=rt(n?at:S(t)),r=[];return H(e,(function(t){!v(ut,t)||n&&!v(K,t)||it(r,ut[t])})),r};(l||(k(J=(q=function(){if(x(J,this))throw Q("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?O(arguments[0]):void 0,n=F(t),e=function(t){this===K&&a(e,at,t),v(this,W)&&v(this[W],n)&&(this[W][n]=!1),pt(this,n,E(1,t))};return s&&lt&&pt(K,n,{configurable:!0,set:e}),vt(n,t)}).prototype,"toString",(function(){return $(this).tag})),k(q,"withoutSetter",(function(t){return vt(F(t),t)})),N.f=ht,P.f=dt,A.f=xt,_.f=j.f=gt,T.f=mt,z.f=function(t){return vt(G(t),t)},s&&(et(J,"description",{configurable:!0,get:function(){return $(this).description}}),f||k(K,"propertyIsEnumerable",ht,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:q}),H(I(st),(function(t){B(t)})),r({target:"Symbol",stat:!0,forced:!l},{for:function(t){var n=O(t);if(v(ct,n))return ct[n];var e=q(n);return ct[n]=e,ft[e]=n,e},keyFor:function(t){if(!g(t))throw Q(t+" is not a symbol");if(v(ft,t))return ft[t]},useSetter:function(){lt=!0},useSimple:function(){lt=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!s},{create:function(t,n){return void 0===n?M(t):yt(M(t),n)},defineProperty:dt,defineProperties:yt,getOwnPropertyDescriptor:xt}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:gt,getOwnPropertySymbols:mt}),r({target:"Object",stat:!0,forced:p((function(){T.f(1)}))},{getOwnPropertySymbols:function(t){return T.f(b(t))}}),tt)&&r({target:"JSON",stat:!0,forced:!l||p((function(){var t=q();return"[null]"!=tt([t])||"{}"!=tt({a:t})||"{}"!=tt(Object(t))}))},{stringify:function(t,n,e){var r=C(arguments),o=n;if((h(n)||void 0!==t)&&!g(t))return d(n)||(n=function(t,n){if(y(o)&&(n=a(o,this,t,n)),!g(n))return n}),r[1]=n,u(tt,null,r)}});if(!J[X]){var bt=J.valueOf;k(J,X,(function(t){return a(bt,this)}))}U(q,"Symbol"),L[W]=!0},function(t,n,e){var r=e(111),o=e(5),i=e(79),u=e(9).f;t.exports=function(t){var n=r.Symbol||(r.Symbol={});o(n,t)||u(n,t,{value:i.f(t)})}},function(t,n,e){var r=e(13),o=e(1),i=e(35),u=e(65),a=e(10),c=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var n=i.f(a(t)),e=u.f;return e?c(n,e(t)):n}},function(t,n,e){var r=e(12),o=e(55),i=e(17),u=function(t){return function(n,e,u){var a,c=r(n),f=i(c),s=o(u,f);if(t&&e!=e){for(;f>s;)if((a=c[s++])!=a)return!0}else for(;f>s;s++)if((t||s in c)&&c[s]===e)return t||s||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},function(t,n,e){var r=e(0),o=e(71),i=e(72),u=e(59),a=e(16),c=e(4),f=c("iterator"),s=c("toStringTag"),l=u.values,p=function(t,n){if(t){if(t[f]!==l)try{a(t,f,l)}catch(n){t[f]=l}if(t[s]||a(t,s,n),o[n])for(var e in u)if(t[e]!==u[e])try{a(t,e,u[e])}catch(n){t[e]=u[e]}}};for(var v in o)p(r[v]&&r[v].prototype,v);p(i,"DOMTokenList")},function(t,n,e){var r=e(0),o=e(11),i=e(8),u=e(40),a=e(49),c=e(96),f=e(4),s=r.TypeError,l=f("toPrimitive");t.exports=function(t,n){if(!i(t)||u(t))return t;var e,r=a(t,l);if(r){if(void 0===n&&(n="default"),e=o(r,t,n),!i(e)||u(e))return e;throw s("Can't convert object to primitive value")}return void 0===n&&(n="number"),c(t,n)}},function(t,n,e){"use strict";var r=e(3);t.exports=function(t,n){var e=[][t];return!!e&&r((function(){e.call(null,n||function(){throw 1},1)}))}},function(t,n){var e=Function.prototype,r=e.apply,o=e.bind,i=e.call;t.exports="object"==typeof Reflect&&Reflect.apply||(o?i.bind(r):function(){return i.apply(r,arguments)})},function(t,n,e){"use strict";var r=e(6),o=e(7),i=e(0),u=e(1),a=e(5),c=e(2),f=e(26),s=e(22),l=e(9).f,p=e(67),v=i.Symbol,d=v&&v.prototype;if(o&&c(v)&&(!("description"in d)||void 0!==v().description)){var y={},h=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:s(arguments[0]),n=f(d,this)?new v(t):void 0===t?v():v(t);return""===t&&(y[n]=!0),n};p(h,v),h.prototype=d,d.constructor=h;var x="Symbol(test)"==String(v("test")),g=u(d.toString),m=u(d.valueOf),b=/^Symbol\((.*)\)[^)]+$/,S=u("".replace),w=u("".slice);l(d,"description",{configurable:!0,get:function(){var t=m(this),n=g(t);if(a(y,t))return"";var e=x?w(n,7,-1):S(n,b,"$1");return""===e?void 0:e}}),r({global:!0,forced:!0},{Symbol:h})}},function(t,n,e){e(83)("iterator")},function(t,n,e){var r=e(6),o=e(7);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:e(9).f})},function(t,n,e){var r=e(7),o=e(9),i=e(10),u=e(12),a=e(58);t.exports=r?Object.defineProperties:function(t,n){i(t);for(var e,r=u(n),c=a(n),f=c.length,s=0;f>s;)o.f(t,e=c[s++],r[e]);return t}},function(t,n,e){var r=e(31),o=e(49),i=e(29),u=e(4)("iterator");t.exports=function(t){if(null!=t)return o(t,u)||o(t,"@@iterator")||i[r(t)]}},function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n,e){var r=e(0),o=e(11),i=e(2),u=e(8),a=r.TypeError;t.exports=function(t,n){var e,r;if("string"===n&&i(e=t.toString)&&!u(r=o(e,t)))return r;if(i(e=t.valueOf)&&!u(r=o(e,t)))return r;if("string"!==n&&i(e=t.toString)&&!u(r=o(e,t)))return r;throw a("Can't convert object to primitive value")}},function(t,n,e){var r=e(0),o=e(2),i=e(38),u=r.WeakMap;t.exports=o(u)&&/native code/.test(i(u))},function(t,n,e){var r=e(0),o=e(33),i=e(56),u=e(8),a=e(4)("species"),c=r.Array;t.exports=function(t){var n;return o(t)&&(n=t.constructor,(i(n)&&(n===c||o(n.prototype))||u(n)&&null===(n=n[a]))&&(n=void 0)),void 0===n?c:n}},function(t,n,e){"use strict";var r=e(43),o=e(31);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,n,e){var r=e(3);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,n,e){var r=e(19),o=e(12),i=e(35).f,u=e(107),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"Window"==r(t)?function(t){try{return i(t)}catch(t){return u(a)}}(t):i(o(t))}},function(t,n,e){var r=e(1),o=e(39),i=e(22),u=e(30),a=r("".charAt),c=r("".charCodeAt),f=r("".slice),s=function(t){return function(n,e){var r,s,l=i(u(n)),p=o(e),v=l.length;return p<0||p>=v?t?"":void 0:(r=c(l,p))<55296||r>56319||p+1===v||(s=c(l,p+1))<56320||s>57343?t?a(l,p):r:t?f(l,p,p+2):s-56320+(r-55296<<10)+65536}};t.exports={codeAt:s(!1),charAt:s(!0)}},function(t,n,e){var r=e(13);t.exports=r("document","documentElement")},function(t,n,e){"use strict";var r=e(6),o=e(77);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,n,e){var r=e(0),o=e(71),i=e(72),u=e(77),a=e(16),c=function(t){if(t&&t.forEach!==u)try{a(t,"forEach",u)}catch(n){t.forEach=u}};for(var f in o)o[f]&&c(r[f]&&r[f].prototype);c(i)},function(t,n,e){var r=e(4),o=e(18),i=e(9),u=r("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,n,e){var r=e(0),o=e(55),i=e(17),u=e(50),a=r.Array,c=Math.max;t.exports=function(t,n,e){for(var r=i(t),f=o(n,r),s=o(void 0===e?r:e,r),l=a(c(s-f,0)),p=0;f<s;f++,p++)u(l,p,t[f]);return l.length=p,l}},function(t,n,e){"use strict";var r=e(73).IteratorPrototype,o=e(18),i=e(20),u=e(47),a=e(29),c=function(){return this};t.exports=function(t,n,e,f){var s=n+" Iterator";return t.prototype=o(r,{next:i(+!f,e)}),u(t,s,!1,!0),a[s]=c,t}},function(t,n,e){var r=e(0),o=e(2),i=r.String,u=r.TypeError;t.exports=function(t){if("object"==typeof t||o(t))return t;throw u("Can't set "+i(t)+" as a prototype")}},function(t,n,e){"use strict";var r,o,i=e(11),u=e(1),a=e(22),c=e(120),f=e(121),s=e(32),l=e(18),p=e(21).get,v=e(125),d=e(126),y=s("native-string-replace",String.prototype.replace),h=RegExp.prototype.exec,x=h,g=u("".charAt),m=u("".indexOf),b=u("".replace),S=u("".slice),w=(o=/b*/g,i(h,r=/a/,"a"),i(h,o,"a"),0!==r.lastIndex||0!==o.lastIndex),O=f.BROKEN_CARET,E=void 0!==/()??/.exec("")[1];(w||E||O||v||d)&&(x=function(t){var n,e,r,o,u,f,s,v=this,d=p(v),M=a(t),I=d.raw;if(I)return I.lastIndex=v.lastIndex,n=i(x,I,M),v.lastIndex=I.lastIndex,n;var _=d.groups,j=O&&v.sticky,T=i(c,v),A=v.source,P=0,N=M;if(j&&(T=b(T,"y",""),-1===m(T,"g")&&(T+="g"),N=S(M,v.lastIndex),v.lastIndex>0&&(!v.multiline||v.multiline&&"\n"!==g(M,v.lastIndex-1))&&(A="(?: "+A+")",N=" "+N,P++),e=new RegExp("^(?:"+A+")",T)),E&&(e=new RegExp("^"+A+"$(?!\\s)",T)),w&&(r=v.lastIndex),o=i(h,j?e:v,N),j?o?(o.input=S(o.input,P),o[0]=S(o[0],P),o.index=v.lastIndex,v.lastIndex+=o[0].length):v.lastIndex=0:w&&o&&(v.lastIndex=v.global?o.index+o[0].length:r),E&&o&&o.length>1&&i(y,o[0],e,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(o[u]=void 0)})),o&&_)for(o.groups=f=l(null),u=0;u<_.length;u++)f[(s=_[u])[0]]=o[s[1]];return o}),t.exports=x},function(t,n,e){var r=e(0);t.exports=r},function(t,n,e){var r=e(4),o=e(29),i=r("iterator"),u=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||u[i]===t)}},function(t,n,e){var r=e(0),o=e(11),i=e(36),u=e(10),a=e(52),c=e(94),f=r.TypeError;t.exports=function(t,n){var e=arguments.length<2?c(t):n;if(i(e))return u(o(e,t));throw f(a(t)+" is not iterable")}},function(t,n,e){var r=e(11),o=e(10),i=e(49);t.exports=function(t,n,e){var u,a;o(t);try{if(!(u=i(t,"return"))){if("throw"===n)throw e;return e}u=r(u,t)}catch(t){a=!0,u=t}if("throw"===n)throw e;if(a)throw u;return o(u),e}},function(t,n,e){var r=e(4)("iterator"),o=!1;try{var i=0,u={next:function(){return{done:!!i++}},return:function(){o=!0}};u[r]=function(){return this},Array.from(u,(function(){throw 2}))}catch(t){}t.exports=function(t,n){if(!n&&!o)return!1;var e=!1;try{var i={};i[r]=function(){return{next:function(){return{done:e=!0}}}},t(i)}catch(t){}return e}},function(t,n,e){"use strict";var r=e(6),o=e(110);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(t,n,e){var r=e(0),o=e(54),i=e(11),u=e(10),a=e(52),c=e(112),f=e(17),s=e(26),l=e(113),p=e(94),v=e(114),d=r.TypeError,y=function(t,n){this.stopped=t,this.result=n},h=y.prototype;t.exports=function(t,n,e){var r,x,g,m,b,S,w,O=e&&e.that,E=!(!e||!e.AS_ENTRIES),M=!(!e||!e.IS_ITERATOR),I=!(!e||!e.INTERRUPTED),_=o(n,O),j=function(t){return r&&v(r,"normal",t),new y(!0,t)},T=function(t){return E?(u(t),I?_(t[0],t[1],j):_(t[0],t[1])):I?_(t,j):_(t)};if(M)r=t;else{if(!(x=p(t)))throw d(a(t)+" is not iterable");if(c(x)){for(g=0,m=f(t);m>g;g++)if((b=T(t[g]))&&s(h,b))return b;return new y(!1)}r=l(t,x)}for(S=r.next;!(w=i(S,r)).done;){try{b=T(w.value)}catch(t){v(r,"throw",t)}if("object"==typeof b&&b&&s(h,b))return b}return new y(!1)}},function(t,n,e){var r=e(0),o=e(26),i=r.TypeError;t.exports=function(t,n){if(o(n,t))return t;throw i("Incorrect invocation")}},function(t,n,e){"use strict";var r=e(6),o=e(0),i=e(3),u=e(33),a=e(8),c=e(15),f=e(17),s=e(50),l=e(70),p=e(81),v=e(4),d=e(48),y=v("isConcatSpreadable"),h=o.TypeError,x=d>=51||!i((function(){var t=[];return t[y]=!1,t.concat()[0]!==t})),g=p("concat"),m=function(t){if(!a(t))return!1;var n=t[y];return void 0!==n?!!n:u(t)};r({target:"Array",proto:!0,forced:!x||!g},{concat:function(t){var n,e,r,o,i,u=c(this),a=l(u,0),p=0;for(n=-1,r=arguments.length;n<r;n++)if(m(i=-1===n?u:arguments[n])){if(p+(o=f(i))>9007199254740991)throw h("Maximum allowed index exceeded");for(e=0;e<o;e++,p++)e in i&&s(a,p,i[e])}else{if(p>=9007199254740991)throw h("Maximum allowed index exceeded");s(a,p++,i)}return a.length=p,a}})},function(t,n,e){"use strict";var r=e(10);t.exports=function(){var t=r(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.dotAll&&(n+="s"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},function(t,n,e){var r=e(3),o=e(0).RegExp,i=r((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),u=i||r((function(){return!o("a","y").sticky})),a=i||r((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,n,e){var r=e(6),o=e(1),i=e(23),u=e(8),a=e(5),c=e(9).f,f=e(35),s=e(101),l=e(146),p=e(34),v=e(148),d=!1,y=p("meta"),h=0,x=function(t){c(t,y,{value:{objectID:"O"+h++,weakData:{}}})},g=t.exports={enable:function(){g.enable=function(){},d=!0;var t=f.f,n=o([].splice),e={};e[y]=1,t(e).length&&(f.f=function(e){for(var r=t(e),o=0,i=r.length;o<i;o++)if(r[o]===y){n(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:s.f}))},fastKey:function(t,n){if(!u(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,y)){if(!l(t))return"F";if(!n)return"E";x(t)}return t[y].objectID},getWeakData:function(t,n){if(!a(t,y)){if(!l(t))return!0;if(!n)return!1;x(t)}return t[y].weakData},onFreeze:function(t){return v&&d&&l(t)&&!a(t,y)&&x(t),t}};i[y]=!0},,function(t,n,e){var r=e(2),o=e(8),i=e(74);t.exports=function(t,n,e){var u,a;return i&&r(u=n.constructor)&&u!==e&&o(a=u.prototype)&&a!==e.prototype&&i(t,a),t}},function(t,n,e){var r=e(3),o=e(0).RegExp;t.exports=r((function(){var t=o(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},function(t,n,e){var r=e(3),o=e(0).RegExp;t.exports=r((function(){var t=o("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},,,,,function(t,n,e){var r=e(6),o=e(132);r({target:"Array",stat:!0,forced:!e(115)((function(t){Array.from(t)}))},{from:o})},function(t,n,e){"use strict";var r=e(0),o=e(54),i=e(11),u=e(15),a=e(133),c=e(112),f=e(56),s=e(17),l=e(50),p=e(113),v=e(94),d=r.Array;t.exports=function(t){var n=u(t),e=f(this),r=arguments.length,y=r>1?arguments[1]:void 0,h=void 0!==y;h&&(y=o(y,r>2?arguments[2]:void 0));var x,g,m,b,S,w,O=v(n),E=0;if(!O||this==d&&c(O))for(x=s(n),g=e?new this(x):d(x);x>E;E++)w=h?y(n[E],E):n[E],l(g,E,w);else for(S=(b=p(n,O)).next,g=e?new this:[];!(m=i(S,b)).done;E++)w=h?a(b,y,[m.value,E],!0):m.value,l(g,E,w);return g.length=E,g}},function(t,n,e){var r=e(10),o=e(114);t.exports=function(t,n,e,i){try{return i?n(r(e)[0],e[1]):n(e)}catch(n){o(t,"throw",n)}}},function(t,n,e){e(6)({target:"Array",stat:!0},{isArray:e(33)})},function(t,n,e){"use strict";var r=e(6),o=e(0),i=e(33),u=e(56),a=e(8),c=e(55),f=e(17),s=e(12),l=e(50),p=e(4),v=e(81),d=e(75),y=v("slice"),h=p("species"),x=o.Array,g=Math.max;r({target:"Array",proto:!0,forced:!y},{slice:function(t,n){var e,r,o,p=s(this),v=f(p),y=c(t,v),m=c(void 0===n?v:n,v);if(i(p)&&(e=p.constructor,(u(e)&&(e===x||i(e.prototype))||a(e)&&null===(e=e[h]))&&(e=void 0),e===x||void 0===e))return d(p,y,m);for(r=new(void 0===e?x:e)(g(m-y,0)),o=0;y<m;y++,o++)y in p&&l(r,o,p[y]);return r.length=o,r}})},function(t,n,e){var r=e(7),o=e(53).EXISTS,i=e(1),u=e(9).f,a=Function.prototype,c=i(a.toString),f=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,s=i(f.exec);r&&!o&&u(a,"name",{configurable:!0,get:function(){try{return s(f,c(this))[1]}catch(t){return""}}})},function(t,n,e){"use strict";var r=e(6),o=e(0),i=e(1),u=e(69),a=e(14),c=e(122),f=e(117),s=e(118),l=e(2),p=e(8),v=e(3),d=e(115),y=e(47),h=e(124);t.exports=function(t,n,e){var x=-1!==t.indexOf("Map"),g=-1!==t.indexOf("Weak"),m=x?"set":"add",b=o[t],S=b&&b.prototype,w=b,O={},E=function(t){var n=i(S[t]);a(S,t,"add"==t?function(t){return n(this,0===t?0:t),this}:"delete"==t?function(t){return!(g&&!p(t))&&n(this,0===t?0:t)}:"get"==t?function(t){return g&&!p(t)?void 0:n(this,0===t?0:t)}:"has"==t?function(t){return!(g&&!p(t))&&n(this,0===t?0:t)}:function(t,e){return n(this,0===t?0:t,e),this})};if(u(t,!l(b)||!(g||S.forEach&&!v((function(){(new b).entries().next()})))))w=e.getConstructor(n,t,x,m),c.enable();else if(u(t,!0)){var M=new w,I=M[m](g?{}:-0,1)!=M,_=v((function(){M.has(1)})),j=d((function(t){new b(t)})),T=!g&&v((function(){for(var t=new b,n=5;n--;)t[m](n,n);return!t.has(-0)}));j||((w=n((function(t,n){s(t,S);var e=h(new b,t,w);return null!=n&&f(n,e[m],{that:e,AS_ENTRIES:x}),e}))).prototype=S,S.constructor=w),(_||T)&&(E("delete"),E("has"),x&&E("get")),(T||I)&&E(m),g&&S.clear&&delete S.clear}return O[t]=w,r({global:!0,forced:w!=b},O),y(w,t),g||e.setStrong(w,t,x),w}},function(t,n,e){"use strict";var r=e(9).f,o=e(18),i=e(139),u=e(54),a=e(118),c=e(117),f=e(66),s=e(140),l=e(7),p=e(122).fastKey,v=e(21),d=v.set,y=v.getterFor;t.exports={getConstructor:function(t,n,e,f){var s=t((function(t,r){a(t,v),d(t,{type:n,index:o(null),first:void 0,last:void 0,size:0}),l||(t.size=0),null!=r&&c(r,t[f],{that:t,AS_ENTRIES:e})})),v=s.prototype,h=y(n),x=function(t,n,e){var r,o,i=h(t),u=g(t,n);return u?u.value=e:(i.last=u={index:o=p(n,!0),key:n,value:e,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=u),r&&(r.next=u),l?i.size++:t.size++,"F"!==o&&(i.index[o]=u)),t},g=function(t,n){var e,r=h(t),o=p(n);if("F"!==o)return r.index[o];for(e=r.first;e;e=e.next)if(e.key==n)return e};return i(v,{clear:function(){for(var t=h(this),n=t.index,e=t.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=void 0),delete n[e.index],e=e.next;t.first=t.last=void 0,l?t.size=0:this.size=0},delete:function(t){var n=h(this),e=g(this,t);if(e){var r=e.next,o=e.previous;delete n.index[e.index],e.removed=!0,o&&(o.next=r),r&&(r.previous=o),n.first==e&&(n.first=r),n.last==e&&(n.last=o),l?n.size--:this.size--}return!!e},forEach:function(t){for(var n,e=h(this),r=u(t,arguments.length>1?arguments[1]:void 0);n=n?n.next:e.first;)for(r(n.value,n.key,this);n&&n.removed;)n=n.previous},has:function(t){return!!g(this,t)}}),i(v,e?{get:function(t){var n=g(this,t);return n&&n.value},set:function(t,n){return x(this,0===t?0:t,n)}}:{add:function(t){return x(this,t=0===t?0:t,t)}}),l&&r(v,"size",{get:function(){return h(this).size}}),s},setStrong:function(t,n,e){var r=n+" Iterator",o=y(n),i=y(r);f(t,n,(function(t,n){d(this,{type:r,target:t,state:o(t),kind:n,last:void 0})}),(function(){for(var t=i(this),n=t.kind,e=t.last;e&&e.removed;)e=e.previous;return t.target&&(t.last=e=e?e.next:t.state.first)?"keys"==n?{value:e.key,done:!1}:"values"==n?{value:e.value,done:!1}:{value:[e.key,e.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),e?"entries":"values",!e,!0),s(n)}}},function(t,n,e){var r=e(14);t.exports=function(t,n,e){for(var o in n)r(t,o,n[o],e);return t}},function(t,n,e){"use strict";var r=e(13),o=e(9),i=e(4),u=e(7),a=i("species");t.exports=function(t){var n=r(t),e=o.f;u&&n&&!n[a]&&e(n,a,{configurable:!0,get:function(){return this}})}},,,,,function(t,n,e){"use strict";e(137)("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),e(138))},function(t,n,e){var r=e(3),o=e(8),i=e(19),u=e(147),a=Object.isExtensible,c=r((function(){a(1)}));t.exports=c||u?function(t){return!!o(t)&&((!u||"ArrayBuffer"!=i(t))&&(!a||a(t)))}:a},function(t,n,e){var r=e(3);t.exports=r((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},function(t,n,e){var r=e(3);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},,,,,,,,,,,,function(t,n,e){"use strict";var r=e(7),o=e(0),i=e(1),u=e(69),a=e(14),c=e(5),f=e(124),s=e(26),l=e(40),p=e(87),v=e(3),d=e(35).f,y=e(24).f,h=e(9).f,x=e(161),g=e(162).trim,m=o.Number,b=m.prototype,S=o.TypeError,w=i("".slice),O=i("".charCodeAt),E=function(t){var n=p(t,"number");return"bigint"==typeof n?n:M(n)},M=function(t){var n,e,r,o,i,u,a,c,f=p(t,"number");if(l(f))throw S("Cannot convert a Symbol value to a number");if("string"==typeof f&&f.length>2)if(f=g(f),43===(n=O(f,0))||45===n){if(88===(e=O(f,2))||120===e)return NaN}else if(48===n){switch(O(f,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+f}for(u=(i=w(f,2)).length,a=0;a<u;a++)if((c=O(i,a))<48||c>o)return NaN;return parseInt(i,r)}return+f};if(u("Number",!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var I,_=function(t){var n=arguments.length<1?0:m(E(t)),e=this;return s(b,e)&&v((function(){x(e)}))?f(Object(n),e,_):n},j=r?d(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),T=0;j.length>T;T++)c(m,I=j[T])&&!c(_,I)&&h(_,I,y(m,I));_.prototype=b,b.constructor=_,a(o,"Number",_)}},function(t,n,e){var r=e(1);t.exports=r(1..valueOf)},function(t,n,e){var r=e(1),o=e(30),i=e(22),u=e(163),a=r("".replace),c="["+u+"]",f=RegExp("^"+c+c+"*"),s=RegExp(c+c+"*$"),l=function(t){return function(n){var e=i(o(n));return 1&t&&(e=a(e,f,"")),2&t&&(e=a(e,s,"")),e}};t.exports={start:l(1),end:l(2),trim:l(3)}},function(t,n){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},,,,,,,,,,,,,,,,function(t,n,e){e(6)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},,,,,,,,,,,,,,,,,,,,,function(t,n,e){"use strict";e.r(n),e.d(n,"ContextMenu",(function(){return a}));e(59),e(145),e(68),e(78),e(86),e(201),e(160),e(179),e(104),e(105),e(119),e(92),e(134),e(82),e(90),e(91),e(135),e(136),e(131),e(116);function r(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==e)return;var r,o,i=[],u=!0,a=!1;try{for(e=e.call(t);!(u=(r=e.next()).done)&&(i.push(r.value),!n||i.length!==n);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==e.return||e.return()}finally{if(a)throw o}}return i}(t,n)||function(t,n){if(!t)return;if("string"==typeof t)return o(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return o(t,n)}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function i(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var a=function(){function t(n){var e=this,r=n.lf;!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),u(this,"menuTypeMap",new Map),u(this,"listenDelete",(function(){e.hideContextMenu()})),this.lf=r,this.__menuDOM=document.createElement("div"),this.__menuDOM.className="lf-inner-context",this.menuTypeMap.set("menu-common",[]),this.lf.setContextMenuByType=function(t,n){e.setContextMenuByType(t,n)},this.lf.setContextMenuItems=function(t){e.setContextMenuItems(t)},this.lf.showContextMenu=function(t){e.showContextMenu(t)},this.lf.hideContextMenu=function(){e.hideContextMenu()}}var n,e,o;return n=t,(e=[{key:"render",value:function(t,n){var e=this;this.container=n,t.on("node:click",(function(t){var n=t.data;e._activeData=n,e.createContextMenu()})),t.on("edge:click",(function(t){var n=t.data;e._activeData=n,e.createContextMenu()})),t.on("blank:click",(function(){e.hideContextMenu()}))}},{key:"setContextMenuByType",value:function(t,n){this.menuTypeMap.set(t,n)}},{key:"hideContextMenu",value:function(){this.__menuDOM.innerHTML="",this.__menuDOM.style.display="none",this.isShow&&this.container.removeChild(this.__menuDOM),this.lf.off("node:delete,edge:delete,node:drag,graph:transform",this.listenDelete),this.isShow=!1}},{key:"showContextMenu",value:function(t){t&&t.id?(this._activeData=t,this.createContextMenu()):console.warn("请检查传入的参数")}},{key:"setContextMenuItems",value:function(t){this.menuTypeMap.set("menu-common",t)}},{key:"getContextMenuPosition",value:function(){var t=this._activeData,n=this.lf.graphModel.getElement(t.id);if(n){var e,r;if("edge"===n.BaseType){e=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER;var o=n.getData();e=Math.max(o.startPoint.x,e),r=Math.min(o.startPoint.y,r),e=Math.max(o.endPoint.x,e),r=Math.min(o.endPoint.y,r),o.pointsList&&o.pointsList.forEach((function(t){e=Math.max(t.x,e),r=Math.min(t.y,r)}))}return"node"===n.BaseType&&(e=t.x+n.width/2,r=t.y-n.height/2),this.lf.graphModel.transformModel.CanvasPointToHtmlPoint([e,r])}console.warn("找不到元素".concat(t.id))}},{key:"createContextMenu",value:function(){var t=this;if(!this.lf.options.isSilentMode){var n=this.menuTypeMap.get(this._activeData.type)||[];n=n.concat(this.menuTypeMap.get("menu-common"));var e=document.createDocumentFragment();n.forEach((function(n){var r=document.createElement("div");r.className="lf-context-item";var o=document.createElement("img");o.src=n.icon,o.className="lf-context-img",n.className&&(r.className="".concat(r.className," ").concat(n.className)),o.addEventListener("click",(function(){t.hideContextMenu(),n.callback?n.callback(t._activeData):t.addNode({sourceId:t._activeData.id,x:t._activeData.x,y:t._activeData.y,properties:n.properties,type:n.type})})),r.appendChild(o),e.appendChild(r)})),this.__menuDOM.innerHTML="",this.__menuDOM.appendChild(e),this.showMenu()}}},{key:"addNode",value:function(t,n){var e=void 0!==n;void 0===n&&(n=t.y);var r=this.lf.getNodeModelById(t.sourceId),o=t.x-r.width+200,i=n-t.y/2-20,u=t.x+r.width+200,a=n+t.y/2+20;if(this.lf.getAreaElement([o,i],[u,a]).length)return n+=100,void this.addNode(t,n);var c,f,s=this.lf.addNode({type:t.type,x:t.x+200,y:n,properties:t.properties});e&&(c={x:t.x,y:t.y+r.height/2},f={x:s.x-s.width/2,y:s.y}),this.lf.addEdge({sourceNodeId:t.sourceId,targetNodeId:s.id,startPoint:c,endPoint:f})}},{key:"showMenu",value:function(){var t=r(this.getContextMenuPosition(),2),n=t[0],e=t[1];this.__menuDOM.style.display="flex",this.__menuDOM.style.top="".concat(e,"px"),this.__menuDOM.style.left="".concat(n+10,"px"),this.container.appendChild(this.__menuDOM),!this.isShow&&this.lf.on("node:delete,edge:delete,node:drag,graph:transform",this.listenDelete),this.isShow=!0}}])&&i(n.prototype,e),o&&i(n,o),t}();u(a,"pluginName","contextMenu"),n.default=a},function(t,n,e){e(6)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})}])}));
package/lib/Menu.js CHANGED
@@ -1 +1 @@
1
- !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=206)}([function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n(95))},function(t,e){var n=Function.prototype,r=n.bind,o=n.call,i=r&&r.bind(o);t.exports=r?function(t){return t&&i(o,t)}:function(t){return t&&function(){return o.apply(t,arguments)}}},function(t,e){t.exports=function(t){return"function"==typeof t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(0),o=n(32),i=n(5),u=n(34),a=n(45),c=n(60),f=o("wks"),s=r.Symbol,l=s&&s.for,p=c?s:s&&s.withoutSetter||u;t.exports=function(t){if(!i(f,t)||!a&&"string"!=typeof f[t]){var e="Symbol."+t;a&&i(s,t)?f[t]=s[t]:f[t]=c&&l?l(e):p(e)}return f[t]}},function(t,e,n){var r=n(1),o=n(15),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},function(t,e,n){var r=n(0),o=n(24).f,i=n(16),u=n(14),a=n(42),c=n(67),f=n(69);t.exports=function(t,e){var n,s,l,p,v,d=t.target,y=t.global,h=t.stat;if(n=y?r:h?r[d]||a(d,{}):(r[d]||{}).prototype)for(s in e){if(p=e[s],l=t.noTargetGet?(v=o(n,s))&&v.value:n[s],!f(y?s:d+(h?".":"#")+s,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;c(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),u(n,s,p,t)}}},function(t,e,n){var r=n(3);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,n){var r=n(2);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},function(t,e,n){var r=n(0),o=n(7),i=n(61),u=n(10),a=n(25),c=r.TypeError,f=Object.defineProperty;e.f=o?f:function(t,e,n){if(u(t),e=a(e),u(n),i)try{return f(t,e,n)}catch(t){}if("get"in n||"set"in n)throw c("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(0),o=n(8),i=r.String,u=r.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not an object")}},function(t,e){var n=Function.prototype.call;t.exports=n.bind?n.bind(n):function(){return n.apply(n,arguments)}},function(t,e,n){var r=n(51),o=n(30);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(0),o=n(2),i=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t]):r[t]&&r[t][e]}},function(t,e,n){var r=n(0),o=n(2),i=n(5),u=n(16),a=n(42),c=n(38),f=n(21),s=n(53).CONFIGURABLE,l=f.get,p=f.enforce,v=String(String).split("String");(t.exports=function(t,e,n,c){var f,l=!!c&&!!c.unsafe,d=!!c&&!!c.enumerable,y=!!c&&!!c.noTargetGet,h=c&&void 0!==c.name?c.name:e;o(n)&&("Symbol("===String(h).slice(0,7)&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(n,"name")||s&&n.name!==h)&&u(n,"name",h),(f=p(n)).source||(f.source=v.join("string"==typeof h?h:""))),t!==r?(l?!y&&t[e]&&(d=!0):delete t[e],d?t[e]=n:u(t,e,n)):d?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return o(this)&&l(this).source||c(this)}))},function(t,e,n){var r=n(0),o=n(30),i=r.Object;t.exports=function(t){return i(o(t))}},function(t,e,n){var r=n(7),o=n(9),i=n(20);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(76);t.exports=function(t){return r(t.length)}},function(t,e,n){var r,o=n(10),i=n(93),u=n(46),a=n(23),c=n(103),f=n(44),s=n(28),l=s("IE_PROTO"),p=function(){},v=function(t){return"<script>"+t+"<\/script>"},d=function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e;y="undefined"!=typeof document?document.domain&&r?d(r):((e=f("iframe")).style.display="none",c.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):d(r);for(var n=u.length;n--;)delete y.prototype[u[n]];return y()};a[l]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(p.prototype=o(t),n=new p,p.prototype=null,n[l]=t):n=y(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(1),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r,o,i,u=n(97),a=n(0),c=n(1),f=n(8),s=n(16),l=n(5),p=n(41),v=n(28),d=n(23),y=a.TypeError,h=a.WeakMap;if(u||p.state){var g=p.state||(p.state=new h),m=c(g.get),x=c(g.has),b=c(g.set);r=function(t,e){if(x(g,t))throw new y("Object already initialized");return e.facade=t,b(g,t,e),e},o=function(t){return m(g,t)||{}},i=function(t){return x(g,t)}}else{var O=v("state");d[O]=!0,r=function(t,e){if(l(t,O))throw new y("Object already initialized");return e.facade=t,s(t,O,e),e},o=function(t){return l(t,O)?t[O]:{}},i=function(t){return l(t,O)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!f(e)||(n=o(e)).type!==t)throw y("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){var r=n(0),o=n(31),i=r.String;t.exports=function(t){if("Symbol"===o(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},function(t,e){t.exports={}},function(t,e,n){var r=n(7),o=n(11),i=n(62),u=n(20),a=n(12),c=n(25),f=n(5),s=n(61),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=a(t),e=c(e),s)try{return l(t,e)}catch(t){}if(f(t,e))return u(!o(i.f,t,e),t[e])}},function(t,e,n){var r=n(87),o=n(40);t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},function(t,e,n){var r=n(1);t.exports=r({}.isPrototypeOf)},function(t,e){t.exports=!1},function(t,e,n){var r=n(32),o=n(34),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e){t.exports={}},function(t,e,n){var r=n(0).TypeError;t.exports=function(t){if(null==t)throw r("Can't call method on "+t);return t}},function(t,e,n){var r=n(0),o=n(43),i=n(2),u=n(19),a=n(4)("toStringTag"),c=r.Object,f="Arguments"==u(function(){return arguments}());t.exports=o?u:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=c(t),a))?n:f?u(e):"Object"==(r=u(e))&&i(e.callee)?"Arguments":r}},function(t,e,n){var r=n(27),o=n(41);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(19);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(1),o=0,i=Math.random(),u=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+u(++o+i,36)}},function(t,e,n){var r=n(64),o=n(46).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(0),o=n(2),i=n(52),u=r.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not a function")}},,function(t,e,n){var r=n(1),o=n(2),i=n(41),u=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return u(t)}),t.exports=i.inspectSource},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){var e=+t;return e!=e||0===e?0:(e>0?r:n)(e)}},function(t,e,n){var r=n(0),o=n(13),i=n(2),u=n(26),a=n(60),c=r.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,n){var r=n(0),o=n(42),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,e,n){var r=n(0),o=Object.defineProperty;t.exports=function(t,e){try{o(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},function(t,e,n){var r={};r[n(4)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,e,n){var r=n(0),o=n(8),i=r.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},function(t,e,n){var r=n(48),o=n(3);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,n){var r=n(9).f,o=n(5),i=n(4)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r,o,i=n(0),u=n(80),a=i.process,c=i.Deno,f=a&&a.versions||c&&c.version,s=f&&f.v8;s&&(o=(r=s.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&u&&(!(r=u.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=u.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},function(t,e,n){var r=n(36);t.exports=function(t,e){var n=t[e];return null==n?void 0:r(n)}},function(t,e,n){"use strict";var r=n(25),o=n(9),i=n(20);t.exports=function(t,e,n){var u=r(e);u in t?o.f(t,u,i(0,n)):t[u]=n}},function(t,e,n){var r=n(0),o=n(1),i=n(3),u=n(19),a=r.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,n){var r=n(0).String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},function(t,e,n){var r=n(7),o=n(5),i=Function.prototype,u=r&&Object.getOwnPropertyDescriptor,a=o(i,"name"),c=a&&"something"===function(){}.name,f=a&&(!r||r&&u(i,"name").configurable);t.exports={EXISTS:a,PROPER:c,CONFIGURABLE:f}},function(t,e,n){var r=n(1),o=n(36),i=r(r.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?i(t,e):function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(39),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},function(t,e,n){var r=n(1),o=n(3),i=n(2),u=n(31),a=n(13),c=n(38),f=function(){},s=[],l=a("Reflect","construct"),p=/^\s*(?:class|function)\b/,v=r(p.exec),d=!p.exec(f),y=function(t){if(!i(t))return!1;try{return l(f,s,t),!0}catch(t){return!1}};t.exports=!l||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 d||!!v(p,c(t))}:y},function(t,e,n){var r=n(54),o=n(1),i=n(51),u=n(15),a=n(17),c=n(70),f=o([].push),s=function(t){var e=1==t,n=2==t,o=3==t,s=4==t,l=6==t,p=7==t,v=5==t||l;return function(d,y,h,g){for(var m,x,b=u(d),O=i(b),S=r(y,h),w=a(O),M=0,E=g||c,T=e?E(d,w):n||p?E(d,0):void 0;w>M;M++)if((v||M in O)&&(x=S(m=O[M],M,b),t))if(e)T[M]=x;else if(x)switch(t){case 3:return!0;case 5:return m;case 6:return M;case 2:f(T,m)}else switch(t){case 4:return!1;case 7:f(T,m)}return l?-1:o||s?s:T}};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,n){var r=n(64),o=n(46);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){"use strict";var r=n(12),o=n(106),i=n(29),u=n(21),a=n(66),c=u.set,f=u.getterFor("Array Iterator");t.exports=a(Array,"Array",(function(t,e){c(this,{type:"Array Iterator",target:r(t),index:0,kind:e})}),(function(){var t=f(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,e,n){var r=n(45);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){var r=n(7),o=n(3),i=n(44);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},function(t,e,n){var r=n(0),o=n(5),i=n(2),u=n(15),a=n(28),c=n(100),f=a("IE_PROTO"),s=r.Object,l=s.prototype;t.exports=c?s.getPrototypeOf:function(t){var e=u(t);if(o(e,f))return e[f];var n=e.constructor;return i(n)&&e instanceof n?n.prototype:e instanceof s?l:null}},function(t,e,n){var r=n(1),o=n(5),i=n(12),u=n(85).indexOf,a=n(23),c=r([].push);t.exports=function(t,e){var n,r=i(t),f=0,s=[];for(n in r)!o(a,n)&&o(r,n)&&c(s,n);for(;e.length>f;)o(r,n=e[f++])&&(~u(s,n)||c(s,n));return s}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){"use strict";var r=n(6),o=n(11),i=n(27),u=n(53),a=n(2),c=n(108),f=n(63),s=n(74),l=n(47),p=n(16),v=n(14),d=n(4),y=n(29),h=n(73),g=u.PROPER,m=u.CONFIGURABLE,x=h.IteratorPrototype,b=h.BUGGY_SAFARI_ITERATORS,O=d("iterator"),S=function(){return this};t.exports=function(t,e,n,u,d,h,w){c(n,e,u);var M,E,T,j=function(t){if(t===d&&I)return I;if(!b&&t in k)return k[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},_=e+" Iterator",A=!1,k=t.prototype,P=k[O]||k["@@iterator"]||d&&k[d],I=!b&&P||j(d),C="Array"==e&&k.entries||P;if(C&&(M=f(C.call(new t)))!==Object.prototype&&M.next&&(i||f(M)===x||(s?s(M,x):a(M[O])||v(M,O,S)),l(M,_,!0,!0),i&&(y[_]=S)),g&&"values"==d&&P&&"values"!==P.name&&(!i&&m?p(k,"name","values"):(A=!0,I=function(){return o(P,this)})),d)if(E={values:j("values"),keys:h?I:j("keys"),entries:j("entries")},w)for(T in E)(b||A||!(T in k))&&v(k,T,E[T]);else r({target:e,proto:!0,forced:b||A},E);return i&&!w||k[O]===I||v(k,O,I,{name:d}),y[e]=I,E}},function(t,e,n){var r=n(5),o=n(84),i=n(24),u=n(9);t.exports=function(t,e){for(var n=o(e),a=u.f,c=i.f,f=0;f<n.length;f++){var s=n[f];r(t,s)||a(t,s,c(e,s))}}},function(t,e,n){var r=n(43),o=n(14),i=n(99);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,e,n){var r=n(3),o=n(2),i=/#|\.prototype\./,u=function(t,e){var n=c[a(t)];return n==s||n!=f&&(o(e)?r(e):!!e)},a=u.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=u.data={},f=u.NATIVE="N",s=u.POLYFILL="P";t.exports=u},function(t,e,n){var r=n(98);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,n){var r=n(44)("span").classList,o=r&&r.constructor&&r.constructor.prototype;t.exports=o===Object.prototype?void 0:o},function(t,e,n){"use strict";var r,o,i,u=n(3),a=n(2),c=n(18),f=n(63),s=n(14),l=n(4),p=n(27),v=l("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(o=f(f(i)))!==Object.prototype&&(r=o):d=!0),null==r||u((function(){var t={};return r[v].call(t)!==t}))?r={}:p&&(r=c(r)),a(r[v])||s(r,v,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},function(t,e,n){var r=n(1),o=n(10),i=n(109);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return o(n),i(r),e?t(n,r):n.__proto__=r,n}}():void 0)},function(t,e,n){var r=n(1);t.exports=r([].slice)},function(t,e,n){var r=n(39),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){"use strict";var r=n(57).forEach,o=n(88)("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e,n){"use strict";var r=n(102).charAt,o=n(22),i=n(21),u=n(66),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),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})}))},function(t,e,n){var r=n(4);e.f=r},function(t,e,n){var r=n(13);t.exports=r("navigator","userAgent")||""},function(t,e,n){var r=n(3),o=n(4),i=n(48),u=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[];return(e.constructor={})[u]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,n){"use strict";var r=n(6),o=n(0),i=n(13),u=n(89),a=n(11),c=n(1),f=n(27),s=n(7),l=n(45),p=n(3),v=n(5),d=n(33),y=n(2),h=n(8),g=n(26),m=n(40),x=n(10),b=n(15),O=n(12),S=n(25),w=n(22),M=n(20),E=n(18),T=n(58),j=n(35),_=n(101),A=n(65),k=n(24),P=n(9),I=n(62),C=n(75),R=n(14),L=n(32),N=n(28),D=n(23),F=n(34),G=n(4),z=n(79),B=n(83),U=n(47),V=n(21),W=n(57).forEach,K=N("hidden"),$=G("toPrimitive"),H=V.set,Y=V.getterFor("Symbol"),X=Object.prototype,q=o.Symbol,J=q&&q.prototype,Q=o.TypeError,Z=o.QObject,tt=i("JSON","stringify"),et=k.f,nt=P.f,rt=_.f,ot=I.f,it=c([].push),ut=L("symbols"),at=L("op-symbols"),ct=L("string-to-symbol-registry"),ft=L("symbol-to-string-registry"),st=L("wks"),lt=!Z||!Z.prototype||!Z.prototype.findChild,pt=s&&p((function(){return 7!=E(nt({},"a",{get:function(){return nt(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=et(X,e);r&&delete X[e],nt(t,e,n),r&&t!==X&&nt(X,e,r)}:nt,vt=function(t,e){var n=ut[t]=E(J);return H(n,{type:"Symbol",tag:t,description:e}),s||(n.description=e),n},dt=function(t,e,n){t===X&&dt(at,e,n),x(t);var r=S(e);return x(n),v(ut,r)?(n.enumerable?(v(t,K)&&t[K][r]&&(t[K][r]=!1),n=E(n,{enumerable:M(0,!1)})):(v(t,K)||nt(t,K,M(1,{})),t[K][r]=!0),pt(t,r,n)):nt(t,r,n)},yt=function(t,e){x(t);var n=O(e),r=T(n).concat(xt(n));return W(r,(function(e){s&&!a(ht,n,e)||dt(t,e,n[e])})),t},ht=function(t){var e=S(t),n=a(ot,this,e);return!(this===X&&v(ut,e)&&!v(at,e))&&(!(n||!v(this,e)||!v(ut,e)||v(this,K)&&this[K][e])||n)},gt=function(t,e){var n=O(t),r=S(e);if(n!==X||!v(ut,r)||v(at,r)){var o=et(n,r);return!o||!v(ut,r)||v(n,K)&&n[K][r]||(o.enumerable=!0),o}},mt=function(t){var e=rt(O(t)),n=[];return W(e,(function(t){v(ut,t)||v(D,t)||it(n,t)})),n},xt=function(t){var e=t===X,n=rt(e?at:O(t)),r=[];return W(n,(function(t){!v(ut,t)||e&&!v(X,t)||it(r,ut[t])})),r};(l||(R(J=(q=function(){if(g(J,this))throw Q("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?w(arguments[0]):void 0,e=F(t),n=function(t){this===X&&a(n,at,t),v(this,K)&&v(this[K],e)&&(this[K][e]=!1),pt(this,e,M(1,t))};return s&&lt&&pt(X,e,{configurable:!0,set:n}),vt(e,t)}).prototype,"toString",(function(){return Y(this).tag})),R(q,"withoutSetter",(function(t){return vt(F(t),t)})),I.f=ht,P.f=dt,k.f=gt,j.f=_.f=mt,A.f=xt,z.f=function(t){return vt(G(t),t)},s&&(nt(J,"description",{configurable:!0,get:function(){return Y(this).description}}),f||R(X,"propertyIsEnumerable",ht,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:q}),W(T(st),(function(t){B(t)})),r({target:"Symbol",stat:!0,forced:!l},{for:function(t){var e=w(t);if(v(ct,e))return ct[e];var n=q(e);return ct[e]=n,ft[n]=e,n},keyFor:function(t){if(!m(t))throw Q(t+" is not a symbol");if(v(ft,t))return ft[t]},useSetter:function(){lt=!0},useSimple:function(){lt=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!s},{create:function(t,e){return void 0===e?E(t):yt(E(t),e)},defineProperty:dt,defineProperties:yt,getOwnPropertyDescriptor:gt}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:mt,getOwnPropertySymbols:xt}),r({target:"Object",stat:!0,forced:p((function(){A.f(1)}))},{getOwnPropertySymbols:function(t){return A.f(b(t))}}),tt)&&r({target:"JSON",stat:!0,forced:!l||p((function(){var t=q();return"[null]"!=tt([t])||"{}"!=tt({a:t})||"{}"!=tt(Object(t))}))},{stringify:function(t,e,n){var r=C(arguments),o=e;if((h(e)||void 0!==t)&&!m(t))return d(e)||(e=function(t,e){if(y(o)&&(e=a(o,this,t,e)),!m(e))return e}),r[1]=e,u(tt,null,r)}});if(!J[$]){var bt=J.valueOf;R(J,$,(function(t){return a(bt,this)}))}U(q,"Symbol"),D[K]=!0},function(t,e,n){var r=n(111),o=n(5),i=n(79),u=n(9).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||u(e,t,{value:i.f(t)})}},function(t,e,n){var r=n(13),o=n(1),i=n(35),u=n(65),a=n(10),c=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(a(t)),n=u.f;return n?c(e,n(t)):e}},function(t,e,n){var r=n(12),o=n(55),i=n(17),u=function(t){return function(e,n,u){var a,c=r(e),f=i(c),s=o(u,f);if(t&&n!=n){for(;f>s;)if((a=c[s++])!=a)return!0}else for(;f>s;s++)if((t||s in c)&&c[s]===n)return t||s||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},function(t,e,n){var r=n(0),o=n(71),i=n(72),u=n(59),a=n(16),c=n(4),f=c("iterator"),s=c("toStringTag"),l=u.values,p=function(t,e){if(t){if(t[f]!==l)try{a(t,f,l)}catch(e){t[f]=l}if(t[s]||a(t,s,e),o[e])for(var n in u)if(t[n]!==u[n])try{a(t,n,u[n])}catch(e){t[n]=u[n]}}};for(var v in o)p(r[v]&&r[v].prototype,v);p(i,"DOMTokenList")},function(t,e,n){var r=n(0),o=n(11),i=n(8),u=n(40),a=n(49),c=n(96),f=n(4),s=r.TypeError,l=f("toPrimitive");t.exports=function(t,e){if(!i(t)||u(t))return t;var n,r=a(t,l);if(r){if(void 0===e&&(e="default"),n=o(r,t,e),!i(n)||u(n))return n;throw s("Can't convert object to primitive value")}return void 0===e&&(e="number"),c(t,e)}},function(t,e,n){"use strict";var r=n(3);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},function(t,e){var n=Function.prototype,r=n.apply,o=n.bind,i=n.call;t.exports="object"==typeof Reflect&&Reflect.apply||(o?i.bind(r):function(){return i.apply(r,arguments)})},function(t,e,n){"use strict";var r=n(6),o=n(7),i=n(0),u=n(1),a=n(5),c=n(2),f=n(26),s=n(22),l=n(9).f,p=n(67),v=i.Symbol,d=v&&v.prototype;if(o&&c(v)&&(!("description"in d)||void 0!==v().description)){var y={},h=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:s(arguments[0]),e=f(d,this)?new v(t):void 0===t?v():v(t);return""===t&&(y[e]=!0),e};p(h,v),h.prototype=d,d.constructor=h;var g="Symbol(test)"==String(v("test")),m=u(d.toString),x=u(d.valueOf),b=/^Symbol\((.*)\)[^)]+$/,O=u("".replace),S=u("".slice);l(d,"description",{configurable:!0,get:function(){var t=x(this),e=m(t);if(a(y,t))return"";var n=g?S(e,7,-1):O(e,b,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:h})}},function(t,e,n){n(83)("iterator")},function(t,e,n){var r=n(6),o=n(7);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:n(9).f})},function(t,e,n){var r=n(7),o=n(9),i=n(10),u=n(12),a=n(58);t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=u(e),c=a(e),f=c.length,s=0;f>s;)o.f(t,n=c[s++],r[n]);return t}},function(t,e,n){var r=n(31),o=n(49),i=n(29),u=n(4)("iterator");t.exports=function(t){if(null!=t)return o(t,u)||o(t,"@@iterator")||i[r(t)]}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(0),o=n(11),i=n(2),u=n(8),a=r.TypeError;t.exports=function(t,e){var n,r;if("string"===e&&i(n=t.toString)&&!u(r=o(n,t)))return r;if(i(n=t.valueOf)&&!u(r=o(n,t)))return r;if("string"!==e&&i(n=t.toString)&&!u(r=o(n,t)))return r;throw a("Can't convert object to primitive value")}},function(t,e,n){var r=n(0),o=n(2),i=n(38),u=r.WeakMap;t.exports=o(u)&&/native code/.test(i(u))},function(t,e,n){var r=n(0),o=n(33),i=n(56),u=n(8),a=n(4)("species"),c=r.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,n){"use strict";var r=n(43),o=n(31);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,e,n){var r=n(3);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,n){var r=n(19),o=n(12),i=n(35).f,u=n(107),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"Window"==r(t)?function(t){try{return i(t)}catch(t){return u(a)}}(t):i(o(t))}},function(t,e,n){var r=n(1),o=n(39),i=n(22),u=n(30),a=r("".charAt),c=r("".charCodeAt),f=r("".slice),s=function(t){return function(e,n){var r,s,l=i(u(e)),p=o(n),v=l.length;return p<0||p>=v?t?"":void 0:(r=c(l,p))<55296||r>56319||p+1===v||(s=c(l,p+1))<56320||s>57343?t?a(l,p):r:t?f(l,p,p+2):s-56320+(r-55296<<10)+65536}};t.exports={codeAt:s(!1),charAt:s(!0)}},function(t,e,n){var r=n(13);t.exports=r("document","documentElement")},function(t,e,n){"use strict";var r=n(6),o=n(77);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,e,n){var r=n(0),o=n(71),i=n(72),u=n(77),a=n(16),c=function(t){if(t&&t.forEach!==u)try{a(t,"forEach",u)}catch(e){t.forEach=u}};for(var f in o)o[f]&&c(r[f]&&r[f].prototype);c(i)},function(t,e,n){var r=n(4),o=n(18),i=n(9),u=r("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,n){var r=n(0),o=n(55),i=n(17),u=n(50),a=r.Array,c=Math.max;t.exports=function(t,e,n){for(var r=i(t),f=o(e,r),s=o(void 0===n?r:n,r),l=a(c(s-f,0)),p=0;f<s;f++,p++)u(l,p,t[f]);return l.length=p,l}},function(t,e,n){"use strict";var r=n(73).IteratorPrototype,o=n(18),i=n(20),u=n(47),a=n(29),c=function(){return this};t.exports=function(t,e,n,f){var s=e+" Iterator";return t.prototype=o(r,{next:i(+!f,n)}),u(t,s,!1,!0),a[s]=c,t}},function(t,e,n){var r=n(0),o=n(2),i=r.String,u=r.TypeError;t.exports=function(t){if("object"==typeof t||o(t))return t;throw u("Can't set "+i(t)+" as a prototype")}},function(t,e,n){"use strict";var r,o,i=n(11),u=n(1),a=n(22),c=n(120),f=n(121),s=n(32),l=n(18),p=n(21).get,v=n(125),d=n(126),y=s("native-string-replace",String.prototype.replace),h=RegExp.prototype.exec,g=h,m=u("".charAt),x=u("".indexOf),b=u("".replace),O=u("".slice),S=(o=/b*/g,i(h,r=/a/,"a"),i(h,o,"a"),0!==r.lastIndex||0!==o.lastIndex),w=f.BROKEN_CARET,M=void 0!==/()??/.exec("")[1];(S||M||w||v||d)&&(g=function(t){var e,n,r,o,u,f,s,v=this,d=p(v),E=a(t),T=d.raw;if(T)return T.lastIndex=v.lastIndex,e=i(g,T,E),v.lastIndex=T.lastIndex,e;var j=d.groups,_=w&&v.sticky,A=i(c,v),k=v.source,P=0,I=E;if(_&&(A=b(A,"y",""),-1===x(A,"g")&&(A+="g"),I=O(E,v.lastIndex),v.lastIndex>0&&(!v.multiline||v.multiline&&"\n"!==m(E,v.lastIndex-1))&&(k="(?: "+k+")",I=" "+I,P++),n=new RegExp("^(?:"+k+")",A)),M&&(n=new RegExp("^"+k+"$(?!\\s)",A)),S&&(r=v.lastIndex),o=i(h,_?n:v,I),_?o?(o.input=O(o.input,P),o[0]=O(o[0],P),o.index=v.lastIndex,v.lastIndex+=o[0].length):v.lastIndex=0:S&&o&&(v.lastIndex=v.global?o.index+o[0].length:r),M&&o&&o.length>1&&i(y,o[0],n,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(o[u]=void 0)})),o&&j)for(o.groups=f=l(null),u=0;u<j.length;u++)f[(s=j[u])[0]]=o[s[1]];return o}),t.exports=g},function(t,e,n){var r=n(0);t.exports=r},function(t,e,n){var r=n(4),o=n(29),i=r("iterator"),u=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||u[i]===t)}},function(t,e,n){var r=n(0),o=n(11),i=n(36),u=n(10),a=n(52),c=n(94),f=r.TypeError;t.exports=function(t,e){var n=arguments.length<2?c(t):e;if(i(n))return u(o(n,t));throw f(a(t)+" is not iterable")}},function(t,e,n){var r=n(11),o=n(10),i=n(49);t.exports=function(t,e,n){var u,a;o(t);try{if(!(u=i(t,"return"))){if("throw"===e)throw n;return n}u=r(u,t)}catch(t){a=!0,u=t}if("throw"===e)throw n;if(a)throw u;return o(u),n}},function(t,e,n){var r=n(4)("iterator"),o=!1;try{var i=0,u={next:function(){return{done:!!i++}},return:function(){o=!0}};u[r]=function(){return this},Array.from(u,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(6),o=n(110);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(t,e,n){var r=n(0),o=n(54),i=n(11),u=n(10),a=n(52),c=n(112),f=n(17),s=n(26),l=n(113),p=n(94),v=n(114),d=r.TypeError,y=function(t,e){this.stopped=t,this.result=e},h=y.prototype;t.exports=function(t,e,n){var r,g,m,x,b,O,S,w=n&&n.that,M=!(!n||!n.AS_ENTRIES),E=!(!n||!n.IS_ITERATOR),T=!(!n||!n.INTERRUPTED),j=o(e,w),_=function(t){return r&&v(r,"normal",t),new y(!0,t)},A=function(t){return M?(u(t),T?j(t[0],t[1],_):j(t[0],t[1])):T?j(t,_):j(t)};if(E)r=t;else{if(!(g=p(t)))throw d(a(t)+" is not iterable");if(c(g)){for(m=0,x=f(t);x>m;m++)if((b=A(t[m]))&&s(h,b))return b;return new y(!1)}r=l(t,g)}for(O=r.next;!(S=i(O,r)).done;){try{b=A(S.value)}catch(t){v(r,"throw",t)}if("object"==typeof b&&b&&s(h,b))return b}return new y(!1)}},function(t,e,n){var r=n(0),o=n(26),i=r.TypeError;t.exports=function(t,e){if(o(e,t))return t;throw i("Incorrect invocation")}},function(t,e,n){"use strict";var r=n(6),o=n(0),i=n(3),u=n(33),a=n(8),c=n(15),f=n(17),s=n(50),l=n(70),p=n(81),v=n(4),d=n(48),y=v("isConcatSpreadable"),h=o.TypeError,g=d>=51||!i((function(){var t=[];return t[y]=!1,t.concat()[0]!==t})),m=p("concat"),x=function(t){if(!a(t))return!1;var e=t[y];return void 0!==e?!!e:u(t)};r({target:"Array",proto:!0,forced:!g||!m},{concat:function(t){var e,n,r,o,i,u=c(this),a=l(u,0),p=0;for(e=-1,r=arguments.length;e<r;e++)if(x(i=-1===e?u:arguments[e])){if(p+(o=f(i))>9007199254740991)throw h("Maximum allowed index exceeded");for(n=0;n<o;n++,p++)n in i&&s(a,p,i[n])}else{if(p>=9007199254740991)throw h("Maximum allowed index exceeded");s(a,p++,i)}return a.length=p,a}})},function(t,e,n){"use strict";var r=n(10);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){var r=n(3),o=n(0).RegExp,i=r((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),u=i||r((function(){return!o("a","y").sticky})),a=i||r((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,n){var r=n(6),o=n(1),i=n(23),u=n(8),a=n(5),c=n(9).f,f=n(35),s=n(101),l=n(146),p=n(34),v=n(148),d=!1,y=p("meta"),h=0,g=function(t){c(t,y,{value:{objectID:"O"+h++,weakData:{}}})},m=t.exports={enable:function(){m.enable=function(){},d=!0;var t=f.f,e=o([].splice),n={};n[y]=1,t(n).length&&(f.f=function(n){for(var r=t(n),o=0,i=r.length;o<i;o++)if(r[o]===y){e(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames: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(!l(t))return"F";if(!e)return"E";g(t)}return t[y].objectID},getWeakData:function(t,e){if(!a(t,y)){if(!l(t))return!0;if(!e)return!1;g(t)}return t[y].weakData},onFreeze:function(t){return v&&d&&l(t)&&!a(t,y)&&g(t),t}};i[y]=!0},,function(t,e,n){var r=n(2),o=n(8),i=n(74);t.exports=function(t,e,n){var u,a;return i&&r(u=e.constructor)&&u!==n&&o(a=u.prototype)&&a!==n.prototype&&i(t,a),t}},function(t,e,n){var r=n(3),o=n(0).RegExp;t.exports=r((function(){var t=o(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},function(t,e,n){var r=n(3),o=n(0).RegExp;t.exports=r((function(){var t=o("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},,,,,function(t,e,n){var r=n(6),o=n(132);r({target:"Array",stat:!0,forced:!n(115)((function(t){Array.from(t)}))},{from:o})},function(t,e,n){"use strict";var r=n(0),o=n(54),i=n(11),u=n(15),a=n(133),c=n(112),f=n(56),s=n(17),l=n(50),p=n(113),v=n(94),d=r.Array;t.exports=function(t){var e=u(t),n=f(this),r=arguments.length,y=r>1?arguments[1]:void 0,h=void 0!==y;h&&(y=o(y,r>2?arguments[2]:void 0));var g,m,x,b,O,S,w=v(e),M=0;if(!w||this==d&&c(w))for(g=s(e),m=n?new this(g):d(g);g>M;M++)S=h?y(e[M],M):e[M],l(m,M,S);else for(O=(b=p(e,w)).next,m=n?new this:[];!(x=i(O,b)).done;M++)S=h?a(b,y,[x.value,M],!0):x.value,l(m,M,S);return m.length=M,m}},function(t,e,n){var r=n(10),o=n(114);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){o(t,"throw",e)}}},function(t,e,n){n(6)({target:"Array",stat:!0},{isArray:n(33)})},function(t,e,n){"use strict";var r=n(6),o=n(0),i=n(33),u=n(56),a=n(8),c=n(55),f=n(17),s=n(12),l=n(50),p=n(4),v=n(81),d=n(75),y=v("slice"),h=p("species"),g=o.Array,m=Math.max;r({target:"Array",proto:!0,forced:!y},{slice:function(t,e){var n,r,o,p=s(this),v=f(p),y=c(t,v),x=c(void 0===e?v:e,v);if(i(p)&&(n=p.constructor,(u(n)&&(n===g||i(n.prototype))||a(n)&&null===(n=n[h]))&&(n=void 0),n===g||void 0===n))return d(p,y,x);for(r=new(void 0===n?g:n)(m(x-y,0)),o=0;y<x;y++,o++)y in p&&l(r,o,p[y]);return r.length=o,r}})},function(t,e,n){var r=n(7),o=n(53).EXISTS,i=n(1),u=n(9).f,a=Function.prototype,c=i(a.toString),f=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,s=i(f.exec);r&&!o&&u(a,"name",{configurable:!0,get:function(){try{return s(f,c(this))[1]}catch(t){return""}}})},function(t,e,n){"use strict";var r=n(6),o=n(0),i=n(1),u=n(69),a=n(14),c=n(122),f=n(117),s=n(118),l=n(2),p=n(8),v=n(3),d=n(115),y=n(47),h=n(124);t.exports=function(t,e,n){var g=-1!==t.indexOf("Map"),m=-1!==t.indexOf("Weak"),x=g?"set":"add",b=o[t],O=b&&b.prototype,S=b,w={},M=function(t){var e=i(O[t]);a(O,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(m&&!p(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return m&&!p(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(m&&!p(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(u(t,!l(b)||!(m||O.forEach&&!v((function(){(new b).entries().next()})))))S=n.getConstructor(e,t,g,x),c.enable();else if(u(t,!0)){var E=new S,T=E[x](m?{}:-0,1)!=E,j=v((function(){E.has(1)})),_=d((function(t){new b(t)})),A=!m&&v((function(){for(var t=new b,e=5;e--;)t[x](e,e);return!t.has(-0)}));_||((S=e((function(t,e){s(t,O);var n=h(new b,t,S);return null!=e&&f(e,n[x],{that:n,AS_ENTRIES:g}),n}))).prototype=O,O.constructor=S),(j||A)&&(M("delete"),M("has"),g&&M("get")),(A||T)&&M(x),m&&O.clear&&delete O.clear}return w[t]=S,r({global:!0,forced:S!=b},w),y(S,t),m||n.setStrong(S,t,g),S}},function(t,e,n){"use strict";var r=n(9).f,o=n(18),i=n(139),u=n(54),a=n(118),c=n(117),f=n(66),s=n(140),l=n(7),p=n(122).fastKey,v=n(21),d=v.set,y=v.getterFor;t.exports={getConstructor:function(t,e,n,f){var s=t((function(t,r){a(t,v),d(t,{type:e,index:o(null),first:void 0,last:void 0,size:0}),l||(t.size=0),null!=r&&c(r,t[f],{that:t,AS_ENTRIES:n})})),v=s.prototype,h=y(e),g=function(t,e,n){var r,o,i=h(t),u=m(t,e);return u?u.value=n:(i.last=u={index:o=p(e,!0),key:e,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=u),r&&(r.next=u),l?i.size++:t.size++,"F"!==o&&(i.index[o]=u)),t},m=function(t,e){var n,r=h(t),o=p(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==e)return n};return i(v,{clear:function(){for(var t=h(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,l?t.size=0:this.size=0},delete:function(t){var e=h(this),n=m(this,t);if(n){var r=n.next,o=n.previous;delete e.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),e.first==n&&(e.first=r),e.last==n&&(e.last=o),l?e.size--:this.size--}return!!n},forEach:function(t){for(var e,n=h(this),r=u(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!m(this,t)}}),i(v,n?{get:function(t){var e=m(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)}}),l&&r(v,"size",{get:function(){return h(this).size}}),s},setStrong:function(t,e,n){var r=e+" Iterator",o=y(e),i=y(r);f(t,e,(function(t,e){d(this,{type:r,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),s(e)}}},function(t,e,n){var r=n(14);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){"use strict";var r=n(13),o=n(9),i=n(4),u=n(7),a=i("species");t.exports=function(t){var e=r(t),n=o.f;u&&e&&!e[a]&&n(e,a,{configurable:!0,get:function(){return this}})}},,,,,function(t,e,n){"use strict";n(137)("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(138))},function(t,e,n){var r=n(3),o=n(8),i=n(19),u=n(147),a=Object.isExtensible,c=r((function(){a(1)}));t.exports=c||u?function(t){return!!o(t)&&((!u||"ArrayBuffer"!=i(t))&&(!a||a(t)))}:a},function(t,e,n){var r=n(3);t.exports=r((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},function(t,e,n){var r=n(3);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},,,,,,,,function(t,e,n){"use strict";var r=n(6),o=n(1),i=n(85).indexOf,u=n(88),a=o([].indexOf),c=!!a&&1/a([1],1,-0)<0,f=u("indexOf");r({target:"Array",proto:!0,forced:c||!f},{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,n){"use strict";n.r(e),n.d(e,"Menu",(function(){return f}));n(59),n(145),n(68),n(78),n(86),n(104),n(105),n(156),n(131),n(134),n(119),n(92),n(82),n(90),n(91),n(135),n(136),n(116);function r(t){return function(t){if(Array.isArray(t))return o(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 o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t)||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 o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var u,a,c,f=function(){function t(e){var n=this,r=e.lf;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.__menuDOM=document.createElement("ul"),this.lf=r,this.menuTypeMap=new Map,this.init(),this.lf.extension.menu.setMenuConfig=function(t){n.setMenuConfig(t)},this.lf.extension.menu.addMenuConfig=function(t){n.addMenuConfig(t)},this.lf.extension.menu.setMenuByType=function(t){n.setMenuByType(t)}}var e,n,o;return e=t,(n=[{key:"init",value:function(){var t=this,e=[{text:"删除",callback:function(e){t.lf.deleteNode(e.id)}},{text:"编辑文本",callback:function(e){t.lf.graphModel.editText(e.id)}},{text:"复制",callback:function(e){t.lf.cloneNode(e.id)}}];this.menuTypeMap.set("lf:defaultNodeMenu",e);var n=[{text:"删除",callback:function(e){t.lf.deleteEdge(e.id)}},{text:"编辑文本",callback:function(e){t.lf.graphModel.editText(e.id)}}];this.menuTypeMap.set("lf:defaultEdgeMenu",n),this.menuTypeMap.set("lf:defaultGraphMenu",[]);var r=[{text:"删除",callback:function(e){t.lf.clearSelectElements(),e.edges.forEach((function(e){return t.lf.deleteEdge(e.id)})),e.nodes.forEach((function(e){return t.lf.deleteNode(e.id)}))}}];this.menuTypeMap.set("lf:defaultSelectionMenu",r)}},{key:"render",value:function(t,e){var n=this;this.__container=e,this.__currentData=null,this.__menuDOM.className="lf-menu",e.appendChild(this.__menuDOM),this.__menuDOM.addEventListener("click",(function(t){t.stopPropagation();for(var e=t.target;-1===Array.from(e.classList).indexOf("lf-menu-item")&&-1===Array.from(e.classList).indexOf("lf-menu");)e=e.parentElement;Array.from(e.classList).indexOf("lf-menu-item")>-1?(e.onclickCallback(n.__currentData),n.__menuDOM.style.display="none",n.__currentData=null):console.warn("点击区域不在菜单项内,请检查代码!")}),!0),this.lf.on("node:contextmenu",(function(t){var e=t.data,r=t.position.domOverlayPosition,o=r.x,i=r.y,u=e.id,a=n.lf.graphModel.getNodeModelById(u),c=[],f=n.menuTypeMap.get(a.type);c=a&&a.menu&&Array.isArray(a.menu)?a.menu:f||n.menuTypeMap.get("lf:defaultNodeMenu"),n.__currentData=e,n.showMenu(o,i,c)})),this.lf.on("edge:contextmenu",(function(t){var e=t.data,r=t.position.domOverlayPosition,o=r.x,i=r.y,u=e.id,a=n.lf.graphModel.getEdgeModelById(u),c=[],f=n.menuTypeMap.get(a.type);c=a&&a.menu&&Array.isArray(a.menu)?a.menu:f||n.menuTypeMap.get("lf:defaultEdgeMenu"),n.__currentData=e,n.showMenu(o,i,c)})),this.lf.on("blank:contextmenu",(function(t){var e=t.position,r=n.menuTypeMap.get("lf:defaultGraphMenu"),o=e.domOverlayPosition,i=o.x,u=o.y;n.showMenu(i,u,r)})),this.lf.on("selection:contextmenu",(function(t){var e=t.data,r=t.position,o=n.menuTypeMap.get("lf:defaultSelectionMenu"),i=r.domOverlayPosition,u=i.x,a=i.y;n.__currentData=e,n.showMenu(u,a,o)})),this.lf.on("node:mousedown",(function(){n.__menuDOM.style.display="none"})),this.lf.on("edge:click",(function(){n.__menuDOM.style.display="none"})),this.lf.on("blank:click",(function(){n.__menuDOM.style.display="none"}))}},{key:"destroy",value:function(){var t;null==this||null===(t=this.__container)||void 0===t||t.removeChild(this.__menuDOM),this.__menuDOM=null}},{key:"showMenu",value:function(t,e,n){if(n&&n.length){var o=this.__menuDOM;o.innerHTML="",o.append.apply(o,r(this.__getMenuDom(n))),o.children.length&&(o.style.display="block",o.style.top="".concat(e,"px"),o.style.left="".concat(t,"px"))}}},{key:"setMenuByType",value:function(t){t.type&&t.menu&&this.menuTypeMap.set(t.type,t.menu)}},{key:"__getMenuDom",value:function(t){var e=[];return t&&t.length>0&&t.forEach((function(t){var n=document.createElement("li");if(t.className?n.className="lf-menu-item ".concat(t.className):n.className="lf-menu-item",!0===t.icon){var r=document.createElement("span");r.className="lf-menu-item-icon",n.appendChild(r)}var o=document.createElement("span");o.className="lf-menu-item-text",t.text&&(o.innerText=t.text),n.appendChild(o),n.onclickCallback=t.callback,e.push(n)})),e}},{key:"setMenuConfig",value:function(t){t&&(void 0!==t.nodeMenu&&this.menuTypeMap.set("lf:defaultNodeMenu",t.nodeMenu?t.nodeMenu:[]),void 0!==t.edgeMenu&&this.menuTypeMap.set("lf:defaultEdgeMenu",t.edgeMenu?t.edgeMenu:[]),void 0!==t.graphMenu&&this.menuTypeMap.set("lf:defaultGraphMenu",t.graphMenu?t.graphMenu:[]))}},{key:"addMenuConfig",value:function(t){if(t){if(Array.isArray(t.nodeMenu)){var e=this.menuTypeMap.get("lf:defaultNodeMenu");this.menuTypeMap.set("lf:defaultNodeMenu",e.concat(t.nodeMenu))}if(Array.isArray(t.edgeMenu)){var n=this.menuTypeMap.get("lf:defaultEdgeMenu");this.menuTypeMap.set("lf:defaultEdgeMenu",n.concat(t.edgeMenu))}if(Array.isArray(t.graphMenu)){var r=this.menuTypeMap.get("lf:defaultGraphMenu");this.menuTypeMap.set("lf:defaultGraphMenu",r.concat(t.graphMenu))}}}},{key:"changeMenuItem",value:function(t,e){if("add"===t)this.addMenuConfig(e);else{if("reset"!==t)throw new Error("The first parameter of changeMenuConfig should be 'add' or 'reset'");this.setMenuConfig(e)}}}])&&i(e.prototype,n),o&&i(e,o),t}();c="menu",(a="pluginName")in(u=f)?Object.defineProperty(u,a,{value:c,enumerable:!0,configurable:!0,writable:!0}):u[a]=c,e.default=f}])}));
1
+ !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=206)}([function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n(95))},function(t,e){var n=Function.prototype,r=n.bind,o=n.call,i=r&&r.bind(o);t.exports=r?function(t){return t&&i(o,t)}:function(t){return t&&function(){return o.apply(t,arguments)}}},function(t,e){t.exports=function(t){return"function"==typeof t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(0),o=n(32),i=n(5),u=n(34),a=n(45),c=n(60),f=o("wks"),s=r.Symbol,l=s&&s.for,p=c?s:s&&s.withoutSetter||u;t.exports=function(t){if(!i(f,t)||!a&&"string"!=typeof f[t]){var e="Symbol."+t;a&&i(s,t)?f[t]=s[t]:f[t]=c&&l?l(e):p(e)}return f[t]}},function(t,e,n){var r=n(1),o=n(15),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},function(t,e,n){var r=n(0),o=n(24).f,i=n(16),u=n(14),a=n(42),c=n(67),f=n(69);t.exports=function(t,e){var n,s,l,p,v,d=t.target,y=t.global,h=t.stat;if(n=y?r:h?r[d]||a(d,{}):(r[d]||{}).prototype)for(s in e){if(p=e[s],l=t.noTargetGet?(v=o(n,s))&&v.value:n[s],!f(y?s:d+(h?".":"#")+s,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;c(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),u(n,s,p,t)}}},function(t,e,n){var r=n(3);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,n){var r=n(2);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},function(t,e,n){var r=n(0),o=n(7),i=n(61),u=n(10),a=n(25),c=r.TypeError,f=Object.defineProperty;e.f=o?f:function(t,e,n){if(u(t),e=a(e),u(n),i)try{return f(t,e,n)}catch(t){}if("get"in n||"set"in n)throw c("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(0),o=n(8),i=r.String,u=r.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not an object")}},function(t,e){var n=Function.prototype.call;t.exports=n.bind?n.bind(n):function(){return n.apply(n,arguments)}},function(t,e,n){var r=n(51),o=n(30);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(0),o=n(2),i=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t]):r[t]&&r[t][e]}},function(t,e,n){var r=n(0),o=n(2),i=n(5),u=n(16),a=n(42),c=n(38),f=n(21),s=n(53).CONFIGURABLE,l=f.get,p=f.enforce,v=String(String).split("String");(t.exports=function(t,e,n,c){var f,l=!!c&&!!c.unsafe,d=!!c&&!!c.enumerable,y=!!c&&!!c.noTargetGet,h=c&&void 0!==c.name?c.name:e;o(n)&&("Symbol("===String(h).slice(0,7)&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(n,"name")||s&&n.name!==h)&&u(n,"name",h),(f=p(n)).source||(f.source=v.join("string"==typeof h?h:""))),t!==r?(l?!y&&t[e]&&(d=!0):delete t[e],d?t[e]=n:u(t,e,n)):d?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return o(this)&&l(this).source||c(this)}))},function(t,e,n){var r=n(0),o=n(30),i=r.Object;t.exports=function(t){return i(o(t))}},function(t,e,n){var r=n(7),o=n(9),i=n(20);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(76);t.exports=function(t){return r(t.length)}},function(t,e,n){var r,o=n(10),i=n(93),u=n(46),a=n(23),c=n(103),f=n(44),s=n(28),l=s("IE_PROTO"),p=function(){},v=function(t){return"<script>"+t+"<\/script>"},d=function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e;y="undefined"!=typeof document?document.domain&&r?d(r):((e=f("iframe")).style.display="none",c.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):d(r);for(var n=u.length;n--;)delete y.prototype[u[n]];return y()};a[l]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(p.prototype=o(t),n=new p,p.prototype=null,n[l]=t):n=y(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(1),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r,o,i,u=n(97),a=n(0),c=n(1),f=n(8),s=n(16),l=n(5),p=n(41),v=n(28),d=n(23),y=a.TypeError,h=a.WeakMap;if(u||p.state){var g=p.state||(p.state=new h),m=c(g.get),x=c(g.has),b=c(g.set);r=function(t,e){if(x(g,t))throw new y("Object already initialized");return e.facade=t,b(g,t,e),e},o=function(t){return m(g,t)||{}},i=function(t){return x(g,t)}}else{var O=v("state");d[O]=!0,r=function(t,e){if(l(t,O))throw new y("Object already initialized");return e.facade=t,s(t,O,e),e},o=function(t){return l(t,O)?t[O]:{}},i=function(t){return l(t,O)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!f(e)||(n=o(e)).type!==t)throw y("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){var r=n(0),o=n(31),i=r.String;t.exports=function(t){if("Symbol"===o(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},function(t,e){t.exports={}},function(t,e,n){var r=n(7),o=n(11),i=n(62),u=n(20),a=n(12),c=n(25),f=n(5),s=n(61),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=a(t),e=c(e),s)try{return l(t,e)}catch(t){}if(f(t,e))return u(!o(i.f,t,e),t[e])}},function(t,e,n){var r=n(87),o=n(40);t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},function(t,e,n){var r=n(1);t.exports=r({}.isPrototypeOf)},function(t,e){t.exports=!1},function(t,e,n){var r=n(32),o=n(34),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e){t.exports={}},function(t,e,n){var r=n(0).TypeError;t.exports=function(t){if(null==t)throw r("Can't call method on "+t);return t}},function(t,e,n){var r=n(0),o=n(43),i=n(2),u=n(19),a=n(4)("toStringTag"),c=r.Object,f="Arguments"==u(function(){return arguments}());t.exports=o?u:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=c(t),a))?n:f?u(e):"Object"==(r=u(e))&&i(e.callee)?"Arguments":r}},function(t,e,n){var r=n(27),o=n(41);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(19);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(1),o=0,i=Math.random(),u=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+u(++o+i,36)}},function(t,e,n){var r=n(64),o=n(46).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(0),o=n(2),i=n(52),u=r.TypeError;t.exports=function(t){if(o(t))return t;throw u(i(t)+" is not a function")}},,function(t,e,n){var r=n(1),o=n(2),i=n(41),u=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return u(t)}),t.exports=i.inspectSource},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){var e=+t;return e!=e||0===e?0:(e>0?r:n)(e)}},function(t,e,n){var r=n(0),o=n(13),i=n(2),u=n(26),a=n(60),c=r.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,n){var r=n(0),o=n(42),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,e,n){var r=n(0),o=Object.defineProperty;t.exports=function(t,e){try{o(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},function(t,e,n){var r={};r[n(4)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,e,n){var r=n(0),o=n(8),i=r.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},function(t,e,n){var r=n(48),o=n(3);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,n){var r=n(9).f,o=n(5),i=n(4)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r,o,i=n(0),u=n(80),a=i.process,c=i.Deno,f=a&&a.versions||c&&c.version,s=f&&f.v8;s&&(o=(r=s.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&u&&(!(r=u.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=u.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},function(t,e,n){var r=n(36);t.exports=function(t,e){var n=t[e];return null==n?void 0:r(n)}},function(t,e,n){"use strict";var r=n(25),o=n(9),i=n(20);t.exports=function(t,e,n){var u=r(e);u in t?o.f(t,u,i(0,n)):t[u]=n}},function(t,e,n){var r=n(0),o=n(1),i=n(3),u=n(19),a=r.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,n){var r=n(0).String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},function(t,e,n){var r=n(7),o=n(5),i=Function.prototype,u=r&&Object.getOwnPropertyDescriptor,a=o(i,"name"),c=a&&"something"===function(){}.name,f=a&&(!r||r&&u(i,"name").configurable);t.exports={EXISTS:a,PROPER:c,CONFIGURABLE:f}},function(t,e,n){var r=n(1),o=n(36),i=r(r.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?i(t,e):function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(39),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},function(t,e,n){var r=n(1),o=n(3),i=n(2),u=n(31),a=n(13),c=n(38),f=function(){},s=[],l=a("Reflect","construct"),p=/^\s*(?:class|function)\b/,v=r(p.exec),d=!p.exec(f),y=function(t){if(!i(t))return!1;try{return l(f,s,t),!0}catch(t){return!1}};t.exports=!l||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 d||!!v(p,c(t))}:y},function(t,e,n){var r=n(54),o=n(1),i=n(51),u=n(15),a=n(17),c=n(70),f=o([].push),s=function(t){var e=1==t,n=2==t,o=3==t,s=4==t,l=6==t,p=7==t,v=5==t||l;return function(d,y,h,g){for(var m,x,b=u(d),O=i(b),S=r(y,h),w=a(O),M=0,E=g||c,T=e?E(d,w):n||p?E(d,0):void 0;w>M;M++)if((v||M in O)&&(x=S(m=O[M],M,b),t))if(e)T[M]=x;else if(x)switch(t){case 3:return!0;case 5:return m;case 6:return M;case 2:f(T,m)}else switch(t){case 4:return!1;case 7:f(T,m)}return l?-1:o||s?s:T}};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,n){var r=n(64),o=n(46);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){"use strict";var r=n(12),o=n(106),i=n(29),u=n(21),a=n(66),c=u.set,f=u.getterFor("Array Iterator");t.exports=a(Array,"Array",(function(t,e){c(this,{type:"Array Iterator",target:r(t),index:0,kind:e})}),(function(){var t=f(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,e,n){var r=n(45);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){var r=n(7),o=n(3),i=n(44);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},function(t,e,n){var r=n(0),o=n(5),i=n(2),u=n(15),a=n(28),c=n(100),f=a("IE_PROTO"),s=r.Object,l=s.prototype;t.exports=c?s.getPrototypeOf:function(t){var e=u(t);if(o(e,f))return e[f];var n=e.constructor;return i(n)&&e instanceof n?n.prototype:e instanceof s?l:null}},function(t,e,n){var r=n(1),o=n(5),i=n(12),u=n(85).indexOf,a=n(23),c=r([].push);t.exports=function(t,e){var n,r=i(t),f=0,s=[];for(n in r)!o(a,n)&&o(r,n)&&c(s,n);for(;e.length>f;)o(r,n=e[f++])&&(~u(s,n)||c(s,n));return s}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){"use strict";var r=n(6),o=n(11),i=n(27),u=n(53),a=n(2),c=n(108),f=n(63),s=n(74),l=n(47),p=n(16),v=n(14),d=n(4),y=n(29),h=n(73),g=u.PROPER,m=u.CONFIGURABLE,x=h.IteratorPrototype,b=h.BUGGY_SAFARI_ITERATORS,O=d("iterator"),S=function(){return this};t.exports=function(t,e,n,u,d,h,w){c(n,e,u);var M,E,T,j=function(t){if(t===d&&I)return I;if(!b&&t in k)return k[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},_=e+" Iterator",A=!1,k=t.prototype,P=k[O]||k["@@iterator"]||d&&k[d],I=!b&&P||j(d),C="Array"==e&&k.entries||P;if(C&&(M=f(C.call(new t)))!==Object.prototype&&M.next&&(i||f(M)===x||(s?s(M,x):a(M[O])||v(M,O,S)),l(M,_,!0,!0),i&&(y[_]=S)),g&&"values"==d&&P&&"values"!==P.name&&(!i&&m?p(k,"name","values"):(A=!0,I=function(){return o(P,this)})),d)if(E={values:j("values"),keys:h?I:j("keys"),entries:j("entries")},w)for(T in E)(b||A||!(T in k))&&v(k,T,E[T]);else r({target:e,proto:!0,forced:b||A},E);return i&&!w||k[O]===I||v(k,O,I,{name:d}),y[e]=I,E}},function(t,e,n){var r=n(5),o=n(84),i=n(24),u=n(9);t.exports=function(t,e){for(var n=o(e),a=u.f,c=i.f,f=0;f<n.length;f++){var s=n[f];r(t,s)||a(t,s,c(e,s))}}},function(t,e,n){var r=n(43),o=n(14),i=n(99);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,e,n){var r=n(3),o=n(2),i=/#|\.prototype\./,u=function(t,e){var n=c[a(t)];return n==s||n!=f&&(o(e)?r(e):!!e)},a=u.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=u.data={},f=u.NATIVE="N",s=u.POLYFILL="P";t.exports=u},function(t,e,n){var r=n(98);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,n){var r=n(44)("span").classList,o=r&&r.constructor&&r.constructor.prototype;t.exports=o===Object.prototype?void 0:o},function(t,e,n){"use strict";var r,o,i,u=n(3),a=n(2),c=n(18),f=n(63),s=n(14),l=n(4),p=n(27),v=l("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(o=f(f(i)))!==Object.prototype&&(r=o):d=!0),null==r||u((function(){var t={};return r[v].call(t)!==t}))?r={}:p&&(r=c(r)),a(r[v])||s(r,v,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},function(t,e,n){var r=n(1),o=n(10),i=n(109);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return o(n),i(r),e?t(n,r):n.__proto__=r,n}}():void 0)},function(t,e,n){var r=n(1);t.exports=r([].slice)},function(t,e,n){var r=n(39),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){"use strict";var r=n(57).forEach,o=n(88)("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e,n){"use strict";var r=n(102).charAt,o=n(22),i=n(21),u=n(66),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),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})}))},function(t,e,n){var r=n(4);e.f=r},function(t,e,n){var r=n(13);t.exports=r("navigator","userAgent")||""},function(t,e,n){var r=n(3),o=n(4),i=n(48),u=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[];return(e.constructor={})[u]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,n){"use strict";var r=n(6),o=n(0),i=n(13),u=n(89),a=n(11),c=n(1),f=n(27),s=n(7),l=n(45),p=n(3),v=n(5),d=n(33),y=n(2),h=n(8),g=n(26),m=n(40),x=n(10),b=n(15),O=n(12),S=n(25),w=n(22),M=n(20),E=n(18),T=n(58),j=n(35),_=n(101),A=n(65),k=n(24),P=n(9),I=n(62),C=n(75),R=n(14),L=n(32),N=n(28),D=n(23),F=n(34),G=n(4),z=n(79),B=n(83),U=n(47),V=n(21),W=n(57).forEach,K=N("hidden"),$=G("toPrimitive"),H=V.set,Y=V.getterFor("Symbol"),X=Object.prototype,q=o.Symbol,J=q&&q.prototype,Q=o.TypeError,Z=o.QObject,tt=i("JSON","stringify"),et=k.f,nt=P.f,rt=_.f,ot=I.f,it=c([].push),ut=L("symbols"),at=L("op-symbols"),ct=L("string-to-symbol-registry"),ft=L("symbol-to-string-registry"),st=L("wks"),lt=!Z||!Z.prototype||!Z.prototype.findChild,pt=s&&p((function(){return 7!=E(nt({},"a",{get:function(){return nt(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=et(X,e);r&&delete X[e],nt(t,e,n),r&&t!==X&&nt(X,e,r)}:nt,vt=function(t,e){var n=ut[t]=E(J);return H(n,{type:"Symbol",tag:t,description:e}),s||(n.description=e),n},dt=function(t,e,n){t===X&&dt(at,e,n),x(t);var r=S(e);return x(n),v(ut,r)?(n.enumerable?(v(t,K)&&t[K][r]&&(t[K][r]=!1),n=E(n,{enumerable:M(0,!1)})):(v(t,K)||nt(t,K,M(1,{})),t[K][r]=!0),pt(t,r,n)):nt(t,r,n)},yt=function(t,e){x(t);var n=O(e),r=T(n).concat(xt(n));return W(r,(function(e){s&&!a(ht,n,e)||dt(t,e,n[e])})),t},ht=function(t){var e=S(t),n=a(ot,this,e);return!(this===X&&v(ut,e)&&!v(at,e))&&(!(n||!v(this,e)||!v(ut,e)||v(this,K)&&this[K][e])||n)},gt=function(t,e){var n=O(t),r=S(e);if(n!==X||!v(ut,r)||v(at,r)){var o=et(n,r);return!o||!v(ut,r)||v(n,K)&&n[K][r]||(o.enumerable=!0),o}},mt=function(t){var e=rt(O(t)),n=[];return W(e,(function(t){v(ut,t)||v(D,t)||it(n,t)})),n},xt=function(t){var e=t===X,n=rt(e?at:O(t)),r=[];return W(n,(function(t){!v(ut,t)||e&&!v(X,t)||it(r,ut[t])})),r};(l||(R(J=(q=function(){if(g(J,this))throw Q("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?w(arguments[0]):void 0,e=F(t),n=function(t){this===X&&a(n,at,t),v(this,K)&&v(this[K],e)&&(this[K][e]=!1),pt(this,e,M(1,t))};return s&&lt&&pt(X,e,{configurable:!0,set:n}),vt(e,t)}).prototype,"toString",(function(){return Y(this).tag})),R(q,"withoutSetter",(function(t){return vt(F(t),t)})),I.f=ht,P.f=dt,k.f=gt,j.f=_.f=mt,A.f=xt,z.f=function(t){return vt(G(t),t)},s&&(nt(J,"description",{configurable:!0,get:function(){return Y(this).description}}),f||R(X,"propertyIsEnumerable",ht,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:q}),W(T(st),(function(t){B(t)})),r({target:"Symbol",stat:!0,forced:!l},{for:function(t){var e=w(t);if(v(ct,e))return ct[e];var n=q(e);return ct[e]=n,ft[n]=e,n},keyFor:function(t){if(!m(t))throw Q(t+" is not a symbol");if(v(ft,t))return ft[t]},useSetter:function(){lt=!0},useSimple:function(){lt=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!s},{create:function(t,e){return void 0===e?E(t):yt(E(t),e)},defineProperty:dt,defineProperties:yt,getOwnPropertyDescriptor:gt}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:mt,getOwnPropertySymbols:xt}),r({target:"Object",stat:!0,forced:p((function(){A.f(1)}))},{getOwnPropertySymbols:function(t){return A.f(b(t))}}),tt)&&r({target:"JSON",stat:!0,forced:!l||p((function(){var t=q();return"[null]"!=tt([t])||"{}"!=tt({a:t})||"{}"!=tt(Object(t))}))},{stringify:function(t,e,n){var r=C(arguments),o=e;if((h(e)||void 0!==t)&&!m(t))return d(e)||(e=function(t,e){if(y(o)&&(e=a(o,this,t,e)),!m(e))return e}),r[1]=e,u(tt,null,r)}});if(!J[$]){var bt=J.valueOf;R(J,$,(function(t){return a(bt,this)}))}U(q,"Symbol"),D[K]=!0},function(t,e,n){var r=n(111),o=n(5),i=n(79),u=n(9).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||u(e,t,{value:i.f(t)})}},function(t,e,n){var r=n(13),o=n(1),i=n(35),u=n(65),a=n(10),c=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(a(t)),n=u.f;return n?c(e,n(t)):e}},function(t,e,n){var r=n(12),o=n(55),i=n(17),u=function(t){return function(e,n,u){var a,c=r(e),f=i(c),s=o(u,f);if(t&&n!=n){for(;f>s;)if((a=c[s++])!=a)return!0}else for(;f>s;s++)if((t||s in c)&&c[s]===n)return t||s||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},function(t,e,n){var r=n(0),o=n(71),i=n(72),u=n(59),a=n(16),c=n(4),f=c("iterator"),s=c("toStringTag"),l=u.values,p=function(t,e){if(t){if(t[f]!==l)try{a(t,f,l)}catch(e){t[f]=l}if(t[s]||a(t,s,e),o[e])for(var n in u)if(t[n]!==u[n])try{a(t,n,u[n])}catch(e){t[n]=u[n]}}};for(var v in o)p(r[v]&&r[v].prototype,v);p(i,"DOMTokenList")},function(t,e,n){var r=n(0),o=n(11),i=n(8),u=n(40),a=n(49),c=n(96),f=n(4),s=r.TypeError,l=f("toPrimitive");t.exports=function(t,e){if(!i(t)||u(t))return t;var n,r=a(t,l);if(r){if(void 0===e&&(e="default"),n=o(r,t,e),!i(n)||u(n))return n;throw s("Can't convert object to primitive value")}return void 0===e&&(e="number"),c(t,e)}},function(t,e,n){"use strict";var r=n(3);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},function(t,e){var n=Function.prototype,r=n.apply,o=n.bind,i=n.call;t.exports="object"==typeof Reflect&&Reflect.apply||(o?i.bind(r):function(){return i.apply(r,arguments)})},function(t,e,n){"use strict";var r=n(6),o=n(7),i=n(0),u=n(1),a=n(5),c=n(2),f=n(26),s=n(22),l=n(9).f,p=n(67),v=i.Symbol,d=v&&v.prototype;if(o&&c(v)&&(!("description"in d)||void 0!==v().description)){var y={},h=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:s(arguments[0]),e=f(d,this)?new v(t):void 0===t?v():v(t);return""===t&&(y[e]=!0),e};p(h,v),h.prototype=d,d.constructor=h;var g="Symbol(test)"==String(v("test")),m=u(d.toString),x=u(d.valueOf),b=/^Symbol\((.*)\)[^)]+$/,O=u("".replace),S=u("".slice);l(d,"description",{configurable:!0,get:function(){var t=x(this),e=m(t);if(a(y,t))return"";var n=g?S(e,7,-1):O(e,b,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:h})}},function(t,e,n){n(83)("iterator")},function(t,e,n){var r=n(6),o=n(7);r({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:n(9).f})},function(t,e,n){var r=n(7),o=n(9),i=n(10),u=n(12),a=n(58);t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=u(e),c=a(e),f=c.length,s=0;f>s;)o.f(t,n=c[s++],r[n]);return t}},function(t,e,n){var r=n(31),o=n(49),i=n(29),u=n(4)("iterator");t.exports=function(t){if(null!=t)return o(t,u)||o(t,"@@iterator")||i[r(t)]}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(0),o=n(11),i=n(2),u=n(8),a=r.TypeError;t.exports=function(t,e){var n,r;if("string"===e&&i(n=t.toString)&&!u(r=o(n,t)))return r;if(i(n=t.valueOf)&&!u(r=o(n,t)))return r;if("string"!==e&&i(n=t.toString)&&!u(r=o(n,t)))return r;throw a("Can't convert object to primitive value")}},function(t,e,n){var r=n(0),o=n(2),i=n(38),u=r.WeakMap;t.exports=o(u)&&/native code/.test(i(u))},function(t,e,n){var r=n(0),o=n(33),i=n(56),u=n(8),a=n(4)("species"),c=r.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,n){"use strict";var r=n(43),o=n(31);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,e,n){var r=n(3);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,n){var r=n(19),o=n(12),i=n(35).f,u=n(107),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"Window"==r(t)?function(t){try{return i(t)}catch(t){return u(a)}}(t):i(o(t))}},function(t,e,n){var r=n(1),o=n(39),i=n(22),u=n(30),a=r("".charAt),c=r("".charCodeAt),f=r("".slice),s=function(t){return function(e,n){var r,s,l=i(u(e)),p=o(n),v=l.length;return p<0||p>=v?t?"":void 0:(r=c(l,p))<55296||r>56319||p+1===v||(s=c(l,p+1))<56320||s>57343?t?a(l,p):r:t?f(l,p,p+2):s-56320+(r-55296<<10)+65536}};t.exports={codeAt:s(!1),charAt:s(!0)}},function(t,e,n){var r=n(13);t.exports=r("document","documentElement")},function(t,e,n){"use strict";var r=n(6),o=n(77);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,e,n){var r=n(0),o=n(71),i=n(72),u=n(77),a=n(16),c=function(t){if(t&&t.forEach!==u)try{a(t,"forEach",u)}catch(e){t.forEach=u}};for(var f in o)o[f]&&c(r[f]&&r[f].prototype);c(i)},function(t,e,n){var r=n(4),o=n(18),i=n(9),u=r("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,n){var r=n(0),o=n(55),i=n(17),u=n(50),a=r.Array,c=Math.max;t.exports=function(t,e,n){for(var r=i(t),f=o(e,r),s=o(void 0===n?r:n,r),l=a(c(s-f,0)),p=0;f<s;f++,p++)u(l,p,t[f]);return l.length=p,l}},function(t,e,n){"use strict";var r=n(73).IteratorPrototype,o=n(18),i=n(20),u=n(47),a=n(29),c=function(){return this};t.exports=function(t,e,n,f){var s=e+" Iterator";return t.prototype=o(r,{next:i(+!f,n)}),u(t,s,!1,!0),a[s]=c,t}},function(t,e,n){var r=n(0),o=n(2),i=r.String,u=r.TypeError;t.exports=function(t){if("object"==typeof t||o(t))return t;throw u("Can't set "+i(t)+" as a prototype")}},function(t,e,n){"use strict";var r,o,i=n(11),u=n(1),a=n(22),c=n(120),f=n(121),s=n(32),l=n(18),p=n(21).get,v=n(125),d=n(126),y=s("native-string-replace",String.prototype.replace),h=RegExp.prototype.exec,g=h,m=u("".charAt),x=u("".indexOf),b=u("".replace),O=u("".slice),S=(o=/b*/g,i(h,r=/a/,"a"),i(h,o,"a"),0!==r.lastIndex||0!==o.lastIndex),w=f.BROKEN_CARET,M=void 0!==/()??/.exec("")[1];(S||M||w||v||d)&&(g=function(t){var e,n,r,o,u,f,s,v=this,d=p(v),E=a(t),T=d.raw;if(T)return T.lastIndex=v.lastIndex,e=i(g,T,E),v.lastIndex=T.lastIndex,e;var j=d.groups,_=w&&v.sticky,A=i(c,v),k=v.source,P=0,I=E;if(_&&(A=b(A,"y",""),-1===x(A,"g")&&(A+="g"),I=O(E,v.lastIndex),v.lastIndex>0&&(!v.multiline||v.multiline&&"\n"!==m(E,v.lastIndex-1))&&(k="(?: "+k+")",I=" "+I,P++),n=new RegExp("^(?:"+k+")",A)),M&&(n=new RegExp("^"+k+"$(?!\\s)",A)),S&&(r=v.lastIndex),o=i(h,_?n:v,I),_?o?(o.input=O(o.input,P),o[0]=O(o[0],P),o.index=v.lastIndex,v.lastIndex+=o[0].length):v.lastIndex=0:S&&o&&(v.lastIndex=v.global?o.index+o[0].length:r),M&&o&&o.length>1&&i(y,o[0],n,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(o[u]=void 0)})),o&&j)for(o.groups=f=l(null),u=0;u<j.length;u++)f[(s=j[u])[0]]=o[s[1]];return o}),t.exports=g},function(t,e,n){var r=n(0);t.exports=r},function(t,e,n){var r=n(4),o=n(29),i=r("iterator"),u=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||u[i]===t)}},function(t,e,n){var r=n(0),o=n(11),i=n(36),u=n(10),a=n(52),c=n(94),f=r.TypeError;t.exports=function(t,e){var n=arguments.length<2?c(t):e;if(i(n))return u(o(n,t));throw f(a(t)+" is not iterable")}},function(t,e,n){var r=n(11),o=n(10),i=n(49);t.exports=function(t,e,n){var u,a;o(t);try{if(!(u=i(t,"return"))){if("throw"===e)throw n;return n}u=r(u,t)}catch(t){a=!0,u=t}if("throw"===e)throw n;if(a)throw u;return o(u),n}},function(t,e,n){var r=n(4)("iterator"),o=!1;try{var i=0,u={next:function(){return{done:!!i++}},return:function(){o=!0}};u[r]=function(){return this},Array.from(u,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(6),o=n(110);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(t,e,n){var r=n(0),o=n(54),i=n(11),u=n(10),a=n(52),c=n(112),f=n(17),s=n(26),l=n(113),p=n(94),v=n(114),d=r.TypeError,y=function(t,e){this.stopped=t,this.result=e},h=y.prototype;t.exports=function(t,e,n){var r,g,m,x,b,O,S,w=n&&n.that,M=!(!n||!n.AS_ENTRIES),E=!(!n||!n.IS_ITERATOR),T=!(!n||!n.INTERRUPTED),j=o(e,w),_=function(t){return r&&v(r,"normal",t),new y(!0,t)},A=function(t){return M?(u(t),T?j(t[0],t[1],_):j(t[0],t[1])):T?j(t,_):j(t)};if(E)r=t;else{if(!(g=p(t)))throw d(a(t)+" is not iterable");if(c(g)){for(m=0,x=f(t);x>m;m++)if((b=A(t[m]))&&s(h,b))return b;return new y(!1)}r=l(t,g)}for(O=r.next;!(S=i(O,r)).done;){try{b=A(S.value)}catch(t){v(r,"throw",t)}if("object"==typeof b&&b&&s(h,b))return b}return new y(!1)}},function(t,e,n){var r=n(0),o=n(26),i=r.TypeError;t.exports=function(t,e){if(o(e,t))return t;throw i("Incorrect invocation")}},function(t,e,n){"use strict";var r=n(6),o=n(0),i=n(3),u=n(33),a=n(8),c=n(15),f=n(17),s=n(50),l=n(70),p=n(81),v=n(4),d=n(48),y=v("isConcatSpreadable"),h=o.TypeError,g=d>=51||!i((function(){var t=[];return t[y]=!1,t.concat()[0]!==t})),m=p("concat"),x=function(t){if(!a(t))return!1;var e=t[y];return void 0!==e?!!e:u(t)};r({target:"Array",proto:!0,forced:!g||!m},{concat:function(t){var e,n,r,o,i,u=c(this),a=l(u,0),p=0;for(e=-1,r=arguments.length;e<r;e++)if(x(i=-1===e?u:arguments[e])){if(p+(o=f(i))>9007199254740991)throw h("Maximum allowed index exceeded");for(n=0;n<o;n++,p++)n in i&&s(a,p,i[n])}else{if(p>=9007199254740991)throw h("Maximum allowed index exceeded");s(a,p++,i)}return a.length=p,a}})},function(t,e,n){"use strict";var r=n(10);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){var r=n(3),o=n(0).RegExp,i=r((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),u=i||r((function(){return!o("a","y").sticky})),a=i||r((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,n){var r=n(6),o=n(1),i=n(23),u=n(8),a=n(5),c=n(9).f,f=n(35),s=n(101),l=n(146),p=n(34),v=n(148),d=!1,y=p("meta"),h=0,g=function(t){c(t,y,{value:{objectID:"O"+h++,weakData:{}}})},m=t.exports={enable:function(){m.enable=function(){},d=!0;var t=f.f,e=o([].splice),n={};n[y]=1,t(n).length&&(f.f=function(n){for(var r=t(n),o=0,i=r.length;o<i;o++)if(r[o]===y){e(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames: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(!l(t))return"F";if(!e)return"E";g(t)}return t[y].objectID},getWeakData:function(t,e){if(!a(t,y)){if(!l(t))return!0;if(!e)return!1;g(t)}return t[y].weakData},onFreeze:function(t){return v&&d&&l(t)&&!a(t,y)&&g(t),t}};i[y]=!0},,function(t,e,n){var r=n(2),o=n(8),i=n(74);t.exports=function(t,e,n){var u,a;return i&&r(u=e.constructor)&&u!==n&&o(a=u.prototype)&&a!==n.prototype&&i(t,a),t}},function(t,e,n){var r=n(3),o=n(0).RegExp;t.exports=r((function(){var t=o(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},function(t,e,n){var r=n(3),o=n(0).RegExp;t.exports=r((function(){var t=o("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},,,,,function(t,e,n){var r=n(6),o=n(132);r({target:"Array",stat:!0,forced:!n(115)((function(t){Array.from(t)}))},{from:o})},function(t,e,n){"use strict";var r=n(0),o=n(54),i=n(11),u=n(15),a=n(133),c=n(112),f=n(56),s=n(17),l=n(50),p=n(113),v=n(94),d=r.Array;t.exports=function(t){var e=u(t),n=f(this),r=arguments.length,y=r>1?arguments[1]:void 0,h=void 0!==y;h&&(y=o(y,r>2?arguments[2]:void 0));var g,m,x,b,O,S,w=v(e),M=0;if(!w||this==d&&c(w))for(g=s(e),m=n?new this(g):d(g);g>M;M++)S=h?y(e[M],M):e[M],l(m,M,S);else for(O=(b=p(e,w)).next,m=n?new this:[];!(x=i(O,b)).done;M++)S=h?a(b,y,[x.value,M],!0):x.value,l(m,M,S);return m.length=M,m}},function(t,e,n){var r=n(10),o=n(114);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){o(t,"throw",e)}}},function(t,e,n){n(6)({target:"Array",stat:!0},{isArray:n(33)})},function(t,e,n){"use strict";var r=n(6),o=n(0),i=n(33),u=n(56),a=n(8),c=n(55),f=n(17),s=n(12),l=n(50),p=n(4),v=n(81),d=n(75),y=v("slice"),h=p("species"),g=o.Array,m=Math.max;r({target:"Array",proto:!0,forced:!y},{slice:function(t,e){var n,r,o,p=s(this),v=f(p),y=c(t,v),x=c(void 0===e?v:e,v);if(i(p)&&(n=p.constructor,(u(n)&&(n===g||i(n.prototype))||a(n)&&null===(n=n[h]))&&(n=void 0),n===g||void 0===n))return d(p,y,x);for(r=new(void 0===n?g:n)(m(x-y,0)),o=0;y<x;y++,o++)y in p&&l(r,o,p[y]);return r.length=o,r}})},function(t,e,n){var r=n(7),o=n(53).EXISTS,i=n(1),u=n(9).f,a=Function.prototype,c=i(a.toString),f=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,s=i(f.exec);r&&!o&&u(a,"name",{configurable:!0,get:function(){try{return s(f,c(this))[1]}catch(t){return""}}})},function(t,e,n){"use strict";var r=n(6),o=n(0),i=n(1),u=n(69),a=n(14),c=n(122),f=n(117),s=n(118),l=n(2),p=n(8),v=n(3),d=n(115),y=n(47),h=n(124);t.exports=function(t,e,n){var g=-1!==t.indexOf("Map"),m=-1!==t.indexOf("Weak"),x=g?"set":"add",b=o[t],O=b&&b.prototype,S=b,w={},M=function(t){var e=i(O[t]);a(O,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(m&&!p(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return m&&!p(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(m&&!p(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(u(t,!l(b)||!(m||O.forEach&&!v((function(){(new b).entries().next()})))))S=n.getConstructor(e,t,g,x),c.enable();else if(u(t,!0)){var E=new S,T=E[x](m?{}:-0,1)!=E,j=v((function(){E.has(1)})),_=d((function(t){new b(t)})),A=!m&&v((function(){for(var t=new b,e=5;e--;)t[x](e,e);return!t.has(-0)}));_||((S=e((function(t,e){s(t,O);var n=h(new b,t,S);return null!=e&&f(e,n[x],{that:n,AS_ENTRIES:g}),n}))).prototype=O,O.constructor=S),(j||A)&&(M("delete"),M("has"),g&&M("get")),(A||T)&&M(x),m&&O.clear&&delete O.clear}return w[t]=S,r({global:!0,forced:S!=b},w),y(S,t),m||n.setStrong(S,t,g),S}},function(t,e,n){"use strict";var r=n(9).f,o=n(18),i=n(139),u=n(54),a=n(118),c=n(117),f=n(66),s=n(140),l=n(7),p=n(122).fastKey,v=n(21),d=v.set,y=v.getterFor;t.exports={getConstructor:function(t,e,n,f){var s=t((function(t,r){a(t,v),d(t,{type:e,index:o(null),first:void 0,last:void 0,size:0}),l||(t.size=0),null!=r&&c(r,t[f],{that:t,AS_ENTRIES:n})})),v=s.prototype,h=y(e),g=function(t,e,n){var r,o,i=h(t),u=m(t,e);return u?u.value=n:(i.last=u={index:o=p(e,!0),key:e,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=u),r&&(r.next=u),l?i.size++:t.size++,"F"!==o&&(i.index[o]=u)),t},m=function(t,e){var n,r=h(t),o=p(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==e)return n};return i(v,{clear:function(){for(var t=h(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,l?t.size=0:this.size=0},delete:function(t){var e=h(this),n=m(this,t);if(n){var r=n.next,o=n.previous;delete e.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),e.first==n&&(e.first=r),e.last==n&&(e.last=o),l?e.size--:this.size--}return!!n},forEach:function(t){for(var e,n=h(this),r=u(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!m(this,t)}}),i(v,n?{get:function(t){var e=m(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)}}),l&&r(v,"size",{get:function(){return h(this).size}}),s},setStrong:function(t,e,n){var r=e+" Iterator",o=y(e),i=y(r);f(t,e,(function(t,e){d(this,{type:r,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),s(e)}}},function(t,e,n){var r=n(14);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){"use strict";var r=n(13),o=n(9),i=n(4),u=n(7),a=i("species");t.exports=function(t){var e=r(t),n=o.f;u&&e&&!e[a]&&n(e,a,{configurable:!0,get:function(){return this}})}},,,,,function(t,e,n){"use strict";n(137)("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(138))},function(t,e,n){var r=n(3),o=n(8),i=n(19),u=n(147),a=Object.isExtensible,c=r((function(){a(1)}));t.exports=c||u?function(t){return!!o(t)&&((!u||"ArrayBuffer"!=i(t))&&(!a||a(t)))}:a},function(t,e,n){var r=n(3);t.exports=r((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},function(t,e,n){var r=n(3);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},,,,,,,,function(t,e,n){"use strict";var r=n(6),o=n(1),i=n(85).indexOf,u=n(88),a=o([].indexOf),c=!!a&&1/a([1],1,-0)<0,f=u("indexOf");r({target:"Array",proto:!0,forced:c||!f},{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,n){"use strict";n.r(e),n.d(e,"Menu",(function(){return f}));n(59),n(145),n(68),n(78),n(86),n(104),n(105),n(156),n(131),n(134),n(119),n(92),n(82),n(90),n(91),n(135),n(136),n(116);function r(t){return function(t){if(Array.isArray(t))return o(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 o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t)||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 o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var u,a,c,f=function(){function t(e){var n=this,r=e.lf;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.__menuDOM=document.createElement("ul"),this.lf=r,this.menuTypeMap=new Map,this.init(),this.lf.setMenuConfig=function(t){n.setMenuConfig(t)},this.lf.addMenuConfig=function(t){n.addMenuConfig(t)},this.lf.setMenuByType=function(t){n.setMenuByType(t)}}var e,n,o;return e=t,(n=[{key:"init",value:function(){var t=this,e=[{text:"删除",callback:function(e){t.lf.deleteNode(e.id)}},{text:"编辑文本",callback:function(e){t.lf.graphModel.editText(e.id)}},{text:"复制",callback:function(e){t.lf.cloneNode(e.id)}}];this.menuTypeMap.set("lf:defaultNodeMenu",e);var n=[{text:"删除",callback:function(e){t.lf.deleteEdge(e.id)}},{text:"编辑文本",callback:function(e){t.lf.graphModel.editText(e.id)}}];this.menuTypeMap.set("lf:defaultEdgeMenu",n),this.menuTypeMap.set("lf:defaultGraphMenu",[]);var r=[{text:"删除",callback:function(e){t.lf.clearSelectElements(),e.edges.forEach((function(e){return t.lf.deleteEdge(e.id)})),e.nodes.forEach((function(e){return t.lf.deleteNode(e.id)}))}}];this.menuTypeMap.set("lf:defaultSelectionMenu",r)}},{key:"render",value:function(t,e){var n=this;this.__container=e,this.__currentData=null,this.__menuDOM.className="lf-menu",e.appendChild(this.__menuDOM),this.__menuDOM.addEventListener("click",(function(t){t.stopPropagation();for(var e=t.target;-1===Array.from(e.classList).indexOf("lf-menu-item")&&-1===Array.from(e.classList).indexOf("lf-menu");)e=e.parentElement;Array.from(e.classList).indexOf("lf-menu-item")>-1?(e.onclickCallback(n.__currentData),n.__menuDOM.style.display="none",n.__currentData=null):console.warn("点击区域不在菜单项内,请检查代码!")}),!0),this.lf.on("node:contextmenu",(function(t){var e=t.data,r=t.position.domOverlayPosition,o=r.x,i=r.y,u=e.id,a=n.lf.graphModel.getNodeModelById(u),c=[],f=n.menuTypeMap.get(a.type);c=a&&a.menu&&Array.isArray(a.menu)?a.menu:f||n.menuTypeMap.get("lf:defaultNodeMenu"),n.__currentData=e,n.showMenu(o,i,c)})),this.lf.on("edge:contextmenu",(function(t){var e=t.data,r=t.position.domOverlayPosition,o=r.x,i=r.y,u=e.id,a=n.lf.graphModel.getEdgeModelById(u),c=[],f=n.menuTypeMap.get(a.type);c=a&&a.menu&&Array.isArray(a.menu)?a.menu:f||n.menuTypeMap.get("lf:defaultEdgeMenu"),n.__currentData=e,n.showMenu(o,i,c)})),this.lf.on("blank:contextmenu",(function(t){var e=t.position,r=n.menuTypeMap.get("lf:defaultGraphMenu"),o=e.domOverlayPosition,i=o.x,u=o.y;n.showMenu(i,u,r)})),this.lf.on("selection:contextmenu",(function(t){var e=t.data,r=t.position,o=n.menuTypeMap.get("lf:defaultSelectionMenu"),i=r.domOverlayPosition,u=i.x,a=i.y;n.__currentData=e,n.showMenu(u,a,o)})),this.lf.on("node:mousedown",(function(){n.__menuDOM.style.display="none"})),this.lf.on("edge:click",(function(){n.__menuDOM.style.display="none"})),this.lf.on("blank:click",(function(){n.__menuDOM.style.display="none"}))}},{key:"destroy",value:function(){var t;null==this||null===(t=this.__container)||void 0===t||t.removeChild(this.__menuDOM),this.__menuDOM=null}},{key:"showMenu",value:function(t,e,n){if(n&&n.length){var o=this.__menuDOM;o.innerHTML="",o.append.apply(o,r(this.__getMenuDom(n))),o.children.length&&(o.style.display="block",o.style.top="".concat(e,"px"),o.style.left="".concat(t,"px"))}}},{key:"setMenuByType",value:function(t){t.type&&t.menu&&this.menuTypeMap.set(t.type,t.menu)}},{key:"__getMenuDom",value:function(t){var e=[];return t&&t.length>0&&t.forEach((function(t){var n=document.createElement("li");if(t.className?n.className="lf-menu-item ".concat(t.className):n.className="lf-menu-item",!0===t.icon){var r=document.createElement("span");r.className="lf-menu-item-icon",n.appendChild(r)}var o=document.createElement("span");o.className="lf-menu-item-text",t.text&&(o.innerText=t.text),n.appendChild(o),n.onclickCallback=t.callback,e.push(n)})),e}},{key:"setMenuConfig",value:function(t){t&&(void 0!==t.nodeMenu&&this.menuTypeMap.set("lf:defaultNodeMenu",t.nodeMenu?t.nodeMenu:[]),void 0!==t.edgeMenu&&this.menuTypeMap.set("lf:defaultEdgeMenu",t.edgeMenu?t.edgeMenu:[]),void 0!==t.graphMenu&&this.menuTypeMap.set("lf:defaultGraphMenu",t.graphMenu?t.graphMenu:[]))}},{key:"addMenuConfig",value:function(t){if(t){if(Array.isArray(t.nodeMenu)){var e=this.menuTypeMap.get("lf:defaultNodeMenu");this.menuTypeMap.set("lf:defaultNodeMenu",e.concat(t.nodeMenu))}if(Array.isArray(t.edgeMenu)){var n=this.menuTypeMap.get("lf:defaultEdgeMenu");this.menuTypeMap.set("lf:defaultEdgeMenu",n.concat(t.edgeMenu))}if(Array.isArray(t.graphMenu)){var r=this.menuTypeMap.get("lf:defaultGraphMenu");this.menuTypeMap.set("lf:defaultGraphMenu",r.concat(t.graphMenu))}}}},{key:"changeMenuItem",value:function(t,e){if("add"===t)this.addMenuConfig(e);else{if("reset"!==t)throw new Error("The first parameter of changeMenuConfig should be 'add' or 'reset'");this.setMenuConfig(e)}}}])&&i(e.prototype,n),o&&i(e,o),t}();c="menu",(a="pluginName")in(u=f)?Object.defineProperty(u,a,{value:c,enumerable:!0,configurable:!0,writable:!0}):u[a]=c,e.default=f}])}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logicflow/extension",
3
- "version": "1.1.0-alpha.1",
3
+ "version": "1.1.0-alpha.2",
4
4
  "description": "LogicFlow extension",
5
5
  "main": "cjs/index.js",
6
6
  "module": "es/index.js",
@@ -32,7 +32,7 @@
32
32
  "readme.md"
33
33
  ],
34
34
  "dependencies": {
35
- "@logicflow/core": "^1.1.0-alpha.1",
35
+ "@logicflow/core": "^1.1.0-alpha.2",
36
36
  "ids": "^1.0.0",
37
37
  "preact": "^10.4.8"
38
38
  },
@@ -10,6 +10,7 @@ declare class ContextMenu {
10
10
  lf: any;
11
11
  });
12
12
  render(lf: any, container: any): void;
13
+ setContextMenuByType(type: any, menus: any): void;
13
14
  /**
14
15
  * 隐藏菜单
15
16
  */