1 line
3.8 MiB
1 line
3.8 MiB
!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 i in n) ("object" == typeof exports ? exports : t)[i] = n[i] } }(window, (function () { return function (t) { var e = {}; function n(i) { if (e[i]) return e[i].exports; var l = e[i] = { i: i, l: !1, exports: {} }; return t[i].call(l.exports, l, l.exports, n), l.l = !0, l.exports } return n.m = t, n.c = e, n.d = function (t, e, i) { n.o(t, e) || Object.defineProperty(t, e, { enumerable: !0, get: i }) }, 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 i = Object.create(null); if (n.r(i), Object.defineProperty(i, "default", { enumerable: !0, value: t }), 2 & e && "string" != typeof t) for (var l in t) n.d(i, l, function (e) { return t[e] }.bind(null, l)); return i }, 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 = 0) }([function (module, exports, __webpack_require__) { "use strict"; eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.SV = void 0;\r\nconst engine_1 = __webpack_require__(9);\r\nconst boundingRect_1 = __webpack_require__(6);\r\nconst group_1 = __webpack_require__(5);\r\nconst pointer_1 = __webpack_require__(18);\r\nconst G6 = __webpack_require__(1);\r\nconst linkListNode_1 = __webpack_require__(19);\r\nconst binaryTreeNode_1 = __webpack_require__(20);\r\nconst clenQueuePointer_1 = __webpack_require__(24);\r\nconst twoCellNode_1 = __webpack_require__(21);\r\nconst cursor_1 = __webpack_require__(22);\r\nconst vector_1 = __webpack_require__(7);\r\nconst indexedNode_1 = __webpack_require__(23);\r\nexports.SV = function (DOMContainer, engineOptions = {}) {\r\n return new engine_1.Engine(DOMContainer, engineOptions);\r\n};\r\nexports.SV.Group = group_1.Group;\r\nexports.SV.Bound = boundingRect_1.Bound;\r\nexports.SV.Vector = vector_1.Vector;\r\nexports.SV.Mat3 = G6.Util.mat3;\r\nexports.SV.G6 = G6;\r\nexports.SV.registeredLayouter = {};\r\nexports.SV.registeredShape = [\r\n pointer_1.default,\r\n linkListNode_1.default,\r\n binaryTreeNode_1.default,\r\n twoCellNode_1.default,\r\n indexedNode_1.default,\r\n cursor_1.default,\r\n clenQueuePointer_1.default,\r\n];\r\nexports.SV.registerShape = G6.registerNode;\r\nexports.SV.registerLayouter = function (name, layouter) {\r\n if (typeof layouter.sourcesPreprocess !== 'function') {\r\n layouter.sourcesPreprocess = function (data) {\r\n return data;\r\n };\r\n }\r\n if (typeof layouter.defineLeakRule !== 'function') {\r\n layouter.defineLeakRule = function (elements) {\r\n return elements;\r\n };\r\n }\r\n if (typeof layouter.defineOptions !== 'function' || typeof layouter.layout !== 'function') {\r\n return;\r\n }\r\n exports.SV.registeredLayouter[name] = layouter;\r\n};\r\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvU3RydWN0Vi50cz9iMTNkIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLHdDQUFrQztBQUNsQyw4Q0FBOEM7QUFDOUMsdUNBQXVDO0FBQ3ZDLDBDQUFnRDtBQUNoRCxrQ0FBa0M7QUFDbEMsK0NBQTBEO0FBQzFELGlEQUE4RDtBQUM5RCxtREFBa0U7QUFDbEUsOENBQXdEO0FBQ3hELHlDQUE4QztBQUM5Qyx3Q0FBeUM7QUFDekMsOENBQXdEO0FBNkIzQyxVQUFFLEdBQVksVUFBUyxZQUF5QixFQUFFLGdCQUErQixFQUFHO0lBQzdGLE9BQU8sSUFBSSxlQUFNLENBQUMsWUFBWSx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AgICAgcmV0dXJuIGVsZW1lbnRzO1xyXG4gICAgICAgIH1cclxuICAgIH1cclxuXHJcbiAgICBpZih0eXBlb2YgbGF5b3V0ZXIuZGVmaW5lT3B0aW9ucyAhPT0gJ2Z1bmN0aW9uJyB8fCB0eXBlb2YgbGF5b3V0ZXIubGF5b3V0ICE9PSAnZnVuY3Rpb24nKSB7XHJcbiAgICAgICAgcmV0dXJuO1xyXG4gICAgfVxyXG4gICAgXHJcbiAgICBTVi5yZWdpc3RlcmVkTGF5b3V0ZXJbbmFtZV0gPSBsYXlvdXRlcjtcclxufTtcclxuXHJcblxyXG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///0\n") }, function (module, exports, __webpack_require__) { eval('!function(t,e){ true?module.exports=e():undefined}(this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{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 i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));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=528)}([function(t,e,n){"use strict";n.d(e,"j",(function(){return v})),n.d(e,"k",(function(){return b})),n.d(e,"y",(function(){return x})),n.d(e,"g",(function(){return i})),n.d(e,"J",(function(){return w})),n.d(e,"h",(function(){return S})),n.d(e,"u",(function(){return _})),n.d(e,"B",(function(){return O})),n.d(e,"G",(function(){return M})),n.d(e,"I",(function(){return T})),n.d(e,"m",(function(){return c})),n.d(e,"n",(function(){return P})),n.d(e,"o",(function(){return j})),n.d(e,"r",(function(){return s})),n.d(e,"s",(function(){return u})),n.d(e,"t",(function(){return E})),n.d(e,"v",(function(){return l})),n.d(e,"w",(function(){return g})),n.d(e,"x",(function(){return m})),n.d(e,"D",(function(){return R})),n.d(e,"b",(function(){return L})),n.d(e,"c",(function(){return U})),n.d(e,"d",(function(){return z})),n.d(e,"e",(function(){return W})),n.d(e,"f",(function(){return h})),n.d(e,"l",(function(){return X})),n.d(e,"p",(function(){return H})),n.d(e,"q",(function(){return q})),n.d(e,"z",(function(){return K})),n.d(e,"A",(function(){return G})),n.d(e,"a",(function(){return G})),n.d(e,"i",(function(){return Z})),n.d(e,"F",(function(){return Q})),n.d(e,"H",(function(){return $})),n.d(e,"C",(function(){return tt})),n.d(e,"E",(function(){return et}));var r=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)},i=function(t,e){if(!r(t))return t;for(var n=[],i=0;i<t.length;i++){var o=t[i];e(o,i)&&n.push(o)}return n},o={}.toString,a=function(t,e){return o.call(t)==="[object "+e+"]"},s=function(t){return a(t,"Function")},u=function(t){return null==t},c=function(t){return Array.isArray?Array.isArray(t):a(t,"Array")};function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var l=function(t){var e=f(t);return null!==t&&"object"===e||"function"===e};var h=function(t,e){if(t)if(c(t))for(var n=0,r=t.length;n<r&&!1!==e(t[n],n);n++);else if(l(t))for(var i in t)if(t.hasOwnProperty(i)&&!1===e(t[i],i))break};Object.keys;function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var p=function(t){return"object"===d(t)&&null!==t},g=function(t){if(!p(t)||!a(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e};var v=function(t){var e=t.filter((function(t){return!isNaN(t)}));if(!e.length)return{min:0,max:0};if(c(t[0])){for(var n=[],r=0;r<t.length;r++)n=n.concat(t[r]);e=n}var i=function(t){if(c(t)){var e=t[0];return h(t,(function(t){t>e&&(e=t)})),e}}(e);return{min:function(t){if(c(t)){var e=t[0];return h(t,(function(t){t<e&&(e=t)})),e}}(e),max:i}},y=Array.prototype,m=(y.splice,y.indexOf,Array.prototype.splice,function(t){return a(t,"String")});function b(t){if(r(t))return t[0]}function x(t){if(r(t)){return t[t.length-1]}}Object.prototype.hasOwnProperty;var w=function(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n};var S=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))},E=function(t){return a(t,"Number")};Number.isInteger&&Number.isInteger;function _(t,e,n){return void 0===n&&(n=1e-5),Math.abs(t-e)<n}var O=function(t,e){return(t%e+e)%e},k=(Math.PI,parseInt,Math.PI/180),M=function(t){return k*t},A=(Object.values,function(t){return u(t)?"":t.toString()});var T=function(t){var e=A(t);return e.charAt(0).toUpperCase()+e.substring(1)},C={}.toString,I=function(t){return C.call(t).replace(/^\\[object /,"").replace(/]$/,"")},P=function(t){return a(t,"Boolean")},j=function(t){return a(t,"Date")},D=Object.prototype,N=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||D)};function R(t){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)})(t)}function L(t){(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout)(t)}function B(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function G(t,e,n,r){return e&&B(t,e),n&&B(t,n),r&&B(t,r),t}function F(t){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var U=function t(e){if("object"!==F(e)||null===e)return e;var n;if(c(e)){n=[];for(var r=0,i=e.length;r<i;r++)"object"===F(e[r])&&null!=e[r]?n[r]=t(e[r]):n[r]=e[r]}else for(var o in n={},e)"object"===F(e[o])&&null!=e[o]?n[o]=t(e[o]):n[o]=e[o];return n};var z=function(t,e,n){var r;return function(){var i=this,o=arguments,a=function(){r=null,n||t.apply(i,o)},s=n&&!r;clearTimeout(r),r=setTimeout(a,e),s&&t.apply(i,o)}};function V(t,e,n,r){for(var i in n=n||0,r=r||5,e)if(e.hasOwnProperty(i)){var o=e[i];null!==o&&g(o)?(g(t[i])||(t[i]={}),n<r?V(t[i],o,n+1,r):t[i]=e[i]):c(o)?(t[i]=[],t[i]=t[i].concat(o)):void 0!==o&&(t[i]=o)}}var W=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r+=1)V(t,e[r]);return t},X=function(t,e){if(!r(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var i=-1,o=0;o<t.length;o++)if(t[o]===e){i=o;break}return i},Y=Object.prototype.hasOwnProperty;var H=function(t){if(u(t))return!0;if(r(t))return!t.length;var e=I(t);if("Map"===e||"Set"===e)return!t.size;if(N(t))return!Object.keys(t).length;for(var n in t)if(Y.call(t,n))return!1;return!0},q=function t(e,n){if(e===n)return!0;if(!e||!n)return!1;if(m(e)||m(n))return!1;if(r(e)||r(n)){if(e.length!==n.length)return!1;for(var i=!0,o=0;o<e.length&&(i=t(e[o],n[o]));o++);return i}if(p(e)||p(n)){var a=Object.keys(e),s=Object.keys(n);if(a.length!==s.length)return!1;for(i=!0,o=0;o<a.length&&(i=t(e[a[o]],n[a[o]]));o++);return i}return!1},K=function(t,e){if(!r(t))return t;for(var n=[],i=0;i<t.length;i++){var o=t[i];n.push(e(o,i))}return n},Z=function(t,e,n){for(var r=0,i=m(e)?e.split("."):e;t&&r<i.length;)t=t[i[r++]];return void 0===t||r<i.length?n:t},Q=(Object.prototype.hasOwnProperty,function(t){return r(t)?Array.prototype.slice.call(t):[]}),J={},$=function(t){return J[t=t||"g"]?J[t]+=1:J[t]=1,t+J[t]},tt=function(){};function et(t){return u(t)?0:r(t)?t.length:Object.keys(t).length}!function(){function t(){this.map={}}t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length}}()},function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"d",(function(){return s}));\r\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\nvar r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}Object.create;function s(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}Object.create},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"d",(function(){return pn})),n.d(e,"e",(function(){return jt})),n.d(e,"f",(function(){return o}));var r={};n.r(r),n.d(r,"create",(function(){return u})),n.d(r,"fromMat4",(function(){return c})),n.d(r,"clone",(function(){return f})),n.d(r,"copy",(function(){return l})),n.d(r,"fromValues",(function(){return h})),n.d(r,"set",(function(){return d})),n.d(r,"identity",(function(){return p})),n.d(r,"transpose",(function(){return g})),n.d(r,"invert",(function(){return v})),n.d(r,"adjoint",(function(){return y})),n.d(r,"determinant",(function(){return m})),n.d(r,"multiply",(function(){return b})),n.d(r,"translate",(function(){return x})),n.d(r,"rotate",(function(){return w})),n.d(r,"scale",(function(){return S})),n.d(r,"fromTranslation",(function(){return E})),n.d(r,"fromRotation",(function(){return _})),n.d(r,"fromScaling",(function(){return O})),n.d(r,"fromMat2d",(function(){return k})),n.d(r,"fromQuat",(function(){return M})),n.d(r,"normalFromMat4",(function(){return A})),n.d(r,"projection",(function(){return T})),n.d(r,"str",(function(){return C})),n.d(r,"frob",(function(){return I})),n.d(r,"add",(function(){return P})),n.d(r,"subtract",(function(){return j})),n.d(r,"multiplyScalar",(function(){return D})),n.d(r,"multiplyScalarAndAdd",(function(){return N})),n.d(r,"exactEquals",(function(){return R})),n.d(r,"equals",(function(){return L})),n.d(r,"mul",(function(){return B})),n.d(r,"sub",(function(){return G}));var i={};n.r(i),n.d(i,"create",(function(){return F})),n.d(i,"clone",(function(){return U})),n.d(i,"copy",(function(){return z})),n.d(i,"fromValues",(function(){return V})),n.d(i,"set",(function(){return W})),n.d(i,"identity",(function(){return X})),n.d(i,"transpose",(function(){return Y})),n.d(i,"invert",(function(){return H})),n.d(i,"adjoint",(function(){return q})),n.d(i,"determinant",(function(){return K})),n.d(i,"multiply",(function(){return Z})),n.d(i,"translate",(function(){return Q})),n.d(i,"scale",(function(){return J})),n.d(i,"rotate",(function(){return $})),n.d(i,"rotateX",(function(){return tt})),n.d(i,"rotateY",(function(){return et})),n.d(i,"rotateZ",(function(){return nt})),n.d(i,"fromTranslation",(function(){return rt})),n.d(i,"fromScaling",(function(){return it})),n.d(i,"fromRotation",(function(){return ot})),n.d(i,"fromXRotation",(function(){return at})),n.d(i,"fromYRotation",(function(){return st})),n.d(i,"fromZRotation",(function(){return ut})),n.d(i,"fromRotationTranslation",(function(){return ct})),n.d(i,"fromQuat2",(function(){return ft})),n.d(i,"getTranslation",(function(){return lt})),n.d(i,"getScaling",(function(){return ht})),n.d(i,"getRotation",(function(){return dt})),n.d(i,"fromRotationTranslationScale",(function(){return pt})),n.d(i,"fromRotationTranslationScaleOrigin",(function(){return gt})),n.d(i,"fromQuat",(function(){return vt})),n.d(i,"frustum",(function(){return yt})),n.d(i,"perspective",(function(){return mt})),n.d(i,"perspectiveFromFieldOfView",(function(){return bt})),n.d(i,"ortho",(function(){return xt})),n.d(i,"lookAt",(function(){return wt})),n.d(i,"targetTo",(function(){return St})),n.d(i,"str",(function(){return Et})),n.d(i,"frob",(function(){return _t})),n.d(i,"add",(function(){return Ot})),n.d(i,"subtract",(function(){return kt})),n.d(i,"multiplyScalar",(function(){return Mt})),n.d(i,"multiplyScalarAndAdd",(function(){return At})),n.d(i,"exactEquals",(function(){return Tt})),n.d(i,"equals",(function(){return Ct})),n.d(i,"mul",(function(){return It})),n.d(i,"sub",(function(){return Pt}));var o={};n.r(o),n.d(o,"create",(function(){return Dt})),n.d(o,"clone",(function(){return Nt})),n.d(o,"fromValues",(function(){return Rt})),n.d(o,"copy",(function(){return Lt})),n.d(o,"set",(function(){return Bt})),n.d(o,"add",(function(){return Gt})),n.d(o,"subtract",(function(){return Ft})),n.d(o,"multiply",(function(){return Ut})),n.d(o,"divide",(function(){return zt})),n.d(o,"ceil",(function(){return Vt})),n.d(o,"floor",(function(){return Wt})),n.d(o,"min",(function(){return Xt})),n.d(o,"max",(function(){return Yt})),n.d(o,"round",(function(){return Ht})),n.d(o,"scale",(function(){return qt})),n.d(o,"scaleAndAdd",(function(){return Kt})),n.d(o,"distance",(function(){return Zt})),n.d(o,"squaredDistance",(function(){return Qt})),n.d(o,"length",(function(){return Jt})),n.d(o,"squaredLength",(function(){return $t})),n.d(o,"negate",(function(){return te})),n.d(o,"inverse",(function(){return ee})),n.d(o,"normalize",(function(){return ne})),n.d(o,"dot",(function(){return re})),n.d(o,"cross",(function(){return ie})),n.d(o,"lerp",(function(){return oe})),n.d(o,"random",(function(){return ae})),n.d(o,"transformMat4",(function(){return se})),n.d(o,"transformQuat",(function(){return ue})),n.d(o,"zero",(function(){return ce})),n.d(o,"str",(function(){return fe})),n.d(o,"exactEquals",(function(){return le})),n.d(o,"equals",(function(){return he})),n.d(o,"sub",(function(){return pe})),n.d(o,"mul",(function(){return ge})),n.d(o,"div",(function(){return ve})),n.d(o,"dist",(function(){return ye})),n.d(o,"sqrDist",(function(){return me})),n.d(o,"len",(function(){return be})),n.d(o,"sqrLen",(function(){return xe})),n.d(o,"forEach",(function(){return we}));var a={};n.r(a),n.d(a,"create",(function(){return Se})),n.d(a,"identity",(function(){return Ee})),n.d(a,"setAxisAngle",(function(){return _e})),n.d(a,"getAxisAngle",(function(){return Oe})),n.d(a,"getAngle",(function(){return ke})),n.d(a,"multiply",(function(){return Me})),n.d(a,"rotateX",(function(){return Ae})),n.d(a,"rotateY",(function(){return Te})),n.d(a,"rotateZ",(function(){return Ce})),n.d(a,"calculateW",(function(){return Ie})),n.d(a,"exp",(function(){return Pe})),n.d(a,"ln",(function(){return je})),n.d(a,"pow",(function(){return De})),n.d(a,"slerp",(function(){return Ne})),n.d(a,"random",(function(){return Re})),n.d(a,"invert",(function(){return Le})),n.d(a,"conjugate",(function(){return Be})),n.d(a,"fromMat3",(function(){return Ge})),n.d(a,"fromEuler",(function(){return Fe})),n.d(a,"str",(function(){return Ue})),n.d(a,"clone",(function(){return qe})),n.d(a,"fromValues",(function(){return Ke})),n.d(a,"copy",(function(){return Ze})),n.d(a,"set",(function(){return Qe})),n.d(a,"add",(function(){return Je})),n.d(a,"mul",(function(){return $e})),n.d(a,"scale",(function(){return tn})),n.d(a,"dot",(function(){return en})),n.d(a,"lerp",(function(){return nn})),n.d(a,"length",(function(){return rn})),n.d(a,"len",(function(){return on})),n.d(a,"squaredLength",(function(){return an})),n.d(a,"sqrLen",(function(){return sn})),n.d(a,"normalize",(function(){return un})),n.d(a,"exactEquals",(function(){return cn})),n.d(a,"equals",(function(){return fn})),n.d(a,"rotationTo",(function(){return ln})),n.d(a,"sqlerp",(function(){return hn})),n.d(a,"setAxes",(function(){return dn}));var s=n(12);function u(){var t=new s.a(9);return s.a!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function c(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function f(t){var e=new s.a(9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}function l(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function h(t,e,n,r,i,o,a,u,c){var f=new s.a(9);return f[0]=t,f[1]=e,f[2]=n,f[3]=r,f[4]=i,f[5]=o,f[6]=a,f[7]=u,f[8]=c,f}function d(t,e,n,r,i,o,a,s,u,c){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=u,t[8]=c,t}function p(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function g(t,e){if(t===e){var n=e[1],r=e[2],i=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=i}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function v(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],c=e[7],f=e[8],l=f*a-s*c,h=-f*o+s*u,d=c*o-a*u,p=n*l+r*h+i*d;return p?(p=1/p,t[0]=l*p,t[1]=(-f*r+i*c)*p,t[2]=(s*r-i*a)*p,t[3]=h*p,t[4]=(f*n-i*u)*p,t[5]=(-s*n+i*o)*p,t[6]=d*p,t[7]=(-c*n+r*u)*p,t[8]=(a*n-r*o)*p,t):null}function y(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],c=e[7],f=e[8];return t[0]=a*f-s*c,t[1]=i*c-r*f,t[2]=r*s-i*a,t[3]=s*u-o*f,t[4]=n*f-i*u,t[5]=i*o-n*s,t[6]=o*c-a*u,t[7]=r*u-n*c,t[8]=n*a-r*o,t}function m(t){var e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],u=t[7],c=t[8];return e*(c*o-a*u)+n*(-c*i+a*s)+r*(u*i-o*s)}function b(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=e[6],f=e[7],l=e[8],h=n[0],d=n[1],p=n[2],g=n[3],v=n[4],y=n[5],m=n[6],b=n[7],x=n[8];return t[0]=h*r+d*a+p*c,t[1]=h*i+d*s+p*f,t[2]=h*o+d*u+p*l,t[3]=g*r+v*a+y*c,t[4]=g*i+v*s+y*f,t[5]=g*o+v*u+y*l,t[6]=m*r+b*a+x*c,t[7]=m*i+b*s+x*f,t[8]=m*o+b*u+x*l,t}function x(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=e[6],f=e[7],l=e[8],h=n[0],d=n[1];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=u,t[6]=h*r+d*a+c,t[7]=h*i+d*s+f,t[8]=h*o+d*u+l,t}function w(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=e[6],f=e[7],l=e[8],h=Math.sin(n),d=Math.cos(n);return t[0]=d*r+h*a,t[1]=d*i+h*s,t[2]=d*o+h*u,t[3]=d*a-h*r,t[4]=d*s-h*i,t[5]=d*u-h*o,t[6]=c,t[7]=f,t[8]=l,t}function S(t,e,n){var r=n[0],i=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function E(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t}function _(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function O(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function k(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t}function M(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n+n,s=r+r,u=i+i,c=n*a,f=r*a,l=r*s,h=i*a,d=i*s,p=i*u,g=o*a,v=o*s,y=o*u;return t[0]=1-l-p,t[3]=f-y,t[6]=h+v,t[1]=f+y,t[4]=1-c-p,t[7]=d-g,t[2]=h-v,t[5]=d+g,t[8]=1-c-l,t}function A(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],c=e[7],f=e[8],l=e[9],h=e[10],d=e[11],p=e[12],g=e[13],v=e[14],y=e[15],m=n*s-r*a,b=n*u-i*a,x=n*c-o*a,w=r*u-i*s,S=r*c-o*s,E=i*c-o*u,_=f*g-l*p,O=f*v-h*p,k=f*y-d*p,M=l*v-h*g,A=l*y-d*g,T=h*y-d*v,C=m*T-b*A+x*M+w*k-S*O+E*_;return C?(C=1/C,t[0]=(s*T-u*A+c*M)*C,t[1]=(u*k-a*T-c*O)*C,t[2]=(a*A-s*k+c*_)*C,t[3]=(i*A-r*T-o*M)*C,t[4]=(n*T-i*k+o*O)*C,t[5]=(r*k-n*A-o*_)*C,t[6]=(g*E-v*S+y*w)*C,t[7]=(v*x-p*E-y*b)*C,t[8]=(p*S-g*x+y*m)*C,t):null}function T(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t}function C(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"}function I(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])}function P(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t}function j(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}function D(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t}function N(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t}function R(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]}function L(t,e){var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],u=t[5],c=t[6],f=t[7],l=t[8],h=e[0],d=e[1],p=e[2],g=e[3],v=e[4],y=e[5],m=e[6],b=e[7],x=e[8];return Math.abs(n-h)<=s.b*Math.max(1,Math.abs(n),Math.abs(h))&&Math.abs(r-d)<=s.b*Math.max(1,Math.abs(r),Math.abs(d))&&Math.abs(i-p)<=s.b*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(o-g)<=s.b*Math.max(1,Math.abs(o),Math.abs(g))&&Math.abs(a-v)<=s.b*Math.max(1,Math.abs(a),Math.abs(v))&&Math.abs(u-y)<=s.b*Math.max(1,Math.abs(u),Math.abs(y))&&Math.abs(c-m)<=s.b*Math.max(1,Math.abs(c),Math.abs(m))&&Math.abs(f-b)<=s.b*Math.max(1,Math.abs(f),Math.abs(b))&&Math.abs(l-x)<=s.b*Math.max(1,Math.abs(l),Math.abs(x))}var B=b,G=j;function F(){var t=new s.a(16);return s.a!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}function U(t){var e=new s.a(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function z(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function V(t,e,n,r,i,o,a,u,c,f,l,h,d,p,g,v){var y=new s.a(16);return y[0]=t,y[1]=e,y[2]=n,y[3]=r,y[4]=i,y[5]=o,y[6]=a,y[7]=u,y[8]=c,y[9]=f,y[10]=l,y[11]=h,y[12]=d,y[13]=p,y[14]=g,y[15]=v,y}function W(t,e,n,r,i,o,a,s,u,c,f,l,h,d,p,g,v){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=u,t[8]=c,t[9]=f,t[10]=l,t[11]=h,t[12]=d,t[13]=p,t[14]=g,t[15]=v,t}function X(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function Y(t,e){if(t===e){var n=e[1],r=e[2],i=e[3],o=e[6],a=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=o,t[11]=e[14],t[12]=i,t[13]=a,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function H(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],c=e[7],f=e[8],l=e[9],h=e[10],d=e[11],p=e[12],g=e[13],v=e[14],y=e[15],m=n*s-r*a,b=n*u-i*a,x=n*c-o*a,w=r*u-i*s,S=r*c-o*s,E=i*c-o*u,_=f*g-l*p,O=f*v-h*p,k=f*y-d*p,M=l*v-h*g,A=l*y-d*g,T=h*y-d*v,C=m*T-b*A+x*M+w*k-S*O+E*_;return C?(C=1/C,t[0]=(s*T-u*A+c*M)*C,t[1]=(i*A-r*T-o*M)*C,t[2]=(g*E-v*S+y*w)*C,t[3]=(h*S-l*E-d*w)*C,t[4]=(u*k-a*T-c*O)*C,t[5]=(n*T-i*k+o*O)*C,t[6]=(v*x-p*E-y*b)*C,t[7]=(f*E-h*x+d*b)*C,t[8]=(a*A-s*k+c*_)*C,t[9]=(r*k-n*A-o*_)*C,t[10]=(p*S-g*x+y*m)*C,t[11]=(l*x-f*S-d*m)*C,t[12]=(s*O-a*M-u*_)*C,t[13]=(n*M-r*O+i*_)*C,t[14]=(g*b-p*w-v*m)*C,t[15]=(f*w-l*b+h*m)*C,t):null}function q(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],c=e[7],f=e[8],l=e[9],h=e[10],d=e[11],p=e[12],g=e[13],v=e[14],y=e[15];return t[0]=s*(h*y-d*v)-l*(u*y-c*v)+g*(u*d-c*h),t[1]=-(r*(h*y-d*v)-l*(i*y-o*v)+g*(i*d-o*h)),t[2]=r*(u*y-c*v)-s*(i*y-o*v)+g*(i*c-o*u),t[3]=-(r*(u*d-c*h)-s*(i*d-o*h)+l*(i*c-o*u)),t[4]=-(a*(h*y-d*v)-f*(u*y-c*v)+p*(u*d-c*h)),t[5]=n*(h*y-d*v)-f*(i*y-o*v)+p*(i*d-o*h),t[6]=-(n*(u*y-c*v)-a*(i*y-o*v)+p*(i*c-o*u)),t[7]=n*(u*d-c*h)-a*(i*d-o*h)+f*(i*c-o*u),t[8]=a*(l*y-d*g)-f*(s*y-c*g)+p*(s*d-c*l),t[9]=-(n*(l*y-d*g)-f*(r*y-o*g)+p*(r*d-o*l)),t[10]=n*(s*y-c*g)-a*(r*y-o*g)+p*(r*c-o*s),t[11]=-(n*(s*d-c*l)-a*(r*d-o*l)+f*(r*c-o*s)),t[12]=-(a*(l*v-h*g)-f*(s*v-u*g)+p*(s*h-u*l)),t[13]=n*(l*v-h*g)-f*(r*v-i*g)+p*(r*h-i*l),t[14]=-(n*(s*v-u*g)-a*(r*v-i*g)+p*(r*u-i*s)),t[15]=n*(s*h-u*l)-a*(r*h-i*l)+f*(r*u-i*s),t}function K(t){var e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],u=t[7],c=t[8],f=t[9],l=t[10],h=t[11],d=t[12],p=t[13],g=t[14],v=t[15];return(e*a-n*o)*(l*v-h*g)-(e*s-r*o)*(f*v-h*p)+(e*u-i*o)*(f*g-l*p)+(n*s-r*a)*(c*v-h*d)-(n*u-i*a)*(c*g-l*d)+(r*u-i*s)*(c*p-f*d)}function Z(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=e[6],f=e[7],l=e[8],h=e[9],d=e[10],p=e[11],g=e[12],v=e[13],y=e[14],m=e[15],b=n[0],x=n[1],w=n[2],S=n[3];return t[0]=b*r+x*s+w*l+S*g,t[1]=b*i+x*u+w*h+S*v,t[2]=b*o+x*c+w*d+S*y,t[3]=b*a+x*f+w*p+S*m,b=n[4],x=n[5],w=n[6],S=n[7],t[4]=b*r+x*s+w*l+S*g,t[5]=b*i+x*u+w*h+S*v,t[6]=b*o+x*c+w*d+S*y,t[7]=b*a+x*f+w*p+S*m,b=n[8],x=n[9],w=n[10],S=n[11],t[8]=b*r+x*s+w*l+S*g,t[9]=b*i+x*u+w*h+S*v,t[10]=b*o+x*c+w*d+S*y,t[11]=b*a+x*f+w*p+S*m,b=n[12],x=n[13],w=n[14],S=n[15],t[12]=b*r+x*s+w*l+S*g,t[13]=b*i+x*u+w*h+S*v,t[14]=b*o+x*c+w*d+S*y,t[15]=b*a+x*f+w*p+S*m,t}function Q(t,e,n){var r,i,o,a,s,u,c,f,l,h,d,p,g=n[0],v=n[1],y=n[2];return e===t?(t[12]=e[0]*g+e[4]*v+e[8]*y+e[12],t[13]=e[1]*g+e[5]*v+e[9]*y+e[13],t[14]=e[2]*g+e[6]*v+e[10]*y+e[14],t[15]=e[3]*g+e[7]*v+e[11]*y+e[15]):(r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],c=e[6],f=e[7],l=e[8],h=e[9],d=e[10],p=e[11],t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=u,t[6]=c,t[7]=f,t[8]=l,t[9]=h,t[10]=d,t[11]=p,t[12]=r*g+s*v+l*y+e[12],t[13]=i*g+u*v+h*y+e[13],t[14]=o*g+c*v+d*y+e[14],t[15]=a*g+f*v+p*y+e[15]),t}function J(t,e,n){var r=n[0],i=n[1],o=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*o,t[9]=e[9]*o,t[10]=e[10]*o,t[11]=e[11]*o,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function $(t,e,n,r){var i,o,a,u,c,f,l,h,d,p,g,v,y,m,b,x,w,S,E,_,O,k,M,A,T=r[0],C=r[1],I=r[2],P=Math.hypot(T,C,I);return P<s.b?null:(T*=P=1/P,C*=P,I*=P,i=Math.sin(n),a=1-(o=Math.cos(n)),u=e[0],c=e[1],f=e[2],l=e[3],h=e[4],d=e[5],p=e[6],g=e[7],v=e[8],y=e[9],m=e[10],b=e[11],x=T*T*a+o,w=C*T*a+I*i,S=I*T*a-C*i,E=T*C*a-I*i,_=C*C*a+o,O=I*C*a+T*i,k=T*I*a+C*i,M=C*I*a-T*i,A=I*I*a+o,t[0]=u*x+h*w+v*S,t[1]=c*x+d*w+y*S,t[2]=f*x+p*w+m*S,t[3]=l*x+g*w+b*S,t[4]=u*E+h*_+v*O,t[5]=c*E+d*_+y*O,t[6]=f*E+p*_+m*O,t[7]=l*E+g*_+b*O,t[8]=u*k+h*M+v*A,t[9]=c*k+d*M+y*A,t[10]=f*k+p*M+m*A,t[11]=l*k+g*M+b*A,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function tt(t,e,n){var r=Math.sin(n),i=Math.cos(n),o=e[4],a=e[5],s=e[6],u=e[7],c=e[8],f=e[9],l=e[10],h=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=o*i+c*r,t[5]=a*i+f*r,t[6]=s*i+l*r,t[7]=u*i+h*r,t[8]=c*i-o*r,t[9]=f*i-a*r,t[10]=l*i-s*r,t[11]=h*i-u*r,t}function et(t,e,n){var r=Math.sin(n),i=Math.cos(n),o=e[0],a=e[1],s=e[2],u=e[3],c=e[8],f=e[9],l=e[10],h=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*i-c*r,t[1]=a*i-f*r,t[2]=s*i-l*r,t[3]=u*i-h*r,t[8]=o*r+c*i,t[9]=a*r+f*i,t[10]=s*r+l*i,t[11]=u*r+h*i,t}function nt(t,e,n){var r=Math.sin(n),i=Math.cos(n),o=e[0],a=e[1],s=e[2],u=e[3],c=e[4],f=e[5],l=e[6],h=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*i+c*r,t[1]=a*i+f*r,t[2]=s*i+l*r,t[3]=u*i+h*r,t[4]=c*i-o*r,t[5]=f*i-a*r,t[6]=l*i-s*r,t[7]=h*i-u*r,t}function rt(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function it(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function ot(t,e,n){var r,i,o,a=n[0],u=n[1],c=n[2],f=Math.hypot(a,u,c);return f<s.b?null:(a*=f=1/f,u*=f,c*=f,r=Math.sin(e),o=1-(i=Math.cos(e)),t[0]=a*a*o+i,t[1]=u*a*o+c*r,t[2]=c*a*o-u*r,t[3]=0,t[4]=a*u*o-c*r,t[5]=u*u*o+i,t[6]=c*u*o+a*r,t[7]=0,t[8]=a*c*o+u*r,t[9]=u*c*o-a*r,t[10]=c*c*o+i,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}function at(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function st(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function ut(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function ct(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=r+r,u=i+i,c=o+o,f=r*s,l=r*u,h=r*c,d=i*u,p=i*c,g=o*c,v=a*s,y=a*u,m=a*c;return t[0]=1-(d+g),t[1]=l+m,t[2]=h-y,t[3]=0,t[4]=l-m,t[5]=1-(f+g),t[6]=p+v,t[7]=0,t[8]=h+y,t[9]=p-v,t[10]=1-(f+d),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function ft(t,e){var n=new s.a(3),r=-e[0],i=-e[1],o=-e[2],a=e[3],u=e[4],c=e[5],f=e[6],l=e[7],h=r*r+i*i+o*o+a*a;return h>0?(n[0]=2*(u*a+l*r+c*o-f*i)/h,n[1]=2*(c*a+l*i+f*r-u*o)/h,n[2]=2*(f*a+l*o+u*i-c*r)/h):(n[0]=2*(u*a+l*r+c*o-f*i),n[1]=2*(c*a+l*i+f*r-u*o),n[2]=2*(f*a+l*o+u*i-c*r)),ct(t,e,n),t}function lt(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function ht(t,e){var n=e[0],r=e[1],i=e[2],o=e[4],a=e[5],s=e[6],u=e[8],c=e[9],f=e[10];return t[0]=Math.hypot(n,r,i),t[1]=Math.hypot(o,a,s),t[2]=Math.hypot(u,c,f),t}function dt(t,e){var n=new s.a(3);ht(n,e);var r=1/n[0],i=1/n[1],o=1/n[2],a=e[0]*r,u=e[1]*i,c=e[2]*o,f=e[4]*r,l=e[5]*i,h=e[6]*o,d=e[8]*r,p=e[9]*i,g=e[10]*o,v=a+l+g,y=0;return v>0?(y=2*Math.sqrt(v+1),t[3]=.25*y,t[0]=(h-p)/y,t[1]=(d-c)/y,t[2]=(u-f)/y):a>l&&a>g?(y=2*Math.sqrt(1+a-l-g),t[3]=(h-p)/y,t[0]=.25*y,t[1]=(u+f)/y,t[2]=(d+c)/y):l>g?(y=2*Math.sqrt(1+l-a-g),t[3]=(d-c)/y,t[0]=(u+f)/y,t[1]=.25*y,t[2]=(h+p)/y):(y=2*Math.sqrt(1+g-a-l),t[3]=(u-f)/y,t[0]=(d+c)/y,t[1]=(h+p)/y,t[2]=.25*y),t}function pt(t,e,n,r){var i=e[0],o=e[1],a=e[2],s=e[3],u=i+i,c=o+o,f=a+a,l=i*u,h=i*c,d=i*f,p=o*c,g=o*f,v=a*f,y=s*u,m=s*c,b=s*f,x=r[0],w=r[1],S=r[2];return t[0]=(1-(p+v))*x,t[1]=(h+b)*x,t[2]=(d-m)*x,t[3]=0,t[4]=(h-b)*w,t[5]=(1-(l+v))*w,t[6]=(g+y)*w,t[7]=0,t[8]=(d+m)*S,t[9]=(g-y)*S,t[10]=(1-(l+p))*S,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function gt(t,e,n,r,i){var o=e[0],a=e[1],s=e[2],u=e[3],c=o+o,f=a+a,l=s+s,h=o*c,d=o*f,p=o*l,g=a*f,v=a*l,y=s*l,m=u*c,b=u*f,x=u*l,w=r[0],S=r[1],E=r[2],_=i[0],O=i[1],k=i[2],M=(1-(g+y))*w,A=(d+x)*w,T=(p-b)*w,C=(d-x)*S,I=(1-(h+y))*S,P=(v+m)*S,j=(p+b)*E,D=(v-m)*E,N=(1-(h+g))*E;return t[0]=M,t[1]=A,t[2]=T,t[3]=0,t[4]=C,t[5]=I,t[6]=P,t[7]=0,t[8]=j,t[9]=D,t[10]=N,t[11]=0,t[12]=n[0]+_-(M*_+C*O+j*k),t[13]=n[1]+O-(A*_+I*O+D*k),t[14]=n[2]+k-(T*_+P*O+N*k),t[15]=1,t}function vt(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n+n,s=r+r,u=i+i,c=n*a,f=r*a,l=r*s,h=i*a,d=i*s,p=i*u,g=o*a,v=o*s,y=o*u;return t[0]=1-l-p,t[1]=f+y,t[2]=h-v,t[3]=0,t[4]=f-y,t[5]=1-c-p,t[6]=d+g,t[7]=0,t[8]=h+v,t[9]=d-g,t[10]=1-c-l,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function yt(t,e,n,r,i,o,a){var s=1/(n-e),u=1/(i-r),c=1/(o-a);return t[0]=2*o*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*u,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(i+r)*u,t[10]=(a+o)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=a*o*2*c,t[15]=0,t}function mt(t,e,n,r,i){var o,a=1/Math.tan(e/2);return t[0]=a/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(o=1/(r-i),t[10]=(i+r)*o,t[14]=2*i*r*o):(t[10]=-1,t[14]=-2*r),t}function bt(t,e,n,r){var i=Math.tan(e.upDegrees*Math.PI/180),o=Math.tan(e.downDegrees*Math.PI/180),a=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),u=2/(a+s),c=2/(i+o);return t[0]=u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(a-s)*u*.5,t[9]=(i-o)*c*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t}function xt(t,e,n,r,i,o,a){var s=1/(e-n),u=1/(r-i),c=1/(o-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*u,t[14]=(a+o)*c,t[15]=1,t}function wt(t,e,n,r){var i,o,a,u,c,f,l,h,d,p,g=e[0],v=e[1],y=e[2],m=r[0],b=r[1],x=r[2],w=n[0],S=n[1],E=n[2];return Math.abs(g-w)<s.b&&Math.abs(v-S)<s.b&&Math.abs(y-E)<s.b?X(t):(l=g-w,h=v-S,d=y-E,i=b*(d*=p=1/Math.hypot(l,h,d))-x*(h*=p),o=x*(l*=p)-m*d,a=m*h-b*l,(p=Math.hypot(i,o,a))?(i*=p=1/p,o*=p,a*=p):(i=0,o=0,a=0),u=h*a-d*o,c=d*i-l*a,f=l*o-h*i,(p=Math.hypot(u,c,f))?(u*=p=1/p,c*=p,f*=p):(u=0,c=0,f=0),t[0]=i,t[1]=u,t[2]=l,t[3]=0,t[4]=o,t[5]=c,t[6]=h,t[7]=0,t[8]=a,t[9]=f,t[10]=d,t[11]=0,t[12]=-(i*g+o*v+a*y),t[13]=-(u*g+c*v+f*y),t[14]=-(l*g+h*v+d*y),t[15]=1,t)}function St(t,e,n,r){var i=e[0],o=e[1],a=e[2],s=r[0],u=r[1],c=r[2],f=i-n[0],l=o-n[1],h=a-n[2],d=f*f+l*l+h*h;d>0&&(f*=d=1/Math.sqrt(d),l*=d,h*=d);var p=u*h-c*l,g=c*f-s*h,v=s*l-u*f;return(d=p*p+g*g+v*v)>0&&(p*=d=1/Math.sqrt(d),g*=d,v*=d),t[0]=p,t[1]=g,t[2]=v,t[3]=0,t[4]=l*v-h*g,t[5]=h*p-f*v,t[6]=f*g-l*p,t[7]=0,t[8]=f,t[9]=l,t[10]=h,t[11]=0,t[12]=i,t[13]=o,t[14]=a,t[15]=1,t}function Et(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"}function _t(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function Ot(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t}function kt(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function Mt(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t}function At(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t}function Tt(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function Ct(t,e){var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],u=t[5],c=t[6],f=t[7],l=t[8],h=t[9],d=t[10],p=t[11],g=t[12],v=t[13],y=t[14],m=t[15],b=e[0],x=e[1],w=e[2],S=e[3],E=e[4],_=e[5],O=e[6],k=e[7],M=e[8],A=e[9],T=e[10],C=e[11],I=e[12],P=e[13],j=e[14],D=e[15];return Math.abs(n-b)<=s.b*Math.max(1,Math.abs(n),Math.abs(b))&&Math.abs(r-x)<=s.b*Math.max(1,Math.abs(r),Math.abs(x))&&Math.abs(i-w)<=s.b*Math.max(1,Math.abs(i),Math.abs(w))&&Math.abs(o-S)<=s.b*Math.max(1,Math.abs(o),Math.abs(S))&&Math.abs(a-E)<=s.b*Math.max(1,Math.abs(a),Math.abs(E))&&Math.abs(u-_)<=s.b*Math.max(1,Math.abs(u),Math.abs(_))&&Math.abs(c-O)<=s.b*Math.max(1,Math.abs(c),Math.abs(O))&&Math.abs(f-k)<=s.b*Math.max(1,Math.abs(f),Math.abs(k))&&Math.abs(l-M)<=s.b*Math.max(1,Math.abs(l),Math.abs(M))&&Math.abs(h-A)<=s.b*Math.max(1,Math.abs(h),Math.abs(A))&&Math.abs(d-T)<=s.b*Math.max(1,Math.abs(d),Math.abs(T))&&Math.abs(p-C)<=s.b*Math.max(1,Math.abs(p),Math.abs(C))&&Math.abs(g-I)<=s.b*Math.max(1,Math.abs(g),Math.abs(I))&&Math.abs(v-P)<=s.b*Math.max(1,Math.abs(v),Math.abs(P))&&Math.abs(y-j)<=s.b*Math.max(1,Math.abs(y),Math.abs(j))&&Math.abs(m-D)<=s.b*Math.max(1,Math.abs(m),Math.abs(D))}var It=Z,Pt=kt,jt=n(40);function Dt(){var t=new s.a(4);return s.a!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function Nt(t){var e=new s.a(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function Rt(t,e,n,r){var i=new s.a(4);return i[0]=t,i[1]=e,i[2]=n,i[3]=r,i}function Lt(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function Bt(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function Gt(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t}function Ft(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}function Ut(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],t}function zt(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t[3]=e[3]/n[3],t}function Vt(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t}function Wt(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t}function Xt(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t}function Yt(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t[3]=Math.max(e[3],n[3]),t}function Ht(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t}function qt(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t}function Kt(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t}function Zt(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],o=e[3]-t[3];return Math.hypot(n,r,i,o)}function Qt(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],o=e[3]-t[3];return n*n+r*r+i*i+o*o}function Jt(t){var e=t[0],n=t[1],r=t[2],i=t[3];return Math.hypot(e,n,r,i)}function $t(t){var e=t[0],n=t[1],r=t[2],i=t[3];return e*e+n*n+r*r+i*i}function te(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t}function ee(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t}function ne(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n*n+r*r+i*i+o*o;return a>0&&(a=1/Math.sqrt(a)),t[0]=n*a,t[1]=r*a,t[2]=i*a,t[3]=o*a,t}function re(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function ie(t,e,n,r){var i=n[0]*r[1]-n[1]*r[0],o=n[0]*r[2]-n[2]*r[0],a=n[0]*r[3]-n[3]*r[0],s=n[1]*r[2]-n[2]*r[1],u=n[1]*r[3]-n[3]*r[1],c=n[2]*r[3]-n[3]*r[2],f=e[0],l=e[1],h=e[2],d=e[3];return t[0]=l*c-h*u+d*s,t[1]=-f*c+h*a-d*o,t[2]=f*u-l*a+d*i,t[3]=-f*s+l*o-h*i,t}function oe(t,e,n,r){var i=e[0],o=e[1],a=e[2],s=e[3];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=a+r*(n[2]-a),t[3]=s+r*(n[3]-s),t}function ae(t,e){var n,r,i,o,a,u;e=e||1;do{a=(n=2*s.c()-1)*n+(r=2*s.c()-1)*r}while(a>=1);do{u=(i=2*s.c()-1)*i+(o=2*s.c()-1)*o}while(u>=1);var c=Math.sqrt((1-a)/u);return t[0]=e*n,t[1]=e*r,t[2]=e*i*c,t[3]=e*o*c,t}function se(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3];return t[0]=n[0]*r+n[4]*i+n[8]*o+n[12]*a,t[1]=n[1]*r+n[5]*i+n[9]*o+n[13]*a,t[2]=n[2]*r+n[6]*i+n[10]*o+n[14]*a,t[3]=n[3]*r+n[7]*i+n[11]*o+n[15]*a,t}function ue(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[0],s=n[1],u=n[2],c=n[3],f=c*r+s*o-u*i,l=c*i+u*r-a*o,h=c*o+a*i-s*r,d=-a*r-s*i-u*o;return t[0]=f*c+d*-a+l*-u-h*-s,t[1]=l*c+d*-s+h*-a-f*-u,t[2]=h*c+d*-u+f*-s-l*-a,t[3]=e[3],t}function ce(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t}function fe(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}function le(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function he(t,e){var n=t[0],r=t[1],i=t[2],o=t[3],a=e[0],u=e[1],c=e[2],f=e[3];return Math.abs(n-a)<=s.b*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-u)<=s.b*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(i-c)<=s.b*Math.max(1,Math.abs(i),Math.abs(c))&&Math.abs(o-f)<=s.b*Math.max(1,Math.abs(o),Math.abs(f))}var de,pe=Ft,ge=Ut,ve=zt,ye=Zt,me=Qt,be=Jt,xe=$t,we=(de=Dt(),function(t,e,n,r,i,o){var a,s;for(e||(e=4),n||(n=0),s=r?Math.min(r*e+n,t.length):t.length,a=n;a<s;a+=e)de[0]=t[a],de[1]=t[a+1],de[2]=t[a+2],de[3]=t[a+3],i(de,de,o),t[a]=de[0],t[a+1]=de[1],t[a+2]=de[2],t[a+3]=de[3];return t});function Se(){var t=new s.a(4);return s.a!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function Ee(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t}function _e(t,e,n){n*=.5;var r=Math.sin(n);return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=Math.cos(n),t}function Oe(t,e){var n=2*Math.acos(e[3]),r=Math.sin(n/2);return r>s.b?(t[0]=e[0]/r,t[1]=e[1]/r,t[2]=e[2]/r):(t[0]=1,t[1]=0,t[2]=0),n}function ke(t,e){var n=en(t,e);return Math.acos(2*n*n-1)}function Me(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=n[0],u=n[1],c=n[2],f=n[3];return t[0]=r*f+a*s+i*c-o*u,t[1]=i*f+a*u+o*s-r*c,t[2]=o*f+a*c+r*u-i*s,t[3]=a*f-r*s-i*u-o*c,t}function Ae(t,e,n){n*=.5;var r=e[0],i=e[1],o=e[2],a=e[3],s=Math.sin(n),u=Math.cos(n);return t[0]=r*u+a*s,t[1]=i*u+o*s,t[2]=o*u-i*s,t[3]=a*u-r*s,t}function Te(t,e,n){n*=.5;var r=e[0],i=e[1],o=e[2],a=e[3],s=Math.sin(n),u=Math.cos(n);return t[0]=r*u-o*s,t[1]=i*u+a*s,t[2]=o*u+r*s,t[3]=a*u-i*s,t}function Ce(t,e,n){n*=.5;var r=e[0],i=e[1],o=e[2],a=e[3],s=Math.sin(n),u=Math.cos(n);return t[0]=r*u+i*s,t[1]=i*u-r*s,t[2]=o*u+a*s,t[3]=a*u-o*s,t}function Ie(t,e){var n=e[0],r=e[1],i=e[2];return t[0]=n,t[1]=r,t[2]=i,t[3]=Math.sqrt(Math.abs(1-n*n-r*r-i*i)),t}function Pe(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=Math.sqrt(n*n+r*r+i*i),s=Math.exp(o),u=a>0?s*Math.sin(a)/a:0;return t[0]=n*u,t[1]=r*u,t[2]=i*u,t[3]=s*Math.cos(a),t}function je(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=Math.sqrt(n*n+r*r+i*i),s=a>0?Math.atan2(a,o)/a:0;return t[0]=n*s,t[1]=r*s,t[2]=i*s,t[3]=.5*Math.log(n*n+r*r+i*i+o*o),t}function De(t,e,n){return je(t,e),tn(t,t,n),Pe(t,t),t}function Ne(t,e,n,r){var i,o,a,u,c,f=e[0],l=e[1],h=e[2],d=e[3],p=n[0],g=n[1],v=n[2],y=n[3];return(o=f*p+l*g+h*v+d*y)<0&&(o=-o,p=-p,g=-g,v=-v,y=-y),1-o>s.b?(i=Math.acos(o),a=Math.sin(i),u=Math.sin((1-r)*i)/a,c=Math.sin(r*i)/a):(u=1-r,c=r),t[0]=u*f+c*p,t[1]=u*l+c*g,t[2]=u*h+c*v,t[3]=u*d+c*y,t}function Re(t){var e=s.c(),n=s.c(),r=s.c(),i=Math.sqrt(1-e),o=Math.sqrt(e);return t[0]=i*Math.sin(2*Math.PI*n),t[1]=i*Math.cos(2*Math.PI*n),t[2]=o*Math.sin(2*Math.PI*r),t[3]=o*Math.cos(2*Math.PI*r),t}function Le(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n*n+r*r+i*i+o*o,s=a?1/a:0;return t[0]=-n*s,t[1]=-r*s,t[2]=-i*s,t[3]=o*s,t}function Be(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function Ge(t,e){var n,r=e[0]+e[4]+e[8];if(r>0)n=Math.sqrt(r+1),t[3]=.5*n,n=.5/n,t[0]=(e[5]-e[7])*n,t[1]=(e[6]-e[2])*n,t[2]=(e[1]-e[3])*n;else{var i=0;e[4]>e[0]&&(i=1),e[8]>e[3*i+i]&&(i=2);var o=(i+1)%3,a=(i+2)%3;n=Math.sqrt(e[3*i+i]-e[3*o+o]-e[3*a+a]+1),t[i]=.5*n,n=.5/n,t[3]=(e[3*o+a]-e[3*a+o])*n,t[o]=(e[3*o+i]+e[3*i+o])*n,t[a]=(e[3*a+i]+e[3*i+a])*n}return t}function Fe(t,e,n,r){var i=.5*Math.PI/180;e*=i,n*=i,r*=i;var o=Math.sin(e),a=Math.cos(e),s=Math.sin(n),u=Math.cos(n),c=Math.sin(r),f=Math.cos(r);return t[0]=o*u*f-a*s*c,t[1]=a*s*f+o*u*c,t[2]=a*u*c-o*s*f,t[3]=a*u*f+o*s*c,t}function Ue(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}var ze,Ve,We,Xe,Ye,He,qe=Nt,Ke=Rt,Ze=Lt,Qe=Bt,Je=Gt,$e=Me,tn=qt,en=re,nn=oe,rn=Jt,on=rn,an=$t,sn=an,un=ne,cn=le,fn=he,ln=(ze=jt.create(),Ve=jt.fromValues(1,0,0),We=jt.fromValues(0,1,0),function(t,e,n){var r=jt.dot(e,n);return r<-.999999?(jt.cross(ze,Ve,e),jt.len(ze)<1e-6&&jt.cross(ze,We,e),jt.normalize(ze,ze),_e(t,ze,Math.PI),t):r>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):(jt.cross(ze,e,n),t[0]=ze[0],t[1]=ze[1],t[2]=ze[2],t[3]=1+r,un(t,t))}),hn=(Xe=Se(),Ye=Se(),function(t,e,n,r,i,o){return Ne(Xe,e,i,o),Ne(Ye,n,r,o),Ne(t,Xe,Ye,2*o*(1-o)),t}),dn=(He=u(),function(t,e,n,r){return He[0]=n[0],He[3]=n[1],He[6]=n[2],He[1]=r[0],He[4]=r[1],He[7]=r[2],He[2]=-e[0],He[5]=-e[1],He[8]=-e[2],un(t,Ge(t,He))}),pn=n(82)},function(t,e,n){"use strict";n.d(e,"AST_TOKEN_TYPES",(function(){return l})),n.d(e,"STORAGE_CLASS",(function(){return d})),n.d(e,"Target",(function(){return p})),n.d(e,"DefineValuePlaceholder",(function(){return v}));n(232);var r=n(35);n.d(e,"Component",(function(){return r.a}));n(134),n(120),n(121),n(241),n(122),n(123),n(124),n(242),n(125),n(126),n(128),n(129),n(130),n(131);var i=n(36);n.d(e,"gl",(function(){return i.a}));n(161),n(162),n(243),n(163),n(164),n(115),n(165),n(48),n(166),n(244),n(70);var o=n(119);n.d(e,"createEntity",(function(){return o.b}));var a=n(13);n.d(e,"IDENTIFIER",(function(){return a.a}));var s=n(91);n.d(e,"createWorldContainer",(function(){return s.a}));n(245);var u=n(246);n.d(e,"generateAABBFromVertices",(function(){return u.a}));var c=n(247);n.d(e,"isSafari",(function(){return c.a}));var f=n(248);n.o(f,"AABB")&&n.d(e,"AABB",(function(){return f.AABB})),n.o(f,"Frustum")&&n.d(e,"Frustum",(function(){return f.Frustum}));var l,h,d,p,g=n(268);n.d(e,"AABB",(function(){return g.a})),n.d(e,"Frustum",(function(){return g.b})),function(t){t.Void="Void",t.Boolean="Boolean",t.Float="Float",t.Uint32="Uint32",t.Int32="Int32",t.Vector="Vector",t.Vector2Float="vec2<f32>",t.Vector3Float="vec3<f32>",t.Vector4Float="vec4<f32>",t.Vector2Boolean="vec2<bool>",t.Vector3Boolean="vec3<bool>",t.Vector4Boolean="vec4<bool>",t.Vector2Uint="vec2<u32>",t.Vector3Uint="vec3<u32>",t.Vector4Uint="vec4<u32>",t.Vector2Int="vec2<i32>",t.Vector3Int="vec3<i32>",t.Vector4Int="vec4<i32>",t.Matrix="Matrix",t.Matrix3x3Float="mat3x3<f32>",t.Matrix4x4Float="mat4x4<i32>",t.Struct="Struct",t.FloatArray="Float[]",t.Vector4FloatArray="vec4<f32>[]"}(l||(l={})),function(t){t.Program="Program",t.Identifier="Identifier",t.VariableDeclaration="VariableDeclaration",t.BlockStatement="BlockStatement",t.ReturnStatement="ReturnStatement",t.FunctionDeclaration="FunctionDeclaration",t.VariableDeclarator="VariableDeclarator",t.AssignmentExpression="AssignmentExpression",t.LogicalExpression="LogicalExpression",t.BinaryExpression="BinaryExpression",t.ArrayExpression="ArrayExpression",t.UnaryExpression="UnaryExpression",t.UpdateExpression="UpdateExpression",t.FunctionExpression="FunctionExpression",t.MemberExpression="MemberExpression",t.ConditionalExpression="ConditionalExpression",t.ExpressionStatement="ExpressionStatement",t.CallExpression="CallExpression",t.NumThreadStatement="NumThreadStatement",t.StorageStatement="StorageStatement",t.DoWhileStatement="DoWhileStatement",t.WhileStatement="WhileStatement",t.ForStatement="ForStatement",t.BreakStatement="BreakStatement",t.ContinueStatement="ContinueStatement",t.IfStatement="IfStatement",t.ImportedFunctionStatement="ImportedFunctionStatement"}(h||(h={})),function(t){t.Input="Input",t.Output="Output",t.Uniform="Uniform",t.Workgroup="Workgroup",t.UniformConstant="UniformConstant",t.Image="Image",t.StorageBuffer="StorageBuffer",t.Private="Private",t.Function="Function"}(d||(d={})),function(t){t.GLSL100="GLSL100",t.GLSL450="GLSL450",t.WGSL="WGSL"}(p||(p={}));var v="__DefineValuePlaceholder__"},function(t,e){t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.METADATA_KEY=void 0;var r=n(31);e.METADATA_KEY=r;var i=n(466);Object.defineProperty(e,"Container",{enumerable:!0,get:function(){return i.Container}});var o=n(56);Object.defineProperty(e,"BindingScopeEnum",{enumerable:!0,get:function(){return o.BindingScopeEnum}}),Object.defineProperty(e,"BindingTypeEnum",{enumerable:!0,get:function(){return o.BindingTypeEnum}}),Object.defineProperty(e,"TargetTypeEnum",{enumerable:!0,get:function(){return o.TargetTypeEnum}});var a=n(482);Object.defineProperty(e,"AsyncContainerModule",{enumerable:!0,get:function(){return a.AsyncContainerModule}}),Object.defineProperty(e,"ContainerModule",{enumerable:!0,get:function(){return a.ContainerModule}});var s=n(483);Object.defineProperty(e,"injectable",{enumerable:!0,get:function(){return s.injectable}});var u=n(484);Object.defineProperty(e,"tagged",{enumerable:!0,get:function(){return u.tagged}});var c=n(485);Object.defineProperty(e,"named",{enumerable:!0,get:function(){return c.named}});var f=n(237);Object.defineProperty(e,"inject",{enumerable:!0,get:function(){return f.inject}}),Object.defineProperty(e,"LazyServiceIdentifer",{enumerable:!0,get:function(){return f.LazyServiceIdentifer}});var l=n(486);Object.defineProperty(e,"optional",{enumerable:!0,get:function(){return l.optional}});var h=n(487);Object.defineProperty(e,"unmanaged",{enumerable:!0,get:function(){return h.unmanaged}});var d=n(488);Object.defineProperty(e,"multiInject",{enumerable:!0,get:function(){return d.multiInject}});var p=n(489);Object.defineProperty(e,"targetName",{enumerable:!0,get:function(){return p.targetName}});var g=n(490);Object.defineProperty(e,"postConstruct",{enumerable:!0,get:function(){return g.postConstruct}});var v=n(235);Object.defineProperty(e,"MetadataReader",{enumerable:!0,get:function(){return v.MetadataReader}});var y=n(68);Object.defineProperty(e,"id",{enumerable:!0,get:function(){return y.id}});var m=n(61);Object.defineProperty(e,"decorate",{enumerable:!0,get:function(){return m.decorate}});var b=n(240);Object.defineProperty(e,"traverseAncerstors",{enumerable:!0,get:function(){return b.traverseAncerstors}}),Object.defineProperty(e,"taggedConstraint",{enumerable:!0,get:function(){return b.taggedConstraint}}),Object.defineProperty(e,"namedConstraint",{enumerable:!0,get:function(){return b.namedConstraint}}),Object.defineProperty(e,"typeConstraint",{enumerable:!0,get:function(){return b.typeConstraint}});var x=n(90);Object.defineProperty(e,"getServiceIdentifierAsString",{enumerable:!0,get:function(){return x.getServiceIdentifierAsString}});var w=n(491);Object.defineProperty(e,"multiBindToService",{enumerable:!0,get:function(){return w.multiBindToService}})},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e){function n(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)}}t.exports=function(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.TextureCompressionBC="texture-compression-bc"}(e.ExtensionName||(e.ExtensionName={})),function(t){t.ClampToEdge="clamp-to-edge",t.Repeat="repeat",t.MirrorRepeat="mirror-repeat"}(e.AddressMode||(e.AddressMode={})),function(t){t.UniformBuffer="uniform-buffer",t.StorageBuffer="storage-buffer",t.ReadonlyStorageBuffer="readonly-storage-buffer",t.Sampler="sampler",t.ComparisonSampler="comparison-sampler",t.SampledTexture="sampled-texture",t.ReadonlyStorageTexture="readonly-storage-texture",t.WriteonlyStorageTexture="writeonly-storage-texture"}(e.BindingType||(e.BindingType={})),function(t){t.Zero="zero",t.One="one",t.SrcColor="src-color",t.OneMinusSrcColor="one-minus-src-color",t.SrcAlpha="src-alpha",t.OneMinusSrcAlpha="one-minus-src-alpha",t.DstColor="dst-color",t.OneMinusDstColor="one-minus-dst-color",t.DstAlpha="dst-alpha",t.OneMinusDstAlpha="one-minus-dst-alpha",t.SrcAlphaSaturated="src-alpha-saturated",t.BlendColor="blend-color",t.OneMinusBlendColor="one-minus-blend-color"}(e.BlendFactor||(e.BlendFactor={})),function(t){t.Add="add",t.Subtract="subtract",t.ReverseSubtract="reverse-subtract",t.Min="min",t.Max="max"}(e.BlendOperation||(e.BlendOperation={})),function(t){t.Never="never",t.Less="less",t.Equal="equal",t.LessEqual="less-equal",t.Greater="greater",t.NotEqual="not-equal",t.GreaterEqual="greater-equal",t.Always="always"}(e.CompareFunction||(e.CompareFunction={})),function(t){t.None="none",t.Front="front",t.Back="back"}(e.CullMode||(e.CullMode={})),function(t){t.Nearest="nearest",t.Linear="linear"}(e.FilterMode||(e.FilterMode={})),function(t){t.CCW="ccw",t.CW="cw"}(e.FrontFace||(e.FrontFace={})),function(t){t.Uint16="uint16",t.Uint32="uint32"}(e.IndexFormat||(e.IndexFormat={})),function(t){t.Vertex="vertex",t.Instance="instance"}(e.InputStepMode||(e.InputStepMode={})),function(t){t.Load="load"}(e.LoadOp||(e.LoadOp={})),function(t){t.PointList="point-list",t.LineList="line-list",t.LineStrip="line-strip",t.TriangleList="triangle-list",t.TriangleStrip="triangle-strip"}(e.PrimitiveTopology||(e.PrimitiveTopology={})),function(t){t.Keep="keep",t.Zero="zero",t.Replace="replace",t.Invert="invert",t.IncrementClamp="increment-clamp",t.DecrementClamp="decrement-clamp",t.IncrementWrap="increment-wrap",t.DecrementWrap="decrement-wrap"}(e.StencilOperation||(e.StencilOperation={})),function(t){t.Store="store",t.Clear="clear"}(e.StoreOp||(e.StoreOp={})),function(t){t.E1d="1d",t.E2d="2d",t.E3d="3d"}(e.TextureDimension||(e.TextureDimension={})),function(t){t.R8Unorm="r8unorm",t.R8Snorm="r8snorm",t.R8Uint="r8uint",t.R8Sint="r8sint",t.R16Uint="r16uint",t.R16Sint="r16sint",t.R16Float="r16float",t.RG8Unorm="rg8unorm",t.RG8Snorm="rg8snorm",t.RG8Uint="rg8uint",t.RG8Sint="rg8sint",t.R32Uint="r32uint",t.R32Sint="r32sint",t.R32Float="r32float",t.RG16Uint="rg16uint",t.RG16Sint="rg16sint",t.RG16Float="rg16float",t.RGBA8Unorm="rgba8unorm",t.RGBA8UnormSRGB="rgba8unorm-srgb",t.RGBA8Snorm="rgba8snorm",t.RGBA8Uint="rgba8uint",t.RGBA8Sint="rgba8sint",t.BGRA8Unorm="bgra8unorm",t.BGRA8UnormSRGB="bgra8unorm-srgb",t.RGB10A2Unorm="rgb10a2unorm",t.RG11B10Float="rg11b10float",t.RG32Uint="rg32uint",t.RG32Sint="rg32sint",t.RG32Float="rg32float",t.RGBA16Uint="rgba16uint",t.RGBA16Sint="rgba16sint",t.RGBA16Float="rgba16float",t.RGBA32Uint="rgba32uint",t.RGBA32Sint="rgba32sint",t.RGBA32Float="rgba32float",t.Depth32Float="depth32float",t.Depth24Plus="depth24plus",t.Depth24PlusStencil8="depth24plus-stencil8"}(e.TextureFormat||(e.TextureFormat={})),function(t){t.Float="float",t.Sint="sint",t.Uint="uint"}(e.TextureComponentType||(e.TextureComponentType={})),function(t){t.E1d="1d",t.E2d="2d",t.E2dArray="2d-array",t.Cube="cube",t.CubeArray="cube-array",t.E3d="3d"}(e.TextureViewDimension||(e.TextureViewDimension={})),function(t){t.Uchar2="uchar2",t.Uchar4="uchar4",t.Char2="char2",t.Char4="char4",t.Uchar2Norm="uchar2norm",t.Uchar4Norm="uchar4norm",t.Char2Norm="char2norm",t.Char4Norm="char4norm",t.Ushort2="ushort2",t.Ushort4="ushort4",t.Short2="short2",t.Short4="short4",t.Ushort2Norm="ushort2norm",t.Ushort4Norm="ushort4norm",t.Short2Norm="short2norm",t.Short4Norm="short4norm",t.Half2="half2",t.Half4="half4",t.Float="float",t.Float2="float2",t.Float3="float3",t.Float4="float4",t.Uint="uint",t.Uint2="uint2",t.Uint3="uint3",t.Uint4="uint4",t.Int="int",t.Int2="int2",t.Int3="int3",t.Int4="int4"}(e.VertexFormat||(e.VertexFormat={})),function(t){t.All="all",t.StencilOnly="stencil-only",t.DepthOnly="depth-only"}(e.TextureAspect||(e.TextureAspect={})),function(t){t.Error="error",t.Warning="warning",t.Info="info"}(e.CompilationMessageType||(e.CompilationMessageType={})),function(t){t.Occlusion="occlusion"}(e.QueryType||(e.QueryType={})),function(t){t[t.MapRead=1]="MapRead",t[t.MapWrite=2]="MapWrite",t[t.CopySrc=4]="CopySrc",t[t.CopyDst=8]="CopyDst",t[t.Index=16]="Index",t[t.Vertex=32]="Vertex",t[t.Uniform=64]="Uniform",t[t.Storage=128]="Storage",t[t.Indirect=256]="Indirect",t[t.QueryResolve=512]="QueryResolve"}(e.BufferUsage||(e.BufferUsage={})),function(t){t[t.Red=1]="Red",t[t.Green=2]="Green",t[t.Blue=4]="Blue",t[t.Alpha=8]="Alpha",t[t.All=15]="All"}(e.ColorWrite||(e.ColorWrite={})),function(t){t[t.Vertex=1]="Vertex",t[t.Fragment=2]="Fragment",t[t.Compute=4]="Compute"}(e.ShaderStage||(e.ShaderStage={})),function(t){t[t.CopySrc=1]="CopySrc",t[t.CopyDst=2]="CopyDst",t[t.Sampled=4]="Sampled",t[t.Storage=8]="Storage",t[t.OutputAttachment=16]="OutputAttachment"}(e.TextureUsage||(e.TextureUsage={})),function(t){t[t.Read=1]="Read",t[t.Write=2]="Write"}(e.MapMode||(e.MapMode={}))},function(t,e,n){t.exports=n(462)},function(t,e){t.exports=function(t,e,n,r){n&&Object.defineProperty(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}},function(t,e){t.exports=function(t,e,n,r,i){var o={};return Object.keys(r).forEach((function(t){o[t]=r[t]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce((function(n,r){return r(t,e,n)||n}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(t,e,o),o=null),o}},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return o}));var r=1e-6,i="undefined"!=typeof Float32Array?Float32Array:Array,o=Math.random;Math.PI;Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)})},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={HierarchyComponentManager:Symbol("HierarchyComponentManager"),TransformComponentManager:Symbol("TransformComponentManager"),NameComponentManager:Symbol("NameComponentManager"),SceneGraphSystem:Symbol("SceneGraphSystem"),FrameGraphSystem:Symbol("FrameGraphSystem"),ResourcePool:Symbol("ResourcePool"),ResourceHandleComponentManager:Symbol("ResourceHandleComponentManager"),PassNodeComponentManager:Symbol("PassNodeComponentManager"),RendererSystem:Symbol("RendererSystem"),RenderPass:Symbol("RenderPass"),RenderPassFactory:Symbol("Factory<IRenderPass>"),Renderable:Symbol("Factory<IRenderPass>"),MeshSystem:Symbol("MeshSystem"),MeshComponentManager:Symbol("MeshComponentManager"),CullableComponentManager:Symbol("CullableComponentManager"),Geometry:Symbol("Geometry"),GeometrySystem:Symbol("GeometrySystem"),GeometryComponentManager:Symbol("GeometryComponentManager"),Material:Symbol("Material"),MaterialSystem:Symbol("MaterialSystem"),MaterialComponentManager:Symbol("MaterialComponentManager"),ForwardRenderPath:Symbol("ForwardRenderPath"),ComputeSystem:Symbol("ComputeSystem"),ComputeComponentManager:Symbol("ComputeComponentManager"),ComputeStrategy:Symbol("ComputeStrategy"),Systems:Symbol("Systems"),World:Symbol("World"),RenderEngine:Symbol("RenderEngine"),WebGPUEngine:Symbol("WebGPUEngine"),WebGLEngine:Symbol("WebGLEngine"),ShaderModuleService:Symbol("ShaderModuleService"),ConfigService:Symbol("ConfigService"),InteractorService:Symbol("InteractorService"),IEventEmitter:Symbol("IEventEmitter"),Light:Symbol("Light")}},function(t,e){function n(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}t.exports=function(t){return function(){var e=this,r=arguments;return new Promise((function(i,o){var a=t.apply(e,r);function s(t){n(a,i,o,s,u,"next",t)}function u(t){n(a,i,o,s,u,"throw",t)}s(void 0)}))}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var r={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},i={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"}},function(t,e,n){"use strict";n.d(e,"d",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"e",(function(){return a})),n.d(e,"f",(function(){return s})),n.d(e,"l",(function(){return u})),n.d(e,"j",(function(){return c}));var r=n(0);function i(){return window?window.devicePixelRatio:1}function o(t,e,n,r){var i=t-n,o=e-r;return Math.sqrt(i*i+o*o)}function a(t,e,n,r,i,o){return i>=t&&i<=t+n&&o>=e&&o<=e+r}function s(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function u(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e}function c(t,e){return t[0]===e[0]&&t[1]===e[1]}n.d(e,"i",(function(){return r.s})),n.d(e,"k",(function(){return r.x})),n.d(e,"h",(function(){return r.r})),n.d(e,"g",(function(){return r.m})),n.d(e,"c",(function(){return r.f})),n.d(e,"o",(function(){return r.G})),n.d(e,"m",(function(){return r.B})),n.d(e,"n",(function(){return r.D})),n.d(e,"a",(function(){return r.b}))},function(t,e){function n(e){return t.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},n(e)}t.exports=n},function(t,e,n){"use strict";n.d(e,"b",(function(){return i.a})),n.d(e,"c",(function(){return i.d})),n.d(e,"d",(function(){return i.e})),n.d(e,"a",(function(){return r}));var r={};n.r(r),n.d(r,"leftTranslate",(function(){return o})),n.d(r,"leftRotate",(function(){return a})),n.d(r,"leftScale",(function(){return s})),n.d(r,"transform",(function(){return u})),n.d(r,"direction",(function(){return c})),n.d(r,"angleTo",(function(){return f})),n.d(r,"vertical",(function(){return l}));var i=n(2);function o(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return i.a.fromTranslation(r,n),i.a.multiply(t,r,e)}function a(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return i.a.fromRotation(r,n),i.a.multiply(t,r,e)}function s(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return i.a.fromScaling(r,n),i.a.multiply(t,r,e)}function u(t,e){for(var n,r,u,c=t?[].concat(t):[1,0,0,0,1,0,0,0,1],f=0,l=e.length;f<l;f++){var h=e[f];switch(h[0]){case"t":o(c,c,[h[1],h[2]]);break;case"s":s(c,c,[h[1],h[2]]);break;case"r":a(c,c,h[1]);break;case"m":n=c,r=c,u=h[1],i.a.multiply(n,u,r)}}return c}function c(t,e){return t[0]*e[1]-e[0]*t[1]}function f(t,e,n){var r=i.d.angle(t,e),o=c(t,e)>=0;return n?o?2*Math.PI-r:r:o?r:2*Math.PI-r}function l(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}},function(t,e,n){"use strict";n.d(e,"j",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"g",(function(){return a})),n.d(e,"b",(function(){return s}));var r=n(0);function i(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}n.d(e,"e",(function(){return r.s})),n.d(e,"d",(function(){return r.r})),n.d(e,"h",(function(){return r.x})),n.d(e,"f",(function(){return r.v})),n.d(e,"i",(function(){return r.A})),n.d(e,"a",(function(){return r.f})),n.d(e,"k",(function(){return r.I}));var o="undefined"!=typeof window&&void 0!==window.document;function a(t,e){if(t.isCanvas())return!0;for(var n=e.getParent(),r=!1;n;){if(n===t){r=!0;break}n=n.getParent()}return r}function s(t){return t.cfg.visible&&t.cfg.capture}},function(t,e,n){"use strict";n.d(e,"e",(function(){return m})),n.d(e,"b",(function(){return _})),n.d(e,"a",(function(){return I})),n.d(e,"c",(function(){return h})),n.d(e,"d",(function(){return L})),n.d(e,"f",(function(){return r}));var r={};function i(t){return Math.min.apply(null,t)}function o(t){return Math.max.apply(null,t)}function a(t,e,n,r){var i=t-n,o=e-r;return Math.sqrt(i*i+o*o)}function s(t,e){return Math.abs(t-e)<.001}function u(t,e){var n=i(t),r=i(e);return{x:n,y:r,width:o(t)-n,height:o(e)-r}}function c(t,e,n,r){return{minX:i([t,n]),maxX:o([t,n]),minY:i([e,r]),maxY:o([e,r])}}function f(t){return(t+2*Math.PI)%(2*Math.PI)}n.r(r),n.d(r,"distance",(function(){return a})),n.d(r,"isNumberEqual",(function(){return s})),n.d(r,"getBBoxByArray",(function(){return u})),n.d(r,"getBBoxRange",(function(){return c})),n.d(r,"piMod",(function(){return f}));var l=n(82),h={box:function(t,e,n,r){return u([t,n],[e,r])},length:function(t,e,n,r){return a(t,e,n,r)},pointAt:function(t,e,n,r,i){return{x:(1-i)*t+i*n,y:(1-i)*e+i*r}},pointDistance:function(t,e,n,r,i,o){var s=(n-t)*(i-t)+(r-e)*(o-e);return s<0?a(t,e,i,o):s>(n-t)*(n-t)+(r-e)*(r-e)?a(n,r,i,o):this.pointToLine(t,e,n,r,i,o)},pointToLine:function(t,e,n,r,i,o){var a=[n-t,r-e];if(l.exactEquals(a,[0,0]))return Math.sqrt((i-t)*(i-t)+(o-e)*(o-e));var s=[-a[1],a[0]];l.normalize(s,s);var u=[i-t,o-e];return Math.abs(l.dot(u,s))},tangentAngle:function(t,e,n,r){return Math.atan2(r-e,n-t)}};function d(t,e,n,r,i,o){var s,u=1/0,c=[n,r],f=20;o&&o>200&&(f=o/10);for(var l=1/f,h=l/10,d=0;d<=f;d++){var p=d*l,g=[i.apply(null,t.concat([p])),i.apply(null,e.concat([p]))];(b=a(c[0],c[1],g[0],g[1]))<u&&(s=p,u=b)}if(0===s)return{x:t[0],y:e[0]};if(1===s){var v=t.length;return{x:t[v-1],y:e[v-1]}}u=1/0;for(d=0;d<32&&!(h<1e-4);d++){var y=s-h,m=s+h,b=(g=[i.apply(null,t.concat([y])),i.apply(null,e.concat([y]))],a(c[0],c[1],g[0],g[1]));if(y>=0&&b<u)s=y,u=b;else{var x=[i.apply(null,t.concat([m])),i.apply(null,e.concat([m]))],w=a(c[0],c[1],x[0],x[1]);m<=1&&w<u?(s=m,u=w):h*=.5}}return{x:i.apply(null,t.concat([s])),y:i.apply(null,e.concat([s]))}}function p(t,e,n,r){var i=1-r;return i*i*t+2*r*i*e+r*r*n}function g(t,e,n){var r=t+n-2*e;if(s(r,0))return[.5];var i=(t-e)/r;return i<=1&&i>=0?[i]:[]}function v(t,e,n,r){return 2*(1-r)*(e-t)+2*r*(n-e)}function y(t,e,n,r,i,o,a){var s=p(t,n,i,a),u=p(e,r,o,a),c=h.pointAt(t,e,n,r,a),f=h.pointAt(n,r,i,o,a);return[[t,e,c.x,c.y,s,u],[s,u,f.x,f.y,i,o]]}var m={box:function(t,e,n,r,i,o){var a=g(t,n,i)[0],s=g(e,r,o)[0],c=[t,i],f=[e,o];return void 0!==a&&c.push(p(t,n,i,a)),void 0!==s&&f.push(p(e,r,o,s)),u(c,f)},length:function(t,e,n,r,i,o){return function t(e,n,r,i,o,s,u){if(0===u)return(a(e,n,r,i)+a(r,i,o,s)+a(e,n,o,s))/2;var c=y(e,n,r,i,o,s,.5),f=c[0],l=c[1];return f.push(u-1),l.push(u-1),t.apply(null,f)+t.apply(null,l)}(t,e,n,r,i,o,3)},nearestPoint:function(t,e,n,r,i,o,a,s){return d([t,n,i],[e,r,o],a,s,p)},pointDistance:function(t,e,n,r,i,o,s,u){var c=this.nearestPoint(t,e,n,r,i,o,s,u);return a(c.x,c.y,s,u)},interpolationAt:p,pointAt:function(t,e,n,r,i,o,a){return{x:p(t,n,i,a),y:p(e,r,o,a)}},divide:function(t,e,n,r,i,o,a){return y(t,e,n,r,i,o,a)},tangentAngle:function(t,e,n,r,i,o,a){var s=v(t,n,i,a),u=v(e,r,o,a);return f(Math.atan2(u,s))}};function b(t,e,n,r,i){var o=1-i;return o*o*o*t+3*e*i*o*o+3*n*i*i*o+r*i*i*i}function x(t,e,n,r,i){var o=1-i;return 3*(o*o*(e-t)+2*o*i*(n-e)+i*i*(r-n))}function w(t,e,n,r){var i,o,a,u=-3*t+9*e-9*n+3*r,c=6*t-12*e+6*n,f=3*e-3*t,l=[];if(s(u,0))s(c,0)||(i=-f/c)>=0&&i<=1&&l.push(i);else{var h=c*c-4*u*f;s(h,0)?l.push(-c/(2*u)):h>0&&(o=(-c-(a=Math.sqrt(h)))/(2*u),(i=(-c+a)/(2*u))>=0&&i<=1&&l.push(i),o>=0&&o<=1&&l.push(o))}return l}function S(t,e,n,r,i,o,a,s,u){var c=b(t,n,i,a,u),f=b(e,r,o,s,u),l=h.pointAt(t,e,n,r,u),d=h.pointAt(n,r,i,o,u),p=h.pointAt(i,o,a,s,u),g=h.pointAt(l.x,l.y,d.x,d.y,u),v=h.pointAt(d.x,d.y,p.x,p.y,u);return[[t,e,l.x,l.y,g.x,g.y,c,f],[c,f,v.x,v.y,p.x,p.y,a,s]]}function E(t,e,n,r,i,o,s,u,c){if(0===c)return function(t,e){for(var n=0,r=t.length,i=0;i<r;i++){n+=a(t[i],e[i],t[(i+1)%r],e[(i+1)%r])}return n/2}([t,n,i,s],[e,r,o,u]);var f=S(t,e,n,r,i,o,s,u,.5),l=f[0],h=f[1];return l.push(c-1),h.push(c-1),E.apply(null,l)+E.apply(null,h)}var _={extrema:w,box:function(t,e,n,r,i,o,a,s){for(var c=[t,a],f=[e,s],l=w(t,n,i,a),h=w(e,r,o,s),d=0;d<l.length;d++)c.push(b(t,n,i,a,l[d]));for(d=0;d<h.length;d++)f.push(b(e,r,o,s,h[d]));return u(c,f)},length:function(t,e,n,r,i,o,a,s){return E(t,e,n,r,i,o,a,s,3)},nearestPoint:function(t,e,n,r,i,o,a,s,u,c,f){return d([t,n,i,a],[e,r,o,s],u,c,b,f)},pointDistance:function(t,e,n,r,i,o,s,u,c,f,l){var h=this.nearestPoint(t,e,n,r,i,o,s,u,c,f,l);return a(h.x,h.y,c,f)},interpolationAt:b,pointAt:function(t,e,n,r,i,o,a,s,u){return{x:b(t,n,i,a,u),y:b(e,r,o,s,u)}},divide:function(t,e,n,r,i,o,a,s,u){return S(t,e,n,r,i,o,a,s,u)},tangentAngle:function(t,e,n,r,i,o,a,s,u){var c=x(t,n,i,a,u),l=x(e,r,o,s,u);return f(Math.atan2(l,c))}};function O(t,e){var n=Math.abs(t);return e>0?n:-1*n}var k=function(t,e,n,r,i,o){var a=n,s=r;if(0===a||0===s)return{x:t,y:e};for(var u,c,f=i-t,l=o-e,h=Math.abs(f),d=Math.abs(l),p=a*a,g=s*s,v=Math.PI/4,y=0;y<4;y++){u=a*Math.cos(v),c=s*Math.sin(v);var m=(p-g)*Math.pow(Math.cos(v),3)/a,b=(g-p)*Math.pow(Math.sin(v),3)/s,x=u-m,w=c-b,S=h-m,E=d-b,_=Math.hypot(w,x),k=Math.hypot(E,S);v+=_*Math.asin((x*E-w*S)/(_*k))/Math.sqrt(p+g-u*u-c*c),v=Math.min(Math.PI/2,Math.max(0,v))}return{x:t+O(u,f),y:e+O(c,l)}};function M(t,e,n,r,i,o){return n*Math.cos(i)*Math.cos(o)-r*Math.sin(i)*Math.sin(o)+t}function A(t,e,n,r,i,o){return n*Math.sin(i)*Math.cos(o)+r*Math.cos(i)*Math.sin(o)+e}function T(t,e,n){return{x:t*Math.cos(n),y:e*Math.sin(n)}}function C(t,e,n){var r=Math.cos(n),i=Math.sin(n);return[t*r-e*i,t*i+e*r]}var I={box:function(t,e,n,r,i,o,a){for(var s=function(t,e,n){return Math.atan(-e/t*Math.tan(n))}(n,r,i),u=1/0,c=-1/0,f=[o,a],l=2*-Math.PI;l<=2*Math.PI;l+=Math.PI){var h=s+l;o<a?o<h&&h<a&&f.push(h):a<h&&h<o&&f.push(h)}for(l=0;l<f.length;l++){var d=M(t,0,n,r,i,f[l]);d<u&&(u=d),d>c&&(c=d)}var p=function(t,e,n){return Math.atan(e/(t*Math.tan(n)))}(n,r,i),g=1/0,v=-1/0,y=[o,a];for(l=2*-Math.PI;l<=2*Math.PI;l+=Math.PI){var m=p+l;o<a?o<m&&m<a&&y.push(m):a<m&&m<o&&y.push(m)}for(l=0;l<y.length;l++){var b=A(0,e,n,r,i,y[l]);b<g&&(g=b),b>v&&(v=b)}return{x:u,y:g,width:c-u,height:v-g}},length:function(t,e,n,r,i,o,a){},nearestPoint:function(t,e,n,r,i,o,a,s,u){var c=C(s-t,u-e,-i),f=c[0],l=c[1],h=k(0,0,n,r,f,l),d=function(t,e,n,r){return(Math.atan2(r*t,n*e)+2*Math.PI)%(2*Math.PI)}(n,r,h.x,h.y);d<o?h=T(n,r,o):d>a&&(h=T(n,r,a));var p=C(h.x,h.y,i);return{x:p[0]+t,y:p[1]+e}},pointDistance:function(t,e,n,r,i,o,s,u,c){var f=this.nearestPoint(t,e,n,r,u,c);return a(f.x,f.y,u,c)},pointAt:function(t,e,n,r,i,o,a,s){var u=(a-o)*s+o;return{x:M(t,0,n,r,i,u),y:A(0,e,n,r,i,u)}},tangentAngle:function(t,e,n,r,i,o,a,s){var u=(a-o)*s+o,c=function(t,e,n,r,i,o,a,s){return-1*n*Math.cos(i)*Math.sin(s)-r*Math.sin(i)*Math.cos(s)}(0,0,n,r,i,0,0,u),l=function(t,e,n,r,i,o,a,s){return-1*n*Math.sin(i)*Math.sin(s)+r*Math.cos(i)*Math.cos(s)}(0,0,n,r,i,0,0,u);return f(Math.atan2(l,c))}};function P(t){for(var e=0,n=[],r=0;r<t.length-1;r++){var i=t[r],o=t[r+1],s=a(i[0],i[1],o[0],o[1]),u={from:i,to:o,length:s};n.push(u),e+=s}return{segments:n,totalLength:e}}function j(t){if(t.length<2)return 0;for(var e=0,n=0;n<t.length-1;n++){var r=t[n],i=t[n+1];e+=a(r[0],r[1],i[0],i[1])}return e}function D(t,e){if(e>1||e<0||t.length<2)return null;var n=P(t),r=n.segments,i=n.totalLength;if(0===i)return{x:t[0][0],y:t[0][1]};for(var o=0,a=null,s=0;s<r.length;s++){var u=r[s],c=u.from,f=u.to,l=u.length/i;if(e>=o&&e<=o+l){var d=(e-o)/l;a=h.pointAt(c[0],c[1],f[0],f[1],d);break}o+=l}return a}function N(t,e){if(e>1||e<0||t.length<2)return 0;for(var n=P(t),r=n.segments,i=n.totalLength,o=0,a=0,s=0;s<r.length;s++){var u=r[s],c=u.from,f=u.to,l=u.length/i;if(e>=o&&e<=o+l){a=Math.atan2(f[1]-c[1],f[0]-c[0]);break}o+=l}return a}function R(t,e,n){for(var r=1/0,i=0;i<t.length-1;i++){var o=t[i],a=t[i+1],s=h.pointDistance(o[0],o[1],a[0],a[1],e,n);s<r&&(r=s)}return r}var L={box:function(t){for(var e=[],n=[],r=0;r<t.length;r++){var i=t[r];e.push(i[0]),n.push(i[1])}return u(e,n)},length:function(t){return j(t)},pointAt:function(t,e){return D(t,e)},pointDistance:function(t,e,n){return R(t,e,n)},tangentAngle:function(t,e){return N(t,e)}}},function(t,e,n){"use strict";var r=n(52);n.d(e,"PathUtil",(function(){return r}));n(171),n(172);var i=n(116);n.d(e,"Event",(function(){return i.a}));n(117);var o=n(265);n.d(e,"AbstractCanvas",(function(){return o.a}));var a=n(174);n.d(e,"AbstractGroup",(function(){return a.a}));var s=n(175);n.d(e,"AbstractShape",(function(){return s.a}));var u=n(266);n.d(e,"getBBoxMethod",(function(){return u.a}));var c=n(69);n.d(e,"getTextHeight",(function(){return c.b})),n.d(e,"assembleFont",(function(){return c.a}));var f=n(19);n.d(e,"isAllowCapture",(function(){return f.b}));var l=n(39);n.d(e,"multiplyVec2",(function(){return l.c})),n.d(e,"invert",(function(){return l.a}));var h=n(118);n.d(e,"getOffScreenContext",(function(){return h.a}))},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}},function(t,e,n){var r=n(492);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}},function(t,e,n){var r=n(93),i=n(22);t.exports=function(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?i(t):e}},function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return a})),n.d(e,"d",(function(){return s})),n.d(e,"c",(function(){return u}));var r=n(0),i=n(15);function o(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function a(t){var e=i.a[t.type],n=t.getParent();if(!e)throw new Error("the type "+t.type+" is not supported by svg");var r=o(e);if(t.get("id")&&(r.id=t.get("id")),t.set("el",r),t.set("attrs",{}),n){var a=n.get("el");a||(a=n.createDom(),n.set("el",a)),a.appendChild(r)}return r}function s(t,e){var n=t.get("el"),i=Object(r.F)(n.children).sort(e),o=document.createDocumentFragment();i.forEach((function(t){o.appendChild(t)})),n.appendChild(o)}function u(t,e){var n=t.parentNode,r=Array.from(n.childNodes).filter((function(t){return 1===t.nodeType&&"defs"!==t.nodeName.toLowerCase()})),i=r[e],o=r.indexOf(t);if(i){if(o>e)n.insertBefore(t,i);else if(o<e){var a=r[e+1];a?n.insertBefore(t,a):n.appendChild(t)}}else n.appendChild(t)}},function(t,e,n){var r=n(494),i=n(495),o=n(233),a=n(496);t.exports=function(t){return r(t)||i(t)||o(t)||a()}},function(t,e,n){var r;try{r={cloneDeep:n(401),constant:n(152),defaults:n(402),each:n(196),filter:n(199),find:n(403),flatten:n(227),forEach:n(197),forIn:n(410),has:n(210),isUndefined:n(211),last:n(411),map:n(212),mapValues:n(412),max:n(413),merge:n(415),min:n(420),minBy:n(421),now:n(422),pick:n(423),range:n(428),reduce:n(214),sortBy:n(431),uniqueId:n(436),values:n(220),zipObject:n(437)}}catch(t){}r||(r=window._),t.exports=r},function(t,e){t.exports=function(t,e){throw new Error("Decorating class property failed. Please ensure that proposal-class-properties is enabled and runs after the decorators transform.")}},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"d",(function(){return f})),n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return h})),n.d(e,"e",(function(){return g})),n.d(e,"h",(function(){return v})),n.d(e,"f",(function(){return y})),n.d(e,"g",(function(){return m}));var r=n(0),i=n(140),o=n(92),a=n(16),s=n(33),u={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function c(t,e){var n=e.attr();for(var o in n){var a=n[o],s=u[o]?u[o]:o;"matrix"===s&&a?t.transform(a[0],a[1],a[3],a[4],a[6],a[7]):"lineDash"===s&&t.setLineDash?Object(r.m)(a)&&t.setLineDash(a):("strokeStyle"===s||"fillStyle"===s?a=Object(i.b)(t,e,a):"globalAlpha"===s&&(a*=t.globalAlpha),t[s]=a)}}function f(t,e,n){for(var r=0;r<e.length;r++){var i=e[r];i.cfg.visible?i.draw(t,n):i.skipDraw()}}function l(t,e,n){var i=t.get("refreshElements");Object(r.f)(i,(function(e){if(e!==t)for(var n=e.cfg.parent;n&&n!==t&&!n.cfg.refresh;)n.cfg.refresh=!0,n=n.cfg.parent})),i[0]===t?d(e,n):function t(e,n){for(var r=0;r<e.length;r++){var i=e[r];if(i.cfg.visible)if(i.cfg.hasChanged)i.cfg.refresh=!0,i.isGroup()&&d(i.cfg.children,n);else if(i.cfg.refresh)i.isGroup()&&t(i.cfg.children,n);else{var o=p(i,n);i.cfg.refresh=o,o&&i.isGroup()&&t(i.cfg.children,n)}}}(e,n)}function h(t){for(var e=0;e<t.length;e++){var n=t[e];n.cfg.hasChanged=!1,n.isGroup()&&!n.destroyed&&h(n.cfg.children)}}function d(t,e){for(var n=0;n<t.length;n++){var r=t[n];r.cfg.refresh=!0,r.isGroup()&&d(r.get("children"),e)}}function p(t,e){var n=t.cfg.cacheCanvasBBox;return t.cfg.isInView&&n&&Object(a.f)(n,e)}function g(t,e,n,r){var i=n.path,a=n.startArrow,u=n.endArrow;if(i){var c=[0,0],f=[0,0],l={dx:0,dy:0};e.beginPath();for(var h=0;h<i.length;h++){var d=i[h],p=d[0];if(0===h&&a&&a.d){var g=t.getStartTangent();l=s.c(g[0][0],g[0][1],g[1][0],g[1][1],a.d)}else if(h===i.length-2&&"Z"===i[h+1][0]&&u&&u.d){if("Z"===i[h+1][0]){g=t.getEndTangent();l=s.c(g[0][0],g[0][1],g[1][0],g[1][1],u.d)}}else if(h===i.length-1&&u&&u.d&&"Z"!==i[0]){g=t.getEndTangent();l=s.c(g[0][0],g[0][1],g[1][0],g[1][1],u.d)}var v=l.dx,y=l.dy;switch(p){case"M":e.moveTo(d[1]-v,d[2]-y),f=[d[1],d[2]];break;case"L":e.lineTo(d[1]-v,d[2]-y);break;case"Q":e.quadraticCurveTo(d[1],d[2],d[3]-v,d[4]-y);break;case"C":e.bezierCurveTo(d[1],d[2],d[3],d[4],d[5]-v,d[6]-y);break;case"A":var m=void 0;r?(m=r[h])||(m=Object(o.a)(c,d),r[h]=m):m=Object(o.a)(c,d);var b=m.cx,x=m.cy,w=m.rx,S=m.ry,E=m.startAngle,_=m.endAngle,O=m.xRotation,k=m.sweepFlag;if(e.ellipse)e.ellipse(b,x,w,S,O,E,_,1-k);else{var M=w>S?w:S,A=w>S?1:w/S,T=w>S?S/w:1;e.translate(b,x),e.rotate(O),e.scale(A,T),e.arc(0,0,M,E,_,1-k),e.scale(1/A,1/T),e.rotate(-O),e.translate(-b,-x)}break;case"Z":e.closePath()}if("Z"===p)c=f;else{var C=d.length;c=[d[C-2],d[C-1]]}}}}function v(t,e){var n=t.get("canvas");n&&("remove"===e&&(t._cacheCanvasBBox=t.get("cacheCanvasBBox")),t.get("hasChanged")||(t.set("hasChanged",!0),t.cfg.parent&&t.cfg.parent.get("hasChanged")||(n.refreshElement(t,e,n),n.get("autoDraw")&&n.draw())))}function y(t){if(!t.length)return null;var e=[],n=[],i=[],o=[];return Object(r.f)(t,(function(t){var r=function(t){var e;if(t.destroyed)e=t._cacheCanvasBBox;else{var n=t.get("cacheCanvasBBox"),r=n&&!(!n.width||!n.height),i=t.getCanvasBBox(),o=i&&!(!i.width||!i.height);r&&o?e=Object(a.l)(n,i):r?e=n:o&&(e=i)}return e}(t);r&&(e.push(r.minX),n.push(r.minY),i.push(r.maxX),o.push(r.maxY))})),{minX:Math.min.apply(null,e),minY:Math.min.apply(null,n),maxX:Math.max.apply(null,i),maxY:Math.max.apply(null,o)}}function m(t,e){return t&&e&&Object(a.f)(t,e)?{minX:Math.max(t.minX,e.minX),minY:Math.max(t.minY,e.minY),maxX:Math.min(t.maxX,e.maxX),maxY:Math.min(t.maxY,e.maxY)}:null}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.POST_CONSTRUCT=e.DESIGN_PARAM_TYPES=e.PARAM_TYPES=e.TAGGED_PROP=e.TAGGED=e.MULTI_INJECT_TAG=e.INJECT_TAG=e.OPTIONAL_TAG=e.UNMANAGED_TAG=e.NAME_TAG=e.NAMED_TAG=void 0,e.NAMED_TAG="named",e.NAME_TAG="name",e.UNMANAGED_TAG="unmanaged",e.OPTIONAL_TAG="optional",e.INJECT_TAG="inject",e.MULTI_INJECT_TAG="multi_inject",e.TAGGED="inversify:tagged",e.TAGGED_PROP="inversify:tagged_props",e.PARAM_TYPES="inversify:paramtypes",e.DESIGN_PARAM_TYPES="design:paramtypes",e.POST_CONSTRUCT="post_construct"},function(t,e,n){var r=n(323),i=n(105),o=n(147),a=o&&o.isTypedArray,s=a?i(a):r;t.exports=s},function(t,e,n){"use strict";n.d(e,"c",(function(){return h})),n.d(e,"b",(function(){return d})),n.d(e,"a",(function(){return p}));var r=n(1),i=n(57);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var a=Math.sin,s=Math.cos,u=Math.atan2,c=Math.PI;function f(t,e,n,r,o,f,l){var h=e.stroke,d=e.lineWidth,p=u(r-f,n-o),g=new i.Path({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*s(c/6)+","+10*a(c/6)+" L0,0 L"+10*s(c/6)+",-"+10*a(c/6),stroke:h,lineWidth:d}});g.translate(o,f),g.rotateAtPoint(o,f,p),t.set(l?"startArrowShape":"endArrowShape",g)}function l(t,e,n,o,c,f,l){var h=e.startArrow,d=e.endArrow,p=e.stroke,g=e.lineWidth,v=l?h:d,y=v.d,m=v.fill,b=v.stroke,x=v.lineWidth,w=Object(r.c)(v,["d","fill","stroke","lineWidth"]),S=u(o-f,n-c);y&&(c-=s(S)*y,f-=a(S)*y);var E=new i.Path({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:Object(r.a)(Object(r.a)({},w),{stroke:b||p,lineWidth:x||g,fill:m})});E.translate(c,f),E.rotateAtPoint(c,f,S),t.set(l?"startArrowShape":"endArrowShape",E)}function h(t,e,n,r,i){var o=u(r-e,n-t);return{dx:s(o)*i,dy:a(o)*i}}function d(t,e,n,r,i,a){"object"===o(e.startArrow)?l(t,e,n,r,i,a,!0):e.startArrow?f(t,e,n,r,i,a,!0):t.set("startArrowShape",null)}function p(t,e,n,r,i,a){"object"===o(e.endArrow)?l(t,e,n,r,i,a,!1):e.endArrow?f(t,e,n,r,i,a,!1):t.set("startArrowShape",null)}},function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var r=n(25);function i(t,e){var n=t.cfg.el,r=t.attr(),i={dx:r.shadowOffsetX,dy:r.shadowOffsetY,blur:r.shadowBlur,color:r.shadowColor};if(i.dx||i.dy||i.blur||i.color){var o=e.find("filter",i);o||(o=e.addShadow(i)),n.setAttribute("filter","url(#"+o+")")}else n.removeAttribute("filter")}function o(t){var e=t.attr().matrix;if(e){for(var n=t.cfg.el,r=[],i=0;i<9;i+=3)r.push(e[i]+","+e[i+1]);-1===(r=r.join(",")).indexOf("NaN")?n.setAttribute("transform","matrix("+r+")"):console.warn("invalid matrix:",e)}}function a(t,e){var n=t.getClip(),i=t.get("el");if(n){if(n&&!i.hasAttribute("clip-path")){Object(r.a)(n),n.createPath(e);var o=e.addClip(n);i.setAttribute("clip-path","url(#"+o+")")}}else i.removeAttribute("clip-path")}},function(t,e,n){"use strict";n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return d}));var r=n(9),i=n.n(r),o=n(14),a=n.n(o),s=n(7),u=n.n(s),c=n(6),f=n.n(c),l=n(119),h=function t(e){f()(this,t)},d=function(){function t(e){f()(this,t),this.clazz=void 0,this.components=[],this.entities=[],this.lookup={},this.clazz=e}var e;return u()(t,[{key:"clear",value:function(){this.components=[],this.entities=[],this.lookup={}}},{key:"contains",value:function(t){return this.lookup[t]>-1}},{key:"create",value:function(t,e){this.lookup[t]=this.components.length;var n=new this.clazz(e||{});return this.components.push(n),this.entities.push(t),n}},{key:"remove",value:function(t){var e=this.lookup[t];e>-1&&e<this.components.length-1&&(this.components[e]=this.components[this.components.length-1],this.entities[e]=this.entities[this.entities.length-1],this.lookup[this.entities[e]]=e),this.components.pop(),this.entities.pop(),delete this.lookup[t]}},{key:"removeKeepSorted",value:function(t){var e=this.lookup[t];if(e>-1){var n=this.entities[e];if(e<this.components.length-1){for(var r=e+1;r<this.components.length;++r)this.components[r-1]=this.components[r];for(var i=e+1;i<this.entities.length;++i)this.entities[i-1]=this.entities[i],this.lookup[this.entities[i-1]]=i-1}this.components.pop(),this.entities.pop(),delete this.lookup[n]}}},{key:"moveItem",value:function(t,e){if(t!==e){for(var n=this.components[t],r=this.entities[t],i=t<e?1:-1,o=t;o!==e;o+=i){var a=o+i;this.components[o]=this.components[a],this.entities[o]=this.entities[a],this.lookup[this.entities[o]]=o}this.components[e]=n,this.entities[e]=r,this.lookup[r]=e}}},{key:"getEntity",value:function(t){return this.entities[t]}},{key:"getComponent",value:function(t){return this.components[t]}},{key:"getComponentByEntity",value:function(t){var e=this.lookup[t];return e>-1?this.components[e]:null}},{key:"getCount",value:function(){return this.components.length}},{key:"getEntityByComponentIndex",value:function(t){for(var e=0,n=Object.keys(this.lookup);e<n.length;e++){var r=n[e],i=Number(r);if(this.lookup[i]===t)return i}return l.a}},{key:"find",value:function(t){for(var e=0;e<this.getCount();e++){var n=this.getComponent(e);if(t(n,e))return n}return null}},{key:"findIndex",value:function(t){for(var e=0;e<this.getCount();e++){if(t(this.getComponent(e),e))return e}return-1}},{key:"forEach",value:function(t){for(var e=0,n=Object.keys(this.lookup);e<n.length;e++){var r=n[e],i=Number(r),o=this.lookup[i];t(i,this.getComponent(o))}}},{key:"forEachAsync",value:(e=a()(i.a.mark((function t(e){var n,r,o,a,s;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=0,r=Object.keys(this.lookup);case 1:if(!(n<r.length)){t.next=10;break}return o=r[n],a=Number(o),s=this.lookup[a],t.next=7,e(a,this.getComponent(s));case 7:n++,t.next=1;break;case 10:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"map",value:function(t){for(var e=[],n=0,r=Object.keys(this.lookup);n<r.length;n++){var i=r[n],o=Number(i),a=this.lookup[o];e.push(t(o,this.getComponent(a)))}return e}}]),t}()},function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t[t.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",t[t.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",t[t.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT",t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN",t[t.ZERO=0]="ZERO",t[t.ONE=1]="ONE",t[t.SRC_COLOR=768]="SRC_COLOR",t[t.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",t[t.SRC_ALPHA=770]="SRC_ALPHA",t[t.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",t[t.DST_ALPHA=772]="DST_ALPHA",t[t.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",t[t.DST_COLOR=774]="DST_COLOR",t[t.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",t[t.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",t[t.FUNC_ADD=32774]="FUNC_ADD",t[t.BLEND_EQUATION=32777]="BLEND_EQUATION",t[t.BLEND_EQUATION_RGB=32777]="BLEND_EQUATION_RGB",t[t.BLEND_EQUATION_ALPHA=34877]="BLEND_EQUATION_ALPHA",t[t.FUNC_SUBTRACT=32778]="FUNC_SUBTRACT",t[t.FUNC_REVERSE_SUBTRACT=32779]="FUNC_REVERSE_SUBTRACT",t[t.MAX_EXT=32776]="MAX_EXT",t[t.MIN_EXT=32775]="MIN_EXT",t[t.BLEND_DST_RGB=32968]="BLEND_DST_RGB",t[t.BLEND_SRC_RGB=32969]="BLEND_SRC_RGB",t[t.BLEND_DST_ALPHA=32970]="BLEND_DST_ALPHA",t[t.BLEND_SRC_ALPHA=32971]="BLEND_SRC_ALPHA",t[t.CONSTANT_COLOR=32769]="CONSTANT_COLOR",t[t.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",t[t.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",t[t.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA",t[t.BLEND_COLOR=32773]="BLEND_COLOR",t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.ARRAY_BUFFER_BINDING=34964]="ARRAY_BUFFER_BINDING",t[t.ELEMENT_ARRAY_BUFFER_BINDING=34965]="ELEMENT_ARRAY_BUFFER_BINDING",t[t.STREAM_DRAW=35040]="STREAM_DRAW",t[t.STATIC_DRAW=35044]="STATIC_DRAW",t[t.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",t[t.BUFFER_SIZE=34660]="BUFFER_SIZE",t[t.BUFFER_USAGE=34661]="BUFFER_USAGE",t[t.CURRENT_VERTEX_ATTRIB=34342]="CURRENT_VERTEX_ATTRIB",t[t.FRONT=1028]="FRONT",t[t.BACK=1029]="BACK",t[t.FRONT_AND_BACK=1032]="FRONT_AND_BACK",t[t.CULL_FACE=2884]="CULL_FACE",t[t.BLEND=3042]="BLEND",t[t.DITHER=3024]="DITHER",t[t.STENCIL_TEST=2960]="STENCIL_TEST",t[t.DEPTH_TEST=2929]="DEPTH_TEST",t[t.SCISSOR_TEST=3089]="SCISSOR_TEST",t[t.POLYGON_OFFSET_FILL=32823]="POLYGON_OFFSET_FILL",t[t.SAMPLE_ALPHA_TO_COVERAGE=32926]="SAMPLE_ALPHA_TO_COVERAGE",t[t.SAMPLE_COVERAGE=32928]="SAMPLE_COVERAGE",t[t.NO_ERROR=0]="NO_ERROR",t[t.INVALID_ENUM=1280]="INVALID_ENUM",t[t.INVALID_VALUE=1281]="INVALID_VALUE",t[t.INVALID_OPERATION=1282]="INVALID_OPERATION",t[t.OUT_OF_MEMORY=1285]="OUT_OF_MEMORY",t[t.CW=2304]="CW",t[t.CCW=2305]="CCW",t[t.LINE_WIDTH=2849]="LINE_WIDTH",t[t.ALIASED_POINT_SIZE_RANGE=33901]="ALIASED_POINT_SIZE_RANGE",t[t.ALIASED_LINE_WIDTH_RANGE=33902]="ALIASED_LINE_WIDTH_RANGE",t[t.CULL_FACE_MODE=2885]="CULL_FACE_MODE",t[t.FRONT_FACE=2886]="FRONT_FACE",t[t.DEPTH_RANGE=2928]="DEPTH_RANGE",t[t.DEPTH_WRITEMASK=2930]="DEPTH_WRITEMASK",t[t.DEPTH_CLEAR_VALUE=2931]="DEPTH_CLEAR_VALUE",t[t.DEPTH_FUNC=2932]="DEPTH_FUNC",t[t.STENCIL_CLEAR_VALUE=2961]="STENCIL_CLEAR_VALUE",t[t.STENCIL_FUNC=2962]="STENCIL_FUNC",t[t.STENCIL_FAIL=2964]="STENCIL_FAIL",t[t.STENCIL_PASS_DEPTH_FAIL=2965]="STENCIL_PASS_DEPTH_FAIL",t[t.STENCIL_PASS_DEPTH_PASS=2966]="STENCIL_PASS_DEPTH_PASS",t[t.STENCIL_REF=2967]="STENCIL_REF",t[t.STENCIL_VALUE_MASK=2963]="STENCIL_VALUE_MASK",t[t.STENCIL_WRITEMASK=2968]="STENCIL_WRITEMASK",t[t.STENCIL_BACK_FUNC=34816]="STENCIL_BACK_FUNC",t[t.STENCIL_BACK_FAIL=34817]="STENCIL_BACK_FAIL",t[t.STENCIL_BACK_PASS_DEPTH_FAIL=34818]="STENCIL_BACK_PASS_DEPTH_FAIL",t[t.STENCIL_BACK_PASS_DEPTH_PASS=34819]="STENCIL_BACK_PASS_DEPTH_PASS",t[t.STENCIL_BACK_REF=36003]="STENCIL_BACK_REF",t[t.STENCIL_BACK_VALUE_MASK=36004]="STENCIL_BACK_VALUE_MASK",t[t.STENCIL_BACK_WRITEMASK=36005]="STENCIL_BACK_WRITEMASK",t[t.VIEWPORT=2978]="VIEWPORT",t[t.SCISSOR_BOX=3088]="SCISSOR_BOX",t[t.COLOR_CLEAR_VALUE=3106]="COLOR_CLEAR_VALUE",t[t.COLOR_WRITEMASK=3107]="COLOR_WRITEMASK",t[t.UNPACK_ALIGNMENT=3317]="UNPACK_ALIGNMENT",t[t.PACK_ALIGNMENT=3333]="PACK_ALIGNMENT",t[t.MAX_TEXTURE_SIZE=3379]="MAX_TEXTURE_SIZE",t[t.MAX_VIEWPORT_DIMS=3386]="MAX_VIEWPORT_DIMS",t[t.SUBPIXEL_BITS=3408]="SUBPIXEL_BITS",t[t.RED_BITS=3410]="RED_BITS",t[t.GREEN_BITS=3411]="GREEN_BITS",t[t.BLUE_BITS=3412]="BLUE_BITS",t[t.ALPHA_BITS=3413]="ALPHA_BITS",t[t.DEPTH_BITS=3414]="DEPTH_BITS",t[t.STENCIL_BITS=3415]="STENCIL_BITS",t[t.POLYGON_OFFSET_UNITS=10752]="POLYGON_OFFSET_UNITS",t[t.POLYGON_OFFSET_FACTOR=32824]="POLYGON_OFFSET_FACTOR",t[t.TEXTURE_BINDING_2D=32873]="TEXTURE_BINDING_2D",t[t.SAMPLE_BUFFERS=32936]="SAMPLE_BUFFERS",t[t.SAMPLES=32937]="SAMPLES",t[t.SAMPLE_COVERAGE_VALUE=32938]="SAMPLE_COVERAGE_VALUE",t[t.SAMPLE_COVERAGE_INVERT=32939]="SAMPLE_COVERAGE_INVERT",t[t.COMPRESSED_TEXTURE_FORMATS=34467]="COMPRESSED_TEXTURE_FORMATS",t[t.DONT_CARE=4352]="DONT_CARE",t[t.FASTEST=4353]="FASTEST",t[t.NICEST=4354]="NICEST",t[t.GENERATE_MIPMAP_HINT=33170]="GENERATE_MIPMAP_HINT",t[t.BYTE=5120]="BYTE",t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.SHORT=5122]="SHORT",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.INT=5124]="INT",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.FLOAT=5126]="FLOAT",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.ALPHA=6406]="ALPHA",t[t.RGB=6407]="RGB",t[t.RGBA=6408]="RGBA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",t[t.VERTEX_SHADER=35633]="VERTEX_SHADER",t[t.MAX_VERTEX_ATTRIBS=34921]="MAX_VERTEX_ATTRIBS",t[t.MAX_VERTEX_UNIFORM_VECTORS=36347]="MAX_VERTEX_UNIFORM_VECTORS",t[t.MAX_VARYING_VECTORS=36348]="MAX_VARYING_VECTORS",t[t.MAX_COMBINED_TEXTURE_IMAGE_UNITS=35661]="MAX_COMBINED_TEXTURE_IMAGE_UNITS",t[t.MAX_VERTEX_TEXTURE_IMAGE_UNITS=35660]="MAX_VERTEX_TEXTURE_IMAGE_UNITS",t[t.MAX_TEXTURE_IMAGE_UNITS=34930]="MAX_TEXTURE_IMAGE_UNITS",t[t.MAX_FRAGMENT_UNIFORM_VECTORS=36349]="MAX_FRAGMENT_UNIFORM_VECTORS",t[t.SHADER_TYPE=35663]="SHADER_TYPE",t[t.DELETE_STATUS=35712]="DELETE_STATUS",t[t.LINK_STATUS=35714]="LINK_STATUS",t[t.VALIDATE_STATUS=35715]="VALIDATE_STATUS",t[t.ATTACHED_SHADERS=35717]="ATTACHED_SHADERS",t[t.ACTIVE_UNIFORMS=35718]="ACTIVE_UNIFORMS",t[t.ACTIVE_ATTRIBUTES=35721]="ACTIVE_ATTRIBUTES",t[t.SHADING_LANGUAGE_VERSION=35724]="SHADING_LANGUAGE_VERSION",t[t.CURRENT_PROGRAM=35725]="CURRENT_PROGRAM",t[t.NEVER=512]="NEVER",t[t.LESS=513]="LESS",t[t.EQUAL=514]="EQUAL",t[t.LEQUAL=515]="LEQUAL",t[t.GREATER=516]="GREATER",t[t.NOTEQUAL=517]="NOTEQUAL",t[t.GEQUAL=518]="GEQUAL",t[t.ALWAYS=519]="ALWAYS",t[t.KEEP=7680]="KEEP",t[t.REPLACE=7681]="REPLACE",t[t.INCR=7682]="INCR",t[t.DECR=7683]="DECR",t[t.INVERT=5386]="INVERT",t[t.INCR_WRAP=34055]="INCR_WRAP",t[t.DECR_WRAP=34056]="DECR_WRAP",t[t.VENDOR=7936]="VENDOR",t[t.RENDERER=7937]="RENDERER",t[t.VERSION=7938]="VERSION",t[t.NEAREST=9728]="NEAREST",t[t.LINEAR=9729]="LINEAR",t[t.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",t[t.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",t[t.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",t[t.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR",t[t.TEXTURE_MAG_FILTER=10240]="TEXTURE_MAG_FILTER",t[t.TEXTURE_MIN_FILTER=10241]="TEXTURE_MIN_FILTER",t[t.TEXTURE_WRAP_S=10242]="TEXTURE_WRAP_S",t[t.TEXTURE_WRAP_T=10243]="TEXTURE_WRAP_T",t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE=5890]="TEXTURE",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_BINDING_CUBE_MAP=34068]="TEXTURE_BINDING_CUBE_MAP",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",t[t.MAX_CUBE_MAP_TEXTURE_SIZE=34076]="MAX_CUBE_MAP_TEXTURE_SIZE",t[t.TEXTURE0=33984]="TEXTURE0",t[t.TEXTURE1=33985]="TEXTURE1",t[t.TEXTURE2=33986]="TEXTURE2",t[t.TEXTURE3=33987]="TEXTURE3",t[t.TEXTURE4=33988]="TEXTURE4",t[t.TEXTURE5=33989]="TEXTURE5",t[t.TEXTURE6=33990]="TEXTURE6",t[t.TEXTURE7=33991]="TEXTURE7",t[t.TEXTURE8=33992]="TEXTURE8",t[t.TEXTURE9=33993]="TEXTURE9",t[t.TEXTURE10=33994]="TEXTURE10",t[t.TEXTURE11=33995]="TEXTURE11",t[t.TEXTURE12=33996]="TEXTURE12",t[t.TEXTURE13=33997]="TEXTURE13",t[t.TEXTURE14=33998]="TEXTURE14",t[t.TEXTURE15=33999]="TEXTURE15",t[t.TEXTURE16=34e3]="TEXTURE16",t[t.TEXTURE17=34001]="TEXTURE17",t[t.TEXTURE18=34002]="TEXTURE18",t[t.TEXTURE19=34003]="TEXTURE19",t[t.TEXTURE20=34004]="TEXTURE20",t[t.TEXTURE21=34005]="TEXTURE21",t[t.TEXTURE22=34006]="TEXTURE22",t[t.TEXTURE23=34007]="TEXTURE23",t[t.TEXTURE24=34008]="TEXTURE24",t[t.TEXTURE25=34009]="TEXTURE25",t[t.TEXTURE26=34010]="TEXTURE26",t[t.TEXTURE27=34011]="TEXTURE27",t[t.TEXTURE28=34012]="TEXTURE28",t[t.TEXTURE29=34013]="TEXTURE29",t[t.TEXTURE30=34014]="TEXTURE30",t[t.TEXTURE31=34015]="TEXTURE31",t[t.ACTIVE_TEXTURE=34016]="ACTIVE_TEXTURE",t[t.REPEAT=10497]="REPEAT",t[t.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",t[t.FLOAT_VEC2=35664]="FLOAT_VEC2",t[t.FLOAT_VEC3=35665]="FLOAT_VEC3",t[t.FLOAT_VEC4=35666]="FLOAT_VEC4",t[t.INT_VEC2=35667]="INT_VEC2",t[t.INT_VEC3=35668]="INT_VEC3",t[t.INT_VEC4=35669]="INT_VEC4",t[t.BOOL=35670]="BOOL",t[t.BOOL_VEC2=35671]="BOOL_VEC2",t[t.BOOL_VEC3=35672]="BOOL_VEC3",t[t.BOOL_VEC4=35673]="BOOL_VEC4",t[t.FLOAT_MAT2=35674]="FLOAT_MAT2",t[t.FLOAT_MAT3=35675]="FLOAT_MAT3",t[t.FLOAT_MAT4=35676]="FLOAT_MAT4",t[t.SAMPLER_2D=35678]="SAMPLER_2D",t[t.SAMPLER_CUBE=35680]="SAMPLER_CUBE",t[t.VERTEX_ATTRIB_ARRAY_ENABLED=34338]="VERTEX_ATTRIB_ARRAY_ENABLED",t[t.VERTEX_ATTRIB_ARRAY_SIZE=34339]="VERTEX_ATTRIB_ARRAY_SIZE",t[t.VERTEX_ATTRIB_ARRAY_STRIDE=34340]="VERTEX_ATTRIB_ARRAY_STRIDE",t[t.VERTEX_ATTRIB_ARRAY_TYPE=34341]="VERTEX_ATTRIB_ARRAY_TYPE",t[t.VERTEX_ATTRIB_ARRAY_NORMALIZED=34922]="VERTEX_ATTRIB_ARRAY_NORMALIZED",t[t.VERTEX_ATTRIB_ARRAY_POINTER=34373]="VERTEX_ATTRIB_ARRAY_POINTER",t[t.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING=34975]="VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",t[t.COMPILE_STATUS=35713]="COMPILE_STATUS",t[t.LOW_FLOAT=36336]="LOW_FLOAT",t[t.MEDIUM_FLOAT=36337]="MEDIUM_FLOAT",t[t.HIGH_FLOAT=36338]="HIGH_FLOAT",t[t.LOW_INT=36339]="LOW_INT",t[t.MEDIUM_INT=36340]="MEDIUM_INT",t[t.HIGH_INT=36341]="HIGH_INT",t[t.FRAMEBUFFER=36160]="FRAMEBUFFER",t[t.RENDERBUFFER=36161]="RENDERBUFFER",t[t.RGBA4=32854]="RGBA4",t[t.RGB5_A1=32855]="RGB5_A1",t[t.RGB565=36194]="RGB565",t[t.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",t[t.STENCIL_INDEX=6401]="STENCIL_INDEX",t[t.STENCIL_INDEX8=36168]="STENCIL_INDEX8",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL",t[t.RENDERBUFFER_WIDTH=36162]="RENDERBUFFER_WIDTH",t[t.RENDERBUFFER_HEIGHT=36163]="RENDERBUFFER_HEIGHT",t[t.RENDERBUFFER_INTERNAL_FORMAT=36164]="RENDERBUFFER_INTERNAL_FORMAT",t[t.RENDERBUFFER_RED_SIZE=36176]="RENDERBUFFER_RED_SIZE",t[t.RENDERBUFFER_GREEN_SIZE=36177]="RENDERBUFFER_GREEN_SIZE",t[t.RENDERBUFFER_BLUE_SIZE=36178]="RENDERBUFFER_BLUE_SIZE",t[t.RENDERBUFFER_ALPHA_SIZE=36179]="RENDERBUFFER_ALPHA_SIZE",t[t.RENDERBUFFER_DEPTH_SIZE=36180]="RENDERBUFFER_DEPTH_SIZE",t[t.RENDERBUFFER_STENCIL_SIZE=36181]="RENDERBUFFER_STENCIL_SIZE",t[t.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE=36048]="FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",t[t.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME=36049]="FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",t[t.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL=36050]="FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",t[t.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE=36051]="FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",t[t.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",t[t.DEPTH_ATTACHMENT=36096]="DEPTH_ATTACHMENT",t[t.STENCIL_ATTACHMENT=36128]="STENCIL_ATTACHMENT",t[t.DEPTH_STENCIL_ATTACHMENT=33306]="DEPTH_STENCIL_ATTACHMENT",t[t.NONE=0]="NONE",t[t.FRAMEBUFFER_COMPLETE=36053]="FRAMEBUFFER_COMPLETE",t[t.FRAMEBUFFER_INCOMPLETE_ATTACHMENT=36054]="FRAMEBUFFER_INCOMPLETE_ATTACHMENT",t[t.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT=36055]="FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",t[t.FRAMEBUFFER_INCOMPLETE_DIMENSIONS=36057]="FRAMEBUFFER_INCOMPLETE_DIMENSIONS",t[t.FRAMEBUFFER_UNSUPPORTED=36061]="FRAMEBUFFER_UNSUPPORTED",t[t.FRAMEBUFFER_BINDING=36006]="FRAMEBUFFER_BINDING",t[t.RENDERBUFFER_BINDING=36007]="RENDERBUFFER_BINDING",t[t.MAX_RENDERBUFFER_SIZE=34024]="MAX_RENDERBUFFER_SIZE",t[t.INVALID_FRAMEBUFFER_OPERATION=1286]="INVALID_FRAMEBUFFER_OPERATION",t[t.UNPACK_FLIP_Y_WEBGL=37440]="UNPACK_FLIP_Y_WEBGL",t[t.UNPACK_PREMULTIPLY_ALPHA_WEBGL=37441]="UNPACK_PREMULTIPLY_ALPHA_WEBGL",t[t.CONTEXT_LOST_WEBGL=37442]="CONTEXT_LOST_WEBGL",t[t.UNPACK_COLORSPACE_CONVERSION_WEBGL=37443]="UNPACK_COLORSPACE_CONVERSION_WEBGL",t[t.BROWSER_DEFAULT_WEBGL=37444]="BROWSER_DEFAULT_WEBGL",t[t.COPY_SRC=1]="COPY_SRC",t[t.COPY_DST=2]="COPY_DST",t[t.SAMPLED=4]="SAMPLED",t[t.STORAGE=8]="STORAGE",t[t.RENDER_ATTACHMENT=16]="RENDER_ATTACHMENT"}(r||(r={}))},function(t,e,n){"use strict";var r=n(27),i=n(44).Graph;function o(t,e,n,i){var o;do{o=r.uniqueId(i)}while(t.hasNode(o));return n.dummy=e,t.setNode(o,n),o}function a(t){return r.max(r.map(t.nodes(),(function(e){var n=t.node(e).rank;if(!r.isUndefined(n))return n})))}t.exports={addDummyNode:o,simplify:function(t){var e=(new i).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})})),e},asNonCompoundGraph:function(t){var e=new i({multigraph:t.isMultigraph()}).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){t.children(n).length||e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){e.setEdge(n,t.edge(n))})),e},successorWeights:function(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.outEdges(e),(function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.inEdges(e),(function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)},intersectRect:function(t,e){var n,r,i=t.x,o=t.y,a=e.x-i,s=e.y-o,u=t.width/2,c=t.height/2;if(!a&&!s)throw new Error("Not possible to find intersection inside of the rectangle");Math.abs(s)*u>Math.abs(a)*c?(s<0&&(c=-c),n=c*a/s,r=c):(a<0&&(u=-u),n=u,r=u*s/a);return{x:i+n,y:o+r}},buildLayerMatrix:function(t){var e=r.map(r.range(a(t)+1),(function(){return[]}));return r.forEach(t.nodes(),(function(n){var i=t.node(n),o=i.rank;r.isUndefined(o)||(e[o][i.order]=n)})),e},normalizeRanks:function(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank})));r.forEach(t.nodes(),(function(n){var i=t.node(n);r.has(i,"rank")&&(i.rank-=e)}))},removeEmptyRanks:function(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank}))),n=[];r.forEach(t.nodes(),(function(r){var i=t.node(r).rank-e;n[i]||(n[i]=[]),n[i].push(r)}));var i=0,o=t.graph().nodeRankFactor;r.forEach(n,(function(e,n){r.isUndefined(e)&&n%o!=0?--i:i&&r.forEach(e,(function(e){t.node(e).rank+=i}))}))},addBorderNode:function(t,e,n,r){var i={width:0,height:0};arguments.length>=4&&(i.rank=n,i.order=r);return o(t,"border",i,e)},maxRank:a,partition:function(t,e){var n={lhs:[],rhs:[]};return r.forEach(t,(function(t){e(t)?n.lhs.push(t):n.rhs.push(t)})),n},time:function(t,e){var n=r.now();try{return e()}finally{console.log(t+" time: "+(r.now()-n)+"ms")}},notime:function(t,e){return e()}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return p})),n.d(e,"d",(function(){return w}));var r=n(0),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,o=/[^\\s\\,]+/gi;var a=function(t){var e=t||[];return Object(r.m)(e)?e:Object(r.x)(e)?(e=e.match(i),Object(r.f)(e,(function(t,n){if((t=t.match(o))[0].length>1){var i=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=i}Object(r.f)(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0};function s(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var o=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?o[3]={x:+t[0],y:+t[1]}:i-2===r&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?o[3]=o[2]:r||(o[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n}var u="\\t\\n\\v\\f\\r Â áš€á Žâ€€â€â€‚         âŸã€€\\u2028\\u2029",c=new RegExp("([a-z])["+u+",]*((-?\\\\d*\\\\.?\\\\d*(?:e[\\\\-+]?\\\\d+)?["+u+"]*,?["+u+"]*)+)","ig"),f=new RegExp("(-?\\\\d*\\\\.?\\\\d*(?:e[\\\\-+]?\\\\d+)?)["+u+"]*,?["+u+"]*","ig");function l(t){if(!t)return null;if(Object(r.m)(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(c,(function(t,r,i){var o=[],a=r.toLowerCase();if(i.replace(f,(function(t,e){e&&o.push(+e)})),"m"===a&&o.length>2&&(n.push([r].concat(o.splice(0,2))),a="l",r="m"===r?"l":"L"),"o"===a&&1===o.length&&n.push([r,o[0]]),"r"===a)n.push([r].concat(o));else for(;o.length>=e[a]&&(n.push([r].concat(o.splice(0,e[a]))),e[a]););return""})),n}var h=/[a-z]/;function d(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function p(t){var e=l(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,r=0;r<e.length;r++){var i=e[r][0];if(h.test(i)||["V","H","T","S"].indexOf(i)>=0){n=!0;break}}if(!n)return e;var o=[],a=0,s=0,u=0,c=0,f=0,p=e[0];"M"!==p[0]&&"m"!==p[0]||(u=a=+p[1],c=s=+p[2],f++,o[0]=["M",a,s]);r=f;for(var g=e.length;r<g;r++){var v=e[r],y=o[r-1],m=[],b=(i=v[0]).toUpperCase();if(i!==b)switch(m[0]=b,b){case"A":m[1]=v[1],m[2]=v[2],m[3]=v[3],m[4]=v[4],m[5]=v[5],m[6]=+v[6]+a,m[7]=+v[7]+s;break;case"V":m[1]=+v[1]+s;break;case"H":m[1]=+v[1]+a;break;case"M":u=+v[1]+a,c=+v[2]+s;break;default:for(var x=1,w=v.length;x<w;x++)m[x]=+v[x]+(x%2?a:s)}else m=e[r];switch(b){case"Z":a=+u,s=+c;break;case"H":m=["L",a=m[1],s];break;case"V":m=["L",a,s=m[1]];break;case"T":a=m[1],s=m[2];var S=d([y[1],y[2]],[y[3],y[4]]);m=["Q",S[0],S[1],a,s];break;case"S":a=m[m.length-2],s=m[m.length-1];var E=y.length,_=d([y[E-4],y[E-3]],[y[E-2],y[E-1]]);m=["C",_[0],_[1],m[1],m[2],a,s];break;case"M":u=m[m.length-2],c=m[m.length-1];break;default:a=m[m.length-2],s=m[m.length-1]}o.push(m)}return o}function g(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function v(t,e){return g(t)*g(e)?(t[0]*e[0]+t[1]*e[1])/(g(t)*g(e)):1}function y(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(v(t,e))}function m(t,e){return t[0]===e[0]&&t[1]===e[1]}function b(t,e){var n=e[1],i=e[2],o=Object(r.B)(Object(r.G)(e[3]),2*Math.PI),a=e[4],s=e[5],u=t[0],c=t[1],f=e[6],l=e[7],h=Math.cos(o)*(u-f)/2+Math.sin(o)*(c-l)/2,d=-1*Math.sin(o)*(u-f)/2+Math.cos(o)*(c-l)/2,p=h*h/(n*n)+d*d/(i*i);p>1&&(n*=Math.sqrt(p),i*=Math.sqrt(p));var g=n*n*(d*d)+i*i*(h*h),b=g?Math.sqrt((n*n*(i*i)-g)/g):1;a===s&&(b*=-1),isNaN(b)&&(b=0);var x=i?b*n*d/i:0,w=n?b*-i*h/n:0,S=(u+f)/2+Math.cos(o)*x-Math.sin(o)*w,E=(c+l)/2+Math.sin(o)*x+Math.cos(o)*w,_=[(h-x)/n,(d-w)/i],O=[(-1*h-x)/n,(-1*d-w)/i],k=y([1,0],_),M=y(_,O);return v(_,O)<=-1&&(M=Math.PI),v(_,O)>=1&&(M=0),0===s&&M>0&&(M-=2*Math.PI),1===s&&M<0&&(M+=2*Math.PI),{cx:S,cy:E,rx:m(t,[f,l])?0:n,ry:m(t,[f,l])?0:i,startAngle:k,endAngle:k+M,xRotation:o,arcFlag:a,sweepFlag:s}}function x(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function w(t){for(var e=[],n=null,r=null,i=null,o=0,s=(t=a(t)).length,u=0;u<s;u++){var c=t[u];r=t[u+1];var f=c[0],l={command:f,prePoint:n,params:c,startTangent:null,endTangent:null};switch(f){case"M":i=[c[1],c[2]],o=u;break;case"A":var h=b(n,c);l.arcParams=h}if("Z"===f)n=i,r=t[o+1];else{var d=c.length;n=[c[d-2],c[d-1]]}r&&"Z"===r[0]&&(r=t[o],e[o]&&(e[o].prePoint=n)),l.currentPoint=n,e[o]&&m(n,e[o].currentPoint)&&(e[o].prePoint=l.prePoint);var p=r?[r[r.length-2],r[r.length-1]]:null;l.nextPoint=p;var g=l.prePoint;if(["L","H","V"].includes(f))l.startTangent=[g[0]-n[0],g[1]-n[1]],l.endTangent=[n[0]-g[0],n[1]-g[1]];else if("Q"===f){var v=[c[1],c[2]];l.startTangent=[g[0]-v[0],g[1]-v[1]],l.endTangent=[n[0]-v[0],n[1]-v[1]]}else if("T"===f){v=x((S=e[u-1]).currentPoint,g);"Q"===S.command?(l.command="Q",l.startTangent=[g[0]-v[0],g[1]-v[1]],l.endTangent=[n[0]-v[0],n[1]-v[1]]):(l.command="TL",l.startTangent=[g[0]-n[0],g[1]-n[1]],l.endTangent=[n[0]-g[0],n[1]-g[1]])}else if("C"===f){var y=[c[1],c[2]],w=[c[3],c[4]];l.startTangent=[g[0]-y[0],g[1]-y[1]],l.endTangent=[n[0]-w[0],n[1]-w[1]]}else if("S"===f){var S;y=x((S=e[u-1]).currentPoint,g),w=[c[1],c[2]];"C"===S.command?(l.command="C",l.startTangent=[g[0]-y[0],g[1]-y[1]],l.endTangent=[n[0]-w[0],n[1]-w[1]]):(l.command="SQ",l.startTangent=[g[0]-w[0],g[1]-w[1]],l.endTangent=[n[0]-w[0],n[1]-w[1]])}else if("A"===f){var E=.001,_=l.arcParams||{},O=_.cx,k=void 0===O?0:O,M=_.cy,A=void 0===M?0:M,T=_.rx,C=void 0===T?0:T,I=_.ry,P=void 0===I?0:I,j=_.sweepFlag,D=void 0===j?0:j,N=_.startAngle,R=void 0===N?0:N,L=_.endAngle,B=void 0===L?0:L;0===D&&(E*=-1);var G=C*Math.cos(R-E)+k,F=P*Math.sin(R-E)+A;l.startTangent=[G-i[0],F-i[1]];var U=C*Math.cos(R+B+E)+k,z=P*Math.sin(R+B-E)+A;l.endTangent=[g[0]-U,g[1]-z]}e.push(l)}return e}},function(t,e,n){"use strict";function r(t,e){var n=[],r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],c=t[6],f=t[7],l=t[8],h=e[0],d=e[1],p=e[2],g=e[3],v=e[4],y=e[5],m=e[6],b=e[7],x=e[8];return n[0]=h*r+d*a+p*c,n[1]=h*i+d*s+p*f,n[2]=h*o+d*u+p*l,n[3]=g*r+v*a+y*c,n[4]=g*i+v*s+y*f,n[5]=g*o+v*u+y*l,n[6]=m*r+b*a+x*c,n[7]=m*i+b*s+x*f,n[8]=m*o+b*u+x*l,n}function i(t,e){var n=[],r=e[0],i=e[1];return n[0]=t[0]*r+t[3]*i+t[6],n[1]=t[1]*r+t[4]*i+t[7],n}function o(t){var e=[],n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],u=t[6],c=t[7],f=t[8],l=f*a-s*c,h=-f*o+s*u,d=c*o-a*u,p=n*l+r*h+i*d;return p?(p=1/p,e[0]=l*p,e[1]=(-f*r+i*c)*p,e[2]=(s*r-i*a)*p,e[3]=h*p,e[4]=(f*n-i*u)*p,e[5]=(-s*n+i*o)*p,e[6]=d*p,e[7]=(-c*n+r*u)*p,e[8]=(a*n-r*o)*p,e):null}n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o}))},function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return i})),n.d(e,"clone",(function(){return o})),n.d(e,"length",(function(){return a})),n.d(e,"fromValues",(function(){return s})),n.d(e,"copy",(function(){return u})),n.d(e,"set",(function(){return c})),n.d(e,"add",(function(){return f})),n.d(e,"subtract",(function(){return l})),n.d(e,"multiply",(function(){return h})),n.d(e,"divide",(function(){return d})),n.d(e,"ceil",(function(){return p})),n.d(e,"floor",(function(){return g})),n.d(e,"min",(function(){return v})),n.d(e,"max",(function(){return y})),n.d(e,"round",(function(){return m})),n.d(e,"scale",(function(){return b})),n.d(e,"scaleAndAdd",(function(){return x})),n.d(e,"distance",(function(){return w})),n.d(e,"squaredDistance",(function(){return S})),n.d(e,"squaredLength",(function(){return E})),n.d(e,"negate",(function(){return _})),n.d(e,"inverse",(function(){return O})),n.d(e,"normalize",(function(){return k})),n.d(e,"dot",(function(){return M})),n.d(e,"cross",(function(){return A})),n.d(e,"lerp",(function(){return T})),n.d(e,"hermite",(function(){return C})),n.d(e,"bezier",(function(){return I})),n.d(e,"random",(function(){return P})),n.d(e,"transformMat4",(function(){return j})),n.d(e,"transformMat3",(function(){return D})),n.d(e,"transformQuat",(function(){return N})),n.d(e,"rotateX",(function(){return R})),n.d(e,"rotateY",(function(){return L})),n.d(e,"rotateZ",(function(){return B})),n.d(e,"angle",(function(){return G})),n.d(e,"zero",(function(){return F})),n.d(e,"str",(function(){return U})),n.d(e,"exactEquals",(function(){return z})),n.d(e,"equals",(function(){return V})),n.d(e,"sub",(function(){return X})),n.d(e,"mul",(function(){return Y})),n.d(e,"div",(function(){return H})),n.d(e,"dist",(function(){return q})),n.d(e,"sqrDist",(function(){return K})),n.d(e,"len",(function(){return Z})),n.d(e,"sqrLen",(function(){return Q})),n.d(e,"forEach",(function(){return J}));var r=n(12);function i(){var t=new r.a(3);return r.a!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function o(t){var e=new r.a(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(t){var e=t[0],n=t[1],r=t[2];return Math.hypot(e,n,r)}function s(t,e,n){var i=new r.a(3);return i[0]=t,i[1]=e,i[2]=n,i}function u(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function c(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function f(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function l(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function h(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function d(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function p(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}function g(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}function v(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function y(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function m(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}function b(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function x(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function w(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.hypot(n,r,i)}function S(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function E(t){var e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function _(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function O(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function k(t,e){var n=e[0],r=e[1],i=e[2],o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o)),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o,t}function M(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function A(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[0],s=n[1],u=n[2];return t[0]=i*u-o*s,t[1]=o*a-r*u,t[2]=r*s-i*a,t}function T(t,e,n,r){var i=e[0],o=e[1],a=e[2];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=a+r*(n[2]-a),t}function C(t,e,n,r,i,o){var a=o*o,s=a*(2*o-3)+1,u=a*(o-2)+o,c=a*(o-1),f=a*(3-2*o);return t[0]=e[0]*s+n[0]*u+r[0]*c+i[0]*f,t[1]=e[1]*s+n[1]*u+r[1]*c+i[1]*f,t[2]=e[2]*s+n[2]*u+r[2]*c+i[2]*f,t}function I(t,e,n,r,i,o){var a=1-o,s=a*a,u=o*o,c=s*a,f=3*o*s,l=3*u*a,h=u*o;return t[0]=e[0]*c+n[0]*f+r[0]*l+i[0]*h,t[1]=e[1]*c+n[1]*f+r[1]*l+i[1]*h,t[2]=e[2]*c+n[2]*f+r[2]*l+i[2]*h,t}function P(t,e){e=e||1;var n=2*r.c()*Math.PI,i=2*r.c()-1,o=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(n)*o,t[1]=Math.sin(n)*o,t[2]=i*e,t}function j(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[3]*r+n[7]*i+n[11]*o+n[15];return a=a||1,t[0]=(n[0]*r+n[4]*i+n[8]*o+n[12])/a,t[1]=(n[1]*r+n[5]*i+n[9]*o+n[13])/a,t[2]=(n[2]*r+n[6]*i+n[10]*o+n[14])/a,t}function D(t,e,n){var r=e[0],i=e[1],o=e[2];return t[0]=r*n[0]+i*n[3]+o*n[6],t[1]=r*n[1]+i*n[4]+o*n[7],t[2]=r*n[2]+i*n[5]+o*n[8],t}function N(t,e,n){var r=n[0],i=n[1],o=n[2],a=n[3],s=e[0],u=e[1],c=e[2],f=i*c-o*u,l=o*s-r*c,h=r*u-i*s,d=i*h-o*l,p=o*f-r*h,g=r*l-i*f,v=2*a;return f*=v,l*=v,h*=v,d*=2,p*=2,g*=2,t[0]=s+f+d,t[1]=u+l+p,t[2]=c+h+g,t}function R(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function L(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function B(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function G(t,e){var n=t[0],r=t[1],i=t[2],o=e[0],a=e[1],s=e[2],u=Math.sqrt(n*n+r*r+i*i)*Math.sqrt(o*o+a*a+s*s),c=u&&M(t,e)/u;return Math.acos(Math.min(Math.max(c,-1),1))}function F(t){return t[0]=0,t[1]=0,t[2]=0,t}function U(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function z(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function V(t,e){var n=t[0],i=t[1],o=t[2],a=e[0],s=e[1],u=e[2];return Math.abs(n-a)<=r.b*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(i-s)<=r.b*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(o-u)<=r.b*Math.max(1,Math.abs(o),Math.abs(u))}var W,X=l,Y=h,H=d,q=w,K=S,Z=a,Q=E,J=(W=i(),function(t,e,n,r,i,o){var a,s;for(e||(e=3),n||(n=0),s=r?Math.min(r*e+n,t.length):t.length,a=n;a<s;a+=e)W[0]=t[a],W[1]=t[a+1],W[2]=t[a+2],i(W,W,o),t[a]=W[0],t[a+1]=W[1],t[a+2]=W[2];return t})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.STACK_OVERFLOW=e.CIRCULAR_DEPENDENCY_IN_FACTORY=e.POST_CONSTRUCT_ERROR=e.MULTIPLE_POST_CONSTRUCT_METHODS=e.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK=e.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE=e.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE=e.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT=e.ARGUMENTS_LENGTH_MISMATCH=e.INVALID_DECORATOR_OPERATION=e.INVALID_TO_SELF_VALUE=e.INVALID_FUNCTION_BINDING=e.INVALID_MIDDLEWARE_RETURN=e.NO_MORE_SNAPSHOTS_AVAILABLE=e.INVALID_BINDING_TYPE=e.NOT_IMPLEMENTED=e.CIRCULAR_DEPENDENCY=e.UNDEFINED_INJECT_ANNOTATION=e.MISSING_INJECT_ANNOTATION=e.MISSING_INJECTABLE_ANNOTATION=e.NOT_REGISTERED=e.CANNOT_UNBIND=e.AMBIGUOUS_MATCH=e.KEY_NOT_FOUND=e.NULL_ARGUMENT=e.DUPLICATED_METADATA=e.DUPLICATED_INJECTABLE_DECORATOR=void 0,e.DUPLICATED_INJECTABLE_DECORATOR="Cannot apply @injectable decorator multiple times.",e.DUPLICATED_METADATA="Metadata key was used more than once in a parameter:",e.NULL_ARGUMENT="NULL argument",e.KEY_NOT_FOUND="Key Not Found",e.AMBIGUOUS_MATCH="Ambiguous match found for serviceIdentifier:",e.CANNOT_UNBIND="Could not unbind serviceIdentifier:",e.NOT_REGISTERED="No matching bindings found for serviceIdentifier:",e.MISSING_INJECTABLE_ANNOTATION="Missing required @injectable annotation in:",e.MISSING_INJECT_ANNOTATION="Missing required @inject or @multiInject annotation in:",e.UNDEFINED_INJECT_ANNOTATION=function(t){return"@inject called with undefined this could mean that the class "+t+" has a circular dependency problem. You can use a LazyServiceIdentifer to overcome this limitation."},e.CIRCULAR_DEPENDENCY="Circular dependency found:",e.NOT_IMPLEMENTED="Sorry, this feature is not fully implemented yet.",e.INVALID_BINDING_TYPE="Invalid binding type:",e.NO_MORE_SNAPSHOTS_AVAILABLE="No snapshot available to restore.",e.INVALID_MIDDLEWARE_RETURN="Invalid return type in middleware. Middleware must return!",e.INVALID_FUNCTION_BINDING="Value provided to function binding must be a function!",e.INVALID_TO_SELF_VALUE="The toSelf function can only be applied when a constructor is used as service identifier",e.INVALID_DECORATOR_OPERATION="The @inject @multiInject @tagged and @named decorators must be applied to the parameters of a class constructor or a class property.",e.ARGUMENTS_LENGTH_MISMATCH=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"The number of constructor arguments in the derived class "+t[0]+" must be >= than the number of constructor arguments of its base class."},e.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT="Invalid Container constructor argument. Container options must be an object.",e.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE="Invalid Container option. Default scope must be a string (\'singleton\' or \'transient\').",e.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE="Invalid Container option. Auto bind injectable must be a boolean",e.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK="Invalid Container option. Skip base check must be a boolean",e.MULTIPLE_POST_CONSTRUCT_METHODS="Cannot apply @postConstruct decorator multiple times in the same class",e.POST_CONSTRUCT_ERROR=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"@postConstruct error in class "+t[0]+": "+t[1]},e.CIRCULAR_DEPENDENCY_IN_FACTORY=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"It looks like there is a circular dependency in one of the \'"+t[0]+"\' bindings. Please investigate bindings withservice identifier \'"+t[1]+"\'."},e.STACK_OVERFLOW="Maximum call stack size exceeded"},function(t,e,n){var r;try{r={clone:n(290),constant:n(152),each:n(196),filter:n(199),has:n(210),isArray:n(29),isEmpty:n(366),isFunction:n(86),isUndefined:n(211),keys:n(60),map:n(212),reduce:n(214),size:n(369),transform:n(375),union:n(376),values:n(220)}}catch(t){}r||(r=window._),t.exports=r},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){var e=n(t);return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var r;try{r=n(288)}catch(t){}r||(r=window.graphlib),t.exports=r},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=n(178),o="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,a=i||o||Function("return this")();t.exports=a},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){return null!=t&&"object"==n(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Metadata=void 0;var r=n(31),i=function(){function t(t,e){this.key=t,this.value=e}return t.prototype.toString=function(){return this.key===r.NAMED_TAG?"named: "+this.value.toString()+" ":"tagged: { key:"+this.key.toString()+", value: "+this.value+" }"},t}();e.Metadata=i},function(t,e){},function(t,e,n){var r=n(59),i=n(46);t.exports=function(t){return"number"==typeof t||i(t)&&"[object Number]"==r(t)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return X}));var r,i,o,a,s,u,c,f,l,h,d,p,g,v,y,m,b,x,w,S,E,_,O,k,M=n(9),A=n.n(M),T=n(14),C=n.n(T),I=n(10),P=n.n(I),j=n(6),D=n.n(j),N=n(7),R=n.n(N),L=n(11),B=n.n(L),G=(n(28),n(2)),F=n(5),U=n(13),z=n(36);function V(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return W(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 W(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function W(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}var X=(r=Object(F.injectable)(),i=Object(F.inject)(U.a.MeshComponentManager),o=Object(F.inject)(U.a.GeometryComponentManager),a=Object(F.inject)(U.a.MaterialComponentManager),s=Object(F.inject)(U.a.CullableComponentManager),u=Object(F.inject)(U.a.TransformComponentManager),c=Object(F.inject)(U.a.HierarchyComponentManager),f=Object(F.inject)(U.a.Systems),l=Object(F.named)(U.a.FrameGraphSystem),h=Object(F.inject)(U.a.RenderEngine),d=Object(F.inject)(U.a.ResourcePool),r((k=O=function(){function t(){var e=this;D()(this,t),P()(this,"mesh",v,this),P()(this,"geometry",y,this),P()(this,"material",m,this),P()(this,"cullable",b,this),P()(this,"transform",x,this),P()(this,"hierarchy",w,this),P()(this,"frameGraphSystem",S,this),P()(this,"engine",E,this),P()(this,"resourcePool",_,this),this.modelCache={},this.setup=function(t,e,n){var r=t.createRenderTarget(e,"color buffer",{width:1,height:1,usage:z.a.RENDER_ATTACHMENT|z.a.SAMPLED|z.a.COPY_SRC});n.data={output:e.write(t,r)}},this.execute=function(){var t=C()(A.a.mark((function t(n,r,i){var o,a,s,u,c,f;return A.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:o=n.getResourceNode(r.data.output),a=e.resourcePool.getOrCreateResource(o.resource),s=V(i),t.prev=3,s.s();case 5:if((u=s.n()).done){t.next=11;break}return c=u.value,t.next=9,e.initView(c);case 9:t.next=5;break;case 11:t.next=16;break;case 13:t.prev=13,t.t0=t.catch(3),s.e(t.t0);case 16:return t.prev=16,s.f(),t.finish(16);case 19:f=e.engine.getCanvas(),a.resize({width:f.width,height:f.height}),e.engine.setScissor({enable:!1}),e.engine.clear({framebuffer:a,color:i[0].getClearColor(),depth:1}),e.engine.useFramebuffer(a,(function(){var t,n=V(i);try{for(n.s();!(t=n.n()).done;){var r=t.value;e.renderView(r)}}catch(t){n.e(t)}finally{n.f()}}));case 24:case"end":return t.stop()}}),t,null,[[3,13,16,19]])})));return function(e,n,r){return t.apply(this,arguments)}}()}var e,n;return R()(t,[{key:"renderView",value:function(t){var e=t.getScene(),n=t.getCamera(),r=n.getViewTransform(),i=G.b.multiply(G.b.create(),n.getPerspective(),r);n.getFrustum().extractFromVPMatrix(i);var o=t.getViewport(),a=o.x,s=o.y,u=o.width,c=o.height;this.engine.viewport({x:a,y:s,width:u,height:c});var f,l=V(e.getEntities());try{for(l.s();!(f=l.n()).done;){var h=f.value;this.renderMesh(h,{camera:n,view:t,viewMatrix:r})}}catch(t){l.e(t)}finally{l.f()}}},{key:"renderMesh",value:function(t,e){var n=e.camera,r=e.view,i=e.viewMatrix,o=this.mesh.getComponentByEntity(t);if(o&&o.visible){var a=o.material,s=o.geometry;if(s&&!s.dirty&&a){var u=this.transform.getComponentByEntity(t),c=G.b.multiply(G.b.create(),i,u.worldTransform),f=r.getViewport(),l=f.width,h=f.height;a.setUniform({projectionMatrix:n.getPerspective(),modelViewMatrix:c,modelMatrix:u.worldTransform,viewMatrix:i,cameraPosition:n.getPosition(),u_viewport:[l,h]}),o.model&&(o.model.draw({uniforms:a.uniforms.reduce((function(t,e){return t[e.name]=e.data,t}),{})}),a.uniforms.forEach((function(t){t.dirty=!1})),a.dirty=!1)}}}},{key:"initMesh",value:(n=C()(A.a.mark((function t(e,n){var r,i,o,a,s,u,c,f;return A.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=this.mesh.getComponentByEntity(e)){t.next=3;break}return t.abrupt("return");case 3:if(i=r.material,(o=r.geometry)&&!o.dirty&&i){t.next=7;break}return t.abrupt("return");case 7:if(r.model){t.next=24;break}if(a="m-".concat(i.entity,"-g-").concat(o.entity),!this.modelCache[a]){t.next=12;break}return r.model=this.modelCache[a],t.abrupt("return");case 12:return i.setUniform({projectionMatrix:1,modelViewMatrix:1,modelMatrix:1,viewMatrix:1,cameraPosition:1,u_viewport:1}),s=this.engine,u=s.createModel,c=s.createAttribute,f={vs:i.vertexShaderGLSL,fs:i.fragmentShaderGLSL,defines:i.defines,attributes:o.attributes.reduce((function(t,e){return e.data&&e.buffer&&(t[e.name]=c({buffer:e.buffer,attributes:e.attributes,arrayStride:e.arrayStride,stepMode:e.stepMode,divisor:"vertex"===e.stepMode?0:1})),t}),{}),uniforms:i.uniforms.reduce((function(t,e){return t[e.name]=e.data,t}),{}),scissor:{enable:!0,box:function(){return n.getViewport()}}},i.cull&&(f.cull=i.cull),i.depth&&(f.depth=i.depth),i.blend&&(f.blend=i.blend),o.indicesBuffer&&(f.elements=o.indicesBuffer),o.maxInstancedCount&&(f.instances=o.maxInstancedCount,f.count=o.vertexCount||3),t.next=22,u(f);case 22:r.model=t.sent,this.modelCache[a]=r.model;case 24:case"end":return t.stop()}}),t,this)}))),function(t,e){return n.apply(this,arguments)})},{key:"initView",value:(e=C()(A.a.mark((function t(e){var n,r,i,o;return A.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.getScene(),r=V(n.getEntities()),t.prev=2,r.s();case 4:if((i=r.n()).done){t.next=10;break}return o=i.value,t.next=8,this.initMesh(o,e);case 8:t.next=4;break;case 10:t.next=15;break;case 12:t.prev=12,t.t0=t.catch(2),r.e(t.t0);case 15:return t.prev=15,r.f(),t.finish(15);case 18:case"end":return t.stop()}}),t,this,[[2,12,15,18]])}))),function(t){return e.apply(this,arguments)})}]),t}(),O.IDENTIFIER="Render Pass",g=k,v=B()(g.prototype,"mesh",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=B()(g.prototype,"geometry",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=B()(g.prototype,"material",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=B()(g.prototype,"cullable",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=B()(g.prototype,"transform",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=B()(g.prototype,"hierarchy",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=B()(g.prototype,"frameGraphSystem",[f,l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=B()(g.prototype,"engine",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=B()(g.prototype,"resourcePool",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=g))||p)},function(t,e,n){(function(t){var n,r,i,o;function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return s(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 s(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(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 u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}o=function(){var t=this;return function(){"use strict";var e,n,r={59:function(t,e,n){n.d(e,{default:function(){return H}});var r=function(t,e){var n=t.nodes,r=t.edges,i=[],o={};if(!n)throw new Error("invalid nodes data!");return n&&n.forEach((function(t,e){o[t.id]=e,i.push([])})),r&&r.forEach((function(t){var n=t.source,r=t.target,a=o[n],s=o[r];!a&&0!==a||!s&&0!==s||(i[a][s]=1,e||(i[s][a]=1))})),i},i=function(t,e){return t===e},o=function(){function t(t,e){void 0===e&&(e=null),this.value=t,this.next=e}return t.prototype.toString=function(t){return t?t(this.value):""+this.value},t}(),a=function(){function t(t){void 0===t&&(t=i),this.head=null,this.tail=null,this.compare=t}return t.prototype.prepend=function(t){var e=new o(t,this.head);return this.head=e,this.tail||(this.tail=e),this},t.prototype.append=function(t){var e=new o(t);return this.head?(this.tail.next=e,this.tail=e,this):(this.head=e,this.tail=e,this)},t.prototype.delete=function(t){if(!this.head)return null;for(var e=null;this.head&&this.compare(this.head.value,t);)e=this.head,this.head=this.head.next;var n=this.head;if(null!==n)for(;n.next;)this.compare(n.next.value,t)?(e=n.next,n.next=n.next.next):n=n.next;return this.compare(this.tail.value,t)&&(this.tail=n),e},t.prototype.find=function(t){var e=t.value,n=void 0===e?void 0:e,r=t.callback,i=void 0===r?void 0:r;if(!this.head)return null;for(var o=this.head;o;){if(i&&i(o.value))return o;if(void 0!==n&&this.compare(o.value,n))return o;o=o.next}return null},t.prototype.deleteTail=function(){var t=this.tail;if(this.head===this.tail)return this.head=null,this.tail=null,t;for(var e=this.head;e.next;)e.next.next?e=e.next:e.next=null;return this.tail=e,t},t.prototype.deleteHead=function(){if(!this.head)return null;var t=this.head;return this.head.next?this.head=this.head.next:(this.head=null,this.tail=null),t},t.prototype.fromArray=function(t){var e=this;return t.forEach((function(t){return e.append(t)})),this},t.prototype.toArray=function(){for(var t=[],e=this.head;e;)t.push(e),e=e.next;return t},t.prototype.reverse=function(){for(var t=this.head,e=null,n=null;t;)n=t.next,t.next=e,e=t,t=n;this.tail=this.head,this.head=e},t.prototype.toString=function(t){return void 0===t&&(t=void 0),this.toArray().map((function(e){return e.toString(t)})).toString()},t}(),s=function(){function t(){this.linkedList=new a}return t.prototype.isEmpty=function(){return!this.linkedList.head},t.prototype.peek=function(){return this.linkedList.head?this.linkedList.head.value:null},t.prototype.enqueue=function(t){this.linkedList.append(t)},t.prototype.dequeue=function(){var t=this.linkedList.deleteHead();return t?t.value:null},t.prototype.toString=function(t){return this.linkedList.toString(t)},t}(),c=function(t,e,n){void 0===e&&(e=[]);var r=e.filter((function(e){return e.source===t||e.target===t}));return"target"===n?r.filter((function(e){return e.source===t})).map((function(t){return t.target})):"source"===n?r.filter((function(e){return e.target===t})).map((function(t){return t.source})):r.map((function(e){return e.source===t?e.target:e.source}))},f=function(t,e){return e.filter((function(e){return e.source===t||e.target===t}))},l=function(t){return void 0===t&&(t=0),t+"-"+(""+Math.random()).split(".")[1].substr(0,5)+(""+Math.random()).split(".")[1].substr(0,5)},h=function(t){var e={},n=t.nodes,r=void 0===n?[]:n,i=t.edges,o=void 0===i?[]:i;return r.forEach((function(t){e[t.id]={degree:0,inDegree:0,outDegree:0}})),o.forEach((function(t){e[t.source].degree++,e[t.source].outDegree++,e[t.target].degree++,e[t.target].inDegree++})),e},d=h;function p(t,e,n){!function t(e,n,r,i){i.enter({current:n,previous:r});var o=e.edges;c(n,void 0===o?[]:o,"target").forEach((function(o){i.allowTraversal({previous:r,current:n,next:o})&&t(e,o,n,i)})),i.leave({current:n,previous:r})}(t,e,"",function(t){void 0===t&&(t={});var e,n=t,r=function(){},i=(e={},function(t){var n=t.next;return!e[n]&&(e[n]=!0,!0)});return n.allowTraversal=t.allowTraversal||i,n.enter=t.enter||r,n.leave=t.leave||r,n}(n))}function g(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}Object.create,Object.create;var v={}.toString,y=function(t){return Array.isArray?Array.isArray(t):function(t,e){return v.call(t)==="[object "+e+"]"}(t,"Array")};Object.keys;var m=Array.prototype;m.splice,m.indexOf,Array.prototype.splice,Object.prototype.hasOwnProperty,Number.isInteger&&Number.isInteger,Math.PI,parseInt,Math.PI,Object.values,Object.prototype,Object.prototype.hasOwnProperty,Object.prototype.hasOwnProperty,function(){function t(){this.map={}}t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length}}();var b=function(t,e,n,r){var i=t.nodes,o=void 0===i?[]:i,a=t.edges,s=void 0===a?[]:a,u=[],c={},l={},h={};o.forEach((function(t,n){var r=t.id;u.push(r),l[r]=1/0,r===e&&(l[r]=0)}));for(var d=o.length,p=function(t){var e=function(t,e,n){for(var r,i=1/0,o=0;o<e.length;o++){var a=e[o].id;!n[a]&&t[a]<=i&&(i=t[a],r=e[o])}return r}(l,o,c),i=e.id;if(c[i]=!0,l[i]===1/0)return"continue";(n?function(t,e){return e.filter((function(e){return e.source===t}))}(i,s):f(i,s)).forEach((function(t){var n=t.target,o=t.source,a=n===i?o:n,s=r&&t[r]?t[r]:1;l[a]>l[e.id]+s?(l[a]=l[e.id]+s,h[a]=[e.id]):l[a]===l[e.id]+s&&h[a].push(e.id)}))},g=0;g<d;g++)p();h[e]=[e];var v={};for(var y in l)l[y]!==1/0&&x(e,y,h,v);var m={};for(var y in v)m[y]=v[y][0];return{length:l,path:m,allPaths:v}};function x(t,e,n,r){if(t===e)return[t];if(r[e])return r[e];for(var i=[],o=0,a=n[e];o<a.length;o++){var s=x(t,a[o],n,r);if(!s)return;for(var u=0,c=s;u<c.length;u++){var f=c[u];y(f)?i.push(g(f,[e])):i.push([f,e])}}return r[e]=i,r[e]}var w=function(t,e){for(var n=r(t,e),i=[],o=n.length,a=0;a<o;a+=1){i[a]=[];for(var s=0;s<o;s+=1)a===s?i[a][s]=0:0!==n[a][s]&&n[a][s]?i[a][s]=n[a][s]:i[a][s]=1/0}for(var u=0;u<o;u+=1)for(a=0;a<o;a+=1)for(s=0;s<o;s+=1)i[a][s]>i[a][u]+i[u][s]&&(i[a][s]=i[a][u]+i[u][s]);return i},S=function(t,e,n,r){for(var i=e.length,o=2*r,a=0,s=0;s<i;s++)for(var u=t[s].clusterId,c=0;c<i;c++)u===t[c].clusterId&&(a+=(e[s][c]||0)-(n[s]||0)*(n[c]||0)/o);return a*(1/o)},E=function(){function t(t){this.count=t.length,this.parent={};for(var e=0,n=t;e<n.length;e++){var r=n[e];this.parent[r]=r}}return t.prototype.find=function(t){for(;this.parent[t]!==t;)t=this.parent[t];return t},t.prototype.union=function(t,e){var n=this.find(t),r=this.find(e);n!==r&&(n<r?(this.parent[e]!==e&&this.union(this.parent[e],t),this.parent[e]=this.parent[t]):(this.parent[t]!==t&&this.union(this.parent[t],e),this.parent[t]=this.parent[e]))},t.prototype.connected=function(t,e){return this.find(t)===this.find(e)},t}(),_=function(t,e){return t-e},O=function(){function t(t){void 0===t&&(t=_),this.compareFn=t,this.list=[]}return t.prototype.getLeft=function(t){return 2*t+1},t.prototype.getRight=function(t){return 2*t+2},t.prototype.getParent=function(t){return 0===t?null:Math.floor((t-1)/2)},t.prototype.isEmpty=function(){return this.list.length<=0},t.prototype.top=function(){return this.isEmpty()?void 0:this.list[0]},t.prototype.delMin=function(){var t=this.top(),e=this.list.pop();return this.list.length>0&&(this.list[0]=e,this.moveDown(0)),t},t.prototype.insert=function(t){if(null!==t){this.list.push(t);var e=this.list.length-1;return this.moveUp(e),!0}return!1},t.prototype.moveUp=function(t){for(var e=this.getParent(t);t&&t>0&&this.compareFn(this.list[e],this.list[t])>0;){var n=this.list[e];this.list[e]=this.list[t],this.list[t]=n,t=e,e=this.getParent(t)}},t.prototype.moveDown=function(t){var e,n=t,r=this.getLeft(t),i=this.getRight(t),o=this.list.length;null!==r&&r<o&&this.compareFn(this.list[n],this.list[r])>0?n=r:null!==i&&i<o&&this.compareFn(this.list[n],this.list[i])>0&&(n=i),t!==n&&(e=[this.list[n],this.list[t]],this.list[t]=e[0],this.list[n]=e[1],this.moveDown(n))},t}(),k=function(t,e){var n=[],r=t.nodes,i=void 0===r?[]:r,o=t.edges,a=void 0===o?[]:o;if(0===i.length)return n;var s=i[0],u=new Set;u.add(s);var c=new O((function(t,n){return e?t.weight-n.weight:0}));for(f(s.id,a).forEach((function(t){c.insert(t)}));!c.isEmpty();){var l=c.delMin(),h=l.source,d=l.target;u.has(h)&&u.has(d)||(n.push(l),u.has(h)||(u.add(h),f(h,a).forEach((function(t){c.insert(t)}))),u.has(d)||(u.add(d),f(d,a).forEach((function(t){c.insert(t)}))))}return n},M=function(t,e){var n=[],r=t.nodes,i=void 0===r?[]:r,o=t.edges,a=void 0===o?[]:o;if(0===i.length)return n;var s=a.map((function(t){return t}));e&&s.sort((function(t,e){return t.weight-e.weight}));for(var u=new E(i.map((function(t){return t.id})));s.length>0;){var c=s.shift(),f=c.source,l=c.target;u.connected(f,l)||(n.push(c),u.union(f,l))}return n},A="-1",T=function(t,e,n,r){void 0===t&&(t=-1),void 0===e&&(e=-1),void 0===n&&(n=-1),void 0===r&&(r="-1"),this.id=t,this.from=e,this.to=n,this.label=r},C=function(){function t(t,e){void 0===t&&(t=-1),void 0===e&&(e=A),this.id=t,this.label=e,this.edges=[],this.edgeMap={}}return t.prototype.addEdge=function(t){this.edges.push(t),this.edgeMap[t.id]=t},t}(),I=function(){function t(t,e,n){void 0===t&&(t=-1),void 0===e&&(e=!0),void 0===n&&(n=!1),this.id=t,this.edgeIdAutoIncrease=e,this.edges=[],this.nodes=[],this.nodeMap={},this.edgeMap={},this.nodeLabelMap={},this.edgeLabelMap={},this.counter=0,this.directed=n}return t.prototype.getNodeNum=function(){return this.nodes.length},t.prototype.addNode=function(t,e){if(!this.nodeMap[t]){var n=new C(t,e);this.nodes.push(n),this.nodeMap[t]=n,this.nodeLabelMap[e]||(this.nodeLabelMap[e]=[]),this.nodeLabelMap[e].push(t)}},t.prototype.addEdge=function(t,e,n,r){if((this.edgeIdAutoIncrease||void 0===t)&&(t=this.counter++),!(this.nodeMap[e]&&this.nodeMap[n]&&this.nodeMap[n].edgeMap[t])){var i=new T(t,e,n,r);if(this.edges.push(i),this.edgeMap[t]=i,this.nodeMap[e].addEdge(i),this.edgeLabelMap[r]||(this.edgeLabelMap[r]=[]),this.edgeLabelMap[r].push(i),!this.directed){var o=new T(t,n,e,r);this.nodeMap[n].addEdge(o),this.edgeLabelMap[r].push(o)}}},t}(),P=function(){function t(t,e,n,r,i){this.fromNode=t,this.toNode=e,this.nodeEdgeNodeLabel={nodeLabel1:n||A,edgeLabel:r||"-1",nodeLabel2:i||A}}return t.prototype.equalTo=function(t){return this.fromNode===t.formNode&&this.toNode===t.toNode&&this.nodeEdgeNodeLabel===t.nodeEdgeNodeLabel},t.prototype.notEqualTo=function(t){return!this.equalTo(t)},t}(),j=function(){function t(){this.rmpath=[],this.dfsEdgeList=[]}return t.prototype.equalTo=function(t){var e=this.dfsEdgeList.length;if(e!==t.length)return!1;for(var n=0;n<e;n++)if(this.dfsEdgeList[n]!==t[n])return!1;return!0},t.prototype.notEqualTo=function(t){return!this.equalTo(t)},t.prototype.pushBack=function(t,e,n,r,i){return this.dfsEdgeList.push(new P(t,e,n,r,i)),this.dfsEdgeList},t.prototype.toGraph=function(t,e){void 0===t&&(t=-1),void 0===e&&(e=!1);var n=new I(t,!0,e);return this.dfsEdgeList.forEach((function(t){var e=t.fromNode,r=t.toNode,i=t.nodeEdgeNodeLabel,o=i.nodeLabel1,a=i.edgeLabel,s=i.nodeLabel2;o!==A&&n.addNode(e,o),s!==A&&n.addNode(r,s),n.addEdge(void 0,e,r,a)})),n},t.prototype.buildRmpath=function(){this.rmpath=[];for(var t=void 0,e=this.dfsEdgeList.length-1;e>=0;e--){var n=this.dfsEdgeList[e],r=n.fromNode,i=n.toNode;r<i&&(void 0===t||i===t)&&(this.rmpath.push(e),t=r)}return this.rmpath},t.prototype.getNodeNum=function(){var t={};return this.dfsEdgeList.forEach((function(e){t[e.fromNode]||(t[e.fromNode]=!0),t[e.toNode]||(t[e.toNode]=!0)})),Object.keys(t).length},t}(),D=function(){function t(t){if(this.his={},this.nodesUsed={},this.edgesUsed={},this.edges=[],t){for(;t;){var e=t.edge;this.edges.push(e),this.nodesUsed[e.from]=1,this.nodesUsed[e.to]=1,this.edgesUsed[e.id]=1,t=t.preNode}this.edges=this.edges.reverse()}}return t.prototype.hasNode=function(t){return 1===this.nodesUsed[t.id]},t.prototype.hasEdge=function(t){return 1===this.edgesUsed[t.id]},t}(),N=function(){function t(t){var e=t.graphs,n=t.minSupport,r=void 0===n?2:n,i=t.minNodeNum,o=void 0===i?1:i,a=t.maxNodeNum,s=void 0===a?4:a,u=t.top,c=void 0===u?10:u,f=t.directed,l=void 0!==f&&f,h=t.verbose,d=void 0!==h&&h;this.graphs=e,this.dfsCode=new j,this.support=0,this.frequentSize1Subgraphs=[],this.frequentSubgraphs=[],this.minSupport=r,this.top=c,this.directed=l,this.counter=0,this.maxNodeNum=s,this.minNodeNum=o,this.verbose=d,this.maxNodeNum<this.minNodeNum&&(this.maxNodeNum=this.minNodeNum),this.reportDF=[]}return t.prototype.findForwardRootEdges=function(t,e){var n=this,r=[],i=t.nodeMap;return e.edges.forEach((function(t){(n.directed||e.label<=i[t.to].label)&&r.push(t)})),r},t.prototype.findBackwardEdge=function(t,e,n,r){if(!this.directed&&e===n)return null;for(var i=t.nodeMap,o=i[n.to].edges,a=o.length,s=0;s<a;s++){var u=o[s];if(!r.hasEdge(u)&&u.to===e.from)if(this.directed){if(i[e.from].label<i[n.to].label||i[e.from].label===i[n.to].label&&e.label<=u.label)return u}else if(e.label<u.label||e.label===u.label&&i[e.to].label<=i[n.to].label)return u}return null},t.prototype.findForwardPureEdges=function(t,e,n,r){for(var i=[],o=e.to,a=t.nodeMap[o].edges,s=a.length,u=0;u<s;u++){var c=a[u],f=t.nodeMap[c.to];n<=f.label&&!r.hasNode(f)&&i.push(c)}return i},t.prototype.findForwardRmpathEdges=function(t,e,n,r){for(var i=[],o=t.nodeMap,a=o[e.to].label,s=o[e.from].edges,u=s.length,c=0;c<u;c++){var f=s[c],l=o[f.to].label;e.to===f.to||n>l||r.hasNode(o[f.to])||(e.label<f.label||e.label===f.label&&a<=l)&&i.push(f)}return i},t.prototype.getSupport=function(t){var e={};return t.forEach((function(t){e[t.graphId]||(e[t.graphId]=!0)})),Object.keys(e).length},t.prototype.findMinLabel=function(t){var e=void 0;return Object.keys(t).forEach((function(n){var r=t[n],i=r.nodeLabel1,o=r.edgeLabel,a=r.nodeLabel2;e?(i<e.nodeLabel1||i===e.nodeLabel1&&o<e.edgeLabel||i===e.nodeLabel1&&o===e.edgeLabel&&a<e.nodeLabel2)&&(e={nodeLabel1:i,edgeLabel:o,nodeLabel2:a}):e={nodeLabel1:i,edgeLabel:o,nodeLabel2:a}})),e},t.prototype.isMin=function(){var t=this,e=this.dfsCode;if(this.verbose&&console.log("isMin checking",e),1===e.dfsEdgeList.length)return!0;var n=this.directed,r=e.toGraph(-1,n),i=r.nodeMap,o=new j,a={};r.nodes.forEach((function(e){t.findForwardRootEdges(r,e).forEach((function(t){var n=i[t.to],o=e.label+"-"+t.label+"-"+n.label;a[o]||(a[o]={projected:[],nodeLabel1:e.label,edgeLabel:t.label,nodeLabel2:n.label});var s={graphId:r.id,edge:t,preNode:null};a[o].projected.push(s)}))}));var s=this.findMinLabel(a);o.dfsEdgeList.push(new P(0,1,s.nodeLabel1,s.edgeLabel,s.nodeLabel2));var u=s.nodeLabel1+"-"+s.edgeLabel+"-"+s.nodeLabel2;return function a(s){for(var u=o.buildRmpath(),c=o.dfsEdgeList[0].nodeEdgeNodeLabel.nodeLabel1,f=o.dfsEdgeList[u[0]].toNode,l={},h=!1,d=0,p=n?-1:0,g=function(e){if(h)return"break";s.forEach((function(n){var i=new D(n),a=t.findBackwardEdge(r,i.edges[u[e]],i.edges[u[0]],i);a&&(l[a.label]||(l[a.label]={projected:[],edgeLabel:a.label}),l[a.label].projected.push({graphId:r.id,edge:l,preNode:n}),d=o.dfsEdgeList[u[e]].fromNode,h=!0)}))},v=u.length-1;v>p&&"break"!==g(v);v--);if(h){var y=t.findMinLabel(l);o.dfsEdgeList.push(new P(f,d,A,y.edgeLabel,A));var m=o.dfsEdgeList.length-1;return t.dfsCode.dfsEdgeList[m]===o.dfsEdgeList[m]&&a(l[y.edgeLabel].projected)}var b={};h=!1;var x=0;s.forEach((function(e){var n=new D(e),o=t.findForwardPureEdges(r,n.edges[u[0]],c,n);o.length>0&&(h=!0,x=f,o.forEach((function(t){var n=t.label+"-"+i[t.to].label;b[n]||(b[n]={projected:[],edgeLabel:t.label,nodeLabel2:i[t.to].label}),b[n].projected.push({graphId:r.id,edge:t,preNode:e})})))}));var w=u.length,S=function(e){if(h)return"break";var n=u[e];s.forEach((function(e){var a=new D(e),s=t.findForwardRmpathEdges(r,a.edges[n],c,a);s.length>0&&(h=!0,x=o.dfsEdgeList[n].fromNode,s.forEach((function(t){var n=t.label+"-"+i[t.to].label;b[n]||(b[n]={projected:[],edgeLabel:t.label,nodeLabel2:i[t.to].label}),b[n].projected.push({graphId:r.id,edge:t,preNode:e})})))}))};for(v=0;v<w&&"break"!==S(v);v++);if(!h)return!0;var E=t.findMinLabel(b);o.dfsEdgeList.push(new P(x,f+1,A,E.edgeLabel,E.nodeLabel2));var _=o.dfsEdgeList.length-1;return e.dfsEdgeList[_]===o.dfsEdgeList[_]&&a(b[E.edgeLabel+"-"+E.nodeLabel2].projected)}(a[u].projected)},t.prototype.report=function(){if(!(this.dfsCode.getNodeNum()<this.minNodeNum)){this.counter++;var t=this.dfsCode.toGraph(this.counter,this.directed);this.frequentSubgraphs.push(function t(e){if("object"!=u(e)||null===e)return e;var n;if(y(e)){n=[];for(var r=0,i=e.length;r<i;r++)"object"==u(e[r])&&null!=e[r]?n[r]=t(e[r]):n[r]=e[r]}else for(var o in n={},e)"object"==u(e[o])&&null!=e[o]?n[o]=t(e[o]):n[o]=e[o];return n}(t))}},t.prototype.subGraphMining=function(t){var e=this;if(!(this.getSupport(t)<this.minSupport)&&this.isMin()){this.report();var n=this.dfsCode.getNodeNum(),r=this.dfsCode.buildRmpath(),i=this.dfsCode.dfsEdgeList[r[0]].toNode,o=this.dfsCode.dfsEdgeList[0].nodeEdgeNodeLabel.nodeLabel1,a={},s={};t.forEach((function(t){for(var u=e.graphs[t.graphId],c=u.nodeMap,f=new D(t),l=r.length-1;l>=0;l--){var h=e.findBackwardEdge(u,f.edges[r[l]],f.edges[r[0]],f);if(h){var d=e.dfsCode.dfsEdgeList[r[l]].fromNode+"-"+h.label;s[d]||(s[d]={projected:[],toNodeId:e.dfsCode.dfsEdgeList[r[l]].fromNode,edgeLabel:h.label}),s[d].projected.push({graphId:t.graphId,edge:h,preNode:t})}}if(!(n>=e.maxNodeNum)){e.findForwardPureEdges(u,f.edges[r[0]],o,f).forEach((function(e){var n=i+"-"+e.label+"-"+c[e.to].label;a[n]||(a[n]={projected:[],fromNodeId:i,edgeLabel:e.label,nodeLabel2:c[e.to].label}),a[n].projected.push({graphId:t.graphId,edge:e,preNode:t})}));var p=function(n){e.findForwardRmpathEdges(u,f.edges[r[n]],o,f).forEach((function(i){var o=e.dfsCode.dfsEdgeList[r[n]].fromNode+"-"+i.label+"-"+c[i.to].label;a[o]||(a[o]={projected:[],fromNodeId:e.dfsCode.dfsEdgeList[r[n]].fromNode,edgeLabel:i.label,nodeLabel2:c[i.to].label}),a[o].projected.push({graphId:t.graphId,edge:i,preNode:t})}))};for(l=0;l<r.length;l++)p(l)}})),Object.keys(s).forEach((function(t){var n=s[t],r=n.toNodeId,o=n.edgeLabel;e.dfsCode.dfsEdgeList.push(new P(i,r,"-1",o,"-1")),e.subGraphMining(s[t].projected),e.dfsCode.dfsEdgeList.pop()})),Object.keys(a).forEach((function(t){var n=a[t],r=n.fromNodeId,o=n.edgeLabel,s=n.nodeLabel2;e.dfsCode.dfsEdgeList.push(new P(r,i+1,A,o,s)),e.subGraphMining(a[t].projected),e.dfsCode.dfsEdgeList.pop()}))}},t.prototype.generate1EdgeFrequentSubGraphs=function(){var t=this.graphs,e=this.directed,n=this.minSupport,r=this.frequentSize1Subgraphs,i={},o={},a={},s={};return Object.keys(t).forEach((function(n){var r=t[n],u=r.nodeMap;r.nodes.forEach((function(t,r){var c=t.label,f=n+"-"+c;if(!a[f]){var l=i[c]||0;l++,i[c]=l}a[f]={graphKey:n,label:c},t.edges.forEach((function(t){var r=c,i=u[t.to].label;if(!e&&r>i){var a=i;i=r,r=a}var f=t.label,l=n+"-"+r+"-"+f+"-"+i,h=r+"-"+f+"-"+i;if(!o[h]){var d=o[h]||0;d++,o[h]=d}s[l]={graphId:n,nodeLabel1:r,edgeLabel:f,nodeLabel2:i}}))}))})),Object.keys(i).forEach((function(t){if(!(i[t]<n)){var e={nodes:[],edges:[]};e.nodes.push({id:"0",label:t}),r.push(e)}})),r},t.prototype.run=function(){var t=this;if(this.frequentSize1Subgraphs=this.generate1EdgeFrequentSubGraphs(),!(this.maxNodeNum<2)){var e=this.graphs,n=(this.directed,{});Object.keys(e).forEach((function(r){var i=e[r],o=i.nodeMap;i.nodes.forEach((function(e){t.findForwardRootEdges(i,e).forEach((function(t){var i=o[t.to],a=e.label+"-"+t.label+"-"+i.label;n[a]||(n[a]={projected:[],nodeLabel1:e.label,edgeLabel:t.label,nodeLabel2:i.label});var s={graphId:r,edge:t,preNode:null};n[a].projected.push(s)}))}))})),Object.keys(n).forEach((function(e){var r=n[e],i=r.projected,o=r.nodeLabel1,a=r.edgeLabel,s=r.nodeLabel2;t.dfsCode.dfsEdgeList.push(new P(0,1,o,a,s)),t.subGraphMining(i),t.dfsCode.dfsEdgeList.pop()}))}},t}(),R="cluster",L=function(t,e,n,r){void 0===n&&(n="cluster"),void 0===r&&(r=2);var i=[],o=t.nodes;return e.forEach((function(t,e){i.push(B(o,t,e,n,r))})),i},B=function(t,e,n,r,i){var o=[n],a=[],s={};return e.forEach((function(e,u){if(e<=i&&n!==u){o.push(u),a.push(t[u]);var c=t[u][r];s[c]?(s[c].count++,s[c].dists.push(e)):s[c]={count:1,dists:[e]}}})),Object.keys(s).forEach((function(t){s[t].dists=s[t].dists.sort((function(t,e){return t-e}))})),{nodeIdx:n,nodeId:t[n].id,nodeIdxs:o,neighbors:a,neighborNum:o.length-1,nodeLabelCountMap:s}},G=function(t,e,n,r){var i=n.nodes;return r||(r={}),Object.keys(t).forEach((function(o){var a,s;if(!r||!r[o]){r[o]={nodes:[],edges:[]};var u=t[o],c=null===(a=e[u.start])||void 0===a?void 0:a.nodeIdxs,f=null===(s=e[u.end])||void 0===s?void 0:s.nodeIdxs;if(c&&f){var l=new Set(f),h=c.filter((function(t){return l.has(t)}));if(h&&h.length){for(var d={},p=h.length,g=0;g<p;g++){var v=i[h[g]];r[o].nodes.push(v),d[v.id]=!0}n.edges.forEach((function(t){d[t.source]&&d[t.target]&&r[o].edges.push(t)}))}}}})),r},F=function(t,e,n,r){var i={};t.nodes.forEach((function(t){i[t.id]=t}));var o=0;return t.edges.forEach((function(t){var a=i[t.source][n],s=i[t.target][n],u=e.nodes[0][n],c=e.nodes[1][n],f=e.edges[0][r];t[r]===f&&(a===u&&s===c||a===c&&s===u)&&o++})),o},U=function(t,e){var n={},r={};return t.forEach((function(t,i){n[t.id]={idx:i,node:t,degree:0};var o=t[e];r[o]||(r[o]=[]),r[o].push(t)})),{nodeMap:n,nodeLabelMap:r}},z=function(t,e,n){var r={},i={};return t.forEach((function(t,o){r[""+l]={idx:o,edge:t};var a=t[e];i[a]||(i[a]=[]),i[a].push(t);var s=n[t.source];s&&s.degree++;var u=n[t.target];u&&u.degree++})),{edgeMap:r,edgeLabelMap:i}},V=function(t,e,n){var r=e.length,i={};return e.forEach((function(e,o){for(var a=n?0:o+1,s=t[o].id,u=a;u<r;u++)if(o!==u){var c=t[u].id,f=e[u];i[s+"-"+c]=f,n||(i[c+"-"+s]=f)}})),i},W=function(){function t(t){void 0===t&&(t=10),this.linkedList=new a,this.maxStep=t}return Object.defineProperty(t.prototype,"length",{get:function(){return this.linkedList.toArray().length},enumerable:!1,configurable:!0}),t.prototype.isEmpty=function(){return!this.linkedList.head},t.prototype.isMaxStack=function(){return this.toArray().length>=this.maxStep},t.prototype.peek=function(){return this.isEmpty()?null:this.linkedList.head.value},t.prototype.push=function(t){this.linkedList.prepend(t),this.length>this.maxStep&&this.linkedList.deleteTail()},t.prototype.pop=function(){var t=this.linkedList.deleteHead();return t?t.value:null},t.prototype.toArray=function(){return this.linkedList.toArray().map((function(t){return t.value}))},t.prototype.clear=function(){for(;!this.isEmpty();)this.pop()},t}(),X="SUCCESS",Y=function(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new Promise((function(r,i){n.e(1).then(n.bind(n,1)).then((function(n){var o=new n.default;o.postMessage({type:t,data:e}),o.onmessage=function(t){var e=t.data,n=e.data,a=e.type;X===a?r(n):i(),o.terminate()}}))}))}},H={getAdjMatrix:r,breadthFirstSearch:function(t,e,n){var r=function(t){void 0===t&&(t={});var e,n=t,r=function(){},i=(e={},function(t){var n=t.next;return!e[n]&&(e[n]=!0,!0)});return n.allowTraversal=t.allowTraversal||i,n.enter=t.enter||r,n.leave=t.leave||r,n}(n),i=new s,o=t.edges,a=void 0===o?[]:o;i.enqueue(e);for(var u="",f=function(){var t=i.dequeue();r.enter({current:t,previous:u}),c(t,a,"target").forEach((function(e){r.allowTraversal({previous:u,current:t,next:e})&&i.enqueue(e)})),r.leave({current:t,previous:u}),u=t};!i.isEmpty();)f()},connectedComponent:function(t,e){return e?function(t){for(var e=t.nodes,n=void 0===e?[]:e,r=t.edges,i=void 0===r?[]:r,o=[],a={},s={},u={},f=[],l=0,h=function t(e){s[e.id]=l,u[e.id]=l,l+=1,o.push(e),a[e.id]=!0;for(var r=c(e.id,i,"target").filter((function(t){return n.map((function(t){return t.id})).indexOf(t)>-1})),h=function(i){var o=r[i];if(s[o]||0===s[o])a[o]&&(u[e.id]=Math.min(u[e.id],s[o]));else{var c=n.filter((function(t){return t.id===o}));c.length>0&&t(c[0]),u[e.id]=Math.min(u[e.id],u[o])}},d=0;d<r.length;d++)h(d);if(u[e.id]===s[e.id]){for(var p=[];o.length>0;){var g=o.pop();if(a[g.id]=!1,p.push(g),g===e)break}p.length>0&&f.push(p)}},d=0,p=n;d<p.length;d++){var g=p[d];s[g.id]||0===s[g.id]||h(g)}return f}(t):function(t){for(var e=t.nodes,n=void 0===e?[]:e,r=t.edges,i=void 0===r?[]:r,o=[],a={},s=[],u=function t(e){s.push(e),a[e.id]=!0;for(var r=c(e.id,i),o=function(e){var i=r[e];if(!a[i]){var o=n.filter((function(t){return t.id===i}));o.length>0&&t(o[0])}},u=0;u<r.length;++u)o(u)},f=0;f<n.length;f++){var l=n[f];if(!a[l.id]){u(l);for(var h=[];s.length>0;)h.push(s.pop());o.push(h)}}return o}(t)},getDegree:d,getInDegree:function(t,e){return h(t)[e]?h(t)[e].inDegree:0},getOutDegree:function(t,e){return h(t)[e]?h(t)[e].outDegree:0},detectCycle:function(t){var e=null,n=t.nodes,r={},i={},o={},a={};(void 0===n?[]:n).forEach((function(t){i[t.id]=t}));for(var s={enter:function(t){var n=t.current,a=t.previous;if(o[n]){e={};for(var s=n,u=a;u!==n;)e[s]=u,s=u,u=r[u];e[s]=u}else o[n]=n,delete i[n],r[n]=a},leave:function(t){var e=t.current;a[e]=e,delete o[e]},allowTraversal:function(t){var n=t.next;return!e&&!a[n]}};Object.keys(i).length;)p(t,Object.keys(i)[0],s);return e},depthFirstSearch:p,dijkstra:b,findAllPath:function(t,e,n,r){var i;if(e===n)return[[e]];var o=t.edges,a=void 0===o?[]:o,s=[e],u=((i={})[e]=!0,i),f=[],l=[],h=r?c(e,a,"target"):c(e,a);for(f.push(h);s.length>0&&f.length>0;){var d=f[f.length-1];if(d.length){var p=d.shift();if(p&&(s.push(p),u[p]=!0,h=r?c(p,a,"target"):c(p,a),f.push(h.filter((function(t){return!u[t]})))),s[s.length-1]===n){var g=s.map((function(t){return t}));l.push(g),v=s.pop(),u[v]=!1,f.pop()}}else{var v=s.pop();u[v]=!1,f.pop()}}return l},findShortestPath:function(t,e,n,r,i){var o=b(t,e,r,i),a=o.length,s=o.path,u=o.allPaths;return{length:a[n],path:s[n],allPath:u[n]}},floydWarshall:w,labelPropagation:function(t,e,n,i){void 0===e&&(e=!1),void 0===n&&(n="weight"),void 0===i&&(i=1e3);var o=t.nodes,a=void 0===o?[]:o,s=t.edges,u=void 0===s?[]:s,c={},f={};a.forEach((function(t,e){var n=l();t.clusterId=n,c[n]={id:n,nodes:[t]},f[t.id]={node:t,idx:e}}));var h=r(t,e),d=[],p={};h.forEach((function(t,e){var n=0,r=a[e].id;p[r]={},t.forEach((function(t,e){if(t){n+=t;var i=a[e].id;p[r][i]=t}})),d.push(n)}));for(var g=0,v=function(){var t=!1;if(a.forEach((function(e){var n={};Object.keys(p[e.id]).forEach((function(t){var r=p[e.id][t],i=f[t].node.clusterId;n[i]||(n[i]=0),n[i]+=r}));var r=-1/0,i=[];if(Object.keys(n).forEach((function(t){r<n[t]?(r=n[t],i=[t]):r===n[t]&&i.push(t)})),1!==i.length||i[0]!==e.clusterId){var o=i.indexOf(e.clusterId);if(o>=0&&i.splice(o,1),i&&i.length){t=!0;var a=c[e.clusterId],s=a.nodes.indexOf(e);a.nodes.splice(s,1);var u=Math.floor(Math.random()*i.length),l=c[i[u]];l.nodes.push(e),e.clusterId=l.id}}})),!t)return"break";g++};g<i&&"break"!==v(););Object.keys(c).forEach((function(t){var e=c[t];e.nodes&&e.nodes.length||delete c[t]}));var y=[],m={};u.forEach((function(t){var e=t.source,r=t.target,i=t[n]||1,o=f[e].node.clusterId,a=f[r].node.clusterId,s=o+"---"+a;if(m[s])m[s].weight+=i,m[s].count++;else{var u={source:o,target:a,weight:i,count:1};m[s]=u,y.push(u)}}));var b=[];return Object.keys(c).forEach((function(t){b.push(c[t])})),{clusters:b,clusterEdges:y}},louvain:function(t,e,n,i){void 0===e&&(e=!1),void 0===n&&(n="weight"),void 0===i&&(i=1e-4);var o=t.nodes,a=void 0===o?[]:o,s=t.edges,u=void 0===s?[]:s,c={},f={};a.forEach((function(t,e){var n=l();t.clusterId=n,c[n]={id:n,nodes:[t]},f[t.id]={node:t,idx:e}}));var h=r(t,e),d=[],p={},g=0;h.forEach((function(t,e){var n=0,r=a[e].id;p[r]={},t.forEach((function(t,e){if(t){n+=t;var i=a[e].id;p[r][i]=t,g+=t}})),d.push(n)})),g/=2;for(var v=1/0,y=1/0,m=0;v=S(a,h,d,g),!(Math.abs(v-y)<i||m>100);)y=v,m++,Object.keys(c).forEach((function(t){var e=0;u.forEach((function(r){var i=r.source,o=r.target,a=f[i].node.clusterId,s=f[o].node.clusterId;(a===t&&s!==t||s===t&&a!==t)&&(e+=r[n]||1)})),c[t].sumTot=e})),a.forEach((function(t,e){var r,i=c[t.clusterId],o=0,a=d[e]/(2*g),s=0;i.nodes.forEach((function(t){var n=f[t.id].idx;s+=h[e][n]||0}));var l=s-i.sumTot*a,v=p[t.id];if(Object.keys(v).forEach((function(n){var i=f[n].node.clusterId;if(i!==t.clusterId){var s=c[i],u=s.nodes;if(u&&u.length){var d=0;u.forEach((function(t){var n=f[t.id].idx;d+=h[e][n]||0}));var p=d-s.sumTot*a-l;p>o&&(o=p,r=s)}}})),o>0){r.nodes.push(t);var y=t.clusterId;t.clusterId=r.id;var m=i.nodes.indexOf(t);i.nodes.splice(m,1);var b=0,x=0;u.forEach((function(t){var e=t.source,i=t.target,o=f[e].node.clusterId,a=f[i].node.clusterId;(o===r.id&&a!==r.id||a===r.id&&o!==r.id)&&(b+=t[n]||1),(o===y&&a!==y||a===y&&o!==y)&&(x+=t[n]||1)})),r.sumTot=b,i.sumTot=x}}));Object.keys(c).forEach((function(t){var e=c[t];e.nodes&&e.nodes.length||delete c[t]}));var b=[],x={};u.forEach((function(t){var e=t.source,r=t.target,i=t[n]||1,o=f[e].node.clusterId,a=f[r].node.clusterId,s=o+"---"+a;if(x[s])x[s].weight+=i,x[s].count++;else{var u={source:o,target:a,weight:i,count:1};x[s]=u,b.push(u)}}));var w=[];return Object.keys(c).forEach((function(t){w.push(c[t])})),{clusters:w,clusterEdges:b}},minimumSpanningTree:function(t,e,n){return n?{prim:k,kruskal:M}[n](t,e):M(t,e)},pageRank:function(t,e,n){"number"!=typeof e&&(e=1e-6),"number"!=typeof n&&(n=.85);for(var r,i=1,o=0,a=1e3,s=t.nodes,u=void 0===s?[]:s,f=t.edges,l=void 0===f?[]:f,h=u.length,p={},g={},v=0;v<h;++v)p[m=(E=u[v]).id]=1/h,g[m]=1/h;for(var y=d(t);a>0&&i>e;){for(o=0,v=0;v<h;++v){var m=(E=u[v]).id;if(r=0,0===y[E.id].inDegree)p[m]=0;else{for(var b=c(m,l,"source"),x=0;x<b.length;++x){var w=b[x],S=y[w].outDegree;S>0&&(r+=g[w]/S)}p[m]=n*r,o+=p[m]}}for(o=(1-o)/h,i=0,v=0;v<h;++v){var E;r=p[m=(E=u[v]).id]+o,i+=Math.abs(r-g[m]),g[m]=r}a-=1}return g},getNeighbors:c,Stack:W,GADDI:function(t,e,n,r,i,o,a){if(void 0===n&&(n=!1),void 0===o&&(o="cluster"),void 0===a&&(a="cluster"),t&&t.nodes){var s=t.nodes.length;if(s){var c=w(t,n),f=w(e,n),l=V(t.nodes,c,n),h=V(e.nodes,f,n),d=U(t.nodes,o),p=d.nodeMap,v=d.nodeLabelMap,y=U(e.nodes,o),m=y.nodeMap,x=y.nodeLabelMap;z(t.edges,a,p);var S=z(e.edges,a,m).edgeLabelMap;i||(i=Math.max.apply(Math,g(f[0],[2]))),r||(r=i);var E=L(t,c,o,r),_=L(e,f,o,r),O=function(t,e,n,r,i){var o=Math.ceil(n/e),a={},s=0;return r.forEach((function(t,r){for(var u=0,c=0,f=t.nodeIdxs,l=t.neighborNum-1;u<o;){for(var h=f[1+Math.floor(Math.random()*l)],d=0;(a[r+"-"+h]||a[h+"-"+r])&&(h=Math.floor(Math.random()*e),!(++d>2*e)););if(d<2*e&&(a[r+"-"+h]={start:r,end:h,distance:i[r][h]},u++,++s>=n))return a;if(++c>2*e)break}u<o&&(o=(o+(o-u))/(e-r-1))})),a}(0,s,Math.min(100,s*(s-1)/2),_,c),k=G(O,E,t),M=function(t){var e=t.directed,n=void 0!==e&&e,r=t.nodeLabelProp,i=void 0===r?R:r,o=t.edgeLabelProp,a=void 0===o?R:o,s=function(t,e,n,r){var i={};return Object.keys(t).forEach((function(o,a){var s=t[o],u=new I(a,!0,e),c={};s.nodes.forEach((function(t,e){u.addNode(e,t[n]),c[t.id]=e})),s.edges.forEach((function(t,e){var n=c[t.source],i=c[t.target];u.addEdge(-1,n,i,t[r])})),u&&u.getNodeNum()&&(i[u.id]=u)})),i}(t.graphs,n,i,a),u=new N({graphs:s,minSupport:t.minSupport,maxNodeNum:t.maxNodeNum,minNodeNum:t.minNodeNum,top:t.top,verbose:t.verbose,directed:n});return u.run(),function(t,e,n){var r=[];return t.forEach((function(t){var i={nodes:[],edges:[]};t.nodes.forEach((function(t){var n;i.nodes.push(((n={id:""+t.id})[e]=t.label,n))})),t.edges.forEach((function(t){var e;i.edges.push(((e={source:""+t.from,target:""+t.to})[n]=t.label,e))})),r.push(i)})),r}(u.frequentSubgraphs,i,a)}({graphs:k,nodeLabelProp:o,edgeLabelProp:a,minSupport:1,minNodeNum:1,maxNodeNum:4,directed:n}).slice(0,10),A=M.length,T=[];M.forEach((function(t,e){T[e]={},Object.keys(k).forEach((function(n){var r=k[n],i=F(r,t,o,a);T[e][n]=i}))}));var C=function(t,e,n){for(var r=1/0,i=0,o=function(e){var n=t[e],o=Object.keys(n).sort((function(t,e){return n[t]-n[e]})),a=[];o.forEach((function(t,e){a[e%10]||(a[e%10]={graphs:[],totalCount:0,aveCount:0}),a[e%10].graphs.push(t),a[e%10].totalCount+=n[t]}));var s=0,u=[];a.forEach((function(t){var e=t.totalCount/t.graphs.length;t.aveCount=e,u.push(e);var r=0,i=t.length;t.graphs.forEach((function(e,i){var o=n[e];t.graphs.forEach((function(t,e){i!==e&&(r+=Math.abs(o-n[t]))}))})),s+=r/=i*(i-1)/2})),s/=a.length;var c=0;u.forEach((function(t,e){u.forEach((function(n,r){e!==r&&(c+=Math.abs(t-n))})),c/=u.length*(u.length-1)/2}));var f=c-s;r<f&&(r=f,i=e)},a=0;a<e;a++)o(a);return{structure:n[i],structureCountMap:t[i]}}(T,A,M),P=C.structure,j=C.structureCountMap,D=e.nodes[0],W=D[o],X=v[W],Y={},H={},q={},K={},Z={};Object.keys(x).forEach((function(n,r){Z[n]=[];var i=-1/0,s=x[n],u={};s.forEach((function(t){var e=h[D.id+"-"+t.id];e&&Z[n].push(e),i<e&&(i=e),u[D.id+"-"+t.id]={start:0,end:m[t.id].idx,distance:e}})),Z[n]=Z[n].sort((function(t,e){return t-e})),H=G(u,_,e,H);var c=[];if(Object.keys(u).forEach((function(t){if(q[t])c.push(q[t]);else{var e=H[t];q[t]=F(e,P,o,a),c.push(q[t])}})),c=c.sort((function(t,e){return e-t})),K[D.id+"-"+n]=c,n!==W)for(var f=function(e){var r=X[e],i=E[p[r.id].idx],s=i.nodeLabelCountMap[n],u=x[n].length;if(!s||s.count<u)return X.splice(e,1),"continue";for(var f=!1,h=0;h<u;h++)if(s.dists[h]>Z[n][h]){f=!0;break}if(f)return X.splice(e,1),"continue";var d={};i.neighbors.forEach((function(t){var e=l[r.id+"-"+t.id];d[r.id+"-"+t.id]={start:p[r.id].idx,end:p[t.id].idx,distance:e}})),k=G(d,E,t,k);var g=[];Object.keys(d).forEach((function(t){if(j[t])g.push(j[t]);else{var e=k[t];j[t]=F(e,P,o,a),g.push(j[t])}})),g=g.sort((function(t,e){return e-t}));var v=!1;for(h=0;h<u;h++)if(g[h]<c[h]){v=!0;break}return v?(X.splice(e,1),"continue"):void 0},d=X.length-1;d>=0;d--)f(d)}));var Q=[];X.forEach((function(n){for(var r=p[n.id].idx,s=B(t.nodes,c[r],r,o,i).neighbors,f=s.length,h=!1,d=function(r){if(s.length+1<e.nodes.length)return h=!0,{value:void 0};var i=s[r],u=i[o];if(!x[u]||!x[u].length)return s.splice(r,1),"continue";var c=n.id+"-"+i.id;if(!Z[u]||!Z[u].length)return s.splice(r,1),"continue";var f=l[c];if(f>Z[u][Z[u].length-1])return s.splice(r,1),"continue";var d=j[c]?j[c]:function(t,e,n,r,i,o,a,s,u,c,f){var l,h=e.id+"-"+n.id;if(c&&c[h])return c[h];var d=f?f[h]:void 0;if(!d){var p=((l={})[h]={start:r[e.id].idx,end:r[n.id].idx,distance:i},l);d=(f=G(p,o,t,f))[h]}return F(d,a,s,u)}(t,n,i,p,f,E,P,o,a,j,k),g=D.id+"-"+u;if(d<K[g][K[g].length-1])return s.splice(r,1),"continue";var v=Y[u];return void 0===v&&(v=1/0,x[u].forEach((function(t){var e=m[t.id].degree;v>e&&(v=e)})),Y[u]=v),p[i.id].degree<v?(s.splice(r,1),"continue"):void 0},g=f-1;g>=0;g--){var v=d(g);if("object"==u(v))return v.value}h||Q.push({nodes:[n].concat(s)})}));var J=b(e,D.id,!1).length,$={};n?(Object.keys(J).forEach((function(t){var e=m[t].node[o];$[e]?$[e].push(J[t]):$[e]=[J[t]]})),Object.keys($).forEach((function(t){$[t].sort((function(t,e){return t-e}))}))):$=Z;for(var tt=function(r){var i=Q[r],s=i.nodes[0],u={},c={};i.nodes.forEach((function(t,e){c[t.id]={idx:e,node:t,degree:0};var n=t[o];u[n]?u[n]++:u[n]=1}));var f=[],l={};t.edges.forEach((function(t){c[t.source]&&c[t.target]&&(f.push(t),l[t[a]]?l[t[a]]++:l[t[a]]=1,c[t.source].degree++,c[t.target].degree++)}));for(var h=Object.keys(S).length,d=!1,g=0;g<h;g++){var v=Object.keys(S)[g];if(!l[v]||l[v]<S[v].length){d=!0;break}}if(d)return Q.splice(r,1),"continue";var y=f.length;if(y<e.edges.length)return Q.splice(r,1),"break";var w=!1,E=function(t){var e=f[t],r=e[a],i=S[r];if(!i||!i.length)return l[r]--,i&&l[r]<i.length?(w=!0,"break"):(f.splice(t,1),c[e.source].degree--,c[e.target].degree--,"continue");var s=c[e.source].node[o],u=c[e.target].node[o],h=!1;return i.forEach((function(t){var e=m[t.source].node,r=m[t.target].node;e[o]===s&&r[o]===u&&(h=!0),n||e[o]!==u||r[o]!==s||(h=!0)})),h?void 0:(l[r]--,i&&l[r]<i.length?(w=!0,"break"):(f.splice(t,1),c[e.source].degree--,c[e.target].degree--,"continue"))};for(g=y-1;g>=0&&"break"!==E(g);g--);if(w)return Q.splice(r,1),"continue";i.edges=f;var _=b(i,i.nodes[0].id,!1).length;if(Object.keys(_).reverse().forEach((function(t){if(t!==i.nodes[0].id&&!w){if(_[t]===1/0){var e=c[t].node[o];if(u[e]--,u[e]<x[e].length)return void(w=!0);var n=i.nodes.indexOf(c[t].node);return i.nodes.splice(n,1),void(c[t]=void 0)}var r=p[t].node[o];if(!$[r]||!$[r].length||_[t]>$[r][$[r].length-1]){if(e=c[t].node[o],u[e]--,u[e]<x[e].length)return void(w=!0);n=i.nodes.indexOf(c[t].node),i.nodes.splice(n,1),c[t]=void 0}}})),w)return Q.splice(r,1),"continue";for(var O=!0,k=0;O&&!w;){if(O=!1,c[s.id].degree<m[D.id].degree){w=!0;break}if(u[s[o]]<x[s[o]].length){w=!0;break}for(var M=i.nodes.length-1;M>=0;M--){var A=i.nodes[M],T=c[A.id].degree,C=A[o];if(T<Y[C]){if(u[A[o]]--,u[A[o]]<x[A[o]].length){w=!0;break}i.nodes.splice(M,1),c[A.id]=void 0,O=!0}}if(w||!O&&0!==k)break;for(var I=(y=f.length)-1;I>=0;I--){var P=f[I];if(!c[P.source]||!c[P.target]){f.splice(I,1);var j=P[a];if(l[j]--,c[P.source]&&c[P.source].degree--,c[P.target]&&c[P.target].degree--,S[j]&&l[j]<S[j].length){w=!0;break}O=!0}}k++}return w||w||i.nodes.length<e.nodes.length||f.length<e.edges.length?(Q.splice(r,1),"continue"):void 0},et=Q.length-1;et>=0&&"break"!==tt(et);et--);var nt=Q.length,rt=function(t){var e=Q[t],n={};e.edges.forEach((function(t){var e=t.source+"-"+t.target+"-"+t.label;n[e]?n[e]++:n[e]=1}));for(var r=function(t){var e=Q[t],r={};e.edges.forEach((function(t){var e=t.source+"-"+t.target+"-"+t.label;r[e]?r[e]++:r[e]=1}));var i=!0;Object.keys(r).length!==Object.keys(n).length?i=!1:Object.keys(n).forEach((function(t){r[t]!==n[t]&&(i=!1)})),i&&Q.splice(t,1)},i=nt-1;i>t;i--)r(i);nt=Q.length};for(et=0;et<=nt-1;et++)rt(et);return Q}}},getAdjMatrixAsync:function(t,e){return Y("getAdjMatrix").apply(void 0,[t,e])},connectedComponentAsync:function(t,e){return Y("connectedComponent").apply(void 0,[t,e])},getDegreeAsync:function(t){return Y("getDegree")(t)},getInDegreeAsync:function(t,e){return Y("getInDegree")(t,e)},getOutDegreeAsync:function(t,e){return Y("getOutDegree")(t,e)},detectCycleAsync:function(t){return Y("detectCycle")(t)},dijkstraAsync:function(t,e,n,r){return Y("dijkstra").apply(void 0,[t,e,n,r])},findAllPathAsync:function(t,e,n,r){return Y("findAllPath").apply(void 0,[t,e,n,r])},findShortestPathAsync:function(t,e,n,r,i){return Y("findShortestPath").apply(void 0,[t,e,n,r,i])},floydWarshallAsync:function(t,e){return Y("floydWarshall").apply(void 0,[t,e])},labelPropagationAsync:function(t,e,n,r){return Y("labelPropagation")(t,e,n,r)},louvainAsync:function(t,e,n,r){return Y("louvain")(t,e,n,r)},minimumSpanningTreeAsync:function(t,e,n){return Y("minimumSpanningTree").apply(void 0,[t,e,n])},pageRankAsync:function(t,e,n){return Y("pageRank").apply(void 0,[t,e,n])},getNeighborsAsync:function(t,e,n){return Y("getNeighbors").apply(void 0,[t,e,n])},GADDIAsync:function(t,e,n,r,i,o,a){return void 0===n&&(n=!1),void 0===o&&(o="cluster"),void 0===a&&(a="cluster"),Y("GADDI").apply(void 0,[t,e,n,r,i,o,a])}}}},i={};function o(t){if(i[t])return i[t].exports;var e=i[t]={exports:{}};return r[t](e,e.exports,o),e.exports}return o.m=r,o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,{a:e}),e},o.d=function(t,e){for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.f={},o.e=function(t){return Promise.all(Object.keys(o.f).reduce((function(e,n){return o.f[n](t,e),e}),[]))},o.u=function(t){return t+".min.js"},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e={},n="Algorithm:",o.l=function(t,r,i,a){if(e[t])e[t].push(r);else{var s,u;if(void 0!==i)for(var c=document.getElementsByTagName("script"),f=0;f<c.length;f++){var l=c[f];if(l.getAttribute("src")==t||l.getAttribute("data-webpack")==n+i){s=l;break}}s||(u=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,o.nc&&s.setAttribute("nonce",o.nc),s.setAttribute("data-webpack",n+i),s.src=t),e[t]=[r];var h=function(n,r){s.onerror=s.onload=null,clearTimeout(d);var i=e[t];if(delete e[t],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((function(t){return t(r)})),n)return n(r)},d=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),u&&document.head.appendChild(s)}},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.p="./dist",function(){var e={826:0};o.f.j=function(t,n){var r=o.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise((function(n,i){r=e[t]=[n,i]}));n.push(r[2]=i);var a=o.p+o.u(t),s=new Error;o.l(a,(function(n){if(o.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\\n("+i+": "+a+")",s.name="ChunkLoadError",s.type=i,s.request=a,r[1](s)}}),"chunk-"+t,t)}};var n=function(t,n){for(var r,i,s=a(n,3),u=s[0],c=s[1],f=s[2],l=0,h=[];l<u.length;l++)i=u[l],o.o(e,i)&&e[i]&&h.push(e[i][0]),e[i]=0;for(r in c)o.o(c,r)&&(o.m[r]=c[r]);for(f&&f(o),t&&t(n);h.length;)h.shift()()},r=t.webpackChunkAlgorithm=t.webpackChunkAlgorithm||[];r.forEach(n.bind(null,0)),r.push=n.bind(null,r.push.bind(r))}(),o(59)}().default},"object"==u(e)&&"object"==u(t)?t.exports=o():(r=[],void 0===(i="function"==typeof(n=o)?n.apply(e,r):n)||(t.exports=i))}).call(this,n(72)(t))},function(t,e,n){"use strict";n.r(e),n.d(e,"catmullRomToBezier",(function(){return u})),n.d(e,"fillPath",(function(){return C})),n.d(e,"fillPathByDiff",(function(){return j})),n.d(e,"formatPath",(function(){return R})),n.d(e,"intersection",(function(){return M})),n.d(e,"parsePathArray",(function(){return v})),n.d(e,"parsePathString",(function(){return s})),n.d(e,"pathToAbsolute",(function(){return f})),n.d(e,"pathToCurve",(function(){return p})),n.d(e,"rectPath",(function(){return S}));var r=n(0),i="\\t\\n\\v\\f\\r Â áš€á Žâ€€â€â€‚         âŸã€€\\u2028\\u2029",o=new RegExp("([a-z])["+i+",]*((-?\\\\d*\\\\.?\\\\d*(?:e[\\\\-+]?\\\\d+)?["+i+"]*,?["+i+"]*)+)","ig"),a=new RegExp("(-?\\\\d*\\\\.?\\\\d*(?:e[\\\\-+]?\\\\d+)?)["+i+"]*,?["+i+"]*","ig"),s=function(t){if(!t)return null;if(Object(r.m)(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(o,(function(r,i,o){var s=[],u=i.toLowerCase();if(o.replace(a,(function(t,e){e&&s.push(+e)})),"m"===u&&s.length>2&&(n.push([i].concat(s.splice(0,2))),u="l",i="m"===i?"l":"L"),"o"===u&&1===s.length&&n.push([i,s[0]]),"r"===u)n.push([i].concat(s));else for(;s.length>=e[u]&&(n.push([i].concat(s.splice(0,e[u]))),e[u]););return t})),n},u=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var o=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?o[3]={x:+t[0],y:+t[1]}:i-2===r&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?o[3]=o[2]:r||(o[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n},c=function(t,e,n,r,i){var o=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var a=Math.PI/180,s=t+n*Math.cos(-r*a),u=t+n*Math.cos(-i*a);o=[["M",s,e+n*Math.sin(-r*a)],["A",n,n,0,+(i-r>180),0,u,e+n*Math.sin(-i*a)]]}else o=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return o},f=function(t){if(!(t=s(t))||!t.length)return[["M",0,0]];var e,n,r=[],i=0,o=0,a=0,f=0,l=0;"M"===t[0][0]&&(a=i=+t[0][1],f=o=+t[0][2],l++,r[0]=["M",i,o]);for(var h=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),d=void 0,p=void 0,g=l,v=t.length;g<v;g++){if(r.push(d=[]),(e=(p=t[g])[0])!==e.toUpperCase())switch(d[0]=e.toUpperCase(),d[0]){case"A":d[1]=p[1],d[2]=p[2],d[3]=p[3],d[4]=p[4],d[5]=p[5],d[6]=+p[6]+i,d[7]=+p[7]+o;break;case"V":d[1]=+p[1]+o;break;case"H":d[1]=+p[1]+i;break;case"R":for(var y=2,m=(n=[i,o].concat(p.slice(1))).length;y<m;y++)n[y]=+n[y]+i,n[++y]=+n[y]+o;r.pop(),r=r.concat(u(n,h));break;case"O":r.pop(),(n=c(i,o,p[1],p[2])).push(n[0]),r=r.concat(n);break;case"U":r.pop(),r=r.concat(c(i,o,p[1],p[2],p[3])),d=["U"].concat(r[r.length-1].slice(-2));break;case"M":a=+p[1]+i,f=+p[2]+o;break;default:for(y=1,m=p.length;y<m;y++)d[y]=+p[y]+(y%2?i:o)}else if("R"===e)n=[i,o].concat(p.slice(1)),r.pop(),r=r.concat(u(n,h)),d=["R"].concat(p.slice(-2));else if("O"===e)r.pop(),(n=c(i,o,p[1],p[2])).push(n[0]),r=r.concat(n);else if("U"===e)r.pop(),r=r.concat(c(i,o,p[1],p[2],p[3])),d=["U"].concat(r[r.length-1].slice(-2));else for(var b=0,x=p.length;b<x;b++)d[b]=p[b];if("O"!==(e=e.toUpperCase()))switch(d[0]){case"Z":i=+a,o=+f;break;case"H":i=d[1];break;case"V":o=d[1];break;case"M":a=d[d.length-2],f=d[d.length-1];break;default:i=d[d.length-2],o=d[d.length-1]}}return r},l=function(t,e,n,r){return[t,e,n,r,n,r]},h=function(t,e,n,r,i,o){return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*i+2/3*n,1/3*o+2/3*r,i,o]},d=function t(e,n,r,i,o,a,s,u,c,f){r===i&&(r+=1);var l,h,d,p,g,v=120*Math.PI/180,y=Math.PI/180*(+o||0),m=[],b=function(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}};if(f)h=f[0],d=f[1],p=f[2],g=f[3];else{e=(l=b(e,n,-y)).x,n=l.y,u=(l=b(u,c,-y)).x,c=l.y,e===u&&n===c&&(u+=1,c+=1);var x=(e-u)/2,w=(n-c)/2,S=x*x/(r*r)+w*w/(i*i);S>1&&(r*=S=Math.sqrt(S),i*=S);var E=r*r,_=i*i,O=(a===s?-1:1)*Math.sqrt(Math.abs((E*_-E*w*w-_*x*x)/(E*w*w+_*x*x)));p=O*r*w/i+(e+u)/2,g=O*-i*x/r+(n+c)/2,h=Math.asin(((n-g)/i).toFixed(9)),d=Math.asin(((c-g)/i).toFixed(9)),h=e<p?Math.PI-h:h,d=u<p?Math.PI-d:d,h<0&&(h=2*Math.PI+h),d<0&&(d=2*Math.PI+d),s&&h>d&&(h-=2*Math.PI),!s&&d>h&&(d-=2*Math.PI)}var k=d-h;if(Math.abs(k)>v){var M=d,A=u,T=c;d=h+v*(s&&d>h?1:-1),m=t(u=p+r*Math.cos(d),c=g+i*Math.sin(d),r,i,o,0,s,A,T,[d,M,p,g])}k=d-h;var C=Math.cos(h),I=Math.sin(h),P=Math.cos(d),j=Math.sin(d),D=Math.tan(k/4),N=4/3*r*D,R=4/3*i*D,L=[e,n],B=[e+N*I,n-R*C],G=[u+N*j,c-R*P],F=[u,c];if(B[0]=2*L[0]-B[0],B[1]=2*L[1]-B[1],f)return[B,G,F].concat(m);for(var U=[],z=0,V=(m=[B,G,F].concat(m).join().split(",")).length;z<V;z++)U[z]=z%2?b(m[z-1],m[z],y).y:b(m[z],m[z+1],y).x;return U},p=function(t,e){var n,r=f(t),i=e&&f(e),o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=[],u=[],c="",p="",g=function(t,e,n){var r,i;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(d.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(r=2*e.x-e.bx,i=2*e.y-e.by):(r=e.x,i=e.y),t=["C",r,i].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(h(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(h(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(l(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(l(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(l(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(l(e.x,e.y,e.X,e.Y))}return t},v=function(t,e){if(t[e].length>7){t[e].shift();for(var o=t[e];o.length;)s[e]="A",i&&(u[e]="A"),t.splice(e++,0,["C"].concat(o.splice(0,6)));t.splice(e,1),n=Math.max(r.length,i&&i.length||0)}},y=function(t,e,o,a,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",a.x,a.y]),o.bx=0,o.by=0,o.x=t[s][1],o.y=t[s][2],n=Math.max(r.length,i&&i.length||0))};n=Math.max(r.length,i&&i.length||0);for(var m=0;m<n;m++){r[m]&&(c=r[m][0]),"C"!==c&&(s[m]=c,m&&(p=s[m-1])),r[m]=g(r[m],o,p),"A"!==s[m]&&"C"===c&&(s[m]="C"),v(r,m),i&&(i[m]&&(c=i[m][0]),"C"!==c&&(u[m]=c,m&&(p=u[m-1])),i[m]=g(i[m],a,p),"A"!==u[m]&&"C"===c&&(u[m]="C"),v(i,m)),y(r,i,o,a,m),y(i,r,a,o,m);var b=r[m],x=i&&i[m],w=b.length,S=i&&x.length;o.x=b[w-2],o.y=b[w-1],o.bx=parseFloat(b[w-4])||o.x,o.by=parseFloat(b[w-3])||o.y,a.bx=i&&(parseFloat(x[S-4])||a.x),a.by=i&&(parseFloat(x[S-3])||a.y),a.x=i&&x[S-2],a.y=i&&x[S-1]}return i?[r,i]:r},g=/,?([a-z]),?/gi,v=function(t){return t.join(",").replace(g,"$1")},y=function(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n},m=function(t,e,n,r,i,o,a,s,u){null===u&&(u=1);for(var c=(u=u>1?1:u<0?0:u)/2,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],l=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],h=0,d=0;d<12;d++){var p=c*f[d]+c,g=y(p,t,n,i,a),v=y(p,e,r,o,s),m=g*g+v*v;h+=l[d]*Math.sqrt(m)}return c*h},b=function(t,e,n,r,i,o,a,s){for(var u,c,f,l,h=[],d=[[],[]],p=0;p<2;++p)if(0===p?(c=6*t-12*n+6*i,u=-3*t+9*n-9*i+3*a,f=3*n-3*t):(c=6*e-12*r+6*o,u=-3*e+9*r-9*o+3*s,f=3*r-3*e),Math.abs(u)<1e-12){if(Math.abs(c)<1e-12)continue;(l=-f/c)>0&&l<1&&h.push(l)}else{var g=c*c-4*f*u,v=Math.sqrt(g);if(!(g<0)){var y=(-c+v)/(2*u);y>0&&y<1&&h.push(y);var m=(-c-v)/(2*u);m>0&&m<1&&h.push(m)}}for(var b,x=h.length,w=x;x--;)b=1-(l=h[x]),d[0][x]=b*b*b*t+3*b*b*l*n+3*b*l*l*i+l*l*l*a,d[1][x]=b*b*b*e+3*b*b*l*r+3*b*l*l*o+l*l*l*s;return d[0][w]=t,d[1][w]=e,d[0][w+1]=a,d[1][w+1]=s,d[0].length=d[1].length=w+2,{min:{x:Math.min.apply(0,d[0]),y:Math.min.apply(0,d[1])},max:{x:Math.max.apply(0,d[0]),y:Math.max.apply(0,d[1])}}},x=function(t,e,n,r,i,o,a,s){if(!(Math.max(t,n)<Math.min(i,a)||Math.min(t,n)>Math.max(i,a)||Math.max(e,r)<Math.min(o,s)||Math.min(e,r)>Math.max(o,s))){var u=(t-n)*(o-s)-(e-r)*(i-a);if(u){var c=((t*r-e*n)*(i-a)-(t-n)*(i*s-o*a))/u,f=((t*r-e*n)*(o-s)-(e-r)*(i*s-o*a))/u,l=+c.toFixed(2),h=+f.toFixed(2);if(!(l<+Math.min(t,n).toFixed(2)||l>+Math.max(t,n).toFixed(2)||l<+Math.min(i,a).toFixed(2)||l>+Math.max(i,a).toFixed(2)||h<+Math.min(e,r).toFixed(2)||h>+Math.max(e,r).toFixed(2)||h<+Math.min(o,s).toFixed(2)||h>+Math.max(o,s).toFixed(2)))return{x:c,y:f}}}},w=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},S=function(t,e,n,r,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var o=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return o.parsePathArray=v,o},E=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:S(t,e,n,r),vb:[t,e,n,r].join(" ")}},_=function(t,e,n,i,o,a,s,u){Object(r.m)(t)||(t=[t,e,n,i,o,a,s,u]);var c=b.apply(null,t);return E(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)},O=function(t,e,n,r,i,o,a,s,u){var c=1-u,f=Math.pow(c,3),l=Math.pow(c,2),h=u*u,d=h*u,p=t+2*u*(n-t)+h*(i-2*n+t),g=e+2*u*(r-e)+h*(o-2*r+e),v=n+2*u*(i-n)+h*(a-2*i+n),y=r+2*u*(o-r)+h*(s-2*o+r);return{x:f*t+3*l*u*n+3*c*u*u*i+d*a,y:f*e+3*l*u*r+3*c*u*u*o+d*s,m:{x:p,y:g},n:{x:v,y:y},start:{x:c*t+u*n,y:c*e+u*r},end:{x:c*i+u*a,y:c*o+u*s},alpha:90-180*Math.atan2(p-v,g-y)/Math.PI}},k=function(t,e,n){if(!function(t,e){return t=E(t),e=E(e),w(e,t.x,t.y)||w(e,t.x2,t.y)||w(e,t.x,t.y2)||w(e,t.x2,t.y2)||w(t,e.x,e.y)||w(t,e.x2,e.y)||w(t,e.x,e.y2)||w(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}(_(t),_(e)))return n?0:[];for(var r=~~(m.apply(0,t)/8),i=~~(m.apply(0,e)/8),o=[],a=[],s={},u=n?0:[],c=0;c<r+1;c++){var f=O.apply(0,t.concat(c/r));o.push({x:f.x,y:f.y,t:c/r})}for(c=0;c<i+1;c++){f=O.apply(0,e.concat(c/i));a.push({x:f.x,y:f.y,t:c/i})}for(c=0;c<r;c++)for(var l=0;l<i;l++){var h=o[c],d=o[c+1],p=a[l],g=a[l+1],v=Math.abs(d.x-h.x)<.001?"y":"x",y=Math.abs(g.x-p.x)<.001?"y":"x",b=x(h.x,h.y,d.x,d.y,p.x,p.y,g.x,g.y);if(b){if(s[b.x.toFixed(4)]===b.y.toFixed(4))continue;s[b.x.toFixed(4)]=b.y.toFixed(4);var S=h.t+Math.abs((b[v]-h[v])/(d[v]-h[v]))*(d.t-h.t),k=p.t+Math.abs((b[y]-p[y])/(g[y]-p[y]))*(g.t-p.t);S>=0&&S<=1&&k>=0&&k<=1&&(n?u+=1:u.push({x:b.x,y:b.y,t1:S,t2:k}))}}return u},M=function(t,e){return function(t,e,n){var r,i,o,a,s,u,c,f,l,h;t=p(t),e=p(e);for(var d=n?0:[],g=0,v=t.length;g<v;g++){var y=t[g];if("M"===y[0])r=s=y[1],i=u=y[2];else{"C"===y[0]?(l=[r,i].concat(y.slice(1)),r=l[6],i=l[7]):(l=[r,i,r,i,s,u,s,u],r=s,i=u);for(var m=0,b=e.length;m<b;m++){var x=e[m];if("M"===x[0])o=c=x[1],a=f=x[2];else{"C"===x[0]?(h=[o,a].concat(x.slice(1)),o=h[6],a=h[7]):(h=[o,a,o,a,c,f,c,f],o=c,a=f);var w=k(l,h,n);if(n)d+=w;else{for(var S=0,E=w.length;S<E;S++)w[S].segment1=g,w[S].segment2=m,w[S].bez1=l,w[S].bez2=h;d=d.concat(w)}}}}}return d}(t,e)};function A(t,e){var n=[],r=[];return t.length&&function t(e,i){if(1===e.length)n.push(e[0]),r.push(e[0]);else{for(var o=[],a=0;a<e.length-1;a++)0===a&&n.push(e[0]),a===e.length-2&&r.push(e[a+1]),o[a]=[(1-i)*e[a][0]+i*e[a+1][0],(1-i)*e[a][1]+i*e[a+1][1]];t(o,i)}}(t,e),{left:n,right:r.reverse()}}var T=function(t,e,n){if(1===n)return[[].concat(t)];var r=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])r=r.concat(function(t,e,n){var r=[[t[1],t[2]]];n=n||2;var i=[];"A"===e[0]?(r.push(e[6]),r.push(e[7])):"C"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]]),r.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]])):r.push([e[1],e[2]]);for(var o=r,a=1/n,s=0;s<n-1;s++){var u=A(o,a/(1-a*s));i.push(u.left),o=u.right}return i.push(o),i.map((function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1])}))}(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var o=0;o<=n-1;o++)r.push(i)}return r},C=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,o=[];if(1===t.length&&"M"===t[0][0]){for(var a=0;a<r-n;a++)t.push(t[0]);return t}for(a=0;a<r;a++){var s=Math.floor(i*a);o[s]=(o[s]||0)+1}var u=o.reduce((function(e,r,i){return i===n?e.concat(t[n]):e.concat(T(t[i],t[i+1],r))}),[]);return u.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||u.push("Z"),u},I=function(t,e){if(t.length!==e.length)return!1;var n=!0;return Object(r.f)(t,(function(t,r){if(t!==e[r])return n=!1,!1})),n};function P(t,e,n){var r=null,i=n;return e<i&&(i=e,r="add"),t<i&&(i=t,r="del"),{type:r,min:i}}var j=function(t,e){var n=function(t,e){var n,r,i=t.length,o=e.length,a=0;if(0===i||0===o)return null;for(var s=[],u=0;u<=i;u++)s[u]=[],s[u][0]={min:u};for(var c=0;c<=o;c++)s[0][c]={min:c};for(u=1;u<=i;u++){n=t[u-1];for(c=1;c<=o;c++){r=e[c-1],a=I(n,r)?0:1;var f=s[u-1][c].min+1,l=s[u][c-1].min+1,h=s[u-1][c-1].min+a;s[u][c]=P(f,l,h)}}return s}(t,e),r=t.length,i=e.length,o=[],a=1,s=1;if(n[r][i].min!==r){for(var u=1;u<=r;u++){var c=n[u][u].min;s=u;for(var f=a;f<=i;f++)n[u][f].min<c&&(c=n[u][f].min,s=f);a=s,n[u][a].type&&o.push({index:u-1,type:n[u][a].type})}for(u=o.length-1;u>=0;u--)a=o[u].index,"add"===o[u].type?t.splice(a,0,[].concat(t[a])):t.splice(a,1)}var l=i-(r=t.length);if(r<i)for(u=0;u<l;u++)"z"===t[r-1][0]||"Z"===t[r-1][0]?t.splice(r-2,0,t[r-2]):t.push(t[r-1]),r+=1;return t};function D(t,e,n){for(var r,i=[].concat(t),o=1/(n+1),a=N(e)[0],s=1;s<=n;s++)o*=s,0===(r=Math.floor(t.length*o))?i.unshift([a[0]*o+t[r][0]*(1-o),a[1]*o+t[r][1]*(1-o)]):i.splice(r,0,[a[0]*o+t[r][0]*(1-o),a[1]*o+t[r][1]*(1-o)]);return i}function N(t){var e=[];switch(t[0]){case"M":case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":case"V":e.push([t[1],t[1]])}return e}var R=function(t,e){if(t.length<=1)return t;for(var n,r=0;r<e.length;r++)if(t[r][0]!==e[r][0])switch(n=N(t[r]),e[r][0]){case"M":t[r]=["M"].concat(n[0]);break;case"L":t[r]=["L"].concat(n[0]);break;case"A":t[r]=[].concat(e[r]),t[r][6]=n[0][0],t[r][7]=n[0][1];break;case"Q":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=D(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){t[r]=e[r];break}n=D(n,t[r-1],2)}t[r]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=D(n,t[r-1],1)}t[r]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[r]=e[r]}return t}},function(t,e,n){"use strict";n(57),n(21);var r=n(269);n.d(e,"Canvas",(function(){return r.a}));n(78),n(92)},function(t,e,n){var r=n(86),i=n(146);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=n(346),o=n(356),a=n(67),s=n(29),u=n(363);t.exports=function(t){return"function"==typeof t?t:null==t?a:"object"==r(t)?s(t)?o(t[0],t[1]):i(t):u(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TargetTypeEnum=e.BindingTypeEnum=e.BindingScopeEnum=void 0;e.BindingScopeEnum={Request:"Request",Singleton:"Singleton",Transient:"Transient"};e.BindingTypeEnum={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"};e.TargetTypeEnum={ClassProperty:"ClassProperty",ConstructorArgument:"ConstructorArgument",Variable:"Variable"}},function(t,e,n){"use strict";n.r(e),n.d(e,"Base",(function(){return c})),n.d(e,"Circle",(function(){return f})),n.d(e,"Ellipse",(function(){return h})),n.d(e,"Image",(function(){return p})),n.d(e,"Line",(function(){return m})),n.d(e,"Marker",(function(){return S})),n.d(e,"Path",(function(){return j})),n.d(e,"Polygon",(function(){return N})),n.d(e,"Polyline",(function(){return R})),n.d(e,"Rect",(function(){return B})),n.d(e,"Text",(function(){return G}));var r={};n.r(r),n.d(r,"Base",(function(){return c})),n.d(r,"Circle",(function(){return f})),n.d(r,"Ellipse",(function(){return h})),n.d(r,"Image",(function(){return p})),n.d(r,"Line",(function(){return m})),n.d(r,"Marker",(function(){return S})),n.d(r,"Path",(function(){return j})),n.d(r,"Polygon",(function(){return N})),n.d(r,"Polyline",(function(){return R})),n.d(r,"Rect",(function(){return B})),n.d(r,"Text",(function(){return G}));var i=n(1),o=n(21),a=n(16),s=n(30),u=n(78),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.b)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return r},e.prototype.getGroupBase=function(){return u.a},e.prototype.onCanvasChange=function(t){Object(s.h)(this,t)},e.prototype.calculateBBox=function(){var t=this.get("type"),e=this.getHitLineWidth(),n=Object(o.getBBoxMethod)(t)(this),r=e/2,i=n.x-r,a=n.y-r,s=n.x+n.width+r,u=n.y+n.height+r;return{x:i,minX:i,y:a,minY:a,width:n.width+e,height:n.height+e,maxX:s,maxY:u}},e.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},e.prototype.isStroke=function(){return!!this.attrs.stroke},e.prototype._applyClip=function(t,e){e&&(t.save(),Object(s.a)(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.draw=function(t,e){var n=this.cfg.clipShape;if(e){if(!1===this.cfg.refresh)return void this.set("hasChanged",!1);var r=this.getCanvasBBox();if(!Object(a.f)(e,r))return this.set("hasChanged",!1),void(this.cfg.isInView&&this._afterDraw())}t.save(),Object(s.a)(t,this),this._applyClip(t,n),this.drawPath(t),t.restore(),this._afterDraw()},e.prototype.getCanvasViewBox=function(){var t=this.cfg.canvas;return t?t.getViewRange():null},e.prototype.cacheCanvasBBox=function(){var t=this.getCanvasViewBox();if(t){var e=this.getCanvasBBox(),n=Object(a.f)(e,t);this.set("isInView",n),n?this.set("cacheCanvasBBox",e):this.set("cacheCanvasBBox",null)}},e.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},e.prototype.drawPath=function(t){this.createPath(t),this.strokeAndFill(t),this.afterDrawPath(t)},e.prototype.fill=function(t){t.fill()},e.prototype.stroke=function(t){t.stroke()},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,o=e.fillOpacity;this.isFill()&&(Object(a.i)(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=r)),this.isStroke()&&n>0&&(Object(a.i)(i)||1===i||(t.globalAlpha=i),this.stroke(t)),this.afterDrawPath(t)},e.prototype.createPath=function(t){},e.prototype.afterDrawPath=function(t){},e.prototype.isInShape=function(t,e){var n=this.isStroke(),r=this.isFill(),i=this.getHitLineWidth();return this.isInStrokeOrPath(t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t.lineWidth+t.lineAppendWidth},e}(o.AbstractShape),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.b)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),s=o.x,u=o.y,c=o.r,f=i/2,l=Object(a.b)(s,u,t,e);return r&&n?l<=c+f:r?l<=c:!!n&&(l>=c-f&&l<=c+f)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.r;t.beginPath(),t.arc(n,r,i,0,2*Math.PI,!1),t.closePath()},e}(c);function l(t,e,n,r){return t/(n*n)+e/(r*r)}var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.b)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),a=i/2,s=o.x,u=o.y,c=o.rx,f=o.ry,h=(t-s)*(t-s),d=(e-u)*(e-u);return r&&n?l(h,d,c+a,f+a)<=1:r?l(h,d,c,f)<=1:!!n&&(l(h,d,c-a,f-a)>=1&&l(h,d,c+a,f+a)<=1)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.rx,o=e.ry;if(t.beginPath(),t.ellipse)t.ellipse(n,r,i,o,0,0,2*Math.PI,!1);else{var a=i>o?i:o,s=i>o?1:i/o,u=i>o?o/i:1;t.save(),t.translate(n,r),t.scale(s,u),t.arc(0,0,a,0,2*Math.PI),t.restore(),t.closePath()}},e}(c);function d(t){return t instanceof HTMLElement&&Object(a.k)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()}var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.b)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{x:0,y:0,width:0,height:0})},e.prototype.initAttrs=function(t){this._setImage(t.img)},e.prototype.isStroke=function(){return!1},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._afterLoading=function(){if(!0===this.get("toDraw")){var t=this.get("canvas");t?t.draw():this.createPath(this.get("context"))}},e.prototype._setImage=function(t){var e=this,n=this.attrs;if(Object(a.k)(t)){var r=new Image;r.onload=function(){if(e.destroyed)return!1;e.attr("img",r),e.set("loading",!1),e._afterLoading();var t=e.get("callback");t&&t.call(e)},r.crossOrigin="Anonymous",r.src=t,this.set("loading",!0)}else t instanceof Image?(n.width||(n.width=t.width),n.height||(n.height=t.height)):d(t)&&(n.width||(n.width=Number(t.getAttribute("width"))),n.height||(n.height,Number(t.getAttribute("height"))))},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),"img"===e&&this._setImage(n)},e.prototype.createPath=function(t){if(this.get("loading"))return this.set("toDraw",!0),void this.set("context",t);var e=this.attr(),n=e.x,r=e.y,i=e.width,o=e.height,s=e.sx,u=e.sy,c=e.swidth,f=e.sheight,l=e.img;(l instanceof Image||d(l))&&(Object(a.i)(s)||Object(a.i)(u)||Object(a.i)(c)||Object(a.i)(f)?t.drawImage(l,n,r,i,o):t.drawImage(l,s,u,c,f,n,r,i,o))},e}(c),g=n(20);function v(t,e,n,r,i,o,a){var s=Math.min(t,n),u=Math.max(t,n),c=Math.min(e,r),f=Math.max(e,r),l=i/2;return o>=s-l&&o<=u+l&&a>=c-l&&a<=f+l&&g.c.pointToLine(t,e,n,r,o,a)<=i/2}var y=n(33),m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.b)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),this.setArrow()},e.prototype.setArrow=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2,o=t.startArrow,a=t.endArrow;o&&y.b(this,t,r,i,e,n),a&&y.a(this,t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){if(!n||!i)return!1;var o=this.attr();return v(o.x1,o.y1,o.x2,o.y2,i,t,e)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.startArrow,s=e.endArrow,u={dx:0,dy:0},c={dx:0,dy:0};a&&a.d&&(u=y.c(n,r,i,o,e.startArrow.d)),s&&s.d&&(c=y.c(n,r,i,o,e.endArrow.d)),t.beginPath(),t.moveTo(n+u.dx,r+u.dy),t.lineTo(i-c.dx,o-c.dy)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2;return g.c.length(e,n,r,i)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2;return g.c.pointAt(n,r,i,o,t)},e}(c),b=n(0),x=n(38),w={circle:function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]},"triangle-down":function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.b)(e,t),e.prototype.initAttrs=function(t){this._resetParamsCache()},e.prototype._resetParamsCache=function(){this.set("paramsCache",{})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["symbol","x","y","r","radius"].indexOf(e)&&this._resetParamsCache()},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._getR=function(t){return Object(b.s)(t.r)?t.radius:t.r},e.prototype._getPath=function(){var t,n,r=this.attr(),i=r.x,o=r.y,s=r.symbol||"circle",u=this._getR(r);if(Object(a.h)(s))n=(t=s)(i,o,u),n=Object(x.c)(n);else{if(!(t=e.Symbols[s]))return console.warn(s+" marker is not supported."),null;n=t(i,o,u)}return n},e.prototype.createPath=function(t){var e=this._getPath(),n=this.get("paramsCache");Object(s.e)(this,t,{path:e},n)},e.Symbols=w,e}(c);function E(t,e,n){var r=Object(o.getOffScreenContext)();return t.createPath(r),r.isPointInPath(e,n)}function _(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function O(t,e,n){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function k(t,e,n){var r=!1,i=t.length;if(i<=2)return!1;for(var o=0;o<i;o++){var a=t[o],s=t[(o+1)%i];if(O(a,s,[e,n]))return!0;_(a[1]-n)>0!=_(s[1]-n)>0&&_(e-(n-a[1])*(a[0]-s[0])/(a[1]-s[1])-a[0])<0&&(r=!r)}return r}var M=n(18),A=n(40);function T(t,e,n,r,i,o,s,u){var c=(Math.atan2(u-e,s-t)+2*Math.PI)%(2*Math.PI);if(c<r||c>i)return!1;var f={x:t+n*Math.cos(c),y:e+n*Math.sin(c)};return Object(a.b)(f.x,f.y,s,u)<=o/2}var C=M.a.transform;var I=Object(i.a)({hasArc:function(t){for(var e=!1,n=t.length,r=0;r<n;r++){var i=t[r][0];if("C"===i||"A"===i||"Q"===i){e=!0;break}}return e},extractPolygons:function(t){for(var e=t.length,n=[],r=[],i=[],o=0;o<e;o++){var a=t[o],s=a[0];"M"===s?(i.length&&(r.push(i),i=[]),i.push([a[1],a[2]])):"Z"===s?i.length&&(n.push(i),i=[]):i.push([a[1],a[2]])}return i.length>0&&r.push(i),{polygons:n,polylines:r}},isPointInStroke:function(t,e,n,r,i){for(var o=!1,s=e/2,u=0;u<t.length;u++){var c=t[u],f=c.currentPoint,l=c.params,h=c.prePoint,d=c.box;if(!d||Object(a.e)(d.x-s,d.y-s,d.width+e,d.height+e,n,r)){switch(c.command){case"L":case"Z":o=v(h[0],h[1],f[0],f[1],e,n,r);break;case"Q":o=g.e.pointDistance(h[0],h[1],l[1],l[2],l[3],l[4],n,r)<=e/2;break;case"C":o=g.b.pointDistance(h[0],h[1],l[1],l[2],l[3],l[4],l[5],l[6],n,r,i)<=e/2;break;case"A":var p=c.arcParams,y=p.cx,m=p.cy,b=p.rx,x=p.ry,w=p.startAngle,S=p.endAngle,E=p.xRotation,_=[n,r,1],O=b>x?b:x,k=C(null,[["t",-y,-m],["r",-E],["s",1/(b>x?1:b/x),1/(b>x?x/b:1)]]);A.transformMat3(_,_,k),o=T(0,0,O,w,S,e,_[0],_[1])}if(o)break}}return o}},o.PathUtil);function P(t,e,n){for(var r=!1,i=0;i<t.length;i++){if(r=k(t[i],e,n))break}return r}var j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.b)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this._setPathArr(t.path),this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),"path"===e&&this._setPathArr(n),this.setArrow()},e.prototype._setPathArr=function(t){this.attrs.path=Object(x.c)(t);var e=I.hasArc(t);this.set("hasArc",e),this.set("paramsCache",{}),this.set("segments",null),this.set("curve",null),this.set("tCache",null),this.set("totalLength",null)},e.prototype.getSegments=function(){var t=this.get("segements");return t||(t=Object(x.d)(this.attr("path")),this.set("segments",t)),t},e.prototype.setArrow=function(){var t=this.attr(),e=t.startArrow,n=t.endArrow;if(e){var r=this.getStartTangent();y.b(this,t,r[0][0],r[0][1],r[1][0],r[1][1])}if(n){r=this.getEndTangent();y.a(this,t,r[0][0],r[0][1],r[1][0],r[1][1])}},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.getSegments(),a=this.get("hasArc"),s=!1;if(n){var u=this.getTotalLength();s=I.isPointInStroke(o,i,t,e,u)}if(!s&&r)if(a)s=E(this,t,e);else{var c=this.attr("path"),f=I.extractPolygons(c);s=P(f.polygons,t,e)||P(f.polylines,t,e)}return s},e.prototype.createPath=function(t){var e=this.attr(),n=this.get("paramsCache");Object(s.e)(this,t,e,n)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.get("totalLength");return Object(b.s)(t)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):t},e.prototype.getPoint=function(t){var e,n,r=this.get("tCache");r||(this._calculateCurve(),this._setTcache(),r=this.get("tCache"));var i=this.get("curve");if(!r||0===r.length)return i?{x:i[0][1],y:i[0][2]}:null;Object(b.f)(r,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)}));var o=i[n];if(Object(b.s)(o)||Object(b.s)(n))return null;var a=o.length,s=i[n+1];return g.b.pointAt(o[a-2],o[a-1],s[1],s[2],s[3],s[4],s[5],s[6],e)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",I.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,n,r,i=0,o=0,a=[],s=this.get("curve");s&&(Object(b.f)(s,(function(t,e){n=s[e+1],r=t.length,n&&(i+=g.b.length(t[r-2],t[r-1],n[1],n[2],n[3],n[4],n[5],n[6])||0)})),this.set("totalLength",i),0!==i?(Object(b.f)(s,(function(u,c){n=s[c+1],r=u.length,n&&((t=[])[0]=o/i,e=g.b.length(u[r-2],u[r-1],n[1],n[2],n[3],n[4],n[5],n[6]),o+=e||0,t[1]=o/i,a.push(t))})),this.set("tCache",a)):this.set("tCache",[]))},e.prototype.getStartTangent=function(){var t,e=this.getSegments();if(e.length>1){var n=e[0].currentPoint,r=e[1].currentPoint,i=e[1].startTangent;t=[],i?(t.push([n[0]-i[0],n[1]-i[1]]),t.push([n[0],n[1]])):(t.push([r[0],r[1]]),t.push([n[0],n[1]]))}return t},e.prototype.getEndTangent=function(){var t,e=this.getSegments(),n=e.length;if(n>1){var r=e[n-2].currentPoint,i=e[n-1].currentPoint,o=e[n-1].endTangent;t=[],o?(t.push([i[0]-o[0],i[1]-o[1]]),t.push([i[0],i[1]])):(t.push([r[0],r[1]]),t.push([i[0],i[1]]))}return t},e}(c);function D(t,e,n,r,i){var o=t.length;if(o<2)return!1;for(var a=0;a<o-1;a++){if(v(t[a][0],t[a][1],t[a+1][0],t[a+1][1],e,n,r))return!0}if(i){var s=t[0],u=t[o-1];if(v(s[0],s[1],u[0],u[1],e,n,r))return!0}return!1}var N=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.b)(e,t),e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr().points,a=!1;return n&&(a=D(o,i,t,e,!0)),!a&&r&&(a=k(o,t,e)),a},e.prototype.createPath=function(t){var e=this.attr().points;if(!(e.length<2)){t.beginPath();for(var n=0;n<e.length;n++){var r=e[n];0===n?t.moveTo(r[0],r[1]):t.lineTo(r[0],r[1])}t.closePath()}},e}(c),R=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.b)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),this.setArrow(),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.setArrow=function(){var t=this.attr(),e=this.attrs,n=e.points,r=e.startArrow,i=e.endArrow,o=n.length,a=n[0][0],s=n[0][1],u=n[o-1][0],c=n[o-1][1];r&&y.b(this,t,n[1][0],n[1][1],a,s),i&&y.a(this,t,n[o-2][0],n[o-2][1],u,c)},e.prototype.isFill=function(){return!1},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){return!(!n||!i)&&D(this.attr().points,i,t,e,!1)},e.prototype.isStroke=function(){return!0},e.prototype.createPath=function(t){var e=this.attr(),n=e.points,r=e.startArrow,i=e.endArrow,o=n.length;if(!(n.length<2)){var a,s=n[0][0],u=n[0][1],c=n[o-1][0],f=n[o-1][1];if(r&&r.d)s+=(a=y.c(s,u,n[1][0],n[1][1],r.d)).dx,u+=a.dy;if(i&&i.d)c-=(a=y.c(n[o-2][0],n[o-2][1],c,f,i.d)).dx,f-=a.dy;t.beginPath(),t.moveTo(s,u);for(var l=0;l<o-1;l++){var h=n[l];t.lineTo(h[0],h[1])}t.lineTo(c,f)}},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return Object(b.s)(e)?(this.set("totalLength",g.d.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,r=this.attr().points,i=this.get("tCache");return i||(this._setTcache(),i=this.get("tCache")),Object(b.f)(i,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),g.c.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,r,i=0,o=[];Object(b.f)(t,(function(a,s){t[s+1]&&((n=[])[0]=i/e,r=g.c.length(a[0],a[1],t[s+1][0],t[s+1][1]),i+=r,n[1]=i/e,o.push(n))})),this.set("tCache",o)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(c),L=n(140);var B=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.b)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),s=o.x,u=o.y,c=o.width,f=o.height,l=o.radius;if(l){var h=!1;return n&&(h=function(t,e,n,r,i,o,a,s){return v(t+i,e,t+n-i,e,o,a,s)||v(t+n,e+i,t+n,e+r-i,o,a,s)||v(t+n-i,e+r,t+i,e+r,o,a,s)||v(t,e+r-i,t,e+i,o,a,s)||T(t+n-i,e+i,i,1.5*Math.PI,2*Math.PI,o,a,s)||T(t+n-i,e+r-i,i,0,.5*Math.PI,o,a,s)||T(t+i,e+r-i,i,.5*Math.PI,Math.PI,o,a,s)||T(t+i,e+i,i,Math.PI,1.5*Math.PI,o,a,s)}(s,u,c,f,l,i,t,e)),!h&&r&&(h=E(this,t,e)),h}var d=i/2;return r&&n?Object(a.e)(s-d,u-d,c+d,f+d,t,e):r?Object(a.e)(s,u,c,f,t,e):n?function(t,e,n,r,i,o,s){var u=i/2;return Object(a.e)(t-u,e-u,n,i,o,s)||Object(a.e)(t+n-u,e-u,i,r,o,s)||Object(a.e)(t+u,e+r-u,n,i,o,s)||Object(a.e)(t-u,e+u,i,r,o,s)}(s,u,c,f,i,t,e):void 0},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.width,o=e.height,a=e.radius;if(t.beginPath(),0===a)t.rect(n,r,i,o);else{var s=Object(L.a)(a),u=s[0],c=s[1],f=s[2],l=s[3];t.moveTo(n+u,r),t.lineTo(n+i-c,r),0!==c&&t.arc(n+i-c,r+c,c,-Math.PI/2,0),t.lineTo(n+i,r+o-f),0!==f&&t.arc(n+i-f,r+o-f,f,0,Math.PI/2),t.lineTo(n+l,r+o),0!==l&&t.arc(n+l,r+o-l,l,Math.PI/2,Math.PI),t.lineTo(n,r+u),0!==u&&t.arc(n+u,r+u,u,Math.PI,1.5*Math.PI),t.closePath()}},e}(c),G=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.b)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.isOnlyHitBox=function(){return!0},e.prototype.initAttrs=function(t){this._assembleFont(),t.text&&this._setText(t.text)},e.prototype._assembleFont=function(){var t=this.attrs;t.font=Object(o.assembleFont)(t)},e.prototype._setText=function(t){var e=null;Object(a.k)(t)&&-1!==t.indexOf("\\n")&&(e=t.split("\\n")),this.set("textArr",e)},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),e.startsWith("font")&&this._assembleFont(),"text"===e&&this._setText(n)},e.prototype._getSpaceingY=function(){var t=this.attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},e.prototype._drawTextArr=function(t,e,n){var r,i=this.attrs,s=i.textBaseline,u=i.x,c=i.y,f=1*i.fontSize,l=this._getSpaceingY(),h=Object(o.getTextHeight)(i.text,i.fontSize,i.lineHeight);Object(a.c)(e,(function(e,i){r=c+i*(l+f)-h+f,"middle"===s&&(r+=h-f-(h-f)/2),"top"===s&&(r+=h-f),n?t.fillText(e,u,r):t.strokeText(e,u,r)}))},e.prototype._drawText=function(t,e){var n=this.attr(),r=n.x,i=n.y,o=this.get("textArr");if(o)this._drawTextArr(t,o,e);else{var a=n.text;e?t.fillText(a,r,i):t.strokeText(a,r,i)}},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,o=e.fillOpacity;this.isStroke()&&n>0&&(Object(a.i)(i)||1===i||(t.globalAlpha=r),this.stroke(t)),this.isFill()&&(Object(a.i)(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=r)),this.afterDrawPath(t)},e.prototype.fill=function(t){this._drawText(t,!0)},e.prototype.stroke=function(t){this._drawText(t,!1)},e}(c)},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return h}));var r,i=n(62),o=n.n(i),a=n(6),s=n.n(a),u=n(7),c=n.n(u),f=n(2),l=n(127);!function(t){t[t.OUTSIDE=4294967295]="OUTSIDE",t[t.INSIDE=0]="INSIDE",t[t.INDETERMINATE=2147483647]="INDETERMINATE"}(r||(r={}));var h=function(){function t(e){if(s()(this,t),this.planes=[],e)this.planes=e;else for(var n=0;n<6;n++)this.planes.push(new l.a)}return c()(t,[{key:"extractFromVPMatrix",value:function(t){var e=o()(t,16),n=e[0],r=e[1],i=e[2],a=e[3],s=e[4],u=e[5],c=e[6],l=e[7],h=e[8],d=e[9],p=e[10],g=e[11],v=e[12],y=e[13],m=e[14],b=e[15];f.e.set(this.planes[0].normal,a-n,l-s,g-h),this.planes[0].distance=-(b-v),f.e.set(this.planes[1].normal,a+n,l+s,g+h),this.planes[1].distance=-(b+v),f.e.set(this.planes[2].normal,a+r,l+u,g+d),this.planes[2].distance=-(b+y),f.e.set(this.planes[3].normal,a-r,l-u,g-d),this.planes[3].distance=-(b-y),f.e.set(this.planes[4].normal,a-i,l-c,g-p),this.planes[4].distance=-(b-m),f.e.set(this.planes[5].normal,a+i,l+c,g+p),this.planes[5].distance=-(b+m),this.planes.forEach((function(t){t.normalize(),t.updatePNVertexFlag()}))}}]),t}()},function(t,e,n){var r=n(74),i=n(302),o=n(303),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?i(t):o(t)}},function(t,e,n){var r=n(182),i=n(148),o=n(54);t.exports=function(t){return o(t)?r(t):i(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.tagProperty=e.tagParameter=e.decorate=void 0;var r=n(41),i=n(31);function o(t,e,n,i,o){var a={},s="number"==typeof o,u=void 0!==o&&s?o.toString():n;if(s&&void 0!==n)throw new Error(r.INVALID_DECORATOR_OPERATION);Reflect.hasOwnMetadata(t,e)&&(a=Reflect.getMetadata(t,e));var c=a[u];if(Array.isArray(c))for(var f=0,l=c;f<l.length;f++){var h=l[f];if(h.key===i.key)throw new Error(r.DUPLICATED_METADATA+" "+h.key.toString())}else c=[];c.push(i),a[u]=c,Reflect.defineMetadata(t,a,e)}function a(t,e){Reflect.decorate(t,e)}function s(t,e){return function(n,r){e(n,r,t)}}e.tagParameter=function(t,e,n,r){o(i.TAGGED,t,e,r,n)},e.tagProperty=function(t,e,n){o(i.TAGGED_PROP,t.constructor,e,n)},e.decorate=function(t,e,n){"number"==typeof n?a([s(n,t)],e):"string"==typeof n?Reflect.decorate([t],e,n):a([t],e)}},function(t,e,n){var r=n(463),i=n(464),o=n(233),a=n(465);t.exports=function(t,e){return r(t)||i(t,e)||o(t,e)||a()}},function(t,e,n){"use strict";n(81),n(21);var r=n(267);n.d(e,"Canvas",(function(){return r.a}));n(79)},function(t,e,n){var r=n(256),i=n(255),o=n(263),a=n(167),s=n(264),u=[0,0];t.exports.computeMiter=function(t,e,n,a,c){return r(t,n,a),o(t,t),i(e,-t[1],t[0]),i(u,-n[1],n[0]),c/s(e,u)},t.exports.normal=function(t,e){return i(t,-e[1],e[0]),t},t.exports.direction=function(t,e,n){return a(t,e,n),o(t,t),t}},function(t,e,n){var r=n(301),i=n(306);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},function(t,e,n){var r=n(182),i=n(326),o=n(54);t.exports=function(t){return o(t)?r(t,!0):i(t)}},function(t,e){t.exports=function(t){return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.id=void 0;var r=0;e.id=function(){return r++}},function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return s}));var r=n(19),i=n(118);function o(t,e,n){var i=1;return Object(r.h)(t)&&(i=t.split("\\n").length),i>1?e*i+function(t,e){return e?e-t:.14*t}(e,n)*(i-1):e}function a(t,e){var n=Object(i.a)(),o=0;if(Object(r.e)(t)||""===t)return o;if(n.save(),n.font=e,Object(r.h)(t)&&t.includes("\\n")){var a=t.split("\\n");Object(r.a)(a,(function(t){var e=n.measureText(t).width;o<e&&(o=e)}))}else o=n.measureText(t).width;return n.restore(),o}function s(t){var e=t.fontSize,n=t.fontFamily,r=t.fontWeight;return[t.fontStyle,t.fontVariant,r,e+"px",n].join(" ").trim()}},function(t,e,n){"use strict";n.d(e,"a",(function(){return R}));var r,i,o,a,s,u,c,f,l,h,d,p,g,v=n(9),y=n.n(v),m=n(14),b=n.n(m),x=n(10),w=n.n(x),S=n(6),E=n.n(S),_=n(7),O=n.n(_),k=n(11),M=n.n(k),A=(n(28),n(5)),T=n(13),C=n(141),I=n(50);function P(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return j(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function j(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var D=1,N=2,R=(r=Object(A.injectable)(),i=Object(A.inject)(T.a.RenderEngine),o=Object(A.inject)(T.a.ResourcePool),a=Object(A.inject)(T.a.RenderPassFactory),s=Object(A.inject)(T.a.MeshComponentManager),r((g=p=function(){function t(){var e=this;E()(this,t),w()(this,"engine",f,this),w()(this,"resourcePool",l,this),w()(this,"renderPassFactory",h,this),w()(this,"mesh",d,this),this.pickingFBO=void 0,this.views=void 0,this.highlightEnabled=!0,this.highlightColor=[255,0,0,255],this.alreadyInRendering=!1,this.setup=function(t,e,n){var r=t.createRenderTarget(e,"picking fbo",{width:1,height:1});n.data={output:e.write(t,r)},e.hasSideEffect=!0},this.execute=function(){var t=b()(y.a.mark((function t(n,r,i){var o,a,s;return y.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.views=i,!e.alreadyInRendering){t.next=3;break}return t.abrupt("return");case 3:o=P(i);try{for(s=function(){var t=a.value,i=t.getViewport(),o=i.width,s=i.height;e.alreadyInRendering=!0;var u=n.getResourceNode(r.data.output);e.pickingFBO=e.resourcePool.getOrCreateResource(u.resource),e.pickingFBO.resize({width:o,height:s}),e.engine.useFramebuffer(e.pickingFBO,(function(){e.engine.clear({framebuffer:e.pickingFBO,color:[0,0,0,0],stencil:0,depth:1});var n,r=e.renderPassFactory(I.a.IDENTIFIER),i=[],o=P(t.getScene().getEntities());try{for(o.s();!(n=o.n()).done;){var a=n.value,s=e.mesh.getComponentByEntity(a);s.material.setUniform("u_PickingStage",D),i.push(s)}}catch(t){o.e(t)}finally{o.f()}r.renderView(t),i.forEach((function(t){t.material.setUniform("u_PickingStage",N)})),e.alreadyInRendering=!1}))},o.s();!(a=o.n()).done;)s()}catch(t){o.e(t)}finally{o.f()}case 5:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}(),this.pick=function(t,n){var r,i,o=t.x,a=t.y,s=e.engine,u=s.readPixels,c=s.useFramebuffer,f=n.getViewport(),l=f.width,h=f.height,d=o*window.devicePixelRatio,p=a*window.devicePixelRatio;if(!(d>l||d<0||p>h||p<0))return c(e.pickingFBO,(function(){0===(r=u({x:Math.round(d),y:Math.round(h-(a+1)*window.devicePixelRatio),width:1,height:1,data:new Uint8Array(4),framebuffer:e.pickingFBO}))[0]&&0===r[1]&&0===r[2]||(i=Object(C.a)(r),e.highlightEnabled&&e.highlightPickedFeature(r,n))})),i}}return O()(t,[{key:"enableHighlight",value:function(t){this.highlightEnabled=t}},{key:"setHighlightColor",value:function(t){this.highlightColor=t}},{key:"highlightPickedFeature",value:function(t,e){if(t){var n,r=P(e.getScene().getEntities());try{for(r.s();!(n=r.n()).done;){var i=n.value,o=this.mesh.getComponentByEntity(i).material;o.setUniform("u_PickingStage",N),o.setUniform("u_PickingColor",[t[0],t[1],t[2]]),o.setUniform("u_HighlightColor",this.highlightColor)}}catch(t){r.e(t)}finally{r.f()}}}}]),t}(),p.IDENTIFIER="PixelPicking Pass",c=g,f=M()(c.prototype,"engine",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=M()(c.prototype,"resourcePool",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=M()(c.prototype,"renderPassFactory",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=M()(c.prototype,"mesh",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=c))||u)},function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a}));var r=n(34),i=n(25);function o(t,e){e.forEach((function(e){e.draw(t)}))}function a(t,e){var n=t.get("canvas");if(n&&n.get("autoDraw")){var o=n.get("context"),a=t.getParent(),s=a?a.getChildren():[n],u=t.get("el");if("remove"===e)if(t.get("isClipShape")){var c=u&&u.parentNode,f=c&&c.parentNode;c&&f&&f.removeChild(c)}else u&&u.parentNode&&u.parentNode.removeChild(u);else if("show"===e)u.setAttribute("visibility","visible");else if("hide"===e)u.setAttribute("visibility","hidden");else if("zIndex"===e)Object(i.c)(u,s.indexOf(t));else if("sort"===e){var l=t.get("children");l&&l.length&&Object(i.d)(t,(function(t,e){return l.indexOf(t)-l.indexOf(e)?1:0}))}else"clear"===e?u&&(u.innerHTML=""):"matrix"===e?Object(r.c)(t):"clip"===e?Object(r.a)(t,o):"attr"===e||"add"===e&&t.draw(o)}}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){var r=n(45).Symbol;t.exports=r},function(t,e,n){(function(t){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=n(45),o=n(322),a="object"==r(e)&&e&&!e.nodeType&&e,s=a&&"object"==r(t)&&t&&!t.nodeType&&t,u=s&&s.exports===a?i.Buffer:void 0,c=(u?u.isBuffer:void 0)||o;t.exports=c}).call(this,n(72)(t))},function(t,e,n){var r=n(331),i=n(143),o=n(332),a=n(191),s=n(333),u=n(59),c=n(180),f=c(r),l=c(i),h=c(o),d=c(a),p=c(s),g=u;(r&&"[object DataView]"!=g(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=g(new i)||o&&"[object Promise]"!=g(o.resolve())||a&&"[object Set]"!=g(new a)||s&&"[object WeakMap]"!=g(new s))&&(g=function(t){var e=u(t),n="[object Object]"==e?t.constructor:void 0,r=n?c(n):"";if(r)switch(r){case f:return"[object DataView]";case l:return"[object Map]";case h:return"[object Promise]";case d:return"[object Set]";case p:return"[object WeakMap]"}return e}),t.exports=g},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=n(59),o=n(46);t.exports=function(t){return"symbol"==r(t)||o(t)&&"[object Symbol]"==i(t)}},function(t,e,n){"use strict";var r=n(1),i=n(21),o=n(57),a=n(30),s=n(0),u=n(16),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.onCanvasChange=function(t){Object(a.h)(this,t)},e.prototype.getShapeBase=function(){return o},e.prototype.getGroupBase=function(){return e},e.prototype._applyClip=function(t,e){e&&(t.save(),Object(a.a)(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.cacheCanvasBBox=function(){var t=this.cfg.children,e=[],n=[];Object(s.f)(t,(function(t){var r=t.cfg.cacheCanvasBBox;r&&t.cfg.isInView&&(e.push(r.minX,r.maxX),n.push(r.minY,r.maxY))}));var r=null;if(e.length){var i=Math.min.apply(null,e),o=Math.max.apply(null,e),a=Math.min.apply(null,n),c=Math.max.apply(null,n);r={minX:i,minY:a,x:i,y:a,maxX:o,maxY:c,width:o-i,height:c-a};var f=this.cfg.canvas;if(f){var l=f.getViewRange();this.set("isInView",Object(u.f)(r,l))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",r)},e.prototype.draw=function(t,e){var n=this.cfg.children,r=!e||this.cfg.refresh;n.length&&r&&(t.save(),Object(a.a)(t,this),this._applyClip(t,this.getClip()),Object(a.d)(t,n,e),t.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},e}(i.AbstractGroup);e.a=c},function(t,e,n){"use strict";var r=n(1),i=n(21),o=n(0),a=n(81),s=n(71),u=n(34),c=n(15),f=n(25),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.isEntityGroup=function(){return!0},e.prototype.createDom=function(){var t=Object(f.b)("g");this.set("el",t);var e=this.getParent();if(e){var n=e.get("el");n||(n=e.createDom(),e.set("el",n)),n.appendChild(t)}return t},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var r=n.get("context");this.createPath(r,e)}},e.prototype.onCanvasChange=function(t){Object(s.b)(this,t)},e.prototype.getShapeBase=function(){return a},e.prototype.getGroupBase=function(){return e},e.prototype.draw=function(t){var e=this.getChildren(),n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||this.createDom(),Object(u.a)(this,t),this.createPath(t),e.length&&Object(s.a)(t,e))},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(o.f)(e||n,(function(t,e){c.b[e]&&r.setAttribute(c.b[e],t)})),Object(u.c)(this)},e}(i.AbstractGroup);e.a=l},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(6),i=n.n(r),o=n(7),a=n.n(o),s=n(2),u=function(){function t(e,n){i()(this,t),this.center=void 0,this.halfExtents=void 0,this.min=s.e.create(),this.max=s.e.create(),this.update(e,n)}return a()(t,[{key:"update",value:function(t,e){this.center=t||s.e.create(),this.halfExtents=e||s.e.fromValues(.5,.5,.5),this.min=s.e.sub(this.min,this.center,this.halfExtents),this.max=s.e.add(this.max,this.center,this.halfExtents)}},{key:"setMinMax",value:function(t,e){s.e.add(this.center,e,t),s.e.scale(this.center,this.center,.5),s.e.sub(this.halfExtents,e,t),s.e.scale(this.halfExtents,this.halfExtents,.5),s.e.copy(this.min,t),s.e.copy(this.max,e)}},{key:"getMin",value:function(){return this.min}},{key:"getMax",value:function(){return this.max}},{key:"add",value:function(t){var e=this.center,n=e[0],r=e[1],i=e[2],o=this.halfExtents,a=o[0],s=o[1],u=o[2],c=n-a,f=n+a,l=r-s,h=r+s,d=i-u,p=i+u,g=t.center,v=g[0],y=g[1],m=g[2],b=t.halfExtents,x=b[0],w=b[1],S=b[2],E=v-x,_=v+x,O=y-w,k=y+w,M=m-S,A=m+S;E<c&&(c=E),_>f&&(f=_),O<l&&(l=O),k>h&&(h=k),M<d&&(d=M),A>p&&(p=A),e[0]=.5*(c+f),e[1]=.5*(l+h),e[2]=.5*(d+p),o[0]=.5*(f-c),o[1]=.5*(h-l),o[2]=.5*(p-d),this.min[0]=c,this.min[1]=l,this.min[2]=d,this.max[0]=f,this.max[1]=h,this.max[2]=p}},{key:"intersects",value:function(t){var e=this.getMax(),n=this.getMin(),r=t.getMax(),i=t.getMin();return n[0]<=r[0]&&e[0]>=i[0]&&n[1]<=r[1]&&e[1]>=i[1]&&n[2]<=r[2]&&e[2]>=i[2]}},{key:"containsPoint",value:function(t){var e=this.getMin(),n=this.getMax();return!(t[0]<e[0]||t[0]>n[0]||t[1]<e[1]||t[1]>n[1]||t[2]<e[2]||t[2]>n[2])}},{key:"getNegativeFarPoint",value:function(t){return 273===t.pnVertexFlag?s.e.copy(s.e.create(),this.min):272===t.pnVertexFlag?s.e.fromValues(this.min[0],this.min[1],this.max[2]):257===t.pnVertexFlag?s.e.fromValues(this.min[0],this.max[1],this.min[2]):256===t.pnVertexFlag?s.e.fromValues(this.min[0],this.max[1],this.max[2]):17===t.pnVertexFlag?s.e.fromValues(this.max[0],this.min[1],this.min[2]):16===t.pnVertexFlag?s.e.fromValues(this.max[0],this.min[1],this.max[2]):1===t.pnVertexFlag?s.e.fromValues(this.max[0],this.max[1],this.min[2]):s.e.fromValues(this.max[0],this.max[1],this.max[2])}},{key:"getPositiveFarPoint",value:function(t){return 273===t.pnVertexFlag?s.e.copy(s.e.create(),this.max):272===t.pnVertexFlag?s.e.fromValues(this.max[0],this.max[1],this.min[2]):257===t.pnVertexFlag?s.e.fromValues(this.max[0],this.min[1],this.max[2]):256===t.pnVertexFlag?s.e.fromValues(this.max[0],this.min[1],this.min[2]):17===t.pnVertexFlag?s.e.fromValues(this.min[0],this.max[1],this.max[2]):16===t.pnVertexFlag?s.e.fromValues(this.min[0],this.max[1],this.min[2]):1===t.pnVertexFlag?s.e.fromValues(this.min[0],this.min[1],this.max[2]):s.e.fromValues(this.min[0],this.min[1],this.min[2])}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"Base",(function(){return l})),n.d(e,"Circle",(function(){return d})),n.d(e,"Dom",(function(){return p})),n.d(e,"Ellipse",(function(){return g})),n.d(e,"Image",(function(){return v})),n.d(e,"Line",(function(){return m})),n.d(e,"Marker",(function(){return w})),n.d(e,"Path",(function(){return S})),n.d(e,"Polygon",(function(){return E})),n.d(e,"Polyline",(function(){return _})),n.d(e,"Rect",(function(){return O})),n.d(e,"Text",(function(){return C}));var r={};n.r(r),n.d(r,"Base",(function(){return l})),n.d(r,"Circle",(function(){return d})),n.d(r,"Dom",(function(){return p})),n.d(r,"Ellipse",(function(){return g})),n.d(r,"Image",(function(){return v})),n.d(r,"Line",(function(){return m})),n.d(r,"Marker",(function(){return w})),n.d(r,"Path",(function(){return S})),n.d(r,"Polygon",(function(){return E})),n.d(r,"Polyline",(function(){return _})),n.d(r,"Rect",(function(){return O})),n.d(r,"Text",(function(){return C}));var i=n(1),o=n(21),a=n(34),s=n(25),u=n(71),c=n(15),f=n(79),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="svg",e.canFill=!1,e.canStroke=!1,e}return Object(i.b)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var r=n.get("context");this.draw(r,e)}},e.prototype.getShapeBase=function(){return r},e.prototype.getGroupBase=function(){return f.a},e.prototype.onCanvasChange=function(t){Object(u.b)(this,t)},e.prototype.calculateBBox=function(){var t=this.get("el"),e=null;if(t)e=t.getBBox();else{var n=Object(o.getBBoxMethod)(this.get("type"));n&&(e=n(this))}if(e){var r=e.x,i=e.y,a=e.width,s=e.height,u=this.getHitLineWidth(),c=u/2,f=r-c,l=i-c;return{x:f,y:l,minX:f,minY:l,maxX:r+a+c,maxY:i+s+c,width:a+u,height:s+u}}return{x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0}},e.prototype.isFill=function(){var t=this.attr(),e=t.fill,n=t.fillStyle;return(e||n||this.isClipShape())&&this.canFill},e.prototype.isStroke=function(){var t=this.attr(),e=t.stroke,n=t.strokeStyle;return(e||n)&&this.canStroke},e.prototype.draw=function(t,e){var n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||Object(s.a)(this),Object(a.a)(this,t),this.createPath(t,e),this.shadow(t,e),this.strokeAndFill(t,e),this.transform(e))},e.prototype.createPath=function(t,e){},e.prototype.strokeAndFill=function(t,e){var n=e||this.attr(),r=n.fill,i=n.fillStyle,o=n.stroke,a=n.strokeStyle,s=n.fillOpacity,u=n.strokeOpacity,f=n.lineWidth,l=this.get("el");this.canFill&&(e?"fill"in n?this._setColor(t,"fill",r):"fillStyle"in n&&this._setColor(t,"fill",i):this._setColor(t,"fill",r||i),s&&l.setAttribute(c.b.fillOpacity,s)),this.canStroke&&f>0&&(e?"stroke"in n?this._setColor(t,"stroke",o):"strokeStyle"in n&&this._setColor(t,"stroke",a):this._setColor(t,"stroke",o||a),u&&l.setAttribute(c.b.strokeOpacity,u),f&&l.setAttribute(c.b.lineWidth,f))},e.prototype._setColor=function(t,e,n){var r=this.get("el");if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\\s]*\\(/.test(n))(i=t.find("gradient",n))||(i=t.addGradient(n)),r.setAttribute(c.b[e],"url(#"+i+")");else if(/^[p,P]{1}[\\s]*\\(/.test(n)){var i;(i=t.find("pattern",n))||(i=t.addPattern(n)),r.setAttribute(c.b[e],"url(#"+i+")")}else r.setAttribute(c.b[e],n);else r.setAttribute(c.b[e],"none")},e.prototype.shadow=function(t,e){var n=this.attr(),r=e||n,i=r.shadowOffsetX,o=r.shadowOffsetY,s=r.shadowBlur,u=r.shadowColor;(i||o||s||u)&&Object(a.b)(this,t)},e.prototype.transform=function(t){var e=this.attr();(t||e).matrix&&Object(a.c)(this)},e.prototype.isInShape=function(t,e){return this.isPointInPath(t,e)},e.prototype.isPointInPath=function(t,e){var n=this.get("el"),r=this.get("canvas").get("el").getBoundingClientRect(),i=t+r.left,o=e+r.top,a=document.elementFromPoint(i,o);return!(!a||!a.isEqualNode(n))},e.prototype.getHitLineWidth=function(){var t=this.attrs,e=t.lineWidth,n=t.lineAppendWidth;return this.isStroke()?e+n:0},e}(o.AbstractShape),h=n(0),d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle",e.canFill=!0,e.canStroke=!0,e}return Object(i.b)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{x:0,y:0,r:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(h.f)(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):c.b[e]&&r.setAttribute(c.b[e],t)}))},e}(l),p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dom",e.canFill=!1,e.canStroke=!1,e}return Object(i.b)(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");if(Object(h.f)(e||n,(function(t,e){c.b[e]&&r.setAttribute(c.b[e],t)})),"function"==typeof n.html){var i=n.html.call(this,n);if(i instanceof Element||i instanceof HTMLDocument){for(var o=r.childNodes,a=o.length-1;a>=0;a--)r.removeChild(o[a]);r.appendChild(i)}else r.innerHTML=i}else r.innerHTML=n.html},e}(l),g=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ellipse",e.canFill=!0,e.canStroke=!0,e}return Object(i.b)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(h.f)(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):c.b[e]&&r.setAttribute(c.b[e],t)}))},e}(l),v=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="image",e.canFill=!1,e.canStroke=!1,e}return Object(i.b)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{x:0,y:0,width:0,height:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");Object(h.f)(e||r,(function(t,e){"img"===e?n._setImage(r.img):c.b[e]&&i.setAttribute(c.b[e],t)}))},e.prototype.setAttr=function(t,e){this.attrs[t]=e,"img"===t&&this._setImage(e)},e.prototype._setImage=function(t){var e=this.attr(),n=this.get("el");if(Object(h.x)(t))n.setAttribute("href",t);else if(t instanceof window.Image)e.width||(n.setAttribute("width",t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",t.height),this.attr("height",t.height)),n.setAttribute("href",t.src);else if(t instanceof HTMLElement&&Object(h.x)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase())n.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var r=document.createElement("canvas");r.setAttribute("width",""+t.width),r.setAttribute("height",""+t.height),r.getContext("2d").putImageData(t,0,0),e.width||(n.setAttribute("width",""+t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",""+t.height),this.attr("height",t.height)),n.setAttribute("href",r.toDataURL())}},e}(l),y=n(20),m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e.canFill=!1,e.canStroke=!0,e}return Object(i.b)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(h.f)(e||n,(function(e,i){if("startArrow"===i||"endArrow"===i)if(e){var o=Object(h.v)(e)?t.addArrow(n,c.b[i]):t.getDefaultArrow(n,c.b[i]);r.setAttribute(c.b[i],"url(#"+o+")")}else r.removeAttribute(c.b[i]);else c.b[i]&&r.setAttribute(c.b[i],e)}))},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2;return y.c.length(e,n,r,i)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2;return y.c.pointAt(n,r,i,o,t)},e}(l),b={circle:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["z"]]},triangleDown:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},x={get:function(t){return b[t]},register:function(t,e){b[t]=e},remove:function(t){delete b[t]},getAll:function(){return b}},w=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="marker",e.canFill=!0,e.canStroke=!0,e}return Object(i.b)(e,t),e.prototype.createPath=function(t){this.get("el").setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var t=this._getPath();return Object(h.m)(t)?t.map((function(t){return t.join(" ")})).join(""):t},e.prototype._getPath=function(){var t,e=this.attr(),n=e.x,r=e.y,i=e.r||e.radius,o=e.symbol||"circle";return(t=Object(h.r)(o)?o:x.get(o))?t(n,r,i):(console.warn(t+" symbol is not exist."),null)},e.symbolsFactory=x,e}(l),S=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="path",e.canFill=!0,e.canStroke=!0,e}return Object(i.b)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");Object(h.f)(e||r,(function(e,o){if("path"===o&&Object(h.m)(e))i.setAttribute("d",n._formatPath(e));else if("startArrow"===o||"endArrow"===o)if(e){var a=Object(h.v)(e)?t.addArrow(r,c.b[o]):t.getDefaultArrow(r,c.b[o]);i.setAttribute(c.b[o],"url(#"+a+")")}else i.removeAttribute(c.b[o]);else c.b[o]&&i.setAttribute(c.b[o],e)}))},e.prototype._formatPath=function(t){var e=t.map((function(t){return t.join(" ")})).join("");return~e.indexOf("NaN")?"":e},e.prototype.getTotalLength=function(){var t=this.get("el");return t?t.getTotalLength():null},e.prototype.getPoint=function(t){var e=this.get("el"),n=this.getTotalLength();if(0===n)return null;var r=e?e.getPointAtLength(t*n):null;return r?{x:r.x,y:r.y}:null},e}(l),E=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.canFill=!0,e.canStroke=!0,e}return Object(i.b)(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(h.f)(e||n,(function(t,e){"points"===e&&Object(h.m)(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):c.b[e]&&r.setAttribute(c.b[e],t)}))},e}(l),_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polyline",e.canFill=!0,e.canStroke=!0,e}return Object(i.b)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{startArrow:!1,endArrow:!1})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(h.f)(e||n,(function(t,e){"points"===e&&Object(h.m)(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):c.b[e]&&r.setAttribute(c.b[e],t)}))},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return Object(h.s)(e)?(this.set("totalLength",y.d.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,r=this.attr().points,i=this.get("tCache");return i||(this._setTcache(),i=this.get("tCache")),Object(h.f)(i,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),y.c.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,r,i=0,o=[];Object(h.f)(t,(function(a,s){t[s+1]&&((n=[])[0]=i/e,r=y.c.length(a[0],a[1],t[s+1][0],t[s+1][1]),i+=r,n[1]=i/e,o.push(n))})),this.set("tCache",o)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(l);var O=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rect",e.canFill=!0,e.canStroke=!0,e}return Object(i.b)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el"),o=!1,a=["x","y","width","height","radius"];Object(h.f)(e||r,(function(t,e){-1===a.indexOf(e)||o?-1===a.indexOf(e)&&c.b[e]&&i.setAttribute(c.b[e],t):(i.setAttribute("d",n._assembleRect(r)),o=!0)}))},e.prototype._assembleRect=function(t){var e=t.x,n=t.y,r=t.width,i=t.height,o=t.radius;if(!o)return"M "+e+","+n+" l "+r+",0 l 0,"+i+" l"+-r+" 0 z";var a=function(t){var e=0,n=0,r=0,i=0;return Object(h.m)(t)?1===t.length?e=n=r=i=t[0]:2===t.length?(e=r=t[0],n=i=t[1]):3===t.length?(e=t[0],n=i=t[1],r=t[2]):(e=t[0],n=t[1],r=t[2],i=t[3]):e=n=r=i=t,{r1:e,r2:n,r3:r,r4:i}}(o);return Object(h.m)(o)?1===o.length?a.r1=a.r2=a.r3=a.r4=o[0]:2===o.length?(a.r1=a.r3=o[0],a.r2=a.r4=o[1]):3===o.length?(a.r1=o[0],a.r2=a.r4=o[1],a.r3=o[2]):(a.r1=o[0],a.r2=o[1],a.r3=o[2],a.r4=o[3]):a.r1=a.r2=a.r3=a.r4=o,[["M "+(e+a.r1)+","+n],["l "+(r-a.r1-a.r2)+",0"],["a "+a.r2+","+a.r2+",0,0,1,"+a.r2+","+a.r2],["l 0,"+(i-a.r2-a.r3)],["a "+a.r3+","+a.r3+",0,0,1,"+-a.r3+","+a.r3],["l "+(a.r3+a.r4-r)+",0"],["a "+a.r4+","+a.r4+",0,0,1,"+-a.r4+","+-a.r4],["l 0,"+(a.r4+a.r1-i)],["a "+a.r1+","+a.r1+",0,0,1,"+a.r1+","+-a.r1],["z"]].join(" ")},e}(l),k=n(139),M={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},A={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},T={left:"left",start:"left",center:"middle",right:"end",end:"end"},C=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="text",e.canFill=!0,e.canStroke=!0,e}return Object(i.b)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(i.a)(Object(i.a)({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");this._setFont(),Object(h.f)(e||r,(function(t,e){"text"===e?n._setText(""+t):"matrix"===e&&t?Object(a.c)(n):c.b[e]&&i.setAttribute(c.b[e],t)})),i.setAttribute("paint-order","stroke"),i.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},e.prototype._setFont=function(){var t=this.get("el"),e=this.attr(),n=e.textBaseline,r=e.textAlign,i=Object(k.a)();i&&"firefox"===i.name?t.setAttribute("dominant-baseline",A[n]||"alphabetic"):t.setAttribute("alignment-baseline",M[n]||"baseline"),t.setAttribute("text-anchor",T[r]||"left")},e.prototype._setText=function(t){var e=this.get("el"),n=this.attr(),r=n.x,i=n.textBaseline,o=void 0===i?"bottom":i;if(t)if(~t.indexOf("\\n")){var a=t.split("\\n"),s=a.length-1,u="";Object(h.f)(a,(function(t,e){0===e?"alphabetic"===o?u+=\'<tspan x="\'+r+\'" dy="\'+-s+\'em">\'+t+"</tspan>":"top"===o?u+=\'<tspan x="\'+r+\'" dy="0.9em">\'+t+"</tspan>":"middle"===o?u+=\'<tspan x="\'+r+\'" dy="\'+-(s-1)/2+\'em">\'+t+"</tspan>":"bottom"===o?u+=\'<tspan x="\'+r+\'" dy="-\'+(s+.3)+\'em">\'+t+"</tspan>":"hanging"===o&&(u+=\'<tspan x="\'+r+\'" dy="\'+(-(s-1)-.3)+\'em">\'+t+"</tspan>"):u+=\'<tspan x="\'+r+\'" dy="1em">\'+t+"</tspan>"})),e.innerHTML=u}else e.innerHTML=t;else e.innerHTML=""},e}(l)},function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return i})),n.d(e,"clone",(function(){return o})),n.d(e,"fromValues",(function(){return a})),n.d(e,"copy",(function(){return s})),n.d(e,"set",(function(){return u})),n.d(e,"add",(function(){return c})),n.d(e,"subtract",(function(){return f})),n.d(e,"multiply",(function(){return l})),n.d(e,"divide",(function(){return h})),n.d(e,"ceil",(function(){return d})),n.d(e,"floor",(function(){return p})),n.d(e,"min",(function(){return g})),n.d(e,"max",(function(){return v})),n.d(e,"round",(function(){return y})),n.d(e,"scale",(function(){return m})),n.d(e,"scaleAndAdd",(function(){return b})),n.d(e,"distance",(function(){return x})),n.d(e,"squaredDistance",(function(){return w})),n.d(e,"length",(function(){return S})),n.d(e,"squaredLength",(function(){return E})),n.d(e,"negate",(function(){return _})),n.d(e,"inverse",(function(){return O})),n.d(e,"normalize",(function(){return k})),n.d(e,"dot",(function(){return M})),n.d(e,"cross",(function(){return A})),n.d(e,"lerp",(function(){return T})),n.d(e,"random",(function(){return C})),n.d(e,"transformMat2",(function(){return I})),n.d(e,"transformMat2d",(function(){return P})),n.d(e,"transformMat3",(function(){return j})),n.d(e,"transformMat4",(function(){return D})),n.d(e,"rotate",(function(){return N})),n.d(e,"angle",(function(){return R})),n.d(e,"zero",(function(){return L})),n.d(e,"str",(function(){return B})),n.d(e,"exactEquals",(function(){return G})),n.d(e,"equals",(function(){return F})),n.d(e,"len",(function(){return z})),n.d(e,"sub",(function(){return V})),n.d(e,"mul",(function(){return W})),n.d(e,"div",(function(){return X})),n.d(e,"dist",(function(){return Y})),n.d(e,"sqrDist",(function(){return H})),n.d(e,"sqrLen",(function(){return q})),n.d(e,"forEach",(function(){return K}));var r=n(12);function i(){var t=new r.a(2);return r.a!=Float32Array&&(t[0]=0,t[1]=0),t}function o(t){var e=new r.a(2);return e[0]=t[0],e[1]=t[1],e}function a(t,e){var n=new r.a(2);return n[0]=t,n[1]=e,n}function s(t,e){return t[0]=e[0],t[1]=e[1],t}function u(t,e,n){return t[0]=e,t[1]=n,t}function c(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function f(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function l(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function h(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function d(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t}function p(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t}function g(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function v(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function y(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t}function m(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function b(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function x(t,e){var n=e[0]-t[0],r=e[1]-t[1];return Math.hypot(n,r)}function w(t,e){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function S(t){var e=t[0],n=t[1];return Math.hypot(e,n)}function E(t){var e=t[0],n=t[1];return e*e+n*n}function _(t,e){return t[0]=-e[0],t[1]=-e[1],t}function O(t,e){return t[0]=1/e[0],t[1]=1/e[1],t}function k(t,e){var n=e[0],r=e[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i,t}function M(t,e){return t[0]*e[0]+t[1]*e[1]}function A(t,e,n){var r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t}function T(t,e,n,r){var i=e[0],o=e[1];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t}function C(t,e){e=e||1;var n=2*r.c()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t}function I(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i,t[1]=n[1]*r+n[3]*i,t}function P(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function j(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[3]*i+n[6],t[1]=n[1]*r+n[4]*i+n[7],t}function D(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[4]*i+n[12],t[1]=n[1]*r+n[5]*i+n[13],t}function N(t,e,n,r){var i=e[0]-n[0],o=e[1]-n[1],a=Math.sin(r),s=Math.cos(r);return t[0]=i*s-o*a+n[0],t[1]=i*a+o*s+n[1],t}function R(t,e){var n=t[0],r=t[1],i=e[0],o=e[1],a=Math.sqrt(n*n+r*r)*Math.sqrt(i*i+o*o),s=a&&(n*i+r*o)/a;return Math.acos(Math.min(Math.max(s,-1),1))}function L(t){return t[0]=0,t[1]=0,t}function B(t){return"vec2("+t[0]+", "+t[1]+")"}function G(t,e){return t[0]===e[0]&&t[1]===e[1]}function F(t,e){var n=t[0],i=t[1],o=e[0],a=e[1];return Math.abs(n-o)<=r.b*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-a)<=r.b*Math.max(1,Math.abs(i),Math.abs(a))}var U,z=S,V=f,W=l,X=h,Y=x,H=w,q=E,K=(U=i(),function(t,e,n,r,i,o){var a,s;for(e||(e=2),n||(n=0),s=r?Math.min(r*e+n,t.length):t.length,a=n;a<s;a+=e)U[0]=t[a],U[1]=t[a+1],i(U,U,o),t[a]=U[0],t[a+1]=U[1];return t})},function(t,e){var n=[],r=[];function i(t,e){if(e=e||{},void 0===t)throw new Error("insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).");var i,o=!0===e.prepend?"prepend":"append",a=void 0!==e.container?e.container:document.querySelector("head"),s=n.indexOf(a);return-1===s&&(s=n.push(a)-1,r[s]={}),void 0!==r[s]&&void 0!==r[s][o]?i=r[s][o]:(i=r[s][o]=function(){var t=document.createElement("style");return t.setAttribute("type","text/css"),t}(),"prepend"===o?a.insertBefore(i,a.childNodes[0]):a.appendChild(i)),65279===t.charCodeAt(0)&&(t=t.substr(1,t.length)),i.styleSheet?i.styleSheet.cssText+=t:i.textContent+=t,i}t.exports=i,t.exports.insertCss=i},function(t,e,n){"use strict";n.d(e,"a",(function(){return k}));var r,i,o,a,s,u,c,f,l,h=n(9),d=n.n(h),p=n(14),g=n.n(p),v=n(10),y=n.n(v),m=n(6),b=n.n(m),x=n(11),w=n.n(x),S=(n(28),n(5)),E=n(13),_=n(36),O=n(50),k=(r=Object(S.injectable)(),i=Object(S.inject)(E.a.RenderEngine),o=Object(S.inject)(E.a.ResourcePool),r((l=f=function t(){var e=this;b()(this,t),y()(this,"engine",u,this),y()(this,"resourcePool",c,this),this.model=void 0,this.setup=function(t,e,n){var r=t.getPass(O.a.IDENTIFIER);if(r){var i=t.createRenderTarget(e,"render to screen",{width:1,height:1});n.data={input:e.read(r.data.output),output:e.write(t,i)}}},this.execute=function(){var t=g()(d.a.mark((function t(n,r){var i,o,a,s,u,c,f;return d.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=e.engine,o=i.createModel,a=i.createAttribute,s=i.createBuffer,e.model){t.next=6;break}return t.next=4,o({vs:e.engine.supportWebGPU?"layout(location = 0) in vec2 a_Position;\\nlayout(location = 0) out vec2 v_UV;\\n\\nvoid main() {\\n v_UV = 0.5 * (a_Position + 1.0);\\n gl_Position = vec4(a_Position, 0., 1.);\\n}":"attribute vec2 a_Position;\\n\\nvarying vec2 v_UV;\\n\\nvoid main() {\\n v_UV = 0.5 * (a_Position + 1.0);\\n gl_Position = vec4(a_Position, 0., 1.);\\n}",fs:e.engine.supportWebGPU?"layout(set = 0, binding = 0) uniform sampler u_TextureSampler;\\nlayout(set = 0, binding = 1) uniform texture2D u_Texture;\\n\\nlayout(location = 0) in vec2 v_UV;\\nlayout(location = 0) out vec4 outColor;\\n\\nvoid main() {\\n outColor = texture(sampler2D(u_Texture, u_TextureSampler), v_UV);\\n}":"varying vec2 v_UV;\\n\\nuniform sampler2D u_Texture;\\n\\nvoid main() {\\n gl_FragColor = vec4(texture2D(u_Texture, v_UV));\\n}",attributes:{a_Position:a({buffer:s({data:[-4,-4,4,-4,0,4],type:_.a.FLOAT}),size:2,arrayStride:8,stepMode:"vertex",attributes:[{shaderLocation:0,offset:0,format:"float2"}]})},uniforms:{u_Texture:null},depth:{enable:!1},count:3,blend:{enable:!0}});case 4:u=t.sent,e.model=u;case 6:c=n.getResourceNode(r.data.input),f=e.resourcePool.getOrCreateResource(c.resource),e.engine.useFramebuffer(null,(function(){e.engine.clear({framebuffer:null,color:[0,0,0,0],depth:1,stencil:0}),e.model.draw({uniforms:{u_Texture:f}})}));case 9:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),this.tearDown=function(){e.model=void 0}},f.IDENTIFIER="Copy Pass",s=l,u=w()(s.prototype,"engine",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=w()(s.prototype,"resourcePool",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=s))||a)},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=n(281),o=n(285),a=[].slice,s=["keyword","gray","hex"],u={};Object.keys(o).forEach((function(t){u[a.call(o[t].labels).sort().join("")]=t}));var c={};function f(t,e){if(!(this instanceof f))return new f(t,e);if(e&&e in s&&(e=null),e&&!(e in o))throw new Error("Unknown model: "+e);var n,r;if(null==t)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof f)this.model=t.model,this.color=t.color.slice(),this.valpha=t.valpha;else if("string"==typeof t){var l=i.get(t);if(null===l)throw new Error("Unable to parse color from string: "+t);this.model=l.model,r=o[this.model].channels,this.color=l.value.slice(0,r),this.valpha="number"==typeof l.value[r]?l.value[r]:1}else if(t.length){this.model=e||"rgb",r=o[this.model].channels;var h=a.call(t,0,r);this.color=p(h,r),this.valpha="number"==typeof t[r]?t[r]:1}else if("number"==typeof t)t&=16777215,this.model="rgb",this.color=[t>>16&255,t>>8&255,255&t],this.valpha=1;else{this.valpha=1;var d=Object.keys(t);"alpha"in t&&(d.splice(d.indexOf("alpha"),1),this.valpha="number"==typeof t.alpha?t.alpha:0);var g=d.sort().join("");if(!(g in u))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=u[g];var v=o[this.model].labels,y=[];for(n=0;n<v.length;n++)y.push(t[v[n]]);this.color=p(y)}if(c[this.model])for(r=o[this.model].channels,n=0;n<r;n++){var m=c[this.model][n];m&&(this.color[n]=m(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}function l(t,e,n){return(t=Array.isArray(t)?t:[t]).forEach((function(t){(c[t]||(c[t]=[]))[e]=n})),t=t[0],function(r){var i;return arguments.length?(n&&(r=n(r)),(i=this[t]()).color[e]=r,i):(i=this[t]().color[e],n&&(i=n(i)),i)}}function h(t){return function(e){return Math.max(0,Math.min(t,e))}}function d(t){return Array.isArray(t)?t:[t]}function p(t,e){for(var n=0;n<e;n++)"number"!=typeof t[n]&&(t[n]=0);return t}f.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(t){var e=this.model in i.to?this:this.rgb(),n=1===(e=e.round("number"==typeof t?t:1)).valpha?e.color:e.color.concat(this.valpha);return i.to[e.model](n)},percentString:function(t){var e=this.rgb().round("number"==typeof t?t:1),n=1===e.valpha?e.color:e.color.concat(this.valpha);return i.to.rgb.percent(n)},array:function(){return 1===this.valpha?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var t={},e=o[this.model].channels,n=o[this.model].labels,r=0;r<e;r++)t[n[r]]=this.color[r];return 1!==this.valpha&&(t.alpha=this.valpha),t},unitArray:function(){var t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,1!==this.valpha&&t.push(this.valpha),t},unitObject:function(){var t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,1!==this.valpha&&(t.alpha=this.valpha),t},round:function(t){return t=Math.max(t||0,0),new f(this.color.map(function(t){return function(e){return function(t,e){return Number(t.toFixed(e))}(e,t)}}(t)).concat(this.valpha),this.model)},alpha:function(t){return arguments.length?new f(this.color.concat(Math.max(0,Math.min(1,t))),this.model):this.valpha},red:l("rgb",0,h(255)),green:l("rgb",1,h(255)),blue:l("rgb",2,h(255)),hue:l(["hsl","hsv","hsl","hwb","hcg"],0,(function(t){return(t%360+360)%360})),saturationl:l("hsl",1,h(100)),lightness:l("hsl",2,h(100)),saturationv:l("hsv",1,h(100)),value:l("hsv",2,h(100)),chroma:l("hcg",1,h(100)),gray:l("hcg",2,h(100)),white:l("hwb",1,h(100)),wblack:l("hwb",2,h(100)),cyan:l("cmyk",0,h(100)),magenta:l("cmyk",1,h(100)),yellow:l("cmyk",2,h(100)),black:l("cmyk",3,h(100)),x:l("xyz",0,h(100)),y:l("xyz",1,h(100)),z:l("xyz",2,h(100)),l:l("lab",0,h(100)),a:l("lab",1),b:l("lab",2),keyword:function(t){return arguments.length?new f(t):o[this.model].keyword(this.color)},hex:function(t){return arguments.length?new f(t):i.to.hex(this.rgb().round().color)},rgbNumber:function(){var t=this.rgb().color;return(255&t[0])<<16|(255&t[1])<<8|255&t[2]},luminosity:function(){for(var t=this.rgb().color,e=[],n=0;n<t.length;n++){var r=t[n]/255;e[n]=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),n=t.luminosity();return e>n?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},isDark:function(){var t=this.rgb().color;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var t=this.rgb(),e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten:function(t){var e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken:function(t){var e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate:function(t){var e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate:function(t){var e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten:function(t){var e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken:function(t){var e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale:function(){var t=this.rgb().color,e=.3*t[0]+.59*t[1]+.11*t[2];return f.rgb(e,e,e)},fade:function(t){return this.alpha(this.valpha-this.valpha*t)},opaquer:function(t){return this.alpha(this.valpha+this.valpha*t)},rotate:function(t){var e=this.hsl(),n=e.color[0];return n=(n=(n+t)%360)<0?360+n:n,e.color[0]=n,e},mix:function(t,e){if(!t||!t.rgb)throw new Error(\'Argument to "mix" was not a Color instance, but rather an instance of \'+r(t));var n=t.rgb(),i=this.rgb(),o=void 0===e?.5:e,a=2*o-1,s=n.alpha()-i.alpha(),u=((a*s==-1?a:(a+s)/(1+a*s))+1)/2,c=1-u;return f.rgb(u*n.red()+c*i.red(),u*n.green()+c*i.green(),u*n.blue()+c*i.blue(),n.alpha()*o+i.alpha()*(1-o))}},Object.keys(o).forEach((function(t){if(-1===s.indexOf(t)){var e=o[t].channels;f.prototype[t]=function(){if(this.model===t)return new f(this);if(arguments.length)return new f(arguments,t);var n="number"==typeof arguments[e]?e:this.valpha;return new f(d(o[this.model][t].raw(this.color)).concat(n),t)},f[t]=function(n){return"number"==typeof n&&(n=p(a.call(arguments),e)),new f(n,t)}}})),t.exports=f},function(t,e,n){var r=n(59),i=n(43);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,n){var r=n(102),i=n(103);t.exports=function(t,e,n,o){var a=!n;n||(n={});for(var s=-1,u=e.length;++s<u;){var c=e[s],f=o?o(n[c],t[c],c,n,t):void 0;void 0===f&&(f=t[c]),a?i(n,c,f):r(n,c,f)}return n}},function(t,e,n){var r=n(321),i=n(46),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return i(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=u},function(t,e,n){var r=n(77);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.circularDependencyToException=e.listMetadataForTarget=e.listRegisteredBindingsForServiceIdentifier=e.getServiceIdentifierAsString=e.getFunctionName=void 0;var i=n(41);function o(t){return"function"==typeof t?t.name:"symbol"===r(t)?t.toString():t}function a(t){if(t.name)return t.name;var e=t.toString(),n=e.match(/^function\\s*([^\\s(]+)/);return n?n[1]:"Anonymous function: "+e}e.getServiceIdentifierAsString=o,e.listRegisteredBindingsForServiceIdentifier=function(t,e,n){var r="",i=n(t,e);return 0!==i.length&&(r="\\nRegistered bindings:",i.forEach((function(t){var e="Object";null!==t.implementationType&&(e=a(t.implementationType)),r=r+"\\n "+e,t.constraint.metaData&&(r=r+" - "+t.constraint.metaData)}))),r},e.circularDependencyToException=function t(e){e.childRequests.forEach((function(e){if(function t(e,n){return null!==e.parentRequest&&(e.parentRequest.serviceIdentifier===n||t(e.parentRequest,n))}(e,e.serviceIdentifier)){var n=function(t){return function t(e,n){void 0===n&&(n=[]);var r=o(e.serviceIdentifier);return n.push(r),null!==e.parentRequest?t(e.parentRequest,n):n}(t).reverse().join(" --\\x3e ")}(e);throw new Error(i.CIRCULAR_DEPENDENCY+" "+n)}t(e)}))},e.listMetadataForTarget=function(t,e){if(e.isTagged()||e.isNamed()){var n="",r=e.getNamedTag(),i=e.getCustomTags();return null!==r&&(n+=r.toString()+"\\n"),null!==i&&i.forEach((function(t){n+=t.toString()+"\\n"}))," "+t+"\\n "+t+" - "+n}return" "+t},e.getFunctionName=a},function(t,e,n){"use strict";n.d(e,"a",(function(){return Z}));n(232);var r,i,o,a,s,u=n(5),c=n(271),f=n.n(c),l=n(35),h=n(10),d=n.n(h),p=n(6),g=n.n(p),v=n(7),y=n.n(v),m=n(11),b=n.n(m),x=(n(28),n(13)),w=n(36),S=(r=Object(u.injectable)(),i=Object(u.inject)(x.a.RenderEngine),r((a=function(){function t(){g()(this,t),d()(this,"engine",s,this),this.resourcePool={}}return y()(t,[{key:"getOrCreateResource",value:function(t){if(!this.resourcePool[t.name]){var e=t.descriptor,n=e.width,r=e.height,i=e.usage;this.resourcePool[t.name]=this.engine.createFramebuffer({color:this.engine.createTexture2D({width:n,height:r,wrapS:w.a.CLAMP_TO_EDGE,wrapT:w.a.CLAMP_TO_EDGE,usage:i})})}return this.resourcePool[t.name]}},{key:"clean",value:function(){this.resourcePool={}}}]),t}(),s=b()(a.prototype,"engine",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=a))||o),E=n(134),_=n(120),O=n(121),k=n(122),M=n(123),A=n(124),T=n(125),C=n(126),I=n(84),P=n(70),j=n(50),D=n(128),N=n(129),R=n(23),L=n.n(R),B=n(24),G=n.n(B),F=n(17),U=n.n(F);function z(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=U()(t);if(e){var i=U()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return G()(this,n)}}var V=function(t){L()(n,t);var e=z(n);function n(t){var r;return g()(this,n),(r=e.call(this,t)).name=void 0,r.name=t.name||"",r}return n}(n(3).Component),W=n(130),X=n(131),Y=n(132),H=n(133),q=n(135),K=new u.Container;f()(K,!1);function Z(){var t=new u.Container;return t.parent=K,t.bind(x.a.Systems).to(W.a).inSingletonScope().whenTargetNamed(x.a.SceneGraphSystem),t.bind(x.a.Systems).to(E.a).inSingletonScope().whenTargetNamed(x.a.FrameGraphSystem),t.bind(x.a.Systems).to(C.a).inSingletonScope().whenTargetNamed(x.a.MeshSystem),t.bind(x.a.Systems).to(O.a).inSingletonScope().whenTargetNamed(x.a.GeometrySystem),t.bind(x.a.Systems).to(M.a).inSingletonScope().whenTargetNamed(x.a.MaterialSystem),t.bind(x.a.Systems).to(D.a).inSingletonScope().whenTargetNamed(x.a.RendererSystem),t.bind(x.a.ResourcePool).to(S).inSingletonScope(),t.bind(x.a.ConfigService).to(Y.a).inSingletonScope(),t.bind(x.a.InteractorService).to(H.a).inSingletonScope(),t.bind(x.a.RenderPass).to(j.a).inSingletonScope().whenTargetNamed(j.a.IDENTIFIER),t.bind(x.a.RenderPass).to(I.a).inSingletonScope().whenTargetNamed(I.a.IDENTIFIER),t.bind(x.a.RenderPass).to(P.a).inSingletonScope().whenTargetNamed(P.a.IDENTIFIER),t.bind(x.a.RenderPassFactory).toFactory((function(t){return function(e){return t.container.getNamed(x.a.RenderPass,e)}})),t}K.bind(x.a.ShaderModuleService).to(q.a).inSingletonScope(),K.bind(x.a.NameComponentManager).toConstantValue(new l.b(V)),K.bind(x.a.HierarchyComponentManager).toConstantValue(new l.b(N.a)),K.bind(x.a.TransformComponentManager).toConstantValue(new l.b(X.a)),K.bind(x.a.MeshComponentManager).toConstantValue(new l.b(T.a)),K.bind(x.a.CullableComponentManager).toConstantValue(new l.b(A.a)),K.bind(x.a.GeometryComponentManager).toConstantValue(new l.b(_.a)),K.bind(x.a.MaterialComponentManager).toConstantValue(new l.b(k.a))},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(16);function i(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function o(t,e){return i(t)*i(e)?(t[0]*e[0]+t[1]*e[1])/(i(t)*i(e)):1}function a(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(o(t,e))}function s(t,e){var n=e[1],i=e[2],s=Object(r.m)(Object(r.o)(e[3]),2*Math.PI),u=e[4],c=e[5],f=t[0],l=t[1],h=e[6],d=e[7],p=Math.cos(s)*(f-h)/2+Math.sin(s)*(l-d)/2,g=-1*Math.sin(s)*(f-h)/2+Math.cos(s)*(l-d)/2,v=p*p/(n*n)+g*g/(i*i);v>1&&(n*=Math.sqrt(v),i*=Math.sqrt(v));var y=n*n*(g*g)+i*i*(p*p),m=y?Math.sqrt((n*n*(i*i)-y)/y):1;u===c&&(m*=-1),isNaN(m)&&(m=0);var b=i?m*n*g/i:0,x=n?m*-i*p/n:0,w=(f+h)/2+Math.cos(s)*b-Math.sin(s)*x,S=(l+d)/2+Math.sin(s)*b+Math.cos(s)*x,E=[(p-b)/n,(g-x)/i],_=[(-1*p-b)/n,(-1*g-x)/i],O=a([1,0],E),k=a(E,_);return o(E,_)<=-1&&(k=Math.PI),o(E,_)>=1&&(k=0),0===c&&k>0&&(k-=2*Math.PI),1===c&&k<0&&(k+=2*Math.PI),{cx:w,cy:S,rx:Object(r.j)(t,[h,d])?0:n,ry:Object(r.j)(t,[h,d])?0:i,startAngle:O,endAngle:O+k,xRotation:s,arcFlag:u,sweepFlag:c}}},function(t,e){function n(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=n=function(t){return typeof t}:t.exports=n=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(e)}t.exports=n},function(t,e){t.exports=function(t){return null==t}},function(t,e,n){var r;function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(o){var a=/^\\s+/,s=/\\s+$/,u=0,c=o.round,f=o.min,l=o.max,h=o.random;function d(t,e){if(e=e||{},(t=t||"")instanceof d)return t;if(!(this instanceof d))return new d(t,e);var n=function(t){var e={r:0,g:0,b:0},n=1,r=null,u=null,c=null,h=!1,d=!1;"string"==typeof t&&(t=function(t){t=t.replace(a,"").replace(s,"").toLowerCase();var e,n=!1;if(I[t])t=I[t],n=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};if(e=W.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=W.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=W.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=W.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=W.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=W.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=W.hex8.exec(t))return{r:R(e[1]),g:R(e[2]),b:R(e[3]),a:F(e[4]),format:n?"name":"hex8"};if(e=W.hex6.exec(t))return{r:R(e[1]),g:R(e[2]),b:R(e[3]),format:n?"name":"hex"};if(e=W.hex4.exec(t))return{r:R(e[1]+""+e[1]),g:R(e[2]+""+e[2]),b:R(e[3]+""+e[3]),a:F(e[4]+""+e[4]),format:n?"name":"hex8"};if(e=W.hex3.exec(t))return{r:R(e[1]+""+e[1]),g:R(e[2]+""+e[2]),b:R(e[3]+""+e[3]),format:n?"name":"hex"};return!1}(t));"object"==i(t)&&(X(t.r)&&X(t.g)&&X(t.b)?(p=t.r,g=t.g,v=t.b,e={r:255*D(p,255),g:255*D(g,255),b:255*D(v,255)},h=!0,d="%"===String(t.r).substr(-1)?"prgb":"rgb"):X(t.h)&&X(t.s)&&X(t.v)?(r=B(t.s),u=B(t.v),e=function(t,e,n){t=6*D(t,360),e=D(e,100),n=D(n,100);var r=o.floor(t),i=t-r,a=n*(1-e),s=n*(1-i*e),u=n*(1-(1-i)*e),c=r%6;return{r:255*[n,s,a,a,u,n][c],g:255*[u,n,n,s,a,a][c],b:255*[a,a,u,n,n,s][c]}}(t.h,r,u),h=!0,d="hsv"):X(t.h)&&X(t.s)&&X(t.l)&&(r=B(t.s),c=B(t.l),e=function(t,e,n){var r,i,o;function a(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(t=D(t,360),e=D(e,100),n=D(n,100),0===e)r=i=o=n;else{var s=n<.5?n*(1+e):n+e-n*e,u=2*n-s;r=a(u,s,t+1/3),i=a(u,s,t),o=a(u,s,t-1/3)}return{r:255*r,g:255*i,b:255*o}}(t.h,r,c),h=!0,d="hsl"),t.hasOwnProperty("a")&&(n=t.a));var p,g,v;return n=j(n),{ok:h,format:t.format||d,r:f(255,l(e.r,0)),g:f(255,l(e.g,0)),b:f(255,l(e.b,0)),a:n}}(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=c(100*this._a)/100,this._format=e.format||n.format,this._gradientType=e.gradientType,this._r<1&&(this._r=c(this._r)),this._g<1&&(this._g=c(this._g)),this._b<1&&(this._b=c(this._b)),this._ok=n.ok,this._tc_id=u++}function p(t,e,n){t=D(t,255),e=D(e,255),n=D(n,255);var r,i,o=l(t,e,n),a=f(t,e,n),s=(o+a)/2;if(o==a)r=i=0;else{var u=o-a;switch(i=s>.5?u/(2-o-a):u/(o+a),o){case t:r=(e-n)/u+(e<n?6:0);break;case e:r=(n-t)/u+2;break;case n:r=(t-e)/u+4}r/=6}return{h:r,s:i,l:s}}function g(t,e,n){t=D(t,255),e=D(e,255),n=D(n,255);var r,i,o=l(t,e,n),a=f(t,e,n),s=o,u=o-a;if(i=0===o?0:u/o,o==a)r=0;else{switch(o){case t:r=(e-n)/u+(e<n?6:0);break;case e:r=(n-t)/u+2;break;case n:r=(t-e)/u+4}r/=6}return{h:r,s:i,v:s}}function v(t,e,n,r){var i=[L(c(t).toString(16)),L(c(e).toString(16)),L(c(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function y(t,e,n,r){return[L(G(r)),L(c(t).toString(16)),L(c(e).toString(16)),L(c(n).toString(16))].join("")}function m(t,e){e=0===e?0:e||10;var n=d(t).toHsl();return n.s-=e/100,n.s=N(n.s),d(n)}function b(t,e){e=0===e?0:e||10;var n=d(t).toHsl();return n.s+=e/100,n.s=N(n.s),d(n)}function x(t){return d(t).desaturate(100)}function w(t,e){e=0===e?0:e||10;var n=d(t).toHsl();return n.l+=e/100,n.l=N(n.l),d(n)}function S(t,e){e=0===e?0:e||10;var n=d(t).toRgb();return n.r=l(0,f(255,n.r-c(-e/100*255))),n.g=l(0,f(255,n.g-c(-e/100*255))),n.b=l(0,f(255,n.b-c(-e/100*255))),d(n)}function E(t,e){e=0===e?0:e||10;var n=d(t).toHsl();return n.l-=e/100,n.l=N(n.l),d(n)}function _(t,e){var n=d(t).toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,d(n)}function O(t){var e=d(t).toHsl();return e.h=(e.h+180)%360,d(e)}function k(t){var e=d(t).toHsl(),n=e.h;return[d(t),d({h:(n+120)%360,s:e.s,l:e.l}),d({h:(n+240)%360,s:e.s,l:e.l})]}function M(t){var e=d(t).toHsl(),n=e.h;return[d(t),d({h:(n+90)%360,s:e.s,l:e.l}),d({h:(n+180)%360,s:e.s,l:e.l}),d({h:(n+270)%360,s:e.s,l:e.l})]}function A(t){var e=d(t).toHsl(),n=e.h;return[d(t),d({h:(n+72)%360,s:e.s,l:e.l}),d({h:(n+216)%360,s:e.s,l:e.l})]}function T(t,e,n){e=e||6,n=n||30;var r=d(t).toHsl(),i=360/n,o=[d(t)];for(r.h=(r.h-(i*e>>1)+720)%360;--e;)r.h=(r.h+i)%360,o.push(d(r));return o}function C(t,e){e=e||6;for(var n=d(t).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/e;e--;)a.push(d({h:r,s:i,v:o})),o=(o+s)%1;return a}d.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,n,r=this.toRgb();return t=r.r/255,e=r.g/255,n=r.b/255,.2126*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=j(t),this._roundA=c(100*this._a)/100,this},toHsv:function(){var t=g(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=g(this._r,this._g,this._b),e=c(360*t.h),n=c(100*t.s),r=c(100*t.v);return 1==this._a?"hsv("+e+", "+n+"%, "+r+"%)":"hsva("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var t=p(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=p(this._r,this._g,this._b),e=c(360*t.h),n=c(100*t.s),r=c(100*t.l);return 1==this._a?"hsl("+e+", "+n+"%, "+r+"%)":"hsla("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(t){return v(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,n,r,i){var o=[L(c(t).toString(16)),L(c(e).toString(16)),L(c(n).toString(16)),L(G(r))];if(i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:c(this._r),g:c(this._g),b:c(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+c(this._r)+", "+c(this._g)+", "+c(this._b)+")":"rgba("+c(this._r)+", "+c(this._g)+", "+c(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:c(100*D(this._r,255))+"%",g:c(100*D(this._g,255))+"%",b:c(100*D(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+c(100*D(this._r,255))+"%, "+c(100*D(this._g,255))+"%, "+c(100*D(this._b,255))+"%)":"rgba("+c(100*D(this._r,255))+"%, "+c(100*D(this._g,255))+"%, "+c(100*D(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(P[v(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+y(this._r,this._g,this._b,this._a),n=e,r=this._gradientType?"GradientType = 1, ":"";if(t){var i=d(t);n="#"+y(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+e+",endColorstr="+n+")"},toString:function(t){var e=!!t;t=t||this._format;var n=!1,r=this._a<1&&this._a>=0;return e||!r||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex4"===t&&(n=this.toHex8String(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return d(this.toString())},_applyModification:function(t,e){var n=t.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(S,arguments)},darken:function(){return this._applyModification(E,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(_,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(T,arguments)},complement:function(){return this._applyCombination(O,arguments)},monochromatic:function(){return this._applyCombination(C,arguments)},splitcomplement:function(){return this._applyCombination(A,arguments)},triad:function(){return this._applyCombination(k,arguments)},tetrad:function(){return this._applyCombination(M,arguments)}},d.fromRatio=function(t,e){if("object"==i(t)){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]="a"===r?t[r]:B(t[r]));t=n}return d(t,e)},d.equals=function(t,e){return!(!t||!e)&&d(t).toRgbString()==d(e).toRgbString()},d.random=function(){return d.fromRatio({r:h(),g:h(),b:h()})},d.mix=function(t,e,n){n=0===n?0:n||50;var r=d(t).toRgb(),i=d(e).toRgb(),o=n/100;return d({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},d.readability=function(t,e){var n=d(t),r=d(e);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},d.isReadable=function(t,e,n){var r,i,o=d.readability(t,e);switch(i=!1,(r=function(t){var e,n;e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==n&&"large"!==n&&(n="small");return{level:e,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":i=o>=4.5;break;case"AAlarge":i=o>=3;break;case"AAAsmall":i=o>=7}return i},d.mostReadable=function(t,e,n){var r,i,o,a,s=null,u=0;i=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var c=0;c<e.length;c++)(r=d.readability(t,e[c]))>u&&(u=r,s=d(e[c]));return d.isReadable(t,s,{level:o,size:a})||!i?s:(n.includeFallbackColors=!1,d.mostReadable(t,["#fff","#000"],n))};var I=d.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},P=d.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(I);function j(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function D(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var n=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=f(e,l(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),o.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function N(t){return f(1,l(0,t))}function R(t){return parseInt(t,16)}function L(t){return 1==t.length?"0"+t:""+t}function B(t){return t<=1&&(t=100*t+"%"),t}function G(t){return o.round(255*parseFloat(t)).toString(16)}function F(t){return R(t)/255}var U,z,V,W=(z="[\\\\s|\\\\(]+("+(U="(?:[-\\\\+]?\\\\d*\\\\.\\\\d+%?)|(?:[-\\\\+]?\\\\d+%?)")+")[,|\\\\s]+("+U+")[,|\\\\s]+("+U+")\\\\s*\\\\)?",V="[\\\\s|\\\\(]+("+U+")[,|\\\\s]+("+U+")[,|\\\\s]+("+U+")[,|\\\\s]+("+U+")\\\\s*\\\\)?",{CSS_UNIT:new RegExp(U),rgb:new RegExp("rgb"+z),rgba:new RegExp("rgba"+V),hsl:new RegExp("hsl"+z),hsla:new RegExp("hsla"+V),hsv:new RegExp("hsv"+z),hsva:new RegExp("hsva"+V),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function X(t){return!!W.CSS_UNIT.exec(t)}t.exports?t.exports=d:void 0===(r=function(){return d}.call(e,n,e,t))||(t.exports=r)}(Math)},function(t,e,n){t.exports={EPSILON:n(253),create:n(254),clone:n(497),fromValues:n(498),copy:n(499),set:n(255),equals:n(500),exactEquals:n(501),add:n(256),subtract:n(167),sub:n(502),multiply:n(257),mul:n(503),divide:n(258),div:n(504),inverse:n(505),min:n(506),max:n(507),rotate:n(508),floor:n(509),ceil:n(510),round:n(511),scale:n(512),scaleAndAdd:n(513),distance:n(259),dist:n(514),squaredDistance:n(260),sqrDist:n(515),length:n(261),len:n(516),squaredLength:n(262),sqrLen:n(517),negate:n(518),normalize:n(263),dot:n(264),cross:n(519),lerp:n(520),random:n(521),transformMat2:n(522),transformMat2d:n(523),transformMat3:n(524),transformMat4:n(525),forEach:n(526),limit:n(527)}},function(t,e,n){var r=n(98),i=n(296),o=n(297),a=n(298),s=n(299),u=n(300);function c(t){var e=this.__data__=new r(t);this.size=e.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,t.exports=c},function(t,e,n){var r=n(291),i=n(292),o=n(293),a=n(294),s=n(295);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},function(t,e,n){var r=n(73);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},function(t,e,n){var r=n(65)(Object,"create");t.exports=r},function(t,e,n){var r=n(315);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e,n){var r=n(103),i=n(73),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];o.call(t,e)&&i(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},function(t,e,n){var r=n(181);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r=/^(?:0|[1-9]\\d*)$/;t.exports=function(t,e){var i=n(t);return!!(e=null==e?9007199254740991:e)&&("number"==i||"symbol"!=i&&r.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){var r=n(183)(Object.getPrototypeOf,Object);t.exports=r},function(t,e,n){var r=n(153),i=n(344)(r);t.exports=i},function(t,e,n){var r=n(110),i=n(89);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&n<o;)t=t[i(e[n++])];return n&&n==o?t:void 0}},function(t,e,n){var r=n(29),i=n(156),o=n(358),a=n(206);t.exports=function(t,e){return r(t)?t:i(t,e)?[t]:o(a(t))}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},function(t,e,n){var r=n(67),i=n(215),o=n(216);t.exports=function(t,e){return o(i(t,e,r),t+"")}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=n(73),o=n(54),a=n(104),s=n(43);t.exports=function(t,e,n){if(!s(n))return!1;var u=r(e);return!!("number"==u?o(n)&&a(e,n.length):"string"==u&&e in n)&&i(n[e],t)}},function(t,e,n){"use strict";var r=n(27);t.exports={longestPath:function(t){var e={};r.forEach(t.sources(),(function n(i){var o=t.node(i);if(r.has(e,i))return o.rank;e[i]=!0;var a=r.min(r.map(t.outEdges(i),(function(e){return n(e.w)-t.edge(e).minlen})));return a!==Number.POSITIVE_INFINITY&&null!=a||(a=0),o.rank=a}))},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}}},function(t,e){},function(t,e,n){"use strict";var r=function(){function t(t,e){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=t,this.name=t,this.originalEvent=e,this.timeStamp=e.timeStamp}return t.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.toString=function(){return"[Event (type="+this.type+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}();e.a=r},function(t,e,n){"use strict";var r=n(1),i=n(136),o=n(19),a=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=n.getDefaultCfg();return n.cfg=Object(o.i)(r,e),n}return Object(r.b)(e,t),e.prototype.getDefaultCfg=function(){return{}},e.prototype.get=function(t){return this.cfg[t]},e.prototype.set=function(t,e){this.cfg[t]=e},e.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},e}(i.a);e.a=a},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=null;function i(){if(!r){var t=document.createElement("canvas");t.width=1,t.height=1,r=t.getContext("2d")}return r}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}));var r=-1,i=1;function o(){return i++}},function(t,e,n){"use strict";n.d(e,"a",(function(){return E}));var r=n(4),i=n.n(r),o=n(6),a=n.n(o),s=n(7),u=n.n(s),c=n(22),f=n.n(c),l=n(23),h=n.n(l),d=n(24),p=n.n(d),g=n(17),v=n.n(g),y=n(32),m=n.n(y),b=n(2);function x(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function w(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?x(Object(n),!0).forEach((function(e){i()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function S(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=v()(t);if(e){var i=v()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p()(this,n)}}var E=function(t){h()(n,t);var e=S(n);function n(t){var r;return a()(this,n),(r=e.call(this,t)).dirty=!0,r.attributes=[],r.indices=void 0,r.indicesBuffer=void 0,r.vertexCount=0,r.maxInstancedCount=void 0,r.aabb=void 0,r.entity=void 0,Object.assign(f()(r),t),r}return u()(n,[{key:"setAttribute",value:function(t,e,n,r){var i=this.attributes.find((function(e){return e.name===t}));return i?(i.data=e,i.dirty=!0):this.attributes.push(w(w({dirty:!0,name:t,data:e},n),{},{bufferGetter:r})),this.dirty=!0,this}},{key:"setIndex",value:function(t){return this.indices=new Uint32Array(t.buffer?t.buffer:t),this.dirty=!0,this}},{key:"applyMatrix",value:function(t){var e=this.attributes.find((function(t){return"position"===t.name})),n=this.attributes.find((function(t){return"normal"===t.name}));if(e&&(e.dirty=!0,e.data&&e.data.length))for(var r=0;r<e.data.length;r+=3){var i=b.f.fromValues(e.data[r],e.data[r+1],e.data[r+2],1);b.f.transformMat4(i,i,t),m()(e.data)?e.data.set([i[0],i[1],i[2]],r):(e.data[r]=i[0],e.data[r+1]=i[1],e.data[r+2]=i[2])}if(n){var o=b.a.normalFromMat4(b.a.create(),t);if(n.data&&n.data.length)for(var a=0;a<n.data.length;a+=3){var s=b.e.fromValues(n.data[a],n.data[a+1],n.data[a+2]);b.e.transformMat3(s,s,o),b.e.normalize(s,s),m()(n.data)?n.data.set([s[0],s[1],s[2]],a):(n.data[a]=s[0],n.data[a+1]=s[1],n.data[a+2]=s[2])}}}}]),n}(n(3).Component)},function(t,e,n){"use strict";n.d(e,"a",(function(){return k}));var r,i,o,a,s,u,c,f=n(9),l=n.n(f),h=n(14),d=n.n(h),p=n(10),g=n.n(p),v=n(6),y=n.n(v),m=n(7),b=n.n(m),x=n(11),w=n.n(x),S=(n(28),n(5)),E=n(3),_=n(13),O=n(36),k=(r=Object(S.injectable)(),i=Object(S.inject)(_.a.GeometryComponentManager),o=Object(S.inject)(_.a.RenderEngine),r((s=function(){function t(){y()(this,t),g()(this,"geometry",u,this),g()(this,"engine",c,this)}var e;return b()(t,[{key:"execute",value:(e=d()(l.a.mark((function t(){var e=this;return l.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.geometry.forEach((function(t,n){n.dirty&&(n.attributes.forEach((function(t){var n;t.dirty&&t.data&&(t.buffer?null===(n=t.buffer)||void 0===n||n.subData({data:t.data,offset:0}):t.buffer=e.engine.createBuffer({data:t.data,type:O.a.FLOAT}),t.dirty=!1)})),n.indices&&(n.indicesBuffer?n.indicesBuffer.subData({data:n.indices,offset:0}):n.indicesBuffer=e.engine.createElements({data:n.indices,count:n.indices.length,type:O.a.UNSIGNED_INT,usage:O.a.STATIC_DRAW})),n.dirty=!1)}));case 1:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"tearDown",value:function(){this.geometry.forEach((function(t,e){e.indicesBuffer&&e.indicesBuffer.destroy(),e.attributes.forEach((function(t){t.buffer&&t.buffer.destroy()}))})),this.geometry.clear()}},{key:"createBufferGeometry",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{vertexCount:3},e=t.vertexCount,n=Object(E.createEntity)();return this.geometry.create(n,{vertexCount:e})}},{key:"createInstancedBufferGeometry",value:function(t){var e=t.maxInstancedCount,n=t.vertexCount,r=Object(E.createEntity)();return this.geometry.create(r,{maxInstancedCount:e,vertexCount:n})}}]),t}(),u=w()(s.prototype,"geometry",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=w()(s.prototype,"engine",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=s))||a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return w}));var r=n(4),i=n.n(r),o=n(6),a=n.n(o),s=n(7),u=n.n(s),c=n(22),f=n.n(c),l=n(23),h=n.n(l),d=n(24),p=n.n(d),g=n(17),v=n.n(g),y=n(3);function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function b(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach((function(e){i()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function x(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=v()(t);if(e){var i=v()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return p()(this,n)}}var w=function(t){h()(n,t);var e=x(n);function n(t){var r;return a()(this,n),(r=e.call(this,t)).vertexShaderGLSL=void 0,r.fragmentShaderGLSL=void 0,r.defines={},r.dirty=!0,r.uniforms=[],r.cull={enable:!0,face:y.gl.BACK},r.depth={enable:!0},r.blend=void 0,r.entity=void 0,r.type=void 0,Object.assign(f()(r),t),r}return u()(n,[{key:"setDefines",value:function(t){return this.defines=b(b({},this.defines),t),this}},{key:"setCull",value:function(t){return this.cull=t,this}},{key:"setDepth",value:function(t){return this.depth=t,this}},{key:"setBlend",value:function(t){return this.blend=t,this}},{key:"setUniform",value:function(t,e){var n=this;if("string"!=typeof t)return Object.keys(t).forEach((function(e){return n.setUniform(e,t[e])})),this;var r=this.uniforms.find((function(e){return e.name===t}));return r?(r.dirty=!0,r.data=e):this.uniforms.push({name:t,dirty:!0,data:e}),this.dirty=!0,this}}]),n}(y.Component)},function(t,e,n){"use strict";n.d(e,"a",(function(){return I}));var r,i,o,a,s,u,c,f,l,h=n(4),d=n.n(h),p=n(9),g=n.n(p),v=n(14),y=n.n(v),m=n(10),b=n.n(m),x=n(6),w=n.n(x),S=n(7),E=n.n(S),_=n(11),O=n.n(_),k=(n(28),n(5)),M=n(3),A=n(13);function T(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function C(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?T(Object(n),!0).forEach((function(e){d()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var I=(r=Object(k.injectable)(),i=Object(k.inject)(A.a.MaterialComponentManager),o=Object(k.inject)(A.a.RenderEngine),a=Object(k.inject)(A.a.ShaderModuleService),r((u=function(){function t(){w()(this,t),b()(this,"material",c,this),b()(this,"engine",f,this),b()(this,"shaderModule",l,this)}var e;return E()(t,[{key:"execute",value:(e=y()(g.a.mark((function t(){return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return e.apply(this,arguments)})},{key:"tearDown",value:function(){this.material.clear()}},{key:"createShaderMaterial",value:function(t){var e=Object(M.createEntity)(),n=t.vertexShader,r=t.fragmentShader,i=[];if(!this.engine.supportWebGPU){var o="material-".concat(e);this.shaderModule.registerModule(o,{vs:t.vertexShader,fs:t.fragmentShader});var a=this.shaderModule.getModule(o);n=a.vs,r=a.fs,a.uniforms&&(i=Object.keys(a.uniforms).map((function(t){return{dirty:!0,name:t,data:a.uniforms[t]}})))}return this.material.create(e,C(C({vertexShaderGLSL:n,fragmentShaderGLSL:r},t),{},{uniforms:i}))}}]),t}(),c=O()(u.prototype,"material",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=O()(u.prototype,"engine",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=O()(u.prototype,"shaderModule",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=u))||s)},function(t,e,n){"use strict";n.d(e,"a",(function(){return v}));var r,i=n(6),o=n.n(i),a=n(22),s=n.n(a),u=n(23),c=n.n(u),f=n(24),l=n.n(f),h=n(17),d=n.n(h),p=n(3);function g(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d()(t);if(e){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l()(this,n)}}!function(t){t[t.Standard=0]="Standard"}(r||(r={}));var v=function(t){c()(n,t);var e=g(n);function n(t){var i;return o()(this,n),(i=e.call(this,t)).strategy=r.Standard,i.visibilityPlaneMask=0,i.visible=!1,Object.assign(s()(i),t),i}return n}(p.Component)},function(t,e,n){"use strict";n.d(e,"a",(function(){return v}));var r=n(6),i=n.n(r),o=n(22),a=n.n(o),s=n(23),u=n.n(s),c=n(24),f=n.n(c),l=n(17),h=n.n(l),d=n(3),p=n(80);function g(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}var v=function(t){u()(n,t);var e=g(n);function n(t){var r;return i()(this,n),(r=e.call(this,t)).material=void 0,r.geometry=void 0,r.aabb=new p.a,r.aabbDirty=!0,r.model=void 0,r.visible=!0,r.children=[],Object.assign(a()(r),t),r}return n}(d.Component)},function(t,e,n){"use strict";n.d(e,"a",(function(){return N}));var r,i,o,a,s,u,c,f,l,h,d,p,g,v=n(9),y=n.n(v),m=n(14),b=n.n(m),x=n(10),w=n.n(x),S=n(6),E=n.n(S),_=n(7),O=n.n(_),k=n(11),M=n.n(k),A=(n(28),n(2)),T=n(5),C=n(13),I=n(58),P=n(141);function j(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return D(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 D(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function D(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}var N=(r=Object(T.injectable)(),i=Object(T.inject)(C.a.MeshComponentManager),o=Object(T.inject)(C.a.CullableComponentManager),a=Object(T.inject)(C.a.GeometryComponentManager),s=Object(T.inject)(C.a.HierarchyComponentManager),u=Object(T.inject)(C.a.TransformComponentManager),r((f=function(){function t(){E()(this,t),w()(this,"mesh",l,this),w()(this,"cullable",h,this),w()(this,"geometry",d,this),w()(this,"hierarchy",p,this),w()(this,"transform",g,this),this.planes=void 0}var e;return O()(t,[{key:"setFrustumPlanes",value:function(t){this.planes=t}},{key:"execute",value:(e=b()(y.a.mark((function t(e){var n,r,i,o,a,s,u,c,f,l,h,d,p,g,v,m,b,x,w,S,E;return y.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=j(e);try{for(n.s();!(r=n.n()).done;){i=r.value,o=i.getScene(),a=i.getCamera(),s=j(o.getEntities());try{for(s.s();!(u=s.n()).done;)c=u.value,(f=this.mesh.getComponentByEntity(c))&&(l=this.hierarchy.getComponentByEntity(c),h=this.cullable.getComponentByEntity(c),d=f.geometry,p=this.transform.getComponentByEntity(c),d&&d.aabb&&p&&f.aabbDirty&&(g=p.worldTransform,v=d.aabb,m=v.center,b=v.halfExtents,x=A.e.transformMat4(A.e.create(),m,g),w=Object(P.b)(g,A.a.create()),S=A.e.transformMat3(A.e.create(),b,w),f.aabb.update(x,S),f.aabbDirty=!1),h&&d&&(E=this.cullable.getComponentByEntity((null==l?void 0:l.parentID)||-1),h.visibilityPlaneMask=this.computeVisibilityWithPlaneMask(f.aabb,(null==E?void 0:E.visibilityPlaneMask)||I.b.INDETERMINATE,this.planes||a.getFrustum().planes),h.visible=h.visibilityPlaneMask!==I.b.OUTSIDE))}catch(t){s.e(t)}finally{s.f()}}}catch(t){n.e(t)}finally{n.f()}case 2:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"tearDown",value:function(){this.cullable.clear(),this.mesh.clear()}},{key:"computeVisibilityWithPlaneMask",value:function(t,e,n){if(e===I.b.OUTSIDE||e===I.b.INSIDE)return e;for(var r=I.b.INSIDE,i=0,o=n.length;i<o;++i){var a=i<31?1<<i:0;if(!(i<31&&0==(e&a))){var s=n[i],u=s.normal,c=s.distance;if(A.e.dot(u,t.getNegativeFarPoint(n[i]))+c>0)return I.b.OUTSIDE;A.e.dot(u,t.getPositiveFarPoint(n[i]))+c>0&&(r|=a)}}return r}}]),t}(),l=M()(f.prototype,"mesh",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=M()(f.prototype,"cullable",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=M()(f.prototype,"geometry",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=M()(f.prototype,"hierarchy",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=M()(f.prototype,"transform",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=f))||c)},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(6),i=n.n(r),o=n(7),a=n.n(o),s=n(2),u=function(){function t(e,n){i()(this,t),this.distance=void 0,this.normal=void 0,this.pnVertexFlag=void 0,this.distance=e||0,this.normal=n||s.e.fromValues(0,1,0),this.updatePNVertexFlag()}return a()(t,[{key:"updatePNVertexFlag",value:function(){this.pnVertexFlag=(Number(this.normal[0]>=0)<<8)+(Number(this.normal[1]>=0)<<4)+Number(this.normal[2]>=0)}},{key:"distanceToPoint",value:function(t){return s.e.dot(t,this.normal)-this.distance}},{key:"normalize",value:function(){var t=1/s.e.len(this.normal);s.e.scale(this.normal,this.normal,t),this.distance*=t}},{key:"intersectsLine",value:function(t,e,n){var r=this.distanceToPoint(t),i=r/(r-this.distanceToPoint(e)),o=i>=0&&i<=1;return o&&n&&s.e.lerp(n,t,e,i),o}}]),t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return P}));var r,i,o,a,s,u,c,f,l,h,d,p,g=n(9),v=n.n(g),y=n(14),m=n.n(y),b=n(10),x=n.n(b),w=n(6),S=n.n(w),E=n(7),_=n.n(E),O=n(11),k=n.n(O),M=(n(28),n(5)),A=n(13),T=n(84),C=n(70),I=n(50),P=(r=Object(M.injectable)(),i=Object(M.inject)(A.a.Systems),o=Object(M.named)(A.a.FrameGraphSystem),a=Object(M.inject)(A.a.RenderPassFactory),s=Object(M.inject)(A.a.ConfigService),u=Object(M.inject)(A.a.ResourcePool),r((f=function(){function t(){S()(this,t),x()(this,"frameGraphSystem",l,this),x()(this,"renderPassFactory",h,this),x()(this,"configService",d,this),x()(this,"resourcePool",p,this)}var e;return _()(t,[{key:"execute",value:(e=m()(v.a.mark((function t(e){var n,r,i,o,a,s,u,c;return v.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=this.renderPassFactory(I.a.IDENTIFIER),r=n.setup,i=n.execute,this.frameGraphSystem.addPass(I.a.IDENTIFIER,r,i),o=this.renderPassFactory(T.a.IDENTIFIER),a=o.setup,s=o.execute,u=o.tearDown,c=this.frameGraphSystem.addPass(T.a.IDENTIFIER,a,s,u),this.frameGraphSystem.present(c.data.output);case 5:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"tearDown",value:function(){this.resourcePool.clean()}},{key:"pick",value:function(t,e){return this.renderPassFactory(C.a.IDENTIFIER).pick(t,e)}}]),t}(),l=k()(f.prototype,"frameGraphSystem",[i,o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=k()(f.prototype,"renderPassFactory",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=k()(f.prototype,"configService",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=k()(f.prototype,"resourcePool",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),c=f))||c)},function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(6),i=n.n(r),o=n(22),a=n.n(o),s=n(23),u=n.n(s),c=n(24),f=n.n(c),l=n(17),h=n.n(l);function d(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}var p=function(t){u()(n,t);var e=d(n);function n(t){var r;return i()(this,n),(r=e.call(this,t)).parentID=void 0,Object.assign(a()(r),t),r}return n}(n(3).Component)},function(t,e,n){"use strict";n.d(e,"a",(function(){return M}));var r,i,o,a,s,u,c,f,l,h=n(9),d=n.n(h),p=n(14),g=n.n(p),v=n(10),y=n.n(v),m=n(6),b=n.n(m),x=n(7),w=n.n(x),S=n(11),E=n.n(S),_=(n(28),n(2)),O=n(5),k=n(13),M=(r=Object(O.injectable)(),i=Object(O.inject)(k.a.HierarchyComponentManager),o=Object(O.inject)(k.a.TransformComponentManager),a=Object(O.inject)(k.a.MeshComponentManager),r((u=function(){function t(){b()(this,t),y()(this,"hierarchy",c,this),y()(this,"transform",f,this),y()(this,"mesh",l,this)}var e;return w()(t,[{key:"execute",value:(e=g()(d.a.mark((function t(){return d.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.runTransformUpdateSystem(),this.runHierarchyUpdateSystem();case 2:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"tearDown",value:function(){this.hierarchy.clear(),this.transform.clear()}},{key:"getHierarchyComponentManager",value:function(){return this.hierarchy}},{key:"getTransformComponentManager",value:function(){return this.transform}},{key:"runTransformUpdateSystem",value:function(){var t=this;this.transform.forEach((function(e,n){(n.isDirty()||n.isLocalDirty())&&(t.setMeshAABBDirty(t.mesh.getComponentByEntity(e)),n.updateTransform())}))}},{key:"runHierarchyUpdateSystem",value:function(){var t=this;this.hierarchy.forEach((function(e,n){var r=t.transform.getComponentByEntity(e),i=t.transform.getComponentByEntity(n.parentID);null!==r&&null!==i&&r.updateTransformWithParent(i)}))}},{key:"attach",value:function(t,e,n){this.hierarchy.contains(t)&&this.detach(t),this.hierarchy.create(t,{parentID:e});var r=this.mesh.getComponentByEntity(e);if(this.setMeshAABBDirty(r),r&&-1===r.children.indexOf(t)&&r.children.push(t),this.hierarchy.getCount()>1)for(var i=this.hierarchy.getCount()-1;i>0;--i)for(var o=this.hierarchy.getEntity(i),a=0;a<i;++a){if(this.hierarchy.getComponent(a).parentID===o){this.hierarchy.moveItem(i,a),++i;break}}this.hierarchy.getComponentByEntity(t);var s=this.transform.getComponentByEntity(e);null===s&&(s=this.transform.create(e));var u=this.transform.getComponentByEntity(t);null===u&&(u=this.transform.create(t),s=this.transform.getComponentByEntity(e)),u.parent=s,!n&&s&&(u.matrixTransform(_.b.invert(_.b.create(),s.worldTransform)),u.updateTransform()),s&&u.updateTransformWithParent(s)}},{key:"detach",value:function(t){var e=this.hierarchy.getComponentByEntity(t);if(null!==e){var n=this.transform.getComponentByEntity(t);null!==n&&(n.parent=null,n.applyTransform()),this.hierarchy.removeKeepSorted(t);var r=this.mesh.getComponentByEntity(e.parentID);if(r){var i=r.children.indexOf(t);r.children.splice(i,1)}this.setMeshAABBDirty(r)}}},{key:"detachChildren",value:function(t){var e=this.mesh.getComponentByEntity(t);e&&(e.children=[]);for(var n=0;n<this.hierarchy.getCount();){var r;if((null===(r=this.hierarchy.getComponent(n))||void 0===r?void 0:r.parentID)===t){var i=this.hierarchy.getEntity(n);this.detach(i)}else++n}}},{key:"setMeshAABBDirty",value:function(t){t&&(t.aabbDirty=!0)}}]),t}(),c=E()(u.prototype,"hierarchy",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=E()(u.prototype,"transform",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=E()(u.prototype,"mesh",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=u))||s)},function(t,e,n){"use strict";n.d(e,"a",(function(){return y}));var r=n(6),i=n.n(r),o=n(7),a=n.n(o),s=n(22),u=n.n(s),c=n(23),f=n.n(c),l=n(24),h=n.n(l),d=n(17),p=n.n(d),g=n(2);function v(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p()(t);if(e){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h()(this,n)}}var y=function(t){f()(n,t);var e=v(n);function n(t){var r,o,a,s,c,f,l,h,d,p,v,y,m,b,x;return i()(this,n),(r=e.call(this,t)).dirtyFlag=void 0,r.localDirtyFlag=void 0,r.parent=null,r.localPosition=g.e.fromValues(0,0,0),r.localRotation=g.c.fromValues(0,0,0,1),r.localScale=g.e.fromValues(1,1,1),r.localTransform=g.b.create(),r.position=g.e.fromValues(0,0,0),r.rotation=g.c.fromValues(0,0,0,1),r.scaling=g.e.fromValues(1,1,1),r.worldTransform=g.b.create(),r.matrixTransform=(o=g.b.create(),function(t){g.b.multiply(o,r.getLocalTransform(),t),g.b.getScaling(r.localScale,o),g.b.getTranslation(r.localPosition,o),g.b.getRotation(r.localRotation,o)}),r.rotateRollPitchYaw=(a=g.c.create(),s=g.c.create(),c=g.c.create(),function(t,e,n){r.setDirty(),g.c.fromEuler(a,t,0,0),g.c.fromEuler(s,0,e,0),g.c.fromEuler(c,0,0,n),g.c.multiply(r.localRotation,a,r.localRotation),g.c.multiply(r.localRotation,r.localRotation,s),g.c.multiply(r.localRotation,c,r.localRotation),g.c.normalize(r.localRotation,r.localRotation)}),r.lerp=(f=g.e.create(),l=g.c.create(),h=g.e.create(),d=g.e.create(),p=g.c.create(),v=g.e.create(),function(t,e,n){r.setDirty(),g.b.getScaling(f,t.worldTransform),g.b.getTranslation(h,t.worldTransform),g.b.getRotation(l,t.worldTransform),g.b.getScaling(d,e.worldTransform),g.b.getTranslation(v,e.worldTransform),g.b.getRotation(p,e.worldTransform),g.e.lerp(r.localScale,f,d,n),g.c.slerp(r.localRotation,l,p,n),g.e.lerp(r.localPosition,h,v,n)}),r.translate=(y=g.e.create(),function(t){return g.e.add(y,r.getPosition(),t),r.setPosition(y),r.setDirty(!0),u()(r)}),r.translateLocal=function(t){return g.e.transformQuat(t,t,r.localRotation),g.e.add(r.localPosition,r.localPosition,t),r.setLocalDirty(!0),u()(r)},r.setPosition=(m=g.b.create(),function(t){return r.position=t,r.setLocalDirty(!0),null===r.parent?g.e.copy(r.localPosition,t):(g.b.copy(m,r.parent.worldTransform),g.b.invert(m,m),g.e.transformMat4(r.localPosition,t,m)),u()(r)}),r.rotate=(b=g.c.create(),function(t){if(null===r.parent)g.c.multiply(r.localRotation,r.localRotation,t),g.c.normalize(r.localRotation,r.localRotation);else{var e=r.getRotation(),n=r.parent.getRotation();g.c.copy(b,n),g.c.invert(b,b),g.c.multiply(b,b,t),g.c.multiply(r.localRotation,t,e),g.c.normalize(r.localRotation,r.localRotation)}return r.setLocalDirty(),u()(r)}),r.rotateLocal=function(t){return g.c.multiply(r.localRotation,r.localRotation,t),g.c.normalize(r.localRotation,r.localRotation),r.setLocalDirty(!0),u()(r)},r.setRotation=(x=g.c.create(),function(t){return null===r.parent?g.c.copy(r.localRotation,t):(g.c.copy(x,r.parent.getRotation()),g.c.invert(x,x),g.c.copy(r.localRotation,x),g.c.mul(r.localRotation,r.localRotation,t)),r.setLocalDirty(!0),u()(r)}),r}return a()(n,[{key:"setLocalPosition",value:function(t){g.e.copy(this.localPosition,t),this.setLocalDirty(!0)}},{key:"setLocalScale",value:function(t){g.e.copy(this.localScale,t),this.setLocalDirty(!0)}},{key:"setLocalRotation",value:function(t){return g.c.copy(this.localRotation,t),this.setLocalDirty(!0),this}},{key:"isDirty",value:function(){return this.dirtyFlag}},{key:"setDirty",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t?this.dirtyFlag|=n.DIRTY:this.dirtyFlag&=~n.DIRTY}},{key:"isLocalDirty",value:function(){return this.localDirtyFlag}},{key:"setLocalDirty",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t?(this.localDirtyFlag|=n.DIRTY,this.setDirty(!0)):this.localDirtyFlag&=~n.DIRTY}},{key:"updateTransform",value:function(){this.isLocalDirty()&&this.getLocalTransform(),this.isDirty()&&null===this.parent&&(g.b.copy(this.worldTransform,this.getLocalTransform()),this.setDirty(!1))}},{key:"updateTransformWithParent",value:function(t){g.b.multiply(this.worldTransform,t.worldTransform,this.getLocalTransform())}},{key:"applyTransform",value:function(){this.setDirty(),g.b.getScaling(this.localScale,this.worldTransform),g.b.getTranslation(this.localPosition,this.worldTransform),g.b.getRotation(this.localRotation,this.worldTransform)}},{key:"clearTransform",value:function(){this.setDirty(),this.localPosition=g.e.fromValues(0,0,0),this.localRotation=g.c.fromValues(0,0,0,1),this.localScale=g.e.fromValues(1,1,1)}},{key:"scaleLocal",value:function(t){return this.setLocalDirty(),g.e.multiply(this.localScale,this.localScale,t),this}},{key:"getLocalPosition",value:function(){return this.localPosition}},{key:"getLocalRotation",value:function(){return this.localRotation}},{key:"getLocalScale",value:function(){return this.localScale}},{key:"getLocalTransform",value:function(){return this.localDirtyFlag&&(g.b.fromRotationTranslationScale(this.localTransform,this.localRotation,this.localPosition,this.localScale),this.setLocalDirty(!1)),this.localTransform}},{key:"getWorldTransform",value:function(){return this.isLocalDirty()||this.isDirty()?(this.parent&&this.parent.getWorldTransform(),this.updateTransform(),this.worldTransform):this.worldTransform}},{key:"getPosition",value:function(){return g.b.getTranslation(this.position,this.worldTransform),this.position}},{key:"getRotation",value:function(){return g.b.getRotation(this.rotation,this.worldTransform),this.rotation}},{key:"getScale",value:function(){return g.b.getScaling(this.scaling,this.worldTransform),this.scaling}}]),n}(n(35).a);y.DIRTY=1},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r,i=n(6),o=n.n(i),a=n(7),s=n.n(a),u=n(5),c=Object(u.injectable)()(r=function(){function t(){o()(this,t),this.config=void 0}return s()(t,[{key:"get",value:function(){return this.config}},{key:"set",value:function(t){this.config=t}}]),t}())||r},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r,i=n(6),o=n.n(i),a=n(7),s=n.n(a),u=n(5),c=Object(u.injectable)()(r=function(){function t(){o()(this,t)}return s()(t,[{key:"listen",value:function(t){}},{key:"on",value:function(t,e){}},{key:"connect",value:function(){}},{key:"disconnect",value:function(){}},{key:"destroy",value:function(){}}]),t}())||r},function(t,e,n){"use strict";n.d(e,"a",(function(){return B}));var r=n(62),i=n.n(r),o=n(9),a=n.n(o),s=n(14),u=n.n(s),c=n(10),f=n.n(c),l=n(6),h=n.n(l),d=n(7),p=n.n(d),g=n(11),v=n.n(g),y=(n(28),n(5)),m=n(13),b=function t(){h()(this,t),this.index=void 0},x=function t(){h()(this,t),this.name=void 0,this.data=void 0,this.execute=void 0,this.tearDown=void 0},w=function(){function t(){h()(this,t),this.name=void 0,this.refCount=0,this.hasSideEffect=!1,this.devirtualize=[],this.destroy=[],this.reads=[],this.writes=[]}return p()(t,[{key:"read",value:function(t){return this.reads.find((function(e){return e.index===t.index}))||this.reads.push(t),t}},{key:"sample",value:function(t){return this.read(t),t}},{key:"write",value:function(t,e){if(this.writes.find((function(t){return t.index===e.index})))return e;var n=t.getResourceNode(e);n.resource.version++,n.resource.imported&&(this.hasSideEffect=!0);var r=t.createResourceNode(n.resource);return t.getResourceNode(r).writer=this,this.writes.push(r),r}}]),t}(),S=n(23),E=n.n(S),_=n(24),O=n.n(_),k=n(17),M=n.n(k);function A(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=M()(t);if(e){var i=M()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return O()(this,n)}}var T,C,I,P,j,D=function(t){E()(n,t);var e=A(n);function n(){var t;h()(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(t=e.call.apply(e,[this].concat(i))).version=0,t.refs=0,t.name=void 0,t.imported=void 0,t.priority=void 0,t.discardStart=!0,t.discardEnd=!1,t.descriptor=void 0,t.resource=void 0,t}return p()(n,[{key:"preExecuteDestroy",value:function(){this.discardEnd=!0}},{key:"postExecuteDestroy",value:function(){this.imported}},{key:"postExecuteDevirtualize",value:function(){this.discardStart=!1}},{key:"preExecuteDevirtualize",value:function(){this.imported}}]),n}((function t(){h()(this,t),this.first=void 0,this.last=void 0})),N=function t(){h()(this,t),this.resource=void 0,this.writer=void 0,this.readerCount=0,this.version=void 0};function R(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return L(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return L(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function L(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var B=(T=Object(y.injectable)(),C=Object(y.inject)(m.a.RenderEngine),T((P=function(){function t(){h()(this,t),this.passNodes=[],this.resourceNodes=[],this.frameGraphPasses=[],f()(this,"engine",j,this)}var e,n;return p()(t,[{key:"execute",value:(n=u()(a.a.mark((function t(e){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.compile(),t.next=3,this.executePassNodes(e);case 3:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"tearDown",value:function(){this.frameGraphPasses.forEach((function(t){t.tearDown&&t.tearDown()})),this.reset()}},{key:"addPass",value:function(t,e,n,r){var i=new x;i.execute=n,r&&(i.tearDown=r),i.name=t;var o=new w;return o.name=t,this.passNodes.push(o),this.frameGraphPasses.push(i),e(this,o,i),i}},{key:"getPass",value:function(t){return this.frameGraphPasses.find((function(e){return e.name===t}))}},{key:"compile",value:function(){var t,e=this,n=R(this.passNodes);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.refCount=r.writes.length+(r.hasSideEffect?1:0),r.reads.forEach((function(t){e.resourceNodes[t.index].readerCount++}))}}catch(t){n.e(t)}finally{n.f()}var i,o=[],a=R(this.resourceNodes);try{for(a.s();!(i=a.n()).done;){var s=i.value;0===s.readerCount&&o.push(s)}}catch(t){a.e(t)}finally{a.f()}for(;o.length;){var u=o.pop(),c=u&&u.writer;if(c&&0==--c.refCount){var f,l=R(c.reads);try{for(l.s();!(f=l.n()).done;){var h=f.value,d=this.resourceNodes[h.index];0==--d.readerCount&&o.push(d)}}catch(t){l.e(t)}finally{l.f()}}}this.resourceNodes.forEach((function(t){t.resource.refs+=t.readerCount}));var p,g=R(this.passNodes);try{for(g.s();!(p=g.n()).done;){var v=p.value;if(v.refCount){var y,m=R(v.reads);try{for(m.s();!(y=m.n()).done;){var b=y.value,x=this.resourceNodes[b.index].resource;x.first=x.first?x.first:v,x.last=v}}catch(t){m.e(t)}finally{m.f()}var w,S=R(v.writes);try{for(S.s();!(w=S.n()).done;){var E=w.value,_=this.resourceNodes[E.index].resource;_.first=_.first?_.first:v,_.last=v}}catch(t){S.e(t)}finally{S.f()}}}}catch(t){g.e(t)}finally{g.f()}for(var O=0;O<2;O++){var k,M=R(this.resourceNodes);try{for(M.s();!(k=M.n()).done;){var A=k.value.resource;if(A.priority===O&&A.refs){var T=A.first,C=A.last;T&&C&&(T.devirtualize.push(A),C.destroy.push(A))}}}catch(t){M.e(t)}finally{M.f()}}}},{key:"executePassNodes",value:(e=u()(a.a.mark((function t(e){var n,r,o,s,u,c,f,l,h,d,p,g,v;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=R(this.passNodes.entries()),t.prev=1,n.s();case 3:if((r=n.n()).done){t.next=18;break}if(o=i()(r.value,2),s=o[0],!(u=o[1]).refCount){t.next=16;break}c=R(u.devirtualize);try{for(c.s();!(f=c.n()).done;)f.value.preExecuteDevirtualize(this.engine)}catch(t){c.e(t)}finally{c.f()}l=R(u.destroy);try{for(l.s();!(h=l.n()).done;)h.value.preExecuteDestroy(this.engine)}catch(t){l.e(t)}finally{l.f()}return t.next=12,this.frameGraphPasses[s].execute(this,this.frameGraphPasses[s],e);case 12:d=R(u.devirtualize);try{for(d.s();!(p=d.n()).done;)p.value.postExecuteDevirtualize(this.engine)}catch(t){d.e(t)}finally{d.f()}g=R(u.destroy);try{for(g.s();!(v=g.n()).done;)v.value.postExecuteDestroy(this.engine)}catch(t){g.e(t)}finally{g.f()}case 16:t.next=3;break;case 18:t.next=23;break;case 20:t.prev=20,t.t0=t.catch(1),n.e(t.t0);case 23:return t.prev=23,n.f(),t.finish(23);case 26:this.reset();case 27:case"end":return t.stop()}}),t,this,[[1,20,23,26]])}))),function(t){return e.apply(this,arguments)})},{key:"reset",value:function(){this.passNodes=[],this.resourceNodes=[],this.frameGraphPasses=[]}},{key:"getResourceNode",value:function(t){return this.resourceNodes[t.index]}},{key:"createResourceNode",value:function(t){var e=new N;e.resource=t,e.version=t.version,this.resourceNodes.push(e);var n=new b;return n.index=this.resourceNodes.length-1,n}},{key:"createTexture",value:function(t,e,n){var r=new D;return r.name=e,r.descriptor=n,this.createResourceNode(r)}},{key:"createRenderTarget",value:function(t,e,n){var r=new D;return r.name=e,r.descriptor=n,this.createResourceNode(r)}},{key:"present",value:function(t){this.addPass("Present",(function(e,n){n.read(t),n.hasSideEffect=!0}),u()(a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))))}}]),t}(),j=v()(P.prototype,"engine",[C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=P))||I)},function(t,e,n){"use strict";n.d(e,"a",(function(){return b}));var r=n(4),i=n.n(r),o=n(6),a=n.n(o),s=n(7),u=n.n(s),c=n(272),f=n.n(c),l=n(5);var h,d=/uniform\\s+(bool|float|int|vec2|vec3|vec4|ivec2|ivec3|ivec4|mat2|mat3|mat4|sampler2D|samplerCube)\\s+([\\s\\S]*?);/g;function p(t){var e={};return{content:t=t.replace(d,(function(t,n,r){var i=r.split(":"),o=i[0].trim(),a="";switch(i.length>1&&(a=i[1].trim()),n){case"bool":a="true"===a;break;case"float":case"int":a=Number(a);break;case"vec2":case"vec3":case"vec4":case"ivec2":case"ivec3":case"ivec4":case"mat2":case"mat3":case"mat4":a=a?a.replace("[","").replace("]","").split(",").reduce((function(t,e){return t.push(Number(e.trim())),t}),[]):new Array(function(t){var e=0;switch(t){case"vec2":case"ivec2":e=2;break;case"vec3":case"ivec3":e=3;break;case"vec4":case"ivec4":case"mat2":e=4;break;case"mat3":e=9;break;case"mat4":e=16}return e}(n)).fill(0)}return e[o]=a,"uniform ".concat(n," ").concat(o,";\\n")})),uniforms:e}}function g(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function v(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?g(Object(n),!0).forEach((function(e){i()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var y=/precision\\s+(high|low|medium)p\\s+float/,m=/#pragma include (["^+"]?["\\ "[a-zA-Z_0-9](.*)"]*?)/g,b=Object(l.injectable)()(h=function(){function t(){a()(this,t),this.moduleCache={},this.rawContentCache={}}return u()(t,[{key:"registerBuiltinModules",value:function(){this.destroy(),this.registerModule("picking",{vs:"attribute vec3 a_PickingColor;\\nvarying vec4 v_PickingResult;\\n\\nuniform vec3 u_PickingColor : [0, 0, 0];\\nuniform vec4 u_HighlightColor : [0, 0, 0, 0];\\nuniform float u_PickingStage : 0.0;\\nuniform float u_PickingThreshold : 1.0;\\nuniform float u_PickingBuffer: 0.0;\\n\\n#define PICKING_ENCODE 1.0\\n#define PICKING_HIGHLIGHT 2.0\\n#define COLOR_SCALE 1. / 255.\\n\\nbool isVertexPicked(vec3 vertexColor) {\\n return\\n abs(vertexColor.r - u_PickingColor.r) < u_PickingThreshold &&\\n abs(vertexColor.g - u_PickingColor.g) < u_PickingThreshold &&\\n abs(vertexColor.b - u_PickingColor.b) < u_PickingThreshold;\\n}\\n\\nvoid setPickingColor(vec3 pickingColor) {\\n // compares only in highlight stage\\n v_PickingResult.a = float((u_PickingStage == PICKING_HIGHLIGHT) && isVertexPicked(pickingColor));\\n\\n // Stores the picking color so that the fragment shader can render it during picking\\n v_PickingResult.rgb = pickingColor * COLOR_SCALE;\\n}\\n\\nfloat setPickingSize(float x) {\\n return u_PickingStage == PICKING_ENCODE ? x + u_PickingBuffer : x;\\n}",fs:"varying vec4 v_PickingResult;\\nuniform vec4 u_HighlightColor : [0, 0, 0, 0];\\nuniform float u_PickingStage : 0.0;\\n\\n#define PICKING_ENCODE 1.0\\n#define PICKING_HIGHLIGHT 2.0\\n#define COLOR_SCALE 1. / 255.\\n\\n/*\\n * Returns highlight color if this item is selected.\\n */\\nvec4 filterHighlightColor(vec4 color) {\\n bool selected = bool(v_PickingResult.a);\\n\\n if (selected) {\\n vec4 highLightColor = u_HighlightColor * COLOR_SCALE;\\n\\n float highLightAlpha = highLightColor.a;\\n float highLightRatio = highLightAlpha / (highLightAlpha + color.a * (1.0 - highLightAlpha));\\n\\n vec3 resultRGB = mix(color.rgb, highLightColor.rgb, highLightRatio);\\n return vec4(resultRGB, color.a);\\n } else {\\n return color;\\n }\\n}\\n\\n/*\\n * Returns picking color if picking enabled else unmodified argument.\\n */\\nvec4 filterPickingColor(vec4 color) {\\n vec3 pickingColor = v_PickingResult.rgb;\\n if (u_PickingStage == PICKING_ENCODE && length(pickingColor) < 0.001) {\\n discard;\\n }\\n return u_PickingStage == PICKING_ENCODE ? vec4(pickingColor, step(0.001,color.a)): color;\\n}\\n\\n/*\\n * Returns picking color if picking is enabled if not\\n * highlight color if this item is selected, otherwise unmodified argument.\\n */\\nvec4 filterColor(vec4 color) {\\n return filterPickingColor(filterHighlightColor(color));\\n}\\n"}),this.registerModule("sdf2d",{vs:"",fs:"/**\\n * 2D signed distance field functions\\n * @see http://www.iquilezles.org/www/articles/distfunctions2d/distfunctions2d.htm\\n */\\n\\nfloat ndot(vec2 a, vec2 b ) { return a.x*b.x - a.y*b.y; }\\n\\nfloat sdCircle(vec2 p, float r) {\\n return length(p) - r;\\n}\\n\\nfloat sdEquilateralTriangle(vec2 p) {\\n float k = sqrt(3.0);\\n p.x = abs(p.x) - 1.0;\\n p.y = p.y + 1.0/k;\\n if( p.x + k*p.y > 0.0 ) p = vec2(p.x-k*p.y,-k*p.x-p.y)/2.0;\\n p.x -= clamp( p.x, -2.0, 0.0 );\\n return -length(p)*sign(p.y);\\n}\\n\\nfloat sdBox(vec2 p, vec2 b) {\\n vec2 d = abs(p)-b;\\n return length(max(d,vec2(0))) + min(max(d.x,d.y),0.0);\\n}\\n\\nfloat sdPentagon(vec2 p, float r) {\\n vec3 k = vec3(0.809016994,0.587785252,0.726542528);\\n p.x = abs(p.x);\\n p -= 2.0*min(dot(vec2(-k.x,k.y),p),0.0)*vec2(-k.x,k.y);\\n p -= 2.0*min(dot(vec2( k.x,k.y),p),0.0)*vec2( k.x,k.y);\\n p -= vec2(clamp(p.x,-r*k.z,r*k.z),r);\\n return length(p)*sign(p.y);\\n}\\n\\nfloat sdHexagon(vec2 p, float r) {\\n vec3 k = vec3(-0.866025404,0.5,0.577350269);\\n p = abs(p);\\n p -= 2.0*min(dot(k.xy,p),0.0)*k.xy;\\n p -= vec2(clamp(p.x, -k.z*r, k.z*r), r);\\n return length(p)*sign(p.y);\\n}\\n\\nfloat sdOctogon(vec2 p, float r) {\\n vec3 k = vec3(-0.9238795325, 0.3826834323, 0.4142135623 );\\n p = abs(p);\\n p -= 2.0*min(dot(vec2( k.x,k.y),p),0.0)*vec2( k.x,k.y);\\n p -= 2.0*min(dot(vec2(-k.x,k.y),p),0.0)*vec2(-k.x,k.y);\\n p -= vec2(clamp(p.x, -k.z*r, k.z*r), r);\\n return length(p)*sign(p.y);\\n}\\n\\nfloat sdHexagram(vec2 p, float r) {\\n vec4 k=vec4(-0.5,0.8660254038,0.5773502692,1.7320508076);\\n p = abs(p);\\n p -= 2.0*min(dot(k.xy,p),0.0)*k.xy;\\n p -= 2.0*min(dot(k.yx,p),0.0)*k.yx;\\n p -= vec2(clamp(p.x,r*k.z,r*k.w),r);\\n return length(p)*sign(p.y);\\n}\\n\\nfloat sdRhombus(vec2 p, vec2 b) {\\n vec2 q = abs(p);\\n float h = clamp((-2.0*ndot(q,b)+ndot(b,b))/dot(b,b),-1.0,1.0);\\n float d = length( q - 0.5*b*vec2(1.0-h,1.0+h) );\\n return d * sign( q.x*b.y + q.y*b.x - b.x*b.y );\\n}\\n\\nfloat sdVesica(vec2 p, float r, float d) {\\n p = abs(p);\\n float b = sqrt(r*r-d*d); // can delay this sqrt\\n return ((p.y-b)*d>p.x*b)\\n ? length(p-vec2(0.0,b))\\n : length(p-vec2(-d,0.0))-r;\\n}"})}},{key:"registerModule",value:function(t,e){if(!this.rawContentCache[t]){var n=e.vs,r=void 0===n?"":n,i=e.fs,o=void 0===i?"":i,a=e.uniforms,s=p(r),u=s.content,c=s.uniforms,f=p(o),l=f.content,h=f.uniforms;this.rawContentCache[t]={fs:l,uniforms:v(v(v({},c),h),a),vs:u}}}},{key:"destroy",value:function(){this.moduleCache={},this.rawContentCache={}}},{key:"getModule",value:function(t){var e=this;if(this.moduleCache[t])return this.moduleCache[t];var n=this.rawContentCache[t].vs||"",r=this.rawContentCache[t].fs||"",i=this.processModule(n,[],"vs"),o=i.content,a=i.includeList,s=this.processModule(r,[],"fs"),u=s.content,c=s.includeList,l=u,h=f()(a.concat(c).concat(t)).reduce((function(t,n){return v(v({},t),e.rawContentCache[n].uniforms)}),{});return y.test(u)||(l="#ifdef GL_FRAGMENT_PRECISION_HIGH\\n precision highp float;\\n #else\\n precision mediump float;\\n#endif\\n"+u),this.moduleCache[t]={fs:l.trim(),uniforms:h,vs:o.trim()},this.moduleCache[t]}},{key:"processModule",value:function(t,e,n){var r=this;return{content:t.replace(m,(function(t,i){var o=i.split(" ")[0].replace(/"/g,"");if(e.indexOf(o)>-1)return"";var a=r.rawContentCache[o][n];return e.push(o),r.processModule(a||"",e,n).content})),includeList:e}}}]),t}())||h},function(t,e,n){"use strict";var r=function(){function t(){this._events={}}return t.prototype.on=function(t,e,n){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:e,once:!!n}),this},t.prototype.once=function(t,e){return this.on(t,e,!0),this},t.prototype.emit=function(t){for(var e=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=this._events[t]||[],o=this._events["*"]||[],a=function(r){for(var i=r.length,o=0;o<i;o++)if(r[o]){var a=r[o],s=a.callback;a.once&&(r.splice(o,1),0===r.length&&delete e._events[t],i--,o--),s.apply(e,n)}};a(i),a(o)},t.prototype.off=function(t,e){if(t)if(e){for(var n=this._events[t]||[],r=n.length,i=0;i<r;i++)n[i].callback===e&&(n.splice(i,1),r--,i--);0===n.length&&delete this._events[t]}else delete this._events[t];else this._events={};return this},t.prototype.getEvents=function(){return this._events},t}();e.a=r},function(t,e,n){"use strict";var r=n(1),i=n(138),o=n(19),a={};var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.isCanvas=function(){return!1},e.prototype.getBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,i=[],a=[],s=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return s.length>0?(Object(o.a)(s,(function(t){var e=t.getBBox();i.push(e.minX,e.maxX),a.push(e.minY,e.maxY)})),t=Math.min.apply(null,i),e=Math.max.apply(null,i),n=Math.min.apply(null,a),r=Math.max.apply(null,a)):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,i=[],a=[],s=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return s.length>0?(Object(o.a)(s,(function(t){var e=t.getCanvasBBox();i.push(e.minX,e.maxX),a.push(e.minY,e.maxY)})),t=Math.min.apply(null,i),e=Math.max.apply(null,i),n=Math.min.apply(null,a),r=Math.max.apply(null,a)):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.children=[],e},e.prototype.onAttrChange=function(e,n,r){if(t.prototype.onAttrChange.call(this,e,n,r),"matrix"===e){var i=this.getTotalMatrix();this._applyChildrenMarix(i)}},e.prototype.applyMatrix=function(e){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var r=this.getTotalMatrix();r!==n&&this._applyChildrenMarix(r)},e.prototype._applyChildrenMarix=function(t){var e=this.getChildren();Object(o.a)(e,(function(e){e.applyMatrix(t)}))},e.prototype.addShape=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0],r=t[1];Object(o.f)(n)?r=n:r.type=n;var i=a[r.type];i||(i=Object(o.k)(r.type),a[r.type]=i);var s=this.getShapeBase(),u=new s[i](r);return this.add(u),u},e.prototype.addGroup=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n,r=t[0],i=t[1];if(Object(o.d)(r))n=new r(i||{parent:this});else{var a=r||{},s=this.getGroupBase();n=new s(a)}return this.add(n),n},e.prototype.getCanvas=function(){return this.isCanvas()?this:this.get("canvas")},e.prototype.getShape=function(t,e,n){if(!Object(o.b)(this))return null;var r,i=this.getChildren();if(this.isCanvas())r=this._findShape(i,t,e,n);else{var a=[t,e,1];a=this.invertFromMatrix(a),this.isClipped(a[0],a[1])||(r=this._findShape(i,a[0],a[1],n))}return r},e.prototype._findShape=function(t,e,n,r){for(var i=null,a=t.length-1;a>=0;a--){var s=t[a];if(Object(o.b)(s)&&(s.isGroup()?i=s.getShape(e,n,r):s.isHit(e,n)&&(i=s)),i)break}return i},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),r=this.get("timeline"),i=t.getParent();i&&function(t,e,n){void 0===n&&(n=!0),n?e.destroy():(e.set("parent",null),e.set("canvas",null)),Object(o.j)(t.getChildren(),e)}(i,t,!1),t.set("parent",this),e&&function t(e,n){if(e.set("canvas",n),e.isGroup()){var r=e.get("children");r.length&&r.forEach((function(e){t(e,n)}))}}(t,e),r&&function t(e,n){if(e.set("timeline",n),e.isGroup()){var r=e.get("children");r.length&&r.forEach((function(e){t(e,n)}))}}(t,r),n.push(t),t.onCanvasChange("add"),this._applyElementMatrix(t)},e.prototype._applyElementMatrix=function(t){var e=this.getTotalMatrix();e&&t.applyMatrix(e)},e.prototype.getChildren=function(){return this.get("children")},e.prototype.sort=function(){var t,e=this.getChildren();Object(o.a)(e,(function(t,e){return t._INDEX=e,t})),e.sort((t=function(t,e){return t.get("zIndex")-e.get("zIndex")},function(e,n){var r=t(e,n);return 0===r?e._INDEX-n._INDEX:r})),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),e=t.length-1;e>=0;e--)t[e].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},e.prototype.getChildByIndex=function(t){return this.getChildren()[t]},e.prototype.getCount=function(){return this.getChildren().length},e.prototype.contain=function(t){return this.getChildren().indexOf(t)>-1},e.prototype.removeChild=function(t,e){void 0===e&&(e=!0),this.contain(t)&&t.remove(e)},e.prototype.findAll=function(t){var e=[],n=this.getChildren();return Object(o.a)(n,(function(n){t(n)&&e.push(n),n.isGroup()&&(e=e.concat(n.findAll(t)))})),e},e.prototype.find=function(t){var e=null,n=this.getChildren();return Object(o.a)(n,(function(n){if(t(n)?e=n:n.isGroup()&&(e=n.find(t)),e)return!1})),e},e.prototype.findById=function(t){return this.find((function(e){return e.get("id")===t}))},e.prototype.findByClassName=function(t){return this.find((function(e){return e.get("className")===t}))},e.prototype.findAllByName=function(t){return this.findAll((function(e){return e.get("name")===t}))},e}(i.a);e.a=s},function(t,e,n){"use strict";var r=n(1),i=n(0),o=n(18),a=n(19),s=n(39),u=n(117),c=o.a.transform,f=["zIndex","capture","visible","type"],l=["repeat"];function h(t,e){var n={},r=e.attrs;for(var i in t)n[i]=r[i];return n}function d(t,e){var n={},r=e.attr();return Object(i.f)(t,(function(t,e){-1!==l.indexOf(e)||Object(i.q)(r[e],t)||(n[e]=t)})),n}function p(t,e){if(e.onFrame)return t;var n=e.startTime,r=e.delay,o=e.duration,a=Object.prototype.hasOwnProperty;return Object(i.f)(t,(function(t){n+r<t.startTime+t.delay+t.duration&&o>t.delay&&Object(i.f)(e.toAttrs,(function(e,n){a.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])}))})),t}var g=function(t){function e(e){var n=t.call(this,e)||this;n.attrs={};var r=n.getDefaultAttrs();return Object(i.A)(r,e.attrs),n.attrs=r,n.initAttrs(r),n.initAnimate(),n}return Object(r.b)(e,t),e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(t){},e.prototype.initAttrs=function(t){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e[0],o=e[1];if(!r)return this.attrs;if(Object(i.v)(r)){for(var a in r)this.setAttr(a,r[a]);return this.afterAttrsChange(r),this}return 2===e.length?(this.setAttr(r,o),this.afterAttrsChange(((t={})[r]=o,t)),this):this.attrs[r]},e.prototype.isClipped=function(t,e){var n=this.getClip();return n&&!n.isHit(t,e)},e.prototype.setAttr=function(t,e){var n=this.attrs[t];n!==e&&(this.attrs[t]=e,this.onAttrChange(t,e,n))},e.prototype.onAttrChange=function(t,e,n){"matrix"===t&&this.set("totalMatrix",null)},e.prototype.afterAttrsChange=function(t){if(this.cfg.isClipShape){var e=this.cfg.applyTo;e&&e.onCanvasChange("clip")}else this.onCanvasChange("attr")},e.prototype.show=function(){return this.set("visible",!0),this.onCanvasChange("show"),this},e.prototype.hide=function(){return this.set("visible",!1),this.onCanvasChange("hide"),this},e.prototype.setZIndex=function(t){this.set("zIndex",t);var e=this.getParent();return e&&e.sort(),this},e.prototype.toFront=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=(this.get("el"),e.indexOf(this));e.splice(n,1),e.push(this),this.onCanvasChange("zIndex")}},e.prototype.toBack=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=(this.get("el"),e.indexOf(this));e.splice(n,1),e.unshift(this),this.onCanvasChange("zIndex")}},e.prototype.remove=function(t){void 0===t&&(t=!0);var e=this.getParent();e?(Object(a.j)(e.getChildren(),this),e.get("clearing")||this.onCanvasChange("remove")):this.onCanvasChange("remove"),t&&this.destroy()},e.prototype.resetMatrix=function(){this.attr("matrix",this.getDefaultMatrix()),this.onCanvasChange("matrix")},e.prototype.getMatrix=function(){return this.attr("matrix")},e.prototype.setMatrix=function(t){this.attr("matrix",t),this.onCanvasChange("matrix")},e.prototype.getTotalMatrix=function(){var t=this.cfg.totalMatrix;if(!t){var e=this.attr("matrix"),n=this.cfg.parentMatrix;t=n&&e?Object(s.b)(n,e):e||n,this.set("totalMatrix",t)}return t},e.prototype.applyMatrix=function(t){var e=this.attr("matrix"),n=null;n=t&&e?Object(s.b)(t,e):e||t,this.set("totalMatrix",n),this.set("parentMatrix",t)},e.prototype.getDefaultMatrix=function(){return null},e.prototype.applyToMatrix=function(t){var e=this.attr("matrix");return e?Object(s.c)(e,t):t},e.prototype.invertFromMatrix=function(t){var e=this.attr("matrix");if(e){var n=Object(s.a)(e);if(n)return Object(s.c)(n,t)}return t},e.prototype.setClip=function(t){var e=this.getCanvas(),n=null;if(t){var r=this.getShapeBase()[Object(i.I)(t.type)];r&&(n=new r({type:t.type,isClipShape:!0,applyTo:this,attrs:t.attrs,canvas:e}))}return this.set("clipShape",n),this.onCanvasChange("clip"),n},e.prototype.getClip=function(){var t=this.cfg.clipShape;return t||null},e.prototype.clone=function(){var t=this,e=this.attrs,n={};Object(i.f)(e,(function(t,r){Object(i.m)(e[r])?n[r]=function(t){for(var e=[],n=0;n<t.length;n++)Object(i.m)(t[n])?e.push([].concat(t[n])):e.push(t[n]);return e}(e[r]):n[r]=e[r]}));var r=new(0,this.constructor)({attrs:n});return Object(i.f)(f,(function(e){r.set(e,t.get(e))})),r},e.prototype.destroy=function(){this.destroyed||(this.attrs={},t.prototype.destroy.call(this))},e.prototype.isAnimatePaused=function(){return this.get("_pause").isPaused},e.prototype.animate=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.isCanvas&&this.isCanvas();if(n||this.get("canvas")){this.set("animating",!0);var r=this.get("timeline");r||(r=this.get("canvas").get("timeline"),this.set("timeline",r));var o=this.get("animations")||[];r.timer||r.initTimer();var a,s,u,c,f,l=t[0],g=t[1],v=t[2],y=void 0===v?"easeLinear":v,m=t[3],b=void 0===m?i.C:m,x=t[4],w=void 0===x?0:x;Object(i.r)(l)?(a=l,l={}):Object(i.v)(l)&&l.onFrame&&(a=l.onFrame,s=l.repeat),Object(i.v)(g)?(g=(f=g).duration,y=f.easing||"easeLinear",w=f.delay||0,s=f.repeat||s||!1,b=f.callback||i.C,u=f.pauseCallback||i.C,c=f.resumeCallback||i.C):(Object(i.t)(b)&&(w=b,b=null),Object(i.r)(y)?(b=y,y="easeLinear"):y=y||"easeLinear");var S=d(l,this),E={fromAttrs:h(S,this),toAttrs:S,duration:g,easing:y,repeat:s,callback:b,pauseCallback:u,resumeCallback:c,delay:w,startTime:r.getTime(),id:Object(i.H)(),onFrame:a,pathFormatted:!1};o.length>0?o=p(o,E):r.addAnimator(this),o.push(E),this.set("animations",o),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0);var n=this.get("animations");Object(i.f)(n,(function(n){t&&(n.onFrame?e.attr(n.onFrame(1)):e.attr(n.toAttrs)),n.callback&&n.callback()})),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),e=this.get("animations"),n=t.getTime();return Object(i.f)(e,(function(t){t._paused=!0,t._pauseTime=n,t.pauseCallback&&t.pauseCallback()})),this.set("_pause",{isPaused:!0,pauseTime:n}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline").getTime(),e=this.get("animations"),n=this.get("_pause").pauseTime;return Object(i.f)(e,(function(e){e.startTime=e.startTime+(t-n),e._paused=!1,e._pauseTime=null,e.resumeCallback&&e.resumeCallback()})),this.set("_pause",{isPaused:!1}),this.set("animations",e),this},e.prototype.emitDelegation=function(t,e){var n,r=this,o=e.propagationPath;this.getEvents();"mouseenter"===t?n=e.fromShape:"mouseleave"===t&&(n=e.toShape);for(var s=function(t){var s=o[t],c=s.get("name");if(c){if((s.isGroup()||s.isCanvas&&s.isCanvas())&&n&&Object(a.g)(s,n))return"break";Object(i.m)(c)?Object(i.f)(c,(function(t){r.emitDelegateEvent(s,t,e)})):u.emitDelegateEvent(s,c,e)}},u=this,c=0;c<o.length;c++){if("break"===s(c))break}},e.prototype.emitDelegateEvent=function(t,e,n){var r=this.getEvents(),i=e+":"+n.type;(r[i]||r["*"])&&(n.name=i,n.currentTarget=t,n.delegateTarget=this,n.delegateObject=t.get("delegateObject"),this.emit(i,n))},e.prototype.translate=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0);var n=this.getMatrix(),r=c(n,[["t",t,e]]);return this.setMatrix(r),this},e.prototype.move=function(t,e){var n=this.attr("x")||0,r=this.attr("y")||0;return this.translate(t-n,e-r),this},e.prototype.moveTo=function(t,e){return this.move(t,e)},e.prototype.scale=function(t,e){var n=this.getMatrix(),r=c(n,[["s",t,e||t]]);return this.setMatrix(r),this},e.prototype.rotate=function(t){var e=this.getMatrix(),n=c(e,[["r",t]]);return this.setMatrix(n),this},e.prototype.rotateAtStart=function(t){var e=this.attr(),n=e.x,r=e.y,i=this.getMatrix(),o=c(i,[["t",-n,-r],["r",t],["t",n,r]]);return this.setMatrix(o),this},e.prototype.rotateAtPoint=function(t,e,n){var r=this.getMatrix(),i=c(r,[["t",-t,-e],["r",n],["t",t,e]]);return this.setMatrix(i),this},e}(u.a);e.a=g},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return h}));var r=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},i=function(t,e,n){this.name=t,this.version=e,this.os=n,this.type="browser"},o=function(e){this.version=e,this.type="node",this.name="node",this.os=t.platform},a=function(t,e,n,r){this.name=t,this.version=e,this.os=n,this.bot=r,this.type="bot-device"},s=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},u=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},c=/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\\ Jeeves\\/Teoma|ia_archiver)/,f=[["aol",/AOLShield\\/([0-9\\._]+)/],["edge",/Edge\\/([0-9\\._]+)/],["edge-ios",/EdgiOS\\/([0-9\\._]+)/],["yandexbrowser",/YaBrowser\\/([0-9\\._]+)/],["kakaotalk",/KAKAOTALK\\s([0-9\\.]+)/],["samsung",/SamsungBrowser\\/([0-9\\.]+)/],["silk",/\\bSilk\\/([0-9._-]+)\\b/],["miui",/MiuiBrowser\\/([0-9\\.]+)$/],["beaker",/BeakerBrowser\\/([0-9\\.]+)/],["edge-chromium",/EdgA?\\/([0-9\\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\\).*Chrom(?:e|ium)\\/([0-9\\.]+)(:?\\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\\/([0-9\\.]+)(:?\\s|$)/],["phantomjs",/PhantomJS\\/([0-9\\.]+)(:?\\s|$)/],["crios",/CriOS\\/([0-9\\.]+)(:?\\s|$)/],["firefox",/Firefox\\/([0-9\\.]+)(?:\\s|$)/],["fxios",/FxiOS\\/([0-9\\.]+)/],["opera-mini",/Opera Mini.*Version\\/([0-9\\.]+)/],["opera",/Opera\\/([0-9\\.]+)(?:\\s|$)/],["opera",/OPR\\/([0-9\\.]+)(:?\\s|$)/],["ie",/Trident\\/7\\.0.*rv\\:([0-9\\.]+).*\\).*Gecko$/],["ie",/MSIE\\s([0-9\\.]+);.*Trident\\/[4-7].0/],["ie",/MSIE\\s(7\\.0)/],["bb10",/BB10;\\sTouch.*Version\\/([0-9\\.]+)/],["android",/Android\\s([0-9\\.]+)/],["ios",/Version\\/([0-9\\._]+).*Mobile.*Safari.*/],["safari",/Version\\/([0-9\\._]+).*Safari/],["facebook",/FBAV\\/([0-9\\.]+)/],["instagram",/Instagram\\s([0-9\\.]+)/],["ios-webview",/AppleWebKit\\/([0-9\\.]+).*Mobile/],["ios-webview",/AppleWebKit\\/([0-9\\.]+).*Gecko\\)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],l=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\\/2/]];function h(e){return e?p(e):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new u:"undefined"!=typeof navigator?p(navigator.userAgent):void 0!==t&&t.version?new o(t.version.slice(1)):null}function d(t){return""!==t&&f.reduce((function(e,n){var r=n[0],i=n[1];if(e)return e;var o=i.exec(t);return!!o&&[r,o]}),!1)}function p(t){var e=d(t);if(!e)return null;var n=e[0],o=e[1];if("searchbot"===n)return new s;var u=o[1]&&o[1].split(/[._]/).slice(0,3);u?u.length<3&&(u=r(u,function(t){for(var e=[],n=0;n<t;n++)e.push("0");return e}(3-u.length))):u=[];var f=u.join("."),h=function(t){for(var e=0,n=l.length;e<n;e++){var r=l[e],i=r[0];if(r[1].exec(t))return i}return null}(t),p=c.exec(t);return p&&p[1]?new a(n,f,h,p[1]):new i(n,f,h)}}).call(this,n(173))},function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return f}));var r=n(16),i=/^l\\s*\\(\\s*([\\d.]+)\\s*\\)\\s*(.*)/i,o=/^r\\s*\\(\\s*([\\d.]+)\\s*,\\s*([\\d.]+)\\s*,\\s*([\\d.]+)\\s*\\)\\s*(.*)/i,a=/^p\\s*\\(\\s*([axyn])\\s*\\)\\s*(.*)/i,s=/[\\d.]+:(#[^\\s]+|[^\\)]+\\))/gi;function u(t,e){var n=t.match(s);Object(r.c)(n,(function(t){var n=t.split(":");e.addColorStop(n[0],n[1])}))}function c(t,e,n){if(Object(r.k)(n)){if("("===n[1]||"("===n[2]){if("l"===n[0])return function(t,e,n){var r,o,a=i.exec(n),s=parseFloat(a[1])%360*(Math.PI/180),c=a[2],f=e.getBBox();s>=0&&s<.5*Math.PI?(r={x:f.minX,y:f.minY},o={x:f.maxX,y:f.maxY}):.5*Math.PI<=s&&s<Math.PI?(r={x:f.maxX,y:f.minY},o={x:f.minX,y:f.maxY}):Math.PI<=s&&s<1.5*Math.PI?(r={x:f.maxX,y:f.maxY},o={x:f.minX,y:f.minY}):(r={x:f.minX,y:f.maxY},o={x:f.maxX,y:f.minY});var l=Math.tan(s),h=l*l,d=(o.x-r.x+l*(o.y-r.y))/(h+1)+r.x,p=l*(o.x-r.x+l*(o.y-r.y))/(h+1)+r.y,g=t.createLinearGradient(r.x,r.y,d,p);return u(c,g),g}(t,e,n);if("r"===n[0])return function(t,e,n){var r=o.exec(n),i=parseFloat(r[1]),a=parseFloat(r[2]),c=parseFloat(r[3]),f=r[4];if(0===c){var l=f.match(s);return l[l.length-1].split(":")[1]}var h=e.getBBox(),d=h.maxX-h.minX,p=h.maxY-h.minY,g=Math.sqrt(d*d+p*p)/2,v=t.createRadialGradient(h.minX+d*i,h.minY+p*a,0,h.minX+d/2,h.minY+p/2,c*g);return u(f,v),v}(t,e,n);if("p"===n[0])return function(t,e,n){if(e.get("patternSource")&&e.get("patternSource")===n)return e.get("pattern");var r,i,o=a.exec(n),s=o[1],u=o[2];function c(){r=t.createPattern(i,s),e.set("pattern",r),e.set("patternSource",n)}switch(s){case"a":s="repeat";break;case"x":s="repeat-x";break;case"y":s="repeat-y";break;case"n":s="no-repeat";break;default:s="no-repeat"}return i=new Image,u.match(/^data:/i)||(i.crossOrigin="Anonymous"),i.src=u,i.complete?c():(i.onload=c,i.src=i.src),r}(t,e,n)}return n}}function f(t){var e=0,n=0,i=0,o=0;return Object(r.g)(t)?1===t.length?e=n=i=o=t[0]:2===t.length?(e=i=t[0],n=o=t[1]):3===t.length?(e=t[0],n=o=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],o=t[3]):e=n=i=o=t,[e,n,i,o]}},function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return a}));var r=n(62),i=n.n(r);n(2),n(49);function o(t,e){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[4],e[4]=t[5],e[5]=t[6],e[6]=t[8],e[7]=t[9],e[8]=t[10],e}function a(t){var e=i()(t,3);return e[0]+256*e[1]+65536*e[2]-1}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=n(42);t.exports=o;function o(t){this._isDirected=!i.has(t,"directed")||t.directed,this._isMultigraph=!!i.has(t,"multigraph")&&t.multigraph,this._isCompound=!!i.has(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=i.constant(void 0),this._defaultEdgeLabelFn=i.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function a(t,e){t[e]?t[e]++:t[e]=1}function s(t,e){--t[e]||delete t[e]}function u(t,e,n,r){var o=""+e,a=""+n;if(!t&&o>a){var s=o;o=a,a=s}return o+""+a+""+(i.isUndefined(r)?"\\0":r)}function c(t,e,n,r){var i=""+e,o=""+n;if(!t&&i>o){var a=i;i=o,o=a}var s={v:i,w:o};return r&&(s.name=r),s}function f(t,e){return u(t,e.v,e.w,e.name)}o.prototype._nodeCount=0,o.prototype._edgeCount=0,o.prototype.isDirected=function(){return this._isDirected},o.prototype.isMultigraph=function(){return this._isMultigraph},o.prototype.isCompound=function(){return this._isCompound},o.prototype.setGraph=function(t){return this._label=t,this},o.prototype.graph=function(){return this._label},o.prototype.setDefaultNodeLabel=function(t){return i.isFunction(t)||(t=i.constant(t)),this._defaultNodeLabelFn=t,this},o.prototype.nodeCount=function(){return this._nodeCount},o.prototype.nodes=function(){return i.keys(this._nodes)},o.prototype.sources=function(){var t=this;return i.filter(this.nodes(),(function(e){return i.isEmpty(t._in[e])}))},o.prototype.sinks=function(){var t=this;return i.filter(this.nodes(),(function(e){return i.isEmpty(t._out[e])}))},o.prototype.setNodes=function(t,e){var n=arguments,r=this;return i.each(t,(function(t){n.length>1?r.setNode(t,e):r.setNode(t)})),this},o.prototype.setNode=function(t,e){return i.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]="\\0",this._children[t]={},this._children["\\0"][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},o.prototype.node=function(t){return this._nodes[t]},o.prototype.hasNode=function(t){return i.has(this._nodes,t)},o.prototype.removeNode=function(t){var e=this;if(i.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],i.each(this.children(t),(function(t){e.setParent(t)})),delete this._children[t]),i.each(i.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],i.each(i.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},o.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(i.isUndefined(e))e="\\0";else{for(var n=e+="";!i.isUndefined(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},o.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},o.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if("\\0"!==e)return e}},o.prototype.children=function(t){if(i.isUndefined(t)&&(t="\\0"),this._isCompound){var e=this._children[t];if(e)return i.keys(e)}else{if("\\0"===t)return this.nodes();if(this.hasNode(t))return[]}},o.prototype.predecessors=function(t){var e=this._preds[t];if(e)return i.keys(e)},o.prototype.successors=function(t){var e=this._sucs[t];if(e)return i.keys(e)},o.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return i.union(e,this.successors(t))},o.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},o.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;i.each(this._nodes,(function(n,r){t(r)&&e.setNode(r,n)})),i.each(this._edgeObjs,(function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))}));var r={};return this._isCompound&&i.each(e.nodes(),(function(t){e.setParent(t,function t(i){var o=n.parent(i);return void 0===o||e.hasNode(o)?(r[i]=o,o):o in r?r[o]:t(o)}(t))})),e},o.prototype.setDefaultEdgeLabel=function(t){return i.isFunction(t)||(t=i.constant(t)),this._defaultEdgeLabelFn=t,this},o.prototype.edgeCount=function(){return this._edgeCount},o.prototype.edges=function(){return i.values(this._edgeObjs)},o.prototype.setPath=function(t,e){var n=this,r=arguments;return i.reduce(t,(function(t,i){return r.length>1?n.setEdge(t,i,e):n.setEdge(t,i),i})),this},o.prototype.setEdge=function(){var t,e,n,o,s=!1,f=arguments[0];"object"===r(f)&&null!==f&&"v"in f?(t=f.v,e=f.w,n=f.name,2===arguments.length&&(o=arguments[1],s=!0)):(t=f,e=arguments[1],n=arguments[3],arguments.length>2&&(o=arguments[2],s=!0)),t=""+t,e=""+e,i.isUndefined(n)||(n=""+n);var l=u(this._isDirected,t,e,n);if(i.has(this._edgeLabels,l))return s&&(this._edgeLabels[l]=o),this;if(!i.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[l]=s?o:this._defaultEdgeLabelFn(t,e,n);var h=c(this._isDirected,t,e,n);return t=h.v,e=h.w,Object.freeze(h),this._edgeObjs[l]=h,a(this._preds[e],t),a(this._sucs[t],e),this._in[e][l]=h,this._out[t][l]=h,this._edgeCount++,this},o.prototype.edge=function(t,e,n){var r=1===arguments.length?f(this._isDirected,arguments[0]):u(this._isDirected,t,e,n);return this._edgeLabels[r]},o.prototype.hasEdge=function(t,e,n){var r=1===arguments.length?f(this._isDirected,arguments[0]):u(this._isDirected,t,e,n);return i.has(this._edgeLabels,r)},o.prototype.removeEdge=function(t,e,n){var r=1===arguments.length?f(this._isDirected,arguments[0]):u(this._isDirected,t,e,n),i=this._edgeObjs[r];return i&&(t=i.v,e=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],s(this._preds[e],t),s(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this},o.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var r=i.values(n);return e?i.filter(r,(function(t){return t.v===e})):r}},o.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var r=i.values(n);return e?i.filter(r,(function(t){return t.w===e})):r}},o.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}},function(t,e,n){var r=n(65)(n(45),"Map");t.exports=r},function(t,e,n){var r=n(307),i=n(314),o=n(316),a=n(317),s=n(318);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,e,n){(function(t){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=n(178),o="object"==r(e)&&e&&!e.nodeType&&e,a=o&&"object"==r(t)&&t&&!t.nodeType&&t,s=a&&a.exports===o&&i.process,u=function(){try{var t=a&&a.require&&a.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=u}).call(this,n(72)(t))},function(t,e,n){var r=n(106),i=n(324),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},function(t,e,n){var r=n(186),i=n(187),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(t){return null==t?[]:(t=Object(t),r(a(t),(function(e){return o.call(t,e)})))}:i;t.exports=s},function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},function(t,e,n){var r=n(192);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e,n){var r=n(154),i=n(60);t.exports=function(t,e){return t&&r(t,e,i)}},function(t,e,n){var r=n(343)();t.exports=r},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=n(29),o=n(77),a=/\\.|\\[(?:[^[\\]]*|(["\'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,s=/^\\w*$/;t.exports=function(t,e){if(i(t))return!1;var n=r(t);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!o(t))||(s.test(t)||!a.test(t)||null!=e&&t in Object(e))}},function(t,e,n){var r=n(150),i=n(377);t.exports=function t(e,n,o,a,s){var u=-1,c=e.length;for(o||(o=i),s||(s=[]);++u<c;){var f=e[u];n>0&&o(f)?n>1?t(f,n-1,o,a,s):r(s,f):a||(s[s.length]=f)}return s}},function(t,e,n){var r=n(77);t.exports=function(t,e,n){for(var i=-1,o=t.length;++i<o;){var a=t[i],s=e(a);if(null!=s&&(void 0===u?s==s&&!r(s):n(s,u)))var u=s,c=a}return c}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BindingOnSyntax=void 0;var r=n(160),i=function(){function t(t){this._binding=t}return t.prototype.onActivation=function(t){return this._binding.onActivation=t,new r.BindingWhenSyntax(this._binding)},t}();e.BindingOnSyntax=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BindingWhenSyntax=void 0;var r=n(159),i=n(240),o=function(){function t(t){this._binding=t}return t.prototype.when=function(t){return this._binding.constraint=t,new r.BindingOnSyntax(this._binding)},t.prototype.whenTargetNamed=function(t){return this._binding.constraint=i.namedConstraint(t),new r.BindingOnSyntax(this._binding)},t.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(t){return null!==t.target&&!t.target.isNamed()&&!t.target.isTagged()},new r.BindingOnSyntax(this._binding)},t.prototype.whenTargetTagged=function(t,e){return this._binding.constraint=i.taggedConstraint(t)(e),new r.BindingOnSyntax(this._binding)},t.prototype.whenInjectedInto=function(t){return this._binding.constraint=function(e){return i.typeConstraint(t)(e.parentRequest)},new r.BindingOnSyntax(this._binding)},t.prototype.whenParentNamed=function(t){return this._binding.constraint=function(e){return i.namedConstraint(t)(e.parentRequest)},new r.BindingOnSyntax(this._binding)},t.prototype.whenParentTagged=function(t,e){return this._binding.constraint=function(n){return i.taggedConstraint(t)(e)(n.parentRequest)},new r.BindingOnSyntax(this._binding)},t.prototype.whenAnyAncestorIs=function(t){return this._binding.constraint=function(e){return i.traverseAncerstors(e,i.typeConstraint(t))},new r.BindingOnSyntax(this._binding)},t.prototype.whenNoAncestorIs=function(t){return this._binding.constraint=function(e){return!i.traverseAncerstors(e,i.typeConstraint(t))},new r.BindingOnSyntax(this._binding)},t.prototype.whenAnyAncestorNamed=function(t){return this._binding.constraint=function(e){return i.traverseAncerstors(e,i.namedConstraint(t))},new r.BindingOnSyntax(this._binding)},t.prototype.whenNoAncestorNamed=function(t){return this._binding.constraint=function(e){return!i.traverseAncerstors(e,i.namedConstraint(t))},new r.BindingOnSyntax(this._binding)},t.prototype.whenAnyAncestorTagged=function(t,e){return this._binding.constraint=function(n){return i.traverseAncerstors(n,i.taggedConstraint(t)(e))},new r.BindingOnSyntax(this._binding)},t.prototype.whenNoAncestorTagged=function(t,e){return this._binding.constraint=function(n){return!i.traverseAncerstors(n,i.taggedConstraint(t)(e))},new r.BindingOnSyntax(this._binding)},t.prototype.whenAnyAncestorMatches=function(t){return this._binding.constraint=function(e){return i.traverseAncerstors(e,t)},new r.BindingOnSyntax(this._binding)},t.prototype.whenNoAncestorMatches=function(t){return this._binding.constraint=function(e){return!i.traverseAncerstors(e,t)},new r.BindingOnSyntax(this._binding)},t}();e.BindingWhenSyntax=o},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){t.exports=function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}},function(t,e,n){var r=n(59),i=n(107),o=n(46),a=Function.prototype,s=Object.prototype,u=a.toString,c=s.hasOwnProperty,f=u.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=c.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==f}},function(t,e,n){t.exports={graphlib:n(44),layout:n(400),debug:n(460),util:{time:n(37).time,notime:n(37).notime},version:n(461)}},function(t,e,n){(function(t){var n,r,i,o;function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}"undefined"!=typeof self&&self,o=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=31)}([function(t,e,n){"use strict";var r=n(4);e.a=function(t){return Array.isArray?Array.isArray(t):Object(r.a)(t,"Array")}},function(t,e,n){"use strict";e.a=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)}},function(t,e,n){"use strict";var r=n(0),i=n(13);e.a=function(t,e){if(t)if(Object(r.a)(t))for(var n=0,o=t.length;n<o&&!1!==e(t[n],n);n++);else if(Object(i.a)(t))for(var a in t)if(t.hasOwnProperty(a)&&!1===e(t[a],a))break}},function(t,e,n){"use strict";var r=n(4);e.a=function(t){return Object(r.a)(t,"Function")}},function(t,e,n){"use strict";var r={}.toString;e.a=function(t,e){return r.call(t)==="[object "+e+"]"}},function(t,e,n){"use strict";var r=n(4);e.a=function(t){return Object(r.a)(t,"Number")}},function(t,e,n){"use strict";e.a=function(t){return null==t}},function(t,e,n){var r=n(33).mix;t.exports={assign:r}},function(t,e,n){"use strict";var r=n(4);e.a=function(t){return Object(r.a)(t,"String")}},function(t,e,n){"use strict";var r=n(15),i=n(4);e.a=function(t){if(!Object(r.a)(t)||!Object(i.a)(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}},function(t,e,n){"use strict";var r=n(6);e.a=function(t){return Object(r.a)(t)?"":t.toString()}},function(t,e,n){var r=n(18),i=function(){function t(t,e){void 0===e&&(e={}),this.options=e,this.rootNode=r(t,e)}return t.prototype.execute=function(){throw new Error("please override this method")},t}();t.exports=i},function(t,e,n){"use strict";var r=n(1);e.a=function(t,e){return!!Object(r.a)(t)&&t.indexOf(e)>-1}},function(t,e,n){"use strict";e.a=function(t){var e=a(t);return null!==t&&"object"===e||"function"===e}},function(t,e,n){"use strict";var r=n(2),i=n(1);e.a=function(t,e){if(!Object(i.a)(t))return t;var n=[];return Object(r.a)(t,(function(t,r){e(t,r)&&n.push(t)})),n}},function(t,e,n){"use strict";e.a=function(t){return"object"===a(t)&&null!==t}},function(t,e,n){"use strict";function r(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}e.a=function(t,e,n,i){return e&&r(t,e),n&&r(t,n),i&&r(t,i),t}},function(t,e,n){var r=n(30),i=["LR","RL","TB","BT","H","V"],o=["LR","RL","H"],a=i[0];t.exports=function(t,e,n){var s=e.direction||a;if(e.isHorizontal=function(t){return o.indexOf(t)>-1}(s),s&&-1===i.indexOf(s))throw new TypeError("Invalid direction: "+s);if(s===i[0])n(t,e);else if(s===i[1])n(t,e),t.right2left();else if(s===i[2])n(t,e);else if(s===i[3])n(t,e),t.bottom2top();else if(s===i[4]||s===i[5]){var u=r(t,e),c=u.left,f=u.right;n(c,e),n(f,e),e.isHorizontal?c.right2left():c.bottom2top(),f.translate(c.x-f.x,c.y-f.y),t.x=c.x,t.y=f.y;var l=t.getBoundingBox();e.isHorizontal?l.top<0&&t.translate(0,-l.top):l.left<0&&t.translate(-l.left,0)}var h=e.fixedRoot;return void 0===h&&(h=!0),h&&t.translate(-(t.x+t.width/2+t.hgap),-(t.y+t.height/2+t.vgap)),t}},function(t,e,n){var r=n(7),i={getId:function(t){return t.id||t.name},getHGap:function(t){return t.hgap||18},getVGap:function(t){return t.vgap||18},getChildren:function(t){return t.children},getHeight:function(t){return t.height||36},getWidth:function(t){var e=t.label||" ";return t.width||18*e.split("").length}};function o(t,e){var n=this;if(n.vgap=n.hgap=0,t instanceof o)return t;n.data=t;var r=e.getHGap(t),i=e.getVGap(t);return n.width=e.getWidth(t),n.height=e.getHeight(t),n.id=e.getId(t),n.x=n.y=0,n.depth=0,n.children||(n.children=[]),n.addGap(r,i),n}r.assign(o.prototype,{isRoot:function(){return 0===this.depth},isLeaf:function(){return 0===this.children.length},addGap:function(t,e){this.hgap+=t,this.vgap+=e,this.width+=2*t,this.height+=2*e},eachNode:function(t){for(var e,n=[this];e=n.shift();)t(e),n=e.children.concat(n)},DFTraverse:function(t){this.eachNode(t)},BFTraverse:function(t){for(var e,n=[this];e=n.shift();)t(e),n=n.concat(e.children)},getBoundingBox:function(){var t={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode((function(e){t.left=Math.min(t.left,e.x),t.top=Math.min(t.top,e.y),t.width=Math.max(t.width,e.x+e.width),t.height=Math.max(t.height,e.y+e.height)})),t},translate:function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.eachNode((function(n){n.x+=t,n.y+=e}))},right2left:function(){var t=this.getBoundingBox();this.eachNode((function(e){e.x=e.x-2*(e.x-t.left)-e.width})),this.translate(t.width,0)},bottom2top:function(){var t=this.getBoundingBox();this.eachNode((function(e){e.y=e.y-2*(e.y-t.top)-e.height})),this.translate(0,t.height)}}),t.exports=function(t,e,n){void 0===e&&(e={});var a,s=new o(t,e=r.assign({},i,e)),u=[s];if(!n&&!t.collapsed)for(;a=u.shift();)if(!a.data.collapsed){var c=e.getChildren(a.data),f=c?c.length:0;if(a.children=new Array(f),c&&f)for(var l=0;l<f;l++){var h=new o(c[l],e);a.children[l]=h,u.push(h),h.parent=a,h.depth=a.depth+1}}return s}},function(t,e,n){"use strict";var r=n(6),i=n(20);e.a=function(t,e){var n=Object(i.a)(e),o=n.length;if(Object(r.a)(t))return!o;for(var a=0;a<o;a+=1){var s=n[a];if(e[s]!==t[s]||!(s in t))return!1}return!0}},function(t,e,n){"use strict";var r=n(2),i=n(3),o=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return Object(r.a)(t,(function(n,r){Object(i.a)(t)&&"prototype"===r||e.push(r)})),e};e.a=o},function(t,e,n){"use strict";var r=n(1),i=Array.prototype.splice;e.a=function(t,e){if(!Object(r.a)(t))return[];for(var n=t?e.length:0,o=n-1;n--;){var a=void 0,s=e[n];n!==o&&s===a||(a=s,i.call(t,s,1))}return t}},function(t,e,n){"use strict";var r=n(12),i=n(2);e.a=function(t){var e=[];return Object(i.a)(t,(function(t){Object(r.a)(e,t)||e.push(t)})),e}},function(t,e,n){"use strict";var r=n(0),i=n(3),o=n(24);e.a=function(t,e){if(!e)return{0:t};if(!Object(i.a)(e)){var n=Object(r.a)(e)?e:e.replace(/\\s+/g,"").split("*");e=function(t){for(var e="_",r=0,i=n.length;r<i;r++)e+=t[n[r]]&&t[n[r]].toString();return e}}return Object(o.a)(t,e)}},function(t,e,n){"use strict";var r=n(2),i=n(0),o=n(3),a=Object.prototype.hasOwnProperty;e.a=function(t,e){if(!e||!Object(i.a)(t))return{};var n,s={},u=Object(o.a)(e)?e:function(t){return t[e]};return Object(r.a)(t,(function(t){n=u(t),a.call(s,n)?s[n].push(t):s[n]=[t]})),s}},function(t,e,n){"use strict";e.a=function(t,e){return t.hasOwnProperty(e)}},function(t,e,n){"use strict";var r=n(2),i=n(3),o=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return Object(r.a)(t,(function(n,r){Object(i.a)(t)&&"prototype"===r||e.push(n)})),e};e.a=o},function(t,e,n){"use strict";var r={}.toString;e.a=function(t){return r.call(t).replace(/^\\[object /,"").replace(/]$/,"")}},function(t,e,n){"use strict";var r=Object.prototype;e.a=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},function(t,e,n){"use strict";var r=n(15),i=n(1),o=n(8);e.a=function t(e,n){if(e===n)return!0;if(!e||!n)return!1;if(Object(o.a)(e)||Object(o.a)(n))return!1;if(Object(i.a)(e)||Object(i.a)(n)){if(e.length!==n.length)return!1;for(var a=!0,s=0;s<e.length&&(a=t(e[s],n[s]));s++);return a}if(Object(r.a)(e)||Object(r.a)(n)){var u=Object.keys(e),c=Object.keys(n);if(u.length!==c.length)return!1;for(a=!0,s=0;s<u.length&&(a=t(e[u[s]],n[u[s]]));s++);return a}return!1}},function(t,e,n){var r=n(18);t.exports=function(t,e){for(var n=r(t.data,e,!0),i=r(t.data,e,!0),o=t.children.length,a=Math.round(o/2),s=e.getSide||function(t,e){return e<a?"right":"left"},u=0;u<o;u++){var c=t.children[u];"right"===s(c,u)?i.children.push(c):n.children.push(c)}return n.eachNode((function(t){t.isRoot()||(t.side="left")})),i.eachNode((function(t){t.isRoot()||(t.side="right")})),{left:n,right:i}}},function(t,e,n){var r={compactBox:n(32),dendrogram:n(114),indented:n(116),mindmap:n(118)};t.exports=r},function(t,e,n){var r=n(11),i=n(113),o=n(17),a=n(7),s=function(t){var e,n;function r(){return t.apply(this,arguments)||this}return n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r.prototype.execute=function(){return o(this.rootNode,this.options,i)},r}(r),u={};t.exports=function(t,e){return e=a.assign({},u,e),new s(t,e).execute()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(12);n.d(e,"contains",(function(){return r.a})),n.d(e,"includes",(function(){return r.a}));var i=n(34);n.d(e,"difference",(function(){return i.a}));var o=n(35);n.d(e,"find",(function(){return o.a}));var a=n(36);n.d(e,"findIndex",(function(){return a.a}));var s=n(37);n.d(e,"firstValue",(function(){return s.a}));var u=n(38);n.d(e,"flatten",(function(){return u.a}));var c=n(39);n.d(e,"flattenDeep",(function(){return c.a}));var f=n(40);n.d(e,"getRange",(function(){return f.a}));var l=n(41);n.d(e,"pull",(function(){return l.a}));var h=n(21);n.d(e,"pullAt",(function(){return h.a}));var d=n(42);n.d(e,"reduce",(function(){return d.a}));var p=n(43);n.d(e,"remove",(function(){return p.a}));var g=n(44);n.d(e,"sortBy",(function(){return g.a}));var v=n(45);n.d(e,"union",(function(){return v.a}));var y=n(22);n.d(e,"uniq",(function(){return y.a}));var m=n(46);n.d(e,"valuesOfKey",(function(){return m.a}));var b=n(47);n.d(e,"head",(function(){return b.a}));var x=n(48);n.d(e,"last",(function(){return x.a}));var w=n(49);n.d(e,"startsWith",(function(){return w.a}));var S=n(50);n.d(e,"endsWith",(function(){return S.a}));var E=n(14);n.d(e,"filter",(function(){return E.a}));var _=n(51);n.d(e,"every",(function(){return _.a}));var O=n(52);n.d(e,"some",(function(){return O.a}));var k=n(53);n.d(e,"group",(function(){return k.a}));var M=n(24);n.d(e,"groupBy",(function(){return M.a}));var A=n(23);n.d(e,"groupToMap",(function(){return A.a}));var T=n(54);n.d(e,"getWrapBehavior",(function(){return T.a}));var C=n(55);n.d(e,"wrapBehavior",(function(){return C.a}));var I=n(56);n.d(e,"number2color",(function(){return I.a}));var P=n(57);n.d(e,"parseRadius",(function(){return P.a}));var j=n(58);n.d(e,"clamp",(function(){return j.a}));var D=n(59);n.d(e,"fixedBase",(function(){return D.a}));var N=n(60);n.d(e,"isDecimal",(function(){return N.a}));var R=n(61);n.d(e,"isEven",(function(){return R.a}));var L=n(62);n.d(e,"isInteger",(function(){return L.a}));var B=n(63);n.d(e,"isNegative",(function(){return B.a}));var G=n(64);n.d(e,"isNumberEqual",(function(){return G.a}));var F=n(65);n.d(e,"isOdd",(function(){return F.a}));var U=n(66);n.d(e,"isPositive",(function(){return U.a}));var z=n(67);n.d(e,"maxBy",(function(){return z.a}));var V=n(68);n.d(e,"minBy",(function(){return V.a}));var W=n(69);n.d(e,"mod",(function(){return W.a}));var X=n(70);n.d(e,"toDegree",(function(){return X.a}));var Y=n(71);n.d(e,"toInteger",(function(){return Y.a}));var H=n(72);n.d(e,"toRadian",(function(){return H.a}));var q=n(73);n.d(e,"forIn",(function(){return q.a}));var K=n(25);n.d(e,"has",(function(){return K.a}));var Z=n(74);n.d(e,"hasKey",(function(){return Z.a}));var Q=n(75);n.d(e,"hasValue",(function(){return Q.a}));var J=n(20);n.d(e,"keys",(function(){return J.a}));var $=n(19);n.d(e,"isMatch",(function(){return $.a}));var tt=n(26);n.d(e,"values",(function(){return tt.a}));var et=n(76);n.d(e,"lowerCase",(function(){return et.a}));var nt=n(77);n.d(e,"lowerFirst",(function(){return nt.a}));var rt=n(78);n.d(e,"substitute",(function(){return rt.a}));var it=n(79);n.d(e,"upperCase",(function(){return it.a}));var ot=n(80);n.d(e,"upperFirst",(function(){return ot.a}));var at=n(27);n.d(e,"getType",(function(){return at.a}));var st=n(81);n.d(e,"isArguments",(function(){return st.a}));var ut=n(0);n.d(e,"isArray",(function(){return ut.a}));var ct=n(1);n.d(e,"isArrayLike",(function(){return ct.a}));var ft=n(82);n.d(e,"isBoolean",(function(){return ft.a}));var lt=n(83);n.d(e,"isDate",(function(){return lt.a}));var ht=n(84);n.d(e,"isError",(function(){return ht.a}));var dt=n(3);n.d(e,"isFunction",(function(){return dt.a}));var pt=n(85);n.d(e,"isFinite",(function(){return pt.a}));var gt=n(6);n.d(e,"isNil",(function(){return gt.a}));var vt=n(86);n.d(e,"isNull",(function(){return vt.a}));var yt=n(5);n.d(e,"isNumber",(function(){return yt.a}));var mt=n(13);n.d(e,"isObject",(function(){return mt.a}));var bt=n(15);n.d(e,"isObjectLike",(function(){return bt.a}));var xt=n(9);n.d(e,"isPlainObject",(function(){return xt.a}));var wt=n(28);n.d(e,"isPrototype",(function(){return wt.a}));var St=n(87);n.d(e,"isRegExp",(function(){return St.a}));var Et=n(8);n.d(e,"isString",(function(){return Et.a}));var _t=n(4);n.d(e,"isType",(function(){return _t.a}));var Ot=n(88);n.d(e,"isUndefined",(function(){return Ot.a}));var kt=n(89);n.d(e,"isElement",(function(){return kt.a}));var Mt=n(90);n.d(e,"requestAnimationFrame",(function(){return Mt.a}));var At=n(91);n.d(e,"clearAnimationFrame",(function(){return At.a}));var Tt=n(92);n.d(e,"augment",(function(){return Tt.a}));var Ct=n(93);n.d(e,"clone",(function(){return Ct.a}));var It=n(94);n.d(e,"debounce",(function(){return It.a}));var Pt=n(95);n.d(e,"memoize",(function(){return Pt.a}));var jt=n(96);n.d(e,"deepMix",(function(){return jt.a}));var Dt=n(2);n.d(e,"each",(function(){return Dt.a}));var Nt=n(97);n.d(e,"extend",(function(){return Nt.a}));var Rt=n(98);n.d(e,"indexOf",(function(){return Rt.a}));var Lt=n(99);n.d(e,"isEmpty",(function(){return Lt.a}));var Bt=n(29);n.d(e,"isEqual",(function(){return Bt.a}));var Gt=n(100);n.d(e,"isEqualWith",(function(){return Gt.a}));var Ft=n(101);n.d(e,"map",(function(){return Ft.a}));var Ut=n(102);n.d(e,"mapValues",(function(){return Ut.a}));var zt=n(16);n.d(e,"mix",(function(){return zt.a})),n.d(e,"assign",(function(){return zt.a}));var Vt=n(103);n.d(e,"get",(function(){return Vt.a}));var Wt=n(104);n.d(e,"set",(function(){return Wt.a}));var Xt=n(105);n.d(e,"pick",(function(){return Xt.a}));var Yt=n(106);n.d(e,"throttle",(function(){return Yt.a}));var Ht=n(107);n.d(e,"toArray",(function(){return Ht.a}));var qt=n(10);n.d(e,"toString",(function(){return qt.a}));var Kt=n(108);n.d(e,"uniqueId",(function(){return Kt.a}));var Zt=n(109);n.d(e,"noop",(function(){return Zt.a}));var Qt=n(110);n.d(e,"identity",(function(){return Qt.a}));var Jt=n(111);n.d(e,"size",(function(){return Jt.a}));var $t=n(112);n.d(e,"Cache",(function(){return $t.a}))},function(t,e,n){"use strict";var r=n(14),i=n(12);e.a=function(t,e){return void 0===e&&(e=[]),Object(r.a)(t,(function(t){return!Object(i.a)(e,t)}))}},function(t,e,n){"use strict";var r=n(3),i=n(19),o=n(0),a=n(9);e.a=function(t,e){if(!Object(o.a)(t))return null;var n;if(Object(r.a)(e)&&(n=e),Object(a.a)(e)&&(n=function(t){return Object(i.a)(t,e)}),n)for(var s=0;s<t.length;s+=1)if(n(t[s]))return t[s];return null}},function(t,e,n){"use strict";e.a=function(t,e,n){void 0===n&&(n=0);for(var r=n;r<t.length;r++)if(e(t[r],r))return r;return-1}},function(t,e,n){"use strict";var r=n(6),i=n(0);e.a=function(t,e){for(var n=null,o=0;o<t.length;o++){var a=t[o][e];if(!Object(r.a)(a)){n=Object(i.a)(a)?a[0]:a;break}}return n}},function(t,e,n){"use strict";var r=n(0);e.a=function(t){if(!Object(r.a)(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e}},function(t,e,n){"use strict";var r=n(0);e.a=function t(e,n){if(void 0===n&&(n=[]),Object(r.a)(e))for(var i=0;i<e.length;i+=1)t(e[i],n);else n.push(e);return n}},function(t,e,n){"use strict";var r=n(0),i=n(14);e.a=function(t){if(!(t=Object(i.a)(t,(function(t){return!isNaN(t)}))).length)return{min:0,max:0};if(Object(r.a)(t[0])){for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);t=e}var o=Math.max.apply(null,t);return{min:Math.min.apply(null,t),max:o}}},function(t,e,n){"use strict";var r=Array.prototype,i=r.splice,o=r.indexOf;e.a=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r++)for(var a=e[r],s=-1;(s=o.call(t,a))>-1;)i.call(t,s,1);return t}},function(t,e,n){"use strict";var r=n(2),i=n(0),o=n(9);e.a=function(t,e,n){if(!Object(i.a)(t)&&!Object(o.a)(t))return t;var a=n;return Object(r.a)(t,(function(t,n){a=e(a,t,n)})),a}},function(t,e,n){"use strict";var r=n(1),i=n(21);e.a=function(t,e){var n=[];if(!Object(r.a)(t))return n;for(var o=-1,a=[],s=t.length;++o<s;){var u=t[o];e(u,o,t)&&(n.push(u),a.push(o))}return Object(i.a)(t,a),n}},function(t,e,n){"use strict";var r=n(0),i=n(8),o=n(3);e.a=function(t,e){var n;if(Object(o.a)(e))n=function(t,n){return e(t)-e(n)};else{var a=[];Object(i.a)(e)?a.push(e):Object(r.a)(e)&&(a=e),n=function(t,e){for(var n=0;n<a.length;n+=1){var r=a[n];if(t[r]>e[r])return 1;if(t[r]<e[r])return-1}return 0}}return t.sort(n),t}},function(t,e,n){"use strict";var r=n(22);e.a=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Object(r.a)([].concat.apply([],t))}},function(t,e,n){"use strict";var r=n(2),i=n(0),o=n(6);e.a=function(t,e){var n=[],a={};return t.forEach((function(t){var s=t[e];Object(o.a)(s)||(Object(i.a)(s)||(s=[s]),Object(r.a)(s,(function(t){a[t]||(n.push(t),a[t]=!0)})))})),n}},function(t,e,n){"use strict";e.a=function(t){if(Object(r.a)(t))return t[0]};var r=n(1)},function(t,e,n){"use strict";e.a=function(t){if(Object(r.a)(t))return t[t.length-1]};var r=n(1)},function(t,e,n){"use strict";var r=n(0),i=n(8);e.a=function(t,e){return!(!Object(r.a)(t)&&!Object(i.a)(t))&&t[0]===e}},function(t,e,n){"use strict";var r=n(0),i=n(8);e.a=function(t,e){return!(!Object(r.a)(t)&&!Object(i.a)(t))&&t[t.length-1]===e}},function(t,e,n){"use strict";e.a=function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0}},function(t,e,n){"use strict";e.a=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n))return!0;return!1}},function(t,e,n){"use strict";var r=n(23);e.a=function(t,e){if(!e)return[t];var n=Object(r.a)(t,e),i=[];for(var o in n)i.push(n[o]);return i}},function(t,e,n){"use strict";e.a=function(t,e){return t["_wrap_"+e]}},function(t,e,n){"use strict";e.a=function(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n}},function(t,e,n){"use strict";var r={};e.a=function(t){var e=r[t];if(!e){for(var n=t.toString(16),i=n.length;i<6;i++)n="0"+n;e="#"+n,r[t]=e}return e}},function(t,e,n){"use strict";var r=n(0);e.a=function(t){var e=0,n=0,i=0,o=0;return Object(r.a)(t)?1===t.length?e=n=i=o=t[0]:2===t.length?(e=i=t[0],n=o=t[1]):3===t.length?(e=t[0],n=o=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],o=t[3]):e=n=i=o=t,{r1:e,r2:n,r3:i,r4:o}}},function(t,e,n){"use strict";e.a=function(t,e,n){return t<e?e:t>n?n:t}},function(t,e,n){"use strict";e.a=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))}},function(t,e,n){"use strict";var r=n(5);e.a=function(t){return Object(r.a)(t)&&t%1!=0}},function(t,e,n){"use strict";var r=n(5);e.a=function(t){return Object(r.a)(t)&&t%2==0}},function(t,e,n){"use strict";var r=n(5),i=Number.isInteger?Number.isInteger:function(t){return Object(r.a)(t)&&t%1==0};e.a=i},function(t,e,n){"use strict";var r=n(5);e.a=function(t){return Object(r.a)(t)&&t<0}},function(t,e,n){"use strict";e.a=function(t,e,n){return void 0===n&&(n=1e-5),Math.abs(t-e)<n}},function(t,e,n){"use strict";var r=n(5);e.a=function(t){return Object(r.a)(t)&&t%2!=0}},function(t,e,n){"use strict";var r=n(5);e.a=function(t){return Object(r.a)(t)&&t>0}},function(t,e,n){"use strict";var r=n(2),i=n(0),o=n(3);e.a=function(t,e){if(Object(i.a)(t)){var n,a,s=t[0];return n=Object(o.a)(e)?e(t[0]):t[0][e],Object(r.a)(t,(function(t){(a=Object(o.a)(e)?e(t):t[e])>n&&(s=t,n=a)})),s}}},function(t,e,n){"use strict";var r=n(2),i=n(0),o=n(3);e.a=function(t,e){if(Object(i.a)(t)){var n,a,s=t[0];return n=Object(o.a)(e)?e(t[0]):t[0][e],Object(r.a)(t,(function(t){(a=Object(o.a)(e)?e(t):t[e])<n&&(s=t,n=a)})),s}}},function(t,e,n){"use strict";e.a=function(t,e){return(t%e+e)%e}},function(t,e,n){"use strict";var r=180/Math.PI;e.a=function(t){return r*t}},function(t,e,n){"use strict";e.a=parseInt},function(t,e,n){"use strict";var r=Math.PI/180;e.a=function(t){return r*t}},function(t,e,n){"use strict";var r=n(2);e.a=r.a},function(t,e,n){"use strict";var r=n(25);e.a=r.a},function(t,e,n){"use strict";var r=n(12),i=n(26);e.a=function(t,e){return Object(r.a)(Object(i.a)(t),e)}},function(t,e,n){"use strict";var r=n(10);e.a=function(t){return Object(r.a)(t).toLowerCase()}},function(t,e,n){"use strict";var r=n(10);e.a=function(t){var e=Object(r.a)(t);return e.charAt(0).toLowerCase()+e.substring(1)}},function(t,e,n){"use strict";e.a=function(t,e){return t&&e?t.replace(/\\\\?\\{([^{}]+)\\}/g,(function(t,n){return"\\\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]})):t}},function(t,e,n){"use strict";var r=n(10);e.a=function(t){return Object(r.a)(t).toUpperCase()}},function(t,e,n){"use strict";var r=n(10);e.a=function(t){var e=Object(r.a)(t);return e.charAt(0).toUpperCase()+e.substring(1)}},function(t,e,n){"use strict";var r=n(4);e.a=function(t){return Object(r.a)(t,"Arguments")}},function(t,e,n){"use strict";var r=n(4);e.a=function(t){return Object(r.a)(t,"Boolean")}},function(t,e,n){"use strict";var r=n(4);e.a=function(t){return Object(r.a)(t,"Date")}},function(t,e,n){"use strict";var r=n(4);e.a=function(t){return Object(r.a)(t,"Error")}},function(t,e,n){"use strict";var r=n(5);e.a=function(t){return Object(r.a)(t)&&isFinite(t)}},function(t,e,n){"use strict";e.a=function(t){return null===t}},function(t,e,n){"use strict";var r=n(4);e.a=function(t){return Object(r.a)(t,"RegExp")}},function(t,e,n){"use strict";e.a=function(t){return void 0===t}},function(t,e,n){"use strict";e.a=function(t){return t instanceof Element||t instanceof HTMLDocument}},function(t,e,n){"use strict";e.a=function(t){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)})(t)}},function(t,e,n){"use strict";e.a=function(t){(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout)(t)}},function(t,e,n){"use strict";var r=n(16),i=n(3);e.a=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t[0],o=1;o<t.length;o++){var a=t[o];Object(i.a)(a)&&(a=a.prototype),Object(r.a)(n.prototype,a)}}},function(t,e,n){"use strict";var r=n(0);e.a=function t(e){if("object"!==a(e)||null===e)return e;var n;if(Object(r.a)(e)){n=[];for(var i=0,o=e.length;i<o;i++)"object"===a(e[i])&&null!=e[i]?n[i]=t(e[i]):n[i]=e[i]}else for(var s in n={},e)"object"===a(e[s])&&null!=e[s]?n[s]=t(e[s]):n[s]=e[s];return n}},function(t,e,n){"use strict";e.a=function(t,e,n){var r;return function(){var i=this,o=arguments,a=function(){r=null,n||t.apply(i,o)},s=n&&!r;clearTimeout(r),r=setTimeout(a,e),s&&t.apply(i,o)}}},function(t,e,n){"use strict";var r=n(3);e.a=function(t,e){if(!Object(r.a)(t))throw new TypeError("Expected a function");var n=function n(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=e?e.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var s=t.apply(this,r);return a.set(o,s),s};return n.cache=new Map,n}},function(t,e,n){"use strict";var r=n(0),i=n(9);function o(t,e,n,a){for(var s in n=n||0,a=a||5,e)if(e.hasOwnProperty(s)){var u=e[s];null!==u&&Object(i.a)(u)?(Object(i.a)(t[s])||(t[s]={}),n<a?o(t[s],u,n+1,a):t[s]=e[s]):Object(r.a)(u)?(t[s]=[],t[s]=t[s].concat(u)):void 0!==u&&(t[s]=u)}}e.a=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r+=1)o(t,e[r]);return t}},function(t,e,n){"use strict";var r=n(16),i=n(3);e.a=function(t,e,n,o){Object(i.a)(e)||(n=e,e=t,t=function(){});var a=Object.create?function(t,e){return Object.create(t,{constructor:{value:e}})}:function(t,e){function n(){}n.prototype=t;var r=new n;return r.constructor=e,r},s=a(e.prototype,t);return t.prototype=Object(r.a)(s,t.prototype),t.superclass=a(e.prototype,e),Object(r.a)(s,n),Object(r.a)(t,o),t}},function(t,e,n){"use strict";var r=n(1);e.a=function(t,e){if(!Object(r.a)(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var i=-1,o=0;o<t.length;o++)if(t[o]===e){i=o;break}return i}},function(t,e,n){"use strict";var r=n(6),i=n(1),o=n(27),a=n(28),s=Object.prototype.hasOwnProperty;e.a=function(t){if(Object(r.a)(t))return!0;if(Object(i.a)(t))return!t.length;var e=Object(o.a)(t);if("Map"===e||"Set"===e)return!t.size;if(Object(a.a)(t))return!Object.keys(t).length;for(var n in t)if(s.call(t,n))return!1;return!0}},function(t,e,n){"use strict";var r=n(3),i=n(29);e.a=function(t,e,n){return Object(r.a)(n)?!!n(t,e):Object(i.a)(t,e)}},function(t,e,n){"use strict";var r=n(2),i=n(1);e.a=function(t,e){if(!Object(i.a)(t))return t;var n=[];return Object(r.a)(t,(function(t,r){n.push(e(t,r))})),n}},function(t,e,n){"use strict";var r=n(6),i=n(13),o=function(t){return t};e.a=function(t,e){void 0===e&&(e=o);var n={};return Object(i.a)(t)&&!Object(r.a)(t)&&Object.keys(t).forEach((function(r){n[r]=e(t[r],r)})),n}},function(t,e,n){"use strict";var r=n(8);e.a=function(t,e,n){for(var i=0,o=Object(r.a)(e)?e.split("."):e;t&&i<o.length;)t=t[o[i++]];return void 0===t||i<o.length?n:t}},function(t,e,n){"use strict";var r=n(13),i=n(8),o=n(5);e.a=function(t,e,n){var a=t,s=Object(i.a)(e)?e.split("."):e;return s.forEach((function(t,e){e<s.length-1?(Object(r.a)(a[t])||(a[t]=Object(o.a)(s[e+1])?[]:{}),a=a[t]):a[t]=n})),t}},function(t,e,n){"use strict";var r=n(2),i=n(9),o=Object.prototype.hasOwnProperty;e.a=function(t,e){if(null===t||!Object(i.a)(t))return{};var n={};return Object(r.a)(e,(function(e){o.call(t,e)&&(n[e]=t[e])})),n}},function(t,e,n){"use strict";e.a=function(t,e,n){var r,i,o,a,s=0;n||(n={});var u=function(){s=!1===n.leading?0:Date.now(),r=null,a=t.apply(i,o),r||(i=o=null)},c=function(){var c=Date.now();s||!1!==n.leading||(s=c);var f=e-(c-s);return i=this,o=arguments,f<=0||f>e?(r&&(clearTimeout(r),r=null),s=c,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(u,f)),a};return c.cancel=function(){clearTimeout(r),s=0,r=i=o=null},c}},function(t,e,n){"use strict";var r=n(1);e.a=function(t){return Object(r.a)(t)?Array.prototype.slice.call(t):[]}},function(t,e,n){"use strict";var r={};e.a=function(t){return r[t=t||"g"]?r[t]+=1:r[t]=1,t+r[t]}},function(t,e,n){"use strict";e.a=function(){}},function(t,e,n){"use strict";e.a=function(t){return t}},function(t,e,n){"use strict";e.a=function(t){return Object(r.a)(t)?0:Object(i.a)(t)?t.length:Object.keys(t).length};var r=n(6),i=n(1)},function(t,e,n){"use strict";var r=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}();e.a=r},function(t,e){function n(t,e,n,r){void 0===r&&(r=[]);var i=this;i.w=t||0,i.h=e||0,i.y=n||0,i.x=0,i.c=r||[],i.cs=r.length,i.prelim=0,i.mod=0,i.shift=0,i.change=0,i.tl=null,i.tr=null,i.el=null,i.er=null,i.msel=0,i.mser=0}function r(t,e){var n=function t(e,n){var r=n?e.y:e.x;return e.children.forEach((function(e){r=Math.min(t(e,n),r)})),r}(t,e);!function t(e,n,r){r?e.y+=n:e.x+=n,e.children.forEach((function(e){t(e,n,r)}))}(t,-n,e)}n.fromNode=function(t,e){if(!t)return null;var r=[];return t.children.forEach((function(t){r.push(n.fromNode(t,e))})),e?new n(t.height,t.width,t.x,r):new n(t.width,t.height,t.y,r)},t.exports=function(t,e){void 0===e&&(e={});var i=e.isHorizontal;function o(t){0===t.cs?(t.el=t,t.er=t,t.msel=t.mser=0):(t.el=t.c[0].el,t.msel=t.c[0].msel,t.er=t.c[t.cs-1].er,t.mser=t.c[t.cs-1].mser)}function a(t,e,n){for(var r=t.c[e-1],i=r.mod,o=t.c[e],a=o.mod;null!==r&&null!==o;){f(r)>n.low&&(n=n.nxt);var l=i+r.prelim+r.w-(a+o.prelim);l>0&&(a+=l,s(t,e,n.index,l));var h=f(r),d=f(o);h<=d&&null!==(r=c(r))&&(i+=r.mod),h>=d&&null!==(o=u(o))&&(a+=o.mod)}!r&&o?function(t,e,n,r){var i=t.c[0].el;i.tl=n;var o=r-n.mod-t.c[0].msel;i.mod+=o,i.prelim-=o,t.c[0].el=t.c[e].el,t.c[0].msel=t.c[e].msel}(t,e,o,a):r&&!o&&function(t,e,n,r){var i=t.c[e].er;i.tr=n;var o=r-n.mod-t.c[e].mser;i.mod+=o,i.prelim-=o,t.c[e].er=t.c[e-1].er,t.c[e].mser=t.c[e-1].mser}(t,e,r,i)}function s(t,e,n,r){t.c[e].mod+=r,t.c[e].msel+=r,t.c[e].mser+=r,function(t,e,n,r){if(n!==e-1){var i=e-n;t.c[n+1].shift+=r/i,t.c[e].shift-=r/i,t.c[e].change-=r-r/i}}(t,e,n,r)}function u(t){return 0===t.cs?t.tl:t.c[0]}function c(t){return 0===t.cs?t.tr:t.c[t.cs-1]}function f(t){return t.y+t.h}function l(t,e,n){for(;null!==n&&t>=n.low;)n=n.nxt;return{low:t,index:e,nxt:n}}!function t(e,n,r){void 0===r&&(r=0),n?(e.x=r,r+=e.width):(e.y=r,r+=e.height),e.children.forEach((function(e){t(e,n,r)}))}(t,i);var h=n.fromNode(t,i);return function t(e){if(0!==e.cs){t(e.c[0]);for(var n=l(f(e.c[0].el),0,null),r=1;r<e.cs;++r){t(e.c[r]);var i=f(e.c[r].er);a(e,r,n),n=l(i,r,n)}!function(t){t.prelim=(t.c[0].prelim+t.c[0].mod+t.c[t.cs-1].mod+t.c[t.cs-1].prelim+t.c[t.cs-1].w)/2-t.w/2}(e),o(e)}else o(e)}(h),function t(e,n){n+=e.mod,e.x=e.prelim+n,function(t){for(var e=0,n=0,r=0;r<t.cs;r++)e+=t.c[r].shift,n+=e+t.c[r].change,t.c[r].mod+=n}(e);for(var r=0;r<e.cs;r++)t(e.c[r],n)}(h,0),function t(e,n,r){r?n.y=e.x:n.x=e.x,e.c.forEach((function(e,i){t(e,n.children[i],r)}))}(h,t,i),r(t,i),t}},function(t,e,n){var r=n(11),i=n(115),o=n(17),a=n(7),s=function(t){var e,n;function r(){return t.apply(this,arguments)||this}return n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r.prototype.execute=function(){return this.rootNode.width=0,o(this.rootNode,this.options,i)},r}(r),u={};t.exports=function(t,e){return e=a.assign({},u,e),new s(t,e).execute()}},function(t,e,n){var r=n(7);function i(t,e){void 0===t&&(t=0),void 0===e&&(e=[]);var n=this;n.x=n.y=0,n.leftChild=n.rightChild=null,n.height=0,n.children=e}var o={isHorizontal:!0,nodeSep:20,nodeSize:20,rankSep:200,subTreeSep:10};t.exports=function(t,e){void 0===e&&(e={}),e=r.assign({},o,e);var n,a=0,s=function t(e){if(!e)return null;e.width=0,e.depth&&e.depth>a&&(a=e.depth);var n=e.children,r=n.length,o=new i(e.height,[]);return n.forEach((function(e,n){var i=t(e);o.children.push(i),0===n&&(o.leftChild=i),n===r-1&&(o.rightChild=i)})),o.originNode=e,o.isLeaf=e.isLeaf(),o}(t);return function t(e){if(e.isLeaf||0===e.children.length)e.drawingDepth=a;else{var n=e.children.map((function(e){return t(e)})),r=Math.min.apply(null,n);e.drawingDepth=r-1}return e.drawingDepth}(s),function t(r){r.x=r.drawingDepth*e.rankSep,r.isLeaf?(r.y=0,n&&(r.y=n.y+n.height+e.nodeSep,r.originNode.parent!==n.originNode.parent&&(r.y+=e.subTreeSep)),n=r):(r.children.forEach((function(e){t(e)})),r.y=(r.leftChild.y+r.rightChild.y)/2)}(s),function t(e,n,r){r?(n.x=e.x,n.y=e.y):(n.x=e.y,n.y=e.x),e.children.forEach((function(e,i){t(e,n.children[i],r)}))}(s,t,e.isHorizontal),t}},function(t,e,n){var r=n(11),i=n(117),o=n(30),a=n(7),s=["LR","RL","H"],u=s[0],c=function(t){var e,n;function r(){return t.apply(this,arguments)||this}return n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r.prototype.execute=function(){var t=this.options,e=this.rootNode;t.isHorizontal=!0;var n=t.indent,r=void 0===n?20:n,a=t.dropCap,c=void 0===a||a,f=t.direction||u;if(f&&-1===s.indexOf(f))throw new TypeError("Invalid direction: "+f);if(f===s[0])i(e,r,c);else if(f===s[1])i(e,r,c),e.right2left();else if(f===s[2]){var l=o(e,t),h=l.left,d=l.right;i(h,r,c),h.right2left(),i(d,r,c);var p=h.getBoundingBox();d.translate(p.width,0),e.x=d.x-e.width/2}return e},r}(r),f={};t.exports=function(t,e){return e=a.assign({},f,e),new c(t,e).execute()}},function(t,e){t.exports=function(t,e,n){var r=null;t.eachNode((function(t){!function(t,e,n,r){if(!r)try{if(t.id===t.parent.children[0].id)return t.x+=n*t.depth,void(t.y=e?e.y:0)}catch(t){}t.x+=n*t.depth,t.y=e?e.y+e.height:0}(t,r,e,n),r=t}))}},function(t,e,n){var r=n(11),i=n(119),o=n(17),a=n(7),s=function(t){var e,n;function r(){return t.apply(this,arguments)||this}return n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r.prototype.execute=function(){return o(this.rootNode,this.options,i)},r}(r),u={};t.exports=function(t,e){return e=a.assign({},u,e),new s(t,e).execute()}},function(t,e,n){var r=n(7),i={getSubTreeSep:function(){return 0}};t.exports=function(t,e){void 0===e&&(e={}),e=r.assign({},i,e),t.parent={x:0,width:0,height:0,y:0},t.BFTraverse((function(t){t.x=t.parent.x+t.parent.width})),t.parent=null,function t(e,n){var r=0;return e.children.length?e.children.forEach((function(e){r+=t(e,n)})):r=e.height,e._subTreeSep=n.getSubTreeSep(e.data),e.totalHeight=Math.max(e.height,r)+2*e._subTreeSep,e.totalHeight}(t,e),t.startY=0,t.y=t.totalHeight/2-t.height/2,t.eachNode((function(t){var e=t.children,n=e.length;if(n){var r=e[0];if(r.startY=t.startY+t._subTreeSep,1===n)r.y=t.y+t.height/2-r.height/2;else{r.y=r.startY+r.totalHeight/2-r.height/2;for(var i=1;i<n;i++){var o=e[i];o.startY=e[i-1].startY+e[i-1].totalHeight,o.y=o.startY+o.totalHeight/2-o.height/2}}}})),function t(e){var n=e.children,r=n.length;if(r){n.forEach((function(e){t(e)}));var i=n[0],o=n[r-1],a=o.y-i.y+o.height,s=0;if(n.forEach((function(t){s+=t.totalHeight})),a>e.height)e.y=i.y+a/2-e.height/2;else if(1!==n.length||e.height>s){var u=e.y+(e.height-a)/2-i.y;n.forEach((function(t){t.translate(0,u)}))}else e.y=(i.y+i.height/2+o.y+o.height/2)/2-e.height/2}}(t)}}])},"object"===a(e)&&"object"===a(t)?t.exports=o():(r=[],void 0===(i="function"==typeof(n=o)?n.apply(e,r):n)||(t.exports=i))}).call(this,n(72)(t))},function(t,e){},function(t,e){},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var u,c=[],f=!1,l=-1;function h(){f&&u&&(f=!1,u.length?c=u.concat(c):l=-1,c.length&&d())}function d(){if(!f){var t=s(h);f=!0;for(var e=c.length;e;){for(u=c,c=[];++l<e;)u&&u[l].run();l=-1,e=c.length}u=null,f=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function g(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new p(t,e)),1!==c.length||f||s(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,n){"use strict";var r=n(1),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.isGroup=function(){return!0},e.prototype.isEntityGroup=function(){return!1},e.prototype.clone=function(){for(var e=t.prototype.clone.call(this),n=this.getChildren(),r=0;r<n.length;r++){var i=n[r];e.add(i.clone())}return e},e}(n(137).a);e.a=i},function(t,e,n){"use strict";var r=n(1),i=n(138),o=n(39),a=function(t){function e(e){return t.call(this,e)||this}return Object(r.b)(e,t),e.prototype._isInBBox=function(t,e){var n=this.getBBox();return n.minX<=t&&n.maxX>=t&&n.minY<=e&&n.maxY>=e},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e),this.clearCacheBBox()},e.prototype.getBBox=function(){var t=this.cfg.bbox;return t||(t=this.calculateBBox(),this.set("bbox",t)),t},e.prototype.getCanvasBBox=function(){var t=this.cfg.canvasBBox;return t||(t=this.calculateCanvasBBox(),this.set("canvasBBox",t)),t},e.prototype.applyMatrix=function(e){t.prototype.applyMatrix.call(this,e),this.set("canvasBBox",null)},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),e=this.getTotalMatrix(),n=t.minX,r=t.minY,i=t.maxX,a=t.maxY;if(e){var s=Object(o.c)(e,[t.minX,t.minY]),u=Object(o.c)(e,[t.maxX,t.minY]),c=Object(o.c)(e,[t.minX,t.maxY]),f=Object(o.c)(e,[t.maxX,t.maxY]);n=Math.min(s[0],u[0],c[0],f[0]),i=Math.max(s[0],u[0],c[0],f[0]),r=Math.min(s[1],u[1],c[1],f[1]),a=Math.max(s[1],u[1],c[1],f[1])}var l=this.attrs;if(l.shadowColor){var h=l.shadowBlur,d=void 0===h?0:h,p=l.shadowOffsetX,g=void 0===p?0:p,v=l.shadowOffsetY,y=void 0===v?0:v,m=n-d+g,b=i+d+g,x=r-d+y,w=a+d+y;n=Math.min(n,m),i=Math.max(i,b),r=Math.min(r,x),a=Math.max(a,w)}return{x:n,y:r,minX:n,minY:r,maxX:i,maxY:a,width:i-n,height:a-r}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},e.prototype.isClipShape=function(){return this.get("isClipShape")},e.prototype.isInShape=function(t,e){return!1},e.prototype.isOnlyHitBox=function(){return!1},e.prototype.isHit=function(t,e){var n=this.get("startArrowShape"),r=this.get("endArrowShape"),i=[t,e,1],o=(i=this.invertFromMatrix(i))[0],a=i[1],s=this._isInBBox(o,a);if(this.isOnlyHitBox())return s;if(s&&!this.isClipped(o,a)){if(this.isInShape(o,a))return!0;if(n&&n.isHit(o,a))return!0;if(r&&r.isHit(o,a))return!0}return!1},e}(i.a);e.a=a},function(t,e,n){var r=n(286),i={};for(var o in r)r.hasOwnProperty(o)&&(i[r[o]]=o);var a=t.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var s in a)if(a.hasOwnProperty(s)){if(!("channels"in a[s]))throw new Error("missing channels property: "+s);if(!("labels"in a[s]))throw new Error("missing channel labels property: "+s);if(a[s].labels.length!==a[s].channels)throw new Error("channel and label counts mismatch: "+s);var u=a[s].channels,c=a[s].labels;delete a[s].channels,delete a[s].labels,Object.defineProperty(a[s],"channels",{value:u}),Object.defineProperty(a[s],"labels",{value:c})}a.rgb.hsl=function(t){var e,n,r=t[0]/255,i=t[1]/255,o=t[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),u=s-a;return s===a?e=0:r===s?e=(i-o)/u:i===s?e=2+(o-r)/u:o===s&&(e=4+(r-i)/u),(e=Math.min(60*e,360))<0&&(e+=360),n=(a+s)/2,[e,100*(s===a?0:n<=.5?u/(s+a):u/(2-s-a)),100*n]},a.rgb.hsv=function(t){var e,n,r,i,o,a=t[0]/255,s=t[1]/255,u=t[2]/255,c=Math.max(a,s,u),f=c-Math.min(a,s,u),l=function(t){return(c-t)/6/f+.5};return 0===f?i=o=0:(o=f/c,e=l(a),n=l(s),r=l(u),a===c?i=r-n:s===c?i=1/3+e-r:u===c&&(i=2/3+n-e),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*c]},a.rgb.hwb=function(t){var e=t[0],n=t[1],r=t[2];return[a.rgb.hsl(t)[0],100*(1/255*Math.min(e,Math.min(n,r))),100*(r=1-1/255*Math.max(e,Math.max(n,r)))]},a.rgb.cmyk=function(t){var e,n=t[0]/255,r=t[1]/255,i=t[2]/255;return[100*((1-n-(e=Math.min(1-n,1-r,1-i)))/(1-e)||0),100*((1-r-e)/(1-e)||0),100*((1-i-e)/(1-e)||0),100*e]},a.rgb.keyword=function(t){var e=i[t];if(e)return e;var n,o,a,s=1/0;for(var u in r)if(r.hasOwnProperty(u)){var c=r[u],f=(o=t,a=c,Math.pow(o[0]-a[0],2)+Math.pow(o[1]-a[1],2)+Math.pow(o[2]-a[2],2));f<s&&(s=f,n=u)}return n},a.keyword.rgb=function(t){return r[t]},a.rgb.xyz=function(t){var e=t[0]/255,n=t[1]/255,r=t[2]/255;return[100*(.4124*(e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*e+.7152*n+.0722*r),100*(.0193*e+.1192*n+.9505*r)]},a.rgb.lab=function(t){var e=a.rgb.xyz(t),n=e[0],r=e[1],i=e[2];return r/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},a.hsl.rgb=function(t){var e,n,r,i,o,a=t[0]/360,s=t[1]/100,u=t[2]/100;if(0===s)return[o=255*u,o,o];e=2*u-(n=u<.5?u*(1+s):u+s-u*s),i=[0,0,0];for(var c=0;c<3;c++)(r=a+1/3*-(c-1))<0&&r++,r>1&&r--,o=6*r<1?e+6*(n-e)*r:2*r<1?n:3*r<2?e+(n-e)*(2/3-r)*6:e,i[c]=255*o;return i},a.hsl.hsv=function(t){var e=t[0],n=t[1]/100,r=t[2]/100,i=n,o=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,i*=o<=1?o:2-o,[e,100*(0===r?2*i/(o+i):2*n/(r+n)),100*((r+n)/2)]},a.hsv.rgb=function(t){var e=t[0]/60,n=t[1]/100,r=t[2]/100,i=Math.floor(e)%6,o=e-Math.floor(e),a=255*r*(1-n),s=255*r*(1-n*o),u=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,u,a];case 1:return[s,r,a];case 2:return[a,r,u];case 3:return[a,s,r];case 4:return[u,a,r];case 5:return[r,a,s]}},a.hsv.hsl=function(t){var e,n,r,i=t[0],o=t[1]/100,a=t[2]/100,s=Math.max(a,.01);return r=(2-o)*a,n=o*s,[i,100*(n=(n/=(e=(2-o)*s)<=1?e:2-e)||0),100*(r/=2)]},a.hwb.rgb=function(t){var e,n,r,i,o,a,s,u=t[0]/360,c=t[1]/100,f=t[2]/100,l=c+f;switch(l>1&&(c/=l,f/=l),r=6*u-(e=Math.floor(6*u)),0!=(1&e)&&(r=1-r),i=c+r*((n=1-f)-c),e){default:case 6:case 0:o=n,a=i,s=c;break;case 1:o=i,a=n,s=c;break;case 2:o=c,a=n,s=i;break;case 3:o=c,a=i,s=n;break;case 4:o=i,a=c,s=n;break;case 5:o=n,a=c,s=i}return[255*o,255*a,255*s]},a.cmyk.rgb=function(t){var e=t[0]/100,n=t[1]/100,r=t[2]/100,i=t[3]/100;return[255*(1-Math.min(1,e*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},a.xyz.rgb=function(t){var e,n,r,i=t[0]/100,o=t[1]/100,a=t[2]/100;return n=-.9689*i+1.8758*o+.0415*a,r=.0557*i+-.204*o+1.057*a,e=(e=3.2406*i+-1.5372*o+-.4986*a)>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(e=Math.min(Math.max(0,e),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},a.xyz.lab=function(t){var e=t[0],n=t[1],r=t[2];return n/=100,r/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(e-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},a.lab.xyz=function(t){var e,n,r,i=t[0];e=t[1]/500+(n=(i+16)/116),r=n-t[2]/200;var o=Math.pow(n,3),a=Math.pow(e,3),s=Math.pow(r,3);return n=o>.008856?o:(n-16/116)/7.787,e=a>.008856?a:(e-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,[e*=95.047,n*=100,r*=108.883]},a.lab.lch=function(t){var e,n=t[0],r=t[1],i=t[2];return(e=360*Math.atan2(i,r)/2/Math.PI)<0&&(e+=360),[n,Math.sqrt(r*r+i*i),e]},a.lch.lab=function(t){var e,n=t[0],r=t[1];return e=t[2]/360*2*Math.PI,[n,r*Math.cos(e),r*Math.sin(e)]},a.rgb.ansi16=function(t){var e=t[0],n=t[1],r=t[2],i=1 in arguments?arguments[1]:a.rgb.hsv(t)[2];if(0===(i=Math.round(i/50)))return 30;var o=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(e/255));return 2===i&&(o+=60),o},a.hsv.ansi16=function(t){return a.rgb.ansi16(a.hsv.rgb(t),t[2])},a.rgb.ansi256=function(t){var e=t[0],n=t[1],r=t[2];return e===n&&n===r?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},a.ansi16.rgb=function(t){var e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),[e=e/10.5*255,e,e];var n=.5*(1+~~(t>50));return[(1&e)*n*255,(e>>1&1)*n*255,(e>>2&1)*n*255]},a.ansi256.rgb=function(t){if(t>=232){var e=10*(t-232)+8;return[e,e,e]}var n;return t-=16,[Math.floor(t/36)/5*255,Math.floor((n=t%36)/6)/5*255,n%6/5*255]},a.rgb.hex=function(t){var e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},a.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var n=e[0];3===e[0].length&&(n=n.split("").map((function(t){return t+t})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},a.rgb.hcg=function(t){var e,n=t[0]/255,r=t[1]/255,i=t[2]/255,o=Math.max(Math.max(n,r),i),a=Math.min(Math.min(n,r),i),s=o-a;return e=s<=0?0:o===n?(r-i)/s%6:o===r?2+(i-n)/s:4+(n-r)/s+4,e/=6,[360*(e%=1),100*s,100*(s<1?a/(1-s):0)]},a.hsl.hcg=function(t){var e=t[1]/100,n=t[2]/100,r=1,i=0;return(r=n<.5?2*e*n:2*e*(1-n))<1&&(i=(n-.5*r)/(1-r)),[t[0],100*r,100*i]},a.hsv.hcg=function(t){var e=t[1]/100,n=t[2]/100,r=e*n,i=0;return r<1&&(i=(n-r)/(1-r)),[t[0],100*r,100*i]},a.hcg.rgb=function(t){var e=t[0]/360,n=t[1]/100,r=t[2]/100;if(0===n)return[255*r,255*r,255*r];var i,o=[0,0,0],a=e%1*6,s=a%1,u=1-s;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=u,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=u,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=u}return i=(1-n)*r,[255*(n*o[0]+i),255*(n*o[1]+i),255*(n*o[2]+i)]},a.hcg.hsv=function(t){var e=t[1]/100,n=e+t[2]/100*(1-e),r=0;return n>0&&(r=e/n),[t[0],100*r,100*n]},a.hcg.hsl=function(t){var e=t[1]/100,n=t[2]/100*(1-e)+.5*e,r=0;return n>0&&n<.5?r=e/(2*n):n>=.5&&n<1&&(r=e/(2*(1-n))),[t[0],100*r,100*n]},a.hcg.hwb=function(t){var e=t[1]/100,n=e+t[2]/100*(1-e);return[t[0],100*(n-e),100*(1-n)]},a.hwb.hcg=function(t){var e=t[1]/100,n=1-t[2]/100,r=n-e,i=0;return r<1&&(i=(n-r)/(1-r)),[t[0],100*r,100*i]},a.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},a.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},a.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},a.gray.hsl=a.gray.hsv=function(t){return[0,0,t[0]]},a.gray.hwb=function(t){return[0,100,t[0]]},a.gray.cmyk=function(t){return[0,0,0,t[0]]},a.gray.lab=function(t){return[t[0],0,0]},a.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n},a.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}},function(t,e,n){var r=n(97),i=n(145),o=n(102),a=n(319),s=n(325),u=n(184),c=n(185),f=n(328),l=n(329),h=n(189),d=n(330),p=n(76),g=n(334),v=n(335),y=n(194),m=n(29),b=n(75),x=n(339),w=n(43),S=n(341),E=n(60),_=n(66),O={};O["[object Arguments]"]=O["[object Array]"]=O["[object ArrayBuffer]"]=O["[object DataView]"]=O["[object Boolean]"]=O["[object Date]"]=O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Map]"]=O["[object Number]"]=O["[object Object]"]=O["[object RegExp]"]=O["[object Set]"]=O["[object String]"]=O["[object Symbol]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O["[object Error]"]=O["[object Function]"]=O["[object WeakMap]"]=!1,t.exports=function t(e,n,k,M,A,T){var C,I=1&n,P=2&n,j=4&n;if(k&&(C=A?k(e,M,A,T):k(e)),void 0!==C)return C;if(!w(e))return e;var D=m(e);if(D){if(C=g(e),!I)return c(e,C)}else{var N=p(e),R="[object Function]"==N||"[object GeneratorFunction]"==N;if(b(e))return u(e,I);if("[object Object]"==N||"[object Arguments]"==N||R&&!A){if(C=P||R?{}:y(e),!I)return P?l(e,s(C,e)):f(e,a(C,e))}else{if(!O[N])return A?e:{};C=v(e,N,I)}}T||(T=new r);var L=T.get(e);if(L)return L;T.set(e,C),S(e)?e.forEach((function(r){C.add(t(r,n,k,r,e,T))})):x(e)&&e.forEach((function(r,i){C.set(i,t(r,n,k,i,e,T))}));var B=D?void 0:(j?P?d:h:P?_:E)(e);return i(B||e,(function(r,i){B&&(r=e[i=r]),o(C,i,t(r,n,k,i,e,T))})),C}},function(t,e,n){(function(e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r="object"==(void 0===e?"undefined":n(e))&&e&&e.Object===Object&&e;t.exports=r}).call(this,n(179))},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":n(window))&&(r=window)}t.exports=r},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,n){var r=n(65),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},function(t,e,n){var r=n(320),i=n(88),o=n(29),a=n(75),s=n(104),u=n(32),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),f=!n&&i(t),l=!n&&!f&&a(t),h=!n&&!f&&!l&&u(t),d=n||f||l||h,p=d?r(t.length,String):[],g=p.length;for(var v in t)!e&&!c.call(t,v)||d&&("length"==v||l&&("offset"==v||"parent"==v)||h&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,g))||p.push(v);return p}},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){(function(t){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=n(45),o="object"==r(e)&&e&&!e.nodeType&&e,a=o&&"object"==r(t)&&t&&!t.nodeType&&t,s=a&&a.exports===o?i.Buffer:void 0,u=s?s.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=u?u(n):new t.constructor(n);return t.copy(r),r}}).call(this,n(72)(t))},function(t,e){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}},function(t,e){t.exports=function(){return[]}},function(t,e,n){var r=n(150),i=n(107),o=n(149),a=n(187),s=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,o(t)),t=i(t);return e}:a;t.exports=s},function(t,e,n){var r=n(190),i=n(149),o=n(60);t.exports=function(t){return r(t,o,i)}},function(t,e,n){var r=n(150),i=n(29);t.exports=function(t,e,n){var o=e(t);return i(t)?o:r(o,n(t))}},function(t,e,n){var r=n(65)(n(45),"Set");t.exports=r},function(t,e,n){var r=n(45).Uint8Array;t.exports=r},function(t,e,n){var r=n(151);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},function(t,e,n){var r=n(195),i=n(107),o=n(106);t.exports=function(t){return"function"!=typeof t.constructor||o(t)?{}:r(i(t))}},function(t,e,n){var r=n(43),i=Object.create,o=function(){function t(){}return function(e){if(!r(e))return{};if(i)return i(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=o},function(t,e,n){t.exports=n(197)},function(t,e,n){var r=n(145),i=n(108),o=n(198),a=n(29);t.exports=function(t,e){return(a(t)?r:i)(t,o(e))}},function(t,e,n){var r=n(67);t.exports=function(t){return"function"==typeof t?t:r}},function(t,e,n){var r=n(186),i=n(345),o=n(55),a=n(29);t.exports=function(t,e){return(a(t)?r:i)(t,o(e,3))}},function(t,e,n){var r=n(348),i=n(46);t.exports=function t(e,n,o,a,s){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,o,a,t,s))}},function(t,e,n){var r=n(202),i=n(351),o=n(203);t.exports=function(t,e,n,a,s,u){var c=1&n,f=t.length,l=e.length;if(f!=l&&!(c&&l>f))return!1;var h=u.get(t),d=u.get(e);if(h&&d)return h==e&&d==t;var p=-1,g=!0,v=2&n?new r:void 0;for(u.set(t,e),u.set(e,t);++p<f;){var y=t[p],m=e[p];if(a)var b=c?a(m,y,p,e,t,u):a(y,m,p,t,e,u);if(void 0!==b){if(b)continue;g=!1;break}if(v){if(!i(e,(function(t,e){if(!o(v,e)&&(y===t||s(y,t,n,a,u)))return v.push(e)}))){g=!1;break}}else if(y!==m&&!s(y,m,n,a,u)){g=!1;break}}return u.delete(t),u.delete(e),g}},function(t,e,n){var r=n(144),i=n(349),o=n(350);function a(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,t.exports=a},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,n){var r=n(43);t.exports=function(t){return t==t&&!r(t)}},function(t,e){t.exports=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}},function(t,e,n){var r=n(361);t.exports=function(t){return null==t?"":r(t)}},function(t,e,n){var r=n(362),i=n(208);t.exports=function(t,e){return null!=t&&i(t,e,r)}},function(t,e,n){var r=n(110),i=n(88),o=n(29),a=n(104),s=n(146),u=n(89);t.exports=function(t,e,n){for(var c=-1,f=(e=r(e,t)).length,l=!1;++c<f;){var h=u(e[c]);if(!(l=null!=t&&n(t,h)))break;t=t[h]}return l||++c!=f?l:!!(f=null==t?0:t.length)&&s(f)&&a(h,f)&&(o(t)||i(t))}},function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},function(t,e,n){var r=n(365),i=n(208);t.exports=function(t,e){return null!=t&&i(t,e,r)}},function(t,e){t.exports=function(t){return void 0===t}},function(t,e,n){var r=n(111),i=n(55),o=n(213),a=n(29);t.exports=function(t,e){return(a(t)?r:o)(t,i(e,3))}},function(t,e,n){var r=n(108),i=n(54);t.exports=function(t,e){var n=-1,o=i(t)?Array(t.length):[];return r(t,(function(t,r,i){o[++n]=e(t,r,i)})),o}},function(t,e,n){var r=n(367),i=n(108),o=n(55),a=n(368),s=n(29);t.exports=function(t,e,n){var u=s(t)?r:a,c=arguments.length<3;return u(t,o(e,4),n,c,i)}},function(t,e,n){var r=n(378),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=i(o.length-e,0),u=Array(s);++a<s;)u[a]=o[e+a];a=-1;for(var c=Array(e+1);++a<e;)c[a]=o[a];return c[e]=n(u),r(t,this,c)}}},function(t,e,n){var r=n(379),i=n(380)(r);t.exports=i},function(t,e,n){var r=n(202),i=n(381),o=n(385),a=n(203),s=n(386),u=n(155);t.exports=function(t,e,n){var c=-1,f=i,l=t.length,h=!0,d=[],p=d;if(n)h=!1,f=o;else if(l>=200){var g=e?null:s(t);if(g)return u(g);h=!1,f=a,p=new r}else p=e?[]:d;t:for(;++c<l;){var v=t[c],y=e?e(v):v;if(v=n||0!==v?v:0,h&&y==y){for(var m=p.length;m--;)if(p[m]===y)continue t;e&&p.push(y),d.push(v)}else f(p,y,n)||(p!==d&&p.push(y),d.push(v))}return d}},function(t,e){t.exports=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}},function(t,e,n){var r=n(54),i=n(46);t.exports=function(t){return i(t)&&r(t)}},function(t,e,n){var r=n(388),i=n(60);t.exports=function(t){return null==t?[]:r(t,i(t))}},function(t,e,n){var r=n(42),i=n(222);t.exports=function(t,e,n,r){return function(t,e,n,r){var o,a,s={},u=new i,c=function(t){var e=t.v!==o?t.v:t.w,r=s[e],i=n(t),c=a.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+i);c<r.distance&&(r.distance=c,r.predecessor=o,u.decrease(e,c))};t.nodes().forEach((function(t){var n=t===e?0:Number.POSITIVE_INFINITY;s[t]={distance:n},u.add(t,n)}));for(;u.size()>0&&(o=u.removeMin(),(a=s[o]).distance!==Number.POSITIVE_INFINITY);)r(o).forEach(c);return s}(t,String(e),n||o,r||function(e){return t.outEdges(e)})};var o=r.constant(1)},function(t,e,n){var r=n(42);function i(){this._arr=[],this._keyIndices={}}t.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map((function(t){return t.key}))},i.prototype.has=function(t){return r.has(this._keyIndices,t)},i.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!r.has(n,t)){var i=this._arr,o=i.length;return n[t]=o,i.push({key:t,priority:e}),this._decrease(o),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},i.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},i.prototype._heapify=function(t){var e=this._arr,n=2*t,r=n+1,i=t;n<e.length&&(i=e[n].priority<e[i].priority?n:i,r<e.length&&(i=e[r].priority<e[i].priority?r:i),i!==t&&(this._swap(t,i),this._heapify(i)))},i.prototype._decrease=function(t){for(var e,n=this._arr,r=n[t].priority;0!==t&&!(n[e=t>>1].priority<r);)this._swap(t,e),t=e},i.prototype._swap=function(t,e){var n=this._arr,r=this._keyIndices,i=n[t],o=n[e];n[t]=o,n[e]=i,r[o.key]=t,r[i.key]=e}},function(t,e,n){var r=n(42);t.exports=function(t){var e=0,n=[],i={},o=[];return t.nodes().forEach((function(a){r.has(i,a)||function a(s){var u=i[s]={onStack:!0,lowlink:e,index:e++};if(n.push(s),t.successors(s).forEach((function(t){r.has(i,t)?i[t].onStack&&(u.lowlink=Math.min(u.lowlink,i[t].index)):(a(t),u.lowlink=Math.min(u.lowlink,i[t].lowlink))})),u.lowlink===u.index){var c,f=[];do{c=n.pop(),i[c].onStack=!1,f.push(c)}while(s!==c);o.push(f)}}(a)})),o}},function(t,e,n){var r=n(42);function i(t){var e={},n={},i=[];if(r.each(t.sinks(),(function a(s){if(r.has(n,s))throw new o;r.has(e,s)||(n[s]=!0,e[s]=!0,r.each(t.predecessors(s),a),delete n[s],i.push(s))})),r.size(e)!==t.nodeCount())throw new o;return i}function o(){}t.exports=i,i.CycleException=o,o.prototype=new Error},function(t,e,n){var r=n(42);t.exports=function(t,e,n){r.isArray(e)||(e=[e]);var i=(t.isDirected()?t.successors:t.neighbors).bind(t),o=[],a={};return r.each(e,(function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);!function t(e,n,i,o,a,s){r.has(o,n)||(o[n]=!0,i||s.push(n),r.each(a(n),(function(n){t(e,n,i,o,a,s)})),i&&s.push(n))}(t,e,"post"===n,a,i,o)})),o}},function(t,e,n){var r=n(407);t.exports=function(t){return t?(t=r(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},function(t,e,n){var r=n(157);t.exports=function(t){return(null==t?0:t.length)?r(t,1):[]}},function(t,e,n){var r=n(103),i=n(73);t.exports=function(t,e,n){(void 0!==n&&!i(t[e],n)||void 0===n&&!(e in t))&&r(t,e,n)}},function(t,e){t.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}},function(t,e){t.exports=function(t,e){return t<e}},function(t,e,n){"use strict";var r=n(27),i=n(44).Graph,o=n(114).slack;function a(t,e){return r.forEach(t.nodes(),(function n(i){r.forEach(e.nodeEdges(i),(function(r){var a=r.v,s=i===a?r.w:a;t.hasNode(s)||o(e,r)||(t.setNode(s,{}),t.setEdge(i,s,{}),n(s))}))})),t.nodeCount()}function s(t,e){return r.minBy(e.edges(),(function(n){if(t.hasNode(n.v)!==t.hasNode(n.w))return o(e,n)}))}function u(t,e,n){r.forEach(t.nodes(),(function(t){e.node(t).rank+=n}))}t.exports=function(t){var e,n,r=new i({directed:!1}),c=t.nodes()[0],f=t.nodeCount();r.setNode(c,{});for(;a(r,t)<f;)e=s(r,t),n=r.hasNode(e.v)?o(t,e):-o(t,e),u(r,t,n);return r}},function(t,e,n){(function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}\r\n/*! *****************************************************************************\r\nCopyright (C) Microsoft. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */var r;!function(r){!function(i){var o="object"===(void 0===e?"undefined":n(e))?e:"object"===("undefined"==typeof self?"undefined":n(self))?self:"object"===n(this)?this:Function("return this;")(),a=s(r);function s(t,e){return function(n,r){"function"!=typeof t[n]&&Object.defineProperty(t,n,{configurable:!0,writable:!0,value:r}),e&&e(n,r)}}void 0===o.Reflect?o.Reflect=r:a=s(o.Reflect,a),function(e){var r=Object.prototype.hasOwnProperty,i="function"==typeof Symbol,o=i&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",a=i&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",s="function"==typeof Object.create,u={__proto__:[]}instanceof Array,c=!s&&!u,f={create:s?function(){return D(Object.create(null))}:u?function(){return D({__proto__:null})}:function(){return D({})},has:c?function(t,e){return r.call(t,e)}:function(t,e){return e in t},get:c?function(t,e){return r.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},l=Object.getPrototypeOf(Function),h="object"===(void 0===t?"undefined":n(t))&&t.env&&"true"===t.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=h||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var t={},e=[],n=function(){function t(t,e,n){this._index=0,this._keys=t,this._values=e,this._selector=n}return t.prototype["@@iterator"]=function(){return this},t.prototype[a]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var n=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var n=this._find(t,!0);return this._values[n]=e,this},e.prototype.delete=function(e){var n=this._find(e,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i<r;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,e===this._cacheKey&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new n(this._keys,this._values,r)},e.prototype.values=function(){return new n(this._keys,this._values,i)},e.prototype.entries=function(){return new n(this._keys,this._values,o)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[a]=function(){return this.entries()},e.prototype._find=function(t,e){return this._cacheKey!==t&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=t)),this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function r(t,e){return t}function i(t,e){return e}function o(t,e){return[t,e]}}():Map,p=h||"function"!=typeof Set||"function"!=typeof Set.prototype.entries?function(){function t(){this._map=new d}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.values()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[a]=function(){return this.keys()},t}():Set,g=new(h||"function"!=typeof WeakMap?function(){var t=f.create(),e=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=i(t,!1);return void 0!==e&&f.has(e,this._key)},t.prototype.get=function(t){var e=i(t,!1);return void 0!==e?f.get(e,this._key):void 0},t.prototype.set=function(t,e){return i(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=i(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=n()},t}();function n(){var e;do{e="@@WeakMap@@"+a()}while(f.has(t,e));return t[e]=!0,e}function i(t,n){if(!r.call(t,e)){if(!n)return;Object.defineProperty(t,e,{value:f.create()})}return t[e]}function o(t,e){for(var n=0;n<e;++n)t[n]=255*Math.random()|0;return t}function a(){var t,e=(t=16,"function"==typeof Uint8Array?"undefined"!=typeof crypto?crypto.getRandomValues(new Uint8Array(t)):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(t)):o(new Uint8Array(t),t):o(new Array(t),t));e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var n="",r=0;r<16;++r){var i=e[r];4!==r&&6!==r&&8!==r||(n+="-"),i<16&&(n+="0"),n+=i.toString(16).toLowerCase()}return n}}():WeakMap);function v(t,e,n){var r=g.get(t);if(S(r)){if(!n)return;r=new d,g.set(t,r)}var i=r.get(e);if(S(i)){if(!n)return;i=new d,r.set(e,i)}return i}function y(t,e,n){var r=v(e,n,!1);return!S(r)&&!!r.has(t)}function m(t,e,n){var r=v(e,n,!1);if(!S(r))return r.get(t)}function b(t,e,n,r){v(n,r,!0).set(t,e)}function x(t,e){var n=[],r=v(t,e,!1);if(S(r))return n;for(var i=function(t){var e=C(t,a);if(!A(e))throw new TypeError;var n=e.call(t);if(!_(n))throw new TypeError;return n}(r.keys()),o=0;;){var s=I(i);if(!s)return n.length=o,n;var u=s.value;try{n[o]=u}catch(t){try{P(i)}finally{throw t}}o++}}function w(t){if(null===t)return 1;switch(n(t)){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function S(t){return void 0===t}function E(t){return null===t}function _(t){return"object"===n(t)?null!==t:"function"==typeof t}function O(t,e){switch(w(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var n=3===e?"string":5===e?"number":"default",r=C(t,o);if(void 0!==r){var i=r.call(t,n);if(_(i))throw new TypeError;return i}return function(t,e){if("string"===e){var n=t.toString;if(A(n))if(!_(i=n.call(t)))return i;if(A(r=t.valueOf))if(!_(i=r.call(t)))return i}else{var r;if(A(r=t.valueOf))if(!_(i=r.call(t)))return i;var i,o=t.toString;if(A(o))if(!_(i=o.call(t)))return i}throw new TypeError}(t,"default"===n?"number":n)}function k(t){var e=O(t,3);return"symbol"===n(e)?e:function(t){return""+t}(e)}function M(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function A(t){return"function"==typeof t}function T(t){return"function"==typeof t}function C(t,e){var n=t[e];if(null!=n){if(!A(n))throw new TypeError;return n}}function I(t){var e=t.next();return!e.done&&e}function P(t){var e=t.return;e&&e.call(t)}function j(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===l)return e;if(e!==l)return e;var n=t.prototype,r=n&&Object.getPrototypeOf(n);if(null==r||r===Object.prototype)return e;var i=r.constructor;return"function"!=typeof i||i===t?e:i}function D(t){return t.__=void 0,delete t.__,t}e("decorate",(function(t,e,n,r){if(S(n)){if(!M(t))throw new TypeError;if(!T(e))throw new TypeError;return function(t,e){for(var n=t.length-1;n>=0;--n){var r=(0,t[n])(e);if(!S(r)&&!E(r)){if(!T(r))throw new TypeError;e=r}}return e}(t,e)}if(!M(t))throw new TypeError;if(!_(e))throw new TypeError;if(!_(r)&&!S(r)&&!E(r))throw new TypeError;return E(r)&&(r=void 0),function(t,e,n,r){for(var i=t.length-1;i>=0;--i){var o=(0,t[i])(e,n,r);if(!S(o)&&!E(o)){if(!_(o))throw new TypeError;r=o}}return r}(t,e,n=k(n),r)})),e("metadata",(function(t,e){return function(n,r){if(!_(n))throw new TypeError;if(!S(r)&&!function(t){switch(w(t)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;b(t,e,n,r)}})),e("defineMetadata",(function(t,e,n,r){if(!_(n))throw new TypeError;return S(r)||(r=k(r)),b(t,e,n,r)})),e("hasMetadata",(function(t,e,n){if(!_(e))throw new TypeError;return S(n)||(n=k(n)),function t(e,n,r){if(y(e,n,r))return!0;var i=j(n);return!E(i)&&t(e,i,r)}(t,e,n)})),e("hasOwnMetadata",(function(t,e,n){if(!_(e))throw new TypeError;return S(n)||(n=k(n)),y(t,e,n)})),e("getMetadata",(function(t,e,n){if(!_(e))throw new TypeError;return S(n)||(n=k(n)),function t(e,n,r){if(y(e,n,r))return m(e,n,r);var i=j(n);return E(i)?void 0:t(e,i,r)}(t,e,n)})),e("getOwnMetadata",(function(t,e,n){if(!_(e))throw new TypeError;return S(n)||(n=k(n)),m(t,e,n)})),e("getMetadataKeys",(function(t,e){if(!_(t))throw new TypeError;return S(e)||(e=k(e)),function t(e,n){var r=x(e,n),i=j(e);if(null===i)return r;var o=t(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var a=new p,s=[],u=0,c=r;u<c.length;u++){var f=c[u];a.has(f)||(a.add(f),s.push(f))}for(var l=0,h=o;l<h.length;l++){f=h[l];a.has(f)||(a.add(f),s.push(f))}return s}(t,e)})),e("getOwnMetadataKeys",(function(t,e){if(!_(t))throw new TypeError;return S(e)||(e=k(e)),x(t,e)})),e("deleteMetadata",(function(t,e,n){if(!_(e))throw new TypeError;S(n)||(n=k(n));var r=v(e,n,!1);if(S(r))return!1;if(!r.delete(t))return!1;if(r.size>0)return!0;var i=g.get(e);return i.delete(n),i.size>0||g.delete(e),!0}))}(a)}()}(r||(r={}))}).call(this,n(173),n(179))},function(t,e,n){var r=n(234);t.exports=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}},function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MetadataReader=void 0;var r=n(31),i=function(){function t(){}return t.prototype.getConstructorMetadata=function(t){return{compilerGeneratedMetadata:Reflect.getMetadata(r.PARAM_TYPES,t),userGeneratedMetadata:Reflect.getMetadata(r.TAGGED,t)||{}}},t.prototype.getPropertiesMetadata=function(t){return Reflect.getMetadata(r.TAGGED_PROP,t)||[]},t}();e.MetadataReader=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isStackOverflowExeption=void 0;var r=n(41);e.isStackOverflowExeption=function(t){return t instanceof RangeError||t.message===r.STACK_OVERFLOW}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.inject=e.LazyServiceIdentifer=void 0;var r=n(41),i=n(31),o=n(47),a=n(61),s=function(){function t(t){this._cb=t}return t.prototype.unwrap=function(){return this._cb()},t}();e.LazyServiceIdentifer=s,e.inject=function(t){return function(e,n,s){if(void 0===t)throw new Error(r.UNDEFINED_INJECT_ANNOTATION(e.name));var u=new o.Metadata(i.INJECT_TAG,t);"number"==typeof s?a.tagParameter(e,n,s,u):a.tagProperty(e,n,u)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Target=void 0;var r=n(31),i=n(68),o=n(47),a=n(473),s=function(){function t(t,e,n,s){this.id=i.id(),this.type=t,this.serviceIdentifier=n,this.name=new a.QueryableString(e||""),this.metadata=new Array;var u=null;"string"==typeof s?u=new o.Metadata(r.NAMED_TAG,s):s instanceof o.Metadata&&(u=s),null!==u&&this.metadata.push(u)}return t.prototype.hasTag=function(t){for(var e=0,n=this.metadata;e<n.length;e++){if(n[e].key===t)return!0}return!1},t.prototype.isArray=function(){return this.hasTag(r.MULTI_INJECT_TAG)},t.prototype.matchesArray=function(t){return this.matchesTag(r.MULTI_INJECT_TAG)(t)},t.prototype.isNamed=function(){return this.hasTag(r.NAMED_TAG)},t.prototype.isTagged=function(){return this.metadata.some((function(t){return t.key!==r.INJECT_TAG&&t.key!==r.MULTI_INJECT_TAG&&t.key!==r.NAME_TAG&&t.key!==r.UNMANAGED_TAG&&t.key!==r.NAMED_TAG}))},t.prototype.isOptional=function(){return this.matchesTag(r.OPTIONAL_TAG)(!0)},t.prototype.getNamedTag=function(){return this.isNamed()?this.metadata.filter((function(t){return t.key===r.NAMED_TAG}))[0]:null},t.prototype.getCustomTags=function(){return this.isTagged()?this.metadata.filter((function(t){return t.key!==r.INJECT_TAG&&t.key!==r.MULTI_INJECT_TAG&&t.key!==r.NAME_TAG&&t.key!==r.UNMANAGED_TAG&&t.key!==r.NAMED_TAG})):null},t.prototype.matchesNamedTag=function(t){return this.matchesTag(r.NAMED_TAG)(t)},t.prototype.matchesTag=function(t){var e=this;return function(n){for(var r=0,i=e.metadata;r<i.length;r++){var o=i[r];if(o.key===t&&o.value===n)return!0}return!1}},t}();e.Target=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BindingWhenOnSyntax=void 0;var r=n(159),i=n(160),o=function(){function t(t){this._binding=t,this._bindingWhenSyntax=new i.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new r.BindingOnSyntax(this._binding)}return t.prototype.when=function(t){return this._bindingWhenSyntax.when(t)},t.prototype.whenTargetNamed=function(t){return this._bindingWhenSyntax.whenTargetNamed(t)},t.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},t.prototype.whenTargetTagged=function(t,e){return this._bindingWhenSyntax.whenTargetTagged(t,e)},t.prototype.whenInjectedInto=function(t){return this._bindingWhenSyntax.whenInjectedInto(t)},t.prototype.whenParentNamed=function(t){return this._bindingWhenSyntax.whenParentNamed(t)},t.prototype.whenParentTagged=function(t,e){return this._bindingWhenSyntax.whenParentTagged(t,e)},t.prototype.whenAnyAncestorIs=function(t){return this._bindingWhenSyntax.whenAnyAncestorIs(t)},t.prototype.whenNoAncestorIs=function(t){return this._bindingWhenSyntax.whenNoAncestorIs(t)},t.prototype.whenAnyAncestorNamed=function(t){return this._bindingWhenSyntax.whenAnyAncestorNamed(t)},t.prototype.whenAnyAncestorTagged=function(t,e){return this._bindingWhenSyntax.whenAnyAncestorTagged(t,e)},t.prototype.whenNoAncestorNamed=function(t){return this._bindingWhenSyntax.whenNoAncestorNamed(t)},t.prototype.whenNoAncestorTagged=function(t,e){return this._bindingWhenSyntax.whenNoAncestorTagged(t,e)},t.prototype.whenAnyAncestorMatches=function(t){return this._bindingWhenSyntax.whenAnyAncestorMatches(t)},t.prototype.whenNoAncestorMatches=function(t){return this._bindingWhenSyntax.whenNoAncestorMatches(t)},t.prototype.onActivation=function(t){return this._bindingOnSyntax.onActivation(t)},t}();e.BindingWhenOnSyntax=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.typeConstraint=e.namedConstraint=e.taggedConstraint=e.traverseAncerstors=void 0;var r=n(31),i=n(47);e.traverseAncerstors=function t(e,n){var r=e.parentRequest;return null!==r&&(!!n(r)||t(r,n))};var o=function(t){return function(e){var n=function(n){return null!==n&&null!==n.target&&n.target.matchesTag(t)(e)};return n.metaData=new i.Metadata(t,e),n}};e.taggedConstraint=o;var a=o(r.NAMED_TAG);e.namedConstraint=a;e.typeConstraint=function(t){return function(e){var n=null;if(null!==e){if(n=e.bindings[0],"string"==typeof t)return n.serviceIdentifier===t;var r=e.bindings[0].implementationType;return t===r}return!1}}},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(2),i=n(80);function o(t){for(var e=new i.a,n=r.e.fromValues(t[0],t[1],t[2]),o=r.e.fromValues(t[0],t[1],t[2]),a=3;a<t.length;){var s=t[a++],u=t[a++],c=t[a++];s<n[0]&&(n[0]=s),u<n[1]&&(n[1]=u),c<n[2]&&(n[2]=c),s>o[0]&&(o[0]=s),u>o[1]&&(o[1]=u),c>o[2]&&(o[2]=c)}return e.setMinMax(n,o),e}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r="undefined"!=typeof navigator&&/Version\\/[\\d\\.]+.*Safari/.test(navigator.userAgent)},function(t,e,n){"use strict";var r=n(249);n.o(r,"AABB")&&n.d(e,"AABB",(function(){return r.AABB})),n.o(r,"Frustum")&&n.d(e,"Frustum",(function(){return r.Frustum}));n(270);var i=n(251);n.o(i,"AABB")&&n.d(e,"AABB",(function(){return i.AABB})),n.o(i,"Frustum")&&n.d(e,"Frustum",(function(){return i.Frustum}))},function(t,e,n){"use strict";n(132);var r=n(250);n.o(r,"AABB")&&n.d(e,"AABB",(function(){return r.AABB})),n.o(r,"Frustum")&&n.d(e,"Frustum",(function(){return r.Frustum}))},function(t,e){},function(t,e,n){"use strict";var r=n(252);n.o(r,"AABB")&&n.d(e,"AABB",(function(){return r.AABB})),n.o(r,"Frustum")&&n.d(e,"Frustum",(function(){return r.Frustum}));n(135)},function(t,e){},function(t,e){t.exports=1e-6},function(t,e){t.exports=function(){var t=new Float32Array(2);return t[0]=0,t[1]=0,t}},function(t,e){t.exports=function(t,e,n){return t[0]=e,t[1]=n,t}},function(t,e){t.exports=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}},function(t,e){t.exports=function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}},function(t,e){t.exports=function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}},function(t,e){t.exports=function(t,e){var n=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(n*n+r*r)}},function(t,e){t.exports=function(t,e){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}},function(t,e){t.exports=function(t){var e=t[0],n=t[1];return Math.sqrt(e*e+n*n)}},function(t,e){t.exports=function(t){var e=t[0],n=t[1];return e*e+n*n}},function(t,e){t.exports=function(t,e){var n=e[0],r=e[1],i=n*n+r*r;i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i);return t}},function(t,e){t.exports=function(t,e){return t[0]*e[0]+t[1]*e[1]}},function(t,e,n){"use strict";var r={};n.r(r),n.d(r,"easeLinear",(function(){return M})),n.d(r,"easeQuad",(function(){return C})),n.d(r,"easeQuadIn",(function(){return A})),n.d(r,"easeQuadOut",(function(){return T})),n.d(r,"easeQuadInOut",(function(){return C})),n.d(r,"easeCubic",(function(){return j})),n.d(r,"easeCubicIn",(function(){return I})),n.d(r,"easeCubicOut",(function(){return P})),n.d(r,"easeCubicInOut",(function(){return j})),n.d(r,"easePoly",(function(){return R})),n.d(r,"easePolyIn",(function(){return D})),n.d(r,"easePolyOut",(function(){return N})),n.d(r,"easePolyInOut",(function(){return R})),n.d(r,"easeSin",(function(){return U})),n.d(r,"easeSinIn",(function(){return G})),n.d(r,"easeSinOut",(function(){return F})),n.d(r,"easeSinInOut",(function(){return U})),n.d(r,"easeExp",(function(){return X})),n.d(r,"easeExpIn",(function(){return V})),n.d(r,"easeExpOut",(function(){return W})),n.d(r,"easeExpInOut",(function(){return X})),n.d(r,"easeCircle",(function(){return q})),n.d(r,"easeCircleIn",(function(){return Y})),n.d(r,"easeCircleOut",(function(){return H})),n.d(r,"easeCircleInOut",(function(){return q})),n.d(r,"easeBounce",(function(){return Q})),n.d(r,"easeBounceIn",(function(){return Z})),n.d(r,"easeBounceOut",(function(){return Q})),n.d(r,"easeBounceInOut",(function(){return J})),n.d(r,"easeBack",(function(){return et})),n.d(r,"easeBackIn",(function(){return $})),n.d(r,"easeBackOut",(function(){return tt})),n.d(r,"easeBackInOut",(function(){return et})),n.d(r,"easeElastic",(function(){return it})),n.d(r,"easeElasticIn",(function(){return rt})),n.d(r,"easeElasticOut",(function(){return it})),n.d(r,"easeElasticInOut",(function(){return ot}));var i=n(1),o=n(139),a=n(137),s=n(19),u=n(0);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var f,l,h=0,d=0,p=0,g=0,v=0,y=0,m="object"===("undefined"==typeof performance?"undefined":c(performance))&&performance.now?performance:Date,b="object"===("undefined"==typeof window?"undefined":c(window))&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function x(){return v||(b(w),v=m.now()+y)}function w(){v=0}function S(){this._call=this._time=this._next=null}function E(t,e,n){var r=new S;return r.restart(t,e,n),r}function _(){v=(g=m.now())+y,h=d=0;try{!function(){x(),++h;for(var t,e=f;e;)(t=v-e._time)>=0&&e._call.call(null,t),e=e._next;--h}()}finally{h=0,function(){var t,e,n=f,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:f=e);l=t,k(r)}(),v=0}}function O(){var t=m.now(),e=t-g;e>1e3&&(y-=e,g=t)}function k(t){h||(d&&(d=clearTimeout(d)),t-v>24?(t<1/0&&(d=setTimeout(_,t-m.now()-y)),p&&(p=clearInterval(p))):(p||(g=m.now(),p=setInterval(O,1e3)),h=1,b(_)))}function M(t){return+t}function A(t){return t*t}function T(t){return t*(2-t)}function C(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function I(t){return t*t*t}function P(t){return--t*t*t+1}function j(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}S.prototype=E.prototype={constructor:S,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?x():+n)+(null==e?0:+e),this._next||l===this||(l?l._next=this:f=this,l=this),this._call=t,this._time=n,k()},stop:function(){this._call&&(this._call=null,this._time=1/0,k())}};var D=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),N=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),R=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),L=Math.PI,B=L/2;function G(t){return 1==+t?1:1-Math.cos(t*B)}function F(t){return Math.sin(t*B)}function U(t){return(1-Math.cos(L*t))/2}function z(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function V(t){return z(1-+t)}function W(t){return 1-z(t)}function X(t){return((t*=2)<=1?z(1-t):2-z(t-1))/2}function Y(t){return 1-Math.sqrt(1-t*t)}function H(t){return Math.sqrt(1- --t*t)}function q(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var K=7.5625;function Z(t){return 1-Q(1-t)}function Q(t){return(t=+t)<4/11?K*t*t:t<8/11?K*(t-=6/11)*t+3/4:t<10/11?K*(t-=9/11)*t+15/16:K*(t-=21/22)*t+63/64}function J(t){return((t*=2)<=1?1-Q(1-t):Q(t-1)+1)/2}var $=function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(1.70158),tt=function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(1.70158),et=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(1.70158),nt=2*Math.PI,rt=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=nt);function i(t){return e*z(- --t)*Math.sin((r-t)/n)}return i.amplitude=function(e){return t(e,n*nt)},i.period=function(n){return t(e,n)},i}(1,.3),it=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=nt);function i(t){return 1-e*z(t=+t)*Math.sin((t+r)/n)}return i.amplitude=function(e){return t(e,n*nt)},i.period=function(n){return t(e,n)},i}(1,.3),ot=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=nt);function i(t){return((t=2*t-1)<0?e*z(-t)*Math.sin((r-t)/n):2-e*z(t)*Math.sin((r+t)/n))/2}return i.amplitude=function(e){return t(e,n*nt)},i.period=function(n){return t(e,n)},i}(1,.3),at=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function st(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function ut(){}var ct="\\\\s*([+-]?\\\\d+)\\\\s*",ft="\\\\s*([+-]?\\\\d*\\\\.?\\\\d+(?:[eE][+-]?\\\\d+)?)\\\\s*",lt="\\\\s*([+-]?\\\\d*\\\\.?\\\\d+(?:[eE][+-]?\\\\d+)?)%\\\\s*",ht=/^#([0-9a-f]{3,8})$/,dt=new RegExp("^rgb\\\\("+[ct,ct,ct]+"\\\\)$"),pt=new RegExp("^rgb\\\\("+[lt,lt,lt]+"\\\\)$"),gt=new RegExp("^rgba\\\\("+[ct,ct,ct,ft]+"\\\\)$"),vt=new RegExp("^rgba\\\\("+[lt,lt,lt,ft]+"\\\\)$"),yt=new RegExp("^hsl\\\\("+[ft,lt,lt]+"\\\\)$"),mt=new RegExp("^hsla\\\\("+[ft,lt,lt,ft]+"\\\\)$"),bt={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function xt(){return this.rgb().formatHex()}function wt(){return this.rgb().formatRgb()}function St(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=ht.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Et(e):3===n?new Mt(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?_t(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?_t(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=dt.exec(t))?new Mt(e[1],e[2],e[3],1):(e=pt.exec(t))?new Mt(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=gt.exec(t))?_t(e[1],e[2],e[3],e[4]):(e=vt.exec(t))?_t(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=yt.exec(t))?It(e[1],e[2]/100,e[3]/100,1):(e=mt.exec(t))?It(e[1],e[2]/100,e[3]/100,e[4]):bt.hasOwnProperty(t)?Et(bt[t]):"transparent"===t?new Mt(NaN,NaN,NaN,0):null}function Et(t){return new Mt(t>>16&255,t>>8&255,255&t,1)}function _t(t,e,n,r){return r<=0&&(t=e=n=NaN),new Mt(t,e,n,r)}function Ot(t){return t instanceof ut||(t=St(t)),t?new Mt((t=t.rgb()).r,t.g,t.b,t.opacity):new Mt}function kt(t,e,n,r){return 1===arguments.length?Ot(t):new Mt(t,e,n,null==r?1:r)}function Mt(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function At(){return"#"+Ct(this.r)+Ct(this.g)+Ct(this.b)}function Tt(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Ct(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function It(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new jt(t,e,n,r)}function Pt(t){if(t instanceof jt)return new jt(t.h,t.s,t.l,t.opacity);if(t instanceof ut||(t=St(t)),!t)return new jt;if(t instanceof jt)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n<r):n===o?(r-e)/s+2:(e-n)/s+4,s/=u<.5?o+i:2-o-i,a*=60):s=u>0&&u<1?0:a,new jt(a,s,u,t.opacity)}function jt(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Dt(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Nt(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}at(ut,St,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:xt,formatHex:xt,formatHsl:function(){return Pt(this).formatHsl()},formatRgb:wt,toString:wt}),at(Mt,kt,st(ut,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Mt(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Mt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:At,formatHex:At,formatRgb:Tt,toString:Tt})),at(jt,(function(t,e,n,r){return 1===arguments.length?Pt(t):new jt(t,e,n,null==r?1:r)}),st(ut,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new jt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new jt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Mt(Dt(t>=240?t-240:t+120,i,r),Dt(t,i,r),Dt(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var Rt=function(t){return function(){return t}};function Lt(t,e){return function(n){return t+n*e}}function Bt(t){return 1==(t=+t)?Gt:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Rt(isNaN(e)?n:e)}}function Gt(t,e){var n=e-t;return n?Lt(t,n):Rt(isNaN(t)?e:t)}var Ft=function t(e){var n=Bt(e);function r(t,e){var r=n((t=kt(t)).r,(e=kt(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=Gt(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function Ut(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=kt(e[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=t(o),a=t(a),s=t(s),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=s(t),r+""}}}Ut((function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=r<e-1?t[r+2]:2*o-i;return Nt((n-r/e)*e,a,i,o,s)}})),Ut((function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],a=t[(r+1)%e],s=t[(r+2)%e];return Nt((n-r/e)*e,i,o,a,s)}}));var zt=function(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}};function Vt(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Wt(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=$t(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}}var Xt=function(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}},Yt=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}};function Ht(t){return(Ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var qt=function(t,e){var n,r={},i={};for(n in null!==t&&"object"===Ht(t)||(t={}),null!==e&&"object"===Ht(e)||(e={}),e)n in t?r[n]=$t(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}},Kt=/[-+]?(?:\\d+\\.?\\d*|\\.?\\d+)(?:[eE][-+]?\\d+)?/g,Zt=new RegExp(Kt.source,"g");var Qt=function(t,e){var n,r,i,o=Kt.lastIndex=Zt.lastIndex=0,a=-1,s=[],u=[];for(t+="",e+="";(n=Kt.exec(t))&&(r=Zt.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:Yt(n,r)})),o=Zt.lastIndex;return o<e.length&&(i=e.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?u[0]?function(t){return function(e){return t(e)+""}}(u[0].x):function(t){return function(){return t}}(e):(e=u.length,function(t){for(var n,r=0;r<e;++r)s[(n=u[r]).i]=n.x(t);return s.join("")})};function Jt(t){return(Jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var $t=function(t,e){var n,r=Jt(e);return null==e||"boolean"===r?Rt(e):("number"===r?Yt:"string"===r?(n=St(e))?(e=n,Ft):Qt:e instanceof St?Ft:e instanceof Date?Xt:Vt(e)?zt:Array.isArray(e)?Wt:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?qt:Yt)(t,e)},te=n(52),ee=[1,0,0,0,1,0,0,0,1];function ne(t,e,n){var i,o=e.startTime;if(n<o+e.delay||e._paused)return!1;var a=e.duration,s=e.easing;if(n=n-o-e.delay,e.repeat)i=n%a/a,i=r[s](i);else{if(!((i=n/a)<1))return e.onFrame?t.attr(e.onFrame(1)):t.attr(e.toAttrs),!0;i=r[s](i)}if(e.onFrame){var c=e.onFrame(i);t.attr(c)}else!function(t,e,n){var r={},i=e.fromAttrs,o=e.toAttrs;if(!t.destroyed){var a,s,c,f;for(var l in o)if(!Object(u.q)(i[l],o[l]))if("path"===l){var h=o[l],d=i[l];h.length>d.length?(h=te.parsePathString(o[l]),d=te.parsePathString(i[l]),d=te.fillPathByDiff(d,h),d=te.formatPath(d,h),e.fromAttrs.path=d,e.toAttrs.path=h):e.pathFormatted||(h=te.parsePathString(o[l]),d=te.parsePathString(i[l]),d=te.formatPath(d,h),e.fromAttrs.path=d,e.toAttrs.path=h,e.pathFormatted=!0),r[l]=[];for(var p=0;p<h.length;p++){for(var g=h[p],v=d[p],y=[],m=0;m<g.length;m++)Object(u.t)(g[m])&&v&&Object(u.t)(v[m])?(a=$t(v[m],g[m]),y.push(a(n))):y.push(g[m]);r[l].push(y)}}else if("matrix"===l){var b=(c=i[l]||ee,(Vt(f=o[l]||ee)?zt:Wt)(c,f))(n);r[l]=b}else["fill","stroke","fillStyle","strokeStyle"].includes(l)&&(s=o[l],/^[r,R,L,l]{1}[\\s]*\\(/.test(s))?r[l]=o[l]:Object(u.r)(o[l])||(a=$t(i[l],o[l]),r[l]=a(n));t.attr(r)}}(t,e,i);return!1}var re=function(){function t(t){this.animators=[],this.current=0,this.timer=null,this.canvas=t}return t.prototype.initTimer=function(){var t,e,n,r=this;this.timer=E((function(i){if(r.current=i,r.animators.length>0){for(var o=r.animators.length-1;o>=0;o--)if((t=r.animators[o]).destroyed)r.removeAnimator(o);else{if(!t.isAnimatePaused())for(var a=(e=t.get("animations")).length-1;a>=0;a--)n=e[a],ne(t,n,i)&&(e.splice(a,1),!1,n.callback&&n.callback());0===e.length&&r.removeAnimator(o)}r.canvas.get("autoDraw")||r.canvas.draw()}}))},t.prototype.addAnimator=function(t){this.animators.push(t)},t.prototype.removeAnimator=function(t){this.animators.splice(t,1)},t.prototype.isAnimating=function(){return!!this.animators.length},t.prototype.stop=function(){this.timer&&this.timer.stop()},t.prototype.stopAllAnimations=function(t){void 0===t&&(t=!0),this.animators.forEach((function(e){e.stopAnimate(t)})),this.animators=[],this.canvas.draw()},t.prototype.getTime=function(){return this.current},t}(),ie=n(116),oe=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function ae(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function se(t,e,n){if(n.bubbles){var r=void 0,i=!1;if("mouseenter"===e?(r=n.fromShape,i=!0):"mouseleave"===e&&(i=!0,r=n.toShape),t.isCanvas()&&i)return;if(r&&Object(s.g)(t,r))return void(n.bubbles=!1);n.name=e,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}}var ue=function(){function t(t){var e=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(t){var n=t.type;e._triggerEvent(n,t)},this._onDocumentMove=function(t){if(e.canvas.get("el")!==t.target&&(e.dragging||e.currentShape)){var n=e._getPointInfo(t);e.dragging&&e._emitEvent("drag",t,n,e.draggingShape)}},this._onDocumentMouseUp=function(t){if(e.canvas.get("el")!==t.target&&e.dragging){var n=e._getPointInfo(t);e.draggingShape&&e._emitEvent("drop",t,n,null),e._emitEvent("dragend",t,n,e.draggingShape),e._afterDrag(e.draggingShape,n,t)}},this.canvas=t.canvas}return t.prototype.init=function(){this._bindEvents()},t.prototype._bindEvents=function(){var t=this,e=this.canvas.get("el");Object(s.a)(oe,(function(n){e.addEventListener(n,t._eventCallback)})),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._clearEvents=function(){var t=this,e=this.canvas.get("el");Object(s.a)(oe,(function(n){e.removeEventListener(n,t._eventCallback)})),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._getEventObj=function(t,e,n,r,i,o){var a=new ie.a(t,e);return a.fromShape=i,a.toShape=o,a.x=n.x,a.y=n.y,a.clientX=n.clientX,a.clientY=n.clientY,a.propagationPath.push(r),a},t.prototype._getShape=function(t,e){return this.canvas.getShape(t.x,t.y,e)},t.prototype._getPointInfo=function(t){var e=this.canvas,n=e.getClientByEvent(t),r=e.getPointByEvent(t);return{x:r.x,y:r.y,clientX:n.x,clientY:n.y}},t.prototype._triggerEvent=function(t,e){var n=this._getPointInfo(e),r=this._getShape(n,e),i=this["_on"+t],o=!1;if(i)i.call(this,n,r,e);else{var a=this.currentShape;"mouseenter"===t||"dragenter"===t||"mouseover"===t?(this._emitEvent(t,e,n,null,null,r),r&&this._emitEvent(t,e,n,r,null,r),"mouseenter"===t&&this.draggingShape&&this._emitEvent("dragenter",e,n,null)):"mouseleave"===t||"dragleave"===t||"mouseout"===t?(o=!0,a&&this._emitEvent(t,e,n,a,a,null),this._emitEvent(t,e,n,null,a,null),"mouseleave"===t&&this.draggingShape&&this._emitEvent("dragleave",e,n,null)):this._emitEvent(t,e,n,r,null,null)}if(o||(this.currentShape=r),r&&!r.get("destroyed")){var s=this.canvas;s.get("el").style.cursor=r.attr("cursor")||s.get("cursor")}},t.prototype._onmousedown=function(t,e,n){0===n.button&&(this.mousedownShape=e,this.mousedownPoint=t,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,t,e,null,null)},t.prototype._emitMouseoverEvents=function(t,e,n,r){var i=this.canvas.get("el");n!==r&&(n&&(this._emitEvent("mouseout",t,e,n,n,r),this._emitEvent("mouseleave",t,e,n,n,r),r&&!r.get("destroyed")||(i.style.cursor=this.canvas.get("cursor"))),r&&(this._emitEvent("mouseover",t,e,r,n,r),this._emitEvent("mouseenter",t,e,r,n,r)))},t.prototype._emitDragoverEvents=function(t,e,n,r,i){r?(r!==n&&(n&&this._emitEvent("dragleave",t,e,n,n,r),this._emitEvent("dragenter",t,e,r,n,r)),i||this._emitEvent("dragover",t,e,r)):n&&this._emitEvent("dragleave",t,e,n,n,r),i&&this._emitEvent("dragover",t,e,r)},t.prototype._afterDrag=function(t,e,n){t&&(t.set("capture",!0),this.draggingShape=null),this.dragging=!1;var r=this._getShape(e,n);r!==t&&this._emitMouseoverEvents(n,e,t,r),this.currentShape=r},t.prototype._onmouseup=function(t,e,n){if(0===n.button){var r=this.draggingShape;this.dragging?(r&&this._emitEvent("drop",n,t,e),this._emitEvent("dragend",n,t,r),this._afterDrag(r,t,n)):(this._emitEvent("mouseup",n,t,e),e===this.mousedownShape&&this._emitEvent("click",n,t,e),this.mousedownShape=null,this.mousedownPoint=null)}},t.prototype._ondragover=function(t,e,n){n.preventDefault();var r=this.currentShape;this._emitDragoverEvents(n,t,r,e,!0)},t.prototype._onmousemove=function(t,e,n){var r=this.canvas,i=this.currentShape,o=this.draggingShape;if(this.dragging)o&&this._emitDragoverEvents(n,t,i,e,!1),this._emitEvent("drag",n,t,o);else{var a=this.mousedownPoint;if(a){var s=this.mousedownShape,u=n.timeStamp-this.mousedownTimeStamp,c=a.clientX-t.clientX,f=a.clientY-t.clientY;u>120||c*c+f*f>40?s&&s.get("draggable")?((o=this.mousedownShape).set("capture",!1),this.draggingShape=o,this.dragging=!0,this._emitEvent("dragstart",n,t,o),this.mousedownShape=null,this.mousedownPoint=null):!s&&r.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e))}else this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)}},t.prototype._emitEvent=function(t,e,n,r,i,o){var a=this._getEventObj(t,e,n,r,i,o);if(r){a.shape=r,ae(r,t,a);for(var s=r.getParent();s;)s.emitDelegation(t,a),a.propagationStopped||se(s,t,a),a.propagationPath.push(s),s=s.getParent()}else{ae(this.canvas,t,a)}},t.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},t}(),ce=Object(o.a)(),fe=ce&&"firefox"===ce.name,le=function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return Object(i.b)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.cursor="default",e.supportCSSTransform=!1,e},e.prototype.initContainer=function(){var t=this.get("container");Object(s.h)(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t),this.get("container").appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new ue({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new re(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");s.c&&(n.style.width=t+"px",n.style.height=e+"px")},e.prototype.changeSize=function(t,e){this.setDOMSize(t,e),this.set("width",t),this.set("height",e),this.onCanvasChange("changeSize")},e.prototype.getRenderer=function(){return this.get("renderer")},e.prototype.getCursor=function(){return this.get("cursor")},e.prototype.setCursor=function(t){this.set("cursor",t);var e=this.get("el");s.c&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){if(this.get("supportCSSTransform")){if(fe&&!Object(s.e)(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!Object(s.e)(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var e=this.getClientByEvent(t),n=e.x,r=e.y;return this.getPointByClient(n,r)},e.prototype.getClientByEvent=function(t){var e=t;return t.touches&&(e="touchend"===t.type?t.changedTouches[0]:t.touches[0]),{x:e.clientX,y:e.clientY}},e.prototype.getPointByClient=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t-n.left,y:e-n.top}},e.prototype.getClientByPoint=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t+n.left,y:e+n.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){this.get("eventController").destroy()},e.prototype.isCanvas=function(){return!0},e.prototype.getParent=function(){return null},e.prototype.destroy=function(){var e=this.get("timeline");this.get("destroyed")||(this.clear(),e&&e.stop(),this.clearEvents(),this.removeDom(),t.prototype.destroy.call(this))},e}(a.a);e.a=le},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=new Map;function i(t,e){r.set(t,e)}function o(t){return r.get(t)}var a=function(t){var e=t.attr();return{x:e.x,y:e.y,width:e.width,height:e.height}},s=function(t){var e=t.attr(),n=e.x,r=e.y,i=e.r;return{x:n-i,y:r-i,width:2*i,height:2*i}},u=n(20);function c(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e}function f(t,e){var n=t.get("startArrowShape"),r=t.get("endArrowShape");return n&&(e=c(e,n.getCanvasBBox())),r&&(e=c(e,r.getCanvasBBox())),e}var l=n(69),h=n(38),d=n(0);function p(t,e){var n=t.prePoint,r=t.currentPoint,i=t.nextPoint,o=Math.pow(r[0]-n[0],2)+Math.pow(r[1]-n[1],2),a=Math.pow(r[0]-i[0],2)+Math.pow(r[1]-i[1],2),s=Math.pow(n[0]-i[0],2)+Math.pow(n[1]-i[1],2),u=Math.acos((o+a-s)/(2*Math.sqrt(o)*Math.sqrt(a)));if(!u||0===Math.sin(u)||Object(d.u)(u,0))return{xExtra:0,yExtra:0};var c=Math.abs(Math.atan2(i[1]-r[1],i[0]-r[0])),f=Math.abs(Math.atan2(i[0]-r[0],i[1]-r[1]));return c=c>Math.PI/2?Math.PI-c:c,f=f>Math.PI/2?Math.PI-f:f,{xExtra:Math.cos(u/2-c)*(e/2*(1/Math.sin(u/2)))-e/2||0,yExtra:Math.cos(f-u/2)*(e/2*(1/Math.sin(u/2)))-e/2||0}}i("rect",a),i("image",a),i("circle",s),i("marker",s),i("polyline",(function(t){for(var e=t.attr().points,n=[],r=[],i=0;i<e.length;i++){var o=e[i];n.push(o[0]),r.push(o[1])}var a=u.f.getBBoxByArray(n,r),s=a.x,c=a.y,l={minX:s,minY:c,maxX:s+a.width,maxY:c+a.height};return{x:(l=f(t,l)).minX,y:l.minY,width:l.maxX-l.minX,height:l.maxY-l.minY}})),i("polygon",(function(t){for(var e=t.attr().points,n=[],r=[],i=0;i<e.length;i++){var o=e[i];n.push(o[0]),r.push(o[1])}return u.f.getBBoxByArray(n,r)})),i("text",(function(t){var e=t.attr(),n=e.x,r=e.y,i=e.text,o=e.fontSize,a=e.lineHeight,s=e.font;s||(s=Object(l.a)(e));var u,c=Object(l.c)(i,s);if(c){var f=e.textAlign,h=e.textBaseline,d=Object(l.b)(i,o,a),p={x:n,y:r-d};f&&("end"===f||"right"===f?p.x-=c:"center"===f&&(p.x-=c/2)),h&&("top"===h?p.y+=d:"middle"===h&&(p.y+=d/2)),u={x:p.x,y:p.y,width:c,height:d}}else u={x:n,y:r,width:0,height:0};return u})),i("path",(function(t){var e=t.attr(),n=e.path,r=e.stroke?e.lineWidth:0,i=function(t,e){for(var n=[],r=[],i=[],o=0;o<t.length;o++){var a=(y=t[o]).currentPoint,s=y.params,c=y.prePoint,f=void 0;switch(y.command){case"Q":f=u.e.box(c[0],c[1],s[1],s[2],s[3],s[4]);break;case"C":f=u.b.box(c[0],c[1],s[1],s[2],s[3],s[4],s[5],s[6]);break;case"A":var l=y.arcParams;f=u.a.box(l.cx,l.cy,l.rx,l.ry,l.xRotation,l.startAngle,l.endAngle);break;default:n.push(a[0]),r.push(a[1])}f&&(y.box=f,n.push(f.x,f.x+f.width),r.push(f.y,f.y+f.height)),e&&("L"===y.command||"M"===y.command)&&y.prePoint&&y.nextPoint&&i.push(y)}n=n.filter((function(t){return!Number.isNaN(t)})),r=r.filter((function(t){return!Number.isNaN(t)}));var h=Math.min.apply(null,n),d=Math.min.apply(null,r),g=Math.max.apply(null,n),v=Math.max.apply(null,r);if(0===i.length)return{x:h,y:d,width:g-h,height:v-d};for(o=0;o<i.length;o++){var y;(a=(y=i[o]).currentPoint)[0]===h?h-=p(y,e).xExtra:a[0]===g&&(g+=p(y,e).xExtra),a[1]===d?d-=p(y,e).yExtra:a[1]===v&&(v+=p(y,e).yExtra)}return{x:h,y:d,width:g-h,height:v-d}}(t.get("segments")||Object(h.d)(n),r),o=i.x,a=i.y,s={minX:o,minY:a,maxX:o+i.width,maxY:a+i.height};return{x:(s=f(t,s)).minX,y:s.minY,width:s.maxX-s.minX,height:s.maxY-s.minY}})),i("line",(function(t){var e=t.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2,a={minX:Math.min(n,i),maxX:Math.max(n,i),minY:Math.min(r,o),maxY:Math.max(r,o)};return{x:(a=f(t,a)).minX,y:a.minY,width:a.maxX-a.minX,height:a.maxY-a.minY}})),i("ellipse",(function(t){var e=t.attr(),n=e.x,r=e.y,i=e.rx,o=e.ry;return{x:n-i,y:r-o,width:2*i,height:2*o}}))},function(t,e,n){"use strict";var r=n(1),i=n(21),o=n(15),a=n(71),s=n(34),u=n(25),c=n(81),f=n(79),l=n(0),h=/^l\\s*\\(\\s*([\\d.]+)\\s*\\)\\s*(.*)/i,d=/^r\\s*\\(\\s*([\\d.]+)\\s*,\\s*([\\d.]+)\\s*,\\s*([\\d.]+)\\s*\\)\\s*(.*)/i,p=/[\\d.]+:(#[^\\s]+|[^)]+\\))/gi;function g(t){var e=t.match(p);if(!e)return"";var n="";return e.sort((function(t,e){return t=t.split(":"),e=e.split(":"),Number(t[0])-Number(e[0])})),Object(l.f)(e,(function(t){t=t.split(":"),n+=\'<stop offset="\'+t[0]+\'" stop-color="\'+t[1]+\'"></stop>\'})),n}var v=function(){function t(t){this.cfg={};var e=null,n=Object(l.H)("gradient_");return"l"===t.toLowerCase()[0]?function(t,e){var n,r,i=h.exec(t),o=Object(l.B)(Object(l.G)(parseFloat(i[1])),2*Math.PI),a=i[2];o>=0&&o<.5*Math.PI?(n={x:0,y:0},r={x:1,y:1}):.5*Math.PI<=o&&o<Math.PI?(n={x:1,y:0},r={x:0,y:1}):Math.PI<=o&&o<1.5*Math.PI?(n={x:1,y:1},r={x:0,y:0}):(n={x:0,y:1},r={x:1,y:0});var s=Math.tan(o),u=s*s,c=(r.x-n.x+s*(r.y-n.y))/(u+1)+n.x,f=s*(r.x-n.x+s*(r.y-n.y))/(u+1)+n.y;e.setAttribute("x1",n.x),e.setAttribute("y1",n.y),e.setAttribute("x2",c),e.setAttribute("y2",f),e.innerHTML=g(a)}(t,e=Object(u.b)("linearGradient")):function(t,e){var n=d.exec(t),r=parseFloat(n[1]),i=parseFloat(n[2]),o=parseFloat(n[3]),a=n[4];e.setAttribute("cx",r),e.setAttribute("cy",i),e.setAttribute("r",o),e.innerHTML=g(a)}(t,e=Object(u.b)("radialGradient")),e.setAttribute("id",n),this.el=e,this.id=n,this.cfg=t,this}return t.prototype.match=function(t,e){return this.cfg===e},t}(),y={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},m={x:"-40%",y:"-40%",width:"200%",height:"200%"},b=function(){function t(t){this.type="filter",this.cfg={},this.type="filter";var e=Object(u.b)("filter");return Object(l.f)(m,(function(t,n){e.setAttribute(n,t)})),this.el=e,this.id=Object(l.H)("filter_"),this.el.id=this.id,this.cfg=t,this._parseShadow(t,e),this}return t.prototype.match=function(t,e){if(this.type!==t)return!1;var n=!0,r=this.cfg;return Object(l.f)(Object.keys(r),(function(t){if(r[t]!==e[t])return n=!1,!1})),n},t.prototype.update=function(t,e){var n=this.cfg;return n[y[t]]=e,this._parseShadow(n,this.el),this},t.prototype._parseShadow=function(t,e){var n=\'<feDropShadow\\n dx="\'+(t.dx||0)+\'"\\n dy="\'+(t.dy||0)+\'"\\n stdDeviation="\'+(t.blur?t.blur/10:0)+\'"\\n flood-color="\'+(t.color?t.color:"#000")+\'"\\n flood-opacity="\'+(t.opacity?t.opacity:1)+\'"\\n />\';e.innerHTML=n},t}(),x=function(){function t(t,e){this.cfg={};var n=Object(u.b)("marker"),r=Object(l.H)("marker_");n.setAttribute("id",r);var i=Object(u.b)("path");i.setAttribute("stroke",t.stroke||"none"),i.setAttribute("fill",t.fill||"none"),n.appendChild(i),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=i,this.id=r;var o=t["marker-start"===e?"startArrow":"endArrow"];return this.stroke=t.stroke||"#000",!0===o?this._setDefaultPath(e,i):(this.cfg=o,this._setMarker(t.lineWidth,i)),this}return t.prototype.match=function(){return!1},t.prototype._setDefaultPath=function(t,e){var n=this.el;e.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),n.setAttribute("refX",""+10*Math.cos(Math.PI/6)),n.setAttribute("refY","5")},t.prototype._setMarker=function(t,e){var n=this.el,r=this.cfg.path,i=this.cfg.d;Object(l.m)(r)&&(r=r.map((function(t){return t.join(" ")})).join("")),e.setAttribute("d",r),n.appendChild(e),i&&n.setAttribute("refX",""+i/t)},t.prototype.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}(),w=function(){function t(t){this.type="clip",this.cfg={};var e=Object(u.b)("clipPath");this.el=e,this.id=Object(l.H)("clip_"),e.id=this.id;var n=t.cfg.el;return e.appendChild(n),this.cfg=t,this}return t.prototype.match=function(){return!1},t.prototype.remove=function(){var t=this.el;t.parentNode.removeChild(t)},t}(),S=/^p\\s*\\(\\s*([axyn])\\s*\\)\\s*(.*)/i,E=function(){function t(t){this.cfg={};var e=Object(u.b)("pattern");e.setAttribute("patternUnits","userSpaceOnUse");var n=Object(u.b)("image");e.appendChild(n);var r=Object(l.H)("pattern_");e.id=r,this.el=e,this.id=r,this.cfg=t;var i=S.exec(t)[2];n.setAttribute("href",i);var o=new Image;function a(){e.setAttribute("width",""+o.width),e.setAttribute("height",""+o.height)}return i.match(/^data:/i)||(o.crossOrigin="Anonymous"),o.src=i,o.complete?a():(o.onload=a,o.src=o.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}(),_=function(){function t(t){var e=Object(u.b)("defs"),n=Object(l.H)("defs_");e.id=n,t.appendChild(e),this.children=[],this.defaultArrow={},this.el=e,this.canvas=t}return t.prototype.find=function(t,e){for(var n=this.children,r=null,i=0;i<n.length;i++)if(n[i].match(t,e)){r=n[i].id;break}return r},t.prototype.findById=function(t){for(var e=this.children,n=null,r=0;r<e.length;r++)if(e[r].id===t){n=e[r];break}return n},t.prototype.add=function(t){this.children.push(t),t.canvas=this.canvas,t.parent=this},t.prototype.getDefaultArrow=function(t,e){var n=t.stroke||t.strokeStyle;if(this.defaultArrow[n])return this.defaultArrow[n].id;var r=new x(t,e);return this.defaultArrow[n]=r,this.el.appendChild(r.el),this.add(r),r.id},t.prototype.addGradient=function(t){var e=new v(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addArrow=function(t,e){var n=new x(t,e);return this.el.appendChild(n.el),this.add(n),n.id},t.prototype.addShadow=function(t){var e=new b(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addPattern=function(t){var e=new E(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addClip=function(t){var e=new w(t);return this.el.appendChild(e.el),this.add(e),e.id},t}(),O=function(t){function e(e){return t.call(this,Object(r.a)(Object(r.a)({},e),{autoDraw:!0,renderer:"svg"}))||this}return Object(r.b)(e,t),e.prototype.getShapeBase=function(){return c},e.prototype.getGroupBase=function(){return f.a},e.prototype.getShape=function(t,e,n){var r=n.target||n.srcElement;if(!o.a[r.tagName]){for(var i=r.parentNode;i&&!o.a[i.tagName];)i=i.parentNode;r=i}return this.find((function(t){return t.get("el")===r}))},e.prototype.createDom=function(){var t=Object(u.b)("svg"),e=new _(t);return t.setAttribute("width",""+this.get("width")),t.setAttribute("height",""+this.get("height")),this.set("context",e),t},e.prototype.onCanvasChange=function(t){var e=this.get("context"),n=this.get("el");if("sort"===t){var r=this.get("children");r&&r.length&&Object(u.d)(this,(function(t,e){return r.indexOf(t)-r.indexOf(e)?1:0}))}else if("clear"===t){if(n){n.innerHTML="";var i=e.el;i.innerHTML="",n.appendChild(i)}}else"matrix"===t?Object(s.c)(this):"clip"===t?Object(s.a)(this,e):"changeSize"===t&&(n.setAttribute("width",""+this.get("width")),n.setAttribute("height",""+this.get("height")))},e.prototype.draw=function(){var t=this.get("context"),e=this.getChildren();Object(s.a)(this,t),e.length&&Object(a.a)(t,e)},e}(i.AbstractCanvas);e.a=O},function(t,e,n){"use strict";n.d(e,"a",(function(){return r.a})),n.d(e,"b",(function(){return o.a}));var r=n(80),i=(n(6),n(7),n(2)),o=(i.e.create(),n(58));n(127),i.e.create(),i.e.create(),i.e.create(),i.e.create(),i.e.create()},function(t,e,n){"use strict";var r=n(1),i=n(21);function o(t,e,n){var r=t.getTotalMatrix();if(r){var o=function(t,e){if(e){var n=Object(i.invert)(e);return Object(i.multiplyVec2)(n,t)}return t}([e,n,1],r);return[o[0],o[1]]}return[e,n]}function a(t,e,n){if(t.isCanvas&&t.isCanvas())return!0;if(!Object(i.isAllowCapture)(t)||!1===t.cfg.isInView)return!1;if(t.cfg.clipShape){var r=o(t,e,n),a=r[0],s=r[1];if(t.isClipped(a,s))return!1}var u=t.cfg.cacheCanvasBBox||t.getCanvasBBox();return e>=u.minX&&e<=u.maxX&&n>=u.minY&&n<=u.maxY}var s=n(57),u=n(78),c=n(16),f=n(30),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.renderer="canvas",e.autoDraw=!0,e.localRefresh=!0,e.refreshElements=[],e.clipView=!0,e.quickHit=!1,e},e.prototype.onCanvasChange=function(t){"attr"!==t&&"sort"!==t&&"changeSize"!==t||(this.set("refreshElements",[this]),this.draw())},e.prototype.getShapeBase=function(){return s},e.prototype.getGroupBase=function(){return u.a},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||Object(c.d)();return t>=1?Math.ceil(t):1},e.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},e.prototype.createDom=function(){var t=document.createElement("canvas"),e=t.getContext("2d");return this.set("context",e),t},e.prototype.setDOMSize=function(e,n){t.prototype.setDOMSize.call(this,e,n);var r=this.get("context"),i=this.get("el"),o=this.getPixelRatio();i.width=o*e,i.height=o*n,o>1&&r.scale(o,o)},e.prototype.clear=function(){t.prototype.clear.call(this),this._clearFrame();var e=this.get("context"),n=this.get("el");e.clearRect(0,0,n.width,n.height)},e.prototype.getShape=function(e,n){return this.get("quickHit")?function t(e,n,r){if(!a(e,n,r))return null;for(var i=null,s=e.getChildren(),u=s.length-1;u>=0;u--){var c=s[u];if(c.isGroup())i=t(c,n,r);else if(a(c,n,r)){var f=c,l=o(c,n,r),h=l[0],d=l[1];f.isInShape(h,d)&&(i=c)}if(i)break}return i}(this,e,n):t.prototype.getShape.call(this,e,n,null)},e.prototype._getRefreshRegion=function(){var t,e=this.get("refreshElements"),n=this.getViewRange();e.length&&e[0]===this?t=n:(t=Object(f.f)(e))&&(t.minX=Math.floor(t.minX),t.minY=Math.floor(t.minY),t.maxX=Math.ceil(t.maxX),t.maxY=Math.ceil(t.maxY),t.maxY+=1,this.get("clipView")&&(t=Object(f.g)(t,n)));return t},e.prototype.refreshElement=function(t){this.get("refreshElements").push(t)},e.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&(Object(c.a)(t),this.set("drawFrame",null),this.set("refreshElements",[]))},e.prototype.draw=function(){var t=this.get("drawFrame");this.get("autoDraw")&&t||this._startDraw()},e.prototype._drawAll=function(){var t=this.get("context"),e=this.get("el"),n=this.getChildren();t.clearRect(0,0,e.width,e.height),Object(f.a)(t,this),Object(f.d)(t,n),this.set("refreshElements",[])},e.prototype._drawRegion=function(){var t=this.get("context"),e=this.get("refreshElements"),n=this.getChildren(),r=this._getRefreshRegion();r?(t.clearRect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.save(),t.beginPath(),t.rect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.clip(),Object(f.a)(t,this),Object(f.b)(this,n,r),Object(f.d)(t,n,r),t.restore()):e.length&&Object(f.c)(e),Object(c.c)(e,(function(t){t.get("hasChanged")&&t.set("hasChanged",!1)})),this.set("refreshElements",[])},e.prototype._startDraw=function(){var t=this,e=this.get("drawFrame");e||(e=Object(c.n)((function(){t.get("localRefresh")?t._drawRegion():t._drawAll(),t.set("drawFrame",null)})),this.set("drawFrame",e))},e.prototype.skipDraw=function(){},e}(i.AbstractCanvas);e.a=l},function(t,e,n){"use strict";var r;!function(t){t.PANSTART="PANSTART",t.PANEND="PANEND",t.PANMOVE="PANMOVE",t.PINCH="PINCH",t.KEYDOWN="KEYDOWN",t.KEYUP="KEYUP",t.HOVER="HOVER"}(r||(r={}));n(133)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(493);e.default=function(t,e){return void 0===e&&(e=!0),{lazyInject:r.makePropertyInjectDecorator(t,e),lazyInjectNamed:r.makePropertyInjectNamedDecorator(t,e),lazyInjectTagged:r.makePropertyInjectTaggedDecorator(t,e),lazyMultiInject:r.makePropertyMultiInjectDecorator(t,e)}}},function(t,e,n){var r=n(217);t.exports=function(t){return t&&t.length?r(t):[]}},function(t,e,n){var r,i,o;function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}o=function(){"use strict";var t=function(t){return t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Uint32Array||t instanceof Int8Array||t instanceof Int16Array||t instanceof Int32Array||t instanceof Float32Array||t instanceof Float64Array||t instanceof Uint8ClampedArray},e=function(t,e){for(var n=Object.keys(e),r=0;r<n.length;++r)t[n[r]]=e[n[r]];return t};function n(t){var e=new Error("(regl) "+t);throw console.error(e),e}function r(t,e){t||n(e)}function i(t){return t?": "+t:""}function o(t,e){switch(e){case"number":return"number"==typeof t;case"object":return"object"===a(t);case"string":return"string"==typeof t;case"boolean":return"boolean"==typeof t;case"function":return"function"==typeof t;case"undefined":return void 0===t;case"symbol":return"symbol"===a(t)}}function s(t,e,r){e.indexOf(t)<0&&n("invalid value"+i(r)+". must be one of: "+e)}var u=["gl","canvas","container","attributes","pixelRatio","extensions","optionalExtensions","profile","onDone"];function c(t,e){for(t+="";t.length<e;)t=" "+t;return t}function f(){this.name="unknown",this.lines=[],this.index={},this.hasErrors=!1}function l(t,e){this.number=t,this.line=e,this.errors=[]}function h(t,e,n){this.file=t,this.line=e,this.message=n}function d(){var t=new Error,e=(t.stack||t).toString(),n=/compileProcedure.*\\n\\s*at.*\\((.*)\\)/.exec(e);if(n)return n[1];var r=/compileProcedure.*\\n\\s*at\\s+(.*)(\\n|$)/.exec(e);return r?r[1]:"unknown"}function p(){var t=new Error,e=(t.stack||t).toString(),n=/at REGLCommand.*\\n\\s+at.*\\((.*)\\)/.exec(e);if(n)return n[1];var r=/at REGLCommand.*\\n\\s+at\\s+(.*)\\n/.exec(e);return r?r[1]:"unknown"}function g(t,e){var n,r=t.split("\\n"),i=1,o=0,a={unknown:new f,0:new f};a.unknown.name=a[0].name=e||d(),a.unknown.lines.push(new l(0,""));for(var s=0;s<r.length;++s){var u=r[s],c=/^\\s*#\\s*(\\w+)\\s+(.+)\\s*$/.exec(u);if(c)switch(c[1]){case"line":var h=/(\\d+)(\\s+\\d+)?/.exec(c[2]);h&&(i=0|h[1],h[2]&&((o=0|h[2])in a||(a[o]=new f)));break;case"define":var p=/SHADER_NAME(_B64)?\\s+(.*)$/.exec(c[2]);p&&(a[o].name=p[1]?(n=p[2],"undefined"!=typeof atob?atob(n):"base64:"+n):p[2])}a[o].lines.push(new l(i++,u))}return Object.keys(a).forEach((function(t){var e=a[t];e.lines.forEach((function(t){e.index[t.number]=t}))})),a}function v(t){t._commandRef=d()}function y(t,e){var r=p();n(t+" in command "+(e||d())+("unknown"===r?"":" called from "+r))}function m(t,e,n,r){o(t,e)||y("invalid parameter type"+i(n)+". expected "+e+", got "+a(t),r||d())}var b={};function x(t,e){return 32820===t||32819===t||33635===t?2:34042===t?4:b[t]*e}function w(t){return!(t&t-1||!t)}b[5120]=b[5121]=1,b[5122]=b[5123]=b[36193]=b[33635]=b[32819]=b[32820]=2,b[5124]=b[5125]=b[5126]=b[34042]=4;var S=e(r,{optional:function(t){t()},raise:n,commandRaise:y,command:function(t,e,n){t||y(e,n||d())},parameter:function(t,e,r){t in e||n("unknown parameter ("+t+")"+i(r)+". possible values: "+Object.keys(e).join())},commandParameter:function(t,e,n,r){t in e||y("unknown parameter ("+t+")"+i(n)+". possible values: "+Object.keys(e).join(),r||d())},constructor:function(t){Object.keys(t).forEach((function(t){u.indexOf(t)<0&&n(\'invalid regl constructor argument "\'+t+\'". must be one of \'+u)}))},type:function(t,e,r){o(t,e)||n("invalid parameter type"+i(r)+". expected "+e+", got "+a(t))},commandType:m,isTypedArray:function(e,r){t(e)||n("invalid parameter type"+i(r)+". must be a typed array")},nni:function(t,e){t>=0&&(0|t)===t||n("invalid parameter type, ("+t+")"+i(e)+". must be a nonnegative integer")},oneOf:s,shaderError:function(t,e,n,i,o){if(!t.getShaderParameter(e,t.COMPILE_STATUS)){var a=t.getShaderInfoLog(e),s=i===t.FRAGMENT_SHADER?"fragment":"vertex";m(n,"string",s+" shader source must be a string",o);var u=g(n,o),f=function(t){var e=[];return t.split("\\n").forEach((function(t){if(!(t.length<5)){var n=/^ERROR:\\s+(\\d+):(\\d+):\\s*(.*)$/.exec(t);n?e.push(new h(0|n[1],0|n[2],n[3].trim())):t.length>0&&e.push(new h("unknown",0,t))}})),e}(a);!function(t,e){e.forEach((function(e){var n=t[e.file];if(n){var r=n.index[e.line];if(r)return r.errors.push(e),void(n.hasErrors=!0)}t.unknown.hasErrors=!0,t.unknown.lines[0].errors.push(e)}))}(u,f),Object.keys(u).forEach((function(t){var e=u[t];if(e.hasErrors){var n=[""],r=[""];i("file number "+t+": "+e.name+"\\n","color:red;text-decoration:underline;font-weight:bold"),e.lines.forEach((function(t){if(t.errors.length>0){i(c(t.number,4)+"| ","background-color:yellow; font-weight:bold"),i(t.line+"\\n","color:red; background-color:yellow; font-weight:bold");var e=0;t.errors.forEach((function(n){var r=n.message,o=/^\\s*\'(.*)\'\\s*:\\s*(.*)$/.exec(r);if(o){var a=o[1];switch(r=o[2],a){case"assign":a="="}e=Math.max(t.line.indexOf(a,e),0)}else e=0;i(c("| ",6)),i(c("^^^",e+3)+"\\n","font-weight:bold"),i(c("| ",6)),i(r+"\\n","font-weight:bold")})),i(c("| ",6)+"\\n")}else i(c(t.number,4)+"| "),i(t.line+"\\n","color:red")})),"undefined"==typeof document||window.chrome?console.log(n.join("")):(r[0]=n.join("%c"),console.log.apply(console,r))}function i(t,e){n.push(t),r.push(e||"")}})),r.raise("Error compiling "+s+" shader, "+u[0].name)}},linkError:function(t,e,n,i,o){if(!t.getProgramParameter(e,t.LINK_STATUS)){var a=t.getProgramInfoLog(e),s=g(n,o),u=\'Error linking program with vertex shader, "\'+g(i,o)[0].name+\'", and fragment shader "\'+s[0].name+\'"\';"undefined"!=typeof document?console.log("%c"+u+"\\n%c"+a,"color:red;text-decoration:underline;font-weight:bold","color:red"):console.log(u+"\\n"+a),r.raise(u)}},callSite:p,saveCommandRef:v,saveDrawInfo:function(t,e,n,r){function i(t){return t?r.id(t):0}function o(t,e){Object.keys(e).forEach((function(e){t[r.id(e)]=!0}))}v(t),t._fragId=i(t.static.frag),t._vertId=i(t.static.vert);var a=t._uniformSet={};o(a,e.static),o(a,e.dynamic);var s=t._attributeSet={};o(s,n.static),o(s,n.dynamic),t._hasCount="count"in t.static||"count"in t.dynamic||"elements"in t.static||"elements"in t.dynamic},framebufferFormat:function(t,e,n){t.texture?s(t.texture._texture.internalformat,e,"unsupported texture format for attachment"):s(t.renderbuffer._renderbuffer.format,n,"unsupported renderbuffer format for attachment")},guessCommand:d,texture2D:function(t,e,n){var i,o=e.width,a=e.height,s=e.channels;r(o>0&&o<=n.maxTextureSize&&a>0&&a<=n.maxTextureSize,"invalid texture shape"),33071===t.wrapS&&33071===t.wrapT||r(w(o)&&w(a),"incompatible wrap mode for texture, both width and height must be power of 2"),1===e.mipmask?1!==o&&1!==a&&r(9984!==t.minFilter&&9986!==t.minFilter&&9985!==t.minFilter&&9987!==t.minFilter,"min filter requires mipmap"):(r(w(o)&&w(a),"texture must be a square power of 2 to support mipmapping"),r(e.mipmask===(o<<1)-1,"missing or incomplete mipmap data")),5126===e.type&&(n.extensions.indexOf("oes_texture_float_linear")<0&&r(9728===t.minFilter&&9728===t.magFilter,"filter not supported, must enable oes_texture_float_linear"),r(!t.genMipmaps,"mipmap generation not supported with float textures"));var u=e.images;for(i=0;i<16;++i)if(u[i]){var c=o>>i,f=a>>i;r(e.mipmask&1<<i,"missing mipmap data");var l=u[i];if(r(l.width===c&&l.height===f,"invalid shape for mip images"),r(l.format===e.format&&l.internalformat===e.internalformat&&l.type===e.type,"incompatible type for mip image"),l.compressed);else if(l.data){var h=Math.ceil(x(l.type,s)*c/l.unpackAlignment)*l.unpackAlignment;r(l.data.byteLength===h*f,"invalid data for image, buffer size is inconsistent with image format")}else l.element||l.copy}else t.genMipmaps||r(0==(e.mipmask&1<<i),"extra mipmap data");e.compressed&&r(!t.genMipmaps,"mipmap generation for compressed images not supported")},textureCube:function(t,e,n,i){var o=t.width,a=t.height,s=t.channels;r(o>0&&o<=i.maxTextureSize&&a>0&&a<=i.maxTextureSize,"invalid texture shape"),r(o===a,"cube map must be square"),r(33071===e.wrapS&&33071===e.wrapT,"wrap mode not supported by cube map");for(var u=0;u<n.length;++u){var c=n[u];r(c.width===o&&c.height===a,"inconsistent cube map face shape"),e.genMipmaps&&(r(!c.compressed,"can not generate mipmap for compressed textures"),r(1===c.mipmask,"can not specify mipmaps and generate mipmaps"));for(var f=c.images,l=0;l<16;++l){var h=f[l];if(h){var d=o>>l,p=a>>l;r(c.mipmask&1<<l,"missing mipmap data"),r(h.width===d&&h.height===p,"invalid shape for mip images"),r(h.format===t.format&&h.internalformat===t.internalformat&&h.type===t.type,"incompatible type for mip image"),h.compressed||(h.data?r(h.data.byteLength===d*p*Math.max(x(h.type,s),h.unpackAlignment),"invalid data for image, buffer size is inconsistent with image format"):h.element||h.copy)}}}}}),E=0;function _(t,e){this.id=E++,this.type=t,this.data=e}function O(t){return t.replace(/\\\\/g,"\\\\\\\\").replace(/"/g,\'\\\\"\')}function k(t){return"["+function t(e){if(0===e.length)return[];var n=e.charAt(0),r=e.charAt(e.length-1);if(e.length>1&&n===r&&(\'"\'===n||"\'"===n))return[\'"\'+O(e.substr(1,e.length-2))+\'"\'];var i=/\\[(false|true|null|\\d+|\'[^\']*\'|"[^"]*")\\]/.exec(e);if(i)return t(e.substr(0,i.index)).concat(t(i[1])).concat(t(e.substr(i.index+i[0].length)));var o=e.split(".");if(1===o.length)return[\'"\'+O(e)+\'"\'];for(var a=[],s=0;s<o.length;++s)a=a.concat(t(o[s]));return a}(t).join("][")+"]"}var M={DynamicVariable:_,define:function(t,e){return new _(t,k(e+""))},isDynamic:function(t){return"function"==typeof t&&!t._reglType||t instanceof _},unbox:function t(e,n){return"function"==typeof e?new _(0,e):"number"==typeof e||"boolean"==typeof e?new _(5,e):Array.isArray(e)?new _(6,e.map((function(e,r){return t(e,n+"["+r+"]")}))):e instanceof _?e:void S(!1,"invalid option type in uniform "+n)},accessor:k},A={next:"function"==typeof requestAnimationFrame?function(t){return requestAnimationFrame(t)}:function(t){return setTimeout(t,16)},cancel:"function"==typeof cancelAnimationFrame?function(t){return cancelAnimationFrame(t)}:clearTimeout},T="undefined"!=typeof performance&&performance.now?function(){return performance.now()}:function(){return+new Date};function C(t){return"string"==typeof t?t.split():(S(Array.isArray(t),"invalid extension array"),t)}function I(t){return"string"==typeof t?(S("undefined"!=typeof document,"not supported outside of DOM"),document.querySelector(t)):t}function P(t){var n,r,i,o,s,u=t||{},c={},f=[],l=[],h="undefined"==typeof window?1:window.devicePixelRatio,d=!1,p=function(t){t&&S.raise(t)},g=function(){};if("string"==typeof u?(S("undefined"!=typeof document,"selector queries only supported in DOM enviroments"),n=document.querySelector(u),S(n,"invalid query string for element")):"object"===a(u)?"string"==typeof(s=u).nodeName&&"function"==typeof s.appendChild&&"function"==typeof s.getBoundingClientRect?n=u:function(t){return"function"==typeof t.drawArrays||"function"==typeof t.drawElements}(u)?i=(o=u).canvas:(S.constructor(u),"gl"in u?o=u.gl:"canvas"in u?i=I(u.canvas):"container"in u&&(r=I(u.container)),"attributes"in u&&(c=u.attributes,S.type(c,"object","invalid context attributes")),"extensions"in u&&(f=C(u.extensions)),"optionalExtensions"in u&&(l=C(u.optionalExtensions)),"onDone"in u&&(S.type(u.onDone,"function","invalid or missing onDone callback"),p=u.onDone),"profile"in u&&(d=!!u.profile),"pixelRatio"in u&&(h=+u.pixelRatio,S(h>0,"invalid pixel ratio"))):S.raise("invalid arguments to regl"),n&&("canvas"===n.nodeName.toLowerCase()?i=n:r=n),!o){if(!i){S("undefined"!=typeof document,"must manually specify webgl context outside of DOM environments");var v=function(t,n,r){var i,o=document.createElement("canvas");function a(){var n=window.innerWidth,i=window.innerHeight;if(t!==document.body){var a=t.getBoundingClientRect();n=a.right-a.left,i=a.bottom-a.top}o.width=r*n,o.height=r*i,e(o.style,{width:n+"px",height:i+"px"})}return e(o.style,{border:0,margin:0,padding:0,top:0,left:0}),t.appendChild(o),t===document.body&&(o.style.position="absolute",e(t.style,{margin:0,padding:0})),t!==document.body&&"function"==typeof ResizeObserver?(i=new ResizeObserver((function(){setTimeout(a)}))).observe(t):window.addEventListener("resize",a,!1),a(),{canvas:o,onDestroy:function(){i?i.disconnect():window.removeEventListener("resize",a),t.removeChild(o)}}}(r||document.body,0,h);if(!v)return null;i=v.canvas,g=v.onDestroy}void 0===c.premultipliedAlpha&&(c.premultipliedAlpha=!0),o=function(t,e){function n(n){try{return t.getContext(n,e)}catch(t){return null}}return n("webgl")||n("experimental-webgl")||n("webgl-experimental")}(i,c)}return o?{gl:o,canvas:i,container:r,extensions:f,optionalExtensions:l,pixelRatio:h,profile:d,onDone:p,onDestroy:g}:(g(),p("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function j(t,e){for(var n=Array(t),r=0;r<t;++r)n[r]=e(r);return n}function D(t){var e,n;return e=(t>65535)<<4,e|=n=((t>>>=e)>255)<<3,e|=n=((t>>>=n)>15)<<2,(e|=n=((t>>>=n)>3)<<1)|(t>>>=n)>>1}function N(){var t=j(8,(function(){return[]}));function e(e){var n=function(t){for(var e=16;e<=1<<28;e*=16)if(t<=e)return e;return 0}(e),r=t[D(n)>>2];return r.length>0?r.pop():new ArrayBuffer(n)}function n(e){t[D(e.byteLength)>>2].push(e)}return{alloc:e,free:n,allocType:function(t,n){var r=null;switch(t){case 5120:r=new Int8Array(e(n),0,n);break;case 5121:r=new Uint8Array(e(n),0,n);break;case 5122:r=new Int16Array(e(2*n),0,n);break;case 5123:r=new Uint16Array(e(2*n),0,n);break;case 5124:r=new Int32Array(e(4*n),0,n);break;case 5125:r=new Uint32Array(e(4*n),0,n);break;case 5126:r=new Float32Array(e(4*n),0,n);break;default:return null}return r.length!==n?r.subarray(0,n):r},freeType:function(t){n(t.buffer)}}}var R=N();function L(e){return!!e&&"object"===a(e)&&Array.isArray(e.shape)&&Array.isArray(e.stride)&&"number"==typeof e.offset&&e.shape.length===e.stride.length&&(Array.isArray(e.data)||t(e.data))}R.zero=N();var B=function(t){return Object.keys(t).map((function(e){return t[e]}))},G={shape:function(t){for(var e=[],n=t;n.length;n=n[0])e.push(n.length);return e},flatten:function(t,e,n,r){var i=1;if(e.length)for(var o=0;o<e.length;++o)i*=e[o];else i=0;var a=r||R.allocType(n,i);switch(e.length){case 0:break;case 1:!function(t,e,n){for(var r=0;r<e;++r)n[r]=t[r]}(t,e[0],a);break;case 2:!function(t,e,n,r){for(var i=0,o=0;o<e;++o)for(var a=t[o],s=0;s<n;++s)r[i++]=a[s]}(t,e[0],e[1],a);break;case 3:F(t,e[0],e[1],e[2],a,0);break;default:!function t(e,n,r,i,o){for(var a=1,s=r+1;s<n.length;++s)a*=n[s];var u=n[r];if(n.length-r==4){var c=n[r+1],f=n[r+2],l=n[r+3];for(s=0;s<u;++s)F(e[s],c,f,l,i,o),o+=a}else for(s=0;s<u;++s)t(e[s],n,r+1,i,o),o+=a}(t,e,0,a,0)}return a}};function F(t,e,n,r,i,o){for(var a=o,s=0;s<e;++s)for(var u=t[s],c=0;c<n;++c)for(var f=u[c],l=0;l<r;++l)i[a++]=f[l]}var U={"[object Int8Array]":5120,"[object Int16Array]":5122,"[object Int32Array]":5124,"[object Uint8Array]":5121,"[object Uint8ClampedArray]":5121,"[object Uint16Array]":5123,"[object Uint32Array]":5125,"[object Float32Array]":5126,"[object Float64Array]":5121,"[object ArrayBuffer]":5121},z={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},V={dynamic:35048,stream:35040,static:35044},W=G.flatten,X=G.shape,Y=[];function H(t){return 0|U[Object.prototype.toString.call(t)]}function q(t,e){for(var n=0;n<e.length;++n)t[n]=e[n]}function K(t,e,n,r,i,o,a){for(var s=0,u=0;u<n;++u)for(var c=0;c<r;++c)t[s++]=e[i*u+o*c+a]}Y[5120]=1,Y[5122]=2,Y[5124]=4,Y[5121]=1,Y[5123]=2,Y[5125]=4,Y[5126]=4;var Z={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Q=new Float32Array(1),J=new Uint32Array(Q.buffer);function $(t){for(var e=R.allocType(5123,t.length),n=0;n<t.length;++n)if(isNaN(t[n]))e[n]=65535;else if(t[n]===1/0)e[n]=31744;else if(t[n]===-1/0)e[n]=64512;else{Q[0]=t[n];var r=J[0],i=r>>>31<<15,o=(r<<1>>>24)-127,a=r>>13&1023;if(o<-24)e[n]=i;else if(o<-14){var s=-14-o;e[n]=i+(a+1024>>s)}else e[n]=o>15?i+31744:i+(o+15<<10)+a}return e}function tt(e){return Array.isArray(e)||t(e)}var et=function(t){return!(t&t-1||!t)},nt=[9984,9986,9985,9987],rt=[0,6409,6410,6407,6408],it={};function ot(t){return"[object "+t+"]"}it[6409]=it[6406]=it[6402]=1,it[34041]=it[6410]=2,it[6407]=it[35904]=3,it[6408]=it[35906]=4;var at=ot("HTMLCanvasElement"),st=ot("OffscreenCanvas"),ut=ot("CanvasRenderingContext2D"),ct=ot("ImageBitmap"),ft=ot("HTMLImageElement"),lt=ot("HTMLVideoElement"),ht=Object.keys(U).concat([at,st,ut,ct,ft,lt]),dt=[];dt[5121]=1,dt[5126]=4,dt[36193]=2,dt[5123]=2,dt[5125]=4;var pt=[];function gt(t){return Array.isArray(t)&&(0===t.length||"number"==typeof t[0])}function vt(t){return!!Array.isArray(t)&&!(0===t.length||!tt(t[0]))}function yt(t){return Object.prototype.toString.call(t)}function mt(t){return yt(t)===at}function bt(t){return yt(t)===st}function xt(t){if(!t)return!1;var e=yt(t);return ht.indexOf(e)>=0||gt(t)||vt(t)||L(t)}function wt(t){return 0|U[Object.prototype.toString.call(t)]}function St(t,e){return R.allocType(36193===t.type?5126:t.type,e)}function Et(t,e){36193===t.type?(t.data=$(e),R.freeType(e)):t.data=e}function _t(t,e,n,r,i,o){var a;if(a=void 0!==pt[t]?pt[t]:it[t]*dt[e],o&&(a*=6),i){for(var s=0,u=n;u>=1;)s+=a*u*u,u/=2;return s}return a*n*r}function Ot(n,r,i,o,s,u,c){var f={"don\'t care":4352,"dont care":4352,nice:4354,fast:4353},l={repeat:10497,clamp:33071,mirror:33648},h={nearest:9728,linear:9729},d=e({mipmap:9987,"nearest mipmap nearest":9984,"linear mipmap nearest":9985,"nearest mipmap linear":9986,"linear mipmap linear":9987},h),p={none:0,browser:37444},g={uint8:5121,rgba4:32819,rgb565:33635,"rgb5 a1":32820},v={alpha:6406,luminance:6409,"luminance alpha":6410,rgb:6407,rgba:6408,rgba4:32854,"rgb5 a1":32855,rgb565:36194},y={};r.ext_srgb&&(v.srgb=35904,v.srgba=35906),r.oes_texture_float&&(g.float32=g.float=5126),r.oes_texture_half_float&&(g.float16=g["half float"]=36193),r.webgl_depth_texture&&(e(v,{depth:6402,"depth stencil":34041}),e(g,{uint16:5123,uint32:5125,"depth stencil":34042})),r.webgl_compressed_texture_s3tc&&e(y,{"rgb s3tc dxt1":33776,"rgba s3tc dxt1":33777,"rgba s3tc dxt3":33778,"rgba s3tc dxt5":33779}),r.webgl_compressed_texture_atc&&e(y,{"rgb atc":35986,"rgba atc explicit alpha":35987,"rgba atc interpolated alpha":34798}),r.webgl_compressed_texture_pvrtc&&e(y,{"rgb pvrtc 4bppv1":35840,"rgb pvrtc 2bppv1":35841,"rgba pvrtc 4bppv1":35842,"rgba pvrtc 2bppv1":35843}),r.webgl_compressed_texture_etc1&&(y["rgb etc1"]=36196);var m=Array.prototype.slice.call(n.getParameter(34467));Object.keys(y).forEach((function(t){var e=y[t];m.indexOf(e)>=0&&(v[t]=e)}));var b=Object.keys(v);i.textureFormats=b;var x=[];Object.keys(v).forEach((function(t){var e=v[t];x[e]=t}));var w=[];Object.keys(g).forEach((function(t){var e=g[t];w[e]=t}));var E=[];Object.keys(h).forEach((function(t){E[h[t]]=t}));var _=[];Object.keys(d).forEach((function(t){var e=d[t];_[e]=t}));var O=[];Object.keys(l).forEach((function(t){O[l[t]]=t}));var k=b.reduce((function(t,e){var n=v[e];return 6409===n||6406===n||6409===n||6410===n||6402===n||34041===n||r.ext_srgb&&(35904===n||35906===n)?t[n]=n:32855===n||e.indexOf("rgba")>=0?t[n]=6408:t[n]=6407,t}),{});function M(){this.internalformat=6408,this.format=6408,this.type=5121,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=37444,this.width=0,this.height=0,this.channels=0}function A(t,e){t.internalformat=e.internalformat,t.format=e.format,t.type=e.type,t.compressed=e.compressed,t.premultiplyAlpha=e.premultiplyAlpha,t.flipY=e.flipY,t.unpackAlignment=e.unpackAlignment,t.colorSpace=e.colorSpace,t.width=e.width,t.height=e.height,t.channels=e.channels}function T(t,e){if("object"===a(e)&&e){if("premultiplyAlpha"in e&&(S.type(e.premultiplyAlpha,"boolean","invalid premultiplyAlpha"),t.premultiplyAlpha=e.premultiplyAlpha),"flipY"in e&&(S.type(e.flipY,"boolean","invalid texture flip"),t.flipY=e.flipY),"alignment"in e&&(S.oneOf(e.alignment,[1,2,4,8],"invalid texture unpack alignment"),t.unpackAlignment=e.alignment),"colorSpace"in e&&(S.parameter(e.colorSpace,p,"invalid colorSpace"),t.colorSpace=p[e.colorSpace]),"type"in e){var n=e.type;S(r.oes_texture_float||!("float"===n||"float32"===n),"you must enable the OES_texture_float extension in order to use floating point textures."),S(r.oes_texture_half_float||!("half float"===n||"float16"===n),"you must enable the OES_texture_half_float extension in order to use 16-bit floating point textures."),S(r.webgl_depth_texture||!("uint16"===n||"uint32"===n||"depth stencil"===n),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),S.parameter(n,g,"invalid texture type"),t.type=g[n]}var o=t.width,s=t.height,u=t.channels,c=!1;"shape"in e?(S(Array.isArray(e.shape)&&e.shape.length>=2,"shape must be an array"),o=e.shape[0],s=e.shape[1],3===e.shape.length&&(u=e.shape[2],S(u>0&&u<=4,"invalid number of channels"),c=!0),S(o>=0&&o<=i.maxTextureSize,"invalid width"),S(s>=0&&s<=i.maxTextureSize,"invalid height")):("radius"in e&&(o=s=e.radius,S(o>=0&&o<=i.maxTextureSize,"invalid radius")),"width"in e&&(o=e.width,S(o>=0&&o<=i.maxTextureSize,"invalid width")),"height"in e&&(s=e.height,S(s>=0&&s<=i.maxTextureSize,"invalid height")),"channels"in e&&(u=e.channels,S(u>0&&u<=4,"invalid number of channels"),c=!0)),t.width=0|o,t.height=0|s,t.channels=0|u;var f=!1;if("format"in e){var l=e.format;S(r.webgl_depth_texture||!("depth"===l||"depth stencil"===l),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),S.parameter(l,v,"invalid texture format");var h=t.internalformat=v[l];t.format=k[h],l in g&&("type"in e||(t.type=g[l])),l in y&&(t.compressed=!0),f=!0}!c&&f?t.channels=it[t.format]:c&&!f?t.channels!==rt[t.format]&&(t.format=t.internalformat=rt[t.channels]):f&&c&&S(t.channels===it[t.format],"number of channels inconsistent with specified format")}}function C(t){n.pixelStorei(37440,t.flipY),n.pixelStorei(37441,t.premultiplyAlpha),n.pixelStorei(37443,t.colorSpace),n.pixelStorei(3317,t.unpackAlignment)}function I(){M.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function P(e,n){var r=null;if(xt(n)?r=n:n&&(S.type(n,"object","invalid pixel data type"),T(e,n),"x"in n&&(e.xOffset=0|n.x),"y"in n&&(e.yOffset=0|n.y),xt(n.data)&&(r=n.data)),S(!e.compressed||r instanceof Uint8Array,"compressed texture data must be stored in a uint8array"),n.copy){S(!r,"can not specify copy and data field for the same texture");var o=s.viewportWidth,a=s.viewportHeight;e.width=e.width||o-e.xOffset,e.height=e.height||a-e.yOffset,e.needsCopy=!0,S(e.xOffset>=0&&e.xOffset<o&&e.yOffset>=0&&e.yOffset<a&&e.width>0&&e.width<=o&&e.height>0&&e.height<=a,"copy texture read out of bounds")}else if(r){if(t(r))e.channels=e.channels||4,e.data=r,"type"in n||5121!==e.type||(e.type=wt(r));else if(gt(r))e.channels=e.channels||4,function(t,e){var n=e.length;switch(t.type){case 5121:case 5123:case 5125:case 5126:var r=R.allocType(t.type,n);r.set(e),t.data=r;break;case 36193:t.data=$(e);break;default:S.raise("unsupported texture type, must specify a typed array")}}(e,r),e.alignment=1,e.needsFree=!0;else if(L(r)){var u=r.data;Array.isArray(u)||5121!==e.type||(e.type=wt(u));var c,f,l,h,d,p,g=r.shape,v=r.stride;3===g.length?(l=g[2],p=v[2]):(S(2===g.length,"invalid ndarray pixel data, must be 2 or 3D"),l=1,p=1),c=g[0],f=g[1],h=v[0],d=v[1],e.alignment=1,e.width=c,e.height=f,e.channels=l,e.format=e.internalformat=rt[l],e.needsFree=!0,function(t,e,n,r,i,o){for(var a=t.width,s=t.height,u=t.channels,c=St(t,a*s*u),f=0,l=0;l<s;++l)for(var h=0;h<a;++h)for(var d=0;d<u;++d)c[f++]=e[n*h+r*l+i*d+o];Et(t,c)}(e,u,h,d,p,r.offset)}else if(mt(r)||bt(r)||yt(r)===ut)mt(r)||bt(r)?e.element=r:e.element=r.canvas,e.width=e.element.width,e.height=e.element.height,e.channels=4;else if(function(t){return yt(t)===ct}(r))e.element=r,e.width=r.width,e.height=r.height,e.channels=4;else if(function(t){return yt(t)===ft}(r))e.element=r,e.width=r.naturalWidth,e.height=r.naturalHeight,e.channels=4;else if(function(t){return yt(t)===lt}(r))e.element=r,e.width=r.videoWidth,e.height=r.videoHeight,e.channels=4;else if(vt(r)){var y=e.width||r[0].length,m=e.height||r.length,b=e.channels;b=tt(r[0][0])?b||r[0][0].length:b||1;for(var x=G.shape(r),w=1,E=0;E<x.length;++E)w*=x[E];var _=St(e,w);G.flatten(r,x,"",_),Et(e,_),e.alignment=1,e.width=y,e.height=m,e.channels=b,e.format=e.internalformat=rt[b],e.needsFree=!0}}else e.width=e.width||1,e.height=e.height||1,e.channels=e.channels||4;5126===e.type?S(i.extensions.indexOf("oes_texture_float")>=0,"oes_texture_float extension not enabled"):36193===e.type&&S(i.extensions.indexOf("oes_texture_half_float")>=0,"oes_texture_half_float extension not enabled")}function j(t,e,r){var i=t.element,a=t.data,s=t.internalformat,u=t.format,c=t.type,f=t.width,l=t.height;C(t),i?n.texImage2D(e,r,u,u,c,i):t.compressed?n.compressedTexImage2D(e,r,s,f,l,0,a):t.needsCopy?(o(),n.copyTexImage2D(e,r,u,t.xOffset,t.yOffset,f,l,0)):n.texImage2D(e,r,u,f,l,0,u,c,a||null)}function D(t,e,r,i,a){var s=t.element,u=t.data,c=t.internalformat,f=t.format,l=t.type,h=t.width,d=t.height;C(t),s?n.texSubImage2D(e,a,r,i,f,l,s):t.compressed?n.compressedTexSubImage2D(e,a,r,i,c,h,d,u):t.needsCopy?(o(),n.copyTexSubImage2D(e,a,r,i,t.xOffset,t.yOffset,h,d)):n.texSubImage2D(e,a,r,i,h,d,f,l,u)}var N=[];function F(){return N.pop()||new I}function U(t){t.needsFree&&R.freeType(t.data),I.call(t),N.push(t)}function z(){M.call(this),this.genMipmaps=!1,this.mipmapHint=4352,this.mipmask=0,this.images=Array(16)}function V(t,e,n){var r=t.images[0]=F();t.mipmask=1,r.width=t.width=e,r.height=t.height=n,r.channels=t.channels=4}function W(t,e){var n=null;if(xt(e))A(n=t.images[0]=F(),t),P(n,e),t.mipmask=1;else if(T(t,e),Array.isArray(e.mipmap))for(var r=e.mipmap,i=0;i<r.length;++i)A(n=t.images[i]=F(),t),n.width>>=i,n.height>>=i,P(n,r[i]),t.mipmask|=1<<i;else A(n=t.images[0]=F(),t),P(n,e),t.mipmask=1;A(t,t.images[0]),!t.compressed||33776!==t.internalformat&&33777!==t.internalformat&&33778!==t.internalformat&&33779!==t.internalformat||S(t.width%4==0&&t.height%4==0,"for compressed texture formats, mipmap level 0 must have width and height that are a multiple of 4")}function X(t,e){for(var n=t.images,r=0;r<n.length;++r){if(!n[r])return;j(n[r],e,r)}}var Y=[];function H(){var t=Y.pop()||new z;M.call(t),t.mipmask=0;for(var e=0;e<16;++e)t.images[e]=null;return t}function q(t){for(var e=t.images,n=0;n<e.length;++n)e[n]&&U(e[n]),e[n]=null;Y.push(t)}function K(){this.minFilter=9728,this.magFilter=9728,this.wrapS=33071,this.wrapT=33071,this.anisotropic=1,this.genMipmaps=!1,this.mipmapHint=4352}function Z(t,e){if("min"in e){var n=e.min;S.parameter(n,d),t.minFilter=d[n],nt.indexOf(t.minFilter)>=0&&!("faces"in e)&&(t.genMipmaps=!0)}if("mag"in e){var r=e.mag;S.parameter(r,h),t.magFilter=h[r]}var o=t.wrapS,s=t.wrapT;if("wrap"in e){var u=e.wrap;"string"==typeof u?(S.parameter(u,l),o=s=l[u]):Array.isArray(u)&&(S.parameter(u[0],l),S.parameter(u[1],l),o=l[u[0]],s=l[u[1]])}else{if("wrapS"in e){var c=e.wrapS;S.parameter(c,l),o=l[c]}if("wrapT"in e){var p=e.wrapT;S.parameter(p,l),s=l[p]}}if(t.wrapS=o,t.wrapT=s,"anisotropic"in e){var g=e.anisotropic;S("number"==typeof g&&g>=1&&g<=i.maxAnisotropic,"aniso samples must be between 1 and "),t.anisotropic=e.anisotropic}if("mipmap"in e){var v=!1;switch(a(e.mipmap)){case"string":S.parameter(e.mipmap,f,"invalid mipmap hint"),t.mipmapHint=f[e.mipmap],t.genMipmaps=!0,v=!0;break;case"boolean":v=t.genMipmaps=e.mipmap;break;case"object":S(Array.isArray(e.mipmap),"invalid mipmap type"),t.genMipmaps=!1,v=!0;break;default:S.raise("invalid mipmap type")}v&&!("min"in e)&&(t.minFilter=9984)}}function Q(t,e){n.texParameteri(e,10241,t.minFilter),n.texParameteri(e,10240,t.magFilter),n.texParameteri(e,10242,t.wrapS),n.texParameteri(e,10243,t.wrapT),r.ext_texture_filter_anisotropic&&n.texParameteri(e,34046,t.anisotropic),t.genMipmaps&&(n.hint(33170,t.mipmapHint),n.generateMipmap(e))}var J=0,ot={},at=i.maxTextureUnits,st=Array(at).map((function(){return null}));function ht(t){M.call(this),this.mipmask=0,this.internalformat=6408,this.id=J++,this.refCount=1,this.target=t,this.texture=n.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new K,c.profile&&(this.stats={size:0})}function dt(t){n.activeTexture(33984),n.bindTexture(t.target,t.texture)}function pt(){var t=st[0];t?n.bindTexture(t.target,t.texture):n.bindTexture(3553,null)}function Ot(t){var e=t.texture;S(e,"must not double destroy texture");var r=t.unit,i=t.target;r>=0&&(n.activeTexture(33984+r),n.bindTexture(i,null),st[r]=null),n.deleteTexture(e),t.texture=null,t.params=null,t.pixels=null,t.refCount=0,delete ot[t.id],u.textureCount--}return e(ht.prototype,{bind:function(){this.bindCount+=1;var t=this.unit;if(t<0){for(var e=0;e<at;++e){var r=st[e];if(r){if(r.bindCount>0)continue;r.unit=-1}st[e]=this,t=e;break}t>=at&&S.raise("insufficient number of texture units"),c.profile&&u.maxTextureUnits<t+1&&(u.maxTextureUnits=t+1),this.unit=t,n.activeTexture(33984+t),n.bindTexture(this.target,this.texture)}return t},unbind:function(){this.bindCount-=1},decRef:function(){--this.refCount<=0&&Ot(this)}}),c.profile&&(u.getTotalTextureSize=function(){var t=0;return Object.keys(ot).forEach((function(e){t+=ot[e].stats.size})),t}),{create2D:function(t,e){var r=new ht(3553);function o(t,e){var n=r.texInfo;K.call(n);var a=H();return"number"==typeof t?V(a,0|t,"number"==typeof e?0|e:0|t):t?(S.type(t,"object","invalid arguments to regl.texture"),Z(n,t),W(a,t)):V(a,1,1),n.genMipmaps&&(a.mipmask=(a.width<<1)-1),r.mipmask=a.mipmask,A(r,a),S.texture2D(n,a,i),r.internalformat=a.internalformat,o.width=a.width,o.height=a.height,dt(r),X(a,3553),Q(n,3553),pt(),q(a),c.profile&&(r.stats.size=_t(r.internalformat,r.type,a.width,a.height,n.genMipmaps,!1)),o.format=x[r.internalformat],o.type=w[r.type],o.mag=E[n.magFilter],o.min=_[n.minFilter],o.wrapS=O[n.wrapS],o.wrapT=O[n.wrapT],o}return ot[r.id]=r,u.textureCount++,o(t,e),o.subimage=function(t,e,n,i){S(!!t,"must specify image data");var a=0|e,s=0|n,u=0|i,c=F();return A(c,r),c.width=0,c.height=0,P(c,t),c.width=c.width||(r.width>>u)-a,c.height=c.height||(r.height>>u)-s,S(r.type===c.type&&r.format===c.format&&r.internalformat===c.internalformat,"incompatible format for texture.subimage"),S(a>=0&&s>=0&&a+c.width<=r.width&&s+c.height<=r.height,"texture.subimage write out of bounds"),S(r.mipmask&1<<u,"missing mipmap data"),S(c.data||c.element||c.needsCopy,"missing image data"),dt(r),D(c,3553,a,s,u),pt(),U(c),o},o.resize=function(t,e){var i=0|t,a=0|e||i;if(i===r.width&&a===r.height)return o;o.width=r.width=i,o.height=r.height=a,dt(r);for(var s=0;r.mipmask>>s;++s){var u=i>>s,f=a>>s;if(!u||!f)break;n.texImage2D(3553,s,r.format,u,f,0,r.format,r.type,null)}return pt(),c.profile&&(r.stats.size=_t(r.internalformat,r.type,i,a,!1,!1)),o},o._reglType="texture2d",o._texture=r,c.profile&&(o.stats=r.stats),o.destroy=function(){r.decRef()},o},createCube:function(t,e,r,o,s,f){var l=new ht(34067);ot[l.id]=l,u.cubeCount++;var h=new Array(6);function d(t,e,n,r,o,s){var u,f=l.texInfo;for(K.call(f),u=0;u<6;++u)h[u]=H();if("number"!=typeof t&&t)if("object"===a(t))if(e)W(h[0],t),W(h[1],e),W(h[2],n),W(h[3],r),W(h[4],o),W(h[5],s);else if(Z(f,t),T(l,t),"faces"in t){var p=t.faces;for(S(Array.isArray(p)&&6===p.length,"cube faces must be a length 6 array"),u=0;u<6;++u)S("object"===a(p[u])&&!!p[u],"invalid input for cube map face"),A(h[u],l),W(h[u],p[u])}else for(u=0;u<6;++u)W(h[u],t);else S.raise("invalid arguments to cube map");else{var g=0|t||1;for(u=0;u<6;++u)V(h[u],g,g)}for(A(l,h[0]),i.npotTextureCube||S(et(l.width)&&et(l.height),"your browser does not support non power or two texture dimensions"),f.genMipmaps?l.mipmask=(h[0].width<<1)-1:l.mipmask=h[0].mipmask,S.textureCube(l,f,h,i),l.internalformat=h[0].internalformat,d.width=h[0].width,d.height=h[0].height,dt(l),u=0;u<6;++u)X(h[u],34069+u);for(Q(f,34067),pt(),c.profile&&(l.stats.size=_t(l.internalformat,l.type,d.width,d.height,f.genMipmaps,!0)),d.format=x[l.internalformat],d.type=w[l.type],d.mag=E[f.magFilter],d.min=_[f.minFilter],d.wrapS=O[f.wrapS],d.wrapT=O[f.wrapT],u=0;u<6;++u)q(h[u]);return d}return d(t,e,r,o,s,f),d.subimage=function(t,e,n,r,i){S(!!e,"must specify image data"),S("number"==typeof t&&t===(0|t)&&t>=0&&t<6,"invalid face");var o=0|n,a=0|r,s=0|i,u=F();return A(u,l),u.width=0,u.height=0,P(u,e),u.width=u.width||(l.width>>s)-o,u.height=u.height||(l.height>>s)-a,S(l.type===u.type&&l.format===u.format&&l.internalformat===u.internalformat,"incompatible format for texture.subimage"),S(o>=0&&a>=0&&o+u.width<=l.width&&a+u.height<=l.height,"texture.subimage write out of bounds"),S(l.mipmask&1<<s,"missing mipmap data"),S(u.data||u.element||u.needsCopy,"missing image data"),dt(l),D(u,34069+t,o,a,s),pt(),U(u),d},d.resize=function(t){var e=0|t;if(e!==l.width){d.width=l.width=e,d.height=l.height=e,dt(l);for(var r=0;r<6;++r)for(var i=0;l.mipmask>>i;++i)n.texImage2D(34069+r,i,l.format,e>>i,e>>i,0,l.format,l.type,null);return pt(),c.profile&&(l.stats.size=_t(l.internalformat,l.type,d.width,d.height,!1,!0)),d}},d._reglType="textureCube",d._texture=l,c.profile&&(d.stats=l.stats),d.destroy=function(){l.decRef()},d},clear:function(){for(var t=0;t<at;++t)n.activeTexture(33984+t),n.bindTexture(3553,null),st[t]=null;B(ot).forEach(Ot),u.cubeCount=0,u.textureCount=0},getTexture:function(t){return null},restore:function(){for(var t=0;t<at;++t){var e=st[t];e&&(e.bindCount=0,e.unit=-1,st[t]=null)}B(ot).forEach((function(t){t.texture=n.createTexture(),n.bindTexture(t.target,t.texture);for(var e=0;e<32;++e)if(0!=(t.mipmask&1<<e))if(3553===t.target)n.texImage2D(3553,e,t.internalformat,t.width>>e,t.height>>e,0,t.internalformat,t.type,null);else for(var r=0;r<6;++r)n.texImage2D(34069+r,e,t.internalformat,t.width>>e,t.height>>e,0,t.internalformat,t.type,null);Q(t.texInfo,t.target)}))},refresh:function(){for(var t=0;t<at;++t){var e=st[t];e&&(e.bindCount=0,e.unit=-1,st[t]=null),n.activeTexture(33984+t),n.bindTexture(3553,null),n.bindTexture(34067,null)}}}}pt[32854]=2,pt[32855]=2,pt[36194]=2,pt[34041]=4,pt[33776]=.5,pt[33777]=.5,pt[33778]=1,pt[33779]=1,pt[35986]=.5,pt[35987]=1,pt[34798]=1,pt[35840]=.5,pt[35841]=.25,pt[35842]=.5,pt[35843]=.25,pt[36196]=.5;var kt=[];function Mt(t,e,n){return kt[t]*e*n}kt[32854]=2,kt[32855]=2,kt[36194]=2,kt[33189]=2,kt[36168]=1,kt[34041]=4,kt[35907]=4,kt[34836]=16,kt[34842]=8,kt[34843]=6;var At=[6407,6408],Tt=[];Tt[6408]=4,Tt[6407]=3;var Ct=[];Ct[5121]=1,Ct[5126]=4,Ct[36193]=2;var It=[32854,32855,36194,35907,34842,34843,34836],Pt={};function jt(){this.state=0,this.x=0,this.y=0,this.z=0,this.w=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=5126,this.offset=0,this.stride=0,this.divisor=0}function Dt(e,n,r,i,o,a,s){function u(u){var c;null===n.next?(S(o.preserveDrawingBuffer,\'you must create a webgl context with "preserveDrawingBuffer":true in order to read pixels from the drawing buffer\'),c=5121):(S(null!==n.next.colorAttachments[0].texture,"You cannot read from a renderbuffer"),c=n.next.colorAttachments[0].texture._texture.type,a.oes_texture_float?(S(5121===c||5126===c,"Reading from a framebuffer is only allowed for the types \'uint8\' and \'float\'"),5126===c&&S(s.readFloat,"Reading \'float\' values is not permitted in your browser. For a fallback, please see: https://www.npmjs.com/package/glsl-read-float")):S(5121===c,"Reading from a framebuffer is only allowed for the type \'uint8\'"));var f=0,l=0,h=i.framebufferWidth,d=i.framebufferHeight,p=null;t(u)?p=u:u&&(S.type(u,"object","invalid arguments to regl.read()"),f=0|u.x,l=0|u.y,S(f>=0&&f<i.framebufferWidth,"invalid x offset for regl.read"),S(l>=0&&l<i.framebufferHeight,"invalid y offset for regl.read"),h=0|(u.width||i.framebufferWidth-f),d=0|(u.height||i.framebufferHeight-l),p=u.data||null),p&&(5121===c?S(p instanceof Uint8Array,"buffer must be \'Uint8Array\' when reading from a framebuffer of type \'uint8\'"):5126===c&&S(p instanceof Float32Array,"buffer must be \'Float32Array\' when reading from a framebuffer of type \'float\'")),S(h>0&&h+f<=i.framebufferWidth,"invalid width for read pixels"),S(d>0&&d+l<=i.framebufferHeight,"invalid height for read pixels"),r();var g=h*d*4;return p||(5121===c?p=new Uint8Array(g):5126===c&&(p=p||new Float32Array(g))),S.isTypedArray(p,"data buffer for regl.read() must be a typedarray"),S(p.byteLength>=g,"data buffer for regl.read() too small"),e.pixelStorei(3333,4),e.readPixels(f,l,h,d,6408,c,p),p}return function(t){return t&&"framebuffer"in t?function(t){var e;return n.setFBO({framebuffer:t.framebuffer},(function(){e=u(t)})),e}(t):u(t)}}function Nt(t){return Array.prototype.slice.call(t)}function Rt(t){return Nt(t).join("")}Pt[36053]="complete",Pt[36054]="incomplete attachment",Pt[36057]="incomplete dimensions",Pt[36055]="incomplete, missing attachment",Pt[36061]="unsupported";var Lt="xyzw".split(""),Bt="profile",Gt="framebuffer",Ft="vert",Ut="frag",zt="elements",Vt="primitive",Wt="count",Xt="offset",Yt="instances",Ht="vao",qt=Gt+"Width",Kt=Gt+"Height",Zt=["blend.func","blend.equation","stencil.func","stencil.opFront","stencil.opBack","sample.coverage","viewport","scissor.box","polygonOffset.offset"],Qt={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Jt=["constant color, constant alpha","one minus constant color, constant alpha","constant color, one minus constant alpha","one minus constant color, one minus constant alpha","constant alpha, constant color","constant alpha, one minus constant color","one minus constant alpha, constant color","one minus constant alpha, one minus constant color"],$t={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},te={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ee={frag:35632,vert:35633},ne={cw:2304,ccw:2305};function re(e){return Array.isArray(e)||t(e)||L(e)}function ie(t){return t.sort((function(t,e){return"viewport"===t?-1:"viewport"===e?1:t<e?-1:1}))}function oe(t,e,n,r){this.thisDep=t,this.contextDep=e,this.propDep=n,this.append=r}function ae(t){return t&&!(t.thisDep||t.contextDep||t.propDep)}function se(t){return new oe(!1,!1,!1,t)}function ue(t,e){var n=t.type;if(0===n){var r=t.data.length;return new oe(!0,r>=1,r>=2,e)}if(4===n){var i=t.data;return new oe(i.thisDep,i.contextDep,i.propDep,e)}if(5===n)return new oe(!1,!1,!1,e);if(6===n){for(var o=!1,a=!1,s=!1,u=0;u<t.data.length;++u){var c=t.data[u];if(1===c.type)s=!0;else if(2===c.type)a=!0;else if(3===c.type)o=!0;else if(0===c.type){o=!0;var f=c.data;f>=1&&(a=!0),f>=2&&(s=!0)}else 4===c.type&&(o=o||c.data.thisDep,a=a||c.data.contextDep,s=s||c.data.propDep)}return new oe(o,a,s,e)}return new oe(3===n,2===n,1===n,e)}var ce=new oe(!1,!1,!1,(function(){}));function fe(t,n,r,i,o,s,u,c,f,l,h,d,p,g,v){var y=l.Record,m={add:32774,subtract:32778,"reverse subtract":32779};r.ext_blend_minmax&&(m.min=32775,m.max=32776);var b=r.angle_instanced_arrays,x=r.webgl_draw_buffers,w={dirty:!0,profile:v.profile},E={},_=[],O={},k={};function A(t){return t.replace(".","_")}function T(t,e,n){var r=A(t);_.push(t),E[r]=w[r]=!!n,O[r]=e}function C(t,e,n){var r=A(t);_.push(t),Array.isArray(n)?(w[r]=n.slice(),E[r]=n.slice()):w[r]=E[r]=n,k[r]=e}T("dither",3024),T("blend.enable",3042),C("blend.color","blendColor",[0,0,0,0]),C("blend.equation","blendEquationSeparate",[32774,32774]),C("blend.func","blendFuncSeparate",[1,0,1,0]),T("depth.enable",2929,!0),C("depth.func","depthFunc",513),C("depth.range","depthRange",[0,1]),C("depth.mask","depthMask",!0),C("colorMask","colorMask",[!0,!0,!0,!0]),T("cull.enable",2884),C("cull.face","cullFace",1029),C("frontFace","frontFace",2305),C("lineWidth","lineWidth",1),T("polygonOffset.enable",32823),C("polygonOffset.offset","polygonOffset",[0,0]),T("sample.alpha",32926),T("sample.enable",32928),C("sample.coverage","sampleCoverage",[1,!1]),T("stencil.enable",2960),C("stencil.mask","stencilMask",-1),C("stencil.func","stencilFunc",[519,0,-1]),C("stencil.opFront","stencilOpSeparate",[1028,7680,7680,7680]),C("stencil.opBack","stencilOpSeparate",[1029,7680,7680,7680]),T("scissor.enable",3089),C("scissor.box","scissor",[0,0,t.drawingBufferWidth,t.drawingBufferHeight]),C("viewport","viewport",[0,0,t.drawingBufferWidth,t.drawingBufferHeight]);var I={gl:t,context:p,strings:n,next:E,current:w,draw:d,elements:s,buffer:o,shader:h,attributes:l.state,vao:l,uniforms:f,framebuffer:c,extensions:r,timer:g,isBufferArgs:re},P={primTypes:Z,compareFuncs:$t,blendFuncs:Qt,blendEquations:m,stencilOps:te,glTypes:z,orientationType:ne};S.optional((function(){I.isArrayLike=tt})),x&&(P.backBuffer=[1029],P.drawBuffer=j(i.maxDrawbuffers,(function(t){return 0===t?[0]:j(t,(function(t){return 36064+t}))})));var D=0;function N(){var t=function(){var t=0,n=[],r=[];function i(){var n=[],r=[];return e((function(){n.push.apply(n,Nt(arguments))}),{def:function(){var e="v"+t++;return r.push(e),arguments.length>0&&(n.push(e,"="),n.push.apply(n,Nt(arguments)),n.push(";")),e},toString:function(){return Rt([r.length>0?"var "+r.join(",")+";":"",Rt(n)])}})}function o(){var t=i(),n=i(),r=t.toString,o=n.toString;function a(e,r){n(e,r,"=",t.def(e,r),";")}return e((function(){t.apply(t,Nt(arguments))}),{def:t.def,entry:t,exit:n,save:a,set:function(e,n,r){a(e,n),t(e,n,"=",r,";")},toString:function(){return r()+o()}})}var a=i(),s={};return{global:a,link:function(e){for(var i=0;i<r.length;++i)if(r[i]===e)return n[i];var o="g"+t++;return n.push(o),r.push(e),o},block:i,proc:function(t,n){var r=[];function i(){var t="a"+r.length;return r.push(t),t}n=n||0;for(var a=0;a<n;++a)i();var u=o(),c=u.toString;return s[t]=e(u,{arg:i,toString:function(){return Rt(["function(",r.join(),"){",c(),"}"])}})},scope:o,cond:function(){var t=Rt(arguments),n=o(),r=o(),i=n.toString,a=r.toString;return e(n,{then:function(){return n.apply(n,Nt(arguments)),this},else:function(){return r.apply(r,Nt(arguments)),this},toString:function(){var e=a();return e&&(e="else{"+e+"}"),Rt(["if(",t,"){",i(),"}",e])}})},compile:function(){var t=[\'"use strict";\',a,"return {"];Object.keys(s).forEach((function(e){t.push(\'"\',e,\'":\',s[e].toString(),",")})),t.push("}");var e=Rt(t).replace(/;/g,";\\n").replace(/}/g,"}\\n").replace(/{/g,"{\\n");return Function.apply(null,n.concat(e)).apply(null,r)}}}(),r=t.link,i=t.global;t.id=D++,t.batchId="0";var o=r(I),a=t.shared={props:"a0"};Object.keys(I).forEach((function(t){a[t]=i.def(o,".",t)})),S.optional((function(){t.CHECK=r(S),t.commandStr=S.guessCommand(),t.command=r(t.commandStr),t.assert=function(t,e,n){t("if(!(",e,"))",this.CHECK,".commandRaise(",r(n),",",this.command,");")},P.invalidBlendCombinations=Jt}));var s=t.next={},u=t.current={};Object.keys(k).forEach((function(t){Array.isArray(w[t])&&(s[t]=i.def(a.next,".",t),u[t]=i.def(a.current,".",t))}));var c=t.constants={};Object.keys(P).forEach((function(t){c[t]=i.def(JSON.stringify(P[t]))})),t.invoke=function(e,n){switch(n.type){case 0:var i=["this",a.context,a.props,t.batchId];return e.def(r(n.data),".call(",i.slice(0,Math.max(n.data.length+1,4)),")");case 1:return e.def(a.props,n.data);case 2:return e.def(a.context,n.data);case 3:return e.def("this",n.data);case 4:return n.data.append(t,e),n.data.ref;case 5:return n.data.toString();case 6:return n.data.map((function(n){return t.invoke(e,n)}))}},t.attribCache={};var f={};return t.scopeAttrib=function(t){var e=n.id(t);if(e in f)return f[e];var i=l.scope[e];return i||(i=l.scope[e]=new y),f[e]=r(i)},t}function R(t,e,u,f,d){var p=t.static,g=t.dynamic;S.optional((function(){var t=[Gt,Ft,Ut,zt,Vt,Xt,Wt,Yt,Bt,Ht].concat(_);function e(e){Object.keys(e).forEach((function(e){S.command(t.indexOf(e)>=0,\'unknown parameter "\'+e+\'"\',d.commandStr)}))}e(p),e(g)}));var v=function(t,e){var n=t.static;if("string"==typeof n[Ut]&&"string"==typeof n[Ft]){if(Object.keys(e.dynamic).length>0)return null;var r=e.static,i=Object.keys(r);if(i.length>0&&"number"==typeof r[i[0]]){for(var o=[],a=0;a<i.length;++a)S("number"==typeof r[i[a]],"must specify all vertex attribute locations when using vaos"),o.push([0|r[i[a]],i[a]]);return o}}return null}(t,e),x=function(t,e){var n=t.static,r=t.dynamic;if(Gt in n){var i=n[Gt];return i?(i=c.getFramebuffer(i),S.command(i,"invalid framebuffer object"),se((function(t,e){var n=t.link(i),r=t.shared;e.set(r.framebuffer,".next",n);var o=r.context;return e.set(o,"."+qt,n+".width"),e.set(o,"."+Kt,n+".height"),n}))):se((function(t,e){var n=t.shared;e.set(n.framebuffer,".next","null");var r=n.context;return e.set(r,"."+qt,r+".drawingBufferWidth"),e.set(r,"."+Kt,r+".drawingBufferHeight"),"null"}))}if(Gt in r){var o=r[Gt];return ue(o,(function(t,e){var n=t.invoke(e,o),r=t.shared,i=r.framebuffer,a=e.def(i,".getFramebuffer(",n,")");S.optional((function(){t.assert(e,"!"+n+"||"+a,"invalid framebuffer object")})),e.set(i,".next",a);var s=r.context;return e.set(s,"."+qt,a+"?"+a+".width:"+s+".drawingBufferWidth"),e.set(s,"."+Kt,a+"?"+a+".height:"+s+".drawingBufferHeight"),a}))}return null}(t),w=function(t,e,n){var r=t.static,i=t.dynamic;function o(t){if(t in r){var o=r[t];S.commandType(o,"object","invalid "+t,n.commandStr);var a,s,u=!0,c=0|o.x,f=0|o.y;return"width"in o?(a=0|o.width,S.command(a>=0,"invalid "+t,n.commandStr)):u=!1,"height"in o?(s=0|o.height,S.command(s>=0,"invalid "+t,n.commandStr)):u=!1,new oe(!u&&e&&e.thisDep,!u&&e&&e.contextDep,!u&&e&&e.propDep,(function(t,e){var n=t.shared.context,r=a;"width"in o||(r=e.def(n,".",qt,"-",c));var i=s;return"height"in o||(i=e.def(n,".",Kt,"-",f)),[c,f,r,i]}))}if(t in i){var l=i[t],h=ue(l,(function(e,n){var r=e.invoke(n,l);S.optional((function(){e.assert(n,r+"&&typeof "+r+\'==="object"\',"invalid "+t)}));var i=e.shared.context,o=n.def(r,".x|0"),a=n.def(r,".y|0"),s=n.def(\'"width" in \',r,"?",r,".width|0:","(",i,".",qt,"-",o,")"),u=n.def(\'"height" in \',r,"?",r,".height|0:","(",i,".",Kt,"-",a,")");return S.optional((function(){e.assert(n,s+">=0&&"+u+">=0","invalid "+t)})),[o,a,s,u]}));return e&&(h.thisDep=h.thisDep||e.thisDep,h.contextDep=h.contextDep||e.contextDep,h.propDep=h.propDep||e.propDep),h}return e?new oe(e.thisDep,e.contextDep,e.propDep,(function(t,e){var n=t.shared.context;return[0,0,e.def(n,".",qt),e.def(n,".",Kt)]})):null}var a=o("viewport");if(a){var s=a;a=new oe(a.thisDep,a.contextDep,a.propDep,(function(t,e){var n=s.append(t,e),r=t.shared.context;return e.set(r,".viewportWidth",n[2]),e.set(r,".viewportHeight",n[3]),n}))}return{viewport:a,scissor_box:o("scissor.box")}}(t,x,d),E=function(t,e){var n=t.static,r=t.dynamic,i=function(){if(zt in n){var t=n[zt];re(t)?t=s.getElements(s.create(t,!0)):t&&(t=s.getElements(t),S.command(t,"invalid elements",e.commandStr));var i=se((function(e,n){if(t){var r=e.link(t);return e.ELEMENTS=r,r}return e.ELEMENTS=null,null}));return i.value=t,i}if(zt in r){var o=r[zt];return ue(o,(function(t,e){var n=t.shared,r=n.isBufferArgs,i=n.elements,a=t.invoke(e,o),s=e.def("null"),u=e.def(r,"(",a,")"),c=t.cond(u).then(s,"=",i,".createStream(",a,");").else(s,"=",i,".getElements(",a,");");return S.optional((function(){t.assert(c.else,"!"+a+"||"+s,"invalid elements")})),e.entry(c),e.exit(t.cond(u).then(i,".destroyStream(",s,");")),t.ELEMENTS=s,s}))}return null}();function o(t,o){if(t in n){var a=0|n[t];return S.command(!o||a>=0,"invalid "+t,e.commandStr),se((function(t,e){return o&&(t.OFFSET=a),a}))}if(t in r){var s=r[t];return ue(s,(function(e,n){var r=e.invoke(n,s);return o&&(e.OFFSET=r,S.optional((function(){e.assert(n,r+">=0","invalid "+t)}))),r}))}return o&&i?se((function(t,e){return t.OFFSET="0",0})):null}var a=o(Xt,!0);return{elements:i,primitive:function(){if(Vt in n){var t=n[Vt];return S.commandParameter(t,Z,"invalid primitve",e.commandStr),se((function(e,n){return Z[t]}))}if(Vt in r){var o=r[Vt];return ue(o,(function(t,e){var n=t.constants.primTypes,r=t.invoke(e,o);return S.optional((function(){t.assert(e,r+" in "+n,"invalid primitive, must be one of "+Object.keys(Z))})),e.def(n,"[",r,"]")}))}return i?ae(i)?i.value?se((function(t,e){return e.def(t.ELEMENTS,".primType")})):se((function(){return 4})):new oe(i.thisDep,i.contextDep,i.propDep,(function(t,e){var n=t.ELEMENTS;return e.def(n,"?",n,".primType:",4)})):null}(),count:function(){if(Wt in n){var t=0|n[Wt];return S.command("number"==typeof t&&t>=0,"invalid vertex count",e.commandStr),se((function(){return t}))}if(Wt in r){var o=r[Wt];return ue(o,(function(t,e){var n=t.invoke(e,o);return S.optional((function(){t.assert(e,"typeof "+n+\'==="number"&&\'+n+">=0&&"+n+"===("+n+"|0)","invalid vertex count")})),n}))}if(i){if(ae(i)){if(i)return a?new oe(a.thisDep,a.contextDep,a.propDep,(function(t,e){var n=e.def(t.ELEMENTS,".vertCount-",t.OFFSET);return S.optional((function(){t.assert(e,n+">=0","invalid vertex offset/element buffer too small")})),n})):se((function(t,e){return e.def(t.ELEMENTS,".vertCount")}));var s=se((function(){return-1}));return S.optional((function(){s.MISSING=!0})),s}var u=new oe(i.thisDep||a.thisDep,i.contextDep||a.contextDep,i.propDep||a.propDep,(function(t,e){var n=t.ELEMENTS;return t.OFFSET?e.def(n,"?",n,".vertCount-",t.OFFSET,":-1"):e.def(n,"?",n,".vertCount:-1")}));return S.optional((function(){u.DYNAMIC=!0})),u}return null}(),instances:o(Yt,!1),offset:a}}(t,d),O=function(t,e){var n=t.static,r=t.dynamic,o={};return _.forEach((function(t){var s=A(t);function u(e,i){if(t in n){var a=e(n[t]);o[s]=se((function(){return a}))}else if(t in r){var u=r[t];o[s]=ue(u,(function(t,e){return i(t,e,t.invoke(e,u))}))}}switch(t){case"cull.enable":case"blend.enable":case"dither":case"stencil.enable":case"depth.enable":case"scissor.enable":case"polygonOffset.enable":case"sample.alpha":case"sample.enable":case"depth.mask":return u((function(n){return S.commandType(n,"boolean",t,e.commandStr),n}),(function(e,n,r){return S.optional((function(){e.assert(n,"typeof "+r+\'==="boolean"\',"invalid flag "+t,e.commandStr)})),r}));case"depth.func":return u((function(n){return S.commandParameter(n,$t,"invalid "+t,e.commandStr),$t[n]}),(function(e,n,r){var i=e.constants.compareFuncs;return S.optional((function(){e.assert(n,r+" in "+i,"invalid "+t+", must be one of "+Object.keys($t))})),n.def(i,"[",r,"]")}));case"depth.range":return u((function(t){return S.command(tt(t)&&2===t.length&&"number"==typeof t[0]&&"number"==typeof t[1]&&t[0]<=t[1],"depth range is 2d array",e.commandStr),t}),(function(t,e,n){return S.optional((function(){t.assert(e,t.shared.isArrayLike+"("+n+")&&"+n+".length===2&&typeof "+n+\'[0]==="number"&&typeof \'+n+\'[1]==="number"&&\'+n+"[0]<="+n+"[1]","depth range must be a 2d array")})),[e.def("+",n,"[0]"),e.def("+",n,"[1]")]}));case"blend.func":return u((function(t){S.commandType(t,"object","blend.func",e.commandStr);var n="srcRGB"in t?t.srcRGB:t.src,r="srcAlpha"in t?t.srcAlpha:t.src,i="dstRGB"in t?t.dstRGB:t.dst,o="dstAlpha"in t?t.dstAlpha:t.dst;return S.commandParameter(n,Qt,s+".srcRGB",e.commandStr),S.commandParameter(r,Qt,s+".srcAlpha",e.commandStr),S.commandParameter(i,Qt,s+".dstRGB",e.commandStr),S.commandParameter(o,Qt,s+".dstAlpha",e.commandStr),S.command(-1===Jt.indexOf(n+", "+i),"unallowed blending combination (srcRGB, dstRGB) = ("+n+", "+i+")",e.commandStr),[Qt[n],Qt[i],Qt[r],Qt[o]]}),(function(e,n,r){var i=e.constants.blendFuncs;function o(o,a){var s=n.def(\'"\',o,a,\'" in \',r,"?",r,".",o,a,":",r,".",o);return S.optional((function(){e.assert(n,s+" in "+i,"invalid "+t+"."+o+a+", must be one of "+Object.keys(Qt))})),s}S.optional((function(){e.assert(n,r+"&&typeof "+r+\'==="object"\',"invalid blend func, must be an object")}));var a=o("src","RGB"),s=o("dst","RGB");S.optional((function(){var t=e.constants.invalidBlendCombinations;e.assert(n,t+".indexOf("+a+\'+", "+\'+s+") === -1 ","unallowed blending combination for (srcRGB, dstRGB)")}));var u=n.def(i,"[",a,"]"),c=n.def(i,"[",o("src","Alpha"),"]");return[u,n.def(i,"[",s,"]"),c,n.def(i,"[",o("dst","Alpha"),"]")]}));case"blend.equation":return u((function(n){return"string"==typeof n?(S.commandParameter(n,m,"invalid "+t,e.commandStr),[m[n],m[n]]):"object"===a(n)?(S.commandParameter(n.rgb,m,t+".rgb",e.commandStr),S.commandParameter(n.alpha,m,t+".alpha",e.commandStr),[m[n.rgb],m[n.alpha]]):void S.commandRaise("invalid blend.equation",e.commandStr)}),(function(e,n,r){var i=e.constants.blendEquations,o=n.def(),a=n.def(),s=e.cond("typeof ",r,\'==="string"\');return S.optional((function(){function n(t,n,r){e.assert(t,r+" in "+i,"invalid "+n+", must be one of "+Object.keys(m))}n(s.then,t,r),e.assert(s.else,r+"&&typeof "+r+\'==="object"\',"invalid "+t),n(s.else,t+".rgb",r+".rgb"),n(s.else,t+".alpha",r+".alpha")})),s.then(o,"=",a,"=",i,"[",r,"];"),s.else(o,"=",i,"[",r,".rgb];",a,"=",i,"[",r,".alpha];"),n(s),[o,a]}));case"blend.color":return u((function(t){return S.command(tt(t)&&4===t.length,"blend.color must be a 4d array",e.commandStr),j(4,(function(e){return+t[e]}))}),(function(t,e,n){return S.optional((function(){t.assert(e,t.shared.isArrayLike+"("+n+")&&"+n+".length===4","blend.color must be a 4d array")})),j(4,(function(t){return e.def("+",n,"[",t,"]")}))}));case"stencil.mask":return u((function(t){return S.commandType(t,"number",s,e.commandStr),0|t}),(function(t,e,n){return S.optional((function(){t.assert(e,"typeof "+n+\'==="number"\',"invalid stencil.mask")})),e.def(n,"|0")}));case"stencil.func":return u((function(n){S.commandType(n,"object",s,e.commandStr);var r=n.cmp||"keep",i=n.ref||0,o="mask"in n?n.mask:-1;return S.commandParameter(r,$t,t+".cmp",e.commandStr),S.commandType(i,"number",t+".ref",e.commandStr),S.commandType(o,"number",t+".mask",e.commandStr),[$t[r],i,o]}),(function(t,e,n){var r=t.constants.compareFuncs;return S.optional((function(){function i(){t.assert(e,Array.prototype.join.call(arguments,""),"invalid stencil.func")}i(n+"&&typeof ",n,\'==="object"\'),i(\'!("cmp" in \',n,")||(",n,".cmp in ",r,")")})),[e.def(\'"cmp" in \',n,"?",r,"[",n,".cmp]",":",7680),e.def(n,".ref|0"),e.def(\'"mask" in \',n,"?",n,".mask|0:-1")]}));case"stencil.opFront":case"stencil.opBack":return u((function(n){S.commandType(n,"object",s,e.commandStr);var r=n.fail||"keep",i=n.zfail||"keep",o=n.zpass||"keep";return S.commandParameter(r,te,t+".fail",e.commandStr),S.commandParameter(i,te,t+".zfail",e.commandStr),S.commandParameter(o,te,t+".zpass",e.commandStr),["stencil.opBack"===t?1029:1028,te[r],te[i],te[o]]}),(function(e,n,r){var i=e.constants.stencilOps;function o(o){return S.optional((function(){e.assert(n,\'!("\'+o+\'" in \'+r+")||("+r+"."+o+" in "+i+")","invalid "+t+"."+o+", must be one of "+Object.keys(te))})),n.def(\'"\',o,\'" in \',r,"?",i,"[",r,".",o,"]:",7680)}return S.optional((function(){e.assert(n,r+"&&typeof "+r+\'==="object"\',"invalid "+t)})),["stencil.opBack"===t?1029:1028,o("fail"),o("zfail"),o("zpass")]}));case"polygonOffset.offset":return u((function(t){S.commandType(t,"object",s,e.commandStr);var n=0|t.factor,r=0|t.units;return S.commandType(n,"number",s+".factor",e.commandStr),S.commandType(r,"number",s+".units",e.commandStr),[n,r]}),(function(e,n,r){return S.optional((function(){e.assert(n,r+"&&typeof "+r+\'==="object"\',"invalid "+t)})),[n.def(r,".factor|0"),n.def(r,".units|0")]}));case"cull.face":return u((function(t){var n=0;return"front"===t?n=1028:"back"===t&&(n=1029),S.command(!!n,s,e.commandStr),n}),(function(t,e,n){return S.optional((function(){t.assert(e,n+\'==="front"||\'+n+\'==="back"\',"invalid cull.face")})),e.def(n,\'==="front"?\',1028,":",1029)}));case"lineWidth":return u((function(t){return S.command("number"==typeof t&&t>=i.lineWidthDims[0]&&t<=i.lineWidthDims[1],"invalid line width, must be a positive number between "+i.lineWidthDims[0]+" and "+i.lineWidthDims[1],e.commandStr),t}),(function(t,e,n){return S.optional((function(){t.assert(e,"typeof "+n+\'==="number"&&\'+n+">="+i.lineWidthDims[0]+"&&"+n+"<="+i.lineWidthDims[1],"invalid line width")})),n}));case"frontFace":return u((function(t){return S.commandParameter(t,ne,s,e.commandStr),ne[t]}),(function(t,e,n){return S.optional((function(){t.assert(e,n+\'==="cw"||\'+n+\'==="ccw"\',"invalid frontFace, must be one of cw,ccw")})),e.def(n+\'==="cw"?2304:2305\')}));case"colorMask":return u((function(t){return S.command(tt(t)&&4===t.length,"color.mask must be length 4 array",e.commandStr),t.map((function(t){return!!t}))}),(function(t,e,n){return S.optional((function(){t.assert(e,t.shared.isArrayLike+"("+n+")&&"+n+".length===4","invalid color.mask")})),j(4,(function(t){return"!!"+n+"["+t+"]"}))}));case"sample.coverage":return u((function(t){S.command("object"===a(t)&&t,s,e.commandStr);var n="value"in t?t.value:1,r=!!t.invert;return S.command("number"==typeof n&&n>=0&&n<=1,"sample.coverage.value must be a number between 0 and 1",e.commandStr),[n,r]}),(function(t,e,n){return S.optional((function(){t.assert(e,n+"&&typeof "+n+\'==="object"\',"invalid sample.coverage")})),[e.def(\'"value" in \',n,"?+",n,".value:1"),e.def("!!",n,".invert")]}))}})),o}(t,d),k=function(t,e,r){var i=t.static,o=t.dynamic;function a(t){if(t in i){var e=n.id(i[t]);S.optional((function(){h.shader(ee[t],e,S.guessCommand())}));var r=se((function(){return e}));return r.id=e,r}if(t in o){var a=o[t];return ue(a,(function(e,n){var r=e.invoke(n,a),i=n.def(e.shared.strings,".id(",r,")");return S.optional((function(){n(e.shared.shader,".shader(",ee[t],",",i,",",e.command,");")})),i}))}return null}var s,u=a(Ut),c=a(Ft),f=null;return ae(u)&&ae(c)?(f=h.program(c.id,u.id,null,r),s=se((function(t,e){return t.link(f)}))):s=new oe(u&&u.thisDep||c&&c.thisDep,u&&u.contextDep||c&&c.contextDep,u&&u.propDep||c&&c.propDep,(function(t,e){var n,r=t.shared.shader;n=u?u.append(t,e):e.def(r,".",Ut);var i=r+".program("+(c?c.append(t,e):e.def(r,".",Ft))+","+n;return S.optional((function(){i+=","+t.command})),e.def(i+")")})),{frag:u,vert:c,progVar:s,program:f}}(t,0,v);function M(t){var e=w[t];e&&(O[t]=e)}M("viewport"),M(A("scissor.box"));var T=Object.keys(O).length>0,C={framebuffer:x,draw:E,shader:k,state:O,dirty:T,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(C.profile=function(t){var e,n=t.static,r=t.dynamic;if(Bt in n){var i=!!n[Bt];(e=se((function(t,e){return i}))).enable=i}else if(Bt in r){var o=r[Bt];e=ue(o,(function(t,e){return t.invoke(e,o)}))}return e}(t),C.uniforms=function(t,e){var n=t.static,r=t.dynamic,i={};return Object.keys(n).forEach((function(t){var r,o=n[t];if("number"==typeof o||"boolean"==typeof o)r=se((function(){return o}));else if("function"==typeof o){var a=o._reglType;"texture2d"===a||"textureCube"===a?r=se((function(t){return t.link(o)})):"framebuffer"===a||"framebufferCube"===a?(S.command(o.color.length>0,\'missing color attachment for framebuffer sent to uniform "\'+t+\'"\',e.commandStr),r=se((function(t){return t.link(o.color[0])}))):S.commandRaise(\'invalid data for uniform "\'+t+\'"\',e.commandStr)}else tt(o)?r=se((function(e){return e.global.def("[",j(o.length,(function(n){return S.command("number"==typeof o[n]||"boolean"==typeof o[n],"invalid uniform "+t,e.commandStr),o[n]})),"]")})):S.commandRaise(\'invalid or missing data for uniform "\'+t+\'"\',e.commandStr);r.value=o,i[t]=r})),Object.keys(r).forEach((function(t){var e=r[t];i[t]=ue(e,(function(t,n){return t.invoke(n,e)}))})),i}(u,d),C.drawVAO=C.scopeVAO=function(t,e){var n=t.static,r=t.dynamic;if(Ht in n){var i=n[Ht];return null!==i&&null===l.getVAO(i)&&(i=l.createVAO(i)),se((function(t){return t.link(l.getVAO(i))}))}if(Ht in r){var o=r[Ht];return ue(o,(function(t,e){var n=t.invoke(e,o);return e.def(t.shared.vao+".getVAO("+n+")")}))}return null}(t),!C.drawVAO&&k.program&&!v&&r.angle_instanced_arrays){var I=!0,P=k.program.attributes.map((function(t){var n=e.static[t];return I=I&&!!n,n}));if(I&&P.length>0){var D=l.getVAO(l.createVAO(P));C.drawVAO=new oe(null,null,null,(function(t,e){return t.link(D)})),C.useVAO=!0}}return v?C.useVAO=!0:C.attributes=function(t,e){var r=t.static,i=t.dynamic,s={};return Object.keys(r).forEach((function(t){var i=r[t],u=n.id(t),c=new y;if(re(i))c.state=1,c.buffer=o.getBuffer(o.create(i,34962,!1,!0)),c.type=0;else{var f=o.getBuffer(i);if(f)c.state=1,c.buffer=f,c.type=0;else if(S.command("object"===a(i)&&i,"invalid data for attribute "+t,e.commandStr),"constant"in i){var l=i.constant;c.buffer="null",c.state=2,"number"==typeof l?c.x=l:(S.command(tt(l)&&l.length>0&&l.length<=4,"invalid constant for attribute "+t,e.commandStr),Lt.forEach((function(t,e){e<l.length&&(c[t]=l[e])})))}else{f=re(i.buffer)?o.getBuffer(o.create(i.buffer,34962,!1,!0)):o.getBuffer(i.buffer),S.command(!!f,\'missing buffer for attribute "\'+t+\'"\',e.commandStr);var h=0|i.offset;S.command(h>=0,\'invalid offset for attribute "\'+t+\'"\',e.commandStr);var d=0|i.stride;S.command(d>=0&&d<256,\'invalid stride for attribute "\'+t+\'", must be integer betweeen [0, 255]\',e.commandStr);var p=0|i.size;S.command(!("size"in i)||p>0&&p<=4,\'invalid size for attribute "\'+t+\'", must be 1,2,3,4\',e.commandStr);var g=!!i.normalized,v=0;"type"in i&&(S.commandParameter(i.type,z,"invalid type for attribute "+t,e.commandStr),v=z[i.type]);var m=0|i.divisor;"divisor"in i&&(S.command(0===m||b,\'cannot specify divisor for attribute "\'+t+\'", instancing not supported\',e.commandStr),S.command(m>=0,\'invalid divisor for attribute "\'+t+\'"\',e.commandStr)),S.optional((function(){var n=e.commandStr,r=["buffer","offset","divisor","normalized","type","size","stride"];Object.keys(i).forEach((function(e){S.command(r.indexOf(e)>=0,\'unknown parameter "\'+e+\'" for attribute pointer "\'+t+\'" (valid parameters are \'+r+")",n)}))})),c.buffer=f,c.state=1,c.size=p,c.normalized=g,c.type=v||f.dtype,c.offset=h,c.stride=d,c.divisor=m}}s[t]=se((function(t,e){var n=t.attribCache;if(u in n)return n[u];var r={isStream:!1};return Object.keys(c).forEach((function(t){r[t]=c[t]})),c.buffer&&(r.buffer=t.link(c.buffer),r.type=r.type||r.buffer+".dtype"),n[u]=r,r}))})),Object.keys(i).forEach((function(t){var e=i[t];s[t]=ue(e,(function(n,r){var i=n.invoke(r,e),o=n.shared,a=n.constants,s=o.isBufferArgs,u=o.buffer;S.optional((function(){n.assert(r,i+"&&(typeof "+i+\'==="object"||typeof \'+i+\'==="function")&&(\'+s+"("+i+")||"+u+".getBuffer("+i+")||"+u+".getBuffer("+i+".buffer)||"+s+"("+i+\'.buffer)||("constant" in \'+i+"&&(typeof "+i+\'.constant==="number"||\'+o.isArrayLike+"("+i+".constant))))",\'invalid dynamic attribute "\'+t+\'"\')}));var c={isStream:r.def(!1)},f=new y;f.state=1,Object.keys(f).forEach((function(t){c[t]=r.def(""+f[t])}));var l=c.buffer,h=c.type;function d(t){r(c[t],"=",i,".",t,"|0;")}return r("if(",s,"(",i,")){",c.isStream,"=true;",l,"=",u,".createStream(",34962,",",i,");",h,"=",l,".dtype;","}else{",l,"=",u,".getBuffer(",i,");","if(",l,"){",h,"=",l,".dtype;",\'}else if("constant" in \',i,"){",c.state,"=",2,";","if(typeof "+i+\'.constant === "number"){\',c[Lt[0]],"=",i,".constant;",Lt.slice(1).map((function(t){return c[t]})).join("="),"=0;","}else{",Lt.map((function(t,e){return c[t]+"="+i+".constant.length>"+e+"?"+i+".constant["+e+"]:0;"})).join(""),"}}else{","if(",s,"(",i,".buffer)){",l,"=",u,".createStream(",34962,",",i,".buffer);","}else{",l,"=",u,".getBuffer(",i,".buffer);","}",h,\'="type" in \',i,"?",a.glTypes,"[",i,".type]:",l,".dtype;",c.normalized,"=!!",i,".normalized;"),d("size"),d("offset"),d("stride"),d("divisor"),r("}}"),r.exit("if(",c.isStream,"){",u,".destroyStream(",l,");","}"),c}))})),s}(e,d),C.context=function(t){var e=t.static,n=t.dynamic,r={};return Object.keys(e).forEach((function(t){var n=e[t];r[t]=se((function(t,e){return"number"==typeof n||"boolean"==typeof n?""+n:t.link(n)}))})),Object.keys(n).forEach((function(t){var e=n[t];r[t]=ue(e,(function(t,n){return t.invoke(n,e)}))})),r}(f),C}function L(t,e,n){var r=t.shared.context,i=t.scope();Object.keys(n).forEach((function(o){e.save(r,"."+o);var a=n[o].append(t,e);Array.isArray(a)?i(r,".",o,"=[",a.join(),"];"):i(r,".",o,"=",a,";")})),e(i)}function B(t,e,n,r){var i,o=t.shared,a=o.gl,s=o.framebuffer;x&&(i=e.def(o.extensions,".webgl_draw_buffers"));var u,c=t.constants,f=c.drawBuffer,l=c.backBuffer;u=n?n.append(t,e):e.def(s,".next"),r||e("if(",u,"!==",s,".cur){"),e("if(",u,"){",a,".bindFramebuffer(",36160,",",u,".framebuffer);"),x&&e(i,".drawBuffersWEBGL(",f,"[",u,".colorAttachments.length]);"),e("}else{",a,".bindFramebuffer(",36160,",null);"),x&&e(i,".drawBuffersWEBGL(",l,");"),e("}",s,".cur=",u,";"),r||e("}")}function G(t,e,n){var r=t.shared,i=r.gl,o=t.current,a=t.next,s=r.current,u=r.next,c=t.cond(s,".dirty");_.forEach((function(e){var r,f,l=A(e);if(!(l in n.state))if(l in a){r=a[l],f=o[l];var h=j(w[l].length,(function(t){return c.def(r,"[",t,"]")}));c(t.cond(h.map((function(t,e){return t+"!=="+f+"["+e+"]"})).join("||")).then(i,".",k[l],"(",h,");",h.map((function(t,e){return f+"["+e+"]="+t})).join(";"),";"))}else{r=c.def(u,".",l);var d=t.cond(r,"!==",s,".",l);c(d),l in O?d(t.cond(r).then(i,".enable(",O[l],");").else(i,".disable(",O[l],");"),s,".",l,"=",r,";"):d(i,".",k[l],"(",r,");",s,".",l,"=",r,";")}})),0===Object.keys(n.state).length&&c(s,".dirty=false;"),e(c)}function F(t,e,n,r){var i=t.shared,o=t.current,a=i.current,s=i.gl;ie(Object.keys(n)).forEach((function(i){var u=n[i];if(!r||r(u)){var c=u.append(t,e);if(O[i]){var f=O[i];ae(u)?e(s,c?".enable(":".disable(",f,");"):e(t.cond(c).then(s,".enable(",f,");").else(s,".disable(",f,");")),e(a,".",i,"=",c,";")}else if(tt(c)){var l=o[i];e(s,".",k[i],"(",c,");",c.map((function(t,e){return l+"["+e+"]="+t})).join(";"),";")}else e(s,".",k[i],"(",c,");",a,".",i,"=",c,";")}}))}function U(t,e){b&&(t.instancing=e.def(t.shared.extensions,".angle_instanced_arrays"))}function V(t,e,n,r,i){var o,a,s,u=t.shared,c=t.stats,f=u.current,l=u.timer,h=n.profile;function d(){return"undefined"==typeof performance?"Date.now()":"performance.now()"}function p(t){t(o=e.def(),"=",d(),";"),"string"==typeof i?t(c,".count+=",i,";"):t(c,".count++;"),g&&(r?t(a=e.def(),"=",l,".getNumPendingQueries();"):t(l,".beginQuery(",c,");"))}function v(t){t(c,".cpuTime+=",d(),"-",o,";"),g&&(r?t(l,".pushScopeStats(",a,",",l,".getNumPendingQueries(),",c,");"):t(l,".endQuery();"))}function y(t){var n=e.def(f,".profile");e(f,".profile=",t,";"),e.exit(f,".profile=",n,";")}if(h){if(ae(h))return void(h.enable?(p(e),v(e.exit),y("true")):y("false"));y(s=h.append(t,e))}else s=e.def(f,".profile");var m=t.block();p(m),e("if(",s,"){",m,"}");var b=t.block();v(b),e.exit("if(",s,"){",b,"}")}function W(t,e,n,r,i){var o=t.shared;r.forEach((function(r){var a,s=r.name,u=n.attributes[s];if(u){if(!i(u))return;a=u.append(t,e)}else{if(!i(ce))return;var c=t.scopeAttrib(s);S.optional((function(){t.assert(e,c+".state","missing attribute "+s)})),a={},Object.keys(new y).forEach((function(t){a[t]=e.def(c,".",t)}))}!function(n,r,i){var a=o.gl,s=e.def(n,".location"),u=e.def(o.attributes,"[",s,"]"),c=i.state,f=i.buffer,l=[i.x,i.y,i.z,i.w],h=["buffer","normalized","offset","stride"];function d(){e("if(!",u,".buffer){",a,".enableVertexAttribArray(",s,");}");var n,o=i.type;if(n=i.size?e.def(i.size,"||",r):r,e("if(",u,".type!==",o,"||",u,".size!==",n,"||",h.map((function(t){return u+"."+t+"!=="+i[t]})).join("||"),"){",a,".bindBuffer(",34962,",",f,".buffer);",a,".vertexAttribPointer(",[s,n,o,i.normalized,i.stride,i.offset],");",u,".type=",o,";",u,".size=",n,";",h.map((function(t){return u+"."+t+"="+i[t]+";"})).join(""),"}"),b){var c=i.divisor;e("if(",u,".divisor!==",c,"){",t.instancing,".vertexAttribDivisorANGLE(",[s,c],");",u,".divisor=",c,";}")}}function p(){e("if(",u,".buffer){",a,".disableVertexAttribArray(",s,");",u,".buffer=null;","}if(",Lt.map((function(t,e){return u+"."+t+"!=="+l[e]})).join("||"),"){",a,".vertexAttrib4f(",s,",",l,");",Lt.map((function(t,e){return u+"."+t+"="+l[e]+";"})).join(""),"}")}1===c?d():2===c?p():(e("if(",c,"===",1,"){"),d(),e("}else{"),p(),e("}"))}(t.link(r),function(t){switch(t){case 35664:case 35667:case 35671:return 2;case 35665:case 35668:case 35672:return 3;case 35666:case 35669:case 35673:return 4;default:return 1}}(r.info.type),a)}))}function X(t,e,r,i,o){for(var a,s=t.shared,u=s.gl,c=0;c<i.length;++c){var f,l=i[c],h=l.name,d=l.info.type,p=r.uniforms[h],g=t.link(l)+".location";if(p){if(!o(p))continue;if(ae(p)){var v=p.value;if(S.command(null!=v,\'missing uniform "\'+h+\'"\',t.commandStr),35678===d||35680===d){S.command("function"==typeof v&&(35678===d&&("texture2d"===v._reglType||"framebuffer"===v._reglType)||35680===d&&("textureCube"===v._reglType||"framebufferCube"===v._reglType)),"invalid texture for uniform "+h,t.commandStr);var y=t.link(v._texture||v.color[0]._texture);e(u,".uniform1i(",g,",",y+".bind());"),e.exit(y,".unbind();")}else if(35674===d||35675===d||35676===d){S.optional((function(){S.command(tt(v),"invalid matrix for uniform "+h,t.commandStr),S.command(35674===d&&4===v.length||35675===d&&9===v.length||35676===d&&16===v.length,"invalid length for matrix uniform "+h,t.commandStr)}));var m=t.global.def("new Float32Array(["+Array.prototype.slice.call(v)+"])"),b=2;35675===d?b=3:35676===d&&(b=4),e(u,".uniformMatrix",b,"fv(",g,",false,",m,");")}else{switch(d){case 5126:S.commandType(v,"number","uniform "+h,t.commandStr),a="1f";break;case 35664:S.command(tt(v)&&2===v.length,"uniform "+h,t.commandStr),a="2f";break;case 35665:S.command(tt(v)&&3===v.length,"uniform "+h,t.commandStr),a="3f";break;case 35666:S.command(tt(v)&&4===v.length,"uniform "+h,t.commandStr),a="4f";break;case 35670:S.commandType(v,"boolean","uniform "+h,t.commandStr),a="1i";break;case 5124:S.commandType(v,"number","uniform "+h,t.commandStr),a="1i";break;case 35671:case 35667:S.command(tt(v)&&2===v.length,"uniform "+h,t.commandStr),a="2i";break;case 35672:case 35668:S.command(tt(v)&&3===v.length,"uniform "+h,t.commandStr),a="3i";break;case 35673:case 35669:S.command(tt(v)&&4===v.length,"uniform "+h,t.commandStr),a="4i"}e(u,".uniform",a,"(",g,",",tt(v)?Array.prototype.slice.call(v):v,");")}continue}f=p.append(t,e)}else{if(!o(ce))continue;f=e.def(s.uniforms,"[",n.id(h),"]")}35678===d?(S(!Array.isArray(f),"must specify a scalar prop for textures"),e("if(",f,"&&",f,\'._reglType==="framebuffer"){\',f,"=",f,".color[0];","}")):35680===d&&(S(!Array.isArray(f),"must specify a scalar prop for cube maps"),e("if(",f,"&&",f,\'._reglType==="framebufferCube"){\',f,"=",f,".color[0];","}")),S.optional((function(){function n(n,r){t.assert(e,n,\'bad data or missing for uniform "\'+h+\'". \'+r)}function r(t){S(!Array.isArray(f),"must not specify an array type for uniform"),n("typeof "+f+\'==="\'+t+\'"\',"invalid type, expected "+t)}function i(e,r){Array.isArray(f)?S(f.length===e,"must have length "+e):n(s.isArrayLike+"("+f+")&&"+f+".length==="+e,"invalid vector, should have length "+e,t.commandStr)}function o(e){S(!Array.isArray(f),"must not specify a value type"),n("typeof "+f+\'==="function"&&\'+f+\'._reglType==="texture\'+(3553===e?"2d":"Cube")+\'"\',"invalid texture type",t.commandStr)}switch(d){case 5124:r("number");break;case 35667:i(2);break;case 35668:i(3);break;case 35669:i(4);break;case 5126:r("number");break;case 35664:i(2);break;case 35665:i(3);break;case 35666:i(4);break;case 35670:r("boolean");break;case 35671:i(2);break;case 35672:i(3);break;case 35673:case 35674:i(4);break;case 35675:i(9);break;case 35676:i(16);break;case 35678:o(3553);break;case 35680:o(34067)}}));var x=1;switch(d){case 35678:case 35680:var w=e.def(f,"._texture");e(u,".uniform1i(",g,",",w,".bind());"),e.exit(w,".unbind();");continue;case 5124:case 35670:a="1i";break;case 35667:case 35671:a="2i",x=2;break;case 35668:case 35672:a="3i",x=3;break;case 35669:case 35673:a="4i",x=4;break;case 5126:a="1f";break;case 35664:a="2f",x=2;break;case 35665:a="3f",x=3;break;case 35666:a="4f",x=4;break;case 35674:a="Matrix2fv";break;case 35675:a="Matrix3fv";break;case 35676:a="Matrix4fv"}if(e(u,".uniform",a,"(",g,","),"M"===a.charAt(0)){var E=Math.pow(d-35674+2,2),_=t.global.def("new Float32Array(",E,")");Array.isArray(f)?e("false,(",j(E,(function(t){return _+"["+t+"]="+f[t]})),",",_,")"):e("false,(Array.isArray(",f,")||",f," instanceof Float32Array)?",f,":(",j(E,(function(t){return _+"["+t+"]="+f+"["+t+"]"})),",",_,")")}else x>1?e(j(x,(function(t){return Array.isArray(f)?f[t]:f+"["+t+"]"}))):(S(!Array.isArray(f),"uniform value must not be an array"),e(f));e(");")}}function Y(t,e,n,r){var i=t.shared,o=i.gl,a=i.draw,s=r.draw,u=function(){var i,u=s.elements,c=e;return u?((u.contextDep&&r.contextDynamic||u.propDep)&&(c=n),i=u.append(t,c)):i=c.def(a,".",zt),i&&c("if("+i+")"+o+".bindBuffer(34963,"+i+".buffer.buffer);"),i}();function c(i){var o=s[i];return o?o.contextDep&&r.contextDynamic||o.propDep?o.append(t,n):o.append(t,e):e.def(a,".",i)}var f,l,h=c(Vt),d=c(Xt),p=function(){var i,o=s.count,u=e;return o?((o.contextDep&&r.contextDynamic||o.propDep)&&(u=n),i=o.append(t,u),S.optional((function(){o.MISSING&&t.assert(e,"false","missing vertex count"),o.DYNAMIC&&t.assert(u,i+">=0","missing vertex count")}))):(i=u.def(a,".",Wt),S.optional((function(){t.assert(u,i+">=0","missing vertex count")}))),i}();if("number"==typeof p){if(0===p)return}else n("if(",p,"){"),n.exit("}");b&&(f=c(Yt),l=t.instancing);var g=u+".type",v=s.elements&&ae(s.elements);function y(){function t(){n(l,".drawElementsInstancedANGLE(",[h,p,g,d+"<<(("+g+"-5121)>>1)",f],");")}function e(){n(l,".drawArraysInstancedANGLE(",[h,d,p,f],");")}u?v?t():(n("if(",u,"){"),t(),n("}else{"),e(),n("}")):e()}function m(){function t(){n(o+".drawElements("+[h,p,g,d+"<<(("+g+"-5121)>>1)"]+");")}function e(){n(o+".drawArrays("+[h,d,p]+");")}u?v?t():(n("if(",u,"){"),t(),n("}else{"),e(),n("}")):e()}b&&("number"!=typeof f||f>=0)?"string"==typeof f?(n("if(",f,">0){"),y(),n("}else if(",f,"<0){"),m(),n("}")):y():m()}function H(t,e,n,r,i){var o=N(),a=o.proc("body",i);return S.optional((function(){o.commandStr=e.commandStr,o.command=o.link(e.commandStr)})),b&&(o.instancing=a.def(o.shared.extensions,".angle_instanced_arrays")),t(o,a,n,r),o.compile().body}function q(t,e,n,r){U(t,e),n.useVAO?n.drawVAO?e(t.shared.vao,".setVAO(",n.drawVAO.append(t,e),");"):e(t.shared.vao,".setVAO(",t.shared.vao,".targetVAO);"):(e(t.shared.vao,".setVAO(null);"),W(t,e,n,r.attributes,(function(){return!0}))),X(t,e,n,r.uniforms,(function(){return!0})),Y(t,e,e,n)}function K(t,e,n,r){function i(){return!0}t.batchId="a1",U(t,e),W(t,e,n,r.attributes,i),X(t,e,n,r.uniforms,i),Y(t,e,e,n)}function Q(t,e,n,r){U(t,e);var i=n.contextDep,o=e.def(),a=e.def();t.shared.props=a,t.batchId=o;var s=t.scope(),u=t.scope();function c(t){return t.contextDep&&i||t.propDep}function f(t){return!c(t)}if(e(s.entry,"for(",o,"=0;",o,"<","a1",";++",o,"){",a,"=","a0","[",o,"];",u,"}",s.exit),n.needsContext&&L(t,u,n.context),n.needsFramebuffer&&B(t,u,n.framebuffer),F(t,u,n.state,c),n.profile&&c(n.profile)&&V(t,u,n,!1,!0),r)n.useVAO?n.drawVAO?c(n.drawVAO)?u(t.shared.vao,".setVAO(",n.drawVAO.append(t,u),");"):s(t.shared.vao,".setVAO(",n.drawVAO.append(t,s),");"):s(t.shared.vao,".setVAO(",t.shared.vao,".targetVAO);"):(s(t.shared.vao,".setVAO(null);"),W(t,s,n,r.attributes,f),W(t,u,n,r.attributes,c)),X(t,s,n,r.uniforms,f),X(t,u,n,r.uniforms,c),Y(t,s,u,n);else{var l=t.global.def("{}"),h=n.shader.progVar.append(t,u),d=u.def(h,".id"),p=u.def(l,"[",d,"]");u(t.shared.gl,".useProgram(",h,".program);","if(!",p,"){",p,"=",l,"[",d,"]=",t.link((function(e){return H(K,t,n,e,2)})),"(",h,");}",p,".call(this,a0[",o,"],",o,");")}}function J(t,e,n){var r=e.static[n];if(r&&function(t){if("object"===a(t)&&!tt(t)){for(var e=Object.keys(t),n=0;n<e.length;++n)if(M.isDynamic(t[e[n]]))return!0;return!1}}(r)){var i=t.global,o=Object.keys(r),s=!1,u=!1,c=!1,f=t.global.def("{}");o.forEach((function(e){var n=r[e];if(M.isDynamic(n)){"function"==typeof n&&(n=r[e]=M.unbox(n));var o=ue(n,null);s=s||o.thisDep,c=c||o.propDep,u=u||o.contextDep}else{switch(i(f,".",e,"="),a(n)){case"number":i(n);break;case"string":i(\'"\',n,\'"\');break;case"object":Array.isArray(n)&&i("[",n.join(),"]");break;default:i(t.link(n))}i(";")}})),e.dynamic[n]=new M.DynamicVariable(4,{thisDep:s,contextDep:u,propDep:c,ref:f,append:function(t,e){o.forEach((function(n){var i=r[n];if(M.isDynamic(i)){var o=t.invoke(e,i);e(f,".",n,"=",o,";")}}))}}),delete e.static[n]}}return{next:E,current:w,procs:function(){var t=N(),e=t.proc("poll"),n=t.proc("refresh"),o=t.block();e(o),n(o);var a,s=t.shared,u=s.gl,c=s.next,f=s.current;o(f,".dirty=false;"),B(t,e),B(t,n,null,!0),b&&(a=t.link(b)),r.oes_vertex_array_object&&n(t.link(r.oes_vertex_array_object),".bindVertexArrayOES(null);");for(var l=0;l<i.maxAttributes;++l){var h=n.def(s.attributes,"[",l,"]"),d=t.cond(h,".buffer");d.then(u,".enableVertexAttribArray(",l,");",u,".bindBuffer(",34962,",",h,".buffer.buffer);",u,".vertexAttribPointer(",l,",",h,".size,",h,".type,",h,".normalized,",h,".stride,",h,".offset);").else(u,".disableVertexAttribArray(",l,");",u,".vertexAttrib4f(",l,",",h,".x,",h,".y,",h,".z,",h,".w);",h,".buffer=null;"),n(d),b&&n(a,".vertexAttribDivisorANGLE(",l,",",h,".divisor);")}return n(t.shared.vao,".currentVAO=null;",t.shared.vao,".setVAO(",t.shared.vao,".targetVAO);"),Object.keys(O).forEach((function(r){var i=O[r],a=o.def(c,".",r),s=t.block();s("if(",a,"){",u,".enable(",i,")}else{",u,".disable(",i,")}",f,".",r,"=",a,";"),n(s),e("if(",a,"!==",f,".",r,"){",s,"}")})),Object.keys(k).forEach((function(r){var i,a,s=k[r],l=w[r],h=t.block();if(h(u,".",s,"("),tt(l)){var d=l.length;i=t.global.def(c,".",r),a=t.global.def(f,".",r),h(j(d,(function(t){return i+"["+t+"]"})),");",j(d,(function(t){return a+"["+t+"]="+i+"["+t+"];"})).join("")),e("if(",j(d,(function(t){return i+"["+t+"]!=="+a+"["+t+"]"})).join("||"),"){",h,"}")}else i=o.def(c,".",r),a=o.def(f,".",r),h(i,");",f,".",r,"=",i,";"),e("if(",i,"!==",a,"){",h,"}");n(h)})),t.compile()}(),compile:function(t,r,i,o,a){var s=N();s.stats=s.link(a),Object.keys(r.static).forEach((function(t){J(s,r,t)})),Zt.forEach((function(e){J(s,t,e)}));var u=R(t,r,i,o,s);return function(t,e){var n=t.proc("draw",1);U(t,n),L(t,n,e.context),B(t,n,e.framebuffer),G(t,n,e),F(t,n,e.state),V(t,n,e,!1,!0);var r=e.shader.progVar.append(t,n);if(n(t.shared.gl,".useProgram(",r,".program);"),e.shader.program)q(t,n,e,e.shader.program);else{n(t.shared.vao,".setVAO(null);");var i=t.global.def("{}"),o=n.def(r,".id"),a=n.def(i,"[",o,"]");n(t.cond(a).then(a,".call(this,a0);").else(a,"=",i,"[",o,"]=",t.link((function(n){return H(q,t,e,n,1)})),"(",r,");",a,".call(this,a0);"))}Object.keys(e.state).length>0&&n(t.shared.current,".dirty=true;")}(s,u),function(t,e){var r=t.proc("scope",3);t.batchId="a2";var i=t.shared,o=i.current;function a(n){var o=e.shader[n];o&&r.set(i.shader,"."+n,o.append(t,r))}L(t,r,e.context),e.framebuffer&&e.framebuffer.append(t,r),ie(Object.keys(e.state)).forEach((function(n){var o=e.state[n].append(t,r);tt(o)?o.forEach((function(e,i){r.set(t.next[n],"["+i+"]",e)})):r.set(i.next,"."+n,o)})),V(t,r,e,!0,!0),[zt,Xt,Wt,Yt,Vt].forEach((function(n){var o=e.draw[n];o&&r.set(i.draw,"."+n,""+o.append(t,r))})),Object.keys(e.uniforms).forEach((function(o){var a=e.uniforms[o].append(t,r);Array.isArray(a)&&(a="["+a.join()+"]"),r.set(i.uniforms,"["+n.id(o)+"]",a)})),Object.keys(e.attributes).forEach((function(n){var i=e.attributes[n].append(t,r),o=t.scopeAttrib(n);Object.keys(new y).forEach((function(t){r.set(o,"."+t,i[t])}))})),e.scopeVAO&&r.set(i.vao,".targetVAO",e.scopeVAO.append(t,r)),a(Ft),a(Ut),Object.keys(e.state).length>0&&(r(o,".dirty=true;"),r.exit(o,".dirty=true;")),r("a1(",t.shared.context,",a0,",t.batchId,");")}(s,u),function(t,e){var n=t.proc("batch",2);t.batchId="0",U(t,n);var r=!1,i=!0;Object.keys(e.context).forEach((function(t){r=r||e.context[t].propDep})),r||(L(t,n,e.context),i=!1);var o=e.framebuffer,a=!1;function s(t){return t.contextDep&&r||t.propDep}o?(o.propDep?r=a=!0:o.contextDep&&r&&(a=!0),a||B(t,n,o)):B(t,n,null),e.state.viewport&&e.state.viewport.propDep&&(r=!0),G(t,n,e),F(t,n,e.state,(function(t){return!s(t)})),e.profile&&s(e.profile)||V(t,n,e,!1,"a1"),e.contextDep=r,e.needsContext=i,e.needsFramebuffer=a;var u=e.shader.progVar;if(u.contextDep&&r||u.propDep)Q(t,n,e,null);else{var c=u.append(t,n);if(n(t.shared.gl,".useProgram(",c,".program);"),e.shader.program)Q(t,n,e,e.shader.program);else{n(t.shared.vao,".setVAO(null);");var f=t.global.def("{}"),l=n.def(c,".id"),h=n.def(f,"[",l,"]");n(t.cond(h).then(h,".call(this,a0,a1);").else(h,"=",f,"[",l,"]=",t.link((function(n){return H(Q,t,e,n,2)})),"(",c,");",h,".call(this,a0,a1);"))}}Object.keys(e.state).length>0&&n(t.shared.current,".dirty=true;")}(s,u),e(s.compile(),{destroy:function(){u.shader.program.destroy()}})}}}var le=function(t,e){if(!e.ext_disjoint_timer_query)return null;var n=[];function r(t){n.push(t)}var i=[];function o(){this.startQueryIndex=-1,this.endQueryIndex=-1,this.sum=0,this.stats=null}var a=[];function s(t){a.push(t)}var u=[];function c(t,e,n){var r=a.pop()||new o;r.startQueryIndex=t,r.endQueryIndex=e,r.sum=0,r.stats=n,u.push(r)}var f=[],l=[];return{beginQuery:function(t){var r=n.pop()||e.ext_disjoint_timer_query.createQueryEXT();e.ext_disjoint_timer_query.beginQueryEXT(35007,r),i.push(r),c(i.length-1,i.length,t)},endQuery:function(){e.ext_disjoint_timer_query.endQueryEXT(35007)},pushScopeStats:c,update:function(){var t,n,o=i.length;if(0!==o){l.length=Math.max(l.length,o+1),f.length=Math.max(f.length,o+1),f[0]=0,l[0]=0;var a=0;for(t=0,n=0;n<i.length;++n){var c=i[n];e.ext_disjoint_timer_query.getQueryObjectEXT(c,34919)?(a+=e.ext_disjoint_timer_query.getQueryObjectEXT(c,34918),r(c)):i[t++]=c,f[n+1]=a,l[n+1]=t}for(i.length=t,t=0,n=0;n<u.length;++n){var h=u[n],d=h.startQueryIndex,p=h.endQueryIndex;h.sum+=f[p]-f[d];var g=l[d],v=l[p];v===g?(h.stats.gpuTime+=h.sum/1e6,s(h)):(h.startQueryIndex=g,h.endQueryIndex=v,u[t++]=h)}u.length=t}},getNumPendingQueries:function(){return i.length},clear:function(){n.push.apply(n,i);for(var t=0;t<n.length;t++)e.ext_disjoint_timer_query.deleteQueryEXT(n[t]);i.length=0,n.length=0},restore:function(){i.length=0,n.length=0}}};function he(t,e){for(var n=0;n<t.length;++n)if(t[n]===e)return n;return-1}return function(n){var r=P(n);if(!r)return null;var i=r.gl,o=i.getContextAttributes(),s=i.isContextLost(),u=function(t,e){var n={};function r(e){S.type(e,"string","extension name must be string");var r,i=e.toLowerCase();try{r=n[i]=t.getExtension(i)}catch(t){}return!!r}for(var i=0;i<e.extensions.length;++i){var o=e.extensions[i];if(!r(o))return e.onDestroy(),e.onDone(\'"\'+o+\'" extension is not supported by the current WebGL context, try upgrading your system or a different browser\'),null}return e.optionalExtensions.forEach(r),{extensions:n,restore:function(){Object.keys(n).forEach((function(t){if(n[t]&&!r(t))throw new Error("(regl): error restoring extension "+t)}))}}}(i,r);if(!u)return null;var c,f,l=(c={"":0},f=[""],{id:function(t){var e=c[t];return e||(e=c[t]=f.length,f.push(t),e)},str:function(t){return f[t]}}),h={vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0},d=u.extensions,p=le(0,d),g=T(),v=i.drawingBufferWidth,y=i.drawingBufferHeight,m={tick:0,time:0,viewportWidth:v,viewportHeight:y,framebufferWidth:v,framebufferHeight:y,drawingBufferWidth:v,drawingBufferHeight:y,pixelRatio:r.pixelRatio},b=function(t,e){var n=1;e.ext_texture_filter_anisotropic&&(n=t.getParameter(34047));var r=1,i=1;e.webgl_draw_buffers&&(r=t.getParameter(34852),i=t.getParameter(36063));var o=!!e.oes_texture_float;if(o){var a=t.createTexture();t.bindTexture(3553,a),t.texImage2D(3553,0,6408,1,1,0,6408,5126,null);var s=t.createFramebuffer();if(t.bindFramebuffer(36160,s),t.framebufferTexture2D(36160,36064,3553,a,0),t.bindTexture(3553,null),36053!==t.checkFramebufferStatus(36160))o=!1;else{t.viewport(0,0,1,1),t.clearColor(1,0,0,1),t.clear(16384);var u=R.allocType(5126,4);t.readPixels(0,0,1,1,6408,5126,u),t.getError()?o=!1:(t.deleteFramebuffer(s),t.deleteTexture(a),o=1===u[0]),R.freeType(u)}}var c=!0;if("undefined"==typeof navigator||!(/MSIE/.test(navigator.userAgent)||/Trident\\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent))){var f=t.createTexture(),l=R.allocType(5121,36);t.activeTexture(33984),t.bindTexture(34067,f),t.texImage2D(34069,0,6408,3,3,0,6408,5121,l),R.freeType(l),t.bindTexture(34067,null),t.deleteTexture(f),c=!t.getError()}return{colorBits:[t.getParameter(3410),t.getParameter(3411),t.getParameter(3412),t.getParameter(3413)],depthBits:t.getParameter(3414),stencilBits:t.getParameter(3415),subpixelBits:t.getParameter(3408),extensions:Object.keys(e).filter((function(t){return!!e[t]})),maxAnisotropic:n,maxDrawbuffers:r,maxColorAttachments:i,pointSizeDims:t.getParameter(33901),lineWidthDims:t.getParameter(33902),maxViewportDims:t.getParameter(3386),maxCombinedTextureUnits:t.getParameter(35661),maxCubeMapSize:t.getParameter(34076),maxRenderbufferSize:t.getParameter(34024),maxTextureUnits:t.getParameter(34930),maxTextureSize:t.getParameter(3379),maxAttributes:t.getParameter(34921),maxVertexUniforms:t.getParameter(36347),maxVertexTextureUnits:t.getParameter(35660),maxVaryingVectors:t.getParameter(36348),maxFragmentUniforms:t.getParameter(36349),glsl:t.getParameter(35724),renderer:t.getParameter(7937),vendor:t.getParameter(7936),version:t.getParameter(7938),readFloat:o,npotTextureCube:c}}(i,d),x=function(e,n,r,i){var o=0,a={};function s(t){this.id=o++,this.buffer=e.createBuffer(),this.type=t,this.usage=35044,this.byteLength=0,this.dimension=1,this.dtype=5121,this.persistentData=null,r.profile&&(this.stats={size:0})}s.prototype.bind=function(){e.bindBuffer(this.type,this.buffer)},s.prototype.destroy=function(){l(this)};var u=[];function c(t,n,r){t.byteLength=n.byteLength,e.bufferData(t.type,n,r)}function f(e,n,r,i,o,a){var s,u;if(e.usage=r,Array.isArray(n)){if(e.dtype=i||5126,n.length>0)if(Array.isArray(n[0])){s=X(n);for(var f=1,l=1;l<s.length;++l)f*=s[l];e.dimension=f,c(e,u=W(n,s,e.dtype),r),a?e.persistentData=u:R.freeType(u)}else if("number"==typeof n[0]){e.dimension=o;var h=R.allocType(e.dtype,n.length);q(h,n),c(e,h,r),a?e.persistentData=h:R.freeType(h)}else t(n[0])?(e.dimension=n[0].length,e.dtype=i||H(n[0])||5126,c(e,u=W(n,[n.length,n[0].length],e.dtype),r),a?e.persistentData=u:R.freeType(u)):S.raise("invalid buffer data")}else if(t(n))e.dtype=i||H(n),e.dimension=o,c(e,n,r),a&&(e.persistentData=new Uint8Array(new Uint8Array(n.buffer)));else if(L(n)){s=n.shape;var d=n.stride,p=n.offset,g=0,v=0,y=0,m=0;1===s.length?(g=s[0],v=1,y=d[0],m=0):2===s.length?(g=s[0],v=s[1],y=d[0],m=d[1]):S.raise("invalid shape"),e.dtype=i||H(n.data)||5126,e.dimension=v;var b=R.allocType(e.dtype,g*v);K(b,n.data,g,v,y,m,p),c(e,b,r),a?e.persistentData=b:R.freeType(b)}else n instanceof ArrayBuffer?(e.dtype=5121,e.dimension=o,c(e,n,r),a&&(e.persistentData=new Uint8Array(new Uint8Array(n)))):S.raise("invalid buffer data")}function l(t){n.bufferCount--,i(t);var r=t.buffer;S(r,"buffer must not be deleted already"),e.deleteBuffer(r),t.buffer=null,delete a[t.id]}return r.profile&&(n.getTotalBufferSize=function(){var t=0;return Object.keys(a).forEach((function(e){t+=a[e].stats.size})),t}),{create:function(i,o,u,c){n.bufferCount++;var h=new s(o);function d(n){var i=35044,o=null,a=0,s=0,u=1;return Array.isArray(n)||t(n)||L(n)||n instanceof ArrayBuffer?o=n:"number"==typeof n?a=0|n:n&&(S.type(n,"object","buffer arguments must be an object, a number or an array"),"data"in n&&(S(null===o||Array.isArray(o)||t(o)||L(o),"invalid data for buffer"),o=n.data),"usage"in n&&(S.parameter(n.usage,V,"invalid buffer usage"),i=V[n.usage]),"type"in n&&(S.parameter(n.type,z,"invalid buffer type"),s=z[n.type]),"dimension"in n&&(S.type(n.dimension,"number","invalid dimension"),u=0|n.dimension),"length"in n&&(S.nni(a,"buffer length must be a nonnegative integer"),a=0|n.length)),h.bind(),o?f(h,o,i,s,u,c):(a&&e.bufferData(h.type,a,i),h.dtype=s||5121,h.usage=i,h.dimension=u,h.byteLength=a),r.profile&&(h.stats.size=h.byteLength*Y[h.dtype]),d}function p(t,n){S(n+t.byteLength<=h.byteLength,"invalid buffer subdata call, buffer is too small. Can\'t write data of size "+t.byteLength+" starting from offset "+n+" to a buffer of size "+h.byteLength),e.bufferSubData(h.type,n,t)}return a[h.id]=h,u||d(i),d._reglType="buffer",d._buffer=h,d.subdata=function(e,n){var r,i=0|(n||0);if(h.bind(),t(e)||e instanceof ArrayBuffer)p(e,i);else if(Array.isArray(e)){if(e.length>0)if("number"==typeof e[0]){var o=R.allocType(h.dtype,e.length);q(o,e),p(o,i),R.freeType(o)}else if(Array.isArray(e[0])||t(e[0])){r=X(e);var a=W(e,r,h.dtype);p(a,i),R.freeType(a)}else S.raise("invalid buffer data")}else if(L(e)){r=e.shape;var s=e.stride,u=0,c=0,f=0,l=0;1===r.length?(u=r[0],c=1,f=s[0],l=0):2===r.length?(u=r[0],c=r[1],f=s[0],l=s[1]):S.raise("invalid shape");var g=Array.isArray(e.data)?h.dtype:H(e.data),v=R.allocType(g,u*c);K(v,e.data,u,c,f,l,e.offset),p(v,i),R.freeType(v)}else S.raise("invalid data for buffer subdata");return d},r.profile&&(d.stats=h.stats),d.destroy=function(){l(h)},d},createStream:function(t,e){var n=u.pop();return n||(n=new s(t)),n.bind(),f(n,e,35040,0,1,!1),n},destroyStream:function(t){u.push(t)},clear:function(){B(a).forEach(l),u.forEach(l)},getBuffer:function(t){return t&&t._buffer instanceof s?t._buffer:null},restore:function(){B(a).forEach((function(t){t.buffer=e.createBuffer(),e.bindBuffer(t.type,t.buffer),e.bufferData(t.type,t.persistentData||t.byteLength,t.usage)}))},_initBuffer:f}}(i,h,r,(function(t){return w.destroyBuffer(t)})),w=function(e,n,r,i,o){for(var a=r.maxAttributes,s=new Array(a),u=0;u<a;++u)s[u]=new jt;var c=0,f={},l={Record:jt,scope:{},state:s,currentVAO:null,targetVAO:null,restore:h()?function(){h()&&B(f).forEach((function(t){t.refresh()}))}:function(){},createVAO:function(e){var r=new p;function s(e){S(Array.isArray(e),"arguments to vertex array constructor must be an array"),S(e.length<a,"too many attributes"),S(e.length>0,"must specify at least one attribute");var i={},u=r.attributes;u.length=e.length;for(var c=0;c<e.length;++c){var f,l=e[c],h=u[c]=new jt,d=l.data||l;Array.isArray(d)||t(d)||L(d)?(r.buffers[c]&&(f=r.buffers[c],t(d)&&f._buffer.byteLength>=d.byteLength?f.subdata(d):(f.destroy(),r.buffers[c]=null)),r.buffers[c]||(f=r.buffers[c]=o.create(l,34962,!1,!0)),h.buffer=o.getBuffer(f),h.size=0|h.buffer.dimension,h.normalized=!1,h.type=h.buffer.dtype,h.offset=0,h.stride=0,h.divisor=0,h.state=1,i[c]=1):o.getBuffer(l)?(h.buffer=o.getBuffer(l),h.size=0|h.buffer.dimension,h.normalized=!1,h.type=h.buffer.dtype,h.offset=0,h.stride=0,h.divisor=0,h.state=1):o.getBuffer(l.buffer)?(h.buffer=o.getBuffer(l.buffer),h.size=0|(+l.size||h.buffer.dimension),h.normalized=!!l.normalized||!1,"type"in l?(S.parameter(l.type,z,"invalid buffer type"),h.type=z[l.type]):h.type=h.buffer.dtype,h.offset=0|(l.offset||0),h.stride=0|(l.stride||0),h.divisor=0|(l.divisor||0),h.state=1,S(h.size>=1&&h.size<=4,"size must be between 1 and 4"),S(h.offset>=0,"invalid offset"),S(h.stride>=0&&h.stride<=255,"stride must be between 0 and 255"),S(h.divisor>=0,"divisor must be positive"),S(!h.divisor||!!n.angle_instanced_arrays,"ANGLE_instanced_arrays must be enabled to use divisor")):"x"in l?(S(c>0,"first attribute must not be a constant"),h.x=+l.x||0,h.y=+l.y||0,h.z=+l.z||0,h.w=+l.w||0,h.state=2):S(!1,"invalid attribute spec for location "+c)}for(var p=0;p<r.buffers.length;++p)!i[p]&&r.buffers[p]&&(r.buffers[p].destroy(),r.buffers[p]=null);return r.refresh(),s}return i.vaoCount+=1,s.destroy=function(){for(var t=0;t<r.buffers.length;++t)r.buffers[t]&&r.buffers[t].destroy();r.buffers.length=0,r.destroy()},s._vao=r,s._reglType="vao",s(e)},getVAO:function(t){return"function"==typeof t&&t._vao?t._vao:null},destroyBuffer:function(t){for(var n=0;n<s.length;++n){var r=s[n];r.buffer===t&&(e.disableVertexAttribArray(n),r.buffer=null)}},setVAO:h()?function(t){if(t!==l.currentVAO){var e=h();t?e.bindVertexArrayOES(t.vao):e.bindVertexArrayOES(null),l.currentVAO=t}}:function(t){if(t!==l.currentVAO){if(t)t.bindAttrs();else for(var n=d(),r=0;r<s.length;++r){var i=s[r];i.buffer?(e.enableVertexAttribArray(r),e.vertexAttribPointer(r,i.size,i.type,i.normalized,i.stride,i.offfset),n&&i.divisor&&n.vertexAttribDivisorANGLE(r,i.divisor)):(e.disableVertexAttribArray(r),e.vertexAttrib4f(r,i.x,i.y,i.z,i.w))}l.currentVAO=t}},clear:h()?function(){B(f).forEach((function(t){t.destroy()}))}:function(){}};function h(){return n.oes_vertex_array_object}function d(){return n.angle_instanced_arrays}function p(){this.id=++c,this.attributes=[];var t=h();this.vao=t?t.createVertexArrayOES():null,f[this.id]=this,this.buffers=[]}return p.prototype.bindAttrs=function(){for(var t=d(),n=this.attributes,r=0;r<n.length;++r){var i=n[r];i.buffer?(e.enableVertexAttribArray(r),e.bindBuffer(34962,i.buffer.buffer),e.vertexAttribPointer(r,i.size,i.type,i.normalized,i.stride,i.offset),t&&i.divisor&&t.vertexAttribDivisorANGLE(r,i.divisor)):(e.disableVertexAttribArray(r),e.vertexAttrib4f(r,i.x,i.y,i.z,i.w))}for(var o=n.length;o<a;++o)e.disableVertexAttribArray(o)},p.prototype.refresh=function(){var t=h();t&&(t.bindVertexArrayOES(this.vao),this.bindAttrs(),l.currentVAO=this)},p.prototype.destroy=function(){if(this.vao){var t=h();this===l.currentVAO&&(l.currentVAO=null,t.bindVertexArrayOES(null)),t.deleteVertexArrayOES(this.vao),this.vao=null}f[this.id]&&(delete f[this.id],i.vaoCount-=1)},l}(i,d,b,h,x),E=function(e,n,r,i){var o={},a=0,s={uint8:5121,uint16:5123};function u(t){this.id=a++,o[this.id]=this,this.buffer=t,this.primType=4,this.vertCount=0,this.type=0}n.oes_element_index_uint&&(s.uint32=5125),u.prototype.bind=function(){this.buffer.bind()};var c=[];function f(i,o,a,s,u,c,f){var l;if(i.buffer.bind(),o){var h=f;f||t(o)&&(!L(o)||t(o.data))||(h=n.oes_element_index_uint?5125:5123),r._initBuffer(i.buffer,o,a,h,3)}else e.bufferData(34963,c,a),i.buffer.dtype=l||5121,i.buffer.usage=a,i.buffer.dimension=3,i.buffer.byteLength=c;if(l=f,!f){switch(i.buffer.dtype){case 5121:case 5120:l=5121;break;case 5123:case 5122:l=5123;break;case 5125:case 5124:l=5125;break;default:S.raise("unsupported type for element array")}i.buffer.dtype=l}i.type=l,S(5125!==l||!!n.oes_element_index_uint,"32 bit element buffers not supported, enable oes_element_index_uint first");var d=u;d<0&&(d=i.buffer.byteLength,5123===l?d>>=1:5125===l&&(d>>=2)),i.vertCount=d;var p=s;if(s<0){p=4;var g=i.buffer.dimension;1===g&&(p=0),2===g&&(p=1),3===g&&(p=4)}i.primType=p}function l(t){i.elementsCount--,S(null!==t.buffer,"must not double destroy elements"),delete o[t.id],t.buffer.destroy(),t.buffer=null}return{create:function(e,n){var o=r.create(null,34963,!0),a=new u(o._buffer);function c(e){if(e)if("number"==typeof e)o(e),a.primType=4,a.vertCount=0|e,a.type=5121;else{var n=null,r=35044,i=-1,u=-1,l=0,h=0;Array.isArray(e)||t(e)||L(e)?n=e:(S.type(e,"object","invalid arguments for elements"),"data"in e&&(n=e.data,S(Array.isArray(n)||t(n)||L(n),"invalid data for element buffer")),"usage"in e&&(S.parameter(e.usage,V,"invalid element buffer usage"),r=V[e.usage]),"primitive"in e&&(S.parameter(e.primitive,Z,"invalid element buffer primitive"),i=Z[e.primitive]),"count"in e&&(S("number"==typeof e.count&&e.count>=0,"invalid vertex count for elements"),u=0|e.count),"type"in e&&(S.parameter(e.type,s,"invalid buffer type"),h=s[e.type]),"length"in e?l=0|e.length:(l=u,5123===h||5122===h?l*=2:5125!==h&&5124!==h||(l*=4))),f(a,n,r,i,u,l,h)}else o(),a.primType=4,a.vertCount=0,a.type=5121;return c}return i.elementsCount++,c(e),c._reglType="elements",c._elements=a,c.subdata=function(t,e){return o.subdata(t,e),c},c.destroy=function(){l(a)},c},createStream:function(t){var e=c.pop();return e||(e=new u(r.create(null,34963,!0,!1)._buffer)),f(e,t,35040,-1,-1,0,0),e},destroyStream:function(t){c.push(t)},getElements:function(t){return"function"==typeof t&&t._elements instanceof u?t._elements:null},clear:function(){B(o).forEach(l)}}}(i,d,x,h),_=function(t,n,r,i){var o={},a={};function s(t,e,n,r){this.name=t,this.id=e,this.location=n,this.info=r}function u(t,e){for(var n=0;n<t.length;++n)if(t[n].id===e.id)return void(t[n].location=e.location);t.push(e)}function c(e,r,i){var s=35632===e?o:a,u=s[r];if(!u){var c=n.str(r);u=t.createShader(e),t.shaderSource(u,c),t.compileShader(u),S.shaderError(t,u,c,e,i),s[r]=u}return u}var f={},l=[],h=0;function d(t,e){this.id=h++,this.fragId=t,this.vertId=e,this.program=null,this.uniforms=[],this.attributes=[],this.refCount=1,i.profile&&(this.stats={uniformsCount:0,attributesCount:0})}function p(e,r,o){var a,f,l=c(35632,e.fragId),h=c(35633,e.vertId),d=e.program=t.createProgram();if(t.attachShader(d,l),t.attachShader(d,h),o)for(a=0;a<o.length;++a){var p=o[a];t.bindAttribLocation(d,p[0],p[1])}t.linkProgram(d),S.linkError(t,d,n.str(e.fragId),n.str(e.vertId),r);var g=t.getProgramParameter(d,35718);i.profile&&(e.stats.uniformsCount=g);var v=e.uniforms;for(a=0;a<g;++a)if(f=t.getActiveUniform(d,a))if(f.size>1)for(var y=0;y<f.size;++y){var m=f.name.replace("[0]","["+y+"]");u(v,new s(m,n.id(m),t.getUniformLocation(d,m),f))}else u(v,new s(f.name,n.id(f.name),t.getUniformLocation(d,f.name),f));var b=t.getProgramParameter(d,35721);i.profile&&(e.stats.attributesCount=b);var x=e.attributes;for(a=0;a<b;++a)(f=t.getActiveAttrib(d,a))&&u(x,new s(f.name,n.id(f.name),t.getAttribLocation(d,f.name),f))}return i.profile&&(r.getMaxUniformsCount=function(){var t=0;return l.forEach((function(e){e.stats.uniformsCount>t&&(t=e.stats.uniformsCount)})),t},r.getMaxAttributesCount=function(){var t=0;return l.forEach((function(e){e.stats.attributesCount>t&&(t=e.stats.attributesCount)})),t}),{clear:function(){var e=t.deleteShader.bind(t);B(o).forEach(e),o={},B(a).forEach(e),a={},l.forEach((function(e){t.deleteProgram(e.program)})),l.length=0,f={},r.shaderCount=0},program:function(n,i,s,u){S.command(n>=0,"missing vertex shader",s),S.command(i>=0,"missing fragment shader",s);var c=f[i];c||(c=f[i]={});var h=c[n];if(h&&(h.refCount++,!u))return h;var g=new d(i,n);return r.shaderCount++,p(g,s,u),h||(c[n]=g),l.push(g),e(g,{destroy:function(){if(g.refCount--,g.refCount<=0){t.deleteProgram(g.program);var e=l.indexOf(g);l.splice(e,1),r.shaderCount--}c[g.vertId].refCount<=0&&(t.deleteShader(a[g.vertId]),delete a[g.vertId],delete f[g.fragId][g.vertId]),Object.keys(f[g.fragId]).length||(t.deleteShader(o[g.fragId]),delete o[g.fragId],delete f[g.fragId])}})},restore:function(){o={},a={};for(var t=0;t<l.length;++t)p(l[t],null,l[t].attributes.map((function(t){return[t.location,t.name]})))},shader:c,frag:-1,vert:-1}}(i,l,h,r),O=Ot(i,d,b,(function(){I.procs.poll()}),m,h,r),k=function(t,e,n,r,i){var o={rgba4:32854,rgb565:36194,"rgb5 a1":32855,depth:33189,stencil:36168,"depth stencil":34041};e.ext_srgb&&(o.srgba=35907),e.ext_color_buffer_half_float&&(o.rgba16f=34842,o.rgb16f=34843),e.webgl_color_buffer_float&&(o.rgba32f=34836);var s=[];Object.keys(o).forEach((function(t){var e=o[t];s[e]=t}));var u=0,c={};function f(t){this.id=u++,this.refCount=1,this.renderbuffer=t,this.format=32854,this.width=0,this.height=0,i.profile&&(this.stats={size:0})}function l(e){var n=e.renderbuffer;S(n,"must not double destroy renderbuffer"),t.bindRenderbuffer(36161,null),t.deleteRenderbuffer(n),e.renderbuffer=null,e.refCount=0,delete c[e.id],r.renderbufferCount--}return f.prototype.decRef=function(){--this.refCount<=0&&l(this)},i.profile&&(r.getTotalRenderbufferSize=function(){var t=0;return Object.keys(c).forEach((function(e){t+=c[e].stats.size})),t}),{create:function(e,u){var l=new f(t.createRenderbuffer());function h(e,r){var u=0,c=0,f=32854;if("object"===a(e)&&e){var d=e;if("shape"in d){var p=d.shape;S(Array.isArray(p)&&p.length>=2,"invalid renderbuffer shape"),u=0|p[0],c=0|p[1]}else"radius"in d&&(u=c=0|d.radius),"width"in d&&(u=0|d.width),"height"in d&&(c=0|d.height);"format"in d&&(S.parameter(d.format,o,"invalid renderbuffer format"),f=o[d.format])}else"number"==typeof e?(u=0|e,c="number"==typeof r?0|r:u):e?S.raise("invalid arguments to renderbuffer constructor"):u=c=1;if(S(u>0&&c>0&&u<=n.maxRenderbufferSize&&c<=n.maxRenderbufferSize,"invalid renderbuffer size"),u!==l.width||c!==l.height||f!==l.format)return h.width=l.width=u,h.height=l.height=c,l.format=f,t.bindRenderbuffer(36161,l.renderbuffer),t.renderbufferStorage(36161,f,u,c),S(0===t.getError(),"invalid render buffer format"),i.profile&&(l.stats.size=Mt(l.format,l.width,l.height)),h.format=s[l.format],h}return c[l.id]=l,r.renderbufferCount++,h(e,u),h.resize=function(e,r){var o=0|e,a=0|r||o;return o===l.width&&a===l.height||(S(o>0&&a>0&&o<=n.maxRenderbufferSize&&a<=n.maxRenderbufferSize,"invalid renderbuffer size"),h.width=l.width=o,h.height=l.height=a,t.bindRenderbuffer(36161,l.renderbuffer),t.renderbufferStorage(36161,l.format,o,a),S(0===t.getError(),"invalid render buffer format"),i.profile&&(l.stats.size=Mt(l.format,l.width,l.height))),h},h._reglType="renderbuffer",h._renderbuffer=l,i.profile&&(h.stats=l.stats),h.destroy=function(){l.decRef()},h},clear:function(){B(c).forEach(l)},restore:function(){B(c).forEach((function(e){e.renderbuffer=t.createRenderbuffer(),t.bindRenderbuffer(36161,e.renderbuffer),t.renderbufferStorage(36161,e.format,e.width,e.height)})),t.bindRenderbuffer(36161,null)}}}(i,d,b,h,r),C=function(t,n,r,i,o,s){var u={cur:null,next:null,dirty:!1,setFBO:null},c=["rgba"],f=["rgba4","rgb565","rgb5 a1"];n.ext_srgb&&f.push("srgba"),n.ext_color_buffer_half_float&&f.push("rgba16f","rgb16f"),n.webgl_color_buffer_float&&f.push("rgba32f");var l=["uint8"];function h(t,e,n){this.target=t,this.texture=e,this.renderbuffer=n;var r=0,i=0;e?(r=e.width,i=e.height):n&&(r=n.width,i=n.height),this.width=r,this.height=i}function d(t){t&&(t.texture&&t.texture._texture.decRef(),t.renderbuffer&&t.renderbuffer._renderbuffer.decRef())}function p(t,e,n){if(t)if(t.texture){var r=t.texture._texture,i=Math.max(1,r.width),o=Math.max(1,r.height);S(i===e&&o===n,"inconsistent width/height for supplied texture"),r.refCount+=1}else{var a=t.renderbuffer._renderbuffer;S(a.width===e&&a.height===n,"inconsistent width/height for renderbuffer"),a.refCount+=1}}function g(e,n){n&&(n.texture?t.framebufferTexture2D(36160,e,n.target,n.texture._texture.texture,0):t.framebufferRenderbuffer(36160,e,36161,n.renderbuffer._renderbuffer.renderbuffer))}function v(t){var e=3553,n=null,r=null,i=t;"object"===a(t)&&(i=t.data,"target"in t&&(e=0|t.target)),S.type(i,"function","invalid attachment data");var o=i._reglType;return"texture2d"===o?(n=i,S(3553===e)):"textureCube"===o?(n=i,S(e>=34069&&e<34075,"invalid cube map target")):"renderbuffer"===o?(r=i,e=36161):S.raise("invalid regl object for attachment"),new h(e,n,r)}function y(t,e,n,r,a){if(n){var s=i.create2D({width:t,height:e,format:r,type:a});return s._texture.refCount=0,new h(3553,s,null)}var u=o.create({width:t,height:e,format:r});return u._renderbuffer.refCount=0,new h(36161,null,u)}function m(t){return t&&(t.texture||t.renderbuffer)}function b(t,e,n){t&&(t.texture?t.texture.resize(e,n):t.renderbuffer&&t.renderbuffer.resize(e,n),t.width=e,t.height=n)}n.oes_texture_half_float&&l.push("half float","float16"),n.oes_texture_float&&l.push("float","float32");var x=0,w={};function E(){this.id=x++,w[this.id]=this,this.framebuffer=t.createFramebuffer(),this.width=0,this.height=0,this.colorAttachments=[],this.depthAttachment=null,this.stencilAttachment=null,this.depthStencilAttachment=null}function _(t){t.colorAttachments.forEach(d),d(t.depthAttachment),d(t.stencilAttachment),d(t.depthStencilAttachment)}function O(e){var n=e.framebuffer;S(n,"must not double destroy framebuffer"),t.deleteFramebuffer(n),e.framebuffer=null,s.framebufferCount--,delete w[e.id]}function k(e){var n;t.bindFramebuffer(36160,e.framebuffer);var i=e.colorAttachments;for(n=0;n<i.length;++n)g(36064+n,i[n]);for(n=i.length;n<r.maxColorAttachments;++n)t.framebufferTexture2D(36160,36064+n,3553,null,0);t.framebufferTexture2D(36160,33306,3553,null,0),t.framebufferTexture2D(36160,36096,3553,null,0),t.framebufferTexture2D(36160,36128,3553,null,0),g(36096,e.depthAttachment),g(36128,e.stencilAttachment),g(33306,e.depthStencilAttachment);var o=t.checkFramebufferStatus(36160);t.isContextLost()||36053===o||S.raise("framebuffer configuration not supported, status = "+Pt[o]),t.bindFramebuffer(36160,u.next?u.next.framebuffer:null),u.cur=u.next,t.getError()}function M(t,i){var o=new E;function a(t,e){var i;S(u.next!==o,"can not update framebuffer which is currently in use");var s=0,h=0,d=!0,g=!0,b=null,x=!0,w="rgba",E="uint8",O=1,M=null,A=null,T=null,C=!1;if("number"==typeof t)s=0|t,h=0|e||s;else if(t){S.type(t,"object","invalid arguments for framebuffer");var I=t;if("shape"in I){var P=I.shape;S(Array.isArray(P)&&P.length>=2,"invalid shape for framebuffer"),s=P[0],h=P[1]}else"radius"in I&&(s=h=I.radius),"width"in I&&(s=I.width),"height"in I&&(h=I.height);("color"in I||"colors"in I)&&(b=I.color||I.colors,Array.isArray(b)&&S(1===b.length||n.webgl_draw_buffers,"multiple render targets not supported")),b||("colorCount"in I&&(O=0|I.colorCount,S(O>0,"invalid color buffer count")),"colorTexture"in I&&(x=!!I.colorTexture,w="rgba4"),"colorType"in I&&(E=I.colorType,x?(S(n.oes_texture_float||!("float"===E||"float32"===E),"you must enable OES_texture_float in order to use floating point framebuffer objects"),S(n.oes_texture_half_float||!("half float"===E||"float16"===E),"you must enable OES_texture_half_float in order to use 16-bit floating point framebuffer objects")):"half float"===E||"float16"===E?(S(n.ext_color_buffer_half_float,"you must enable EXT_color_buffer_half_float to use 16-bit render buffers"),w="rgba16f"):"float"!==E&&"float32"!==E||(S(n.webgl_color_buffer_float,"you must enable WEBGL_color_buffer_float in order to use 32-bit floating point renderbuffers"),w="rgba32f"),S.oneOf(E,l,"invalid color type")),"colorFormat"in I&&(w=I.colorFormat,c.indexOf(w)>=0?x=!0:f.indexOf(w)>=0?x=!1:x?S.oneOf(I.colorFormat,c,"invalid color format for texture"):S.oneOf(I.colorFormat,f,"invalid color format for renderbuffer"))),("depthTexture"in I||"depthStencilTexture"in I)&&(C=!(!I.depthTexture&&!I.depthStencilTexture),S(!C||n.webgl_depth_texture,"webgl_depth_texture extension not supported")),"depth"in I&&("boolean"==typeof I.depth?d=I.depth:(M=I.depth,g=!1)),"stencil"in I&&("boolean"==typeof I.stencil?g=I.stencil:(A=I.stencil,d=!1)),"depthStencil"in I&&("boolean"==typeof I.depthStencil?d=g=I.depthStencil:(T=I.depthStencil,d=!1,g=!1))}else s=h=1;var j=null,D=null,N=null,R=null;if(Array.isArray(b))j=b.map(v);else if(b)j=[v(b)];else for(j=new Array(O),i=0;i<O;++i)j[i]=y(s,h,x,w,E);S(n.webgl_draw_buffers||j.length<=1,"you must enable the WEBGL_draw_buffers extension in order to use multiple color buffers."),S(j.length<=r.maxColorAttachments,"too many color attachments, not supported"),s=s||j[0].width,h=h||j[0].height,M?D=v(M):d&&!g&&(D=y(s,h,C,"depth","uint32")),A?N=v(A):g&&!d&&(N=y(s,h,!1,"stencil","uint8")),T?R=v(T):!M&&!A&&g&&d&&(R=y(s,h,C,"depth stencil","depth stencil")),S(!!M+!!A+!!T<=1,"invalid framebuffer configuration, can specify exactly one depth/stencil attachment");var L=null;for(i=0;i<j.length;++i)if(p(j[i],s,h),S(!j[i]||j[i].texture&&At.indexOf(j[i].texture._texture.format)>=0||j[i].renderbuffer&&It.indexOf(j[i].renderbuffer._renderbuffer.format)>=0,"framebuffer color attachment "+i+" is invalid"),j[i]&&j[i].texture){var B=Tt[j[i].texture._texture.format]*Ct[j[i].texture._texture.type];null===L?L=B:S(L===B,"all color attachments much have the same number of bits per pixel.")}return p(D,s,h),S(!D||D.texture&&6402===D.texture._texture.format||D.renderbuffer&&33189===D.renderbuffer._renderbuffer.format,"invalid depth attachment for framebuffer object"),p(N,s,h),S(!N||N.renderbuffer&&36168===N.renderbuffer._renderbuffer.format,"invalid stencil attachment for framebuffer object"),p(R,s,h),S(!R||R.texture&&34041===R.texture._texture.format||R.renderbuffer&&34041===R.renderbuffer._renderbuffer.format,"invalid depth-stencil attachment for framebuffer object"),_(o),o.width=s,o.height=h,o.colorAttachments=j,o.depthAttachment=D,o.stencilAttachment=N,o.depthStencilAttachment=R,a.color=j.map(m),a.depth=m(D),a.stencil=m(N),a.depthStencil=m(R),a.width=o.width,a.height=o.height,k(o),a}return s.framebufferCount++,a(t,i),e(a,{resize:function(t,e){S(u.next!==o,"can not resize a framebuffer which is currently in use");var n=Math.max(0|t,1),r=Math.max(0|e||n,1);if(n===o.width&&r===o.height)return a;for(var i=o.colorAttachments,s=0;s<i.length;++s)b(i[s],n,r);return b(o.depthAttachment,n,r),b(o.stencilAttachment,n,r),b(o.depthStencilAttachment,n,r),o.width=a.width=n,o.height=a.height=r,k(o),a},_reglType:"framebuffer",_framebuffer:o,destroy:function(){O(o),_(o)},use:function(t){u.setFBO({framebuffer:a},t)}})}return e(u,{getFramebuffer:function(t){if("function"==typeof t&&"framebuffer"===t._reglType){var e=t._framebuffer;if(e instanceof E)return e}return null},create:M,createCube:function(t){var o=Array(6);function a(t){var r;S(o.indexOf(u.next)<0,"can not update framebuffer which is currently in use");var s,f={color:null},h=0,d=null,p="rgba",g="uint8",v=1;if("number"==typeof t)h=0|t;else if(t){S.type(t,"object","invalid arguments for framebuffer");var y=t;if("shape"in y){var m=y.shape;S(Array.isArray(m)&&m.length>=2,"invalid shape for framebuffer"),S(m[0]===m[1],"cube framebuffer must be square"),h=m[0]}else"radius"in y&&(h=0|y.radius),"width"in y?(h=0|y.width,"height"in y&&S(y.height===h,"must be square")):"height"in y&&(h=0|y.height);("color"in y||"colors"in y)&&(d=y.color||y.colors,Array.isArray(d)&&S(1===d.length||n.webgl_draw_buffers,"multiple render targets not supported")),d||("colorCount"in y&&(v=0|y.colorCount,S(v>0,"invalid color buffer count")),"colorType"in y&&(S.oneOf(y.colorType,l,"invalid color type"),g=y.colorType),"colorFormat"in y&&(p=y.colorFormat,S.oneOf(y.colorFormat,c,"invalid color format for texture"))),"depth"in y&&(f.depth=y.depth),"stencil"in y&&(f.stencil=y.stencil),"depthStencil"in y&&(f.depthStencil=y.depthStencil)}else h=1;if(d)if(Array.isArray(d))for(s=[],r=0;r<d.length;++r)s[r]=d[r];else s=[d];else{s=Array(v);var b={radius:h,format:p,type:g};for(r=0;r<v;++r)s[r]=i.createCube(b)}for(f.color=Array(s.length),r=0;r<s.length;++r){var x=s[r];S("function"==typeof x&&"textureCube"===x._reglType,"invalid cube map"),h=h||x.width,S(x.width===h&&x.height===h,"invalid cube map shape"),f.color[r]={target:34069,data:s[r]}}for(r=0;r<6;++r){for(var w=0;w<s.length;++w)f.color[w].target=34069+r;r>0&&(f.depth=o[0].depth,f.stencil=o[0].stencil,f.depthStencil=o[0].depthStencil),o[r]?o[r](f):o[r]=M(f)}return e(a,{width:h,height:h,color:s})}return a(t),e(a,{faces:o,resize:function(t){var e,n=0|t;if(S(n>0&&n<=r.maxCubeMapSize,"invalid radius for cube fbo"),n===a.width)return a;var i=a.color;for(e=0;e<i.length;++e)i[e].resize(n);for(e=0;e<6;++e)o[e].resize(n);return a.width=a.height=n,a},_reglType:"framebufferCube",destroy:function(){o.forEach((function(t){t.destroy()}))}})},clear:function(){B(w).forEach(O)},restore:function(){u.cur=null,u.next=null,u.dirty=!0,B(w).forEach((function(e){e.framebuffer=t.createFramebuffer(),k(e)}))}})}(i,d,b,O,k,h),I=fe(i,l,d,b,x,E,0,C,{},w,_,{elements:null,primitive:4,count:-1,offset:0,instances:-1},m,p,r),j=Dt(i,C,I.procs.poll,m,o,d,b),D=I.next,N=i.canvas,G=[],F=[],U=[],Q=[r.onDestroy],J=null;function $(){if(0===G.length)return p&&p.update(),void(J=null);J=A.next($),ct();for(var t=G.length-1;t>=0;--t){var e=G[t];e&&e(m,null,0)}i.flush(),p&&p.update()}function tt(){!J&&G.length>0&&(J=A.next($))}function et(){J&&(A.cancel($),J=null)}function nt(t){t.preventDefault(),s=!0,et(),F.forEach((function(t){t()}))}function rt(t){i.getError(),s=!1,u.restore(),_.restore(),x.restore(),O.restore(),k.restore(),C.restore(),w.restore(),p&&p.restore(),I.procs.refresh(),tt(),U.forEach((function(t){t()}))}function it(t){function n(t,e){var n={},r={};return Object.keys(t).forEach((function(i){var o=t[i];if(M.isDynamic(o))r[i]=M.unbox(o,i);else{if(e&&Array.isArray(o))for(var a=0;a<o.length;++a)if(M.isDynamic(o[a]))return void(r[i]=M.unbox(o,i));n[i]=o}})),{dynamic:r,static:n}}S(!!t,"invalid args to regl({...})"),S.type(t,"object","invalid args to regl({...})");var r=n(t.context||{},!0),i=n(t.uniforms||{},!0),o=n(t.attributes||{},!1),a=n(function(t){var n=e({},t);function r(t){if(t in n){var e=n[t];delete n[t],Object.keys(e).forEach((function(r){n[t+"."+r]=e[r]}))}}return delete n.uniforms,delete n.attributes,delete n.context,delete n.vao,"stencil"in n&&n.stencil.op&&(n.stencil.opBack=n.stencil.opFront=n.stencil.op,delete n.stencil.op),r("blend"),r("depth"),r("cull"),r("stencil"),r("polygonOffset"),r("scissor"),r("sample"),"vao"in t&&(n.vao=t.vao),n}(t),!1),u={gpuTime:0,cpuTime:0,count:0},c=I.compile(a,o,i,r,u),f=c.draw,l=c.batch,h=c.scope,d=[];return e((function(t,e){var n;if(s&&S.raise("context lost"),"function"==typeof t)return h.call(this,null,t,0);if("function"==typeof e)if("number"==typeof t)for(n=0;n<t;++n)h.call(this,null,e,n);else{if(!Array.isArray(t))return h.call(this,t,e,0);for(n=0;n<t.length;++n)h.call(this,t[n],e,n)}else if("number"==typeof t){if(t>0)return l.call(this,function(t){for(;d.length<t;)d.push(null);return d}(0|t),0|t)}else{if(!Array.isArray(t))return f.call(this,t);if(t.length)return l.call(this,t,t.length)}}),{stats:u,destroy:function(){c.destroy()}})}N&&(N.addEventListener("webglcontextlost",nt,!1),N.addEventListener("webglcontextrestored",rt,!1));var ot=C.setFBO=it({framebuffer:M.define.call(null,1,"framebuffer")});function at(t,e){var n=0;I.procs.poll();var r=e.color;r&&(i.clearColor(+r[0]||0,+r[1]||0,+r[2]||0,+r[3]||0),n|=16384),"depth"in e&&(i.clearDepth(+e.depth),n|=256),"stencil"in e&&(i.clearStencil(0|e.stencil),n|=1024),S(!!n,"called regl.clear with no buffer specified"),i.clear(n)}function st(t){return S.type(t,"function","regl.frame() callback must be a function"),G.push(t),tt(),{cancel:function(){var e=he(G,t);S(e>=0,"cannot cancel a frame twice"),G[e]=function t(){var e=he(G,t);G[e]=G[G.length-1],G.length-=1,G.length<=0&&et()}}}}function ut(){var t=D.viewport,e=D.scissor_box;t[0]=t[1]=e[0]=e[1]=0,m.viewportWidth=m.framebufferWidth=m.drawingBufferWidth=t[2]=e[2]=i.drawingBufferWidth,m.viewportHeight=m.framebufferHeight=m.drawingBufferHeight=t[3]=e[3]=i.drawingBufferHeight}function ct(){m.tick+=1,m.time=lt(),ut(),I.procs.poll()}function ft(){O.refresh(),ut(),I.procs.refresh(),p&&p.update()}function lt(){return(T()-g)/1e3}ft();var ht=e(it,{clear:function(t){if(S("object"===a(t)&&t,"regl.clear() takes an object as input"),"framebuffer"in t)if(t.framebuffer&&"framebufferCube"===t.framebuffer_reglType)for(var n=0;n<6;++n)ot(e({framebuffer:t.framebuffer.faces[n]},t),at);else ot(t,at);else at(0,t)},prop:M.define.bind(null,1),context:M.define.bind(null,2),this:M.define.bind(null,3),draw:it({}),buffer:function(t){return x.create(t,34962,!1,!1)},elements:function(t){return E.create(t,!1)},texture:O.create2D,cube:O.createCube,renderbuffer:k.create,framebuffer:C.create,framebufferCube:C.createCube,vao:w.createVAO,attributes:o,frame:st,on:function(t,e){var n;switch(S.type(e,"function","listener callback must be a function"),t){case"frame":return st(e);case"lost":n=F;break;case"restore":n=U;break;case"destroy":n=Q;break;default:S.raise("invalid event, must be one of frame,lost,restore,destroy")}return n.push(e),{cancel:function(){for(var t=0;t<n.length;++t)if(n[t]===e)return n[t]=n[n.length-1],void n.pop()}}},limits:b,hasExtension:function(t){return b.extensions.indexOf(t.toLowerCase())>=0},read:j,destroy:function(){G.length=0,et(),N&&(N.removeEventListener("webglcontextlost",nt),N.removeEventListener("webglcontextrestored",rt)),_.clear(),C.clear(),k.clear(),O.clear(),E.clear(),x.clear(),w.clear(),p&&p.clear(),Q.forEach((function(t){t()}))},_gl:i,_refresh:ft,poll:function(){ct(),p&&p.update()},now:lt,stats:h});return r.onDone(null,ht),ht}},"object"===a(e)&&void 0!==t?t.exports=o():void 0===(i="function"==typeof(r=o)?r.call(e,n,e,t):r)||(t.exports=i)},,,,,,,,function(t,e,n){var r=n(282),i=n(283),o={};for(var a in r)r.hasOwnProperty(a)&&(o[r[a]]=a);var s=t.exports={to:{},get:{}};function u(t,e,n){return Math.min(Math.max(e,t),n)}function c(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}s.get=function(t){var e,n;switch(t.substring(0,3).toLowerCase()){case"hsl":e=s.get.hsl(t),n="hsl";break;case"hwb":e=s.get.hwb(t),n="hwb";break;default:e=s.get.rgb(t),n="rgb"}return e?{model:n,value:e}:null},s.get.rgb=function(t){if(!t)return null;var e,n,i,o=[0,0,0,1];if(e=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(i=e[2],e=e[1],n=0;n<3;n++){var a=2*n;o[n]=parseInt(e.slice(a,a+2),16)}i&&(o[3]=parseInt(i,16)/255)}else if(e=t.match(/^#([a-f0-9]{3,4})$/i)){for(i=(e=e[1])[3],n=0;n<3;n++)o[n]=parseInt(e[n]+e[n],16);i&&(o[3]=parseInt(i+i,16)/255)}else if(e=t.match(/^rgba?\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)$/)){for(n=0;n<3;n++)o[n]=parseInt(e[n+1],0);e[4]&&(o[3]=parseFloat(e[4]))}else{if(!(e=t.match(/^rgba?\\(\\s*([+-]?[\\d\\.]+)\\%\\s*,\\s*([+-]?[\\d\\.]+)\\%\\s*,\\s*([+-]?[\\d\\.]+)\\%\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)$/)))return(e=t.match(/(\\D+)/))?"transparent"===e[1]?[0,0,0,0]:(o=r[e[1]])?(o[3]=1,o):null:null;for(n=0;n<3;n++)o[n]=Math.round(2.55*parseFloat(e[n+1]));e[4]&&(o[3]=parseFloat(e[4]))}for(n=0;n<3;n++)o[n]=u(o[n],0,255);return o[3]=u(o[3],0,1),o},s.get.hsl=function(t){if(!t)return null;var e=t.match(/^hsla?\\(\\s*([+-]?(?:\\d*\\.)?\\d+)(?:deg)?\\s*,\\s*([+-]?[\\d\\.]+)%\\s*,\\s*([+-]?[\\d\\.]+)%\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)$/);if(e){var n=parseFloat(e[4]);return[(parseFloat(e[1])+360)%360,u(parseFloat(e[2]),0,100),u(parseFloat(e[3]),0,100),u(isNaN(n)?1:n,0,1)]}return null},s.get.hwb=function(t){if(!t)return null;var e=t.match(/^hwb\\(\\s*([+-]?\\d*[\\.]?\\d+)(?:deg)?\\s*,\\s*([+-]?[\\d\\.]+)%\\s*,\\s*([+-]?[\\d\\.]+)%\\s*(?:,\\s*([+-]?[\\d\\.]+)\\s*)?\\)$/);if(e){var n=parseFloat(e[4]);return[(parseFloat(e[1])%360+360)%360,u(parseFloat(e[2]),0,100),u(parseFloat(e[3]),0,100),u(isNaN(n)?1:n,0,1)]}return null},s.to.hex=function(){var t=i(arguments);return"#"+c(t[0])+c(t[1])+c(t[2])+(t[3]<1?c(Math.round(255*t[3])):"")},s.to.rgb=function(){var t=i(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},s.to.rgb.percent=function(){var t=i(arguments),e=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),r=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+n+"%, "+r+"%)":"rgba("+e+"%, "+n+"%, "+r+"%, "+t[3]+")"},s.to.hsl=function(){var t=i(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},s.to.hwb=function(){var t=i(arguments),e="";return t.length>=4&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},s.to.keyword=function(t){return o[t.slice(0,3)]}},function(t,e,n){"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(t,e,n){"use strict";var r=n(284),i=Array.prototype.concat,o=Array.prototype.slice,a=t.exports=function(t){for(var e=[],n=0,a=t.length;n<a;n++){var s=t[n];r(s)?e=i.call(e,o.call(s)):e.push(s)}return e};a.wrap=function(t){return function(){return t(a(arguments))}}},function(t,e){t.exports=function(t){return!(!t||"string"==typeof t)&&(t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&"String"!==t.constructor.name))}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=n(176),o=n(287),a={};Object.keys(i).forEach((function(t){a[t]={},Object.defineProperty(a[t],"channels",{value:i[t].channels}),Object.defineProperty(a[t],"labels",{value:i[t].labels});var e=o(t);Object.keys(e).forEach((function(n){var i=e[n];a[t][n]=function(t){var e=function(e){if(null==e)return e;arguments.length>1&&(e=Array.prototype.slice.call(arguments));var n=t(e);if("object"===r(n))for(var i=n.length,o=0;o<i;o++)n[o]=Math.round(n[o]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}(i),a[t][n].raw=function(t){var e=function(e){return null==e?e:(arguments.length>1&&(e=Array.prototype.slice.call(arguments)),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(i)}))})),t.exports=a},function(t,e,n){"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(t,e,n){var r=n(176);function i(t){var e=function(){for(var t={},e=Object.keys(r),n=e.length,i=0;i<n;i++)t[e[i]]={distance:-1,parent:null};return t}(),n=[t];for(e[t].distance=0;n.length;)for(var i=n.pop(),o=Object.keys(r[i]),a=o.length,s=0;s<a;s++){var u=o[s],c=e[u];-1===c.distance&&(c.distance=e[i].distance+1,c.parent=i,n.unshift(u))}return e}function o(t,e){return function(n){return e(t(n))}}function a(t,e){for(var n=[e[t].parent,t],i=r[e[t].parent][t],a=e[t].parent;e[a].parent;)n.unshift(e[a].parent),i=o(r[e[a].parent][a],i),a=e[a].parent;return i.conversion=n,i}t.exports=function(t){for(var e=i(t),n={},r=Object.keys(e),o=r.length,s=0;s<o;s++){var u=r[s];null!==e[u].parent&&(n[u]=a(u,e))}return n}},function(t,e,n){var r=n(289);t.exports={Graph:r.Graph,json:n(390),alg:n(391),version:r.version}},function(t,e,n){t.exports={Graph:n(142),version:n(389)}},function(t,e,n){var r=n(177);t.exports=function(t){return r(t,4)}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var r=n(99),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():i.call(e,n,1),--this.size,!0)}},function(t,e,n){var r=n(99);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var r=n(99);t.exports=function(t){return r(this.__data__,t)>-1}},function(t,e,n){var r=n(99);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},function(t,e,n){var r=n(98);t.exports=function(){this.__data__=new r,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var r=n(98),i=n(143),o=n(144);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(t,e),this.size=n.size,this}},function(t,e,n){var r=n(86),i=n(304),o=n(43),a=n(180),s=/^\\[object .+?Constructor\\]$/,u=Function.prototype,c=Object.prototype,f=u.toString,l=c.hasOwnProperty,h=RegExp("^"+f.call(l).replace(/[\\\\^$.*+?()[\\]{}|]/g,"\\\\$&").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?h:s).test(a(t))}},function(t,e,n){var r=n(74),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(t){}var i=a.call(t);return r&&(e?t[s]=n:delete t[s]),i}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){var r,i=n(305),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},function(t,e,n){var r=n(45)["__core-js_shared__"];t.exports=r},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){var r=n(308),i=n(98),o=n(143);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(t,e,n){var r=n(309),i=n(310),o=n(311),a=n(312),s=n(313);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,t.exports=u},function(t,e,n){var r=n(100);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var r=n(100),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0}},function(t,e,n){var r=n(100),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},function(t,e,n){var r=n(100);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},function(t,e,n){var r=n(101);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){var e=n(t);return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var r=n(101);t.exports=function(t){return r(this,t).get(t)}},function(t,e,n){var r=n(101);t.exports=function(t){return r(this,t).has(t)}},function(t,e,n){var r=n(101);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},function(t,e,n){var r=n(87),i=n(60);t.exports=function(t,e){return t&&r(e,i(e),t)}},function(t,e){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},function(t,e,n){var r=n(59),i=n(46);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(59),i=n(146),o=n(46),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!a[r(t)]}},function(t,e,n){var r=n(183)(Object.keys,Object);t.exports=r},function(t,e,n){var r=n(87),i=n(66);t.exports=function(t,e){return t&&r(e,i(e),t)}},function(t,e,n){var r=n(43),i=n(106),o=n(327),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=i(t),n=[];for(var s in t)("constructor"!=s||!e&&a.call(t,s))&&n.push(s);return n}},function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},function(t,e,n){var r=n(87),i=n(149);t.exports=function(t,e){return r(t,i(t),e)}},function(t,e,n){var r=n(87),i=n(188);t.exports=function(t,e){return r(t,i(t),e)}},function(t,e,n){var r=n(190),i=n(188),o=n(66);t.exports=function(t){return r(t,o,i)}},function(t,e,n){var r=n(65)(n(45),"DataView");t.exports=r},function(t,e,n){var r=n(65)(n(45),"Promise");t.exports=r},function(t,e,n){var r=n(65)(n(45),"WeakMap");t.exports=r},function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&n.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},function(t,e,n){var r=n(151),i=n(336),o=n(337),a=n(338),s=n(193);t.exports=function(t,e,n){var u=t.constructor;switch(e){case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new u(+t);case"[object DataView]":return i(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(t,n);case"[object Map]":return new u;case"[object Number]":case"[object String]":return new u(t);case"[object RegExp]":return o(t);case"[object Set]":return new u;case"[object Symbol]":return a(t)}}},function(t,e,n){var r=n(151);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},function(t,e){var n=/\\w*$/;t.exports=function(t){var e=new t.constructor(t.source,n.exec(t));return e.lastIndex=t.lastIndex,e}},function(t,e,n){var r=n(74),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;t.exports=function(t){return o?Object(o.call(t)):{}}},function(t,e,n){var r=n(340),i=n(105),o=n(147),a=o&&o.isMap,s=a?i(a):r;t.exports=s},function(t,e,n){var r=n(76),i=n(46);t.exports=function(t){return i(t)&&"[object Map]"==r(t)}},function(t,e,n){var r=n(342),i=n(105),o=n(147),a=o&&o.isSet,s=a?i(a):r;t.exports=s},function(t,e,n){var r=n(76),i=n(46);t.exports=function(t){return i(t)&&"[object Set]"==r(t)}},function(t,e){t.exports=function(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var u=a[t?s:++i];if(!1===n(o[u],u,o))break}return e}}},function(t,e,n){var r=n(54);t.exports=function(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);for(var o=n.length,a=e?o:-1,s=Object(n);(e?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},function(t,e,n){var r=n(108);t.exports=function(t,e){var n=[];return r(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}},function(t,e,n){var r=n(347),i=n(355),o=n(205);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},function(t,e,n){var r=n(97),i=n(200);t.exports=function(t,e,n,o){var a=n.length,s=a,u=!o;if(null==t)return!s;for(t=Object(t);a--;){var c=n[a];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a<s;){var f=(c=n[a])[0],l=t[f],h=c[1];if(u&&c[2]){if(void 0===l&&!(f in t))return!1}else{var d=new r;if(o)var p=o(l,h,f,t,e,d);if(!(void 0===p?i(h,l,3,o,d):p))return!1}}return!0}},function(t,e,n){var r=n(97),i=n(201),o=n(352),a=n(354),s=n(76),u=n(29),c=n(75),f=n(32),l="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,d,p,g){var v=u(t),y=u(e),m=v?"[object Array]":s(t),b=y?"[object Array]":s(e),x=(m="[object Arguments]"==m?l:m)==l,w=(b="[object Arguments]"==b?l:b)==l,S=m==b;if(S&&c(t)){if(!c(e))return!1;v=!0,x=!1}if(S&&!x)return g||(g=new r),v||f(t)?i(t,e,n,d,p,g):o(t,e,m,n,d,p,g);if(!(1&n)){var E=x&&h.call(t,"__wrapped__"),_=w&&h.call(e,"__wrapped__");if(E||_){var O=E?t.value():t,k=_?e.value():e;return g||(g=new r),p(O,k,n,d,g)}}return!!S&&(g||(g=new r),a(t,e,n,d,p,g))}},function(t,e){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},function(t,e,n){var r=n(74),i=n(192),o=n(73),a=n(201),s=n(353),u=n(155),c=r?r.prototype:void 0,f=c?c.valueOf:void 0;t.exports=function(t,e,n,r,c,l,h){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!l(new i(t),new i(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var d=s;case"[object Set]":var p=1&r;if(d||(d=u),t.size!=e.size&&!p)return!1;var g=h.get(t);if(g)return g==e;r|=2,h.set(t,e);var v=a(d(t),d(e),r,c,l,h);return h.delete(t),v;case"[object Symbol]":if(f)return f.call(t)==f.call(e)}return!1}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},function(t,e,n){var r=n(189),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,o,a,s){var u=1&n,c=r(t),f=c.length;if(f!=r(e).length&&!u)return!1;for(var l=f;l--;){var h=c[l];if(!(u?h in e:i.call(e,h)))return!1}var d=s.get(t),p=s.get(e);if(d&&p)return d==e&&p==t;var g=!0;s.set(t,e),s.set(e,t);for(var v=u;++l<f;){var y=t[h=c[l]],m=e[h];if(o)var b=u?o(m,y,h,e,t,s):o(y,m,h,t,e,s);if(!(void 0===b?y===m||a(y,m,n,o,s):b)){g=!1;break}v||(v="constructor"==h)}if(g&&!v){var x=t.constructor,w=e.constructor;x==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(g=!1)}return s.delete(t),s.delete(e),g}},function(t,e,n){var r=n(204),i=n(60);t.exports=function(t){for(var e=i(t),n=e.length;n--;){var o=e[n],a=t[o];e[n]=[o,a,r(a)]}return e}},function(t,e,n){var r=n(200),i=n(357),o=n(207),a=n(156),s=n(204),u=n(205),c=n(89);t.exports=function(t,e){return a(t)&&s(e)?u(c(t),e):function(n){var a=i(n,t);return void 0===a&&a===e?o(n,t):r(e,a,3)}}},function(t,e,n){var r=n(109);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},function(t,e,n){var r=n(359),i=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|(["\'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g,o=/\\\\(\\\\)?/g,a=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)})),e}));t.exports=a},function(t,e,n){var r=n(360);t.exports=function(t){var e=r(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},function(t,e,n){var r=n(144);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function n(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},function(t,e,n){var r=n(74),i=n(111),o=n(29),a=n(77),s=r?r.prototype:void 0,u=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(a(e))return u?u.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,n){var r=n(209),i=n(364),o=n(156),a=n(89);t.exports=function(t){return o(t)?r(a(t)):i(t)}},function(t,e,n){var r=n(109);t.exports=function(t){return function(e){return r(e,t)}}},function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t,e){return null!=t&&n.call(t,e)}},function(t,e,n){var r=n(148),i=n(76),o=n(88),a=n(29),s=n(54),u=n(75),c=n(106),f=n(32),l=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(s(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||u(t)||f(t)||o(t)))return!t.length;var e=i(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(c(t))return!r(t).length;for(var n in t)if(l.call(t,n))return!1;return!0}},function(t,e){t.exports=function(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}},function(t,e){t.exports=function(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}},function(t,e,n){var r=n(148),i=n(76),o=n(54),a=n(370),s=n(371);t.exports=function(t){if(null==t)return 0;if(o(t))return a(t)?s(t):t.length;var e=i(t);return"[object Map]"==e||"[object Set]"==e?t.size:r(t).length}},function(t,e,n){var r=n(59),i=n(29),o=n(46);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},function(t,e,n){var r=n(372),i=n(373),o=n(374);t.exports=function(t){return i(t)?o(t):r(t)}},function(t,e,n){var r=n(209)("length");t.exports=r},function(t,e){var n=RegExp("[\\\\u200d\\\\ud800-\\\\udfff\\\\u0300-\\\\u036f\\\\ufe20-\\\\ufe2f\\\\u20d0-\\\\u20ff\\\\ufe0e\\\\ufe0f]");t.exports=function(t){return n.test(t)}},function(t,e){var n="[\\\\ud800-\\\\udfff]",r="[\\\\u0300-\\\\u036f\\\\ufe20-\\\\ufe2f\\\\u20d0-\\\\u20ff]",i="\\\\ud83c[\\\\udffb-\\\\udfff]",o="[^\\\\ud800-\\\\udfff]",a="(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}",s="[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]",u="(?:"+r+"|"+i+")"+"?",c="[\\\\ufe0e\\\\ufe0f]?"+u+("(?:\\\\u200d(?:"+[o,a,s].join("|")+")[\\\\ufe0e\\\\ufe0f]?"+u+")*"),f="(?:"+[o+r+"?",r,a,s,n].join("|")+")",l=RegExp(i+"(?="+i+")|"+f+c,"g");t.exports=function(t){for(var e=l.lastIndex=0;l.test(t);)++e;return e}},function(t,e,n){var r=n(145),i=n(195),o=n(153),a=n(55),s=n(107),u=n(29),c=n(75),f=n(86),l=n(43),h=n(32);t.exports=function(t,e,n){var d=u(t),p=d||c(t)||h(t);if(e=a(e,4),null==n){var g=t&&t.constructor;n=p?d?new g:[]:l(t)&&f(g)?i(s(t)):{}}return(p?r:o)(t,(function(t,r,i){return e(n,t,r,i)})),n}},function(t,e,n){var r=n(157),i=n(112),o=n(217),a=n(219),s=i((function(t){return o(r(t,1,a,!0))}));t.exports=s},function(t,e,n){var r=n(74),i=n(88),o=n(29),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(a&&t&&t[a])}},function(t,e){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},function(t,e,n){var r=n(152),i=n(181),o=n(67),a=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o;t.exports=a},function(t,e){var n=Date.now;t.exports=function(t){var e=0,r=0;return function(){var i=n(),o=16-(i-r);if(r=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var r=n(382);t.exports=function(t,e){return!!(null==t?0:t.length)&&r(t,e,0)>-1}},function(t,e,n){var r=n(218),i=n(383),o=n(384);t.exports=function(t,e,n){return e==e?o(t,e,n):r(t,i,n)}},function(t,e){t.exports=function(t){return t!=t}},function(t,e){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}},function(t,e){t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}},function(t,e,n){var r=n(191),i=n(387),o=n(155),a=r&&1/o(new r([,-0]))[1]==1/0?function(t){return new r(t)}:i;t.exports=a},function(t,e){t.exports=function(){}},function(t,e,n){var r=n(111);t.exports=function(t,e){return r(e,(function(e){return t[e]}))}},function(t,e){t.exports="2.1.8"},function(t,e,n){var r=n(42),i=n(142);function o(t){return r.map(t.nodes(),(function(e){var n=t.node(e),i=t.parent(e),o={v:e};return r.isUndefined(n)||(o.value=n),r.isUndefined(i)||(o.parent=i),o}))}function a(t){return r.map(t.edges(),(function(e){var n=t.edge(e),i={v:e.v,w:e.w};return r.isUndefined(e.name)||(i.name=e.name),r.isUndefined(n)||(i.value=n),i}))}t.exports={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:o(t),edges:a(t)};r.isUndefined(t.graph())||(e.value=r.clone(t.graph()));return e},read:function(t){var e=new i(t.options).setGraph(t.value);return r.each(t.nodes,(function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)})),r.each(t.edges,(function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)})),e}}},function(t,e,n){t.exports={components:n(392),dijkstra:n(221),dijkstraAll:n(393),findCycles:n(394),floydWarshall:n(395),isAcyclic:n(396),postorder:n(397),preorder:n(398),prim:n(399),tarjan:n(223),topsort:n(224)}},function(t,e,n){var r=n(42);t.exports=function(t){var e,n={},i=[];function o(i){r.has(n,i)||(n[i]=!0,e.push(i),r.each(t.successors(i),o),r.each(t.predecessors(i),o))}return r.each(t.nodes(),(function(t){e=[],o(t),e.length&&i.push(e)})),i}},function(t,e,n){var r=n(221),i=n(42);t.exports=function(t,e,n){return i.transform(t.nodes(),(function(i,o){i[o]=r(t,o,e,n)}),{})}},function(t,e,n){var r=n(42),i=n(223);t.exports=function(t){return r.filter(i(t),(function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])}))}},function(t,e,n){var r=n(42);t.exports=function(t,e,n){return function(t,e,n){var r={},i=t.nodes();return i.forEach((function(t){r[t]={},r[t][t]={distance:0},i.forEach((function(e){t!==e&&(r[t][e]={distance:Number.POSITIVE_INFINITY})})),n(t).forEach((function(n){var i=n.v===t?n.w:n.v,o=e(n);r[t][i]={distance:o,predecessor:t}}))})),i.forEach((function(t){var e=r[t];i.forEach((function(n){var o=r[n];i.forEach((function(n){var r=o[t],i=e[n],a=o[n],s=r.distance+i.distance;s<a.distance&&(a.distance=s,a.predecessor=i.predecessor)}))}))})),r}(t,e||i,n||function(e){return t.outEdges(e)})};var i=r.constant(1)},function(t,e,n){var r=n(224);t.exports=function(t){try{r(t)}catch(t){if(t instanceof r.CycleException)return!1;throw t}return!0}},function(t,e,n){var r=n(225);t.exports=function(t,e){return r(t,e,"post")}},function(t,e,n){var r=n(225);t.exports=function(t,e){return r(t,e,"pre")}},function(t,e,n){var r=n(42),i=n(142),o=n(222);t.exports=function(t,e){var n,a=new i,s={},u=new o;function c(t){var r=t.v===n?t.w:t.v,i=u.priority(r);if(void 0!==i){var o=e(t);o<i&&(s[r]=n,u.decrease(r,o))}}if(0===t.nodeCount())return a;r.each(t.nodes(),(function(t){u.add(t,Number.POSITIVE_INFINITY),a.setNode(t)})),u.decrease(t.nodes()[0],0);var f=!1;for(;u.size()>0;){if(n=u.removeMin(),r.has(s,n))a.setEdge(n,s[n]);else{if(f)throw new Error("Input graph is not connected: "+t);f=!0}t.nodeEdges(n).forEach(c)}return a}},function(t,e,n){"use strict";var r=n(27),i=n(439),o=n(442),a=n(443),s=n(37).normalizeRanks,u=n(445),c=n(37).removeEmptyRanks,f=n(446),l=n(447),h=n(448),d=n(449),p=n(458),g=n(37),v=n(44).Graph;t.exports=function(t,e){var n=e&&e.debugTiming?g.time:g.notime;n("layout",(function(){var e=n(" buildLayoutGraph",(function(){return function(t){var e=new v({multigraph:!0,compound:!0}),n=k(t.graph());return e.setGraph(r.merge({},m,O(n,y),r.pick(n,b))),r.forEach(t.nodes(),(function(n){var i=k(t.node(n));e.setNode(n,r.defaults(O(i,x),w)),e.setParent(n,t.parent(n))})),r.forEach(t.edges(),(function(n){var i=k(t.edge(n));e.setEdge(n,r.merge({},E,O(i,S),r.pick(i,_)))})),e}(t)}));n(" runLayout",(function(){!function(t,e){e(" makeSpaceForEdgeLabels",(function(){!function(t){var e=t.graph();e.ranksep/=2,r.forEach(t.edges(),(function(n){var r=t.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}(t)})),e(" removeSelfEdges",(function(){!function(t){r.forEach(t.edges(),(function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}}))}(t)})),e(" acyclic",(function(){i.run(t)})),e(" nestingGraph.run",(function(){f.run(t)})),e(" rank",(function(){a(g.asNonCompoundGraph(t))})),e(" injectEdgeLabelProxies",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),i={rank:(t.node(e.w).rank-r.rank)/2+r.rank,e:e};g.addDummyNode(t,"edge-proxy",i,"_ep")}}))}(t)})),e(" removeEmptyRanks",(function(){c(t)})),e(" nestingGraph.cleanup",(function(){f.cleanup(t)})),e(" normalizeRanks",(function(){s(t)})),e(" assignRankMinMax",(function(){!function(t){var e=0;r.forEach(t.nodes(),(function(n){var i=t.node(n);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,e=r.max(e,i.maxRank))})),t.graph().maxRank=e}(t)})),e(" removeEdgeLabelProxies",(function(){!function(t){r.forEach(t.nodes(),(function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))}))}(t)})),e(" normalize.run",(function(){o.run(t)})),e(" parentDummyChains",(function(){u(t)})),e(" addBorderSegments",(function(){l(t)})),e(" order",(function(){d(t)})),e(" insertSelfEdges",(function(){!function(t){var e=g.buildLayerMatrix(t);r.forEach(e,(function(e){var n=0;r.forEach(e,(function(e,i){var o=t.node(e);o.order=i+n,r.forEach(o.selfEdges,(function(e){g.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:o.rank,order:i+ ++n,e:e.e,label:e.label},"_se")})),delete o.selfEdges}))}))}(t)})),e(" adjustCoordinateSystem",(function(){h.adjust(t)})),e(" position",(function(){p(t)})),e(" positionSelfEdges",(function(){!function(t){r.forEach(t.nodes(),(function(e){var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),i=r.x+r.width/2,o=r.y,a=n.x-i,s=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*a/3,y:o-s},{x:i+5*a/6,y:o-s},{x:i+a,y:o},{x:i+5*a/6,y:o+s},{x:i+2*a/3,y:o+s}],n.label.x=n.x,n.label.y=n.y}}))}(t)})),e(" removeBorderNodes",(function(){!function(t){r.forEach(t.nodes(),(function(e){if(t.children(e).length){var n=t.node(e),i=t.node(n.borderTop),o=t.node(n.borderBottom),a=t.node(r.last(n.borderLeft)),s=t.node(r.last(n.borderRight));n.width=Math.abs(s.x-a.x),n.height=Math.abs(o.y-i.y),n.x=a.x+n.width/2,n.y=i.y+n.height/2}})),r.forEach(t.nodes(),(function(e){"border"===t.node(e).dummy&&t.removeNode(e)}))}(t)})),e(" normalize.undo",(function(){o.undo(t)})),e(" fixupEdgeLabelCoords",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(r.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}}))}(t)})),e(" undoCoordinateSystem",(function(){h.undo(t)})),e(" translateGraph",(function(){!function(t){var e=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,o=0,a=t.graph(),s=a.marginx||0,u=a.marginy||0;function c(t){var r=t.x,a=t.y,s=t.width,u=t.height;e=Math.min(e,r-s/2),n=Math.max(n,r+s/2),i=Math.min(i,a-u/2),o=Math.max(o,a+u/2)}r.forEach(t.nodes(),(function(e){c(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.has(n,"x")&&c(n)})),e-=s,i-=u,r.forEach(t.nodes(),(function(n){var r=t.node(n);r.x-=e,r.y-=i})),r.forEach(t.edges(),(function(n){var o=t.edge(n);r.forEach(o.points,(function(t){t.x-=e,t.y-=i})),r.has(o,"x")&&(o.x-=e),r.has(o,"y")&&(o.y-=i)})),a.width=n-e+s,a.height=o-i+u}(t)})),e(" assignNodeIntersects",(function(){!function(t){r.forEach(t.edges(),(function(e){var n,r,i=t.edge(e),o=t.node(e.v),a=t.node(e.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=a,r=o),i.points.unshift(g.intersectRect(o,n)),i.points.push(g.intersectRect(a,r))}))}(t)})),e(" reversePoints",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);n.reversed&&n.points.reverse()}))}(t)})),e(" acyclic.undo",(function(){i.undo(t)}))}(e,n)})),n(" updateInputGraph",(function(){!function(t,e){r.forEach(t.nodes(),(function(n){var r=t.node(n),i=e.node(n);r&&(r.x=i.x,r.y=i.y,e.children(n).length&&(r.width=i.width,r.height=i.height))})),r.forEach(t.edges(),(function(n){var i=t.edge(n),o=e.edge(n);i.points=o.points,r.has(o,"x")&&(i.x=o.x,i.y=o.y)})),t.graph().width=e.graph().width,t.graph().height=e.graph().height}(t,e)}))}))};var y=["nodesep","edgesep","ranksep","marginx","marginy"],m={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},b=["acyclicer","ranker","rankdir","align"],x=["width","height"],w={width:0,height:0},S=["minlen","weight","width","height","labeloffset"],E={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},_=["labelpos"];function O(t,e){return r.mapValues(r.pick(t,e),Number)}function k(t){var e={};return r.forEach(t,(function(t,n){e[n.toLowerCase()]=t})),e}},function(t,e,n){var r=n(177);t.exports=function(t){return r(t,5)}},function(t,e,n){var r=n(112),i=n(73),o=n(113),a=n(66),s=Object.prototype,u=s.hasOwnProperty,c=r((function(t,e){t=Object(t);var n=-1,r=e.length,c=r>2?e[2]:void 0;for(c&&o(e[0],e[1],c)&&(r=1);++n<r;)for(var f=e[n],l=a(f),h=-1,d=l.length;++h<d;){var p=l[h],g=t[p];(void 0===g||i(g,s[p])&&!u.call(t,p))&&(t[p]=f[p])}return t}));t.exports=c},function(t,e,n){var r=n(404)(n(405));t.exports=r},function(t,e,n){var r=n(55),i=n(54),o=n(60);t.exports=function(t){return function(e,n,a){var s=Object(e);if(!i(e)){var u=r(n,3);e=o(e),n=function(t){return u(s[t],t,s)}}var c=t(e,n,a);return c>-1?s[u?e[c]:c]:void 0}}},function(t,e,n){var r=n(218),i=n(55),o=n(406),a=Math.max;t.exports=function(t,e,n){var s=null==t?0:t.length;if(!s)return-1;var u=null==n?0:o(n);return u<0&&(u=a(s+u,0)),r(t,i(e,3),u)}},function(t,e,n){var r=n(226);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},function(t,e,n){var r=n(408),i=n(43),o=n(77),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=s.test(t);return n||u.test(t)?c(t.slice(2),n?2:8):a.test(t)?NaN:+t}},function(t,e,n){var r=n(409),i=/^\\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(i,""):t}},function(t,e){var n=/\\s/;t.exports=function(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e}},function(t,e,n){var r=n(154),i=n(198),o=n(66);t.exports=function(t,e){return null==t?t:r(t,i(e),o)}},function(t,e){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},function(t,e,n){var r=n(103),i=n(153),o=n(55);t.exports=function(t,e){var n={};return e=o(e,3),i(t,(function(t,i,o){r(n,i,e(t,i,o))})),n}},function(t,e,n){var r=n(158),i=n(414),o=n(67);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},function(t,e){t.exports=function(t,e){return t>e}},function(t,e,n){var r=n(416),i=n(419)((function(t,e,n){r(t,e,n)}));t.exports=i},function(t,e,n){var r=n(97),i=n(228),o=n(154),a=n(417),s=n(43),u=n(66),c=n(229);t.exports=function t(e,n,f,l,h){e!==n&&o(n,(function(o,u){if(h||(h=new r),s(o))a(e,n,u,f,t,l,h);else{var d=l?l(c(e,u),o,u+"",e,n,h):void 0;void 0===d&&(d=o),i(e,u,d)}}),u)}},function(t,e,n){var r=n(228),i=n(184),o=n(193),a=n(185),s=n(194),u=n(88),c=n(29),f=n(219),l=n(75),h=n(86),d=n(43),p=n(168),g=n(32),v=n(229),y=n(418);t.exports=function(t,e,n,m,b,x,w){var S=v(t,n),E=v(e,n),_=w.get(E);if(_)r(t,n,_);else{var O=x?x(S,E,n+"",t,e,w):void 0,k=void 0===O;if(k){var M=c(E),A=!M&&l(E),T=!M&&!A&&g(E);O=E,M||A||T?c(S)?O=S:f(S)?O=a(S):A?(k=!1,O=i(E,!0)):T?(k=!1,O=o(E,!0)):O=[]:p(E)||u(E)?(O=S,u(S)?O=y(S):d(S)&&!h(S)||(O=s(E))):k=!1}k&&(w.set(E,O),b(O,E,m,x,w),w.delete(E)),r(t,n,O)}}},function(t,e,n){var r=n(87),i=n(66);t.exports=function(t){return r(t,i(t))}},function(t,e,n){var r=n(112),i=n(113);t.exports=function(t){return r((function(e,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),e=Object(e);++r<o;){var u=n[r];u&&t(e,u,r,a)}return e}))}},function(t,e,n){var r=n(158),i=n(230),o=n(67);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},function(t,e,n){var r=n(158),i=n(55),o=n(230);t.exports=function(t,e){return t&&t.length?r(t,i(e,2),o):void 0}},function(t,e,n){var r=n(45);t.exports=function(){return r.Date.now()}},function(t,e,n){var r=n(424),i=n(427)((function(t,e){return null==t?{}:r(t,e)}));t.exports=i},function(t,e,n){var r=n(425),i=n(207);t.exports=function(t,e){return r(t,e,(function(e,n){return i(t,n)}))}},function(t,e,n){var r=n(109),i=n(426),o=n(110);t.exports=function(t,e,n){for(var a=-1,s=e.length,u={};++a<s;){var c=e[a],f=r(t,c);n(f,c)&&i(u,o(c,t),f)}return u}},function(t,e,n){var r=n(102),i=n(110),o=n(104),a=n(43),s=n(89);t.exports=function(t,e,n,u){if(!a(t))return t;for(var c=-1,f=(e=i(e,t)).length,l=f-1,h=t;null!=h&&++c<f;){var d=s(e[c]),p=n;if("__proto__"===d||"constructor"===d||"prototype"===d)return t;if(c!=l){var g=h[d];void 0===(p=u?u(g,d,h):void 0)&&(p=a(g)?g:o(e[c+1])?[]:{})}r(h,d,p),h=h[d]}return t}},function(t,e,n){var r=n(227),i=n(215),o=n(216);t.exports=function(t){return o(i(t,void 0,r),t+"")}},function(t,e,n){var r=n(429)();t.exports=r},function(t,e,n){var r=n(430),i=n(113),o=n(226);t.exports=function(t){return function(e,n,a){return a&&"number"!=typeof a&&i(e,n,a)&&(n=a=void 0),e=o(e),void 0===n?(n=e,e=0):n=o(n),a=void 0===a?e<n?1:-1:o(a),r(e,n,a,t)}}},function(t,e){var n=Math.ceil,r=Math.max;t.exports=function(t,e,i,o){for(var a=-1,s=r(n((e-t)/(i||1)),0),u=Array(s);s--;)u[o?s:++a]=t,t+=i;return u}},function(t,e,n){var r=n(157),i=n(432),o=n(112),a=n(113),s=o((function(t,e){if(null==t)return[];var n=e.length;return n>1&&a(t,e[0],e[1])?e=[]:n>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])}));t.exports=s},function(t,e,n){var r=n(111),i=n(109),o=n(55),a=n(213),s=n(433),u=n(105),c=n(434),f=n(67),l=n(29);t.exports=function(t,e,n){e=e.length?r(e,(function(t){return l(t)?function(e){return i(e,1===t.length?t[0]:t)}:t})):[f];var h=-1;e=r(e,u(o));var d=a(t,(function(t,n,i){return{criteria:r(e,(function(e){return e(t)})),index:++h,value:t}}));return s(d,(function(t,e){return c(t,e,n)}))}},function(t,e){t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},function(t,e,n){var r=n(435);t.exports=function(t,e,n){for(var i=-1,o=t.criteria,a=e.criteria,s=o.length,u=n.length;++i<s;){var c=r(o[i],a[i]);if(c)return i>=u?c:c*("desc"==n[i]?-1:1)}return t.index-e.index}},function(t,e,n){var r=n(77);t.exports=function(t,e){if(t!==e){var n=void 0!==t,i=null===t,o=t==t,a=r(t),s=void 0!==e,u=null===e,c=e==e,f=r(e);if(!u&&!f&&!a&&t>e||a&&s&&c&&!u&&!f||i&&s&&c||!n&&c||!o)return 1;if(!i&&!a&&!f&&t<e||f&&n&&o&&!i&&!a||u&&n&&o||!s&&o||!c)return-1}return 0}},function(t,e,n){var r=n(206),i=0;t.exports=function(t){var e=++i;return r(t)+e}},function(t,e,n){var r=n(102),i=n(438);t.exports=function(t,e){return i(t||[],e||[],r)}},function(t,e){t.exports=function(t,e,n){for(var r=-1,i=t.length,o=e.length,a={};++r<i;){var s=r<o?e[r]:void 0;n(a,t[r],s)}return a}},function(t,e,n){"use strict";var r=n(27),i=n(440);t.exports={run:function(t){var e="greedy"===t.graph().acyclicer?i(t,function(t){return function(e){return t.edge(e).weight}}(t)):function(t){var e=[],n={},i={};function o(a){r.has(i,a)||(i[a]=!0,n[a]=!0,r.forEach(t.outEdges(a),(function(t){r.has(n,t.w)?e.push(t):o(t.w)})),delete n[a])}return r.forEach(t.nodes(),o),e}(t);r.forEach(e,(function(e){var n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,r.uniqueId("rev"))}))},undo:function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.reversed){t.removeEdge(e);var r=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,r)}}))}}},function(t,e,n){var r=n(27),i=n(44).Graph,o=n(441);t.exports=function(t,e){if(t.nodeCount()<=1)return[];var n=function(t,e){var n=new i,a=0,s=0;r.forEach(t.nodes(),(function(t){n.setNode(t,{v:t,in:0,out:0})})),r.forEach(t.edges(),(function(t){var r=n.edge(t.v,t.w)||0,i=e(t),o=r+i;n.setEdge(t.v,t.w,o),s=Math.max(s,n.node(t.v).out+=i),a=Math.max(a,n.node(t.w).in+=i)}));var c=r.range(s+a+3).map((function(){return new o})),f=a+1;return r.forEach(n.nodes(),(function(t){u(c,f,n.node(t))})),{graph:n,buckets:c,zeroIdx:f}}(t,e||a),c=function(t,e,n){var r,i=[],o=e[e.length-1],a=e[0];for(;t.nodeCount();){for(;r=a.dequeue();)s(t,e,n,r);for(;r=o.dequeue();)s(t,e,n,r);if(t.nodeCount())for(var u=e.length-2;u>0;--u)if(r=e[u].dequeue()){i=i.concat(s(t,e,n,r,!0));break}}return i}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(c,(function(e){return t.outEdges(e.v,e.w)})),!0)};var a=r.constant(1);function s(t,e,n,i,o){var a=o?[]:void 0;return r.forEach(t.inEdges(i.v),(function(r){var i=t.edge(r),s=t.node(r.v);o&&a.push({v:r.v,w:r.w}),s.out-=i,u(e,n,s)})),r.forEach(t.outEdges(i.v),(function(r){var i=t.edge(r),o=r.w,a=t.node(o);a.in-=i,u(e,n,a)})),t.removeNode(i.v),a}function u(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}},function(t,e){function n(){var t={};t._next=t._prev=t,this._sentinel=t}function r(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function i(t,e){if("_next"!==t&&"_prev"!==t)return e}t.exports=n,n.prototype.dequeue=function(){var t=this._sentinel,e=t._prev;if(e!==t)return r(e),e},n.prototype.enqueue=function(t){var e=this._sentinel;t._prev&&t._next&&r(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e},n.prototype.toString=function(){for(var t=[],e=this._sentinel,n=e._prev;n!==e;)t.push(JSON.stringify(n,i)),n=n._prev;return"["+t.join(", ")+"]"}},function(t,e,n){"use strict";var r=n(27),i=n(37);t.exports={run:function(t){t.graph().dummyChains=[],r.forEach(t.edges(),(function(e){!function(t,e){var n,r,o,a=e.v,s=t.node(a).rank,u=e.w,c=t.node(u).rank,f=e.name,l=t.edge(e),h=l.labelRank;if(c===s+1)return;for(t.removeEdge(e),o=0,++s;s<c;++o,++s)l.points=[],r={width:0,height:0,edgeLabel:l,edgeObj:e,rank:s},n=i.addDummyNode(t,"edge",r,"_d"),s===h&&(r.width=l.width,r.height=l.height,r.dummy="edge-label",r.labelpos=l.labelpos),t.setEdge(a,n,{weight:l.weight},f),0===o&&t.graph().dummyChains.push(n),a=n;t.setEdge(a,u,{weight:l.weight},f)}(t,e)}))},undo:function(t){r.forEach(t.graph().dummyChains,(function(e){var n,r=t.node(e),i=r.edgeLabel;for(t.setEdge(r.edgeObj,i);r.dummy;)n=t.successors(e)[0],t.removeNode(e),i.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height),e=n,r=t.node(e)}))}}},function(t,e,n){"use strict";var r=n(114).longestPath,i=n(231),o=n(444);t.exports=function(t){switch(t.graph().ranker){case"network-simplex":s(t);break;case"tight-tree":!function(t){r(t),i(t)}(t);break;case"longest-path":a(t);break;default:s(t)}};var a=r;function s(t){o(t)}},function(t,e,n){"use strict";var r=n(27),i=n(231),o=n(114).slack,a=n(114).longestPath,s=n(44).alg.preorder,u=n(44).alg.postorder,c=n(37).simplify;function f(t){t=c(t),a(t);var e,n=i(t);for(d(n),l(n,t);e=g(n);)y(n,t,e,v(n,t,e))}function l(t,e){var n=u(t,t.nodes());n=n.slice(0,n.length-1),r.forEach(n,(function(n){!function(t,e,n){var r=t.node(n).parent;t.edge(n,r).cutvalue=h(t,e,n)}(t,e,n)}))}function h(t,e,n){var i=t.node(n).parent,o=!0,a=e.edge(n,i),s=0;return a||(o=!1,a=e.edge(i,n)),s=a.weight,r.forEach(e.nodeEdges(n),(function(r){var a,u,c=r.v===n,f=c?r.w:r.v;if(f!==i){var l=c===o,h=e.edge(r).weight;if(s+=l?h:-h,a=n,u=f,t.hasEdge(a,u)){var d=t.edge(n,f).cutvalue;s+=l?-d:d}}})),s}function d(t,e){arguments.length<2&&(e=t.nodes()[0]),p(t,{},1,e)}function p(t,e,n,i,o){var a=n,s=t.node(i);return e[i]=!0,r.forEach(t.neighbors(i),(function(o){r.has(e,o)||(n=p(t,e,n,o,i))})),s.low=a,s.lim=n++,o?s.parent=o:delete s.parent,n}function g(t){return r.find(t.edges(),(function(e){return t.edge(e).cutvalue<0}))}function v(t,e,n){var i=n.v,a=n.w;e.hasEdge(i,a)||(i=n.w,a=n.v);var s=t.node(i),u=t.node(a),c=s,f=!1;s.lim>u.lim&&(c=u,f=!0);var l=r.filter(e.edges(),(function(e){return f===m(t,t.node(e.v),c)&&f!==m(t,t.node(e.w),c)}));return r.minBy(l,(function(t){return o(e,t)}))}function y(t,e,n,i){var o=n.v,a=n.w;t.removeEdge(o,a),t.setEdge(i.v,i.w,{}),d(t),l(t,e),function(t,e){var n=r.find(t.nodes(),(function(t){return!e.node(t).parent})),i=s(t,n);i=i.slice(1),r.forEach(i,(function(n){var r=t.node(n).parent,i=e.edge(n,r),o=!1;i||(i=e.edge(r,n),o=!0),e.node(n).rank=e.node(r).rank+(o?i.minlen:-i.minlen)}))}(t,e)}function m(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}t.exports=f,f.initLowLimValues=d,f.initCutValues=l,f.calcCutValue=h,f.leaveEdge=g,f.enterEdge=v,f.exchangeEdges=y},function(t,e,n){var r=n(27);t.exports=function(t){var e=function(t){var e={},n=0;function i(o){var a=n;r.forEach(t.children(o),i),e[o]={low:a,lim:n++}}return r.forEach(t.children(),i),e}(t);r.forEach(t.graph().dummyChains,(function(n){for(var r=t.node(n),i=r.edgeObj,o=function(t,e,n,r){var i,o,a=[],s=[],u=Math.min(e[n].low,e[r].low),c=Math.max(e[n].lim,e[r].lim);i=n;do{i=t.parent(i),a.push(i)}while(i&&(e[i].low>u||c>e[i].lim));o=i,i=r;for(;(i=t.parent(i))!==o;)s.push(i);return{path:a.concat(s.reverse()),lca:o}}(t,e,i.v,i.w),a=o.path,s=o.lca,u=0,c=a[u],f=!0;n!==i.w;){if(r=t.node(n),f){for(;(c=a[u])!==s&&t.node(c).maxRank<r.rank;)u++;c===s&&(f=!1)}if(!f){for(;u<a.length-1&&t.node(c=a[u+1]).minRank<=r.rank;)u++;c=a[u]}t.setParent(n,c),n=t.successors(n)[0]}}))}},function(t,e,n){var r=n(27),i=n(37);t.exports={run:function(t){var e=i.addDummyNode(t,"root",{},"_root"),n=function(t){var e={};return r.forEach(t.children(),(function(n){!function n(i,o){var a=t.children(i);a&&a.length&&r.forEach(a,(function(t){n(t,o+1)}));e[i]=o}(n,1)})),e}(t),o=r.max(r.values(n))-1,a=2*o+1;t.graph().nestingRoot=e,r.forEach(t.edges(),(function(e){t.edge(e).minlen*=a}));var s=function(t){return r.reduce(t.edges(),(function(e,n){return e+t.edge(n).weight}),0)}(t)+1;r.forEach(t.children(),(function(u){!function t(e,n,o,a,s,u,c){var f=e.children(c);if(!f.length)return void(c!==n&&e.setEdge(n,c,{weight:0,minlen:o}));var l=i.addBorderNode(e,"_bt"),h=i.addBorderNode(e,"_bb"),d=e.node(c);e.setParent(l,c),d.borderTop=l,e.setParent(h,c),d.borderBottom=h,r.forEach(f,(function(r){t(e,n,o,a,s,u,r);var i=e.node(r),f=i.borderTop?i.borderTop:r,d=i.borderBottom?i.borderBottom:r,p=i.borderTop?a:2*a,g=f!==d?1:s-u[c]+1;e.setEdge(l,f,{weight:p,minlen:g,nestingEdge:!0}),e.setEdge(d,h,{weight:p,minlen:g,nestingEdge:!0})})),e.parent(c)||e.setEdge(n,l,{weight:0,minlen:s+u[c]})}(t,e,a,s,o,n,u)})),t.graph().nodeRankFactor=a},cleanup:function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,r.forEach(t.edges(),(function(e){t.edge(e).nestingEdge&&t.removeEdge(e)}))}}},function(t,e,n){var r=n(27),i=n(37);function o(t,e,n,r,o,a){var s={width:0,height:0,rank:a,borderType:e},u=o[e][a-1],c=i.addDummyNode(t,"border",s,n);o[e][a]=c,t.setParent(c,r),u&&t.setEdge(u,c,{weight:1})}t.exports=function(t){r.forEach(t.children(),(function e(n){var i=t.children(n),a=t.node(n);if(i.length&&r.forEach(i,e),r.has(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var s=a.minRank,u=a.maxRank+1;s<u;++s)o(t,"borderLeft","_bl",n,a,s),o(t,"borderRight","_br",n,a,s)}}))}},function(t,e,n){"use strict";var r=n(27);function i(t){r.forEach(t.nodes(),(function(e){o(t.node(e))})),r.forEach(t.edges(),(function(e){o(t.edge(e))}))}function o(t){var e=t.width;t.width=t.height,t.height=e}function a(t){t.y=-t.y}function s(t){var e=t.x;t.x=t.y,t.y=e}t.exports={adjust:function(t){var e=t.graph().rankdir.toLowerCase();"lr"!==e&&"rl"!==e||i(t)},undo:function(t){var e=t.graph().rankdir.toLowerCase();"bt"!==e&&"rl"!==e||function(t){r.forEach(t.nodes(),(function(e){a(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.forEach(n.points,a),r.has(n,"y")&&a(n)}))}(t);"lr"!==e&&"rl"!==e||(!function(t){r.forEach(t.nodes(),(function(e){s(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.forEach(n.points,s),r.has(n,"x")&&s(n)}))}(t),i(t))}}},function(t,e,n){"use strict";var r=n(27),i=n(450),o=n(451),a=n(452),s=n(456),u=n(457),c=n(44).Graph,f=n(37);function l(t,e,n){return r.map(e,(function(e){return s(t,e,n)}))}function h(t,e){var n=new c;r.forEach(t,(function(t){var i=t.graph().root,o=a(t,i,n,e);r.forEach(o.vs,(function(e,n){t.node(e).order=n})),u(t,n,o.vs)}))}function d(t,e){r.forEach(e,(function(e){r.forEach(e,(function(e,n){t.node(e).order=n}))}))}t.exports=function(t){var e=f.maxRank(t),n=l(t,r.range(1,e+1),"inEdges"),a=l(t,r.range(e-1,-1,-1),"outEdges"),s=i(t);d(t,s);for(var u,c=Number.POSITIVE_INFINITY,p=0,g=0;g<4;++p,++g){h(p%2?n:a,p%4>=2),s=f.buildLayerMatrix(t);var v=o(t,s);v<c&&(g=0,u=r.cloneDeep(s),c=v)}d(t,u)}},function(t,e,n){"use strict";var r=n(27);t.exports=function(t){var e={},n=r.filter(t.nodes(),(function(e){return!t.children(e).length})),i=r.max(r.map(n,(function(e){return t.node(e).rank}))),o=r.map(r.range(i+1),(function(){return[]}));var a=r.sortBy(n,(function(e){return t.node(e).rank}));return r.forEach(a,(function n(i){if(r.has(e,i))return;e[i]=!0;var a=t.node(i);o[a.rank].push(i),r.forEach(t.successors(i),n)})),o}},function(t,e,n){"use strict";var r=n(27);function i(t,e,n){for(var i=r.zipObject(n,r.map(n,(function(t,e){return e}))),o=r.flatten(r.map(e,(function(e){return r.sortBy(r.map(t.outEdges(e),(function(e){return{pos:i[e.w],weight:t.edge(e).weight}})),"pos")})),!0),a=1;a<n.length;)a<<=1;var s=2*a-1;a-=1;var u=r.map(new Array(s),(function(){return 0})),c=0;return r.forEach(o.forEach((function(t){var e=t.pos+a;u[e]+=t.weight;for(var n=0;e>0;)e%2&&(n+=u[e+1]),u[e=e-1>>1]+=t.weight;c+=t.weight*n}))),c}t.exports=function(t,e){for(var n=0,r=1;r<e.length;++r)n+=i(t,e[r-1],e[r]);return n}},function(t,e,n){var r=n(27),i=n(453),o=n(454),a=n(455);t.exports=function t(e,n,s,u){var c=e.children(n),f=e.node(n),l=f?f.borderLeft:void 0,h=f?f.borderRight:void 0,d={};l&&(c=r.filter(c,(function(t){return t!==l&&t!==h})));var p=i(e,c);r.forEach(p,(function(n){if(e.children(n.v).length){var i=t(e,n.v,s,u);d[n.v]=i,r.has(i,"barycenter")&&(o=n,a=i,r.isUndefined(o.barycenter)?(o.barycenter=a.barycenter,o.weight=a.weight):(o.barycenter=(o.barycenter*o.weight+a.barycenter*a.weight)/(o.weight+a.weight),o.weight+=a.weight))}var o,a}));var g=o(p,s);!function(t,e){r.forEach(t,(function(t){t.vs=r.flatten(t.vs.map((function(t){return e[t]?e[t].vs:t})),!0)}))}(g,d);var v=a(g,u);if(l&&(v.vs=r.flatten([l,v.vs,h],!0),e.predecessors(l).length)){var y=e.node(e.predecessors(l)[0]),m=e.node(e.predecessors(h)[0]);r.has(v,"barycenter")||(v.barycenter=0,v.weight=0),v.barycenter=(v.barycenter*v.weight+y.order+m.order)/(v.weight+2),v.weight+=2}return v}},function(t,e,n){var r=n(27);t.exports=function(t,e){return r.map(e,(function(e){var n=t.inEdges(e);if(n.length){var i=r.reduce(n,(function(e,n){var r=t.edge(n),i=t.node(n.v);return{sum:e.sum+r.weight*i.order,weight:e.weight+r.weight}}),{sum:0,weight:0});return{v:e,barycenter:i.sum/i.weight,weight:i.weight}}return{v:e}}))}},function(t,e,n){"use strict";var r=n(27);t.exports=function(t,e){var n={};return r.forEach(t,(function(t,e){var i=n[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};r.isUndefined(t.barycenter)||(i.barycenter=t.barycenter,i.weight=t.weight)})),r.forEach(e.edges(),(function(t){var e=n[t.v],i=n[t.w];r.isUndefined(e)||r.isUndefined(i)||(i.indegree++,e.out.push(n[t.w]))})),function(t){var e=[];function n(t){return function(e){e.merged||(r.isUndefined(e.barycenter)||r.isUndefined(t.barycenter)||e.barycenter>=t.barycenter)&&function(t,e){var n=0,r=0;t.weight&&(n+=t.barycenter*t.weight,r+=t.weight);e.weight&&(n+=e.barycenter*e.weight,r+=e.weight);t.vs=e.vs.concat(t.vs),t.barycenter=n/r,t.weight=r,t.i=Math.min(e.i,t.i),e.merged=!0}(t,e)}}function i(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}for(;t.length;){var o=t.pop();e.push(o),r.forEach(o.in.reverse(),n(o)),r.forEach(o.out,i(o))}return r.map(r.filter(e,(function(t){return!t.merged})),(function(t){return r.pick(t,["vs","i","barycenter","weight"])}))}(r.filter(n,(function(t){return!t.indegree})))}},function(t,e,n){var r=n(27),i=n(37);function o(t,e,n){for(var i;e.length&&(i=r.last(e)).i<=n;)e.pop(),t.push(i.vs),n++;return n}t.exports=function(t,e){var n=i.partition(t,(function(t){return r.has(t,"barycenter")})),a=n.lhs,s=r.sortBy(n.rhs,(function(t){return-t.i})),u=[],c=0,f=0,l=0;a.sort((h=!!e,function(t,e){return t.barycenter<e.barycenter?-1:t.barycenter>e.barycenter?1:h?e.i-t.i:t.i-e.i})),l=o(u,s,l),r.forEach(a,(function(t){l+=t.vs.length,u.push(t.vs),c+=t.barycenter*t.weight,f+=t.weight,l=o(u,s,l)}));var h;var d={vs:r.flatten(u,!0)};f&&(d.barycenter=c/f,d.weight=f);return d}},function(t,e,n){var r=n(27),i=n(44).Graph;t.exports=function(t,e,n){var o=function(t){var e;for(;t.hasNode(e=r.uniqueId("_root")););return e}(t),a=new i({compound:!0}).setGraph({root:o}).setDefaultNodeLabel((function(e){return t.node(e)}));return r.forEach(t.nodes(),(function(i){var s=t.node(i),u=t.parent(i);(s.rank===e||s.minRank<=e&&e<=s.maxRank)&&(a.setNode(i),a.setParent(i,u||o),r.forEach(t[n](i),(function(e){var n=e.v===i?e.w:e.v,o=a.edge(n,i),s=r.isUndefined(o)?0:o.weight;a.setEdge(n,i,{weight:t.edge(e).weight+s})})),r.has(s,"minRank")&&a.setNode(i,{borderLeft:s.borderLeft[e],borderRight:s.borderRight[e]}))})),a}},function(t,e,n){var r=n(27);t.exports=function(t,e,n){var i,o={};r.forEach(n,(function(n){for(var r,a,s=t.parent(n);s;){if((r=t.parent(s))?(a=o[r],o[r]=s):(a=i,i=s),a&&a!==s)return void e.setEdge(a,s);s=r}}))}},function(t,e,n){"use strict";var r=n(27),i=n(37),o=n(459).positionX;t.exports=function(t){(function(t){var e=i.buildLayerMatrix(t),n=t.graph().ranksep,o=0;r.forEach(e,(function(e){var i=r.max(r.map(e,(function(e){return t.node(e).height})));r.forEach(e,(function(e){t.node(e).y=o+i/2})),o+=i+n}))})(t=i.asNonCompoundGraph(t)),r.forEach(o(t),(function(e,n){t.node(n).x=e}))}},function(t,e,n){"use strict";var r=n(27),i=n(44).Graph,o=n(37);function a(t,e){var n={};return r.reduce(e,(function(e,i){var o=0,a=0,s=e.length,c=r.last(i);return r.forEach(i,(function(e,f){var l=function(t,e){if(t.node(e).dummy)return r.find(t.predecessors(e),(function(e){return t.node(e).dummy}))}(t,e),h=l?t.node(l).order:s;(l||e===c)&&(r.forEach(i.slice(a,f+1),(function(e){r.forEach(t.predecessors(e),(function(r){var i=t.node(r),a=i.order;!(a<o||h<a)||i.dummy&&t.node(e).dummy||u(n,r,e)}))})),a=f+1,o=h)})),i})),n}function s(t,e){var n={};function i(e,i,o,a,s){var c;r.forEach(r.range(i,o),(function(i){c=e[i],t.node(c).dummy&&r.forEach(t.predecessors(c),(function(e){var r=t.node(e);r.dummy&&(r.order<a||r.order>s)&&u(n,e,c)}))}))}return r.reduce(e,(function(e,n){var o,a=-1,s=0;return r.forEach(n,(function(r,u){if("border"===t.node(r).dummy){var c=t.predecessors(r);c.length&&(o=t.node(c[0]).order,i(n,s,u,a,o),s=u,a=o)}i(n,s,n.length,o,e.length)})),n})),n}function u(t,e,n){if(e>n){var r=e;e=n,n=r}var i=t[e];i||(t[e]=i={}),i[n]=!0}function c(t,e,n){if(e>n){var i=e;e=n,n=i}return r.has(t[e],n)}function f(t,e,n,i){var o={},a={},s={};return r.forEach(e,(function(t){r.forEach(t,(function(t,e){o[t]=t,a[t]=t,s[t]=e}))})),r.forEach(e,(function(t){var e=-1;r.forEach(t,(function(t){var u=i(t);if(u.length)for(var f=((u=r.sortBy(u,(function(t){return s[t]}))).length-1)/2,l=Math.floor(f),h=Math.ceil(f);l<=h;++l){var d=u[l];a[t]===t&&e<s[d]&&!c(n,t,d)&&(a[d]=t,a[t]=o[t]=o[d],e=s[d])}}))})),{root:o,align:a}}function l(t,e,n,o,a){var s={},u=function(t,e,n,o){var a=new i,s=t.graph(),u=function(t,e,n){return function(i,o,a){var s,u=i.node(o),c=i.node(a),f=0;if(f+=u.width/2,r.has(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":s=-u.width/2;break;case"r":s=u.width/2}if(s&&(f+=n?s:-s),s=0,f+=(u.dummy?e:t)/2,f+=(c.dummy?e:t)/2,f+=c.width/2,r.has(c,"labelpos"))switch(c.labelpos.toLowerCase()){case"l":s=c.width/2;break;case"r":s=-c.width/2}return s&&(f+=n?s:-s),s=0,f}}(s.nodesep,s.edgesep,o);return r.forEach(e,(function(e){var i;r.forEach(e,(function(e){var r=n[e];if(a.setNode(r),i){var o=n[i],s=a.edge(o,r);a.setEdge(o,r,Math.max(u(t,e,i),s||0))}i=e}))})),a}(t,e,n,a),c=a?"borderLeft":"borderRight";function f(t,e){for(var n=u.nodes(),r=n.pop(),i={};r;)i[r]?t(r):(i[r]=!0,n.push(r),n=n.concat(e(r))),r=n.pop()}return f((function(t){s[t]=u.inEdges(t).reduce((function(t,e){return Math.max(t,s[e.v]+u.edge(e))}),0)}),u.predecessors.bind(u)),f((function(e){var n=u.outEdges(e).reduce((function(t,e){return Math.min(t,s[e.w]-u.edge(e))}),Number.POSITIVE_INFINITY),r=t.node(e);n!==Number.POSITIVE_INFINITY&&r.borderType!==c&&(s[e]=Math.max(s[e],n))}),u.successors.bind(u)),r.forEach(o,(function(t){s[t]=s[n[t]]})),s}function h(t,e){return r.minBy(r.values(e),(function(e){var n=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return r.forIn(e,(function(e,r){var o=function(t,e){return t.node(e).width}(t,r)/2;n=Math.max(e+o,n),i=Math.min(e-o,i)})),n-i}))}function d(t,e){var n=r.values(e),i=r.min(n),o=r.max(n);r.forEach(["u","d"],(function(n){r.forEach(["l","r"],(function(a){var s,u=n+a,c=t[u];if(c!==e){var f=r.values(c);(s="l"===a?i-r.min(f):o-r.max(f))&&(t[u]=r.mapValues(c,(function(t){return t+s})))}}))}))}function p(t,e){return r.mapValues(t.ul,(function(n,i){if(e)return t[e.toLowerCase()][i];var o=r.sortBy(r.map(t,i));return(o[1]+o[2])/2}))}t.exports={positionX:function(t){var e,n=o.buildLayerMatrix(t),i=r.merge(a(t,n),s(t,n)),u={};r.forEach(["u","d"],(function(o){e="u"===o?n:r.values(n).reverse(),r.forEach(["l","r"],(function(n){"r"===n&&(e=r.map(e,(function(t){return r.values(t).reverse()})));var a=("u"===o?t.predecessors:t.successors).bind(t),s=f(t,e,i,a),c=l(t,e,s.root,s.align,"r"===n);"r"===n&&(c=r.mapValues(c,(function(t){return-t}))),u[o+n]=c}))}));var c=h(t,u);return d(u,c),p(u,t.graph().align)},findType1Conflicts:a,findType2Conflicts:s,addConflict:u,hasConflict:c,verticalAlignment:f,horizontalCompaction:l,alignCoordinates:d,findSmallestWidthAlignment:h,balance:p}},function(t,e,n){var r=n(27),i=n(37),o=n(44).Graph;t.exports={debugOrdering:function(t){var e=i.buildLayerMatrix(t),n=new o({compound:!0,multigraph:!0}).setGraph({});return r.forEach(t.nodes(),(function(e){n.setNode(e,{label:e}),n.setParent(e,"layer"+t.node(e).rank)})),r.forEach(t.edges(),(function(t){n.setEdge(t.v,t.w,{},t.name)})),r.forEach(e,(function(t,e){var i="layer"+e;n.setNode(i,{rank:"same"}),r.reduce(t,(function(t,e){return n.setEdge(t,e,{style:"invis"}),e}))})),n}}},function(t,e){t.exports="0.8.5"},function(t,e,n){(function(t){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n=function(t){"use strict";var n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var i=e&&e.prototype instanceof h?e:h,o=Object.create(i.prototype),a=new _(r||[]);return o._invoke=function(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return k()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=w(a,n);if(s){if(s===l)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(t,n,a),o}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var l={};function h(){}function d(){}function p(){}var g={};g[o]=function(){return this};var v=Object.getPrototypeOf,y=v&&v(v(O([])));y&&y!==n&&r.call(y,o)&&(g=y);var m=p.prototype=h.prototype=Object.create(g);function b(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,n){var i;this._invoke=function(o,a){function s(){return new n((function(i,s){!function i(o,a,s,u){var c=f(t[o],t,a);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"===e(h)&&r.call(h,"__await")?n.resolve(h.__await).then((function(t){i("next",t,s,u)}),(function(t){i("throw",t,s,u)})):n.resolve(h).then((function(t){l.value=t,s(l)}),(function(t){return i("throw",t,s,u)}))}u(c.arg)}(o,a,i,s)}))}return i=i?i.then(s,s):s()}}function w(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a \'throw\' method")}return l}var r=f(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,l;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function O(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:k}}function k(){return{value:void 0,done:!0}}return d.prototype=m.constructor=p,p.constructor=d,d.displayName=u(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,u(t,s,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},b(x.prototype),x.prototype[a]=function(){return this},t.AsyncIterator=x,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new x(c(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(m),u(m,s,"Generator"),m[o]=function(){return this},m.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=O,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:O(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},t}("object"===e(t)?t.exports:{});try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}}).call(this,n(72)(t))},function(t,e){t.exports=function(t){if(Array.isArray(t))return t}},function(t,e){t.exports=function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},o=this&&this.__generator||function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.Container=void 0;var a=n(467),s=n(41),u=n(56),c=n(31),f=n(235),l=n(468),h=n(475),d=n(477),p=n(68),g=n(90),v=n(480),y=n(481),m=function(){function t(t){var e=t||{};if("object"!==r(e))throw new Error(""+s.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT);if(void 0===e.defaultScope)e.defaultScope=u.BindingScopeEnum.Transient;else if(e.defaultScope!==u.BindingScopeEnum.Singleton&&e.defaultScope!==u.BindingScopeEnum.Transient&&e.defaultScope!==u.BindingScopeEnum.Request)throw new Error(""+s.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE);if(void 0===e.autoBindInjectable)e.autoBindInjectable=!1;else if("boolean"!=typeof e.autoBindInjectable)throw new Error(""+s.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE);if(void 0===e.skipBaseClassChecks)e.skipBaseClassChecks=!1;else if("boolean"!=typeof e.skipBaseClassChecks)throw new Error(""+s.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK);this.options={autoBindInjectable:e.autoBindInjectable,defaultScope:e.defaultScope,skipBaseClassChecks:e.skipBaseClassChecks},this.id=p.id(),this._bindingDictionary=new y.Lookup,this._snapshots=[],this._middleware=null,this.parent=null,this._metadataReader=new f.MetadataReader}return t.merge=function(e,n){var r=new t,i=l.getBindingDictionary(r),o=l.getBindingDictionary(e),a=l.getBindingDictionary(n);function s(t,e){t.traverse((function(t,n){n.forEach((function(t){e.add(t.serviceIdentifier,t.clone())}))}))}return s(o,i),s(a,i),r},t.prototype.load=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=this._getContainerModuleHelpersFactory(),r=0,i=t;r<i.length;r++){var o=i[r],a=n(o.id);o.registry(a.bindFunction,a.unbindFunction,a.isboundFunction,a.rebindFunction)}},t.prototype.loadAsync=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return i(this,void 0,void 0,(function(){var e,n,r,i,a;return o(this,(function(o){switch(o.label){case 0:e=this._getContainerModuleHelpersFactory(),n=0,r=t,o.label=1;case 1:return n<r.length?(i=r[n],a=e(i.id),[4,i.registry(a.bindFunction,a.unbindFunction,a.isboundFunction,a.rebindFunction)]):[3,4];case 2:o.sent(),o.label=3;case 3:return n++,[3,1];case 4:return[2]}}))}))},t.prototype.unload=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=function(t){return function(e){return e.moduleId===t}};e.forEach((function(e){var n=r(e.id);t._bindingDictionary.removeByCondition(n)}))},t.prototype.bind=function(t){var e=this.options.defaultScope||u.BindingScopeEnum.Transient,n=new a.Binding(t,e);return this._bindingDictionary.add(t,n),new d.BindingToSyntax(n)},t.prototype.rebind=function(t){return this.unbind(t),this.bind(t)},t.prototype.unbind=function(t){try{this._bindingDictionary.remove(t)}catch(e){throw new Error(s.CANNOT_UNBIND+" "+g.getServiceIdentifierAsString(t))}},t.prototype.unbindAll=function(){this._bindingDictionary=new y.Lookup},t.prototype.isBound=function(t){var e=this._bindingDictionary.hasKey(t);return!e&&this.parent&&(e=this.parent.isBound(t)),e},t.prototype.isBoundNamed=function(t,e){return this.isBoundTagged(t,c.NAMED_TAG,e)},t.prototype.isBoundTagged=function(t,e,n){var r=!1;if(this._bindingDictionary.hasKey(t)){var i=this._bindingDictionary.get(t),o=l.createMockRequest(this,t,e,n);r=i.some((function(t){return t.constraint(o)}))}return!r&&this.parent&&(r=this.parent.isBoundTagged(t,e,n)),r},t.prototype.snapshot=function(){this._snapshots.push(v.ContainerSnapshot.of(this._bindingDictionary.clone(),this._middleware))},t.prototype.restore=function(){var t=this._snapshots.pop();if(void 0===t)throw new Error(s.NO_MORE_SNAPSHOTS_AVAILABLE);this._bindingDictionary=t.bindings,this._middleware=t.middleware},t.prototype.createChild=function(e){var n=new t(e||this.options);return n.parent=this,n},t.prototype.applyMiddleware=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this._middleware?this._middleware:this._planAndResolve();this._middleware=t.reduce((function(t,e){return e(t)}),n)},t.prototype.applyCustomMetadataReader=function(t){this._metadataReader=t},t.prototype.get=function(t){return this._get(!1,!1,u.TargetTypeEnum.Variable,t)},t.prototype.getTagged=function(t,e,n){return this._get(!1,!1,u.TargetTypeEnum.Variable,t,e,n)},t.prototype.getNamed=function(t,e){return this.getTagged(t,c.NAMED_TAG,e)},t.prototype.getAll=function(t){return this._get(!0,!0,u.TargetTypeEnum.Variable,t)},t.prototype.getAllTagged=function(t,e,n){return this._get(!1,!0,u.TargetTypeEnum.Variable,t,e,n)},t.prototype.getAllNamed=function(t,e){return this.getAllTagged(t,c.NAMED_TAG,e)},t.prototype.resolve=function(t){var e=this.createChild();return e.bind(t).toSelf(),e.get(t)},t.prototype._getContainerModuleHelpersFactory=function(){var t=this,e=function(t,e){t._binding.moduleId=e},n=function(n){return function(r){var i=t.rebind.bind(t)(r);return e(i,n),i}};return function(r){return{bindFunction:(i=r,function(n){var r=t.bind.bind(t)(n);return e(r,i),r}),isboundFunction:function(e){return t.isBound.bind(t)(e)},rebindFunction:n(r),unbindFunction:function(e){t.unbind.bind(t)(e)}};var i}},t.prototype._get=function(t,e,n,r,i,o){var a=null,u={avoidConstraints:t,contextInterceptor:function(t){return t},isMultiInject:e,key:i,serviceIdentifier:r,targetType:n,value:o};if(this._middleware){if(null==(a=this._middleware(u)))throw new Error(s.INVALID_MIDDLEWARE_RETURN)}else a=this._planAndResolve()(u);return a},t.prototype._planAndResolve=function(){var t=this;return function(e){var n=l.plan(t._metadataReader,t,e.isMultiInject,e.targetType,e.serviceIdentifier,e.key,e.value,e.avoidConstraints);return n=e.contextInterceptor(n),h.resolve(n)}},t}();e.Container=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Binding=void 0;var r=n(56),i=n(68),o=function(){function t(t,e){this.id=i.id(),this.activated=!1,this.serviceIdentifier=t,this.scope=e,this.type=r.BindingTypeEnum.Invalid,this.constraint=function(t){return!0},this.implementationType=null,this.cache=null,this.factory=null,this.provider=null,this.onActivation=null,this.dynamicValue=null}return t.prototype.clone=function(){var e=new t(this.serviceIdentifier,this.scope);return e.activated=!1,e.implementationType=this.implementationType,e.dynamicValue=this.dynamicValue,e.scope=this.scope,e.type=this.type,e.factory=this.factory,e.provider=this.provider,e.constraint=this.constraint,e.onActivation=this.onActivation,e.cache=this.cache,e},t}();e.Binding=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getBindingDictionary=e.createMockRequest=e.plan=void 0;var r=n(469),i=n(41),o=n(56),a=n(31),s=n(236),u=n(90),c=n(470),f=n(47),l=n(471),h=n(472),d=n(474),p=n(238);function g(t){return t._bindingDictionary}function v(t,e,n,o,a){var s=y(n.container,a.serviceIdentifier),c=[];return s.length===r.BindingCount.NoBindingsAvailable&&n.container.options.autoBindInjectable&&"function"==typeof a.serviceIdentifier&&t.getConstructorMetadata(a.serviceIdentifier).compilerGeneratedMetadata&&(n.container.bind(a.serviceIdentifier).toSelf(),s=y(n.container,a.serviceIdentifier)),c=e?s:s.filter((function(t){var e=new d.Request(t.serviceIdentifier,n,o,t,a);return t.constraint(e)})),function(t,e,n,o){switch(e.length){case r.BindingCount.NoBindingsAvailable:if(n.isOptional())return e;var a=u.getServiceIdentifierAsString(t),s=i.NOT_REGISTERED;throw s+=u.listMetadataForTarget(a,n),s+=u.listRegisteredBindingsForServiceIdentifier(o,a,y),new Error(s);case r.BindingCount.OnlyOneBindingAvailable:if(!n.isArray())return e;case r.BindingCount.MultipleBindingsAvailable:default:if(n.isArray())return e;a=u.getServiceIdentifierAsString(t),s=i.AMBIGUOUS_MATCH+" "+a;throw s+=u.listRegisteredBindingsForServiceIdentifier(o,a,y),new Error(s)}}(a.serviceIdentifier,c,a,n.container),c}function y(t,e){var n=[],r=g(t);return r.hasKey(e)?n=r.get(e):null!==t.parent&&(n=y(t.parent,e)),n}e.getBindingDictionary=g,e.plan=function(t,e,n,r,g,y,m,b){void 0===b&&(b=!1);var x=new c.Context(e),w=function(t,e,n,r,i,o){var s=t?a.MULTI_INJECT_TAG:a.INJECT_TAG,u=new f.Metadata(s,n),c=new p.Target(e,r,n,u);if(void 0!==i){var l=new f.Metadata(i,o);c.metadata.push(l)}return c}(n,r,g,"",y,m);try{return function t(e,n,r,a,s,u){var c,f;if(null===s){c=v(e,n,a,null,u),f=new d.Request(r,a,null,c,u);var p=new l.Plan(a,f);a.addPlan(p)}else c=v(e,n,a,s,u),f=s.addChildRequest(u.serviceIdentifier,c,u);c.forEach((function(n){var r=null;if(u.isArray())r=f.addChildRequest(n.serviceIdentifier,n,u);else{if(n.cache)return;r=f}if(n.type===o.BindingTypeEnum.Instance&&null!==n.implementationType){var s=h.getDependencies(e,n.implementationType);if(!a.container.options.skipBaseClassChecks){var c=h.getBaseClassDependencyCount(e,n.implementationType);if(s.length<c){var l=i.ARGUMENTS_LENGTH_MISMATCH(h.getFunctionName(n.implementationType));throw new Error(l)}}s.forEach((function(n){t(e,!1,n.serviceIdentifier,a,r,n)}))}}))}(t,b,g,x,null,w),x}catch(t){throw s.isStackOverflowExeption(t)&&x.plan&&u.circularDependencyToException(x.plan.rootRequest),t}},e.createMockRequest=function(t,e,n,r){var i=new p.Target(o.TargetTypeEnum.Variable,"",e,new f.Metadata(n,r)),a=new c.Context(t);return new d.Request(e,a,null,[],i)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BindingCount=void 0;e.BindingCount={MultipleBindingsAvailable:2,NoBindingsAvailable:0,OnlyOneBindingAvailable:1}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Context=void 0;var r=n(68),i=function(){function t(t){this.id=r.id(),this.container=t}return t.prototype.addPlan=function(t){this.plan=t},t.prototype.setCurrentRequest=function(t){this.currentRequest=t},t}();e.Context=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Plan=void 0;var r=function(t,e){this.parentContext=t,this.rootRequest=e};e.Plan=r},function(t,e,n){"use strict";var r=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};Object.defineProperty(e,"__esModule",{value:!0}),e.getFunctionName=e.getBaseClassDependencyCount=e.getDependencies=void 0;var i=n(237),o=n(41),a=n(56),s=n(31),u=n(90);Object.defineProperty(e,"getFunctionName",{enumerable:!0,get:function(){return u.getFunctionName}});var c=n(238);function f(t,e,n,i){var s=t.getConstructorMetadata(n),u=s.compilerGeneratedMetadata;if(void 0===u){var f=o.MISSING_INJECTABLE_ANNOTATION+" "+e+".";throw new Error(f)}var d=s.userGeneratedMetadata,p=Object.keys(d),g=function(t,e,n,r,i){for(var o=[],a=0;a<i;a++){var s=l(a,t,e,n,r);null!==s&&o.push(s)}return o}(i,e,u,d,0===n.length&&p.length>0?p.length:n.length),v=function t(e,n){for(var i=e.getPropertiesMetadata(n),o=[],s=Object.keys(i),u=0,f=s;u<f.length;u++){var l=f[u],d=i[l],p=h(i[l]),g=p.targetName||l,v=p.inject||p.multiInject,y=new c.Target(a.TargetTypeEnum.ClassProperty,g,v);y.metadata=d,o.push(y)}var m=Object.getPrototypeOf(n.prototype).constructor;if(m!==Object){var b=t(e,m);o=r(o,b)}return o}(t,n);return r(g,v)}function l(t,e,n,r,s){var u=s[t.toString()]||[],f=h(u),l=!0!==f.unmanaged,d=r[t],p=f.inject||f.multiInject;if((d=p||d)instanceof i.LazyServiceIdentifer&&(d=d.unwrap()),l){if(!e&&(d===Object||d===Function||void 0===d)){var g=o.MISSING_INJECT_ANNOTATION+" argument "+t+" in class "+n+".";throw new Error(g)}var v=new c.Target(a.TargetTypeEnum.ConstructorArgument,f.targetName,d);return v.metadata=u,v}return null}function h(t){var e={};return t.forEach((function(t){e[t.key.toString()]=t.value})),{inject:e[s.INJECT_TAG],multiInject:e[s.MULTI_INJECT_TAG],targetName:e[s.NAME_TAG],unmanaged:e[s.UNMANAGED_TAG]}}e.getDependencies=function(t,e){return f(t,u.getFunctionName(e),e,!1)},e.getBaseClassDependencyCount=function t(e,n){var r=Object.getPrototypeOf(n.prototype).constructor;if(r!==Object){var i=f(e,u.getFunctionName(r),r,!0),o=i.map((function(t){return t.metadata.filter((function(t){return t.key===s.UNMANAGED_TAG}))})),a=[].concat.apply([],o).length,c=i.length-a;return c>0?c:t(e,r)}return 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.QueryableString=void 0;var r=function(){function t(t){this.str=t}return t.prototype.startsWith=function(t){return 0===this.str.indexOf(t)},t.prototype.endsWith=function(t){var e,n=t.split("").reverse().join("");return e=this.str.split("").reverse().join(""),this.startsWith.call({str:e},n)},t.prototype.contains=function(t){return-1!==this.str.indexOf(t)},t.prototype.equals=function(t){return this.str===t},t.prototype.value=function(){return this.str},t}();e.QueryableString=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Request=void 0;var r=n(68),i=function(){function t(t,e,n,i,o){this.id=r.id(),this.serviceIdentifier=t,this.parentContext=e,this.parentRequest=n,this.target=o,this.childRequests=[],this.bindings=Array.isArray(i)?i:[i],this.requestScope=null===n?new Map:null}return t.prototype.addChildRequest=function(e,n,r){var i=new t(e,this.parentContext,this,n,r);return this.childRequests.push(i),i},t}();e.Request=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resolve=void 0;var r=n(41),i=n(56),o=n(236),a=n(90),s=n(476),u=function(t,e,n){try{return n()}catch(n){throw o.isStackOverflowExeption(n)?new Error(r.CIRCULAR_DEPENDENCY_IN_FACTORY(t,e.toString())):n}};e.resolve=function(t){return function t(e){return function(n){n.parentContext.setCurrentRequest(n);var o=n.bindings,c=n.childRequests,f=n.target&&n.target.isArray(),l=!(n.parentRequest&&n.parentRequest.target&&n.target&&n.parentRequest.target.matchesArray(n.target.serviceIdentifier));if(f&&l)return c.map((function(n){return t(e)(n)}));var h=null;if(!n.target.isOptional()||0!==o.length){var d=o[0],p=d.scope===i.BindingScopeEnum.Singleton,g=d.scope===i.BindingScopeEnum.Request;if(p&&d.activated)return d.cache;if(g&&null!==e&&e.has(d.id))return e.get(d.id);if(d.type===i.BindingTypeEnum.ConstantValue)h=d.cache;else if(d.type===i.BindingTypeEnum.Function)h=d.cache;else if(d.type===i.BindingTypeEnum.Constructor)h=d.implementationType;else if(d.type===i.BindingTypeEnum.DynamicValue&&null!==d.dynamicValue)h=u("toDynamicValue",d.serviceIdentifier,(function(){return d.dynamicValue(n.parentContext)}));else if(d.type===i.BindingTypeEnum.Factory&&null!==d.factory)h=u("toFactory",d.serviceIdentifier,(function(){return d.factory(n.parentContext)}));else if(d.type===i.BindingTypeEnum.Provider&&null!==d.provider)h=u("toProvider",d.serviceIdentifier,(function(){return d.provider(n.parentContext)}));else{if(d.type!==i.BindingTypeEnum.Instance||null===d.implementationType){var v=a.getServiceIdentifierAsString(n.serviceIdentifier);throw new Error(r.INVALID_BINDING_TYPE+" "+v)}h=s.resolveInstance(d.implementationType,c,t(e))}return"function"==typeof d.onActivation&&(h=d.onActivation(n.parentContext,h)),p&&(d.cache=h,d.activated=!0),g&&null!==e&&!e.has(d.id)&&e.set(d.id,h),h}}}(t.plan.rootRequest.requestScope)(t.plan.rootRequest)}},function(t,e,n){"use strict";var r=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};Object.defineProperty(e,"__esModule",{value:!0}),e.resolveInstance=void 0;var i=n(41),o=n(56),a=n(31);e.resolveInstance=function(t,e,n){var s,u,c=null;if(e.length>0){var f=e.filter((function(t){return null!==t.target&&t.target.type===o.TargetTypeEnum.ConstructorArgument})).map(n);u=f,c=function(t,e,n){var r=e.filter((function(t){return null!==t.target&&t.target.type===o.TargetTypeEnum.ClassProperty})),i=r.map(n);return r.forEach((function(e,n){var r;r=e.target.name.value();var o=i[n];t[r]=o})),t}(c=new((s=t).bind.apply(s,r([void 0],u))),e,n)}else c=new t;return function(t,e){if(Reflect.hasMetadata(a.POST_CONSTRUCT,t)){var n=Reflect.getMetadata(a.POST_CONSTRUCT,t);try{e[n.value]()}catch(e){throw new Error(i.POST_CONSTRUCT_ERROR(t.name,e.message))}}}(t,c),c}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BindingToSyntax=void 0;var r=n(41),i=n(56),o=n(478),a=n(239),s=function(){function t(t){this._binding=t}return t.prototype.to=function(t){return this._binding.type=i.BindingTypeEnum.Instance,this._binding.implementationType=t,new o.BindingInWhenOnSyntax(this._binding)},t.prototype.toSelf=function(){if("function"!=typeof this._binding.serviceIdentifier)throw new Error(""+r.INVALID_TO_SELF_VALUE);var t=this._binding.serviceIdentifier;return this.to(t)},t.prototype.toConstantValue=function(t){return this._binding.type=i.BindingTypeEnum.ConstantValue,this._binding.cache=t,this._binding.dynamicValue=null,this._binding.implementationType=null,new a.BindingWhenOnSyntax(this._binding)},t.prototype.toDynamicValue=function(t){return this._binding.type=i.BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=t,this._binding.implementationType=null,new o.BindingInWhenOnSyntax(this._binding)},t.prototype.toConstructor=function(t){return this._binding.type=i.BindingTypeEnum.Constructor,this._binding.implementationType=t,new a.BindingWhenOnSyntax(this._binding)},t.prototype.toFactory=function(t){return this._binding.type=i.BindingTypeEnum.Factory,this._binding.factory=t,new a.BindingWhenOnSyntax(this._binding)},t.prototype.toFunction=function(t){if("function"!=typeof t)throw new Error(r.INVALID_FUNCTION_BINDING);var e=this.toConstantValue(t);return this._binding.type=i.BindingTypeEnum.Function,e},t.prototype.toAutoFactory=function(t){return this._binding.type=i.BindingTypeEnum.Factory,this._binding.factory=function(e){return function(){return e.container.get(t)}},new a.BindingWhenOnSyntax(this._binding)},t.prototype.toProvider=function(t){return this._binding.type=i.BindingTypeEnum.Provider,this._binding.provider=t,new a.BindingWhenOnSyntax(this._binding)},t.prototype.toService=function(t){this.toDynamicValue((function(e){return e.container.get(t)}))},t}();e.BindingToSyntax=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BindingInWhenOnSyntax=void 0;var r=n(479),i=n(159),o=n(160),a=function(){function t(t){this._binding=t,this._bindingWhenSyntax=new o.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new i.BindingOnSyntax(this._binding),this._bindingInSyntax=new r.BindingInSyntax(t)}return t.prototype.inRequestScope=function(){return this._bindingInSyntax.inRequestScope()},t.prototype.inSingletonScope=function(){return this._bindingInSyntax.inSingletonScope()},t.prototype.inTransientScope=function(){return this._bindingInSyntax.inTransientScope()},t.prototype.when=function(t){return this._bindingWhenSyntax.when(t)},t.prototype.whenTargetNamed=function(t){return this._bindingWhenSyntax.whenTargetNamed(t)},t.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},t.prototype.whenTargetTagged=function(t,e){return this._bindingWhenSyntax.whenTargetTagged(t,e)},t.prototype.whenInjectedInto=function(t){return this._bindingWhenSyntax.whenInjectedInto(t)},t.prototype.whenParentNamed=function(t){return this._bindingWhenSyntax.whenParentNamed(t)},t.prototype.whenParentTagged=function(t,e){return this._bindingWhenSyntax.whenParentTagged(t,e)},t.prototype.whenAnyAncestorIs=function(t){return this._bindingWhenSyntax.whenAnyAncestorIs(t)},t.prototype.whenNoAncestorIs=function(t){return this._bindingWhenSyntax.whenNoAncestorIs(t)},t.prototype.whenAnyAncestorNamed=function(t){return this._bindingWhenSyntax.whenAnyAncestorNamed(t)},t.prototype.whenAnyAncestorTagged=function(t,e){return this._bindingWhenSyntax.whenAnyAncestorTagged(t,e)},t.prototype.whenNoAncestorNamed=function(t){return this._bindingWhenSyntax.whenNoAncestorNamed(t)},t.prototype.whenNoAncestorTagged=function(t,e){return this._bindingWhenSyntax.whenNoAncestorTagged(t,e)},t.prototype.whenAnyAncestorMatches=function(t){return this._bindingWhenSyntax.whenAnyAncestorMatches(t)},t.prototype.whenNoAncestorMatches=function(t){return this._bindingWhenSyntax.whenNoAncestorMatches(t)},t.prototype.onActivation=function(t){return this._bindingOnSyntax.onActivation(t)},t}();e.BindingInWhenOnSyntax=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BindingInSyntax=void 0;var r=n(56),i=n(239),o=function(){function t(t){this._binding=t}return t.prototype.inRequestScope=function(){return this._binding.scope=r.BindingScopeEnum.Request,new i.BindingWhenOnSyntax(this._binding)},t.prototype.inSingletonScope=function(){return this._binding.scope=r.BindingScopeEnum.Singleton,new i.BindingWhenOnSyntax(this._binding)},t.prototype.inTransientScope=function(){return this._binding.scope=r.BindingScopeEnum.Transient,new i.BindingWhenOnSyntax(this._binding)},t}();e.BindingInSyntax=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContainerSnapshot=void 0;var r=function(){function t(){}return t.of=function(e,n){var r=new t;return r.bindings=e,r.middleware=n,r},t}();e.ContainerSnapshot=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Lookup=void 0;var r=n(41),i=function(){function t(){this._map=new Map}return t.prototype.getMap=function(){return this._map},t.prototype.add=function(t,e){if(null==t)throw new Error(r.NULL_ARGUMENT);if(null==e)throw new Error(r.NULL_ARGUMENT);var n=this._map.get(t);void 0!==n?(n.push(e),this._map.set(t,n)):this._map.set(t,[e])},t.prototype.get=function(t){if(null==t)throw new Error(r.NULL_ARGUMENT);var e=this._map.get(t);if(void 0!==e)return e;throw new Error(r.KEY_NOT_FOUND)},t.prototype.remove=function(t){if(null==t)throw new Error(r.NULL_ARGUMENT);if(!this._map.delete(t))throw new Error(r.KEY_NOT_FOUND)},t.prototype.removeByCondition=function(t){var e=this;this._map.forEach((function(n,r){var i=n.filter((function(e){return!t(e)}));i.length>0?e._map.set(r,i):e._map.delete(r)}))},t.prototype.hasKey=function(t){if(null==t)throw new Error(r.NULL_ARGUMENT);return this._map.has(t)},t.prototype.clone=function(){var e=new t;return this._map.forEach((function(t,n){t.forEach((function(t){return e.add(n,t.clone())}))})),e},t.prototype.traverse=function(t){this._map.forEach((function(e,n){t(n,e)}))},t}();e.Lookup=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AsyncContainerModule=e.ContainerModule=void 0;var r=n(68),i=function(t){this.id=r.id(),this.registry=t};e.ContainerModule=i;var o=function(t){this.id=r.id(),this.registry=t};e.AsyncContainerModule=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.injectable=void 0;var r=n(41),i=n(31);e.injectable=function(){return function(t){if(Reflect.hasOwnMetadata(i.PARAM_TYPES,t))throw new Error(r.DUPLICATED_INJECTABLE_DECORATOR);var e=Reflect.getMetadata(i.DESIGN_PARAM_TYPES,t)||[];return Reflect.defineMetadata(i.PARAM_TYPES,e,t),t}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.tagged=void 0;var r=n(47),i=n(61);e.tagged=function(t,e){return function(n,o,a){var s=new r.Metadata(t,e);"number"==typeof a?i.tagParameter(n,o,a,s):i.tagProperty(n,o,s)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.named=void 0;var r=n(31),i=n(47),o=n(61);e.named=function(t){return function(e,n,a){var s=new i.Metadata(r.NAMED_TAG,t);"number"==typeof a?o.tagParameter(e,n,a,s):o.tagProperty(e,n,s)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.optional=void 0;var r=n(31),i=n(47),o=n(61);e.optional=function(){return function(t,e,n){var a=new i.Metadata(r.OPTIONAL_TAG,!0);"number"==typeof n?o.tagParameter(t,e,n,a):o.tagProperty(t,e,a)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unmanaged=void 0;var r=n(31),i=n(47),o=n(61);e.unmanaged=function(){return function(t,e,n){var a=new i.Metadata(r.UNMANAGED_TAG,!0);o.tagParameter(t,e,n,a)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.multiInject=void 0;var r=n(31),i=n(47),o=n(61);e.multiInject=function(t){return function(e,n,a){var s=new i.Metadata(r.MULTI_INJECT_TAG,t);"number"==typeof a?o.tagParameter(e,n,a,s):o.tagProperty(e,n,s)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.targetName=void 0;var r=n(31),i=n(47),o=n(61);e.targetName=function(t){return function(e,n,a){var s=new i.Metadata(r.NAME_TAG,t);o.tagParameter(e,n,a,s)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.postConstruct=void 0;var r=n(41),i=n(31),o=n(47);e.postConstruct=function(){return function(t,e,n){var a=new o.Metadata(i.POST_CONSTRUCT,e);if(Reflect.hasOwnMetadata(i.POST_CONSTRUCT,t.constructor))throw new Error(r.MULTIPLE_POST_CONSTRUCT_METHODS);Reflect.defineMetadata(i.POST_CONSTRUCT,a,t.constructor)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.multiBindToService=void 0,e.multiBindToService=function(t){return function(e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return n.forEach((function(n){return t.bind(n).toService(e)}))}}}},function(t,e){function n(e,r){return t.exports=n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},n(e,r)}t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Symbol.for("INJECTION");function i(t,e,n,i){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){return i&&!Reflect.hasMetadata(r,this,e)&&Reflect.defineMetadata(r,n(),this,e),Reflect.hasMetadata(r,this,e)?Reflect.getMetadata(r,this,e):n()},set:function(t){Reflect.defineMetadata(r,t,this,e)}})}e.makePropertyInjectDecorator=function(t,e){return function(n){return function(r,o){i(r,o,(function(){return t.get(n)}),e)}}},e.makePropertyInjectNamedDecorator=function(t,e){return function(n,r){return function(o,a){i(o,a,(function(){return t.getNamed(n,r)}),e)}}},e.makePropertyInjectTaggedDecorator=function(t,e){return function(n,r,o){return function(a,s){i(a,s,(function(){return t.getTagged(n,r,o)}),e)}}},e.makePropertyMultiInjectDecorator=function(t,e){return function(n){return function(r,o){i(r,o,(function(){return t.getAll(n)}),e)}}}},function(t,e,n){var r=n(234);t.exports=function(t){if(Array.isArray(t))return r(t)}},function(t,e){t.exports=function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}},function(t,e){t.exports=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(t,e){t.exports=function(t){var e=new Float32Array(2);return e[0]=t[0],e[1]=t[1],e}},function(t,e){t.exports=function(t,e){var n=new Float32Array(2);return n[0]=t,n[1]=e,n}},function(t,e){t.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t}},function(t,e,n){t.exports=function(t,e){var n=t[0],i=t[1],o=e[0],a=e[1];return Math.abs(n-o)<=r*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-a)<=r*Math.max(1,Math.abs(i),Math.abs(a))};var r=n(253)},function(t,e){t.exports=function(t,e){return t[0]===e[0]&&t[1]===e[1]}},function(t,e,n){t.exports=n(167)},function(t,e,n){t.exports=n(257)},function(t,e,n){t.exports=n(258)},function(t,e){t.exports=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t}},function(t,e){t.exports=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}},function(t,e){t.exports=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}},function(t,e){t.exports=function(t,e,n){var r=Math.cos(n),i=Math.sin(n),o=e[0],a=e[1];return t[0]=o*r-a*i,t[1]=o*i+a*r,t}},function(t,e){t.exports=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t}},function(t,e){t.exports=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t}},function(t,e){t.exports=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t}},function(t,e){t.exports=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}},function(t,e){t.exports=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}},function(t,e,n){t.exports=n(259)},function(t,e,n){t.exports=n(260)},function(t,e,n){t.exports=n(261)},function(t,e,n){t.exports=n(262)},function(t,e){t.exports=function(t,e){return t[0]=-e[0],t[1]=-e[1],t}},function(t,e){t.exports=function(t,e,n){var r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t}},function(t,e){t.exports=function(t,e,n,r){var i=e[0],o=e[1];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t}},function(t,e){t.exports=function(t,e){e=e||1;var n=2*Math.random()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t}},function(t,e){t.exports=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i,t[1]=n[1]*r+n[3]*i,t}},function(t,e){t.exports=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}},function(t,e){t.exports=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[3]*i+n[6],t[1]=n[1]*r+n[4]*i+n[7],t}},function(t,e){t.exports=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[4]*i+n[12],t[1]=n[1]*r+n[5]*i+n[13],t}},function(t,e,n){t.exports=function(t,e,n,i,o,a){var s,u;e||(e=2);n||(n=0);u=i?Math.min(i*e+n,t.length):t.length;for(s=n;s<u;s+=e)r[0]=t[s],r[1]=t[s+1],o(r,r,a),t[s]=r[0],t[s+1]=r[1];return t};var r=n(254)()},function(t,e){t.exports=function(t,e,n){var r=e[0]*e[0]+e[1]*e[1];if(r>n*n){var i=Math.sqrt(r);t[0]=e[0]/i*n,t[1]=e[1]/i*n}else t[0]=e[0],t[1]=e[1];return t}},function(t,e,n){"use strict";n.r(e),n.d(e,"G6GraphEvent",(function(){return yt})),n.d(e,"G6Event",(function(){return Ye})),n.d(e,"Node",(function(){return oe})),n.d(e,"Edge",(function(){return ie})),n.d(e,"Combo",(function(){return ae})),n.d(e,"Hull",(function(){return Ie})),n.d(e,"registerNode",(function(){return tn})),n.d(e,"registerCombo",(function(){return nn})),n.d(e,"AbstractGraph",(function(){return je})),n.d(e,"registerEdge",(function(){return en})),n.d(e,"registerBehavior",(function(){return rn})),n.d(e,"AbstractLayout",(function(){return Je})),n.d(e,"AbstractEvent",(function(){return $e})),n.d(e,"BaseGlobal",(function(){return on})),n.d(e,"Graph",(function(){return nd})),n.d(e,"TreeGraph",(function(){return vd})),n.d(e,"Util",(function(){return dd})),n.d(e,"Layout",(function(){return Nh})),n.d(e,"registerLayout",(function(){return Lh})),n.d(e,"Global",(function(){return Dn})),n.d(e,"Minimap",(function(){return iy})),n.d(e,"Grid",(function(){return oy})),n.d(e,"Bundling",(function(){return ay})),n.d(e,"Menu",(function(){return sy})),n.d(e,"Fisheye",(function(){return uy})),n.d(e,"Algorithm",(function(){return b})),n.d(e,"ToolBar",(function(){return cy})),n.d(e,"Tooltip",(function(){return fy})),n.d(e,"TimeBar",(function(){return ly})),n.d(e,"ImageMinimap",(function(){return hy})),n.d(e,"EdgeFilterLens",(function(){return dy})),n.d(e,"Arrow",(function(){return He})),n.d(e,"Marker",(function(){return qe})),n.d(e,"Shape",(function(){return Ke})),n.d(e,"version",(function(){return gy}));var r={};n.r(r),n.d(r,"compare",(function(){return w})),n.d(r,"getLineIntersect",(function(){return E})),n.d(r,"getRectIntersectByPoint",(function(){return _})),n.d(r,"getCircleIntersectByPoint",(function(){return O})),n.d(r,"getEllipseIntersectByPoint",(function(){return k})),n.d(r,"applyMatrix",(function(){return M})),n.d(r,"invertMatrix",(function(){return A})),n.d(r,"getCircleCenterByPoints",(function(){return T})),n.d(r,"distance",(function(){return C})),n.d(r,"scaleMatrix",(function(){return I})),n.d(r,"floydWarshall",(function(){return P})),n.d(r,"getAdjMatrix",(function(){return j})),n.d(r,"translate",(function(){return D})),n.d(r,"move",(function(){return N})),n.d(r,"scale",(function(){return R})),n.d(r,"rotate",(function(){return L})),n.d(r,"getDegree",(function(){return B})),n.d(r,"isPointInPolygon",(function(){return W})),n.d(r,"intersectBBox",(function(){return X})),n.d(r,"isPolygonsIntersect",(function(){return Y})),n.d(r,"Line",(function(){return H})),n.d(r,"getBBoxBoundLine",(function(){return q})),n.d(r,"itemIntersectByLine",(function(){return Z})),n.d(r,"fractionToLine",(function(){return Q})),n.d(r,"getPointsCenter",(function(){return J})),n.d(r,"squareDist",(function(){return $})),n.d(r,"pointLineSquareDist",(function(){return tt})),n.d(r,"isPointsOverlap",(function(){return et})),n.d(r,"pointRectSquareDist",(function(){return nt}));var i={};n.r(i),n.d(i,"uniqueId",(function(){return mt})),n.d(i,"formatPadding",(function(){return bt})),n.d(i,"cloneEvent",(function(){return xt})),n.d(i,"isViewportChanged",(function(){return wt})),n.d(i,"isNaN",(function(){return St})),n.d(i,"calculationItemsBBox",(function(){return Et})),n.d(i,"processParallelEdges",(function(){return _t}));var o={};n.r(o),n.d(o,"getBBox",(function(){return Pt})),n.d(o,"getLoopCfgs",(function(){return jt})),n.d(o,"getLabelPosition",(function(){return Dt})),n.d(o,"traverseTree",(function(){return Rt})),n.d(o,"traverseTreeUp",(function(){return Lt})),n.d(o,"getLetterWidth",(function(){return Bt})),n.d(o,"getTextSize",(function(){return Gt})),n.d(o,"plainCombosToTrees",(function(){return Ft})),n.d(o,"reconstructTree",(function(){return Ut})),n.d(o,"getComboBBox",(function(){return zt})),n.d(o,"shouldRefreshEdge",(function(){return Vt})),n.d(o,"cloneBesidesImg",(function(){return Wt}));var a={};n.r(a),n.d(a,"getSpline",(function(){return he})),n.d(a,"getControlPoint",(function(){return de})),n.d(a,"pointsToPolygon",(function(){return pe})),n.d(a,"pathToPoints",(function(){return ge})),n.d(a,"getClosedSpline",(function(){return ve})),n.d(a,"roundedHull",(function(){return xe})),n.d(a,"paddedHull",(function(){return we}));var s={};n.r(s),n.d(s,"leftTranslate",(function(){return cn})),n.d(s,"leftRotate",(function(){return fn})),n.d(s,"leftScale",(function(){return ln})),n.d(s,"transform",(function(){return hn})),n.d(s,"direction",(function(){return dn})),n.d(s,"angleTo",(function(){return pn})),n.d(s,"vertical",(function(){return gn}));var u={};n.r(u),n.d(u,"mixColor",(function(){return Cn})),n.d(u,"getColorsWithSubjectColor",(function(){return In})),n.d(u,"getColorSetsBySubjectColors",(function(){return Pn}));var c={};n.r(c),n.d(c,"gpuDetector",(function(){return Xh}));var f={};n.r(f),n.d(f,"proccessToFunc",(function(){return ad})),n.d(f,"buildTextureData",(function(){return sd})),n.d(f,"buildTextureDataWithOneEdgeAttr",(function(){return ud})),n.d(f,"buildTextureDataWithTwoEdgeAttr",(function(){return cd})),n.d(f,"attributesToTextureData",(function(){return fd})),n.d(f,"arrayToTextureData",(function(){return ld})),n.d(f,"radialLayout",(function(){return hd}));var l={};n.r(l),n.d(l,"default",(function(){return yp})),n.d(l,"assign",(function(){return Qd})),n.d(l,"format",(function(){return gp})),n.d(l,"parse",(function(){return vp})),n.d(l,"defaultI18n",(function(){return ep})),n.d(l,"setGlobalDateI18n",(function(){return rp})),n.d(l,"setGlobalDateMasks",(function(){return pp}));var h=n(0),d={getDefaultCfg:function(){return{}},getEvents:function(){return{}},updateCfg:function(t){return Object.assign(this,t),!0},shouldBegin:function(){return!0},shouldUpdate:function(){return!0},shouldEnd:function(){return!0},bind:function(t){var e=this,n=this.events;this.graph=t,"drag-canvas"!==this.type&&"brush-select"!==this.type&&"lasso-select"!==this.type||t.get("canvas").set("draggable",!0),Object(h.f)(n,(function(e,n){t.on(n,e)})),document.addEventListener("visibilitychange",(function(){e.keydown=!1}))},unbind:function(t){var e=this.events;"drag-canvas"!==this.type&&"brush-select"!==this.type&&"lasso-select"!==this.type||t.get("canvas").set("draggable",!1),Object(h.f)(e,(function(e,n){t.off(n,e)}))},get:function(t){return this[t]},set:function(t,e){return this[t]=e,this}},p=function(){function t(){}return t.registerBehavior=function(e,n){if(!n)throw new Error("please specify handler for this behavior: "+e);var r=Object(h.c)(d);Object.assign(r,n);var i=function(t){var e=this;Object.assign(this,this.getDefaultCfg(),t);var n=this.getEvents();this.events=null;var r={};n&&(Object(h.f)(n,(function(t,n){r[n]=Object(h.J)(e,t)})),this.events=r)};i.prototype=r,t.types[e]=i},t.hasBehavior=function(e){return!!t.types[e]},t.getBehavior=function(e){return t.types[e]},t.types={},t}(),g=p,v=n(1),y=n(136),m=n(18),b=n(51),x=m.a.transform,w=function(t){return function(e,n){return e[t]-n[t]}},S=function(t,e,n){return t>=e&&t<=n},E=function(t,e,n,r){var i=n.x-t.x,o=n.y-t.y,a=e.x-t.x,s=e.y-t.y,u=r.x-n.x,c=r.y-n.y,f=a*c-s*u,l=1/f,h=null;if(f*f>1e-4*(a*a+s*s)*(u*u+c*c)){var d=(i*c-o*u)*l,p=(i*s-o*a)*l;S(d,0,1)&&S(p,0,1)&&(h={x:t.x+d*a,y:t.y+d*s})}return h},_=function(t,e){var n=t.x,r=t.y,i=t.width,o=t.height,a=[],s={x:n+i/2,y:r+o/2};a.push({x:n,y:r}),a.push({x:n+i,y:r}),a.push({x:n+i,y:r+o}),a.push({x:n,y:r+o}),a.push({x:n,y:r});for(var u=null,c=1;c<a.length&&!(u=E(a[c-1],a[c],s,e));c++);return u},O=function(t,e){var n=t.x,r=t.y,i=t.r,o=e.x-n,a=e.y-r;if(Math.sqrt(o*o+a*a)<i)return null;var s=Math.sign(o),u=Math.sign(a),c=Math.atan(a/o);return{x:n+Math.abs(i*Math.cos(c))*s,y:r+Math.abs(i*Math.sin(c))*u}},k=function(t,e){var n=t.rx,r=t.ry,i=t.x,o=t.y,a=e.x-i,s=e.y-o,u=Math.atan2(s/r,a/n);return u<0&&(u+=2*Math.PI),{x:i+n*Math.cos(u),y:o+r*Math.sin(u)}},M=function(t,e,n){void 0===n&&(n=1);var r=[t.x,t.y,n];return e&&!isNaN(e[0])||(e=[1,0,0,0,1,0,0,0,1]),m.d.transformMat3(r,r,e),{x:r[0],y:r[1]}},A=function(t,e,n){void 0===n&&(n=1),e&&!isNaN(e[0])||(e=[1,0,0,0,1,0,0,0,1]);var r=m.b.invert([1,0,0,0,1,0,0,0,1],e);r||(r=[1,0,0,0,1,0,0,0,1]);var i=[t.x,t.y,n];return m.d.transformMat3(i,i,r),{x:i[0],y:i[1]}},T=function(t,e,n){var r=t.x-e.x,i=t.y-e.y,o=t.x-n.x,a=t.y-n.y,s=(t.x*t.x-e.x*e.x-e.y*e.y+t.y*t.y)/2,u=(t.x*t.x-n.x*n.x-n.y*n.y+t.y*t.y)/2,c=i*o-r*a;return{x:-(a*s-i*u)/c,y:-(r*u-o*s)/c}},C=function(t,e){var n=t.x-e.x,r=t.y-e.y;return Math.sqrt(n*n+r*r)},I=function(t,e){var n=[];return t.forEach((function(t){var r=[];t.forEach((function(t){r.push(t*e)})),n.push(r)})),n},P=function(t){for(var e=[],n=t.length,r=0;r<n;r+=1){e[r]=[];for(var i=0;i<n;i+=1)r===i?e[r][i]=0:0!==t[r][i]&&t[r][i]?e[r][i]=t[r][i]:e[r][i]=1/0}for(var o=0;o<n;o+=1)for(r=0;r<n;r+=1)for(i=0;i<n;i+=1)e[r][i]>e[r][o]+e[o][i]&&(e[r][i]=e[r][o]+e[o][i]);return e},j=function(t,e){var n=t.nodes,r=t.edges,i=[],o={};if(!n)throw new Error("invalid nodes data!");return n&&n.forEach((function(t,e){o[t.id]=e;i.push([])})),r&&r.forEach((function(t){var n=t.source,r=t.target,a=o[n],s=o[r];i[a][s]=1,e||(i[s][a]=1)})),i},D=function(t,e){t.translate(e.x,e.y)},N=function(t,e){var n=t.getMatrix();n||(n=[1,0,0,0,1,0,0,0,1]);var r=t.getCanvasBBox(),i=e.x-r.minX,o=e.y-r.minY,a=x(n,[["t",i,o]]);t.setMatrix(a)},R=function(t,e){var n=t.getMatrix();n||(n=[1,0,0,0,1,0,0,0,1]);var r=e;Object(h.m)(e)||(r=[e,e]),Object(h.m)(e)&&1===e.length&&(r=[e[0],e[0]]),n=x(n,[["s",r[0],r[1]]]),t.setMatrix(n)},L=function(t,e){var n=t.getMatrix();n||(n=[1,0,0,0,1,0,0,0,1]),n=x(n,[["r",e]]),t.setMatrix(n)},B=function(t,e,n){for(var r=[],i=0;i<t;i++)r[i]=0;return n.forEach((function(t){t.source&&(r[e[t.source]]+=1),t.target&&(r[e[t.target]]+=1)})),r};function G(t,e,n){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}var F,U,z,V,W=function(t,e,n){var r=!1,i=t.length;function o(t){return Math.abs(t)<1e-6?0:t<0?-1:1}if(i<=2)return!1;for(var a=0;a<i;a++){var s=t[a],u=t[(a+1)%i];if(G(s,u,[e,n]))return!0;o(s[1]-n)>0!=o(u[1]-n)>0&&o(e-(n-s[1])*(s[0]-u[0])/(s[1]-u[1])-s[0])<0&&(r=!r)}return r},X=function(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)},Y=function(t,e){var n=function(t){var e=t.map((function(t){return t[0]})),n=t.map((function(t){return t[1]}));return{minX:Math.min.apply(null,e),maxX:Math.max.apply(null,e),minY:Math.min.apply(null,n),maxY:Math.max.apply(null,n)}},r=function(t){for(var e=[],n=t.length,r=0;r<n-1;r++){var i=t[r],o=t[r+1];e.push({from:{x:i[0],y:i[1]},to:{x:o[0],y:o[1]}})}if(e.length>1){var a=t[0],s=t[n-1];e.push({from:{x:s[0],y:s[1]},to:{x:a[0],y:a[1]}})}return e};if(t.length<2||e.length<2)return!1;var i=n(t),o=n(e);if(!X(i,o))return!1;var a=!1;if(Object(h.f)(e,(function(e){if(W(t,e[0],e[1]))return a=!0,!1})),a)return!0;if(Object(h.f)(t,(function(t){if(W(e,t[0],t[1]))return a=!0,!1})),a)return!0;var s=r(t),u=r(e),c=!1;return Object(h.f)(u,(function(t){if(function(t,e){var n=!1;return Object(h.f)(t,(function(t){if(E(t.from,t.to,e.from,e.to))return n=!0,!1})),n}(s,t))return c=!0,!1})),c},H=function(){function t(t,e,n,r){this.x1=t,this.y1=e,this.x2=n,this.y2=r}return t.prototype.getBBox=function(){var t=Math.min(this.x1,this.x2),e=Math.min(this.y1,this.y2),n=Math.max(this.x1,this.x2),r=Math.max(this.y1,this.y2);return{x:t,y:e,minX:t,minY:e,maxX:n,maxY:r,width:n-t,height:r-e}},t}(),q=function(t,e){return{top:[t.minX,t.minY,t.maxX,t.minY],left:[t.minX,t.minY,t.minX,t.maxY],bottom:[t.minX,t.maxY,t.maxX,t.maxY],right:[t.maxX,t.minY,t.maxX,t.maxY]}[e]},K=function(t,e){var n=(e.x2-e.x1)*(t.y1-e.y1)-(e.y2-e.y1)*(t.x1-e.x1),r=(t.x2-t.x1)*(t.y1-e.y1)-(t.y2-t.y1)*(t.x1-e.x1),i=(e.y2-e.y1)*(t.x2-t.x1)-(e.x2-e.x1)*(t.y2-t.y1);if(i){var o=n/i,a=r/i;if(o>=0&&o<=1&&a>=0&&a<=1)return o}return Number.POSITIVE_INFINITY},Z=function(t,e){for(var n=["top","left","bottom","right"],r=t.getBBox(),i=0,o=[],a=0;a<4;a++){var s=q(r,n[a]),u=s[0],c=s[1],f=s[2],l=s[3];o[a]=E({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},{x:u,y:c},{x:f,y:l}),o[a]&&(i+=1)}return[o,i]},Q=function(t,e){for(var n=["top","left","bottom","right"],r=t.getBBox(),i=Number.POSITIVE_INFINITY,o=0,a=0;a<4;a++){var s=q(r,n[a]),u=s[0],c=s[1],f=s[2],l=s[3],h=K(e,new H(u,c,f,l));(h=Math.abs(h-.5))>=0&&h<=1&&(o+=1,i=h<i?h:i)}return 0===o?-1:i},J=function(t){var e=0,n=0;if(t.length>0){for(var r=0,i=t;r<i.length;r++){var o=i[r];e+=o.x,n+=o.y}e/=t.length,n/=t.length}return{x:e,y:n}},$=function(t,e){return Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)},tt=function(t,e){var n,r=e.x1,i=e.y1,o=e.x2-r,a=e.y2-i,s=t.x-r,u=t.y-i,c=s*o+u*a;n=c<=0||(c=(s=o-s)*o+(u=a-u)*a)<=0?0:c*c/(o*o+a*a);var f=s*s+u*u-n;return f<0&&(f=0),f},et=function(t,e,n){return void 0===n&&(n=.001),Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)<Math.pow(n,2)},nt=function(t,e){var n=t.x<e.x,r=t.x>e.x+e.width,i=t.y>e.y+e.height,o=t.y<e.y;if(!(n||r||i||o))return 0;if(i&&!n&&!r)return Math.pow(e.y+e.height-t.y,2);if(o&&!n&&!r)return Math.pow(t.y-e.y,2);if(n&&!i&&!o)return Math.pow(e.x-t.x,2);if(r&&!i&&!o)return Math.pow(e.x+e.width-t.x,2);var a=Math.min(Math.abs(e.x-t.x),Math.abs(e.x+e.width-t.x)),s=Math.min(Math.abs(e.y-t.y),Math.abs(e.y+e.height-t.y));return a*a+s*s},rt="rgb(253, 253, 253)",it="rgb(95, 149, 255)",ot="rgb(95, 149, 255)",at="rgb(247, 250, 255)",st="rgb(95, 149, 255)",ut="rgb(224, 224, 224)",ct="rgb(95, 149, 255)",ft="rgb(224, 224, 224)",lt="rgb(95, 149, 255)",ht={version:"0.0.12",rootContainerClassName:"root-container",nodeContainerClassName:"node-container",edgeContainerClassName:"edge-container",comboContainerClassName:"combo-container",delegateContainerClassName:"delegate-container",defaultLoopPosition:"top",nodeLabel:{style:{fill:"#000",fontSize:12,textAlign:"center",textBaseline:"middle"},offset:4},defaultNode:{type:"circle",style:{lineWidth:1,stroke:it,fill:"rgb(239, 244, 255)"},size:20,color:it,linkPoints:{size:8,lineWidth:1,fill:at,stroke:ot}},nodeStateStyles:{active:{fill:at,stroke:ot,lineWidth:2,shadowColor:it,shadowBlur:10},selected:{fill:"rgb(255, 255, 255)",stroke:st,lineWidth:4,shadowColor:st,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{fill:"rgb(223, 234, 255)",stroke:"#4572d9",lineWidth:2,"text-shape":{fontWeight:500}},inactive:{fill:"rgb(247, 250, 255)",stroke:"rgb(191, 213, 255)",lineWidth:1},disable:{fill:"rgb(250, 250, 250)",stroke:"rgb(224, 224, 224)",lineWidth:1}},edgeLabel:{style:{fill:"rgb(0, 0, 0)",textAlign:"center",textBaseline:"middle",fontSize:12}},defaultEdge:{type:"line",size:1,style:{stroke:ut,lineAppendWidth:2},color:ut},edgeStateStyles:{active:{stroke:"rgb(95, 149, 255)",lineWidth:1},selected:{stroke:ct,lineWidth:2,shadowColor:ct,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{stroke:"rgb(95, 149, 255)",lineWidth:2,"text-shape":{fontWeight:500}},inactive:{stroke:"rgb(234, 234, 234)",lineWidth:1},disable:{stroke:"rgb(245, 245, 245)",lineWidth:1}},comboLabel:{style:{fill:"rgb(0, 0, 0)",textBaseline:"middle",fontSize:12},refY:10,refX:10},defaultCombo:{type:"circle",style:{fill:rt,lineWidth:1,stroke:ft,r:5,width:20,height:10},size:[20,5],color:ft,padding:[25,20,15,20]},comboStateStyles:{active:{stroke:"rgb(95, 149, 255)",lineWidth:1,fill:"rgb(247, 250, 255)"},selected:{stroke:lt,lineWidth:2,fill:rt,shadowColor:lt,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{stroke:"#4572d9",lineWidth:2,fill:rt,"text-shape":{fontWeight:500}},inactive:{stroke:"rgb(224, 224, 224)",fill:rt,lineWidth:1},disable:{stroke:"rgb(234, 234, 234)",fill:"rgb(250, 250, 250)",lineWidth:1}},delegateStyle:{fill:"#F3F9FF",fillOpacity:.5,stroke:"#1890FF",strokeOpacity:.9,lineDash:[5,5]}},dt=function(){function t(t){this.graph=t,this.destroyed=!1,this.modes=t.get("modes")||{default:[]},this.formatModes(),this.mode=t.get("defaultMode")||"default",this.currentBehaves=[],this.setMode(this.mode)}return t.prototype.formatModes=function(){var t=this.modes;Object(h.f)(t,(function(t){Object(h.f)(t,(function(e,n){Object(h.x)(e)&&(t[n]={type:e})}))}))},t.prototype.setBehaviors=function(t){var e,n=this.graph,r=this.modes[t],i=[];Object(h.f)(r||[],(function(t){var r=p.getBehavior(t.type||t);r&&(e=new r(t))&&(e.bind(n),i.push(e))})),this.currentBehaves=i},t.mergeBehaviors=function(t,e){return Object(h.f)(e,(function(e){t.indexOf(e)<0&&(Object(h.x)(e)&&(e={type:e}),t.push(e))})),t},t.filterBehaviors=function(t,e){var n=[];return t.forEach((function(t){var r="";r=Object(h.x)(t)?t:t.type,e.indexOf(r)<0&&n.push(t)})),n},t.prototype.setMode=function(t){var e=this.modes,n=this.graph,r=t;e[r]&&(n.emit("beforemodechange",{mode:t}),Object(h.f)(this.currentBehaves,(function(t){t.delegate&&t.delegate.remove(),t.unbind(n)})),this.setBehaviors(r),n.emit("aftermodechange",{mode:t}),this.mode=t)},t.prototype.getMode=function(){return this.mode},t.prototype.manipulateBehaviors=function(e,n,r){var i,o=this;if(i=Object(h.m)(e)?e:[e],Object(h.m)(n))return Object(h.f)(n,(function(e){o.modes[e]?o.modes[e]=r?t.mergeBehaviors(o.modes[e]||[],i):t.filterBehaviors(o.modes[e]||[],i):r&&(o.modes[e]=i)})),this;var a=n;return n||(a=this.mode),this.modes[a]||r&&(this.modes[a]=i),this.modes[a]=r?t.mergeBehaviors(this.modes[a]||[],i):t.filterBehaviors(this.modes[a]||[],i),this.setMode(this.mode),this},t.prototype.updateBehavior=function(t,e,n){Object(h.x)(t)&&(t={type:t});var r=[];if(n&&n!==this.mode&&"default"!==n){if(!(r=this.modes[n])||!r.length)return console.warn("Update behavior failed! There is no behaviors in this mode on the graph."),this;var i=r.length;for(a=0;a<i;a++){if((s=r[a]).type===t.type||s===t.type)return s===t.type&&(s={type:s}),Object.assign(s,e),r[a]=s,this;a===i-1&&console.warn("Update behavior failed! There is no such behavior in the mode")}}else{if(!(r=this.currentBehaves)||!r.length)return console.warn("Update behavior failed! There is no behaviors in this mode on the graph."),this;for(var o=r.length,a=0;a<o;a++){var s;if((s=r[a]).type===t.type)return s.updateCfg(e),this;a===o-1&&console.warn("Update behavior failed! There is no such behavior in the mode")}}return this},t.prototype.destroy=function(){this.graph=null,this.modes=null,this.currentBehaves=null,this.destroyed=!0},t}();function pt(t,e,n){if(t){if("function"==typeof t.addEventListener)return t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}};if("function"==typeof t.attachEvent)return t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}}}function gt(t){F||(F=document.createElement("table"),U=document.createElement("tr"),z=/^\\s*<(\\w+|!)[^>]*>/,V={tr:document.createElement("tbody"),tbody:F,thead:F,tfoot:F,td:U,th:U,"*":document.createElement("div")});var e=z.test(t)&&RegExp.$1;e&&e in V||(e="*");var n=V[e];t=t.replace(/(^\\s*)|(\\s*$)/g,""),n.innerHTML=""+t;var r=n.childNodes[0];return n.removeChild(r),r}function vt(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}var yt=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.item=n.item,r.canvasX=n.canvasX,r.canvasY=n.canvasY,r.wheelDelta=n.wheelDelta,r.detail=n.detail,r}return Object(v.b)(e,t),e}(n(21).Event),mt=function(t){return t+"-"+Math.random()+Date.now()},bt=function(t){var e=0,n=0,r=0,i=0;if(Object(h.t)(t))e=n=r=i=t;else if(Object(h.x)(t)){e=n=r=i=parseInt(t,10)}else Object(h.m)(t)&&(e=t[0],r=Object(h.s)(t[1])?t[0]:t[1],i=Object(h.s)(t[2])?t[0]:t[2],n=Object(h.s)(t[3])?r:t[3]);return[e,r,i,n]},xt=function(t){var e=new yt(t.type,t);return e.clientX=t.clientX,e.clientY=t.clientY,e.x=t.x,e.y=t.y,e.target=t.target,e.currentTarget=t.currentTarget,e.bubbles=!0,e.item=t.item,e},wt=function(t){if(!t)return!1;for(var e=[1,0,0,0,1,0,0,0,1],n=0;n<9;n++)if(t[n]!==e[n])return!0;return!1},St=function(t){return Number.isNaN(Number(t))},Et=function(t){for(var e=1/0,n=-1/0,r=1/0,i=-1/0,o=0;o<t.length;o++){var a=t[o].getBBox(),s=a.minX,u=a.minY,c=a.maxX,f=a.maxY;s<e&&(e=s),u<r&&(r=u),c>n&&(n=c),f>i&&(i=f)}return{x:Math.floor(e),y:Math.floor(r),width:Math.ceil(n)-Math.floor(e),height:Math.ceil(i)-Math.floor(r),minX:e,minY:r,maxX:n,maxY:i}},_t=function(t,e,n,r,i){void 0===e&&(e=15),void 0===n&&(n="quadratic");for(var o=t.length,a=2*e,s=["top","top-right","right","bottom-right","bottom","bottom-left","left","top-left"],u={},c=[],f={},l=0;l<o;l++){var h=t[l],d=h.source,p=h.target,g=d+"-"+p;if(!c[l]){u[g]||(u[g]=[]),c[l]=!0,u[g].push(h);for(var v=0;v<o;v++)if(l!==v){var y=t[v],m=y.source,b=y.target;c[v]||(d===b&&p===m?(u[g].push(y),c[v]=!0,f[m+"|"+b+"|"+(u[g].length-1)]=!0):d===m&&p===b&&(u[g].push(y),c[v]=!0))}}}for(var x in u)for(var w=u[x],S=w.length,E=0;E<S;E++){var _=w[E];if(_.source!==_.target)if(1===S&&r&&_.source!==_.target)_.type=r;else{_.type=n;var O=(E%2==0?1:-1)*(f[_.source+"|"+_.target+"|"+E]?-1:1);_.curveOffset=S%2==1?O*Math.ceil(E/2)*a:O*(Math.floor(E/2)*a+e)}else i&&(_.type=i),_.loopCfg={position:s[E%8],dist:20*Math.floor(E/8)+50}}return t},Ot=function(){function t(t){this.destroyed=!1,this.graph=t,this.destroyed=!1}return t.prototype.getViewCenter=function(){var t=this.getFormatPadding(),e=this.graph,n=this.graph.get("width"),r=e.get("height");return{x:(n-t[1]-t[3])/2+t[3],y:(r-t[0]-t[2])/2+t[0]}},t.prototype.fitCenter=function(){var t=this.graph,e=t.get("group");e.resetMatrix();var n=e.getCanvasBBox();if(0!==n.width&&0!==n.height){var r=this.getViewCenter(),i=n.x+n.width/2,o=n.y+n.height/2;t.translate(r.x-i,r.y-o)}},t.prototype.fitView=function(){var t=this.graph,e=this.getFormatPadding(),n=t.get("width"),r=t.get("height"),i=t.get("group");i.resetMatrix();var o=i.getCanvasBBox();if(0!==o.width&&0!==o.height){var a=this.getViewCenter(),s=o.x+o.width/2,u=o.y+o.height/2;t.translate(a.x-s,a.y-u);var c=(n-e[1]-e[3])/o.width,f=(r-e[0]-e[2])/o.height,l=c;c>f&&(l=f),t.zoom(l,a)}},t.prototype.getFormatPadding=function(){var t=this.graph.get("fitViewPadding");return bt(t)},t.prototype.focusPoint=function(t,e,n){var r=this,i=this.getViewCenter(),o=this.getPointByCanvas(i.x,i.y),a=this.graph.get("group").getMatrix();if(a||(a=[1,0,0,0,1,0,0,0,1]),e){var s=(o.x-t.x)*a[0],u=(o.y-t.y)*a[4],c=0,f=0,l=0,h=0;this.graph.get("canvas").animate((function(t){l=s*t,h=u*t,r.graph.translate(l-c,h-f),c=l,f=h}),Object(v.a)({},n))}else this.graph.translate((o.x-t.x)*a[0],(o.y-t.y)*a[4])},t.prototype.getPointByCanvas=function(t,e){var n=this.graph.get("group").getMatrix();return n||(n=[1,0,0,0,1,0,0,0,1]),A({x:t,y:e},n)},t.prototype.getPointByClient=function(t,e){var n=this.graph.get("canvas").getPointByClient(t,e);return this.getPointByCanvas(n.x,n.y)},t.prototype.getClientByPoint=function(t,e){var n=this.graph.get("canvas"),r=this.getCanvasByPoint(t,e),i=n.getClientByPoint(r.x,r.y);return{x:i.x,y:i.y}},t.prototype.getCanvasByPoint=function(t,e){var n=this.graph.get("group").getMatrix();return n||(n=[1,0,0,0,1,0,0,0,1]),M({x:t,y:e},n)},t.prototype.focus=function(t,e,n){Object(h.x)(t)&&(t=this.graph.findById(t));var r=t.get("group").getMatrix();r||(r=[1,0,0,0,1,0,0,0,1]),t&&this.focusPoint({x:r[6],y:r[7]},e,n)},t.prototype.changeSize=function(t,e){var n=this.graph;if(!Object(h.t)(t)||!Object(h.t)(e))throw Error("invalid canvas width & height, please make sure width & height type is number");n.set({width:t,height:e}),n.get("canvas").changeSize(t,e),n.get("plugins").forEach((function(r){if(r.get("gridContainer")){var i=n.get("minZoom");vt(r.get("container"),{width:t+"px",height:e+"px"}),vt(r.get("gridContainer"),{width:t/i+"px",height:e/i+"px",left:0,top:0})}}))},t.prototype.destroy=function(){this.graph=null,this.destroyed=!1},t}(),kt={" ":.3329986572265625,a:.5589996337890625,A:.6569992065429687,b:.58599853515625,B:.6769989013671875,c:.5469985961914062,C:.7279998779296875,d:.58599853515625,D:.705999755859375,e:.554998779296875,E:.63699951171875,f:.37299957275390627,F:.5769989013671875,g:.5909988403320312,G:.7479995727539063,h:.555999755859375,H:.7199996948242188,i:.255999755859375,I:.23699951171875,j:.26699981689453123,J:.5169998168945312,k:.5289993286132812,K:.6899993896484375,l:.23499908447265624,L:.5879989624023437,m:.854998779296875,M:.8819992065429687,n:.5589996337890625,N:.7189987182617188,o:.58599853515625,O:.7669998168945312,p:.58599853515625,P:.6419998168945312,q:.58599853515625,Q:.7669998168945312,r:.3649993896484375,R:.6759994506835938,s:.504998779296875,S:.6319992065429687,t:.354998779296875,T:.6189987182617187,u:.5599990844726562,U:.7139999389648437,v:.48199920654296874,V:.6389999389648438,w:.754998779296875,W:.929998779296875,x:.5089996337890625,X:.63699951171875,y:.4959991455078125,Y:.66199951171875,z:.48699951171875,Z:.6239990234375,0:.6,1:.40099945068359377,2:.6,3:.6,4:.6,5:.6,6:.6,7:.5469985961914062,8:.6,9:.6,"[":.3329986572265625,"]":.3329986572265625,",":.26399993896484375,".":.26399993896484375,";":.26399993896484375,":":.26399993896484375,"{":.3329986572265625,"}":.3329986572265625,"\\\\":.5,"|":.19499969482421875,"=":.604998779296875,"+":.604998779296875,"-":.604998779296875,_:.5,"`":.3329986572265625," ~":.8329986572265625,"!":.3329986572265625,"@":.8579986572265625,"#":.6,$:.6,"%":.9699996948242188,"^":.517999267578125,"&":.7259994506835937,"*":.505999755859375,"(":.3329986572265625,")":.3329986572265625,"<":.604998779296875,">":.604998779296875,"/":.5,"?":.53699951171875},Mt=Math.PI,At=Math.sin,Tt=Math.cos,Ct=At(Mt/8),It=Tt(Mt/8),Pt=function(t,e){var n=t.getBBox(),r={x:n.minX,y:n.minY},i={x:n.maxX,y:n.maxY};if(e){var o=e.getMatrix();o||(o=[1,0,0,0,1,0,0,0,1]),r=M(r,o),i=M(i,o)}var a=r.x,s=r.y,u=i.x,c=i.y;return{x:a,y:s,minX:a,minY:s,maxX:u,maxY:c,width:u-a,height:c-s}},jt=function(t){var e=t.sourceNode||t.targetNode,n=e.get("group").getMatrix();n||(n=[1,0,0,0,1,0,0,0,1]);var r=e.getKeyShape().getBBox(),i=t.loopCfg||{},o=i.dist||2*Math.max(r.width,r.height),a=i.position||ht.defaultLoopPosition,s=[n[6],n[7]],u=[t.startPoint.x,t.startPoint.y],c=[t.endPoint.x,t.endPoint.y],f=r.height/2,l=r.height/2,h=f*Ct,d=f*It,p=l*Ct,g=l*It;if(u[0]===c[0]&&u[1]===c[1]){switch(a){case"top":u=[s[0]-h,s[1]-d],c=[s[0]+p,s[1]-g];break;case"top-right":f=r.height/2,l=r.width/2,u=[s[0]+(h=f*Ct),s[1]-(d=f*It)],c=[s[0]+(g=l*It),s[1]-(p=l*Ct)];break;case"right":f=r.width/2,l=r.width/2,u=[s[0]+(d=f*It),s[1]-(h=f*Ct)],c=[s[0]+(g=l*It),s[1]+(p=l*Ct)];break;case"bottom-right":f=r.width/2,l=r.height/2,u=[s[0]+(d=f*It),s[1]+(h=f*Ct)],c=[s[0]+(p=l*Ct),s[1]+(g=l*It)];break;case"bottom":f=r.height/2,l=r.height/2,u=[s[0]+(h=f*Ct),s[1]+(d=f*It)],c=[s[0]-(p=l*Ct),s[1]+(g=l*It)];break;case"bottom-left":f=r.height/2,l=r.width/2,u=[s[0]-(h=f*Ct),s[1]+(d=f*It)],c=[s[0]-(g=l*It),s[1]+(p=l*Ct)];break;case"left":f=r.width/2,l=r.width/2,u=[s[0]-(d=f*It),s[1]+(h=f*Ct)],c=[s[0]-(g=l*It),s[1]-(p=l*Ct)];break;case"top-left":f=r.width/2,l=r.height/2,u=[s[0]-(d=f*It),s[1]-(h=f*Ct)],c=[s[0]-(p=l*Ct),s[1]-(g=l*It)];break;default:f=r.width/2,l=r.width/2,u=[s[0]-(h=f*Ct),s[1]-(d=f*It)],c=[s[0]+(p=l*Ct),s[1]-(g=l*It)]}if(!1===i.clockwise){var v=[u[0],u[1]];u=[c[0],c[1]],c=[v[0],v[1]]}}var y=[u[0]-s[0],u[1]-s[1]],b=(f+o)/f,x=(l+o)/l;!1===i.clockwise&&(b=(l+o)/l,x=(f+o)/f);var w=m.c.scale([0,0],y,b),S=[s[0]+w[0],s[1]+w[1]],E=[c[0]-s[0],c[1]-s[1]],_=m.c.scale([0,0],E,x),O=[s[0]+_[0],s[1]+_[1]];return t.startPoint={x:u[0],y:u[1]},t.endPoint={x:c[0],y:c[1]},t.controlPoints=[{x:S[0],y:S[1]},{x:O[0],y:O[1]}],t},Dt=function(t,e,n,r,i){var o=[],a=t.getPoint(e);if(null===a)return{x:0,y:0,angle:0};if(e<1e-4)o=t.getStartTangent().reverse();else if(e>.9999)o=t.getEndTangent();else{var s=t.getPoint(e+1e-4);o.push([a.x,a.y]),o.push([s.x,s.y])}var u=Math.atan2(o[1][1]-o[0][1],o[1][0]-o[0][0]);if(u<0&&(u+=2*Mt),n&&(a.x+=Tt(u)*n,a.y+=At(u)*n),r){var c=u-Mt/2;u>.5*Mt&&u<1.5*Mt&&(c-=Mt),a.x+=Tt(c)*r,a.y+=At(c)*r}var f={x:a.x,y:a.y,angle:u};return i?(u>.5*Mt&&u<1.5*Mt&&(u-=Mt),Object(v.a)({rotate:u},f)):f},Nt=function t(e,n){if(!1===n(e))return!1;if(e&&e.children)for(var r=e.children.length-1;r>=0;r--)if(!t(e.children[r],n))return!1;return!0},Rt=function(t,e){"function"==typeof e&&Nt(t,e)},Lt=function(t,e){"function"==typeof e&&function t(e,n){if(e&&e.children)for(var r=e.children.length-1;r>=0;r--)if(!t(e.children[r],n))return;return!1!==n(e)}(t,e)},Bt=function(t,e){return e*(kt[t]||1)},Gt=function(t,e){var n=0,r=new RegExp("[一-é¾¥]+");return t.split("").forEach((function(t){r.test(t)?n+=e:n+=Bt(t,e)})),[n,e]},Ft=function(t,e){var n=[],r={},i={};t.forEach((function(t){i[t.id]=t})),t.forEach((function(t,e){var o=Object(h.c)(t);o.itemType="combo",o.children=void 0,o.parentId===o.id?(console.warn("The parentId for combo "+o.id+" can not be the same as the combo\'s id"),delete o.parentId):o.parentId&&!i[o.parentId]&&(console.warn("The parent combo for combo "+o.id+" does not exist!"),delete o.parentId);var a=r[o.id];if(a){if(o.children=a.children,r[o.id]=o,!(a=o).parentId)return void n.push(a);var s=r[a.parentId];if(s)s.children?s.children.push(o):s.children=[o];else{var u={id:a.parentId,children:[a]};r[a.parentId]=u,r[o.id]=o}}else if(Object(h.x)(t.parentId)){var c=r[t.parentId];if(c)c.children?c.children.push(o):c.children=[o],r[o.id]=o;else{var f={id:t.parentId,children:[o]};r[f.id]=f,r[o.id]=o}}else n.push(o),r[o.id]=o}));var o={};(e||[]).forEach((function(t){o[t.id]=t;var e=r[t.comboId];if(e){var n={id:t.id,comboId:t.comboId};e.children?e.children.push(n):e.children=[n],n.itemType="node",r[t.id]=n}}));var a=0;return n.forEach((function(t){t.depth=a+10,Nt(t,(function(t){var e,n=r[t.id].itemType;e="node"===n?r[t.comboId]:r[t.parentId],t.depth=e&&"node"===n?a+1:a+10,a<t.depth&&(a=t.depth);var i=o[t.id];return i&&(i.depth=t.depth),!0}))})),n},Ut=function(t,e,n){var r,i=t,o={root:{children:t}},a=!1,s="root";(t||[]).forEach((function(t){if(!a)return t.id===e?(r=t,"combo"===t.itemType?r.parentId=n:r.comboId=n,void(a=!0)):void Rt(t,(function(t){return o[t.id]={children:t.children},i=o[t.parentId||t.comboId||"root"].children,!t||!t.removed&&e!==t.id||!i||(s=t.parentId||t.comboId||"root",r=t,"combo"===t.itemType?r.parentId=n:r.comboId=n,a=!0,!1)}))}));var u=(i=o[s].children)?i.indexOf(r):-1;if(u>-1&&i.splice(u,1),a||(r={id:e,itemType:"node",comboId:n},o[e]={children:void 0}),e){var c=!1;if(n){var f=0;(t||[]).forEach((function(t){c||Rt(t,(function(t){return n!==t.id||(c=!0,t.children?t.children.push(r):t.children=[r],f=t.depth,"node"===r.itemType?r.depth=f+2:r.depth=f+1,!1)}))}))}else n&&c||"node"===r.itemType||t.push(r);var l=r.depth;Rt(r,(function(t){return"node"===t.itemType?l+=2:l+=1,t.depth=l,!0}))}return t},zt=function(t,e){var n={minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0,x:void 0,y:void 0,width:void 0,height:void 0,centerX:void 0,centerY:void 0};return t&&0!==t.length?(t.forEach((function(t){var r=e.findById(t.id);if(r&&r.isVisible()){r.set("bboxCanvasCache",void 0);var i=r.getCanvasBBox();i.x&&n.minX>i.minX&&(n.minX=i.minX),i.y&&n.minY>i.minY&&(n.minY=i.minY),i.x&&n.maxX<i.maxX&&(n.maxX=i.maxX),i.y&&n.maxY<i.maxY&&(n.maxY=i.maxY)}})),n.x=(n.minX+n.maxX)/2,n.y=(n.minY+n.maxY)/2,n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n.centerX=(n.minX+n.maxX)/2,n.centerY=(n.minY+n.maxY)/2,Object.keys(n).forEach((function(t){n[t]!==1/0&&n[t]!==-1/0||(n[t]=void 0)})),n):n},Vt=function(t){var e=Object(h.t)(t.x)||Object(h.t)(t.y)||t.type||t.anchorPoints||t.size;return t.style&&(e=e||Object(h.t)(t.style.r)||Object(h.t)(t.style.width)||Object(h.t)(t.style.height)||Object(h.t)(t.style.rx)||Object(h.t)(t.style.ry)),e},Wt=function(t){var e={};return Object.keys(t).forEach((function(n){var r=t[n];if(Object(h.v)(r)){var i={};Object.keys(r).forEach((function(t){var e=r[t];("img"!==t||Object(h.x)(e))&&(i[t]=Object(h.c)(e))})),e[n]=i}else e[n]=Object(h.c)(r)})),e};function Xt(t){return(Xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Yt(t){if("string"!=typeof t)return t;var e=function(t){if("string"!=typeof t)return t;try{return JSON.parse(t.trim())}catch(e){return t.trim()}},n=e(t);if("string"!=typeof n)return n;for(var r=function(t){return t[t.length-1]},i=t.trim(),o=[],a=[],s=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.some((function(t){return r(a)===t}))},u=null,c=0,f="";c<i.length;){var l=i[c],h=s(\'"\',"\'");if(h||l.trim()){var d="\\\\"===i[c-1],p=s("}"),g=s("]"),v=s(","),y=r(o);if(h)if(r(a)!==l||d)f+=l;else{a.pop();var m=e(f);y.push(m),u=m,f=""}else if(g&&","===l)f&&(y.push(e(f)),f="");else if(p&&":"===l)a.push(","),f&&(y.push(f),f="");else if(v&&","===l)f&&(y.push(e(f)),f=""),a.pop();else if("}"===l&&(p||v)){f&&(y.push(e(f)),f=""),v&&a.pop();for(var b={},x=1;x<y.length;x+=2)b[y[x-1]]=y[x];o.pop(),o.length&&r(o).push(b),a.pop(),u=b}else"]"===l&&g?(f&&(y.push(e(f)),f=""),o.pop(),o.length&&r(o).push(y),a.pop(),u=y):"{"===l?(o.push([]),a.push("}")):"["===l?(o.push([]),a.push("]")):\'"\'===l?a.push(\'"\'):"\'"===l?a.push("\'"):f+=l;c+=1}else c+=1}return u||f}function Ht(t,e){var n;void 0===e&&(e={x:0,y:0});var r=Object(v.a)({x:0,y:0,width:0,height:0},e);if(null===(n=t.children)||void 0===n?void 0:n.length){var i=t.attrs,o=void 0===i?{}:i,a=o.marginTop,s=Object(v.a)({},e);a&&(s.y+=a);for(var u=0;u<t.children.length;u++){t.children[u].attrs.key=(o.key||"root")+" -"+u+" ";var c=Ht(t.children[u],s);if(c.bbox){var f=c.bbox;"inline"===c.attrs.next?s.x+=c.bbox.width:s.y+=c.bbox.height,f.width+f.x>r.width&&(r.width=f.width+f.x),f.height+f.y>r.height&&(r.height=f.height+f.y)}}}return t.bbox=function(t,e,n){var r,i,o=t.attrs,a=void 0===o?{}:o,s={x:e.x||0,y:e.y||0,width:n.width||0,height:n.height||0};switch(t.type){case"maker":case"circle":a.r&&(i=2*a.r,r=2*a.r);break;case"text":a.text&&(i=Gt(a.text,a.fontSize||12)[0],r=16,s.y+=r,s.height=r,s.width=i,t.attrs=Object(v.a)({fontSize:12,fill:"#000"},a));break;default:a.width&&(i=a.width),a.height&&(r=a.height)}return r>=0&&(s.height=r),i>=0&&(s.width=i),a.marginTop&&(s.y+=a.marginTop),a.marginLeft&&(s.x+=a.marginLeft),s}(t,e,r),t.attrs=Object(v.a)(Object(v.a)({},t.attrs),t.bbox),t}function qt(t){var e={},n=function(e){var n=function(t){return function(e){for(var n=t.length,r=[],i=0,o="";i<n;)if("{"===t[i]&&"{"===t[i+1])r.push(o),o="",i+=2;else if("}"===t[i]&&"}"===t[i+1]){if(r.length){var a=r.pop();o=Object(h.i)(e,o,a.endsWith("=")?\'"{\'+o+\'}"\':o),r.push(a+o)}i+=2,o=""}else o+=t[i],i+=1;return r.push(o),r.map((function(t,e){return r[e-1]&&r[e-1].endsWith("=")?\'"{\'+t+\'}"\':t})).join("")}}("function"==typeof t?t(e):t)(e),r=document.createElement("div");r.innerHTML=n;var i=Ht(function t(e,n){var r={},i=e.getAttributeNames&&e.getAttributeNames()||[],o=e.children&&Array.from(e.children).map((function(e){return t(e,n)})),a={},s=e.tagName?e.tagName.toLowerCase():"group";return"text"===s&&(r.text=e.innerText),a.type=s,"img"===s&&(a.type="image"),Array.from(i).forEach((function(t){var n=t.split("-").reduce((function(t,e){return t+e.charAt(0).toUpperCase()+e.slice(1)})),i=e.getAttribute(t);try{if("style"===n||"attrs"===n){var o=Yt(i);r=Object(v.a)(Object(v.a)({},r),o)}else a[n]=Yt(i)}catch(t){if("style"===n)throw t;a[n]=i}})),a.attrs=r,n&&n.style&&a.name&&"object"===Xt(n.style[a.name])&&(a.attrs=Object(v.a)(Object(v.a)({},a.attrs),n.style[a.name])),n&&n.style&&a.keyshape&&(a.attrs=Object(v.a)(Object(v.a)({},a.attrs),n.style)),o.length&&(a.children=o),a}(r.children[0],e));return r.remove(),i};return{draw:function(t,r){var i=n(t),o=r;return function t(e){var n=e.attrs,i=void 0===n?{}:n,a=e.bbox,s=e.type,u=e.children,c=Object(v.c)(e,["attrs","bbox","type","children"]);if("group"!==e.type){var f=r.addShape(e.type,Object(v.a)({attrs:i,origin:{bbox:a,type:s,children:u}},c));e.keyshape&&(o=f)}e.children&&e.children.forEach((function(e){return t(e)}))}(i),e[t.id]=[i],o},update:function(t,r){e[t.id]||(e[t.id]=[]);var i=r.getContainer(),o=i.get("children"),a=n(t),s=function t(e,n){var r,i,o,a,s=(e||{}).type,u=((null==n?void 0:n.attrs)||{}).key;if(u&&e&&(e.attrs.key=u),!e&&n)return{action:"delete",val:n,type:s,key:u};if(e&&!n)return{action:"add",val:e,type:s};if(!e&&!n)return{action:"same",type:s};var c=[];if((null===(r=e.children)||void 0===r?void 0:r.length)>0||(null===(i=n.children)||void 0===i?void 0:i.length)>0)for(var f=Math.max(null===(o=e.children)||void 0===o?void 0:o.length,null===(a=n.children)||void 0===a?void 0:a.length),l=n.children||[],h=e.children||[],d=0;d<f;d+=1)c.push(t(h[d],l[d]));var p=Object.keys(n.attrs),g=Object.keys(e.attrs);return n.type!==e.type?{action:"restructure",nowTarget:e,formerTarget:n,key:u,children:c}:p.filter((function(t){return"children"!==t})).some((function(t){return e.attrs[t]!==n.attrs[t]||!g.includes(t)}))?{action:"change",val:e,children:c,type:s,key:u}:{action:"same",children:c,type:s,key:u}}(a,e[t.id].pop()),u=function t(e){var n;"group"!==e.type&&i.addShape(e.type,{attrs:e.attrs}),(null===(n=e.children)||void 0===n?void 0:n.length)&&e.children.map((function(e){return t(e)}))},c=function t(e){var n,r=o.find((function(t){return t.attrs.key===e.attrs.key}));r&&i.removeChild(r),(null===(n=e.children)||void 0===n?void 0:n.length)&&e.children.map((function(e){return t(e)}))};!function t(e){var n=e.key;if("group"!==e.type){var i=o.find((function(t){return t.attrs.key===n}));switch(e.action){case"change":if(i){var a=e.val.keyshape?r.getOriginStyle():{};i.attr(Object(v.a)(Object(v.a)({},a),e.val.attrs))}break;case"add":u(e.val);break;case"delete":c(e.val);break;case"restructure":c(e.formerTarget),u(e.nowTarget)}}e.children&&e.children.forEach((function(e){return t(e)}))}(s),e[t.id].push(a)},getAnchorPoints:function(){return[[0,.5],[1,.5],[.5,1],[.5,0]]}}}var Kt={};function Zt(t){return Kt[t]||(Kt[t]=Object(h.I)(t)),Kt[t]}var Qt={defaultShapeType:"defaultType",className:null,getShape:function(t){return this[t]||this[this.defaultShapeType]||this["simple-circle"]},draw:function(t,e,n){var r=this.getShape(t),i=r.draw(e,n);return r.afterDraw&&r.afterDraw(e,n,i),i},baseUpdate:function(t,e,n){var r=this.getShape(t);r.update&&r.update(e,n),r.afterUpdate&&r.afterUpdate(e,n)},setState:function(t,e,n,r){this.getShape(t).setState(e,n,r)},shouldUpdate:function(t){return!!this.getShape(t).update},getControlPoints:function(t,e){return this.getShape(t).getControlPoints(e)},getAnchorPoints:function(t,e){return this.getShape(t).getAnchorPoints(e)}},Jt={options:{},draw:function(t,e){return this.drawShape(t,e)},drawShape:function(){},afterDraw:function(){},afterUpdate:function(){},setState:function(){},getControlPoints:function(t){return t.controlPoints},getAnchorPoints:function(t){var e=this.options.anchorPoints;return t.anchorPoints||e}},$t=function(){function t(){}return t.registerFactory=function(e,n){var r=Zt(e),i=Qt,o=Object(v.a)(Object(v.a)({},i),n);return t[r]=o,o.className=r,o},t.getFactory=function(e){return t[Zt(e)]},t.registerNode=function(e,n,r){var i,o=t.Node;if("string"==typeof n||"function"==typeof n){var a=qt(n);i=Object(v.a)(Object(v.a)({},o.getShape("single-node")),a)}else if(n.jsx){a=qt(n.jsx);i=Object(v.a)(Object(v.a)(Object(v.a)({},o.getShape("single-node")),a),n)}else{o.getShape(r);var s=r?o.getShape(r):Jt;i=Object(v.a)(Object(v.a)({},s),n)}return i.type=e,i.itemType="node",o[e]=i,i},t.registerEdge=function(e,n,r){var i=t.Edge,o=r?i.getShape(r):Jt,a=Object(v.a)(Object(v.a)({},o),n);return a.type=e,a.itemType="edge",i[e]=a,a},t.registerCombo=function(e,n,r){var i=t.Combo,o=r?i.getShape(r):Jt,a=Object(v.a)(Object(v.a)({},o),n);return a.type=e,a.itemType="combo",i[e]=a,a},t}(),te=$t;$t.registerFactory("node",{defaultShapeType:"circle"}),$t.registerFactory("edge",{defaultShapeType:"line"}),$t.registerFactory("combo",{defaultShapeType:"circle"});var ee=["startArrow","endArrow"],ne=function(){function t(t){this._cfg={},this.destroyed=!1;var e={id:void 0,type:"item",model:{},group:void 0,animate:!1,visible:!0,locked:!1,event:!0,keyShape:void 0,states:[]};this._cfg=Object.assign(e,this.getDefaultCfg(),t);var n=this.get("model"),r=n.id,i=this.get("type");r||(r=mt(i),this.get("model").id=r),this.set("id",r);var o=t.group;o&&(o.set("item",this),o.set("id",r)),this.init(),this.draw();var a=n.shape||n.type||("edge"===i?"line":"circle"),s=this.get("shapeFactory");if(s&&s[a]){var u=s[a].options;if(u&&u.stateStyles){var c=this.get("styles")||n.stateStyles;c=Object(h.e)({},u.stateStyles,c),this.set("styles",c)}}}return t.prototype.calculateBBox=function(){var t=this.get("keyShape"),e=this.get("group"),n=Pt(t,e);return n.x=n.minX,n.y=n.minY,n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n.centerX=(n.minX+n.maxX)/2,n.centerY=(n.minY+n.maxY)/2,n},t.prototype.calculateCanvasBBox=function(){var t=this.get("keyShape"),e=this.get("group"),n=Pt(t,e);return n.x=n.minX,n.y=n.minY,n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n.centerX=(n.minX+n.maxX)/2,n.centerY=(n.minY+n.maxY)/2,n},t.prototype.drawInner=function(){var t=this.get("shapeFactory"),e=this.get("group"),n=this.get("model");e.clear();var r=n.visible;if(void 0===r||r||this.changeVisibility(r),t){this.updatePosition(n);var i=this.getShapeCfg(n),o=i.type,a=t.draw(o,i,e);a&&(this.set("keyShape",a),a.set("isKeyShape",!0),a.set("draggable",!0)),this.setOriginStyle(),this.set("currentShape",o),this.restoreStates(t,o)}},t.prototype.setOriginStyle=function(t){var e=this.get("group").get("children"),n=this.getKeyShape(),r=this,i=n.get("name");if(this.get("originStyle")){var o=this.getOriginStyle();i&&!o[i]&&(o[i]={});var a=this.getCurrentStatesStyle();Object(h.f)(e,(function(t){var e=t.get("name"),n=t.attr();if(e&&e!==i){var r=a[e];o[e]||(o[e]={}),r?Object.keys(n).forEach((function(t){var i=n[t];i!==r[t]&&(o[e][t]=i)})):o[e]=Object(h.c)(n)}else{var s=t.attr(),u=Object(v.a)(Object(v.a)({},a),a[i]);Object.keys(s).forEach((function(t){var n=s[t];Object(h.w)(n)&&-1===ee.indexOf(e)||u[t]!==n&&(i?o[i][t]=n:o[t]=n)}))}})),o.path&&delete o.path,o.matrix&&delete o.matrix,r.set("originStyle",o)}else{var s={};Object(h.f)(e,(function(t){var e=t.get("type"),n=t.get("name");if(n&&n!==i)s[n]="image"!==e?Object(h.c)(t.attr()):r.getShapeStyleByName(n);else{var o=r.getShapeStyleByName();if(o.path&&delete o.path,o.matrix&&delete o.matrix,i)if(n)s[i]=o;else{var a=mt("shape");t.set("name",a),s[a]="image"!==e?Object(h.c)(t.attr()):r.getShapeStyleByName(n)}else Object.assign(s,o)}})),r.set("originStyle",s)}},t.prototype.restoreStates=function(t,e){var n=this,r=n.get("states");Object(h.f)(r,(function(r){t.setState(e,r,!0,n)}))},t.prototype.init=function(){var t=te.getFactory(this.get("type"));this.set("shapeFactory",t)},t.prototype.get=function(t){return this._cfg[t]},t.prototype.set=function(t,e){Object(h.w)(t)?this._cfg=Object(v.a)(Object(v.a)({},this._cfg),t):this._cfg[t]=e},t.prototype.getDefaultCfg=function(){return{}},t.prototype.clearCache=function(){this.set("bboxCache",null),this.set("bboxCanvasCache",null)},t.prototype.beforeDraw=function(){},t.prototype.afterDraw=function(){},t.prototype.afterUpdate=function(){},t.prototype.draw=function(){this.beforeDraw(),this.drawInner(),this.afterDraw()},t.prototype.getShapeStyleByName=function(t){var e,n=this.get("group");if(e=t?n.find((function(e){return e.get("name")===t})):this.getKeyShape()){var r={};return Object(h.f)(e.attr(),(function(t,e){"img"!==e&&(r[e]=t)})),r}return{}},t.prototype.getShapeCfg=function(t){var e=this.get("styles");if(e){var n=t;return n.style=Object(v.a)(Object(v.a)({},e),t.style),n}return t},t.prototype.getStateStyle=function(t){var e=this.get("styles");return e&&e[t]},t.prototype.getOriginStyle=function(){return this.get("originStyle")},t.prototype.getCurrentStatesStyle=function(){var t=this,e={},n=t.getStates();return n&&n.length?(Object(h.f)(t.getStates(),(function(n){e=Object.assign(e,t.getStateStyle(n))})),e):this.getOriginStyle()},t.prototype.setState=function(t,e){var n=this.get("states"),r=this.get("shapeFactory"),i=t,o=t;Object(h.x)(e)&&(i=t+":"+e,o=t+":");var a=n;if(Object(h.n)(e)){var s=n.indexOf(o);if(e){if(s>-1)return;n.push(i)}else s>-1&&n.splice(s,1)}else if(Object(h.x)(e)){var u=n.filter((function(t){return t.includes(o)}));u.length>0&&this.clearStates(u),(a=a.filter((function(t){return!t.includes(o)}))).push(i),this.set("states",a)}if(r){var c=this.get("model").type;r.setState(c,t,e,this)}},t.prototype.clearStates=function(t){var e=this,n=e.getStates(),r=e.get("shapeFactory"),i=e.get("model").type;t||(t=n),Object(h.x)(t)&&(t=[t]);var o=n.filter((function(e){return-1===t.indexOf(e)}));e.set("states",o),t.forEach((function(t){r.setState(i,t,!1,e)}))},t.prototype.getContainer=function(){return this.get("group")},t.prototype.getKeyShape=function(){return this.get("keyShape")},t.prototype.getModel=function(){return this.get("model")},t.prototype.getType=function(){return this.get("type")},t.prototype.getID=function(){return this.get("id")},t.prototype.isItem=function(){return!0},t.prototype.getStates=function(){return this.get("states")},t.prototype.hasState=function(t){return this.getStates().indexOf(t)>=0},t.prototype.refresh=function(){var t=this.get("model");this.updatePosition(t),this.updateShape(),this.afterUpdate(),this.clearCache()},t.prototype.isOnlyMove=function(t){return!1},t.prototype.update=function(t,e){void 0===e&&(e=!1);var n=this.get("model"),r=n.visible,i=t.visible;r!==i&&void 0!==i&&this.changeVisibility(i);var o=n.x,a=n.y;t.x=isNaN(t.x)?n.x:t.x,t.y=isNaN(t.y)?n.y:t.y;var s=this.get("styles");if(t.stateStyles){var u=t.stateStyles;Object(h.A)(s,u),delete t.stateStyles}Object.assign(n,t),e?this.updatePosition(t):(o===t.x&&a===t.y||this.updatePosition(t),this.updateShape()),this.afterUpdate(),this.clearCache()},t.prototype.updateShape=function(){var t=this.get("shapeFactory"),e=this.get("model"),n=e.type;if(t.shouldUpdate(n)&&n===this.get("currentShape")){var r=this.getShapeCfg(e);t.baseUpdate(n,r,this)}else this.draw();this.setOriginStyle(e),this.restoreStates(t,n)},t.prototype.updatePosition=function(t){var e=this.get("model"),n=Object(h.s)(t.x)?e.x:t.x,r=Object(h.s)(t.y)?e.y:t.y,i=this.get("group");Object(h.s)(n)||Object(h.s)(r)||(i.resetMatrix(),D(i,{x:n,y:r}),e.x=n,e.y=r,this.clearCache())},t.prototype.getBBox=function(){var t=this.get("bboxCache");return t||(t=this.calculateBBox(),this.set("bboxCache",t)),t},t.prototype.getCanvasBBox=function(){var t=this.get("bboxCanvasCache");return t||(t=this.calculateCanvasBBox(),this.set("bboxCanvasCache",t)),t},t.prototype.toFront=function(){this.get("group").toFront()},t.prototype.toBack=function(){this.get("group").toBack()},t.prototype.show=function(){this.changeVisibility(!0)},t.prototype.hide=function(){this.changeVisibility(!1)},t.prototype.changeVisibility=function(t){var e=this.get("group");t?e.show():e.hide(),this.set("visible",t)},t.prototype.isVisible=function(){return this.get("visible")},t.prototype.enableCapture=function(t){var e=this.get("group");e&&e.set("capture",t)},t.prototype.destroy=function(){if(!this.destroyed){var t=this.get("animate"),e=this.get("group");t&&e.stopAnimate(),this.clearCache(),e.remove(),this._cfg=null,this.destroyed=!0}},t}(),re={source:"start",target:"end"},ie=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(v.b)(e,t),e.prototype.getDefaultCfg=function(){return{type:"edge",sourceNode:null,targetNode:null,startPoint:null,endPoint:null,linkCenter:!1}},e.prototype.setEnd=function(t,e){var n=re[t]+"Point",r=t+"Node",i=this.get(r);i&&!i.destroyed&&i.removeEdge(this),Object(h.w)(e)?(this.set(n,e),this.set(r,null)):(e.addEdge(this),this.set(r,e),this.set(n,null))},e.prototype.getLinkPoint=function(t,e,n){var r=re[t]+"Point",i=t+"Node",o=this.get(r);if(!o){var a=this.get(i),s=t+"Anchor",u=this.getPrePoint(t,n),c=e[s];Object(h.s)(c)||(o=a.getLinkPointByAnchor(c)),o=o||a.getLinkPoint(u),Object(h.s)(o.index)||this.set(t+"AnchorIndex",o.index)}return o},e.prototype.getPrePoint=function(t,e){if(e&&e.length)return e["source"===t?0:e.length-1];var n="source"===t?"target":"source";return this.getEndPoint(n)},e.prototype.getEndPoint=function(t){var e=t+"Node",n=re[t]+"Point",r=this.get(e);return r?r.get("model"):this.get(n)},e.prototype.getControlPointsByCenter=function(t){var e=this.getEndPoint("source"),n=this.getEndPoint("target"),r=this.get("shapeFactory"),i=t.type;return r.getControlPoints(i,{startPoint:e,endPoint:n})},e.prototype.getEndCenter=function(t){var e=t+"Node",n=re[t]+"Point",r=this.get(e);if(r){var i=r.getBBox();return{x:i.centerX,y:i.centerY}}return this.get(n)},e.prototype.init=function(){t.prototype.init.call(this),this.setSource(this.get("source")),this.setTarget(this.get("target"))},e.prototype.getShapeCfg=function(e){var n=this.get("linkCenter"),r=t.prototype.getShapeCfg.call(this,e);if(n)r.startPoint=this.getEndCenter("source"),r.endPoint=this.getEndCenter("target");else{var i=r.controlPoints||this.getControlPointsByCenter(r);r.startPoint=this.getLinkPoint("source",e,i),r.endPoint=this.getLinkPoint("target",e,i)}return r.sourceNode=this.get("sourceNode"),r.targetNode=this.get("targetNode"),r},e.prototype.getModel=function(){var t=this.get("model"),e=this.get("sourceNode"),n=this.get("targetNode");return e?delete t.sourceNode:t.source=this.get("startPoint"),n?delete t.targetNode:t.target=this.get("endPoint"),Object(h.x)(t.source)||Object(h.w)(t.source)||(t.source=t.source.getID()),Object(h.x)(t.target)||Object(h.w)(t.target)||(t.target=t.target.getID()),t},e.prototype.setSource=function(t){this.setEnd("source",t),this.set("source",t)},e.prototype.setTarget=function(t){this.setEnd("target",t),this.set("target",t)},e.prototype.getSource=function(){return this.get("source")},e.prototype.getTarget=function(){return this.get("target")},e.prototype.updatePosition=function(){},e.prototype.update=function(t,e){void 0===e&&(e=!1);var n=this.get("model"),r=n.visible,i=t.visible;r!==i&&void 0!==i&&this.changeVisibility(i);var o=this.get("styles");if(t.stateStyles){var a=t.stateStyles;Object(h.A)(o,a),delete t.stateStyles}Object.assign(n,t),this.updateShape(),this.afterUpdate(),this.clearCache()},e.prototype.destroy=function(){var e=this.get("sourceNode"),n=this.get("targetNode");e&&!e.destroyed&&e.removeEdge(this),n&&!n.destroyed&&n.removeEdge(this),t.prototype.destroy.call(this)},e}(ne),oe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(v.b)(e,t),e.prototype.getNearestPoint=function(t,e){for(var n=0,r=t[0],i=C(t[0],e),o=0;o<t.length;o++){var a=t[o],s=C(a,e);s<i&&(r=a,i=s,n=o)}return r.anchorIndex=n,r},e.prototype.getDefaultCfg=function(){return{type:"node",edges:[]}},e.prototype.getEdges=function(){return this.get("edges")},e.prototype.getInEdges=function(){var t=this;return this.get("edges").filter((function(e){return e.get("target")===t}))},e.prototype.getOutEdges=function(){var t=this;return this.get("edges").filter((function(e){return e.get("source")===t}))},e.prototype.getNeighbors=function(t){var e=this,n=this.get("edges");if("target"===t){return n.filter((function(t){return t.getSource()===e})).map((function(t){return t.getTarget()}))}if("source"===t){return n.filter((function(t){return t.getTarget()===e})).map((function(t){return t.getSource()}))}return n.map((function(t){return t.getSource()===e?t.getTarget():t.getSource()}))},e.prototype.getLinkPointByAnchor=function(t){return this.getAnchorPoints()[t]},e.prototype.getLinkPoint=function(t){var e,n,r=this.get("keyShape").get("type"),i=this.get("type"),o=this.getBBox();"combo"===i?(e=o.centerX||(o.maxX+o.minX)/2,n=o.centerY||(o.maxY+o.minY)/2):(e=o.centerX,n=o.centerY);var a,s=this.getAnchorPoints();switch(r){case"circle":a=O({x:e,y:n,r:o.width/2},t);break;case"ellipse":a=k({x:e,y:n,rx:o.width/2,ry:o.height/2},t);break;default:a=_(o,t)}var u=a;return s.length&&(u||(u=t),u=this.getNearestPoint(s,u)),u||(u={x:e,y:n}),u},e.prototype.getAnchorPoints=function(){var t=this.get("anchorPointsCache");if(!t){t=[];var e=this.get("shapeFactory"),n=this.getBBox(),r=this.get("model"),i=this.getShapeCfg(r),o=r.type,a=e.getAnchorPoints(o,i)||[];Object(h.f)(a,(function(e,r){var i={x:n.minX+e[0]*n.width,y:n.minY+e[1]*n.height,anchorIndex:r};t.push(i)})),this.set("anchorPointsCache",t)}return t},e.prototype.addEdge=function(t){this.get("edges").push(t)},e.prototype.lock=function(){this.set("locked",!0)},e.prototype.unlock=function(){this.set("locked",!1)},e.prototype.hasLocked=function(){return this.get("locked")},e.prototype.removeEdge=function(t){var e=this.getEdges(),n=e.indexOf(t);n>-1&&e.splice(n,1)},e.prototype.clearCache=function(){this.set("bboxCache",null),this.set("anchorPointsCache",null)},e.prototype.isOnlyMove=function(t){if(!t)return!1;var e=!Object(h.s)(t.x),n=!Object(h.s)(t.y),r=Object.keys(t);return 1===r.length&&(e||n)||2===r.length&&e&&n},e}(ne),ae=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(v.b)(e,t),e.prototype.getDefaultCfg=function(){return{type:"combo",nodes:[],edges:[],combos:[]}},e.prototype.getShapeCfg=function(t){var e=this.get("styles"),n=this.get("bbox");if(e&&n){var r=t,i={r:Math.hypot(n.height,n.width)/2||ht.defaultCombo.size[0]/2,width:n.width||ht.defaultCombo.size[0],height:n.height||ht.defaultCombo.size[1]};r.style=Object(v.a)(Object(v.a)(Object(v.a)({},e),t.style),i);var o=t.padding||ht.defaultCombo.padding;return Object(h.t)(o)?(i.r+=o,i.width+=2*o,i.height+=2*o):(i.r+=o[0],i.width+=o[1]+o[3]||2*o[1],i.height+=o[0]+o[2]||2*o[0]),this.set("sizeCache",i),r}return t},e.prototype.calculateCanvasBBox=function(){if(!this.destroyed){var t=this.get("keyShape"),e=this.get("group"),n=Pt(t,e);n.centerX=(n.minX+n.maxX)/2,n.centerY=(n.minY+n.maxY)/2;var r=this.get("sizeCache"),i=this.get("bboxCache")||{},o=i.x,a=i.x;if(r)"circle"===t.get("type")?(n.width=2*r.r,n.height=2*r.r):(n.width=r.width,n.height=r.height),n.minX=n.centerX-n.width/2,n.minY=n.centerY-n.height/2,n.maxX=n.centerX+n.width/2,n.maxY=n.centerY+n.height/2;else n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n.centerX=(n.minX+n.maxX)/2,n.centerY=(n.minY+n.maxY)/2;return n.x=n.minX,n.y=n.minY,n.x===o&&n.y===a||this.set("anchorPointsCache",null),n}},e.prototype.getChildren=function(){return{nodes:this.getNodes(),combos:this.getCombos()}},e.prototype.getNodes=function(){return this.get("nodes")},e.prototype.getCombos=function(){return this.get("combos")},e.prototype.addChild=function(t){switch(t.getType()){case"node":this.addNode(t);break;case"combo":this.addCombo(t);break;default:return console.warn("Only node or combo items are allowed to be added into a combo"),!1}return!0},e.prototype.addCombo=function(t){return this.get("combos").push(t),!0},e.prototype.addNode=function(t){return this.get("nodes").push(t),!0},e.prototype.removeChild=function(t){switch(t.getType()){case"node":this.removeNode(t);break;case"combo":this.removeCombo(t);break;default:return console.warn("Only node or combo items are allowed to be added into a combo"),!1}return!0},e.prototype.removeCombo=function(t){if(t){var e=this.getCombos(),n=e.indexOf(t);return n>-1&&(e.splice(n,1),!0)}},e.prototype.removeNode=function(t){if(t){var e=this.getNodes(),n=e.indexOf(t);return n>-1&&(e.splice(n,1),!0)}},e.prototype.isOnlyMove=function(t){return!1},e.prototype.getBBox=function(){return this.set("bboxCanvasCache",null),this.calculateCanvasBBox()},e.prototype.clearCache=function(){this.set("bboxCache",null),this.set("bboxCanvasCache",null),this.set("anchorPointsCache",null)},e.prototype.destroy=function(){if(!this.destroyed){var t=this.get("animate"),e=this.get("group");t&&e.stopAnimate(),this.clearCache(),this.set("sizeCache",null),this.set("bbox",null),e.remove(),this._cfg=null,this.destroyed=!0}},e}(oe),se=function(){function t(t){this.graph=t,this.destroyed=!1}return t.prototype.addItem=function(t,e){var n=this,r=this.graph,i="vedge"===t?"edge":t,o=r.get(i+"Group")||r.get("group"),a=Object(h.I)(i),s=null,u=r.get(i+Object(h.I)("stateStyles"))||{},c=r.get("default"+a);e.stateStyles&&(u=e.stateStyles),c&&Object(h.f)(c,(function(t,n){Object(h.v)(t)&&!Object(h.m)(t)?e[n]=Object(h.e)({},t,e[n]):Object(h.m)(t)?e[n]=e[n]||Object(h.c)(c[n]):e[n]=e[n]||c[n]}));var f=r.get(i+"Mapper");if(f){var l=f(e);l.stateStyles&&(u=l.stateStyles,delete l.stateStyles),Object(h.f)(l,(function(t,n){Object(h.v)(t)&&!Object(h.m)(t)?e[n]=Object(h.e)({},e[n],t):e[n]=l[n]||e[n]}))}if(r.emit("beforeadditem",{type:t,model:e}),"edge"===t||"vedge"===t){var d=void 0,p=void 0;if(d=e.source,p=e.target,d&&Object(h.x)(d)&&(d=r.findById(d)),p&&Object(h.x)(p)&&(p=r.findById(p)),!d||!p)return void console.warn("The source or target node of edge "+e.id+" does not exist!");d.getType&&"combo"===d.getType()&&(e.isComboEdge=!0),p.getType&&"combo"===p.getType()&&(e.isComboEdge=!0),s=new ie({model:e,source:d,target:p,styles:u,linkCenter:r.get("linkCenter"),group:o.addGroup()})}else if("node"===t)s=new oe({model:e,styles:u,group:o.addGroup()});else if("combo"===t){var g=e.children,v=zt(g,r);e.x=v.x||e.x||100*Math.random(),e.y=v.y||e.y||100*Math.random();var y=o.addGroup();y.setZIndex(e.depth);var m=(s=new ae({model:e,styles:u,bbox:v,group:y})).getModel();(g||[]).forEach((function(t){var e=r.findById(t.id);s.addChild(e),t.depth=m.depth+2})),e.collapsed&&setTimeout((function(){r.collapseCombo(s),n.updateCombo(s,[])}),250)}if(s)return r.get(t+"s").push(s),r.get("itemMap")[s.get("id")]=s,r.emit("afteradditem",{item:s,model:e}),s},t.prototype.updateItem=function(t,e){var n,r,i=this.graph;if(Object(h.x)(t)&&(t=i.findById(t)),t&&!t.destroyed){var o="";t.getType&&(o=t.getType());var a=i.get(o+"Mapper"),s=t.getModel(),u=t.isOnlyMove(e);if(a){var c=a(Object(h.e)({},s,e)),f=Object(h.e)({},s,c,e);c.stateStyles&&(t.set("styles",f.stateStyles),delete f.stateStyles),Object(h.f)(f,(function(t,n){e[n]=t}))}else Object(h.f)(e,(function(t,n){s[n]&&Object(h.v)(t)&&!Object(h.m)(t)&&(e[n]=Object(v.a)(Object(v.a)({},s[n]),e[n]))}));if(i.emit("beforeupdateitem",{item:t,cfg:e}),"edge"===o){if(e.source){var l=e.source;Object(h.x)(l)&&(l=i.findById(l)),t.setSource(l)}if(e.target){var d=e.target;Object(h.x)(d)&&(d=i.findById(d)),t.setTarget(d)}t.update(e)}if("node"===o||"combo"===o){t.update(e,u);var p=t.getEdges(),g=Vt(e);if(g&&"node"===o)Object(h.f)(p,(function(t){t.refresh()}));else if(g&&"combo"===o){var y=t.get("shapeFactory"),m=s.type||"circle";(void 0===s.animate||void 0===e.animate?null===(r=null===(n=y[m])||void 0===n?void 0:n.options)||void 0===r?void 0:r.animate:s.animate||e.animate)?setTimeout((function(){if(t&&!t.destroyed){var e=t.getKeyShape();e&&!e.destroyed&&Object(h.f)(p,(function(t){t&&!t.destroyed&&t.refresh()}))}}),201):Object(h.f)(p,(function(t){t.refresh()}))}}i.emit("afterupdateitem",{item:t,cfg:e})}},t.prototype.updateCombo=function(t,e){var n,r,i=this.graph;if(Object(h.x)(t)&&(t=i.findById(t)),t&&!t.destroyed){var o=zt(e,i);t.set("bbox",o),t.update({x:o.x,y:o.y});var a=t.getEdges()||[],s=a.length,u=t.getModel(),c=t.get("shapeFactory"),f=u.type||"circle";if(void 0===u.animate?null===(r=null===(n=c[f])||void 0===n?void 0:n.options)||void 0===r?void 0:r.animate:u.animate)setTimeout((function(){if(t&&!t.destroyed){var e=t.getKeyShape();if(e&&!e.destroyed)for(var n=0;n<s;n++){var r=a[n];r&&!r.destroyed&&r.refresh()}}}),201);else for(var l=0;l<s;l++){var d=a[l];d&&!d.destroyed&&d.refresh()}}},t.prototype.collapseCombo=function(t){var e=this.graph;Object(h.x)(t)&&(t=e.findById(t));var n=t.getChildren();n.nodes.forEach((function(t){e.hideItem(t)})),n.combos.forEach((function(t){e.hideItem(t)}))},t.prototype.expandCombo=function(t){var e=this.graph;Object(h.x)(t)&&(t=e.findById(t));var n=t.getChildren();n.nodes.forEach((function(t){e.showItem(t)})),n.combos.forEach((function(t){t.getModel().collapsed?t.show():e.showItem(t)}))},t.prototype.removeItem=function(t){var e=this,n=this.graph;if(Object(h.x)(t)&&(t=n.findById(t)),t&&!t.destroyed){var r=Object(h.c)(t.getModel());n.emit("beforeremoveitem",{item:r});var i="";t.getType&&(i=t.getType());var o=n.get(i+"s"),a=o.indexOf(t);if(a>-1&&o.splice(a,1),"edge"===i){var s=n.get("v"+i+"s"),u=s.indexOf(t);u>-1&&s.splice(u,1)}var c=t.get("id");delete n.get("itemMap")[c];var f=n.get("comboTrees"),l=t.get("id");if("node"===i){var d=t.getModel().comboId;if(f){var p=f,g=!1;f.forEach((function(t){g||Rt(t,(function(t){if(t.id===l&&p){var e=p.indexOf(t);return p.splice(e,1),g=!0,!1}return p=t.children,!0}))}))}for(var v=(x=t.getEdges()).length-1;v>=0;v--)n.removeItem(x[v],!1);d&&n.updateCombo(d)}else if("combo"===i){var y,m=t.getModel().parentId,b=!1;(f||[]).forEach((function(t){b||Rt(t,(function(t){return t.id!==l||(y=t,b=!0,!1)}))})),y.removed=!0,y&&y.children&&y.children.forEach((function(t){e.removeItem(t.id)}));var x;for(v=(x=t.getEdges()).length;v>=0;v--)n.removeItem(x[v],!1);m&&n.updateCombo(m)}t.destroy(),n.emit("afterremoveitem",{item:r})}},t.prototype.setItemState=function(t,e,n){var r=this.graph,i=e;Object(h.x)(n)&&(i=e+":"+n),t.hasState(i)===n&&n||Object(h.x)(n)&&t.hasState(i)||(r.emit("beforeitemstatechange",{item:t,state:i,enabled:n}),t.setState(e,n),r.autoPaint(),r.emit("afteritemstatechange",{item:t,state:i,enabled:n}))},t.prototype.priorityState=function(t,e){var n=this.graph,r=t;Object(h.x)(t)&&(r=n.findById(t)),this.setItemState(r,e,!1),this.setItemState(r,e,!0)},t.prototype.clearItemStates=function(t,e){var n=this.graph;Object(h.x)(t)&&(t=n.findById(t)),n.emit("beforeitemstatesclear",{item:t,states:e}),t.clearStates(e),n.emit("afteritemstatesclear",{item:t,states:e})},t.prototype.refreshItem=function(t){var e=this.graph;Object(h.x)(t)&&(t=e.findById(t)),e.emit("beforeitemrefresh",{item:t}),t.refresh(),e.emit("afteritemrefresh",{item:t})},t.prototype.addCombos=function(t,e){var n=this,r=this.graph;(t||[]).forEach((function(t){Lt(t,(function(t){var r;return e.forEach((function(e){e.id===t.id&&(e.children=t.children,e.depth=t.depth,r=e)})),r&&n.addItem("combo",r),!0}))}));var i=r.get("comboGroup");i&&i.sort()},t.prototype.changeItemVisibility=function(t,e){var n=this,r=this.graph;if(Object(h.x)(t)&&(t=r.findById(t)),t){if(r.emit("beforeitemvisibilitychange",{item:t,visible:e}),t.changeVisibility(e),t.getType&&"node"===t.getType()){var i=t.getEdges();Object(h.f)(i,(function(t){(!e||t.get("source").isVisible()&&t.get("target").isVisible())&&n.changeItemVisibility(t,e)}))}else if(t.getType&&"combo"===t.getType()){var o=r.get("comboTrees"),a=t.get("id"),s=[],u=!1;(o||[]).forEach((function(t){u||t.children&&0!==t.children.length&&Rt(t,(function(t){return t.id!==a||(s=t.children,u=!0,!1)}))})),s&&s.forEach((function(t){var i=r.findById(t.id);n.changeItemVisibility(i,e)}));i=t.getEdges();Object(h.f)(i,(function(t){(!e||t.get("source").isVisible()&&t.get("target").isVisible())&&n.changeItemVisibility(t,e)}))}return r.emit("afteritemvisibilitychange",{item:t,visible:e}),t}console.warn("The item to be shown or hidden does not exist!")},t.prototype.destroy=function(){this.graph=null,this.destroyed=!0},t}(),ue=null,ce=function(){function t(t){this.graph=t,this.cachedStates={enabled:{},disabled:{}},this.destroyed=!1}return t.checkCache=function(t,e,n){if(n[e]){var r=n[e].indexOf(t);r>=0&&n[e].splice(r,1)}},t.cacheState=function(t,e,n){n[e]||(n[e]=[]),n[e].push(t)},t.prototype.updateState=function(e,n,r){var i=this,o=t.checkCache,a=t.cacheState;if(!e.destroyed){var s=this.cachedStates,u=s.enabled,c=s.disabled;r?(o(e,n,c),a(e,n,u)):(o(e,n,u),a(e,n,c)),ue&&clearTimeout(ue),ue=setTimeout((function(){ue=null,i.updateGraphStates()}),16)}},t.prototype.updateStates=function(t,e,n){var r=this;Object(h.x)(e)?this.updateState(t,e,n):e.forEach((function(e){r.updateState(t,e,n)}))},t.prototype.updateGraphStates=function(){var t=this.graph.get("states"),e=this.cachedStates;Object(h.f)(e.disabled,(function(e,n){t[n]&&(t[n]=t[n].filter((function(t){return e.indexOf(t)<0&&!e.destroyed})))})),Object(h.f)(e.enabled,(function(e,n){if(t[n]){var r={};t[n].forEach((function(t){t.destroyed||(r[t.get("id")]=!0)})),e.forEach((function(e){if(!e.destroyed){var i=e.get("id");r[i]||(r[i]=!0,t[n].push(e))}}))}else t[n]=e})),this.graph.emit("graphstatechange",{states:t}),this.cachedStates={enabled:{},disabled:{}}},t.prototype.destroy=function(){this.graph=null,this.cachedStates=null,ue&&clearTimeout(ue),ue=null,this.destroyed=!0},t}(),fe=n(38),le=function(t,e){return t&&e?t.replace(/\\\\?\\{([^{}]+)\\}/g,(function(t,n){if("\\\\"===t.charAt(0))return t.slice(1);var r=e[n];return 0===r&&(r="0"),r||""})):t},he=function(t){var e=[];if(t.length<2)throw new Error("point length must largn than 2, now it\'s "+t.length);for(var n=0,r=t;n<r.length;n++){var i=r[n],o=i.x,a=i.y;e.push(o),e.push(a)}var s=Object(fe.a)(e);return s.unshift(["M",t[0].x,t[0].y]),s},de=function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=0);var i={x:(1-n)*t.x+n*e.x,y:(1-n)*t.y+n*e.y},o=[0,0];m.c.normalize(o,[e.x-t.x,e.y-t.y]),o&&(o[0]||o[1])||(o=[0,0]);var a=[-o[1]*r,o[0]*r];return i.x+=a[0],i.y+=a[1],i},pe=function(t,e){var n=t.length;if(!n)return"";for(var r="",i=0;i<n;i++){var o=t[i];r+=le(0===i?"M{x} {y}":"L{x} {y}",o)}return e&&(r+="Z"),r},ge=function(t){var e=[];return t.forEach((function(t){if("A"!==t[0])for(var n=1;n<t.length;n+=2)e.push([t[n],t[n+1]]);else{var r=t.length;e.push([t[r-2],t[r-1]])}})),e},ve=function(t){if(t.length<2)throw new Error("point length must largn than 2, now it\'s "+t.length);var e=t[0],n=t[1],r=t[t.length-1],i=t[t.length-2];t.unshift(r),t.unshift(i),t.push(e),t.push(n);for(var o=[],a=1;a<t.length-2;a+=1){var s=t[a-1].x,u=t[a-1].y,c=t[a].x,f=t[a].y,l=t[a+1].x,h=t[a+1].y,d=c+(l-s)/6,p=f+(h-u)/6,g=l-((a!==t.length-2?t[a+2].x:l)-c)/6,v=h-((a!==t.length-2?t[a+2].y:h)-f)/6;o.push(["C",d,p,g,v,l,h])}return o.unshift(["M",r.x,r.y]),o},ye=function(t,e){return m.c.scale([0,0],m.c.normalize([0,0],t),e)},me=function(t,e){var n=[t[1]-e[1],e[0]-t[0]],r=Math.sqrt(n[0]*n[0]+n[1]*n[1]);if(0===r)throw new Error("p0 should not be equal to p1");return[n[0]/r,n[1]/r]},be=function(t,e){return[e[0]-t[0],e[1]-t[1]]};function xe(t,e){if(!t||t.length<1)return"";if(1===t.length)return function(t){var n=[t[0][0],t[0][1]-e],r=[t[0][0],t[0][1]+e];return"M "+n+" A "+e+","+e+",0,0,0,"+r+" A "+e+","+e+",0,0,0,"+n}(t);if(2===t.length)return function(t){var n=m.c.scale([0,0],me(t[0],t[1]),e),r=m.c.scale([0,0],n,-1),i=m.c.add([0,0],t[0],n),o=m.c.add([0,0],t[1],n),a=m.c.add([0,0],t[1],r),s=m.c.add([0,0],t[0],r);return"M "+i+" L "+o+" A "+[e,e,"0,0,0",a].join(",")+" L "+s+" A "+[e,e,"0,0,0",i].join(",")}(t);for(var n=new Array(t.length),r=0;r<n.length;++r){var i=0===r?t[t.length-1]:t[r-1],o=t[r],a=m.c.scale([0,0],me(i,o),e);n[r]=[m.c.add([0,0],i,a),m.c.add([0,0],o,a)]}var s="A "+[e,e,"0,0,0,"].join(",");return(n=n.map((function(t,e){var r="";return 0===e&&(r="M "+n[n.length-1][1]+" "),r+=s+t[0]+" L "+t[1]}))).join(" ")}function we(t,e){var n,r,i,o=t.length;if(!t||o<1)return"";if(1===o)return r=[(n=t)[0][0],n[0][1]-e],i=[n[0][0],n[0][1]+e],"M "+r+" A "+[e,e,"0,0,0",i].join(",")+" A "+[e,e,"0,0,0",r].join(",");if(2===o)return function(t){var n=be(t[0],t[1]),r=ye(n,e),i=m.c.add([0,0],t[0],m.c.scale([0,0],r,-1)),o=m.c.add([0,0],t[1],r),a=1.2*e,s=ye(m.c.normalize([0,0],n),a),u=m.c.scale([0,0],s,-1),c=m.c.add([0,0],i,u),f=m.c.add([0,0],o,u),l=m.c.add([0,0],i,s);return"M "+i+" C "+[c,f,o].join(",")+" S "+[l,i].join(",")+" Z"}(t);for(var a=t.map((function(e,n){var r=t[(n+1)%o];return{p:e,v:m.c.normalize([0,0],be(e,r))}})),s=0;s<a.length;++s){var u=s>0?s-1:o-1,c=m.c.normalize([0,0],m.c.add([0,0],a[u].v,m.c.scale([0,0],a[s].v,-1)));a[s].p=m.c.add([0,0],a[s].p,m.c.scale([0,0],c,e))}return a.map((function(t){var e=t.p;return{x:e[0],y:e[1]}}))}var Se=function(t,e,n){return(t.y-n.y)*(e.x-n.x)-(t.x-n.x)*(e.y-n.y)},Ee=function(t){var e=t.map((function(t){return{x:t.getModel().x,y:t.getModel().y}}));if(e.sort((function(t,e){return t.x===e.x?t.y-e.y:t.x-e.x})),1===e.length)return e;for(var n=[],r=0;r<e.length;r++){for(;n.length>=2&&Se(n[n.length-2],n[n.length-1],e[r])<=0;)n.pop();n.push(e[r])}var i=[];for(r=e.length-1;r>=0;r--){for(;i.length>=2&&Se(i[i.length-2],i[i.length-1],e[r])<=0;)i.pop();i.push(e[r])}return i.pop(),n.pop(),n.concat(i)},_e={maxRoutingIterations:100,maxMarchingIterations:100,pixelGroupSize:2,edgeR0:10,edgeR1:10,nodeR0:5,nodeR1:10,morphBuffer:5,threshold:.001,skip:16,nodeInfluenceFactor:1,edgeInfluenceFactor:1,negativeNodeInfluenceFactor:-.5};function Oe(t,e,n){var r=!1,i=function(t,n){return e.cells[t+n*e.width]},o=function(t,e){var r=0;return i(t-1,e-1)>=n&&(r+=1),i(t,e-1)>n&&(r+=2),i(t-1,e)>n&&(r+=4),i(t,e)>n&&(r+=8),r},a=function(n,r){for(var i,a,s=n,u=r,c=0;c<e.width*e.height;c++){if(i=s,a=u,t.findIndex((function(t){return t.x===s&&t.y===u}))>-1){if(t[0].x===s&&t[0].y===u)return!0}else t.push({x:s,y:u});var f=o(s,u);switch(f){case-1:return console.warn("Marched out of bounds"),!0;case 0:case 3:case 2:case 7:s++;break;case 12:case 14:case 4:s--;break;case 6:0===i&&(-1===a?s-=1:s+=1);break;case 1:case 13:case 5:u--;break;case 9:1===i&&(0===a?u-=1:u+=1);break;case 10:case 8:case 11:u++;break;default:return console.warn("Marching squares invalid state: "+f),!0}}};this.march=function(){for(var t=0;t<e.width&&!r;t+=1)for(var s=0;s<e.height&&!r;s+=1)i(t,s)>n&&15!==o(t,s)&&(r=a(t,s));return r}}var ke=function(t,e){var n=Number.POSITIVE_INFINITY,r=null;return t.forEach((function(t){var i=Q(t,e);i>=0&&i<n&&(r=t,n=i)})),r};function Me(t,e,n,r,i){var o=function(t,e,n){var r=null,i=Number.POSITIVE_INFINITY;return e.forEach((function(e){var o={x:t.getModel().x,y:t.getModel().y},a={x:e.getModel().x,y:e.getModel().y},s=$(o,a),u=new H(o.x,o.y,a.x,a.y),c=n.reduce((function(t,e){return Q(e,u)>0?t+1:t}),0);s*Math.pow(c+1,2)<i&&(r=e,i=s*Math.pow(c+1,2))})),r}(t,n,e);if(null===o)return[];return function(t){for(var n=[];t.length>0;){var r=t.pop();if(0===t.length){n.push(r);break}var i=t.pop(),o=new H(r.x1,r.y1,i.x2,i.y2);ke(e,o)?(n.push(r),t.push(i)):t.push(o)}return n}(function(t,e,n,r){var i=[],o=[];o.push(t);for(var a=!0,s=0,u=function(t,e){var n=!1;return e.forEach((function(e){n||(et(t,{x:e.x1,y:e.y1})||et(t,{x:e.x2,y:e.y2}))&&(n=!0)})),n},c=function(t,e){for(var n=0,r=e;n<r.length;n++){var i=r[n].getBBox(),o=[[i.x,i.y],[i.x+i.width,i.y],[i.x,i.y+i.height],[i.x+i.width,i.y+i.height]];if(W(o,t.x,t.y))return!0}return!1};a&&s<n;){a=!1;for(var f=function(){var t=o.pop(),n=ke(e,t);if(n){var f=Z(n,t),l=f[0];if(2===f[1]){var h=function(s){for(var f=r,h=Ce(n,f,l,s),d=u(h,o)||u(h,i),p=c(h,e);!d&&p&&f>=1;)h=Ce(n,f/=1.5,l,s),d=u(h,o)||u(h,i),p=c(h,e);!h||d||s&&p||(o.push(new H(t.x1,t.y1,h.x,h.y)),o.push(new H(h.x,h.y,t.x2,t.y2)),a=!0)};h(!0),a||h(!1)}}a||i.push(t),s+=1};!a&&o.length;)f()}for(;o.length;)i.push(o.pop());return i}(new H(t.getModel().x,t.getModel().y,o.getModel().x,o.getModel().y),e,r,i))}var Ae=function(t,e,n){var r=Object.assign(_e,n),i=J(t.map((function(t){return{x:t.getModel().x,y:t.getModel().y}})));t=t.sort((function(t,e){return $({x:t.getModel().x,y:t.getModel().y},i)-$({x:e.getModel().x,y:e.getModel().y},i)}));var o=[],a=[];t.forEach((function(t){Me(t,e,o,r.maxRoutingIterations,r.morphBuffer).forEach((function(t){a.push(t)})),o.push(t)}));for(var s,u,c,f,l,h=function(t,e,n){var r={minX:Number.POSITIVE_INFINITY,minY:Number.POSITIVE_INFINITY,maxX:Number.NEGATIVE_INFINITY,maxY:Number.NEGATIVE_INFINITY,width:0,height:0,x:0,y:0},i=[];t.forEach((function(t){i.push(t.getBBox())})),e.forEach((function(t){i.push(t.getBBox())}));for(var o=0,a=i;o<a.length;o++){var s=a[o];r.minX=(s.minX<r.minX?s.minX:r.minX)-n,r.minY=(s.minY<r.minY?s.minY:r.minY)-n,r.maxX=(s.maxX>r.maxX?s.maxX:r.maxX)+n,r.maxY=(s.maxY>r.maxY?s.maxY:r.maxY)+n}return r.width=r.maxX-r.minX,r.height=r.maxY-r.minY,r.x=r.minX,r.y=r.minY,r}(t,a,r.nodeR0),d=(s=h.width,u=h.height,c=r.pixelGroupSize,f=Math.ceil(s/c),l=Math.ceil(u/c),{cells:new Float32Array(Math.max(0,f*l)).fill(0),width:f,height:l}),p=[],g=[],v=0;v<r.maxMarchingIterations;v++)if(Te(t,e,a,h,d,r),g=[],new Oe(p=[],d,r.threshold).march()){var y=p.map((function(t){return{x:Math.round(t.x*r.pixelGroupSize+h.minX),y:Math.round(t.y*r.pixelGroupSize+h.minY)}}));if(y){var m=y.length;if(r.skip>1)for(m=Math.floor(y.length/r.skip);m<3&&r.skip>1;)r.skip-=1,m=Math.floor(y.length/r.skip);for(var b=0,x=0;x<m;x+=1,b+=r.skip)g.push({x:y[b].x,y:y[b].y})}if(g&&function(){for(var e=0,n=t;e<n.length;e++){var r=n[e],i=g.map((function(t){return[t.x,t.y]}));if(!W(i,r.getBBox().centerX,r.getBBox().centerY))return!1}return!0}())return g;if(r.threshold*=.9,v<=.5*r.maxMarchingIterations)r.memberInfluenceFactor*=1.2,r.edgeInfluenceFactor*=1.2;else{if(!(0!==r.nonMemberInfluenceFactor&&e.length>0))break;r.nonMemberInfluenceFactor*=.8}}return g};function Te(t,e,n,r,i,o){function a(t,e){var n=Math.floor((t-e)/o.pixelGroupSize);return n<0?0:n}function s(t,e){return t*o.pixelGroupSize+e}var u=(o.nodeR0-o.nodeR1)*(o.nodeR0-o.nodeR1),c=(o.edgeR0-o.edgeR1)*(o.edgeR0-o.edgeR1),f=function(t,e){return[Math.min(a(t.minX,e+r.minX),i.width),Math.min(a(t.minY,e+r.minY),i.height),Math.min(a(t.maxX,-e+r.minX),i.width),Math.min(a(t.maxY,-e+r.minY),i.height)]},l=function(t,e){for(var n=t.getBBox(),a=f(n,o.nodeR1),u=a[0],c=a[1],l=a[2],h=a[3],d=c;d<h;d+=1)for(var p=u;p<l;p+=1)if(!(e<0&&i[p+d*i.width]<=0)){var g=s(p,r.minX),v=s(d,r.minY),y=nt({x:g,y:v},{x:n.minX,y:n.minY,width:n.width,height:n.height});if(y<Math.pow(o.nodeR1,2)){var m=Math.sqrt(y)-o.nodeR1;i.cells[p+d*i.width]+=e*m*m}}};o.nodeInfluenceFactor&&t.forEach((function(t){l(t,o.nodeInfluenceFactor/u)})),o.edgeInfluenceFactor&&n.forEach((function(t){!function(t,e){for(var n=t.getBBox(),a=f(n,o.edgeR1),u=a[0],c=a[1],l=a[2],h=a[3],d=c;d<h;d+=1)for(var p=u;p<l;p+=1)if(!(e<0&&i.cells[p+d*i.width]<=0)){var g=s(p,r.minX),v=s(d,r.minY),y=tt({x:g,y:v},t);if(y<Math.pow(o.edgeR1,2)){var m=Math.sqrt(y)-o.edgeR1;i.cells[p+d*i.width]+=e*m*m}}}(t,o.edgeInfluenceFactor/c)})),o.negativeNodeInfluenceFactor&&e.forEach((function(t){l(t,o.negativeNodeInfluenceFactor/u)}))}function Ce(t,e,n,r){var i=t.getBBox(),o=n[0],a=n[1],s=n[2],u=n[3],c={topLeft:{x:i.minX-e,y:i.minY-e},topRight:{x:i.maxX+e,y:i.minY-e},bottomLeft:{x:i.minX-e,y:i.maxY+e},bottomRight:{x:i.maxX+e,y:i.maxY+e}},f=i.height*i.width;function l(t,e){return i.width*(.5*(t.y-i.minY+(e.y-i.minY)))}if(a)return o?r?c.topLeft:c.bottomRight:s?r?c.bottomLeft:c.topRight:l(a,u)<.5*f?a.y>u.y?r?c.topLeft:c.bottomRight:r?c.topRight:c.bottomLeft:a.y<u.y?r?c.bottomLeft:c.topRight:r?c.bottomRight:c.topLeft;if(u){if(o)return r?c.topRight:c.bottomLeft;if(s)return r?c.bottomRight:c.topLeft}return l(o,s)<.5*f?o.x>s.x?r?c.topLeft:c.bottomRight:r?c.bottomLeft:c.topRight:o.x<s.x?r?c.topRight:c.bottomLeft:r?c.bottomRight:c.topLeft}var Ie=function(){function t(t,e){this.cfg=Object(h.e)(this.getDefaultCfg(),e),this.graph=t,this.id=this.cfg.id,this.group=this.cfg.group,this.members=this.cfg.members.map((function(e){return Object(h.x)(e)?t.findById(e):e})),this.nonMembers=this.cfg.nonMembers.map((function(e){return Object(h.x)(e)?t.findById(e):e})),this.setPadding(),this.setType(),this.path=this.calcPath(this.members,this.nonMembers),this.render()}return t.prototype.getDefaultCfg=function(){return{id:"g6-hull",type:"round-convex",members:[],nonMembers:[],style:{fill:"lightblue",stroke:"blue",opacity:.2},padding:10}},t.prototype.setPadding=function(){var t=this.members.length&&this.members[0].getKeyShape().getCanvasBBox().width/2;this.padding=this.cfg.padding>0?this.cfg.padding+t:10+t,this.cfg.bubbleCfg={nodeR0:this.padding-t,nodeR1:this.padding-t,morphBuffer:this.padding-t}},t.prototype.setType=function(){this.type=this.cfg.type,this.members.length<3&&(this.type="round-convex"),"round-convex"!==this.type&&"smooth-convex"!==this.type&&"bubble"!==this.type&&(console.warn("The hull type should be either round-convex, smooth-convex or bubble, round-convex is used by default."),this.type="round-convex")},t.prototype.calcPath=function(t,e){var n,r,i;switch(this.type){case"round-convex":i=xe((n=Ee(t)).map((function(t){return[t.x,t.y]})),this.padding),r=Object(fe.b)(i);break;case"smooth-convex":2===(n=Ee(t)).length?(i=xe(n.map((function(t){return[t.x,t.y]})),this.padding),r=Object(fe.b)(i)):n.length>2&&(i=we(n.map((function(t){return[t.x,t.y]})),this.padding),r=ve(i));break;case"bubble":r=(n=Ae(t,e,this.cfg.bubbleCfg)).length>=2&&ve(n)}return r},t.prototype.render=function(){this.group.addShape("path",{attrs:Object(v.a)({path:this.path},this.cfg.style),id:this.id,name:this.cfg.id}),this.group.toBack()},t.prototype.addMember=function(t){if(t){Object(h.x)(t)&&(t=this.graph.findById(t)),this.members.push(t);var e=this.nonMembers.indexOf(t);return e>-1&&this.nonMembers.splice(e,1),this.updateData(this.members,this.nonMembers),!0}},t.prototype.addNonMember=function(t){if(t){Object(h.x)(t)&&(t=this.graph.findById(t)),this.nonMembers.push(t);var e=this.members.indexOf(t);return e>-1&&this.members.splice(e,1),this.updateData(this.members,this.nonMembers),!0}},t.prototype.removeMember=function(t){if(t){Object(h.x)(t)&&(t=this.graph.findById(t));var e=this.members.indexOf(t);return e>-1&&(this.members.splice(e,1),this.updateData(this.members,this.nonMembers),!0)}},t.prototype.removeNonMember=function(t){if(t){Object(h.x)(t)&&(t=this.graph.findById(t));var e=this.nonMembers.indexOf(t);return e>-1&&(this.nonMembers.splice(e,1),this.updateData(this.members,this.nonMembers),!0)}},t.prototype.updateData=function(t,e){var n=this;this.group.findById(this.id).remove(),t&&(this.members=t.map((function(t){return Object(h.x)(t)?n.graph.findById(t):t}))),e&&(this.nonMembers=e.map((function(t){return Object(h.x)(t)?n.graph.findById(t):t}))),this.path=this.calcPath(this.members,this.nonMembers),this.render()},t.prototype.updateStyle=function(t){this.group.findById(this.id).attr(Object(v.a)({},t))},t.prototype.updateCfg=function(t){var e=this;this.cfg=Object(h.e)(this.cfg,t),this.id=this.cfg.id,this.group=this.cfg.group,t.members&&(this.members=this.cfg.members.map((function(t){return Object(h.x)(t)?e.graph.findById(t):t}))),t.nonMembers&&(this.nonMembers=this.cfg.nonMembers.map((function(t){return Object(h.x)(t)?e.graph.findById(t):t}))),this.setPadding(),this.setType(),this.path=this.calcPath(this.members,this.nonMembers),this.render()},t.prototype.contain=function(t){var e,n,r=this,i=(e=Object(h.x)(t)?this.graph.findById(t):t).getKeyShape();if("path"===e.get("type"))n=ge(i.attr("path"));else{var o=i.getCanvasBBox();n=[[o.minX,o.minY],[o.maxX,o.minY],[o.maxX,o.maxY],[o.minX,o.maxY]]}return n=n.map((function(t){var e=r.graph.getPointByCanvas(t[0],t[1]);return[e.x,e.y]})),Y(n,ge(this.path))},t.prototype.destroy=function(){this.group.remove(),this.cfg=null},t}(),Pe=m.a.transform,je=function(t){function e(e){var n=t.call(this)||this;return n.cfg=Object(h.e)(n.getDefaultCfg(),e),n.init(),n.animating=!1,n.destroyed=!1,n.cfg.enabledStack&&(n.undoStack=new b.Stack(n.cfg.maxStep),n.redoStack=new b.Stack(n.cfg.maxStep)),n}return Object(v.b)(e,t),e.prototype.init=function(){this.initCanvas();var t=new Ot(this),e=new dt(this),n=new se(this),r=new ce(this);this.set({viewController:t,modeController:e,itemController:n,stateController:r}),this.initLayoutController(),this.initEventController(),this.initGroups(),this.initPlugins()},e.prototype.initGroups=function(){var t=this.get("canvas"),e=this.get("canvas").get("el").id,n=t.addGroup({id:e+"-root",className:ht.rootContainerClassName});if(this.get("groupByTypes")){var r=n.addGroup({id:e+"-edge",className:ht.edgeContainerClassName}),i=n.addGroup({id:e+"-node",className:ht.nodeContainerClassName}),o=n.addGroup({id:e+"-combo",className:ht.comboContainerClassName});o.toBack(),this.set({nodeGroup:i,edgeGroup:r,comboGroup:o})}var a=n.addGroup({id:e+"-delegate",className:ht.delegateContainerClassName});this.set({delegateGroup:a}),this.set("group",n)},e.prototype.getDefaultCfg=function(){return{container:void 0,width:void 0,height:void 0,renderer:"canvas",modes:{},plugins:[],data:{},fitViewPadding:10,minZoom:.2,maxZoom:10,event:!0,groupByTypes:!0,directed:!1,autoPaint:!0,nodes:[],edges:[],combos:[],vedges:[],itemMap:{},linkCenter:!1,defaultNode:{},defaultEdge:{},nodeStateStyles:{},edgeStateStyles:{},states:{},animate:!1,animateCfg:{onFrame:void 0,duration:500,easing:"easeLinear"},callback:void 0,enabledStack:!1,maxStep:10,tooltips:[]}},e.prototype.set=function(t,e){return Object(h.w)(t)?this.cfg=Object(v.a)(Object(v.a)({},this.cfg),t):this.cfg[t]=e,this},e.prototype.get=function(t){return this.cfg[t]},e.prototype.getGroup=function(){return this.get("group")},e.prototype.getContainer=function(){return this.get("container")},e.prototype.getMinZoom=function(){return this.get("minZoom")},e.prototype.setMinZoom=function(t){return this.set("minZoom",t)},e.prototype.getMaxZoom=function(){return this.get("maxZoom")},e.prototype.setMaxZoom=function(t){return this.set("maxZoom",t)},e.prototype.getWidth=function(){return this.get("width")},e.prototype.getHeight=function(){return this.get("height")},e.prototype.clearItemStates=function(t,e){Object(h.x)(t)&&(t=this.findById(t));var n=this.get("itemController");e||(e=t.get("states")),n.clearItemStates(t,e),this.get("stateController").updateStates(t,e,!1)},e.prototype.node=function(t){"function"==typeof t&&this.set("nodeMapper",t)},e.prototype.edge=function(t){"function"==typeof t&&this.set("edgeMapper",t)},e.prototype.combo=function(t){"function"==typeof t&&this.set("comboMapper",t)},e.prototype.findById=function(t){return this.get("itemMap")[t]},e.prototype.find=function(t,e){var n,r=this.get(t+"s");return Object(h.f)(r,(function(t,r){if(e(t,r))return n=t})),n},e.prototype.findAll=function(t,e){var n=[];return Object(h.f)(this.get(t+"s"),(function(t,r){e(t,r)&&n.push(t)})),n},e.prototype.findAllByState=function(t,e){return this.findAll(t,(function(t){return t.hasState(e)}))},e.prototype.translate=function(t,e){var n=this.get("group"),r=Object(h.c)(n.getMatrix());r||(r=[1,0,0,0,1,0,0,0,1]),r=Pe(r,[["t",t,e]]),n.setMatrix(r),this.emit("viewportchange",{action:"translate",matrix:n.getMatrix()}),this.autoPaint()},e.prototype.moveTo=function(t,e){var n=this.get("group");N(n,{x:t,y:e}),this.emit("viewportchange",{action:"move",matrix:n.getMatrix()})},e.prototype.fitView=function(t){t&&this.set("fitViewPadding",t),this.get("viewController").fitView(),this.autoPaint()},e.prototype.fitCenter=function(){this.get("viewController").fitCenter(),this.autoPaint()},e.prototype.addBehaviors=function(t,e){return this.get("modeController").manipulateBehaviors(t,e,!0),this},e.prototype.removeBehaviors=function(t,e){return this.get("modeController").manipulateBehaviors(t,e,!1),this},e.prototype.updateBehavior=function(t,e,n){return this.get("modeController").updateBehavior(t,e,n),this},e.prototype.zoom=function(t,e){var n=this.get("group"),r=Object(h.c)(n.getMatrix()),i=this.get("minZoom"),o=this.get("maxZoom");r||(r=[1,0,0,0,1,0,0,0,1]),r=Pe(r,e?[["t",-e.x,-e.y],["s",t,t],["t",e.x,e.y]]:[["s",t,t]]),i&&r[0]<i||o&&r[0]>o||(n.setMatrix(r),this.emit("viewportchange",{action:"zoom",matrix:r}),this.autoPaint())},e.prototype.zoomTo=function(t,e){var n=t/this.getZoom();this.zoom(n,e)},e.prototype.focusItem=function(t,e,n){var r=this.get("viewController"),i=!1;e?i=!0:void 0===e&&(i=this.get("animate"));var o={};n?o=n:void 0===n&&(o=this.get("animateCfg")),r.focus(t,i,o),this.autoPaint()},e.prototype.autoPaint=function(){this.get("autoPaint")&&this.paint()},e.prototype.paint=function(){this.emit("beforepaint"),this.get("canvas").draw(),this.emit("afterpaint")},e.prototype.getPointByClient=function(t,e){return this.get("viewController").getPointByClient(t,e)},e.prototype.getClientByPoint=function(t,e){return this.get("viewController").getClientByPoint(t,e)},e.prototype.getPointByCanvas=function(t,e){return this.get("viewController").getPointByCanvas(t,e)},e.prototype.getCanvasByPoint=function(t,e){return this.get("viewController").getCanvasByPoint(t,e)},e.prototype.showItem=function(t,e){void 0===e&&(e=!0);var n=this.get("itemController").changeItemVisibility(t,!0);if(e&&this.get("enabledStack")){var r=n.getID(),i={},o={};switch(n.getType()){case"node":i.nodes=[{id:r,visible:!1}],o.nodes=[{id:r,visible:!0}];break;case"edge":i.nodes=[{id:r,visible:!1}],o.edges=[{id:r,visible:!0}];break;case"combo":i.nodes=[{id:r,visible:!1}],o.combos=[{id:r,visible:!0}]}this.pushStack("visible",{before:i,after:o})}},e.prototype.hideItem=function(t,e){void 0===e&&(e=!0);var n=this.get("itemController").changeItemVisibility(t,!1);if(e&&this.get("enabledStack")){var r=n.getID(),i={},o={};switch(n.getType()){case"node":i.nodes=[{id:r,visible:!0}],o.nodes=[{id:r,visible:!1}];break;case"edge":i.nodes=[{id:r,visible:!0}],o.edges=[{id:r,visible:!1}];break;case"combo":i.nodes=[{id:r,visible:!0}],o.combos=[{id:r,visible:!1}]}this.pushStack("visible",{before:i,after:o})}},e.prototype.refreshItem=function(t){this.get("itemController").refreshItem(t)},e.prototype.setAutoPaint=function(t){this.set("autoPaint",t),this.get("canvas").set("autoDraw",t)},e.prototype.remove=function(t,e){void 0===e&&(e=!0),this.removeItem(t,e)},e.prototype.removeItem=function(t,e){void 0===e&&(e=!0);var n=t;if(Object(h.x)(t)&&(n=this.findById(t)),!n&&Object(h.x)(t))console.warn("The item to be removed does not exist!");else if(n){var r="";if(n.getType&&(r=n.getType()),e&&this.get("enabledStack")){var i=Object(v.a)(Object(v.a)({},n.getModel()),{itemType:r}),o={};switch(r){case"node":o.nodes=[i],o.edges=[];for(var a=n.getEdges(),s=a.length-1;s>=0;s--)o.edges.push(Object(v.a)(Object(v.a)({},a[s].getModel()),{itemType:"edge"}));break;case"edge":o.edges=[i];break;case"combo":o.combos=[i]}this.pushStack("delete",{before:o,after:{}})}if("node"===r)n.getModel().comboId&&this.updateComboTree(n);if(this.get("itemController").removeItem(n),"combo"===r){var u=Ut(this.get("comboTrees"));this.set("comboTrees",u)}}},e.prototype.addItem=function(t,e,n,r){void 0===n&&(n=!0),void 0===r&&(r=!0);var i=this.get("comboSorted");this.set("comboSorted",i&&!r);var o=this.get("itemController");if(!e.id||!this.findById(e.id)){var a,s=this.get("comboTrees");if(s||(s=[]),"combo"===t){var u=this.get("itemMap"),c=!1;if(s.forEach((function(n){c||Lt(n,(function(n){if(e.parentId===n.id){c=!0;var r=Object(v.a)({id:e.id,depth:n.depth+2},e);n.children?n.children.push(r):n.children=[r],e.depth=r.depth,a=o.addItem(t,e)}var i=u[n.id];return c&&i&&i.getType&&"combo"===i.getType()&&o.updateCombo(i,n.children),!0}))})),!c){var f=Object(v.a)({id:e.id,depth:0},e);e.depth=f.depth,s.push(f),a=o.addItem(t,e)}this.set("comboTrees",s)}else if("node"===t&&Object(h.x)(e.comboId)&&s){var l;if((l=this.findById(e.comboId))&&l.getType&&"combo"!==l.getType())return void console.warn("\'"+e.comboId+"\' is a not id of a combo in the graph, the node will be added without combo.");a=o.addItem(t,e);var d=this.get("itemMap"),p=!1,g=!1;(s||[]).forEach((function(t){g||p||Lt(t,(function(t){if(t.id===e.id)return g=!0,!1;if(e.comboId===t.id&&!g){p=!0;var n=Object(h.c)(e);n.itemType="node",t.children?t.children.push(n):t.children=[n],e.depth=t.depth+1}return p&&d[t.id].getType&&"combo"===d[t.id].getType()&&o.updateCombo(d[t.id],t.children),!0}))}))}else a=o.addItem(t,e);if("node"===t&&e.comboId||"combo"===t&&e.parentId)(l=this.findById(e.comboId||e.parentId))&&l.addChild(a);var y=this.get("combos");if(y&&y.length>0&&this.sortCombos(),this.autoPaint(),n&&this.get("enabledStack")){var m=Object(v.a)(Object(v.a)({},a.getModel()),{itemType:t}),b={};switch(t){case"node":b.nodes=[m];break;case"edge":b.edges=[m];break;case"combo":b.combos=[m]}this.pushStack("add",{before:{},after:b})}return a}console.warn("This item exists already. Be sure the id %c"+e.id+"%c is unique.","font-size: 20px; color: red;","")},e.prototype.add=function(t,e,n,r){return void 0===n&&(n=!0),void 0===r&&(r=!0),this.addItem(t,e,n,r)},e.prototype.updateItem=function(t,e,n){var r=this;void 0===n&&(n=!0);var i,o=this.get("itemController");i=Object(h.x)(t)?this.findById(t):t;var a=Object(h.c)(i.getModel()),s="";i.getType&&(s=i.getType());var u=Object(v.d)(i.getStates());if("combo"===s&&Object(h.f)(u,(function(t){return r.setItemState(i,t,!1)})),o.updateItem(i,e),"combo"===s&&Object(h.f)(u,(function(t){return r.setItemState(i,t,!0)})),n&&this.get("enabledStack")){var c={nodes:[],edges:[],combos:[]},f={nodes:[],edges:[],combos:[]},l=Object(v.a)({id:a.id},e);switch(s){case"node":c.nodes.push(a),f.nodes.push(l);break;case"edge":c.edges.push(a),f.edges.push(l);break;case"combo":c.combos.push(a),f.combos.push(l)}"node"===s&&c.nodes.push(a),this.pushStack("update",{before:c,after:f})}},e.prototype.update=function(t,e,n){void 0===n&&(n=!0),this.updateItem(t,e,n)},e.prototype.setItemState=function(t,e,n){Object(h.x)(t)&&(t=this.findById(t)),this.get("itemController").setItemState(t,e,n);var r=this.get("stateController");Object(h.x)(n)?r.updateState(t,e+":"+n,!0):r.updateState(t,e,n)},e.prototype.priorityState=function(t,e){this.get("itemController").priorityState(t,e)},e.prototype.data=function(t){this.set("data",t)},e.prototype.render=function(){var t=this;this.set("comboSorted",!1);var e=this.get("data");if(this.get("enabledStack")&&this.clearStack(),!e)throw new Error("data must be defined first");var n=e.nodes,r=void 0===n?[]:n,i=e.edges,o=void 0===i?[]:i,a=e.combos,s=void 0===a?[]:a;if(this.clear(),this.emit("beforerender"),Object(h.f)(r,(function(e){t.add("node",e,!1,!1)})),s&&0!==s.length){var u=Ft(s,r);this.set("comboTrees",u),t.addCombos(s)}Object(h.f)(o,(function(e){t.add("edge",e,!1,!1)}));var c=t.get("animate");(t.get("fitView")||t.get("fitCenter"))&&t.set("animate",!1);var f=t.get("layoutController");if(f){if(f.layout((function(){t.get("fitView")?t.fitView():t.get("fitCenter")&&t.fitCenter();t.autoPaint(),t.emit("afterrender"),(t.get("fitView")||t.get("fitCenter"))&&t.set("animate",c)})),this.destroyed)return}else t.get("fitView")&&t.fitView(),t.get("fitCenter")&&t.fitCenter(),t.emit("afterrender"),t.set("animate",c);this.get("groupByTypes")||(s&&0!==s.length?this.sortCombos():e.nodes&&e.edges&&e.nodes.length<e.edges.length?this.getNodes().forEach((function(t){t.toFront()})):this.getEdges().forEach((function(t){t.toBack()})));this.get("enabledStack")&&this.pushStack("render")},e.prototype.read=function(t){this.data(t),this.render()},e.prototype.diffItems=function(t,e,n){var r,i=this,o=this.get("itemMap");Object(h.f)(n,(function(n){if(r=o[n.id]){if(i.get("animate")&&"node"===t){var a=r.getContainer().getMatrix();a||(a=[1,0,0,0,1,0,0,0,1]),r.set("originAttrs",{x:a[6],y:a[7]})}i.updateItem(r,n,!1)}else r=i.addItem(t,n,!1);r&&e[t+"s"].push(r)}))},e.prototype.changeData=function(t,e){void 0===e&&(e=!0);var n=this;if(!t)return this;e&&this.get("enabledStack")&&this.pushStack("changedata",{before:n.save(),after:t}),this.set("comboSorted",!1),this.removeHulls(),this.getNodes().map((function(t){return n.clearItemStates(t)})),this.getEdges().map((function(t){return n.clearItemStates(t)}));var r=this.get("canvas"),i=r.get("localRefresh");r.set("localRefresh",!1),n.get("data")||(n.data(t),n.render());var o=this.get("itemMap"),a={nodes:[],edges:[]},s=t.combos;if(s){var u=Ft(s,t.nodes);this.set("comboTrees",u)}this.diffItems("node",a,t.nodes),Object(h.f)(o,(function(t,e){o[e].getModel().depth=0,t.getType&&"edge"===t.getType()||(t.getType&&"combo"===t.getType()?(delete o[e],t.destroy()):a.nodes.indexOf(t)<0&&(delete o[e],n.remove(t,!1)))}));for(var c=this.getCombos(),f=c.length-1;f>=0;f--)c[f].destroyed&&c.splice(f,1);s&&(n.addCombos(s),this.get("groupByTypes")||this.sortCombos()),this.diffItems("edge",a,t.edges),Object(h.f)(o,(function(t,e){(!t.getType||"node"!==t.getType()&&"combo"!==t.getType())&&a.edges.indexOf(t)<0&&(delete o[e],n.remove(t,!1))})),this.set({nodes:a.nodes,edges:a.edges});var l=this.get("layoutController");return l&&(l.changeData(),n.get("animate")&&!l.getLayoutType()?n.positionsAnimate():n.autoPaint()),setTimeout((function(){r.set("localRefresh",i)}),16),this},e.prototype.addCombos=function(t){var e=this.get("comboTrees");this.get("itemController").addCombos(e,t)},e.prototype.createCombo=function(t,e){var n=this;this.set("comboSorted",!1);var r,i="";if(t){if(Object(h.x)(t))i=t,r={id:t};else{if(!(i=t.id))return void console.warn("Create combo failed. Please assign a unique string id for the adding combo.");r=t}var o=e.map((function(t){var e=n.findById(t),r="";e.getType&&(r=e.getType());var o={id:e.getID(),itemType:r};return"combo"===r?o.parentId=i:"node"===r&&(o.comboId=i),o}));r.children=o,this.addItem("combo",r,!1),this.set("comboSorted",!1);var a=this.get("comboTrees");(a||[]).forEach((function(t){Lt(t,(function(t){return t.id!==i||(t.itemType="combo",t.children=o,!1)}))})),a&&this.sortCombos()}},e.prototype.uncombo=function(t){var e=this,n=t;if(Object(h.x)(t)&&(n=this.findById(t)),!n||n.getType&&"combo"!==n.getType())console.warn("The item is not a combo!");else{var r=n.getModel().parentId,i=this.get("comboTrees");i||(i=[]);var o,a=this.get("itemMap"),s=n.get("id"),u=[],c=this.get("combos"),f=this.findById(r);if(i.forEach((function(i){o||Lt(i,(function(i){if(i.id===s){o=i,n.getEdges().forEach((function(t){e.removeItem(t,!1)}));var l=c.indexOf(t);c.splice(l,1),delete a[s],n.destroy()}return!r||!o||i.id!==r||(f.removeCombo(n),-1!==(l=(u=i.children).indexOf(o))&&u.splice(l,1),o.children.forEach((function(t){var n=e.findById(t.id),i=n.getModel();n.getType&&"combo"===n.getType()?(t.parentId=r,delete t.comboId,i.parentId=r,delete i.comboId):n.getType&&"node"===n.getType()&&(t.comboId=r,i.comboId=r),f.addChild(n),u.push(t)})),!1)}))})),!r&&o){var l=i.indexOf(o);i.splice(l,1),o.children.forEach((function(t){t.parentId=void 0,e.findById(t.id).getModel().parentId=void 0,"node"!==t.itemType&&i.push(t)}))}}},e.prototype.updateCombos=function(){var t=this,e=this.get("comboTrees"),n=this.get("itemController"),r=this.get("itemMap");(e||[]).forEach((function(e){Lt(e,(function(e){if(!e)return!0;var i=r[e.id];if(i&&i.getType&&"combo"===i.getType()){var o=Object(v.d)(i.getStates());Object(h.f)(o,(function(e){return t.setItemState(i,e,!1)})),n.updateCombo(i,e.children),Object(h.f)(o,(function(e){return t.setItemState(i,e,!0)}))}return!0}))})),this.sortCombos()},e.prototype.updateCombo=function(t){var e,n=this,r=t;if(Object(h.x)(t)&&(r=this.findById(t)),!r||r.getType&&"combo"!==r.getType())console.warn("The item to be updated is not a combo!");else{e=r.get("id");var i=this.get("comboTrees"),o=this.get("itemController"),a=this.get("itemMap");(i||[]).forEach((function(t){Lt(t,(function(t){if(!t)return!0;var r=a[t.id];if(e===t.id&&r&&r.getType&&"combo"===r.getType()){var i=Object(v.d)(r.getStates());Object(h.f)(i,(function(t){r.getStateStyle(t)&&n.setItemState(r,t,!1)})),o.updateCombo(r,t.children),Object(h.f)(i,(function(t){r.getStateStyle(t)&&n.setItemState(r,t,!0)})),e&&(e=t.parentId)}return!0}))}))}},e.prototype.updateComboTree=function(t,e,n){void 0===n&&(n=!0);var r;this.set("comboSorted",!1);var i,o=(r=Object(h.x)(t)?this.findById(t):t).getModel(),a=o.comboId||o.parentId,s="";if(r.getType&&(s=r.getType()),e&&"combo"===s){var u,c=this.get("comboTrees"),f=!0;if((c||[]).forEach((function(t){u||Rt(t,(function(t){if(!u)return t.id===r.getID()&&(u=t),!0}))})),Rt(u,(function(t){return t.id!==e||(f=!1,!1)})),!f)return void console.warn("Failed to update the combo tree! The parentId points to a descendant of the combo!")}if(n&&this.get("enabledStack")){var l={},d={};"combo"===s?(l.combos=[{id:o.id,parentId:o.parentId}],d.combos=[{id:o.id,parentId:e}]):"node"===s&&(l.nodes=[{id:o.id,parentId:o.comboId}],d.nodes=[{id:o.id,parentId:e}]),this.pushStack("updateComboTree",{before:l,after:d})}if(o.parentId||o.comboId){var p=this.findById(o.parentId||o.comboId);p&&p.removeChild(r)}("combo"===s?o.parentId=e:"node"===s&&(o.comboId=e),e)&&((i=this.findById(e))&&i.addChild(r));a&&((i=this.findById(a))&&i.removeChild(r));var g=Ut(this.get("comboTrees"),o.id,e);this.set("comboTrees",g),this.updateCombos()},e.prototype.save=function(){var t=[],e=[],n=[];return Object(h.f)(this.get("nodes"),(function(e){t.push(e.getModel())})),Object(h.f)(this.get("edges"),(function(t){e.push(t.getModel())})),Object(h.f)(this.get("combos"),(function(t){n.push(t.getModel())})),{nodes:t,edges:e,combos:n}},e.prototype.changeSize=function(t,e){return this.get("viewController").changeSize(t,e),this},e.prototype.refresh=function(){if(this.emit("beforegraphrefresh"),this.get("animate"))this.positionsAnimate();else{var t=this.get("nodes"),e=this.get("edges"),n=this.get("edges");Object(h.f)(t,(function(t){t.refresh()})),Object(h.f)(e,(function(t){t.refresh()})),Object(h.f)(n,(function(t){t.refresh()}))}this.emit("aftergraphrefresh"),this.autoPaint()},e.prototype.getNodes=function(){return this.get("nodes")},e.prototype.getEdges=function(){return this.get("edges")},e.prototype.getCombos=function(){return this.get("combos")},e.prototype.getComboChildren=function(t){if(Object(h.x)(t)&&(t=this.findById(t)),t&&(!t.getType||"combo"===t.getType()))return t.getChildren();console.warn("The combo does not exist!")},e.prototype.positionsAnimate=function(){var t=this;t.emit("beforeanimate");var e=t.get("animateCfg"),n=e.onFrame,r=t.getNodes(),i=r.map((function(t){var e=t.getModel();return{id:e.id,x:e.x,y:e.y}}));t.isAnimating()&&t.stopAnimate(),t.get("canvas").animate((function(e){Object(h.f)(i,(function(r){var i=t.findById(r.id);if(i&&!i.destroyed){var o=i.get("originAttrs"),a=i.get("model");if(!o){var s=i.getContainer().getMatrix();s||(s=[1,0,0,0,1,0,0,0,1]),o={x:s[6],y:s[7]},i.set("originAttrs",o)}if(n){var u=n(i,e,r,o);i.set("model",Object.assign(a,u))}else a.x=o.x+(r.x-o.x)*e,a.y=o.y+(r.y-o.y)*e}})),t.refreshPositions()}),{duration:e.duration,easing:e.easing,callback:function(){Object(h.f)(r,(function(t){t.set("originAttrs",null)})),e.callback&&e.callback(),t.emit("afteranimate"),t.animating=!1}})},e.prototype.refreshPositions=function(){this.emit("beforegraphrefreshposition");var t,e=this.get("nodes"),n=this.get("edges"),r=this.get("vedges"),i=this.get("combos"),o={};Object(h.f)(e,(function(e){t=e.getModel();var n=e.get("originAttrs");n&&t.x===n.x&&t.y===n.y||(e.updatePosition({x:t.x,y:t.y}),o[t.id]=!0,t.comboId&&(o[t.comboId]=!0))})),i&&0!==i.length&&this.updateCombos(),Object(h.f)(n,(function(t){var e=t.getSource().getModel(),n=t.getTarget().getModel();(o[e.id]||o[n.id]||t.getModel().isComboEdge)&&t.refresh()})),Object(h.f)(r,(function(t){t.refresh()})),this.emit("aftergraphrefreshposition"),this.autoPaint()},e.prototype.stopAnimate=function(){this.get("canvas").stopAnimate()},e.prototype.isAnimating=function(){return this.animating},e.prototype.getZoom=function(){var t=this.get("group").getMatrix();return t?t[0]:1},e.prototype.getCurrentMode=function(){return this.get("modeController").getMode()},e.prototype.setMode=function(t){return this.get("modeController").setMode(t),this},e.prototype.clear=function(){return this.get("canvas").clear(),this.initGroups(),this.set({itemMap:{},nodes:[],edges:[],groups:[],combos:[],comboTrees:[]}),this.emit("afterrender"),this},e.prototype.updateLayout=function(t){var e,n=this.get("layoutController");Object(h.x)(t)?t={type:e=t}:e=t.type;var r=this.get("layout"),i=r?r.type:void 0;if(e&&i!==e||void 0!==t.gpuEnabled&&t.gpuEnabled!==r.gpuEnabled)e||(e=i),this.set("layout",t),n.changeLayout(e);else{var o={};Object.assign(o,r,t),o.type=i||"random",this.set("layout",o),n.updateLayoutCfg(o)}},e.prototype.destroyLayout=function(){this.get("layoutController").destroyLayout()},e.prototype.layout=function(){var t=this.get("layoutController"),e=this.get("layout");e&&t&&(e.workerEnabled?t.layout():t.layoutMethod?t.relayout(!0):t.layout())},e.prototype.collapseCombo=function(t){var e=this;if(Object(h.x)(t)&&(t=this.findById(t)),t){this.emit("beforecollapseexpandcombo",{action:"expand",item:t});var n=t.getModel();this.get("itemController").collapseCombo(t),n.collapsed=!0;var r=this.getEdges().concat(this.get("vedges")),i=[],o=[],a=this.get("comboTrees"),s=!1,u={};(a||[]).forEach((function(t){u[t.id]=t})),(a||[]).forEach((function(t){s||Rt(t,(function(t){if(s&&u[t.id])return!1;if(n.parentId===t.id?(u={},t.children.forEach((function(t){u[t.id]=t}))):n.id===t.id&&(s=!0),s){var r=e.findById(t.id);r&&r.getType&&"combo"===r.getType()&&(i=i.concat(r.getNodes()),o=o.concat(r.getCombos()))}return!0}))}));var c={},f=[];r.forEach((function(t){if(!t.isVisible()||t.getModel().isVEdge){var r=t.getSource(),a=t.getTarget();if((i.includes(r)||o.includes(r))&&!i.includes(a)&&!o.includes(a)||r.getModel().id===n.id){if((h=t.getModel()).isVEdge)return void e.removeItem(t,!1);for(var s=a.getModel();!a.isVisible();){if(!(a=e.findById(s.parentId||s.comboId))||!s.parentId&&!s.comboId)return;s=a.getModel()}var u=s.id;if(c[n.id+"-"+u])return void(c[n.id+"-"+u]+=h.size||1);var l=e.addItem("vedge",{source:n.id,target:u,isVEdge:!0},!1);c[n.id+"-"+u]=h.size||1,f.push(l)}else if(!i.includes(r)&&!o.includes(r)&&(i.includes(a)||o.includes(a))||a.getModel().id===n.id){var h;if((h=t.getModel()).isVEdge)return void e.removeItem(t,!1);for(var d=r.getModel();!r.isVisible();){if(!(r=e.findById(d.parentId||d.comboId))||!d.parentId&&!d.comboId)return;d=r.getModel()}var p=d.id;if(c[p+"-"+n.id])return void(c[p+"-"+n.id]+=h.size||1);l=e.addItem("vedge",{target:n.id,source:p,isVEdge:!0},!1);c[p+"-"+n.id]=h.size||1,f.push(l)}}})),f.forEach((function(t){var n=t.getModel();e.updateItem(t,{size:c[n.source+"-"+n.target]},!1)})),this.emit("aftercollapseexpandcombo",{action:"collapse",item:t})}else console.warn("The combo to be collapsed does not exist!")},e.prototype.expandCombo=function(t){var e=this;if(Object(h.x)(t)&&(t=this.findById(t)),!t||t.getType&&"combo"!==t.getType())console.warn("The combo to be collapsed does not exist!");else{this.emit("beforecollapseexpandcombo",{action:"expand",item:t});var n=t.getModel();this.get("itemController").expandCombo(t),n.collapsed=!1;var r=this.getEdges().concat(this.get("vedges")),i=[],o=[],a=this.get("comboTrees"),s=!1,u={};(a||[]).forEach((function(t){u[t.id]=t})),(a||[]).forEach((function(t){s||Rt(t,(function(t){if(s&&u[t.id])return!1;if(n.parentId===t.id?(u={},t.children.forEach((function(t){u[t.id]=t}))):n.id===t.id&&(s=!0),s){var r=e.findById(t.id);r&&r.getType&&"combo"===r.getType()&&(i=i.concat(r.getNodes()),o=o.concat(r.getCombos()))}return!0}))}));var c={},f={};r.forEach((function(t){if(!t.isVisible()||t.getModel().isVEdge){var r=t.getSource(),a=t.getTarget(),s=r.get("id"),u=a.get("id");if((i.includes(r)||o.includes(r))&&!i.includes(a)&&!o.includes(a)||s===n.id){if(t.getModel().isVEdge)return void e.removeItem(t,!1);for(var l=a.getModel();!a.isVisible();){if(!(a=e.findById(l.comboId||l.parentId))||!l.parentId&&!l.comboId)return;l=a.getModel()}u=l.id;for(var h=r.getModel();!r.isVisible();){if(!(r=e.findById(h.comboId||h.parentId))||!h.parentId&&!h.comboId)return;if(h.comboId===n.id||h.parentId===n.id)break;h=r.getModel()}if(s=h.id,u){if(c[p=s+"-"+u])return c[p]+=t.getModel().size||1,void e.updateItem(f[p],{size:c[p]},!1);var d=e.addItem("vedge",{source:s,target:u,isVEdge:!0},!1);c[p]=t.getModel().size||1,f[p]=d}}else if(!i.includes(r)&&!o.includes(r)&&(i.includes(a)||o.includes(a))||u===n.id){if(t.getModel().isVEdge)return void e.removeItem(t,!1);for(h=r.getModel();!r.isVisible();){if(!(r=e.findById(h.comboId||h.parentId))||!h.parentId&&!h.comboId)return;h=r.getModel()}s=h.id;for(l=a.getModel();!a.isVisible();){if(!(a=e.findById(l.comboId||l.parentId))||!l.parentId&&!l.comboId)return;if(l.comboId===n.id||l.parentId===n.id)break;l=a.getModel()}if(u=l.id,s){var p;if(c[p=s+"-"+u])return c[p]+=t.getModel().size||1,void e.updateItem(f[p],{size:c[p]},!1);d=e.addItem("vedge",{target:u,source:s,isVEdge:!0},!1);c[p]=t.getModel().size||1,f[p]=d}}else(i.includes(r)||o.includes(r))&&(i.includes(a)||o.includes(a))&&r.isVisible()&&a.isVisible()&&t.show()}})),this.emit("aftercollapseexpandcombo",{action:"expand",item:t})}},e.prototype.collapseExpandCombo=function(t){if(Object(h.x)(t)&&(t=this.findById(t)),!t.getType||"combo"===t.getType()){for(var e=t.getModel(),n=this.findById(e.parentId);n;){var r=n.getModel();if(r.collapsed)return console.warn("Fail to expand the combo since it\'s ancestor combo is collapsed."),void(n=void 0);n=this.findById(r.parentId)}e.collapsed?this.expandCombo(t):this.collapseCombo(t),this.updateCombo(t)}},e.prototype.sortCombos=function(){var t=this;if(!this.get("comboSorted")){this.set("comboSorted",!0);var e=[],n={};(this.get("comboTrees")||[]).forEach((function(t){Rt(t,(function(t){return e[t.depth]?e[t.depth].push(t.id):e[t.depth]=[t.id],n[t.id]=t.depth,!0}))})),(this.getEdges().concat(this.get("vedges"))||[]).forEach((function(t){var r=t.getModel(),i=n[r.source]||0,o=n[r.target]||0,a=Math.max(i,o);e[a]?e[a].push(r.id):e[a]=[r.id]})),e.forEach((function(e){if(e&&e.length)for(var n=e.length-1;n>=0;n--){var r=t.findById(e[n]);r&&r.toFront()}}))}},e.prototype.getNeighbors=function(t,e){var n=t;return Object(h.x)(t)&&(n=this.findById(t)),n.getNeighbors(e)},e.prototype.getNodeDegree=function(t,e){void 0===e&&(e=void 0);var n=t;Object(h.x)(t)&&(n=this.findById(t));var r=this.get("degrees");r||(r=Object(b.getDegree)(this.get("data"))),this.set("degees",r);var i,o=r[n.getID()];switch(e){case"in":i=o.inDegree;break;case"out":i=o.outDegree;break;case"all":i=o;break;default:i=o.degree}return i},e.prototype.getUndoStack=function(){return this.undoStack},e.prototype.getRedoStack=function(){return this.redoStack},e.prototype.getStackData=function(){return this.get("enabledStack")?{undoStack:this.undoStack.toArray(),redoStack:this.redoStack.toArray()}:null},e.prototype.clearStack=function(){this.get("enabledStack")&&(this.undoStack.clear(),this.redoStack.clear())},e.prototype.pushStack=function(t,e,n){if(void 0===t&&(t="update"),void 0===n&&(n="undo"),this.get("enabledStack")){var r=e?Object(h.c)(e):{before:{},after:Object(h.c)(this.save())};"redo"===n?this.redoStack.push({action:t,data:r}):this.undoStack.push({action:t,data:r}),this.emit("stackchange",{undoStack:this.undoStack,redoStack:this.redoStack})}else console.warn("请先å¯ç”¨ undo & redo 功能,在实例化 Graph 时候é…ç½® enabledStack: true !")},e.prototype.getAdjMatrix=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=this.get("directed"));var n=this.get("adjMatrix");return n&&t||(n=Object(b.getAdjMatrix)(this.save(),e),this.set("adjMatrix",n)),n},e.prototype.getShortestPathMatrix=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=this.get("directed"));var n=this.get("adjMatrix"),r=this.get("shortestPathMatrix");return n&&t||(n=Object(b.getAdjMatrix)(this.save(),e),this.set("adjMatrix",n)),r&&t||(r=Object(b.floydWarshall)(this.save(),e),this.set("shortestPathMatrix",r)),r},e.prototype.on=function(e,n,r){return t.prototype.on.call(this,e,n,r)},e.prototype.destroy=function(){this.clear(),this.clearStack(),this.get("itemController").destroy(),this.get("modeController").destroy(),this.get("viewController").destroy(),this.get("stateController").destroy(),this.get("canvas").destroy(),this.cfg=null,this.destroyed=!0,this.redoStack=null,this.undoStack=null},e.prototype.createHull=function(t){if(t.members&&!(t.members.length<1)){var e=this.get("hullGroup"),n=this.get("hullMap");if(n||(n={},this.set("hullMap",n)),e||((e=this.get("group").addGroup({id:"hullGroup"})).toBack(),this.set("hullGroup",e)),n[t.id])return console.warn("Existed hull id."),n[t.id];var r=e.addGroup({id:t.id+"-container"}),i=new Ie(this,Object(v.a)(Object(v.a)({},t),{group:r}));return n[i.id]=i,i}console.warn("Create hull failed! The members is empty.")},e.prototype.getHulls=function(){return this.get("hullMap")},e.prototype.getHullById=function(t){return this.get("hullMap")[t]},e.prototype.removeHull=function(t){var e;e=Object(h.x)(t)?this.getHullById(t):t,delete this.get("hullMap")[e.id],e.destroy()},e.prototype.removeHulls=function(){var t=this.getHulls();t&&Object.keys(t).length&&(t.forEach((function(t){t.destroy()})),this.set("hullMap",{}))},e}(y.a);function De(t){return(De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Ne=m.a.transform,Re=["startArrow","endArrow"],Le={lineWidth:1,stroke:void 0,fill:void 0,lineAppendWidth:1,opacity:void 0,strokeOpacity:void 0,fillOpacity:void 0,x:0,y:0,r:10,width:20,height:20,shadowColor:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0},Be={edge:{lineWidth:1,stroke:"#000",lineDash:void 0,startArrow:!1,endArrow:!1,opacity:void 0,strokeOpacity:void 0,fillOpacity:void 0,shadowColor:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0},node:Le,combo:Le},Ge={options:{},itemType:"",type:"",getCustomConfig:function(t){return{}},getOptions:function(t){return Object(h.e)({labelCfg:{style:{fontFamily:"undefined"!=typeof window&&window.getComputedStyle(document.body,null).getPropertyValue("font-family")||"Arial, sans-serif"}},descriptionCfg:{style:{fontFamily:"undefined"!=typeof window&&window.getComputedStyle(document.body,null).getPropertyValue("font-family")||"Arial, sans-serif"}}},this.options,this.getCustomConfig(t)||{},t)},draw:function(t,e){var n=this.drawShape(t,e);(n.set("className",this.itemType+"-shape"),t.label)&&this.drawLabel(t,e).set("className",this.itemType+"-label");return n},afterDraw:function(t,e,n){},drawShape:function(t,e){return null},drawLabel:function(t,e){var n=this.getOptions(t).labelCfg||{},r=this.getLabelStyle(t,n,e),i=r.rotate;delete r.rotate;var o=e.addShape("text",{attrs:r,draggable:!0,className:"text-shape",name:"text-shape"});if(i){var a=o.getBBox(),s=o.getMatrix();if(s||(s=[1,0,0,0,1,0,0,0,1]),r.rotateCenter)switch(r.rotateCenter){case"center":s=Ne(s,[["t",-a.width/2,-a.height/2],["r",i],["t",a.width/2,a.height/2]]);break;case"lefttop":s=Ne(s,[["t",-r.x,-r.y],["r",i],["t",r.x,r.y]]);break;case"leftcenter":s=Ne(s,[["t",-r.x,-r.y-a.height/2],["r",i],["t",r.x,r.y+a.height/2]]);break;default:s=Ne(s,[["t",-a.width/2,-a.height/2],["r",i],["t",a.width/2,a.height/2]])}else s=Ne(s,[["t",-r.x,-r.y-a.height/2],["r",i],["t",r.x,r.y+a.height/2]]);o.setMatrix(s)}if(r.background){var u=this.drawLabelBg(t,e,o),c=this.itemType+"-label-bg";u.set("classname",c),o.toFront()}return o},drawLabelBg:function(t,e,n){var r=this.options.labelCfg,i=Object(h.A)({},r,t.labelCfg),o=this.getLabelBgStyleByPosition(n,t,i,e);return e.addShape("rect",{name:"text-bg-shape",attrs:o})},getLabelStyleByPosition:function(t,e,n){return{text:t.label}},getLabelBgStyleByPosition:function(t,e,n,r){return{}},getLabelStyle:function(t,e,n){var r=this.getLabelStyleByPosition(t,e,n),i=this.itemType+"Label",o=ht[i]?ht[i].style:null;return Object(v.a)(Object(v.a)(Object(v.a)({},o),r),e.style)},getShapeStyle:function(t){return t.style},update:function(t,e){this.updateShapeStyle(t,e),this.updateLabel(t,e)},updateShapeStyle:function(t,e){var n=e.getContainer(),r=e.getKeyShape(),i=Object(h.A)({},r.attr(),t.style),o=function(t){var e,o=i[t];if(Object(h.w)(o)){var a=n.find((function(e){return e.get("name")===t}));a&&a.attr(o)}else r.attr(((e={})[t]=o,e))};for(var a in i)o(a)},updateLabel:function(t,e){var n=e.getContainer(),r=this.getOptions({}).labelCfg,i=this.itemType+"-label",o=n.find((function(t){return t.get("className")===i})),a=this.itemType+"-label-bg",s=n.find((function(t){return t.get("classname")===a}));if(t.label||""===t.label)if(o){var u={};e.getModel&&(u=e.getModel().labelCfg);var c=Object(h.e)({},r,u,t.labelCfg),f=this.getLabelStyleByPosition(t,c,n),l=t.labelCfg?t.labelCfg.style:void 0,d=c.style&&c.style.background,p=Object(v.a)(Object(v.a)(Object(v.a)({},o.attr()),f),l),g=p.rotate;if(delete p.rotate,g){var y=[1,0,0,0,1,0,0,0,1];y=Ne(y,[["t",-p.x,-p.y],["r",g],["t",p.x,p.y]]),o.resetMatrix(),o.attr(Object(v.a)(Object(v.a)({},p),{matrix:y}))}else o.resetMatrix(),o.attr(p);if(s)if(p.background){var m=this.getLabelBgStyleByPosition(o,t,c,n),b=Object(v.a)(Object(v.a)({},m),d);if(s.resetMatrix(),g){var x=[1,0,0,0,1,0,0,0,1];x=Ne(x,[["t",-b.x,-b.y],["r",g],["t",b.x,b.y]]),b.matrix=x}s.attr(b)}else n.removeChild(s);else p.background&&((s=this.drawLabelBg(t,n,o)).set("classname",a),o.toFront())}else{this.drawLabel(t,n).set("className",i)}},afterUpdate:function(t,e){},setState:function(t,e,n){var r,i,o=n.get("keyShape");if(o){var a=n.getType(),s=Object(h.n)(e)?t:t+":"+e,u=this.getStateStyle(s,n),c=n.getStateStyle(s);if(c||u){var f=Object(h.A)({},c||u),l=n.getContainer(),d={x:1,y:1,cx:1,cy:1};if("combo"===a&&(d.r=1,d.width=1,d.height=1),e){var p=function(t){var e,n=f[t];if(Object(h.w)(n)&&!Re.includes(t)){var r=l.find((function(e){return e.get("name")===t}));r&&r.attr(n)}else o.attr(((e={})[t]=n,e))};for(var g in f)p(g)}else{var v=Wt(n.getCurrentStatesStyle()),y=n.getModel(),m=Object(h.A)({},y.style,Wt(n.getOriginStyle())),b=o.get("name"),x=o.attr(),w={};Object.keys(x).forEach((function(t){if("img"!==t){var e=x[t];e&&"object"===De(e)?w[t]=Object(h.c)(e):w[t]=e}}));var S={},E=function(t){var e=f[t];if(Object(h.w)(e)&&!Re.includes(t)){var n=l.find((function(e){return e.get("name")===t}));if(n){var r=Object(h.c)(n.attr());Object(h.f)(e,(function(e,i){if(t===b&&w[i]&&!d[i]){delete w[i];var s=m[t][i]||Be[a][i];o.attr(i,s)}else if(r[i]||0===r[i]){delete r[i];var u=m[t][i]||Be[a][i];n.attr(i,u)}})),S[t]=r}}else if(w[t]&&!d[t]){delete w[t];var i=m[t]||(m[b]?m[b][t]:void 0)||Be[a][t];o.attr(t,i)}};for(var _ in f)E(_);for(var g in b?S[b]=w:Object(h.A)(S,w),v)if(!d[g]){var O=v[g];Object(h.w)(O)&&!Re.includes(g)||(b?(Object(h.A)(m[b],((i={})[g]=O,i)),delete m[g]):Object(h.A)(m,((r={})[g]=O,r)),delete v[g])}var k={};Object(h.e)(k,m,S,v);var M=!1,A=function(t){var e,n,r=k[t];if(Object(h.w)(r)&&!Re.includes(t)){var i=l.find((function(e){return e.get("name")===t}));i&&(t===b&&("combo"===a&&(delete r.r,delete r.width,delete r.height),M=!0),i.attr(r))}else if(!M){var s=r||Be[a][t];"combo"===a?b||o.attr(((e={})[t]=s,e)):o.attr(((n={})[t]=s,n))}};for(var T in k)A(T)}}}},getStateStyle:function(t,e){var n=e.getModel(),r=e.getType(),i=this.getOptions(n),o=i.stateStyles,a=i.style,s=void 0===a?{}:a,u=n.stateStyles?n.stateStyles[t]:o&&o[t];return"combo"===r?Object(h.c)(u):Object(h.A)({},s,u)},getControlPoints:function(t){return t.controlPoints},getAnchorPoints:function(t){return this.getOptions(t).anchorPoints}},Fe={itemType:"node",shapeType:"single-node",labelPosition:"center",offset:ht.nodeLabel.offset,getSize:function(t){var e=t.size||this.getOptions({}).size||ht.defaultNode.size;return Object(h.m)(e)&&1===e.length&&(e=[e[0],e[0]]),Object(h.m)(e)||(e=[e,e]),e},getLabelStyleByPosition:function(t,e){var n=e.position||this.labelPosition;if("center"===n)return{x:0,y:0,text:t.label};var r=e.offset;Object(h.s)(r)&&(r=this.offset);var i,o=this.getSize(t),a=o[0],s=o[1];switch(n){case"top":i={x:0,y:0-s/2-r,textBaseline:"bottom"};break;case"bottom":i={x:0,y:s/2+r,textBaseline:"top"};break;case"left":i={x:0-a/2-r,y:0,textAlign:"right"};break;default:i={x:a/2+r,y:0,textAlign:"left"}}return i.text=t.label,i},getLabelBgStyleByPosition:function(t,e,n,r){if(!t)return{};var i=t.getBBox(),o=n.style&&n.style.background;if(!o)return{};var a,s=bt(o.padding),u=i.width+s[1]+s[3],c=i.height+s[0]+s[2],f=n.offset;return Object(h.s)(f)&&(f=this.offset),a={x:i.minX-s[3],y:i.minY-s[0]},a=Object(v.a)(Object(v.a)(Object(v.a)({},a),o),{width:u,height:c})},drawShape:function(t,e){var n=this.shapeType,r=this.getShapeStyle(t);return e.addShape(n,{attrs:r,draggable:!0,name:"node-shape"})},updateLinkPoints:function(t,e){var n,r=this.getOptions(t).linkPoints,i=e.find((function(t){return"link-point-left"===t.get("className")})),o=e.find((function(t){return"link-point-right"===t.get("className")})),a=e.find((function(t){return"link-point-top"===t.get("className")})),s=e.find((function(t){return"link-point-bottom"===t.get("className")}));i&&(n=i.attr()),o&&!n&&(n=o.attr()),a&&!n&&(n=a.attr()),s&&!n&&(n=s.attr()),n||(n=r);var u=Object(h.A)({},n,t.linkPoints),c=u.fill,f=u.stroke,l=u.lineWidth,d=u.size/2;d||(d=u.r);var p=t.linkPoints?t.linkPoints:{left:void 0,right:void 0,top:void 0,bottom:void 0},g=p.left,y=p.right,m=p.top,b=p.bottom,x=this.getSize(t),w=x[0],S=x[1],E={r:d,fill:c,stroke:f,lineWidth:l};i?g||void 0===g?i.attr(Object(v.a)(Object(v.a)({},E),{x:-w/2,y:0})):i.remove():g&&e.addShape("circle",{attrs:Object(v.a)(Object(v.a)({},E),{x:-w/2,y:0}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0}),o?(y||void 0===y||o.remove(),o.attr(Object(v.a)(Object(v.a)({},E),{x:w/2,y:0}))):y&&e.addShape("circle",{attrs:Object(v.a)(Object(v.a)({},E),{x:w/2,y:0}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0}),a?(m||void 0===m||a.remove(),a.attr(Object(v.a)(Object(v.a)({},E),{x:0,y:-S/2}))):m&&e.addShape("circle",{attrs:Object(v.a)(Object(v.a)({},E),{x:0,y:-S/2}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0}),s?b||void 0===b?s.attr(Object(v.a)(Object(v.a)({},E),{x:0,y:S/2})):s.remove():b&&e.addShape("circle",{attrs:Object(v.a)(Object(v.a)({},E),{x:0,y:S/2}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0})},updateShape:function(t,e,n,r){e.get("keyShape").attr(Object(v.a)({},n)),this.updateLabel(t,e),r&&this.updateIcon(t,e)},updateIcon:function(t,e){var n=this,r=e.getContainer(),i=this.getOptions(t).icon,o=(t.icon?t.icon:{show:void 0}).show,a=r.find((function(t){return t.get("className")===n.type+"-icon"}));if(a)if(o||void 0===o){var s=Object(h.A)({},a.attr(),i),u=s.width,c=s.height;a.attr(Object(v.a)(Object(v.a)({},s),{x:-u/2,y:-c/2}))}else a.remove();else if(o){u=i.width,c=i.height;r.addShape("image",{attrs:Object(v.a)(Object(v.a)({},i),{x:-u/2,y:-c/2}),className:this.type+"-icon",name:this.type+"-icon"});var f=r.find((function(t){return"node-label"===t.get("className")}));f&&f.toFront()}}},Ue=Object(v.a)(Object(v.a)({},Ge),Fe);te.registerNode("single-node",Ue);var ze={itemType:"edge",labelPosition:"center",refX:0,refY:0,labelAutoRotate:!1,options:{size:ht.defaultEdge.size,style:{x:0,y:0,stroke:ht.defaultEdge.style.stroke,lineAppendWidth:ht.defaultEdge.style.lineAppendWidth},labelCfg:{style:{fill:ht.edgeLabel.style.fill,fontSize:ht.edgeLabel.style.fontSize}},stateStyles:Object(v.a)({},ht.edgeStateStyles)},getPath:function(t){var e=[];return Object(h.f)(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},getShapeStyle:function(t){var e=this.options.style,n={stroke:t.color},r=Object(h.A)({},e,n,t.style),i=t.size||ht.defaultEdge.size,o=(t=this.getPathPoints(t)).startPoint,a=t.endPoint,s=this.getControlPoints(t),u=[o];s&&(u=u.concat(s)),u.push(a);var c=this.getPath(u);return Object(h.A)({},ht.defaultEdge.style,{stroke:ht.defaultEdge.color,lineWidth:i,path:c},r)},updateShapeStyle:function(t,e){var n=e.getContainer(),r={stroke:t.color},i=n.find((function(t){return"edge-shape"===t.get("className")}))||e.getKeyShape(),o=t.size,a=(t=this.getPathPoints(t)).startPoint,s=t.endPoint,u=this.getControlPoints(t),c=[a];u&&(c=c.concat(u)),c.push(s);var f=i.attr(),l=Object(h.A)({},r,f,t.style),d=t.sourceNode,p=t.targetNode,g={radius:l.radius};u||(g={source:d,target:p,offset:l.offset,radius:l.radius}),f.endArrow&&!1===l.endArrow&&(t.style.endArrow={path:""}),f.startArrow&&!1===l.startArrow&&(t.style.startArrow={path:""});var v=this.getPath(c,g),y=Object(h.A)(r,i.attr(),{lineWidth:o,path:v},t.style);i&&i.attr(y)},getLabelStyleByPosition:function(t,e,n){var r,i=e.position||this.labelPosition,o={},a=n&&n.find((function(t){return"edge-shape"===t.get("className")}));r="start"===i?0:"end"===i?1:.5;var s=e.refX||this.refX,u=e.refY||this.refY;if(t.startPoint.x===t.endPoint.x&&t.startPoint.y===t.endPoint.y)return o.x=t.startPoint.x+s,o.y=t.startPoint.y+u,o.text=t.label,o;var c=Object(h.s)(e.autoRotate)?this.labelAutoRotate:e.autoRotate,f=Dt(a,r,s,u,c);return o.x=f.x,o.y=f.y,o.rotate=f.rotate,o.textAlign=this._getTextAlign(i,f.angle),o.text=t.label,o},getLabelBgStyleByPosition:function(t,e,n,r){if(!t)return{};var i=t.getBBox(),o=n.style&&n.style.background;if(!o)return{};var a,s=o.padding,u=i.width+s[1]+s[3],c=i.height+s[0]+s[2],f=n.position||this.labelPosition,l=Object(v.a)(Object(v.a)({},o),{width:u,height:c,x:i.minX-s[2],y:i.minY-s[0],rotate:0}),d=Object(h.s)(n.autoRotate)?this.labelAutoRotate:n.autoRotate,p=r&&r.find((function(t){return"edge-shape"===t.get("className")}));a="start"===f?0:"end"===f?1:.5;var g=n.refX||this.refX,y=n.refY||this.refY;if(e.startPoint.x===e.endPoint.x&&e.startPoint.y===e.endPoint.y)return l.x=e.startPoint.x+g-u/2,l.y=e.startPoint.y+y-c/2,l;var m=Dt(p,a,g-u/2,y+c/2,d),b=m.angle;return b>.5*Math.PI&&b<1.5*Math.PI&&(m=Dt(p,a,g+u/2,y+c/2,d)),d&&(l.x=m.x,l.y=m.y),l.rotate=m.rotate,l},_getTextAlign:function(t,e){var n="center";return e?(e%=2*Math.PI,"center"!==t&&(n=e>=0&&e<=Math.PI/2||e>=1.5*Math.PI&&e<2*Math.PI?t:function(t){var e=t;return"start"===t?e="end":"end"===t&&(e="start"),e}(t)),n):t},getControlPoints:function(t){return t.controlPoints},getPathPoints:function(t){return t},drawShape:function(t,e){var n=this.getShapeStyle(t);return e.addShape("path",{className:"edge-shape",name:"edge-shape",attrs:n})},drawLabel:function(t,e){var n=this.options.labelCfg,r=Object(h.e)({fontFamily:"undefined"!=typeof window&&window.getComputedStyle(document.body,null).getPropertyValue("font-family")||"Arial, sans-serif"},n,t.labelCfg),i=this.getLabelStyle(t,r,e),o=i.rotate;delete i.rotate;var a=e.addShape("text",{attrs:i,name:"text-shape"});if(o&&a.rotateAtStart(o),i.background){var s=this.drawLabelBg(t,e,a),u=this.itemType+"-label-bg";s.set("classname",u),a.toFront()}return a},drawLabelBg:function(t,e,n){var r=this.options.labelCfg,i=Object(h.e)({},r,t.labelCfg),o=this.getLabelStyle(t,i,e).rotate,a=this.getLabelBgStyleByPosition(n,t,i,e);delete a.rotate;var s=e.addShape("rect",{name:"text-bg-shape",attrs:a});return o&&s.rotateAtStart(o),s}},Ve=Object(v.a)(Object(v.a)({},Ge),ze);te.registerEdge("single-edge",Ve),te.registerEdge("line",{getControlPoints:function(){}},"single-edge"),te.registerEdge("spline",{getPath:function(t){return he(t)}},"single-edge"),te.registerEdge("arc",{curveOffset:20,clockwise:1,getControlPoints:function(t){var e,n,r=t.startPoint,i=t.endPoint,o=(r.x+i.x)/2,a=(r.y+i.y)/2;if(void 0!==t.controlPoints){if(n=t.controlPoints[0],e=T(r,n,i),r.x<=i.x&&r.y>i.y?this.clockwise=e.x>n.x?0:1:r.x<=i.x&&r.y<i.y?this.clockwise=e.x>n.x?1:0:r.x>i.x&&r.y<=i.y?this.clockwise=e.y<n.y?0:1:this.clockwise=e.y<n.y?1:0,(n.x-r.x)/(n.y-r.y)==(i.x-r.x)/(i.y-r.y))return[]}else{void 0===t.curveOffset&&(t.curveOffset=this.curveOffset),Object(h.m)(t.curveOffset)&&(t.curveOffset=t.curveOffset[0]),t.curveOffset<0?this.clockwise=0:this.clockwise=1;var s={x:i.x-r.x,y:i.y-r.y},u=Math.atan2(s.y,s.x);n={x:t.curveOffset*Math.cos(-Math.PI/2+u)+o,y:t.curveOffset*Math.sin(-Math.PI/2+u)+a},e=T(r,n,i)}var c=C(r,e);return[{x:c,y:c}]},getPath:function(t){var e=[];return e.push(["M",t[0].x,t[0].y]),2===t.length?e.push(["L",t[1].x,t[1].y]):e.push(["A",t[1].x,t[1].y,0,0,this.clockwise,t[2].x,t[2].y]),e}},"single-edge"),te.registerEdge("quadratic",{curvePosition:.5,curveOffset:-20,getControlPoints:function(t){var e=t.controlPoints;if(!e||!e.length){var n=t.startPoint,r=t.endPoint;void 0===t.curveOffset&&(t.curveOffset=this.curveOffset),void 0===t.curvePosition&&(t.curvePosition=this.curvePosition),Object(h.m)(this.curveOffset)&&(t.curveOffset=t.curveOffset[0]),Object(h.m)(this.curvePosition)&&(t.curvePosition=t.curveOffset[0]),e=[de(n,r,t.curvePosition,t.curveOffset)]}return e},getPath:function(t){var e=[];return e.push(["M",t[0].x,t[0].y]),e.push(["Q",t[1].x,t[1].y,t[2].x,t[2].y]),e}},"single-edge"),te.registerEdge("cubic",{curvePosition:[.5,.5],curveOffset:[-20,20],getControlPoints:function(t){var e=t.controlPoints;if(void 0===t.curveOffset&&(t.curveOffset=this.curveOffset),void 0===t.curvePosition&&(t.curvePosition=this.curvePosition),Object(h.t)(t.curveOffset)&&(t.curveOffset=[t.curveOffset,-t.curveOffset]),Object(h.t)(t.curvePosition)&&(t.curvePosition=[t.curvePosition,1-t.curvePosition]),!e||!e.length||e.length<2){var n=t.startPoint,r=t.endPoint;e=[de(n,r,t.curvePosition[0],t.curveOffset[0]),de(n,r,t.curvePosition[1],t.curveOffset[1])]}return e},getPath:function(t){var e=[];return e.push(["M",t[0].x,t[0].y]),e.push(["C",t[1].x,t[1].y,t[2].x,t[2].y,t[3].x,t[3].y]),e}},"single-edge"),te.registerEdge("cubic-vertical",{curvePosition:[.5,.5],getControlPoints:function(t){var e=t.startPoint,n=t.endPoint;return void 0!==t.curvePosition&&(this.curvePosition=t.curvePosition),Object(h.t)(this.curvePosition)&&(this.curvePosition=[this.curvePosition,1-this.curvePosition]),[{x:e.x,y:(n.y-e.y)*this.curvePosition[0]+e.y},{x:n.x,y:(n.y-e.y)*this.curvePosition[1]+e.y}]}},"cubic"),te.registerEdge("cubic-horizontal",{curvePosition:[.5,.5],getControlPoints:function(t){var e=t.startPoint,n=t.endPoint;return void 0!==t.curvePosition&&(this.curvePosition=t.curvePosition),Object(h.t)(this.curvePosition)&&(this.curvePosition=[this.curvePosition,1-this.curvePosition]),[{x:(n.x-e.x)*this.curvePosition[0]+e.x,y:e.y},{x:(n.x-e.x)*this.curvePosition[1]+e.x,y:n.y}]}},"cubic"),te.registerEdge("loop",{getPathPoints:function(t){return jt(t)},getControlPoints:function(t){return t.controlPoints},afterDraw:function(t){t.controlPoints=void 0},afterUpdate:function(t){t.controlPoints=void 0}},"cubic");var We={itemType:"combo",shapeType:"single-combo",labelPosition:"top",refX:ht.comboLabel.refX,refY:ht.comboLabel.refY,options:{style:{stroke:ht.defaultCombo.style.stroke,fill:ht.defaultCombo.style.fill,lineWidth:ht.defaultCombo.style.lineWidth},labelCfg:{style:{fill:ht.comboLabel.style.fill,fontSize:ht.comboLabel.style.fontSize}},stateStyles:Object(v.a)({},ht.comboStateStyles)},getSize:function(t){var e=Object(h.c)(t.size||this.options.size||ht.defaultCombo.size);return Object(h.m)(e)&&1===e.length&&(e=[e[0],e[0]]),Object(h.m)(e)||(e=[e,e]),e},getLabelStyleByPosition:function(t,e){var n=e.position||this.labelPosition,r=t.style,i=t.padding||this.options.padding;Object(h.m)(i)&&(i=i[0]);var o=e.refX,a=e.refY;Object(h.s)(o)&&(o=this.refX),Object(h.s)(a)&&(a=this.refY);var s,u=this.getSize(t),c=(Math.max(r.r,u[0]/2)||u[0]/2)+i;switch(n){case"top":s={x:0,y:-c-a,textBaseline:"bottom",textAlign:"center"};break;case"bottom":s={x:0,y:c+a,textBaseline:"bottom",textAlign:"center"};break;case"left":s={x:-c+o,y:0,textAlign:"left"};break;case"center":s={x:0,y:0,text:t.label,textAlign:"center"};break;default:s={x:c+o,y:0,textAlign:"right"}}return s.text=t.label,s},drawShape:function(t,e){var n=this.shapeType,r=this.getShapeStyle(t);return e.addShape(n,{attrs:r,draggable:!0,name:"combo-shape"})},updateShape:function(t,e,n){var r=e.get("keyShape");(void 0===t.animate?this.options.animate:t.animate)&&r.animate?r.animate(n,{duration:200,easing:"easeLinear"}):r.attr(Object(v.a)({},n)),this.updateLabel(t,e)}},Xe=Object(v.a)(Object(v.a)({},Ge),We);te.registerCombo("single-combo",Xe),te.registerCombo("circle",{options:{size:[ht.defaultCombo.size[0],ht.defaultCombo.size[0]],padding:ht.defaultCombo.padding[0],animate:!0,style:{stroke:ht.defaultCombo.style.stroke,fill:ht.defaultCombo.style.fill,lineWidth:ht.defaultCombo.style.lineWidth},labelCfg:{style:{fill:ht.comboLabel.style.fill,fontSize:ht.comboLabel.style.fontSize},refX:0,refY:0},stateStyles:Object(v.a)({},ht.comboStateStyles)},shapeType:"circle",labelPosition:"top",drawShape:function(t,e){var n=this.getShapeStyle(t);return delete n.height,delete n.width,e.addShape("circle",{attrs:n,className:"circle-combo",name:"circle-combo",draggable:!0})},getShapeStyle:function(t){var e=this.options.style,n=t.padding||this.options.padding;Object(h.m)(n)&&(n=n[0]);var r,i={stroke:t.color},o=Object(h.A)({},e,i,t.style),a=this.getSize(t);r=!Object(h.t)(o.r)||isNaN(o.r)?a[0]/2||ht.defaultCombo.style.r:Math.max(o.r,a[0]/2)||a[0]/2,o.r=r+n;var s=Object(v.a)({x:0,y:0},o);return t.style?t.style.r=r:t.style={r:r},s},update:function(t,e){var n=this.getSize(t),r=t.padding||this.options.padding;Object(h.m)(r)&&(r=r[0]);var i=Object(h.c)(t.style),o=Math.max(i.r,n[0]/2)||n[0]/2;i.r=o+r;var a=e.get("sizeCache");a&&(a.r=i.r);var s={stroke:t.color},u=e.get("keyShape"),c=Object(h.A)({},u.attr(),s,i);t.style?t.style.r=o:t.style={r:o},this.updateShape(t,e,c,!0)}},"single-combo"),te.registerCombo("rect",{options:{size:[40,5],padding:[25,20,15,20],animate:!0,style:{radius:0,stroke:ht.defaultCombo.style.stroke,fill:ht.defaultCombo.style.fill,lineWidth:ht.defaultCombo.style.lineWidth},labelCfg:{style:{fill:ht.comboLabel.style.fill,fontSize:ht.comboLabel.style.fontSize}},anchorPoints:[[0,.5],[1,.5]],stateStyles:Object(v.a)({},ht.comboStateStyles)},shapeType:"rect",labelPosition:"top",drawShape:function(t,e){var n=this.getShapeStyle(t);return e.addShape("rect",{attrs:n,className:"rect-combo",name:"rect-combo",draggable:!0})},getLabelStyleByPosition:function(t,e){var n=e.position||this.labelPosition,r=t.style,i=t.padding||this.options.padding;Object(h.t)(i)&&(i=[i,i,i,i]);var o=e.refX,a=e.refY;Object(h.s)(o)&&(o=this.refX),Object(h.s)(a)&&(a=this.refY);var s,u=r.width/2+i[3],c=r.height/2+i[0];switch(n){case"top":s={x:0-u+o,y:0-c+a,textBaseline:"top",textAlign:"left"};break;case"bottom":s={x:0,y:c+a,textBaseline:"bottom",textAlign:"center"};break;case"left":s={x:0-u+a,y:0,textAlign:"left"};break;case"center":s={x:0,y:0,text:t.label,textAlign:"center"};break;default:s={x:u+o,y:0,textAlign:"right"}}return s.text=t.label,s},getShapeStyle:function(t){var e=this.options.style,n=t.padding||this.options.padding;Object(h.t)(n)&&(n=[n,n,n,n]);var r,i,o={stroke:t.color},a=Object(h.A)({},e,o,t.style),s=this.getSize(t);r=!Object(h.t)(a.width)||isNaN(a.width)?s[0]||ht.defaultCombo.style.width:Math.max(a.width,s[0])||s[0],i=!Object(h.t)(a.height)||isNaN(a.height)?s[1]||ht.defaultCombo.style.height:Math.max(a.height,s[1])||s[1];var u=-r/2-n[3],c=-i/2-n[0];a.width=r+n[1]+n[3],a.height=i+n[0]+n[2];var f=Object(v.a)({x:u,y:c},a);return t.style?(t.style.width=r,t.style.height=i):t.style={width:r,height:i},f},update:function(t,e){var n=this.getSize(t),r=t.padding||this.options.padding;Object(h.t)(r)&&(r=[r,r,r,r]);var i=Object(h.c)(t.style),o=Math.max(i.width,n[0])||n[0],a=Math.max(i.height,n[1])||n[1];i.width=o+r[1]+r[3],i.height=a+r[0]+r[2];var s=e.get("sizeCache");s&&(s.width=i.width,s.height=i.height),i.x=-o/2-r[3],i.y=-a/2-r[0];var u={stroke:t.color},c=e.get("keyShape"),f=Object(h.A)({},c.attr(),u,i);t.style?(t.style.width=o,t.style.height=a):t.style={width:o,height:a},this.updateShape(t,e,f,!1)},updateShape:function(t,e,n){var r=e.get("keyShape");(void 0===t.animate?this.options.animate:t.animate)&&r.animate?r.animate(n,{duration:200,easing:"easeLinear"}):r.attr(Object(v.a)({},n)),this.updateLabel(t,e)}},"single-combo"),te.registerNode("simple-circle",{options:{size:ht.defaultNode.size,style:{x:0,y:0,stroke:ht.defaultNode.style.stroke,fill:ht.defaultNode.style.fill,lineWidth:ht.defaultNode.style.lineWidth},labelCfg:{style:{fill:ht.nodeLabel.style.fill,fontSize:ht.nodeLabel.style.fontSize}},stateStyles:Object(v.a)({},ht.nodeStateStyles)},shapeType:"simple-circle",labelPosition:"center",drawShape:function(t,e){var n=this.getShapeStyle(t);return e.addShape("circle",{attrs:n,className:this.type+"-keyShape",draggable:!0})},getShapeStyle:function(t){var e=this.getOptions(t).style,n={stroke:t.color},r=Object(h.e)({},e,n),i=this.getSize(t)[0]/2;return Object(v.a)({x:0,y:0,r:i},r)},update:function(t,e){var n=this.getSize(t),r={stroke:t.color,r:n[0]/2},i=e.get("keyShape"),o=Object(h.e)({},i.attr(),r,t.style);this.updateShape(t,e,o,!0)}},"single-node"),te.registerNode("simple-rect",{options:{size:[100,30],style:{radius:0,stroke:ht.defaultNode.style.stroke,fill:ht.defaultNode.style.fill,lineWidth:ht.defaultNode.style.lineWidth},labelCfg:{style:{fill:ht.nodeLabel.style.fill,fontSize:ht.nodeLabel.style.fontSize}},anchorPoints:[[0,.5],[1,.5]],stateStyles:Object(v.a)({},ht.nodeStateStyles)},shapeType:"simple-rect",labelPosition:"center",drawShape:function(t,e){var n=this.getShapeStyle(t);return e.addShape("rect",{attrs:n,className:this.type+"-keyShape",name:this.type+"-keyShape",draggable:!0})},getShapeStyle:function(t){var e=this.getOptions(t).style,n={stroke:t.color},r=Object(h.A)({},e,n),i=this.getSize(t),o=r.width||i[0],a=r.height||i[1];return Object(v.a)({x:-o/2,y:-a/2,width:o,height:a},r)},update:function(t,e){e.getContainer();var n=this.getOptions({}).style,r=this.getSize(t),i=e.get("keyShape");t.size||(r[0]=i.attr("width")||n.width,r[1]=i.attr("height")||n.height);var o={stroke:t.color,x:-r[0]/2,y:-r[1]/2,width:r[0],height:r[1]},a=Object(h.A)({},n,i.attr(),o);a=Object(h.A)(a,t.style),this.updateShape(t,e,a,!1)}},"single-node"),te.registerNode("image",{options:{img:"https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*eD7nT6tmYgAAAAAAAAAAAABkARQnAQ",size:200,clipCfg:{show:!1,type:"circle",r:50,rx:50,ry:35,width:50,height:35,points:[[30,12],[12,30],[30,48],[48,30]],path:[["M",25,25],["L",50,25],["A",12.5,12.5,0,1,1,50,50],["A",12.5,12.5,0,1,0,50,50],["L",25,75],["Z"]],x:0,y:0}},shapeType:"image",labelPosition:"bottom",drawShape:function(t,e){var n=this.shapeType,r=this.getShapeStyle(t);delete r.fill;var i=e.addShape(n,{attrs:r,className:this.type+"-keyShape",name:this.type+"-keyShape",draggable:!0});return this.drawClip(t,i),i},drawClip:function(t,e){var n=this.getOptions(t).clipCfg;if(n.show){var r=n.type,i=n.x,o=n.y,a=n.style;if("circle"===r){var s=n.r;e.setClip({type:"circle",attrs:Object(v.a)({r:s,x:i,y:o},a)})}else if("rect"===r){var u=n.width,c=n.height,f=i-u/2,l=o-c/2;e.setClip({type:"rect",attrs:Object(v.a)({x:f,y:l,width:u,height:c},a)})}else if("ellipse"===r){var h=n.rx,d=n.ry;e.setClip({type:"ellipse",attrs:Object(v.a)({x:i,y:o,rx:h,ry:d},a)})}else if("polygon"===r){var p=n.points;e.setClip({type:"polygon",attrs:Object(v.a)({points:p},a)})}else if("path"===r){var g=n.path;e.setClip({type:"path",attrs:Object(v.a)({path:g},a)})}}},getShapeStyle:function(t){var e=this.getOptions(t).style,n=this.getSize(t),r=this.getOptions(t).img,i=n[0],o=n[1];return e&&(i=e.width||n[0],o=e.height||n[1]),Object(v.a)({x:-i/2,y:-o/2,width:i,height:o,img:r},e)},updateShapeStyle:function(t,e){var n=e.getContainer(),r=this.itemType+"-shape",i=n.find((function(t){return t.get("className")===r}))||e.getKeyShape(),o=this.getShapeStyle(t);i&&i.attr(o)}},"single-node");var Ye,He={triangle:function(t,e,n){void 0===t&&(t=10),void 0===e&&(e=15),void 0===n&&(n=0);var r=2*n;return"M "+r+",0 L "+(r+e)+",-"+t/2+" L "+(r+e)+","+t/2+" Z"},vee:function(t,e,n){void 0===t&&(t=15),void 0===e&&(e=20),void 0===n&&(n=0);var r=2*n;return"M "+r+",0 L "+(r+e)+",-"+t/2+"\\n L "+(r+2*e/3)+",0 L "+(r+e)+","+t/2+" Z"},circle:function(t,e){return void 0===t&&(t=5),void 0===e&&(e=0),"M "+2*e+", 0\\n a "+t+","+t+" 0 1,0 "+2*t+",0\\n a "+t+","+t+" 0 1,0 "+2*-t+",0"},rect:function(t,e,n){void 0===t&&(t=10),void 0===e&&(e=10),void 0===n&&(n=0);var r=2*n;return"M "+r+","+-t/2+" \\n L "+(r+e)+","+-t/2+" \\n L "+(r+e)+","+t/2+" \\n L "+r+","+t/2+" Z"},diamond:function(t,e,n){void 0===t&&(t=15),void 0===e&&(e=15),void 0===n&&(n=0);var r=2*n;return"M "+r+",0 \\n L "+(r+e/2)+","+-t/2+" \\n L "+(r+e)+",0 \\n L "+(r+e/2)+","+t/2+" Z"},triangleRect:function(t,e,n,r,i,o){void 0===t&&(t=15),void 0===e&&(e=15),void 0===n&&(n=15),void 0===r&&(r=3),void 0===i&&(i=5),void 0===o&&(o=0);var a=2*o,s=a+e+i;return"M "+a+",0 L "+(a+e)+",-"+t/2+" L "+(a+e)+","+t/2+" Z\\n M "+s+", -"+n/2+"\\n L "+(s+r)+" -"+n/2+"\\n L "+(s+r)+" "+n/2+"\\n L "+s+" "+n/2+"\\n Z"}},qe={collapse:function(t,e,n){return[["M",t-n,e],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0],["M",t-n+4,e],["L",t+n-4,e]]},expand:function(t,e,n){return[["M",t-n,e],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0],["M",t-n+4,e],["L",t-n+2*n-4,e],["M",t-n+n,e-n+4],["L",t,e+n-4]]},upTriangle:function(t,e,n){var r=n*Math.cos(Math.PI/6),i=n*Math.sin(Math.PI/6);return[["M",t-r,e+i],["L",t+r,e+i],["L",t,e-n],["Z"]]},downTriangle:function(t,e,n){var r=n*Math.cos(Math.PI/6),i=n*Math.sin(Math.PI/6);return[["M",t-r,e-i],["L",t+r,e-i],["L",t,e+n],["Z"]]}},Ke=te,Ze=m.a.transform,Qe=Object(v.a)(Object(v.a)(Object(v.a)(Object(v.a)(Object(v.a)({},i),o),a),r),{transform:Ze,mat3:m.b}),Je=function(){function t(t){this.graph=t,this.layoutCfg=t.get("layout")||{},this.layoutType=this.layoutCfg.type,this.initLayout()}return t.prototype.initLayout=function(){},t.prototype.getLayoutType=function(){return this.layoutCfg.type},t.prototype.refreshLayout=function(){var t=this.graph;t&&(t.get("animate")?t.positionsAnimate():t.refreshPositions())},t.prototype.changeLayout=function(t){var e=this.graph,n=this.layoutMethod;this.layoutType=t,this.layoutCfg=e.get("layout")||{},this.layoutCfg.type=t,n&&n.destroy(),this.layout()},t.prototype.changeData=function(){var t=this.layoutMethod;t&&t.destroy(),this.layout()},t.prototype.destroyLayout=function(){var t=this.layoutMethod,e=this.graph;t&&t.destroy(),e.set("layout",void 0),this.layoutCfg=void 0,this.layoutType=void 0,this.layoutMethod=void 0},t.prototype.setDataFromGraph=function(){for(var t=[],e=[],n=[],r=this.graph.getNodes(),i=this.graph.getEdges(),o=this.graph.getCombos(),a=r.length,s=0;s<a;s++){var u=r[s];if(u.isVisible()){var c=u.getModel();t.push(c)}}var f=i.length;for(s=0;s<f;s++){var l=i[s];if(l&&!l.destroyed&&l.isVisible())(c=l.getModel()).isComboEdge||e.push(c)}var h=o.length;for(s=0;s<h;s++){var d=o[s];if(!d.destroyed&&d.isVisible()){c=d.getModel();n.push(c)}}return{nodes:t,edges:e,combos:n}},t.prototype.relayout=function(t){var e=this.graph,n=this.layoutMethod,r=this.layoutCfg;if(t){this.data=this.setDataFromGraph();var i=this.data.nodes;if(!i)return!1;this.initPositions(r.center,i),n.init(this.data)}"force"===this.layoutType&&(n.ticking=!1,n.forceSimulation.stop()),e.emit("beforelayout"),n.execute(t),n.isCustomLayout&&r.onLayoutEnd&&r.onLayoutEnd()},t.prototype.layoutAnimate=function(){},t.prototype.moveToZero=function(){var t=this.graph.get("data").nodes;if(void 0!==t[0].x&&null!==t[0].x&&!St(t[0].x)){for(var e=[0,0],n=t.length,r=0;r<n;r++){var i=t[r];e[0]+=i.x,e[1]+=i.y}e[0]/=t.length,e[1]/=t.length;for(r=0;r<n;r++){(i=t[r]).x-=e[0],i.y-=e[1]}}},t.prototype.initPositions=function(t,e){var n=this.graph;if(!e)return!1;var r=!0,i=.85*n.get("width"),o=.85*n.get("height"),a=e.length,s=Math.ceil(Math.sqrt(a)*(i/o)),u=i/(s-1),c=o/(Math.ceil(a/s)-1);isFinite(u)&&u||(u=0),isFinite(c)&&u||(c=0);for(var f=t[0]-i/2,l=t[1]-o/2,h=e.length,d=0;d<h;d++){var p=e[d];St(p.x)&&(r=!1,p.x=d%s*u+f),St(p.y)&&(r=!1,p.y=Math.floor(d/s)*c+l)}return r},t.prototype.destroy=function(){var t=this.layoutMethod;this.graph=null,t&&(t.destroy(),t.destroyed=!0),this.destroyed=!0},t}(),$e=function(t){this.graph=t,this.destroyed=!1,this.initEvents()};!function(t){t.CLICK="click",t.DBLCLICK="dblclick",t.MOUSEDOWN="mousedown",t.MOUDEUP="mouseup",t.CONTEXTMENU="contextmenu",t.MOUSEENTER="mouseenter",t.MOUSEOUT="mouseout",t.MOUSEOVER="mouseover",t.MOUSEMOVE="mousemove",t.MOUSELEAVE="mouseleave",t.DRAGSTART="dragstart",t.DRAGEND="dragend",t.DRAG="drag",t.DRAGENTER="dragenter",t.DRAGLEAVE="dragleave",t.DRAGOVER="dragover",t.DRAGOUT="dragout",t.DDROP="drop",t.KEYUP="keyup",t.KEYDOWN="keydown",t.WHEEL="wheel",t.FOCUS="focus",t.BLUR="blur",t.TOUCHSTART="touchstart",t.TOUCHMOVE="touchmove",t.TOUCHEND="touchend",t.NODE_CONTEXTMENU="node:contextmenu",t.NODE_CLICK="node:click",t.NODE_DBLCLICK="node:dblclick",t.NODE_MOUSEDOWN="node:mousedown",t.NODE_MOUSEUP="node:mouseup",t.NODE_MOUSEENTER="node:mouseenter",t.NODE_MOUSELEAVE="node:mouseleave",t.NODE_MOUSEMOVE="node:mousemove",t.NODE_MOUSEOUT="node:mouseout",t.NODE_MOUSEOVER="node:mouseover",t.NODE_DROP="node:drop",t.NODE_DRAGOVER="node:dragover",t.NODE_DRAGENTER="node:dragenter",t.NODE_DRAGLEAVE="node:dragleave",t.NODE_DRAGSTART="node:dragstart",t.NODE_DRAG="node:drag",t.NODE_DRAGEND="node:dragend",t.COMBO_CONTEXTMENU="combo:contextmenu",t.COMBO_CLICK="combo:click",t.COMBO_DBLCLICK="combo:dblclick",t.COMBO_MOUSEDOWN="combo:mousedown",t.COMBO_MOUSEUP="combo:mouseup",t.COMBO_MOUSEENTER="combo:mouseenter",t.COMBO_MOUSELEAVE="combo:mouseleave",t.COMBO_MOUSEMOVE="combo:mousemove",t.COMBO_MOUSEOUT="combo:mouseout",t.COMBO_MOUSEOVER="combo:mouseover",t.COMBO_DROP="combo:drop",t.COMBO_DRAGOVER="combo:dragover",t.COMBO_DRAGENTER="combo:dragenter",t.COMBO_DRAGLEAVE="combo:dragleave",t.COMBO_DRAGSTART="combo:dragstart",t.COMBO_DRAG="combo:drag",t.COMBO_DRAGEND="combo:dragend",t.EDGE_CONTEXTMENU="edge:contextmenu",t.EDGE_CLICK="edge:click",t.EDGE_DBLCLICK="edge:dblclick",t.EDGE_MOUSEDOWN="edge:mousedown",t.EDGE_MOUSEUP="edge:mouseup",t.EDGE_MOUSEENTER="edge:mouseenter",t.EDGE_MOUSELEAVE="edge:mouseleave",t.EDGE_MOUSEMOVE="edge:mousemove",t.EDGE_MOUSEOUT="edge:mouseout",t.EDGE_MOUSEOVER="edge:mouseover",t.EDGE_DROP="edge:drop",t.EDGE_DRAGOVER="edge:dragover",t.EDGE_DRAGENTER="edge:dragenter",t.EDGE_DRAGLEAVE="edge:dragleave",t.CANVAS_CONTEXTMENU="canvas:contextmenu",t.CANVAS_CLICK="canvas:click",t.CANVAS_DBLCLICK="canvas:dblclick",t.CANVAS_MOUSEDOWN="canvas:mousedown",t.CANVAS_MOUSEUP="canvas:mouseup",t.CANVAS_MOUSEENTER="canvas:mouseenter",t.CANVAS_MOUSELEAVE="canvas:mouseleave",t.CANVAS_MOUSEMOVE="canvas:mousemove",t.CANVAS_MOUSEOUT="canvas:mouseout",t.CANVAS_MOUSEOVER="canvas:mouseover",t.CANVAS_DROP="canvas:drop",t.CANVAS_DRAGENTER="canvas:dragenter",t.CANVAS_DRAGLEAVE="canvas:dragleave",t.CANVAS_DRAGSTART="canvas:dragstart",t.CANVAS_DRAG="canvas:drag",t.CANVAS_DRAGEND="canvas:dragend",t.BEFORERENDER="beforerender",t.AFTERRENDER="afterrender",t.BEFOREADDITEM="beforeadditem",t.AFTERADDITEM="afteradditem",t.BEFOREREMOVEITEM="beforeremoveitem",t.AFTERREMOVEITEM="afterremoveitem",t.BEFOREUPDATEITEM="beforeupdateitem",t.AFTERUPDATEITEM="afterupdateitem",t.BEFOREITEMVISIBILITYCHANGE="beforeitemvisibilitychange",t.AFTERITEMVISIBILITYCHANGE="afteritemvisibilitychange",t.BEFOREITEMSTATECHANGE="beforeitemstatechange",t.AFTERITEMSTATECHANGE="afteritemstatechange",t.BEFOREITEMREFRESH="beforeitemrefresh",t.AFTERITEMREFRESH="afteritemrefresh",t.BEFOREITEMSTATESCLEAR="beforeitemstatesclear",t.AFTERITEMSTATESCLEAR="afteritemstatesclear",t.BEFOREMODECHANGE="beforemodechange",t.AFTERMODECHANGE="aftermodechange",t.BEFORELAYOUT="beforelayout",t.AFTERLAYOUT="afterlayout",t.BEFORECREATEEDGE="beforecreateedge",t.AFTERCREATEEDGE="aftercreateedge",t.BEFOREGRAPHREFRESHPOSITION="beforegraphrefreshposition",t.AFTERGRAPHREFRESHPOSITION="aftergraphrefreshposition",t.BEFOREGRAPHREFRESH="beforegraphrefresh",t.AFTERGRAPHREFRESH="aftergraphrefresh",t.BEFOREANIMATE="beforeanimate",t.AFTERANIMATE="afteranimate",t.BEFOREPAINT="beforepaint",t.AFTERPAINT="afterpaint",t.BEFORECOLLAPSEEXPANDCOMBO="beforecollapseexpandcombo",t.AFTERCOLLAPSEEXPANDCOMBO="aftercollapseexpandcombo",t.GRAPHSTATECHANGE="graphstatechange",t.AFTERACTIVATERELATIONS="afteractivaterelations",t.NODESELECTCHANGE="nodeselectchange",t.TOOLTIPCHANGE="tooltipchange",t.WHEELZOOM="wheelzoom",t.VIEWPORTCHANGE="viewportchange",t.DRAGNODEEND="dragnodeend",t.STACKCHANGE="stackchange"}(Ye||(Ye={}));var tn=Ke.registerNode,en=Ke.registerEdge,nn=Ke.registerCombo,rn=g.registerBehavior,on=ht,an=(Ke.registerNode,Ke.registerEdge,Ke.registerCombo,g.registerBehavior,n(53)),sn=n(63),un=n(2);function cn(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return un.a.fromTranslation(r,n),un.a.multiply(t,r,e)}function fn(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return un.a.fromRotation(r,n),un.a.multiply(t,r,e)}function ln(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return un.a.fromScaling(r,n),un.a.multiply(t,r,e)}function hn(t,e){for(var n,r,i,o=t?[].concat(t):[1,0,0,0,1,0,0,0,1],a=0,s=e.length;a<s;a++){var u=e[a];switch(u[0]){case"t":cn(o,o,[u[1],u[2]]);break;case"s":ln(o,o,[u[1],u[2]]);break;case"r":fn(o,o,u[1]);break;case"m":n=o,r=o,i=u[1],un.a.multiply(n,i,r)}}return o}function dn(t,e){return t[0]*e[1]-e[0]*t[1]}function pn(t,e,n){var r=un.d.angle(t,e),i=dn(t,e)>=0;return n?i?2*Math.PI-r:r:i?r:2*Math.PI-r}function gn(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}var vn=n(85),yn=n.n(vn),mn=n(95),bn=n.n(mn),xn=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function wn(t,e,n){var r;return(r=Math.round(t.h)>=60&&Math.round(t.h)<=240?n?Math.round(t.h)-2*e:Math.round(t.h)+2*e:n?Math.round(t.h)+2*e:Math.round(t.h)-2*e)<0?r+=360:r>=360&&(r-=360),r}function Sn(t,e,n){return 0===t.h&&0===t.s?t.s:((r=n?t.s-.16*e:4===e?t.s+.16:t.s+.05*e)>1&&(r=1),n&&5===e&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function En(t,e,n){var r;return(r=n?t.v+.05*e:t.v-.15*e)>1&&(r=1),Number(r.toFixed(2))}function _n(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=bn()(t),i=5;i>0;i-=1){var o=r.toHsv(),a=bn()({h:wn(o,i,!0),s:Sn(o,i,!0),v:En(o,i,!0)}).toHexString();n.push(a)}n.push(r.toHexString());for(var s=1;s<=4;s+=1){var u=r.toHsv(),c=bn()({h:wn(u,s),s:Sn(u,s),v:En(u,s)}).toHexString();n.push(c)}return"dark"===e.theme?xn.map((function(t){var r=t.index,i=t.opacity;return bn.a.mix(e.backgroundColor||"#141414",n[r],100*i).toHexString()})):n}var On={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},kn={},Mn={};Object.keys(On).forEach((function(t){kn[t]=_n(On[t]),kn[t].primary=kn[t][5],Mn[t]=_n(On[t],{theme:"dark",backgroundColor:"#141414"}),Mn[t].primary=Mn[t][5]}));kn.red,kn.volcano,kn.gold,kn.orange,kn.yellow,kn.lime,kn.green,kn.cyan,kn.blue,kn.geekblue,kn.purple,kn.magenta,kn.grey;var An,Tn,Cn=function(t,e,n){var r=yn()(t),i=yn()(e);return yn()([(1-n)*r.red()+n*i.red(),(1-n)*r.green()+n*i.green(),(1-n)*r.blue()+n*i.blue()]).rgb()},In=function(t,e,n,r){return void 0===e&&(e="#fff"),void 0===n&&(n="default"),void 0===r&&(r="rgb(150, 150, 150)"),"default"===n?function(t,e,n){void 0===e&&(e="#fff"),void 0===n&&(n="rgb(150, 150, 150)");var r=Cn(e,t,.05).rgb().toString(),i=Cn(e,t,.1).rgb().toString(),o=Cn(e,t,.2).rgb().toString(),a=Cn(e,t,.4).rgb().toString(),s=Cn(e,n,.02).rgb().toString(),u=Cn(e,n,.05).rgb().toString(),c=Cn(e,n,.1).rgb().toString(),f=Cn(e,n,.2).rgb().toString(),l=Cn(e,n,.3).rgb().toString(),h=_n(t,{theme:"default",backgroundColor:e}),d=yn()(t).hex().toLowerCase(),p=h.indexOf(d),g=t;return-1!==p&&(g=h[p+1]),{mainStroke:t,mainFill:i,activeStroke:t,activeFill:r,inactiveStroke:a,inactiveFill:r,selectedStroke:t,selectedFill:e,highlightStroke:g,highlightFill:o,disableStroke:l,disableFill:u,edgeMainStroke:l,edgeActiveStroke:t,edgeInactiveStroke:f,edgeSelectedStroke:t,edgeHighlightStroke:t,edgeDisableStroke:c,comboMainStroke:l,comboMainFill:s,comboActiveStroke:t,comboActiveFill:r,comboInactiveStroke:l,comboInactiveFill:s,comboSelectedStroke:t,comboSelectedFill:s,comboHighlightStroke:g,comboHighlightFill:s,comboDisableStroke:f,comboDisableFill:u}}(t,e,"rgb(150, 150, 150)"):function(t,e,n){void 0===e&&(e="#fff"),void 0===n&&(n="#777");var r=Cn(e,t,.2).rgb().toString(),i=Cn(e,t,.3).rgb().toString(),o=Cn(e,t,.6).rgb().toString(),a=Cn(e,t,.8).rgb().toString(),s=Cn(e,n,.2).rgb().toString(),u=Cn(e,n,.25).rgb().toString(),c=Cn(e,n,.3).rgb().toString(),f=Cn(e,n,.4).rgb().toString(),l=Cn(e,n,.5).rgb().toString(),h=_n(t,{theme:"dark",backgroundColor:e}),d=yn()(t).hex().toLowerCase(),p=h.indexOf(d),g=t;return-1!==p&&(g=h[p+1]),{mainStroke:a,mainFill:r,activeStroke:t,activeFill:i,inactiveStroke:a,inactiveFill:r,selectedStroke:t,selectedFill:r,highlightStroke:t,highlightFill:o,disableStroke:l,disableFill:u,edgeMainStroke:n,edgeActiveStroke:t,edgeInactiveStroke:n,edgeSelectedStroke:t,edgeHighlightStroke:t,edgeDisableStroke:c,comboMainStroke:f,comboMainFill:u,comboActiveStroke:t,comboActiveFill:s,comboInactiveStroke:f,comboInactiveFill:u,comboSelectedStroke:t,comboSelectedFill:s,comboHighlightStroke:g,comboHighlightFill:u,comboDisableStroke:f,comboDisableFill:s}}(t,e,"#777")},Pn=function(t,e,n,r){void 0===e&&(e="#fff"),void 0===n&&(n="default"),void 0===r&&(r="rgb(150, 150, 150)");var i=[];return t.forEach((function(t){i.push(In(t,e,n,r))})),i},jn=In("rgb(95, 149, 255)","rgb(255, 255, 255)"),Dn={version:"0.0.20",rootContainerClassName:"root-container",nodeContainerClassName:"node-container",edgeContainerClassName:"edge-container",comboContainerClassName:"combo-container",delegateContainerClassName:"delegate-container",defaultLoopPosition:"top",nodeLabel:{style:{fill:"#000",fontSize:12,textAlign:"center",textBaseline:"middle"},offset:4},defaultNode:{type:"circle",style:{lineWidth:1,stroke:jn.mainStroke,fill:jn.mainFill},size:20,color:jn.mainStroke,linkPoints:{size:8,lineWidth:1,fill:jn.activeFill,stroke:jn.activeStroke}},nodeStateStyles:{active:{fill:jn.activeFill,stroke:jn.activeStroke,lineWidth:2,shadowColor:jn.mainStroke,shadowBlur:10},selected:{fill:jn.selectedFill,stroke:jn.selectedStroke,lineWidth:4,shadowColor:jn.selectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{fill:jn.highlightFill,stroke:jn.highlightStroke,lineWidth:2,"text-shape":{fontWeight:500}},inactive:{fill:jn.inactiveFill,stroke:jn.inactiveStroke,lineWidth:1},disable:{fill:jn.disableFill,stroke:jn.disableStroke,lineWidth:1}},edgeLabel:{style:{fill:"rgb(0, 0, 0)",textAlign:"center",textBaseline:"middle",fontSize:12}},defaultEdge:{type:"line",size:1,style:{stroke:jn.edgeMainStroke,lineAppendWidth:2},color:jn.edgeMainStroke},edgeStateStyles:{active:{stroke:jn.edgeActiveStroke,lineWidth:1},selected:{stroke:jn.edgeSelectedStroke,lineWidth:2,shadowColor:jn.edgeSelectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{stroke:jn.edgeHighlightStroke,lineWidth:2,"text-shape":{fontWeight:500}},inactive:{stroke:jn.edgeInactiveStroke,lineWidth:1},disable:{stroke:jn.edgeDisableStroke,lineWidth:1}},comboLabel:{style:{fill:"rgb(0, 0, 0)",textBaseline:"middle",fontSize:12},refY:10,refX:10},defaultCombo:{type:"circle",style:{fill:jn.comboMainFill,lineWidth:1,stroke:jn.comboMainStroke,r:5,width:20,height:10},size:[20,5],color:jn.comboMainStroke,padding:[25,20,15,20]},comboStateStyles:{active:{stroke:jn.comboActiveStroke,lineWidth:1,fill:jn.comboActiveFill},selected:{stroke:jn.comboSelectedStroke,lineWidth:2,fill:jn.comboSelectedFill,shadowColor:jn.comboSelectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{stroke:jn.comboHighlightStroke,lineWidth:2,fill:jn.comboHighlightFill,"text-shape":{fontWeight:500}},inactive:{stroke:jn.comboInactiveStroke,fill:jn.comboInactiveFill,lineWidth:1},disable:{stroke:jn.comboDisableStroke,fill:jn.comboDisableFill,lineWidth:1}},delegateStyle:{fill:"#F3F9FF",fillOpacity:.5,stroke:"#1890FF",strokeOpacity:.9,lineDash:[5,5]},textWaterMarkerConfig:{width:150,height:100,compatible:!1,text:{x:0,y:60,lineHeight:20,rotate:20,fontSize:14,fontFamily:"Microsoft YaHei",fill:"rgba(0, 0, 0, 0.1)",baseline:"Middle"}},imageWaterMarkerConfig:{width:150,height:130,compatible:!1,image:{x:0,y:0,width:30,height:20,rotate:0}},waterMarkerImage:"https://gw.alipayobjects.com/os/s/prod/antv/assets/image/logo-with-text-73b8a.svg"},Nn=Qe.cloneEvent,Rn=Qe.isViewportChanged,Ln=function(t){function e(e){var n=t.call(this,e)||this;return n.extendEvents=[],n.dragging=!1,n.preItem=null,n.graph=e,n.destroyed=!1,n.initEvents(),n}return Object(v.b)(e,t),e.prototype.initEvents=function(){var t=this.graph,e=this.extendEvents,n=void 0===e?[]:e,r=t.get("canvas"),i=r.get("el"),o=Object(h.J)(this,"onCanvasEvents"),a=Object(h.J)(this,"onExtendEvents"),s=Object(h.J)(this,"onWheelEvent");r.off("*").on("*",o),this.canvasHandler=o,n.push(pt(i,"DOMMouseScroll",s)),n.push(pt(i,"mousewheel",s)),"undefined"!=typeof window&&(n.push(pt(window,"keydown",a)),n.push(pt(window,"keyup",a)),n.push(pt(window,"focus",a)))},e.getItemRoot=function(t){for(;t&&!t.get("item");)t=t.get("parent");return t},e.prototype.onCanvasEvents=function(t){var n=this.graph,r=n.get("canvas"),i=t.target,o=t.type;t.canvasX=t.x,t.canvasY=t.y;var a={x:t.canvasX,y:t.canvasY},s=n.get("group").getMatrix();if(s||(s=[1,0,0,0,1,0,0,0,1]),Rn(s)&&(a=n.getPointByClient(t.clientX,t.clientY)),t.x=a.x,t.y=a.y,t.currentTarget=n,i===r)return"mousemove"===o&&this.handleMouseMove(t,"canvas"),t.target=r,t.item=null,n.emit(o,t),void n.emit("canvas:"+o,t);var u=e.getItemRoot(i);if(u){var c=u.get("item");if(!c.destroyed){var f=c.getType();if(t.target=i,t.item=c,t.canvasX===t.x&&t.canvasY===t.y){var l=n.getCanvasByPoint(t.x,t.y);t.canvasX=l.x,t.canvasY=l.y}n.emit(o,t),t.name&&!t.name.includes(":")?n.emit(f+":"+o,t):n.emit(t.name,t),"dragstart"===o&&(this.dragging=!0),"dragend"===o&&(this.dragging=!1),"mousemove"===o&&this.handleMouseMove(t,f)}}else n.emit(o,t)},e.prototype.onExtendEvents=function(t){this.graph.emit(t.type,t)},e.prototype.onWheelEvent=function(t){Object(h.s)(t.wheelDelta)&&(t.wheelDelta=-t.detail),this.graph.emit("wheel",t)},e.prototype.handleMouseMove=function(t,e){var n=this.graph,r=this.preItem,i=n.get("canvas"),o=t.target===i?null:t.item;t=Nn(t),r&&r!==o&&!r.destroyed&&(t.item=r,this.emitCustomEvent(r.getType(),"mouseleave",t),this.dragging&&this.emitCustomEvent(r.getType(),"dragleave",t)),o&&r!==o&&(t.item=o,this.emitCustomEvent(e,"mouseenter",t),this.dragging&&this.emitCustomEvent(e,"dragenter",t)),this.preItem=o},e.prototype.emitCustomEvent=function(t,e,n){n.type=e,this.graph.emit(t+":"+e,n)},e.prototype.destroy=function(){var t=this.graph,e=this.canvasHandler,n=this.extendEvents;t.get("canvas").off("*",e),Object(h.f)(n,(function(t){t.remove()})),this.dragging=!1,this.preItem=null,this.extendEvents.length=0,this.canvasHandler=null,this.destroyed=!0},e}($e),Bn=function(t){return"string"==typeof t},Gn=/-(\\w)/g,Fn=(An=function(t){return t.replace(Gn,(function(t,e){return e?e.toUpperCase():""}))},Tn=Object.create(null),Array.isArray),Un=function(t){return"number"==typeof t},zn=function(t){return Number.isNaN(Number(t))},Vn=function(t,e,n){for(var r=[],i=0;i<t;i++)r[i]=0;return n?(n.forEach((function(t){t.source&&(r[e[t.source]]+=1),t.target&&(r[e[t.target]]+=1)})),r):r},Wn=function(t){for(var e=[],n=t.length,r=0;r<n;r+=1){e[r]=[];for(var i=0;i<n;i+=1)r===i?e[r][i]=0:0!==t[r][i]&&t[r][i]?e[r][i]=t[r][i]:e[r][i]=1/0}for(var o=0;o<n;o+=1)for(var a=0;a<n;a+=1)for(var s=0;s<n;s+=1)e[a][s]>e[a][o]+e[o][s]&&(e[a][s]=e[a][o]+e[o][s]);return e},Xn=function(t,e){var n=t.nodes,r=t.edges,i=[],o={};if(!n)throw new Error("invalid nodes data!");return n&&n.forEach((function(t,e){o[t.id]=e;i.push([])})),r&&r.forEach((function(t){var n=t.source,r=t.target,a=o[n],s=o[r];i[a][s]=1,e||(i[s][a]=1)})),i},Yn=function(t,e){"function"==typeof e&&function t(e,n){if(e&&e.children)for(var r=e.children.length-1;r>=0;r--)if(!t(e.children[r],n))return;return!!n(e)}(t,e)};function Hn(t){return(Hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var qn=function t(e){if(null===e)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof Array){var n=[];return e.forEach((function(t){n.push(t)})),n.map((function(e){return t(e)}))}if("object"===Hn(e)&&e!=={}){var r=Object.assign({},e);return Object.keys(r).forEach((function(e){r[e]=t(r[e])})),r}return e},Kn=function(t){return"function"==typeof t};function Zn(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 Qn=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.nodes=[],this.edges=[],this.combos=[],this.positions=[],this.destroyed=!1,this.onLayoutEnd=function(){}}var e,n,r;return e=t,(n=[{key:"layout",value:function(t){return this.init(t),this.execute(!0)}},{key:"init",value:function(t){this.nodes=t.nodes||[],this.edges=t.edges||[],this.combos=t.combos||[]}},{key:"execute",value:function(t){}},{key:"executeWithWorker",value:function(){}},{key:"getDefaultCfg",value:function(){return{}}},{key:"updateCfg",value:function(t){t&&Object.assign(this,t)}},{key:"getType",value:function(){return"base"}},{key:"destroy",value:function(){this.nodes=null,this.edges=null,this.combos=null,this.positions=null,this.destroyed=!0}}])&&Zn(e.prototype,n),r&&Zn(e,r),t}();function Jn(t){return(Jn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $n(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function tr(t,e){return(tr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function er(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=rr(t);if(e){var i=rr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return nr(this,n)}}function nr(t,e){return!e||"object"!==Jn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t):e}function rr(t){return(rr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ir=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&tr(t,e)}(o,t);var e,n,r,i=er(o);function o(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(e=i.call(this)).begin=[0,0],e.preventOverlap=!0,e.preventOverlapPadding=10,e.condense=!1,e.sortBy="degree",e.nodeSize=30,e.nodes=[],e.edges=[],e.width=300,e.height=300,e.row=0,e.col=0,e.cellWidth=0,e.cellHeight=0,e.cellUsed={},e.id2manPos={},e.onLayoutEnd=function(){},e.updateCfg(t),e}return e=o,(n=[{key:"getDefaultCfg",value:function(){return{begin:[0,0],preventOverlap:!0,preventOverlapPadding:10,condense:!1,rows:void 0,cols:void 0,position:void 0,sortBy:"degree",nodeSize:30}}},{key:"execute",value:function(){var t=this,e=t.nodes,n=e.length,r=t.begin;if(0!==n){if(1===n)return e[0].x=r[0],e[0].y=r[1],void(t.onLayoutEnd&&t.onLayoutEnd());var i=t.edges,o=[];e.forEach((function(t){o.push(t)}));var a={};if(o.forEach((function(t,e){a[t.id]=e})),("degree"===t.sortBy||!Bn(t.sortBy)||void 0===o[0][t.sortBy])&&(t.sortBy="degree",zn(e[0].degree))){var s=Vn(o.length,a,i);o.forEach((function(t,e){t.degree=s[e]}))}o.sort((function(e,n){return n[t.sortBy]-e[t.sortBy]})),t.width||"undefined"==typeof window||(t.width=window.innerWidth),t.height||"undefined"==typeof window||(t.height=window.innerHeight);var u=t.rows,c=null!=t.cols?t.cols:t.columns;if(t.cells=n,null!=u&&null!=c?(t.rows=u,t.cols=c):null!=u&&null==c?(t.rows=u,t.cols=Math.ceil(t.cells/t.rows)):null==u&&null!=c?(t.cols=c,t.rows=Math.ceil(t.cells/t.cols)):(t.splits=Math.sqrt(t.cells*t.height/t.width),t.rows=Math.round(t.splits),t.cols=Math.round(t.width/t.height*t.splits)),t.cols*t.rows>t.cells){var f=t.small(),l=t.large();(f-1)*l>=t.cells?t.small(f-1):(l-1)*f>=t.cells&&t.large(l-1)}else for(;t.cols*t.rows<t.cells;){var h=t.small(),d=t.large();(d+1)*h>=t.cells?t.large(d+1):t.small(h+1)}t.cellWidth=t.width/t.cols,t.cellHeight=t.height/t.rows,t.condense&&(t.cellWidth=0,t.cellHeight=0),t.preventOverlap&&o.forEach((function(e){var n,r;e.x&&e.y||(e.x=0,e.y=0),Fn(e.size)?(n=e.size[0],r=e.size[1]):Un(e.size)&&(n=e.size,r=e.size),void 0!==n&&void 0!==r||(Fn(t.nodeSize)?(n=t.nodeSize[0],r=t.nodeSize[1]):Un(t.nodeSize)?(n=t.nodeSize,r=t.nodeSize):(n=30,r=30));var i=t.preventOverlapPadding,o=n+i,a=r+i;t.cellWidth=Math.max(t.cellWidth,o),t.cellHeight=Math.max(t.cellHeight,a)})),t.cellUsed={},t.row=0,t.col=0,t.id2manPos={};for(var p=0;p<o.length;p++){var g=o[p],v=void 0;if(t.position&&(v=t.position(g)),v&&(void 0!==v.row||void 0!==v.col)){var y={row:v.row,col:v.col};if(void 0===y.col)for(y.col=0;t.used(y.row,y.col);)y.col++;else if(void 0===y.row)for(y.row=0;t.used(y.row,y.col);)y.row++;t.id2manPos[g.id]=y,t.use(y.row,y.col)}t.getPos(g)}return t.onLayoutEnd&&t.onLayoutEnd(),{edges:i,nodes:o}}t.onLayoutEnd&&t.onLayoutEnd()}},{key:"small",value:function(t){var e,n=this.rows||5,r=this.cols||5;return null==t?e=Math.min(n,r):Math.min(n,r)===this.rows?this.rows=t:this.cols=t,e}},{key:"large",value:function(t){var e,n=this.rows||5,r=this.cols||5;return null==t?e=Math.max(n,r):Math.max(n,r)===this.rows?this.rows=t:this.cols=t,e}},{key:"used",value:function(t,e){return this.cellUsed["c-".concat(t,"-").concat(e)]||!1}},{key:"use",value:function(t,e){this.cellUsed["c-".concat(t,"-").concat(e)]=!0}},{key:"moveToNextCell",value:function(){var t=this.cols||5;this.col++,this.col>=t&&(this.col=0,this.row++)}},{key:"getPos",value:function(t){var e,n,r=this.begin,i=this.cellWidth,o=this.cellHeight,a=this.id2manPos[t.id];if(a)e=a.col*i+i/2+r[0],n=a.row*o+o/2+r[1];else{for(;this.used(this.row,this.col);)this.moveToNextCell();e=this.col*i+i/2+r[0],n=this.row*o+o/2+r[1],this.use(this.row,this.col),this.moveToNextCell()}t.x=e,t.y=n}},{key:"getType",value:function(){return"grid"}}])&&$n(e.prototype,n),r&&$n(e,r),o}(Qn);function or(t){return(or="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ar(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function sr(t,e){return(sr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ur(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=fr(t);if(e){var i=fr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return cr(this,n)}}function cr(t,e){return!e||"object"!==or(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t):e}function fr(t){return(fr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var lr=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&sr(t,e)}(o,t);var e,n,r,i=ur(o);function o(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(e=i.call(this)).center=[0,0],e.width=300,e.height=300,e.nodes=[],e.edges=[],e.onLayoutEnd=function(){},e.updateCfg(t),e}return e=o,(n=[{key:"getDefaultCfg",value:function(){return{center:[0,0],width:300,height:300}}},{key:"execute",value:function(){var t=this,e=t.nodes,n=t.center;return t.width||"undefined"==typeof window||(t.width=window.innerWidth),t.height||"undefined"==typeof window||(t.height=window.innerHeight),e&&e.forEach((function(e){e.x=.9*(Math.random()-.5)*t.width+n[0],e.y=.9*(Math.random()-.5)*t.height+n[1]})),t.onLayoutEnd&&t.onLayoutEnd(),{nodes:e,edges:this.edges}}},{key:"getType",value:function(){return"random"}}])&&ar(e.prototype,n),r&&ar(e,r),o}(Qn);function hr(t){return(hr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function dr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function pr(t,e){return(pr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function gr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=yr(t);if(e){var i=yr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return vr(this,n)}}function vr(t,e){return!e||"object"!==hr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t):e}function yr(t){return(yr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var mr=function(t,e){return t?Un(t)?function(e){return t}:t:function(t){return e||1}},br=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&pr(t,e)}(o,t);var e,n,r,i=gr(o);function o(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(e=i.call(this)).maxIteration=1e3,e.edgeStrength=200,e.nodeStrength=1e3,e.coulombDisScale=.005,e.damping=.9,e.maxSpeed=1e3,e.minMovement=.5,e.interval=.02,e.factor=1,e.linkDistance=1,e.gravity=10,e.preventOverlap=!0,e.tick=function(){},e.nodes=[],e.edges=[],e.width=300,e.height=300,e.nodeMap={},e.nodeIdxMap={},e.updateCfg(t),e}return e=o,(n=[{key:"getDefaultCfg",value:function(){return{maxIteration:500,gravity:10,enableTick:!0}}},{key:"execute",value:function(){var t=this,e=t.nodes;if(void 0!==t.timeInterval&&"undefined"!=typeof window&&window.clearInterval(t.timeInterval),e&&0!==e.length){t.width||"undefined"==typeof window||(t.width=window.innerWidth),t.height||"undefined"==typeof window||(t.height=window.innerHeight),t.center||(t.center=[t.width/2,t.height/2]);var n=t.center;if(1===e.length)return e[0].x=n[0],e[0].y=n[1],void(t.onLayoutEnd&&t.onLayoutEnd());var r={},i={};e.forEach((function(e,n){Un(e.x)||(e.x=Math.random()*t.width),Un(e.y)||(e.y=Math.random()*t.height),r[e.id]=e,i[e.id]=n})),t.nodeMap=r,t.nodeIdxMap=i,t.linkDistance=mr(t.linkDistance,1),t.nodeStrength=mr(t.nodeStrength,1),t.edgeStrength=mr(t.edgeStrength,1);var o,a=t.nodeSize;if(t.preventOverlap){var s,u=t.nodeSpacing;s=Un(u)?function(){return u}:Kn(u)?u:function(){return 0},o=a?Fn(a)?function(t){return(a[0]>a[1]?a[0]:a[1])+s(t)}:function(t){return a+s(t)}:function(t){return t.size?Fn(t.size)?(t.size[0]>t.size[1]?t.size[0]:t.size[1])+s(t):t.size+s(t):10+s(t)}}t.nodeSize=o;var c=t.edges;t.degrees=Vn(e.length,t.nodeIdxMap,c),t.getMass||(t.getMass=function(e){return t.degrees[t.nodeIdxMap[e.id]]}),t.run()}else t.onLayoutEnd&&t.onLayoutEnd()}},{key:"run",value:function(){var t=this,e=t.nodes,n=t.edges,r=t.maxIteration;if("undefined"!=typeof window){var i=0;this.timeInterval=window.setInterval((function(){var o=[],a=[];if(e){e.forEach((function(t,e){o[2*e]=0,o[2*e+1]=0,a[2*e]=0,a[2*e+1]=0})),t.calRepulsive(o,e),n&&t.calAttractive(o,n),t.calGravity(o,e);var s=Math.max(.02,t.interval-.002*i);t.updateVelocity(o,a,s,e);var u=[];e.forEach((function(t){u.push({x:t.x,y:t.y})})),t.updatePosition(a,s,e),t.tick&&t.tick();var c=0;e.forEach((function(t,e){var n=t.x-u[e].x,r=t.y-u[e].y;c+=Math.sqrt(n*n+r*r)})),(c/=e.length)<t.minMovement&&(window.clearInterval(t.timeInterval),t.onLayoutEnd&&t.onLayoutEnd()),++i>r&&(window.clearInterval(t.timeInterval),t.onLayoutEnd&&t.onLayoutEnd())}}),0)}}},{key:"calRepulsive",value:function(t,e){var n=this.getMass,r=this.nodeStrength,i=this.factor,o=this.coulombDisScale,a=this.preventOverlap,s=this.nodeSize;e.forEach((function(u,c){var f=n?n(u):1;e.forEach((function(e,l){if(!(c>=l)){var h=u.x-e.x,d=u.y-e.y,p=Math.sqrt(h*h+d*d)+.01,g=(p+.1)*o,v=h/p,y=d/p,m=(r(u)+r(e))/2*i/(g*g),b=n?n(e):1;if(t[2*c]+=v*m/f,t[2*c+1]+=y*m/f,t[2*l]-=v*m/b,t[2*l+1]-=y*m/b,a&&p<(s(u)+s(e))/2){var x=(r(u)+r(e))/2/(p*p);t[2*c]+=v*x/f,t[2*c+1]+=y*x/f,t[2*l]-=v*x/b,t[2*l+1]-=y*x/b}}}))}))}},{key:"calAttractive",value:function(t,e){var n=this.nodeMap,r=this.nodeIdxMap,i=this.linkDistance,o=this.edgeStrength,a=this.getMass;e.forEach((function(e,s){var u=n[e.source],c=n[e.target],f=c.x-u.x,l=c.y-u.y,h=Math.sqrt(f*f+l*l)+.01,d=f/h,p=l/h,g=((i(e)||1)-h)*o(e),v=r[e.source],y=r[e.target],m=a?a(u):1,b=a?a(c):1;t[2*v]-=d*g/m,t[2*v+1]-=p*g/m,t[2*y]+=d*g/b,t[2*y+1]+=p*g/b}))}},{key:"calGravity",value:function(t,e){for(var n=this.center,r=this.gravity,i=this.degrees,o=e.length,a=0;a<o;a++){var s=e[a],u=s.x-n[0],c=s.y-n[1],f=r;if(this.getCenter){var l=this.getCenter(s,i[a]);l&&Un(l[0])&&Un(l[1])&&Un(l[2])&&(u=s.x-l[0],c=s.y-l[1],f=l[2])}f&&(t[2*a]-=f*u,t[2*a+1]-=f*c)}}},{key:"updateVelocity",value:function(t,e,n,r){var i=this,o=n*i.damping;r.forEach((function(n,r){var a=t[2*r]*o||.01,s=t[2*r+1]*o||.01,u=Math.sqrt(a*a+s*s);if(u>i.maxSpeed){var c=i.maxSpeed/u;a*=c,s*=c}e[2*r]=a,e[2*r+1]=s}))}},{key:"updatePosition",value:function(t,e,n){n.forEach((function(n,r){var i=t[2*r]*e,o=t[2*r+1]*e;n.x+=i,n.y+=o}))}},{key:"stop",value:function(){this.timeInterval&&"undefined"!=typeof window&&window.clearInterval(this.timeInterval)}},{key:"destroy",value:function(){this.stop(),this.tick=null,this.nodes=null,this.edges=null,this.destroyed=!0}},{key:"getType",value:function(){return"gForce"}}])&&dr(e.prototype,n),r&&dr(e,r),o}(Qn);function xr(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var i,o,a,s,u,c,f,l,h,d=t._root,p={data:r},g=t._x0,v=t._y0,y=t._x1,m=t._y1;if(!d)return t._root=p,t;for(;d.length;)if((c=e>=(o=(g+y)/2))?g=o:y=o,(f=n>=(a=(v+m)/2))?v=a:m=a,i=d,!(d=d[l=f<<1|c]))return i[l]=p,t;if(s=+t._x.call(null,d.data),u=+t._y.call(null,d.data),e===s&&n===u)return p.next=d,i?i[l]=p:t._root=p,t;do{i=i?i[l]=new Array(4):t._root=new Array(4),(c=e>=(o=(g+y)/2))?g=o:y=o,(f=n>=(a=(v+m)/2))?v=a:m=a}while((l=f<<1|c)==(h=(u>=a)<<1|s>=o));return i[h]=d,i[l]=p,t}var wr=function(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i};function Sr(t){return t[0]}function Er(t){return t[1]}function _r(t,e,n){var r=new Or(null==e?Sr:e,null==n?Er:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Or(t,e,n,r,i,o){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function kr(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var Mr=_r.prototype=Or.prototype;Mr.copy=function(){var t,e,n=new Or(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=kr(r),n;for(t=[{source:r,target:n._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(e=r.source[i])&&(e.length?t.push({source:e,target:r.target[i]=new Array(4)}):r.target[i]=kr(e));return n},Mr.add=function(t){var e=+this._x.call(null,t),n=+this._y.call(null,t);return xr(this.cover(e,n),e,n,t)},Mr.addAll=function(t){var e,n,r,i,o=t.length,a=new Array(o),s=new Array(o),u=1/0,c=1/0,f=-1/0,l=-1/0;for(n=0;n<o;++n)isNaN(r=+this._x.call(null,e=t[n]))||isNaN(i=+this._y.call(null,e))||(a[n]=r,s[n]=i,r<u&&(u=r),r>f&&(f=r),i<c&&(c=i),i>l&&(l=i));if(u>f||c>l)return this;for(this.cover(u,c).cover(f,l),n=0;n<o;++n)xr(this,a[n],s[n],t[n]);return this},Mr.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(n))i=(n=Math.floor(t))+1,o=(r=Math.floor(e))+1;else{for(var a,s,u=i-n||1,c=this._root;n>t||t>=i||r>e||e>=o;)switch(s=(e<r)<<1|t<n,(a=new Array(4))[s]=c,c=a,u*=2,s){case 0:i=n+u,o=r+u;break;case 1:n=i-u,o=r+u;break;case 2:i=n+u,r=o-u;break;case 3:n=i-u,r=o-u}this._root&&this._root.length&&(this._root=c)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this},Mr.data=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},Mr.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},Mr.find=function(t,e,n){var r,i,o,a,s,u,c,f=this._x0,l=this._y0,h=this._x1,d=this._y1,p=[],g=this._root;for(g&&p.push(new wr(g,f,l,h,d)),null==n?n=1/0:(f=t-n,l=e-n,h=t+n,d=e+n,n*=n);u=p.pop();)if(!(!(g=u.node)||(i=u.x0)>h||(o=u.y0)>d||(a=u.x1)<f||(s=u.y1)<l))if(g.length){var v=(i+a)/2,y=(o+s)/2;p.push(new wr(g[3],v,y,a,s),new wr(g[2],i,y,v,s),new wr(g[1],v,o,a,y),new wr(g[0],i,o,v,y)),(c=(e>=y)<<1|t>=v)&&(u=p[p.length-1],p[p.length-1]=p[p.length-1-c],p[p.length-1-c]=u)}else{var m=t-+this._x.call(null,g.data),b=e-+this._y.call(null,g.data),x=m*m+b*b;if(x<n){var w=Math.sqrt(n=x);f=t-w,l=e-w,h=t+w,d=e+w,r=g.data}}return r},Mr.remove=function(t){if(isNaN(o=+this._x.call(null,t))||isNaN(a=+this._y.call(null,t)))return this;var e,n,r,i,o,a,s,u,c,f,l,h,d=this._root,p=this._x0,g=this._y0,v=this._x1,y=this._y1;if(!d)return this;if(d.length)for(;;){if((c=o>=(s=(p+v)/2))?p=s:v=s,(f=a>=(u=(g+y)/2))?g=u:y=u,e=d,!(d=d[l=f<<1|c]))return this;if(!d.length)break;(e[l+1&3]||e[l+2&3]||e[l+3&3])&&(n=e,h=l)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):e?(i?e[l]=i:delete e[l],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(n?n[h]=d:this._root=d),this):(this._root=i,this)},Mr.removeAll=function(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this},Mr.root=function(){return this._root},Mr.size=function(){var t=0;return this.visit((function(e){if(!e.length)do{++t}while(e=e.next)})),t},Mr.visit=function(t){var e,n,r,i,o,a,s=[],u=this._root;for(u&&s.push(new wr(u,this._x0,this._y0,this._x1,this._y1));e=s.pop();)if(!t(u=e.node,r=e.x0,i=e.y0,o=e.x1,a=e.y1)&&u.length){var c=(r+o)/2,f=(i+a)/2;(n=u[3])&&s.push(new wr(n,c,f,o,a)),(n=u[2])&&s.push(new wr(n,r,f,c,a)),(n=u[1])&&s.push(new wr(n,c,i,o,f)),(n=u[0])&&s.push(new wr(n,r,i,c,f))}return this},Mr.visitAfter=function(t){var e,n=[],r=[];for(this._root&&n.push(new wr(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var i=e.node;if(i.length){var o,a=e.x0,s=e.y0,u=e.x1,c=e.y1,f=(a+u)/2,l=(s+c)/2;(o=i[0])&&n.push(new wr(o,a,s,f,l)),(o=i[1])&&n.push(new wr(o,f,s,u,l)),(o=i[2])&&n.push(new wr(o,a,l,f,c)),(o=i[3])&&n.push(new wr(o,f,l,u,c))}r.push(e)}for(;e=r.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},Mr.x=function(t){return arguments.length?(this._x=t,this):this._x},Mr.y=function(t){return arguments.length?(this._y=t,this):this._y};var Ar=function(t){return function(){return t}},Tr=function(t){return 1e-6*(t()-.5)},Cr={value:function(){}};function Ir(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new Pr(r)}function Pr(t){this._=t}function jr(t,e){return t.trim().split(/^|\\s+/).map((function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function Dr(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function Nr(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=Cr,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}Pr.prototype=Ir.prototype={constructor:Pr,on:function(t,e){var n,r=this._,i=jr(t+"",r),o=-1,a=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++o<a;)if(n=(t=i[o]).type)r[n]=Nr(r[n],t.name,e);else if(null==e)for(n in r)r[n]=Nr(r[n],t.name,null);return this}for(;++o<a;)if((n=(t=i[o]).type)&&(n=Dr(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Pr(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,n=(r=this._[t]).length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};var Rr=Ir;function Lr(t){return(Lr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Br,Gr,Fr=0,Ur=0,zr=0,Vr=0,Wr=0,Xr=0,Yr="object"===("undefined"==typeof performance?"undefined":Lr(performance))&&performance.now?performance:Date,Hr="object"===("undefined"==typeof window?"undefined":Lr(window))&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function qr(){return Wr||(Hr(Kr),Wr=Yr.now()+Xr)}function Kr(){Wr=0}function Zr(){this._call=this._time=this._next=null}function Qr(t,e,n){var r=new Zr;return r.restart(t,e,n),r}function Jr(){Wr=(Vr=Yr.now())+Xr,Fr=Ur=0;try{!function(){qr(),++Fr;for(var t,e=Br;e;)(t=Wr-e._time)>=0&&e._call.call(null,t),e=e._next;--Fr}()}finally{Fr=0,function(){var t,e,n=Br,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Br=e);Gr=t,ti(r)}(),Wr=0}}function $r(){var t=Yr.now(),e=t-Vr;e>1e3&&(Xr-=e,Vr=t)}function ti(t){Fr||(Ur&&(Ur=clearTimeout(Ur)),t-Wr>24?(t<1/0&&(Ur=setTimeout(Jr,t-Yr.now()-Xr)),zr&&(zr=clearInterval(zr))):(zr||(Vr=Yr.now(),zr=setInterval($r,1e3)),Fr=1,Hr(Jr)))}Zr.prototype=Qr.prototype={constructor:Zr,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?qr():+n)+(null==e?0:+e),this._next||Gr===this||(Gr?Gr._next=this:Br=this,Gr=this),this._call=t,this._time=n,ti()},stop:function(){this._call&&(this._call=null,this._time=1/0,ti())}};function ei(t){return t.x}function ni(t){return t.y}var ri=Math.PI*(3-Math.sqrt(5)),ii=function(t){var e,n,r=1,i=.001,o=1-Math.pow(i,1/300),a=0,s=.6,u=new Map,c=Qr(h),f=Rr("tick","end"),l=(n=1,function(){return(n=(1664525*n+1013904223)%4294967296)/4294967296});function h(){d(),f.call("tick",e),r<i&&(c.stop(),f.call("end",e))}function d(n){var i,c,f=t.length;void 0===n&&(n=1);for(var l=0;l<n;++l)for(r+=(a-r)*o,u.forEach((function(t){t(r)})),i=0;i<f;++i)null==(c=t[i]).fx?c.x+=c.vx*=s:(c.x=c.fx,c.vx=0),null==c.fy?c.y+=c.vy*=s:(c.y=c.fy,c.vy=0);return e}function p(){for(var e,n=0,r=t.length;n<r;++n){if((e=t[n]).index=n,null!=e.fx&&(e.x=e.fx),null!=e.fy&&(e.y=e.fy),isNaN(e.x)||isNaN(e.y)){var i=10*Math.sqrt(.5+n),o=n*ri;e.x=i*Math.cos(o),e.y=i*Math.sin(o)}(isNaN(e.vx)||isNaN(e.vy))&&(e.vx=e.vy=0)}}function g(e){return e.initialize&&e.initialize(t,l),e}return null==t&&(t=[]),p(),e={tick:d,restart:function(){return c.restart(h),e},stop:function(){return c.stop(),e},nodes:function(n){return arguments.length?(t=n,p(),u.forEach(g),e):t},alpha:function(t){return arguments.length?(r=+t,e):r},alphaMin:function(t){return arguments.length?(i=+t,e):i},alphaDecay:function(t){return arguments.length?(o=+t,e):+o},alphaTarget:function(t){return arguments.length?(a=+t,e):a},velocityDecay:function(t){return arguments.length?(s=1-t,e):1-s},randomSource:function(t){return arguments.length?(l=t,u.forEach(g),e):l},force:function(t,n){return arguments.length>1?(null==n?u.delete(t):u.set(t,g(n)),e):u.get(t)},find:function(e,n,r){var i,o,a,s,u,c=0,f=t.length;for(null==r?r=1/0:r*=r,c=0;c<f;++c)(a=(i=e-(s=t[c]).x)*i+(o=n-s.y)*o)<r&&(u=s,r=a);return u},on:function(t,n){return arguments.length>1?(f.on(t,n),e):f.on(t)}}},oi=function(){var t,e,n,r,i,o=Ar(-30),a=1,s=1/0,u=.81;function c(n){var i,o=t.length,a=_r(t,ei,ni).visitAfter(l);for(r=n,i=0;i<o;++i)e=t[i],a.visit(h)}function f(){if(t){var e,n,r=t.length;for(i=new Array(r),e=0;e<r;++e)n=t[e],i[n.index]=+o(n,e,t)}}function l(t){var e,n,r,o,a,s=0,u=0;if(t.length){for(r=o=a=0;a<4;++a)(e=t[a])&&(n=Math.abs(e.value))&&(s+=e.value,u+=n,r+=n*e.x,o+=n*e.y);t.x=r/u,t.y=o/u}else{(e=t).x=e.data.x,e.y=e.data.y;do{s+=i[e.data.index]}while(e=e.next)}t.value=s}function h(t,o,c,f){if(!t.value)return!0;var l=t.x-e.x,h=t.y-e.y,d=f-o,p=l*l+h*h;if(d*d/u<p)return p<s&&(0===l&&(p+=(l=Tr(n))*l),0===h&&(p+=(h=Tr(n))*h),p<a&&(p=Math.sqrt(a*p)),e.vx+=l*t.value*r/p,e.vy+=h*t.value*r/p),!0;if(!(t.length||p>=s)){(t.data!==e||t.next)&&(0===l&&(p+=(l=Tr(n))*l),0===h&&(p+=(h=Tr(n))*h),p<a&&(p=Math.sqrt(a*p)));do{t.data!==e&&(d=i[t.data.index]*r/p,e.vx+=l*d,e.vy+=h*d)}while(t=t.next)}}return c.initialize=function(e,r){t=e,n=r,f()},c.strength=function(t){return arguments.length?(o="function"==typeof t?t:Ar(+t),f(),c):o},c.distanceMin=function(t){return arguments.length?(a=t*t,c):Math.sqrt(a)},c.distanceMax=function(t){return arguments.length?(s=t*t,c):Math.sqrt(s)},c.theta=function(t){return arguments.length?(u=t*t,c):Math.sqrt(u)},c};function ai(t){return(ai="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function si(t){return t.index}function ui(t,e){var n=t.get(e);if(!n)throw new Error("node not found: "+e);return n}var ci=function(t){var e,n,r,i,o,a,s=si,u=function(t){return 1/Math.min(i[t.source.index],i[t.target.index])},c=Ar(30),f=1;function l(r){for(var i=0,s=t.length;i<f;++i)for(var u,c,l,h,d,p,g,v=0;v<s;++v)c=(u=t[v]).source,h=(l=u.target).x+l.vx-c.x-c.vx||Tr(a),d=l.y+l.vy-c.y-c.vy||Tr(a),h*=p=((p=Math.sqrt(h*h+d*d))-n[v])/p*r*e[v],d*=p,l.vx-=h*(g=o[v]),l.vy-=d*g,c.vx+=h*(g=1-g),c.vy+=d*g}function h(){if(r){var a,u,c=r.length,f=t.length,l=new Map(r.map((function(t,e){return[s(t,e,r),t]})));for(a=0,i=new Array(c);a<f;++a)(u=t[a]).index=a,"object"!==ai(u.source)&&(u.source=ui(l,u.source)),"object"!==ai(u.target)&&(u.target=ui(l,u.target)),i[u.source.index]=(i[u.source.index]||0)+1,i[u.target.index]=(i[u.target.index]||0)+1;for(a=0,o=new Array(f);a<f;++a)u=t[a],o[a]=i[u.source.index]/(i[u.source.index]+i[u.target.index]);e=new Array(f),d(),n=new Array(f),p()}}function d(){if(r)for(var n=0,i=t.length;n<i;++n)e[n]=+u(t[n],n,t)}function p(){if(r)for(var e=0,i=t.length;e<i;++e)n[e]=+c(t[e],e,t)}return null==t&&(t=[]),l.initialize=function(t,e){r=t,a=e,h()},l.links=function(e){return arguments.length?(t=e,h(),l):t},l.id=function(t){return arguments.length?(s=t,l):s},l.iterations=function(t){return arguments.length?(f=+t,l):f},l.strength=function(t){return arguments.length?(u="function"==typeof t?t:Ar(+t),d(),l):u},l.distance=function(t){return arguments.length?(c="function"==typeof t?t:Ar(+t),p(),l):c},l};function fi(t){return t.x+t.vx}function li(t){return t.y+t.vy}var hi=function(t){var e,n,r,i=1,o=1;function a(){for(var t,a,u,c,f,l,h,d=e.length,p=0;p<o;++p)for(a=_r(e,fi,li).visitAfter(s),t=0;t<d;++t)u=e[t],l=n[u.index],h=l*l,c=u.x+u.vx,f=u.y+u.vy,a.visit(g);function g(t,e,n,o,a){var s=t.data,d=t.r,p=l+d;if(!s)return e>c+p||o<c-p||n>f+p||a<f-p;if(s.index>u.index){var g=c-s.x-s.vx,v=f-s.y-s.vy,y=g*g+v*v;y<p*p&&(0===g&&(y+=(g=Tr(r))*g),0===v&&(y+=(v=Tr(r))*v),y=(p-(y=Math.sqrt(y)))/y*i,u.vx+=(g*=y)*(p=(d*=d)/(h+d)),u.vy+=(v*=y)*p,s.vx-=g*(p=1-p),s.vy-=v*p)}}}function s(t){if(t.data)return t.r=n[t.data.index];for(var e=t.r=0;e<4;++e)t[e]&&t[e].r>t.r&&(t.r=t[e].r)}function u(){if(e){var r,i,o=e.length;for(n=new Array(o),r=0;r<o;++r)i=e[r],n[i.index]=+t(i,r,e)}}return"function"!=typeof t&&(t=Ar(null==t?1:+t)),a.initialize=function(t,n){e=t,r=n,u()},a.iterations=function(t){return arguments.length?(o=+t,a):o},a.strength=function(t){return arguments.length?(i=+t,a):i},a.radius=function(e){return arguments.length?(t="function"==typeof e?e:Ar(+e),u(),a):t},a};function di(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return pi(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 pi(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pi(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 gi(){function t(t){return function(){return t}}var e,n=function(t){return t.cluster},r=t(1),i=t(-1),o=t(100),a=t(.1),s=[0,0],u=[],c={},f=[],l=100,h=100,d={none:{x:0,y:0}},p=[],g="force",v=!0,y=.1;function m(t){if(!v)return m;e.tick(),x();for(var r,i=0,o=u.length,a=t*y;i<o;++i)(r=u[i]).vx+=(d[n(r)].x-r.x)*a,r.vy+=(d[n(r)].y-r.y)*a}function b(){u&&function(){if(!u||!u.length)return;if(void 0===n(u[0]))throw Error("Couldnt find the grouping attribute for the nodes. Make sure to set it up with forceInABox.groupBy(\'clusterAttr\') before calling .links()");var t=(d=[],g=[],v={},y=[],s=function(t){var e={};return t.forEach((function(t){var r=n(t);e[r]||(e[r]={count:0,sumforceNodeSize:0})})),t.forEach((function(t){var i=n(t),o=r(t),a=e[i];a.count=a.count+1,a.sumforceNodeSize=a.sumforceNodeSize+Math.PI*(o*o)*1.3,e[i]=a})),e}(u),y=function(t){var e={},r=[];return t.forEach((function(t){var r=function(t){var e=n(c[t.source]),r=n(c[t.target]);return e<=r?"".concat(e,"~").concat(r):"".concat(r,"~").concat(e)}(t),i=0;void 0!==e[r]&&(i=e[r]),i+=1,e[r]=i})),Object.entries(e).forEach((function(t){var e=di(t,2),n=e[0],i=e[1],o=n.split("~")[0],a=n.split("~")[1];void 0!==o&&void 0!==a&&r.push({source:o,target:a,count:i})})),r}(f),Object.keys(s).forEach((function(t,e){var n=s[t];d.push({id:t,size:n.count,r:Math.sqrt(n.sumforceNodeSize/Math.PI)}),v[t]=e})),y.forEach((function(t){var e=v[t.source],n=v[t.target];void 0!==e&&void 0!==n&&g.push({source:e,target:n,count:t.count})})),{nodes:d,links:g});var s,d,g,v,y;e=ii(t.nodes).force("x",function(t){var e,n,r,i=Ar(.1);function o(t){for(var i,o=0,a=e.length;o<a;++o)(i=e[o]).vx+=(r[o]-i.x)*n[o]*t}function a(){if(e){var o,a=e.length;for(n=new Array(a),r=new Array(a),o=0;o<a;++o)n[o]=isNaN(r[o]=+t(e[o],o,e))?0:+i(e[o],o,e)}}return"function"!=typeof t&&(t=Ar(null==t?0:+t)),o.initialize=function(t){e=t,a()},o.strength=function(t){return arguments.length?(i="function"==typeof t?t:Ar(+t),a(),o):i},o.x=function(e){return arguments.length?(t="function"==typeof e?e:Ar(+e),a(),o):t},o}(l).strength(.1)).force("y",function(t){var e,n,r,i=Ar(.1);function o(t){for(var i,o=0,a=e.length;o<a;++o)(i=e[o]).vy+=(r[o]-i.y)*n[o]*t}function a(){if(e){var o,a=e.length;for(n=new Array(a),r=new Array(a),o=0;o<a;++o)n[o]=isNaN(r[o]=+t(e[o],o,e))?0:+i(e[o],o,e)}}return"function"!=typeof t&&(t=Ar(null==t?0:+t)),o.initialize=function(t){e=t,a()},o.strength=function(t){return arguments.length?(i="function"==typeof t?t:Ar(+t),a(),o):i},o.y=function(e){return arguments.length?(t="function"==typeof e?e:Ar(+e),a(),o):t},o}(h).strength(.1)).force("collide",hi((function(t){return t.r})).iterations(4)).force("charge",oi().strength(i)).force("links",ci(t.nodes.length?t.links:[]).distance(o).strength(a)),p=e.nodes(),x()}()}function x(){return d={none:{x:0,y:0}},p.forEach((function(t){d[t.id]={x:t.x-s[0],y:t.y-s[1]}})),d}function w(t){c={},t.forEach((function(t){c[t.id]=t}))}return m.initialize=function(t){u=t,b()},m.template=function(t){return arguments.length?(g=t,b(),m):g},m.groupBy=function(t){return arguments.length?"string"==typeof t?(n=function(e){return e[t]},m):(n=t,m):n},m.enableGrouping=function(t){return arguments.length?(v=t,m):v},m.strength=function(t){return arguments.length?(y=t,m):y},m.centerX=function(t){return arguments.length?(l=t,m):l},m.centerY=function(t){return arguments.length?(h=t,m):h},m.nodes=function(t){return arguments.length?(w(t||[]),u=t||[],m):u},m.links=function(t){return arguments.length?(f=t||[],b(),m):f},m.forceNodeSize=function(e){return arguments.length?(r="function"==typeof e?e:t(+e),b(),m):r},m.nodeSize=m.forceNodeSize,m.forceCharge=function(e){return arguments.length?(i="function"==typeof e?e:t(+e),b(),m):i},m.forceLinkDistance=function(e){return arguments.length?(o="function"==typeof e?e:t(+e),b(),m):o},m.forceLinkStrength=function(e){return arguments.length?(a="function"==typeof e?e:t(+e),b(),m):a},m.offset=function(t){return arguments.length?(s=t,m):s},m.getFocis=x,m}var vi="LAYOUT_RUN",yi="LAYOUT_END",mi="LAYOUT_ERROR",bi="LAYOUT_TICK",xi="GPU_LAYOUT_RUN",wi="GPU_LAYOUT_END";function Si(t){return(Si="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ei(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _i(t,e){return(_i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Oi(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Mi(t);if(e){var i=Mi(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ki(this,n)}}function ki(t,e){return!e||"object"!==Si(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t):e}function Mi(t){return(Mi=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ai=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_i(t,e)}(o,t);var e,n,r,i=Oi(o);function o(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(e=i.call(this)).center=[0,0],e.nodeStrength=null,e.edgeStrength=null,e.preventOverlap=!1,e.clusterNodeStrength=null,e.clusterEdgeStrength=null,e.clusterEdgeDistance=null,e.clusterNodeSize=null,e.clusterFociStrength=null,e.linkDistance=50,e.alphaDecay=.028,e.alphaMin=.001,e.alpha=.3,e.collideStrength=1,e.workerEnabled=!1,e.tick=function(){},e.onLayoutEnd=function(){},e.ticking=void 0,t&&e.updateCfg(t),e}return e=o,(n=[{key:"getDefaultCfg",value:function(){return{center:[0,0],nodeStrength:null,edgeStrength:null,preventOverlap:!1,nodeSize:void 0,nodeSpacing:void 0,linkDistance:50,forceSimulation:null,alphaDecay:.028,alphaMin:.001,alpha:.3,collideStrength:1,clustering:!1,clusterNodeStrength:-1,clusterEdgeStrength:.1,clusterEdgeDistance:100,clusterFociStrength:.8,clusterNodeSize:10,tick:function(){},onLayoutEnd:function(){},workerEnabled:!1}}},{key:"init",value:function(t){this.nodes=t.nodes||[];var e=t.edges||[];this.edges=e.map((function(t){var e={},n=["targetNode","sourceNode","startPoint","endPoint"];return Object.keys(t).forEach((function(r){n.indexOf(r)>-1||(e[r]=t[r])})),e})),this.ticking=!1}},{key:"execute",value:function(t){var e=this,n=e.nodes,r=e.edges;if(!e.ticking){var i=e.forceSimulation,o=e.alphaMin,a=e.alphaDecay,s=e.alpha;if(i){if(t)if(e.clustering&&e.clusterForce&&(e.clusterForce.nodes(n),e.clusterForce.links(r)),i.nodes(n),r&&e.edgeForce)e.edgeForce.links(r);else if(r&&!e.edgeForce){var u=ci().id((function(t){return t.id})).links(r);e.edgeStrength&&u.strength(e.edgeStrength),e.linkDistance&&u.distance(e.linkDistance),e.edgeForce=u,i.force("link",u)}e.preventOverlap&&e.overlapProcess(i),i.alpha(s).restart(),this.ticking=!0}else try{var c=oi();if(e.nodeStrength&&c.strength(e.nodeStrength),i=ii().nodes(n),e.clustering){var f=gi();f.centerX(e.center[0]).centerY(e.center[1]).template("force").strength(e.clusterFociStrength),r&&f.links(r),n&&f.nodes(n),f.forceLinkDistance(e.clusterEdgeDistance).forceLinkStrength(e.clusterEdgeStrength).forceCharge(e.clusterNodeStrength).forceNodeSize(e.clusterNodeSize),e.clusterForce=f,i.force("group",f)}if(i.force("center",function(t,e){var n,r=1;function i(){var i,o,a=n.length,s=0,u=0;for(i=0;i<a;++i)s+=(o=n[i]).x,u+=o.y;for(s=(s/a-t)*r,u=(u/a-e)*r,i=0;i<a;++i)(o=n[i]).x-=s,o.y-=u}return null==t&&(t=0),null==e&&(e=0),i.initialize=function(t){n=t},i.x=function(e){return arguments.length?(t=+e,i):t},i.y=function(t){return arguments.length?(e=+t,i):e},i.strength=function(t){return arguments.length?(r=+t,i):r},i}(e.center[0],e.center[1])).force("charge",c).alpha(s).alphaDecay(a).alphaMin(o),e.preventOverlap&&e.overlapProcess(i),r){var l=ci().id((function(t){return t.id})).links(r);e.edgeStrength&&l.strength(e.edgeStrength),e.linkDistance&&l.distance(e.linkDistance),e.edgeForce=l,i.force("link",l)}if(e.workerEnabled&&!Ti()&&(e.workerEnabled=!1,console.warn("workerEnabled option is only supported when running in web worker.")),e.workerEnabled){i.stop();for(var h=function(t){var e=t.alphaMin(),n=t.alphaTarget(),r=t.alpha(),i=Math.log((e-n)/(r-n))/Math.log(1-t.alphaDecay());return Math.ceil(i)}(i),d=1;d<=h;d++)i.tick(),postMessage({nodes:n,currentTick:d,totalTicks:h,type:bi},void 0);e.ticking=!1}else i.on("tick",(function(){e.tick()})).on("end",(function(){e.ticking=!1,e.onLayoutEnd&&e.onLayoutEnd()})),e.ticking=!0;e.forceSimulation=i,e.ticking=!0}catch(t){e.ticking=!1,console.warn(t)}}}},{key:"overlapProcess",value:function(t){var e,n,r=this.nodeSize,i=this.nodeSpacing,o=this.collideStrength;if(n=Un(i)?function(){return i}:Kn(i)?i:function(){return 0},r)if(Kn(r))e=function(t){return r(t)+n(t)};else if(Fn(r)){var a=(r[0]>r[1]?r[0]:r[1])/2;e=function(t){return a+n(t)}}else if(Un(r)){var s=r/2;e=function(t){return s+n(t)}}else e=function(){return 10};else e=function(t){return t.size?Fn(t.size)?(t.size[0]>t.size[1]?t.size[0]:t.size[1])/2+n(t):t.size/2+n(t):10+n(t)};t.force("collisionForce",hi(e).strength(o))}},{key:"updateCfg",value:function(t){this.ticking&&(this.forceSimulation.stop(),this.ticking=!1),this.forceSimulation=null,Object.assign(this,t)}},{key:"destroy",value:function(){this.ticking&&(this.forceSimulation.stop(),this.ticking=!1),this.nodes=null,this.edges=null,this.destroyed=!0}}])&&Ei(e.prototype,n),r&&Ei(e,r),o}(Qn);function Ti(){return"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope}function Ci(t){return(Ci="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ii(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Pi(t,e){return(Pi=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ji(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ni(t);if(e){var i=Ni(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Di(this,n)}}function Di(t,e){return!e||"object"!==Ci(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t):e}function Ni(t){return(Ni=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ri(t,e,n,r){t.forEach((function(e,n){t[n].children=[],t[n].parent=[]})),r?e.forEach((function(e){var r=0;e.source&&(r=n[e.source]);var i=0;e.target&&(i=n[e.target]);var o=t[r].children,a=t[i].parent;o.push(t[i].id),a.push(t[r].id)})):e.forEach((function(e){var r=0;e.source&&(r=n[e.source]);var i=0;e.target&&(i=n[e.target]);var o=t[r].children,a=t[i].children;o.push(t[i].id),a.push(t[r].id)}))}function Li(t,e,n){for(var r=n.length,i=0;i<r;i++)if(t.id===n[i].source&&e.id===n[i].target||e.id===n[i].source&&t.id===n[i].target)return!0;return!1}function Bi(t,e){var n=t.degree,r=e.degree;return n<r?-1:n>r?1:0}var Gi=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Pi(t,e)}(o,t);var e,n,r,i=ji(o);function o(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(e=i.call(this)).radius=null,e.startRadius=null,e.endRadius=null,e.startAngle=0,e.endAngle=2*Math.PI,e.clockwise=!0,e.divisions=1,e.ordering=null,e.angleRatio=1,e.nodes=[],e.edges=[],e.nodeMap={},e.degrees=[],e.width=300,e.height=300,e.updateCfg(t),e}return e=o,(n=[{key:"getDefaultCfg",value:function(){return{radius:null,startRadius:null,endRadius:null,startAngle:0,endAngle:2*Math.PI,clockwise:!0,divisions:1,ordering:null,angleRatio:1}}},{key:"execute",value:function(){var t=this.nodes,e=this.edges,n=t.length;if(0!==n){this.width||"undefined"==typeof window||(this.width=window.innerWidth),this.height||"undefined"==typeof window||(this.height=window.innerHeight),this.center||(this.center=[this.width/2,this.height/2]);var r=this.center;if(1===n)return t[0].x=r[0],t[0].y=r[1],void(this.onLayoutEnd&&this.onLayoutEnd());var i=this.radius,o=this.startRadius,a=this.endRadius,s=this.divisions,u=this.startAngle,c=this.endAngle,f=(c-u)/n,l={};t.forEach((function(t,e){l[t.id]=e})),this.nodeMap=l;var h=Vn(t.length,l,e);this.degrees=h,i||o||a?!o&&a?o=a:o&&!a&&(a=o):i=this.height>this.width?this.width/2:this.height/2;var d=f*this.angleRatio,p=this.ordering,g=[];g="topology"===p?this.topologyOrdering():"topology-directed"===p?this.topologyOrdering(!0):"degree"===p?this.degreeOrdering():t;for(var v=this.clockwise,y=Math.ceil(n/s),m=0;m<n;++m){var b=i;b||null===o||null===a||(b=o+m*(a-o)/(n-1)),b||(b=10+100*m/(n-1));var x=u+m%y*d+2*Math.PI/s*Math.floor(m/y);v||(x=c-m%y*d-2*Math.PI/s*Math.floor(m/y)),g[m].x=r[0]+Math.cos(x)*b,g[m].y=r[1]+Math.sin(x)*b,g[m].weight=h[m]}return this.onLayoutEnd&&this.onLayoutEnd(),{nodes:g,edges:this.edges}}this.onLayoutEnd&&this.onLayoutEnd()}},{key:"topologyOrdering",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this,n=e.degrees,r=e.edges,i=e.nodes,o=qn(i),a=e.nodeMap,s=[o[0]],u=[i[0]],c=[],f=i.length;c[0]=!0,Ri(o,r,a,t);var l=0;return o.forEach((function(t,e){if(0!==e)if(e!==f-1&&n[e]===n[e+1]&&!Li(s[l],t,r)||c[e]){for(var h=s[l].children,d=!1,p=0;p<h.length;p++){var g=a[h[p]];if(n[g]===n[e]&&!c[g]){s.push(o[g]),u.push(i[a[o[g].id]]),c[g]=!0,d=!0;break}}for(var v=0;!d&&(c[v]||(s.push(o[v]),u.push(i[a[o[v].id]]),c[v]=!0,d=!0),++v!==f););}else s.push(t),u.push(i[a[t.id]]),c[e]=!0,l++})),u}},{key:"degreeOrdering",value:function(){var t=this.nodes,e=[],n=this.degrees;return t.forEach((function(t,r){t.degree=n[r],e.push(t)})),e.sort(Bi),e}},{key:"getType",value:function(){return"circular"}}])&&Ii(e.prototype,n),r&&Ii(e,r),o}(Qn),Fi=n(169),Ui=n.n(Fi);function zi(t){return(zi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Vi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Wi(t,e){return(Wi=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Xi(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Hi(t);if(e){var i=Hi(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Yi(this,n)}}function Yi(t,e){return!e||"object"!==zi(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t):e}function Hi(t){return(Hi=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var qi=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Wi(t,e)}(o,t);var e,n,r,i=Xi(o);function o(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(e=i.call(this)).rankdir="TB",e.nodesep=50,e.ranksep=50,e.controlPoints=!1,e.sortByCombo=!1,e.nodes=[],e.edges=[],e.onLayoutEnd=function(){},e.updateCfg(t),e}return e=o,(n=[{key:"getDefaultCfg",value:function(){return{rankdir:"TB",align:void 0,nodeSize:void 0,nodesepFunc:void 0,ranksepFunc:void 0,nodesep:50,ranksep:50,controlPoints:!1}}},{key:"execute",value:function(){var t=this,e=t.nodes,n=t.nodeSize,r=t.rankdir;if(e){var i,o=t.edges||[],a=new Ui.a.graphlib.Graph;i=n?Fn(n)?function(){return n}:function(){return[n,n]}:function(t){return t.size?Fn(t.size)?t.size:[t.size,t.size]:[40,40]};var s,u=Ki(t.nodesepFunc,t.nodesep,50),c=Ki(t.ranksepFunc,t.ranksep,50);return"LR"!==r&&"RL"!==r||(u=Ki(t.ranksepFunc,t.ranksep,50),c=Ki(t.nodesepFunc,t.nodesep,50)),a.setDefaultEdgeLabel((function(){return{}})),a.setGraph(t),e.forEach((function(t){var e=i(t),n=c(t),r=u(t),o=e[0]+2*r,s=e[1]+2*n;a.setNode(t.id,{width:o,height:s})})),o.forEach((function(t){a.setEdge(t.source,t.target,{weight:t.weight||1})})),Ui.a.layout(a),a.nodes().forEach((function(t){s=a.node(t);var n=e.findIndex((function(e){return e.id===t}));e[n].x=s.x,e[n].y=s.y})),a.edges().forEach((function(e){s=a.edge(e);var n=o.findIndex((function(t){return t.source===e.v&&t.target===e.w}));t.controlPoints&&"loop"!==o[n].type&&(o[n].controlPoints=s.points.slice(1,s.points.length-1))})),t.sortByCombo&&t.sortLevel("comboId"),t.onLayoutEnd&&t.onLayoutEnd(),{nodes:e,edges:o}}}},{key:"sortLevel",value:function(t){var e=this,n=e.nodes,r={};n.forEach((function(t){r[t.y]||(r[t.y]={y:t.y,nodes:[]}),r[t.y].nodes.push(t)})),Object.keys(r).forEach((function(n){var i=r[n].nodes,o=i.length,a={};if(i.forEach((function(t){var e=t.comboId;a[e]||(a[e]={x:0,y:0,count:0}),a[e].x+=t.x,a[e].y+=t.y,a[e].count++})),Object.keys(a).forEach((function(t){a[t].x/=a[t].count,a[t].y/=a[t].count})),1!==o){var s=i.sort((function(t,e){return t.x-e.x})),u=s[0].x,c=(s[o-1].x-u)/(o-1);i.sort((function(e,n){var r=e[t]||"undefined",i=n[t]||"undefined";return r<i?-1:r>i?1:0})).forEach((function(t,e){t.x=u+e*c}))}else e.onLayoutEnd&&e.onLayoutEnd()}))}},{key:"getType",value:function(){return"dagre"}}])&&Vi(e.prototype,n),r&&Vi(e,r),o}(Qn);function Ki(t,e,n){return t||(Un(e)?function(){return e}:function(){return n})}var Zi=Object.prototype.toString;function Qi(t){return Zi.call(t).endsWith("Array]")}var Ji=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Qi(t))throw new TypeError("input must be an array");if(0===t.length)throw new TypeError("input must not be empty");var n=e.fromIndex,r=void 0===n?0:n,i=e.toIndex,o=void 0===i?t.length:i;if(r<0||r>=t.length||!Number.isInteger(r))throw new Error("fromIndex must be a positive integer smaller than length");if(o<=r||o>t.length||!Number.isInteger(o))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var a=t[r],s=r+1;s<o;s++)t[s]>a&&(a=t[s]);return a};var $i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Qi(t))throw new TypeError("input must be an array");if(0===t.length)throw new TypeError("input must not be empty");var n=e.fromIndex,r=void 0===n?0:n,i=e.toIndex,o=void 0===i?t.length:i;if(r<0||r>=t.length||!Number.isInteger(r))throw new Error("fromIndex must be a positive integer smaller than length");if(o<=r||o>t.length||!Number.isInteger(o))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var a=t[r],s=r+1;s<o;s++)t[s]<a&&(a=t[s]);return a};var to=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Qi(t))throw new TypeError("input must be an array");if(0===t.length)throw new TypeError("input must not be empty");if(void 0!==n.output){if(!Qi(n.output))throw new TypeError("output option must be an array if specified");e=n.output}else e=new Array(t.length);var r=$i(t),i=Ji(t);if(r===i)throw new RangeError("minimum and maximum input values are equal. Cannot rescale a constant array");var o=n.min,a=void 0===o?n.autoMinMax?r:0:o,s=n.max,u=void 0===s?n.autoMinMax?i:1:s;if(a>=u)throw new RangeError("min option must be smaller than max option");for(var c=(u-a)/(i-r),f=0;f<t.length;f++)e[f]=(t[f]-r)*c+a;return e},eo=" ".repeat(2),no=" ".repeat(4);function ro(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.maxRows,r=void 0===n?15:n,i=e.maxColumns,o=void 0===i?10:i,a=e.maxNumSize,s=void 0===a?8:a;return"".concat(t.constructor.name," {\\n").concat(eo,"[\\n").concat(no).concat(io(t,r,o,s),"\\n").concat(eo,"]\\n").concat(eo,"rows: ").concat(t.rows,"\\n").concat(eo,"columns: ").concat(t.columns,"\\n}")}function io(t,e,n,r){for(var i=t.rows,o=t.columns,a=Math.min(i,e),s=Math.min(o,n),u=[],c=0;c<a;c++){for(var f=[],l=0;l<s;l++)f.push(oo(t.get(c,l),r));u.push("".concat(f.join(" ")))}return s!==o&&(u[u.length-1]+=" ... ".concat(o-n," more columns")),a!==i&&u.push("... ".concat(i-e," more rows")),u.join("\\n".concat(no))}function oo(t,e){var n=String(t);if(n.length<=e)return n.padEnd(e," ");var r=t.toPrecision(e-2);if(r.length<=e)return r;var i=t.toExponential(e-2),o=i.indexOf("e"),a=i.slice(o);return i.slice(0,e-a.length)+a}function ao(t){return(ao="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function so(t,e,n){var r=n?t.rows:t.rows-1;if(e<0||e>r)throw new RangeError("Row index out of range")}function uo(t,e,n){var r=n?t.columns:t.columns-1;if(e<0||e>r)throw new RangeError("Column index out of range")}function co(t,e){if(e.to1DArray&&(e=e.to1DArray()),e.length!==t.columns)throw new RangeError("vector size must be the same as the number of columns");return e}function fo(t,e){if(e.to1DArray&&(e=e.to1DArray()),e.length!==t.rows)throw new RangeError("vector size must be the same as the number of rows");return e}function lo(t,e){if("object"!==ao(e))throw new TypeError("unexpected type for row indices");if(e.some((function(e){return e<0||e>=t.rows})))throw new RangeError("row indices are out of range");return Array.isArray(e)||(e=Array.from(e)),e}function ho(t,e){if("object"!==ao(e))throw new TypeError("unexpected type for column indices");if(e.some((function(e){return e<0||e>=t.columns})))throw new RangeError("column indices are out of range");return Array.isArray(e)||(e=Array.from(e)),e}function po(t,e,n,r,i){if(5!==arguments.length)throw new RangeError("expected 4 arguments");if(vo("startRow",e),vo("endRow",n),vo("startColumn",r),vo("endColumn",i),e>n||r>i||e<0||e>=t.rows||n<0||n>=t.rows||r<0||r>=t.columns||i<0||i>=t.columns)throw new RangeError("Submatrix indices are out of range")}function go(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=0;r<t;r++)n.push(e);return n}function vo(t,e){if("number"!=typeof e)throw new TypeError("".concat(t," must be a number"))}function yo(t){if(t.isEmpty())throw new Error("Empty matrix has no elements to index")}function mo(t,e,n){for(var r=t.rows,i=t.columns,o=[],a=0;a<r;a++){for(var s=0,u=0,c=0,f=0;f<i;f++)s+=c=t.get(a,f)-n[a],u+=c*c;e?o.push((u-s*s/i)/(i-1)):o.push((u-s*s/i)/i)}return o}function bo(t,e,n){for(var r=t.rows,i=t.columns,o=[],a=0;a<i;a++){for(var s=0,u=0,c=0,f=0;f<r;f++)s+=c=t.get(f,a)-n[a],u+=c*c;e?o.push((u-s*s/r)/(r-1)):o.push((u-s*s/r)/r)}return o}function xo(t,e,n){for(var r=t.rows,i=t.columns,o=r*i,a=0,s=0,u=0,c=0;c<r;c++)for(var f=0;f<i;f++)a+=u=t.get(c,f)-n,s+=u*u;return e?(s-a*a/o)/(o-1):(s-a*a/o)/o}function wo(t,e){for(var n=0;n<t.rows;n++)for(var r=0;r<t.columns;r++)t.set(n,r,t.get(n,r)-e[n])}function So(t,e){for(var n=0;n<t.rows;n++)for(var r=0;r<t.columns;r++)t.set(n,r,t.get(n,r)-e[r])}function Eo(t,e){for(var n=0;n<t.rows;n++)for(var r=0;r<t.columns;r++)t.set(n,r,t.get(n,r)-e)}function _o(t){for(var e=[],n=0;n<t.rows;n++){for(var r=0,i=0;i<t.columns;i++)r+=Math.pow(t.get(n,i),2)/(t.columns-1);e.push(Math.sqrt(r))}return e}function Oo(t,e){for(var n=0;n<t.rows;n++)for(var r=0;r<t.columns;r++)t.set(n,r,t.get(n,r)/e[n])}function ko(t){for(var e=[],n=0;n<t.columns;n++){for(var r=0,i=0;i<t.rows;i++)r+=Math.pow(t.get(i,n),2)/(t.rows-1);e.push(Math.sqrt(r))}return e}function Mo(t,e){for(var n=0;n<t.rows;n++)for(var r=0;r<t.columns;r++)t.set(n,r,t.get(n,r)/e[r])}function Ao(t){for(var e=t.size-1,n=0,r=0;r<t.columns;r++)for(var i=0;i<t.rows;i++)n+=Math.pow(t.get(i,r),2)/e;return Math.sqrt(n)}function To(t,e){for(var n=0;n<t.rows;n++)for(var r=0;r<t.columns;r++)t.set(n,r,t.get(n,r)/e)}function Co(t,e){return(Co=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Io(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=jo(t);if(e){var i=jo(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Po(this,n)}}function Po(t,e){return!e||"object"!==Do(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t):e}function jo(t){return(jo=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Do(t){return(Do="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function No(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ro(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Lo(t,e,n){return e&&Ro(t.prototype,e),n&&Ro(t,n),t}var Bo=function(){function t(){No(this,t)}return Lo(t,[{key:"size",get:function(){return this.rows*this.columns}},{key:"apply",value:function(t){if("function"!=typeof t)throw new TypeError("callback must be a function");for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)t.call(this,e,n);return this}},{key:"to1DArray",value:function(){for(var t=[],e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)t.push(this.get(e,n));return t}},{key:"to2DArray",value:function(){for(var t=[],e=0;e<this.rows;e++){t.push([]);for(var n=0;n<this.columns;n++)t[e].push(this.get(e,n))}return t}},{key:"toJSON",value:function(){return this.to2DArray()}},{key:"isRowVector",value:function(){return 1===this.rows}},{key:"isColumnVector",value:function(){return 1===this.columns}},{key:"isVector",value:function(){return 1===this.rows||1===this.columns}},{key:"isSquare",value:function(){return this.rows===this.columns}},{key:"isEmpty",value:function(){return 0===this.rows||0===this.columns}},{key:"isSymmetric",value:function(){if(this.isSquare()){for(var t=0;t<this.rows;t++)for(var e=0;e<=t;e++)if(this.get(t,e)!==this.get(e,t))return!1;return!0}return!1}},{key:"isEchelonForm",value:function(){for(var t=0,e=0,n=-1,r=!0,i=!1;t<this.rows&&r;){for(e=0,i=!1;e<this.columns&&!1===i;)0===this.get(t,e)?e++:1===this.get(t,e)&&e>n?(i=!0,n=e):(r=!1,i=!0);t++}return r}},{key:"isReducedEchelonForm",value:function(){for(var t=0,e=0,n=-1,r=!0,i=!1;t<this.rows&&r;){for(e=0,i=!1;e<this.columns&&!1===i;)0===this.get(t,e)?e++:1===this.get(t,e)&&e>n?(i=!0,n=e):(r=!1,i=!0);for(var o=e+1;o<this.rows;o++)0!==this.get(t,o)&&(r=!1);t++}return r}},{key:"echelonForm",value:function(){for(var t=this.clone(),e=0,n=0;e<t.rows&&n<t.columns;){for(var r=e,i=e;i<t.rows;i++)t.get(i,n)>t.get(r,n)&&(r=i);if(0===t.get(r,n))n++;else{t.swapRows(e,r);for(var o=t.get(e,n),a=n;a<t.columns;a++)t.set(e,a,t.get(e,a)/o);for(var s=e+1;s<t.rows;s++){var u=t.get(s,n)/t.get(e,n);t.set(s,n,0);for(var c=n+1;c<t.columns;c++)t.set(s,c,t.get(s,c)-t.get(e,c)*u)}e++,n++}}return t}},{key:"reducedEchelonForm",value:function(){for(var t=this.echelonForm(),e=t.columns,n=t.rows,r=n-1;r>=0;)if(0===t.maxRow(r))r--;else{for(var i=0,o=!1;i<n&&!1===o;)1===t.get(r,i)?o=!0:i++;for(var a=0;a<r;a++)for(var s=t.get(a,i),u=i;u<e;u++){var c=t.get(a,u)-s*t.get(r,u);t.set(a,u,c)}r--}return t}},{key:"set",value:function(){throw new Error("set method is unimplemented")}},{key:"get",value:function(){throw new Error("get method is unimplemented")}},{key:"repeat",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("object"!==Do(t))throw new TypeError("options must be an object");var e=t.rows,n=void 0===e?1:e,r=t.columns,i=void 0===r?1:r;if(!Number.isInteger(n)||n<=0)throw new TypeError("rows must be a positive integer");if(!Number.isInteger(i)||i<=0)throw new TypeError("columns must be a positive integer");for(var o=new zo(this.rows*n,this.columns*i),a=0;a<n;a++)for(var s=0;s<i;s++)o.setSubMatrix(this,this.rows*a,this.columns*s);return o}},{key:"fill",value:function(t){for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,t);return this}},{key:"neg",value:function(){return this.mulS(-1)}},{key:"getRow",value:function(t){so(this,t);for(var e=[],n=0;n<this.columns;n++)e.push(this.get(t,n));return e}},{key:"getRowVector",value:function(t){return zo.rowVector(this.getRow(t))}},{key:"setRow",value:function(t,e){so(this,t),e=co(this,e);for(var n=0;n<this.columns;n++)this.set(t,n,e[n]);return this}},{key:"swapRows",value:function(t,e){so(this,t),so(this,e);for(var n=0;n<this.columns;n++){var r=this.get(t,n);this.set(t,n,this.get(e,n)),this.set(e,n,r)}return this}},{key:"getColumn",value:function(t){uo(this,t);for(var e=[],n=0;n<this.rows;n++)e.push(this.get(n,t));return e}},{key:"getColumnVector",value:function(t){return zo.columnVector(this.getColumn(t))}},{key:"setColumn",value:function(t,e){uo(this,t),e=fo(this,e);for(var n=0;n<this.rows;n++)this.set(n,t,e[n]);return this}},{key:"swapColumns",value:function(t,e){uo(this,t),uo(this,e);for(var n=0;n<this.rows;n++){var r=this.get(n,t);this.set(n,t,this.get(n,e)),this.set(n,e,r)}return this}},{key:"addRowVector",value:function(t){t=co(this,t);for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)+t[n]);return this}},{key:"subRowVector",value:function(t){t=co(this,t);for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)-t[n]);return this}},{key:"mulRowVector",value:function(t){t=co(this,t);for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)*t[n]);return this}},{key:"divRowVector",value:function(t){t=co(this,t);for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)/t[n]);return this}},{key:"addColumnVector",value:function(t){t=fo(this,t);for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)+t[e]);return this}},{key:"subColumnVector",value:function(t){t=fo(this,t);for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)-t[e]);return this}},{key:"mulColumnVector",value:function(t){t=fo(this,t);for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)*t[e]);return this}},{key:"divColumnVector",value:function(t){t=fo(this,t);for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)/t[e]);return this}},{key:"mulRow",value:function(t,e){so(this,t);for(var n=0;n<this.columns;n++)this.set(t,n,this.get(t,n)*e);return this}},{key:"mulColumn",value:function(t,e){uo(this,t);for(var n=0;n<this.rows;n++)this.set(n,t,this.get(n,t)*e);return this}},{key:"max",value:function(){if(this.isEmpty())return NaN;for(var t=this.get(0,0),e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.get(e,n)>t&&(t=this.get(e,n));return t}},{key:"maxIndex",value:function(){yo(this);for(var t=this.get(0,0),e=[0,0],n=0;n<this.rows;n++)for(var r=0;r<this.columns;r++)this.get(n,r)>t&&(t=this.get(n,r),e[0]=n,e[1]=r);return e}},{key:"min",value:function(){if(this.isEmpty())return NaN;for(var t=this.get(0,0),e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.get(e,n)<t&&(t=this.get(e,n));return t}},{key:"minIndex",value:function(){yo(this);for(var t=this.get(0,0),e=[0,0],n=0;n<this.rows;n++)for(var r=0;r<this.columns;r++)this.get(n,r)<t&&(t=this.get(n,r),e[0]=n,e[1]=r);return e}},{key:"maxRow",value:function(t){if(so(this,t),this.isEmpty())return NaN;for(var e=this.get(t,0),n=1;n<this.columns;n++)this.get(t,n)>e&&(e=this.get(t,n));return e}},{key:"maxRowIndex",value:function(t){so(this,t),yo(this);for(var e=this.get(t,0),n=[t,0],r=1;r<this.columns;r++)this.get(t,r)>e&&(e=this.get(t,r),n[1]=r);return n}},{key:"minRow",value:function(t){if(so(this,t),this.isEmpty())return NaN;for(var e=this.get(t,0),n=1;n<this.columns;n++)this.get(t,n)<e&&(e=this.get(t,n));return e}},{key:"minRowIndex",value:function(t){so(this,t),yo(this);for(var e=this.get(t,0),n=[t,0],r=1;r<this.columns;r++)this.get(t,r)<e&&(e=this.get(t,r),n[1]=r);return n}},{key:"maxColumn",value:function(t){if(uo(this,t),this.isEmpty())return NaN;for(var e=this.get(0,t),n=1;n<this.rows;n++)this.get(n,t)>e&&(e=this.get(n,t));return e}},{key:"maxColumnIndex",value:function(t){uo(this,t),yo(this);for(var e=this.get(0,t),n=[0,t],r=1;r<this.rows;r++)this.get(r,t)>e&&(e=this.get(r,t),n[0]=r);return n}},{key:"minColumn",value:function(t){if(uo(this,t),this.isEmpty())return NaN;for(var e=this.get(0,t),n=1;n<this.rows;n++)this.get(n,t)<e&&(e=this.get(n,t));return e}},{key:"minColumnIndex",value:function(t){uo(this,t),yo(this);for(var e=this.get(0,t),n=[0,t],r=1;r<this.rows;r++)this.get(r,t)<e&&(e=this.get(r,t),n[0]=r);return n}},{key:"diag",value:function(){for(var t=Math.min(this.rows,this.columns),e=[],n=0;n<t;n++)e.push(this.get(n,n));return e}},{key:"norm",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"frobenius",e=0;if("max"===t)return this.max();if("frobenius"===t){for(var n=0;n<this.rows;n++)for(var r=0;r<this.columns;r++)e+=this.get(n,r)*this.get(n,r);return Math.sqrt(e)}throw new RangeError("unknown norm type: ".concat(t))}},{key:"cumulativeSum",value:function(){for(var t=0,e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)t+=this.get(e,n),this.set(e,n,t);return this}},{key:"dot",value:function(e){t.isMatrix(e)&&(e=e.to1DArray());var n=this.to1DArray();if(n.length!==e.length)throw new RangeError("vectors do not have the same size");for(var r=0,i=0;i<n.length;i++)r+=n[i]*e[i];return r}},{key:"mmul",value:function(t){t=zo.checkMatrix(t);for(var e=this.rows,n=this.columns,r=t.columns,i=new zo(e,r),o=new Float64Array(n),a=0;a<r;a++){for(var s=0;s<n;s++)o[s]=t.get(s,a);for(var u=0;u<e;u++){for(var c=0,f=0;f<n;f++)c+=this.get(u,f)*o[f];i.set(u,a,c)}}return i}},{key:"strassen2x2",value:function(t){t=zo.checkMatrix(t);var e=new zo(2,2),n=this.get(0,0),r=t.get(0,0),i=this.get(0,1),o=t.get(0,1),a=this.get(1,0),s=t.get(1,0),u=this.get(1,1),c=t.get(1,1),f=(n+u)*(r+c),l=(a+u)*r,h=n*(o-c),d=u*(s-r),p=(n+i)*c,g=f+d-p+(i-u)*(s+c),v=h+p,y=l+d,m=f-l+h+(a-n)*(r+o);return e.set(0,0,g),e.set(0,1,v),e.set(1,0,y),e.set(1,1,m),e}},{key:"strassen3x3",value:function(t){t=zo.checkMatrix(t);var e=new zo(3,3),n=this.get(0,0),r=this.get(0,1),i=this.get(0,2),o=this.get(1,0),a=this.get(1,1),s=this.get(1,2),u=this.get(2,0),c=this.get(2,1),f=this.get(2,2),l=t.get(0,0),h=t.get(0,1),d=t.get(0,2),p=t.get(1,0),g=t.get(1,1),v=t.get(1,2),y=t.get(2,0),m=t.get(2,1),b=t.get(2,2),x=(n-o)*(-h+g),w=(-n+o+a)*(l-h+g),S=(o+a)*(-l+h),E=n*l,_=(-n+u+c)*(l-d+v),O=(-n+u)*(d-v),k=(u+c)*(-l+d),M=(-i+c+f)*(g+y-m),A=(i-f)*(g-m),T=i*y,C=(c+f)*(-y+m),I=(-i+a+s)*(v+y-b),P=(i-s)*(v-b),j=(a+s)*(-y+b),D=E+T+r*p,N=(n+r+i-o-a-c-f)*g+w+S+E+M+T+C,R=E+_+k+(n+r+i-a-s-u-c)*v+T+I+j,L=x+a*(-l+h+p-g-v-y+b)+w+E+T+I+P,B=x+w+S+E+s*m,G=T+I+P+j+o*d,F=E+_+O+c*(-l+d+p-g-v-y+m)+M+A+T,U=M+A+T+C+u*h,z=E+_+O+k+f*b;return e.set(0,0,D),e.set(0,1,N),e.set(0,2,R),e.set(1,0,L),e.set(1,1,B),e.set(1,2,G),e.set(2,0,F),e.set(2,1,U),e.set(2,2,z),e}},{key:"mmulStrassen",value:function(e){e=zo.checkMatrix(e);var n=this.clone(),r=n.rows,i=n.columns,o=e.rows,a=e.columns;function s(e,n,r){var i=e.rows,o=e.columns;if(i===n&&o===r)return e;var a=t.zeros(n,r);return a=a.setSubMatrix(e,0,0)}i!==o&&console.warn("Multiplying ".concat(r," x ").concat(i," and ").concat(o," x ").concat(a," matrix: dimensions do not match."));var u=Math.max(r,o),c=Math.max(i,a);return function e(n,r,i,o){if(i<=512||o<=512)return n.mmul(r);i%2==1&&o%2==1?(n=s(n,i+1,o+1),r=s(r,i+1,o+1)):i%2==1?(n=s(n,i+1,o),r=s(r,i+1,o)):o%2==1&&(n=s(n,i,o+1),r=s(r,i,o+1));var a=parseInt(n.rows/2,10),u=parseInt(n.columns/2,10),c=n.subMatrix(0,a-1,0,u-1),f=r.subMatrix(0,a-1,0,u-1),l=n.subMatrix(0,a-1,u,n.columns-1),h=r.subMatrix(0,a-1,u,r.columns-1),d=n.subMatrix(a,n.rows-1,0,u-1),p=r.subMatrix(a,r.rows-1,0,u-1),g=n.subMatrix(a,n.rows-1,u,n.columns-1),v=r.subMatrix(a,r.rows-1,u,r.columns-1),y=e(t.add(c,g),t.add(f,v),a,u),m=e(t.add(d,g),f,a,u),b=e(c,t.sub(h,v),a,u),x=e(g,t.sub(p,f),a,u),w=e(t.add(c,l),v,a,u),S=e(t.sub(d,c),t.add(f,h),a,u),E=e(t.sub(l,g),t.add(p,v),a,u),_=t.add(y,x);_.sub(w),_.add(E);var O=t.add(b,w),k=t.add(m,x),M=t.sub(y,m);M.add(b),M.add(S);var A=t.zeros(2*_.rows,2*_.columns);return(A=(A=(A=(A=A.setSubMatrix(_,0,0)).setSubMatrix(O,_.rows,0)).setSubMatrix(k,0,_.columns)).setSubMatrix(M,_.rows,_.columns)).subMatrix(0,i-1,0,o-1)}(n=s(n,u,c),e=s(e,u,c),u,c)}},{key:"scaleRows",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("object"!==Do(t))throw new TypeError("options must be an object");var e=t.min,n=void 0===e?0:e,r=t.max,i=void 0===r?1:r;if(!Number.isFinite(n))throw new TypeError("min must be a number");if(!Number.isFinite(i))throw new TypeError("max must be a number");if(n>=i)throw new RangeError("min must be smaller than max");for(var o=new zo(this.rows,this.columns),a=0;a<this.rows;a++){var s=this.getRow(a);s.length>0&&to(s,{min:n,max:i,output:s}),o.setRow(a,s)}return o}},{key:"scaleColumns",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("object"!==Do(t))throw new TypeError("options must be an object");var e=t.min,n=void 0===e?0:e,r=t.max,i=void 0===r?1:r;if(!Number.isFinite(n))throw new TypeError("min must be a number");if(!Number.isFinite(i))throw new TypeError("max must be a number");if(n>=i)throw new RangeError("min must be smaller than max");for(var o=new zo(this.rows,this.columns),a=0;a<this.columns;a++){var s=this.getColumn(a);s.length&&to(s,{min:n,max:i,output:s}),o.setColumn(a,s)}return o}},{key:"flipRows",value:function(){for(var t=Math.ceil(this.columns/2),e=0;e<this.rows;e++)for(var n=0;n<t;n++){var r=this.get(e,n),i=this.get(e,this.columns-1-n);this.set(e,n,i),this.set(e,this.columns-1-n,r)}return this}},{key:"flipColumns",value:function(){for(var t=Math.ceil(this.rows/2),e=0;e<this.columns;e++)for(var n=0;n<t;n++){var r=this.get(n,e),i=this.get(this.rows-1-n,e);this.set(n,e,i),this.set(this.rows-1-n,e,r)}return this}},{key:"kroneckerProduct",value:function(t){t=zo.checkMatrix(t);for(var e=this.rows,n=this.columns,r=t.rows,i=t.columns,o=new zo(e*r,n*i),a=0;a<e;a++)for(var s=0;s<n;s++)for(var u=0;u<r;u++)for(var c=0;c<i;c++)o.set(r*a+u,i*s+c,this.get(a,s)*t.get(u,c));return o}},{key:"transpose",value:function(){for(var t=new zo(this.columns,this.rows),e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)t.set(n,e,this.get(e,n));return t}},{key:"sortRows",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Go,e=0;e<this.rows;e++)this.setRow(e,this.getRow(e).sort(t));return this}},{key:"sortColumns",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Go,e=0;e<this.columns;e++)this.setColumn(e,this.getColumn(e).sort(t));return this}},{key:"subMatrix",value:function(t,e,n,r){po(this,t,e,n,r);for(var i=new zo(e-t+1,r-n+1),o=t;o<=e;o++)for(var a=n;a<=r;a++)i.set(o-t,a-n,this.get(o,a));return i}},{key:"subMatrixRow",value:function(t,e,n){if(void 0===e&&(e=0),void 0===n&&(n=this.columns-1),e>n||e<0||e>=this.columns||n<0||n>=this.columns)throw new RangeError("Argument out of range");for(var r=new zo(t.length,n-e+1),i=0;i<t.length;i++)for(var o=e;o<=n;o++){if(t[i]<0||t[i]>=this.rows)throw new RangeError("Row index out of range: ".concat(t[i]));r.set(i,o-e,this.get(t[i],o))}return r}},{key:"subMatrixColumn",value:function(t,e,n){if(void 0===e&&(e=0),void 0===n&&(n=this.rows-1),e>n||e<0||e>=this.rows||n<0||n>=this.rows)throw new RangeError("Argument out of range");for(var r=new zo(n-e+1,t.length),i=0;i<t.length;i++)for(var o=e;o<=n;o++){if(t[i]<0||t[i]>=this.columns)throw new RangeError("Column index out of range: ".concat(t[i]));r.set(o-e,i,this.get(o,t[i]))}return r}},{key:"setSubMatrix",value:function(t,e,n){if((t=zo.checkMatrix(t)).isEmpty())return this;po(this,e,e+t.rows-1,n,n+t.columns-1);for(var r=0;r<t.rows;r++)for(var i=0;i<t.columns;i++)this.set(e+r,n+i,t.get(r,i));return this}},{key:"selection",value:function(t,e){for(var n=function(t,e,n){return{row:lo(t,e),column:ho(t,n)}}(this,t,e),r=new zo(t.length,e.length),i=0;i<n.row.length;i++)for(var o=n.row[i],a=0;a<n.column.length;a++){var s=n.column[a];r.set(i,a,this.get(o,s))}return r}},{key:"trace",value:function(){for(var t=Math.min(this.rows,this.columns),e=0,n=0;n<t;n++)e+=this.get(n,n);return e}},{key:"clone",value:function(){for(var t=new zo(this.rows,this.columns),e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)t.set(e,n,this.get(e,n));return t}},{key:"sum",value:function(t){switch(t){case"row":return function(t){for(var e=go(t.rows),n=0;n<t.rows;++n)for(var r=0;r<t.columns;++r)e[n]+=t.get(n,r);return e}(this);case"column":return function(t){for(var e=go(t.columns),n=0;n<t.rows;++n)for(var r=0;r<t.columns;++r)e[r]+=t.get(n,r);return e}(this);case void 0:return function(t){for(var e=0,n=0;n<t.rows;n++)for(var r=0;r<t.columns;r++)e+=t.get(n,r);return e}(this);default:throw new Error("invalid option: ".concat(t))}}},{key:"product",value:function(t){switch(t){case"row":return function(t){for(var e=go(t.rows,1),n=0;n<t.rows;++n)for(var r=0;r<t.columns;++r)e[n]*=t.get(n,r);return e}(this);case"column":return function(t){for(var e=go(t.columns,1),n=0;n<t.rows;++n)for(var r=0;r<t.columns;++r)e[r]*=t.get(n,r);return e}(this);case void 0:return function(t){for(var e=1,n=0;n<t.rows;n++)for(var r=0;r<t.columns;r++)e*=t.get(n,r);return e}(this);default:throw new Error("invalid option: ".concat(t))}}},{key:"mean",value:function(t){var e=this.sum(t);switch(t){case"row":for(var n=0;n<this.rows;n++)e[n]/=this.columns;return e;case"column":for(var r=0;r<this.columns;r++)e[r]/=this.rows;return e;case void 0:return e/this.size;default:throw new Error("invalid option: ".concat(t))}}},{key:"variance",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("object"===Do(t)&&(e=t,t=void 0),"object"!==Do(e))throw new TypeError("options must be an object");var n=e,r=n.unbiased,i=void 0===r||r,o=n.mean,a=void 0===o?this.mean(t):o;if("boolean"!=typeof i)throw new TypeError("unbiased must be a boolean");switch(t){case"row":if(!Array.isArray(a))throw new TypeError("mean must be an array");return mo(this,i,a);case"column":if(!Array.isArray(a))throw new TypeError("mean must be an array");return bo(this,i,a);case void 0:if("number"!=typeof a)throw new TypeError("mean must be a number");return xo(this,i,a);default:throw new Error("invalid option: ".concat(t))}}},{key:"standardDeviation",value:function(t,e){"object"===Do(t)&&(e=t,t=void 0);var n=this.variance(t,e);if(void 0===t)return Math.sqrt(n);for(var r=0;r<n.length;r++)n[r]=Math.sqrt(n[r]);return n}},{key:"center",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("object"===Do(t)&&(e=t,t=void 0),"object"!==Do(e))throw new TypeError("options must be an object");var n=e,r=n.center,i=void 0===r?this.mean(t):r;switch(t){case"row":if(!Array.isArray(i))throw new TypeError("center must be an array");return wo(this,i),this;case"column":if(!Array.isArray(i))throw new TypeError("center must be an array");return So(this,i),this;case void 0:if("number"!=typeof i)throw new TypeError("center must be a number");return Eo(this,i),this;default:throw new Error("invalid option: ".concat(t))}}},{key:"scale",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("object"===Do(t)&&(e=t,t=void 0),"object"!==Do(e))throw new TypeError("options must be an object");var n=e.scale;switch(t){case"row":if(void 0===n)n=_o(this);else if(!Array.isArray(n))throw new TypeError("scale must be an array");return Oo(this,n),this;case"column":if(void 0===n)n=ko(this);else if(!Array.isArray(n))throw new TypeError("scale must be an array");return Mo(this,n),this;case void 0:if(void 0===n)n=Ao(this);else if("number"!=typeof n)throw new TypeError("scale must be a number");return To(this,n),this;default:throw new Error("invalid option: ".concat(t))}}},{key:"toString",value:function(t){return ro(this,t)}}],[{key:"from1DArray",value:function(t,e,n){if(t*e!==n.length)throw new RangeError("data length does not match given dimensions");for(var r=new zo(t,e),i=0;i<t;i++)for(var o=0;o<e;o++)r.set(i,o,n[i*e+o]);return r}},{key:"rowVector",value:function(t){for(var e=new zo(1,t.length),n=0;n<t.length;n++)e.set(0,n,t[n]);return e}},{key:"columnVector",value:function(t){for(var e=new zo(t.length,1),n=0;n<t.length;n++)e.set(n,0,t[n]);return e}},{key:"zeros",value:function(t,e){return new zo(t,e)}},{key:"ones",value:function(t,e){return new zo(t,e).fill(1)}},{key:"rand",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("object"!==Do(n))throw new TypeError("options must be an object");for(var r=n.random,i=void 0===r?Math.random:r,o=new zo(t,e),a=0;a<t;a++)for(var s=0;s<e;s++)o.set(a,s,i());return o}},{key:"randInt",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("object"!==Do(n))throw new TypeError("options must be an object");var r=n.min,i=void 0===r?0:r,o=n.max,a=void 0===o?1e3:o,s=n.random,u=void 0===s?Math.random:s;if(!Number.isInteger(i))throw new TypeError("min must be an integer");if(!Number.isInteger(a))throw new TypeError("max must be an integer");if(i>=a)throw new RangeError("min must be smaller than max");for(var c=a-i,f=new zo(t,e),l=0;l<t;l++)for(var h=0;h<e;h++){var d=i+Math.round(u()*c);f.set(l,h,d)}return f}},{key:"eye",value:function(t,e,n){void 0===e&&(e=t),void 0===n&&(n=1);for(var r=Math.min(t,e),i=this.zeros(t,e),o=0;o<r;o++)i.set(o,o,n);return i}},{key:"diag",value:function(t,e,n){var r=t.length;void 0===e&&(e=r),void 0===n&&(n=e);for(var i=Math.min(r,e,n),o=this.zeros(e,n),a=0;a<i;a++)o.set(a,a,t[a]);return o}},{key:"min",value:function(t,e){t=this.checkMatrix(t),e=this.checkMatrix(e);for(var n=t.rows,r=t.columns,i=new zo(n,r),o=0;o<n;o++)for(var a=0;a<r;a++)i.set(o,a,Math.min(t.get(o,a),e.get(o,a)));return i}},{key:"max",value:function(t,e){t=this.checkMatrix(t),e=this.checkMatrix(e);for(var n=t.rows,r=t.columns,i=new this(n,r),o=0;o<n;o++)for(var a=0;a<r;a++)i.set(o,a,Math.max(t.get(o,a),e.get(o,a)));return i}},{key:"checkMatrix",value:function(e){return t.isMatrix(e)?e:new zo(e)}},{key:"isMatrix",value:function(t){return null!=t&&"Matrix"===t.klass}}]),t}();function Go(t,e){return t-e}Bo.prototype.klass="Matrix","undefined"!=typeof Symbol&&(Bo.prototype[Symbol.for("nodejs.util.inspect.custom")]=function(){return ro(this)}),Bo.random=Bo.rand,Bo.randomInt=Bo.randInt,Bo.diagonal=Bo.diag,Bo.prototype.diagonal=Bo.prototype.diag,Bo.identity=Bo.eye,Bo.prototype.negate=Bo.prototype.neg,Bo.prototype.tensorProduct=Bo.prototype.kroneckerProduct;var Fo,Uo,zo=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Co(t,e)}(n,t);var e=Io(n);function n(t,r){var i;if(No(this,n),i=e.call(this),n.isMatrix(t))return Po(i,t.clone());if(Number.isInteger(t)&&t>=0){if(i.data=[],!(Number.isInteger(r)&&r>=0))throw new TypeError("nColumns must be a positive integer");for(var o=0;o<t;o++)i.data.push(new Float64Array(r))}else{if(!Array.isArray(t))throw new TypeError("First argument must be a positive number or an array");var a=t;if("number"!=typeof(r=(t=a.length)?a[0].length:0))throw new TypeError("Data must be a 2D array with at least one element");i.data=[];for(var s=0;s<t;s++){if(a[s].length!==r)throw new RangeError("Inconsistent array dimensions");i.data.push(Float64Array.from(a[s]))}}return i.rows=t,i.columns=r,i}return Lo(n,[{key:"set",value:function(t,e,n){return this.data[t][e]=n,this}},{key:"get",value:function(t,e){return this.data[t][e]}},{key:"removeRow",value:function(t){return so(this,t),this.data.splice(t,1),this.rows-=1,this}},{key:"addRow",value:function(t,e){return void 0===e&&(e=t,t=this.rows),so(this,t,!0),e=Float64Array.from(co(this,e)),this.data.splice(t,0,e),this.rows+=1,this}},{key:"removeColumn",value:function(t){uo(this,t);for(var e=0;e<this.rows;e++){for(var n=new Float64Array(this.columns-1),r=0;r<t;r++)n[r]=this.data[e][r];for(var i=t+1;i<this.columns;i++)n[i-1]=this.data[e][i];this.data[e]=n}return this.columns-=1,this}},{key:"addColumn",value:function(t,e){void 0===e&&(e=t,t=this.columns),uo(this,t,!0),e=fo(this,e);for(var n=0;n<this.rows;n++){for(var r=new Float64Array(this.columns+1),i=0;i<t;i++)r[i]=this.data[n][i];for(r[i++]=e[n];i<this.columns+1;i++)r[i]=this.data[n][i-1];this.data[n]=r}return this.columns+=1,this}}]),n}(Bo);function Vo(t){return(Vo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Wo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Xo(t,e){return(Xo=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Yo(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=qo(t);if(e){var i=qo(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ho(this,n)}}function Ho(t,e){return!e||"object"!==Vo(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t):e}function qo(t){return(qo=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Uo=zo,(Fo=Bo).prototype.add=function(t){return"number"==typeof t?this.addS(t):this.addM(t)},Fo.prototype.addS=function(t){for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)+t);return this},Fo.prototype.addM=function(t){if(t=Uo.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)+t.get(e,n));return this},Fo.add=function(t,e){return new Uo(t).add(e)},Fo.prototype.sub=function(t){return"number"==typeof t?this.subS(t):this.subM(t)},Fo.prototype.subS=function(t){for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)-t);return this},Fo.prototype.subM=function(t){if(t=Uo.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)-t.get(e,n));return this},Fo.sub=function(t,e){return new Uo(t).sub(e)},Fo.prototype.subtract=Fo.prototype.sub,Fo.prototype.subtractS=Fo.prototype.subS,Fo.prototype.subtractM=Fo.prototype.subM,Fo.subtract=Fo.sub,Fo.prototype.mul=function(t){return"number"==typeof t?this.mulS(t):this.mulM(t)},Fo.prototype.mulS=function(t){for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)*t);return this},Fo.prototype.mulM=function(t){if(t=Uo.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)*t.get(e,n));return this},Fo.mul=function(t,e){return new Uo(t).mul(e)},Fo.prototype.multiply=Fo.prototype.mul,Fo.prototype.multiplyS=Fo.prototype.mulS,Fo.prototype.multiplyM=Fo.prototype.mulM,Fo.multiply=Fo.mul,Fo.prototype.div=function(t){return"number"==typeof t?this.divS(t):this.divM(t)},Fo.prototype.divS=function(t){for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)/t);return this},Fo.prototype.divM=function(t){if(t=Uo.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)/t.get(e,n));return this},Fo.div=function(t,e){return new Uo(t).div(e)},Fo.prototype.divide=Fo.prototype.div,Fo.prototype.divideS=Fo.prototype.divS,Fo.prototype.divideM=Fo.prototype.divM,Fo.divide=Fo.div,Fo.prototype.mod=function(t){return"number"==typeof t?this.modS(t):this.modM(t)},Fo.prototype.modS=function(t){for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)%t);return this},Fo.prototype.modM=function(t){if(t=Uo.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)%t.get(e,n));return this},Fo.mod=function(t,e){return new Uo(t).mod(e)},Fo.prototype.modulus=Fo.prototype.mod,Fo.prototype.modulusS=Fo.prototype.modS,Fo.prototype.modulusM=Fo.prototype.modM,Fo.modulus=Fo.mod,Fo.prototype.and=function(t){return"number"==typeof t?this.andS(t):this.andM(t)},Fo.prototype.andS=function(t){for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)&t);return this},Fo.prototype.andM=function(t){if(t=Uo.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)&t.get(e,n));return this},Fo.and=function(t,e){return new Uo(t).and(e)},Fo.prototype.or=function(t){return"number"==typeof t?this.orS(t):this.orM(t)},Fo.prototype.orS=function(t){for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)|t);return this},Fo.prototype.orM=function(t){if(t=Uo.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)|t.get(e,n));return this},Fo.or=function(t,e){return new Uo(t).or(e)},Fo.prototype.xor=function(t){return"number"==typeof t?this.xorS(t):this.xorM(t)},Fo.prototype.xorS=function(t){for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)^t);return this},Fo.prototype.xorM=function(t){if(t=Uo.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)^t.get(e,n));return this},Fo.xor=function(t,e){return new Uo(t).xor(e)},Fo.prototype.leftShift=function(t){return"number"==typeof t?this.leftShiftS(t):this.leftShiftM(t)},Fo.prototype.leftShiftS=function(t){for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)<<t);return this},Fo.prototype.leftShiftM=function(t){if(t=Uo.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)<<t.get(e,n));return this},Fo.leftShift=function(t,e){return new Uo(t).leftShift(e)},Fo.prototype.signPropagatingRightShift=function(t){return"number"==typeof t?this.signPropagatingRightShiftS(t):this.signPropagatingRightShiftM(t)},Fo.prototype.signPropagatingRightShiftS=function(t){for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)>>t);return this},Fo.prototype.signPropagatingRightShiftM=function(t){if(t=Uo.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)>>t.get(e,n));return this},Fo.signPropagatingRightShift=function(t,e){return new Uo(t).signPropagatingRightShift(e)},Fo.prototype.rightShift=function(t){return"number"==typeof t?this.rightShiftS(t):this.rightShiftM(t)},Fo.prototype.rightShiftS=function(t){for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)>>>t);return this},Fo.prototype.rightShiftM=function(t){if(t=Uo.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,this.get(e,n)>>>t.get(e,n));return this},Fo.rightShift=function(t,e){return new Uo(t).rightShift(e)},Fo.prototype.zeroFillRightShift=Fo.prototype.rightShift,Fo.prototype.zeroFillRightShiftS=Fo.prototype.rightShiftS,Fo.prototype.zeroFillRightShiftM=Fo.prototype.rightShiftM,Fo.zeroFillRightShift=Fo.rightShift,Fo.prototype.not=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,~this.get(t,e));return this},Fo.not=function(t){return new Uo(t).not()},Fo.prototype.abs=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.abs(this.get(t,e)));return this},Fo.abs=function(t){return new Uo(t).abs()},Fo.prototype.acos=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.acos(this.get(t,e)));return this},Fo.acos=function(t){return new Uo(t).acos()},Fo.prototype.acosh=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.acosh(this.get(t,e)));return this},Fo.acosh=function(t){return new Uo(t).acosh()},Fo.prototype.asin=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.asin(this.get(t,e)));return this},Fo.asin=function(t){return new Uo(t).asin()},Fo.prototype.asinh=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.asinh(this.get(t,e)));return this},Fo.asinh=function(t){return new Uo(t).asinh()},Fo.prototype.atan=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.atan(this.get(t,e)));return this},Fo.atan=function(t){return new Uo(t).atan()},Fo.prototype.atanh=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.atanh(this.get(t,e)));return this},Fo.atanh=function(t){return new Uo(t).atanh()},Fo.prototype.cbrt=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.cbrt(this.get(t,e)));return this},Fo.cbrt=function(t){return new Uo(t).cbrt()},Fo.prototype.ceil=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.ceil(this.get(t,e)));return this},Fo.ceil=function(t){return new Uo(t).ceil()},Fo.prototype.clz32=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.clz32(this.get(t,e)));return this},Fo.clz32=function(t){return new Uo(t).clz32()},Fo.prototype.cos=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.cos(this.get(t,e)));return this},Fo.cos=function(t){return new Uo(t).cos()},Fo.prototype.cosh=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.cosh(this.get(t,e)));return this},Fo.cosh=function(t){return new Uo(t).cosh()},Fo.prototype.exp=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.exp(this.get(t,e)));return this},Fo.exp=function(t){return new Uo(t).exp()},Fo.prototype.expm1=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.expm1(this.get(t,e)));return this},Fo.expm1=function(t){return new Uo(t).expm1()},Fo.prototype.floor=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.floor(this.get(t,e)));return this},Fo.floor=function(t){return new Uo(t).floor()},Fo.prototype.fround=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.fround(this.get(t,e)));return this},Fo.fround=function(t){return new Uo(t).fround()},Fo.prototype.log=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.log(this.get(t,e)));return this},Fo.log=function(t){return new Uo(t).log()},Fo.prototype.log1p=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.log1p(this.get(t,e)));return this},Fo.log1p=function(t){return new Uo(t).log1p()},Fo.prototype.log10=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.log10(this.get(t,e)));return this},Fo.log10=function(t){return new Uo(t).log10()},Fo.prototype.log2=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.log2(this.get(t,e)));return this},Fo.log2=function(t){return new Uo(t).log2()},Fo.prototype.round=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.round(this.get(t,e)));return this},Fo.round=function(t){return new Uo(t).round()},Fo.prototype.sign=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.sign(this.get(t,e)));return this},Fo.sign=function(t){return new Uo(t).sign()},Fo.prototype.sin=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.sin(this.get(t,e)));return this},Fo.sin=function(t){return new Uo(t).sin()},Fo.prototype.sinh=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.sinh(this.get(t,e)));return this},Fo.sinh=function(t){return new Uo(t).sinh()},Fo.prototype.sqrt=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.sqrt(this.get(t,e)));return this},Fo.sqrt=function(t){return new Uo(t).sqrt()},Fo.prototype.tan=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.tan(this.get(t,e)));return this},Fo.tan=function(t){return new Uo(t).tan()},Fo.prototype.tanh=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.tanh(this.get(t,e)));return this},Fo.tanh=function(t){return new Uo(t).tanh()},Fo.prototype.trunc=function(){for(var t=0;t<this.rows;t++)for(var e=0;e<this.columns;e++)this.set(t,e,Math.trunc(this.get(t,e)));return this},Fo.trunc=function(t){return new Uo(t).trunc()},Fo.pow=function(t,e){return new Uo(t).pow(e)},Fo.prototype.pow=function(t){return"number"==typeof t?this.powS(t):this.powM(t)},Fo.prototype.powS=function(t){for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,Math.pow(this.get(e,n),t));return this},Fo.prototype.powM=function(t){if(t=Uo.checkMatrix(t),this.rows!==t.rows||this.columns!==t.columns)throw new RangeError("Matrices dimensions must be equal");for(var e=0;e<this.rows;e++)for(var n=0;n<this.columns;n++)this.set(e,n,Math.pow(this.get(e,n),t.get(e,n)));return this};var Ko=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Xo(t,e)}(o,t);var e,n,r,i=Yo(o);function o(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(e=i.call(this)).data=t,e.rows=t.length,e.columns=t[0].length,e}return e=o,(n=[{key:"set",value:function(t,e,n){return this.data[t][e]=n,this}},{key:"get",value:function(t,e){return this.data[t][e]}}])&&Wo(e.prototype,n),r&&Wo(e,r),o}(Bo);function Zo(t,e){var n=0;return Math.abs(t)>Math.abs(e)?(n=e/t,Math.abs(t)*Math.sqrt(1+n*n)):0!==e?(n=t/e,Math.abs(e)*Math.sqrt(1+n*n)):0}function Qo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Jo(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 $o=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Qo(this,t),(e=Ko.checkMatrix(e)).isEmpty())throw new Error("Matrix must be non-empty");var r,i=e.rows,o=e.columns,a=n.computeLeftSingularVectors,s=void 0===a||a,u=n.computeRightSingularVectors,c=void 0===u||u,f=n.autoTranspose,l=void 0!==f&&f,h=Boolean(s),d=Boolean(c),p=!1;if(i<o)if(l){i=(r=e.transpose()).rows,o=r.columns,p=!0;var g=h;h=d,d=g}else r=e.clone(),console.warn("Computing SVD on a matrix with more columns than rows. Consider enabling autoTranspose");else r=e.clone();for(var v=Math.min(i,o),y=Math.min(i+1,o),m=new Float64Array(y),b=new zo(i,v),x=new zo(o,o),w=new Float64Array(o),S=new Float64Array(i),E=new Float64Array(y),_=0;_<y;_++)E[_]=_;for(var O=Math.min(i-1,o),k=Math.max(0,Math.min(o-2,i)),M=Math.max(O,k),A=0;A<M;A++){if(A<O){m[A]=0;for(var T=A;T<i;T++)m[A]=Zo(m[A],r.get(T,A));if(0!==m[A]){r.get(A,A)<0&&(m[A]=-m[A]);for(var C=A;C<i;C++)r.set(C,A,r.get(C,A)/m[A]);r.set(A,A,r.get(A,A)+1)}m[A]=-m[A]}for(var I=A+1;I<o;I++){if(A<O&&0!==m[A]){for(var P=0,j=A;j<i;j++)P+=r.get(j,A)*r.get(j,I);P=-P/r.get(A,A);for(var D=A;D<i;D++)r.set(D,I,r.get(D,I)+P*r.get(D,A))}w[I]=r.get(A,I)}if(h&&A<O)for(var N=A;N<i;N++)b.set(N,A,r.get(N,A));if(A<k){w[A]=0;for(var R=A+1;R<o;R++)w[A]=Zo(w[A],w[R]);if(0!==w[A]){w[A+1]<0&&(w[A]=0-w[A]);for(var L=A+1;L<o;L++)w[L]/=w[A];w[A+1]+=1}if(w[A]=-w[A],A+1<i&&0!==w[A]){for(var B=A+1;B<i;B++)S[B]=0;for(var G=A+1;G<i;G++)for(var F=A+1;F<o;F++)S[G]+=w[F]*r.get(G,F);for(var U=A+1;U<o;U++)for(var z=-w[U]/w[A+1],V=A+1;V<i;V++)r.set(V,U,r.get(V,U)+z*S[V])}if(d)for(var W=A+1;W<o;W++)x.set(W,A,w[W])}}var X=Math.min(o,i+1);if(O<o&&(m[O]=r.get(O,O)),i<X&&(m[X-1]=0),k+1<X&&(w[k]=r.get(k,X-1)),w[X-1]=0,h){for(var Y=O;Y<v;Y++){for(var H=0;H<i;H++)b.set(H,Y,0);b.set(Y,Y,1)}for(var q=O-1;q>=0;q--)if(0!==m[q]){for(var K=q+1;K<v;K++){for(var Z=0,Q=q;Q<i;Q++)Z+=b.get(Q,q)*b.get(Q,K);Z=-Z/b.get(q,q);for(var J=q;J<i;J++)b.set(J,K,b.get(J,K)+Z*b.get(J,q))}for(var $=q;$<i;$++)b.set($,q,-b.get($,q));b.set(q,q,1+b.get(q,q));for(var tt=0;tt<q-1;tt++)b.set(tt,q,0)}else{for(var et=0;et<i;et++)b.set(et,q,0);b.set(q,q,1)}}if(d)for(var nt=o-1;nt>=0;nt--){if(nt<k&&0!==w[nt])for(var rt=nt+1;rt<o;rt++){for(var it=0,ot=nt+1;ot<o;ot++)it+=x.get(ot,nt)*x.get(ot,rt);it=-it/x.get(nt+1,nt);for(var at=nt+1;at<o;at++)x.set(at,rt,x.get(at,rt)+it*x.get(at,nt))}for(var st=0;st<o;st++)x.set(st,nt,0);x.set(nt,nt,1)}for(var ut=X-1,ct=Number.EPSILON;X>0;){var ft=void 0,lt=void 0;for(ft=X-2;ft>=-1&&-1!==ft;ft--){var ht=Number.MIN_VALUE+ct*Math.abs(m[ft]+Math.abs(m[ft+1]));if(Math.abs(w[ft])<=ht||Number.isNaN(w[ft])){w[ft]=0;break}}if(ft===X-2)lt=4;else{var dt=void 0;for(dt=X-1;dt>=ft&&dt!==ft;dt--){var pt=(dt!==X?Math.abs(w[dt]):0)+(dt!==ft+1?Math.abs(w[dt-1]):0);if(Math.abs(m[dt])<=ct*pt){m[dt]=0;break}}dt===ft?lt=3:dt===X-1?lt=1:(lt=2,ft=dt)}switch(ft++,lt){case 1:var gt=w[X-2];w[X-2]=0;for(var vt=X-2;vt>=ft;vt--){var yt=Zo(m[vt],gt),mt=m[vt]/yt,bt=gt/yt;if(m[vt]=yt,vt!==ft&&(gt=-bt*w[vt-1],w[vt-1]=mt*w[vt-1]),d)for(var xt=0;xt<o;xt++)yt=mt*x.get(xt,vt)+bt*x.get(xt,X-1),x.set(xt,X-1,-bt*x.get(xt,vt)+mt*x.get(xt,X-1)),x.set(xt,vt,yt)}break;case 2:var wt=w[ft-1];w[ft-1]=0;for(var St=ft;St<X;St++){var Et=Zo(m[St],wt),_t=m[St]/Et,Ot=wt/Et;if(m[St]=Et,wt=-Ot*w[St],w[St]=_t*w[St],h)for(var kt=0;kt<i;kt++)Et=_t*b.get(kt,St)+Ot*b.get(kt,ft-1),b.set(kt,ft-1,-Ot*b.get(kt,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,d))for(var Wt=0;Wt<=ut;Wt++)x.set(Wt,ft,-x.get(Wt,ft));for(;ft<ut&&!(m[ft]>=m[ft+1]);){var Xt=m[ft];if(m[ft]=m[ft+1],m[ft+1]=Xt,d&&ft<o-1)for(var Yt=0;Yt<o;Yt++)Xt=x.get(Yt,ft+1),x.set(Yt,ft+1,x.get(Yt,ft)),x.set(Yt,ft,Xt);if(h&&ft<i-1)for(var Ht=0;Ht<i;Ht++)Xt=b.get(Ht,ft+1),b.set(Ht,ft+1,b.get(Ht,ft)),b.set(Ht,ft,Xt);ft++}0,X--}}if(p){var qt=x;x=b,b=qt}this.m=i,this.n=o,this.s=m,this.U=b,this.V=x}var e,n,r;return e=t,(n=[{key:"solve",value:function(t){for(var e=t,n=this.threshold,r=this.s.length,i=zo.zeros(r,r),o=0;o<r;o++)Math.abs(this.s[o])<=n?i.set(o,o,0):i.set(o,o,1/this.s[o]);for(var a=this.U,s=this.rightSingularVectors,u=s.mmul(i),c=s.rows,f=a.rows,l=zo.zeros(c,f),h=0;h<c;h++)for(var d=0;d<f;d++){for(var p=0,g=0;g<r;g++)p+=u.get(h,g)*a.get(d,g);l.set(h,d,p)}return l.mmul(e)}},{key:"solveForDiagonal",value:function(t){return this.solve(zo.diag(t))}},{key:"inverse",value:function(){for(var t=this.V,e=this.threshold,n=t.rows,r=t.columns,i=new zo(n,this.s.length),o=0;o<n;o++)for(var a=0;a<r;a++)Math.abs(this.s[a])>e&&i.set(o,a,t.get(o,a)/this.s[a]);for(var s=this.U,u=s.rows,c=s.columns,f=new zo(n,u),l=0;l<n;l++)for(var h=0;h<u;h++){for(var d=0,p=0;p<c;p++)d+=i.get(l,p)*s.get(h,p);f.set(l,h,d)}return f}},{key:"condition",get:function(){return this.s[0]/this.s[Math.min(this.m,this.n)-1]}},{key:"norm2",get:function(){return this.s[0]}},{key:"rank",get:function(){for(var t=Math.max(this.m,this.n)*this.s[0]*Number.EPSILON,e=0,n=this.s,r=0,i=n.length;r<i;r++)n[r]>t&&e++;return e}},{key:"diagonal",get:function(){return Array.from(this.s)}},{key:"threshold",get:function(){return Number.EPSILON/2*Math.max(this.m,this.n)*this.s[0]}},{key:"leftSingularVectors",get:function(){return this.U}},{key:"rightSingularVectors",get:function(){return this.V}},{key:"diagonalMatrix",get:function(){return zo.diag(this.s)}}])&&Jo(e.prototype,n),r&&Jo(e,r),t}();function ta(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 ea=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.distances=e.distances,this.dimension=e.dimension||2,this.linkDistance=e.linkDistance}var e,n,r;return e=t,(n=[{key:"layout",value:function(){var t=this.dimension,e=this.distances,n=this.linkDistance;try{var r=zo.mul(zo.pow(e,2),-.5),i=r.mean("row"),o=r.mean("column"),a=r.mean();r.add(a).subRowVector(i).subColumnVector(o);var s=new $o(r),u=zo.sqrt(s.diagonalMatrix).diagonal();return s.leftSingularVectors.toJSON().map((function(e){return zo.mul([e],[u]).toJSON()[0].splice(0,t)}))}catch(t){for(var c=[],f=0;f<e.length;f++){var l=Math.random()*n,h=Math.random()*n;c.push([l,h])}return c}}}])&&ta(e.prototype,n),r&&ta(e,r),t}();function na(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 ra=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.disp=[],this.positions=e.positions,this.adjMatrix=e.adjMatrix,this.focusID=e.focusID,this.radii=e.radii,this.iterations=e.iterations||10,this.height=e.height||10,this.width=e.width||10,this.speed=e.speed||100,this.gravity=e.gravity||10,this.nodeSizeFunc=e.nodeSizeFunc,this.k=e.k||5,this.strictRadial=e.strictRadial,this.nodes=e.nodes}var e,n,r;return e=t,(n=[{key:"layout",value:function(){var t=this.positions,e=[],n=this.iterations,r=this.width/10;this.maxDisplace=r,this.disp=e;for(var i=0;i<n;i++)t.forEach((function(t,n){e[n]={x:0,y:0}})),this.getRepulsion(),this.updatePositions();return t}},{key:"getRepulsion",value:function(){var t=this,e=t.positions,n=t.nodes,r=t.disp,i=t.k,o=t.radii||[];e.forEach((function(a,s){r[s]={x:0,y:0},e.forEach((function(e,u){if(s!==u&&o[s]===o[u]){var c=a[0]-e[0],f=a[1]-e[1],l=Math.sqrt(c*c+f*f);if(0===l){l=1;var h=s>u?1:-1;c=.01*h,f=.01*h}if(l<t.nodeSizeFunc(n[s])/2+t.nodeSizeFunc(n[u])/2){var d=i*i/l;r[s].x+=c/l*d,r[s].y+=f/l*d}}}))}))}},{key:"updatePositions",value:function(){var t=this.positions,e=this.disp,n=this.speed,r=this.strictRadial,i=this.focusID,o=this.maxDisplace||this.width/10;r&&e.forEach((function(e,n){var r=t[n][0]-t[i][0],o=t[n][1]-t[i][1],a=Math.sqrt(r*r+o*o),s=o/a,u=-r/a,c=Math.sqrt(e.x*e.x+e.y*e.y),f=Math.acos((s*e.x+u*e.y)/c);f>Math.PI/2&&(f-=Math.PI/2,s*=-1,u*=-1);var l=Math.cos(f)*c;e.x=s*l,e.y=u*l}));var a=this.radii;t.forEach((function(s,u){if(u!==i){var c=Math.sqrt(e[u].x*e[u].x+e[u].y*e[u].y);if(c>0&&u!==i){var f=Math.min(o*(n/800),c);if(s[0]+=e[u].x/c*f,s[1]+=e[u].y/c*f,r){var l=s[0]-t[i][0],h=s[1]-t[i][1],d=Math.sqrt(l*l+h*h);l=l/d*a[u],h=h/d*a[u],s[0]=t[i][0]+l,s[1]=t[i][1]+h}}}}))}}])&&na(e.prototype,n),r&&na(e,r),t}();function ia(t){return(ia="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function oa(t){return function(t){if(Array.isArray(t))return aa(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return aa(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 aa(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 aa(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 sa(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ua(t,e){return(ua=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ca(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=la(t);if(e){var i=la(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return fa(this,n)}}function fa(t,e){return!e||"object"!==ia(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t):e}function la(t){return(la=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ha(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var da=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ua(t,e)}(o,t);var e,n,r,i=ca(o);function o(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(e=i.call(this)).maxIteration=1e3,e.focusNode=null,e.unitRadius=null,e.linkDistance=50,e.preventOverlap=!1,e.strictRadial=!0,e.maxPreventOverlapIteration=200,e.sortStrength=10,e.nodes=[],e.edges=[],e.updateCfg(t),e}return e=o,(n=[{key:"getDefaultCfg",value:function(){return{maxIteration:1e3,focusNode:null,unitRadius:null,linkDistance:50,preventOverlap:!1,nodeSize:void 0,nodeSpacing:void 0,strictRadial:!0,maxPreventOverlapIteration:200,sortBy:void 0,sortStrength:10}}},{key:"execute",value:function(){var t=this,e=t.nodes,n=t.edges||[];if(e&&0!==e.length){t.width||"undefined"==typeof window||(t.width=window.innerWidth),t.height||"undefined"==typeof window||(t.height=window.innerHeight),t.center||(t.center=[t.width/2,t.height/2]);var r=t.center;if(1===e.length)return e[0].x=r[0],e[0].y=r[1],void(t.onLayoutEnd&&t.onLayoutEnd());var i=t.linkDistance,o=null;if(Bn(t.focusNode)){for(var a=!1,s=0;s<e.length;s++)e[s].id===t.focusNode&&(o=e[s],t.focusNode=o,a=!0,s=e.length);a||(o=null)}else o=t.focusNode;o||(o=e[0],t.focusNode=o);var u,c,f,l=(u=e,c=o.id,f=-1,u.forEach((function(t,e){t.id===c&&(f=e)})),f);t.focusIndex=l;var h=Xn({nodes:e,edges:n},!1),d=Wn(h),p=t.maxToFocus(d,l);t.handleInfinity(d,l,p+1),t.distances=d;var g=d[l],v=t.width||500,y=t.height||500,m=v-r[0]>r[0]?r[0]:v-r[0],b=y-r[1]>r[1]?r[1]:y-r[1];0===m&&(m=v/2),0===b&&(b=y/2);var x=b>m?m:b,w=Math.max.apply(Math,oa(g)),S=[];g.forEach((function(e,n){t.unitRadius||(t.unitRadius=x/w),S[n]=e*t.unitRadius})),t.radii=S;var E=t.eIdealDisMatrix();t.eIdealDistances=E;var _=function(t){for(var e=t.length,n=t[0].length,r=[],i=0;i<e;i++){for(var o=[],a=0;a<n;a++)0!==t[i][a]?o.push(1/(t[i][a]*t[i][a])):o.push(0);r.push(o)}return r}(E);t.weights=_;var O=new ea({linkDistance:i,distances:E}).layout();O.forEach((function(t){zn(t[0])&&(t[0]=Math.random()*i),zn(t[1])&&(t[1]=Math.random()*i)})),t.positions=O,O.forEach((function(t,n){e[n].x=t[0]+r[0],e[n].y=t[1]+r[1]})),O.forEach((function(t){t[0]-=O[l][0],t[1]-=O[l][1]})),t.run();var k,M=t.preventOverlap,A=t.nodeSize,T=t.strictRadial;if(M){var C,I=t.nodeSpacing;C=Un(I)?function(){return I}:Kn(I)?I:function(){return 0},k=A?Fn(A)?function(t){return(A[0]>A[1]?A[0]:A[1])+C(t)}:function(t){return A+C(t)}:function(t){return t.size?Fn(t.size)?(t.size[0]>t.size[1]?t.size[0]:t.size[1])+C(t):t.size+C(t):10+C(t)};var P={nodes:e,nodeSizeFunc:k,adjMatrix:h,positions:O,radii:S,height:y,width:v,strictRadial:T,focusID:l,iterations:t.maxPreventOverlapIteration||200,k:O.length/4.5},j=new ra(P);O=j.layout()}return O.forEach((function(t,n){e[n].x=t[0]+r[0],e[n].y=t[1]+r[1]})),t.onLayoutEnd&&t.onLayoutEnd(),{nodes:e,edges:n}}t.onLayoutEnd&&t.onLayoutEnd()}},{key:"run",value:function(){for(var t=this.maxIteration,e=this.positions||[],n=this.weights||[],r=this.eIdealDistances||[],i=this.radii||[],o=0;o<=t;o++){var a=o/t;this.oneIteration(a,e,i,r,n)}}},{key:"oneIteration",value:function(t,e,n,r,i){var o=1-t,a=this.focusIndex;e.forEach((function(s,u){var c=ha(s,[0,0]),f=0===c?0:1/c;if(u!==a){var l=0,h=0,d=0;e.forEach((function(t,e){if(u!==e){var n=ha(s,t),o=0===n?0:1/n,a=r[e][u];d+=i[u][e],l+=i[u][e]*(t[0]+a*(s[0]-t[0])*o),h+=i[u][e]*(t[1]+a*(s[1]-t[1])*o)}}));var p=0===n[u]?0:1/n[u];d*=o,d+=t*p*p,l*=o,l+=t*p*s[0]*f,s[0]=l/d,h*=o,h+=t*p*s[1]*f,s[1]=h/d}}))}},{key:"eIdealDisMatrix",value:function(){var t=this,e=t.nodes;if(!e)return[];var n=t.distances,r=t.linkDistance,i=t.radii||[],o=t.unitRadius||50,a=[];return n&&n.forEach((function(n,s){var u=[];n.forEach((function(n,a){if(s===a)u.push(0);else if(i[s]===i[a])if("data"===t.sortBy)u.push(n*(Math.abs(s-a)*t.sortStrength)/(i[s]/o));else if(t.sortBy){var c=e[s][t.sortBy]||0,f=e[a][t.sortBy]||0;Bn(c)&&(c=c.charCodeAt(0)),Bn(f)&&(f=f.charCodeAt(0)),u.push(n*(Math.abs(c-f)*t.sortStrength)/(i[s]/o))}else u.push(n*r/(i[s]/o));else{var l=(r+o)/2;u.push(n*l)}})),a.push(u)})),a}},{key:"handleInfinity",value:function(t,e,n){for(var r=t.length,i=0;i<r;i++)if(t[e][i]===1/0){t[e][i]=n,t[i][e]=n;for(var o=0;o<r;o++)t[i][o]!==1/0&&t[e][o]===1/0&&(t[e][o]=n+t[i][o],t[o][e]=n+t[i][o])}for(var a=0;a<r;a++)if(a!==e)for(var s=0;s<r;s++)if(t[a][s]===1/0){var u=Math.abs(t[e][a]-t[e][s]);u=0===u?1:u,t[a][s]=u}}},{key:"maxToFocus",value:function(t,e){for(var n=0,r=0;r<t[e].length;r++)t[e][r]!==1/0&&(n=t[e][r]>n?t[e][r]:n);return n}},{key:"getType",value:function(){return"radial"}}])&&sa(e.prototype,n),r&&sa(e,r),o}(Qn);function pa(t){return(pa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ga(t,e){return(ga=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function va(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ba(t);if(e){var i=ba(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ya(this,n)}}function ya(t,e){return!e||"object"!==pa(e)&&"function"!=typeof e?ma(t):e}function ma(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}function ba(t){return(ba=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var xa=new Map,wa=function(t,e){if(xa.get(t)&&console.warn("The layout with the name ".concat(t," exists already, it will be overridden")),null!==(r=e)&&"object"===Hn(r)){var n=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ga(t,e)}(r,t);var n=va(r);function r(t){var i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var o=ma(i=n.call(this)),a={},s=o.getDefaultCfg();return Object.assign(a,s,e,t),Object.keys(a).forEach((function(t){var e=a[t];o[t]=e})),i}return r}(Qn);xa.set(t,n)}else xa.set(t,e);var r},Sa=function(t){return xa.has(t)?xa.get(t):null};function Ea(t){return(Ea="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Oa(t,e){return(Oa=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ka(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Aa(t);if(e){var i=Aa(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ma(this,n)}}function Ma(t,e){return!e||"object"!==Ea(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t):e}function Aa(t){return(Aa=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ta=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Oa(t,e)}(o,t);var e,n,r,i=ka(o);function o(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(e=i.call(this)).nodeSize=30,e.minNodeSpacing=10,e.preventOverlap=!1,e.equidistant=!1,e.startAngle=1.5*Math.PI,e.clockwise=!0,e.sortBy="degree",e.nodes=[],e.edges=[],e.width=300,e.height=300,e.onLayoutEnd=function(){},e.updateCfg(t),e}return e=o,(n=[{key:"getDefaultCfg",value:function(){return{nodeSize:30,minNodeSpacing:10,preventOverlap:!1,sweep:void 0,equidistant:!1,startAngle:1.5*Math.PI,clockwise:!0,maxLevelDiff:void 0,sortBy:"degree"}}},{key:"execute",value:function(){var t=this,e=t.nodes,n=t.edges,r=e.length;if(0!==r){t.width||"undefined"==typeof window||(t.width=window.innerWidth),t.height||"undefined"==typeof window||(t.height=window.innerHeight),t.center||(t.center=[t.width/2,t.height/2]);var i=t.center;if(1===r)return e[0].x=i[0],e[0].y=i[1],void(t.onLayoutEnd&&t.onLayoutEnd());var o,a=[];o=Fn(t.nodeSize)?Math.max(t.nodeSize[0],t.nodeSize[1]):t.nodeSize,e.forEach((function(t){a.push(t);var e=o;Fn(t.size)?e=Math.max(t.size[0],t.size[1]):Un(t.size)&&(e=t.size),o=Math.max(o,e)})),t.clockwise=void 0!==t.counterclockwise?!t.counterclockwise:t.clockwise;var s={},u={};if(a.forEach((function(t,e){s[t.id]=t,u[t.id]=e})),!("degree"!==t.sortBy&&Bn(t.sortBy)&&void 0!==a[0][t.sortBy]||(t.sortBy="degree",Un(e[0].degree)))){var c=Vn(e.length,u,n);a.forEach((function(t,e){t.degree=c[e]}))}a.sort((function(e,n){return n[t.sortBy]-e[t.sortBy]})),t.maxValueNode=a[0],t.maxLevelDiff=t.maxLevelDiff||t.maxValueNode[t.sortBy]/4;var f=[[]],l=f[0];a.forEach((function(e){if(l.length>0){var n=Math.abs(l[0][t.sortBy]-e[t.sortBy]);t.maxLevelDiff&&n>=t.maxLevelDiff&&(l=[],f.push(l))}l.push(e)}));var h=o+t.minNodeSpacing;if(!t.preventOverlap){var d=f.length>0&&f[0].length>1,p=(Math.min(t.width,t.height)/2-h)/(f.length+(d?1:0));h=Math.min(h,p)}var g=0;if(f.forEach((function(e){var n=t.sweep;void 0===n&&(n=2*Math.PI-2*Math.PI/e.length);var r=e.dTheta=n/Math.max(1,e.length-1);if(e.length>1&&t.preventOverlap){var i=Math.cos(r)-Math.cos(0),o=Math.sin(r)-Math.sin(0),a=Math.sqrt(h*h/(i*i+o*o));g=Math.max(a,g)}e.r=g,g+=h})),t.equidistant){for(var v=0,y=0,m=0;m<f.length;m++){var b=f[m].r-y;v=Math.max(v,b)}y=0,f.forEach((function(t,e){0===e&&(y=t.r),t.r=y,y+=v}))}return f.forEach((function(e){var n=e.dTheta,r=e.r;e.forEach((function(e,o){var a=t.startAngle+(t.clockwise?1:-1)*n*o;e.x=i[0]+r*Math.cos(a),e.y=i[1]+r*Math.sin(a)}))})),t.onLayoutEnd&&t.onLayoutEnd(),{nodes:e,edges:n}}t.onLayoutEnd&&t.onLayoutEnd()}},{key:"getType",value:function(){return"concentric"}}])&&_a(e.prototype,n),r&&_a(e,r),o}(Qn);function Ca(t){return(Ca="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ia(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Pa(t,e){return(Pa=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ja(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Na(t);if(e){var i=Na(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Da(this,n)}}function Da(t,e){return!e||"object"!==Ca(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t):e}function Na(t){return(Na=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ra=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Pa(t,e)}(o,t);var e,n,r,i=ja(o);function o(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(e=i.call(this)).center=[0,0],e.linkDistance=50,e.nodes=[],e.edges=[],e.onLayoutEnd=function(){},e.updateCfg(t),e}return e=o,(n=[{key:"getDefaultCfg",value:function(){return{center:[0,0],linkDistance:50}}},{key:"execute",value:function(){var t=this.nodes,e=this.edges,n=void 0===e?[]:e,r=this.center;if(t&&0!==t.length){if(1===t.length)return t[0].x=r[0],t[0].y=r[1],void(this.onLayoutEnd&&this.onLayoutEnd());var i=this.linkDistance,o=Xn({nodes:t,edges:n},!1),a=Wn(o);this.handleInfinity(a);var s,u,c=(s=i,u=[],a.forEach((function(t){var e=[];t.forEach((function(t){e.push(t*s)})),u.push(e)})),u);this.scaledDistances=c;var f=this.runMDS();return this.positions=f,f.forEach((function(e,n){t[n].x=e[0]+r[0],t[n].y=e[1]+r[1]})),this.onLayoutEnd&&this.onLayoutEnd(),{nodes:t,edges:n}}this.onLayoutEnd&&this.onLayoutEnd()}},{key:"runMDS",value:function(){var t=this.scaledDistances,e=zo.mul(zo.pow(t,2),-.5),n=e.mean("row"),r=e.mean("column"),i=e.mean();e.add(i).subRowVector(n).subColumnVector(r);var o=new $o(e),a=zo.sqrt(o.diagonalMatrix).diagonal();return o.leftSingularVectors.toJSON().map((function(t){return zo.mul([t],[a]).toJSON()[0].splice(0,2)}))}},{key:"handleInfinity",value:function(t){var e=-999999;t.forEach((function(t){t.forEach((function(t){t!==1/0&&e<t&&(e=t)}))})),t.forEach((function(n,r){n.forEach((function(n,i){n===1/0&&(t[r][i]=e)}))}))}},{key:"getType",value:function(){return"mds"}}])&&Ia(e.prototype,n),r&&Ia(e,r),o}(Qn);function La(t){return(La="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ba(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ga(t,e){return(Ga=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Fa(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=za(t);if(e){var i=za(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ua(this,n)}}function Ua(t,e){return!e||"object"!==La(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t):e}function za(t){return(za=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Va=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ga(t,e)}(o,t);var e,n,r,i=Fa(o);function o(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(e=i.call(this)).maxIteration=1e3,e.gravity=10,e.speed=1,e.clustering=!1,e.clusterGravity=10,e.nodes=[],e.edges=[],e.width=300,e.height=300,e.nodeMap={},e.nodeIdxMap={},e.onLayoutEnd=function(){},e.updateCfg(t),e}return e=o,(n=[{key:"getDefaultCfg",value:function(){return{maxIteration:1e3,gravity:10,speed:1,clustering:!1,clusterGravity:10}}},{key:"execute",value:function(){var t=this,e=this.nodes;if(e&&0!==e.length){this.width||"undefined"==typeof window||(this.width=window.innerWidth),this.height||"undefined"==typeof window||(this.height=window.innerHeight),this.center||(this.center=[this.width/2,this.height/2]);var n=this.center;if(1===e.length)return e[0].x=n[0],e[0].y=n[1],void(this.onLayoutEnd&&this.onLayoutEnd());var r={},i={};return e.forEach((function(e,n){Un(e.x)||(e.x=Math.random()*t.width),Un(e.y)||(e.y=Math.random()*t.height),r[e.id]=e,i[e.id]=n})),this.nodeMap=r,this.nodeIdxMap=i,this.run()}this.onLayoutEnd&&this.onLayoutEnd()}},{key:"run",value:function(){var t=this,e=t.nodes,n=t.edges,r=t.maxIteration,i=t.center,o=t.height*t.width,a=Math.sqrt(o)/10,s=o/(e.length+1),u=Math.sqrt(s),c=t.gravity,f=t.speed,l=t.clustering,h={};if(l)for(var d in e.forEach((function(t){if(void 0===h[t.cluster]){var e={name:t.cluster,cx:0,cy:0,count:0};h[t.cluster]=e}var n=h[t.cluster];Un(t.x)&&(n.cx+=t.x),Un(t.y)&&(n.cy+=t.y),n.count++})),h)h[d].cx/=h[d].count,h[d].cy/=h[d].count;for(var p=function(r){var o=[];if(e.forEach((function(t,e){o[e]={x:0,y:0}})),t.applyCalculate(e,n,o,u,s),l){var d=t.clusterGravity||c;for(var p in e.forEach((function(t,e){if(Un(t.x)&&Un(t.y)){var n=h[t.cluster],r=Math.sqrt((t.x-n.cx)*(t.x-n.cx)+(t.y-n.cy)*(t.y-n.cy)),i=u*d;o[e].x-=i*(t.x-n.cx)/r,o[e].y-=i*(t.y-n.cy)/r}})),h)h[p].cx=0,h[p].cy=0,h[p].count=0;for(var g in e.forEach((function(t){var e=h[t.cluster];Un(t.x)&&(e.cx+=t.x),Un(t.y)&&(e.cy+=t.y),e.count++})),h)h[g].cx/=h[g].count,h[g].cy/=h[g].count}e.forEach((function(t,e){if(Un(t.x)&&Un(t.y)){var n=.01*u*c;o[e].x-=n*(t.x-i[0]),o[e].y-=n*(t.y-i[1])}})),e.forEach((function(t,e){if(Un(t.x)&&Un(t.y)){var n=Math.sqrt(o[e].x*o[e].x+o[e].y*o[e].y);if(n>0){var r=Math.min(a*(f/800),n);t.x+=o[e].x/n*r,t.y+=o[e].y/n*r}}}))},g=0;g<r;g++)p();return t.onLayoutEnd&&t.onLayoutEnd(),{nodes:e,edges:n}}},{key:"applyCalculate",value:function(t,e,n,r,i){this.calRepulsive(t,n,i),this.calAttractive(e,n,r)}},{key:"calRepulsive",value:function(t,e,n){t.forEach((function(r,i){e[i]={x:0,y:0},t.forEach((function(t,o){if(i!==o&&Un(r.x)&&Un(t.x)&&Un(r.y)&&Un(t.y)){var a=r.x-t.x,s=r.y-t.y,u=a*a+s*s;if(0===u){u=1;var c=i>o?1:-1;a=.01*c,s=.01*c}var f=n/u;e[i].x+=a*f,e[i].y+=s*f}}))}))}},{key:"calAttractive",value:function(t,e,n){var r=this;t.forEach((function(t){if(t.source&&t.target){var i=r.nodeIdxMap[t.source],o=r.nodeIdxMap[t.target];if(i!==o){var a=r.nodeMap[t.source],s=r.nodeMap[t.target];if(Un(s.x)&&Un(a.x)&&Un(s.y)&&Un(a.y)){var u=s.x-a.x,c=s.y-a.y,f=Math.sqrt(u*u+c*c),l=f*f/n;e[o].x-=u/f*l,e[o].y-=c/f*l,e[i].x+=u/f*l,e[i].y+=c/f*l}}}}))}},{key:"getType",value:function(){return"fruchterman"}}])&&Ba(e.prototype,n),r&&Ba(e,r),o}(Qn),Wa=n(10),Xa=n.n(Wa),Ya=n(6),Ha=n.n(Ya),qa=n(7),Ka=n.n(qa),Za=n(11),Qa=n.n(Za),Ja=(n(28),n(3)),$a=n(5),ts=n(49),es=n.n(ts);function ns(t){return void 0===t?0:t>360||t<-360?t%360:t}function rs(t,e,n){return es()(t)?un.e.fromValues(t,e,n):3===t.length?un.e.clone(t):un.e.fromValues(t[0],t[1],t[2])}var is,os,as,ss,us,cs,fs,ls,hs,ds,ps=function(){function t(e,n){Ha()(this,t),this.name=void 0,this.matrix=void 0,this.right=void 0,this.up=void 0,this.forward=void 0,this.position=void 0,this.focalPoint=void 0,this.distanceVector=void 0,this.distance=void 0,this.dollyingStep=void 0,this.azimuth=0,this.elevation=0,this.roll=0,this.relAzimuth=0,this.relElevation=0,this.relRoll=0,this.name=e,this.matrix=un.b.clone(n.matrix),this.right=un.e.clone(n.right),this.up=un.e.clone(n.up),this.forward=un.e.clone(n.forward),this.position=un.e.clone(n.position),this.focalPoint=un.e.clone(n.focalPoint),this.distanceVector=un.e.clone(n.distanceVector),this.azimuth=n.azimuth,this.elevation=n.elevation,this.roll=n.roll,this.relAzimuth=n.relAzimuth,this.relElevation=n.relElevation,this.relRoll=n.relRoll,this.dollyingStep=n.dollyingStep,this.distance=n.distance}return Ka()(t,[{key:"getPosition",value:function(){return this.position}},{key:"getFocalPoint",value:function(){return this.focalPoint}},{key:"getRoll",value:function(){return this.roll}},{key:"retrieve",value:function(t){t.matrix=un.b.copy(t.matrix,this.matrix),t.right=un.e.copy(t.right,this.right),t.up=un.e.copy(t.up,this.up),t.forward=un.e.copy(t.forward,this.forward),t.position=un.e.copy(t.position,this.position),t.focalPoint=un.e.copy(t.focalPoint,this.focalPoint),t.distanceVector=un.e.copy(t.distanceVector,this.distanceVector),t.azimuth=this.azimuth,t.elevation=this.elevation,t.roll=this.roll,t.relAzimuth=this.relAzimuth,t.relElevation=this.relElevation,t.relRoll=this.relRoll,t.dollyingStep=this.dollyingStep,t.distance=this.distance}}]),t}();!function(t){t.ORBITING="ORBITING",t.EXPLORING="EXPLORING",t.TRACKING="TRACKING"}(ls||(ls={})),function(t){t.DEFAULT="DEFAULT",t.ROTATIONAL="ROTATIONAL",t.TRANSLATIONAL="TRANSLATIONAL",t.CINEMATIC="CINEMATIC"}(hs||(hs={})),function(t){t.ORTHOGRAPHIC="ORTHOGRAPHIC",t.PERSPECTIVE="PERSPECTIVE"}(ds||(ds={}));var gs,vs,ys,ms,bs,xs,ws,Ss,Es,_s,Os,ks,Ms,As,Ts=Math.PI/180,Cs=180/Math.PI,Is=(is=Object($a.injectable)(),os=Object($a.inject)(Ja.IDENTIFIER.InteractorService),is((fs=cs=function(){function t(){Ha()(this,t),this.matrix=un.b.create(),this.right=un.e.fromValues(1,0,0),this.up=un.e.fromValues(0,1,0),this.forward=un.e.fromValues(0,0,1),this.position=un.e.fromValues(0,0,1),this.focalPoint=un.e.fromValues(0,0,0),this.distanceVector=un.e.fromValues(0,0,0),this.distance=1,this.azimuth=0,this.elevation=0,this.roll=0,this.relAzimuth=0,this.relElevation=0,this.relRoll=0,this.dollyingStep=0,this.maxDistance=1/0,this.minDistance=-1/0,this.rotateWorld=!1,Xa()(this,"interactor",us,this),this.fov=30,this.near=.1,this.far=1e4,this.aspect=1,this.left=void 0,this.rright=void 0,this.top=void 0,this.bottom=void 0,this.zoom=1,this.perspective=un.b.create(),this.view=void 0,this.following=void 0,this.type=ls.EXPLORING,this.trackingMode=hs.DEFAULT,this.projectionMode=ds.PERSPECTIVE,this.frustum=new Ja.Frustum,this.landmarks=[],this.landmarkAnimationID=void 0}return Ka()(t,[{key:"clone",value:function(){var e=new t;return e.setType(this.type,void 0),e.interactor=this.interactor,e}},{key:"getProjectionMode",value:function(){return this.projectionMode}},{key:"getPerspective",value:function(){return this.perspective}},{key:"getFrustum",value:function(){return this.frustum}},{key:"getPosition",value:function(){return this.position}},{key:"setType",value:function(t,e){return this.type=t,this.type===ls.EXPLORING?this.setWorldRotation(!0):this.setWorldRotation(!1),this._getAngles(),this.type===ls.TRACKING&&void 0!==e&&this.setTrackingMode(e),this}},{key:"setProjectionMode",value:function(t){return this.projectionMode=t,this}},{key:"setTrackingMode",value:function(t){if(this.type!==ls.TRACKING)throw new Error("Impossible to set a tracking mode if the camera is not of tracking type");return this.trackingMode=t,this}},{key:"setWorldRotation",value:function(t){this.rotateWorld=t,this._getAngles()}},{key:"getViewTransform",value:function(){return un.b.invert(un.b.create(),this.matrix)}},{key:"getWorldTransform",value:function(){return this.matrix}},{key:"setMatrix",value:function(t){return this.matrix=t,this._update(),this}},{key:"setAspect",value:function(t){return this.setPerspective(this.near,this.far,this.fov,t),this}},{key:"setViewOffset",value:function(t,e,n,r,i,o){return this.aspect=t/e,void 0===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=o,this.projectionMode===ds.PERSPECTIVE?this.setPerspective(this.near,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far),this}},{key:"clearViewOffset",value:function(){return void 0!==this.view&&(this.view.enabled=!1),this.projectionMode===ds.PERSPECTIVE?this.setPerspective(this.near,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far),this}},{key:"setPerspective",value:function(t,e,n,r){return this.projectionMode=ds.PERSPECTIVE,this.fov=n,this.near=t,this.far=e,this.aspect=r,un.b.perspective(this.perspective,this.fov*Ts,this.aspect,this.near,this.far),this}},{key:"setOrthographic",value:function(t,e,n,r,i,o){this.projectionMode=ds.ORTHOGRAPHIC,this.rright=e,this.left=t,this.top=n,this.bottom=r,this.near=i,this.far=o;var a=(this.rright-this.left)/(2*this.zoom),s=(this.top-this.bottom)/(2*this.zoom),u=(this.rright+this.left)/2,c=(this.top+this.bottom)/2,f=u-a,l=u+a,h=c+s,d=c-s;if(void 0!==this.view&&this.view.enabled){var p=(this.rright-this.left)/this.view.fullWidth/this.zoom,g=(this.top-this.bottom)/this.view.fullHeight/this.zoom;l=(f+=p*this.view.offsetX)+p*this.view.width,d=(h-=g*this.view.offsetY)-g*this.view.height}return un.b.ortho(this.perspective,f,l,h,d,i,o),this}},{key:"setPosition",value:function(t,e,n){return this._setPosition(t,e,n),this.setFocalPoint(this.focalPoint),this}},{key:"setFocalPoint",value:function(t,e,n){var r=un.e.fromValues(0,1,0);if(this.focalPoint=rs(t,e,n),this.trackingMode===hs.CINEMATIC){var i=un.e.subtract(un.e.create(),this.focalPoint,this.position);t=i[0],e=i[1],n=i[2];var o=un.e.length(i),a=Math.asin(e/o)*Cs,s=90+Math.atan2(n,t)*Cs,u=un.b.create();un.b.rotateY(u,u,s*Ts),un.b.rotateX(u,u,a*Ts),r=un.e.transformMat4(un.e.create(),[0,1,0],u)}return un.b.invert(this.matrix,un.b.lookAt(un.b.create(),this.position,this.focalPoint,r)),this._getAxes(),this._getDistance(),this._getAngles(),this}},{key:"setDistance",value:function(t){if(!(this.distance===t||t<0)){this.distance=t,this.distance<2e-4&&(this.distance=2e-4),this.dollyingStep=this.distance/100;var e=un.e.create();t=this.distance;var n=this.forward,r=this.focalPoint;return e[0]=t*n[0]+r[0],e[1]=t*n[1]+r[1],e[2]=t*n[2]+r[2],this._setPosition(e),this}}},{key:"setMaxDistance",value:function(t){return this.maxDistance=t,this}},{key:"setMinDistance",value:function(t){return this.minDistance=t,this}},{key:"changeAzimuth",value:function(t){return this.setAzimuth(this.azimuth+t),this}},{key:"changeElevation",value:function(t){return this.setElevation(this.elevation+t),this}},{key:"changeRoll",value:function(t){return this.setRoll(this.roll+t),this}},{key:"setAzimuth",value:function(t){return this.azimuth=ns(t),this.computeMatrix(),this._getAxes(),this.type===ls.ORBITING||this.type===ls.EXPLORING?this._getPosition():this.type===ls.TRACKING&&this._getFocalPoint(),this}},{key:"getAzimuth",value:function(){return this.azimuth}},{key:"setElevation",value:function(t){return this.elevation=ns(t),this.computeMatrix(),this._getAxes(),this.type===ls.ORBITING||this.type===ls.EXPLORING?this._getPosition():this.type===ls.TRACKING&&this._getFocalPoint(),this}},{key:"setRoll",value:function(t){return this.roll=ns(t),this.computeMatrix(),this._getAxes(),this.type===ls.ORBITING||this.type===ls.EXPLORING?this._getPosition():this.type===ls.TRACKING&&this._getFocalPoint(),this}},{key:"rotate",value:function(t,e,n){if(this.type===ls.EXPLORING){t=ns(t),e=ns(e),n=ns(n);var r=un.c.setAxisAngle(un.c.create(),[1,0,0],(this.rotateWorld?1:-1)*e*Ts),i=un.c.setAxisAngle(un.c.create(),[0,1,0],(this.rotateWorld?1:-1)*t*Ts),o=un.c.setAxisAngle(un.c.create(),[0,0,1],n*Ts),a=un.c.multiply(un.c.create(),i,r);a=un.c.multiply(un.c.create(),a,o);var s=un.b.fromQuat(un.b.create(),a);un.b.translate(this.matrix,this.matrix,[0,0,-this.distance]),un.b.multiply(this.matrix,this.matrix,s),un.b.translate(this.matrix,this.matrix,[0,0,this.distance])}else{if(Math.abs(this.elevation+e)>90)return;this.relElevation=ns(e),this.relAzimuth=ns(t),this.relRoll=ns(n),this.elevation+=this.relElevation,this.azimuth+=this.relAzimuth,this.roll+=this.relRoll,this.computeMatrix()}return this._getAxes(),this.type===ls.ORBITING||this.type===ls.EXPLORING?this._getPosition():this.type===ls.TRACKING&&this._getFocalPoint(),this._update(),this}},{key:"pan",value:function(t,e){var n=rs(t,e,0),r=un.e.clone(this.position);return un.e.add(r,r,un.e.scale(un.e.create(),this.right,n[0])),un.e.add(r,r,un.e.scale(un.e.create(),this.up,n[1])),this._setPosition(r),this}},{key:"dolly",value:function(t){var e=this.forward,n=un.e.clone(this.position),r=this.dollyingStep,i=this.distance+t*this.dollyingStep;return r=Math.max(Math.min(i,this.maxDistance),this.minDistance)-this.distance,n[0]+=r*e[0],n[1]+=r*e[1],n[2]+=r*e[2],this._setPosition(n),this.type===ls.ORBITING||this.type===ls.EXPLORING?this._getDistance():this.type===ls.TRACKING&&un.e.add(this.focalPoint,n,this.distanceVector),this}},{key:"createLandmark",value:function(t,e){var n=this.clone();n.setPosition(e.position),n.setFocalPoint(e.focalPoint),void 0!==e.roll&&n.setRoll(e.roll);var r=new ps(t,n);return this.landmarks.push(r),r}},{key:"setLandmark",value:function(t){var e=new ps(t,this);return this.landmarks.push(e),this}},{key:"gotoLandmark",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,r=this.landmarks.find((function(e){return e.name===t}));if(r){if(0===n)return void r.retrieve(this);void 0!==this.landmarkAnimationID&&window.cancelAnimationFrame(this.landmarkAnimationID),this.interactor.disconnect();var i,o=r.getPosition(),a=r.getFocalPoint(),s=r.getRoll(),u=function t(r){void 0===i&&(i=r);var u,c=r-i,f=(1-Math.cos(c/n*Math.PI))/2,l=un.e.create(),h=un.e.create();if(un.e.lerp(l,e.focalPoint,a,f),un.e.lerp(h,e.position,o,f),u=e.roll*(1-f)+s*f,e.setFocalPoint(l),e.setPosition(h),e.setRoll(u),e.computeMatrix(),!(un.e.dist(l,a)+un.e.dist(h,o)>.01))return e.setFocalPoint(l),e.setPosition(h),e.setRoll(u),e.computeMatrix(),void e.interactor.connect();c<n&&(e.landmarkAnimationID=window.requestAnimationFrame(t))};window.requestAnimationFrame(u)}}},{key:"_update",value:function(){this._getAxes(),this._getPosition(),this._getDistance(),this._getAngles()}},{key:"computeMatrix",value:function(){var t,e,n=un.c.setAxisAngle(un.c.create(),[0,0,1],this.roll*Ts);un.b.identity(this.matrix),t=un.c.setAxisAngle(un.c.create(),[1,0,0],(this.rotateWorld&&this.type!==ls.TRACKING||this.type===ls.TRACKING?1:-1)*this.elevation*Ts),e=un.c.setAxisAngle(un.c.create(),[0,1,0],(this.rotateWorld&&this.type!==ls.TRACKING||this.type===ls.TRACKING?1:-1)*this.azimuth*Ts);var r=un.c.multiply(un.c.create(),e,t);r=un.c.multiply(un.c.create(),r,n);var i=un.b.fromQuat(un.b.create(),r);this.type===ls.ORBITING||this.type===ls.EXPLORING?(un.b.translate(this.matrix,this.matrix,this.focalPoint),un.b.multiply(this.matrix,this.matrix,i),un.b.translate(this.matrix,this.matrix,[0,0,this.distance])):this.type===ls.TRACKING&&(un.b.translate(this.matrix,this.matrix,this.position),un.b.multiply(this.matrix,this.matrix,i))}},{key:"_setPosition",value:function(t,e,n){this.position=rs(t,e,n);var r=this.matrix;r[12]=this.position[0],r[13]=this.position[1],r[14]=this.position[2],r[15]=1}},{key:"_getAxes",value:function(){un.e.copy(this.right,rs(un.f.transformMat4(un.f.create(),[1,0,0,0],this.matrix))),un.e.copy(this.up,rs(un.f.transformMat4(un.f.create(),[0,1,0,0],this.matrix))),un.e.copy(this.forward,rs(un.f.transformMat4(un.f.create(),[0,0,1,0],this.matrix))),un.e.normalize(this.right,this.right),un.e.normalize(this.up,this.up),un.e.normalize(this.forward,this.forward)}},{key:"_getAngles",value:function(){var t=this.distanceVector[0],e=this.distanceVector[1],n=this.distanceVector[2],r=un.e.length(this.distanceVector);if(0===r)return this.elevation=0,void(this.azimuth=0);this.type===ls.TRACKING||this.rotateWorld?(this.elevation=Math.asin(e/r)*Cs,this.azimuth=Math.atan2(-t,-n)*Cs):(this.elevation=-Math.asin(e/r)*Cs,this.azimuth=-Math.atan2(-t,-n)*Cs)}},{key:"_getPosition",value:function(){un.e.copy(this.position,rs(un.f.transformMat4(un.f.create(),[0,0,0,1],this.matrix))),this._getDistance()}},{key:"_getFocalPoint",value:function(){un.e.transformMat3(this.distanceVector,[0,0,-this.distance],un.a.fromMat4(un.a.create(),this.matrix)),un.e.add(this.focalPoint,this.position,this.distanceVector),this._getDistance()}},{key:"_getDistance",value:function(){this.distanceVector=un.e.subtract(un.e.create(),this.focalPoint,this.position),this.distance=un.e.length(this.distanceVector),this.dollyingStep=this.distance/100}}]),t}(),cs.ProjectionMode={ORTHOGRAPHIC:"ORTHOGRAPHIC",PERSPECTIVE:"PERSPECTIVE"},ss=fs,us=Qa()(ss.prototype,"interactor",[os],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),as=ss))||as),Ps=(gs=Object($a.injectable)(),vs=Object($a.inject)(Ja.IDENTIFIER.GeometryComponentManager),gs((ws=xs=function(){function t(){Ha()(this,t),this.config=void 0,Xa()(this,"geometry",bs,this),this.entity=void 0,this.component=void 0}return Ka()(t,[{key:"getEntity",value:function(){return this.entity}},{key:"getComponent",value:function(){return this.component}},{key:"setConfig",value:function(t){this.config=t}},{key:"setEntity",value:function(t){this.entity=t,this.component=this.geometry.create(t),this.component.entity=t,this.onEntityCreated()}},{key:"onEntityCreated",value:function(){}}]),t}(),xs.BOX="box",xs.SPHERE="sphere",xs.PLANE="plane",xs.MERGED="merged",ms=ws,bs=Qa()(ms.prototype,"geometry",[vs],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ys=ms))||ys),js=n(9),Ds=n.n(js),Ns=n(14),Rs=n.n(Ns),Ls=n(4),Bs=n.n(Ls),Gs=n(32),Fs=n.n(Gs),Us=n(29),zs=n.n(Us),Vs=n(8);function Ws(){if("undefined"!=typeof document)return document.createElement("canvas");throw new Error("Cannot create a canvas in this context")}function Xs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ys(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Xs(Object(n),!0).forEach((function(e){Bs()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xs(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Hs,qs,Ks,Zs,Qs,Js,$s,tu,eu,nu,ru,iu,ou,au,su,uu,cu,fu,lu,hu,du,pu,gu,vu,yu,mu,bu,xu,wu,Su,Eu,_u,Ou,ku,Mu,Au=(Ss=Object($a.injectable)(),Es=Object($a.inject)(Ja.IDENTIFIER.RenderEngine),_s=Object($a.inject)(Ja.IDENTIFIER.ConfigService),Ss((ks=function(){function t(){Ha()(this,t),Xa()(this,"engine",Ms,this),Xa()(this,"configService",As,this),this.entity=Object(Ja.createEntity)(),this.model=void 0,this.dirty=!0,this.compiledBundle=void 0,this.initPromise=void 0}var e,n,r;return Ka()(t,[{key:"init",value:function(){var t=this.configService.get(),e=t.canvas,n=t.engineOptions;this.initPromise=this.engine.init(Ys({canvas:e||Ws(),swapChainFormat:Vs.TextureFormat.BGRA8Unorm,antialiasing:!1},n))}},{key:"setBundle",value:function(t){this.compiledBundle=JSON.parse(JSON.stringify(t))}},{key:"setDispatch",value:function(t){return this.compiledBundle.context&&(this.compiledBundle.context.dispatch=t),this}},{key:"setMaxIteration",value:function(t){return this.compiledBundle.context&&(this.compiledBundle.context.maxIteration=t),this}},{key:"setBinding",value:function(t,e){var n=this;if("string"==typeof t){var r=es()(e)||Fs()(e)||zs()(e);if(this.compiledBundle&&this.compiledBundle.context){var i=this.compiledBundle.context.defines.find((function(e){return e.name===t}));if(i)return i.value=e,this;var o=this.compiledBundle.context.uniforms.find((function(e){return e.name===t}));o&&(r?(o.data=e,o.isReferer=!1,o.storageClass===Ja.STORAGE_CLASS.Uniform?this.model&&this.model.updateUniform(t,e):this.model&&this.model.updateBuffer(t,e)):(o.isReferer=!0,o.data=e))}}else Object.keys(t).forEach((function(e){n.setBinding(e,t[e])}));return this}},{key:"execute",value:(r=Rs()(Ds.a.mark((function t(){var e,n,r=this,i=arguments;return Ds.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=i.length>0&&void 0!==i[0]?i[0]:1,!this.dirty){t.next=6;break}return this.compiledBundle.context&&(e>1?this.compiledBundle.context.maxIteration=e:this.compiledBundle.context.maxIteration++),t.next=5,this.compile();case 5:this.dirty=!1;case 6:for(this.engine.beginFrame(),this.engine.clear({}),this.compiledBundle.context&&this.compiledBundle.context.uniforms.filter((function(t){return t.isReferer})).forEach((function(t){var e=t.data,n=t.name;r.model.confirmInput(e.model,n)})),n=0;n<e;n++)this.model.run();return this.engine.endFrame(),t.abrupt("return",this);case 12:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"getOutput",value:(n=Rs()(Ds.a.mark((function t(){return Ds.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.model.readData());case 1:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"compile",value:(e=Rs()(Ds.a.mark((function t(){var e,n,r;return Ds.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.initPromise;case 2:return e=Ys({},this.compiledBundle.context),n=this.engine.supportWebGPU?this.engine.useWGSL?Ja.Target.WGSL:Ja.Target.GLSL450:Ja.Target.GLSL100,r=this.compiledBundle.shaders[n],e.defines.filter((function(t){return t.runtime})).forEach((function(t){var e="".concat(Ja.DefineValuePlaceholder).concat(t.name);r=r.replace(e,"".concat(t.value))})),e.shader=r,e.uniforms.forEach((function(t){if(!t.data&&t.storageClass===Ja.STORAGE_CLASS.StorageBuffer){var n=1;t.type===Ja.AST_TOKEN_TYPES.FloatArray?n=1:t.type===Ja.AST_TOKEN_TYPES.Vector4FloatArray&&(n=4),t.data=new Float32Array(e.output.length*n).fill(0)}})),this.compiledBundle.context=e,t.next=11,this.engine.createComputeModel(this.compiledBundle.context);case 11:this.model=t.sent;case 12:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})}]),t}(),Ms=Qa()(ks.prototype,"engine",[Es],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),As=Qa()(ks.prototype,"configService",[_s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Os=ks))||Os),Tu=(Hs=Object($a.injectable)(),qs=Object($a.inject)(Ja.IDENTIFIER.MaterialComponentManager),Hs(($s=Js=function(){function t(){Ha()(this,t),this.config=void 0,Xa()(this,"material",Qs,this),this.entity=void 0,this.component=void 0}return Ka()(t,[{key:"getEntity",value:function(){return this.entity}},{key:"getComponent",value:function(){return this.component}},{key:"setConfig",value:function(t){this.config=t}},{key:"setEntity",value:function(t,e){this.entity=t,this.component=this.material.create(t),this.component.entity=t,this.component.type=e,this.onEntityCreated()}},{key:"onEntityCreated",value:function(){}}]),t}(),Js.BASIC="basic",Zs=$s,Qs=Qa()(Zs.prototype,"material",[qs],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ks=Zs))||Ks),Cu=(tu=Object($a.injectable)(),eu=Object($a.inject)(Ja.IDENTIFIER.MeshComponentManager),nu=Object($a.inject)(Ja.IDENTIFIER.CullableComponentManager),ru=Object($a.inject)(Ja.IDENTIFIER.TransformComponentManager),iu=Object($a.inject)(Ja.IDENTIFIER.Systems),ou=Object($a.named)(Ja.IDENTIFIER.SceneGraphSystem),tu((du=hu=function(){function t(){Ha()(this,t),this.attributes={},this.config=void 0,Xa()(this,"mesh",uu,this),Xa()(this,"cullable",cu,this),Xa()(this,"transform",fu,this),Xa()(this,"sceneGraphSystem",lu,this),this.meshComponent=void 0,this.transformComponent=void 0,this.entity=void 0}return Ka()(t,[{key:"getEntity",value:function(){return this.entity}},{key:"getTransformComponent",value:function(){return this.transformComponent}},{key:"getMeshComponent",value:function(){return this.meshComponent}},{key:"setConfig",value:function(t){this.config=t}},{key:"setEntity",value:function(t){this.entity=t,this.cullable.create(t),this.meshComponent=this.mesh.create(t),this.transformComponent=this.transform.create(t),this.onEntityCreated()}},{key:"setMaterial",value:function(t){return this.meshComponent.material=t,this}},{key:"setGeometry",value:function(t){return this.meshComponent.geometry=t,this}},{key:"setAttributes",value:function(t){var e=this;Object.keys(t).forEach((function(n){void 0!==t[n]&&t[n]!==e.attributes[n]&&(e.onAttributeChanged({name:n,data:t[n]}),e.attributes[n]=t[n])}))}},{key:"setVisible",value:function(t){var e=this;return this.meshComponent.visible=t,this.meshComponent.children.forEach((function(n){var r=e.mesh.getComponentByEntity(n);r&&(r.visible=t)})),this}},{key:"isVisible",value:function(){return this.meshComponent.visible}},{key:"attach",value:function(t){return this.sceneGraphSystem.attach(this.entity,t.entity),this}},{key:"detach",value:function(){return this.sceneGraphSystem.detach(this.entity),this}},{key:"detachChildren",value:function(){return this.sceneGraphSystem.detachChildren(this.entity),this}},{key:"onEntityCreated",value:function(){}},{key:"onAttributeChanged",value:function(t){var e=t.name,n=t.data;this.meshComponent&&this.meshComponent.material&&this.meshComponent.material.setUniform(this.convertAttributeName2UniformName(e),n)}},{key:"convertAttributeName2UniformName",value:function(t){return t}}]),t}(),hu.POINT="point",hu.LINE="line",hu.GRID="grid",su=du,uu=Qa()(su.prototype,"mesh",[eu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),cu=Qa()(su.prototype,"cullable",[nu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),fu=Qa()(su.prototype,"transform",[ru],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),lu=Qa()(su.prototype,"sceneGraphSystem",[iu,ou],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),au=su))||au),Iu=n(273),Pu=n.n(Iu),ju=function(){function t(e,n){Ha()(this,t),this.attribute=void 0,this.buffer=void 0;var r=n.buffer,i=n.offset,o=n.stride,a=n.normalized,s=n.size,u=n.divisor;this.buffer=r,this.attribute={buffer:r.get(),offset:i||0,stride:o||0,normalized:a||!1,divisor:u||0},s&&(this.attribute.size=s)}return Ka()(t,[{key:"get",value:function(){return this.attribute}},{key:"updateBuffer",value:function(t){this.buffer.subData(t)}},{key:"destroy",value:function(){this.buffer.destroy()}}]),t}(),Du=(pu={},Bs()(pu,Ja.gl.POINTS,"points"),Bs()(pu,Ja.gl.LINES,"lines"),Bs()(pu,Ja.gl.LINE_LOOP,"line loop"),Bs()(pu,Ja.gl.LINE_STRIP,"line strip"),Bs()(pu,Ja.gl.TRIANGLES,"triangles"),Bs()(pu,Ja.gl.TRIANGLE_FAN,"triangle fan"),Bs()(pu,Ja.gl.TRIANGLE_STRIP,"triangle strip"),pu),Nu=(gu={},Bs()(gu,Ja.gl.STATIC_DRAW,"static"),Bs()(gu,Ja.gl.DYNAMIC_DRAW,"dynamic"),Bs()(gu,Ja.gl.STREAM_DRAW,"stream"),gu),Ru=(vu={},Bs()(vu,Ja.gl.BYTE,"int8"),Bs()(vu,Ja.gl.UNSIGNED_INT,"int16"),Bs()(vu,Ja.gl.INT,"int32"),Bs()(vu,Ja.gl.UNSIGNED_BYTE,"uint8"),Bs()(vu,Ja.gl.UNSIGNED_SHORT,"uint16"),Bs()(vu,Ja.gl.UNSIGNED_INT,"uint32"),Bs()(vu,Ja.gl.FLOAT,"float"),vu),Lu=(yu={},Bs()(yu,Ja.gl.ALPHA,"alpha"),Bs()(yu,Ja.gl.LUMINANCE,"luminance"),Bs()(yu,Ja.gl.LUMINANCE_ALPHA,"luminance alpha"),Bs()(yu,Ja.gl.RGB,"rgb"),Bs()(yu,Ja.gl.RGBA,"rgba"),Bs()(yu,Ja.gl.RGBA4,"rgba4"),Bs()(yu,Ja.gl.RGB5_A1,"rgb5 a1"),Bs()(yu,Ja.gl.RGB565,"rgb565"),Bs()(yu,Ja.gl.DEPTH_COMPONENT,"depth"),Bs()(yu,Ja.gl.DEPTH_STENCIL,"depth stencil"),yu),Bu=(mu={},Bs()(mu,Ja.gl.DONT_CARE,"dont care"),Bs()(mu,Ja.gl.NICEST,"nice"),Bs()(mu,Ja.gl.FASTEST,"fast"),mu),Gu=(bu={},Bs()(bu,Ja.gl.NEAREST,"nearest"),Bs()(bu,Ja.gl.LINEAR,"linear"),Bs()(bu,Ja.gl.LINEAR_MIPMAP_LINEAR,"mipmap"),Bs()(bu,Ja.gl.NEAREST_MIPMAP_LINEAR,"nearest mipmap linear"),Bs()(bu,Ja.gl.LINEAR_MIPMAP_NEAREST,"linear mipmap nearest"),Bs()(bu,Ja.gl.NEAREST_MIPMAP_NEAREST,"nearest mipmap nearest"),bu),Fu=(xu={},Bs()(xu,Ja.gl.REPEAT,"repeat"),Bs()(xu,Ja.gl.CLAMP_TO_EDGE,"clamp"),Bs()(xu,Ja.gl.MIRRORED_REPEAT,"mirror"),xu),Uu=(wu={},Bs()(wu,Ja.gl.NONE,"none"),Bs()(wu,Ja.gl.BROWSER_DEFAULT_WEBGL,"browser"),wu),zu=(Su={},Bs()(Su,Ja.gl.NEVER,"never"),Bs()(Su,Ja.gl.ALWAYS,"always"),Bs()(Su,Ja.gl.LESS,"less"),Bs()(Su,Ja.gl.LEQUAL,"lequal"),Bs()(Su,Ja.gl.GREATER,"greater"),Bs()(Su,Ja.gl.GEQUAL,"gequal"),Bs()(Su,Ja.gl.EQUAL,"equal"),Bs()(Su,Ja.gl.NOTEQUAL,"notequal"),Su),Vu=(Eu={},Bs()(Eu,Ja.gl.FUNC_ADD,"add"),Bs()(Eu,Ja.gl.MIN_EXT,"min"),Bs()(Eu,Ja.gl.MAX_EXT,"max"),Bs()(Eu,Ja.gl.FUNC_SUBTRACT,"subtract"),Bs()(Eu,Ja.gl.FUNC_REVERSE_SUBTRACT,"reverse subtract"),Eu),Wu=(_u={},Bs()(_u,Ja.gl.ZERO,"zero"),Bs()(_u,Ja.gl.ONE,"one"),Bs()(_u,Ja.gl.SRC_COLOR,"src color"),Bs()(_u,Ja.gl.ONE_MINUS_SRC_COLOR,"one minus src color"),Bs()(_u,Ja.gl.SRC_ALPHA,"src alpha"),Bs()(_u,Ja.gl.ONE_MINUS_SRC_ALPHA,"one minus src alpha"),Bs()(_u,Ja.gl.DST_COLOR,"dst color"),Bs()(_u,Ja.gl.ONE_MINUS_DST_COLOR,"one minus dst color"),Bs()(_u,Ja.gl.DST_ALPHA,"dst alpha"),Bs()(_u,Ja.gl.ONE_MINUS_DST_ALPHA,"one minus dst alpha"),Bs()(_u,Ja.gl.CONSTANT_COLOR,"constant color"),Bs()(_u,Ja.gl.ONE_MINUS_CONSTANT_COLOR,"one minus constant color"),Bs()(_u,Ja.gl.CONSTANT_ALPHA,"constant alpha"),Bs()(_u,Ja.gl.ONE_MINUS_CONSTANT_ALPHA,"one minus constant alpha"),Bs()(_u,Ja.gl.SRC_ALPHA_SATURATE,"src alpha saturate"),_u),Xu=(Ou={},Bs()(Ou,Ja.gl.NEVER,"never"),Bs()(Ou,Ja.gl.ALWAYS,"always"),Bs()(Ou,Ja.gl.LESS,"less"),Bs()(Ou,Ja.gl.LEQUAL,"lequal"),Bs()(Ou,Ja.gl.GREATER,"greater"),Bs()(Ou,Ja.gl.GEQUAL,"gequal"),Bs()(Ou,Ja.gl.EQUAL,"equal"),Bs()(Ou,Ja.gl.NOTEQUAL,"notequal"),Ou),Yu=(ku={},Bs()(ku,Ja.gl.ZERO,"zero"),Bs()(ku,Ja.gl.KEEP,"keep"),Bs()(ku,Ja.gl.REPLACE,"replace"),Bs()(ku,Ja.gl.INVERT,"invert"),Bs()(ku,Ja.gl.INCR,"increment"),Bs()(ku,Ja.gl.DECR,"decrement"),Bs()(ku,Ja.gl.INCR_WRAP,"increment wrap"),Bs()(ku,Ja.gl.DECR_WRAP,"decrement wrap"),ku),Hu=(Mu={},Bs()(Mu,Ja.gl.FRONT,"front"),Bs()(Mu,Ja.gl.BACK,"back"),Mu),qu=function(){function t(e,n){Ha()(this,t),this.buffer=void 0;var r=n.data,i=n.usage,o=n.type;this.buffer=e.buffer({data:r,usage:Nu[i||Ja.gl.STATIC_DRAW],type:Ru[o||Ja.gl.UNSIGNED_BYTE]})}return Ka()(t,[{key:"get",value:function(){return this.buffer}},{key:"destroy",value:function(){}},{key:"subData",value:function(t){var e=t.data,n=t.offset;this.buffer.subdata(e,n)}}]),t}(),Ku=n(26),Zu=n.n(Ku);function Qu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ju(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Qu(Object(n),!0).forEach((function(e){Bs()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qu(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var $u=0,tc=function(){function t(e,n){var r=this;Ha()(this,t),this.reGl=e,this.context=n,this.entity=Object(Ja.createEntity)(),this.texFBO=void 0,this.computeCommand=void 0,this.textureCache={},this.outputTextureName=void 0,this.swapOutputTextureName=void 0,this.compiledPingpong=void 0,this.dynamicPingpong=void 0;var i={};this.context.uniforms.forEach((function(t){var e=t.name,n=t.type,o=t.data,a=t.isReferer,s=t.storageClass;if(s===Ja.STORAGE_CLASS.StorageBuffer){if(a)r.textureCache[e]={data:void 0},i["".concat(e,"Size")]=function(){return o.compiledBundle.context.output.textureSize};else{r.textureCache[e]=r.calcDataTexture(e,n,o);var u=r.textureCache[e],c=u.textureWidth,f=u.isOutput;i["".concat(e,"Size")]=[c,c],f&&(r.outputTextureName=e,r.context.needPingpong&&(r.outputTextureName="".concat(e,"Output"),r.textureCache[r.outputTextureName]=r.calcDataTexture(e,n,o)))}i[e]=function(){return r.textureCache[e].texture}}else if(s===Ja.STORAGE_CLASS.Uniform){if(o&&(Array.isArray(o)||Fs()(o))&&o.length>16)throw new Error("invalid data type ".concat(n));i[e]=function(){return t.data}}}));var o=this.getOuputDataTexture(),a=o.textureWidth,s=o.texelCount;i.u_OutputTextureSize=[a,a],i.u_OutputTexelCount=s,this.context.output.textureSize=[a,a];var u={attributes:{a_Position:[[-1,1,0],[-1,-1,0],[1,1,0],[1,-1,0]],a_TexCoord:[[0,1],[0,0],[1,1],[1,0]]},frag:"#ifdef GL_FRAGMENT_PRECISION_HIGH\\n precision highp float;\\n#else\\n precision mediump float;\\n#endif\\n".concat(this.context.shader),uniforms:i,vert:"attribute vec3 a_Position;\\nattribute vec2 a_TexCoord;\\n\\nvarying vec2 v_TexCoord;\\n\\nvoid main() {\\n gl_Position = vec4(a_Position, 1.0);\\n v_TexCoord = a_TexCoord;\\n}",primitive:"triangle strip",count:4};this.computeCommand=this.reGl(u)}var e;return Ka()(t,[{key:"run",value:function(){var t=this;this.context.maxIteration>1&&this.context.needPingpong&&(this.compiledPingpong=!0),(this.compiledPingpong||this.dynamicPingpong)&&this.swap(),this.texFBO=this.reGl.framebuffer({color:this.getOuputDataTexture().texture}),this.texFBO.use((function(){t.computeCommand()}))}},{key:"readData",value:(e=Rs()(Ds.a.mark((function t(){var e,n,r,i,o,a,s,u,c=this;return Ds.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.reGl({framebuffer:this.texFBO})((function(){e=c.reGl.read()})),!e){t.next=6;break}if(n=this.getOuputDataTexture(),r=n.originalDataLength,i=n.elementsPerTexel,o=n.typedArrayConstructor,a=void 0===o?Float32Array:o,s=[],4!==i)for(u=0;u<e.length;u+=4)1===i?s.push(e[u]):2===i?s.push(e[u],e[u+1]):s.push(e[u],e[u+1],e[u+2]);else s=e;return t.abrupt("return",new a(s.slice(0,r)));case 6:return t.abrupt("return",new Float32Array);case 7:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"confirmInput",value:function(t,e){var n;this.entity===t.entity?(this.dynamicPingpong=!0,n=this):n=t,this.textureCache[e].id=n.getOuputDataTexture().id,this.textureCache[e].texture=n.getOuputDataTexture().texture}},{key:"updateUniform",value:function(){}},{key:"updateBuffer",value:function(t,e){var n=this.context.uniforms.find((function(e){return e.name===t}));if(n){var r=this.calcDataTexture(t,n.type,e),i=r.texture,o=r.data;this.textureCache[t].data=o,this.textureCache[t].texture=i}}},{key:"destroy",value:function(){}},{key:"swap",value:function(){if(this.swapOutputTextureName||this.createSwapOutputDataTexture(),this.compiledPingpong){var t=this.context.output.name;this.textureCache[t].id=this.getOuputDataTexture().id,this.textureCache[t].texture=this.getOuputDataTexture().texture}var e=this.outputTextureName;this.outputTextureName=this.swapOutputTextureName,this.swapOutputTextureName=e}},{key:"getOuputDataTexture",value:function(){return this.textureCache[this.outputTextureName]}},{key:"createSwapOutputDataTexture",value:function(){var t=this.cloneDataTexture(this.getOuputDataTexture());this.swapOutputTextureName="".concat(this.entity,"-swap"),this.textureCache[this.swapOutputTextureName]=t}},{key:"cloneDataTexture",value:function(t){var e=t.data,n=t.textureWidth;return Ju(Ju({},t),{},{id:$u++,texture:this.reGl.texture({width:n,height:n,data:e,type:"float"})})}},{key:"calcDataTexture",value:function(t,e,n){var r=1;e===Ja.AST_TOKEN_TYPES.Vector4FloatArray&&(r=4);for(var i=[],o=0;o<n.length;o+=r)1===r?i.push(n[o],0,0,0):2===r?i.push(n[o],n[o+1],0,0):3===r?i.push(n[o],n[o+1],n[o+2],0):4===r&&i.push(n[o],n[o+1],n[o+2],n[o+3]);var a=n.length,s=Math.ceil(a/r),u=Math.ceil(Math.sqrt(s)),c=u*u;s<c&&i.push.apply(i,Zu()(new Array(4*(c-s)).fill(0)));var f=this.reGl.texture({width:u,height:u,data:i,type:"float"});return{id:$u++,data:i,originalDataLength:a,typedArrayConstructor:Fs()(n)?n.constructor:void 0,textureWidth:u,texture:f,texelCount:s,elementsPerTexel:r,isOutput:t===this.context.output.name}}}]),t}(),ec=function(){function t(e,n){Ha()(this,t),this.elements=void 0;var r=n.data,i=n.usage,o=n.type,a=n.count;this.elements=e.elements({data:r,usage:Nu[i||Ja.gl.STATIC_DRAW],type:Ru[o||Ja.gl.UNSIGNED_BYTE],count:a})}return Ka()(t,[{key:"get",value:function(){return this.elements}},{key:"subData",value:function(t){var e=t.data;this.elements.subdata(e)}},{key:"destroy",value:function(){this.elements.destroy()}}]),t}(),nc=function(){function t(e,n){Ha()(this,t),this.framebuffer=void 0;var r=n.width,i=n.height,o=n.color,a=n.colors,s=(n.depth,n.stencil,{width:r,height:i});Array.isArray(a)&&(s.colors=a.map((function(t){return t.get()}))),o&&"boolean"!=typeof o&&(s.color=o.get()),this.framebuffer=e.framebuffer(s)}return Ka()(t,[{key:"get",value:function(){return this.framebuffer}},{key:"destroy",value:function(){this.framebuffer.destroy()}},{key:"resize",value:function(t){var e=t.width,n=t.height;this.framebuffer.resize(e,n)}}]),t}(),rc=n(93),ic=n.n(rc),oc=n(168),ac=n.n(oc);function sc(t){var e={};return Object.keys(t).forEach((function(n){!function t(e,n,r,i){if(null===n||"number"==typeof n||"boolean"==typeof n||Array.isArray(n)&&"number"==typeof n[0]||Fs()(n)||""===n||void 0!==n.resize)return void(r["".concat(i&&i+".").concat(e)]=n);ac()(n)&&Object.keys(n).forEach((function(o){t(o,n[o],r,"".concat(i&&i+".").concat(e))}));Array.isArray(n)&&n.forEach((function(n,o){Object.keys(n).forEach((function(a){t(a,n[a],r,"".concat(i&&i+".").concat(e,"[").concat(o,"]"))}))}))}(n,t[n],e,"")})),e}function uc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function cc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?uc(Object(n),!0).forEach((function(e){Bs()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):uc(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var fc,lc,hc=function(){function t(e,n){Ha()(this,t),this.reGl=void 0,this.drawCommand=void 0,this.uniforms={},this.reGl=e;var r=n.vs,i=n.fs,o=n.defines,a=n.attributes,s=n.uniforms,u=n.primitive,c=n.count,f=n.elements,l=n.depth,h=n.blend,d=n.stencil,p=n.cull,g=n.instances,v=n.scissor,y=n.viewport,m={};s&&(this.uniforms=sc(s),Object.keys(s).forEach((function(t){m[t]=e.prop(t)})));var b={};Object.keys(a).forEach((function(t){b[t]=a[t].get()}));var x=o&&this.generateDefines(o)||"",w={attributes:b,frag:"#ifdef GL_FRAGMENT_PRECISION_HIGH\\n precision highp float;\\n#else\\n precision mediump float;\\n#endif\\n".concat(x,"\\n").concat(i),uniforms:m,vert:"\\n".concat(x,"\\n").concat(r),primitive:Du[void 0===u?Ja.gl.TRIANGLES:u]};g&&(w.instances=g),c&&(w.count=c),f&&(w.elements=f.get()),v&&(w.scissor=v),y&&(w.viewport=y),this.initDepthDrawParams({depth:l},w),this.initBlendDrawParams({blend:h},w),this.initStencilDrawParams({stencil:d},w),this.initCullDrawParams({cull:p},w),this.drawCommand=e(w)}return Ka()(t,[{key:"addUniforms",value:function(t){this.uniforms=cc(cc({},this.uniforms),sc(t))}},{key:"draw",value:function(t){var e=cc(cc({},this.uniforms),sc(t.uniforms||{})),n={};Object.keys(e).forEach((function(t){var r=ic()(e[t]);"boolean"===r||"number"===r||Array.isArray(e[t])||e[t].BYTES_PER_ELEMENT?n[t]=e[t]:"string"===r||(n[t]=e[t].get())})),this.drawCommand(n)}},{key:"destroy",value:function(){}},{key:"initDepthDrawParams",value:function(t,e){var n=t.depth;n&&(e.depth={enable:void 0===n.enable||!!n.enable,mask:void 0===n.mask||!!n.mask,func:zu[n.func||Ja.gl.LESS],range:n.range||[0,1]})}},{key:"initBlendDrawParams",value:function(t,e){var n=t.blend;if(n){var r=n.enable,i=n.func,o=n.equation,a=n.color,s=void 0===a?[0,0,0,0]:a;e.blend={enable:!!r,func:{srcRGB:Wu[i&&i.srcRGB||Ja.gl.SRC_ALPHA],srcAlpha:Wu[i&&i.srcAlpha||Ja.gl.SRC_ALPHA],dstRGB:Wu[i&&i.dstRGB||Ja.gl.ONE_MINUS_SRC_ALPHA],dstAlpha:Wu[i&&i.dstAlpha||Ja.gl.ONE_MINUS_SRC_ALPHA]},equation:{rgb:Vu[o&&o.rgb||Ja.gl.FUNC_ADD],alpha:Vu[o&&o.alpha||Ja.gl.FUNC_ADD]},color:s}}}},{key:"initStencilDrawParams",value:function(t,e){var n=t.stencil;if(n){var r=n.enable,i=n.mask,o=void 0===i?-1:i,a=n.func,s=void 0===a?{cmp:Ja.gl.ALWAYS,ref:0,mask:-1}:a,u=n.opFront,c=void 0===u?{fail:Ja.gl.KEEP,zfail:Ja.gl.KEEP,zpass:Ja.gl.KEEP}:u,f=n.opBack,l=void 0===f?{fail:Ja.gl.KEEP,zfail:Ja.gl.KEEP,zpass:Ja.gl.KEEP}:f;e.stencil={enable:!!r,mask:o,func:cc(cc({},s),{},{cmp:Xu[s.cmp]}),opFront:{fail:Yu[c.fail],zfail:Yu[c.zfail],zpass:Yu[c.zpass]},opBack:{fail:Yu[l.fail],zfail:Yu[l.zfail],zpass:Yu[l.zpass]}}}}},{key:"initCullDrawParams",value:function(t,e){var n=t.cull;if(n){var r=n.enable,i=n.face,o=void 0===i?Ja.gl.BACK:i;e.cull={enable:!!r,face:Hu[o]}}}},{key:"generateDefines",value:function(t){return Object.keys(t).map((function(e){return"#define ".concat(e," ").concat(Number(t[e]))})).join("\\n")}}]),t}(),dc=function(){function t(e,n){Ha()(this,t),this.texture=void 0,this.width=void 0,this.height=void 0;var r=n.data,i=n.type,o=void 0===i?Ja.gl.UNSIGNED_BYTE:i,a=n.width,s=n.height,u=n.flipY,c=void 0!==u&&u,f=n.format,l=void 0===f?Ja.gl.RGBA:f,h=n.mipmap,d=void 0!==h&&h,p=n.wrapS,g=void 0===p?Ja.gl.CLAMP_TO_EDGE:p,v=n.wrapT,y=void 0===v?Ja.gl.CLAMP_TO_EDGE:v,m=n.aniso,b=void 0===m?0:m,x=n.alignment,w=void 0===x?1:x,S=n.premultiplyAlpha,E=void 0!==S&&S,_=n.mag,O=void 0===_?Ja.gl.NEAREST:_,k=n.min,M=void 0===k?Ja.gl.NEAREST:k,A=n.colorSpace,T=void 0===A?Ja.gl.BROWSER_DEFAULT_WEBGL:A;this.width=a,this.height=s;var C={width:a,height:s,type:Ru[o],format:Lu[l],wrapS:Fu[g],wrapT:Fu[y],mag:Gu[O],min:Gu[M],alignment:w,flipY:c,colorSpace:Uu[T],premultiplyAlpha:E,aniso:b};r&&(C.data=r),"number"==typeof d?C.mipmap=Bu[d]:"boolean"==typeof d&&(C.mipmap=d),this.texture=e.texture(C)}return Ka()(t,[{key:"get",value:function(){return this.texture}},{key:"update",value:function(){this.texture._texture.bind()}},{key:"resize",value:function(t){var e=t.width,n=t.height;this.texture.resize(e,n),this.width=e,this.height=n}},{key:"destroy",value:function(){this.texture.destroy()}}]),t}(),pc=Object($a.injectable)()(fc=function(){function t(){var e=this;Ha()(this,t),this.supportWebGPU=!1,this.useWGSL=!1,this.$canvas=void 0,this.gl=void 0,this.inited=void 0,this.createModel=function(){var t=Rs()(Ds.a.mark((function t(n){return Ds.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n.uniforms){t.next=3;break}return t.next=3,Promise.all(Object.keys(n.uniforms).map(function(){var t=Rs()(Ds.a.mark((function t(e){var r;return Ds.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n.uniforms[e]||void 0===n.uniforms[e].load){t.next=5;break}return t.next=3,n.uniforms[e].load();case 3:r=t.sent,n.uniforms[e]=r;case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()));case 3:return t.abrupt("return",new hc(e.gl,n));case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),this.createAttribute=function(t){return new ju(e.gl,t)},this.createBuffer=function(t){return new qu(e.gl,t)},this.createElements=function(t){return new ec(e.gl,t)},this.createTexture2D=function(t){return new dc(e.gl,t)},this.createFramebuffer=function(t){return new nc(e.gl,t)},this.useFramebuffer=function(t,n){e.gl({framebuffer:t?t.get():null})(n)},this.createComputeModel=function(){var t=Rs()(Ds.a.mark((function t(n){return Ds.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new tc(e.gl,n));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),this.clear=function(t){var n=t.color,r=t.depth,i=t.stencil,o=t.framebuffer,a=void 0===o?null:o,s={color:n,depth:r,stencil:i};s.framebuffer=null===a?a:a.get(),e.gl.clear(s)},this.setScissor=function(t){e.gl&&e.gl._gl&&(t.enable&&t.box?(e.gl._gl.enable(Ja.gl.SCISSOR_TEST),e.gl._gl.scissor(t.box.x,t.box.y,t.box.width,t.box.height)):e.gl._gl.disable(Ja.gl.SCISSOR_TEST),e.gl._refresh())},this.viewport=function(t){var n=t.x,r=t.y,i=t.width,o=t.height;e.gl&&e.gl._gl&&(e.gl._gl.viewport(n,r,i,o),e.gl._refresh())},this.readPixels=function(t){var n=t.framebuffer,r={x:t.x,y:t.y,width:t.width,height:t.height};return n&&(r.framebuffer=n.get()),e.gl.read(r)},this.getCanvas=function(){return e.$canvas},this.getGLContext=function(){return e.gl._gl},this.destroy=function(){e.gl&&(e.gl.destroy(),e.inited=!1)}}var e;return Ka()(t,[{key:"init",value:(e=Rs()(Ds.a.mark((function t(e){return Ds.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.inited){t.next=2;break}return t.abrupt("return");case 2:return this.$canvas=e.canvas,t.next=5,new Promise((function(t,n){Pu()({canvas:e.canvas,attributes:{alpha:!0,antialias:e.antialias,premultipliedAlpha:!0},pixelRatio:1,extensions:["OES_element_index_uint","OES_texture_float","OES_standard_derivatives","angle_instanced_arrays"],optionalExtensions:["EXT_texture_filter_anisotropic","EXT_blend_minmax","WEBGL_depth_texture"],profile:!0,onDone:function(e,r){!e&&r||n(e),t(r)}})}));case 5:this.gl=t.sent,this.inited=!0;case 7:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"isFloatSupported",value:function(){return this.gl.limits.readFloat}},{key:"beginFrame",value:function(){}},{key:"endFrame",value:function(){}}]),t}())||fc;function gc(t,e,n,r){if("undefined"!=typeof window){var i=document.getElementsByTagName("head")[0],o=document.createElement("script");o.setAttribute("type","text/javascript"),o.setAttribute("src",t),r&&(o.id=r),o.onload=function(){e&&e()},o.onerror=function(e){n&&n("Unable to load script \'".concat(t,"\'"),e)},i.appendChild(o)}}function vc(t,e){return new Promise((function(e,n){gc(t,(function(){e()}),(function(t,e){n(e)}))}))}var yc=function(){return mc.apply(this,arguments)};function mc(){return(mc=Rs()(Ds.a.mark((function t(){return Ds.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!lc){t.next=2;break}return t.abrupt("return",lc);case 2:return t.next=4,vc("https://preview.babylonjs.com/glslang/glslang.js");case 4:return lc=window.glslang("https://preview.babylonjs.com/glslang/glslang.wasm"),t.abrupt("return",lc);case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var bc,xc,wc,Sc,Ec,_c,Oc,kc=function(){function t(e,n){Ha()(this,t),this.engine=e,this.options=n,this.attribute=void 0,this.buffer=void 0;var r=n,i=r.buffer,o=r.offset,a=r.stride,s=r.normalized,u=r.size,c=r.divisor,f=r.arrayStride,l=r.attributes,h=r.stepMode;this.buffer=i,this.attribute={buffer:i.get(),offset:o||0,stride:a||0,normalized:s||!1,divisor:c||0,arrayStride:f||0,attributes:l,stepMode:h||"vertex"},u&&(this.attribute.size=u)}return Ka()(t,[{key:"get",value:function(){return this.attribute}},{key:"updateBuffer",value:function(t){this.buffer.subData(t)}},{key:"destroy",value:function(){this.buffer.destroy()}}]),t}(),Mc=function(){function t(e,n){Ha()(this,t),this.engine=e,this.options=n,this.buffer=void 0;var r=n,i=r.data,o=r.usage;r.type;this.buffer=this.createBuffer(i instanceof Array?new Float32Array(i):i,o||Vs.BufferUsage.Vertex|Vs.BufferUsage.CopyDst)}return Ka()(t,[{key:"get",value:function(){return this.buffer}},{key:"destroy",value:function(){this.buffer.destroy()}},{key:"subData",value:function(t){var e=t.data,n=t.offset;this.setSubData(this.buffer,n,e instanceof Array?new Float32Array(e):e)}},{key:"createBuffer",value:function(t,e){var n=t.byteLength%4,r={size:t.byteLength+n,usage:e},i=this.engine.device.createBuffer(r);return this.setSubData(i,0,t),i}},{key:"setSubData",value:function(t,e,n){(Ja.isSafari?this.engine.device.getQueue():this.engine.device.defaultQueue).writeBuffer(t,e,n)}}]),t}(),Ac=n(94),Tc=n.n(Ac),Cc=function(){function t(e,n){Ha()(this,t),this.engine=e,this.context=n,this.entity=Object(Ja.createEntity)(),this.uniformGPUBufferLayout=[],this.uniformBuffer=void 0,this.vertexBuffers={},this.outputBuffer=void 0,this.bindGroupEntries=void 0,this.bindGroup=void 0,this.computePipeline=void 0}var e,n,r;return Ka()(t,[{key:"init",value:(r=Rs()(Ds.a.mark((function t(){var e,n,r,i,o,a,s,u=this;return Ds.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.compileComputePipelineStageDescriptor(this.context.shader);case 2:e=t.sent,n=e.computeStage,r=this.context.uniforms.filter((function(t){return t.storageClass===Ja.STORAGE_CLASS.StorageBuffer})),i=this.context.uniforms.filter((function(t){return t.storageClass===Ja.STORAGE_CLASS.Uniform})),o=i.length?1:0,this.bindGroupEntries=[],o&&(a=0,s=[],i.forEach((function(t){if(es()(t.data))u.uniformGPUBufferLayout.push({name:t.name,offset:a}),a+=4,s.push(t.data);else{var e,n=(null===(e=t.data)||void 0===e?void 0:e.length)||1;3===n&&(n=4,t.data.push(0));var r=a/4%4;if(r>0){var i=4-r;if(n>1&&n<=i)2===n&&(3===i&&(a+=4,s.push(0)),s.push.apply(s,Zu()(t.data)),u.uniformGPUBufferLayout.push({name:t.name,offset:a}));else{for(var o=0;o<i;o++)a+=4,s.push(0);s.push.apply(s,Zu()(t.data)),u.uniformGPUBufferLayout.push({name:t.name,offset:a})}}a+=4*n}})),this.uniformBuffer=new Mc(this.engine,{data:s instanceof Array?new Float32Array(s):s,usage:Vs.BufferUsage.Uniform|Vs.BufferUsage.CopyDst}),this.bindGroupEntries.push({binding:0,resource:{buffer:this.uniformBuffer.get()}})),r.forEach((function(t){var e;Tc()(t.data)||t.type!==Ja.AST_TOKEN_TYPES.Vector4FloatArray&&t.type!==Ja.AST_TOKEN_TYPES.FloatArray||(t.name===u.context.output.name?(e=new Mc(u.engine,{data:isFinite(Number(t.data))?[t.data]:t.data,usage:Vs.BufferUsage.Storage|Vs.BufferUsage.CopyDst|Vs.BufferUsage.CopySrc}),u.outputBuffer=e,u.context.output={name:t.name,length:isFinite(Number(t.data))?1:t.data.length,typedArrayConstructor:Float32Array,gpuBuffer:e.get()}):t.isReferer?t.data.model&&t.data.model.outputBuffer&&(e=t.data.model.outputBuffer):e=new Mc(u.engine,{data:isFinite(Number(t.data))?[t.data]:t.data,usage:Vs.BufferUsage.Storage|Vs.BufferUsage.CopyDst|Vs.BufferUsage.CopySrc}),u.vertexBuffers[t.name]=e,u.bindGroupEntries.push({binding:o,resource:{name:t.name,refer:e?void 0:t.data,buffer:e?e.get():void 0}}),o++)})),this.computePipeline=this.engine.device.createComputePipeline({computeStage:n}),console.log(this.bindGroupEntries),this.bindGroup=this.engine.device.createBindGroup({layout:this.computePipeline.getBindGroupLayout(0),entries:this.bindGroupEntries});case 13:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"destroy",value:function(){var t=this;this.uniformBuffer&&this.uniformBuffer.destroy(),Object.keys(this.vertexBuffers).forEach((function(e){return t.vertexBuffers[e].destroy()}))}},{key:"readData",value:(n=Rs()(Ds.a.mark((function t(){var e,n,r,i,o,a,s,u,c;return Ds.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e=this.context.output)){t.next=16;break}if(n=e.length,r=e.typedArrayConstructor,!(i=e.gpuBuffer)){t.next=16;break}return o=n*r.BYTES_PER_ELEMENT,a=this.engine.device.createBuffer({size:o,usage:GPUBufferUsage.COPY_DST|GPUBufferUsage.MAP_READ}),(s=this.engine.device.createCommandEncoder()).copyBufferToBuffer(i,0,a,0,o),(Ja.isSafari?this.engine.device.getQueue():this.engine.device.defaultQueue).submit([s.finish()]),t.next=12,a.mapAsync(Vs.MapMode.Read);case 12:return u=a.getMappedRange(),c=new r(u.slice(0)),a.unmap(),t.abrupt("return",c);case 16:return t.abrupt("return",new Float32Array);case 17:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"run",value:function(){var t;this.engine.currentComputePass&&(this.engine.currentComputePass.setPipeline(this.computePipeline),this.engine.currentComputePass.setBindGroup(0,this.bindGroup),(t=this.engine.currentComputePass).dispatch.apply(t,Zu()(this.context.dispatch)))}},{key:"updateBuffer",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.vertexBuffers[t];r&&r.subData({data:e,offset:n})}},{key:"updateUniform",value:function(t,e){var n=this.uniformGPUBufferLayout.find((function(e){return e.name===t}));n&&this.uniformBuffer.subData({data:Number.isFinite(e)?new Float32Array([e]):new Float32Array(e),offset:n.offset})}},{key:"confirmInput",value:function(t,e){var n=this.vertexBuffers[e],r=t.outputBuffer;if(n&&r&&n!==r){var i=this.engine.device.createCommandEncoder(),o=t.context.output,a=o.length*o.typedArrayConstructor.BYTES_PER_ELEMENT;i.copyBufferToBuffer(r.get(),0,n.get(),0,a),(Ja.isSafari?this.engine.device.getQueue():this.engine.device.defaultQueue).submit([i.finish()])}}},{key:"compileShaderToSpirV",value:function(t,e,n){return this.compileRawShaderToSpirV(n+t,e)}},{key:"compileRawShaderToSpirV",value:function(t,e){return this.engine.glslang.compileGLSL(t,e)}},{key:"compileComputePipelineStageDescriptor",value:(e=Rs()(Ds.a.mark((function t(e){var n;return Ds.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e,this.engine.options.useWGSL){t.next=6;break}return t.next=5,this.compileShaderToSpirV(e,"compute","#version 450\\n");case 5:n=t.sent;case 6:return t.abrupt("return",{computeStage:{module:this.engine.device.createShaderModule({code:n,isWHLSL:Ja.isSafari}),entryPoint:"main"}});case 7:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})}]),t}(),Ic=function(){function t(e,n){Ha()(this,t),this.engine=e,this.options=n,this.indexCount=void 0,this.buffer=void 0;var r=n,i=r.data,o=(r.usage,r.type,r.count);this.indexCount=o||0,this.buffer=new Mc(e,{data:i instanceof Array?new Uint16Array(i):i,usage:Vs.BufferUsage.Index|Vs.BufferUsage.CopyDst})}return Ka()(t,[{key:"get",value:function(){return this.buffer}},{key:"subData",value:function(t){this.buffer.subData(t)}},{key:"destroy",value:function(){this.buffer.destroy()}}]),t}(),Pc=function(){function t(e,n){Ha()(this,t),this.engine=e,this.options=n,this.colorTexture=void 0,this.depthTexture=void 0,this.width=0,this.height=0;var r=n,i=(r.width,r.height,r.color),o=(r.colors,r.depth);r.stencil;i&&(this.colorTexture=i),o&&(this.depthTexture=o)}return Ka()(t,[{key:"get",value:function(){var t,e;return{color:null===(t=this.colorTexture)||void 0===t?void 0:t.get(),depth:null===(e=this.depthTexture)||void 0===e?void 0:e.get()}}},{key:"destroy",value:function(){var t,e;null===(t=this.colorTexture)||void 0===t||t.destroy(),null===(e=this.depthTexture)||void 0===e||e.destroy()}},{key:"resize",value:function(t){var e,n,r=t.width,i=t.height;r===this.width&&i===this.height||(null===(e=this.colorTexture)||void 0===e||e.resize({width:r,height:i}),null===(n=this.depthTexture)||void 0===n||n.resize({width:r,height:i}));this.width=r,this.height=i}}]),t}(),jc=(bc={},Bs()(bc,Ja.gl.POINTS,Vs.PrimitiveTopology.PointList),Bs()(bc,Ja.gl.LINES,Vs.PrimitiveTopology.LineList),Bs()(bc,Ja.gl.LINE_LOOP,Vs.PrimitiveTopology.LineList),Bs()(bc,Ja.gl.LINE_STRIP,Vs.PrimitiveTopology.LineStrip),Bs()(bc,Ja.gl.TRIANGLES,Vs.PrimitiveTopology.TriangleList),Bs()(bc,Ja.gl.TRIANGLE_FAN,Vs.PrimitiveTopology.TriangleList),Bs()(bc,Ja.gl.TRIANGLE_STRIP,Vs.PrimitiveTopology.TriangleStrip),bc),Dc=(xc={},Bs()(xc,Ja.gl.NEVER,Vs.CompareFunction.Never),Bs()(xc,Ja.gl.ALWAYS,Vs.CompareFunction.Always),Bs()(xc,Ja.gl.LESS,Vs.CompareFunction.Less),Bs()(xc,Ja.gl.LEQUAL,Vs.CompareFunction.LessEqual),Bs()(xc,Ja.gl.GREATER,Vs.CompareFunction.Greater),Bs()(xc,Ja.gl.GEQUAL,Vs.CompareFunction.GreaterEqual),Bs()(xc,Ja.gl.EQUAL,Vs.CompareFunction.Equal),Bs()(xc,Ja.gl.NOTEQUAL,Vs.CompareFunction.NotEqual),xc),Nc=(wc={},Bs()(wc,Ja.gl.FUNC_ADD,Vs.BlendOperation.Add),Bs()(wc,Ja.gl.MIN_EXT,Vs.BlendOperation.Min),Bs()(wc,Ja.gl.MAX_EXT,Vs.BlendOperation.Max),Bs()(wc,Ja.gl.FUNC_SUBTRACT,Vs.BlendOperation.Subtract),Bs()(wc,Ja.gl.FUNC_REVERSE_SUBTRACT,Vs.BlendOperation.ReverseSubtract),wc),Rc=(Sc={},Bs()(Sc,Ja.gl.ZERO,Vs.BlendFactor.Zero),Bs()(Sc,Ja.gl.ONE,Vs.BlendFactor.One),Bs()(Sc,Ja.gl.SRC_COLOR,Vs.BlendFactor.SrcColor),Bs()(Sc,Ja.gl.ONE_MINUS_SRC_COLOR,Vs.BlendFactor.OneMinusSrcColor),Bs()(Sc,Ja.gl.SRC_ALPHA,Vs.BlendFactor.SrcAlpha),Bs()(Sc,Ja.gl.ONE_MINUS_SRC_ALPHA,Vs.BlendFactor.OneMinusSrcAlpha),Bs()(Sc,Ja.gl.DST_COLOR,Vs.BlendFactor.DstColor),Bs()(Sc,Ja.gl.ONE_MINUS_DST_COLOR,Vs.BlendFactor.OneMinusDstColor),Bs()(Sc,Ja.gl.DST_ALPHA,Vs.BlendFactor.DstAlpha),Bs()(Sc,Ja.gl.ONE_MINUS_DST_ALPHA,Vs.BlendFactor.OneMinusDstAlpha),Bs()(Sc,Ja.gl.CONSTANT_COLOR,Vs.BlendFactor.BlendColor),Bs()(Sc,Ja.gl.ONE_MINUS_CONSTANT_COLOR,Vs.BlendFactor.OneMinusBlendColor),Bs()(Sc,Ja.gl.SRC_ALPHA_SATURATE,Vs.BlendFactor.SrcAlphaSaturated),Sc),Lc=(Ec={},Bs()(Ec,Ja.gl.ALPHA,"r8unorm"),Bs()(Ec,Ja.gl.RGBA,"rgba8unorm"),Bs()(Ec,Ja.gl.DEPTH_COMPONENT,"depth32float"),Bs()(Ec,Ja.gl.DEPTH_STENCIL,"depth24plus-stencil8"),Ec),Bc=(_c={},Bs()(_c,Ja.gl.NEAREST,"nearest"),Bs()(_c,Ja.gl.LINEAR,"linear"),_c),Gc=(Oc={},Bs()(Oc,Ja.gl.REPEAT,"repeat"),Bs()(Oc,Ja.gl.CLAMP_TO_EDGE,"clamp-to-edge"),Bs()(Oc,Ja.gl.MIRRORED_REPEAT,"mirror-repeat"),Oc);function Fc(t){var e=t.cull;return e&&e.enable?e.face?e.face===Ja.gl.FRONT?Vs.CullMode.Front:Vs.CullMode.Back:void 0:Vs.CullMode.None}function Uc(t){var e=t.depth,n=(t.stencil,{compare:Vs.CompareFunction.Always,depthFailOp:Vs.StencilOperation.Keep,failOp:Vs.StencilOperation.Keep,passOp:Vs.StencilOperation.Keep});return{depthWriteEnabled:e&&e.enable,depthCompare:Dc[(null==e?void 0:e.func)||Ja.gl.ALWAYS],format:Vs.TextureFormat.Depth24PlusStencil8,stencilFront:n,stencilBack:n,stencilReadMask:4294967295,stencilWriteMask:4294967295}}function zc(t,e){var n=t.blend;return[{format:e,alphaBlend:{srcFactor:Rc[n&&n.func&&n.func.srcAlpha||Ja.gl.ONE],dstFactor:Rc[n&&n.func&&n.func.dstAlpha||Ja.gl.ZERO],operation:Nc[n&&n.equation&&n.equation.alpha||Ja.gl.FUNC_ADD]},colorBlend:{srcFactor:Rc[n&&n.func&&n.func.srcRGB||Ja.gl.ONE],dstFactor:Rc[n&&n.func&&n.func.dstRGB||Ja.gl.ZERO],operation:Nc[n&&n.equation&&n.equation.rgb||Ja.gl.FUNC_ADD]},writeMask:Vs.ColorWrite.All}]}function Vc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Wc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Vc(Object(n),!0).forEach((function(e){Bs()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Vc(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Xc(t){for(var e=0,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(var o=0,a=r;o<a.length;o++){var s=a[o];e+=s.length}for(var u=new t(e),c=0,f=0,l=r;f<l.length;f++){var h=l[f];u.set(h,c),c+=h.length}return u}var Yc,Hc,qc=function(){function t(e,n){Ha()(this,t),this.engine=e,this.options=n,this.pipelineLayout=void 0,this.renderPipeline=void 0,this.uniformsBindGroupLayout=void 0,this.uniformBindGroup=void 0,this.uniformBuffer=void 0,this.uniforms={},this.uniformGPUBufferLayout=[],this.attributeCache={},this.indexBuffer=void 0,this.indexCount=void 0}var e,n;return Ka()(t,[{key:"init",value:(n=Rs()(Ds.a.mark((function t(){var e,n,r,i,o,a,s,u,c,f,l,h,d,p,g,v,y=this;return Ds.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.options,n=e.vs,r=e.fs,i=e.attributes,o=e.uniforms,a=e.primitive,e.count,s=e.elements,u=e.depth,c=e.blend,f=e.stencil,l=e.cull,e.instances,t.next=3,this.compilePipelineStageDescriptor(n,r,null);case 3:h=t.sent,d=h.vertexStage,p=h.fragmentStage,o&&this.buildUniformBindGroup(o),s&&(this.indexBuffer=s.get(),this.indexCount=s.indexCount),g={vertexBuffers:Object.keys(i).map((function(t,e){var n=i[t],r=n.get(),o=r.arrayStride,a=r.stepMode,s=r.attributes;return y.attributeCache[t]=n,{arrayStride:o,stepMode:a,attributes:s}}))},v={sampleCount:this.engine.mainPassSampleCount,primitiveTopology:jc[a||Ja.gl.TRIANGLES],rasterizationState:Wc(Wc({},this.getDefaultRasterizationStateDescriptor()),{},{cullMode:Fc({cull:l})}),depthStencilState:Uc({depth:u,stencil:f}),colorStates:zc({blend:c},this.engine.options.swapChainFormat),layout:this.pipelineLayout,vertexStage:d,fragmentStage:p,vertexState:g},this.renderPipeline=this.engine.device.createRenderPipeline(v);case 11:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"addUniforms",value:function(t){this.uniforms=Wc(Wc({},this.uniforms),sc(t))}},{key:"draw",value:function(t){var e=this,n=this.engine.getCurrentRenderPass(),r=Wc(Wc({},this.uniforms),sc(t.uniforms||{})),i=[];Object.keys(r).forEach((function(t){var n=ic()(r[t]);if("boolean"===n||"number"===n||Array.isArray(r[t])||r[t].BYTES_PER_ELEMENT){var o,a=null===(o=e.uniformGPUBufferLayout.find((function(e){return e.name===t})))||void 0===o?void 0:o.offset;Tc()(a)||e.uniformBuffer.subData({data:r[t],offset:a})}else{var s,u=null===(s=e.uniformGPUBufferLayout.find((function(e){return e.name===t})))||void 0===s?void 0:s.offset;if(!Tc()(u)){var c=r[t].get(),f=c.color||c,l=f.texture,h=f.sampler;h&&(i.push({binding:u,resource:h}),u++),i.push({binding:u,resource:l.createView()})}}})),this.uniformBuffer&&(i[0]={binding:0,resource:{buffer:this.uniformBuffer.get()}}),this.uniformBindGroup=this.engine.device.createBindGroup({layout:this.uniformsBindGroupLayout,entries:i}),this.renderPipeline&&n.setPipeline(this.renderPipeline),n.setBindGroup(0,this.uniformBindGroup),this.indexBuffer&&n.setIndexBuffer(this.indexBuffer.get(),Vs.IndexFormat.Uint32,0),Object.keys(this.attributeCache).forEach((function(t,r){n.setVertexBuffer(0+r,e.attributeCache[t].get().buffer,0)})),this.indexBuffer?n.drawIndexed(this.indexCount,this.options.instances||1,0,0,0):n.draw(this.options.count||0,this.options.instances||0,0,0)}},{key:"destroy",value:function(){throw new Error("Method not implemented.")}},{key:"compilePipelineStageDescriptor",value:(e=Rs()(Ds.a.mark((function t(e,n,r){var i,o,a;return Ds.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i="#version 450\\n",o=e,a=n,this.engine.options.useWGSL){t.next=10;break}return t.next=6,this.compileShaderToSpirV(e,"vertex",i);case 6:return o=t.sent,t.next=9,this.compileShaderToSpirV(n,"fragment",i);case 9:a=t.sent;case 10:return t.abrupt("return",this.createPipelineStageDescriptor(o,a));case 11:case"end":return t.stop()}}),t,this)}))),function(t,n,r){return e.apply(this,arguments)})},{key:"compileShaderToSpirV",value:function(t,e,n){return this.compileRawShaderToSpirV(n+t,e)}},{key:"compileRawShaderToSpirV",value:function(t,e){return this.engine.glslang.compileGLSL(t,e)}},{key:"createPipelineStageDescriptor",value:function(t,e){return{vertexStage:{module:this.engine.device.createShaderModule({code:t,isWHLSL:Ja.isSafari}),entryPoint:"main"},fragmentStage:{module:this.engine.device.createShaderModule({code:e,isWHLSL:Ja.isSafari}),entryPoint:"main"}}}},{key:"getDefaultRasterizationStateDescriptor",value:function(){return{frontFace:Vs.FrontFace.CCW,cullMode:Vs.CullMode.None,depthBias:0,depthBiasSlopeScale:0,depthBiasClamp:0}}},{key:"buildUniformBindGroup",value:function(t){var e=this,n=0,r=Xc.apply(void 0,[Float32Array].concat(Zu()(Object.keys(t).map((function(r){return t[r]?(e.uniformGPUBufferLayout.push({name:r,offset:n}),n+=4*(t[r].length||1),t[r]):[]}))))),i=[],o=!1;r.length&&(o=!0,i.push({binding:0,visibility:Vs.ShaderStage.Fragment|Vs.ShaderStage.Vertex,type:Vs.BindingType.UniformBuffer})),Object.keys(t).filter((function(e){return null===t[e]})).forEach((function(t,n){e.uniformGPUBufferLayout.push({name:t,offset:2*n+(o?1:0)}),i.push({binding:2*n+(o?1:0),visibility:Vs.ShaderStage.Fragment,type:Vs.BindingType.Sampler},{binding:2*n+(o?1:0)+1,visibility:Vs.ShaderStage.Fragment,type:Vs.BindingType.SampledTexture})})),this.uniformsBindGroupLayout=this.engine.device.createBindGroupLayout({entries:i}),this.pipelineLayout=this.engine.device.createPipelineLayout({bindGroupLayouts:[this.uniformsBindGroupLayout]}),o&&(this.uniformBuffer=new Mc(this.engine,{data:r instanceof Array?new Float32Array(r):r,usage:Vs.BufferUsage.Uniform|Vs.BufferUsage.CopyDst}))}}]),t}(),Kc=function(){function t(e,n){Ha()(this,t),this.engine=e,this.options=n,this.texture=void 0,this.sampler=void 0,this.width=void 0,this.height=void 0,this.createTexture()}return Ka()(t,[{key:"get",value:function(){return{texture:this.texture,sampler:this.sampler}}},{key:"update",value:function(){}},{key:"resize",value:function(t){var e=t.width,n=t.height;e===this.width&&n===this.height||(this.destroy(),this.createTexture()),this.width=e,this.height=n}},{key:"destroy",value:function(){this.texture&&this.texture.destroy()}},{key:"createTexture",value:function(){var t=this.options,e=(t.data,t.type),n=(void 0===e&&Ja.gl.UNSIGNED_BYTE,t.width),r=t.height,i=(t.flipY,t.format),o=void 0===i?Ja.gl.RGBA:i,a=(t.mipmap,t.wrapS),s=void 0===a?Ja.gl.CLAMP_TO_EDGE:a,u=t.wrapT,c=void 0===u?Ja.gl.CLAMP_TO_EDGE:u,f=t.aniso,l=void 0===f?0:f,h=(t.alignment,t.premultiplyAlpha,t.mag),d=void 0===h?Ja.gl.NEAREST:h,p=t.min,g=void 0===p?Ja.gl.NEAREST:p,v=t.colorSpace,y=(void 0===v&&Ja.gl.BROWSER_DEFAULT_WEBGL,t.usage);this.width=n,this.height=r,this.texture=this.engine.device.createTexture({size:[n,r,1],mipLevelCount:1,sampleCount:1,dimension:Vs.TextureDimension.E2d,format:Lc[o],usage:y||Vs.TextureUsage.Sampled|Vs.TextureUsage.CopyDst}),(!y||y&Vs.TextureUsage.Sampled)&&(this.sampler=this.engine.device.createSampler({addressModeU:Gc[s],addressModeV:Gc[c],addressModeW:Gc[s],magFilter:Bc[d],minFilter:Bc[g],maxAnisotropy:l}))}}]),t}(),Zc=Object($a.injectable)()(Yc=function(){function t(){var e=this;Ha()(this,t),this.supportWebGPU=!0,this.useWGSL=!1,this.options=void 0,this.canvas=void 0,this.context=void 0,this.glslang=void 0,this.adapter=void 0,this.device=void 0,this.swapChain=void 0,this.mainPassSampleCount=void 0,this.mainTexture=void 0,this.depthTexture=void 0,this.mainColorAttachments=void 0,this.mainTextureExtends=void 0,this.mainDepthAttachment=void 0,this.uploadEncoder=void 0,this.renderEncoder=void 0,this.computeEncoder=void 0,this.renderTargetEncoder=void 0,this.commandBuffers=new Array(4).fill(void 0),this.currentRenderPass=null,this.mainRenderPass=null,this.currentRenderTargetViewDescriptor=void 0,this.currentComputePass=null,this.bundleEncoder=void 0,this.tempBuffers=[],this.currentRenderTarget=null,this.uploadEncoderDescriptor={label:"upload"},this.renderEncoderDescriptor={label:"render"},this.renderTargetEncoderDescriptor={label:"renderTarget"},this.computeEncoderDescriptor={label:"compute"},this.pipelines={},this.computePipelines={},this.defaultSampleCount=4,this.clearDepthValue=1,this.clearStencilValue=0,this.transientViewport={x:1/0,y:0,width:0,height:0},this.cachedViewport={x:0,y:0,width:0,height:0},this.clear=function(t){t.framebuffer;var n=t.color,r=t.depth,i=t.stencil;e.options.supportCompute&&e.startComputePass(),e.currentRenderTarget?(e.currentRenderPass&&e.endRenderTargetRenderPass(),e.startRenderTargetRenderPass(e.currentRenderTarget,n||null,!!r,!!i)):(e.mainColorAttachments[0].loadValue=n||Vs.LoadOp.Load,e.mainDepthAttachment.depthLoadValue=r||Vs.LoadOp.Load,e.mainDepthAttachment.stencilLoadValue=i?e.clearStencilValue:Vs.LoadOp.Load,e.mainRenderPass&&e.endMainRenderPass(),e.startMainRenderPass())},this.createModel=function(){var t=Rs()(Ds.a.mark((function t(n){var r;return Ds.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=new qc(e,n),t.next=3,r.init();case 3:return t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),this.createAttribute=function(t){return new kc(e,t)},this.createBuffer=function(t){return new Mc(e,t)},this.createElements=function(t){return new Ic(e,t)},this.createTexture2D=function(t){return new Kc(e,t)},this.createFramebuffer=function(t){return new Pc(e,t)},this.useFramebuffer=function(t,n){e.currentRenderTarget&&e.unbindFramebuffer(e.currentRenderTarget),e.currentRenderTarget=t,e.currentRenderTargetViewDescriptor={dimension:Vs.TextureViewDimension.E2d,arrayLayerCount:1,aspect:Vs.TextureAspect.All},e.currentRenderPass=null,n()},this.createComputeModel=function(){var t=Rs()(Ds.a.mark((function t(n){var r;return Ds.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=new Cc(e,n),t.next=3,r.init();case 3:return t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),this.getCanvas=function(){return e.canvas},this.getGLContext=function(){throw new Error("Method not implemented.")},this.viewport=function(t){var n=t.x,r=t.y,i=t.width,o=t.height;if(e.currentRenderPass){if(e.transientViewport.x!==1/0){e.getCurrentRenderPass().setViewport(e.transientViewport.x,e.transientViewport.y,e.transientViewport.width,e.transientViewport.height,0,1)}else if(n!==e.cachedViewport.x||r!==e.cachedViewport.y||i!==e.cachedViewport.width||o!==e.cachedViewport.height){e.cachedViewport={x:n,y:r,width:i,height:o},e.getCurrentRenderPass().setViewport(n,r,i,o,0,1)}}else e.transientViewport={x:n,y:r,width:i,height:o}},this.readPixels=function(t){throw new Error("Method not implemented.")}}var e,n;return Ka()(t,[{key:"isFloatSupported",value:function(){return!0}},{key:"init",value:(n=Rs()(Ds.a.mark((function t(e){return Ds.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.canvas=e.canvas,this.options=e,this.useWGSL=!!e.useWGSL,this.mainPassSampleCount=e.antialiasing?this.defaultSampleCount:1,t.next=6,this.initGlslang();case 6:this.initContextAndSwapChain(),this.initMainAttachments();case 8:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"setScissor",value:function(t){throw new Error("Method not implemented.")}},{key:"destroy",value:function(){this.mainTexture&&this.mainTexture.destroy(),this.depthTexture&&this.depthTexture.destroy(),this.tempBuffers.forEach((function(t){return t.destroy()})),this.tempBuffers=[]}},{key:"beginFrame",value:function(){this.uploadEncoder=this.device.createCommandEncoder(this.uploadEncoderDescriptor),this.renderEncoder=this.device.createCommandEncoder(this.renderEncoderDescriptor),this.renderTargetEncoder=this.device.createCommandEncoder(this.renderTargetEncoderDescriptor),this.options.supportCompute&&(this.computeEncoder=this.device.createCommandEncoder(this.computeEncoderDescriptor))}},{key:"endFrame",value:function(){this.options.supportCompute&&this.endComputePass(),this.endMainRenderPass(),this.commandBuffers[0]=this.uploadEncoder.finish(),this.commandBuffers[1]=this.renderEncoder.finish(),this.options.supportCompute&&(this.commandBuffers[2]=this.computeEncoder.finish()),this.commandBuffers[3]=this.renderTargetEncoder.finish(),Ja.isSafari?this.device.getQueue().submit(this.commandBuffers.filter((function(t){return t}))):this.device.defaultQueue.submit(this.commandBuffers.filter((function(t){return t})))}},{key:"getCurrentRenderPass",value:function(){return this.currentRenderTarget&&!this.currentRenderPass?this.startRenderTargetRenderPass(this.currentRenderTarget,null,!1,!1):this.currentRenderPass||this.startMainRenderPass(),this.currentRenderPass}},{key:"initGlslang",value:(e=Rs()(Ds.a.mark((function t(){var e,n;return Ds.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,yc();case 2:return this.glslang=t.sent,t.next=5,null===(e=navigator)||void 0===e||null===(n=e.gpu)||void 0===n?void 0:n.requestAdapter();case 5:return this.adapter=t.sent,t.next=8,this.adapter.requestDevice();case 8:this.device=t.sent;case 9:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"initContextAndSwapChain",value:function(){this.context=this.canvas.getContext(Ja.isSafari?"gpu":"gpupresent"),this.swapChain=this.context.configureSwapChain({device:this.device,format:this.options.swapChainFormat,usage:Vs.TextureUsage.OutputAttachment|Vs.TextureUsage.CopySrc})}},{key:"initMainAttachments",value:function(){if(this.mainTextureExtends={width:this.canvas.width,height:this.canvas.height,depth:1},this.options.antialiasing){var t={size:this.mainTextureExtends,mipLevelCount:1,sampleCount:this.mainPassSampleCount,dimension:Vs.TextureDimension.E2d,format:Vs.TextureFormat.BGRA8Unorm,usage:Vs.TextureUsage.OutputAttachment};this.mainTexture&&this.mainTexture.destroy(),this.mainTexture=this.device.createTexture(t),this.mainColorAttachments=[{attachment:Ja.isSafari?this.mainTexture.createDefaultView():this.mainTexture.createView(),loadValue:[0,0,0,1],storeOp:Vs.StoreOp.Store}]}else this.mainColorAttachments=[{attachment:Ja.isSafari?this.swapChain.getCurrentTexture().createDefaultView():this.swapChain.getCurrentTexture().createView(),loadValue:[0,0,0,1],storeOp:Vs.StoreOp.Store}];var e={size:this.mainTextureExtends,mipLevelCount:1,sampleCount:this.mainPassSampleCount,dimension:Vs.TextureDimension.E2d,format:Ja.isSafari?"depth32float-stencil8":Vs.TextureFormat.Depth24PlusStencil8,usage:Vs.TextureUsage.OutputAttachment};this.depthTexture&&this.depthTexture.destroy(),this.depthTexture=this.device.createTexture(e),this.mainDepthAttachment={attachment:Ja.isSafari?this.depthTexture.createDefaultView():this.depthTexture.createView(),depthLoadValue:this.clearDepthValue,depthStoreOp:Vs.StoreOp.Store,stencilLoadValue:this.clearStencilValue,stencilStoreOp:Vs.StoreOp.Store}}},{key:"startComputePass",value:function(){this.currentComputePass&&this.endComputePass(),this.currentComputePass=this.computeEncoder.beginComputePass()}},{key:"startMainRenderPass",value:function(){this.currentRenderPass&&!this.currentRenderTarget&&this.endMainRenderPass(),this.options.antialiasing?this.mainColorAttachments[0].resolveTarget=Ja.isSafari?this.swapChain.getCurrentTexture().createDefaultView():this.swapChain.getCurrentTexture().createView():this.mainColorAttachments[0].attachment=Ja.isSafari?this.swapChain.getCurrentTexture().createDefaultView():this.swapChain.getCurrentTexture().createView(),this.currentRenderPass=this.renderEncoder.beginRenderPass({colorAttachments:this.mainColorAttachments,depthStencilAttachment:this.mainDepthAttachment}),this.mainRenderPass=this.currentRenderPass,this.cachedViewport&&this.viewport(this.cachedViewport)}},{key:"startRenderTargetRenderPass",value:function(t,e,n){var r,i,o,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=null===(r=t.get().color)||void 0===r?void 0:r.texture;s&&(o=s.createView(this.currentRenderTargetViewDescriptor));var u,c=null===(i=t.get().depth)||void 0===i?void 0:i.texture;c&&(u=c.createView());var f=this.renderTargetEncoder.beginRenderPass({colorAttachments:[{attachment:o,loadValue:null!==e?e:Vs.LoadOp.Load,storeOp:Vs.StoreOp.Store}],depthStencilAttachment:c&&u?{attachment:u,depthLoadValue:n?this.clearDepthValue:Vs.LoadOp.Load,depthStoreOp:Vs.StoreOp.Store,stencilLoadValue:a?this.clearStencilValue:Vs.LoadOp.Load,stencilStoreOp:Vs.StoreOp.Store}:void 0});this.currentRenderPass=f,this.cachedViewport&&this.viewport(this.cachedViewport)}},{key:"endMainRenderPass",value:function(){this.currentRenderPass===this.mainRenderPass&&null!==this.currentRenderPass&&(this.currentRenderPass.endPass(),this.resetCachedViewport(),this.currentRenderPass=null,this.mainRenderPass=null)}},{key:"endComputePass",value:function(){this.currentComputePass&&(this.currentComputePass.endPass(),this.currentComputePass=null)}},{key:"endRenderTargetRenderPass",value:function(){this.currentRenderPass&&(this.currentRenderPass.endPass(),this.resetCachedViewport())}},{key:"resetCachedViewport",value:function(){this.cachedViewport={x:0,y:0,width:0,height:0}}},{key:"unbindFramebuffer",value:function(t){this.currentRenderPass&&this.currentRenderPass!==this.mainRenderPass&&this.endRenderTargetRenderPass(),this.transientViewport.x=1/0,this.currentRenderTarget=null,this.currentRenderPass=this.mainRenderPass}}]),t}())||Yc,Qc=n(62),Jc=n.n(Qc),$c=n(23),tf=n.n($c),ef=n(24),nf=n.n(ef),rf=n(17),of=n.n(rf);function af(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=of()(t);if(e){var i=of()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return nf()(this,n)}}var sf,uf=Object($a.injectable)()(Hc=function(t){tf()(n,t);var e=af(n);function n(){return Ha()(this,n),e.apply(this,arguments)}return Ka()(n,[{key:"onEntityCreated",value:function(){var t=this.config,e=t.widthSegments,n=void 0===e?1:e,r=t.heightSegments,i=void 0===r?1:r,o=t.depthSegments,a=void 0===o?1:o,s=t.halfExtents,u=void 0===s?un.e.fromValues(.5,.5,.5):s,c=n,f=i,l=a,h=Jc()(u,3),d=h[0],p=h[1],g=h[2],v=[un.e.fromValues(-d,-p,g),un.e.fromValues(d,-p,g),un.e.fromValues(d,p,g),un.e.fromValues(-d,p,g),un.e.fromValues(d,-p,-g),un.e.fromValues(-d,-p,-g),un.e.fromValues(-d,p,-g),un.e.fromValues(d,p,-g)],y=[[0,1,3],[4,5,7],[3,2,6],[1,0,4],[1,4,2],[5,0,6]],m=[[0,0,1],[0,0,-1],[0,1,0],[0,-1,0],[1,0,0],[-1,0,0]],b=1,x=2,w=3,S=4,E=5,_=[],O=[],k=[],M=[],A=[],T=0,C=function(t,e,n){var r,i,o,a;for(o=0;o<=e;o++)for(a=0;a<=n;a++){var s=un.e.create(),u=un.e.create(),c=un.e.create(),f=un.e.create();un.e.lerp(s,v[y[t][0]],v[y[t][1]],o/e),un.e.lerp(u,v[y[t][0]],v[y[t][2]],a/n),un.e.sub(c,u,v[y[t][0]]),un.e.add(f,s,c),r=o/e,i=a/n,_.push(f[0],f[1],f[2]),O.push(m[t][0],m[t][1],m[t][2]),k.push(r,i),r=.875*(r/=3)+4/64,i=.875*(i/=3)+4/64,r+=t%3/3,i+=Math.floor(t/3)/3,M.push(r,i),o<e&&a<n&&(A.push(T+n+1,T+1,T),A.push(T+n+1,T+n+2,T+1)),T++}};C(0,c,f),C(b,c,f),C(x,c,l),C(w,c,l),C(S,l,f),C(E,l,f);var I=Object(Ja.generateAABBFromVertices)(_),P=this.getComponent();P.indices=Uint32Array.from(A),P.aabb=I,P.vertexCount=T,P.attributes=[{dirty:!0,name:"position",data:Float32Array.from(_),arrayStride:12,stepMode:"vertex",attributes:[{shaderLocation:0,offset:0,format:"float3"}]},{dirty:!0,name:"normal",data:Float32Array.from(O),arrayStride:12,stepMode:"vertex",attributes:[{shaderLocation:1,offset:0,format:"float3"}]},{dirty:!0,name:"uv",data:Float32Array.from(k),arrayStride:8,stepMode:"vertex",attributes:[{shaderLocation:2,offset:0,format:"float2"}]}]}}]),n}(Ps))||Hc;function cf(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=of()(t);if(e){var i=of()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return nf()(this,n)}}var ff,lf=Object($a.injectable)()(sf=function(t){tf()(n,t);var e=cf(n);function n(){return Ha()(this,n),e.apply(this,arguments)}return Ka()(n,[{key:"onEntityCreated",value:function(){var t=this.config.geometries,e=void 0===t?[]:t,n=this.getComponent();n.aabb=new Ja.AABB;var r=[],i=[],o=0;e.forEach((function(t){var e=t.aabb,a=t.indices,s=t.vertexCount,u=t.attributes;n.aabb.add(e),n.vertexCount+=s,a&&i.push.apply(i,Zu()(a.map((function(t){return t+o})))),o+=s,u.forEach((function(t,e){r[e]?t.data&&(es()(t.data)?r[e].push(t.data):Fs()(t.data)?r[e].data=function(t,e){if(!t&&!e)throw new Error("Please specify valid arguments for parameters a and b.");if(!e||0===e.length)return t;if(!t||0===t.length)return e;if(Object.prototype.toString.call(t)!==Object.prototype.toString.call(e))throw new Error("The types of the two arguments passed for parameters a and b do not match.");var n=new t.constructor(t.length+e.length);return n.set(t),n.set(e,t.length),n}(r[e].data,t.data):r[e].data=r[e].data.concat(t.data)):(r[e]=t,r[e].dirty=!0)}))})),n.attributes=r,n.indices=Uint32Array.from(i),n.dirty=!0}}]),n}(Ps))||sf;function hf(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=of()(t);if(e){var i=of()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return nf()(this,n)}}var df,pf=Object($a.injectable)()(ff=function(t){tf()(n,t);var e=hf(n);function n(){return Ha()(this,n),e.apply(this,arguments)}return Ka()(n,[{key:"onEntityCreated",value:function(){for(var t=this.config,e=t.halfExtents,n=void 0===e?[.5,.5]:e,r=t.widthSegments,i=void 0===r?5:r,o=t.lengthSegments,a=void 0===o?5:o,s=[],u=[],c=[],f=[],l=0,h=0;h<=i;h++)for(var d=0;d<=a;d++){var p=-n[0]+2*n[0]*h/i,g=-(-n[1]+2*n[1]*d/a),v=h/i,y=d/a;s.push(p,0,g),u.push(0,1,0),c.push(v,y),h<i&&d<a&&(f.push(l+a+1,l+1,l),f.push(l+a+1,l+a+2,l+1)),l++}var m=Object(Ja.generateAABBFromVertices)(s),b=this.getComponent();b.indices=Uint32Array.from(f),b.aabb=m,b.vertexCount=l,b.attributes=[{dirty:!0,name:"position",data:Float32Array.from(s),arrayStride:12,stepMode:"vertex",attributes:[{shaderLocation:0,offset:0,format:"float3"}]},{dirty:!0,name:"normal",data:Float32Array.from(u),arrayStride:12,stepMode:"vertex",attributes:[{shaderLocation:1,offset:0,format:"float3"}]},{dirty:!0,name:"uv",data:Float32Array.from(c),arrayStride:8,stepMode:"vertex",attributes:[{shaderLocation:2,offset:0,format:"float2"}]}]}}]),n}(Ps))||ff;function gf(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=of()(t);if(e){var i=of()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return nf()(this,n)}}var vf,yf,mf,bf,xf,wf,Sf,Ef=Object($a.injectable)()(df=function(t){tf()(n,t);var e=gf(n);function n(){return Ha()(this,n),e.apply(this,arguments)}return Ka()(n,[{key:"onEntityCreated",value:function(){for(var t=this.config,e=t.radius,n=void 0===e?.5:e,r=t.latitudeBands,i=void 0===r?16:r,o=t.longitudeBands,a=void 0===o?16:o,s=[],u=[],c=[],f=[],l=0;l<=i;l++)for(var h=l*Math.PI/i,d=Math.sin(h),p=Math.cos(h),g=0;g<=a;g++){var v=2*g*Math.PI/a-Math.PI/2,y=Math.sin(v),m=Math.cos(v)*d,b=p,x=y*d,w=1-g/a,S=1-l/i;s.push(m*n,b*n,x*n),u.push(m,b,x),c.push(w,S)}for(var E=0;E<i;++E)for(var _=0;_<a;++_){var O=E*(a+1)+_,k=O+a+1;f.push(O+1,k,O),f.push(O+1,k+1,k)}var M=Object(Ja.generateAABBFromVertices)(s),A=this.getComponent();A.indices=Uint32Array.from(f),A.aabb=M,A.vertexCount=s.length/3,A.attributes=[{dirty:!0,name:"position",data:Float32Array.from(s),arrayStride:12,stepMode:"vertex",attributes:[{shaderLocation:0,offset:0,format:"float3"}]},{dirty:!0,name:"normal",data:Float32Array.from(u),arrayStride:12,stepMode:"vertex",attributes:[{shaderLocation:1,offset:0,format:"float3"}]},{dirty:!0,name:"uv",data:Float32Array.from(c),arrayStride:8,stepMode:"vertex",attributes:[{shaderLocation:2,offset:0,format:"float2"}]}]}}]),n}(Ps))||df,_f=n(22),Of=n.n(_f);function kf(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=of()(t);if(e){var i=of()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return nf()(this,n)}}var Mf,Af,Tf,Cf,If,Pf,jf,Df,Nf,Rf,Lf,Bf=(vf=Object($a.injectable)(),yf=Object($a.inject)(Ja.IDENTIFIER.RenderEngine),mf=Object($a.inject)(Ja.IDENTIFIER.ShaderModuleService),vf((xf=function(t){tf()(n,t);var e=kf(n);function n(){var t;Ha()(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),Xa()(t,"engine",wf,Of()(t)),Xa()(t,"shaderModuleService",Sf,Of()(t)),t}return Ka()(n,[{key:"onEntityCreated",value:function(){var t=this.getComponent(),e=this.engine.supportWebGPU?"layout(set = 0, binding = 0) uniform Uniforms {\\n vec4 color;\\n mat4 projectionMatrix;\\n mat4 modelViewMatrix;\\n} uniforms;\\n\\nlayout(location = 0) in vec3 position;\\n// layout(location = 1) in vec3 barycentric;\\n\\nlayout(location = 0) out vec4 fragColor;\\n// layout(location = 1) out vec3 v_Barycentric;\\n\\nvoid main() {\\n gl_Position = uniforms.projectionMatrix * uniforms.modelViewMatrix * vec4(position, 1.0);\\n fragColor = uniforms.color;\\n // v_Barycentric = barycentric;\\n}":\'attribute vec3 position;\\nattribute vec3 normal;\\n\\nuniform mat4 projectionMatrix;\\nuniform mat4 modelViewMatrix;\\nuniform vec4 color;\\n\\nvarying vec4 fragColor;\\n\\n#pragma include "uv.vert.declaration"\\n\\nvoid main() {\\n gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);\\n fragColor = color;\\n\\n #pragma include "uv.vert.main"\\n}\',n=this.engine.supportWebGPU?"// layout(set = 0, binding = 1) uniform WireframeUniforms {\\n// float lineWidth;\\n// vec4 lineColor;\\n// } wireframe;\\n\\nlayout(location = 0) in vec4 fragColor;\\n// layout(location = 1) in vec3 v_Barycentric;\\n\\nlayout(location = 0) out vec4 outColor;\\n\\n// wireframe\\n// float edgeFactor() {\\n// vec3 d = fwidth(v_Barycentric);\\n// vec3 a3 = smoothstep(vec3(0.0), d * wireframe.lineWidth, v_Barycentric);\\n// return min(min(a3.x, a3.y), a3.z);\\n// }\\n\\nvoid main() {\\n // outColor = mix(fragColor, wireframe.lineColor, (1.0 - edgeFactor()));\\n outColor = fragColor;\\n}":\'varying vec4 fragColor;\\n\\n#pragma include "uv.frag.declaration"\\n#pragma include "map.frag.declaration"\\n\\nvoid main() {\\n vec4 diffuseColor = fragColor;\\n\\n #pragma include "map.frag.main"\\n\\n gl_FragColor = diffuseColor;\\n}\';this.shaderModuleService.registerModule("material-basic",{vs:e,fs:n});var r=this.shaderModuleService.getModule("material-basic"),i=r.vs,o=r.fs,a=r.uniforms;t.vertexShaderGLSL=i,t.fragmentShaderGLSL=o,t.setUniform(a),this.config.map&&(t.setDefines({USE_UV:1,USE_MAP:1}),t.setUniform({map:this.config.map,uvTransform:un.a.create()}))}}]),n}(Tu),wf=Qa()(xf.prototype,"engine",[yf],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Sf=Qa()(xf.prototype,"shaderModuleService",[mf],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),bf=xf))||bf);function Gf(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=of()(t);if(e){var i=of()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return nf()(this,n)}}var Ff=(Mf=Object($a.injectable)(),Af=Object($a.inject)(Ja.IDENTIFIER.Systems),Tf=Object($a.named)(Ja.IDENTIFIER.MaterialSystem),Cf=Object($a.inject)(Ja.IDENTIFIER.Systems),If=Object($a.named)(Ja.IDENTIFIER.GeometrySystem),Pf=Object($a.inject)(Ja.IDENTIFIER.ShaderModuleService),Mf((Df=function(t){tf()(n,t);var e=Gf(n);function n(){var t;Ha()(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),Xa()(t,"materialSystem",Nf,Of()(t)),Xa()(t,"geometrySystem",Rf,Of()(t)),Xa()(t,"shaderModuleService",Lf,Of()(t)),t}return Ka()(n,[{key:"onAttributeChanged",value:function(t){var e=t.name,n=t.data,r=this.getMeshComponent();r&&r.material&&("gridColor"===e?(r.material.setUniform("u_GridColor",n),r.material.setUniform("u_GridColor2",n)):"gridSize"===e&&(r.material.setUniform("u_GridSize",n),r.material.setUniform("u_GridSize2",n)))}},{key:"onEntityCreated",value:function(){this.shaderModuleService.registerModule("grid",{vs:"attribute vec3 a_Position;\\n\\nvarying vec3 v_Position;\\n\\nuniform mat4 projectionMatrix;\\nuniform mat4 modelViewMatrix;\\n\\nvoid main() {\\n v_Position = a_Position;\\n gl_Position = projectionMatrix * modelViewMatrix * vec4(a_Position, 1.);\\n}",fs:"// generate grid, borrow from clay.gl viewer\\n// @see https://github.com/pissang/clay-viewer/blob/master/src/graphic/ground.glsl\\n#extension GL_OES_standard_derivatives : enable\\n\\nvarying vec3 v_Position;\\n// varying vec3 v_Normal;\\n\\nuniform float u_GridSize : 5;\\nuniform float u_GridSize2 : .5;\\nuniform vec4 u_GridColor : [0, 0, 0, 1];\\nuniform vec4 u_GridColor2 : [0.3, 0.3, 0.3, 1];\\nuniform bool u_GridEnabled : true;\\n\\n// uniform vec3 u_LightDirection;\\n// uniform vec3 u_LightColor;\\n// uniform vec3 u_Camera;\\n\\nvoid main() {\\n // vec3 n = v_Normal;\\n // vec3 l = normalize(u_LightDirection);\\n // float NdotL = clamp(dot(n, l), 0.001, 1.0);\\n\\n gl_FragColor = vec4(1.);\\n\\n if (u_GridEnabled) {\\n float wx = v_Position.x;\\n float wz = v_Position.z;\\n // float x0 = abs(fract(wx / u_GridSize - 0.5) - 0.5) / fwidth(wx) * u_GridSize / 2.0;\\n // float z0 = abs(fract(wz / u_GridSize - 0.5) - 0.5) / fwidth(wz) * u_GridSize / 2.0;\\n\\n float x1 = abs(fract(wx / u_GridSize2 - 0.5) - 0.5) / fwidth(wx) * u_GridSize2;\\n float z1 = abs(fract(wz / u_GridSize2 - 0.5) - 0.5) / fwidth(wz) * u_GridSize2;\\n\\n // float v0 = 1.0 - clamp(min(x0, z0), 0.0, 1.0);\\n float v1 = 1.0 - clamp(min(x1, z1), 0.0, 1.0);\\n // if (v0 > 0.1) {\\n // gl_FragColor = mix(gl_FragColor, u_GridColor, v0);\\n // }\\n // else {\\n gl_FragColor = mix(gl_FragColor, u_GridColor2, v1);\\n // }\\n }\\n\\n // float shadowFactor = calcShadow(u_ShadowMap, v_PositionFromLight, l, n);\\n // vec3 diffuseColor = u_LightColor * NdotL * shadowFactor;\\n\\n // gl_FragColor.rgb *= diffuseColor;\\n}"});var t=this.shaderModuleService.getModule("grid"),e=t.vs,n=t.fs,r=t.uniforms,i=this.materialSystem.createShaderMaterial({vertexShader:e,fragmentShader:n});this.setMaterial(i);var o=this.geometrySystem.createBufferGeometry({vertexCount:4});this.setGeometry(o),i.setCull({enable:!1,face:Ja.gl.BACK}).setDepth({enable:!0,func:Ja.gl.LESS}),i.setUniform(r),this.setAttributes({gridColor:this.config.gridColor,gridSize:this.config.gridSize}),o.setIndex([0,3,2,2,1,0]),o.setAttribute("a_Position",Float32Array.from([-4,-1,-4,4,-1,-4,4,-1,4,-4,-1,4]),{arrayStride:8,stepMode:"vertex",attributes:[{shaderLocation:0,offset:0,format:"float2"}]})}}]),n}(Cu),Nf=Qa()(Df.prototype,"materialSystem",[Af,Tf],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Rf=Qa()(Df.prototype,"geometrySystem",[Cf,If],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Lf=Qa()(Df.prototype,"shaderModuleService",[Pf],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),jf=Df))||jf),Uf=n(96),zf=n(64);function Vf(t,e,n,r,i){Wf(e,r,-i),Wf(e,r,i),t.push(n),t.push(n)}function Wf(t,e,n){t.push([[e[0],e[1]],n])}var Xf,Yf,Hf,qf,Kf,Zf,Qf,Jf,$f,tl,el;function nl(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=of()(t);if(e){var i=of()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return nf()(this,n)}}var rl,il,ol,al,sl,ul,cl,fl,ll,hl,dl,pl=(Xf=Object($a.injectable)(),Yf=Object($a.inject)(Ja.IDENTIFIER.Systems),Hf=Object($a.named)(Ja.IDENTIFIER.MaterialSystem),qf=Object($a.inject)(Ja.IDENTIFIER.Systems),Kf=Object($a.named)(Ja.IDENTIFIER.GeometrySystem),Zf=Object($a.inject)(Ja.IDENTIFIER.ShaderModuleService),Xf((Jf=function(t){tf()(n,t);var e=nl(n);function n(){var t;Ha()(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),Xa()(t,"materialSystem",$f,Of()(t)),Xa()(t,"geometrySystem",tl,Of()(t)),Xa()(t,"shaderModuleService",el,Of()(t)),t.vertexCount=void 0,t}return Ka()(n,[{key:"onAttributeChanged",value:function(t){var e=t.name,n=t.data,r=this.getMeshComponent();if(r&&r.material)switch(e){case"dashArray":r.material.setUniform("u_dash_array",n);break;case"dashOffset":r.material.setUniform("u_dash_offset",n);break;case"dashRatio":r.material.setUniform("u_dash_ratio",n);break;case"thickness":r.material.setUniform("u_thickness",n);break;case"color":var i=new Array(this.vertexCount).fill(void 0).map((function(){return n})).reduce((function(t,e){return[].concat(Zu()(t),Zu()(e))}),[]);r.geometry.setAttribute("a_color",Float32Array.from(i),{arrayStride:16,stepMode:"vertex",attributes:[{shaderLocation:1,offset:0,format:"float4"}]})}}},{key:"onEntityCreated",value:function(){var t=this;this.shaderModuleService.registerModule("line",{vs:"attribute vec2 a_pos;\\nattribute vec4 a_color;\\nattribute float a_line_miter;\\nattribute vec2 a_line_normal;\\nattribute float a_counters;\\n\\nuniform mat4 projectionMatrix;\\nuniform mat4 modelViewMatrix;\\nuniform float u_thickness : 0.02;\\nuniform vec2 u_viewport;\\n\\nvarying vec4 v_color;\\nvarying vec2 v_normal;\\nvarying float v_counters;\\n\\nvoid main() {\\n v_color = a_color;\\n v_counters = a_counters;\\n\\n vec3 normal = normalize(vec3(a_line_normal, 0.0));\\n\\n vec4 offset = vec4(normal * u_thickness / 2.0 * a_line_miter, 0.0);\\n\\n v_normal = vec2(normal * sign(a_line_miter));\\n\\n gl_Position = projectionMatrix * modelViewMatrix * vec4(a_pos, 0.0, 1.0) + offset;\\n}\\n",fs:"uniform float u_dash_array : 0.02;\\nuniform float u_dash_offset : 0;\\nuniform float u_dash_ratio : 0;\\nuniform float u_thickness : 0.02;\\n\\nvarying vec4 v_color;\\nvarying vec2 v_normal;\\nvarying float v_counters;\\n\\nvoid main() {\\n float blur = 1. - smoothstep(0.98, 1., length(v_normal));\\n\\n gl_FragColor = v_color;\\n gl_FragColor.a *= blur * ceil(mod(v_counters + u_dash_offset, u_dash_array) - (u_dash_array * u_dash_ratio));\\n}"});var e=this.shaderModuleService.getModule("line"),n=e.vs,r=e.fs,i=e.uniforms,o=this.materialSystem.createShaderMaterial({vertexShader:n,fragmentShader:r}),a=function(t,e,n){var r=[0,0],i=[0,0],o=[0,0],a=[0,0],s=-1,u=!1,c=null,f=Object(Uf.create)(),l=n||0,h=[],d=[],p=[],g=[0,0];e&&(t=t.slice()).push(t[0]);for(var v=t.length,y=1;y<v;y++){var m=l,b=t[y-1],x=t[y],w=y<t.length-1?t[y+1]:null;if(g.push(y/v,y/v),Object(zf.direction)(r,x,b),c||(c=[0,0],Object(zf.normal)(c,r)),u||(u=!0,Vf(d,h,b,c,1)),p.push([m+0,m+1,m+2]),w){Object(zf.direction)(i,w,x);var S=Object(zf.computeMiter)(o,a,r,i,1),E=Object(Uf.dot)(o,c)<0?-1:1,_=S>3;if(!isFinite(S)){Object(zf.normal)(c,r),Vf(d,h,x,c,1),p.push(1===s?[m,m+2,m+3]:[m+2,m+1,m+3]),l+=2,s=E;continue}_?(S=3,g.push(y/v),Wf(h,c,-E),d.push(x),Wf(h,a,S*E),d.push(x),p.push(s!==-E?[m,m+2,m+3]:[m+2,m+1,m+3]),p.push([m+2,m+3,m+4]),Object(zf.normal)(f,i),Object(Uf.copy)(c,f),Wf(h,c,-E),d.push(x),l+=3):(Vf(d,h,x,a,S),p.push(1===s?[m,m+2,m+3]:[m+2,m+1,m+3]),E=-1,Object(Uf.copy)(c,a),l+=2),s=E}else Object(zf.normal)(c,r),Vf(d,h,x,c,1),p.push(1===s?[m,m+2,m+3]:[m+2,m+1,m+3]),l+=2}return{normals:h,attrIndex:p,attrPos:d,attrCounters:g}}(this.config.points,!1),s=a.normals,u=a.attrIndex,c=a.attrPos,f=a.attrCounters,l=c.length;this.vertexCount=l;var h=this.geometrySystem.createBufferGeometry({vertexCount:l});this.setMaterial(o),this.setGeometry(h),o.setCull({enable:!1,face:Ja.gl.BACK}).setUniform(i),this.setAttributes({dashArray:this.config.dashArray,dashOffset:this.config.dashOffset,dashRatio:this.config.dashRatio,thickness:this.config.thickness});var d=[],p=[];s.forEach((function(t){var e=t[0],n=t[1];d.push([e[0],e[1]]),p.push(n)})),h.setIndex(u.reduce((function(t,e){return[].concat(Zu()(t),Zu()(e))}),[])),h.setAttribute("a_pos",Float32Array.from(c.reduce((function(t,e){return[].concat(Zu()(t),Zu()(e))}),[])),{arrayStride:8,stepMode:"vertex",attributes:[{shaderLocation:0,offset:0,format:"float2"}]});var g=new Array(l).fill(void 0).map((function(){return Zu()(t.config.color)})).reduce((function(t,e){return[].concat(Zu()(t),Zu()(e))}),[]);h.setAttribute("a_color",Float32Array.from(g),{arrayStride:16,stepMode:"vertex",attributes:[{shaderLocation:1,offset:0,format:"float4"}]}),h.setAttribute("a_line_miter",Float32Array.from(p),{arrayStride:4,stepMode:"vertex",attributes:[{shaderLocation:2,offset:0,format:"float"}]}),h.setAttribute("a_line_normal",Float32Array.from(d.reduce((function(t,e){return[].concat(Zu()(t),Zu()(e))}),[])),{arrayStride:8,stepMode:"vertex",attributes:[{shaderLocation:3,offset:0,format:"float2"}]}),h.setAttribute("a_counters",Float32Array.from(f),{arrayStride:4,stepMode:"vertex",attributes:[{shaderLocation:4,offset:0,format:"float"}]})}}]),n}(Cu),$f=Qa()(Jf.prototype,"materialSystem",[Yf,Hf],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),tl=Qa()(Jf.prototype,"geometrySystem",[qf,Kf],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),el=Qa()(Jf.prototype,"shaderModuleService",[Zf],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Qf=Jf))||Qf);function gl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function vl(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=of()(t);if(e){var i=of()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return nf()(this,n)}}var yl,ml,bl,xl,wl,Sl,El,_l,Ol,kl=["circle","triangle","square","pentagon","hexagon","octogon","hexagram","rhombus","vesica"],Ml=(rl=Object($a.injectable)(),il=Object($a.inject)(Ja.IDENTIFIER.Systems),ol=Object($a.named)(Ja.IDENTIFIER.MaterialSystem),al=Object($a.inject)(Ja.IDENTIFIER.Systems),sl=Object($a.named)(Ja.IDENTIFIER.GeometrySystem),ul=Object($a.inject)(Ja.IDENTIFIER.ShaderModuleService),rl((fl=function(t){tf()(n,t);var e=vl(n);function n(){var t;Ha()(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),Xa()(t,"materialSystem",ll,Of()(t)),Xa()(t,"geometrySystem",hl,Of()(t)),Xa()(t,"shaderModuleService",dl,Of()(t)),t}return Ka()(n,[{key:"onAttributeChanged",value:function(t){var e=t.name,n=t.data,r=this.getMeshComponent();r&&r.material&&("strokeWidth"===e?r.material.setUniform("u_stroke_width",n):"strokeColor"===e?r.material.setUniform("u_stroke_color",n):"strokeOpacity"===e?r.material.setUniform("u_stroke_opacity",n):"opacity"===e?r.material.setUniform("u_opacity",n):"blur"===e&&r.material.setUniform("u_blur",n))}},{key:"onEntityCreated",value:function(){this.shaderModuleService.registerModule("grid",{vs:\'attribute vec2 position;\\nattribute vec4 color;\\nattribute float shape;\\nattribute vec2 offset;\\nattribute float size;\\n\\nuniform mat4 projectionMatrix;\\nuniform mat4 modelViewMatrix;\\n\\nuniform float u_stroke_width : 0.01;\\nuniform float u_device_pixel_ratio;\\nuniform vec2 u_viewport;\\n\\nvarying vec4 v_color;\\nvarying vec4 v_data;\\nvarying float v_radius;\\n\\n#pragma include "picking"\\n\\nvoid main() {\\n v_color = color;\\n v_radius = size;\\n\\n lowp float antialiasblur = 1.0 / u_device_pixel_ratio * (size + u_stroke_width);\\n\\n // construct point coords\\n v_data = vec4(position, antialiasblur, shape);\\n\\n gl_Position = projectionMatrix * modelViewMatrix\\n * vec4(position * size + offset, 0.0, 1.0);\\n\\n setPickingColor(a_PickingColor);\\n}\',fs:"uniform float u_blur : 0.05;\\nuniform float u_opacity : 0.7;\\nuniform float u_stroke_width : 0.01;\\nuniform vec4 u_stroke_color : [0, 0, 0, 0];\\nuniform float u_stroke_opacity : 1;\\n\\nvarying vec4 v_color;\\nvarying vec4 v_data;\\nvarying float v_radius;\\n\\n#pragma include \\"sdf2d\\"\\n#pragma include \\"picking\\"\\n\\nvoid main() {\\n int shape = int(floor(v_data.w + 0.5));\\n\\n float antialiasblur = v_data.z;\\n float antialiased_blur = -max(u_blur, antialiasblur);\\n float r = v_radius / (v_radius + u_stroke_width);\\n\\n float outer_df;\\n float inner_df;\\n // \'circle\', \'triangle\', \'square\', \'pentagon\', \'hexagon\', \'octogon\', \'hexagram\', \'rhombus\', \'vesica\'\\n // if (shape == 0) {\\n outer_df = sdCircle(v_data.xy, 1.0);\\n inner_df = sdCircle(v_data.xy, r);\\n // } else if (shape == 1) {\\n // outer_df = sdEquilateralTriangle(1.1 * v_data.xy);\\n // inner_df = sdEquilateralTriangle(1.1 / r * v_data.xy);\\n // } else if (shape == 2) {\\n // outer_df = sdBox(v_data.xy, vec2(1.));\\n // inner_df = sdBox(v_data.xy, vec2(r));\\n // } else if (shape == 3) {\\n // outer_df = sdPentagon(v_data.xy, 0.8);\\n // inner_df = sdPentagon(v_data.xy, r * 0.8);\\n // } else if (shape == 4) {\\n // outer_df = sdHexagon(v_data.xy, 0.8);\\n // inner_df = sdHexagon(v_data.xy, r * 0.8);\\n // } else if (shape == 5) {\\n // outer_df = sdOctogon(v_data.xy, 1.0);\\n // inner_df = sdOctogon(v_data.xy, r);\\n // } else if (shape == 6) {\\n // outer_df = sdHexagram(v_data.xy, 0.52);\\n // inner_df = sdHexagram(v_data.xy, r * 0.52);\\n // } else if (shape == 7) {\\n // outer_df = sdRhombus(v_data.xy, vec2(1.0));\\n // inner_df = sdRhombus(v_data.xy, vec2(r));\\n // } else if (shape == 8) {\\n // outer_df = sdVesica(v_data.xy, 1.1, 0.8);\\n // inner_df = sdVesica(v_data.xy, r * 1.1, r * 0.8);\\n // }\\n\\n float opacity_t = smoothstep(0.0, antialiased_blur, outer_df);\\n\\n float color_t = u_stroke_width < 0.01 ? 0.0 : smoothstep(\\n antialiased_blur,\\n 0.0,\\n inner_df\\n );\\n vec4 strokeColor = u_stroke_color == vec4(0) ? v_color : u_stroke_color;\\n\\n gl_FragColor = mix(vec4(v_color.rgb, v_color.a * u_opacity), strokeColor * u_stroke_opacity, color_t);\\n gl_FragColor.a = gl_FragColor.a * opacity_t;\\n\\n gl_FragColor = filterColor(gl_FragColor);\\n}"});var t=this.shaderModuleService.getModule("grid"),e=t.vs,n=t.fs,r=t.uniforms,i=this.materialSystem.createShaderMaterial({vertexShader:e,fragmentShader:n,cull:{enable:!1},depth:{enable:!1},blend:{enable:!0,func:{srcRGB:Ja.gl.SRC_ALPHA,dstRGB:Ja.gl.ONE_MINUS_SRC_ALPHA,srcAlpha:1,dstAlpha:1}}});i.setUniform(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?gl(Object(n),!0).forEach((function(e){Bs()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gl(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({u_device_pixel_ratio:window.devicePixelRatio},r));var o=this.buildAttributes(),a=this.geometrySystem.createInstancedBufferGeometry({maxInstancedCount:o.instancedOffsets.length/2,vertexCount:6});a.setIndex([0,2,1,0,3,2]),a.setAttribute("position",Float32Array.from(o.positions),{arrayStride:8,stepMode:"vertex",attributes:[{shaderLocation:0,offset:0,format:"float2"}]}),a.setAttribute("offset",Float32Array.from(o.instancedOffsets),{arrayStride:8,stepMode:"instance",attributes:[{shaderLocation:1,offset:0,format:"float2"}]}),a.setAttribute("color",Float32Array.from(o.instancedColors),{arrayStride:16,stepMode:"instance",attributes:[{shaderLocation:2,offset:0,format:"float4"}]}),a.setAttribute("size",Float32Array.from(o.instancedSizes),{arrayStride:4,stepMode:"instance",attributes:[{shaderLocation:3,offset:0,format:"float"}]}),a.setAttribute("shape",Float32Array.from(o.instancedShapes),{arrayStride:4,stepMode:"instance",attributes:[{shaderLocation:4,offset:0,format:"float"}]}),a.setAttribute("a_PickingColor",Float32Array.from(o.instancedPickingColors),{arrayStride:12,stepMode:"instance",attributes:[{shaderLocation:6,offset:0,format:"float3"}]}),this.setMaterial(i),this.setGeometry(a)}},{key:"buildAttribute",value:function(t,e,n){var r,i,o,a,s;(r=e.instancedPickingColors).push.apply(r,Zu()([(s=t.id||n)+1&255,s+1>>8&255,s+1>>8>>8&255])),e.instancedShapes.push(kl.indexOf(t.shape||"circle")),(i=e.instancedColors).push.apply(i,Zu()(t.color||[1,0,0,1])),(o=e.instancedOffsets).push.apply(o,Zu()(t.position||[0,0])),(a=e.instancedSizes).push.apply(a,Zu()(t.size||[.2,.2]))}},{key:"buildAttributes",value:function(){var t=this,e={positions:[1,1,1,-1,-1,-1,-1,1],instancedOffsets:[],instancedColors:[],instancedSizes:[],instancedShapes:[],instancedPickingColors:[]};return Array.isArray(this.config)?this.config.forEach((function(n,r){t.buildAttribute(n,e,r)})):this.buildAttribute(this.config,e,0),e}}]),n}(Cu),ll=Qa()(fl.prototype,"materialSystem",[il,ol],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),hl=Qa()(fl.prototype,"geometrySystem",[al,sl],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),dl=Qa()(fl.prototype,"shaderModuleService",[ul],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),cl=fl))||cl);function Al(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Tl(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 Tl(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Tl(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}var Cl,Il,Pl,jl,Dl,Nl,Rl,Ll,Bl,Gl=(yl=Object($a.injectable)(),ml=Object($a.inject)(Ja.IDENTIFIER.RenderEngine),bl=Object($a.inject)(Ja.IDENTIFIER.ShaderModuleService),xl=Object($a.inject)(Ja.IDENTIFIER.ConfigService),yl((Sl=function(){function t(){Ha()(this,t),this.container=void 0,Xa()(this,"engine",El,this),Xa()(this,"shaderModule",_l,this),Xa()(this,"configService",Ol,this),this.inited=!1,this.rendering=!1,this.pendings=[],this.views=[],this.size=void 0}var e,n;return Ka()(t,[{key:"init",value:(n=Rs()(Ds.a.mark((function t(){var e,n,r,i,o;return Ds.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.shaderModule.registerBuiltinModules(),this.shaderModule.registerModule("uv.vert.declaration",{vs:"#ifdef USE_UV\\n attribute vec2 uv;\\n\\t#ifdef UVS_VERTEX_ONLY\\n vec2 vUv;\\n\\t#else\\n\\t\\tvarying vec2 vUv;\\n\\t#endif\\n\\tuniform mat3 uvTransform;\\n#endif"}),this.shaderModule.registerModule("uv.vert.main",{vs:"#ifdef USE_UV\\n vUv = (uvTransform * vec3(uv, 1)).xy;\\n#endif"}),this.shaderModule.registerModule("uv.frag.declaration",{fs:"#if (defined( USE_UV ) && ! defined( UVS_VERTEX_ONLY ))\\n varying vec2 vUv;\\n#endif"}),this.shaderModule.registerModule("map.frag.declaration",{fs:"#ifdef USE_MAP\\n uniform sampler2D map;\\n#endif"}),this.shaderModule.registerModule("map.frag.main",{fs:"#ifdef USE_MAP\\n vec4 texelColor = texture2D(map, vUv);\\n // texelColor = mapTexelToLinear(texelColor);\\n diffuseColor *= texelColor;\\n#endif"}),e=this.container.getAll(Ja.IDENTIFIER.Systems),!(n=this.configService.get()).canvas){t.next=30;break}return t.next=11,this.engine.init({canvas:n.canvas,swapChainFormat:Vs.TextureFormat.BGRA8Unorm,antialiasing:!1});case 11:r=Al(e),t.prev=12,r.s();case 14:if((i=r.n()).done){t.next=21;break}if(!(o=i.value).initialize){t.next=19;break}return t.next=19,o.initialize();case 19:t.next=14;break;case 21:t.next=26;break;case 23:t.prev=23,t.t0=t.catch(12),r.e(t.t0);case 26:return t.prev=26,r.f(),t.finish(26);case 29:this.inited=!0;case 30:case"end":return t.stop()}}),t,this,[[12,23,26,29]])}))),function(){return n.apply(this,arguments)})},{key:"render",value:(e=Rs()(Ds.a.mark((function t(){var e,n,r,i,o,a,s,u=arguments;return Ds.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.inited&&!this.rendering){t.next=2;break}return t.abrupt("return");case 2:for(this.pendings.length&&this.pendings.forEach((function(t){t()})),this.rendering=!0,this.engine.beginFrame(),e=this.container.getAll(Ja.IDENTIFIER.Systems),n=u.length,r=new Array(n),i=0;i<n;i++)r[i]=u[i];o=Al(e),t.prev=8,o.s();case 10:if((a=o.n()).done){t.next=17;break}if(!(s=a.value).execute){t.next=15;break}return t.next=15,s.execute(r);case 15:t.next=10;break;case 17:t.next=22;break;case 19:t.prev=19,t.t0=t.catch(8),o.e(t.t0);case 22:return t.prev=22,o.f(),t.finish(22);case 25:this.engine.endFrame(),this.rendering=!1;case 27:case"end":return t.stop()}}),t,this,[[8,19,22,25]])}))),function(){return e.apply(this,arguments)})},{key:"clear",value:function(t){var e=this;return this.inited?this.engine.clear(t):this.pendings.unshift((function(){e.engine.clear(t),e.pendings.shift()})),this}},{key:"setSize",value:function(t){var e=t.width,n=t.height,r=this.engine.getCanvas();return this.size={width:e,height:n},r.width=e,r.height=n,this}},{key:"getSize",value:function(){return this.size}}]),t}(),El=Qa()(Sl.prototype,"engine",[ml],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_l=Qa()(Sl.prototype,"shaderModule",[bl],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ol=Qa()(Sl.prototype,"configService",[xl],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),wl=Sl))||wl),Fl=Object($a.injectable)()(Cl=function(){function t(){Ha()(this,t),this.entities=[]}return Ka()(t,[{key:"getEntities",value:function(){return this.entities}},{key:"addRenderable",value:function(t){return this.addEntity(t.getEntity()),this}},{key:"removeRenderable",value:function(t){return this.removeEntity(t.getEntity()),this}},{key:"addLight",value:function(){}},{key:"addEntity",value:function(t){return-1===this.entities.indexOf(t)&&this.entities.push(t),this}},{key:"removeEntity",value:function(t){var e=this.entities.indexOf(t);return this.entities.splice(e,1),this}}]),t}())||Cl,Ul=Object($a.injectable)()(Il=function(){function t(){Ha()(this,t),this.cache={}}return Ka()(t,[{key:"get",value:function(t){return this.cache[t]}},{key:"set",value:function(t,e){this.cache[t]=e}}]),t}())||Il;function zl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Vl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?zl(Object(n),!0).forEach((function(e){Bs()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zl(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Wl,Xl,Yl,Hl,ql,Kl,Zl,Ql,Jl,$l,th,eh=(Pl=Object($a.injectable)(),jl=Object($a.inject)(Ul),Dl=Object($a.inject)(Ja.IDENTIFIER.RenderEngine),Pl((Rl=function(){function t(){Ha()(this,t),Xa()(this,"textureCache",Ll,this),Xa()(this,"engine",Bl,this),this.config=void 0,this.loaded=!1,this.texture=void 0}var e;return Ka()(t,[{key:"setConfig",value:function(t){this.config=t}},{key:"isLoaded",value:function(){return this.loaded}},{key:"load",value:(e=Rs()(Ds.a.mark((function t(){var e=this;return Ds.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.config.url){t.next=4;break}return t.abrupt("return",new Promise((function(t,n){var r=e.textureCache.get(e.config.url);if(r)t(r);else{var i=new Image;i.crossOrigin="Anonymous",i.src=e.config.url,i.onload=function(){var n=e.engine.createTexture2D(Vl(Vl({},e.config),{},{data:i,width:i.width,height:i.height,flipY:!0}));e.textureCache.set(e.config.url,n),e.texture=n,e.loaded=!0,t(n)},i.onerror=function(){n()}}})));case 4:return this.loaded=!0,this.texture=this.engine.createTexture2D(this.config),t.abrupt("return",this.texture);case 7:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})}]),t}(),Ll=Qa()(Rl.prototype,"textureCache",[jl],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Bl=Qa()(Rl.prototype,"engine",[Dl],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Nl=Rl))||Nl),nh=(Wl=Object($a.injectable)(),Xl=Object($a.inject)(Ja.IDENTIFIER.Systems),Yl=Object($a.named)(Ja.IDENTIFIER.RendererSystem),Wl((ql=function(){function t(){Ha()(this,t),Xa()(this,"rendererSystem",Kl,this),this.camera=void 0,this.scene=void 0,this.viewport={x:0,y:0,width:0,height:0},this.clearColor=[1,1,1,1]}return Ka()(t,[{key:"getCamera",value:function(){return this.camera}},{key:"getScene",value:function(){return this.scene}},{key:"getViewport",value:function(){return this.viewport}},{key:"getClearColor",value:function(){return this.clearColor}},{key:"setCamera",value:function(t){return this.camera=t,this}},{key:"setScene",value:function(t){return this.scene=t,this}},{key:"setViewport",value:function(t){return this.viewport=t,this}},{key:"setClearColor",value:function(t){return this.clearColor=t,this}},{key:"pick",value:function(t){return this.rendererSystem.pick(t,this)}}]),t}(),Kl=Qa()(ql.prototype,"rendererSystem",[Xl,Yl],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Hl=ql))||Hl);function rh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ih(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?rh(Object(n),!0).forEach((function(e){Bs()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rh(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var oh=(Zl=Object($a.injectable)(),Ql=Object($a.inject)(Ja.IDENTIFIER.ConfigService),Zl(($l=function(){function t(){Ha()(this,t),Xa()(this,"configService",th,this),this.container=void 0}var e;return Ka()(t,[{key:"getEngine",value:(e=Rs()(Ds.a.mark((function t(){var e,n,r,i;return Ds.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.container.get(Ja.IDENTIFIER.RenderEngine),n=this.configService.get(),r=n.canvas,i=n.engineOptions,t.next=4,e.init(ih({canvas:r||Ws(),swapChainFormat:Vs.TextureFormat.BGRA8Unorm,antialiasing:!1},i));case 4:return t.abrupt("return",e);case 5:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"getTransformComponent",value:function(t){return this.container.get(Ja.IDENTIFIER.TransformComponentManager).getComponentByEntity(t)}},{key:"getMeshComponent",value:function(t){return this.container.get(Ja.IDENTIFIER.MeshComponentManager).getComponentByEntity(t)}},{key:"setConfig",value:function(t){this.configService.set(t)}},{key:"setContainer",value:function(t){this.container=t}},{key:"getContainer",value:function(){return this.container}},{key:"createEntity",value:function(){return Object(Ja.createEntity)()}},{key:"createScene",value:function(){return this.container.get(Fl)}},{key:"createCamera",value:function(){return this.container.get(Is)}},{key:"createView",value:function(){return this.container.get(nh)}},{key:"createRenderable",value:function(t,e){var n=t?this.container.getNamed(Ja.IDENTIFIER.Renderable,t):this.container.get(Cu),r=Object(Ja.createEntity)();return n.setConfig(e||{}),n.setEntity(r),n}},{key:"createGeometry",value:function(t,e){var n=this.container.getNamed(Ja.IDENTIFIER.Geometry,t),r=Object(Ja.createEntity)();return n.setConfig(e||{}),n.setEntity(r),n.getComponent()}},{key:"createMaterial",value:function(t,e){var n=this.container.getNamed(Ja.IDENTIFIER.Material,t),r=Object(Ja.createEntity)();return n.setConfig(e||{}),n.setEntity(r,t),n.getComponent()}},{key:"createTexture2D",value:function(t){var e=this.container.get(eh);return e.setConfig(t),e}},{key:"createBufferGeometry",value:function(t){return this.container.getNamed(Ja.IDENTIFIER.Systems,Ja.IDENTIFIER.GeometrySystem).createBufferGeometry(t)}},{key:"createInstancedBufferGeometry",value:function(t){return this.container.getNamed(Ja.IDENTIFIER.Systems,Ja.IDENTIFIER.GeometrySystem).createInstancedBufferGeometry(t)}},{key:"createShaderMaterial",value:function(t){return this.container.getNamed(Ja.IDENTIFIER.Systems,Ja.IDENTIFIER.MaterialSystem).createShaderMaterial(t)}},{key:"createKernel",value:function(t){var e=this.container.get(Au);return"string"==typeof t?e.setBundle(JSON.parse(t)):e.setBundle(t),e.init(),e}},{key:"createRenderer",value:function(){var t=this.container.get(Gl);return t.container=this.container,t.init(),t}},{key:"destroy",value:function(){this.container.getAll(Ja.IDENTIFIER.Systems).forEach((function(t){t.tearDown&&t.tearDown()})),this.container.get(Ja.IDENTIFIER.RenderEngine).destroy(),this.container.get(Ja.IDENTIFIER.InteractorService).destroy()}}],[{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Object(Ja.createWorldContainer)(),r=navigator.gpu?Zc:pc;n.isBound(Ja.IDENTIFIER.RenderEngine)||n.bind(Ja.IDENTIFIER.RenderEngine).to(r).inSingletonScope(),n.bind(Gl).toSelf(),n.bind(Au).toSelf(),n.bind(Cu).toSelf(),n.bind(nh).toSelf(),n.bind(Is).toSelf(),n.bind(Fl).toSelf(),n.bind(t).toSelf(),n.bind(Ul).toSelf(),n.bind(eh).toSelf(),n.bind(Ja.IDENTIFIER.Geometry).to(uf).whenTargetNamed(Ps.BOX),n.bind(Ja.IDENTIFIER.Geometry).to(Ef).whenTargetNamed(Ps.SPHERE),n.bind(Ja.IDENTIFIER.Geometry).to(pf).whenTargetNamed(Ps.PLANE),n.bind(Ja.IDENTIFIER.Geometry).to(lf).whenTargetNamed(Ps.MERGED),n.bind(Ja.IDENTIFIER.Material).to(Bf).whenTargetNamed(Tu.BASIC),n.bind(Ja.IDENTIFIER.Renderable).to(Ml).whenTargetNamed(Cu.POINT),n.bind(Ja.IDENTIFIER.Renderable).to(pl).whenTargetNamed(Cu.LINE),n.bind(Ja.IDENTIFIER.Renderable).to(Ff).whenTargetNamed(Cu.GRID);var i=n.get(t);return i.setContainer(n),i.setConfig(e),i}}]),t}(),th=Qa()($l.prototype,"configService",[Ql],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Jl=$l))||Jl),ah=function(t,e){return t?Un(t)?function(){return t}:t:function(){return e||1}},sh=function(t,e){var n=[],r=[],i={},o=0;for(o=0;o<t.length;o++){var a=t[o];i[a.id]=o,n.push(a.x),n.push(a.y),n.push(0),n.push(0),r.push([])}for(o=0;o<e.length;o++){var s=e[o];r[i[s.source]].push(i[s.target]),r[i[s.target]].push(i[s.source])}var u=0;for(o=0;o<t.length;o++){var c=n.length,f=r[o],l=f.length;n[4*o+2]=c,n[4*o+3]=f.length,u=Math.max(u,f.length);for(var h=0;h<l;++h){var d=f[h];n.push(+d)}}for(;n.length%4!=0;)n.push(0);return{maxEdgePerVetex:u,array:new Float32Array(n)}},uh=function(t,e,n,r){var i=[],o=[],a={},s=0;for(s=0;s<t.length;s++){var u=t[s];a[u.id]=s,i.push(u.x),i.push(u.y),i.push(0),i.push(0),o.push([])}for(s=0;s<e.length;s++){var c=e[s];o[a[c.source]].push(a[c.target]),o[a[c.source]].push(n(c)),o[a[c.source]].push(r(c)),o[a[c.source]].push(0),o[a[c.target]].push(a[c.source]),o[a[c.target]].push(n(c)),o[a[c.target]].push(r(c)),o[a[c.target]].push(0)}var f=0;for(s=0;s<t.length;s++){var l=i.length,h=o[s],d=h.length;i[4*s+2]=l+1048576*d/4,i[4*s+3]=0,f=Math.max(f,d/4);for(var p=0;p<d;++p){var g=h[p];i.push(+g)}}for(;i.length%4!=0;)i.push(0);return{maxEdgePerVetex:f,array:new Float32Array(i)}},ch=function(t,e){var n=[],r=t.length,i={};return e.forEach((function(e){t.forEach((function(t,o){if(void 0===i[e[t]]&&(i[e[t]]=Object.keys(i).length),n.push(i[e[t]]),o===r-1)for(;n.length%4!=0;)n.push(0)}))})),{array:new Float32Array(n),count:Object.keys(i).length}},fh=function(t){for(var e=[],n=t.length,r=t[0].length,i=function(r){t.forEach((function(t,i){if(e.push(t[r]),i===n-1)for(;e.length%4!=0;)e.push(0)}))},o=0;o<r;o++)i(o);return new Float32Array(e)};function lh(t){return(lh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function hh(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function dh(t,e){return(dh=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ph(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=vh(t);if(e){var i=vh(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return gh(this,n)}}function gh(t,e){return!e||"object"!==lh(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t):e}function vh(t){return(vh=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var yh=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},mh=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&dh(t,e)}(o,t);var e,n,r,i=ph(o);function o(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(e=i.call(this)).maxIteration=1e3,e.gravity=10,e.speed=1,e.clustering=!1,e.clusterField="cluster",e.clusterGravity=10,e.workerEnabled=!1,e.nodes=[],e.edges=[],e.width=300,e.height=300,e.nodeMap={},e.nodeIdxMap={},e.updateCfg(t),e}return e=o,(n=[{key:"getDefaultCfg",value:function(){return{maxIteration:1e3,gravity:10,speed:1,clustering:!1,clusterGravity:10}}},{key:"execute",value:function(){return yh(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e,n,r,i,o,a=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((n=(e=this).nodes)&&0!==n.length){t.next=5;break}return e.onLayoutEnd&&e.onLayoutEnd(),t.abrupt("return");case 5:if(e.width||"undefined"==typeof window||(e.width=window.innerWidth),e.height||"undefined"==typeof window||(e.height=window.innerHeight),e.center||(e.center=[e.width/2,e.height/2]),r=e.center,1!==n.length){t.next=14;break}return n[0].x=r[0],n[0].y=r[1],e.onLayoutEnd&&e.onLayoutEnd(),t.abrupt("return");case 14:return i={},o={},n.forEach((function(t,e){Un(t.x)||(t.x=Math.random()*a.width),Un(t.y)||(t.y=Math.random()*a.height),i[t.id]=t,o[t.id]=e})),e.nodeMap=i,e.nodeIdxMap=o,t.next=21,e.run();case 21:case"end":return t.stop()}}),t,this)})))}},{key:"executeWithWorker",value:function(t,e){return yh(this,void 0,void 0,regeneratorRuntime.mark((function n(){var r,i,o,a,s,u=this;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=(r=this).nodes,o=r.center,i&&0!==i.length){n.next=5;break}return n.abrupt("return");case 5:if(1!==i.length){n.next=9;break}return i[0].x=o[0],i[0].y=o[1],n.abrupt("return");case 9:return a={},s={},i.forEach((function(t,e){Un(t.x)||(t.x=Math.random()*u.width),Un(t.y)||(t.y=Math.random()*u.height),a[t.id]=t,s[t.id]=e})),r.nodeMap=a,r.nodeIdxMap=s,n.next=16,r.run(t,e);case 16:case"end":return n.stop()}}),n,this)})))}},{key:"run",value:function(t,e){return yh(this,void 0,void 0,regeneratorRuntime.mark((function n(){var r,i,o,a,s,u,c,f,l,h,d,p,g,v,y,m,b,x,w,S,E,_,O,k,M,A,T=this;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:for(i=(r=this).nodes,o=r.edges,a=r.maxIteration,s=r.center,u=r.height*r.width,c=Math.sqrt(u)/10,f=u/(i.length+1),l=Math.sqrt(f),h=r.speed,d=r.clustering,p=ch([r.clusterField],i),g=p.array,v=p.count,y=i.length,m=sh(i,o),b=m.maxEdgePerVetex,x=m.array,w=r.workerEnabled,S=w?oh.create({canvas:t,engineOptions:{supportCompute:!0}}):oh.create({engineOptions:{supportCompute:!0}}),E=r.onLayoutEnd,_=[],O=0;O<v;O++)_.push(0,0,0,0);return k=S.createKernel(\'{"shaders":{"WGSL":"import \\\\"GLSL.std.450\\\\" as std;\\\\n\\\\n\\\\n# var gWebGPUDebug : bool = false;\\\\n# var gWebGPUDebugOutput : vec4<f32> = vec4<f32>(0.0);\\\\n\\\\n[[builtin global_invocation_id]] var<in> globalInvocationID : vec3<u32>;\\\\n# [[builtin work_group_size]] var<in> workGroupSize : vec3<u32>;\\\\n# [[builtin work_group_id]] var<in> workGroupID : vec3<u32>;\\\\n[[builtin local_invocation_id]] var<in> localInvocationID : vec3<u32>;\\\\n# [[builtin num_work_groups]] var<in> numWorkGroups : vec3<u32>;\\\\n[[builtin local_invocation_idx]] var<in> localInvocationIndex : u32;\\\\n\\\\ntype GWebGPUParams = [[block]] struct {\\\\n [[offset 0]] u_K : f32;\\\\n [[offset 4]] u_K2 : f32;\\\\n [[offset 8]] u_Center : vec2<f32>;\\\\n [[offset 16]] u_Gravity : f32;\\\\n [[offset 20]] u_ClusterGravity : f32;\\\\n [[offset 24]] u_Speed : f32;\\\\n [[offset 28]] u_MaxDisplace : f32;\\\\n [[offset 32]] u_Clustering : f32;\\\\n};\\\\n[[binding 0, set 0]] var<uniform> gWebGPUUniformParams : GWebGPUParams;\\\\ntype GWebGPUBuffer0 = [[block]] struct {\\\\n [[offset 0]] u_Data : [[stride 16]] array<vec4<f32>>;\\\\n};\\\\n[[binding 1, set 0]] var<storage_buffer> gWebGPUBuffer0 : GWebGPUBuffer0;\\\\ntype GWebGPUBuffer1 = [[block]] struct {\\\\n [[offset 0]] u_AttributeArray : [[stride 16]] array<vec4<f32>>;\\\\n};\\\\n[[binding 2, set 0]] var<storage_buffer> gWebGPUBuffer1 : GWebGPUBuffer1;\\\\ntype GWebGPUBuffer2 = [[block]] struct {\\\\n [[offset 0]] u_ClusterCenters : [[stride 16]] array<vec4<f32>>;\\\\n};\\\\n[[binding 3, set 0]] var<storage_buffer> gWebGPUBuffer2 : GWebGPUBuffer2;\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\nfn calcRepulsive(i : i32, currentNode : vec4<f32>) -> vec2<f32> {var dx : f32 = 0.0;\\\\nvar dy : f32 = 0.0;\\\\nfor (var j : i32 = 0; j < __DefineValuePlaceholder__VERTEX_COUNT; j = j + 1) {if (i != j) {var nextNode : vec4<f32> = gWebGPUBuffer0.u_Data[j];\\\\nvar xDist : f32 = currentNode.x - nextNode.x;\\\\nvar yDist : f32 = currentNode.y - nextNode.y;\\\\nvar dist : f32 = ((xDist * xDist) + (yDist * yDist)) + 0.01;\\\\nvar param : f32 = gWebGPUUniformParams.u_K2 / dist;\\\\nif (dist > 0.0) {dx = dx + param * xDist;\\\\ndy = dy + param * yDist;\\\\nif ((xDist == 0.0) && (yDist == 0.0)) {var sign : f32 = select(1.0, -1.0, i < j);\\\\ndx = dx + param * std::sign;\\\\ndy = dy + param * std::sign;}}}}\\\\nreturn vec2<f32>(dx, dy);}\\\\nfn calcGravity(currentNode : vec4<f32>, nodeAttributes : vec4<f32>) -> vec2<f32> {var dx : f32 = 0.0;\\\\nvar dy : f32 = 0.0;\\\\nvar vx : f32 = currentNode.x - gWebGPUUniformParams.u_Center.x;\\\\nvar vy : f32 = currentNode.y - gWebGPUUniformParams.u_Center.y;\\\\nvar gf : f32 = (0.01 * gWebGPUUniformParams.u_K) * gWebGPUUniformParams.u_Gravity;\\\\ndx = gf * vx;\\\\ndy = gf * vy;\\\\nif (gWebGPUUniformParams.u_Clustering == 1.0) {var clusterIdx : i32 = i32(nodeAttributes.x);\\\\nvar center : vec4<f32> = gWebGPUBuffer2.u_ClusterCenters[clusterIdx];\\\\nvar cvx : f32 = currentNode.x - center.x;\\\\nvar cvy : f32 = currentNode.y - center.y;\\\\nvar dist : f32 = std::sqrt((cvx * cvx) + (cvy * cvy)) + 0.01;\\\\nvar parma : f32 = (gWebGPUUniformParams.u_K * gWebGPUUniformParams.u_ClusterGravity) / dist;\\\\ndx = dx + parma * cvx;\\\\ndy = dy + parma * cvy;}\\\\nreturn vec2<f32>(dx, dy);}\\\\nfn calcAttractive(i : i32, currentNode : vec4<f32>) -> vec2<f32> {var dx : f32 = 0.0;\\\\nvar dy : f32 = 0.0;\\\\nvar arr_offset : i32 = i32(std::floor(currentNode.z + 0.5));\\\\nvar length : i32 = i32(std::floor(currentNode.w + 0.5));\\\\nvar node_buffer : vec4<f32>;\\\\nfor (var p : i32 = 0; p < __DefineValuePlaceholder__MAX_EDGE_PER_VERTEX; p = p + 1) {if (p >= length) {break;}\\\\nvar arr_idx : i32 = arr_offset + i32(p);\\\\nvar buf_offset : i32 = arr_idx - ((arr_idx / 4) * 4);\\\\nif ((p == 0) || (buf_offset == 0)) {node_buffer = gWebGPUBuffer0.u_Data[i32(arr_idx / 4)];}\\\\nvar float_j : f32 = select(node_buffer.x, select(node_buffer.y, select(node_buffer.z, node_buffer.w, buf_offset == 2), buf_offset == 1), buf_offset == 0);\\\\nvar nextNode : vec4<f32> = gWebGPUBuffer0.u_Data[i32(float_j)];\\\\nvar xDist : f32 = currentNode.x - nextNode.x;\\\\nvar yDist : f32 = currentNode.y - nextNode.y;\\\\nvar dist : f32 = std::sqrt((xDist * xDist) + (yDist * yDist)) + 0.01;\\\\nvar attractiveF : f32 = dist / gWebGPUUniformParams.u_K;\\\\nif (dist > 0.0) {dx = dx - xDist * attractiveF;\\\\ndy = dy - yDist * attractiveF;\\\\nif ((xDist == 0.0) && (yDist == 0.0)) {var sign : f32 = select(1.0, -1.0, i < i32(float_j));\\\\ndx = dx - std::sign * attractiveF;\\\\ndy = dy - std::sign * attractiveF;}}}\\\\nreturn vec2<f32>(dx, dy);}\\\\nfn main() -> void {var i : i32 = globalInvocationID.x;\\\\nvar currentNode : vec4<f32> = gWebGPUBuffer0.u_Data[i];\\\\nvar dx : f32 = 0.0;\\\\nvar dy : f32 = 0.0;\\\\nif (i >= __DefineValuePlaceholder__VERTEX_COUNT) {gWebGPUBuffer0.u_Data[i] = currentNode;\\\\nreturn ;}\\\\nvar repulsive : vec2<f32> = calcRepulsive(i, currentNode);\\\\ndx = dx + repulsive.x;\\\\ndy = dy + repulsive.y;\\\\nvar attractive : vec2<f32> = calcAttractive(i, currentNode);\\\\ndx = dx + attractive.x;\\\\ndy = dy + attractive.y;\\\\nvar nodeAttributes : vec4<f32> = gWebGPUBuffer1.u_AttributeArray[i];\\\\nvar gravity : vec2<f32> = calcGravity(currentNode, nodeAttributes);\\\\ndx = dx - gravity.x;\\\\ndy = dy - gravity.y;\\\\ndx = dx * gWebGPUUniformParams.u_Speed;\\\\ndy = dy * gWebGPUUniformParams.u_Speed;\\\\nvar distLength : f32 = std::sqrt((dx * dx) + (dy * dy));\\\\nif (distLength > 0.0) {var limitedDist : f32 = std::min(gWebGPUUniformParams.u_MaxDisplace * gWebGPUUniformParams.u_Speed, distLength);\\\\ngWebGPUBuffer0.u_Data[i] = vec4<f32>(currentNode.x + ((dx / distLength) * limitedDist), currentNode.y + ((dy / distLength) * limitedDist), currentNode.z, currentNode.w);}\\\\nreturn;}\\\\n\\\\nentry_point compute as \\\\"main\\\\" = main;\\\\n","GLSL450":"\\\\n\\\\n\\\\nbool gWebGPUDebug = false;\\\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\\\n\\\\nivec3 globalInvocationID = ivec3(gl_GlobalInvocationID);\\\\nivec3 workGroupSize = ivec3(1,1,1);\\\\nivec3 workGroupID = ivec3(gl_WorkGroupID);\\\\nivec3 localInvocationID = ivec3(gl_LocalInvocationID);\\\\nivec3 numWorkGroups = ivec3(gl_NumWorkGroups);\\\\nint localInvocationIndex = int(gl_LocalInvocationIndex);\\\\n\\\\nlayout(std140, set = 0, binding = 0) uniform GWebGPUParams {\\\\n float u_K;\\\\n float u_K2;\\\\n vec2 u_Center;\\\\n float u_Gravity;\\\\n float u_ClusterGravity;\\\\n float u_Speed;\\\\n float u_MaxDisplace;\\\\n float u_Clustering;\\\\n} gWebGPUUniformParams;\\\\nlayout(std430, set = 0, binding = 1) buffer GWebGPUBuffer0 {\\\\n vec4 u_Data[];\\\\n} gWebGPUBuffer0;\\\\n\\\\nlayout(std430, set = 0, binding = 2) buffer readonly GWebGPUBuffer1 {\\\\n vec4 u_AttributeArray[];\\\\n} gWebGPUBuffer1;\\\\n\\\\nlayout(std430, set = 0, binding = 3) buffer readonly GWebGPUBuffer2 {\\\\n vec4 u_ClusterCenters[];\\\\n} gWebGPUBuffer2;\\\\n\\\\n\\\\n\\\\n#define MAX_EDGE_PER_VERTEX __DefineValuePlaceholder__MAX_EDGE_PER_VERTEX\\\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\\\nlayout (\\\\n local_size_x = 1,\\\\n local_size_y = 1,\\\\n local_size_z = 1\\\\n) in;\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\nvec2 calcRepulsive(int i, vec4 currentNode) {float dx = 0.0;\\\\nfloat dy = 0.0;\\\\nfor (int j = 0; j < VERTEX_COUNT; j++) {if (i != j) {vec4 nextNode = gWebGPUBuffer0.u_Data[j];\\\\nfloat xDist = currentNode.x - nextNode.x;\\\\nfloat yDist = currentNode.y - nextNode.y;\\\\nfloat dist = ((xDist * xDist) + (yDist * yDist)) + 0.01;\\\\nfloat param = gWebGPUUniformParams.u_K2 / dist;\\\\nif (dist > 0.0) {dx += param * xDist;\\\\ndy += param * yDist;\\\\nif ((xDist == 0.0) && (yDist == 0.0)) {float sign = (i < j) ? (1.0) : (-1.0);\\\\ndx += param * sign;\\\\ndy += param * sign;}}}}\\\\nreturn vec2(dx, dy);}\\\\nvec2 calcGravity(vec4 currentNode, vec4 nodeAttributes) {float dx = 0.0;\\\\nfloat dy = 0.0;\\\\nfloat vx = currentNode.x - gWebGPUUniformParams.u_Center.x;\\\\nfloat vy = currentNode.y - gWebGPUUniformParams.u_Center.y;\\\\nfloat gf = (0.01 * gWebGPUUniformParams.u_K) * gWebGPUUniformParams.u_Gravity;\\\\ndx = gf * vx;\\\\ndy = gf * vy;\\\\nif (gWebGPUUniformParams.u_Clustering == 1.0) {int clusterIdx = int(nodeAttributes.x);\\\\nvec4 center = gWebGPUBuffer2.u_ClusterCenters[clusterIdx];\\\\nfloat cvx = currentNode.x - center.x;\\\\nfloat cvy = currentNode.y - center.y;\\\\nfloat dist = sqrt((cvx * cvx) + (cvy * cvy)) + 0.01;\\\\nfloat parma = (gWebGPUUniformParams.u_K * gWebGPUUniformParams.u_ClusterGravity) / dist;\\\\ndx += parma * cvx;\\\\ndy += parma * cvy;}\\\\nreturn vec2(dx, dy);}\\\\nvec2 calcAttractive(int i, vec4 currentNode) {float dx = 0.0;\\\\nfloat dy = 0.0;\\\\nint arr_offset = int(floor(currentNode.z + 0.5));\\\\nint length = int(floor(currentNode.w + 0.5));\\\\nvec4 node_buffer;\\\\nfor (int p = 0; p < MAX_EDGE_PER_VERTEX; p++) {if (p >= length) {break;}\\\\nint arr_idx = arr_offset + int(p);\\\\nint buf_offset = arr_idx - ((arr_idx / 4) * 4);\\\\nif ((p == 0) || (buf_offset == 0)) {node_buffer = gWebGPUBuffer0.u_Data[int(arr_idx / 4)];}\\\\nfloat float_j = (buf_offset == 0) ? (node_buffer.x) : ((buf_offset == 1) ? (node_buffer.y) : ((buf_offset == 2) ? (node_buffer.z) : (node_buffer.w)));\\\\nvec4 nextNode = gWebGPUBuffer0.u_Data[int(float_j)];\\\\nfloat xDist = currentNode.x - nextNode.x;\\\\nfloat yDist = currentNode.y - nextNode.y;\\\\nfloat dist = sqrt((xDist * xDist) + (yDist * yDist)) + 0.01;\\\\nfloat attractiveF = dist / gWebGPUUniformParams.u_K;\\\\nif (dist > 0.0) {dx -= xDist * attractiveF;\\\\ndy -= yDist * attractiveF;\\\\nif ((xDist == 0.0) && (yDist == 0.0)) {float sign = (i < int(float_j)) ? (1.0) : (-1.0);\\\\ndx -= sign * attractiveF;\\\\ndy -= sign * attractiveF;}}}\\\\nreturn vec2(dx, dy);}\\\\nvoid main() {int i = globalInvocationID.x;\\\\nvec4 currentNode = gWebGPUBuffer0.u_Data[i];\\\\nfloat dx = 0.0;\\\\nfloat dy = 0.0;\\\\nif (i >= VERTEX_COUNT) {gWebGPUBuffer0.u_Data[i] = currentNode;\\\\nreturn ;}\\\\nvec2 repulsive = calcRepulsive(i, currentNode);\\\\ndx += repulsive.x;\\\\ndy += repulsive.y;\\\\nvec2 attractive = calcAttractive(i, currentNode);\\\\ndx += attractive.x;\\\\ndy += attractive.y;\\\\nvec4 nodeAttributes = gWebGPUBuffer1.u_AttributeArray[i];\\\\nvec2 gravity = calcGravity(currentNode, nodeAttributes);\\\\ndx -= gravity.x;\\\\ndy -= gravity.y;\\\\ndx *= gWebGPUUniformParams.u_Speed;\\\\ndy *= gWebGPUUniformParams.u_Speed;\\\\nfloat distLength = sqrt((dx * dx) + (dy * dy));\\\\nif (distLength > 0.0) {float limitedDist = min(gWebGPUUniformParams.u_MaxDisplace * gWebGPUUniformParams.u_Speed, distLength);\\\\ngWebGPUBuffer0.u_Data[i] = vec4(currentNode.x + ((dx / distLength) * limitedDist), currentNode.y + ((dy / distLength) * limitedDist), currentNode.z, currentNode.w);}}\\\\n","GLSL100":"\\\\n\\\\nfloat epsilon = 0.00001;\\\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\\\n vec2 normAddr2D = float(address1D) * conv_const;\\\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\\\n}\\\\n\\\\nvoid barrier() {}\\\\n \\\\n\\\\nuniform vec2 u_OutputTextureSize;\\\\nuniform int u_OutputTexelCount;\\\\nvarying vec2 v_TexCoord;\\\\n\\\\nbool gWebGPUDebug = false;\\\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\\\n\\\\n#define MAX_EDGE_PER_VERTEX __DefineValuePlaceholder__MAX_EDGE_PER_VERTEX\\\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\\\n\\\\nuniform sampler2D u_Data;\\\\nuniform vec2 u_DataSize;\\\\nvec4 getDatau_Data(vec2 address2D) {\\\\n return vec4(texture2D(u_Data, address2D).rgba);\\\\n}\\\\nvec4 getDatau_Data(float address1D) {\\\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\\\n}\\\\nvec4 getDatau_Data(int address1D) {\\\\n return getDatau_Data(float(address1D));\\\\n}\\\\nuniform float u_K;\\\\nuniform float u_K2;\\\\nuniform vec2 u_Center;\\\\nuniform float u_Gravity;\\\\nuniform float u_ClusterGravity;\\\\nuniform float u_Speed;\\\\nuniform float u_MaxDisplace;\\\\nuniform float u_Clustering;\\\\nuniform sampler2D u_AttributeArray;\\\\nuniform vec2 u_AttributeArraySize;\\\\nvec4 getDatau_AttributeArray(vec2 address2D) {\\\\n return vec4(texture2D(u_AttributeArray, address2D).rgba);\\\\n}\\\\nvec4 getDatau_AttributeArray(float address1D) {\\\\n return getDatau_AttributeArray(addrTranslation_1Dto2D(address1D, u_AttributeArraySize));\\\\n}\\\\nvec4 getDatau_AttributeArray(int address1D) {\\\\n return getDatau_AttributeArray(float(address1D));\\\\n}\\\\nuniform sampler2D u_ClusterCenters;\\\\nuniform vec2 u_ClusterCentersSize;\\\\nvec4 getDatau_ClusterCenters(vec2 address2D) {\\\\n return vec4(texture2D(u_ClusterCenters, address2D).rgba);\\\\n}\\\\nvec4 getDatau_ClusterCenters(float address1D) {\\\\n return getDatau_ClusterCenters(addrTranslation_1Dto2D(address1D, u_ClusterCentersSize));\\\\n}\\\\nvec4 getDatau_ClusterCenters(int address1D) {\\\\n return getDatau_ClusterCenters(float(address1D));\\\\n}\\\\nvec2 calcRepulsive(int i, vec4 currentNode) {\\\\nivec3 workGroupSize = ivec3(1, 1, 1);\\\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\\\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\\\nfloat dx = 0.0;\\\\nfloat dy = 0.0;\\\\nfor (int j = 0; j < VERTEX_COUNT; j++) {if (i != j) {vec4 nextNode = getDatau_Data(j);\\\\nfloat xDist = currentNode.x - nextNode.x;\\\\nfloat yDist = currentNode.y - nextNode.y;\\\\nfloat dist = ((xDist * xDist) + (yDist * yDist)) + 0.01;\\\\nfloat param = u_K2 / dist;\\\\nif (dist > 0.0) {dx += param * xDist;\\\\ndy += param * yDist;\\\\nif ((xDist == 0.0) && (yDist == 0.0)) {float sign = (i < j) ? (1.0) : (-1.0);\\\\ndx += param * sign;\\\\ndy += param * sign;}}}}\\\\nreturn vec2(dx, dy);}\\\\nvec2 calcGravity(vec4 currentNode, vec4 nodeAttributes) {\\\\nivec3 workGroupSize = ivec3(1, 1, 1);\\\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\\\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\\\nfloat dx = 0.0;\\\\nfloat dy = 0.0;\\\\nfloat vx = currentNode.x - u_Center.x;\\\\nfloat vy = currentNode.y - u_Center.y;\\\\nfloat gf = (0.01 * u_K) * u_Gravity;\\\\ndx = gf * vx;\\\\ndy = gf * vy;\\\\nif (u_Clustering == 1.0) {int clusterIdx = int(nodeAttributes.x);\\\\nvec4 center = getDatau_ClusterCenters(clusterIdx);\\\\nfloat cvx = currentNode.x - center.x;\\\\nfloat cvy = currentNode.y - center.y;\\\\nfloat dist = sqrt((cvx * cvx) + (cvy * cvy)) + 0.01;\\\\nfloat parma = (u_K * u_ClusterGravity) / dist;\\\\ndx += parma * cvx;\\\\ndy += parma * cvy;}\\\\nreturn vec2(dx, dy);}\\\\nvec2 calcAttractive(int i, vec4 currentNode) {\\\\nivec3 workGroupSize = ivec3(1, 1, 1);\\\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\\\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\\\nfloat dx = 0.0;\\\\nfloat dy = 0.0;\\\\nint arr_offset = int(floor(currentNode.z + 0.5));\\\\nint length = int(floor(currentNode.w + 0.5));\\\\nvec4 node_buffer;\\\\nfor (int p = 0; p < MAX_EDGE_PER_VERTEX; p++) {if (p >= length) {break;}\\\\nint arr_idx = arr_offset + int(p);\\\\nint buf_offset = arr_idx - ((arr_idx / 4) * 4);\\\\nif ((p == 0) || (buf_offset == 0)) {node_buffer = getDatau_Data(int(arr_idx / 4));}\\\\nfloat float_j = (buf_offset == 0) ? (node_buffer.x) : ((buf_offset == 1) ? (node_buffer.y) : ((buf_offset == 2) ? (node_buffer.z) : (node_buffer.w)));\\\\nvec4 nextNode = getDatau_Data(int(float_j));\\\\nfloat xDist = currentNode.x - nextNode.x;\\\\nfloat yDist = currentNode.y - nextNode.y;\\\\nfloat dist = sqrt((xDist * xDist) + (yDist * yDist)) + 0.01;\\\\nfloat attractiveF = dist / u_K;\\\\nif (dist > 0.0) {dx -= xDist * attractiveF;\\\\ndy -= yDist * attractiveF;\\\\nif ((xDist == 0.0) && (yDist == 0.0)) {float sign = (i < int(float_j)) ? (1.0) : (-1.0);\\\\ndx -= sign * attractiveF;\\\\ndy -= sign * attractiveF;}}}\\\\nreturn vec2(dx, dy);}\\\\nvoid main() {\\\\nivec3 workGroupSize = ivec3(1, 1, 1);\\\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\\\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\\\nint i = globalInvocationID.x;\\\\nvec4 currentNode = getDatau_Data(i);\\\\nfloat dx = 0.0;\\\\nfloat dy = 0.0;\\\\nif (i >= VERTEX_COUNT) {gl_FragColor = vec4(currentNode);\\\\nreturn ;}\\\\nvec2 repulsive = calcRepulsive(i, currentNode);\\\\ndx += repulsive.x;\\\\ndy += repulsive.y;\\\\nvec2 attractive = calcAttractive(i, currentNode);\\\\ndx += attractive.x;\\\\ndy += attractive.y;\\\\nvec4 nodeAttributes = getDatau_AttributeArray(i);\\\\nvec2 gravity = calcGravity(currentNode, nodeAttributes);\\\\ndx -= gravity.x;\\\\ndy -= gravity.y;\\\\ndx *= u_Speed;\\\\ndy *= u_Speed;\\\\nfloat distLength = sqrt((dx * dx) + (dy * dy));\\\\nif (distLength > 0.0) {float limitedDist = min(u_MaxDisplace * u_Speed, distLength);\\\\ngl_FragColor = vec4(vec4(currentNode.x + ((dx / distLength) * limitedDist), currentNode.y + ((dy / distLength) * limitedDist), currentNode.z, currentNode.w));}if (gWebGPUDebug) {\\\\n gl_FragColor = gWebGPUDebugOutput;\\\\n}}\\\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"MAX_EDGE_PER_VERTEX","type":"Float","runtime":true},{"name":"VERTEX_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]},{"name":"u_K","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_K2","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Center","type":"vec2<f32>","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Gravity","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterGravity","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Speed","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_MaxDisplace","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Clustering","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AttributeArray","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterCenters","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_Data","size":[1,1],"length":1},"needPingpong":true}}\').setDispatch([y,1,1]).setBinding({u_Data:x,u_K:l,u_K2:f,u_Gravity:r.gravity,u_ClusterGravity:r.clusterGravity||r.gravity||1,u_Speed:h,u_MaxDisplace:c,u_Clustering:d?1:0,u_Center:s,u_AttributeArray:g,u_ClusterCenters:_,MAX_EDGE_PER_VERTEX:b,VERTEX_COUNT:y}),d&&(M=S.createKernel(\'{"shaders":{"WGSL":"import \\\\"GLSL.std.450\\\\" as std;\\\\n\\\\n\\\\n# var gWebGPUDebug : bool = false;\\\\n# var gWebGPUDebugOutput : vec4<f32> = vec4<f32>(0.0);\\\\n\\\\n[[builtin global_invocation_id]] var<in> globalInvocationID : vec3<u32>;\\\\n# [[builtin work_group_size]] var<in> workGroupSize : vec3<u32>;\\\\n# [[builtin work_group_id]] var<in> workGroupID : vec3<u32>;\\\\n[[builtin local_invocation_id]] var<in> localInvocationID : vec3<u32>;\\\\n# [[builtin num_work_groups]] var<in> numWorkGroups : vec3<u32>;\\\\n[[builtin local_invocation_idx]] var<in> localInvocationIndex : u32;\\\\n\\\\n\\\\ntype GWebGPUBuffer0 = [[block]] struct {\\\\n [[offset 0]] u_Data : [[stride 16]] array<vec4<f32>>;\\\\n};\\\\n[[binding 0, set 0]] var<storage_buffer> gWebGPUBuffer0 : GWebGPUBuffer0;\\\\ntype GWebGPUBuffer1 = [[block]] struct {\\\\n [[offset 0]] u_NodeAttributes : [[stride 16]] array<vec4<f32>>;\\\\n};\\\\n[[binding 1, set 0]] var<storage_buffer> gWebGPUBuffer1 : GWebGPUBuffer1;\\\\ntype GWebGPUBuffer2 = [[block]] struct {\\\\n [[offset 0]] u_ClusterCenters : [[stride 16]] array<vec4<f32>>;\\\\n};\\\\n[[binding 2, set 0]] var<storage_buffer> gWebGPUBuffer2 : GWebGPUBuffer2;\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\nfn main() -> void {var i : i32 = globalInvocationID.x;\\\\nvar center : vec4<f32> = gWebGPUBuffer2.u_ClusterCenters[i];\\\\nvar sumx : f32 = 0.0;\\\\nvar sumy : f32 = 0.0;\\\\nvar count : f32 = 0.0;\\\\nfor (var j : i32 = 0; j < __DefineValuePlaceholder__VERTEX_COUNT; j = j + 1) {var attributes : vec4<f32> = gWebGPUBuffer1.u_NodeAttributes[j];\\\\nvar clusterIdx : i32 = i32(attributes.x);\\\\nvar vertex : vec4<f32> = gWebGPUBuffer0.u_Data[j];\\\\nif (clusterIdx == i) {sumx = sumx + vertex.x;\\\\nsumy = sumy + vertex.y;\\\\ncount = count + 1.0;}}\\\\ngWebGPUBuffer2.u_ClusterCenters[i] = vec4<f32>(sumx / count, sumy / count, count, i);\\\\nreturn;}\\\\n\\\\nentry_point compute as \\\\"main\\\\" = main;\\\\n","GLSL450":"\\\\n\\\\n\\\\nbool gWebGPUDebug = false;\\\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\\\n\\\\nivec3 globalInvocationID = ivec3(gl_GlobalInvocationID);\\\\nivec3 workGroupSize = ivec3(1,1,1);\\\\nivec3 workGroupID = ivec3(gl_WorkGroupID);\\\\nivec3 localInvocationID = ivec3(gl_LocalInvocationID);\\\\nivec3 numWorkGroups = ivec3(gl_NumWorkGroups);\\\\nint localInvocationIndex = int(gl_LocalInvocationIndex);\\\\n\\\\n\\\\nlayout(std430, set = 0, binding = 0) buffer readonly GWebGPUBuffer0 {\\\\n vec4 u_Data[];\\\\n} gWebGPUBuffer0;\\\\n\\\\nlayout(std430, set = 0, binding = 1) buffer readonly GWebGPUBuffer1 {\\\\n vec4 u_NodeAttributes[];\\\\n} gWebGPUBuffer1;\\\\n\\\\nlayout(std430, set = 0, binding = 2) buffer GWebGPUBuffer2 {\\\\n vec4 u_ClusterCenters[];\\\\n} gWebGPUBuffer2;\\\\n\\\\n\\\\n\\\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\\\n#define CLUSTER_COUNT __DefineValuePlaceholder__CLUSTER_COUNT\\\\nlayout (\\\\n local_size_x = 1,\\\\n local_size_y = 1,\\\\n local_size_z = 1\\\\n) in;\\\\n\\\\n\\\\n\\\\nvoid main() {int i = globalInvocationID.x;\\\\nvec4 center = gWebGPUBuffer2.u_ClusterCenters[i];\\\\nfloat sumx = 0.0;\\\\nfloat sumy = 0.0;\\\\nfloat count = 0.0;\\\\nfor (int j = 0; j < VERTEX_COUNT; j++) {vec4 attributes = gWebGPUBuffer1.u_NodeAttributes[j];\\\\nint clusterIdx = int(attributes.x);\\\\nvec4 vertex = gWebGPUBuffer0.u_Data[j];\\\\nif (clusterIdx == i) {sumx += vertex.x;\\\\nsumy += vertex.y;\\\\ncount += 1.0;}}\\\\ngWebGPUBuffer2.u_ClusterCenters[i] = vec4(sumx / count, sumy / count, count, i);}\\\\n","GLSL100":"\\\\n\\\\nfloat epsilon = 0.00001;\\\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\\\n vec2 normAddr2D = float(address1D) * conv_const;\\\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\\\n}\\\\n\\\\nvoid barrier() {}\\\\n \\\\n\\\\nuniform vec2 u_OutputTextureSize;\\\\nuniform int u_OutputTexelCount;\\\\nvarying vec2 v_TexCoord;\\\\n\\\\nbool gWebGPUDebug = false;\\\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\\\n\\\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\\\n#define CLUSTER_COUNT __DefineValuePlaceholder__CLUSTER_COUNT\\\\n\\\\nuniform sampler2D u_Data;\\\\nuniform vec2 u_DataSize;\\\\nvec4 getDatau_Data(vec2 address2D) {\\\\n return vec4(texture2D(u_Data, address2D).rgba);\\\\n}\\\\nvec4 getDatau_Data(float address1D) {\\\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\\\n}\\\\nvec4 getDatau_Data(int address1D) {\\\\n return getDatau_Data(float(address1D));\\\\n}\\\\nuniform sampler2D u_NodeAttributes;\\\\nuniform vec2 u_NodeAttributesSize;\\\\nvec4 getDatau_NodeAttributes(vec2 address2D) {\\\\n return vec4(texture2D(u_NodeAttributes, address2D).rgba);\\\\n}\\\\nvec4 getDatau_NodeAttributes(float address1D) {\\\\n return getDatau_NodeAttributes(addrTranslation_1Dto2D(address1D, u_NodeAttributesSize));\\\\n}\\\\nvec4 getDatau_NodeAttributes(int address1D) {\\\\n return getDatau_NodeAttributes(float(address1D));\\\\n}\\\\nuniform sampler2D u_ClusterCenters;\\\\nuniform vec2 u_ClusterCentersSize;\\\\nvec4 getDatau_ClusterCenters(vec2 address2D) {\\\\n return vec4(texture2D(u_ClusterCenters, address2D).rgba);\\\\n}\\\\nvec4 getDatau_ClusterCenters(float address1D) {\\\\n return getDatau_ClusterCenters(addrTranslation_1Dto2D(address1D, u_ClusterCentersSize));\\\\n}\\\\nvec4 getDatau_ClusterCenters(int address1D) {\\\\n return getDatau_ClusterCenters(float(address1D));\\\\n}\\\\nvoid main() {\\\\nivec3 workGroupSize = ivec3(1, 1, 1);\\\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\\\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\\\nint i = globalInvocationID.x;\\\\nvec4 center = getDatau_ClusterCenters(i);\\\\nfloat sumx = 0.0;\\\\nfloat sumy = 0.0;\\\\nfloat count = 0.0;\\\\nfor (int j = 0; j < VERTEX_COUNT; j++) {vec4 attributes = getDatau_NodeAttributes(j);\\\\nint clusterIdx = int(attributes.x);\\\\nvec4 vertex = getDatau_Data(j);\\\\nif (clusterIdx == i) {sumx += vertex.x;\\\\nsumy += vertex.y;\\\\ncount += 1.0;}}\\\\ngl_FragColor = vec4(vec4(sumx / count, sumy / count, count, i));if (gWebGPUDebug) {\\\\n gl_FragColor = gWebGPUDebugOutput;\\\\n}}\\\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"VERTEX_COUNT","type":"Float","runtime":true},{"name":"CLUSTER_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributes","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterCenters","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_ClusterCenters","size":[1,1],"length":1},"needPingpong":true}}\').setDispatch([v,1,1]).setBinding({u_Data:x,u_NodeAttributes:g,u_ClusterCenters:_,VERTEX_COUNT:y,CLUSTER_COUNT:v})),A=function(){return yh(T,void 0,void 0,regeneratorRuntime.mark((function n(){var r,o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=0;case 1:if(!(r<a)){n.next=13;break}return n.next=4,k.execute();case 4:if(!d){n.next=9;break}return M.setBinding({u_Data:k}),n.next=8,M.execute();case 8:k.setBinding({u_ClusterCenters:M});case 9:k.setBinding({u_MaxDisplace:c*=.99});case 10:r++,n.next=1;break;case 13:return n.next=15,k.getOutput();case 15:o=n.sent,t?e.postMessage({type:wi,vertexEdgeData:o}):i.forEach((function(t,e){var n=o[4*e],r=o[4*e+1];t.x=n,t.y=r})),E&&E();case 18:case"end":return n.stop()}}),n)})))},n.next=24,A();case 24:case"end":return n.stop()}}),n,this)})))}},{key:"getType",value:function(){return"fruchterman-gpu"}}])&&hh(e.prototype,n),r&&hh(e,r),o}(Qn);function bh(t){return(bh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function xh(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function wh(t,e){return(wh=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Sh(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=_h(t);if(e){var i=_h(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Eh(this,n)}}function Eh(t,e){return!e||"object"!==bh(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t):e}function _h(t){return(_h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Oh=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},kh=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&wh(t,e)}(o,t);var e,n,r,i=Sh(o);function o(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(e=i.call(this)).maxIteration=1e3,e.edgeStrength=200,e.nodeStrength=1e3,e.coulombDisScale=.005,e.damping=.9,e.maxSpeed=1e3,e.minMovement=1,e.interval=.02,e.factor=1,e.linkDistance=1,e.gravity=10,e.workerEnabled=!1,e.nodes=[],e.edges=[],e.width=300,e.height=300,e.nodeMap={},e.nodeIdxMap={},e.updateCfg(t),e}return e=o,(n=[{key:"getDefaultCfg",value:function(){return{maxIteration:2e3,gravity:10,clustering:!1,clusterGravity:10}}},{key:"execute",value:function(){return Oh(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e,n,r,i,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((n=(e=this).nodes)&&0!==n.length){t.next=5;break}return e.onLayoutEnd&&e.onLayoutEnd(),t.abrupt("return");case 5:if(e.width||"undefined"==typeof window||(e.width=window.innerWidth),e.height||"undefined"==typeof window||(e.height=window.innerHeight),e.center||(e.center=[e.width/2,e.height/2]),r=e.center,1!==n.length){t.next=14;break}return n[0].x=r[0],n[0].y=r[1],e.onLayoutEnd&&e.onLayoutEnd(),t.abrupt("return");case 14:return i={},o={},n.forEach((function(t,n){Un(t.x)||(t.x=Math.random()*e.width),Un(t.y)||(t.y=Math.random()*e.height),i[t.id]=t,o[t.id]=n})),e.nodeMap=i,e.nodeIdxMap=o,e.nodeStrength=ah(e.nodeStrength,1),e.edgeStrength=ah(e.edgeStrength,1),t.next=23,e.run();case 23:case"end":return t.stop()}}),t,this)})))}},{key:"executeWithWorker",value:function(t,e){var n=this,r=n.nodes,i=n.center;if(r&&0!==r.length){if(1===r.length)return r[0].x=i[0],void(r[0].y=i[1]);var o={},a={};r.forEach((function(t,e){Un(t.x)||(t.x=Math.random()*n.width),Un(t.y)||(t.y=Math.random()*n.height),o[t.id]=t,a[t.id]=e})),n.nodeMap=o,n.nodeIdxMap=a,n.nodeStrength=ah(n.nodeStrength,1),n.edgeStrength=ah(n.edgeStrength,1),n.run(t,e)}}},{key:"run",value:function(t,e){return Oh(this,void 0,void 0,regeneratorRuntime.mark((function n(){var r,i,o,a,s,u,c,f,l,h,d,p,g,v,y,m,b,x,w,S,E,_,O,k,M,A=this;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:for(i=(r=this).nodes,o=r.edges,a=r.maxIteration,r.width||"undefined"==typeof window||(r.width=window.innerWidth),r.height||"undefined"==typeof window||(r.height=window.innerHeight),s=i.length,r.linkDistance=ah(r.linkDistance),r.edgeStrength=ah(r.edgeStrength),u=uh(i,o,r.linkDistance,r.edgeStrength),c=u.maxEdgePerVetex,f=u.array,r.degrees=Vn(i.length,r.nodeIdxMap,o),l=[],h=[],d=[],p=[],g=[],r.getMass||(r.getMass=function(t){return r.degrees[r.nodeIdxMap[t.id]]||1}),v=r.gravity,y=r.center,i.forEach((function(t,e){l.push(r.getMass(t)),h.push(r.nodeStrength(t)),r.degrees[e]||(r.degrees[e]=0);var n=[y[0],y[1],v];if(r.getCenter){var i=r.getCenter(t,r.degrees[e]);i&&Un(i[0])&&Un(i[1])&&Un(i[2])&&(n=i)}d.push(n[0]),p.push(n[1]),g.push(n[2])})),m=fh([l,r.degrees,h]),b=fh([d,p,g]),x=r.workerEnabled,w=x?oh.create({canvas:t,engineOptions:{supportCompute:!0}}):oh.create({engineOptions:{supportCompute:!0}}),S=r.onLayoutEnd,E=[],f.forEach((function(t){E.push(t)})),_=0;_<4;_++)E.push(0);return O=w.createKernel(\'{"shaders":{"WGSL":"import \\\\"GLSL.std.450\\\\" as std;\\\\n\\\\n\\\\n# var gWebGPUDebug : bool = false;\\\\n# var gWebGPUDebugOutput : vec4<f32> = vec4<f32>(0.0);\\\\n\\\\n[[builtin global_invocation_id]] var<in> globalInvocationID : vec3<u32>;\\\\n# [[builtin work_group_size]] var<in> workGroupSize : vec3<u32>;\\\\n# [[builtin work_group_id]] var<in> workGroupID : vec3<u32>;\\\\n[[builtin local_invocation_id]] var<in> localInvocationID : vec3<u32>;\\\\n# [[builtin num_work_groups]] var<in> numWorkGroups : vec3<u32>;\\\\n[[builtin local_invocation_idx]] var<in> localInvocationIndex : u32;\\\\n\\\\ntype GWebGPUParams = [[block]] struct {\\\\n [[offset 0]] u_damping : f32;\\\\n [[offset 4]] u_maxSpeed : f32;\\\\n [[offset 8]] u_minMovement : f32;\\\\n \\\\n [[offset 12]] u_coulombDisScale : f32;\\\\n [[offset 16]] u_factor : f32;\\\\n \\\\n \\\\n [[offset 20]] u_interval : f32;\\\\n};\\\\n[[binding 0, set 0]] var<uniform> gWebGPUUniformParams : GWebGPUParams;\\\\ntype GWebGPUBuffer0 = [[block]] struct {\\\\n [[offset 0]] u_Data : [[stride 16]] array<vec4<f32>>;\\\\n};\\\\n[[binding 1, set 0]] var<storage_buffer> gWebGPUBuffer0 : GWebGPUBuffer0;\\\\ntype GWebGPUBuffer1 = [[block]] struct {\\\\n [[offset 0]] u_AveMovement : [[stride 16]] array<vec4<f32>>;\\\\n};\\\\n[[binding 2, set 0]] var<storage_buffer> gWebGPUBuffer1 : GWebGPUBuffer1;\\\\ntype GWebGPUBuffer2 = [[block]] struct {\\\\n [[offset 0]] u_NodeAttributeArray1 : [[stride 16]] array<vec4<f32>>;\\\\n};\\\\n[[binding 3, set 0]] var<storage_buffer> gWebGPUBuffer2 : GWebGPUBuffer2;\\\\ntype GWebGPUBuffer3 = [[block]] struct {\\\\n [[offset 0]] u_NodeAttributeArray2 : [[stride 16]] array<vec4<f32>>;\\\\n};\\\\n[[binding 4, set 0]] var<storage_buffer> gWebGPUBuffer3 : GWebGPUBuffer3;\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\nfn unpack_float(packedValue : f32) -> vec2<i32> {var packedIntValue : i32 = i32(packedValue);\\\\nvar v0 : i32 = packedIntValue / 1048576;\\\\nreturn vec2<i32>(v0, packedIntValue - (v0 * 1048576));}\\\\nfn calcRepulsive(i : i32, currentNode : vec4<f32>) -> vec2<f32> {var ax : f32 = 0.0;\\\\nvar ay : f32 = 0.0;\\\\nfor (var j : i32 = 0; j < __DefineValuePlaceholder__VERTEX_COUNT; j = j + 1) {if (i != j) {var nextNode : vec4<f32> = gWebGPUBuffer0.u_Data[j];\\\\nvar vx : f32 = currentNode.x - nextNode.x;\\\\nvar vy : f32 = currentNode.y - nextNode.y;\\\\nvar dist : f32 = std::sqrt((vx * vx) + (vy * vy)) + 0.01;\\\\nvar n_dist : f32 = dist * gWebGPUUniformParams.u_coulombDisScale;\\\\nvar direx : f32 = vx / dist;\\\\nvar direy : f32 = vy / dist;\\\\nvar attributesi : vec4<f32> = gWebGPUBuffer2.u_NodeAttributeArray1[i];\\\\nvar attributesj : vec4<f32> = gWebGPUBuffer2.u_NodeAttributeArray1[j];\\\\nvar massi : f32 = attributesi.x;\\\\nvar nodeStrengthi : f32 = attributesi.z;\\\\nvar nodeStrengthj : f32 = attributesj.z;\\\\nvar nodeStrength : f32 = (nodeStrengthi + nodeStrengthj) / 2.0;\\\\nvar param : f32 = (1000.0 * gWebGPUUniformParams.u_factor) / (n_dist * n_dist);\\\\nax = ax + direx * param;\\\\nay = ay + direy * param;}}\\\\nreturn vec2<f32>(ax, ay);}\\\\nfn calcGravity(i : i32, currentNode : vec4<f32>, attributes2 : vec4<f32>) -> vec2<f32> {var vx : f32 = currentNode.x - attributes2.x;\\\\nvar vy : f32 = currentNode.y - attributes2.y;\\\\nvar ax : f32 = vx * attributes2.w;\\\\nvar ay : f32 = vy * attributes2.w;\\\\nreturn vec2<f32>(ax, ay);}\\\\nfn calcAttractive(i : i32, currentNode : vec4<f32>, attributes1 : vec4<f32>) -> vec2<f32> {var mass : f32 = attributes1.x;\\\\nvar ax : f32 = 0.0;\\\\nvar ay : f32 = 0.0;\\\\nvar compressed : vec2<i32> = unpack_float(currentNode.z);\\\\nvar length : i32 = compressed.x;\\\\nvar arr_offset : i32 = compressed.y;\\\\nvar node_buffer : vec4<f32>;\\\\nfor (var p : i32 = 0; p < __DefineValuePlaceholder__MAX_EDGE_PER_VERTEX; p = p + 1) {if (p >= length) {break;}\\\\nvar arr_idx : i32 = arr_offset + (4 * p);\\\\nvar buf_offset : i32 = arr_idx - ((arr_idx / 4) * 4);\\\\nif ((p == 0) || (buf_offset == 0)) {node_buffer = gWebGPUBuffer0.u_Data[i32(arr_idx / 4)];}\\\\nvar float_j : f32 = node_buffer.x;\\\\nvar nextNode : vec4<f32> = gWebGPUBuffer0.u_Data[i32(float_j)];\\\\nvar vx : f32 = nextNode.x - currentNode.x;\\\\nvar vy : f32 = nextNode.y - currentNode.y;\\\\nvar dist : f32 = std::sqrt((vx * vx) + (vy * vy)) + 0.01;\\\\nvar direx : f32 = vx / dist;\\\\nvar direy : f32 = vy / dist;\\\\nvar edgeLength : f32 = node_buffer.y;\\\\nvar edgeStrength : f32 = node_buffer.z;\\\\nvar diff : f32 = edgeLength - dist;\\\\nvar param : f32 = (diff * edgeStrength) / mass;\\\\nax = ax - direx * param;\\\\nay = ay - direy * param;}\\\\nreturn vec2<f32>(ax, ay);}\\\\nfn main() -> void {var i : i32 = globalInvocationID.x;\\\\nvar currentNode : vec4<f32> = gWebGPUBuffer0.u_Data[i];\\\\nvar movement : vec4<f32> = gWebGPUBuffer1.u_AveMovement[0];\\\\nvar ax : f32 = 0.0;\\\\nvar ay : f32 = 0.0;\\\\nif ((i >= __DefineValuePlaceholder__VERTEX_COUNT) || (movement.x < gWebGPUUniformParams.u_minMovement)) {gWebGPUBuffer0.u_Data[i] = currentNode;\\\\nreturn ;}\\\\nvar nodeAttributes1 : vec4<f32> = gWebGPUBuffer2.u_NodeAttributeArray1[i];\\\\nvar nodeAttributes2 : vec4<f32> = gWebGPUBuffer3.u_NodeAttributeArray2[i];\\\\nvar repulsive : vec2<f32> = calcRepulsive(i, currentNode);\\\\nax = ax + repulsive.x;\\\\nay = ay + repulsive.y;\\\\nvar attractive : vec2<f32> = calcAttractive(i, currentNode, nodeAttributes1);\\\\nax = ax + attractive.x;\\\\nay = ay + attractive.y;\\\\nvar gravity : vec2<f32> = calcGravity(i, currentNode, nodeAttributes2);\\\\nax = ax - gravity.x;\\\\nay = ay - gravity.y;\\\\nvar param : f32 = gWebGPUUniformParams.u_interval * gWebGPUUniformParams.u_damping;\\\\nvar vx : f32 = ax * param;\\\\nvar vy : f32 = ay * param;\\\\nvar vlength : f32 = std::sqrt((vx * vx) + (vy * vy)) + 0.0001;\\\\nif (vlength > gWebGPUUniformParams.u_maxSpeed) {var param2 : f32 = gWebGPUUniformParams.u_maxSpeed / vlength;\\\\nvx = param2 * vx;\\\\nvy = param2 * vy;}\\\\nvar distx : f32 = vx * gWebGPUUniformParams.u_interval;\\\\nvar disty : f32 = vy * gWebGPUUniformParams.u_interval;\\\\nvar distLength : f32 = std::sqrt((distx * distx) + (disty * disty));\\\\ngWebGPUBuffer0.u_Data[i] = vec4<f32>(currentNode.x + distx, currentNode.y + disty, currentNode.z, distLength);\\\\nreturn;}\\\\n\\\\nentry_point compute as \\\\"main\\\\" = main;\\\\n","GLSL450":"\\\\n\\\\n\\\\nbool gWebGPUDebug = false;\\\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\\\n\\\\nivec3 globalInvocationID = ivec3(gl_GlobalInvocationID);\\\\nivec3 workGroupSize = ivec3(1,1,1);\\\\nivec3 workGroupID = ivec3(gl_WorkGroupID);\\\\nivec3 localInvocationID = ivec3(gl_LocalInvocationID);\\\\nivec3 numWorkGroups = ivec3(gl_NumWorkGroups);\\\\nint localInvocationIndex = int(gl_LocalInvocationIndex);\\\\n\\\\nlayout(std140, set = 0, binding = 0) uniform GWebGPUParams {\\\\n float u_damping;\\\\n float u_maxSpeed;\\\\n float u_minMovement;\\\\n \\\\n float u_coulombDisScale;\\\\n float u_factor;\\\\n \\\\n \\\\n float u_interval;\\\\n} gWebGPUUniformParams;\\\\nlayout(std430, set = 0, binding = 1) buffer GWebGPUBuffer0 {\\\\n vec4 u_Data[];\\\\n} gWebGPUBuffer0;\\\\n\\\\nlayout(std430, set = 0, binding = 2) buffer readonly GWebGPUBuffer1 {\\\\n vec4 u_AveMovement[];\\\\n} gWebGPUBuffer1;\\\\n\\\\nlayout(std430, set = 0, binding = 3) buffer readonly GWebGPUBuffer2 {\\\\n vec4 u_NodeAttributeArray1[];\\\\n} gWebGPUBuffer2;\\\\n\\\\nlayout(std430, set = 0, binding = 4) buffer readonly GWebGPUBuffer3 {\\\\n vec4 u_NodeAttributeArray2[];\\\\n} gWebGPUBuffer3;\\\\n\\\\n\\\\n\\\\n#define MAX_EDGE_PER_VERTEX __DefineValuePlaceholder__MAX_EDGE_PER_VERTEX\\\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\\\n#define SHIFT_20 1048576.0\\\\nlayout (\\\\n local_size_x = 1,\\\\n local_size_y = 1,\\\\n local_size_z = 1\\\\n) in;\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\nivec2 unpack_float(float packedValue) {int packedIntValue = int(packedValue);\\\\nint v0 = packedIntValue / int(SHIFT_20);\\\\nreturn ivec2(v0, packedIntValue - (v0 * int(SHIFT_20)));}\\\\nvec2 calcRepulsive(int i, vec4 currentNode) {float ax = 0.0;\\\\nfloat ay = 0.0;\\\\nfor (int j = 0; j < VERTEX_COUNT; j++) {if (i != j) {vec4 nextNode = gWebGPUBuffer0.u_Data[j];\\\\nfloat vx = currentNode.x - nextNode.x;\\\\nfloat vy = currentNode.y - nextNode.y;\\\\nfloat dist = sqrt((vx * vx) + (vy * vy)) + 0.01;\\\\nfloat n_dist = dist * gWebGPUUniformParams.u_coulombDisScale;\\\\nfloat direx = vx / dist;\\\\nfloat direy = vy / dist;\\\\nvec4 attributesi = gWebGPUBuffer2.u_NodeAttributeArray1[i];\\\\nvec4 attributesj = gWebGPUBuffer2.u_NodeAttributeArray1[j];\\\\nfloat massi = attributesi.x;\\\\nfloat nodeStrengthi = attributesi.z;\\\\nfloat nodeStrengthj = attributesj.z;\\\\nfloat nodeStrength = (nodeStrengthi + nodeStrengthj) / 2.0;\\\\nfloat param = (1000.0 * gWebGPUUniformParams.u_factor) / (n_dist * n_dist);\\\\nax += direx * param;\\\\nay += direy * param;}}\\\\nreturn vec2(ax, ay);}\\\\nvec2 calcGravity(int i, vec4 currentNode, vec4 attributes2) {float vx = currentNode.x - attributes2.x;\\\\nfloat vy = currentNode.y - attributes2.y;\\\\nfloat ax = vx * attributes2.w;\\\\nfloat ay = vy * attributes2.w;\\\\nreturn vec2(ax, ay);}\\\\nvec2 calcAttractive(int i, vec4 currentNode, vec4 attributes1) {float mass = attributes1.x;\\\\nfloat ax = 0.0;\\\\nfloat ay = 0.0;\\\\nivec2 compressed = unpack_float(currentNode.z);\\\\nint length = compressed.x;\\\\nint arr_offset = compressed.y;\\\\nvec4 node_buffer;\\\\nfor (int p = 0; p < MAX_EDGE_PER_VERTEX; p++) {if (p >= length) {break;}\\\\nint arr_idx = arr_offset + (4 * p);\\\\nint buf_offset = arr_idx - ((arr_idx / 4) * 4);\\\\nif ((p == 0) || (buf_offset == 0)) {node_buffer = gWebGPUBuffer0.u_Data[int(arr_idx / 4)];}\\\\nfloat float_j = node_buffer.x;\\\\nvec4 nextNode = gWebGPUBuffer0.u_Data[int(float_j)];\\\\nfloat vx = nextNode.x - currentNode.x;\\\\nfloat vy = nextNode.y - currentNode.y;\\\\nfloat dist = sqrt((vx * vx) + (vy * vy)) + 0.01;\\\\nfloat direx = vx / dist;\\\\nfloat direy = vy / dist;\\\\nfloat edgeLength = node_buffer.y;\\\\nfloat edgeStrength = node_buffer.z;\\\\nfloat diff = edgeLength - dist;\\\\nfloat param = (diff * edgeStrength) / mass;\\\\nax -= direx * param;\\\\nay -= direy * param;}\\\\nreturn vec2(ax, ay);}\\\\nvoid main() {int i = globalInvocationID.x;\\\\nvec4 currentNode = gWebGPUBuffer0.u_Data[i];\\\\nvec4 movement = gWebGPUBuffer1.u_AveMovement[0];\\\\nfloat ax = 0.0;\\\\nfloat ay = 0.0;\\\\nif ((i >= VERTEX_COUNT) || (movement.x < gWebGPUUniformParams.u_minMovement)) {gWebGPUBuffer0.u_Data[i] = currentNode;\\\\nreturn ;}\\\\nvec4 nodeAttributes1 = gWebGPUBuffer2.u_NodeAttributeArray1[i];\\\\nvec4 nodeAttributes2 = gWebGPUBuffer3.u_NodeAttributeArray2[i];\\\\nvec2 repulsive = calcRepulsive(i, currentNode);\\\\nax += repulsive.x;\\\\nay += repulsive.y;\\\\nvec2 attractive = calcAttractive(i, currentNode, nodeAttributes1);\\\\nax += attractive.x;\\\\nay += attractive.y;\\\\nvec2 gravity = calcGravity(i, currentNode, nodeAttributes2);\\\\nax -= gravity.x;\\\\nay -= gravity.y;\\\\nfloat param = gWebGPUUniformParams.u_interval * gWebGPUUniformParams.u_damping;\\\\nfloat vx = ax * param;\\\\nfloat vy = ay * param;\\\\nfloat vlength = sqrt((vx * vx) + (vy * vy)) + 0.0001;\\\\nif (vlength > gWebGPUUniformParams.u_maxSpeed) {float param2 = gWebGPUUniformParams.u_maxSpeed / vlength;\\\\nvx = param2 * vx;\\\\nvy = param2 * vy;}\\\\nfloat distx = vx * gWebGPUUniformParams.u_interval;\\\\nfloat disty = vy * gWebGPUUniformParams.u_interval;\\\\nfloat distLength = sqrt((distx * distx) + (disty * disty));\\\\ngWebGPUBuffer0.u_Data[i] = vec4(currentNode.x + distx, currentNode.y + disty, currentNode.z, distLength);}\\\\n","GLSL100":"\\\\n\\\\nfloat epsilon = 0.00001;\\\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\\\n vec2 normAddr2D = float(address1D) * conv_const;\\\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\\\n}\\\\n\\\\nvoid barrier() {}\\\\n \\\\n\\\\nuniform vec2 u_OutputTextureSize;\\\\nuniform int u_OutputTexelCount;\\\\nvarying vec2 v_TexCoord;\\\\n\\\\nbool gWebGPUDebug = false;\\\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\\\n\\\\n#define MAX_EDGE_PER_VERTEX __DefineValuePlaceholder__MAX_EDGE_PER_VERTEX\\\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\\\n#define SHIFT_20 1048576.0\\\\n\\\\nuniform sampler2D u_Data;\\\\nuniform vec2 u_DataSize;\\\\nvec4 getDatau_Data(vec2 address2D) {\\\\n return vec4(texture2D(u_Data, address2D).rgba);\\\\n}\\\\nvec4 getDatau_Data(float address1D) {\\\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\\\n}\\\\nvec4 getDatau_Data(int address1D) {\\\\n return getDatau_Data(float(address1D));\\\\n}\\\\nuniform float u_damping;\\\\nuniform float u_maxSpeed;\\\\nuniform float u_minMovement;\\\\nuniform sampler2D u_AveMovement;\\\\nuniform vec2 u_AveMovementSize;\\\\nvec4 getDatau_AveMovement(vec2 address2D) {\\\\n return vec4(texture2D(u_AveMovement, address2D).rgba);\\\\n}\\\\nvec4 getDatau_AveMovement(float address1D) {\\\\n return getDatau_AveMovement(addrTranslation_1Dto2D(address1D, u_AveMovementSize));\\\\n}\\\\nvec4 getDatau_AveMovement(int address1D) {\\\\n return getDatau_AveMovement(float(address1D));\\\\n}\\\\nuniform float u_coulombDisScale;\\\\nuniform float u_factor;\\\\nuniform sampler2D u_NodeAttributeArray1;\\\\nuniform vec2 u_NodeAttributeArray1Size;\\\\nvec4 getDatau_NodeAttributeArray1(vec2 address2D) {\\\\n return vec4(texture2D(u_NodeAttributeArray1, address2D).rgba);\\\\n}\\\\nvec4 getDatau_NodeAttributeArray1(float address1D) {\\\\n return getDatau_NodeAttributeArray1(addrTranslation_1Dto2D(address1D, u_NodeAttributeArray1Size));\\\\n}\\\\nvec4 getDatau_NodeAttributeArray1(int address1D) {\\\\n return getDatau_NodeAttributeArray1(float(address1D));\\\\n}\\\\nuniform sampler2D u_NodeAttributeArray2;\\\\nuniform vec2 u_NodeAttributeArray2Size;\\\\nvec4 getDatau_NodeAttributeArray2(vec2 address2D) {\\\\n return vec4(texture2D(u_NodeAttributeArray2, address2D).rgba);\\\\n}\\\\nvec4 getDatau_NodeAttributeArray2(float address1D) {\\\\n return getDatau_NodeAttributeArray2(addrTranslation_1Dto2D(address1D, u_NodeAttributeArray2Size));\\\\n}\\\\nvec4 getDatau_NodeAttributeArray2(int address1D) {\\\\n return getDatau_NodeAttributeArray2(float(address1D));\\\\n}\\\\nuniform float u_interval;\\\\nivec2 unpack_float(float packedValue) {\\\\nivec3 workGroupSize = ivec3(1, 1, 1);\\\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\\\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\\\nint packedIntValue = int(packedValue);\\\\nint v0 = packedIntValue / int(SHIFT_20);\\\\nreturn ivec2(v0, packedIntValue - (v0 * int(SHIFT_20)));}\\\\nvec2 calcRepulsive(int i, vec4 currentNode) {\\\\nivec3 workGroupSize = ivec3(1, 1, 1);\\\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\\\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\\\nfloat ax = 0.0;\\\\nfloat ay = 0.0;\\\\nfor (int j = 0; j < VERTEX_COUNT; j++) {if (i != j) {vec4 nextNode = getDatau_Data(j);\\\\nfloat vx = currentNode.x - nextNode.x;\\\\nfloat vy = currentNode.y - nextNode.y;\\\\nfloat dist = sqrt((vx * vx) + (vy * vy)) + 0.01;\\\\nfloat n_dist = dist * u_coulombDisScale;\\\\nfloat direx = vx / dist;\\\\nfloat direy = vy / dist;\\\\nvec4 attributesi = getDatau_NodeAttributeArray1(i);\\\\nvec4 attributesj = getDatau_NodeAttributeArray1(j);\\\\nfloat massi = attributesi.x;\\\\nfloat nodeStrengthi = attributesi.z;\\\\nfloat nodeStrengthj = attributesj.z;\\\\nfloat nodeStrength = (nodeStrengthi + nodeStrengthj) / 2.0;\\\\nfloat param = (1000.0 * u_factor) / (n_dist * n_dist);\\\\nax += direx * param;\\\\nay += direy * param;}}\\\\nreturn vec2(ax, ay);}\\\\nvec2 calcGravity(int i, vec4 currentNode, vec4 attributes2) {\\\\nivec3 workGroupSize = ivec3(1, 1, 1);\\\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\\\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\\\nfloat vx = currentNode.x - attributes2.x;\\\\nfloat vy = currentNode.y - attributes2.y;\\\\nfloat ax = vx * attributes2.w;\\\\nfloat ay = vy * attributes2.w;\\\\nreturn vec2(ax, ay);}\\\\nvec2 calcAttractive(int i, vec4 currentNode, vec4 attributes1) {\\\\nivec3 workGroupSize = ivec3(1, 1, 1);\\\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\\\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\\\nfloat mass = attributes1.x;\\\\nfloat ax = 0.0;\\\\nfloat ay = 0.0;\\\\nivec2 compressed = unpack_float(currentNode.z);\\\\nint length = compressed.x;\\\\nint arr_offset = compressed.y;\\\\nvec4 node_buffer;\\\\nfor (int p = 0; p < MAX_EDGE_PER_VERTEX; p++) {if (p >= length) {break;}\\\\nint arr_idx = arr_offset + (4 * p);\\\\nint buf_offset = arr_idx - ((arr_idx / 4) * 4);\\\\nif ((p == 0) || (buf_offset == 0)) {node_buffer = getDatau_Data(int(arr_idx / 4));}\\\\nfloat float_j = node_buffer.x;\\\\nvec4 nextNode = getDatau_Data(int(float_j));\\\\nfloat vx = nextNode.x - currentNode.x;\\\\nfloat vy = nextNode.y - currentNode.y;\\\\nfloat dist = sqrt((vx * vx) + (vy * vy)) + 0.01;\\\\nfloat direx = vx / dist;\\\\nfloat direy = vy / dist;\\\\nfloat edgeLength = node_buffer.y;\\\\nfloat edgeStrength = node_buffer.z;\\\\nfloat diff = edgeLength - dist;\\\\nfloat param = (diff * edgeStrength) / mass;\\\\nax -= direx * param;\\\\nay -= direy * param;}\\\\nreturn vec2(ax, ay);}\\\\nvoid main() {\\\\nivec3 workGroupSize = ivec3(1, 1, 1);\\\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\\\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\\\nint i = globalInvocationID.x;\\\\nvec4 currentNode = getDatau_Data(i);\\\\nvec4 movement = getDatau_AveMovement(0.0);\\\\nfloat ax = 0.0;\\\\nfloat ay = 0.0;\\\\nif ((i >= VERTEX_COUNT) || (movement.x < u_minMovement)) {gl_FragColor = vec4(currentNode);\\\\nreturn ;}\\\\nvec4 nodeAttributes1 = getDatau_NodeAttributeArray1(i);\\\\nvec4 nodeAttributes2 = getDatau_NodeAttributeArray2(i);\\\\nvec2 repulsive = calcRepulsive(i, currentNode);\\\\nax += repulsive.x;\\\\nay += repulsive.y;\\\\nvec2 attractive = calcAttractive(i, currentNode, nodeAttributes1);\\\\nax += attractive.x;\\\\nay += attractive.y;\\\\nvec2 gravity = calcGravity(i, currentNode, nodeAttributes2);\\\\nax -= gravity.x;\\\\nay -= gravity.y;\\\\nfloat param = u_interval * u_damping;\\\\nfloat vx = ax * param;\\\\nfloat vy = ay * param;\\\\nfloat vlength = sqrt((vx * vx) + (vy * vy)) + 0.0001;\\\\nif (vlength > u_maxSpeed) {float param2 = u_maxSpeed / vlength;\\\\nvx = param2 * vx;\\\\nvy = param2 * vy;}\\\\nfloat distx = vx * u_interval;\\\\nfloat disty = vy * u_interval;\\\\nfloat distLength = sqrt((distx * distx) + (disty * disty));\\\\ngl_FragColor = vec4(vec4(currentNode.x + distx, currentNode.y + disty, currentNode.z, distLength));if (gWebGPUDebug) {\\\\n gl_FragColor = gWebGPUDebugOutput;\\\\n}}\\\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"MAX_EDGE_PER_VERTEX","type":"Float","runtime":true},{"name":"VERTEX_COUNT","type":"Float","runtime":true},{"name":"SHIFT_20","type":"Float","value":1048576,"runtime":false}],"uniforms":[{"name":"u_Data","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]},{"name":"u_damping","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_maxSpeed","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_minMovement","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AveMovement","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_coulombDisScale","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_factor","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributeArray1","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributeArray2","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_interval","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_Data","size":[1,1],"length":1},"needPingpong":true}}\').setDispatch([s,1,1]).setBinding({u_Data:f,u_damping:r.damping,u_maxSpeed:r.maxSpeed,u_minMovement:r.minMovement,u_coulombDisScale:r.coulombDisScale,u_factor:r.factor,u_NodeAttributeArray1:m,u_NodeAttributeArray2:b,MAX_EDGE_PER_VERTEX:c,VERTEX_COUNT:s,u_AveMovement:E,u_interval:r.interval}),k=w.createKernel(\'{"shaders":{"WGSL":"import \\\\"GLSL.std.450\\\\" as std;\\\\n\\\\n\\\\n# var gWebGPUDebug : bool = false;\\\\n# var gWebGPUDebugOutput : vec4<f32> = vec4<f32>(0.0);\\\\n\\\\n[[builtin global_invocation_id]] var<in> globalInvocationID : vec3<u32>;\\\\n# [[builtin work_group_size]] var<in> workGroupSize : vec3<u32>;\\\\n# [[builtin work_group_id]] var<in> workGroupID : vec3<u32>;\\\\n[[builtin local_invocation_id]] var<in> localInvocationID : vec3<u32>;\\\\n# [[builtin num_work_groups]] var<in> numWorkGroups : vec3<u32>;\\\\n[[builtin local_invocation_idx]] var<in> localInvocationIndex : u32;\\\\n\\\\ntype GWebGPUParams = [[block]] struct {\\\\n [[offset 0]] u_iter : f32;\\\\n};\\\\n[[binding 0, set 0]] var<uniform> gWebGPUUniformParams : GWebGPUParams;\\\\ntype GWebGPUBuffer0 = [[block]] struct {\\\\n [[offset 0]] u_Data : [[stride 16]] array<vec4<f32>>;\\\\n};\\\\n[[binding 1, set 0]] var<storage_buffer> gWebGPUBuffer0 : GWebGPUBuffer0;\\\\ntype GWebGPUBuffer1 = [[block]] struct {\\\\n [[offset 0]] u_AveMovement : [[stride 16]] array<vec4<f32>>;\\\\n};\\\\n[[binding 2, set 0]] var<storage_buffer> gWebGPUBuffer1 : GWebGPUBuffer1;\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\n\\\\nfn main() -> void {var movement : f32 = 0.0;\\\\nfor (var j : i32 = 0; j < __DefineValuePlaceholder__VERTEX_COUNT; j = j + 1) {var vertex : vec4<f32> = gWebGPUBuffer0.u_Data[j];\\\\nmovement = movement + vertex.w;}\\\\nmovement = movement / f32(__DefineValuePlaceholder__VERTEX_COUNT);\\\\ngWebGPUBuffer1.u_AveMovement[0] = vec4<f32>(movement, 0.0, 0.0, 0.0);\\\\nreturn;}\\\\n\\\\nentry_point compute as \\\\"main\\\\" = main;\\\\n","GLSL450":"\\\\n\\\\n\\\\nbool gWebGPUDebug = false;\\\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\\\n\\\\nivec3 globalInvocationID = ivec3(gl_GlobalInvocationID);\\\\nivec3 workGroupSize = ivec3(1,1,1);\\\\nivec3 workGroupID = ivec3(gl_WorkGroupID);\\\\nivec3 localInvocationID = ivec3(gl_LocalInvocationID);\\\\nivec3 numWorkGroups = ivec3(gl_NumWorkGroups);\\\\nint localInvocationIndex = int(gl_LocalInvocationIndex);\\\\n\\\\nlayout(std140, set = 0, binding = 0) uniform GWebGPUParams {\\\\n float u_iter;\\\\n} gWebGPUUniformParams;\\\\nlayout(std430, set = 0, binding = 1) buffer readonly GWebGPUBuffer0 {\\\\n vec4 u_Data[];\\\\n} gWebGPUBuffer0;\\\\n\\\\nlayout(std430, set = 0, binding = 2) buffer GWebGPUBuffer1 {\\\\n vec4 u_AveMovement[];\\\\n} gWebGPUBuffer1;\\\\n\\\\n\\\\n\\\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\\\nlayout (\\\\n local_size_x = 1,\\\\n local_size_y = 1,\\\\n local_size_z = 1\\\\n) in;\\\\n\\\\n\\\\n\\\\nvoid main() {float movement = 0.0;\\\\nfor (int j = 0; j < VERTEX_COUNT; j++) {vec4 vertex = gWebGPUBuffer0.u_Data[j];\\\\nmovement += vertex.w;}\\\\nmovement = movement / float(VERTEX_COUNT);\\\\ngWebGPUBuffer1.u_AveMovement[0] = vec4(movement, 0.0, 0.0, 0.0);}\\\\n","GLSL100":"\\\\n\\\\nfloat epsilon = 0.00001;\\\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\\\n vec2 normAddr2D = float(address1D) * conv_const;\\\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\\\n}\\\\n\\\\nvoid barrier() {}\\\\n \\\\n\\\\nuniform vec2 u_OutputTextureSize;\\\\nuniform int u_OutputTexelCount;\\\\nvarying vec2 v_TexCoord;\\\\n\\\\nbool gWebGPUDebug = false;\\\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\\\n\\\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\\\n\\\\nuniform sampler2D u_Data;\\\\nuniform vec2 u_DataSize;\\\\nvec4 getDatau_Data(vec2 address2D) {\\\\n return vec4(texture2D(u_Data, address2D).rgba);\\\\n}\\\\nvec4 getDatau_Data(float address1D) {\\\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\\\n}\\\\nvec4 getDatau_Data(int address1D) {\\\\n return getDatau_Data(float(address1D));\\\\n}\\\\nuniform float u_iter;\\\\nuniform sampler2D u_AveMovement;\\\\nuniform vec2 u_AveMovementSize;\\\\nvec4 getDatau_AveMovement(vec2 address2D) {\\\\n return vec4(texture2D(u_AveMovement, address2D).rgba);\\\\n}\\\\nvec4 getDatau_AveMovement(float address1D) {\\\\n return getDatau_AveMovement(addrTranslation_1Dto2D(address1D, u_AveMovementSize));\\\\n}\\\\nvec4 getDatau_AveMovement(int address1D) {\\\\n return getDatau_AveMovement(float(address1D));\\\\n}\\\\nvoid main() {\\\\nivec3 workGroupSize = ivec3(1, 1, 1);\\\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\\\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\\\nfloat movement = 0.0;\\\\nfor (int j = 0; j < VERTEX_COUNT; j++) {vec4 vertex = getDatau_Data(j);\\\\nmovement += vertex.w;}\\\\nmovement = movement / float(VERTEX_COUNT);\\\\ngl_FragColor = vec4(vec4(movement, 0.0, 0.0, 0.0));if (gWebGPUDebug) {\\\\n gl_FragColor = gWebGPUDebugOutput;\\\\n}}\\\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"VERTEX_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_iter","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AveMovement","type":"vec4<f32>[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_AveMovement","size":[1,1],"length":1},"needPingpong":true}}\').setDispatch([1,1,1]).setBinding({u_Data:f,VERTEX_COUNT:s,u_AveMovement:[0,0,0,0]}),M=function(){return Oh(A,void 0,void 0,regeneratorRuntime.mark((function n(){var o,s,u;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:o=0;case 1:if(!(o<a)){n.next=12;break}return n.next=4,O.execute();case 4:return k.setBinding({u_Data:O}),n.next=7,k.execute();case 7:s=Math.max(.02,r.interval-.002*o),O.setBinding({u_interval:s,u_AveMovement:k});case 9:o++,n.next=1;break;case 12:return n.next=14,O.getOutput();case 14:u=n.sent,t?e.postMessage({type:wi,vertexEdgeData:u}):i.forEach((function(t,e){var n=u[4*e],r=u[4*e+1];t.x=n,t.y=r})),S&&S();case 17:case"end":return n.stop()}}),n)})))},n.next=33,M();case 33:case"end":return n.stop()}}),n,this)})))}},{key:"getType",value:function(){return"gForce-gpu"}}])&&xh(e.prototype,n),r&&xh(e,r),o}(Qn);function Mh(t){return(Mh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ah(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Th(t,e){return(Th=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ch(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ph(t);if(e){var i=Ph(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ih(this,n)}}function Ih(t,e){return!e||"object"!==Mh(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");return t}(t):e}function Ph(t){return(Ph=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var jh=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Th(t,e)}(o,t);var e,n,r,i=Ch(o);function o(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(e=i.call(this)).center=[0,0],e.maxIteration=100,e.gravity=10,e.comboGravity=10,e.linkDistance=10,e.alpha=1,e.alphaMin=.001,e.alphaDecay=1-Math.pow(e.alphaMin,1/300),e.alphaTarget=0,e.velocityDecay=.6,e.edgeStrength=.6,e.nodeStrength=30,e.preventOverlap=!1,e.preventNodeOverlap=!1,e.preventComboOverlap=!1,e.collideStrength=void 0,e.nodeCollideStrength=.5,e.comboCollideStrength=.5,e.comboSpacing=20,e.comboPadding=10,e.optimizeRangeFactor=1,e.onTick=function(){},e.onLayoutEnd=function(){},e.depthAttractiveForceScale=1,e.depthRepulsiveForceScale=2,e.nodes=[],e.edges=[],e.combos=[],e.comboTrees=[],e.width=300,e.height=300,e.bias=[],e.nodeMap={},e.oriComboMap={},e.indexMap={},e.comboMap={},e.previousLayouted=!1,e.updateCfg(t),e}return e=o,(n=[{key:"getDefaultCfg",value:function(){return{maxIteration:100,center:[0,0],gravity:10,speed:1,comboGravity:30,preventOverlap:!1,preventComboOverlap:!0,preventNodeOverlap:!0,nodeSpacing:void 0,collideStrength:void 0,nodeCollideStrength:.5,comboCollideStrength:.5,comboSpacing:20,comboPadding:10,edgeStrength:.6,nodeStrength:30,linkDistance:10}}},{key:"execute",value:function(){var t=this.nodes,e=this.center;if(this.comboTree={id:"comboTreeRoot",depth:-1,children:this.comboTrees},t&&0!==t.length){if(1===t.length)return t[0].x=e[0],t[0].y=e[1],void(this.onLayoutEnd&&this.onLayoutEnd());this.initVals(),this.run(),this.onLayoutEnd&&this.onLayoutEnd()}else this.onLayoutEnd&&this.onLayoutEnd()}},{key:"run",value:function(){var t=this,e=t.nodes,n=t.previousLayouted?t.maxIteration/5:t.maxIteration;t.width||"undefined"==typeof window||(t.width=window.innerWidth),t.height||"undefined"==typeof window||(t.height=window.innerHeight);var r=t.center,i=t.velocityDecay,o=t.comboMap;t.previousLayouted||t.initPos(o);for(var a=function(n){var r=[];e.forEach((function(t,e){r[e]={x:0,y:0}})),t.applyCalculate(r),t.applyComboCenterForce(r),e.forEach((function(t,e){Un(t.x)&&Un(t.y)&&(t.x+=r[e].x*i,t.y+=r[e].y*i)})),t.alpha+=(t.alphaTarget-t.alpha)*t.alphaDecay,t.onTick()},s=0;s<n;s++)a();var u=[0,0];e.forEach((function(t){Un(t.x)&&Un(t.y)&&(u[0]+=t.x,u[1]+=t.y)})),u[0]/=e.length,u[1]/=e.length;var c=[r[0]-u[0],r[1]-u[1]];e.forEach((function(t,e){Un(t.x)&&Un(t.y)&&(t.x+=c[0],t.y+=c[1])})),t.combos.forEach((function(t){var e=o[t.id];e&&e.empty&&(t.x=e.cx||t.x,t.y=e.cy||t.y)})),t.previousLayouted=!0}},{key:"initVals",value:function(){var t=this.edges,e=this.nodes,n=this.combos,r={},i={},o={};e.forEach((function(t,e){i[t.id]=t,o[t.id]=e})),this.nodeMap=i,this.indexMap=o;var a={};n.forEach((function(t){a[t.id]=t})),this.oriComboMap=a,this.comboMap=this.getComboMap();var s=this.preventOverlap;this.preventComboOverlap=this.preventComboOverlap||s,this.preventNodeOverlap=this.preventNodeOverlap||s;var u=this.collideStrength;u&&(this.comboCollideStrength=u,this.nodeCollideStrength=u),this.comboCollideStrength=this.comboCollideStrength?this.comboCollideStrength:0,this.nodeCollideStrength=this.nodeCollideStrength?this.nodeCollideStrength:0;for(var c=0;c<t.length;++c)r[t[c].source]?r[t[c].source]++:r[t[c].source]=1,r[t[c].target]?r[t[c].target]++:r[t[c].target]=1;for(var f=[],l=0;l<t.length;++l)f[l]=r[t[l].source]/(r[t[l].source]+r[t[l].target]);this.bias=f;var h,d,p=this.nodeSize,g=this.nodeSpacing;if(d=Un(g)?function(){return g}:Kn(g)?g:function(){return 0},this.nodeSpacing=d,p)if(Kn(p))h=function(t){return p(t)};else if(Fn(p)){var v=(p[0]>p[1]?p[0]:p[1])/2;h=function(t){return v}}else{var y=p/2;h=function(t){return y}}else h=function(t){return t.size?Fn(t.size)?(t.size[0]>t.size[1]?t.size[0]:t.size[1])/2:t.size/2:10};this.nodeSize=h;var m,b=this.comboSpacing;m=Un(b)?function(){return b}:Kn(b)?b:function(){return 0},this.comboSpacing=m;var x,w=this.comboPadding;x=Un(w)?function(){return w}:Fn(w)?function(){return Math.max.apply(null,w)}:Kn(w)?w:function(){return 0},this.comboPadding=x;var S,E=this.linkDistance;E||(E=10),S=Un(E)?function(t){return E}:E,this.linkDistance=S;var _,O=this.edgeStrength;O||(O=1),_=Un(O)?function(t){return O}:O,this.edgeStrength=_;var k,M=this.nodeStrength;M||(M=30),k=Un(M)?function(t){return M}:M,this.nodeStrength=k}},{key:"initPos",value:function(t){this.nodes.forEach((function(e,n){var r=e.comboId,i=t[r];r&&i?(e.x=i.cx+100/(n+1),e.y=i.cy+100/(n+1)):(e.x=100/(n+1),e.y=100/(n+1))}))}},{key:"getComboMap",value:function(){var t=this,e=t.nodeMap,n=t.indexMap,r=t.comboTrees,i=t.oriComboMap,o={};return(r||[]).forEach((function(r){var a=[];Yn(r,(function(r){if("node"===r.itemType)return!0;if(!i[r.id])return!0;if(void 0===o[r.id]){var s={id:r.id,name:r.id,cx:0,cy:0,count:0,depth:t.oriComboMap[r.id].depth,children:[]};o[r.id]=s}var u=r.children;u&&u.forEach((function(t){if(!o[t.id]&&!e[t.id])return!0;a.push(t)}));var c=o[r.id];if(c.cx=0,c.cy=0,0===a.length){c.empty=!0;var f=i[r.id],l=Object.keys(e).length,h="".concat(r.id,"-visual-child-").concat(l),d={id:h,x:f.x,y:f.y,depth:c.depth+1,itemType:"node"};t.nodes.push(d),e[h]=d,n[h]=l,c.cx=f.x,c.cy=f.y,a.push(d)}return a.forEach((function(t){if(c.count++,"node"!==t.itemType){var n=o[t.id];return Un(n.cx)&&(c.cx+=n.cx),void(Un(n.cy)&&(c.cy+=n.cy))}var r=e[t.id];r&&(Un(r.x)&&(c.cx+=r.x),Un(r.y)&&(c.cy+=r.y))})),c.cx/=c.count,c.cy/=c.count,c.children=a,!0}))})),o}},{key:"applyComboCenterForce",value:function(t){var e=this.gravity,n=this.comboGravity||e,r=this.alpha,i=this.comboTrees,o=this.indexMap,a=this.nodeMap,s=this.comboMap;(i||[]).forEach((function(e){Yn(e,(function(e){if("node"===e.itemType)return!0;if(!s[e.id])return!0;var i=s[e.id],u=(i.depth+1)/10*.5,c=i.cx,f=i.cy;return i.cx=0,i.cy=0,i.children.forEach((function(e){if("node"!==e.itemType){var l=s[e.id];return l&&Un(l.cx)&&(i.cx+=l.cx),void(l&&Un(l.cy)&&(i.cy+=l.cy))}var h=a[e.id],d=h.x-c||.005,p=h.y-f||.005,g=Math.sqrt(d*d+p*p),v=o[h.id],y=n*r/g*u;t[v].x-=d*y,t[v].y-=p*y,Un(h.x)&&(i.cx+=h.x),Un(h.y)&&(i.cy+=h.y)})),i.cx/=i.count,i.cy/=i.count,!0}))}))}},{key:"applyCalculate",value:function(t){var e=this.comboMap,n=this.nodes,r={};n.forEach((function(t,e){n.forEach((function(n,i){if(!(e<i)){var o=t.x-n.x||.005,a=t.y-n.y||.005,s=o*o+a*a,u=Math.sqrt(s);s<1&&(s=u),r["".concat(t.id,"-").concat(n.id)]={vx:o,vy:a,vl2:s,vl:u},r["".concat(n.id,"-").concat(t.id)]={vl2:s,vl:u,vx:-o,vy:-a}}}))})),this.updateComboSizes(e),this.calRepulsive(t,r),this.calAttractive(t,r),this.preventComboOverlap&&this.comboNonOverlapping(t,e)}},{key:"updateComboSizes",value:function(t){var e=this,n=e.comboTrees,r=e.nodeMap,i=e.nodeSize,o=e.comboSpacing,a=e.comboPadding;(n||[]).forEach((function(n){var s=[];Yn(n,(function(n){if("node"===n.itemType)return!0;var u=t[n.id];if(!u)return!1;var c=n.children;c&&c.forEach((function(e){(t[e.id]||r[e.id])&&s.push(e)})),u.minX=1/0,u.minY=1/0,u.maxX=-1/0,u.maxY=-1/0,s.forEach((function(t){if("node"!==t.itemType)return!0;var e=r[t.id];if(!e)return!0;var n=i(e),o=e.x-n,a=e.y-n,s=e.x+n,c=e.y+n;u.minX>o&&(u.minX=o),u.minY>a&&(u.minY=a),u.maxX<s&&(u.maxX=s),u.maxY<c&&(u.maxY=c)}));var f=e.oriComboMap[n.id].size||10;Fn(f)&&(f=f[0]);var l=Math.max(u.maxX-u.minX,u.maxY-u.minY,f);return u.r=l/2+o(u)/2+a(u),!0}))}))}},{key:"comboNonOverlapping",value:function(t,e){var n=this.comboTree,r=this.comboCollideStrength,i=this.indexMap,o=this.nodeMap;Yn(n,(function(n){if(!e[n.id]&&!o[n.id]&&"comboTreeRoot"!==n.id)return!1;var a=n.children;return a&&a.length>1&&a.forEach((function(n,s){if("node"===n.itemType)return!1;var u=e[n.id];u&&a.forEach((function(a,c){if(s<=c)return!1;if("node"===a.itemType)return!1;var f=e[a.id];if(!f)return!1;var l=u.cx-f.cx||.005,h=u.cy-f.cy||.005,d=l*l+h*h,p=u.r,g=f.r,v=p+g,y=g*g,m=p*p;if(d<v*v){var b=n.children;if(!b||0===b.length)return!1;var x=a.children;if(!x||0===x.length)return!1;var w=Math.sqrt(d),S=(v-w)/w*r,E=l*S,_=h*S,O=y/(m+y),k=1-O;b.forEach((function(e){if("node"!==e.itemType)return!1;if(o[e.id]){var n=i[e.id];x.forEach((function(e){if("node"!==e.itemType)return!1;if(!o[e.id])return!1;var r=i[e.id];t[n].x+=E*O,t[n].y+=_*O,t[r].x-=E*k,t[r].y-=_*k}))}}))}}))})),!0}))}},{key:"calRepulsive",value:function(t,e){var n=this,r=n.nodes,i=n.width*n.optimizeRangeFactor,o=n.nodeStrength,a=n.alpha,s=n.nodeCollideStrength,u=n.preventNodeOverlap,c=n.nodeSize,f=n.nodeSpacing,l=n.depthRepulsiveForceScale,h=n.center;r.forEach((function(d,p){if(d.x&&d.y){if(h){var g=n.gravity,v=d.x-h[0]||.005,y=d.y-h[1]||.005,m=Math.sqrt(v*v+y*y);t[p].x-=v*g*a/m,t[p].y-=y*g*a/m}r.forEach((function(n,r){if(p!==r&&n.x&&n.y){var h=e["".concat(d.id,"-").concat(n.id)],g=h.vl2,v=h.vl;if(!(v>i)){var y=e["".concat(d.id,"-").concat(n.id)],m=y.vx,b=y.vy,x=Math.log(Math.abs(n.depth-d.depth)/10)+1||1;x=x<1?1:x,n.comboId!==d.comboId&&(x+=1);var w=x?Math.pow(l,x):1,S=o(n)*a/g*w;if(t[p].x+=m*S,t[p].y+=b*S,p<r&&u){var E=c(d)+f(d),_=c(n)+f(n),O=E+_;if(g<O*O){var k=(O-v)/v*s,M=_*_,A=M/(E*E+M),T=m*k,C=b*k;t[p].x+=T*A,t[p].y+=C*A,A=1-A,t[r].x-=T*A,t[r].y-=C*A}}}}}))}}))}},{key:"calAttractive",value:function(t,e){var n=this,r=n.edges,i=n.linkDistance,o=n.alpha,a=n.edgeStrength,s=n.bias,u=n.depthAttractiveForceScale;r.forEach((function(r,c){if(r.source&&r.target&&r.source!==r.target){var f=n.indexMap[r.source],l=n.indexMap[r.target],h=n.nodeMap[r.source],d=n.nodeMap[r.target];if(h&&d){var p=Math.log(Math.abs(h.depth-d.depth)/10);h.comboId===d.comboId&&(p/=2);var g=p?Math.pow(u,p):1;if(h.comboId!==d.comboId&&1===g?g=u/2:h.comboId===d.comboId&&(g=2),Un(d.x)&&Un(h.x)&&Un(d.y)&&Un(h.y)){var v=e["".concat(r.target,"-").concat(r.source)],y=v.vl,m=v.vx,b=v.vy,x=(y-i(r))/y*o*a(r)*g,w=m*x,S=b*x,E=s[c];t[l].x-=w*E,t[l].y-=S*E,t[f].x+=w*(1-E),t[f].y+=S*(1-E)}}}}))}},{key:"getType",value:function(){return"comboForce"}}])&&Ah(e.prototype,n),r&&Ah(e,r),o}(Qn);var Dh,Nh=new Proxy({},{get:function(t,e){return Sa(e)},set:function(t,e,n){return wa(e,n),!0}});Dh||(Dh={}),wa("grid",ir),wa("random",lr),wa("force",Ai),wa("circular",Gi),wa("dagre",qi),wa("radial",da),wa("concentric",Ta),wa("mds",Ra),wa("fruchterman",Va),wa("fruchterman-gpu",mh),wa("gForce",br),wa("gForce-gpu",kh),wa("comboForce",jh);var Rh=self;Rh.onmessage=function(t){(function(t){var e=t.data.type;return e===vi||e===xi})(t)&&function(t){switch(t.data.type){case vi:var e=t.data,n=e.nodes,r=e.edges,i=e.layoutCfg,o=void 0===i?{}:i,a=o.type,s=Sa(a);if(!s){Rh.postMessage({type:mi,message:"layout ".concat(a," not found")});break}var u=new s(o);u.init({nodes:n,edges:r}),u.execute(),Rh.postMessage({nodes:n,type:yi}),u.destroy();break;case xi:var c=t.data,f=c.nodes,l=c.edges,h=c.layoutCfg,d=void 0===h?{}:h,p=c.canvas,g=d.type,v=Sa(g);if(!v){Rh.postMessage({type:mi,message:"layout ".concat(g," not found")});break}if("gpu"!==g.split("-")[1]){Rh.postMessage({type:mi,message:"layout ".concat(g," does not support GPU")});break}var y=new v(d);y.init({nodes:f,edges:l}),y.executeWithWorker(p,Rh)}}(t)};var Lh=function(t,e){e.isCustomLayout=!0,wa(t,e)};var Bh=new function(t){var e=t.toString(),n=new Blob(["("+e+")()"],{type:"text/javascript"});return new Worker(URL.createObjectURL(n))}((function(){importScripts("https://unpkg.com/@antv/layout@latest/dist/layout.min.js");var t="LAYOUT_RUN",e="LAYOUT_END",n="LAYOUT_ERROR",r="GPU_LAYOUT_RUN";onmessage=function(i){(function(e){var n=e.data.type;return n===t||n===r})(i)&&function(i){switch(i.data.type){case t:var o=i.data,a=o.nodes,s=o.edges,u=o.layoutCfg,c=(p=void 0===u?{}:u).type;if(!(f=layout.getLayoutByName(c))){this.postMessage({type:n,message:"layout "+c+" not found"});break}(l=new f(p)).init({nodes:a,edges:s}),l.execute(),this.postMessage({type:e,nodes:a}),l.destroy();break;case r:var f,l,h=i.data,d=(a=h.nodes,s=h.edges,h.layoutCfg),p=void 0===d?{}:d,g=h.canvas;c=p.type;if(!(f=layout.getLayoutByName(c))){this.postMessage({type:n,message:"layout "+c+" not found"});break}if("gpu"!==c.split("-")[1]){this.postMessage({type:n,message:"layout "+c+" does not support GPU"});break}(l=new f(p)).init({nodes:a,edges:s}),l.executeWithWorker(g,this)}}(i)}})),Gh="LAYOUT_RUN",Fh="LAYOUT_END",Uh="LAYOUT_ERROR",zh="LAYOUT_TICK",Vh="GPU_LAYOUT_RUN",Wh="GPU_LAYOUT_END",Xh=function t(){return"undefined"==typeof window||"undefined"==typeof document?{}:{canvas:!!window.CanvasRenderingContext2D,webgl:function(){try{var t=document.createElement("canvas");return!(!window.WebGLRenderingContext||!t.getContext("webgl")&&!t.getContext("experimental-webgl"))}catch(t){return!1}}(),workers:!!window.Worker,fileapi:window.File&&window.FileReader&&window.FileList&&window.Blob,getWebGLErrorMessage:function(){var t=document.createElement("div");return t.id="webgl-error-message",t.style.fontFamily="monospace",t.style.fontSize="13px",t.style.fontWeight="normal",t.style.textAlign="center",t.style.background="#fff",t.style.color="#000",t.style.padding="1.5em",t.style.width="400px",t.style.margin="5em auto 0",this.webgl||(t.innerHTML=window.WebGLRenderingContext?[\'Your graphics card does not seem to support <a href="http://khronos.org/webgl/wiki/Getting_a_WebGL_Implementation" rel="external nofollow" rel="external nofollow" style="color:#000">WebGL</a>.<br />\',\'Find out how to get it <a href="http://get.webgl.org/" rel="external nofollow" rel="external nofollow" style="color:#000">here</a>.\'].join("\\n"):[\'Your browser does not seem to support <a href="http://khronos.org/webgl/wiki/Getting_a_WebGL_Implementation" rel="external nofollow" rel="external nofollow" style="color:#000">WebGL</a>.<br/>\',\'Find out how to get it <a href="http://get.webgl.org/" rel="external nofollow" rel="external nofollow" style="color:#000">here</a>.\'].join("\\n")),t},addGetWebGLMessage:function(e){var n=void 0!==(e=e||{}).parent?e.parent:document.body,r=void 0!==e.id?e.id:"oldie",i=t().getWebGLErrorMessage();i.id=r,n.appendChild(i)}}};function Yh(t){return(Yh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Hh=function(t){return setTimeout(t,16)},qh=function(t){return clearTimeout(t)},Kh=function(t){return("undefined"!=typeof window&&(window.requestAnimationFrame||window.webkitRequestAnimationFrame)||Hh)(t)},Zh=function(t){return("undefined"!=typeof window&&(window.cancelAnimationFrame||window.webkitCancelAnimationFrame)||qh)(t)},Qh=["fruchterman","gForce"],Jh=function(t){function e(e){var n=t.call(this,e)||this;return n.graph=e,n.layoutCfg=e.get("layout")||{},n.layoutType=n.layoutCfg.type,n.worker=null,n.workerData={},n.initLayout(),n}return Object(v.b)(e,t),e.prototype.initLayout=function(){},e.prototype.getWorker=function(){return this.worker||("undefined"==typeof Worker?(console.warn("Web worker is not supported in current browser."),this.worker=null):this.worker=Bh),this.worker},e.prototype.stopWorker=function(){var t=this.workerData;this.worker&&(this.worker.terminate(),this.worker=null,t.requestId&&(Zh(t.requestId),t.requestId=null),t.requestId2&&(Zh(t.requestId2),t.requestId2=null))},e.prototype.layout=function(t){var e=this,n=this.graph;this.data=this.setDataFromGraph();var r=this.data.nodes;if(!r)return!1;var i=n.get("width"),o=n.get("height"),a={};Object.assign(a,{width:i,height:o,center:[i/2,o/2]},this.layoutCfg),this.layoutCfg=a;var s=!!this.layoutType,u=this.layoutMethod;u&&u.destroy(),n.emit("beforelayout");this.initPositions(a.center,r);var c=this.layoutType,f=!1;if(c&&"gpu"===c.split("-")[1]&&(c=c.split("-")[0],a.gpuEnabled=!0),c&&a.gpuEnabled){var l=!0;Xh().webgl||(console.warn("Your browser does not support webGL or GPGPU. The layout will run in CPU."),l=!1),this.hasGPUVersion(c)||(console.warn("The \'"+c+"\' layout does not support GPU calculation for now, it will run in CPU."),l=!1),l&&(c+="-gpu",f=!0)}if(this.isGPU=f,this.stopWorker(),a.workerEnabled&&this.layoutWithWorker(this.data,t))return!0;var h=a.onLayoutEnd;if(a.layoutEndFormatted||(a.layoutEndFormatted=!0,a.onLayoutEnd=function(){h&&h(),n.emit("afterlayout"),e.refreshLayout(),t&&t()}),"force"===c||"g6force"===c||"gForce"===c){var d=a.onTick,p=function(){d&&d(),n.refreshPositions()};a.tick=p}else"comboForce"===this.layoutType&&(a.comboTrees=n.get("comboTrees"));if(void 0!==c){try{u=new Nh[c](a)}catch(t){return console.warn("The layout method: \'"+c+"\' does not exist! Please specify it first."),!1}if(u.enableTick){var g=a.onTick;p=function(){g&&g(),n.refreshPositions()};u.tick=p}u.init(this.data),s&&(n.emit("beginlayout"),u.execute(),u.isCustomLayout&&a.onLayoutEnd&&a.onLayoutEnd()),this.layoutMethod=u}else a.onLayoutEnd&&a.onLayoutEnd();return!1},e.prototype.layoutWithWorker=function(t,e){var n=this,r=t.nodes,i=t.edges,o=this.layoutCfg,a=this.graph,s=this.isGPU,u=this.getWorker(),c=this.workerData;if(!u)return!1;c.requestId=null,c.requestId2=null,c.currentTick=null,c.currentTickData=null,a.emit("beforelayout");var f=document.createElement("canvas"),l=s&&"undefined"!=typeof window&&window.navigator&&!navigator.gpu&&"OffscreenCanvas"in window&&"transferControlToOffscreen"in f,h=function(t,e){var n={};if(t&&"object"===Yh(t))return Object.keys(t).forEach((function(r){t.hasOwnProperty(r)&&e(t[r])&&(n[r]=t[r])})),n;return t}(o,(function(t){return"function"!=typeof t}));if(l){var d=f.transferControlToOffscreen();h.type=h.type+"-gpu",u.postMessage({type:Vh,nodes:r,edges:i,layoutCfg:h,canvas:d},[d])}else u.postMessage({type:Gh,nodes:r,edges:i,layoutCfg:h});return u.onmessage=function(r){n.handleWorkerMessage(r,t,e)},!0},e.prototype.handleWorkerMessage=function(t,e,n){var r=this.graph,i=this.workerData,o=this.layoutCfg,a=t.data,s=a.type,u=function(){o.onTick&&o.onTick()},c=function(){o.onLayoutEnd&&o.onLayoutEnd(),r.emit("afterlayout")};switch(s){case zh:i.currentTick=a.currentTick,i.currentTickData=a,i.requestId||(i.requestId=Kh((function(){$h(e,a),r.refreshPositions(),u(),1===a.currentTick&&n&&n(),a.currentTick===a.totalTicks?c():i.currentTick===a.totalTicks&&(i.requestId2=Kh((function(){$h(e,i.currentTickData),r.refreshPositions(),i.requestId2=null,u(),c()}))),i.requestId=null})));break;case Fh:null==i.currentTick&&($h(e,a),this.refreshLayout(),n&&n(),r.emit("afterlayout"));break;case Wh:null==i.currentTick&&(!function(t,e){for(var n=t.nodes,r=e.vertexEdgeData,i=n.length,o=0;o<i;o++){var a=n[o],s=r[4*o],u=r[4*o+1];a.x=s,a.y=u}}(e,a),this.refreshLayout(),n&&n(),r.emit("afterlayout"));break;case Uh:console.warn("Web-Worker layout error!",a.message)}},e.prototype.updateLayoutCfg=function(t){var e=this.graph,n=this.layoutMethod,r=(this.layoutType,this.layoutCfg);if(this.layoutType=t.type,!n||n.destroyed)return this.layoutCfg=Object(h.A)({},r,t),void this.layout();this.data=this.setDataFromGraph(),this.stopWorker(),t.workerEnabled&&this.layoutWithWorker(this.data,null)||(n.init(this.data),n.updateCfg(t),e.emit("beforelayout"),n.execute(),n.isCustomLayout&&r.onLayoutEnd&&r.onLayoutEnd())},e.prototype.hasGPUVersion=function(t){for(var e=Qh.length,n=0;n<e;n++)if(Qh[n]===t)return!0;return!1},e.prototype.destroy=function(){var t=this.layoutMethod;t&&(t.destroy(),t.destroyed=!0);var e=this.worker;e&&(e.terminate(),this.worker=null),this.destroyed=!0,this.graph.set("layout",void 0),this.layoutCfg=void 0,this.layoutType=void 0,this.layoutMethod=void 0,this.graph=null},e}(Je);function $h(t,e){for(var n=t.nodes,r=e.nodes,i=n.length,o=0;o<i;o++){var a=n[o];a.x=r[o].x,a.y=r[o].y}}var td,ed=s.transform,nd=function(t){function e(e){var n=t.call(this,e)||this,r=n.get("defaultNode");return r||n.set("defaultNode",{type:"circle"}),r.type||(r.type="circle",n.set("defaultNode",r)),n.destroyed=!1,n}return Object(v.b)(e,t),e.prototype.initLayoutController=function(){var t=new Jh(this);this.set({layoutController:t})},e.prototype.initEventController=function(){var t=new Ln(this);this.set({eventController:t})},e.prototype.initCanvas=function(){var t=this.get("container");if("string"==typeof t&&(t=document.getElementById(t),this.set("container",t)),!t)throw new Error("invalid container");var e,n=this.get("width"),r=this.get("height");if("svg"===this.get("renderer"))e=new sn.Canvas({container:t,width:n,height:r});else{var i={container:t,width:n,height:r},o=this.get("pixelRatio");o&&(i.pixelRatio=o),e=new an.Canvas(i)}this.set("canvas",e)},e.prototype.initPlugins=function(){var t=this;Object(h.f)(t.get("plugins"),(function(e){!e.destroyed&&e.initPlugin&&e.initPlugin(t)}))},e.prototype.toDataURL=function(t,e){var n=this.get("canvas"),r=n.getRenderer(),i=n.get("el");t||(t="image/png");var o="";if("svg"===r){var a=i.cloneNode(!0),s=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),u=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",s);u.replaceChild(a,u.documentElement);var c=(new XMLSerializer).serializeToString(u);o="data:image/svg+xml;charset=utf8,"+encodeURIComponent(c)}else{var f=void 0,l=i.getContext("2d"),h=this.get("width"),d=this.get("height"),p=void 0;if(e){var g="undefined"!=typeof window?window.devicePixelRatio:1;f=l.getImageData(0,0,h*g,d*g),p=l.globalCompositeOperation,l.globalCompositeOperation="destination-over",l.fillStyle=e,l.fillRect(0,0,h,d)}o=i.toDataURL(t),e&&(l.clearRect(0,0,h,d),l.putImageData(f,0,0),l.globalCompositeOperation=p)}return o},e.prototype.toFullDataURL=function(t,e,n){var r=this.get("group").getCanvasBBox(),i=r.height,o=r.width,a=this.get("renderer"),s=gt(\'<id="virtual-image"></div>\'),u=n?n.backgroundColor:void 0,c=n?n.padding:void 0;c?Object(h.t)(c)&&(c=[c,c,c,c]):c=[0,0,0,0];var f=i+c[0]+c[2],l=o+c[1]+c[3],d={container:s,height:f,width:l,quickHit:!0},p="svg"===a?new sn.Canvas(d):new an.Canvas(d),g=this.get("group").clone(),v=Object(h.c)(g.getMatrix());v||(v=[1,0,0,0,1,0,0,0,1]);var y=(r.maxX+r.minX)/2,m=(r.maxY+r.minY)/2;v=ed(v,[["t",-y,-m],["t",o/2+c[3],i/2+c[0]]]),g.resetMatrix(),g.setMatrix(v),p.add(g);var b=p.get("el"),x="";e||(e="image/png"),setTimeout((function(){if("svg"===a){var n=b.cloneNode(!0),r=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),i=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",r);i.replaceChild(n,i.documentElement);var o=(new XMLSerializer).serializeToString(i);x="data:image/svg+xml;charset=utf8,"+encodeURIComponent(o)}else{var s=void 0,c=b.getContext("2d"),h=void 0;if(u){var d="undefined"!=typeof window?window.devicePixelRatio:1;s=c.getImageData(0,0,l*d,f*d),h=c.globalCompositeOperation,c.globalCompositeOperation="destination-over",c.fillStyle=u,c.fillRect(0,0,l,f)}x=b.toDataURL(e),u&&(c.clearRect(0,0,l,f),c.putImageData(s,0,0),c.globalCompositeOperation=h)}t&&t(x)}),16)},e.prototype.downloadFullImage=function(t,e,n){var r=this,i=this.get("group").getCanvasBBox(),o=i.height,a=i.width,s=this.get("renderer"),u=gt(\'<id="virtual-image"></div>\'),c=n?n.backgroundColor:void 0,f=n?n.padding:void 0;f?Object(h.t)(f)&&(f=[f,f,f,f]):f=[0,0,0,0];var l=o+f[0]+f[2],d=a+f[1]+f[3],p={container:u,height:l,width:d},g="svg"===s?new sn.Canvas(p):new an.Canvas(p),v=this.get("group").clone(),y=Object(h.c)(v.getMatrix());y||(y=[1,0,0,0,1,0,0,0,1]);var m=(i.maxX+i.minX)/2,b=(i.maxY+i.minY)/2;y=ed(y,[["t",-m,-b],["t",a/2+f[3],o/2+f[0]]]),v.resetMatrix(),v.setMatrix(y),g.add(v);var x=g.get("el");e||(e="image/png"),setTimeout((function(){var n="";if("svg"===s){var i=x.cloneNode(!0),o=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),a=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",o);a.replaceChild(i,a.documentElement);var u=(new XMLSerializer).serializeToString(a);n="data:image/svg+xml;charset=utf8,"+encodeURIComponent(u)}else{var f=void 0,h=x.getContext("2d"),p=void 0;if(c){var g="undefined"!=typeof window?window.devicePixelRatio:1;f=h.getImageData(0,0,d*g,l*g),p=h.globalCompositeOperation,h.globalCompositeOperation="destination-over",h.fillStyle=c,h.fillRect(0,0,d,l)}n=x.toDataURL(e),c&&(h.clearRect(0,0,d,l),h.putImageData(f,0,0),h.globalCompositeOperation=p)}var v=document.createElement("a"),y=(t||"graph")+("svg"===s?".svg":"."+e.split("/")[1]);r.dataURLToImage(n,s,v,y);var m=document.createEvent("MouseEvents");m.initEvent("click",!1,!1),v.dispatchEvent(m)}),16)},e.prototype.downloadImage=function(t,e,n){var r=this,i=this;i.isAnimating()&&i.stopAnimate();var o=i.get("canvas").getRenderer();e||(e="image/png");var a=(t||"graph")+("svg"===o?".svg":e.split("/")[1]),s=document.createElement("a");setTimeout((function(){var t=i.toDataURL(e,n);r.dataURLToImage(t,o,s,a);var u=document.createEvent("MouseEvents");u.initEvent("click",!1,!1),s.dispatchEvent(u)}),16)},e.prototype.dataURLToImage=function(t,e,n,r){if("undefined"!=typeof window)if(window.Blob&&window.URL&&"svg"!==e){var i=t.split(","),o="";if(i&&i.length>0){var a=i[0].match(/:(.*?);/);a&&a.length>=2&&(o=a[1])}for(var s=atob(i[1]),u=s.length,c=new Uint8Array(u);u--;)c[u]=s.charCodeAt(u);var f=new Blob([c],{type:o});window.navigator.msSaveBlob?window.navigator.msSaveBlob(f,r):n.addEventListener("click",(function(){n.download=r,n.href=window.URL.createObjectURL(f)}))}else n.addEventListener("click",(function(){n.download=r,n.href=t}))},e.prototype.addPlugin=function(t){t.destroyed||(this.get("plugins").push(t),t.initPlugin(this))},e.prototype.removePlugin=function(t){var e=this.get("plugins"),n=e.indexOf(t);n>=0&&(t.destroyPlugin(),e.splice(n,1))},e.prototype.setImageWaterMarker=function(t,e){void 0===t&&(t=Dn.waterMarkerImage);var n=this.get("container");Object(h.x)(n)&&(n=document.getElementById(n)),n.style.position||(n.style.position="relative");var r=this.get("graphWaterMarker"),i=Object(h.e)({},Dn.imageWaterMarkerConfig,e),o=i.width,a=i.height,s=i.compatible,u=i.image;if(!r){var c={container:n,width:o,height:a,capture:!1},f=this.get("pixelRatio");f&&(c.pixelRatio=f),r=new an.Canvas(c),this.set("graphWaterMarker",r)}r.get("el").style.display="none";var l=r.get("context"),d=u.rotate,p=u.x,g=u.y;l.rotate(-d*Math.PI/180);var v=new Image;v.crossOrigin="anonymous",v.src=t,v.onload=function(){if(l.drawImage(v,p,g,u.width,u.height),l.rotate(d*Math.PI/180),s)n.style.cssText="background-image: url("+r.get("el").toDataURL("image/png")+");background-repeat:repeat;";else{var t=document.querySelector(".g6-graph-watermarker");t||((t=document.createElement("div")).className="g6-graph-watermarker"),t.className="g6-graph-watermarker",r.destroyed||(t.style.cssText="background-image: url("+r.get("el").toDataURL("image/png")+");background-repeat:repeat;position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;z-index:-1;",n.appendChild(t))}}},e.prototype.setTextWaterMarker=function(t,e){var n=this.get("container");Object(h.x)(n)&&(n=document.getElementById(n)),n.style.position||(n.style.position="relative");var r=this.get("graphWaterMarker"),i=Object(h.e)({},Dn.textWaterMarkerConfig,e),o=i.width,a=i.height,s=i.compatible,u=i.text;if(!r){var c={container:n,width:o,height:a,capture:!1},f=this.get("pixelRatio");f&&(c.pixelRatio=f),r=new an.Canvas(c),this.set("graphWaterMarker",r)}r.get("el").style.display="none";var l=r.get("context"),d=u.rotate,p=u.fill,g=u.fontFamily,v=u.fontSize,y=u.baseline,m=u.x,b=u.y,x=u.lineHeight;l.rotate(-d*Math.PI/180),l.font=v+"px "+g,l.fillStyle=p,l.textBaseline=y;for(var w=t.length-1;w>=0;w--)l.fillText(t[w],m,b+w*x);if(l.rotate(d*Math.PI/180),s)n.style.cssText="background-image: url("+r.get("el").toDataURL("image/png")+");background-repeat:repeat;";else{var S=document.querySelector(".g6-graph-watermarker");S||((S=document.createElement("div")).className="g6-graph-watermarker"),S.style.cssText="background-image: url("+r.get("el").toDataURL("image/png")+");background-repeat:repeat;position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;z-index:99;",n.appendChild(S)}},e.prototype.destroy=function(){Object(h.f)(this.get("plugins"),(function(t){t.destroyPlugin()}));var e=this.get("tooltips");if(e)for(var n=0;n<e.length;n++){var r=e[n];if(r){var i=r.parentElement;i&&i.removeChild(r)}}this.get("eventController").destroy(),this.get("layoutController").destroy(),this.get("graphWaterMarker")&&this.get("graphWaterMarker").destroy(),document.querySelector(".g6-graph-watermarker")&&document.querySelector(".g6-graph-watermarker").remove(),t.prototype.destroy.call(this)},e}(je),rd=n(170),id=n.n(rd),od=Qe.traverseTree,ad=function(t,e){return t?Object(h.t)(t)?function(e){return t}:t:function(t){return e||1}},sd=function(t,e){var n=[],r=[],i={},o=0;for(o=0;o<t.length;o++){var a=t[o];i[a.id]=o,n.push(a.x),n.push(a.y),n.push(0),n.push(0),r.push([])}for(o=0;o<e.length;o++){var s=e[o];r[i[s.source]].push(i[s.target]),r[i[s.target]].push(i[s.source])}var u=0;for(o=0;o<t.length;o++){var c=n.length,f=r[o],l=f.length;n[4*o+2]=c,n[4*o+3]=f.length,u=Math.max(u,f.length);for(var h=0;h<l;++h){var d=f[h];n.push(+d)}}for(;n.length%4!=0;)n.push(0);return{array:new Float32Array(n),maxEdgePerVetex:u}},ud=function(t,e,n){var r=[],i=[],o={},a=0;for(a=0;a<t.length;a++){var s=t[a];o[s.id]=a,r.push(s.x),r.push(s.y),r.push(0),r.push(0),i.push([])}for(a=0;a<e.length;a++){var u=e[a];i[o[u.source]].push(o[u.target]),i[o[u.source]].push(n(u)),i[o[u.target]].push(o[u.source]),i[o[u.target]].push(n(u))}var c=0;for(a=0;a<t.length;a++){var f=r.length,l=i[a],h=l.length;r[4*a+2]=f,r[4*a+3]=h/2,c=Math.max(c,h/2);for(var d=0;d<h;++d){var p=l[d];r.push(+p)}}for(;r.length%4!=0;)r.push(0);return{array:new Float32Array(r),maxEdgePerVetex:c}},cd=function(t,e,n,r){var i=[],o=[],a={},s=0;for(s=0;s<t.length;s++){var u=t[s];a[u.id]=s,i.push(u.x),i.push(u.y),i.push(0),i.push(0),o.push([])}for(s=0;s<e.length;s++){var c=e[s];o[a[c.source]].push(a[c.target]),o[a[c.source]].push(n(c)),o[a[c.source]].push(r(c)),o[a[c.source]].push(0),o[a[c.target]].push(a[c.source]),o[a[c.target]].push(n(c)),o[a[c.target]].push(r(c)),o[a[c.target]].push(0)}var f=0;for(s=0;s<t.length;s++){var l=i.length,h=o[s],d=h.length;i[4*s+2]=l+1048576*d/4,i[4*s+3]=0,f=Math.max(f,d/4);for(var p=0;p<d;++p){var g=h[p];i.push(+g)}}for(;i.length%4!=0;)i.push(0);return{array:new Float32Array(i),maxEdgePerVetex:f}},fd=function(t,e){var n=[],r=t.length,i={};return e.forEach((function(e){t.forEach((function(t,o){if(void 0===i[e[t]]&&(i[e[t]]=Object.keys(i).length),n.push(i[e[t]]),o===r-1)for(;n.length%4!=0;)n.push(0)}))})),{array:new Float32Array(n),count:Object.keys(i).length}},ld=function(t){for(var e=[],n=t.length,r=t[0].length,i=function(r){t.forEach((function(t,i){if(e.push(t[r]),i===n-1)for(;e.length%4!=0;)e.push(0)}))},o=0;o<r;o++)i(o);return new Float32Array(e)},hd=function(t,e){var n={x:1/0,y:1/0},r={x:-1/0,y:-1/0},i="x",o="y";e&&["V","TB","BT"].indexOf(e)>=0&&(o="x",i="y");var a=0;od(t,(function(t){return a++,t.x>r.x&&(r.x=t.x),t.x<n.x&&(n.x=t.x),t.y>r.y&&(r.y=t.y),t.y<n.y&&(n.y=t.y),!0}));var s=2*Math.PI/a,u=r[o]-n[o];return 0===u||od(t,(function(e){var r=(e[o]-n[o])/u*(2*Math.PI-s)+s,a=Math.abs("x"===i?e.x-t.x:e.y-t.y);return e.x=a*Math.cos(r),e.y=a*Math.sin(r),!0})),t},dd=Object(v.a)(Object(v.a)(Object(v.a)(Object(v.a)({},Qe),u),f),c),pd=dd.radialLayout,gd=dd.traverseTree,vd=function(t){function e(e){var n=t.call(this,e)||this;return n.layoutAnimating=!1,n.set("removeList",[]),n.set("layoutMethod",n.getLayout()),n}return Object(v.b)(e,t),e.prototype.getLayout=function(){var t=this.get("layout");return t?"function"==typeof t?t:(t.type||(t.type="dendrogram"),t.direction||(t.direction="TB"),t.radial?function(e){var n=id.a[t.type](e,t);return pd(n),n}:function(e){return id.a[t.type](e,t)}):null},e.indexOfChild=function(t,e){var n=-1;return Object(h.f)(t,(function(t,r){if(e===t.id)return n=r,!1})),n},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.animate=!0,e},e.prototype.innerAddChild=function(t,e,n){var r=this,i=t.data;i&&(i.x=t.x,i.y=t.y,i.depth=t.depth);var o=r.addItem("node",i,!1);if(e){if(o.set("parent",e),n){var a=e.get("originAttrs");if(a)o.set("originAttrs",a);else{var s=e.getModel();o.set("originAttrs",{x:s.x,y:s.y})}}var u=e.get("children");u?u.push(o):e.set("children",[o]),r.addItem("edge",{source:e,target:o,id:e.get("id")+":"+o.get("id")},!1)}return Object(h.f)(t.children||[],(function(t){r.innerAddChild(t,o,n)})),r.emit("afteraddchild",{item:o,parent:e}),o},e.prototype.innerUpdateChild=function(t,n,r){var i=this,o=i.findById(t.id);if(o){Object(h.f)(t.children||[],(function(t){i.innerUpdateChild(t,o,r)}));var a,s,u=o.get("children");if(u)if(u.length>0)for(var c=u.length-1;c>=0;c--){var f=u[c].getModel();-1===e.indexOfChild(t.children||[],f.id)&&(i.innerRemoveChild(f.id,{x:t.x,y:t.y},r),u.splice(c,1))}o.get("originAttrs")&&(a=o.get("originAttrs").x,s=o.get("originAttrs").y);var l=o.getModel();r&&o.set("originAttrs",{x:l.x,y:l.y}),o.set("model",t.data),a===t.x&&s===t.y||o.updatePosition({x:t.x,y:t.y})}else i.innerAddChild(t,n,r)},e.prototype.innerRemoveChild=function(t,e,n){var r=this,i=r.findById(t);if(i)if(Object(h.f)(i.get("children"),(function(t){r.innerRemoveChild(t.getModel().id,e,n)})),n){var o=i.getModel();i.set("to",e),i.set("originAttrs",{x:o.x,y:o.y}),r.get("removeList").push(i)}else r.removeItem(i)},e.prototype.changeData=function(t){var e=this;this.getNodes().map((function(t){return e.clearItemStates(t)})),this.getEdges().map((function(t){return e.clearItemStates(t)})),t?(e.data(t),e.render()):e.layout(this.get("fitView"))},e.prototype.changeLayout=function(t){console.warn("Please call updateLayout instead of changeLayout. changeLayout will be discarded soon");this.updateLayout(t)},e.prototype.updateLayout=function(t){t?(this.set("layout",t),this.set("layoutMethod",this.getLayout()),this.layout()):console.warn("layout cannot be null")},e.prototype.refreshLayout=function(t){console.warn("Please call layout instead of refreshLayout. refreshLayout will be discarded soon");this.layout(t)},e.prototype.layout=function(t){var e=this.get("data"),n=this.get("layoutMethod")(e,this.get("layout")),r=this.get("animate");(this.emit("beforerefreshlayout",{data:e,layoutData:n}),this.emit("beforelayout"),this.innerUpdateChild(n,void 0,r),t)&&this.get("viewController").fitView();r?this.layoutAnimate(n):(this.refresh(),this.paint()),this.emit("afterrefreshlayout",{data:e,layoutData:n}),this.emit("afterlayout")},e.prototype.addChild=function(t,e){this.emit("beforeaddchild",{model:t,parent:e}),Object(h.x)(e)||(e=e.get("id"));var n=this.findDataById(e);n&&(n.children||(n.children=[]),n.children.push(t),this.changeData())},e.prototype.updateChildren=function(t,e){e&&this.findById(e)?(this.findDataById(e).children=t,this.changeData()):console.warn("Update children failed! There is no node with id \'"+e+"\'")},e.prototype.updateChild=function(t,n){if(n&&this.findById(n)){var r=this.findDataById(n),i=this.findById(t.id);if(r.children||(r.children=[]),i){var o=e.indexOfChild(r.children,t.id);r.children[o]=t}else r.children.push(t);this.changeData()}else this.changeData(t)},e.prototype.removeChild=function(t){var n=this.findById(t);if(n){var r=n.get("parent");if(r&&!r.destroyed){var i=this.findDataById(r.get("id")),o=i&&i.children||[],a=n.getModel(),s=e.indexOfChild(o,a.id);o.splice(s,1)}this.changeData()}},e.prototype.findDataById=function(t,e){var n=this;if(e||(e=n.get("data")),t===e.id)return e;var r=null;return Object(h.f)(e.children||[],(function(e){return e.id===t?(r=e,!1):!(r=n.findDataById(t,e))&&void 0})),r},e.prototype.layoutAnimate=function(t,e){var n=this,r=this.get("animateCfg");n.emit("beforeanimate",{data:t}),n.getEdges().forEach((function(t){var e=t.get("model");e.sourceAnchor||(e.sourceAnchor=t.get("sourceAnchorIndex"))})),this.get("canvas").animate((function(r){gd(t,(function(i){var o=n.findById(i.id);if(o){var a=o.get("originAttrs"),s=o.get("model");if(a||(a={x:s.x,y:s.y},o.set("originAttrs",a)),e){var u=e(o,r,a,t);o.set("model",Object.assign(s,u))}else s.x=a.x+(i.x-a.x)*r,s.y=a.y+(i.y-a.y)*r}return!0})),Object(h.f)(n.get("removeList"),(function(t){var e=t.getModel(),n=t.get("originAttrs"),i=t.get("to");e.x=n.x+(i.x-n.x)*r,e.y=n.y+(i.y-n.y)*r})),n.refreshPositions()}),{duration:r.duration,easing:r.ease,callback:function(){Object(h.f)(n.getNodes(),(function(t){t.set("originAttrs",null)})),Object(h.f)(n.get("removeList"),(function(t){n.removeItem(t)})),n.set("removeList",[]),r.callback&&r.callback(),n.emit("afteranimate",{data:t})},delay:r.delay})},e.prototype.stopLayoutAnimate=function(){this.get("canvas").stopAnimate(),this.emit("layoutanimateend",{data:this.get("data")}),this.layoutAnimating=!1},e.prototype.isLayoutAnimating=function(){return this.layoutAnimating},e.prototype.render=function(){if(!this.get("data"))throw new Error("data must be defined first");this.clear(),this.emit("beforerender"),this.layout(this.get("fitView")),this.emit("afterrender")},e.prototype.save=function(){return this.get("data")},e}(nd),yd=function(){function t(t){this._cfgs=Object(h.e)(this.getDefaultCfgs(),t),this._events={},this.destroyed=!1}return t.prototype.getDefaultCfgs=function(){return{}},t.prototype.initPlugin=function(t){var e=this;e.set("graph",t);var n=e.getEvents(),r={};Object(h.f)(n,(function(n,i){var o=Object(h.J)(e,n);r[i]=o,t.on(i,o)})),this._events=r,this.init()},t.prototype.getEvents=function(){return{}},t.prototype.get=function(t){return this._cfgs[t]},t.prototype.set=function(t,e){this._cfgs[t]=e},t.prototype.destroy=function(){},t.prototype.destroyPlugin=function(){this.destroy();var t=this.get("graph"),e=this._events;Object(h.f)(e,(function(e,n){t.off(n,e)})),this._events=null,this._cfgs=null,this.destroyed=!0},t}(),md=(td=function(t,e){return(td=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}td(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),bd="url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHBhdHRlcm4gaWQ9ImdyaWQiIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTSAwIDEwIEwgNDAgMTAgTSAxMCAwIEwgMTAgNDAgTSAwIDIwIEwgNDAgMjAgTSAyMCAwIEwgMjAgNDAgTSAwIDMwIEwgNDAgMzAgTSAzMCAwIEwgMzAgNDAiIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2UwZTBlMCIgb3BhY2l0eT0iMC4yIiBzdHJva2Utd2lkdGg9IjEiLz48cGF0aCBkPSJNIDQwIDAgTCAwIDAgMCA0MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZTBlMGUwIiBzdHJva2Utd2lkdGg9IjEiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JpZCkiLz48L3N2Zz4=)",xd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return md(e,t),e.prototype.getDefaultCfgs=function(){return{img:bd}},e.prototype.init=function(){var t=this.get("graph"),e=t.get("minZoom"),n=t.get("container"),r=t.get("canvas").get("el"),i=t.get("width"),o=t.get("height"),a=this.get("img")||bd,s=gt("<div class=\'g6-grid-container\' style=\\"position: absolute; left:0;top:0;right:0;bottom:0;overflow: hidden;z-index: -1;\\"></div>"),u=gt("<div \\n class=\'g6-grid\' \\n style=\'position:absolute;\\n transform-origin: 0% 0% 0px;\\n background-image: "+a+";\\n user-select: none\\n \'></div>");s.appendChild(u),vt(s,{width:i+"px",height:o+"px",left:n.offsetLeft+"px",top:n.offsetTop+"px"}),vt(u,{width:i/e+"px",height:o/e+"px",left:"0px",top:"0px"}),n.insertBefore(s,r),this.set("container",s),this.set("gridContainer",u)},e.prototype.getEvents=function(){return{viewportchange:"updateGrid"}},e.prototype.updateGrid=function(t){var e=this.get("gridContainer"),n=t.matrix;n||(n=[1,0,0,0,1,0,0,0,1]),vt(e,{transform:"matrix("+n[0]+", "+n[1]+", "+n[3]+", "+n[4]+", 0, 0)"})},e.prototype.getContainer=function(){return this.get("container")},e.prototype.destroy=function(){var t=this.get("graph").get("container"),e=this.get("container");t.removeChild(e)},e}(yd),wd=n(83),Sd=n.n(wd),Ed=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Sd()("\\n .g6-component-contextmenu {\\n border: 1px solid #e2e2e2;\\n border-radius: 4px;\\n font-size: 12px;\\n color: #545454;\\n background-color: rgba(255, 255, 255, 0.9);\\n padding: 10px 8px;\\n box-shadow: rgb(174, 174, 174) 0px 0px 10px;\\n }\\n .g6-contextmenu-ul {\\n padding: 0;\\n margin: 0;\\n list-style: none;\\n }\\n\\n");var _d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ed(e,t),e.prototype.getDefaultCfgs=function(){return{offsetX:6,offsetY:6,handleMenuClick:void 0,getContent:function(t){return"\\n <ul class=\'g6-contextmenu-ul\'>\\n <li>èœå•é¡¹1</li>\\n <li>èœå•é¡¹2</li>\\n </ul>\\n "},shouldBegin:function(t){return!0},onHide:function(){return!0},itemTypes:["node","edge","combo"]}},e.prototype.getEvents=function(){return{contextmenu:"onMenuShow"}},e.prototype.init=function(){var t=gt("<div class="+(this.get("className")||"g6-component-contextmenu")+"></div>");vt(t,{top:"0px",position:"absolute",visibility:"hidden"});var e=this.get("container");e||(e=this.get("graph").get("container")),Object(h.x)(e)&&(e=document.getElementById(e)),e.appendChild(t),this.set("menu",t)},e.prototype.onMenuShow=function(t){var e=this;t.preventDefault(),t.stopPropagation();var n=this.get("itemTypes");if(t.item){if(t.item&&t.item.getType&&-1===n.indexOf(t.item.getType()))return void e.onMenuHide()}else if(-1===n.indexOf("canvas"))return;if(this.get("shouldBegin")(t)){var r=this.get("menu"),i=this.get("getContent"),o=this.get("graph"),a=i(t,o);Object(h.x)(a)?r.innerHTML=a:r.innerHTML=a.outerHTML,this.removeMenuEventListener();var s=this.get("handleMenuClick");if(s){var u=function(e){s(e.target,t.item,o)};this.set("handleMenuClickWrapper",u),r.addEventListener("click",u)}var c=o.get("width"),f=o.get("height"),l=r.getBoundingClientRect(),d=this.get("offsetX")||0,p=this.get("offsetY")||0,g=o.getContainer().offsetTop,v=o.getContainer().offsetLeft,y=t.canvasX+v+d,m=t.canvasY+g+p;y+l.width>c&&(y=t.canvasX-l.width-d+v),m+l.height>f&&(m=t.canvasY-l.height-p+g),vt(r,{top:m+"px",left:y+"px",visibility:"visible"});var b=function(t){e.onMenuHide()};document.body.addEventListener("click",b),this.set("handler",b)}},e.prototype.removeMenuEventListener=function(){var t=this.get("handleMenuClickWrapper"),e=this.get("handler");t&&(this.get("menu").removeEventListener("click",t),this.set("handleMenuClickWrapper",null));e&&document.body.removeEventListener("click",e)},e.prototype.onMenuHide=function(){var t=this.get("menu");t&&vt(t,{visibility:"hidden"}),this.removeMenuEventListener()},e.prototype.destroy=function(){var t=this.get("menu");if(this.removeMenuEventListener(),t){var e=this.get("container");e||(e=this.get("graph").get("container")),Object(h.x)(e)&&(e=document.getElementById(e)),e.removeChild(t)}},e}(yd),Od=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),kd=function(){return(kd=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Md=Math.max,Ad=s.transform,Td=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handleUpdateCanvas=Object(h.d)((function(t){var n=e;n.destroyed||n.updateCanvas()}),100,!1),e}return Od(e,t),e.prototype.getDefaultCfgs=function(){return{container:null,className:"g6-minimap",viewportClassName:"g6-minimap-viewport",type:"default",padding:50,size:[200,120],delegateStyle:{fill:"#40a9ff",stroke:"#096dd9"},refresh:!0}},e.prototype.getEvents=function(){return{beforepaint:"updateViewport",beforeanimate:"disableRefresh",afteranimate:"enableRefresh",viewportchange:"disableOneRefresh"}},e.prototype.disableRefresh=function(){this.set("refresh",!1)},e.prototype.enableRefresh=function(){this.set("refresh",!0),this.updateCanvas()},e.prototype.disableOneRefresh=function(){this.set("viewportChange",!0)},e.prototype.initViewport=function(){var t=this,e=this._cfgs,n=e.size,r=e.graph;if(!this.destroyed){var i=this.get("canvas").get("container"),o=gt("\\n <div\\n class="+e.viewportClassName+"\\n style=\'position:absolute;\\n left:0;\\n top:0;\\n box-sizing:border-box;\\n outline: 2px solid #1980ff\'\\n draggable=true>\\n </div>"),a=navigator.userAgent.toLowerCase().indexOf("firefox")>-1,s=0,u=0,c=!1,f=0,l=0,d=0,p=0,g=0,v=0;o.addEventListener("dragstart",(function(i){var a,h;if(i.dataTransfer){var y=new Image;y.src="data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' %3E%3Cpath /%3E%3C/svg%3E",null===(h=(a=i.dataTransfer).setDragImage)||void 0===h||h.call(a,y,0,0);try{i.dataTransfer.setData("text/html","view-port-minimap")}catch(t){i.dataTransfer.setData("text","view-port-minimap")}}if(e.refresh=!1,i.target===o){var m=o.style;f=parseInt(m.left,10),l=parseInt(m.top,10),d=parseInt(m.width,10),p=parseInt(m.height,10),d>n[0]||p>n[1]||(v=r.getZoom(),g=t.get("ratio"),c=!0,s=i.clientX,u=i.clientY)}}),!1),o.addEventListener(a?"dragover":"drag",(function(t){if(c&&!Object(h.s)(t.clientX)&&!Object(h.s)(t.clientY)){var e=s-t.clientX,i=u-t.clientY;(f-e<0||f-e+d>=n[0])&&(e=0),(l-i<0||l-i+p>=n[1])&&(i=0),vt(o,{left:(f-=e)+"px",top:(l-=i)+"px"}),r.translate(e*v/g,i*v/g),s=t.clientX,u=t.clientY}}),!1),o.addEventListener("dragend",(function(){c=!1,e.refresh=!0}),!1),this.set("viewport",o),i.appendChild(o)}},e.prototype.updateViewport=function(){if(!this.destroyed){var t=this.get("ratio"),e=(this.get("dx"),this.get("dy"),this.get("totaldx")),n=this.get("totaldy"),r=this.get("graph"),i=this.get("size"),o=r.get("width"),a=r.get("height"),s=r.getPointByCanvas(0,0),u=r.getPointByCanvas(o,a),c=this.get("viewport");c||this.initViewport();r.getZoom();var f=(u.x-s.x)*t,l=(u.y-s.y)*t,h=s.x*t+e,d=s.y*t+n,p=h+f,g=d+l;h<0&&(f+=h,h=0),p>i[0]&&(f-=p-i[0]),d<0&&(l+=d,d=0),g>i[1]&&(l-=g-i[1]),this.set("ratio",t),vt(c,{left:h+"px",top:d+"px",width:f+"px",height:l+"px"})}},e.prototype.updateGraphShapes=function(){var t=this._cfgs.graph,e=this.get("canvas"),n=t.get("group");if(!n.destroyed){var r=n.clone();r.resetMatrix(),e.clear(),e.add(r),"svg"===t.get("renderer")&&this.updateVisible(r)}},e.prototype.updateVisible=function(t){var e=this;if(t.isGroup()||t.get("visible")){var n=t.get("children");if(!n||!n.length)return;n.forEach((function(t){t.get("visible")||t.hide(),e.updateVisible(t)}))}else t.hide()},e.prototype.updateKeyShapes=function(){var t=this,e=this._cfgs.graph;Object(h.f)(e.getEdges(),(function(e){t.updateOneEdgeKeyShape(e)})),Object(h.f)(e.getNodes(),(function(e){t.updateOneNodeKeyShape(e)})),this.clearDestroyedShapes()},e.prototype.updateOneNodeKeyShape=function(t){var e=this.get("canvas"),n=e.get("children")[0]||e.addGroup(),r=this.get("itemMap")||{},i=r[t.get("id")],o=t.getBBox(),a=t.get("keyShape").clone(),s=a.attr(),u={x:o.centerX,y:o.centerY};i?u=Object.assign(s,u):(i=a,n.add(i));var c=i.get("type");"rect"!==c&&"image"!==c||(u.x=o.minX,u.y=o.minY),i.attr(u),t.isVisible()||i.hide(),i.exist=!0,r[t.get("id")]=i,this.set("itemMap",r)},e.prototype.updateDelegateShapes=function(){var t=this,e=this._cfgs.graph;Object(h.f)(e.getEdges(),(function(e){t.updateOneEdgeKeyShape(e)})),Object(h.f)(e.getNodes(),(function(e){t.updateOneNodeDelegateShape(e)})),this.clearDestroyedShapes()},e.prototype.clearDestroyedShapes=function(){var t=this.get("itemMap")||{},e=Object.keys(t);if(e&&0!==e.length)for(var n=e.length-1;n>=0;n--){var r=t[e[n]],i=r.exist;r.exist=!1,i||(r.remove(),delete t[e[n]])}},e.prototype.updateOneEdgeKeyShape=function(t){var e=this.get("canvas"),n=e.get("children")[0]||e.addGroup(),r=this.get("itemMap")||{},i=r[t.get("id")];if(i){var o=t.get("keyShape").attr("path");i.attr("path",o)}else i=t.get("keyShape").clone(),n.add(i),i.toBack();t.isVisible()||i.hide(),i.exist=!0,r[t.get("id")]=i,this.set("itemMap",r)},e.prototype.updateOneNodeDelegateShape=function(t){var e=this.get("canvas"),n=e.get("children")[0]||e.addGroup(),r=this.get("delegateStyle"),i=this.get("itemMap")||{},o=i[t.get("id")],a=t.getBBox();if(o){var s={x:a.minX,y:a.minY,width:a.width,height:a.height};o.attr(s)}else o=n.addShape("rect",{attrs:kd({x:a.minX,y:a.minY,width:a.width,height:a.height},r),name:"minimap-node-shape"});t.isVisible()||o.hide(),o.exist=!0,i[t.get("id")]=o,this.set("itemMap",i)},e.prototype.init=function(){this.initContainer(),this.get("graph").on("afterupdateitem",this.handleUpdateCanvas),this.get("graph").on("afteritemstatechange",this.handleUpdateCanvas),this.get("graph").on("afteradditem",this.handleUpdateCanvas),this.get("graph").on("afterremoveitem",this.handleUpdateCanvas),this.get("graph").on("afterrender",this.handleUpdateCanvas),this.get("graph").on("afterlayout",this.handleUpdateCanvas)},e.prototype.initContainer=function(){var t=this.get("graph"),e=this.get("size"),n=this.get("className"),r=this.get("container"),i=gt("<div class=\'"+n+"\' style=\'width: "+e[0]+"px; height: "+e[1]+"px; overflow: hidden\'></div>");Object(h.x)(r)&&(r=document.getElementById(r)),r?r.appendChild(i):t.get("container").appendChild(i),this.set("container",i);var o,a=gt(\'<div class="g6-minimap-container" style="position: relative;"></div>\');i.appendChild(a),o="svg"===t.get("renderer")?new sn.Canvas({container:a,width:e[0],height:e[1]}):new an.Canvas({container:a,width:e[0],height:e[1]}),this.set("canvas",o),this.updateCanvas()},e.prototype.updateCanvas=function(){if(this.get("refresh")){var t=this.get("graph");if(!t.get("destroyed")){this.get("viewportChange")&&(this.set("viewportChange",!1),this.updateViewport());var e=this.get("size"),n=this.get("canvas"),r=this.get("type"),i=this.get("padding");if(!n.destroyed){switch(r){case"default":this.updateGraphShapes();break;case"keyShape":this.updateKeyShapes();break;case"delegate":this.updateDelegateShapes()}var o=n.get("children")[0];if(o){o.resetMatrix();var a=o.getCanvasBBox(),s=t.get("canvas").getCanvasBBox(),u=s.width,c=s.height;Number.isFinite(a.width)&&(u=Md(a.width,u),c=Md(a.height,c)),u+=2*i,c+=2*i;var f=Math.min(e[0]/u,e[1]/c),l=[1,0,0,0,1,0,0,0,1],h=0,d=0;Number.isFinite(a.minX)&&(h=-a.minX),Number.isFinite(a.minY)&&(d=-a.minY);var p=(e[0]-(u-2*i)*f)/2,g=(e[1]-(c-2*i)*f)/2;l=Ad(l,[["t",h,d],["s",f,f],["t",p,g]]),o.setMatrix(l),this.set("ratio",f),this.set("totaldx",p+h*f),this.set("totaldy",g+d*f),this.set("dx",p),this.set("dy",g),this.updateViewport()}}}}},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.getViewport=function(){return this.get("viewport")},e.prototype.getContainer=function(){return this.get("container")},e.prototype.destroy=function(){this.get("canvas").destroy();var t=this.get("container");t.parentNode.removeChild(t)},e}(yd),Cd=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function Id(t,e,n){var r=t.x-e.x,i=t.y-e.y;return!n||Math.abs(r)>n||Math.abs(i)>n?Math.sqrt(r*r+i*i):n}function Pd(t,e){var n=(e.source.y-e.target.y)/(e.source.x-e.target.x),r=(n*n*e.source.x+n*(t.y-e.source.y)+t.x)/(n*n+1);return{x:r,y:n*(r-e.source.x)+e.source.y}}var jd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Cd(e,t),e.prototype.getDefaultCfgs=function(){return{edgeBundles:[],edgePoints:[],K:.1,lambda:.1,divisions:1,divRate:2,cycles:6,iterations:90,iterRate:.6666667,bundleThreshold:.6,eps:1e-6,onLayoutEnd:function(){},onTick:function(){}}},e.prototype.init=function(){var t=this.get("graph"),e=this.get("onTick");this.set("tick",(function(){e&&e(),t.refreshPositions()}))},e.prototype.bundling=function(t){var e=this;if(e.set("data",t),!e.isTicking()){var n=t.edges||[],r=t.nodes||[],i={},o=!1;if(r.forEach((function(t){null!==t.x&&null!==!t.y&&void 0!==t.x&&void 0!==!t.y||(o=!0),i[t.id]=t})),o)throw new Error("please layout the graph or assign x and y for nodes first");e.set("nodeIdMap",i);var a=e.get("divisions"),s=e.get("divRate"),u=e.divideEdges(a);e.set("edgePoints",u);var c=e.getEdgeBundles();e.set("edgeBundles",c);for(var f=e.get("cycles"),l=e.get("iterations"),h=e.get("iterRate"),d=e.get("lambda"),p=0;p<f;p++){for(var g=function(t){var r=[];n.forEach((function(t,n){if(t.source!==t.target){var o=i[t.source],s=i[t.target];r[n]=e.getEdgeForces({source:o,target:s},n,a,d);for(var c=0;c<a+1;c++)u[n][c].x+=r[n][c].x,u[n][c].y+=r[n][c].y}}))},v=0;v<l;v++)g();d/=2,a*=s,l*=h,u=e.divideEdges(a),e.set("edgePoints",u)}n.forEach((function(t,e){t.source!==t.target&&(t.type="polyline",t.controlPoints=u[e].slice(1,u[e].length-1))})),e.get("graph").refresh()}},e.prototype.updateBundling=function(t){var e=this,n=t.data;if(n&&e.set("data",n),e.get("ticking")&&e.set("ticking",!1),Object.keys(t).forEach((function(n){e.set(n,t[n])})),t.onTick){var r=this.get("graph");e.set("tick",(function(){t.onTick(),r.refresh()}))}e.bundling(n)},e.prototype.divideEdges=function(t){var e=this,n=e.get("data").edges,r=e.get("nodeIdMap"),i=e.get("edgePoints");return i&&void 0!==i||(i=[]),n.forEach((function(n,o){i[o]&&void 0!==i[o]||(i[o]=[]);var a=r[n.source],s=r[n.target];if(1===t)i[o].push({x:a.x,y:a.y}),i[o].push({x:.5*(a.x+s.x),y:.5*(a.y+s.y)}),i[o].push({x:s.x,y:s.y});else{var u=(i[o]&&i[o]!==[]?e.getEdgeLength(i[o]):Id({x:a.x,y:a.y},{x:s.x,y:s.y}))/(t+1),c=u,f=[{x:a.x,y:a.y}];i[o].forEach((function(t,e){if(0!==e){for(var n=Id(t,i[o][e-1]);n>c;){var r=c/n,a={x:i[o][e-1].x,y:i[o][e-1].y};a.x+=r*(t.x-i[o][e-1].x),a.y+=r*(t.y-i[o][e-1].y),f.push(a),n-=c,c=u}c-=n}})),f.push({x:s.x,y:s.y}),i[o]=f}})),i},e.prototype.getEdgeLength=function(t){var e=0;return t.forEach((function(n,r){0!==r&&(e+=Id(n,t[r-1]))})),e},e.prototype.getEdgeBundles=function(){var t=this,e=t.get("data").edges||[],n=t.get("bundleThreshold"),r=t.get("nodeIdMap"),i=t.get("edgeBundles");return i||(i=[]),e.forEach((function(t,e){i[e]&&void 0!==i[e]||(i[e]=[])})),e.forEach((function(o,a){var s=r[o.source],u=r[o.target];e.forEach((function(e,o){if(!(o<=a)){var c=r[e.source],f=r[e.target];t.getBundleScore({source:s,target:u},{source:c,target:f})>=n&&(i[a].push(o),i[o].push(a))}}))})),i},e.prototype.getBundleScore=function(t,e){return t.vx=t.target.x-t.source.x,t.vy=t.target.y-t.source.y,e.vx=e.target.x-e.source.x,e.vy=e.target.y-e.source.y,t.length=Id({x:t.source.x,y:t.source.y},{x:t.target.x,y:t.target.y}),e.length=Id({x:e.source.x,y:e.source.y},{x:e.target.x,y:e.target.y}),this.getAngleScore(t,e)*this.getScaleScore(t,e)*this.getPositionScore(t,e)*this.getVisibilityScore(t,e)},e.prototype.getAngleScore=function(t,e){return function(t,e){return t.x*e.x+t.y*e.y}({x:t.vx,y:t.vy},{x:e.vx,y:e.vy})/(t.length*e.length)},e.prototype.getScaleScore=function(t,e){var n=(t.length+e.length)/2;return 2/(n/Math.min(t.length,e.length)+Math.max(t.length,e.length)/n)},e.prototype.getPositionScore=function(t,e){var n=(t.length+e.length)/2;return n/(n+Id({x:(t.source.x+t.target.x)/2,y:(t.source.y+t.target.y)/2},{x:(e.source.x+e.target.x)/2,y:(e.source.y+e.target.y)/2}))},e.prototype.getVisibilityScore=function(t,e){var n=this.getEdgeVisibility(t,e),r=this.getEdgeVisibility(e,t);return n<r?n:r},e.prototype.getEdgeVisibility=function(t,e){var n=Pd(e.source,t),r=Pd(e.target,t),i={x:(n.x+r.x)/2,y:(n.y+r.y)/2},o={x:(t.source.x+t.target.x)/2,y:(t.source.y+t.target.y)/2};return Math.max(0,1-2*Id(i,o)/Id(n,r))},e.prototype.getEdgeForces=function(t,e,n,r){for(var i=this.get("edgePoints"),o=this.get("K")/(Id(t.source,t.target)*(n+1)),a=[{x:0,y:0}],s=1;s<n;s++){var u={x:0,y:0},c=this.getSpringForce({pre:i[e][s-1],cur:i[e][s],next:i[e][s+1]},o),f=this.getElectrostaticForce(s,e);u.x=r*(c.x+f.x),u.y=r*(c.y+f.y),a.push(u)}return a.push({x:0,y:0}),a},e.prototype.getSpringForce=function(t,e){var n=t.pre.x+t.next.x-2*t.cur.x,r=t.pre.y+t.next.y-2*t.cur.y;return{x:n*=e,y:r*=e}},e.prototype.getElectrostaticForce=function(t,e){var n=this.get("eps"),r=this.get("edgeBundles"),i=this.get("edgePoints"),o=r[e],a={x:0,y:0};return o.forEach((function(r){var o={x:i[r][t].x-i[e][t].x,y:i[r][t].y-i[e][t].y};if(Math.abs(o.x)>n||Math.abs(o.y)>n){var s=1/Id(i[r][t],i[e][t]);a.x+=o.x*s,a.y+=o.y*s}})),a},e.prototype.isTicking=function(){return this.get("ticking")},e.prototype.getSimulation=function(){return this.get("forceSimulation")},e.prototype.destroy=function(){this.get("ticking")&&this.getSimulation().stop(),t.prototype.destroy.call(this)},e}(yd),Dd=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Nd=function(){return(Nd=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Rd={stroke:"#000",strokeOpacity:.8,lineWidth:2,fillOpacity:.1,fill:"#ccc"},Ld=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dd(e,t),e.prototype.getDefaultCfgs=function(){return{trigger:"mousemove",d:1.5,r:300,delegateStyle:Object(h.c)(Rd),showLabel:!1,maxD:5,minD:0,scaleRBy:"unset",scaleDBy:"unset",showDPercent:!0}},e.prototype.getEvents=function(){var t;switch(this.get("trigger")){case"click":t={click:"magnify"};break;case"drag":t={click:"createDelegate"};break;default:t={mousemove:"magnify"}}return t},e.prototype.init=function(){var t=this.get("r");this.set("cachedMagnifiedModels",[]),this.set("cachedOriginPositions",{}),this.set("r2",t*t);var e=this.get("d");this.set("molecularParam",(e+1)*t)},e.prototype.createDelegate=function(t){var e=this,n=this,r=n.get("delegate");r&&!r.destroyed||(n.magnify(t),(r=n.get("delegate")).on("dragstart",(function(t){n.set("delegateCenterDiff",{x:r.attr("x")-t.x,y:r.attr("y")-t.y})})),r.on("drag",(function(t){n.magnify(t)})),"wheel"===this.get("scaleDBy")&&r.on("mousewheel",(function(t){e.scaleDByWheel(t)})),"wheel"===this.get("scaleRBy")&&r.on("mousewheel",(function(t){n.scaleRByWheel(t)})))},e.prototype.scaleRByWheel=function(t){if(t&&t.originalEvent){t.preventDefault&&t.preventDefault();var e,n=this.get("graph"),r=this.get("delegate"),i=(r?{x:r.attr("x"),y:r.attr("y")}:void 0)||n.getPointByClient(t.clientX,t.clientY);e=t.originalEvent.wheelDelta<0?.95:1/.95;var o=this.get("maxR"),a=this.get("minR"),s=this.get("r");(s>(o||n.get("height"))&&e>1||s<(a||.05*n.get("height"))&&e<1)&&(e=1),s*=e,this.set("r",s),this.set("r2",s*s);var u=this.get("d");this.set("molecularParam",(u+1)*s),this.set("delegateCenterDiff",void 0),this.magnify(t,i)}},e.prototype.scaleRByDrag=function(t){if(t){var e,n=this.get("dragPrePos"),r=this.get("graph"),i=r.getPointByClient(t.clientX,t.clientY);e=t.x-n.x<0?.95:1/.95;var o=this.get("maxR"),a=this.get("minR"),s=this.get("r");(s>(o||r.get("height"))&&e>1||s<(a||.05*r.get("height"))&&e<1)&&(e=1),s*=e,this.set("r",s),this.set("r2",s*s);var u=this.get("d");this.set("molecularParam",(u+1)*s),this.magnify(t,i),this.set("dragPrePos",{x:t.x,y:t.y})}},e.prototype.scaleDByWheel=function(t){if(t||t.originalEvent){t.preventDefault&&t.preventDefault();var e=0;e=t.originalEvent.wheelDelta<0?-.1:.1;var n=this.get("d")+e,r=this.get("maxD"),i=this.get("minD");if(n<r&&n>i){this.set("d",n);var o=this.get("r");this.set("molecularParam",(n+1)*o);var a=this.get("delegate"),s=a?{x:a.attr("x"),y:a.attr("y")}:void 0;this.set("delegateCenterDiff",void 0),this.magnify(t,s)}}},e.prototype.scaleDByDrag=function(t){var e=this.get("dragPrePos"),n=t.x-e.x>0?.1:-.1,r=this.get("d")+n,i=this.get("maxD"),o=this.get("minD");if(r<i&&r>o){this.set("d",r);var a=this.get("r");this.set("molecularParam",(r+1)*a),this.magnify(t)}this.set("dragPrePos",{x:t.x,y:t.y})},e.prototype.magnify=function(t,e){this.restoreCache();var n=this.get("graph"),r=this.get("cachedMagnifiedModels"),i=this.get("cachedOriginPositions"),o=this.get("showLabel"),a=this.get("r"),s=this.get("r2"),u=this.get("d"),c=this.get("molecularParam"),f=n.getNodes(),l=f.length,h=e?{x:e.x,y:e.y}:{x:t.x,y:t.y};!this.get("dragging")||"mousemove"!==this.get("trigger")&&"click"!==this.get("trigger")||(h=this.get("cacheCenter"));var d=this.get("delegateCenterDiff");d&&(h.x+=d.x,h.y+=d.y),this.updateDelegate(h,a);for(var p=0;p<l;p++){var g=f[p].getModel(),v=g.x,y=g.y;if(!isNaN(v)&&!isNaN(y)){var m=(v-h.x)*(v-h.x)+(y-h.y)*(y-h.y);if(!isNaN(m)&&m<s&&0!==m){var b=Math.sqrt(m),x=c*b/(u*b+a),w=(v-h.x)/b,S=(y-h.y)/b;if(g.x=w*x+h.x,g.y=S*x+h.y,i[g.id]||(i[g.id]={x:v,y:y,texts:[]}),r.push(g),o&&2*b<a)for(var E=f[p].getContainer().getChildren(),_=E.length,O=0;O<_;O++){var k=E[O];"text"===k.get("type")&&(i[g.id].texts.push({visible:k.get("visible"),shape:k}),k.set("visible",!0))}}}}n.refreshPositions()},e.prototype.restoreCache=function(){for(var t=this.get("cachedMagnifiedModels"),e=this.get("cachedOriginPositions"),n=t.length,r=0;r<n;r++){var i=t[r],o=e[i.id];i.x=o.x,i.y=o.y;for(var a=o.texts.length,s=0;s<a;s++){var u=o.texts[s];u.shape.set("visible",u.visible)}}this.set("cachedMagnifiedModels",[]),this.set("cachedOriginPositions",{})},e.prototype.updateParams=function(t){var e=t.r,n=t.d,r=t.trigger,i=t.minD,o=t.maxD,a=t.minR,s=t.maxR,u=t.scaleDBy,c=t.scaleRBy;isNaN(t.r)||(this.set("r",e),this.set("r2",e*e)),isNaN(n)||this.set("d",n),isNaN(o)||this.set("maxD",o),isNaN(i)||this.set("minD",i),isNaN(s)||this.set("maxR",s),isNaN(a)||this.set("minR",a);var f,l=this.get("d"),h=this.get("r");(this.set("molecularParam",(l+1)*h),"mousemove"!==r&&"click"!==r&&"drag"!==r||this.set("trigger",r),"drag"===u||"wheel"===u||"unset"===u)&&(this.set("scaleDBy",u),this.get("delegate").remove(),this.get("delegate").destroy(),(f=this.get("dPercentText"))&&(f.remove(),f.destroy()));"drag"!==c&&"wheel"!==c&&"unset"!==c||(this.set("scaleRBy",c),this.get("delegate").remove(),this.get("delegate").destroy(),(f=this.get("dPercentText"))&&(f.remove(),f.destroy()))},e.prototype.updateDelegate=function(t,e){var n=this,r=this,i=r.get("graph"),o=r.get("delegate");if(!o||o.destroyed){var a=i.get("group"),s=r.get("delegateStyle")||Rd;o=a.addShape("circle",{attrs:Nd({r:e/1.5,x:t.x,y:t.y},s),name:"lens-shape",draggable:!0}),"drag"!==this.get("trigger")&&("wheel"===this.get("scaleRBy")?o.on("mousewheel",(function(t){r.scaleRByWheel(t)})):"drag"===this.get("scaleRBy")&&(o.on("dragstart",(function(t){r.set("dragging",!0),r.set("cacheCenter",{x:t.x,y:t.y}),r.set("dragPrePos",{x:t.x,y:t.y})})),o.on("drag",(function(t){r.scaleRByDrag(t)})),o.on("dragend",(function(t){r.set("dragging",!1)}))),"wheel"===this.get("scaleDBy")?o.on("mousewheel",(function(t){n.scaleDByWheel(t)})):"drag"===this.get("scaleDBy")&&(o.on("dragstart",(function(t){r.set("dragging",!0),r.set("cacheCenter",{x:t.x,y:t.y}),r.set("dragPrePos",{x:t.x,y:t.y})})),o.on("drag",(function(t){n.scaleDByDrag(t)})),o.on("dragend",(function(t){r.set("dragging",!1)}))))}else o.attr({x:t.x,y:t.y,r:e/1.5});if(r.get("showDPercent")){var u=Math.round((r.get("d")-r.get("minD"))/(r.get("maxD")-r.get("minD"))*100),c=r.get("dPercentText"),f=t.y+e/1.5+16;if(!c||c.destroyed)c=i.get("group").addShape("text",{attrs:{text:u+"%",x:t.x,y:f,fill:"#aaa",stroke:"#fff",lineWidth:1,fontSize:12}}),r.set("dPercentText",c);else c.attr({text:u+"%",x:t.x,y:f})}r.set("delegate",o)},e.prototype.clear=function(){var t=this.get("graph");this.restoreCache(),t.refreshPositions();var e=this.get("delegate");e&&!e.destroyed&&(e.remove(),e.destroy());var n=this.get("dPercentText");n&&!n.destroyed&&(n.remove(),n.destroy())},e.prototype.destroy=function(){this.clear()},e}(yd),Bd=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Sd()("\\n .g6-component-toolbar {\\n position: absolute;\\n list-style-type: none;\\n padding: 6px;\\n left: 0px;\\n top: 0px;\\n background-color: rgba(255, 255, 255, 0.9);\\n border: 1px solid #e2e2e2;\\n border-radius: 4px;\\n font-size: 12px;\\n color: #545454;\\n margin: 0;\\n }\\n .g6-component-toolbar li {\\n float: left;\\n text-align: center;\\n width: 35px;\\n height: 24px;\\n cursor: pointer;\\n\\t\\tlist-style-type:none;\\n list-style: none;\\n margin-left: 0px;\\n }\\n .g6-component-toolbar li .icon {\\n opacity: 0.7;\\n }\\n .g6-component-toolbar li .icon:hover {\\n opacity: 1;\\n }\\n");var Gd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Bd(e,t),e.prototype.getDefaultCfgs=function(){return{handleClick:void 0,getContent:function(t){return\'\\n <ul class=\\\'g6-component-toolbar\\\'>\\n <li code=\\\'redo\\\'>\\n <svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="24" height="24">\\n <path d="M256 682.666667c0-102.741333 66.730667-213.333333 213.333333-213.333334 107.008 0 190.762667 56.576 230.570667 125.354667L611.968 682.666667H853.333333v-241.365334l-91.562666 91.562667C704.768 448.469333 601.130667 384 469.333333 384c-196.096 0-298.666667 150.229333-298.666666 298.666667h85.333333z" fill="" p-id="2041"></path>\\n </svg>\\n </li>\\n <li code=\\\'undo\\\'>\\n <svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="24" height="24">\\n <path d="M170.666667 682.666667h241.365333l-87.936-87.978667C363.904 525.909333 447.658667 469.333333 554.666667 469.333333c146.602667 0 213.333333 110.592 213.333333 213.333334h85.333333c0-148.437333-102.570667-298.666667-298.666666-298.666667-131.797333 0-235.392 64.469333-292.48 148.821333L170.666667 441.301333V682.666667z" fill="" p-id="2764"></path>\\n </svg>\\n </li>\\n <li code=\\\'zoomOut\\\'>\\n <svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="24" height="24">\\n <path d="M658.432 428.736a33.216 33.216 0 0 1-33.152 33.152H525.824v99.456a33.216 33.216 0 0 1-66.304 0V461.888H360.064a33.152 33.152 0 0 1 0-66.304H459.52V296.128a33.152 33.152 0 0 1 66.304 0V395.52H625.28c18.24 0 33.152 14.848 33.152 33.152z m299.776 521.792a43.328 43.328 0 0 1-60.864-6.912l-189.248-220.992a362.368 362.368 0 0 1-215.36 70.848 364.8 364.8 0 1 1 364.8-364.736 363.072 363.072 0 0 1-86.912 235.968l192.384 224.64a43.392 43.392 0 0 1-4.8 61.184z m-465.536-223.36a298.816 298.816 0 0 0 298.432-298.432 298.816 298.816 0 0 0-298.432-298.432A298.816 298.816 0 0 0 194.24 428.8a298.816 298.816 0 0 0 298.432 298.432z"></path>\\n </svg>\\n </li>\\n <li code=\\\'zoomIn\\\'>\\n <svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="24" height="24">\\n <path d="M639.936 416a32 32 0 0 1-32 32h-256a32 32 0 0 1 0-64h256a32 32 0 0 1 32 32z m289.28 503.552a41.792 41.792 0 0 1-58.752-6.656l-182.656-213.248A349.76 349.76 0 0 1 480 768 352 352 0 1 1 832 416a350.4 350.4 0 0 1-83.84 227.712l185.664 216.768a41.856 41.856 0 0 1-4.608 59.072zM479.936 704c158.784 0 288-129.216 288-288S638.72 128 479.936 128a288.32 288.32 0 0 0-288 288c0 158.784 129.216 288 288 288z" p-id="3853"></path>\\n </svg>\\n </li>\\n <li code=\\\'realZoom\\\'>\\n <svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="24">\\n <path d="M384 320v384H320V320h64z m256 0v384H576V320h64zM512 576v64H448V576h64z m0-192v64H448V384h64z m355.968 576H92.032A28.16 28.16 0 0 1 64 931.968V28.032C64 12.608 76.608 0 95.168 0h610.368L896 192v739.968a28.16 28.16 0 0 1-28.032 28.032zM704 64v128h128l-128-128z m128 192h-190.464V64H128v832h704V256z"></path>\\n </svg>\\n </li>\\n <li code=\\\'autoZoom\\\'>\\n <svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="24">\\n <path d="M684.288 305.28l0.128-0.64-0.128-0.64V99.712c0-19.84 15.552-35.904 34.496-35.712a35.072 35.072 0 0 1 34.56 35.776v171.008h170.944c19.648 0 35.84 15.488 35.712 34.432a35.072 35.072 0 0 1-35.84 34.496h-204.16l-0.64-0.128a32.768 32.768 0 0 1-20.864-7.552c-1.344-1.024-2.816-1.664-3.968-2.816-0.384-0.32-0.512-0.768-0.832-1.088a33.472 33.472 0 0 1-9.408-22.848zM305.28 64a35.072 35.072 0 0 0-34.56 35.776v171.008H99.776A35.072 35.072 0 0 0 64 305.216c0 18.944 15.872 34.496 35.84 34.496h204.16l0.64-0.128a32.896 32.896 0 0 0 20.864-7.552c1.344-1.024 2.816-1.664 3.904-2.816 0.384-0.32 0.512-0.768 0.768-1.088a33.024 33.024 0 0 0 9.536-22.848l-0.128-0.64 0.128-0.704V99.712A35.008 35.008 0 0 0 305.216 64z m618.944 620.288h-204.16l-0.64 0.128-0.512-0.128c-7.808 0-14.72 3.2-20.48 7.68-1.28 1.024-2.752 1.664-3.84 2.752-0.384 0.32-0.512 0.768-0.832 1.088a33.664 33.664 0 0 0-9.408 22.912l0.128 0.64-0.128 0.704v204.288c0 19.712 15.552 35.904 34.496 35.712a35.072 35.072 0 0 0 34.56-35.776V753.28h170.944c19.648 0 35.84-15.488 35.712-34.432a35.072 35.072 0 0 0-35.84-34.496z m-593.92 11.52c-0.256-0.32-0.384-0.768-0.768-1.088-1.088-1.088-2.56-1.728-3.84-2.688a33.088 33.088 0 0 0-20.48-7.68l-0.512 0.064-0.64-0.128H99.84a35.072 35.072 0 0 0-35.84 34.496 35.072 35.072 0 0 0 35.712 34.432H270.72v171.008c0 19.84 15.552 35.84 34.56 35.776a35.008 35.008 0 0 0 34.432-35.712V720l-0.128-0.64 0.128-0.704a33.344 33.344 0 0 0-9.472-22.848zM512 374.144a137.92 137.92 0 1 0 0.128 275.84A137.92 137.92 0 0 0 512 374.08z"></path>\\n </svg>\\n </li>\\n </ul>\\n \'},zoomSensitivity:2}},e.prototype.init=function(){var t=this,e=this.get("graph"),n=this.get("getContent")(e),r=n;Object(h.x)(n)&&(r=gt(n));var i=this.get("className");r.setAttribute("class",i||"g6-component-toolbar");var o=this.get("container");o||(o=this.get("graph").get("container")),Object(h.x)(o)&&(o=document.getElementById(o)),o.appendChild(r),this.set("toolBar",r);var a=this.get("handleClick");r.addEventListener("click",(function(n){var r=function(t){if(!t)return[];if(t.composedPath)return t.composedPath();for(var e=[],n=t.target;n;){if(e.push(n),"HTML"===n.tagName)return e.push(document,window),e;n=n.parentElement}return e}(n).filter((function(t){return"LI"===t.nodeName}));if(0!==r.length){var i=r[0].getAttribute("code");i&&(a?a(i,e):t.handleDefaultOperator(i,e))}}));var s=this.get("position");s&&vt(r,{top:s.y+"px",left:s.x+"px"}),this.bindUndoRedo()},e.prototype.bindUndoRedo=function(){var t=this.get("graph"),e=document.querySelector(\'.g6-component-toolbar li[code="undo"]\'),n=document.querySelector(\'.g6-component-toolbar li[code="undo"] svg\'),r=document.querySelector(\'.g6-component-toolbar li[code="redo"]\'),i=document.querySelector(\'.g6-component-toolbar li[code="redo"] svg\');e&&n&&r&&i&&t.on("stackchange",(function(t){var o=t.undoStack,a=t.redoStack,s=o.length,u=a.length;1===s?(e.setAttribute("style","cursor: not-allowed"),n.setAttribute("style","opacity: 0.4")):(e.removeAttribute("style"),n.removeAttribute("style")),0===u?(r.setAttribute("style","cursor: not-allowed"),i.setAttribute("style","opacity: 0.4")):(r.removeAttribute("style"),i.removeAttribute("style"))}))},e.prototype.undo=function(){var t=this.get("graph"),e=t.getUndoStack();if(e&&0!==e.length){var n=e.pop();if(n){var r=n.action;t.pushStack(r,Object(h.c)(n.data),"redo");var i=n.data.before;if("add"===r&&(i=n.data.after),!i)return;switch(r){case"visible":Object.keys(i).forEach((function(e){var n=i[e];n&&n.forEach((function(e){var n=t.findById(e.id);e.visible?t.showItem(n,!1):t.hideItem(n,!1)}))}));break;case"render":case"update":Object.keys(i).forEach((function(e){var n=i[e];n&&n.forEach((function(e){t.updateItem(e.id,e,!1)}))}));break;case"changedata":t.changeData(i,!1);break;case"delete":Object.keys(i).forEach((function(e){var n=i[e];n&&n.forEach((function(e){var n=e.itemType;delete e.itemType,t.addItem(n,e,!1)}))}));break;case"add":Object.keys(i).forEach((function(e){var n=i[e];n&&n.forEach((function(e){t.removeItem(e.id,!1)}))}));break;case"updateComboTree":Object.keys(i).forEach((function(e){var n=i[e];n&&n.forEach((function(e){t.updateComboTree(e.id,e.parentId,!1)}))}))}}}},e.prototype.redo=function(){var t=this.get("graph"),e=t.getRedoStack();if(e&&0!==e.length){var n=e.pop();if(n){var r=n.action,i=n.data.after;if(t.pushStack(r,Object(h.c)(n.data)),"delete"===r&&(i=n.data.before),!i)return;switch(r){case"visible":Object.keys(i).forEach((function(e){var n=i[e];n&&n.forEach((function(e){var n=t.findById(e.id);e.visible?t.showItem(n,!1):t.hideItem(n,!1)}))}));break;case"render":case"update":Object.keys(i).forEach((function(e){var n=i[e];n&&n.forEach((function(e){t.updateItem(e.id,e,!1)}))}));break;case"changedata":t.changeData(i,!1);break;case"delete":i.edges&&i.edges.forEach((function(e){t.removeItem(e.id,!1)})),i.nodes&&i.nodes.forEach((function(e){t.removeItem(e.id,!1)})),i.combos&&i.combos.forEach((function(e){t.removeItem(e.id,!1)}));break;case"add":Object.keys(i).forEach((function(e){var n=i[e];n&&n.forEach((function(e){var n=e.itemType;delete e.itemType,t.addItem(n,e,!1)}))}));break;case"updateComboTree":Object.keys(i).forEach((function(e){var n=i[e];n&&n.forEach((function(e){t.updateComboTree(e.id,e.parentId,!1)}))}))}}}},e.prototype.handleDefaultOperator=function(t,e){var n=e.getZoom();switch(t){case"redo":this.redo();break;case"undo":this.undo();break;case"zoomOut":var r=1/(1-.05*this.get("zoomSensitivity"));if(r*n>(this.get("maxZoom")||e.get("maxZoom")))return;e.zoomTo(n*r);break;case"zoomIn":var i=1-.05*this.get("zoomSensitivity");if(i*n<(this.get("minZoom")||e.get("minZoom")))return;e.zoomTo(n*i);break;case"realZoom":e.zoomTo(1);break;case"autoZoom":e.fitView([20,20])}},e.prototype.destroy=function(){var t=this.get("toolBar");if(t){var e=this.get("container");e||(e=this.get("graph").get("container")),Object(h.x)(e)&&(e=document.getElementById(e)),e.removeChild(t)}var n=this.get("handleClick");n&&t.removeEventListener("click",n)},e}(yd),Fd=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Sd()("\\n .g6-component-tooltip {\\n border: 1px solid #e2e2e2;\\n border-radius: 4px;\\n font-size: 12px;\\n color: #545454;\\n background-color: rgba(255, 255, 255, 0.9);\\n padding: 10px 8px;\\n box-shadow: rgb(174, 174, 174) 0px 0px 10px;\\n }\\n .tooltip-type {\\n padding: 0;\\n margin: 0;\\n }\\n .tooltip-id {\\n color: #531dab;\\n }\\n");var Ud=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fd(e,t),e.prototype.getDefaultCfgs=function(){return{offsetX:6,offsetY:6,getContent:function(t){return"\\n <h4 class=\'tooltip-type\'>类型:"+t.item.getType()+"</h4>\\n <span class=\'tooltip-id\'>ID:"+t.item.getID()+"</span>\\n "},shouldBegin:function(t){return!0},itemTypes:["node","edge","combo"]}},e.prototype.getEvents=function(){return{"node:mouseenter":"onMouseEnter","node:mouseleave":"onMouseLeave","node:mousemove":"onMouseMove","edge:mouseenter":"onMouseEnter","edge:mouseleave":"onMouseLeave","edge:mousemove":"onMouseMove","combo:mouseenter":"onMouseEnter","combo:mouseleave":"onMouseLeave","combo:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave",contextmenu:"onMouseLeave","node:drag":"onMouseLeave"}},e.prototype.init=function(){var t=gt("<div class="+(this.get("className")||"g6-component-tooltip")+"></div>"),e=this.get("container");e||(e=this.get("graph").get("container")),Object(h.x)(e)&&(e=document.getElementById(e)),vt(t,{position:"absolute",visibility:"hidden"}),e.appendChild(t),this.set("tooltip",t)},e.prototype.onMouseEnter=function(t){var e=this.get("itemTypes");if(!t.item||!t.item.getType||-1!==e.indexOf(t.item.getType())){var n=t.item,r=this.get("graph");this.currentTarget=n,this.showTooltip(t),r.emit("tooltipchange",{item:t.item,action:"show"})}},e.prototype.onMouseMove=function(t){var e=this.get("itemTypes");t.item&&t.item.getType&&-1===e.indexOf(t.item.getType())||this.currentTarget&&t.item===this.currentTarget&&this.showTooltip(t)},e.prototype.onMouseLeave=function(){this.hideTooltip(),this.get("graph").emit("tooltipchange",{item:this.currentTarget,action:"hide"}),this.currentTarget=null},e.prototype.showTooltip=function(t){if(t.item){var e=this.get("itemTypes");if(!t.item.getType||-1!==e.indexOf(t.item.getType())){var n=this.get("tooltip"),r=this.get("getContent")(t);Object(h.x)(r)?n.innerHTML=r:n.innerHTML=r.outerHTML,this.updatePosition(t)}}},e.prototype.hideTooltip=function(){var t=this.get("tooltip");t&&vt(t,{visibility:"hidden"})},e.prototype.updatePosition=function(t){var e=this.get("shouldBegin"),n=this.get("tooltip");if(e(t)){var r=this.get("graph"),i=r.get("width"),o=r.get("height"),a=this.get("offsetX")||0,s=this.get("offsetY")||0,u=r.getPointByClient(t.clientX,t.clientY),c=r.getCanvasByPoint(u.x,u.y),f=c.x,l=c.y;f+=a,l+=s;var h=n.getBoundingClientRect();f+h.width>i&&(f=f-h.width-a),l+h.height>o&&(l=l-h.height-s),vt(n,{left:f+"px",top:l+"px",visibility:"visible"})}else vt(n,{visibility:"hidden"})},e.prototype.hide=function(){this.onMouseLeave()},e.prototype.destroy=function(){var t=this.get("tooltip");if(t){var e=this.get("container");e||(e=this.get("graph").get("container")),Object(h.x)(e)&&(e=document.getElementById(e)),e.removeChild(t)}},e}(yd),zd={};function Vd(t,e){zd[t]=e}var Wd=function(){function t(t){this.type="base",this.isCategory=!1,this.isLinear=!1,this.isContinuous=!1,this.isIdentity=!1,this.values=[],this.range=[0,1],this.ticks=[],this.__cfg__=t,this.initCfg(),this.init()}return t.prototype.translate=function(t){return t},t.prototype.change=function(t){Object(h.a)(this.__cfg__,t),this.init()},t.prototype.clone=function(){return this.constructor(this.__cfg__)},t.prototype.getTicks=function(){var t=this;return Object(h.z)(this.ticks,(function(e,n){return Object(h.v)(e)?e:{text:t.getText(e,n),tickValue:e,value:t.scale(e)}}))},t.prototype.getText=function(t,e){var n=this.formatter,r=n?n(t,e):t;return Object(h.s)(r)||!Object(h.r)(r.toString)?"":r.toString()},t.prototype.getConfig=function(t){return this.__cfg__[t]},t.prototype.init=function(){Object(h.a)(this,this.__cfg__),this.setDomain(),Object(h.p)(this.getConfig("ticks"))&&(this.ticks=this.calculateTicks())},t.prototype.initCfg=function(){},t.prototype.setDomain=function(){},t.prototype.calculateTicks=function(){var t=this.tickMethod,e=[];if(Object(h.x)(t)){var n=zd[t];if(!n)throw new Error("There is no method to to calculate ticks!");e=n(this)}else Object(h.r)(t)&&(e=t(this));return e},t.prototype.rangeMin=function(){return Object(h.k)(this.range)},t.prototype.rangeMax=function(){return Object(h.y)(this.range)},t.prototype.calcPercent=function(t,e,n){return Object(h.t)(t)?(t-e)/(n-e):NaN},t.prototype.calcValue=function(t,e,n){return e+t*(n-e)},t}(),Xd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cat",e.isCategory=!0,e}return Object(v.b)(e,t),e.prototype.buildIndexMap=function(){if(!this.translateIndexMap){this.translateIndexMap=new Map;for(var t=0;t<this.values.length;t++)this.translateIndexMap.set(this.values[t],t)}},e.prototype.translate=function(t){this.buildIndexMap();var e=this.translateIndexMap.get(t);return void 0===e&&(e=Object(h.t)(t)?t:NaN),e},e.prototype.scale=function(t){var e=this.translate(t),n=this.calcPercent(e,this.min,this.max);return this.calcValue(n,this.rangeMin(),this.rangeMax())},e.prototype.invert=function(t){var e=this.max-this.min,n=this.calcPercent(t,this.rangeMin(),this.rangeMax()),r=Math.round(e*n)+this.min;return r<this.min||r>this.max?NaN:this.values[r]},e.prototype.getText=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=e;return Object(h.t)(e)&&!this.values.includes(e)&&(i=this.values[i]),t.prototype.getText.apply(this,Object(v.d)([i],n))},e.prototype.initCfg=function(){this.tickMethod="cat"},e.prototype.setDomain=function(){if(Object(h.s)(this.getConfig("min"))&&(this.min=0),Object(h.s)(this.getConfig("max"))){var t=this.values.length;this.max=t>1?t-1:t}this.translateIndexMap&&(this.translateIndexMap=void 0)},e}(Wd),Yd=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\\1?|[aA]|"[^"]*"|\'[^\']*\'/g,Hd="[^\\\\s]+",qd=/\\[([^]*?)\\]/gm;function Kd(t,e){for(var n=[],r=0,i=t.length;r<i;r++)n.push(t[r].substr(0,e));return n}var Zd=function(t){return function(e,n){var r=n[t].map((function(t){return t.toLowerCase()})).indexOf(e.toLowerCase());return r>-1?r:null}};function Qd(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0,i=e;r<i.length;r++){var o=i[r];for(var a in o)t[a]=o[a]}return t}var Jd=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],$d=["January","February","March","April","May","June","July","August","September","October","November","December"],tp=Kd($d,3),ep={dayNamesShort:Kd(Jd,3),dayNames:Jd,monthNamesShort:tp,monthNames:$d,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!=10?1:0)*t%10]}},np=Qd({},ep),rp=function(t){return np=Qd(np,t)},ip=function(t){return t.replace(/[|\\\\{()[^$+*?.-]/g,"\\\\$&")},op=function(t,e){for(void 0===e&&(e=2),t=String(t);t.length<e;)t="0"+t;return t},ap={D:function(t){return String(t.getDate())},DD:function(t){return op(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return String(t.getDay())},dd:function(t){return op(t.getDay())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return String(t.getMonth()+1)},MM:function(t){return op(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},YY:function(t){return op(String(t.getFullYear()),4).substr(2)},YYYY:function(t){return op(t.getFullYear(),4)},h:function(t){return String(t.getHours()%12||12)},hh:function(t){return op(t.getHours()%12||12)},H:function(t){return String(t.getHours())},HH:function(t){return op(t.getHours())},m:function(t){return String(t.getMinutes())},mm:function(t){return op(t.getMinutes())},s:function(t){return String(t.getSeconds())},ss:function(t){return op(t.getSeconds())},S:function(t){return String(Math.round(t.getMilliseconds()/100))},SS:function(t){return op(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return op(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+op(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+op(Math.floor(Math.abs(e)/60),2)+":"+op(Math.abs(e)%60,2)}},sp=function(t){return+t-1},up=[null,"[1-9]\\\\d?"],cp=[null,Hd],fp=["isPm",Hd,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],lp=["timezoneOffset","[^\\\\s]*?[\\\\+\\\\-]\\\\d\\\\d:?\\\\d\\\\d|[^\\\\s]*?Z?",function(t){var e=(t+"").match(/([+-]|\\d\\d)/gi);if(e){var n=60*+e[1]+parseInt(e[2],10);return"+"===e[0]?n:-n}return 0}],hp={D:["day","[1-9]\\\\d?"],DD:["day","\\\\d\\\\d"],Do:["day","[1-9]\\\\d?"+Hd,function(t){return parseInt(t,10)}],M:["month","[1-9]\\\\d?",sp],MM:["month","\\\\d\\\\d",sp],YY:["year","\\\\d\\\\d",function(t){var e=+(""+(new Date).getFullYear()).substr(0,2);return+(""+(+t>68?e-1:e)+t)}],h:["hour","[1-9]\\\\d?",void 0,"isPm"],hh:["hour","\\\\d\\\\d",void 0,"isPm"],H:["hour","[1-9]\\\\d?"],HH:["hour","\\\\d\\\\d"],m:["minute","[1-9]\\\\d?"],mm:["minute","\\\\d\\\\d"],s:["second","[1-9]\\\\d?"],ss:["second","\\\\d\\\\d"],YYYY:["year","\\\\d{4}"],S:["millisecond","\\\\d",function(t){return 100*+t}],SS:["millisecond","\\\\d\\\\d",function(t){return 10*+t}],SSS:["millisecond","\\\\d{3}"],d:up,dd:up,ddd:cp,dddd:cp,MMM:["month",Hd,Zd("monthNamesShort")],MMMM:["month",Hd,Zd("monthNames")],a:fp,A:fp,ZZ:lp,Z:lp},dp={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},pp=function(t){return Qd(dp,t)},gp=function(t,e,n){if(void 0===e&&(e=dp.default),void 0===n&&(n={}),"number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");var r=[];e=(e=dp[e]||e).replace(qd,(function(t,e){return r.push(e),"@@@"}));var i=Qd(Qd({},np),n);return(e=e.replace(Yd,(function(e){return ap[e](t,i)}))).replace(/@@@/g,(function(){return r.shift()}))};function vp(t,e,n){if(void 0===n&&(n={}),"string"!=typeof e)throw new Error("Invalid format in fecha parse");if(e=dp[e]||e,t.length>1e3)return null;var r={year:(new Date).getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},i=[],o=[],a=e.replace(qd,(function(t,e){return o.push(ip(e)),"@@@"})),s={},u={};a=ip(a).replace(Yd,(function(t){var e=hp[t],n=e[0],r=e[1],o=e[3];if(s[n])throw new Error("Invalid format. "+n+" specified twice in format");return s[n]=!0,o&&(u[o]=!0),i.push(e),"("+r+")"})),Object.keys(u).forEach((function(t){if(!s[t])throw new Error("Invalid format. "+t+" is required in specified format")})),a=a.replace(/@@@/g,(function(){return o.shift()}));var c=t.match(new RegExp(a,"i"));if(!c)return null;for(var f=Qd(Qd({},np),n),l=1;l<c.length;l++){var h=i[l-1],d=h[0],p=h[2],g=p?p(c[l],f):+c[l];if(null==g)return null;r[d]=g}1===r.isPm&&null!=r.hour&&12!=+r.hour?r.hour=+r.hour+12:0===r.isPm&&12==+r.hour&&(r.hour=0);for(var v=new Date(r.year,r.month,r.day,r.hour,r.minute,r.second,r.millisecond),y=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],m=(l=0,y.length);l<m;l++)if(s[y[l][0]]&&r[y[l][0]]!==v[y[l][1]]())return null;return null==r.timezoneOffset?v:new Date(Date.UTC(r.year,r.month,r.day,r.hour,r.minute-r.timezoneOffset,r.second,r.millisecond))}var yp={format:gp,parse:vp,defaultI18n:ep,setGlobalDateI18n:rp,setGlobalDateMasks:pp};function mp(t,e){return(l.format||yp.format)(t,e)}function bp(t){return Object(h.x)(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),Object(h.o)(t)&&(t=t.getTime()),t}var xp=36e5,wp=24*xp,Sp=31*wp,Ep=[["HH:mm:ss",1e3],["HH:mm:ss",1e4],["HH:mm:ss",3e4],["HH:mm",6e4],["HH:mm",6e5],["HH:mm",18e5],["HH",xp],["HH",6*xp],["HH",12*xp],["YYYY-MM-DD",wp],["YYYY-MM-DD",4*wp],["YYYY-WW",7*wp],["YYYY-MM",Sp],["YYYY-MM",4*Sp],["YYYY-MM",6*Sp],["YYYY",380*wp]];function _p(t,e,n){var r,i=(r=function(t){return t[1]},function(t,e,n,i){for(var o=Object(h.s)(n)?0:n,a=Object(h.s)(i)?t.length:i;o<a;){var s=o+a>>>1;r(t[s])>e?a=s:o=s+1}return o})(Ep,(e-t)/n)-1,o=Ep[i];return i<0?o=Ep[0]:i>=Ep.length&&(o=Object(h.y)(Ep)),o}var Op=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="timeCat",e}return Object(v.b)(e,t),e.prototype.translate=function(t){t=bp(t);var e=this.values.indexOf(t);return-1===e&&(e=Object(h.t)(t)&&t<this.values.length?t:NaN),e},e.prototype.getText=function(t,e){var n=this.translate(t);if(n>-1){var r=this.values[n],i=this.formatter;return r=i?i(r,e):mp(r,this.mask)}return t},e.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},e.prototype.setDomain=function(){var e=this.values;Object(h.f)(e,(function(t,n){e[n]=bp(t)})),e.sort((function(t,e){return t-e})),t.prototype.setDomain.call(this)},e}(Xd),kp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isContinuous=!0,e}return Object(v.b)(e,t),e.prototype.scale=function(t){if(Object(h.s)(t))return NaN;var e=this.rangeMin(),n=this.rangeMax();return this.max===this.min?e:e+this.getScalePercent(t)*(n-e)},e.prototype.init=function(){t.prototype.init.call(this);var e=this.ticks,n=Object(h.k)(e),r=Object(h.y)(e);n<this.min&&(this.min=n),r>this.max&&(this.max=r),Object(h.s)(this.minLimit)||(this.min=n),Object(h.s)(this.maxLimit)||(this.max=r)},e.prototype.setDomain=function(){var t=Object(h.j)(this.values),e=t.min,n=t.max;Object(h.s)(this.min)&&(this.min=e),Object(h.s)(this.max)&&(this.max=n),this.min>this.max&&(this.min=e,this.max=n)},e.prototype.calculateTicks=function(){var e=this,n=t.prototype.calculateTicks.call(this);return this.nice||(n=Object(h.g)(n,(function(t){return t>=e.min&&t<=e.max}))),n},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;return(t-n)/(e-n)},e.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},e}(Wd),Mp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="linear",e.isLinear=!0,e}return Object(v.b)(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t);return this.min+e*(this.max-this.min)},e.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},e}(kp);function Ap(t,e){var n=Math.E;return e>=0?Math.pow(n,Math.log(e)/t):-1*Math.pow(n,Math.log(-e)/t)}function Tp(t,e){return 1===t?1:Math.log(e)/Math.log(t)}function Cp(t,e,n){Object(h.s)(n)&&(n=Math.max.apply(null,t));var r=n;return Object(h.f)(t,(function(t){t>0&&t<r&&(r=t)})),r===n&&(r=n/e),r>1&&(r=1),r}var Ip=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e}return Object(v.b)(e,t),e.prototype.invert=function(t){var e,n=this.base,r=Tp(n,this.max),i=this.rangeMin(),o=this.rangeMax()-i,a=this.positiveMin;if(a){if(0===t)return 0;var s=1/(r-(e=Tp(n,a/n)))*o;if(t<s)return t/s*a}else e=Tp(n,this.min);var u=(t-i)/o*(r-e)+e;return Math.pow(n,u)},e.prototype.initCfg=function(){this.tickMethod="log",this.base=10,this.tickCount=6,this.nice=!0},e.prototype.setDomain=function(){t.prototype.setDomain.call(this);var e=this.min;if(e<0)throw new Error("When you use log scale, the minimum value must be greater than zero!");0===e&&(this.positiveMin=Cp(this.values,this.base,this.max))},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;if(t<=0)return 0;var r=this.base,i=this.positiveMin;return i&&(n=1*i/r),t<i?t/i/(Tp(r,e)-Tp(r,n)):(Tp(r,t)-Tp(r,n))/(Tp(r,e)-Tp(r,n))},e}(kp),Pp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pow",e}return Object(v.b)(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t),n=this.exponent,r=Ap(n,this.max),i=Ap(n,this.min),o=e*(r-i)+i,a=o>=0?1:-1;return Math.pow(o,n)*a},e.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;var r=this.exponent;return(Ap(r,t)-Ap(r,n))/(Ap(r,e)-Ap(r,n))},e}(kp),jp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="time",e}return Object(v.b)(e,t),e.prototype.getText=function(t,e){var n=this.translate(t),r=this.formatter;return r?r(n,e):mp(n,this.mask)},e.prototype.scale=function(e){var n=e;return(Object(h.x)(n)||Object(h.o)(n))&&(n=this.translate(n)),t.prototype.scale.call(this,n)},e.prototype.translate=function(t){return bp(t)},e.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},e.prototype.setDomain=function(){var t=this.values,e=this.getConfig("min"),n=this.getConfig("max");if(Object(h.s)(e)&&Object(h.t)(e)||(this.min=this.translate(this.min)),Object(h.s)(n)&&Object(h.t)(n)||(this.max=this.translate(this.max)),t&&t.length){var r=[],i=1/0,o=i,a=0;Object(h.f)(t,(function(t){var e=bp(t);if(isNaN(e))throw new TypeError("Invalid Time: "+t+" in time scale!");i>e?(o=i,i=e):o>e&&(o=e),a<e&&(a=e),r.push(e)})),t.length>1&&(this.minTickInterval=o-i),Object(h.s)(e)&&(this.min=i),Object(h.s)(n)&&(this.max=a)}},e}(Mp),Dp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantize",e}return Object(v.b)(e,t),e.prototype.invert=function(t){var e=this.ticks,n=e.length,r=this.getInvertPercent(t),i=Math.floor(r*(n-1));if(i>=n-1)return Object(h.y)(e);if(i<0)return Object(h.k)(e);var o=e[i],a=i/(n-1);return o+(r-a)/((i+1)/(n-1)-a)*(e[i+1]-o)},e.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},e.prototype.calculateTicks=function(){var e=t.prototype.calculateTicks.call(this);return this.nice||(Object(h.y)(e)!==this.max&&e.push(this.max),Object(h.k)(e)!==this.min&&e.unshift(this.min)),e},e.prototype.getScalePercent=function(t){var e=this.ticks;if(t<Object(h.k)(e))return 0;if(t>Object(h.y)(e))return 1;var n=0;return Object(h.f)(e,(function(e,r){if(!(t>=e))return!1;n=r})),n/(e.length-1)},e}(kp),Np=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantile",e}return Object(v.b)(e,t),e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(Dp),Rp={};function Lp(t,e){if(function(t){return Rp[t]}(t))throw new Error("type \'"+t+"\' existed.");Rp[t]=e}var Bp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="identity",e.isIdentity=!0,e}return Object(v.b)(e,t),e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&Object(h.t)(t)?t:this.range[0]},e.prototype.invert=function(t){var e=this.range;return t<e[0]||t>e[1]?NaN:this.values[0]},e}(Wd),Gp=[1,5,2,2.5,4,3],Fp=100*Number.EPSILON;function Up(t,e,n,r,i,o){var a=Object(h.E)(e),s=Object(h.l)(e,t),u=0,c=function(t,e){return(t%e+e)%e}(r,o);return(c<Fp||o-c<Fp)&&r<=0&&i>=0&&(u=1),1-s/(a-1)-n+u}function zp(t,e,n){var r=Object(h.E)(e);return 1-Object(h.l)(e,t)/(r-1)-n+1}function Vp(t,e,n,r,i,o){var a=(t-1)/(o-i),s=(e-1)/(Math.max(o,r)-Math.min(n,i));return 2-Math.max(a/s,s/a)}function Wp(t,e){return t>=e?2-(t-1)/(e-1):1}function Xp(t,e,n,r){var i=e-t;return 1-.5*(Math.pow(e-r,2)+Math.pow(t-n,2))/Math.pow(.1*i,2)}function Yp(t,e,n){var r=e-t;if(n>r){var i=(n-r)/2;return 1-Math.pow(i,2)/Math.pow(.1*r,2)}return 1}function Hp(t,e,n,r,i,o){if(void 0===n&&(n=5),void 0===r&&(r=!0),void 0===i&&(i=Gp),void 0===o&&(o=[.25,.2,.5,.05]),"number"!=typeof t||"number"!=typeof e||!n)return{min:0,max:0,ticks:[]};if(e-t<1e-15||1===n)return{min:t,max:e,ticks:[t]};for(var a={score:-2,lmin:0,lmax:0,lstep:0},s=1;s<1/0;){for(var u=0,c=i;u<c.length;u++){var f=c[u],l=zp(f,i,s);if(Number.isNaN(l))throw new Error("NaN");if(o[0]*l+o[1]+o[2]+o[3]<a.score){s=1/0;break}for(var d=2;d<1/0;){var p=Wp(d,n);if(o[0]*l+o[1]+o[2]*p+o[3]<a.score)break;for(var g=(e-t)/(d+1)/s/f,v=Math.ceil(Math.log10(g));v<1/0;){var y=s*f*Math.pow(10,v),m=Yp(t,e,y*(d-1));if(o[0]*l+o[1]*m+o[2]*p+o[3]<a.score)break;var b=Math.floor(e/y)*s-(d-1)*s,x=Math.ceil(t/y)*s;if(b>x)v+=1;else{for(var w=b;w<=x;w+=1){var S=w*(y/s),E=S+y*(d-1),_=y,O=Up(f,i,s,S,E,_),k=Xp(t,e,S,E),M=Vp(d,n,t,e,S,E),A=o[0]*O+o[1]*k+o[2]*M+1*o[3];A>a.score&&(!r||S<=t&&E>=e)&&(a.lmin=S,a.lmax=E,a.lstep=_,a.score=A)}v+=1}}d+=1}}s+=1}for(var T=Number.isInteger(a.lstep)?0:Math.ceil(Math.abs(Math.log10(a.lstep))),C=[],I=a.lmin;I<=a.lmax;I+=a.lstep)C.push(I);var P=T?Object(h.z)(C,(function(t){return Number.parseFloat(t.toFixed(T))})):C;return{min:Math.min(t,Object(h.k)(P)),max:Math.max(e,Object(h.y)(P)),ticks:P}}function qp(t){var e=t.values,n=t.tickInterval,r=t.tickCount,i=e;if(Object(h.t)(n))return Object(h.g)(i,(function(t,e){return e%n==0}));var o=t.min,a=t.max;if(Object(h.s)(o)&&(o=0),Object(h.s)(a)&&(a=e.length-1),Object(h.t)(r)&&r<a-o){var s=Hp(o,a,r,!1,[1,2,5,3,4,7,6,8,9]).ticks;return Object(h.g)(s,(function(t){return t>=o&&t<=a})).map((function(t){return e[t]}))}return e.slice(o,a+1)}var Kp=Math.sqrt(50),Zp=Math.sqrt(10),Qp=Math.sqrt(2),Jp=function(){function t(){this._domain=[0,1]}return t.prototype.domain=function(t){return t?(this._domain=Array.from(t,Number),this):this._domain.slice()},t.prototype.nice=function(t){var e,n;void 0===t&&(t=5);var r,i=this._domain.slice(),o=0,a=this._domain.length-1,s=this._domain[o],u=this._domain[a];return u<s&&(s=(e=[u,s])[0],u=e[1],o=(n=[a,o])[0],a=n[1]),(r=$p(s,u,t))>0?r=$p(s=Math.floor(s/r)*r,u=Math.ceil(u/r)*r,t):r<0&&(r=$p(s=Math.ceil(s*r)/r,u=Math.floor(u*r)/r,t)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(u/r)*r,this.domain(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(u*r)/r,this.domain(i)),this},t.prototype.ticks=function(t){return void 0===t&&(t=5),function(t,e,n){var r,i,o,a,s=-1;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];(r=e<t)&&(i=t,t=e,e=i);if(0===(a=$p(t,e,n))||!isFinite(a))return[];if(a>0)for(t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));++s<i;)o[s]=(t+s)*a;else for(t=Math.floor(t*a),e=Math.ceil(e*a),o=new Array(i=Math.ceil(t-e+1));++s<i;)o[s]=(t-s)/a;r&&o.reverse();return o}(this._domain[0],this._domain[this._domain.length-1],t||5)},t}();function $p(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=Kp?10:o>=Zp?5:o>=Qp?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Kp?10:o>=Zp?5:o>=Qp?2:1)}function tg(t,e,n){return("ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e))*e}function eg(t,e,n){var r=tg(t,n,"floor"),i=tg(e,n,"ceil");r=Object(h.h)(r,n),i=Object(h.h)(i,n);for(var o=[],a=r;a<=i;a+=n){var s=Object(h.h)(a,n);o.push(s)}return{min:r,max:i,ticks:o}}function ng(t,e,n){var r,i=t.minLimit,o=t.maxLimit,a=t.min,s=t.max,u=t.tickCount,c=void 0===u?5:u,f=Object(h.s)(i)?Object(h.s)(e)?a:e:i,l=Object(h.s)(o)?Object(h.s)(n)?s:n:o;if(f>l&&(l=(r=[f,l])[0],f=r[1]),c<=2)return[f,l];for(var d=(l-f)/(c-1),p=[],g=0;g<c;g++)p.push(f+d*g);return p}function rg(t,e,n){void 0===n&&(n=5);var r={max:0,min:0,ticks:[]};if(t===e)return{max:e,min:t,ticks:[t]};var i=(e-t)/n,o=Math.pow(10,Math.floor(Math.log10(i))),a=o<1?Math.ceil(Math.abs(Math.log10(o))):0,s=o;2*o-i<1.5*(i-s)&&5*o-i<2.75*(i-(s=2*o))&&10*o-i<1.5*(i-(s=5*o))&&(s=10*o);var u=Math.ceil(e/s),c=Math.floor(t/s);r.max=Math.max(u*s,e),r.min=Math.min(c*s,t);for(var f=Number.parseFloat((c*s).toFixed(a));f<e;)r.ticks.push(f),f+=s,a&&(f=Number.parseFloat(f.toFixed(a)));return r.ticks.push(f),r}function ig(t,e){var n=t.length*e;return 1===e?t[t.length-1]:0===e?t[0]:n%1!=0?t[Math.ceil(n)-1]:t.length%2==0?(t[n-1]+t[n])/2:t[n]}function og(t){return new Date(t).getFullYear()}function ag(t){return new Date(t,0,1).getTime()}function sg(t){return new Date(t).getMonth()}function ug(t,e){return new Date(t,e,1).getTime()}Vd("cat",qp),Vd("time-cat",(function(t){var e=qp(t),n=Object(h.y)(t.values);return n!==Object(h.y)(e)&&e.push(n),e})),Vd("wilkinson-extended",(function(t){var e=t.min,n=t.max,r=t.tickCount,i=t.nice,o=t.tickInterval,a=t.minLimit,s=t.maxLimit,u=Hp(e,n,r,i).ticks;return Object(h.s)(a)&&Object(h.s)(s)?o?eg(e,n,o).ticks:u:ng(t,Object(h.k)(u),Object(h.y)(u))})),Vd("r-pretty",(function(t){var e=t.min,n=t.max,r=t.tickCount,i=t.tickInterval,o=t.minLimit,a=t.maxLimit,s=rg(e,n,r).ticks;return Object(h.s)(o)&&Object(h.s)(a)?i?eg(e,n,i).ticks:s:ng(t,Object(h.k)(s),Object(h.y)(s))})),Vd("time",(function(t){var e=t.min,n=t.max,r=t.minTickInterval,i=t.tickInterval,o=t.tickCount;if(i)o=Math.ceil((n-e)/i);else{var a=(n-e)/(i=_p(e,n,o)[1])/o;a>1&&(i*=Math.ceil(a)),r&&i<r&&(i=r)}for(var s=[],u=e;u<n+i;u+=i)s.push(u);return s})),Vd("time-pretty",(function(t){var e=t.min,n=t.max,r=t.minTickInterval,i=t.tickCount,o=t.tickInterval,a=[];o||(o=(n-e)/i,r&&o<r&&(o=r));var s=og(e);if(o>31536e6)for(var u=og(n),c=Math.ceil(o/31536e6),f=s;f<=u+c;f+=c)a.push(ag(f));else if(o>Sp){var l=Math.ceil(o/Sp),h=sg(e),d=function(t,e){var n=og(t),r=og(e),i=sg(t);return 12*(r-n)+(sg(e)-i)%12}(e,n);for(f=0;f<=d+l;f+=l)a.push(ug(s,f+h))}else if(o>wp){var p=(b=new Date(e)).getFullYear(),g=b.getMonth(),v=b.getDate(),y=Math.ceil(o/wp),m=function(t,e){return Math.ceil((e-t)/wp)}(e,n);for(f=0;f<m+y;f+=y)a.push(new Date(p,g,v+f).getTime())}else if(o>xp){p=(b=new Date(e)).getFullYear(),g=b.getMonth(),y=b.getDate();var b,x=b.getHours(),w=Math.ceil(o/xp),S=function(t,e){return Math.ceil((e-t)/xp)}(e,n);for(f=0;f<=S+w;f+=w)a.push(new Date(p,g,y,x+f).getTime())}else if(o>6e4){var E=function(t,e){return Math.ceil((e-t)/6e4)}(e,n),_=Math.ceil(o/6e4);for(f=0;f<=E+_;f+=_)a.push(e+6e4*f)}else{var O=o;O<1e3&&(O=1e3);var k=1e3*Math.floor(e/1e3),M=Math.ceil((n-e)/1e3),A=Math.ceil(O/1e3);for(f=0;f<M+A;f+=A)a.push(k+1e3*f)}return a.length>=512&&console.warn("Notice: current ticks length("+a.length+\') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is \'+o+") is too small, increase the value to solve the problem!"),a})),Vd("log",(function(t){var e,n=t.base,r=t.tickCount,i=t.min,o=t.max,a=t.values,s=Tp(n,o);if(i>0)e=Math.floor(Tp(n,i));else{var u=Cp(a,n,o);e=Math.floor(Tp(n,u))}for(var c=s-e,f=Math.ceil(c/r),l=[],h=e;h<s+f;h+=f)l.push(Math.pow(n,h));return i<=0&&l.unshift(0),l})),Vd("pow",(function(t){var e=t.exponent,n=t.tickCount,r=Math.ceil(Ap(e,t.max));return rg(Math.floor(Ap(e,t.min)),r,n).ticks.map((function(t){var n=t>=0?1:-1;return Math.pow(t,e)*n}))})),Vd("quantile",(function(t){var e=t.tickCount,n=t.values;if(!n||!n.length)return[];for(var r=n.slice().sort((function(t,e){return t-e})),i=[],o=0;o<e;o++){var a=o/(e-1);i.push(ig(r,a))}return i})),Vd("d3-linear",(function(t){var e=t.min,n=t.max,r=t.tickInterval,i=t.minLimit,o=t.maxLimit,a=function(t){var e=t.min,n=t.max,r=t.nice,i=t.tickCount,o=new Jp;return o.domain([e,n]),r&&o.nice(i),o.ticks(i)}(t);return Object(h.s)(i)&&Object(h.s)(o)?r?eg(e,n,r).ticks:a:ng(t,Object(h.k)(a),Object(h.y)(a))})),Lp("cat",Xd),Lp("category",Xd),Lp("identity",Bp),Lp("linear",Mp),Lp("log",Ip),Lp("pow",Pp),Lp("time",jp),Lp("timeCat",Op),Lp("quantize",Dp),Lp("quantile",Np);var cg=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};function fg(t){return function(t){return Object(h.z)(t,(function(t,e){return[0===e?"M":"L",t[0],t[1]]}))}(t)}function lg(t,e,n,r){void 0===r&&(r=!0);var i=new Mp({values:t}),o=new Xd({values:Object(h.z)(t,(function(t,e){return e}))}),a=Object(h.z)(t,(function(t,r){return[o.scale(r)*e,n-i.scale(t)*n]}));return r?function(t){if(t.length<=2)return fg(t);var e=[];Object(h.f)(t,(function(t){Object(h.q)(t,e.slice(e.length-2))||e.push(t[0],t[1])}));var n=fe.a(e,!1),r=Object(h.k)(t),i=r[0],o=r[1];return n.unshift(["M",i,o]),n}(a):fg(a)}function hg(t,e,n){for(var r=new Mp({values:t}),i=new Xd({values:Object(h.z)(t,(function(t,e){return e}))}),o=Object(h.z)(t,(function(t,o){return[i.scale(o)*e,n-r.scale(t)*n]})),a=[],s=0;s<o.length;s++){var u=o[s],c=pg({x:u[0],y:u[1],y0:n,size:5});a.push.apply(a,c)}return function(t,e){void 0===e&&(e=!0);var n=[],r=t[0];n.push(["M",r.x,r.y]);for(var i=1,o=t.length;i<o;i++)n.push(["L",t[i].x,t[i].y]);e&&(n.push(["L",r.x,r.y]),n.push(["z"]));return n}(a)}function dg(t,e,n,r){var i=cg(t),o=function(t,e){var n=new Mp({values:t}),r=Math.max(0,n.min);return e-n.scale(r)*e}(r,n);return i.push(["L",e,o]),i.push(["L",0,o]),i.push(["Z"]),i}function pg(t){var e,n,r,i,o=t.x,a=t.y,s=t.y0,u=t.size;Object(h.m)(a)?(e=a[0],n=a[1]):(e=s,n=a),Object(h.m)(o)?(r=o[0],i=o[1]):(r=o-u/2,i=o+u/2);var c=[{x:r,y:e},{x:r,y:n}];return c.push({x:i,y:n},{x:i,y:e}),c}var gg=function(){return(gg=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},vg={stroke:"#C5C5C5",strokeOpacity:.85},yg={fill:"#CACED4",opacity:.85},mg=function(){function t(t){var e=t.x,n=void 0===e?0:e,r=t.y,i=void 0===r?0:r,o=t.width,a=void 0===o?200:o,s=t.height,u=void 0===s?26:s,c=t.smooth,f=void 0===c||c,l=t.isArea,h=void 0!==l&&l,d=t.data,p=void 0===d?[]:d,g=t.lineStyle,v=t.areaStyle,y=t.group,m=t.interval,b=void 0===m?null:m;this.group=y,this.x=n,this.y=i,this.width=a,this.height=u,this.data=p,this.smooth=f,this.isArea=h,this.lineStyle=Object.assign({},vg,g),this.areaStyle=Object.assign({},yg,v),this.intervalConfig=b,this.renderLine()}return t.prototype.renderLine=function(){var t=this,e=t.x,n=t.y,r=t.width,i=t.height,o=t.data,a=t.smooth,s=t.isArea,u=(t.backgroundStyle,t.lineStyle),c=t.areaStyle,f=this.group.addGroup({name:"trend-group"});if(o){var l=lg(o,r,i,a);if(f.addShape("path",{attrs:gg({path:l},u)}),s){var h=dg(l,r,i,o);f.addShape("path",{attrs:gg({path:h},c)})}}this.intervalConfig&&f.addShape("path",{attrs:gg({path:hg(this.intervalConfig.data,r,i)},this.intervalConfig.style)}),f.move(e,n)},t.prototype.destory=function(){this.group.destroy()},t}(),bg=function(){return(bg=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},xg={fill:"#1890ff",stroke:"#1890ff",type:"trend",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#0050b3"},wg={fill:"#fff",stroke:"#1890ff",radius:2,opacity:1,cursor:"ew-resize"},Sg=function(){function t(t){var e=t.group,n=t.name,r=t.type,i=t.x,o=void 0===i?0:i,a=t.y,s=void 0===a?0:a,u=t.width,c=void 0===u?2:u,f=t.height,l=void 0===f?24:f,h=t.style,d=void 0===h?{}:h;this.group=e,this.name=n,this.handleType=r,this.x=o,this.y=s,this.width=c,this.height=l,"trend"===r?this.style=bg(bg({},xg),d):"simple"===r&&(this.style=bg(bg({},wg),d)),this.renderHandle()}return t.prototype.setX=function(t){this.setXY(t,void 0)},t.prototype.setY=function(t){this.setXY(void 0,t)},t.prototype.setXY=function(t,e){Object(h.t)(t)&&(this.x=t),Object(h.t)(e)&&(this.y=e),this.updateXY()},t.prototype.renderHandle=function(){var t=this.width,e=this.height,n=this.style,r=this.name,i=n.fill,o=n.stroke,a=n.radius,s=n.opacity,u=n.cursor;this.handleGroup=this.group.addGroup(),"trend"===this.handleType?(this.background=this.handleGroup.addShape("rect",{attrs:{x:0,y:0,width:t,height:e,fill:i,stroke:o,radius:a,opacity:s,cursor:u},name:r+"-handler"}),this.handleGroup.addShape("circle",{attrs:{x:t/2,y:0,r:2*t,fill:i,stroke:o,radius:a,opacity:s,cursor:u},name:r+"-handler"}),this.handleGroup.addShape("circle",{attrs:{x:t/2,y:e,r:2*t,fill:i,stroke:o,radius:a,opacity:s,cursor:u},name:r+"-handler"})):"simple"===this.handleType&&(this.handleGroup.addShape("circle",{attrs:{x:t/2,y:e/2,r:2*t,fill:i,stroke:o,radius:a,opacity:s,cursor:u},name:r+"-handler"}),this.handleGroup.addShape("circle",{attrs:{x:t/2,y:e/2,r:2*t,fill:i,stroke:o,radius:a,opacity:s,cursor:u},name:r+"-handler"})),this.updateXY(),"trend"===this.handleType&&this.bindEvents()},t.prototype.bindEvents=function(){var t=this,e=this.name;this.handleGroup.on(e+"-handler:mouseenter",(function(){var e=t.style.highLightFill;t.background.attr("fill",e)})),this.handleGroup.on(e+"-handler:mouseleave",(function(){var e=t.style.fill;t.background.attr("fill",e)}))},t.prototype.show=function(){this.handleGroup.show()},t.prototype.hide=function(){this.handleGroup.hide()},t.prototype.updateXY=function(){this.handleGroup.setMatrix([1,0,0,0,1,0,this.x,this.y,1])},t}(),Eg=function(){return(Eg=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},_g=function(){function t(t){this.config=Object(h.e)({},t),this.init()}return t.prototype.update=function(t){this.config=Object(h.e)({},this.config,t),this.updateElement(),this.renderMarker()},t.prototype.init=function(){this.initElement(),this.renderMarker()},t.prototype.initElement=function(){var t=this.config,e=t.group,n=t.style;this.circle=e.addShape("circle",{attrs:Eg({x:this.config.x,y:this.config.y,r:this.config.r},n)}),this.startMarker=e.addShape("path",{attrs:{path:this.getStartMarkerPath(),fill:"#ccc"},name:"playPauseBtn"}),this.pauseGroupMarker=e.addGroup();var r=1/4*this.config.r,i=.5*this.config.r*Math.sqrt(3);this.pauseGroupMarker.addShape("rect",{attrs:{x:this.config.x-.375*this.config.r,y:this.config.y-i/2,width:2.5*r,height:i,fill:"#fff"},name:"playPauseBtn"}),this.pauseLeftMarker=this.pauseGroupMarker.addShape("rect",{attrs:{x:this.config.x-.375*this.config.r,y:this.config.y-i/2,width:r,height:i,fill:"#ccc"},name:"playPauseBtn"}),this.pauseRightMarker=this.pauseGroupMarker.addShape("rect",{attrs:{x:this.config.x+1/8*this.config.r,y:this.config.y-i/2,width:r,height:i,fill:"#ccc"},name:"playPauseBtn"})},t.prototype.updateElement=function(){this.circle.attr("x",this.config.x),this.circle.attr("y",this.config.y),this.circle.attr("r",this.config.r),this.startMarker.attr("path",this.getStartMarkerPath());var t=1/4*this.config.r,e=.5*this.config.r*Math.sqrt(3);this.pauseLeftMarker.attr("x",this.config.x-.375*this.config.r),this.pauseLeftMarker.attr("y",this.config.y-e/2),this.pauseLeftMarker.attr("width",t),this.pauseLeftMarker.attr("height",e),this.pauseRightMarker.attr("x",this.config.x+1/8*this.config.r),this.pauseRightMarker.attr("y",this.config.y-e/2),this.pauseRightMarker.attr("width",t),this.pauseRightMarker.attr("height",e)},t.prototype.renderMarker=function(){this.config.isPlay?(this.startMarker.hide(),this.pauseGroupMarker.show()):(this.startMarker.show(),this.pauseGroupMarker.hide())},t.prototype.getStartMarkerPath=function(){var t=.5*this.config.r*Math.sqrt(3);return[["M",this.config.x-t/Math.sqrt(3)/2,this.config.y-t/2],["L",this.config.x+t/Math.sqrt(3),this.config.y],["L",this.config.x-t/Math.sqrt(3)/2,this.config.y+t/2]]},t}(),Og=function(){return(Og=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},kg={fill:"#607889",stroke:"#607889"},Mg={fill:"#fff"},Ag={fill:"green"},Tg={speed:2,loop:!1,fill:"#fff",stroke:"#fff",hiddleToggle:!1,preBtnStyle:{fill:"#ccc",stroke:"#ccc"},nextBtnStyle:{fill:"#ccc",stroke:"#ccc"},playBtnStyle:{fill:"#fff",stroke:"#ccc"}},Cg=function(){function t(t){this.controllerCfg=Object(h.e)({},Tg,t),this.group=t.group,this.speedAxisY=[],this.currentSpeed=this.controllerCfg.speed,this.currentType="range",this.fontFamily=t.fontFamily||"Arial, sans-serif",this.init()}return t.prototype.init=function(){this.renderPlayButton()},t.prototype.getNextMarkerPath=function(t,e,n){return[["M",t,e-n],["L",t+n,e],["L",t,e+n]]},t.prototype.getPreMarkerPath=function(t,e,n){return[["M",t,e-n],["L",t-n,e],["L",t,e+n]]},t.prototype.renderPlayButton=function(){var t=this.controllerCfg,e=t.width,n=t.height,r=t.x,i=t.y,o=t.hiddleToggle,a=t.fill,s=void 0===a?"#ccc":a,u=t.stroke,c=void 0===u?"green":u,f=t.playBtnStyle,l=void 0===f?kg:f,h=t.preBtnStyle,d=void 0===h?Mg:h,p=t.nextBtnStyle,g=void 0===p?Ag:p,v=n/2-5,y=i+10,m=this.group.addShape("rect",{attrs:{x:r,y:y,width:e,height:n,stroke:c,fill:s},name:"container-rect"});this.playButton?this.playButton.update({x:e/2,y:y,r:v}):this.playButton=new _g({group:this.group,x:e/2,y:y+v+5,r:v,isPlay:this.isPlay,style:l}),this.group.addShape("path",{attrs:Og({path:this.getPreMarkerPath(e/2-5*v,y+v+5,.5*v)},d),name:"preStepBtn"}),this.group.addShape("path",{attrs:Og({path:this.getPreMarkerPath(e/2-4.5*v,y+v+5,.5*v)},d),name:"preStepBtn"}),this.group.addShape("path",{attrs:Og({path:this.getNextMarkerPath(e/2+5*v,y+v+5,.5*v)},g),name:"nextStepBtn"}),this.group.addShape("path",{attrs:Og({path:this.getNextMarkerPath(e/2+4.5*v,y+v+5,.5*v)},g),name:"nextStepBtn"}),m.toBack(),this.renderSpeedBtn(),o||this.renderToggleTime(),this.bindEvent()},t.prototype.renderSpeedBtn=function(){var t=this.controllerCfg,e=t.y,n=t.width,r=t.hiddleToggle,i=this.group.addGroup({name:"speed-group"});this.speedGroup=i;for(var o=1,a=[],s=9,u=0;u<5;u++){var c=e+15+u*(u+1)+o;i.addShape("rect",{attrs:{x:n-(r?50:110),y:c,width:15,height:2,fill:"#ccc"},speed:s,name:"speed-rect"}),this.speedAxisY.push(c),a.push(s),s-=2,o++}for(u=0;u<4;u++)i.addShape("rect",{attrs:{x:n-(r?50:110),y:this.speedAxisY[u]+2,width:15,height:2*u+1,fill:"#fff",opacity:.3},speed:a[u]-1,name:"speed-rect"});this.speedText=i.addShape("text",{attrs:{x:n-(r?50:110)+20,y:this.speedAxisY[1]+15,text:"1.0X",fill:"#ccc",fontFamily:this.fontFamily||"Arial, sans-serif"}}),this.speedPoint=i.addShape("path",{attrs:{path:this.getPath(n-(r?50:110),this.speedAxisY[4]),fill:"#ccc"}})},t.prototype.getPath=function(t,e){return[["M",t,e],["L",t-12,e-6],["L",t-12,e+6],["Z"]]},t.prototype.renderToggleTime=function(){var t,e=this.controllerCfg.width;this.toggleGroup=this.group.addGroup({name:"toggle-group"}),this.toggleGroup.addShape("rect",{attrs:{width:14,height:14,x:e-50,y:this.speedAxisY[1],fill:"#fff",stroke:"#ccc",lineWidth:2,radius:3},isChecked:!1,name:"toggle-model"}),this.checkedIcon=this.toggleGroup.addShape("path",{attrs:{path:[["M",e-50+3,this.speedAxisY[1]+6],["L",e-50+7,this.speedAxisY[1]+10],["L",e-50+12,this.speedAxisY[1]+4]],stroke:"green",lineWidth:3},capture:!1}),this.checkedIcon.hide(),this.checkedText=this.toggleGroup.addShape("text",{attrs:{text:(null===(t=this.controllerCfg)||void 0===t?void 0:t.timePointControllerText)||"å•ä¸€æ—¶é—´",x:e-50+20,y:this.speedAxisY[1]+15,fill:"#ccc",fontFamily:"undefined"!=typeof window&&window.getComputedStyle(document.body,null).getPropertyValue("font-family")||"Arial, sans-serif"}})},t.prototype.bindEvent=function(){var t=this,e=this.controllerCfg,n=e.width,r=e.hiddleToggle;this.speedGroup.on("speed-rect:click",(function(e){t.speedPoint.attr("path",t.getPath(n-(r?50:110),e.y)),t.currentSpeed=e.target.get("speed"),t.speedText.attr("text",t.currentSpeed+".0X"),t.group.emit("timebarConfigChanged",{speed:t.currentSpeed,type:t.currentType})})),this.toggleGroup&&this.toggleGroup.on("toggle-model:click",(function(e){var n,r,i=e.target.get("isChecked");i?(t.checkedIcon.hide(),t.checkedText.attr("text",(null===(r=t.controllerCfg)||void 0===r?void 0:r.timePointControllerText)||"å•ä¸€æ—¶é—´"),t.currentType="range"):(t.checkedIcon.show(),t.checkedText.attr("text",(null===(n=t.controllerCfg)||void 0===n?void 0:n.timeRangeControllerText)||"时间范围"),t.currentType="single"),e.target.set("isChecked",!i),t.group.emit("timebarConfigChanged",{type:t.currentType,speed:t.currentSpeed})}))},t.prototype.destroy=function(){this.speedGroup.off("speed-rect:click"),this.toggleGroup&&(this.toggleGroup.off("toggle-model:click"),this.toggleGroup.destroy()),this.speedGroup.destroy()},t}(),Ig=function(){return(Ig=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Pg={fill:"#416180",opacity:.05},jg={fill:"#416180",opacity:.15,radius:5},Dg={fill:"#5B8FF9",opacity:.3,cursor:"move"},Ng={width:2,height:24},Rg={textBaseline:"middle",fill:"#000",opacity:.45},Lg=function(){function t(t){var e=this;this.prevX=0,this.onMouseDown=function(t){return function(n){e.currentHandler=t;var r=n.originalEvent;r.stopPropagation(),r.preventDefault(),e.prevX=Object(h.i)(r,"touches.0.pageX",r.pageX);var i=e.canvas.get("container");i.addEventListener("mousemove",e.onMouseMove),i.addEventListener("mouseup",e.onMouseUp),i.addEventListener("mouseleave",e.onMouseUp),i.addEventListener("touchmove",e.onMouseMove),i.addEventListener("touchend",e.onMouseUp),i.addEventListener("touchcancel",e.onMouseUp)}},this.onMouseMove=function(t){t.stopPropagation(),t.preventDefault();var n=Object(h.i)(t,"touches.0.pageX",t.pageX),r=n-e.prevX,i=e.adjustOffsetRange(r/e.width);e.updateStartEnd(i),e.updateUI(),e.prevX=n},this.onMouseUp=function(){e.currentHandler&&(e.currentHandler=void 0);var t=e.canvas.get("container");t&&(t.removeEventListener("mousemove",e.onMouseMove),t.removeEventListener("mouseup",e.onMouseUp),t.removeEventListener("mouseleave",e.onMouseUp),t.removeEventListener("touchmove",e.onMouseMove),t.removeEventListener("touchend",e.onMouseUp),t.removeEventListener("touchcancel",e.onMouseUp))};var n=t.x,r=void 0===n?0:n,i=t.y,o=void 0===i?0:i,a=t.width,s=void 0===a?100:a,u=t.height,c=t.padding,f=void 0===c?10:c,l=t.trendCfg,d=t.controllerCfg,p=void 0===d?{speed:1}:d,g=t.backgroundStyle,v=void 0===g?{}:g,y=t.foregroundStyle,m=void 0===y?{}:y,b=t.handlerStyle,x=void 0===b?{}:b,w=t.textStyle,S=void 0===w?{}:w,E=t.start,_=void 0===E?0:E,O=t.end,k=void 0===O?1:O,M=t.minText,A=void 0===M?"":M,T=t.maxText,C=void 0===T?"":T,I=t.group,P=t.graph,j=t.canvas,D=t.ticks,N=t.type;this.graph=P,this.canvas=j,this.group=I,this.timeBarType=N,this.x=r,this.y=o,this.width=s,this.height=u,this.padding=f,this.ticks=D,this.trendCfg=l,this.controllerCfg=p,this.currentSpeed=p.speed||1,"trend"===N?this.backgroundStyle=Ig(Ig({},Pg),v):"simple"===N&&(this.backgroundStyle=Ig(Ig({},jg),v)),this.foregroundStyle=Ig(Ig({},Dg),m),this.handlerStyle=Ig(Ig({},Ng),x),this.textStyle=Ig(Ig({},Rg),S),this.currentMode="range",this.start=_,this.end=k,this.minText=A,this.maxText=C,this.fontFamily="undefined"!=typeof window&&window.getComputedStyle(document.body,null).getPropertyValue("font-family")||"Arial, sans-serif",this.renderSlider()}return t.prototype.update=function(t){var e=t.x,n=t.y,r=t.width,i=t.height,o=t.minText,a=t.maxText,s=t.start,u=t.end;this.start=Math.min(1,Math.max(s,0)),this.end=Math.min(1,Math.max(u,0)),Object(h.a)(this,{x:e,y:n,width:r,height:i,minText:o,maxText:a}),this.updateUI()},t.prototype.setText=function(t,e){this.minTextShape.attr("text",t),this.maxTextShape.attr("text",e)},t.prototype.renderSlider=function(){var t=this,e=this.width,n=this.height,r=this.timeBarType;if("trend"===r&&Object(h.E)(Object(h.i)(this.trendCfg,"data"))){var i=new mg(Ig(Ig({x:this.x,y:this.y,width:e,height:n},this.trendCfg),{group:this.group}));this.trendComponent=i}var o=this.group.addGroup({name:"slider-group"});o.addShape("rect",{attrs:Ig({x:0,y:0,width:e,height:n},this.backgroundStyle)});var a=this.group.addGroup();"trend"===r?(this.minTextShape=a.addShape("text",{attrs:Ig({x:0,y:n/2+this.y,textAlign:"right",text:this.minText,silent:!1,fontFamily:this.fontFamily||"Arial, sans-serif"},this.textStyle),capture:!1}),this.maxTextShape=a.addShape("text",{attrs:Ig({y:n/2+this.y,textAlign:"left",text:this.maxText,silent:!1,fontFamily:this.fontFamily||"Arial, sans-serif"},this.textStyle),capture:!1})):(this.minTextShape=a.addShape("text",{attrs:Ig({x:0,y:this.y-10,textAlign:"center",text:this.minText,silent:!1,fontFamily:this.fontFamily||"Arial, sans-serif"},this.textStyle),capture:!1}),this.maxTextShape=a.addShape("text",{attrs:Ig({y:this.y-10,textAlign:"center",text:this.maxText,silent:!1,fontFamily:this.fontFamily||"Arial, sans-serif"},this.textStyle),capture:!1})),this.foregroundShape=this.group.addGroup().addShape("rect",{attrs:Ig({x:0,y:this.y,height:n},this.foregroundStyle)});var s=Object(h.i)(this.handlerStyle,"width",2),u=Object(h.i)(this.handlerStyle,"height",24),c=this.group.addGroup({name:"minHandlerShape"});this.minHandlerShape=new Sg(Ig({name:"minHandlerShape",group:c,type:r,x:this.x,y:this.y,width:s,height:u,cursor:"ew-resize"},this.handlerStyle));var f=this.group.addGroup({name:"maxHandlerShape"});this.maxHandlerShape=new Sg(Ig({name:"maxHandlerShape",group:f,type:r,x:this.x,y:this.y,width:s,height:u,cursor:"ew-resize"},this.handlerStyle));var l=this.ticks,d=e/(l.length-1);this.tickPosList=[],this.textList&&this.textList.length&&this.textList.forEach((function(t){t.destroy()}));var p=-1/0;this.textList=l.map((function(e,r){t.tickPosList.push(t.x+r*d);var i=t.group.addShape("text",{attrs:{x:t.x+r*d,y:t.y+n+5,text:e,textAlign:"center",textBaseline:"top",fill:"#607889",opacity:.35,fontFamily:t.fontFamily||"Arial, sans-serif"}}),o=t.group.addShape("line",{attrs:{x1:t.x+r*d,y1:t.y+n+2,x2:t.x+r*d,y2:t.y+n+6,lineWidth:1,stroke:"#ccc"}}),a=i.getBBox();return a.minX>p?(i.show(),o.show(),p=a.minX+a.width+10):(i.hide(),o.hide()),i})),this.controllerBtnGroup=new Cg(Ig({group:this.group,x:this.x,y:this.y+n+25,width:e,height:40},this.controllerCfg)),this.updateUI(),o.move(this.x,this.y),this.bindEvents()},t.prototype.bindEvents=function(){var t=this,e=this.group.find((function(t){return"minHandlerShape"===t.get("name")}));e&&(e.on("minHandlerShape-handler:mousedown",this.onMouseDown(this.minHandlerShape)),e.on("minHandlerShape-handler:touchstart",this.onMouseDown(this.minHandlerShape)));var n=this.group.find((function(t){return"maxHandlerShape"===t.get("name")}));n&&(n.on("maxHandlerShape-handler:mousedown",this.onMouseDown(this.maxHandlerShape)),n.on("maxHandlerShape-handler:touchstart",this.onMouseDown(this.maxHandlerShape))),this.foregroundShape.on("mousedown",this.onMouseDown(this.foregroundShape)),this.foregroundShape.on("touchstart",this.onMouseDown(this.foregroundShape)),this.group.on("playPauseBtn:click",(function(){t.isPlay=!t.isPlay,t.currentHandler=t.maxHandlerShape,t.changePlayStatus()})),this.group.on("nextStepBtn:click",(function(){t.currentHandler=t.maxHandlerShape,t.updateStartEnd(.01),t.updateUI()})),this.group.on("preStepBtn:click",(function(){t.currentHandler=t.maxHandlerShape,t.updateStartEnd(-.01),t.updateUI()})),this.group.on("timebarConfigChanged",(function(e){var n=e.type,r=e.speed;t.currentSpeed=r,t.currentMode=n,"single"===n?(t.minHandlerShape.hide(),t.foregroundShape.hide(),t.minTextShape.hide()):"range"===n&&(t.minHandlerShape.show(),t.foregroundShape.show(),t.minTextShape.show())}))},t.prototype.adjustTickIndex=function(t){for(var e=0;e<this.tickPosList.length-1;e++)if(this.tickPosList[e]<=t&&t<=this.tickPosList[e+1])return Math.abs(this.tickPosList[e]-t)<Math.abs(t-this.tickPosList[e+1])?e:e+1},t.prototype.adjustOffsetRange=function(t){switch(this.currentHandler){case this.minHandlerShape:var e=0-this.start,n=1-this.start;return Math.min(n,Math.max(e,t));case this.maxHandlerShape:e=0-this.end,n=1-this.end;return Math.min(n,Math.max(e,t));case this.foregroundShape:e=0-this.start,n=1-this.end;return Math.min(n,Math.max(e,t));default:return 0}},t.prototype.updateStartEnd=function(t){switch(this.currentHandler){case this.minHandlerShape:this.maxText=this.maxTextShape.attr("text"),this.start+=t,this.minText=this.ticks[this.adjustTickIndex(this.start*this.width)];break;case this.maxHandlerShape:this.minText=this.minTextShape.attr("text"),this.end+=t,this.maxText=this.ticks[this.adjustTickIndex(this.end*this.width)];break;case this.foregroundShape:this.start+=t,this.end+=t,this.minText=this.ticks[this.adjustTickIndex(this.start*this.width)],this.maxText=this.ticks[this.adjustTickIndex(this.end*this.width)]}},t.prototype.updateUI=function(){var t=this;this.start<0&&(this.start=0),this.end>1&&(this.end=1);var e=this.start*this.width,n=this.end*this.width;this.foregroundShape.attr("x",e),this.foregroundShape.attr("width",n-e);var r=Object(h.i)(this.handlerStyle,"width",2);this.setText(this.minText,this.maxText);var i=this.dodgeText([e,n]),o=i[0],a=i[1];this.minHandlerShape.setX(e-r/2),Object(h.f)(o,(function(e,n){return t.minTextShape.attr(n,e)})),this.maxHandlerShape.setX(n-r/2),Object(h.f)(a,(function(e,n){return t.maxTextShape.attr(n,e)})),"range"===this.currentMode?this.graph.emit("valueChange",{value:[this.start,this.end].sort()}):"single"===this.currentMode&&this.graph.emit("valueChange",{value:[this.end,this.end]})},t.prototype.dodgeText=function(t){var e,n,r=Object(h.i)(this.handlerStyle,"width",2),i=this.minTextShape,o=this.maxTextShape,a=t[0],s=t[1],u=!1;a>s&&(a=(e=[s,a])[0],s=e[1],i=(n=[o,i])[0],o=n[1],u=!0);var c=i.getBBox(),f=o.getBBox(),l=null,d=null;return"trend"===this.timeBarType?(l=c.width>a-2?{x:a+r/2+2,textAlign:"left"}:{x:a-r/2-2,textAlign:"right"},d=f.width>this.width-s-2?{x:s-r/2-2,textAlign:"right"}:{x:s+r/2+2,textAlign:"left"}):"simple"===this.timeBarType&&(l=c.width>a-2?{x:a+r/2+2,textAlign:"center"}:{x:a-r/2-2,textAlign:"center"},d=f.width>this.width-s-2?{x:s-r/2-2,textAlign:"center"}:{x:s+r/2+2,textAlign:"center"}),u?[d,l]:[l,d]},t.prototype.startPlay=function(){var t=this;return"undefined"!=typeof window?window.requestAnimationFrame((function(){var e=t,n=e.ticks,r=e.width,i=t.currentSpeed,o=r/n.length/(1e3*(10-i)/60),a=t.adjustOffsetRange(o/t.width);t.updateStartEnd(a),t.updateUI(),t.isPlay&&(t.playHandler=t.startPlay())})):void 0},t.prototype.changePlayStatus=function(t){void 0===t&&(t=!0),this.controllerBtnGroup.playButton.update({isPlay:this.isPlay}),this.isPlay?(this.playHandler=this.startPlay(),this.graph.emit("timelinestart",null)):this.playHandler&&("undefined"!=typeof window&&window.cancelAnimationFrame(this.playHandler),t&&this.graph.emit("timelineend",null))},t.prototype.destory=function(){this.graph.off("valueChange");var t=this.group,e=t.find((function(t){return"minHandlerShape"===t.get("name")}));e&&(e.off("minHandlerShape-handler:mousedown"),e.off("minHandlerShape-handler:touchstart"),e.destroy());var n=t.find((function(t){return"maxHandlerShape"===t.get("name")}));n&&(n.off("maxHandlerShape-handler:mousedown"),n.off("maxHandlerShape-handler:touchstart"),n.destroy()),this.foregroundShape.off("mousedown"),this.foregroundShape.off("touchstart"),this.foregroundShape.destroy(),t.off("playPauseBtn:click"),t.off("nextStepBtn:click"),t.off("preStepBtn:click"),t.off("timebarConfigChanged"),t.destroy(),this.trendComponent&&this.trendComponent.destory()},t}(),Bg=function(){function t(t){var e=t.x,n=void 0===e?0:e,r=t.y,i=void 0===r?0:r,o=t.container,a=t.text,s=t.padding,u=void 0===s?[4,4,4,4]:s,c=t.className,f=void 0===c?"g6-component-timebar-tooltip":c,l=t.backgroundColor,h=void 0===l?"#000":l,d=t.textColor,p=void 0===d?"#fff":d,g=t.opacity,v=void 0===g?.8:g,y=t.fontSize,m=void 0===y?12:y;this.container=o,this.className=f,this.backgroundColor=h,this.textColor=p,this.x=n,this.y=i,this.text=a,this.padding=u,this.opacity=v,this.fontSize=m,this.render()}return t.prototype.render=function(){var t=this.className,e=(this.x,this.y,this.backgroundColor),n=this.textColor,r=this.text,i=this.padding,o=this.opacity,a=this.fontSize,s=this.container,u=gt("<div class=\'"+t+"\' style=\\"position: absolute; width: fit-content; height: fit-content; opacity: "+o+\'"></div>\');Object(h.x)(s)&&(s=document.getElementById(s)),s.appendChild(u),this.parentHeight=s.offsetHeight,this.parentWidth=s.offsetWidth,vt(u,{visibility:"hidden",top:0,left:0});var c=gt("\\n <div style=\'position: absolute; white-space:nowrap; background-color: "+e+"; font-size: "+a+"px; border-radius: 4px; width: fit-content; height: fit-content; color: "+n+"; padding: "+i[0]+"px "+i[1]+"px "+i[2]+"px "+i[3]+"px\'></div>");c.innerHTML=r,u.appendChild(c),this.backgroundDOM=c;var f=gt("<div style=\'position: absolute; width: 0px; height: 0px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 10px solid "+e+"\'></div>");u.appendChild(f),this.arrowDOM=f,this.container=u},t.prototype.show=function(t){var e=t.text,n=t.x;t.y,t.clientX,t.clientY;this.backgroundDOM.innerHTML=e;var r=this.backgroundDOM.offsetWidth,i=this.backgroundDOM.offsetHeight,o=this.arrowDOM.offsetWidth,a=this.arrowDOM.offsetHeight;vt(this.container,{top:-i-a+"px",left:n+"px",visibility:"visible"}),vt(this.backgroundDOM,{marginLeft:-r/2+"px"}),vt(this.arrowDOM,{marginLeft:-o/2+"px",top:i+"px"});var s=n-r/2,u=n+r/2;s<0?vt(this.backgroundDOM,{marginLeft:-r/2-s+"px"}):u>this.parentWidth&&vt(this.backgroundDOM,{marginLeft:-r/2-u+this.parentWidth+12+"px"})},t.prototype.hide=function(){vt(this.container,{top:0,left:0,visibility:"hidden"})},t}(),Gg=function(){return(Gg=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Fg={fill:"#5B8FF9"},Ug={fill:"#e6e8e9"},zg=function(){function t(t){this.frameCount=0,this.fontFamily="Arial, sans-serif";var e=t.graph,n=t.canvas,r=t.group,i=t.width,o=t.height,a=t.padding,s=t.data,u=t.start,c=t.end,f=t.x,l=void 0===f?0:f,h=t.y,d=void 0===h?0:h,p=t.tickLabelFormatter,g=t.selectedTickStyle,v=void 0===g?Fg:g,y=t.unselectedTickStyle,m=void 0===y?Ug:y,b=t.tooltipBackgroundColor,x=t.tooltipFomatter;this.graph=e,this.group=r,this.sliceGroup=r.addGroup({name:"slice-group"}),this.canvas=n,this.width=i,this.height=o,this.padding=a,this.data=s,this.start=u,this.end=c,this.tickLabelFormatter=p,this.selectedTickStyle=v,this.unselectedTickStyle=m,this.x=l,this.y=d,this.tooltipBackgroundColor=b,this.tooltipFomatter=x,this.fontFamily="undefined"!=typeof window&&window.getComputedStyle(document.body,null).getPropertyValue("font-family")||"Arial, sans-serif",this.renderSlices(),this.initEvent()}return t.prototype.renderSlices=function(){var t=this,e=this,n=e.width,r=e.height,i=e.padding,o=e.data,a=e.start,s=e.end,u=e.tickLabelFormatter,c=e.selectedTickStyle,f=e.unselectedTickStyle,l=n-2*i,d=r-(3*i+4+10)-2*i,p=o.length,g=(l-2*(p-1))/p;this.tickWidth=g;var v=this.sliceGroup,y=[],m=[],b=Math.round(p*a),x=Math.round(p*s);this.startTickRectId=b,this.endTickRectId=x,o.forEach((function(e,r){var o=r>=b&&r<=x?c:f,a=v.addShape("rect",{attrs:Gg({x:i+r*(g+2),y:i,width:g,height:d},o),draggable:!0,name:"tick-rect-"+r}),s=v.addShape("rect",{attrs:{x:i+r*g+2*(2*r-1)/2,y:i,width:0===r||r===p-1?g+1:g+2,height:d,fill:"#fff",opacity:0},draggable:!0,name:"pick-rect-"+r});s.toFront();var l,w=a.getBBox(),S=(w.minX+w.maxX)/2;if(y.push({rect:a,pickRect:s,value:e.date,x:S,y:w.minY}),u?(l=u(e),!Object(h.x)(l)&&l&&(l=e.date)):r%Math.round(p/10)==0&&(l=e.date),l){m.push(l);var E=w.maxY+2*i;v.addShape("line",{attrs:{stroke:"#BFBFBF",x1:S,y1:E,x2:S,y2:E+4}});var _=E+4+i,O=v.addShape("text",{attrs:{fill:"#8c8c8c",stroke:"#fff",lineWidth:1,x:S,y:_,textAlign:"center",text:l,textBaseline:"top",fontSize:10,fontFamily:t.fontFamily||"Arial, sans-serif"},capture:!1}),k=O.getBBox();k.maxX>n?O.attr("textAlign","right"):k.minX<0&&O.attr("textAlign","left")}})),this.tickRects=y;var w=this.group;this.currentSpeed=1,this.controllerBtnGroup=new Cg({group:w,x:this.x,y:this.y+r+5,width:n,height:40,hiddleToggle:!0,speed:this.currentSpeed,fontFamily:this.fontFamily||"Arial, sans-serif"})},t.prototype.initEvent=function(){var t=this,e=this.sliceGroup;e.on("click",(function(e){var n=e.target;if("rect"===n.get("type")&&n.get("name")){var r=parseInt(n.get("name").split("-")[2],10);if(!isNaN(r)){var i=t.tickRects,o=t.unselectedTickStyle;i.forEach((function(t){t.rect.attr(o)}));var a=t.selectedTickStyle;i[r].rect.attr(a),t.startTickRectId=r,t.endTickRectId=r;var s=r/i.length;t.graph.emit("valueChange",{value:[s,s]})}}})),e.on("dragstart",(function(e){var n=t.tickRects,r=t.unselectedTickStyle;n.forEach((function(t){t.rect.attr(r)}));var i=e.target,o=parseInt(i.get("name").split("-")[2],10),a=t.selectedTickStyle;n[o].rect.attr(a),t.startTickRectId=o;var s=o/n.length;t.graph.emit("valueChange",{value:[s,s]}),t.dragging=!0})),e.on("dragover",(function(e){if(t.dragging&&"rect"===e.target.get("type")){for(var n=parseInt(e.target.get("name").split("-")[2],10),r=t.startTickRectId,i=t.tickRects,o=t.selectedTickStyle,a=t.unselectedTickStyle,s=0;s<i.length;s++){var u=s>=r&&s<=n?o:a;i[s].rect.attr(u)}var c=i.length;t.endTickRectId=n;var f=r/c,l=n/c;t.graph.emit("valueChange",{value:[f,l]})}})),e.on("drop",(function(e){if(t.dragging&&(t.dragging=!1,"rect"===e.target.get("type"))){var n=t.startTickRectId,r=parseInt(e.target.get("name").split("-")[2],10);if(!(r<n)){var i=t.selectedTickStyle,o=t.tickRects;o[r].rect.attr(i),t.endTickRectId=r;var a=o.length,s=n/a,u=r/a;t.graph.emit("valueChange",{value:[s,u]})}}}));var n=this.tooltipBackgroundColor,r=this.tooltipFomatter,i=this.canvas,o=new Bg({container:i.get("container"),backgroundColor:n}),a=this.tickRects;a.forEach((function(t){var e=t.pickRect;e.on("mouseenter",(function(t){var e=t.target;if("rect"===e.get("type")){var n=parseInt(e.get("name").split("-")[2],10),s=i.getClientByPoint(a[n].x,a[n].y);o.show({x:a[n].x,y:a[n].y,clientX:s.x,clientY:s.y,text:r?r(a[n].value):a[n].value})}})),e.on("mouseleave",(function(t){o.hide()}))}));var s=this.group;s.on("playPauseBtn:click",(function(){t.isPlay=!t.isPlay,t.changePlayStatus()})),s.on("nextStepBtn:click",(function(){t.updateStartEnd(1)})),s.on("preStepBtn:click",(function(){t.updateStartEnd(-1)})),s.on("timebarConfigChanged",(function(e){e.type;var n=e.speed;t.currentSpeed=n}))},t.prototype.changePlayStatus=function(t){void 0===t&&(t=!0),this.controllerBtnGroup.playButton.update({isPlay:this.isPlay}),this.isPlay?(this.playHandler=this.startPlay(),this.graph.emit("timelinestart",null)):this.playHandler&&("undefined"!=typeof window&&window.cancelAnimationFrame(this.playHandler),t&&this.graph.emit("timelineend",null))},t.prototype.startPlay=function(){var t=this;return"undefined"!=typeof window?window.requestAnimationFrame((function(){var e=t.currentSpeed;t.frameCount%(60/e)==0&&(t.frameCount=0,t.updateStartEnd(1)),t.frameCount++,t.isPlay&&(t.playHandler=t.startPlay())})):void 0},t.prototype.updateStartEnd=function(t){var e=this.tickRects,n=e.length,r=this.unselectedTickStyle,i=this.selectedTickStyle,o=this.endTickRectId;if(t>0?this.endTickRectId++:(e[this.endTickRectId].rect.attr(r),this.endTickRectId--),o!==this.startTickRectId)this.endTickRectId<this.startTickRectId&&(this.startTickRectId=this.endTickRectId);else{for(var a=this.startTickRectId;a<=this.endTickRectId-1;a++)e[a].rect.attr(r);this.startTickRectId=this.endTickRectId}if(e[this.endTickRectId]){e[this.endTickRectId].rect.attr(i);var s=this.startTickRectId/n,u=this.endTickRectId/n;this.graph.emit("valueChange",{value:[s,u]})}},t.prototype.destory=function(){this.graph.off("valueChange");var t=this.sliceGroup;t.off("click"),t.off("dragstart"),t.off("dragover"),t.off("drop"),this.tickRects.forEach((function(t){var e=t.pickRect;e.off("mouseenter"),e.off("mouseleave")})),this.tickRects.length=0,t.off("playPauseBtn:click"),t.off("nextStepBtn:click"),t.off("preStepBtn:click"),t.off("timebarConfigChanged"),this.sliceGroup.destroy()},t}(),Vg=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wg=function(){return(Wg=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Xg=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},Yg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Vg(e,t),e.prototype.getDefaultCfgs=function(){return{container:null,className:"g6-component-timebar",padding:10,type:"trend",trend:{data:[],isArea:!1,smooth:!0},controllerCfg:{speed:2,loop:!1},slider:{start:.1,end:.9,minText:"min",maxText:"max"},tick:{start:.1,end:.9,data:[]},textStyle:{}}},e.prototype.initContainer=function(){var t,e,n=this.get("graph"),r=this._cfgs,i=r.width,o=r.height,a=this.get("className")||"g6-component-timebar",s=this.get("container"),u=this.get("graph").get("container");s?(Object(h.x)(s)&&(s=document.getElementById(s)),t=s):vt(t=gt("<div class=\'"+a+"\'></div>"),{position:"relative"}),u.appendChild(t),this.set("timeBarContainer",t),e="SVG"===n.get("renderer")?new sn.Canvas({container:t,width:i,height:o}):new an.Canvas({container:t,width:i,height:o}),this.set("canvas",e)},e.prototype.init=function(){this.initContainer();var t=this.get("canvas").addGroup({name:"timebar-group"});this.set("timeBarGroup",t),this.renderTrend(),this.initEvent();var e="undefined"!=typeof window&&window.getComputedStyle(document.body,null).getPropertyValue("font-family")||"Arial, sans-serif";this.set("fontFamily",e)},e.prototype.renderTrend=function(){var t=this._cfgs,e=t.width,n=t.x,r=t.y,i=t.padding,o=t.type,a=t.trend,s=t.slider,u=t.controllerCfg,c=t.textStyle,f=a.data,l=Xg(a,["data"]),h=e-2*i,d="trend"===o?26:8,p=this.get("graph"),g=this.get("timeBarGroup"),v=this.get("canvas"),y=null;if("trend"===o||"simple"===o)y=new Lg(Wg(Wg({graph:p,canvas:v,group:g,type:o,x:n+i,y:"trend"===o?r+i:r+i+15,width:h,height:d,padding:i,trendCfg:Wg(Wg({},l),{data:f.map((function(t){return t.value}))})},s),{ticks:f.map((function(t){return t.date})),handlerStyle:Wg(Wg({},s.handlerStyle),{height:s.height||d}),controllerCfg:u,textStyle:c}));else if("tick"===o){var m=this._cfgs.tick;y=new zg(Wg({graph:p,canvas:v,group:g,x:n+i,y:r+i},m))}this.set("timebar",y)},e.prototype.filterData=function(t){var e=t.value,n=null,r=this._cfgs.type;if("trend"===r||"simple"===r?n=this._cfgs.trend.data:"tick"===r&&(n=this._cfgs.tick.data),n&&0!==n.length){var i=this.get("rangeChange"),o=this.get("graph"),a=Math.round(n.length*e[0]),s=Math.round(n.length*e[1]);s=s>=n.length?n.length-1:s;var u=n[a].date,c=n[s].date;if("tick"!==r)this.get("timebar").setText(u,c);if(i)i(o,u,c);else{var f=o.save();(!this.cacheGraphData||this.cacheGraphData.nodes&&0===this.cacheGraphData.nodes.length)&&(this.cacheGraphData=f);var l=this.cacheGraphData.nodes.filter((function(t){return t.date>=u&&t.date<=c})),h=l.map((function(t){return t.id})),d=this.cacheGraphData.edges.filter((function(t){return h.includes(t.source)&&h.includes(t.target)}));o.changeData({nodes:l,edges:d})}}else console.warn("请é…ç½® TimeBar 组件的数æ®")},e.prototype.initEvent=function(){var t=this,e=0,n=0,r=this._cfgs.type;r&&"trend"!==r&&"simple"!==r?"tick"===r&&(e=this._cfgs.tick.start,n=this._cfgs.tick.end):(e=this._cfgs.slider.start,n=this._cfgs.slider.end);var i=this.get("graph");i.on("afterrender",(function(){t.filterData({value:[e,n]})})),i.on("valueChange",(function(e){t.filterData(e)}))},e.prototype.destroy=function(){var e=this.get("timebar");e&&e.destory&&e.destory(),t.prototype.destroy.call(this);var n=this.get("timeBarContainer");if(n){var r=this.get("container");r||(r=this.get("graph").get("container")),Object(h.x)(r)&&(r=document.getElementById(r)),r.removeChild(n)}},e}(yd),Hg=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qg=Qe.applyMatrix;var Kg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Hg(e,t),e.prototype.getDefaultCfgs=function(){return{container:null,className:"g6-minimap",viewportClassName:"g6-minimap-viewport",width:200,delegateStyle:{fill:"#40a9ff",stroke:"#096dd9"},refresh:!0}},e.prototype.getEvents=function(){return{beforepaint:"updateViewport",beforeanimate:"disableRefresh",afteranimate:"enableRefresh",viewportchange:"disableOneRefresh"}},e.prototype.disableRefresh=function(){this.set("refresh",!1)},e.prototype.enableRefresh=function(){this.set("refresh",!0),this.updateCanvas()},e.prototype.disableOneRefresh=function(){this.set("viewportChange",!0)},e.prototype.initViewport=function(){var t=this,e=this._cfgs,n=e.graph;if(!this.destroyed){var r=this.get("container");Object(h.x)(r)&&(r=document.getElementById(r));var i=gt("<div class="+e.viewportClassName+"\\n style=\'position:absolute;\\n left:0;\\n top:0;\\n box-sizing:border-box;\\n border: 2px solid #1980ff\'>\\n </div>"),o=0,a=0,s=!1,u=0,c=0,f=0,l=0,d=0,p=0;r.addEventListener("mousedown",(function(r){if(e.refresh=!1,r.target===i){var u=i.style;f=parseInt(u.width,10),l=parseInt(u.height,10);var c=t.get("width"),h=t.get("height");f>c||l>h||(p=n.getZoom(),d=t.get("ratio"),s=!0,o=r.clientX,a=r.clientY)}}),!1),r.addEventListener("mousemove",(function(e){if(s&&!Object(h.s)(e.clientX)&&!Object(h.s)(e.clientY)){var r=t.get("width"),g=t.get("height"),v=i.style;u=parseInt(v.left,10),c=parseInt(v.top,10),f=parseInt(v.width,10),l=parseInt(v.height,10);var y=o-e.clientX,m=a-e.clientY;u-y<0?y=u:u-y+f>=r&&(y=0),c-m<0?m=c:c-m+l>=g&&(m=0),vt(i,{left:(u-=y)+"px",top:(c-=m)+"px"}),n.translate(y*p/d,m*p/d),o=e.clientX,a=e.clientY}}),!1),r.addEventListener("mouseleave",(function(){s=!1,e.refresh=!0}),!1),r.addEventListener("mouseup",(function(){s=!1,e.refresh=!0}),!1),this.set("viewport",i),r.appendChild(i)}},e.prototype.updateViewport=function(){if(!this.destroyed){var t=this.get("ratio"),e=this.get("width"),n=this.get("height"),r=this.get("graph"),i=r.get("width"),o=i/r.get("height"),a=r.getGroup(),s=a.getCanvasBBox(),u=[(s.minX+s.maxX)/2,(s.minY+s.maxY)/2],c=[s.maxX-s.minX,s.maxY-s.minY],f={centerX:u[0],centerY:u[1],width:0,height:0,minX:0,minY:0};s[0]/s[1]>o?(f.width=c[0],f.height=f.width/o):(f.height=c[1],f.width=f.height*o),f.minX=u[0]-f.width/2,f.minY=u[1]-f.height/2;var l=a.getMatrix();l||(l=[1,0,0,0,1,0,0,0,1]);var h=un.a.invert([1,0,0,0,1,0,0,0,1],l),d=qg({x:f.minX,y:f.minY},h),p=r.getCanvasByPoint(d.x,d.y),g=this.get("viewport");g||this.initViewport();var v=i/f.width,y=v*e,m=v*n,b=e*-p.x/f.width,x=n*-p.y/f.height,w=b+y,S=x+m;b<0&&(y+=b,b=0),w>e&&(y-=w-e),x<0&&(m+=x,x=0),S>n&&(m-=S-n),this.set("ratio",t),vt(g,{left:b+"px",top:x+"px",width:y+"px",height:m+"px"})}},e.prototype.init=function(){this.initContainer()},e.prototype.initContainer=function(){var t=this.get("graph"),e=t.get("width"),n=t.get("height")/e,r=this.get("className"),i=this.get("container"),o=this.get("width"),a=this.get("height");o||a||(o=200),o?(a=n*o,this.set("height",a)):(o=1/n*a,this.set("width",o));var s=gt("<div class=\'"+r+"\' style=\'width: "+o+"px; height: "+a+"px; overflow: hidden; position: relative;\'></div>");Object(h.x)(i)&&(i=document.getElementById(i)),i?i.appendChild(s):t.get("container").appendChild(s),this.set("container",s);var u=gt(\'<div class="g6-minimap-container" style="position: relative; width: 100%; height: 100%; text-align: center; display: table;"></div>\');s.appendChild(u);var c=gt(\'<span style="display: table-cell; vertical-align: middle; "></span>\');u.appendChild(c),this.set("containerDOM",u),this.set("containerSpan",c);var f=gt(\'<img alt="" src="\'+this.get("graphImg")+\'" style="display: inline-block;" ondragstart="return false;" onselectstart="return false;"/>\');this.set("imgDOM",f),this.updateImgSize(),c.appendChild(f),this.updateCanvas()},e.prototype.updateImgSize=function(){var t=this.get("imgDOM"),e=this.get("width"),n=this.get("height");t.onload=function(){var r=function(t,e){var n,r;if(t.naturalWidth)n=t.naturalWidth,r=t.naturalHeight;else{var i=new Image;i.src=t.src,i.onload=function(){e&&e(i.width,i.height)}}return[n,r]}(t);r[0]>r[1]?t.width=e:t.height=n}},e.prototype.updateCanvas=function(){if(this.get("refresh")){var t=this.get("graph");if(!t.get("destroyed")){this.get("viewportChange")&&(this.set("viewportChange",!1),this.updateViewport());var e=this.get("width")/t.get("canvas").getCanvasBBox().width;this.set("ratio",e),this.updateViewport()}}},e.prototype.getViewport=function(){return this.get("viewport")},e.prototype.getContainer=function(){return this.get("container")},e.prototype.updateGraphImg=function(t){this.get("imgDOM").remove(),this.set("graphImg",t);var e=gt(\'<img alt="" src="\'+t+\'" style="display: inline-block;" ondragstart="return false;" onselectstart="return false;"/>\');this.set("imgDOM",e),e.src=t,this.updateImgSize(),this.get("containerSpan").appendChild(e),this.updateCanvas()},e.prototype.destroy=function(){var t=this.get("container");t.parentNode.removeChild(t)},e}(yd),Zg=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qg=function(){return(Qg=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Jg=Qe.distance,$g={stroke:"#000",strokeOpacity:.8,lineWidth:2,fillOpacity:1,fill:"#fff"},tv={PluginBase:yd,Menu:_d,Grid:xd,Minimap:Td,Bundling:jd,ToolBar:Gd,Tooltip:Ud,Fisheye:Ld,TimeBar:Yg,ImageMinimap:Kg,EdgeFilterLens:function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zg(e,t),e.prototype.getDefaultCfgs=function(){return{type:"both",trigger:"mousemove",r:60,delegateStyle:Object(h.c)($g),showLabel:"edge",scaleRBy:"wheel"}},e.prototype.getEvents=function(){var t;switch(this.get("trigger")){case"click":t={click:"filter"};break;case"drag":t={click:"createDelegate"};break;default:t={mousemove:"filter"}}return t},e.prototype.init=function(){var t=this.get("showLabel"),e="node"===t||"both"===t,n="edge"===t||"both"===t;this.set("showNodeLabel",e),this.set("showEdgeLabel",n),this.get("shouldShow")||this.set("shouldShow",(function(){return!0}))},e.prototype.createDelegate=function(t){var e=this,n=e.get("delegate");n&&!n.destroyed||(e.filter(t),(n=e.get("delegate")).on("dragstart",(function(t){})),n.on("drag",(function(t){e.filter(t)})),"wheel"===this.get("scaleRBy")&&n.on("mousewheel",(function(t){e.scaleRByWheel(t)})))},e.prototype.scaleRByWheel=function(t){if(t&&t.originalEvent){t.preventDefault&&t.preventDefault();var e,n=this.get("graph"),r=this.get("delegate");(r?{x:r.attr("x"),y:r.attr("y")}:void 0)||n.getPointByClient(t.clientX,t.clientY);e=t.originalEvent.wheelDelta<0?.95:1/.95;var i=this.get("maxR"),o=this.get("minR"),a=this.get("r");(a>(i||n.get("height"))&&e>1||a<(o||.05*n.get("height"))&&e<1)&&(e=1),a*=e,this.set("r",a),this.filter(t)}},e.prototype.filter=function(t){var e=this.get("graph"),n=e.getNodes(),r={},i=this.get("r"),o=this.get("type"),a={x:t.x,y:t.y};this.updateDelegate(a,i);var s=this.get("shouldShow"),u=this.get("vShapes");u&&u.forEach((function(t){t.remove(),t.destroy()})),u=[],n.forEach((function(t){var e=t.getModel(),n=e.x,o=e.y;Jg({x:n,y:o},a)<i&&(r[e.id]=t)}));var c=e.getEdges(),f=[];c.forEach((function(t){var e=t.getModel(),n=e.source,i=e.target;s(e)&&("only-source"===o||"one"===o?r[n]&&!r[i]&&f.push(t):"only-target"===o||"one"===o?r[i]&&!r[n]&&f.push(t):"both"===o&&r[n]&&r[i]&&f.push(t))}));var l=this.get("showNodeLabel"),h=this.get("showEdgelabel"),d=e.get("group");f.forEach((function(t){t.get("group").get("children").forEach((function(t){var e=t.get("type"),n=d.addShape(e,{attrs:t.attr()});u.push(n),l&&"text"===e&&n.set("visible",!0)}))})),Object.keys(r).forEach((function(t){var e=r[t].get("group").clone();if(d.add(e),u.push(e),h)for(var n=e.get("children"),i=0;i<n.length;i++){var o=n[i];"text"===o.get("type")&&o.set("visible",!0)}})),this.set("vShapes",u)},e.prototype.updateParams=function(t){var e=t.r,n=t.trigger,r=t.minR,i=t.maxR,o=t.scaleRBy,a=t.showLabel,s=t.shouldShow;if(isNaN(t.r)||this.set("r",e),isNaN(i)||this.set("maxR",i),isNaN(r)||this.set("minR",r),"mousemove"!==n&&"click"!==n||this.set("trigger",n),"wheel"===o||"unset"===o){this.set("scaleRBy",o),this.get("delegate").remove(),this.get("delegate").destroy();var u=this.get("dPercentText");u&&(u.remove(),u.destroy())}"node"!==a&&"both"!==a||this.set("showNodeLabel",!0),"edge"!==a&&"both"!==a||this.set("showEdgeLabel",!0),s&&this.set("shouldShow",s)},e.prototype.updateDelegate=function(t,e){var n=this,r=n.get("graph"),i=n.get("delegate");if(!i||i.destroyed){var o=r.get("group"),a=n.get("delegateStyle")||$g;i=o.addShape("circle",{attrs:Qg({r:e,x:t.x,y:t.y},a),name:"lens-shape",draggable:!0}),"drag"!==this.get("trigger")&&"wheel"===this.get("scaleRBy")&&i.on("mousewheel",(function(t){n.scaleRByWheel(t)}))}else i.attr({x:t.x,y:t.y,r:e});n.set("delegate",i)},e.prototype.clear=function(){var t=this.get("vShapes");t&&t.forEach((function(t){t.remove(),t.destroy()})),t=[],this.set("vShapes",t);var e=this.get("delegate");e&&!e.destroyed&&(e.remove(),e.destroy())},e.prototype.destroy=function(){this.clear()},e}(yd)};function ev(t){return(ev="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}tn("circle",{options:{size:on.defaultNode.size,style:{x:0,y:0,stroke:on.defaultNode.style.stroke,fill:on.defaultNode.style.fill,lineWidth:on.defaultNode.style.lineWidth},labelCfg:{style:{fill:on.nodeLabel.style.fill,fontSize:on.nodeLabel.style.fontSize}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:on.defaultNode.linkPoints.size,lineWidth:on.defaultNode.linkPoints.lineWidth,fill:on.defaultNode.linkPoints.fill,stroke:on.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:Object(v.a)({},on.nodeStateStyles)},shapeType:"circle",labelPosition:"center",drawShape:function(t,e){var n=this.getOptions(t).icon,r=void 0===n?{}:n,i=this.getShapeStyle(t),o=Object(h.e)({},r,t.icon),a=e.addShape("circle",{attrs:i,className:this.type+"-keyShape",draggable:!0}),s=o.width,u=o.height;return o.show&&e.addShape("image",{attrs:Object(v.a)({x:-s/2,y:-u/2},o),className:this.type+"-icon",name:this.type+"-icon",draggable:!0}),this.drawLinkPoints(t,e),a},drawLinkPoints:function(t,e){var n=this.getOptions(t).linkPoints,r=void 0===n?{}:n,i=r.top,o=r.left,a=r.right,s=r.bottom,u=r.size,c=r.r,f=Object(v.c)(r,["top","left","right","bottom","size","r"]),l=this.getSize(t)[0]/2;o&&e.addShape("circle",{attrs:Object(v.a)(Object(v.a)({},f),{x:-l,y:0,r:u/2||c||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0}),a&&e.addShape("circle",{attrs:Object(v.a)(Object(v.a)({},f),{x:l,y:0,r:u/2||c||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0}),i&&e.addShape("circle",{attrs:Object(v.a)(Object(v.a)({},f),{x:0,y:-l,r:u/2||c||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0}),s&&e.addShape("circle",{attrs:Object(v.a)(Object(v.a)({},f),{x:0,y:l,r:u/2||c||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0})},getShapeStyle:function(t){var e=this.getOptions(t).style,n={stroke:t.color},r=Object(h.e)({},e,n),i=this.getSize(t)[0]/2;return Object(v.a)({x:0,y:0,r:i},r)},update:function(t,e){var n=e.getContainer(),r=this.getSize(t),i={stroke:t.color,r:r[0]/2},o=e.get("keyShape"),a=Object(h.e)({},o.attr(),i,t.style);this.updateShape(t,e,a,!0),this.updateLinkPoints(t,n)}},"single-node"),tn("rect",{options:{size:[100,30],style:{radius:0,stroke:on.defaultNode.style.stroke,fill:on.defaultNode.style.fill,lineWidth:on.defaultNode.style.lineWidth},labelCfg:{style:{fill:on.nodeLabel.style.fill,fontSize:on.nodeLabel.style.fontSize}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:on.defaultNode.linkPoints.size,lineWidth:on.defaultNode.linkPoints.lineWidth,fill:on.defaultNode.linkPoints.fill,stroke:on.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},anchorPoints:[[0,.5],[1,.5]],stateStyles:Object(v.a)({},on.nodeStateStyles)},shapeType:"rect",labelPosition:"center",drawShape:function(t,e){var n=this.getShapeStyle(t),r=e.addShape("rect",{attrs:n,className:this.type+"-keyShape",name:this.type+"-keyShape",draggable:!0});return this.drawLinkPoints(t,e),r},drawLinkPoints:function(t,e){var n=this.getOptions(t).linkPoints,r=void 0===n?{}:n,i=r.top,o=r.left,a=r.right,s=r.bottom,u=r.size,c=r.r,f=Object(v.c)(r,["top","left","right","bottom","size","r"]),l=this.getSize(t),h=l[0],d=l[1];o&&e.addShape("circle",{attrs:Object(v.a)(Object(v.a)({},f),{x:-h/2,y:0,r:u/2||c||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0}),a&&e.addShape("circle",{attrs:Object(v.a)(Object(v.a)({},f),{x:h/2,y:0,r:u/2||c||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0}),i&&e.addShape("circle",{attrs:Object(v.a)(Object(v.a)({},f),{x:0,y:-d/2,r:u/2||c||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0}),s&&e.addShape("circle",{attrs:Object(v.a)(Object(v.a)({},f),{x:0,y:d/2,r:u/2||c||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0})},getShapeStyle:function(t){var e=this.getOptions(t).style,n={stroke:t.color},r=Object(h.A)({},e,n),i=this.getSize(t),o=r.width||i[0],a=r.height||i[1];return Object(v.a)({x:-o/2,y:-a/2,width:o,height:a},r)},update:function(t,e){var n=e.getContainer(),r=this.getOptions({}).style,i=this.getSize(t),o=e.get("keyShape");t.size||(i[0]=o.attr("width")||r.width,i[1]=o.attr("height")||r.height);var a={stroke:t.color,x:-i[0]/2,y:-i[1]/2,width:i[0],height:i[1]},s=Object(h.A)({},r,o.attr(),a);s=Object(h.A)(s,t.style),this.updateShape(t,e,s,!1),this.updateLinkPoints(t,n)}},"single-node"),tn("ellipse",{options:{size:[80,40],style:{x:0,y:0,stroke:on.defaultNode.style.stroke,fill:on.defaultNode.style.fill,lineWidth:on.defaultNode.style.lineWidth},labelCfg:{style:{fill:on.nodeLabel.style.fill,fontSize:on.nodeLabel.style.fontSize}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:on.defaultNode.linkPoints.size,lineWidth:on.defaultNode.linkPoints.lineWidth,fill:on.defaultNode.linkPoints.fill,stroke:on.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:Object(v.a)({},on.nodeStateStyles)},shapeType:"ellipse",labelPosition:"center",drawShape:function(t,e){var n=this.getOptions(t).icon,r=void 0===n?{}:n,i=this.getShapeStyle(t),o=e.addShape("ellipse",{attrs:i,className:"ellipse-keyShape",name:"ellipse-keyShape",draggable:!0}),a=r.width,s=r.height;if(r.show)e.addShape("image",{attrs:Object(v.a)({x:-a/2,y:-s/2},r),className:this.type+"-icon",name:this.type+"-icon",draggable:!0});return this.drawLinkPoints(t,e),o},drawLinkPoints:function(t,e){var n=this.getOptions(t).linkPoints,r=void 0===n?{}:n,i=r.top,o=r.left,a=r.right,s=r.bottom,u=r.size,c=r.r,f=Object(v.c)(r,["top","left","right","bottom","size","r"]),l=this.getSize(t),h=l[0]/2,d=l[1]/2;o&&e.addShape("circle",{attrs:Object(v.a)(Object(v.a)({},f),{x:-h,y:0,r:u/2||c||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0}),a&&e.addShape("circle",{attrs:Object(v.a)(Object(v.a)({},f),{x:h,y:0,r:u/2||c||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0}),i&&e.addShape("circle",{attrs:Object(v.a)(Object(v.a)({},f),{x:0,y:-d,r:u/2||c||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0}),s&&e.addShape("circle",{attrs:Object(v.a)(Object(v.a)({},f),{x:0,y:d,r:u/2||c||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0})},getShapeStyle:function(t){var e=this.getOptions(t).style,n={stroke:t.color},r=Object(h.A)({},e,n),i=this.getSize(t),o=i[0]/2,a=i[1]/2;return Object(v.a)({x:0,y:0,rx:o,ry:a},r)},update:function(t,e){var n=e.getContainer(),r=this.getOptions({}).style,i=this.getSize(t),o={stroke:t.color,rx:i[0]/2,ry:i[1]/2},a=e.get("keyShape"),s=Object(h.A)({},r,a.attr(),o);s=Object(h.A)(s,t.style),this.updateShape(t,e,s,!0),this.updateLinkPoints(t,n)}},"single-node"),tn("diamond",{options:{size:[80,80],style:{stroke:on.defaultNode.style.stroke,fill:on.defaultNode.style.fill,lineWidth:on.defaultNode.style.lineWidth},labelCfg:{style:{fill:on.nodeLabel.style.fill,fontSize:on.nodeLabel.style.fontSize}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:on.defaultNode.linkPoints.size,lineWidth:on.defaultNode.linkPoints.lineWidth,fill:on.defaultNode.linkPoints.fill,stroke:on.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:Object(v.a)({},on.nodeStateStyles)},shapeType:"diamond",labelPosition:"center",drawShape:function(t,e){var n=this.getOptions(t).icon,r=void 0===n?{}:n,i=this.getShapeStyle(t),o=e.addShape("path",{attrs:i,className:this.type+"-keyShape",name:this.type+"-keyShape",draggable:!0}),a=r.width,s=r.height;if(r.show)e.addShape("image",{attrs:Object(v.a)({x:-a/2,y:-s/2},r),className:this.type+"-icon",name:this.type+"-icon",draggable:!0});return this.drawLinkPoints(t,e),o},drawLinkPoints:function(t,e){var n=this.getOptions(t).linkPoints,r=void 0===n?{}:n,i=r.top,o=r.left,a=r.right,s=r.bottom,u=r.size,c=r.r,f=Object(v.c)(r,["top","left","right","bottom","size","r"]),l=this.getSize(t),h=l[0],d=l[1];o&&e.addShape("circle",{attrs:Object(v.a)(Object(v.a)({},f),{x:-h/2,y:0,r:u/2||c||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0}),a&&e.addShape("circle",{attrs:Object(v.a)(Object(v.a)({},f),{x:h/2,y:0,r:u/2||c||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0}),i&&e.addShape("circle",{attrs:Object(v.a)(Object(v.a)({},f),{x:0,y:-d/2,r:u/2||c||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0}),s&&e.addShape("circle",{attrs:Object(v.a)(Object(v.a)({},f),{x:0,y:d/2,r:u/2||c||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0})},getPath:function(t){var e=this.getSize(t),n=e[0],r=e[1];return[["M",0,-r/2],["L",n/2,0],["L",0,r/2],["L",-n/2,0],["Z"]]},getShapeStyle:function(t){var e=this.getOptions(t).style,n={stroke:t.color},r=Object(h.A)({},e,n),i=this.getPath(t);return Object(v.a)({path:i},r)},update:function(t,e){var n=e.getContainer(),r=this.getOptions({}).style,i=this.getPath(t),o={stroke:t.color,path:i},a=e.get("keyShape"),s=Object(h.A)({},r,a.attr(),o);s=Object(h.A)(s,t.style),this.updateShape(t,e,s,!0),this.updateLinkPoints(t,n)}},"single-node"),tn("triangle",{options:{size:40,direction:"up",style:{stroke:on.defaultNode.style.stroke,fill:on.defaultNode.style.fill,lineWidth:on.defaultNode.style.lineWidth},labelCfg:{style:{fill:on.nodeLabel.style.fill,fontSize:on.nodeLabel.style.fontSize},offset:15},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:on.defaultNode.linkPoints.size,lineWidth:on.defaultNode.linkPoints.lineWidth,fill:on.defaultNode.linkPoints.fill,stroke:on.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20,offset:6},stateStyles:Object(v.a)({},on.nodeStateStyles)},shapeType:"triangle",labelPosition:"bottom",drawShape:function(t,e){var n=this.getOptions(t),r=n.icon,i=void 0===r?{}:r,o=n.direction,a=this.getShapeStyle(t),s=t.direction||o,u=e.addShape("path",{attrs:a,className:this.type+"-keyShape",name:this.type+"-keyShape",draggable:!0}),c=i.width,f=i.height,l=i.show,h=i.offset;if(l){var d=-c/2,p=-f/2;"up"!==s&&"down"!==s||(p+=h),"left"!==s&&"right"!==s||(d+=h),e.addShape("image",{attrs:Object(v.a)({x:d,y:p},i),className:this.type+"-icon",name:this.type+"-icon",draggable:!0})}return this.drawLinkPoints(t,e),u},drawLinkPoints:function(t,e){var n=this.getOptions(t),r=n.linkPoints,i=void 0===r?{}:r,o=n.direction,a=t.direction||o,s=i.top,u=i.left,c=i.right,f=i.bottom,l=i.size,h=i.r,d=Object(v.c)(i,["top","left","right","bottom","size","r"]),p=this.getSize(t)[0];if(u){var g=null,y=p*Math.sin(1/3*Math.PI),m=p*Math.sin(1/3*Math.PI);"up"===a?g=[-m,y]:"down"===a?g=[-m,-y]:"left"===a&&(g=[-m,m-y]),g&&e.addShape("circle",{attrs:Object(v.a)(Object(v.a)({},d),{x:g[0],y:g[1],r:l/2||h||5}),className:"link-point-left",name:"link-point-left"})}if(c){var b=null;y=p*Math.sin(1/3*Math.PI),m=p*Math.sin(1/3*Math.PI);"up"===a?b=[m,y]:"down"===a?b=[m,-y]:"right"===a&&(b=[m,m-y]),b&&e.addShape("circle",{attrs:Object(v.a)(Object(v.a)({},d),{x:b[0],y:b[1],r:l/2||h||5}),className:"link-point-right",name:"link-point-right"})}if(s){var x=null;y=p*Math.sin(1/3*Math.PI),m=p*Math.sin(1/3*Math.PI);"up"===a?x=[m-y,-y]:"left"===a?x=[m,-y]:"right"===a&&(x=[-m,-y]),x&&e.addShape("circle",{attrs:Object(v.a)(Object(v.a)({},d),{x:x[0],y:x[1],r:l/2||h||5}),className:"link-point-top",name:"link-point-top"})}if(f){var w=null;y=p*Math.sin(1/3*Math.PI),m=p*Math.sin(1/3*Math.PI);"down"===a?w=[-m+y,y]:"left"===a?w=[m,y]:"right"===a&&(w=[-m,y]),w&&e.addShape("circle",{attrs:Object(v.a)(Object(v.a)({},d),{x:w[0],y:w[1],r:l/2||h||5}),className:"link-point-bottom",name:"link-point-bottom"})}},getPath:function(t){var e=this.getOptions(t).direction,n=t.direction||e,r=this.getSize(t)[0],i=r*Math.sin(1/3*Math.PI),o=r*Math.sin(1/3*Math.PI),a=[["M",-o,i],["L",0,-i],["L",o,i],["Z"]];return"down"===n?a=[["M",-o,-i],["L",o,-i],["L",0,i],["Z"]]:"left"===n?a=[["M",-o,o-i],["L",o,-o],["L",o,o],["Z"]]:"right"===n&&(a=[["M",o,o-i],["L",-o,o],["L",-o,-o],["Z"]]),a},getShapeStyle:function(t){var e=this.getOptions(t).style,n={stroke:t.color},r=Object(h.A)({},e,n),i=this.getPath(t);return Object(v.a)({path:i},r)},update:function(t,e){var n=e.getContainer(),r=this.getOptions({}).style,i=this.getPath(t),o={stroke:t.color,path:i},a=e.get("keyShape"),s=Object(h.A)({},r,a.attr(),o);s=Object(h.A)(s,t.style),this.updateShape(t,e,s,!0),this.updateLinkPoints(t,n)},updateLinkPoints:function(t,e){var n=this.getOptions({}),r=n.linkPoints,i=n.direction,o=t.direction||i,a=e.find((function(t){return"link-point-left"===t.get("className")})),s=e.find((function(t){return"link-point-right"===t.get("className")})),u=e.find((function(t){return"link-point-top"===t.get("className")})),c=e.find((function(t){return"link-point-bottom"===t.get("className")})),f=r,l=a||s||u||c;l&&(f=l.attr());var d=Object(h.A)({},f,t.linkPoints),p=d.fill,g=d.stroke,y=d.lineWidth,m=d.size/2;m||(m=d.r);var b=t.linkPoints?t.linkPoints:{left:void 0,right:void 0,top:void 0,bottom:void 0},x=b.left,w=b.right,S=b.top,E=b.bottom,_=this.getSize(t)[0],O={r:m,fill:p,stroke:g,lineWidth:y},k=null,M=_*Math.sin(1/3*Math.PI),A=_*Math.sin(1/3*Math.PI);"up"===o?k=[-A,M]:"down"===o?k=[-A,-M]:"left"===o&&(k=[-A,A-M]),k&&(a?x||void 0===x?a.attr(Object(v.a)(Object(v.a)({},O),{x:k[0],y:k[1]})):a.remove():x&&e.addShape("circle",{attrs:Object(v.a)(Object(v.a)({},O),{x:k[0],y:k[1]}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0}));var T=null;"up"===o?T=[A,M]:"down"===o?T=[A,-M]:"right"===o&&(T=[A,A-M]),T&&(s?w||void 0===w?s.attr(Object(v.a)(Object(v.a)({},O),{x:T[0],y:T[1]})):s.remove():w&&e.addShape("circle",{attrs:Object(v.a)(Object(v.a)({},O),{x:T[0],y:T[1]}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0}));var C=null;"up"===o?C=[A-M,-M]:"left"===o?C=[A,-M]:"right"===o&&(C=[-A,-M]),C&&(u?S||void 0===S?u.attr(Object(v.a)(Object(v.a)({},O),{x:C[0],y:C[1]})):u.remove():S&&e.addShape("circle",{attrs:Object(v.a)(Object(v.a)({},O),{x:C[0],y:C[1]}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0}));var I=null;"down"===o?I=[-A+M,M]:"left"===o?I=[A,M]:"right"===o&&(I=[-A,M]),I&&(c?E||void 0===E?c.attr(Object(v.a)(Object(v.a)({},O),{x:I[0],y:I[1]})):c.remove():E&&e.addShape("circle",{attrs:Object(v.a)(Object(v.a)({},O),{x:I[0],y:I[1]}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))}},"single-node"),tn("modelRect",{options:{size:[185,70],style:{radius:5,stroke:"#69c0ff",fill:"#ffffff",lineWidth:on.defaultNode.style.lineWidth,fillOpacity:1},labelCfg:{style:{fill:"#595959",fontSize:14},offset:30},descriptionCfg:{style:{fontSize:12,fill:"#bfbfbf"},paddingTop:0},preRect:{show:!0,width:4,fill:"#40a9ff",radius:2},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:10,lineWidth:1,fill:"#72CC4A",stroke:"#72CC4A"},logoIcon:{show:!0,x:0,y:0,img:"https://gw.alipayobjects.com/zos/basement_prod/4f81893c-1806-4de4-aff3-9a6b266bc8a2.svg",width:16,height:16,offset:0},stateIcon:{show:!0,x:0,y:0,img:"https://gw.alipayobjects.com/zos/basement_prod/300a2523-67e0-4cbf-9d4a-67c077b40395.svg",width:16,height:16,offset:-5},anchorPoints:[[0,.5],[1,.5]]},shapeType:"modelRect",drawShape:function(t,e){var n=this.getOptions(t).preRect,r=void 0===n?{}:n,i=this.getShapeStyle(t),o=this.getSize(t),a=o[0],s=o[1],u=e.addShape("rect",{attrs:i,className:this.type+"-keyShape",name:this.type+"-keyShape",draggable:!0}),c=r.show,f=Object(v.c)(r,["show"]);return c&&e.addShape("rect",{attrs:Object(v.a)({x:-a/2,y:-s/2,height:s},f),className:"pre-rect",name:"pre-rect",draggable:!0}),this.drawLogoIcon(t,e),this.drawStateIcon(t,e),this.drawLinkPoints(t,e),u},drawLogoIcon:function(t,e){var n=this.getOptions(t).logoIcon,r=void 0===n?{}:n,i=this.getSize(t)[0];if(r.show){var o=r.width,a=r.height,s=r.x,u=r.y,c=r.offset,f=Object(v.c)(r,["width","height","x","y","offset"]);e.addShape("image",{attrs:Object(v.a)(Object(v.a)({},f),{x:s||-i/2+o+c,y:u||-a/2,width:o,height:a}),className:"rect-logo-icon",name:"rect-logo-icon",draggable:!0})}},drawStateIcon:function(t,e){var n=this.getOptions(t).stateIcon,r=void 0===n?{}:n,i=this.getSize(t)[0];if(r.show){var o=r.width,a=r.height,s=r.x,u=r.y,c=r.offset,f=Object(v.c)(r,["width","height","x","y","offset"]);e.addShape("image",{attrs:Object(v.a)(Object(v.a)({},f),{x:s||i/2-o+c,y:u||-a/2,width:o,height:a}),className:"rect-state-icon",name:"rect-state-icon",draggable:!0})}},drawLinkPoints:function(t,e){var n=this.getOptions(t).linkPoints,r=void 0===n?{}:n,i=r.top,o=r.left,a=r.right,s=r.bottom,u=r.size,c=r.r,f=Object(v.c)(r,["top","left","right","bottom","size","r"]),l=this.getSize(t),h=l[0],d=l[1];o&&e.addShape("circle",{attrs:Object(v.a)(Object(v.a)({},f),{x:-h/2,y:0,r:u/2||c||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0}),a&&e.addShape("circle",{attrs:Object(v.a)(Object(v.a)({},f),{x:h/2,y:0,r:u/2||c||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0}),i&&e.addShape("circle",{attrs:Object(v.a)(Object(v.a)({},f),{x:0,y:-d/2,r:u/2||c||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0}),s&&e.addShape("circle",{attrs:Object(v.a)(Object(v.a)({},f),{x:0,y:d/2,r:u/2||c||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0})},drawLabel:function(t,e){var n=this.getOptions(t),r=n.labelCfg,i=void 0===r?{}:r,o=n.logoIcon,a=void 0===o?{}:o,s=n.descriptionCfg,u=void 0===s?{}:s,c=this.getSize(t)[0],f=null,l=a.show,d=a.width,p=-c/2+i.offset;l&&(p=-c/2+d+i.offset);var g=i.style,y=u.style,m=u.paddingTop;return Object(h.x)(t.description)?(f=e.addShape("text",{attrs:Object(v.a)(Object(v.a)({},g),{x:p,y:-5,text:t.label}),className:"text-shape",name:"text-shape",draggable:!0}),e.addShape("text",{attrs:Object(v.a)(Object(v.a)({},y),{x:p,y:17+(m||0),text:t.description}),className:"rect-description",name:"rect-description",draggable:!0})):f=e.addShape("text",{attrs:Object(v.a)(Object(v.a)({},g),{x:p,y:7,text:t.label}),className:"text-shape",name:"text-shape",draggable:!0}),f},getShapeStyle:function(t){var e=this.getOptions(t).style,n={stroke:t.color},r=Object(h.A)({},e,n),i=this.getSize(t),o=r.width||i[0],a=r.height||i[1];return Object(v.a)({x:-o/2,y:-a/2,width:o,height:a},r)},update:function(t,e){var n=this.getOptions(t),r=n.style,i=void 0===r?{}:r,o=n.labelCfg,a=void 0===o?{}:o,s=n.descriptionCfg,u=void 0===s?{}:s,c=this.getSize(t),f=c[0],l=c[1];e.get("keyShape").attr(Object(v.a)(Object(v.a)({},i),{x:-f/2,y:-l/2,width:f,height:l}));var d=e.getContainer(),p=d.find((function(t){return"rect-logo-icon"===t.get("className")})),g=p?p.attr():{},y=Object(h.A)({},g,t.logoIcon),m=y.width;void 0===m&&(m=this.options.logoIcon.width);var b=t.logoIcon?t.logoIcon.show:void 0,x=a.offset,w=-f/2+m+x;b||void 0===b||(w=-f/2+x);var S=d.find((function(t){return"node-label"===t.get("className")})),E=d.find((function(t){return"rect-description"===t.get("className")}));if(t.label)if(S){var _=t.labelCfg?t.labelCfg.style:{},O=Object(h.A)({},S.attr(),_);t.label&&(O.text=t.label),O.x=w,Object(h.x)(t.description)&&(O.y=-5),E&&(E.resetMatrix(),E.attr({x:w})),S.resetMatrix(),S.attr(O)}else d.addShape("text",{attrs:Object(v.a)(Object(v.a)({},a.style),{x:w,y:t.description?-5:7,text:t.label}),className:"node-label",name:"node-label",draggable:!0});if(Object(h.x)(t.description)){var k=u.paddingTop;if(E){_=t.descriptionCfg?t.descriptionCfg.style:{};var M=Object(h.A)({},E.attr(),_);Object(h.x)(t.description)&&(M.text=t.description),M.x=w,E.resetMatrix(),E.attr(Object(v.a)(Object(v.a)({},M),{y:17+(k||0)}))}else d.addShape("text",{attrs:Object(v.a)(Object(v.a)({},u.style),{x:w,y:17+(k||0),text:t.description}),className:"rect-description",name:"rect-description",draggable:!0})}var A=d.find((function(t){return"pre-rect"===t.get("className")}));if(A){var T=Object(h.A)({},A.attr(),t.preRect);A.attr(Object(v.a)(Object(v.a)({},T),{x:-f/2,y:-l/2,height:l}))}if(p)if(b||void 0===b){var C=y.width,I=y.height,P=y.x,j=y.y,D=y.offset,N=Object(v.c)(y,["width","height","x","y","offset"]);p.attr(Object(v.a)(Object(v.a)({},N),{x:P||-f/2+C+D,y:j||-I/2,width:C,height:I}))}else p.remove();else b&&this.drawLogoIcon(t,d);var R=d.find((function(t){return"rect-state-icon"===t.get("className")})),L=R?R.attr():{},B=Object(h.A)({},L,t.stateIcon);if(R){B.show||void 0===B.show||R.remove();var G=B.width,F=(I=B.height,P=B.x,j=B.y,B.offset),U=Object(v.c)(B,["width","height","x","y","offset"]);R.attr(Object(v.a)(Object(v.a)({},U),{x:P||f/2-G+F,y:j||-I/2,width:G,height:I}))}else B.show&&this.drawStateIcon(t,d);this.updateLinkPoints(t,d)}},"single-node"),tn("star",{options:{size:60,style:{stroke:on.defaultNode.style.stroke,fill:on.defaultNode.style.fill,lineWidth:on.defaultNode.style.lineWidth},labelCfg:{style:{fill:on.nodeLabel.style.fill,fontSize:on.nodeLabel.style.fontSize}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:on.defaultNode.linkPoints.size,lineWidth:on.defaultNode.linkPoints.lineWidth,fill:on.defaultNode.linkPoints.fill,stroke:on.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:Object(v.a)({},on.nodeStateStyles)},shapeType:"star",labelPosition:"center",drawShape:function(t,e){var n=this.getOptions(t).icon,r=void 0===n?{}:n,i=this.getShapeStyle(t),o=e.addShape("path",{attrs:i,className:this.type+"-keyShape",name:this.type+"-keyShape",draggable:!0}),a=r.width,s=r.height;if(r.show)e.addShape("image",{attrs:Object(v.a)({x:-a/2,y:-s/2},r),className:this.type+"-icon",name:this.type+"-icon",draggable:!0});return this.drawLinkPoints(t,e),o},drawLinkPoints:function(t,e){var n=this.getOptions(t).linkPoints,r=void 0===n?{}:n,i=r.top,o=r.left,a=r.right,s=r.leftBottom,u=r.rightBottom,c=r.size,f=r.r,l=Object(v.c)(r,["top","left","right","leftBottom","rightBottom","size","r"]),h=this.getSize(t)[0];if(a){var d=Math.cos(.1*Math.PI)*h,p=Math.sin(.1*Math.PI)*h;e.addShape("circle",{attrs:Object(v.a)(Object(v.a)({},l),{x:d,y:-p,r:c/2||f||5}),className:"link-point-right",name:"link-point-right"})}if(i){d=Math.cos(.5*Math.PI)*h,p=Math.sin(.5*Math.PI)*h;e.addShape("circle",{attrs:Object(v.a)(Object(v.a)({},l),{x:d,y:-p,r:c/2||f||5}),className:"link-point-top",name:"link-point-top"})}if(o){d=Math.cos(.9*Math.PI)*h,p=Math.sin(.9*Math.PI)*h;e.addShape("circle",{attrs:Object(v.a)(Object(v.a)({},l),{x:d,y:-p,r:c/2||f||5}),className:"link-point-left",name:"link-point-left"})}if(s){d=Math.cos(1.3*Math.PI)*h,p=Math.sin(1.3*Math.PI)*h;e.addShape("circle",{attrs:Object(v.a)(Object(v.a)({},l),{x:d,y:-p,r:c/2||f||5}),className:"link-point-left-bottom",name:"link-point-left-bottom"})}if(u){d=Math.cos(1.7*Math.PI)*h,p=Math.sin(1.7*Math.PI)*h;e.addShape("circle",{attrs:Object(v.a)(Object(v.a)({},l),{x:d,y:-p,r:c/2||f||5}),className:"link-point-right-bottom",name:"link-point-right-bottom"})}},getPath:function(t){for(var e=this.getSize(t)[0],n=3*e/8,r=t.innerR||n,i=[],o=0;o<5;o++){var a=Math.cos((18+72*o)/180*Math.PI)*e,s=Math.sin((18+72*o)/180*Math.PI)*e,u=Math.cos((54+72*o)/180*Math.PI)*r,c=Math.sin((54+72*o)/180*Math.PI)*r;0===o?i.push(["M",a,-s]):i.push(["L",a,-s]),i.push(["L",u,-c])}return i.push(["Z"]),i},getShapeStyle:function(t){var e=this.getOptions(t).style,n={stroke:t.color},r=Object(h.A)({},e,n),i=this.getPath(t);return Object(v.a)({path:i},r)},update:function(t,e){var n=e.getContainer(),r=this.getOptions({}).style,i=this.getPath(t),o={stroke:t.color,path:i},a=e.get("keyShape"),s=Object(h.A)({},r,a.attr(),o);s=Object(h.A)(s,t.style),this.updateShape(t,e,s,!0),this.updateLinkPoints(t,n)},updateLinkPoints:function(t,e){var n=this.getOptions({}).linkPoints,r=e.find((function(t){return"link-point-left"===t.get("className")})),i=e.find((function(t){return"link-point-right"===t.get("className")})),o=e.find((function(t){return"link-point-top"===t.get("className")})),a=e.find((function(t){return"link-point-left-bottom"===t.get("className")})),s=e.find((function(t){return"link-point-right-bottom"===t.get("className")})),u=n,c=r||i||o||a||s;c&&(u=c.attr());var f=Object(h.A)({},u,t.linkPoints),l=f.fill,d=f.stroke,p=f.lineWidth,g=f.size/2;g||(g=f.r);var y=t.linkPoints?t.linkPoints:{left:void 0,right:void 0,top:void 0,leftBottom:void 0,rightBottom:void 0},m=y.left,b=y.right,x=y.top,w=y.leftBottom,S=y.rightBottom,E=this.getSize(t)[0],_={r:g,fill:l,stroke:d,lineWidth:p},O=Math.cos(.1*Math.PI)*E,k=Math.sin(.1*Math.PI)*E;i?b||void 0===b?i.attr(Object(v.a)(Object(v.a)({},_),{x:O,y:-k})):i.remove():b&&e.addShape("circle",{attrs:Object(v.a)(Object(v.a)({},_),{x:O,y:-k}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0}),O=Math.cos(.5*Math.PI)*E,k=Math.sin(.5*Math.PI)*E,o?x||void 0===x?o.attr(Object(v.a)(Object(v.a)({},_),{x:O,y:-k})):o.remove():x&&e.addShape("circle",{attrs:Object(v.a)(Object(v.a)({},_),{x:O,y:-k}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0}),O=Math.cos(.9*Math.PI)*E,k=Math.sin(.9*Math.PI)*E,r?m||void 0===m?r.attr(Object(v.a)(Object(v.a)({},_),{x:O,y:-k})):r.remove():m&&e.addShape("circle",{attrs:Object(v.a)(Object(v.a)({},_),{x:O,y:-k}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0}),O=Math.cos(1.3*Math.PI)*E,k=Math.sin(1.3*Math.PI)*E,a?w||void 0===w?a.attr(Object(v.a)(Object(v.a)({},_),{x:O,y:-k})):a.remove():w&&e.addShape("circle",{attrs:Object(v.a)(Object(v.a)({},_),{x:O,y:-k}),className:"link-point-left-bottom",name:"link-point-left-bottom",isAnchorPoint:!0}),O=Math.cos(1.7*Math.PI)*E,k=Math.sin(1.7*Math.PI)*E,s?S||void 0===S?s.attr(Object(v.a)(Object(v.a)({},_),{x:O,y:-k})):a.remove():S&&e.addShape("circle",{attrs:Object(v.a)(Object(v.a)({},_),{x:O,y:-k}),className:"link-point-right-bottom",name:"link-point-right-bottom",isAnchorPoint:!0})}},"single-node");var nv=function(t){var e=t.x,n=t.y;return{x:e,y:n,centerX:e,centerY:n,minX:e,minY:n,maxX:e,maxY:n,height:0,width:0}},rv=function(t,e){return 2*Math.abs(t.centerX-e.centerX)<t.width+e.width&&2*Math.abs(t.centerY-e.centerY)<t.height+e.height},iv=function(t){for(var e=[],n={},r=t.length,i=0;i<r;i++){var o=t[i];o.id=o.x+"|||"+o.y,n[o.id]=o,e.push(o)}return e},ov=function(t){return t=iv(t)},av=function(t,e){return[t,{x:t.x,y:e.y},e]},sv=function(t,e){return 0===t.width&&0===t.height?t:{centerX:t.centerX,centerY:t.centerY,minX:t.minX-e,minY:t.minY-e,maxX:t.maxX+e,maxY:t.maxY+e,height:t.height+2*e,width:t.width+2*e}},uv=function(t,e,n){var r=function(t,e){var n=Math.abs(t.x-e.centerX),r=Math.abs(t.y-e.centerY);return 0===n&&0===r?0:n/e.width>r/e.height}(e,t);if(0===r){var i=t.centerX,o=t.centerY;return n.y<e.y?o=t.minY:n.x>e.x?i=t.maxX:n.x<e.x?i=t.minX:n.x===e.x&&(o=t.maxY),{x:i,y:o}}return r?{x:e.x>t.centerX?t.maxX:t.minX,y:e.y}:{x:e.x,y:e.y>t.centerY?t.maxY:t.minY}},cv=function(t,e){var n=Math.min(t.minX,e.minX),r=Math.min(t.minY,e.minY),i=Math.max(t.maxX,e.maxX),o=Math.max(t.maxY,e.maxY);return{centerX:(n+i)/2,centerY:(r+o)/2,minX:n,minY:r,maxX:i,maxY:o,height:o-r,width:i-n}},fv=function(t){var e=t.minX,n=t.minY,r=t.maxX,i=t.maxY;return[{x:e,y:n},{x:r,y:n},{x:r,y:i},{x:e,y:i}]},lv=function(t,e){var n=t.x,r=t.y;return n<e.minX||n>e.maxX||r<e.minY||r>e.maxY},hv=function(t,e){return Math.abs(t.x-e.x)+Math.abs(t.y-e.y)},dv=function(t,e,n,r,i){return hv(t,e)+hv(t,n)+function(t,e){var n=0;return e.forEach((function(e){e&&(t.x===e.x&&(n+=-2),t.y===e.y&&(n+=-2))})),n}(t,[e,n,r,i])},pv=function(t,e,n,r){var i=n.x-t.x,o=n.y-t.y,a=r.x-t.x,s=r.y-t.y,u=n.x-e.x,c=n.y-e.y,f=r.x-e.x,l=r.y-e.y;return(i*s-o*a)*(u*l-c*f)<=0&&(i*c-o*u)*(a*l-s*f)<=0},gv=function(t,e,n){if(0===n.width&&0===n.height)return!1;var r=fv(n),i=r[0],o=r[1],a=r[2],s=r[3];return pv(t,e,i,o)||pv(t,e,i,s)||pv(t,e,o,a)||pv(t,e,a,s)},vv=function(t,e,n,r,i,o,a){var s=[],u=[e],c={},f={},l={};f[e.id]=0,l[e.id]=dv(e,n,e);var h={};t.forEach((function(t){h[t.id]=t}));for(var d=function(){var d,p,g,v,y=1/0;if(u.forEach((function(t){l[t.id]<y&&(y=l[t.id],d=t)})),d===n){var m=[];return function t(e,n,r,i,o){void 0===o&&(o=0),e.unshift(n[i]),r[i]&&r[i]!==i&&o<=100&&t(e,n,r,r[i],o+1)}(m,h,c,n.id),{value:m}}g=d,(v=(p=u).indexOf(g))>-1&&p.splice(v,1),s.push(d),function(t,e,n,r){var i=[];return t.forEach((function(t){t!==e&&(t.x!==e.x&&t.y!==e.y||gv(t,e,n)||gv(t,e,r)||i.push(t))})),iv(i)}(t,d,r,i).forEach((function(t){if(-1===s.indexOf(t)){-1===u.indexOf(t)&&u.push(t);var r=l[d.id]+hv(d,t);f[t.id]&&r>=f[t.id]||(c[t.id]=d.id,f[t.id]=r,l[t.id]=f[t.id]+dv(t,n,e,o,a))}}))};u.length;){var p=d();if("object"===ev(p))return p.value}return[e,n]},yv=function(t,e){var n=[],r=t[0];return n.push("M"+r.x+" "+r.y),t.forEach((function(r,i){var o=t[i+1],a=t[i+2];if(o&&a)if(function(t,e,n){return!(t.x===e.x&&e.x===n.x||t.y===e.y&&e.y===n.y)}(r,o,a)){var s=function(t,e,n,r){var i=hv(t,e),o=hv(n,e);return i<r&&(r=i),o<r&&(r=o),[{x:e.x-r/i*(e.x-t.x),y:e.y-r/i*(e.y-t.y)},{x:e.x-r/o*(e.x-n.x),y:e.y-r/o*(e.y-n.y)}]}(r,o,a,e),u=s[0],c=s[1];n.push("L"+u.x+" "+u.y),n.push("Q"+o.x+" "+o.y+" "+c.x+" "+c.y),n.push("L"+c.x+" "+c.y)}else n.push("L"+o.x+" "+o.y);else o&&n.push("L"+o.x+" "+o.y)})),n.join("")},mv=function(t,e,n,r,i){var o,a;if(n&&n.getType())if("combo"===n.getType()){(o=n.getKeyShape().getCanvasBBox()||nv(t)).centerX=(o.minX+o.maxX)/2,o.centerY=(o.minY+o.maxY)/2}else o=n.getBBox();else o=nv(t);if(r&&r.getType())if("combo"===r.getType()){(a=r.getKeyShape().getCanvasBBox()||nv(e)).centerX=(a.minX+a.maxX)/2,a.centerY=(a.minY+a.maxY)/2}else a=r&&r.getBBox();else a=nv(e);if(rv(o,a))return ov(av(t,e));var s=sv(o,i),u=sv(a,i);if(rv(s,u))return ov(av(t,e));var c=uv(s,t,e),f=uv(u,e,t),l=function(t){void 0===t&&(t=[]);var e=[],n=[];t.forEach((function(t){e.push(t.x),n.push(t.y)}));var r=Math.min.apply(Math,e),i=Math.max.apply(Math,e),o=Math.min.apply(Math,n),a=Math.max.apply(Math,n);return{centerX:(r+i)/2,centerY:(o+a)/2,maxX:i,maxY:a,minX:r,minY:o,height:a-o,width:i-r}}([c,f]),h=cv(s,l),d=cv(u,l),p=[];p=(p=p.concat(fv(h))).concat(fv(d));var g={x:(t.x+e.x)/2,y:(t.y+e.y)/2};[l,h,d].forEach((function(t){p=p.concat(function(t,e){return function(t,e){return e<t.minX||e>t.maxX?[]:[{x:e,y:t.minY},{x:e,y:t.maxY}]}(t,e.x).concat(function(t,e){return e<t.minY||e>t.maxY?[]:[{x:t.minX,y:e},{x:t.maxX,y:e}]}(t,e.y))}(t,g).filter((function(t){return lv(t,s)&&lv(t,u)})))})),[{x:c.x,y:f.y},{x:f.x,y:c.y}].forEach((function(t){lv(t,s)&&lv(t,u)&&p.push(t)})),p.unshift(c),p.push(f),p=iv(p);var v=vv(p,c,f,o,a,t,e);return v.unshift(t),v.push(e),ov(v)};function bv(t){return(bv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var xv={offset:20,maxAllowedDirectionChange:90,maximumLoops:2e3,gridSize:10,directions:[{stepX:1,stepY:0},{stepX:-1,stepY:0},{stepX:0,stepY:1},{stepX:0,stepY:-1}],get penalties(){return{0:0,45:this.gridSize/2,90:this.gridSize/2}},distFunc:function(t,e){return Math.abs(t.x-e.x)+Math.abs(t.y-e.y)},fallbackRoute:function(t,e,n,r,i){return ov(mv(t,e,n,r,i.offset))}},wv=function(t,e){var n=Math.floor(Math.abs(t/e));return n<0?0:(t<0?-1:1)*n},Sv=function(t,e){var n=e.x-t.x,r=e.y-t.y;return n||r?(360+180*Math.atan2(r,n)/Math.PI)%360:0},Ev=function(t,e){var n=Math.abs(t-e);return n>180?360-n:n},_v=function(t,e,n){for(var r=1/0,i=0,o=e.length;i<o;i++){var a=n(t,e[i]);a<r&&(r=a)}return r},Ov=function(t,e,n,r,i){var o=[];if(!n)return o;var a=i.directions,s=i.offset,u=n.getBBox(),c=e.x>u.minX&&e.x<u.maxX&&e.y>u.minY&&e.y<u.maxY,f=sv(u,s);for(var l in f)f[l]=wv(f[l],i.gridSize);if(c)for(var h=0,d=a;h<d.length;h++){var p=d[h],g=[[{x:f.minX,y:f.minY},{x:f.maxX,y:f.minY}],[{x:f.minX,y:f.minY},{x:f.minX,y:f.maxY}],[{x:f.maxX,y:f.minY},{x:f.maxX,y:f.maxY}],[{x:f.minX,y:f.maxY},{x:f.maxX,y:f.maxY}]];for(l=0;l<4;l++){var v,y=g[l];(v=Qe.getLineIntersect(t,{x:t.x+p.stepX*f.width,y:t.y+p.stepY*f.height},y[0],y[1]))&&!gv(t,v,u)&&(v.id=v.x+"|||"+v.y,o.push(v))}}else(v=uv(f,t,r)).id=v.x+"|||"+v.y,o.push(v);return o},kv=function(t,e,n,r,i){var o=Object(h.e)(xv,i);o.obstacles=o.obstacles||[];var a=function(t,e,n){var r={};return t.forEach((function(t){if(t)for(var i=sv(t.getBBox(),n),o=wv(i.minX,e);o<=wv(i.maxX,e);o+=1)for(var a=wv(i.minY,e);a<=wv(i.maxY,e);a+=1){r[o+"|||"+a]=!0}})),r}(o.obstacles.concat([n,r]),o.gridSize,o.offset),s={x:wv(t.x,o.gridSize),y:wv(t.y,o.gridSize)},u={x:wv(e.x,o.gridSize),y:wv(e.y,o.gridSize)};t.id=s.x+"|||"+s.y,e.id=u.x+"|||"+u.y;var c=Ov(s,t,n,u,o),f=Ov(u,e,r,s,o);c.forEach((function(t){delete a[t.id]})),f.forEach((function(t){delete a[t.id]}));for(var l={},d={},p={},g={},v={},y=0;y<c.length;y++){var m=c[y];l[m.id]=m,g[m.id]=0,v[m.id]=_v(m,f,o.distFunc)}for(var b=function(t,e){var n,r=Sv(t,e);if(p[t.id]){var i=Sv({x:parseFloat(p[t.id].split("|||")[0]),y:parseFloat(p[t.id].split("|||")[1])},t);n=Ev(i,r)}else{var o=Sv(s,t);n=Ev(o,r)}return n},x=o.maximumLoops,w=function(){var n,r=1/0;for(var i in l)v[i]<=r&&(r=v[i],n=l[i]);if(!n)return"break";if(f.findIndex((function(t){return t.x===n.x&&t.y===n.y}))>-1)return{value:function(n){var r=[e],i={x:parseFloat(n.split("|||")[0]),y:parseFloat(n.split("|||")[1]),id:n};for(b(i,u)&&r.unshift({x:i.x===u.x?e.x:i.x*o.gridSize,y:i.y===u.y?e.y:i.y*o.gridSize});p[n]&&p[n]!==n;){var a={x:parseFloat(n.split("|||")[0]),y:parseFloat(n.split("|||")[1]),id:n},c=p[n],f={x:parseFloat(c.split("|||")[0]),y:parseFloat(c.split("|||")[1]),id:c};b(f,a)&&r.unshift({x:f.x===a.x?r[0].x:f.x*o.gridSize,y:f.y===a.y?r[0].y:f.y*o.gridSize}),n=c}var l=parseFloat(n.split("|||")[0]),h=parseFloat(n.split("|||")[1]);return r[0].x=l===s.x?t.x:r[0].x,r[0].y=h===s.y?t.y:r[0].y,r.unshift(t),r}(n.id)};delete l[n.id],d[n.id]=!0;for(var c=0;c<o.directions.length;c++){var h=o.directions[c],y={x:n.x+h.stepX,y:n.y+h.stepY,id:n.x+h.stepX+"|||"+(n.y+h.stepY)};if(!d[y.id]){var m=b(n,y);if(!(m>o.maxAllowedDirectionChange||a[y.id])){l[y.id]||(l[y.id]=y);var w=o.distFunc(n,y)+(isNaN(o.penalties[m])?o.gridSize:o.penalties[m]),S=g[n.id]+w;g[y.id]&&S>=g[y.id]||(p[y.id]=n.id,g[y.id]=S,v[y.id]=S+_v(y,f,o.distFunc))}}}x-=1};Object.keys(l).length>0&&x>0;){var S=w();if("object"===bv(S))return S.value;if("break"===S)break}return o.fallbackRoute(t,e,n,r,o)};en("polyline",{options:{color:on.defaultEdge.color,size:on.defaultEdge.size,style:{radius:0,offset:15,x:0,y:0,stroke:on.defaultEdge.style.stroke,lineAppendWidth:on.defaultEdge.style.lineAppendWidth},labelCfg:{style:{fill:on.edgeLabel.style.fill,fontSize:on.edgeLabel.style.fontSize}},routeCfg:{obstacles:[],maxAllowedDirectionChange:90,maximumLoops:500,gridSize:10},stateStyles:Object(v.a)({},on.edgeStateStyles)},shapeType:"polyline",labelPosition:"center",drawShape:function(t,e){var n=this.getShapeStyle(t);return 0===n.radius&&delete n.radius,e.addShape("path",{className:"edge-shape",name:"edge-shape",attrs:n})},getShapeStyle:function(t){var e=this.options.style,n={stroke:t.color},r=Object(h.A)({},e,n,t.style);t=this.getPathPoints(t),this.radius=r.radius,this.offset=r.offset;var i=t.startPoint,o=t.endPoint,a=this.getControlPoints(t),s=[i];a&&(s=s.concat(a)),s.push(o);var u=t.sourceNode,c=t.targetNode,f=r.radius,l=this.options.routeCfg;l||(l={}),l.offset=r.offset;var d=this.getPath(s,u,c,f,l);return(Object(h.m)(d)&&d.length<=1||Object(h.x)(d)&&-1===d.indexOf("L"))&&(d="M0 0, L0 0"),(isNaN(i.x)||isNaN(i.y)||isNaN(o.x)||isNaN(o.y))&&(d="M0 0, L0 0"),Object(h.A)({},on.defaultEdge.style,r,{lineWidth:t.size,path:d})},updateShapeStyle:function(t,e){var n=e.getContainer(),r={stroke:t.color},i=n.find((function(t){return"edge-shape"===t.get("className")}))||e.getKeyShape(),o=t.size,a=(t=this.getPathPoints(t)).startPoint,s=t.endPoint,u=this.getControlPoints(t),c=[a];u&&(c=c.concat(u)),c.push(s);var f=i.attr(),l=Object(h.A)({},r,f,t.style),d=t.sourceNode,p=t.targetNode,g=l.radius,v=this.options.routeCfg;v||(v={}),v.offset=l.offset;var y=this.getPath(c,d,p,g,v);(Object(h.m)(y)&&y.length<=1||Object(h.x)(y)&&-1===y.indexOf("L"))&&(y="M0 0, L0 0"),(isNaN(a.x)||isNaN(a.y)||isNaN(s.x)||isNaN(s.y))&&(y="M0 0, L0 0"),f.endArrow&&!1===l.endArrow&&(t.style.endArrow={path:""}),f.startArrow&&!1===l.startArrow&&(t.style.startArrow={path:""});var m=Object(h.A)(r,i.attr(),{lineWidth:o,path:y},t.style);i&&i.attr(m)},getPath:function(t,e,n,r,i){var o;if(!i.offset||t.length>2){if(r)return yv(t,r);var a=[];return Object(h.f)(t,(function(t,e){0===e?a.push(["M",t.x,t.y]):a.push(["L",t.x,t.y])})),a}return r?(o=kv(t[0],t[t.length-1],e,n,i),yv(o,r)):(o=kv(t[0],t[t.length-1],e,n,i),Qe.pointsToPolygon(o))}},"single-edge");var Mv=dd.cloneEvent,Av=dd.isNaN,Tv=Math.abs,Cv=["shift","ctrl","alt","control"],Iv={getDefaultCfg:function(){return{direction:"both",enableOptimize:!1,scalableRange:0,allowDragOnItem:!1}},getEvents:function(){return{dragstart:"onMouseDown",drag:"onMouseMove",dragend:"onMouseUp","canvas:click":"onMouseUp",keyup:"onKeyUp",focus:"onKeyUp",keydown:"onKeyDown",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onMouseUp"}},updateViewport:function(t){var e=this.origin,n=+t.clientX,r=+t.clientY;if(!Av(n)&&!Av(r)){var i=n-e.x,o=r-e.y;"x"===this.get("direction")?o=0:"y"===this.get("direction")&&(i=0),this.origin={x:n,y:r};var a=this.graph.get("width"),s=this.graph.get("height"),u=this.graph.get("canvas").getCanvasBBox();(u.minX<=a+this.scalableRange&&u.minX+i>a+this.scalableRange||u.maxX+this.scalableRange>=0&&u.maxX+this.scalableRange+i<0)&&(i=0),(u.minY<=s+this.scalableRange&&u.minY+o>s+this.scalableRange||u.maxY+this.scalableRange>=0&&u.maxY+this.scalableRange+o<0)&&(o=0),this.graph.translate(i,o)}},onTouchStart:function(t){var e=t.originalEvent.touches,n=e[0],r=e[1];n&&r||(t.preventDefault(),this.onMouseDown(t))},onMouseDown:function(t){var e=t.originalEvent;if((!e||t.name===Ye.TOUCHSTART||0===e.button)&&(t.name===Ye.TOUCHSTART||"undefined"==typeof window||!window.event||window.event.buttons||window.event.button)&&this.shouldBegin.call(this,t)&&!this.keydown){var n=t.target,r=n&&n.isCanvas&&n.isCanvas();if((this.allowDragOnItem||r)&&(this.origin={x:t.clientX,y:t.clientY},this.dragging=!1,this.enableOptimize)){for(var i=this.graph,o=i.getEdges(),a=0,s=o.length;a<s;a++){var u=o[a].get("group").get("children");u&&u.forEach((function(t){t.set("ori-visibility",t.get("ori-visibility")||t.get("visible")),t.hide()}))}for(var c=i.getNodes(),f=0,l=c.length;f<l;f++)for(var h=0,d=c[f].getContainer().get("children");h<d.length;h++){var p=d[h];p.get("isKeyShape")||(p.set("ori-visibility",p.get("ori-visibility")||p.get("visible")),p.hide())}}}},onTouchMove:function(t){var e=t.originalEvent.touches,n=e[0],r=e[1];n&&r?this.onMouseUp(t):(t.preventDefault(),this.onMouseMove(t))},onMouseMove:function(t){var e=this.graph;if(!this.keydown){var n=t.target,r=n&&n.isCanvas&&n.isCanvas();if((this.allowDragOnItem||r)&&(t=Mv(t),this.origin)){if(this.dragging)t.type="drag",e.emit("canvas:drag",t);else{if(Tv(this.origin.x-t.clientX)+Tv(this.origin.y-t.clientY)<10)return;this.shouldBegin.call(this,t)&&(t.type="dragstart",e.emit("canvas:dragstart",t),this.dragging=!0)}this.shouldUpdate.call(this,t)&&this.updateViewport(t)}}},onMouseUp:function(t){var e=this.graph;if(!this.keydown){if(this.enableOptimize){for(var n=e.getEdges(),r=0,i=n.length;r<i;r++){var o=n[r].get("group").get("children");o&&o.forEach((function(t){t.get("ori-visibility")&&t.show()}))}for(var a=e.getNodes(),s=0,u=a.length;s<u;s++)for(var c=0,f=a[s].getContainer().get("children");c<f.length;c++){var l=f[c];if(!l.get("isKeyShape"))l.get("ori-visibility")&&l.show()}}this.dragging?(t=Mv(t),this.shouldEnd.call(this,t)&&this.updateViewport(t),t.type="dragend",e.emit("canvas:dragend",t),this.endDrag()):this.origin=null}},endDrag:function(){this.origin=null,this.dragging=!1,this.dragbegin=!1},onKeyDown:function(t){var e=t.key;e&&(Cv.indexOf(e.toLowerCase())>-1?this.keydown=!0:this.keydown=!1)},onKeyUp:function(){this.keydown=!1,this.origin=null,this.dragging=!1,this.dragbegin=!1}},Pv={getDefaultCfg:function(){return{updateEdge:!0,delegateStyle:{},enableDelegate:!1,onlyChangeComboSize:!1,comboActiveState:"",selectedState:"selected"}},getEvents:function(){return{"node:dragstart":"onDragStart","node:drag":"onDrag","node:dragend":"onDragEnd","combo:dragenter":"onDragEnter","combo:dragleave":"onDragLeave","combo:drop":"onDropCombo","node:drop":"onDropNode","canvas:drop":"onDropCanvas"}},validationCombo:function(t){return!(!this.origin||!t||t.destroyed)&&"combo"===t.getType()},onDragStart:function(t){var e=this;if(this.shouldBegin.call(this,t)){var n=t.item;if(n&&!n.destroyed&&!n.hasLocked()){n.getContainer().set("capture",!1);var r=t.target;if(r)if(r.get("isAnchorPoint"))return;var i=this.graph;this.targets=[],this.targetCombo=null;var o=i.findAllByState("node",this.selectedState),a=n.get("id");0===o.filter((function(t){var e=t.get("id");return a===e})).length?this.targets.push(n):o.length>1?o.forEach((function(t){t.hasLocked()||e.targets.push(t)})):this.targets.push(n);var s=[];this.targets.forEach((function(t){s.push(Object(h.c)(t.getModel()))})),this.set("beforeDragNodes",s),this.origin={x:t.x,y:t.y},this.point={},this.originPoint={}}}},onDrag:function(t){var e=this;this.origin&&this.shouldUpdate(this,t)&&(this.get("enableDelegate")?this.updateDelegate(t):this.targets.map((function(n){e.update(n,t)})))},onDragEnd:function(t){if(this.origin&&this.shouldEnd.call(this,t)){var e=t.item;if(e)e.getContainer().set("capture",!0);this.delegateRect&&(this.delegateRect.remove(),this.delegateRect=null),this.updatePositions(t);var n=this.graph;if(n.get("enabledStack")){var r={before:{nodes:this.get("beforeDragNodes"),edges:[],combos:[]},after:{nodes:[],edges:[],combos:[]}};this.targets.forEach((function(t){r.after.nodes.push(t.getModel())})),n.pushStack("update",Object(h.c)(r))}n.emit("dragnodeend",{items:this.targets,targetItem:null}),this.point={},this.origin=null,this.originPoint={},this.targets.length=0,this.targetCombo=null}},onDropCombo:function(t){var e=t.item;if(this.validationCombo(e)){this.updatePositions(t);var n=this.graph;if(this.comboActiveState&&n.setItemState(e,this.comboActiveState,!1),this.targetCombo=e,this.onlyChangeComboSize)n.updateCombos();else{var r=e.getModel();this.targets.map((function(t){t.getModel().comboId!==r.id&&n.updateComboTree(t,r.id)})),n.updateCombo(e)}n.emit("dragnodeend",{items:this.targets,targetItem:this.targetCombo})}},onDropCanvas:function(t){var e=this.graph;this.targets&&0!==this.targets.length&&(this.updatePositions(t),this.onlyChangeComboSize?e.updateCombos():this.targets.map((function(t){t.getModel().comboId&&e.updateComboTree(t)})))},onDropNode:function(t){if(this.targets&&0!==this.targets.length){var e=t.item;this.updatePositions(t);var n=this.graph,r=e.getModel().comboId;if(r){var i=n.findById(r);this.comboActiveState&&n.setItemState(i,this.comboActiveState,!1),this.targets.map((function(t){var e=t.getModel();r!==e.comboId&&n.updateComboTree(t,r)})),n.updateCombo(i)}else this.targets.map((function(t){t.getModel().comboId&&n.updateComboTree(t)}));n.emit("dragnodeend",{items:this.targets,targetItem:e})}},onDragEnter:function(t){var e=t.item;if(this.validationCombo(e)){var n=this.graph;this.comboActiveState&&n.setItemState(e,this.comboActiveState,!0)}},onDragLeave:function(t){var e=t.item;if(this.validationCombo(e)){var n=this.graph;this.comboActiveState&&n.setItemState(e,this.comboActiveState,!1)}},updatePositions:function(t){var e=this;this.targets&&0!==this.targets.length&&this.get("enableDelegate")&&this.targets.map((function(n){return e.update(n,t)}))},update:function(t,e){var n=this.origin,r=t.get("model"),i=t.get("id");this.point[i]||(this.point[i]={x:r.x||0,y:r.y||0});var o={x:e.x-n.x+this.point[i].x,y:e.y-n.y+this.point[i].y};this.get("updateEdge")?this.graph.updateItem(t,o,!1):t.updatePosition(o)},updateDelegate:function(t){this.graph;if(this.delegateRect){var e=t.x-this.origin.x+this.originPoint.minX,n=t.y-this.origin.y+this.originPoint.minY;this.delegateRect.attr({x:e,y:n})}else{var r=this.graph.get("group"),i=Object(h.e)({},Dn.delegateStyle,this.delegateStyle),o=this.calculationGroupPosition(t),a=o.x,s=o.y,u=o.width,c=o.height,f=o.minX,l=o.minY;this.originPoint={x:a,y:s,width:u,height:c,minX:f,minY:l},this.delegateRect=r.addShape("rect",{attrs:Object(v.a)({width:u,height:c,x:a,y:s},i),name:"rect-delegate-shape"}),this.delegate=this.delegateRect,this.delegateRect.set("capture",!1)}},calculationGroupPosition:function(t){var e=this.graph.findAllByState("node",this.selectedState);0===e.length&&e.push(t.item);for(var n=1/0,r=-1/0,i=1/0,o=-1/0,a=0;a<e.length;a++){var s=e[a].getBBox(),u=s.minX,c=s.minY,f=s.maxX,l=s.maxY;u<n&&(n=u),c<i&&(i=c),f>r&&(r=f),l>o&&(o=l)}return{x:Math.floor(n),y:Math.floor(i),width:Math.ceil(r)-Math.floor(n),height:Math.ceil(o)-Math.floor(i),minX:n,minY:i}}},jv=Math.min,Dv=Math.max,Nv=Math.abs,Rv=["drag","shift","ctrl","alt","control"],Lv={getDefaultCfg:function(){return{brushStyle:{fill:"#EEF6FF",fillOpacity:.4,stroke:"#DDEEFE",lineWidth:1},onSelect:function(){},onDeselect:function(){},selectedState:"selected",trigger:"shift",includeEdges:!0,selectedEdges:[],selectedNodes:[]}},getEvents:function(){return Rv.indexOf(this.trigger.toLowerCase())>-1||(this.trigger="shift",console.warn("Behavior brush-select çš„ trigger å‚æ•°ä¸åˆæ³•ï¼Œè¯·è¾“å…¥ \'drag\'ã€\'shift\'ã€\'ctrl\' 或 \'alt\'")),"drag"===this.trigger?{dragstart:"onMouseDown",drag:"onMouseMove",dragend:"onMouseUp","canvas:click":"clearStates"}:{dragstart:"onMouseDown",drag:"onMouseMove",dragend:"onMouseUp","canvas:click":"clearStates",keyup:"onKeyUp",keydown:"onKeyDown"}},onMouseDown:function(t){var e=t.item,n=this.brush;e||("drag"===this.trigger||this.keydown)&&(this.selectedNodes&&0!==this.selectedNodes.length&&this.clearStates(),n||(n=this.createBrush()),this.originPoint={x:t.canvasX,y:t.canvasY},n.attr({width:0,height:0}),n.show(),this.dragging=!0)},onMouseMove:function(t){this.dragging&&("drag"===this.trigger||this.keydown)&&this.updateBrush(t)},onMouseUp:function(t){this.graph;(this.brush||this.dragging)&&("drag"===this.trigger||this.keydown)&&(this.brush.remove(!0),this.brush=null,this.getSelectedNodes(t),this.dragging=!1)},clearStates:function(){var t=this.graph,e=this.selectedState,n=t.findAllByState("node",e),r=t.findAllByState("edge",e);n.forEach((function(n){return t.setItemState(n,e,!1)})),r.forEach((function(n){return t.setItemState(n,e,!1)})),this.selectedNodes=[],this.selectedEdges=[],this.onDeselect&&this.onDeselect(this.selectedNodes,this.selectedEdges),t.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[]},select:!1})},getSelectedNodes:function(t){var e=this,n=this.graph,r=this.originPoint,i=this.shouldUpdate,o=this.selectedState,a={x:t.x,y:t.y},s=n.getPointByCanvas(r.x,r.y),u=jv(a.x,s.x),c=Dv(a.x,s.x),f=jv(a.y,s.y),l=Dv(a.y,s.y),h=[],d=[];n.getNodes().forEach((function(t){var e=t.getBBox();if(e.centerX>=u&&e.centerX<=c&&e.centerY>=f&&e.centerY<=l&&i(t,"select")){h.push(t);var r=t.getModel();d.push(r.id),n.setItemState(t,o,!0)}}));var p=[];this.includeEdges&&h.forEach((function(t){t.getOutEdges().forEach((function(t){var r=t.getModel(),o=r.source,a=r.target;d.includes(o)&&d.includes(a)&&i(t,"select")&&(p.push(t),n.setItemState(t,e.selectedState,!0))}))})),this.selectedEdges=p,this.selectedNodes=h,this.onSelect&&this.onSelect(h,p),n.emit("nodeselectchange",{selectedItems:{nodes:h,edges:p},select:!0})},createBrush:function(){var t=this.graph.get("canvas").addShape("rect",{attrs:this.brushStyle,capture:!1,name:"brush-shape"});return this.brush=t,this.delegate=t,t},updateBrush:function(t){var e=this.originPoint;this.brush.attr({width:Nv(t.canvasX-e.x),height:Nv(t.canvasY-e.y),x:jv(t.canvasX,e.x),y:jv(t.canvasY,e.y)})},onKeyDown:function(t){var e=t.key;if(e){var n=this.trigger.toLowerCase(),r=e.toLowerCase();this.keydown=r===n||"control"===r&&"ctrl"===n||"ctrl"===r&&"control"===n}},onKeyUp:function(){this.brush&&(this.brush.remove(!0),this.brush=null,this.dragging=!1),this.keydown=!1}},Bv=["shift","ctrl","alt","control"],Gv={getDefaultCfg:function(){return{multiple:!0,trigger:"shift",selectedState:"selected"}},getEvents:function(){return Bv.indexOf(this.trigger.toLowerCase())>-1||(this.trigger="shift",console.warn("Behavior brush-select çš„ trigger å‚æ•°ä¸åˆæ³•ï¼Œè¯·è¾“å…¥ \'drag\'ã€\'shift\'ã€\'ctrl\' 或 \'alt\'")),this.multiple?{"node:click":"onClick","combo:click":"onClick","canvas:click":"onCanvasClick",keyup:"onKeyUp",keydown:"onKeyDown"}:{"node:click":"onClick","combo:click":"onClick","canvas:click":"onCanvasClick"}},onClick:function(t){var e=this,n=t.item;if(n&&!n.destroyed){var r=n.getType(),i=e.graph,o=e.keydown,a=e.multiple,s=e.shouldUpdate;if(e.shouldBegin.call(e,t)){if(!o||!a){var u=i.findAllByState(r,e.selectedState);Object(h.f)(u,(function(t){t!==n&&i.setItemState(t,e.selectedState,!1)}))}if(n.hasState(e.selectedState)){s.call(e,t)&&i.setItemState(n,e.selectedState,!1);var c=i.findAllByState("node",e.selectedState),f=i.findAllByState("combo",e.selectedState);i.emit("nodeselectchange",{target:n,selectedItems:{nodes:c,combos:f},select:!1})}else{s.call(e,t)&&i.setItemState(n,e.selectedState,!0);c=i.findAllByState("node",e.selectedState),f=i.findAllByState("combo",e.selectedState);i.emit("nodeselectchange",{target:n,selectedItems:{nodes:c,combos:f},select:!0})}}}},onCanvasClick:function(){var t=this,e=this.graph,n=e.findAllByState("node",this.selectedState);Object(h.f)(n,(function(n){e.setItemState(n,t.selectedState,!1)}));var r=e.findAllByState("combo",this.selectedState);Object(h.f)(r,(function(n){e.setItemState(n,t.selectedState,!1)})),e.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[],combos:[]},select:!1})},onKeyDown:function(t){var e=t.key;e&&(e.toLowerCase()===this.trigger.toLowerCase()||"control"===e.toLowerCase()?this.keydown=!0:this.keydown=!1)},onKeyUp:function(){this.keydown=!1}},Fv=s.transform,Uv={getDefaultCfg:function(){return{sensitivity:2,minZoom:void 0,maxZoom:void 0,enableOptimize:!1,optimizeZoom:.1,fixSelectedItems:{fixAll:!1,fixLineWidth:!1,fixLabel:!1,fixState:"selected"}}},getEvents:function(){var t=this.fixSelectedItems;return t.fixState||(t.fixState="selected"),t.fixAll&&(t.fixLineWidth=!0,t.fixLabel=!0),{wheel:"onWheel",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onTouchEnd"}},onTouchStart:function(t){var e=t.originalEvent.touches,n=e[0],r=e[1];t.preventDefault(),r&&(this.shouldBegin&&!this.shouldBegin.call(this,t)||(this.startPoint={pageX:n.pageX,pageY:n.pageY},this.moveable=!0,r&&(this.endPoint={pageX:r.pageX,pageY:r.pageY}),this.originScale=this.graph.getZoom()||this.currentScale||1))},onTouchMove:function(t){if(this.moveable){t.preventDefault();var e=t.originalEvent.touches,n=e[0],r=e[1];if(r){this.endPoint||(this.endPoint={pageX:r.pageX,pageY:r.pageY});var i=function(t,e){return Math.hypot(e.x-t.x,e.y-t.y)},o=i({x:n.pageX,y:n.pageY},{x:r.pageX,y:r.pageY})/i({x:this.startPoint.pageX,y:this.startPoint.pageY},{x:this.endPoint.pageX,y:this.endPoint.pageY}),a=this.originScale*o;this.currentScale=a;var s=this.get("minZoom")||this.graph.get("minZoom");if(!(a>(this.get("maxZoom")||this.graph.get("maxZoom"))||a<s)){var u=this.graph.get("canvas").getPointByClient(t.clientX,t.clientY);this.graph.zoomTo(a,{x:u.x,y:u.y}),this.graph.emit("wheelzoom",t)}}}},onTouchEnd:function(){this.moveable=!1,this.endPoint=null},onWheel:function(t){var e=this,n=this.graph,r=this.fixSelectedItems;if((!this.shouldBegin||this.shouldBegin.call(this,t))&&this.shouldUpdate.call(this,t)){t.preventDefault();var i,o=n.get("canvas").getPointByClient(t.clientX,t.clientY),a=this.get("sensitivity"),s=n.getZoom();i=s*(t.wheelDelta<0?1-.05*a:1/(1-.05*a));var u=this.get("minZoom")||n.get("minZoom");if(!(i>(this.get("maxZoom")||n.get("maxZoom"))||i<u)){if(this.get("enableOptimize")){var c=this.get("optimizeZoom"),f=this.get("optimized"),l=n.getNodes(),d=n.getEdges(),p=l.length,g=d.length;if(!f){for(var v=0;v<p;v++){if(!(k=l[v]).destroyed)for(var y=(q=k.get("group").get("children")).length,m=0;m<y;m++){(R=q[m]).destoryed||R.get("isKeyShape")||(R.set("ori-visibility",R.get("ori-visibility")||R.get("visible")),R.hide())}}for(var b=0;b<g;b++)for(y=(q=(H=d[b]).get("group").get("children")).length,m=0;m<y;m++){(R=q[m]).set("ori-visibility",R.get("ori-visibility")||R.get("visible")),R.hide()}this.set("optimized",!0)}clearTimeout(this.get("timeout"));var x=setTimeout((function(){var t=n.getZoom();if(e.get("optimized")){e.set("optimized",!1);for(var r=0;r<p;r++){var i=l[r],o=(f=i.get("group").get("children")).length;if(t<c)(s=(h=i.getKeyShape()).get("ori-visibility"))&&h.show();else for(var a=0;a<o;a++){var s=(y=f[a]).get("ori-visibility");!y.get("visible")&&s&&s&&y.show()}}for(var u=0;u<g;u++){var f,h,v=d[u];o=(f=v.get("group").get("children")).length;if(t<c)(s=(h=v.getKeyShape()).get("ori-visibility"))&&h.show();else for(a=0;a<o;a++){var y;if(!(y=f[a]).get("visible"))(s=y.get("ori-visibility"))&&y.show()}}}}),100);this.set("timeout",x)}if(s<=1){var w=void 0,S=void 0;if(r.fixAll||r.fixLineWidth||r.fixLabel){w=n.findAllByState("node",r.fixState),S=n.findAllByState("edge",r.fixState);for(var E=s/i,_=w.length,O=0;O<_;O++){var k,M=(k=w[O]).getContainer(),A=k.getModel(),T=k.getOriginStyle(),C=k.getStateStyle(r.fixState),I=k.get("shapeFactory").getShape(A.type).getStateStyle(r.fixState,k)[r.fixState];if(r.fixAll){if(i<=1){var P=Object(h.c)(M.getMatrix());P||(P=[1,0,0,0,1,0,0,0,1]);var j=k.getModel(),D=j.x,N=j.y;P=Fv(P,[["t",-D,-N],["s",E,E],["t",D,N]]),M.setMatrix(P)}}else for(y=(q=M.get("children")).length,m=0;m<y;m++){var R=q[m],L=void 0,B=void 0;if(r.fixLabel)if("text"===R.get("type")){L=R.attr("fontSize")||12;var G=C[R.get("name")],F=I[R.get("name")],U=G?G.fontSize:12,z=F?F.fontSize:12,V=U||z||12;if(i<=1&&R.attr("fontSize",V/i),B)break}if(r.fixLineWidth&&R.get("isKeyShape")){B=R.attr("lineWidth")||0;var W=C.lineWidth||I.lineWidth||T.lineWidth||0;if(i<=1&&R.attr("lineWidth",W/i),L)break}}}for(var X=S.length,Y=0;Y<X;Y++){var H,q=(M=(H=S[Y]).getContainer()).get("children");for(A=H.getModel(),C=H.getStateStyle(r.fixState),I=H.get("shapeFactory").getShape(A.type).getStateStyle(r.fixState,H)[r.fixState],y=q.length,m=0;m<y;m++){R=q[m],L=void 0,B=void 0;if(r.fixLabel||r.fixAll)if("text"===R.get("type")){L=R.attr("fontSize")||12;G=C[R.get("name")],F=I[R.get("name")],U=G?G.fontSize:12,z=F?F.fontSize:12,V=U||z||12;if(i<=1&&R.attr("fontSize",V/i),B)break}if((r.fixLineWidth||r.fixAll)&&R.get("isKeyShape")){B=R.attr("lineWidth")||0;W=C.lineWidth||I.lineWidth||1;if(i<=1&&R.attr("lineWidth",W/i),L)break}}}}}n.zoomTo(i,{x:o.x,y:o.y}),n.emit("wheelzoom",t)}}}},zv={onMouseEnter:function(t){var e=t.item;this.currentTarget=e,this.showTooltip(t),this.graph.emit("tooltipchange",{item:t.item,action:"show"})},onMouseMove:function(t){this.shouldUpdate(t)?this.currentTarget&&t.item===this.currentTarget&&this.updatePosition(t):this.hideTooltip()},onMouseLeave:function(t){this.shouldEnd(t)&&(this.hideTooltip(),this.graph.emit("tooltipchange",{item:this.currentTarget,action:"hide"}),this.currentTarget=null)},showTooltip:function(t){var e=this.container;if(t.item&&!t.item.destroyed){e||(e=this.createTooltip(this.graph.get("canvas")),this.container=e);var n=this.formatText(t.item.get("model"),t);e.innerHTML=n,vt(this.container,{visibility:"visible"}),this.updatePosition(t)}},hideTooltip:function(){vt(this.container,{visibility:"hidden"})},updatePosition:function(t){var e=this.get("shouldBegin"),n=this.width,r=this.height,i=this.container,o=this.graph;if(e(t)){var a=o.getPointByClient(t.clientX,t.clientY),s=o.getCanvasByPoint(a.x,a.y),u=s.x,c=s.y,f=i.getBoundingClientRect();u>n/2?u-=f.width:u+=this.offset,c>r/2?c-=f.height:c+=this.offset;var l=u+"px",h=c+"px";vt(this.container,{left:l,top:h,visibility:"visible"})}else vt(i,{visibility:"hidden"})},createTooltip:function(t){var e=t.get("el");e.style.position="relative";var n=gt(\'<div class="g6-tooltip g6-\'+this.item+\'-tooltip"></div>\');return e.parentNode.appendChild(n),vt(n,{position:"absolute",visibility:"visible"}),this.width=t.get("width"),this.height=t.get("height"),this.container=n,this.graph.get("tooltips").push(n),n}},Vv=Object(v.a)({getDefaultCfg:function(){return{item:"node",offset:12,formatText:function(t){return t.label}}},getEvents:function(){return{"node:mouseenter":"onMouseEnter","node:mouseleave":"onMouseLeave","node:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave"}}},zv),Wv=Object(v.a)({getDefaultCfg:function(){return{item:"edge",offset:12,formatText:function(t){return"source: "+t.source+" target: "+t.target}}},getEvents:function(){return{"edge:mouseenter":"onMouseEnter","edge:mouseleave":"onMouseLeave","edge:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave"}}},zv),Xv=["click","dblclick"],Yv={getDefaultCfg:function(){return{trigger:"click",onChange:function(){}}},getEvents:function(){var t,e;return Xv.includes(this.trigger)?e=this.trigger:(e="click",console.warn("Behavior collapse-expand çš„ trigger å‚æ•°ä¸åˆæ³•ï¼Œè¯·è¾“å…¥ \'click\' 或 \'dblclick\'")),(t={})["node:"+e]="onNodeClick",t.touchstart="onNodeClick",t},onNodeClick:function(t){var e=t.item;if(e){var n=this.graph.findDataById(e.get("id"));if(n){var r=n.children;if(r&&0!==r.length){var i=!n.collapsed;this.shouldBegin(t,i)&&(n.collapsed=i,e.getModel().collapsed=i,this.graph.emit("itemcollapsed",{item:t.item,collapsed:i}),this.shouldUpdate(t,i)&&(this.onChange(e,i),this.graph.layout()))}}}}},Hv=dd.calculationItemsBBox,qv={getDefaultCfg:function(){return{enableDelegate:!1,delegateStyle:{},onlyChangeComboSize:!1,activeState:"",selectedState:"selected"}},getEvents:function(){return{"combo:dragstart":"onDragStart","combo:drag":"onDrag","combo:dragend":"onDragEnd","combo:drop":"onDrop","node:drop":"onNodeDrop","combo:dragenter":"onDragEnter","combo:dragleave":"onDragLeave"}},validationCombo:function(t){var e=t.item;return!(!e||e.destroyed)&&(!!this.shouldUpdate(this,t)&&"combo"===e.getType())},onDragStart:function(t){var e=this,n=this.graph,r=t.item;if(this.validationCombo(t)){this.targets=[];var i=n.findAllByState("combo",this.selectedState),o=r.get("id");0===i.filter((function(t){var e=t.get("id");return o===e})).length?this.targets.push(r):this.targets=i,this.activeState&&this.targets.map((function(t){var r=t.getModel();if(r.parentId){var i=n.findById(r.parentId);i&&n.setItemState(i,e.activeState,!0)}})),this.point={},this.originPoint={},this.origin={x:t.x,y:t.y},this.currentItemChildCombos=[],function t(e,n){if(!1!==n(e)&&e){var r=e.get("combos");if(0===r.length)return!1;Object(h.f)(r,(function(e){t(e,n)}))}}(r,(function(t){if(t.destroyed)return!1;var n=t.getModel();return e.currentItemChildCombos.push(n.id),!0}))}},onDrag:function(t){var e=this;if(this.origin&&this.validationCombo(t))if(this.enableDelegate)this.updateDelegate(t);else{if(this.activeState){var n=this.graph,r=t.item,i=r.getModel(),o=n.getCombos(),a=r.getBBox(),s=a.centerX,u=a.centerY,c=a.width;o.filter((function(t){var n=t.getModel();return i.parentId,n.id!==i.id&&!e.currentItemChildCombos.includes(n.id)})).map((function(t){var r=t.getBBox(),i=r.centerX,o=r.centerY,a=r.width,f=s-i,l=u-o,h=2*Math.sqrt(f*f+l*l);c+a-h>.8*c?n.setItemState(t,e.activeState,!0):n.setItemState(t,e.activeState,!1)}))}Object(h.f)(this.targets,(function(n){e.updateCombo(n,t)}))}},updatePositions:function(t){var e=this;this.enableDelegate&&Object(h.f)(this.targets,(function(n){e.updateCombo(n,t)}))},onDrop:function(t){var e=this,n=t.item;if(n&&this.targets&&!n.destroyed){this.updatePositions(t);var r=this.graph,i=n.getModel();this.targets.map((function(t){t.getModel().parentId!==i.id?(e.activeState&&r.setItemState(n,e.activeState,!1),e.onlyChangeComboSize?r.updateCombo(t):r.updateComboTree(t,i.id)):r.updateCombo(n)})),this.end(n,t),this.endComparison=!0}},onNodeDrop:function(t){var e=this;if(this.targets&&0!==this.targets.length){this.updatePositions(t);var n,r=this.graph,i=t.item.getModel().comboId;if(i){if(this.activeState){var o=r.findById(i);r.setItemState(o,this.activeState,!1)}this.targets.map((function(t){e.onlyChangeComboSize?r.updateCombo(t):i!==t.getID()&&(n=r.findById(i),i!==t.getModel().parentId&&r.updateComboTree(t,i))}))}else this.targets.map((function(t){e.onlyChangeComboSize?r.updateCombo(t):t.getModel().comboId&&r.updateComboTree(t)}));this.endComparison=!0,this.end(n,t)}},onDragEnter:function(t){if(this.origin&&this.validationCombo(t)){var e=t.item,n=this.graph;this.activeState&&n.setItemState(e,this.activeState,!0)}},onDragLeave:function(t){if(this.origin&&this.validationCombo(t)){var e=t.item,n=this.graph;this.activeState&&n.setItemState(e,this.activeState,!1)}},onDragEnd:function(t){if(this.targets&&0!==this.targets.length){var e=t.item;this.updatePositions(t);var n=this.getParentCombo(e.getModel().parentId),r=this.graph;n&&this.activeState&&r.setItemState(n,this.activeState,!1),this.end(void 0,t)}},end:function(t,e){var n=this;if(this.origin){var r=this.graph;if(this.delegateShape)r.get("delegateGroup").clear(),this.delegateShape=null;t&&this.activeState&&r.setItemState(t,this.activeState,!1),t||this.targets.map((function(t){n.onlyChangeComboSize?r.updateCombo(t):r.updateComboTree(t)})),this.point=[],this.origin=null,this.originPoint=null,this.targets.length=0}},traverse:function(t,e){var n=this;if(!1!==e(t)&&t){var r=t.get("combos");Object(h.f)(r,(function(t){n.traverse(t,e)}));var i=t.get("nodes");Object(h.f)(i,(function(t){n.traverse(t,e)}))}},updateCombo:function(t,e){var n=this;this.traverse(t,(function(t){return!t.destroyed&&(n.updateSignleItem(t,e),!0)}))},updateSignleItem:function(t,e){var n=this.origin,r=this.graph,i=t.getModel(),o=t.get("id");this.point[o]||(this.point[o]={x:i.x,y:i.y});var a=e.x-n.x+this.point[o].x,s=e.y-n.y+this.point[o].y;r.updateItem(t,{x:a,y:s})},getParentCombo:function(t){var e=this.graph;if(t){var n=e.findById(t);if(n)return n}},updateDelegate:function(t){var e=this.graph;if(this.delegateShape){var n=t.x-this.origin.x+this.originPoint.minX,r=t.y-this.origin.y+this.originPoint.minY;this.delegateShape.attr({x:n,y:r})}else{var i=e.get("delegateGroup"),o=null,a=(o=this.targets.length>1?Hv(this.targets):this.targets[0].getBBox()).x,s=o.y,u=o.width,c=o.height,f=o.minX,l=o.minY;this.originPoint={x:a,y:s,width:u,height:c,minX:f,minY:l};var h=Object(v.a)(Object(v.a)({},Dn.delegateStyle),this.delegateStyle);this.delegateShape=i.addShape("rect",{attrs:Object(v.a)({width:o.width,height:o.height,x:o.x,y:o.y},h),name:"combo-delegate-shape"}),this.delegate=this.delegateShape}}},Kv=["click","dblclick"],Zv={getDefaultCfg:function(){return{trigger:"dblclick",relayout:!0}},getEvents:function(){var t,e;return Kv.includes(this.trigger)?e=this.trigger:(e="dblclick",console.warn("Behavior collapse-expand-group çš„ trigger å‚æ•°ä¸åˆæ³•ï¼Œè¯·è¾“å…¥ \'click\' 或 \'dblclick\'")),(t={})["combo:"+e]="onComboClick",t},onComboClick:function(t){var e=t.item,n=this.graph,r=this.relayout;if(e&&!e.destroyed&&"combo"===e.getType()){var i=e.getModel().id;i&&(n.collapseExpandCombo(i),r&&n.get("layout")?n.layout():n.refreshPositions())}}},Qv=dd.isPolygonsIntersect,Jv=dd.pathToPoints,$v=["drag","shift","ctrl","alt","control"],ty=["click","drag"],ey=["shift","ctrl","control","alt","meta",void 0],ny=["shift","ctrl","alt","control"],ry={"drag-canvas":Iv,"zoom-canvas":Uv,"drag-node":Pv,"activate-relations":{getDefaultCfg:function(){return{trigger:"mouseenter",activeState:"active",inactiveState:"inactive",resetSelected:!1,shouldUpdate:function(){return!0}}},getEvents:function(){return"mouseenter"===this.get("trigger")?{"node:mouseenter":"setAllItemStates","node:mouseleave":"clearActiveState"}:{"node:click":"setAllItemStates","canvas:click":"clearAllItemStates"}},setAllItemStates:function(t){var e=t.item,n=this.graph;if(this.item=e,this.shouldUpdate(t.item,{event:t,action:"activate"})){for(var r=this.activeState,i=this.inactiveState,o=n.getNodes(),a=n.getEdges(),s=o.length,u=a.length,c=0;c<s;c++){var f=o[c],l=f.hasState("selected");this.resetSelected&&l&&n.setItemState(f,"selected",!1),n.setItemState(f,r,!1),i&&n.setItemState(f,i,!0)}for(c=0;c<u;c++){var h=a[c];n.setItemState(h,r,!1),i&&n.setItemState(h,i,!0)}i&&n.setItemState(e,i,!1),n.setItemState(e,r,!0);var d=e.getEdges(),p=d.length;for(c=0;c<p;c++){var g=void 0;g=(h=d[c]).getSource()===e?h.getTarget():h.getSource(),i&&n.setItemState(g,i,!1),n.setItemState(g,r,!0),n.setItemState(h,i,!1),n.setItemState(h,r,!0),h.toFront()}n.emit("afteractivaterelations",{item:t.item,action:"activate"})}},clearActiveState:function(t){var e=this.get("graph");if(this.shouldUpdate(t.item,{event:t,action:"deactivate"})){var n=this.activeState,r=this.inactiveState,i=e.get("autoPaint");e.setAutoPaint(!1);for(var o=e.getNodes(),a=e.getEdges(),s=o.length,u=a.length,c=0;c<s;c++){var f=o[c];e.clearItemStates(f,[n,r])}for(c=0;c<u;c++){var l=a[c];e.clearItemStates(l,[n,r,"deactivate"])}e.paint(),e.setAutoPaint(i),e.emit("afteractivaterelations",{item:t.item||this.get("item"),action:"deactivate"})}},clearAllItemStates:function(t){var e=this.graph;if(this.shouldUpdate(t.item,{event:t,action:"deactivate"})){for(var n=this.activeState,r=this.inactiveState,i=e.getNodes(),o=e.getEdges(),a=i.length,s=o.length,u=0;u<a;u++){var c=i[u];e.clearItemStates(c,[n,r])}for(u=0;u<s;u++){var f=o[u];e.clearItemStates(f,[n,r,"deactivate"])}e.emit("afteractivaterelations",{item:t.item||this.get("item"),action:"deactivate"})}}},"brush-select":Lv,"click-select":Gv,"lasso-select":{getDefaultCfg:function(){return{delegateStyle:{fill:"#EEF6FF",fillOpacity:.4,stroke:"#DDEEFE",lineWidth:1},onSelect:function(){},onDeselect:function(){},selectedState:"selected",trigger:"shift",includeEdges:!0,selectedEdges:[],selectedNodes:[]}},getEvents:function(){return $v.indexOf(this.trigger.toLowerCase())>-1||(this.trigger="shift",console.warn("Behavior lasso-select çš„ trigger å‚æ•°ä¸åˆæ³•ï¼Œè¯·è¾“å…¥ \'drag\'ã€\'shift\'ã€\'ctrl\' 或 \'alt\'")),"drag"===this.trigger?{dragstart:"onDragStart",drag:"onDragMove",dragend:"onDragEnd","canvas:click":"clearStates"}:{dragstart:"onDragStart",drag:"onDragMove",dragend:"onDragEnd",keyup:"onKeyUp",keydown:"onKeyDown","canvas:click":"clearStates"}},onDragStart:function(t){var e=this.lasso;t.item||("drag"===this.trigger||this.keydown)&&(this.selectedNodes&&0!==this.selectedNodes.length&&this.clearStates(),e||(e=this.createLasso()),this.dragging=!0,this.originPoint={x:t.x,y:t.y},this.points.push(this.originPoint),e.show())},onDragMove:function(t){this.dragging&&("drag"===this.trigger||this.keydown)&&(this.points.push({x:t.x,y:t.y}),this.updateLasso(t))},onDragEnd:function(t){(this.lasso||this.dragging)&&("drag"===this.trigger||this.keydown)&&(this.points.push(this.originPoint),this.getSelectedItems(),this.lasso.remove(!0),this.lasso=null,this.points=[],this.dragging=!1)},getLassoPath:function(){var t=this.points,e=[];return t.length&&(t.forEach((function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e.push(["L",t[0].x,t[0].y])),e},clearStates:function(){var t=this.graph,e=this.selectedState,n=t.findAllByState("node",e),r=t.findAllByState("edge",e);n.forEach((function(n){return t.setItemState(n,e,!1)})),r.forEach((function(n){return t.setItemState(n,e,!1)})),this.onDeselect&&this.onDeselect(this.selectedNodes,this.selectedEdges),this.selectedNodes=[],this.selectedEdges=[],t.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[]},select:!1})},getSelectedItems:function(){var t=this,e=this.graph,n=this.shouldUpdate,r=this.points.map((function(t){return[e.getCanvasByPoint(t.x,t.y).x,e.getCanvasByPoint(t.x,t.y).y]})),i=this.selectedState,o=[],a=[];e.getNodes().forEach((function(t){if(function(t,e){var n,r=t.getKeyShape();if("path"===t.get("type"))n=Jv(r.attr("path"));else{var i=r.getCanvasBBox();n=[[i.minX,i.minY],[i.maxX,i.minY],[i.maxX,i.maxY],[i.minX,i.maxY]]}return Qv(e,n)}(t,r)&&n(t,"select")){o.push(t);var s=t.getModel();a.push(s.id),e.setItemState(t,i,!0)}}));var s=[];this.includeEdges&&o.forEach((function(r){r.getOutEdges().forEach((function(r){var i=r.getModel(),o=i.source,u=i.target;a.includes(o)&&a.includes(u)&&n(r,"select")&&(s.push(r),e.setItemState(r,t.selectedState,!0))}))})),this.selectedEdges=s,this.selectedNodes=o,this.onSelect&&this.onSelect(o,s),e.emit("nodeselectchange",{selectedItems:{nodes:o,edges:s},select:!0})},createLasso:function(){var t=this.graph.get("delegateGroup").addShape("path",{attrs:Object(v.a)({path:[]},this.delegateStyle),capture:!1,name:"lasso-shape"});return this.lasso=t,this.delegate=t,this.points=[],t},updateLasso:function(t){this.lasso.attr({path:this.getLassoPath()})},onKeyDown:function(t){var e=t.key;e&&(e.toLowerCase()===this.trigger.toLowerCase()?this.keydown=!0:this.keydown=!1)},onKeyUp:function(){this.lasso&&(this.lasso.remove(!0),this.lasso=null,this.points=[],this.dragging=!1),this.keydown=!1}},tooltip:Vv,"edge-tooltip":Wv,"collapse-expand":Yv,"drag-combo":qv,"collapse-expand-combo":Zv,"create-edge":{getDefaultCfg:function(){return{trigger:"click",key:void 0,edgeConfig:{},getEdgeConfig:void 0}},getEvents:function(){var t;return ty.indexOf(this.trigger.toLowerCase())>-1||(this.trigger="click",console.warn("Behavior create-edge çš„ trigger å‚æ•°ä¸åˆæ³•ï¼Œè¯·è¾“å…¥ \'click\',\'drag\'")),this.key&&-1===ey.indexOf(this.key.toLowerCase())&&(this.trigger=void 0,console.warn("Behavior create-edge çš„ key å‚æ•°ä¸åˆæ³•ï¼Œè¯·è¾“å…¥ \'shift\',\'ctrl\',\'alt\',\'control\',或 undefined")),"drag"===this.trigger?t={"node:dragstart":"onClick","combo:dragstart":"onClick",drag:"updateEndPoint","node:drop":"onClick","combo:drop":"onClick",dragend:"onDragEnd"}:"click"===this.trigger&&(t={"node:click":"onClick",mousemove:"updateEndPoint","edge:click":"cancelCreating","canvas:click":"cancelCreating","combo:click":"onClick"}),this.key&&(t.keydown="onKeyDown",t.keyup="onKeyUp"),t},onDragEnd:function(t){if(!this.key||this.keydown){var e=t.item;e&&e.getID()!==this.source&&"node"===e.getType()||this.cancelCreating({item:this.edge,x:t.x,y:t.y})}},onClick:function(t){if(!this.key||this.keydown){var e=t.item,n=this.graph,r=e.getModel(),i=this.getEdgeConfig;if(this.addingEdge&&this.edge){if(!this.shouldEnd.call(this,t))return;var o=void 0;o=i&&Object(h.r)(i)?i({source:this.source,target:r.id}):this.edgeConfig;var a=Object(v.a)({target:r.id},o);this.source===r.id&&(a.type="loop"),n.emit("beforecreateedge",{}),n.updateItem(this.edge,a),n.emit("aftercreateedge",{edge:this.edge}),this.edge.getKeyShape().set("capture",!0),this.edge=null,this.addingEdge=!1}else{if(!this.shouldBegin.call(this,t))return;o=void 0;o=i&&Object(h.r)(i)?i({source:r.id,target:r.id}):this.edgeConfig,this.edge=n.addItem("edge",Object(v.a)({source:r.id,target:r.id},o),!1),this.source=r.id,this.addingEdge=!0,this.edge.getKeyShape().set("capture",!1)}}},updateEndPoint:function(t){if(!this.key||this.keydown){var e={x:t.x,y:t.y};this.graph.findById(this.source)?this.addingEdge&&this.edge&&this.graph.updateItem(this.edge,{target:e},!1):this.addingEdge=!1}},cancelCreating:function(t){if(!this.key||this.keydown){var e=this.graph,n=t.item;if(this.addingEdge&&t.target&&t.target.isCanvas&&t.target.isCanvas())return e.removeItem(this.edge,!1),this.edge=null,void(this.addingEdge=!1);this.addingEdge&&this.edge===n&&(e.removeItem(this.edge,!1),this.edge=null,this.addingEdge=!1)}},onKeyDown:function(t){var e=t.key;e&&(e.toLowerCase()===this.key.toLowerCase()?this.keydown=!0:this.keydown=!1)},onKeyUp:function(){this.addingEdge&&this.edge&&(this.graph.removeItem(this.edge,!1),this.addingEdge=!1,this.edge=null),this.keydown=!1}},"shortcuts-call":{getDefaultCfg:function(){return{trigger:"ctrl",combinedKey:"1",functionName:"fitView",functionParams:[]}},getEvents:function(){return ny.indexOf(this.trigger.toLowerCase())>-1||(this.trigger="ctrl",console.warn("Behavior shortcuts-fit-view çš„ trigger å‚æ•° \'"+this.trigger+"\' ä¸åˆæ³•ï¼Œè¯·è¾“å…¥ \'drag\'ã€\'shift\'ã€\'ctrl\' 或 \'alt\'")),this.combinedKey===this.trigger&&(this.combinedKey=void 0),{keyup:"onKeyUp",keydown:"onKeyDown"}},onKeyDown:function(t){var e=t.key;if(e){var n=this.trigger.toLowerCase(),r=e.toLowerCase();this.triggerKeydown||(this.triggerKeydown=r===n||"control"===r&&"ctrl"===n||"ctrl"===r&&"control"===n);var i=this.graph;if(!i[this.functionName])return console.warn("Behavior shortcuts-fit-view çš„ functionName å‚æ•° \'"+this.functionName+"\' ä¸åˆæ³•ï¼Œå®ƒä¸æ˜¯ Graph 的一个函数å"),{};if(!this.triggerKeydown||this.combinedKey){var o=this.combinedKey.toLowerCase();this.triggerKeydown&&(r===o||"control"===r&&"ctrl"===o||"ctrl"===r&&"control"===o)&&(this.functionParams&&this.functionParams.length?i[this.functionName].apply(i,this.functionParams):i[this.functionName]())}else this.functionParams&&this.functionParams.length?i[this.functionName].apply(i,this.functionParams):i[this.functionName]()}},onKeyUp:function(){this.brush&&(this.brush.remove(!0),this.brush=null,this.dragging=!1),this.triggerKeydown=!1}}};Object(h.f)(ry,(function(t,e){rn(e,t)}));var iy=tv.Minimap,oy=tv.Grid,ay=tv.Bundling,sy=tv.Menu,uy=tv.Fisheye,cy=tv.ToolBar,fy=tv.Tooltip,ly=tv.TimeBar,hy=tv.ImageMinimap,dy=tv.EdgeFilterLens,py={version:Dn.version,Graph:nd,TreeGraph:vd,Util:dd,Layout:Nh,registerLayout:Lh,Global:Dn,registerBehavior:rn,registerCombo:nn,registerEdge:en,registerNode:tn,Minimap:tv.Minimap,Grid:tv.Grid,Bundling:tv.Bundling,Menu:tv.Menu,ToolBar:tv.ToolBar,Tooltip:tv.Tooltip,TimeBar:ly,Fisheye:uy,ImageMinimap:hy,EdgeFilterLens:dy,Algorithm:b,Arrow:He,Marker:qe,Shape:Ke};py.version="4.1.12";e.default=py;var gy="4.1.12"}]).default}));\r\n//# sourceMappingURL=g6.min.js.map//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvTGliL2c2LmpzPzA3MDciXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsZUFBZSxLQUFpRCxvQkFBb0IsU0FBbUcsQ0FBQyxrQkFBa0IsbUJBQW1CLFNBQVMsY0FBYyw0QkFBNEIsWUFBWSxxQkFBcUIsMkRBQTJELHVDQUF1QyxxQ0FBcUMsb0JBQW9CLEVBQUUsaUJBQWlCLDRGQUE0RixlQUFlLHdDQUF3QyxTQUFTLEVBQUUsbUJBQW1CLDhCQUE4QixxREFBcUQsMEJBQTBCLDZDQUE2QyxzQkFBc0IsNkRBQTZELFlBQVksZUFBZSxTQUFTLGlCQUFpQixpQ0FBaUMsaUJBQWlCLFlBQVksVUFBVSxzQkFBc0IsbUJBQW1CLGlEQUFpRCxtQkFBbUIsa0JBQWtCLGFBQWEsc0JBQXNCLFNBQVMseUJBQXlCLFNBQVMseUJBQXlCLFNBQVMseUJBQXlCLFNBQVMseUJBQXlCLFNBQVMseUJBQXlCLFNBQVMseUJBQXlCLFNBQVMseUJBQXlCLFNBQVMseUJBQXlCLFNBQVMseUJBQXlCLFNBQVMseUJBQXlCLFNBQVMseUJBQXlCLFNBQVMseUJBQXlCLFNBQVMseUJBQXlCLFNBQVMseUJBQXlCLFNBQVMseUJBQXlCLFNBQVMseUJBQXlCLFNBQVMseUJBQXlCLFNBQVMseUJBQXlCLFNBQVMseUJBQXlCLFNBQVMseUJBQXlCLFNBQVMseUJBQXlCLFNBQVMseUJBQXlCLFNBQVMseUJBQXlCLFNBQVMseUJBQ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m9jYXRpb25JbmRleCA9IGludChmbG9vcih2X1RleENvb3JkLnggKiB1X091dHB1dFRleHR1cmVTaXplLngpKVxcXFxuICArIGludChmbG9vcih2X1RleENvb3JkLnkgKiB1X091dHB1dFRleHR1cmVTaXplLnkpKSAqIGludCh1X091dHB1dFRleHR1cmVTaXplLngpO1xcXFxuaW50IHdvcmtHcm91cElETGVuZ3RoID0gZ2xvYmFsSW52b2NhdGlvbkluZGV4IC8gKHdvcmtHcm91cFNpemUueCAqIHdvcmtHcm91cFNpemUueSAqIHdvcmtHcm91cFNpemUueik7XFxcXG5pdmVjMyB3b3JrR3JvdXBJRCA9IGl2ZWMzKHdvcmtHcm91cElETGVuZ3RoIC8gbnVtV29ya0dyb3Vwcy55IC8gbnVtV29ya0dyb3Vwcy56LCB3b3JrR3JvdXBJRExlbmd0aCAvIG51bVdvcmtHcm91cHMueCAvIG51bVdvcmtHcm91cHMueiwgd29ya0dyb3VwSURMZW5ndGggLyBudW1Xb3JrR3JvdXBzLnggLyBudW1Xb3JrR3JvdXBzLnkpO1xcXFxuaW50IGxvY2FsSW52b2NhdGlvbklEWiA9IGdsb2JhbEludm9jYXRpb25JbmRleCAvICh3b3JrR3JvdXBTaXplLnggKiB3b3JrR3JvdXBTaXplLnkpO1xcXFxuaW50IGxvY2FsSW52b2NhdGlvbklEWSA9IChnbG9iYWxJbnZvY2F0aW9uSW5kZXggLSBsb2NhbEludm9jYXRpb25JRFogKiB3b3JrR3JvdXBTaXplLnggKiB3b3JrR3JvdXBTaXplLnkpIC8gd29ya0dyb3VwU2l6ZS54O1xcXFxuaW50IGxvY2FsSW52b2NhdGlvbklEWCA9IGdsb2JhbEludm9jYXRpb25JbmRleCAtIGxvY2FsSW52b2NhdGlvbklEWiAqIHdvcmtHcm91cFNpemUueCAqIHdvcmtHcm91cFNpemUueSAtIGxvY2FsSW52b2NhdGlvbklEWSAqIHdvcmtHcm91cFNpemUueDtcXFxcbml2ZWMzIGxvY2FsSW52b2NhdGlvbklEID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25JbmRleCA9IGludChmbG9vcih2X1RleENvb3JkLnggKiB1X091dHB1dFRleHR1cmVTaXplLngpKVxcXFxuICArIGludChmbG9vcih2X1RleENvb3JkLnkgKiB1X091dHB1dFRleHR1cmVTaXplLnkpKSAqIGludCh1X091dHB1dFRleHR1cmVTaXplLngpO1xcXFxuaW50IHdvcmtHcm91cElETGVuZ3RoID0gZ2xvYmFsSW52b2NhdGlvbkluZGV4IC8gKHdvcmtHcm91cFNpemUueCAqIHdvcmtHcm91cFNpemUueSAqIHdvcmtHcm91cFNpemUueik7XFxcXG5pdmVjMyB3b3JrR3JvdXBJRCA9IGl2ZWMzKHdvcmtHcm91cElETGVuZ3RoIC8gbnVtV29ya0dyb3Vwcy55IC8gbnVtV29ya0dyb3Vwcy56LCB3b3JrR3JvdXBJRExlbmd0aCAvIG51bVdvcmtHcm91cHMueCAvIG51bVdvcmtHcm91cHMueiwgd29ya0dyb3VwSURMZW5ndGggLyBudW1Xb3JrR3JvdXBzLnggLyBudW1Xb3JrR3JvdXBzLnkpO1xcXFxuaW50IGxvY2FsSW52b2NhdGlvbklEWiA9IGdsb2JhbEludm9jYXRpb25JbmRleCAvICh3b3JrR3JvdXBTaXplLnggKiB3b3JrR3JvdXBTaXplLnkpO1xcXFxuaW50IGxvY2FsSW52b2NhdGlvbklEWSA9IChnbG9iYWxJbnZvY2F0aW9uSW5kZXggLSBsb2NhbEludm9jYXRpb25JRFogKiB3b3JrR3JvdXBTaXplLnggKiB3b3JrR3JvdXBTaXplLnkpIC8gd29ya0dyb3VwU2l6ZS54O1xcXFxuaW50IGxvY2FsSW52b2NhdGlvbklEWCA9IGdsb2JhbEludm9jYXRpb25JbmRleCAtIGxvY2FsSW52b2NhdGlvbklEWiAqIHdvcmtHcm91cFNpemUueCAqIHdvcmtHcm91cFNpemUueSAtIGxvY2FsSW52b2NhdGlvbklEWSAqIHdvcmtHcm91cFNpemUueDtcXFxcbml2ZWMzIGxvY2FsSW52b2NhdGlvbklEID0gaXZlYz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JydXNoLnJlbW92ZSghMCksdGhpcy5icnVzaD1udWxsLHRoaXMuZHJhZ2dpbmc9ITEpLHRoaXMudHJpZ2dlcktleWRvd249ITF9fX07T2JqZWN0KGguZikocnksKGZ1bmN0aW9uKHQsZSl7cm4oZSx0KX0pKTt2YXIgaXk9dHYuTWluaW1hcCxveT10di5HcmlkLGF5PXR2LkJ1bmRsaW5nLHN5PXR2Lk1lbnUsdXk9dHYuRmlzaGV5ZSxjeT10di5Ub29sQmFyLGZ5PXR2LlRvb2x0aXAsbHk9dHYuVGltZUJhcixoeT10di5JbWFnZU1pbmltYXAsZHk9dHYuRWRnZUZpbHRlckxlbnMscHk9e3ZlcnNpb246RG4udmVyc2lvbixHcmFwaDpuZCxUcmVlR3JhcGg6dmQsVXRpbDpkZCxMYXlvdXQ6TmgscmVnaXN0ZXJMYXlvdXQ6TGgsR2xvYmFsOkRuLHJlZ2lzdGVyQmVoYXZpb3I6cm4scmVnaXN0ZXJDb21ibzpubixyZWdpc3RlckVkZ2U6ZW4scmVnaXN0ZXJOb2RlOnRuLE1pbmltYXA6dHYuTWluaW1hcCxHcmlkOnR2LkdyaWQsQnVuZGxpbmc6dHYuQnVuZGxpbmcsTWVudTp0di5NZW51LFRvb2xCYXI6dHYuVG9vbEJhcixUb29sdGlwOnR2LlRvb2x0aXAsVGltZUJhcjpseSxGaXNoZXllOnV5LEltYWdlTWluaW1hcDpoeSxFZGdlRmlsdGVyTGVuczpkeSxBbGdvcml0aG06YixBcnJvdzpIZSxNYXJrZXI6cWUsU2hhcGU6S2V9O3B5LnZlcnNpb249XCI0LjEuMTJcIjtlLmRlZmF1bHQ9cHk7dmFyIGd5PVwiNC4xLjEyXCJ9XSkuZGVmYXVsdH0pKTtcclxuLy8jIHNvdXJjZU1hcHBpbmdVUkw9ZzYubWluLmpzLm1hcCJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///1\n') }, function (module, exports, __webpack_require__) { "use strict"; eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.Marker = exports.Link = exports.Element = exports.Model = void 0;\r\nconst util_1 = __webpack_require__(3);\r\nconst StructV_1 = __webpack_require__(0);\r\n;\r\n;\r\nclass Model {\r\n constructor(id, type) {\r\n this.id = id;\r\n this.type = type;\r\n this.shadowG6Item = null;\r\n this.renderG6Item = null;\r\n this.G6Item = null;\r\n this.props = {};\r\n this.isLeak = false;\r\n }\r\n defineProps(option) {\r\n return null;\r\n }\r\n initProps(option) {\r\n this.props = this.defineProps(option);\r\n }\r\n cloneProps() {\r\n return util_1.Util.objectClone(this.props);\r\n }\r\n get(attr) {\r\n return this.props[attr];\r\n }\r\n set(attr, value) {\r\n if (typeof attr === 'object') {\r\n Object.keys(attr).map(item => {\r\n this.set(item, attr[item]);\r\n });\r\n return;\r\n }\r\n if (this.props[attr] === value) {\r\n return;\r\n }\r\n if (attr === 'style' || attr === 'labelCfg') {\r\n Object.assign(this.props[attr], value);\r\n }\r\n else {\r\n this.props[attr] = value;\r\n }\r\n if (this.G6Item === null) {\r\n return;\r\n }\r\n if (attr === 'rotation') {\r\n const matrix = util_1.Util.calcRotateMatrix(this.getMatrix(), value);\r\n this.set('style', { matrix });\r\n }\r\n if (attr === 'x' || attr === 'y') {\r\n this.G6Item.updatePosition({\r\n [attr]: value\r\n });\r\n }\r\n else {\r\n this.G6Item.update(this.props);\r\n }\r\n }\r\n getBound() {\r\n return this.G6Item.getBBox();\r\n }\r\n getMatrix() {\r\n if (this.G6Item === null)\r\n return null;\r\n const Mat3 = StructV_1.SV.G6.Util.mat3;\r\n return Mat3.create();\r\n }\r\n getType() {\r\n return this.type;\r\n }\r\n getId() {\r\n return this.id;\r\n }\r\n}\r\nexports.Model = Model;\r\nclass Element extends Model {\r\n constructor(id, type, group, layouter, sourceElement) {\r\n super(id, type);\r\n if (type === null) {\r\n return;\r\n }\r\n this.groupName = group;\r\n this.layouterName = layouter;\r\n this.freed = false;\r\n Object.keys(sourceElement).map(prop => {\r\n if (prop !== 'id') {\r\n this[prop] = sourceElement[prop];\r\n }\r\n });\r\n this.sourceId = this.id.split('.')[1];\r\n this.sourceElement = sourceElement;\r\n this.markers = {};\r\n this.links = { inDegree: [], outDegree: [] };\r\n }\r\n defineProps(option) {\r\n return Object.assign(Object.assign({}, this.sourceElement), { id: this.id, x: 0, y: 0, rotation: option.rotation || 0, type: option.type, size: option.size || [60, 30], anchorPoints: option.anchorPoints, label: option.label, style: util_1.Util.objectClone(option.style), labelCfg: util_1.Util.objectClone(option.labelOptions), indexCfg: util_1.Util.objectClone(option.indexOptions), markerId: null, SVLayouter: this.layouterName, SVModelType: 'element', SVModelName: this.type });\r\n }\r\n}\r\nexports.Element = Element;\r\n;\r\nclass Link extends Model {\r\n constructor(id, type, element, target, index) {\r\n super(id, type);\r\n this.element = element;\r\n this.target = target;\r\n this.index = index;\r\n element.links.outDegree.push(this);\r\n target.links.inDegree.push(this);\r\n }\r\n defineProps(option) {\r\n let sourceAnchor = option.sourceAnchor, targetAnchor = option.targetAnchor;\r\n if (option.sourceAnchor && typeof option.sourceAnchor === 'function' && this.index !== null) {\r\n sourceAnchor = option.sourceAnchor(this.index);\r\n }\r\n if (option.targetAnchor && typeof option.targetAnchor === 'function' && this.index !== null) {\r\n targetAnchor = option.targetAnchor(this.index);\r\n }\r\n return {\r\n id: this.id,\r\n type: option.type,\r\n source: this.element.id,\r\n target: this.target.id,\r\n sourceAnchor,\r\n targetAnchor,\r\n label: option.label,\r\n style: util_1.Util.objectClone(option.style),\r\n labelCfg: util_1.Util.objectClone(option.labelOptions),\r\n curveOffset: option.curveOffset,\r\n SVModelType: 'link',\r\n SVModelName: this.type\r\n };\r\n }\r\n}\r\nexports.Link = Link;\r\n;\r\nclass Marker extends Model {\r\n constructor(id, type, label, target) {\r\n super(id, type);\r\n this.target = target;\r\n this.label = label;\r\n this.target.set('markerId', id);\r\n this.target.markers[type] = this;\r\n }\r\n getLabelSizeRadius() {\r\n const { width, height } = this.G6Item.getContainer().getChildren()[2].getBBox();\r\n return width > height ? width : height;\r\n }\r\n defineProps(option) {\r\n this.anchor = option.anchor;\r\n const type = option.type, defaultSize = type === 'pointer' ? [8, 30] : [12, 12];\r\n return {\r\n id: this.id,\r\n x: 0,\r\n y: 0,\r\n rotation: 0,\r\n type: option.type || 'marker',\r\n size: option.size || defaultSize,\r\n anchorPoints: null,\r\n label: typeof this.label === 'string' ? this.label : this.label.join(', '),\r\n style: util_1.Util.objectClone(option.style),\r\n labelCfg: util_1.Util.objectClone(option.labelOptions),\r\n markerId: null,\r\n SVLayouter: null,\r\n SVModelType: 'marker',\r\n SVModelName: this.type\r\n };\r\n }\r\n}\r\nexports.Marker = Marker;\r\n;\r\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvTW9kZWwvbW9kZWxEYXRhLnRzPzQ5OGYiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsc0NBQXNDO0FBSXRDLHlDQUFrQztBQW1CakMsQ0FBQztBQWdCRCxDQUFDO0FBR0YsTUFBYSxLQUFLO0lBVWQsWUFBWSxFQUFVLEVBQUUsSUFBWTtRQUNoQyxJQUFJLENBQUMsRUFBRSxHQUFHLEVBQUUsQ0FBQztRQUNiLElBQUksQ0FBQyxJQUFJLEdBQUcsSUFBSSxDQUFDO1FBQ2pCLElBQUksQ0FBQyxZQUFZLEdBQUcsSUFBSSxDQUFDO1FBQ3pCLElBQUksQ0FBQyxZQUFZLEdBQUcsSUFBSSxDQUFDO1FBQ3pCLElBQUksQ0FBQyxNQUFNLEdBQUcsSUFBSSxDQUFDO1FBQ25CLElBQUksQ0FBQyxLQUFLLEdBQThCLEVBQUcsQ0FBQztRQUM1QyxJQUFJLENBQUMsTUFBTSxHQUFHLEtBQUssQ0FBQztJQUN4QixDQUFDO0lBT1MsV0FBVyxDQUFDLE1BQWlEO1FBQ25FLE9BQU8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G4gICAgfVxyXG5cclxuICAgIC8qKlxyXG4gICAgICog6K6+572uIEc2IG1vZGVsIOeahOWxnuaAp1xyXG4gICAgICogQHBhcmFtIGF0dHIgXHJcbiAgICAgKiBAcGFyYW0gdmFsdWUgXHJcbiAgICAgKiBAcmV0dXJucyBcclxuICAgICAqL1xyXG4gICAgc2V0KGF0dHI6IHN0cmluZyB8IG9iamVjdCwgdmFsdWU/OiBhbnkpIHtcclxuICAgICAgICBpZih0eXBlb2YgYXR0ciA9PT0gJ29iamVjdCcpIHtcclxuICAgICAgICAgICAgT2JqZWN0LmtleXMoYXR0cikubWFwKGl0ZW0gPT4ge1xyXG4gICAgICAgICAgICAgICAgdGhpcy5zZXQoaXRlbSwgYXR0cltpdGVtXSk7XHJcbiAgICAgICAgICAgIH0pO1xyXG4gICAgICAgICAgICByZXR1cm47XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICBpZih0aGlzLnByb3BzW2F0dHJdID09PSB2YWx1ZSkge1xyXG4gICAgICAgICAgICByZXR1cm47XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICBpZihhdHRyID09PSAnc3R5bGUnIHx8IGF0dHIgPT09ICdsYWJlbENmZycpIHtcclxuICAgICAgICAgICAgT2JqZWN0LmFzc2lnbih0aGlzLnByb3BzW2F0dHJdLCB2YWx1ZSk7XHJcbiAgICAgICAgfVxyXG4gICAgICAgIGVsc2Uge1xyXG4gICAgICAgICAgICB0aGlzLnByb3BzW2F0dHJdID0gdmFsdWU7XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICBpZih0aGlzLkc2SXRlbSA9PT0gbnVsbCkge1xyXG4gICAgICAgICAgICByZXR1cm47XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICBpZihhdHRyID09PSAncm90YXRpb24nKSB7XHJcbiAgICAgICAgICAgIGNvbnN0IG1hdHJpeCA9IFV0aWwuY2FsY1JvdGF0ZU1hdHJpeCh0aGlzLmdldE1hdHJpeCgpLCB2YWx1ZSk7XHJcbiAgICAgICAgICAgIHRoaXMuc2V0KCdzdHlsZScsIHsgbWF0cml4IH0pO1xyXG4gICAgICAgIH1cclxuICAgICAgICBcclxuICAgICAgICBpZihhdHRyID09PSAneCcgfHwgYXR0ciA9PT0gJ3knKSB7XHJcbiAgICAgICAgICAgIHRoaXMuRzZJdGVtLnVwZGF0ZVBvc2l0aW9uKHtcclxuICAgICAgICAgICAgICAgIFthdHRyXTogdmFsdWVcclxuICAgICAgICAgICAgfSk7XHJcbiAgICAgICAgfVxyXG4gICAgICAgIGVsc2Uge1xyXG4gICAgICAgICAgICB0aGlzLkc2SXRlbS51cGRhdGUodGhpcy5wcm9wcyk7XHJcbiAgICAgICAgfVxyXG4gICAgfVxyXG5cclxuICAgIC8qKlxyXG4gICAgICog6I635Y+W5YyF5Zu055uSXHJcbiAgICAgKiBAcmV0dXJucyBcclxuICAgICAqL1xyXG4gICAgZ2V0Qm91bmQoKTogQm91bmRpbmdSZWN0IHtcclxuICAgICAgICByZXR1cm4gdGhpcy5HNkl0ZW0uZ2V0QkJveCgpO1xyXG4gICAgfVxyXG5cclxuICAgIC8qKlxyXG4gICAgICog6I635Y+W5Y+Y5o2i55+p6Zi1XHJcbiAgICAgKi9cclxuICAgIGdldE1hdHJpeCgpOiBudW1iZXJbXSB7XHJcbiAgICAgICAgaWYodGhpcy5HNkl0ZW0gPT09IG51bGwpIHJldHVybiBudWxsO1xyXG4gICAgICAgIGNvbnN0IE1hdDMgPSBTVi5HNi5VdGlsLm1hdDM7XHJcbiAgICAgICAgcmV0dXJuIE1hdDMuY3JlYXRlKCk7XHJcbiAgICB9XHJcblxyXG4gICAgZ2V0VHlwZSgpOiBzdHJpbmcge1xyXG4gICAgICAgIHJldHVybiB0aGlzLnR5cGU7XHJcbiAgICB9XHJcblxyXG4gICAgZ2V0SWQoKTogc3RyaW5nIHtcclxuICAgICAgICByZXR1cm4gdGhpcy5pZDtcclxuICAgIH1cclxufVxyXG5cclxuXHJcbmV4cG9ydCBjbGFzcyBFbGVtZW50IGV4dGVuZHMgTW9kZWwge1xyXG4gICAgc291cmNlRWxlbWVudDogU291cmNlRWxlbWVudDtcclxuICAgIHNvdXJjZUlkOiBzdHJpbmc7XHJcbiAgICBncm91cE5hbWU6IHN0cmluZztcclxuICAgIGxheW91dGVyTmFtZTogc3RyaW5nO1xyXG4gICAgZnJlZWQ6IGJvb2xlYW47XHJcbiAgICBtYXJrZXJzOiB7IFtrZXk6IHN0cmluZ106IE1hcmtlciB9O1xyXG4gICAgbGlua3M6IHtcclxuICAgICAgICBpbkRlZ3JlZTogTGlua1tdO1xyXG4gICAgICAgIG91dERlZ3JlZTogTGlua1tdO1xyXG4gICAgfTtcclxuXHJcbiAgICBjb25zdHJ1Y3RvcihpZDogc3RyaW5nLCB0eXBlOiBzdHJpbmcsIGdyb3VwOiBzdHJpbmcsIGxheW91dGVyOiBzdHJpbmcsIHNvdXJjZUVsZW1lbnQ6IFNvdXJjZUVsZW1lbnQpIHtcclxuICAgICAgICBzdXBlcihpZCwgdHlwZSk7XHJcblxyXG4gICAgICAgIGlmKHR5cGUgPT09IG51bGwpIHtcclxuICAgICAgICAgICAgcmV0dXJuO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgdGhpcy5ncm91cE5hbWUgPSBncm91cDtcclxuICAgICAgICB0aGlzLmxheW91dGVyTmFtZSA9IGxheW91dGVyO1xyXG4gICAgICAgIHRoaXMuZnJlZWQgPSBmYWxzZTtcclxuXHJcbiAgICAgICAgT2JqZWN0LmtleXMoc291cmNlRWxlbWVudCkubWFwKHByb3AgPT4ge1xyXG4gICAgICAgICAgICBpZihwcm9wICE9PSAnaWQnKSB7XHJcbiAgICAgICAgICAgICAgICB0aGlzW3Byb3BdID0gc291cmNlRWxlbWVudFtwcm9wXTtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgIH0pO1xyXG5cclxuICAgICAgICB0aGlzLnNvdXJjZUlkID0gdGhpcy5pZC5zcGxpdCgnLicpWzFdO1xyXG4gICAgICAgIHRoaXMuc291cmNlRWxlbWVudCA9IHNvdXJjZUVsZW1lbnQ7XHJcbiAgICAgICAgdGhpcy5tYXJrZXJzID0geyB9O1xyXG4gICAgICAgIHRoaXMubGlua3MgPSB7IGluRGVncmVlOiBbXSwgb3V0RGVncmVlOiBbXSB9O1xyXG4gICAgfVxyXG5cclxuICAgIHByb3RlY3RlZCBkZWZpbmVQcm9wcyhvcHRpb246IEVsZW1lbnRPcHRpb24pOiBHNk5vZGVNb2RlbCB7XHJcbiAgICAgICAgcmV0dXJuIHtcclxuICAgICAgICAgICAgLi4udGhpcy5zb3VyY2VFbGVtZW50LFxyXG4gICAgICAgICAgICBpZDogdGhpcy5pZCxcclxuICAgICAgICAgICAgeDogMCxcclxuICAgICAgICAgICAgeTogMCxcclxuICAgICAgICAgICAgcm90YXRpb246IG9wdGlvbi5yb3RhdGlvbiB8fCAwLFxyXG4gICAgICAgICAgICB0eXBlOiBvcHRpb24udHlwZSxcclxuICAgICAgICAgICAgc2l6ZTogb3B0aW9uLnNpemUgfHwgWzYwLCAzMF0sXHJcbiAgICAgICAgICAgIGFuY2hvclBvaW50czogb3B0aW9uLmFuY2hvclBvaW50cyxcclxuICAgICAgICAgICAgbGFiZWw6IG9wdGlvbi5sYWJlbCxcclxuICAgICAgICAgICAgc3R5bGU6IFV0aWwub2JqZWN0Q2xvbmU8U3R5bGU+KG9wdGlvbi5zdHlsZSksXHJcbiAgICAgICAgICAgIGxhYmVsQ2ZnOiBVdGlsLm9iamVjdENsb25lPEVsZW1lbnRMYWJlbE9wdGlvbj4ob3B0aW9uLmxhYmVsT3B0aW9ucyksXHJcbiAgICAgICAgICAgIGluZGV4Q2ZnOiBVdGlsLm9iamVjdENsb25lPEVsZW1lbnRJbmRleE9wdGlvbj4ob3B0aW9uLmluZGV4T3B0aW9ucyksXHJcbiAgICAgICAgICAgIG1hcmtlcklkOiBudWxsLFxyXG4gICAgICAgICAgICBTVkxheW91dGVyOiB0aGlzLmxheW91dGVyTmFt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XHJcblxyXG4gICAgICAgIHJldHVybiB7XHJcbiAgICAgICAgICAgIGlkOiB0aGlzLmlkLFxyXG4gICAgICAgICAgICB4OiAwLFxyXG4gICAgICAgICAgICB5OiAwLFxyXG4gICAgICAgICAgICByb3RhdGlvbjogMCxcclxuICAgICAgICAgICAgdHlwZTogb3B0aW9uLnR5cGUgfHwgJ21hcmtlcicsXHJcbiAgICAgICAgICAgIHNpemU6IG9wdGlvbi5zaXplIHx8IGRlZmF1bHRTaXplLFxyXG4gICAgICAgICAgICBhbmNob3JQb2ludHM6IG51bGwsXHJcbiAgICAgICAgICAgIGxhYmVsOiB0eXBlb2YgdGhpcy5sYWJlbCA9PT0gJ3N0cmluZyc/IHRoaXMubGFiZWw6IHRoaXMubGFiZWwuam9pbignLCAnKSxcclxuICAgICAgICAgICAgc3R5bGU6IFV0aWwub2JqZWN0Q2xvbmU8U3R5bGU+KG9wdGlvbi5zdHlsZSksXHJcbiAgICAgICAgICAgIGxhYmVsQ2ZnOiBVdGlsLm9iamVjdENsb25lPEVsZW1lbnRMYWJlbE9wdGlvbj4ob3B0aW9uLmxhYmVsT3B0aW9ucyksXHJcbiAgICAgICAgICAgIG1hcmtlcklkOiBudWxsLFxyXG4gICAgICAgICAgICBTVkxheW91dGVyOiBudWxsLFxyXG4gICAgICAgICAgICBTVk1vZGVsVHlwZTogJ21hcmtlcicsXHJcbiAgICAgICAgICAgIFNWTW9kZWxOYW1lOiB0aGlzLnR5cGVcclxuICAgICAgICB9O1xyXG4gICAgfVxyXG59O1xyXG5cclxuXHJcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///2\n") }, function (module, exports, __webpack_require__) { "use strict"; eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.Util = void 0;\r\nconst modelData_1 = __webpack_require__(2);\r\nconst StructV_1 = __webpack_require__(0);\r\nexports.Util = {\r\n generateId() {\r\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {\r\n let r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);\r\n return v.toString(16);\r\n });\r\n },\r\n objectClone(obj) {\r\n return obj ? JSON.parse(JSON.stringify(obj)) : {};\r\n },\r\n removeFromList(list, fn) {\r\n const res = [];\r\n for (let i = 0; i < list.length; i++) {\r\n if (fn(list[i])) {\r\n let removeItem = list.splice(i, 1);\r\n res.push(...removeItem);\r\n i--;\r\n }\r\n }\r\n return res;\r\n },\r\n assert(condition, errorText) {\r\n if (condition) {\r\n throw errorText;\r\n }\r\n },\r\n textParser(text) {\r\n let fieldReg = /\\[[^\\]]*\\]/g;\r\n if (fieldReg.test(text)) {\r\n let contents = text.match(fieldReg), values = contents.map(item => item.replace(/\\[|\\]/g, ''));\r\n return values;\r\n }\r\n else {\r\n return text;\r\n }\r\n },\r\n clamp(value, max, min) {\r\n if (value <= max && value >= min)\r\n return value;\r\n if (value > max)\r\n return max;\r\n if (value < min)\r\n return min;\r\n },\r\n convertGroupTable2ModelList(groupTable) {\r\n const list = [];\r\n groupTable.forEach(item => {\r\n list.push(...item.modelList);\r\n });\r\n return list;\r\n },\r\n convertG6Data(layoutGroup) {\r\n let nodes = [...layoutGroup.element, ...layoutGroup.marker], edges = layoutGroup.link;\r\n return {\r\n nodes: nodes.map(item => item.cloneProps()),\r\n edges: edges.map(item => item.cloneProps())\r\n };\r\n },\r\n convertModelList2G6Data(modelList) {\r\n return {\r\n nodes: (modelList.filter(item => !(item instanceof modelData_1.Link)).map(item => item.cloneProps())),\r\n edges: (modelList.filter(item => item instanceof modelData_1.Link).map(item => item.cloneProps()))\r\n };\r\n },\r\n calcRotateMatrix(matrix, rotation) {\r\n const Mat3 = StructV_1.SV.G6.Util.mat3;\r\n Mat3.rotate(matrix, matrix, rotation);\r\n return matrix;\r\n }\r\n};\r\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY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xuICAgIMKgwqDCoMKgwqDCoMKgwqBsZXTCoHIgPSBNYXRoLnJhbmRvbSgpKjE2fDAsIHYgPSBjID09wqAneCfCoD8gciA6IChyJjB4M3wweDgpO1xyXG4gICAgwqDCoMKgwqDCoMKgwqDCoHJldHVybsKgdi50b1N0cmluZygxNik7XHJcbiAgICDCoMKgwqDCoH0pO1xyXG4gICAgfSxcclxuXHJcbiAgICAvKipcclxuICAgICAqIOS5nuS4kOeJiOWvueixoeWFi+mahlxyXG4gICAgICogQHBhcmFtIG9iaiBcclxuICAgICAqL1xyXG4gICAgb2JqZWN0Q2xvbmU8VCBleHRlbmRzIE9iamVjdD4ob2JqOiBUKTogVCB7XHJcbiAgICAgICAgcmV0dXJuIG9iaj8gSlNPTi5wYXJzZShKU09OLnN0cmluZ2lmeShvYmopKTogeyB9O1xyXG4gICAgfSxcclxuXHJcbiAgICAvKipcclxuICAgICAqIOS7juWIl+ihqOS4reenu+mZpOWFg+e0oFxyXG4gICAgICogQHBhcmFtIGxpc3Qg56e76Zmk5YiX6KGoXHJcbiAgICAgKiBAcGFyYW0gZm4g56e76Zmk5Yik5pat6KeE5YiZXHJcbiAgICAgKi9cclxuICAgIHJlbW92ZUZyb21MaXN0PFQ+KGxpc3Q6IFRbXSwgZm46IChpdGVtOiBUKSA9PiBib29sZWFuKTogVFtdIHtcclxuICAgICAgICBjb25zdCByZXM6IFRbXSA9IFtdO1xyXG5cclxuICAgICAgICBmb3IobGV0IGkgPSAwOyBpIDwgbGlzdC5sZW5ndGg7IGkrKykge1xyXG4gICAgICAgICAgICBpZihmbihsaXN0W2ldKSkge1xyXG4gICAgICAgICAgICAgICAgbGV0IHJlbW92ZUl0ZW0gPSBsaXN0LnNwbGljZShpLCAxKTtcclxuICAgICAgICAgICAgICAgIHJlcy5wdXNoKC4uLnJlbW92ZUl0ZW0pO1xyXG4gICAgICAgICAgICAgICAgaS0tO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICByZXR1cm4gcmVzO1xyXG4gICAgfSxcclxuXHJcbiAgICAvKipcclxuICAgICAqIOaWreiogOWHveaVsFxyXG4gICAgICogQHBhcmFtIGFzc2VydEZuIFxyXG4gICAgICogQHBhcmFtIGVycm9yVGV4dCBcclxuICAgICAqL1xyXG4gICAgYXNzZXJ0KGNvbmRpdGlvbjogYm9vbGVhbiwgZXJyb3JUZXh0OiBzdHJpbmcpOiB2b2lkIHwgbmV2ZXIge1xyXG4gICAgICAgIGlmKGNvbmRpdGlvbikge1xyXG4gICAgICAgICAgICB0aHJvdyBlcnJvclRleHQ7XHJcbiAgICAgICAgfVxyXG4gICAgfSxcclxuXHJcbiAgICAvKipcclxuICAgICAqIOaWh+acrOino+aekFxyXG4gICAgICogQHBhcmFtIHRleHQgXHJcbiAgICAgKi9cclxuICAgIHRleHRQYXJzZXIodGV4dDogc3RyaW5nKTogc3RyaW5nW10gfCBzdHJpbmcge1xyXG4gICAgICAgIGxldCBmaWVsZFJlZyA9IC9cXFtbXlxcXV0qXFxdL2c7XHJcblxyXG4gICAgICAgIGlmKGZpZWxkUmVnLnRlc3QodGV4dCkpIHtcclxuICAgICAgICAgICAgbGV0IGNvbnRlbnRzID0gdGV4dC5tYXRjaChmaWVsZFJlZyksXHJcbiAgICAgICAgICAgICAgICB2YWx1ZXMgPSBjb250ZW50cy5tYXAoaXRlbSA9PiBpdGVtLnJlcGxhY2UoL1xcW3xcXF0vZywgJycpKTtcclxuICAgICAgICAgICAgcmV0dXJuIHZhbHVlcztcclxuICAgICAgICB9XHJcbiAgICAgICAgZWxzZSB7XHJcbiAgICAgICAgICAgIHJldHVybiB0ZXh0O1xyXG4gICAgICAgIH1cclxuICAgIH0sXHJcblxyXG4gICAgLyoqXHJcbiAgICAgKiDnibXliLbmn5DkuKrlgLxcclxuICAgICAqIEBwYXJhbSB2YWx1ZSBcclxuICAgICAqL1xyXG4gICAgY2xhbXAodmFsdWU6IG51bWJlciwgbWF4OiBudW1iZXIsIG1pbjogb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gcm90YXRpb24pO1xyXG4gICAgICAgIHJldHVybiBtYXRyaXg7XHJcbiAgICB9XHJcbn07XHJcblxyXG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///3\n") }, function (module, exports, __webpack_require__) { "use strict"; eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.Container = void 0;\r\nconst modelData_1 = __webpack_require__(2);\r\nconst StructV_1 = __webpack_require__(0);\r\nconst animation_1 = __webpack_require__(13);\r\nconst renderer_1 = __webpack_require__(14);\r\nclass Container {\r\n constructor(engine, DOMContainer, g6Options = {}) {\r\n this.afterAppendModelsCallbacks = [];\r\n this.afterRemoveModelsCallbacks = [];\r\n this.engine = engine;\r\n this.DOMContainer = DOMContainer;\r\n this.animationsOptions = engine.animationOptions;\r\n this.interactionOptions = engine.interactionOptions;\r\n this.prevModelList = [];\r\n const g6Plugins = [];\r\n if (g6Options.tooltip) {\r\n const tooltip = new StructV_1.SV.G6.Tooltip({\r\n offsetX: 10,\r\n offsetY: 20,\r\n shouldBegin(event) {\r\n return event.item.getModel().SVModelType === 'element';\r\n },\r\n getContent: event => this.getTooltipContent(event.item.SVModel, { address: 'sourceId', data: 'data' }),\r\n itemTypes: ['node']\r\n });\r\n g6Plugins.push(tooltip);\r\n }\r\n this.renderer = new renderer_1.Renderer(engine, DOMContainer, {\r\n fitCenter: g6Options.fitCenter,\r\n modes: {\r\n default: this.initBehaviors(this.engine.optionsTable)\r\n },\r\n plugins: g6Plugins\r\n });\r\n this.afterInitRenderer();\r\n }\r\n getTooltipContent(model, items) {\r\n const wrapper = document.createElement('div');\r\n Object.keys(items).map(key => {\r\n let value = model[items[key]];\r\n if (value !== undefined && value !== null) {\r\n let item = document.createElement('div');\r\n item.innerHTML = `${key}:${value}`;\r\n wrapper.appendChild(item);\r\n }\r\n });\r\n return wrapper;\r\n }\r\n initBehaviors(optionsTable) {\r\n return ['drag-canvas', 'zoom-canvas'];\r\n }\r\n getAppendModels(prevList, list) {\r\n return list.filter(item => !prevList.find(n => n.id === item.id));\r\n }\r\n getRemoveModels(prevList, list) {\r\n return prevList.filter(item => !list.find(n => n.id === item.id));\r\n }\r\n findReTargetMarkers(list) {\r\n let prevMarkers = this.prevModelList.filter(item => item instanceof modelData_1.Marker), markers = list.filter(item => item instanceof modelData_1.Marker);\r\n return markers.filter(item => prevMarkers.find(prevItem => {\r\n return prevItem.id === item.id && prevItem.target.id !== item.target.id;\r\n }));\r\n }\r\n findLabelChangeModels(list) {\r\n let labelChangeModels = [];\r\n list.forEach(item => {\r\n const prevItem = this.prevModelList.find(prevItem => prevItem.id === item.id);\r\n if (prevItem === undefined) {\r\n return;\r\n }\r\n const prevLabel = prevItem.get('label'), label = item.get('label');\r\n if (prevLabel !== label) {\r\n labelChangeModels.push(item);\r\n }\r\n });\r\n return labelChangeModels;\r\n }\r\n handleAppendModels(appendModels) {\r\n let counter = 0;\r\n appendModels.forEach(item => {\r\n animation_1.Animations.animate_append(item, {\r\n duration: this.animationsOptions.duration,\r\n timingFunction: this.animationsOptions.timingFunction,\r\n callback: () => {\r\n counter++;\r\n if (counter === appendModels.length) {\r\n this.afterAppendModelsCallbacks.map(item => item(appendModels));\r\n }\r\n }\r\n });\r\n });\r\n }\r\n handleRemoveModels(removeModels) {\r\n let counter = 0;\r\n removeModels.forEach(item => {\r\n animation_1.Animations.animate_remove(item, {\r\n duration: this.animationsOptions.duration,\r\n timingFunction: this.animationsOptions.timingFunction,\r\n callback: () => {\r\n if (item.isLeak === false) {\r\n this.renderer.removeModel(item);\r\n item.renderG6Item = item.G6Item = null;\r\n }\r\n counter++;\r\n if (counter === removeModels.length) {\r\n this.afterRemoveModelsCallbacks.map(item => item(removeModels));\r\n }\r\n }\r\n });\r\n });\r\n }\r\n handleChangeModels(models) { }\r\n afterInitRenderer() { }\r\n afterAppendModels(callback) {\r\n this.afterAppendModelsCallbacks.push(callback);\r\n }\r\n afterRemoveModels(callback) {\r\n this.afterRemoveModelsCallbacks.push(callback);\r\n }\r\n render(modelList) {\r\n const appendModels = this.getAppendModels(this.prevModelList, modelList), removeModels = this.getRemoveModels(this.prevModelList, modelList), changeModels = [\r\n ...appendModels,\r\n ...this.findLabelChangeModels(modelList),\r\n ...this.findReTargetMarkers(modelList)\r\n ];\r\n this.renderer.render(modelList, removeModels);\r\n this.handleAppendModels(appendModels);\r\n this.handleRemoveModels(removeModels);\r\n this.handleChangeModels(changeModels);\r\n if (this.renderer.getIsFirstRender()) {\r\n this.renderer.setIsFirstRender(false);\r\n }\r\n this.prevModelList = modelList;\r\n }\r\n getG6Instance() {\r\n return this.renderer.getG6Instance();\r\n }\r\n destroy() {\r\n this.renderer.destroy();\r\n this.DOMContainer = null;\r\n this.prevModelList = [];\r\n this.animationsOptions = this.interactionOptions = null;\r\n }\r\n}\r\nexports.Container = Container;\r\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvVmlldy9jb250YWluZXIvY29udGFpbmVyLnRzP2MzNDkiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQ0EsMkNBQXNEO0FBRXRELHlDQUFtQztBQUNuQyw0Q0FBMEM7QUFDMUMsMkNBQW1EO0FBS25ELE1BQWEsU0FBUztJQVlsQixZQUFZLE1BQWMsRUFBRSxZQUF5QixFQUFFLFlBQW9DLEVBQUU7UUFIbkYsK0JBQTBCLEdBQWtDLEVBQUUsQ0FBQztRQUMvRCwrQkFBMEIsR0FBa0MsRUFBRSxDQUFDO1FBR3JFLElBQUksQ0FBQyxNQUFNLEdBQUcsTUFBTSxDQUFDO1FBQ3JCLElBQUksQ0FBQyxZQUFZLEdBQUcsWUFBWSxDQUFDO1FBQ2pDLElBQUksQ0FBQyxpQkFBaUIsR0FBRyxNQUFNLENBQUMsZ0JBQWdCLENBQUM7UUFDakQsSUFBSSxDQUFDLGtCQUFrQixHQUFHLE1BQU0sQ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ICAgICAgc2hvdWxkQmVnaW4oZXZlbnQpIHtcclxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gZXZlbnQuaXRlbS5nZXRNb2RlbCgpLlNWTW9kZWxUeXBlID09PSAnZWxlbWVudCc7XHJcbiAgICAgICAgICAgICAgICB9LFxyXG4gICAgICAgICAgICAgICAgZ2V0Q29udGVudDogZXZlbnQgPT4gdGhpcy5nZXRUb29sdGlwQ29udGVudChldmVudC5pdGVtLlNWTW9kZWwsIHsgYWRkcmVzczogJ3NvdXJjZUlkJywgZGF0YTogJ2RhdGEnIH0pLFxyXG4gICAgICAgICAgICAgICAgaXRlbVR5cGVzOiBbJ25vZGUnXVxyXG4gICAgICAgICAgICB9KTtcclxuXHJcbiAgICAgICAgICAgIGc2UGx1Z2lucy5wdXNoKHRvb2x0aXApO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgdGhpcy5yZW5kZXJlciA9IG5ldyBSZW5kZXJlcihlbmdpbmUsIERPTUNvbnRhaW5lciwge1xyXG4gICAgICAgICAgICBmaXRDZW50ZXI6IGc2T3B0aW9ucy5maXRDZW50ZXIsXHJcbiAgICAgICAgICAgIG1vZGVzOiB7XHJcbiAgICAgICAgICAgICAgICBkZWZhdWx0OiB0aGlzLmluaXRCZWhhdmlvcnModGhpcy5lbmdpbmUub3B0aW9uc1RhYmxlKVxyXG4gICAgICAgICAgICB9LFxyXG4gICAgICAgICAgICBwbHVnaW5zOiBnNlBsdWdpbnNcclxuICAgICAgICB9KTtcclxuXHJcbiAgICAgICAgdGhpcy5hZnRlckluaXRSZW5kZXJlcigpO1xyXG4gICAgfVxyXG5cclxuXHJcbiAgICBwcml2YXRlIGdldFRvb2x0aXBDb250ZW50KG1vZGVsOiBNb2RlbCwgaXRlbXM6IHsgW2tleTogc3RyaW5nXTogc3RyaW5nIH0pOiBIVE1MRWxlbWVudCB7XHJcbiAgICAgICAgY29uc3Qgd3JhcHBlciA9IGRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoJ2RpdicpO1xyXG4gICAgICAgXHJcblxyXG4gICAgICAgIE9iamVjdC5rZXlzKGl0ZW1zKS5tYXAoa2V5ID0+IHtcclxuICAgICAgICAgICAgbGV0IHZhbHVlID0gbW9kZWxbaXRlbXNba2V5XV07XHJcbiAgICAgICAgICAgIGlmICh2YWx1ZSAhPT0gdW5kZWZpbmVkICYmIHZhbHVlICE9PSBudWxsKSB7XHJcbiAgICAgICAgICAgICAgICBsZXQgaXRlbSA9IGRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoJ2RpdicpO1xyXG4gICAgICAgICAgICAgICAgaXRlbS5pbm5lckhUTUwgPSBgJHtrZXl977yaJHt2YWx1ZX1gO1xyXG4gICAgICAgICAgICAgICAgd3JhcHBlci5hcHBlbmRDaGlsZChpdGVtKTtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgIH0pO1xyXG5cclxuICAgICAgICByZXR1cm4gd3JhcHBlcjtcclxuICAgIH1cclxuXHJcbiAgICAvKipcclxuICAgICAqIOWIneWni+WMluS6pOS6kuihjOS4ulxyXG4gICAgICogQHBhcmFtIG9wdGlvbnNUYWJsZVxyXG4gICAgICogQHJldHVybnMgXHJcbiAgICAgKi9cclxuICAgIHByb3RlY3RlZCBpbml0QmVoYXZpb3JzKG9wdGlvbnNUYWJsZTogeyBba2V5OiBzdHJpbmddOiBMYXlvdXRHcm91cE9wdGlvbnMgfSk6IGc2QmVoYXZpb3JbXSB7XHJcbiAgICAgICAgcmV0dXJuIFsnZHJhZy1jYW52YXMnLCAnem9vbS1jYW52YXMnXTtcclxuICAgIH1cclxuXHJcbiAgICAvKipcclxuICAgICAqIOWvueavlOS4iuS4gOasoeWSjOivpeasoSBtb2RlbExpc3Qg5om+5Ye65paw5re75Yqg55qE6IqC54K55ZKM6L65XHJcbiAgICAgKiBAcGFyYW0gcHJldkxpc3RcclxuICAgICAqIEBwYXJhbSBsaXN0XHJcbiAgICAgKi9cclxuICAgIHByb3RlY3RlZCBnZXRBcHBlbmR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gICAgICB9KTtcclxuXHJcbiAgICAgICAgcmV0dXJuIGxhYmVsQ2hhbmdlTW9kZWxzO1xyXG4gICAgfVxyXG5cclxuICAgIC8qKlxyXG4gICAgICog5aSE55CG5paw5aKe55qEIEc2SXRlbe+8iOS4u+imgeaYr+WKqOeUu++8iVxyXG4gICAgICogQHBhcmFtIGFwcGVuZERhdGEgXHJcbiAgICAgKi9cclxuICAgIHByb3RlY3RlZCBoYW5kbGVBcHBlbmRNb2RlbHMoYXBwZW5kTW9kZWxzOiBNb2RlbFtdKSB7XHJcbiAgICAgICAgbGV0IGNvdW50ZXIgPSAwO1xyXG5cclxuICAgICAgICBhcHBlbmRNb2RlbHMuZm9yRWFjaChpdGVtID0+IHtcclxuICAgICAgICAgICAgQW5pbWF0aW9ucy5hbmltYXRlX2FwcGVuZChpdGVtLCB7XHJcbiAgICAgICAgICAgICAgICBkdXJhdGlvbjogdGhpcy5hbmltYXRpb25zT3B0aW9ucy5kdXJhdGlvbixcclxuICAgICAgICAgICAgICAgIHRpbWluZ0Z1bmN0aW9uOiB0aGlzLmFuaW1hdGlvbnNPcHRpb25zLnRpbWluZ0Z1bmN0aW9uLFxyXG4gICAgICAgICAgICAgICAgY2FsbGJhY2s6ICgpID0+IHtcclxuICAgICAgICAgICAgICAgICAgICBjb3VudGVyKys7XHJcblxyXG4gICAgICAgICAgICAgICAgICAgIGlmIChjb3VudGVyID09PSBhcHBlbmRNb2RlbHMubGVuZ3RoKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuYWZ0ZXJBcHBlbmRNb2RlbHNDYWxsYmFja3MubWFwKGl0ZW0gPT4gaXRlbShhcHBlbmRNb2RlbHMpKTtcclxuICAgICAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIH0pO1xyXG4gICAgICAgIH0pO1xyXG4gICAgfVxyXG5cclxuICAgIC8qKlxyXG4gICAgICog5aSE55CG6KKr56e76Zmk77yI5Lmf5bCx5piv5rOE6Zyy77yJ55qEIEc2SXRlbe+8iOS4u+imgeaYr+WKqOeUu++8iVxyXG4gICAgICogQHBhcmFtIHJlbW92ZURhdGEgXHJcbiAgICAgKi9cclxuICAgIHByb3RlY3RlZCBoYW5kbGVSZW1vdmVNb2RlbHMocmVtb3ZlTW9kZWxzOiBNb2RlbFtdKSB7XHJcbiAgICAgICAgbGV0IGNvdW50ZXIgPSAwO1xyXG5cclxuICAgICAgICByZW1vdmVNb2RlbHMuZm9yRWFjaChpdGVtID0+IHtcclxuICAgICAgICAgICAgQW5pbWF0aW9ucy5hbmltYXRlX3JlbW92ZShpdGVtLCB7XHJcbiAgICAgICAgICAgICAgICBkdXJhdGlvbjogdGhpcy5hbmltYXRpb25zT3B0aW9ucy5kdXJhdGlvbixcclxuICAgICAgICAgICAgICAgIHRpbWluZ0Z1bmN0aW9uOiB0aGlzLmFuaW1hdGlvbnNPcHRpb25zLnRpbWluZ0Z1bmN0aW9uLFxyXG4gICAgICAgICAgICAgICAgY2FsbGJhY2s6ICgpID0+IHtcclxuICAgICAgICAgICAgICAgICAgICBpZiAoaXRlbS5pc0xlYWsgPT09IGZhbHNlKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMucmVuZGVyZXIucmVtb3ZlTW9kZWwoaXRlbSk7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGl0ZW0ucmVuZGVyRzZJdGVtID0gaXRlbS5HNkl0ZW0gPSBudWxsO1xyXG4gICAgICAgICAgICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICAgICAgICAgICAgY291bnRlcisrO1xyXG5cclxuICAgICAgICAgICAgICAgICAgICBpZiAoY291bnRlciA9PT0gcmVtb3ZlTW9kZWxzLmxlbmd0aCkge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmFmdGVyUmVtb3ZlTW9kZWxzQ2FsbGJhY2tzLm1hcChpdGVtID0+IGl0ZW0ocmVtb3ZlTW9kZWxzKSk7XHJ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Rmlyc3RSZW5kZXIoKSkge1xyXG4gICAgICAgICAgICB0aGlzLnJlbmRlcmVyLnNldElzRmlyc3RSZW5kZXIoZmFsc2UpO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgdGhpcy5wcmV2TW9kZWxMaXN0ID0gbW9kZWxMaXN0O1xyXG4gICAgfVxyXG5cclxuICAgIC8qKlxyXG4gICAgICog6I635Y+WIGc2IOWunuS+i1xyXG4gICAgICovXHJcbiAgICBwdWJsaWMgZ2V0RzZJbnN0YW5jZSgpIHtcclxuICAgICAgICByZXR1cm4gdGhpcy5yZW5kZXJlci5nZXRHNkluc3RhbmNlKCk7XHJcbiAgICB9XHJcblxyXG4gICAgLyoqXHJcbiAgICAgKiDplIDmr4FcclxuICAgICAqL1xyXG4gICAgcHVibGljIGRlc3Ryb3koKSB7XHJcbiAgICAgICAgdGhpcy5yZW5kZXJlci5kZXN0cm95KCk7XHJcbiAgICAgICAgdGhpcy5ET01Db250YWluZXIgPSBudWxsO1xyXG4gICAgICAgIHRoaXMucHJldk1vZGVsTGlzdCA9IFtdO1xyXG4gICAgICAgIHRoaXMuYW5pbWF0aW9uc09wdGlvbnMgPSB0aGlzLmludGVyYWN0aW9uT3B0aW9ucyA9IG51bGw7XHJcbiAgICB9XHJcbn1cclxuXHJcblxyXG4vLyAtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLVxyXG5cclxuXHJcblxyXG5cclxuXHJcblxyXG5cclxuXHJcbiJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///4\n") }, function (module, exports, __webpack_require__) { "use strict"; eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.Group = void 0;\r\nconst util_1 = __webpack_require__(3);\r\nconst boundingRect_1 = __webpack_require__(6);\r\nclass Group {\r\n constructor(...arg) {\r\n this.models = [];\r\n this.id = util_1.Util.generateId();\r\n if (arg) {\r\n this.add(...arg);\r\n }\r\n }\r\n add(...arg) {\r\n arg.map(ele => {\r\n this.models.push(ele);\r\n });\r\n }\r\n remove(model) {\r\n util_1.Util.removeFromList(this.models, item => item.id === model.id);\r\n }\r\n getBound() {\r\n return this.models.length ?\r\n boundingRect_1.Bound.union(...this.models.map(item => item.getBound())) :\r\n { x: 0, y: 0, width: 0, height: 0 };\r\n }\r\n getPaddingBound(padding = 0) {\r\n const bound = this.getBound();\r\n bound.x -= padding;\r\n bound.y -= padding;\r\n bound.width += padding * 2;\r\n bound.height += padding * 2;\r\n return bound;\r\n }\r\n translate(dx, dy) {\r\n this.models.map(item => {\r\n if (item instanceof Group) {\r\n item.translate(dx, dy);\r\n }\r\n else {\r\n item.set('x', item.get('x') + dx);\r\n item.set('y', item.get('y') + dy);\r\n }\r\n });\r\n }\r\n clear() {\r\n this.models.length = 0;\r\n }\r\n}\r\nexports.Group = Group;\r\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvQ29tbW9uL2dyb3VwLnRzPzliZjMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsc0NBQThCO0FBQzlCLDhDQUFxRDtBQVFyRCxNQUFhLEtBQUs7SUFJZCxZQUFZLEdBQUcsR0FBeUI7UUFGaEMsV0FBTSxHQUF5QixFQUFFLENBQUM7UUFHdEMsSUFBSSxDQUFDLEVBQUUsR0FBRyxXQUFJLENBQUMsVUFBVSxFQUFFLENBQUM7UUFFNUIsSUFBRyxHQUFHLEVBQUU7WUFDSixJQUFJLENBQUMsR0FBRyxDQUFDLEdBQUcsR0FBRyxDQUFDLENBQUM7U0FDcEI7SUFDTCxDQUFDO0lBTUQsR0FBRyxDQUFDLEdBQUcsR0FBeUI7UU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eyB4OiAwLCB5OiAwLCB3aWR0aDogMCwgaGVpZ2h0OiAwIH07XHJcbiAgICB9XHJcblxyXG4gICAgLyoqXHJcbiAgICAgKiDojrflj5blhbfmnInkuIDlrprlhoXovrnot53nmoTljIXlm7Tnm5JcclxuICAgICAqIEBwYXJhbSBwYWRkaW5nIFxyXG4gICAgICogQHJldHVybnMgXHJcbiAgICAgKi9cclxuICAgIGdldFBhZGRpbmdCb3VuZChwYWRkaW5nOiBudW1iZXIgPSAwKTogQm91bmRpbmdSZWN0IHtcclxuICAgICAgICBjb25zdCBib3VuZCA9IHRoaXMuZ2V0Qm91bmQoKTtcclxuXHJcbiAgICAgICAgYm91bmQueCAtPSBwYWRkaW5nO1xyXG4gICAgICAgIGJvdW5kLnkgLT0gcGFkZGluZztcclxuICAgICAgICBib3VuZC53aWR0aCArPSBwYWRkaW5nICogMjtcclxuICAgICAgICBib3VuZC5oZWlnaHQgKz0gcGFkZGluZyAqIDI7XHJcblxyXG4gICAgICAgIHJldHVybiBib3VuZDtcclxuICAgIH1cclxuXHJcbiAgICAvKipcclxuICAgICAqIOS9jeenu2dyb3VwXHJcbiAgICAgKiBAcGFyYW0gZHggXHJcbiAgICAgKiBAcGFyYW0gZHkgXHJcbiAgICAgKi9cclxuICAgIHRyYW5zbGF0ZShkeDogbnVtYmVyLCBkeTogbnVtYmVyKSB7XHJcbiAgICAgICAgdGhpcy5tb2RlbHMubWFwKGl0ZW0gPT4ge1xyXG4gICAgICAgICAgICBpZihpdGVtIGluc3RhbmNlb2YgR3JvdXApIHtcclxuICAgICAgICAgICAgICAgIGl0ZW0udHJhbnNsYXRlKGR4LCBkeSk7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgZWxzZSB7XHJcbiAgICAgICAgICAgICAgICBpdGVtLnNldCgneCcsIGl0ZW0uZ2V0KCd4JykgKyBkeCk7XHJcbiAgICAgICAgICAgICAgICBpdGVtLnNldCgneScsIGl0ZW0uZ2V0KCd5JykgKyBkeSk7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9KTtcclxuICAgIH1cclxuXHJcbiAgICAvKipcclxuICAgICAqIOa4heepumdyb3VwXHJcbiAgICAgKi9cclxuICAgIGNsZWFyKCkge1xyXG4gICAgICAgIHRoaXMubW9kZWxzLmxlbmd0aCA9IDA7XHJcbiAgICB9XHJcbn0iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///5\n") }, function (module, exports, __webpack_require__) { "use strict"; eval('\r\nObject.defineProperty(exports, "__esModule", { value: true });\r\nexports.Bound = void 0;\r\nconst vector_1 = __webpack_require__(7);\r\nexports.Bound = {\r\n fromPoints(points) {\r\n let maxX = -Infinity, minX = Infinity, maxY = -Infinity, minY = Infinity;\r\n points.map(item => {\r\n if (item[0] > maxX)\r\n maxX = item[0];\r\n if (item[0] < minX)\r\n minX = item[0];\r\n if (item[1] > maxY)\r\n maxY = item[1];\r\n if (item[1] < minY)\r\n minY = item[1];\r\n });\r\n return {\r\n x: minX,\r\n y: minY,\r\n width: maxX - minX,\r\n height: maxY - minY\r\n };\r\n },\r\n toPoints(bound) {\r\n return [\r\n [bound.x, bound.y],\r\n [bound.x + bound.width, bound.y],\r\n [bound.x + bound.width, bound.y + bound.height],\r\n [bound.x, bound.y + bound.height]\r\n ];\r\n },\r\n union(...arg) {\r\n return arg.length > 1 ?\r\n arg.reduce((total, cur) => {\r\n let minX = total.x < cur.x ? total.x : cur.x, maxX = total.x + total.width < cur.x + cur.width ? cur.x + cur.width : total.x + total.width, minY = total.y < cur.y ? total.y : cur.y, maxY = total.y + total.height < cur.y + cur.height ? cur.y + cur.height : total.y + total.height;\r\n return {\r\n x: minX,\r\n y: minY,\r\n width: maxX - minX,\r\n height: maxY - minY\r\n };\r\n }) : arg[0];\r\n },\r\n intersect(b1, b2) {\r\n let x, y, maxX, maxY, overlapsX, overlapsY;\r\n if (b1.x < b2.x + b2.width && b1.x + b1.width > b2.x) {\r\n x = b1.x < b2.x ? b2.x : b1.x;\r\n maxX = b1.x + b1.width;\r\n overlapsX = maxX - x;\r\n }\r\n if (b1.y < b2.y + b2.height && b1.y + b1.height > b2.y) {\r\n y = b1.y < b2.y ? b2.y : b1.y;\r\n maxY = b1.y + b1.height < b2.y + b2.height ? b1.y + b1.height : b2.y + b2.height;\r\n overlapsY = maxY - y;\r\n }\r\n if (!overlapsX || !overlapsY)\r\n return null;\r\n return {\r\n x,\r\n y,\r\n width: overlapsX,\r\n height: overlapsY\r\n };\r\n },\r\n translate(bound, dx, dy) {\r\n bound.x += dx;\r\n bound.y += dy;\r\n },\r\n rotation(bound, rot) {\r\n let cx = bound.x + bound.width / 2, cy = bound.y + bound.height / 2;\r\n return exports.Bound.fromPoints(exports.Bound.toPoints(bound).map(item => vector_1.Vector.rotation(rot, item, [cx, cy])));\r\n },\r\n isOverlap(b1, b2) {\r\n let maxX1 = b1.x + b1.width, maxY1 = b1.y + b1.height, maxX2 = b2.x + b2.width, maxY2 = b2.y + b2.height;\r\n if (b1.x < maxX2 && b2.x < maxX1 && b1.y < maxY2 && b2.y < maxY1) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n};\r\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvQ29tbW9uL2JvdW5kaW5nUmVjdC50cz80OGVhIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLHdDQUFrQztBQWNyQixhQUFLLEdBQUc7SUFNakIsVUFBVSxDQUFDLE1BQStCO1FBQ3RDLElBQUksSUFBSSxHQUFHLENBQUMsUUFBUSxFQUNoQixJQUFJLEdBQUcsUUFBUSxFQUNmLElBQUksR0FBRyxDQUFDLFFBQVEsRUFDaEIsSUFBSSxHQUFHLFFBQVEsQ0FBQztRQUVwQixNQUFNLENBQUMsR0FBRyxDQUFDLElBQUksQ0FBQyxFQUFFO1lBQ2QsSUFBRyxJQUFJLEN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XG5leHBvcnQgY29uc3QgQm91bmQgPSB7XHJcblxyXG4gICAgLyoqXHJcbiAgICAgKiDku47ngrnpm4bnlJ/miJDljIXlm7Tnm5JcclxuICAgICAqIEBwYXJhbSBwb2ludHMgXHJcbiAgICAgKi9cclxuICAgIGZyb21Qb2ludHMocG9pbnRzOiBBcnJheTxbbnVtYmVyLCBudW1iZXJdPik6IEJvdW5kaW5nUmVjdCB7XHJcbiAgICAgICAgbGV0IG1heFggPSAtSW5maW5pdHksXHJcbiAgICAgICAgICAgIG1pblggPSBJbmZpbml0eSxcclxuICAgICAgICAgICAgbWF4WSA9IC1JbmZpbml0eSxcclxuICAgICAgICAgICAgbWluWSA9IEluZmluaXR5O1xyXG5cclxuICAgICAgICBwb2ludHMubWFwKGl0ZW0gPT4ge1xyXG4gICAgICAgICAgICBpZihpdGVtWzBdID4gbWF4WCkgbWF4WCA9IGl0ZW1bMF07XHJcbiAgICAgICAgICAgIGlmKGl0ZW1bMF0gPCBtaW5YKSBtaW5YID0gaXRlbVswXTtcclxuICAgICAgICAgICAgaWYoaXRlbVsxXSA+IG1heFkpIG1heFkgPSBpdGVtWzFdO1xyXG4gICAgICAgICAgICBpZihpdGVtWzFdIDwgbWluWSkgbWluWSA9IGl0ZW1bMV07XHJcbiAgICAgICAgfSk7XHJcblxyXG4gICAgICAgIHJldHVybiB7XHJcbiAgICAgICAgICAgIHg6IG1pblgsXHJcbiAgICAgICAgICAgIHk6IG1pblksXHJcbiAgICAgICAgICAgIHdpZHRoOiBtYXhYIC0gbWluWCxcclxuICAgICAgICAgICAgaGVpZ2h0OiBtYXhZIC0gbWluWVxyXG4gICAgICAgIH07XHJcbiAgICB9LFxyXG5cclxuICAgIC8qKlxyXG4gICAgICog55Sx5YyF5Zu055uS6L2s5YyW5Li65Zub5Liq6aG254K577yI6aG65pe26ZKI77yJXHJcbiAgICAgKiBAcGFyYW0gYm91bmQgXHJcbiAgICAgKi9cclxuICAgIHRvUG9pbnRzKGJvdW5kOiBCb3VuZGluZ1JlY3QpOiBBcnJheTxbbnVtYmVyLCBudW1iZXJdPiB7XHJcbiAgICAgICAgcmV0dXJuIFtcclxuICAgICAgICAgICAgW2JvdW5kLngsIGJvdW5kLnldLFxyXG4gICAgICAgICAgICBbYm91bmQueCArIGJvdW5kLndpZHRoLCBib3VuZC55XSxcclxuICAgICAgICAgICAgW2JvdW5kLnggKyBib3VuZC53aWR0aCwgYm91bmQueSArIGJvdW5kLmhlaWdodF0sXHJcbiAgICAgICAgICAgIFtib3VuZC54LCBib3VuZC55ICsgYm91bmQuaGVpZ2h0XVxyXG4gICAgICAgIF07XHJcbiAgICB9LFxyXG5cclxuICAgIC8qKlxyXG4gICAgICog5rGC5YyF5Zu055uS5bm26ZuGXHJcbiAgICAgKiBAcGFyYW0gYXJnIFxyXG4gICAgICovXHJcbiAgICB1bmlvbiguLi5hcmc6IEJvdW5kaW5nUmVjdFtdKTogQm91bmRpbmdSZWN0IHtcclxuICAgICAgICByZXR1cm4gYXJnLmxlbmd0aCA+IDE/IFxyXG4gICAgICAgICAgICBhcmcucmVkdWNlKCh0b3RhbCwgY3VyKSA9PiB7XHJcbiAgICAgICAgICAgIGxldCBtaW5YID0gdG90YWwueCA8IGN1ci54PyB0b3RhbC54OiBjdXIueCxcclxuICAgICAgICAgICAgICAgIG1heFggPSB0b3RhbC54ICsgdG90YWwud2lkdGggPCBjdXIueCArIGN1ci53aWR0aD8gY3VyLnggKyBjdXIud2lkdGg6IHRvdGFsLnggKyB0b3RhbC53aWR0aCxcclxuICAgICAgICAgICAgICAgIG1pblkgPSB0b3RhbC55IDwgY3VyLnk/IHRvdGFsLnk6IGN1ci55LFxyXG4gICAgICAgICAgICAgICAgbWF4WSA9IHRvdGFsLnkgKyB0b3RhbC5oZWlnaHQgPCBjdXIueSArIGN1ci5oZWlnaHQ/IGN1ci55ICsgY3VyLmhlaWdodDogdG90YWwueSArIHRvdGFsLmhlaWdodDtcclxuXHJcbiAgICAgICAgICAgIHJldHVybiB7XHJcbiAgICAgICAgICAgICAgICB4OiBtaW5YLFxyXG4gICAgICAgICAgICAgICAgeTogbWluWSxcclxuICAgICAgICAgICAgICAgIHdpZHRoOiBtYXhYIC0gbWluWCxcclxuICAgICAgICAgICAgICAgIGhlaWdodDogbWF4WSAtIG1pbllcclxuICAgICAgICAgICAgfTtcclxuICAgICAgICB9KTogYXJnWzBdO1xyXG4gICAgfSxcclxuXHJcbiAgICAvKipcclxuICAgICAqIOWMheWbtOebkuaxguS6pOmbhlxyXG4gICAgICogQHBhcmFtIGIxIFxyXG4gICAgICogQHBhcmFtIGIyIFxyXG4gICAgICovXHJcbiAgICBpbnRlcnNlY3QoYjE6IEJvdW5kaW5nUmVjdCwgYjI6IEJvdW5kaW5nUmVjdCk6IEJvdW5kaW5nUmVjdCB7XHJcbiAgICAgICAgbGV0IHgsIHksIFxyXG4gICAgICAgICAgICBtYXhYLCBtYXhZLFxyXG4gICAgICAgICAgICBvdmVybGFwc1gsXHJcbiAgICAgICAgICAgIG92ZXJsYXBzWTtcclxuXHJcbiAgICAgICAgaWYoYjEueCA8IGIyLnggKyBiMi53aWR0aCAmJiBiMS54ICsgYjEud2lkdGggPiBiMi54KSB7XHJcbiAgICAgICAgICAgIHggPSBiMS54IDwgYjIueD8gYjIueDogYjEueDtcclxuICAgICAgICAgICAgLy8gbWF4WCA9IGIxLnggKyBiMS53aWR0aCA8IGIyLnggKyBiMi53aWR0aD8gYjEueCArIGIxLndpZHRoOiBiMi54ICsgYjIud2lkdGg7XHJcbiAgICAgICAgICAgIG1heFggPSBiMS54ICsgYjEud2lkdGg7XHJcbiAgICAgICAgICAgIG92ZXJsYXBzWCA9IG1heFggLSB4O1xyXG4gICAgICAgIH1cclxuICAgICAgICBcclxuICAgICAgICBpZihiMS55IDwgYjIueSArIGIyLmhlaWdodCAmJiBiMS55ICsgYjEuaGVpZ2h0ID4gYjIueSkge1xyXG4gICAgICAgICAgICB5ID0gYjEueSA8IGIyLnk/IGIyLnk6IGIxLnk7XHJcbiAgICAgICAgICAgIG1heFkgPSBiMS55ICsgYjEuaGVpZ2h0IDwgYjIueSArIGIyLmhlaWdodD8gYjEueSArIGIxLmhlaWdodDogYjIueSArIGIyLmhlaWdodDtcclxuICAgICAgICAgICAgb3ZlcmxhcHNZID0gbWF4WSAtIHk7XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICBpZighb3ZlcmxhcHNYIHx8ICFvdmVybGFwc1kpIHJldHVybiBudWxsO1xyXG5cclxuICAgICAgICByZXR1cm4ge1xyXG4gICAgICAgICAgICB4LFxyXG4gICAgICAgICAgICB5LFxyXG4gICAgICAgICAgICB3aWR0aDogb3ZlcmxhcHNYLFxyXG4gICAgICAgICAgICBoZWlnaHQ6IG92ZXJsYXBzWVxyXG4gICAgICAgIH07XHJcbiAgICB9LFxyXG5cclxuICAgIC8qKlxyXG4gICAgICog5L2N56e75YyF5Zu055uSXHJcbiAgICAgKiBAcGFyYW0gYm91bmRcclxuICAgICAqIEBwYXJhbSBkeCBcclxuICAgICAqIEBwYXJhbSBkeSBcclxuICAgICAqL1xyXG4gICAgdHJhbnNsYXRlKGJvdW5kOiBCb3VuZGluZ1JlY3QsIGR4OiBudW1iZXIsIGR5OiBudW1iZXIpIHtcclxuICAgICAgICBib3VuZC54ICs9IGR4O1xyXG4gICAgICAgIGJvdW5kLnkgKz0gZHk7XHJcbiAgICB9LFxyXG5cclxuICAgIC8qKlxyXG4gICAgICog5rGC5YyF5Zu055uS5peL6L2s5ZCO5paw5b2i5oiQ55qE5YyF5Zu055uSXHJcbiAgICAgKiBAcGFyYW0gYm91bmQgXHJcbiAgICAgKiBAcGFyYW0gcm90XHJcbiAgICAgKi9cclxuICAgIHJvdGF0aW9uKGJvdW5kOiBCb3VuZGluZ1JlY3QsIHJvdDogbnVtYmVyKTogQm91bmRpbmdSZWN0IHtcclxuICAgICAgICBsZXQgY3ggPSBib3VuZC54ICsgYm91bmQud2lkdGggLyAyLFxyXG4gICAgICAgICAgICBjeSA9IGJvdW5kLnkgKyBib3VuZC5oZWlnaHQgLyAyO1xyXG5cclxuICAgICAgICByZXR1cm4gQm91bmQuZnJvbVBvaW50cyhCb3VuZC50b1BvaW50cyhib3VuZCkubWFwKGl0ZW0gPT4gVmVjdG9yLnJvdGF0aW9uKHJvdCwgaXRlbSwgW2N4LCBjeV0pKSk7XHJcbiAgICB9LFxyXG5cclxuICAgIC8qKlxyXG4gICAgICog5Yik5pat5Lik5Liq5YyF5Zu055uS5piv5ZCm55u45LqkXHJcbiAgICAgKiBAcGFyYW0gYjEgXHJcbiAgICAgKiBAcGFyYW0gYjIgXHJcbiAgICAgKi9cclxuICAgIGlzT3ZlcmxhcChiMTogQm91bmRpbmdSZWN0LCBiMjogQm91bmRpbmdSZWN0KTogYm9vbGVhbiB7XHJcbiAgICAgICAgbGV0IG1heFgxID0gYjEueCArIGIxLndpZHRoLFxyXG4gICAgICAgICAgICBtYXhZMSA9IGIxLnkgKyBiMS5oZWlnaHQsXHJcbiAgICAgICAgICAgIG1heFgyID0gYjIueCArIGIyLndpZHRoLFxyXG4gICAgICAgICAgICBtYXhZMiA9IGIyLnkgKyBiMi5oZWlnaHQ7XHJcblxyXG4gICAgICAgIGlmIChiMS54IDwgbWF4WDIgJiYgYjIueCA8IG1heFgxICYmIGIxLnkgPCBtYXhZMiAmJiBiMi55IDwgbWF4WTEpIHtcclxuICAgICAgICAgICAgcmV0dXJuIHRydWU7XHJcbiAgICAgICAgfVxyXG4gICAgICAgIFxyXG4gICAgICAgIHJldHVybiBmYWxzZTtcclxuICAgIH1cclxufTtcclxuXHJcblxyXG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///6\n') }, function (module, exports, __webpack_require__) { "use strict"; eval('\r\nObject.defineProperty(exports, "__esModule", { value: true });\r\nexports.Vector = void 0;\r\nexports.Vector = {\r\n add(v1, v2) {\r\n return [v1[0] + v2[0], v1[1] + v2[1]];\r\n },\r\n subtract(v1, v2) {\r\n return [v1[0] - v2[0], v1[1] - v2[1]];\r\n },\r\n dot(v1, v2) {\r\n return v1[0] * v2[0] + v1[1] * v2[1];\r\n },\r\n scale(v, n) {\r\n return [v[0] * n, v[1] * n];\r\n },\r\n length(v) {\r\n return Math.sqrt(Math.pow(v[0], 2) + Math.pow(v[1], 2));\r\n },\r\n rotation(radian, point, center = [0, 0]) {\r\n if (radian === 0)\r\n return point;\r\n radian = -radian;\r\n let cos = Math.cos(radian), sin = Math.sin(radian), dv = [point[0] - center[0], point[1] - center[1]], v = [0, 0];\r\n v[0] = center[0] + (dv[0] * cos - dv[1] * sin);\r\n v[1] = center[1] + (dv[0] * sin + dv[1] * cos);\r\n return v;\r\n },\r\n tangent(v) {\r\n return [-v[1], v[0]];\r\n },\r\n normalize(v) {\r\n let len = exports.Vector.length(v);\r\n if (len === 0) {\r\n return [0, 0];\r\n }\r\n else if (len === 1) {\r\n return v;\r\n }\r\n else {\r\n return [v[0] / len, v[1] / len];\r\n }\r\n },\r\n location(v, direction, len) {\r\n return exports.Vector.add(v, exports.Vector.scale(exports.Vector.normalize(direction), len));\r\n },\r\n negative(v) {\r\n return exports.Vector.scale(v, -1);\r\n }\r\n};\r\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvQ29tbW9uL3ZlY3Rvci50cz82ODkxIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUdhLGNBQU0sR0FBRztJQU9sQixHQUFHLENBQUMsRUFBb0IsRUFBRSxFQUFvQjtRQUMxQyxPQUFPLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQyxHQUFHLEVBQUUsQ0FBQyxDQUFDLENBQUMsRUFBRSxFQUFFLENBQUMsQ0FBQyxDQUFDLEdBQUcsRUFBRSxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUM7SUFDMUMsQ0FBQztJQU9ELFFBQVEsQ0FBQyxFQUFvQixFQU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qL1xyXG4gICAgc3VidHJhY3QodjE6IFtudW1iZXIsIG51bWJlcl0sIHYyOiBbbnVtYmVyLCBudW1iZXJdKTogW251bWJlciwgbnVtYmVyXSB7XHJcbiAgICAgICAgcmV0dXJuIFt2MVswXSAtIHYyWzBdLCB2MVsxXSAtIHYyWzFdXTtcclxuICAgIH0sXHJcblxyXG4gICAgLyoqXHJcbiAgICAgKiDlkJHph4/ngrnnp69cclxuICAgICAqIEBwYXJhbSB2MSBcclxuICAgICAqIEBwYXJhbSB2MiBcclxuICAgICAqL1xyXG4gICAgZG90KHYxOiBbbnVtYmVyLCBudW1iZXJdLCB2MjogW251bWJlciwgbnVtYmVyXSk6IG51bWJlciB7XHJcbiAgICAgICAgcmV0dXJuIHYxWzBdICogdjJbMF0gKyB2MVsxXSAqIHYyWzFdO1xyXG4gICAgfSxcclxuXHJcbiAgICAvKipcclxuICAgICAqIOWQkemHj+e8qeaUvlxyXG4gICAgICogQHBhcmFtIHYgXHJcbiAgICAgKiBAcGFyYW0gbiBcclxuICAgICAqL1xyXG4gICAgc2NhbGUodjogW251bWJlciwgbnVtYmVyXSwgbjogbnVtYmVyKTogW251bWJlciwgbnVtYmVyXSB7XHJcbiAgICAgICAgcmV0dXJuIFt2WzBdICogbiwgdlsxXSAqIG5dO1xyXG4gICAgfSxcclxuXHJcbiAgICAvKipcclxuICAgICAqIOWQkemHj+axguaooemVv1xyXG4gICAgICogQHBhcmFtIHYgXHJcbiAgICAgKi9cclxuICAgIGxlbmd0aCh2OiBbbnVtYmVyLCBudW1iZXJdKTogbnVtYmVyIHtcclxuICAgICAgICByZXR1cm4gTWF0aC5zcXJ0KHZbMF0qKjIgKyB2WzFdKioyKTtcclxuICAgIH0sXHJcblxyXG4gICAgLyoqXHJcbiAgICAgKiDnu5Xmn5Dngrnml4vovazlkJHph49cclxuICAgICAqIEBwYXJhbSByYWRpYW4g6KeS5bqm77yI5byn5bqm5Yi277yJXHJcbiAgICAgKiBAcGFyYW0gcG9pbnQg5peL6L2s55qE54K5XHJcbiAgICAgKiBAcGFyYW0gY2VudGVyIOe7leeahOeCuVxyXG4gICAgICovXHJcbiAgICByb3RhdGlvbihyYWRpYW46IG51bWJlciwgcG9pbnQ6IFtudW1iZXIsIG51bWJlcl0sIGNlbnRlcjogW251bWJlciwgbnVtYmVyXSA9IFswLCAwXSk6IFtudW1iZXIsIG51bWJlcl0ge1xyXG4gICAgICAgIGlmKHJhZGlhbiA9PT0gMCkgcmV0dXJuIHBvaW50O1xyXG5cclxuICAgICAgICByYWRpYW4gPSAtcmFkaWFuO1xyXG5cclxuICAgICAgICBsZXQgY29zID0gTWF0aC5jb3MocmFkaWFuKSxcclxuICAgICAgICAgICAgc2luID0gTWF0aC5zaW4ocmFkaWFuKSxcclxuICAgICAgICAgICAgZHYgPSBbcG9pbnRbMF0gLSBjZW50ZXJbMF0sIHBvaW50WzFdIC0gY2VudGVyWzFdXSxcclxuICAgICAgICAgICAgdiA9IFswLCAwXTtcclxuICAgICAgICAgICAgICAgIFxyXG4gICAgICAgICAgICB2WzBdID0gY2VudGVyWzBdICsgKGR2WzBdICogY29zIC0gZHZbMV0gKiBzaW4pO1xyXG4gICAgICAgICAgICB2WzFdID0gY2VudGVyWzFdICsgKGR2WzBdICogc2luICsgZHZbMV0gKiBjb3MpO1xyXG4gICAgICAgIFxyXG4gICAgICAgIHJldHVybiB2IGFzIFtudW1iZXIsIG51bWJlcl07XHJcbiAgICB9LFxyXG5cclxuICAgIC8qKlxyXG4gICAgICog5rGC5ZCR6YeP5rOV5ZCRXHJcbiAgICAgKi9cclxuICAgIHRhbmdlbnQodjogW251bWJlciwgbnVtYmVyXSk6IFtudW1iZXIsIG51bWJlcl0ge1xyXG4gICAgICAgIHJldHVybiBbLXZbMV0sIHZbMF1dO1xyXG4gICAgfSxcclxuXHJcbiAgICAvKipcclxuICAgICAqIOWQkemHj+WNleS9jeWMllxyXG4gICAgICovXHJcbiAgICBub3JtYWxpemUodjogW251bWJlciwgbnVtYmVyXSk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xyXG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///7\n') }, function (module, exports, __webpack_require__) { "use strict"; eval('\r\nObject.defineProperty(exports, "__esModule", { value: true });\r\nexports.EventBus = void 0;\r\nexports.EventBus = {\r\n events: {},\r\n on(eventName, callback) {\r\n if (exports.EventBus.events[eventName] === undefined) {\r\n exports.EventBus.events[eventName] = [];\r\n }\r\n exports.EventBus.events[eventName].push(callback);\r\n },\r\n emit(eventName, payload) {\r\n if (exports.EventBus.events[eventName] === undefined) {\r\n return;\r\n }\r\n exports.EventBus.events[eventName].map(item => item(payload));\r\n }\r\n};\r\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvQ29tbW9uL2V2ZW50QnVzLnRzPzBlMjIiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBU2EsZ0JBQVEsR0FBc0I7SUFDdkMsTUFBTSxFQUFFLEVBQUc7SUFPWCxFQUFFLENBQUMsU0FBaUIsRUFBRSxRQUFrQjtRQUNwQyxJQUFHLGdCQUFRLENBQUMsTUFBTSxDQUFDLFNBQVMsQ0FBQyxLQUFLLFNBQVMsRUFBRTtZQUN6QyxnQkFBUSxDQUFDLE1BQU0sQ0FBQyxTQUFTLENBQUMsR0FBRyxFQUFFLENBQUM7U0FDbkM7UUFFRCxnQkFBUSxDQUFDLE1BQU0sQ0FBQyxTQUFTLENBQUMsQ0FBQyxJQUFJLENBQUMsUUFBUSxDQUFDLENBQUM7SUFDOUMsQ0FBQztJQU9ELElBQUksQ0FBQyxTQUFpQixFQUFFLE9BQWE7UUFDakMsSUFBRyxnQkFBUSxDQUFDLE1BQU0sQ0FBQyxTQUFTLENBQUMsS0FBSyxTQUFTLEVBQUU7WUFDekMsT0FBTztTQUNWO1FBRUQsZ0JBQVEsQ0FBQyxNQUFNLENBQUMsU0FBUyxDQUFDL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BlbWl0KGV2ZW50TmFtZTogc3RyaW5nLCBwYXlsb2FkPzogYW55KSB7XHJcbiAgICAgICAgaWYoRXZlbnRCdXMuZXZlbnRzW2V2ZW50TmFtZV0gPT09IHVuZGVmaW5lZCkge1xyXG4gICAgICAgICAgICByZXR1cm47XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICBFdmVudEJ1cy5ldmVudHNbZXZlbnROYW1lXS5tYXAoaXRlbSA9PiBpdGVtKHBheWxvYWQpKTtcclxuICAgIH1cclxufTsiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///8\n') }, function (module, exports, __webpack_require__) { "use strict"; eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.Engine = void 0;\r\nconst modelData_1 = __webpack_require__(2);\r\nconst modelConstructor_1 = __webpack_require__(10);\r\nconst viewManager_1 = __webpack_require__(11);\r\nconst StructV_1 = __webpack_require__(0);\r\nconst eventBus_1 = __webpack_require__(8);\r\nclass Engine {\r\n constructor(DOMContainer, engineOptions) {\r\n this.modelConstructor = null;\r\n this.optionsTable = {};\r\n this.engineOptions = Object.assign({\r\n freedContainer: null,\r\n leakContainer: null\r\n }, engineOptions);\r\n this.viewOptions = Object.assign({\r\n fitCenter: true,\r\n fitView: false,\r\n groupPadding: 20\r\n }, engineOptions.view);\r\n this.animationOptions = Object.assign({\r\n enable: true,\r\n duration: 900,\r\n timingFunction: 'easePolyOut'\r\n }, engineOptions.animation);\r\n this.interactionOptions = Object.assign({\r\n drag: true,\r\n zoom: true,\r\n dragNode: true,\r\n selectNode: true,\r\n changeHighlight: '#fc5185'\r\n }, engineOptions.interaction);\r\n Object.keys(StructV_1.SV.registeredLayouter).forEach(layouter => {\r\n if (this.optionsTable[layouter] === undefined) {\r\n const options = StructV_1.SV.registeredLayouter[layouter].defineOptions();\r\n options.behavior = Object.assign({\r\n dragNode: true,\r\n selectNode: true\r\n }, options.behavior);\r\n this.optionsTable[layouter] = options;\r\n }\r\n });\r\n this.modelConstructor = new modelConstructor_1.ModelConstructor(this);\r\n this.viewManager = new viewManager_1.ViewManager(this, DOMContainer);\r\n }\r\n render(sourceData) {\r\n if (sourceData === undefined || sourceData === null) {\r\n return;\r\n }\r\n let stringSourceData = JSON.stringify(sourceData);\r\n if (this.prevStringSourceData === stringSourceData) {\r\n return;\r\n }\r\n this.prevStringSourceData = stringSourceData;\r\n this.layoutGroupTable = this.modelConstructor.construct(sourceData);\r\n this.viewManager.renderAll(this.layoutGroupTable);\r\n }\r\n reLayout() {\r\n const layoutGroupTable = this.modelConstructor.getLayoutGroupTable();\r\n this.viewManager.reLayout(layoutGroupTable);\r\n layoutGroupTable.forEach(group => {\r\n group.modelList.forEach(item => {\r\n if (item instanceof modelData_1.Link)\r\n return;\r\n let model = item.G6Item.getModel(), x = item.get('x'), y = item.get('y');\r\n model.x = x;\r\n model.y = y;\r\n });\r\n });\r\n this.viewManager.refresh();\r\n }\r\n getGraphInstance() {\r\n return this.viewManager.getG6Instance();\r\n }\r\n getElements(group) {\r\n const layoutGroupTable = this.modelConstructor.getLayoutGroupTable();\r\n if (group && layoutGroupTable.has('group')) {\r\n return layoutGroupTable.get('group').element;\r\n }\r\n const elements = [];\r\n layoutGroupTable.forEach(item => {\r\n elements.push(...item.element);\r\n });\r\n return elements;\r\n }\r\n getMarkers(group) {\r\n const layoutGroupTable = this.modelConstructor.getLayoutGroupTable();\r\n if (group && layoutGroupTable.has('group')) {\r\n return layoutGroupTable.get('group').marker;\r\n }\r\n const markers = [];\r\n layoutGroupTable.forEach(item => {\r\n markers.push(...item.marker);\r\n });\r\n return markers;\r\n }\r\n getLinks(group) {\r\n const layoutGroupTable = this.modelConstructor.getLayoutGroupTable();\r\n if (group && layoutGroupTable.has('group')) {\r\n return layoutGroupTable.get('group').link;\r\n }\r\n const links = [];\r\n layoutGroupTable.forEach(item => {\r\n links.push(...item.link);\r\n });\r\n return links;\r\n }\r\n hideGroups(groupNames) {\r\n const names = Array.isArray(groupNames) ? groupNames : [groupNames], instance = this.viewManager.getG6Instance();\r\n this.layoutGroupTable.forEach(item => {\r\n const hasName = names.find(name => name === item.layouterName);\r\n if (hasName && !item.isHide) {\r\n item.modelList.forEach(model => instance.hideItem(model.G6Item));\r\n item.isHide = true;\r\n }\r\n if (!hasName && item.isHide) {\r\n item.modelList.forEach(model => instance.showItem(model.G6Item));\r\n item.isHide = false;\r\n }\r\n });\r\n }\r\n selectElement(id, callback) {\r\n const elements = this.getElements();\r\n const stringId = id.toString();\r\n const targetElement = elements.find(item => item.sourceId === stringId);\r\n if (targetElement) {\r\n callback && callback(targetElement);\r\n }\r\n }\r\n resize(containerName, width, height) {\r\n this.viewManager.resize(containerName, width, height);\r\n }\r\n on(eventName, callback) {\r\n if (typeof callback !== 'function') {\r\n return;\r\n }\r\n if (eventName === 'onFreed' || eventName === 'onLeak') {\r\n eventBus_1.EventBus.on(eventName, callback);\r\n return;\r\n }\r\n this.viewManager.getG6Instance().on(eventName, callback);\r\n }\r\n destroy() {\r\n this.modelConstructor.destroy();\r\n this.viewManager.destroy();\r\n }\r\n}\r\nexports.Engine = Engine;\r\n;\r\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvZW5naW5lLnRzPzIyZWMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsMkNBQTBEO0FBRTFELG1EQUE4RTtBQUU5RSw4Q0FBaUQ7QUFDakQseUNBQStCO0FBQy9CLDBDQUE2QztBQUc3QyxNQUFhLE1BQU07SUFhZixZQUFZLFlBQXlCLEVBQUUsYUFBNEI7UUFaM0QscUJBQWdCLEdBQXFCLElBQUksQ0FBQztRQWE5QyxJQUFJLENBQUMsWUFBWSxHQUFHLEVBQUUsQ0FBQztRQUV2QixJQUFJLENBQUMsYUFBYSxHQUFHLE1BQU0sQ0FBQyxNQUFNLENBQUM7WUFDL0IsY0FBY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xyXG5cclxuICAgICAgICAgICAgICAgICB0aGlzLm9wdGlvbnNUYWJsZVtsYXlvdXRlcl0gPSBvcHRpb25zO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgfSk7XHJcblxyXG4gICAgICAgIHRoaXMubW9kZWxDb25zdHJ1Y3RvciA9IG5ldyBNb2RlbENvbnN0cnVjdG9yKHRoaXMpO1xyXG4gICAgICAgIHRoaXMudmlld01hbmFnZXIgPSBuZXcgVmlld01hbmFnZXIodGhpcywgRE9NQ29udGFpbmVyKTtcclxuICAgIH1cclxuXHJcbiAgICAvKipcclxuICAgICAqIOi+k+WFpeaVsOaNrui/m+ihjOa4suafk1xyXG4gICAgICogQHBhcmFtIHNvdXJjZXNEYXRhIFxyXG4gICAgICovXHJcbiAgICBwdWJsaWMgcmVuZGVyKHNvdXJjZURhdGE6IFNvdXJjZXMpIHtcclxuICAgICAgICBpZihzb3VyY2VEYXRhID09PSB1bmRlZmluZWQgfHwgc291cmNlRGF0YSA9PT0gbnVsbCkge1xyXG4gICAgICAgICAgICByZXR1cm47XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICBsZXQgc3RyaW5nU291cmNlRGF0YSA9IEpTT04uc3RyaW5naWZ5KHNvdXJjZURhdGEpO1xyXG4gICAgICAgIGlmKHRoaXMucHJldlN0cmluZ1NvdXJjZURhdGEgPT09IHN0cmluZ1NvdXJjZURhdGEpIHtcclxuICAgICAgICAgICAgcmV0dXJuO1xyXG4gICAgICAgIH1cclxuICAgICAgICB0aGlzLnByZXZTdHJpbmdTb3VyY2VEYXRhID0gc3RyaW5nU291cmNlRGF0YTtcclxuXHJcbiAgICAgICAgLy8gMSDovazmjaLmqKHlnovvvIhkYXRhID0+IG1vZGVs77yJXHJcbiAgICAgICAgdGhpcy5sYXlvdXRHcm91cFRhYmxlID0gdGhpcy5tb2RlbENvbnN0cnVjdG9yLmNvbnN0cnVjdChzb3VyY2VEYXRhKTtcclxuICAgICAgICBcclxuICAgICAgICAvLyAyIOa4suafk++8iOS9v+eUqGc26L+b6KGM5riy5p+T77yJXHJcbiAgICAgICAgdGhpcy52aWV3TWFuYWdlci5yZW5kZXJBbGwodGhpcy5sYXlvdXRHcm91cFRhYmxlKTtcclxuICAgIH1cclxuXHJcbiAgICAvKipcclxuICAgICAqIOmHjeaWsOW4g+WxgFxyXG4gICAgICovXHJcbiAgICBwdWJsaWMgcmVMYXlvdXQoKSB7XHJcbiAgICAgICAgY29uc3QgbGF5b3V0R3JvdXBUYWJsZSA9IHRoaXMubW9kZWxDb25zdHJ1Y3Rvci5nZXRMYXlvdXRHcm91cFRhYmxlKCk7XHJcblxyXG4gICAgICAgIHRoaXMudmlld01hbmFnZXIucmVMYXlvdXQobGF5b3V0R3JvdXBUYWJsZSk7XHJcblxyXG4gICAgICAgIGxheW91dEdyb3VwVGFibGUuZm9yRWFjaChncm91cCA9PiB7XHJcbiAgICAgICAgICAgIGdyb3VwLm1vZGVsTGlzdC5mb3JFYWNoKGl0ZW0gPT4ge1xyXG4gICAgICAgICAgICAgICAgaWYoaXRlbSBpbnN0YW5jZW9mIExpbmspIHJldHVybjtcclxuXHJcbiAgICAgICAgICAgICAgICBsZXQgbW9kZWwgPSBpdGVtLkc2SXRlbS5nZXRNb2RlbCgpLFxyXG4gICAgICAgICAgICAgICAgICAgIHggPSBpdGVtLmdldCgneCcpLFxyXG4gICAgICAgICAgICAgICAgICAgIHkgPSBpdGVtLmdldCgneScpO1xyXG5cclxuICAgICAgICAgICAgICAgIG1vZGVsLnggPSB4O1xyXG4gICAgICAgICAgICAgICAgbW9kZWwueSA9IHk7XHJcbiAgICAgICAgICAgIH0pO1xyXG4gICAgICAgIH0pO1xyXG5cclxuICAgICAgICB0aGlzLnZpZXdNYW5hZ2VyLnJlZnJlc2goKTtcclxuICAgIH1cclxuXHJcbiAgICAvKipcclxuICAgICAqIOiOt+WPliBHNiDlrp7kvotcclxuICAgICAqL1xyXG4gICAgcHVibGljIGdldEdyYXBoSW5zdGFuY2UoKSB7XHJcbiAgICAgICAgcmV0dXJuIHRoaXMudmlld01hbmFnZXIuZ2V0RzZJbnN0YW5jZSgpO1xyXG4gICAgfVxyXG5cclxuICAgIC8qKlxyXG4gICAgICog6I635Y+W5omA5pyJIGVsZW1lbnRcclxuICAgICAqIEBwYXJhbSAgZ3JvdXBcclxuICAgICAqL1xyXG4gICAgcHVibGljIGdldEVsZW1lbnRzKGdyb3VwPzogc3RyaW5nKTogRWxlbWVudFtdIHtcclxuICAgICAgICBjb25zdCBsYXlvdXRHcm91cFRhYmxlID0gdGhpcy5tb2RlbENvbnN0cnVjdG9yLmdldExheW91dEdyb3VwVGFibGUoKTtcclxuXHJcbiAgICAgICAgaWYoZ3JvdXAgJiYgbGF5b3V0R3JvdXBUYWJsZS5oYXMoJ2dyb3VwJykpIHtcclxuICAgICAgICAgICAgcmV0dXJuIGxheW91dEdyb3VwVGFibGUuZ2V0KCdncm91cCcpLmVsZW1lbnQ7XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICBjb25zdCBlbGVtZW50czogRWxlbWVudFtdID0gW107XHJcbiAgICAgICAgbGF5b3V0R3JvdXBUYWJsZS5mb3JFYWNoKGl0ZW0gPT4ge1xyXG4gICAgICAgICAgICBlbGVtZW50cy5wdXNoKC4uLml0ZW0uZWxlbWVudCk7XHJcbiAgICAgICAgfSlcclxuXHJcbiAgICAgICAgcmV0dXJuIGVsZW1lbnRzO1xyXG4gICAgfVxyXG5cclxuICAgIC8qKlxyXG4gICAgICog6I635Y+W5omA5pyJIG1hcmtlclxyXG4gICAgICogQHBhcmFtICBncm91cFxyXG4gICAgICovXHJcbiAgICBwdWJsaWMgZ2V0TWFya2Vycyhncm91cD86IHN0cmluZyk6IE1hcmtlcltdIHtcclxuICAgICAgICBjb25zdCBsYXlvdXRHcm91cFRhYmxlID0gdGhpcy5tb2RlbENvbnN0cnVjdG9yLmdldExheW91dEdyb3VwVGFibGUoKTtcclxuXHJcbiAgICAgICAgaWYoZ3JvdXAgJiYgbGF5b3V0R3JvdXBUYWJsZS5oYXMoJ2dyb3VwJykpIHtcclxuICAgICAgICAgICAgcmV0dXJuIGxheW91dEdyb3VwVGFibGUuZ2V0KCdncm91cCcpLm1hcmtlcjtcclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIGNvbnN0IG1hcmtlcnM6IE1hcmtlcltdID0gW107XHJcbiAgICAgICAgbGF5b3V0R3JvdXBUYWJsZS5mb3JFYWNoKGl0ZW0gPT4ge1xyXG4gICAgICAgICAgICBtYXJrZXJzLnB1c2goLi4uaXRlbS5tYXJrZXIpO1xyXG4gICAgICAgIH0pXHJcblxyXG4gICAgICAgIHJldHVybiBtYXJrZXJzO1xyXG4gICAgfVxyXG5cclxuICAgIC8qKlxyXG4gICAgICog6I635Y+W5omA5pyJIGxpbmtcclxuICAgICAqIEBwYXJhbSAgZ3JvdXBcclxuICAgICAqL1xyXG4gICAgcHVibGljIGdldExpbmtzKGdyb3VwPzogc3RyaW5nKTogTGlua1tdIHtcclxuICAgICAgICBjb25zdCBsYXlvdXRHcm91cFRhYmxlID0gdGhpcy5tb2RlbENvbnN0cnVjdG9yLmdldExheW91dEdyb3VwVGFibGUoKTtcclxuXHJcbiAgICAgICAgaWYoZ3JvdXAgJiYgbGF5b3V0R3JvdXBUYWJsZS5oYXMoJ2dyb3VwJykpIHtcclxuICAgICAgICAgICAgcmV0dXJuIGxheW91dEdyb3VwVGFibGUuZ2V0KCdncm91cCcpLmxpbms7XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICBjb25zdCBsaW5rczogTGlua1tdID0gW107XHJcbiAgICAgICAgbGF5b3V0R3JvdXBUYWJsZS5mb3JFYWNoKGl0ZW0gPT4ge1xyXG4gICAgICAgICAgICBsaW5rcy5wdXNoKC4uLml0ZW0ubGluayk7XHJcbiAgICAgICAgfSlcclxuXHJcbiAgICAgICAgcmV0dXJuIGxpbmtzO1xyXG4gICAgfVxyXG5cclxuICAgIC8qKlxyXG4gICAgICog6ZqQ6JeP5p+Q5Lqb57uEXHJcbiAgICAgKiBAcGFyYW0gZ3JvdXBOYW1lcyBcclxuICAgICAqL1xyXG4gICAgcHVibGljIGhpZGVHcm91cHMoZ3JvdXBOYW1lczogc3RyaW5nIHwgc3RyaW5nW10pIHtcclxuICAgICAgICBjb25zdCBuYW1lcyA9IEFycmF5LmlzQXJyYXkoZ3JvdXBOYW1lcyk/IGdyb3VwTmFtZXM6IFtncm91cE5hbWVzXSxcclxuICAgICAgICAgICAgICBpbnN0YW5jZSA9IHRoaXMudmlld01hbmFnZXIuZ2V0RzZJbnN0YW5jZSgpO1xyXG5cclxuICAgICAgICB0aGlzLmxheW91dEdyb3VwVGFibGUuZm9yRWFjaChpdGVtID0+IHtcclxuICAgICAgICAgICAgY29uc3QgaGFzTmFtZSA9IG5hbWVzLmZpbmQobmFtZSA9PiBuYW1lID09PSBpdGVtLmxheW91dGVyTmFtZSk7XHJcblxyXG4gICAgICAgICAgICBpZihoYXNOYW1lICYmICFpdGVtLmlzSGlkZSkge1xyXG4gICAgICAgICAgICAgICAgaXRlbS5tb2RlbExpc3QuZm9yRWFjaChtb2RlbCA9PiBpbnN0YW5jZS5oaWRlSXRlbShtb2RlbC5HNkl0ZW0pKTtcclxuICAgICAgICAgICAgICAgIGl0ZW0uaXNIaWRlID0gdHJ1ZTtcclxuICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgaWYoIWhhc05hbWUgJiYgaXRlbS5pc0hpZGUpIHtcclxuICAgICAgICAgICAgICAgIGl0ZW0ubW9kZWxMaXN0LmZvckVhY2gobW9kZWwgPT4gaW5zdGFuY2Uuc2hvd0l0ZW0obW9kZWwuRzZJdGVtKSk7XHJcbiAgICAgICAgICAgICAgICBpdGVtLmlzSGlkZSA9IGZhbHNlO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgfSk7XHJcbiAgICB9XHJcblxyXG4gICAgLyoqXHJcbiAgICAgKiDkvb/nlKhpZOmAieS4reafkOS4quiKgueCuVxyXG4gICAgICogQHB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jYWxsYmFjazogRnVuY3Rpb24pIHtcclxuICAgICAgICBpZih0eXBlb2YgY2FsbGJhY2sgIT09ICdmdW5jdGlvbicpIHtcclxuICAgICAgICAgICAgcmV0dXJuO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgaWYoZXZlbnROYW1lID09PSAnb25GcmVlZCcgfHwgZXZlbnROYW1lID09PSAnb25MZWFrJykge1xyXG4gICAgICAgICAgICBFdmVudEJ1cy5vbihldmVudE5hbWUsIGNhbGxiYWNrKTtcclxuICAgICAgICAgICAgcmV0dXJuO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgdGhpcy52aWV3TWFuYWdlci5nZXRHNkluc3RhbmNlKCkub24oZXZlbnROYW1lLCBjYWxsYmFjayk7XHJcbiAgICB9XHJcblxyXG4gICAgLyoqXHJcbiAgICAgKiDplIDmr4HlvJXmk45cclxuICAgICAqL1xyXG4gICAgcHVibGljIGRlc3Ryb3koKSB7XHJcbiAgICAgICAgdGhpcy5tb2RlbENvbnN0cnVjdG9yLmRlc3Ryb3koKTtcclxuICAgICAgICB0aGlzLnZpZXdNYW5hZ2VyLmRlc3Ryb3koKTtcclxuICAgIH1cclxufTsiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///9\n") }, function (module, exports, __webpack_require__) { "use strict"; eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.ModelConstructor = void 0;\r\nconst util_1 = __webpack_require__(3);\r\nconst StructV_1 = __webpack_require__(0);\r\nconst modelData_1 = __webpack_require__(2);\r\nclass ModelConstructor {\r\n constructor(engine) {\r\n this.engine = engine;\r\n this.prevSourcesStringMap = {};\r\n }\r\n construct(sources) {\r\n const layoutGroupTable = new Map(), layouterMap = StructV_1.SV.registeredLayouter, optionsTable = this.engine.optionsTable;\r\n Object.keys(sources).forEach(name => {\r\n let sourceGroup = sources[name], layouterName = sourceGroup.layouter, layouter = layouterMap[sourceGroup.layouter];\r\n if (!layouterName || !layouter) {\r\n return;\r\n }\r\n let sourceDataString = JSON.stringify(sourceGroup.data), prevString = this.prevSourcesStringMap[name], elementList = [], markerList = [];\r\n if (prevString === sourceDataString) {\r\n return;\r\n }\r\n const options = optionsTable[layouterName], sourceData = layouter.sourcesPreprocess(sourceGroup.data, options), elementOptions = options.element || {}, markerOptions = options.marker || {};\r\n elementList = this.constructElements(elementOptions, name, sourceData, layouterName);\r\n markerList = this.constructMarkers(name, markerOptions, elementList);\r\n layoutGroupTable.set(name, {\r\n name,\r\n element: elementList,\r\n link: [],\r\n marker: markerList,\r\n options: options,\r\n layouter: layouter,\r\n modelList: [...elementList, ...markerList],\r\n layouterName,\r\n isHide: false\r\n });\r\n });\r\n layoutGroupTable.forEach((layoutGroup) => {\r\n const linkOptions = layoutGroup.options.link || {}, linkList = this.constructLinks(linkOptions, layoutGroup.element, layoutGroupTable);\r\n layoutGroup.link = linkList;\r\n layoutGroup.modelList.push(...linkList);\r\n });\r\n this.layoutGroupTable = layoutGroupTable;\r\n return this.layoutGroupTable;\r\n }\r\n getLayoutGroupTable() {\r\n return this.layoutGroupTable;\r\n }\r\n constructElements(elementOptions, groupName, sourceList, layouterName) {\r\n let defaultElementType = 'default', elementList = [];\r\n sourceList.forEach(item => {\r\n if (item === null) {\r\n return;\r\n }\r\n if (item.type === undefined || item.type === null) {\r\n item.type = defaultElementType;\r\n }\r\n elementList.push(this.createElement(item, item.type, groupName, layouterName, elementOptions[item.type]));\r\n });\r\n return elementList;\r\n }\r\n constructLinks(linkOptions, elements, layoutGroupTable) {\r\n let linkList = [], linkNames = Object.keys(linkOptions);\r\n linkNames.forEach(name => {\r\n for (let i = 0; i < elements.length; i++) {\r\n let element = elements[i], sourceLinkData = element.sourceElement[name], targetElement = null, link = null;\r\n if (sourceLinkData === undefined || sourceLinkData === null) {\r\n element[name] = null;\r\n continue;\r\n }\r\n if (Array.isArray(sourceLinkData)) {\r\n element[name] = sourceLinkData.map((item, index) => {\r\n targetElement = this.fetchTargetElements(layoutGroupTable, element, item);\r\n let isGeneralLink = this.isGeneralLink(sourceLinkData.toString());\r\n if (targetElement) {\r\n link = this.createLink(name, element, targetElement, index, linkOptions[name]);\r\n linkList.push(link);\r\n }\r\n return isGeneralLink ? targetElement : null;\r\n });\r\n }\r\n else {\r\n targetElement = this.fetchTargetElements(layoutGroupTable, element, sourceLinkData);\r\n let isGeneralLink = this.isGeneralLink(sourceLinkData.toString());\r\n if (targetElement) {\r\n link = this.createLink(name, element, targetElement, null, linkOptions[name]);\r\n linkList.push(link);\r\n }\r\n element[name] = isGeneralLink ? targetElement : null;\r\n }\r\n }\r\n });\r\n return linkList;\r\n }\r\n constructMarkers(groupName, markerOptions, elements) {\r\n let markerList = [], markerNames = Object.keys(markerOptions);\r\n markerNames.forEach(name => {\r\n for (let i = 0; i < elements.length; i++) {\r\n let element = elements[i], markerData = element[name];\r\n if (!markerData)\r\n continue;\r\n let id = `${groupName}.${name}.${Array.isArray(markerData) ? markerData.join('-') : markerData}`, marker = this.createMarker(id, name, markerData, element, markerOptions[name]);\r\n markerList.push(marker);\r\n }\r\n });\r\n return markerList;\r\n }\r\n resolveElementLabel(label, sourceElement) {\r\n let targetLabel = '';\r\n if (Array.isArray(label)) {\r\n targetLabel = label.map(item => { var _a; return (_a = this.parserElementContent(sourceElement, item)) !== null && _a !== void 0 ? _a : ''; });\r\n }\r\n else {\r\n targetLabel = this.parserElementContent(sourceElement, label);\r\n }\r\n if (targetLabel === 'undefined') {\r\n targetLabel = '';\r\n }\r\n return targetLabel !== null && targetLabel !== void 0 ? targetLabel : '';\r\n }\r\n resolveElementIndex(indexOptions, sourceElement) {\r\n if (indexOptions === undefined || indexOptions === null) {\r\n return;\r\n }\r\n Object.keys(indexOptions).map(key => {\r\n var _a;\r\n let indexOptionItem = indexOptions[key];\r\n indexOptionItem.value = (_a = sourceElement[key]) !== null && _a !== void 0 ? _a : '';\r\n });\r\n }\r\n createElement(sourceElement, elementName, groupName, layouterName, options) {\r\n let element = undefined, label = this.resolveElementLabel(options.label, sourceElement), id = elementName + '.' + sourceElement.id.toString();\r\n element = new modelData_1.Element(id, elementName, groupName, layouterName, sourceElement);\r\n element.initProps(options);\r\n element.set('label', label);\r\n element.sourceElement = sourceElement;\r\n this.resolveElementIndex(element.get('indexCfg'), sourceElement);\r\n return element;\r\n }\r\n createMarker(id, markerName, markerData, target, options) {\r\n let marker = undefined;\r\n marker = new modelData_1.Marker(id, markerName, markerData, target);\r\n marker.initProps(options);\r\n return marker;\r\n }\r\n ;\r\n createLink(linkName, element, target, index, options) {\r\n let link = undefined, id = `${linkName}(${element.id}-${target.id})`;\r\n link = new modelData_1.Link(id, linkName, element, target, index);\r\n link.initProps(options);\r\n return link;\r\n }\r\n parserElementContent(sourceElement, formatLabel) {\r\n let fields = util_1.Util.textParser(formatLabel);\r\n if (Array.isArray(fields)) {\r\n let values = fields.map(item => sourceElement[item]);\r\n values.map((item, index) => {\r\n formatLabel = formatLabel.replace('[' + fields[index] + ']', item);\r\n });\r\n }\r\n return formatLabel;\r\n }\r\n fetchTargetElements(layoutGroupTable, element, linkTarget) {\r\n let groupName = element.groupName, elementName = element.type, elementList, targetId = linkTarget, targetGroupName = groupName, targetElement = null;\r\n if (linkTarget === null || linkTarget === undefined) {\r\n return null;\r\n }\r\n if (typeof linkTarget === 'number' || (typeof linkTarget === 'string' && !linkTarget.includes('#'))) {\r\n linkTarget = 'default#' + linkTarget;\r\n }\r\n let info = linkTarget.split('#');\r\n targetId = info.pop();\r\n if (info.length > 1) {\r\n elementName = info.pop();\r\n targetGroupName = info.pop();\r\n }\r\n else {\r\n let field = info.pop();\r\n if (layoutGroupTable.get(targetGroupName).element.find(item => item.type === field)) {\r\n elementName = field;\r\n }\r\n else if (layoutGroupTable.has(field)) {\r\n targetGroupName = field;\r\n }\r\n else {\r\n return null;\r\n }\r\n }\r\n elementList = layoutGroupTable.get(targetGroupName).element.filter(item => item.type === elementName);\r\n if (elementList === undefined) {\r\n return null;\r\n }\r\n targetElement = elementList.find(item => item.sourceId === targetId);\r\n return targetElement || null;\r\n }\r\n isGeneralLink(linkId) {\r\n let counter = 0;\r\n for (let i = 0; i < linkId.length; i++) {\r\n if (linkId[i] === '#') {\r\n counter++;\r\n }\r\n }\r\n return counter <= 2;\r\n }\r\n destroy() {\r\n this.layoutGroupTable = null;\r\n }\r\n}\r\nexports.ModelConstructor = ModelConstructor;\r\n;\r\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvTW9kZWwvbW9kZWxDb25zdHJ1Y3Rvci50cz82Y2U0Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLHNDQUFzQztBQUl0Qyx5Q0FBZ0M7QUFDaEMsMkNBQTJEO0FBbUIzRCxNQUFhLGdCQUFnQjtJQUt6QixZQUFZLE1BQWM7UUFDdEIsSUFBSSxDQUFDLE1BQU0sR0FBRyxNQUFNLENBQUM7UUFDckIsSUFBSSxDQUFDLG9CQUFvQixHQUFHLEVBQUUsQ0FBQztJQUNuQyxDQUFDO0lBTU0sU0FBUyxDQUFDLE9BQWdCO1FBQzdCLE1BQU0sZ0JBQWdCLEdBQUcsSUFBSSxHQUFHLEVBQXVCLEVBQ25ELFdBQVcsR0FBZ0MsWUFBRSxDQUFDLGtCQUFrQixFQUNoRSxZQUFZLEdBQUcsSUFBSSxDQUFDLE1BQU0sQ0FBQyxZQUFZLENBQUM7UUFFNUMsTUFBTSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUMsQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLEVBQUU7WUFDaEMsSUFBSSxXQUFXLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQyxFQUMzQixZQUFZLEdBQUcsV0FBVyxDQUFDLFFBQVEsRUFDbkMsUUFBUSxHQUFhLFdBQVcsQ0FBQyxXQUFXLENBQUMsUUFBUSxDQUFDLENBQUM7WUFFM0Q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wPHN0cmluZywgTGF5b3V0R3JvdXA+KCksXHJcbiAgICAgICAgICAgIGxheW91dGVyTWFwOiB7IFtrZXk6IHN0cmluZ106IExheW91dGVyIH0gPSBTVi5yZWdpc3RlcmVkTGF5b3V0ZXIsXHJcbiAgICAgICAgICAgIG9wdGlvbnNUYWJsZSA9IHRoaXMuZW5naW5lLm9wdGlvbnNUYWJsZTtcclxuXHJcbiAgICAgICAgT2JqZWN0LmtleXMoc291cmNlcykuZm9yRWFjaChuYW1lID0+IHtcclxuICAgICAgICAgICAgbGV0IHNvdXJjZUdyb3VwID0gc291cmNlc1tuYW1lXSxcclxuICAgICAgICAgICAgICAgIGxheW91dGVyTmFtZSA9IHNvdXJjZUdyb3VwLmxheW91dGVyLFxyXG4gICAgICAgICAgICAgICAgbGF5b3V0ZXI6IExheW91dGVyID0gbGF5b3V0ZXJNYXBbc291cmNlR3JvdXAubGF5b3V0ZXJdO1xyXG5cclxuICAgICAgICAgICAgaWYgKCFsYXlvdXRlck5hbWUgfHwgIWxheW91dGVyKSB7XHJcbiAgICAgICAgICAgICAgICByZXR1cm47XHJcbiAgICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICAgIGxldCBzb3VyY2VEYXRhU3RyaW5nOiBzdHJpbmcgPSBKU09OLnN0cmluZ2lmeShzb3VyY2VHcm91cC5kYXRhKSxcclxuICAgICAgICAgICAgICAgIHByZXZTdHJpbmc6IHN0cmluZyA9IHRoaXMucHJldlNvdXJjZXNTdHJpbmdNYXBbbmFtZV0sXHJcbiAgICAgICAgICAgICAgICBlbGVtZW50TGlzdDogRWxlbWVudFtdID0gW10sXHJcbiAgICAgICAgICAgICAgICBtYXJrZXJMaXN0OiBNYXJrZXJbXSA9IFtdO1xyXG5cclxuICAgICAgICAgICAgaWYgKHByZXZTdHJpbmcgPT09IHNvdXJjZURhdGFTdHJpbmcpIHtcclxuICAgICAgICAgICAgICAgIHJldHVybjtcclxuICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgY29uc3Qgb3B0aW9uczogTGF5b3V0R3JvdXBPcHRpb25zID0gb3B0aW9uc1RhYmxlW2xheW91dGVyTmFtZV0sXHJcbiAgICAgICAgICAgICAgICBzb3VyY2VEYXRhID0gbGF5b3V0ZXIuc291cmNlc1ByZXByb2Nlc3Moc291cmNlR3JvdXAuZGF0YSwgb3B0aW9ucyksXHJcbiAgICAgICAgICAgICAgICBlbGVtZW50T3B0aW9ucyA9IG9wdGlvbnMuZWxlbWVudCB8fCB7fSxcclxuICAgICAgICAgICAgICAgIG1hcmtlck9wdGlvbnMgPSBvcHRpb25zLm1hcmtlciB8fCB7fTtcclxuXHJcbiAgICAgICAgICAgIGVsZW1lbnRMaXN0ID0gdGhpcy5jb25zdHJ1Y3RFbGVtZW50cyhlbGVtZW50T3B0aW9ucywgbmFtZSwgc291cmNlRGF0YSwgbGF5b3V0ZXJOYW1lKTtcclxuICAgICAgICAgICAgbWFya2VyTGlzdCA9IHRoaXMuY29uc3RydWN0TWFya2VycyhuYW1lLCBtYXJrZXJPcHRpb25zLCBlbGVtZW50TGlzdCk7XHJcblxyXG4gICAgICAgICAgICBsYXlvdXRHcm91cFRhYmxlLnNldChuYW1lLCB7XHJcbiAgICAgICAgICAgICAgICBuYW1lLFxyXG4gICAgICAgICAgICAgICAgZWxlbWVudDogZWxlbWVudExpc3QsXHJcbiAgICAgICAgICAgICAgICBsaW5rOiBbXSxcclxuICAgICAgICAgICAgICAgIG1hcmtlcjogbWFya2VyTGlzdCxcclxuICAgICAgICAgICAgICAgIG9wdGlvbnM6IG9wdGlvbnMsXHJcbiAgICAgICAgICAgICAgICBsYXlvdXRlcjogbGF5b3V0ZXIsXHJcbiAgICAgICAgICAgICAgICBtb2RlbExpc3Q6IFsuLi5lbGVtZW50TGlzdCwgLi4ubWFya2VyTGlzdF0sXHJcbiAgICAgICAgICAgICAgICBsYXlvdXRlck5hbWUsXHJcbiAgICAgICAgICAgICAgICBpc0hpZGU6IGZhbHNlXHJcbiAgICAgICAgICAgIH0pO1xyXG4gICAgICAgIH0pO1xyXG5cclxuICAgICAgICBsYXlvdXRHcm91cFRhYmxlLmZvckVhY2goKGxheW91dEdyb3VwOiBMYXlvdXRHcm91cCkgPT4ge1xyXG4gICAgICAgICAgICBjb25zdCBsaW5rT3B0aW9ucyA9IGxheW91dEdyb3VwLm9wdGlvbnMubGluayB8fCB7fSxcclxuICAgICAgICAgICAgICAgIGxpbmtMaXN0OiBMaW5rW10gPSB0aGlzLmNvbnN0cnVjdExpbmtzKGxpbmtPcHRpb25zLCBsYXlvdXRHcm91cC5lbGVtZW50LCBsYXlvdXRHcm91cFRhYmxlKTtcclxuXHJcbiAgICAgICAgICAgIGxheW91dEdyb3VwLmxpbmsgPSBsaW5rTGlzdDtcclxuICAgICAgICAgICAgbGF5b3V0R3JvdXAubW9kZWxMaXN0LnB1c2goLi4ubGlua0xpc3QpO1xyXG4gICAgICAgIH0pO1xyXG5cclxuICAgICAgICB0aGlzLmxheW91dEdyb3VwVGFibGUgPSBsYXlvdXRHcm91cFRhYmxlO1xyXG5cclxuICAgICAgICByZXR1cm4gdGhpcy5sYXlvdXRHcm91cFRhYmxlO1xyXG4gICAgfVxyXG5cclxuICAgIC8qKlxyXG4gICAgICogXHJcbiAgICAgKiBAcmV0dXJucyBcclxuICAgICAqL1xyXG4gICAgcHVibGljIGdldExheW91dEdyb3VwVGFibGUoKTogTGF5b3V0R3JvdXBUYWJsZSB7XHJcbiAgICAgICAgcmV0dXJuIHRoaXMubGF5b3V0R3JvdXBUYWJsZTtcclxuICAgIH1cclxuXHJcbiAgICAvKipcclxuICAgICAqIOS7jua6kOaVsOaNruaehOW7uiBlbGVtZW50IOmbhlxyXG4gICAgICogQHBhcmFtIGVsZW1lbnRPcHRpb25zIFxyXG4gICAgICogQHBhcmFtIGdyb3VwTmFtZSBcclxuICAgICAqIEBwYXJhbSBzb3VyY2VMaXN0IFxyXG4gICAgICogQHBhcmFtIGxheW91dGVyTmFtZVxyXG4gICAgICogQHJldHVybnMgXHJcbiAgICAgKi9cclxuICAgIHByaXZhdGUgY29uc3RydWN0RWxlbWVudHMoZWxlbWVudE9wdGlvbnM6IHsgW2tleTogc3RyaW5nXTogRWxlbWVudE9wdGlvbiB9LCBncm91cE5hbWU6IHN0cmluZywgc291cmNlTGlzdDogU291cmNlRWxlbWVudFtdLCBsYXlvdXRlck5hbWU6IHN0cmluZyk6IEVsZW1lbnRbXSB7XHJcbiAgICAgICAgbGV0IGRlZmF1bHRFbGVtZW50VHlwZTogc3RyaW5nID0gJ2RlZmF1bHQnLFxyXG4gICAgICAgICAgICBlbGVtZW50TGlzdDogRWxlbWVudFtdID0gW107XHJcblxyXG4gICAgICAgIHNvdXJjZUxpc3QuZm9yRWFjaChpdGVtID0+IHtcclxuICAgICAgICAgICAgaWYgKGl0ZW0gPT09IG51bGwpIHtcclxuICAgICAgICAgICAgICAgIHJldHVybjtcclxuICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgaWYgKGl0ZW0udHlwZSA9PT0gdW5kZWZpbmVkIHx8IGl0ZW0udHlwZSA9PT0gbnVsbCkge1xyXG4gICAgICAgICAgICAgICAgaXRlbS50eXBlID0gZGVmYXVsdEVsZW1lbnRUeXBlO1xyXG4gICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICBlbGVtZW50TGlzdC5wdXNoKHRoaXMuY3JlYXRlRWxlbWVudChpdGVtLCBpdGVtLnR5cGUsIGdyb3VwTmFtZSwgbGF5b3V0ZXJOYW1lLCBlbGVtZW50T3B0aW9uc1tpdGVtLnR5cGVdKSk7XHJcbiAgICAgICAgfSk7XHJcblxyXG4gICAgICAgIHJldHVybiBlbGVtZW50TGlzdDtcclxuICAgIH1cclxuXHJcbiAgICAvKipcclxuICAgICAqIOS7jumFjee9ruWSjCBlbGVtZW50IOmbhuaehOW7uiBsaW5rIOmbhlxyXG4gICAgICogQHBhcmFtIGxpbmtPcHRpb25zIFxyXG4gICAgICogQHBhcmFtIGVsZW1lbnRzIFxyXG4gICAgICogQHBhcmFtIGxheW91dEdyb3VwVGFibGVcclxuICAgICAqIEByZXR1cm5zIFxyXG4gICAgICovXHJcbiAgICBwcml2YXRlIGNvbnN0cnVjdExpbmtzKGxpbmtPcHRpb25zOiB7IFtrZXk6IHN0cmluZ106IExpbmtPcHRpb24gfSwgZWxlbWVudHM6IEVsZW1lbnRbXSwgbGF5b3V0R3JvdXBUYWJsZTogTGF5b3V0R3JvdXBUYWJsZSk6IExpbmtbXSB7XHJcbiAgICAgICAgbGV0IGxpbmtMaXN0OiBMaW5rW10gPSBbXSxcclxuICAgICAgICAgICAgbGlua05hbWVzID0gT2JqZWN0LmtleXMobGlua09wdGlvbnMpO1xyXG5cclxuICAgICAgICBsaW5rTmFtZXMuZm9yRWFjaChuYW1lID0+IHtcclxuICAgICAgICAgICAgZm9yIChsZXQgaSA9IDA7IGkgPCBlbGVtZW50cy5sZW5ndGg7IGkrKykge1xyXG4gICAgICAgICAgICAgICAgbGV0IGVsZW1lbnQ6IEVsZW1lbnQgPSBlbGVtZW50c1tpXSxcclxuICAgICAgICAgICAgICAgICAgICBzb3VyY2VMaW5rRGF0YTogc291cmNlTGlua0RhdGEgPSBlbGVtZW50LnNvdXJjZUVsZW1lbnRbbmFtZV0sXHJcbiAgICAgICAgICAgICAgICAgICAgdGFyZ2V0RWxlbWVudDogRWxlbWVudCB8IEVsZW1lbnRbXSA9IG51bGwsXHJcbiAgICAgICAgICAgICAgICAgICAgbGluazogTGluayA9IG51bGw7XHJcblxyXG4gICAgICAgICAgICAgICAgaWYgKHNvdXJjZUxpbmtEYXRhID09PSB1bmRlZmluZWQgfHwgc291cmNlTGlua0RhdGEgPT09IG51bGwpIHtcclxuICAgICAgICAgICAgICAgICAgICBlbGVtZW50W25hbWVdID0gbnVsbDtcclxuICAgICAgICAgICAgICAgICAgICBjb250aW51ZTtcclxuICAgICAgICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICAgICAgICAvLyAgLS0tLS0tLS0tLS0tLS0tLS0tLSDlsIbov57mjqXlo7DmmI7lrZfmrrUgc291cmNlTGlua0RhdGEg5LuOIGlkIOWPmOS4uiBFbGVtZW50IC0tLS0tLS0tLS0tLS0tLS0tLS1cclxuICAgICAgICAgICAgICAgIGlmIChBcnJheS5pc0FycmF5KHNvdXJjZUxpbmtEYXRhKSkge1xyXG4gICAgICAgICAgICAgICAgICAgIGVsZW1lbnRbbmFtZV0gPSBzb3VyY2VMaW5rRGF0YS5tYXAoKGl0ZW0sIGluZGV4KSA9PiB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHRhcmdldEVsZW1lbnQgPSB0aGlzLmZldGNoVGFyZ2V0RWxlbWVudHMobGF5b3V0R3JvdXBUYWJsZSwgZWxlbWVudCwgaXRlbSk7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGxldCBpc0dlbmVyYWxMaW5rID0gdGhpcy5pc0dlbmVyYWxMaW5rKHNvdXJjZUxpbmtEYXRhLnRvU3RyaW5nKCkpO1xyXG5cclxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHRhcmdldEVsZW1lbnQpIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxpbmsgPSB0aGlzLmNyZWF0ZUxpbmsobmFtZSwgZWxlbWVudCwgdGFyZ2V0RWxlbWVudCwgaW5kZXgsIGxpbmtPcHRpb25zW25hbWVdKTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxpbmtMaXN0LnB1c2gobGluayk7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBpc0dlbmVyYWxMaW5rID8gdGFyZ2V0RWxlbWVudCA6IG51bGw7XHJcbiAgICAgICAgICAgICAgICAgICAgfSk7XHJcbiAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICBlbHNlIHtcclxuICAgICAgICAgICAgICAgICAgICB0YXJnZXRFbGVtZW50ID0gdGhpcy5mZXRjaFRhcmdldEVsZW1lbnRzKGxheW91dEdyb3VwVGFibGUsIGVsZW1lbnQsIHNvdXJjZUxpbmtEYXRhKTtcclxuICAgICAgICAgICAgICAgICAgICBsZXQgaXNHZW5lcmFsTGluayA9IHRoaXMuaXNHZW5lcmFsTGluayhzb3VyY2VMaW5rRGF0YS50b1N0cmluZygpKTtcclxuXHJcbiAgICAgICAgICAgICAgICAgICAgaWYgKHRhcmdldEVsZW1lbnQpIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgbGluayA9IHRoaXMuY3JlYXRlTGluayhuYW1lLCBlbGVtZW50LCB0YXJnZXRFbGVtZW50LCBudWxsLCBsaW5rT3B0aW9uc1tuYW1lXSk7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGxpbmtMaXN0LnB1c2gobGluayk7XHJcbiAgICAgICAgICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgICAgICAgICBlbGVtZW50W25hbWVdID0gaXNHZW5lcmFsTGluayA/IHRhcmdldEVsZW1lbnQgOiBudWxsO1xyXG4gICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgfSk7XHJcblxyXG4gICAgICAgIHJldHVybiBsaW5rTGlzdDtcclxuICAgIH1cclxuXHJcbiAgICAvKipcclxuICAgICAqIOS7jumFjee9ruWSjCBlbGVtZW50IOmbhuaehOW7uiBtYXJrZXIg6ZuGXHJcbiAgICAgKiBAcGFyYW0gbWFya2VyT3B0aW9ucyBcclxuICAgICAqIEBwYXJhbSBlbGVtZW50c1xyXG4gICAgICogQHJldHVybnMgXHJcbiAgICAgKi9cclxuICAgIHByaXZhdGUgY29uc3RydWN0TWFya2Vycyhncm91cE5hbWU6IHN0cmluZywgbWFya2VyT3B0aW9uczogeyBba2V5OiBzdHJpbmddOiBNYXJrZXJPcHRpb24gfSwgZWxlbWVudHM6IEVsZW1lbnRbXSk6IE1hcmtlcltdIHtcclxuICAgICAgICBsZXQgbWFya2VyTGlzdDogTWFya2VyW10gPSBbXSxcclxuICAgICAgICAgICAgbWFya2VyTmFtZXMgPSBPYmplY3Qua2V5cyhtYXJrZXJPcHRpb25zKTtcclxuXHJcbiAgICAgICAgbWFya2VyTmFtZXMuZm9yRWFjaChuYW1lID0+IHtcclxuICAgICAgICAgICAgZm9yIChsZXQgaSA9IDA7IGkgPCBlbGVtZW50cy5sZW5ndGg7IGkrKykge1xyXG4gICAgICAgICAgICAgICAgbGV0IGVsZW1lbnQgPSBlbGVtZW50c1tpXSxcclxuICAgICAgICAgICAgICAgICAgICBtYXJrZXJEYXRhID0gZWxlbWVudFtuYW1lXTtcclxuXHJcbiAgICAgICAgICAgICAgICAvLyDoi6XmsqHmnInmjIfpkojlrZfmrrXnmoTnu5PngrnliJnot7Pov4dcclxuICAgICAgICAgICAgICAgIGlmICghbWFya2VyRGF0YSkgY29udGludWU7XHJcblxyXG4gICAgICAgICAgICAgICAgbGV0IGlkID0gYCR7Z3JvdXBOYW1lfS4ke25hbWV9LiR7QXJyYXkuaXNBcnJheShtYXJrZXJEYXRhKSA/IG1hcmtlckRhdGEuam9pbignLScpIDogbWFya2VyRGF0YX1gLFxyXG4gICAgICAgICAgICAgICAgICAgIG1hcmtlciA9IHRoaXMuY3JlYXRlTWFya2VyKGlkLCBuYW1lLCBtYXJrZXJEYXRhLCBlbGVtZW50LCBtYXJrZXJPcHRpb25zW25hbWVdKTtcclxuXHJcbiAgICAgICAgICAgICAgICBtYXJrZXJMaXN0LnB1c2gobWFya2VyKTtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgIH0pO1xyXG5cclxuICAgICAgICByZXR1cm4gbWFya2VyTGlzdDtcclxuICAgIH1cclxuXHJcbiAgICAvKipcclxuICAgICAqIOaxguino2xhYmVs5paH5pysXHJcbiAgICAgKiBAcGFyYW0gbGFiZWwgXHJcbiAgICAgKiBAcGFyYW0gc291cmNlRWxlbWVudCBcclxuICAgICAqL1xyXG4gICAgcHJpdmF0ZSByZXNvbHZlRWxlbWVudExhYmVsKGxhYmVsOiBzdHJpbmcgfCBzdHJpbmdbXSwgc291cmNlRWxlbWVudDogU291cmNlRWxlbWVudCk6IHN0cmluZyB7XHJcbiAgICAgICAgbGV0IHRhcmdldExhYmVsOiBhbnkgPSAnJztcclxuXHJcbiAgICAgICAgaWYgKEFycmF5LmlzQXJyYXkobGFiZWwpKSB7XHJcbiAgICAgICAgICAgIHRhcmdldExhYmVsID0gbGFiZWwubWFwKGl0ZW0gPT4gdGhpcy5wYXJzZXJFbGVtZW50Q29udGVudChzb3VyY2VFbGVtZW50LCBpdGVtKSA/PyAnJyk7XHJcbiAgICAgICAgfVxyXG4gICAgICAgIGVsc2Uge1xyXG4gICAgICAgICAgICB0YXJnZXRMYWJlbCA9IHRoaXMucGFyc2VyRWxlbWVudENvbnRlbnQoc291cmNlRWxlbWVudCwgbGFiZWwpO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgaWYodGFyZ2V0TGFiZWwgPT09ICd1bmRlZmluZWQnKSB7XHJcbiAgICAgICAgICAgIHRhcmdldExhYmVsID0gJyc7XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICByZXR1cm4gdGFyZ2V0TGFiZWwgPz8gJyc7XHJcbiAgICB9XHJcblxyXG4gICAgLyoqXHJcbiAgICAgKiDmsYLop6NpbmRleOaWh+acrFxyXG4gICAgICogQHBhcmFtIGluZGV4T3B0aW9ucyBcclxuICAgICAqIEBwYXJhbSBzb3VyY2VFbGVtZW50IFxyXG4gICAgICovXHJcbiAgICBwcml2YXRlIHJlc29sdmVFbGVtZW50SW5kZXgoaW5kZXhPcHRpb25zOiBFbGVtZW50SW5kZXhPcHRpb24sIHNvdXJjZUVsZW1lbnQ6IFNvdXJjZUVsZW1lbnQpIHtcclxuICAgICAgICBpZihpbmRleE9wdGlvbnMgPT09IHVuZGVmaW5lZCB8fCBpbmRleE9wdGlvbnMgPT09IG51bGwpIHtcclxuICAgICAgICAgICAgcmV0dXJuO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAg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gIGlmIChBcnJheS5pc0FycmF5KGZpZWxkcykpIHtcclxuICAgICAgICAgICAgbGV0IHZhbHVlcyA9IGZpZWxkcy5tYXAoaXRlbSA9PiBzb3VyY2VFbGVtZW50W2l0ZW1dKTtcclxuXHJcbiAgICAgICAgICAgIHZhbHVlcy5tYXAoKGl0ZW0sIGluZGV4KSA9PiB7XHJcbiAgICAgICAgICAgICAgICBmb3JtYXRMYWJlbCA9IGZvcm1hdExhYmVsLnJlcGxhY2UoJ1snICsgZmllbGRzW2luZGV4XSArICddJywgaXRlbSk7XHJcbiAgICAgICAgICAgIH0pO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgcmV0dXJuIGZvcm1hdExhYmVsO1xyXG4gICAgfVxyXG5cclxuICAgIC8qKlxyXG4gICAgICog55Sxc291cmNl5Lit55qE6L+e5o6l5a2X5q616I635Y+W55yf5a6e55qE6L+e5o6l55uu5qCH5YWD57SgXHJcbiAgICAgKiBAcGFyYW0gZWxlbWVudENvbnRhaW5lclxyXG4gICAgICogQHBhcmFtIGVsZW1lbnRcclxuICAgICAqIEBwYXJhbSBsaW5rVGFyZ2V0IFxyXG4gICAgICovXHJcbiAgICBwcml2YXRlIGZldGNoVGFyZ2V0RWxlbWVudHMobGF5b3V0R3JvdXBUYWJsZTogTGF5b3V0R3JvdXBUYWJsZSwgZWxlbWVudDogRWxlbWVudCwgbGlua1RhcmdldDogTGlua1RhcmdldCk6IEVsZW1lbnQge1xyXG4gICAgICAgIGxldCBncm91cE5hbWU6IHN0cmluZyA9IGVsZW1lbnQuZ3JvdXBOYW1lLFxyXG4gICAgICAgICAgICBlbGVtZW50TmFtZSA9IGVsZW1lbnQudHlwZSxcclxuICAgICAgICAgICAgZWxlbWVudExpc3Q6IEVsZW1lbnRbXSxcclxuICAgICAgICAgICAgdGFyZ2V0SWQgPSBsaW5rVGFyZ2V0LFxyXG4gICAgICAgICAgICB0YXJnZXRHcm91cE5hbWUgPSBncm91cE5hbWUsXHJcbiAgICAgICAgICAgIHRhcmdldEVsZW1lbnQgPSBudWxsO1xyXG5cclxuICAgICAgICBpZiAobGlua1RhcmdldCA9PT0gbnVsbCB8fCBsaW5rVGFyZ2V0ID09PSB1bmRlZmluZWQpIHtcclxuICAgICAgICAgICAgcmV0dXJuIG51bGw7XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICBpZiAodHlwZW9mIGxpbmtUYXJnZXQgPT09ICdudW1iZXInIHx8ICh0eXBlb2YgbGlua1RhcmdldCA9PT0gJ3N0cmluZycgJiYgIWxpbmtUYXJnZXQuaW5jbHVkZXMoJyMnKSkpIHtcclxuICAgICAgICAgICAgbGlua1RhcmdldCA9ICdkZWZhdWx0IycgKyBsaW5rVGFyZ2V0O1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgbGV0IGluZm8gPSBsaW5rVGFyZ2V0LnNwbGl0KCcjJyk7XHJcblxyXG4gICAgICAgIHRhcmdldElkID0gaW5mby5wb3AoKTtcclxuXHJcbiAgICAgICAgaWYgKGluZm8ubGVuZ3RoID4gMSkge1xyXG4gICAgICAgICAgICBlbGVtZW50TmFtZSA9IGluZm8ucG9wKCk7XHJcbiAgICAgICAgICAgIHRhcmdldEdyb3VwTmFtZSA9IGluZm8ucG9wKCk7XHJcbiAgICAgICAgfVxyXG4gICAgICAgIGVsc2Uge1xyXG4gICAgICAgICAgICBsZXQgZmllbGQgPSBpbmZvLnBvcCgpO1xyXG4gICAgICAgICAgICBpZiAobGF5b3V0R3JvdXBUYWJsZS5nZXQodGFyZ2V0R3JvdXBOYW1lKS5lbGVtZW50LmZpbmQoaXRlbSA9PiBpdGVtLnR5cGUgPT09IGZpZWxkKSkge1xyXG4gICAgICAgICAgICAgICAgZWxlbWVudE5hbWUgPSBmaWVsZDtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICBlbHNlIGlmIChsYXlvdXRHcm91cFRhYmxlLmhhcyhmaWVsZCkpIHtcclxuICAgICAgICAgICAgICAgIHRhcmdldEdyb3VwTmFtZSA9IGZpZWxkO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIGVsc2Uge1xyXG4gICAgICAgICAgICAgICAgcmV0dXJuIG51bGw7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIGVsZW1lbnRMaXN0ID0gbGF5b3V0R3JvdXBUYWJsZS5nZXQodGFyZ2V0R3JvdXBOYW1lKS5lbGVtZW50LmZpbHRlcihpdGVtID0+IGl0ZW0udHlwZSA9PT0gZWxlbWVudE5hbWUpO1xyXG5cclxuICAgICAgICAvLyDoi6Xnm67moIdlbGVtZW505LiN5a2Y5Zyo77yM6L+U5ZuebnVsbFxyXG4gICAgICAgIGlmIChlbGVtZW50TGlzdCA9PT0gdW5kZWZpbmVkKSB7XHJcbiAgICAgICAgICAgIHJldHVybiBudWxsO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgdGFyZ2V0RWxlbWVudCA9IGVsZW1lbnRMaXN0LmZpbmQoaXRlbSA9PiBpdGVtLnNvdXJjZUlkID09PSB0YXJnZXRJZCk7XHJcbiAgICAgICAgcmV0dXJuIHRhcmdldEVsZW1lbnQgfHwgbnVsbDtcclxuICAgIH1cclxuXHJcbiAgICAvKipcclxuICAgICAqIOajgOa1i+aUueaMh+mSiOaYr+WQpuS4uuW4uOinhOaMh+mSiO+8iOaMh+WQkeWPpuS4gOS4qmdyb3Vw77yJXHJcbiAgICAgKiBAcGFyYW0gbGlua0lkIFxyXG4gICAgICovXHJcbiAgICBwcml2YXRlIGlzR2VuZXJhbExpbmsobGlua0lkOiBzdHJpbmcpOiBib29sZWFuIHtcclxuICAgICAgICBsZXQgY291bnRlciA9IDA7XHJcblxyXG4gICAgICAgIGZvciAobGV0IGkgPSAwOyBpIDwgbGlua0lkLmxlbmd0aDsgaSsrKSB7XHJcbiAgICAgICAgICAgIGlmIChsaW5rSWRbaV0gPT09ICcjJykge1xyXG4gICAgICAgICAgICAgICAgY291bnRlcisrO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICByZXR1cm4gY291bnRlciA8PSAyO1xyXG4gICAgfVxyXG5cclxuICAgIC8qKlxyXG4gICAgICog6ZSA5q+BXHJcbiAgICAgKi9cclxuICAgIGRlc3Ryb3koKSB7XHJcbiAgICAgICAgdGhpcy5sYXlvdXRHcm91cFRhYmxlID0gbnVsbDtcclxuICAgIH1cclxufTsiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///10\n") }, function (module, exports, __webpack_require__) { "use strict"; eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.ViewManager = void 0;\r\nconst modelData_1 = __webpack_require__(2);\r\nconst StructV_1 = __webpack_require__(0);\r\nconst main_1 = __webpack_require__(12);\r\nconst freed_1 = __webpack_require__(15);\r\nconst leak_1 = __webpack_require__(16);\r\nconst layouter_1 = __webpack_require__(17);\r\nconst util_1 = __webpack_require__(3);\r\nconst eventBus_1 = __webpack_require__(8);\r\nclass ViewManager {\r\n constructor(engine, DOMContainer) {\r\n this.engine = engine;\r\n this.layouter = new layouter_1.Layouter(engine);\r\n this.mainContainer = new main_1.MainContainer(engine, DOMContainer, { tooltip: true });\r\n this.prevLayoutGroupTable = new Map();\r\n this.prevFreedElements = [];\r\n this.prevModelList = [];\r\n const options = this.engine.engineOptions;\r\n if (options.freedContainer) {\r\n this.freedContainer = new freed_1.FreedContainer(engine, options.freedContainer, { fitCenter: true, tooltip: true });\r\n }\r\n if (options.leakContainer) {\r\n this.leakContainer = new leak_1.LeakContainer(engine, options.leakContainer, { fitCenter: true, tooltip: false });\r\n }\r\n this.shadowG6Instance = new StructV_1.SV.G6.Graph({\r\n container: DOMContainer.cloneNode()\r\n });\r\n }\r\n build(modelList) {\r\n modelList.forEach(item => {\r\n const type = item instanceof modelData_1.Link ? 'edge' : 'node';\r\n this.shadowG6Instance.addItem(type, item.cloneProps());\r\n item.shadowG6Item = this.shadowG6Instance.findById(item.id);\r\n });\r\n }\r\n handleFreedLabel(freedElement, prevLayoutGroup) {\r\n if (prevLayoutGroup === undefined) {\r\n return;\r\n }\r\n const prevElementList = prevLayoutGroup.element;\r\n freedElement.map(item => {\r\n var _a;\r\n let prevElement = prevElementList.find(el => el.id === item.id), prevLabel = (_a = prevElement.get('label')) !== null && _a !== void 0 ? _a : '';\r\n item.set('label', prevLabel);\r\n });\r\n }\r\n getFreedModelList(prevLayoutGroupTable, layoutGroupTable) {\r\n let freedElements = [], freedMarkers = [], removeModels = [], freedGroupName;\r\n layoutGroupTable.forEach((group, key) => {\r\n let targetElements = group.element.filter(item => item.freed);\r\n targetElements.forEach(fItem => {\r\n removeModels.push(...util_1.Util.removeFromList(group.element, item => item.id === fItem.id), ...util_1.Util.removeFromList(group.link, item => item.element.id === fItem.id || item.target.id === fItem.id), ...util_1.Util.removeFromList(group.marker, item => item.target.id === fItem.id));\r\n });\r\n removeModels.map(model => {\r\n util_1.Util.removeFromList(group.modelList, item => item.id === model.id);\r\n });\r\n targetElements.forEach(item => {\r\n if (this.prevFreedElements.find(prevEle => prevEle.id === item.id) === undefined) {\r\n freedGroupName = key;\r\n freedElements.push(item);\r\n }\r\n });\r\n });\r\n freedElements.map(item => {\r\n const markers = Object.keys(item.markers).map(name => item.markers[name]);\r\n freedMarkers.push(...markers);\r\n });\r\n this.handleFreedLabel(freedElements, prevLayoutGroupTable.get(freedGroupName));\r\n this.prevFreedElements = freedElements;\r\n return [...freedElements, ...freedMarkers];\r\n }\r\n getLeakModelList(prevModelList, modelList) {\r\n const leakModelList = prevModelList.filter(item => !modelList.find(n => n.id === item.id)), elements = leakModelList.filter(item => item instanceof modelData_1.Element && item.freed === false), links = leakModelList.filter(item => item instanceof modelData_1.Link), elementIds = [], res = [];\r\n elements.forEach(item => {\r\n elementIds.push(item.id);\r\n item.set('style', {\r\n fill: '#ccc'\r\n });\r\n });\r\n for (let i = 0; i < links.length; i++) {\r\n let sourceId = links[i].element.id, targetId = links[i].target.id;\r\n links[i].set('style', {\r\n stroke: '#333'\r\n });\r\n if (elementIds.find(item => item === sourceId) === undefined || elementIds.find(item => item === targetId) === undefined) {\r\n links.splice(i, 1);\r\n i--;\r\n }\r\n }\r\n res.push(...elements, ...links);\r\n res.map(item => {\r\n item.isLeak = true;\r\n });\r\n return res;\r\n }\r\n reLayout(layoutGroupTable) {\r\n this.layouter.layoutAll(this.mainContainer, layoutGroupTable);\r\n }\r\n getG6Instance() {\r\n return this.mainContainer.getG6Instance();\r\n }\r\n refresh() {\r\n this.mainContainer.getG6Instance().refresh();\r\n }\r\n resize(containerName, width, height) {\r\n if (containerName === 'main') {\r\n this.mainContainer.getG6Instance().changeSize(width, height);\r\n }\r\n if (containerName === 'freed') {\r\n this.freedContainer.getG6Instance().changeSize(width, height);\r\n }\r\n if (containerName === 'leak') {\r\n this.leakContainer.getG6Instance().changeSize(width, height);\r\n }\r\n }\r\n renderAll(layoutGroupTable) {\r\n this.shadowG6Instance.clear();\r\n let modelList = util_1.Util.convertGroupTable2ModelList(layoutGroupTable), leakModelList = [], freedModelList = [];\r\n this.build(modelList);\r\n if (this.leakContainer) {\r\n leakModelList = this.getLeakModelList(this.prevModelList, modelList);\r\n this.build(leakModelList);\r\n }\r\n this.layouter.layoutAll(this.mainContainer, layoutGroupTable);\r\n freedModelList = this.getFreedModelList(this.prevLayoutGroupTable, layoutGroupTable);\r\n if (this.freedContainer && freedModelList.length) {\r\n this.freedContainer.fitCenter(freedModelList);\r\n this.freedContainer.render(freedModelList);\r\n eventBus_1.EventBus.emit('onFreed', freedModelList);\r\n }\r\n modelList = util_1.Util.convertGroupTable2ModelList(layoutGroupTable);\r\n this.mainContainer.render(modelList);\r\n if (this.leakContainer && leakModelList.length) {\r\n this.leakContainer.render(leakModelList);\r\n eventBus_1.EventBus.emit('onLeak', leakModelList);\r\n }\r\n this.prevLayoutGroupTable = layoutGroupTable;\r\n this.prevModelList = modelList;\r\n }\r\n destroy() {\r\n this.shadowG6Instance.destroy();\r\n this.mainContainer.destroy();\r\n this.freedContainer && this.freedContainer.destroy();\r\n this.leakContainer && this.leakContainer.destroy();\r\n }\r\n}\r\nexports.ViewManager = ViewManager;\r\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvVmlldy92aWV3TWFuYWdlci50cz9kMzBlIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUNBLDJDQUFrRTtBQUdsRSx5Q0FBZ0M7QUFDaEMsdUNBQWlEO0FBQ2pELHdDQUFtRDtBQUNuRCx1Q0FBaUQ7QUFDakQsMkNBQXNDO0FBRXRDLHNDQUFzQztBQUN0QywwQ0FBOEM7QUFJOUMsTUFBYSxXQUFXO0lBYXBCLFlBQVksTUFBYyxFQUFFLFlBQXlCO1FBQ2pELElBQUksQ0FBQyxNQUFNLEdBQUcsTUFBTSxDQUFDO1FBQ3JCLElBQUksQ0FBQyxRQUFRLEdBQUcsSUFBSSxtQkFBUSxDQUFDLE1BQU0sQ0FBQyxDQUFDO1FBQ3JDLElBQUksQ0FBQyxhQUFhLEdBQUcsSUFBSSxvQkFBYSxDQUFDLE1BQU0sRUFBRSxZQUFZLEVBQUUsRUFBRSxPQUFPLEVBQUUsSUFBSSxFQUFFLENBQUMsQ0FBQztRQUNoRixJQUFJLENBQUMsb0JBQW9CLEdBQUcsSUFBSSxHQUFHLEVBQUUsQ0FBQztRQUN0QyxJQUFJLENBQUMsaUJBQWlCLEdBQUcsRUFBRSxDQUFDO1FBQzVCLElBQUksQ0FBQyxhQUFhLEdBQUcsRUFBRSxDQUFDO1FBRXhCLE1BQU0sT0FBTyxHQUFrQixJQUFJLENBQUMsTUFBTSxDQUFDLGFBQWEsQ0FBQztRQUV6RCxJQUFJLE9BQU8sQ0FBQyxjQUFjLEVBQUU7WUFDeEIsSUFBSSxDQUFDLGNBQWMsR0FBRyxJQUFJLHNCQUFjLENBQU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xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgdGhpcy5zaGFkb3dHNkluc3RhbmNlID0gbmV3IFNWLkc2LkdyYXBoKHtcclxuICAgICAgICAgICAgY29udGFpbmVyOiBET01Db250YWluZXIuY2xvbmVOb2RlKClcclxuICAgICAgICB9KTtcclxuICAgIH1cclxuXHJcbiAgICAvKipcclxuICAgICAqIOWvueavj+S4gOS4qiBtb2RlbCDlnKjnprvlsY8gQ2FudmFzIOS4iuaehOW7uiBHNiBpdGVt77yM55So5L2c5biD5bGAXHJcbiAgICAgKiBAcGFyYW0gY29uc3RydWN0TGlzdFxyXG4gICAgICovXHJcbiAgICBwcml2YXRlIGJ1aWxkKG1vZGVsTGlzdDogTW9kZWxbXSkge1xyXG4gICAgICAgIG1vZGVsTGlzdC5mb3JFYWNoKGl0ZW0gPT4ge1xyXG4gICAgICAgICAgICBjb25zdCB0eXBlID0gaXRlbSBpbnN0YW5jZW9mIExpbmsgPyAnZWRnZScgOiAnbm9kZSc7XHJcbiAgICAgICAgICAgIHRoaXMuc2hhZG93RzZJbnN0YW5jZS5hZGRJdGVtKHR5cGUsIGl0ZW0uY2xvbmVQcm9wcygpKTtcclxuICAgICAgICAgICAgaXRlbS5zaGFkb3dHNkl0ZW0gPSB0aGlzLnNoYWRvd0c2SW5zdGFuY2UuZmluZEJ5SWQoaXRlbS5pZCk7XHJcbiAgICAgICAgfSk7XHJcbiAgICB9XHJcblxyXG4gICAgLyoqXHJcbiAgICAgKiBcclxuICAgICAqIEBwYXJhbSBmcmVlZEVsZW1lbnQgXHJcbiAgICAgKiBAcGFyYW0gcHJldkxheW91dEdyb3VwIFxyXG4gICAgICovXHJcbiAgICBwcml2YXRlIGhhbmRsZUZyZWVkTGFiZWwoZnJlZWRFbGVtZW50OiBFbGVtZW50W10sIHByZXZMYXlvdXRHcm91cDogTGF5b3V0R3JvdXApIHtcclxuICAgICAgICBpZiAocHJldkxheW91dEdyb3VwID09PSB1bmRlZmluZWQpIHtcclxuICAgICAgICAgICAgcmV0dXJuO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgY29uc3QgcHJldkVsZW1lbnRMaXN0OiBFbGVtZW50W10gPSBwcmV2TGF5b3V0R3JvdXAuZWxlbWVudDtcclxuXHJcbiAgICAgICAgZnJlZWRFbGVtZW50Lm1hcChpdGVtID0+IHtcclxuICAgICAgICAgICAgbGV0IHByZXZFbGVtZW50ID0gcHJldkVsZW1lbnRMaXN0LmZpbmQoZWwgPT4gZWwuaWQgPT09IGl0ZW0uaWQpLFxyXG4gICAgICAgICAgICAgICAgcHJldkxhYmVsID0gcHJldkVsZW1lbnQuZ2V0KCdsYWJlbCcpID8/ICcnO1xyXG5cclxuICAgICAgICAgICAgaXRlbS5zZXQoJ2xhYmVsJywgcHJldkxhYmVsKTtcclxuICAgICAgICB9KTtcclxuICAgIH1cclxuXHJcbiAgICAvKipcclxuICAgICAqIOiOt+WPluiiqyBmcmVlIOeahOiKgueCuVxyXG4gICAgICogQHBhcmFtIGxheW91dEdyb3VwVGFibGUgXHJcbiAgICAgKiBAcmV0dXJucyBcclxuICAgICAqL1xyXG4gICAgcHJpdmF0ZSBnZXRGcmVlZE1vZGVsTGlzdChwcmV2TGF5b3V0R3JvdXBUYWJsZTogTGF5b3V0R3JvdXBUYWJsZSwgbGF5b3V0R3JvdXBUYWJsZTogTGF5b3V0R3JvdXBUYWJsZSk6IE1vZGVsW10ge1xyXG4gICAgICAgIGxldCBmcmVlZEVsZW1lbnRzOiBFbGVtZW50W10gPSBbXSxcclxuICAgICAgICAgICAgZnJlZWRNYXJrZXJzOiBNYXJrZXJbXSA9IFtdLFxyXG4gICAgICAgICAgICByZW1vdmVNb2RlbHM6IE1vZGVsW10gPSBbXSxcclxuICAgICAgICAgICAgZnJlZWRHcm91cE5hbWU6IHN0cmluZztcclxuXHJcbiAgICAgICAgbGF5b3V0R3JvdXBUYWJsZS5mb3JFYWNoKChncm91cCwga2V5KSA9PiB7XHJcbiAgICAgICAgICAgIG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JnZXRFbGVtZW50cy5mb3JFYWNoKGl0ZW0gPT4ge1xyXG4gICAgICAgICAgICAgICAgaWYgKHRoaXMucHJldkZyZWVkRWxlbWVudHMuZmluZChwcmV2RWxlID0+IHByZXZFbGUuaWQgPT09IGl0ZW0uaWQpID09PSB1bmRlZmluZWQpIHtcclxuICAgICAgICAgICAgICAgICAgICBmcmVlZEdyb3VwTmFtZSA9IGtleTtcclxuICAgICAgICAgICAgICAgICAgICBmcmVlZEVsZW1lbnRzLnB1c2goaXRlbSk7XHJcbiAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIH0pO1xyXG4gICAgICAgIH0pO1xyXG5cclxuICAgICAgICBmcmVlZEVsZW1lbnRzLm1hcChpdGVtID0+IHtcclxuICAgICAgICAgICAgY29uc3QgbWFya2VycyA9IE9iamVjdC5rZXlzKGl0ZW0ubWFya2VycykubWFwKG5hbWUgPT4gaXRlbS5tYXJrZXJzW25hbWVdKTtcclxuICAgICAgICAgICAgZnJlZWRNYXJrZXJzLnB1c2goLi4ubWFya2Vycyk7XHJcbiAgICAgICAgfSk7XHJcblxyXG4gICAgICAgIHRoaXMuaGFuZGxlRnJlZWRMYWJlbChmcmVlZEVsZW1lbnRzLCBwcmV2TGF5b3V0R3JvdXBUYWJsZS5nZXQoZnJlZWRHcm91cE5hbWUpKTtcclxuICAgICAgICB0aGlzLnByZXZGcmVlZEVsZW1lbnRzID0gZnJlZWRFbGVtZW50cztcclxuXHJcbiAgICAgICAgcmV0dXJuIFsuLi5mcmVlZEVsZW1lbnRzLCAuLi5mcmVlZE1hcmtlcnNdO1xyXG4gICAgfVxyXG5cclxuICAgIC8qKlxyXG4gICAgICog6I635Y+W6KKr5rOE6Zyy55qE6IqC54K5XHJcbiAgICAgKiBAcGFyYW0gcHJldk1vZGVsTGlzdCBcclxuICAgICAqIEBwYXJhbSBtb2RlbExpc3QgXHJcbiAgICAgKiBAcmV0dXJucyBcclxuICAgICAqL1xyXG4gICAgcHJpdmF0ZSBn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gIGxpbmtzW2ldLnNldCgnc3R5bGUnLCB7XHJcbiAgICAgICAgICAgICAgICBzdHJva2U6ICcjMzMzJ1xyXG4gICAgICAgICAgICB9KTtcclxuXHJcbiAgICAgICAgICAgIGlmIChlbGVtZW50SWRzLmZpbmQoaXRlbSA9PiBpdGVtID09PSBzb3VyY2VJZCkgPT09IHVuZGVmaW5lZCB8fCBlbGVtZW50SWRzLmZpbmQoaXRlbSA9PiBpdGVtID09PSB0YXJnZXRJZCkgPT09IHVuZGVmaW5lZCkge1xyXG4gICAgICAgICAgICAgICAgbGlua3Muc3BsaWNlKGksIDEpO1xyXG4gICAgICAgICAgICAgICAgaS0tO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICByZXMucHVzaCguLi5lbGVtZW50cywgLi4ubGlua3MpO1xyXG5cclxuICAgICAgICByZXMubWFwKGl0ZW0gPT4ge1xyXG4gICAgICAgICAgICBpdGVtLmlzTGVhayA9IHRydWU7XHJcbiAgICAgICAgfSk7XHJcblxyXG4gICAgICAgIHJldHVybiByZXM7XHJcbiAgICB9XHJcblxyXG4gICAgLy8gLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLVxyXG5cclxuICAgIC8qKlxyXG4gICAgICog5a+55Li76KeG5Zu+6L+b6KGM6YeN5paw5biD5bGAXHJcbiAgICAgKiBAcGFyYW0gbGF5b3V0R3JvdXBUYWJsZVxyXG4gICAgICovXHJcbiAgICByZUxheW91dChsYXlvdXRHcm91cFRhYmxlOiBMYXlvdXRHcm91cFRhYmxlKSB7XHJcbiAgICAgICAgdGhpcy5sYXlvdXRlci5sYXlvdXRBbGwodGhpcy5tYWluQ29udGFpbmVyLCBsYXlvdXRHcm91cFRhYmxlKTtcclxuICAgIH1cclxuXHJcblxyXG4gICAgLyoqXHJcbiAgICAgKiDojrflj5YgZzYg5a6e5L6LXHJcbiAgICAgKi9cclxuICAgIGdldEc2SW5zdGFuY2UoKSB7XHJcbiAgICAgICAgcmV0dXJuIHRoaXMubWFpbkNvbnRhaW5lci5nZXRHNkluc3RhbmNlKCk7XHJcbiAgICB9XHJcblxyXG4gICAgLyoqXHJcbiAgICAgKiDliLfmlrDop4blm75cclxuICAgICAqL1xyXG4gICAgcmVmcmVzaCgpIHtcclxuICAgICAgICB0aGlzLm1haW5Db250YWluZXIuZ2V0RzZJbnN0YW5jZSgpLnJlZnJlc2goKTtcclxuICAgIH1cclxuXHJcbiAgICAvKipcclxuICAgICAqIOmHjeaWsOiwg+aVtOWuueWZqOWwuuWvuFxyXG4gICAgICogQHBhcmFtIGNvbnRhaW5lck5hbWVcclxuICAgICAqIEBwYXJhbSB3aWR0aCBcclxuICAgICAqIEBwYXJhbSBoZWlnaHQgXHJcbiAgICAgKi9cclxuICAgIHJlc2l6ZShjb250YWluZXJOYW1lOiBzdHJpbmcsIHdpZHRoOiBudW1iZXIsIGhlaWdodDogbnVtYmVyKSB7XHJcbiAgICAgICAgaWYgKGNvbnRhaW5lck5hbWUgPT09ICdtYWluJykge1xyXG4gICAgICAgICAgICB0aGlzLm1haW5Db250YWluZXIuZ2V0RzZJbnN0YW5jZSgpLmNoYW5nZVNpemUod2lkdGgsIGhlaWdodCk7XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICBpZiAoY29udGFpbmVyTmFtZSA9PT0gJ2ZyZWVkJykge1xyXG4gICAgICAgICAgICB0aGlzLmZyZWVkQ29udGFpbmVyLmdldEc2SW5zdGFuY2UoKS5jaGFuZ2VTaXplKHdpZHRoLCBoZWlnaHQpO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgaWYgKGNvbnRhaW5lck5hbWUgPT09ICdsZWFrJykge1xyXG4gICAgICAgICAgICB0aGlzLmxlYWtDb250YWluZXIuZ2V0RzZJbnN0YW5jZSgpLmNoYW5nZVNpemUod2lkdGgsIGhlaWdodCk7XHJcbiAgICAgICAgfVxyXG5cclxuICAgIH1cclxuXHJcbiAgICAvKipcclxuICAgICAqIOa4suafk+aJgOacieinhuWbvlxyXG4gICAgICogQHBhcmFtIG1vZGVscyBcclxuICAgICAqIEBwYXJhbSBsYXlvdXRGbiBcclxuICAgICAqL1xyXG4gICAgcmVuZGVyQWxsKGxheW91dEdyb3VwVGFibGU6IExheW91dEdyb3VwVGFibGUpIHtcclxuICAgICAgICB0aGlzLnNoYWRvd0c2SW5zdGFuY2UuY2xlYXIoKTtcclxuXHJcbiAgICAgICAgbGV0IG1vZGVsTGlzdCA9IFV0aWwuY29udmVydEdyb3VwVGFibGUyTW9kZWxMaXN0KGxheW91dEdyb3VwVGFibGUpLFxyXG4gICAgICAgICAgICBsZWFrTW9kZWxMaXN0ID0gW10sXHJcbiAgICAgICAgICAgIGZyZWVkTW9kZWxMaXN0ID0gW107XHJcblxyXG4gICAgICAgIHRoaXMuYnVpbGQobW9kZWxMaXN0KTtcclxuXHJcbiAgICAgICAgaWYgKHRoaXMubGVha0NvbnRhaW5lcikge1xyXG4gICAgICAgICAgICBsZWFrTW9kZWxMaXN0ID0gdGhpcy5nZXRMZWFrTW9kZWxMaXN0KHRoaXMucHJldk1vZGVsTGlzdCwgbW9kZWxMaXN0KTtcclxuICAgICAgICAgICAgdGhpcy5idWlsZChsZWFrTW9kZWxMaXN0KTtcclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIC8vIOi/m+ihjOW4g+WxgO+8iOiuvue9rm1vZGVs55qEeO+8jHnvvIlcclxuICAgICAgICB0aGlzLmxheW91dGVyLmxheW91dEFsbCh0aGlzLm1haW5Db250YWluZXIsIGxheW91dEdyb3VwVGFibGUpO1xyXG5cclxuICAgICAgICBmcmVlZE1vZGVsTGlzdCA9IHRoaXMuZ2V0RnJlZWRNb2RlbExpc3QodGhpcy5wcmV2TGF5b3V0R3JvdXBUYWJsZSwgbGF5b3V0R3JvdXBUYWJsZSk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7XHJcbiAgICAgICAgdGhpcy5zaGFkb3dHNkluc3RhbmNlLmRlc3Ryb3koKTtcclxuICAgICAgICB0aGlzLm1haW5Db250YWluZXIuZGVzdHJveSgpO1xyXG4gICAgICAgIHRoaXMuZnJlZWRDb250YWluZXIgJiYgdGhpcy5mcmVlZENvbnRhaW5lci5kZXN0cm95KCk7XHJcbiAgICAgICAgdGhpcy5sZWFrQ29udGFpbmVyICYmIHRoaXMubGVha0NvbnRhaW5lci5kZXN0cm95KCk7XHJcbiAgICB9XHJcbn1cclxuXHJcblxyXG5cclxuXHJcblxyXG5cclxuXHJcblxyXG5cclxuXHJcblxyXG4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///11\n") }, function (module, exports, __webpack_require__) { "use strict"; eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.MainContainer = void 0;\r\nconst modelData_1 = __webpack_require__(2);\r\nconst container_1 = __webpack_require__(4);\r\nclass MainContainer extends container_1.Container {\r\n constructor(engine, DOMContainer, g6Options = {}) {\r\n super(engine, DOMContainer, g6Options);\r\n }\r\n initBehaviors(optionsTable) {\r\n const dragNodeTable = {}, selectNodeTable = {}, interactionOptions = this.engine.interactionOptions, defaultModes = [];\r\n Object.keys(optionsTable).forEach(item => {\r\n dragNodeTable[item] = optionsTable[item].behavior.dragNode;\r\n selectNodeTable[item] = optionsTable[item].behavior.selectNode;\r\n });\r\n if (interactionOptions.drag) {\r\n defaultModes.push('drag-canvas');\r\n }\r\n if (interactionOptions.zoom) {\r\n defaultModes.push('zoom-canvas');\r\n }\r\n const dragNodeFilter = node => {\r\n let model = node.item.getModel();\r\n if (node.item === null) {\r\n return false;\r\n }\r\n if (model.SVModelType === 'marker') {\r\n return false;\r\n }\r\n let dragNode = optionsTable[model.SVLayouter].behavior.dragNode;\r\n if (typeof dragNode === 'boolean') {\r\n return dragNode;\r\n }\r\n if (Array.isArray(dragNode) && dragNode.indexOf(model.SVModelName) > -1) {\r\n return true;\r\n }\r\n return false;\r\n };\r\n const selectNodeFilter = node => {\r\n let model = node.item.getModel();\r\n if (node.item === null) {\r\n return false;\r\n }\r\n if (model.SVModelType === 'marker') {\r\n return false;\r\n }\r\n let selectNode = optionsTable[model.SVLayouter].behavior.selectNode;\r\n if (typeof selectNode === 'boolean') {\r\n return selectNode;\r\n }\r\n if (Array.isArray(selectNode) && selectNode.indexOf(model.SVModelName) > -1) {\r\n return true;\r\n }\r\n return false;\r\n };\r\n defaultModes.push({\r\n type: 'drag-node',\r\n shouldBegin: dragNodeFilter\r\n });\r\n defaultModes.push({\r\n type: 'click-select',\r\n shouldBegin: selectNodeFilter\r\n });\r\n return defaultModes;\r\n }\r\n afterInitRenderer() {\r\n let g6Instance = this.getG6Instance(), marker = null, markerX = null, markerY = null, dragStartX = null, dragStartY = null;\r\n g6Instance.on('node:dragstart', ev => {\r\n const model = ev.item.getModel();\r\n if (model.SVModelType === 'marker') {\r\n return;\r\n }\r\n const dragNode = this.engine.optionsTable[model.SVLayouter].behavior.dragNode;\r\n if (dragNode === false) {\r\n return;\r\n }\r\n if (Array.isArray(dragNode) && dragNode.find(item => item === model.SVModelName) === undefined) {\r\n return;\r\n }\r\n marker = g6Instance.findById(model.markerId);\r\n if (marker) {\r\n markerX = marker.getModel().x,\r\n markerY = marker.getModel().y;\r\n dragStartX = ev.canvasX;\r\n dragStartY = ev.canvasY;\r\n }\r\n });\r\n g6Instance.on('node:dragend', ev => {\r\n marker = null;\r\n markerX = null,\r\n markerY = null,\r\n dragStartX = null,\r\n dragStartY = null;\r\n });\r\n g6Instance.on('node:drag', ev => {\r\n if (!marker) {\r\n return;\r\n }\r\n let dx = ev.canvasX - dragStartX, dy = ev.canvasY - dragStartY, zoom = g6Instance.getZoom();\r\n marker.updatePosition({\r\n x: markerX + dx / zoom,\r\n y: markerY + dy / zoom\r\n });\r\n });\r\n }\r\n handleChangeModels(models) {\r\n const changeHighlightColor = this.interactionOptions.changeHighlight;\r\n if (this.renderer.getIsFirstRender()) {\r\n return;\r\n }\r\n if (!changeHighlightColor || typeof changeHighlightColor !== 'string') {\r\n return;\r\n }\r\n models.forEach(item => {\r\n if (item instanceof modelData_1.Link) {\r\n item.set('style', {\r\n stroke: changeHighlightColor\r\n });\r\n }\r\n else {\r\n item.set('style', {\r\n fill: changeHighlightColor\r\n });\r\n }\r\n });\r\n }\r\n}\r\nexports.MainContainer = MainContainer;\r\n;\r\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvVmlldy9jb250YWluZXIvbWFpbi50cz9hYjU0Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUNBLDJDQUFvRDtBQUVwRCwyQ0FBd0M7QUFPdkMsTUFBYSxhQUFjLFNBQVEscUJBQVM7SUFFekMsWUFBWSxNQUFjLEVBQUUsWUFBeUIsRUFBRSxZQUFvQyxFQUFHO1FBQzFGLEtBQUssQ0FBQyxNQUFNLEVBQUUsWUFBWSxFQUFFLFNBQVMsQ0FBQyxDQUFDO0lBQzNDLENBQUM7SUFPUyxhQUFhLENBQUMsWUFBbUQ7UUFDdkUsTUFBTSxhQUFhLEdBQTBDLEVBQUcsRUFDMUQsZUFBZSxHQUEwQyxFQUFHLEVBQzVELGtCQUFrQixHQUF1QixJQUFJLENBQUMsTUFBTSxDQUFDLGtCQUFrQixFQUN2RSxZQUFZLEdBQUcsRUFBRSxDQUFDO1FBRXhCLE1BQU0sQ0FBQyxJQUFJLENBQUMsWUFBWSxDQUFDLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxFQUFFO1lBQ3JDLGFBQWEsQ0FBQyxJQUFJLENBQUMsR0FBRyxZQUFZLENBQUMsSUFBSSxDQUFDLENBQUMsUUFBUSxDQUFDLFFBQVEsQ0FBQztZQUMzRCxlQUFlLENBQUMsSUFBSSxDQUFDLEdBQUcsWUFBWSxDQUFDLElBQUksQ0FB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lvbnMuem9vbSkge1xyXG4gICAgICAgICAgICBkZWZhdWx0TW9kZXMucHVzaCgnem9vbS1jYW52YXMnKTtcclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIGNvbnN0IGRyYWdOb2RlRmlsdGVyID0gbm9kZSA9PiB7XHJcbiAgICAgICAgICAgIGxldCBtb2RlbCA9IG5vZGUuaXRlbS5nZXRNb2RlbCgpO1xyXG5cclxuICAgICAgICAgICAgaWYobm9kZS5pdGVtID09PSBudWxsKSB7XHJcbiAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7XHJcbiAgICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICAgIGlmKG1vZGVsLlNWTW9kZWxUeXBlID09PSAnbWFya2VyJykge1xyXG4gICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlO1xyXG4gICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICBsZXQgZHJhZ05vZGUgPSBvcHRpb25zVGFibGVbbW9kZWwuU1ZMYXlvdXRlcl0uYmVoYXZpb3IuZHJhZ05vZGU7XHJcblxyXG4gICAgICAgICAgICBpZih0eXBlb2YgZHJhZ05vZGUgPT09ICdib29sZWFuJykge1xyXG4gICAgICAgICAgICAgICAgcmV0dXJuIGRyYWdOb2RlO1xyXG4gICAgICAgICAgICB9IFxyXG5cclxuICAgICAgICAgICAgaWYoQXJyYXkuaXNBcnJheShkcmFnTm9kZSkgJiYgZHJhZ05vZGUuaW5kZXhPZihtb2RlbC5TVk1vZGVsTmFtZSkgPiAtMSkge1xyXG4gICAgICAgICAgICAgICAgcmV0dXJuIHRydWU7XHJcbiAgICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICAgIHJldHVybiBmYWxzZTtcclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIGNvbnN0IHNlbGVjdE5vZGVGaWx0ZXIgPSBub2RlID0+IHtcclxuICAgICAgICAgICAgbGV0IG1vZGVsID0gbm9kZS5pdGVtLmdldE1vZGVsKCk7XHJcblxyXG4gICAgICAgICAgICBpZihub2RlLml0ZW0gPT09IG51bGwpIHtcclxuICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTtcclxuICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgaWYobW9kZWwuU1ZNb2RlbFR5cGUgPT09ICdtYXJrZXInKSB7XHJcbiAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7XHJcbiAgICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICAgIGxldCBzZWxlY3ROb2RlID0gb3B0aW9uc1RhYmxlW21vZGVsLlNWTGF5b3V0ZXJdLmJlaGF2aW9yLnNlbGVjdE5vZGU7XHJcblxyXG4gICAgICAgICAgICBpZih0eXBlb2Ygc2VsZWN0Tm9kZSA9PT0gJ2Jvb2xlYW4nKSB7XHJcbiAgICAgICAgICAgICAgICByZXR1cm4gc2VsZWN0Tm9kZTtcclxuICAgICAgICAgICAgfSBcclxuXHJcbiAgICAgICAgICAgIGlmKEFycmF5LmlzQXJyYXkoc2VsZWN0Tm9kZSkgJiYgc2VsZWN0Tm9kZS5pbmRleE9mKG1vZGVsLlNWTW9kZWxOYW1lKSA+IC0xKSB7XHJcbiAgICAgICAgICAgICAgICByZXR1cm4gdHJ1ZTtcclxuICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgcmV0dXJuIGZhbHNlO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgZGVmYXVsdE1vZGVzLnB1c2goe1xyXG4gICAgICAgICAgICB0eXBlOiAnZHJhZy1ub2RlJyxcclxuICAgICAgICAgICAgc2hvdWxkQmVnaW46IGRyYWdOb2RlRmlsdGVyXHJcbiAgICAgICAgfSk7XHJcblxyXG4gICAgICAgIGRlZmF1bHRNb2Rlcy5wdXNoKHtcclxuICAgICAgICAgICAgdHlwZTogJ2NsaWNrLXNlbGVjdCcsXHJcbiAgICAgICAgICAgIHNob3VsZEJlZ2luOiBzZWxlY3ROb2RlRmlsdGVyXHJcbiAgICAgICAgfSk7XHJcblxyXG4gICAgICAgIHJldHVybiBkZWZhdWx0TW9kZXM7XHJcbiAgICB9XHJcblxyXG4gICAgLyoqXHJcbiAgICAgKiDlnKjliJ3lp4vljJbmuLLmn5PlmajkuYvlkI7vvIzkv67mraPoioLngrnmi5bmi73ml7bvvIzlpJbpg6jmjIfpkojmsqHmnInot5/nnYDliqjnmoTpl67pophcclxuICAgICAqIEBwYXJhbSBkcmFnTm9kZVRhYmxlIFxyXG4gICAgICovXHJcbiAgICBwcm90ZWN0ZWQgYWZ0ZXJJbml0UmVuZGVyZXIoKSB7XHJcbiAgICAgICAgbGV0IGc2SW5zdGFuY2UgPSB0aGlzLmdldEc2SW5zdGFuY2UoKSxcclxuICAgICAgICAgICAgbWFya2VyID0gbnVsbCxcclxuICAgICAgICAgICAgbWFya2VyWCA9IG51bGwsXHJcbiAgICAgICAgICAgIG1hcmtlclkgPSBudWxsLFxyXG4gICAgICAgICAgICBkcmFnU3RhcnRYID0gbnVsbCxcclxuICAgICAgICAgICAgZHJhZ1N0YXJ0WSA9IG51bGw7XHJcblxyXG4gICAgICAgIGc2SW5zdGFuY2Uub24oJ25vZGU6ZHJhZ3N0YXJ0JywgZXYgPT4ge1xyXG4gICAgICAgICAgICBjb25zdCBtb2RlbCA9IGV2Lml0ZW0uZ2V0TW9kZWwoKTtcclxuXHJcbiAgICAgICAgICAgIGlmKG1vZGVsLlNWTW9kZWxUeXBlID09PSAnbWFya2VyJykge1xyXG4gICAgICAgICAgICAgICAgcmV0dXJuO1xyXG4gICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICBjb25zdCBkcmFnTm9kZSA9IHRoaXMuZW5naW5lLm9wdGlvbnNUYWJsZVttb2RlbC5TVkxheW91dGVyXS5iZWhhdmlvci5kcmFnTm9kZTtcclxuXHJcbiAgICAgICAgICAgIGlmKGRyYWdOb2RlID09PSBmYWxzZSkge1xyXG4gICAgICAgICAgICAgICAgcmV0dXJuO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIFxyXG4gICAgICAgICAgICBpZihBcnJheS5pc0FycmF5KGRyYWdOb2RlKSAmJiBkcmFnTm9kZS5maW5kKGl0ZW0gPT4gaXRlbSA9PT0gbW9kZWwuU1ZNb2RlbE5hbWUpID09PSB1bmRlZmluZWQpIHtcclxuICAgICAgICAgICAgICAgIHJldHVybjtcclxuICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgbWFya2VyID0gZzZJbnN0YW5jZS5maW5kQnlJZChtb2RlbC5tYXJrZXJJZCk7XHJcbiAgICAgICAgICAgIFxyXG4gICAgICAgICAgICBpZihtYXJrZXIpIHtcclxuICAgICAgICAgICAgICAgIG1hcmtlclggPSBtYXJrZXIuZ2V0TW9kZWwoKS54LFxyXG4gICAgICAgICAgICAgICAgbWFya2VyWSA9IG1hcmtlci5nZXRNb2RlbCgpLnk7XHJcbiAgICAgICAgICAgICAgICBkcmFnU3RhcnRYID0gZXYuY2FudmFzWDtcclxuICAgICAgICAgICAgICAgIGRyYWdTdGFydFkgPSBldi5jYW52YXNZO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgfSk7XHJcblxyXG4gICAgICAgIGc2SW5zdGFuY2Uub24oJ25vZGU6ZHJhZ2VuZCcsIGV2ID0+IHtcclxuICAgICAgICAgICAgbWFya2VyID0gbnVsbDtcclxuICAgICAgICAgICAgbWFya2VyWCA9IG51bGwsXHJcbiAgICAgICAgICAgIG1hcmtlclkgPSBudWxsLFxyXG4gICAgICAgICAgICBkcmFnU3RhcnRYID0gbnVsbCxcclxuICAgICAgICAgICAgZHJhZ1N0YXJ0WSA9IG51bGw7XHJcbiAgICAgICAgfSk7XHJcblxyXG4gICAgICAgIGc2SW5zdGFuY2Uub24oJ25vZGU6ZHJhZycsIGV2ID0+IHtcclxuICAgICAgICAgICAgaWYoIW1hcmtlcikge1xyXG4gICAgICAgICAgICAgICAgcmV0dXJuO1xyXG4gICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICBsZXQgZHggPSBldi5jYW52YXNYIC0gZHJhZ1N0YXJ0WCxcclxuICAgICAgICAgICAgICAgIGR5ID0gZXYuY2FudmFzWSAtIGRyYWdTdGFydFksXHJcbiAgICAgICAgICAgICAgICB6b29tID0gZzZJbnN0YW5jZS5nZXRab29tKCk7XHJcblxyXG4gICAgICAgICAgICBtYXJrZXIudXBkYXRlUG9zaXRpb24oe1xyXG4gICAgICAgICAgICAgICAgeDogbWFya2VyWCArIGR4IC8gem9vbSxcclxuICAgICAgICAgICAgICAgIHk6IG1hcmtlclkgKyBkeSAvIHpvb21cclxuICAgICAgICAgICAgfSk7XHJcbiAgICAgICAgfSk7XHJcbiAgICB9XHJcblxyXG4gICAgcHJvdGVjdGVkIGhhbmRsZUNoYW5nZU1vZGVscyhtb2RlbHM6IE1vZGVsW10pIHtcclxuICAgICAgICBjb25zdCBjaGFuZ2VIaWdobGlnaHRDb2xvcjogc3RyaW5nID0gdGhpcy5pbnRlcmFjdGlvbk9wdGlvbnMuY2hhbmdlSGlnaGxpZ2h0O1xyXG5cclxuICAgICAgICAvLyDnrKzkuIDmrKHmuLLmn5PnmoTml7blgJnkuI3pq5jkuq7lj5jljJbnmoTlhYPntKBcclxuICAgICAgICBpZih0aGlzLnJlbmRlcmVyLmdldElzRmlyc3RSZW5kZXIoKSkge1xyXG4gICAgICAgICAgICByZXR1cm47XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICBpZighY2hhbmdlSGlnaGxpZ2h0Q29sb3IgfHwgdHlwZW9mIGNoYW5nZUhpZ2hsaWdodENvbG9yICE9PSAnc3RyaW5nJykge1xyXG4gICAgICAgICAgICByZXR1cm47XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICBtb2RlbHMuZm9yRWFjaChpdGVtID0+IHtcclxuICAgICAgICAgICAgaWYoaXRlbSBpbnN0YW5jZW9mIExpbmspIHtcclxuICAgICAgICAgICAgICAgIGl0ZW0uc2V0KCdzdHlsZScsIHtcclxuICAgICAgICAgICAgICAgICAgICBzdHJva2U6IGNoYW5nZUhpZ2hsaWdodENvbG9yXHJcbiAgICAgICAgICAgICAgICB9KTtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICBlbHNlIHtcclxuICAgICAgICAgICAgICAgIGl0ZW0uc2V0KCdzdHlsZScsIHtcclxuICAgICAgICAgICAgICAgICAgICBmaWxsOiBjaGFuZ2VIaWdobGlnaHRDb2xvclxyXG4gICAgICAgICAgICAgICAgfSk7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9KTtcclxuICAgIH1cclxufTsiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///12\n") }, function (module, exports, __webpack_require__) { "use strict"; eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.Animations = void 0;\r\nconst StructV_1 = __webpack_require__(0);\r\nexports.Animations = {\r\n animate_append(model, animationConfig) {\r\n model.G6Item === null && console.log(model);\r\n const G6Item = model.G6Item, type = G6Item.getType(), group = G6Item.getContainer(), Mat3 = StructV_1.SV.Mat3, animateCfg = {\r\n duration: animationConfig.duration,\r\n easing: animationConfig.timingFunction,\r\n callback: animationConfig.callback\r\n };\r\n if (type === 'node') {\r\n let matrix = group.getMatrix(), targetMatrix = Mat3.clone(matrix);\r\n Mat3.scale(matrix, matrix, [0, 0]);\r\n Mat3.scale(targetMatrix, targetMatrix, [1, 1]);\r\n group.attr({ opacity: 0, matrix });\r\n group.animate({ opacity: 1, matrix: targetMatrix }, animateCfg);\r\n }\r\n if (type === 'edge') {\r\n const line = group.get('children')[0], length = line.getTotalLength();\r\n line.attr({ lineDash: [0, length], opacity: 0 });\r\n line.animate({ lineDash: [length, 0], opacity: 1 }, animateCfg);\r\n }\r\n },\r\n animate_remove(model, animationConfig) {\r\n const G6Item = model.G6Item, type = G6Item.getType(), group = G6Item.getContainer(), Mat3 = StructV_1.SV.Mat3, animateCfg = {\r\n duration: animationConfig.duration,\r\n easing: animationConfig.timingFunction,\r\n callback: animationConfig.callback\r\n };\r\n if (type === 'node') {\r\n let matrix = Mat3.clone(group.getMatrix());\r\n Mat3.scale(matrix, matrix, [0, 0]);\r\n group.animate({ opacity: 0, matrix }, animateCfg);\r\n }\r\n if (type === 'edge') {\r\n const line = group.get('children')[0], length = line.getTotalLength();\r\n line.animate({ lineDash: [0, length], opacity: 0 }, animateCfg);\r\n }\r\n },\r\n animate_fadeOut(model, animationConfig) {\r\n const G6Item = model.G6Item, group = G6Item.getContainer(), animateCfg = {\r\n duration: 1200,\r\n easing: animationConfig.timingFunction,\r\n callback: animationConfig.callback\r\n };\r\n group.animate({ opacity: 0 }, animateCfg);\r\n }\r\n};\r\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvVmlldy9hbmltYXRpb24udHM/ZmRkYSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFDQSx5Q0FBZ0M7QUFjbkIsa0JBQVUsR0FBRztJQU90QixjQUFjLENBQUMsS0FBWSxFQUFFLGVBQWdDO1FBQ3pELEtBQUssQ0FBQyxNQUFNLEtBQUssSUFBSSxJQUFJLE9BQU8sQ0FBQyxHQUFHLENBQUMsS0FBSyxDQUFDLENBQUM7UUFFNUMsTUFBTSxNQUFNLEdBQUcsS0FBSyxDQUFDLE1BQU0sRUFDckIsSUFBSSxHQUFHLE1BQU0sQ0FBQyxPQUFPLEVBQUUsRUFDdkIsS0FBSyxHQUFHLE1BQU0sQ0FBQyxZQUFZLEVBQUUsRUFDN0IsSUFBSSxHQUFHLFlBQUUsQ0FBQyxJQUFJLEVBQ2QsVUFBVSxHQUFHO1lBQ1QsUUFBUSxFQUFFLGVBQWUsQ0FBQyxRQUFRO1lBQ2xDLE1BQU0sRUFBRSxlQUFlLENBQUMsY0FBYztZQUN0QyxRQUFRLEVBQUUsZUFBZSxDQUFDLFFBQVE7U0FDckMsQ0FBQztRQUVSLElBQUcsSUFB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BAcGFyYW0gYW5pbWF0aW9uQ29uZmlnXHJcbiAgICAgKi9cclxuICAgIGFuaW1hdGVfYXBwZW5kKG1vZGVsOiBNb2RlbCwgYW5pbWF0aW9uQ29uZmlnOiBhbmltYXRpb25Db25maWcpIHtcclxuICAgICAgICBtb2RlbC5HNkl0ZW0gPT09IG51bGwgJiYgY29uc29sZS5sb2cobW9kZWwpO1xyXG5cclxuICAgICAgICBjb25zdCBHNkl0ZW0gPSBtb2RlbC5HNkl0ZW0sXHJcbiAgICAgICAgICAgICAgdHlwZSA9IEc2SXRlbS5nZXRUeXBlKCksXHJcbiAgICAgICAgICAgICAgZ3JvdXAgPSBHNkl0ZW0uZ2V0Q29udGFpbmVyKCksXHJcbiAgICAgICAgICAgICAgTWF0MyA9IFNWLk1hdDMsXHJcbiAgICAgICAgICAgICAgYW5pbWF0ZUNmZyA9IHtcclxuICAgICAgICAgICAgICAgICAgZHVyYXRpb246IGFuaW1hdGlvbkNvbmZpZy5kdXJhdGlvbixcclxuICAgICAgICAgICAgICAgICAgZWFzaW5nOiBhbmltYXRpb25Db25maWcudGltaW5nRnVuY3Rpb24sXHJcbiAgICAgICAgICAgICAgICAgIGNhbGxiYWNrOiBhbmltYXRpb25Db25maWcuY2FsbGJhY2tcclxuICAgICAgICAgICAgICB9O1xyXG5cclxuICAgICAgICBpZih0eXBlID09PSAnbm9kZScpIHtcclxuICAgICAgICAgICAgbGV0IG1hdHJpeCA9IGdyb3VwLmdldE1hdHJpeCgpLFxyXG4gICAgICAgICAgICAgICAgdGFyZ2V0TWF0cml4ID0gTWF0My5jbG9uZShtYXRyaXgpO1xyXG5cclxuICAgICAgICAgICAgTWF0My5zY2FsZShtYXRyaXgsIG1hdHJpeCwgWzAsIDBdKTtcclxuICAgICAgICAgICAgTWF0My5zY2FsZSh0YXJnZXRNYXRyaXgsIHRhcmdldE1hdHJpeCwgWzEsIDFdKTtcclxuXHJcbiAgICAgICAgICAgIGdyb3VwLmF0dHIoeyBvcGFjaXR5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AgICAgICAgICAgICAgICAgZHVyYXRpb246IGFuaW1hdGlvbkNvbmZpZy5kdXJhdGlvbixcclxuICAgICAgICAgICAgICAgICAgZWFzaW5nOiBhbmltYXRpb25Db25maWcudGltaW5nRnVuY3Rpb24sXHJcbiAgICAgICAgICAgICAgICAgIGNhbGxiYWNrOiBhbmltYXRpb25Db25maWcuY2FsbGJhY2tcclxuICAgICAgICAgICAgICB9O1xyXG5cclxuICAgICAgICBpZih0eXBlID09PSAnbm9kZScpIHtcclxuICAgICAgICAgICAgbGV0IG1hdHJpeCA9IE1hdDMuY2xvbmUoZ3JvdXAuZ2V0TWF0cml4KCkpO1xyXG5cclxuICAgICAgICAgICAgTWF0My5zY2FsZShtYXRyaXgsIG1hdHJpeCwgWzAsIDBdKTtcclxuICAgICAgICAgICAgZ3JvdXAuYW5pbWF0ZSh7IG9wYWNpdHk6IDAsIG1hdHJpeCB9LCBhbmltYXRlQ2ZnKTtcclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIGlmKHR5cGUgPT09ICdlZGdlJykge1xyXG4gICAgICAgICAgICBjb25zdCBsaW5lID0gZ3JvdXAuZ2V0KCdjaGlsZHJlbicpWzBdLFxyXG4gICAgICAgICAgICAgICAgICBsZW5ndGggPSBsaW5lLmdldFRvdGFsTGVuZ3RoKCk7XHJcblxyXG4gICAgICAgICAgICBsaW5lLmFuaW1hdGUoeyBsaW5lRGFzaDogWzAsIGxlbmd0aF0sIG9wYWNpdHk6IDAgfSwgYW5pbWF0ZUNmZyk7XHJcbiAgICAgICAgfVxyXG4gICAgfSxcclxuXHJcbiAgICAvKipcclxuICAgICAqIOenu+WKqOiKgueCuSAvIOi+ueeahOWKqOeUu1xyXG4gICAgICogQHBhcmFtIG1vZGVsIFxyXG4gICAgICogQHBhcmFtIGFuaW1hdGlvbkNvbmZpZyBcclxuICAgICAqL1xyXG4gICAgYW5pbWF0ZV9mYWRlT3V0KG1vZGVsOiBNb2RlbCwgYW5pbWF0aW9uQ29uZmlnOiBhbmltYXRpb25Db25maWcpIHtcclxuICAgICAgICBjb25zdCBHNkl0ZW0gPSBtb2RlbC5HNkl0ZW0sXHJcbiAgICAgICAgICAgICAgZ3JvdXAgPSBHNkl0ZW0uZ2V0Q29udGFpbmVyKCksXHJcbiAgICAgICAgICAgICAgYW5pbWF0ZUNmZyA9IHtcclxuICAgICAgICAgICAgICAgICAgZHVyYXRpb246IDEyMDAsXHJcbiAgICAgICAgICAgICAgICAgIGVhc2luZzogYW5pbWF0aW9uQ29uZmlnLnRpbWluZ0Z1bmN0aW9uLFxyXG4gICAgICAgICAgICAgICAgICBjYWxsYmFjazogYW5pbWF0aW9uQ29uZmlnLmNhbGxiYWNrXHJcbiAgICAgICAgICAgICAgfTtcclxuXHJcbiAgICAgICAgZ3JvdXAuYW5pbWF0ZSh7IG9wYWNpdHk6IDAgfSwgYW5pbWF0ZUNmZyk7XHJcbiAgICB9XHJcbiAgICBcclxufTtcclxuXHJcblxyXG5cclxuXHJcblxyXG5cclxuXHJcblxyXG5cclxuXHJcblxyXG5cclxuXHJcblxyXG5cclxuXHJcblxyXG5cclxuIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///13\n") }, function (module, exports, __webpack_require__) { "use strict"; eval('\r\nObject.defineProperty(exports, "__esModule", { value: true });\r\nexports.Renderer = void 0;\r\nconst util_1 = __webpack_require__(3);\r\nconst StructV_1 = __webpack_require__(0);\r\n;\r\nclass Renderer {\r\n constructor(engine, DOMContainer, g6Options) {\r\n this.engine = engine;\r\n this.DOMContainer = DOMContainer;\r\n this.isFirstRender = true;\r\n const enable = this.engine.animationOptions.enable, duration = this.engine.animationOptions.duration, timingFunction = this.engine.animationOptions.timingFunction;\r\n this.g6Instance = new StructV_1.SV.G6.Graph(Object.assign({ container: DOMContainer, width: DOMContainer.offsetWidth, height: DOMContainer.offsetHeight, groupByTypes: false, animate: enable, animateCfg: {\r\n duration: duration,\r\n easing: timingFunction\r\n }, fitView: false, modes: {\r\n default: []\r\n } }, g6Options));\r\n }\r\n getIsFirstRender() {\r\n return this.isFirstRender;\r\n }\r\n setIsFirstRender(value) {\r\n this.isFirstRender = value;\r\n }\r\n removeModel(model) {\r\n this.g6Instance.removeItem(model.renderG6Item);\r\n }\r\n render(modelList, removeModels) {\r\n let data = util_1.Util.convertModelList2G6Data(modelList), removeData = util_1.Util.convertModelList2G6Data(removeModels), renderData = {\r\n nodes: [...data.nodes, ...removeData.nodes],\r\n edges: [...data.edges, ...removeData.edges]\r\n };\r\n if (this.isFirstRender) {\r\n this.g6Instance.read(renderData);\r\n }\r\n else {\r\n this.g6Instance.changeData(renderData);\r\n }\r\n if (this.engine.viewOptions.fitView) {\r\n this.g6Instance.fitView();\r\n }\r\n modelList.forEach(item => {\r\n item.renderG6Item = this.g6Instance.findById(item.id);\r\n if (item.renderG6Item) {\r\n item.G6Item = item.renderG6Item;\r\n item.renderG6Item.SVModel = item;\r\n }\r\n });\r\n if (this.isFirstRender) {\r\n this.g6Instance.getEdges().forEach(item => item.toFront());\r\n this.g6Instance.paint();\r\n }\r\n }\r\n getG6Instance() {\r\n return this.g6Instance;\r\n }\r\n destroy() {\r\n this.g6Instance.destroy();\r\n this.DOMContainer = null;\r\n }\r\n}\r\nexports.Renderer = Renderer;\r\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvVmlldy9yZW5kZXJlci50cz9jYzA4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUVBLHNDQUFzQztBQUN0Qyx5Q0FBZ0M7QUFRL0IsQ0FBQztBQU1GLE1BQWEsUUFBUTtJQVFqQixZQUFZLE1BQWMsRUFBRSxZQUF5QixFQUFFLFNBQWlDO1FBQ3BGLElBQUksQ0FBQyxNQUFNLEdBQUcsTUFBTSxDQUFDO1FBQ3JCLElBQUksQ0FBQyxZQUFZLEdBQUcsWUFBWSxDQUF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lzLmc2SW5zdGFuY2UgPSBuZXcgU1YuRzYuR3JhcGgoe1xyXG4gICAgICAgICAgICBjb250YWluZXI6IERPTUNvbnRhaW5lcixcclxuICAgICAgICAgICAgd2lkdGg6IERPTUNvbnRhaW5lci5vZmZzZXRXaWR0aCwgXHJcbiAgICAgICAgICAgIGhlaWdodDogRE9NQ29udGFpbmVyLm9mZnNldEhlaWdodCxcclxuICAgICAgICAgICAgZ3JvdXBCeVR5cGVzOiBmYWxzZSxcclxuICAgICAgICAgICAgYW5pbWF0ZTogZW5hYmxlLFxyXG4gICAgICAgICAgICBhbmltYXRlQ2ZnOiB7XHJcbiAgICAgICAgICAgICAgICBkdXJhdGlvbjogZHVyYXRpb24sXHJcbiAgICAgICAgICAgICAgICBlYXNpbmc6IHRpbWluZ0Z1bmN0aW9uXHJcbiAgICAgICAgICAgIH0sXHJcbiAgICAgICAgICAgIGZpdFZpZXc6IGZhbHNlLFxyXG4gICAgICAgICAgICBtb2Rlczoge1xyXG4gICAgICAgICAgICAgICAgZGVmYXVsdDogW11cclxuICAgICAgICAgICAgfSxcclxuICAgICAgICAgICAgLi4uZzZPcHRpb25zXHJcbiAgICAgICAgfSk7XHJcbiAgICB9XHJcblxyXG4gICAgcHVibGljIGdldElzRmlyc3RSZW5kZXIoKTogYm9vbGVhbiB7XHJcbiAgICAgICAgcmV0dXJuIHRoaXMuaXNGaXJzdFJlbmRlcjtcclxuICAgIH1cclxuXHJcbiAgICBwdWJsaWMgc2V0SXNGaXJzdFJlbmRlcih2YWx1ZTogYm9vbGVhbikge1xyXG4gICAgICAgIHRoaXMuaXNGaXJzdFJlbmRlciA9IHZhbHVlO1xyXG4gICAgfVxyXG5cclxuICAgIC8qKlxyXG4gICAgICog5LuO6KeG5Zu+5Lit56e76Zmk5LiA5LiqIE1vZGVsXHJcbiAgICAgKiBAcGFyYW0gbW9kZWwgXHJcbiAgICAgKi9cclxuICAgIHB1YmxpYyByZW1vdmVNb2RlbChtb2RlbDogTW9kZWwpI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1cclxuXHJcbiAgICAgICAgbW9kZWxMaXN0LmZvckVhY2goaXRlbSA9PiB7XHJcbiAgICAgICAgICAgIGl0ZW0ucmVuZGVyRzZJdGVtID0gdGhpcy5nNkluc3RhbmNlLmZpbmRCeUlkKGl0ZW0uaWQpO1xyXG5cclxuICAgICAgICAgICAgaWYoaXRlbS5yZW5kZXJHNkl0ZW0pIHtcclxuICAgICAgICAgICAgICAgIGl0ZW0uRzZJdGVtID0gaXRlbS5yZW5kZXJHNkl0ZW07XHJcbiAgICAgICAgICAgICAgICBpdGVtLnJlbmRlckc2SXRlbS5TVk1vZGVsID0gaXRlbTtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgIH0pO1xyXG5cclxuICAgICAgICAvLyDmiormiYDmnInov57nur/nva7pobZcclxuICAgICAgICBpZih0aGlzLmlzRmlyc3RSZW5kZXIpIHtcclxuICAgICAgICAgICAgdGhpcy5nNkluc3RhbmNlLmdldEVkZ2VzKCkuZm9yRWFjaChpdGVtID0+IGl0ZW0udG9Gcm9udCgpKTtcclxuICAgICAgICAgICAgdGhpcy5nNkluc3RhbmNlLnBhaW50KCk7XHJcbiAgICAgICAgfVxyXG4gICAgfVxyXG5cclxuICAgIC8qKlxyXG4gICAgICog6I635Y+WIEc2IOWunuS+i1xyXG4gICAgICovXHJcbiAgICBwdWJsaWMgZ2V0RzZJbnN0YW5jZSgpIHtcclxuICAgICAgICByZXR1cm4gdGhpcy5nNkluc3RhbmNlO1xyXG4gICAgfVxyXG5cclxuICAgIC8qKlxyXG4gICAgICog6ZSA5q+BXHJcbiAgICAgKi9cclxuICAgIHB1YmxpYyBkZXN0cm95KCkge1xyXG4gICAgICAgIHRoaXMuZzZJbnN0YW5jZS5kZXN0cm95KCk7XHJcbiAgICAgICAgdGhpcy5ET01Db250YWluZXIgPSBudWxsO1xyXG4gICAgfVxyXG59Il0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///14\n') }, function (module, exports, __webpack_require__) { "use strict"; eval('\r\nObject.defineProperty(exports, "__esModule", { value: true });\r\nexports.FreedContainer = void 0;\r\nconst group_1 = __webpack_require__(5);\r\nconst container_1 = __webpack_require__(4);\r\nclass FreedContainer extends container_1.Container {\r\n fitCenter(freedModels) {\r\n freedModels.forEach(item => {\r\n item.G6Item = item.shadowG6Item;\r\n });\r\n let width = this.getG6Instance().getWidth(), height = this.getG6Instance().getHeight(), group = new group_1.Group();\r\n group.add(...freedModels);\r\n let viewBound = group.getBound(), centerX = width / 2, centerY = height / 2, boundCenterX = viewBound.x + viewBound.width / 2, boundCenterY = viewBound.y + viewBound.height / 2, dx = centerX - boundCenterX, dy = centerY - boundCenterY;\r\n group.translate(dx, dy);\r\n freedModels.forEach(item => {\r\n item.G6Item = item.renderG6Item;\r\n });\r\n }\r\n initBehaviors() {\r\n return [];\r\n }\r\n}\r\nexports.FreedContainer = FreedContainer;\r\n;\r\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvVmlldy9jb250YWluZXIvZnJlZWQudHM/ODczNSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFDQSx1Q0FBMkM7QUFFM0MsMkNBQXdDO0FBS3hDLE1BQWEsY0FBZSxTQUFRLHFCQUFTO0lBTXpDLFNBQVMsQ0FBQyxXQUFvQjtRQUMxQixXQUFXLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxFQUFFO1lBQ3ZCLElBQUksQ0FBQyxNQUFNLEdBQUcsSUFBSSxDQUFDLFlBQVksQ0FBQztRQUNwQyxDQUFDLENBQUMsQ0FBQztRQUVILElBQUksS0FBSyxHQUFHLElBQUksQ0FBQyxhQUFhLEVBQUUsQ0FBQyxRQUFRLEVBQUUsRUFDdkMsTUFBTSxHQUFHLElBQUksQ0FBQyxhQUFhLEVBQUUsQ0FBQyxTQUFTLEVBQUUsRUFDekMsS0FBSyx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mQueSArIHZpZXdCb3VuZC5oZWlnaHQgLyAyLFxyXG4gICAgICAgICAgICBkeCA9IGNlbnRlclggLSBib3VuZENlbnRlclgsXHJcbiAgICAgICAgICAgIGR5ID0gY2VudGVyWSAtIGJvdW5kQ2VudGVyWTtcclxuXHJcbiAgICAgICAgZ3JvdXAudHJhbnNsYXRlKGR4LCBkeSk7XHJcblxyXG4gICAgICAgIGZyZWVkTW9kZWxzLmZvckVhY2goaXRlbSA9PiB7XHJcbiAgICAgICAgICAgIGl0ZW0uRzZJdGVtID0gaXRlbS5yZW5kZXJHNkl0ZW07XHJcbiAgICAgICAgfSk7XHJcbiAgICB9XHJcblxyXG4gICAgcHJvdGVjdGVkIGluaXRCZWhhdmlvcnMoKTogc3RyaW5nW10ge1xyXG4gICAgICAgIHJldHVybiBbXTtcclxuICAgIH1cclxufTsiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///15\n') }, function (module, exports, __webpack_require__) { "use strict"; eval('\r\nObject.defineProperty(exports, "__esModule", { value: true });\r\nexports.LeakContainer = void 0;\r\nconst container_1 = __webpack_require__(4);\r\nclass LeakContainer extends container_1.Container {\r\n}\r\nexports.LeakContainer = LeakContainer;\r\n;\r\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvVmlldy9jb250YWluZXIvbGVhay50cz9mYWNjIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLDJDQUF3QztBQUt4QyxNQUFhLGFBQWMsU0FBUSxxQkFBUztDQUUzQztBQUZELHNDQUVDO0FBQUEsQ0FBQyIsImZpbGUiOiIxNi5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbnRhaW5lciB9IGZyb20gXCIuL2NvbnRhaW5lclwiO1xyXG5cclxuLyoqXHJcbiAqIOazhOa8j+WMuuWPr+inhuWMluinhuWbvlxyXG4gKi9cclxuZXhwb3J0IGNsYXNzIExlYWtDb250YWluZXIgZXh0ZW5kcyBDb250YWluZXIge1xyXG5cclxufTsiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///16\n') }, function (module, exports, __webpack_require__) { "use strict"; eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.Layouter = void 0;\r\nconst boundingRect_1 = __webpack_require__(6);\r\nconst group_1 = __webpack_require__(5);\r\nconst vector_1 = __webpack_require__(7);\r\nclass Layouter {\r\n constructor(engine) {\r\n this.engine = engine;\r\n this.viewOptions = this.engine.viewOptions;\r\n }\r\n initLayoutValue(elements, markers) {\r\n [...elements, ...markers].forEach(item => {\r\n item.set('rotation', item.get('rotation'));\r\n item.set({ x: 0, y: 0 });\r\n });\r\n }\r\n layoutMarker(markers, markerOptions) {\r\n markers.forEach(item => {\r\n var _a, _b, _c;\r\n const options = markerOptions[item.getType()], offset = (_a = options.offset) !== null && _a !== void 0 ? _a : 8, anchor = (_b = item.anchor) !== null && _b !== void 0 ? _b : 0, labelOffset = (_c = options.labelOffset) !== null && _c !== void 0 ? _c : 2;\r\n let target = item.target, targetBound = target.getBound(), anchorPosition = item.target.G6Item.getAnchorPoints()[anchor], center = [targetBound.x + targetBound.width / 2, targetBound.y + targetBound.height / 2], markerPosition, markerEndPosition;\r\n anchorPosition = [anchorPosition.x, anchorPosition.y];\r\n let anchorVector = vector_1.Vector.subtract(anchorPosition, center), angle = 0, len = vector_1.Vector.length(anchorVector) + offset;\r\n if (anchorVector[0] === 0) {\r\n angle = anchorVector[1] > 0 ? -Math.PI : 0;\r\n }\r\n else {\r\n angle = Math.sign(anchorVector[0]) * (Math.PI / 2 - Math.atan(anchorVector[1] / anchorVector[0]));\r\n }\r\n const markerHeight = item.get('size')[1], labelRadius = item.getLabelSizeRadius() / 2;\r\n anchorVector = vector_1.Vector.normalize(anchorVector);\r\n markerPosition = vector_1.Vector.location(center, anchorVector, len);\r\n markerEndPosition = vector_1.Vector.location(center, anchorVector, markerHeight + len + labelRadius + labelOffset);\r\n markerEndPosition = vector_1.Vector.subtract(markerEndPosition, markerPosition);\r\n item.set({\r\n x: markerPosition[0],\r\n y: markerPosition[1],\r\n rotation: angle,\r\n markerEndPosition\r\n });\r\n });\r\n }\r\n fitCenter(container, group) {\r\n let width = container.getG6Instance().getWidth(), height = container.getG6Instance().getHeight(), viewBound = group.getBound(), centerX = width / 2, centerY = height / 2, boundCenterX = viewBound.x + viewBound.width / 2, boundCenterY = viewBound.y + viewBound.height / 2, dx = centerX - boundCenterX, dy = centerY - boundCenterY;\r\n group.translate(dx, dy);\r\n }\r\n layoutModels(layoutGroupTable) {\r\n const modelGroupList = [];\r\n layoutGroupTable.forEach(group => {\r\n const options = group.options.layout, modelList = group.modelList, modelGroup = new group_1.Group();\r\n modelList.forEach(item => {\r\n modelGroup.add(item);\r\n });\r\n this.initLayoutValue(group.element, group.marker);\r\n group.layouter.layout(group.element, options);\r\n modelGroupList.push(modelGroup);\r\n });\r\n layoutGroupTable.forEach(group => {\r\n this.layoutMarker(group.marker, group.options.marker);\r\n });\r\n return modelGroupList;\r\n }\r\n layoutGroups(container, modelGroupList) {\r\n let wrapperGroup = new group_1.Group(), group, prevBound, bound, boundList = [], maxHeight = -Infinity, dx = 0, dy = 0;\r\n for (let i = 0; i < modelGroupList.length; i++) {\r\n group = modelGroupList[i],\r\n bound = group.getPaddingBound(this.viewOptions.groupPadding);\r\n if (prevBound) {\r\n dx = prevBound.x + prevBound.width - bound.x;\r\n }\r\n else {\r\n dx = bound.x;\r\n }\r\n if (bound.height > maxHeight) {\r\n maxHeight = bound.height;\r\n }\r\n group.translate(dx, 0);\r\n boundingRect_1.Bound.translate(bound, dx, 0);\r\n boundList.push(bound);\r\n wrapperGroup.add(group);\r\n prevBound = bound;\r\n }\r\n for (let i = 0; i < modelGroupList.length; i++) {\r\n group = modelGroupList[i];\r\n bound = boundList[i];\r\n dy = maxHeight / 2 - bound.height / 2;\r\n group.translate(0, dy);\r\n boundingRect_1.Bound.translate(bound, 0, dy);\r\n }\r\n return wrapperGroup;\r\n }\r\n layoutSingleMarker(marker, markerOptions) {\r\n var _a, _b, _c;\r\n const options = markerOptions[marker.getType()], offset = (_a = options.offset) !== null && _a !== void 0 ? _a : 8, anchor = (_b = marker.anchor) !== null && _b !== void 0 ? _b : 0, labelOffset = (_c = options.labelOffset) !== null && _c !== void 0 ? _c : 2;\r\n let target = marker.target, targetBound = target.getBound(), anchorPosition = marker.target.G6Item.getAnchorPoints()[anchor], center = [targetBound.x + targetBound.width / 2, targetBound.y + targetBound.height / 2], markerPosition, markerEndPosition;\r\n anchorPosition = [anchorPosition.x, anchorPosition.y];\r\n let anchorVector = vector_1.Vector.subtract(anchorPosition, center), angle = 0, len = vector_1.Vector.length(anchorVector) + offset;\r\n if (anchorVector[0] === 0) {\r\n angle = anchorVector[1] > 0 ? -Math.PI : 0;\r\n }\r\n else {\r\n angle = Math.sign(anchorVector[0]) * (Math.PI / 2 - Math.atan(anchorVector[1] / anchorVector[0]));\r\n }\r\n const markerHeight = marker.get('size')[1], labelRadius = marker.getLabelSizeRadius() / 2;\r\n anchorVector = vector_1.Vector.normalize(anchorVector);\r\n markerPosition = vector_1.Vector.location(center, anchorVector, len);\r\n markerEndPosition = vector_1.Vector.location(center, anchorVector, markerHeight + len + labelRadius + labelOffset);\r\n markerEndPosition = vector_1.Vector.subtract(markerEndPosition, markerPosition);\r\n marker.set({\r\n x: markerPosition[0],\r\n y: markerPosition[1],\r\n rotation: angle,\r\n markerEndPosition\r\n });\r\n }\r\n layoutAll(container, layoutGroupTable) {\r\n layoutGroupTable.forEach(item => {\r\n item.modelList.forEach(model => {\r\n model.G6Item = model.shadowG6Item;\r\n });\r\n });\r\n const modelGroupList = this.layoutModels(layoutGroupTable);\r\n const wrapperGroup = this.layoutGroups(container, modelGroupList);\r\n this.fitCenter(container, wrapperGroup);\r\n layoutGroupTable.forEach(item => {\r\n item.modelList.forEach(model => {\r\n model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vclBvc2l0aW9uID0gaXRlbS50YXJnZXQuRzZJdGVtLmdldEFuY2hvclBvaW50cygpW2FuY2hvcl0sXHJcbiAgICAgICAgICAgICAgICBjZW50ZXI6IFtudW1iZXIsIG51bWJlcl0gPSBbdGFyZ2V0Qm91bmQueCArIHRhcmdldEJvdW5kLndpZHRoIC8gMiwgdGFyZ2V0Qm91bmQueSArIHRhcmdldEJvdW5kLmhlaWdodCAvIDJdLFxyXG4gICAgICAgICAgICAgICAgbWFya2VyUG9zaXRpb246IFtudW1iZXIsIG51bWJlcl0sXHJcbiAgICAgICAgICAgICAgICBtYXJrZXJFbmRQb3NpdGlvbjogW251bWJlciwgbnVtYmVyXTtcclxuXHJcbiAgICAgICAgICAgIGFuY2hvclBvc2l0aW9uID0gW2FuY2hvclBvc2l0aW9uLngsIGFuY2hvclBvc2l0aW9uLnldO1xyXG5cclxuICAgICAgICAgICAgbGV0IGFuY2hvclZlY3RvciA9IFZlY3Rvci5zdWJ0cmFjdChhbmNob3JQb3NpdGlvbiwgY2VudGVyKSxcclxuICAgICAgICAgICAgICAgIGFuZ2xlID0gMCwgbGVuID0gVmVjdG9yLmxlbmd0aChhbmNob3JWZWN0b3IpICsgb2Zmc2V0O1xyXG5cclxuICAgICAgICAgICAgaWYgKGFuY2hvclZlY3RvclswXSA9PT0gMCkge1xyXG4gICAgICAgICAgICAgICAgYW5nbGUgPSBhbmNob3JWZWN0b3JbMV0gPiAwID8gLU1hdGguUEkgOiAwO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIGVsc2Uge1xyXG4gICAgICAgICAgICAgICAgYW5nbGUgPSBNYXRoLnNpZ24oYW5jaG9yVmVjdG9yWzBdKSAqIChNYXRoLlBJIC8gMiAtIE1hdGguYXRhbihhbmNob3JWZWN0b3JbMV0gLyBhbmNob3JWZWN0b3JbMF0pKTtcclxuICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgY29uc3QgbWFya2VySGVpZ2h0ID0gaXRlbS5nZXQoJ3NpemUnKVsxXSxcclxuICAgICAgICAgICAgICAgIGxhYmVsUmFkaXVzID0gaXRlbS5nZXRMYWJlbFNpemVSYWRpdXMoKSAvIDI7XHJcblxyXG4gICAgICAgICAgICBhbmNob3JWZWN0b3IgPSBWZWN0b3Iubm9ybWFsaXplKGFuY2hvclZlY3Rvcik7XHJcbiAgICAgICAgICAgIG1hcmtlclBvc2l0aW9uID0gVmVjdG9yLmxvY2F0aW9uKGNlbnRlciwgYW5jaG9yVmVjdG9yLCBsZW4pO1xyXG4gICAgICAgICAgICBtYXJrZXJFbmRQb3NpdGlvbiA9IFZlY3Rvci5sb2NhdGlvbihjZW50ZXIsIGFuY2hvclZlY3RvciwgbWFya2VySGVpZ2h0ICsgbGVuICsgbGFiZWxSYWRpdXMgKyBsYWJlbE9mZnNldCk7XHJcbiAgICAgICAgICAgIG1hcmtlckVuZFBvc2l0aW9uID0gVmVjdG9yLnN1YnRyYWN0KG1hcmtlckVuZFBvc2l0aW9uLCBtYXJrZXJQb3NpdGlvbik7XHJcblxyXG4gICAgICAgICAgICBpdGVtLnNldCh7XHJcbiAgICAgICAgICAgICAgICB4OiBtYXJrZXJQb3NpdGlvblswXSxcclxuICAgICAgICAgICAgICAgIHk6IG1hcmtlclBvc2l0aW9uWzFdLFxyXG4gICAgICAgICAgICAgICAgcm90YXRpb246IGFuZ2xlLFxyXG4gICAgICAgICAgICAgICAgbWFya2VyRW5kUG9zaXRpb25cclxuICAgICAgICAgICAgfSk7XHJcbiAgICAgICAgfSk7XHJcbiAgICB9XHJcblxyXG4gICAgLyoqXHJcbiAgICAgKiDlsIbop4blm77osIPmlbToh7PnlLvluIPkuK3lv4NcclxuICAgICAqIEBwYXJhbSBjb250YWluZXJcclxuICAgICAqIEBwYXJhbSBtb2RlbHNcclxuICAgICAqL1xyXG4gICAgcHJpdmF0ZSBmaXRDZW50ZXIoY29udGFpbmVyOiBDb250YWluZXIsIGdyb3VwOiBHcm91cCkge1xyXG4gICAgICAgIGx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CxcclxuICAgICAgICAgICAgICAgIG1vZGVsTGlzdDogTW9kZWxbXSA9IGdyb3VwLm1vZGVsTGlzdCxcclxuICAgICAgICAgICAgICAgIG1vZGVsR3JvdXA6IEdyb3VwID0gbmV3IEdyb3VwKCk7XHJcblxyXG4gICAgICAgICAgICBtb2RlbExpc3QuZm9yRWFjaChpdGVtID0+IHtcclxuICAgICAgICAgICAgICAgIG1vZGVsR3JvdXAuYWRkKGl0ZW0pO1xyXG4gICAgICAgICAgICB9KTtcclxuXHJcbiAgICAgICAgICAgIHRoaXMuaW5pdExheW91dFZhbHVlKGdyb3VwLmVsZW1lbnQsIGdyb3VwLm1hcmtlcik7IC8vIOWIneWni+WMluW4g+WxgOWPguaVsFxyXG4gICAgICAgICAgICBncm91cC5sYXlvdXRlci5sYXlvdXQoZ3JvdXAuZWxlbWVudCwgb3B0aW9ucyk7ICAvLyDluIPlsYDoioLngrlcclxuICAgICAgICAgICAgbW9kZWxHcm91cExpc3QucHVzaChtb2RlbEdyb3VwKTtcclxuICAgICAgICB9KTtcclxuXHJcbiAgICAgICAgbGF5b3V0R3JvdXBUYWJsZS5mb3JFYWNoKGdyb3VwID0+IHtcclxuICAgICAgICAgICAgdGhpcy5sYXlvdXRNYXJrZXIoZ3JvdXAubWFya2VyLCBncm91cC5vcHRpb25zLm1hcmtlcik7ICAvLyDluIPlsYDlpJbpg6jmjIfpkohcclxuICAgICAgICB9KTtcclxuXHJcbiAgICAgICAgcmV0dXJuIG1vZGVsR3JvdXBMaXN0O1xyXG4gICAgfVxyXG5cclxuICAgIC8qKlxyXG4gICAgICog5a+55omA5pyJ57uE6L+b6KGM55u45LqS5biD5bGAXHJcbiAgICAgKiBAcGFyYW0gY29udGFpbmVyIFxyXG4gICAgICogQHBhcmFtIG1vZGVsR3JvdXBUYWJsZSBcclxuICAgICAqL1xyXG4gICAgcHJpdmF0ZSBsYXlvdXRHcm91cHMoY29udGFpbmVyOiBDb250YWluZXIsIG1vZGVsR3JvdXBMaXN0OiBHcm91cFtdKTogR3JvdXAge1xyXG4gICAgICAgIGxldCB3cmFwcGVyR3JvdXA6IEdyb3VwID0gbmV3IEdyb3VwKCksXHJcbiAgICAgICAgICAgIGdyb3VwOiBHcm91cCxcclxuICAgICAgICAgICAgcHJldkJvdW5kOiBCb3VuZGluZ1JlY3QsXHJcbiAgICAgICAgICAgIGJvdW5kOiBCb3VuZGluZ1JlY3QsXHJcbiAgICAgICAgICAgIGJvdW5kTGlzdDogQm91bmRpbmdSZWN0W10gPSBbXSxcclxuICAgICAgICAgICAgbWF4SGVpZ2h0OiBudW1iZXIgPSAtSW5maW5pdHksXHJcbiAgICAgICAgICAgIGR4ID0gMCwgZHkgPSAwO1xyXG5cclxuICAgICAgICAvLyDlt6blvoDlj7PluIPlsYBcclxuICAgICAgICBmb3IgKGxldCBpID0gMDsgaSA8IG1vZGVsR3JvdXBMaXN0Lmxlbmd0aDsgaSsrKSB7XHJcbiAgICAgICAgICAgIGdyb3VwID0gbW9kZWxHcm91cExpc3RbaV0sXHJcbiAgICAgICAgICAgICAgICBib3VuZCA9IGdyb3VwLmdldFBhZGRpbmdCb3VuZCh0aGlzLnZpZXdPcHRpb25zLmdyb3VwUGFkZGluZyk7XHJcblxyXG4gICAgICAgICAgICBpZiAocHJldkJvdW5kKSB7XHJcbiAgICAgICAgICAgICAgICBkeCA9IHByZXZCb3VuZC54ICsgcHJldkJvdW5kLndpZHRoIC0gYm91bmQueDtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICBlbHNlIHtcclxuICAgICAgICAgICAgICAgIGR4ID0gYm91bmQueDtcclxuICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgaWYgKGJvdW5kLmhlaWdodCA+IG1heEhlaWdodCkge1xyXG4gICAgICAgICAgICAgICAgbWF4SGVpZ2h0ID0gYm91bmQuaGVpZ2h0O1xyXG4gICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICBncm91cC50cmFuc2xhdGUoZHgsIDApO1xyXG4gICAgICAgICAgICBCb3VuZC50cmFuc2xhdGUoYm91bmQsIGR4LCAwKTtcclxuICAgICAgICAgICAgYm91bmRMaXN0LnB1c2goYm91bmQpO1xyXG4gICAgICAgICAgICB3cmFwcGVyR3JvdXAuYWRkKGdyb3VwKTtcclxuICAgICAgICAgICAgcHJldkJvdW5kID0gYm91bmQ7XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICAvLyDlsYXkuK3lr7npvZDluIPlsYBcclxuICAgICAgICBmb3IgKGxldCBpID0gMDsgaSA8IG1vZGVsR3JvdXBMaXN0Lmxlbmd0aDsgaSsrKSB7XHJcbiAgICAgICAgICAgIGdyb3VwID0gbW9kZWxHcm91cExpc3RbaV07XHJcbiAgICAgICAgICAgIGJvdW5kID0gYm91bmRMaXN0W2ldO1xyXG5cclxuICAgICAgICAgICAgZHkgPSBtYXhIZWlnaHQgLyAyIC0gYm91bmQuaGVpZ2h0IC8gMjtcclxuICAgICAgICAgICAgZ3JvdXAudHJhbnNsYXRlKDAsIGR5KTtcclxuICAgICAgICAgICAgQm91bmQudHJhbnNsYXRlKGJvdW5kLCAwLCBkeSk7XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICByZXR1cm4gd3JhcHBlckdyb3VwO1xyXG4gICAgfVxyXG5cclxuICAgIHB1YmxpYyBsYXlvdXRTaW5nbGVNYXJrZXIobWFya2VyOiBNYXJrZXIsIG1hcmtlck9wdGlvbnM6IHsgW2tleTogc3RyaW5nXTogTWFya2VyT3B0aW9uIH0pIHtcclxuICAgICAgICBjb25zdCBvcHRpb25zOiBNYXJrZXJPcHRpb24gPSBtYXJrZXJPcHRpb25zW21hcmtlci5nZXRUeXBlKCldLFxyXG4gICAgICAgICAgICBvZmZzZXQgPSBvcHRpb25zLm9mZnNldCA/PyA4LFxyXG4gICAgICAgICAgICBhbmNob3IgPSBtYXJrZXIuYW5jaG9yID8/IDAsXHJcbiAgICAgICAgICAgIGxhYmVsT2Zmc2V0ID0gb3B0aW9ucy5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AgcHVibGljIGxheW91dEFsbChjb250YWluZXI6IENvbnRhaW5lciwgbGF5b3V0R3JvdXBUYWJsZTogTGF5b3V0R3JvdXBUYWJsZSkge1xyXG4gICAgICAgIGxheW91dEdyb3VwVGFibGUuZm9yRWFjaChpdGVtID0+IHtcclxuICAgICAgICAgICAgaXRlbS5tb2RlbExpc3QuZm9yRWFjaChtb2RlbCA9PiB7XHJcbiAgICAgICAgICAgICAgICBtb2RlbC5HNkl0ZW0gPSBtb2RlbC5zaGFkb3dHNkl0ZW07XHJcbiAgICAgICAgICAgIH0pO1xyXG4gICAgICAgIH0pO1xyXG5cclxuICAgICAgICBjb25zdCBtb2RlbEdyb3VwTGlzdDogR3JvdXBbXSA9IHRoaXMubGF5b3V0TW9kZWxzKGxheW91dEdyb3VwVGFibGUpO1xyXG5cclxuICAgICAgICBjb25zdCB3cmFwcGVyR3JvdXA6IEdyb3VwID0gdGhpcy5sYXlvdXRHcm91cHMoY29udGFpbmVyLCBtb2RlbEdyb3VwTGlzdCk7XHJcbiAgICAgICAgdGhpcy5maXRDZW50ZXIoY29udGFpbmVyLCB3cmFwcGVyR3JvdXApO1xyXG5cclxuICAgICAgICBsYXlvdXRHcm91cFRhYmxlLmZvckVhY2goaXRlbSA9PiB7XHJcbiAgICAgICAgICAgIGl0ZW0ubW9kZWxMaXN0LmZvckVhY2gobW9kZWwgPT4ge1xyXG4gICAgICAgICAgICAgICAgbW9kZWwuRzZJdGVtID0gbW9kZWwucmVuZGVyRzZJdGVtO1xyXG4gICAgICAgICAgICB9KTtcclxuICAgICAgICB9KTtcclxuICAgIH1cclxuXHJcbn0iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///17\n") }, function (module, exports, __webpack_require__) { "use strict"; eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nconst G6 = __webpack_require__(1);\r\nexports.default = G6.registerNode('pointer', {\r\n draw(cfg, group) {\r\n const keyShape = group.addShape('path', {\r\n attrs: {\r\n path: this.getPath(cfg),\r\n fill: cfg.style.fill,\r\n matrix: cfg.style.matrix\r\n },\r\n name: 'pointer-path'\r\n });\r\n if (cfg.label) {\r\n const style = (cfg.labelCfg && cfg.labelCfg.style) || {};\r\n const bgRect = group.addShape('rect', {\r\n attrs: {\r\n x: 0,\r\n y: 0,\r\n text: cfg.label,\r\n fill: null,\r\n radius: 2\r\n },\r\n name: 'bgRect'\r\n });\r\n const text = group.addShape('text', {\r\n attrs: {\r\n x: 0,\r\n y: 0,\r\n textAlign: 'center',\r\n textBaseline: 'middle',\r\n text: cfg.label,\r\n fill: style.fill || '#999',\r\n fontSize: style.fontSize || 16\r\n },\r\n name: 'pointer-text-shape'\r\n });\r\n const { width: textWidth, height: textHeight } = text.getBBox();\r\n bgRect.attr({\r\n width: textWidth + 6,\r\n height: textHeight + 6\r\n });\r\n const markerEndPosition = cfg.markerEndPosition;\r\n if (markerEndPosition) {\r\n let textX = markerEndPosition[0], textY = markerEndPosition[1];\r\n text.attr({\r\n x: textX,\r\n y: textY\r\n });\r\n bgRect.attr({\r\n x: textX - textWidth / 2 - 3,\r\n y: textY - textHeight / 2 - 3\r\n });\r\n }\r\n }\r\n return keyShape;\r\n },\r\n getPath(cfg) {\r\n let width = cfg.size[0], height = cfg.size[1], arrowWidth = width + 4, arrowHeight = height * 0.3;\r\n const path = [\r\n ['M', 0, 0],\r\n ['L', -width / 2 - (arrowWidth / 2), -arrowHeight],\r\n ['L', -width / 2, -arrowHeight],\r\n ['L', -width / 2, -height],\r\n ['L', width / 2, -height],\r\n ['L', width / 2, -arrowHeight],\r\n ['L', width / 2 + (arrowWidth / 2), -arrowHeight],\r\n ['Z'],\r\n ];\r\n return path;\r\n }\r\n});\r\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvUmVnaXN0ZXJlZFNoYXBlL3BvaW50ZXIudHM/YTJiZSJdLCJ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FDSixDQUFDLENBQUMiLCJmaWxlIjoiMTguanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgKiBhcyBHNiBmcm9tIFwiLi4vTGliL2c2LmpzXCI7XHJcblxyXG5cclxuZXhwb3J0IGRlZmF1bHQgRzYucmVnaXN0ZXJOb2RlKCdwb2ludGVyJywge1xyXG4gICAgZHJhdyhjZmcsIGdyb3VwKSB7XHJcbiAgICAgICAgY29uc3Qga2V5U2hhcGUgPSBncm91cC5hZGRTaGFwZSgncGF0aCcsIHtcclxuICAgICAgICAgICAgYXR0cnM6IHtcclxuICAgICAgICAgICAgICAgIHBhdGg6IHRoaXMuZ2V0UGF0aChjZmcpLFxyXG4gICAgICAgICAgICAgICAgZmlsbDogY2ZnLnN0eWxlLmZpbGwsXHJcbiAgICAgICAgICAgICAgICBtYXRyaXg6IGNmZy5zdHlsZS5tYXRyaXhcclxuICAgICAgICAgICAgfSxcclxuICAgICAgICAgICAgbmFtZTogJ3BvaW50ZXItcGF0aCdcclxuICAgICAgICB9KTtcclxuXHJcbiAgICAgICAgaWYgKGNmZy5sYWJlbCkge1xyXG4gICAgICAgICAgICBjb25zdCBzdHlsZSA9IChjZmcubGFiZWxDZmcgJiYgY2ZnLmxhYmVsQ2ZnLnN0eWxlKSB8fCB7fTtcclxuXHJcbiAgICAgICAgICAgIGNvbnN0IGJnUmVjdCA9IGdyb3VwLmFkZFNoYXBlKCdyZWN0Jywge1xyXG4gICAgICAgICAgICAgICAgYXR0cnM6IHtcclxuICAgICAgICAgICAgICAgICAgICB4OiAwLCBcclxuICAgICAgICAgICAgICAgICAgICB5OiAwLFxyXG4gICAgICAgICAgICAgICAgICAgIHRleHQ6IGNmZy5sYWJlbCxcclxuICAgICAgICAgICAgICAgICAgICBmaWxsOiBudWxsLFxyXG4gICAgICAgICAgICAgICAgICAgIHJhZGl1czogMlxyXG4gICAgICAgICAgICAgICAgfSxcclxuICAgICAgICAgICAgICAgIG5hbWU6ICdiZ1JlY3QnXHJcbiAgICAgICAgICAgIH0pO1xyXG5cclxuICAgICAgICAgICAgY29uc3QgdGV4dCA9IGdyb3VwLmFkZFNoYXBlKCd0ZXh0Jywge1xyXG4gICAgICAgICAgICAgICAgYXR0cnM6IHtcclxuICAgICAgICAgICAgICAgICAgICB4OiAwLCBcclxuICAgICAgICAgICAgICAgICAgICB5OiAwLFxyXG4gICAgICAgICAgICAgICAgICAgIHRleHRBbGlnbjogJ2NlbnRlcicsXHJcbiAgICAgICAgICAgICAgICAgICAgdGV4dEJhc2VsaW5lOiAnbWlkZGxlJyxcclxuICAgICAgICAgICAgICAgICAgICB0ZXh0OiBjZmcubGFiZWwsXHJcbiAgICAgICAgICAgICAgICAgICAgZmlsbDogc3R5bGUuZmlsbCB8fCAnIzk5OScsXHJcbiAgICAgICAgICAgICAgICAgICAgZm9udFNpemU6IHN0eWxlLmZvbnRTaXplIHx8IDE2XHJcbiAgICAgICAgICAgICAgICB9LFxyXG4gICAgICAgICAgICAgICAgbmFtZTogJ3BvaW50ZXItdGV4dC1zaGFwZSdcclxuICAgICAgICAgICAgfSk7XHJcblxyXG4gICAgICAgICAgICBjb25zdCB7IHdpZHRoOiB0ZXh0V2lkdGgsIGhlaWdodDogdGV4dEhlaWdodCB9ID0gdGV4dC5nZXRCQm94KCk7XHJcbiAgICAgICAgICAgIGJnUmVjdC5hdHRyKHsgXHJcbiAgICAgICAgICAgICAgICB3aWR0aDogdGV4dFdpZHRoICsgNixcclxuICAgICAgICAgICAgICAgIGhlaWdodDogdGV4dEhlaWdodCArIDZcclxuICAgICAgICAgICAgfSk7XHJcblxyXG4gICAgICAgICAgICAvLyDml4vovazmloflrZdcclxuICAgICAgICAgICAgY29uc3QgbWFya2VyRW5kUG9zaXRpb24gPSBjZmcubWFya2VyRW5kUG9zaXRpb247XHJcbiAgICAgICAgICAgIGlmKG1hcmtlckVuZFBvc2l0aW9uKSB7XHJcbiAgICAgICAgICAgICAgICBsZXQgdGV4dFggPSBtYXJrZXJFbmRQb3NpdGlvblswXSxcclxuICAgICAgICAgICAgICAgICAgICB0ZXh0WSA9IG1hcmtlckVuZFBvc2l0aW9uWzFdO1xyXG5cclxuICAgICAgICAgICAgICAgIHRleHQuYXR0cih7IFxyXG4gICAgICAgICAgICAgICAgICAgIHg6IHRleHRYLFxyXG4gICAgICAgICAgICAgICAgICAgIHk6IHRleHRZXHJcbiAgICAgICAgICAgICAgICB9KTtcclxuXHJcbiAgICAgICAgICAgICAgICBiZ1JlY3QuYXR0cih7IFxyXG4gICAgICAgICAgICAgICAgICAgIHg6IHRleHRYIC0gdGV4dFdpZHRoIC8gMiAtIDMsXHJcbiAgICAgICAgICAgICAgICAgICAgeTogdGV4dFkgLSB0ZXh0SGVpZ2h0IC8gMiAtIDNcclxuICAgICAgICAgICAgICAgIH0pO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICByZXR1cm4ga2V5U2hhcGU7XHJcbiAgICB9LFxyXG4gICAgXHJcbiAgICBnZXRQYXRoKGNmZykge1xyXG4gICAgICAgIGxldCB3aWR0aCA9IGNmZy5zaXplWzBdLFxyXG4gICAgICAgICAgICBoZWlnaHQgPSBjZmcuc2l6ZVsxXSxcclxuICAgICAgICAgICAgYXJyb3dXaWR0aCA9IHdpZHRoICsgNCxcclxuICAgICAgICAgICAgYXJyb3dIZWlnaHQgPSBoZWlnaHQgKiAwLjM7XHJcblxyXG4gICAgICAgIGNvbnN0IHBhdGggPSBbXHJcbiAgICAgICAgICAgIFsnTScsIDAsIDBdLCBcclxuICAgICAgICAgICAgWydMJywgLXdpZHRoIC8gMiAtIChhcnJvd1dpZHRoIC8gMiksIC1hcnJvd0hlaWdodF0sXHJcbiAgICAgICAgICAgIFsnTCcsIC13aWR0aCAvIDIsIC1hcnJvd0hlaWdodF0sXHJcbiAgICAgICAgICAgIFsnTCcsIC13aWR0aCAvIDIsIC1oZWlnaHRdLFxyXG4gICAgICAgICAgICBbJ0wnLCB3aWR0aCAvIDIsIC1oZWlnaHRdLFxyXG4gICAgICAgICAgICBbJ0wnLCB3aWR0aCAvIDIsIC1hcnJvd0hlaWdodF0sXHJcbiAgICAgICAgICAgIFsnTCcsIHdpZHRoIC8gMiArIChhcnJvd1dpZHRoIC8gMiksIC1hcnJvd0hlaWdodF0sXHJcbiAgICAgICAgICAgIFsnWiddLCBcclxuICAgICAgICBdO1xyXG5cclxuICAgICAgICByZXR1cm4gcGF0aDtcclxuICAgIH1cclxufSk7Il0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///18\n") }, function (module, exports, __webpack_require__) { "use strict"; eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nconst G6 = __webpack_require__(1);\r\nexports.default = G6.registerNode('link-list-node', {\r\n draw(cfg, group) {\r\n cfg.size = cfg.size || [30, 10];\r\n const width = cfg.size[0], height = cfg.size[1];\r\n const wrapperRect = group.addShape('rect', {\r\n attrs: {\r\n x: width / 2,\r\n y: height / 2,\r\n width: width,\r\n height: height,\r\n stroke: cfg.style.stroke || '#333',\r\n fill: '#eee',\r\n cursor: cfg.style.cursor\r\n },\r\n name: 'wrapper'\r\n });\r\n group.addShape('rect', {\r\n attrs: {\r\n x: width / 2,\r\n y: height / 2,\r\n width: width * (2 / 3),\r\n height: height,\r\n fill: cfg.style.fill,\r\n stroke: cfg.style.stroke || '#333',\r\n cursor: cfg.style.cursor\r\n },\r\n name: 'main-rect',\r\n draggable: true\r\n });\r\n if (cfg.label) {\r\n const style = (cfg.labelCfg && cfg.labelCfg.style) || {};\r\n group.addShape('text', {\r\n attrs: {\r\n x: width * (5 / 6),\r\n y: height,\r\n textAlign: 'center',\r\n textBaseline: 'middle',\r\n text: cfg.label,\r\n fill: style.fill || '#000',\r\n fontSize: style.fontSize || 16\r\n },\r\n name: 'text',\r\n draggable: true\r\n });\r\n }\r\n return wrapperRect;\r\n },\r\n getAnchorPoints() {\r\n return [\r\n [0.5, 0],\r\n [5 / 6, 0],\r\n [5 / 6, 0.5],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oge1xyXG4gICAgICAgICAgICAgICAgeDogd2lkdGggLyAyLFxyXG4gICAgICAgICAgICAgICAgeTogaGVpZ2h0IC8gMixcclxuICAgICAgICAgICAgICAgIHdpZHRoOiB3aWR0aCxcclxuICAgICAgICAgICAgICAgIGhlaWdodDogaGVpZ2h0LFxyXG4gICAgICAgICAgICAgICAgc3Ryb2tlOiBjZmcuc3R5bGUuc3Ryb2tlIHx8ICcjMzMzJyxcclxuICAgICAgICAgICAgICAgIGZpbGw6ICcjZWVlJyxcclxuICAgICAgICAgICAgICAgIGN1cnNvcjogY2ZnLnN0eWxlLmN1cnNvclxyXG4gICAgICAgICAgICB9LFxyXG4gICAgICAgICAgICBuYW1lOiAnd3JhcHBlcidcclxuICAgICAgICB9KTtcclxuXHJcbiAgICAgICAgZ3JvdXAuYWRkU2hhcGUoJ3JlY3QnLCB7XHJcbiAgICAgICAgICAgIGF0dHJzOiB7XHJcbiAgICAgICAgICAgICAgICB4OiB3aWR0aCAvIDIsXHJcbiAgICAgICAgICAgICAgICB5OiBoZWlnaHQgLyAyLFxyXG4gICAgICAgICAgICAgICAgd2lkdGg6IHdpZHRoICogKDIgLyAzKSxcclxuICAgICAgICAgICAgICAgIGhlaWdodDogaGVpZ2h0LFxyXG4gICAgICAgICAgICAgICAgZmlsbDogY2ZnLnN0eWxlLmZpbGwsXHJcbiAgICAgICAgICAgICAgICBzdHJva2U6IGNmZy5zdHlsZS5zdHJva2UgfHwgJyMzMzMnLFxyXG4gICAgICAgICAgICAgICAgY3Vyc29yOiBjZmcuc3R5bGUuY3Vyc29yXHJcbiAgICAgICAgICAgIH0sXHJcbiAgICAgICAgICAgIG5hbWU6ICdtYWluLXJlY3QnLFxyXG4gICAgICAgICAgICBkcmFnZ2FibGU6IHRydWVcclxuICAgICAgICB9KTtcclxuXHJcbiAgICAgICAgaWYgKGNmZy5sYWJlbCkge1xyXG4gICAgICAgICAgICBjb25zdCBzdHlsZSA9IChjZmcubGFiZWxDZmcgJiYgY2ZnLmxhYmVsQ2ZnLnN0eWxlKSB8fCB7fTtcclxuICAgICAgICAgICAgZ3JvdXAuYWRkU2hhcGUoJ3RleHQnLCB7XHJcbiAgICAgICAgICAgICAgICBhdHRyczoge1xyXG4gICAgICAgICAgICAgICAgICAgIHg6IHdpZHRoICogKDUgLyA2KSwgXHJcbiAgICAgICAgICAgICAgICAgICAgeTogaGVpZ2h0LFxyXG4gICAgICAgICAgICAgICAgICAgIHRleHRBbGlnbjogJ2NlbnRlcicsXHJcbiAgICAgICAgICAgICAgICAgICAgdGV4dEJhc2VsaW5lOiAnbWlkZGxlJyxcclxuICAgICAgICAgICAgICAgICAgICB0ZXh0OiBjZmcubGFiZWwsXHJcbiAgICAgICAgICAgICAgICAgICAgZmlsbDogc3R5bGUuZmlsbCB8fCAnIzAwMCcsXHJcbiAgICAgICAgICAgICAgICAgICAgZm9udFNpemU6IHN0eWxlLmZvbnRTaXplIHx8IDE2XHJcbiAgICAgICAgICAgICAgICB9LFxyXG4gICAgICAgICAgICAgICAgbmFtZTogJ3RleHQnLFxyXG4gICAgICAgICAgICAgICAgZHJhZ2dhYmxlOiB0cnVlXHJcbiAgICAgICAgICAgIH0pO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgcmV0dXJuIHdyYXBwZXJSZWN0O1xyXG4gICAgfSxcclxuXHJcbiAgICBnZXRBbmNob3JQb2ludHMoKSB7XHJcbiAgICAgICAgcmV0dXJuIFtcclxuICAgICAgICAgICAgWzAuNSwgMF0sXHJcbiAgICAgICAgICAgIFs1IC8gNiwgMF0sXHJcbiAgICAgICAgICAgIFs1IC8gNiwgMC41XSxcclxuICAgICAgICAgICAgWzEsIDAuNV0sXHJcbiAgICAgICAgICAgIFs1IC8gNiwgMV0sXHJcbiAgICAgICAgICAgIFswLjUsIDFdLFxyXG4gICAgICAgICAgICBbMCwgMC41XVxyXG4gICAgICAgIF07XHJcbiAgICB9XHJcbn0pOyJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///19\n") }, function (module, exports, __webpack_require__) { "use strict"; eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nconst G6 = __webpack_require__(1);\r\nexports.default = G6.registerNode('binary-tree-node', {\r\n draw(cfg, group) {\r\n cfg.size = cfg.size;\r\n const width = cfg.size[0], height = cfg.size[1];\r\n const wrapperRect = group.addShape('rect', {\r\n attrs: {\r\n x: width / 2,\r\n y: height / 2,\r\n width: width,\r\n height: height,\r\n stroke: cfg.style.stroke || '#333',\r\n cursor: cfg.style.cursor,\r\n fill: '#eee'\r\n },\r\n name: 'wrapper'\r\n });\r\n group.addShape('rect', {\r\n attrs: {\r\n x: width / 4 + width / 2,\r\n y: height / 2,\r\n width: width / 2,\r\n height: height,\r\n fill: cfg.color || cfg.style.fill,\r\n stroke: cfg.style.stroke || '#333',\r\n cursor: cfg.style.cursor\r\n },\r\n name: 'mid',\r\n draggable: true\r\n });\r\n if (cfg.label) {\r\n const style = (cfg.labelCfg && cfg.labelCfg.style) || {};\r\n group.addShape('text', {\r\n attrs: {\r\n x: width,\r\n y: height,\r\n textAlign: 'center',\r\n textBaseline: 'middle',\r\n text: cfg.label,\r\n fill: style.fill || '#000',\r\n fontSize: style.fontSize || 16,\r\n cursor: cfg.style.cursor\r\n },\r\n name: 'text',\r\n draggable: true\r\n });\r\n }\r\n return wrapperRect;\r\n },\r\n getAnchorPoints() {\r\n return [\r\n [0.5, 0],\r\n [0.875, 0.5],\r\n [0.5, 1],\r\n [0.125, 0.5]\r\n ];\r\n },\r\n});\r\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvUmVnaXN0ZXJlZFNoYXBlL2JpbmFyeVRyZWVOb2RlLnRzPzZkMjQiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxrQ0FBcUM7QUFHckMsa0JBQWUsRUFBRSxDQUFDLF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WR0aCAvIDQgKyB3aWR0aCAvIDIsXHJcbiAgICAgICAgICAgICAgICB5OiBoZWlnaHQgLyAyLFxyXG4gICAgICAgICAgICAgICAgd2lkdGg6IHdpZHRoIC8gMixcclxuICAgICAgICAgICAgICAgIGhlaWdodDogaGVpZ2h0LFxyXG4gICAgICAgICAgICAgICAgZmlsbDogY2ZnLmNvbG9yIHx8IGNmZy5zdHlsZS5maWxsLFxyXG4gICAgICAgICAgICAgICAgc3Ryb2tlOiBjZmcuc3R5bGUuc3Ryb2tlIHx8ICcjMzMzJyxcclxuICAgICAgICAgICAgICAgIGN1cnNvcjogY2ZnLnN0eWxlLmN1cnNvclxyXG4gICAgICAgICAgICB9LFxyXG4gICAgICAgICAgICBuYW1lOiAnbWlkJyxcclxuICAgICAgICAgICAgZHJhZ2dhYmxlOiB0cnVlXHJcbiAgICAgICAgfSk7XHJcblxyXG4gICAgICAgIGlmIChjZmcubGFiZWwpIHtcclxuICAgICAgICAgICAgY29uc3Qgc3R5bGUgPSAoY2ZnLmxhYmVsQ2ZnICYmIGNmZy5sYWJlbENmZy5zdHlsZSkgfHwge307XHJcbiAgICAgICAgICAgIGdyb3VwLmFkZFNoYXBlKCd0ZXh0Jywge1xyXG4gICAgICAgICAgICAgICAgYXR0cnM6IHtcclxuICAgICAgICAgICAgICAgICAgICB4OiB3aWR0aCwgLy8g5bGF5LitXHJcbiAgICAgICAgICAgICAgICAgICAgeTogaGVpZ2h0LFxyXG4gICAgICAgICAgICAgICAgICAgIHRleHRBbGlnbjogJ2NlbnRlcicsXHJcbiAgICAgICAgICAgICAgICAgICAgdGV4dEJhc2VsaW5lOiAnbWlkZGxlJyxcclxuICAgICAgICAgICAgICAgICAgICB0ZXh0OiBjZmcubGFiZWwsXHJcbiAgICAgICAgICAgICAgICAgICAgZmlsbDogc3R5bGUuZmlsbCB8fCAnIzAwMCcsXHJcbiAgICAgICAgICAgICAgICAgICAgZm9udFNpemU6IHN0eWxlLmZvbnRTaXplIHx8IDE2LFxyXG4gICAgICAgICAgICAgICAgICAgIGN1cnNvcjogY2ZnLnN0eWxlLmN1cnNvclxyXG4gICAgICAgICAgICAgICAgfSxcclxuICAgICAgICAgICAgICAgIG5hbWU6ICd0ZXh0JyxcclxuICAgICAgICAgICAgICAgIGRyYWdnYWJsZTogdHJ1ZVxyXG4gICAgICAgICAgICB9KTtcclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIHJldHVybiB3cmFwcGVyUmVjdDtcclxuICAgIH0sXHJcblxyXG4gICAgZ2V0QW5jaG9yUG9pbnRzKCkge1xyXG4gICAgICAgIHJldHVybiBbXHJcbiAgICAgICAgICAgIFswLjUsIDBdLFxyXG4gICAgICAgICAgICBbMC44NzUsIDAuNV0sXHJcbiAgICAgICAgICAgIFswLjUsIDFdLFxyXG4gICAgICAgICAgICBbMC4xMjUsIDAuNV1cclxuICAgICAgICBdO1xyXG4gICAgfSxcclxufSk7Il0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///20\n") }, function (module, exports, __webpack_require__) { "use strict"; eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nconst G6 = __webpack_require__(1);\r\nexports.default = G6.registerNode('two-cell-node', {\r\n draw(cfg, group) {\r\n cfg.size = cfg.size || [30, 10];\r\n const width = cfg.size[0], height = cfg.size[1];\r\n const wrapperRect = group.addShape('rect', {\r\n attrs: {\r\n x: width / 2,\r\n y: height / 2,\r\n width: width,\r\n height: height,\r\n stroke: cfg.style.stroke,\r\n fill: '#eee'\r\n },\r\n name: 'wrapper'\r\n });\r\n group.addShape('rect', {\r\n attrs: {\r\n x: width / 2,\r\n y: height / 2,\r\n width: width / 2,\r\n height: height,\r\n fill: cfg.style.fill,\r\n stroke: cfg.style.stroke\r\n },\r\n name: 'left-rect',\r\n draggable: true\r\n });\r\n const style = (cfg.labelCfg && cfg.labelCfg.style) || {};\r\n if (cfg.label) {\r\n if (Array.isArray(cfg.label)) {\r\n let tag = cfg.label[0], data = cfg.label[1];\r\n group.addShape('text', {\r\n attrs: {\r\n x: width * (3 / 4),\r\n y: height,\r\n textAlign: 'center',\r\n textBaseline: 'middle',\r\n text: tag,\r\n fill: style.fill || '#000',\r\n fontSize: style.fontSize || 16,\r\n cursor: cfg.style.cursor,\r\n },\r\n name: 'text',\r\n draggable: true\r\n });\r\n group.addShape('text', {\r\n attrs: {\r\n x: width * (5 / 4),\r\n y: height,\r\n textAlign: 'center',\r\n textBaseline: 'middle',\r\n text: data,\r\n fill: style.fill || '#000',\r\n fontSize: style.fontSize || 16,\r\n cursor: cfg.style.cursor,\r\n },\r\n name: 'text',\r\n draggable: true\r\n });\r\n }\r\n else {\r\n group.addShape('text', {\r\n attrs: {\r\n x: width * (3 / 4),\r\n y: height,\r\n textAlign: 'center',\r\n textBaseline: 'middle',\r\n text: cfg.label,\r\n fill: style.fill || '#000',\r\n fontSize: style.fontSize || 16,\r\n cursor: cfg.style.cursor,\r\n },\r\n name: 'text',\r\n draggable: true\r\n });\r\n }\r\n }\r\n return wrapperRect;\r\n },\r\n getAnchorPoints() {\r\n return [\r\n [0.5, 0],\r\n [3 / 4, 0.5],\r\n [0.5, 1],\r\n [0, 0.5]\r\n ];\r\n }\r\n});\r\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvUmVnaXN0ZXJlZFNoYXBlL3R3b0NlbGxOb2RlLnRzP2RlYjMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxrQ0FBcUM7QUFJckMsa0JBQWUsRUFBRSxDQUFDLFlBQVksQ0FBQyxlQUFlLEVBQUU7SUFDNUMsSUFBSSxDQUFDLEdBQUcsRUFBRSxLQUFLO1FBQ1gsR0FBRyxDQUFDLElBQUksR0FBRyxHQUFHLENBQUMsSUFBSSxJQUFJLENBQUMsRUFBRSxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBRWh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Q0FBQyxDQUFDIiwiZmlsZSI6IjIxLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0ICogYXMgRzYgZnJvbSBcIi4vLi4vTGliL2c2LmpzXCI7XHJcblxyXG5cclxuXHJcbmV4cG9ydCBkZWZhdWx0IEc2LnJlZ2lzdGVyTm9kZSgndHdvLWNlbGwtbm9kZScsIHtcclxuICAgIGRyYXcoY2ZnLCBncm91cCkge1xyXG4gICAgICAgIGNmZy5zaXplID0gY2ZnLnNpemUgfHwgWzMwLCAxMF07XHJcblxyXG4gICAgICAgIGNvbnN0IHdpZHRoID0gY2ZnLnNpemVbMF0sXHJcbiAgICAgICAgICAgICAgaGVpZ2h0ID0gY2ZnLnNpemVbMV07XHJcblxyXG4gICAgICAgIGNvbnN0IHdyYXBwZXJSZWN0ID0gZ3JvdXAuYWRkU2hhcGUoJ3JlY3QnLCB7XHJcbiAgICAgICAgICAgIGF0dHJzOiB7XHJcbiAgICAgICAgICAgICAgICB4OiB3aWR0aCAvIDIsXHJcbiAgICAgICAgICAgICAgICB5OiBoZWlnaHQgLyAyLFxyXG4gICAgICAgICAgICAgICAgd2lkdGg6IHdpZHRoLFxyXG4gICAgICAgICAgICAgICAgaGVpZ2h0OiBoZWlnaHQsXHJcbiAgICAgICAgICAgICAgICBzdHJva2U6IGNmZy5zdHlsZS5zdHJva2UsXHJcbiAgICAgICAgICAgICAgICBmaWxsOiAnI2VlZSdcclxuICAgICAgICAgICAgfSxcclxuICAgICAgICAgICAgbmFtZTogJ3dyYXBwZXInXHJcbiAgICAgICAgfSk7XHJcblxyXG4gICAgICAgIGdyb3VwLmFkZFNoYXBlKCdyZWN0Jywge1xyXG4gICAgICAgICAgICBhdHRyczoge1xyXG4gICAgICAgICAgICAgICAgeDogd2lkdGggLyAyLFxyXG4gICAgICAgICAgICAgICAgeTogaGVpZ2h0IC8gMixcclxuICAgICAgICAgICAgICAgIHdpZHRoOiB3aWR0aCAvIDIsXHJcbiAgICAgICAgICAgICAgICBoZWlnaHQ6IGhlaWdodCxcclxuICAgICAgICAgICAgICAgIGZpbGw6IGNmZy5zdHlsZS5maWxsLFxyXG4gICAgICAgICAgICAgICAgc3Ryb2tlOiBjZmcuc3R5bGUuc3Ryb2tlXHJcbiAgICAgICAgICAgIH0sXHJcbiAgICAgICAgICAgIG5hbWU6ICdsZWZ0LXJlY3QnLFxyXG4gICAgICAgICAgICBkcmFnZ2FibGU6IHRydWVcclxuICAgICAgICB9KTtcclxuXHJcbiAgICAgICAgY29uc3Qgc3R5bGUgPSAoY2ZnLmxhYmVsQ2ZnICYmIGNmZy5sYWJlbENmZy5zdHlsZSkgfHwge307XHJcblxyXG4gICAgICAgIGlmIChjZmcubGFiZWwpIHtcclxuICAgICAgICAgICAgaWYoQXJyYXkuaXNBcnJheShjZmcubGFiZWwpKSB7XHJcbiAgICAgICAgICAgICAgICBsZXQgdGFnID0gY2ZnLmxhYmVsWzBdLCBkYXRhID0gY2ZnLmxhYmVsWzFdO1xyXG5cclxuICAgICAgICAgICAgICAgIGdyb3VwLmFkZFNoYXBlKCd0ZXh0Jywge1xyXG4gICAgICAgICAgICAgICAgICAgIGF0dHJzOiB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHg6IHdpZHRoICogKDMgLyA0KSwgXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHk6IGhlaWdodCxcclxuICAgICAgICAgICAgICAgICAgICAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcclxuICAgICAgICAgICAgICAgICAgICAgICAgdGV4dEJhc2VsaW5lOiAnbWlkZGxlJyxcclxuICAgICAgICAgICAgICAgICAgICAgICAgdGV4dDogdGFnLFxyXG4gICAgICAgICAgICAgICAgICAgICAgICBmaWxsOiBzdHlsZS5maWxsIHx8ICcjMDAwJyxcclxuICAgICAgICAgICAgICAgICAgICAgICAgZm9udFNpemU6IHN0eWxlLmZvbnRTaXplIHx8IDE2LFxyXG4gICAgICAgICAgICAgICAgICAgICAgICBjdXJzb3I6IGNmZy5zdHlsZS5jdXJzb3IsXHJcbiAgICAgICAgICAgICAgICAgICAgfSxcclxuICAgICAgICAgICAgICAgICAgICBuYW1lOiAndGV4dCcsXHJcbiAgICAgICAgICAgICAgICAgICAgZHJhZ2dhYmxlOiB0cnVlXHJcbiAgICAgICAgICAgICAgICB9KTtcclxuXHJcbiAgICAgICAgICAgICAgICBncm91cC5hZGRTaGFwZSgndGV4dCcsIHtcclxuICAgICAgICAgICAgICAgICAgICBhdHRyczoge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICB4OiB3aWR0aCAqICg1IC8gNCksIFxyXG4gICAgICAgICAgICAgICAgICAgICAgICB5OiBoZWlnaHQsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHRleHRBbGlnbjogJ2NlbnRlcicsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHRleHRCYXNlbGluZTogJ21pZGRsZScsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHRleHQ6IGRhdGEsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGZpbGw6IHN0eWxlLmZpbGwgfHwgJyMwMDAnLFxyXG4gICAgICAgICAgICAgICAgICAgICAgICBmb250U2l6ZTogc3R5bGUuZm9udFNpemUgfHwgMTYsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGN1cnNvcjogY2ZnLnN0eWxlLmN1cnNvcixcclxuICAgICAgICAgICAgICAgICAgICB9LFxyXG4gICAgICAgICAgICAgICAgICAgIG5hbWU6ICd0ZXh0JyxcclxuICAgICAgICAgICAgICAgICAgICBkcmFnZ2FibGU6IHRydWVcclxuICAgICAgICAgICAgICAgIH0pO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIGVsc2Uge1xyXG4gICAgICAgICAgICAgICAgZ3JvdXAuYWRkU2hhcGUoJ3RleHQnLCB7XHJcbiAgICAgICAgICAgICAgICAgICAgYXR0cnM6IHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgeDogd2lkdGggKiAoMyAvIDQpLCBcclxuICAgICAgICAgICAgICAgICAgICAgICAgeTogaGVpZ2h0LFxyXG4gICAgICAgICAgICAgICAgICAgICAgICB0ZXh0QWxpZ246ICdjZW50ZXInLFxyXG4gICAgICAgICAgICAgICAgICAgICAgICB0ZXh0QmFzZWxpbmU6ICdtaWRkbGUnLFxyXG4gICAgICAgICAgICAgICAgICAgICAgICB0ZXh0OiBjZmcubGFiZWwsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGZpbGw6IHN0eWxlLmZpbGwgfHwgJyMwMDAnLFxyXG4gICAgICAgICAgICAgICAgICAgICAgICBmb250U2l6ZTogc3R5bGUuZm9udFNpemUgfHwgMTYsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGN1cnNvcjogY2ZnLnN0eWxlLmN1cnNvcixcclxuICAgICAgICAgICAgICAgICAgICB9LFxyXG4gICAgICAgICAgICAgICAgICAgIG5hbWU6ICd0ZXh0JyxcclxuICAgICAgICAgICAgICAgICAgICBkcmFnZ2FibGU6IHRydWVcclxuICAgICAgICAgICAgICAgIH0pO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICByZXR1cm4gd3JhcHBlclJlY3Q7XHJcbiAgICB9LFxyXG5cclxuICAgIGdldEFuY2hvclBvaW50cygpIHtcclxuICAgICAgICByZXR1cm4gW1xyXG4gICAgICAgICAgICBbMC41LCAwXSxcclxuICAgICAgICAgICAgWzMgLyA0LCAwLjVdLFxyXG4gICAgICAgICAgICBbMC41LCAxXSxcclxuICAgICAgICAgICAgWzAsIDAuNV1cclxuICAgICAgICBdO1xyXG4gICAgfVxyXG59KTsiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///21\n") }, function (module, exports, __webpack_require__) { "use strict"; eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nconst G6 = __webpack_require__(1);\r\nexports.default = G6.registerNode('cursor', {\r\n draw(cfg, group) {\r\n const keyShape = group.addShape('path', {\r\n attrs: {\r\n path: this.getPath(cfg),\r\n fill: cfg.style.fill,\r\n matrix: cfg.style.matrix\r\n },\r\n name: 'cursor-path'\r\n });\r\n if (cfg.label) {\r\n const style = (cfg.labelCfg && cfg.labelCfg.style) || {};\r\n const bgRect = group.addShape('rect', {\r\n attrs: {\r\n x: 0,\r\n y: 0,\r\n text: cfg.label,\r\n fill: '#fafafa',\r\n radius: 2,\r\n },\r\n name: 'bgRect'\r\n });\r\n const text = group.addShape('text', {\r\n attrs: {\r\n x: 0,\r\n y: 0,\r\n textAlign: 'center',\r\n textBaseline: 'middle',\r\n text: cfg.label,\r\n fill: style.fill || '#999',\r\n fontSize: style.fontSize || 16\r\n },\r\n name: 'cursor-text-shape'\r\n });\r\n const { width: textWidth, height: textHeight } = text.getBBox();\r\n bgRect.attr({\r\n width: textWidth + 6,\r\n height: textHeight + 6\r\n });\r\n const markerEndPosition = cfg.markerEndPosition;\r\n if (markerEndPosition) {\r\n let textX = markerEndPosition[0], textY = markerEndPosition[1];\r\n text.attr({\r\n x: textX,\r\n y: textY\r\n });\r\n bgRect.attr({\r\n x: textX - textWidth / 2 - 3,\r\n y: textY - textHeight / 2 - 3\r\n });\r\n }\r\n }\r\n return keyShape;\r\n },\r\n getPath(cfg) {\r\n let width = cfg.size[0], height = cfg.size[1];\r\n const path = [\r\n ['M', 0, 0],\r\n ['L', -width / 2, -height],\r\n ['L', width / 2, -height],\r\n ['L', 0, 0],\r\n ['Z'],\r\n ];\r\n return path;\r\n }\r\n});\r\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvUmVnaXN0ZXJlZFNoYXBlL2N1cnNvci50cz9iNjZlIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBRUEsa0NBQXFDO0FBR3JDLGtCQUFlLEVBQUUsQ0FBQyxZQUFZLENBQUMsUUFBUSxFQUFFO0lBQ3J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CdcclxuICAgICAgICB9KTtcclxuXHJcbiAgICAgICAgaWYgKGNmZy5sYWJlbCkge1xyXG4gICAgICAgICAgICBjb25zdCBzdHlsZSA9IChjZmcubGFiZWxDZmcgJiYgY2ZnLmxhYmVsQ2ZnLnN0eWxlKSB8fCB7fTtcclxuXHJcbiAgICAgICAgICAgIGNvbnN0IGJnUmVjdCA9IGdyb3VwLmFkZFNoYXBlKCdyZWN0Jywge1xyXG4gICAgICAgICAgICAgICAgYXR0cnM6IHtcclxuICAgICAgICAgICAgICAgICAgICB4OiAwLCBcclxuICAgICAgICAgICAgICAgICAgICB5OiAwLFxyXG4gICAgICAgICAgICAgICAgICAgIHRleHQ6IGNmZy5sYWJlbCxcclxuICAgICAgICAgICAgICAgICAgICBmaWxsOiAnI2ZhZmFmYScsXHJcbiAgICAgICAgICAgICAgICAgICAgcmFkaXVzOiAyLFxyXG4gICAgICAgICAgICAgICAgfSxcclxuICAgICAgICAgICAgICAgIG5hbWU6ICdiZ1JlY3QnXHJcbiAgICAgICAgICAgIH0pO1xyXG5cclxuICAgICAgICAgICAgY29uc3QgdGV4dCA9IGdyb3VwLmFkZFNoYXBlKCd0ZXh0Jywge1xyXG4gICAgICAgICAgICAgICAgYXR0cnM6IHtcclxuICAgICAgICAgICAgICAgICAgICB4OiAwLCBcclxuICAgICAgICAgICAgICAgICAgICB5OiAwLFxyXG4gICAgICAgICAgICAgICAgICAgIHRleHRBbGlnbjogJ2NlbnRlcicsXHJcbiAgICAgICAgICAgICAgICAgICAgdGV4dEJhc2VsaW5lOiAnbWlkZGxlJyxcclxuICAgICAgICAgICAgICAgICAgICB0ZXh0OiBjZmcubGFiZWwsXHJcbiAgICAgICAgICAgICAgICAgICAgZmlsbDogc3R5bGUuZmlsbCB8fCAnIzk5OScsXHJcbiAgICAgICAgICAgICAgICAgICAgZm9udFNpemU6IHN0eWxlLmZvbnRTaXplIHx8IDE2XHJcbiAgICAgICAgICAgICAgICB9LFxyXG4gICAgICAgICAgICAgICAgbmFtZTogJ2N1cnNvci10ZXh0LXNoYXBlJ1xyXG4gICAgICAgICAgICB9KTtcclxuXHJcbiAgICAgICAgICAgIGNvbnN0IHsgd2lkdGg6IHRleHRXaWR0aCwgaGVpZ2h0OiB0ZXh0SGVpZ2h0IH0gPSB0ZXh0LmdldEJCb3goKTtcclxuICAgICAgICAgICAgYmdSZWN0LmF0dHIoeyBcclxuICAgICAgICAgICAgICAgIHdpZHRoOiB0ZXh0V2lkdGggKyA2LFxyXG4gICAgICAgICAgICAgICAgaGVpZ2h0OiB0ZXh0SGVpZ2h0ICsgNlxyXG4gICAgICAgICAgICB9KTtcclxuXHJcbiAgICAgICAgICAgIC8vIOaXi+i9rOaWh+Wtl1xyXG4gICAgICAgICAgICBjb25zdCBtYXJrZXJFbmRQb3NpdGlvbiA9IGNmZy5tYXJrZXJFbmRQb3NpdGlvbjtcclxuICAgICAgICAgICAgaWYobWFya2VyRW5kUG9zaXRpb24pIHtcclxuICAgICAgICAgICAgICAgIGxldCB0ZXh0WCA9IG1hcmtlckVuZFBvc2l0aW9uWzBdLFxyXG4gICAgICAgICAgICAgICAgICAgIHRleHRZID0gbWFya2VyRW5kUG9zaXRpb25bMV07XHJcblxyXG4gICAgICAgICAgICAgICAgdGV4dC5hdHRyKHsgXHJcbiAgICAgICAgICAgICAgICAgICAgeDogdGV4dFgsXHJcbiAgICAgICAgICAgICAgICAgICAgeTogdGV4dFlcclxuICAgICAgICAgICAgICAgIH0pO1xyXG5cclxuICAgICAgICAgICAgICAgIGJnUmVjdC5hdHRyKHsgXHJcbiAgICAgICAgICAgICAgICAgICAgeDogdGV4dFggLSB0ZXh0V2lkdGggLyAyIC0gMyxcclxuICAgICAgICAgICAgICAgICAgICB5OiB0ZXh0WSAtIHRleHRIZWlnaHQgLyAyIC0gM1xyXG4gICAgICAgICAgICAgICAgfSk7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIHJldHVybiBrZXlTaGFwZTtcclxuICAgIH0sXHJcblxyXG4gICAgXHJcbiAgICBnZXRQYXRoKGNmZykge1xyXG4gICAgICAgIGxldCB3aWR0aCA9IGNmZy5zaXplWzBdLFxyXG4gICAgICAgICAgICBoZWlnaHQgPSBjZmcuc2l6ZVsxXTtcclxuXHJcbiAgICAgICAgY29uc3QgcGF0aCA9IFtcclxuICAgICAgICAgICAgWydNJywgMCwgMF0sIFxyXG4gICAgICAgICAgICBbJ0wnLCAtd2lkdGggLyAyLCAtaGVpZ2h0XSxcclxuICAgICAgICAgICAgWydMJywgd2lkdGggLyAyLCAtaGVpZ2h0XSxcclxuICAgICAgICAgICAgWydMJywgMCwgMF0sXHJcbiAgICAgICAgICAgIFsnWiddLCBcclxuICAgICAgICBdO1xyXG5cclxuICAgICAgICByZXR1cm4gcGF0aDtcclxuICAgIH1cclxufSk7Il0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///22\n") }, function (module, exports, __webpack_require__) { "use strict"; eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nconst G6 = __webpack_require__(1);\r\nexports.default = G6.registerNode('indexed-node', {\r\n draw(cfg, group) {\r\n cfg.size = cfg.size || [30, 10];\r\n const width = cfg.size[0], height = cfg.size[1], disable = cfg.disable === undefined ? false : cfg.disable;\r\n const rect = group.addShape('rect', {\r\n attrs: {\r\n x: width / 2,\r\n y: height / 2,\r\n width: width,\r\n height: height,\r\n stroke: cfg.style.stroke || '#333',\r\n fill: disable ? '#ccc' : cfg.style.fill,\r\n cursor: cfg.style.cursor,\r\n },\r\n name: 'wrapper'\r\n });\r\n if (cfg.label) {\r\n const style = (cfg.labelCfg && cfg.labelCfg.style) || {};\r\n group.addShape('text', {\r\n attrs: {\r\n x: width,\r\n y: height,\r\n textAlign: 'center',\r\n textBaseline: 'middle',\r\n text: cfg.label,\r\n fill: style.fill || '#000',\r\n fontSize: style.fontSize || 16\r\n },\r\n name: 'text'\r\n });\r\n }\r\n const indexCfg = cfg.indexCfg;\r\n const offset = 20;\r\n const indexPositionMap = {\r\n top: (width, height) => ({ x: width, y: height / 2 - offset }),\r\n right: (width, height) => ({ x: width * 1.5 + offset, y: height }),\r\n bottom: (width, height) => ({ x: width, y: height * 1.5 + offset }),\r\n left: (width, height) => ({ x: width / 2 - offset, y: height })\r\n };\r\n if (indexCfg !== undefined) {\r\n Object.keys(indexCfg).map(key => {\r\n let indexCfgItem = indexCfg[key];\r\n let position = indexCfgItem.position || 'bottom';\r\n let { x: indexX, y: indexY } = indexPositionMap[position](width, height);\r\n group.addShape('text', {\r\n attrs: Object.assign({ x: indexX, y: indexY, textAlign: 'center', textBaseline: 'middle', text: indexCfgItem.value.toString(), fill: '#bbb', fontSize: 14, fontStyle: 'italic' }, indexCfgItem.style),\r\n name: 'index-text'\r\n });\r\n });\r\n }\r\n return rect;\r\n },\r\n getAnchorPoints() {\r\n return [\r\n [0.5, 0],\r\n [1, 0.5],\r\n [0.5, 1],\r\n [0, 0.5]\r\n ];\r\n }\r\n});\r\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvUmVnaXN0ZXJlZFNoYXBlL2luZGV4ZWROb2RlLnRzP2ZmZDgiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxrQ0FBcUM7QUFHckMsa0JBQWUsRUFBRSxDQUFDLFlBQVksQ0FBQyxjQUFjLEVBQUU7SUFDM0MsSUFBSSxDQUFDLEdBQUcsRUFBRSxLQUFLO1FBQ1gsR0FBRyxDQUFDLElBQUksR0FBRyxHQUFHLENBQUMsSUFBSSxJQUFJLENBQUMsRUFBRSxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBRWhDLE1BQU0sS0FBSyxHQUFHLEdBQUcsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLEVBQ3JCLE1BQU0sR0FBRyxHQUFHLENBQUMsSUFBSSxDQU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ZWwpIHtcclxuICAgICAgICAgICAgY29uc3Qgc3R5bGUgPSAoY2ZnLmxhYmVsQ2ZnICYmIGNmZy5sYWJlbENmZy5zdHlsZSkgfHwge307XHJcbiAgICAgICAgICAgIGdyb3VwLmFkZFNoYXBlKCd0ZXh0Jywge1xyXG4gICAgICAgICAgICAgICAgYXR0cnM6IHtcclxuICAgICAgICAgICAgICAgICAgICB4OiB3aWR0aCxcclxuICAgICAgICAgICAgICAgICAgICB5OiBoZWlnaHQsXHJcbiAgICAgICAgICAgICAgICAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcclxuICAgICAgICAgICAgICAgICAgICB0ZXh0QmFzZWxpbmU6ICdtaWRkbGUnLFxyXG4gICAgICAgICAgICAgICAgICAgIHRleHQ6IGNmZy5sYWJlbCxcclxuICAgICAgICAgICAgICAgICAgICBmaWxsOiBzdHlsZS5maWxsIHx8ICcjMDAwJyxcclxuICAgICAgICAgICAgICAgICAgICBmb250U2l6ZTogc3R5bGUuZm9udFNpemUgfHwgMTZcclxuICAgICAgICAgICAgICAgIH0sXHJcbiAgICAgICAgICAgICAgICBuYW1lOiAndGV4dCdcclxuICAgICAgICAgICAgfSk7XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICBjb25zdCBpbmRleENmZyA9IGNmZy5pbmRleENmZztcclxuICAgICAgICBjb25zdCBvZmZzZXQgPSAyMDtcclxuICAgICAgICBjb25zdCBpbmRleFBvc2l0aW9uTWFwOiB7IFtrZXk6IHN0cmluZ106ICh3aWR0aDogbnVtYmVyLCBoZWlnaHQ6IG51bWJlcikgPT4geyB4OiBudW1iZXIsIHk6IG51bWJlciB9IH0gPSB7XHJcbiAgICAgICAgICAgIHRvcDogKHdpZHRoOiBudW1iZXIsIGhlaWdodDogbnVtYmVyKSA9PiAoeyB4OiB3aWR0aCwgeTogaGVpZ2h0IC8gMiAtIG9mZnNldCB9KSxcclxuICAgICAgICAgICAgcmlnaHQ6ICh3aWR0aDogbnVtYmVyLCBoZWlnaHQ6IG51bWJlcikgPT4gKHsgeDogd2lkdGggKiAxLjUgKyBvZmZzZXQsIHk6IGhlaWdodCB9KSxcclxuICAgICAgICAgICAgYm90dG9tOiAod2lkdGg6IG51bWJlciwgaGVpZ2h0OiBudW1iZXIpID0+ICh7IHg6IHdpZHRoLCB5OiBoZWlnaHQgKiAxLjUgKyBvZmZzZXQgfSksXHJcbiAgICAgICAgICAgIGxlZnQ6ICh3aWR0aDogbnVtYmVyLCBoZWlnaHQ6IG51bWJlcikgPT4gKHsgeDogd2lkdGggLyAyIC0gb2Zmc2V0LCB5OiBoZWlnaHQgfSlcclxuICAgICAgICB9O1xyXG5cclxuICAgICAgICBpZiAoaW5kZXhDZmcgIT09IHVuZGVmaW5lZCkge1xyXG4gICAgICAgICAgICBPYmplY3Qua2V5cyhpbmRleENmZykubWFwKGtleSA9PiB7XHJcbiAgICAgICAgICAgICAgICBsZXQgaW5kZXhDZmdJdGVtID0gaW5kZXhDZmdba2V5XTtcclxuICAgICAgICAgICAgICAgIGxldCBwb3NpdGlvbiA9IGluZGV4Q2ZnSXRlbS5wb3NpdGlvbiB8fCAnYm90dG9tJztcclxuICAgICAgICAgICAgICAgIGxldCB7IHg6IGluZGV4WCwgeTogaW5kZXhZIH0gPSBpbmRleFBvc2l0aW9uTWFwW3Bvc2l0aW9uXSh3aWR0aCwgaGVpZ2h0KTtcclxuXHJcbiAgICAgICAgICAgICAgICBncm91cC5hZGRTaGFwZSgndGV4dCcsIHtcclxuICAgICAgICAgICAgICAgICAgICBhdHRyczoge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICB4OiBpbmRleFgsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHk6IGluZGV4WSxcclxuICAgICAgICAgICAgICAgICAgICAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcclxuICAgICAgICAgICAgICAgICAgICAgICAgdGV4dEJhc2VsaW5lOiAnbWlkZGxlJyxcclxuICAgICAgICAgICAgICAgICAgICAgICAgdGV4dDogaW5kZXhDZmdJdGVtLnZhbHVlLnRvU3RyaW5nKCksXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGZpbGw6ICcjYmJiJyxcclxuICAgICAgICAgICAgICAgICAgICAgICAgZm9udFNpemU6IDE0LFxyXG4gICAgICAgICAgICAgICAgICAgICAgICBmb250U3R5bGU6ICdpdGFsaWMnLFxyXG4gICAgICAgICAgICAgICAgICAgICAgICAuLi5pbmRleENmZ0l0ZW0uc3R5bGVcclxuICAgICAgICAgICAgICAgICAgICB9LFxyXG4gICAgICAgICAgICAgICAgICAgIG5hbWU6ICdpbmRleC10ZXh0J1xyXG4gICAgICAgICAgICAgICAgfSk7XHJcbiAgICAgICAgICAgIH0pO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgcmV0dXJuIHJlY3Q7XHJcbiAgICB9LFxyXG5cclxuICAgIGdldEFuY2hvclBvaW50cygpIHtcclxuICAgICAgICByZXR1cm4gW1xyXG4gICAgICAgICAgICBbMC41LCAwXSxcclxuICAgICAgICAgICAgWzEsIDAuNV0sXHJcbiAgICAgICAgICAgIFswLjUsIDFdLFxyXG4gICAgICAgICAgICBbMCwgMC41XVxyXG4gICAgICAgIF07XHJcbiAgICB9XHJcbn0pOyJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///23\n") }, function (module, exports, __webpack_require__) { "use strict"; eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nconst G6 = __webpack_require__(1);\r\nexports.default = G6.registerNode('clen-queue-pointer', {\r\n draw(cfg, group) {\r\n const index = cfg.id.split('-')[1];\r\n const len = cfg.id.split('-')[2];\r\n const keyShape = group.addShape('path', {\r\n attrs: {\r\n x: 0,\r\n y: 0,\r\n path: this.getPath(cfg),\r\n fill: cfg.style.fill,\r\n },\r\n name: 'pointer-path'\r\n });\r\n const angle = index * Math.PI * 2 / len;\r\n if (cfg.label) {\r\n const style = (cfg.labelCfg && cfg.labelCfg.style) || {};\r\n const bgRect = group.addShape('rect', {\r\n attrs: {\r\n x: 0,\r\n y: 0,\r\n width: 0,\r\n height: 0,\r\n text: cfg.label,\r\n fill: null,\r\n radius: 2\r\n },\r\n name: 'bgRect'\r\n });\r\n let pointerText = cfg.label.split('-')[0];\r\n let y = pointerText == \"front\" ? 30 : 15;\r\n const text = group.addShape('text', {\r\n attrs: {\r\n x: culcuRotate(Math.PI / 2 - angle, y).offsetX,\r\n y: culcuRotate(Math.PI / 2 - angle, y).offsetY,\r\n textAlign: 'center',\r\n textBaseline: 'middle',\r\n text: pointerText,\r\n fill: style.fill || '#999',\r\n fontSize: style.fontSize || 16\r\n },\r\n name: 'pointer-text-shape'\r\n });\r\n translate(text, 0, -75, G6.Util.transform);\r\n }\r\n rotate(keyShape, angle, G6.Util.transform);\r\n translate(keyShape, 0, -75, G6.Util.transform);\r\n return keyShape;\r\n },\r\n getPath(cfg) {\r\n let width = 1, height = 38, arrowWidth = width + 4, arrowHeight = height * 0.3;\r\n const path = [\r\n ['M', 0, 0],\r\n ['L', -width / 2, 0],\r\n ['L', -width / 2, -height],\r\n ['L', -width / 2 - (arrowWidth / 2), -height],\r\n ['L', 0, -height - arrowHeight],\r\n ['L', width / 2 + (arrowWidth / 2), -height],\r\n ['L', width / 2, -height],\r\n ['L', width / 2, 0],\r\n ['Z'],\r\n ];\r\n return path;\r\n },\r\n});\r\nfunction rotate(shape, angle, transform) {\r\n const matrix1 = shape.getMatrix();\r\n const newMatrix1 = transform(matrix1, [\r\n ['r', angle],\r\n ]);\r\n shape.setMatrix(newMatrix1);\r\n}\r\nfunction translate(shape, x, y, transform) {\r\n const matrix1 = shape.getMatrix();\r\n const newMatrix1 = transform(matrix1, [\r\n ['t', x, y],\r\n ]);\r\n shape.setMatrix(newMatrix1);\r\n}\r\nfunction culcuRotate(angle, R) {\r\n let offsetX = Math.cos(angle) * R;\r\n let offsetY = -Math.sin(angle) * R;\r\n console.log(offsetX, offsetY, R);\r\n return {\r\n offsetX,\r\n offsetY,\r\n };\r\n}\r\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WF0cml4OiBjZmcuc3R5bGUubWF0cml4XHJcbiAgICAgICAgICAgIH0sXHJcbiAgICAgICAgICAgIG5hbWU6ICdwb2ludGVyLXBhdGgnXHJcbiAgICAgICAgfSk7XHJcbiAgICAgICAgY29uc3QgYW5nbGUgPSBpbmRleCAqICBNYXRoLlBJICogMiAvIGxlbjtcclxuICAgICAgICBpZiAoY2ZnLmxhYmVsKSB7XHJcbiAgICAgICAgICAgIGNvbnN0IHN0eWxlID0gKGNmZy5sYWJlbENmZyAmJiBjZmcubGFiZWxDZmcuc3R5bGUpIHx8IHt9O1xyXG4gICAgICAgICAgICBcclxuICAgICAgICAgICAgY29uc3QgYmdSZWN0ID0gZ3JvdXAuYWRkU2hhcGUoJ3JlY3QnLCB7XHJcbiAgICAgICAgICAgICAgICBhdHRyczoge1xyXG4gICAgICAgICAgICAgICAgICAgIHg6IDAsIFxyXG4gICAgICAgICAgICAgICAgICAgIHk6IDAsXHJcbiAgICAgICAgICAgICAgICAgICAgd2lkdGg6IDAsXHJcbiAgICAgICAgICAgICAgICAgICAgaGVpZ2h0OiAwLFxyXG4gICAgICAgICAgICAgICAgICAgIHRleHQ6IGNmZy5sYWJlbCxcclxuICAgICAgICAgICAgICAgICAgICBmaWxsOiBudWxsLFxyXG4gICAgICAgICAgICAgICAgICAgIHJhZGl1czogMlxyXG4gICAgICAgICAgICAgICAgfSxcclxuICAgICAgICAgICAgICAgIG5hbWU6ICdiZ1JlY3QnXHJcbiAgICAgICAgICAgIH0pO1xyXG4gICAgICAgICAgICBsZXQgcG9pbnRlclRleHQgPSBjZmcubGFiZWwuc3BsaXQoJy0nKVswXTtcclxuICAgICAgICAgICAgbGV0IHkgPSBwb2ludGVyVGV4dD09XCJmcm9udFwiPzMwOjE1O1xyXG4gICAgICAgICAgICBjb25zdCB0ZXh0ID0gZ3JvdXAuYWRkU2hhcGUoJ3RleHQnLCB7XHJcbiAgICAgICAgICAgICAgICBhdHRyczoge1xyXG4gICAgICAgICAgICAgICAgICAgIHg6IGN1bGN1Um90YXRlKE1hdGguUEkvMiAtIGFuZ2xlLCB5KS5vZmZzZXRYLCBcclxuICAgICAgICAgICAgICAgICAgICB5OiBjdWxjdVJvdGF0ZShNYXRoLlBJLzIgLSBhbmdsZSwgeSkub2Zmc2V0WSxcclxuICAgICAgICAgICAgICAgICAgICAvLyB4OiAwLCBcclxuICAgICAgICAgICAgICAgICAgICAvLyB5OiAwLFxyXG4gICAgICAgICAgICAgICAgICAgIHRleHRBbGlnbjogJ2NlbnRlcicsXHJcbiAgICAgICAgICAgICAgICAgICAgdGV4dEJhc2VsaW5lOiAnbWlkZGxlJyxcclxuICAgICAgICAgICAgICAgICAgICB0ZXh0OiBwb2ludGVyVGV4dCxcclxuICAgICAgICAgICAgICAgICAgICBmaWxsOiBzdHlsZS5maWxsIHx8ICcjOTk5JyxcclxuICAgICAgICAgICAgICAgICAgICBmb250U2l6ZTogc3R5bGUuZm9udFNpemUgfHwgMTZcclxuICAgICAgICAgICAgICAgIH0sXHJcbiAgICAgICAgICAgICAgICBuYW1lOiAncG9pbnRlci10ZXh0LXNoYXBlJ1xyXG4gICAgICAgICAgICB9KTtcclxuXHJcbiAgICAgICAgICAgIC8vIHJvdGF0ZSh0ZXh0LCBhbmdsZSwgRzYuVXRpbC50cmFuc2Zvcm0pO1xyXG4gICAgICAgICAgICB0cmFuc2xhdGUodGV4dCwgMCwgLTc1LCBHNi5VdGlsLnRyYW5zZm9ybSk7XHJcbiAgICAgICAgfVxyXG4gICAgICAgIHJvdGF0ZShrZXlTaGFwZSwgYW5nbGUsIEc2LlV0aWwudHJhbnNmb3JtKTtcclxuICAgICAgICB0cmFuc2xhdGUoa2V5U2hhcGUsIDAsIC03NSwgRzYuVXRpbC50cmFuc2Zvcm0pO1xyXG5cclxuICAgICAgICByZXR1cm4ga2V5U2hhcGU7XHJcblxyXG4gICAgICAgIFxyXG4gICAgfSxcclxuICAgIFxyXG4gICAgZ2V0UGF0aChjZmcpIHtcclxuICAgICAgICBs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Uoc2hhcGUsIHgsIHksIHRyYW5zZm9ybSkge1xyXG4gICAgY29uc3QgbWF0cml4MSA9IHNoYXBlLmdldE1hdHJpeCgpO1xyXG4gICAgY29uc3QgbmV3TWF0cml4MSA9IHRyYW5zZm9ybShtYXRyaXgxLCBbXHJcbiAgICAgICAgWyd0JywgeCwgeV0sXHJcbiAgICBdKTtcclxuICAgIHNoYXBlLnNldE1hdHJpeChuZXdNYXRyaXgxKTtcclxufVxyXG5mdW5jdGlvbiBjdWxjdVJvdGF0ZShhbmdsZSwgUikge1xyXG4gICAgbGV0IG9mZnNldFggPSBNYXRoLmNvcyhhbmdsZSkgKiBSO1xyXG4gICAgbGV0IG9mZnNldFkgPSAtTWF0aC5zaW4oYW5nbGUpICogUjtcclxuICAgIGNvbnNvbGUubG9nKG9mZnNldFgsIG9mZnNldFksIFIpO1xyXG4gICAgcmV0dXJuIHtcclxuICAgICAgICBvZmZzZXRYLFxyXG4gICAgICAgIG9mZnNldFksXHJcbiAgICB9XHJcbn0iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///24\n") }]) })); |