UNPKG

gg-editor

Version:

A visual graph editor based on G6 and React

1 lines 577 kB
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("react"),require("antd"),require("react-router-dom"),require("react-dom"));else if("function"==typeof define&&define.amd)define(["react","antd","react-router-dom","react-dom"],e);else{var n="object"==typeof exports?e(require("react"),require("antd"),require("react-router-dom"),require("react-dom")):e(t.React,t.antd,t.ReactRouterDOM,t.ReactDOM);for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}("undefined"!=typeof self?self:this,function(t,e,n,r){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=68)}([function(e,n){e.exports=t},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.withPropsAPI=e.DetailPanel=e.CanvasPanel=e.MultiPanel=e.GroupPanel=e.EdgePanel=e.NodePanel=e.ItemPanel=e.Item=e.Toolbar=e.ContextMenu=e.CanvasMenu=e.MultiMenu=e.GroupMenu=e.EdgeMenu=e.NodeMenu=e.Minimap=e.Command=e.RegisterBehaviour=e.RegisterCommand=e.RegisterGuide=e.RegisterGroup=e.RegisterEdge=e.RegisterNode=e.Koni=e.Mind=e.Flow=void 0;var i=n(72),o=r(i),a=n(165),u=r(a),c=n(166),s=r(c),l=n(167),f=n(168),h=r(f),d=n(169),p=r(d),g=n(170),m=r(g),v=n(172),y=r(v),b=n(173),x=r(b),_=n(175),w=r(_),E=n(177),O=r(E),S=n(178),M=r(S);e.Flow=o.default,e.Mind=u.default,e.Koni=s.default,e.RegisterNode=l.RegisterNode,e.RegisterEdge=l.RegisterEdge,e.RegisterGroup=l.RegisterGroup,e.RegisterGuide=l.RegisterGuide,e.RegisterCommand=l.RegisterCommand,e.RegisterBehaviour=l.RegisterBehaviour,e.Command=h.default,e.Minimap=p.default,e.NodeMenu=g.NodeMenu,e.EdgeMenu=g.EdgeMenu,e.GroupMenu=g.GroupMenu,e.MultiMenu=g.MultiMenu,e.CanvasMenu=g.CanvasMenu,e.ContextMenu=m.default,e.Toolbar=y.default,e.Item=b.Item,e.ItemPanel=x.default,e.NodePanel=_.NodePanel,e.EdgePanel=_.EdgePanel,e.GroupPanel=_.GroupPanel,e.MultiPanel=_.MultiPanel,e.CanvasPanel=_.CanvasPanel,e.DetailPanel=w.default,e.withPropsAPI=O.default,e.default=M.default},function(t,n){t.exports=e},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.upperFirst=e.uniqueId=e.toQueryString=e.pick=e.merge=void 0;var i=n(74),o=r(i),a=n(138),u=r(a),c=n(157),s=r(c),l=n(158),f=r(l),h=function(t){return Object.keys(t).map(function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])}).join("&")};e.merge=o.default,e.pick=u.default,e.toQueryString=h,e.uniqueId=s.default,e.upperFirst=f.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(e.FLOW_CONTAINER="J_FlowContainer",e.MIND_CONTAINER="J_MindContainer",e.KONI_CONTAINER="J_KoniContainer",e.TOOLBAR_CONTAINER="J_ToolbarContainer",e.MINIMAP_CONTAINER="J_MinimapContainer",e.CONTEXT_MENU_CONTAINER="J_ContextMenuContainer",e.FLOW_CLASS_NAME="Flow",e.MIND_CLASS_NAME="Mind",e.KONI_CLASS_NAME="Koni",e.EVENT_BEFORE_ADD_PAGE="beforeAddPage",e.EVENT_AFTER_ADD_PAGE="afterAddPage",e.STATUS_CANVAS_SELECTED="canvas-selected",e.STATUS_NODE_SELECTED="node-selected",e.STATUS_EDGE_SELECTED="edge-selected",e.STATUS_GROUP_SELECTED="group-selected",e.STATUS_MULTI_SELECTED="multi-selected",e.GRAPH_MOUSE_REACT_EVENTS={click:"Click",contextmenu:"ContextMenu",dblclick:"DoubleClick",drag:"Drag",dragend:"DragEnd",dragenter:"DragEnter",dragleave:"DragLeave",dragstart:"DragStart",drop:"Drop",mousedown:"MouseDown",mouseenter:"MouseEnter",mouseleave:"MouseLeave",mousemove:"MouseMove",mouseup:"MouseUp"}),i=e.GRAPH_OTHER_REACT_EVENTS={afterchange:"onAfterChange",afterchangesize:"onAfterChangeSize",afterviewportchange:"onAfterViewportChange",beforechange:"onBeforeChange",beforechangesize:"onBeforeChangeSize",beforeviewportchange:"onBeforeViewportChange",keydown:"onKeyDown",keyup:"onKeyUp",mousewheel:"onMouseWheel"},o=e.PAGE_REACT_EVENTS={afteritemactived:"onAfterItemActived",afteriteminactivated:"onAfterItemInactivated",afteritemselected:"onAfterItemSelected",afteritemunactived:"onAfterItemInactivated",afteritemunselected:"onAfterItemUnselected",beforeitemactived:"onBeforeItemActived",beforeiteminactivated:"onBeforeItemInactivated",beforeitemselected:"onBeforeItemSelected",beforeitemunactived:"onBeforeItemInactivated",beforeitemunselected:"onBeforeItemUnselected",keyUpEditLabel:"onKeyUpEditLabel"},a=e.EDITOR_REACT_EVENTS={aftercommandexecute:"onAfterCommandExecute",beforecommandexecute:"onBeforeCommandExecute"};e.GRAPH_MOUSE_EVENTS=Object.keys(r),e.GRAPH_OTHER_EVENTS=Object.keys(i),e.PAGE_EVENTS=Object.keys(o),e.EDITOR_EVENTS=Object.keys(a)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s=function(){function t(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)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();e.default=function(t){var e=function(e){function n(){return o(this,n),a(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return u(n,e),s(n,[{key:"render",value:function(){var e=this.props,n=e.forwardRef,r=i(e,["forwardRef"]);return f.default.createElement(d.default.Consumer,null,function(e){return f.default.createElement(t,c({ref:n},r,e))})}}]),n}(f.default.Component);return f.default.forwardRef(function(t,n){return f.default.createElement(e,c({},t,{forwardRef:n}))})};var l=n(0),f=r(l),h=n(57),d=r(h)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=n(39),c=r(u),s=n(4),l=n(73),f=r(l),h=n(3),d=function(t){function e(t){i(this,e);var n=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.id=(0,h.uniqueId)(),n.on(s.EVENT_BEFORE_ADD_PAGE,function(t){var e=t.className;(0,f.default)({c1:e})}),n}return a(e,t),e}(c.default);e.default=d},function(t,e,n){"use strict";function r(t){var e=void 0===t?"undefined":i(t);return null!=t&&("object"==e||"function"==e)}var 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.exports=r},function(t,e,n){"use strict";function r(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var o=i(r);return[n].concat(r.sources.map(function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"})).concat([o]).join("\n")}return[n].join("\n")}function i(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=r(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<t.length;i++){var a=t[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(t,e,n){function r(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=p[r.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](r.parts[o]);for(;o<r.parts.length;o++)i.parts.push(l(r.parts[o],e))}else{for(var a=[],o=0;o<r.parts.length;o++)a.push(l(r.parts[o],e));p[r.id]={id:r.id,refs:1,parts:a}}}}function i(t,e){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i],a=e.base?o[0]+e.base:o[0],u=o[1],c=o[2],s=o[3],l={css:u,media:c,sourceMap:s};r[a]?r[a].parts.push(l):n.push(r[a]={id:a,parts:[l]})}return n}function o(t,e){var n=v(t.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=x[x.length-1];if("top"===t.insertAt)r?r.nextSibling?n.insertBefore(e,r.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),x.push(e);else if("bottom"===t.insertAt)n.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var i=v(t.insertInto+" "+t.insertAt.before);n.insertBefore(e,i)}}function a(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=x.indexOf(t);e>=0&&x.splice(e,1)}function u(t){var e=document.createElement("style");return t.attrs.type="text/css",s(e,t.attrs),o(t,e),e}function c(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",s(e,t.attrs),o(t,e),e}function s(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}function l(t,e){var n,r,i,o;if(e.transform&&t.css){if(!(o=e.transform(t.css)))return function(){};t.css=o}if(e.singleton){var s=b++;n=y||(y=u(e)),r=f.bind(null,n,s,!1),i=f.bind(null,n,s,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=c(e),r=d.bind(null,n,e),i=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=u(e),r=h.bind(null,n),i=function(){a(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}function f(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=w(e,i);else{var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function h(t,e){var n=e.css,r=e.media;if(r&&t.setAttribute("media",r),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function d(t,e,n){var r=n.css,i=n.sourceMap,o=void 0===e.convertToAbsoluteUrls&&i;(e.convertToAbsoluteUrls||o)&&(r=_(r)),i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var a=new Blob([r],{type:"text/css"}),u=t.href;t.href=URL.createObjectURL(a),u&&URL.revokeObjectURL(u)}var p={},g=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}(function(){return window&&document&&document.all&&!window.atob}),m=function(t){return document.querySelector(t)},v=function(t){var e={};return function(t){if("function"==typeof t)return t();if(void 0===e[t]){var n=m.call(this,t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}}(),y=null,b=0,x=[],_=n(181);t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");e=e||{},e.attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=g()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=i(t,e);return r(n,e),function(t){for(var o=[],a=0;a<n.length;a++){var u=n[a],c=p[u.id];c.refs--,o.push(c)}if(t){r(i(t,e),e)}for(var a=0;a<o.length;a++){var c=o[a];if(0===c.refs){for(var s=0;s<c.parts.length;s++)c.parts[s]();delete p[c.id]}}}};var w=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e,n){"use strict";var r=Array.isArray;t.exports=r},function(t,e,n){"use strict";var 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},i=n(42),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,n){"use strict";function r(t){return null!=t&&"object"==(void 0===t?"undefined":i(t))}var 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.exports=r},function(t,e,n){"use strict";function r(t){return null==t?void 0===t?c:u:s&&s in Object(t)?o(t):a(t)}var i=n(18),o=n(89),a=n(90),u="[object Null]",c="[object Undefined]",s=i?i.toStringTag:void 0;t.exports=r},function(t,e,n){"use strict";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,n){"use strict";function r(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])}}var i=n(77),o=n(78),a=n(79),u=n(80),c=n(81);r.prototype.clear=i,r.prototype.delete=o,r.prototype.get=a,r.prototype.has=u,r.prototype.set=c,t.exports=r},function(t,e,n){"use strict";function r(t,e){for(var n=t.length;n--;)if(i(t[n][0],e))return n;return-1}var i=n(17);t.exports=r},function(t,e,n){"use strict";function r(t,e){return t===e||t!==t&&e!==e}t.exports=r},function(t,e,n){"use strict";var r=n(11),i=r.Symbol;t.exports=i},function(t,e,n){"use strict";var r=n(25),i=r(Object,"create");t.exports=i},function(t,e,n){"use strict";function r(t,e){var n=t.__data__;return i(e)?n["string"==typeof e?"string":"hash"]:n.map}var i=n(103);t.exports=r},function(t,e,n){"use strict";var r=n(118),i=n(12),o=Object.prototype,a=o.hasOwnProperty,u=o.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(t){return i(t)&&a.call(t,"callee")&&!u.call(t,"callee")};t.exports=c},function(t,e,n){"use strict";function r(t,e){var n=void 0===t?"undefined":i(t);return!!(e=null==e?o:e)&&("number"==n||"symbol"!=n&&a.test(t))&&t>-1&&t%1==0&&t<e}var 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},o=9007199254740991,a=/^(?:0|[1-9]\d*)$/;t.exports=r},function(t,e,n){"use strict";function r(t,e){return i(t)?t:o(t,e)?[t]:a(u(t))}var i=n(10),o=n(142),a=n(143),u=n(31);t.exports=r},function(t,e,n){var r=n(182);"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0};i.transform=void 0,i.insertInto=void 0;n(9)(r,i);r.locals&&(t.exports=r.locals)},function(t,e,n){"use strict";function r(t,e){var n=o(t,e);return i(n)?n:void 0}var i=n(87),o=n(94);t.exports=r},function(t,e,n){"use strict";function r(t){if(!o(t))return!1;var e=i(t);return e==u||e==c||e==a||e==s}var i=n(13),o=n(7),a="[object AsyncFunction]",u="[object Function]",c="[object GeneratorFunction]",s="[object Proxy]";t.exports=r},function(t,e,n){"use strict";function r(t,e,n){"__proto__"==e&&i?i(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var i=n(45);t.exports=r},function(t,e,n){"use strict";function r(t){return null!=t&&o(t.length)&&!i(t)}var i=n(26),o=n(29);t.exports=r},function(t,e,n){"use strict";function r(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=i}var i=9007199254740991;t.exports=r},function(t,e,n){"use strict";function r(t){return"symbol"==(void 0===t?"undefined":i(t))||a(t)&&o(t)==u}var 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},o=n(13),a=n(12),u="[object Symbol]";t.exports=r},function(t,e,n){"use strict";function r(t){return null==t?"":i(t)}var i=n(146);t.exports=r},function(t,e,n){"use strict";function r(t){if("string"==typeof t||i(t))return t;var e=t+"";return"0"==e&&1/t==-o?"-0":e}var i=n(30),o=1/0;t.exports=r},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=function(){function t(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)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=n(0),s=function(t){return t&&t.__esModule?t:{default:t}}(c),l=n(3),f=n(4),h=function(t){function e(){var t,n,o,a;r(this,e);for(var u=arguments.length,c=Array(u),s=0;s<u;s++)c[s]=arguments[s];return n=o=i(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(c))),o.config={},o.addListener=function(t,e,n){"function"==typeof n&&t.on(e,n)},a=n,i(o,a)}return o(e,t),u(e,[{key:"componentDidMount",value:function(){this.init(),this.bindEvent(),this.forceUpdate()}},{key:"shouldComponentUpdate",value:function(t){var e=t.data,n=this.props.data,r=t.graph||{},i=r.mode;return i!==(this.props.graph||{}).mode&&this.page.changeMode(i),e!==n&&(this.page.read(e),!0)}},{key:"initPage",value:function(){}},{key:"readData",value:function(){var t=this.config.data;t&&this.page.read(t)}},{key:"init",value:function(){(0,l.merge)(this.config,this.props,{graph:{container:this.pageId}}),this.initPage(),this.readData()}},{key:"bindEvent",value:function(){var t=this,e=this.addListener;f.GRAPH_MOUSE_EVENTS.forEach(function(n){var r=f.GRAPH_MOUSE_REACT_EVENTS[n];e(t.graph,""+n,t.props["on"+r]),e(t.graph,"node:"+n,t.props["onNode"+r]),e(t.graph,"edge:"+n,t.props["onEdge"+r]),e(t.graph,"group:"+n,t.props["onGroup"+r]),e(t.graph,"guide:"+n,t.props["onGuide"+r]),e(t.graph,"anchor:"+n,t.props["onAnchor"+r])}),f.GRAPH_OTHER_EVENTS.forEach(function(n){e(t.graph,[n],t.props[f.GRAPH_OTHER_REACT_EVENTS[n]])}),f.PAGE_EVENTS.forEach(function(n){e(t.page,[n],t.props[f.PAGE_REACT_EVENTS[n]])})}},{key:"render",value:function(){var t=this.page,e=this.pageId,n=this.props.children;return s.default.createElement("div",a({id:e},(0,l.pick)(this.props,["style","className"])),t?n:null)}},{key:"graph",get:function(){return this.page.getGraph()}}]),e}(s.default.Component);e.default=h},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(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)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=n(0),c=function(t){return t&&t.__esModule?t:{default:t}}(u),s=n(2),l=n(1),f=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),a(e,[{key:"render",value:function(){return c.default.createElement(s.Card,{type:"inner",title:"缩略图",bordered:!1},c.default.createElement(l.Minimap,{height:200}))}}]),e}(c.default.Component);e.default=f},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.KoniContextMenu=e.MindContextMenu=e.FlowContextMenu=void 0;var i=n(59),o=r(i),a=n(183),u=r(a),c=n(184),s=r(c);e.FlowContextMenu=o.default,e.MindContextMenu=u.default,e.KoniContextMenu=s.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.KoniToolbar=e.MindToolbar=e.FlowToolbar=void 0;var i=n(61),o=r(i),a=n(186),u=r(a),c=n(187),s=r(c);e.FlowToolbar=o.default,e.MindToolbar=u.default,e.KoniToolbar=s.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.KoniDetailPanel=e.MindDetailPanel=e.FlowDetailPanel=void 0;var i=n(65),o=r(i),a=n(194),u=r(a),c=n(195),s=r(c);e.FlowDetailPanel=o.default,e.MindDetailPanel=u.default,e.KoniDetailPanel=s.default},function(t,e){t.exports=n},function(t,e,n){"use strict";(function(t){var n,r,i,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};!function(a,u){"object"==o(e)&&"object"==o(t)?t.exports=u():(r=[],n=u,void 0!==(i="function"==typeof n?n.apply(e,r):n)&&(t.exports=i))}(window,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==(void 0===t?"undefined":o(t))&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(e){return t[e]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=16)}([,,,,,,,,,function(t,e,n){function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){i(t,e,n[e])})}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e,n){var r=[];return c.isString(t)?r=[e,t]:c.isArray(t)?(t.unshift(e),r=t):r=[e],n&&r.unshift(n+"-base"),r}var a=n(17),u=n(12),c=n(14),s={getActivedStyle:function(){},getSelectedStyle:function(){},getStyle:function(){},getPath:function(){}};a.registerNode("page-base",r({},s)),a.registerEdge("page-base",r({},s)),a.registerGroup("page-base",r({},s)),a.registerGuide("page-base",r({},s)),u.setRegister=function(t,e,n){t.registerNode=function(t,r,i){a.registerNode(t,r,o(i,e+"-base",n))},t.registerEdge=function(t,r,i){a.registerEdge(t,r,o(i,e+"-base",n))},t.registerGroup=function(t,r,i){a.registerGroup(t,r,o(i,e+"-base",n))},t.registerGuide=function(t,r,i){a.registerGuide(t,r,o(i,e+"-base",n))},t.registerBehaviour=function(t,e,n){a.registerBehaviour(t,function(t){var n=t.get("page");n.set("_graph",t),e(n)},n)}},u.setRegister(u,"page"),n(166),t.exports=u},,function(t,e,n){function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(17),o=n(63),a=n(146),u=n(145),c=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){r(t,e,n[e])})}return t}({},i.Util,o,a,u);t.exports=c},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==o(Symbol.iterator)?function(t){return void 0===t?"undefined":o(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":o(t)})(t)}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){a(t,e,n[e])})}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(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 c(t,e){return!e||"object"!==r(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 s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var f=n(65),h=n(14),d=n(27),p=n(176),g=n(175),m=n(173),v=[p,n(172),n(171),g,m,n(170),n(168),n(167)],y=function(t){function e(t){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r={defaultData:null,shortcut:{redo:!0,undo:!0,delete:!0,resetZoom:!0,autoZoom:!0,zoomIn:!0,zoomOut:!0},_controllers:{},_signals:{}};return h.each(v,function(t){h.mix(r,t.CFG)}),h.mix(!0,r,t),(n=c(this,s(e).call(this,r))).isPage=!0,n.type="page",n._init(),n}return 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&&l(t,e)}(e,f),function(t,e,n){e&&u(t.prototype,e)}(e,[{key:"getDelegation",value:function(t,e){var n;if(1!==t.length||t[0].isNode||t[0].isGroup){var r=h.getTotalBBox(t.map(function(t){return t.getBBox()}));(n=h.getRectByBox(r,e,d.nodeDelegationStyle)).set("capture",!1)}else t[0].isEdge?n=e.addShape("path",{attrs:i({path:"M0 0L 1 1"},d.edgeDelegationStyle),capture:!1}):(n=h.getRectByBox(t[0],e,d.nodeDelegationStyle)).set("capture",!1);return n}},{key:"focusGraphWrapper",value:function(){this.getGraph().getKeyboardEventWrapper().focus()}},{key:"saveImage",value:function(t){var e,n,r=this,o=this.getGraph(),a=o.getBBox(),u=o.getFitViewPadding();return o.saveImage(i({width:a.width+u[1]+u[3],height:a.height+u[0]+u[2],beforeTransform:function(){e=r.getSelected().map(function(t){return t.id}),n=r.getSelected().map(function(t){return t.id}),r.clearSelected(),r.clearActived()},afterTransform:function(){r.setSelected(e,!0),r.setActived(n,!0)}},t))}},{key:"_init",value:function(){var t=this;h.each(v,function(e){e.INIT&&t[e.INIT]()}),this.bindEvent(),this._cacheBBox()}},{key:"executeCommand",value:function(t,e){var n=this.editor;n?n.executeCommand(t,e):t()}},{key:"_cacheBBox",value:function(){var t=this.getGraph();this.set("bboxCache",t.getBBox())}},{key:"bindEvent",value:function(){var t=this;this.getGraph().on("afterchange",function(){t._cacheBBox()})}},{key:"translateLimt",value:function(t){var e=this.getGraph(),n=this.get("bboxCache"),r=e.getWidth(),i=e.getHeight(),o=[n.minX,n.minY,1],a=[n.maxX,n.maxY,1];return h.vec3.transformMat3(o,o,t),h.vec3.transformMat3(a,a,t),a[0]<100&&h.mat3.translate(t,t,[100-a[0],0]),a[1]<100&&h.mat3.translate(t,t,[0,100-a[1]]),o[1]>i-100&&h.mat3.translate(t,t,[0,i-100-o[1]]),o[0]>r-100&&h.mat3.translate(t,t,[r-100-o[0],0]),!0}},{key:"setSignal",value:function(t,e){this.get("_signals")[t]=e}},{key:"getSignal",value:function(t){return this.get("_signals")[t]}},{key:"setController",value:function(t,e){this.get("_controllers")[t]=e}},{key:"getController",value:function(t){return this.get("_controllers")[t]}},{key:"destroy",value:function(){var t=this.get("_graph"),e=this.get("_controllers");h.each(e,function(t){t.destroy()}),t.destroy()}}]),e}();h.each(v,function(t){h.mix(y.prototype,t.AUGMENT)}),t.exports=y},function(t,e){t.exports={orbitGap:10,nodeDefaultShape:"flow-node",edgeDefaultShape:"flow-smooth",groupDefaultShape:"flow-group",nodeActivedOutterStyle:{lineWidth:0},groupSelectedOutterStyle:{stroke:"#E0F0FF",lineWidth:2},nodeSelectedOutterStyle:{stroke:"#E0F0FF",lineWidth:2},edgeActivedStyle:{stroke:"#1890FF",strokeOpacity:.92},nodeActivedStyle:{fill:"#F3F9FF",stroke:"#1890FF"},groupActivedStyle:{stroke:"#1890FF"},edgeSelectedStyle:{lineWidth:2,strokeOpacity:.92,stroke:"#A3B1BF"},nodeSelectedStyle:{fill:"#F3F9FF",stroke:"#1890FF"},groupSelectedStyle:{stroke:"#1890FF",fillOpacity:.92},nodeStyle:{stroke:"#CED4D9",fill:"#FFFFFF",shadowOffsetX:0,shadowOffsetY:4,shadowBlur:10,shadowColor:"rgba(13, 26, 38, 0.08)",lineWidth:1,radius:4,fillOpacity:.92},edgeStyle:{stroke:"#A3B1BF",strokeOpacity:.92,lineWidth:1,lineAppendWidth:8,endArrow:!0},groupBackgroundPadding:[40,10,10,10],groupLabelOffsetX:10,groupLabelOffsetY:10,edgeLabelStyle:{fill:"#666",textAlign:"center",textBaseline:"middle"},edgeLabelRectPadding:4,edgeLabelRectStyle:{fill:"white"},nodeLabelStyle:{fill:"#666",textAlign:"center",textBaseline:"middle"},groupStyle:{stroke:"#CED4D9",radius:4},groupLabelStyle:{fill:"#666",textAlign:"left",textBaseline:"top"},multiSelectRectStyle:{fill:"#1890FF",fillOpacity:.08,stroke:"#1890FF",opacity:.1},dragNodeHoverToGroupStyle:{stroke:"#1890FF",lineWidth:2},dragNodeLeaveFromGroupStyle:{stroke:"#BAE7FF",lineWidth:2},anchorPointStyle:{radius:3.5,fill:"#fff",stroke:"#1890FF",lineAppendWidth:12},anchorHotsoptStyle:{radius:12,fill:"#1890FF",fillOpacity:.25},anchorHotsoptActivedStyle:{radius:14},anchorPointHoverStyle:{radius:4,fill:"#1890FF",fillOpacity:1,stroke:"#1890FF"},nodeControlPointStyle:{radius:4,fill:"#fff",shadowBlur:4,shadowColor:"#666"},edgeControlPointStyle:{radius:6,symbol:"square",lineAppendWidth:6,fillOpacity:0,strokeOpacity:0},nodeSelectedBoxStyle:{stroke:"#C2C2C2"},cursor:{panningCanvas:"-webkit-grabbing",beforePanCanvas:"-webkit-grab",hoverNode:"move",hoverEffectiveAnchor:"crosshair",hoverEdge:"default",hoverGroup:"move",hoverUnEffectiveAnchor:"default",hoverEdgeControllPoint:"crosshair",multiSelect:"crosshair"},zIndex:{anchorPoint:3,anchorHotsopt:2,selectedBox:1,controlPoint:4},polylineEdgeStyle:{offset:10,borderRadius:5},addToGroupDelayTime:400,outFromGroupDelayTime:400}},function(t,e,n){function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(19),o=n(27),a=i.createDOM("<canvas>").getContext("2d");t.exports=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){r(t,e,n[e])})}return t}({},i,{getPanCanvasBehaviour:function(t){return function(e){var n,r,a=e.getGraph();a.behaviourOn("canvas:mouseenter",function(){e.css({cursor:o.cursor.beforePanCanvas})}),a.behaviourOn("mouseleave",function(t){t.toShape||e.css({cursor:o.cursor.beforePanCanvas})}),a.behaviourOn("dragstart",function(i){(2!==i.button&&!t||!i.shape||i.item&&!1===i.item.dragable)&&(n={x:i.domX,y:i.domY},e.css({cursor:o.cursor.panningCanvas}),r=a.getMatrix(),e.setCapture(!1))}),a.behaviourOn("drag",function(t){if(n){var o=t.domX-n.x,u=t.domY-n.y,c=[];i.mat3.translate(c,r,[o,u]),e.translateLimt(c)&&(a.updateMatrix(c),a.draw())}}),a.behaviourOn("dragend",function(){n=void 0,r=void 0,e.setCapture(!0),e.css({cursor:o.cursor.beforePanCanvas})})}},getLabelTextByTextLineWidth:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:320;a.font=e;var r=a.measureText(t).width;if(r>n){r=0;for(var i=1;i<t.length;i++)(r+=a.measureText(t[i]).width)>=n&&(t=t.substring(0,i)+"\n"+t.substring(i,t.length),i+=1,r=0)}return t}})},,function(t,e,n){function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n(184),o=n(19),a=n(38),u=n(177),c=n(17);i.Editor=i,i.Util=o,i.Page=n(9),i.Flow=n(147),i.Koni=n(109),i.Mind=n(104),i.Minimap=n(89),i.Toolbar=n(87),i.Contextmenu=n(86),i.Itempannel=n(85),i.Detailpannel=n(84),i.Command=n(38),i.registerBehaviour=i.Page.registerBehaviour,i.registerNode=i.Page.registerNode,i.registerEdge=i.Page.registerEdge,i.registerGroup=i.Page.registerGroup,i.registerGuide=i.Page.registerGuide,i.registerCommand=a.registerCommand,i.version=u,i.track=function(t){var e={G6Editor:!0};o.isObject(t)?c.track(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){r(t,e,n[e])})}return t}({},e,t)):t?c.track(e):c.track(t)},i.track(!0),t.exports=i},function(t,e,n){window,t.exports=function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==(void 0===t?"undefined":o(t))&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(e){return t[e]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=594)}([,function(t,e,n){function r(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function i(){}function o(t){var e;return t=(t+"").trim().toLowerCase(),(e=N.exec(t))?new l((e=parseInt(e[1],16))>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):(e=B.exec(t))?a(parseInt(e[1],16)):(e=D.exec(t))?new l(e[1],e[2],e[3],1):(e=R.exec(t))?new l(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=L.exec(t))?u(e[1],e[2],e[3],e[4]):(e=G.exec(t))?u(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=F.exec(t))?h(e[1],e[2]/100,e[3]/100,1):(e=Y.exec(t))?h(e[1],e[2]/100,e[3]/100,e[4]):X.hasOwnProperty(t)?a(X[t]):"transparent"===t?new l(NaN,NaN,NaN,0):null}function a(t){return new l(t>>16&255,t>>8&255,255&t,1)}function u(t,e,n,r){return r<=0&&(t=e=n=NaN),new l(t,e,n,r)}function c(t){return t instanceof i||(t=o(t)),t?new l((t=t.rgb()).r,t.g,t.b,t.opacity):new l}function s(t,e,n,r){return 1===arguments.length?c(t):new l(t,e,n,null==r?1:r)}function l(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function f(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function h(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new p(t,e,n,r)}function d(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof p)return new p(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=o(t)),!t)return new p;if(t instanceof p)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,a=Math.min(e,n,r),u=Math.max(e,n,r),c=NaN,s=u-a,l=(u+a)/2;return s?(c=e===u?(n-r)/s+6*(n<r):n===u?(r-e)/s+2:(e-n)/s+4,s/=l<.5?u+a:2-u-a,c*=60):s=l>0&&l<1?0:c,new p(c,s,l,t.opacity)}(t):new p(t,e,n,null==r?1:r)}function p(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function g(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 m(t){if(t instanceof b)return new b(t.l,t.a,t.b,t.opacity);if(t instanceof P){if(isNaN(t.h))return new b(t.l,0,0,t.opacity);var e=t.h*z;return new b(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof l||(t=c(t));var n,r,i=E(t.r),o=E(t.g),a=E(t.b),u=x((.2225045*i+.7168786*o+.0606169*a)/q);return i===o&&o===a?n=r=u:(n=x((.4360747*i+.3850649*o+.1430804*a)/U),r=x((.0139322*i+.0971045*o+.7141733*a)/V)),new b(116*u-16,500*(n-u),200*(u-r),t.opacity)}function v(t,e){return new b(t,0,0,null==e?1:e)}function y(t,e,n,r){return 1===arguments.length?m(t):new b(t,e,n,null==r?1:r)}function b(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function x(t){return t>Q?Math.pow(t,1/3):t/Z+W}function _(t){return t>K?t*t*t:Z*(t-W)}function w(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function E(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function O(t){if(t instanceof P)return new P(t.h,t.c,t.l,t.opacity);if(t instanceof b||(t=m(t)),0===t.a&&0===t.b)return new P(NaN,0,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*H;return new P(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function S(t,e,n,r){return 1===arguments.length?O(t):new P(n,e,t,null==r?1:r)}function M(t,e,n,r){return 1===arguments.length?O(t):new P(t,e,n,null==r?1:r)}function P(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function A(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof C)return new C(t.h,t.s,t.l,t.opacity);t instanceof l||(t=c(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(ot*r+rt*e-it*n)/(ot+rt-it),o=r-i,a=(nt*(n-i)-tt*o)/et,u=Math.sqrt(a*a+o*o)/(nt*i*(1-i)),s=u?Math.atan2(a,o)*H-120:NaN;return new C(s<0?s+360:s,u,i,t.opacity)}(t):new C(t,e,n,null==r?1:r)}function C(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}var k=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t},j="\\s*([+-]?\\d+)\\s*",I="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",T="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",N=/^#([0-9a-f]{3})$/,B=/^#([0-9a-f]{6})$/,D=new RegExp("^rgb\\("+[j,j,j]+"\\)$"),R=new RegExp("^rgb\\("+[T,T,T]+"\\)$"),L=new RegExp("^rgba\\("+[j,j,j,I]+"\\)$"),G=new RegExp("^rgba\\("+[T,T,T,I]+"\\)$"),F=new RegExp("^hsl\\("+[I,T,T]+"\\)$"),Y=new RegExp("^hsla\\("+[I,T,T,I]+"\\)$"),X={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};k(i,o,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),k(l,s,r(i,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new l(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new l(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+f(this.r)+f(this.g)+f(this.b)},toString:function(){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+")")}})),k(p,d,r(i,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new p(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new p(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 l(g(t>=240?t-240:t+120,i,r),g(t,i,r),g(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}}));var z=Math.PI/180,H=180/Math.PI,U=.96422,q=1,V=.82521,W=4/29,K=6/29,Z=3*K*K,Q=K*K*K;k(b,y,r(i,{brighter:function(t){return new b(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new b(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return new l(w(3.1338561*(e=U*_(e))-1.6168667*(t=q*_(t))-.4906146*(n=V*_(n))),w(-.9787684*e+1.9161415*t+.033454*n),w(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),k(P,M,r(i,{brighter:function(t){return new P(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new P(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return m(this).rgb()}}));var J=-.14861,$=1.78277,tt=-.29227,et=-.90649,nt=1.97294,rt=nt*et,it=nt*$,ot=$*tt-et*J;k(C,A,r(i,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new C(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new C(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*z,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new l(255*(e+n*(J*r+$*i)),255*(e+n*(tt*r+et*i)),255*(e+n*(nt*r)),this.opacity)}})),n.d(e,"a",function(){return o}),n.d(e,"h",function(){return s}),n.d(e,"e",function(){return d}),n.d(e,"f",function(){return y}),n.d(e,"d",function(){return M}),n.d(e,"g",function(){return S}),n.d(e,"c",function(){return v}),n.d(e,"b",function(){return A})},,,,,,,,,,,,,,function(t,e,n){function r(){return b||(w(i),b=_.now()+x)}function i(){b=0}function a(){this._call=this._time=this._next=null}function u(t,e,n){var r=new a;return r.restart(t,e,n),r}function c(){r(),++p;for(var t,e=h;e;)(t=b-e._time)>=0&&e._call.call(null,t),e=e._next;--p}function s(){b=(y=_.now())+x,p=g=0;try{c()}finally{p=0,function(){for(var t,e,n=h,r=1/0;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:h=e);d=t,f(r)}(),b=0}}function l(){var t=_.now(),e=t-y;e>v&&(x-=e,y=t)}function f(t){p||(g&&(g=clearTimeout(g)),t-b>24?(t<1/0&&(g=setTimeout(s,t-_.now()-x)),m&&(m=clearInterval(m))):(m||(y=_.now(),m=setInterval(l,v)),p=1,w(s)))}n.r(e);var h,d,p=0,g=0,m=0,v=1e3,y=0,b=0,x=0,_="object"==("undefined"==typeof performance?"undefined":o(performance))&&performance.now?performance:Date,w="object"==("undefined"==typeof window?"undefined":o(window))&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};a.prototype=u.prototype={constructor:a,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?r():+n)+(null==e?0:+e),this._next||d===this||(d?d._next=this:h=this,d=this),this._call=t,this._time=n,f()},stop:function(){this._call&&(this._call=null,this._time=1/0,f())}};var E=function(t,e,n){var r=new a;return e=null==e?0:+e,r.restart(function(n){r.stop(),t(n+e)},e,n),r},O=function(t,e,n){var i=new a,o=e;return null==e?(i.restart(t,e,n),i):(e=+e,n=null==n?r():+n,i.restart(function r(a){a+=o,i.restart(r,o+=e,n),t(a)},e,n),i)};n.d(e,"now",function(){return r}),n.d(e,"timer",function(){return u}),n.d(e,"timerFlush",function(){return c}),n.d(e,"timeout",function(){return E}),n.d(e,"interval",function(){return O})},,function(t,e,n){var r=n(408),i={};r.merge(i,r,{mixin:function(t,e){var n=t.CFG?"CFG":"ATTRS";if(t&&e){t._mixins=e,t[n]=t[n]||{};var r={};i.each(e,function(e){i.augment(t,e);var o=e[n];o&&i.merge(r,o)}),t[n]=i.merge(r,t[n])}}}),t.exports=i},,,,,function(t,e,n){var r={},i=n(448),o=n(514),a=n(152),u=n(493),c=n(492),s=n(491);a.mix(r,a,c,s,u,o,i),t.exports=r},,,,,,function(t,e,n){function r(t){return+t}function i(t){return t*t}function o(t){return t*(2-t)}function a(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function u(t){return t*t*t}function c(t){return--t*t*t+1}function s(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}function l(t){return 1-Math.cos(t*M)}function f(t){return Math.sin(t*M)}function h(t){return(1-Math.cos(S*t))/2}function d(t){return Math.pow(2,10*t-10)}function p(t){return 1-Math.pow(2,-10*t)}function g(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}function m(t){return 1-Math.sqrt(1-t*t)}function v(t){return Math.sqrt(1- --t*t)}function y(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}function b(t){return 1-x(1-t)}function x(t){return(t=+t)<P?D*t*t:t<C?D*(t-=A)*t+k:t<I?D*(t-=j)*t+T:D*(t-=N)*t+B}function _(t){return((t*=2)<=1?1-x(1-t):x(t-1)+1)/2}n.r(e);var w=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),E=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),O=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),S=Math.PI,M=S/2,P=4/11,A=6/11,C=8/11,k=.75,j=9/11,I=10/11,T=.9375,N=21/22,B=63/64,D=1/P/P,R=function t(e){function n(t){return t*t*((e+1)*t-e)}return e=+e,n.overshoot=t,n}(1.70158),L=function t(e){function n(t){return--t*t*((e+1)*t+e)+1}return e=+e,n.overshoot=t,n}(1.70158),G=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),F=2*Math.PI,Y=function t(e,n){function r(t){return e*Math.pow(2,10*--t)*Math.sin((i-t)/n)}var i=Math.asin(1/(e=Math.max(1,e)))*(n/=F);return r.amplitude=function(e){return t(e,n*F)},r.period=function(n){return t(e,n)},r}(1,.3),X=function t(e,n){function r(t){return 1-e*Math.pow(2,-10*(t=+t))*Math.sin((t+i)/n)}var i=Math.asin(1/(e=Math.max(1,e)))*(n/=F);return r.amplitude=function(e){return t(e,n*F)},r.period=function(n){return t(e,n)},r}(1,.3),z=function t(e,n){function r(t){return((t=2*t-1)<0?e*Math.pow(2,10*t)*Math.sin((i-t)/n):2-e*Math.pow(2,-10*t)*Math.sin((i+t)/n))/2}var i=Math.asin(1/(e=Math.max(1,e)))*(n/=F);return r.amplitude=function(e){return t(e,n*F)},r.per