feffery_antd_components 0.4.0-rc8 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DESCRIPTION +1 -1
- package/Project.toml +1 -1
- package/README-en_US.md +1 -1
- package/README.md +1 -1
- package/feffery_antd_components/AntdCountup.py +2 -17
- package/feffery_antd_components/AntdModal.py +12 -6
- package/feffery_antd_components/async-antd_table.js +1 -1
- package/feffery_antd_components/async-data_display.js +1 -1
- package/feffery_antd_components/async-data_entry.js +4 -4
- package/feffery_antd_components/feffery_antd_components.min.js +3 -3
- package/feffery_antd_components/metadata.json +1 -1
- package/feffery_antd_components/package-info.json +1 -1
- package/package.json +1 -1
- package/setup.py +1 -1
- package/src/jl/'feffery'_antdcountup.jl +1 -4
- package/src/jl/'feffery'_antdmodal.jl +6 -6
- package/src/lib/components/dataDisplay/AntdCollapse.react.js +0 -3
- package/src/lib/components/dataDisplay/AntdCountup.react.js +0 -10
- package/src/lib/components/feedback/AntdModal.react.js +18 -0
- package/src/lib/components/layout/AntdDivider.react.js +0 -1
- package/src/lib/components/navigation/AntdMenu.react.js +0 -6
- package/src/lib/components/navigation/AntdPagination.react.js +0 -3
- package/src/lib/fragments/AntdTable.react.js +1 -1
- package/src/lib/fragments/dataDisplay/AntdCountdown.react.js +14 -2
- package/src/lib/fragments/dataDisplay/AntdCountup.react.js +0 -1
- package/src/lib/fragments/dataDisplay/AntdSegmented.react.js +0 -3
- package/src/lib/fragments/dataDisplay/AntdTabs.react.js +1 -4
- package/src/lib/fragments/dataDisplay/AntdTree.react.js +0 -3
- package/src/lib/fragments/dataEntry/AntdCalendar.react.js +0 -3
- package/src/lib/fragments/dataEntry/AntdCascader.react.js +0 -6
- package/src/lib/fragments/dataEntry/AntdCheckbox.react.js +0 -3
- package/src/lib/fragments/dataEntry/AntdCheckboxGroup.react.js +0 -3
- package/src/lib/fragments/dataEntry/AntdDatePicker.react.js +0 -3
- package/src/lib/fragments/dataEntry/AntdDateRangePicker.react.js +0 -3
- package/src/lib/fragments/dataEntry/AntdInput.react.js +0 -12
- package/src/lib/fragments/dataEntry/AntdInputNumber.react.js +0 -3
- package/src/lib/fragments/dataEntry/AntdOTP.react.js +0 -3
- package/src/lib/fragments/dataEntry/AntdRadioGroup.react.js +0 -6
- package/src/lib/fragments/dataEntry/AntdRate.react.js +0 -3
- package/src/lib/fragments/dataEntry/AntdSelect.react.js +2 -5
- package/src/lib/fragments/dataEntry/AntdSlider.react.js +0 -3
- package/src/lib/fragments/dataEntry/AntdSwitch.react.js +0 -3
- package/src/lib/fragments/dataEntry/AntdTimePicker.react.js +0 -3
- package/src/lib/fragments/dataEntry/AntdTimeRangePicker.react.js +0 -3
- package/src/lib/fragments/dataEntry/AntdTransfer.react.js +0 -3
- package/src/lib/fragments/dataEntry/AntdTreeSelect.react.js +0 -3
- package/src/lib/fragments/dataEntry/check-card/AntdCheckCard.react.js +0 -3
- package/src/lib/fragments/dataEntry/check-card/AntdCheckCardGroup.react.js +0 -3
- package/tests/dataDisplay/AntdTable/perf_button_mode_auto_wrap.py +39 -0
- package/tests/dataEntry/AntdSelect/fix_read_only_with_allow_clear.py +29 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(window.webpackJsonpfeffery_antd_components=window.webpackJsonpfeffery_antd_components||[]).push([[2],{497:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1),react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__),antd__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(531),antd__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(739),antd__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(364),antd__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(65),antd__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(734),antd__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(535),antd__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(447),antd__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(335),antd__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(361),antd__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(733),antd__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(534),antd__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(597),antd__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(743),antd__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(241),antd__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(514),antd__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(536),antd__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(740),antd__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(184),antd__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(732),antd__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(18),_ant_design_plots__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(726),_ant_design_plots__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(728),_ant_design_plots__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__(729),_ant_design_plots__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__(730),_ant_design_plots__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__(731),_components_general_AntdIcon_react__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__(70),_ant_design_icons__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__(235),_ant_design_icons__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__(138),_ant_design_icons__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__(520),react_highlight_words__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__(636),react_highlight_words__WEBPACK_IMPORTED_MODULE_30___default=__webpack_require__.n(react_highlight_words__WEBPACK_IMPORTED_MODULE_30__),lodash__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__(9),lodash__WEBPACK_IMPORTED_MODULE_31___default=__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_31__),ramda__WEBPACK_IMPORTED_MODULE_32__=__webpack_require__(229),_components_locales_react__WEBPACK_IMPORTED_MODULE_33__=__webpack_require__(57),_components_utils__WEBPACK_IMPORTED_MODULE_34__=__webpack_require__(11),_contexts_PropsContext__WEBPACK_IMPORTED_MODULE_35__=__webpack_require__(46),_components_dataDisplay_AntdTable_react__WEBPACK_IMPORTED_MODULE_36__=__webpack_require__(295),_excluded=["id","className","style","key","locale","containerId","columns","showHeader","rowHoverable","tableLayout","miniChartHeight","miniChartAnimation","rowSelectionType","selectedRowKeys","rowSelectionWidth","rowSelectionCheckStrictly","rowSelectionIgnoreRowKeys","sticky","titlePopoverInfo","columnsFormatConstraint","enableHoverListen","data","sortOptions","showSorterTooltip","showSorterTooltipTarget","filterOptions","defaultFilteredValues","pagination","bordered","maxHeight","maxWidth","scrollToFirstRowOnChange","size","mode","nClicksButton","nDoubleClicksCell","summaryRowContents","summaryRowBlankColumns","summaryRowFixed","customFormatFuncs","conditionalStyleFuncs","expandedRowKeyToContent","expandedRowWidth","expandRowByClick","defaultExpandedRowKeys","expandedRowKeys","enableCellClickListenColumns","nClicksCell","nContextMenuClicksCell","emptyContent","cellUpdateOptimize","nClicksDropdownItem","hiddenRowKeys","virtual","title","footer","loading","rowClassName","setProps"],_excluded2=["index"],_excluded3=["title","editable","children","dataIndex","record"];function _typeof(t){return(_typeof="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 _extends(){return(_extends=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(null,arguments)}function _regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),s=new k(r||[]);return i(a,"_invoke",{value:_(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",f="executing",p="completed",g={};function v(){}function y(){}function m(){}var b={};l(b,a,(function(){return this}));var x=Object.getPrototypeOf,O=x&&x(x(I([])));O&&O!==n&&r.call(O,a)&&(b=O);var j=m.prototype=v.prototype=Object.create(b);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var c=h(t[i],t,o);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==_typeof(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function _(e,n,r){var i=d;return function(o,a){if(i===f)throw Error("Generator is already running");if(i===p){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=M(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=f;var l=h(e,n,r);if("normal"===l.type){if(i=r.done?p:"suspendedYield",l.arg===g)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i=p,r.method="throw",r.arg=l.arg)}}}function M(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,M(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}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 k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function I(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(_typeof(e)+" is not iterable")}return y.prototype=m,i(j,"constructor",{value:m,configurable:!0}),i(m,"constructor",{value:y,configurable:!0}),y.displayName=l(m,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,l(t,c,"GeneratorFunction")),t.prototype=Object.create(j),t},e.awrap=function(t){return{__await:t}},w(C.prototype),l(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(u(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(j),l(j,c,"Generator"),l(j,a,(function(){return this})),l(j,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=I,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(E),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.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,g):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),g},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),g}},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 Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function asyncGeneratorStep(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function _asyncToGenerator(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){asyncGeneratorStep(o,r,i,a,s,"next",t)}function s(t){asyncGeneratorStep(o,r,i,a,s,"throw",t)}a(void 0)}))}}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){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 _iterableToArrayLimit(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _objectWithoutProperties(t,e){if(null==t)return{};var n,r,i=_objectWithoutPropertiesLoose(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],-1===e.indexOf(n)&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function _objectWithoutPropertiesLoose(t,e){if(null==t)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(-1!==e.indexOf(r))continue;n[r]=t[r]}return n}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){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 _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _createForOfIteratorHelper(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=_unsupportedIterableToArray(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=n.call(t)},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 _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var n={}.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)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function ownKeys(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 _objectSpread(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(n),!0).forEach((function(e){_defineProperty(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _defineProperty(t,e,n){return(e=_toPropertyKey(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _toPropertyKey(t){var e=_toPrimitive(t,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(t,e){if("object"!=_typeof(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Text=antd__WEBPACK_IMPORTED_MODULE_1__.a.Text,_insertNewColumnNode=function(t,e,n,r){if(n<e.length){var i=r.findIndex((function(t){return t.dataIndex===e[n]}));-1===i?(r.push({dataIndex:e[n],title:e[n],children:[]}),_insertNewColumnNode(t,e,n+1,r[r.length-1].children)):_insertNewColumnNode(t,e,n+1,r[i].children)}else r.push(_objectSpread({},t))},splitSummaryRowContents=function(t,e,n){var r,i=n>0?[Array.from({length:n},(function(){return{empty:!0}}))]:[[]],o=0,a=_createForOfIteratorHelper(t);try{for(a.s();!(r=a.n()).done;){var s=r.value;o+(s.colSpan||1)>e?(o=s.colSpan||1,n>0?i.push([].concat(_toConsumableArray(Array.from({length:n},(function(){return{empty:!0}}))),[s])):i.push([s])):(o+=s.colSpan||1,i[i.length-1].push(s))}}catch(t){a.e(t)}finally{a.f()}return i},findItemByKey=function(t,e){var n=null,r=function(t){return t.key===e?(n=t,!0):Array.isArray(t.children)&&t.children.some(r)};return t.some(r),n},_replaceItemByKey=function(t,e,n){for(var r=0;r<t.length;r++){var i=t[r];if(i&&i.key===e)return t.splice(r,1,n),!0;if(i&&Array.isArray(i.children)&&_replaceItemByKey(i.children,e,n))return!0}return!1},preventUpdateProps=["recentlyMouseEnterColumnDataIndex","recentlyMouseEnterRowKey","recentlyMouseEnterRow"],AntdTable=function AntdTable(props){var id=props.id,className=props.className,style=props.style,key=props.key,locale=props.locale,containerId=props.containerId,columns=props.columns,showHeader=props.showHeader,rowHoverable=props.rowHoverable,tableLayout=props.tableLayout,miniChartHeight=props.miniChartHeight,miniChartAnimation=props.miniChartAnimation,rowSelectionType=props.rowSelectionType,selectedRowKeys=props.selectedRowKeys,rowSelectionWidth=props.rowSelectionWidth,rowSelectionCheckStrictly=props.rowSelectionCheckStrictly,rowSelectionIgnoreRowKeys=props.rowSelectionIgnoreRowKeys,sticky=props.sticky,titlePopoverInfo=props.titlePopoverInfo,columnsFormatConstraint=props.columnsFormatConstraint,enableHoverListen=props.enableHoverListen,data=props.data,sortOptions=props.sortOptions,showSorterTooltip=props.showSorterTooltip,showSorterTooltipTarget=props.showSorterTooltipTarget,filterOptions=props.filterOptions,defaultFilteredValues=props.defaultFilteredValues,pagination=props.pagination,bordered=props.bordered,maxHeight=props.maxHeight,maxWidth=props.maxWidth,scrollToFirstRowOnChange=props.scrollToFirstRowOnChange,size=props.size,mode=props.mode,nClicksButton=props.nClicksButton,nDoubleClicksCell=props.nDoubleClicksCell,summaryRowContents=props.summaryRowContents,summaryRowBlankColumns=props.summaryRowBlankColumns,summaryRowFixed=props.summaryRowFixed,customFormatFuncs=props.customFormatFuncs,conditionalStyleFuncs=props.conditionalStyleFuncs,expandedRowKeyToContent=props.expandedRowKeyToContent,expandedRowWidth=props.expandedRowWidth,expandRowByClick=props.expandRowByClick,defaultExpandedRowKeys=props.defaultExpandedRowKeys,expandedRowKeys=props.expandedRowKeys,enableCellClickListenColumns=props.enableCellClickListenColumns,nClicksCell=props.nClicksCell,nContextMenuClicksCell=props.nContextMenuClicksCell,emptyContent=props.emptyContent,cellUpdateOptimize=props.cellUpdateOptimize,nClicksDropdownItem=props.nClicksDropdownItem,hiddenRowKeys=props.hiddenRowKeys,virtual=props.virtual,title=props.title,footer=props.footer,loading=props.loading,rowClassName=props.rowClassName,setProps=props.setProps,others=_objectWithoutProperties(props,_excluded),context=Object(react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_contexts_PropsContext__WEBPACK_IMPORTED_MODULE_35__.a);locale=context&&context.locale||locale,Object(react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((function(){var t,e;Object(lodash__WEBPACK_IMPORTED_MODULE_31__.isBoolean)(pagination)&&!pagination||setProps({pagination:_objectSpread(_objectSpread({},pagination),{},{current:null!==(t=pagination)&&void 0!==t&&t.current?null===(e=pagination)||void 0===e?void 0:e.current:1})})}),[]);var _useState=Object(react__WEBPACK_IMPORTED_MODULE_0__.useState)(""),_useState2=_slicedToArray(_useState,2),searchText=_useState2[0],setSearchText=_useState2[1],_useState3=Object(react__WEBPACK_IMPORTED_MODULE_0__.useState)(""),_useState4=_slicedToArray(_useState3,2),searchedColumn=_useState4[0],setSearchedColumn=_useState4[1],onPageChange=function(t,e,n,r){"paginate"===r.action?setProps({pagination:_objectSpread(_objectSpread({},t),{},{pageSize:t.pageSize,current:t.current,position:t.position&&Array.isArray(t.position)?t.position[0]:t.position}),currentData:r.currentDataSource}):"sort"===r.action?Array.isArray(n)?setProps({sorter:{columns:n.map((function(t){return t.column.dataIndex})),orders:n.map((function(t){return t.order}))}}):n.order?setProps({sorter:{columns:[n.column.dataIndex],orders:[n.order]}}):setProps({sorter:{columns:[],orders:[]}}):"filter"===r.action&&setProps({filter:e})},searchInput,getColumnSearchProps=function(t,e){return{filterDropdown:function(n){var r=n.setSelectedKeys,i=n.selectedKeys,o=n.confirm,a=n.clearFilters;return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div",{style:{padding:8}},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_2__.a,{ref:function(t){searchInput=t},placeholder:"".concat(_components_locales_react__WEBPACK_IMPORTED_MODULE_33__.a.AntdTable[locale].filterKeywordPlaceholder," ").concat(e),value:i[0],onChange:function(t){return r(t.target.value?[t.target.value]:[])},onPressEnter:function(){return handleSearch(i,o,t)},style:{marginBottom:8,display:"block"}}),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_3__.a,null,react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_4__.a,{type:"primary",onClick:function(){return handleSearch(i,o,t)},icon:react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_27__.a,null),size:"small",style:{width:90}},_components_locales_react__WEBPACK_IMPORTED_MODULE_33__.a.AntdTable[locale].filterKeywordSearchButtonText),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_4__.a,{onClick:function(){return handleSearchReset(a)},size:"small",style:{width:90}},_components_locales_react__WEBPACK_IMPORTED_MODULE_33__.a.AntdTable[locale].filterKeywordResetButtonText)))},filterIcon:function(t){return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_27__.a,{style:{color:t?"#1890ff":void 0}})},onFilter:function(e,n){if("client-side"===mode){if(n[t]&&!Array.isArray(n[t])){var r,i,o,a,s;if(null!==(r=n[t])&&void 0!==r&&r.content)return n[t].content.toString().toLowerCase().includes(null==e?void 0:e.toLowerCase());if(null!==(i=n[t])&&void 0!==i&&i.text)return n[t].text.toString().toLowerCase().includes(null==e?void 0:e.toLowerCase());if(null!==(o=n[t])&&void 0!==o&&o.label)return n[t].label.toString().toLowerCase().includes(null==e?void 0:e.toLowerCase());if(null!==(a=n[t])&&void 0!==a&&a.tag)return n[t].tag.toString().toLowerCase().includes(null==e?void 0:e.toLowerCase());if(null!==(s=n[t])&&void 0!==s&&s.toString)return n[t].toString().toLowerCase().includes(null==e?void 0:e.toLowerCase())}else if(Array.isArray(n[t])){if(n[t].some((function(t){return null==t?void 0:t.content})))return n[t].some((function(t){return null==t?void 0:t.content.toString().toLowerCase().includes(null==e?void 0:e.toLowerCase())}));if(n[t].some((function(t){return null==t?void 0:t.tag})))return n[t].some((function(t){return null==t?void 0:t.tag.toString().toLowerCase().includes(null==e?void 0:e.toLowerCase())}));if(n[t].some((function(t){return null==t?void 0:t.title})))return n[t].some((function(t){return null==t?void 0:t.title.toString().toLowerCase().includes(null==e?void 0:e.toLowerCase())}))}return!1}return!0},onFilterDropdownVisibleChange:function(t){t&&setTimeout((function(){return searchInput.select()}),100)},render:function(e){return searchedColumn===t?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_highlight_words__WEBPACK_IMPORTED_MODULE_30___default.a,{highlightStyle:{backgroundColor:"#ffc069",padding:0},searchWords:[searchText],autoEscape:!0,textToHighlight:e?e.toString():""}):e}}},handleSearch=function(t,e,n){e(),setSearchText(t[0]),setSearchedColumn(n)},handleSearchReset=function(t){t(),setSearchText("")},_pagination3,_pagination4;for(var i in data||(data=[]),data)data[i].hasOwnProperty("key")||(data[i].key=i.toString());Object(lodash__WEBPACK_IMPORTED_MODULE_31__.isBoolean)(pagination)&&!pagination||(pagination=_objectSpread(_objectSpread({},pagination),{},{showTotalPrefix:(null===(_pagination3=pagination)||void 0===_pagination3?void 0:_pagination3.showTotalPrefix)||_components_locales_react__WEBPACK_IMPORTED_MODULE_33__.a.AntdTable[locale].showTotalPrefix,showTotalSuffix:(null===(_pagination4=pagination)||void 0===_pagination4?void 0:_pagination4.showTotalSuffix)||_components_locales_react__WEBPACK_IMPORTED_MODULE_33__.a.AntdTable[locale].showTotalSuffix}));for(var _i in columns=columns.filter((function(t){return!t.hidden})),columns)columns[_i]=_objectSpread({align:"center"},columns[_i]);var EditableContext=react__WEBPACK_IMPORTED_MODULE_0___default.a.createContext(null),EditableRow=function(t){t.index;var e=_objectWithoutProperties(t,_excluded2),n=_slicedToArray(antd__WEBPACK_IMPORTED_MODULE_5__.a.useForm(),1)[0];return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_5__.a,{form:n,component:!1},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(EditableContext.Provider,{value:n},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("tr",e)))},EditableCell=function EditableCell(_ref3){var title=_ref3.title,editable=_ref3.editable,children=_ref3.children,dataIndex=_ref3.dataIndex,record=_ref3.record,restProps=_objectWithoutProperties(_ref3,_excluded3),_useState5=Object(react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),_useState6=_slicedToArray(_useState5,2),editing=_useState6[0],setEditing=_useState6[1],inputRef=Object(react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null),form=Object(react__WEBPACK_IMPORTED_MODULE_0__.useContext)(EditableContext);Object(react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((function(){var t;editing&&(null===(t=inputRef.current)||void 0===t||t.focus())}),[editing]);var toggleEdit=function(){setEditing(!editing),form.setFieldsValue(_defineProperty({},dataIndex,record[dataIndex]))},_useState7=Object(react__WEBPACK_IMPORTED_MODULE_0__.useState)(data),_useState8=_slicedToArray(_useState7,2),dataSource=_useState8[0],setDataSource=_useState8[1],handleSave=function handleSave(row,setProps,dataSource,setDataSource){for(var newData=_toConsumableArray(dataSource),item=findItemByKey(newData,row.key),rowColumns=Object.getOwnPropertyNames(row),_i2=0;_i2<rowColumns.length;_i2++){var _columnsFormatConstra;if(row[rowColumns[_i2]]!==item[rowColumns[_i2]]&&columnsFormatConstraint&&columnsFormatConstraint[rowColumns[_i2]]&&columnsFormatConstraint[rowColumns[_i2]].rule)if(!eval("/".concat(columnsFormatConstraint[rowColumns[_i2]].rule,"/")).test(row[rowColumns[_i2]]))return void antd__WEBPACK_IMPORTED_MODULE_6__.a.error("编辑失败,".concat(row[rowColumns[_i2]]," 输入").concat((null===(_columnsFormatConstra=columnsFormatConstraint[rowColumns[_i2]])||void 0===_columnsFormatConstra?void 0:_columnsFormatConstra.content)||"不符合对应字段格式要求!"))}for(var _changedColumn=null,_i3=0;_i3<rowColumns.length;_i3++)row[rowColumns[_i3]]!==item[rowColumns[_i3]]&&(_changedColumn=rowColumns[_i3]);_replaceItemByKey(newData,row.key,_objectSpread(_objectSpread({},item),row)),setDataSource(newData),setProps({currentData:newData,recentlyChangedRow:Object(lodash__WEBPACK_IMPORTED_MODULE_31__.omitBy)(row,(function(t){return null==t?void 0:t.$$typeof})),recentlyChangedColumn:_changedColumn,data:newData})},save=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(){var e;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,form.validateFields();case 3:e=t.sent,toggleEdit(),handleSave(_objectSpread(_objectSpread({},record),e),setProps,dataSource,setDataSource),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),console.log(t.t0);case 11:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(){return t.apply(this,arguments)}}(),childNode=children;if(editable){var _columns$filter$0$edi,_columns$filter$0$edi2,_columns$filter$0$edi3,_columns$filter$0$edi4,_columns$filter$0$edi5,_columns$filter$0$edi6,_columns$filter$0$edi7,recordDisabled=((null===(_columns$filter$0$edi=columns.filter((function(t){return t.dataIndex===dataIndex}))[0].editOptions)||void 0===_columns$filter$0$edi?void 0:_columns$filter$0$edi.disabledKeys)||[]).includes(record.key);childNode=editing?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_5__.a.Item,{style:{margin:0},name:dataIndex,rules:[{required:!1,message:"".concat(title," 为空!")}]},"text-area"===(null===(_columns$filter$0$edi2=columns.filter((function(t){return t.dataIndex===dataIndex}))[0].editOptions)||void 0===_columns$filter$0$edi2?void 0:_columns$filter$0$edi2.mode)?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_2__.a.TextArea,{autoSize:null===(_columns$filter$0$edi3=columns.filter((function(t){return t.dataIndex===dataIndex}))[0].editOptions)||void 0===_columns$filter$0$edi3?void 0:_columns$filter$0$edi3.autoSize,maxLength:null===(_columns$filter$0$edi4=columns.filter((function(t){return t.dataIndex===dataIndex}))[0].editOptions)||void 0===_columns$filter$0$edi4?void 0:_columns$filter$0$edi4.maxLength,placeholder:null===(_columns$filter$0$edi5=columns.filter((function(t){return t.dataIndex===dataIndex}))[0].editOptions)||void 0===_columns$filter$0$edi5?void 0:_columns$filter$0$edi5.placeholder,ref:inputRef,onBlur:save,onFocus:function(){var t;null===(t=inputRef.current)||void 0===t||t.focus({cursor:"end"})},disabled:recordDisabled}):react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_2__.a,{maxLength:null===(_columns$filter$0$edi6=columns.filter((function(t){return t.dataIndex===dataIndex}))[0].editOptions)||void 0===_columns$filter$0$edi6?void 0:_columns$filter$0$edi6.maxLength,placeholder:null===(_columns$filter$0$edi7=columns.filter((function(t){return t.dataIndex===dataIndex}))[0].editOptions)||void 0===_columns$filter$0$edi7?void 0:_columns$filter$0$edi7.placeholder,ref:inputRef,onPressEnter:save,onBlur:save,disabled:recordDisabled})):react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div",{className:"editable-cell-value-wrap",style:_objectSpread({whiteSpace:"break-spaces"},recordDisabled?{cursor:"no-drop"}:{}),onClick:recordDisabled?void 0:toggleEdit},children[1]||0===children[1]?children:" ")}return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td",restProps,childNode)},compareNumeric=function(t,e){return t.value<e.value?-1:t.value>e.value?1:0},generateFilterOptions=function(t,e){var n,r=[],i=_createForOfIteratorHelper(t);try{for(i.s();!(n=i.n()).done;){var o,a,s,c,l,u=n.value;if(u[e]&&!Array.isArray(u[e]))null!==(o=u[e])&&void 0!==o&&o.content?r.push(u[e].content):null!==(a=u[e])&&void 0!==a&&a.text?r.push(u[e].text):null!==(s=u[e])&&void 0!==s&&s.label?r.push(u[e].label):null!==(c=u[e])&&void 0!==c&&c.tag?r.push(u[e].tag):null!==(l=u[e])&&void 0!==l&&l.toString&&r.push(u[e]);else Array.isArray(u[e])&&(u[e].some((function(t){return null==t?void 0:t.content}))?r=r.concat(u[e].filter((function(t){return null==t?void 0:t.content})).map((function(t){return t.content}))):u[e].some((function(t){return null==t?void 0:t.tag}))&&(r=r.concat(u[e].filter((function(t){return null==t?void 0:t.tag})).map((function(t){return t.tag})))))}}catch(t){i.e(t)}finally{i.f()}return Array.from(new Set(r)).map((function(t){return{text:t?t.toString():"",value:t}})).sort(compareNumeric)};if("server-side"!==mode)for(var _loop=function(t){if(-1!==Object.keys(filterOptions).indexOf(columns[t].dataIndex))if("keyword"===filterOptions[columns[t].dataIndex].filterMode)columns[t]=_objectSpread(_objectSpread({},columns[t]),getColumnSearchProps(columns[t].dataIndex,columns[t].title));else if("tree"===filterOptions[columns[t].dataIndex].filterMode)filterOptions[columns[t].dataIndex].filterCustomTreeItems&&(columns[t]=_objectSpread(_objectSpread({},columns[t]),{},{defaultFilteredValue:defaultFilteredValues[columns[t].dataIndex],filterMode:"tree",filters:filterOptions[columns[t].dataIndex].filterCustomTreeItems,onFilter:function(e,n){if(n[columns[t].dataIndex]&&!Array.isArray(n[columns[t].dataIndex])){var r,i,o,a,s;if(null!==(r=n[columns[t].dataIndex])&&void 0!==r&&r.content)return n[columns[t].dataIndex].content===e;if(null!==(i=n[columns[t].dataIndex])&&void 0!==i&&i.text)return n[columns[t].dataIndex].text===e;if(null!==(o=n[columns[t].dataIndex])&&void 0!==o&&o.label)return n[columns[t].dataIndex].label===e;if(null!==(a=n[columns[t].dataIndex])&&void 0!==a&&a.tag)return n[columns[t].dataIndex].tag===e;if(null!==(s=n[columns[t].dataIndex])&&void 0!==s&&s.toString)return n[columns[t].dataIndex].toString()===e}else if(Array.isArray(n[columns[t].dataIndex])){if(n[columns[t].dataIndex].some((function(t){return null==t?void 0:t.content})))return n[columns[t].dataIndex].some((function(t){return(null==t?void 0:t.content.toString().toLowerCase())===(null==e?void 0:e.toLowerCase())}));if(n[columns[t].dataIndex].some((function(t){return null==t?void 0:t.tag})))return n[columns[t].dataIndex].some((function(t){return(null==t?void 0:t.tag.toString().toLowerCase())===(null==e?void 0:e.toLowerCase())}));if(n[columns[t].dataIndex].some((function(t){return null==t?void 0:t.title})))return n[columns[t].dataIndex].some((function(t){return(null==t?void 0:t.title.toString().toLowerCase())===(null==e?void 0:e.toLowerCase())}))}return!1},filterSearch:filterOptions[columns[t].dataIndex].filterSearch}));else{var e,n;if(filterOptions[columns[t].dataIndex].filterCustomItems)columns[t]=_objectSpread(_objectSpread({},columns[t]),{},{defaultFilteredValue:defaultFilteredValues[columns[t].dataIndex],filters:filterOptions[columns[t].dataIndex].filterCustomItems.map((function(t){return{text:t?t.toString():"",value:t}})),onFilter:function(e,n){if(n[columns[t].dataIndex]&&!Array.isArray(n[columns[t].dataIndex])){var r,i,o,a,s;if(null!==(r=n[columns[t].dataIndex])&&void 0!==r&&r.content)return n[columns[t].dataIndex].content===e;if(null!==(i=n[columns[t].dataIndex])&&void 0!==i&&i.text)return n[columns[t].dataIndex].text===e;if(null!==(o=n[columns[t].dataIndex])&&void 0!==o&&o.label)return n[columns[t].dataIndex].label===e;if(null!==(a=n[columns[t].dataIndex])&&void 0!==a&&a.tag)return n[columns[t].dataIndex].tag===e;if(null!==(s=n[columns[t].dataIndex])&&void 0!==s&&s.toString)return n[columns[t].dataIndex].toString()===e}else if(Array.isArray(n[columns[t].dataIndex])){if(n[columns[t].dataIndex].some((function(t){return null==t?void 0:t.content})))return n[columns[t].dataIndex].some((function(t){return(null==t?void 0:t.content.toString().toLowerCase())===(null==e?void 0:e.toLowerCase())}));if(n[columns[t].dataIndex].some((function(t){return null==t?void 0:t.tag})))return n[columns[t].dataIndex].some((function(t){return(null==t?void 0:t.tag.toString().toLowerCase())===(null==e?void 0:e.toLowerCase())}));if(n[columns[t].dataIndex].some((function(t){return null==t?void 0:t.title})))return n[columns[t].dataIndex].some((function(t){return(null==t?void 0:t.title.toString().toLowerCase())===(null==e?void 0:e.toLowerCase())}))}return!1},filterMultiple:filterOptions[columns[t].dataIndex].filterMultiple,filterSearch:filterOptions[columns[t].dataIndex].filterSearch});else columns[t]=_objectSpread(_objectSpread({},columns[t]),{},{defaultFilteredValue:defaultFilteredValues[columns[t].dataIndex],filters:generateFilterOptions(data,columns[t].dataIndex),onFilter:function(e,n){if(n[columns[t].dataIndex]&&!Array.isArray(n[columns[t].dataIndex])){var r,i,o,a,s;if(null!==(r=n[columns[t].dataIndex])&&void 0!==r&&r.content)return n[columns[t].dataIndex].content===e;if(null!==(i=n[columns[t].dataIndex])&&void 0!==i&&i.text)return n[columns[t].dataIndex].text===e;if(null!==(o=n[columns[t].dataIndex])&&void 0!==o&&o.label)return n[columns[t].dataIndex].label===e;if(null!==(a=n[columns[t].dataIndex])&&void 0!==a&&a.tag)return n[columns[t].dataIndex].tag===e;if(null!==(s=n[columns[t].dataIndex])&&void 0!==s&&s.toString)return n[columns[t].dataIndex].toString()===e.toString()}else if(Array.isArray(n[columns[t].dataIndex])){if(n[columns[t].dataIndex].some((function(t){return null==t?void 0:t.content})))return n[columns[t].dataIndex].some((function(t){return(null==t?void 0:t.content.toString().toLowerCase())===(null==e?void 0:e.toLowerCase())}));if(n[columns[t].dataIndex].some((function(t){return null==t?void 0:t.tag})))return n[columns[t].dataIndex].some((function(t){return(null==t?void 0:t.tag.toString().toLowerCase())===(null==e?void 0:e.toLowerCase())}));if(n[columns[t].dataIndex].some((function(t){return null==t?void 0:t.title})))return n[columns[t].dataIndex].some((function(t){return(null==t?void 0:t.title.toString().toLowerCase())===(null==e?void 0:e.toLowerCase())}))}return!1},filterMultiple:null===(e=filterOptions[columns[t].dataIndex])||void 0===e?void 0:e.filterMultiple,filterSearch:null===(n=filterOptions[columns[t].dataIndex])||void 0===n?void 0:n.filterSearch})}},_i4=0;_i4<columns.length;_i4++)_loop(_i4);else for(var _i5=0;_i5<columns.length;_i5++)-1!==Object.keys(filterOptions).indexOf(columns[_i5].dataIndex)&&("keyword"===filterOptions[columns[_i5].dataIndex].filterMode?columns[_i5]=_objectSpread(_objectSpread({},columns[_i5]),getColumnSearchProps(columns[_i5].dataIndex,columns[_i5].title)):"tree"===filterOptions[columns[_i5].dataIndex].filterMode?filterOptions[columns[_i5].dataIndex].filterCustomTreeItems?columns[_i5]=_objectSpread(_objectSpread({},columns[_i5]),{},{defaultFilteredValue:defaultFilteredValues[columns[_i5].dataIndex],filterMode:"tree",filters:filterOptions[columns[_i5].dataIndex].filterCustomTreeItems,onFilter:function(t,e){return!0}}):columns[_i5]=_objectSpread(_objectSpread({},columns[_i5]),{},{filters:[],onFilter:function(t,e){return!0}}):filterOptions[columns[_i5].dataIndex].hasOwnProperty("filterCustomItems")?columns[_i5]=_objectSpread(_objectSpread({},columns[_i5]),{},{defaultFilteredValue:defaultFilteredValues[columns[_i5].dataIndex],filters:filterOptions[columns[_i5].dataIndex].filterCustomItems.map((function(t){return{text:t?t.toString():"",value:t}})),onFilter:function(t,e){return!0},filterMultiple:filterOptions[columns[_i5].dataIndex].filterMultiple,filterSearch:filterOptions[columns[_i5].dataIndex].filterSearch}):columns[_i5]=_objectSpread(_objectSpread({},columns[_i5]),{},{filters:[],onFilter:function(t,e){return!0}}));sortOptions=_objectSpread({sortDataIndexes:[],multiple:!1,forceCompareModes:{},customOrders:{}},sortOptions);for(var _i6=0;_i6<sortOptions.sortDataIndexes.length;_i6++)for(var _loop2=function(t){sortOptions.sortDataIndexes[_i6]===columns[t].dataIndex&&(columns[t].sorter={compare:function(e,n){if("server-side"===mode)return 0;var r,i,o,a,s,c,l,u,h,d,f,p,g=null,v=null;if(null!==(r=e[columns[t].dataIndex])&&void 0!==r&&r.content||null!==(i=n[columns[t].dataIndex])&&void 0!==i&&i.content)g=null===(f=e[columns[t].dataIndex])||void 0===f?void 0:f.content,v=null===(p=n[columns[t].dataIndex])||void 0===p?void 0:p.content;else if(null!==(o=e[columns[t].dataIndex])&&void 0!==o&&o.text||null!==(a=n[columns[t].dataIndex])&&void 0!==a&&a.text){var y,m;g=null===(y=e[columns[t].dataIndex])||void 0===y?void 0:y.text,v=null===(m=n[columns[t].dataIndex])||void 0===m?void 0:m.text}else if(null!==(s=e[columns[t].dataIndex])&&void 0!==s&&s.label||null!==(c=n[columns[t].dataIndex])&&void 0!==c&&c.label){var b,x;g=null===(b=e[columns[t].dataIndex])||void 0===b?void 0:b.label,v=null===(x=n[columns[t].dataIndex])||void 0===x?void 0:x.label}else if(null!==(l=e[columns[t].dataIndex])&&void 0!==l&&l.tag||null!==(u=n[columns[t].dataIndex])&&void 0!==u&&u.tag){var O,j;g=null===(O=e[columns[t].dataIndex])||void 0===O?void 0:O.tag,v=null===(j=n[columns[t].dataIndex])||void 0===j?void 0:j.tag}else(null!==(h=e[columns[t].dataIndex])&&void 0!==h&&h.toString||null!==(d=n[columns[t].dataIndex])&&void 0!==d&&d.toString)&&(g=e[columns[t].dataIndex],v=n[columns[t].dataIndex]);if(!sortOptions.forceCompareModes[columns[t].dataIndex]){if(Object(lodash__WEBPACK_IMPORTED_MODULE_31__.isNumber)(g)||Object(lodash__WEBPACK_IMPORTED_MODULE_31__.isNumber)(v))return g-v;var w,C,_=null===(w=g)||void 0===w?void 0:w.toString().toUpperCase(),M=null===(C=v)||void 0===C?void 0:C.toString().toUpperCase();return _<M?-1:_>M?1:0}if("number"===sortOptions.forceCompareModes[columns[t].dataIndex]){var S=Number(g),E=Number(v);return S<E?-1:S>E?1:0}if("custom"===sortOptions.forceCompareModes[columns[t].dataIndex]&&sortOptions.customOrders[columns[t].dataIndex]){var k=sortOptions.customOrders[columns[t].dataIndex].indexOf(g),I=sortOptions.customOrders[columns[t].dataIndex].indexOf(v);return k<I?1:k>I?-1:0}},multiple:sortOptions.multiple?"auto"===sortOptions.multiple?1:sortOptions.sortDataIndexes.length-_i6:void 0})},j=0;j<columns.length;j++)_loop2(j);for(var _loop3=function _loop3(_i7){columns[_i7].renderOptions&&columns[_i7].renderOptions.renderType&&("ellipsis"===columns[_i7].renderOptions.renderType?(columns[_i7].ellipsis={showTitle:!1},columns[_i7].render=function(t){return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(Text,{ellipsis:{tooltip:t}},t)}):"row-merge"===columns[_i7].renderOptions.renderType?columns[_i7].render=function(t,e,n){return{children:t.content,props:{rowSpan:t.rowSpan}}}:"link"===columns[_i7].renderOptions.renderType?columns[_i7].renderOptions.renderLinkText?columns[_i7].render=function(t){return t&&!Object(lodash__WEBPACK_IMPORTED_MODULE_31__.isEmpty)(t)||0===t||""===t?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("a",{href:t.disabled?void 0:t.href,target:t.target?t.target:"_blank",disabled:t.disabled},t.content?t.content:columns[_i7].renderOptions.renderLinkText):null}:columns[_i7].render=function(t){return t&&!Object(lodash__WEBPACK_IMPORTED_MODULE_31__.isEmpty)(t)||0===t||""===t?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("a",{href:t.disabled?void 0:t.href,target:t.target?t.target:"_blank",disabled:t.disabled},t.content?t.content:" "):null}:"copyable"===columns[_i7].renderOptions.renderType?columns[_i7].render=function(t){return t&&!Object(lodash__WEBPACK_IMPORTED_MODULE_31__.isEmpty)(t)||0===t||""===t?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(Text,{copyable:!0},t):null}:"dropdown"===columns[_i7].renderOptions.renderType?columns[_i7].render=function(t,e){var n,r,i,o,a,s,c,l,u,h,d,f,p,g;return t=t||[],react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_7__.a,{overlay:react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_8__.a,{onClick:function(t,n,r,i){setTimeout((function(){setProps({nClicksDropdownItem:nClicksDropdownItem+1,recentlyClickedDropdownItemTitle:t.key,recentlyDropdownItemClickedDataIndex:columns[_i7].dataIndex,recentlyDropdownItemClickedRow:Object(lodash__WEBPACK_IMPORTED_MODULE_31__.omitBy)(e,(function(t){return null==t?void 0:t.$$typeof}))})}),200)}},t.map((function(t){return t?t.isDivider?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_8__.a.Divider,null):react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_8__.a.Item,{icon:t.icon&&("fontawesome"===t.iconRenderer?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("i",{className:t.icon}):react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_general_AntdIcon_react__WEBPACK_IMPORTED_MODULE_26__.a,{icon:t.icon})),disabled:t.disabled,key:t.title},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("a",null,t.title)):null}))),arrow:null===(n=columns[_i7].renderOptions)||void 0===n||null===(r=n.dropdownProps)||void 0===r?void 0:r.arrow,disabled:(null===(i=columns[_i7].renderOptions)||void 0===i||null===(o=i.dropdownProps)||void 0===o?void 0:o.disabled)||0===t.length,overlayClassName:null===(a=columns[_i7].renderOptions)||void 0===a||null===(s=a.dropdownProps)||void 0===s?void 0:s.overlayClassName,overlayStyle:null===(c=columns[_i7].renderOptions)||void 0===c||null===(l=c.dropdownProps)||void 0===l?void 0:l.overlayStyle,placement:null===(u=columns[_i7].renderOptions)||void 0===u||null===(h=u.dropdownProps)||void 0===h?void 0:h.placement,trigger:null!==(d=columns[_i7].renderOptions)&&void 0!==d&&null!==(f=d.dropdownProps)&&void 0!==f&&f.trigger?[columns[_i7].renderOptions.dropdownProps.trigger]:["hover"],getPopupContainer:containerId?function(){return document.getElementById(containerId)?document.getElementById(containerId):document.body}:void 0},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("a",{className:"ant-dropdown-link",onClick:function(t){return t.preventDefault()}},null===(p=columns[_i7].renderOptions)||void 0===p||null===(g=p.dropdownProps)||void 0===g?void 0:g.title," ",react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_28__.a,null)))}:"dropdown-links"===columns[_i7].renderOptions.renderType?columns[_i7].render=function(t){var e,n,r,i,o,a,s,c,l,u,h,d,f,p;return t=t||[],react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_7__.a,{overlay:react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_8__.a,null,t.map((function(t){return t?t.isDivider?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_8__.a.Divider,null):react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_8__.a.Item,{icon:t.icon&&("fontawesome"===t.iconRenderer?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("i",{className:t.icon}):react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_general_AntdIcon_react__WEBPACK_IMPORTED_MODULE_26__.a,{icon:t.icon})),disabled:t.disabled,key:t.title},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("a",{href:t.href,target:"_blank"},t.title)):null}))),arrow:null===(e=columns[_i7].renderOptions)||void 0===e||null===(n=e.dropdownProps)||void 0===n?void 0:n.arrow,disabled:(null===(r=columns[_i7].renderOptions)||void 0===r||null===(i=r.dropdownProps)||void 0===i?void 0:i.disabled)||0===t.length,overlayClassName:null===(o=columns[_i7].renderOptions)||void 0===o||null===(a=o.dropdownProps)||void 0===a?void 0:a.overlayClassName,overlayStyle:null===(s=columns[_i7].renderOptions)||void 0===s||null===(c=s.dropdownProps)||void 0===c?void 0:c.overlayStyle,placement:null===(l=columns[_i7].renderOptions)||void 0===l||null===(u=l.dropdownProps)||void 0===u?void 0:u.placement,trigger:null!==(h=columns[_i7].renderOptions)&&void 0!==h&&null!==(d=h.dropdownProps)&&void 0!==d&&d.trigger?[columns[_i7].renderOptions.dropdownProps.trigger]:["hover"],getPopupContainer:containerId?function(){return document.getElementById(containerId)?document.getElementById(containerId):document.body}:void 0},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("a",{className:"ant-dropdown-link",onClick:function(t){return t.preventDefault()}},null===(f=columns[_i7].renderOptions)||void 0===f||null===(p=f.dropdownProps)||void 0===p?void 0:p.title," ",react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_28__.a,null)))}:"ellipsis-copyable"===columns[_i7].renderOptions.renderType?(columns[_i7].ellipsis={showTitle:!1},columns[_i7].render=function(t){return t&&!Object(lodash__WEBPACK_IMPORTED_MODULE_31__.isEmpty)(t)||0===t||""===t?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(Text,{copyable:!0,ellipsis:{tooltip:t}},t):null}):"corner-mark"===columns[_i7].renderOptions.renderType?columns[_i7].render=function(t){return t&&!Object(lodash__WEBPACK_IMPORTED_MODULE_31__.isEmpty)(t)||0===t||""===t?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div",{className:t.placement?"ant-corner-mark-"+t.placement:"ant-corner-mark-top-right",style:{"--ant-corner-mark-color":t.hide?"transparent":t.color?t.color:"#1890ff","--ant-corner-mark-transform":"translate(".concat(t.offsetX?t.offsetX:0,"px, ").concat(t.offsetY?t.offsetY:0,"px)")}},t.content):null}:"status-badge"===columns[_i7].renderOptions.renderType?columns[_i7].render=function(t){return t&&!Object(lodash__WEBPACK_IMPORTED_MODULE_31__.isEmpty)(t)||0===t||""===t?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_9__.a,{status:t.status,text:t.text}):null}:"image"===columns[_i7].renderOptions.renderType?columns[_i7].render=function(t){return t&&!Object(lodash__WEBPACK_IMPORTED_MODULE_31__.isEmpty)(t)||0===t||""===t?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_10__.a,{src:t.src,height:t.height,preview:t.preview}):null}:"image-avatar"===columns[_i7].renderOptions.renderType?columns[_i7].render=function(t){return t&&!Object(lodash__WEBPACK_IMPORTED_MODULE_31__.isEmpty)(t)||0===t||""===t?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_11__.a,{src:null==t?void 0:t.src,size:null==t?void 0:t.size,shape:null==t?void 0:t.shape}):null}:"checkbox"===columns[_i7].renderOptions.renderType?columns[_i7].render=function(t,e){var n=columns[_i7].dataIndex;return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_12__.a,{checked:t.checked,disabled:t.disabled,onChange:function(r){try{data.forEach((function(t,i){if(t.key===e.key)throw data[i][n]=_objectSpread(_objectSpread({},e[n]),{},{checked:r.target.checked}),new Error("目标已修改")}))}catch(r){}setTimeout((function(){setProps({data:data,recentlyCheckedRow:Object(lodash__WEBPACK_IMPORTED_MODULE_31__.omitBy)(e,(function(t){return null==t?void 0:t.$$typeof})),recentlyCheckedLabel:t.label,recentlyCheckedDataIndex:columns[_i7].dataIndex,recentlyCheckedStatus:r.target.checked})}),200)}},t.label)}:"switch"===columns[_i7].renderOptions.renderType?columns[_i7].render=function(t,e){var n=columns[_i7].dataIndex;return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_13__.a,{checked:t.checked,disabled:t.disabled,checkedChildren:t.checkedChildren,unCheckedChildren:t.unCheckedChildren,onChange:function(t){try{data.forEach((function(r,i){if(r.key===e.key)throw data[i][n]=_objectSpread(_objectSpread({},e[n]),{},{checked:t}),new Error("目标已修改")}))}catch(t){}setTimeout((function(){setProps({data:data,recentlySwitchRow:Object(lodash__WEBPACK_IMPORTED_MODULE_31__.omitBy)(e,(function(t){return null==t?void 0:t.$$typeof})),recentlySwitchDataIndex:columns[_i7].dataIndex,recentlySwitchStatus:t})}),200)}})}:"select"===columns[_i7].renderOptions.renderType?columns[_i7].render=function(t,e){var n=columns[_i7].dataIndex;return t=t||{},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_14__.a,{className:t.className,style:_objectSpread({width:"100%",textAlign:"left"},t.style),showSearch:!0,options:t.options,listHeight:t.listHeight,mode:t.mode,disabled:t.disabled,size:t.size,bordered:t.bordered,placeholder:t.placeholder,placement:t.placement,defaultValue:t.value,maxTagCount:t.maxTagCount,optionFilterProp:t.optionFilterProp,allowClear:t.allowClear,onChange:function(t){try{data.forEach((function(r,i){if(r.key===e.key)throw data[i][n]=_objectSpread(_objectSpread({},e[n]),{},{value:t}),new Error("目标已修改")}))}catch(t){}setTimeout((function(){setProps({data:data,recentlySelectRow:Object(lodash__WEBPACK_IMPORTED_MODULE_31__.omitBy)(e,(function(t){return null==t?void 0:t.$$typeof})),recentlySelectDataIndex:columns[_i7].dataIndex,recentlySelectValue:t})}),200)}})}:"button"===columns[_i7].renderOptions.renderType?columns[_i7].render=function(t,e){return t=Array.isArray(t)?t:[t],react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_3__.a,{split:columns[_i7].renderOptions.renderButtonSplit&&react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_15__.a,{type:"vertical"})},t.map((function(t,n){if(columns[_i7].renderOptions.renderButtonPopConfirmProps||t.popConfirmProps){var r=columns[_i7].renderOptions.renderButtonPopConfirmProps||t.popConfirmProps;return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_16__.a,{key:n,title:r.title,okText:r.okText,cancelText:r.cancelText,disabled:t.disabled,getPopupContainer:containerId?function(){return document.getElementById(containerId)?document.getElementById(containerId):document.body}:void 0,onConfirm:function(n){n.stopPropagation(),setProps({recentlyButtonClickedRow:Object(lodash__WEBPACK_IMPORTED_MODULE_31__.omitBy)(e,(function(t){return null==t?void 0:t.$$typeof})),nClicksButton:nClicksButton+1,clickedContent:t.content,clickedCustom:t.custom,recentlyButtonClickedDataIndex:columns[_i7].dataIndex})},onCancel:function(t){t.stopPropagation()}},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_4__.a,{size:"small",type:t.type,color:t.color,variant:t.variant,danger:t.danger,disabled:t.disabled,style:t.style,icon:t.icon&&("fontawesome"===t.iconRenderer?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("i",{className:t.icon}):react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_general_AntdIcon_react__WEBPACK_IMPORTED_MODULE_26__.a,{icon:t.icon})),onClick:function(t){t.stopPropagation()}},t.content))}return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_4__.a,{key:n,onClick:function(n){n.stopPropagation(),setProps({recentlyButtonClickedRow:Object(lodash__WEBPACK_IMPORTED_MODULE_31__.omitBy)(e,(function(t){return null==t?void 0:t.$$typeof})),nClicksButton:nClicksButton+1,clickedContent:t.content,clickedCustom:t.custom,recentlyButtonClickedDataIndex:columns[_i7].dataIndex})},size:"small",type:t.type,color:t.color,variant:t.variant,danger:t.danger,disabled:t.disabled,href:t.href,target:t.target,style:t.style,icon:t.icon&&("fontawesome"===t.iconRenderer?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("i",{className:t.icon}):react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_general_AntdIcon_react__WEBPACK_IMPORTED_MODULE_26__.a,{icon:t.icon}))},t.content)})))}:"tags"===columns[_i7].renderOptions.renderType?columns[_i7].render=function(t){return t&&!Object(lodash__WEBPACK_IMPORTED_MODULE_31__.isEmpty)(t)||0===t||""===t?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment,null,(Array.isArray(t)?t:[t]).map((function(t){return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_17__.a,{color:t.color},t.tag)}))):null}:"custom-format"===columns[_i7].renderOptions.renderType?customFormatFuncs[columns[_i7].dataIndex]&&(columns[_i7].render=eval(customFormatFuncs[columns[_i7].dataIndex])):"mini-line"===columns[_i7].renderOptions.renderType?columns[_i7].render=function(data){var _columns$_i7$renderOp29,_columns$_i7$renderOp30,config={autoFit:!0,padding:0,data:data,animation:miniChartAnimation,smooth:!0};return null!==(_columns$_i7$renderOp29=columns[_i7].renderOptions)&&void 0!==_columns$_i7$renderOp29&&_columns$_i7$renderOp29.tooltipCustomContent&&(config=_objectSpread(_objectSpread({},config),{},{tooltip:{customContent:eval(columns[_i7].renderOptions.tooltipCustomContent)}})),null!==(_columns$_i7$renderOp30=columns[_i7].renderOptions)&&void 0!==_columns$_i7$renderOp30&&_columns$_i7$renderOp30.miniChartColor&&(config=_objectSpread(_objectSpread({},config),{},{color:columns[_i7].renderOptions.miniChartColor})),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div",{style:{height:miniChartHeight}},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ant_design_plots__WEBPACK_IMPORTED_MODULE_21__.a,config))}:"mini-bar"===columns[_i7].renderOptions.renderType?columns[_i7].render=function(data){var _columns$_i7$renderOp31,_columns$_i7$renderOp32,config={padding:0,autoFit:!0,data:data,animation:miniChartAnimation};return null!==(_columns$_i7$renderOp31=columns[_i7].renderOptions)&&void 0!==_columns$_i7$renderOp31&&_columns$_i7$renderOp31.tooltipCustomContent&&(config=_objectSpread(_objectSpread({},config),{},{tooltip:{customContent:eval(columns[_i7].renderOptions.tooltipCustomContent)}})),null!==(_columns$_i7$renderOp32=columns[_i7].renderOptions)&&void 0!==_columns$_i7$renderOp32&&_columns$_i7$renderOp32.miniChartColor&&(config=_objectSpread(_objectSpread({},config),{},{color:columns[_i7].renderOptions.miniChartColor})),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div",{style:{height:miniChartHeight}},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ant_design_plots__WEBPACK_IMPORTED_MODULE_22__.a,config))}:"mini-progress"===columns[_i7].renderOptions.renderType?columns[_i7].render=function(t){var e={autoFit:!0,padding:0,percent:t,animation:miniChartAnimation,color:[1===t?columns[_i7].renderOptions.progressOneHundredPercentColor||"#52c41a":"#5B8FF9","#E8EDF3"]};return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div",{style:{height:miniChartHeight}},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ant_design_plots__WEBPACK_IMPORTED_MODULE_23__.a,e))}:"mini-ring-progress"===columns[_i7].renderOptions.renderType?columns[_i7].render=function(t){var e={autoFit:!0,padding:0,percent:t,animation:miniChartAnimation,color:[1===t?columns[_i7].renderOptions.progressOneHundredPercentColor||"#52c41a":"#5B8FF9","#E8EDF3"],statistic:{content:{style:{fontSize:columns[_i7].renderOptions.ringProgressFontSize}}}};return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div",{style:{height:miniChartHeight}},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ant_design_plots__WEBPACK_IMPORTED_MODULE_24__.a,e))}:"mini-area"===columns[_i7].renderOptions.renderType&&(columns[_i7].render=function(data){var _columns$_i7$renderOp33,_columns$_i7$renderOp34,config={autoFit:!0,padding:0,data:data,animation:miniChartAnimation,smooth:!0};return null!==(_columns$_i7$renderOp33=columns[_i7].renderOptions)&&void 0!==_columns$_i7$renderOp33&&_columns$_i7$renderOp33.tooltipCustomContent&&(config=_objectSpread(_objectSpread({},config),{},{tooltip:{customContent:eval(columns[_i7].renderOptions.tooltipCustomContent)}})),null!==(_columns$_i7$renderOp34=columns[_i7].renderOptions)&&void 0!==_columns$_i7$renderOp34&&_columns$_i7$renderOp34.miniChartColor&&(config=_objectSpread(_objectSpread({},config),{},{areaStyle:{fill:columns[_i7].renderOptions.miniChartColor,fillOpacity:.4},line:{color:columns[_i7].renderOptions.miniChartColor}})),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div",{style:{height:miniChartHeight}},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ant_design_plots__WEBPACK_IMPORTED_MODULE_25__.a,config))}))},_i7=0,rowSelection,rowExpandedRowRender;_i7<columns.length;_i7++)_loop3(_i7);if(titlePopoverInfo)for(var _loop4=function(t){Object.keys(titlePopoverInfo).includes(columns[t].dataIndex)&&(columns[t].title_||(columns[t].title_=columns[t].title),columns[t].title=function(){return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"}},columns[t].title_,react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_18__.a,{title:titlePopoverInfo[columns[t].dataIndex].title,content:react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div",{style:{maxWidth:"250px",wordWrap:"break-word",whiteSpace:"normal",wordBreak:"break-all"}},titlePopoverInfo[columns[t].dataIndex].content),overlayStyle:titlePopoverInfo[columns[t].dataIndex].overlayStyle,placement:titlePopoverInfo[columns[t].dataIndex].placement||"bottom",getPopupContainer:containerId?function(){return document.getElementById(containerId)?document.getElementById(containerId):document.body}:void 0},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_29__.a,{style:{color:"#8c8c8c",paddingLeft:"4px",cursor:"pointer"}})))})},_i8=0;_i8<columns.length;_i8++)_loop4(_i8);columns=columns.map((function(t,e){return _objectSpread(_objectSpread({},t),{onHeaderCell:function(t){return _objectSpread(_objectSpread({islast:e-(columns.length-1)},enableHoverListen?{onMouseEnter:function(e){setProps({recentlyMouseEnterColumnDataIndex:t.dataIndex})}}:{}),t.headerAlign?{style:{textAlign:t.headerAlign}}:{})}})})),rowSelectionType&&(rowSelection={columnWidth:rowSelectionWidth,checkStrictly:rowSelectionCheckStrictly,fixed:!0,type:rowSelectionType,selectedRowKeys:selectedRowKeys,selections:[antd__WEBPACK_IMPORTED_MODULE_19__.a.SELECTION_ALL,antd__WEBPACK_IMPORTED_MODULE_19__.a.SELECTION_INVERT,antd__WEBPACK_IMPORTED_MODULE_19__.a.SELECTION_NONE],onChange:function(t,e){setProps({selectedRowKeys:rowSelectionIgnoreRowKeys?t.filter((function(t){return!rowSelectionIgnoreRowKeys.includes(t)})):t,selectedRows:rowSelectionIgnoreRowKeys?e.map((function(t){return Object(lodash__WEBPACK_IMPORTED_MODULE_31__.omitBy)(t,(function(t){return null==t?void 0:t.$$typeof}))})).filter((function(t){return!rowSelectionIgnoreRowKeys.includes(t.key)})):e.map((function(t){return Object(lodash__WEBPACK_IMPORTED_MODULE_31__.omitBy)(t,(function(t){return null==t?void 0:t.$$typeof}))}))})},renderCell:function(t,e,n,r){return rowSelectionIgnoreRowKeys&&rowSelectionIgnoreRowKeys.includes(e.key)?null:r}}),expandedRowKeyToContent&&Array.isArray(expandedRowKeyToContent)&&(rowExpandedRowRender=new Map(expandedRowKeyToContent.map((function(t){return[t.key,t.content]}))));var atLeastOneColumnEditable=columns.some((function(t){return t.editable}));cellUpdateOptimize&&(columns=columns.map((function(t){return _objectSpread(_objectSpread({},t),{},{shouldCellUpdate:function(t,e){return!Object(lodash__WEBPACK_IMPORTED_MODULE_31__.isEqual)(t,e)}})})));var components={};atLeastOneColumnEditable&&(components.body={row:EditableRow,cell:EditableCell}),columns=_toConsumableArray(columns).map((function(item){return _objectSpread(_objectSpread({},item),{onCell:function onCell(record,index){var returnValue={};if(conditionalStyleFuncs&&conditionalStyleFuncs[item.dataIndex])try{returnValue=_objectSpread(_objectSpread({},returnValue),eval(conditionalStyleFuncs[item.dataIndex])(record,index))}catch(t){console.error(t)}if(enableCellClickListenColumns&&enableCellClickListenColumns.includes(item.dataIndex))try{returnValue=_objectSpread(_objectSpread({},returnValue),{},{onClick:function(t){setProps({recentlyCellClickColumn:item.dataIndex,recentlyCellClickRecord:Object(lodash__WEBPACK_IMPORTED_MODULE_31__.omitBy)(record,(function(t){return null==t?void 0:t.$$typeof})),nClicksCell:nClicksCell+1,cellClickEvent:{pageX:t.pageX,pageY:t.pageY,clientX:t.clientX,clientY:t.clientY,screenX:t.screenX,screenY:t.screenY,timestamp:Date.now()}})},onDoubleClick:function(t){setProps({recentlyCellDoubleClickColumn:item.dataIndex,recentlyCellDoubleClickRecord:Object(lodash__WEBPACK_IMPORTED_MODULE_31__.omitBy)(record,(function(t){return null==t?void 0:t.$$typeof})),nDoubleClicksCell:nDoubleClicksCell+1,cellDoubleClickEvent:{pageX:t.pageX,pageY:t.pageY,clientX:t.clientX,clientY:t.clientY,screenX:t.screenX,screenY:t.screenY,timestamp:Date.now()}})},onContextMenu:function(t){t.preventDefault(),setProps({recentlyContextMenuClickColumn:item.dataIndex,recentlyContextMenuClickRecord:Object(lodash__WEBPACK_IMPORTED_MODULE_31__.omitBy)(record,(function(t){return null==t?void 0:t.$$typeof})),nContextMenuClicksCell:nContextMenuClicksCell+1,cellContextMenuClickEvent:{pageX:t.pageX,pageY:t.pageY,clientX:t.clientX,clientY:t.clientY,screenX:t.screenX,screenY:t.screenY,timestamp:Date.now()}})}})}catch(t){console.error(t)}if(item.editable)try{returnValue=_objectSpread(_objectSpread({},returnValue),{},{record:record,editable:item.editable,dataIndex:item.dataIndex,title:item.title})}catch(t){console.error(t)}return returnValue}})}));var tempColumns=[];if(columns.some((function(t){return t.group}))){var _iterator3=_createForOfIteratorHelper(columns),_step3;try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var column=_step3.value;column.group?Object(lodash__WEBPACK_IMPORTED_MODULE_31__.isString)(column.group)?_insertNewColumnNode(column,[column.group],0,tempColumns):_insertNewColumnNode(column,column.group,0,tempColumns):tempColumns.push(column)}}catch(t){_iterator3.e(t)}finally{_iterator3.f()}}else tempColumns=_toConsumableArray(columns);return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_20__.a,{locale:_components_locales_react__WEBPACK_IMPORTED_MODULE_33__.b.get(locale),renderEmpty:emptyContent?function(){return emptyContent}:void 0},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_19__.a,_extends({},Object(ramda__WEBPACK_IMPORTED_MODULE_32__.a)((function(t,e){return e.startsWith("data-")||e.startsWith("aria-")}),others),{id:id,className:className,style:style,key:key,components:components,rowClassName:rowClassName?function(record,index){var _rowClassName=atLeastOneColumnEditable?"editable-row":"";return rowClassName.func?_rowClassName+=" ".concat(eval(rowClassName.func)(record,index)):_rowClassName+=" ".concat(rowClassName),_rowClassName.trimStart()}:atLeastOneColumnEditable?function(){return"editable-row"}:void 0,dataSource:data.filter((function(t){return!hiddenRowKeys.includes(t.key)})),columns:tempColumns,showHeader:showHeader,rowHoverable:rowHoverable,tableLayout:tableLayout,size:size,rowSelection:rowSelection,sticky:sticky,pagination:pagination&&_objectSpread(_objectSpread(_objectSpread({},pagination),{showTotal:function(t){return"".concat(pagination.showTotalPrefix," ").concat(t," ").concat(pagination.showTotalSuffix)}}),{},{position:pagination.position&&!Array.isArray(pagination.position)?[pagination.position]:pagination.position}),bordered:bordered,scroll:{x:maxWidth,y:maxHeight,scrollToFirstRowOnChange:scrollToFirstRowOnChange},onChange:onPageChange,onRow:enableHoverListen?function(t,e){return{onMouseEnter:function(e){setProps({recentlyMouseEnterRowKey:t.key,recentlyMouseEnterRow:Object(lodash__WEBPACK_IMPORTED_MODULE_31__.omitBy)(t,(function(t){return null==t?void 0:t.$$typeof}))})}}}:void 0,summary:summaryRowContents?function(){return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_19__.a.Summary,{fixed:summaryRowFixed},splitSummaryRowContents(summaryRowContents,columns.length,summaryRowBlankColumns).map((function(t,e){return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_19__.a.Summary.Row,{key:e},t.map((function(t,e){return t.empty?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_19__.a.Summary.Cell,{index:e}):react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_19__.a.Summary.Cell,{index:e,colSpan:t.colSpan,align:t.align},t.content)})))})))}:void 0,expandable:rowExpandedRowRender?{defaultExpandedRowKeys:defaultExpandedRowKeys,expandedRowKeys:expandedRowKeys||defaultExpandedRowKeys,expandedRowRender:function(t){return rowExpandedRowRender.get(t.key)},rowExpandable:function(t){return rowExpandedRowRender.has(t.key)},columnWidth:expandedRowWidth,expandRowByClick:expandRowByClick,onExpandedRowsChange:function(t){return setProps({expandedRowKeys:t})}}:{defaultExpandedRowKeys:defaultExpandedRowKeys,expandedRowKeys:expandedRowKeys||defaultExpandedRowKeys,columnWidth:expandedRowWidth,expandRowByClick:expandRowByClick,onExpandedRowsChange:function(t){return setProps({expandedRowKeys:t})}},virtual:virtual,title:title&&function(){return title},footer:footer&&function(){return footer},"data-dash-is-loading":Object(_components_utils__WEBPACK_IMPORTED_MODULE_34__.e)(),loading:loading,getPopupContainer:containerId?function(){return document.getElementById(containerId)?document.getElementById(containerId):document.body}:void 0,showSorterTooltip:showSorterTooltip&&showSorterTooltipTarget?{target:showSorterTooltipTarget}:showSorterTooltip})))};__webpack_exports__.default=react__WEBPACK_IMPORTED_MODULE_0___default.a.memo(AntdTable,(function(t,e){var n=Object.keys(e).filter((function(n){return!Object(lodash__WEBPACK_IMPORTED_MODULE_31__.isEqual)(t[n],e[n])}));return!!n.includes("recentlySelectValue")||(e.selectedRowsSyncWithData&&e.selectedRowKeys&&n.includes("data")&&e.setProps({selectedRows:e.data.filter((function(t){return e.selectedRowKeys.includes(t.key)})).map((function(t){return Object(lodash__WEBPACK_IMPORTED_MODULE_31__.omitBy)(t,(function(t){return null==t?void 0:t.$$typeof}))}))}),n.every((function(t){return preventUpdateProps.includes(t)})))})),AntdTable.defaultProps=_components_dataDisplay_AntdTable_react__WEBPACK_IMPORTED_MODULE_36__.b,AntdTable.propTypes=_components_dataDisplay_AntdTable_react__WEBPACK_IMPORTED_MODULE_36__.c},545:function(t,e,n){"use strict";var r=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)},i=function(t,e){return!!r(t)&&t.indexOf(e)>-1},o=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},a=function(t,e){return void 0===e&&(e=[]),o(t,(function(t){return!i(e,t)}))},s={}.toString,c=function(t,e){return s.call(t)==="[object "+e+"]"},l=function(t){return c(t,"Function")},u=function(t){return null==t},h=function(t){return Array.isArray?Array.isArray(t):c(t,"Array")},d=function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e};var f=function(t,e){if(t)if(h(t))for(var n=0,r=t.length;n<r&&!1!==e(t[n],n);n++);else if(d(t))for(var i in t)if(t.hasOwnProperty(i)&&!1===e(t[i],i))break},p=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return f(t,(function(n,r){l(t)&&"prototype"===r||e.push(r)})),e};var g=function(t,e){var n=p(e),r=n.length;if(u(t))return!r;for(var i=0;i<r;i+=1){var o=n[i];if(e[o]!==t[o]||!(o in t))return!1}return!0},v=function(t){return"object"==typeof t&&null!==t},y=function(t){if(!v(t)||!c(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 m=function(t,e){if(!h(t))return null;var n;if(l(e)&&(n=e),y(e)&&(n=function(t){return g(t,e)}),n)for(var r=0;r<t.length;r+=1)if(n(t[r]))return t[r];return null};var b=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},x=function(t,e){for(var n=null,r=0;r<t.length;r++){var i=t[r][e];if(!u(i)){n=h(i)?i[0]:i;break}}return n},O=function(t){if(!h(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e},j=function(t){if(h(t))return t.reduce((function(t,e){return Math.max(t,e)}),t[0])},w=function(t){if(h(t))return t.reduce((function(t,e){return Math.min(t,e)}),t[0])},C=function(t){var e=t.filter((function(t){return!isNaN(t)}));if(!e.length)return{min:0,max:0};if(h(t[0])){for(var n=[],r=0;r<t.length;r++)n=n.concat(t[r]);e=n}var i=j(e);return{min:w(e),max:i}},_=Array.prototype,M=(_.splice,_.indexOf,Array.prototype.splice),S=function(t,e){if(!r(t))return[];for(var n=t?e.length:0,i=n-1;n--;){var o=void 0,a=e[n];n!==i&&a===o||(o=a,M.call(t,a,1))}return t},E=function(t,e,n){if(!h(t)&&!y(t))return t;var r=n;return f(t,(function(t,n){r=e(r,t,n)})),r},k=function(t,e){var n=[];if(!r(t))return n;for(var i=-1,o=[],a=t.length;++i<a;){var s=t[i];e(s,i,t)&&(n.push(s),o.push(i))}return S(t,o),n},I=function(t){return c(t,"String")};var A=function(t,e){var n;if(l(e))n=function(t,n){return e(t)-e(n)};else{var r=[];I(e)?r.push(e):h(e)&&(r=e),n=function(t,e){for(var n=0;n<r.length;n+=1){var i=r[n];if(t[i]>e[i])return 1;if(t[i]<e[i])return-1}return 0}}return t.sort(n),t};function P(t,e){void 0===e&&(e=new Map);var n=[];if(Array.isArray(t))for(var r=0,i=t.length;r<i;r++){var o=t[r];e.has(o)||(n.push(o),e.set(o,!0))}return n}var T=function(t,e){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i][e];if(!u(o)){h(o)||(o=[o]);for(var a=0;a<o.length;a++){var s=o[a];r[s]||(n.push(s),r[s]=!0)}}}return n};function B(t){if(r(t))return t[0]}function L(t){if(r(t)){return t[t.length-1]}}var D=function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0},F=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n))return!0;return!1},R=Object.prototype.hasOwnProperty;var N=function(t,e){if(!e||!h(t))return{};for(var n,r={},i=l(e)?e:function(t){return t[e]},o=0;o<t.length;o++){var a=t[o];n=i(a),R.call(r,n)?r[n].push(a):r[n]=[a]}return r};function z(t,e){if(!e)return{0:t};if(!l(e)){var n=h(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 N(t,e)}var W=function(t,e){if(!e)return[t];var n=z(t,e),r=[];for(var i in n)r.push(n[i]);return r};var $=function(t,e,n){return t<e?e:t>n?n:t},H=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))},Y=function(t){return c(t,"Number")};Number.isInteger&&Number.isInteger;function V(t,e,n){return void 0===n&&(n=1e-5),Math.abs(t-e)<n}var G=function(t,e){if(h(t)){for(var n,r=-1/0,i=0;i<t.length;i++){var o=t[i],a=l(e)?e(o):o[e];a>r&&(n=o,r=a)}return n}},K=function(t,e){if(h(t)){for(var n,r=1/0,i=0;i<t.length;i++){var o=t[i],a=l(e)?e(o):o[e];a<r&&(n=o,r=a)}return n}},X=function(t,e){return(t%e+e)%e},U=(Math.PI,parseInt,Math.PI/180),q=function(t){return U*t},Z=f,Q=function(t,e){return t.hasOwnProperty(e)},J=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return f(t,(function(n,r){l(t)&&"prototype"===r||e.push(n)})),e},tt=function(t){return u(t)?"":t.toString()},et=function(t){return tt(t).toLowerCase()};var nt=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},rt=function(t){var e=tt(t);return e.charAt(0).toUpperCase()+e.substring(1)},it={}.toString,ot=function(t){return it.call(t).replace(/^\[object /,"").replace(/]$/,"")},at=function(t){return c(t,"Boolean")},st=function(t){return c(t,"Date")},ct=function(t){return null===t},lt=Object.prototype,ut=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||lt)},ht=function(t){return void 0===t},dt=function(t){return t instanceof Element||t instanceof HTMLDocument};function ft(t){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)})(t)}function pt(t){(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout)(t)}function gt(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function vt(t,e,n,r){return e&>(t,e),n&>(t,n),r&>(t,r),t}var yt=function(t){if("object"!=typeof t||null===t)return t;var e;if(h(t)){e=[];for(var n=0,r=t.length;n<r;n++)"object"==typeof t[n]&&null!=t[n]?e[n]=yt(t[n]):e[n]=t[n]}else for(var i in e={},t)"object"==typeof t[i]&&null!=t[i]?e[i]=yt(t[i]):e[i]=t[i];return e},mt=yt;var bt=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)}},xt=function(t,e){if(!l(t))throw new TypeError("Expected a function");var n=function(){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 Ot(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&&y(o)?(y(t[i])||(t[i]={}),n<r?Ot(t[i],o,n+1,r):t[i]=e[i]):h(o)?(t[i]=[],t[i]=t[i].concat(o)):void 0!==o&&(t[i]=o)}}var jt=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)Ot(t,e[r]);return t},wt=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},Ct=Object.prototype.hasOwnProperty;var _t=function(t){if(u(t))return!0;if(r(t))return!t.length;var e=ot(t);if("Map"===e||"Set"===e)return!t.size;if(ut(t))return!Object.keys(t).length;for(var n in t)if(Ct.call(t,n))return!1;return!0},Mt=function(t,e){if(t===e)return!0;if(!t||!e)return!1;if(I(t)||I(e))return!1;if(r(t)||r(e)){if(t.length!==e.length)return!1;for(var n=!0,i=0;i<t.length&&(n=Mt(t[i],e[i]));i++);return n}if(v(t)||v(e)){var o=Object.keys(t),a=Object.keys(e);if(o.length!==a.length)return!1;for(n=!0,i=0;i<o.length&&(n=Mt(t[o[i]],e[o[i]]));i++);return n}return!1},St=Mt,Et=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},kt=function(t){return t},It=function(t,e){void 0===e&&(e=kt);var n={};return d(t)&&!u(t)&&Object.keys(t).forEach((function(r){n[r]=e(t[r],r)})),n},At=function(t,e,n){for(var r=0,i=I(e)?e.split("."):e;t&&r<i.length;)t=t[i[r++]];return void 0===t||r<i.length?n:t},Pt=function(t,e,n){var r=t,i=I(e)?e.split("."):e;return i.forEach((function(t,e){e<i.length-1?(d(r[t])||(r[t]=Y(i[e+1])?[]:{}),r=r[t]):r[t]=n})),t},Tt=Object.prototype.hasOwnProperty,Bt=function(t,e){if(null===t||!y(t))return{};var n={};return f(e,(function(e){Tt.call(t,e)&&(n[e]=t[e])})),n},Lt=function(t,e){return E(t,(function(t,n,r){return e.includes(r)||(t[r]=n),t}),{})},Dt=function(t,e,n){var r,i,o,a,s=0;n||(n={});var c=function(){s=!1===n.leading?0:Date.now(),r=null,a=t.apply(i,o),r||(i=o=null)},l=function(){var l=Date.now();s||!1!==n.leading||(s=l);var u=e-(l-s);return i=this,o=arguments,u<=0||u>e?(r&&(clearTimeout(r),r=null),s=l,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(c,u)),a};return l.cancel=function(){clearTimeout(r),s=0,r=i=o=null},l},Ft=function(t){return r(t)?Array.prototype.slice.call(t):[]},Rt={},Nt=function(t){return Rt[t=t||"g"]?Rt[t]+=1:Rt[t]=1,t+Rt[t]},zt=function(){};function Wt(t){return u(t)?0:r(t)?t.length:Object.keys(t).length}var $t,Ht=n(25),Yt=xt((function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,i=e.fontWeight,o=e.fontStyle,a=e.fontVariant;return $t||($t=document.createElement("canvas").getContext("2d")),$t.font=[o,a,i,n+"px",r].join(" "),$t.measureText(I(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),Object(Ht.h)([t],J(e)).join("")})),Vt=function(t,e,n,r){void 0===r&&(r="...");var i,o,a=Yt(r,n),s=I(t)?t:tt(t),c=e,l=[];if(Yt(t,n)<=e)return t;for(;i=s.substr(0,16),!((o=Yt(i,n))+a>c&&o>c);)if(l.push(i),c-=o,!(s=s.substr(16)))return l.join("");for(;i=s.substr(0,1),!((o=Yt(i,n))+a>c);)if(l.push(i),c-=o,!(s=s.substr(1)))return l.join("");return""+l.join("")+r},Gt=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}();n.d(e,"f",(function(){return i})),n.d(e,"A",(function(){return i})),n.d(e,"i",(function(){return a})),n.d(e,"m",(function(){return m})),n.d(e,"n",(function(){return b})),n.d(e,"o",(function(){return x})),n.d(e,"q",(function(){return O})),n.d(e,"u",(function(){return C})),n.d(e,"ib",(function(){return E})),n.d(e,"jb",(function(){return k})),n.d(e,"ob",(function(){return A})),n.d(e,"ub",(function(){return P})),n.d(e,"yb",(function(){return T})),n.d(e,"z",(function(){return B})),n.d(e,"U",(function(){return L})),n.d(e,"l",(function(){return o})),n.d(e,"k",(function(){return D})),n.d(e,"nb",(function(){return F})),n.d(e,"v",(function(){return W})),n.d(e,"w",(function(){return N})),n.d(e,"x",(function(){return z})),n.d(e,"c",(function(){return $})),n.d(e,"p",(function(){return H})),n.d(e,"N",(function(){return V})),n.d(e,"Y",(function(){return j})),n.d(e,"Z",(function(){return G})),n.d(e,"bb",(function(){return w})),n.d(e,"cb",(function(){return K})),n.d(e,"eb",(function(){return X})),n.d(e,"sb",(function(){return q})),n.d(e,"r",(function(){return Z})),n.d(e,"y",(function(){return Q})),n.d(e,"T",(function(){return p})),n.d(e,"J",(function(){return g})),n.d(e,"xb",(function(){return J})),n.d(e,"V",(function(){return et})),n.d(e,"pb",(function(){return nt})),n.d(e,"wb",(function(){return rt})),n.d(e,"C",(function(){return h})),n.d(e,"D",(function(){return at})),n.d(e,"E",(function(){return st})),n.d(e,"I",(function(){return l})),n.d(e,"K",(function(){return u})),n.d(e,"L",(function(){return ct})),n.d(e,"M",(function(){return Y})),n.d(e,"O",(function(){return d})),n.d(e,"P",(function(){return y})),n.d(e,"Q",(function(){return I})),n.d(e,"R",(function(){return c})),n.d(e,"S",(function(){return ht})),n.d(e,"F",(function(){return dt})),n.d(e,"kb",(function(){return ft})),n.d(e,"d",(function(){return pt})),n.d(e,"e",(function(){return mt})),n.d(e,"g",(function(){return bt})),n.d(e,"ab",(function(){return xt})),n.d(e,"h",(function(){return jt})),n.d(e,"j",(function(){return f})),n.d(e,"B",(function(){return wt})),n.d(e,"G",(function(){return _t})),n.d(e,"H",(function(){return St})),n.d(e,"W",(function(){return Et})),n.d(e,"X",(function(){return It})),n.d(e,"db",(function(){return vt})),n.d(e,"b",(function(){return vt})),n.d(e,"s",(function(){return At})),n.d(e,"lb",(function(){return Pt})),n.d(e,"hb",(function(){return Bt})),n.d(e,"gb",(function(){return Lt})),n.d(e,"qb",(function(){return Dt})),n.d(e,"rb",(function(){return Ft})),n.d(e,"tb",(function(){return tt})),n.d(e,"vb",(function(){return Nt})),n.d(e,"fb",(function(){return zt})),n.d(e,"mb",(function(){return Wt})),n.d(e,"t",(function(){return Vt})),n.d(e,"a",(function(){return Gt}))},548:function(t,e,n){"use strict";var r={};n.r(r),n.d(r,"create",(function(){return o})),n.d(r,"fromMat4",(function(){return a})),n.d(r,"clone",(function(){return s})),n.d(r,"copy",(function(){return c})),n.d(r,"fromValues",(function(){return l})),n.d(r,"set",(function(){return u})),n.d(r,"identity",(function(){return h})),n.d(r,"transpose",(function(){return d})),n.d(r,"invert",(function(){return f})),n.d(r,"adjoint",(function(){return p})),n.d(r,"determinant",(function(){return g})),n.d(r,"multiply",(function(){return v})),n.d(r,"translate",(function(){return y})),n.d(r,"rotate",(function(){return m})),n.d(r,"scale",(function(){return b})),n.d(r,"fromTranslation",(function(){return x})),n.d(r,"fromRotation",(function(){return O})),n.d(r,"fromScaling",(function(){return j})),n.d(r,"fromMat2d",(function(){return w})),n.d(r,"fromQuat",(function(){return C})),n.d(r,"normalFromMat4",(function(){return _})),n.d(r,"projection",(function(){return M})),n.d(r,"str",(function(){return S})),n.d(r,"frob",(function(){return E})),n.d(r,"add",(function(){return k})),n.d(r,"subtract",(function(){return I})),n.d(r,"multiplyScalar",(function(){return A})),n.d(r,"multiplyScalarAndAdd",(function(){return P})),n.d(r,"exactEquals",(function(){return T})),n.d(r,"equals",(function(){return B})),n.d(r,"mul",(function(){return L})),n.d(r,"sub",(function(){return D}));var i=n(571);function o(){var t=new i.a(9);return i.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 a(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 s(t){var e=new i.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 c(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 l(t,e,n,r,o,a,s,c,l){var u=new i.a(9);return u[0]=t,u[1]=e,u[2]=n,u[3]=r,u[4]=o,u[5]=a,u[6]=s,u[7]=c,u[8]=l,u}function u(t,e,n,r,i,o,a,s,c,l){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=c,t[8]=l,t}function h(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 d(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 f(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],c=e[6],l=e[7],u=e[8],h=u*a-s*l,d=-u*o+s*c,f=l*o-a*c,p=n*h+r*d+i*f;return p?(p=1/p,t[0]=h*p,t[1]=(-u*r+i*l)*p,t[2]=(s*r-i*a)*p,t[3]=d*p,t[4]=(u*n-i*c)*p,t[5]=(-s*n+i*o)*p,t[6]=f*p,t[7]=(-l*n+r*c)*p,t[8]=(a*n-r*o)*p,t):null}function p(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],c=e[6],l=e[7],u=e[8];return t[0]=a*u-s*l,t[1]=i*l-r*u,t[2]=r*s-i*a,t[3]=s*c-o*u,t[4]=n*u-i*c,t[5]=i*o-n*s,t[6]=o*l-a*c,t[7]=r*c-n*l,t[8]=n*a-r*o,t}function g(t){var e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],c=t[7],l=t[8];return e*(l*o-a*c)+n*(-l*i+a*s)+r*(c*i-o*s)}function v(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],c=e[5],l=e[6],u=e[7],h=e[8],d=n[0],f=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]=d*r+f*a+p*l,t[1]=d*i+f*s+p*u,t[2]=d*o+f*c+p*h,t[3]=g*r+v*a+y*l,t[4]=g*i+v*s+y*u,t[5]=g*o+v*c+y*h,t[6]=m*r+b*a+x*l,t[7]=m*i+b*s+x*u,t[8]=m*o+b*c+x*h,t}function y(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],c=e[5],l=e[6],u=e[7],h=e[8],d=n[0],f=n[1];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=c,t[6]=d*r+f*a+l,t[7]=d*i+f*s+u,t[8]=d*o+f*c+h,t}function m(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],c=e[5],l=e[6],u=e[7],h=e[8],d=Math.sin(n),f=Math.cos(n);return t[0]=f*r+d*a,t[1]=f*i+d*s,t[2]=f*o+d*c,t[3]=f*a-d*r,t[4]=f*s-d*i,t[5]=f*c-d*o,t[6]=l,t[7]=u,t[8]=h,t}function b(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 x(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 O(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 j(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 w(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 C(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n+n,s=r+r,c=i+i,l=n*a,u=r*a,h=r*s,d=i*a,f=i*s,p=i*c,g=o*a,v=o*s,y=o*c;return t[0]=1-h-p,t[3]=u-y,t[6]=d+v,t[1]=u+y,t[4]=1-l-p,t[7]=f-g,t[2]=d-v,t[5]=f+g,t[8]=1-l-h,t}function _(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],c=e[6],l=e[7],u=e[8],h=e[9],d=e[10],f=e[11],p=e[12],g=e[13],v=e[14],y=e[15],m=n*s-r*a,b=n*c-i*a,x=n*l-o*a,O=r*c-i*s,j=r*l-o*s,w=i*l-o*c,C=u*g-h*p,_=u*v-d*p,M=u*y-f*p,S=h*v-d*g,E=h*y-f*g,k=d*y-f*v,I=m*k-b*E+x*S+O*M-j*_+w*C;return I?(I=1/I,t[0]=(s*k-c*E+l*S)*I,t[1]=(c*M-a*k-l*_)*I,t[2]=(a*E-s*M+l*C)*I,t[3]=(i*E-r*k-o*S)*I,t[4]=(n*k-i*M+o*_)*I,t[5]=(r*M-n*E-o*C)*I,t[6]=(g*w-v*j+y*O)*I,t[7]=(v*x-p*w-y*b)*I,t[8]=(p*j-g*x+y*m)*I,t):null}function M(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 S(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"}function E(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])}function k(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 I(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 A(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 P(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 T(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 B(t,e){var n=t[0],r=t[1],o=t[2],a=t[3],s=t[4],c=t[5],l=t[6],u=t[7],h=t[8],d=e[0],f=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-d)<=i.b*Math.max(1,Math.abs(n),Math.abs(d))&&Math.abs(r-f)<=i.b*Math.max(1,Math.abs(r),Math.abs(f))&&Math.abs(o-p)<=i.b*Math.max(1,Math.abs(o),Math.abs(p))&&Math.abs(a-g)<=i.b*Math.max(1,Math.abs(a),Math.abs(g))&&Math.abs(s-v)<=i.b*Math.max(1,Math.abs(s),Math.abs(v))&&Math.abs(c-y)<=i.b*Math.max(1,Math.abs(c),Math.abs(y))&&Math.abs(l-m)<=i.b*Math.max(1,Math.abs(l),Math.abs(m))&&Math.abs(u-b)<=i.b*Math.max(1,Math.abs(u),Math.abs(b))&&Math.abs(h-x)<=i.b*Math.max(1,Math.abs(h),Math.abs(x))}var L=v,D=I,F=n(608),R=n(609);n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return F})),n.d(e,"c",(function(){return R}))},549:function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return m}));var r=n(605);n.d(e,"PathUtil",(function(){return r}));var i=n(637);for(var o in i)["Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","registerBBox","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","registerEasing","version","default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var a=n(638);for(var o in a)["Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","registerBBox","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","registerEasing","version","default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);var s=n(606);n.d(e,"Event",(function(){return s.a}));var c=n(607);n.d(e,"Base",(function(){return c.a}));var l=n(655);n.d(e,"AbstractCanvas",(function(){return l.a}));var u=n(642);n.d(e,"AbstractGroup",(function(){return u.a}));var h=n(643);n.d(e,"AbstractShape",(function(){return h.a}));var d=n(618);n.d(e,"getBBoxMethod",(function(){return d.a})),n.d(e,"registerBBox",(function(){return d.b}));var f=n(587);n.d(e,"getTextHeight",(function(){return f.b})),n.d(e,"assembleFont",(function(){return f.a}));var p=n(562);n.d(e,"isAllowCapture",(function(){return p.b}));var g=n(572);n.d(e,"multiplyVec2",(function(){return g.c})),n.d(e,"invert",(function(){return g.a}));var v=n(610);n.d(e,"getOffScreenContext",(function(){return v.a}));var y=n(619);n.d(e,"registerEasing",(function(){return y.b}));var m="0.5.11"},550:function(t,e,n){"use strict";var r=n(25),i=n(545),o=n(613),a=n(560),s=n(552),c=n(590),l=["visible","tip","delegateObject"],u=["container","group","shapesMap","isRegister","isUpdating","destroyed"],h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},e.prototype.remove=function(){this.clear(),this.get("group").remove()},e.prototype.clear=function(){this.get("group").clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},e.prototype.getChildComponentById=function(t){var e=this.getElementById(t);return e&&e.get("component")},e.prototype.getElementById=function(t){return this.get("shapesMap")[t]},e.prototype.getElementByLocalId=function(t){var e=this.getElementId(t);return this.getElementById(e)},e.prototype.getElementsByName=function(t){var e=[];return Object(i.j)(this.get("shapesMap"),(function(n){n.get("name")===t&&e.push(n)})),e},e.prototype.getContainer=function(){return this.get("container")},e.prototype.updateInner=function(t){this.offScreenRender(),this.get("updateAutoRender")&&this.render()},e.prototype.render=function(){var t=this.get("offScreenGroup");t||(t=this.offScreenRender());var e=this.get("group");this.updateElements(t,e),this.deleteElements(),this.applyOffset(),this.get("eventInitted")||(this.initEvent(),this.set("eventInitted",!0)),this.set("isInit",!1)},e.prototype.show=function(){this.get("group").show(),this.set("visible",!0)},e.prototype.hide=function(){this.get("group").hide(),this.set("visible",!1)},e.prototype.setCapture=function(t){this.get("group").set("capture",t),this.set("capture",t)},e.prototype.destroy=function(){this.removeEvent(),this.remove(),t.prototype.destroy.call(this)},e.prototype.getBBox=function(){return this.get("group").getCanvasBBox()},e.prototype.getLayoutBBox=function(){var t=this.get("group"),e=this.getInnerLayoutBBox(),n=t.getTotalMatrix();return n&&(e=Object(a.a)(n,e)),e},e.prototype.on=function(t,e,n){return this.get("group").on(t,e,n),this},e.prototype.off=function(t,e){var n=this.get("group");return n&&n.off(t,e),this},e.prototype.emit=function(t,e){this.get("group").emit(t,e)},e.prototype.init=function(){t.prototype.init.call(this),this.get("group")||this.initGroup(),this.offScreenRender()},e.prototype.getInnerLayoutBBox=function(){return this.get("offScreenBBox")||this.get("group").getBBox()},e.prototype.delegateEmit=function(t,e){var n=this.get("group");e.target=n,n.emit(t,e),Object(o.a)(n,t,e)},e.prototype.createOffScreenGroup=function(){return new(this.get("group").getGroupBase())({delegateObject:this.getDelegateObject()})},e.prototype.applyOffset=function(){var t=this.get("offsetX"),e=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t,y:e})},e.prototype.initGroup=function(){var t=this.get("container");this.set("group",t.addGroup({id:this.get("id"),name:this.get("name"),capture:this.get("capture"),visible:this.get("visible"),isComponent:!0,component:this,delegateObject:this.getDelegateObject()}))},e.prototype.offScreenRender=function(){this.clearOffScreenCache();var t=this.createOffScreenGroup();return this.renderInner(t),this.set("offScreenGroup",t),this.set("offScreenBBox",Object(s.d)(t)),t},e.prototype.addGroup=function(t,e){this.appendDelegateObject(t,e);var n=t.addGroup(e);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addShape=function(t,e){this.appendDelegateObject(t,e);var n=t.addShape(e);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addComponent=function(t,e){var n=e.id,i=e.component,o=Object(r.f)(e,["id","component"]),a=new i(Object(r.a)(Object(r.a)({},o),{id:n,container:t,updateAutoRender:this.get("updateAutoRender")}));return a.init(),a.render(),this.get("isRegister")&&this.registerElement(a.get("group")),a},e.prototype.initEvent=function(){},e.prototype.removeEvent=function(){this.get("group").off()},e.prototype.getElementId=function(t){return this.get("id")+"-"+this.get("name")+"-"+t},e.prototype.registerElement=function(t){var e=t.get("id");this.get("shapesMap")[e]=t},e.prototype.unregisterElement=function(t){var e=t.get("id");delete this.get("shapesMap")[e]},e.prototype.moveElementTo=function(t,e){var n=Object(a.f)(e);t.attr("matrix",n)},e.prototype.addAnimation=function(t,e,n){var r=e.attr("opacity");Object(i.K)(r)&&(r=1),e.attr("opacity",0),e.animate({opacity:r},n)},e.prototype.removeAnimation=function(t,e,n){e.animate({opacity:0},n)},e.prototype.updateAnimation=function(t,e,n,r){e.animate(n,r)},e.prototype.updateElements=function(t,e){var n,r=this,o=this.get("animate"),a=this.get("animateOption"),c=t.getChildren().slice(0);Object(i.j)(c,(function(t){var c=t.get("id"),h=r.getElementById(c),d=t.get("name");if(h)if(t.get("isComponent")){var f=t.get("component"),p=h.get("component"),g=Object(i.hb)(f.cfg,Object(i.i)(Object(i.T)(f.cfg),u));p.update(g),h.set("update_status","update")}else{var v=r.getReplaceAttrs(h,t);o&&a.update?r.updateAnimation(d,h,v,a.update):h.attr(v),t.isGroup()&&r.updateElements(t,h),Object(i.j)(l,(function(e){h.set(e,t.get(e))})),Object(s.m)(h,t),n=h,h.set("update_status","update")}else{e.add(t);var y=e.getChildren();if(y.splice(y.length-1,1),n){var m=y.indexOf(n);y.splice(m+1,0,t)}else y.unshift(t);if(r.registerElement(t),t.set("update_status","add"),t.get("isComponent"))(f=t.get("component")).set("container",e);else t.isGroup()&&r.registerNewGroup(t);if(n=t,o){var b=r.get("isInit")?a.appear:a.enter;b&&r.addAnimation(d,t,b)}}}))},e.prototype.clearUpdateStatus=function(t){var e=t.getChildren();Object(i.j)(e,(function(t){t.set("update_status",null)}))},e.prototype.clearOffScreenCache=function(){var t=this.get("offScreenGroup");t&&t.destroy(),this.set("offScreenGroup",null),this.set("offScreenBBox",null)},e.prototype.getDelegateObject=function(){var t;return(t={})[this.get("name")]=this,t.component=this,t},e.prototype.appendDelegateObject=function(t,e){var n=t.get("delegateObject");e.delegateObject||(e.delegateObject={}),Object(i.db)(e.delegateObject,n)},e.prototype.getReplaceAttrs=function(t,e){var n=t.attr(),r=e.attr();return Object(i.j)(n,(function(t,e){void 0===r[e]&&(r[e]=void 0)})),r},e.prototype.registerNewGroup=function(t){var e=this,n=t.getChildren();Object(i.j)(n,(function(t){e.registerElement(t),t.set("update_status","add"),t.isGroup()&&e.registerNewGroup(t)}))},e.prototype.deleteElements=function(){var t=this,e=this.get("shapesMap"),n=[];Object(i.j)(e,(function(t,e){!t.get("update_status")||t.destroyed?n.push([e,t]):t.set("update_status",null)}));var r=this.get("animate"),o=this.get("animateOption");Object(i.j)(n,(function(n){var a=n[0],s=n[1];if(!s.destroyed){var c=s.get("name");if(r&&o.leave){var l=Object(i.db)({callback:function(){t.removeElement(s)}},o.leave);t.removeAnimation(c,s,l)}else t.removeElement(s)}delete e[a]}))},e.prototype.removeElement=function(t){if(t.get("isGroup")){var e=t.get("component");e&&e.destroy()}t.remove()},e}(c.a);e.a=h},551:function(t,e,n){"use strict";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 c})),n.d(r,"direction",(function(){return l})),n.d(r,"angleTo",(function(){return u})),n.d(r,"vertical",(function(){return h}));var i=n(548);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 c(t,e){for(var n,r,c,l=t?[].concat(t):[1,0,0,0,1,0,0,0,1],u=0,h=e.length;u<h;u++){var d=e[u];switch(d[0]){case"t":o(l,l,[d[1],d[2]]);break;case"s":s(l,l,[d[1],d[2]]);break;case"r":a(l,l,d[1]);break;case"m":n=l,r=l,c=d[1],i.a.multiply(n,c,r)}}return l}function l(t,e){return t[0]*e[1]-e[0]*t[1]}function u(t,e,n){var r=i.b.angle(t,e),o=l(t,e)>=0;return n?o?2*Math.PI-r:r:o?r:2*Math.PI-r}function h(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}n.d(e,"b",(function(){return i.a})),n.d(e,"c",(function(){return i.b})),n.d(e,"d",(function(){return i.c})),n.d(e,"a",(function(){return r}))},552:function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"h",(function(){return a})),n.d(e,"k",(function(){return s})),n.d(e,"j",(function(){return c})),n.d(e,"b",(function(){return l})),n.d(e,"g",(function(){return u})),n.d(e,"e",(function(){return h})),n.d(e,"i",(function(){return d})),n.d(e,"d",(function(){return f})),n.d(e,"m",(function(){return p})),n.d(e,"l",(function(){return g})),n.d(e,"f",(function(){return v}));var r=n(545);function i(t){var e=0,n=0,i=0,o=0;return Object(r.M)(t)?e=n=i=o=t:Object(r.C)(t)&&(e=t[0],i=Object(r.K)(t[1])?t[0]:t[1],o=Object(r.K)(t[2])?t[0]:t[2],n=Object(r.K)(t[3])?i:t[3]),[e,i,o,n]}function o(t){for(var e=t.childNodes,n=e.length-1;n>=0;n--)t.removeChild(e[n])}function a(t,e){return!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))}function s(t){var e=t.start,n=t.end,r=Math.min(e.x,n.x),i=Math.min(e.y,n.y),o=Math.max(e.x,n.x),a=Math.max(e.y,n.y);return{x:r,y:i,minX:r,minY:i,maxX:o,maxY:a,width:o-r,height:a-i}}function c(t){var e=t.map((function(t){return t.x})),n=t.map((function(t){return t.y})),r=Math.min.apply(Math,e),i=Math.min.apply(Math,n),o=Math.max.apply(Math,e),a=Math.max.apply(Math,n);return{x:r,y:i,minX:r,minY:i,maxX:o,maxY:a,width:o-r,height:a-i}}function l(t,e,n,r){var i=t+n,o=e+r;return{x:t,y:e,width:n,height:r,minX:t,minY:e,maxX:isNaN(i)?0:i,maxY:isNaN(o)?0:o}}function u(t,e,n){return(1-n)*t+e*n}function h(t,e,n){return{x:t.x+Math.cos(n)*e,y:t.y+Math.sin(n)*e}}var d=function(t,e,n){return void 0===n&&(n=Math.pow(Number.EPSILON,.5)),[t,e].includes(1/0)?Math.abs(t)===Math.abs(e):Math.abs(t-e)<n};function f(t){var e,n,i,o,a,s=t.getClip(),c=s&&s.getBBox();if(t.isGroup()){var u=1/0,h=-1/0,d=1/0,p=-1/0,g=t.getChildren();g.length>0?Object(r.j)(g,(function(t){if(t.get("visible")){if(t.isGroup()&&0===t.get("children").length)return!0;var e=f(t),n=t.applyToMatrix([e.minX,e.minY,1]),r=t.applyToMatrix([e.minX,e.maxY,1]),i=t.applyToMatrix([e.maxX,e.minY,1]),o=t.applyToMatrix([e.maxX,e.maxY,1]),a=Math.min(n[0],r[0],i[0],o[0]),s=Math.max(n[0],r[0],i[0],o[0]),c=Math.min(n[1],r[1],i[1],o[1]),l=Math.max(n[1],r[1],i[1],o[1]);a<u&&(u=a),s>h&&(h=s),c<d&&(d=c),l>p&&(p=l)}})):(u=0,h=0,d=0,p=0),e=l(u,d,h-u,p-d)}else e=t.getBBox();return c?(n=e,i=c,o=Math.max(n.minX,i.minX),a=Math.max(n.minY,i.minY),l(o,a,Math.min(n.maxX,i.maxX)-o,Math.min(n.maxY,i.maxY)-a)):e}function p(t,e){if(t.getClip()||e.getClip()){var n=e.getClip();if(n){var r={type:n.get("type"),attrs:n.attr()};t.setClip(r)}else t.setClip(null)}}function g(t){return t+"px"}function v(t,e,n,r){var i,o,a,s,c=r/(i=t,a=(o=e).x-i.x,s=o.y-i.y,Math.sqrt(a*a+s*s)),l=0;return"start"===n?l=0-c:"end"===n&&(l=1+c),{x:u(t.x,e.x,l),y:u(t.y,e.y,l)}}},553: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 c})),n.d(e,"j",(function(){return l}));var r=n(545);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 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 l(t,e){return t[0]===e[0]&&t[1]===e[1]}n.d(e,"i",(function(){return r.K})),n.d(e,"k",(function(){return r.Q})),n.d(e,"h",(function(){return r.I})),n.d(e,"g",(function(){return r.C})),n.d(e,"c",(function(){return r.j})),n.d(e,"o",(function(){return r.sb})),n.d(e,"m",(function(){return r.eb})),n.d(e,"n",(function(){return r.kb})),n.d(e,"a",(function(){return r.d}))},554: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"}},555:function(t,e,n){"use strict";var r=n(657);n.d(e,"Annotation",(function(){return r}));var i=n(658);n.d(e,"Axis",(function(){return i}));var o=n(661);n.d(e,"Crosshair",(function(){return o}));var a=n(663);n.d(e,"Grid",(function(){return a}));var s=n(664);n.d(e,"Legend",(function(){return s}));var c=n(665);n.d(e,"Tooltip",(function(){return c}));n(590),n(550),n(575);var l=n(654);n.d(e,"Slider",(function(){return l.a}));var u=n(668);n.d(e,"Scrollbar",(function(){return u.a}));n(645),n(646);var h=n(613);n.d(e,"propagationDelegate",(function(){return h.a}));var d=n(591);n.d(e,"TOOLTIP_CSS_CONST",(function(){return d}))},556:function(t,e,n){"use strict";e.a={fontFamily:'\n BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue",\n Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",\n SimSun, "sans-serif"',textColor:"#2C3542",activeTextColor:"#333333",uncheckedColor:"#D8D8D8",lineColor:"#416180",regionColor:"#CCD7EB",verticalAxisRotate:-Math.PI/4,horizontalAxisRotate:Math.PI/4,descriptionIconStroke:"#fff",descriptionIconFill:"rgba(58, 73, 101, .25)"}},557:function(t,e,n){"use strict";var r={};n.r(r),n.d(r,"distance",(function(){return o})),n.d(r,"isNumberEqual",(function(){return a})),n.d(r,"getBBoxByArray",(function(){return s})),n.d(r,"getBBoxRange",(function(){return c})),n.d(r,"piMod",(function(){return l}));var i=n(545);function o(t,e,n,r){var i=t-n,o=e-r;return Math.sqrt(i*i+o*o)}function a(t,e){return Math.abs(t-e)<.001}function s(t,e){var n=Object(i.bb)(t),r=Object(i.bb)(e);return{x:n,y:r,width:Object(i.Y)(t)-n,height:Object(i.Y)(e)-r}}function c(t,e,n,r){return{minX:Object(i.bb)([t,n]),maxX:Object(i.Y)([t,n]),minY:Object(i.bb)([e,r]),maxY:Object(i.Y)([e,r])}}function l(t){return(t+2*Math.PI)%(2*Math.PI)}var u=n(608),h={box:function(t,e,n,r){return s([t,n],[e,r])},length:function(t,e,n,r){return o(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,a){var s=(n-t)*(i-t)+(r-e)*(a-e);return s<0?o(t,e,i,a):s>(n-t)*(n-t)+(r-e)*(r-e)?o(n,r,i,a):this.pointToLine(t,e,n,r,i,a)},pointToLine:function(t,e,n,r,i,o){var a=[n-t,r-e];if(u.exactEquals(a,[0,0]))return Math.sqrt((i-t)*(i-t)+(o-e)*(o-e));var s=[-a[1],a[0]];u.normalize(s,s);var c=[i-t,o-e];return Math.abs(u.dot(c,s))},tangentAngle:function(t,e,n,r){return Math.atan2(r-e,n-t)}};function d(t,e,n,r,i,a){var s,c=1/0,l=[n,r],u=20;a&&a>200&&(u=a/10);for(var h=1/u,d=h/10,f=0;f<=u;f++){var p=f*h,g=[i.apply(null,t.concat([p])),i.apply(null,e.concat([p]))];(b=o(l[0],l[1],g[0],g[1]))<c&&(s=p,c=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]}}c=1/0;for(f=0;f<32&&!(d<1e-4);f++){var y=s-d,m=s+d,b=(g=[i.apply(null,t.concat([y])),i.apply(null,e.concat([y]))],o(l[0],l[1],g[0],g[1]));if(y>=0&&b<c)s=y,c=b;else{var x=[i.apply(null,t.concat([m])),i.apply(null,e.concat([m]))],O=o(l[0],l[1],x[0],x[1]);m<=1&&O<c?(s=m,c=O):d*=.5}}return{x:i.apply(null,t.concat([s])),y:i.apply(null,e.concat([s]))}}function f(t,e,n,r){var i=1-r;return i*i*t+2*r*i*e+r*r*n}function p(t,e,n){var r=t+n-2*e;if(a(r,0))return[.5];var i=(t-e)/r;return i<=1&&i>=0?[i]:[]}function g(t,e,n,r){return 2*(1-r)*(e-t)+2*r*(n-e)}function v(t,e,n,r,i,o,a){var s=f(t,n,i,a),c=f(e,r,o,a),l=h.pointAt(t,e,n,r,a),u=h.pointAt(n,r,i,o,a);return[[t,e,l.x,l.y,s,c],[s,c,u.x,u.y,i,o]]}var y={box:function(t,e,n,r,i,o){var a=p(t,n,i)[0],c=p(e,r,o)[0],l=[t,i],u=[e,o];return void 0!==a&&l.push(f(t,n,i,a)),void 0!==c&&u.push(f(e,r,o,c)),s(l,u)},length:function(t,e,n,r,i,a){return function t(e,n,r,i,a,s,c){if(0===c)return(o(e,n,r,i)+o(r,i,a,s)+o(e,n,a,s))/2;var l=v(e,n,r,i,a,s,.5),u=l[0],h=l[1];return u.push(c-1),h.push(c-1),t.apply(null,u)+t.apply(null,h)}(t,e,n,r,i,a,3)},nearestPoint:function(t,e,n,r,i,o,a,s){return d([t,n,i],[e,r,o],a,s,f)},pointDistance:function(t,e,n,r,i,a,s,c){var l=this.nearestPoint(t,e,n,r,i,a,s,c);return o(l.x,l.y,s,c)},interpolationAt:f,pointAt:function(t,e,n,r,i,o,a){return{x:f(t,n,i,a),y:f(e,r,o,a)}},divide:function(t,e,n,r,i,o,a){return v(t,e,n,r,i,o,a)},tangentAngle:function(t,e,n,r,i,o,a){var s=g(t,n,i,a),c=g(e,r,o,a);return l(Math.atan2(c,s))}};function m(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 b(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 x(t,e,n,r){var i,o,s,c=-3*t+9*e-9*n+3*r,l=6*t-12*e+6*n,u=3*e-3*t,h=[];if(a(c,0))a(l,0)||(i=-u/l)>=0&&i<=1&&h.push(i);else{var d=l*l-4*c*u;a(d,0)?h.push(-l/(2*c)):d>0&&(o=(-l-(s=Math.sqrt(d)))/(2*c),(i=(-l+s)/(2*c))>=0&&i<=1&&h.push(i),o>=0&&o<=1&&h.push(o))}return h}function O(t,e,n,r,i,o,a,s,c){var l=m(t,n,i,a,c),u=m(e,r,o,s,c),d=h.pointAt(t,e,n,r,c),f=h.pointAt(n,r,i,o,c),p=h.pointAt(i,o,a,s,c),g=h.pointAt(d.x,d.y,f.x,f.y,c),v=h.pointAt(f.x,f.y,p.x,p.y,c);return[[t,e,d.x,d.y,g.x,g.y,l,u],[l,u,v.x,v.y,p.x,p.y,a,s]]}function j(t,e,n,r,i,a,s,c,l){if(0===l)return function(t,e){for(var n=0,r=t.length,i=0;i<r;i++){n+=o(t[i],e[i],t[(i+1)%r],e[(i+1)%r])}return n/2}([t,n,i,s],[e,r,a,c]);var u=O(t,e,n,r,i,a,s,c,.5),h=u[0],d=u[1];return h.push(l-1),d.push(l-1),j.apply(null,h)+j.apply(null,d)}var w={extrema:x,box:function(t,e,n,r,i,o,a,c){for(var l=[t,a],u=[e,c],h=x(t,n,i,a),d=x(e,r,o,c),f=0;f<h.length;f++)l.push(m(t,n,i,a,h[f]));for(f=0;f<d.length;f++)u.push(m(e,r,o,c,d[f]));return s(l,u)},length:function(t,e,n,r,i,o,a,s){return j(t,e,n,r,i,o,a,s,3)},nearestPoint:function(t,e,n,r,i,o,a,s,c,l,u){return d([t,n,i,a],[e,r,o,s],c,l,m,u)},pointDistance:function(t,e,n,r,i,a,s,c,l,u,h){var d=this.nearestPoint(t,e,n,r,i,a,s,c,l,u,h);return o(d.x,d.y,l,u)},interpolationAt:m,pointAt:function(t,e,n,r,i,o,a,s,c){return{x:m(t,n,i,a,c),y:m(e,r,o,s,c)}},divide:function(t,e,n,r,i,o,a,s,c){return O(t,e,n,r,i,o,a,s,c)},tangentAngle:function(t,e,n,r,i,o,a,s,c){var u=b(t,n,i,a,c),h=b(e,r,o,s,c);return l(Math.atan2(h,u))}};function C(t,e){var n=Math.abs(t);return e>0?n:-1*n}var _=function(t,e,n,r,i,o){var a=n,s=r;if(0===a||0===s)return{x:t,y:e};for(var c,l,u=i-t,h=o-e,d=Math.abs(u),f=Math.abs(h),p=a*a,g=s*s,v=Math.PI/4,y=0;y<4;y++){c=a*Math.cos(v),l=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=c-m,O=l-b,j=d-m,w=f-b,_=Math.hypot(O,x),M=Math.hypot(w,j);v+=_*Math.asin((x*w-O*j)/(_*M))/Math.sqrt(p+g-c*c-l*l),v=Math.min(Math.PI/2,Math.max(0,v))}return{x:t+C(c,u),y:e+C(l,h)}};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 S(t,e,n,r,i,o){return n*Math.sin(i)*Math.cos(o)+r*Math.cos(i)*Math.sin(o)+e}function E(t,e,n){return{x:t*Math.cos(n),y:e*Math.sin(n)}}function k(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),c=1/0,l=-1/0,u=[o,a],h=2*-Math.PI;h<=2*Math.PI;h+=Math.PI){var d=s+h;o<a?o<d&&d<a&&u.push(d):a<d&&d<o&&u.push(d)}for(h=0;h<u.length;h++){var f=M(t,0,n,r,i,u[h]);f<c&&(c=f),f>l&&(l=f)}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(h=2*-Math.PI;h<=2*Math.PI;h+=Math.PI){var m=p+h;o<a?o<m&&m<a&&y.push(m):a<m&&m<o&&y.push(m)}for(h=0;h<y.length;h++){var b=S(0,e,n,r,i,y[h]);b<g&&(g=b),b>v&&(v=b)}return{x:c,y:g,width:l-c,height:v-g}},length:function(t,e,n,r,i,o,a){},nearestPoint:function(t,e,n,r,i,o,a,s,c){var l=k(s-t,c-e,-i),u=l[0],h=l[1],d=_(0,0,n,r,u,h),f=function(t,e,n,r){return(Math.atan2(r*t,n*e)+2*Math.PI)%(2*Math.PI)}(n,r,d.x,d.y);f<o?d=E(n,r,o):f>a&&(d=E(n,r,a));var p=k(d.x,d.y,i);return{x:p[0]+t,y:p[1]+e}},pointDistance:function(t,e,n,r,i,a,s,c,l){var u=this.nearestPoint(t,e,n,r,c,l);return o(u.x,u.y,c,l)},pointAt:function(t,e,n,r,i,o,a,s){var c=(a-o)*s+o;return{x:M(t,0,n,r,i,c),y:S(0,e,n,r,i,c)}},tangentAngle:function(t,e,n,r,i,o,a,s){var c=(a-o)*s+o,u=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,c),h=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,c);return l(Math.atan2(h,u))}};function A(t){for(var e=0,n=[],r=0;r<t.length-1;r++){var i=t[r],a=t[r+1],s=o(i[0],i[1],a[0],a[1]),c={from:i,to:a,length:s};n.push(c),e+=s}return{segments:n,totalLength:e}}function P(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+=o(r[0],r[1],i[0],i[1])}return e}function T(t,e){if(e>1||e<0||t.length<2)return null;var n=A(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 c=r[s],l=c.from,u=c.to,d=c.length/i;if(e>=o&&e<=o+d){var f=(e-o)/d;a=h.pointAt(l[0],l[1],u[0],u[1],f);break}o+=d}return a}function B(t,e){if(e>1||e<0||t.length<2)return 0;for(var n=A(t),r=n.segments,i=n.totalLength,o=0,a=0,s=0;s<r.length;s++){var c=r[s],l=c.from,u=c.to,h=c.length/i;if(e>=o&&e<=o+h){a=Math.atan2(u[1]-l[1],u[0]-l[0]);break}o+=h}return a}function L(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 D={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 s(e,n)},length:function(t){return P(t)},pointAt:function(t,e){return T(t,e)},pointDistance:function(t,e,n){return L(t,e,n)},tangentAngle:function(t,e){return B(t,e)}};n.d(e,"e",(function(){return y})),n.d(e,"b",(function(){return w})),n.d(e,"a",(function(){return I})),n.d(e,"c",(function(){return h})),n.d(e,"d",(function(){return D})),n.d(e,"f",(function(){return r}))},559: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 c}));var r=n(545),i=n(554);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.rb)(n.children).sort(e),o=document.createDocumentFragment();i.forEach((function(t){o.appendChild(t)})),n.appendChild(o)}function c(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)}},560:function(t,e,n){"use strict";n.d(e,"e",(function(){return o})),n.d(e,"f",(function(){return a})),n.d(e,"d",(function(){return s})),n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return h}));var r=n(551),i=[1,0,0,0,1,0,0,0,1];function o(t,e,n){return void 0===n&&(n=i),e?r.a.transform(n,[["t",-t.x,-t.y],["r",e],["t",t.x,t.y]]):null}function a(t,e){return t.x||t.y?r.a.transform(e||i,[["t",t.x,t.y]]):null}function s(t){var e=[0,0,0];return r.d.transformMat3(e,[1,0,0],t),Math.atan2(e[1],e[0])}function c(t,e){var n=[0,0];return r.c.transformMat3(n,e,t),n}function l(t,e){var n=c(t,[e.minX,e.minY]),r=c(t,[e.maxX,e.minY]),i=c(t,[e.minX,e.maxY]),o=c(t,[e.maxX,e.maxY]),a=Math.min(n[0],r[0],i[0],o[0]),s=Math.max(n[0],r[0],i[0],o[0]),l=Math.min(n[1],r[1],i[1],o[1]),u=Math.max(n[1],r[1],i[1],o[1]);return{x:a,y:l,minX:a,minY:l,maxX:s,maxY:u,width:s-a,height:u-l}}function u(t,e,n,r){if(e){var i=o({x:n,y:r},e,t.getMatrix());t.setMatrix(i)}}function h(t,e,n){var r=a({x:e,y:n});t.attr("matrix",r)}},561:function(t,e,n){"use strict";var r=n(650),i="object"==typeof self&&self&&self.Object===Object&&self,o=r.a||i||Function("return this")();e.a=o},562: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(545);function i(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}n.d(e,"e",(function(){return r.K})),n.d(e,"d",(function(){return r.I})),n.d(e,"h",(function(){return r.Q})),n.d(e,"f",(function(){return r.O})),n.d(e,"i",(function(){return r.db})),n.d(e,"a",(function(){return r.j})),n.d(e,"k",(function(){return r.wb}));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}},563:function(t,e,n){"use strict";var r=n(545),i=n(612),o=function(){function t(t){var e=t.xField,n=t.yField,r=t.adjustNames,i=void 0===r?["x","y"]:r,o=t.dimValuesMap;this.adjustNames=i,this.xField=e,this.yField=n,this.dimValuesMap=o}return t.prototype.isAdjust=function(t){return this.adjustNames.indexOf(t)>=0},t.prototype.getAdjustRange=function(t,e,n){var r,i,o=this.yField,a=n.indexOf(e),s=n.length;return!o&&this.isAdjust("y")?(r=0,i=1):s>1?(r=n[0===a?0:a-1],i=n[a===s-1?s-1:a+1],0!==a?r+=(e-r)/2:r-=(i-e)/2,a!==s-1?i-=(i-e)/2:i+=(e-n[s-2])/2):(r=0===e?0:e-.5,i=0===e?1:e+.5),{pre:r,next:i}},t.prototype.adjustData=function(t,e){var n=this,i=this.getDimValues(e);r.j(t,(function(t,e){r.j(i,(function(r,i){n.adjustDim(i,r,t,e)}))}))},t.prototype.groupData=function(t,e){return r.j(t,(function(t){void 0===t[e]&&(t[e]=i.a)})),r.w(t,e)},t.prototype.adjustDim=function(t,e,n,r){},t.prototype.getDimValues=function(t){var e=this.xField,n=this.yField,o=r.b({},this.dimValuesMap),a=[];if(e&&this.isAdjust("x")&&a.push(e),n&&this.isAdjust("y")&&a.push(n),a.forEach((function(e){o&&o[e]||(o[e]=r.yb(t,e).sort((function(t,e){return t-e})))})),!n&&this.isAdjust("y")){o.y=[i.a,1]}return o},t}();e.a=o},564:function(t,e,n){"use strict";function r(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)}}}}var i,o,a,s;function c(t){i||(i=document.createElement("table"),o=document.createElement("tr"),a=/^\s*<(\w+|!)[^>]*>/,s={tr:document.createElement("tbody"),tbody:i,thead:i,tfoot:i,td:o,th:o,"*":document.createElement("div")});var e=a.test(t)&&RegExp.$1;e&&e in s||(e="*");var n=s[e];t="string"==typeof t?t.replace(/(^\s*)|(\s*$)/g,""):t,n.innerHTML=""+t;var r=n.childNodes[0];return r&&n.contains(r)&&n.removeChild(r),r}function l(t,e,n){var r;try{r=window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.style[e]}catch(t){}finally{r=void 0===r?n:r}return r}function u(t,e){var n=function(t,e){var n=l(t,"height",e);return"auto"===n&&(n=t.offsetHeight),parseFloat(n)}(t,e),r=parseFloat(l(t,"borderTopWidth"))||0,i=parseFloat(l(t,"paddingTop"))||0,o=parseFloat(l(t,"paddingBottom"))||0;return n+r+(parseFloat(l(t,"borderBottomWidth"))||0)+i+o+(parseFloat(l(t,"marginTop"))||0)+(parseFloat(l(t,"marginBottom"))||0)}function h(t,e){var n=function(t,e){var n=l(t,"width",e);return"auto"===n&&(n=t.offsetWidth),parseFloat(n)}(t,e),r=parseFloat(l(t,"borderLeftWidth"))||0,i=parseFloat(l(t,"paddingLeft"))||0,o=parseFloat(l(t,"paddingRight"))||0,a=parseFloat(l(t,"borderRightWidth"))||0,s=parseFloat(l(t,"marginRight"))||0;return n+r+a+i+o+(parseFloat(l(t,"marginLeft"))||0)+s}function d(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return u})),n.d(e,"d",(function(){return h})),n.d(e,"e",(function(){return d}))},565:function(t,e,n){"use strict";var r={};n.r(r),n.d(r,"default",(function(){return L})),n.d(r,"assign",(function(){return g})),n.d(r,"format",(function(){return T})),n.d(r,"parse",(function(){return B})),n.d(r,"defaultI18n",(function(){return b})),n.d(r,"setGlobalDateI18n",(function(){return O})),n.d(r,"setGlobalDateMasks",(function(){return P}));var i=n(545),o={};function a(t,e){o[t]=e}var s=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(i.b)(this.__cfg__,t),this.init()},t.prototype.clone=function(){return this.constructor(this.__cfg__)},t.prototype.getTicks=function(){var t=this;return Object(i.W)(this.ticks,(function(e,n){return Object(i.O)(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(i.K)(r)||!Object(i.I)(r.toString)?"":r.toString()},t.prototype.getConfig=function(t){return this.__cfg__[t]},t.prototype.init=function(){Object(i.b)(this,this.__cfg__),this.setDomain(),Object(i.G)(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(i.Q)(t)){var n=o[t];if(!n)throw new Error("There is no method to to calculate ticks!");e=n(this)}else Object(i.I)(t)&&(e=t(this));return e},t.prototype.rangeMin=function(){return this.range[0]},t.prototype.rangeMax=function(){return this.range[1]},t.prototype.calcPercent=function(t,e,n){return Object(i.M)(t)?(t-e)/(n-e):NaN},t.prototype.calcValue=function(t,e,n){return e+t*(n-e)},t}(),c=n(25),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cat",e.isCategory=!0,e}return Object(c.c)(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(i.M)(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 o=e;return Object(i.M)(e)&&!this.values.includes(e)&&(o=this.values[o]),t.prototype.getText.apply(this,Object(c.h)([o],n))},e.prototype.initCfg=function(){this.tickMethod="cat"},e.prototype.setDomain=function(){if(Object(i.K)(this.getConfig("min"))&&(this.min=0),Object(i.K)(this.getConfig("max"))){var t=this.values.length;this.max=t>1?t-1:t}this.translateIndexMap&&(this.translateIndexMap=void 0)},e}(s),u=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,h="[^\\s]+",d=/\[([^]*?)\]/gm;function f(t,e){for(var n=[],r=0,i=t.length;r<i;r++)n.push(t[r].substr(0,e));return n}var p=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 g(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 v=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],y=["January","February","March","April","May","June","July","August","September","October","November","December"],m=f(y,3),b={dayNamesShort:f(v,3),dayNames:v,monthNamesShort:m,monthNames:y,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!=10?1:0)*t%10]}},x=g({},b),O=function(t){return x=g(x,t)},j=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},w=function(t,e){for(void 0===e&&(e=2),t=String(t);t.length<e;)t="0"+t;return t},C={D:function(t){return String(t.getDate())},DD:function(t){return w(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return String(t.getDay())},dd:function(t){return w(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 w(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 w(String(t.getFullYear()),4).substr(2)},YYYY:function(t){return w(t.getFullYear(),4)},h:function(t){return String(t.getHours()%12||12)},hh:function(t){return w(t.getHours()%12||12)},H:function(t){return String(t.getHours())},HH:function(t){return w(t.getHours())},m:function(t){return String(t.getMinutes())},mm:function(t){return w(t.getMinutes())},s:function(t){return String(t.getSeconds())},ss:function(t){return w(t.getSeconds())},S:function(t){return String(Math.round(t.getMilliseconds()/100))},SS:function(t){return w(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return w(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?"-":"+")+w(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+w(Math.floor(Math.abs(e)/60),2)+":"+w(Math.abs(e)%60,2)}},_=function(t){return+t-1},M=[null,"\\d\\d?"],S=[null,h],E=["isPm",h,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],k=["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}],I={D:["day","\\d\\d?"],DD:["day","\\d\\d"],Do:["day","\\d\\d?"+h,function(t){return parseInt(t,10)}],M:["month","\\d\\d?",_],MM:["month","\\d\\d",_],YY:["year","\\d\\d",function(t){var e=+(""+(new Date).getFullYear()).substr(0,2);return+(""+(+t>68?e-1:e)+t)}],h:["hour","\\d\\d?",void 0,"isPm"],hh:["hour","\\d\\d",void 0,"isPm"],H:["hour","\\d\\d?"],HH:["hour","\\d\\d"],m:["minute","\\d\\d?"],mm:["minute","\\d\\d"],s:["second","\\d\\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:M,dd:M,ddd:S,dddd:S,MMM:["month",h,p("monthNamesShort")],MMMM:["month",h,p("monthNames")],a:E,A:E,ZZ:k,Z:k},A={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"},P=function(t){return g(A,t)},T=function(t,e,n){if(void 0===e&&(e=A.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=A[e]||e).replace(d,(function(t,e){return r.push(e),"@@@"}));var i=g(g({},x),n);return(e=e.replace(u,(function(e){return C[e](t,i)}))).replace(/@@@/g,(function(){return r.shift()}))};function B(t,e,n){if(void 0===n&&(n={}),"string"!=typeof e)throw new Error("Invalid format in fecha parse");if(e=A[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(d,(function(t,e){return o.push(j(e)),"@@@"})),s={},c={};a=j(a).replace(u,(function(t){var e=I[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&&(c[o]=!0),i.push(e),"("+r+")"})),Object.keys(c).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 l=t.match(new RegExp(a,"i"));if(!l)return null;for(var h,f=g(g({},x),n),p=1;p<l.length;p++){var v=i[p-1],y=v[0],m=v[2],b=m?m(l[p],f):+l[p];if(null==b)return null;r[y]=b}if(1===r.isPm&&null!=r.hour&&12!=+r.hour?r.hour=+r.hour+12:0===r.isPm&&12==+r.hour&&(r.hour=0),null==r.timezoneOffset){h=new Date(r.year,r.month,r.day,r.hour,r.minute,r.second,r.millisecond);for(var O=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],w=(p=0,O.length);p<w;p++)if(s[O[p][0]]&&r[O[p][0]]!==h[O[p][1]]())return null}else if(h=new Date(Date.UTC(r.year,r.month,r.day,r.hour,r.minute-r.timezoneOffset,r.second,r.millisecond)),r.month>11||r.month<0||r.day>31||r.day<1||r.hour>23||r.hour<0||r.minute>59||r.minute<0||r.second>59||r.second<0)return null;return h}var L={format:T,parse:B,defaultI18n:b,setGlobalDateI18n:O,setGlobalDateMasks:P};function D(t,e){return(r.format||L.format)(t,e)}function F(t){return Object(i.Q)(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),Object(i.E)(t)&&(t=t.getTime()),t}var R=36e5,N=24*R,z=31*N,W=[["HH:mm:ss",1e3],["HH:mm:ss",1e4],["HH:mm:ss",3e4],["HH:mm",6e4],["HH:mm",6e5],["HH:mm",18e5],["HH",R],["HH",6*R],["HH",12*R],["YYYY-MM-DD",N],["YYYY-MM-DD",4*N],["YYYY-WW",7*N],["YYYY-MM",z],["YYYY-MM",4*z],["YYYY-MM",6*z],["YYYY",380*N]];function $(t,e,n){var r,o=(r=function(t){return t[1]},function(t,e,n,o){for(var a=Object(i.K)(n)?0:n,s=Object(i.K)(o)?t.length:o;a<s;){var c=a+s>>>1;r(t[c])>e?s=c:a=c+1}return a})(W,(e-t)/n)-1,a=W[o];return o<0?a=W[0]:o>=W.length&&(a=Object(i.U)(W)),a}var H=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="timeCat",e}return Object(c.c)(e,t),e.prototype.translate=function(t){t=F(t);var e=this.values.indexOf(t);return-1===e&&(e=Object(i.M)(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):D(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(i.j)(e,(function(t,n){e[n]=F(t)})),e.sort((function(t,e){return t-e})),t.prototype.setDomain.call(this)},e}(l),Y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isContinuous=!0,e}return Object(c.c)(e,t),e.prototype.scale=function(t){if(Object(i.K)(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(i.z)(e),r=Object(i.U)(e);n<this.min&&(this.min=n),r>this.max&&(this.max=r),Object(i.K)(this.minLimit)||(this.min=n),Object(i.K)(this.maxLimit)||(this.max=r)},e.prototype.setDomain=function(){var t=Object(i.u)(this.values),e=t.min,n=t.max;Object(i.K)(this.min)&&(this.min=e),Object(i.K)(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(i.l)(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}(s),V=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="linear",e.isLinear=!0,e}return Object(c.c)(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}(Y);function G(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 K(t,e){return 1===t?1:Math.log(e)/Math.log(t)}function X(t,e,n){Object(i.K)(n)&&(n=Math.max.apply(null,t));var r=n;return Object(i.j)(t,(function(t){t>0&&t<r&&(r=t)})),r===n&&(r=n/e),r>1&&(r=1),r}var U=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e}return Object(c.c)(e,t),e.prototype.invert=function(t){var e,n=this.base,r=K(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=K(n,a/n)))*o;if(t<s)return t/s*a}else e=K(n,this.min);var c=(t-i)/o*(r-e)+e;return Math.pow(n,c)},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=X(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/(K(r,e)-K(r,n)):(K(r,t)-K(r,n))/(K(r,e)-K(r,n))},e}(Y),q=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pow",e}return Object(c.c)(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t),n=this.exponent,r=G(n,this.max),i=G(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(G(r,t)-G(r,n))/(G(r,e)-G(r,n))},e}(Y),Z=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="time",e}return Object(c.c)(e,t),e.prototype.getText=function(t,e){var n=this.translate(t),r=this.formatter;return r?r(n,e):D(n,this.mask)},e.prototype.scale=function(e){var n=e;return(Object(i.Q)(n)||Object(i.E)(n))&&(n=this.translate(n)),t.prototype.scale.call(this,n)},e.prototype.translate=function(t){return F(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(i.K)(e)&&Object(i.M)(e)||(this.min=this.translate(this.min)),Object(i.K)(n)&&Object(i.M)(n)||(this.max=this.translate(this.max)),t&&t.length){var r=[],o=1/0,a=o,s=0;Object(i.j)(t,(function(t){var e=F(t);if(isNaN(e))throw new TypeError("Invalid Time: "+t+" in time scale!");o>e?(a=o,o=e):a>e&&(a=e),s<e&&(s=e),r.push(e)})),t.length>1&&(this.minTickInterval=a-o),Object(i.K)(e)&&(this.min=o),Object(i.K)(n)&&(this.max=s)}},e}(V),Q=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantize",e}return Object(c.c)(e,t),e.prototype.invert=function(t){var e=this.ticks,n=e.length,r=this.getInvertPercent(t),o=Math.floor(r*(n-1));if(o>=n-1)return Object(i.U)(e);if(o<0)return Object(i.z)(e);var a=e[o],s=o/(n-1);return a+(r-s)/((o+1)/(n-1)-s)*(e[o+1]-a)},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(i.U)(e)!==this.max&&e.push(this.max),Object(i.z)(e)!==this.min&&e.unshift(this.min)),e},e.prototype.getScalePercent=function(t){var e=this.ticks;if(t<Object(i.z)(e))return 0;if(t>Object(i.U)(e))return 1;var n=0;return Object(i.j)(e,(function(e,r){if(!(t>=e))return!1;n=r})),n/(e.length-1)},e}(Y),J=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantile",e}return Object(c.c)(e,t),e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(Q),tt={};function et(t){return tt[t]}function nt(t,e){if(et(t))throw new Error("type '"+t+"' existed.");tt[t]=e}var rt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="identity",e.isIdentity=!0,e}return Object(c.c)(e,t),e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&Object(i.M)(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}(s);function it(t){var e=t.values,n=t.tickInterval,r=t.tickCount,o=t.showLast;if(Object(i.M)(n)){var a=Object(i.l)(e,(function(t,e){return e%n==0})),s=Object(i.U)(e);return o&&Object(i.U)(a)!==s&&a.push(s),a}var c=e.length,l=t.min,u=t.max;if(Object(i.K)(l)&&(l=0),Object(i.K)(u)&&(u=e.length-1),!Object(i.M)(r)||r>=c)return e.slice(l,u+1);if(r<=0||u<=0)return[];for(var h=1===r?c:Math.floor(c/(r-1)),d=[],f=l,p=0;p<r&&!(f>=u);p++)f=Math.min(l+p*h,u),p===r-1&&o?d.push(e[u]):d.push(e[f]);return d}var ot=Math.sqrt(50),at=Math.sqrt(10),st=Math.sqrt(2),ct=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],c=this._domain[a];return c<s&&(s=(e=[c,s])[0],c=e[1],o=(n=[a,o])[0],a=n[1]),(r=lt(s,c,t))>0?r=lt(s=Math.floor(s/r)*r,c=Math.ceil(c/r)*r,t):r<0&&(r=lt(s=Math.ceil(s*r)/r,c=Math.floor(c*r)/r,t)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(c/r)*r,this.domain(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(c*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=lt(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 lt(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>=ot?10:o>=at?5:o>=st?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=ot?10:o>=at?5:o>=st?2:1)}function ut(t,e,n){return("ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e))*e}function ht(t,e,n){var r=ut(t,n,"floor"),o=ut(e,n,"ceil");r=Object(i.p)(r,n),o=Object(i.p)(o,n);for(var a=[],s=Math.max((o-r)/(Math.pow(2,12)-1),n),c=r;c<=o;c+=s){var l=Object(i.p)(c,s);a.push(l)}return{min:r,max:o,ticks:a}}function dt(t,e,n){var r,o=t.minLimit,a=t.maxLimit,s=t.min,c=t.max,l=t.tickCount,u=void 0===l?5:l,h=Object(i.K)(o)?Object(i.K)(e)?s:e:o,d=Object(i.K)(a)?Object(i.K)(n)?c:n:a;if(h>d&&(d=(r=[h,d])[0],h=r[1]),u<=2)return[h,d];for(var f=(d-h)/(u-1),p=[],g=0;g<u;g++)p.push(h+f*g);return p}function ft(t){return Math.abs(t)<1e-15?t:parseFloat(t.toFixed(15))}var pt=[1,5,2,2.5,4,3],gt=100*Number.EPSILON;function vt(t,e,n,r,o,a){var s=Object(i.mb)(e),c=Object(i.B)(e,t),l=0,u=function(t,e){return(t%e+e)%e}(r,a);return(u<gt||a-u<gt)&&r<=0&&o>=0&&(l=1),1-c/(s-1)-n+l}function yt(t,e,n){var r=Object(i.mb)(e);return 1-Object(i.B)(e,t)/(r-1)-n+1}function mt(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 bt(t,e){return t>=e?2-(t-1)/(e-1):1}function xt(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 Ot(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 jt(t,e,n,r,o,a){void 0===n&&(n=5),void 0===r&&(r=!0),void 0===o&&(o=pt),void 0===a&&(a=[.25,.2,.5,.05]);var s=n<0?0:Math.round(n);if(Number.isNaN(t)||Number.isNaN(e)||"number"!=typeof t||"number"!=typeof e||!s)return{min:0,max:0,ticks:[]};if(e-t<1e-15||1===s)return{min:t,max:e,ticks:[t]};if(e-t>1e148){var c=(e-t)/(j=n||5);return{min:t,max:e,ticks:Array(j).fill(null).map((function(e,n){return ft(t+c*n)}))}}for(var l={score:-2,lmin:0,lmax:0,lstep:0},u=1;u<1/0;){for(var h=0;h<o.length;h+=1){var d=o[h],f=yt(d,o,u);if(a[0]*f+a[1]+a[2]+a[3]<l.score){u=1/0;break}for(var p=2;p<1/0;){var g=bt(p,s);if(a[0]*f+a[1]+a[2]*g+a[3]<l.score)break;for(var v=(e-t)/(p+1)/u/d,y=Math.ceil(Math.log10(v));y<1/0;){var m=u*d*Math.pow(10,y),b=Ot(t,e,m*(p-1));if(a[0]*f+a[1]*b+a[2]*g+a[3]<l.score)break;var x=Math.floor(e/m)*u-(p-1)*u,O=Math.ceil(t/m)*u;if(x<=O)for(var j=O-x,w=0;w<=j;w+=1){var C=(x+w)*(m/u),_=C+m*(p-1),M=m,S=vt(d,o,u,C,_,M),E=xt(t,e,C,_),k=mt(p,s,t,e,C,_),I=a[0]*S+a[1]*E+a[2]*k+1*a[3];I>l.score&&(!r||C<=t&&_>=e)&&(l.lmin=C,l.lmax=_,l.lstep=M,l.score=I)}y+=1}p+=1}}u+=1}var A=ft(l.lmax),P=ft(l.lmin),T=ft(l.lstep),B=Math.floor(function(t){return Math.round(1e12*t)/1e12}((A-P)/T))+1,L=new Array(B);L[0]=ft(P);for(h=1;h<B;h++)L[h]=ft(L[h-1]+T);return{min:Math.min(t,Object(i.z)(L)),max:Math.max(e,Object(i.U)(L)),ticks:L}}function wt(t,e,n){if(void 0===n&&(n=5),t===e)return{max:e,min:t,ticks:[t]};var r=n<0?0:Math.round(n);if(0===r)return{max:e,min:t,ticks:[]};var i=(e-t)/r,o=Math.pow(10,Math.floor(Math.log10(i))),a=o;2*o-i<1.5*(i-a)&&5*o-i<2.75*(i-(a=2*o))&&10*o-i<1.5*(i-(a=5*o))&&(a=10*o);for(var s=Math.ceil(e/a),c=Math.floor(t/a),l=Math.max(s*a,e),u=Math.min(c*a,t),h=Math.floor((l-u)/a)+1,d=new Array(h),f=0;f<h;f++)d[f]=ft(u+f*a);return{min:u,max:l,ticks:d}}function Ct(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 _t(t){return new Date(t).getFullYear()}function Mt(t){return new Date(t,0,1).getTime()}function St(t){return new Date(t).getMonth()}function Et(t,e){return new Date(t,e,1).getTime()}a("cat",it),a("time-cat",(function(t){return it(Object(c.a)({showLast:!0},t))})),a("wilkinson-extended",(function(t){var e=t.min,n=t.max,r=t.tickCount,o=t.nice,a=t.tickInterval,s=t.minLimit,c=t.maxLimit,l=jt(e,n,r,o).ticks;return Object(i.K)(s)&&Object(i.K)(c)?a?ht(e,n,a).ticks:l:dt(t,Object(i.z)(l),Object(i.U)(l))})),a("r-pretty",(function(t){var e=t.min,n=t.max,r=t.tickCount,o=t.tickInterval,a=t.minLimit,s=t.maxLimit,c=wt(e,n,r).ticks;return Object(i.K)(a)&&Object(i.K)(s)?o?ht(e,n,o).ticks:c:dt(t,Object(i.z)(c),Object(i.U)(c))})),a("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=$(e,n,o)[1])/o;a>1&&(i*=Math.ceil(a)),r&&i<r&&(i=r)}i=Math.max(Math.floor((n-e)/(Math.pow(2,12)-1)),i);for(var s=[],c=e;c<n+i;c+=i)s.push(c);return s})),a("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)),o=Math.max(Math.floor((n-e)/(Math.pow(2,12)-1)),o);var s=_t(e);if(o>31536e6)for(var c=_t(n),l=Math.ceil(o/31536e6),u=s;u<=c+l;u+=l)a.push(Mt(u));else if(o>z){var h=Math.ceil(o/z),d=St(e),f=function(t,e){var n=_t(t),r=_t(e),i=St(t);return 12*(r-n)+(St(e)-i)%12}(e,n);for(u=0;u<=f+h;u+=h)a.push(Et(s,u+d))}else if(o>N){var p=(b=new Date(e)).getFullYear(),g=b.getMonth(),v=b.getDate(),y=Math.ceil(o/N),m=function(t,e){return Math.ceil((e-t)/N)}(e,n);for(u=0;u<m+y;u+=y)a.push(new Date(p,g,v+u).getTime())}else if(o>R){p=(b=new Date(e)).getFullYear(),g=b.getMonth(),y=b.getDate();var b,x=b.getHours(),O=Math.ceil(o/R),j=function(t,e){return Math.ceil((e-t)/R)}(e,n);for(u=0;u<=j+O;u+=O)a.push(new Date(p,g,y,x+u).getTime())}else if(o>6e4){var w=function(t,e){return Math.ceil((e-t)/6e4)}(e,n),C=Math.ceil(o/6e4);for(u=0;u<=w+C;u+=C)a.push(e+6e4*u)}else{var _=o;_<1e3&&(_=1e3);var M=1e3*Math.floor(e/1e3),S=Math.ceil((n-e)/1e3),E=Math.ceil(_/1e3);for(u=0;u<S+E;u+=E)a.push(M+1e3*u)}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})),a("log",(function(t){var e,n=t.base,r=t.tickCount,i=t.min,o=t.max,a=t.values,s=K(n,o);if(i>0)e=Math.floor(K(n,i));else{var c=X(a,n,o);e=Math.floor(K(n,c))}for(var l=s-e,u=Math.ceil(l/r),h=[],d=e;d<s+u;d+=u)h.push(Math.pow(n,d));return i<=0&&h.unshift(0),h})),a("pow",(function(t){var e=t.exponent,n=t.tickCount,r=Math.ceil(G(e,t.max));return wt(Math.floor(G(e,t.min)),r,n).ticks.map((function(t){var n=t>=0?1:-1;return Math.pow(t,e)*n}))})),a("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(Ct(r,a))}return i})),a("d3-linear",(function(t){var e=t.min,n=t.max,r=t.tickInterval,o=t.minLimit,a=t.maxLimit,s=function(t){var e=t.min,n=t.max,r=t.nice,i=t.tickCount,o=new ct;return o.domain([e,n]),r&&o.nice(i),o.ticks(i)}(t);return Object(i.K)(o)&&Object(i.K)(a)?r?ht(e,n,r).ticks:s:dt(t,Object(i.z)(s),Object(i.U)(s))})),n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return V})),n.d(e,"c",(function(){return et})),nt("cat",l),nt("category",l),nt("identity",rt),nt("linear",V),nt("log",U),nt("pow",q),nt("time",Z),nt("timeCat",H),nt("quantize",Q),nt("quantile",J)},571: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)})},572: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],c=t[5],l=t[6],u=t[7],h=t[8],d=e[0],f=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]=d*r+f*a+p*l,n[1]=d*i+f*s+p*u,n[2]=d*o+f*c+p*h,n[3]=g*r+v*a+y*l,n[4]=g*i+v*s+y*u,n[5]=g*o+v*c+y*h,n[6]=m*r+b*a+x*l,n[7]=m*i+b*s+x*u,n[8]=m*o+b*c+x*h,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],c=t[6],l=t[7],u=t[8],h=u*a-s*l,d=-u*o+s*c,f=l*o-a*c,p=n*h+r*d+i*f;return p?(p=1/p,e[0]=h*p,e[1]=(-u*r+i*l)*p,e[2]=(s*r-i*a)*p,e[3]=d*p,e[4]=(u*n-i*c)*p,e[5]=(-s*n+i*o)*p,e[6]=f*p,e[7]=(-l*n+r*c)*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}))},573:function(t,e,n){"use strict";var r=n(611);n.d(e,"getAdjust",(function(){return r.getAdjust}));n(563);var i=n(697),o=n(698),a=n(699),s=n(700);n(588);Object(r.registerAdjust)("Dodge",i.a),Object(r.registerAdjust)("Jitter",o.a),Object(r.registerAdjust)("Stack",a.a),Object(r.registerAdjust)("Symmetric",s.a)},574:function(t,e,n){"use strict";var r=n(545),i=/rgba?\(([\s.,0-9]+)\)/,o=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,a=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,c=function(t,e,n,r){return t[r]+(e[r]-t[r])*n};function l(t){return"#"+d(t[0])+d(t[1])+d(t[2])}var u,h=function(t){return[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16)]},d=function(t){var e=Math.round(t).toString(16);return 1===e.length?"0"+e:e},f=function(t){if("#"===t[0]&&7===t.length)return t;var e;u||((e=document.createElement("i")).title="Web Colour Picker",e.style.display="none",document.body.appendChild(e),u=e),u.style.color=t;var n=document.defaultView.getComputedStyle(u,"").getPropertyValue("color");return n=l(i.exec(n)[1].split(/\s*,\s*/).map((function(t){return Number(t)})))};e.a={rgb2arr:h,gradient:function(t){var e=Object(r.Q)(t)?t.split("-"):t,n=Object(r.W)(e,(function(t){return h(-1===t.indexOf("#")?f(t):t)}));return function(t){return function(t,e){var n=isNaN(Number(e))||e<0?0:e>1?1:Number(e),r=t.length-1,i=Math.floor(r*n),o=r*n-i,a=t[i],s=i===r?a:t[i+1];return l([c(a,s,o,0),c(a,s,o,1),c(a,s,o,2)])}(n,t)}},toRGB:Object(r.ab)(f),toCSSGradient:function(t){if(/^[r,R,L,l]{1}[\s]*\(/.test(t)){var e,n=void 0;if("l"===t[0]){var i=+(c=o.exec(t))[1]+90;n=c[2],e="linear-gradient("+i+"deg, "}else if("r"===t[0]){var c;e="radial-gradient(",n=(c=a.exec(t))[4]}var l=n.match(s);return Object(r.j)(l,(function(t,n){var r=t.split(":");e+=r[1]+" "+100*r[0]+"%",n!==l.length-1&&(e+=", ")})),e+=")"}return t}}},575:function(t,e,n){"use strict";var r=n(25),i=n(564),o=n(545),a=n(552),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{container:null,containerTpl:"<div></div>",updateAutoRender:!0,containerClassName:"",parent:null})},e.prototype.getContainer=function(){return this.get("container")},e.prototype.show=function(){this.get("container").style.display="",this.set("visible",!0)},e.prototype.hide=function(){this.get("container").style.display="none",this.set("visible",!1)},e.prototype.setCapture=function(t){var e=t?"auto":"none";this.getContainer().style.pointerEvents=e,this.set("capture",t)},e.prototype.getBBox=function(){var t=this.getContainer(),e=parseFloat(t.style.left)||0,n=parseFloat(t.style.top)||0;return Object(a.b)(e,n,t.clientWidth,t.clientHeight)},e.prototype.clear=function(){var t=this.get("container");Object(a.a)(t)},e.prototype.destroy=function(){this.removeEvent(),this.removeDom(),t.prototype.destroy.call(this)},e.prototype.init=function(){t.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},e.prototype.initCapture=function(){this.setCapture(this.get("capture"))},e.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},e.prototype.initDom=function(){},e.prototype.initContainer=function(){var t=this.get("container");if(Object(o.K)(t)){t=this.createDom();var e=this.get("parent");Object(o.Q)(e)&&(e=document.getElementById(e),this.set("parent",e)),e.appendChild(t),this.get("containerId")&&t.setAttribute("id",this.get("containerId")),this.set("container",t)}else Object(o.Q)(t)&&(t=document.getElementById(t),this.set("container",t));this.get("parent")||this.set("parent",t.parentNode)},e.prototype.resetStyles=function(){var t=this.get("domStyles"),e=this.get("defaultStyles");t=t?Object(o.h)({},e,t):e,this.set("domStyles",t)},e.prototype.applyStyles=function(){var t=this.get("domStyles");if(t){var e=this.getContainer();this.applyChildrenStyles(e,t);var n=this.get("containerClassName");if(n&&Object(a.h)(e,n)){var r=t[n];Object(i.e)(e,r)}}},e.prototype.applyChildrenStyles=function(t,e){Object(o.j)(e,(function(e,n){var r=t.getElementsByClassName(n);Object(o.j)(r,(function(t){Object(i.e)(t,e)}))}))},e.prototype.applyStyle=function(t,e){var n=this.get("domStyles");Object(i.e)(e,n[t])},e.prototype.createDom=function(){var t=this.get("containerTpl");return Object(i.b)(t)},e.prototype.initEvent=function(){},e.prototype.removeDom=function(){var t=this.get("container");t&&t.parentNode&&t.parentNode.removeChild(t)},e.prototype.removeEvent=function(){},e.prototype.updateInner=function(t){Object(o.y)(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},e.prototype.resetPosition=function(){},e}(n(590).a);e.a=s},576:function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"d",(function(){return u})),n.d(e,"b",(function(){return h})),n.d(e,"c",(function(){return d})),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(545),i=n(648),o=n(614),a=n(553),s=n(592),c={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function l(t,e){var n=e.attr();for(var o in n){var a=n[o],s=c[o]?c[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.C)(a)&&t.setLineDash(a):("strokeStyle"===s||"fillStyle"===s?a=Object(i.b)(t,e,a):"globalAlpha"===s&&(a*=t.globalAlpha),t[s]=a)}}function u(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 h(t,e,n){var i=t.get("refreshElements");Object(r.j)(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?f(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()&&f(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 d(t){for(var e=0;e<t.length;e++){var n=t[e];n.cfg.hasChanged=!1,n.isGroup()&&!n.destroyed&&d(n.cfg.children)}}function f(t,e){for(var n=0;n<t.length;n++){var r=t[n];r.cfg.visible&&(r.cfg.refresh=!0,r.isGroup()&&f(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,c=n.endArrow;if(i){var l=[0,0],u=[0,0],h={dx:0,dy:0};e.beginPath();for(var d=0;d<i.length;d++){var f=i[d],p=f[0];if(0===d&&a&&a.d){var g=t.getStartTangent();h=s.c(g[0][0],g[0][1],g[1][0],g[1][1],a.d)}else if(d===i.length-2&&"Z"===i[d+1][0]&&c&&c.d){if("Z"===i[d+1][0]){g=t.getEndTangent();h=s.c(g[0][0],g[0][1],g[1][0],g[1][1],c.d)}}else if(d===i.length-1&&c&&c.d&&"Z"!==i[0]){g=t.getEndTangent();h=s.c(g[0][0],g[0][1],g[1][0],g[1][1],c.d)}var v=h.dx,y=h.dy;switch(p){case"M":e.moveTo(f[1]-v,f[2]-y),u=[f[1],f[2]];break;case"L":e.lineTo(f[1]-v,f[2]-y);break;case"Q":e.quadraticCurveTo(f[1],f[2],f[3]-v,f[4]-y);break;case"C":e.bezierCurveTo(f[1],f[2],f[3],f[4],f[5]-v,f[6]-y);break;case"A":var m=void 0;r?(m=r[d])||(m=Object(o.a)(l,f),r[d]=m):m=Object(o.a)(l,f);var b=m.cx,x=m.cy,O=m.rx,j=m.ry,w=m.startAngle,C=m.endAngle,_=m.xRotation,M=m.sweepFlag;if(e.ellipse)e.ellipse(b,x,O,j,_,w,C,1-M);else{var S=O>j?O:j,E=O>j?1:O/j,k=O>j?j/O:1;e.translate(b,x),e.rotate(_),e.scale(E,k),e.arc(0,0,S,w,C,1-M),e.scale(1/E,1/k),e.rotate(-_),e.translate(-b,-x)}break;case"Z":e.closePath()}if("Z"===p)l=u;else{var I=f.length;l=[f[I-2],f[I-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.j)(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:Object(r.bb)(e),minY:Object(r.bb)(n),maxX:Object(r.Y)(i),maxY:Object(r.Y)(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}},577: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(559);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")}},578:function(t,e,n){"use strict";var r,i=n(1),o=n.n(i),a=(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(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)}),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={hasError:!1},e.renderError=function(t){var n=e.props.errorTemplate;return"function"==typeof n?n(t):n||o.a.createElement("h5",null,"组件出错了,请核查后重试: ",t.message)},e}return a(e,t),e.getDerivedStateFromError=function(t){return{hasError:!0,error:t}},e.getDerivedStateFromProps=function(t,e){return e.children!==t.children?{children:t.children,hasError:!1,error:void 0}:null},e.prototype.render=function(){return this.state.hasError?this.renderError(this.state.error):o.a.createElement(i.Fragment,null,this.props.children)},e}(o.a.Component);e.a=s},579:function(t,e,n){"use strict";var r={};n.r(r),n.d(r,"cluster",(function(){return mg})),n.d(r,"hierarchy",(function(){return Ud})),n.d(r,"pack",(function(){return Yd})),n.d(r,"packSiblings",(function(){return Rd})),n.d(r,"packEnclose",(function(){return _d})),n.d(r,"partition",(function(){return dg})),n.d(r,"stratify",(function(){return wg})),n.d(r,"tree",(function(){return Ig})),n.d(r,"treemap",(function(){return Lg})),n.d(r,"treemapBinary",(function(){return Dg})),n.d(r,"treemapDice",(function(){return hg})),n.d(r,"treemapSlice",(function(){return Ag})),n.d(r,"treemapSliceDice",(function(){return Fg})),n.d(r,"treemapSquarify",(function(){return Bg})),n.d(r,"treemapResquarify",(function(){return Rg}));var i,o,a,s=n(25),c=n(545);!function(t){t.FORE="fore",t.MID="mid",t.BG="bg"}(i||(i={})),function(t){t.TOP="top",t.TOP_LEFT="top-left",t.TOP_RIGHT="top-right",t.RIGHT="right",t.RIGHT_TOP="right-top",t.RIGHT_BOTTOM="right-bottom",t.LEFT="left",t.LEFT_TOP="left-top",t.LEFT_BOTTOM="left-bottom",t.BOTTOM="bottom",t.BOTTOM_LEFT="bottom-left",t.BOTTOM_RIGHT="bottom-right",t.RADIUS="radius",t.CIRCLE="circle",t.NONE="none"}(o||(o={})),function(t){t.AXIS="axis",t.GRID="grid",t.LEGEND="legend",t.TOOLTIP="tooltip",t.ANNOTATION="annotation",t.SLIDER="slider",t.SCROLLBAR="scrollbar",t.OTHER="other"}(a||(a={}));var l,u,h,d,f=3,p=2,g=1;!function(t){t.BEFORE_RENDER="beforerender",t.AFTER_RENDER="afterrender",t.BEFORE_PAINT="beforepaint",t.AFTER_PAINT="afterpaint",t.BEFORE_CHANGE_DATA="beforechangedata",t.AFTER_CHANGE_DATA="afterchangedata",t.BEFORE_CLEAR="beforeclear",t.AFTER_CLEAR="afterclear",t.BEFORE_DESTROY="beforedestroy",t.BEFORE_CHANGE_SIZE="beforechangesize",t.AFTER_CHANGE_SIZE="afterchangesize"}(l||(l={})),function(t){t.BEFORE_DRAW_ANIMATE="beforeanimate",t.AFTER_DRAW_ANIMATE="afteranimate",t.BEFORE_RENDER_LABEL="beforerenderlabel",t.AFTER_RENDER_LABEL="afterrenderlabel"}(u||(u={})),function(t){t.MOUSE_ENTER="plot:mouseenter",t.MOUSE_DOWN="plot:mousedown",t.MOUSE_MOVE="plot:mousemove",t.MOUSE_UP="plot:mouseup",t.MOUSE_LEAVE="plot:mouseleave",t.TOUCH_START="plot:touchstart",t.TOUCH_MOVE="plot:touchmove",t.TOUCH_END="plot:touchend",t.TOUCH_CANCEL="plot:touchcancel",t.CLICK="plot:click",t.DBLCLICK="plot:dblclick",t.CONTEXTMENU="plot:contextmenu",t.LEAVE="plot:leave",t.ENTER="plot:enter"}(h||(h={})),function(t){t.ACTIVE="active",t.INACTIVE="inactive",t.SELECTED="selected",t.DEFAULT="default"}(d||(d={}));var v=["color","shape","size"],y={};function m(t,e){y[t]=e}var b=n(564);function x(t){return"number"==typeof t&&!isNaN(t)}function O(t,e,n,r){var i=n,o=r;if(e){var a=function(t){var e=getComputedStyle(t);return{width:(t.clientWidth||parseInt(e.width,10))-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10),height:(t.clientHeight||parseInt(e.height,10))-parseInt(e.paddingTop,10)-parseInt(e.paddingBottom,10)}}(t);i=a.width?a.width:i,o=a.height?a.height:o}return{width:Math.max(x(i)?i:1,1),height:Math.max(x(o)?o:1,1)}}var j=n(604),w=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=e.visible,i=void 0===r||r;return n.visible=i,n}return Object(s.c)(e,t),e.prototype.show=function(){this.visible||this.changeVisible(!0)},e.prototype.hide=function(){this.visible&&this.changeVisible(!1)},e.prototype.destroy=function(){this.off(),this.destroyed=!0},e.prototype.changeVisible=function(t){this.visible!==t&&(this.visible=t)},e}(j.a),C=n(549),_=n(573),M=function(t,e){return Object(c.Q)(e)?e:t.invert(t.scale(e))},S=function(){function t(t){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(t)}return t.prototype.mapping=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e.map((function(e,n){return t._toOriginParam(e,t.scales[n])}));return this.callback.apply(this,r)},t.prototype.getLinearValue=function(t){var e=this.values.length-1,n=Math.floor(e*t),r=e*t-n,i=this.values[n];return i+((n===e?i:this.values[n+1])-i)*r},t.prototype.getNames=function(){for(var t=this.scales,e=this.names,n=Math.min(t.length,e.length),r=[],i=0;i<n;i+=1)r.push(e[i]);return r},t.prototype.getFields=function(){return this.scales.map((function(t){return t.field}))},t.prototype.getScale=function(t){return this.scales[this.names.indexOf(t)]},t.prototype.defaultCallback=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 0===e.length?this.values:e.map((function(e,n){var r=t.scales[n];return"identity"===r.type?r.values[0]:t._getAttributeValue(r,e)}))},t.prototype._parseCfg=function(t){var e=this,n=t.type,r=void 0===n?"base":n,i=t.names,o=void 0===i?[]:i,a=t.scales,s=void 0===a?[]:a,l=t.values,u=void 0===l?[]:l,h=t.callback;this.type=r,this.scales=s,this.values=u,this.names=o,this.callback=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(h){var r=h.apply(void 0,t);if(!Object(c.K)(r))return[r]}return e.defaultCallback.apply(e,t)}},t.prototype._getAttributeValue=function(t,e){if(t.isCategory&&!this.linear){var n=t.translate(e);return this.values[n%this.values.length]}var r=t.scale(e);return this.getLinearValue(r)},t.prototype._toOriginParam=function(t,e){return e.isLinear?t:Object(c.C)(t)?t.map((function(t){return M(e,t)})):M(e,t)},t}(),E=n(574),k=function(t){function e(e){var n=t.call(this,e)||this;return n.type="color",n.names=["color"],Object(c.Q)(n.values)&&(n.linear=!0),n.gradient=E.a.gradient(n.values),n}return Object(s.c)(e,t),e.prototype.getLinearValue=function(t){return this.gradient(t)},e}(S),I=function(t){function e(e){var n=t.call(this,e)||this;return n.type="opacity",n.names=["opacity"],n}return Object(s.c)(e,t),e}(S),A=function(t){function e(e){var n=t.call(this,e)||this;return n.names=["x","y"],n.type="position",n}return Object(s.c)(e,t),e.prototype.mapping=function(t,e){var n=this.scales,r=n[0],i=n[1];return Object(c.K)(t)||Object(c.K)(e)?[]:[Object(c.C)(t)?t.map((function(t){return r.scale(t)})):r.scale(t),Object(c.C)(e)?e.map((function(t){return i.scale(t)})):i.scale(e)]},e}(S),P=function(t){function e(e){var n=t.call(this,e)||this;return n.type="shape",n.names=["shape"],n}return Object(s.c)(e,t),e.prototype.getLinearValue=function(t){var e=Math.round((this.values.length-1)*t);return this.values[e]},e}(S),T=function(t){function e(e){var n=t.call(this,e)||this;return n.type="size",n.names=["size"],n}return Object(s.c)(e,t),e}(S),B=n(565),L={},D=function(t){return L[t.toLowerCase()]},F=function(t,e){if(D(t))throw new Error("Attribute type '".concat(t,"' existed."));L[t.toLowerCase()]=e};F("Color",k),F("Opacity",I),F("Position",A),F("Shape",P),F("Size",T);var R=n(551),N=function(){function t(t){this.type="coordinate",this.isRect=!1,this.isHelix=!1,this.isPolar=!1,this.isReflectX=!1,this.isReflectY=!1;var e=t.start,n=t.end,r=t.matrix,i=void 0===r?[1,0,0,0,1,0,0,0,1]:r,o=t.isTransposed,a=void 0!==o&&o;this.start=e,this.end=n,this.matrix=i,this.originalMatrix=Object(s.g)([],i),this.isTransposed=a}return t.prototype.initial=function(){this.center={x:(this.start.x+this.end.x)/2,y:(this.start.y+this.end.y)/2},this.width=Math.abs(this.end.x-this.start.x),this.height=Math.abs(this.end.y-this.start.y)},t.prototype.update=function(t){Object(c.b)(this,t),this.initial()},t.prototype.convertDim=function(t,e){var n,r=this[e],i=r.start,o=r.end;return this.isReflect(e)&&(i=(n=[o,i])[0],o=n[1]),i+t*(o-i)},t.prototype.invertDim=function(t,e){var n,r=this[e],i=r.start,o=r.end;return this.isReflect(e)&&(i=(n=[o,i])[0],o=n[1]),(t-i)/(o-i)},t.prototype.applyMatrix=function(t,e,n){void 0===n&&(n=0);var r=this.matrix,i=[t,e,n];return R.d.transformMat3(i,i,r),i},t.prototype.invertMatrix=function(t,e,n){void 0===n&&(n=0);var r=this.matrix,i=R.b.invert([0,0,0,0,0,0,0,0,0],r),o=[t,e,n];return i&&R.d.transformMat3(o,o,i),o},t.prototype.convert=function(t){var e=this.convertPoint(t),n=e.x,r=e.y,i=this.applyMatrix(n,r,1);return{x:i[0],y:i[1]}},t.prototype.invert=function(t){var e=this.invertMatrix(t.x,t.y,1);return this.invertPoint({x:e[0],y:e[1]})},t.prototype.rotate=function(t){var e=this.matrix,n=this.center;return R.a.leftTranslate(e,e,[-n.x,-n.y]),R.a.leftRotate(e,e,t),R.a.leftTranslate(e,e,[n.x,n.y]),this},t.prototype.reflect=function(t){return"x"===t?this.isReflectX=!this.isReflectX:this.isReflectY=!this.isReflectY,this},t.prototype.scale=function(t,e){var n=this.matrix,r=this.center;return R.a.leftTranslate(n,n,[-r.x,-r.y]),R.a.leftScale(n,n,[t,e]),R.a.leftTranslate(n,n,[r.x,r.y]),this},t.prototype.translate=function(t,e){var n=this.matrix;return R.a.leftTranslate(n,n,[t,e]),this},t.prototype.transpose=function(){return this.isTransposed=!this.isTransposed,this},t.prototype.getCenter=function(){return this.center},t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.getRadius=function(){return this.radius},t.prototype.isReflect=function(t){return"x"===t?this.isReflectX:this.isReflectY},t.prototype.resetMatrix=function(t){this.matrix=t||Object(s.g)([],this.originalMatrix)},t}(),z=function(t){function e(e){var n=t.call(this,e)||this;return n.isRect=!0,n.type="cartesian",n.initial(),n}return Object(s.c)(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);var e=this.start,n=this.end;this.x={start:e.x,end:n.x},this.y={start:e.y,end:n.y}},e.prototype.convertPoint=function(t){var e,n=t.x,r=t.y;return this.isTransposed&&(n=(e=[r,n])[0],r=e[1]),{x:this.convertDim(n,"x"),y:this.convertDim(r,"y")}},e.prototype.invertPoint=function(t){var e,n=this.invertDim(t.x,"x"),r=this.invertDim(t.y,"y");return this.isTransposed&&(n=(e=[r,n])[0],r=e[1]),{x:n,y:r}},e}(N),W=function(t){function e(e){var n=t.call(this,e)||this;n.isHelix=!0,n.type="helix";var r=e.startAngle,i=void 0===r?1.25*Math.PI:r,o=e.endAngle,a=void 0===o?7.25*Math.PI:o,s=e.innerRadius,c=void 0===s?0:s,l=e.radius;return n.startAngle=i,n.endAngle=a,n.innerRadius=c,n.radius=l,n.initial(),n}return Object(s.c)(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);var e=(this.endAngle-this.startAngle)/(2*Math.PI)+1,n=Math.min(this.width,this.height)/2;this.radius&&this.radius>=0&&this.radius<=1&&(n*=this.radius),this.d=Math.floor(n*(1-this.innerRadius)/e),this.a=this.d/(2*Math.PI),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*n,end:this.innerRadius*n+.99*this.d}},e.prototype.convertPoint=function(t){var e,n=t.x,r=t.y;this.isTransposed&&(n=(e=[r,n])[0],r=e[1]);var i=this.convertDim(n,"x"),o=this.a*i,a=this.convertDim(r,"y");return{x:this.center.x+Math.cos(i)*(o+a),y:this.center.y+Math.sin(i)*(o+a)}},e.prototype.invertPoint=function(t){var e,n=this.d+this.y.start,r=R.c.subtract([0,0],[t.x,t.y],[this.center.x,this.center.y]),i=R.a.angleTo(r,[1,0],!0),o=i*this.a;R.c.length(r)<o&&(o=R.c.length(r)),i=2*Math.floor((R.c.length(r)-o)/n)*Math.PI+i;var a=this.a*i,s=R.c.length(r)-a;s=Object(c.N)(s,0)?0:s;var l=this.invertDim(i,"x"),u=this.invertDim(s,"y");return l=Object(c.N)(l,0)?0:l,u=Object(c.N)(u,0)?0:u,this.isTransposed&&(l=(e=[u,l])[0],u=e[1]),{x:l,y:u}},e}(N),$=function(t){function e(e){var n=t.call(this,e)||this;n.isPolar=!0,n.type="polar";var r=e.startAngle,i=void 0===r?-Math.PI/2:r,o=e.endAngle,a=void 0===o?3*Math.PI/2:o,s=e.innerRadius,c=void 0===s?0:s,l=e.radius;return n.startAngle=i,n.endAngle=a,n.innerRadius=c,n.radius=l,n.initial(),n}return Object(s.c)(e,t),e.prototype.initial=function(){for(t.prototype.initial.call(this);this.endAngle<this.startAngle;)this.endAngle+=2*Math.PI;var e,n=this.getOneBox(),r=n.maxX-n.minX,i=n.maxY-n.minY,o=Math.abs(n.minX)/r,a=Math.abs(n.minY)/i;this.height/i>this.width/r?(e=this.width/r,this.circleCenter={x:this.center.x-(.5-o)*this.width,y:this.center.y-(.5-a)*e*i}):(e=this.height/i,this.circleCenter={x:this.center.x-(.5-o)*e*r,y:this.center.y-(.5-a)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=e*this.radius:(this.radius<=0||this.radius>e)&&(this.polarRadius=e):this.polarRadius=e,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},e.prototype.getRadius=function(){return this.polarRadius},e.prototype.convertPoint=function(t){var e,n=this.getCenter(),r=t.x,i=t.y;return this.isTransposed&&(r=(e=[i,r])[0],i=e[1]),r=this.convertDim(r,"x"),i=this.convertDim(i,"y"),{x:n.x+Math.cos(r)*i,y:n.y+Math.sin(r)*i}},e.prototype.invertPoint=function(t){var e,n=this.getCenter(),r=[t.x-n.x,t.y-n.y],i=this.startAngle,o=this.endAngle;this.isReflect("x")&&(i=(e=[o,i])[0],o=e[1]);var a=[1,0,0,0,1,0,0,0,1];R.a.leftRotate(a,a,i);var s=[1,0,0];R.d.transformMat3(s,s,a);var l=[s[0],s[1]],u=R.a.angleTo(l,r,o<i);Object(c.N)(u,2*Math.PI)&&(u=0);var h=R.c.length(r),d=u/(o-i);d=o-i>0?d:-d;var f=this.invertDim(h,"y"),p={x:0,y:0};return p.x=this.isTransposed?f:d,p.y=this.isTransposed?d:f,p},e.prototype.getCenter=function(){return this.circleCenter},e.prototype.getOneBox=function(){var t=this.startAngle,e=this.endAngle;if(Math.abs(e-t)>=2*Math.PI)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var n=[0,Math.cos(t),Math.cos(e)],r=[0,Math.sin(t),Math.sin(e)],i=Math.min(t,e);i<Math.max(t,e);i+=Math.PI/18)n.push(Math.cos(i)),r.push(Math.sin(i));return{minX:Math.min.apply(Math,n),maxX:Math.max.apply(Math,n),minY:Math.min.apply(Math,r),maxY:Math.max.apply(Math,r)}},e}(N),H={},Y=function(t,e){H[t.toLowerCase()]=e};Y("rect",z),Y("cartesian",z),Y("polar",$),Y("helix",W);var V=n(555),G=V.Axis.Line,K=V.Axis.Circle,X=V.Grid.Line,U=V.Grid.Circle,q=V.Legend.Category,Z=V.Legend.Continuous,Q=V.Tooltip.Html;function J(t){return 1===Array.from(new Set(t)).length}function tt(t){return(Object(c.bb)(t)+Object(c.Y)(t))/2}function et(t,e,n,r){return{x:t+n*Math.cos(r),y:e+n*Math.sin(r)}}function nt(t,e,n,r,i,o){void 0===o&&(o=0);var a=et(t,e,n,r),s=et(t,e,n,i),c=et(t,e,o,r),l=et(t,e,o,i);if(i-r==2*Math.PI){var u=et(t,e,n,r+Math.PI),h=et(t,e,o,r+Math.PI),d=[["M",a.x,a.y],["A",n,n,0,1,1,u.x,u.y],["A",n,n,0,1,1,s.x,s.y],["M",c.x,c.y]];return o&&(d.push(["A",o,o,0,1,0,h.x,h.y]),d.push(["A",o,o,0,1,0,l.x,l.y])),d.push(["M",a.x,a.y]),d.push(["Z"]),d}var f=i-r<=Math.PI?0:1,p=[["M",a.x,a.y],["A",n,n,0,f,1,s.x,s.y],["L",l.x,l.y]];return o&&p.push(["A",o,o,0,f,0,c.x,c.y]),p.push(["L",a.x,a.y]),p.push(["Z"]),p}function rt(t,e,n,r,i){var o=et(t,e,n,r),a=et(t,e,n,i);if(Object(c.N)(i-r,2*Math.PI)){var s=et(t,e,n,r+Math.PI);return[["M",o.x,o.y],["A",n,n,0,1,1,s.x,s.y],["A",n,n,0,1,1,o.x,o.y],["A",n,n,0,1,0,s.x,s.y],["A",n,n,0,1,0,o.x,o.y],["Z"]]}var l=i-r<=Math.PI?0:1;return[["M",o.x,o.y],["A",n,n,0,l,1,a.x,a.y]]}function it(t,e){var n,r,i=function(t){if(Object(c.G)(t))return null;var e=t[0].x,n=t[0].x,r=t[0].y,i=t[0].y;return Object(c.j)(t,(function(t){e=e>t.x?t.x:e,n=n<t.x?t.x:n,r=r>t.y?t.y:r,i=i<t.y?t.y:i})),{minX:e,maxX:n,minY:r,maxY:i,centerX:(e+n)/2,centerY:(r+i)/2}}(t.points),o=e.startAngle,a=e.endAngle-o;return e.isTransposed?(n=i.maxY*a,r=i.minY*a):(n=i.maxX*a,r=i.minX*a),{startAngle:r+=o,endAngle:n+=o}}function ot(t,e){var n=t.attr(),r=e.attr();return Object(c.j)(n,(function(t,e){void 0===r[e]&&(r[e]=void 0)})),r}function at(t,e,n){var r=Math.min(e,n),i=Math.max(e,n);return t>=r&&t<=i}function st(t,e){return"object"==typeof t&&e.forEach((function(e){delete t[e]})),t}function ct(t,e,n){var r,i;void 0===e&&(e=[]),void 0===n&&(n=new Map);try{for(var o=Object(s.i)(t),a=o.next();!a.done;a=o.next()){var c=a.value;n.has(c)||(e.push(c),n.set(c,!0))}}catch(t){r={error:t}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return e}var lt=function(){function t(t,e,n,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),this.x=t,this.y=e,this.height=r,this.width=n}return t.fromRange=function(e,n,r,i){return new t(e,n,r-e,i-n)},t.fromObject=function(e){return new t(e.minX,e.minY,e.width,e.height)},Object.defineProperty(t.prototype,"minX",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxX",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minY",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxY",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tl",{get:function(){return{x:this.x,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tr",{get:function(){return{x:this.maxX,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bl",{get:function(){return{x:this.x,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"br",{get:function(){return{x:this.maxX,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return{x:this.x+this.width/2,y:this.minY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return{x:this.maxX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return{x:this.x+this.width/2,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return{x:this.minX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height},t.prototype.contains=function(t){return t.minX>=this.minX&&t.maxX<=this.maxX&&t.minY>=this.minY&&t.maxY<=this.maxY},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.add=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.clone();return Object(c.j)(t,(function(t){n.x=Math.min(t.x,n.x),n.y=Math.min(t.y,n.y),n.width=Math.max(t.maxX,n.maxX)-n.x,n.height=Math.max(t.maxY,n.maxY)-n.y})),n},t.prototype.merge=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.clone();return Object(c.j)(t,(function(t){n.x=Math.max(t.x,n.x),n.y=Math.max(t.y,n.y),n.width=Math.min(t.maxX,n.maxX)-n.x,n.height=Math.min(t.maxY,n.maxY)-n.y})),n},t.prototype.cut=function(e,n){var r=e.width,i=e.height;switch(n){case o.TOP:case o.TOP_LEFT:case o.TOP_RIGHT:return t.fromRange(this.minX,this.minY+i,this.maxX,this.maxY);case o.RIGHT:case o.RIGHT_TOP:case o.RIGHT_BOTTOM:return t.fromRange(this.minX,this.minY,this.maxX-r,this.maxY);case o.BOTTOM:case o.BOTTOM_LEFT:case o.BOTTOM_RIGHT:return t.fromRange(this.minX,this.minY,this.maxX,this.maxY-i);case o.LEFT:case o.LEFT_TOP:case o.LEFT_BOTTOM:return t.fromRange(this.minX+r,this.minY,this.maxX,this.maxY);default:return this}},t.prototype.shrink=function(e){var n=Object(s.e)(e,4),r=n[0],i=n[1],o=n[2],a=n[3];return new t(this.x+a,this.y+r,this.width-a-i,this.height-r-o)},t.prototype.expand=function(e){var n=Object(s.e)(e,4),r=n[0],i=n[1],o=n[2],a=n[3];return new t(this.x-a,this.y-r,this.width+a+i,this.height+r+o)},t.prototype.exceed=function(t){return[Math.max(-this.minY+t.minY,0),Math.max(this.maxX-t.maxX,0),Math.max(this.maxY-t.maxY,0),Math.max(-this.minX+t.minX,0)]},t.prototype.collide=function(t){return this.minX<t.maxX&&this.maxX>t.minX&&this.minY<t.maxY&&this.maxY>t.minY},t.prototype.size=function(){return this.width*this.height},t.prototype.isPointIn=function(t){return t.x>=this.minX&&t.x<=this.maxX&&t.y>=this.minY&&t.y<=this.maxY},t}();function ut(t){if(t.isPolar&&!t.isTransposed)return(t.endAngle-t.startAngle)*t.getRadius();var e=t.convert({x:0,y:0}),n=t.convert({x:1,y:0});return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function ht(t,e){var n=t.getCenter();return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function dt(t,e){var n=t.getCenter();return Math.atan2(e.y-n.y,e.x-n.x)}function ft(t,e){void 0===e&&(e=0);var n,r=t.start,i=t.end,o=t.getWidth(),a=t.getHeight();if(t.isPolar){var s=t.startAngle,c=t.endAngle,l=t.getCenter(),u=t.getRadius();return{type:"path",startState:{path:nt(l.x,l.y,u+e,s,s)},endState:function(t){var n=(c-s)*t+s;return{path:nt(l.x,l.y,u+e,s,n)}},attrs:{path:nt(l.x,l.y,u+e,s,c)}}}return n=t.isTransposed?{height:a+2*e}:{width:o+2*e},{type:"rect",startState:{x:r.x-e,y:i.y-e,width:t.isTransposed?o+2*e:0,height:t.isTransposed?0:a+2*e},endState:n,attrs:{x:r.x-e,y:i.y-e,width:o+2*e,height:a+2*e}}}var pt=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/;function gt(t,e,n,r){return void 0===e&&(e={}),e.type?e.type:"identity"!==t.type&&v.includes(n)&&["interval"].includes(r)||t.isCategory?"cat":t.type}function vt(t,e,n){var r=e||[];if(Object(c.M)(t)||Object(c.K)(Object(c.o)(r,t))&&Object(c.G)(n))return new(Object(B.c)("identity"))({field:t.toString(),values:[t]});var i=Object(c.yb)(r,t),o=Object(c.s)(n,"type",function(t){var e="linear";return pt.test(t)?e="timeCat":Object(c.Q)(t)&&(e="cat"),e}(i[0]));return new(Object(B.c)(o))(Object(s.a)({field:t,values:i},n))}function yt(t){return t.alias||t.field}function mt(t,e,n){var r,i=t.values.length;if(1===i)r=[.5,1];else{var o=0;r=function(t){if(t.isPolar){var e=t.startAngle;return t.endAngle-e==2*Math.PI}return!1}(e)?e.isTransposed?[(o=1/i*Object(c.s)(n,"widthRatio.multiplePie",1/1.3))/2,1-o/2]:[0,1-1/i]:[o=1/i/2,1-o]}return r}function bt(t,e){var n={start:{x:0,y:0},end:{x:0,y:0}};t.isRect?n=function(t){var e,n;switch(t){case o.TOP:e={x:0,y:1},n={x:1,y:1};break;case o.RIGHT:e={x:1,y:0},n={x:1,y:1};break;case o.BOTTOM:e={x:0,y:0},n={x:1,y:0};break;case o.LEFT:e={x:0,y:0},n={x:0,y:1};break;default:e=n={x:0,y:0}}return{start:e,end:n}}(e):t.isPolar&&(n=function(t){var e,n;return t.isTransposed?(e={x:0,y:0},n={x:1,y:0}):(e={x:0,y:0},n={x:0,y:1}),{start:e,end:n}}(t));var r=n.start,i=n.end;return{start:t.convert(r),end:t.convert(i)}}function xt(t){var e=t.start,n=t.end;return e.x===n.x}function Ot(t,e){var n=t.start,r=t.end;return xt(t)?(n.y-r.y)*(e.x-n.x)>0?1:-1:(r.x-n.x)*(n.y-e.y)>0?-1:1}function jt(t,e){var n=Object(c.s)(t,["components","axis"],{});return Object(c.h)({},Object(c.s)(n,["common"],{}),Object(c.h)({},Object(c.s)(n,[e],{})))}function wt(t,e,n){var r=Object(c.s)(t,["components","axis"],{});return Object(c.h)({},Object(c.s)(r,["common","title"],{}),Object(c.h)({},Object(c.s)(r,[e,"title"],{})),n)}function Ct(t){var e=t.x,n=t.y,r=t.circleCenter,i=n.start>n.end,o=t.isTransposed?t.convert({x:i?0:1,y:0}):t.convert({x:0,y:i?0:1}),a=[o.x-r.x,o.y-r.y],s=[1,0],c=o.y>r.y?R.c.angle(a,s):-1*R.c.angle(a,s),l=c+(e.end-e.start);return{center:r,radius:Math.sqrt(Math.pow(o.x-r.x,2)+Math.pow(o.y-r.y,2)),startAngle:c,endAngle:l}}function _t(t,e){return Object(c.D)(t)?!1!==t&&{}:Object(c.s)(t,[e])}function Mt(t,e){return Object(c.s)(t,"position",e)}function St(t,e){return Object(c.s)(e,["title","text"],yt(t))}var Et=function(){function t(t,e){this.destroyed=!1,this.facets=[],this.view=t,this.cfg=Object(c.h)({},this.getDefaultCfg(),e)}return t.prototype.init=function(){this.container||(this.container=this.createContainer());var t=this.view.getData();this.facets=this.generateFacets(t)},t.prototype.render=function(){this.renderViews()},t.prototype.update=function(){},t.prototype.clear=function(){this.clearFacetViews()},t.prototype.destroy=function(){this.clear(),this.container&&(this.container.remove(!0),this.container=void 0),this.destroyed=!0,this.view=void 0,this.facets=[]},t.prototype.facetToView=function(t){var e=t.region,n=t.data,r=t.padding,i=void 0===r?this.cfg.padding:r,o=this.view.createView({region:e,padding:i});o.data(n||[]),t.view=o,this.beforeEachView(o,t);var a=this.cfg.eachView;return a&&a(o,t),this.afterEachView(o,t),o},t.prototype.createContainer=function(){return this.view.getLayer(i.FORE).addGroup()},t.prototype.renderViews=function(){this.createFacetViews()},t.prototype.createFacetViews=function(){var t=this;return this.facets.map((function(e){return t.facetToView(e)}))},t.prototype.clearFacetViews=function(){var t=this;Object(c.j)(this.facets,(function(e){e.view&&(t.view.removeView(e.view),e.view=void 0)}))},t.prototype.parseSpacing=function(){var t=this.view.viewBBox,e=t.width,n=t.height;return this.cfg.spacing.map((function(t,r){return Object(c.M)(t)?t/(0===r?e:n):parseFloat(t)/100}))},t.prototype.getFieldValues=function(t,e){var n=[],r={};return Object(c.j)(t,(function(t){var i=t[e];Object(c.K)(i)||r[i]||(n.push(i),r[i]=!0)})),n},t.prototype.getRegion=function(t,e,n,r){var i=Object(s.e)(this.parseSpacing(),2),o=i[0],a=i[1],c=(1+o)/(0===e?1:e)-o,l=(1+a)/(0===t?1:t)-a,u={x:(c+o)*n,y:(l+a)*r};return{start:u,end:{x:u.x+c,y:u.y+l}}},t.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,spacing:[0,0],padding:10,fields:[]}},t.prototype.getDefaultTitleCfg=function(){return{style:{fontSize:14,fill:"#666",fontFamily:this.view.getTheme().fontFamily}}},t.prototype.processAxis=function(t,e){var n=t.getOptions(),r=n.coordinate,i=t.geometries;if("rect"===Object(c.s)(r,"type","rect")&&i.length){Object(c.K)(n.axes)&&(n.axes={});var o=n.axes,a=Object(s.e)(i[0].getXYFields(),2),l=a[0],u=a[1],h=_t(o,l),d=_t(o,u);!1!==h&&(n.axes[l]=this.getXAxisOption(l,o,h,e)),!1!==d&&(n.axes[u]=this.getYAxisOption(u,o,d,e))}},t.prototype.getFacetDataFilter=function(t){return function(e){return Object(c.k)(t,(function(t){var n=t.field,r=t.value;return!(!Object(c.K)(r)&&n)||e[n]===r}))}},t}(),kt={},It=function(t,e){kt[Object(c.V)(t)]=e},At=function(){function t(t,e){this.context=t,this.cfg=e,t.addAction(this)}return t.prototype.applyCfg=function(t){Object(c.b)(this,t)},t.prototype.init=function(){this.applyCfg(this.cfg)},t.prototype.destroy=function(){this.context.removeAction(this),this.context=null},t}(),Pt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.execute=function(){this.callback&&this.callback(this.context)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.callback=null},e}(At),Tt={};function Bt(t){var e=Tt[t];return Object(c.s)(e,"ActionClass")}function Lt(t,e,n){Tt[t]={ActionClass:e,cfg:n}}function Dt(t,e){var n=new Pt(e);return n.callback=t,n.name="callback",n}function Ft(t,e){for(var n=[t[0]],r=1,i=t.length;r<i;r+=2){var o=e.convert({x:t[r],y:t[r+1]});n.push(o.x,o.y)}return n}function Rt(t,e){var n=e.isTransposed,r=t[1],i=t[6],o=t[7],a=e.convert({x:i,y:o});return["A",r,r,0,0,n?0:1,a.x,a.y]}function Nt(t,e,n){for(var r=!!e,i=[],o=0,a=t.length;o<a;o+=2)i.push([t[o],t[o+1]]);var c,l,u,h=function(t,e,n,r){var i,o,a,c,l,u,h,d,f=[],p=!!r;if(p){c=(i=Object(s.e)(r,2))[0],l=i[1];for(var g=0,v=t.length;g<v;g++){var y=t[g];c=R.c.min([0,0],c,y),l=R.c.max([0,0],l,y)}}g=0;for(var m=t.length;g<m;g++){y=t[g];if(0!==g||n)if(g!==m-1||n){o=t[n?g?g-1:m-1:g-1],a=t[n?(g+1)%m:g+1];var b=[0,0];b=R.c.sub(b,a,o),b=R.c.scale(b,b,e);var x=R.c.distance(y,o),O=R.c.distance(y,a),j=x+O;0!==j&&(x/=j,O/=j);var w=R.c.scale([0,0],b,-x),C=R.c.scale([0,0],b,O);h=R.c.add([0,0],y,w),u=R.c.add([0,0],y,C),u=R.c.min([0,0],u,R.c.max([0,0],a,y)),u=R.c.max([0,0],u,R.c.min([0,0],a,y)),w=R.c.sub([0,0],u,y),w=R.c.scale([0,0],w,-x/O),h=R.c.add([0,0],y,w),h=R.c.min([0,0],h,R.c.max([0,0],o,y)),h=R.c.max([0,0],h,R.c.min([0,0],o,y)),C=R.c.sub([0,0],y,h),C=R.c.scale([0,0],C,O/x),u=R.c.add([0,0],y,C),p&&(h=R.c.max([0,0],h,c),h=R.c.min([0,0],h,l),u=R.c.max([0,0],u,c),u=R.c.min([0,0],u,l)),f.push(d),f.push(h),d=u}else h=y,f.push(d),f.push(h);else d=y}return n&&f.push(f.shift()),f}(i,.4,r,n),d=i.length,f=[];for(o=0;o<d-1;o++)c=h[2*o],l=h[2*o+1],u=i[o+1],f.push(["C",c[0],c[1],l[0],l[1],u[0],u[1]]);return r&&(c=h[d],l=h[d+1],u=i[0],f.push(["C",c[0],c[1],l[0],l[1],u[0],u[1]])),f}function zt(t,e){return function(t,e){var n=[];if(t.length){n.push(["M",t[0].x,t[0].y]);for(var r=1,i=t.length;r<i;r+=1){var o=t[r];n.push(["L",o.x,o.y])}e&&n.push(["Z"])}return n}(t,e)}function Wt(t,e,n){var r=[],i=t[0],o=null;if(t.length<=2)return zt(t,e);for(var a=0,s=t.length;a<s;a++){var c=t[a];o&&o.x===c.x&&o.y===c.y||(r.push(c.x),r.push(c.y),o=c)}var l=Nt(r,e,n||[[0,0],[1,1]]);return l.unshift(["M",i.x,i.y]),l}function $t(t,e){var n,r,i,o=[];return Object(c.j)(e,(function(a,s){switch(a[0].toLowerCase()){case"m":case"c":case"q":o.push(Ft(a,t));break;case"l":n=e[s-1],r=a,i=t.isTransposed,(i?n[n.length-2]===r[1]:n[n.length-1]===r[2])?o=o.concat(function(t,e,n){var r=n.isTransposed,i=n.startAngle,o=n.endAngle,a="a"===t[0].toLowerCase()?{x:t[6],y:t[7]}:{x:t[1],y:t[2]},s={x:e[1],y:e[2]},c=[],l=r?"y":"x",u=Math.abs(s[l]-a[l])*(o-i),h=s[l]>=a[l]?1:0,d=u>Math.PI?1:0,f=n.convert(s),p=ht(n,f);if(p>=.5)if(u===2*Math.PI){var g={x:(s.x+a.x)/2,y:(s.y+a.y)/2},v=n.convert(g);c.push(["A",p,p,0,d,h,v.x,v.y]),c.push(["A",p,p,0,d,h,f.x,f.y])}else c.push(["A",p,p,0,d,h,f.x,f.y]);return c}(n,r,t)):o.push(Ft(a,t));break;case"a":o.push(Rt(a,t));break;case"z":default:o.push(a)}})),function(t){Object(c.j)(t,(function(e,n){if("a"===e[0].toLowerCase()){var r=t[n-1],i=t[n+1];i&&"a"===i[0].toLowerCase()?r&&"l"===r[0].toLowerCase()&&(r[0]="M"):r&&"a"===r[0].toLowerCase()&&i&&"l"===i[0].toLowerCase()&&(i[0]="M")}}))}(o),o}n(548);var Ht="\t\n\v\f\r \u2028\u2029",Yt=new RegExp("([a-z])["+Ht+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+Ht+"]*,?["+Ht+"]*)+)","ig"),Vt=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+Ht+"]*,?["+Ht+"]*","ig");function Gt(t){if(!t)return null;if(Object(c.C)(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(Yt,(function(t,r,i){var o=[],a=r.toLowerCase();if(i.replace(Vt,(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}Math.PI;var Kt=function(t,e,n){return t>=e&&t<=n};function Xt(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function Ut(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 qt(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(Ut(a,s,[e,n]))return!0;Xt(a[1]-n)>0!=Xt(s[1]-n)>0&&Xt(e-(n-a[1])*(a[0]-s[0])/(a[1]-s[1])-a[0])<0&&(r=!r)}return r}function Zt(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}function Qt(t,e){var n=!1;return Object(c.j)(t,(function(t){if(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,c=r.x-n.x,l=r.y-n.y,u=a*l-s*c,h=null;if(u*u>.001*(a*a+s*s)*(c*c+l*l)){var d=(i*l-o*c)/u,f=(i*s-o*a)/u;Kt(d,0,1)&&Kt(f,0,1)&&(h={x:t.x+d*a,y:t.y+d*s})}return h}(t.from,t.to,e.from,e.to))return n=!0,!1})),n}function Jt(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)}}function te(t,e){return ne(t.event.target,e)}function ee(t,e){var n=t.getCanvasBBox(),r=n.width,i=n.height;return r>0&&i>0&&(r>=e||i>=e)}function ne(t,e){var n=t.getCanvasBBox();return ee(t,e)?n:null}function re(t,e){return t.event.maskShapes.map((function(t){return ne(t,e)})).filter((function(t){return!!t}))}function ie(t,e){return ee(t,e)?t.attr("path"):null}function oe(t){var e,n=t.event.target;return n&&(e=n.get("element")),e}function ae(t){var e,n=t.event.target;return n&&(e=n.get("delegateObject")),e}function se(t){var e=t.event.gEvent;return!(e&&e.fromShape&&e.toShape&&e.fromShape.get("element")===e.toShape.get("element"))}function ce(t){return t&&t.component&&t.component.isList()}function le(t){return t&&t.component&&t.component.isSlider()}function ue(t){var e=t.event.target;return e&&"mask"===(null==e?void 0:e.get("name"))||he(t)}function he(t){var e;return"multi-mask"===(null===(e=t.event.target)||void 0===e?void 0:e.get("name"))}function de(t,e){var n=t.event.target;if(he(t))return function(t,e){if("path"===t.event.target.get("type")){var n=function(t,e){return t.event.maskShapes.map((function(t){return ie(t,e)}))}(t,e);return n.length>0?n.flatMap((function(e){return xe(t.view,e)})):null}var r=re(t,e);if(r.length>0)return r.flatMap((function(e){return me(t.view,e)}));return null}(t,e);if("path"===n.get("type")){var r=function(t,e){return ie(t.event.target,e)}(t,e);if(!r)return;return xe(t.view,r)}var i=te(t,e);return i?me(t.view,i):null}function fe(t,e,n){if(he(t))return function(t,e,n){var r=re(t,n);if(r.length>0)return r.flatMap((function(n){return pe(n,t,e)}));return null}(t,e,n);var r=te(t,n);return r?pe(r,t,e):null}function pe(t,e,n){var r=e.view,i=_e(r,n,{x:t.x,y:t.y}),o=_e(r,n,{x:t.maxX,y:t.maxY});return me(n,{minX:i.x,minY:i.y,maxX:o.x,maxY:o.y})}function ge(t){var e=t.geometries,n=[];return Object(c.j)(e,(function(t){var e=t.elements;n=n.concat(e)})),t.views&&t.views.length&&Object(c.j)(t.views,(function(t){n=n.concat(ge(t))})),n}function ve(t,e){var n=t.geometries,r=[];return Object(c.j)(n,(function(t){var n=t.getElementsBy((function(t){return t.hasState(e)}));r=r.concat(n)})),r}function ye(t,e){var n=t.getModel().data;return Object(c.C)(n)?n[0][e]:n[e]}function me(t,e){var n=ge(t),r=[];return Object(c.j)(n,(function(t){var n,i,o=t.shape.getCanvasBBox();n=e,(i=o).minX>n.maxX||i.maxX<n.minX||i.minY>n.maxY||i.maxY<n.minY||r.push(t)})),r}function be(t){var e=[];return Object(c.j)(t,(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}function xe(t,e){var n=ge(t),r=be(e);return n.filter((function(t){var e,n,i=t.shape;if("path"===i.get("type"))e=be(i.attr("path"));else{var o=i.getCanvasBBox();e=[[(n=o).minX,n.minY],[n.maxX,n.minY],[n.maxX,n.maxY],[n.minX,n.maxY]]}return function(t,e){if(t.length<2||e.length<2)return!1;var n,r,i=Jt(t),o=Jt(e);if(n=i,(r=o).minX>n.maxX||r.maxX<n.minX||r.minY>n.maxY||r.maxY<n.minY)return!1;var a=!1;if(Object(c.j)(e,(function(e){if(qt(t,e[0],e[1]))return a=!0,!1})),a)return!0;if(Object(c.j)(t,(function(t){if(qt(e,t[0],t[1]))return a=!0,!1})),a)return!0;var s=Zt(t),l=Zt(e),u=!1;return Object(c.j)(l,(function(t){if(Qt(s,t))return u=!0,!1})),u}(r,e)}))}function Oe(t){return t.getComponents().map((function(t){return t.component}))}function je(t,e){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function we(t,e){return t.x<=e.x&&t.maxX>=e.x&&t.y<=e.y&&t.maxY>e.y}function Ce(t){var e=t.parent,n=null;return e&&(n=e.views.filter((function(e){return e!==t}))),n}function _e(t,e,n){var r=function(t,e){return t.getCoordinate().invert(e)}(t,n);return e.getCoordinate().convert(r)}function Me(t,e,n,r){var i=!1;return Object(c.j)(t,(function(t){if(t[n]===e[n]&&t[r]===e[r])return i=!0,!1})),i}function Se(t,e){var n=t.getScaleByField(e);return!n&&t.views&&Object(c.j)(t.views,(function(t){if(n=Se(t,e))return!1})),n}var Ee=function(){function t(t){this.actions=[],this.event=null,this.cacheMap={},this.view=t}return t.prototype.cache=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length)return this.cacheMap[t[0]];2===t.length&&(this.cacheMap[t[0]]=t[1])},t.prototype.getAction=function(t){return this.actions.find((function(e){return e.name===t}))},t.prototype.addAction=function(t){this.actions.push(t)},t.prototype.removeAction=function(t){var e=this.actions,n=this.actions.indexOf(t);n>=0&&e.splice(n,1)},t.prototype.getCurrentPoint=function(){var t=this.event;return t?t.target instanceof HTMLElement?this.view.getCanvas().getPointByClient(t.clientX,t.clientY):{x:t.x,y:t.y}:null},t.prototype.getCurrentShape=function(){return Object(c.s)(this.event,["gEvent","shape"])},t.prototype.isInPlot=function(){var t=this.getCurrentPoint();return!!t&&this.view.isPointInPlot(t)},t.prototype.isInShape=function(t){var e=this.getCurrentShape();return!!e&&e.get("name")===t},t.prototype.isInComponent=function(t){var e=Oe(this.view),n=this.getCurrentPoint();return!!n&&!!e.find((function(e){var r=e.getBBox();return t?e.get("name")===t&&we(r,n):we(r,n)}))},t.prototype.destroy=function(){Object(c.j)(this.actions.slice(),(function(t){t.destroy()})),this.view=null,this.event=null,this.actions=null,this.cacheMap=null},t}(),ke=function(){function t(t,e){this.view=t,this.cfg=e}return t.prototype.init=function(){this.initEvents()},t.prototype.initEvents=function(){},t.prototype.clearEvents=function(){},t.prototype.destroy=function(){this.clearEvents()},t}();function Ie(t,e,n){var r=t.split(":"),i=r[0],o=e.getAction(i)||function(t,e){var n=Tt[t],r=null;return n&&((r=new(0,n.ActionClass)(e,n.cfg)).name=t,r.init()),r}(i,e);if(!o)throw new Error("There is no action named ".concat(i));return{action:o,methodName:r[1],arg:n}}function Ae(t){var e=t.action,n=t.methodName,r=t.arg;if(!e[n])throw new Error("Action(".concat(e.name,") doesn't have a method called ").concat(n));e[n](r)}var Pe="start",Te="showEnable",Be="end",Le="rollback",De="processing",Fe=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.callbackCaches={},r.emitCaches={},r.steps=n,r}return Object(s.c)(e,t),e.prototype.init=function(){this.initContext(),t.prototype.init.call(this)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.steps=null,this.context&&(this.context.destroy(),this.context=null),this.callbackCaches=null,this.view=null},e.prototype.initEvents=function(){var t=this;Object(c.j)(this.steps,(function(e,n){Object(c.j)(e,(function(e){var r=t.getActionCallback(n,e);r&&t.bindEvent(e.trigger,r)}))}))},e.prototype.clearEvents=function(){var t=this;Object(c.j)(this.steps,(function(e,n){Object(c.j)(e,(function(e){var r=t.getActionCallback(n,e);r&&t.offEvent(e.trigger,r)}))}))},e.prototype.initContext=function(){var t=this.view,e=new Ee(t);this.context=e;var n=this.steps;Object(c.j)(n,(function(t){Object(c.j)(t,(function(t){if(Object(c.I)(t.action))t.actionObject={action:Dt(t.action,e),methodName:"execute"};else if(Object(c.Q)(t.action))t.actionObject=Ie(t.action,e,t.arg);else if(Object(c.C)(t.action)){var n=t.action,r=Object(c.C)(t.arg)?t.arg:[t.arg];t.actionObject=[],Object(c.j)(n,(function(n,i){t.actionObject.push(Ie(n,e,r[i]))}))}}))}))},e.prototype.isAllowStep=function(t){var e=this.currentStepName,n=this.steps;if(e===t)return!0;if(t===Te)return!0;if(t===De)return e===Pe;if(t===Pe)return e!==De;if(t===Be)return e===De||e===Pe;if(t===Le){if(n[Be])return e===Be;if(e===Pe)return!0}return!1},e.prototype.isAllowExecute=function(t,e){if(this.isAllowStep(t)){var n=this.getKey(t,e);return(!e.once||!this.emitCaches[n])&&(!e.isEnable||e.isEnable(this.context))}return!1},e.prototype.enterStep=function(t){this.currentStepName=t,this.emitCaches={}},e.prototype.afterExecute=function(t,e){t!==Te&&this.currentStepName!==t&&this.enterStep(t);var n=this.getKey(t,e);this.emitCaches[n]=!0},e.prototype.getKey=function(t,e){return t+e.trigger+e.action},e.prototype.getActionCallback=function(t,e){var n=this,r=this.context,i=this.callbackCaches,o=e.actionObject;if(e.action&&o){var a=this.getKey(t,e);if(!i[a]){var s=function(i){r.event=i,n.isAllowExecute(t,e)?(Object(c.C)(o)?Object(c.j)(o,(function(t){r.event=i,Ae(t)})):(r.event=i,Ae(o)),n.afterExecute(t,e),e.callback&&(r.event=i,e.callback(r))):r.event=null};e.debounce?i[a]=Object(c.g)(s,e.debounce.wait,e.debounce.immediate):e.throttle?i[a]=Object(c.qb)(s,e.throttle.wait,{leading:e.throttle.leading,trailing:e.throttle.trailing}):i[a]=s}return i[a]}return null},e.prototype.bindEvent=function(t,e){var n=t.split(":");"window"===n[0]?window.addEventListener(n[1],e):"document"===n[0]?document.addEventListener(n[1],e):this.view.on(t,e)},e.prototype.offEvent=function(t,e){var n=t.split(":");"window"===n[0]?window.removeEventListener(n[1],e):"document"===n[0]?document.removeEventListener(n[1],e):this.view.off(t,e)},e}(ke),Re={};function Ne(t,e){Re[Object(c.V)(t)]=e}function ze(t,e,n){var r=function(t){return Re[Object(c.V)(t)]}(t);if(!r)return null;if(Object(c.P)(r)){var i=Object(c.db)(Object(c.e)(r),n);return new Fe(e,i)}return new r(e,n)}function We(t){var e,n={point:{default:{fill:t.pointFillColor,r:t.pointSize,stroke:t.pointBorderColor,lineWidth:t.pointBorder,fillOpacity:t.pointFillOpacity},active:{stroke:t.pointActiveBorderColor,lineWidth:t.pointActiveBorder},selected:{stroke:t.pointSelectedBorderColor,lineWidth:t.pointSelectedBorder},inactive:{fillOpacity:t.pointInactiveFillOpacity,strokeOpacity:t.pointInactiveBorderOpacity}},hollowPoint:{default:{fill:t.hollowPointFillColor,lineWidth:t.hollowPointBorder,stroke:t.hollowPointBorderColor,strokeOpacity:t.hollowPointBorderOpacity,r:t.hollowPointSize},active:{stroke:t.hollowPointActiveBorderColor,strokeOpacity:t.hollowPointActiveBorderOpacity},selected:{lineWidth:t.hollowPointSelectedBorder,stroke:t.hollowPointSelectedBorderColor,strokeOpacity:t.hollowPointSelectedBorderOpacity},inactive:{strokeOpacity:t.hollowPointInactiveBorderOpacity}},area:{default:{fill:t.areaFillColor,fillOpacity:t.areaFillOpacity,stroke:null},active:{fillOpacity:t.areaActiveFillOpacity},selected:{fillOpacity:t.areaSelectedFillOpacity},inactive:{fillOpacity:t.areaInactiveFillOpacity}},hollowArea:{default:{fill:null,stroke:t.hollowAreaBorderColor,lineWidth:t.hollowAreaBorder,strokeOpacity:t.hollowAreaBorderOpacity},active:{fill:null,lineWidth:t.hollowAreaActiveBorder},selected:{fill:null,lineWidth:t.hollowAreaSelectedBorder},inactive:{strokeOpacity:t.hollowAreaInactiveBorderOpacity}},interval:{default:{fill:t.intervalFillColor,fillOpacity:t.intervalFillOpacity},active:{stroke:t.intervalActiveBorderColor,lineWidth:t.intervalActiveBorder},selected:{stroke:t.intervalSelectedBorderColor,lineWidth:t.intervalSelectedBorder},inactive:{fillOpacity:t.intervalInactiveFillOpacity,strokeOpacity:t.intervalInactiveBorderOpacity}},hollowInterval:{default:{fill:t.hollowIntervalFillColor,stroke:t.hollowIntervalBorderColor,lineWidth:t.hollowIntervalBorder,strokeOpacity:t.hollowIntervalBorderOpacity},active:{stroke:t.hollowIntervalActiveBorderColor,lineWidth:t.hollowIntervalActiveBorder,strokeOpacity:t.hollowIntervalActiveBorderOpacity},selected:{stroke:t.hollowIntervalSelectedBorderColor,lineWidth:t.hollowIntervalSelectedBorder,strokeOpacity:t.hollowIntervalSelectedBorderOpacity},inactive:{stroke:t.hollowIntervalInactiveBorderColor,lineWidth:t.hollowIntervalInactiveBorder,strokeOpacity:t.hollowIntervalInactiveBorderOpacity}},line:{default:{stroke:t.lineBorderColor,lineWidth:t.lineBorder,strokeOpacity:t.lineBorderOpacity,fill:null,lineAppendWidth:10,lineCap:"round",lineJoin:"round"},active:{lineWidth:t.lineActiveBorder},selected:{lineWidth:t.lineSelectedBorder},inactive:{strokeOpacity:t.lineInactiveBorderOpacity}}},r=function(t){return{title:{autoRotate:!0,position:"center",spacing:t.axisTitleSpacing,style:{fill:t.axisTitleTextFillColor,fontSize:t.axisTitleTextFontSize,lineHeight:t.axisTitleTextLineHeight,textBaseline:"middle",fontFamily:t.fontFamily},iconStyle:{fill:t.axisDescriptionIconFillColor}},label:{autoRotate:!1,autoEllipsis:!1,autoHide:{type:"equidistance",cfg:{minGap:6}},offset:t.axisLabelOffset,style:{fill:t.axisLabelFillColor,fontSize:t.axisLabelFontSize,lineHeight:t.axisLabelLineHeight,fontFamily:t.fontFamily}},line:{style:{lineWidth:t.axisLineBorder,stroke:t.axisLineBorderColor}},grid:{line:{type:"line",style:{stroke:t.axisGridBorderColor,lineWidth:t.axisGridBorder,lineDash:t.axisGridLineDash}},alignTick:!0,animate:!0},tickLine:{style:{lineWidth:t.axisTickLineBorder,stroke:t.axisTickLineBorderColor},alignTick:!0,length:t.axisTickLineLength},subTickLine:null,animate:!0}}(t),i=function(t){return{title:null,marker:{symbol:"circle",spacing:t.legendMarkerSpacing,style:{r:t.legendCircleMarkerSize,fill:t.legendMarkerColor}},itemName:{spacing:5,style:{fill:t.legendItemNameFillColor,fontFamily:t.fontFamily,fontSize:t.legendItemNameFontSize,lineHeight:t.legendItemNameLineHeight,fontWeight:t.legendItemNameFontWeight,textAlign:"start",textBaseline:"middle"}},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:"#D8D8D8"},markerStyle:{fill:"#D8D8D8",stroke:"#D8D8D8"}},inactive:{nameStyle:{fill:"#D8D8D8"},markerStyle:{opacity:.2}}},flipPage:!0,pageNavigator:{marker:{style:{size:t.legendPageNavigatorMarkerSize,inactiveFill:t.legendPageNavigatorMarkerInactiveFillColor,inactiveOpacity:t.legendPageNavigatorMarkerInactiveFillOpacity,fill:t.legendPageNavigatorMarkerFillColor,opacity:t.legendPageNavigatorMarkerFillOpacity}},text:{style:{fill:t.legendPageNavigatorTextFillColor,fontSize:t.legendPageNavigatorTextFontSize}}},animate:!1,maxItemWidth:200,itemSpacing:t.legendItemSpacing,itemMarginBottom:t.legendItemMarginBottom,padding:t.legendPadding}}(t);return{background:t.backgroundColor,defaultColor:t.brandColor,subColor:t.subColor,semanticRed:t.paletteSemanticRed,semanticGreen:t.paletteSemanticGreen,padding:"auto",fontFamily:t.fontFamily,columnWidthRatio:.5,maxColumnWidth:null,minColumnWidth:null,roseWidthRatio:.9999999,multiplePieWidthRatio:1/1.3,colors10:t.paletteQualitative10,colors20:t.paletteQualitative20,sequenceColors:t.paletteSequence,shapes:{point:["hollow-circle","hollow-square","hollow-bowtie","hollow-diamond","hollow-hexagon","hollow-triangle","hollow-triangle-down","circle","square","bowtie","diamond","hexagon","triangle","triangle-down","cross","tick","plus","hyphen","line"],line:["line","dash","dot","smooth"],area:["area","smooth","line","smooth-line"],interval:["rect","hollow-rect","line","tick"]},sizes:[1,10],geometries:{interval:{rect:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:function(t){var e=t.geometry.coordinate;if(e.isPolar&&e.isTransposed){var r=it(t.getModel(),e),i=(r.startAngle+r.endAngle)/2,o=7.5*Math.cos(i),a=7.5*Math.sin(i);return{matrix:R.a.transform(null,[["t",o,a]])}}return n.interval.selected}}},"hollow-rect":{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},line:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},tick:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},funnel:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}},pyramid:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}}},line:{line:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},dot:{default:{style:Object(s.a)(Object(s.a)({},n.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:Object(s.a)(Object(s.a)({},n.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:Object(s.a)(Object(s.a)({},n.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:Object(s.a)(Object(s.a)({},n.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:Object(s.a)(Object(s.a)({},n.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:Object(s.a)(Object(s.a)({},n.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:Object(s.a)(Object(s.a)({},n.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:Object(s.a)(Object(s.a)({},n.line.selected),{lineCap:null,lineDash:[5.5,1]})}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vh:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hvh:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vhv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}}},polygon:{polygon:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}}},point:{circle:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},square:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},bowtie:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},diamond:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},hexagon:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},triangle:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},"triangle-down":{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},"hollow-circle":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-square":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-bowtie":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-diamond":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-hexagon":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-triangle":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-triangle-down":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},cross:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},tick:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},plus:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},hyphen:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},line:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}}},area:{area:{default:{style:n.area.default},active:{style:n.area.active},inactive:{style:n.area.inactive},selected:{style:n.area.selected}},smooth:{default:{style:n.area.default},active:{style:n.area.active},inactive:{style:n.area.inactive},selected:{style:n.area.selected}},line:{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}},"smooth-line":{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}}},schema:{candle:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},box:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}}},edge:{line:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vhv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},arc:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}}},violin:{violin:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hollow:{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}},"hollow-smooth":{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}}}},components:{axis:{common:r,top:{position:"top",grid:null,title:null,verticalLimitLength:.5},bottom:{position:"bottom",grid:null,title:null,verticalLimitLength:.5},left:{position:"left",title:null,line:null,tickLine:null,verticalLimitLength:1/3},right:{position:"right",title:null,line:null,tickLine:null,verticalLimitLength:1/3},circle:{title:null,grid:Object(c.h)({},r.grid,{line:{type:"line"}})},radius:{title:null,grid:Object(c.h)({},r.grid,{line:{type:"circle"}})}},legend:{common:i,right:{layout:"vertical",padding:t.legendVerticalPadding},left:{layout:"vertical",padding:t.legendVerticalPadding},top:{layout:"horizontal",padding:t.legendHorizontalPadding},bottom:{layout:"horizontal",padding:t.legendHorizontalPadding},continuous:{title:null,background:null,track:{},rail:{type:"color",size:t.sliderRailHeight,defaultLength:t.sliderRailWidth,style:{fill:t.sliderRailFillColor,stroke:t.sliderRailBorderColor,lineWidth:t.sliderRailBorder}},label:{align:"rail",spacing:4,formatter:null,style:{fill:t.sliderLabelTextFillColor,fontSize:t.sliderLabelTextFontSize,lineHeight:t.sliderLabelTextLineHeight,textBaseline:"middle",fontFamily:t.fontFamily}},handler:{size:t.sliderHandlerWidth,style:{fill:t.sliderHandlerFillColor,stroke:t.sliderHandlerBorderColor}},slidable:!0,padding:i.padding}},tooltip:{showContent:!0,follow:!0,showCrosshairs:!1,showMarkers:!0,shared:!1,enterable:!1,position:"auto",marker:{symbol:"circle",stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,r:4},crosshairs:{line:{style:{stroke:t.tooltipCrosshairsBorderColor,lineWidth:t.tooltipCrosshairsBorder}},text:null,textBackground:{padding:2,style:{fill:"rgba(0, 0, 0, 0.25)",lineWidth:0,stroke:null}},follow:!1},domStyles:(e={},e["".concat(V.TOOLTIP_CSS_CONST.CONTAINER_CLASS)]={position:"absolute",visibility:"hidden",zIndex:8,transition:"left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s",backgroundColor:t.tooltipContainerFillColor,opacity:t.tooltipContainerFillOpacity,boxShadow:t.tooltipContainerShadow,borderRadius:"".concat(t.tooltipContainerBorderRadius,"px"),color:t.tooltipTextFillColor,fontSize:"".concat(t.tooltipTextFontSize,"px"),fontFamily:t.fontFamily,lineHeight:"".concat(t.tooltipTextLineHeight,"px"),padding:"0 12px 0 12px"},e["".concat(V.TOOLTIP_CSS_CONST.TITLE_CLASS)]={marginBottom:"12px",marginTop:"12px"},e["".concat(V.TOOLTIP_CSS_CONST.LIST_CLASS)]={margin:0,listStyleType:"none",padding:0},e["".concat(V.TOOLTIP_CSS_CONST.LIST_ITEM_CLASS)]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},e["".concat(V.TOOLTIP_CSS_CONST.MARKER_CLASS)]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},e["".concat(V.TOOLTIP_CSS_CONST.VALUE_CLASS)]={display:"inline-block",float:"right",marginLeft:"30px"},e)},annotation:{arc:{style:{stroke:t.annotationArcBorderColor,lineWidth:t.annotationArcBorder},animate:!0},line:{style:{stroke:t.annotationLineBorderColor,lineDash:t.annotationLineDash,lineWidth:t.annotationLineBorder},text:{position:"start",autoRotate:!0,style:{fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,textAlign:"start",fontFamily:t.fontFamily,textBaseline:"bottom"}},animate:!0},text:{style:{fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,textBaseline:"middle",textAlign:"start",fontFamily:t.fontFamily},animate:!0},region:{top:!1,style:{lineWidth:t.annotationRegionBorder,stroke:t.annotationRegionBorderColor,fill:t.annotationRegionFillColor,fillOpacity:t.annotationRegionFillOpacity},animate:!0},image:{top:!1,animate:!0},dataMarker:{top:!0,point:{style:{r:3,stroke:t.brandColor,lineWidth:2}},line:{style:{stroke:t.annotationLineBorderColor,lineWidth:t.annotationLineBorder},length:t.annotationDataMarkerLineLength},text:{style:{textAlign:"start",fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,fontFamily:t.fontFamily}},direction:"upward",autoAdjust:!0,animate:!0},dataRegion:{style:{region:{fill:t.annotationRegionFillColor,fillOpacity:t.annotationRegionFillOpacity},text:{textAlign:"center",textBaseline:"bottom",fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,fontFamily:t.fontFamily}},animate:!0}},slider:{common:{padding:[8,8,8,8],backgroundStyle:{fill:t.cSliderBackgroundFillColor,opacity:t.cSliderBackgroundFillOpacity},foregroundStyle:{fill:t.cSliderForegroundFillColor,opacity:t.cSliderForegroundFillOpacity},handlerStyle:{width:t.cSliderHandlerWidth,height:t.cSliderHandlerHeight,fill:t.cSliderHandlerFillColor,opacity:t.cSliderHandlerFillOpacity,stroke:t.cSliderHandlerBorderColor,lineWidth:t.cSliderHandlerBorder,radius:t.cSliderHandlerBorderRadius,highLightFill:t.cSliderHandlerHighlightFillColor},textStyle:{fill:t.cSliderTextFillColor,opacity:t.cSliderTextFillOpacity,fontSize:t.cSliderTextFontSize,lineHeight:t.cSliderTextLineHeight,fontWeight:t.cSliderTextFontWeight,stroke:t.cSliderTextBorderColor,lineWidth:t.cSliderTextBorder}}},scrollbar:{common:{padding:[8,8,8,8]},default:{style:{trackColor:t.scrollbarTrackFillColor,thumbColor:t.scrollbarThumbFillColor}},hover:{style:{thumbColor:t.scrollbarThumbHighlightFillColor}}}},labels:{offset:12,style:{fill:t.labelFillColor,fontSize:t.labelFontSize,fontFamily:t.fontFamily,stroke:t.labelBorderColor,lineWidth:t.labelBorder},fillColorDark:t.labelFillColorDark,fillColorLight:t.labelFillColorLight,autoRotate:!0},innerLabels:{style:{fill:t.innerLabelFillColor,fontSize:t.innerLabelFontSize,fontFamily:t.fontFamily,stroke:t.innerLabelBorderColor,lineWidth:t.innerLabelBorder},autoRotate:!0},overflowLabels:{style:{fill:t.overflowLabelFillColor,fontSize:t.overflowLabelFontSize,fontFamily:t.fontFamily,stroke:t.overflowLabelBorderColor,lineWidth:t.overflowLabelBorder}},pieLabels:{labelHeight:14,offset:10,labelLine:{style:{lineWidth:t.labelLineBorder}},autoRotate:!0}}}var $e="#000",He="#595959",Ye="#8C8C8C",Ve="#BFBFBF",Ge="#D9D9D9",Ke="#F0F0F0",Xe="#FFFFFF",Ue="#D9D9D9",qe=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],Ze=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],Qe=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],Je=function(t){void 0===t&&(t={});var e=t.paletteQualitative10,n=void 0===e?qe:e,r=t.paletteQualitative20,i=void 0===r?Ze:r,o=t.brandColor,a=void 0===o?n[0]:o,c={backgroundColor:"transparent",brandColor:a,subColor:"rgba(0,0,0,0.05)",paletteQualitative10:n,paletteQualitative20:i,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:Qe,fontFamily:'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"',axisLineBorderColor:Ve,axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:He,axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:Ue,axisTickLineBorderColor:Ve,axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:Ge,axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:Ye,axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:Ge,axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:Ye,legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:a,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:He,legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:$e,legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:$e,legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:Ye,legendPageNavigatorTextFontSize:12,sliderRailFillColor:Ge,sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:Ye,sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:Ke,sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:Ve,annotationArcBorderColor:Ge,annotationArcBorder:1,annotationLineBorderColor:Ve,annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:He,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:$e,annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:Ve,tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:He,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:He,labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:Xe,innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:He,overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:Xe,overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:Ve,cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#000",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(0,0,0,0)",scrollbarThumbFillColor:"rgba(0,0,0,0.15)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.2)",pointFillColor:a,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:Xe,pointBorderOpacity:1,pointActiveBorderColor:$e,pointSelectedBorder:2,pointSelectedBorderColor:$e,pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:a,hollowPointBorderOpacity:.95,hollowPointFillColor:Xe,hollowPointActiveBorder:1,hollowPointActiveBorderColor:$e,hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:$e,hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:a,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:a,areaFillOpacity:.25,areaActiveFillColor:a,areaActiveFillOpacity:.5,areaSelectedFillColor:a,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:a,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:$e,hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:$e,hollowAreaInactiveBorderOpacity:.3,intervalFillColor:a,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:$e,intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:$e,intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:a,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:Xe,hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:$e,hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:$e,hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3};return Object(s.a)(Object(s.a)({},c),t)};Je();function tn(t){var e=t.styleSheet,n=void 0===e?{}:e,r=Object(s.f)(t,["styleSheet"]),i=Je(n);return Object(c.h)({},We(i),r)}var en={default:tn({})};function nn(t){return Object(c.s)(en,Object(c.V)(t),en.default)}function rn(t,e,n){var r=n.translate(t),i=n.translate(e);return Object(c.N)(r,i)}function on(t,e,n){var r=n.coordinate,i=n.getYScale(),o=i.field,a=r.invert(e),s=i.invert(a.y);return Object(c.m)(t,(function(t){var e=t._origin;return e[o][0]<=s&&e[o][1]>=s}))||t[t.length-1]}var an=Object(c.ab)((function(t){if(t.isCategory)return 1;for(var e=t.values,n=e.length,r=t.translate(e[0]),i=r,o=0;o<n;o++){var a=e[o],s=t.translate(a);s<r&&(r=s),s>i&&(i=s)}return(i-r)/(n-1)}));function sn(t){var e,n,r,i=function(t){var e=Object(c.xb)(t.attributes);return Object(c.l)(e,(function(t){return Object(c.f)(v,t.type)}))}(t);try{for(var o=Object(s.i)(i),a=o.next();!a.done;a=o.next()){var l=a.value,u=l.getScale(l.type);if(u&&u.isLinear)if("cat"!==gt(u,Object(c.s)(t.scaleDefs,u.field),l.type,t.type)){r=u;break}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}var h=t.getXScale(),d=t.getYScale();return r||d||h}function cn(t,e,n){if(0===e.length)return null;var r=n.type,i=n.getXScale(),o=n.getYScale(),a=i.field,s=o.field,l=null;if("heatmap"===r||"point"===r){for(var u=n.coordinate.invert(t),h=i.invert(u.x),d=o.invert(u.y),f=1/0,p=0;p<e.length;p++){var g=e[p],v=g._origin,y=Math.pow(v[a]-h,2)+Math.pow(v[s]-d,2);y<f&&(f=y,l=g)}return l}var m=e[0],b=e[e.length-1],x=function(t,e){var n=e.coordinate,r=e.getXScale(),i=r.range,o=i[i.length-1],a=i[0],s=n.invert(t).x;return n.isPolar&&s>(1+o)/2&&(s=a),r.translate(r.invert(s))}(t,n),O=m._origin[a],j=m._origin[s],w=b._origin[a],C=o.isLinear&&Object(c.C)(j);if(Object(c.C)(O)){for(p=0;p<e.length;p++){v=(I=e[p])._origin;if(i.translate(v[a][0])<=x&&i.translate(v[a][1])>=x){if(!C){l=I;break}Object(c.C)(l)||(l=[]),l.push(I)}}Object(c.C)(l)&&(l=on(l,t,n))}else{var _=void 0;if(i.isLinear||"timeCat"===i.type){if((x>i.translate(w)||x<i.translate(O))&&(x>i.max||x<i.min))return null;for(var M=0,S=e.length-1,E=void 0;M<=S;){var k=e[E=Math.floor((M+S)/2)]._origin[a];if(rn(k,x,i))return e[E];i.translate(k)<=i.translate(x)?(M=E+1,b=e[E],_=e[E+1]):(0===S&&(b=e[0]),S=E-1)}}else{for(p=0;p<e.length;p++){var I;if(rn((v=(I=e[p])._origin)[a],x,i)){if(!C){l=I;break}Object(c.C)(l)||(l=[]),l.push(I)}else i.translate(v[a])<=x&&(b=I,_=e[p+1])}Object(c.C)(l)&&(l=on(l,t,n))}b&&_&&Math.abs(i.translate(b._origin[a])-x)>Math.abs(i.translate(_._origin[a])-x)&&(b=_)}var A=an(n.getXScale());return!l&&Math.abs(i.translate(b._origin[a])-x)<=A/2&&(l=b),l}function ln(t,e,n,r){var i,o;void 0===n&&(n=""),void 0===r&&(r=!1);var a,l=t._origin,u=function(t,e,n){var r=e.getAttribute("position").getFields(),i=e.scales,o=Object(c.I)(n)||!n?r[0]:n,a=i[o],s=a?a.getText(t[o]):t[o]||o;return Object(c.I)(n)?n(s,t):s}(l,e,n),h=e.tooltipOption,d=e.theme.defaultColor,f=[];function p(e,n){if(r||!Object(c.K)(n)&&""!==n){var i={title:u,data:l,mappingData:t,name:e,value:n,color:t.color||d,marker:!0};f.push(i)}}if(Object(c.O)(h)){var g=h.fields,v=h.callback;if(v){var y=g.map((function(e){return t._origin[e]})),m=v.apply(void 0,Object(s.g)([],Object(s.e)(y),!1)),b=Object(s.a)({data:t._origin,mappingData:t,title:u,color:t.color||d,marker:!0},m);f.push(b)}else{var x=e.scales;try{for(var O=Object(s.i)(g),j=O.next();!j.done;j=O.next()){var w=j.value;if(!Object(c.K)(l[w])){var C=x[w];p(yt(C),a=C.getText(l[w]))}}}catch(t){i={error:t}}finally{try{j&&!j.done&&(o=O.return)&&o.call(O)}finally{if(i)throw i.error}}}}else{var _=sn(e);a=function(t,e){var n=t[e.field];return Object(c.C)(n)?n.map((function(t){return e.getText(t)})).join("-"):e.getText(n)}(l,_),p(function(t,e){var n,r=e.getGroupScales();if(r.length&&(n=r[0]),n){var i=n.field;return n.getText(t[i])}return yt(sn(e))}(l,e),a)}return f}function un(t,e,n,r){var i,o,a=r.showNil,l=[],u=t.dataArray;if(!Object(c.G)(u)){t.sort(u);try{for(var h=Object(s.i)(u),d=h.next();!d.done;d=h.next()){var f=cn(e,d.value,t);if(f){var p=t.getElementId(f),g=t.elementsMap[p];if("heatmap"===t.type||g.visible){var v=ln(f,t,n,a);v.length&&l.push(v)}}}}catch(t){i={error:t}}finally{try{d&&!d.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}}return l}function hn(t,e,n,r){var i=r.showNil,o=[],a=t.container.getShape(e.x,e.y);if(a&&a.get("visible")&&a.get("origin")){var s=ln(a.get("origin").mappingData,t,n,i);s.length&&o.push(s)}return o}function dn(t,e,n){var r,i,o=[],a=t.geometries,c=n.shared,l=n.title,u=n.reversed;try{for(var h=Object(s.i)(a),d=h.next();!d.done;d=h.next()){var f=d.value;if(f.visible&&!1!==f.tooltipOption){var p=f.type,g=void 0;(g=["point","edge","polygon"].includes(p)?hn(f,e,l,n):["area","line","path","heatmap"].includes(p)||!1!==c?un(f,e,l,n):hn(f,e,l,n)).length&&(u&&g.reverse(),o.push(g))}}}catch(t){r={error:t}}finally{try{d&&!d.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}return o}function fn(t){void 0===t&&(t=0);var e=Object(c.C)(t)?t:[t];switch(e.length){case 0:e=[0,0,0,0];break;case 1:e=new Array(4).fill(e[0]);break;case 2:e=Object(s.g)(Object(s.g)([],Object(s.e)(e),!1),Object(s.e)(e),!1);break;case 3:e=Object(s.g)(Object(s.g)([],Object(s.e)(e),!1),[e[1]],!1);break;default:e=e.slice(0,4)}return e}var pn={};function gn(t,e){pn[t]=e}var vn=function(){function t(t){this.option=this.wrapperOption(t)}return t.prototype.update=function(t){return this.option=this.wrapperOption(t),this},t.prototype.hasAction=function(t){var e=this.option.actions;return Object(c.nb)(e,(function(e){return e[0]===t}))},t.prototype.create=function(t,e){var n=this.option,r=n.type,i=n.cfg,o="theta"===r,a=Object(s.a)({start:t,end:e},i),c=function(t){return H[t.toLowerCase()]}(o?"polar":r);return this.coordinate=new c(a),this.coordinate.type=r,o&&(this.hasAction("transpose")||this.transpose()),this.execActions(),this.coordinate},t.prototype.adjust=function(t,e){return this.coordinate.update({start:t,end:e}),this.coordinate.resetMatrix(),this.execActions(["scale","rotate","translate"]),this.coordinate},t.prototype.rotate=function(t){return this.option.actions.push(["rotate",t]),this},t.prototype.reflect=function(t){return this.option.actions.push(["reflect",t]),this},t.prototype.scale=function(t,e){return this.option.actions.push(["scale",t,e]),this},t.prototype.transpose=function(){return this.option.actions.push(["transpose"]),this},t.prototype.getOption=function(){return this.option},t.prototype.getCoordinate=function(){return this.coordinate},t.prototype.wrapperOption=function(t){return Object(s.a)({type:"rect",actions:[],cfg:{}},t)},t.prototype.execActions=function(t){var e=this,n=this.option.actions;Object(c.j)(n,(function(n){var r,i=Object(s.e)(n),o=i[0],a=i.slice(1);(!!Object(c.K)(t)||t.includes(o))&&(r=e.coordinate)[o].apply(r,Object(s.g)([],Object(s.e)(a),!1))}))},t}(),yn=function(){function t(t,e,n){this.view=t,this.gEvent=e,this.data=n,this.type=e.type}return t.fromData=function(e,n,r){return new t(e,new C.Event(n,{}),r)},Object.defineProperty(t.prototype,"target",{get:function(){return this.gEvent.target},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"event",{get:function(){return this.gEvent.originalEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this.gEvent.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.gEvent.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientX",{get:function(){return this.gEvent.clientX},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientY",{get:function(){return this.gEvent.clientY},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"[Event (type=".concat(this.type,")]")},t.prototype.clone=function(){return new t(this.view,this.gEvent,this.data)},t}();function mn(t){var e=t.getController("axis"),n=t.getController("legend"),r=t.getController("annotation");[e,t.getController("slider"),t.getController("scrollbar"),n,r].forEach((function(t){t&&t.layout()}))}var bn=function(){function t(){this.scales=new Map,this.syncScales=new Map}return t.prototype.createScale=function(t,e,n,r){var i=n,o=this.getScaleMeta(r);if(0===e.length&&o){var a=o.scale,s={type:a.type};a.isCategory&&(s.values=a.values),i=Object(c.h)(s,o.scaleDef,n)}var l=vt(t,e,i);return this.cacheScale(l,n,r),l},t.prototype.sync=function(t,e){var n=this;this.syncScales.forEach((function(r,i){var o=Number.MAX_SAFE_INTEGER,a=Number.MIN_SAFE_INTEGER,s=[];Object(c.j)(r,(function(t){var e=n.getScale(t);a=Object(c.M)(e.max)?Math.max(a,e.max):a,o=Object(c.M)(e.min)?Math.min(o,e.min):o,Object(c.j)(e.values,(function(t){s.includes(t)||s.push(t)}))})),Object(c.j)(r,(function(r){var i=n.getScale(r);if(i.isContinuous)i.change({min:o,max:a,values:s});else if(i.isCategory){var l=i.range,u=n.getScaleMeta(r);s&&!Object(c.s)(u,["scaleDef","range"])&&(l=mt(Object(c.h)({},i,{values:s}),t,e)),i.change({values:s,range:l})}}))}))},t.prototype.cacheScale=function(t,e,n){var r=this.getScaleMeta(n);r&&r.scale.type===t.type?(!function(t,e){if("identity"!==t.type&&"identity"!==e.type){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);t.change(n)}}(r.scale,t),r.scaleDef=e):(r={key:n,scale:t,scaleDef:e},this.scales.set(n,r));var i=this.getSyncKey(r);if(r.syncKey=i,this.removeFromSyncScales(n),i){var o=this.syncScales.get(i);o||(o=[],this.syncScales.set(i,o)),o.push(n)}},t.prototype.getScale=function(t){var e=this.getScaleMeta(t);if(!e){var n=Object(c.U)(t.split("-")),r=this.syncScales.get(n);r&&r.length&&(e=this.getScaleMeta(r[0]))}return e&&e.scale},t.prototype.deleteScale=function(t){var e=this.getScaleMeta(t);if(e){var n=e.syncKey,r=this.syncScales.get(n);if(r&&r.length){var i=r.indexOf(t);-1!==i&&r.splice(i,1)}}this.scales.delete(t)},t.prototype.clear=function(){this.scales.clear(),this.syncScales.clear()},t.prototype.removeFromSyncScales=function(t){var e=this;this.syncScales.forEach((function(n,r){var i=n.indexOf(t);if(-1!==i)return n.splice(i,1),0===n.length&&e.syncScales.delete(r),!1}))},t.prototype.getSyncKey=function(t){var e=t.scale,n=t.scaleDef,r=e.field,i=Object(c.s)(n,["sync"]);return!0===i?r:!1===i?void 0:i},t.prototype.getScaleMeta=function(t){return this.scales.get(t)},t}(),xn=function(){function t(t,e,n,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),this.top=t,this.right=e,this.bottom=n,this.left=r}return t.instance=function(e,n,r,i){return void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),void 0===i&&(i=0),new t(e,n,r,i)},t.prototype.max=function(t){var e=Object(s.e)(t,4),n=e[0],r=e[1],i=e[2],o=e[3];return this.top=Math.max(this.top,n),this.right=Math.max(this.right,r),this.bottom=Math.max(this.bottom,i),this.left=Math.max(this.left,o),this},t.prototype.shrink=function(t){var e=Object(s.e)(t,4),n=e[0],r=e[1],i=e[2],o=e[3];return this.top+=n,this.right+=r,this.bottom+=i,this.left+=o,this},t.prototype.inc=function(t,e){var n=t.width,r=t.height;switch(e){case o.TOP:case o.TOP_LEFT:case o.TOP_RIGHT:this.top+=r;break;case o.RIGHT:case o.RIGHT_TOP:case o.RIGHT_BOTTOM:this.right+=n;break;case o.BOTTOM:case o.BOTTOM_LEFT:case o.BOTTOM_RIGHT:this.bottom+=r;break;case o.LEFT:case o.LEFT_TOP:case o.LEFT_BOTTOM:this.left+=n}return this},t.prototype.getPadding=function(){return[this.top,this.right,this.bottom,this.left]},t.prototype.clone=function(){return new(t.bind.apply(t,Object(s.g)([void 0],Object(s.e)(this.getPadding()),!1)))},t}();function On(t){var e=t.padding;if(!function(t){return!Object(c.M)(t)&&!Object(c.C)(t)}(e))return new(xn.bind.apply(xn,Object(s.g)([void 0],Object(s.e)(fn(e)),!1)));var n=t.viewBBox,r=new xn,i=[],o=[],l=[];return Object(c.j)(t.getComponents(),(function(t){var e=t.type;e===a.AXIS?i.push(t):[a.LEGEND,a.SLIDER,a.SCROLLBAR].includes(e)?o.push(t):e!==a.GRID&&e!==a.TOOLTIP&&l.push(t)})),Object(c.j)(i,(function(t){var e=t.component.getLayoutBBox(),i=new lt(e.x,e.y,e.width,e.height).exceed(n);r.max(i)})),Object(c.j)(o,(function(t){var e=t.component,n=t.direction,i=e.getLayoutBBox(),o=e.get("padding"),a=new lt(i.x,i.y,i.width,i.height).expand(o);r.inc(a,n)})),Object(c.j)(l,(function(t){var e=t.component,n=t.direction,i=e.getLayoutBBox(),o=new lt(i.x,i.y,i.width,i.height);r.inc(o,n)})),r}function jn(t,e,n){var r=n.instance();e.forEach((function(t){t.autoPadding=r.max(t.autoPadding.getPadding())}))}var wn=function(t){function e(e){var n=t.call(this,{visible:e.visible})||this;n.views=[],n.geometries=[],n.controllers=[],n.interactions={},n.limitInPlot=!1,n.options={data:[],animate:!0},n.usedControllers=Object.keys(pn),n.scalePool=new bn,n.layoutFunc=mn,n.isPreMouseInPlot=!1,n.isDataChanged=!1,n.isCoordinateChanged=!1,n.createdScaleKeys=new Map,n.onCanvasEvent=function(t){var e=t.name;if(!e.includes(":")){var r=n.createViewEvent(t);n.doPlotEvent(r),n.emit(e,r)}},n.onDelegateEvents=function(t){var e=t.name;if(e.includes(":")){var r=n.createViewEvent(t);n.emit(e,r)}};var r=e.id,i=void 0===r?Object(c.vb)("view"):r,o=e.parent,a=e.canvas,l=e.backgroundGroup,u=e.middleGroup,h=e.foregroundGroup,d=e.region,f=void 0===d?{start:{x:0,y:0},end:{x:1,y:1}}:d,p=e.padding,g=e.appendPadding,v=e.theme,y=e.options,m=e.limitInPlot,b=e.syncViewPadding;return n.parent=o,n.canvas=a,n.backgroundGroup=l,n.middleGroup=u,n.foregroundGroup=h,n.region=f,n.padding=p,n.appendPadding=g,n.options=Object(s.a)(Object(s.a)({},n.options),y),n.limitInPlot=m,n.id=i,n.syncViewPadding=b,n.themeObject=Object(c.O)(v)?Object(c.h)({},nn("default"),tn(v)):nn(v),n.init(),n}return Object(s.c)(e,t),e.prototype.setLayout=function(t){this.layoutFunc=t},e.prototype.init=function(){this.calculateViewBBox(),this.initEvents(),this.initComponentController(),this.initOptions()},e.prototype.render=function(t,e){void 0===t&&(t=!1),this.emit(l.BEFORE_RENDER,yn.fromData(this,l.BEFORE_RENDER,e)),this.paint(t),this.emit(l.AFTER_RENDER,yn.fromData(this,l.AFTER_RENDER,e)),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this;this.emit(l.BEFORE_CLEAR),this.filteredData=[],this.coordinateInstance=void 0,this.isDataChanged=!1,this.isCoordinateChanged=!1;for(var e=this.geometries,n=0;n<e.length;n++)e[n].clear(),e[n].container.remove(!0),e[n].labelsContainer.remove(!0);this.geometries=[];var r=this.controllers;for(n=0;n<r.length;n++)"annotation"===r[n].name?r[n].clear(!0):r[n].clear();this.createdScaleKeys.forEach((function(e,n){t.getRootView().scalePool.deleteScale(n)})),this.createdScaleKeys.clear();var i=this.views;for(n=0;n<i.length;n++)i[n].clear();this.emit(l.AFTER_CLEAR)},e.prototype.destroy=function(){this.emit(l.BEFORE_DESTROY);var e=this.interactions;Object(c.j)(e,(function(t){t&&t.destroy()})),this.clear();for(var n=this.controllers,r=0,i=n.length;r<i;r++){n[r].destroy()}this.backgroundGroup.remove(!0),this.middleGroup.remove(!0),this.foregroundGroup.remove(!0),t.prototype.destroy.call(this)},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e);for(var n=this.geometries,r=0,i=n.length;r<i;r++){n[r].changeVisible(e)}var o=this.controllers;for(r=0,i=o.length;r<i;r++){o[r].changeVisible(e)}return this.foregroundGroup.set("visible",e),this.middleGroup.set("visible",e),this.backgroundGroup.set("visible",e),this.getCanvas().draw(),this},e.prototype.data=function(t){return Object(c.lb)(this.options,"data",t),this.isDataChanged=!0,this},e.prototype.source=function(t){return console.warn("This method will be removed at G2 V4.1. Please use chart.data() instead."),this.data(t)},e.prototype.filter=function(t,e){return Object(c.I)(e)?(Object(c.lb)(this.options,["filters",t],e),this):(!e&&Object(c.s)(this.options,["filters",t])&&delete this.options.filters[t],this)},e.prototype.axis=function(t,e){return Object(c.D)(t)?Object(c.lb)(this.options,["axes"],t):Object(c.lb)(this.options,["axes",t],e),this},e.prototype.legend=function(t,e){return Object(c.D)(t)?Object(c.lb)(this.options,["legends"],t):Object(c.Q)(t)?(Object(c.lb)(this.options,["legends",t],e),Object(c.P)(e)&&(null==e?void 0:e.selected)&&Object(c.lb)(this.options,["filters",t],(function(t){var n;return null===(n=null==e?void 0:e.selected[t])||void 0===n||n}))):Object(c.lb)(this.options,["legends"],t),this},e.prototype.scale=function(t,e){var n=this;return Object(c.Q)(t)?Object(c.lb)(this.options,["scales",t],e):Object(c.O)(t)&&Object(c.j)(t,(function(t,e){Object(c.lb)(n.options,["scales",e],t)})),this},e.prototype.tooltip=function(t){return Object(c.lb)(this.options,"tooltip",t),this},e.prototype.annotation=function(){return this.getController("annotation")},e.prototype.guide=function(){return console.warn("This method will be removed at G2 V4.1. Please use chart.annotation() instead."),this.annotation()},e.prototype.coordinate=function(t,e){return Object(c.Q)(t)?Object(c.lb)(this.options,"coordinate",{type:t,cfg:e}):Object(c.lb)(this.options,"coordinate",t),this.coordinateController.update(this.options.coordinate),this.coordinateController},e.prototype.coord=function(t,e){return console.warn("This method will be removed at G2 V4.1. Please use chart.coordinate() instead."),this.coordinate(t,e)},e.prototype.facet=function(t,e){this.facetInstance&&this.facetInstance.destroy();var n=function(t){return kt[Object(c.V)(t)]}(t);if(!n)throw new Error("facet '".concat(t,"' is not exist!"));return this.facetInstance=new n(this,Object(s.a)(Object(s.a)({},e),{type:t})),this},e.prototype.animate=function(t){return Object(c.lb)(this.options,"animate",t),this},e.prototype.updateOptions=function(t){return this.clear(),Object(c.db)(this.options,t),this.views.forEach((function(t){return t.destroy()})),this.views=[],this.initOptions(),this.coordinateBBox=this.viewBBox,this},e.prototype.option=function(t,n){if(e.prototype[t])throw new Error("Can't use built in variable name \"".concat(t,'", please change another one.'));return Object(c.lb)(this.options,t,n),this},e.prototype.theme=function(t){return this.themeObject=Object(c.O)(t)?Object(c.h)({},this.themeObject,tn(t)):nn(t),this},e.prototype.interaction=function(t,e){var n=this.interactions[t];n&&n.destroy();var r=ze(t,this,e);return r&&(r.init(),this.interactions[t]=r),this},e.prototype.removeInteraction=function(t){var e=this.interactions[t];e&&(e.destroy(),this.interactions[t]=void 0)},e.prototype.changeData=function(t){this.isDataChanged=!0,this.emit(l.BEFORE_CHANGE_DATA,yn.fromData(this,l.BEFORE_CHANGE_DATA,null)),this.data(t),this.paint(!0);for(var e=this.views,n=0,r=e.length;n<r;n++){e[n].changeData(t)}this.emit(l.AFTER_CHANGE_DATA,yn.fromData(this,l.AFTER_CHANGE_DATA,null))},e.prototype.createView=function(t){this.parent&&this.parent.parent&&console.warn("The view nesting recursive feature will be removed at G2 V4.1. Please avoid to use it.");var n={data:this.options.data,scales:Object(c.e)(this.options.scales),axes:Object(c.e)(this.options.axes),coordinate:Object(c.e)(this.coordinateController.getOption()),tooltip:Object(c.e)(this.options.tooltip),legends:Object(c.e)(this.options.legends),animate:this.options.animate,visible:this.visible},r=new e(Object(s.a)(Object(s.a)({parent:this,canvas:this.canvas,backgroundGroup:this.backgroundGroup.addGroup({zIndex:g}),middleGroup:this.middleGroup.addGroup({zIndex:p}),foregroundGroup:this.foregroundGroup.addGroup({zIndex:f}),theme:this.themeObject,padding:this.padding},t),{options:Object(s.a)(Object(s.a)({},n),Object(c.s)(t,"options",{}))}));return this.views.push(r),r},e.prototype.view=function(t){return console.warn("This method will be removed at G2 V4.1. Please use chart.createView() instead."),this.createView(t)},e.prototype.removeView=function(t){var e=Object(c.jb)(this.views,(function(e){return e===t}))[0];return e&&e.destroy(),e},e.prototype.getCoordinate=function(){return this.coordinateInstance},e.prototype.getTheme=function(){return this.themeObject},e.prototype.getXScale=function(){var t=this.geometries[0];return t?t.getXScale():null},e.prototype.getYScales=function(){var t={},e=[];return this.geometries.forEach((function(n){var r=n.getYScale(),i=r.field;t[i]||(t[i]=!0,e.push(r))})),e},e.prototype.getScalesByDim=function(t){for(var e=this.geometries,n={},r=0,i=e.length;r<i;r++){var o=e[r],a="x"===t?o.getXScale():o.getYScale();a&&!n[a.field]&&(n[a.field]=a)}return n},e.prototype.getScale=function(t,e){var n=e||this.getScaleKey(t);return this.getRootView().scalePool.getScale(n)},e.prototype.getScaleByField=function(t,e){return this.getScale(t,e)},e.prototype.getOptions=function(){return this.options},e.prototype.getData=function(){return this.filteredData},e.prototype.getOriginalData=function(){return this.options.data},e.prototype.getPadding=function(){return this.autoPadding.getPadding()},e.prototype.getGeometries=function(){return this.geometries},e.prototype.getElements=function(){return Object(c.ib)(this.geometries,(function(t,e){return t.concat(e.getElements())}),[])},e.prototype.getElementsBy=function(t){return this.getElements().filter((function(e){return t(e)}))},e.prototype.getLayer=function(t){return t===i.BG?this.backgroundGroup:t===i.MID?this.middleGroup:(i.FORE,this.foregroundGroup)},e.prototype.isPointInPlot=function(t){return function(t,e){var n=!1;if(t)if("theta"===t.type){var r=t.start,i=t.end;n=at(e.x,r.x,i.x)&&at(e.y,r.y,i.y)}else{var o=t.invert(e);n=at(o.x,0,1)&&at(o.y,0,1)}return n}(this.getCoordinate(),t)},e.prototype.getLegendAttributes=function(){return Object(c.q)(this.geometries.map((function(t){return t.getGroupAttributes()})))},e.prototype.getGroupScales=function(){var t=this.geometries.map((function(t){return t.getGroupScales()}));return ct(Object(c.q)(t))},e.prototype.getCanvas=function(){return this.getRootView().canvas},e.prototype.getRootView=function(){for(var t=this;t.parent;)t=t.parent;return t},e.prototype.getXY=function(t){var e,n,r=this.getCoordinate(),i=this.getScalesByDim("x"),o=this.getScalesByDim("y");if(Object(c.j)(t,(function(t,r){i[r]&&(e=i[r].scale(t)),o[r]&&(n=o[r].scale(t))})),!Object(c.K)(e)&&!Object(c.K)(n))return r.convert({x:e,y:n})},e.prototype.getController=function(t){return Object(c.m)(this.controllers,(function(e){return e.name===t}))},e.prototype.showTooltip=function(t){var e=this.getController("tooltip");return e&&e.showTooltip(t),this},e.prototype.hideTooltip=function(){var t=this.getController("tooltip");return t&&t.hideTooltip(),this},e.prototype.lockTooltip=function(){var t=this.getController("tooltip");return t&&t.lockTooltip(),this},e.prototype.unlockTooltip=function(){var t=this.getController("tooltip");return t&&t.unlockTooltip(),this},e.prototype.isTooltipLocked=function(){var t=this.getController("tooltip");return t&&t.isTooltipLocked()},e.prototype.getTooltipItems=function(t){var e=this.getController("tooltip");return e?e.getTooltipItems(t):[]},e.prototype.getSnapRecords=function(t){for(var e=this.geometries,n=[],r=0,i=e.length;r<i;r++){var o=e[r],a=o.dataArray;o.sort(a);for(var s=void 0,c=0,l=a.length;c<l;c++){(s=cn(t,a[c],o))&&n.push(s)}}var u=this.views;for(r=0,i=u.length;r<i;r++){var h=u[r].getSnapRecords(t);n=n.concat(h)}return n},e.prototype.getComponents=function(){for(var t=[],e=this.controllers,n=0,r=e.length;n<r;n++){var i=e[n];t=t.concat(i.getComponents())}return t},e.prototype.filterData=function(t){var e=this.options.filters;return 0===Object(c.mb)(e)?t:Object(c.l)(t,(function(t,n){return Object.keys(e).every((function(r){return(0,e[r])(t[r],t,n)}))}))},e.prototype.filterFieldData=function(t,e){var n=this.options.filters,r=Object(c.s)(n,t);return Object(c.S)(r)?e:e.filter((function(e,n){return r(e[t],e,n)}))},e.prototype.adjustCoordinate=function(){var t=this.getCoordinate(),e=t.start,n=t.end,r=this.coordinateBBox.bl,i=this.coordinateBBox.tr;Object(c.H)(e,r)&&Object(c.H)(n,i)?this.isCoordinateChanged=!1:(this.isCoordinateChanged=!0,this.coordinateInstance=this.coordinateController.adjust(r,i))},e.prototype.paint=function(t){this.renderDataRecursive(t),this.syncScale(),this.emit(l.BEFORE_PAINT),this.renderPaddingRecursive(t),this.renderLayoutRecursive(t),this.renderBackgroundStyleShape(),this.renderPaintRecursive(t),this.emit(l.AFTER_PAINT),this.isDataChanged=!1},e.prototype.renderBackgroundStyleShape=function(){if(!this.parent){var t=Object(c.s)(this.themeObject,"background");if(t){this.backgroundStyleRectShape||(this.backgroundStyleRectShape=this.backgroundGroup.addShape("rect",{attrs:{},zIndex:-1,capture:!1}),this.backgroundStyleRectShape.toBack());var e=this.viewBBox,n=e.x,r=e.y,i=e.width,o=e.height;this.backgroundStyleRectShape.attr({fill:t,x:n,y:r,width:i,height:o})}else this.backgroundStyleRectShape&&(this.backgroundStyleRectShape.remove(!0),this.backgroundStyleRectShape=void 0)}},e.prototype.renderPaddingRecursive=function(t){this.calculateViewBBox(),this.adjustCoordinate(),this.initComponents(t),this.autoPadding=On(this).shrink(fn(this.appendPadding)),this.coordinateBBox=this.viewBBox.shrink(this.autoPadding.getPadding()),this.adjustCoordinate(),this.controllers.find((function(t){return"tooltip"===t.name})).update();for(var e=this.views,n=0,r=e.length;n<r;n++){e[n].renderPaddingRecursive(t)}},e.prototype.renderLayoutRecursive=function(t){var e=!0===this.syncViewPadding?jn:Object(c.I)(this.syncViewPadding)?this.syncViewPadding:void 0;e&&(e(this,this.views,xn),this.views.forEach((function(t){t.coordinateBBox=t.viewBBox.shrink(t.autoPadding.getPadding()),t.adjustCoordinate()}))),this.doLayout();for(var n=this.views,r=0,i=n.length;r<i;r++){n[r].renderLayoutRecursive(t)}},e.prototype.renderPaintRecursive=function(t){var e=this.middleGroup;if(this.limitInPlot){var n=ft(this.coordinateInstance),r=n.type,i=n.attrs;e.setClip({type:r,attrs:i})}else e.setClip(void 0);this.paintGeometries(t),this.renderComponents(t);for(var o=this.views,a=0,s=o.length;a<s;a++){o[a].renderPaintRecursive(t)}},e.prototype.createScale=function(t,e,n,r){var i=Object(c.s)(this.options.scales,[t]),o=Object(s.a)(Object(s.a)({},i),n);return this.parent?this.parent.createScale(t,e,o,r):this.scalePool.createScale(t,e,o,r)},e.prototype.renderDataRecursive=function(t){this.doFilterData(),this.createCoordinate(),this.initGeometries(t),this.renderFacet(t);for(var e=this.views,n=0,r=e.length;n<r;n++){e[n].renderDataRecursive(t)}},e.prototype.calculateViewBBox=function(){var t,e,n,r;if(this.parent){var i=this.parent.coordinateBBox;t=i.x,e=i.y,n=i.width,r=i.height}else t=0,e=0,n=this.canvas.get("width"),r=this.canvas.get("height");var o=this.region,a=o.start,s=o.end,c=new lt(t+n*a.x,e+r*a.y,n*(s.x-a.x),r*(s.y-a.y));this.viewBBox&&this.viewBBox.isEqual(c)||(this.viewBBox=new lt(t+n*a.x,e+r*a.y,n*(s.x-a.x),r*(s.y-a.y))),this.coordinateBBox=this.viewBBox},e.prototype.initEvents=function(){this.foregroundGroup.on("*",this.onDelegateEvents),this.middleGroup.on("*",this.onDelegateEvents),this.backgroundGroup.on("*",this.onDelegateEvents),this.canvas.on("*",this.onCanvasEvent)},e.prototype.initComponentController=function(){for(var t=this.usedControllers,e=0,n=t.length;e<n;e++){var r=t[e],i=pn[r];i&&this.controllers.push(new i(this))}},e.prototype.createViewEvent=function(t){var e=t.shape,n=t.name,r=e?e.get("origin"):null,i=new yn(this,t,r);return i.type=n,i},e.prototype.doPlotEvent=function(t){var e=t.type,n={x:t.x,y:t.y};if(["mousedown","mouseup","mousemove","mouseleave","mousewheel","touchstart","touchmove","touchend","touchcancel","click","dblclick","contextmenu"].includes(e)){var r=this.isPointInPlot(n),i=t.clone();if(r){var o="plot:".concat(e);i.type=o,this.emit(o,i),"mouseleave"!==e&&"touchend"!==e||(this.isPreMouseInPlot=!1)}"mousemove"===e||"touchmove"===e?(this.isPreMouseInPlot&&!r?("mousemove"===e&&(i.type=h.MOUSE_LEAVE,this.emit(h.MOUSE_LEAVE,i)),i.type=h.LEAVE,this.emit(h.LEAVE,i)):!this.isPreMouseInPlot&&r&&("mousemove"===e&&(i.type=h.MOUSE_ENTER,this.emit(h.MOUSE_ENTER,i)),i.type=h.ENTER,this.emit(h.ENTER,i)),this.isPreMouseInPlot=r):"mouseleave"!==e&&"touchend"!==e||this.isPreMouseInPlot&&("mouseleave"===e&&(i.type=h.MOUSE_LEAVE,this.emit(h.MOUSE_LEAVE,i)),i.type=h.LEAVE,this.emit(h.LEAVE,i),this.isPreMouseInPlot=!1)}},e.prototype.doFilterData=function(){var t=this.options.data;this.filteredData=this.filterData(t)},e.prototype.initGeometries=function(t){this.createOrUpdateScales();for(var e=this.getCoordinate(),n=Object(c.s)(this.options,"scales",{}),r=this.geometries,i=0,o=r.length;i<o;i++){var a=r[i];a.scales=this.getGeometryScales();var s={coordinate:e,scaleDefs:n,data:this.filteredData,theme:this.themeObject,isDataChanged:this.isDataChanged,isCoordinateChanged:this.isCoordinateChanged};t?a.update(s):a.init(s)}this.adjustScales()},e.prototype.createOrUpdateScales=function(){for(var t=this.getScaleFields(),e=this.getGroupedFields(),n=this.getOptions(),r=n.data,i=n.scales,o=void 0===i?{}:i,a=this.filteredData,s=0,c=t.length;s<c;s++){var l=t[s],u=o[l],h=this.getScaleKey(l);this.createScale(l,e.includes(l)?r:a,u,h),this.createdScaleKeys.set(h,!0)}},e.prototype.syncScale=function(){this.getRootView().scalePool.sync(this.getCoordinate(),this.theme)},e.prototype.getGeometryScales=function(){for(var t=this.getScaleFields(),e={},n=0;n<t.length;n++){var r=t[n];e[r]=this.getScaleByField(r)}return e},e.prototype.getScaleFields=function(){for(var t=[],e=new Map,n=this.geometries,r=0;r<n.length;r++){ct(n[r].getScaleFields(),t,e)}return t},e.prototype.getGroupedFields=function(){for(var t=[],e=new Map,n=this.geometries,r=0;r<n.length;r++){ct(n[r].getGroupFields(),t,e)}return t},e.prototype.adjustScales=function(){this.adjustCategoryScaleRange()},e.prototype.adjustCategoryScaleRange=function(){var t=this,e=Object(s.g)([this.getXScale()],Object(s.e)(this.getYScales()),!1).filter((function(t){return!!t})),n=this.getCoordinate(),r=this.options.scales;Object(c.j)(e,(function(e){var i=e.field,o=e.values,a=e.isCategory,s=e.isIdentity;(a||s)&&o&&!Object(c.s)(r,[i,"range"])&&(e.range=mt(e,n,t.theme))}))},e.prototype.initComponents=function(t){for(var e=this.controllers,n=0;n<e.length;n++){var r=e[n];t?r.update():(r.clear(),r.render())}},e.prototype.doLayout=function(){this.layoutFunc(this)},e.prototype.createCoordinate=function(){var t=this.coordinateBBox.bl,e=this.coordinateBBox.tr;this.coordinateInstance=this.coordinateController.create(t,e)},e.prototype.paintGeometries=function(t){for(var e=this.options.animate,n=this.getCoordinate(),r={x:this.viewBBox.x,y:this.viewBBox.y,minX:this.viewBBox.minX,minY:this.viewBBox.minY,maxX:this.viewBBox.maxX,maxY:this.viewBBox.maxY,width:this.viewBBox.width,height:this.viewBBox.height},i=this.geometries,o=0;o<i.length;o++){var a=i[o];a.coordinate=n,a.canvasRegion=r,e||a.animate(!1),a.paint(t)}},e.prototype.renderComponents=function(t){for(var e=this.getComponents(),n=0;n<e.length;n++){e[n].component.render()}},e.prototype.renderFacet=function(t){this.facetInstance&&(t?this.facetInstance.update():(this.facetInstance.clear(),this.facetInstance.init(),this.facetInstance.render()))},e.prototype.initOptions=function(){var t=this,e=this.options,n=e.geometries,r=void 0===n?[]:n,i=e.interactions,o=void 0===i?[]:i,a=e.views,l=void 0===a?[]:a,u=e.annotations,h=void 0===u?[]:u,d=e.coordinate,f=e.events,p=e.facets;this.coordinateController?d&&this.coordinateController.update(d):this.coordinateController=new vn(d);for(var g=0;g<r.length;g++){var v=r[g];this.createGeometry(v)}for(var y=0;y<o.length;y++){var m=o[y],b=m.type,x=m.cfg;this.interaction(b,x)}for(var O=0;O<l.length;O++){var j=l[O];this.createView(j)}for(var w=this.getController("annotation"),C=0;C<h.length;C++){var _=h[C];w.annotation(_)}f&&Object(c.j)(f,(function(e,n){t.on(n,e)})),p&&Object(c.j)(p,(function(e){var n=e.type,r=Object(s.f)(e,["type"]);t.facet(n,r)}))},e.prototype.createGeometry=function(t){var e=t.type,n=t.cfg,r=void 0===n?{}:n;if(this[e]){var i=this[e](r);Object(c.j)(t,(function(t,e){Object(c.I)(i[e])&&i[e](t)}))}},e.prototype.getScaleKey=function(t){return"".concat(this.id,"-").concat(t)},e}(w);function Cn(t,e){wn.prototype[t.toLowerCase()]=function(t){void 0===t&&(t={});var n=Object(s.a)({container:this.middleGroup.addGroup(),labelsContainer:this.foregroundGroup.addGroup()},t),r=new e(n);return this.geometries.push(r),r}}var _n=function(t){function e(e){var n=this,r=e.container,i=e.width,o=e.height,a=e.autoFit,l=void 0!==a&&a,u=e.padding,h=e.appendPadding,d=e.renderer,v=void 0===d?"canvas":d,m=e.pixelRatio,x=e.localRefresh,j=void 0===x||x,w=e.visible,C=void 0===w||w,_=e.supportCSSTransform,M=void 0!==_&&_,S=e.defaultInteractions,E=void 0===S?["tooltip","legend-filter","legend-active","continuous-filter","ellipsis-text","axis-description"]:S,k=e.options,I=e.limitInPlot,A=e.theme,P=e.syncViewPadding,T=Object(c.Q)(r)?document.getElementById(r):r,B=Object(b.b)('<div style="position:relative;"></div>');T.appendChild(B);var L=O(T,l,i,o),D=new(function(t){var e=y[t];if(!e)throw new Error("G engine '".concat(t,"' is not exist, please register it at first."));return e}(v).Canvas)(Object(s.a)({container:B,pixelRatio:m,localRefresh:j,supportCSSTransform:M},L));return(n=t.call(this,{parent:null,canvas:D,backgroundGroup:D.addGroup({zIndex:g}),middleGroup:D.addGroup({zIndex:p}),foregroundGroup:D.addGroup({zIndex:f}),padding:u,appendPadding:h,visible:C,options:k,limitInPlot:I,theme:A,syncViewPadding:P})||this).onResize=Object(c.g)((function(){n.forceFit()}),300),n.ele=T,n.canvas=D,n.width=L.width,n.height=L.height,n.autoFit=l,n.localRefresh=j,n.renderer=v,n.wrapperElement=B,n.updateCanvasStyle(),n.bindAutoFit(),n.initDefaultInteractions(E),n}return Object(s.c)(e,t),e.prototype.initDefaultInteractions=function(t){var e=this;Object(c.j)(t,(function(t){e.interaction(t)}))},e.prototype.aria=function(t){!1===t?this.ele.removeAttribute("aria-label"):this.ele.setAttribute("aria-label",t.label)},e.prototype.changeSize=function(t,e){return this.width===t&&this.height===e||(this.emit(l.BEFORE_CHANGE_SIZE),this.width=t,this.height=e,this.canvas.changeSize(t,e),this.render(!0),this.emit(l.AFTER_CHANGE_SIZE)),this},e.prototype.clear=function(){t.prototype.clear.call(this),this.aria(!1)},e.prototype.destroy=function(){var e,n;t.prototype.destroy.call(this),this.unbindAutoFit(),this.canvas.destroy(),e=this.wrapperElement,(n=e.parentNode)&&n.removeChild(e),this.wrapperElement=null},e.prototype.changeVisible=function(e){return t.prototype.changeVisible.call(this,e),this.wrapperElement.style.display=e?"":"none",this},e.prototype.forceFit=function(){if(!this.destroyed){var t=O(this.ele,!0,this.width,this.height),e=t.width,n=t.height;this.changeSize(e,n)}},e.prototype.updateCanvasStyle=function(){Object(b.e)(this.canvas.get("el"),{display:"inline-block",verticalAlign:"middle"})},e.prototype.bindAutoFit=function(){this.autoFit&&window.addEventListener("resize",this.onResize)},e.prototype.unbindAutoFit=function(){this.autoFit&&window.removeEventListener("resize",this.onResize)},e}(wn),Mn=function(){function t(t){this.visible=!0,this.components=[],this.view=t}return t.prototype.clear=function(t){Object(c.j)(this.components,(function(t){t.component.destroy()})),this.components=[]},t.prototype.destroy=function(){this.clear()},t.prototype.getComponents=function(){return this.components},t.prototype.changeVisible=function(t){this.visible!==t&&(this.components.forEach((function(e){t?e.component.show():e.component.hide()})),this.visible=t)},t}();var Sn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isLocked=!1,e}return Object(s.c)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"tooltip"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.isVisible=function(){return!1!==this.view.getOptions().tooltip},e.prototype.render=function(){},e.prototype.showTooltip=function(t){if(this.point=t,this.isVisible()){var e=this.view,n=this.getTooltipItems(t);if(n.length){var r=this.getTitle(n),i={x:n[0].x,y:n[0].y};e.emit("tooltip:show",yn.fromData(e,"tooltip:show",Object(s.a)({items:n,title:r},t)));var o=this.getTooltipCfg(),a=o.follow,l=o.showMarkers,u=o.showCrosshairs,h=o.showContent,d=o.marker,f=this.items,p=this.title;if(Object(c.H)(p,r)&&Object(c.H)(f,n)?(this.tooltip&&a&&(this.tooltip.update(t),this.tooltip.show()),this.tooltipMarkersGroup&&this.tooltipMarkersGroup.show()):(e.emit("tooltip:change",yn.fromData(e,"tooltip:change",Object(s.a)({items:n,title:r},t))),(Object(c.I)(h)?h(n):h)&&(this.tooltip||this.renderTooltip(),this.tooltip.update(Object(c.db)({},o,{items:this.getItemsAfterProcess(n),title:r},a?t:{})),this.tooltip.show()),l&&this.renderTooltipMarkers(n,d)),this.items=n,this.title=r,u){var g=Object(c.s)(o,["crosshairs","follow"],!1);this.renderCrosshairs(g?t:i,o)}}else this.hideTooltip()}},e.prototype.hideTooltip=function(){if(this.getTooltipCfg().follow){var t=this.tooltipMarkersGroup;t&&t.hide();var e=this.xCrosshair,n=this.yCrosshair;e&&e.hide(),n&&n.hide();var r=this.tooltip;r&&r.hide(),this.view.emit("tooltip:hide",yn.fromData(this.view,"tooltip:hide",{})),this.point=null}else this.point=null},e.prototype.lockTooltip=function(){this.isLocked=!0,this.tooltip&&this.tooltip.setCapture(!0)},e.prototype.unlockTooltip=function(){this.isLocked=!1;var t=this.getTooltipCfg();this.tooltip&&this.tooltip.setCapture(t.capture)},e.prototype.isTooltipLocked=function(){return this.isLocked},e.prototype.clear=function(){var t=this.tooltip,e=this.xCrosshair,n=this.yCrosshair,r=this.tooltipMarkersGroup;t&&(t.hide(),t.clear()),e&&e.clear(),n&&n.clear(),r&&r.clear(),(null==t?void 0:t.get("customContent"))&&(this.tooltip.destroy(),this.tooltip=null),this.title=null,this.items=null},e.prototype.destroy=function(){this.tooltip&&this.tooltip.destroy(),this.xCrosshair&&this.xCrosshair.destroy(),this.yCrosshair&&this.yCrosshair.destroy(),this.guideGroup&&this.guideGroup.remove(!0),this.reset()},e.prototype.reset=function(){this.items=null,this.title=null,this.tooltipMarkersGroup=null,this.tooltipCrosshairsGroup=null,this.xCrosshair=null,this.yCrosshair=null,this.tooltip=null,this.guideGroup=null,this.isLocked=!1,this.point=null},e.prototype.changeVisible=function(t){if(this.visible!==t){var e=this.tooltip,n=this.tooltipMarkersGroup,r=this.xCrosshair,i=this.yCrosshair;t?(e&&e.show(),n&&n.show(),r&&r.show(),i&&i.show()):(e&&e.hide(),n&&n.hide(),r&&r.hide(),i&&i.hide()),this.visible=t}},e.prototype.getTooltipItems=function(t){var e,n,r,i,o,a,l=this.findItemsFromView(this.view,t);if(l.length){l=Object(c.q)(l);try{for(var u=Object(s.i)(l),h=u.next();!h.done;h=u.next()){var d=h.value;try{for(var f=(r=void 0,Object(s.i)(d)),p=f.next();!p.done;p=f.next()){var g=p.value,v=g.mappingData,y=v.x,m=v.y;g.x=Object(c.C)(y)?y[y.length-1]:y,g.y=Object(c.C)(m)?m[m.length-1]:m}}catch(t){r={error:t}}finally{try{p&&!p.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}}}catch(t){e={error:t}}finally{try{h&&!h.done&&(n=u.return)&&n.call(u)}finally{if(e)throw e.error}}if(!1===this.getTooltipCfg().shared&&l.length>1){var b=l[0],x=Math.abs(t.y-b[0].y);try{for(var O=Object(s.i)(l),j=O.next();!j.done;j=O.next()){var w=j.value,C=Math.abs(t.y-w[0].y);C<=x&&(b=w,x=C)}}catch(t){o={error:t}}finally{try{j&&!j.done&&(a=O.return)&&a.call(O)}finally{if(o)throw o.error}}l=[b]}return function(t){for(var e=[],n=function(n){var r=t[n];Object(c.m)(e,(function(t){return t.color===r.color&&t.name===r.name&&t.value===r.value&&t.title===r.title}))||e.push(r)},r=0;r<t.length;r++)n(r);return e}(Object(c.q)(l))}return[]},e.prototype.layout=function(){},e.prototype.update=function(){if(this.point&&this.showTooltip(this.point),this.tooltip){var t=this.view.getCanvas();this.tooltip.set("region",{start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}})}},e.prototype.isCursorEntered=function(t){if(this.tooltip){var e=this.tooltip.getContainer(),n=this.tooltip.get("capture");if(e&&n){var r=e.getBoundingClientRect(),i=r.x,o=r.y,a=r.width,s=r.height;return new lt(i,o,a,s).isPointIn(t)}}return!1},e.prototype.getTooltipCfg=function(){var t=this.view,e=t.getOptions().tooltip,n=this.processCustomContent(e),r=t.getTheme(),i=Object(c.s)(r,["components","tooltip"],{}),o=Object(c.s)(n,"enterable",i.enterable);return Object(c.h)({},i,n,{capture:!(!o&&!this.isLocked)})},e.prototype.processCustomContent=function(t){if(Object(c.D)(t)||!Object(c.s)(t,"customContent"))return t;var e=t.customContent;return Object(s.a)(Object(s.a)({},t),{customContent:function(t,n){var r=e(t,n)||"";return Object(c.Q)(r)?'<div class="g2-tooltip">'+r+"</div>":r}})},e.prototype.getTitle=function(t){var e=t[0].title||t[0].name;return this.title=e,e},e.prototype.renderTooltip=function(){var t=this.view.getCanvas(),e={start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}},n=this.getTooltipCfg(),r=new Q(Object(s.a)(Object(s.a)({parent:t.get("el").parentNode,region:e},n),{visible:!1,crosshairs:null}));r.init(),this.tooltip=r},e.prototype.renderTooltipMarkers=function(t,e){var n,r,i=this.getTooltipMarkersGroup(),o=this.view.getRootView(),a=o.limitInPlot;try{for(var l=Object(s.i)(t),u=l.next();!u.done;u=l.next()){var h=u.value,d=h.x,f=h.y;if(a||(null==i?void 0:i.getClip())){var p=ft(o.getCoordinate()),g=p.type,v=p.attrs;null==i||i.setClip({type:g,attrs:v})}else null==i||i.setClip(void 0);var y=this.view.getTheme(),m=Object(c.s)(y,["components","tooltip","marker"],{}),b=Object(s.a)(Object(s.a)({fill:h.color,symbol:"circle",shadowColor:h.color},Object(c.I)(e)?Object(s.a)(Object(s.a)({},m),e(h)):e),{x:d,y:f});i.addShape("marker",{attrs:b})}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}},e.prototype.renderCrosshairs=function(t,e){var n=Object(c.s)(e,["crosshairs","type"],"x");"x"===n?(this.yCrosshair&&this.yCrosshair.hide(),this.renderXCrosshairs(t,e)):"y"===n?(this.xCrosshair&&this.xCrosshair.hide(),this.renderYCrosshairs(t,e)):"xy"===n&&(this.renderXCrosshairs(t,e),this.renderYCrosshairs(t,e))},e.prototype.renderXCrosshairs=function(t,e){var n,r,i=this.getViewWithGeometry(this.view).getCoordinate();if(i.isRect)i.isTransposed?(n={x:i.start.x,y:t.y},r={x:i.end.x,y:t.y}):(n={x:t.x,y:i.end.y},r={x:t.x,y:i.start.y});else{var o=dt(i,t),a=i.getCenter(),s=i.getRadius();r=et(a.x,a.y,s,o),n=a}var l=Object(c.h)({start:n,end:r,container:this.getTooltipCrosshairsGroup()},Object(c.s)(e,"crosshairs",{}),this.getCrosshairsText("x",t,e));delete l.type;var u=this.xCrosshair;u?u.update(l):(u=new V.Crosshair.Line(l)).init(),u.render(),u.show(),this.xCrosshair=u},e.prototype.renderYCrosshairs=function(t,e){var n,r,i=this.getViewWithGeometry(this.view).getCoordinate();if(i.isRect){var o=void 0,a=void 0;i.isTransposed?(o={x:t.x,y:i.end.y},a={x:t.x,y:i.start.y}):(o={x:i.start.x,y:t.y},a={x:i.end.x,y:t.y}),n={start:o,end:a},r="Line"}else n={center:i.getCenter(),radius:ht(i,t),startAngle:i.startAngle,endAngle:i.endAngle},r="Circle";delete(n=Object(c.h)({container:this.getTooltipCrosshairsGroup()},n,Object(c.s)(e,"crosshairs",{}),this.getCrosshairsText("y",t,e))).type;var s=this.yCrosshair;s?i.isRect&&"circle"===s.get("type")||!i.isRect&&"line"===s.get("type")?(s=new V.Crosshair[r](n)).init():s.update(n):(s=new V.Crosshair[r](n)).init(),s.render(),s.show(),this.yCrosshair=s},e.prototype.getCrosshairsText=function(t,e,n){var r=Object(c.s)(n,["crosshairs","text"]),i=Object(c.s)(n,["crosshairs","follow"]),o=this.items;if(r){var a=this.getViewWithGeometry(this.view),s=o[0],l=a.getXScale(),u=a.getYScales()[0],h=void 0,d=void 0;if(i){var f=this.view.getCoordinate().invert(e);h=l.invert(f.x),d=u.invert(f.y)}else h=s.data[l.field],d=s.data[u.field];var p="x"===t?h:d;return Object(c.I)(r)?r=r(t,p,o,e):r.content=p,{text:r}}},e.prototype.getGuideGroup=function(){if(!this.guideGroup){var t=this.view.foregroundGroup;this.guideGroup=t.addGroup({name:"tooltipGuide",capture:!1})}return this.guideGroup},e.prototype.getTooltipMarkersGroup=function(){var t=this.tooltipMarkersGroup;return t&&!t.destroyed?(t.clear(),t.show()):((t=this.getGuideGroup().addGroup({name:"tooltipMarkersGroup"})).toFront(),this.tooltipMarkersGroup=t),t},e.prototype.getTooltipCrosshairsGroup=function(){var t=this.tooltipCrosshairsGroup;return t||((t=this.getGuideGroup().addGroup({name:"tooltipCrosshairsGroup",capture:!1})).toBack(),this.tooltipCrosshairsGroup=t),t},e.prototype.findItemsFromView=function(t,e){var n,r;if(!1===t.getOptions().tooltip)return[];var i=dn(t,e,this.getTooltipCfg());try{for(var o=Object(s.i)(t.views),a=o.next();!a.done;a=o.next()){var c=a.value;i=i.concat(this.findItemsFromView(c,e))}}catch(t){n={error:t}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i},e.prototype.getViewWithGeometry=function(t){var e=this;return t.geometries.length?t:Object(c.m)(t.views,(function(t){return e.getViewWithGeometry(t)}))},e.prototype.getItemsAfterProcess=function(t){var e=this.getTooltipCfg().customItems;return(e||function(t){return t})(t)},e}(Mn),En={};function kn(t){return En[t.toLowerCase()]}function In(t,e){En[t.toLowerCase()]=e}var An={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},Pn={interval:function(t){return{enter:{animation:t.isRect?t.isTransposed?"scale-in-x":"scale-in-y":"fade-in"},update:{animation:t.isPolar&&t.isTransposed?"sector-path-update":null},leave:{animation:"fade-out"}}},line:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},path:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},point:{appear:{animation:"zoom-in"},enter:{animation:"zoom-in"},leave:{animation:"zoom-out"}},area:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},polygon:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},schema:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},edge:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},label:{appear:{animation:"fade-in",delay:450},enter:{animation:"fade-in"},update:{animation:"position-update"},leave:{animation:"fade-out"}}},Tn={line:function(){return{animation:"wave-in"}},area:function(){return{animation:"wave-in"}},path:function(){return{animation:"fade-in"}},interval:function(t){var e;return t.isRect?e=t.isTransposed?"grow-in-x":"grow-in-y":(e="grow-in-xy",t.isPolar&&t.isTransposed&&(e="wave-in")),{animation:e}},schema:function(t){return{animation:t.isRect?t.isTransposed?"grow-in-x":"grow-in-y":"grow-in-xy"}},polygon:function(){return{animation:"fade-in",duration:500}},edge:function(){return{animation:"fade-in"}}};function Bn(t,e,n){var r=Pn[t];return r&&(Object(c.I)(r)&&(r=r(e)),r=Object(c.h)({},An,r),n)?r[n]:r}function Ln(t,e,n){var r=Object(c.s)(t.get("origin"),"data","_origin"),i=e.animation,o=function(t,e){return{delay:Object(c.I)(t.delay)?t.delay(e):t.delay,easing:Object(c.I)(t.easing)?t.easing(e):t.easing,duration:Object(c.I)(t.duration)?t.duration(e):t.duration,callback:t.callback,repeat:t.repeat}}(e,r);if(i){var a=kn(i);a&&a(t,o,n)}else t.animate(n.toAttrs,o)}var Dn=function(t){function e(e){var n=t.call(this,e)||this;n.labelShape=[],n.states=[];var r=e.shapeFactory,i=e.container,o=e.offscreenGroup,a=e.elementIndex,s=e.visible,c=void 0===s||s;return n.shapeFactory=r,n.container=i,n.offscreenGroup=o,n.visible=c,n.elementIndex=a,n}return Object(s.c)(e,t),e.prototype.draw=function(t,e){void 0===e&&(e=!1),this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.drawShape(t,e),!1===this.visible&&this.changeVisible(!1)},e.prototype.update=function(t){var e=this.shapeFactory,n=this.shape;if(n){this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.setShapeInfo(n,t);var r=this.getOffscreenGroup(),i=e.drawShape(this.shapeType,t,r);i.cfg.data=this.data,i.cfg.origin=t,i.cfg.element=this,this.syncShapeStyle(n,i,this.getStates(),this.getAnimateCfg("update"))}},e.prototype.destroy=function(){var e=this.shapeFactory,n=this.shape;if(n){var r=this.getAnimateCfg("leave");r?Ln(n,r,{coordinate:e.coordinate,toAttrs:Object(s.a)({},n.attr())}):n.remove(!0)}this.states=[],this.shapeFactory=void 0,this.container=void 0,this.shape=void 0,this.animate=void 0,this.geometry=void 0,this.labelShape=[],this.model=void 0,this.data=void 0,this.offscreenGroup=void 0,this.statesStyle=void 0,t.prototype.destroy.call(this)},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e),e?(this.shape&&this.shape.show(),this.labelShape&&this.labelShape.forEach((function(t){t.show()}))):(this.shape&&this.shape.hide(),this.labelShape&&this.labelShape.forEach((function(t){t.hide()})))},e.prototype.setState=function(t,e){var n=this,r=n.states,i=n.shapeFactory,o=n.model,a=n.shape,s=n.shapeType,c=r.indexOf(t);if(e){if(c>-1)return;r.push(t),"active"!==t&&"selected"!==t||null==a||a.toFront()}else{if(-1===c)return;if(r.splice(c,1),"active"===t||"selected"===t){var l=this.geometry,u=l.sortZIndex,h=l.zIndexReversed?this.geometry.elements.length-this.elementIndex:this.elementIndex;u?a.setZIndex(h):a.set("zIndex",h)}}var d=i.drawShape(s,o,this.getOffscreenGroup());r.length?this.syncShapeStyle(a,d,r,null):this.syncShapeStyle(a,d,["reset"],null),d.remove(!0);var f={state:t,stateStatus:e,element:this,target:this.container};this.container.emit("statechange",f),Object(V.propagationDelegate)(this.shape,"statechange",f)},e.prototype.clearStates=function(){var t=this,e=this.states;Object(c.j)(e,(function(e){t.setState(e,!1)})),this.states=[]},e.prototype.hasState=function(t){return this.states.includes(t)},e.prototype.getStates=function(){return this.states},e.prototype.getData=function(){return this.data},e.prototype.getModel=function(){return this.model},e.prototype.getBBox=function(){var t=this.shape,e=this.labelShape,n={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return t&&(n=t.getCanvasBBox()),e&&e.forEach((function(t){var e=t.getCanvasBBox();n.x=Math.min(e.x,n.x),n.y=Math.min(e.y,n.y),n.minX=Math.min(e.minX,n.minX),n.minY=Math.min(e.minY,n.minY),n.maxX=Math.max(e.maxX,n.maxX),n.maxY=Math.max(e.maxY,n.maxY)})),n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n},e.prototype.getStatesStyle=function(){if(!this.statesStyle){var t=this.shapeType,e=this.geometry,n=this.shapeFactory,r=e.stateOption,i=n.defaultShapeType,o=n.theme[t]||n.theme[i];this.statesStyle=Object(c.h)({},o,r)}return this.statesStyle},e.prototype.getStateStyle=function(t,e){var n=this.getStatesStyle(),r=Object(c.s)(n,[t,"style"],{}),i=r[e]||r;return Object(c.I)(i)?i(this):i},e.prototype.getAnimateCfg=function(t){var e=this,n=this.animate;if(n){var r=n[t];return r?Object(s.a)(Object(s.a)({},r),{callback:function(){var t;Object(c.I)(r.callback)&&r.callback(),null===(t=e.geometry)||void 0===t||t.emit(u.AFTER_DRAW_ANIMATE)}}):r}return null},e.prototype.drawShape=function(t,e){var n;void 0===e&&(e=!1);var r=this.shapeFactory,i=this.container,o=this.shapeType;if(this.shape=r.drawShape(o,t,i),this.shape){this.setShapeInfo(this.shape,t);var a=this.shape.cfg.name;a?Object(c.Q)(a)&&(this.shape.cfg.name=["element",a]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var l=e?"enter":"appear",h=this.getAnimateCfg(l);h&&(null===(n=this.geometry)||void 0===n||n.emit(u.BEFORE_DRAW_ANIMATE),Ln(this.shape,h,{coordinate:r.coordinate,toAttrs:Object(s.a)({},this.shape.attr())}))}},e.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},e.prototype.setShapeInfo=function(t,e){var n=this;(t.cfg.origin=e,t.cfg.element=this,t.isGroup())&&t.get("children").forEach((function(t){n.setShapeInfo(t,e)}))},e.prototype.syncShapeStyle=function(t,e,n,r,i){var o,a=this;if(void 0===n&&(n=[]),void 0===i&&(i=0),t&&e){var s=t.get("clipShape"),l=e.get("clipShape");if(this.syncShapeStyle(s,l,n,r),t.isGroup())for(var h=t.get("children"),d=e.get("children"),f=0;f<h.length;f++)this.syncShapeStyle(h[f],d[f],n,r,i+f);else{if(!Object(c.G)(n)&&!Object(c.H)(n,["reset"])){var p=t.get("name");Object(c.C)(p)&&(p=p[1]),Object(c.j)(n,(function(t){if("element-background"!==e.get("name")){var n=a.getStateStyle(t,p||i);e.attr(n)}}))}var g=ot(t,e);this.animate?r?(null===(o=this.geometry)||void 0===o||o.emit(u.BEFORE_DRAW_ANIMATE),Ln(t,r,{coordinate:this.shapeFactory.coordinate,toAttrs:g,shapeModel:this.model})):Object(c.G)(n)?t.attr(g):(t.stopAnimate(),t.animate(g,{duration:300})):t.attr(g)}}},e.prototype.getShapeType=function(t){var e=Object(c.s)(t,"shape");return Object(c.C)(e)?e[0]:e},e}(w),Fn={},Rn={};function Nn(t,e){Fn[t.toLowerCase()]=e}function zn(t,e){Rn[t.toLowerCase()]=e}var Wn={coordinate:null,defaultShapeType:null,theme:null,getShapePoints:function(t,e){var n=this.getShape(t);return n.getPoints?n.getPoints(e):this.getDefaultPoints(e)},getShape:function(t){var e=this[t]||this[this.defaultShapeType];return e.coordinate=this.coordinate,e},getDefaultPoints:function(){return[]},getDefaultStyle:function(t){return Object(c.s)(t,[this.defaultShapeType,"default","style"],{})},getMarker:function(t,e){var n=this.getShape(t);if(!n.getMarker){var r=this.defaultShapeType;n=this.getShape(r)}var i=this.theme,o=Object(c.s)(i,[t,"default"],{}),a=n.getMarker(e);return Object(c.h)({},o,a)},drawShape:function(t,e,n){return this.getShape(t).draw(e,n)}},$n={coordinate:null,parsePath:function(t){var e=this.coordinate,n=Gt(t);return n=e.isPolar?$t(e,n):function(t,e){var n=[];return Object(c.j)(e,(function(e){switch(e[0].toLowerCase()){case"m":case"l":case"c":n.push(Ft(e,t));break;case"a":n.push(Rt(e,t));break;case"z":default:n.push(e)}})),n}(e,n)},parsePoint:function(t){return this.coordinate.convert(t)},parsePoints:function(t){var e=this.coordinate;return t.map((function(t){return e.convert(t)}))},draw:function(t,e){}},Hn={};function Yn(t,e){var n=Object(c.wb)(t),r=Object(s.a)(Object(s.a)(Object(s.a)({},Wn),e),{geometryType:t});return Hn[n]=r,r}function Vn(t,e,n){var r=Object(c.wb)(t),i=Hn[r],o=Object(s.a)(Object(s.a)({},$n),n);return i[e]=o,o}function Gn(t){var e=Object(c.wb)(t);return Hn[e]}function Kn(t,e){return Object(c.nb)(["color","shape","size","x","y","isInCircle","data","style","defaultStyle","points","mappingData"],(function(n){return!Object(c.H)(t[n],e[n])}))}function Xn(t){return Object(c.C)(t)?t:t.split("*")}function Un(t,e){for(var n=[],r=[],i=[],o=new Map,a=0;a<e.length;a++){var s=e[a];t[s]?r.push(s):n.push(s),o.set(s,!0)}return Object.keys(t).forEach((function(t){o.has(t)||i.push(t)})),{added:n,updated:r,removed:i}}var qn=function(t){function e(e){var n=t.call(this,e)||this;n.type="base",n.attributes={},n.elements=[],n.elementsMap={},n.animateOption=!0,n.attributeOption={},n.lastElementsMap={},n.generatePoints=!1,n.beforeMappingData=null,n.adjusts={},n.idFields=[],n.hasSorted=!1,n.isCoordinateChanged=!1;var r=e.container,i=e.labelsContainer,o=e.coordinate,a=e.data,s=e.sortable,c=void 0!==s&&s,l=e.visible,u=void 0===l||l,h=e.theme,d=e.scales,f=void 0===d?{}:d,p=e.scaleDefs,g=void 0===p?{}:p,v=e.intervalPadding,y=e.dodgePadding,m=e.maxColumnWidth,b=e.minColumnWidth,x=e.columnWidthRatio,O=e.roseWidthRatio,j=e.multiplePieWidthRatio,w=e.zIndexReversed,C=e.sortZIndex,_=e.useDeferredLabel;return n.container=r,n.labelsContainer=i,n.coordinate=o,n.data=a,n.sortable=c,n.visible=u,n.userTheme=h,n.scales=f,n.scaleDefs=g,n.intervalPadding=v,n.dodgePadding=y,n.maxColumnWidth=m,n.minColumnWidth=b,n.columnWidthRatio=x,n.roseWidthRatio=O,n.multiplePieWidthRatio=j,n.zIndexReversed=w,n.sortZIndex=C,n.useDeferredLabel=_?"number"==typeof _?_:1/0:null,n}return Object(s.c)(e,t),e.prototype.position=function(t){var e=t;Object(c.P)(t)||(e={fields:Xn(t)});var n=Object(c.s)(e,"fields");return 1===n.length&&(n.unshift("1"),Object(c.lb)(e,"fields",n)),Object(c.lb)(this.attributeOption,"position",e),this},e.prototype.color=function(t,e){return this.createAttrOption("color",t,e),this},e.prototype.shape=function(t,e){return this.createAttrOption("shape",t,e),this},e.prototype.size=function(t,e){return this.createAttrOption("size",t,e),this},e.prototype.adjust=function(t){var e=t;return(Object(c.Q)(t)||Object(c.P)(t))&&(e=[t]),Object(c.j)(e,(function(t,n){Object(c.O)(t)||(e[n]={type:t})})),this.adjustOption=e,this},e.prototype.style=function(t,e){if(Object(c.Q)(t)){var n=Xn(t);this.styleOption={fields:n,callback:e}}else{var r=t,i=(n=r.fields,r.callback),o=r.cfg;this.styleOption=n||i||o?t:{cfg:t}}return this},e.prototype.tooltip=function(t,e){if(Object(c.Q)(t)){var n=Xn(t);this.tooltipOption={fields:n,callback:e}}else this.tooltipOption=t;return this},e.prototype.animate=function(t){return this.animateOption=t,this},e.prototype.label=function(t,e,n){if(Object(c.Q)(t)){var r={},i=Xn(t);r.fields=i,Object(c.I)(e)?r.callback=e:Object(c.P)(e)&&(r.cfg=e),n&&(r.cfg=n),this.labelOption=r}else this.labelOption=t;return this},e.prototype.state=function(t){return this.stateOption=t,this},e.prototype.customInfo=function(t){return this.customOption=t,this},e.prototype.init=function(t){void 0===t&&(t={}),this.setCfg(t),this.initAttributes(),this.processData(this.data),this.adjustScale()},e.prototype.update=function(t){void 0===t&&(t={});var e=t.data,n=t.isDataChanged,r=t.isCoordinateChanged,i=this.attributeOption,o=this.lastAttributeOption;Object(c.H)(i,o)?!e||!n&&Object(c.H)(e,this.data)?this.setCfg(t):(this.setCfg(t),this.initAttributes(),this.processData(e)):this.init(t),this.adjustScale(),this.isCoordinateChanged=r},e.prototype.paint=function(t){var e=this;void 0===t&&(t=!1),this.animateOption&&(this.animateOption=Object(c.h)({},Bn(this.type,this.coordinate),this.animateOption)),this.defaultSize=void 0,this.elementsMap={},this.elements=[],this.getOffscreenGroup().clear();var n=this.beforeMappingData,r=this.beforeMapping(n);this.dataArray=new Array(r.length);for(var i=0;i<r.length;i++){var o=r[i];this.dataArray[i]=this.mapping(o)}if(this.updateElements(this.dataArray,t),this.lastElementsMap=this.elementsMap,this.canDoGroupAnimation(t)){var a=this.container,l=this.type,u=this.coordinate,h=Object(c.s)(this.animateOption,"appear"),d=this.getYScale(),f=u.convert({x:0,y:d.scale(this.getYMinValue())});!function(t,e,n,r,i){if(Tn[n]){var o=Tn[n](r),a=kn(Object(c.s)(o,"animation",""));if(a){var l=Object(s.a)(Object(s.a)(Object(s.a)({},An.appear),o),e);t.stopAnimate(),a(t,l,{coordinate:r,minYPoint:i,toAttrs:null})}}}(a,h,l,u,f)}if(this.labelOption){var p=this.useDeferredLabel,g=function(){return e.renderLabels(Object(c.q)(e.dataArray),t)}.bind(this);if("number"==typeof p){var v="number"==typeof p&&p!==1/0?p:0;if(window.requestIdleCallback){var y=v&&v!==1/0?{timeout:v}:void 0;window.requestIdleCallback(g,y)}else setTimeout(g,v)}else g()}this.lastAttributeOption=Object(s.a)({},this.attributeOption),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this.container,e=this.geometryLabel,n=this.offscreenGroup;t&&t.clear(),e&&e.clear(),n&&n.clear(),this.scaleDefs=void 0,this.attributes={},this.scales={},this.elementsMap={},this.lastElementsMap={},this.elements=[],this.adjusts={},this.dataArray=null,this.beforeMappingData=null,this.lastAttributeOption=void 0,this.defaultSize=void 0,this.idFields=[],this.groupScales=void 0,this.hasSorted=!1,this.isCoordinateChanged=!1},e.prototype.destroy=function(){this.clear(),this.container.remove(!0),this.offscreenGroup&&(this.offscreenGroup.remove(!0),this.offscreenGroup=null),this.geometryLabel&&(this.geometryLabel.destroy(),this.geometryLabel=null),this.theme=void 0,this.shapeFactory=void 0,t.prototype.destroy.call(this)},e.prototype.getGroupScales=function(){return this.groupScales},e.prototype.getAttribute=function(t){return this.attributes[t]},e.prototype.getXScale=function(){return this.getAttribute("position").scales[0]},e.prototype.getYScale=function(){return this.getAttribute("position").scales[1]},e.prototype.getGroupAttributes=function(){var t=[];return Object(c.j)(this.attributes,(function(e){v.includes(e.type)&&t.push(e)})),t},e.prototype.getDefaultValue=function(t){var e,n=this.getAttribute(t);return n&&Object(c.G)(n.scales)&&(e=n.values[0]),e},e.prototype.getAttributeValues=function(t,e){for(var n=[],r=t.scales,i=0,o=r.length;i<o;i++){var a=r[i],c=a.field;a.isIdentity?n.push(a.values):n.push(e[c])}return t.mapping.apply(t,Object(s.g)([],Object(s.e)(n),!1))},e.prototype.getAdjust=function(t){return this.adjusts[t]},e.prototype.getCoordinate=function(){return this.coordinate},e.prototype.getData=function(){return this.data},e.prototype.getShapeMarker=function(t,e){return this.getShapeFactory().getMarker(t,e)},e.prototype.getElementsBy=function(t){return this.elements.filter((function(e){return t(e)}))},e.prototype.getElements=function(){return this.elements},e.prototype.getElementId=function(t){var e=(t=Object(c.C)(t)?t[0]:t)._origin;if(this.idFields.length){for(var n=e[this.idFields[0]],r=1;r<this.idFields.length;r++)n+="-"+e[this.idFields[r]];return n}var i,o,a=this.type,s=this.getXScale(),l=this.getYScale(),u=s.field||"x",h=e[l.field||"y"];i="identity"===s.type?s.values[0]:e[u],o="interval"===a||"schema"===a?"".concat(i):"line"===a||"area"===a||"path"===a?a:"".concat(i,"-").concat(h);for(var d=this.groupScales,f=(r=0,d.length);r<f;r++){var p=d[r].field;o="".concat(o,"-").concat(e[p])}var g=this.getAdjust("dodge");if(g){var v=g.dodgeBy;v&&(o="".concat(o,"-").concat(e[v]))}return this.getAdjust("jitter")&&(o="".concat(o,"-").concat(t.x,"-").concat(t.y)),o},e.prototype.getScaleFields=function(){var t=[],e=new Map,n=this.attributeOption,r=this.labelOption,i=this.tooltipOption;for(var o in n)if(n.hasOwnProperty(o)){var a=n[o];a.fields?ct(a.fields,t,e):a.values&&ct(a.values,t,e)}return r&&r.fields&&ct(r.fields,t,e),Object(c.O)(i)&&i.fields&&ct(i.fields,t,e),t},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e);for(var n=this.elements,r=0,i=n.length;r<i;r++){n[r].changeVisible(e)}e?(this.container&&this.container.show(),this.labelsContainer&&this.labelsContainer.show()):(this.container&&this.container.hide(),this.labelsContainer&&this.labelsContainer.hide())},e.prototype.getFields=function(){var t=new Map,e=[];return Object.values(this.attributeOption).forEach((function(n){((null==n?void 0:n.fields)||[]).forEach((function(n){t.has(n)||e.push(n),t.set(n,!0)}))}),[]),e},e.prototype.getGroupFields=function(){for(var t=[],e=new Map,n=0,r=v.length;n<r;n++){var i=v[n],o=this.attributeOption[i];o&&o.fields&&ct(o.fields,t,e)}return t},e.prototype.getXYFields=function(){var t=Object(s.e)(this.attributeOption.position.fields,2);return[t[0],t[1]]},e.prototype.getXField=function(){return Object(c.s)(this.getXYFields(),[0])},e.prototype.getYField=function(){return Object(c.s)(this.getXYFields(),[1])},e.prototype.getShapes=function(){return this.elements.map((function(t){return t.shape}))},e.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},e.prototype.sort=function(t){if(!this.hasSorted)for(var e=this.getXScale(),n=e.field,r=0;r<t.length;r++){t[r].sort((function(t,r){return e.translate(t._origin[n])-e.translate(r._origin[n])}))}this.hasSorted=!0},e.prototype.adjustScale=function(){var t=this.getYScale();t&&this.getAdjust("stack")&&this.updateStackRange(t,this.beforeMappingData)},e.prototype.getShapeFactory=function(){var t=this.shapeType;if(Gn(t))return this.shapeFactory||(this.shapeFactory=Object(c.e)(Gn(t))),this.shapeFactory.coordinate=this.coordinate,this.shapeFactory.theme=this.theme.geometries[t]||{},this.shapeFactory},e.prototype.createShapePointsCfg=function(t){var e=this.getXScale(),n=this.getYScale();return{x:this.normalizeValues(t[e.field],e),y:n?this.normalizeValues(t[n.field],n):t.y?t.y:.1,y0:n?n.scale(this.getYMinValue()):void 0}},e.prototype.createElement=function(t,e,n){void 0===n&&(n=!1);var r=this.container,i=this.getDrawCfg(t),o=this.getShapeFactory(),a=new Dn({shapeFactory:o,container:r,offscreenGroup:this.getOffscreenGroup(),elementIndex:e});return a.animate=this.animateOption,a.geometry=this,a.draw(i,n),a},e.prototype.getDrawCfg=function(t){var e=t._origin,n={mappingData:t,data:e,x:t.x,y:t.y,color:t.color,size:t.size,isInCircle:this.coordinate.isPolar,customInfo:this.customOption},r=t.shape;!r&&this.getShapeFactory()&&(r=this.getShapeFactory().defaultShapeType),n.shape=r;var i=this.theme.geometries[this.shapeType];n.defaultStyle=Object(c.s)(i,[r,"default"],{}).style,!n.defaultStyle&&this.getShapeFactory()&&(n.defaultStyle=this.getShapeFactory().getDefaultStyle(i));var o=this.styleOption;return o&&(n.style=this.getStyleCfg(o,e)),this.generatePoints&&(n.points=t.points,n.nextPoints=t.nextPoints),n},e.prototype.updateElements=function(t,e){var n,r,i,o,a,c;void 0===e&&(e=!1);for(var l=new Map,u=[],h=new Map,d=0,f=0;f<t.length;f++)for(var p=t[f],g=0;g<p.length;g++){var v=p[g],y=this.getElementId(v),m=l.has(y)?"".concat(y,"-").concat(f,"-").concat(g):y;u.push(m),l.set(m,v),h.set(m,d),d++}this.elements=new Array(d);var b=Un(this.lastElementsMap,u),x=b.added,O=b.updated,j=b.removed;try{for(var w=Object(s.i)(x),C=w.next();!C.done;C=w.next()){y=C.value,v=l.get(y),f=h.get(y);var _=this.createElement(v,f,e);this.elements[f]=_,this.elementsMap[y]=_,_.shape&&_.shape.set("zIndex",this.zIndexReversed?this.elements.length-f:f)}}catch(t){n={error:t}}finally{try{C&&!C.done&&(r=w.return)&&r.call(w)}finally{if(n)throw n.error}}try{for(var M=Object(s.i)(O),S=M.next();!S.done;S=M.next()){y=S.value,_=this.lastElementsMap[y],v=l.get(y);var E=this.getDrawCfg(v),k=_.getModel();f=h.get(y);(this.isCoordinateChanged||Kn(E,k))&&(_.animate=this.animateOption,_.update(E)),this.elements[f]=_,this.elementsMap[y]=_,_.shape&&_.shape.set("zIndex",this.zIndexReversed?this.elements.length-f:f)}}catch(t){i={error:t}}finally{try{S&&!S.done&&(o=M.return)&&o.call(M)}finally{if(i)throw i.error}}this.container&&this.container.sort();try{for(var I=Object(s.i)(j),A=I.next();!A.done;A=I.next()){y=A.value;(_=this.lastElementsMap[y]).animate=this.animateOption,_.destroy()}}catch(t){a={error:t}}finally{try{A&&!A.done&&(c=I.return)&&c.call(I)}finally{if(a)throw a.error}}},e.prototype.getLabelType=function(){var t=this.labelOption,e=this.coordinate,n=this.type,r=e.type,i=e.isTransposed,o=Object(c.s)(t,["cfg","type"]);return o||(o="polar"===r?i?"pie":"polar":"theta"===r?"pie":"interval"===n||"polygon"===n?"interval":"base"),o},e.prototype.getYMinValue=function(){var t=this.getYScale(),e=t.min,n=t.max;return e>=0?e:n<=0?n:0},e.prototype.createAttrOption=function(t,e,n){if(Object(c.K)(e)||Object(c.O)(e))Object(c.O)(e)&&Object(c.H)(Object.keys(e),["values"])?Object(c.lb)(this.attributeOption,t,{fields:e.values}):Object(c.lb)(this.attributeOption,t,e);else{var r={};Object(c.M)(e)?r.values=[e]:r.fields=Xn(e),n&&(Object(c.I)(n)?r.callback=n:r.values=n),Object(c.lb)(this.attributeOption,t,r)}},e.prototype.initAttributes=function(){var t=this,e=this.attributes,n=this.attributeOption,r=this.theme,i=this.shapeType;this.groupScales=[];var o={},a=function(a){if(n.hasOwnProperty(a)){var l=n[a];if(!l)return{value:void 0};var u=Object(s.a)({},l),h=u.callback,d=u.values,f=u.fields,p=(void 0===f?[]:f).map((function(e){var n=t.scales[e];!o[e]&&v.includes(a)&&("cat"===gt(n,Object(c.s)(t.scaleDefs,e),a,t.type)&&(t.groupScales.push(n),o[e]=!0));return n}));u.scales=p,"position"!==a&&1===p.length&&"identity"===p[0].type?u.values=p[0].values:h||d||("size"===a?u.values=r.sizes:"shape"===a?u.values=r.shapes[i]||[]:"color"===a&&(p.length?u.values=p[0].values.length<=10?r.colors10:r.colors20:u.values=r.colors10));var g=D(a);e[a]=new g(u)}};for(var l in n){var u=a(l);if("object"==typeof u)return u.value}},e.prototype.processData=function(t){var e,n;this.hasSorted=!1;for(var r=this.getAttribute("position").scales.filter((function(t){return t.isCategory})),i=this.groupData(t),o=[],a=0,c=i.length;a<c;a++){for(var l=i[a],u=[],h=0,d=l.length;h<d;h++){var f=l[h],p={};for(var g in f)p[g]=f[g];p._origin=f;try{for(var v=(e=void 0,Object(s.i)(r)),y=v.next();!y.done;y=v.next()){var m=y.value,b=m.field;p[b]=m.translate(p[b])}}catch(t){e={error:t}}finally{try{y&&!y.done&&(n=v.return)&&n.call(v)}finally{if(e)throw e.error}}u.push(p)}o.push(u)}var x=this.adjustData(o);return this.beforeMappingData=x,x},e.prototype.adjustData=function(t){var e=this.adjustOption,n=this.intervalPadding,r=this.dodgePadding,i=this.theme,o=this.maxColumnWidth||i.maxColumnWidth,a=this.minColumnWidth||i.minColumnWidth,l=this.columnWidthRatio||i.columnWidthRatio,u=t;if(e){var h=this.getXScale(),d=this.getYScale(),f=h.field,p=d?d.field:null,g=ut(this.coordinate),v=h.values.length,y=this.getAttribute("size"),m=void 0;y&&(m=y.values[0]);for(var b=0,x=e.length;b<x;b++){var O=e[b],j=Object(s.a)({xField:f,yField:p,intervalPadding:n,dodgePadding:r,xDimensionLength:g,groupNum:v,defaultSize:m,maxColumnWidth:o,minColumnWidth:a,columnWidthRatio:l},O),w=O.type;if("dodge"===w){var C=[];if(h.isCategory||"identity"===h.type)C.push("x");else{if(d)throw new Error("dodge is not support linear attribute, please use category attribute!");C.push("y")}j.adjustNames=C,j.dodgeRatio=l}else if("stack"===w){var M=this.coordinate;if(!d){j.height=M.getHeight();var S=this.getDefaultValue("size")||3;j.size=S}!M.isTransposed&&Object(c.K)(j.reverseOrder)&&(j.reverseOrder=!0)}var E=Object(_.getAdjust)(w);j.dimValuesMap={},h&&h.values&&(j.dimValuesMap[h.field]=h.values.map((function(t){return h.translate(t)})));var k=new E(j);u=k.process(u),this.adjusts[w]=k}}return u},e.prototype.groupData=function(t){for(var e=this.getGroupScales(),n=this.scaleDefs,r={},i=[],o=0;o<e.length;o++){var a=e[o].field;i.push(a),Object(c.s)(n,[a,"values"])&&(r[a]=n[a].values)}return function(t,e,n){var r,i;if(void 0===n&&(n={}),!e)return[t];var o=Object(c.x)(t,e),a=[];if(1===e.length&&n[e[0]]){var l=n[e[0]];try{for(var u=Object(s.i)(l),h=u.next();!h.done;h=u.next()){var d=h.value,f=o["_".concat(d)];f&&a.push(f)}}catch(t){r={error:t}}finally{try{h&&!h.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}}else for(var p in o)if(o.hasOwnProperty(p)){var g=o[p];a.push(g)}return a}(t,i,r)},e.prototype.updateStackRange=function(t,e){for(var n=Object(c.q)(e),r=t.field,i=t.min,o=t.max,a=0;a<n.length;a++){var s=n[a],l=Math.min.apply(null,s[r]),u=Math.max.apply(null,s[r]);l<i&&(i=l),u>o&&(o=u)}var h=this.scaleDefs,d={};i<t.min&&!Object(c.s)(h,[r,"min"])&&(d.min=i),o>t.max&&!Object(c.s)(h,[r,"max"])&&(d.max=o),t.change(d)},e.prototype.beforeMapping=function(t){var e=t;if(this.sortable&&this.sort(e),this.generatePoints)for(var n=0,r=e.length;n<r;n++){var i=e[n];this.generateShapePoints(i);var o=e[n+1];o&&(this.generateShapePoints(o),i[0].nextPoints=o[0].points)}return e},e.prototype.generateShapePoints=function(t){for(var e=this.getShapeFactory(),n=this.getAttribute("shape"),r=0;r<t.length;r++){var i=t[r],o=this.createShapePointsCfg(i),a=n?this.getAttributeValues(n,i):null,s=e.getShapePoints(a,o);i.points=s}},e.prototype.normalizeValues=function(t,e){var n=[];if(Object(c.C)(t))for(var r=0;r<t.length;r++){var i=t[r];n.push(e.scale(i))}else n=e.scale(t);return n},e.prototype.mapping=function(t){for(var e=this.attributes,n=[],r=0;r<t.length;r++){var i=t[r],o={_origin:i._origin,points:i.points,nextPoints:i.nextPoints};for(var a in e)if(e.hasOwnProperty(a)){var s=e[a],l=s.names,u=this.getAttributeValues(s,i);if(l.length>1)for(var h=0;h<u.length;h+=1){var d=u[h];o[l[h]]=Object(c.C)(d)&&1===d.length?d[0]:d}else o[l[0]]=1===u.length?u[0]:u}this.convertPoint(o),n.push(o)}return n},e.prototype.convertPoint=function(t){var e,n,r,i=t.x,o=t.y,a=this.coordinate;if(Object(c.C)(i)&&Object(c.C)(o)){e=[],n=[];for(var s=0,l=0,u=i.length,h=o.length;s<u&&l<h;s+=1,l+=1)r=a.convert({x:i[s],y:o[l]}),e.push(r.x),n.push(r.y)}else if(Object(c.C)(o)){n=[];for(var d=0;d<o.length;d++){var f=o[d];r=a.convert({x:i,y:f}),e&&e!==r.x?(Object(c.C)(e)||(e=[e]),e.push(r.x)):e=r.x,n.push(r.y)}}else if(Object(c.C)(i)){e=[];for(d=0;d<i.length;d++){var p=i[d];r=a.convert({x:p,y:o}),n&&n!==r.y?(Object(c.C)(n)||(n=[n]),n.push(r.y)):n=r.y,e.push(r.x)}}else{var g=a.convert({x:i,y:o});e=g.x,n=g.y}t.x=e,t.y=n},e.prototype.getStyleCfg=function(t,e){var n=t.fields,r=void 0===n?[]:n,i=t.callback,o=t.cfg;if(o)return o;var a=r.map((function(t){return e[t]}));return i.apply(void 0,Object(s.g)([],Object(s.e)(a),!1))},e.prototype.setCfg=function(t){var e=this,n=t.coordinate,r=t.data,i=t.theme,o=t.scaleDefs;n&&(this.coordinate=n),r&&(this.data=r),o&&(this.scaleDefs=o,this.idFields=[],Object(c.j)(o,(function(t,n){t&&t.key&&e.idFields.push(n)}))),i&&(this.theme=this.userTheme?Object(c.h)({},i,this.userTheme):i)},e.prototype.renderLabels=function(t,e){return void 0===e&&(e=!1),Object(s.b)(this,void 0,void 0,(function(){var n,r,i,o,a,l,h,d,f,p,g,v,y=this;return Object(s.d)(this,(function(m){switch(m.label){case 0:return n=this.geometryLabel,this.emit(u.BEFORE_RENDER_LABEL),n||(r=this.getLabelType(),i=Fn[r.toLowerCase()],n=new i(this),this.geometryLabel=n),[4,n.render(t,e)];case 1:m.sent(),o=n.labelsRenderer.shapesMap,a=new Map,Object(c.j)(o,(function(t,e){for(var n=t.getChildren()||[],r=0;r<n.length;r++){var i=n[r],o=y.elementsMap[i.get("elementId")||e.split(" ")[0]];if(o){i.cfg.name=["element","label"],i.cfg.element=o;var s=a.get(o)||new Set;s.add(t),a.set(o,s)}}}));try{for(l=Object(s.i)(a.entries()),h=l.next();!h.done;h=l.next())d=Object(s.e)(h.value,2),f=d[0],p=d[1],f.labelShape=Object(s.g)([],Object(s.e)(p),!1)}catch(t){g={error:t}}finally{try{h&&!h.done&&(v=l.return)&&v.call(l)}finally{if(g)throw g.error}}return this.emit(u.AFTER_RENDER_LABEL),[2]}}))}))},e.prototype.canDoGroupAnimation=function(t){return!t&&this.animateOption&&(void 0===Object(c.s)(this.animateOption,"appear")||Object(c.s)(this.animateOption,"appear")&&void 0===Object(c.s)(this.animateOption,["appear","animation"]))},e}(w),Zn=R.a.transform;function Qn(t,e,n){var r=Zn(t.getMatrix(),[["t",e,n]]);t.setMatrix(r)}function Jn(t,e){var n=function(t,e){var n=t.attr(),r=n.x,i=n.y;return Zn(t.getMatrix(),[["t",-r,-i],["r",e],["t",r,i]])}(t,e);t.setMatrix(n)}function tr(t){return t.find((function(t){return"text"===t.get("type")}))}function er(t,e,n){void 0===n&&(n=[0,0,0,0]);var r=t&&t.getChildren()[0];if(r){var i=r.clone();(null==e?void 0:e.rotate)&&Jn(i,-e.rotate);var o=i.getCanvasBBox(),a=o.x,s=o.y,l=o.width,u=o.height;i.destroy();var h=n;return Object(c.K)(h)?h=[2,2,2,2]:Object(c.M)(h)&&(h=new Array(4).fill(h)),{x:a-h[3],y:s-h[0],width:l+h[1]+h[3],height:u+h[0]+h[2],rotation:(null==e?void 0:e.rotate)||0}}return{x:0,y:0,width:0,height:0,rotation:0}}function nr(t,e){var n=t.getBBox();return Object(c.nb)(e,(function(t){var e,r,i,o=t.getBBox();return e=n,r=o,void 0===(i=2)&&(i=0),Math.max(0,Math.min(e.x+e.width+i,r.x+r.width+i)-Math.max(e.x-i,r.x-i))*Math.max(0,Math.min(e.y+e.height+i,r.y+r.height+i)-Math.max(e.y-i,r.y-i))>0}))}var rr=function(){function t(t){this.shapesMap={};var e=t.layout,n=t.container;this.layout=e,this.container=n}return t.prototype.render=function(t,e,n){return void 0===n&&(n=!1),Object(s.b)(this,void 0,void 0,(function(){var r,i,o,a,l,u,h,d,f=this;return Object(s.d)(this,(function(p){switch(p.label){case 0:if(r={},i=this.createOffscreenGroup(),!t.length)return[3,2];try{for(o=Object(s.i)(t),a=o.next();!a.done;a=o.next())(l=a.value)&&(r[l.id]=this.renderLabel(l,i))}catch(t){h={error:t}}finally{try{a&&!a.done&&(d=o.return)&&d.call(o)}finally{if(h)throw h.error}}return[4,this.doLayout(t,e,r)];case 1:p.sent(),this.renderLabelLine(t,r),this.renderLabelBackground(t,r),this.adjustLabel(t,r),p.label=2;case 2:return u=this.shapesMap,Object(c.j)(r,(function(t,e){if(t.destroyed)delete r[e];else{if(u[e]){var i=t.get("data"),o=t.get("origin"),a=t.get("coordinate"),l=t.get("animateCfg"),h=u[e];!function t(e,n,r){var i=r.data,o=r.origin,a=r.animateCfg,s=r.coordinate,l=Object(c.s)(a,"update");e.set("data",i),e.set("origin",o),e.set("animateCfg",a),e.set("coordinate",s),e.set("visible",n.get("visible")),(e.getChildren()||[]).forEach((function(c,u){var h=n.getChildByIndex(u);if(h){c.set("data",i),c.set("origin",o),c.set("animateCfg",a),c.set("coordinate",s);var d=ot(c,h);l?Ln(c,l,{toAttrs:d,coordinate:s}):c.attr(d),h.isGroup()&&t(c,h,r)}else e.removeChild(c),c.remove(!0)})),Object(c.j)(n.getChildren(),(function(t,n){Object(c.C)(e.getChildren())&&n>=e.getCount()&&(t.destroyed||e.add(t))}))}(h,r[e],{data:i,origin:o,animateCfg:l,coordinate:a}),r[e]=h}else{if(f.container.destroyed)return;f.container.add(t);var d=Object(c.s)(t.get("animateCfg"),n?"enter":"appear");d&&Ln(t,d,{toAttrs:Object(s.a)({},t.attr()),coordinate:t.get("coordinate")})}delete u[e]}})),Object(c.j)(u,(function(t){var e=Object(c.s)(t.get("animateCfg"),"leave");e?Ln(t,e,{toAttrs:null,coordinate:t.get("coordinate")}):t.remove(!0)})),this.shapesMap=r,i.destroy(),[2]}}))}))},t.prototype.clear=function(){this.container.clear(),this.shapesMap={}},t.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null},t.prototype.renderLabel=function(t,e){var n,r=t.id,i=t.elementId,o=t.data,a=t.mappingData,l=t.coordinate,u=t.animate,h=t.content,d={id:r,elementId:i,capture:t.capture,data:o,origin:Object(s.a)(Object(s.a)({},a),{data:a._origin}),coordinate:l},f=e.addGroup(Object(s.a)({name:"label",animateCfg:!1!==this.animate&&null!==u&&!1!==u&&Object(c.h)({},this.animate,u)},d));if(h.isGroup&&h.isGroup()||h.isShape&&h.isShape()){var p=h.getCanvasBBox(),g=p.width,v=p.height,y=Object(c.s)(t,"textAlign","left"),m=t.x;"center"===y?m-=g/2:"right"!==y&&"end"!==y||(m-=g),Qn(h,m,t.y-v/2),n=h,f.add(h)}else{var b=Object(c.s)(t,["style","fill"]);n=f.addShape("text",Object(s.a)({attrs:Object(s.a)(Object(s.a)({x:t.x,y:t.y,textAlign:t.textAlign,textBaseline:Object(c.s)(t,"textBaseline","middle"),text:t.content},t.style),{fill:Object(c.L)(b)?t.color:b})},d))}return t.rotate&&Jn(n,t.rotate),f},t.prototype.doLayout=function(t,e,n){return Object(s.b)(this,void 0,void 0,(function(){var r,i=this;return Object(s.d)(this,(function(o){switch(o.label){case 0:return this.layout?(r=Object(c.C)(this.layout)?this.layout:[this.layout],[4,Promise.all(r.map((function(r){var o,a=(o=Object(c.s)(r,"type",""),Rn[o.toLowerCase()]);if(a){var s=[],l=[];return Object(c.j)(n,(function(t,n){s.push(t),l.push(e[t.get("elementId")])})),a(t,s,l,i.region,r.cfg)}})))]):[3,2];case 1:o.sent(),o.label=2;case 2:return[2]}}))}))},t.prototype.renderLabelLine=function(t,e){Object(c.j)(t,(function(t){var n=Object(c.s)(t,"coordinate");if(t&&n){var r=n.getCenter(),i=n.getRadius();if(t.labelLine){var o=Object(c.s)(t,"labelLine",{}),a=t.id,l=o.path;if(!l){var u=et(r.x,r.y,i,t.angle);l=[["M",u.x,u.y],["L",t.x,t.y]]}var h=e[a];h.destroyed||h.addShape("path",{capture:!1,attrs:Object(s.a)({path:l,stroke:t.color?t.color:Object(c.s)(t,["style","fill"],"#000"),fill:null},o.style),id:a,origin:t.mappingData,data:t.data,coordinate:t.coordinate})}}}))},t.prototype.renderLabelBackground=function(t,e){Object(c.j)(t,(function(t){var n=Object(c.s)(t,"coordinate"),r=Object(c.s)(t,"background");if(r&&n){var i=t.id,o=e[i];if(!o.destroyed){var a=o.getChildren()[0];if(a){var l=er(o,t,r.padding),u=l.rotation,h=Object(s.f)(l,["rotation"]),d=o.addShape("rect",{attrs:Object(s.a)(Object(s.a)({},h),r.style||{}),id:i,origin:t.mappingData,data:t.data,coordinate:t.coordinate});if(d.setZIndex(-1),u){var f=a.getMatrix();d.setMatrix(f)}}}}}))},t.prototype.createOffscreenGroup=function(){return new(this.container.getGroupBase())({})},t.prototype.adjustLabel=function(t,e){Object(c.j)(t,(function(t){if(t){var n=t.id,r=e[n];if(!r.destroyed){var i=r.findAll((function(t){return"path"!==t.get("type")}));Object(c.j)(i,(function(e){e&&(t.offsetX&&e.attr("x",e.attr("x")+t.offsetX),t.offsetY&&e.attr("y",e.attr("y")+t.offsetY))}))}}}))},t}();function ir(t){var e=0;return Object(c.j)(t,(function(t){e+=t})),e/t.length}var or=function(){function t(t){this.geometry=t}return t.prototype.getLabelItems=function(t){var e=this,n=[],r=this.getLabelCfgs(t);return Object(c.j)(t,(function(t,i){var o=r[i];if(!o||Object(c.K)(t.x)||Object(c.K)(t.y))n.push(null);else{var a=Object(c.C)(o.content)?o.content:[o.content];o.content=a;var l=a.length;Object(c.j)(a,(function(r,i){if(Object(c.K)(r)||""===r)n.push(null);else{var a=Object(s.a)(Object(s.a)({},o),e.getLabelPoint(o,t,i));a.textAlign||(a.textAlign=e.getLabelAlign(a,i,l)),a.offset<=0&&(a.labelLine=null),n.push(a)}}))}})),n},t.prototype.render=function(t,e){return void 0===e&&(e=!1),Object(s.b)(this,void 0,void 0,(function(){var n,r,i;return Object(s.d)(this,(function(o){switch(o.label){case 0:return n=this.getLabelItems(t),r=this.getLabelsRenderer(),i=this.getGeometryShapes(),[4,r.render(n,i,e)];case 1:return o.sent(),[2]}}))}))},t.prototype.clear=function(){var t=this.labelsRenderer;t&&t.clear()},t.prototype.destroy=function(){var t=this.labelsRenderer;t&&t.destroy(),this.labelsRenderer=null},t.prototype.getCoordinate=function(){return this.geometry.coordinate},t.prototype.getDefaultLabelCfg=function(t,e){var n=this.geometry,r=n.type,i=n.theme;return"polygon"===r||"interval"===r&&"middle"===e||t<0&&!["line","point","path"].includes(r)?Object(c.s)(i,"innerLabels",{}):Object(c.s)(i,"labels",{})},t.prototype.getThemedLabelCfg=function(t){var e=this.geometry,n=this.getDefaultLabelCfg(),r=e.type,i=e.theme;return"polygon"===r||t.offset<0&&!["line","point","path"].includes(r)?Object(c.h)({},n,i.innerLabels,t):Object(c.h)({},n,i.labels,t)},t.prototype.setLabelPosition=function(t,e,n,r){},t.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=this.getOffsetVector(t);return e.isTransposed?n[0]:n[1]},t.prototype.getLabelOffsetPoint=function(t,e,n){var r=t.offset,i=this.getCoordinate().isTransposed,o=i?"x":"y",a=i?1:-1,s={x:0,y:0};return s[o]=e>0||1===n?r*a:r*a*-1,s},t.prototype.getLabelPoint=function(t,e,n){var r=this.getCoordinate(),i=t.content.length;function o(e,n,r){void 0===r&&(r=!1);var i=e;return Object(c.C)(i)&&(i=1===t.content.length?r?ir(i):i.length<=2?i[e.length-1]:ir(i):i[n]),i}var a={content:t.content[n],x:0,y:0,start:{x:0,y:0},color:"#fff"},s=Object(c.C)(e.shape)?e.shape[0]:e.shape,l="funnel"===s||"pyramid"===s;if("polygon"===this.geometry.type){var u=function(t,e){if(Object(c.M)(t)&&Object(c.M)(e))return[t,e];if(e=e,J(t=t)||J(e))return[tt(t),tt(e)];for(var n,r,i=-1,o=0,a=0,s=t.length-1,l=0;++i<t.length;)n=s,s=i,l+=r=t[n]*e[s]-t[s]*e[n],o+=(t[n]+t[s])*r,a+=(e[n]+e[s])*r;return[o/(l*=3),a/l]}(e.x,e.y);a.x=u[0],a.y=u[1]}else"interval"!==this.geometry.type||l?(a.x=o(e.x,n),a.y=o(e.y,n)):(a.x=o(e.x,n,!0),a.y=o(e.y,n));if(l){var h=Object(c.s)(e,"nextPoints"),d=Object(c.s)(e,"points");if(h){var f=r.convert(d[1]),p=r.convert(h[1]);a.x=(f.x+p.x)/2,a.y=(f.y+p.y)/2}else if("pyramid"===s){f=r.convert(d[1]),p=r.convert(d[2]);a.x=(f.x+p.x)/2,a.y=(f.y+p.y)/2}}t.position&&this.setLabelPosition(a,e,n,t.position);var g=this.getLabelOffsetPoint(t,n,i);return a.start={x:a.x,y:a.y},a.x+=g.x,a.y+=g.y,a.color=e.color,a},t.prototype.getLabelAlign=function(t,e,n){var r="center";if(this.getCoordinate().isTransposed){var i=t.offset;r=i<0?"right":0===i?"center":"left",n>1&&0===e&&("right"===r?r="left":"left"===r&&(r="right"))}return r},t.prototype.getLabelId=function(t){var e=this.geometry,n=e.type,r=e.getXScale(),i=e.getYScale(),o=t._origin,a=e.getElementId(t);return"line"===n||"area"===n?a+=" ".concat(o[r.field]):"path"===n&&(a+=" ".concat(o[r.field],"-").concat(o[i.field])),a},t.prototype.getLabelsRenderer=function(){var t=this.geometry,e=t.labelsContainer,n=t.labelOption,r=t.canvasRegion,i=t.animateOption,o=this.geometry.coordinate,a=this.labelsRenderer;return a||(a=new rr({container:e,layout:Object(c.s)(n,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=a),a.region=r,a.animate=!!i&&Bn("label",o),a},t.prototype.getLabelCfgs=function(t){var e=this,n=this.geometry,r=n.labelOption,i=n.scales,o=n.coordinate,a=r,l=a.fields,u=a.callback,h=a.cfg,d=l.map((function(t){return i[t]})),f=[];return Object(c.j)(t,(function(t,n){var r,i=t._origin,a=e.getLabelText(i,d);if(u){var p=l.map((function(t){return i[t]}));if(r=u.apply(void 0,Object(s.g)([],Object(s.e)(p),!1)),Object(c.K)(r))return void f.push(null)}var g=Object(s.a)(Object(s.a)({id:e.getLabelId(t),elementId:e.geometry.getElementId(t),data:i,mappingData:t,coordinate:o},h),r);Object(c.I)(g.position)&&(g.position=g.position(i,t,n));var v=e.getLabelOffset(g.offset||0),y=e.getDefaultLabelCfg(v,g.position);(g=Object(c.h)({},y,g)).offset=e.getLabelOffset(g.offset||0);var m=g.content;Object(c.I)(m)?g.content=m(i,t,n):Object(c.S)(m)&&(g.content=a[0]),f.push(g)})),f},t.prototype.getLabelText=function(t,e){var n=[];return Object(c.j)(e,(function(e){var r=t[e.field];r=Object(c.C)(r)?r.map((function(t){return e.getText(t)})):e.getText(r),Object(c.K)(r)||""===r?n.push(null):n.push(r)})),n},t.prototype.getOffsetVector=function(t){void 0===t&&(t=0);var e=this.getCoordinate(),n=0;return Object(c.M)(t)&&(n=t),e.isTransposed?e.applyMatrix(n,0):e.applyMatrix(0,n)},t.prototype.getGeometryShapes=function(){var t=this.geometry,e={};return Object(c.j)(t.elementsMap,(function(t,n){e[n]=t.shape})),Object(c.j)(t.getOffscreenGroup().getChildren(),(function(n){var r=t.getElementId(n.get("origin").mappingData);e[r]=n})),e},t}();function ar(t,e,n){if(!t)return n;var r;if(t.callback&&t.callback.length>1){var i=Array(t.callback.length-1).fill("");r=t.mapping.apply(t,Object(s.g)([e],Object(s.e)(i),!1)).join("")}else r=t.mapping(e).join("");return r||n}var sr={hexagon:function(t,e,n){var r=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+r,e-n/2],["L",t+r,e+n/2],["L",t,e+n],["L",t-r,e+n/2],["L",t-r,e-n/2],["Z"]]},bowtie:function(t,e,n){var r=n-1.5;return[["M",t-n,e-r],["L",t+n,e+r],["L",t+n,e-r],["L",t-n,e+r],["Z"]]},cross:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]]},tick:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},plus:function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]},hyphen:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},line:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]}},cr=["line","cross","tick","plus","hyphen"];function lr(t){var e=t.symbol;Object(c.Q)(e)&&sr[e]&&(t.symbol=sr[e])}function ur(t){return t.startsWith(o.LEFT)||t.startsWith(o.RIGHT)?"vertical":"horizontal"}function hr(t,e,n,r,i){var o=n.getScale(n.type);if(o.isCategory){var a=o.field,l=e.getAttribute("color"),u=e.getAttribute("shape"),h=t.getTheme().defaultColor,d=e.coordinate.isPolar;return o.getTicks().map((function(n,f){var p,g=n.text,v=n.value,y=g,m=o.invert(v),b=0===t.filterFieldData(a,[(p={},p[a]=m,p)]).length;Object(c.j)(t.views,(function(t){var e;t.filterFieldData(a,[(e={},e[a]=m,e)]).length||(b=!0)}));var x,O,j=ar(l,m,h),w=ar(u,m,"point"),C=e.getShapeMarker(w,{color:j,isInPolar:d}),_=i;return Object(c.I)(_)&&(_=_(y,f,Object(s.a)({name:y,value:m},Object(c.h)({},r,C)))),function(t,e){var n=t.symbol;if(Object(c.Q)(n)&&-1!==cr.indexOf(n)){var r=Object(c.s)(t,"style",{}),i=Object(c.s)(r,"lineWidth",1),o=r.stroke||r.fill||e;t.style=Object(c.h)({},t.style,{lineWidth:i,stroke:o,fill:null})}}(C=Object(c.h)({},r,C,st(Object(s.a)({},_),["style"])),j),_&&_.style&&(C.style=(x=C.style,O=_.style,Object(c.I)(O)?O(x):Object(c.h)({},x,O))),lr(C),{id:m,name:y,value:m,marker:C,unchecked:b}}))}return[]}function dr(t,e){var n=Object(c.s)(t,["components","legend"],{});return Object(c.h)({},Object(c.s)(n,["common"],{}),Object(c.h)({},Object(c.s)(n,[e],{})))}function fr(t){return!t&&(null==t||isNaN(t))}function pr(t){if(Object(c.C)(t))return fr(t[1].y);var e=t.y;return Object(c.C)(e)?fr(e[0]):fr(e)}function gr(t,e,n){if(void 0===e&&(e=!1),void 0===n&&(n=!0),!t.length||1===t.length&&!n)return[];if(e){for(var r=[],i=0,o=t.length;i<o;i++){pr(c=t[i])||r.push(c)}return[r]}var a=[],s=[];for(i=0,o=t.length;i<o;i++){var c;pr(c=t[i])?s.length&&((1!==s.length||n)&&a.push(s),s=[]):s.push(c)}return s.length&&a.push(s),a}function vr(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(r){var i=0===n?"M":"L";e.push([i,r.x,r.y])}}var o=t[0];return o&&(e.push(["L",o.x,o.y]),e.push(["z"])),e}function yr(t){for(var e=t.length/2,n=[],r=[],i=0;i<t.length;i++)i<e?n.push(t[i]):r.push(t[i]);var o=Wt(n,!1),a=Wt(r,!1);r.length&&o.push(["L",r[0].x,r[0].y]),a.shift();var s=o.concat(a);return n.length&&s.push(["L",n[0].x,n[0].y]),s.push(["z"]),s}function mr(t,e,n,r){void 0===r&&(r="");var i=t.style,o=void 0===i?{}:i,a=t.defaultStyle,l=t.color,u=t.size,h=Object(s.a)(Object(s.a)({},a),o);return l&&(e&&(o.stroke||(h.stroke=l)),n&&(o.fill||(h.fill=l))),r&&Object(c.K)(o[r])&&!Object(c.K)(u)&&(h[r]=u),h}function br(t){return Object(c.h)({},{fill:"#CCD6EC",fillOpacity:.3},Object(c.s)(t,["background","style"]))}function xr(t){var e=t.x;return(Object(c.C)(t.y)?t.y:[t.y]).map((function(t,n){return{x:Object(c.C)(e)?e[n]:e,y:t}}))}var Or={line:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},dot:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},dash:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},smooth:function(t,e,n){return[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]]},hv:function(t,e,n){return[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]]},vh:function(t,e,n){return[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]]},hvh:function(t,e,n){return[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]]},vhv:function(t,e){return[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]]}};function jr(t,e){var n=t.color;return{symbol:Or[e],style:{lineWidth:2,r:6,stroke:n}}}function wr(t,e,n,r,i){return 1===t.length?[["M",t[0].x,t[0].y-i.lineWidth/2],["L",t[0].x,t[0].y],["L",t[0].x,t[0].y+i.lineWidth/2]]:(n?(e&&t.length&&t.push({x:t[0].x,y:t[0].y}),o=Wt(t,!1,r)):(o=zt(t,!1),e&&o.push(["Z"])),o);var o}function Cr(t,e,n,r,i,o){if(t.length){var a=t[0];return Object(c.C)(a.y)?function(t,e,n,r,i,o){var a=[],s=[];Object(c.j)(t,(function(t){var e=xr(t);a.push(e[1]),s.push(e[0])}));var l=wr(a,e,r,i,o),u=wr(s,e,r,i,o);return n?l:l.concat(u)}(t,e,n,r,i,o):wr(t,e,r,i,o)}return[]}Yn("line",{defaultShapeType:"line"});Object(c.j)(["line","dot","dash","smooth"],(function(t){Vn("line",t,{draw:function(e,n){var r,i="smooth"===t;if(i){var o=this.coordinate,a=o.start,s=o.end;r=[[a.x,s.y],[s.x,a.y]]}var c=function(t,e,n){for(var r=t.isStack,i=t.connectNulls,o=t.isInCircle,a=t.showSinglePoint,s=mr(t,!0,!1,"lineWidth"),c=gr(t.points,i,a),l=[],u=0,h=c.length;u<h;u++){var d=c[u];l=l.concat(Cr(d,o,r,e,n,s))}return s.path=l,s}(e,i,r);return n.addShape({type:"path",attrs:c,name:"line",capture:!i})},getMarker:function(e){return jr(e,t)}})}));var _r={getLegendItems:hr,translate:Qn,rotate:Jn,zoom:function(t,e){var n=t.getBBox(),r=(n.minX+n.maxX)/2,i=(n.minY+n.maxY)/2;t.applyToMatrix([r,i,1]);var o=Zn(t.getMatrix(),[["t",-r,-i],["s",e,e],["t",r,i]]);t.setMatrix(o)},transform:Zn,getAngle:it,getSectorPath:nt,polarToCartesian:et,getDelegationObject:ae,getTooltipItems:ln,getMappingValue:ar,getPath:Cr,getPathPoints:gr},Mr="#000",Sr="#262626",Er="#BFBFBF",kr="#F0F0F0",Ir="#FFFFFF",Ar="#A6A6A6",Pr="#737373",Tr="#404040",Br="#262626",Lr=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E86452","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],Dr=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#E86452","#F8D0CB","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],Fr=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],Rr=function(t){void 0===t&&(t={});var e=t.paletteQualitative10,n=void 0===e?Lr:e,r=t.paletteQualitative20,i=void 0===r?Dr:r,o=t.brandColor,a={backgroundColor:"#141414",brandColor:void 0===o?n[0]:o,subColor:"rgba(255,255,255,0.05)",paletteQualitative10:n,paletteQualitative20:i,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:Fr,fontFamily:'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"',axisLineBorderColor:Tr,axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:Ar,axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:Sr,axisTickLineBorderColor:Tr,axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:Br,axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:Pr,axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:Br,axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:Pr,legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:Lr[0],legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:Ar,legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendSpacing:16,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:Pr,legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:Pr,legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:Ar,legendPageNavigatorTextFontSize:12,sliderRailFillColor:Br,sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:Pr,sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:kr,sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:Er,annotationArcBorderColor:Br,annotationArcBorder:1,annotationLineBorderColor:Tr,annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:Ar,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:Ir,annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:Tr,tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"#1f1f1f",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 2px 4px rgba(0,0,0,.5)",tooltipContainerBorderRadius:3,tooltipTextFillColor:Ar,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:Ar,labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:Mr,innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:Ar,overflowLabelFillColorDark:"#2c3542",overflowLabelFillColorLight:"#ffffff",overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:Mr,overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:Tr,cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#fff",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(255,255,255,0.65)",scrollbarThumbFillColor:"rgba(0,0,0,0.35)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.45)",pointFillColor:Lr[0],pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:Mr,pointBorderOpacity:1,pointActiveBorderColor:Ir,pointSelectedBorder:2,pointSelectedBorderColor:Ir,pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:Lr[0],hollowPointBorderOpacity:.95,hollowPointFillColor:Mr,hollowPointActiveBorder:1,hollowPointActiveBorderColor:Ir,hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:Ir,hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:Lr[0],lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:Lr[0],areaFillOpacity:.25,areaActiveFillColor:Lr[0],areaActiveFillOpacity:.5,areaSelectedFillColor:Lr[0],areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:Lr[0],hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:Ir,hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:Ir,hollowAreaInactiveBorderOpacity:.3,intervalFillColor:Lr[0],intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:Ir,intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:Ir,intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:Lr[0],hollowIntervalBorderOpacity:1,hollowIntervalFillColor:Mr,hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:Ir,hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:Ir,hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3};return Object(s.a)(Object(s.a)({},a),t)}(),Nr=n(647),zr=n(701),Wr=function(t){function e(e){var n=t.call(this,e)||this;n.type="path",n.shapeType="line";var r=e.connectNulls,i=void 0!==r&&r,o=e.showSinglePoint,a=void 0===o||o;return n.connectNulls=i,n.showSinglePoint=a,n}return Object(s.c)(e,t),e.prototype.updateElements=function(t,e){var n,r,i,o,a,c;void 0===e&&(e=!1);for(var l=new Map,u=new Map,h=[],d=0,f=0;f<t.length;f++){var p=t[f],g=this.getElementId(p);h.push(g),l.set(g,p),u.set(g,d),d++}this.elements=new Array(d);var v=Un(this.lastElementsMap,h),y=v.added,m=v.updated,b=v.removed;try{for(var x=Object(s.i)(y),O=x.next();!O.done;O=x.next()){g=O.value,p=l.get(g);var j=this.getShapeFactory(),w=this.getShapeInfo(p);f=u.get(g);(M=new Dn({shapeFactory:j,container:this.container,offscreenGroup:this.getOffscreenGroup(),elementIndex:f})).geometry=this,M.animate=this.animateOption,M.draw(w,e),this.elementsMap[g]=M,this.elements[f]=M}}catch(t){n={error:t}}finally{try{O&&!O.done&&(r=x.return)&&r.call(x)}finally{if(n)throw n.error}}try{for(var C=Object(s.i)(m),_=C.next();!_.done;_=C.next()){g=_.value,p=l.get(g);var M=this.lastElementsMap[g],S=(f=u.get(g),w=this.getShapeInfo(p),M.getModel());(this.isCoordinateChanged||Kn(S,w))&&(M.animate=this.animateOption,M.update(w)),this.elementsMap[g]=M,this.elements[f]=M}}catch(t){i={error:t}}finally{try{_&&!_.done&&(o=C.return)&&o.call(C)}finally{if(i)throw i.error}}try{for(var E=Object(s.i)(b),k=E.next();!k.done;k=E.next()){g=k.value;(M=this.lastElementsMap[g]).animate=this.animateOption,M.destroy()}}catch(t){a={error:t}}finally{try{k&&!k.done&&(c=E.return)&&c.call(E)}finally{if(a)throw a.error}}},e.prototype.getPointsAndData=function(t){for(var e=[],n=[],r=0,i=t.length;r<i;r++){var o=t[r];e.push({x:o.x,y:o.y}),n.push(o._origin)}return{points:e,data:n}},e.prototype.getShapeInfo=function(t){var e=this.getDrawCfg(t[0]),n=this.getPointsAndData(t),r=n.points,i=n.data;return e.mappingData=t,e.data=i,e.isStack=!!this.getAdjust("stack"),e.points=r,e.connectNulls=this.connectNulls,e.showSinglePoint=this.showSinglePoint,e},e}(qn);function $r(t,e,n,r,i){var o=[];if(t.length){for(var a=[],s=[],l=0,u=t.length;l<u;l++){var h=t[l];a.push(h[1]),s.push(h[0])}s=s.reverse(),Object(c.j)([a,s],(function(t,c){var l=[],u=r.parsePoints(t),h=u[0];1===a.length&&1===s.length?l=0===c?[["M",h.x-.5,h.y],["L",h.x+.5,h.y]]:[["L",h.x+.5,h.y],["L",h.x-.5,h.y]]:(e&&u.push({x:h.x,y:h.y}),l=n?Wt(u,!1,i):zt(u,!1),c>0&&(l[0][0]="L")),o=o.concat(l)})),o.push(["Z"])}return o}function Hr(t,e,n,r,i){for(var o=mr(t,e,!e,"lineWidth"),a=t.connectNulls,s=t.isInCircle,c=gr(t.points,a,t.showSinglePoint),l=[],u=0,h=c.length;u<h;u++){var d=c[u];l=l.concat($r(d,s,n,r,i))}return o.path=l,o}function Yr(t){var e=t.start,n=t.end;return[[e.x,n.y],[n.x,e.y]]}Yn("area",{defaultShapeType:"area",getDefaultPoints:function(t){var e=t.x,n=t.y0;return(Object(c.C)(t.y)?t.y:[n,t.y]).map((function(t){return{x:e,y:t}}))}});Vn("area","area",{draw:function(t,e){var n=Hr(t,!1,!1,this);return e.addShape({type:"path",attrs:n,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,fill:t.color,fillOpacity:1}}}});var Vr=function(t){function e(e){var n=t.call(this,e)||this;n.type="area",n.shapeType="area",n.generatePoints=!0,n.startOnZero=!0;var r=e.startOnZero,i=void 0===r||r,o=e.sortable,a=void 0!==o&&o,s=e.showSinglePoint,c=void 0!==s&&s;return n.startOnZero=i,n.sortable=a,n.showSinglePoint=c,n}return Object(s.c)(e,t),e.prototype.getPointsAndData=function(t){for(var e=[],n=[],r=0,i=t.length;r<i;r++){var o=t[r];e.push(o.points),n.push(o._origin)}return{points:e,data:n}},e.prototype.getYMinValue=function(){return this.startOnZero?t.prototype.getYMinValue.call(this):this.getYScale().min},e}(Wr);Yn("edge",{defaultShapeType:"line",getDefaultPoints:function(t){return xr(t)}});Vn("edge","line",{draw:function(t,e){var n=mr(t,!0,!1,"lineWidth"),r=zt(this.parsePoints(t.points),this.coordinate.isPolar);return e.addShape("path",{attrs:Object(s.a)(Object(s.a)({},n),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}});var Gr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="edge",e.shapeType="edge",e.generatePoints=!0,e}return Object(s.c)(e,t),e}(qn),Kr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e.paletteCache={},e}return Object(s.c)(e,t),e.prototype.updateElements=function(t,e){void 0===e&&(e=!1);for(var n=0;n<t.length;n++){var r=t[n],i=this.prepareRange(r),o=this.prepareSize(),a=Object(c.s)(this.styleOption,["cfg","shadowBlur"]);Object(c.M)(a)||(a=o/2),this.prepareGreyScaleBlurredCircle(o,a),this.drawWithRange(r,i,o,a)}},e.prototype.color=function(t,e){return this.createAttrOption("color",t,"function"!=typeof e?e:""),this},e.prototype.clear=function(){t.prototype.clear.call(this),this.clearShadowCanvasCtx(),this.paletteCache={}},e.prototype.prepareRange=function(t){var e=this.getAttribute("color").getFields()[0],n=1/0,r=-1/0;return t.forEach((function(t){var i=t._origin[e];i>r&&(r=i),i<n&&(n=i)})),n===r&&(n=r-1),[n,r]},e.prototype.prepareSize=function(){var t=this.getDefaultValue("size");return Object(c.M)(t)||(t=this.getDefaultSize()),t},e.prototype.prepareGreyScaleBlurredCircle=function(t,e){var n=this.getGrayScaleBlurredCanvas(),r=t+e,i=n.getContext("2d");n.width=n.height=2*r,i.clearRect(0,0,n.width,n.height),i.shadowOffsetX=i.shadowOffsetY=2*r,i.shadowBlur=e,i.shadowColor="black",i.beginPath(),i.arc(-r,-r,t,0,2*Math.PI,!0),i.closePath(),i.fill()},e.prototype.drawWithRange=function(t,e,n,r){var i,o,a=this.coordinate,c=a.start,l=a.end,u=this.coordinate.getWidth(),h=this.coordinate.getHeight(),d=this.getAttribute("color").getFields()[0];this.clearShadowCanvasCtx();var f=this.getShadowCanvasCtx();e&&(t=t.filter((function(t){return t._origin[d]<=e[1]&&t._origin[d]>=e[0]})));var p=this.scales[d];try{for(var g=Object(s.i)(t),v=g.next();!v.done;v=g.next()){var y=v.value,m=this.getDrawCfg(y),b=m.x,x=m.y,O=p.scale(y._origin[d]);this.drawGrayScaleBlurredCircle(b-c.x,x-l.y,n+r,O,f)}}catch(t){i={error:t}}finally{try{v&&!v.done&&(o=g.return)&&o.call(g)}finally{if(i)throw i.error}}var j=f.getImageData(0,0,u,h);this.clearShadowCanvasCtx(),this.colorize(j),f.putImageData(j,0,0);var w=this.getImageShape();w.attr("x",c.x),w.attr("y",l.y),w.attr("width",u),w.attr("height",h),w.attr("img",f.canvas),w.set("origin",this.getShapeInfo(t))},e.prototype.getDefaultSize=function(){var t=this.getAttribute("position"),e=this.coordinate;return Math.min(e.getWidth()/(4*t.scales[0].ticks.length),e.getHeight()/(4*t.scales[1].ticks.length))},e.prototype.clearShadowCanvasCtx=function(){var t=this.getShadowCanvasCtx();t.clearRect(0,0,t.canvas.width,t.canvas.height)},e.prototype.getShadowCanvasCtx=function(){var t=this.shadowCanvas;return t||(t=document.createElement("canvas"),this.shadowCanvas=t),t.width=this.coordinate.getWidth(),t.height=this.coordinate.getHeight(),t.getContext("2d")},e.prototype.getGrayScaleBlurredCanvas=function(){return this.grayScaleBlurredCanvas||(this.grayScaleBlurredCanvas=document.createElement("canvas")),this.grayScaleBlurredCanvas},e.prototype.drawGrayScaleBlurredCircle=function(t,e,n,r,i){var o=this.getGrayScaleBlurredCanvas();i.globalAlpha=r,i.drawImage(o,t-n,e-n)},e.prototype.colorize=function(t){for(var e=this.getAttribute("color"),n=t.data,r=this.paletteCache,i=3;i<n.length;i+=4){var o=n[i];if(Object(c.M)(o)){var a=r[o]?r[o]:E.a.rgb2arr(e.gradient(o/256));n[i-3]=a[0],n[i-2]=a[1],n[i-1]=a[2],n[i]=o}}},e.prototype.getImageShape=function(){var t=this.imageShape;return t||(t=this.container.addShape({type:"image",attrs:{}}),this.imageShape=t,t)},e.prototype.getShapeInfo=function(t){var e=this.getDrawCfg(t[0]),n=t.map((function(t){return t._origin}));return Object(s.a)(Object(s.a)({},e),{mappingData:t,data:n})},e}(qn);function Xr(t){var e,n,r,i,o,a,l=t.x,u=t.y,h=t.y0,d=t.size;Object(c.C)(u)?(r=(e=Object(s.e)(u,2))[0],i=e[1]):(r=h,i=u),Object(c.C)(l)?(o=(n=Object(s.e)(l,2))[0],a=n[1]):(o=l-d/2,a=l+d/2);var f=[{x:o,y:r},{x:o,y:i}];return f.push({x:a,y:i},{x:a,y:r}),f}function Ur(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]);return e&&(n.push(["L",r.x,r.y]),n.push(["z"])),n}function qr(t,e){var n=0,r=0,i=0,o=0;return Object(c.C)(t)?1===t.length?n=r=i=o=t[0]:2===t.length?(n=i=t[0],r=o=t[1]):3===t.length?(n=t[0],r=o=t[1],i=t[2]):(n=t[0],r=t[1],i=t[2],o=t[3]):n=r=i=o=t,n+r>e&&(r=e-(n=n?e/(1+r/n):0)),i+o>e&&(o=e-(i=i?e/(1+o/i):0)),[n||0,r||0,i||0,o||0]}function Zr(t,e,n){var r=[];if(n.isRect){var i=n.isTransposed?{x:n.start.x,y:e[0].y}:{x:e[0].x,y:n.start.y},o=n.isTransposed?{x:n.end.x,y:e[2].y}:{x:e[3].x,y:n.end.y},a=Object(c.s)(t,["background","style","radius"]);if(a){var l=n.isTransposed?Math.abs(e[0].y-e[2].y):e[2].x-e[1].x,u=n.isTransposed?n.getWidth():n.getHeight(),h=Object(s.e)(qr(a,Math.min(l,u)),4),d=h[0],f=h[1],p=h[2],g=h[3],v=n.isTransposed&&n.isReflect("y"),y=v?0:1,m=function(t){return v?-t:t};r.push(["M",i.x,o.y+m(d)]),0!==d&&r.push(["A",d,d,0,0,y,i.x+d,o.y]),r.push(["L",o.x-f,o.y]),0!==f&&r.push(["A",f,f,0,0,y,o.x,o.y+m(f)]),r.push(["L",o.x,i.y-m(p)]),0!==p&&r.push(["A",p,p,0,0,y,o.x-p,i.y]),r.push(["L",i.x+g,i.y]),0!==g&&r.push(["A",g,g,0,0,y,i.x,i.y-m(g)])}else r.push(["M",i.x,i.y]),r.push(["L",o.x,i.y]),r.push(["L",o.x,o.y]),r.push(["L",i.x,o.y]),r.push(["L",i.x,i.y]);r.push(["z"])}if(n.isPolar){var b=n.getCenter(),x=it(t,n),O=x.startAngle,j=x.endAngle;if("theta"===n.type||n.isTransposed){var w=function(t){return Math.pow(t,2)};d=Math.sqrt(w(b.x-e[0].x)+w(b.y-e[0].y)),f=Math.sqrt(w(b.x-e[2].x)+w(b.y-e[2].y));r=nt(b.x,b.y,d,n.startAngle,n.endAngle,f)}else r=nt(b.x,b.y,n.getRadius(),O,j)}return r}function Qr(t,e,n){var r=[];return Object(c.K)(e)?n?r.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",(t[2].x+t[3].x)/2,(t[2].y+t[3].y)/2],["Z"]):r.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",t[2].x,t[2].y],["L",t[3].x,t[3].y],["Z"]):r.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",e[1].x,e[1].y],["L",e[0].x,e[0].y],["Z"]),r}function Jr(t,e){return[e,t]}Yn("interval",{defaultShapeType:"rect",getDefaultPoints:function(t){return Xr(t)}});Vn("interval","rect",{draw:function(t,e){var n,r=mr(t,!1,!0),i=e,o=null==t?void 0:t.background;if(o){i=e.addGroup({name:"interval-group"});var a=br(t),c=Zr(t,this.parsePoints(t.points),this.coordinate);i.addShape("path",{attrs:Object(s.a)(Object(s.a)({},a),{path:c}),capture:!1,zIndex:-1,name:"element-background"})}n=r.radius&&this.coordinate.isRect?function(t,e,n){var r,i,o,a,c,l,u,h=Object(s.e)(Object(s.g)([],Object(s.e)(t),!1),4),d=h[0],f=h[1],p=h[2],g=h[3],v=Object(s.e)("number"==typeof n?Array(4).fill(n):n,4),y=v[0],m=v[1],b=v[2],x=v[3];e.isTransposed&&(f=(r=Object(s.e)(Jr(f,g),2))[0],g=r[1]),e.isReflect("y")&&(d=(i=Object(s.e)(Jr(d,f),2))[0],f=i[1],p=(o=Object(s.e)(Jr(p,g),2))[0],g=o[1]),e.isReflect("x")&&(d=(a=Object(s.e)(Jr(d,g),2))[0],g=a[1],f=(c=Object(s.e)(Jr(f,p),2))[0],p=c[1]);var O=[],j=function(t){return Math.abs(t)};return y=(l=Object(s.e)(qr([y,m,b,x],Math.min(j(g.x-d.x),j(f.y-d.y))).map((function(t){return j(t)})),4))[0],m=l[1],b=l[2],x=l[3],e.isTransposed&&(y=(u=Object(s.e)([x,y,m,b],4))[0],m=u[1],b=u[2],x=u[3]),d.y<f.y?(O.push(["M",g.x,g.y+b]),0!==b&&O.push(["A",b,b,0,0,0,g.x-b,g.y]),O.push(["L",d.x+x,d.y]),0!==x&&O.push(["A",x,x,0,0,0,d.x,d.y+x]),O.push(["L",f.x,f.y-y]),0!==y&&O.push(["A",y,y,0,0,0,f.x+y,f.y]),O.push(["L",p.x-m,p.y]),0!==m&&O.push(["A",m,m,0,0,0,p.x,p.y-m]),O.push(["L",g.x,g.y+b]),O.push(["z"])):g.x<d.x?(O.push(["M",p.x+m,p.y]),0!==m&&O.push(["A",m,m,0,0,0,p.x,p.y+m]),O.push(["L",g.x,g.y-b]),0!==b&&O.push(["A",b,b,0,0,0,g.x+b,g.y]),O.push(["L",d.x-x,d.y]),0!==x&&O.push(["A",x,x,0,0,0,d.x,d.y-x]),O.push(["L",f.x,f.y+y]),0!==y&&O.push(["A",y,y,0,0,0,f.x-y,f.y]),O.push(["L",p.x+m,p.y]),O.push(["z"])):(O.push(["M",f.x,f.y+y]),0!==y&&O.push(["A",y,y,0,0,1,f.x+y,f.y]),O.push(["L",p.x-m,p.y]),0!==m&&O.push(["A",m,m,0,0,1,p.x,p.y+m]),O.push(["L",g.x,g.y-b]),0!==b&&O.push(["A",b,b,0,0,1,g.x-b,g.y]),O.push(["L",d.x+x,d.y]),0!==x&&O.push(["A",x,x,0,0,1,d.x,d.y-x]),O.push(["L",f.x,f.y+y]),O.push(["z"])),O}(this.parsePoints(t.points),this.coordinate,r.radius):this.parsePath(function(t,e,n){var r=n.getWidth(),i=n.getHeight(),o="rect"===n.type,a=[],s=(t[2].x-t[1].x)/2,c=n.isTransposed?s*i/r:s*r/i;return"round"===e?(o?(a.push(["M",t[0].x,t[0].y+c]),a.push(["L",t[1].x,t[1].y-c]),a.push(["A",s,s,0,0,1,t[2].x,t[2].y-c]),a.push(["L",t[3].x,t[3].y+c]),a.push(["A",s,s,0,0,1,t[0].x,t[0].y+c])):(a.push(["M",t[0].x,t[0].y]),a.push(["L",t[1].x,t[1].y]),a.push(["A",s,s,0,0,1,t[2].x,t[2].y]),a.push(["L",t[3].x,t[3].y]),a.push(["A",s,s,0,0,1,t[0].x,t[0].y])),a.push(["z"])):a=Ur(t),a}(t.points,r.lineCap,this.coordinate));var l=i.addShape("path",{attrs:Object(s.a)(Object(s.a)({},r),{path:n}),name:"interval"});return o?i:l},getMarker:function(t){var e=t.color;return t.isInPolar?{symbol:"circle",style:{r:4.5,fill:e}}:{symbol:"square",style:{r:4,fill:e}}}});function ti(t){var e=t.theme,n=t.coordinate,r=t.getXScale(),i=r.values,o=t.beforeMappingData,a=i.length,s=ut(t.coordinate),l=t.intervalPadding,u=t.dodgePadding,h=t.maxColumnWidth||e.maxColumnWidth,d=t.minColumnWidth||e.minColumnWidth,f=t.columnWidthRatio||e.columnWidthRatio,p=t.multiplePieWidthRatio||e.multiplePieWidthRatio,g=t.roseWidthRatio||e.roseWidthRatio;if(r.isLinear&&i.length>1){i.sort();var v=function(t,e){var n=t.length,r=t;Object(c.Q)(r[0])&&(r=t.map((function(t){return e.translate(t)})));for(var i=r[1]-r[0],o=2;o<n;o++){var a=r[o]-r[o-1];i>a&&(i=a)}return i}(i,r);a=(r.max-r.min)/v,i.length>a&&(a=i.length)}var y=r.range,m=1/a,b=1;(n.isPolar?b=n.isTransposed&&a>1?p:g:(r.isLinear&&(m*=y[1]-y[0]),b=f),!Object(c.K)(l)&&l>=0)?m=(1-(a-1)*(l/s))/a:m*=b;if(t.getAdjust("dodge")){var x=function(t,e){if(e){var n=Object(c.q)(t);return Object(c.yb)(n,e).length}return t.length}(o,t.getAdjust("dodge").dodgeBy);if(!Object(c.K)(u)&&u>=0)m=(m-u/s*(x-1))/x;else!Object(c.K)(l)&&l>=0?(m*=b,m/=x):m/=x;m=m>=0?m:0}if(!Object(c.K)(h)&&h>=0){var O=h/s;m>O&&(m=O)}if(!Object(c.K)(d)&&d>=0){var j=d/s;m<j&&(m=j)}return m}var ei=function(t){function e(e){var n=t.call(this,e)||this;n.type="interval",n.shapeType="interval",n.generatePoints=!0;var r=e.background;return n.background=r,n}return Object(s.c)(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),i=this.getAttribute("size");i?(n=this.getAttributeValues(i,e)[0],n/=ut(this.coordinate)):(this.defaultSize||(this.defaultSize=ti(this)),n=this.defaultSize);return r.size=n,r},e.prototype.adjustScale=function(){t.prototype.adjustScale.call(this);var e,n,r=this.getYScale();if("theta"===this.coordinate.type)r.change({nice:!1,min:0,max:(e=r,n=e.values.filter((function(t){return!Object(c.K)(t)&&!isNaN(t)})),Math.max.apply(Math,Object(s.g)(Object(s.g)([],Object(s.e)(n),!1),[Object(c.K)(e.max)?-1/0:e.max],!1)))});else{var i=this.scaleDefs,o=r.field,a=r.min,l=r.max;"time"!==r.type&&(a>0&&!Object(c.s)(i,[o,"min"])&&r.change({min:0}),l<=0&&!Object(c.s)(i,[o,"max"])&&r.change({max:0}))}},e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return n.background=this.background,n},e}(qn),ni=function(t){function e(e){var n=t.call(this,e)||this;n.type="line";var r=e.sortable,i=void 0!==r&&r;return n.sortable=i,n}return Object(s.c)(e,t),e}(Wr),ri=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"];function ii(t,e,n,r,i){var o,a,c=mr(e,i,!i,"r"),l=t.parsePoints(e.points),u=l[0];if(e.isStack)u=l[1];else if(l.length>1){var h=n.addGroup();try{for(var d=Object(s.i)(l),f=d.next();!f.done;f=d.next()){var p=f.value;h.addShape({type:"marker",attrs:Object(s.a)(Object(s.a)(Object(s.a)({},c),{symbol:sr[r]||r}),p)})}}catch(t){o={error:t}}finally{try{f&&!f.done&&(a=d.return)&&a.call(d)}finally{if(o)throw o.error}}return h}return n.addShape({type:"marker",attrs:Object(s.a)(Object(s.a)(Object(s.a)({},c),{symbol:sr[r]||r}),u)})}Yn("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(t){return xr(t)}});Object(c.j)(ri,(function(t){Vn("point","hollow-".concat(t),{draw:function(e,n){return ii(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:sr[t]||t,style:{r:4.5,stroke:n,fill:null}}}})}));var oi=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="point",e.shapeType="point",e.generatePoints=!0,e}return Object(s.c)(e,t),e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return Object(s.a)(Object(s.a)({},n),{isStack:!!this.getAdjust("stack")})},e}(qn);Yn("polygon",{defaultShapeType:"polygon",getDefaultPoints:function(t){var e=[];return Object(c.j)(t.x,(function(n,r){var i=t.y[r];e.push({x:n,y:i})})),e}});Vn("polygon","polygon",{draw:function(t,e){if(!Object(c.G)(t.points)){var n=mr(t,!0,!0),r=this.parsePath(function(t){for(var e=t[0],n=1,r=[["M",e.x,e.y]];n<t.length;){var i=t[n];i.x===t[n-1].x&&i.y===t[n-1].y||(r.push(["L",i.x,i.y]),i.x===e.x&&i.y===e.y&&n<t.length-1&&(e=t[n+1],r.push(["Z"]),r.push(["M",e.x,e.y]),n++)),n++}return Object(c.H)(Object(c.U)(r),e)||r.push(["L",e.x,e.y]),r.push(["Z"]),r}(t.points));return e.addShape("path",{attrs:Object(s.a)(Object(s.a)({},n),{path:r}),name:"polygon"})}},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}});var ai=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.shapeType="polygon",e.generatePoints=!0,e}return Object(s.c)(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),i=r.x,o=r.y;if(!Object(c.C)(i)||!Object(c.C)(o)){var a=this.getXScale(),s=this.getYScale(),l=.5/a.values.length,u=.5/s.values.length;a.isCategory&&s.isCategory?(i=[i-l,i-l,i+l,i+l],o=[o-u,o+u,o+u,o-u]):Object(c.C)(i)?(i=[(n=i)[0],n[0],n[1],n[1]],o=[o-u/2,o+u/2,o+u/2,o-u/2]):Object(c.C)(o)&&(o=[(n=o)[0],n[1],n[1],n[0]],i=[i-l/2,i-l/2,i+l/2,i+l/2]),r.x=i,r.y=o}return r},e}(qn),si=(Yn("schema",{defaultShapeType:""}),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="schema",e.shapeType="schema",e.generatePoints=!0,e}return Object(s.c)(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),i=this.getAttribute("size");i?(n=this.getAttributeValues(i,e)[0],n/=ut(this.coordinate)):(this.defaultSize||(this.defaultSize=ti(this)),n=this.defaultSize);return r.size=n,r},e}(qn));Yn("violin",{defaultShapeType:"violin",getDefaultPoints:function(t){var e=t.size/2,n=[],r=function(t){if(!Object(c.C)(t))return[];var e=Object(c.Y)(t);return Object(c.W)(t,(function(t){return t/e}))}(t._size);return Object(c.j)(t.y,(function(i,o){var a=r[o]*e,s=0===o,c=o===t.y.length-1;n.push({isMin:s,isMax:c,x:t.x-a,y:i}),n.unshift({isMin:s,isMax:c,x:t.x+a,y:i})})),n}});Vn("violin","violin",{draw:function(t,e){var n=mr(t,!0,!0),r=this.parsePath(vr(t.points));return e.addShape("path",{attrs:Object(s.a)(Object(s.a)({},n),{path:r}),name:"violin"})},getMarker:function(t){return{symbol:"circle",style:{r:4,fill:t.color}}}});var ci=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="violin",e.shapeType="violin",e.generatePoints=!0,e}return Object(s.c)(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),i=this.getAttribute("size");i?(n=this.getAttributeValues(i,e)[0],n/=ut(this.coordinate)):(this.defaultSize||(this.defaultSize=ti(this)),n=this.defaultSize);return r.size=n,r._size=Object(c.s)(e._origin,[this._sizeField]),r},e.prototype.initAttributes=function(){var e=this.attributeOption,n=e.size?e.size.fields[0]:this._sizeField?this._sizeField:"size";this._sizeField=n,delete e.size,t.prototype.initAttributes.call(this)},e}(qn);function li(t,e){return["C",1*t.x/2+1*e.x/2,t.y,1*t.x/2+1*e.x/2,e.y,e.x,e.y]}function ui(t,e){var n=[];n.push({x:e.x,y:e.y}),n.push(t);var r=["Q"];return Object(c.j)(n,(function(t){r.push(t.x,t.y)})),r}Vn("area","line",{draw:function(t,e){var n=Hr(t,!0,!1,this);return e.addShape({type:"path",attrs:n,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,stroke:t.color,fill:null}}}}),Vn("area","smooth",{draw:function(t,e){var n=Hr(t,!1,!0,this,Yr(this.coordinate));return e.addShape({type:"path",attrs:n,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,fill:t.color,fillOpacity:1}}}}),Vn("area","smooth-line",{draw:function(t,e){var n=Hr(t,!0,!0,this,Yr(this.coordinate));return e.addShape({type:"path",attrs:n,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,stroke:t.color,fill:null}}}}),Vn("edge","arc",{draw:function(t,e){var n,r=mr(t,!0,!1,"lineWidth"),i=t.points,o=i.length>2?"weight":"normal";if(t.isInCircle){var a={x:0,y:1};return"normal"===o?n=function(t,e,n){var r=ui(e,n),i=[["M",t.x,t.y]];return i.push(r),i}(i[0],i[1],a):(r.fill=r.stroke,n=function(t,e){var n=ui(t[1],e),r=ui(t[3],e),i=[["M",t[0].x,t[0].y]];return i.push(r),i.push(["L",t[3].x,t[3].y]),i.push(["L",t[2].x,t[2].y]),i.push(n),i.push(["L",t[1].x,t[1].y]),i.push(["L",t[0].x,t[0].y]),i.push(["Z"]),i}(i,a)),n=this.parsePath(n),e.addShape("path",{attrs:Object(s.a)(Object(s.a)({},r),{path:n})})}if("normal"===o)return n=rt(((i=this.parsePoints(i))[1].x+i[0].x)/2,i[0].y,Math.abs(i[1].x-i[0].x)/2,Math.PI,2*Math.PI),e.addShape("path",{attrs:Object(s.a)(Object(s.a)({},r),{path:n})});var c=li(i[1],i[3]),l=li(i[2],i[0]);return n=[["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],c,["L",i[3].x,i[3].y],["L",i[2].x,i[2].y],l,["Z"]],n=this.parsePath(n),r.fill=r.stroke,e.addShape("path",{attrs:Object(s.a)(Object(s.a)({},r),{path:n})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),Vn("edge","smooth",{draw:function(t,e){var n=mr(t,!0,!1,"lineWidth"),r=t.points,i=this.parsePath(function(t,e){var n=li(t,e),r=[["M",t.x,t.y]];return r.push(n),r}(r[0],r[1]));return e.addShape("path",{attrs:Object(s.a)(Object(s.a)({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}});Vn("edge","vhv",{draw:function(t,e){var n=mr(t,!0,!1,"lineWidth"),r=t.points,i=this.parsePath(function(t,e){var n=[];n.push({x:t.x,y:t.y*(1-1/3)+e.y*(1/3)}),n.push({x:e.x,y:t.y*(1-1/3)+e.y*(1/3)}),n.push(e);var r=[["M",t.x,t.y]];return Object(c.j)(n,(function(t){r.push(["L",t.x,t.y])})),r}(r[0],r[1]));return e.addShape("path",{attrs:Object(s.a)(Object(s.a)({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),Vn("interval","funnel",{getPoints:function(t){return t.size=2*t.size,Xr(t)},draw:function(t,e){var n=mr(t,!1,!0),r=this.parsePath(Qr(t.points,t.nextPoints,!1));return e.addShape("path",{attrs:Object(s.a)(Object(s.a)({},n),{path:r}),name:"interval"})},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}}),Vn("interval","hollow-rect",{draw:function(t,e){var n=mr(t,!0,!1),r=e,i=null==t?void 0:t.background;if(i){r=e.addGroup();var o=br(t),a=Zr(t,this.parsePoints(t.points),this.coordinate);r.addShape("path",{attrs:Object(s.a)(Object(s.a)({},o),{path:a}),capture:!1,zIndex:-1,name:"element-background"})}var c=this.parsePath(Ur(t.points)),l=r.addShape("path",{attrs:Object(s.a)(Object(s.a)({},n),{path:c}),name:"interval"});return i?r:l},getMarker:function(t){var e=t.color;return t.isInPolar?{symbol:"circle",style:{r:4.5,stroke:e,fill:null}}:{symbol:"square",style:{r:4,stroke:e,fill:null}}}}),Vn("interval","line",{getPoints:function(t){return n=(e=t).x,r=e.y,i=e.y0,Object(c.C)(r)?r.map((function(t,e){return{x:Object(c.C)(n)?n[e]:n,y:t}})):[{x:n,y:i},{x:n,y:r}];var e,n,r,i},draw:function(t,e){var n=mr(t,!0,!1,"lineWidth"),r=st(Object(s.a)({},n),["fill"]),i=this.parsePath(Ur(t.points,!1));return e.addShape("path",{attrs:Object(s.a)(Object(s.a)({},r),{path:i}),name:"interval"})},getMarker:function(t){return{symbol:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]},style:{r:5,stroke:t.color}}}}),Vn("interval","pyramid",{getPoints:function(t){return t.size=2*t.size,Xr(t)},draw:function(t,e){var n=mr(t,!1,!0),r=this.parsePath(Qr(t.points,t.nextPoints,!0));return e.addShape("path",{attrs:Object(s.a)(Object(s.a)({},n),{path:r}),name:"interval"})},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}}),Vn("interval","tick",{getPoints:function(t){return function(t){var e,n,r,i=t.x,o=t.y,a=t.y0,l=t.size;Object(c.C)(o)?(n=(e=Object(s.e)(o,2))[0],r=e[1]):(n=a,r=o);var u=i+l/2,h=i-l/2;return[{x:i,y:n},{x:i,y:r},{x:h,y:n},{x:u,y:n},{x:h,y:r},{x:u,y:r}]}(t)},draw:function(t,e){var n,r=mr(t,!0,!1),i=this.parsePath([["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["M",n[4].x,n[4].y],["L",n[5].x,n[5].y]]);return e.addShape("path",{attrs:Object(s.a)(Object(s.a)({},r),{path:i}),name:"interval"})},getMarker:function(t){return{symbol:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},style:{r:5,stroke:t.color}}}});function hi(t,e){var n=gr(t.points,t.connectNulls,t.showSinglePoint),r=[];return Object(c.j)(n,(function(t){var n=function(t,e){var n=[];return Object(c.j)(t,(function(r,i){var o=t[i+1];if(n.push(r),o){var a=function(t,e,n){var r,i=t.x,o=t.y,a=e.x,s=e.y;switch(n){case"hv":r=[{x:a,y:o}];break;case"vh":r=[{x:i,y:s}];break;case"hvh":var c=(a+i)/2;r=[{x:c,y:o},{x:c,y:s}];break;case"vhv":var l=(o+s)/2;r=[{x:i,y:l},{x:a,y:l}]}return r}(r,o,e);n=n.concat(a)}})),n}(t,e);r=r.concat(function(t){return t.map((function(t,e){return 0===e?["M",t.x,t.y]:["L",t.x,t.y]}))}(n))})),Object(s.a)(Object(s.a)({},mr(t,!0,!1,"lineWidth")),{path:r})}function di(t){var e=Object(c.C)(t)?t:[t],n=e[0],r=e[e.length-1],i=e.length>1?e[1]:n;return{min:n,max:r,min1:i,max1:e.length>3?e[3]:r,median:e.length>2?e[2]:i}}function fi(t,e,n){var r,i=n/2;if(Object(c.C)(e)){var o=di(e),a=o.min,s=o.max,l=o.median,u=o.min1,h=t-i,d=t+i;r=[[h,s],[d,s],[t,s],[t,f=o.max1],[h,u],[h,f],[d,f],[d,u],[t,u],[t,a],[h,a],[d,a],[h,l],[d,l]]}else{e=Object(c.K)(e)?.5:e;var f,p=di(t),g=(a=p.min,s=p.max,l=p.median,e-i),v=e+i;r=[[a,g],[a,v],[a,e],[u=p.min1,e],[u,g],[u,v],[f=p.max1,v],[f,g],[f,e],[s,e],[s,g],[s,v],[l,g],[l,v]]}return r.map((function(t){return{x:t[0],y:t[1]}}))}function pi(t){var e=(Object(c.C)(t)?t:[t]).sort((function(t,e){return e-t}));return function(t,e,n){if(Object(c.Q)(t))return t.padEnd(e,n);if(Object(c.C)(t)){var r=t.length;if(r<e)for(var i=e-r,o=0;o<i;o++)t.push(n)}return t}(e,4,e[e.length-1])}function gi(t,e,n){var r=pi(e);return[{x:t,y:r[0]},{x:t,y:r[1]},{x:t-n/2,y:r[2]},{x:t-n/2,y:r[1]},{x:t+n/2,y:r[1]},{x:t+n/2,y:r[2]},{x:t,y:r[2]},{x:t,y:r[3]}]}function vi(t,e){var n=Math.abs(t[0].x-t[2].x),r=Math.abs(t[0].y-t[2].y),i=Math.min(n,r);return e&&(i=Object(c.c)(e,0,Math.min(n,r))),i/=2,{x:(t[0].x+t[2].x)/2-i,y:(t[0].y+t[2].y)/2-i,width:2*i,height:2*i}}Object(c.j)(["hv","vh","hvh","vhv"],(function(t){Vn("line",t,{draw:function(e,n){var r=hi(e,t);return n.addShape({type:"path",attrs:r,name:"line"})},getMarker:function(e){return jr(e,t)}})})),Object(c.j)(["cross","tick","plus","hyphen","line"],(function(t){Vn("point",t,{draw:function(e,n){return ii(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:sr[t],style:{r:4.5,stroke:n,fill:null}}}})})),Vn("point","image",{draw:function(t,e){var n,r,i=mr(t,!1,!1,"r").r,o=this.parsePoints(t.points),a=o[0];if(t.isStack)a=o[1];else if(o.length>1){var c=e.addGroup();try{for(var l=Object(s.i)(o),u=l.next();!u.done;u=l.next()){var h=u.value;c.addShape("image",{attrs:{x:h.x-i/2,y:h.y-i,width:i,height:i,img:t.shape[1]}})}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return c}return e.addShape("image",{attrs:{x:a.x-i/2,y:a.y-i,width:i,height:i,img:t.shape[1]}})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),Object(c.j)(ri,(function(t){Vn("point",t,{draw:function(e,n){return ii(this,e,n,t,!1)},getMarker:function(e){var n=e.color;return{symbol:sr[t]||t,style:{r:4.5,fill:n}}}})})),Vn("schema","box",{getPoints:function(t){return fi(t.x,t.y,t.size)},draw:function(t,e){var n,r=mr(t,!0,!1),i=this.parsePath([["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["M",n[4].x,n[4].y],["L",n[5].x,n[5].y],["L",n[6].x,n[6].y],["L",n[7].x,n[7].y],["L",n[4].x,n[4].y],["Z"],["M",n[8].x,n[8].y],["L",n[9].x,n[9].y],["M",n[10].x,n[10].y],["L",n[11].x,n[11].y],["M",n[12].x,n[12].y],["L",n[13].x,n[13].y]]);return e.addShape("path",{attrs:Object(s.a)(Object(s.a)({},r),{path:i,name:"schema"})})},getMarker:function(t){return{symbol:function(t,e,n){var r=fi(t,[e-6,e-3,e,e+3,e+6],n);return[["M",r[0].x+1,r[0].y],["L",r[1].x-1,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["M",r[4].x,r[4].y],["L",r[5].x,r[5].y],["L",r[6].x,r[6].y],["L",r[7].x,r[7].y],["L",r[4].x,r[4].y],["Z"],["M",r[8].x,r[8].y],["L",r[9].x,r[9].y],["M",r[10].x+1,r[10].y],["L",r[11].x-1,r[11].y],["M",r[12].x,r[12].y],["L",r[13].x,r[13].y]]},style:{r:6,lineWidth:1,stroke:t.color}}}}),Vn("schema","candle",{getPoints:function(t){return gi(t.x,t.y,t.size)},draw:function(t,e){var n,r=mr(t,!0,!0),i=this.parsePath([["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["L",n[4].x,n[4].y],["L",n[5].x,n[5].y],["Z"],["M",n[6].x,n[6].y],["L",n[7].x,n[7].y]]);return e.addShape("path",{attrs:Object(s.a)(Object(s.a)({},r),{path:i,name:"schema"})})},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){var r=gi(t,[e+7.5,e+3,e-3,e-7.5],n);return[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["L",r[4].x,r[4].y],["L",r[5].x,r[5].y],["Z"],["M",r[6].x,r[6].y],["L",r[7].x,r[7].y]]},style:{lineWidth:1,stroke:e,fill:e,r:6}}}}),Vn("polygon","square",{draw:function(t,e){if(!Object(c.G)(t.points)){var n=mr(t,!0,!0),r=this.parsePoints(t.points);return e.addShape("rect",{attrs:Object(s.a)(Object(s.a)({},n),vi(r,t.size)),name:"polygon"})}},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}}),Vn("violin","smooth",{draw:function(t,e){var n=mr(t,!0,!0),r=this.parsePath(yr(t.points));return e.addShape("path",{attrs:Object(s.a)(Object(s.a)({},n),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{stroke:null,r:4,fill:t.color}}}}),Vn("violin","hollow",{draw:function(t,e){var n=mr(t,!0,!1),r=this.parsePath(vr(t.points));return e.addShape("path",{attrs:Object(s.a)(Object(s.a)({},n),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{r:4,fill:null,stroke:t.color}}}}),Vn("violin","hollow-smooth",{draw:function(t,e){var n=mr(t,!0,!1),r=this.parsePath(yr(t.points));return e.addShape("path",{attrs:Object(s.a)(Object(s.a)({},n),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{r:4,fill:null,stroke:t.color}}}});var yi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.getLabelValueDir=function(t){var e=t.points;return e[0].y<=e[2].y?1:-1},e.prototype.getLabelOffsetPoint=function(e,n,r,i){var o,a=t.prototype.getLabelOffsetPoint.call(this,e,n,r),c=this.getCoordinate(),l=c.isTransposed?"x":"y",u=this.getLabelValueDir(e.mappingData);return a=Object(s.a)(Object(s.a)({},a),((o={})[l]=a[l]*u,o)),c.isReflect("x")&&(a=Object(s.a)(Object(s.a)({},a),{x:-1*a.x})),c.isReflect("y")&&(a=Object(s.a)(Object(s.a)({},a),{y:-1*a.y})),a},e.prototype.getThemedLabelCfg=function(t){var e=this.geometry,n=this.getDefaultLabelCfg(),r=e.theme;return Object(c.h)({},n,r.labels,"middle"===t.position?{offset:0}:{},t)},e.prototype.setLabelPosition=function(t,e,n,r){var i,o,a,s,l=this.getCoordinate(),u=l.isTransposed,h=e.points,d=l.convert(h[0]),f=l.convert(h[2]),p=this.getLabelValueDir(e),g=Object(c.C)(e.shape)?e.shape[0]:e.shape;if("funnel"===g||"pyramid"===g){var v=Object(c.s)(e,"nextPoints"),y=Object(c.s)(e,"points");if(v){var m=l.convert(y[0]),b=l.convert(y[1]),x=l.convert(v[0]),O=l.convert(v[1]);u?(i=Math.min(x.y,m.y),a=Math.max(x.y,m.y),o=(b.x+O.x)/2,s=(m.x+x.x)/2):(i=Math.min((b.y+O.y)/2,(m.y+x.y)/2),a=Math.max((b.y+O.y)/2,(m.y+x.y)/2),o=O.x,s=m.x)}else i=Math.min(f.y,d.y),a=Math.max(f.y,d.y),o=f.x,s=d.x}else i=Math.min(f.y,d.y),a=Math.max(f.y,d.y),o=f.x,s=d.x;switch(r){case"right":t.x=o,t.y=(i+a)/2,t.textAlign=Object(c.s)(t,"textAlign",p>0?"left":"right");break;case"left":t.x=s,t.y=(i+a)/2,t.textAlign=Object(c.s)(t,"textAlign",p>0?"left":"right");break;case"bottom":u&&(t.x=(o+s)/2),t.y=a,t.textAlign=Object(c.s)(t,"textAlign","center"),t.textBaseline=Object(c.s)(t,"textBaseline",p>0?"bottom":"top");break;case"middle":u&&(t.x=(o+s)/2),t.y=(i+a)/2,t.textAlign=Object(c.s)(t,"textAlign","center"),t.textBaseline=Object(c.s)(t,"textBaseline","middle");break;case"top":u&&(t.x=(o+s)/2),t.y=i,t.textAlign=Object(c.s)(t,"textAlign","center"),t.textBaseline=Object(c.s)(t,"textBaseline",p>0?"bottom":"top")}},e}(or),mi=Math.PI/2,bi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=0;if(Object(c.M)(t))n=t;else if(Object(c.Q)(t)&&-1!==t.indexOf("%")){var r=e.getRadius();e.innerRadius>0&&(r*=1-e.innerRadius),n=.01*parseFloat(t)*r}return n},e.prototype.getLabelItems=function(e){var n=t.prototype.getLabelItems.call(this,e),r=this.geometry.getYScale();return Object(c.W)(n,(function(t){if(t&&r){var e=r.scale(Object(c.s)(t.data,r.field));return Object(s.a)(Object(s.a)({},t),{percent:e})}return t}))},e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate();if(t.labelEmit)e=t.angle<=Math.PI/2&&t.angle>=-Math.PI/2?"left":"right";else if(n.isTransposed){var r=n.getCenter(),i=t.offset;e=Math.abs(t.x-r.x)<1?"center":t.angle>Math.PI||t.angle<=0?i>0?"left":"right":i>0?"right":"left"}else e="center";return e},e.prototype.getLabelPoint=function(t,e,n){var r,i=1,o=t.content[n];this.isToMiddle(e)?r=this.getMiddlePoint(e.points):(1===t.content.length&&0===n?n=1:0===n&&(i=-1),r=this.getArcPoint(e,n));var a=t.offset*i,s=this.getPointAngle(r),c=t.labelEmit,l=this.getCirclePoint(s,a,r,c);return 0===l.r?l.content="":(l.content=o,l.angle=s,l.color=e.color),l.rotate=t.autoRotate?this.getLabelRotate(s,a,c):t.rotate,l.start={x:r.x,y:r.y},l},e.prototype.getArcPoint=function(t,e){return void 0===e&&(e=0),Object(c.C)(t.x)||Object(c.C)(t.y)?{x:Object(c.C)(t.x)?t.x[e]:t.x,y:Object(c.C)(t.y)?t.y[e]:t.y}:{x:t.x,y:t.y}},e.prototype.getPointAngle=function(t){return dt(this.getCoordinate(),t)},e.prototype.getCirclePoint=function(t,e,n,r){var i=this.getCoordinate(),o=i.getCenter(),a=ht(i,n);if(0===a)return Object(s.a)(Object(s.a)({},o),{r:a});var c=t;i.isTransposed&&a>e&&!r?c=t+2*Math.asin(e/(2*a)):a+=e;return{x:o.x+a*Math.cos(c),y:o.y+a*Math.sin(c),r:a}},e.prototype.getLabelRotate=function(t,e,n){var r=t+mi;return n&&(r-=mi),r&&(r>mi?r-=Math.PI:r<-mi&&(r+=Math.PI)),r},e.prototype.getMiddlePoint=function(t){var e=this.getCoordinate(),n=t.length,r={x:0,y:0};return Object(c.j)(t,(function(t){r.x+=t.x,r.y+=t.y})),r.x/=n,r.y/=n,r=e.convert(r)},e.prototype.isToMiddle=function(t){return t.x.length>2},e}(or),xi=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.defaultLayout="distribute",e}return Object(s.c)(e,t),e.prototype.getDefaultLabelCfg=function(e,n){var r=t.prototype.getDefaultLabelCfg.call(this,e,n);return Object(c.h)({},r,Object(c.s)(this.geometry.theme,"pieLabels",{}))},e.prototype.getLabelOffset=function(e){return t.prototype.getLabelOffset.call(this,e)||0},e.prototype.getLabelRotate=function(t,e,n){var r;return e<0&&((r=t)>Math.PI/2&&(r-=Math.PI),r<-Math.PI/2&&(r+=Math.PI)),r},e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate().getCenter();return e=t.angle<=Math.PI/2&&t.x>=n.x?"left":"right",t.offset<=0&&(e="right"===e?"left":"right"),e},e.prototype.getArcPoint=function(t){return t},e.prototype.getPointAngle=function(t){var e,n=this.getCoordinate(),r={x:Object(c.C)(t.x)?t.x[0]:t.x,y:t.y[0]},i={x:Object(c.C)(t.x)?t.x[1]:t.x,y:t.y[1]},o=dt(n,r);if(t.points&&t.points[0].y===t.points[1].y)e=o;else{var a=dt(n,i);o>=a&&(a+=2*Math.PI),e=o+(a-o)/2}return e},e.prototype.getCirclePoint=function(t,e){var n=this.getCoordinate(),r=n.getCenter(),i=n.getRadius()+e;return Object(s.a)(Object(s.a)({},et(r.x,r.y,i,t)),{angle:t,r:i})},e}(bi);function Oi(t,e,n){var r=t.filter((function(t){return!t.invisible}));r.sort((function(t,e){return t.y-e.y}));var i,o=!0,a=n.minY,s=n.maxY,c=Math.abs(a-s),l=0,u=Number.MIN_VALUE,h=r.map((function(t){return t.y>l&&(l=t.y),t.y<u&&(u=t.y),{content:t.content,size:e,targets:[t.y-a],pos:null}}));for(u-=a,l-a>c&&(c=l-a);o;)for(h.forEach((function(t){var e=(Math.min.apply(u,t.targets)+Math.max.apply(u,t.targets))/2;t.pos=Math.min(Math.max(u,e-t.size/2),c-t.size),t.pos=Math.max(0,t.pos)})),o=!1,i=h.length;i--;)if(i>0){var d=h[i-1],f=h[i];d.pos+d.size>f.pos&&(d.size+=f.size,d.targets=d.targets.concat(f.targets),d.pos+d.size>c&&(d.pos=c-d.size),h.splice(i,1),o=!0)}i=0,h.forEach((function(t){var n=a+e/2;t.targets.forEach((function(){r[i].y=t.pos+n,n+=e,i++}))}))}var ji=function(){function t(t){void 0===t&&(t={}),this.bitmap={};var e=t.xGap,n=void 0===e?1:e,r=t.yGap,i=void 0===r?8:r;this.xGap=n,this.yGap=i}return t.prototype.hasGap=function(t){for(var e=!0,n=this.bitmap,r=Math.round(t.minX),i=Math.round(t.maxX),o=Math.round(t.minY),a=Math.round(t.maxY),s=r;s<=i;s+=1)if(n[s]){if(s===r||s===i){for(var c=o;c<=a;c++)if(n[s][c]){e=!1;break}}else if(n[s][o]||n[s][a]){e=!1;break}}else n[s]={};return e},t.prototype.fillGap=function(t){for(var e=this.bitmap,n=Math.round(t.minX),r=Math.round(t.maxX),i=Math.round(t.minY),o=Math.round(t.maxY),a=n;a<=r;a+=1)e[a]||(e[a]={});for(a=n;a<=r;a+=this.xGap){for(var s=i;s<=o;s+=this.yGap)e[a][s]=!0;e[a][o]=!0}if(1!==this.yGap)for(a=i;a<=o;a+=1)e[n][a]=!0,e[r][a]=!0;if(1!==this.xGap)for(a=n;a<=r;a+=1)e[a][i]=!0,e[a][o]=!0},t.prototype.destroy=function(){this.bitmap={}},t}();function wi(t,e,n,r){var i=t.getCanvasBBox(),o=i.width,a=i.height,s={x:e,y:n,textAlign:"center"};switch(r){case 0:s.y-=a+1,s.x+=1,s.textAlign="left";break;case 1:s.y-=a+1,s.x-=1,s.textAlign="right";break;case 2:s.y+=a+1,s.x-=1,s.textAlign="right";break;case 3:s.y+=a+1,s.x+=1,s.textAlign="left";break;case 5:s.y-=2*a+2;break;case 6:s.y+=2*a+2;break;case 7:s.x+=o+1,s.textAlign="left";break;case 8:s.x-=o+1,s.textAlign="right"}return t.attr(s),t.getCanvasBBox()}function Ci(t){if(t.length>4)return[];var e=function(t,e){return[e.x-t.x,e.y-t.y]};return[e(t[0],t[1]),e(t[1],t[2])]}function _i(t,e,n){void 0===e&&(e=0),void 0===n&&(n={x:0,y:0});var r=t.x,i=t.y;return{x:(r-n.x)*Math.cos(-e)+(i-n.y)*Math.sin(-e)+n.x,y:(n.x-r)*Math.sin(-e)+(i-n.y)*Math.cos(-e)+n.y}}function Mi(t){var e=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],n=t.rotation;return n?[_i(e[0],n,e[0]),_i(e[1],n,e[0]),_i(e[2],n,e[0]),_i(e[3],n,e[0])]:e}function Si(t,e){if(t.length>4)return{min:0,max:0};var n=[];return t.forEach((function(t){var r,i;n.push((r=[t.x,t.y],i=e,(r[0]||0)*(i[0]||0)+(r[1]||0)*(i[1]||0)+(r[2]||0)*(i[2]||0)))})),{min:Math.min.apply(Math,Object(s.g)([],Object(s.e)(n),!1)),max:Math.max.apply(Math,Object(s.g)([],Object(s.e)(n),!1))}}function Ei(t,e){return t.max>e.min&&t.min<e.max}function ki(t){return["x","y","width","height"].every((function(e){return"number"==typeof(n=t[e])&&!Number.isNaN(n)&&n!==1/0&&n!==-1/0;var n}))}function Ii(t,e,n){if(void 0===n&&(n=0),!ki(t)||!ki(e))return!1;if(!t.rotation&&!e.rotation)return function(t,e,n){return void 0===n&&(n=0),!(e.x>t.x+t.width+n||e.x+e.width<t.x-n||e.y>t.y+t.height+n||e.y+e.height<t.y-n)}(t,e,n);for(var r=Mi(t),i=Mi(e),o=Ci(r).concat(Ci(i)),a=0;a<o.length;a++){var s=o[a];if(!Ei(Si(r,s),Si(i,s)))return!1}return!0}var Ai=function(){function t(t){var e=this;this.queue=[],this.worker=new Worker(t),this.worker.onmessage=function(t){var n;null===(n=e.queue.shift())||void 0===n||n.resolve(t)},this.worker.onmessageerror=function(t){var n;console.warn("[AntV G2] Web worker is not available"),null===(n=e.queue.shift())||void 0===n||n.reject(t)}}return t.prototype.post=function(t,e){var n=this;return new Promise((function(r,i){n.queue.push({resolve:r,reject:i});try{n.worker.postMessage(t)}catch(t){console.warn("[AntV G2] Web worker is not available"),Object(c.I)(e)&&e()}}))},t.prototype.destroy=function(){this.worker.terminate()},t}();var Pi="\n self.onmessage = ".concat(function(t){var e=function(){function t(t){if(t.length>4)return[];var e=function(t,e){return[e.x-t.x,e.y-t.y]};return[e(t[0],t[1]),e(t[1],t[2])]}function e(t,e,n){void 0===e&&(e=0),void 0===n&&(n={x:0,y:0});var r=t.x,i=t.y;return{x:(r-n.x)*Math.cos(-e)+(i-n.y)*Math.sin(-e)+n.x,y:(n.x-r)*Math.sin(-e)+(i-n.y)*Math.cos(-e)+n.y}}function n(t){var n=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],r=t.rotation;return r?[e(n[0],r,n[0]),e(n[1],r,n[0]),e(n[2],r,n[0]),e(n[3],r,n[0])]:n}function r(t,e){if(t.length>4)return{min:0,max:0};var n=[];return t.forEach((function(t){var r,i;n.push((r=[t.x,t.y],i=e,(r[0]||0)*(i[0]||0)+(r[1]||0)*(i[1]||0)+(r[2]||0)*(i[2]||0)))})),{min:Math.min.apply(null,n),max:Math.max.apply(null,n)}}function i(t,e){return t.max>e.min&&t.min<e.max}function o(t){return["x","y","width","height"].every((function(e){return"number"==typeof(n=t[e])&&!Number.isNaN(n)&&n!==1/0&&n!==-1/0;var n}))}return{intersect:function(e,a,s){if(void 0===s&&(s=0),!o(e)||!o(a))return!1;if(!e.rotation&&!a.rotation)return function(t,e,n){return void 0===n&&(n=0),!(e.x>t.x+t.width+n||e.x+e.width<t.x-n||e.y>t.y+t.height+n||e.y+e.height<t.y-n)}(e,a,s);for(var c=n(e),l=n(a),u=t(c).concat(t(l)),h=0;h<u.length;h++){var d=u[h];if(!i(r(c,d),r(l,d)))return!1}return!0}}}().intersect;var n={"hide-overlap":function(t){for(var n=t.slice(),r=0;r<n.length;r++){var i=n[r];if(i.visible)for(var o=r+1;o<n.length;o++){var a=n[o];i!==a&&a.visible&&e(i,a)&&(a.visible=!1)}}return n}};try{var r=JSON.parse(t.data);if(!r||!r.type||!n[r.type])return;var i=r.type,o=r.items,a=n[i](o);self.postMessage(a)}catch(t){throw t}}.toString(),"\n"),Ti=function(t){for(var e=t.slice(),n=0;n<e.length;n++){var r=e[n];if(r.visible)for(var i=n+1;i<e.length;i++){var o=e[i];r!==o&&o.visible&&Ii(r,o)&&(o.visible=!1)}}return e},Bi=new Map,Li=function(t){if("undefined"!=typeof window){var e;try{e=new Blob([t.toString()],{type:"application/javascript"})}catch(n){(e=new window.BlobBuilder).append(t.toString()),e=e.getBlob()}return new Ai(URL.createObjectURL(e))}}(Pi);var Di,Fi={"#5B8FF9":!0};function Ri(t,e,n){return!!t.getAdjust("stack")||e.every((function(e,r){var i=n[r];return function(t,e,n){var r=t.coordinate,i=tr(e),o=lt.fromObject(i.getCanvasBBox()),a=lt.fromObject(n.getBBox());return r.isTransposed?a.height>=o.height:a.width>=o.width}(t,e,i)}))}function Ni(t,e,n){return t.some((function(t){return n(t,e)}))}function zi(t,e){return Ni(t,e,(function(t,e){var n,r,i,o=tr(t),a=tr(e);return n=o.getCanvasBBox(),r=a.getCanvasBBox(),void 0===(i=2)&&(i=0),Math.max(0,Math.min(n.x+n.width+i,r.x+r.width+i)-Math.max(n.x-i,r.x-i))*Math.max(0,Math.min(n.y+n.height+i,r.y+r.height+i)-Math.max(n.y-i,r.y-i))>0}))}function Wi(t,e,n){return t.some((function(t){return n(t,e)}))}function $i(t,e){return Wi(t,e,(function(t,e){var n,r,i,o=tr(t),a=tr(e);return n=o.getCanvasBBox(),r=a.getCanvasBBox(),void 0===(i=2)&&(i=0),Math.max(0,Math.min(n.x+n.width+i,r.x+r.width+i)-Math.max(n.x-i,r.x-i))*Math.max(0,Math.min(n.y+n.height+i,r.y+r.height+i)-Math.max(n.y-i,r.y-i))>0}))}var Hi=Object(c.ab)((function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,i=e.fontWeight,o=e.fontStyle,a=e.fontVariant,s=(Di||(Di=document.createElement("canvas").getContext("2d")),Di);return s.font=[o,a,i,"".concat(n,"px"),r].join(" "),s.measureText(Object(c.Q)(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),Object(s.g)([t],Object(s.e)(Object(c.xb)(e)),!1).join("")}));function Yi(t,e,n,r,i){var o,a,c=n.start,l=n.end,u=n.getWidth(),h=n.getHeight();"y"===i?(o=c.x+u/2,a=r.y<c.y?r.y:c.y):"x"===i?(o=r.x>c.x?r.x:c.x,a=c.y+h/2):"xy"===i&&(n.isPolar?(o=n.getCenter().x,a=n.getCenter().y):(o=(c.x+l.x)/2,a=(c.y+l.y)/2));var d=function(t,e,n){var r,i=Object(s.e)(e,2),o=i[0],a=i[1];return t.applyToMatrix([o,a,1]),"x"===n?(t.setMatrix(R.a.transform(t.getMatrix(),[["t",-o,-a],["s",.01,1],["t",o,a]])),r=R.a.transform(t.getMatrix(),[["t",-o,-a],["s",100,1],["t",o,a]])):"y"===n?(t.setMatrix(R.a.transform(t.getMatrix(),[["t",-o,-a],["s",1,.01],["t",o,a]])),r=R.a.transform(t.getMatrix(),[["t",-o,-a],["s",1,100],["t",o,a]])):"xy"===n&&(t.setMatrix(R.a.transform(t.getMatrix(),[["t",-o,-a],["s",.01,.01],["t",o,a]])),r=R.a.transform(t.getMatrix(),[["t",-o,-a],["s",100,100],["t",o,a]])),r}(t,[o,a],i);t.animate({matrix:d},e)}function Vi(t,e){var n,r=Object(Nr.getArcParams)(t,e),i=r.startAngle,o=r.endAngle;return!Object(c.N)(i,.5*-Math.PI)&&i<.5*-Math.PI&&(i+=2*Math.PI),!Object(c.N)(o,.5*-Math.PI)&&o<.5*-Math.PI&&(o+=2*Math.PI),0===e[5]&&(i=(n=Object(s.e)([o,i],2))[0],o=n[1]),Object(c.N)(i,1.5*Math.PI)&&(i=-.5*Math.PI),Object(c.N)(o,-.5*Math.PI)&&!Object(c.N)(i,o)&&(o=1.5*Math.PI),{startAngle:i,endAngle:o}}function Gi(t){var e;return"M"===t[0]||"L"===t[0]?e=[t[1],t[2]]:"a"!==t[0]&&"A"!==t[0]&&"C"!==t[0]||(e=[t[t.length-2],t[t.length-1]]),e}function Ki(t){var e,n,r,i=t.filter((function(t){return"A"===t[0]||"a"===t[0]}));if(0===i.length)return{startAngle:0,endAngle:0,radius:0,innerRadius:0};var o=i[0],a=i.length>1?i[1]:i[0],l=t.indexOf(o),u=t.indexOf(a),h=Gi(t[l-1]),d=Gi(t[u-1]),f=Vi(h,o),p=f.startAngle,g=f.endAngle,v=Vi(d,a),y=v.startAngle,m=v.endAngle;Object(c.N)(p,y)&&Object(c.N)(g,m)?(n=p,r=g):(n=Math.min(p,y),r=Math.max(g,m));var b=o[1],x=i[i.length-1][1];return b<x?(b=(e=Object(s.e)([x,b],2))[0],x=e[1]):b===x&&(x=0),{startAngle:n,endAngle:r,radius:b,innerRadius:x}}function Xi(t,e,n){if(t.isGroup())Object(c.j)(t.getChildren(),(function(t){Xi(t,e,n)}));else{var r=t.getBBox(),i=(r.minX+r.maxX)/2,o=(r.minY+r.maxY)/2;if(t.applyToMatrix([i,o,1]),"zoomIn"===n){var a=R.a.transform(t.getMatrix(),[["t",-i,-o],["s",.01,.01],["t",i,o]]);t.setMatrix(a),t.animate({matrix:R.a.transform(t.getMatrix(),[["t",-i,-o],["s",100,100],["t",i,o]])},e)}else t.animate({matrix:R.a.transform(t.getMatrix(),[["t",-i,-o],["s",.01,.01],["t",i,o]])},Object(s.a)(Object(s.a)({},e),{callback:function(){t.remove(!0),Object(c.I)(e.callback)&&e.callback()}}))}}function Ui(t){return[o.TOP,o.BOTTOM].includes(t)?{offsetX:0,offsetY:t===o.TOP?-8:8,style:{textAlign:"center",textBaseline:t===o.TOP?"bottom":"top"}}:[o.LEFT,o.RIGHT].includes(t)?{offsetX:t===o.LEFT?-8:8,offsetY:0,style:{textAlign:t===o.LEFT?"right":"left",textBaseline:"middle",rotate:Math.PI/2}}:{}}function qi(t,e,n){return{x:t.x+e*Math.cos(n),y:t.y+e*Math.sin(n)}}var Zi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.getDefaultCfg=function(){return Object(c.h)({},t.prototype.getDefaultCfg.call(this),{type:"circle",showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.getRegion=function(t,e){var n=2*Math.PI/t,r=-1*Math.PI/2+n*e,i=.5/(1+1/Math.sin(n/2)),o=qi({x:.5,y:.5},.5-i,r),a=5*Math.PI/4,s=1*Math.PI/4;return{start:qi(o,i,a),end:qi(o,i,s)}},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){var e=this,n=this.cfg,r=n.fields,i=n.type,o=Object(s.e)(r,1)[0];if(!o)throw new Error("No `fields` specified!");var a=this.getFieldValues(t,o),l=a.length,u=[];return a.forEach((function(n,r){var s=[{field:o,value:n,values:a}],h=Object(c.l)(t,e.getFacetDataFilter(s)),d={type:i,data:h,region:e.getRegion(l,r),columnValue:n,columnField:o,columnIndex:r,columnValuesLength:l,rowValue:null,rowField:null,rowIndex:0,rowValuesLength:1};u.push(d)})),u},e.prototype.getXAxisOption=function(t,e,n,r){return n},e.prototype.getYAxisOption=function(t,e,n,r){return n},e.prototype.renderTitle=function(){var t=this;Object(c.j)(this.facets,(function(e){var n=e.columnValue,r=e.view,i=Object(c.s)(t.cfg.title,"formatter"),a=Object(c.h)({position:["50%","0%"],content:i?i(n):n},Ui(o.TOP),t.cfg.title);r.annotation().text(a)}))},e}(Et),Qi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.getDefaultCfg=function(){return Object(c.h)({},t.prototype.getDefaultCfg.call(this),{type:"list",cols:null,showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){var e=this,n=this.cfg.fields,r=this.cfg.cols,i=Object(s.e)(n,1)[0];if(!i)throw new Error("No `fields` specified!");var o=this.getFieldValues(t,i),a=o.length;r=r||a;var l=this.getPageCount(a,r),u=[];return o.forEach((function(n,s){var h=e.getRowCol(s,r),d=h.row,f=h.col,p=[{field:i,value:n,values:o}],g=Object(c.l)(t,e.getFacetDataFilter(p)),v={type:e.cfg.type,data:g,region:e.getRegion(l,r,f,d),columnValue:n,rowValue:n,columnField:i,rowField:null,columnIndex:f,rowIndex:d,columnValuesLength:r,rowValuesLength:l,total:a};u.push(v)})),u},e.prototype.getXAxisOption=function(t,e,n,r){return r.rowIndex!==r.rowValuesLength-1&&r.columnValuesLength*r.rowIndex+r.columnIndex+1+r.columnValuesLength<=r.total?Object(s.a)(Object(s.a)({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return 0!==r.columnIndex?Object(s.a)(Object(s.a)({},n),{title:null,label:null}):n},e.prototype.renderTitle=function(){var t=this;Object(c.j)(this.facets,(function(e){var n=e.columnValue,r=e.view,i=Object(c.s)(t.cfg.title,"formatter"),a=Object(c.h)({position:["50%","0%"],content:i?i(n):n},Ui(o.TOP),t.cfg.title);r.annotation().text(a)}))},e.prototype.getPageCount=function(t,e){return Math.floor((t+e-1)/e)},e.prototype.getRowCol=function(t,e){return{row:Math.floor(t/e),col:t%e}},e}(Et),Ji=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.getDefaultCfg=function(){return Object(c.h)({},t.prototype.getDefaultCfg.call(this),{type:"matrix",showTitle:!1,columnTitle:Object(s.a)({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:Object(s.a)({},t.prototype.getDefaultTitleCfg.call(this))})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){for(var e=this.cfg,n=e.fields,r=e.type,i=n.length,o=i,a=[],s=0;s<o;s++)for(var c=n[s],l=0;l<i;l++){var u=n[l],h={type:r,data:t,region:this.getRegion(i,o,s,l),columnValue:c,rowValue:u,columnField:c,rowField:u,columnIndex:s,rowIndex:l,columnValuesLength:o,rowValuesLength:i};a.push(h)}return a},e.prototype.getXAxisOption=function(t,e,n,r){return r.rowIndex!==r.rowValuesLength-1?Object(s.a)(Object(s.a)({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return 0!==r.columnIndex?Object(s.a)(Object(s.a)({},n),{title:null,label:null}):n},e.prototype.renderTitle=function(){var t=this;Object(c.j)(this.facets,(function(e,n){var r=e.columnIndex,i=e.rowIndex,a=e.columnValuesLength,s=(e.rowValuesLength,e.columnValue),l=e.rowValue,u=e.view;if(0===i){var h=Object(c.s)(t.cfg.columnTitle,"formatter"),d=Object(c.h)({position:["50%","0%"],content:h?h(s):s},Ui(o.TOP),t.cfg.columnTitle);u.annotation().text(d)}if(r===a-1){h=Object(c.s)(t.cfg.rowTitle,"formatter"),d=Object(c.h)({position:["100%","50%"],content:h?h(l):l},Ui(o.RIGHT),t.cfg.rowTitle);u.annotation().text(d)}}))},e}(Et),to=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.getDefaultCfg=function(){return Object(c.h)({},t.prototype.getDefaultCfg.call(this),{type:"mirror",showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this),transpose:!1})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.beforeEachView=function(t,e){this.cfg.transpose?e.columnIndex%2==0?t.coordinate().transpose().reflect("x"):t.coordinate().transpose():e.rowIndex%2!=0&&t.coordinate().reflect("y")},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.generateFacets=function(t){var e,n,r=this,i=Object(s.e)(this.cfg.fields,1)[0],o=[],a=1,l=1,u=[""],h=[""];return this.cfg.transpose?(e=i,u=this.getFieldValues(t,e).slice(0,2),a=u.length):(n=i,h=this.getFieldValues(t,n).slice(0,2),l=h.length),u.forEach((function(i,s){h.forEach((function(d,f){var p=[{field:e,value:i,values:u},{field:n,value:d,values:h}],g=Object(c.l)(t,r.getFacetDataFilter(p)),v={type:r.cfg.type,data:g,region:r.getRegion(l,a,s,f),columnValue:i,rowValue:d,columnField:e,rowField:n,columnIndex:s,rowIndex:f,columnValuesLength:a,rowValuesLength:l};o.push(v)}))})),o},e.prototype.getXAxisOption=function(t,e,n,r){return 1===r.columnIndex||1===r.rowIndex?Object(s.a)(Object(s.a)({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return n},e.prototype.renderTitle=function(){var t=this;Object(c.j)(this.facets,(function(e,n){var r=e.columnValue,i=e.rowValue,a=e.view,s=Object(c.s)(t.cfg.title,"formatter");if(t.cfg.transpose){var l=Object(c.h)({position:["50%","0%"],content:s?s(r):r},Ui(o.TOP),t.cfg.title);a.annotation().text(l)}else{l=Object(c.h)({position:["100%","50%"],content:s?s(i):i},Ui(o.RIGHT),t.cfg.title);a.annotation().text(l)}}))},e}(Et),eo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.getDefaultCfg=function(){return Object(c.h)({},t.prototype.getDefaultCfg.call(this),{type:"rect",columnTitle:Object(s.a)({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:Object(s.a)({},t.prototype.getDefaultTitleCfg.call(this))})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.generateFacets=function(t){var e=this,n=Object(s.e)(this.cfg.fields,2),r=n[0],i=n[1],o=[],a=1,l=1,u=[""],h=[""];return r&&(u=this.getFieldValues(t,r),a=u.length),i&&(h=this.getFieldValues(t,i),l=h.length),u.forEach((function(n,s){h.forEach((function(d,f){var p=[{field:r,value:n,values:u},{field:i,value:d,values:h}],g=Object(c.l)(t,e.getFacetDataFilter(p)),v={type:e.cfg.type,data:g,region:e.getRegion(l,a,s,f),columnValue:n,rowValue:d,columnField:r,rowField:i,columnIndex:s,rowIndex:f,columnValuesLength:a,rowValuesLength:l};o.push(v)}))})),o},e.prototype.renderTitle=function(){var t=this;Object(c.j)(this.facets,(function(e,n){var r=e.columnIndex,i=e.rowIndex,a=e.columnValuesLength,s=e.columnValue,l=e.rowValue,u=e.view;if(0===i){var h=Object(c.s)(t.cfg.columnTitle,"formatter"),d=Object(c.h)({position:["50%","0%"],content:h?h(s):s},Ui(o.TOP),t.cfg.columnTitle);u.annotation().text(d)}if(r===a-1){h=Object(c.s)(t.cfg.rowTitle,"formatter"),d=Object(c.h)({position:["100%","50%"],content:h?h(l):l},Ui(o.RIGHT),t.cfg.rowTitle);u.annotation().text(d)}}))},e.prototype.getXAxisOption=function(t,e,n,r){return r.rowIndex!==r.rowValuesLength-1?Object(s.a)(Object(s.a)({},n),{title:null,label:null}):r.columnIndex!==Math.floor((r.columnValuesLength-1)/2)?Object(s.a)(Object(s.a)({},n),{title:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return 0!==r.columnIndex?Object(s.a)(Object(s.a)({},n),{title:null,label:null}):r.rowIndex!==Math.floor((r.rowValuesLength-1)/2)?Object(s.a)(Object(s.a)({},n),{title:null}):n},e}(Et),no=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.afterChartRender=function(){e.facets&&e.cfg.line&&(e.container.clear(),e.drawLines(e.facets))},e}return Object(s.c)(e,t),e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.init=function(){t.prototype.init.call(this),this.view.on(l.AFTER_RENDER,this.afterChartRender)},e.prototype.getDefaultCfg=function(){return Object(c.h)({},t.prototype.getDefaultCfg.call(this),{type:"tree",line:{style:{lineWidth:1,stroke:"#ddd"},smooth:!1},showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.generateFacets=function(t){if(!this.cfg.fields.length)throw new Error("Please specify for the fields for rootFacet!");var e=[],n={type:this.cfg.type,data:t,region:null,rowValuesLength:this.getRows(),columnValuesLength:1,rowIndex:0,columnIndex:0,rowField:"",columnField:"",rowValue:"",columnValue:""};return e.push(n),n.children=this.getChildFacets(t,1,e),this.setRegion(e),e},e.prototype.setRegion=function(t){var e=this;this.forceColIndex(t),t.forEach((function(t){t.region=e.getRegion(t.rowValuesLength,t.columnValuesLength,t.columnIndex,t.rowIndex)}))},e.prototype.getRegion=function(t,e,n,r){var i=1/e,o=1/t,a={x:i*n,y:o*r};return{start:a,end:{x:a.x+i,y:a.y+2*o/3}}},e.prototype.forceColIndex=function(t){var e,n,r=this,i=[],o=0;t.forEach((function(t){r.isLeaf(t)&&(i.push(t),t.columnIndex=o,o++)})),i.forEach((function(t){t.columnValuesLength=i.length}));for(var a=this.cfg.fields.length-1;a>=0;a--){var c=this.getFacetsByLevel(t,a);try{for(var l=(e=void 0,Object(s.i)(c)),u=l.next();!u.done;u=l.next()){var h=u.value;this.isLeaf(h)||(h.originColIndex=h.columnIndex,h.columnIndex=this.getRegionIndex(h.children),h.columnValuesLength=i.length)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(e)throw e.error}}}},e.prototype.getFacetsByLevel=function(t,e){var n=[];return t.forEach((function(t){t.rowIndex===e&&n.push(t)})),n},e.prototype.getRegionIndex=function(t){var e=t[0];return(t[t.length-1].columnIndex-e.columnIndex)/2+e.columnIndex},e.prototype.isLeaf=function(t){return!t.children||!t.children.length},e.prototype.getRows=function(){return this.cfg.fields.length+1},e.prototype.getChildFacets=function(t,e,n){var r=this,i=this.cfg.fields;if(!(i.length<e)){var o=[],a=i[e-1],s=this.getFieldValues(t,a);return s.forEach((function(i,c){var l=[{field:a,value:i,values:s}],u=t.filter(r.getFacetDataFilter(l));if(u.length){var h={type:r.cfg.type,data:u,region:null,columnValue:i,rowValue:"",columnField:a,rowField:"",columnIndex:c,rowValuesLength:r.getRows(),columnValuesLength:1,rowIndex:e,children:r.getChildFacets(u,e+1,n)};o.push(h),n.push(h)}})),o}},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.renderTitle=function(){var t=this;Object(c.j)(this.facets,(function(e){var n=e.columnValue,r=e.view,i=Object(c.s)(t.cfg.title,"formatter"),a=Object(c.h)({position:["50%","0%"],content:i?i(n):n},Ui(o.TOP),t.cfg.title);r.annotation().text(a)}))},e.prototype.drawLines=function(t){var e=this;t.forEach((function(t){if(!e.isLeaf(t)){var n=t.children;e.addFacetLines(t,n)}}))},e.prototype.addFacetLines=function(t,e){var n=this,r=t.view.coordinateBBox,i={x:r.x+r.width/2,y:r.y+r.height};e.forEach((function(t){var e=t.view.coordinateBBox,r={x:e.bl.x+(e.tr.x-e.bl.x)/2,y:e.tr.y},o={x:i.x,y:i.y+(r.y-i.y)/2},a={x:r.x,y:o.y};n.drawLine([i,o,a,r])}))},e.prototype.getPath=function(t){var e=[];return this.cfg.line.smooth?(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])):t.forEach((function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},e.prototype.drawLine=function(t){var e=this.getPath(t),n=this.cfg.line.style;this.container.addShape("path",{attrs:Object(c.b)({path:e},n)})},e.prototype.getXAxisOption=function(t,e,n,r){return r.rowIndex!==r.rowValuesLength-1?Object(s.a)(Object(s.a)({},n),{title:null,label:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return 0!==r.originColIndex&&0!==r.columnIndex?Object(s.a)(Object(s.a)({},n),{title:null,label:null}):n},e}(Et);function ro(t){var e=Object(s.g)([],Object(s.e)(t),!1);e.sort((function(t,e){return t-e}));var n=e.length;return 0===n?0:n%2==1?e[(n-1)/2]:(e[n/2]+e[n/2-1])/2}function io(t,e){if(!e)return null;var n,r,i;switch(t){case"start":return 0;case"center":return.5;case"end":return 1;case"median":n=e.isCategory?ro(e.values.map((function(t,e){return e}))):ro(e.values);break;case"mean":n=e.isCategory?(e.values.length-1)/2:(r=e.values,i=Object(c.ib)(r,(function(t,e){return t+(isNaN(e)||!Object(c.M)(e)?0:e)}),0),0===r.length?0:i/r.length);break;case"min":n=e.isCategory?0:e[t];break;case"max":n=e.isCategory?e.values.length-1:e[t];break;default:n=t}return e.scale(n)}var oo=["regionFilter","shape"],ao=function(t){function e(e){var n=t.call(this,e)||this;return n.cache=new Map,n.foregroundContainer=n.view.getLayer(i.FORE).addGroup(),n.backgroundContainer=n.view.getLayer(i.BG).addGroup(),n.option=[],n}return Object(s.c)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"annotation"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.layout=function(){this.update()},e.prototype.render=function(){},e.prototype.update=function(){var t=this;this.onAfterRender((function(){var e=new Map;Object(c.j)(t.option,(function(n){if(Object(c.A)(oo,n.type)){var r=t.updateOrCreate(n);r&&e.set(t.getCacheKey(n),r)}})),t.cache=t.syncCache(e)}));var e=new Map;Object(c.j)(this.option,(function(n){if(!Object(c.A)(oo,n.type)){var r=t.updateOrCreate(n);r&&e.set(t.getCacheKey(n),r)}})),this.cache=this.syncCache(e)},e.prototype.clear=function(e){void 0===e&&(e=!1),t.prototype.clear.call(this),this.clearComponents(),this.foregroundContainer.clear(),this.backgroundContainer.clear(),e&&(this.option=[])},e.prototype.destroy=function(){this.clear(!0),this.foregroundContainer.remove(!0),this.backgroundContainer.remove(!0)},e.prototype.getComponents=function(){var t=[];return this.cache.forEach((function(e){t.push(e)})),t},e.prototype.clearComponents=function(){this.getComponents().forEach((function(t){t.component.destroy()})),this.cache.clear()},e.prototype.onAfterRender=function(t){var e=!1;this.view.getOptions().animate&&this.view.geometries.forEach((function(n){n.animateOption&&(n.once(u.AFTER_DRAW_ANIMATE,(function(){t()})),e=!0)})),e||this.view.getRootView().once(l.AFTER_RENDER,(function(){t()}))},e.prototype.createAnnotation=function(t){var e=t.type,n=V.Annotation[Object(c.wb)(e)];if(n){var r=this.getAnnotationTheme(e),s=this.getAnnotationCfg(e,t,r);return s?{component:new n(s),layer:this.isTop(s)?i.FORE:i.BG,direction:o.NONE,type:a.ANNOTATION,extra:t}:null}},e.prototype.annotation=function(t){this.option.push(t)},e.prototype.arc=function(t){return this.annotation(Object(s.a)({type:"arc"},t)),this},e.prototype.image=function(t){return this.annotation(Object(s.a)({type:"image"},t)),this},e.prototype.line=function(t){return this.annotation(Object(s.a)({type:"line"},t)),this},e.prototype.region=function(t){return this.annotation(Object(s.a)({type:"region"},t)),this},e.prototype.text=function(t){return this.annotation(Object(s.a)({type:"text"},t)),this},e.prototype.dataMarker=function(t){return this.annotation(Object(s.a)({type:"dataMarker"},t)),this},e.prototype.dataRegion=function(t){this.annotation(Object(s.a)({type:"dataRegion"},t))},e.prototype.regionFilter=function(t){this.annotation(Object(s.a)({type:"regionFilter"},t))},e.prototype.shape=function(t){this.annotation(Object(s.a)({type:"shape"},t))},e.prototype.html=function(t){this.annotation(Object(s.a)({type:"html"},t))},e.prototype.parsePosition=function(t){var e,n,r=this.view.getXScale(),i=this.view.getScalesByDim("y"),o=Object(c.I)(t)?t.call(null,r,i):t,a=0,l=0;if(Object(c.C)(o)){var u=Object(s.e)(o,2),h=u[0],d=u[1];if(Object(c.Q)(h)&&-1!==h.indexOf("%")&&!isNaN(h.slice(0,-1)))return this.parsePercentPosition(o);a=io(h,r),l=io(d,Object.values(i)[0])}else if(!Object(c.K)(o))try{for(var f=Object(s.i)(Object(c.T)(o)),p=f.next();!p.done;p=f.next()){var g=p.value,v=o[g];g===r.field&&(a=io(v,r)),i[g]&&(l=io(v,i[g]))}}catch(t){e={error:t}}finally{try{p&&!p.done&&(n=f.return)&&n.call(f)}finally{if(e)throw e.error}}return isNaN(a)||isNaN(l)?null:this.view.getCoordinate().convert({x:a,y:l})},e.prototype.getRegionPoints=function(t,e){var n,r=this,i=this.view.getXScale(),o=this.view.getScalesByDim("y"),a=Object.values(o)[0],s=i.field,l=this.view.getData(),u=Object(c.C)(t)?t[0]:t[s],h=Object(c.C)(e)?e[0]:e[s],d=[];return Object(c.j)(l,(function(t,e){if(t[s]===u&&(n=e),e>=n){var i=r.parsePosition([t[s],t[a.field]]);i&&d.push(i)}if(t[s]===h)return!1})),d},e.prototype.parsePercentPosition=function(t){var e=parseFloat(t[0])/100,n=parseFloat(t[1])/100,r=this.view.getCoordinate(),i=r.start,o=r.end,a=Math.min(i.x,o.x),s=Math.min(i.y,o.y);return{x:r.getWidth()*e+a,y:r.getHeight()*n+s}},e.prototype.getCoordinateBBox=function(){var t=this.view.getCoordinate(),e=t.start,n=t.end,r=t.getWidth(),i=t.getHeight(),o={x:Math.min(e.x,n.x),y:Math.min(e.y,n.y)};return{x:o.x,y:o.y,minX:o.x,minY:o.y,maxX:o.x+r,maxY:o.y+i,width:r,height:i}},e.prototype.getAnnotationCfg=function(t,e,n){var r=this,i=this.view.getCoordinate(),o=this.view.getCanvas(),a={};if(Object(c.K)(e))return null;var l=e.start,u=e.end,h=e.position,d=this.parsePosition(l),f=this.parsePosition(u),p=this.parsePosition(h);if(!(!["arc","image","line","region","regionFilter"].includes(t)||d&&f))return null;if(["text","dataMarker","html"].includes(t)&&!p)return null;if("arc"===t){var g=e,v=(g.start,g.end,Object(s.f)(g,["start","end"])),y=dt(i,d),m=dt(i,f);y>m&&(m=2*Math.PI+m),a=Object(s.a)(Object(s.a)({},v),{center:i.getCenter(),radius:ht(i,d),startAngle:y,endAngle:m})}else if("image"===t){var b=e;b.start,b.end,v=Object(s.f)(b,["start","end"]);a=Object(s.a)(Object(s.a)({},v),{start:d,end:f,src:e.src})}else if("line"===t){var x=e;x.start,x.end,v=Object(s.f)(x,["start","end"]);a=Object(s.a)(Object(s.a)({},v),{start:d,end:f,text:Object(c.s)(e,"text",null)})}else if("region"===t){var O=e;O.start,O.end,v=Object(s.f)(O,["start","end"]);a=Object(s.a)(Object(s.a)({},v),{start:d,end:f})}else if("text"===t){var j=this.view.getData(),w=e,C=(w.position,w.content),_=(v=Object(s.f)(w,["position","content"]),C);Object(c.I)(C)&&(_=C(j)),a=Object(s.a)(Object(s.a)(Object(s.a)({},p),v),{content:_})}else if("dataMarker"===t){var M=e,S=(M.position,M.point),E=M.line,k=M.text,I=M.autoAdjust,A=M.direction;v=Object(s.f)(M,["position","point","line","text","autoAdjust","direction"]);a=Object(s.a)(Object(s.a)(Object(s.a)({},v),p),{coordinateBBox:this.getCoordinateBBox(),point:S,line:E,text:k,autoAdjust:I,direction:A})}else if("dataRegion"===t){var P=e,T=P.start,B=P.end,L=P.region,D=(k=P.text,P.lineLength);v=Object(s.f)(P,["start","end","region","text","lineLength"]);a=Object(s.a)(Object(s.a)({},v),{points:this.getRegionPoints(T,B),region:L,text:k,lineLength:D})}else if("regionFilter"===t){var F=e,R=(F.start,F.end,F.apply),N=F.color,z=(v=Object(s.f)(F,["start","end","apply","color"]),this.view.geometries),W=[],$=function(t){t&&(t.isGroup()?t.getChildren().forEach((function(t){return $(t)})):W.push(t))};Object(c.j)(z,(function(t){R?Object(c.f)(R,t.type)&&Object(c.j)(t.elements,(function(t){$(t.shape)})):Object(c.j)(t.elements,(function(t){$(t.shape)}))})),a=Object(s.a)(Object(s.a)({},v),{color:N,shapes:W,start:d,end:f})}else if("shape"===t){var H=e,Y=H.render,V=Object(s.f)(H,["render"]);a=Object(s.a)(Object(s.a)({},V),{render:function(t){if(Object(c.I)(e.render))return Y(t,r.view,{parsePosition:r.parsePosition.bind(r)})}})}else if("html"===t){var G=e,K=G.html;G.position,V=Object(s.f)(G,["html","position"]);a=Object(s.a)(Object(s.a)(Object(s.a)({},V),p),{parent:o.get("el").parentNode,html:function(t){return Object(c.I)(K)?K(t,r.view):K}})}var X=Object(c.h)({},n,Object(s.a)(Object(s.a)({},a),{top:e.top,style:e.style,offsetX:e.offsetX,offsetY:e.offsetY}));return"html"!==t&&(X.container=this.getComponentContainer(X)),X.animate=this.view.getOptions().animate&&X.animate&&Object(c.s)(e,"animate",X.animate),X.animateOption=Object(c.h)({},An,X.animateOption,e.animateOption),X},e.prototype.isTop=function(t){return Object(c.s)(t,"top",!0)},e.prototype.getComponentContainer=function(t){return this.isTop(t)?this.foregroundContainer:this.backgroundContainer},e.prototype.getAnnotationTheme=function(t){return Object(c.s)(this.view.getTheme(),["components","annotation",t],{})},e.prototype.updateOrCreate=function(t){var e=this.cache.get(this.getCacheKey(t));if(e){var n=t.type,r=this.getAnnotationTheme(n),i=this.getAnnotationCfg(n,t,r);i&&st(i,["container"]),e.component.update(Object(s.a)(Object(s.a)({},i||{}),{visible:!!i})),Object(c.A)(oo,t.type)&&e.component.render()}else(e=this.createAnnotation(t))&&(e.component.init(),Object(c.A)(oo,t.type)&&e.component.render());return e},e.prototype.syncCache=function(t){var e=this,n=new Map(this.cache);return t.forEach((function(t,e){n.set(e,t)})),n.forEach((function(t,r){Object(c.m)(e.option,(function(t){return r===e.getCacheKey(t)}))||(t.component.destroy(),n.delete(r))})),n},e.prototype.getCacheKey=function(t){return t},e}(Mn);function so(t,e){var n=Object(c.h)({},Object(c.s)(t,["components","axis","common"]),Object(c.s)(t,["components","axis",e]));return Object(c.s)(n,["grid"],{})}function co(t,e,n,r){var i=[],o=e.getTicks();return t.isPolar&&o.push({value:1,text:"",tickValue:""}),o.reduce((function(e,o,a){var s=o.value;if(r)i.push({points:[t.convert("y"===n?{x:0,y:s}:{x:s,y:0}),t.convert("y"===n?{x:1,y:s}:{x:s,y:1})]});else if(a){var c=(e.value+s)/2;i.push({points:[t.convert("y"===n?{x:0,y:c}:{x:c,y:0}),t.convert("y"===n?{x:1,y:c}:{x:c,y:1})]})}return o}),o[0]),i}function lo(t,e,n,r,i){var o=e.values.length,a=[],s=n.getTicks();return s.reduce((function(e,n){var s=e?e.value:n.value,l=n.value,u=(s+l)/2;return"x"===i?a.push({points:[t.convert({x:r?l:u,y:0}),t.convert({x:r?l:u,y:1})]}):a.push({points:Object(c.W)(Array(o+1),(function(e,n){return t.convert({x:n/o,y:r?l:u})}))}),n}),s[0]),a}function uo(t,e){var n=Object(c.s)(e,"grid");if(null===n)return!1;var r=Object(c.s)(t,"grid");return!(void 0===n&&null===r)}var ho=["container"],fo=Object(s.a)(Object(s.a)({},An),{appear:null}),po=function(t){function e(e){var n=t.call(this,e)||this;return n.cache=new Map,n.gridContainer=n.view.getLayer(i.BG).addGroup(),n.gridForeContainer=n.view.getLayer(i.FORE).addGroup(),n.axisContainer=n.view.getLayer(i.BG).addGroup(),n.axisForeContainer=n.view.getLayer(i.FORE).addGroup(),n}return Object(s.c)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"axis"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){this.update()},e.prototype.layout=function(){var t=this,e=this.view.getCoordinate();Object(c.j)(this.getComponents(),(function(n){var r,i=n.component,o=n.direction,s=n.type,c=n.extra,l=c.dim,u=c.scale,h=c.alignTick;if(s===a.AXIS)e.isPolar?"x"===l?r=e.isTransposed?bt(e,o):Ct(e):"y"===l&&(r=e.isTransposed?Ct(e):bt(e,o)):r=bt(e,o);else if(s===a.GRID)if(e.isPolar){r={items:e.isTransposed?"x"===l?lo(e,t.view.getYScales()[0],u,h,l):co(e,u,l,h):"x"===l?co(e,u,l,h):lo(e,t.view.getXScale(),u,h,l),center:t.view.getCoordinate().getCenter()}}else r={items:co(e,u,l,h)};i.update(r)}))},e.prototype.update=function(){this.option=this.view.getOptions().axes;var t=new Map;this.updateXAxes(t),this.updateYAxes(t);var e=new Map;this.cache.forEach((function(n,r){t.has(r)?e.set(r,n):n.component.destroy()})),this.cache=e},e.prototype.clear=function(){t.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.gridForeContainer.clear(),this.axisContainer.clear(),this.axisForeContainer.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.gridContainer.remove(!0),this.gridForeContainer.remove(!0),this.axisContainer.remove(!0),this.axisForeContainer.remove(!0)},e.prototype.getComponents=function(){var t=[];return this.cache.forEach((function(e){t.push(e)})),t},e.prototype.updateXAxes=function(t){var e=this.view.getXScale();if(e&&!e.isIdentity){var n=_t(this.option,e.field);if(!1!==n){var r=Mt(n,o.BOTTOM),a=i.BG,s=this.view.getCoordinate(),l=this.getId("axis",e.field),u=this.getId("grid",e.field);if(s.isRect){if(h=this.cache.get(l))st(f=this.getLineAxisCfg(e,n,r),ho),h.component.update(f),t.set(l,h);else h=this.createLineAxis(e,n,a,r,"x"),this.cache.set(l,h),t.set(l,h);if(d=this.cache.get(u))st(f=this.getLineGridCfg(e,n,r,"x"),ho),d.component.update(f),t.set(u,d);else(d=this.createLineGrid(e,n,a,r,"x"))&&(this.cache.set(u,d),t.set(u,d))}else if(s.isPolar){var h,d;if(h=this.cache.get(l)){st(f=s.isTransposed?this.getLineAxisCfg(e,n,o.RADIUS):this.getCircleAxisCfg(e,n,r),ho),h.component.update(f),t.set(l,h)}else{if(s.isTransposed){if(Object(c.S)(n))return;h=this.createLineAxis(e,n,a,o.RADIUS,"x")}else h=this.createCircleAxis(e,n,a,r,"x");this.cache.set(l,h),t.set(l,h)}if(d=this.cache.get(u)){var f;st(f=s.isTransposed?this.getCircleGridCfg(e,n,o.RADIUS,"x"):this.getLineGridCfg(e,n,o.CIRCLE,"x"),ho),d.component.update(f),t.set(u,d)}else{if(s.isTransposed){if(Object(c.S)(n))return;d=this.createCircleGrid(e,n,a,o.RADIUS,"x")}else d=this.createLineGrid(e,n,a,o.CIRCLE,"x");d&&(this.cache.set(u,d),t.set(u,d))}}}}},e.prototype.updateYAxes=function(t){var e=this,n=this.view.getYScales();Object(c.j)(n,(function(n,r){if(n&&!n.isIdentity){var a=n.field,s=_t(e.option,a);if(!1!==s){var l=i.BG,u=e.getId("axis",a),h=e.getId("grid",a),d=e.view.getCoordinate();if(d.isRect){var f=Mt(s,0===r?o.LEFT:o.RIGHT);if(p=e.cache.get(u))st(v=e.getLineAxisCfg(n,s,f),ho),p.component.update(v),t.set(u,p);else p=e.createLineAxis(n,s,l,f,"y"),e.cache.set(u,p),t.set(u,p);if(g=e.cache.get(h))st(v=e.getLineGridCfg(n,s,f,"y"),ho),g.component.update(v),t.set(h,g);else(g=e.createLineGrid(n,s,l,f,"y"))&&(e.cache.set(h,g),t.set(h,g))}else if(d.isPolar){var p,g;if(p=e.cache.get(u)){st(v=d.isTransposed?e.getCircleAxisCfg(n,s,o.CIRCLE):e.getLineAxisCfg(n,s,o.RADIUS),ho),p.component.update(v),t.set(u,p)}else{if(d.isTransposed){if(Object(c.S)(s))return;p=e.createCircleAxis(n,s,l,o.CIRCLE,"y")}else p=e.createLineAxis(n,s,l,o.RADIUS,"y");e.cache.set(u,p),t.set(u,p)}if(g=e.cache.get(h)){var v;st(v=d.isTransposed?e.getLineGridCfg(n,s,o.CIRCLE,"y"):e.getCircleGridCfg(n,s,o.RADIUS,"y"),ho),g.component.update(v),t.set(h,g)}else{if(d.isTransposed){if(Object(c.S)(s))return;g=e.createLineGrid(n,s,l,o.CIRCLE,"y")}else g=e.createCircleGrid(n,s,l,o.RADIUS,"y");g&&(e.cache.set(h,g),t.set(h,g))}}}}}))},e.prototype.createLineAxis=function(t,e,n,r,i){var s={component:new G(this.getLineAxisCfg(t,e,r)),layer:n,direction:r===o.RADIUS?o.NONE:r,type:a.AXIS,extra:{dim:i,scale:t}};return s.component.set("field",t.field),s.component.init(),s},e.prototype.createLineGrid=function(t,e,n,r,i){var s=this.getLineGridCfg(t,e,r,i);if(s){var l={component:new X(s),layer:n,direction:o.NONE,type:a.GRID,extra:{dim:i,scale:t,alignTick:Object(c.s)(s,"alignTick",!0)}};return l.component.init(),l}},e.prototype.createCircleAxis=function(t,e,n,r,i){var o={component:new K(this.getCircleAxisCfg(t,e,r)),layer:n,direction:r,type:a.AXIS,extra:{dim:i,scale:t}};return o.component.set("field",t.field),o.component.init(),o},e.prototype.createCircleGrid=function(t,e,n,r,i){var s=this.getCircleGridCfg(t,e,r,i);if(s){var l={component:new U(s),layer:n,direction:o.NONE,type:a.GRID,extra:{dim:i,scale:t,alignTick:Object(c.s)(s,"alignTick",!0)}};return l.component.init(),l}},e.prototype.getLineAxisCfg=function(t,e,n){var r=Object(c.s)(e,["top"])?this.axisForeContainer:this.axisContainer,i=this.view.getCoordinate(),o=bt(i,n),a=St(t,e),l=jt(this.view.getTheme(),n),u=Object(c.s)(e,["title"])?Object(c.h)({title:{style:{text:a}}},{title:wt(this.view.getTheme(),n,e.title)},e):e,h=Object(c.h)(Object(s.a)(Object(s.a)({container:r},o),{ticks:t.getTicks().map((function(t){return{id:"".concat(t.tickValue),name:t.text,value:t.value}})),verticalFactor:i.isPolar?-1*Ot(o,i.getCenter()):Ot(o,i.getCenter()),theme:l}),l,u),d=this.getAnimateCfg(h),f=d.animate,p=d.animateOption;h.animateOption=p,h.animate=f;var g=xt(o),v=Object(c.s)(h,"verticalLimitLength",g?1/3:.5);if(v<=1){var y=this.view.getCanvas().get("width"),m=this.view.getCanvas().get("height");h.verticalLimitLength=v*(g?y:m)}return h},e.prototype.getLineGridCfg=function(t,e,n,r){if(uo(jt(this.view.getTheme(),n),e)){var i=so(this.view.getTheme(),n),o=Object(c.h)({container:Object(c.s)(e,["top"])?this.gridForeContainer:this.gridContainer},i,Object(c.s)(e,"grid"),this.getAnimateCfg(e));return o.items=co(this.view.getCoordinate(),t,r,Object(c.s)(o,"alignTick",!0)),o}},e.prototype.getCircleAxisCfg=function(t,e,n){var r=Object(c.s)(e,["top"])?this.axisForeContainer:this.axisContainer,i=this.view.getCoordinate(),a=t.getTicks().map((function(t){return{id:"".concat(t.tickValue),name:t.text,value:t.value}}));t.isCategory||Math.abs(i.endAngle-i.startAngle)!==2*Math.PI||a.length&&(a[a.length-1].name="");var l=St(t,e),u=jt(this.view.getTheme(),o.CIRCLE),h=Object(c.s)(e,["title"])?Object(c.h)({title:{style:{text:l}}},{title:wt(this.view.getTheme(),n,e.title)},e):e,d=Object(c.h)(Object(s.a)(Object(s.a)({container:r},Ct(this.view.getCoordinate())),{ticks:a,verticalFactor:1,theme:u}),u,h),f=this.getAnimateCfg(d),p=f.animate,g=f.animateOption;return d.animate=p,d.animateOption=g,d},e.prototype.getCircleGridCfg=function(t,e,n,r){if(uo(jt(this.view.getTheme(),n),e)){var i=so(this.view.getTheme(),o.RADIUS),a=Object(c.h)({container:Object(c.s)(e,["top"])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},i,Object(c.s)(e,"grid"),this.getAnimateCfg(e)),s=Object(c.s)(a,"alignTick",!0),l="x"===r?this.view.getYScales()[0]:this.view.getXScale();return a.items=lo(this.view.getCoordinate(),l,t,s,r),a}},e.prototype.getId=function(t,e){var n=this.view.getCoordinate();return"".concat(t,"-").concat(e,"-").concat(n.type)},e.prototype.getAnimateCfg=function(t){return{animate:this.view.getOptions().animate&&Object(c.s)(t,"animate"),animateOption:t&&t.animateOption?Object(c.h)({},fo,t.animateOption):fo}},e}(Mn);function go(t,e,n){return n===o.TOP?[t.minX+t.width/2-e.width/2,t.minY]:n===o.BOTTOM?[t.minX+t.width/2-e.width/2,t.maxY-e.height]:n===o.LEFT?[t.minX,t.minY+t.height/2-e.height/2]:n===o.RIGHT?[t.maxX-e.width,t.minY+t.height/2-e.height/2]:n===o.TOP_LEFT||n===o.LEFT_TOP?[t.tl.x,t.tl.y]:n===o.TOP_RIGHT||n===o.RIGHT_TOP?[t.tr.x-e.width,t.tr.y]:n===o.BOTTOM_LEFT||n===o.LEFT_BOTTOM?[t.bl.x,t.bl.y-e.height]:n===o.BOTTOM_RIGHT||n===o.RIGHT_BOTTOM?[t.br.x-e.width,t.br.y-e.height]:[0,0]}function vo(t,e){return Object(c.D)(t)?!1!==t&&{}:Object(c.s)(t,[e],t)}function yo(t){return Object(c.s)(t,"position",o.BOTTOM)}var mo=function(t){function e(e){var n=t.call(this,e)||this;return n.container=n.view.getLayer(i.FORE).addGroup(),n}return Object(s.c)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"legend"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){this.update()},e.prototype.layout=function(){var t=this;this.layoutBBox=this.view.viewBBox,Object(c.j)(this.components,(function(e){var n=e.component,r=e.direction,i=ur(r),o=n.get("maxWidthRatio"),a=n.get("maxHeightRatio"),c=t.getCategoryLegendSizeCfg(i,o,a),l=n.get("maxWidth"),u=n.get("maxHeight");n.update({maxWidth:Math.min(c.maxWidth,l||0),maxHeight:Math.min(c.maxHeight,u||0)});var h=n.get("padding"),d=n.getLayoutBBox(),f=new lt(d.x,d.y,d.width,d.height).expand(h),p=Object(s.e)(go(t.view.viewBBox,f,r),2),g=p[0],v=p[1],y=Object(s.e)(go(t.layoutBBox,f,r),2),m=y[0],b=y[1],x=0,O=0;r.startsWith("top")||r.startsWith("bottom")?(x=g,O=b):(x=m,O=v),n.setLocation({x:x+h[3],y:O+h[0]}),t.layoutBBox=t.layoutBBox.cut(f,r)}))},e.prototype.update=function(){var t=this;this.option=this.view.getOptions().legends;var e={};if(Object(c.s)(this.option,"custom")){var n="global-custom",r=this.getComponentById(n);if(r){var o=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);st(o,["container"]),r.component.update(o),e[n]=!0}else{var s=this.createCustomLegend(void 0,void 0,void 0,this.option);if(s){s.init();var l=i.FORE,u=yo(this.option);this.components.push({id:n,component:s,layer:l,direction:u,type:a.LEGEND,extra:void 0}),e[n]=!0}}}else this.loopLegends((function(n,r,i){var o=t.getId(i.field),a=t.getComponentById(o);if(a){var s=void 0,l=vo(t.option,i.field);!1!==l&&(Object(c.s)(l,"custom")?s=t.getCategoryCfg(n,r,i,l,!0):i.isLinear?s=t.getContinuousCfg(n,r,i,l):i.isCategory&&(s=t.getCategoryCfg(n,r,i,l))),s&&(st(s,["container"]),a.direction=yo(l),a.component.update(s),e[o]=!0)}else{var u=t.createFieldLegend(n,r,i);u&&(u.component.init(),t.components.push(u),e[o]=!0)}}));var h=[];Object(c.j)(this.getComponents(),(function(t){e[t.id]?h.push(t):t.component.destroy()})),this.components=h},e.prototype.clear=function(){t.prototype.clear.call(this),this.container.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.container.remove(!0)},e.prototype.getGeometries=function(t){var e=this,n=t.geometries;return Object(c.j)(t.views,(function(t){n=n.concat(e.getGeometries(t))})),n},e.prototype.loopLegends=function(t){if(this.view.getRootView()===this.view){var e=this.getGeometries(this.view),n={};Object(c.j)(e,(function(e){var r=e.getGroupAttributes();Object(c.j)(r,(function(r){var i=r.getScale(r.type);i&&"identity"!==i.type&&!n[i.field]&&(t(e,r,i),n[i.field]=!0)}))}))}},e.prototype.createFieldLegend=function(t,e,n){var r,o=vo(this.option,n.field),s=i.FORE,l=yo(o);if(!1!==o&&(Object(c.s)(o,"custom")?r=this.createCustomLegend(t,e,n,o):n.isLinear?r=this.createContinuousLegend(t,e,n,o):n.isCategory&&(r=this.createCategoryLegend(t,e,n,o))),r)return r.set("field",n.field),{id:this.getId(n.field),component:r,layer:s,direction:l,type:a.LEGEND,extra:{scale:n}}},e.prototype.createCustomLegend=function(t,e,n,r){var i=this.getCategoryCfg(t,e,n,r,!0);return new q(i)},e.prototype.createContinuousLegend=function(t,e,n,r){var i=this.getContinuousCfg(t,e,n,st(r,["value"]));return new Z(i)},e.prototype.createCategoryLegend=function(t,e,n,r){var i=this.getCategoryCfg(t,e,n,r);return new q(i)},e.prototype.getContinuousCfg=function(t,e,n,r){var i=n.getTicks(),o=Object(c.m)(i,(function(t){return 0===t.value})),a=Object(c.m)(i,(function(t){return 1===t.value})),s=i.map((function(t){var r=t.value,i=t.tickValue,o=e.mapping(n.invert(r)).join("");return{value:i,attrValue:o,color:o,scaleValue:r}}));o||s.push({value:n.min,attrValue:e.mapping(n.invert(0)).join(""),color:e.mapping(n.invert(0)).join(""),scaleValue:0}),a||s.push({value:n.max,attrValue:e.mapping(n.invert(1)).join(""),color:e.mapping(n.invert(1)).join(""),scaleValue:1}),s.sort((function(t,e){return t.value-e.value}));var l={min:Object(c.z)(s).value,max:Object(c.U)(s).value,colors:[],rail:{type:e.type},track:{}};"size"===e.type&&(l.track={style:{fill:"size"===e.type?this.view.getTheme().defaultColor:void 0}}),"color"===e.type&&(l.colors=s.map((function(t){return t.attrValue})));var u=this.container,h=ur(yo(r)),d=Object(c.s)(r,"title");return d&&(d=Object(c.h)({text:yt(n)},d)),l.container=u,l.layout=h,l.title=d,l.animateOption=An,this.mergeLegendCfg(l,r,"continuous")},e.prototype.getCategoryCfg=function(t,e,n,r,i){var a=this.container,s=Object(c.s)(r,"position",o.BOTTOM),l=dr(this.view.getTheme(),s),u=Object(c.s)(l,["marker"]),h=Object(c.s)(r,"marker"),d=ur(s),f=Object(c.s)(l,["pageNavigator"]),p=Object(c.s)(r,"pageNavigator"),g=i?function(t,e,n){return n.map((function(n,r){var i=e;Object(c.I)(i)&&(i=i(n.name,r,Object(c.h)({},t,n)));var o=Object(c.I)(n.marker)?n.marker(n.name,r,Object(c.h)({},t,n)):n.marker,a=Object(c.h)({},t,i,o);return lr(a),n.marker=a,n}))}(u,h,r.items):hr(this.view,t,e,u,h),v=Object(c.s)(r,"title");v&&(v=Object(c.h)({text:n?yt(n):""},v));var y=Object(c.s)(r,"maxWidthRatio"),m=Object(c.s)(r,"maxHeightRatio"),b=this.getCategoryLegendSizeCfg(d,y,m);b.container=a,b.layout=d,b.items=g,b.title=v,b.animateOption=An,b.pageNavigator=Object(c.h)({},f,p);var x=this.mergeLegendCfg(b,r,s);x.reversed&&x.items.reverse();var O=Object(c.s)(x,"maxItemWidth");return O&&O<=1&&(x.maxItemWidth=this.view.viewBBox.width*O),x},e.prototype.mergeLegendCfg=function(t,e,n){var r=n.split("-")[0],i=dr(this.view.getTheme(),r);return Object(c.h)({},i,t,e)},e.prototype.getId=function(t){return"".concat(this.name,"-").concat(t)},e.prototype.getComponentById=function(t){return Object(c.m)(this.components,(function(e){return e.id===t}))},e.prototype.getCategoryLegendSizeCfg=function(t,e,n){void 0===e&&(e=.25),void 0===n&&(n=.25);var r=this.view.viewBBox,i=r.width,o=r.height;return"vertical"===t?{maxWidth:i*e,maxHeight:o}:{maxWidth:i,maxHeight:o*n}},e}(Mn),bo=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=c.fb,n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=Object(s.e)(t,2),r=e[0],i=e[1];n.start=r,n.end=i,n.changeViewData(r,i)},n.container=n.view.getLayer(i.FORE).addGroup(),n.onChangeFn=Object(c.qb)(n.onValueChange,20,{leading:!0}),n.width=0,n.view.on(l.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(l.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return Object(s.c)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"slider"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.view.off(l.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(l.BEFORE_CHANGE_SIZE,this.resetMeasure)},e.prototype.init=function(){},e.prototype.render=function(){this.option=this.view.getOptions().slider;var t=this.getSliderCfg(),e=t.start,n=t.end;Object(c.K)(this.start)&&(this.start=e,this.end=n);var r=this.view.getOptions().data;this.option&&!Object(c.G)(r)?this.slider?this.slider=this.updateSlider():(this.slider=this.createSlider(),this.slider.component.on("sliderchange",this.onChangeFn)):this.slider&&(this.slider.component.destroy(),this.slider=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.width&&(this.measureSlider(),setTimeout((function(){t.view.destroyed||t.changeViewData(t.start,t.end)}),0)),this.slider){var e=this.view.coordinateBBox.width,n=this.slider.component.get("padding"),r=Object(s.e)(n,4),i=r[0],a=(r[1],r[2],r[3]),c=this.slider.component.getLayoutBBox(),l=new lt(c.x,c.y,Math.min(c.width,e),c.height).expand(n),u=this.getMinMaxText(this.start,this.end),h=u.minText,d=u.maxText,f=Object(s.e)(go(this.view.viewBBox,l,o.BOTTOM),2),p=(f[0],f[1]),g=Object(s.e)(go(this.view.coordinateBBox,l,o.BOTTOM),2),v=g[0];g[1];this.slider.component.update(Object(s.a)(Object(s.a)({},this.getSliderCfg()),{x:v+a,y:p+i,width:this.width,start:this.start,end:this.end,minText:h,maxText:d})),this.view.viewBBox=this.view.viewBBox.cut(l,o.BOTTOM)}},e.prototype.update=function(){this.render()},e.prototype.createSlider=function(){var t=this.getSliderCfg(),e=new V.Slider(Object(s.a)({container:this.container},t));return e.init(),{component:e,layer:i.FORE,direction:o.BOTTOM,type:a.SLIDER}},e.prototype.updateSlider=function(){var t=this.getSliderCfg();if(this.width){var e=this.getMinMaxText(this.start,this.end),n=e.minText,r=e.maxText;t=Object(s.a)(Object(s.a)({},t),{width:this.width,start:this.start,end:this.end,minText:n,maxText:r})}return this.slider.component.update(t),this.slider},e.prototype.measureSlider=function(){var t=this.getSliderCfg().width;this.width=t},e.prototype.getSliderCfg=function(){var t={height:16,start:0,end:1,minText:"",maxText:"",x:0,y:0,width:this.view.coordinateBBox.width};if(Object(c.O)(this.option)){var e=Object(s.a)({data:this.getData()},Object(c.s)(this.option,"trendCfg",{}));t=Object(c.h)({},t,this.getThemeOptions(),this.option),t=Object(s.a)(Object(s.a)({},t),{trendCfg:e})}return t.start=Object(c.c)(Math.min(Object(c.K)(t.start)?0:t.start,Object(c.K)(t.end)?1:t.end),0,1),t.end=Object(c.c)(Math.max(Object(c.K)(t.start)?0:t.start,Object(c.K)(t.end)?1:t.end),0,1),t},e.prototype.getData=function(){var t=this.view.getOptions().data,e=Object(s.e)(this.view.getYScales(),1)[0],n=this.view.getGroupScales();if(n.length){var r=n[0],i=r.field,o=r.ticks;return t.reduce((function(t,n){return n[i]===o[0]&&t.push(n[e.field]),t}),[])}return t.map((function(t){return t[e.field]||0}))},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return Object(c.s)(t,["components","slider","common"],{})},e.prototype.getMinMaxText=function(t,e){var n=this.view.getOptions().data,r=this.view.getXScale(),i=Object(c.yb)(n,r.field);r.isLinear&&(i=i.sort());var o=i,a=Object(c.mb)(n);if(!r||!a)return{};var s=Object(c.mb)(o),l=Math.round(t*(s-1)),u=Math.round(e*(s-1)),h=Object(c.s)(o,[l]),d=Object(c.s)(o,[u]),f=this.getSliderCfg().formatter;return f&&(h=f(h,n[l],l),d=f(d,n[u],u)),{minText:h,maxText:d}},e.prototype.changeViewData=function(t,e){var n=this.view.getOptions().data,r=this.view.getXScale(),i=Object(c.mb)(n);if(r&&i){var o=Object(c.yb)(n,r.field),a=this.view.getXScale().isLinear?o.sort((function(t,e){return Number(t)-Number(e)})):o,s=a,l=Object(c.mb)(s),u=Math.round(t*(l-1)),h=Math.round(e*(l-1));this.view.filter(r.field,(function(t,e){var n=s.indexOf(t);return!(n>-1)||at(n,u,h)})),this.view.render(!0)}},e.prototype.getComponents=function(){return this.slider?[this.slider]:[]},e.prototype.clear=function(){this.slider&&(this.slider.component.destroy(),this.slider=void 0),this.width=0,this.start=void 0,this.end=void 0},e}(Mn),xo=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=c.fb,n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=t.ratio,r=n.getValidScrollbarCfg().animate;n.ratio=Object(c.c)(e,0,1);var i=n.view.getOptions().animate;r||n.view.animate(!1),n.changeViewData(n.getScrollRange(),!0),n.view.animate(i)},n.container=n.view.getLayer(i.FORE).addGroup(),n.onChangeFn=Object(c.qb)(n.onValueChange,20,{leading:!0}),n.trackLen=0,n.thumbLen=0,n.ratio=0,n.view.on(l.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(l.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return Object(s.c)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"scrollbar"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.view.off(l.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(l.BEFORE_CHANGE_SIZE,this.resetMeasure)},e.prototype.init=function(){},e.prototype.render=function(){this.option=this.view.getOptions().scrollbar,this.option?this.scrollbar?this.scrollbar=this.updateScrollbar():(this.scrollbar=this.createScrollbar(),this.scrollbar.component.on("scrollchange",this.onChangeFn)):this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.trackLen&&(this.measureScrollbar(),setTimeout((function(){t.view.destroyed||t.changeViewData(t.getScrollRange(),!0)}))),this.scrollbar){var e=this.view.coordinateBBox.width,n=this.scrollbar.component.get("padding"),r=this.scrollbar.component.getLayoutBBox(),i=new lt(r.x,r.y,Math.min(r.width,e),r.height).expand(n),a=this.getScrollbarComponentCfg(),c=void 0,l=void 0;if(a.isHorizontal){var u=Object(s.e)(go(this.view.viewBBox,i,o.BOTTOM),2),h=(u[0],u[1]),d=Object(s.e)(go(this.view.coordinateBBox,i,o.BOTTOM),2),f=d[0];d[1];c=f,l=h}else{var p=Object(s.e)(go(this.view.viewBBox,i,o.RIGHT),2),g=(p[0],h=p[1],Object(s.e)(go(this.view.viewBBox,i,o.RIGHT),2));f=g[0],g[1];c=f,l=h}c+=n[3],l+=n[0],this.trackLen?this.scrollbar.component.update(Object(s.a)(Object(s.a)({},a),{x:c,y:l,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio})):this.scrollbar.component.update(Object(s.a)(Object(s.a)({},a),{x:c,y:l})),this.view.viewBBox=this.view.viewBBox.cut(i,a.isHorizontal?o.BOTTOM:o.RIGHT)}},e.prototype.update=function(){this.render()},e.prototype.getComponents=function(){return this.scrollbar?[this.scrollbar]:[]},e.prototype.clear=function(){this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0),this.trackLen=0,this.thumbLen=0,this.ratio=0,this.cnt=0,this.step=0,this.data=void 0,this.xScaleCfg=void 0,this.yScalesCfg=[]},e.prototype.setValue=function(t){this.onValueChange({ratio:t})},e.prototype.getValue=function(){return this.ratio},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return Object(c.s)(t,["components","scrollbar","common"],{})},e.prototype.getScrollbarTheme=function(t){var e=Object(c.s)(this.view.getTheme(),["components","scrollbar"]),n=t||{},r=n.thumbHighlightColor,i=Object(s.f)(n,["thumbHighlightColor"]);return{default:Object(c.h)({},Object(c.s)(e,["default","style"],{}),i),hover:Object(c.h)({},Object(c.s)(e,["hover","style"],{}),{thumbColor:r})}},e.prototype.measureScrollbar=function(){var t=this.view.getXScale(),e=this.view.getYScales().slice();this.data=this.getScrollbarData(),this.step=this.getStep(),this.cnt=this.getCnt();var n=this.getScrollbarComponentCfg(),r=n.trackLen,i=n.thumbLen;this.trackLen=r,this.thumbLen=i,this.xScaleCfg={field:t.field,values:t.values||[]},this.yScalesCfg=e},e.prototype.getScrollRange=function(){var t=Math.floor((this.cnt-this.step)*Object(c.c)(this.ratio,0,1));return[t,Math.min(t+this.step-1,this.cnt-1)]},e.prototype.changeViewData=function(t,e){var n=this,r=Object(s.e)(t,2),i=r[0],o=r[1],a="vertical"!==this.getValidScrollbarCfg().type,l=Object(c.yb)(this.data,this.xScaleCfg.field),u=this.view.getXScale().isLinear?l.sort((function(t,e){return Number(t)-Number(e)})):l,h=a?u:u.reverse();this.yScalesCfg.forEach((function(t){n.view.scale(t.field,{formatter:t.formatter,type:t.type,min:t.min,max:t.max,tickMethod:t.tickMethod})})),this.view.filter(this.xScaleCfg.field,(function(t){var e=h.indexOf(t);return!(e>-1)||at(e,i,o)})),this.view.render(!0)},e.prototype.createScrollbar=function(){var t="vertical"!==this.getValidScrollbarCfg().type,e=new V.Scrollbar(Object(s.a)(Object(s.a)({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return e.init(),{component:e,layer:i.FORE,direction:t?o.BOTTOM:o.RIGHT,type:a.SCROLLBAR}},e.prototype.updateScrollbar=function(){var t=this.getScrollbarComponentCfg(),e=this.trackLen?Object(s.a)(Object(s.a)({},t),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):Object(s.a)({},t);return this.scrollbar.component.update(e),this.scrollbar},e.prototype.getStep=function(){if(this.step)return this.step;var t=this.view.coordinateBBox,e=this.getValidScrollbarCfg(),n=e.type,r=e.categorySize,i="vertical"!==n;return Math.floor((i?t.width:t.height)/r)},e.prototype.getCnt=function(){if(this.cnt)return this.cnt;var t=this.view.getXScale(),e=this.getScrollbarData(),n=Object(c.yb)(e,t.field);return Object(c.mb)(n)},e.prototype.getScrollbarComponentCfg=function(){var t=this.view,e=t.coordinateBBox,n=t.viewBBox,r=this.getValidScrollbarCfg(),i=r.type,o=r.padding,a=r.width,l=r.height,u=r.style,h="vertical"!==i,d=Object(s.e)(o,4),f=d[0],p=d[1],g=d[2],v=d[3],y=h?{x:e.minX+v,y:n.maxY-l-g}:{x:n.maxX-a-p,y:e.minY+f},m=this.getStep(),b=this.getCnt(),x=h?e.width-v-p:e.height-f-g,O=Math.max(x*Object(c.c)(m/b,0,1),20);return Object(s.a)(Object(s.a)({},this.getThemeOptions()),{x:y.x,y:y.y,size:h?l:a,isHorizontal:h,trackLen:x,thumbLen:O,thumbOffset:0,theme:this.getScrollbarTheme(u)})},e.prototype.getValidScrollbarCfg=function(){var t={type:"horizontal",categorySize:32,width:8,height:8,padding:[0,0,0,0],animate:!0,style:{}};return Object(c.O)(this.option)&&(t=Object(s.a)(Object(s.a)({},t),this.option)),Object(c.O)(this.option)&&this.option.padding||(t.padding=(t.type,[0,0,0,0])),t},e.prototype.getScrollbarData=function(){var t=this.view.getCoordinate(),e=this.getValidScrollbarCfg(),n=this.view.getOptions().data||[];return t.isReflect("y")&&"vertical"===e.type&&(n=Object(s.g)([],Object(s.e)(n),!1).reverse()),n},e}(Mn),Oo={fill:"#CCD6EC",opacity:.3};function jo(t,e,n){var r,i,o,a,l,u,h=function(t,e,n){var r,i,o=dn(t,e,n);try{for(var a=Object(s.i)(t.views),c=a.next();!c.done;c=a.next()){var l=c.value;o=o.concat(dn(l,e,n))}}catch(t){r={error:t}}finally{try{c&&!c.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}(t,e,n);if(h.length){h=Object(c.q)(h);try{for(var d=Object(s.i)(h),f=d.next();!f.done;f=d.next()){var p=f.value;try{for(var g=(o=void 0,Object(s.i)(p)),v=g.next();!v.done;v=g.next()){var y=v.value,m=y.mappingData,b=m.x,x=m.y;y.x=Object(c.C)(b)?b[b.length-1]:b,y.y=Object(c.C)(x)?x[x.length-1]:x}}catch(t){o={error:t}}finally{try{v&&!v.done&&(a=g.return)&&a.call(g)}finally{if(o)throw o.error}}}}catch(t){r={error:t}}finally{try{f&&!f.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}if(!1===n.shared&&h.length>1){var O=h[0],j=Math.abs(e.y-O[0].y);try{for(var w=Object(s.i)(h),C=w.next();!C.done;C=w.next()){var _=C.value,M=Math.abs(e.y-_[0].y);M<=j&&(O=_,j=M)}}catch(t){l={error:t}}finally{try{C&&!C.done&&(u=w.return)&&u.call(w)}finally{if(l)throw l.error}}h=[O]}return Object(c.ub)(Object(c.q)(h))}return[]}var wo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.show=function(t){var e=this.context.view,n=this.context.event,r=e.getController("tooltip").getTooltipCfg(),i=jo(e,{x:n.x,y:n.y},r);if(!Object(c.H)(i,this.items)&&(this.items=i,i.length)){var o=e.getXScale().field,a=i[0].data[o],l=[],u=e.geometries;if(Object(c.j)(u,(function(t){if("interval"===t.type||"schema"===t.type){var e=t.getElementsBy((function(t){return t.getData()[o]===a}));l=l.concat(e)}})),l.length){var h=e.getCoordinate(),d=l[0].shape.getCanvasBBox(),f=l[0].shape.getCanvasBBox(),p=d;Object(c.j)(l,(function(t){var e=t.shape.getCanvasBBox();h.isTransposed?(e.minY<d.minY&&(d=e),e.maxY>f.maxY&&(f=e)):(e.minX<d.minX&&(d=e),e.maxX>f.maxX&&(f=e)),p.x=Math.min(e.minX,p.minX),p.y=Math.min(e.minY,p.minY),p.width=Math.max(e.maxX,p.maxX)-p.x,p.height=Math.max(e.maxY,p.maxY)-p.y}));var g=e.backgroundGroup,v=e.coordinateBBox,y=void 0;if(h.isRect){var m=e.getXScale(),b=t||{},x=b.appendRatio,O=b.appendWidth;Object(c.K)(O)&&(x=Object(c.K)(x)?m.isLinear?0:.25:x,O=h.isTransposed?x*f.height:x*d.width);var j=void 0,w=void 0,C=void 0,_=void 0;h.isTransposed?(j=v.minX,w=Math.min(f.minY,d.minY)-O,C=v.width,_=p.height+2*O):(j=Math.min(d.minX,f.minX)-O,w=v.minY,C=p.width+2*O,_=v.height),y=[["M",j,w],["L",j+C,w],["L",j+C,w+_],["L",j,w+_],["Z"]]}else{var M=Object(c.z)(l),S=Object(c.U)(l),E=it(M.getModel(),h).startAngle,k=it(S.getModel(),h).endAngle,I=h.getCenter(),A=h.getRadius(),P=h.innerRadius*A;y=nt(I.x,I.y,A,E,k,P)}if(this.regionPath)this.regionPath.attr("path",y),this.regionPath.show();else{var T=Object(c.s)(t,"style",Oo);this.regionPath=g.addShape({type:"path",name:"active-region",capture:!1,attrs:Object(s.a)(Object(s.a)({},T),{path:y})})}}}},e.prototype.hide=function(){this.regionPath&&this.regionPath.hide(),this.items=null},e.prototype.destroy=function(){this.hide(),this.regionPath&&this.regionPath.remove(!0),t.prototype.destroy.call(this)},e}(At),Co=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return Object(s.c)(e,t),e.prototype.show=function(){var t=this.context,e=t.event,n=t.view;if(!n.isTooltipLocked()){var r=this.timeStamp,i=+new Date;if(i-r>Object(c.s)(t.view.getOptions(),"tooltip.showDelay",16)){var o=this.location,a={x:e.x,y:e.y};o&&Object(c.H)(o,a)||this.showTooltip(n,a),this.timeStamp=i,this.location=a}}},e.prototype.hide=function(){var t=this.context.view,e=t.getController("tooltip"),n=this.context.event,r=n.clientX,i=n.clientY;e.isCursorEntered({x:r,y:i})||t.isTooltipLocked()||(this.hideTooltip(t),this.location=null)},e.prototype.showTooltip=function(t,e){t.showTooltip(e)},e.prototype.hideTooltip=function(t){t.hideTooltip()},e}(At),_o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.showTooltip=function(t,e){var n=Ce(t);Object(c.j)(n,(function(n){var r=_e(t,n,e);n.showTooltip(r)}))},e.prototype.hideTooltip=function(t){var e=Ce(t);Object(c.j)(e,(function(t){t.hideTooltip()}))},e}(Co),Mo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return Object(s.c)(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.show=function(){var t=this.context.event,e=this.timeStamp,n=+new Date;if(n-e>16){var r=this.location,i={x:t.x,y:t.y};r&&Object(c.H)(r,i)||this.showTooltip(i),this.timeStamp=n,this.location=i}},e.prototype.hide=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var e=this.context,n=e.event.target;if(n&&n.get("tip")){if(this.tooltip){var r=e.view.canvas,i={start:{x:0,y:0},end:{x:r.get("width"),y:r.get("height")}};this.tooltip.set("region",i)}else this.renderTooltip();var o=n.get("tip");this.tooltip.update(Object(s.a)({title:o},t)),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=this.context.view,n=e.canvas,r={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},i=e.getTheme(),o=Object(c.s)(i,["components","tooltip","domStyles"],{}),a=new Q({parent:n.get("el").parentNode,region:r,visible:!1,crosshairs:null,domStyles:Object(s.a)({},Object(c.h)({},o,(t={},t[V.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={"max-width":"50%"},t[V.TOOLTIP_CSS_CONST.TITLE_CLASS]={"word-break":"break-all"},t)))});a.init(),a.setCapture(!1),this.tooltip=a},e}(At),So=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e}return Object(s.c)(e,t),e.prototype.hasState=function(t){return t.hasState(this.stateName)},e.prototype.setElementState=function(t,e){t.setState(this.stateName,e)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.clear=function(){var t=this.context.view;this.clearViewState(t)},e.prototype.clearViewState=function(t){var e=this,n=ve(t,this.stateName);Object(c.j)(n,(function(t){e.setElementState(t,!1)}))},e}(At);function Eo(t){return Object(c.s)(t.get("delegateObject"),"item")}var ko=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreListItemStates=["unchecked"],e}return Object(s.c)(e,t),e.prototype.isItemIgnore=function(t,e){return!!this.ignoreListItemStates.filter((function(n){return e.hasState(t,n)})).length},e.prototype.setStateByComponent=function(t,e,n){var r=this.context.view,i=t.get("field"),o=ge(r);this.setElementsStateByItem(o,i,e,n)},e.prototype.setStateByElement=function(t,e){this.setElementState(t,e)},e.prototype.isMathItem=function(t,e,n){var r=Se(this.context.view,e),i=ye(t,e);return!Object(c.K)(i)&&n.name===r.getText(i)},e.prototype.setElementsStateByItem=function(t,e,n,r){var i=this;Object(c.j)(t,(function(t){i.isMathItem(t,e,n)&&t.setState(i.stateName,r)}))},e.prototype.setStateEnable=function(t){var e=oe(this.context);if(e)se(this.context)&&this.setStateByElement(e,t);else{var n=ae(this.context);if(ce(n)){var r=n.item,i=n.component;if(r&&i&&!this.isItemIgnore(r,i)){var o=this.context.event.gEvent;if(o&&o.fromShape&&o.toShape&&Eo(o.fromShape)===Eo(o.toShape))return;this.setStateByComponent(i,r,t)}}}},e.prototype.toggle=function(){var t=oe(this.context);if(t){var e=t.hasState(this.stateName);this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(So),Io=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(s.c)(e,t),e.prototype.active=function(){this.setState()},e}(ko),Ao=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cache={},e}return Object(s.c)(e,t),e.prototype.getColorScale=function(t,e){var n=e.geometry.getAttribute("color");return n?t.getScaleByField(n.getFields()[0]):null},e.prototype.getLinkPath=function(t,e){var n=this.context.view.getCoordinate().isTransposed,r=t.shape.getCanvasBBox(),i=e.shape.getCanvasBBox();return n?[["M",r.minX,r.minY],["L",i.minX,i.maxY],["L",i.maxX,i.maxY],["L",r.maxX,r.minY],["Z"]]:[["M",r.maxX,r.minY],["L",i.minX,i.minY],["L",i.minX,i.maxY],["L",r.maxX,r.maxY],["Z"]]},e.prototype.addLinkShape=function(t,e,n,r){var i={opacity:.4,fill:e.shape.attr("fill")};t.addShape({type:"path",attrs:Object(s.a)(Object(s.a)({},Object(c.h)({},i,Object(c.I)(r)?r(i,e):r)),{path:this.getLinkPath(e,n)})})},e.prototype.linkByElement=function(t,e){var n=this,r=this.context.view,i=this.getColorScale(r,t);if(i){var o=ye(t,i.field);if(!this.cache[o]){var a=function(t,e,n){return ge(t).filter((function(t){return ye(t,e)===n}))}(r,i.field,o),s=this.linkGroup.addGroup();this.cache[o]=s;var l=a.length;Object(c.j)(a,(function(t,r){if(r<l-1){var i=a[r+1];n.addLinkShape(s,t,i,e)}}))}}},e.prototype.removeLink=function(t){var e=this.getColorScale(this.context.view,t);if(e){var n=ye(t,e.field);this.cache[n]&&(this.cache[n].remove(),this.cache[n]=null)}},e.prototype.link=function(t){var e=this.context;this.linkGroup||(this.linkGroup=e.view.foregroundGroup.addGroup({id:"link-by-color-group",capture:!1}));var n=oe(e);n&&this.linkByElement(n,null==t?void 0:t.style)},e.prototype.unlink=function(){var t=oe(this.context);t&&this.removeLink(t)},e.prototype.clear=function(){this.linkGroup&&this.linkGroup.clear(),this.cache={}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.linkGroup&&this.linkGroup.remove()},e}(At),Po=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.endPoint=null,e.isStarted=!1,e.effectSiblings=!1,e.effectByRecord=!1,e}return Object(s.c)(e,t),e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.start=function(){this.clear(),this.startPoint=this.getCurrentPoint(),this.isStarted=!0},e.prototype.getIntersectElements=function(){var t=null;if(ue(this.context))t=de(this.context,10);else{var e=this.startPoint,n=this.isStarted?this.getCurrentPoint():this.endPoint;if(!e||!n)return;var r={minX:Math.min(e.x,n.x),minY:Math.min(e.y,n.y),maxX:Math.max(e.x,n.x),maxY:Math.max(e.y,n.y)};t=me(this.context.view,r)}return t},e.prototype.setStateEnable=function(t){if(this.effectSiblings&&!this.effectByRecord)this.setSiblingsState(t);else{var e=ge(this.context.view),n=this.getIntersectElements();n&&n.length?this.effectByRecord?this.setSiblingsStateByRecord(n,t):this.setElementsState(n,t,e):this.clear()}},e.prototype.setSiblingsStateByRecord=function(t,e){var n=this,r=this.context.view,i=Ce(r),o=t.map((function(t){return t.getModel().data})),a=r.getXScale().field,s=r.getYScales()[0].field;Object(c.j)(i,(function(t){var r=ge(t),i=r.filter((function(t){var e=t.getModel().data;return Me(o,e,a,s)}));n.setElementsState(i,e,r)}))},e.prototype.setSiblingsState=function(t){var e=this,n=Ce(this.context.view);ue(this.context)&&Object(c.j)(n,(function(n){var r=ge(n),i=fe(e.context,n,10);i&&i.length?e.setElementsState(i,t,r):e.clearViewState(n)}))},e.prototype.setElementsState=function(t,e,n){var r=this;Object(c.j)(n,(function(n){t.includes(n)?r.setElementState(n,e):r.setElementState(n,!1)}))},e.prototype.end=function(){this.isStarted=!1,this.endPoint=this.getCurrentPoint()},e.prototype.clear=function(){var t=this,e=this.context.view;if(this.effectSiblings){var n=Ce(e);Object(c.j)(n,(function(e){t.clearViewState(e)}))}else this.clearViewState(e)},e}(So),To=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(s.c)(e,t),e.prototype.active=function(){this.setState()},e}(Po),Bo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.setStateEnable=function(t){var e=oe(this.context);if(e){if(!se(this.context))return;t?(this.clear(),this.setElementState(e,!0)):this.hasState(e)&&this.setElementState(e,!1)}},e.prototype.toggle=function(){var t=oe(this.context);if(t){var e=this.hasState(t);e||this.clear(),this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(So),Lo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(s.c)(e,t),e.prototype.active=function(){this.setState()},e}(Bo);function Do(t){var e=ge(t);Object(c.j)(e,(function(t){t.hasState("active")&&t.setState("active",!1),t.hasState("inactive")&&t.setState("inactive",!1)}))}function Fo(t,e,n){Object(c.j)(t,(function(t){e(t)?(t.hasState("inactive")&&t.setState("inactive",!1),t.setState("active",n)):(t.hasState("active")&&t.setState("active",!1),t.setState("inactive",n))}))}var Ro,No=d.INACTIVE,zo=d.ACTIVE,Wo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=zo,e}return Object(s.c)(e,t),e.prototype.setElementsStateByItem=function(t,e,n,r){var i=this;this.setHighlightBy(t,(function(t){return i.isMathItem(t,e,n)}),r)},e.prototype.setElementHighlight=function(t,e){e(t)?(t.hasState(No)&&t.setState(No,!1),t.setState(zo,!0)):t.hasState(zo)||t.setState(No,!0)},e.prototype.setHighlightBy=function(t,e,n){var r=this;if(n)Object(c.j)(t,(function(t){r.setElementHighlight(t,e)}));else{var i=ve(this.context.view,zo),o=!0;Object(c.j)(i,(function(t){if(!e(t))return o=!1,!1})),o?this.clear():Object(c.j)(t,(function(t){e(t)&&(t.hasState(zo)&&t.setState(zo,!1),t.setState(No,!0))}))}},e.prototype.setElementState=function(t,e){var n=ge(this.context.view);this.setHighlightBy(n,(function(e){return t===e}),e)},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){Do(this.context.view)},e}(ko),$o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.setStateByElement=function(t,e){var n=this.context.view,r=t.geometry.getAttribute("color");if(r){var i=n.getScaleByField(r.getFields()[0]),o=ye(t,i.field),a=ge(n),s=a.filter((function(t){return ye(t,i.field)===o}));this.setHighlightBy(a,(function(t){return s.includes(t)}),e)}},e}(Wo),Ho=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.setElementHighlight=function(t,e){e(t)?(t.hasState(No)&&t.setState(No,!1),t.setState(zo,!0)):(t.setState(No,!0),t.hasState(zo)&&t.setState(zo,!1))},e.prototype.setStateByElement=function(t,e){var n=this.context.view,r=n.getXScale(),i=ye(t,r.field),o=ge(n),a=o.filter((function(t){return ye(t,r.field)===i}));this.setHighlightBy(o,(function(t){return a.includes(t)}),e)},e.prototype.toggle=function(){var t=oe(this.context);if(t){var e=t.hasState(this.stateName);this.setStateByElement(t,!e)}},e}(Wo);!function(t){t.BEFORE_HIGHLIGHT="element-range-highlight:beforehighlight",t.AFTER_HIGHLIGHT="element-range-highlight:afterhighlight",t.BEFORE_CLEAR="element-range-highlight:beforeclear",t.AFTER_CLEAR="element-range-highlight:afterclear"}(Ro||(Ro={}));var Yo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(s.c)(e,t),e.prototype.clearViewState=function(t){Do(t)},e.prototype.highlight=function(){var t=this.context,e=t.view,n={view:e,event:t.event,highlightElements:this.getIntersectElements()};e.emit(Ro.BEFORE_HIGHLIGHT,yn.fromData(e,Ro.BEFORE_HIGHLIGHT,n)),this.setState(),e.emit(Ro.AFTER_HIGHLIGHT,yn.fromData(e,Ro.AFTER_HIGHLIGHT,n))},e.prototype.clear=function(){var e=this.context.view;e.emit(Ro.BEFORE_CLEAR,yn.fromData(e,Ro.BEFORE_CLEAR,{})),t.prototype.clear.call(this),e.emit(Ro.AFTER_CLEAR,yn.fromData(e,Ro.AFTER_CLEAR,{}))},e.prototype.setElementsState=function(t,e,n){Fo(n,(function(e){return t.indexOf(e)>=0}),e)},e}(Po),Vo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(s.c)(e,t),e.prototype.highlight=function(){this.setState()},e.prototype.setElementState=function(t,e){Fo(ge(this.context.view),(function(e){return t===e}),e)},e.prototype.clear=function(){Do(this.context.view)},e}(Bo),Go=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(s.c)(e,t),e.prototype.selected=function(){this.setState()},e}(Po),Ko=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(s.c)(e,t),e.prototype.selected=function(){this.setState()},e}(ko),Xo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(s.c)(e,t),e.prototype.selected=function(){this.setState()},e}(Bo),Uo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e.ignoreItemStates=[],e}return Object(s.c)(e,t),e.prototype.getTriggerListInfo=function(){var t=ae(this.context),e=null;return ce(t)&&(e={item:t.item,list:t.component}),e},e.prototype.getAllowComponents=function(){var t=this,e=Oe(this.context.view),n=[];return Object(c.j)(e,(function(e){e.isList()&&t.allowSetStateByElement(e)&&n.push(e)})),n},e.prototype.hasState=function(t,e){return t.hasState(e,this.stateName)},e.prototype.clearAllComponentsState=function(){var t=this,e=this.getAllowComponents();Object(c.j)(e,(function(e){e.clearItemsState(t.stateName)}))},e.prototype.allowSetStateByElement=function(t){var e=t.get("field");if(!e)return!1;if(this.cfg&&this.cfg.componentNames){var n=t.get("name");if(-1===this.cfg.componentNames.indexOf(n))return!1}var r=Se(this.context.view,e);return r&&r.isCategory},e.prototype.allowSetStateByItem=function(t,e){var n=this.ignoreItemStates;return!n.length||0===n.filter((function(n){return e.hasState(t,n)})).length},e.prototype.setStateByElement=function(t,e,n){var r=t.get("field"),i=Se(this.context.view,r),o=ye(e,r),a=i.getText(o);this.setItemsState(t,a,n)},e.prototype.setStateEnable=function(t){var e=this,n=oe(this.context);if(n){var r=this.getAllowComponents();Object(c.j)(r,(function(r){e.setStateByElement(r,n,t)}))}else{var i=ae(this.context);if(ce(i)){var o=i.item,a=i.component;this.allowSetStateByElement(a)&&this.allowSetStateByItem(o,a)&&this.setItemState(a,o,t)}}},e.prototype.setItemsState=function(t,e,n){var r=this,i=t.getItems();Object(c.j)(i,(function(i){i.name===e&&r.setItemState(t,i,n)}))},e.prototype.setItemState=function(t,e,n){t.setItemState(e,this.stateName,n)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.reset=function(){this.setStateEnable(!1)},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item,r=this.hasState(e,n);this.setItemState(e,n,!r)}},e.prototype.clear=function(){var t=this.getTriggerListInfo();t?t.list.clearItemsState(this.stateName):this.clearAllComponentsState()},e}(At),qo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(s.c)(e,t),e.prototype.active=function(){this.setState()},e}(Uo);var Zo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e.ignoreItemStates=["unchecked"],e}return Object(s.c)(e,t),e.prototype.setItemsState=function(t,e,n){this.setHighlightBy(t,(function(t){return t.name===e}),n)},e.prototype.setItemState=function(t,e,n){t.getItems();this.setHighlightBy(t,(function(t){return t===e}),n)},e.prototype.setHighlightBy=function(t,e,n){var r=t.getItems();if(n)Object(c.j)(r,(function(n){e(n)?(t.hasState(n,"inactive")&&t.setItemState(n,"inactive",!1),t.setItemState(n,"active",!0)):t.hasState(n,"active")||t.setItemState(n,"inactive",!0)}));else{var i=t.getItemsByState("active"),o=!0;Object(c.j)(i,(function(t){if(!e(t))return o=!1,!1})),o?this.clear():Object(c.j)(r,(function(n){e(n)&&(t.hasState(n,"active")&&t.setItemState(n,"active",!1),t.setItemState(n,"inactive",!0))}))}},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t,e,n=this.getTriggerListInfo();if(n)t=n.list,e=t.getItems(),Object(c.j)(e,(function(e){t.hasState(e,"active")&&t.setItemState(e,"active",!1),t.hasState(e,"inactive")&&t.setItemState(e,"inactive",!1)}));else{var r=this.getAllowComponents();Object(c.j)(r,(function(t){t.clearItemsState("active"),t.clearItemsState("inactive")}))}},e}(Uo),Qo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(s.c)(e,t),e.prototype.selected=function(){this.setState()},e}(Uo),Jo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="unchecked",e}return Object(s.c)(e,t),e.prototype.unchecked=function(){this.setState()},e}(Uo),ta=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="checked",e}return Object(s.c)(e,t),e.prototype.setItemState=function(t,e,n){this.setCheckedBy(t,(function(t){return t===e}),n)},e.prototype.setCheckedBy=function(t,e,n){var r=t.getItems();n&&Object(c.j)(r,(function(n){e(n)?(t.hasState(n,"unchecked")&&t.setItemState(n,"unchecked",!1),t.setItemState(n,"checked",!0)):t.hasState(n,"checked")||t.setItemState(n,"unchecked",!0)}))},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item;!Object(c.nb)(e.getItems(),(function(t){return e.hasState(t,"unchecked")}))||e.hasState(n,"unchecked")?this.setItemState(e,n,!0):this.reset()}},e.prototype.checked=function(){this.setState()},e.prototype.reset=function(){var t=this.getAllowComponents();Object(c.j)(t,(function(t){t.clearItemsState("checked"),t.clearItemsState("unchecked")}))},e}(Uo),ea=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.toggle=function(){var t,e,n,r,i,o,a,c,l=this.getTriggerListInfo();if(null==l?void 0:l.item){var u=l.list,h=l.item,d=u.getItems(),f=d.filter((function(t){return!u.hasState(t,"unchecked")})),p=d.filter((function(t){return u.hasState(t,"unchecked")})),g=f[0];if(d.length===f.length)try{for(var v=Object(s.i)(d),y=v.next();!y.done;y=v.next()){var m=y.value;u.setItemState(m,"unchecked",m.id!==h.id)}}catch(e){t={error:e}}finally{try{y&&!y.done&&(e=v.return)&&e.call(v)}finally{if(t)throw t.error}}else if(d.length-p.length==1)if(g.id===h.id)try{for(var b=Object(s.i)(d),x=b.next();!x.done;x=b.next()){m=x.value;u.setItemState(m,"unchecked",!1)}}catch(t){n={error:t}}finally{try{x&&!x.done&&(r=b.return)&&r.call(b)}finally{if(n)throw n.error}}else try{for(var O=Object(s.i)(d),j=O.next();!j.done;j=O.next()){m=j.value;u.setItemState(m,"unchecked",m.id!==h.id)}}catch(t){i={error:t}}finally{try{j&&!j.done&&(o=O.return)&&o.call(O)}finally{if(i)throw i.error}}else try{for(var w=Object(s.i)(d),C=w.next();!C.done;C=w.next()){m=C.value;u.setItemState(m,"unchecked",m.id!==h.id)}}catch(t){a={error:t}}finally{try{C&&!C.done&&(c=w.return)&&c.call(w)}finally{if(a)throw a.error}}}},e}(Uo),na="legend-radio-tip",ra=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return Object(s.c)(e,t),e.prototype.show=function(){var t=this.getTriggerListInfo();if(null==t?void 0:t.item){var e=t.list,n=t.item;e.setItemState(n,"showRadio",!0)}},e.prototype.hide=function(){var t=this.getTriggerListInfo();if(null==t?void 0:t.item){var e=t.list,n=t.item;e.setItemState(n,"showRadio",!1)}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.showTip=function(){var t=this.context.event,e=this.timeStamp,n=+new Date,r=this.context.event.target;if(n-e>16&&"legend-item-radio"===r.get("name")){var i=this.location,o={x:t.x,y:t.y};this.timeStamp=n,this.location=o,i&&Object(c.H)(i,o)||this.showTooltip(o)}},e.prototype.hideTip=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var e=this.context,n=e.event.target;if(n&&n.get("tip")){this.tooltip||this.renderTooltip();var r=e.view.getCanvas().get("el").getBoundingClientRect(),i=r.x,o=r.y;this.tooltip.update(Object(s.a)(Object(s.a)({title:n.get("tip")},t),{x:t.x+i,y:t.y+o})),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=((t={})[V.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={padding:"6px 8px",transform:"translate(-50%, -80%)",background:"rgba(0,0,0,0.75)",color:"#fff","border-radius":"2px","z-index":100},t[V.TOOLTIP_CSS_CONST.TITLE_CLASS]={"font-size":"12px","line-height":"14px","margin-bottom":0,"word-break":"break-all"},t);document.getElementById(na)&&document.body.removeChild(document.getElementById(na));var n=new Q({parent:document.body,region:null,visible:!1,crosshairs:null,domStyles:e,containerId:na});n.init(),n.setCapture(!1),this.tooltip=n},e}(Uo),ia=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.maskShape=null,e.points=[],e.starting=!1,e.moving=!1,e.preMovePoint=null,e.shapeType="path",e}return Object(s.c)(e,t),e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.emitEvent=function(t){var e="mask:".concat(t),n=this.context.view,r=this.context.event;n.emit(e,{target:this.maskShape,shape:this.maskShape,points:this.points,x:r.x,y:r.y})},e.prototype.createMask=function(){var t=this.context.view,e=this.getMaskAttrs();return t.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:Object(s.a)({fill:"#C5D4EB",opacity:.3},e)})},e.prototype.getMaskPath=function(){return[]},e.prototype.show=function(){this.maskShape&&(this.maskShape.show(),this.emitEvent("show"))},e.prototype.start=function(t){this.starting=!0,this.moving=!1,this.points=[this.getCurrentPoint()],this.maskShape||(this.maskShape=this.createMask(),this.maskShape.set("capture",!1)),this.updateMask(null==t?void 0:t.maskStyle),this.emitEvent("start")},e.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint()},e.prototype.move=function(){if(this.moving&&this.maskShape){var t=this.getCurrentPoint(),e=this.preMovePoint,n=t.x-e.x,r=t.y-e.y,i=this.points;Object(c.j)(i,(function(t){t.x+=n,t.y+=r})),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t}},e.prototype.updateMask=function(t){var e=Object(c.h)({},this.getMaskAttrs(),t);this.maskShape.attr(e)},e.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null},e.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.maskShape&&this.maskShape.set("capture",!0)},e.prototype.hide=function(){this.maskShape&&(this.maskShape.hide(),this.emitEvent("hide"))},e.prototype.resize=function(){this.starting&&this.maskShape&&(this.points.push(this.getCurrentPoint()),this.updateMask(),this.emitEvent("change"))},e.prototype.destroy=function(){this.points=[],this.maskShape&&this.maskShape.remove(),this.maskShape=null,this.preMovePoint=null,t.prototype.destroy.call(this)},e}(At);function oa(t){var e=Object(c.U)(t),n=0,r=0,i=0;if(t.length){var o=t[0];n=je(o,e)/2,r=(e.x+o.x)/2,i=(e.y+o.y)/2}return{x:r,y:i,r:n}}var aa=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="circle",e}return Object(s.c)(e,t),e.prototype.getMaskAttrs=function(){return oa(this.points)},e}(ia);function sa(t){return{start:Object(c.z)(t),end:Object(c.U)(t)}}function ca(t,e){return{x:Math.min(t.x,e.x),y:Math.min(t.y,e.y),width:Math.abs(e.x-t.x),height:Math.abs(e.y-t.y)}}var la=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="rect",e}return Object(s.c)(e,t),e.prototype.getRegion=function(){return sa(this.points)},e.prototype.getMaskAttrs=function(){var t=this.getRegion();return ca(t.start,t.end)},e}(ia);function ua(t){t.x=Object(c.c)(t.x,0,1),t.y=Object(c.c)(t.y,0,1)}function ha(t,e,n,r){var i=null,o=null,a=r.invert(Object(c.z)(t)),s=r.invert(Object(c.U)(t));return n&&(ua(a),ua(s)),"x"===e?(i=r.convert({x:a.x,y:0}),o=r.convert({x:s.x,y:1})):(i=r.convert({x:0,y:a.y}),o=r.convert({x:1,y:s.y})),{start:i,end:o}}var da=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dim="x",e.inPlot=!0,e}return Object(s.c)(e,t),e.prototype.getRegion=function(){var t=this.context.view.getCoordinate();return ha(this.points,this.dim,this.inPlot,t)},e}(la);function fa(t){var e=[];return t.length&&(Object(c.j)(t,(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}function pa(t){return{path:fa(t)}}var ga=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.getMaskPath=function(){return fa(this.points)},e.prototype.getMaskAttrs=function(){return pa(this.points)},e.prototype.addPoint=function(){this.resize()},e}(ia);function va(t){return function(t,e){if(t.length<=2)return zt(t,!1);var n=t[0],r=[];Object(c.j)(t,(function(t){r.push(t.x),r.push(t.y)}));var i=Nt(r,e,null);return i.unshift(["M",n.x,n.y]),i}(t,!0)}function ya(t){return{path:va(t)}}var ma,ba=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.getMaskPath=function(){return va(this.points)},e.prototype.getMaskAttrs=function(){return ya(this.points)},e}(ga),xa=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.maskShapes=[],e.starting=!1,e.moving=!1,e.recordPoints=null,e.preMovePoint=null,e.shapeType="path",e.maskType="multi-mask",e}return Object(s.c)(e,t),e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.emitEvent=function(t){var e="".concat(this.maskType,":").concat(t),n=this.context.view,r=this.context.event,i={type:this.shapeType,name:this.maskType,get:function(t){return i.hasOwnProperty(t)?i[t]:void 0}};n.emit(e,{target:i,maskShapes:this.maskShapes,multiPoints:this.recordPoints,x:r.x,y:r.y})},e.prototype.createMask=function(t){var e=this.context.view,n=this.recordPoints[t],r=this.getMaskAttrs(n),i=e.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:Object(s.a)({fill:"#C5D4EB",opacity:.3},r)});this.maskShapes.push(i)},e.prototype.getMaskPath=function(t){return[]},e.prototype.show=function(){this.maskShapes.length>0&&(this.maskShapes.forEach((function(t){return t.show()})),this.emitEvent("show"))},e.prototype.start=function(t){this.recordPointStart(),this.starting=!0,this.moving=!1;var e=this.recordPoints.length-1;this.createMask(e),this.updateShapesCapture(!1),this.updateMask(null==t?void 0:t.maskStyle),this.emitEvent("start")},e.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint(),this.updateShapesCapture(!1)},e.prototype.move=function(){if(this.moving&&0!==this.maskShapes.length){var t=this.getCurrentPoint(),e=this.preMovePoint,n=t.x-e.x,r=t.y-e.y,i=this.getCurMaskShapeIndex();i>-1&&(this.recordPoints[i].forEach((function(t){t.x+=n,t.y+=r})),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t)}},e.prototype.updateMask=function(t){var e=this;this.recordPoints.forEach((function(n,r){var i=Object(c.h)({},e.getMaskAttrs(n),t);e.maskShapes[r].attr(i)}))},e.prototype.resize=function(){this.starting&&this.maskShapes.length>0&&(this.recordPointContinue(),this.updateMask(),this.emitEvent("change"))},e.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null,this.updateShapesCapture(!0)},e.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.updateShapesCapture(!0)},e.prototype.hide=function(){this.maskShapes.length>0&&(this.maskShapes.forEach((function(t){return t.hide()})),this.emitEvent("hide"))},e.prototype.remove=function(){var t=this.getCurMaskShapeIndex();t>-1&&(this.recordPoints.splice(t,1),this.maskShapes[t].remove(),this.maskShapes.splice(t,1),this.preMovePoint=null,this.updateShapesCapture(!0),this.emitEvent("change"))},e.prototype.clearAll=function(){this.recordPointClear(),this.maskShapes.forEach((function(t){return t.remove()})),this.maskShapes=[],this.preMovePoint=null},e.prototype.clear=function(){var t=this.getCurMaskShapeIndex();-1===t?(this.recordPointClear(),this.maskShapes.forEach((function(t){return t.remove()})),this.maskShapes=[],this.emitEvent("clearAll")):(this.recordPoints.splice(t,1),this.maskShapes[t].remove(),this.maskShapes.splice(t,1),this.preMovePoint=null,this.emitEvent("clearSingle")),this.preMovePoint=null},e.prototype.destroy=function(){this.clear(),t.prototype.destroy.call(this)},e.prototype.getRecordPoints=function(){var t;return Object(s.g)([],Object(s.e)(null!==(t=this.recordPoints)&&void 0!==t?t:[]),!1)},e.prototype.recordPointStart=function(){var t=this.getRecordPoints(),e=this.getCurrentPoint();this.recordPoints=Object(s.g)(Object(s.g)([],Object(s.e)(t),!1),[[e]],!1)},e.prototype.recordPointContinue=function(){var t=this.getRecordPoints(),e=this.getCurrentPoint(),n=t.splice(-1,1)[0]||[];n.push(e),this.recordPoints=Object(s.g)(Object(s.g)([],Object(s.e)(t),!1),[n],!1)},e.prototype.recordPointClear=function(){this.recordPoints=[]},e.prototype.updateShapesCapture=function(t){this.maskShapes.forEach((function(e){return e.set("capture",t)}))},e.prototype.getCurMaskShapeIndex=function(){var t=this.getCurrentPoint();return this.maskShapes.findIndex((function(e){var n=e.attrs,r=n.width,i=n.height,o=n.r;return!(0===r||0===i||0===o)&&e.isHit(t.x,t.y)}))},e}(At),Oa=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="rect",e}return Object(s.c)(e,t),e.prototype.getRegion=function(t){return sa(t)},e.prototype.getMaskAttrs=function(t){var e=this.getRegion(t);return ca(e.start,e.end)},e}(xa),ja=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dim="x",e.inPlot=!0,e}return Object(s.c)(e,t),e.prototype.getRegion=function(t){var e=this.context.view.getCoordinate();return ha(t,this.dim,this.inPlot,e)},e}(Oa),wa=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="circle",e.getMaskAttrs=oa,e}return Object(s.c)(e,t),e}(xa),Ca=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.getMaskPath=fa,e.getMaskAttrs=pa,e}return Object(s.c)(e,t),e.prototype.addPoint=function(){this.resize()},e}(xa),_a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.getMaskPath=va,e.getMaskAttrs=ya,e}return Object(s.c)(e,t),e}(Ca),Ma=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.setCursor=function(t){this.context.view.getCanvas().setCursor(t)},e.prototype.default=function(){this.setCursor("default")},e.prototype.pointer=function(){this.setCursor("pointer")},e.prototype.move=function(){this.setCursor("move")},e.prototype.crosshair=function(){this.setCursor("crosshair")},e.prototype.wait=function(){this.setCursor("wait")},e.prototype.help=function(){this.setCursor("help")},e.prototype.text=function(){this.setCursor("text")},e.prototype.eResize=function(){this.setCursor("e-resize")},e.prototype.wResize=function(){this.setCursor("w-resize")},e.prototype.nResize=function(){this.setCursor("n-resize")},e.prototype.sResize=function(){this.setCursor("s-resize")},e.prototype.neResize=function(){this.setCursor("ne-resize")},e.prototype.nwResize=function(){this.setCursor("nw-resize")},e.prototype.seResize=function(){this.setCursor("se-resize")},e.prototype.swResize=function(){this.setCursor("sw-resize")},e.prototype.nsResize=function(){this.setCursor("ns-resize")},e.prototype.ewResize=function(){this.setCursor("ew-resize")},e.prototype.zoomIn=function(){this.setCursor("zoom-in")},e.prototype.zoomOut=function(){this.setCursor("zoom-out")},e}(At),Sa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.filterView=function(t,e,n){var r=this;t.getScaleByField(e)&&t.filter(e,n),t.views&&t.views.length&&Object(c.j)(t.views,(function(t){r.filterView(t,e,n)}))},e.prototype.filter=function(){var t=ae(this.context);if(t){var e=this.context.view,n=t.component,r=n.get("field");if(ce(t)){if(r){var i=n.getItemsByState("unchecked"),o=Se(e,r),a=i.map((function(t){return t.name}));a.length?this.filterView(e,r,(function(t){var e=o.getText(t);return!a.includes(e)})):this.filterView(e,r,null),e.render(!0)}}else if(le(t)){var c=n.getValue(),l=Object(s.e)(c,2),u=l[0],h=l[1];this.filterView(e,r,(function(t){return t>=u&&t<=h})),e.render(!0)}}},e}(At);function Ea(t,e,n,r){var i=Math.min(n[e],r[e]),o=Math.max(n[e],r[e]),a=Object(s.e)(t.range,2),c=a[0],l=a[1];if(i<c&&(i=c),o>l&&(o=l),i===l&&o===l)return null;var u=t.invert(i),h=t.invert(o);if(t.isCategory){var d=t.values.indexOf(u),f=t.values.indexOf(h),p=t.values.slice(d,f+1);return function(t){return p.includes(t)}}return function(t){return t>=u&&t<=h}}!function(t){t.FILTER="brush-filter-processing",t.RESET="brush-filter-reset",t.BEFORE_FILTER="brush-filter:beforefilter",t.AFTER_FILTER="brush-filter:afterfilter",t.BEFORE_RESET="brush-filter:beforereset",t.AFTER_RESET="brush-filter:afterreset"}(ma||(ma={}));var ka=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=["x","y"],e.startPoint=null,e.isStarted=!1,e}return Object(s.c)(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.start=function(){var t=this.context;this.isStarted=!0,this.startPoint=t.getCurrentPoint()},e.prototype.filter=function(){var t,e;if(ue(this.context)){var n=this.context.event.target.getCanvasBBox();t={x:n.x,y:n.y},e={x:n.maxX,y:n.maxY}}else{if(!this.isStarted)return;t=this.startPoint,e=this.context.getCurrentPoint()}if(!(Math.abs(t.x-e.x)<5||Math.abs(t.x-e.y)<5)){var r=this.context,i=r.view,o={view:i,event:r.event,dims:this.dims};i.emit(ma.BEFORE_FILTER,yn.fromData(i,ma.BEFORE_FILTER,o));var a=i.getCoordinate(),s=a.invert(e),c=a.invert(t);if(this.hasDim("x")){var l=i.getXScale(),u=Ea(l,"x",s,c);this.filterView(i,l.field,u)}if(this.hasDim("y")){var h=i.getYScales()[0];u=Ea(h,"y",s,c);this.filterView(i,h.field,u)}this.reRender(i,{source:ma.FILTER}),i.emit(ma.AFTER_FILTER,yn.fromData(i,ma.AFTER_FILTER,o))}},e.prototype.end=function(){this.isStarted=!1},e.prototype.reset=function(){var t=this.context.view;if(t.emit(ma.BEFORE_RESET,yn.fromData(t,ma.BEFORE_RESET,{})),this.isStarted=!1,this.hasDim("x")){var e=t.getXScale();this.filterView(t,e.field,null)}if(this.hasDim("y")){var n=t.getYScales()[0];this.filterView(t,n.field,null)}this.reRender(t,{source:ma.RESET}),t.emit(ma.AFTER_RESET,yn.fromData(t,ma.AFTER_RESET,{}))},e.prototype.filterView=function(t,e,n){t.filter(e,n)},e.prototype.reRender=function(t,e){t.render(!0,e)},e}(At),Ia=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.filterView=function(t,e,n){var r=Ce(t);Object(c.j)(r,(function(t){t.filter(e,n)}))},e.prototype.reRender=function(t){var e=Ce(t);Object(c.j)(e,(function(t){t.render(!0)}))},e}(ka),Aa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.filter=function(){var t=ae(this.context),e=this.context.view,n=ge(e);if(ue(this.context)){var r=de(this.context,10);r&&Object(c.j)(n,(function(t){r.includes(t)?t.show():t.hide()}))}else if(t){var i=t.component,o=i.get("field");if(ce(t)){if(o){var a=i.getItemsByState("unchecked"),l=Se(e,o),u=a.map((function(t){return t.name}));Object(c.j)(n,(function(t){var e=ye(t,o),n=l.getText(e);u.indexOf(n)>=0?t.hide():t.show()}))}}else if(le(t)){var h=i.getValue(),d=Object(s.e)(h,2),f=d[0],p=d[1];Object(c.j)(n,(function(t){var e=ye(t,o);e>=f&&e<=p?t.show():t.hide()}))}}},e.prototype.clear=function(){var t=ge(this.context.view);Object(c.j)(t,(function(t){t.show()}))},e.prototype.reset=function(){this.clear()},e}(At),Pa=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.byRecord=!1,e}return Object(s.c)(e,t),e.prototype.filter=function(){ue(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},e.prototype.filterByRecord=function(){var t=this.context.view,e=de(this.context,10);if(e){var n=t.getXScale().field,r=t.getYScales()[0].field,i=e.map((function(t){return t.getModel().data})),o=Ce(t);Object(c.j)(o,(function(t){var e=ge(t);Object(c.j)(e,(function(t){var e=t.getModel().data;Me(i,e,n,r)?t.show():t.hide()}))}))}},e.prototype.filterByBBox=function(){var t=this,e=Ce(this.context.view);Object(c.j)(e,(function(e){var n=fe(t.context,e,10),r=ge(e);n&&Object(c.j)(r,(function(t){n.includes(t)?t.show():t.hide()}))}))},e.prototype.reset=function(){var t=Ce(this.context.view);Object(c.j)(t,(function(t){var e=ge(t);Object(c.j)(e,(function(t){t.show()}))}))},e}(At),Ta=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buttonGroup=null,e.buttonCfg={name:"button",text:"button",textStyle:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"},padding:[8,10],style:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},activeStyle:{fill:"#e6e6e6"}},e}return Object(s.c)(e,t),e.prototype.getButtonCfg=function(){return Object(c.h)(this.buttonCfg,this.cfg)},e.prototype.drawButton=function(){var t=this.getButtonCfg(),e=this.context.view.foregroundGroup.addGroup({name:t.name}),n=e.addShape({type:"text",name:"button-text",attrs:Object(s.a)({text:t.text},t.textStyle)}).getBBox(),r=fn(t.padding),i=e.addShape({type:"rect",name:"button-rect",attrs:Object(s.a)({x:n.x-r[3],y:n.y-r[0],width:n.width+r[1]+r[3],height:n.height+r[0]+r[2]},t.style)});i.toBack(),e.on("mouseenter",(function(){i.attr(t.activeStyle)})),e.on("mouseleave",(function(){i.attr(t.style)})),this.buttonGroup=e},e.prototype.resetPosition=function(){var t=this.context.view.getCoordinate().convert({x:1,y:1}),e=this.buttonGroup,n=e.getBBox(),r=R.a.transform(null,[["t",t.x-n.width-10,t.y+n.height+5]]);e.setMatrix(r)},e.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},e.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},e.prototype.destroy=function(){var e=this.buttonGroup;e&&e.remove(),t.prototype.destroy.call(this)},e}(At),Ba=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.dragStart=!1,e}return Object(s.c)(e,t),e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint()},e.prototype.drag=function(){if(this.startPoint){var t=this.context.getCurrentPoint(),e=this.context.view,n=this.context.event;this.dragStart?e.emit("drag",{target:n.target,x:n.x,y:n.y}):je(t,this.startPoint)>4&&(e.emit("dragstart",{target:n.target,x:n.x,y:n.y}),this.dragStart=!0)}},e.prototype.end=function(){if(this.dragStart){var t=this.context.view,e=this.context.event;t.emit("dragend",{target:e.target,x:e.x,y:e.y})}this.starting=!1,this.dragStart=!1},e}(At),La=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.isMoving=!1,e.startPoint=null,e.startMatrix=null,e}return Object(s.c)(e,t),e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint(),this.startMatrix=this.context.view.middleGroup.getMatrix()},e.prototype.move=function(){if(this.starting){var t=this.startPoint,e=this.context.getCurrentPoint();if(je(t,e)>5&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var n=this.context.view,r=R.a.transform(this.startMatrix,[["t",e.x-t.x,e.y-t.y]]);n.backgroundGroup.setMatrix(r),n.foregroundGroup.setMatrix(r),n.middleGroup.setMatrix(r)}}},e.prototype.end=function(){this.isMoving&&(this.isMoving=!1),this.startMatrix=null,this.starting=!1,this.startPoint=null},e.prototype.reset=function(){this.starting=!1,this.startPoint=null,this.isMoving=!1;var t=this.context.view;t.backgroundGroup.resetMatrix(),t.foregroundGroup.resetMatrix(),t.middleGroup.resetMatrix(),this.isMoving=!1},e}(At),Da=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=["x","y"],e.cfgFields=["dims"],e.cacheScaleDefs={},e}return Object(s.c)(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.getScale=function(t){var e=this.context.view;return"x"===t?e.getXScale():e.getYScales()[0]},e.prototype.resetDim=function(t){var e=this.context.view;if(this.hasDim(t)&&this.cacheScaleDefs[t]){var n=this.getScale(t);e.scale(n.field,this.cacheScaleDefs[t]),this.cacheScaleDefs[t]=null}},e.prototype.reset=function(){this.resetDim("x"),this.resetDim("y"),this.context.view.render(!0)},e}(At),Fa=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.starting=!1,e.startCache={},e}return Object(s.c)(e,t),e.prototype.start=function(){var t=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0;var e=this.dims;Object(c.j)(e,(function(e){var n=t.getScale(e),r=n.min,i=n.max,o=n.values;t.startCache[e]={min:r,max:i,values:o}}))},e.prototype.end=function(){this.startPoint=null,this.starting=!1,this.startCache={}},e.prototype.translate=function(){var t=this;if(this.starting){var e=this.startPoint,n=this.context.view.getCoordinate(),r=this.context.getCurrentPoint(),i=n.invert(e),o=n.invert(r),a=o.x-i.x,s=o.y-i.y,l=this.context.view,u=this.dims;Object(c.j)(u,(function(e){t.translateDim(e,{x:-1*a,y:-1*s})})),l.render(!0)}},e.prototype.translateDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.translateLinear(t,n,e)}},e.prototype.translateLinear=function(t,e,n){var r=this.context.view,i=this.startCache[t],o=i.min,a=i.max,s=a-o,c=n[t]*s;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:o,max:a}),r.scale(e.field,{nice:!1,min:o+c,max:a+c})},e.prototype.reset=function(){t.prototype.reset.call(this),this.startPoint=null,this.starting=!1},e}(Da),Ra=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.zoomRatio=.05,e}return Object(s.c)(e,t),e.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},e.prototype.zoom=function(t){var e=this,n=this.dims;Object(c.j)(n,(function(n){e.zoomDim(n,t)})),this.context.view.render(!0)},e.prototype.zoomOut=function(){this.zoom(-1*this.zoomRatio)},e.prototype.zoomDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.zoomLinear(t,n,e)}},e.prototype.zoomLinear=function(t,e,n){var r=this.context.view;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:e.min,max:e.max});var i=this.cacheScaleDefs[t],o=i.max-i.min,a=e.min,s=e.max,c=n*o,l=a-c,u=s+c,h=(u-l)/o;u>l&&h<100&&h>.01&&r.scale(e.field,{nice:!1,min:a-c,max:s+c})},e}(Da);var Na,za,Wa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.scroll=function(t){var e=this.context,n=e.view,r=e.event;if(n.getOptions().scrollbar){var i=(null==t?void 0:t.wheelDelta)||1,o=n.getController("scrollbar"),a=n.getXScale(),s=n.getOptions().data,l=Object(c.mb)(Object(c.yb)(s,a.field)),u=Object(c.mb)(a.values),h=o.getValue(),d=Math.floor((l-u)*h)+(function(t){return t.gEvent.originalEvent.deltaY>0}(r)?i:-i),f=i/(l-u)/1e4,p=Object(c.c)(d/(l-u)+f,0,1);o.setValue(p)}},e}(At),$a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.show=function(){var t=this.context,e=ae(t).axis.cfg.title,n=e.description,r=e.text,i=e.descriptionTooltipStyle,o=t.event,a=o.x,s=o.y;this.tooltip||this.renderTooltip(),this.tooltip.update({title:r||"",customContent:function(){return'\n <div class="'.concat(V.TOOLTIP_CSS_CONST.CONTAINER_CLASS,'" style={').concat(i,'}>\n <div class="').concat(V.TOOLTIP_CSS_CONST.TITLE_CLASS,'">\n 字段说明:').concat(n,"\n </div>\n </div>\n ")},x:a,y:s}),this.tooltip.show()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.hide=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=this.context.view.canvas,n={start:{x:0,y:0},end:{x:e.get("width"),y:e.get("height")}},r=new Q({parent:e.get("el").parentNode,region:n,visible:!1,containerId:"aixs-description-tooltip",domStyles:Object(s.a)({},Object(c.h)({},(t={},t[V.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={"max-width":"50%",padding:"10px","line-height":"15px","font-size":"12px",color:"rgba(0, 0, 0, .65)"},t[V.TOOLTIP_CSS_CONST.TITLE_CLASS]={"word-break":"break-all","margin-bottom":"3px"},t)))});r.init(),r.setCapture(!1),this.tooltip=r},e}(At);function Ha(t){return t.isInPlot()}function Ya(t){return t.gEvent.preventDefault(),t.gEvent.originalEvent.deltaY>0}Na="dark",za=We(Rr),en[Object(c.V)(Na)]=tn(za),m("canvas",Nr),m("svg",zr),Cn("Polygon",ai),Cn("Interval",ei),Cn("Schema",si),Cn("Path",Wr),Cn("Point",oi),Cn("Line",ni),Cn("Area",Vr),Cn("Edge",Gr),Cn("Heatmap",Kr),Cn("Violin",ci),Nn("base",or),Nn("interval",yi),Nn("pie",xi),Nn("polar",bi),zn("overlap",(function(t,e,n,r){var i=new ji;Object(c.j)(e,(function(t){for(var e=t.find((function(t){return"text"===t.get("type")})),n=e.attr(),r=n.x,o=n.y,a=!1,s=0;s<=8;s++){var c=wi(e,r,o,s);if(i.hasGap(c)){i.fillGap(c),a=!0;break}}a||t.remove(!0)})),i.destroy()})),zn("distribute",(function(t,e,n,r){if(t.length&&e.length){var i=t[0]?t[0].offset:0,o=e[0].get("coordinate"),a=o.getRadius(),l=o.getCenter();if(i>0){var u=2*(a+i)+28,h={start:o.start,end:o.end},d=[[],[]];t.forEach((function(t){t&&("right"===t.textAlign?d[0].push(t):d[1].push(t))})),d.forEach((function(t,n){var r=u/14;t.length>r&&(t.sort((function(t,e){return e["..percent"]-t["..percent"]})),t.splice(r,t.length-r)),t.sort((function(t,e){return t.y-e.y})),function(t,e,n,r,i,o){var a,l,u,h=!0,d=r.start,f=r.end,p=Math.min(d.y,f.y),g=Math.abs(d.y-f.y),v=0,y=Number.MIN_VALUE,m=e.map((function(t){return t.y>v&&(v=t.y),t.y<y&&(y=t.y),{size:n,targets:[t.y-p]}}));for(y-=p,v-p>g&&(g=v-p);h;)for(m.forEach((function(t){var e=(Math.min.apply(y,t.targets)+Math.max.apply(y,t.targets))/2;t.pos=Math.min(Math.max(y,e-t.size/2),g-t.size)})),h=!1,u=m.length;u--;)if(u>0){var b=m[u-1],x=m[u];b.pos+b.size>x.pos&&(b.size+=x.size,b.targets=b.targets.concat(x.targets),b.pos+b.size>g&&(b.pos=g-b.size),m.splice(u,1),h=!0)}u=0,m.forEach((function(t){var r=p+n/2;t.targets.forEach((function(){e[u].y=t.pos+r,r+=n,u++}))}));var O={};try{for(var j=Object(s.i)(t),w=j.next();!w.done;w=j.next()){var C=w.value;O[C.get("id")]=C}}catch(t){a={error:t}}finally{try{w&&!w.done&&(l=j.return)&&l.call(j)}finally{if(a)throw a.error}}e.forEach((function(t){var e=t.r*t.r,n=Math.pow(Math.abs(t.y-i.y),2);if(e<n)t.x=i.x;else{var r=Math.sqrt(e-n);t.x=o?i.x+r:i.x-r}var a=O[t.id];a.attr("x",t.x),a.attr("y",t.y);var s=Object(c.m)(a.getChildren(),(function(t){return"text"===t.get("type")}));s&&(s.attr("y",t.y),s.attr("x",t.x))}))}(e,t,14,h,l,n)}))}Object(c.j)(t,(function(t){if(t&&t.labelLine){var e=t.offset,n=t.angle,r=et(l.x,l.y,a,n),i=et(l.x,l.y,a+e/2,n),o=t.x+Object(c.s)(t,"offsetX",0),s=t.y+Object(c.s)(t,"offsetY",0),u={x:o-4*Math.cos(n),y:s-4*Math.sin(n)};Object(c.O)(t.labelLine)||(t.labelLine={}),t.labelLine.path=["M ".concat(r.x),"".concat(r.y," Q").concat(i.x),"".concat(i.y," ").concat(u.x),u.y].join(",")}}))}})),zn("fixed-overlap",(function(t,e,n,r){var i=new ji;Object(c.j)(e,(function(t){(function(t,e,n){void 0===n&&(n=100);var r,i=t.attr(),o=i.x,a=i.y,s=t.getCanvasBBox(),c=Math.sqrt(s.width*s.width+s.height*s.height),l=1,u=0,h=0;if(e.hasGap(s))return e.fillGap(s),!0;for(var d,f,p=!1,g=0,v={};Math.min(Math.abs(u),Math.abs(h))<c&&g<n;)if(d=l+=-1,f=void 0,h=~~(r=[(f=.1*d)*Math.cos(f),f*Math.sin(f)])[1],((u=~~r[0])||h)&&!v["".concat(u,"-").concat(h)]&&(t.attr({x:o+u,y:a+h}),u+h<0&&t.attr("textAlign","right"),g++,e.hasGap(t.getCanvasBBox()))){e.fillGap(t.getCanvasBBox()),p=!0,v["".concat(u,"-").concat(h)]=!0;break}return p})(t.find((function(t){return"text"===t.get("type")})),i)||t.remove(!0)})),i.destroy()})),zn("hide-overlap",(function(t,e,n,r){return Object(s.b)(this,void 0,void 0,(function(){var n,r,i,o,a,l;return Object(s.d)(this,(function(u){switch(u.label){case 0:return n=e.map((function(e,n){return Object(s.a)(Object(s.a)({},er(e,t[n],Object(c.s)(t[n],"background.padding"))),{visible:!0})})),r=JSON.stringify(n),i=function(t){return Bi.set(r,t),Object(c.j)(t,(function(t,n){var r=t.visible,i=e[n];r?null==i||i.show():null==i||i.hide()})),t},Bi.get(r)?(i(Bi.get(r)),[3,7]):[3,1];case 1:if(!Li)return[3,6];u.label=2;case 2:return u.trys.push([2,4,,5]),o=JSON.stringify({type:"hide-overlap",items:n}),[4,Li.post(o,(function(){return i(Ti(n))}))];case 3:return a=u.sent(),i(Array.isArray(a.data)?a.data:[]),[3,5];case 4:return l=u.sent(),console.error(l),i(Ti(n)),[3,5];case 5:return[3,7];case 6:i(Ti(n)),u.label=7;case 7:return[2]}}))}))})),zn("limit-in-shape",(function(t,e,n,r){Object(c.j)(e,(function(t,e){var r=t.getCanvasBBox(),i=n[e].getBBox();(r.minX<i.minX||r.minY<i.minY||r.maxX>i.maxX||r.maxY>i.maxY)&&t.remove(!0)}))})),zn("limit-in-canvas",(function(t,e,n,r){Object(c.j)(e,(function(t){var e=r.minX,n=r.minY,i=r.maxX,o=r.maxY,a=t.getCanvasBBox(),s=a.minX,c=a.minY,l=a.maxX,u=a.maxY,h=a.x,d=a.y,f=a.width,p=a.height,g=h,v=d;(s<e||l<e)&&(g=e),(c<n||u<n)&&(v=n),s>i?g=i-f:l>i&&(g-=l-i),c>o?v=o-p:u>o&&(v-=u-o),g===h&&v===d||Qn(t,g-h,v-d)}))})),zn("limit-in-plot",(function(t,e,n,r,i){if(!(e.length<=0)){var o=(null==i?void 0:i.direction)||["top","right","bottom","left"],a=(null==i?void 0:i.action)||"translate",s=(null==i?void 0:i.margin)||0,l=e[0].get("coordinate");if(l){var u=function(t,e){void 0===e&&(e=0);var n=t.start,r=t.end,i=t.getWidth(),o=t.getHeight(),a=Math.min(n.x,r.x),s=Math.min(n.y,r.y);return lt.fromRange(a-e,s-e,a+i+e,s+o+e)}(l,s),h=u.minX,d=u.minY,f=u.maxX,p=u.maxY;Object(c.j)(e,(function(t){var e=t.getCanvasBBox(),n=e.minX,r=e.minY,i=e.maxX,s=e.maxY,l=e.x,u=e.y,g=e.width,v=e.height,y=l,m=u;if(o.indexOf("left")>=0&&(n<h||i<h)&&(y=h),o.indexOf("top")>=0&&(r<d||s<d)&&(m=d),o.indexOf("right")>=0&&(n>f?y=f-g:i>f&&(y-=i-f)),o.indexOf("bottom")>=0&&(r>p?m=p-v:s>p&&(m-=s-p)),y!==l||m!==u){var b=y-l;if("translate"===a)Qn(t,b,m-u);else if("ellipsis"===a){t.findAll((function(t){return"text"===t.get("type")})).forEach((function(t){var e=Object(c.hb)(t.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),n=t.getCanvasBBox(),r=function(t,e,n){var r,i=Hi("...",n);r=Object(c.Q)(t)?t:Object(c.tb)(t);var o,a,s=e,l=[];if(Hi(t,n)<=e)return t;for(;o=r.substr(0,16),!((a=Hi(o,n))+i>s&&a>s);)if(l.push(o),s-=a,!(r=r.substr(16)))return l.join("");for(;o=r.substr(0,1),!((a=Hi(o,n))+i>s);)if(l.push(o),s-=a,!(r=r.substr(1)))return l.join("");return"".concat(l.join(""),"...")}(t.attr("text"),n.width-Math.abs(b),e);t.attr("text",r)}))}else t.hide()}}))}}})),zn("pie-outer",(function(t,e,n,r){var i,o,a=Object(c.l)(t,(function(t){return!Object(c.K)(t)})),l=e[0]&&e[0].get("coordinate");if(l){var u=l.getCenter(),h=l.getRadius(),d={};try{for(var f=Object(s.i)(e),p=f.next();!p.done;p=f.next()){var g=p.value;d[g.get("id")]=g}}catch(t){i={error:t}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}var v=Object(c.s)(a[0],"labelHeight",14),y=Object(c.s)(a[0],"offset",0);if(!(y<=0)){var m=Object(c.w)(a,(function(t){return t.x<u.x?"left":"right"})),b=l.start,x=l.end,O=Math.min(2*(h+y+v),l.getHeight()),j=O/2,w={minX:b.x,maxX:x.x,minY:u.y-j,maxY:u.y+j};Object(c.j)(m,(function(t,e){var n=Math.floor(O/v);t.length>n&&(t.sort((function(t,e){return e.percent-t.percent})),Object(c.j)(t,(function(t,e){e+1>n&&(d[t.id].set("visible",!1),t.invisible=!0)}))),Oi(t,v,w)})),Object(c.j)(m,(function(t,e){Object(c.j)(t,(function(t){var n="right"===e,r=d[t.id].getChildByIndex(0);if(r){var i=h+y,o=t.y-u.y,a=Math.pow(i,2),s=Math.pow(o,2),f=a-s>0?a-s:0,p=Math.sqrt(f),g=Math.abs(Math.cos(t.angle)*i);t.x=n?u.x+Math.max(p,g):u.x-Math.max(p,g)}r&&(r.attr("y",t.y),r.attr("x",t.x)),function(t,e){var n=e.getCenter(),r=e.getRadius();if(t&&t.labelLine){var i=t.angle,o=t.offset,a=et(n.x,n.y,r,i),s=t.x+Object(c.s)(t,"offsetX",0)*(Math.cos(i)>0?1:-1),l=t.y+Object(c.s)(t,"offsetY",0)*(Math.sin(i)>0?1:-1),u={x:s-4*Math.cos(i),y:l-4*Math.sin(i)},h=t.labelLine.smooth,d=[],f=u.x-n.x,p=u.y-n.y,g=Math.atan(p/f);if(f<0&&(g+=Math.PI),!1===h){Object(c.O)(t.labelLine)||(t.labelLine={});var v=0;(i<0&&i>-Math.PI/2||i>1.5*Math.PI)&&u.y>a.y&&(v=1),i>=0&&i<Math.PI/2&&u.y>a.y&&(v=1),i>=Math.PI/2&&i<Math.PI&&a.y>u.y&&(v=1),(i<-Math.PI/2||i>=Math.PI&&i<1.5*Math.PI)&&a.y>u.y&&(v=1);var y=o/2>4?4:Math.max(o/2-1,0),m=et(n.x,n.y,r+y,i),b=et(n.x,n.y,r+o/2,g);d.push("M ".concat(a.x," ").concat(a.y)),d.push("L ".concat(m.x," ").concat(m.y)),d.push("A ".concat(n.x," ").concat(n.y," 0 ").concat(0," ").concat(v," ").concat(b.x," ").concat(b.y)),d.push("L ".concat(u.x," ").concat(u.y))}else{m=et(n.x,n.y,r+(o/2>4?4:Math.max(o/2-1,0)),i);var x=a.x<n.x?1:-1;d.push("M ".concat(u.x," ").concat(u.y));var O=(a.y-n.y)/(a.x-n.x),j=(u.y-n.y)/(u.x-n.x);Math.abs(O-j)>Math.pow(Math.E,-16)&&d.push.apply(d,["C",u.x+4*x,u.y,2*m.x-a.x,2*m.y-a.y,a.x,a.y]),d.push("L ".concat(a.x," ").concat(a.y))}t.labelLine.path=d.join(" ")}}(t,l)}))}))}}})),zn("adjust-color",(function(t,e,n){if(0!==n.length){var r=n[0].get("element").geometry.theme,i=r.labels||{},o=i.fillColorLight,a=i.fillColorDark;n.forEach((function(t,n){var i=e[n].find((function(t){return"text"===t.get("type")})),c=lt.fromObject(t.getBBox()),l=lt.fromObject(i.getCanvasBBox()),u=!c.contains(l),h=function(t){var e=E.a.toRGB(t).toUpperCase();if(Fi[e])return Fi[e];var n=Object(s.e)(E.a.rgb2arr(e),3);return(299*n[0]+587*n[1]+114*n[2])/1e3<128}(t.attr("fill"));u?i.attr(r.overflowLabels.style):h?o&&i.attr("fill",o):a&&i.attr("fill",a)}))}})),zn("interval-adjust-position",(function(t,e,n){var r;if(0!==n.length){var i=null===(r=n[0])||void 0===r?void 0:r.get("element"),o=null==i?void 0:i.geometry;if(o&&"interval"===o.type)Ri(o,e,n)&&n.forEach((function(t,n){var r=e[n];!function(t,e,n){var r=t.coordinate,i=lt.fromObject(n.getBBox()),o=tr(e);r.isTransposed?o.attr({x:i.minX+i.width/2,textAlign:"center"}):o.attr({y:i.minY+i.height/2,textBaseline:"middle"})}(o,r,t)}))}})),zn("interval-hide-overlap",(function(t,e,n){var r;if(0!==n.length){var i=null===(r=n[0])||void 0===r?void 0:r.get("element"),o=null==i?void 0:i.geometry;if(o&&"interval"===o.type){var a,l=function(t){var e=[],n=Math.max(Math.floor(t.length/500),1);return Object(c.j)(t,(function(t,r){r%n==0?e.push(t):t.set("visible",!1)})),e}(e),u=Object(s.e)(o.getXYFields(),1)[0],h=[],d=[],f=Object(c.w)(l,(function(t){return t.get("data")[u]})),p=Object(c.ub)(Object(c.W)(l,(function(t){return t.get("data")[u]})));l.forEach((function(t){t.set("visible",!0)}));var g=function(t){t&&(t.length&&d.push(t.pop()),d.push.apply(d,Object(s.g)([],Object(s.e)(t),!1)))};for(Object(c.mb)(p)>0&&(a=p.shift(),g(f[a])),Object(c.mb)(p)>0&&(a=p.pop(),g(f[a])),Object(c.j)(p.reverse(),(function(t){g(f[t])}));d.length>0;){var v=d.shift();v.get("visible")&&(nr(v,h)?v.set("visible",!1):h.push(v))}}}})),zn("point-adjust-position",(function(t,e,n,r,i){var o,a;if(0!==n.length){var l=null===(o=n[0])||void 0===o?void 0:o.get("element"),u=null==l?void 0:l.geometry;if(u&&"point"===u.type){var h=Object(s.e)(u.getXYFields(),2),d=h[0],f=h[1],p=Object(c.w)(e,(function(t){return t.get("data")[d]})),g=[],v=i&&i.offset||(null===(a=t[0])||void 0===a?void 0:a.offset)||12;Object(c.W)(Object(c.T)(p).reverse(),(function(t){for(var e=function(t,e){var n=t.getXYFields()[1],r=[],i=e.sort((function(t,e){return t.get("data")[n]-t.get("data")[n]}));return i.length>0&&r.push(i.shift()),i.length>0&&r.push(i.pop()),r.push.apply(r,Object(s.g)([],Object(s.e)(i),!1)),r}(u,p[t]);e.length;){var n=e.shift(),r=tr(n);if(Ni(g,n,(function(t,e){return t.get("data")[d]===e.get("data")[d]&&t.get("data")[f]===e.get("data")[f]})))r.set("visible",!1);else{var i=!1;zi(g,n)&&(r.attr("y",r.attr("y")+2*v),i=zi(g,n)),i?r.set("visible",!1):g.push(n)}}}))}}})),zn("pie-spider",(function(t,e,n,r){var i,o,a=e[0]&&e[0].get("coordinate");if(a){var l=a.getCenter(),u=a.getRadius(),h={};try{for(var d=Object(s.i)(e),f=d.next();!f.done;f=d.next()){var p=f.value;h[p.get("id")]=p}}catch(t){i={error:t}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}var g=Object(c.s)(t[0],"labelHeight",14),v=Math.max(Object(c.s)(t[0],"offset",0),4);Object(c.j)(t,(function(t){if(t&&Object(c.s)(h,[t.id])){var e=t.x>l.x||t.x===l.x&&t.y>l.y,n=Object(c.K)(t.offsetX)?4:t.offsetX,r=et(l.x,l.y,u+4,t.angle),i=v+n;t.x=l.x+(e?1:-1)*(u+i),t.y=r.y}}));var y=a.start,m=a.end,b=Object(c.w)(t,(function(t){return t.x<l.x?"left":"right"})),x=2*(u+v)+g;Object(c.j)(b,(function(t){var e=t.length*g;e>x&&(x=Math.min(e,Math.abs(y.y-m.y)))}));var O={minX:y.x,maxX:m.x,minY:l.y-x/2,maxY:l.y+x/2};Object(c.j)(b,(function(t,e){var n=x/g;t.length>n&&(t.sort((function(t,e){return e.percent-t.percent})),Object(c.j)(t,(function(t,e){e>n&&(h[t.id].set("visible",!1),t.invisible=!0)}))),Oi(t,g,O)}));var j=O.minY,w=O.maxY;Object(c.j)(b,(function(t,e){var n="right"===e;Object(c.j)(t,(function(t){var e=Object(c.s)(h,t&&[t.id]);if(e)if(t.y<j||t.y>w)e.set("visible",!1);else{var r=e.getChildByIndex(0),i=r.getCanvasBBox(),o=n?i.x:i.maxX,s=i.y+i.height/2;Qn(r,t.x-o,t.y-s),t.labelLine&&function(t,e,n){var r,i=e.getCenter(),o=e.getRadius(),a={x:t.x-(n?4:-4),y:t.y},s=et(i.x,i.y,o+4,t.angle),l={x:a.x,y:a.y},u={x:s.x,y:s.y},h=et(i.x,i.y,o,t.angle);if(a.y!==s.y){var d=n?4:-4;l.y=a.y,t.angle<0&&t.angle>=-Math.PI/2&&(l.x=Math.max(s.x,a.x-d),a.y<s.y?u.y=l.y:(u.y=s.y,u.x=Math.max(u.x,l.x-d))),t.angle>0&&t.angle<Math.PI/2&&(l.x=Math.max(s.x,a.x-d),a.y>s.y?u.y=l.y:(u.y=s.y,u.x=Math.max(u.x,l.x-d))),t.angle>Math.PI/2&&(l.x=Math.min(s.x,a.x-d),a.y>s.y?u.y=l.y:(u.y=s.y,u.x=Math.min(u.x,l.x-d))),t.angle<-Math.PI/2&&(l.x=Math.min(s.x,a.x-d),a.y<s.y?u.y=l.y:(u.y=s.y,u.x=Math.min(u.x,l.x-d)))}r=["M ".concat(a.x,",").concat(a.y),"L ".concat(l.x,",").concat(l.y),"L ".concat(u.x,",").concat(u.y),"L ".concat(s.x,",").concat(s.y),"L ".concat(h.x,",").concat(h.y)].join(" "),t.labelLine=Object(c.h)({},t.labelLine,{path:r})}(t,a,n)}}))}))}})),zn("path-adjust-position",(function(t,e,n,r,i){var o,a;if(0!==n.length){var l=null===(o=n[0])||void 0===o?void 0:o.get("element"),u=null==l?void 0:l.geometry;if(u&&!(["path","line","area"].indexOf(u.type)<0)){var h=Object(s.e)(u.getXYFields(),2),d=h[0],f=h[1],p=Object(c.w)(e,(function(t){return t.get("data")[d]})),g=[],v=i&&i.offset||(null===(a=t[0])||void 0===a?void 0:a.offset)||12;Object(c.W)(Object(c.T)(p).reverse(),(function(t){for(var e=function(t,e){var n=t.getXYFields()[1],r=[],i=e.sort((function(t,e){return t.get("data")[n]-t.get("data")[n]}));return i.length>0&&r.push(i.shift()),i.length>0&&r.push(i.pop()),r.push.apply(r,Object(s.g)([],Object(s.e)(i),!1)),r}(u,p[t]);e.length;){var n=e.shift(),r=tr(n);if(Wi(g,n,(function(t,e){return t.get("data")[d]===e.get("data")[d]&&t.get("data")[f]===e.get("data")[f]})))r.set("visible",!1);else{var i=!1;$i(g,n)&&(r.attr("y",r.attr("y")+2*v),i=$i(g,n)),i?r.set("visible",!1):g.push(n)}}}))}}})),In("fade-in",(function(t,e,n){var r={fillOpacity:Object(c.K)(t.attr("fillOpacity"))?1:t.attr("fillOpacity"),strokeOpacity:Object(c.K)(t.attr("strokeOpacity"))?1:t.attr("strokeOpacity"),opacity:Object(c.K)(t.attr("opacity"))?1:t.attr("opacity")};t.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),t.animate(r,e)})),In("fade-out",(function(t,e,n){var r=e.easing,i=e.duration,o=e.delay;t.animate({fillOpacity:0,strokeOpacity:0,opacity:0},i,r,(function(){t.remove(!0)}),o)})),In("grow-in-x",(function(t,e,n){Yi(t,e,n.coordinate,n.minYPoint,"x")})),In("grow-in-xy",(function(t,e,n){Yi(t,e,n.coordinate,n.minYPoint,"xy")})),In("grow-in-y",(function(t,e,n){Yi(t,e,n.coordinate,n.minYPoint,"y")})),In("scale-in-x",(function(t,e,n){var r=t.getBBox(),i=t.get("origin").mappingData.points,o=i[0].y-i[1].y>0?r.maxX:r.minX,a=(r.minY+r.maxY)/2;t.applyToMatrix([o,a,1]);var s=R.a.transform(t.getMatrix(),[["t",-o,-a],["s",.01,1],["t",o,a]]);t.setMatrix(s),t.animate({matrix:R.a.transform(t.getMatrix(),[["t",-o,-a],["s",100,1],["t",o,a]])},e)})),In("scale-in-y",(function(t,e,n){var r=t.getBBox(),i=t.get("origin").mappingData,o=(r.minX+r.maxX)/2,a=i.points,s=a[0].y-a[1].y<=0?r.maxY:r.minY;t.applyToMatrix([o,s,1]);var c=R.a.transform(t.getMatrix(),[["t",-o,-s],["s",1,.01],["t",o,s]]);t.setMatrix(c),t.animate({matrix:R.a.transform(t.getMatrix(),[["t",-o,-s],["s",1,100],["t",o,s]])},e)})),In("wave-in",(function(t,e,n){var r=ft(n.coordinate,20),i=r.type,o=r.startState,a=r.endState,l=t.setClip({type:i,attrs:o});n.toAttrs&&t.attr(n.toAttrs),l.animate(a,Object(s.a)(Object(s.a)({},e),{callback:function(){t&&!t.get("destroyed")&&t.set("clipShape",null),l.remove(!0),Object(c.I)(e.callback)&&e.callback()}}))})),In("zoom-in",(function(t,e,n){Xi(t,e,"zoomIn")})),In("zoom-out",(function(t,e,n){Xi(t,e,"zoomOut")})),In("position-update",(function(t,e,n){var r=n.toAttrs,i=r.x,o=r.y;delete r.x,delete r.y,t.attr(r),t.animate({x:i,y:o},e)})),In("sector-path-update",(function(t,e,n){var r=n.toAttrs,i=n.coordinate,o=r.path||[],a=o.map((function(t){return t[0]}));if(!(o.length<1)){var l=Ki(o),u=l.startAngle,h=l.endAngle,d=l.radius,f=l.innerRadius,p=Ki(t.attr("path")),g=p.startAngle,v=p.endAngle,y=i.getCenter(),m=u-g,b=h-v;0!==m||0!==b?t.animate((function(t){var e=g+t*m,n=v+t*b;return Object(s.a)(Object(s.a)({},r),{path:Object(c.H)(a,["M","A","A","Z"])?rt(y.x,y.y,d,e,n):nt(y.x,y.y,d,e,n,f)})}),Object(s.a)(Object(s.a)({},e),{callback:function(){t.attr("path",o),Object(c.I)(e.callback)&&e.callback()}})):t.attr(r)}})),In("path-in",(function(t,e,n){var r=t.getTotalLength();t.attr("lineDash",[r]),t.animate((function(t){return{lineDashOffset:(1-t)*r}}),e)})),It("rect",eo),It("mirror",to),It("list",Qi),It("matrix",Ji),It("circle",Zi),It("tree",no),gn("axis",po),gn("legend",mo),gn("tooltip",Sn),gn("annotation",ao),gn("slider",bo),gn("scrollbar",xo),Lt("tooltip",Co),Lt("sibling-tooltip",_o),Lt("ellipsis-text",Mo),Lt("element-active",Io),Lt("element-single-active",Lo),Lt("element-range-active",To),Lt("element-highlight",Wo),Lt("element-highlight-by-x",Ho),Lt("element-highlight-by-color",$o),Lt("element-single-highlight",Vo),Lt("element-range-highlight",Yo),Lt("element-sibling-highlight",Yo,{effectSiblings:!0,effectByRecord:!0}),Lt("element-selected",Ko),Lt("element-single-selected",Xo),Lt("element-range-selected",Go),Lt("element-link-by-color",Ao),Lt("active-region",wo),Lt("list-active",qo),Lt("list-selected",Qo),Lt("list-highlight",Zo),Lt("list-unchecked",Jo),Lt("list-checked",ta),Lt("list-focus",ea),Lt("list-radio",ra),Lt("legend-item-highlight",Zo,{componentNames:["legend"]}),Lt("axis-label-highlight",Zo,{componentNames:["axis"]}),Lt("axis-description",$a),Lt("rect-mask",la),Lt("x-rect-mask",da,{dim:"x"}),Lt("y-rect-mask",da,{dim:"y"}),Lt("circle-mask",aa),Lt("path-mask",ga),Lt("smooth-path-mask",ba),Lt("rect-multi-mask",Oa),Lt("x-rect-multi-mask",ja,{dim:"x"}),Lt("y-rect-multi-mask",ja,{dim:"y"}),Lt("circle-multi-mask",wa),Lt("path-multi-mask",Ca),Lt("smooth-path-multi-mask",_a),Lt("cursor",Ma),Lt("data-filter",Sa),Lt("brush",ka),Lt("brush-x",ka,{dims:["x"]}),Lt("brush-y",ka,{dims:["y"]}),Lt("sibling-filter",Ia),Lt("sibling-x-filter",Ia,{dims:"x"}),Lt("sibling-y-filter",Ia,{dims:"y"}),Lt("element-filter",Aa),Lt("element-sibling-filter",Pa),Lt("element-sibling-filter-record",Pa,{byRecord:!0}),Lt("view-drag",Ba),Lt("view-move",La),Lt("scale-translate",Fa),Lt("scale-zoom",Ra),Lt("reset-button",Ta,{name:"reset-button",text:"reset"}),Lt("mousewheel-scroll",Wa),Ne("tooltip",{start:[{trigger:"plot:mousemove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseleave",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]}),Ne("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseout",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),Ne("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),Ne("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),Ne("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),Ne("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),Ne("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),Ne("legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","element-active:reset"]}]}),Ne("legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","element-highlight:reset"]}]}),Ne("axis-label-highlight",{start:[{trigger:"axis-label:mouseenter",action:["axis-label-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"axis-label:mouseleave",action:["axis-label-highlight:reset","element-highlight:reset"]}]}),Ne("element-list-highlight",{start:[{trigger:"element:mouseenter",action:["list-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"element:mouseleave",action:["list-highlight:reset","element-highlight:reset"]}]}),Ne("element-range-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(t){return!t.isInShape("mask")},action:["rect-mask:start","rect-mask:show"]},{trigger:"mask:dragstart",action:["rect-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:drag",action:["rect-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end"]},{trigger:"mask:dragend",action:["rect-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear","rect-mask:end","rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","rect-mask:hide"]}]}),Ne("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Ha,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:Ha,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:Ha,action:["brush:filter","brush:end","rect-mask:end","rect-mask:hide","reset-button:show"]}],rollback:[{trigger:"reset-button:click",action:["brush:reset","reset-button:hide","cursor:crosshair"]}]}),Ne("brush-visible",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"plot:mousedown",action:["rect-mask:start","rect-mask:show"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end","rect-mask:hide","element-filter:filter","element-range-highlight:clear"]}],rollback:[{trigger:"dblclick",action:["element-filter:clear"]}]}),Ne("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Ha,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:Ha,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:Ha,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),Ne("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Ha,action:"path-mask:start"},{trigger:"mousedown",isEnable:Ha,action:"path-mask:show"}],processing:[{trigger:"mousemove",action:"path-mask:addPoint"}],end:[{trigger:"mouseup",action:"path-mask:end"}],rollback:[{trigger:"dblclick",action:"path-mask:hide"}]}),Ne("brush-x-multi",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"mousedown",isEnable:Ha,action:["x-rect-multi-mask:start","x-rect-multi-mask:show"]},{trigger:"mask:dragstart",action:["x-rect-multi-mask:moveStart"]}],processing:[{trigger:"mousemove",isEnable:function(t){return!he(t)},action:["x-rect-multi-mask:resize"]},{trigger:"multi-mask:change",action:"element-range-highlight:highlight"},{trigger:"mask:drag",action:["x-rect-multi-mask:move"]}],end:[{trigger:"mouseup",action:["x-rect-multi-mask:end"]},{trigger:"mask:dragend",action:["x-rect-multi-mask:moveEnd"]}],rollback:[{trigger:"dblclick",action:["x-rect-multi-mask:clear","cursor:crosshair"]},{trigger:"multi-mask:clearAll",action:["element-range-highlight:clear"]},{trigger:"multi-mask:clearSingle",action:["element-range-highlight:highlight"]}]}),Ne("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),Ne("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:["cursor:pointer","list-radio:show"]},{trigger:"legend-item:mouseleave",action:["cursor:default","list-radio:hide"]}],start:[{trigger:"legend-item:click",isEnable:function(t){return!t.isInShape("legend-item-radio")},action:["legend-item-highlight:reset","element-highlight:reset","list-unchecked:toggle","data-filter:filter","list-radio:show"]},{trigger:"legend-item-radio:mouseenter",action:["list-radio:showTip"]},{trigger:"legend-item-radio:mouseleave",action:["list-radio:hideTip"]},{trigger:"legend-item-radio:click",action:["list-focus:toggle","data-filter:filter","list-radio:show"]}]}),Ne("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),Ne("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),Ne("legend-visible-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["legend-item-highlight:reset","element-highlight:reset","list-unchecked:toggle","element-filter:filter"]}]}),Ne("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),Ne("axis-description",{start:[{trigger:"axis-description:mousemove",action:"axis-description:show"}],end:[{trigger:"axis-description:mouseleave",action:"axis-description:hide"}]}),Ne("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(t){return Ya(t.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(t){return!Ya(t.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),Ne("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),Ne("plot-mousewheel-scroll",{start:[{trigger:"plot:mousewheel",action:"mousewheel-scroll:scroll"}]});var Va,Ga=["type","alias","tickCount","tickInterval","min","max","nice","minLimit","maxLimit","range","tickMethod","base","exponent","mask","sync"];!function(t){t.ERROR="error",t.WARN="warn",t.INFO="log"}(Va||(Va={}));var Ka="AntV/G2Plot";function Xa(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=0;return"".concat(Ka,": ").concat(t.replace(/%s/g,(function(){return"".concat(e[r++])})))}function Ua(t,e,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];e||console[t](Xa.apply(void 0,Object(s.g)([n],r,!1)))}function qa(t,e){var n={};return null!==t&&"object"==typeof t&&e.forEach((function(e){var r=t[e];void 0!==r&&(n[e]=r)})),n}function Za(t,e){if(!t)return{};var n=t.filter((function(t){var n=Object(c.s)(t,[e]);return Object(c.M)(n)&&!isNaN(n)})),r=n.every((function(t){return Object(c.s)(t,[e])>=0})),i=n.every((function(t){return Object(c.s)(t,[e])<=0}));return r?{min:0}:i?{max:0}:{}}function Qa(t,e,n,r,i){if(void 0===i&&(i=[]),!Array.isArray(t))return{nodes:[],links:[]};var o=[],a={},c=-1;return t.forEach((function(t){var l=t[e],u=t[n],h=t[r],d=qa(t,i);a[l]||(a[l]=Object(s.a)({id:++c,name:l},d)),a[u]||(a[u]=Object(s.a)({id:++c,name:u},d)),o.push(Object(s.a)({source:a[l].id,target:a[u].id,value:h},d))})),{nodes:Object.values(a).sort((function(t,e){return t.id-e.id})),links:o}}function Ja(t,e){var n=Object(c.l)(t,(function(t){var n=t[e];return null===n||"number"==typeof n&&!isNaN(n)}));return Ua(Va.WARN,n.length===t.length,"illegal data existed in chart data."),n}var ts,es={}.toString,ns=function(t,e){return es.call(t)==="[object "+e+"]"},rs=function(t){return ns(t,"Array")},is=function(t){if(!function(t){return"object"==typeof t&&null!==t}(t)||!ns(t,"Object"))return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},os=function(t,e,n,r){for(var i in n=n||0,r=r||5,e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=e[i];o?is(o)?(is(t[i])||(t[i]={}),n<r?os(t[i],o,n+1,r):t[i]=e[i]):rs(o)?(t[i]=[],t[i]=t[i].concat(o)):t[i]=o:t[i]=o}},as=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)os(t,e[r]);return t};function ss(t){if(!t)return{width:0,height:0};var e=getComputedStyle(t);return{width:(t.clientWidth||parseInt(e.width,10))-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10),height:(t.clientHeight||parseInt(e.height,10))-parseInt(e.paddingTop,10)-parseInt(e.paddingBottom,10)}}function cs(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return t.reduce((function(t,e){return e(t)}),e)}}function ls(t,e){return t.geometries.find((function(t){return t.type===e}))}function us(t){return Object(c.ib)(t.geometries,(function(t,e){return t.concat(e.elements)}),[])}function hs(t){return Object(c.s)(t,["views","length"],0)<=0?us(t):Object(c.ib)(t.views,(function(t,e){return t.concat(hs(e))}),us(t))}function ds(t){return t?t.match(/(([A-Z]{0,1}[a-z]*[^A-Z])|([A-Z]{1}))/g).map((function(t){return t.toLowerCase()})).join("-"):t}function fs(t){if(!Object(c.R)(t,"Object"))return t;var e=Object(s.a)({},t);return e.formatter&&!e.content&&(e.content=e.formatter),e}Object(c.ab)((function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,i=void 0===r?"sans-serif":r,o=e.fontWeight,a=e.fontStyle,s=e.fontVariant,l=(ts||(ts=document.createElement("canvas").getContext("2d")),ts);return l.font=[a,o,s,"".concat(n,"px"),i].join(" "),l.measureText(Object(c.Q)(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),Object(s.g)([t],Object(c.xb)(e),!0).join("")}));function ps(t){return"number"==typeof t&&!isNaN(t)}function gs(t){if(Object(c.M)(t))return[t,t,t,t];if(Object(c.C)(t)){var e=t.length;if(1===e)return[t[0],t[0],t[0],t[0]];if(2===e)return[t[0],t[1],t[0],t[1]];if(3===e)return[t[0],t[1],t[2],t[1]];if(4===e)return t}return[0,0,0,0]}function vs(t,e,n){void 0===e&&(e="bottom"),void 0===n&&(n=25);var r=gs(t),i=[e.startsWith("top")?n:0,e.startsWith("right")?n:0,e.startsWith("bottom")?n:0,e.startsWith("left")?n:0];return[r[0]+i[0],r[1]+i[1],r[2]+i[2],r[3]+i[3]]}function ys(t){var e=t.map((function(t){return gs(t)})),n=[0,0,0,0];return e.length>0&&(n=n.map((function(t,n){return e.forEach((function(r,i){t+=e[i][n]})),t}))),n}function ms(t,e,n){for(var r=!!e,i=[],o=0,a=t.length;o<a;o+=2)i.push([t[o],t[o+1]]);var s,c,l,u=function(t,e,n,r){var i,o,a,s,c=[],l=!!r;if(l){a=[1/0,1/0],s=[-1/0,-1/0];for(var u=0,h=t.length;u<h;u++){var d=t[u];a=R.c.min([0,0],a,d),s=R.c.max([0,0],s,d)}a=R.c.min([0,0],a,r[0]),s=R.c.max([0,0],s,r[1])}u=0;for(var f=t.length;u<f;u++){d=t[u];if(n)i=t[u?u-1:f-1],o=t[(u+1)%f];else{if(0===u||u===f-1){c.push(d);continue}i=t[u-1],o=t[u+1]}var p=[0,0];p=R.c.sub(p,o,i),p=R.c.scale(p,p,e);var g=R.c.distance(d,i),v=R.c.distance(d,o),y=g+v;0!==y&&(g/=y,v/=y);var m=R.c.scale([0,0],p,-g),b=R.c.scale([0,0],p,v),x=R.c.add([0,0],d,m),O=R.c.add([0,0],d,b);l&&(x=R.c.max([0,0],x,a),x=R.c.min([0,0],x,s),O=R.c.max([0,0],O,a),O=R.c.min([0,0],O,s)),c.push(x),c.push(O)}return n&&c.push(c.shift()),c}(i,.4,r,n),h=i.length,d=[];for(o=0;o<h-1;o++)s=u[2*o],c=u[2*o+1],l=i[o+1],d.push(["C",s[0],s[1],c[0],c[1],l[0],l[1]]);return r&&(s=u[h],c=u[h+1],l=i[0],d.push(["C",s[0],s[1],c[0],c[1],l[0],l[1]])),d}function bs(t){var e={overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis",display:"flex",justifyContent:"center",alignItems:"center"},n=["stroke","lineWidth","shadowColor","strokeOpacity","shadowBlur","shadowOffsetX","shadowOffsetY","fill"];Object(c.s)(t,"fill")&&(e.color=t.fill);var r=qa(t,n),i=r.shadowColor,o=r.shadowBlur,a=void 0===o?0:o,s=r.shadowOffsetX,l=void 0===s?0:s,u=r.shadowOffsetY,h=void 0===u?0:u;e["text-shadow"]="".concat([i,"".concat(l,"px"),"".concat(h,"px"),"".concat(a,"px")].join(" "));var d=qa(t,n),f=d.stroke,p=d.lineWidth,g=void 0===p?0:p;return e["-webkit-text-stroke"]="".concat(["".concat(g,"px"),f].join(" ")),Object(c.j)(t,(function(t,r){["fontSize"].includes(r)&&Object(c.M)(t)?e[ds(r)]="".concat(t,"px"):r&&!n.includes(r)&&(e[ds(r)]="".concat(t))})),e}function xs(t,e){t.style["pointer-events"]="none",Object(c.j)(e,(function(e,n){n&&e&&(t.style[n]=e)}))}var Os=function(t,e,n){var r=e.statistic,i=e.plotType,o=r.title,a=r.content;[o,a].forEach((function(e,r){if(e){var l="";l=0===r?a?"translate(-50%, -100%)":"translate(-50%, -50%)":o?"translate(-50%, 0)":"translate(-50%, -50%)";var u=Object(c.I)(e.style)?e.style(n):e.style;t.annotation().html(Object(s.a)({position:["50%","50%"],html:function(t,r){var o=r.getCoordinate(),a=0;if("pie"===i||"ring-progress"===i)a=o.getRadius()*o.innerRadius*2;else if("liquid"===i){var h=Object(c.s)(r.geometries,[0,"elements",0,"shape"]);if(h)a=h.find((function(t){return"wrap"===t.get("name")})).getCanvasBBox().width}else a||(a=o.getWidth());xs(t,Object(s.a)({width:"".concat(a,"px"),transform:l},bs(u)));var d=r.getData();if(e.customHtml)return e.customHtml(t,r,n,d);var f=e.content;return e.formatter&&(f=e.formatter(n,d)),f?Object(c.Q)(f)?f:"".concat(f):"<div></div>"},key:"".concat(0===r?"top":"bottom","-statistic")},qa(e,["offsetX","offsetY","rotate","style","formatter"])))}}))};function js(t,e){return e?Object(c.ib)(e,(function(t,e,n){return t.replace(new RegExp("{\\s*".concat(n,"\\s*}"),"g"),e)}),t):t}function ws(t,e){return t.views.find((function(t){return t.id===e}))}function Cs(t){var e=t.parent;return e?e.views:[]}function _s(t){return Cs(t).filter((function(e){return e!==t}))}function Ms(t,e,n){void 0===n&&(n=t.geometries),"boolean"==typeof e?t.animate(e):t.animate(!0),Object(c.j)(n,(function(t){var n;n=Object(c.I)(e)?e(t.type||t.shapeType,t)||!0:e,t.animate(n)}))}function Ss(){return"object"==typeof window?null===window||void 0===window?void 0:window.devicePixelRatio:2}function Es(t,e){void 0===e&&(e=t);var n=document.createElement("canvas"),r=Ss();return n.width=t*r,n.height=e*r,n.style.width="".concat(t,"px"),n.style.height="".concat(e,"px"),n.getContext("2d").scale(r,r),n}function ks(t,e,n,r){void 0===r&&(r=n);var i=e.backgroundColor,o=e.opacity;t.globalAlpha=o,t.fillStyle=i,t.beginPath(),t.fillRect(0,0,n,r),t.closePath()}function Is(t,e,n){var r=t+e;return n?2*r:r}function As(t,e){return e?[[t*(1/4),t*(1/4)],[t*(3/4),t*(3/4)]]:[[.5*t,.5*t]]}function Ps(t,e){var n=e*Math.PI/180;return{a:Math.cos(n)*(1/t),b:Math.sin(n)*(1/t),c:-Math.sin(n)*(1/t),d:Math.cos(n)*(1/t),e:0,f:0}}var Ts={size:6,padding:2,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0,isStagger:!0};function Bs(t,e,n,r){var i=e.size,o=e.fill,a=e.lineWidth,s=e.stroke,c=e.fillOpacity;t.beginPath(),t.globalAlpha=c,t.fillStyle=o,t.strokeStyle=s,t.lineWidth=a,t.arc(n,r,i/2,0,2*Math.PI,!1),t.fill(),a&&t.stroke(),t.closePath()}var Ls={rotation:45,spacing:5,opacity:1,backgroundColor:"transparent",strokeOpacity:.5,stroke:"#fff",lineWidth:2};function Ds(t){var e=as({},Ls,t),n=e.spacing,r=e.rotation,i=e.lineWidth,o=n+i||1,a=n+i||1,s="\n M 0 0 L ".concat(o," 0\n M 0 ").concat(a," L ").concat(o," ").concat(a,"\n "),c=Es(o,a),l=c.getContext("2d");ks(l,e,o,a),function(t,e,n){var r=e.stroke,i=e.lineWidth,o=e.strokeOpacity,a=new Path2D(n);t.globalAlpha=o,t.lineCap="square",t.strokeStyle=i?r:"transparent",t.lineWidth=i,t.stroke(a)}(l,e,s);var u=l.createPattern(c,"repeat");if(u){var h=Ps(Ss(),r);u.setTransform(h)}return u}var Fs={size:6,padding:1,isStagger:!0,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0};function Rs(t,e,n,r){var i=e.stroke,o=e.size,a=e.fill,s=e.lineWidth,c=e.fillOpacity;t.globalAlpha=c,t.strokeStyle=i,t.lineWidth=s,t.fillStyle=a,t.strokeRect(n-o/2,r-o/2,o,o),t.fillRect(n-o/2,r-o/2,o,o)}function Ns(t){var e,n=t.type,r=t.cfg;switch(n){case"dot":e=function(t){var e=as({},Ts,t),n=e.size,r=e.padding,i=e.isStagger,o=e.rotation,a=Is(n,r,i),s=As(a,i),c=Es(a,a),l=c.getContext("2d");ks(l,e,a);for(var u=0,h=s;u<h.length;u++){var d=h[u];Bs(l,e,d[0],d[1])}var f=l.createPattern(c,"repeat");if(f){var p=Ps(Ss(),o);f.setTransform(p)}return f}(r);break;case"line":e=Ds(r);break;case"square":e=function(t){var e=as({},Fs,t),n=e.size,r=e.padding,i=e.isStagger,o=e.rotation,a=Is(n,r,i),s=As(a,i),c=Es(a,a),l=c.getContext("2d");ks(l,e,a);for(var u=0,h=s;u<h.length;u++){var d=h[u];Rs(l,e,d[0],d[1])}var f=l.createPattern(c,"repeat");if(f){var p=Ps(Ss(),o);f.setTransform(p)}return f}(r)}return e}function zs(t){var e=this;return function(n){var r,i=n.options,o=n.chart,a=i.pattern;if(!a)return n;return as({},n,{options:(r={},r[t]=function(n){for(var r,l,u,h=[],d=1;d<arguments.length;d++)h[d-1]=arguments[d];var f=o.getTheme().defaultColor,p=f,g=null===(l=null===(r=o.geometries)||void 0===r?void 0:r[0])||void 0===l?void 0:l.getAttribute("color");if(g){var v=g.getFields()[0],y=Object(c.s)(n,v);p=_r.getMappingValue(g,y,(null===(u=g.values)||void 0===u?void 0:u[0])||f)}var m=a;"function"==typeof a&&(m=a.call(e,n,p)),m instanceof CanvasPattern==!1&&(m=Ns(as({},{cfg:{backgroundColor:p}},m)));var b=i[t];return Object(s.a)(Object(s.a)({},"function"==typeof b?b.call.apply(b,Object(s.g)([e,n],h,!1)):b||{}),{fill:m||p})},r)})}}function Ws(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField,o=n.seriesField;return!1===r?e.legend(!1):(i||o)&&e.legend(i||o,r),t}function $s(t){var e=t.chart,n=t.options.tooltip;return void 0!==n&&e.tooltip(n),t}function Hs(t){var e=t.chart,n=t.options.interactions;return Object(c.j)(n,(function(t){!1===t.enable?e.removeInteraction(t.type):e.interaction(t.type,t.cfg||{})})),t}function Ys(t){return Ms(t.chart,t.options.animation),t}function Vs(t){var e=t.chart,n=t.options.theme;return n&&e.theme(n),t}function Gs(t){var e=t.chart,n=t.options.state;return n&&Object(c.j)(e.geometries,(function(t){t.state(n)})),t}function Ks(t){var e=t.chart,n=t.options.slider;return e.option("slider",n),t}function Xs(t){var e=t.chart,n=t.options.scrollbar;return e.option("scrollbar",n),t}function Us(t,e){return function(n){var r=n.chart,i=n.options,o={};return Object(c.j)(t,(function(t,e){o[e]=qa(t,Ga)})),o=as({},e,i.meta,o),r.scale(o),n}}function qs(t){return function(e){var n=e.chart,r=e.options,i=n.getController("annotation");return Object(c.j)(Object(s.g)(Object(s.g)([],r.annotations||[],!0),t||[],!0),(function(t){i.annotation(t)})),e}}function Zs(t){var e=t.chart,n=t.options,r=n.yAxis,i=n.limitInPlot,o=i;return Object(c.O)(r)&&Object(c.K)(i)&&(o=!!Object.values(qa(r,["min","max","minLimit","maxLimit"])).some((function(t){return!Object(c.K)(t)}))),e.limitInPlot=o,t}function Qs(t){return void 0===t&&(t="rect"),function(e){var n=e.chart,r=e.options.coordinate,i=Array.from(r||[]).map((function(t){return"reflectX"===t.type?["reflect","x"]:"reflectY"===t.type?["reflect","y"]:"transpose"===t.type?["transpose"]:null})).filter((function(t){return!!t}));return 0!==i.length&&n.coordinate({type:t,actions:i}),e}}var Js={locale:"en-US"};var tc={};function ec(t,e){tc[t]=e}function nc(t){return{get:function(e,n){return js(Object(c.s)(tc[t],e)||Object(c.s)(tc[Js.locale],e)||Object(c.s)(tc["en-US"],e)||e,n)}}}function rc(t,e){if(!1===t)return{fields:!1};var n=Object(c.s)(t,"fields"),r=Object(c.s)(t,"formatter");return r&&!n&&(n=e),{fields:n,formatter:r}}function ic(t,e){var n=t.type,r=t.xField,i=t.yField,o=t.colorField,a=t.shapeField,l=t.sizeField,u=t.styleField,h=t.rawFields,d=[];if(h=(Object(c.I)(h)?h(n,e):h)||[],"color"===e)d=Object(s.g)([o||r],h,!0);else if("shape"===e)d=Object(s.g)([a||r],h,!0);else if("size"===e)d=Object(s.g)([l||r],h,!0);else{d=Object(s.g)([r,i,o,a,l,u],h,!0);var f=["x","y","color","shape","size","style"].indexOf(e),p=d[f];d.splice(f,1),d.unshift(p)}var g=Object(c.ub)(d.filter((function(t){return!!t}))),v="line"===n&&[r,i].includes(g.join("*"))?"":g.join("*");return{mappingFields:g,tileMappingField:v}}function oc(t,e){if(e)return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i={};return t.forEach((function(t,e){i[t]=n[e]})),delete i[void 0],e(i)}}function ac(t){var e=t.chart,n=t.options,r=n.type,i=n.args,o=n.mapping,a=n.xField,l=n.yField,u=n.colorField,h=n.shapeField,d=n.sizeField,f=n.tooltipFields,p=n.label,g=n.state,v=n.customInfo;if(!o)return t;var y=o.color,m=o.shape,b=o.size,x=o.style,O=o.tooltip,j=e[r](i).position("".concat(a,"*").concat(l));if(Object(c.Q)(y))u?j.color(u,y):j.color(y);else if(Object(c.I)(y)){var w=ic(n,"color"),C=w.mappingFields,_=w.tileMappingField;j.color(_,oc(C,y))}else u&&j.color(u,y);if(Object(c.Q)(m))h?j.shape(h,[m]):j.shape(m);else if(Object(c.I)(m)){var M=ic(n,"shape");C=M.mappingFields,_=M.tileMappingField;j.shape(_,oc(C,m))}else h&&j.shape(h,m);if(Object(c.M)(b))d?j.size(d,b):j.size(b);else if(Object(c.I)(b)){var S=ic(n,"size");C=S.mappingFields,_=S.tileMappingField;j.size(_,oc(C,b))}else d&&j.size(d,b);if(Object(c.I)(x)){var E=ic(n,"style");C=E.mappingFields,_=E.tileMappingField;j.style(_,oc(C,x))}else Object(c.O)(x)&&j.style(x);if(!1===f?j.tooltip(!1):Object(c.G)(f)||j.tooltip(f.join("*"),oc(f,O)),!1===p)j.label(!1);else if(p){var k=p.callback,I=p.fields,A=Object(s.f)(p,["callback","fields"]);j.label({fields:I||[l],callback:k,cfg:fs(A)})}return g&&j.state(g),v&&j.customInfo(v),[a,l].filter((function(t){return t!==u})).forEach((function(t){e.legend(t,!1)})),Object(s.a)(Object(s.a)({},t),{ext:{geometry:j}})}function sc(t){var e=t.options,n=e.area,r=e.xField,i=e.yField,o=e.seriesField,a=e.smooth,s=e.tooltip,l=e.useDeferredLabel,u=rc(s,[r,i,o]),h=u.fields,d=u.formatter;return n?ac(as({},t,{options:{type:"area",colorField:o,tooltipFields:h,mapping:Object(c.h)({shape:a?"smooth":"area",tooltip:d},n),args:{useDeferredLabel:l}}})):t}function cc(t){var e=t.options,n=e.edge,r=e.xField,i=e.yField,o=e.seriesField,a=e.tooltip,c=e.useDeferredLabel,l=rc(a,[r,i,o]),u=l.fields,h=l.formatter;return n?ac(as({},t,{options:{type:"edge",colorField:o,tooltipFields:u,mapping:Object(s.a)({tooltip:h},n),args:{useDeferredLabel:c}}})):t}function lc(t){var e=t.options,n=e.xField,r=e.yField,i=e.interval,o=e.seriesField,a=e.tooltip,l=e.minColumnWidth,u=e.maxColumnWidth,h=e.columnBackground,d=e.dodgePadding,f=e.intervalPadding,p=e.useDeferredLabel,g=rc(a,[n,r,o]),v=g.fields,y=g.formatter,m=(i?ac(as({},t,{options:{type:"interval",colorField:o,tooltipFields:v,mapping:Object(s.a)({tooltip:y},i),args:{dodgePadding:d,intervalPadding:f,minColumnWidth:l,maxColumnWidth:u,background:h,useDeferredLabel:p}}})):t).ext;return function(t){var e=t.chart,n=t.options,r=t.ext,i=n.seriesField,o=n.isGroup,a=n.isStack,s=n.marginRatio,l=n.widthRatio,u=n.groupField,h=n.theme,d=[];return i&&(o&&d.push({type:"dodge",dodgeBy:u||i,marginRatio:s}),a&&d.push({type:"stack",marginRatio:s})),d.length&&(null==r?void 0:r.geometry)&&(null==r?void 0:r.geometry).adjust(d),Object(c.K)(l)||e.theme(as({},Object(c.O)(h)?h:nn(h),{columnWidthRatio:l})),t}(Object(s.a)(Object(s.a)({},t),{ext:m}))}function uc(t){var e=t.options,n=e.line,r=e.stepType,i=e.xField,o=e.yField,a=e.seriesField,s=e.smooth,l=e.connectNulls,u=e.tooltip,h=e.useDeferredLabel,d=rc(u,[i,o,a]),f=d.fields,p=d.formatter;return n?ac(as({},t,{options:{type:"line",colorField:a,tooltipFields:f,mapping:Object(c.h)({shape:r||(s?"smooth":"line"),tooltip:p},n),args:{connectNulls:l,useDeferredLabel:h}}})):t}function hc(t){var e=t.options,n=e.point,r=e.xField,i=e.yField,o=e.seriesField,a=e.sizeField,c=e.shapeField,l=e.tooltip,u=e.useDeferredLabel,h=rc(l,[r,i,o,a,c]),d=h.fields,f=h.formatter;return n?ac(as({},t,{options:{type:"point",colorField:o,shapeField:c,tooltipFields:d,mapping:Object(s.a)({tooltip:f},n),args:{useDeferredLabel:u}}})):t}function dc(t){var e=t.options,n=e.polygon,r=e.xField,i=e.yField,o=e.seriesField,a=e.tooltip,c=e.useDeferredLabel,l=rc(a,[r,i,o]),u=l.fields,h=l.formatter;return n?ac(as({},t,{options:{type:"polygon",colorField:o,tooltipFields:u,mapping:Object(s.a)({tooltip:h},n),args:{useDeferredLabel:c}}})):t}function fc(t){var e=t.options,n=e.schema,r=e.xField,i=e.yField,o=e.seriesField,a=e.tooltip,c=e.useDeferredLabel,l=rc(a,[r,i,o]),u=l.fields,h=l.formatter;return n?ac(as({},t,{options:{type:"schema",colorField:o,tooltipFields:u,mapping:Object(s.a)({tooltip:h},n),args:{useDeferredLabel:c}}})):t}var pc=n(702),gc=["padding","appendPadding","renderer","pixelRatio","syncViewPadding","supportCSSTransform","limitInPlot"],vc=function(t){function e(e,n){var r=t.call(this)||this;return r.container="string"==typeof e?document.getElementById(e):e,r.options=as({},r.getDefaultOptions(),n),r.createG2(),r.bindEvents(),r}return Object(s.c)(e,t),e.getDefaultOptions=function(){return{renderer:"canvas",xAxis:{nice:!0,label:{autoRotate:!1,autoHide:{type:"equidistance",cfg:{minGap:6}}}},yAxis:{nice:!0,label:{autoHide:!0,autoRotate:!1}},animation:!0}},e.prototype.createG2=function(){var t=this.options,e=t.width,n=t.height,r=t.defaultInteractions;this.chart=new _n(Object(s.a)(Object(s.a)(Object(s.a)(Object(s.a)({container:this.container,autoFit:!1},this.getChartSize(e,n)),{localRefresh:!1}),qa(this.options,gc)),{defaultInteractions:r})),this.container.setAttribute("data-chart-source-type","G2Plot")},e.prototype.getChartSize=function(t,e){var n=ss(this.container);return{width:t||n.width||400,height:e||n.height||400}},e.prototype.bindEvents=function(){var t=this;this.chart&&this.chart.on("*",(function(e){(null==e?void 0:e.type)&&t.emit(e.type,e)}))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.render=function(){this.chart.clear(),this.chart.options={data:[],animate:!0},this.chart.views=[],this.execAdaptor(),this.chart.render(),this.bindSizeSensor()},e.prototype.update=function(t){this.updateOption(t),this.render()},e.prototype.updateOption=function(t){this.options=as({},this.options,t)},e.prototype.setState=function(t,e,n){void 0===n&&(n=!0);var r=hs(this.chart);Object(c.j)(r,(function(r){e(r.getData())&&r.setState(t,n)}))},e.prototype.getStates=function(){var t=hs(this.chart),e=[];return Object(c.j)(t,(function(t){var n=t.getData(),r=t.getStates();Object(c.j)(r,(function(r){e.push({data:n,state:r,geometry:t.geometry,element:t})}))})),e},e.prototype.changeData=function(t){this.update({data:t})},e.prototype.changeSize=function(t,e){this.chart.changeSize(t,e)},e.prototype.addAnnotations=function(t,e){e=e||this.chart;var n=Object(s.g)([],t,!0),r=e.getController("annotation"),i=r.getComponents().map((function(t){return t.extra}));r.clear(!0);for(var o=function(t){var e=i[t],o=n.findIndex((function(t){return t.id&&t.id===e.id}));-1!==o&&(e=as({},e,n[o]),n.splice(o,1)),r.annotation(e)},a=0;a<i.length;a++)o(a);n.forEach((function(t){return r.annotation(t)})),e.render(!0)},e.prototype.removeAnnotations=function(t){var e=this.chart.getController("annotation"),n=e.getComponents().map((function(t){return t.extra}));e.clear(!0);for(var r=function(r){var i=n[r];t.find((function(t){return t.id&&t.id===i.id}))||e.annotation(i)},i=0;i<n.length;i++)r(i);this.chart.render(!0)},e.prototype.destroy=function(){this.unbindSizeSensor(),this.chart.destroy(),this.off(),this.container.removeAttribute("data-chart-source-type")},e.prototype.execAdaptor=function(){var t=this.getSchemaAdaptor(),e=this.options,n=e.padding,r=e.appendPadding;this.chart.padding=n,this.chart.appendPadding=r,t({chart:this.chart,options:this.options})},e.prototype.triggerResize=function(){this.chart.forceFit()},e.prototype.bindSizeSensor=function(){var t=this;if(!this.unbind){var e=this.options.autoFit;(void 0===e||e)&&(this.unbind=Object(pc.bind)(this.container,(function(){var e=ss(t.container),n=e.width,r=e.height;n===t.chart.width&&r===t.chart.height||t.triggerResize()})))}},e.prototype.unbindSizeSensor=function(){this.unbind&&(this.unbind(),this.unbind=void 0)},e}(j.a);function yc(t,e,n,r){var i=Object(c.ib)(t,(function(t,r){var i=r[n],o=t.has(i)?t.get(i):0,a=r[e];return o=ps(a)?o+a:o,t.set(i,o),t}),new Map);return Object(c.W)(t,(function(t){var o,a=t[e],c=t[n],l=ps(a)&&0!==i.get(c)?a/i.get(c):0;return Object(s.a)(Object(s.a)({},t),((o={})[r]=l,o))}))}function mc(t,e,n,r,i){return i?yc(t,e,n,r):t}function bc(t){var e=t.chart,n=t.options,r=n.data,i=n.color,o=n.lineStyle,a=n.lineShape,c=n.point,l=n.area,u=n.seriesField,h=null==c?void 0:c.state,d=null==l?void 0:l.state;e.data(r);var f=as({},t,{options:{shapeField:u,line:{color:i,style:o,shape:a},point:c&&Object(s.a)({color:i,shape:"circle"},c),area:l&&Object(s.a)({color:i},l),label:void 0}}),p=as({},f,{options:{tooltip:!1,state:h}}),g=as({},f,{options:{tooltip:!1,state:d}});return uc(f),hc(p),sc(g),t}function xc(t){var e,n,r=t.options,i=r.xAxis,o=r.yAxis,a=r.xField,s=r.yField,c=r.data;return cs(Us(((e={})[a]=i,e[s]=o,e),((n={})[a]={type:"cat"},n[s]=Za(c,s),n)))(t)}function Oc(t){var e=t.chart,n=t.options.reflect;if(n){var r=n;Object(c.C)(r)||(r=[r]);var i=r.map((function(t){return["reflect",t]}));e.coordinate({type:"rect",actions:i})}return t}function jc(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(a,!1):e.axis(a,i),t}function wc(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField;return r&&i?e.legend(i,r):!1===r&&e.legend(!1),t}function Cc(t){var e=t.chart,n=t.options,r=n.label,i=n.yField,o=ls(e,"line");if(r){var a=r.fields,c=r.callback,l=Object(s.f)(r,["fields","callback"]);o.label({fields:a||[i],callback:c,cfg:Object(s.a)({layout:[{type:"limit-in-plot"},{type:"path-adjust-position"},{type:"point-adjust-position"},{type:"limit-in-plot",cfg:{action:"hide"}}]},fs(l))})}else o.label(!1);return t}function _c(t){var e=t.chart;return t.options.isStack&&Object(c.j)(e.geometries,(function(t){t.adjust("stack")})),t}function Mc(t){return cs(bc,xc,_c,Vs,Oc,jc,wc,$s,Cc,Ks,Xs,Hs,Ys,qs(),Zs)(t)}function Sc(t){var e=t.chart,n=t.options,r=n.data,i=n.areaStyle,o=n.areaShape,a=n.color,l=n.point,u=n.line,h=n.isPercent,d=n.xField,f=n.yField,p=n.tooltip,g=n.seriesField,v=n.startOnZero,y=null==l?void 0:l.state,m=mc(r,f,d,f,h);e.data(m);var b=h?Object(s.a)({formatter:function(t){return{name:t[g]||t[d],value:(100*Number(t[f])).toFixed(2)+"%"}}},p):p,x=as({},t,{options:{area:{color:a,style:i,shape:o},point:l&&Object(s.a)({color:a},l),tooltip:b,label:void 0,args:{startOnZero:v}}}),O={chart:e,options:as({line:{size:2}},Object(c.gb)(n,["state"]),{line:u&&Object(s.a)({color:a},u),sizeField:g,state:null==u?void 0:u.state,tooltip:!1,label:void 0,args:{startOnZero:v}})},j=as({},x,{options:{tooltip:!1,state:y}});return sc(x),uc(O),hc(j),t}function Ec(t){var e=t.chart,n=t.options,r=n.label,i=n.yField,o=ls(e,"area");if(r){var a=r.fields,c=r.callback,l=Object(s.f)(r,["fields","callback"]);o.label({fields:a||[i],callback:c,cfg:Object(s.a)({layout:[{type:"limit-in-plot"},{type:"path-adjust-position"},{type:"point-adjust-position"},{type:"limit-in-plot",cfg:{action:"hide"}}]},fs(l))})}else o.label(!1);return t}function kc(t){var e=t.chart,n=t.options,r=n.isStack,i=n.isPercent,o=n.seriesField;return(i||r)&&o&&Object(c.j)(e.geometries,(function(t){t.adjust("stack")})),t}function Ic(t){return cs(Vs,zs("areaStyle"),Qs("rect"),Sc,xc,kc,jc,wc,$s,Ec,Ks,qs(),Hs,Ys,Zs)(t)}var Ac=as({},vc.getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},isStack:!0,line:{},legend:{position:"top-left",radio:{}}}),Pc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",e}return Object(s.c)(e,t),e.getDefaultOptions=function(){return Ac},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options,n=e.isPercent,r=e.xField,i=e.yField;xc({chart:this.chart,options:this.options}),this.chart.changeData(mc(t,i,r,i,n))},e.prototype.getSchemaAdaptor=function(){return Ic},e}(vc),Tc={padding:[8,10],text:"reset",textStyle:{default:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"}},buttonStyle:{default:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},active:{fill:"#e6e6e6"}}};function Bc(t){return t.isInPlot()}function Lc(t,e,n){var r=n||{},i=r.mask,o=r.isStartEnable,a=e||"rect";switch(t){case"brush":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:o||Bc,action:["brush:start","".concat(a,"-mask:start"),"".concat(a,"-mask:show")],arg:[null,{maskStyle:null==i?void 0:i.style}]}],processing:[{trigger:"mousemove",isEnable:Bc,action:["".concat(a,"-mask:resize")]}],end:[{trigger:"mouseup",isEnable:Bc,action:["brush:filter","brush:end","".concat(a,"-mask:end"),"".concat(a,"-mask:hide"),"brush-reset-button:show"]}],rollback:[{trigger:"brush-reset-button:click",action:["brush:reset","brush-reset-button:hide","cursor:crosshair"]}]};case"brush-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"plot:mousemove",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"plot:mousemove",action:"cursor:default",isEnable:function(t){return!!o&&!o(t)}},{trigger:"mask:mouseenter",action:"cursor:move",isEnable:o||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:o||function(t){return!t.isInShape("mask")},action:["".concat(a,"-mask:start"),"".concat(a,"-mask:show")],arg:[{maskStyle:null==i?void 0:i.style}]},{trigger:"mask:dragstart",action:["".concat(a,"-mask:moveStart")]}],processing:[{trigger:"plot:mousemove",action:["".concat(a,"-mask:resize")]},{trigger:"mask:drag",action:["".concat(a,"-mask:move")]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["".concat(a,"-mask:end")]},{trigger:"mask:dragend",action:["".concat(a,"-mask:moveEnd")]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear","".concat(a,"-mask:end"),"".concat(a,"-mask:hide")]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","".concat(a,"-mask:hide")]}]};case"brush-x":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:o||Bc,action:["brush-x:start","".concat(a,"-mask:start"),"".concat(a,"-mask:show")],arg:[null,{maskStyle:null==i?void 0:i.style}]}],processing:[{trigger:"mousemove",isEnable:Bc,action:["".concat(a,"-mask:resize")]}],end:[{trigger:"mouseup",isEnable:Bc,action:["brush-x:filter","brush-x:end","".concat(a,"-mask:end"),"".concat(a,"-mask:hide")]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]};case"brush-x-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"mask:mouseenter",action:"cursor:move",isEnable:o||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:o||function(t){return!t.isInShape("mask")},action:["".concat(a,"-mask:start"),"".concat(a,"-mask:show")],arg:[{maskStyle:null==i?void 0:i.style}]},{trigger:"mask:dragstart",action:["".concat(a,"-mask:moveStart")]}],processing:[{trigger:"plot:mousemove",action:["".concat(a,"-mask:resize")]},{trigger:"mask:drag",action:["".concat(a,"-mask:move")]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["".concat(a,"-mask:end")]},{trigger:"mask:dragend",action:["".concat(a,"-mask:moveEnd")]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear","".concat(a,"-mask:end"),"".concat(a,"-mask:hide")]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","".concat(a,"-mask:hide")]}]};case"brush-y":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:o||Bc,action:["brush-y:start","".concat(a,"-mask:start"),"".concat(a,"-mask:show")],arg:[null,{maskStyle:null==i?void 0:i.style}]}],processing:[{trigger:"mousemove",isEnable:Bc,action:["".concat(a,"-mask:resize")]}],end:[{trigger:"mouseup",isEnable:Bc,action:["brush-y:filter","brush-y:end","".concat(a,"-mask:end"),"".concat(a,"-mask:hide")]}],rollback:[{trigger:"dblclick",action:["brush-y:reset"]}]};case"brush-y-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"mask:mouseenter",action:"cursor:move",isEnable:o||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:o||function(t){return!t.isInShape("mask")},action:["".concat(a,"-mask:start"),"".concat(a,"-mask:show")],arg:[{maskStyle:null==i?void 0:i.style}]},{trigger:"mask:dragstart",action:["".concat(a,"-mask:moveStart")]}],processing:[{trigger:"plot:mousemove",action:["".concat(a,"-mask:resize")]},{trigger:"mask:drag",action:["".concat(a,"-mask:move")]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["".concat(a,"-mask:end")]},{trigger:"mask:dragend",action:["".concat(a,"-mask:moveEnd")]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear","".concat(a,"-mask:end"),"".concat(a,"-mask:hide")]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","".concat(a,"-mask:hide")]}]};default:return{}}}Lt("brush-reset-button",function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buttonGroup=null,e.buttonCfg=Object(s.a)({name:"button"},Tc),e}return Object(s.c)(e,t),e.prototype.getButtonCfg=function(){var t=this.context.view,e=Object(c.s)(t,["interactions","filter-action","cfg","buttonConfig"]);return as(this.buttonCfg,e,this.cfg)},e.prototype.drawButton=function(){var t=this.getButtonCfg(),e=this.context.view.foregroundGroup.addGroup({name:t.name}),n=this.drawText(e);this.drawBackground(e,n.getBBox()),this.buttonGroup=e},e.prototype.drawText=function(t){var e,n=this.getButtonCfg();return t.addShape({type:"text",name:"button-text",attrs:Object(s.a)({text:n.text},null===(e=n.textStyle)||void 0===e?void 0:e.default)})},e.prototype.drawBackground=function(t,e){var n,r=this.getButtonCfg(),i=gs(r.padding),o=t.addShape({type:"rect",name:"button-rect",attrs:Object(s.a)({x:e.x-i[3],y:e.y-i[0],width:e.width+i[1]+i[3],height:e.height+i[0]+i[2]},null===(n=r.buttonStyle)||void 0===n?void 0:n.default)});return o.toBack(),t.on("mouseenter",(function(){var t;o.attr(null===(t=r.buttonStyle)||void 0===t?void 0:t.active)})),t.on("mouseleave",(function(){var t;o.attr(null===(t=r.buttonStyle)||void 0===t?void 0:t.default)})),o},e.prototype.resetPosition=function(){var t=this.context.view.getCoordinate().convert({x:1,y:1}),e=this.buttonGroup,n=e.getBBox(),r=_r.transform(null,[["t",t.x-n.width-10,t.y+n.height+5]]);e.setMatrix(r)},e.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},e.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},e.prototype.destroy=function(){var e=this.buttonGroup;e&&e.remove(),t.prototype.destroy.call(this)},e}(At),{name:"brush-reset-button"}),Ne("filter-action",{}),Ne("brush",Lc("brush")),Ne("brush-highlight",Lc("brush-highlight")),Ne("brush-x",Lc("brush-x","x-rect")),Ne("brush-y",Lc("brush-y","y-rect")),Ne("brush-x-highlight",Lc("brush-x-highlight","x-rect")),Ne("brush-y-highlight",Lc("brush-y-highlight","y-rect"));var Dc=["brush","brush-x","brush-y","brush-highlight","brush-x-highlight","brush-y-highlight"];function Fc(t){var e=t.options,n=e.brush,r=Object(c.l)(e.interactions||[],(function(t){return-1===Dc.indexOf(t.type)}));return(null==n?void 0:n.enabled)&&(Dc.forEach((function(t){var e=!1;switch(n.type){case"x-rect":e=t===("highlight"===n.action?"brush-x-highlight":"brush-x");break;case"y-rect":e=t===("highlight"===n.action?"brush-y-highlight":"brush-y");break;default:e=t===("highlight"===n.action?"brush-highlight":"brush")}var i={type:t,enable:e};n&&(i.cfg=Lc(t,n.type,n)),r.push(i)})),"highlight"!==(null==n?void 0:n.action)&&r.push({type:"filter-action",cfg:{buttonConfig:n.button}})),as({},t,{options:{interactions:r}})}var Rc={hover:"__interval-connected-area-hover__",click:"__interval-connected-area-click__"},Nc=function(t,e){return"hover"===t?[{trigger:"interval:mouseenter",action:["element-highlight-by-color:highlight","element-link-by-color:link"],arg:[null,{style:e}]}]:[{trigger:"interval:click",action:["element-highlight-by-color:clear","element-highlight-by-color:highlight","element-link-by-color:clear","element-link-by-color:unlink","element-link-by-color:link"],arg:[null,null,null,null,{style:e}]}]};function zc(t,e){return Object(c.M)(t)&&Object(c.M)(e)?0===t&&0===e?"-":t===e?"100%":0===t?"∞":"".concat((100*e/t).toFixed(2),"%"):"-"}function Wc(t,e){return as({size:e?32:80,spacing:e?8:12,offset:e?32:0,arrow:!1!==t.arrow&&{headSize:12,style:{fill:"rgba(0, 0, 0, 0.05)"}},text:!1!==t.text&&{style:{fontSize:12,fill:"rgba(0, 0, 0, 0.85)",textAlign:"center",textBaseline:"middle"},formatter:zc}},t)}function $c(t,e){return Object(c.W)(e.getModel().points,(function(e){return t.convertPoint(e)}))}function Hc(t,e,n){!function(t,e,n){var r=t.view,i=t.geometry,o=t.group,a=t.options,c=t.horizontal,l=a.offset,u=a.size,h=a.arrow,d=r.getCoordinate(),f=$c(d,e)[3],p=$c(d,n)[0],g=p.y-f.y,v=p.x-f.x;if("boolean"!=typeof h){var y,m=h.headSize,b=a.spacing;c?(v-m)/2<b?(b=Math.max(1,(v-m)/2),y=[[f.x+b,f.y-l],[f.x+b,f.y-l-u],[p.x-b,p.y-l-u/2]]):y=[[f.x+b,f.y-l],[f.x+b,f.y-l-u],[p.x-b-m,p.y-l-u],[p.x-b,p.y-l-u/2],[p.x-b-m,p.y-l]]:(g-m)/2<b?(b=Math.max(1,(g-m)/2),y=[[f.x+l,f.y+b],[f.x+l+u,f.y+b],[p.x+l+u/2,p.y-b]]):y=[[f.x+l,f.y+b],[f.x+l+u,f.y+b],[p.x+l+u,p.y-b-m],[p.x+l+u/2,p.y-b],[p.x+l,p.y-b-m]],o.addShape("polygon",{id:"".concat(r.id,"-conversion-tag-arrow-").concat(i.getElementId(e.getModel().mappingData)),name:"conversion-tag-arrow",origin:{element:e,nextElement:n},attrs:Object(s.a)(Object(s.a)({},h.style||{}),{points:y})})}}(t,e,n),function(t,e,n){var r,i,o,a=t.view,c=t.geometry,l=t.group,u=t.options,h=t.field,d=t.horizontal,f=u.offset,p=u.size;if("boolean"!=typeof u.text){var g=a.getCoordinate(),v=(null===(r=u.text)||void 0===r?void 0:r.formatter)&&(null===(i=u.text)||void 0===i?void 0:i.formatter(e.getData()[h],n.getData()[h])),y=$c(g,e)[d?3:0],m=$c(g,n)[d?0:3],b=l.addShape("text",{id:"".concat(a.id,"-conversion-tag-text-").concat(c.getElementId(e.getModel().mappingData)),name:"conversion-tag-text",origin:{element:e,nextElement:n},attrs:Object(s.a)(Object(s.a)({},(null===(o=u.text)||void 0===o?void 0:o.style)||{}),{text:v,x:d?(y.x+m.x)/2:y.x+f+p/2,y:d?y.y-f-p/2:(y.y+m.y)/2})});if(d){var x=m.x-y.x,O=b.getBBox().width;if(O>x){var j=O/v.length,w=Math.max(1,Math.ceil(x/j)-1),C="".concat(v.slice(0,w),"...");b.attr("text",C)}}}}(t,e,n)}function Yc(t){var e=t.options,n=e.legend,r=e.seriesField,i=e.isStack;return r?!1!==n&&(n=Object(s.a)({position:i?"right-top":"top-left"},n)):n=!1,t.options.legend=n,t}function Vc(t){var e=t.chart,n=t.options,r=n.data,i=n.columnStyle,o=n.color,a=n.columnWidthRatio,l=n.isPercent,u=n.isGroup,h=n.isStack,d=n.xField,f=n.yField,p=n.seriesField,g=n.groupField,v=n.tooltip,y=n.shape,m=l&&u&&h?function(t,e,n,r){var i=Object(c.ib)(t,(function(t,r){var i=Object(c.ib)(n,(function(t,e){return"".concat(t).concat(r[e])}),""),o=t.has(i)?t.get(i):0,a=r[e];return o=ps(a)?o+a:o,t.set(i,o),t}),new Map);return Object(c.W)(t,(function(t){var o,a=t[e],l=Object(c.ib)(n,(function(e,n){return"".concat(e).concat(t[n])}),""),u=ps(a)&&0!==i.get(l)?a/i.get(l):0;return Object(s.a)(Object(s.a)({},t),((o={})[r]=u,o))}))}(r,f,[d,g],f):mc(r,f,d,f,l),b=[];h&&p&&!u?m.forEach((function(t){var e=b.find((function(e){return e[d]===t[d]&&e[p]===t[p]}));e?e[f]+=t[f]||0:b.push(Object(s.a)({},t))})):b=m,e.data(b);var x=l?Object(s.a)({formatter:function(t){var e;return{name:u&&h?"".concat(t[p]," - ").concat(t[g]):null!==(e=t[p])&&void 0!==e?e:t[d],value:(100*Number(t[f])).toFixed(2)+"%"}}},v):v,O=as({},t,{options:{data:b,widthRatio:a,tooltip:x,interval:{shape:y,style:i,color:o}}});return lc(O),O}function Gc(t){var e,n,r=t.options,i=r.xAxis,o=r.yAxis,a=r.xField,c=r.yField,l=r.data,u=r.isPercent?{max:1,min:0,minLimit:0,maxLimit:1}:{};return cs(Us(((e={})[a]=i,e[c]=o,e),((n={})[a]={type:"cat"},n[c]=Object(s.a)(Object(s.a)({},Za(l,c)),u),n)))(t)}function Kc(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(a,!1):e.axis(a,i),t}function Xc(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField;return r&&i?e.legend(i,r):!1===r&&e.legend(!1),t}function Uc(t){var e=t.chart,n=t.options,r=n.label,i=n.yField,o=n.isRange,a=ls(e,"interval");if(r){var c=r.callback,l=Object(s.f)(r,["callback"]);a.label({fields:[i],callback:c,cfg:Object(s.a)({layout:(null==l?void 0:l.position)?void 0:[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}]},fs(o?Object(s.a)({content:function(t){var e;return null===(e=t[i])||void 0===e?void 0:e.join("-")}},l):l))})}else a.label(!1);return t}function qc(t){var e=t.chart,n=t.options,r=n.tooltip,i=n.isGroup,o=n.isStack,a=n.groupField,l=n.data,u=n.xField,h=n.yField,d=n.seriesField;if(!1===r)e.tooltip(!1);else{var f=r;if(i&&o){var p=f.customItems,g=(null==f?void 0:f.formatter)||function(t){return{name:"".concat(t[d]," - ").concat(t[a]),value:t[h]}};f=Object(s.a)(Object(s.a)({},f),{customItems:function(t){var e=[];return Object(c.j)(t,(function(t){Object(c.l)(l,(function(e){return Object(c.J)(e,qa(t.data,[u,d]))})).forEach((function(n){e.push(Object(s.a)(Object(s.a)(Object(s.a)({},t),{value:n[h],data:n,mappingData:{_origin:n}}),g(n)))}))})),p?p(e):e}})}e.tooltip(f)}return t}function Zc(t,e){void 0===e&&(e=!1);var n,r,i,o,a=t.options,s=a.seriesField;return cs(Yc,Vs,zs("columnStyle"),Gs,Qs("rect"),Vc,Gc,Kc,Xc,qc,Ks,Xs,Uc,Fc,Hs,Ys,qs(),(r=a.yField,void 0===(i=!e)&&(i=!0),void 0===(o=!!s)&&(o=!1),function(t){var e=t.options,n=t.chart,a=e.conversionTag,s=e.theme;return a&&!o&&(n.theme(as({},Object(c.O)(s)?s:nn(s),{columnWidthRatio:1/3})),n.annotation().shape({render:function(t,e){var o=t.addGroup({id:"".concat(n.id,"-conversion-tag-group"),name:"conversion-tag-group"}),s=Object(c.m)(n.geometries,(function(t){return"interval"===t.type})),l={view:e,geometry:s,group:o,field:r,horizontal:i,options:Wc(a,i)},u=s.elements;Object(c.j)(u,(function(t,e){e>0&&Hc(l,u[e-1],t)}))}})),t}),(void 0===(n=!a.isStack)&&(n=!1),function(t){var e=t.chart,r=t.options.connectedArea,i=function(){e.removeInteraction(Rc.hover),e.removeInteraction(Rc.click)};if(!n&&r){var o=r.trigger||"hover";i(),e.interaction(Rc[o],{start:Nc(o,r.style)})}else i();return t}),Zs)(t)}function Qc(t){var e=t.options,n=e.xField,r=e.yField,i=e.xAxis,o=e.yAxis,a={left:"bottom",right:"top",top:"left",bottom:"right"},c=!1!==o&&Object(s.a)({position:a[(null==o?void 0:o.position)||"left"]},o),l=!1!==i&&Object(s.a)({position:a[(null==i?void 0:i.position)||"bottom"]},i);return Object(s.a)(Object(s.a)({},t),{options:Object(s.a)(Object(s.a)({},e),{xField:r,yField:n,xAxis:c,yAxis:l})})}function Jc(t){var e=t.options.label;return e&&!e.position&&(e.position="left",e.layout||(e.layout=[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}])),as({},t,{options:{label:e}})}function tl(t){var e=t.options,n=e.seriesField,r=e.isStack,i=e.legend;return n?!1!==i&&(i=Object(s.a)({position:r?"top-left":"right-top"},i||{})):i=!1,as({},t,{options:{legend:i}})}function el(t){var e=t.options,n=[{type:"transpose"},{type:"reflectY"}].concat(e.coordinate||[]);return as({},t,{options:{coordinate:n}})}function nl(t){var e=t.chart,n=t.options,r=n.barStyle,i=n.barWidthRatio,o=n.minBarWidth,a=n.maxBarWidth,c=n.barBackground;return Zc({chart:e,options:Object(s.a)(Object(s.a)({},n),{columnStyle:r,columnWidthRatio:i,minColumnWidth:o,maxColumnWidth:a,columnBackground:c})},!0)}function rl(t){return cs(Qc,Jc,tl,$s,el,nl)(t)}Ne(Rc.hover,{start:Nc(Rc.hover),end:[{trigger:"interval:mouseleave",action:["element-highlight-by-color:reset","element-link-by-color:unlink"]}]}),Ne(Rc.click,{start:Nc(Rc.click),end:[{trigger:"document:mousedown",action:["element-highlight-by-color:clear","element-link-by-color:clear"]}]});var il,ol=as({},vc.getDefaultOptions(),{barWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),al=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bar",e}return Object(s.c)(e,t),e.getDefaultOptions=function(){return ol},e.prototype.changeData=function(t){var e,n;this.updateOption({data:t});var r=this.chart,i=this.options,o=i.isPercent,a=i.xField,c=i.yField,l=i.xAxis,u=i.yAxis;a=(e=[c,a])[0],c=e[1],l=(n=[u,l])[0],u=n[1],Gc({chart:r,options:Object(s.a)(Object(s.a)({},i),{xField:a,yField:c,yAxis:u,xAxis:l})}),r.changeData(mc(t,a,c,a,o))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return rl},e}(vc),sl=as({},vc.getDefaultOptions(),{columnWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),cl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="column",e}return Object(s.c)(e,t),e.getDefaultOptions=function(){return sl},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options,n=e.yField,r=e.xField,i=e.isPercent;Gc({chart:this.chart,options:this.options}),this.chart.changeData(mc(t,n,r,n,i))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Zc},e}(vc),ll={appendPadding:[0,80],minSize:0,maxSize:1,meta:(il={},il.$$mappingValue$$={min:0,max:1,nice:!1},il),label:{style:{fill:"#fff",fontSize:12}},tooltip:{showTitle:!1,showMarkers:!1,shared:!1},conversionTag:{offsetX:10,offsetY:0,style:{fontSize:12,fill:"rgba(0,0,0,0.45)"}}};function ul(t,e,n){var r=n.yField,i=n.maxSize,o=n.minSize,a=Object(c.s)(Object(c.Z)(e,r),[r]),s=Object(c.M)(i)?i:1,l=Object(c.M)(o)?o:0;return Object(c.W)(t,(function(e,n){var i=(e[r]||0)/a;return e.$$percentage$$=i,e.$$mappingValue$$=(s-l)*i+l,e.$$conversion$$=[Object(c.s)(t,[n-1,r]),e[r]],e}))}function hl(t){return function(e){var n=e.chart,r=e.options,i=r.conversionTag,o=r.filteredData||n.getOptions().data;if(i){var a=i.formatter;o.forEach((function(e,r){if(!(r<=0||Number.isNaN(e.$$mappingValue$$))){var l=t(e,r,o,{top:!0,name:"CONVERSION_TAG_NAME",text:{content:Object(c.I)(a)?a(e,o):a,offsetX:i.offsetX,offsetY:i.offsetY,position:"end",autoRotate:!1,style:Object(s.a)({textAlign:"start",textBaseline:"middle"},i.style)}});n.annotation().line(l)}}))}return e}}function dl(t){var e=t.chart,n=t.options,r=n.data,i=void 0===r?[]:r,o=ul(i,i,{yField:n.yField,maxSize:n.maxSize,minSize:n.minSize});return e.data(o),t}function fl(t){var e=t.chart,n=t.options,r=n.xField,i=n.yField,o=n.color,a=n.tooltip,s=n.label,l=n.shape,u=void 0===l?"funnel":l,h=n.funnelStyle,d=n.state,f=rc(a,[r,i]),p=f.fields,g=f.formatter;return ac({chart:e,options:{type:"interval",xField:r,yField:"$$mappingValue$$",colorField:r,tooltipFields:Object(c.C)(p)&&p.concat(["$$percentage$$","$$conversion$$"]),mapping:{shape:u,tooltip:g,color:o,style:h},label:s,state:d}}),ls(t.chart,"interval").adjust("symmetric"),t}function pl(t){var e=t.chart,n=t.options.isTransposed;return e.coordinate({type:"rect",actions:n?[]:[["transpose"],["scale",1,-1]]}),t}function gl(t){var e=t.options,n=t.chart,r=e.maxSize,i=Object(c.s)(n,["geometries","0","dataArray"],[]),o=Object(c.s)(n,["options","data","length"]),a=Object(c.W)(i,(function(t){return Object(c.s)(t,["0","nextPoints","0","x"])*o-.5}));return hl((function(t,e,n,i){var o=r-(r-t.$$mappingValue$$)/2;return Object(s.a)(Object(s.a)({},i),{start:[a[e-1]||e-.5,o],end:[a[e-1]||e-.5,o+.05]})}))(t),t}function vl(t){return cs(dl,fl,pl,gl)(t)}function yl(t){var e,n=t.chart,r=t.options,i=r.data,o=void 0===i?[]:i,a=r.yField;return n.data(o),n.scale(((e={})[a]={sync:!0},e)),t}function ml(t){var e=t.chart,n=t.options,r=n.data,i=n.xField,o=n.yField,a=n.color,s=n.compareField,l=n.isTransposed,u=n.tooltip,h=n.maxSize,d=n.minSize,f=n.label,p=n.funnelStyle,g=n.state,v=n.showFacetTitle;return e.facet("mirror",{fields:[s],transpose:!l,padding:l?0:[32,0,0,0],showTitle:v,eachView:function(t,e){var n=l?e.rowIndex:e.columnIndex;l||t.coordinate({type:"rect",actions:[["transpose"],["scale",0===n?-1:1,-1]]});var v=ul(e.data,r,{yField:o,maxSize:h,minSize:d});t.data(v);var y=rc(u,[i,o,s]),m=y.fields,b=y.formatter,x=l?{offset:0===n?10:-23,position:0===n?"bottom":"top"}:{offset:10,position:"left",style:{textAlign:0===n?"end":"start"}};ac({chart:t,options:{type:"interval",xField:i,yField:"$$mappingValue$$",colorField:i,tooltipFields:Object(c.C)(m)&&m.concat(["$$percentage$$","$$conversion$$"]),mapping:{shape:"funnel",tooltip:b,color:a,style:p},label:!1!==f&&as({},x,f),state:g}})}}),t}function bl(t){var e=t.chart,n=t.index,r=t.options,i=r.conversionTag,o=r.isTransposed;(Object(c.M)(n)?[e]:e.views).forEach((function(t,e){var a=Object(c.s)(t,["geometries","0","dataArray"],[]),s=Object(c.s)(t,["options","data","length"]),l=Object(c.W)(a,(function(t){return Object(c.s)(t,["0","nextPoints","0","x"])*s-.5}));hl((function(t,r,a,s){var c=0===(n||e)?-1:1;return as({},s,{start:[l[r-1]||r-.5,t.$$mappingValue$$],end:[l[r-1]||r-.5,t.$$mappingValue$$+.05],text:o?{style:{textAlign:"start"}}:{offsetX:!1!==i?c*i.offsetX:0,style:{textAlign:0===(n||e)?"end":"start"}}})}))(as({},{chart:t,options:r}))}))}function xl(t){return t.chart.once("beforepaint",(function(){return bl(t)})),t}function Ol(t){var e=t.chart,n=t.options,r=n.data,i=void 0===r?[]:r,o=n.yField,a=Object(c.ib)(i,(function(t,e){return t+(e[o]||0)}),0),s=Object(c.Z)(i,o)[o],l=Object(c.W)(i,(function(t,e){var n=[],r=[];if(t.$$totalPercentage$$=(t[o]||0)/a,e){var l=i[e-1].$$x$$,u=i[e-1].$$y$$;n[0]=l[3],r[0]=u[3],n[1]=l[2],r[1]=u[2]}else n[0]=-.5,r[0]=1,n[1]=.5,r[1]=1;return r[2]=r[1]-t.$$totalPercentage$$,n[2]=(r[2]+1)/4,r[3]=r[2],n[3]=-n[2],t.$$x$$=n,t.$$y$$=r,t.$$percentage$$=(t[o]||0)/s,t.$$conversion$$=[Object(c.s)(i,[e-1,o]),t[o]],t}));return e.data(l),t}function jl(t){var e=t.chart,n=t.options,r=n.xField,i=n.yField,o=n.color,a=n.tooltip,s=n.label,l=n.funnelStyle,u=n.state,h=rc(a,[r,i]),d=h.fields,f=h.formatter;return ac({chart:e,options:{type:"polygon",xField:"$$x$$",yField:"$$y$$",colorField:r,tooltipFields:Object(c.C)(d)&&d.concat(["$$percentage$$","$$conversion$$"]),label:s,state:u,mapping:{tooltip:f,color:o,style:l}}}),t}function wl(t){var e=t.chart,n=t.options.isTransposed;return e.coordinate({type:"rect",actions:n?[["transpose"],["reflect","x"]]:[]}),t}function Cl(t){return hl((function(t,e,n,r){return Object(s.a)(Object(s.a)({},r),{start:[t.$$x$$[1],t.$$y$$[1]],end:[t.$$x$$[1]+.05,t.$$y$$[1]]})}))(t),t}function _l(t){var e,n=t.chart,r=t.options,i=r.data,o=void 0===i?[]:i,a=r.yField;return n.data(o),n.scale(((e={})[a]={sync:!0},e)),t}function Ml(t){var e=t.chart,n=t.options,r=n.seriesField,i=n.isTransposed,o=n.showFacetTitle;return e.facet("rect",{fields:[r],padding:[i?0:32,10,0,10],showTitle:o,eachView:function(e,n){vl(as({},t,{chart:e,options:{data:n.data}}))}}),t}var Sl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.rendering=!1,e}return Object(s.c)(e,t),e.prototype.change=function(t){var e=this;if(!this.rendering){var n=t.seriesField,r=t.compareField,i=r?bl:gl,o=this.context.view,a=n||r?o.views:[o];Object(c.W)(a,(function(n,r){var o=n.getController("annotation"),a=Object(c.l)(Object(c.s)(o,["option"],[]),(function(t){return"CONVERSION_TAG_NAME"!==t.name}));o.clear(!0),Object(c.j)(a,(function(t){"object"==typeof t&&n.annotation()[t.type](t)}));var l=Object(c.s)(n,["filteredData"],n.getOptions().data);i({chart:n,index:r,options:Object(s.a)(Object(s.a)({},t),{filteredData:ul(l,l,t)})}),n.filterData(l),e.rendering=!0,n.render(!0)}))}this.rendering=!1},e}(At),El={trigger:"afterrender",action:"".concat("funnel-conversion-tag",":change")};function kl(t){var e,n=t.options,r=n.compareField,i=n.xField,o=n.yField,a=n.locale,s=n.funnelStyle,l=n.data,u=nc(a);return(r||s)&&(e=function(t){return as({},r&&{lineWidth:1,stroke:"#fff"},Object(c.I)(s)?s(t):s)}),as({options:{label:r?{fields:[i,o,r,"$$percentage$$","$$conversion$$"],formatter:function(t){return"".concat(t[o])}}:{fields:[i,o,"$$percentage$$","$$conversion$$"],offset:0,position:"middle",formatter:function(t){return"".concat(t[i]," ").concat(t[o])}},tooltip:{title:i,formatter:function(t){return{name:t[i],value:t[o]}}},conversionTag:{formatter:function(t){return"".concat(u.get(["conversionTag","label"]),": ").concat(zc.apply(void 0,t.$$conversion$$))}}}},t,{options:{funnelStyle:e,data:Object(c.e)(l)}})}function Il(t){var e=t.options,n=e.compareField,r=e.dynamicHeight;return e.seriesField?function(t){return cs(_l,Ml)(t)}(t):n?function(t){return cs(yl,ml,xl)(t)}(t):r?function(t){return cs(Ol,jl,wl,Cl)(t)}(t):vl(t)}function Al(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return cs(Us(((e={})[o]=r,e[a]=i,e)))(t)}function Pl(t){return t.chart.axis(!1),t}function Tl(t){var e=t.chart,n=t.options.legend;return!1===n?e.legend(!1):e.legend(n),t}function Bl(t){var e=t.chart,n=t.options,r=n.interactions,i=n.dynamicHeight;return Object(c.j)(r,(function(t){!1===t.enable?e.removeInteraction(t.type):e.interaction(t.type,t.cfg||{})})),i?e.removeInteraction("funnel-afterrender"):e.interaction("funnel-afterrender",{start:[Object(s.a)(Object(s.a)({},El),{arg:n})]}),t}function Ll(t){return cs(kl,Il,Al,Pl,$s,Bl,Tl,Ys,Vs,qs())(t)}Lt("funnel-conversion-tag",Sl),Ne("funnel-afterrender",{start:[El]});var Dl,Fl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="funnel",e}return Object(s.c)(e,t),e.getDefaultOptions=function(){return ll},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Ll},e.prototype.setState=function(t,e,n){void 0===n&&(n=!0);var r=hs(this.chart);Object(c.j)(r,(function(r){e(r.getData())&&r.setState(t,n)}))},e.prototype.getStates=function(){var t=hs(this.chart),e=[];return Object(c.j)(t,(function(t){var n=t.getData(),r=t.getStates();Object(c.j)(r,(function(r){e.push({data:n,state:r,geometry:t.geometry,element:t})}))})),e},e.CONVERSATION_FIELD="$$conversion$$",e.PERCENT_FIELD="$$percentage$$",e.TOTAL_PERCENT_FIELD="$$totalPercentage$$",e}(vc),Rl={percent:0,range:{ticks:[]},innerRadius:.9,radius:.95,startAngle:-7/6*Math.PI,endAngle:1/6*Math.PI,syncViewPadding:!0,axis:{line:null,label:{offset:-24,style:{textAlign:"center",textBaseline:"middle"}},subTickLine:{length:-8},tickLine:{length:-12},grid:null},indicator:{pointer:{style:{lineWidth:5,lineCap:"round"}},pin:{style:{r:9.75,lineWidth:4.5,fill:"#fff"}}},statistic:{title:!1},meta:(Dl={},Dl.range={sync:"v"},Dl.percent={sync:"v",tickCount:5,tickInterval:.2},Dl),animation:!1};function Nl(t){var e;return[(e={},e.percent=Object(c.c)(t,0,1),e)]}function zl(t,e){var n=Object(c.s)(e,["ticks"],[]),r=Object(c.mb)(n)?Object(c.ub)(n):[0,Object(c.c)(t,0,1),1];return r[0]||r.shift(),function(t,e){return t.map((function(n,r){var i;return(i={}).range=n-(t[r-1]||0),i.type="".concat(r),i.percent=e,i}))}(r,t)}function Wl(t){var e=t.chart,n=t.options,r=n.percent,i=n.range,o=n.radius,a=n.innerRadius,s=n.startAngle,l=n.endAngle,u=n.axis,h=n.indicator,d=n.gaugeStyle,f=n.type,p=n.meter,g=i.color,v=i.width;if(h){var y=Nl(r),m=e.createView({id:"indicator-view"});m.data(y),m.point().position("".concat("percent","*1")).shape(h.shape||"gauge-indicator").customInfo({defaultColor:e.getTheme().defaultColor,indicator:h}),m.coordinate("polar",{startAngle:s,endAngle:l,radius:a*o}),m.axis("percent",u),m.scale("percent",qa(u,Ga))}var b=zl(r,n.range),x=e.createView({id:"range-view"});return x.data(b),lc({chart:x,options:{xField:"1",yField:"range",seriesField:"type",rawFields:["percent"],isStack:!0,interval:{color:Object(c.Q)(g)?[g,"#f0f0f0"]:g,style:d,shape:"meter"===f?"meter-gauge":null},args:{zIndexReversed:!0,sortZIndex:!0},minColumnWidth:v,maxColumnWidth:v}}).ext.geometry.customInfo({meter:p}),x.coordinate("polar",{innerRadius:a,radius:o,startAngle:s,endAngle:l}).transpose(),t}function $l(t){var e;return cs(Us(((e={range:{min:0,max:1,maxLimit:1,minLimit:0}}).percent={},e)))(t)}function Hl(t,e){var n=t.chart,r=t.options,i=r.statistic,o=r.percent;if(n.getController("annotation").clear(!0),i){var a=i.content,l=void 0;a&&(l=as({},{content:"".concat((100*o).toFixed(2),"%"),style:{opacity:.75,fontSize:"30px",lineHeight:1,textAlign:"center",color:"rgba(44,53,66,0.85)"}},a)),function(t,e,n){var r=e.statistic;[r.title,r.content].forEach((function(e){if(e){var r=Object(c.I)(e.style)?e.style(n):e.style;t.annotation().html(Object(s.a)({position:["50%","100%"],html:function(t,i){var o=i.getCoordinate(),a=i.views[0].getCoordinate(),l=a.getCenter(),u=a.getRadius(),h=Math.max(Math.sin(a.startAngle),Math.sin(a.endAngle))*u,d=l.y+h-o.y.start-parseFloat(Object(c.s)(r,"fontSize",0)),f=o.getRadius()*o.innerRadius*2;xs(t,Object(s.a)({width:"".concat(f,"px"),transform:"translate(-50%, ".concat(d,"px)")},bs(r)));var p=i.getData();if(e.customHtml)return e.customHtml(t,i,n,p);var g=e.content;return e.formatter&&(g=e.formatter(n,p)),g?Object(c.Q)(g)?g:"".concat(g):"<div></div>"}},qa(e,["offsetX","offsetY","rotate","style","formatter"])))}}))}(n,{statistic:Object(s.a)(Object(s.a)({},i),{content:l})},{percent:o})}return e&&n.render(!0),t}function Yl(t){var e=t.chart,n=t.options.tooltip;return n?e.tooltip(as({showTitle:!1,showMarkers:!1,containerTpl:'<div class="g2-tooltip"><div class="g2-tooltip-list"></div></div>',domStyles:{"g2-tooltip":{padding:"4px 8px",fontSize:"10px"}},customContent:function(t,e){var n=Object(c.s)(e,[0,"data","percent"],0);return"".concat((100*n).toFixed(2),"%")}},n)):e.tooltip(!1),t}function Vl(t){return t.chart.legend(!1),t}function Gl(t){return cs(Vs,Ys,Wl,$l,Yl,Hl,Hs,qs(),Vl)(t)}Vn("point","gauge-indicator",{draw:function(t,e){var n=t.customInfo,r=n.indicator,i=n.defaultColor,o=r,a=o.pointer,c=o.pin,l=e.addGroup(),u=this.parsePoint({x:0,y:0});return a&&l.addShape("line",{name:"pointer",attrs:Object(s.a)({x1:u.x,y1:u.y,x2:t.x,y2:t.y,stroke:i},a.style)}),c&&l.addShape("circle",{name:"pin",attrs:Object(s.a)({x:u.x,y:u.y,stroke:i},c.style)}),l}}),Vn("interval","meter-gauge",{draw:function(t,e){var n=t.customInfo.meter,r=void 0===n?{}:n,i=r.steps,o=void 0===i?50:i,a=r.stepRatio,s=void 0===a?.5:a;o=o<1?1:o,s=Object(c.c)(s,0,1);var l=this.coordinate,u=l.startAngle,h=l.endAngle,d=0;s>0&&s<1&&(d=(h-u)/o/(s/(1-s)+1-1/o));for(var f=d/(1-s)*s,p=e.addGroup(),g=this.coordinate.getCenter(),v=this.coordinate.getRadius(),y=_r.getAngle(t,this.coordinate),m=y.startAngle,b=y.endAngle,x=m;x<b;){var O=void 0,j=(x-u)%(f+d);O=j<f?x+(f-j):(x+=f+d-j)+f;var w=_r.getSectorPath(g.x,g.y,v,x,Math.min(O,b),v*this.coordinate.innerRadius);p.addShape("path",{name:"meter-gauge",attrs:{path:w,fill:t.color,stroke:t.color,lineWidth:.5}}),x=O+d}return p}});var Kl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="gauge",e}return Object(s.c)(e,t),e.getDefaultOptions=function(){return Rl},e.prototype.changeData=function(t){this.chart.emit(l.BEFORE_CHANGE_DATA,yn.fromData(this.chart,l.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t});var e=this.chart.views.find((function(t){return"indicator-view"===t.id}));e&&e.data(Nl(t));var n=this.chart.views.find((function(t){return"range-view"===t.id}));n&&n.data(zl(t,this.options.range)),Hl({chart:this.chart,options:this.options},!0),this.chart.emit(l.AFTER_CHANGE_DATA,yn.fromData(this.chart,l.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Gl},e}(vc);function Xl(t,e,n){if(1===n)return[0,e];var r=Math.floor(t/e);return[e*r,e*(r+1)]}function Ul(t,e,n,r,i){var o=Object(c.e)(t);Object(c.ob)(o,e);var a=Object(c.yb)(o,e),s=Object(c.u)(a),l=s.max-s.min,u=n;if(!n&&r&&(u=r>1?l/(r-1):s.max),!n&&!r){var h=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}(a);u=l/h}var d={},f=Object(c.w)(o,i);Object(c.G)(f)?Object(c.j)(o,(function(t){var n=Xl(t[e],u,r),i="".concat(n[0],"-").concat(n[1]);Object(c.y)(d,i)||(d[i]={range:n,count:0}),d[i].count+=1})):Object.keys(f).forEach((function(t){Object(c.j)(f[t],(function(n){var o=Xl(n[e],u,r),a="".concat(o[0],"-").concat(o[1]),s="".concat(a,"-").concat(t);Object(c.y)(d,s)||(d[s]={range:o,count:0},d[s][i]=t),d[s].count+=1}))}));var p=[];return Object(c.j)(d,(function(t){p.push(t)})),p}var ql=as({},vc.getDefaultOptions(),{columnStyle:{stroke:"#FFFFFF"},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]});function Zl(t){var e=t.chart,n=t.options,r=n.data,i=n.binField,o=n.binNumber,a=n.binWidth,s=n.color,c=n.stackField,l=n.legend,u=n.columnStyle,h=Ul(r,i,a,o,c);return e.data(h),lc(as({},t,{options:{xField:"range",yField:"count",seriesField:c,isStack:!0,interval:{color:s,style:u}}})),l&&c?e.legend(c,l):e.legend(!1),t}function Ql(t){var e,n=t.options,r=n.xAxis,i=n.yAxis;return cs(Us(((e={}).range=r,e.count=i,e)))(t)}function Jl(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis;return!1===r?e.axis("range",!1):e.axis("range",r),!1===i?e.axis("count",!1):e.axis("count",i),t}function tu(t){var e=t.chart,n=t.options.label,r=ls(e,"interval");if(n){var i=n.callback,o=Object(s.f)(n,["callback"]);r.label({fields:["count"],callback:i,cfg:fs(o)})}else r.label(!1);return t}function eu(t){return cs(Vs,zs("columnStyle"),Zl,Ql,Jl,Gs,tu,$s,Hs,Ys)(t)}var nu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="histogram",e}return Object(s.c)(e,t),e.getDefaultOptions=function(){return ql},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options,n=e.binField,r=e.binNumber,i=e.binWidth,o=e.stackField;this.chart.changeData(Ul(t,n,i,r,o))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return eu},e}(vc),ru=as({},vc.getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},legend:{position:"top-left",radio:{}},isStack:!1});Lt("marker-active",function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.active=function(){var t=this.getView(),e=this.context.event;if(e.data){var n=e.data.items,r=t.geometries.filter((function(t){return"point"===t.type}));Object(c.j)(r,(function(t){Object(c.j)(t.elements,(function(t){var e=-1!==Object(c.n)(n,(function(e){return e.data===t.data}));t.setState("active",e)}))}))}},e.prototype.reset=function(){var t=this.getView().geometries.filter((function(t){return"point"===t.type}));Object(c.j)(t,(function(t){Object(c.j)(t.elements,(function(t){t.setState("active",!1)}))}))},e.prototype.getView=function(){return this.context.view},e}(At)),Ne("marker-active",{start:[{trigger:"tooltip:show",action:"marker-active:active"}],end:[{trigger:"tooltip:hide",action:"marker-active:reset"}]});var iu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e}return Object(s.c)(e,t),e.getDefaultOptions=function(){return ru},e.prototype.changeData=function(t){this.updateOption({data:t});xc({chart:this.chart,options:this.options}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Mc},e}(vc),ou=as({},vc.getDefaultOptions(),{legend:{position:"right",radio:{}},tooltip:{shared:!1,showTitle:!1,showMarkers:!1},label:{layout:{type:"limit-in-plot",cfg:{action:"ellipsis"}}},pieStyle:{stroke:"white",lineWidth:1},statistic:{title:{style:{fontWeight:300,color:"#4B535E",textAlign:"center",fontSize:"20px",lineHeight:1}},content:{style:{fontWeight:"bold",color:"rgba(44,53,66,0.85)",textAlign:"center",fontSize:"32px",lineHeight:1}}},theme:{components:{annotation:{text:{animate:!1}}}}}),au=[1,0,0,0,1,0,0,0,1];function su(t,e){var n=e?Object(s.g)([],e,!0):Object(s.g)([],au,!0);return _r.transform(n,t)}var cu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.getActiveElements=function(){var t=_r.getDelegationObject(this.context);if(t){var e=this.context.view,n=t.component,r=t.item,i=n.get("field");if(i)return e.geometries[0].elements.filter((function(t){return t.getModel().data[i]===r.value}))}return[]},e.prototype.getActiveElementLabels=function(){var t=this.context.view,e=this.getActiveElements();return t.geometries[0].labelsContainer.getChildren().filter((function(t){return e.find((function(e){return Object(c.H)(e.getData(),t.get("data"))}))}))},e.prototype.transfrom=function(t){void 0===t&&(t=7.5);var e=this.getActiveElements(),n=this.getActiveElementLabels();e.forEach((function(e,r){var i=n[r],o=e.geometry.coordinate;if(o.isPolar&&o.isTransposed){var a=_r.getAngle(e.getModel(),o),s=(a.startAngle+a.endAngle)/2,c=t,l=c*Math.cos(s),u=c*Math.sin(s);e.shape.setMatrix(su([["t",l,u]])),i.setMatrix(su([["t",l,u]]))}}))},e.prototype.active=function(){this.transfrom()},e.prototype.reset=function(){this.transfrom(0)},e}(At);var lu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.getAnnotations=function(t){return(t||this.context.view).getController("annotation").option},e.prototype.getInitialAnnotation=function(){return this.initialAnnotation},e.prototype.init=function(){var t=this,e=this.context.view;e.removeInteraction("tooltip"),e.on("afterchangesize",(function(){var n=t.getAnnotations(e);t.initialAnnotation=n}))},e.prototype.change=function(t){var e=this.context,n=e.view,r=e.event;this.initialAnnotation||(this.initialAnnotation=this.getAnnotations());var i=Object(c.s)(r,["data","data"]);if(r.type.match("legend-item")){var o=_r.getDelegationObject(this.context),a=n.getGroupedFields()[0];if(o&&a){var s=o.item;i=n.getData().find((function(t){return t[a]===s.value}))}}if(i){var l=Object(c.s)(t,"annotations",[]),u=Object(c.s)(t,"statistic",{});n.getController("annotation").clear(!0),Object(c.j)(l,(function(t){"object"==typeof t&&n.annotation()[t.type](t)})),Os(n,{statistic:u,plotType:"pie"},i),n.render(!0)}var h,d,f,p=(h=this.context,(f=h.event.target)&&(d=f.get("element")),d);p&&p.shape.toFront()},e.prototype.reset=function(){var t=this.context.view;t.getController("annotation").clear(!0);var e=this.getInitialAnnotation();Object(c.j)(e,(function(e){t.annotation()[e.type](e)})),t.render(!0)},e}(At);function uu(t,e){var n;switch(t){case"inner":return n="-30%",Object(c.Q)(e)&&e.endsWith("%")?.01*parseFloat(e)>0?n:e:e<0?e:n;case"outer":return n=12,Object(c.Q)(e)&&e.endsWith("%")?.01*parseFloat(e)<0?n:e:e>0?e:n;default:return e}}function hu(t,e){return Object(c.k)(Ja(t,e),(function(t){return 0===t[e]}))}function du(t){var e=t.chart,n=t.options,r=n.data,i=n.angleField,o=n.colorField,a=n.color,c=n.pieStyle,l=n.shape,u=Ja(r,i);if(hu(u,i)){u=u.map((function(t){var e;return Object(s.a)(Object(s.a)({},t),((e={}).$$percentage$$=1/u.length,e))})),e.data(u),lc(as({},t,{options:{xField:"1",yField:"$$percentage$$",seriesField:o,isStack:!0,interval:{color:a,shape:l,style:c},args:{zIndexReversed:!0,sortZIndex:!0}}}))}else{e.data(u),lc(as({},t,{options:{xField:"1",yField:i,seriesField:o,isStack:!0,interval:{color:a,shape:l,style:c},args:{zIndexReversed:!0,sortZIndex:!0}}}))}return t}function fu(t){var e,n=t.chart,r=t.options,i=r.meta,o=r.colorField,a=as({},i);return n.scale(a,((e={})[o]={type:"cat"},e)),t}function pu(t){var e=t.chart,n=t.options,r=n.radius,i=n.innerRadius,o=n.startAngle,a=n.endAngle;return e.coordinate({type:"theta",cfg:{radius:r,innerRadius:i,startAngle:o,endAngle:a}}),t}function gu(t){var e=t.chart,n=t.options,r=n.label,i=n.colorField,o=n.angleField,a=e.geometries[0];if(r){var l=r.callback,u=fs(Object(s.f)(r,["callback"]));if(u.content){var h=u.content;u.content=function(t,n,r){var a=t[i],l=t[o],u=e.getScaleByField(o),d=null==u?void 0:u.scale(l);return Object(c.I)(h)?h(Object(s.a)(Object(s.a)({},t),{percent:d}),n,r):Object(c.Q)(h)?js(h,{value:l,name:a,percentage:Object(c.M)(d)&&!Object(c.K)(l)?"".concat((100*d).toFixed(2),"%"):null}):h}}var d=u.type?{inner:"",outer:"pie-outer",spider:"pie-spider"}[u.type]:"pie-outer",f=u.layout?Object(c.C)(u.layout)?u.layout:[u.layout]:[];u.layout=(d?[{type:d}]:[]).concat(f),a.label({fields:i?[o,i]:[o],callback:l,cfg:Object(s.a)(Object(s.a)({},u),{offset:uu(u.type,u.offset),type:"pie"})})}else a.label(!1);return t}function vu(t){var e=t.innerRadius,n=t.statistic,r=t.angleField,i=t.colorField,o=t.meta,a=nc(t.locale);if(e&&n){var s=as({},ou.statistic,n),l=s.title,u=s.content;return!1!==l&&(l=as({},{formatter:function(t){var e=t?t[i]:Object(c.K)(l.content)?a.get(["statistic","total"]):l.content;return(Object(c.s)(o,[i,"formatter"])||function(t){return t})(e)}},l)),!1!==u&&(u=as({},{formatter:function(t,e){var n=t?t[r]:function(t,e){var n=null;return Object(c.j)(t,(function(t){"number"==typeof t[e]&&(n+=t[e])})),n}(e,r),i=Object(c.s)(o,[r,"formatter"])||function(t){return t};return t||Object(c.K)(u.content)?i(n):u.content}},u)),as({},{statistic:{title:l,content:u}},t)}return t}function yu(t){var e=t.chart,n=vu(t.options),r=n.innerRadius,i=n.statistic;return e.getController("annotation").clear(!0),cs(qs())(t),r&&i&&Os(e,{statistic:i,plotType:"pie"}),t}function mu(t){var e=t.chart,n=t.options,r=n.tooltip,i=n.colorField,o=n.angleField,a=n.data;if(!1===r)e.tooltip(r);else if(e.tooltip(as({},r,{shared:!1})),hu(a,o)){var s=Object(c.s)(r,"fields"),l=Object(c.s)(r,"formatter");Object(c.G)(Object(c.s)(r,"fields"))&&(s=[i,o],l=l||function(t){return{name:t[i],value:Object(c.tb)(t[o])}}),e.geometries[0].tooltip(s.join("*"),oc(s,l))}return t}function bu(t){var e=t.chart,n=vu(t.options),r=n.interactions,i=n.statistic,o=n.annotations;return Object(c.j)(r,(function(t){var n,r;if(!1===t.enable)e.removeInteraction(t.type);else if("pie-statistic-active"===t.type){var a=[];(null===(n=t.cfg)||void 0===n?void 0:n.start)||(a=[{trigger:"element:mouseenter",action:"".concat("pie-statistic",":change"),arg:{statistic:i,annotations:o}}]),Object(c.j)(null===(r=t.cfg)||void 0===r?void 0:r.start,(function(t){a.push(Object(s.a)(Object(s.a)({},t),{arg:{statistic:i,annotations:o}}))})),e.interaction(t.type,as({},t.cfg,{start:a}))}else e.interaction(t.type,t.cfg||{})})),t}function xu(t){return cs(zs("pieStyle"),du,fu,Vs,pu,Ws,mu,gu,Gs,yu,bu,Ys)(t)}Lt("pie-statistic",lu),Ne("pie-statistic-active",{start:[{trigger:"element:mouseenter",action:"pie-statistic:change"}],end:[{trigger:"element:mouseleave",action:"pie-statistic:reset"}]}),Lt("pie-legend",cu),Ne("pie-legend-active",{start:[{trigger:"legend-item:mouseenter",action:"pie-legend:active"}],end:[{trigger:"legend-item:mouseleave",action:"pie-legend:reset"}]});var Ou=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pie",e}return Object(s.c)(e,t),e.getDefaultOptions=function(){return ou},e.prototype.changeData=function(t){this.chart.emit(l.BEFORE_CHANGE_DATA,yn.fromData(this.chart,l.BEFORE_CHANGE_DATA,null));var e=this.options,n=this.options.angleField,r=Ja(e.data,n),i=Ja(t,n);hu(r,n)||hu(i,n)?this.update({data:t}):(this.updateOption({data:t}),this.chart.data(i),yu({chart:this.chart,options:this.options}),this.chart.render(!0)),this.chart.emit(l.AFTER_CHANGE_DATA,yn.fromData(this.chart,l.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return xu},e}(vc),ju=["#FAAD14","#E8EDF3"],wu={percent:.2,color:ju,animation:{}};function Cu(t){var e=Object(c.c)(ps(t)?t:0,0,1);return[{current:"".concat(e),type:"current",percent:e},{current:"".concat(e),type:"target",percent:1}]}function _u(t){var e=t.chart,n=t.options,r=n.percent,i=n.progressStyle,o=n.color,a=n.barWidthRatio;return e.data(Cu(r)),lc(as({},t,{options:{xField:"current",yField:"percent",seriesField:"type",widthRatio:a,interval:{style:i,color:Object(c.Q)(o)?[o,ju[1]]:o},args:{zIndexReversed:!0,sortZIndex:!0}}})),e.tooltip(!1),e.axis(!1),e.legend(!1),t}function Mu(t){return t.chart.coordinate("rect").transpose(),t}function Su(t){return cs(_u,Us({}),Mu,Ys,Vs,qs())(t)}var Eu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="process",e}return Object(s.c)(e,t),e.getDefaultOptions=function(){return wu},e.prototype.changeData=function(t){this.updateOption({percent:t}),this.chart.changeData(Cu(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Su},e}(vc);function ku(t){var e=t.chart,n=t.options,r=n.innerRadius,i=n.radius;return e.coordinate("theta",{innerRadius:r,radius:i}),t}function Iu(t,e){var n=t.chart,r=t.options,i=r.innerRadius,o=r.statistic,a=r.percent,l=r.meta;if(n.getController("annotation").clear(!0),i&&o){var u=Object(c.s)(l,["percent","formatter"])||function(t){return"".concat((100*t).toFixed(2),"%")},h=o.content;h&&(h=as({},h,{content:Object(c.K)(h.content)?u(a):h.content})),Os(n,{statistic:Object(s.a)(Object(s.a)({},o),{content:h}),plotType:"ring-progress"},{percent:a})}return e&&n.render(!0),t}function Au(t){return cs(_u,Us({}),ku,Iu,Ys,Vs,qs())(t)}var Pu={percent:.2,innerRadius:.8,radius:.98,color:["#FAAD14","#E8EDF3"],statistic:{title:!1,content:{style:{fontSize:"14px",fontWeight:300,fill:"#4D4D4D",textAlign:"center",textBaseline:"middle"}}},animation:{}},Tu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ring-process",e}return Object(s.c)(e,t),e.getDefaultOptions=function(){return Pu},e.prototype.changeData=function(t){this.chart.emit(l.BEFORE_CHANGE_DATA,yn.fromData(this.chart,l.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t}),this.chart.data(Cu(t)),Iu({chart:this.chart,options:this.options},!0),this.chart.emit(l.AFTER_CHANGE_DATA,yn.fromData(this.chart,l.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Au},e}(vc),Bu=n(708),Lu={exp:Bu.regressionExp,linear:Bu.regressionLinear,loess:Bu.regressionLoess,log:Bu.regressionLog,poly:Bu.regressionPoly,pow:Bu.regressionPow,quad:Bu.regressionQuad};var Du=function(t,e){var n=e.view,r=e.options,i=r.xField,o=r.yField,a=n.getScaleByField(i),s=n.getScaleByField(o);return function(t,e,n){var r=[],i=t[0],o=null;if(t.length<=2)return function(t,e){var n=[];if(t.length){n.push(["M",t[0].x,t[0].y]);for(var r=1,i=t.length;r<i;r+=1){var o=t[r];n.push(["L",o.x,o.y])}e&&n.push(["Z"])}return n}(t,e);for(var a=0,s=t.length;a<s;a++){var c=t[a];o&&o.x===c.x&&o.y===c.y||(r.push(c.x),r.push(c.y),o=c)}var l=ms(r,e,n||[[0,0],[1,1]]);return l.unshift(["M",i.x,i.y]),l}(t.map((function(t){return n.getCoordinate().convert({x:a.scale(t[0]),y:s.scale(t[1])})})),!1)},Fu=function(t){var e,n=t.options,r=n.xField,i=n.yField,o=n.data,a=n.regressionLine,s=a.type,l=void 0===s?"linear":s,u=a.algorithm,h=a.equation,d=null;u?(e=Object(c.C)(u)?u:u(o),d=h):d=function(t,e){var n,r,i,o=function(t){return Number.isFinite(t)?(e=t,void 0===n&&(n=4),Math.round(e*Math.pow(10,n))/Math.pow(10,n)):"?";var e,n};switch(t){case"linear":return"y = ".concat(o(e.a),"x + ").concat(o(e.b),", R^2 = ").concat(o(e.rSquared));case"exp":return"y = ".concat(o(e.a),"e^(").concat(o(e.b),"x), R^2 = ").concat(o(e.rSquared));case"log":return"y = ".concat(o(e.a),"ln(x) + ").concat(o(e.b),", R^2 = ").concat(o(e.rSquared));case"quad":return"y = ".concat(o(e.a),"x^2 + ").concat(o(e.b),"x + ").concat(o(e.c),", R^2 = ").concat(o(e.rSquared));case"poly":for(var a="y = ".concat(o(null===(n=e.coefficients)||void 0===n?void 0:n[0])," + ").concat(o(null===(r=e.coefficients)||void 0===r?void 0:r[1]),"x + ").concat(o(null===(i=e.coefficients)||void 0===i?void 0:i[2]),"x^2"),s=3;s<e.coefficients.length;++s)a+=" + ".concat(o(e.coefficients[s]),"x^").concat(s);return"".concat(a,", R^2 = ").concat(o(e.rSquared));case"pow":return"y = ".concat(o(e.a),"x^").concat(o(e.b),", R^2 = ").concat(o(e.rSquared))}return null}(l,e=Lu[l]().x((function(t){return t[r]})).y((function(t){return t[i]}))(o));return[Du(e,t),d]};function Ru(t){var e=t.data,n=void 0===e?[]:e,r=t.xField,i=t.yField;if(n.length){for(var o=!0,a=!0,l=n[0],u=void 0,h=1;h<n.length&&(u=n[h],l[r]!==u[r]&&(o=!1),l[i]!==u[i]&&(a=!1),o||a);h++)l=u;var d=[];o&&d.push(r),a&&d.push(i);var f=qa(function(t){var e,n=t.meta,r=void 0===n?{}:n,i=t.xField,o=t.yField,a=t.data,l=a[0][i],u=a[0][o],h=l>0,d=u>0;function f(t,e){var n=Object(c.s)(r,[t]);function i(t){return Object(c.s)(n,t)}var o={};return"x"===e?(Object(c.M)(l)&&(Object(c.M)(i("min"))||(o.min=h?0:2*l),Object(c.M)(i("max"))||(o.max=h?2*l:0)),o):(Object(c.M)(u)&&(Object(c.M)(i("min"))||(o.min=d?0:2*u),Object(c.M)(i("max"))||(o.max=d?2*u:0)),o)}return Object(s.a)(Object(s.a)({},r),((e={})[i]=Object(s.a)(Object(s.a)({},r[i]),f(i,"x")),e[o]=Object(s.a)(Object(s.a)({},r[o]),f(o,"y")),e))}(t),d);return as({},t,{meta:f})}return t}function Nu(t){var e=t.chart,n=t.options,r=n.data,i=n.type,o=n.color,a=n.shape,l=n.pointStyle,u=n.shapeField,h=n.colorField,d=n.xField,f=n.yField,p=n.sizeField,g=n.size,v=n.tooltip;p&&(g||(g=[2,8]),Object(c.M)(g)&&(g=[g,g])),v&&!v.fields&&(v=Object(s.a)(Object(s.a)({},v),{fields:[d,f,h,p,u]})),e.data(r),hc(as({},t,{options:{seriesField:h,point:{color:o,shape:a,size:g,style:l},tooltip:v}}));var y=ls(e,"point");return i&&y.adjust(i),t}function zu(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField,s=Ru(n);return cs(Us(((e={})[o]=r,e[a]=i,e)))(as({},t,{options:s}))}function Wu(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return e.axis(o,r),e.axis(a,i),t}function $u(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField,o=n.shapeField,a=n.sizeField,s=n.shapeLegend,c=n.sizeLegend,l=!1!==r;return i&&e.legend(i,!!l&&r),o&&(s?e.legend(o,s):e.legend(o,!1!==s&&r)),a&&e.legend(a,c||!1),l||s||c||e.legend(!1),t}function Hu(t){var e=t.chart,n=t.options,r=n.label,i=n.yField,o=ls(e,"point");if(r){var a=r.callback,c=Object(s.f)(r,["callback"]);o.label({fields:[i],callback:a,cfg:fs(c)})}else o.label(!1);return t}function Yu(t){var e=t.options.quadrant,n=[];if(e){var r=e.xBaseline,i=void 0===r?0:r,o=e.yBaseline,a=void 0===o?0:o,c=e.labels,l=e.regionStyle,u=e.lineStyle,h=function(t,e){return{regionStyle:[{position:{start:[t,"max"],end:["max",e]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:["min","max"],end:[t,e]},style:{fill:"#a3dda1",opacity:.4}},{position:{start:["min",e],end:[t,"min"]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:[t,e],end:["max","min"]},style:{fill:"#a3dda1",opacity:.4}}],lineStyle:{stroke:"#9ba29a",lineWidth:1},labelStyle:[{position:["max",e],offsetX:-10,offsetY:-10,style:{textAlign:"right",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",e],offsetX:10,offsetY:-10,style:{textAlign:"left",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",e],offsetX:10,offsetY:10,style:{textAlign:"left",textBaseline:"top",fontSize:14,fill:"#ccc"}},{position:["max",e],offsetX:-10,offsetY:10,style:{textAlign:"right",textBaseline:"top",fontSize:14,fill:"#ccc"}}]}}(i,a);new Array(4).join(",").split(",").forEach((function(t,e){n.push(Object(s.a)(Object(s.a)({type:"region",top:!1},h.regionStyle[e].position),{style:as({},h.regionStyle[e].style,null==l?void 0:l[e])}),Object(s.a)({type:"text",top:!0},as({},h.labelStyle[e],null==c?void 0:c[e])))})),n.push({type:"line",top:!1,start:["min",a],end:["max",a],style:as({},h.lineStyle,u)},{type:"line",top:!1,start:[i,"min"],end:[i,"max"],style:as({},h.lineStyle,u)})}return cs(qs(n))(t)}function Vu(t){var e=t.options,n=t.chart,r=e.regressionLine;if(r){var i=r.style,o=r.equationStyle,a=void 0===o?{}:o,c=r.top,l=void 0!==c&&c,u=r.showEquation,h=void 0!==u&&u,d={stroke:"#9ba29a",lineWidth:2,opacity:.5},f={x:20,y:20,textAlign:"left",textBaseline:"middle",fontSize:14,fillOpacity:.5};n.annotation().shape({top:l,render:function(t,r){var o=t.addGroup({id:"".concat(n.id,"-regression-line"),name:"regression-line-group"}),c=Fu({view:r,options:e}),l=c[0],u=c[1];o.addShape("path",{name:"regression-line",attrs:Object(s.a)(Object(s.a)({path:l},d),i)}),h&&o.addShape("text",{name:"regression-equation",attrs:Object(s.a)(Object(s.a)(Object(s.a)({},f),a),{text:u})})}})}return t}function Gu(t){var e=t.chart,n=t.options.tooltip;return n?e.tooltip(n):!1===n&&e.tooltip(!1),t}function Ku(t){return cs(Nu,zu,Wu,$u,Gu,Hu,Fc,Ks,Xs,Hs,Yu,Ys,Vs,Vu)(t)}var Xu=as({},vc.getDefaultOptions(),{size:4,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!0,crosshairs:{type:"xy"}}});Ne("drag-move",{start:[{trigger:"plot:mousedown",action:"scale-translate:start"}],processing:[{trigger:"plot:mousemove",action:"scale-translate:translate",throttle:{wait:100,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseup",action:"scale-translate:end"}]});var Uu=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.type="scatter",r.on(l.BEFORE_RENDER,(function(t){var e,n,i=r,o=i.options,a=i.chart;if((null===(e=t.data)||void 0===e?void 0:e.source)===ma.FILTER){var c=r.chart.filterData(r.chart.getData());zu({chart:a,options:Object(s.a)(Object(s.a)({},o),{data:c})})}(null===(n=t.data)||void 0===n?void 0:n.source)===ma.RESET&&zu({chart:a,options:o})})),r}return Object(s.c)(e,t),e.getDefaultOptions=function(){return Xu},e.prototype.changeData=function(t){this.updateOption(Ru(as({},this.options,{data:t})));var e=this.options;zu({chart:this.chart,options:e}),this.chart.changeData(t)},e.prototype.getSchemaAdaptor=function(){return Ku},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e}(vc),qu="$$stock-range$$",Zu=as({},vc.getDefaultOptions(),{tooltip:{showMarkers:!1,showCrosshairs:!0,shared:!0,crosshairs:{type:"xy",follow:!0,text:function(t,e,n){var r;if("x"===t){var i=n[0];r=i?i.title:e}else r=e;return{position:"y"===t?"start":"end",content:r,style:{fill:"#dfdfdf"}}},textBackground:{padding:[2,4],style:{fill:"#666"}}}},interactions:[{type:"tooltip"}],legend:{position:"top-left"},risingFill:"#ef5350",fallingFill:"#26a69a"});function Qu(t,e){return Object(c.W)(t,(function(t){var n=t&&Object(s.a)({},t);if(Object(c.C)(e)&&n){var r=e[0],i=e[1],o=e[2],a=e[3];n.trend=n[r]<=n[i]?"up":"down",n[qu]=[n[r],n[i],n[o],n[a]]}return n}))}function Ju(t){var e=t.chart,n=t.options,r=n.yField,i=n.data,o=n.risingFill,a=n.fallingFill,s=n.tooltip,c=n.stockStyle;e.data(Qu(i,r));var l=s;return!1!==l&&(l=as({},{fields:r},l)),fc(as({},t,{options:{schema:{shape:"candle",color:[o,a],style:c},yField:qu,seriesField:"trend",rawFields:r,tooltip:l}})),t}function th(t){var e,n,r=t.chart,i=t.options,o=i.meta,a=i.xAxis,s=i.yAxis,c=i.xField,l=((e={})[c]={type:"timeCat",tickCount:6},e.trend={values:["up","down"]},e),u=as(l,o,((n={})[c]=qa(a,Ga),n[qu]=qa(s,Ga),n));return r.scale(u),t}function eh(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(qu,!1):e.axis(qu,i),t}function nh(t){var e=t.chart,n=t.options.tooltip;return!1!==n?e.tooltip(n):e.tooltip(!1),t}function rh(t){var e=t.chart,n=t.options.legend;return n?e.legend("trend",n):!1===n&&e.legend(!1),t}function ih(t){cs(Vs,Ju,th,eh,nh,rh,Hs,Ys,qs(),Ks)(t)}var oh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="stock",e}return Object(s.c)(e,t),e.getDefaultOptions=function(){return Zu},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return ih},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options.yField;this.chart.changeData(Qu(t,e))},e}(vc);function ah(t){return Object(c.W)(t||[],(function(t,e){return{x:"".concat(e),y:t}}))}var sh={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(t,e){return"".concat(Object(c.s)(e,[0,"data","y"],0))},containerTpl:'<div class="g2-tooltip"><div class="g2-tooltip-list"></div></div>',itemTpl:"<span>{value}</span>",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}},showCrosshairs:!0,crosshairs:{type:"x"}},ch={appendPadding:2,tooltip:Object(s.a)({},sh),animation:{}};function lh(t){var e=t.chart,n=t.options,r=n.data,i=n.color,o=n.areaStyle,a=n.point,s=n.line,c=null==a?void 0:a.state,l=ah(r);e.data(l);var u=as({},t,{options:{xField:"x",yField:"y",area:{color:i,style:o},line:s,point:a}}),h=as({},u,{options:{tooltip:!1}}),d=as({},u,{options:{tooltip:!1,state:c}});return sc(u),uc(h),hc(d),e.axis(!1),e.legend(!1),t}function uh(t){var e,n,r=t.options,i=r.xAxis,o=r.yAxis,a=ah(r.data);return cs(Us(((e={}).x=i,e.y=o,e),((n={}).x={type:"cat"},n.y=Za(a,"y"),n)))(t)}function hh(t){return cs(zs("areaStyle"),lh,uh,$s,Vs,Ys,qs())(t)}var dh={appendPadding:2,tooltip:Object(s.a)({},sh),color:"l(90) 0:#E5EDFE 1:#ffffff",areaStyle:{fillOpacity:.6},line:{size:1,color:"#5B8FF9"},animation:{}},fh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tiny-area",e}return Object(s.c)(e,t),e.getDefaultOptions=function(){return dh},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.chart;uh({chart:e,options:this.options}),e.changeData(ah(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return hh},e}(vc);function ph(t){var e=t.chart,n=t.options,r=n.data,i=n.color,o=n.columnStyle,a=n.columnWidthRatio,s=ah(r);return e.data(s),lc(as({},t,{options:{xField:"x",yField:"y",widthRatio:a,interval:{style:o,color:i}}})),e.axis(!1),e.legend(!1),e.interaction("element-active"),t}function gh(t){return cs(Vs,zs("columnStyle"),ph,uh,$s,Ys,qs())(t)}var vh={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(t,e){return"".concat(Object(c.s)(e,[0,"data","y"],0))},containerTpl:'<div class="g2-tooltip"><div class="g2-tooltip-list"></div></div>',itemTpl:"<span>{value}</span>",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}}},yh={appendPadding:2,tooltip:Object(s.a)({},vh),animation:{}},mh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tiny-column",e}return Object(s.c)(e,t),e.getDefaultOptions=function(){return yh},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.chart;uh({chart:e,options:this.options}),e.changeData(ah(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return gh},e}(vc);function bh(t){var e=t.chart,n=t.options,r=n.data,i=n.color,o=n.lineStyle,a=n.point,s=null==a?void 0:a.state,c=ah(r);e.data(c);var l=as({},t,{options:{xField:"x",yField:"y",line:{color:i,style:o},point:a}}),u=as({},l,{options:{tooltip:!1,state:s}});return uc(l),hc(u),e.axis(!1),e.legend(!1),t}function xh(t){return cs(bh,uh,Vs,$s,Ys,qs())(t)}var Oh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tiny-line",e}return Object(s.c)(e,t),e.getDefaultOptions=function(){return ch},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.chart;uh({chart:e,options:this.options}),e.changeData(ah(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return xh},e}(vc),jh={line:Mc,pie:xu,column:Zc,bar:rl,area:Ic,gauge:Gl,"tiny-line":xh,"tiny-column":gh,"tiny-area":hh,"ring-progress":Au,progress:Su,scatter:Ku,histogram:eu,funnel:Ll,stock:ih},wh={line:iu,pie:Ou,column:cl,bar:al,area:Pc,gauge:Kl,"tiny-line":Oh,"tiny-column":mh,"tiny-area":fh,"ring-progress":Tu,progress:Eu,scatter:Uu,histogram:nu,funnel:Fl,stock:oh},Ch={pie:{label:!1},column:{tooltip:{showMarkers:!1}},bar:{tooltip:{showMarkers:!1}}};function _h(t,e,n){var r=wh[t];r?(0,jh[t])({chart:e,options:as({},r.getDefaultOptions(),Object(c.s)(Ch,t,{}),n)}):console.error("could not find ".concat(t," plot"))}function Mh(t){var e=t.chart,n=t.options,r=n.views,i=n.legend;return Object(c.j)(r,(function(t){var n=t.region,r=t.data,i=t.meta,o=t.axes,a=t.coordinate,l=t.interactions,u=t.annotations,h=t.tooltip,d=t.geometries,f=e.createView({region:n});f.data(r);var p={};o&&Object(c.j)(o,(function(t,e){p[e]=qa(t,Ga)})),p=as({},i,p),f.scale(p),o?Object(c.j)(o,(function(t,e){f.axis(e,t)})):f.axis(!1),f.coordinate(a),Object(c.j)(d,(function(t){var e=ac({chart:f,options:t}).ext,n=t.adjust;n&&e.geometry.adjust(n)})),Object(c.j)(l,(function(t){!1===t.enable?f.removeInteraction(t.type):f.interaction(t.type,t.cfg)})),Object(c.j)(u,(function(t){f.annotation()[t.type](Object(s.a)({},t))})),"boolean"==typeof t.animation?f.animate(!1):(f.animate(!0),Object(c.j)(f.geometries,(function(e){e.animate(t.animation)}))),h&&(f.interaction("tooltip"),f.tooltip(h))})),i?Object(c.j)(i,(function(t,n){e.legend(n,t)})):e.legend(!1),e.tooltip(n.tooltip),t}function Sh(t){var e=t.chart,n=t.options,r=n.plots,i=n.data,o=void 0===i?[]:i;return Object(c.j)(r,(function(t){var n=t.type,r=t.region,i=t.options,a=void 0===i?{}:i,c=t.top,l=a.tooltip;if(c)_h(n,e,Object(s.a)(Object(s.a)({},a),{data:o}));else{var u=e.createView(Object(s.a)({region:r},qa(a,gc)));l&&u.interaction("tooltip"),_h(n,u,Object(s.a)({data:o},a))}})),t}function Eh(t){var e=t.chart,n=t.options;return e.option("slider",n.slider),t}function kh(t){return cs(Ys,Mh,Sh,Hs,Ys,Vs,$s,Eh,qs())(t)}Lt("association",function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.getAssociationItems=function(t,e){var n,r=this.context.event,i=e||{},o=i.linkField,a=i.dim,s=[];if(null===(n=r.data)||void 0===n?void 0:n.data){var l=r.data.data;Object(c.j)(t,(function(t){var e,n,r=o;if("x"===a?r=t.getXScale().field:"y"===a?r=null===(e=t.getYScales().find((function(t){return t.field===r})))||void 0===e?void 0:e.field:r||(r=null===(n=t.getGroupScales()[0])||void 0===n?void 0:n.field),r){var i=Object(c.W)(us(t),(function(e){var n=!1,i=!1,o=Object(c.C)(l)?Object(c.s)(l[0],r):Object(c.s)(l,r);return function(t,e){var n=t.getModel().data;return Object(c.C)(n)?n[0][e]:n[e]}(e,r)===o?n=!0:i=!0,{element:e,view:t,active:n,inactive:i}}));s.push.apply(s,i)}}))}return s},e.prototype.showTooltip=function(t){var e=_s(this.context.view),n=this.getAssociationItems(e,t);Object(c.j)(n,(function(t){if(t.active){var e=t.element.shape.getCanvasBBox();t.view.showTooltip({x:e.minX+e.width/2,y:e.minY+e.height/2})}}))},e.prototype.hideTooltip=function(){var t=_s(this.context.view);Object(c.j)(t,(function(t){t.hideTooltip()}))},e.prototype.active=function(t){var e=Cs(this.context.view),n=this.getAssociationItems(e,t);Object(c.j)(n,(function(t){var e=t.active,n=t.element;e&&n.setState("active",!0)}))},e.prototype.selected=function(t){var e=Cs(this.context.view),n=this.getAssociationItems(e,t);Object(c.j)(n,(function(t){var e=t.active,n=t.element;e&&n.setState("selected",!0)}))},e.prototype.highlight=function(t){var e=Cs(this.context.view),n=this.getAssociationItems(e,t);Object(c.j)(n,(function(t){var e=t.inactive,n=t.element;e&&n.setState("inactive",!0)}))},e.prototype.reset=function(){var t=Cs(this.context.view);Object(c.j)(t,(function(t){var e;e=us(t),Object(c.j)(e,(function(t){t.hasState("active")&&t.setState("active",!1),t.hasState("selected")&&t.setState("selected",!1),t.hasState("inactive")&&t.setState("inactive",!1)}))}))},e}(At)),Ne("association-active",{start:[{trigger:"element:mouseenter",action:"association:active"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Ne("association-selected",{start:[{trigger:"element:mouseenter",action:"association:selected"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Ne("association-highlight",{start:[{trigger:"element:mouseenter",action:"association:highlight"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Ne("association-tooltip",{start:[{trigger:"element:mousemove",action:"association:showTooltip"}],end:[{trigger:"element:mouseleave",action:"association:hideTooltip"}]});var Ih,Ah=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="mix",e}return Object(s.c)(e,t),e.prototype.getSchemaAdaptor=function(){return kh},e}(vc);!function(t){t.DEV="DEV",t.BETA="BETA",t.STABLE="STABLE"}(Ih||(Ih={}));!function(){function t(){}Object.defineProperty(t,"MultiView",{get:function(){var t,e;return t=Ih.STABLE,e="MultiView",console.warn(t===Ih.DEV?"Plot '".concat(e,"' is in DEV stage, just give us issues."):t===Ih.BETA?"Plot '".concat(e,"' is in BETA stage, DO NOT use it in production env."):t===Ih.STABLE?"Plot '".concat(e,"' is in STABLE stage, import it by \"import { ").concat(e," } from '@antv/g2plot'\"."):"invalid Stage type."),Ah},enumerable:!1,configurable:!0})}();function Ph(t,e,n,r,i){var o=[];e.forEach((function(e){r.forEach((function(r){var i,a=((i={})[t]=r[t],i[n]=e,i[e]=r[e],i);o.push(a)}))}));var a=Object.values(Object(c.w)(o,n)),s=a[0],l=void 0===s?[]:s,u=a[1],h=void 0===u?[]:u;return i?[l.reverse(),h.reverse()]:[l,h]}function Th(t){return"vertical"!==t}function Bh(t,e,n){var r=e[0],i=e[1],o=r.autoPadding,a=i.autoPadding,s=t.__axisPosition,c=s.layout,l=s.position;if(Th(c)&&"top"===l&&(r.autoPadding=n.instance(o.top,0,o.bottom,o.left),i.autoPadding=n.instance(a.top,o.left,a.bottom,0)),Th(c)&&"bottom"===l&&(r.autoPadding=n.instance(o.top,o.right/2+5,o.bottom,o.left),i.autoPadding=n.instance(a.top,a.right,a.bottom,o.right/2+5)),!Th(c)&&"bottom"===l){var u=o.left>=a.left?o.left:a.left;r.autoPadding=n.instance(o.top,o.right,o.bottom/2+5,u),i.autoPadding=n.instance(o.bottom/2+5,a.right,a.bottom,u)}if(!Th(c)&&"top"===l){u=o.left>=a.left?o.left:a.left;r.autoPadding=n.instance(o.top,o.right,0,u),i.autoPadding=n.instance(0,a.right,o.top,u)}}function Lh(t){var e,n,r=t.chart,i=t.options,o=i.data,a=i.xField,s=i.yField,c=i.color,l=i.barStyle,u=i.widthRatio,h=i.legend,d=i.layout,f=Ph(a,s,"series-field-key",o,Th(d));h?r.legend("series-field-key",h):!1===h&&r.legend(!1);var p=f[0],g=f[1];return Th(d)?((e=r.createView({region:{start:{x:0,y:0},end:{x:.5,y:1}},id:"first-axes-view"})).coordinate().transpose().reflect("x"),(n=r.createView({region:{start:{x:.5,y:0},end:{x:1,y:1}},id:"second-axes-view"})).coordinate().transpose(),e.data(p),n.data(g)):(e=r.createView({region:{start:{x:0,y:0},end:{x:1,y:.5}},id:"first-axes-view"}),(n=r.createView({region:{start:{x:0,y:.5},end:{x:1,y:1}},id:"second-axes-view"})).coordinate().reflect("y"),e.data(p),n.data(g)),lc(as({},t,{chart:e,options:{widthRatio:u,xField:a,yField:s[0],seriesField:"series-field-key",interval:{color:c,style:l}}})),lc(as({},t,{chart:n,options:{xField:a,yField:s[1],seriesField:"series-field-key",widthRatio:u,interval:{color:c,style:l}}})),t}function Dh(t){var e,n,r,i=t.options,o=t.chart,a=i.xAxis,s=i.yAxis,l=i.xField,u=i.yField,h=ws(o,"first-axes-view"),d=ws(o,"second-axes-view"),f={};return Object(c.T)((null==i?void 0:i.meta)||{}).map((function(t){Object(c.s)(null==i?void 0:i.meta,[t,"alias"])&&(f[t]=i.meta[t].alias)})),o.scale(((e={})["series-field-key"]={sync:!0,formatter:function(t){return Object(c.s)(f,t,t)}},e)),Us(((n={})[l]=a,n[u[0]]=s[u[0]],n))(as({},t,{chart:h})),Us(((r={})[l]=a,r[u[1]]=s[u[1]],r))(as({},t,{chart:d})),t}function Fh(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField,c=n.layout,l=ws(e,"first-axes-view"),u=ws(e,"second-axes-view");return"bottom"===(null==r?void 0:r.position)?u.axis(o,Object(s.a)(Object(s.a)({},r),{label:{formatter:function(){return""}}})):u.axis(o,!1),!1===r?l.axis(o,!1):l.axis(o,Object(s.a)({position:Th(c)?"top":"bottom"},r)),!1===i?(l.axis(a[0],!1),u.axis(a[1],!1)):(l.axis(a[0],i[a[0]]),u.axis(a[1],i[a[1]])),e.__axisPosition={position:l.getOptions().axes[o].position,layout:c},t}function Rh(t){var e=t.chart;return Hs(as({},t,{chart:ws(e,"first-axes-view")})),Hs(as({},t,{chart:ws(e,"second-axes-view")})),t}function Nh(t){var e=t.chart,n=t.options,r=n.yField,i=n.yAxis;return Zs(as({},t,{chart:ws(e,"first-axes-view"),options:{yAxis:i[r[0]]}})),Zs(as({},t,{chart:ws(e,"second-axes-view"),options:{yAxis:i[r[1]]}})),t}function zh(t){var e=t.chart;return Vs(as({},t,{chart:ws(e,"first-axes-view")})),Vs(as({},t,{chart:ws(e,"second-axes-view")})),Vs(t),t}function Wh(t){var e=t.chart;return Ys(as({},t,{chart:ws(e,"first-axes-view")})),Ys(as({},t,{chart:ws(e,"second-axes-view")})),t}function $h(t){var e,n,r=this,i=t.chart,o=t.options,a=o.label,c=o.yField,l=o.layout,u=ws(i,"first-axes-view"),h=ws(i,"second-axes-view"),d=ls(u,"interval"),f=ls(h,"interval");if(a){var p=a.callback,g=Object(s.f)(a,["callback"]);g.position||(g.position="middle"),void 0===g.offset&&(g.offset=2);var v=Object(s.a)({},g);if(Th(l)){var y=(null===(e=v.style)||void 0===e?void 0:e.textAlign)||("middle"===g.position?"center":"left");g.style=as({},g.style,{textAlign:y});v.style=as({},v.style,{textAlign:{left:"right",right:"left",center:"center"}[y]})}else{var m={top:"bottom",bottom:"top",middle:"middle"};"string"==typeof g.position?g.position=m[g.position]:"function"==typeof g.position&&(g.position=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return m[g.position.apply(r,t)]});var b=(null===(n=v.style)||void 0===n?void 0:n.textBaseline)||"bottom";v.style=as({},v.style,{textBaseline:b});g.style=as({},g.style,{textBaseline:{top:"bottom",bottom:"top",middle:"middle"}[b]})}d.label({fields:[c[0]],callback:p,cfg:fs(v)}),f.label({fields:[c[1]],callback:p,cfg:fs(g)})}else d.label(!1),f.label(!1);return t}function Hh(t){return cs(Lh,Dh,Fh,Nh,zh,$h,$s,Rh,Wh)(t)}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bidirectional-bar",e}Object(s.c)(e,t),e.getDefaultOptions=function(){return as({},t.getDefaultOptions.call(this),{syncViewPadding:Bh})},e.prototype.changeData=function(t){void 0===t&&(t=[]),this.chart.emit(l.BEFORE_CHANGE_DATA,yn.fromData(this.chart,l.BEFORE_CHANGE_DATA,null)),this.updateOption({data:t});var e=this.options,n=Ph(e.xField,e.yField,"series-field-key",t,Th(e.layout)),r=n[0],i=n[1],o=ws(this.chart,"first-axes-view"),a=ws(this.chart,"second-axes-view");o.data(r),a.data(i),this.chart.render(!0),this.chart.emit(l.AFTER_CHANGE_DATA,yn.fromData(this.chart,l.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Hh},e.SERIES_FIELD_KEY="series-field-key"}(vc);var Yh,Vh=as({},vc.getDefaultOptions(),{meta:(Yh={},Yh.$$range$$={min:0,alias:"low-q1-median-q3-high"},Yh),interactions:[{type:"active-region"}],tooltip:{showMarkers:!1,shared:!0},boxStyle:{lineWidth:1}}),Gh=function(t,e){var n=t;if(Array.isArray(e)){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4];n=Object(c.W)(t,(function(t){return t.$$range$$=[t[r],t[i],t[o],t[a],t[s]],t}))}return n};function Kh(t){var e=t.chart,n=t.options,r=n.xField,i=n.yField,o=n.groupField,a=n.color,s=n.tooltip,l=n.boxStyle;e.data(Gh(n.data,i));var u=Object(c.C)(i)?"$$range$$":i,h=i?Object(c.C)(i)?i:[i]:[],d=s;!1!==d&&(d=as({},{fields:Object(c.C)(i)?i:[]},d));var f=fc(as({},t,{options:{xField:r,yField:u,seriesField:o,tooltip:d,rawFields:h,label:!1,schema:{shape:"box",color:a,style:l}}})).ext;return o&&f.geometry.adjust("dodge"),t}function Xh(t){var e=t.chart,n=t.options,r=n.xField,i=n.data,o=n.outliersField,a=n.outliersStyle,c=n.padding,l=n.label;if(!o)return t;var u=e.createView({padding:c,id:"outliers_view"}),h=i.reduce((function(t,e){return e[o].forEach((function(n){var r;return t.push(Object(s.a)(Object(s.a)({},e),((r={})[o]=n,r)))})),t}),[]);return u.data(h),hc({chart:u,options:{xField:r,yField:o,point:{shape:"circle",style:a},label:l}}),u.axis(!1),t}function Uh(t){var e,n,r=t.chart,i=t.options,o=i.meta,a=i.xAxis,s=i.yAxis,c=i.xField,l=i.yField,u=i.outliersField,h=Array.isArray(l)?"$$range$$":l,d={};if(u){(e={})[u]={sync:"$$y_outliers$$",nice:!0},e[h]={sync:"$$y_outliers$$",nice:!0},d=e}var f=as(d,o,((n={})[c]=qa(a,Ga),n[h]=qa(s,Ga),n));return r.scale(f),t}function qh(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField,s=Array.isArray(a)?"$$range$$":a;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis("$$range$$",!1):e.axis(s,i),t}function Zh(t){var e=t.chart,n=t.options,r=n.legend,i=n.groupField;return i?r?e.legend(i,r):e.legend(i,{position:"bottom"}):e.legend(!1),t}function Qh(t){return cs(Kh,Xh,Uh,qh,Zh,$s,qs(),Hs,Ys,Vs)(t)}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="box",e}Object(s.c)(e,t),e.getDefaultOptions=function(){return Vh},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options.yField,n=this.chart.views.find((function(t){return"outliers_view"===t.id}));n&&n.data(t),this.chart.changeData(Gh(t,e))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Qh}}(vc);function Jh(t,e,n){return t.length>1?"".concat(e,"_").concat(n):"".concat(e)}function td(t){var e=t.data,n=t.xField,r=t.measureField,i=t.rangeField,o=t.targetField,a=t.layout,s=[],c=[];e.forEach((function(t,e){var a=[t[i]].flat();a.sort((function(t,e){return t-e})),a.forEach((function(r,o){var c,l=0===o?r:a[o]-a[o-1];s.push(((c={rKey:"".concat(i,"_").concat(o)})[n]=n?t[n]:String(e),c[i]=l,c))}));var l=[t[r]].flat();l.forEach((function(i,o){var a;s.push(((a={mKey:Jh(l,r,o)})[n]=n?t[n]:String(e),a[r]=i,a))}));var u=[t[o]].flat();u.forEach((function(r,i){var a;s.push(((a={tKey:Jh(u,o,i)})[n]=n?t[n]:String(e),a[o]=r,a))})),c.push(t[i],t[r],t[o])}));var l=Math.min.apply(Math,c.flat(1/0)),u=Math.max.apply(Math,c.flat(1/0));return l=l>0?0:l,"vertical"===a&&s.reverse(),{min:l,max:u,ds:s}}function ed(t){var e=t.chart,n=t.options,r=n.bulletStyle,i=n.targetField,o=n.rangeField,a=n.measureField,l=n.xField,u=n.color,h=n.layout,d=n.size,f=n.label,p=td(n),g=p.min,v=p.max,y=p.ds;return e.data(y),lc(as({},t,{options:{xField:l,yField:o,seriesField:"rKey",isStack:!0,label:Object(c.s)(f,"range"),interval:{color:Object(c.s)(u,"range"),style:Object(c.s)(r,"range"),size:Object(c.s)(d,"range")}}})),e.geometries[0].tooltip(!1),lc(as({},t,{options:{xField:l,yField:a,seriesField:"mKey",isStack:!0,label:Object(c.s)(f,"measure"),interval:{color:Object(c.s)(u,"measure"),style:Object(c.s)(r,"measure"),size:Object(c.s)(d,"measure")}}})),hc(as({},t,{options:{xField:l,yField:i,seriesField:"tKey",label:Object(c.s)(f,"target"),point:{color:Object(c.s)(u,"target"),style:Object(c.s)(r,"target"),size:Object(c.I)(Object(c.s)(d,"target"))?function(t){return Object(c.s)(d,"target")(t)/2}:Object(c.s)(d,"target")/2,shape:"horizontal"===h?"line":"hyphen"}}})),"horizontal"===h&&e.coordinate().transpose(),Object(s.a)(Object(s.a)({},t),{ext:{data:{min:g,max:v}}})}function nd(t){var e,n,r=t.options,i=t.ext,o=r.xAxis,a=r.yAxis,s=r.targetField,c=r.rangeField,l=r.measureField,u=r.xField,h=i.data;return cs(Us(((e={})[u]=o,e[l]=a,e),((n={})[l]={min:null==h?void 0:h.min,max:null==h?void 0:h.max,sync:!0},n[s]={sync:"".concat(l)},n[c]={sync:"".concat(l)},n)))(t)}function rd(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.measureField,s=n.rangeField,c=n.targetField;return e.axis("".concat(s),!1),e.axis("".concat(c),!1),!1===r?e.axis("".concat(o),!1):e.axis("".concat(o),r),!1===i?e.axis("".concat(a),!1):e.axis("".concat(a),i),t}function id(t){var e=t.chart,n=t.options.legend;return e.removeInteraction("legend-filter"),e.legend(n),e.legend("rKey",!1),e.legend("mKey",!1),e.legend("tKey",!1),t}function od(t){var e=t.chart,n=t.options,r=n.label,i=n.measureField,o=n.targetField,a=n.rangeField,l=e.geometries,u=l[0],h=l[1],d=l[2];return Object(c.s)(r,"range")?u.label("".concat(a),Object(s.a)({layout:[{type:"limit-in-plot"}]},fs(r.range))):u.label(!1),Object(c.s)(r,"measure")?h.label("".concat(i),Object(s.a)({layout:[{type:"limit-in-plot"}]},fs(r.measure))):h.label(!1),Object(c.s)(r,"target")?d.label("".concat(o),Object(s.a)({layout:[{type:"limit-in-plot"}]},fs(r.target))):d.label(!1),t}function ad(t){cs(ed,nd,rd,id,Vs,od,$s,Hs,Ys)(t)}var sd=as({},vc.getDefaultOptions(),{layout:"horizontal",size:{range:30,measure:20,target:20},xAxis:{tickLine:!1,line:null},bulletStyle:{range:{fillOpacity:.5}},label:{measure:{position:"right"}},tooltip:{showMarkers:!1}}),cd=(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bullet",e}Object(s.c)(e,t),e.getDefaultOptions=function(){return sd},e.prototype.changeData=function(t){this.updateOption({data:t});var e=td(this.options),n=e.min,r=e.max,i=e.ds;nd({options:this.options,ext:{data:{min:n,max:r}},chart:this.chart}),this.chart.changeData(i)},e.prototype.getSchemaAdaptor=function(){return ad},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()}}(vc),{y:0,nodeWidthRatio:.05,weight:!1,nodePaddingRatio:.1,id:function(t){return t.id},source:function(t){return t.source},target:function(t){return t.target},sourceWeight:function(t){return t.value||1},targetWeight:function(t){return t.value||1},sortBy:null});function ld(t,e){var n=function(t){return Object(c.b)({},cd,t)}(t),r={},i=e.nodes,o=e.links;return i.forEach((function(t){var e=n.id(t);r[e]=t})),function(t,e,n){Object(c.r)(t,(function(t,r){t.inEdges=e.filter((function(t){return"".concat(n.target(t))==="".concat(r)})),t.outEdges=e.filter((function(t){return"".concat(n.source(t))==="".concat(r)})),t.edges=t.outEdges.concat(t.inEdges),t.frequency=t.edges.length,t.value=0,t.inEdges.forEach((function(e){t.value+=n.targetWeight(e)})),t.outEdges.forEach((function(e){t.value+=n.sourceWeight(e)}))}))}(r,o,n),function(t,e){var n={weight:function(t,e){return e.value-t.value},frequency:function(t,e){return e.frequency-t.frequency},id:function(t,n){return"".concat(e.id(t)).localeCompare("".concat(e.id(n)))}}[e.sortBy];!n&&Object(c.I)(e.sortBy)&&(n=e.sortBy),n&&t.sort(n)}(i,n),{nodes:function(t,e){var n=t.length;if(!n)throw new TypeError("Invalid nodes: it's empty!");if(e.weight){var r=e.nodePaddingRatio;if(r<0||r>=1)throw new TypeError("Invalid nodePaddingRatio: it must be in range [0, 1)!");var i=r/(2*n),o=e.nodeWidthRatio;if(o<=0||o>=1)throw new TypeError("Invalid nodeWidthRatio: it must be in range (0, 1)!");var a=0;t.forEach((function(t){a+=t.value})),t.forEach((function(t){t.weight=t.value/a,t.width=t.weight*(1-r),t.height=o})),t.forEach((function(n,r){for(var a=0,s=r-1;s>=0;s--)a+=t[s].width+2*i;var c=n.minX=i+a,l=n.maxX=n.minX+n.width,u=n.minY=e.y-o/2,h=n.maxY=u+o;n.x=[c,l,l,c],n.y=[u,u,h,h]}))}else{var s=1/n;t.forEach((function(t,n){t.x=(n+.5)*s,t.y=e.y}))}return t}(i,n),links:function(t,e,n){if(n.weight){var r={};Object(c.r)(t,(function(t,e){r[e]=t.value})),e.forEach((function(e){var i=n.source(e),o=n.target(e),a=t[i],s=t[o];if(a&&s){var c=r[i],l=n.sourceWeight(e),u=a.minX+(a.value-c)/a.value*a.width,h=u+l/a.value*a.width;r[i]-=l;var d=r[o],f=n.targetWeight(e),p=s.minX+(s.value-d)/s.value*s.width,g=p+f/s.value*s.width;r[o]-=f;var v=n.y;e.x=[u,h,p,g],e.y=[v,v,v,v],e.source=a,e.target=s}}))}else e.forEach((function(e){var r=t[n.source(e)],i=t[n.target(e)];r&&i&&(e.x=[r.x,i.x],e.y=[r.y,i.y],e.source=r,e.target=i)}));return e}(r,o,n)}}var ud={nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.5,lineWidth:2},label:{fields:["x","name"],callback:function(t,e){return{offsetX:(t[0]+t[1])/2>.5?-4:4,content:e}},labelEmit:!0,style:{fill:"#8c8c8c"}},tooltip:{showTitle:!1,showMarkers:!1,fields:["source","target","value","isNode"],showContent:function(t){return!Object(c.s)(t,[0,"data","isNode"])},formatter:function(t){var e=t.source,n=t.target,r=t.value;return{name:"".concat(e," -> ").concat(n),value:r}}},interactions:[{type:"element-active"}],weight:!0,nodePaddingRatio:.1,nodeWidthRatio:.05};function hd(t){var e=t.options,n=e.data,r=e.sourceField,i=e.targetField,o=e.weightField,a=e.nodePaddingRatio,c=e.nodeWidthRatio,l=e.rawFields,u=void 0===l?[]:l,h=ld({weight:!0,nodePaddingRatio:a,nodeWidthRatio:c},Qa(n,r,i,o)),d=h.nodes,f=h.links,p=d.map((function(t){return Object(s.a)(Object(s.a)({},qa(t,Object(s.g)(["id","x","y","name"],u,!0))),{isNode:!0})})),g=f.map((function(t){return Object(s.a)(Object(s.a)({source:t.source.name,target:t.target.name,name:t.source.name||t.target.name},qa(t,Object(s.g)(["x","y","value"],u,!0))),{isNode:!1})}));return Object(s.a)(Object(s.a)({},t),{ext:Object(s.a)(Object(s.a)({},t.ext),{chordData:{nodesData:p,edgesData:g}})})}function dd(t){var e;return t.chart.scale(((e={x:{sync:!0,nice:!0},y:{sync:!0,nice:!0,max:1}}).name={sync:"color"},e.source={sync:"color"},e)),t}function fd(t){return t.chart.axis(!1),t}function pd(t){return t.chart.legend(!1),t}function gd(t){var e=t.chart,n=t.options.tooltip;return e.tooltip(n),t}function vd(t){return t.chart.coordinate("polar").reflect("y"),t}function yd(t){var e=t.chart,n=t.options,r=t.ext.chordData.nodesData,i=n.nodeStyle,o=n.label,a=n.tooltip,s=e.createView();return s.data(r),dc({chart:s,options:{xField:"x",yField:"y",seriesField:"name",polygon:{style:i},label:o,tooltip:a}}),t}function md(t){var e=t.chart,n=t.options,r=t.ext.chordData.edgesData,i=n.edgeStyle,o=n.tooltip,a=e.createView();return a.data(r),cc({chart:a,options:{xField:"x",yField:"y",seriesField:"source",edge:{style:i,shape:"arc"},tooltip:o}}),t}function bd(t){var e,n=t.chart;return Ms(n,t.options.animation,(e=n,Object(c.s)(e,["views","length"],0)<=0?e.geometries:Object(c.ib)(e.views,(function(t,e){return t.concat(e.geometries)}),e.geometries))),t}function xd(t){return cs(Vs,hd,vd,dd,fd,pd,gd,md,yd,Hs,Gs,bd)(t)}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="chord",e}Object(s.c)(e,t),e.getDefaultOptions=function(){return ud},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return xd}}(vc);var Od=["x","y","r","name","value","path","depth"],jd={colorField:"name",autoFit:!0,pointStyle:{lineWidth:0,stroke:"#fff"},legend:!1,hierarchyConfig:{size:[1,1],padding:0},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1}},wd={position:"top-left",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}},Cd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="drill-down",e.historyCache=[],e.breadCrumbGroup=null,e.breadCrumbCfg=wd,e}return Object(s.c)(e,t),e.prototype.click=function(){var t=Object(c.s)(this.context,["event","data","data"]);if(!t)return!1;this.drill(t),this.drawBreadCrumb()},e.prototype.resetPosition=function(){if(this.breadCrumbGroup){var t=this.context.view.getCoordinate(),e=this.breadCrumbGroup,n=e.getBBox(),r=this.getButtonCfg().position,i={x:t.start.x,y:t.end.y-(n.height+10)};t.isPolar&&(i={x:0,y:0}),"bottom-left"===r&&(i={x:t.start.x,y:t.start.y});var o=_r.transform(null,[["t",i.x+0,i.y+n.height+5]]);e.setMatrix(o)}},e.prototype.back=function(){Object(c.mb)(this.historyCache)&&this.backTo(this.historyCache.slice(0,-1))},e.prototype.reset=function(){this.historyCache[0]&&this.backTo(this.historyCache.slice(0,1)),this.historyCache=[],this.hideCrumbGroup()},e.prototype.drill=function(t){var e=this.context.view,n=Object(c.s)(e,["interactions","drill-down","cfg","transformData"],(function(t){return t})),r=n(Object(s.a)({data:t.data},t["hierarchy-data-transform-params"]));e.changeData(r);for(var i=[],o=t;o;){var a=o.data;i.unshift({id:"".concat(a.name,"_").concat(o.height,"_").concat(o.depth),name:a.name,children:n(Object(s.a)({data:a},t["hierarchy-data-transform-params"]))}),o=o.parent}this.historyCache=(this.historyCache||[]).slice(0,-1).concat(i)},e.prototype.backTo=function(t){if(t&&!(t.length<=0)){var e=this.context.view,n=Object(c.U)(t).children;e.changeData(n),t.length>1?(this.historyCache=t,this.drawBreadCrumb()):(this.historyCache=[],this.hideCrumbGroup())}},e.prototype.getButtonCfg=function(){var t=this.context.view,e=Object(c.s)(t,["interactions","drill-down","cfg","drillDownConfig"]);return as(this.breadCrumbCfg,null==e?void 0:e.breadCrumb,this.cfg)},e.prototype.drawBreadCrumb=function(){this.drawBreadCrumbGroup(),this.resetPosition(),this.breadCrumbGroup.show()},e.prototype.drawBreadCrumbGroup=function(){var t=this,e=this.getButtonCfg(),n=this.historyCache;this.breadCrumbGroup?this.breadCrumbGroup.clear():this.breadCrumbGroup=this.context.view.foregroundGroup.addGroup({name:"drilldown-bread-crumb"});var r=0;n.forEach((function(i,o){var a=t.breadCrumbGroup.addShape({type:"text",id:i.id,name:"".concat("drilldown-bread-crumb","_").concat(i.name,"_text"),attrs:Object(s.a)(Object(s.a)({text:0!==o||Object(c.K)(e.rootText)?i.name:e.rootText},e.textStyle),{x:r,y:0})}),l=a.getBBox();if(r+=l.width+4,a.on("click",(function(e){var r,i=e.target.get("id");if(i!==(null===(r=Object(c.U)(n))||void 0===r?void 0:r.id)){var o=n.slice(0,n.findIndex((function(t){return t.id===i}))+1);t.backTo(o)}})),a.on("mouseenter",(function(t){var r;t.target.get("id")!==(null===(r=Object(c.U)(n))||void 0===r?void 0:r.id)?a.attr(e.activeTextStyle):a.attr({cursor:"default"})})),a.on("mouseleave",(function(){a.attr(e.textStyle)})),o<n.length-1){var u=t.breadCrumbGroup.addShape({type:"text",name:"".concat(e.name,"_").concat(i.name,"_divider"),attrs:Object(s.a)(Object(s.a)({text:e.dividerText},e.textStyle),{x:r,y:0})}).getBBox();r+=u.width+4}}))},e.prototype.hideCrumbGroup=function(){this.breadCrumbGroup&&this.breadCrumbGroup.hide()},e.prototype.destroy=function(){this.breadCrumbGroup&&this.breadCrumbGroup.remove(),t.prototype.destroy.call(this)},e}(At);var _d=function(t){for(var e,n,r=0,i=(t=function(t){for(var e,n,r=t.length;r;)n=Math.random()*r--|0,e=t[r],t[r]=t[n],t[n]=e;return t}(Array.from(t))).length,o=[];r<i;)e=t[r],n&&Ed(n,e)?++r:(n=Id(o=Md(o,e)),r=0);return n};function Md(t,e){var n,r;if(kd(e,t))return[e];for(n=0;n<t.length;++n)if(Sd(e,t[n])&&kd(Ad(t[n],e),t))return[t[n],e];for(n=0;n<t.length-1;++n)for(r=n+1;r<t.length;++r)if(Sd(Ad(t[n],t[r]),e)&&Sd(Ad(t[n],e),t[r])&&Sd(Ad(t[r],e),t[n])&&kd(Pd(t[n],t[r],e),t))return[t[n],t[r],e];throw new Error}function Sd(t,e){var n=t.r-e.r,r=e.x-t.x,i=e.y-t.y;return n<0||n*n<r*r+i*i}function Ed(t,e){var n=t.r-e.r+1e-9*Math.max(t.r,e.r,1),r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function kd(t,e){for(var n=0;n<e.length;++n)if(!Ed(t,e[n]))return!1;return!0}function Id(t){switch(t.length){case 1:return{x:(e=t[0]).x,y:e.y,r:e.r};case 2:return Ad(t[0],t[1]);case 3:return Pd(t[0],t[1],t[2])}var e}function Ad(t,e){var n=t.x,r=t.y,i=t.r,o=e.x,a=e.y,s=e.r,c=o-n,l=a-r,u=s-i,h=Math.sqrt(c*c+l*l);return{x:(n+o+c/h*u)/2,y:(r+a+l/h*u)/2,r:(h+i+s)/2}}function Pd(t,e,n){var r=t.x,i=t.y,o=t.r,a=e.x,s=e.y,c=e.r,l=n.x,u=n.y,h=n.r,d=r-a,f=r-l,p=i-s,g=i-u,v=c-o,y=h-o,m=r*r+i*i-o*o,b=m-a*a-s*s+c*c,x=m-l*l-u*u+h*h,O=f*p-d*g,j=(p*x-g*b)/(2*O)-r,w=(g*v-p*y)/O,C=(f*b-d*x)/(2*O)-i,_=(d*y-f*v)/O,M=w*w+_*_-1,S=2*(o+j*w+C*_),E=j*j+C*C-o*o,k=-(M?(S+Math.sqrt(S*S-4*M*E))/(2*M):E/S);return{x:r+j+w*k,y:i+C+_*k,r:k}}function Td(t,e,n){var r,i,o,a,s=t.x-e.x,c=t.y-e.y,l=s*s+c*c;l?(i=e.r+n.r,i*=i,a=t.r+n.r,i>(a*=a)?(r=(l+a-i)/(2*l),o=Math.sqrt(Math.max(0,a/l-r*r)),n.x=t.x-r*s-o*c,n.y=t.y-r*c+o*s):(r=(l+i-a)/(2*l),o=Math.sqrt(Math.max(0,i/l-r*r)),n.x=e.x+r*s-o*c,n.y=e.y+r*c+o*s)):(n.x=e.x+n.r,n.y=e.y)}function Bd(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function Ld(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,o=(e.y*n.r+n.y*e.r)/r;return i*i+o*o}function Dd(t){this._=t,this.next=null,this.previous=null}function Fd(t){if(!(o=(e=t,t="object"==typeof e&&"length"in e?e:Array.from(e)).length))return 0;var e,n,r,i,o,a,s,c,l,u,h,d;if((n=t[0]).x=0,n.y=0,!(o>1))return n.r;if(r=t[1],n.x=-r.r,r.x=n.r,r.y=0,!(o>2))return n.r+r.r;Td(r,n,i=t[2]),n=new Dd(n),r=new Dd(r),i=new Dd(i),n.next=i.previous=r,r.next=n.previous=i,i.next=r.previous=n;t:for(c=3;c<o;++c){Td(n._,r._,i=t[c]),i=new Dd(i),l=r.next,u=n.previous,h=r._.r,d=n._.r;do{if(h<=d){if(Bd(l._,i._)){r=l,n.next=r,r.previous=n,--c;continue t}h+=l._.r,l=l.next}else{if(Bd(u._,i._)){(n=u).next=r,r.previous=n,--c;continue t}d+=u._.r,u=u.previous}}while(l!==u.next);for(i.previous=n,i.next=r,n.next=r.previous=r=i,a=Ld(n);(i=i.next)!==r;)(s=Ld(i))<a&&(n=i,a=s);r=n.next}for(n=[r._],i=r;(i=i.next)!==r;)n.push(i._);for(i=_d(n),c=0;c<o;++c)(n=t[c]).x-=i.x,n.y-=i.y;return i.r}var Rd=function(t){return Fd(t),t};function Nd(t){return null==t?null:zd(t)}function zd(t){if("function"!=typeof t)throw new Error;return t}function Wd(){return 0}var $d=function(t){return function(){return t}};function Hd(t){return Math.sqrt(t.value)}var Yd=function(){var t=null,e=1,n=1,r=Wd;function i(i){return i.x=e/2,i.y=n/2,t?i.eachBefore(Vd(t)).eachAfter(Gd(r,.5)).eachBefore(Kd(1)):i.eachBefore(Vd(Hd)).eachAfter(Gd(Wd,1)).eachAfter(Gd(r,i.r/Math.min(e,n))).eachBefore(Kd(Math.min(e,n)/(2*i.r))),i}return i.radius=function(e){return arguments.length?(t=Nd(e),i):t},i.size=function(t){return arguments.length?(e=+t[0],n=+t[1],i):[e,n]},i.padding=function(t){return arguments.length?(r="function"==typeof t?t:$d(+t),i):r},i};function Vd(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function Gd(t,e){return function(n){if(r=n.children){var r,i,o,a=r.length,s=t(n)*e||0;if(s)for(i=0;i<a;++i)r[i].r+=s;if(o=Fd(r),s)for(i=0;i<a;++i)r[i].r-=s;n.r=o+s}}}function Kd(t){return function(e){var n=e.parent;e.r*=t,n&&(e.x=n.x+t*e.x,e.y=n.y+t*e.y)}}function Xd(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function Ud(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=Zd)):void 0===e&&(e=qd);for(var n,r,i,o,a,s=new tf(t),c=[s];n=c.pop();)if((i=e(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)c.push(r=i[o]=new tf(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Jd)}function qd(t){return t.children}function Zd(t){return Array.isArray(t)?t[1]:null}function Qd(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function Jd(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function tf(t){this.data=t,this.depth=this.height=0,this.parent=null}tf.prototype=Ud.prototype={constructor:tf,count:function(){return this.eachAfter(Xd)},each:function(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this},eachAfter:function(t,e){for(var n,r,i,o=this,a=[o],s=[],c=-1;o=a.pop();)if(s.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=s.pop();)t.call(e,o,++c,this);return this},eachBefore:function(t,e){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(t.call(e,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;t=n.pop(),e=r.pop();for(;t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return Ud(this).eachBefore(Qd)},[Symbol.iterator]:function*(){var t,e,n,r,i=this,o=[i];do{for(t=o.reverse(),o=[];i=t.pop();)if(yield i,e=i.children)for(n=0,r=e.length;n<r;++n)o.push(e[n])}while(o.length)}};function ef(t,e){var n=t.field,r=t.fields;if(Object(c.Q)(n))return n;if(Object(c.C)(n))return console.warn("Invalid field: it must be a string!"),n[0];if(console.warn("".concat("Invalid field: it must be a string!"," will try to get fields instead.")),Object(c.Q)(r))return r;if(Object(c.C)(r)&&r.length)return r[0];if(e)return e;throw new TypeError("Invalid field: it must be a string!")}function nf(t){var e,n,r=[];t&&t.each?t.each((function(t){var i,o;t.parent!==e?(e=t.parent,n=0):n+=1;var a=Object(c.l)(((null===(i=t.ancestors)||void 0===i?void 0:i.call(t))||[]).map((function(t){return r.find((function(e){return e.name===t.name}))||t})),(function(e){var n=e.depth;return n>0&&n<t.depth}));t.nodeAncestor=a,t.childNodeCount=(null===(o=t.children)||void 0===o?void 0:o.length)||0,t.nodeIndex=n,r.push(t)})):t&&t.eachNode&&t.eachNode((function(t){r.push(t)}));return r}var rf={field:"value",as:["x","y","r"],sort:function(t,e){return e.value-t.value}};function of(t){var e=t.data,n=t.hierarchyConfig,r=t.rawFields,i=void 0===r?[]:r,o=t.enableDrillDown,a=function(t,e){var n,r=(e=Object(c.b)({},rf,e)).as;if(!Object(c.C)(r)||3!==r.length)throw new TypeError('Invalid as: it must be an array with 3 strings (e.g. [ "x", "y", "r" ])!');try{n=ef(e)}catch(t){console.warn(t)}var i=function(t){return Yd().size(e.size).padding(e.padding)(Ud(t).sum((function(t){return t[n]})).sort(e.sort))}(t),o=r[0],a=r[1],s=r[2];return i.each((function(t){t[o]=t.x,t[a]=t.y,t[s]=t.r})),nf(i)}(e,Object(s.a)(Object(s.a)({},n),{field:"value",as:["x","y","r"]})),l=[];return a.forEach((function(t){for(var e,r=t.data.name,a=Object(s.a)({},t);a.depth>1;)r="".concat(null===(e=a.parent.data)||void 0===e?void 0:e.name," / ").concat(r),a=a.parent;if(o&&t.depth>2)return null;var c=as({},t.data,Object(s.a)(Object(s.a)(Object(s.a)({},qa(t.data,i)),{path:r}),t));c.ext=n,c["hierarchy-data-transform-params"]={hierarchyConfig:n,rawFields:i,enableDrillDown:o},l.push(c)})),l}function af(t,e,n){var r=ys([t,e]),i=r[0],o=r[1],a=r[2],s=r[3],c=n.width-(s+o),l=n.height-(i+a),u=Math.min(c,l),h=(c-u)/2,d=(l-u)/2;return{finalPadding:[i+d,o+h,a+d,s+h],finalSize:u<0?0:u}}function sf(t){var e=t.chart,n=Math.min(e.viewBBox.width,e.viewBBox.height);return as({options:{size:function(t){return t.r*n}}},t)}function cf(t){var e=t.options,n=t.chart,r=n.viewBBox,i=e.padding,o=e.appendPadding,a=e.drilldown,s=o;(null==a?void 0:a.enabled)&&(s=ys([vs(n.appendPadding,Object(c.s)(a,["breadCrumb","position"])),o]));var l=af(i,s,r).finalPadding;return n.padding=l,n.appendPadding=0,t}function lf(t){var e=t.chart,n=t.options,r=e.padding,i=e.appendPadding,o=n.color,a=n.colorField,c=n.pointStyle,l=n.hierarchyConfig,u=n.sizeField,h=n.rawFields,d=void 0===h?[]:h,f=n.drilldown,p=of({data:n.data,hierarchyConfig:l,enableDrillDown:null==f?void 0:f.enabled,rawFields:d});e.data(p);var g=af(r,i,e.viewBBox).finalSize,v=function(t){return t.r*g};return u&&(v=function(t){return t[u]*g}),hc(as({},t,{options:{xField:"x",yField:"y",seriesField:a,sizeField:u,rawFields:Object(s.g)(Object(s.g)([],Od,!0),d,!0),point:{color:o,style:c,shape:"circle",size:v}}})),t}function uf(t){return cs(Us({},{x:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0},y:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0}}))(t)}function hf(t){var e=t.chart,n=t.options.tooltip;if(!1===n)e.tooltip(!1);else{var r=n;Object(c.s)(n,"fields")||(r=as({},{customItems:function(t){return t.map((function(t){var n=Object(c.s)(e.getOptions(),"scales"),r=Object(c.s)(n,["name","formatter"],(function(t){return t})),i=Object(c.s)(n,["value","formatter"],(function(t){return t}));return Object(s.a)(Object(s.a)({},t),{name:r(t.data.name),value:i(t.data.value)})}))}},r)),e.tooltip(r)}return t}function df(t){return t.chart.axis(!1),t}function ff(t){var e=t.drilldown,n=t.interactions,r=void 0===n?[]:n;return(null==e?void 0:e.enabled)?as({},t,{interactions:Object(s.g)(Object(s.g)([],r,!0),[{type:"drill-down",cfg:{drillDownConfig:e,transformData:of,enableDrillDown:!0}}],!1)}):t}function pf(t){return Hs({chart:t.chart,options:ff(t.options)}),t}function gf(t){return cs(zs("pointStyle"),sf,cf,Vs,uf,lf,df,Ws,hf,pf,Ys,qs())(t)}function vf(t){var e=Object(c.s)(t,["event","data","data"],{});return Object(c.C)(e.children)&&e.children.length>0}function yf(t){var e=t.view.getCoordinate(),n=e.innerRadius;if(n){var r=t.event,i=r.x,o=r.y,a=e.center,s=a.x,c=a.y,l=e.getRadius()*n;return Math.sqrt(Math.pow(s-i,2)+Math.pow(c-o,2))<l}return!1}Lt("drill-down-action",Cd),Ne("drill-down",{showEnable:[{trigger:"element:mouseenter",action:"cursor:pointer",isEnable:vf},{trigger:"element:mouseleave",action:"cursor:default"},{trigger:"element:mouseleave",action:"cursor:pointer",isEnable:yf}],start:[{trigger:"element:click",isEnable:vf,action:["drill-down-action:click"]},{trigger:"afterchangesize",action:["drill-down-action:resetPosition"]},{trigger:"click",isEnable:yf,action:["drill-down-action:back"]}]});!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle-packing",e}Object(s.c)(e,t),e.getDefaultOptions=function(){return jd},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return gf},e.prototype.triggerResize=function(){this.chart.destroyed||(this.chart.forceFit(),this.chart.clear(),this.execAdaptor(),this.chart.render(!0))}}(vc);var mf,bf,xf={nice:!0,label:{autoHide:!0,autoRotate:!1}},Of=Object(s.a)(Object(s.a)({},xf),{position:"left"}),jf=Object(s.a)(Object(s.a)({},xf),{position:"right",grid:null});function wf(t){return Object(c.s)(t,"geometry")===bf.Line}function Cf(t){return Object(c.s)(t,"geometry")===bf.Column}function _f(t,e,n){return Cf(n)?as({},{geometry:bf.Column,label:n.label&&n.isRange?{content:function(t){var n;return null===(n=t[e])||void 0===n?void 0:n.join("-")}}:void 0},n):Object(s.a)({geometry:bf.Line},n)}function Mf(t,e){var n=t[0],r=t[1];return Object(c.C)(e)?[e[0],e[1]]:[Object(c.s)(e,n),Object(c.s)(e,r)]}function Sf(t,e){return e===mf.Left?!1!==t&&as({},Of,t):e===mf.Right?!1!==t&&as({},jf,t):t}function Ef(t){var e=t.view,n=t.geometryOption,r=t.yField,i=t.legend,o=Object(c.s)(i,"marker"),a=ls(e,wf(n)?"line":"interval");if(!n.seriesField){var s=Object(c.s)(e,"options.scales.".concat(r,".alias"))||r,l=a.getAttribute("color"),u=e.getTheme().defaultColor;return l&&(u=_r.getMappingValue(l,s,Object(c.s)(l,["values",0],u))),[{value:r,name:s,marker:(Object(c.I)(o)?o:!Object(c.G)(o)&&as({},{style:{stroke:u,fill:u}},o))||(wf(n)?{symbol:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},style:{lineWidth:2,r:6,stroke:u}}:{symbol:"square",style:{fill:u}}),isGeometry:!0,viewId:e.id}]}var h=a.getGroupAttributes();return Object(c.ib)(h,(function(t,n){var r=_r.getLegendItems(e,a,n,e.getTheme(),o);return t.concat(r)}),[])}!function(t){t.Left="Left",t.Right="Right"}(mf||(mf={})),function(t){t.Line="line",t.Column="column"}(bf||(bf={}));var kf=function(t,e){var n=e[0],r=e[1],i=t.getOptions().data,o=t.getXScale(),a=Object(c.mb)(i);if(o&&a){var s=Object(c.yb)(i,o.field),l=s,u=Object(c.mb)(l),h=Math.floor(n*(u-1)),d=Math.floor(r*(u-1));t.filter(o.field,(function(t){var e=l.indexOf(t);return!(e>-1)||function(t,e,n){var r=Math.min(e,n),i=Math.max(e,n);return t>=r&&t<=i}(e,h,d)})),t.getRootView().render(!0)}};function If(t){var e,n=t.options,r=n.geometryOptions,i=void 0===r?[]:r,o=n.xField,a=n.yField,s=Object(c.k)(i,(function(t){var e=t.geometry;return e===bf.Line||void 0===e}));return as({},{options:{geometryOptions:[],meta:(e={},e[o]={type:"cat",sync:!0,range:s?[0,1]:void 0},e),tooltip:{showMarkers:s,showCrosshairs:s,shared:!0,crosshairs:{type:"x"}},interactions:s?[{type:"legend-visible-filter"}]:[{type:"legend-visible-filter"},{type:"active-region"}],legend:{position:"top-left"}}},t,{options:{yAxis:Mf(a,n.yAxis),geometryOptions:[_f(0,a[0],i[0]),_f(0,a[1],i[1])],annotations:Mf(a,n.annotations)}})}function Af(t){var e,n,r=t.chart,i=t.options.geometryOptions,o={line:0,column:1};return[{type:null===(e=i[0])||void 0===e?void 0:e.geometry,id:"left-axes-view"},{type:null===(n=i[1])||void 0===n?void 0:n.geometry,id:"right-axes-view"}].sort((function(t,e){return-o[t.type]+o[e.type]})).forEach((function(t){return r.createView({id:t.id})})),t}function Pf(t){var e=t.chart,n=t.options,r=n.xField,i=n.yField,o=n.geometryOptions,a=n.data,l=n.tooltip;return[Object(s.a)(Object(s.a)({},o[0]),{id:"left-axes-view",data:a[0],yField:i[0]}),Object(s.a)(Object(s.a)({},o[1]),{id:"right-axes-view",data:a[1],yField:i[1]})].forEach((function(t){var n=t.id,i=t.data,o=t.yField,a=Cf(t)&&t.isPercent,u=a?yc(i,o,r,o):i,h=ws(e,n).data(u),d=a?Object(s.a)({formatter:function(e){return{name:e[t.seriesField]||o,value:(100*Number(e[o])).toFixed(2)+"%"}}},l):l;!function(t){var e=t.options,n=t.chart,r=e.geometryOption,i=r.isStack,o=r.color,a=r.seriesField,l=r.groupField,u=r.isGroup,h=["xField","yField"];if(wf(r)){uc(as({},t,{options:Object(s.a)(Object(s.a)(Object(s.a)({},qa(e,h)),r),{line:{color:r.color,style:r.lineStyle}})})),hc(as({},t,{options:Object(s.a)(Object(s.a)(Object(s.a)({},qa(e,h)),r),{point:r.point&&Object(s.a)({color:o,shape:"circle"},r.point)})}));var d=[];u&&d.push({type:"dodge",dodgeBy:l||a,customOffset:0}),i&&d.push({type:"stack"}),d.length&&Object(c.j)(n.geometries,(function(t){t.adjust(d)}))}Cf(r)&&Zc(as({},t,{options:Object(s.a)(Object(s.a)(Object(s.a)({},qa(e,h)),r),{widthRatio:r.columnWidthRatio,interval:Object(s.a)(Object(s.a)({},qa(r,["color"])),{style:r.columnStyle})})}))}({chart:h,options:{xField:r,yField:o,tooltip:d,geometryOption:t}})})),t}function Tf(t){var e,n=t.chart,r=t.options.geometryOptions,i=(null===(e=n.getTheme())||void 0===e?void 0:e.colors10)||[],o=0;return n.once("beforepaint",(function(){Object(c.j)(r,(function(t,e){var r=ws(n,0===e?"left-axes-view":"right-axes-view");if(!t.color){var a=r.getGroupScales(),s=Object(c.s)(a,[0,"values","length"],1),l=i.slice(o,o+s).concat(0===e?[]:i);r.geometries.forEach((function(e){t.seriesField?e.color(t.seriesField,l):e.color(l[0])})),o+=s}})),n.render(!0)})),t}function Bf(t){var e,n,r=t.chart,i=t.options,o=i.xAxis,a=i.yAxis,s=i.xField,c=i.yField;return Us(((e={})[s]=o,e[c[0]]=a[0],e))(as({},t,{chart:ws(r,"left-axes-view")})),Us(((n={})[s]=o,n[c[1]]=a[1],n))(as({},t,{chart:ws(r,"right-axes-view")})),t}function Lf(t){var e=t.chart,n=t.options,r=ws(e,"left-axes-view"),i=ws(e,"right-axes-view"),o=n.xField,a=n.yField,s=n.xAxis,c=n.yAxis;return e.axis(o,!1),e.axis(a[0],!1),e.axis(a[1],!1),r.axis(o,s),r.axis(a[0],Sf(c[0],mf.Left)),i.axis(o,!1),i.axis(a[1],Sf(c[1],mf.Right)),t}function Df(t){var e=t.chart,n=t.options.tooltip,r=ws(e,"left-axes-view"),i=ws(e,"right-axes-view");return e.tooltip(n),r.tooltip({shared:!0}),i.tooltip({shared:!0}),t}function Ff(t){var e=t.chart;return Hs(as({},t,{chart:ws(e,"left-axes-view")})),Hs(as({},t,{chart:ws(e,"right-axes-view")})),t}function Rf(t){var e=t.chart,n=t.options.annotations,r=Object(c.s)(n,[0]),i=Object(c.s)(n,[1]);return qs(r)(as({},t,{chart:ws(e,"left-axes-view"),options:{annotations:r}})),qs(i)(as({},t,{chart:ws(e,"right-axes-view"),options:{annotations:i}})),t}function Nf(t){var e=t.chart;return Vs(as({},t,{chart:ws(e,"left-axes-view")})),Vs(as({},t,{chart:ws(e,"right-axes-view")})),Vs(t),t}function zf(t){var e=t.chart;return Ys(as({},t,{chart:ws(e,"left-axes-view")})),Ys(as({},t,{chart:ws(e,"right-axes-view")})),t}function Wf(t){var e=t.chart,n=t.options.yAxis;return Zs(as({},t,{chart:ws(e,"left-axes-view"),options:{yAxis:n[0]}})),Zs(as({},t,{chart:ws(e,"right-axes-view"),options:{yAxis:n[1]}})),t}function $f(t){var e=t.chart,n=t.options,r=n.legend,i=n.geometryOptions,o=n.yField,a=n.data,s=ws(e,"left-axes-view"),l=ws(e,"right-axes-view");if(!1===r)e.legend(!1);else if(Object(c.O)(r)&&!0===r.custom)e.legend(r);else{var u=Object(c.s)(i,[0,"legend"],r),h=Object(c.s)(i,[1,"legend"],r);e.once("beforepaint",(function(){var t=a[0].length?Ef({view:s,geometryOption:i[0],yField:o[0],legend:u}):[],n=a[1].length?Ef({view:l,geometryOption:i[1],yField:o[1],legend:h}):[];e.legend(as({},r,{custom:!0,items:t.concat(n)}))})),i[0].seriesField&&s.legend(i[0].seriesField,u),i[1].seriesField&&l.legend(i[1].seriesField,h),e.on("legend-item:click",(function(t){var n=Object(c.s)(t,"gEvent.delegateObject",{});if(n&&n.item){var r=n.item,i=r.value,a=r.isGeometry,s=r.viewId;if(a){if(Object(c.n)(o,(function(t){return t===i}))>-1){var l=Object(c.s)(ws(e,s),"geometries");Object(c.j)(l,(function(t){t.changeVisible(!n.item.unchecked)}))}}else{var u=Object(c.s)(e.getController("legend"),"option.items",[]);Object(c.j)(e.views,(function(t){var n=t.getGroupScales();Object(c.j)(n,(function(e){e.values&&e.values.indexOf(i)>-1&&t.filter(e.field,(function(t){return!Object(c.m)(u,(function(e){return e.value===t})).unchecked}))})),e.render(!0)}))}}}))}return t}function Hf(t){var e=t.chart,n=t.options.slider,r=ws(e,"left-axes-view"),i=ws(e,"right-axes-view");return n&&(r.option("slider",n),r.on("slider:valuechanged",(function(t){var e=t.event,n=e.value,r=e.originValue;Object(c.H)(n,r)||kf(i,n)})),e.once("afterpaint",(function(){if(!Object(c.D)(n)){var t=n.start,e=n.end;(t||e)&&kf(i,[t,e])}}))),t}function Yf(t){return cs(If,Af,Nf,Pf,Bf,Lf,Wf,Df,Ff,Rf,zf,Tf,$f,Hf)(t)}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dual-axes",e}Object(s.c)(e,t),e.prototype.getDefaultOptions=function(){return as({},t.prototype.getDefaultOptions.call(this),{yAxis:[],syncViewPadding:!0})},e.prototype.getSchemaAdaptor=function(){return Yf}}(vc);function Vf(t){var e=t.chart,n=t.options,r=n.type,i=n.data,o=n.fields,a=n.eachView,l=Object(c.gb)(n,["type","data","fields","eachView","axes","meta","tooltip","coordinate","theme","legend","interactions","annotations"]);return e.data(i),e.facet(r,Object(s.a)(Object(s.a)({},l),{fields:o,eachView:function(t,e){var n=a(t,e);if(n.geometries)!function(t,e){var n=e.data,r=e.coordinate,i=e.interactions,o=e.annotations,a=e.animation,l=e.tooltip,u=e.axes,h=e.meta,d=e.geometries;n&&t.data(n);var f={};u&&Object(c.j)(u,(function(t,e){f[e]=qa(t,Ga)})),f=as({},h,f),t.scale(f),r&&t.coordinate(r),!1===u?t.axis(!1):Object(c.j)(u,(function(e,n){t.axis(n,e)})),Object(c.j)(d,(function(e){var n=ac({chart:t,options:e}).ext,r=e.adjust;r&&n.geometry.adjust(r)})),Object(c.j)(i,(function(e){!1===e.enable?t.removeInteraction(e.type):t.interaction(e.type,e.cfg)})),Object(c.j)(o,(function(e){t.annotation()[e.type](Object(s.a)({},e))})),Ms(t,a),l?(t.interaction("tooltip"),t.tooltip(l)):!1===l&&t.removeInteraction("tooltip")}(t,n);else{var r=n,i=r.options;i.tooltip&&t.interaction("tooltip"),_h(r.type,t,i)}}})),t}function Gf(t){var e=t.chart,n=t.options,r=n.axes,i=n.meta,o=n.tooltip,a=n.coordinate,l=n.theme,u=n.legend,h=n.interactions,d=n.annotations,f={};return r&&Object(c.j)(r,(function(t,e){f[e]=qa(t,Ga)})),f=as({},i,f),e.scale(f),e.coordinate(a),r?Object(c.j)(r,(function(t,n){e.axis(n,t)})):e.axis(!1),o?(e.interaction("tooltip"),e.tooltip(o)):!1===o&&e.removeInteraction("tooltip"),e.legend(u),l&&e.theme(l),Object(c.j)(h,(function(t){!1===t.enable?e.removeInteraction(t.type):e.interaction(t.type,t.cfg)})),Object(c.j)(d,(function(t){e.annotation()[t.type](Object(s.a)({},t))})),t}function Kf(t){return cs(Vs,Vf,Gf)(t)}var Xf={title:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},rowTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},columnTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}}};!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",e}Object(s.c)(e,t),e.getDefaultOptions=function(){return Xf},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Kf}}(vc);function Uf(t){var e=t.chart,n=t.options,r=n.data,i=n.type,o=n.xField,a=n.yField,s=n.colorField,l=n.sizeField,u=n.sizeRatio,h=n.shape,d=n.color,f=n.tooltip,p=n.heatmapStyle,g=n.meta;e.data(r);var v="polygon";"density"===i&&(v="heatmap");var y=rc(f,[o,a,s]),m=y.fields,b=y.formatter,x=1;return(u||0===u)&&(h||l?u<0||u>1?console.warn("sizeRatio is not in effect: It must be a number in [0,1]"):x=u:console.warn("sizeRatio is not in effect: Must define shape or sizeField first")),ac(as({},t,{options:{type:v,colorField:s,tooltipFields:m,shapeField:l||"",label:void 0,mapping:{tooltip:b,shape:h&&(l?function(t){var e=r.map((function(t){return t[l]})),n=(null==g?void 0:g[l])||{},i=n.min,o=n.max;return i=Object(c.M)(i)?i:Math.min.apply(Math,e),o=Object(c.M)(o)?o:Math.max.apply(Math,e),[h,(Object(c.s)(t,l)-i)/(o-i),x]}:function(){return[h,1,x]}),color:d||s&&e.getTheme().sequenceColors.join("-"),style:p}}})),t}function qf(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return cs(Us(((e={})[o]=r,e[a]=i,e)))(t)}function Zf(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(a,!1):e.axis(a,i),t}function Qf(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField,o=n.sizeField,a=n.sizeLegend,s=!1!==r;return i&&e.legend(i,!!s&&r),o&&e.legend(o,void 0===a?r:a),s||a||e.legend(!1),t}function Jf(t){var e=t.chart,n=t.options,r=n.label,i=n.colorField,o=ls(e,"density"===n.type?"heatmap":"polygon");if(r){if(i){var a=r.callback,c=Object(s.f)(r,["callback"]);o.label({fields:[i],callback:a,cfg:fs(c)})}}else o.label(!1);return t}function tp(t){var e,n,r=t.chart,i=t.options,o=i.coordinate,a=i.reflect,s=as({actions:[]},null!=o?o:{type:"rect"});return a&&(null===(n=null===(e=s.actions)||void 0===e?void 0:e.push)||void 0===n||n.call(e,["reflect",a])),r.coordinate(s),t}function ep(t){return cs(Vs,zs("heatmapStyle"),qf,tp,Uf,Zf,Qf,$s,Jf,qs(),Hs,Ys,Gs)(t)}var np=as({},vc.getDefaultOptions(),{type:"polygon",legend:!1,coordinate:{type:"rect"},xAxis:{tickLine:null,line:null,grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}},yAxis:{grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}}});Vn("polygon","circle",{draw:function(t,e){var n,r,i=t.x,o=t.y,a=this.parsePoints(t.points),c=Math.abs(a[2].x-a[1].x),l=Math.abs(a[1].y-a[0].y),u=Math.min(c,l)/2,h=Number(t.shape[1]),d=Number(t.shape[2]),f=u*Math.sqrt(d)*Math.sqrt(h),p=(null===(n=t.style)||void 0===n?void 0:n.fill)||t.color||(null===(r=t.defaultStyle)||void 0===r?void 0:r.fill);return e.addShape("circle",{attrs:Object(s.a)(Object(s.a)(Object(s.a)({x:i,y:o,r:f},t.defaultStyle),t.style),{fill:p})})}}),Vn("polygon","square",{draw:function(t,e){var n,r,i=t.x,o=t.y,a=this.parsePoints(t.points),c=Math.abs(a[2].x-a[1].x),l=Math.abs(a[1].y-a[0].y),u=Math.min(c,l),h=Number(t.shape[1]),d=Number(t.shape[2]),f=u*Math.sqrt(d)*Math.sqrt(h),p=(null===(n=t.style)||void 0===n?void 0:n.fill)||t.color||(null===(r=t.defaultStyle)||void 0===r?void 0:r.fill);return e.addShape("rect",{attrs:Object(s.a)(Object(s.a)(Object(s.a)({x:i-f/2,y:o-f/2,width:f,height:f},t.defaultStyle),t.style),{fill:p})})}});!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e}Object(s.c)(e,t),e.getDefaultOptions=function(){return np},e.prototype.getSchemaAdaptor=function(){return ep},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()}}(vc);function rp(t){return[{percent:t,type:"liquid"}]}function ip(t){var e=t.chart,n=t.options,r=n.percent,i=n.liquidStyle,o=n.radius,a=n.outline,s=n.wave,c=n.shape,l=n.shapeStyle,u=n.animation;e.scale({percent:{min:0,max:1}}),e.data(rp(r));var h=n.color||e.getTheme().defaultColor,d=lc(as({},t,{options:{xField:"type",yField:"percent",widthRatio:o,interval:{color:h,style:i,shape:"liquid-fill-gauge"}}})).ext.geometry,f={percent:r,radius:o,outline:a,wave:s,shape:c,shapeStyle:l,background:e.getTheme().background,animation:u};return d.customInfo(f),e.legend(!1),e.axis(!1),e.tooltip(!1),t}function op(t,e){var n=t.chart,r=t.options,i=r.statistic,o=r.percent,a=r.meta;n.getController("annotation").clear(!0);var l=Object(c.s)(a,["percent","formatter"])||function(t){return"".concat((100*t).toFixed(2),"%")},u=i.content;return u&&(u=as({},u,{content:Object(c.K)(u.content)?l(o):u.content})),Os(n,{statistic:Object(s.a)(Object(s.a)({},i),{content:u}),plotType:"liquid"},{percent:o}),e&&n.render(!0),t}function ap(t){return cs(Vs,zs("liquidStyle"),ip,op,Us({}),Ys,Hs)(t)}var sp={radius:.9,statistic:{title:!1,content:{style:{opacity:.75,fontSize:"30px",lineHeight:"30px",textAlign:"center"}}},outline:{border:2,distance:0},wave:{count:3,length:192},shape:"circle"};function cp(t,e,n){return t+(e-t)*n}function lp(t,e,n,r){return 0===e?[[t+.5*n/Math.PI/2,r/2],[t+.5*n/Math.PI,r],[t+n/4,r]]:1===e?[[t+.5*n/Math.PI/2*(Math.PI-2),r],[t+.5*n/Math.PI/2*(Math.PI-1),r/2],[t+n/4,0]]:2===e?[[t+.5*n/Math.PI/2,-r/2],[t+.5*n/Math.PI,-r],[t+n/4,-r]]:[[t+.5*n/Math.PI/2*(Math.PI-2),-r],[t+.5*n/Math.PI/2*(Math.PI-1),-r/2],[t+n/4,0]]}function up(t,e,n,r,i,o,a){for(var s=4*Math.ceil(2*t/n*4),c=[],l=r;l<2*-Math.PI;)l+=2*Math.PI;for(;l>0;)l-=2*Math.PI;var u=o-t+(l=l/Math.PI/2*n)-2*t;c.push(["M",u,e]);for(var h=0,d=0;d<s;++d){var f=lp(d*n/4,d%4,n,i);c.push(["C",f[0][0]+u,-f[0][1]+e,f[1][0]+u,-f[1][1]+e,f[2][0]+u,-f[2][1]+e]),d===s-1&&(h=f[2][0])}return c.push(["L",h+u,a+t]),c.push(["L",u,a+t]),c.push(["Z"]),c}var hp={pin:function(t,e,n,r){var i=2*n/3,o=Math.max(i,r),a=i/2,s=t,c=a+e-o/2,l=Math.asin(a/(.85*(o-a))),u=Math.sin(l)*a,h=Math.cos(l)*a,d=s-h,f=c+u,p=t,g=c+a/Math.sin(l);return"\n M ".concat(d," ").concat(f,"\n A ").concat(a," ").concat(a," 0 1 1 ").concat(d+2*h," ").concat(f,"\n Q ").concat(p," ").concat(g," ").concat(t," ").concat(e+o/2,"\n Q ").concat(p," ").concat(g," ").concat(d," ").concat(f,"\n Z \n ")},circle:function(t,e,n,r){var i=n/2,o=r/2;return"\n M ".concat(t," ").concat(e-o," \n a ").concat(i," ").concat(o," 0 1 0 0 ").concat(2*o,"\n a ").concat(i," ").concat(o," 0 1 0 0 ").concat(2*-o,"\n Z\n ")},diamond:function(t,e,n,r){var i=r/2,o=n/2;return"\n M ".concat(t," ").concat(e-i,"\n L ").concat(t+o," ").concat(e,"\n L ").concat(t," ").concat(e+i,"\n L ").concat(t-o," ").concat(e,"\n Z\n ")},triangle:function(t,e,n,r){var i=r/2,o=n/2;return"\n M ".concat(t," ").concat(e-i,"\n L ").concat(t+o," ").concat(e+i,"\n L ").concat(t-o," ").concat(e+i,"\n Z\n ")},rect:function(t,e,n,r){var i=r/2,o=n/2*.618;return"\n M ".concat(t-o," ").concat(e-i,"\n L ").concat(t+o," ").concat(e-i,"\n L ").concat(t+o," ").concat(e+i,"\n L ").concat(t-o," ").concat(e+i,"\n Z\n ")}};Vn("interval","liquid-fill-gauge",{draw:function(t,e){var n=t.customInfo,r=n,i=r.percent,o=r.radius,a=r.shape,l=r.shapeStyle,u=r.background,h=r.animation,d=n.outline,f=n.wave,p=d.border,g=d.distance,v=f.count,y=f.length,m=Object(c.ib)(t.points,(function(t,e){return Math.min(t,e.x)}),1/0),b=this.parsePoint({x:.5,y:.5}),x=this.parsePoint({x:m,y:.5}),O=b.x-x.x,j=Math.min(O,x.y*o),w=function(t){var e=Object(s.a)({opacity:1},t.style);return t.color&&!e.fill&&(e.fill=t.color),e}(t),C=function(t){var e=Object(c.db)({},{fill:"#fff",fillOpacity:0,lineWidth:4},t.style);return t.color&&!e.stroke&&(e.stroke=t.color),Object(c.M)(t.opacity)&&(e.opacity=e.strokeOpacity=t.opacity),e}(Object(c.db)({},t,d)),_=j-p/2,M=("function"==typeof a?a:hp[a]||hp.circle)(b.x,b.y,2*_,2*_);if(l&&e.addShape("path",{name:"shape",attrs:Object(s.a)({path:M},l)}),i>0){var S=e.addGroup({name:"waves"}),E=S.setClip({type:"path",attrs:{path:M}});!function(t,e,n,r,i,o,a,s,c,l){for(var u=i.fill,h=i.opacity,d=a.getBBox(),f=d.maxX-d.minX,p=d.maxY-d.minY,g=0;g<r;g++){var v=r<=1?1:g/(r-1),y=o.addShape("path",{name:"waterwave-path",attrs:{path:up(s,d.minY+p*n,c,0,f/32,t,e),fill:u,opacity:cp(.2,.9,v)*h}});try{if(!1===l)return;var m=su([["t",c,0]]);y.stopAnimate(),y.animate({matrix:m},{duration:cp(2500,5e3,v),repeat:!0})}catch(t){console.warn("off-screen group animate error!")}}}(b.x,b.y,1-t.points[1].y,v,w,S,E,2*j,y,h)}return e.addShape("path",{name:"distance",attrs:{path:M,fill:"transparent",lineWidth:p+2*g,stroke:"transparent"===u?"#fff":u}}),e.addShape("path",{name:"wrap",attrs:Object(c.db)(C,{path:M,fill:"transparent",lineWidth:p})}),e}});!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="liquid",e}Object(s.c)(e,t),e.getDefaultOptions=function(){return sp},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.changeData=function(t){this.chart.emit(l.BEFORE_CHANGE_DATA,yn.fromData(this.chart,l.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t}),this.chart.data(rp(t)),op({chart:this.chart,options:this.options},!0),this.chart.emit(l.AFTER_CHANGE_DATA,yn.fromData(this.chart,l.AFTER_CHANGE_DATA,null))},e.prototype.getSchemaAdaptor=function(){return ap}}(vc);function dp(t){var e=t.chart,n=t.options,r=n.data,i=n.lineStyle,o=n.color,a=n.point,c=n.area;e.data(r);var l=as({},t,{options:{line:{style:i,color:o},point:a?Object(s.a)({color:o},a):a,area:c?Object(s.a)({color:o},c):c,label:void 0}}),u=as({},l,{options:{tooltip:!1}}),h=(null==a?void 0:a.state)||n.state,d=as({},l,{options:{tooltip:!1,state:h}});return uc(l),hc(d),sc(u),t}function fp(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return cs(Us(((e={})[o]=r,e[a]=i,e)))(t)}function pp(t){var e=t.chart,n=t.options,r=n.radius,i=n.startAngle,o=n.endAngle;return e.coordinate("polar",{radius:r,startAngle:i,endAngle:o}),t}function gp(t){var e=t.chart,n=t.options,r=n.xField,i=n.xAxis,o=n.yField,a=n.yAxis;return e.axis(r,i),e.axis(o,a),t}function vp(t){var e=t.chart,n=t.options,r=n.label,i=n.yField,o=ls(e,"line");if(r){var a=r.fields,c=r.callback,l=Object(s.f)(r,["fields","callback"]);o.label({fields:a||[i],callback:c,cfg:fs(l)})}else o.label(!1);return t}function yp(t){return cs(dp,fp,Vs,pp,gp,Ws,$s,vp,Hs,Ys,qs())(t)}gn("radar-tooltip",function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"radar-tooltip"},enumerable:!1,configurable:!0}),e.prototype.getTooltipItems=function(e){var n=this.getTooltipCfg(),r=n.shared,i=n.title,o=t.prototype.getTooltipItems.call(this,e);if(o.length>0){var a=this.view.geometries[0],l=a.dataArray,u=o[0].name,h=[];return l.forEach((function(t){t.forEach((function(t){var e=_r.getTooltipItems(t,a)[0];if(!r&&e&&e.name===u){var n=Object(c.K)(i)?u:i;h.push(Object(s.a)(Object(s.a)({},e),{name:e.title,title:n}))}else if(r&&e){n=Object(c.K)(i)?e.name||u:i;h.push(Object(s.a)(Object(s.a)({},e),{name:e.title,title:n}))}}))})),h}return[]},e}(Sn)),Lt("radar-tooltip",function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.init=function(){this.context.view.removeInteraction("tooltip")},e.prototype.show=function(){var t=this.context.event;this.getTooltipController().showTooltip({x:t.x,y:t.y})},e.prototype.hide=function(){this.getTooltipController().hideTooltip()},e.prototype.getTooltipController=function(){return this.context.view.getController("radar-tooltip")},e}(At)),Ne("radar-tooltip",{start:[{trigger:"plot:mousemove",action:"radar-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"radar-tooltip:hide"}]});!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radar",e}Object(s.c)(e,t),e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return as({},t.prototype.getDefaultOptions.call(this),{xAxis:{label:{offset:15},grid:{line:{type:"line"}}},yAxis:{grid:{line:{type:"circle"}}},legend:{position:"top"},tooltip:{shared:!0,showCrosshairs:!0,showMarkers:!0,crosshairs:{type:"xy",line:{style:{stroke:"#565656",lineDash:[4]}},follow:!0}}})},e.prototype.getSchemaAdaptor=function(){return yp}}(vc);function mp(t,e,n){var r=n.map((function(t){return t[e]})).filter((function(t){return void 0!==t})),i=r.length>0?Math.max.apply(Math,r):0,o=Math.abs(t)%360;return o?360*i/o:i}function bp(t){var e=t.chart,n=t.options,r=n.barStyle,i=n.color,o=n.tooltip,a=n.colorField,s=n.type,c=n.xField,l=n.yField,u=n.data,h=n.shape,d=Ja(u,l);return e.data(d),lc(as({},t,{options:{tooltip:o,seriesField:a,interval:{style:r,color:i,shape:h||("line"===s?"line":"intervel")},minColumnWidth:n.minBarWidth,maxColumnWidth:n.maxBarWidth,columnBackground:n.barBackground}})),"line"===s&&hc({chart:e,options:{xField:c,yField:l,seriesField:a,point:{shape:"circle",color:i}}}),t}function xp(t){var e,n=t.options,r=n.yField,i=n.xField,o=n.data,a=n.isStack,c=n.isGroup,l=n.colorField,u=n.maxAngle,h=Ja(a&&!c&&l?function(t,e,n){var r=[];return t.forEach((function(t){var i=r.find((function(n){return n[e]===t[e]}));i?i[n]+=t[n]||null:r.push(Object(s.a)({},t))})),r}(o,i,r):o,r);return cs(Us(((e={})[r]={min:0,max:mp(u,r,h)},e)))(t)}function Op(t){var e=t.chart,n=t.options,r=n.radius,i=n.innerRadius,o=n.startAngle,a=n.endAngle;return e.coordinate({type:"polar",cfg:{radius:r,innerRadius:i,startAngle:o,endAngle:a}}).transpose(),t}function jp(t){var e=t.chart,n=t.options,r=n.xField,i=n.xAxis;return e.axis(r,i),t}function wp(t){var e=t.chart,n=t.options,r=n.label,i=n.yField,o=ls(e,"interval");if(r){var a=r.callback,c=Object(s.f)(r,["callback"]);o.label({fields:[i],callback:a,cfg:Object(s.a)(Object(s.a)({},fs(c)),{type:"polar"})})}else o.label(!1);return t}function Cp(t){return cs(zs("barStyle"),bp,xp,jp,Op,Hs,Ys,Vs,$s,Ws,qs(),wp)(t)}var _p=as({},vc.getDefaultOptions(),{interactions:[{type:"element-active"}],legend:!1,tooltip:{showMarkers:!1},xAxis:{grid:null,tickLine:null,line:null},maxAngle:240});!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radial-bar",e}Object(s.c)(e,t),e.getDefaultOptions=function(){return _p},e.prototype.changeData=function(t){this.updateOption({data:t}),xp({chart:this.chart,options:this.options}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Cp}}(vc);function Mp(t){var e=t.chart,n=t.options,r=n.data,i=n.sectorStyle,o=n.shape,a=n.color;return e.data(r),cs(lc)(as({},t,{options:{marginRatio:1,interval:{style:i,color:a,shape:o}}})),t}function Sp(t){var e=t.chart,n=t.options,r=n.label,i=n.xField,o=ls(e,"interval");if(!1===r)o.label(!1);else if(Object(c.O)(r)){var a=r.callback,l=r.fields,u=Object(s.f)(r,["callback","fields"]),h=u.offset,d=u.layout;(void 0===h||h>=0)&&(d=d?Object(c.C)(d)?d:[d]:[],u.layout=Object(c.l)(d,(function(t){return"limit-in-shape"!==t.type})),u.layout.length||delete u.layout),o.label({fields:l||[i],callback:a,cfg:fs(u)})}else Ua(Va.WARN,null===r,"the label option must be an Object."),o.label({fields:[i]});return t}function Ep(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField;return!1===r?e.legend(!1):i&&e.legend(i,r),t}function kp(t){var e=t.chart,n=t.options,r=n.radius,i=n.innerRadius,o=n.startAngle,a=n.endAngle;return e.coordinate({type:"polar",cfg:{radius:r,innerRadius:i,startAngle:o,endAngle:a}}),t}function Ip(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return cs(Us(((e={})[o]=r,e[a]=i,e)))(t)}function Ap(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return r?e.axis(o,r):e.axis(o,!1),i?e.axis(a,i):e.axis(a,!1),t}function Pp(t){cs(zs("sectorStyle"),Mp,Ip,Sp,kp,Ap,Ep,$s,Hs,Ys,Vs,qs(),Gs)(t)}var Tp=as({},vc.getDefaultOptions(),{xAxis:!1,yAxis:!1,legend:{position:"right",radio:{}},sectorStyle:{stroke:"#fff",lineWidth:1},label:{layout:{type:"limit-in-shape"}},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]});!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rose",e}Object(s.c)(e,t),e.getDefaultOptions=function(){return Tp},e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Pp}}(vc);function Bp(t,e,n){if(!Object(c.C)(t))return[];var r=[],i=function(t,e,n){var r=[];return t.forEach((function(t){var i=t[e],o=t[n];r.includes(i)||r.push(i),r.includes(o)||r.push(o)})),r}(t,e,n),o=function(t,e,n,r){var i={};return e.forEach((function(t){i[t]={},e.forEach((function(e){i[t][e]=0}))})),t.forEach((function(t){i[t[n]][t[r]]=1})),i}(t,i,e,n),a={};return i.forEach((function(t){a[t]=0})),i.forEach((function(t){-1!=a[t]&&function t(e){a[e]=1,i.forEach((function(n){if(0!=o[e][n])if(1==a[n])r.push("".concat(e,"_").concat(n));else{if(-1==a[n])return;t(n)}})),a[e]=-1}(t)})),0!==r.length&&console.warn("sankey data contains circle, ".concat(r.length," records removed."),r),t.filter((function(t){return r.findIndex((function(r){return r==="".concat(t[e],"_").concat(t[n])}))<0}))}function Lp(t){return t.target.depth}function Dp(t,e){return t.sourceLinks.length?t.depth:e-1}function Fp(t){return function(){return t}}function Rp(t,e){for(var n=0,r=0;r<t.length;r++)n+=e(t[r]);return n}function Np(t,e){for(var n=-1/0,r=0;r<t.length;r++)n=Math.max(e(t[r]),n);return n}function zp(t,e){return $p(t.source,e.source)||t.index-e.index}function Wp(t,e){return $p(t.target,e.target)||t.index-e.index}function $p(t,e){return t.y0-e.y0}function Hp(t){return t.value}function Yp(t){return t.index}function Vp(t){return t.nodes}function Gp(t){return t.links}function Kp(t,e){var n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function Xp(t){for(var e=0,n=t.nodes;e<n.length;e++){for(var r=n[e],i=r.y0,o=i,a=0,s=r.sourceLinks;a<s.length;a++){(u=s[a]).y0=i+u.width/2,i+=u.width}for(var c=0,l=r.targetLinks;c<l.length;c++){var u;(u=l[c]).y1=o+u.width/2,o+=u.width}}}function Up(){var t,e,n,r,i=0,o=0,a=1,s=1,c=24,l=8,u=Yp,h=Dp,d=Vp,f=Gp,p=6;function g(g){var m={nodes:d(g),links:f(g)};return function(t){var e=t.nodes,n=t.links;e.forEach((function(t,e){t.index=e,t.sourceLinks=[],t.targetLinks=[]}));var i=new Map(e.map((function(t){return[u(t),t]})));if(n.forEach((function(t,e){t.index=e;var n=t.source,r=t.target;"object"!=typeof n&&(n=t.source=Kp(i,n)),"object"!=typeof r&&(r=t.target=Kp(i,r)),n.sourceLinks.push(t),r.targetLinks.push(t)})),null!=r)for(var o=0,a=e;o<a.length;o++){var s=a[o],c=s.sourceLinks,l=s.targetLinks;c.sort(r),l.sort(r)}}(m),function(t){for(var e=t.nodes,n=0,r=e;n<r.length;n++){var i=r[n];i.value=void 0===i.fixedValue?Math.max(Rp(i.sourceLinks,Hp),Rp(i.targetLinks,Hp)):i.fixedValue}}(m),function(t){var n=t.nodes,r=n.length,i=new Set(n),o=new Set,a=0;for(;i.size;){if(i.forEach((function(t){t.depth=a;for(var e=0,n=t.sourceLinks;e<n.length;e++){var r=n[e].target;o.add(r)}})),++a>r)throw new Error("circular link");i=o,o=new Set}if(e)for(var s=Math.max(Np(n,(function(t){return t.depth}))+1,0),c=void 0,l=0;l<n.length;l++)(c=n[l]).depth=e.call(null,c,s)}(m),function(t){var e=t.nodes,n=e.length,r=new Set(e),i=new Set,o=0;for(;r.size;){if(r.forEach((function(t){t.height=o;for(var e=0,n=t.targetLinks;e<n.length;e++){var r=n[e].source;i.add(r)}})),++o>n)throw new Error("circular link");r=i,i=new Set}}(m),function(e){var r=function(t){for(var e=t.nodes,r=Math.max(Np(e,(function(t){return t.depth}))+1,0),o=(a-i-c)/(r-1),s=new Array(r).fill(0).map((function(){return[]})),l=0,u=e;l<u.length;l++){var d=u[l],f=Math.max(0,Math.min(r-1,Math.floor(h.call(null,d,r))));d.layer=f,d.x0=i+f*o,d.x1=d.x0+c,s[f]?s[f].push(d):s[f]=[d]}if(n)for(var p=0,g=s;p<g.length;p++){g[p].sort(n)}return s}(e);t=Math.min(l,(s-o)/(Np(r,(function(t){return t.length}))-1)),function(e){for(var n=function(t,e){for(var n=1/0,r=0;r<t.length;r++)n=Math.min(e(t[r]),n);return n}(e,(function(e){return(s-o-(e.length-1)*t)/Rp(e,Hp)})),r=0,i=e;r<i.length;r++){for(var a=i[r],c=o,l=0,u=a;l<u.length;l++){(g=u[l]).y0=c,g.y1=c+g.value*n,c=g.y1+t;for(var h=0,d=g.sourceLinks;h<d.length;h++){var f=d[h];f.width=f.value*n}}c=(s-c+t)/(a.length+1);for(var p=0;p<a.length;++p){var g;(g=a[p]).y0+=c*(p+1),g.y1+=c*(p+1)}j(a)}}(r);for(var u=0;u<p;++u){var d=Math.pow(.99,u),f=Math.max(1-d,(u+1)/p);y(r,d,f),v(r,d,f)}}(m),Xp(m),m}function v(t,e,r){for(var i=1,o=t.length;i<o;++i){for(var a=t[i],s=0,c=a;s<c.length;s++){for(var l=c[s],u=0,h=0,d=0,f=l.targetLinks;d<f.length;d++){var p=f[d],g=p.source,v=p.value*(l.layer-g.layer);u+=w(g,l)*v,h+=v}if(h>0){var y=(u/h-l.y0)*e;l.y0+=y,l.y1+=y,O(l)}}void 0===n&&a.sort($p),a.length&&m(a,r)}}function y(t,e,r){for(var i=t.length-2;i>=0;--i){for(var o=t[i],a=0,s=o;a<s.length;a++){for(var c=s[a],l=0,u=0,h=0,d=c.sourceLinks;h<d.length;h++){var f=d[h],p=f.target,g=f.value*(p.layer-c.layer);l+=C(c,p)*g,u+=g}if(u>0){var v=(l/u-c.y0)*e;c.y0+=v,c.y1+=v,O(c)}}void 0===n&&o.sort($p),o.length&&m(o,r)}}function m(e,n){var r=e.length>>1,i=e[r];x(e,i.y0-t,r-1,n),b(e,i.y1+t,r+1,n),x(e,s,e.length-1,n),b(e,o,0,n)}function b(e,n,r,i){for(;r<e.length;++r){var o=e[r],a=(n-o.y0)*i;a>1e-6&&(o.y0+=a,o.y1+=a),n=o.y1+t}}function x(e,n,r,i){for(;r>=0;--r){var o=e[r],a=(o.y1-n)*i;a>1e-6&&(o.y0-=a,o.y1-=a),n=o.y0-t}}function O(t){var e=t.sourceLinks,n=t.targetLinks;if(void 0===r){for(var i=0,o=n;i<o.length;i++){o[i].source.sourceLinks.sort(Wp)}for(var a=0,s=e;a<s.length;a++){s[a].target.targetLinks.sort(zp)}}}function j(t){if(void 0===r)for(var e=0,n=t;e<n.length;e++){var i=n[e],o=i.sourceLinks,a=i.targetLinks;o.sort(Wp),a.sort(zp)}}function w(e,n){for(var r=e.y0-(e.sourceLinks.length-1)*t/2,i=0,o=e.sourceLinks;i<o.length;i++){var a=o[i],s=a.target,c=a.width;if(s===n)break;r+=c+t}for(var l=0,u=n.targetLinks;l<u.length;l++){var h=u[l];s=h.source,c=h.width;if(s===e)break;r-=c}return r}function C(e,n){for(var r=n.y0-(n.targetLinks.length-1)*t/2,i=0,o=n.targetLinks;i<o.length;i++){var a=o[i],s=a.source,c=a.width;if(s===e)break;r+=c+t}for(var l=0,u=e.sourceLinks;l<u.length;l++){var h=u[l];s=h.target,c=h.width;if(s===n)break;r-=c}return r}return g.update=function(t){return Xp(t),t},g.nodeId=function(t){return arguments.length?(u="function"==typeof t?t:Fp(t),g):u},g.nodeAlign=function(t){return arguments.length?(h="function"==typeof t?t:Fp(t),g):h},g.nodeDepth=function(t){return arguments.length?(e=t,g):e},g.nodeSort=function(t){return arguments.length?(n=t,g):n},g.nodeWidth=function(t){return arguments.length?(c=+t,g):c},g.nodePadding=function(e){return arguments.length?(l=t=+e,g):l},g.nodes=function(t){return arguments.length?(d="function"==typeof t?t:Fp(t),g):d},g.links=function(t){return arguments.length?(f="function"==typeof t?t:Fp(t),g):f},g.linkSort=function(t){return arguments.length?(r=t,g):r},g.size=function(t){return arguments.length?(i=o=0,a=+t[0],s=+t[1],g):[a-i,s-o]},g.extent=function(t){return arguments.length?(i=+t[0][0],a=+t[1][0],o=+t[0][1],s=+t[1][1],g):[[i,o],[a,s]]},g.iterations=function(t){return arguments.length?(p=+t,g):p},g}var qp={left:function(t){return t.depth},right:function(t,e){return e-1-t.height},center:function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?Object(c.cb)(t.sourceLinks,Lp)-1:0},justify:Dp},Zp={nodeId:function(t){return t.index},nodeAlign:"justify",nodeWidth:.008,nodePadding:.03,nodeSort:void 0};function Qp(t,e){var n=function(t){return Object(c.b)({},Zp,t)}(t),r=n.nodeId,i=n.nodeSort,o=n.nodeAlign,a=n.nodeWidth,s=n.nodePadding,l=n.nodeDepth,u=Up().nodeSort(i).nodeWidth(a).nodePadding(s).nodeDepth(l).nodeAlign(function(t){return(Object(c.Q)(t)?qp[t]:Object(c.I)(t)?t:null)||Dp}(o)).extent([[0,0],[1,1]]).nodeId(r)(e);return{nodes:u.nodes.map((function(t){var e=t.x0,n=t.x1,r=t.y0,i=t.y1;return t.x=[e,n,n,e],t.y=[r,r,i,i],t})).filter((function(t){return null!==t.name})),links:u.links.map((function(t){var e=t.source,n=t.target,r=e.x1,i=n.x0;t.x=[r,r,i,i];var o=t.width/2;return t.y=[t.y0+o,t.y0-o,t.y1+o,t.y1-o],t})).filter((function(t){var e=t.source,n=t.target;return null!==e.name&&null!==n.name}))}}function Jp(t,e,n){return ps(t)?t/n:e}function tg(t,e,n){return ps(t)?t/n:e}function eg(t,e,n){var r,i=t.dataType,o=t.data,a=t.sourceField,c=t.targetField,l=t.weightField,u=t.nodeAlign,h=t.nodeSort,d=t.nodePadding,f=t.nodePaddingRatio,p=t.nodeWidth,g=t.nodeWidthRatio,v=t.nodeDepth,y=t.rawFields,m=void 0===y?[]:y;r=function(t){return"node-link"===t}(i)?o:Qa(Bp(o,a,c),a,c,l,m);var b=Qp({nodeAlign:u,nodePadding:tg(d,f,n),nodeWidth:Jp(p,g,e),nodeSort:h,nodeDepth:v},r),x=b.nodes,O=b.links;return{nodes:x.map((function(t){return Object(s.a)(Object(s.a)({},qa(t,Object(s.g)(["x","y","name"],m,!0))),{isNode:!0})})),edges:O.map((function(t){return Object(s.a)(Object(s.a)({source:t.source.name,target:t.target.name,name:t.source.name||t.target.name},qa(t,Object(s.g)(["x","y","value"],m,!0))),{isNode:!1})}))}}function ng(t){var e=t.options.rawFields,n=void 0===e?[]:e;return as({},{options:{tooltip:{fields:Object(c.ub)(Object(s.g)(["name","source","target","value","isNode"],n,!0))},label:{fields:Object(c.ub)(Object(s.g)(["x","name"],n,!0))}}},t)}function rg(t){var e=t.chart,n=t.options,r=n.color,i=n.nodeStyle,o=n.edgeStyle,a=n.label,c=n.tooltip,l=n.nodeState,u=n.edgeState,h=n.rawFields,d=void 0===h?[]:h;e.legend(!1),e.tooltip(c),e.axis(!1),e.coordinate().reflect("y");var f=eg(n,e.width,e.height),p=f.nodes,g=f.edges,v=e.createView({id:"edges"});v.data(g),cc({chart:v,options:{xField:"x",yField:"y",seriesField:"name",rawFields:Object(s.g)(["source","target"],d,!0),edge:{color:r,style:o,shape:"arc"},tooltip:c,state:u}});var y=e.createView({id:"nodes"});return y.data(p),dc({chart:y,options:{xField:"x",yField:"y",seriesField:"name",polygon:{color:r,style:i},label:a,tooltip:c,state:l}}),e.interaction("element-active"),e.scale({x:{sync:!0,nice:!0,min:0,max:1,minLimit:0,maxLimit:1},y:{sync:!0,nice:!0,min:0,max:1,minLimit:0,maxLimit:1},name:{sync:"color",type:"cat"}}),t}function ig(t){var e=t.chart;return Ms(e,t.options.animation,Object(s.g)(Object(s.g)([],e.views[0].geometries,!0),e.views[1].geometries,!0)),t}function og(t){var e=t.chart;return t.options.nodeDraggable?e.interaction("sankey-node-draggable"):e.removeInteraction("sankey-node-draggable"),t}function ag(t){var e=t.chart,n=t.options,r=n.interactions,i=void 0===r?[]:r,o=[].concat(i,n.nodeInteractions||[]),a=[].concat(i,n.edgeInteractions||[]),s=ws(e,"nodes"),c=ws(e,"edges");return o.forEach((function(t){!1===(null==t?void 0:t.enable)?s.removeInteraction(t.type):s.interaction(t.type,t.cfg||{})})),a.forEach((function(t){!1===(null==t?void 0:t.enable)?c.removeInteraction(t.type):c.interaction(t.type,t.cfg||{})})),t}function sg(t){return cs(ng,rg,ag,og,ig,Vs)(t)}Lt("sankey-node-drag",function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isDragging=!1,e}return Object(s.c)(e,t),e.prototype.isNodeElement=function(){var t=Object(c.s)(this.context,"event.target");if(t){var e=t.get("element");return e&&e.getModel().data.isNode}return!1},e.prototype.getNodeView=function(){return ws(this.context.view,"nodes")},e.prototype.getEdgeView=function(){return ws(this.context.view,"edges")},e.prototype.getCurrentDatumIdx=function(t){return this.getNodeView().geometries[0].elements.indexOf(t)},e.prototype.start=function(){if(this.isNodeElement()){this.prevPoint={x:Object(c.s)(this.context,"event.x"),y:Object(c.s)(this.context,"event.y")};var t=this.context.event.target.get("element"),e=this.getCurrentDatumIdx(t);if(-1===e)return;this.currentElementIdx=e,this.context.isDragging=!0,this.isDragging=!0,this.prevNodeAnimateCfg=this.getNodeView().getOptions().animate,this.prevEdgeAnimateCfg=this.getEdgeView().getOptions().animate,this.getNodeView().animate(!1),this.getEdgeView().animate(!1)}},e.prototype.translate=function(){if(this.isDragging){var t=this.context.view,e={x:Object(c.s)(this.context,"event.x"),y:Object(c.s)(this.context,"event.y")},n=e.x-this.prevPoint.x,r=e.y-this.prevPoint.y,i=this.getNodeView(),o=i.geometries[0].elements[this.currentElementIdx];if(o&&o.getModel()){var a=o.getModel().data,l=i.getOptions().data,u=i.getCoordinate(),h={x:n/u.getWidth(),y:r/u.getHeight()},d=Object(s.a)(Object(s.a)({},a),{x:a.x.map((function(t){return t+h.x})),y:a.y.map((function(t){return t+h.y}))}),f=Object(s.g)([],l,!0);f[this.currentElementIdx]=d,i.data(f);var p=a.name,g=this.getEdgeView(),v=g.getOptions().data;v.forEach((function(t){t.source===p&&(t.x[0]+=h.x,t.x[1]+=h.x,t.y[0]+=h.y,t.y[1]+=h.y),t.target===p&&(t.x[2]+=h.x,t.x[3]+=h.x,t.y[2]+=h.y,t.y[3]+=h.y)})),g.data(v),this.prevPoint=e,t.render(!0)}}},e.prototype.end=function(){this.isDragging=!1,this.context.isDragging=!1,this.prevPoint=null,this.currentElementIdx=null,this.getNodeView().animate(this.prevNodeAnimateCfg),this.getEdgeView().animate(this.prevEdgeAnimateCfg)},e}(At)),Ne("sankey-node-draggable",{showEnable:[{trigger:"polygon:mouseenter",action:"cursor:pointer"},{trigger:"polygon:mouseleave",action:"cursor:default"}],start:[{trigger:"polygon:mousedown",action:"sankey-node-drag:start"}],processing:[{trigger:"plot:mousemove",action:"sankey-node-drag:translate"},{isEnable:function(t){return t.isDragging},trigger:"plot:mousemove",action:"cursor:move"}],end:[{trigger:"plot:mouseup",action:"sankey-node-drag:end"}]});!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="sankey",e}Object(s.c)(e,t),e.getDefaultOptions=function(){return{appendPadding:8,syncViewPadding:!0,nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.3,lineWidth:0},edgeState:{active:{style:{opacity:.8,lineWidth:0}}},label:{formatter:function(t){return t.name},callback:function(t){var e=1===t[1];return{style:{fill:"#545454",textAlign:e?"end":"start"},offsetX:e?-8:8}},layout:[{type:"hide-overlap"}]},tooltip:{showTitle:!1,showMarkers:!1,shared:!1,showContent:function(t){return!Object(c.s)(t,[0,"data","isNode"])},formatter:function(t){return{name:t.source+" -> "+t.target,value:t.value}}},nodeWidthRatio:.008,nodePaddingRatio:.01,animation:{appear:{animation:"wave-in"},enter:{animation:"wave-in"}}}},e.prototype.changeData=function(t){this.updateOption({data:t});var e=eg(this.options,this.chart.width,this.chart.height),n=e.nodes,r=e.edges,i=ws(this.chart,"nodes"),o=ws(this.chart,"edges");i.changeData(n),o.changeData(r)},e.prototype.getSchemaAdaptor=function(){return sg},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()}}(vc);var cg=["path","nodeIndex","nodeAncestor","childNodeCount","name","depth","height"],lg=as({},vc.getDefaultOptions(),{innerRadius:0,radius:.85,hierarchyConfig:{field:"value"},tooltip:{shared:!0,showMarkers:!1,offset:20,showTitle:!1},legend:!1,sunburstStyle:{lineWidth:.5,stroke:"#FFF"},drilldown:{enabled:!0}}),ug=function(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)},hg=function(t,e,n,r,i){for(var o,a=t.children,s=-1,c=a.length,l=t.value&&(r-e)/t.value;++s<c;)(o=a[s]).y0=n,o.y1=i,o.x0=e,o.x1=e+=o.value*l},dg=function(){var t=1,e=1,n=0,r=!1;function i(i){var o=i.height+1;return i.x0=i.y0=n,i.x1=t,i.y1=e/o,i.eachBefore(function(t,e){return function(r){r.children&&hg(r,r.x0,t*(r.depth+1)/e,r.x1,t*(r.depth+2)/e);var i=r.x0,o=r.y0,a=r.x1-n,s=r.y1-n;a<i&&(i=a=(i+a)/2),s<o&&(o=s=(o+s)/2),r.x0=i,r.y0=o,r.x1=a,r.y1=s}}(e,o)),r&&i.eachBefore(ug),i}return i.round=function(t){return arguments.length?(r=!!t,i):r},i.size=function(n){return arguments.length?(t=+n[0],e=+n[1],i):[t,e]},i.padding=function(t){return arguments.length?(n=+t,i):n},i},fg={field:"value",size:[1,1],round:!1,padding:0,sort:function(t,e){return e.value-t.value},as:["x","y"],ignoreParentValue:!0};function pg(t,e){var n,r=(e=Object(c.b)({},fg,e)).as;if(!Object(c.C)(r)||2!==r.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{n=ef(e)}catch(t){console.warn(t)}var i=function(t){return dg().size(e.size).round(e.round).padding(e.padding)(Ud(t).sum((function(t){return Object(c.mb)(t.children)?e.ignoreParentValue?0:t[n]-Object(c.ib)(t.children,(function(t,e){return t+e[n]}),0):t[n]})).sort(e.sort))}(t),o=r[0],a=r[1];return i.each((function(t){var e,n;t[o]=[t.x0,t.x1,t.x1,t.x0],t[a]=[t.y1,t.y1,t.y0,t.y0],t.name=t.name||(null===(e=t.data)||void 0===e?void 0:e.name)||(null===(n=t.data)||void 0===n?void 0:n.label),t.data.name=t.name,["x0","x1","y0","y1"].forEach((function(e){-1===r.indexOf(e)&&delete t[e]}))})),nf(i)}function gg(t,e){return t.parent===e.parent?1:2}function vg(t,e){return t+e.x}function yg(t,e){return Math.max(t,e.y)}var mg=function(){var t=gg,e=1,n=1,r=!1;function i(i){var o,a=0;i.eachAfter((function(e){var n=e.children;n?(e.x=function(t){return t.reduce(vg,0)/t.length}(n),e.y=function(t){return 1+t.reduce(yg,0)}(n)):(e.x=o?a+=t(e,o):0,e.y=0,o=e)}));var s=function(t){for(var e;e=t.children;)t=e[0];return t}(i),c=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(i),l=s.x-t(s,c)/2,u=c.x+t(c,s)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*e,t.y=(i.y-t.y)*n}:function(t){t.x=(t.x-l)/(u-l)*e,t.y=(1-(i.y?t.y/i.y:1))*n})}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i},bg={depth:-1},xg={};function Og(t){return t.id}function jg(t){return t.parentId}var wg=function(){var t=Og,e=jg;function n(n){var r,i,o,a,s,c,l,u=Array.from(n),h=u.length,d=new Map;for(i=0;i<h;++i)r=u[i],s=u[i]=new tf(r),null!=(c=t(r,i,n))&&(c+="")&&(l=s.id=c,d.set(l,d.has(l)?xg:s)),null!=(c=e(r,i,n))&&(c+="")&&(s.parent=c);for(i=0;i<h;++i)if(c=(s=u[i]).parent){if(!(a=d.get(c)))throw new Error("missing: "+c);if(a===xg)throw new Error("ambiguous: "+c);a.children?a.children.push(s):a.children=[s],s.parent=a}else{if(o)throw new Error("multiple roots");o=s}if(!o)throw new Error("no root");if(o.parent=bg,o.eachBefore((function(t){t.depth=t.parent.depth+1,--h})).eachBefore(Jd),o.parent=null,h>0)throw new Error("cycle");return o}return n.id=function(e){return arguments.length?(t=zd(e),n):t},n.parentId=function(t){return arguments.length?(e=zd(t),n):e},n};function Cg(t,e){return t.parent===e.parent?1:2}function _g(t){var e=t.children;return e?e[0]:t.t}function Mg(t){var e=t.children;return e?e[e.length-1]:t.t}function Sg(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function Eg(t,e,n){return t.a.parent===e.parent?t.a:n}function kg(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}kg.prototype=Object.create(tf.prototype);var Ig=function(){var t=Cg,e=1,n=1,r=null;function i(i){var c=function(t){for(var e,n,r,i,o,a=new kg(t,0),s=[a];e=s.pop();)if(r=e._.children)for(e.children=new Array(o=r.length),i=o-1;i>=0;--i)s.push(n=e.children[i]=new kg(r[i],i)),n.parent=e;return(a.parent=new kg(null,0)).children=[a],a}(i);if(c.eachAfter(o),c.parent.m=-c.z,c.eachBefore(a),r)i.eachBefore(s);else{var l=i,u=i,h=i;i.eachBefore((function(t){t.x<l.x&&(l=t),t.x>u.x&&(u=t),t.depth>h.depth&&(h=t)}));var d=l===u?1:t(l,u)/2,f=d-l.x,p=e/(u.x+d+f),g=n/(h.depth||1);i.eachBefore((function(t){t.x=(t.x+f)*p,t.y=t.depth*g}))}return i}function o(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){!function(t){for(var e,n=0,r=0,i=t.children,o=i.length;--o>=0;)(e=i[o]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var o=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-o):e.z=o}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,o=e,a=e,s=n,c=o.parent.children[0],l=o.m,u=a.m,h=s.m,d=c.m;s=Mg(s),o=_g(o),s&&o;)c=_g(c),(a=Mg(a)).a=e,(i=s.z+h-o.z-l+t(s._,o._))>0&&(Sg(Eg(s,e,r),e,i),l+=i,u+=i),h+=s.m,l+=o.m,d+=c.m,u+=a.m;s&&!Mg(a)&&(a.t=s,a.m+=h-u),o&&!_g(c)&&(c.t=o,c.m+=l-d,r=e)}return r}(e,i,e.parent.A||r[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(t){t.x*=e,t.y=t.depth*n}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i},Ag=function(t,e,n,r,i){for(var o,a=t.children,s=-1,c=a.length,l=t.value&&(i-n)/t.value;++s<c;)(o=a[s]).x0=e,o.x1=r,o.y0=n,o.y1=n+=o.value*l},Pg=(1+Math.sqrt(5))/2;function Tg(t,e,n,r,i,o){for(var a,s,c,l,u,h,d,f,p,g,v,y=[],m=e.children,b=0,x=0,O=m.length,j=e.value;b<O;){c=i-n,l=o-r;do{u=m[x++].value}while(!u&&x<O);for(h=d=u,v=u*u*(g=Math.max(l/c,c/l)/(j*t)),p=Math.max(d/v,v/h);x<O;++x){if(u+=s=m[x].value,s<h&&(h=s),s>d&&(d=s),v=u*u*g,(f=Math.max(d/v,v/h))>p){u-=s;break}p=f}y.push(a={value:u,dice:c<l,children:m.slice(b,x)}),a.dice?hg(a,n,r,i,j?r+=l*u/j:o):Ag(a,n,r,j?n+=c*u/j:i,o),j-=u,b=x}return y}var Bg=function t(e){function n(t,n,r,i,o){Tg(e,t,n,r,i,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(Pg),Lg=function(){var t=Bg,e=!1,n=1,r=1,i=[0],o=Wd,a=Wd,s=Wd,c=Wd,l=Wd;function u(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(h),i=[0],e&&t.eachBefore(ug),t}function h(e){var n=i[e.depth],r=e.x0+n,u=e.y0+n,h=e.x1-n,d=e.y1-n;h<r&&(r=h=(r+h)/2),d<u&&(u=d=(u+d)/2),e.x0=r,e.y0=u,e.x1=h,e.y1=d,e.children&&(n=i[e.depth+1]=o(e)/2,r+=l(e)-n,u+=a(e)-n,(h-=s(e)-n)<r&&(r=h=(r+h)/2),(d-=c(e)-n)<u&&(u=d=(u+d)/2),t(e,r,u,h,d))}return u.round=function(t){return arguments.length?(e=!!t,u):e},u.size=function(t){return arguments.length?(n=+t[0],r=+t[1],u):[n,r]},u.tile=function(e){return arguments.length?(t=zd(e),u):t},u.padding=function(t){return arguments.length?u.paddingInner(t).paddingOuter(t):u.paddingInner()},u.paddingInner=function(t){return arguments.length?(o="function"==typeof t?t:$d(+t),u):o},u.paddingOuter=function(t){return arguments.length?u.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):u.paddingTop()},u.paddingTop=function(t){return arguments.length?(a="function"==typeof t?t:$d(+t),u):a},u.paddingRight=function(t){return arguments.length?(s="function"==typeof t?t:$d(+t),u):s},u.paddingBottom=function(t){return arguments.length?(c="function"==typeof t?t:$d(+t),u):c},u.paddingLeft=function(t){return arguments.length?(l="function"==typeof t?t:$d(+t),u):l},u},Dg=function(t,e,n,r,i){var o,a,s=t.children,c=s.length,l=new Array(c+1);for(l[0]=a=o=0;o<c;++o)l[o+1]=a+=s[o].value;!function t(e,n,r,i,o,a,c){if(e>=n-1){var u=s[e];return u.x0=i,u.y0=o,u.x1=a,void(u.y1=c)}var h=l[e],d=r/2+h,f=e+1,p=n-1;for(;f<p;){var g=f+p>>>1;l[g]<d?f=g+1:p=g}d-l[f-1]<l[f]-d&&e+1<f&&--f;var v=l[f]-h,y=r-v;if(a-i>c-o){var m=r?(i*y+a*v)/r:a;t(e,f,v,i,o,m,c),t(f,n,y,m,o,a,c)}else{var b=r?(o*y+c*v)/r:c;t(e,f,v,i,o,a,b),t(f,n,y,i,b,a,c)}}(0,c,t.value,e,n,r,i)},Fg=function(t,e,n,r,i){(1&t.depth?Ag:hg)(t,e,n,r,i)},Rg=function t(e){function n(t,n,r,i,o){if((a=t._squarify)&&a.ratio===e)for(var a,s,c,l,u,h=-1,d=a.length,f=t.value;++h<d;){for(c=(s=a[h]).children,l=s.value=0,u=c.length;l<u;++l)s.value+=c[l].value;s.dice?hg(s,n,r,i,f?r+=(o-r)*s.value/f:o):Ag(s,n,r,f?n+=(i-n)*s.value/f:i,o),f-=s.value}else t._squarify=a=Tg(e,t,n,r,i,o),a.ratio=e}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(Pg),Ng={field:"value",tile:"treemapSquarify",size:[1,1],round:!1,ignoreParentValue:!0,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,as:["x","y"],sort:function(t,e){return e.value-t.value},ratio:.5*(1+Math.sqrt(5))};function zg(t,e){var n,i=(e=Object(c.b)({},Ng,e)).as;if(!Object(c.C)(i)||2!==i.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{n=ef(e)}catch(t){console.warn(t)}var o,a,s=(o=e.tile,a=e.ratio,"treemapSquarify"===o?r[o].ratio(a):r[o]),l=function(t){return Lg().tile(s).size(e.size).round(e.round).padding(e.padding).paddingInner(e.paddingInner).paddingOuter(e.paddingOuter).paddingTop(e.paddingTop).paddingRight(e.paddingRight).paddingBottom(e.paddingBottom).paddingLeft(e.paddingLeft)(Ud(t).sum((function(t){return e.ignoreParentValue&&t.children?0:t[n]})).sort(e.sort))}(t),u=i[0],h=i[1];return l.each((function(t){t[u]=[t.x0,t.x1,t.x1,t.x0],t[h]=[t.y1,t.y1,t.y0,t.y0],["x0","x1","y0","y1"].forEach((function(e){-1===i.indexOf(e)&&delete t[e]}))})),nf(l)}function Wg(t){var e=t.data,n=t.colorField,r=t.rawFields,i=t.hierarchyConfig,o=void 0===i?{}:i,a=o.activeDepth,l={partition:pg,treemap:zg},u=t.seriesField,h=t.type||"partition",d=l[h](e,Object(s.a)(Object(s.a)({field:u||"value"},Object(c.gb)(o,["activeDepth"])),{type:"hierarchy.".concat(h),as:["x","y"]})),f=[];return d.forEach((function(t){var e,i,c,l,h,d;if(0===t.depth)return null;if(a>0&&t.depth>a)return null;for(var p=t.data.name,g=Object(s.a)({},t);g.depth>1;)p="".concat(null===(i=g.parent.data)||void 0===i?void 0:i.name," / ").concat(p),g=g.parent;var v=Object(s.a)(Object(s.a)(Object(s.a)({},qa(t.data,Object(s.g)(Object(s.g)([],r||[],!0),[o.field],!1))),((e={}).path=p,e["ancestor-node"]=g.data.name,e)),t);u&&(v[u]=t.data[u]||(null===(l=null===(c=t.parent)||void 0===c?void 0:c.data)||void 0===l?void 0:l[u])),n&&(v[n]=t.data[n]||(null===(d=null===(h=t.parent)||void 0===h?void 0:h.data)||void 0===d?void 0:d[n])),v.ext=o,v["hierarchy-data-transform-params"]={hierarchyConfig:o,colorField:n,rawFields:r},f.push(v)})),f}function $g(t){var e,n=t.chart,r=t.options,i=r.color,o=r.colorField,a=void 0===o?"ancestor-node":o,l=r.sunburstStyle,u=r.rawFields,h=void 0===u?[]:u,d=r.shape,f=Wg(r);return n.data(f),l&&(e=function(t){return as({},{fillOpacity:Math.pow(.85,t.depth)},Object(c.I)(l)?l(t):l)}),dc(as({},t,{options:{xField:"x",yField:"y",seriesField:a,rawFields:Object(c.ub)(Object(s.g)(Object(s.g)([],cg,!0),h,!0)),polygon:{color:i,style:e,shape:d}}})),t}function Hg(t){return t.chart.axis(!1),t}function Yg(t){var e=t.chart,n=t.options.label,r=ls(e,"polygon");if(n){var i=n.fields,o=void 0===i?["name"]:i,a=n.callback,c=Object(s.f)(n,["fields","callback"]);r.label({fields:o,callback:a,cfg:fs(c)})}else r.label(!1);return t}function Vg(t){var e=t.chart,n=t.options,r=n.innerRadius,i=n.radius,o=n.reflect,a=e.coordinate({type:"polar",cfg:{innerRadius:r,radius:i}});return o&&a.reflect(o),t}function Gg(t){var e,n=t.options,r=n.hierarchyConfig,i=n.meta;return cs(Us({},((e={}).value=Object(c.s)(i,Object(c.s)(r,["field"],"value")),e)))(t)}function Kg(t){var e=t.chart,n=t.options.tooltip;if(!1===n)e.tooltip(!1);else{var r=n;Object(c.s)(n,"fields")||(r=as({},{customItems:function(t){return t.map((function(t){var n=Object(c.s)(e.getOptions(),"scales"),r=Object(c.s)(n,["path","formatter"],(function(t){return t})),i=Object(c.s)(n,["value","formatter"],(function(t){return t}));return Object(s.a)(Object(s.a)({},t),{name:r(t.data.path),value:i(t.data.value)})}))}},r)),e.tooltip(r)}return t}function Xg(t){var e=t.drilldown,n=t.interactions,r=void 0===n?[]:n;return(null==e?void 0:e.enabled)?as({},t,{interactions:Object(s.g)(Object(s.g)([],r,!0),[{type:"drill-down",cfg:{drillDownConfig:e,transformData:Wg}}],!1)}):t}function Ug(t){var e=t.chart,n=t.options,r=n.drilldown;return Hs({chart:e,options:Xg(n)}),(null==r?void 0:r.enabled)&&(e.appendPadding=vs(e.appendPadding,Object(c.s)(r,["breadCrumb","position"]))),t}function qg(t){return cs(Vs,zs("sunburstStyle"),$g,Hg,Gg,Ws,Vg,Kg,Yg,Ug,Ys,qs())(t)}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="sunburst",e}Object(s.c)(e,t),e.getDefaultOptions=function(){return lg},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return qg},e.SUNBURST_ANCESTOR_FIELD="ancestor-node",e.SUNBURST_PATH_FIELD="path",e.NODE_ANCESTORS_FIELD="nodeAncestor"}(vc);function Zg(t,e){if(Object(c.C)(t))return t.find((function(t){return t.type===e}))}function Qg(t,e){var n=Zg(t,e);return n&&!1!==n.enable}function Jg(t){var e=t.interactions,n=t.drilldown;return Object(c.s)(n,"enabled")||Qg(e,"treemap-drill-down")}function tv(t){var e=t.data,n=t.colorField,r=t.enableDrillDown,i=t.hierarchyConfig,o=zg(e,Object(s.a)(Object(s.a)({},i),{type:"hierarchy.treemap",field:"value",as:["x","y"]})),a=[];return o.forEach((function(t){if(0===t.depth)return null;if(r&&1!==t.depth)return null;if(!r&&t.children)return null;var o=t.ancestors().map((function(t){return{data:t.data,height:t.height,value:t.value}})),l=r&&Object(c.C)(e.path)?o.concat(e.path.slice(1)):o,u=Object.assign({},t.data,Object(s.a)({x:t.x,y:t.y,depth:t.depth,value:t.value,path:l},t));if(!t.data[n]&&t.parent){var h=t.ancestors().find((function(t){return t.data[n]}));u[n]=null==h?void 0:h.data[n]}else u[n]=t.data[n];u["hierarchy-data-transform-params"]={hierarchyConfig:i,colorField:n,enableDrillDown:r},a.push(u)})),a}function ev(t){var e=t.options.colorField;return as({options:{rawFields:["value"],tooltip:{fields:["name","value",e,"path"],formatter:function(t){return{name:t.name,value:t.value}}}}},t)}function nv(t){var e=t.chart,n=t.options,r=n.color,i=n.colorField,o=n.rectStyle,a=n.hierarchyConfig,s=n.rawFields,c=tv({data:n.data,colorField:n.colorField,enableDrillDown:Jg(n),hierarchyConfig:a});return e.data(c),dc(as({},t,{options:{xField:"x",yField:"y",seriesField:i,rawFields:s,polygon:{color:r,style:o}}})),e.coordinate().reflect("y"),t}function rv(t){return t.chart.axis(!1),t}function iv(t){var e=t.drilldown,n=t.interactions,r=void 0===n?[]:n;return Jg(t)?as({},t,{interactions:Object(s.g)(Object(s.g)([],r,!0),[{type:"drill-down",cfg:{drillDownConfig:e,transformData:tv}}],!1)}):t}function ov(t){var e=t.chart,n=t.options,r=n.interactions,i=n.drilldown;Hs({chart:e,options:iv(n)});var o=Zg(r,"view-zoom");return o&&(!1!==o.enable?e.getCanvas().on("mousewheel",(function(t){t.preventDefault()})):e.getCanvas().off("mousewheel")),Jg(n)&&(e.appendPadding=vs(e.appendPadding,Object(c.s)(i,["breadCrumb","position"]))),t}function av(t){return cs(ev,Vs,zs("rectStyle"),nv,rv,Ws,$s,ov,Ys,qs())(t)}var sv={colorField:"name",rectStyle:{lineWidth:1,stroke:"#fff"},hierarchyConfig:{tile:"treemapSquarify"},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1,breadCrumb:{position:"bottom-left",rootText:"初始",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}}}},cv=(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="treemap",e}Object(s.c)(e,t),e.getDefaultOptions=function(){return sv},e.prototype.changeData=function(t){var e=this.options,n=e.colorField,r=e.interactions,i=e.hierarchyConfig;this.updateOption({data:t});var o,a,s=tv({data:t,colorField:n,enableDrillDown:Qg(r,"treemap-drill-down"),hierarchyConfig:i});this.chart.changeData(s),o=this.chart,(a=o.interactions["drill-down"])&&a.context.actions.find((function(t){return"drill-down-action"===t.name})).reset()},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return av}}(vc),{appendPadding:[10,0,20,0],blendMode:"multiply",tooltip:{showTitle:!1,showMarkers:!1,fields:["id","size"],formatter:function(t){return{name:t.id,value:t.size}}},legend:{position:"top-left"},label:{style:{textAlign:"center",fill:"#fff"}},interactions:[{type:"legend-filter",enable:!1}],state:{active:{style:{stroke:"#000"}},selected:{style:{stroke:"#000",lineWidth:2}},inactive:{style:{fillOpacity:.3,strokeOpacity:.3}}},defaultInteractions:["tooltip","venn-legend-active"]});function lv(t){t&&t.geometries[0].elements.forEach((function(t){t.shape.toFront()}))}var uv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.syncElementsPos=function(){lv(this.context.view)},e.prototype.active=function(){t.prototype.active.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(Bt("element-active")),hv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.syncElementsPos=function(){lv(this.context.view)},e.prototype.highlight=function(){t.prototype.highlight.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.clear=function(){t.prototype.clear.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(Bt("element-highlight")),dv=Bt("element-selected"),fv=Bt("element-single-selected"),pv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.syncElementsPos=function(){lv(this.context.view)},e.prototype.selected=function(){t.prototype.selected.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(dv),gv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.syncElementsPos=function(){lv(this.context.view)},e.prototype.selected=function(){t.prototype.selected.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(fv);Lt("venn-element-active",uv),Lt("venn-element-highlight",hv),Lt("venn-element-selected",pv),Lt("venn-element-single-selected",gv),Ne("venn-element-active",{start:[{trigger:"element:mouseenter",action:"venn-element-active:active"}],end:[{trigger:"element:mouseleave",action:"venn-element-active:reset"}]}),Ne("venn-element-highlight",{start:[{trigger:"element:mouseenter",action:"venn-element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"venn-element-highlight:reset"}]}),Ne("venn-element-selected",{start:[{trigger:"element:click",action:"venn-element-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-selected:reset"]}]}),Ne("venn-element-single-selected",{start:[{trigger:"element:click",action:"venn-element-single-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-single-selected:reset"]}]}),Ne("venn-legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","venn-element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","venn-element-active:reset"]}]}),Ne("venn-legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","venn-element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","venn-element-highlight:reset"]}]}),Nn("venn",function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.getLabelPoint=function(t,e,n){var r=t.data,i=r.x,o=r.y,a=t.customLabelInfo,s=a.offsetX,c=a.offsetY;return{content:t.content[n],x:i+s,y:o+c}},e}(or));var vv=Array.isArray,yv=n(561),mv=yv.a.Symbol,bv=Object.prototype,xv=bv.hasOwnProperty,Ov=bv.toString,jv=mv?mv.toStringTag:void 0;var wv=function(t){var e=xv.call(t,jv),n=t[jv];try{t[jv]=void 0;var r=!0}catch(t){}var i=Ov.call(t);return r&&(e?t[jv]=n:delete t[jv]),i},Cv=Object.prototype.toString;var _v=function(t){return Cv.call(t)},Mv=mv?mv.toStringTag:void 0;var Sv=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Mv&&Mv in Object(t)?wv(t):_v(t)};var Ev=function(t){return null!=t&&"object"==typeof t};var kv=function(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var c=a[t?s:++i];if(!1===n(o[c],c,o))break}return e}}();var Iv=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r};var Av=function(t){return Ev(t)&&"[object Arguments]"==Sv(t)},Pv=Object.prototype,Tv=Pv.hasOwnProperty,Bv=Pv.propertyIsEnumerable,Lv=Av(function(){return arguments}())?Av:function(t){return Ev(t)&&Tv.call(t,"callee")&&!Bv.call(t,"callee")},Dv=n(651),Fv=/^(?:0|[1-9]\d*)$/;var Rv=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Fv.test(t))&&t>-1&&t%1==0&&t<e};var Nv=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},zv={};zv["[object Float32Array]"]=zv["[object Float64Array]"]=zv["[object Int8Array]"]=zv["[object Int16Array]"]=zv["[object Int32Array]"]=zv["[object Uint8Array]"]=zv["[object Uint8ClampedArray]"]=zv["[object Uint16Array]"]=zv["[object Uint32Array]"]=!0,zv["[object Arguments]"]=zv["[object Array]"]=zv["[object ArrayBuffer]"]=zv["[object Boolean]"]=zv["[object DataView]"]=zv["[object Date]"]=zv["[object Error]"]=zv["[object Function]"]=zv["[object Map]"]=zv["[object Number]"]=zv["[object Object]"]=zv["[object RegExp]"]=zv["[object Set]"]=zv["[object String]"]=zv["[object WeakMap]"]=!1;var Wv=function(t){return Ev(t)&&Nv(t.length)&&!!zv[Sv(t)]};var $v=function(t){return function(e){return t(e)}},Hv=n(710),Yv=Hv.a&&Hv.a.isTypedArray,Vv=Yv?$v(Yv):Wv,Gv=Object.prototype.hasOwnProperty;var Kv=function(t,e){var n=vv(t),r=!n&&Lv(t),i=!n&&!r&&Object(Dv.a)(t),o=!n&&!r&&!i&&Vv(t),a=n||r||i||o,s=a?Iv(t.length,String):[],c=s.length;for(var l in t)!e&&!Gv.call(t,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Rv(l,c))||s.push(l);return s},Xv=Object.prototype;var Uv=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Xv)};var qv=function(t,e){return function(n){return t(e(n))}}(Object.keys,Object),Zv=Object.prototype.hasOwnProperty;var Qv=function(t){if(!Uv(t))return qv(t);var e=[];for(var n in Object(t))Zv.call(t,n)&&"constructor"!=n&&e.push(n);return e};var Jv=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var ty=function(t){if(!Jv(t))return!1;var e=Sv(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};var ey=function(t){return null!=t&&Nv(t.length)&&!ty(t)};var ny=function(t){return ey(t)?Kv(t):Qv(t)};ry=function(t,e){return t&&kv(t,e,ny)};var ry,iy;var oy=function(){this.__data__=[],this.size=0};var ay=function(t,e){return t===e||t!=t&&e!=e};var sy=function(t,e){for(var n=t.length;n--;)if(ay(t[n][0],e))return n;return-1},cy=Array.prototype.splice;var ly=function(t){var e=this.__data__,n=sy(e,t);return!(n<0)&&(n==e.length-1?e.pop():cy.call(e,n,1),--this.size,!0)};var uy=function(t){var e=this.__data__,n=sy(e,t);return n<0?void 0:e[n][1]};var hy=function(t){return sy(this.__data__,t)>-1};var dy=function(t,e){var n=this.__data__,r=sy(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function fy(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])}}fy.prototype.clear=oy,fy.prototype.delete=ly,fy.prototype.get=uy,fy.prototype.has=hy,fy.prototype.set=dy;var py=fy;var gy=function(){this.__data__=new py,this.size=0};var vy=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};var yy=function(t){return this.__data__.get(t)};var my,by=function(t){return this.__data__.has(t)},xy=yv.a["__core-js_shared__"],Oy=(my=/[^.]+$/.exec(xy&&xy.keys&&xy.keys.IE_PROTO||""))?"Symbol(src)_1."+my:"";var jy=function(t){return!!Oy&&Oy in t},wy=Function.prototype.toString;var Cy=function(t){if(null!=t){try{return wy.call(t)}catch(t){}try{return t+""}catch(t){}}return""},_y=/^\[object .+?Constructor\]$/,My=Function.prototype,Sy=Object.prototype,Ey=My.toString,ky=Sy.hasOwnProperty,Iy=RegExp("^"+Ey.call(ky).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Ay=function(t){return!(!Jv(t)||jy(t))&&(ty(t)?Iy:_y).test(Cy(t))};var Py=function(t,e){return null==t?void 0:t[e]};var Ty=function(t,e){var n=Py(t,e);return Ay(n)?n:void 0},By=Ty(yv.a,"Map"),Ly=Ty(Object,"create");var Dy=function(){this.__data__=Ly?Ly(null):{},this.size=0};var Fy=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Ry=Object.prototype.hasOwnProperty;var Ny=function(t){var e=this.__data__;if(Ly){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ry.call(e,t)?e[t]:void 0},zy=Object.prototype.hasOwnProperty;var Wy=function(t){var e=this.__data__;return Ly?void 0!==e[t]:zy.call(e,t)};var $y=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Ly&&void 0===e?"__lodash_hash_undefined__":e,this};function Hy(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])}}Hy.prototype.clear=Dy,Hy.prototype.delete=Fy,Hy.prototype.get=Ny,Hy.prototype.has=Wy,Hy.prototype.set=$y;var Yy=Hy;var Vy=function(){this.size=0,this.__data__={hash:new Yy,map:new(By||py),string:new Yy}};var Gy=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var Ky=function(t,e){var n=t.__data__;return Gy(e)?n["string"==typeof e?"string":"hash"]:n.map};var Xy=function(t){var e=Ky(this,t).delete(t);return this.size-=e?1:0,e};var Uy=function(t){return Ky(this,t).get(t)};var qy=function(t){return Ky(this,t).has(t)};var Zy=function(t,e){var n=Ky(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function Qy(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])}}Qy.prototype.clear=Vy,Qy.prototype.delete=Xy,Qy.prototype.get=Uy,Qy.prototype.has=qy,Qy.prototype.set=Zy;var Jy=Qy;var tm=function(t,e){var n=this.__data__;if(n instanceof py){var r=n.__data__;if(!By||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jy(r)}return n.set(t,e),this.size=n.size,this};function em(t){var e=this.__data__=new py(t);this.size=e.size}em.prototype.clear=gy,em.prototype.delete=vy,em.prototype.get=yy,em.prototype.has=by,em.prototype.set=tm;var nm=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};var rm=function(t){return this.__data__.has(t)};function im(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jy;++e<n;)this.add(t[e])}im.prototype.add=im.prototype.push=nm,im.prototype.has=rm;yv.a.Uint8Array;var om=mv?mv.prototype:void 0;om&&om.valueOf;Object.prototype.propertyIsEnumerable,Object.getOwnPropertySymbols;Object.prototype.hasOwnProperty;var am=Ty(yv.a,"DataView"),sm=Ty(yv.a,"Promise"),cm=Ty(yv.a,"Set"),lm=Ty(yv.a,"WeakMap"),um=Cy(am),hm=Cy(By),dm=Cy(sm),fm=Cy(cm),pm=Cy(lm),gm=Sv;(am&&"[object DataView]"!=gm(new am(new ArrayBuffer(1)))||By&&"[object Map]"!=gm(new By)||sm&&"[object Promise]"!=gm(sm.resolve())||cm&&"[object Set]"!=gm(new cm)||lm&&"[object WeakMap]"!=gm(new lm))&&(gm=function(t){var e=Sv(t),n="[object Object]"==e?t.constructor:void 0,r=n?Cy(n):"";if(r)switch(r){case um:return"[object DataView]";case hm:return"[object Map]";case dm:return"[object Promise]";case fm:return"[object Set]";case pm:return"[object WeakMap]"}return e});Object.prototype.hasOwnProperty;var vm=new RegExp("([a-z])[\t\n\v\f\r \u2028\u2029,]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?[\t\n\v\f\r \u2028\u2029]*,?[\t\n\v\f\r \u2028\u2029]*)+)","ig"),ym=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)[\t\n\v\f\r \u2028\u2029]*,?[\t\n\v\f\r \u2028\u2029]*","ig");function mm(t){if(!t)return null;if(vv(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(vm,(function(t,r,i){var o=[],a=r.toLowerCase();if(i.replace(ym,(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}Math.PI;Vn("schema","venn",{draw:function(t,e){var n=mm(t.data.path),r=function(t){return as({},t.defaultStyle,{fill:t.color},t.style)}(t),i=e.addGroup({name:"venn-shape"});i.addShape("path",{attrs:Object(s.a)(Object(s.a)({},r),{path:n}),name:"venn-path"});var o=t.customInfo,a=o.offsetX,c=o.offsetY,l=_r.transform(null,[["t",a,c]]);return i.setMatrix(l),i},getMarker:function(t){var e=t.color;return{symbol:"circle",style:{lineWidth:0,stroke:e,fill:e,r:4}}}});var bm={normal:function(t){return t},multiply:function(t,e){return t*e/255},screen:function(t,e){return 255*(1-(1-t/255)*(1-e/255))},overlay:function(t,e){return e<128?2*t*e/255:255*(1-2*(1-t/255)*(1-e/255))},darken:function(t,e){return t>e?e:t},lighten:function(t,e){return t>e?t:e},dodge:function(t,e){return 255===t||(t=e/255*255/(1-t/255))>255?255:t},burn:function(t,e){return 255===e?255:0===t?0:255*(1-Math.min(1,(1-e/255)/(t/255)))}};function xm(t,e,n){void 0===n&&(n="normal");var r,i=(r=function(t){if(!bm[t])throw new Error("unknown blend mode "+t);return bm[t]}(n),function(t,e){var n=[];return n[0]=r(t[0],e[0]),n[1]=r(t[1],e[1]),n[2]=r(t[2],e[2]),n})(Om(t),Om(e)),o=Om(t),a=o[0],s=o[1],c=o[2],l=o[3],u=Om(e),h=u[0],d=u[1],f=u[2],p=u[3],g=Number((l+p*(1-l)).toFixed(2)),v=Math.round((l*(1-p)*(a/255)+l*p*(i[0]/255)+(1-l)*p*(h/255))/g*255),y=Math.round((l*(1-p)*(s/255)+l*p*(i[1]/255)+(1-l)*p*(d/255))/g*255),m=Math.round((l*(1-p)*(c/255)+l*p*(i[2]/255)+(1-l)*p*(f/255))/g*255);return"rgba(".concat(v,", ").concat(y,", ").concat(m,", ").concat(g,")")}function Om(t){var e,n=t.replace("/s+/g","");return"string"!=typeof n||n.startsWith("rgba")||n.startsWith("#")?(n.startsWith("rgba")&&(e=n.replace("rgba(","").replace(")","").split(",")),n.startsWith("#")&&(e=E.a.rgb2arr(n).concat([1])),e.map((function(t,e){return 3===e?Number(t):0|t}))):E.a.rgb2arr(E.a.toRGB(n)).concat([1])}var jm=n(653);function wm(t,e){var n,r=function(t){for(var e=[],n=0;n<t.length;++n)for(var r=n+1;r<t.length;++r)for(var i=Sm(t[n],t[r]),o=0;o<i.length;++o){var a=i[o];a.parentIndex=[n,r],e.push(a)}return e}(t),i=r.filter((function(e){return function(t,e){for(var n=0;n<e.length;++n)if(_m(t,e[n])>e[n].radius+1e-10)return!1;return!0}(e,t)})),o=0,a=0,s=[];if(i.length>1){var c=Em(i);for(n=0;n<i.length;++n){var l=i[n];l.angle=Math.atan2(l.x-c.x,l.y-c.y)}i.sort((function(t,e){return e.angle-t.angle}));var u=i[i.length-1];for(n=0;n<i.length;++n){var h=i[n];a+=(u.x+h.x)*(h.y-u.y);for(var d={x:(h.x+u.x)/2,y:(h.y+u.y)/2},f=null,p=0;p<h.parentIndex.length;++p)if(u.parentIndex.indexOf(h.parentIndex[p])>-1){var g=t[h.parentIndex[p]],v=Math.atan2(h.x-g.x,h.y-g.y),y=Math.atan2(u.x-g.x,u.y-g.y),m=y-v;m<0&&(m+=2*Math.PI);var b=y-m/2,x=_m(d,{x:g.x+g.radius*Math.sin(b),y:g.y+g.radius*Math.cos(b)});x>2*g.radius&&(x=2*g.radius),(null===f||f.width>x)&&(f={circle:g,width:x,p1:h,p2:u})}null!==f&&(s.push(f),o+=Cm(f.circle.radius,f.width),u=h)}}else{var O=t[0];for(n=1;n<t.length;++n)t[n].radius<O.radius&&(O=t[n]);var j=!1;for(n=0;n<t.length;++n)if(_m(t[n],O)>Math.abs(O.radius-t[n].radius)){j=!0;break}j?o=a=0:(o=O.radius*O.radius*Math.PI,s.push({circle:O,p1:{x:O.x,y:O.y+O.radius},p2:{x:O.x-1e-10,y:O.y+O.radius},width:2*O.radius}))}return a/=2,e&&(e.area=o+a,e.arcArea=o,e.polygonArea=a,e.arcs=s,e.innerPoints=i,e.intersectionPoints=r),o+a}function Cm(t,e){return t*t*Math.acos(1-e/t)-(t-e)*Math.sqrt(e*(2*t-e))}function _m(t,e){return Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y))}function Mm(t,e,n){if(n>=t+e)return 0;if(n<=Math.abs(t-e))return Math.PI*Math.min(t,e)*Math.min(t,e);var r=e-(n*n-t*t+e*e)/(2*n);return Cm(t,t-(n*n-e*e+t*t)/(2*n))+Cm(e,r)}function Sm(t,e){var n=_m(t,e),r=t.radius,i=e.radius;if(n>=r+i||n<=Math.abs(r-i))return[];var o=(r*r-i*i+n*n)/(2*n),a=Math.sqrt(r*r-o*o),s=t.x+o*(e.x-t.x)/n,c=t.y+o*(e.y-t.y)/n,l=-(e.y-t.y)*(a/n),u=-(e.x-t.x)*(a/n);return[{x:s+l,y:c-u},{x:s-l,y:c+u}]}function Em(t){for(var e={x:0,y:0},n=0;n<t.length;++n)e.x+=t[n].x,e.y+=t[n].y;return e.x/=t.length,e.y/=t.length,e}function km(t,e,n){var r,i,o=e[0].radius-_m(e[0],t);for(r=1;r<e.length;++r)(i=e[r].radius-_m(e[r],t))<=o&&(o=i);for(r=0;r<n.length;++r)(i=_m(n[r],t)-n[r].radius)<=o&&(o=i);return o}function Im(t,e){var n,r=[];for(n=0;n<t.length;++n){var i=t[n];r.push({x:i.x,y:i.y}),r.push({x:i.x+i.radius/2,y:i.y}),r.push({x:i.x-i.radius/2,y:i.y}),r.push({x:i.x,y:i.y+i.radius/2}),r.push({x:i.x,y:i.y-i.radius/2})}var o=r[0],a=km(r[0],t,e);for(n=1;n<r.length;++n){var s=km(r[n],t,e);s>=a&&(o=r[n],a=s)}var c=Object(jm.nelderMead)((function(n){return-1*km({x:n[0],y:n[1]},t,e)}),[o.x,o.y],{maxIterations:500,minErrorDelta:1e-10}).x,l={x:c[0],y:c[1]},u=!0;for(n=0;n<t.length;++n)if(_m(l,t[n])>t[n].radius){u=!1;break}for(n=0;n<e.length;++n)if(_m(l,e[n])<e[n].radius){u=!1;break}if(!u)if(1==t.length)l={x:t[0].x,y:t[0].y};else{var h={};wm(t,h),l=0===h.arcs.length?{x:0,y:-1e3,disjoint:!0}:1==h.arcs.length?{x:h.arcs[0].circle.x,y:h.arcs[0].circle.y}:e.length?Im(t,[]):Em(h.arcs.map((function(t){return t.p1})))}return l}function Am(t,e){for(var n={},r=function(t){var e={},n=[];for(var r in t)n.push(r),e[r]=[];for(var i=0;i<n.length;i++)for(var o=t[n[i]],a=i+1;a<n.length;++a){var s=t[n[a]],c=_m(o,s);c+s.radius<=o.radius+1e-10?e[n[a]].push(n[i]):c+o.radius<=s.radius+1e-10&&e[n[i]].push(n[a])}return e}(t),i=0;i<e.length;++i){for(var o=e[i].sets,a={},s={},c=0;c<o.length;++c){a[o[c]]=!0;for(var l=r[o[c]],u=0;u<l.length;++u)s[l[u]]=!0}var h=[],d=[];for(var f in t)f in a?h.push(t[f]):f in s||d.push(t[f]);var p=Im(h,d);n[o]=p,p.disjoint&&e[i].size>0&&console.log("WARNING: area "+o+" not represented on screen")}return n}function Pm(t,e,n){return Math.min(t,e)*Math.min(t,e)*Math.PI<=n+1e-10?Math.abs(t-e):Object(jm.bisect)((function(r){return Mm(t,e,r)-n}),0,t+e)}function Tm(t,e){var n=function(t,e){for(var n,r=e&&e.lossFunction?e.lossFunction:Bm,i={},o={},a=0;a<t.length;++a){var s=t[a];1==s.sets.length&&(n=s.sets[0],i[n]={x:1e10,y:1e10,rowid:Object.keys(i).length,size:s.size,radius:Math.sqrt(s.size/Math.PI)},o[n]=[])}t=t.filter((function(t){return 2==t.sets.length}));for(a=0;a<t.length;++a){var c=t[a],l=c.hasOwnProperty("weight")?c.weight:1,u=c.sets[0],h=c.sets[1];c.size+1e-10>=Math.min(i[u].size,i[h].size)&&(l=0),o[u].push({set:h,size:c.size,weight:l}),o[h].push({set:u,size:c.size,weight:l})}var d=[];for(n in o)if(o.hasOwnProperty(n)){var f=0;for(a=0;a<o[n].length;++a)f+=o[n][a].size*o[n][a].weight;d.push({set:n,size:f})}function p(t,e){return e.size-t.size}d.sort(p);var g={};function v(t){return t.set in g}function y(t,e){i[e].x=t.x,i[e].y=t.y,g[e]=!0}y({x:0,y:0},d[0].set);for(a=1;a<d.length;++a){var m=d[a].set,b=o[m].filter(v);if(n=i[m],b.sort(p),0===b.length)throw"ERROR: missing pairwise overlap information";for(var x=[],O=0;O<b.length;++O){var j=i[b[O].set],w=Pm(n.radius,j.radius,b[O].size);x.push({x:j.x+w,y:j.y}),x.push({x:j.x-w,y:j.y}),x.push({y:j.y+w,x:j.x}),x.push({y:j.y-w,x:j.x});for(var C=O+1;C<b.length;++C)for(var _=i[b[C].set],M=Pm(n.radius,_.radius,b[C].size),S=Sm({x:j.x,y:j.y,radius:w},{x:_.x,y:_.y,radius:M}),E=0;E<S.length;++E)x.push(S[E])}var k=1e50,I=x[0];for(O=0;O<x.length;++O){i[m].x=x[O].x,i[m].y=x[O].y;var A=r(i,t);A<k&&(k=A,I=x[O])}y(I,m)}return i}(t,e),r=e.lossFunction||Bm;if(t.length>=8){var i=function(t,e){var n,r=(e=e||{}).restarts||10,i=[],o={};for(n=0;n<t.length;++n){var a=t[n];1==a.sets.length&&(o[a.sets[0]]=i.length,i.push(a))}var s=function(t,e,n){var r=Object(jm.zerosM)(e.length,e.length),i=Object(jm.zerosM)(e.length,e.length);return t.filter((function(t){return 2==t.sets.length})).map((function(t){var o=n[t.sets[0]],a=n[t.sets[1]],s=Pm(Math.sqrt(e[o].size/Math.PI),Math.sqrt(e[a].size/Math.PI),t.size);r[o][a]=r[a][o]=s;var c=0;t.size+1e-10>=Math.min(e[o].size,e[a].size)?c=1:t.size<=1e-10&&(c=-1),i[o][a]=i[a][o]=c})),{distances:r,constraints:i}}(t,i,o),c=s.distances,l=s.constraints,u=Object(jm.norm2)(c.map(jm.norm2))/c.length;c=c.map((function(t){return t.map((function(t){return t/u}))}));var h,d,f=function(t,e){return function(t,e,n,r){var i,o=0;for(i=0;i<e.length;++i)e[i]=0;for(i=0;i<n.length;++i)for(var a=t[2*i],s=t[2*i+1],c=i+1;c<n.length;++c){var l=t[2*c],u=t[2*c+1],h=n[i][c],d=r[i][c],f=(l-a)*(l-a)+(u-s)*(u-s),p=Math.sqrt(f),g=f-h*h;d>0&&p<=h||d<0&&p>=h||(o+=2*g*g,e[2*i]+=4*g*(a-l),e[2*i+1]+=4*g*(s-u),e[2*c]+=4*g*(l-a),e[2*c+1]+=4*g*(u-s))}return o}(t,e,c,l)};for(n=0;n<r;++n){var p=Object(jm.zeros)(2*c.length).map(Math.random);d=Object(jm.conjugateGradient)(f,p,e),(!h||d.fx<h.fx)&&(h=d)}var g=h.x,v={};for(n=0;n<i.length;++n){var y=i[n];v[y.sets[0]]={x:g[2*n]*u,y:g[2*n+1]*u,radius:Math.sqrt(y.size/Math.PI)}}if(e.history)for(n=0;n<e.history.length;++n)Object(jm.scale)(e.history[n].x,u);return v}(t,e);r(i,t)+1e-8<r(n,t)&&(n=i)}return n}function Bm(t,e){var n=0;for(var r=0;r<e.length;++r){var i=e[r],o=void 0;if(1!=i.sets.length){if(2==i.sets.length){var a=t[i.sets[0]],s=t[i.sets[1]];o=Mm(a.radius,s.radius,_m(a,s))}else o=wm(i.sets.map((function(e){return t[e]})));n+=(i.hasOwnProperty("weight")?i.weight:1)*(o-i.size)*(o-i.size)}}return n}function Lm(t){var e=function(e){return{max:Math.max.apply(null,t.map((function(t){return t[e]+t.radius}))),min:Math.min.apply(null,t.map((function(t){return t[e]-t.radius})))}};return{xRange:e("x"),yRange:e("y")}}var Dm=Object(c.ab)((function(t,e,n,r){var i=new Map,o=t.length;return e.forEach((function(e,a){if(1===e[r].length)i.set(e.id,t[(a+o)%o]);else{var s=e[r].map((function(t){return i.get(t)}));i.set(e.id,s.slice(1).reduce((function(t,e){return xm(t,e,n)}),s[0]))}})),i}),(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return JSON.stringify(t)}));function Fm(t,e,n,r){void 0===r&&(r=0);var i=t.data,o=t.setsField,a=t.sizeField;if(0===i.length)return Ua(Va.WARN,!1,"warn: %s","数据不能为空"),[];var l=i.map((function(t){var e;return Object(s.a)(Object(s.a)({},t),((e={sets:t[o]||[],size:t[a]}).path="",e.id="",e))}));l.sort((function(t,e){return t.sets.length-e.sets.length}));var u=function(t,e,n,r){var i=[],o=[];for(var a in t)t.hasOwnProperty(a)&&(o.push(a),i.push(t[a]));e-=2*r,n-=2*r;var s=Lm(i),c=s.xRange,l=s.yRange;if(c.max==c.min||l.max==l.min)return console.log("not scaling solution: zero size detected"),t;for(var u=e/(c.max-c.min),h=n/(l.max-l.min),d=Math.min(h,u),f=(e-(c.max-c.min)*d)/2,p=(n-(l.max-l.min)*d)/2,g={},v=0;v<i.length;++v){var y=i[v];g[o[v]]={radius:d*y.radius,x:r+f+(y.x-c.min)*d,y:r+p+(y.y-l.min)*d}}return g}(function(t,e){(e=e||{}).maxIterations=e.maxIterations||500;var n,r=e.initialLayout||Tm,i=e.lossFunction||Bm,o=r(t=function(t){t=t.slice();var e,n,r,i,o=[],a={};for(e=0;e<t.length;++e){var s=t[e];1==s.sets.length?o.push(s.sets[0]):2==s.sets.length&&(r=s.sets[0],i=s.sets[1],a[[r,i]]=!0,a[[i,r]]=!0)}for(o.sort((function(t,e){return t>e?1:-1})),e=0;e<o.length;++e)for(r=o[e],n=e+1;n<o.length;++n)i=o[n],[r,i]in a||t.push({sets:[r,i],size:0});return t}(t),e),a=[],s=[];for(n in o)o.hasOwnProperty(n)&&(a.push(o[n].x),a.push(o[n].y),s.push(n));for(var c=Object(jm.nelderMead)((function(e){for(var n={},r=0;r<s.length;++r){var a=s[r];n[a]={x:e[2*r],y:e[2*r+1],radius:o[a].radius}}return i(n,t)}),a,e).x,l=0;l<s.length;++l)n=s[l],o[n].x=c[2*l],o[n].y=c[2*l+1];return o}(l),e,n,r),h=Am(u,l);return l.forEach((function(t){var e=t.sets,n=e.join(",");t.id=n;var r=function(t){var e={};wm(t,e);var n=e.arcs;if(0===n.length)return"M 0 0";if(1==n.length){var r=n[0].circle;return function(t,e,n){var r=[],i=t-n,o=e;return r.push("M",i,o),r.push("A",n,n,0,1,0,i+2*n,o),r.push("A",n,n,0,1,0,i,o),r.join(" ")}(r.x,r.y,r.radius)}for(var i=["\nM",n[0].p2.x,n[0].p2.y],o=0;o<n.length;++o){var a=n[o],s=a.circle.radius,c=a.width>s;i.push("\nA",s,s,0,c?1:0,1,a.p1.x,a.p1.y)}return i.join(" ")}(e.map((function(t){return u[t]})));/[zZ]$/.test(r)||(r+=" Z"),t.path=r;var i=h[n]||{x:0,y:0};Object(c.b)(t,i)})),l}function Rm(t,e,n){var r=t.chart,i=t.options,o=i.blendMode,a=i.setsField,s=r.getTheme(),l=s.colors10,u=s.colors20,h=n;Object(c.C)(h)||(h=e.filter((function(t){return 1===t[a].length})).length<=10?l:u);var d=Dm(h,e,o,a);return function(t){return d.get(t)||h[0]}}function Nm(t){var e=t.chart,n=t.options,r=n.legend,i=n.appendPadding,o=n.padding,a=gs(i);return!1!==r&&(a=vs(i,Object(c.s)(r,"position"),40)),e.appendPadding=ys([a,o]),t}function zm(t){var e=t.options.data;e||(Ua(Va.WARN,!1,"warn: %s","数据不能为空"),e=[]);var n=e.filter((function(t){return 1===t.sets.length})).map((function(t){return t.sets[0]})),r=e.filter((function(t){var e=t.sets;return function(t,e){for(var n=0;n<e.length;n++)if(!t.includes(e[n]))return!1;return!0}(n,e)}));return Object(c.H)(r,e)||Ua(Va.WARN,!1,"warn: %s","交集中不能出现不存在的集合, 请输入合法数据"),Object(c.h)({},t,{options:{data:r}})}function Wm(t){var e=t.chart,n=t.options,r=n.pointStyle,i=n.setsField,o=n.sizeField,a=gs(e.appendPadding),s=a[0],c=a[1],l=a[2],u=a[3],h={offsetX:u,offsetY:s},d=e.viewBBox,f=d.width,p=d.height,g=Fm(n,Math.max(f-(c+u),0),Math.max(p-(s+l),0),0);e.data(g);var v=fc(as({},t,{options:{xField:"x",yField:"y",sizeField:o,seriesField:"id",rawFields:[i,o],schema:{shape:"venn",style:r}}})).ext.geometry;v.customInfo(h);var y=function(t,e){var n=t.options.color;if("function"!=typeof n){var r=Rm(t,e,"string"==typeof n?[n]:n);return function(t){return r(t.id)}}return n}(t,g);return"function"==typeof y&&v.color("id",(function(e){var n=g.find((function(t){return t.id===e})),r=Rm(t,g)(e);return y(n,r)})),t}function $m(t){var e=t.chart,n=t.options.label,r=gs(e.appendPadding),i=r[0],o={offsetX:r[3],offsetY:i},a=ls(e,"schema");if(n){var l=n.callback,u=Object(s.f)(n,["callback"]);a.label({fields:["id"],callback:l,cfg:Object(c.h)({},fs(u),{type:"venn",customLabelInfo:o})})}else a.label(!1);return t}function Hm(t){var e=t.chart,n=t.options,r=n.legend,i=n.sizeField;return e.legend("id",r),e.legend(i,!1),t}function Ym(t){return t.chart.axis(!1),t}function Vm(t){var e=t.options,n=t.chart,r=e.interactions;if(r){var i={"legend-active":"venn-legend-active","legend-highlight":"venn-legend-highlight"};Hs(as({},t,{options:{interactions:r.map((function(t){return Object(s.a)(Object(s.a)({},t),{type:i[t.type]||t.type})}))}}))}return n.removeInteraction("legend-active"),n.removeInteraction("legend-highlight"),t}function Gm(t){return cs(Nm,Vs,zm,Wm,$m,Us({}),Hm,Ym,$s,Vm,Ys)(t)}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="venn",e}Object(s.c)(e,t),e.getDefaultOptions=function(){return cv},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Gm},e.prototype.triggerResize=function(){this.chart.destroyed||(this.chart.forceFit(),this.chart.clear(),this.execAdaptor(),this.chart.render(!0))}}(vc);var Km=as({},vc.getDefaultOptions(),{syncViewPadding:!0,kde:{type:"triangular",sampleSize:32,width:3},violinStyle:{lineWidth:1,fillOpacity:.3,strokeOpacity:.75},xAxis:{grid:{line:null},tickLine:{alignTick:!1}},yAxis:{grid:{line:{style:{lineWidth:.5,lineDash:[4,4]}}}},legend:{position:"top-left"},tooltip:{showMarkers:!1}}),Xm=n(711),Um=n.n(Xm);function qm(t,e){var n=t.length*e;if(0===t.length)throw new Error("quantile requires at least one data point.");if(e<0||e>1)throw new Error("quantiles must be between 0 and 1");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 Zm(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function Qm(t,e,n,r){for(n=n||0,r=r||t.length-1;r>n;){if(r-n>600){var i=r-n+1,o=e-n+1,a=Math.log(i),s=.5*Math.exp(2*a/3),c=.5*Math.sqrt(a*s*(i-s)/i);o-i/2<0&&(c*=-1),Qm(t,e,Math.max(n,Math.floor(e-o*s/i+c)),Math.min(r,Math.floor(e+(i-o)*s/i+c)))}var l=t[e],u=n,h=r;for(Zm(t,n,e),t[r]>l&&Zm(t,n,r);u<h;){for(Zm(t,u,h),u++,h--;t[u]<l;)u++;for(;t[h]>l;)h--}t[n]===l?Zm(t,n,h):Zm(t,++h,r),h<=e&&(n=h+1),e<=h&&(r=h-1)}}function Jm(t,e){var n=t.slice();if(Array.isArray(e)){!function(t,e){for(var n=[0],r=0;r<e.length;r++)n.push(nb(t.length,e[r]));n.push(t.length-1),n.sort(eb);var i=[0,n.length-1];for(;i.length;){var o=Math.ceil(i.pop()),a=Math.floor(i.pop());if(!(o-a<=1)){var s=Math.floor((a+o)/2);tb(t,n[s],Math.floor(n[a]),Math.ceil(n[o])),i.push(a,s,s,o)}}}(n,e);for(var r=[],i=0;i<e.length;i++)r[i]=qm(n,e[i]);return r}return tb(n,nb(n.length,e),0,n.length-1),qm(n,e)}function tb(t,e,n,r){e%1==0?Qm(t,e,n,r):(Qm(t,e=Math.floor(e),n,r),Qm(t,e+1,e+1,r))}function eb(t,e){return t-e}function nb(t,e){var n=t*e;return 1===e?t-1:0===e?0:n%1!=0?Math.ceil(n)-1:t%2==0?n-.5:n}var rb=function(t){return{low:Object(c.bb)(t),high:Object(c.Y)(t),q1:Jm(t,.25),q3:Jm(t,.75),median:Jm(t,[.5]),minMax:[Object(c.bb)(t),Object(c.Y)(t)],quantile:[Jm(t,.25),Jm(t,.75)]}},ib=function(t,e){var n=Um.a.create(t,e);return{violinSize:n.map((function(t){return t.y})),violinY:n.map((function(t){return t.x}))}},ob=function(t){var e=t.xField,n=t.yField,r=t.seriesField,i=t.data,o=t.kde,a={min:o.min,max:o.max,size:o.sampleSize,width:o.width};if(!r){var l=Object(c.w)(i,e);return Object.keys(l).map((function(t){var e=l[t].map((function(t){return t[n]}));return Object(s.a)(Object(s.a)({x:t},ib(e,a)),rb(e))}))}var u=[],h=Object(c.w)(i,r);return Object.keys(h).forEach((function(t){var i=Object(c.w)(h[t],e);return Object.keys(i).forEach((function(e){var o,c=i[e].map((function(t){return t[n]}));u.push(Object(s.a)(Object(s.a)(((o={x:e})[r]=t,o),ib(c,a)),rb(c)))}))})),u},ab=["low","high","q1","q3","median"],sb=[{type:"dodge",marginRatio:1/32}];function cb(t){var e=t.chart,n=t.options;return e.data(ob(n)),t}function lb(t){var e=t.chart,n=t.options,r=n.seriesField,i=n.color,o=n.shape,a=void 0===o?"violin":o,c=n.violinStyle,l=n.tooltip,u=n.state,h=e.createView({id:"violin_view"});return function(t){var e=t.options,n=e.violin,r=e.xField,i=e.yField,o=e.seriesField,a=e.sizeField,c=rc(e.tooltip,[r,i,o,a]),l=c.fields,u=c.formatter;n&&ac(as({},t,{options:{type:"violin",colorField:o,tooltipFields:l,mapping:Object(s.a)({tooltip:u},n)}}))}({chart:h,options:{xField:"x",yField:"violinY",seriesField:r||"x",sizeField:"violinSize",tooltip:Object(s.a)({fields:ab},l),violin:{style:c,color:i,shape:a},state:u}}),h.geometries[0].adjust(sb),t}function ub(t){var e=t.chart,n=t.options,r=n.seriesField,i=n.color,o=n.tooltip,a=n.box;if(!1===a)return t;var c=e.createView({id:"min_max_view"});lc({chart:c,options:{xField:"x",yField:"minMax",seriesField:r||"x",tooltip:Object(s.a)({fields:ab},o),state:"object"==typeof a?a.state:{},interval:{color:i,size:1,style:{lineWidth:0}}}}),c.geometries[0].adjust(sb);var l=e.createView({id:"quantile_view"});lc({chart:l,options:{xField:"x",yField:"quantile",seriesField:r||"x",tooltip:Object(s.a)({fields:ab},o),state:"object"==typeof a?a.state:{},interval:{color:i,size:8,style:{fillOpacity:1}}}}),l.geometries[0].adjust(sb);var u=e.createView({id:"median_view"});return hc({chart:u,options:{xField:"x",yField:"median",seriesField:r||"x",tooltip:Object(s.a)({fields:ab},o),state:"object"==typeof a?a.state:{},point:{color:i,size:1,style:{fill:"white",lineWidth:0}}}}),u.geometries[0].adjust(sb),l.axis(!1),c.axis(!1),u.axis(!1),u.legend(!1),c.legend(!1),l.legend(!1),t}function hb(t){var e,n=t.chart,r=t.options,i=r.meta,o=r.xAxis,a=r.yAxis,c=as({},i,((e={}).x=Object(s.a)(Object(s.a)({sync:!0},qa(o,Ga)),{type:"cat"}),e.violinY=Object(s.a)({sync:!0},qa(a,Ga)),e.minMax=Object(s.a)({sync:"violinY"},qa(a,Ga)),e.quantile=Object(s.a)({sync:"violinY"},qa(a,Ga)),e.median=Object(s.a)({sync:"violinY"},qa(a,Ga)),e));return n.scale(c),t}function db(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=ws(e,"violin_view");return!1===r?o.axis("x",!1):o.axis("x",r),!1===i?o.axis("violinY",!1):o.axis("violinY",i),e.axis(!1),t}function fb(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField,o=n.shape;if(!1===r)e.legend(!1);else{var a=i||"x",s=Object(c.gb)(r,["selected"]);o&&o.startsWith("hollow")||Object(c.s)(s,["marker","style","lineWidth"])||Object(c.lb)(s,["marker","style","lineWidth"],0),e.legend(a,s),Object(c.s)(r,"selected")&&Object(c.j)(e.views,(function(t){return t.legend(a,r)}))}return t}function pb(t){var e=ws(t.chart,"violin_view");return qs()(Object(s.a)(Object(s.a)({},t),{chart:e})),t}function gb(t){var e=t.chart,n=t.options.animation;return Object(c.j)(e.views,(function(t){Ms(t,n)})),t}function vb(t){return cs(Vs,cb,lb,ub,hb,$s,db,fb,Hs,pb,gb)(t)}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="violin",e}Object(s.c)(e,t),e.getDefaultOptions=function(){return Km},e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(ob(this.options))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return vb}}(vc);var yb={label:{},leaderLine:{style:{lineWidth:1,stroke:"#8c8c8c",lineDash:[4,2]}},total:{style:{fill:"rgba(0, 0, 0, 0.25)"}},interactions:[{type:"element-active"}],risingFill:"#f4664a",fallingFill:"#30bf78",waterfallStyle:{fill:"rgba(0, 0, 0, 0.25)"},yAxis:{grid:{line:{style:{lineDash:[4,2]}}}}};function mb(t,e,n,r){return function(t,e,n,r,i){var o,a=[];if(Object(c.ib)(t,(function(t,e){var i;Ua(Va.WARN,Object(c.M)(e[n]),"".concat(e[n]," is not a valid number"));var o=Object(c.S)(e[n])?null:e[n];return a.push(Object(s.a)(Object(s.a)({},e),((i={})[r]=[t,t+o],i))),t+o}),0),a.length&&i){var l=Object(c.s)(a,[[t.length-1],r,[1]]);a.push(((o={})[e]=i.label,o[n]=l,o[r]=[0,l],o))}return a}(t,e,n,"$$yField$$",r).map((function(e,n){var r;return Object(c.O)(e)?Object(s.a)(Object(s.a)({},e),((r={}).$$absoluteField$$=e.$$yField$$[1],r.$$diffField$$=e.$$yField$$[1]-e.$$yField$$[0],r.$$isTotal$$=n===t.length,r)):e}))}function bb(t){var e=t.options,n=e.locale,r=e.total,i=nc(n).get(["waterfall","total"]);return r&&"string"!=typeof r.label&&i&&(t.options.total.label=i),t}function xb(t){var e=t.chart,n=t.options,r=n.data,i=n.xField,o=n.yField,a=n.total,l=n.leaderLine,u=n.columnWidthRatio,h=n.waterfallStyle,d=n.risingFill,f=n.fallingFill,p=n.color,g=n.shape,v=n.customInfo;return e.data(mb(r,i,o,a)),lc(as({},t,{options:{xField:i,yField:"$$yField$$",seriesField:i,rawFields:[o,"$$diffField$$","$$isTotal$$","$$yField$$"],widthRatio:u,interval:{style:h,shape:g||"waterfall",color:p||function(t){return Object(c.s)(t,["$$isTotal$$"])?Object(c.s)(a,["style","fill"],""):Object(c.s)(t,["$$yField$$",1])-Object(c.s)(t,["$$yField$$",0])>0?d:f}}}})).ext.geometry.customInfo(Object(s.a)(Object(s.a)({},v),{leaderLine:l})),t}function Ob(t){var e,n,r=t.options,i=r.xAxis,o=r.yAxis,a=r.xField,s=r.yField,l=r.meta,u=as({},{alias:s},Object(c.s)(l,s));return cs(Us(((e={})[a]=i,e[s]=o,e.$$yField$$=o,e),as({},l,((n={}).$$yField$$=u,n.$$diffField$$=u,n.$$absoluteField$$=u,n))))(t)}function jb(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?(e.axis(a,!1),e.axis("$$yField$$",!1)):(e.axis(a,i),e.axis("$$yField$$",i)),t}function wb(t){var e=t.chart,n=t.options,r=n.legend,i=n.total,o=n.risingFill,a=n.fallingFill,s=nc(n.locale);if(!1===r)e.legend(!1);else{var l=[{name:s.get(["general","increase"]),value:"increase",marker:{symbol:"square",style:{r:5,fill:o}}},{name:s.get(["general","decrease"]),value:"decrease",marker:{symbol:"square",style:{r:5,fill:a}}}];i&&l.push({name:i.label||"",value:"total",marker:{symbol:"square",style:as({},{r:5},Object(c.s)(i,"style"))}}),e.legend(as({},{custom:!0,position:"top",items:l},r)),e.removeInteraction("legend-filter")}return t}function Cb(t){var e=t.chart,n=t.options,r=n.label,i=n.labelMode,o=n.xField,a=ls(e,"interval");if(r){var c=r.callback,l=Object(s.f)(r,["callback"]);a.label({fields:"absolute"===i?["$$absoluteField$$",o]:["$$diffField$$",o],callback:c,cfg:fs(l)})}else a.label(!1);return t}function _b(t){var e=t.chart,n=t.options,r=n.tooltip,i=n.xField,o=n.yField;if(!1!==r){e.tooltip(Object(s.a)({showCrosshairs:!1,showMarkers:!1,shared:!0,fields:[o]},r));var a=e.geometries[0];(null==r?void 0:r.formatter)?a.tooltip("".concat(i,"*").concat(o),r.formatter):a.tooltip(o)}else e.tooltip(!1);return t}function Mb(t){return cs(bb,Vs,xb,Ob,jb,wb,_b,Cb,Gs,Hs,Ys,qs())(t)}Vn("interval","waterfall",{draw:function(t,e){var n=t.customInfo,r=t.points,i=t.nextPoints,o=e.addGroup(),a=this.parsePath(function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(r){var i=0===n?"M":"L";e.push([i,r.x,r.y])}}var o=t[0];return e.push(["L",o.x,o.y]),e.push(["z"]),e}(r)),l=function(t){return as({},t.defaultStyle,t.style,{fill:t.color})}(t);o.addShape("path",{attrs:Object(s.a)(Object(s.a)({},l),{path:a})});var u=Object(c.s)(n,"leaderLine");if(u&&i){var h=[["M",r[2].x,r[2].y],["L",i[0].x,i[0].y]];r[2].y===i[1].y&&(h[1]=["L",i[1].x,i[1].y]),h=this.parsePath(h),o.addShape("path",{attrs:Object(s.a)({path:h},u.style||{})})}return o}});!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="waterfall",e}Object(s.c)(e,t),e.getDefaultOptions=function(){return yb},e.prototype.changeData=function(t){var e=this.options,n=e.xField,r=e.yField,i=e.total;this.updateOption({data:t}),this.chart.changeData(mb(t,n,r,i))},e.prototype.getSchemaAdaptor=function(){return Mb},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()}}(vc);var Sb=as({},vc.getDefaultOptions(),{timeInterval:2e3,legend:!1,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!1,fields:["text","value","color"],formatter:function(t){return{name:t.text,value:t.value}}},wordStyle:{fontFamily:"Verdana",fontWeight:"normal",padding:1,fontSize:[12,60],rotation:[0,90],rotationSteps:2,rotateRatio:.5}}),Eb={font:function(){return"serif"},padding:1,size:[500,500],spiral:"archimedean",timeInterval:3e3};function kb(t,e){return function(t,e){var n=function(){var t=[256,256],e=Pb,n=Bb,r=Tb,i=Lb,o=Db,a=zb,s=Math.random,c=[],l=1/0,u=Ab,h=Tb,d=$b,f={};function p(e,n,r){for(var i,o,c,l,u,h=n.x,d=n.y,f=Math.sqrt(t[0]*t[0]+t[1]*t[1]),p=a(t),g=s()<.5?1:-1,v=-g;(i=p(v+=g))&&(o=~~i[0],c=~~i[1],!(Math.min(Math.abs(o),Math.abs(c))>=f));)if(n.x=h+o,n.y=d+c,!(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>t[0]||n.y+n.y1>t[1]||r&&Rb(n,e,t[0])||r&&(u=r,!((l=n).x+l.x1>u[0].x&&l.x+l.x0<u[1].x&&l.y+l.y1>u[0].y&&l.y+l.y0<u[1].y)))){for(var y=n.sprite,m=n.width>>5,b=t[0]>>5,x=n.x-(m<<4),O=127&x,j=32-O,w=n.y1-n.y0,C=void 0,_=(n.y+n.y0)*b+(x>>5),M=0;M<w;M++){C=0;for(var S=0;S<=m;S++)e[_+S]|=C<<j|(S<m?(C=y[M*m+S])>>>O:0);_+=b}return delete n.sprite,!0}return!1}return f.start=function(){var a=t[0],g=t[1],v=function(t){t.width=t.height=1;var e=Math.sqrt(t.getContext("2d",{willReadFrequently:!0}).getImageData(0,0,1,1).data.length>>2);t.width=2048/e,t.height=2048/e;var n=t.getContext("2d",{willReadFrequently:!0});return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:e}}(d()),y=f.board?f.board:Wb((t[0]>>5)*t[1]),m=c.length,b=[],x=c.map((function(t,a,s){return t.text=u.call(this,t,a,s),t.font=e.call(this,t,a,s),t.style=h.call(this,t,a,s),t.weight=r.call(this,t,a,s),t.rotate=i.call(this,t,a,s),t.size=~~n.call(this,t,a,s),t.padding=o.call(this,t,a,s),t})).sort((function(t,e){return e.size-t.size})),O=-1,j=f.board?[{x:0,y:0},{x:a,y:g}]:null;return function(){var e=Date.now();for(;Date.now()-e<l&&++O<m;){var n=x[O];n.x=a*(s()+.5)>>1,n.y=g*(s()+.5)>>1,Fb(v,n,x,O),n.hasText&&p(y,n,j)&&(b.push(n),j?f.hasImage||Nb(j,n):j=[{x:n.x+n.x0,y:n.y+n.y0},{x:n.x+n.x1,y:n.y+n.y1}],n.x-=t[0]>>1,n.y-=t[1]>>1)}f._tags=b,f._bounds=j}(),f},f.createMask=function(e){var n=document.createElement("canvas"),r=t[0],i=t[1];if(r&&i){var o=r>>5,a=Wb((r>>5)*i);n.width=r,n.height=i;var s=n.getContext("2d");s.drawImage(e,0,0,e.width,e.height,0,0,r,i);for(var c=s.getImageData(0,0,r,i).data,l=0;l<i;l++)for(var u=0;u<r;u++){var h=o*l+(u>>5),d=l*r+u<<2,p=c[d]>=250&&c[d+1]>=250&&c[d+2]>=250?1<<31-u%32:0;a[h]|=p}f.board=a,f.hasImage=!0}},f.timeInterval=function(t){l=null==t?1/0:t},f.words=function(t){c=t},f.size=function(e){t=[+e[0],+e[1]]},f.font=function(t){e=Hb(t)},f.fontWeight=function(t){r=Hb(t)},f.rotate=function(t){i=Hb(t)},f.spiral=function(t){a=Yb[t]||t},f.fontSize=function(t){n=Hb(t)},f.padding=function(t){o=Hb(t)},f.random=function(t){s=Hb(t)},f}();["font","fontSize","fontWeight","padding","rotate","size","spiral","timeInterval","random"].forEach((function(t){Object(c.K)(e[t])||n[t](e[t])})),n.words(t),e.imageMask&&n.createMask(e.imageMask);var r=n.start()._tags;r.forEach((function(t){t.x+=e.size[0]/2,t.y+=e.size[1]/2}));var i=e.size,o=i[0],a=i[1];return r.push({text:"",value:0,x:0,y:0,opacity:0}),r.push({text:"",value:0,x:o,y:a,opacity:0}),r}(t,e=Object(c.b)({},Eb,e))}var Ib=Math.PI/180;function Ab(t){return t.text}function Pb(){return"serif"}function Tb(){return"normal"}function Bb(t){return t.value}function Lb(){return 90*~~(2*Math.random())}function Db(){return 1}function Fb(t,e,n,r){if(!e.sprite){var i=t.context,o=t.ratio;i.clearRect(0,0,2048/o,2048/o);var a=0,s=0,c=0,l=n.length;for(--r;++r<l;){e=n[r],i.save(),i.font=e.style+" "+e.weight+" "+~~((e.size+1)/o)+"px "+e.font;var u=i.measureText(e.text+"m").width*o,h=e.size<<1;if(e.rotate){var d=Math.sin(e.rotate*Ib),f=Math.cos(e.rotate*Ib),p=u*f,g=u*d,v=h*f,y=h*d;u=Math.max(Math.abs(p+y),Math.abs(p-y))+31>>5<<5,h=~~Math.max(Math.abs(g+v),Math.abs(g-v))}else u=u+31>>5<<5;if(h>c&&(c=h),a+u>=2048&&(a=0,s+=c,c=0),s+h>=2048)break;i.translate((a+(u>>1))/o,(s+(h>>1))/o),e.rotate&&i.rotate(e.rotate*Ib),i.fillText(e.text,0,0),e.padding&&(i.lineWidth=2*e.padding,i.strokeText(e.text,0,0)),i.restore(),e.width=u,e.height=h,e.xoff=a,e.yoff=s,e.x1=u>>1,e.y1=h>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,a+=u}for(var m=i.getImageData(0,0,2048/o,2048/o).data,b=[];--r>=0;)if((e=n[r]).hasText){for(var x=(u=e.width)>>5,O=(h=e.y1-e.y0,0);O<h*x;O++)b[O]=0;if(null==(a=e.xoff))return;s=e.yoff;for(var j=0,w=-1,C=0;C<h;C++){for(O=0;O<u;O++){var _=x*C+(O>>5),M=m[2048*(s+C)+(a+O)<<2]?1<<31-O%32:0;b[_]|=M,j|=M}j?w=C:(e.y0++,h--,C--,s++)}e.y1=e.y0+w,e.sprite=b.slice(0,(e.y1-e.y0)*x)}}}function Rb(t,e,n){n>>=5;for(var r,i=t.sprite,o=t.width>>5,a=t.x-(o<<4),s=127&a,c=32-s,l=t.y1-t.y0,u=(t.y+t.y0)*n+(a>>5),h=0;h<l;h++){r=0;for(var d=0;d<=o;d++)if((r<<c|(d<o?(r=i[h*o+d])>>>s:0))&e[u+d])return!0;u+=n}return!1}function Nb(t,e){var n=t[0],r=t[1];e.x+e.x0<n.x&&(n.x=e.x+e.x0),e.y+e.y0<n.y&&(n.y=e.y+e.y0),e.x+e.x1>r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}function zb(t){var e=t[0]/t[1];return function(t){return[e*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function Wb(t){for(var e=[],n=-1;++n<t;)e[n]=0;return e}function $b(){return document.createElement("canvas")}function Hb(t){return Object(c.I)(t)?t:function(){return t}}var Yb={archimedean:zb,rectangular:function(t){var e=4*t[0]/t[1],n=0,r=0;return function(t){var i=t<0?-1:1;switch(Math.sqrt(1+4*i*t)-i&3){case 0:n+=e;break;case 1:r+=4;break;case 2:n-=e;break;default:r-=4}return[n,r]}}};function Vb(t){var e=t.options,n=t.chart,r=n,i=r.width,o=r.height,a=r.padding,l=r.appendPadding,u=r.ele,h=e.data,d=e.imageMask,f=e.wordField,p=e.weightField,g=e.colorField,v=e.wordStyle,y=e.timeInterval,m=e.random,b=e.spiral,x=e.autoFit,O=void 0===x||x,j=e.placementStrategy;if(!h||!h.length)return[];var w,C=v.fontFamily,_=v.fontWeight,M=v.padding,S=v.fontSize,E=function(t,e){return t.map((function(t){return t[e]})).filter((function(t){return"number"==typeof t&&!isNaN(t)}))}(h,p),k=[(w=E,Math.min.apply(Math,w)),Ub(E)],I=h.map((function(t){return{text:t[f],value:t[p],color:t[g],datum:t}})),A={imageMask:d,font:C,fontSize:Kb(S,k),fontWeight:_,size:Gb({width:i,height:o,padding:a,appendPadding:l,autoFit:O,container:u}),padding:M,timeInterval:y,random:m,spiral:b,rotate:Xb(e)};if(Object(c.I)(j)){var P=I.map((function(t,e,r){return Object(s.a)(Object(s.a)(Object(s.a)({},t),{hasText:!!t.text,font:Hb(A.font)(t,e,r),weight:Hb(A.fontWeight)(t,e,r),rotate:Hb(A.rotate)(t,e,r),size:Hb(A.fontSize)(t,e,r),style:"normal"}),j.call(n,t,e,r))}));return P.push({text:"",value:0,x:0,y:0,opacity:0}),P.push({text:"",value:0,x:A.size[0],y:A.size[1],opacity:0}),P}return kb(I,A)}function Gb(t){var e=t.width,n=t.height,r=t.container,i=t.autoFit,o=t.padding,a=t.appendPadding;if(i){var s=ss(r);e=s.width,n=s.height}e=e||400,n=n||400;var c=function(t){var e=gs(t.padding),n=gs(t.appendPadding),r=e[0]+n[0],i=e[1]+n[1],o=e[2]+n[2],a=e[3]+n[3];return[r,i,o,a]}({padding:o,appendPadding:a}),l=c[0],u=c[1],h=c[2];return[e-(c[3]+u),n-(l+h)]}function Kb(t,e){if(Object(c.I)(t))return t;if(Object(c.C)(t)){var n=t[0],r=t[1];if(!e)return function(){return(r+n)/2};var i=e[0],o=e[1];return o===i?function(){return(r+n)/2}:function(t){var e=t.value;return(r-n)/(o-i)*(e-i)+n}}return function(){return t}}function Xb(t){var e=function(t){var e=t.wordStyle.rotationSteps;e<1&&(Ua(Va.WARN,!1,"The rotationSteps option must be greater than or equal to 1."),e=1);return{rotation:t.wordStyle.rotation,rotationSteps:e}}(t),n=e.rotation,r=e.rotationSteps;if(!Object(c.C)(n))return n;var i=n[0],o=n[1],a=1===r?0:(o-i)/(r-1);return function(){return o===i?o:Math.floor(Math.random()*r)*a}}function Ub(t){return Math.max.apply(Math,t)}function qb(t){var e=t.chart,n=t.options,r=n.colorField,i=n.color,o=Vb(t);return e.data(o),hc(as({},t,{options:{xField:"x",yField:"y",seriesField:r&&"color",rawFields:Object(c.I)(i)&&Object(s.g)(Object(s.g)([],Object(c.s)(n,"rawFields",[]),!0),["datum"],!1),point:{color:i,shape:"word-cloud"}}})).ext.geometry.label(!1),e.coordinate().reflect("y"),e.axis(!1),t}function Zb(t){return cs(Us({x:{nice:!1},y:{nice:!1}}))(t)}function Qb(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField;return!1===r?e.legend(!1):i&&e.legend("color",r),t}function Jb(t){cs(qb,Zb,$s,Qb,Hs,Ys,Vs,Gs)(t)}function tx(t){return{fontSize:t.data.size,text:t.data.text,textAlign:"center",fontFamily:t.data.font,fontWeight:t.data.weight,fill:t.color||t.defaultStyle.stroke,textBaseline:"alphabetic"}}Vn("point","word-cloud",{draw:function(t,e){var n=t.x,r=t.y,i=e.addShape("text",{attrs:Object(s.a)(Object(s.a)({},tx(t)),{x:n,y:r})}),o=t.data.rotate;return"number"==typeof o&&_r.rotate(i,o*Math.PI/180),i}});(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="word-cloud",e}Object(s.c)(e,t),e.getDefaultOptions=function(){return Sb},e.prototype.changeData=function(t){this.updateOption({data:t}),this.options.imageMask?this.render():this.chart.changeData(Vb({chart:this.chart,options:this.options}))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.render=function(){var e=this;return new Promise((function(n){var r=e.options.imageMask;if(!r)return t.prototype.render.call(e),void n();var i,o=function(r){e.options=Object(s.a)(Object(s.a)({},e.options),{imageMask:r||null}),t.prototype.render.call(e),n()};(i=r,new Promise((function(t,e){if(i instanceof HTMLImageElement)t(i);else{if(Object(c.Q)(i)){var n=new Image;return n.crossOrigin="anonymous",n.src=i,n.onload=function(){t(n)},void(n.onerror=function(){Ua(Va.ERROR,!1,"image %s load failed !!!",i),e()})}Ua(Va.WARN,void 0===i,"The type of imageMask option must be String or HTMLImageElement."),e()}}))).then(o).catch(o)}))},e.prototype.getSchemaAdaptor=function(){return Jb},e.prototype.triggerResize=function(){var e=this;this.chart.destroyed||(this.execAdaptor(),window.setTimeout((function(){t.prototype.triggerResize.call(e)})))}})(vc),function(t){function e(e,n,r,i){var o=t.call(this,e,as({},i,n))||this;return o.type="g2-plot",o.defaultOptions=i,o.adaptor=r,o}Object(s.c)(e,t),e.prototype.getDefaultOptions=function(){return this.defaultOptions},e.prototype.getSchemaAdaptor=function(){return this.adaptor}}(vc);n.d(e,"a",(function(){return Eu})),n.d(e,"b",(function(){return Tu})),n.d(e,"c",(function(){return fh})),n.d(e,"d",(function(){return mh})),n.d(e,"e",(function(){return Oh}));ec("en-US",{locale:"en-US",general:{increase:"Increase",decrease:"Decrease",root:"Root"},statistic:{total:"Total"},conversionTag:{label:"Rate"},legend:{},tooltip:{},slider:{},scrollbar:{},waterfall:{total:"Total"}}),ec("zh-CN",{locale:"zh-CN",general:{increase:"增加",decrease:"减少",root:"初始"},statistic:{total:"总计"},conversionTag:{label:"转化率"},legend:{},tooltip:{},slider:{},scrollbar:{},waterfall:{total:"总计"}})},580:function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"Base",(function(){return l})),n.d(r,"Circle",(function(){return u})),n.d(r,"Ellipse",(function(){return d})),n.d(r,"Image",(function(){return p})),n.d(r,"Line",(function(){return m})),n.d(r,"Marker",(function(){return D})),n.d(r,"Path",(function(){return K})),n.d(r,"Polygon",(function(){return U})),n.d(r,"Polyline",(function(){return q})),n.d(r,"Rect",(function(){return Q})),n.d(r,"Text",(function(){return J}));var i=n(25),o=n(549),a=n(553),s=n(576),c=n(593),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(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 c.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,c=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:c}},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),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(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,c=o.y,l=o.r,u=i/2,h=Object(a.b)(s,c,t,e);return r&&n?h<=l+u:r?h<=l:!!n&&(h>=l-u&&h<=l+u)},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}(l);function h(t,e,n,r){return t/(n*n)+e/(r*r)}var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(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,c=o.y,l=o.rx,u=o.ry,d=(t-s)*(t-s),f=(e-c)*(e-c);return r&&n?h(d,f,l+a,u+a)<=1:r?h(d,f,l,u)<=1:!!n&&(h(d,f,l-a,u-a)>=1&&h(d,f,l+a,u+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,c=i>o?o/i:1;t.save(),t.translate(n,r),t.scale(s,c),t.arc(0,0,a,0,2*Math.PI),t.restore(),t.closePath()}},e}(l);function f(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.c)(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)):f(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,c=e.sy,l=e.swidth,u=e.sheight,h=e.img;(h instanceof Image||f(h))&&(Object(a.i)(s)||Object(a.i)(c)||Object(a.i)(l)||Object(a.i)(u)?t.drawImage(h,n,r,i,o):t.drawImage(h,s,c,l,u,n,r,i,o))},e}(l),g=n(557);function v(t,e,n,r,i,o,a){var s=Math.min(t,n),c=Math.max(t,n),l=Math.min(e,r),u=Math.max(e,r),h=i/2;return o>=s-h&&o<=c+h&&a>=l-h&&a<=u+h&&g.c.pointToLine(t,e,n,r,o,a)<=i/2}var y=n(592),m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(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,c={dx:0,dy:0},l={dx:0,dy:0};a&&a.d&&(c=y.c(n,r,i,o,e.startArrow.d)),s&&s.d&&(l=y.c(n,r,i,o,e.endArrow.d)),t.beginPath(),t.moveTo(n+c.dx,r+c.dy),t.lineTo(i-l.dx,o-l.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}(l),b=n(545),x=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,O=/[^\s\,]+/gi;var j=function(t){var e=t||[];return Object(b.C)(e)?e:Object(b.Q)(e)?(e=e.match(x),Object(b.j)(e,(function(t,n){if((t=t.match(O))[0].length>1){var r=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=r}Object(b.j)(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0};n(548);var w="\t\n\v\f\r \u2028\u2029",C=new RegExp("([a-z])["+w+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+w+"]*,?["+w+"]*)+)","ig"),_=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+w+"]*,?["+w+"]*","ig");var M=/[a-z]/;function S(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function E(t){var e=function(t){if(!t)return null;if(Object(b.C)(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(_,(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}(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(M.test(i)||["V","H","T","S"].indexOf(i)>=0){n=!0;break}}if(!n)return e;var o=[],a=0,s=0,c=0,l=0,u=0,h=e[0];"M"!==h[0]&&"m"!==h[0]||(c=a=+h[1],l=s=+h[2],u++,o[0]=["M",a,s]);r=u;for(var d=e.length;r<d;r++){var f=e[r],p=o[r-1],g=[],v=(i=f[0]).toUpperCase();if(i!==v)switch(g[0]=v,v){case"A":g[1]=f[1],g[2]=f[2],g[3]=f[3],g[4]=f[4],g[5]=f[5],g[6]=+f[6]+a,g[7]=+f[7]+s;break;case"V":g[1]=+f[1]+s;break;case"H":g[1]=+f[1]+a;break;case"M":c=+f[1]+a,l=+f[2]+s,g[1]=c,g[2]=l;break;default:for(var y=1,m=f.length;y<m;y++)g[y]=+f[y]+(y%2?a:s)}else g=e[r];switch(v){case"Z":a=+c,s=+l;break;case"H":g=["L",a=g[1],s];break;case"V":g=["L",a,s=g[1]];break;case"T":a=g[1],s=g[2];var x=S([p[1],p[2]],[p[3],p[4]]);g=["Q",x[0],x[1],a,s];break;case"S":a=g[g.length-2],s=g[g.length-1];var O=p.length,j=S([p[O-4],p[O-3]],[p[O-2],p[O-1]]);g=["C",j[0],j[1],g[1],g[2],a,s];break;case"M":c=g[g.length-2],l=g[g.length-1];break;default:a=g[g.length-2],s=g[g.length-1]}o.push(g)}return o}Math.PI;function k(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function I(t,e){return k(t)*k(e)?(t[0]*e[0]+t[1]*e[1])/(k(t)*k(e)):1}function A(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(I(t,e))}function P(t,e){return t[0]===e[0]&&t[1]===e[1]}function T(t,e){var n=e[1],r=e[2],i=Object(b.eb)(Object(b.sb)(e[3]),2*Math.PI),o=e[4],a=e[5],s=t[0],c=t[1],l=e[6],u=e[7],h=Math.cos(i)*(s-l)/2+Math.sin(i)*(c-u)/2,d=-1*Math.sin(i)*(s-l)/2+Math.cos(i)*(c-u)/2,f=h*h/(n*n)+d*d/(r*r);f>1&&(n*=Math.sqrt(f),r*=Math.sqrt(f));var p=n*n*(d*d)+r*r*(h*h),g=p?Math.sqrt((n*n*(r*r)-p)/p):1;o===a&&(g*=-1),isNaN(g)&&(g=0);var v=r?g*n*d/r:0,y=n?g*-r*h/n:0,m=(s+l)/2+Math.cos(i)*v-Math.sin(i)*y,x=(c+u)/2+Math.sin(i)*v+Math.cos(i)*y,O=[(h-v)/n,(d-y)/r],j=[(-1*h-v)/n,(-1*d-y)/r],w=A([1,0],O),C=A(O,j);return I(O,j)<=-1&&(C=Math.PI),I(O,j)>=1&&(C=0),0===a&&C>0&&(C-=2*Math.PI),1===a&&C<0&&(C+=2*Math.PI),{cx:m,cy:x,rx:P(t,[l,u])?0:n,ry:P(t,[l,u])?0:r,startAngle:w,endAngle:w+C,xRotation:i,arcFlag:o,sweepFlag:a}}function B(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}var L={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"]]}},D=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(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.K)(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",c=this._getR(r);if(Object(a.h)(s))n=E(n=(t=s)(i,o,c));else{if(!(t=e.Symbols[s]))return console.warn(s+" marker is not supported."),null;n=t(i,o,c)}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=L,e}(l);function F(t,e,n){var r=Object(o.getOffScreenContext)();return t.createPath(r),r.isPointInPath(e,n)}function R(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function N(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 z(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(N(a,s,[e,n]))return!0;R(a[1]-n)>0!=R(s[1]-n)>0&&R(e-(n-a[1])*(a[0]-s[0])/(a[1]-s[1])-a[0])<0&&(r=!r)}return r}var W=n(551),$=n(609);function H(t,e,n,r,i,o,s,c){var l=(Math.atan2(c-e,s-t)+2*Math.PI)%(2*Math.PI);if(l<r||l>i)return!1;var u={x:t+n*Math.cos(l),y:e+n*Math.sin(l)};return Object(a.b)(u.x,u.y,s,c)<=o/2}var Y=W.a.transform;var V=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,c=0;c<t.length;c++){var l=t[c],u=l.currentPoint,h=l.params,d=l.prePoint,f=l.box;if(!f||Object(a.e)(f.x-s,f.y-s,f.width+e,f.height+e,n,r)){switch(l.command){case"L":case"Z":o=v(d[0],d[1],u[0],u[1],e,n,r);break;case"Q":o=g.e.pointDistance(d[0],d[1],h[1],h[2],h[3],h[4],n,r)<=e/2;break;case"C":o=g.b.pointDistance(d[0],d[1],h[1],h[2],h[3],h[4],h[5],h[6],n,r,i)<=e/2;break;case"A":var p=l.arcParams,y=p.cx,m=p.cy,b=p.rx,x=p.ry,O=p.startAngle,j=p.endAngle,w=p.xRotation,C=[n,r,1],_=b>x?b:x,M=Y(null,[["t",-y,-m],["r",-w],["s",1/(b>x?1:b/x),1/(b>x?x/b:1)]]);$.transformMat3(C,C,M),o=H(0,0,_,O,j,e,C[0],C[1])}if(o)break}}return o}},o.PathUtil);function G(t,e,n){for(var r=!1,i=0;i<t.length;i++){if(r=z(t[i],e,n))break}return r}var K=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(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=E(t);var e=V.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=function(t){for(var e=[],n=null,r=null,i=null,o=0,a=(t=j(t)).length,s=0;s<a;s++){var c=t[s];r=t[s+1];var l=c[0],u={command:l,prePoint:n,params:c,startTangent:null,endTangent:null};switch(l){case"M":i=[c[1],c[2]],o=s;break;case"A":var h=T(n,c);u.arcParams=h}if("Z"===l)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)),u.currentPoint=n,e[o]&&P(n,e[o].currentPoint)&&(e[o].prePoint=u.prePoint);var f=r?[r[r.length-2],r[r.length-1]]:null;u.nextPoint=f;var p=u.prePoint;if(["L","H","V"].includes(l))u.startTangent=[p[0]-n[0],p[1]-n[1]],u.endTangent=[n[0]-p[0],n[1]-p[1]];else if("Q"===l){var g=[c[1],c[2]];u.startTangent=[p[0]-g[0],p[1]-g[1]],u.endTangent=[n[0]-g[0],n[1]-g[1]]}else if("T"===l){g=B((m=e[s-1]).currentPoint,p);"Q"===m.command?(u.command="Q",u.startTangent=[p[0]-g[0],p[1]-g[1]],u.endTangent=[n[0]-g[0],n[1]-g[1]]):(u.command="TL",u.startTangent=[p[0]-n[0],p[1]-n[1]],u.endTangent=[n[0]-p[0],n[1]-p[1]])}else if("C"===l){var v=[c[1],c[2]],y=[c[3],c[4]];u.startTangent=[p[0]-v[0],p[1]-v[1]],u.endTangent=[n[0]-y[0],n[1]-y[1]],0===u.startTangent[0]&&0===u.startTangent[1]&&(u.startTangent=[v[0]-y[0],v[1]-y[1]]),0===u.endTangent[0]&&0===u.endTangent[1]&&(u.endTangent=[y[0]-v[0],y[1]-v[1]])}else if("S"===l){var m;v=B((m=e[s-1]).currentPoint,p),y=[c[1],c[2]];"C"===m.command?(u.command="C",u.startTangent=[p[0]-v[0],p[1]-v[1]],u.endTangent=[n[0]-y[0],n[1]-y[1]]):(u.command="SQ",u.startTangent=[p[0]-y[0],p[1]-y[1]],u.endTangent=[n[0]-y[0],n[1]-y[1]])}else if("A"===l){var b=.001,x=u.arcParams||{},O=x.cx,w=void 0===O?0:O,C=x.cy,_=void 0===C?0:C,M=x.rx,S=void 0===M?0:M,E=x.ry,k=void 0===E?0:E,I=x.sweepFlag,A=void 0===I?0:I,L=x.startAngle,D=void 0===L?0:L,F=x.endAngle,R=void 0===F?0:F;0===A&&(b*=-1);var N=S*Math.cos(D-b)+w,z=k*Math.sin(D-b)+_;u.startTangent=[N-i[0],z-i[1]];var W=S*Math.cos(D+R+b)+w,$=k*Math.sin(D+R-b)+_;u.endTangent=[p[0]-W,p[1]-$]}e.push(u)}return e}(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 c=this.getTotalLength();s=V.isPointInStroke(o,i,t,e,c)}if(!s&&r)if(a)s=F(this,t,e);else{var l=this.attr("path"),u=V.extractPolygons(l);s=G(u.polygons,t,e)||G(u.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.K)(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.j)(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.K)(o)||Object(b.K)(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",V.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,n,r,i=0,o=0,a=[],s=this.get("curve");s&&(Object(b.j)(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.j)(s,(function(c,l){n=s[l+1],r=c.length,n&&((t=[])[0]=o/i,e=g.b.length(c[r-2],c[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}(l);function X(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],c=t[o-1];if(v(s[0],s[1],c[0],c[1],e,n,r))return!0}return!1}var U=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(e,t),e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr().points,a=!1;return n&&(a=X(o,i,t,e,!0)),!a&&r&&(a=z(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}(l),q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(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],c=n[o-1][0],l=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],c,l)},e.prototype.isFill=function(){return!1},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){return!(!n||!i)&&X(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],c=n[0][1],l=n[o-1][0],u=n[o-1][1];if(r&&r.d)s+=(a=y.c(s,c,n[1][0],n[1][1],r.d)).dx,c+=a.dy;if(i&&i.d)l-=(a=y.c(n[o-2][0],n[o-2][1],l,u,i.d)).dx,u-=a.dy;t.beginPath(),t.moveTo(s,c);for(var h=0;h<o-1;h++){var d=n[h];t.lineTo(d[0],d[1])}t.lineTo(l,u)}},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.K)(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.j)(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.j)(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}(l),Z=n(648);var Q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(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,c=o.y,l=o.width,u=o.height,h=o.radius;if(h){var d=!1;return n&&(d=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)||H(t+n-i,e+i,i,1.5*Math.PI,2*Math.PI,o,a,s)||H(t+n-i,e+r-i,i,0,.5*Math.PI,o,a,s)||H(t+i,e+r-i,i,.5*Math.PI,Math.PI,o,a,s)||H(t+i,e+i,i,Math.PI,1.5*Math.PI,o,a,s)}(s,c,l,u,h,i,t,e)),!d&&r&&(d=F(this,t,e)),d}var f=i/2;return r&&n?Object(a.e)(s-f,c-f,l+f,u+f,t,e):r?Object(a.e)(s,c,l,u,t,e):n?function(t,e,n,r,i,o,s){var c=i/2;return Object(a.e)(t-c,e-c,n,i,o,s)||Object(a.e)(t+n-c,e-c,i,r,o,s)||Object(a.e)(t+c,e+r-c,n,i,o,s)||Object(a.e)(t-c,e+c,i,r,o,s)}(s,c,l,u,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(Z.a)(a),c=s[0],l=s[1],u=s[2],h=s[3];t.moveTo(n+c,r),t.lineTo(n+i-l,r),0!==l&&t.arc(n+i-l,r+l,l,-Math.PI/2,0),t.lineTo(n+i,r+o-u),0!==u&&t.arc(n+i-u,r+o-u,u,0,Math.PI/2),t.lineTo(n+h,r+o),0!==h&&t.arc(n+h,r+o-h,h,Math.PI/2,Math.PI),t.lineTo(n,r+c),0!==c&&t.arc(n+c,r+c,c,Math.PI,1.5*Math.PI),t.closePath()}},e}(l),J=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(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,c=i.x,l=i.y,u=1*i.fontSize,h=this._getSpaceingY(),d=Object(o.getTextHeight)(i.text,i.fontSize,i.lineHeight);Object(a.c)(e,(function(e,i){r=l+i*(h+u)-d+u,"middle"===s&&(r+=d-u-(d-u)/2),"top"===s&&(r+=d-u),Object(a.i)(e)||(n?t.fillText(e,c,r):t.strokeText(e,c,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 s=n.text;Object(a.i)(s)||(e?t.fillText(s,r,i):t.strokeText(s,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}(l);n.d(e,"Base",(function(){return l})),n.d(e,"Circle",(function(){return u})),n.d(e,"Ellipse",(function(){return d})),n.d(e,"Image",(function(){return p})),n.d(e,"Line",(function(){return m})),n.d(e,"Marker",(function(){return D})),n.d(e,"Path",(function(){return K})),n.d(e,"Polygon",(function(){return U})),n.d(e,"Polyline",(function(){return q})),n.d(e,"Rect",(function(){return Q})),n.d(e,"Text",(function(){return J}))},581:function(t,e,n){"use strict";var r=n(1),i=n(545),o=n(56);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)}var s,c=function(){return(c=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)},l=c({},o),u=l.version,h=l.render;l.unmountComponentAtNode;try{Number((u||"").split(".")[0])>=18&&(s=l.createRoot)}catch(t){}function d(t){var e=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;e&&"object"===a(e)&&(e.usingClientEntryPoint=t)}var f="__rc_react_root__";function p(t,e){s?function(t,e){d(!0);var n=e[f]||s(e);d(!1),n.render(t),e[f]=n}(t,e):function(t,e){h(t,e)}(t,e)}var g=new Map,v=function(t,e,n){var r=document.createElement("div");return"tooltip"===e&&(r.setAttribute("data-uuid",n),g.has(n)?r=g.get(n):g.set(n,r),r.className="g2-tooltip"),p(t,r),r};function y(t){return(y="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 m=function(t,e){return{}.toString.call(t)==="[object ".concat(e,"]")},b=function(t){return t&&"object"===y(t)?(Array.isArray(t)?e=t.map((function(t){return b(t)})):(e={},Object.keys(t).forEach((function(n){return e[n]=b(t[n])}))),e):t;var e},x=function(t,e){for(var n=t,r=0;r<e.length;r+=1){if(!(null==n?void 0:n[e[r]])){n=void 0;break}n=n[e[r]]}return n};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)}n.d(e,"a",(function(){return C}));var j=function(){return(j=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)},w=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};function C(t,e){var n=Object(r.useRef)(),o=Object(r.useRef)(),a=Object(r.useRef)(null),s=e.onReady,c=e.onEvent,l=function(t,e,n,r){var i=x(t,e);!function(t,e,n){if(!t)return t;var r=t;e.forEach((function(t,i){i<e.length-1?r=r[t]:r[t]=n}))}(t,e,(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var o=m(i,"Function")?i.apply(void 0,t):i;return m(o,"String")||m(o,"Number")||m(o,"HTMLDivElement")?o:v(o,n,r)}))},u=function(){var t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}));x(e,["statistic","content","customHtml"])&&l(e,["statistic","content","customHtml"]),x(e,["statistic","title","customHtml"])&&l(e,["statistic","title","customHtml"]),"object"===O(e.tooltip)&&(x(e,["tooltip","container"])&&l(e,["tooltip","container"],"tooltip",t),x(e,["tooltip","customContent"])&&l(e,["tooltip","customContent"],"tooltip",t))};return Object(r.useEffect)((function(){if(n.current&&!Object(i.H)(o.current,e)){var t=!1;if(o.current){var r=o.current,a=(r.data,r.value,r.percent,w(r,["data","value","percent"])),s=(e.data,e.value,e.percent,w(e,["data","value","percent"]));t=Object(i.H)(a,s)}if(o.current=b(e),t&&"Mix"!==Object(i.s)(e,"chartType")){var c="data",l=Object.keys(e);["percent"].forEach((function(t){l.includes(t)&&(c=t)})),n.current.changeData((null==e?void 0:e[c])||[]),n.current.render()}else u(),n.current.update(e)}}),[e]),Object(r.useEffect)((function(){if(!a.current)return function(){return null};o.current||(o.current=b(e)),u();var r=new t(a.current,j({},e));r.toDataURL=function(t,e){return function(t,e){var r;return void 0===t&&(t="image/png"),null===(r=n.current)||void 0===r?void 0:r.chart.canvas.cfg.el.toDataURL(t,e)}(t,e)},r.downloadImage=function(t,e,r){return function(t,e,r){var i;void 0===t&&(t="download"),void 0===e&&(e="image/png");var o=t;-1===t.indexOf(".")&&(o="".concat(t,".").concat(e.split("/")[1]));var a=null===(i=n.current)||void 0===i?void 0:i.chart.canvas.cfg.el.toDataURL(e,r),s=document.createElement("a");return s.href=a,s.download=o,document.body.appendChild(s),s.click(),document.body.removeChild(s),s=null,o}(t,e,r)},r.render(),n.current=function(t){if(!t)return t;var e={};for(var n in t)e[n]=t[n];return e}(r),s&&s(r);var i=function(t){c&&c(r,t)};return r.on("*",i),function(){n.current&&(n.current.destroy(),n.current.off("*",i),n.current=void 0)}}),[]),{chart:n,container:a}}},583:function(t,e,n){"use strict";var r=n(1),i=n.n(r),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)};var a=function(t){var e=t.animate,n=t.backgroundColor,i=t.backgroundOpacity,a=t.baseUrl,s=t.children,c=t.foregroundColor,l=t.foregroundOpacity,u=t.gradientRatio,h=t.uniqueKey,d=t.interval,f=t.rtl,p=t.speed,g=t.style,v=t.title,y=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}(t,["animate","backgroundColor","backgroundOpacity","baseUrl","children","foregroundColor","foregroundOpacity","gradientRatio","uniqueKey","interval","rtl","speed","style","title"]),m=h||Math.random().toString(36).substring(6),b=m+"-diff",x=m+"-animated-diff",O=m+"-aria",j=f?{transform:"scaleX(-1)"}:null,w="0; "+d+"; 1",C=p+"s";return Object(r.createElement)("svg",o({"aria-labelledby":O,role:"img",style:o(o({},g),j)},y),v?Object(r.createElement)("title",{id:O},v):null,Object(r.createElement)("rect",{role:"presentation",x:"0",y:"0",width:"100%",height:"100%",clipPath:"url("+a+"#"+b+")",style:{fill:"url("+a+"#"+x+")"}}),Object(r.createElement)("defs",{role:"presentation"},Object(r.createElement)("clipPath",{id:b},s),Object(r.createElement)("linearGradient",{id:x},Object(r.createElement)("stop",{offset:"0%",stopColor:n,stopOpacity:i},e&&Object(r.createElement)("animate",{attributeName:"offset",values:-u+"; "+-u+"; 1",keyTimes:w,dur:C,repeatCount:"indefinite"})),Object(r.createElement)("stop",{offset:"50%",stopColor:c,stopOpacity:l},e&&Object(r.createElement)("animate",{attributeName:"offset",values:-u/2+"; "+-u/2+"; "+(1+u/2),keyTimes:w,dur:C,repeatCount:"indefinite"})),Object(r.createElement)("stop",{offset:"100%",stopColor:n,stopOpacity:i},e&&Object(r.createElement)("animate",{attributeName:"offset",values:"0; 0; "+(1+u),keyTimes:w,dur:C,repeatCount:"indefinite"})))))};a.defaultProps={animate:!0,backgroundColor:"#f5f6f7",backgroundOpacity:1,baseUrl:"",foregroundColor:"#eee",foregroundOpacity:1,gradientRatio:2,id:null,interval:.25,rtl:!1,speed:1.2,style:{},title:"Loading..."};var s=function(t){return t.children?Object(r.createElement)(a,o({},t)):Object(r.createElement)(c,o({},t))},c=function(t){return Object(r.createElement)(s,o({viewBox:"0 0 476 124"},t),Object(r.createElement)("rect",{x:"48",y:"8",width:"88",height:"6",rx:"3"}),Object(r.createElement)("rect",{x:"48",y:"26",width:"52",height:"6",rx:"3"}),Object(r.createElement)("rect",{x:"0",y:"56",width:"410",height:"6",rx:"3"}),Object(r.createElement)("rect",{x:"0",y:"72",width:"380",height:"6",rx:"3"}),Object(r.createElement)("rect",{x:"0",y:"88",width:"178",height:"6",rx:"3"}),Object(r.createElement)("circle",{cx:"20",cy:"20",r:"20"}))},l=s;e.a=function(t){var e=t.loadingTemplate,n=t.theme,r=void 0===n?"light":n;return i.a.createElement("div",{className:"charts-loading-container",style:{position:"absolute",width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",left:0,top:0,zIndex:99,backgroundColor:"dark"===r?"rgb(20, 20, 20)":"rgb(255, 255, 255)"}},e||i.a.createElement(l,{viewBox:"0 0 400 180",width:200,height:90,speed:1,backgroundColor:"dark"===r?"#262626":"#D9D9D9"},i.a.createElement("rect",{x:"20",y:"5",rx:"0",ry:"0",width:"1",height:"170"}),i.a.createElement("rect",{x:"20",y:"175",rx:"0",ry:"0",width:"360",height:"1"}),i.a.createElement("rect",{x:"40",y:"75",rx:"0",ry:"0",width:"35",height:"100"}),i.a.createElement("rect",{x:"80",y:"125",rx:"0",ry:"0",width:"35",height:"50"}),i.a.createElement("rect",{x:"120",y:"105",rx:"0",ry:"0",width:"35",height:"70"}),i.a.createElement("rect",{x:"160",y:"35",rx:"0",ry:"0",width:"35",height:"140"}),i.a.createElement("rect",{x:"200",y:"55",rx:"0",ry:"0",width:"35",height:"120"}),i.a.createElement("rect",{x:"240",y:"15",rx:"0",ry:"0",width:"35",height:"160"}),i.a.createElement("rect",{x:"280",y:"135",rx:"0",ry:"0",width:"35",height:"40"}),i.a.createElement("rect",{x:"320",y:"85",rx:"0",ry:"0",width:"35",height:"90"})))}},584:function(t,e,n){"use strict";var r=n(545);function i(t,e){return t.charCodeAt(e)>0&&t.charCodeAt(e)<128?1:2}n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return a}));function o(t){if(t.length>400)return function(t){for(var e=t.map((function(t){var e=t.attr("text");return Object(r.K)(e)?"":""+e})),n=0,i=0,o=0;o<e.length;o+=1){for(var a=0,s=0;s<=e[o].length;s+=1){var c=e[o].charCodeAt(s);a+=c>=19968&&c<=40869?2:1}a>n&&(n=a,i=o)}return t[i].getBBox().width}(t);var e=0;return Object(r.j)(t,(function(t){var n=t.getBBox().width;e<n&&(e=n)})),e}function a(t,e,n,o){var a;void 0===o&&(o="tail");var s=null!==(a=e.attr("text"))&&void 0!==a?a:"";if("tail"===o){var c=Object(r.hb)(e.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),l=Object(r.t)(s,n,c,"…");return s!==l?(e.attr("text",l),e.set("tip",s),!0):(e.set("tip",null),!1)}var u=function(t,e){var n=e.getCanvasBBox();return t?n.width:n.height}(t,e),h=function(t){for(var e=0,n=0;n<t.length;n++)e+=i(t,n);return e}(s),d=!1;if(n<u){var f=Math.floor(n/u*h)-2,p=void 0;(p=f>=0?function(t,e,n){void 0===n&&(n="tail");var r=t.length,o="";if("tail"===n){for(var a=0,s=0;a<e;){if(!(a+i(t,s)<=e))break;o+=t[s],a+=i(t,s),s++}o+="…"}else if("head"===n){for(a=0,s=r-1;a<e;){if(!(a+i(t,s)<=e))break;o+=t[s],a+=i(t,s),s--}o="…"+o}else{for(var c="",l="",u=(a=0,0),h=r-1;a<e;){var d=i(t,u),f=!1;d+a<=e&&(c+=t[u],u++,a+=d,f=!0);var p=i(t,h);if(p+a<=e&&(l=t[h]+l,a+=p,h--,f=!0),!f)break}o=c+"…"+l}return o}(s,f,o):"…")&&(e.attr("text",p),d=!0)}return d?e.set("tip",s):e.set("tip",null),d}},587: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(562),i=n(610);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()}},588:function(t,e){},589:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o}));
|
|
1
|
+
(window.webpackJsonpfeffery_antd_components=window.webpackJsonpfeffery_antd_components||[]).push([[2],{497:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1),react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__),antd__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(531),antd__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(739),antd__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(364),antd__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(65),antd__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(734),antd__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(535),antd__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(447),antd__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(335),antd__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(361),antd__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(733),antd__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(534),antd__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(597),antd__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(743),antd__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(241),antd__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(514),antd__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(536),antd__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(740),antd__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(184),antd__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(732),antd__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(18),_ant_design_plots__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(726),_ant_design_plots__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(728),_ant_design_plots__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__(729),_ant_design_plots__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__(730),_ant_design_plots__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__(731),_components_general_AntdIcon_react__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__(70),_ant_design_icons__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__(235),_ant_design_icons__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__(138),_ant_design_icons__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__(520),react_highlight_words__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__(636),react_highlight_words__WEBPACK_IMPORTED_MODULE_30___default=__webpack_require__.n(react_highlight_words__WEBPACK_IMPORTED_MODULE_30__),lodash__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__(9),lodash__WEBPACK_IMPORTED_MODULE_31___default=__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_31__),ramda__WEBPACK_IMPORTED_MODULE_32__=__webpack_require__(229),_components_locales_react__WEBPACK_IMPORTED_MODULE_33__=__webpack_require__(57),_components_utils__WEBPACK_IMPORTED_MODULE_34__=__webpack_require__(11),_contexts_PropsContext__WEBPACK_IMPORTED_MODULE_35__=__webpack_require__(46),_components_dataDisplay_AntdTable_react__WEBPACK_IMPORTED_MODULE_36__=__webpack_require__(295),_excluded=["id","className","style","key","locale","containerId","columns","showHeader","rowHoverable","tableLayout","miniChartHeight","miniChartAnimation","rowSelectionType","selectedRowKeys","rowSelectionWidth","rowSelectionCheckStrictly","rowSelectionIgnoreRowKeys","sticky","titlePopoverInfo","columnsFormatConstraint","enableHoverListen","data","sortOptions","showSorterTooltip","showSorterTooltipTarget","filterOptions","defaultFilteredValues","pagination","bordered","maxHeight","maxWidth","scrollToFirstRowOnChange","size","mode","nClicksButton","nDoubleClicksCell","summaryRowContents","summaryRowBlankColumns","summaryRowFixed","customFormatFuncs","conditionalStyleFuncs","expandedRowKeyToContent","expandedRowWidth","expandRowByClick","defaultExpandedRowKeys","expandedRowKeys","enableCellClickListenColumns","nClicksCell","nContextMenuClicksCell","emptyContent","cellUpdateOptimize","nClicksDropdownItem","hiddenRowKeys","virtual","title","footer","loading","rowClassName","setProps"],_excluded2=["index"],_excluded3=["title","editable","children","dataIndex","record"];function _typeof(t){return(_typeof="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 _extends(){return(_extends=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(null,arguments)}function _regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),s=new k(r||[]);return i(a,"_invoke",{value:_(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",f="executing",p="completed",g={};function v(){}function y(){}function m(){}var b={};l(b,a,(function(){return this}));var x=Object.getPrototypeOf,O=x&&x(x(I([])));O&&O!==n&&r.call(O,a)&&(b=O);var j=m.prototype=v.prototype=Object.create(b);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var c=h(t[i],t,o);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==_typeof(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function _(e,n,r){var i=d;return function(o,a){if(i===f)throw Error("Generator is already running");if(i===p){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=M(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=f;var l=h(e,n,r);if("normal"===l.type){if(i=r.done?p:"suspendedYield",l.arg===g)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i=p,r.method="throw",r.arg=l.arg)}}}function M(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,M(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}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 k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function I(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(_typeof(e)+" is not iterable")}return y.prototype=m,i(j,"constructor",{value:m,configurable:!0}),i(m,"constructor",{value:y,configurable:!0}),y.displayName=l(m,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,l(t,c,"GeneratorFunction")),t.prototype=Object.create(j),t},e.awrap=function(t){return{__await:t}},w(C.prototype),l(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(u(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(j),l(j,c,"Generator"),l(j,a,(function(){return this})),l(j,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=I,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(E),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.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,g):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),g},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),g}},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 Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function asyncGeneratorStep(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function _asyncToGenerator(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){asyncGeneratorStep(o,r,i,a,s,"next",t)}function s(t){asyncGeneratorStep(o,r,i,a,s,"throw",t)}a(void 0)}))}}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){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 _iterableToArrayLimit(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _objectWithoutProperties(t,e){if(null==t)return{};var n,r,i=_objectWithoutPropertiesLoose(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],-1===e.indexOf(n)&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function _objectWithoutPropertiesLoose(t,e){if(null==t)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(-1!==e.indexOf(r))continue;n[r]=t[r]}return n}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){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 _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _createForOfIteratorHelper(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=_unsupportedIterableToArray(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=n.call(t)},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 _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var n={}.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)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function ownKeys(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 _objectSpread(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(n),!0).forEach((function(e){_defineProperty(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _defineProperty(t,e,n){return(e=_toPropertyKey(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _toPropertyKey(t){var e=_toPrimitive(t,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(t,e){if("object"!=_typeof(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Text=antd__WEBPACK_IMPORTED_MODULE_1__.a.Text,_insertNewColumnNode=function(t,e,n,r){if(n<e.length){var i=r.findIndex((function(t){return t.dataIndex===e[n]}));-1===i?(r.push({dataIndex:e[n],title:e[n],children:[]}),_insertNewColumnNode(t,e,n+1,r[r.length-1].children)):_insertNewColumnNode(t,e,n+1,r[i].children)}else r.push(_objectSpread({},t))},splitSummaryRowContents=function(t,e,n){var r,i=n>0?[Array.from({length:n},(function(){return{empty:!0}}))]:[[]],o=0,a=_createForOfIteratorHelper(t);try{for(a.s();!(r=a.n()).done;){var s=r.value;o+(s.colSpan||1)>e?(o=s.colSpan||1,n>0?i.push([].concat(_toConsumableArray(Array.from({length:n},(function(){return{empty:!0}}))),[s])):i.push([s])):(o+=s.colSpan||1,i[i.length-1].push(s))}}catch(t){a.e(t)}finally{a.f()}return i},findItemByKey=function(t,e){var n=null,r=function(t){return t.key===e?(n=t,!0):Array.isArray(t.children)&&t.children.some(r)};return t.some(r),n},_replaceItemByKey=function(t,e,n){for(var r=0;r<t.length;r++){var i=t[r];if(i&&i.key===e)return t.splice(r,1,n),!0;if(i&&Array.isArray(i.children)&&_replaceItemByKey(i.children,e,n))return!0}return!1},preventUpdateProps=["recentlyMouseEnterColumnDataIndex","recentlyMouseEnterRowKey","recentlyMouseEnterRow"],AntdTable=function AntdTable(props){var id=props.id,className=props.className,style=props.style,key=props.key,locale=props.locale,containerId=props.containerId,columns=props.columns,showHeader=props.showHeader,rowHoverable=props.rowHoverable,tableLayout=props.tableLayout,miniChartHeight=props.miniChartHeight,miniChartAnimation=props.miniChartAnimation,rowSelectionType=props.rowSelectionType,selectedRowKeys=props.selectedRowKeys,rowSelectionWidth=props.rowSelectionWidth,rowSelectionCheckStrictly=props.rowSelectionCheckStrictly,rowSelectionIgnoreRowKeys=props.rowSelectionIgnoreRowKeys,sticky=props.sticky,titlePopoverInfo=props.titlePopoverInfo,columnsFormatConstraint=props.columnsFormatConstraint,enableHoverListen=props.enableHoverListen,data=props.data,sortOptions=props.sortOptions,showSorterTooltip=props.showSorterTooltip,showSorterTooltipTarget=props.showSorterTooltipTarget,filterOptions=props.filterOptions,defaultFilteredValues=props.defaultFilteredValues,pagination=props.pagination,bordered=props.bordered,maxHeight=props.maxHeight,maxWidth=props.maxWidth,scrollToFirstRowOnChange=props.scrollToFirstRowOnChange,size=props.size,mode=props.mode,nClicksButton=props.nClicksButton,nDoubleClicksCell=props.nDoubleClicksCell,summaryRowContents=props.summaryRowContents,summaryRowBlankColumns=props.summaryRowBlankColumns,summaryRowFixed=props.summaryRowFixed,customFormatFuncs=props.customFormatFuncs,conditionalStyleFuncs=props.conditionalStyleFuncs,expandedRowKeyToContent=props.expandedRowKeyToContent,expandedRowWidth=props.expandedRowWidth,expandRowByClick=props.expandRowByClick,defaultExpandedRowKeys=props.defaultExpandedRowKeys,expandedRowKeys=props.expandedRowKeys,enableCellClickListenColumns=props.enableCellClickListenColumns,nClicksCell=props.nClicksCell,nContextMenuClicksCell=props.nContextMenuClicksCell,emptyContent=props.emptyContent,cellUpdateOptimize=props.cellUpdateOptimize,nClicksDropdownItem=props.nClicksDropdownItem,hiddenRowKeys=props.hiddenRowKeys,virtual=props.virtual,title=props.title,footer=props.footer,loading=props.loading,rowClassName=props.rowClassName,setProps=props.setProps,others=_objectWithoutProperties(props,_excluded),context=Object(react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_contexts_PropsContext__WEBPACK_IMPORTED_MODULE_35__.a);locale=context&&context.locale||locale,Object(react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((function(){var t,e;Object(lodash__WEBPACK_IMPORTED_MODULE_31__.isBoolean)(pagination)&&!pagination||setProps({pagination:_objectSpread(_objectSpread({},pagination),{},{current:null!==(t=pagination)&&void 0!==t&&t.current?null===(e=pagination)||void 0===e?void 0:e.current:1})})}),[]);var _useState=Object(react__WEBPACK_IMPORTED_MODULE_0__.useState)(""),_useState2=_slicedToArray(_useState,2),searchText=_useState2[0],setSearchText=_useState2[1],_useState3=Object(react__WEBPACK_IMPORTED_MODULE_0__.useState)(""),_useState4=_slicedToArray(_useState3,2),searchedColumn=_useState4[0],setSearchedColumn=_useState4[1],onPageChange=function(t,e,n,r){"paginate"===r.action?setProps({pagination:_objectSpread(_objectSpread({},t),{},{pageSize:t.pageSize,current:t.current,position:t.position&&Array.isArray(t.position)?t.position[0]:t.position}),currentData:r.currentDataSource}):"sort"===r.action?Array.isArray(n)?setProps({sorter:{columns:n.map((function(t){return t.column.dataIndex})),orders:n.map((function(t){return t.order}))}}):n.order?setProps({sorter:{columns:[n.column.dataIndex],orders:[n.order]}}):setProps({sorter:{columns:[],orders:[]}}):"filter"===r.action&&setProps({filter:e})},searchInput,getColumnSearchProps=function(t,e){return{filterDropdown:function(n){var r=n.setSelectedKeys,i=n.selectedKeys,o=n.confirm,a=n.clearFilters;return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div",{style:{padding:8}},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_2__.a,{ref:function(t){searchInput=t},placeholder:"".concat(_components_locales_react__WEBPACK_IMPORTED_MODULE_33__.a.AntdTable[locale].filterKeywordPlaceholder," ").concat(e),value:i[0],onChange:function(t){return r(t.target.value?[t.target.value]:[])},onPressEnter:function(){return handleSearch(i,o,t)},style:{marginBottom:8,display:"block"}}),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_3__.a,null,react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_4__.a,{type:"primary",onClick:function(){return handleSearch(i,o,t)},icon:react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_27__.a,null),size:"small",style:{width:90}},_components_locales_react__WEBPACK_IMPORTED_MODULE_33__.a.AntdTable[locale].filterKeywordSearchButtonText),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_4__.a,{onClick:function(){return handleSearchReset(a)},size:"small",style:{width:90}},_components_locales_react__WEBPACK_IMPORTED_MODULE_33__.a.AntdTable[locale].filterKeywordResetButtonText)))},filterIcon:function(t){return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_27__.a,{style:{color:t?"#1890ff":void 0}})},onFilter:function(e,n){if("client-side"===mode){if(n[t]&&!Array.isArray(n[t])){var r,i,o,a,s;if(null!==(r=n[t])&&void 0!==r&&r.content)return n[t].content.toString().toLowerCase().includes(null==e?void 0:e.toLowerCase());if(null!==(i=n[t])&&void 0!==i&&i.text)return n[t].text.toString().toLowerCase().includes(null==e?void 0:e.toLowerCase());if(null!==(o=n[t])&&void 0!==o&&o.label)return n[t].label.toString().toLowerCase().includes(null==e?void 0:e.toLowerCase());if(null!==(a=n[t])&&void 0!==a&&a.tag)return n[t].tag.toString().toLowerCase().includes(null==e?void 0:e.toLowerCase());if(null!==(s=n[t])&&void 0!==s&&s.toString)return n[t].toString().toLowerCase().includes(null==e?void 0:e.toLowerCase())}else if(Array.isArray(n[t])){if(n[t].some((function(t){return null==t?void 0:t.content})))return n[t].some((function(t){return null==t?void 0:t.content.toString().toLowerCase().includes(null==e?void 0:e.toLowerCase())}));if(n[t].some((function(t){return null==t?void 0:t.tag})))return n[t].some((function(t){return null==t?void 0:t.tag.toString().toLowerCase().includes(null==e?void 0:e.toLowerCase())}));if(n[t].some((function(t){return null==t?void 0:t.title})))return n[t].some((function(t){return null==t?void 0:t.title.toString().toLowerCase().includes(null==e?void 0:e.toLowerCase())}))}return!1}return!0},onFilterDropdownVisibleChange:function(t){t&&setTimeout((function(){return searchInput.select()}),100)},render:function(e){return searchedColumn===t?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react_highlight_words__WEBPACK_IMPORTED_MODULE_30___default.a,{highlightStyle:{backgroundColor:"#ffc069",padding:0},searchWords:[searchText],autoEscape:!0,textToHighlight:e?e.toString():""}):e}}},handleSearch=function(t,e,n){e(),setSearchText(t[0]),setSearchedColumn(n)},handleSearchReset=function(t){t(),setSearchText("")},_pagination3,_pagination4;for(var i in data||(data=[]),data)data[i].hasOwnProperty("key")||(data[i].key=i.toString());Object(lodash__WEBPACK_IMPORTED_MODULE_31__.isBoolean)(pagination)&&!pagination||(pagination=_objectSpread(_objectSpread({},pagination),{},{showTotalPrefix:(null===(_pagination3=pagination)||void 0===_pagination3?void 0:_pagination3.showTotalPrefix)||_components_locales_react__WEBPACK_IMPORTED_MODULE_33__.a.AntdTable[locale].showTotalPrefix,showTotalSuffix:(null===(_pagination4=pagination)||void 0===_pagination4?void 0:_pagination4.showTotalSuffix)||_components_locales_react__WEBPACK_IMPORTED_MODULE_33__.a.AntdTable[locale].showTotalSuffix}));for(var _i in columns=columns.filter((function(t){return!t.hidden})),columns)columns[_i]=_objectSpread({align:"center"},columns[_i]);var EditableContext=react__WEBPACK_IMPORTED_MODULE_0___default.a.createContext(null),EditableRow=function(t){t.index;var e=_objectWithoutProperties(t,_excluded2),n=_slicedToArray(antd__WEBPACK_IMPORTED_MODULE_5__.a.useForm(),1)[0];return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_5__.a,{form:n,component:!1},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(EditableContext.Provider,{value:n},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("tr",e)))},EditableCell=function EditableCell(_ref3){var title=_ref3.title,editable=_ref3.editable,children=_ref3.children,dataIndex=_ref3.dataIndex,record=_ref3.record,restProps=_objectWithoutProperties(_ref3,_excluded3),_useState5=Object(react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),_useState6=_slicedToArray(_useState5,2),editing=_useState6[0],setEditing=_useState6[1],inputRef=Object(react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null),form=Object(react__WEBPACK_IMPORTED_MODULE_0__.useContext)(EditableContext);Object(react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((function(){var t;editing&&(null===(t=inputRef.current)||void 0===t||t.focus())}),[editing]);var toggleEdit=function(){setEditing(!editing),form.setFieldsValue(_defineProperty({},dataIndex,record[dataIndex]))},_useState7=Object(react__WEBPACK_IMPORTED_MODULE_0__.useState)(data),_useState8=_slicedToArray(_useState7,2),dataSource=_useState8[0],setDataSource=_useState8[1],handleSave=function handleSave(row,setProps,dataSource,setDataSource){for(var newData=_toConsumableArray(dataSource),item=findItemByKey(newData,row.key),rowColumns=Object.getOwnPropertyNames(row),_i2=0;_i2<rowColumns.length;_i2++){var _columnsFormatConstra;if(row[rowColumns[_i2]]!==item[rowColumns[_i2]]&&columnsFormatConstraint&&columnsFormatConstraint[rowColumns[_i2]]&&columnsFormatConstraint[rowColumns[_i2]].rule)if(!eval("/".concat(columnsFormatConstraint[rowColumns[_i2]].rule,"/")).test(row[rowColumns[_i2]]))return void antd__WEBPACK_IMPORTED_MODULE_6__.a.error("编辑失败,".concat(row[rowColumns[_i2]]," 输入").concat((null===(_columnsFormatConstra=columnsFormatConstraint[rowColumns[_i2]])||void 0===_columnsFormatConstra?void 0:_columnsFormatConstra.content)||"不符合对应字段格式要求!"))}for(var _changedColumn=null,_i3=0;_i3<rowColumns.length;_i3++)row[rowColumns[_i3]]!==item[rowColumns[_i3]]&&(_changedColumn=rowColumns[_i3]);_replaceItemByKey(newData,row.key,_objectSpread(_objectSpread({},item),row)),setDataSource(newData),setProps({currentData:newData,recentlyChangedRow:Object(lodash__WEBPACK_IMPORTED_MODULE_31__.omitBy)(row,(function(t){return null==t?void 0:t.$$typeof})),recentlyChangedColumn:_changedColumn,data:newData})},save=function(){var t=_asyncToGenerator(_regeneratorRuntime().mark((function t(){var e;return _regeneratorRuntime().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,form.validateFields();case 3:e=t.sent,toggleEdit(),handleSave(_objectSpread(_objectSpread({},record),e),setProps,dataSource,setDataSource),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),console.log(t.t0);case 11:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(){return t.apply(this,arguments)}}(),childNode=children;if(editable){var _columns$filter$0$edi,_columns$filter$0$edi2,_columns$filter$0$edi3,_columns$filter$0$edi4,_columns$filter$0$edi5,_columns$filter$0$edi6,_columns$filter$0$edi7,recordDisabled=((null===(_columns$filter$0$edi=columns.filter((function(t){return t.dataIndex===dataIndex}))[0].editOptions)||void 0===_columns$filter$0$edi?void 0:_columns$filter$0$edi.disabledKeys)||[]).includes(record.key);childNode=editing?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_5__.a.Item,{style:{margin:0},name:dataIndex,rules:[{required:!1,message:"".concat(title," 为空!")}]},"text-area"===(null===(_columns$filter$0$edi2=columns.filter((function(t){return t.dataIndex===dataIndex}))[0].editOptions)||void 0===_columns$filter$0$edi2?void 0:_columns$filter$0$edi2.mode)?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_2__.a.TextArea,{autoSize:null===(_columns$filter$0$edi3=columns.filter((function(t){return t.dataIndex===dataIndex}))[0].editOptions)||void 0===_columns$filter$0$edi3?void 0:_columns$filter$0$edi3.autoSize,maxLength:null===(_columns$filter$0$edi4=columns.filter((function(t){return t.dataIndex===dataIndex}))[0].editOptions)||void 0===_columns$filter$0$edi4?void 0:_columns$filter$0$edi4.maxLength,placeholder:null===(_columns$filter$0$edi5=columns.filter((function(t){return t.dataIndex===dataIndex}))[0].editOptions)||void 0===_columns$filter$0$edi5?void 0:_columns$filter$0$edi5.placeholder,ref:inputRef,onBlur:save,onFocus:function(){var t;null===(t=inputRef.current)||void 0===t||t.focus({cursor:"end"})},disabled:recordDisabled}):react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_2__.a,{maxLength:null===(_columns$filter$0$edi6=columns.filter((function(t){return t.dataIndex===dataIndex}))[0].editOptions)||void 0===_columns$filter$0$edi6?void 0:_columns$filter$0$edi6.maxLength,placeholder:null===(_columns$filter$0$edi7=columns.filter((function(t){return t.dataIndex===dataIndex}))[0].editOptions)||void 0===_columns$filter$0$edi7?void 0:_columns$filter$0$edi7.placeholder,ref:inputRef,onPressEnter:save,onBlur:save,disabled:recordDisabled})):react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div",{className:"editable-cell-value-wrap",style:_objectSpread({whiteSpace:"break-spaces"},recordDisabled?{cursor:"no-drop"}:{}),onClick:recordDisabled?void 0:toggleEdit},children[1]||0===children[1]?children:" ")}return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("td",restProps,childNode)},compareNumeric=function(t,e){return t.value<e.value?-1:t.value>e.value?1:0},generateFilterOptions=function(t,e){var n,r=[],i=_createForOfIteratorHelper(t);try{for(i.s();!(n=i.n()).done;){var o,a,s,c,l,u=n.value;if(u[e]&&!Array.isArray(u[e]))null!==(o=u[e])&&void 0!==o&&o.content?r.push(u[e].content):null!==(a=u[e])&&void 0!==a&&a.text?r.push(u[e].text):null!==(s=u[e])&&void 0!==s&&s.label?r.push(u[e].label):null!==(c=u[e])&&void 0!==c&&c.tag?r.push(u[e].tag):null!==(l=u[e])&&void 0!==l&&l.toString&&r.push(u[e]);else Array.isArray(u[e])&&(u[e].some((function(t){return null==t?void 0:t.content}))?r=r.concat(u[e].filter((function(t){return null==t?void 0:t.content})).map((function(t){return t.content}))):u[e].some((function(t){return null==t?void 0:t.tag}))&&(r=r.concat(u[e].filter((function(t){return null==t?void 0:t.tag})).map((function(t){return t.tag})))))}}catch(t){i.e(t)}finally{i.f()}return Array.from(new Set(r)).map((function(t){return{text:t?t.toString():"",value:t}})).sort(compareNumeric)};if("server-side"!==mode)for(var _loop=function(t){if(-1!==Object.keys(filterOptions).indexOf(columns[t].dataIndex))if("keyword"===filterOptions[columns[t].dataIndex].filterMode)columns[t]=_objectSpread(_objectSpread({},columns[t]),getColumnSearchProps(columns[t].dataIndex,columns[t].title));else if("tree"===filterOptions[columns[t].dataIndex].filterMode)filterOptions[columns[t].dataIndex].filterCustomTreeItems&&(columns[t]=_objectSpread(_objectSpread({},columns[t]),{},{defaultFilteredValue:defaultFilteredValues[columns[t].dataIndex],filterMode:"tree",filters:filterOptions[columns[t].dataIndex].filterCustomTreeItems,onFilter:function(e,n){if(n[columns[t].dataIndex]&&!Array.isArray(n[columns[t].dataIndex])){var r,i,o,a,s;if(null!==(r=n[columns[t].dataIndex])&&void 0!==r&&r.content)return n[columns[t].dataIndex].content===e;if(null!==(i=n[columns[t].dataIndex])&&void 0!==i&&i.text)return n[columns[t].dataIndex].text===e;if(null!==(o=n[columns[t].dataIndex])&&void 0!==o&&o.label)return n[columns[t].dataIndex].label===e;if(null!==(a=n[columns[t].dataIndex])&&void 0!==a&&a.tag)return n[columns[t].dataIndex].tag===e;if(null!==(s=n[columns[t].dataIndex])&&void 0!==s&&s.toString)return n[columns[t].dataIndex].toString()===e}else if(Array.isArray(n[columns[t].dataIndex])){if(n[columns[t].dataIndex].some((function(t){return null==t?void 0:t.content})))return n[columns[t].dataIndex].some((function(t){return(null==t?void 0:t.content.toString().toLowerCase())===(null==e?void 0:e.toLowerCase())}));if(n[columns[t].dataIndex].some((function(t){return null==t?void 0:t.tag})))return n[columns[t].dataIndex].some((function(t){return(null==t?void 0:t.tag.toString().toLowerCase())===(null==e?void 0:e.toLowerCase())}));if(n[columns[t].dataIndex].some((function(t){return null==t?void 0:t.title})))return n[columns[t].dataIndex].some((function(t){return(null==t?void 0:t.title.toString().toLowerCase())===(null==e?void 0:e.toLowerCase())}))}return!1},filterSearch:filterOptions[columns[t].dataIndex].filterSearch}));else{var e,n;if(filterOptions[columns[t].dataIndex].filterCustomItems)columns[t]=_objectSpread(_objectSpread({},columns[t]),{},{defaultFilteredValue:defaultFilteredValues[columns[t].dataIndex],filters:filterOptions[columns[t].dataIndex].filterCustomItems.map((function(t){return{text:t?t.toString():"",value:t}})),onFilter:function(e,n){if(n[columns[t].dataIndex]&&!Array.isArray(n[columns[t].dataIndex])){var r,i,o,a,s;if(null!==(r=n[columns[t].dataIndex])&&void 0!==r&&r.content)return n[columns[t].dataIndex].content===e;if(null!==(i=n[columns[t].dataIndex])&&void 0!==i&&i.text)return n[columns[t].dataIndex].text===e;if(null!==(o=n[columns[t].dataIndex])&&void 0!==o&&o.label)return n[columns[t].dataIndex].label===e;if(null!==(a=n[columns[t].dataIndex])&&void 0!==a&&a.tag)return n[columns[t].dataIndex].tag===e;if(null!==(s=n[columns[t].dataIndex])&&void 0!==s&&s.toString)return n[columns[t].dataIndex].toString()===e}else if(Array.isArray(n[columns[t].dataIndex])){if(n[columns[t].dataIndex].some((function(t){return null==t?void 0:t.content})))return n[columns[t].dataIndex].some((function(t){return(null==t?void 0:t.content.toString().toLowerCase())===(null==e?void 0:e.toLowerCase())}));if(n[columns[t].dataIndex].some((function(t){return null==t?void 0:t.tag})))return n[columns[t].dataIndex].some((function(t){return(null==t?void 0:t.tag.toString().toLowerCase())===(null==e?void 0:e.toLowerCase())}));if(n[columns[t].dataIndex].some((function(t){return null==t?void 0:t.title})))return n[columns[t].dataIndex].some((function(t){return(null==t?void 0:t.title.toString().toLowerCase())===(null==e?void 0:e.toLowerCase())}))}return!1},filterMultiple:filterOptions[columns[t].dataIndex].filterMultiple,filterSearch:filterOptions[columns[t].dataIndex].filterSearch});else columns[t]=_objectSpread(_objectSpread({},columns[t]),{},{defaultFilteredValue:defaultFilteredValues[columns[t].dataIndex],filters:generateFilterOptions(data,columns[t].dataIndex),onFilter:function(e,n){if(n[columns[t].dataIndex]&&!Array.isArray(n[columns[t].dataIndex])){var r,i,o,a,s;if(null!==(r=n[columns[t].dataIndex])&&void 0!==r&&r.content)return n[columns[t].dataIndex].content===e;if(null!==(i=n[columns[t].dataIndex])&&void 0!==i&&i.text)return n[columns[t].dataIndex].text===e;if(null!==(o=n[columns[t].dataIndex])&&void 0!==o&&o.label)return n[columns[t].dataIndex].label===e;if(null!==(a=n[columns[t].dataIndex])&&void 0!==a&&a.tag)return n[columns[t].dataIndex].tag===e;if(null!==(s=n[columns[t].dataIndex])&&void 0!==s&&s.toString)return n[columns[t].dataIndex].toString()===e.toString()}else if(Array.isArray(n[columns[t].dataIndex])){if(n[columns[t].dataIndex].some((function(t){return null==t?void 0:t.content})))return n[columns[t].dataIndex].some((function(t){return(null==t?void 0:t.content.toString().toLowerCase())===(null==e?void 0:e.toLowerCase())}));if(n[columns[t].dataIndex].some((function(t){return null==t?void 0:t.tag})))return n[columns[t].dataIndex].some((function(t){return(null==t?void 0:t.tag.toString().toLowerCase())===(null==e?void 0:e.toLowerCase())}));if(n[columns[t].dataIndex].some((function(t){return null==t?void 0:t.title})))return n[columns[t].dataIndex].some((function(t){return(null==t?void 0:t.title.toString().toLowerCase())===(null==e?void 0:e.toLowerCase())}))}return!1},filterMultiple:null===(e=filterOptions[columns[t].dataIndex])||void 0===e?void 0:e.filterMultiple,filterSearch:null===(n=filterOptions[columns[t].dataIndex])||void 0===n?void 0:n.filterSearch})}},_i4=0;_i4<columns.length;_i4++)_loop(_i4);else for(var _i5=0;_i5<columns.length;_i5++)-1!==Object.keys(filterOptions).indexOf(columns[_i5].dataIndex)&&("keyword"===filterOptions[columns[_i5].dataIndex].filterMode?columns[_i5]=_objectSpread(_objectSpread({},columns[_i5]),getColumnSearchProps(columns[_i5].dataIndex,columns[_i5].title)):"tree"===filterOptions[columns[_i5].dataIndex].filterMode?filterOptions[columns[_i5].dataIndex].filterCustomTreeItems?columns[_i5]=_objectSpread(_objectSpread({},columns[_i5]),{},{defaultFilteredValue:defaultFilteredValues[columns[_i5].dataIndex],filterMode:"tree",filters:filterOptions[columns[_i5].dataIndex].filterCustomTreeItems,onFilter:function(t,e){return!0}}):columns[_i5]=_objectSpread(_objectSpread({},columns[_i5]),{},{filters:[],onFilter:function(t,e){return!0}}):filterOptions[columns[_i5].dataIndex].hasOwnProperty("filterCustomItems")?columns[_i5]=_objectSpread(_objectSpread({},columns[_i5]),{},{defaultFilteredValue:defaultFilteredValues[columns[_i5].dataIndex],filters:filterOptions[columns[_i5].dataIndex].filterCustomItems.map((function(t){return{text:t?t.toString():"",value:t}})),onFilter:function(t,e){return!0},filterMultiple:filterOptions[columns[_i5].dataIndex].filterMultiple,filterSearch:filterOptions[columns[_i5].dataIndex].filterSearch}):columns[_i5]=_objectSpread(_objectSpread({},columns[_i5]),{},{filters:[],onFilter:function(t,e){return!0}}));sortOptions=_objectSpread({sortDataIndexes:[],multiple:!1,forceCompareModes:{},customOrders:{}},sortOptions);for(var _i6=0;_i6<sortOptions.sortDataIndexes.length;_i6++)for(var _loop2=function(t){sortOptions.sortDataIndexes[_i6]===columns[t].dataIndex&&(columns[t].sorter={compare:function(e,n){if("server-side"===mode)return 0;var r,i,o,a,s,c,l,u,h,d,f,p,g=null,v=null;if(null!==(r=e[columns[t].dataIndex])&&void 0!==r&&r.content||null!==(i=n[columns[t].dataIndex])&&void 0!==i&&i.content)g=null===(f=e[columns[t].dataIndex])||void 0===f?void 0:f.content,v=null===(p=n[columns[t].dataIndex])||void 0===p?void 0:p.content;else if(null!==(o=e[columns[t].dataIndex])&&void 0!==o&&o.text||null!==(a=n[columns[t].dataIndex])&&void 0!==a&&a.text){var y,m;g=null===(y=e[columns[t].dataIndex])||void 0===y?void 0:y.text,v=null===(m=n[columns[t].dataIndex])||void 0===m?void 0:m.text}else if(null!==(s=e[columns[t].dataIndex])&&void 0!==s&&s.label||null!==(c=n[columns[t].dataIndex])&&void 0!==c&&c.label){var b,x;g=null===(b=e[columns[t].dataIndex])||void 0===b?void 0:b.label,v=null===(x=n[columns[t].dataIndex])||void 0===x?void 0:x.label}else if(null!==(l=e[columns[t].dataIndex])&&void 0!==l&&l.tag||null!==(u=n[columns[t].dataIndex])&&void 0!==u&&u.tag){var O,j;g=null===(O=e[columns[t].dataIndex])||void 0===O?void 0:O.tag,v=null===(j=n[columns[t].dataIndex])||void 0===j?void 0:j.tag}else(null!==(h=e[columns[t].dataIndex])&&void 0!==h&&h.toString||null!==(d=n[columns[t].dataIndex])&&void 0!==d&&d.toString)&&(g=e[columns[t].dataIndex],v=n[columns[t].dataIndex]);if(!sortOptions.forceCompareModes[columns[t].dataIndex]){if(Object(lodash__WEBPACK_IMPORTED_MODULE_31__.isNumber)(g)||Object(lodash__WEBPACK_IMPORTED_MODULE_31__.isNumber)(v))return g-v;var w,C,_=null===(w=g)||void 0===w?void 0:w.toString().toUpperCase(),M=null===(C=v)||void 0===C?void 0:C.toString().toUpperCase();return _<M?-1:_>M?1:0}if("number"===sortOptions.forceCompareModes[columns[t].dataIndex]){var S=Number(g),E=Number(v);return S<E?-1:S>E?1:0}if("custom"===sortOptions.forceCompareModes[columns[t].dataIndex]&&sortOptions.customOrders[columns[t].dataIndex]){var k=sortOptions.customOrders[columns[t].dataIndex].indexOf(g),I=sortOptions.customOrders[columns[t].dataIndex].indexOf(v);return k<I?1:k>I?-1:0}},multiple:sortOptions.multiple?"auto"===sortOptions.multiple?1:sortOptions.sortDataIndexes.length-_i6:void 0})},j=0;j<columns.length;j++)_loop2(j);for(var _loop3=function _loop3(_i7){columns[_i7].renderOptions&&columns[_i7].renderOptions.renderType&&("ellipsis"===columns[_i7].renderOptions.renderType?(columns[_i7].ellipsis={showTitle:!1},columns[_i7].render=function(t){return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(Text,{ellipsis:{tooltip:t}},t)}):"row-merge"===columns[_i7].renderOptions.renderType?columns[_i7].render=function(t,e,n){return{children:t.content,props:{rowSpan:t.rowSpan}}}:"link"===columns[_i7].renderOptions.renderType?columns[_i7].renderOptions.renderLinkText?columns[_i7].render=function(t){return t&&!Object(lodash__WEBPACK_IMPORTED_MODULE_31__.isEmpty)(t)||0===t||""===t?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("a",{href:t.disabled?void 0:t.href,target:t.target?t.target:"_blank",disabled:t.disabled},t.content?t.content:columns[_i7].renderOptions.renderLinkText):null}:columns[_i7].render=function(t){return t&&!Object(lodash__WEBPACK_IMPORTED_MODULE_31__.isEmpty)(t)||0===t||""===t?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("a",{href:t.disabled?void 0:t.href,target:t.target?t.target:"_blank",disabled:t.disabled},t.content?t.content:" "):null}:"copyable"===columns[_i7].renderOptions.renderType?columns[_i7].render=function(t){return t&&!Object(lodash__WEBPACK_IMPORTED_MODULE_31__.isEmpty)(t)||0===t||""===t?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(Text,{copyable:!0},t):null}:"dropdown"===columns[_i7].renderOptions.renderType?columns[_i7].render=function(t,e){var n,r,i,o,a,s,c,l,u,h,d,f,p,g;return t=t||[],react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_7__.a,{overlay:react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_8__.a,{onClick:function(t,n,r,i){setTimeout((function(){setProps({nClicksDropdownItem:nClicksDropdownItem+1,recentlyClickedDropdownItemTitle:t.key,recentlyDropdownItemClickedDataIndex:columns[_i7].dataIndex,recentlyDropdownItemClickedRow:Object(lodash__WEBPACK_IMPORTED_MODULE_31__.omitBy)(e,(function(t){return null==t?void 0:t.$$typeof}))})}),200)}},t.map((function(t){return t?t.isDivider?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_8__.a.Divider,null):react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_8__.a.Item,{icon:t.icon&&("fontawesome"===t.iconRenderer?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("i",{className:t.icon}):react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_general_AntdIcon_react__WEBPACK_IMPORTED_MODULE_26__.a,{icon:t.icon})),disabled:t.disabled,key:t.title},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("a",null,t.title)):null}))),arrow:null===(n=columns[_i7].renderOptions)||void 0===n||null===(r=n.dropdownProps)||void 0===r?void 0:r.arrow,disabled:(null===(i=columns[_i7].renderOptions)||void 0===i||null===(o=i.dropdownProps)||void 0===o?void 0:o.disabled)||0===t.length,overlayClassName:null===(a=columns[_i7].renderOptions)||void 0===a||null===(s=a.dropdownProps)||void 0===s?void 0:s.overlayClassName,overlayStyle:null===(c=columns[_i7].renderOptions)||void 0===c||null===(l=c.dropdownProps)||void 0===l?void 0:l.overlayStyle,placement:null===(u=columns[_i7].renderOptions)||void 0===u||null===(h=u.dropdownProps)||void 0===h?void 0:h.placement,trigger:null!==(d=columns[_i7].renderOptions)&&void 0!==d&&null!==(f=d.dropdownProps)&&void 0!==f&&f.trigger?[columns[_i7].renderOptions.dropdownProps.trigger]:["hover"],getPopupContainer:containerId?function(){return document.getElementById(containerId)?document.getElementById(containerId):document.body}:void 0},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("a",{className:"ant-dropdown-link",onClick:function(t){return t.preventDefault()}},null===(p=columns[_i7].renderOptions)||void 0===p||null===(g=p.dropdownProps)||void 0===g?void 0:g.title," ",react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_28__.a,null)))}:"dropdown-links"===columns[_i7].renderOptions.renderType?columns[_i7].render=function(t){var e,n,r,i,o,a,s,c,l,u,h,d,f,p;return t=t||[],react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_7__.a,{overlay:react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_8__.a,null,t.map((function(t){return t?t.isDivider?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_8__.a.Divider,null):react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_8__.a.Item,{icon:t.icon&&("fontawesome"===t.iconRenderer?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("i",{className:t.icon}):react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_general_AntdIcon_react__WEBPACK_IMPORTED_MODULE_26__.a,{icon:t.icon})),disabled:t.disabled,key:t.title},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("a",{href:t.href,target:"_blank"},t.title)):null}))),arrow:null===(e=columns[_i7].renderOptions)||void 0===e||null===(n=e.dropdownProps)||void 0===n?void 0:n.arrow,disabled:(null===(r=columns[_i7].renderOptions)||void 0===r||null===(i=r.dropdownProps)||void 0===i?void 0:i.disabled)||0===t.length,overlayClassName:null===(o=columns[_i7].renderOptions)||void 0===o||null===(a=o.dropdownProps)||void 0===a?void 0:a.overlayClassName,overlayStyle:null===(s=columns[_i7].renderOptions)||void 0===s||null===(c=s.dropdownProps)||void 0===c?void 0:c.overlayStyle,placement:null===(l=columns[_i7].renderOptions)||void 0===l||null===(u=l.dropdownProps)||void 0===u?void 0:u.placement,trigger:null!==(h=columns[_i7].renderOptions)&&void 0!==h&&null!==(d=h.dropdownProps)&&void 0!==d&&d.trigger?[columns[_i7].renderOptions.dropdownProps.trigger]:["hover"],getPopupContainer:containerId?function(){return document.getElementById(containerId)?document.getElementById(containerId):document.body}:void 0},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("a",{className:"ant-dropdown-link",onClick:function(t){return t.preventDefault()}},null===(f=columns[_i7].renderOptions)||void 0===f||null===(p=f.dropdownProps)||void 0===p?void 0:p.title," ",react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_28__.a,null)))}:"ellipsis-copyable"===columns[_i7].renderOptions.renderType?(columns[_i7].ellipsis={showTitle:!1},columns[_i7].render=function(t){return t&&!Object(lodash__WEBPACK_IMPORTED_MODULE_31__.isEmpty)(t)||0===t||""===t?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(Text,{copyable:!0,ellipsis:{tooltip:t}},t):null}):"corner-mark"===columns[_i7].renderOptions.renderType?columns[_i7].render=function(t){return t&&!Object(lodash__WEBPACK_IMPORTED_MODULE_31__.isEmpty)(t)||0===t||""===t?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div",{className:t.placement?"ant-corner-mark-"+t.placement:"ant-corner-mark-top-right",style:{"--ant-corner-mark-color":t.hide?"transparent":t.color?t.color:"#1890ff","--ant-corner-mark-transform":"translate(".concat(t.offsetX?t.offsetX:0,"px, ").concat(t.offsetY?t.offsetY:0,"px)")}},t.content):null}:"status-badge"===columns[_i7].renderOptions.renderType?columns[_i7].render=function(t){return t&&!Object(lodash__WEBPACK_IMPORTED_MODULE_31__.isEmpty)(t)||0===t||""===t?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_9__.a,{status:t.status,text:t.text}):null}:"image"===columns[_i7].renderOptions.renderType?columns[_i7].render=function(t){return t&&!Object(lodash__WEBPACK_IMPORTED_MODULE_31__.isEmpty)(t)||0===t||""===t?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_10__.a,{src:t.src,height:t.height,preview:t.preview}):null}:"image-avatar"===columns[_i7].renderOptions.renderType?columns[_i7].render=function(t){return t&&!Object(lodash__WEBPACK_IMPORTED_MODULE_31__.isEmpty)(t)||0===t||""===t?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_11__.a,{src:null==t?void 0:t.src,size:null==t?void 0:t.size,shape:null==t?void 0:t.shape}):null}:"checkbox"===columns[_i7].renderOptions.renderType?columns[_i7].render=function(t,e){var n=columns[_i7].dataIndex;return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_12__.a,{checked:t.checked,disabled:t.disabled,onChange:function(r){try{data.forEach((function(t,i){if(t.key===e.key)throw data[i][n]=_objectSpread(_objectSpread({},e[n]),{},{checked:r.target.checked}),new Error("目标已修改")}))}catch(r){}setTimeout((function(){setProps({data:data,recentlyCheckedRow:Object(lodash__WEBPACK_IMPORTED_MODULE_31__.omitBy)(e,(function(t){return null==t?void 0:t.$$typeof})),recentlyCheckedLabel:t.label,recentlyCheckedDataIndex:columns[_i7].dataIndex,recentlyCheckedStatus:r.target.checked})}),200)}},t.label)}:"switch"===columns[_i7].renderOptions.renderType?columns[_i7].render=function(t,e){var n=columns[_i7].dataIndex;return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_13__.a,{checked:t.checked,disabled:t.disabled,checkedChildren:t.checkedChildren,unCheckedChildren:t.unCheckedChildren,onChange:function(t){try{data.forEach((function(r,i){if(r.key===e.key)throw data[i][n]=_objectSpread(_objectSpread({},e[n]),{},{checked:t}),new Error("目标已修改")}))}catch(t){}setTimeout((function(){setProps({data:data,recentlySwitchRow:Object(lodash__WEBPACK_IMPORTED_MODULE_31__.omitBy)(e,(function(t){return null==t?void 0:t.$$typeof})),recentlySwitchDataIndex:columns[_i7].dataIndex,recentlySwitchStatus:t})}),200)}})}:"select"===columns[_i7].renderOptions.renderType?columns[_i7].render=function(t,e){var n=columns[_i7].dataIndex;return t=t||{},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_14__.a,{className:t.className,style:_objectSpread({width:"100%",textAlign:"left"},t.style),showSearch:!0,options:t.options,listHeight:t.listHeight,mode:t.mode,disabled:t.disabled,size:t.size,bordered:t.bordered,placeholder:t.placeholder,placement:t.placement,defaultValue:t.value,maxTagCount:t.maxTagCount,optionFilterProp:t.optionFilterProp,allowClear:t.allowClear,onChange:function(t){try{data.forEach((function(r,i){if(r.key===e.key)throw data[i][n]=_objectSpread(_objectSpread({},e[n]),{},{value:t}),new Error("目标已修改")}))}catch(t){}setTimeout((function(){setProps({data:data,recentlySelectRow:Object(lodash__WEBPACK_IMPORTED_MODULE_31__.omitBy)(e,(function(t){return null==t?void 0:t.$$typeof})),recentlySelectDataIndex:columns[_i7].dataIndex,recentlySelectValue:t})}),200)}})}:"button"===columns[_i7].renderOptions.renderType?columns[_i7].render=function(t,e){return t=Array.isArray(t)?t:[t],react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_3__.a,{split:columns[_i7].renderOptions.renderButtonSplit&&react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_15__.a,{type:"vertical"}),wrap:!0},t.map((function(t,n){if(columns[_i7].renderOptions.renderButtonPopConfirmProps||t.popConfirmProps){var r=columns[_i7].renderOptions.renderButtonPopConfirmProps||t.popConfirmProps;return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_16__.a,{key:n,title:r.title,okText:r.okText,cancelText:r.cancelText,disabled:t.disabled,getPopupContainer:containerId?function(){return document.getElementById(containerId)?document.getElementById(containerId):document.body}:void 0,onConfirm:function(n){n.stopPropagation(),setProps({recentlyButtonClickedRow:Object(lodash__WEBPACK_IMPORTED_MODULE_31__.omitBy)(e,(function(t){return null==t?void 0:t.$$typeof})),nClicksButton:nClicksButton+1,clickedContent:t.content,clickedCustom:t.custom,recentlyButtonClickedDataIndex:columns[_i7].dataIndex})},onCancel:function(t){t.stopPropagation()}},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_4__.a,{size:"small",type:t.type,color:t.color,variant:t.variant,danger:t.danger,disabled:t.disabled,style:t.style,icon:t.icon&&("fontawesome"===t.iconRenderer?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("i",{className:t.icon}):react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_general_AntdIcon_react__WEBPACK_IMPORTED_MODULE_26__.a,{icon:t.icon})),onClick:function(t){t.stopPropagation()}},t.content))}return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_4__.a,{key:n,onClick:function(n){n.stopPropagation(),setProps({recentlyButtonClickedRow:Object(lodash__WEBPACK_IMPORTED_MODULE_31__.omitBy)(e,(function(t){return null==t?void 0:t.$$typeof})),nClicksButton:nClicksButton+1,clickedContent:t.content,clickedCustom:t.custom,recentlyButtonClickedDataIndex:columns[_i7].dataIndex})},size:"small",type:t.type,color:t.color,variant:t.variant,danger:t.danger,disabled:t.disabled,href:t.href,target:t.target,style:t.style,icon:t.icon&&("fontawesome"===t.iconRenderer?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("i",{className:t.icon}):react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_general_AntdIcon_react__WEBPACK_IMPORTED_MODULE_26__.a,{icon:t.icon}))},t.content)})))}:"tags"===columns[_i7].renderOptions.renderType?columns[_i7].render=function(t){return t&&!Object(lodash__WEBPACK_IMPORTED_MODULE_31__.isEmpty)(t)||0===t||""===t?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment,null,(Array.isArray(t)?t:[t]).map((function(t){return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_17__.a,{color:t.color},t.tag)}))):null}:"custom-format"===columns[_i7].renderOptions.renderType?customFormatFuncs[columns[_i7].dataIndex]&&(columns[_i7].render=eval(customFormatFuncs[columns[_i7].dataIndex])):"mini-line"===columns[_i7].renderOptions.renderType?columns[_i7].render=function(data){var _columns$_i7$renderOp29,_columns$_i7$renderOp30,config={autoFit:!0,padding:0,data:data,animation:miniChartAnimation,smooth:!0};return null!==(_columns$_i7$renderOp29=columns[_i7].renderOptions)&&void 0!==_columns$_i7$renderOp29&&_columns$_i7$renderOp29.tooltipCustomContent&&(config=_objectSpread(_objectSpread({},config),{},{tooltip:{customContent:eval(columns[_i7].renderOptions.tooltipCustomContent)}})),null!==(_columns$_i7$renderOp30=columns[_i7].renderOptions)&&void 0!==_columns$_i7$renderOp30&&_columns$_i7$renderOp30.miniChartColor&&(config=_objectSpread(_objectSpread({},config),{},{color:columns[_i7].renderOptions.miniChartColor})),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div",{style:{height:miniChartHeight}},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ant_design_plots__WEBPACK_IMPORTED_MODULE_21__.a,config))}:"mini-bar"===columns[_i7].renderOptions.renderType?columns[_i7].render=function(data){var _columns$_i7$renderOp31,_columns$_i7$renderOp32,config={padding:0,autoFit:!0,data:data,animation:miniChartAnimation};return null!==(_columns$_i7$renderOp31=columns[_i7].renderOptions)&&void 0!==_columns$_i7$renderOp31&&_columns$_i7$renderOp31.tooltipCustomContent&&(config=_objectSpread(_objectSpread({},config),{},{tooltip:{customContent:eval(columns[_i7].renderOptions.tooltipCustomContent)}})),null!==(_columns$_i7$renderOp32=columns[_i7].renderOptions)&&void 0!==_columns$_i7$renderOp32&&_columns$_i7$renderOp32.miniChartColor&&(config=_objectSpread(_objectSpread({},config),{},{color:columns[_i7].renderOptions.miniChartColor})),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div",{style:{height:miniChartHeight}},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ant_design_plots__WEBPACK_IMPORTED_MODULE_22__.a,config))}:"mini-progress"===columns[_i7].renderOptions.renderType?columns[_i7].render=function(t){var e={autoFit:!0,padding:0,percent:t,animation:miniChartAnimation,color:[1===t?columns[_i7].renderOptions.progressOneHundredPercentColor||"#52c41a":"#5B8FF9","#E8EDF3"]};return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div",{style:{height:miniChartHeight}},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ant_design_plots__WEBPACK_IMPORTED_MODULE_23__.a,e))}:"mini-ring-progress"===columns[_i7].renderOptions.renderType?columns[_i7].render=function(t){var e={autoFit:!0,padding:0,percent:t,animation:miniChartAnimation,color:[1===t?columns[_i7].renderOptions.progressOneHundredPercentColor||"#52c41a":"#5B8FF9","#E8EDF3"],statistic:{content:{style:{fontSize:columns[_i7].renderOptions.ringProgressFontSize}}}};return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div",{style:{height:miniChartHeight}},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ant_design_plots__WEBPACK_IMPORTED_MODULE_24__.a,e))}:"mini-area"===columns[_i7].renderOptions.renderType&&(columns[_i7].render=function(data){var _columns$_i7$renderOp33,_columns$_i7$renderOp34,config={autoFit:!0,padding:0,data:data,animation:miniChartAnimation,smooth:!0};return null!==(_columns$_i7$renderOp33=columns[_i7].renderOptions)&&void 0!==_columns$_i7$renderOp33&&_columns$_i7$renderOp33.tooltipCustomContent&&(config=_objectSpread(_objectSpread({},config),{},{tooltip:{customContent:eval(columns[_i7].renderOptions.tooltipCustomContent)}})),null!==(_columns$_i7$renderOp34=columns[_i7].renderOptions)&&void 0!==_columns$_i7$renderOp34&&_columns$_i7$renderOp34.miniChartColor&&(config=_objectSpread(_objectSpread({},config),{},{areaStyle:{fill:columns[_i7].renderOptions.miniChartColor,fillOpacity:.4},line:{color:columns[_i7].renderOptions.miniChartColor}})),react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div",{style:{height:miniChartHeight}},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ant_design_plots__WEBPACK_IMPORTED_MODULE_25__.a,config))}))},_i7=0,rowSelection,rowExpandedRowRender;_i7<columns.length;_i7++)_loop3(_i7);if(titlePopoverInfo)for(var _loop4=function(t){Object.keys(titlePopoverInfo).includes(columns[t].dataIndex)&&(columns[t].title_||(columns[t].title_=columns[t].title),columns[t].title=function(){return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"}},columns[t].title_,react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_18__.a,{title:titlePopoverInfo[columns[t].dataIndex].title,content:react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div",{style:{maxWidth:"250px",wordWrap:"break-word",whiteSpace:"normal",wordBreak:"break-all"}},titlePopoverInfo[columns[t].dataIndex].content),overlayStyle:titlePopoverInfo[columns[t].dataIndex].overlayStyle,placement:titlePopoverInfo[columns[t].dataIndex].placement||"bottom",getPopupContainer:containerId?function(){return document.getElementById(containerId)?document.getElementById(containerId):document.body}:void 0},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_ant_design_icons__WEBPACK_IMPORTED_MODULE_29__.a,{style:{color:"#8c8c8c",paddingLeft:"4px",cursor:"pointer"}})))})},_i8=0;_i8<columns.length;_i8++)_loop4(_i8);columns=columns.map((function(t,e){return _objectSpread(_objectSpread({},t),{onHeaderCell:function(t){return _objectSpread(_objectSpread({islast:e-(columns.length-1)},enableHoverListen?{onMouseEnter:function(e){setProps({recentlyMouseEnterColumnDataIndex:t.dataIndex})}}:{}),t.headerAlign?{style:{textAlign:t.headerAlign}}:{})}})})),rowSelectionType&&(rowSelection={columnWidth:rowSelectionWidth,checkStrictly:rowSelectionCheckStrictly,fixed:!0,type:rowSelectionType,selectedRowKeys:selectedRowKeys,selections:[antd__WEBPACK_IMPORTED_MODULE_19__.a.SELECTION_ALL,antd__WEBPACK_IMPORTED_MODULE_19__.a.SELECTION_INVERT,antd__WEBPACK_IMPORTED_MODULE_19__.a.SELECTION_NONE],onChange:function(t,e){setProps({selectedRowKeys:rowSelectionIgnoreRowKeys?t.filter((function(t){return!rowSelectionIgnoreRowKeys.includes(t)})):t,selectedRows:rowSelectionIgnoreRowKeys?e.map((function(t){return Object(lodash__WEBPACK_IMPORTED_MODULE_31__.omitBy)(t,(function(t){return null==t?void 0:t.$$typeof}))})).filter((function(t){return!rowSelectionIgnoreRowKeys.includes(t.key)})):e.map((function(t){return Object(lodash__WEBPACK_IMPORTED_MODULE_31__.omitBy)(t,(function(t){return null==t?void 0:t.$$typeof}))}))})},renderCell:function(t,e,n,r){return rowSelectionIgnoreRowKeys&&rowSelectionIgnoreRowKeys.includes(e.key)?null:r}}),expandedRowKeyToContent&&Array.isArray(expandedRowKeyToContent)&&(rowExpandedRowRender=new Map(expandedRowKeyToContent.map((function(t){return[t.key,t.content]}))));var atLeastOneColumnEditable=columns.some((function(t){return t.editable}));cellUpdateOptimize&&(columns=columns.map((function(t){return _objectSpread(_objectSpread({},t),{},{shouldCellUpdate:function(t,e){return!Object(lodash__WEBPACK_IMPORTED_MODULE_31__.isEqual)(t,e)}})})));var components={};atLeastOneColumnEditable&&(components.body={row:EditableRow,cell:EditableCell}),columns=_toConsumableArray(columns).map((function(item){return _objectSpread(_objectSpread({},item),{onCell:function onCell(record,index){var returnValue={};if(conditionalStyleFuncs&&conditionalStyleFuncs[item.dataIndex])try{returnValue=_objectSpread(_objectSpread({},returnValue),eval(conditionalStyleFuncs[item.dataIndex])(record,index))}catch(t){console.error(t)}if(enableCellClickListenColumns&&enableCellClickListenColumns.includes(item.dataIndex))try{returnValue=_objectSpread(_objectSpread({},returnValue),{},{onClick:function(t){setProps({recentlyCellClickColumn:item.dataIndex,recentlyCellClickRecord:Object(lodash__WEBPACK_IMPORTED_MODULE_31__.omitBy)(record,(function(t){return null==t?void 0:t.$$typeof})),nClicksCell:nClicksCell+1,cellClickEvent:{pageX:t.pageX,pageY:t.pageY,clientX:t.clientX,clientY:t.clientY,screenX:t.screenX,screenY:t.screenY,timestamp:Date.now()}})},onDoubleClick:function(t){setProps({recentlyCellDoubleClickColumn:item.dataIndex,recentlyCellDoubleClickRecord:Object(lodash__WEBPACK_IMPORTED_MODULE_31__.omitBy)(record,(function(t){return null==t?void 0:t.$$typeof})),nDoubleClicksCell:nDoubleClicksCell+1,cellDoubleClickEvent:{pageX:t.pageX,pageY:t.pageY,clientX:t.clientX,clientY:t.clientY,screenX:t.screenX,screenY:t.screenY,timestamp:Date.now()}})},onContextMenu:function(t){t.preventDefault(),setProps({recentlyContextMenuClickColumn:item.dataIndex,recentlyContextMenuClickRecord:Object(lodash__WEBPACK_IMPORTED_MODULE_31__.omitBy)(record,(function(t){return null==t?void 0:t.$$typeof})),nContextMenuClicksCell:nContextMenuClicksCell+1,cellContextMenuClickEvent:{pageX:t.pageX,pageY:t.pageY,clientX:t.clientX,clientY:t.clientY,screenX:t.screenX,screenY:t.screenY,timestamp:Date.now()}})}})}catch(t){console.error(t)}if(item.editable)try{returnValue=_objectSpread(_objectSpread({},returnValue),{},{record:record,editable:item.editable,dataIndex:item.dataIndex,title:item.title})}catch(t){console.error(t)}return returnValue}})}));var tempColumns=[];if(columns.some((function(t){return t.group}))){var _iterator3=_createForOfIteratorHelper(columns),_step3;try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var column=_step3.value;column.group?Object(lodash__WEBPACK_IMPORTED_MODULE_31__.isString)(column.group)?_insertNewColumnNode(column,[column.group],0,tempColumns):_insertNewColumnNode(column,column.group,0,tempColumns):tempColumns.push(column)}}catch(t){_iterator3.e(t)}finally{_iterator3.f()}}else tempColumns=_toConsumableArray(columns);return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_20__.a,{locale:_components_locales_react__WEBPACK_IMPORTED_MODULE_33__.b.get(locale),renderEmpty:emptyContent?function(){return emptyContent}:void 0},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_19__.a,_extends({},Object(ramda__WEBPACK_IMPORTED_MODULE_32__.a)((function(t,e){return e.startsWith("data-")||e.startsWith("aria-")}),others),{id:id,className:className,style:style,key:key,components:components,rowClassName:rowClassName?function(record,index){var _rowClassName=atLeastOneColumnEditable?"editable-row":"";return rowClassName.func?_rowClassName+=" ".concat(eval(rowClassName.func)(record,index)):_rowClassName+=" ".concat(rowClassName),_rowClassName.trimStart()}:atLeastOneColumnEditable?function(){return"editable-row"}:void 0,dataSource:data.filter((function(t){return!hiddenRowKeys.includes(t.key)})),columns:tempColumns,showHeader:showHeader,rowHoverable:rowHoverable,tableLayout:tableLayout,size:size,rowSelection:rowSelection,sticky:sticky,pagination:pagination&&_objectSpread(_objectSpread(_objectSpread({},pagination),{showTotal:function(t){return"".concat(pagination.showTotalPrefix," ").concat(t," ").concat(pagination.showTotalSuffix)}}),{},{position:pagination.position&&!Array.isArray(pagination.position)?[pagination.position]:pagination.position}),bordered:bordered,scroll:{x:maxWidth,y:maxHeight,scrollToFirstRowOnChange:scrollToFirstRowOnChange},onChange:onPageChange,onRow:enableHoverListen?function(t,e){return{onMouseEnter:function(e){setProps({recentlyMouseEnterRowKey:t.key,recentlyMouseEnterRow:Object(lodash__WEBPACK_IMPORTED_MODULE_31__.omitBy)(t,(function(t){return null==t?void 0:t.$$typeof}))})}}}:void 0,summary:summaryRowContents?function(){return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_19__.a.Summary,{fixed:summaryRowFixed},splitSummaryRowContents(summaryRowContents,columns.length,summaryRowBlankColumns).map((function(t,e){return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_19__.a.Summary.Row,{key:e},t.map((function(t,e){return t.empty?react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_19__.a.Summary.Cell,{index:e}):react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(antd__WEBPACK_IMPORTED_MODULE_19__.a.Summary.Cell,{index:e,colSpan:t.colSpan,align:t.align},t.content)})))})))}:void 0,expandable:rowExpandedRowRender?{defaultExpandedRowKeys:defaultExpandedRowKeys,expandedRowKeys:expandedRowKeys||defaultExpandedRowKeys,expandedRowRender:function(t){return rowExpandedRowRender.get(t.key)},rowExpandable:function(t){return rowExpandedRowRender.has(t.key)},columnWidth:expandedRowWidth,expandRowByClick:expandRowByClick,onExpandedRowsChange:function(t){return setProps({expandedRowKeys:t})}}:{defaultExpandedRowKeys:defaultExpandedRowKeys,expandedRowKeys:expandedRowKeys||defaultExpandedRowKeys,columnWidth:expandedRowWidth,expandRowByClick:expandRowByClick,onExpandedRowsChange:function(t){return setProps({expandedRowKeys:t})}},virtual:virtual,title:title&&function(){return title},footer:footer&&function(){return footer},"data-dash-is-loading":Object(_components_utils__WEBPACK_IMPORTED_MODULE_34__.e)(),loading:loading,getPopupContainer:containerId?function(){return document.getElementById(containerId)?document.getElementById(containerId):document.body}:void 0,showSorterTooltip:showSorterTooltip&&showSorterTooltipTarget?{target:showSorterTooltipTarget}:showSorterTooltip})))};__webpack_exports__.default=react__WEBPACK_IMPORTED_MODULE_0___default.a.memo(AntdTable,(function(t,e){var n=Object.keys(e).filter((function(n){return!Object(lodash__WEBPACK_IMPORTED_MODULE_31__.isEqual)(t[n],e[n])}));return!!n.includes("recentlySelectValue")||(e.selectedRowsSyncWithData&&e.selectedRowKeys&&n.includes("data")&&e.setProps({selectedRows:e.data.filter((function(t){return e.selectedRowKeys.includes(t.key)})).map((function(t){return Object(lodash__WEBPACK_IMPORTED_MODULE_31__.omitBy)(t,(function(t){return null==t?void 0:t.$$typeof}))}))}),n.every((function(t){return preventUpdateProps.includes(t)})))})),AntdTable.defaultProps=_components_dataDisplay_AntdTable_react__WEBPACK_IMPORTED_MODULE_36__.b,AntdTable.propTypes=_components_dataDisplay_AntdTable_react__WEBPACK_IMPORTED_MODULE_36__.c},545:function(t,e,n){"use strict";var r=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)},i=function(t,e){return!!r(t)&&t.indexOf(e)>-1},o=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},a=function(t,e){return void 0===e&&(e=[]),o(t,(function(t){return!i(e,t)}))},s={}.toString,c=function(t,e){return s.call(t)==="[object "+e+"]"},l=function(t){return c(t,"Function")},u=function(t){return null==t},h=function(t){return Array.isArray?Array.isArray(t):c(t,"Array")},d=function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e};var f=function(t,e){if(t)if(h(t))for(var n=0,r=t.length;n<r&&!1!==e(t[n],n);n++);else if(d(t))for(var i in t)if(t.hasOwnProperty(i)&&!1===e(t[i],i))break},p=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return f(t,(function(n,r){l(t)&&"prototype"===r||e.push(r)})),e};var g=function(t,e){var n=p(e),r=n.length;if(u(t))return!r;for(var i=0;i<r;i+=1){var o=n[i];if(e[o]!==t[o]||!(o in t))return!1}return!0},v=function(t){return"object"==typeof t&&null!==t},y=function(t){if(!v(t)||!c(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 m=function(t,e){if(!h(t))return null;var n;if(l(e)&&(n=e),y(e)&&(n=function(t){return g(t,e)}),n)for(var r=0;r<t.length;r+=1)if(n(t[r]))return t[r];return null};var b=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},x=function(t,e){for(var n=null,r=0;r<t.length;r++){var i=t[r][e];if(!u(i)){n=h(i)?i[0]:i;break}}return n},O=function(t){if(!h(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e},j=function(t){if(h(t))return t.reduce((function(t,e){return Math.max(t,e)}),t[0])},w=function(t){if(h(t))return t.reduce((function(t,e){return Math.min(t,e)}),t[0])},C=function(t){var e=t.filter((function(t){return!isNaN(t)}));if(!e.length)return{min:0,max:0};if(h(t[0])){for(var n=[],r=0;r<t.length;r++)n=n.concat(t[r]);e=n}var i=j(e);return{min:w(e),max:i}},_=Array.prototype,M=(_.splice,_.indexOf,Array.prototype.splice),S=function(t,e){if(!r(t))return[];for(var n=t?e.length:0,i=n-1;n--;){var o=void 0,a=e[n];n!==i&&a===o||(o=a,M.call(t,a,1))}return t},E=function(t,e,n){if(!h(t)&&!y(t))return t;var r=n;return f(t,(function(t,n){r=e(r,t,n)})),r},k=function(t,e){var n=[];if(!r(t))return n;for(var i=-1,o=[],a=t.length;++i<a;){var s=t[i];e(s,i,t)&&(n.push(s),o.push(i))}return S(t,o),n},I=function(t){return c(t,"String")};var A=function(t,e){var n;if(l(e))n=function(t,n){return e(t)-e(n)};else{var r=[];I(e)?r.push(e):h(e)&&(r=e),n=function(t,e){for(var n=0;n<r.length;n+=1){var i=r[n];if(t[i]>e[i])return 1;if(t[i]<e[i])return-1}return 0}}return t.sort(n),t};function P(t,e){void 0===e&&(e=new Map);var n=[];if(Array.isArray(t))for(var r=0,i=t.length;r<i;r++){var o=t[r];e.has(o)||(n.push(o),e.set(o,!0))}return n}var T=function(t,e){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i][e];if(!u(o)){h(o)||(o=[o]);for(var a=0;a<o.length;a++){var s=o[a];r[s]||(n.push(s),r[s]=!0)}}}return n};function B(t){if(r(t))return t[0]}function L(t){if(r(t)){return t[t.length-1]}}var D=function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0},F=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n))return!0;return!1},R=Object.prototype.hasOwnProperty;var N=function(t,e){if(!e||!h(t))return{};for(var n,r={},i=l(e)?e:function(t){return t[e]},o=0;o<t.length;o++){var a=t[o];n=i(a),R.call(r,n)?r[n].push(a):r[n]=[a]}return r};function z(t,e){if(!e)return{0:t};if(!l(e)){var n=h(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 N(t,e)}var W=function(t,e){if(!e)return[t];var n=z(t,e),r=[];for(var i in n)r.push(n[i]);return r};var $=function(t,e,n){return t<e?e:t>n?n:t},H=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))},Y=function(t){return c(t,"Number")};Number.isInteger&&Number.isInteger;function V(t,e,n){return void 0===n&&(n=1e-5),Math.abs(t-e)<n}var G=function(t,e){if(h(t)){for(var n,r=-1/0,i=0;i<t.length;i++){var o=t[i],a=l(e)?e(o):o[e];a>r&&(n=o,r=a)}return n}},K=function(t,e){if(h(t)){for(var n,r=1/0,i=0;i<t.length;i++){var o=t[i],a=l(e)?e(o):o[e];a<r&&(n=o,r=a)}return n}},X=function(t,e){return(t%e+e)%e},U=(Math.PI,parseInt,Math.PI/180),q=function(t){return U*t},Z=f,Q=function(t,e){return t.hasOwnProperty(e)},J=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return f(t,(function(n,r){l(t)&&"prototype"===r||e.push(n)})),e},tt=function(t){return u(t)?"":t.toString()},et=function(t){return tt(t).toLowerCase()};var nt=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},rt=function(t){var e=tt(t);return e.charAt(0).toUpperCase()+e.substring(1)},it={}.toString,ot=function(t){return it.call(t).replace(/^\[object /,"").replace(/]$/,"")},at=function(t){return c(t,"Boolean")},st=function(t){return c(t,"Date")},ct=function(t){return null===t},lt=Object.prototype,ut=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||lt)},ht=function(t){return void 0===t},dt=function(t){return t instanceof Element||t instanceof HTMLDocument};function ft(t){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)})(t)}function pt(t){(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout)(t)}function gt(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function vt(t,e,n,r){return e&>(t,e),n&>(t,n),r&>(t,r),t}var yt=function(t){if("object"!=typeof t||null===t)return t;var e;if(h(t)){e=[];for(var n=0,r=t.length;n<r;n++)"object"==typeof t[n]&&null!=t[n]?e[n]=yt(t[n]):e[n]=t[n]}else for(var i in e={},t)"object"==typeof t[i]&&null!=t[i]?e[i]=yt(t[i]):e[i]=t[i];return e},mt=yt;var bt=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)}},xt=function(t,e){if(!l(t))throw new TypeError("Expected a function");var n=function(){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 Ot(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&&y(o)?(y(t[i])||(t[i]={}),n<r?Ot(t[i],o,n+1,r):t[i]=e[i]):h(o)?(t[i]=[],t[i]=t[i].concat(o)):void 0!==o&&(t[i]=o)}}var jt=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)Ot(t,e[r]);return t},wt=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},Ct=Object.prototype.hasOwnProperty;var _t=function(t){if(u(t))return!0;if(r(t))return!t.length;var e=ot(t);if("Map"===e||"Set"===e)return!t.size;if(ut(t))return!Object.keys(t).length;for(var n in t)if(Ct.call(t,n))return!1;return!0},Mt=function(t,e){if(t===e)return!0;if(!t||!e)return!1;if(I(t)||I(e))return!1;if(r(t)||r(e)){if(t.length!==e.length)return!1;for(var n=!0,i=0;i<t.length&&(n=Mt(t[i],e[i]));i++);return n}if(v(t)||v(e)){var o=Object.keys(t),a=Object.keys(e);if(o.length!==a.length)return!1;for(n=!0,i=0;i<o.length&&(n=Mt(t[o[i]],e[o[i]]));i++);return n}return!1},St=Mt,Et=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},kt=function(t){return t},It=function(t,e){void 0===e&&(e=kt);var n={};return d(t)&&!u(t)&&Object.keys(t).forEach((function(r){n[r]=e(t[r],r)})),n},At=function(t,e,n){for(var r=0,i=I(e)?e.split("."):e;t&&r<i.length;)t=t[i[r++]];return void 0===t||r<i.length?n:t},Pt=function(t,e,n){var r=t,i=I(e)?e.split("."):e;return i.forEach((function(t,e){e<i.length-1?(d(r[t])||(r[t]=Y(i[e+1])?[]:{}),r=r[t]):r[t]=n})),t},Tt=Object.prototype.hasOwnProperty,Bt=function(t,e){if(null===t||!y(t))return{};var n={};return f(e,(function(e){Tt.call(t,e)&&(n[e]=t[e])})),n},Lt=function(t,e){return E(t,(function(t,n,r){return e.includes(r)||(t[r]=n),t}),{})},Dt=function(t,e,n){var r,i,o,a,s=0;n||(n={});var c=function(){s=!1===n.leading?0:Date.now(),r=null,a=t.apply(i,o),r||(i=o=null)},l=function(){var l=Date.now();s||!1!==n.leading||(s=l);var u=e-(l-s);return i=this,o=arguments,u<=0||u>e?(r&&(clearTimeout(r),r=null),s=l,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(c,u)),a};return l.cancel=function(){clearTimeout(r),s=0,r=i=o=null},l},Ft=function(t){return r(t)?Array.prototype.slice.call(t):[]},Rt={},Nt=function(t){return Rt[t=t||"g"]?Rt[t]+=1:Rt[t]=1,t+Rt[t]},zt=function(){};function Wt(t){return u(t)?0:r(t)?t.length:Object.keys(t).length}var $t,Ht=n(25),Yt=xt((function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,i=e.fontWeight,o=e.fontStyle,a=e.fontVariant;return $t||($t=document.createElement("canvas").getContext("2d")),$t.font=[o,a,i,n+"px",r].join(" "),$t.measureText(I(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),Object(Ht.h)([t],J(e)).join("")})),Vt=function(t,e,n,r){void 0===r&&(r="...");var i,o,a=Yt(r,n),s=I(t)?t:tt(t),c=e,l=[];if(Yt(t,n)<=e)return t;for(;i=s.substr(0,16),!((o=Yt(i,n))+a>c&&o>c);)if(l.push(i),c-=o,!(s=s.substr(16)))return l.join("");for(;i=s.substr(0,1),!((o=Yt(i,n))+a>c);)if(l.push(i),c-=o,!(s=s.substr(1)))return l.join("");return""+l.join("")+r},Gt=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}();n.d(e,"f",(function(){return i})),n.d(e,"A",(function(){return i})),n.d(e,"i",(function(){return a})),n.d(e,"m",(function(){return m})),n.d(e,"n",(function(){return b})),n.d(e,"o",(function(){return x})),n.d(e,"q",(function(){return O})),n.d(e,"u",(function(){return C})),n.d(e,"ib",(function(){return E})),n.d(e,"jb",(function(){return k})),n.d(e,"ob",(function(){return A})),n.d(e,"ub",(function(){return P})),n.d(e,"yb",(function(){return T})),n.d(e,"z",(function(){return B})),n.d(e,"U",(function(){return L})),n.d(e,"l",(function(){return o})),n.d(e,"k",(function(){return D})),n.d(e,"nb",(function(){return F})),n.d(e,"v",(function(){return W})),n.d(e,"w",(function(){return N})),n.d(e,"x",(function(){return z})),n.d(e,"c",(function(){return $})),n.d(e,"p",(function(){return H})),n.d(e,"N",(function(){return V})),n.d(e,"Y",(function(){return j})),n.d(e,"Z",(function(){return G})),n.d(e,"bb",(function(){return w})),n.d(e,"cb",(function(){return K})),n.d(e,"eb",(function(){return X})),n.d(e,"sb",(function(){return q})),n.d(e,"r",(function(){return Z})),n.d(e,"y",(function(){return Q})),n.d(e,"T",(function(){return p})),n.d(e,"J",(function(){return g})),n.d(e,"xb",(function(){return J})),n.d(e,"V",(function(){return et})),n.d(e,"pb",(function(){return nt})),n.d(e,"wb",(function(){return rt})),n.d(e,"C",(function(){return h})),n.d(e,"D",(function(){return at})),n.d(e,"E",(function(){return st})),n.d(e,"I",(function(){return l})),n.d(e,"K",(function(){return u})),n.d(e,"L",(function(){return ct})),n.d(e,"M",(function(){return Y})),n.d(e,"O",(function(){return d})),n.d(e,"P",(function(){return y})),n.d(e,"Q",(function(){return I})),n.d(e,"R",(function(){return c})),n.d(e,"S",(function(){return ht})),n.d(e,"F",(function(){return dt})),n.d(e,"kb",(function(){return ft})),n.d(e,"d",(function(){return pt})),n.d(e,"e",(function(){return mt})),n.d(e,"g",(function(){return bt})),n.d(e,"ab",(function(){return xt})),n.d(e,"h",(function(){return jt})),n.d(e,"j",(function(){return f})),n.d(e,"B",(function(){return wt})),n.d(e,"G",(function(){return _t})),n.d(e,"H",(function(){return St})),n.d(e,"W",(function(){return Et})),n.d(e,"X",(function(){return It})),n.d(e,"db",(function(){return vt})),n.d(e,"b",(function(){return vt})),n.d(e,"s",(function(){return At})),n.d(e,"lb",(function(){return Pt})),n.d(e,"hb",(function(){return Bt})),n.d(e,"gb",(function(){return Lt})),n.d(e,"qb",(function(){return Dt})),n.d(e,"rb",(function(){return Ft})),n.d(e,"tb",(function(){return tt})),n.d(e,"vb",(function(){return Nt})),n.d(e,"fb",(function(){return zt})),n.d(e,"mb",(function(){return Wt})),n.d(e,"t",(function(){return Vt})),n.d(e,"a",(function(){return Gt}))},548:function(t,e,n){"use strict";var r={};n.r(r),n.d(r,"create",(function(){return o})),n.d(r,"fromMat4",(function(){return a})),n.d(r,"clone",(function(){return s})),n.d(r,"copy",(function(){return c})),n.d(r,"fromValues",(function(){return l})),n.d(r,"set",(function(){return u})),n.d(r,"identity",(function(){return h})),n.d(r,"transpose",(function(){return d})),n.d(r,"invert",(function(){return f})),n.d(r,"adjoint",(function(){return p})),n.d(r,"determinant",(function(){return g})),n.d(r,"multiply",(function(){return v})),n.d(r,"translate",(function(){return y})),n.d(r,"rotate",(function(){return m})),n.d(r,"scale",(function(){return b})),n.d(r,"fromTranslation",(function(){return x})),n.d(r,"fromRotation",(function(){return O})),n.d(r,"fromScaling",(function(){return j})),n.d(r,"fromMat2d",(function(){return w})),n.d(r,"fromQuat",(function(){return C})),n.d(r,"normalFromMat4",(function(){return _})),n.d(r,"projection",(function(){return M})),n.d(r,"str",(function(){return S})),n.d(r,"frob",(function(){return E})),n.d(r,"add",(function(){return k})),n.d(r,"subtract",(function(){return I})),n.d(r,"multiplyScalar",(function(){return A})),n.d(r,"multiplyScalarAndAdd",(function(){return P})),n.d(r,"exactEquals",(function(){return T})),n.d(r,"equals",(function(){return B})),n.d(r,"mul",(function(){return L})),n.d(r,"sub",(function(){return D}));var i=n(571);function o(){var t=new i.a(9);return i.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 a(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 s(t){var e=new i.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 c(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 l(t,e,n,r,o,a,s,c,l){var u=new i.a(9);return u[0]=t,u[1]=e,u[2]=n,u[3]=r,u[4]=o,u[5]=a,u[6]=s,u[7]=c,u[8]=l,u}function u(t,e,n,r,i,o,a,s,c,l){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=c,t[8]=l,t}function h(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 d(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 f(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],c=e[6],l=e[7],u=e[8],h=u*a-s*l,d=-u*o+s*c,f=l*o-a*c,p=n*h+r*d+i*f;return p?(p=1/p,t[0]=h*p,t[1]=(-u*r+i*l)*p,t[2]=(s*r-i*a)*p,t[3]=d*p,t[4]=(u*n-i*c)*p,t[5]=(-s*n+i*o)*p,t[6]=f*p,t[7]=(-l*n+r*c)*p,t[8]=(a*n-r*o)*p,t):null}function p(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],c=e[6],l=e[7],u=e[8];return t[0]=a*u-s*l,t[1]=i*l-r*u,t[2]=r*s-i*a,t[3]=s*c-o*u,t[4]=n*u-i*c,t[5]=i*o-n*s,t[6]=o*l-a*c,t[7]=r*c-n*l,t[8]=n*a-r*o,t}function g(t){var e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],c=t[7],l=t[8];return e*(l*o-a*c)+n*(-l*i+a*s)+r*(c*i-o*s)}function v(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],c=e[5],l=e[6],u=e[7],h=e[8],d=n[0],f=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]=d*r+f*a+p*l,t[1]=d*i+f*s+p*u,t[2]=d*o+f*c+p*h,t[3]=g*r+v*a+y*l,t[4]=g*i+v*s+y*u,t[5]=g*o+v*c+y*h,t[6]=m*r+b*a+x*l,t[7]=m*i+b*s+x*u,t[8]=m*o+b*c+x*h,t}function y(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],c=e[5],l=e[6],u=e[7],h=e[8],d=n[0],f=n[1];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=c,t[6]=d*r+f*a+l,t[7]=d*i+f*s+u,t[8]=d*o+f*c+h,t}function m(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],c=e[5],l=e[6],u=e[7],h=e[8],d=Math.sin(n),f=Math.cos(n);return t[0]=f*r+d*a,t[1]=f*i+d*s,t[2]=f*o+d*c,t[3]=f*a-d*r,t[4]=f*s-d*i,t[5]=f*c-d*o,t[6]=l,t[7]=u,t[8]=h,t}function b(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 x(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 O(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 j(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 w(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 C(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n+n,s=r+r,c=i+i,l=n*a,u=r*a,h=r*s,d=i*a,f=i*s,p=i*c,g=o*a,v=o*s,y=o*c;return t[0]=1-h-p,t[3]=u-y,t[6]=d+v,t[1]=u+y,t[4]=1-l-p,t[7]=f-g,t[2]=d-v,t[5]=f+g,t[8]=1-l-h,t}function _(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],c=e[6],l=e[7],u=e[8],h=e[9],d=e[10],f=e[11],p=e[12],g=e[13],v=e[14],y=e[15],m=n*s-r*a,b=n*c-i*a,x=n*l-o*a,O=r*c-i*s,j=r*l-o*s,w=i*l-o*c,C=u*g-h*p,_=u*v-d*p,M=u*y-f*p,S=h*v-d*g,E=h*y-f*g,k=d*y-f*v,I=m*k-b*E+x*S+O*M-j*_+w*C;return I?(I=1/I,t[0]=(s*k-c*E+l*S)*I,t[1]=(c*M-a*k-l*_)*I,t[2]=(a*E-s*M+l*C)*I,t[3]=(i*E-r*k-o*S)*I,t[4]=(n*k-i*M+o*_)*I,t[5]=(r*M-n*E-o*C)*I,t[6]=(g*w-v*j+y*O)*I,t[7]=(v*x-p*w-y*b)*I,t[8]=(p*j-g*x+y*m)*I,t):null}function M(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 S(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"}function E(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])}function k(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 I(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 A(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 P(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 T(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 B(t,e){var n=t[0],r=t[1],o=t[2],a=t[3],s=t[4],c=t[5],l=t[6],u=t[7],h=t[8],d=e[0],f=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-d)<=i.b*Math.max(1,Math.abs(n),Math.abs(d))&&Math.abs(r-f)<=i.b*Math.max(1,Math.abs(r),Math.abs(f))&&Math.abs(o-p)<=i.b*Math.max(1,Math.abs(o),Math.abs(p))&&Math.abs(a-g)<=i.b*Math.max(1,Math.abs(a),Math.abs(g))&&Math.abs(s-v)<=i.b*Math.max(1,Math.abs(s),Math.abs(v))&&Math.abs(c-y)<=i.b*Math.max(1,Math.abs(c),Math.abs(y))&&Math.abs(l-m)<=i.b*Math.max(1,Math.abs(l),Math.abs(m))&&Math.abs(u-b)<=i.b*Math.max(1,Math.abs(u),Math.abs(b))&&Math.abs(h-x)<=i.b*Math.max(1,Math.abs(h),Math.abs(x))}var L=v,D=I,F=n(608),R=n(609);n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return F})),n.d(e,"c",(function(){return R}))},549:function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return m}));var r=n(605);n.d(e,"PathUtil",(function(){return r}));var i=n(637);for(var o in i)["Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","registerBBox","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","registerEasing","version","default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var a=n(638);for(var o in a)["Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","registerBBox","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","registerEasing","version","default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);var s=n(606);n.d(e,"Event",(function(){return s.a}));var c=n(607);n.d(e,"Base",(function(){return c.a}));var l=n(655);n.d(e,"AbstractCanvas",(function(){return l.a}));var u=n(642);n.d(e,"AbstractGroup",(function(){return u.a}));var h=n(643);n.d(e,"AbstractShape",(function(){return h.a}));var d=n(618);n.d(e,"getBBoxMethod",(function(){return d.a})),n.d(e,"registerBBox",(function(){return d.b}));var f=n(587);n.d(e,"getTextHeight",(function(){return f.b})),n.d(e,"assembleFont",(function(){return f.a}));var p=n(562);n.d(e,"isAllowCapture",(function(){return p.b}));var g=n(572);n.d(e,"multiplyVec2",(function(){return g.c})),n.d(e,"invert",(function(){return g.a}));var v=n(610);n.d(e,"getOffScreenContext",(function(){return v.a}));var y=n(619);n.d(e,"registerEasing",(function(){return y.b}));var m="0.5.11"},550:function(t,e,n){"use strict";var r=n(25),i=n(545),o=n(613),a=n(560),s=n(552),c=n(590),l=["visible","tip","delegateObject"],u=["container","group","shapesMap","isRegister","isUpdating","destroyed"],h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},e.prototype.remove=function(){this.clear(),this.get("group").remove()},e.prototype.clear=function(){this.get("group").clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},e.prototype.getChildComponentById=function(t){var e=this.getElementById(t);return e&&e.get("component")},e.prototype.getElementById=function(t){return this.get("shapesMap")[t]},e.prototype.getElementByLocalId=function(t){var e=this.getElementId(t);return this.getElementById(e)},e.prototype.getElementsByName=function(t){var e=[];return Object(i.j)(this.get("shapesMap"),(function(n){n.get("name")===t&&e.push(n)})),e},e.prototype.getContainer=function(){return this.get("container")},e.prototype.updateInner=function(t){this.offScreenRender(),this.get("updateAutoRender")&&this.render()},e.prototype.render=function(){var t=this.get("offScreenGroup");t||(t=this.offScreenRender());var e=this.get("group");this.updateElements(t,e),this.deleteElements(),this.applyOffset(),this.get("eventInitted")||(this.initEvent(),this.set("eventInitted",!0)),this.set("isInit",!1)},e.prototype.show=function(){this.get("group").show(),this.set("visible",!0)},e.prototype.hide=function(){this.get("group").hide(),this.set("visible",!1)},e.prototype.setCapture=function(t){this.get("group").set("capture",t),this.set("capture",t)},e.prototype.destroy=function(){this.removeEvent(),this.remove(),t.prototype.destroy.call(this)},e.prototype.getBBox=function(){return this.get("group").getCanvasBBox()},e.prototype.getLayoutBBox=function(){var t=this.get("group"),e=this.getInnerLayoutBBox(),n=t.getTotalMatrix();return n&&(e=Object(a.a)(n,e)),e},e.prototype.on=function(t,e,n){return this.get("group").on(t,e,n),this},e.prototype.off=function(t,e){var n=this.get("group");return n&&n.off(t,e),this},e.prototype.emit=function(t,e){this.get("group").emit(t,e)},e.prototype.init=function(){t.prototype.init.call(this),this.get("group")||this.initGroup(),this.offScreenRender()},e.prototype.getInnerLayoutBBox=function(){return this.get("offScreenBBox")||this.get("group").getBBox()},e.prototype.delegateEmit=function(t,e){var n=this.get("group");e.target=n,n.emit(t,e),Object(o.a)(n,t,e)},e.prototype.createOffScreenGroup=function(){return new(this.get("group").getGroupBase())({delegateObject:this.getDelegateObject()})},e.prototype.applyOffset=function(){var t=this.get("offsetX"),e=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t,y:e})},e.prototype.initGroup=function(){var t=this.get("container");this.set("group",t.addGroup({id:this.get("id"),name:this.get("name"),capture:this.get("capture"),visible:this.get("visible"),isComponent:!0,component:this,delegateObject:this.getDelegateObject()}))},e.prototype.offScreenRender=function(){this.clearOffScreenCache();var t=this.createOffScreenGroup();return this.renderInner(t),this.set("offScreenGroup",t),this.set("offScreenBBox",Object(s.d)(t)),t},e.prototype.addGroup=function(t,e){this.appendDelegateObject(t,e);var n=t.addGroup(e);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addShape=function(t,e){this.appendDelegateObject(t,e);var n=t.addShape(e);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addComponent=function(t,e){var n=e.id,i=e.component,o=Object(r.f)(e,["id","component"]),a=new i(Object(r.a)(Object(r.a)({},o),{id:n,container:t,updateAutoRender:this.get("updateAutoRender")}));return a.init(),a.render(),this.get("isRegister")&&this.registerElement(a.get("group")),a},e.prototype.initEvent=function(){},e.prototype.removeEvent=function(){this.get("group").off()},e.prototype.getElementId=function(t){return this.get("id")+"-"+this.get("name")+"-"+t},e.prototype.registerElement=function(t){var e=t.get("id");this.get("shapesMap")[e]=t},e.prototype.unregisterElement=function(t){var e=t.get("id");delete this.get("shapesMap")[e]},e.prototype.moveElementTo=function(t,e){var n=Object(a.f)(e);t.attr("matrix",n)},e.prototype.addAnimation=function(t,e,n){var r=e.attr("opacity");Object(i.K)(r)&&(r=1),e.attr("opacity",0),e.animate({opacity:r},n)},e.prototype.removeAnimation=function(t,e,n){e.animate({opacity:0},n)},e.prototype.updateAnimation=function(t,e,n,r){e.animate(n,r)},e.prototype.updateElements=function(t,e){var n,r=this,o=this.get("animate"),a=this.get("animateOption"),c=t.getChildren().slice(0);Object(i.j)(c,(function(t){var c=t.get("id"),h=r.getElementById(c),d=t.get("name");if(h)if(t.get("isComponent")){var f=t.get("component"),p=h.get("component"),g=Object(i.hb)(f.cfg,Object(i.i)(Object(i.T)(f.cfg),u));p.update(g),h.set("update_status","update")}else{var v=r.getReplaceAttrs(h,t);o&&a.update?r.updateAnimation(d,h,v,a.update):h.attr(v),t.isGroup()&&r.updateElements(t,h),Object(i.j)(l,(function(e){h.set(e,t.get(e))})),Object(s.m)(h,t),n=h,h.set("update_status","update")}else{e.add(t);var y=e.getChildren();if(y.splice(y.length-1,1),n){var m=y.indexOf(n);y.splice(m+1,0,t)}else y.unshift(t);if(r.registerElement(t),t.set("update_status","add"),t.get("isComponent"))(f=t.get("component")).set("container",e);else t.isGroup()&&r.registerNewGroup(t);if(n=t,o){var b=r.get("isInit")?a.appear:a.enter;b&&r.addAnimation(d,t,b)}}}))},e.prototype.clearUpdateStatus=function(t){var e=t.getChildren();Object(i.j)(e,(function(t){t.set("update_status",null)}))},e.prototype.clearOffScreenCache=function(){var t=this.get("offScreenGroup");t&&t.destroy(),this.set("offScreenGroup",null),this.set("offScreenBBox",null)},e.prototype.getDelegateObject=function(){var t;return(t={})[this.get("name")]=this,t.component=this,t},e.prototype.appendDelegateObject=function(t,e){var n=t.get("delegateObject");e.delegateObject||(e.delegateObject={}),Object(i.db)(e.delegateObject,n)},e.prototype.getReplaceAttrs=function(t,e){var n=t.attr(),r=e.attr();return Object(i.j)(n,(function(t,e){void 0===r[e]&&(r[e]=void 0)})),r},e.prototype.registerNewGroup=function(t){var e=this,n=t.getChildren();Object(i.j)(n,(function(t){e.registerElement(t),t.set("update_status","add"),t.isGroup()&&e.registerNewGroup(t)}))},e.prototype.deleteElements=function(){var t=this,e=this.get("shapesMap"),n=[];Object(i.j)(e,(function(t,e){!t.get("update_status")||t.destroyed?n.push([e,t]):t.set("update_status",null)}));var r=this.get("animate"),o=this.get("animateOption");Object(i.j)(n,(function(n){var a=n[0],s=n[1];if(!s.destroyed){var c=s.get("name");if(r&&o.leave){var l=Object(i.db)({callback:function(){t.removeElement(s)}},o.leave);t.removeAnimation(c,s,l)}else t.removeElement(s)}delete e[a]}))},e.prototype.removeElement=function(t){if(t.get("isGroup")){var e=t.get("component");e&&e.destroy()}t.remove()},e}(c.a);e.a=h},551:function(t,e,n){"use strict";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 c})),n.d(r,"direction",(function(){return l})),n.d(r,"angleTo",(function(){return u})),n.d(r,"vertical",(function(){return h}));var i=n(548);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 c(t,e){for(var n,r,c,l=t?[].concat(t):[1,0,0,0,1,0,0,0,1],u=0,h=e.length;u<h;u++){var d=e[u];switch(d[0]){case"t":o(l,l,[d[1],d[2]]);break;case"s":s(l,l,[d[1],d[2]]);break;case"r":a(l,l,d[1]);break;case"m":n=l,r=l,c=d[1],i.a.multiply(n,c,r)}}return l}function l(t,e){return t[0]*e[1]-e[0]*t[1]}function u(t,e,n){var r=i.b.angle(t,e),o=l(t,e)>=0;return n?o?2*Math.PI-r:r:o?r:2*Math.PI-r}function h(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}n.d(e,"b",(function(){return i.a})),n.d(e,"c",(function(){return i.b})),n.d(e,"d",(function(){return i.c})),n.d(e,"a",(function(){return r}))},552:function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"h",(function(){return a})),n.d(e,"k",(function(){return s})),n.d(e,"j",(function(){return c})),n.d(e,"b",(function(){return l})),n.d(e,"g",(function(){return u})),n.d(e,"e",(function(){return h})),n.d(e,"i",(function(){return d})),n.d(e,"d",(function(){return f})),n.d(e,"m",(function(){return p})),n.d(e,"l",(function(){return g})),n.d(e,"f",(function(){return v}));var r=n(545);function i(t){var e=0,n=0,i=0,o=0;return Object(r.M)(t)?e=n=i=o=t:Object(r.C)(t)&&(e=t[0],i=Object(r.K)(t[1])?t[0]:t[1],o=Object(r.K)(t[2])?t[0]:t[2],n=Object(r.K)(t[3])?i:t[3]),[e,i,o,n]}function o(t){for(var e=t.childNodes,n=e.length-1;n>=0;n--)t.removeChild(e[n])}function a(t,e){return!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))}function s(t){var e=t.start,n=t.end,r=Math.min(e.x,n.x),i=Math.min(e.y,n.y),o=Math.max(e.x,n.x),a=Math.max(e.y,n.y);return{x:r,y:i,minX:r,minY:i,maxX:o,maxY:a,width:o-r,height:a-i}}function c(t){var e=t.map((function(t){return t.x})),n=t.map((function(t){return t.y})),r=Math.min.apply(Math,e),i=Math.min.apply(Math,n),o=Math.max.apply(Math,e),a=Math.max.apply(Math,n);return{x:r,y:i,minX:r,minY:i,maxX:o,maxY:a,width:o-r,height:a-i}}function l(t,e,n,r){var i=t+n,o=e+r;return{x:t,y:e,width:n,height:r,minX:t,minY:e,maxX:isNaN(i)?0:i,maxY:isNaN(o)?0:o}}function u(t,e,n){return(1-n)*t+e*n}function h(t,e,n){return{x:t.x+Math.cos(n)*e,y:t.y+Math.sin(n)*e}}var d=function(t,e,n){return void 0===n&&(n=Math.pow(Number.EPSILON,.5)),[t,e].includes(1/0)?Math.abs(t)===Math.abs(e):Math.abs(t-e)<n};function f(t){var e,n,i,o,a,s=t.getClip(),c=s&&s.getBBox();if(t.isGroup()){var u=1/0,h=-1/0,d=1/0,p=-1/0,g=t.getChildren();g.length>0?Object(r.j)(g,(function(t){if(t.get("visible")){if(t.isGroup()&&0===t.get("children").length)return!0;var e=f(t),n=t.applyToMatrix([e.minX,e.minY,1]),r=t.applyToMatrix([e.minX,e.maxY,1]),i=t.applyToMatrix([e.maxX,e.minY,1]),o=t.applyToMatrix([e.maxX,e.maxY,1]),a=Math.min(n[0],r[0],i[0],o[0]),s=Math.max(n[0],r[0],i[0],o[0]),c=Math.min(n[1],r[1],i[1],o[1]),l=Math.max(n[1],r[1],i[1],o[1]);a<u&&(u=a),s>h&&(h=s),c<d&&(d=c),l>p&&(p=l)}})):(u=0,h=0,d=0,p=0),e=l(u,d,h-u,p-d)}else e=t.getBBox();return c?(n=e,i=c,o=Math.max(n.minX,i.minX),a=Math.max(n.minY,i.minY),l(o,a,Math.min(n.maxX,i.maxX)-o,Math.min(n.maxY,i.maxY)-a)):e}function p(t,e){if(t.getClip()||e.getClip()){var n=e.getClip();if(n){var r={type:n.get("type"),attrs:n.attr()};t.setClip(r)}else t.setClip(null)}}function g(t){return t+"px"}function v(t,e,n,r){var i,o,a,s,c=r/(i=t,a=(o=e).x-i.x,s=o.y-i.y,Math.sqrt(a*a+s*s)),l=0;return"start"===n?l=0-c:"end"===n&&(l=1+c),{x:u(t.x,e.x,l),y:u(t.y,e.y,l)}}},553: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 c})),n.d(e,"j",(function(){return l}));var r=n(545);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 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 l(t,e){return t[0]===e[0]&&t[1]===e[1]}n.d(e,"i",(function(){return r.K})),n.d(e,"k",(function(){return r.Q})),n.d(e,"h",(function(){return r.I})),n.d(e,"g",(function(){return r.C})),n.d(e,"c",(function(){return r.j})),n.d(e,"o",(function(){return r.sb})),n.d(e,"m",(function(){return r.eb})),n.d(e,"n",(function(){return r.kb})),n.d(e,"a",(function(){return r.d}))},554: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"}},555:function(t,e,n){"use strict";var r=n(657);n.d(e,"Annotation",(function(){return r}));var i=n(658);n.d(e,"Axis",(function(){return i}));var o=n(661);n.d(e,"Crosshair",(function(){return o}));var a=n(663);n.d(e,"Grid",(function(){return a}));var s=n(664);n.d(e,"Legend",(function(){return s}));var c=n(665);n.d(e,"Tooltip",(function(){return c}));n(590),n(550),n(575);var l=n(654);n.d(e,"Slider",(function(){return l.a}));var u=n(668);n.d(e,"Scrollbar",(function(){return u.a}));n(645),n(646);var h=n(613);n.d(e,"propagationDelegate",(function(){return h.a}));var d=n(591);n.d(e,"TOOLTIP_CSS_CONST",(function(){return d}))},556:function(t,e,n){"use strict";e.a={fontFamily:'\n BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue",\n Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",\n SimSun, "sans-serif"',textColor:"#2C3542",activeTextColor:"#333333",uncheckedColor:"#D8D8D8",lineColor:"#416180",regionColor:"#CCD7EB",verticalAxisRotate:-Math.PI/4,horizontalAxisRotate:Math.PI/4,descriptionIconStroke:"#fff",descriptionIconFill:"rgba(58, 73, 101, .25)"}},557:function(t,e,n){"use strict";var r={};n.r(r),n.d(r,"distance",(function(){return o})),n.d(r,"isNumberEqual",(function(){return a})),n.d(r,"getBBoxByArray",(function(){return s})),n.d(r,"getBBoxRange",(function(){return c})),n.d(r,"piMod",(function(){return l}));var i=n(545);function o(t,e,n,r){var i=t-n,o=e-r;return Math.sqrt(i*i+o*o)}function a(t,e){return Math.abs(t-e)<.001}function s(t,e){var n=Object(i.bb)(t),r=Object(i.bb)(e);return{x:n,y:r,width:Object(i.Y)(t)-n,height:Object(i.Y)(e)-r}}function c(t,e,n,r){return{minX:Object(i.bb)([t,n]),maxX:Object(i.Y)([t,n]),minY:Object(i.bb)([e,r]),maxY:Object(i.Y)([e,r])}}function l(t){return(t+2*Math.PI)%(2*Math.PI)}var u=n(608),h={box:function(t,e,n,r){return s([t,n],[e,r])},length:function(t,e,n,r){return o(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,a){var s=(n-t)*(i-t)+(r-e)*(a-e);return s<0?o(t,e,i,a):s>(n-t)*(n-t)+(r-e)*(r-e)?o(n,r,i,a):this.pointToLine(t,e,n,r,i,a)},pointToLine:function(t,e,n,r,i,o){var a=[n-t,r-e];if(u.exactEquals(a,[0,0]))return Math.sqrt((i-t)*(i-t)+(o-e)*(o-e));var s=[-a[1],a[0]];u.normalize(s,s);var c=[i-t,o-e];return Math.abs(u.dot(c,s))},tangentAngle:function(t,e,n,r){return Math.atan2(r-e,n-t)}};function d(t,e,n,r,i,a){var s,c=1/0,l=[n,r],u=20;a&&a>200&&(u=a/10);for(var h=1/u,d=h/10,f=0;f<=u;f++){var p=f*h,g=[i.apply(null,t.concat([p])),i.apply(null,e.concat([p]))];(b=o(l[0],l[1],g[0],g[1]))<c&&(s=p,c=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]}}c=1/0;for(f=0;f<32&&!(d<1e-4);f++){var y=s-d,m=s+d,b=(g=[i.apply(null,t.concat([y])),i.apply(null,e.concat([y]))],o(l[0],l[1],g[0],g[1]));if(y>=0&&b<c)s=y,c=b;else{var x=[i.apply(null,t.concat([m])),i.apply(null,e.concat([m]))],O=o(l[0],l[1],x[0],x[1]);m<=1&&O<c?(s=m,c=O):d*=.5}}return{x:i.apply(null,t.concat([s])),y:i.apply(null,e.concat([s]))}}function f(t,e,n,r){var i=1-r;return i*i*t+2*r*i*e+r*r*n}function p(t,e,n){var r=t+n-2*e;if(a(r,0))return[.5];var i=(t-e)/r;return i<=1&&i>=0?[i]:[]}function g(t,e,n,r){return 2*(1-r)*(e-t)+2*r*(n-e)}function v(t,e,n,r,i,o,a){var s=f(t,n,i,a),c=f(e,r,o,a),l=h.pointAt(t,e,n,r,a),u=h.pointAt(n,r,i,o,a);return[[t,e,l.x,l.y,s,c],[s,c,u.x,u.y,i,o]]}var y={box:function(t,e,n,r,i,o){var a=p(t,n,i)[0],c=p(e,r,o)[0],l=[t,i],u=[e,o];return void 0!==a&&l.push(f(t,n,i,a)),void 0!==c&&u.push(f(e,r,o,c)),s(l,u)},length:function(t,e,n,r,i,a){return function t(e,n,r,i,a,s,c){if(0===c)return(o(e,n,r,i)+o(r,i,a,s)+o(e,n,a,s))/2;var l=v(e,n,r,i,a,s,.5),u=l[0],h=l[1];return u.push(c-1),h.push(c-1),t.apply(null,u)+t.apply(null,h)}(t,e,n,r,i,a,3)},nearestPoint:function(t,e,n,r,i,o,a,s){return d([t,n,i],[e,r,o],a,s,f)},pointDistance:function(t,e,n,r,i,a,s,c){var l=this.nearestPoint(t,e,n,r,i,a,s,c);return o(l.x,l.y,s,c)},interpolationAt:f,pointAt:function(t,e,n,r,i,o,a){return{x:f(t,n,i,a),y:f(e,r,o,a)}},divide:function(t,e,n,r,i,o,a){return v(t,e,n,r,i,o,a)},tangentAngle:function(t,e,n,r,i,o,a){var s=g(t,n,i,a),c=g(e,r,o,a);return l(Math.atan2(c,s))}};function m(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 b(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 x(t,e,n,r){var i,o,s,c=-3*t+9*e-9*n+3*r,l=6*t-12*e+6*n,u=3*e-3*t,h=[];if(a(c,0))a(l,0)||(i=-u/l)>=0&&i<=1&&h.push(i);else{var d=l*l-4*c*u;a(d,0)?h.push(-l/(2*c)):d>0&&(o=(-l-(s=Math.sqrt(d)))/(2*c),(i=(-l+s)/(2*c))>=0&&i<=1&&h.push(i),o>=0&&o<=1&&h.push(o))}return h}function O(t,e,n,r,i,o,a,s,c){var l=m(t,n,i,a,c),u=m(e,r,o,s,c),d=h.pointAt(t,e,n,r,c),f=h.pointAt(n,r,i,o,c),p=h.pointAt(i,o,a,s,c),g=h.pointAt(d.x,d.y,f.x,f.y,c),v=h.pointAt(f.x,f.y,p.x,p.y,c);return[[t,e,d.x,d.y,g.x,g.y,l,u],[l,u,v.x,v.y,p.x,p.y,a,s]]}function j(t,e,n,r,i,a,s,c,l){if(0===l)return function(t,e){for(var n=0,r=t.length,i=0;i<r;i++){n+=o(t[i],e[i],t[(i+1)%r],e[(i+1)%r])}return n/2}([t,n,i,s],[e,r,a,c]);var u=O(t,e,n,r,i,a,s,c,.5),h=u[0],d=u[1];return h.push(l-1),d.push(l-1),j.apply(null,h)+j.apply(null,d)}var w={extrema:x,box:function(t,e,n,r,i,o,a,c){for(var l=[t,a],u=[e,c],h=x(t,n,i,a),d=x(e,r,o,c),f=0;f<h.length;f++)l.push(m(t,n,i,a,h[f]));for(f=0;f<d.length;f++)u.push(m(e,r,o,c,d[f]));return s(l,u)},length:function(t,e,n,r,i,o,a,s){return j(t,e,n,r,i,o,a,s,3)},nearestPoint:function(t,e,n,r,i,o,a,s,c,l,u){return d([t,n,i,a],[e,r,o,s],c,l,m,u)},pointDistance:function(t,e,n,r,i,a,s,c,l,u,h){var d=this.nearestPoint(t,e,n,r,i,a,s,c,l,u,h);return o(d.x,d.y,l,u)},interpolationAt:m,pointAt:function(t,e,n,r,i,o,a,s,c){return{x:m(t,n,i,a,c),y:m(e,r,o,s,c)}},divide:function(t,e,n,r,i,o,a,s,c){return O(t,e,n,r,i,o,a,s,c)},tangentAngle:function(t,e,n,r,i,o,a,s,c){var u=b(t,n,i,a,c),h=b(e,r,o,s,c);return l(Math.atan2(h,u))}};function C(t,e){var n=Math.abs(t);return e>0?n:-1*n}var _=function(t,e,n,r,i,o){var a=n,s=r;if(0===a||0===s)return{x:t,y:e};for(var c,l,u=i-t,h=o-e,d=Math.abs(u),f=Math.abs(h),p=a*a,g=s*s,v=Math.PI/4,y=0;y<4;y++){c=a*Math.cos(v),l=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=c-m,O=l-b,j=d-m,w=f-b,_=Math.hypot(O,x),M=Math.hypot(w,j);v+=_*Math.asin((x*w-O*j)/(_*M))/Math.sqrt(p+g-c*c-l*l),v=Math.min(Math.PI/2,Math.max(0,v))}return{x:t+C(c,u),y:e+C(l,h)}};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 S(t,e,n,r,i,o){return n*Math.sin(i)*Math.cos(o)+r*Math.cos(i)*Math.sin(o)+e}function E(t,e,n){return{x:t*Math.cos(n),y:e*Math.sin(n)}}function k(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),c=1/0,l=-1/0,u=[o,a],h=2*-Math.PI;h<=2*Math.PI;h+=Math.PI){var d=s+h;o<a?o<d&&d<a&&u.push(d):a<d&&d<o&&u.push(d)}for(h=0;h<u.length;h++){var f=M(t,0,n,r,i,u[h]);f<c&&(c=f),f>l&&(l=f)}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(h=2*-Math.PI;h<=2*Math.PI;h+=Math.PI){var m=p+h;o<a?o<m&&m<a&&y.push(m):a<m&&m<o&&y.push(m)}for(h=0;h<y.length;h++){var b=S(0,e,n,r,i,y[h]);b<g&&(g=b),b>v&&(v=b)}return{x:c,y:g,width:l-c,height:v-g}},length:function(t,e,n,r,i,o,a){},nearestPoint:function(t,e,n,r,i,o,a,s,c){var l=k(s-t,c-e,-i),u=l[0],h=l[1],d=_(0,0,n,r,u,h),f=function(t,e,n,r){return(Math.atan2(r*t,n*e)+2*Math.PI)%(2*Math.PI)}(n,r,d.x,d.y);f<o?d=E(n,r,o):f>a&&(d=E(n,r,a));var p=k(d.x,d.y,i);return{x:p[0]+t,y:p[1]+e}},pointDistance:function(t,e,n,r,i,a,s,c,l){var u=this.nearestPoint(t,e,n,r,c,l);return o(u.x,u.y,c,l)},pointAt:function(t,e,n,r,i,o,a,s){var c=(a-o)*s+o;return{x:M(t,0,n,r,i,c),y:S(0,e,n,r,i,c)}},tangentAngle:function(t,e,n,r,i,o,a,s){var c=(a-o)*s+o,u=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,c),h=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,c);return l(Math.atan2(h,u))}};function A(t){for(var e=0,n=[],r=0;r<t.length-1;r++){var i=t[r],a=t[r+1],s=o(i[0],i[1],a[0],a[1]),c={from:i,to:a,length:s};n.push(c),e+=s}return{segments:n,totalLength:e}}function P(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+=o(r[0],r[1],i[0],i[1])}return e}function T(t,e){if(e>1||e<0||t.length<2)return null;var n=A(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 c=r[s],l=c.from,u=c.to,d=c.length/i;if(e>=o&&e<=o+d){var f=(e-o)/d;a=h.pointAt(l[0],l[1],u[0],u[1],f);break}o+=d}return a}function B(t,e){if(e>1||e<0||t.length<2)return 0;for(var n=A(t),r=n.segments,i=n.totalLength,o=0,a=0,s=0;s<r.length;s++){var c=r[s],l=c.from,u=c.to,h=c.length/i;if(e>=o&&e<=o+h){a=Math.atan2(u[1]-l[1],u[0]-l[0]);break}o+=h}return a}function L(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 D={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 s(e,n)},length:function(t){return P(t)},pointAt:function(t,e){return T(t,e)},pointDistance:function(t,e,n){return L(t,e,n)},tangentAngle:function(t,e){return B(t,e)}};n.d(e,"e",(function(){return y})),n.d(e,"b",(function(){return w})),n.d(e,"a",(function(){return I})),n.d(e,"c",(function(){return h})),n.d(e,"d",(function(){return D})),n.d(e,"f",(function(){return r}))},559: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 c}));var r=n(545),i=n(554);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.rb)(n.children).sort(e),o=document.createDocumentFragment();i.forEach((function(t){o.appendChild(t)})),n.appendChild(o)}function c(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)}},560:function(t,e,n){"use strict";n.d(e,"e",(function(){return o})),n.d(e,"f",(function(){return a})),n.d(e,"d",(function(){return s})),n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return h}));var r=n(551),i=[1,0,0,0,1,0,0,0,1];function o(t,e,n){return void 0===n&&(n=i),e?r.a.transform(n,[["t",-t.x,-t.y],["r",e],["t",t.x,t.y]]):null}function a(t,e){return t.x||t.y?r.a.transform(e||i,[["t",t.x,t.y]]):null}function s(t){var e=[0,0,0];return r.d.transformMat3(e,[1,0,0],t),Math.atan2(e[1],e[0])}function c(t,e){var n=[0,0];return r.c.transformMat3(n,e,t),n}function l(t,e){var n=c(t,[e.minX,e.minY]),r=c(t,[e.maxX,e.minY]),i=c(t,[e.minX,e.maxY]),o=c(t,[e.maxX,e.maxY]),a=Math.min(n[0],r[0],i[0],o[0]),s=Math.max(n[0],r[0],i[0],o[0]),l=Math.min(n[1],r[1],i[1],o[1]),u=Math.max(n[1],r[1],i[1],o[1]);return{x:a,y:l,minX:a,minY:l,maxX:s,maxY:u,width:s-a,height:u-l}}function u(t,e,n,r){if(e){var i=o({x:n,y:r},e,t.getMatrix());t.setMatrix(i)}}function h(t,e,n){var r=a({x:e,y:n});t.attr("matrix",r)}},561:function(t,e,n){"use strict";var r=n(650),i="object"==typeof self&&self&&self.Object===Object&&self,o=r.a||i||Function("return this")();e.a=o},562: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(545);function i(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}n.d(e,"e",(function(){return r.K})),n.d(e,"d",(function(){return r.I})),n.d(e,"h",(function(){return r.Q})),n.d(e,"f",(function(){return r.O})),n.d(e,"i",(function(){return r.db})),n.d(e,"a",(function(){return r.j})),n.d(e,"k",(function(){return r.wb}));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}},563:function(t,e,n){"use strict";var r=n(545),i=n(612),o=function(){function t(t){var e=t.xField,n=t.yField,r=t.adjustNames,i=void 0===r?["x","y"]:r,o=t.dimValuesMap;this.adjustNames=i,this.xField=e,this.yField=n,this.dimValuesMap=o}return t.prototype.isAdjust=function(t){return this.adjustNames.indexOf(t)>=0},t.prototype.getAdjustRange=function(t,e,n){var r,i,o=this.yField,a=n.indexOf(e),s=n.length;return!o&&this.isAdjust("y")?(r=0,i=1):s>1?(r=n[0===a?0:a-1],i=n[a===s-1?s-1:a+1],0!==a?r+=(e-r)/2:r-=(i-e)/2,a!==s-1?i-=(i-e)/2:i+=(e-n[s-2])/2):(r=0===e?0:e-.5,i=0===e?1:e+.5),{pre:r,next:i}},t.prototype.adjustData=function(t,e){var n=this,i=this.getDimValues(e);r.j(t,(function(t,e){r.j(i,(function(r,i){n.adjustDim(i,r,t,e)}))}))},t.prototype.groupData=function(t,e){return r.j(t,(function(t){void 0===t[e]&&(t[e]=i.a)})),r.w(t,e)},t.prototype.adjustDim=function(t,e,n,r){},t.prototype.getDimValues=function(t){var e=this.xField,n=this.yField,o=r.b({},this.dimValuesMap),a=[];if(e&&this.isAdjust("x")&&a.push(e),n&&this.isAdjust("y")&&a.push(n),a.forEach((function(e){o&&o[e]||(o[e]=r.yb(t,e).sort((function(t,e){return t-e})))})),!n&&this.isAdjust("y")){o.y=[i.a,1]}return o},t}();e.a=o},564:function(t,e,n){"use strict";function r(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)}}}}var i,o,a,s;function c(t){i||(i=document.createElement("table"),o=document.createElement("tr"),a=/^\s*<(\w+|!)[^>]*>/,s={tr:document.createElement("tbody"),tbody:i,thead:i,tfoot:i,td:o,th:o,"*":document.createElement("div")});var e=a.test(t)&&RegExp.$1;e&&e in s||(e="*");var n=s[e];t="string"==typeof t?t.replace(/(^\s*)|(\s*$)/g,""):t,n.innerHTML=""+t;var r=n.childNodes[0];return r&&n.contains(r)&&n.removeChild(r),r}function l(t,e,n){var r;try{r=window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.style[e]}catch(t){}finally{r=void 0===r?n:r}return r}function u(t,e){var n=function(t,e){var n=l(t,"height",e);return"auto"===n&&(n=t.offsetHeight),parseFloat(n)}(t,e),r=parseFloat(l(t,"borderTopWidth"))||0,i=parseFloat(l(t,"paddingTop"))||0,o=parseFloat(l(t,"paddingBottom"))||0;return n+r+(parseFloat(l(t,"borderBottomWidth"))||0)+i+o+(parseFloat(l(t,"marginTop"))||0)+(parseFloat(l(t,"marginBottom"))||0)}function h(t,e){var n=function(t,e){var n=l(t,"width",e);return"auto"===n&&(n=t.offsetWidth),parseFloat(n)}(t,e),r=parseFloat(l(t,"borderLeftWidth"))||0,i=parseFloat(l(t,"paddingLeft"))||0,o=parseFloat(l(t,"paddingRight"))||0,a=parseFloat(l(t,"borderRightWidth"))||0,s=parseFloat(l(t,"marginRight"))||0;return n+r+a+i+o+(parseFloat(l(t,"marginLeft"))||0)+s}function d(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return u})),n.d(e,"d",(function(){return h})),n.d(e,"e",(function(){return d}))},565:function(t,e,n){"use strict";var r={};n.r(r),n.d(r,"default",(function(){return L})),n.d(r,"assign",(function(){return g})),n.d(r,"format",(function(){return T})),n.d(r,"parse",(function(){return B})),n.d(r,"defaultI18n",(function(){return b})),n.d(r,"setGlobalDateI18n",(function(){return O})),n.d(r,"setGlobalDateMasks",(function(){return P}));var i=n(545),o={};function a(t,e){o[t]=e}var s=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(i.b)(this.__cfg__,t),this.init()},t.prototype.clone=function(){return this.constructor(this.__cfg__)},t.prototype.getTicks=function(){var t=this;return Object(i.W)(this.ticks,(function(e,n){return Object(i.O)(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(i.K)(r)||!Object(i.I)(r.toString)?"":r.toString()},t.prototype.getConfig=function(t){return this.__cfg__[t]},t.prototype.init=function(){Object(i.b)(this,this.__cfg__),this.setDomain(),Object(i.G)(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(i.Q)(t)){var n=o[t];if(!n)throw new Error("There is no method to to calculate ticks!");e=n(this)}else Object(i.I)(t)&&(e=t(this));return e},t.prototype.rangeMin=function(){return this.range[0]},t.prototype.rangeMax=function(){return this.range[1]},t.prototype.calcPercent=function(t,e,n){return Object(i.M)(t)?(t-e)/(n-e):NaN},t.prototype.calcValue=function(t,e,n){return e+t*(n-e)},t}(),c=n(25),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cat",e.isCategory=!0,e}return Object(c.c)(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(i.M)(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 o=e;return Object(i.M)(e)&&!this.values.includes(e)&&(o=this.values[o]),t.prototype.getText.apply(this,Object(c.h)([o],n))},e.prototype.initCfg=function(){this.tickMethod="cat"},e.prototype.setDomain=function(){if(Object(i.K)(this.getConfig("min"))&&(this.min=0),Object(i.K)(this.getConfig("max"))){var t=this.values.length;this.max=t>1?t-1:t}this.translateIndexMap&&(this.translateIndexMap=void 0)},e}(s),u=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,h="[^\\s]+",d=/\[([^]*?)\]/gm;function f(t,e){for(var n=[],r=0,i=t.length;r<i;r++)n.push(t[r].substr(0,e));return n}var p=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 g(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 v=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],y=["January","February","March","April","May","June","July","August","September","October","November","December"],m=f(y,3),b={dayNamesShort:f(v,3),dayNames:v,monthNamesShort:m,monthNames:y,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!=10?1:0)*t%10]}},x=g({},b),O=function(t){return x=g(x,t)},j=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},w=function(t,e){for(void 0===e&&(e=2),t=String(t);t.length<e;)t="0"+t;return t},C={D:function(t){return String(t.getDate())},DD:function(t){return w(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return String(t.getDay())},dd:function(t){return w(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 w(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 w(String(t.getFullYear()),4).substr(2)},YYYY:function(t){return w(t.getFullYear(),4)},h:function(t){return String(t.getHours()%12||12)},hh:function(t){return w(t.getHours()%12||12)},H:function(t){return String(t.getHours())},HH:function(t){return w(t.getHours())},m:function(t){return String(t.getMinutes())},mm:function(t){return w(t.getMinutes())},s:function(t){return String(t.getSeconds())},ss:function(t){return w(t.getSeconds())},S:function(t){return String(Math.round(t.getMilliseconds()/100))},SS:function(t){return w(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return w(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?"-":"+")+w(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+w(Math.floor(Math.abs(e)/60),2)+":"+w(Math.abs(e)%60,2)}},_=function(t){return+t-1},M=[null,"\\d\\d?"],S=[null,h],E=["isPm",h,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],k=["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}],I={D:["day","\\d\\d?"],DD:["day","\\d\\d"],Do:["day","\\d\\d?"+h,function(t){return parseInt(t,10)}],M:["month","\\d\\d?",_],MM:["month","\\d\\d",_],YY:["year","\\d\\d",function(t){var e=+(""+(new Date).getFullYear()).substr(0,2);return+(""+(+t>68?e-1:e)+t)}],h:["hour","\\d\\d?",void 0,"isPm"],hh:["hour","\\d\\d",void 0,"isPm"],H:["hour","\\d\\d?"],HH:["hour","\\d\\d"],m:["minute","\\d\\d?"],mm:["minute","\\d\\d"],s:["second","\\d\\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:M,dd:M,ddd:S,dddd:S,MMM:["month",h,p("monthNamesShort")],MMMM:["month",h,p("monthNames")],a:E,A:E,ZZ:k,Z:k},A={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"},P=function(t){return g(A,t)},T=function(t,e,n){if(void 0===e&&(e=A.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=A[e]||e).replace(d,(function(t,e){return r.push(e),"@@@"}));var i=g(g({},x),n);return(e=e.replace(u,(function(e){return C[e](t,i)}))).replace(/@@@/g,(function(){return r.shift()}))};function B(t,e,n){if(void 0===n&&(n={}),"string"!=typeof e)throw new Error("Invalid format in fecha parse");if(e=A[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(d,(function(t,e){return o.push(j(e)),"@@@"})),s={},c={};a=j(a).replace(u,(function(t){var e=I[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&&(c[o]=!0),i.push(e),"("+r+")"})),Object.keys(c).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 l=t.match(new RegExp(a,"i"));if(!l)return null;for(var h,f=g(g({},x),n),p=1;p<l.length;p++){var v=i[p-1],y=v[0],m=v[2],b=m?m(l[p],f):+l[p];if(null==b)return null;r[y]=b}if(1===r.isPm&&null!=r.hour&&12!=+r.hour?r.hour=+r.hour+12:0===r.isPm&&12==+r.hour&&(r.hour=0),null==r.timezoneOffset){h=new Date(r.year,r.month,r.day,r.hour,r.minute,r.second,r.millisecond);for(var O=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],w=(p=0,O.length);p<w;p++)if(s[O[p][0]]&&r[O[p][0]]!==h[O[p][1]]())return null}else if(h=new Date(Date.UTC(r.year,r.month,r.day,r.hour,r.minute-r.timezoneOffset,r.second,r.millisecond)),r.month>11||r.month<0||r.day>31||r.day<1||r.hour>23||r.hour<0||r.minute>59||r.minute<0||r.second>59||r.second<0)return null;return h}var L={format:T,parse:B,defaultI18n:b,setGlobalDateI18n:O,setGlobalDateMasks:P};function D(t,e){return(r.format||L.format)(t,e)}function F(t){return Object(i.Q)(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),Object(i.E)(t)&&(t=t.getTime()),t}var R=36e5,N=24*R,z=31*N,W=[["HH:mm:ss",1e3],["HH:mm:ss",1e4],["HH:mm:ss",3e4],["HH:mm",6e4],["HH:mm",6e5],["HH:mm",18e5],["HH",R],["HH",6*R],["HH",12*R],["YYYY-MM-DD",N],["YYYY-MM-DD",4*N],["YYYY-WW",7*N],["YYYY-MM",z],["YYYY-MM",4*z],["YYYY-MM",6*z],["YYYY",380*N]];function $(t,e,n){var r,o=(r=function(t){return t[1]},function(t,e,n,o){for(var a=Object(i.K)(n)?0:n,s=Object(i.K)(o)?t.length:o;a<s;){var c=a+s>>>1;r(t[c])>e?s=c:a=c+1}return a})(W,(e-t)/n)-1,a=W[o];return o<0?a=W[0]:o>=W.length&&(a=Object(i.U)(W)),a}var H=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="timeCat",e}return Object(c.c)(e,t),e.prototype.translate=function(t){t=F(t);var e=this.values.indexOf(t);return-1===e&&(e=Object(i.M)(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):D(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(i.j)(e,(function(t,n){e[n]=F(t)})),e.sort((function(t,e){return t-e})),t.prototype.setDomain.call(this)},e}(l),Y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isContinuous=!0,e}return Object(c.c)(e,t),e.prototype.scale=function(t){if(Object(i.K)(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(i.z)(e),r=Object(i.U)(e);n<this.min&&(this.min=n),r>this.max&&(this.max=r),Object(i.K)(this.minLimit)||(this.min=n),Object(i.K)(this.maxLimit)||(this.max=r)},e.prototype.setDomain=function(){var t=Object(i.u)(this.values),e=t.min,n=t.max;Object(i.K)(this.min)&&(this.min=e),Object(i.K)(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(i.l)(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}(s),V=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="linear",e.isLinear=!0,e}return Object(c.c)(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}(Y);function G(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 K(t,e){return 1===t?1:Math.log(e)/Math.log(t)}function X(t,e,n){Object(i.K)(n)&&(n=Math.max.apply(null,t));var r=n;return Object(i.j)(t,(function(t){t>0&&t<r&&(r=t)})),r===n&&(r=n/e),r>1&&(r=1),r}var U=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e}return Object(c.c)(e,t),e.prototype.invert=function(t){var e,n=this.base,r=K(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=K(n,a/n)))*o;if(t<s)return t/s*a}else e=K(n,this.min);var c=(t-i)/o*(r-e)+e;return Math.pow(n,c)},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=X(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/(K(r,e)-K(r,n)):(K(r,t)-K(r,n))/(K(r,e)-K(r,n))},e}(Y),q=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pow",e}return Object(c.c)(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t),n=this.exponent,r=G(n,this.max),i=G(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(G(r,t)-G(r,n))/(G(r,e)-G(r,n))},e}(Y),Z=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="time",e}return Object(c.c)(e,t),e.prototype.getText=function(t,e){var n=this.translate(t),r=this.formatter;return r?r(n,e):D(n,this.mask)},e.prototype.scale=function(e){var n=e;return(Object(i.Q)(n)||Object(i.E)(n))&&(n=this.translate(n)),t.prototype.scale.call(this,n)},e.prototype.translate=function(t){return F(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(i.K)(e)&&Object(i.M)(e)||(this.min=this.translate(this.min)),Object(i.K)(n)&&Object(i.M)(n)||(this.max=this.translate(this.max)),t&&t.length){var r=[],o=1/0,a=o,s=0;Object(i.j)(t,(function(t){var e=F(t);if(isNaN(e))throw new TypeError("Invalid Time: "+t+" in time scale!");o>e?(a=o,o=e):a>e&&(a=e),s<e&&(s=e),r.push(e)})),t.length>1&&(this.minTickInterval=a-o),Object(i.K)(e)&&(this.min=o),Object(i.K)(n)&&(this.max=s)}},e}(V),Q=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantize",e}return Object(c.c)(e,t),e.prototype.invert=function(t){var e=this.ticks,n=e.length,r=this.getInvertPercent(t),o=Math.floor(r*(n-1));if(o>=n-1)return Object(i.U)(e);if(o<0)return Object(i.z)(e);var a=e[o],s=o/(n-1);return a+(r-s)/((o+1)/(n-1)-s)*(e[o+1]-a)},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(i.U)(e)!==this.max&&e.push(this.max),Object(i.z)(e)!==this.min&&e.unshift(this.min)),e},e.prototype.getScalePercent=function(t){var e=this.ticks;if(t<Object(i.z)(e))return 0;if(t>Object(i.U)(e))return 1;var n=0;return Object(i.j)(e,(function(e,r){if(!(t>=e))return!1;n=r})),n/(e.length-1)},e}(Y),J=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantile",e}return Object(c.c)(e,t),e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(Q),tt={};function et(t){return tt[t]}function nt(t,e){if(et(t))throw new Error("type '"+t+"' existed.");tt[t]=e}var rt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="identity",e.isIdentity=!0,e}return Object(c.c)(e,t),e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&Object(i.M)(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}(s);function it(t){var e=t.values,n=t.tickInterval,r=t.tickCount,o=t.showLast;if(Object(i.M)(n)){var a=Object(i.l)(e,(function(t,e){return e%n==0})),s=Object(i.U)(e);return o&&Object(i.U)(a)!==s&&a.push(s),a}var c=e.length,l=t.min,u=t.max;if(Object(i.K)(l)&&(l=0),Object(i.K)(u)&&(u=e.length-1),!Object(i.M)(r)||r>=c)return e.slice(l,u+1);if(r<=0||u<=0)return[];for(var h=1===r?c:Math.floor(c/(r-1)),d=[],f=l,p=0;p<r&&!(f>=u);p++)f=Math.min(l+p*h,u),p===r-1&&o?d.push(e[u]):d.push(e[f]);return d}var ot=Math.sqrt(50),at=Math.sqrt(10),st=Math.sqrt(2),ct=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],c=this._domain[a];return c<s&&(s=(e=[c,s])[0],c=e[1],o=(n=[a,o])[0],a=n[1]),(r=lt(s,c,t))>0?r=lt(s=Math.floor(s/r)*r,c=Math.ceil(c/r)*r,t):r<0&&(r=lt(s=Math.ceil(s*r)/r,c=Math.floor(c*r)/r,t)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(c/r)*r,this.domain(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(c*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=lt(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 lt(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>=ot?10:o>=at?5:o>=st?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=ot?10:o>=at?5:o>=st?2:1)}function ut(t,e,n){return("ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e))*e}function ht(t,e,n){var r=ut(t,n,"floor"),o=ut(e,n,"ceil");r=Object(i.p)(r,n),o=Object(i.p)(o,n);for(var a=[],s=Math.max((o-r)/(Math.pow(2,12)-1),n),c=r;c<=o;c+=s){var l=Object(i.p)(c,s);a.push(l)}return{min:r,max:o,ticks:a}}function dt(t,e,n){var r,o=t.minLimit,a=t.maxLimit,s=t.min,c=t.max,l=t.tickCount,u=void 0===l?5:l,h=Object(i.K)(o)?Object(i.K)(e)?s:e:o,d=Object(i.K)(a)?Object(i.K)(n)?c:n:a;if(h>d&&(d=(r=[h,d])[0],h=r[1]),u<=2)return[h,d];for(var f=(d-h)/(u-1),p=[],g=0;g<u;g++)p.push(h+f*g);return p}function ft(t){return Math.abs(t)<1e-15?t:parseFloat(t.toFixed(15))}var pt=[1,5,2,2.5,4,3],gt=100*Number.EPSILON;function vt(t,e,n,r,o,a){var s=Object(i.mb)(e),c=Object(i.B)(e,t),l=0,u=function(t,e){return(t%e+e)%e}(r,a);return(u<gt||a-u<gt)&&r<=0&&o>=0&&(l=1),1-c/(s-1)-n+l}function yt(t,e,n){var r=Object(i.mb)(e);return 1-Object(i.B)(e,t)/(r-1)-n+1}function mt(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 bt(t,e){return t>=e?2-(t-1)/(e-1):1}function xt(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 Ot(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 jt(t,e,n,r,o,a){void 0===n&&(n=5),void 0===r&&(r=!0),void 0===o&&(o=pt),void 0===a&&(a=[.25,.2,.5,.05]);var s=n<0?0:Math.round(n);if(Number.isNaN(t)||Number.isNaN(e)||"number"!=typeof t||"number"!=typeof e||!s)return{min:0,max:0,ticks:[]};if(e-t<1e-15||1===s)return{min:t,max:e,ticks:[t]};if(e-t>1e148){var c=(e-t)/(j=n||5);return{min:t,max:e,ticks:Array(j).fill(null).map((function(e,n){return ft(t+c*n)}))}}for(var l={score:-2,lmin:0,lmax:0,lstep:0},u=1;u<1/0;){for(var h=0;h<o.length;h+=1){var d=o[h],f=yt(d,o,u);if(a[0]*f+a[1]+a[2]+a[3]<l.score){u=1/0;break}for(var p=2;p<1/0;){var g=bt(p,s);if(a[0]*f+a[1]+a[2]*g+a[3]<l.score)break;for(var v=(e-t)/(p+1)/u/d,y=Math.ceil(Math.log10(v));y<1/0;){var m=u*d*Math.pow(10,y),b=Ot(t,e,m*(p-1));if(a[0]*f+a[1]*b+a[2]*g+a[3]<l.score)break;var x=Math.floor(e/m)*u-(p-1)*u,O=Math.ceil(t/m)*u;if(x<=O)for(var j=O-x,w=0;w<=j;w+=1){var C=(x+w)*(m/u),_=C+m*(p-1),M=m,S=vt(d,o,u,C,_,M),E=xt(t,e,C,_),k=mt(p,s,t,e,C,_),I=a[0]*S+a[1]*E+a[2]*k+1*a[3];I>l.score&&(!r||C<=t&&_>=e)&&(l.lmin=C,l.lmax=_,l.lstep=M,l.score=I)}y+=1}p+=1}}u+=1}var A=ft(l.lmax),P=ft(l.lmin),T=ft(l.lstep),B=Math.floor(function(t){return Math.round(1e12*t)/1e12}((A-P)/T))+1,L=new Array(B);L[0]=ft(P);for(h=1;h<B;h++)L[h]=ft(L[h-1]+T);return{min:Math.min(t,Object(i.z)(L)),max:Math.max(e,Object(i.U)(L)),ticks:L}}function wt(t,e,n){if(void 0===n&&(n=5),t===e)return{max:e,min:t,ticks:[t]};var r=n<0?0:Math.round(n);if(0===r)return{max:e,min:t,ticks:[]};var i=(e-t)/r,o=Math.pow(10,Math.floor(Math.log10(i))),a=o;2*o-i<1.5*(i-a)&&5*o-i<2.75*(i-(a=2*o))&&10*o-i<1.5*(i-(a=5*o))&&(a=10*o);for(var s=Math.ceil(e/a),c=Math.floor(t/a),l=Math.max(s*a,e),u=Math.min(c*a,t),h=Math.floor((l-u)/a)+1,d=new Array(h),f=0;f<h;f++)d[f]=ft(u+f*a);return{min:u,max:l,ticks:d}}function Ct(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 _t(t){return new Date(t).getFullYear()}function Mt(t){return new Date(t,0,1).getTime()}function St(t){return new Date(t).getMonth()}function Et(t,e){return new Date(t,e,1).getTime()}a("cat",it),a("time-cat",(function(t){return it(Object(c.a)({showLast:!0},t))})),a("wilkinson-extended",(function(t){var e=t.min,n=t.max,r=t.tickCount,o=t.nice,a=t.tickInterval,s=t.minLimit,c=t.maxLimit,l=jt(e,n,r,o).ticks;return Object(i.K)(s)&&Object(i.K)(c)?a?ht(e,n,a).ticks:l:dt(t,Object(i.z)(l),Object(i.U)(l))})),a("r-pretty",(function(t){var e=t.min,n=t.max,r=t.tickCount,o=t.tickInterval,a=t.minLimit,s=t.maxLimit,c=wt(e,n,r).ticks;return Object(i.K)(a)&&Object(i.K)(s)?o?ht(e,n,o).ticks:c:dt(t,Object(i.z)(c),Object(i.U)(c))})),a("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=$(e,n,o)[1])/o;a>1&&(i*=Math.ceil(a)),r&&i<r&&(i=r)}i=Math.max(Math.floor((n-e)/(Math.pow(2,12)-1)),i);for(var s=[],c=e;c<n+i;c+=i)s.push(c);return s})),a("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)),o=Math.max(Math.floor((n-e)/(Math.pow(2,12)-1)),o);var s=_t(e);if(o>31536e6)for(var c=_t(n),l=Math.ceil(o/31536e6),u=s;u<=c+l;u+=l)a.push(Mt(u));else if(o>z){var h=Math.ceil(o/z),d=St(e),f=function(t,e){var n=_t(t),r=_t(e),i=St(t);return 12*(r-n)+(St(e)-i)%12}(e,n);for(u=0;u<=f+h;u+=h)a.push(Et(s,u+d))}else if(o>N){var p=(b=new Date(e)).getFullYear(),g=b.getMonth(),v=b.getDate(),y=Math.ceil(o/N),m=function(t,e){return Math.ceil((e-t)/N)}(e,n);for(u=0;u<m+y;u+=y)a.push(new Date(p,g,v+u).getTime())}else if(o>R){p=(b=new Date(e)).getFullYear(),g=b.getMonth(),y=b.getDate();var b,x=b.getHours(),O=Math.ceil(o/R),j=function(t,e){return Math.ceil((e-t)/R)}(e,n);for(u=0;u<=j+O;u+=O)a.push(new Date(p,g,y,x+u).getTime())}else if(o>6e4){var w=function(t,e){return Math.ceil((e-t)/6e4)}(e,n),C=Math.ceil(o/6e4);for(u=0;u<=w+C;u+=C)a.push(e+6e4*u)}else{var _=o;_<1e3&&(_=1e3);var M=1e3*Math.floor(e/1e3),S=Math.ceil((n-e)/1e3),E=Math.ceil(_/1e3);for(u=0;u<S+E;u+=E)a.push(M+1e3*u)}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})),a("log",(function(t){var e,n=t.base,r=t.tickCount,i=t.min,o=t.max,a=t.values,s=K(n,o);if(i>0)e=Math.floor(K(n,i));else{var c=X(a,n,o);e=Math.floor(K(n,c))}for(var l=s-e,u=Math.ceil(l/r),h=[],d=e;d<s+u;d+=u)h.push(Math.pow(n,d));return i<=0&&h.unshift(0),h})),a("pow",(function(t){var e=t.exponent,n=t.tickCount,r=Math.ceil(G(e,t.max));return wt(Math.floor(G(e,t.min)),r,n).ticks.map((function(t){var n=t>=0?1:-1;return Math.pow(t,e)*n}))})),a("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(Ct(r,a))}return i})),a("d3-linear",(function(t){var e=t.min,n=t.max,r=t.tickInterval,o=t.minLimit,a=t.maxLimit,s=function(t){var e=t.min,n=t.max,r=t.nice,i=t.tickCount,o=new ct;return o.domain([e,n]),r&&o.nice(i),o.ticks(i)}(t);return Object(i.K)(o)&&Object(i.K)(a)?r?ht(e,n,r).ticks:s:dt(t,Object(i.z)(s),Object(i.U)(s))})),n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return V})),n.d(e,"c",(function(){return et})),nt("cat",l),nt("category",l),nt("identity",rt),nt("linear",V),nt("log",U),nt("pow",q),nt("time",Z),nt("timeCat",H),nt("quantize",Q),nt("quantile",J)},571: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)})},572: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],c=t[5],l=t[6],u=t[7],h=t[8],d=e[0],f=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]=d*r+f*a+p*l,n[1]=d*i+f*s+p*u,n[2]=d*o+f*c+p*h,n[3]=g*r+v*a+y*l,n[4]=g*i+v*s+y*u,n[5]=g*o+v*c+y*h,n[6]=m*r+b*a+x*l,n[7]=m*i+b*s+x*u,n[8]=m*o+b*c+x*h,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],c=t[6],l=t[7],u=t[8],h=u*a-s*l,d=-u*o+s*c,f=l*o-a*c,p=n*h+r*d+i*f;return p?(p=1/p,e[0]=h*p,e[1]=(-u*r+i*l)*p,e[2]=(s*r-i*a)*p,e[3]=d*p,e[4]=(u*n-i*c)*p,e[5]=(-s*n+i*o)*p,e[6]=f*p,e[7]=(-l*n+r*c)*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}))},573:function(t,e,n){"use strict";var r=n(611);n.d(e,"getAdjust",(function(){return r.getAdjust}));n(563);var i=n(697),o=n(698),a=n(699),s=n(700);n(588);Object(r.registerAdjust)("Dodge",i.a),Object(r.registerAdjust)("Jitter",o.a),Object(r.registerAdjust)("Stack",a.a),Object(r.registerAdjust)("Symmetric",s.a)},574:function(t,e,n){"use strict";var r=n(545),i=/rgba?\(([\s.,0-9]+)\)/,o=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,a=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,c=function(t,e,n,r){return t[r]+(e[r]-t[r])*n};function l(t){return"#"+d(t[0])+d(t[1])+d(t[2])}var u,h=function(t){return[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16)]},d=function(t){var e=Math.round(t).toString(16);return 1===e.length?"0"+e:e},f=function(t){if("#"===t[0]&&7===t.length)return t;var e;u||((e=document.createElement("i")).title="Web Colour Picker",e.style.display="none",document.body.appendChild(e),u=e),u.style.color=t;var n=document.defaultView.getComputedStyle(u,"").getPropertyValue("color");return n=l(i.exec(n)[1].split(/\s*,\s*/).map((function(t){return Number(t)})))};e.a={rgb2arr:h,gradient:function(t){var e=Object(r.Q)(t)?t.split("-"):t,n=Object(r.W)(e,(function(t){return h(-1===t.indexOf("#")?f(t):t)}));return function(t){return function(t,e){var n=isNaN(Number(e))||e<0?0:e>1?1:Number(e),r=t.length-1,i=Math.floor(r*n),o=r*n-i,a=t[i],s=i===r?a:t[i+1];return l([c(a,s,o,0),c(a,s,o,1),c(a,s,o,2)])}(n,t)}},toRGB:Object(r.ab)(f),toCSSGradient:function(t){if(/^[r,R,L,l]{1}[\s]*\(/.test(t)){var e,n=void 0;if("l"===t[0]){var i=+(c=o.exec(t))[1]+90;n=c[2],e="linear-gradient("+i+"deg, "}else if("r"===t[0]){var c;e="radial-gradient(",n=(c=a.exec(t))[4]}var l=n.match(s);return Object(r.j)(l,(function(t,n){var r=t.split(":");e+=r[1]+" "+100*r[0]+"%",n!==l.length-1&&(e+=", ")})),e+=")"}return t}}},575:function(t,e,n){"use strict";var r=n(25),i=n(564),o=n(545),a=n(552),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{container:null,containerTpl:"<div></div>",updateAutoRender:!0,containerClassName:"",parent:null})},e.prototype.getContainer=function(){return this.get("container")},e.prototype.show=function(){this.get("container").style.display="",this.set("visible",!0)},e.prototype.hide=function(){this.get("container").style.display="none",this.set("visible",!1)},e.prototype.setCapture=function(t){var e=t?"auto":"none";this.getContainer().style.pointerEvents=e,this.set("capture",t)},e.prototype.getBBox=function(){var t=this.getContainer(),e=parseFloat(t.style.left)||0,n=parseFloat(t.style.top)||0;return Object(a.b)(e,n,t.clientWidth,t.clientHeight)},e.prototype.clear=function(){var t=this.get("container");Object(a.a)(t)},e.prototype.destroy=function(){this.removeEvent(),this.removeDom(),t.prototype.destroy.call(this)},e.prototype.init=function(){t.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},e.prototype.initCapture=function(){this.setCapture(this.get("capture"))},e.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},e.prototype.initDom=function(){},e.prototype.initContainer=function(){var t=this.get("container");if(Object(o.K)(t)){t=this.createDom();var e=this.get("parent");Object(o.Q)(e)&&(e=document.getElementById(e),this.set("parent",e)),e.appendChild(t),this.get("containerId")&&t.setAttribute("id",this.get("containerId")),this.set("container",t)}else Object(o.Q)(t)&&(t=document.getElementById(t),this.set("container",t));this.get("parent")||this.set("parent",t.parentNode)},e.prototype.resetStyles=function(){var t=this.get("domStyles"),e=this.get("defaultStyles");t=t?Object(o.h)({},e,t):e,this.set("domStyles",t)},e.prototype.applyStyles=function(){var t=this.get("domStyles");if(t){var e=this.getContainer();this.applyChildrenStyles(e,t);var n=this.get("containerClassName");if(n&&Object(a.h)(e,n)){var r=t[n];Object(i.e)(e,r)}}},e.prototype.applyChildrenStyles=function(t,e){Object(o.j)(e,(function(e,n){var r=t.getElementsByClassName(n);Object(o.j)(r,(function(t){Object(i.e)(t,e)}))}))},e.prototype.applyStyle=function(t,e){var n=this.get("domStyles");Object(i.e)(e,n[t])},e.prototype.createDom=function(){var t=this.get("containerTpl");return Object(i.b)(t)},e.prototype.initEvent=function(){},e.prototype.removeDom=function(){var t=this.get("container");t&&t.parentNode&&t.parentNode.removeChild(t)},e.prototype.removeEvent=function(){},e.prototype.updateInner=function(t){Object(o.y)(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},e.prototype.resetPosition=function(){},e}(n(590).a);e.a=s},576:function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"d",(function(){return u})),n.d(e,"b",(function(){return h})),n.d(e,"c",(function(){return d})),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(545),i=n(648),o=n(614),a=n(553),s=n(592),c={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function l(t,e){var n=e.attr();for(var o in n){var a=n[o],s=c[o]?c[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.C)(a)&&t.setLineDash(a):("strokeStyle"===s||"fillStyle"===s?a=Object(i.b)(t,e,a):"globalAlpha"===s&&(a*=t.globalAlpha),t[s]=a)}}function u(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 h(t,e,n){var i=t.get("refreshElements");Object(r.j)(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?f(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()&&f(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 d(t){for(var e=0;e<t.length;e++){var n=t[e];n.cfg.hasChanged=!1,n.isGroup()&&!n.destroyed&&d(n.cfg.children)}}function f(t,e){for(var n=0;n<t.length;n++){var r=t[n];r.cfg.visible&&(r.cfg.refresh=!0,r.isGroup()&&f(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,c=n.endArrow;if(i){var l=[0,0],u=[0,0],h={dx:0,dy:0};e.beginPath();for(var d=0;d<i.length;d++){var f=i[d],p=f[0];if(0===d&&a&&a.d){var g=t.getStartTangent();h=s.c(g[0][0],g[0][1],g[1][0],g[1][1],a.d)}else if(d===i.length-2&&"Z"===i[d+1][0]&&c&&c.d){if("Z"===i[d+1][0]){g=t.getEndTangent();h=s.c(g[0][0],g[0][1],g[1][0],g[1][1],c.d)}}else if(d===i.length-1&&c&&c.d&&"Z"!==i[0]){g=t.getEndTangent();h=s.c(g[0][0],g[0][1],g[1][0],g[1][1],c.d)}var v=h.dx,y=h.dy;switch(p){case"M":e.moveTo(f[1]-v,f[2]-y),u=[f[1],f[2]];break;case"L":e.lineTo(f[1]-v,f[2]-y);break;case"Q":e.quadraticCurveTo(f[1],f[2],f[3]-v,f[4]-y);break;case"C":e.bezierCurveTo(f[1],f[2],f[3],f[4],f[5]-v,f[6]-y);break;case"A":var m=void 0;r?(m=r[d])||(m=Object(o.a)(l,f),r[d]=m):m=Object(o.a)(l,f);var b=m.cx,x=m.cy,O=m.rx,j=m.ry,w=m.startAngle,C=m.endAngle,_=m.xRotation,M=m.sweepFlag;if(e.ellipse)e.ellipse(b,x,O,j,_,w,C,1-M);else{var S=O>j?O:j,E=O>j?1:O/j,k=O>j?j/O:1;e.translate(b,x),e.rotate(_),e.scale(E,k),e.arc(0,0,S,w,C,1-M),e.scale(1/E,1/k),e.rotate(-_),e.translate(-b,-x)}break;case"Z":e.closePath()}if("Z"===p)l=u;else{var I=f.length;l=[f[I-2],f[I-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.j)(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:Object(r.bb)(e),minY:Object(r.bb)(n),maxX:Object(r.Y)(i),maxY:Object(r.Y)(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}},577: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(559);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")}},578:function(t,e,n){"use strict";var r,i=n(1),o=n.n(i),a=(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(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)}),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={hasError:!1},e.renderError=function(t){var n=e.props.errorTemplate;return"function"==typeof n?n(t):n||o.a.createElement("h5",null,"组件出错了,请核查后重试: ",t.message)},e}return a(e,t),e.getDerivedStateFromError=function(t){return{hasError:!0,error:t}},e.getDerivedStateFromProps=function(t,e){return e.children!==t.children?{children:t.children,hasError:!1,error:void 0}:null},e.prototype.render=function(){return this.state.hasError?this.renderError(this.state.error):o.a.createElement(i.Fragment,null,this.props.children)},e}(o.a.Component);e.a=s},579:function(t,e,n){"use strict";var r={};n.r(r),n.d(r,"cluster",(function(){return mg})),n.d(r,"hierarchy",(function(){return Ud})),n.d(r,"pack",(function(){return Yd})),n.d(r,"packSiblings",(function(){return Rd})),n.d(r,"packEnclose",(function(){return _d})),n.d(r,"partition",(function(){return dg})),n.d(r,"stratify",(function(){return wg})),n.d(r,"tree",(function(){return Ig})),n.d(r,"treemap",(function(){return Lg})),n.d(r,"treemapBinary",(function(){return Dg})),n.d(r,"treemapDice",(function(){return hg})),n.d(r,"treemapSlice",(function(){return Ag})),n.d(r,"treemapSliceDice",(function(){return Fg})),n.d(r,"treemapSquarify",(function(){return Bg})),n.d(r,"treemapResquarify",(function(){return Rg}));var i,o,a,s=n(25),c=n(545);!function(t){t.FORE="fore",t.MID="mid",t.BG="bg"}(i||(i={})),function(t){t.TOP="top",t.TOP_LEFT="top-left",t.TOP_RIGHT="top-right",t.RIGHT="right",t.RIGHT_TOP="right-top",t.RIGHT_BOTTOM="right-bottom",t.LEFT="left",t.LEFT_TOP="left-top",t.LEFT_BOTTOM="left-bottom",t.BOTTOM="bottom",t.BOTTOM_LEFT="bottom-left",t.BOTTOM_RIGHT="bottom-right",t.RADIUS="radius",t.CIRCLE="circle",t.NONE="none"}(o||(o={})),function(t){t.AXIS="axis",t.GRID="grid",t.LEGEND="legend",t.TOOLTIP="tooltip",t.ANNOTATION="annotation",t.SLIDER="slider",t.SCROLLBAR="scrollbar",t.OTHER="other"}(a||(a={}));var l,u,h,d,f=3,p=2,g=1;!function(t){t.BEFORE_RENDER="beforerender",t.AFTER_RENDER="afterrender",t.BEFORE_PAINT="beforepaint",t.AFTER_PAINT="afterpaint",t.BEFORE_CHANGE_DATA="beforechangedata",t.AFTER_CHANGE_DATA="afterchangedata",t.BEFORE_CLEAR="beforeclear",t.AFTER_CLEAR="afterclear",t.BEFORE_DESTROY="beforedestroy",t.BEFORE_CHANGE_SIZE="beforechangesize",t.AFTER_CHANGE_SIZE="afterchangesize"}(l||(l={})),function(t){t.BEFORE_DRAW_ANIMATE="beforeanimate",t.AFTER_DRAW_ANIMATE="afteranimate",t.BEFORE_RENDER_LABEL="beforerenderlabel",t.AFTER_RENDER_LABEL="afterrenderlabel"}(u||(u={})),function(t){t.MOUSE_ENTER="plot:mouseenter",t.MOUSE_DOWN="plot:mousedown",t.MOUSE_MOVE="plot:mousemove",t.MOUSE_UP="plot:mouseup",t.MOUSE_LEAVE="plot:mouseleave",t.TOUCH_START="plot:touchstart",t.TOUCH_MOVE="plot:touchmove",t.TOUCH_END="plot:touchend",t.TOUCH_CANCEL="plot:touchcancel",t.CLICK="plot:click",t.DBLCLICK="plot:dblclick",t.CONTEXTMENU="plot:contextmenu",t.LEAVE="plot:leave",t.ENTER="plot:enter"}(h||(h={})),function(t){t.ACTIVE="active",t.INACTIVE="inactive",t.SELECTED="selected",t.DEFAULT="default"}(d||(d={}));var v=["color","shape","size"],y={};function m(t,e){y[t]=e}var b=n(564);function x(t){return"number"==typeof t&&!isNaN(t)}function O(t,e,n,r){var i=n,o=r;if(e){var a=function(t){var e=getComputedStyle(t);return{width:(t.clientWidth||parseInt(e.width,10))-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10),height:(t.clientHeight||parseInt(e.height,10))-parseInt(e.paddingTop,10)-parseInt(e.paddingBottom,10)}}(t);i=a.width?a.width:i,o=a.height?a.height:o}return{width:Math.max(x(i)?i:1,1),height:Math.max(x(o)?o:1,1)}}var j=n(604),w=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=e.visible,i=void 0===r||r;return n.visible=i,n}return Object(s.c)(e,t),e.prototype.show=function(){this.visible||this.changeVisible(!0)},e.prototype.hide=function(){this.visible&&this.changeVisible(!1)},e.prototype.destroy=function(){this.off(),this.destroyed=!0},e.prototype.changeVisible=function(t){this.visible!==t&&(this.visible=t)},e}(j.a),C=n(549),_=n(573),M=function(t,e){return Object(c.Q)(e)?e:t.invert(t.scale(e))},S=function(){function t(t){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(t)}return t.prototype.mapping=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e.map((function(e,n){return t._toOriginParam(e,t.scales[n])}));return this.callback.apply(this,r)},t.prototype.getLinearValue=function(t){var e=this.values.length-1,n=Math.floor(e*t),r=e*t-n,i=this.values[n];return i+((n===e?i:this.values[n+1])-i)*r},t.prototype.getNames=function(){for(var t=this.scales,e=this.names,n=Math.min(t.length,e.length),r=[],i=0;i<n;i+=1)r.push(e[i]);return r},t.prototype.getFields=function(){return this.scales.map((function(t){return t.field}))},t.prototype.getScale=function(t){return this.scales[this.names.indexOf(t)]},t.prototype.defaultCallback=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 0===e.length?this.values:e.map((function(e,n){var r=t.scales[n];return"identity"===r.type?r.values[0]:t._getAttributeValue(r,e)}))},t.prototype._parseCfg=function(t){var e=this,n=t.type,r=void 0===n?"base":n,i=t.names,o=void 0===i?[]:i,a=t.scales,s=void 0===a?[]:a,l=t.values,u=void 0===l?[]:l,h=t.callback;this.type=r,this.scales=s,this.values=u,this.names=o,this.callback=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(h){var r=h.apply(void 0,t);if(!Object(c.K)(r))return[r]}return e.defaultCallback.apply(e,t)}},t.prototype._getAttributeValue=function(t,e){if(t.isCategory&&!this.linear){var n=t.translate(e);return this.values[n%this.values.length]}var r=t.scale(e);return this.getLinearValue(r)},t.prototype._toOriginParam=function(t,e){return e.isLinear?t:Object(c.C)(t)?t.map((function(t){return M(e,t)})):M(e,t)},t}(),E=n(574),k=function(t){function e(e){var n=t.call(this,e)||this;return n.type="color",n.names=["color"],Object(c.Q)(n.values)&&(n.linear=!0),n.gradient=E.a.gradient(n.values),n}return Object(s.c)(e,t),e.prototype.getLinearValue=function(t){return this.gradient(t)},e}(S),I=function(t){function e(e){var n=t.call(this,e)||this;return n.type="opacity",n.names=["opacity"],n}return Object(s.c)(e,t),e}(S),A=function(t){function e(e){var n=t.call(this,e)||this;return n.names=["x","y"],n.type="position",n}return Object(s.c)(e,t),e.prototype.mapping=function(t,e){var n=this.scales,r=n[0],i=n[1];return Object(c.K)(t)||Object(c.K)(e)?[]:[Object(c.C)(t)?t.map((function(t){return r.scale(t)})):r.scale(t),Object(c.C)(e)?e.map((function(t){return i.scale(t)})):i.scale(e)]},e}(S),P=function(t){function e(e){var n=t.call(this,e)||this;return n.type="shape",n.names=["shape"],n}return Object(s.c)(e,t),e.prototype.getLinearValue=function(t){var e=Math.round((this.values.length-1)*t);return this.values[e]},e}(S),T=function(t){function e(e){var n=t.call(this,e)||this;return n.type="size",n.names=["size"],n}return Object(s.c)(e,t),e}(S),B=n(565),L={},D=function(t){return L[t.toLowerCase()]},F=function(t,e){if(D(t))throw new Error("Attribute type '".concat(t,"' existed."));L[t.toLowerCase()]=e};F("Color",k),F("Opacity",I),F("Position",A),F("Shape",P),F("Size",T);var R=n(551),N=function(){function t(t){this.type="coordinate",this.isRect=!1,this.isHelix=!1,this.isPolar=!1,this.isReflectX=!1,this.isReflectY=!1;var e=t.start,n=t.end,r=t.matrix,i=void 0===r?[1,0,0,0,1,0,0,0,1]:r,o=t.isTransposed,a=void 0!==o&&o;this.start=e,this.end=n,this.matrix=i,this.originalMatrix=Object(s.g)([],i),this.isTransposed=a}return t.prototype.initial=function(){this.center={x:(this.start.x+this.end.x)/2,y:(this.start.y+this.end.y)/2},this.width=Math.abs(this.end.x-this.start.x),this.height=Math.abs(this.end.y-this.start.y)},t.prototype.update=function(t){Object(c.b)(this,t),this.initial()},t.prototype.convertDim=function(t,e){var n,r=this[e],i=r.start,o=r.end;return this.isReflect(e)&&(i=(n=[o,i])[0],o=n[1]),i+t*(o-i)},t.prototype.invertDim=function(t,e){var n,r=this[e],i=r.start,o=r.end;return this.isReflect(e)&&(i=(n=[o,i])[0],o=n[1]),(t-i)/(o-i)},t.prototype.applyMatrix=function(t,e,n){void 0===n&&(n=0);var r=this.matrix,i=[t,e,n];return R.d.transformMat3(i,i,r),i},t.prototype.invertMatrix=function(t,e,n){void 0===n&&(n=0);var r=this.matrix,i=R.b.invert([0,0,0,0,0,0,0,0,0],r),o=[t,e,n];return i&&R.d.transformMat3(o,o,i),o},t.prototype.convert=function(t){var e=this.convertPoint(t),n=e.x,r=e.y,i=this.applyMatrix(n,r,1);return{x:i[0],y:i[1]}},t.prototype.invert=function(t){var e=this.invertMatrix(t.x,t.y,1);return this.invertPoint({x:e[0],y:e[1]})},t.prototype.rotate=function(t){var e=this.matrix,n=this.center;return R.a.leftTranslate(e,e,[-n.x,-n.y]),R.a.leftRotate(e,e,t),R.a.leftTranslate(e,e,[n.x,n.y]),this},t.prototype.reflect=function(t){return"x"===t?this.isReflectX=!this.isReflectX:this.isReflectY=!this.isReflectY,this},t.prototype.scale=function(t,e){var n=this.matrix,r=this.center;return R.a.leftTranslate(n,n,[-r.x,-r.y]),R.a.leftScale(n,n,[t,e]),R.a.leftTranslate(n,n,[r.x,r.y]),this},t.prototype.translate=function(t,e){var n=this.matrix;return R.a.leftTranslate(n,n,[t,e]),this},t.prototype.transpose=function(){return this.isTransposed=!this.isTransposed,this},t.prototype.getCenter=function(){return this.center},t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.getRadius=function(){return this.radius},t.prototype.isReflect=function(t){return"x"===t?this.isReflectX:this.isReflectY},t.prototype.resetMatrix=function(t){this.matrix=t||Object(s.g)([],this.originalMatrix)},t}(),z=function(t){function e(e){var n=t.call(this,e)||this;return n.isRect=!0,n.type="cartesian",n.initial(),n}return Object(s.c)(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);var e=this.start,n=this.end;this.x={start:e.x,end:n.x},this.y={start:e.y,end:n.y}},e.prototype.convertPoint=function(t){var e,n=t.x,r=t.y;return this.isTransposed&&(n=(e=[r,n])[0],r=e[1]),{x:this.convertDim(n,"x"),y:this.convertDim(r,"y")}},e.prototype.invertPoint=function(t){var e,n=this.invertDim(t.x,"x"),r=this.invertDim(t.y,"y");return this.isTransposed&&(n=(e=[r,n])[0],r=e[1]),{x:n,y:r}},e}(N),W=function(t){function e(e){var n=t.call(this,e)||this;n.isHelix=!0,n.type="helix";var r=e.startAngle,i=void 0===r?1.25*Math.PI:r,o=e.endAngle,a=void 0===o?7.25*Math.PI:o,s=e.innerRadius,c=void 0===s?0:s,l=e.radius;return n.startAngle=i,n.endAngle=a,n.innerRadius=c,n.radius=l,n.initial(),n}return Object(s.c)(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);var e=(this.endAngle-this.startAngle)/(2*Math.PI)+1,n=Math.min(this.width,this.height)/2;this.radius&&this.radius>=0&&this.radius<=1&&(n*=this.radius),this.d=Math.floor(n*(1-this.innerRadius)/e),this.a=this.d/(2*Math.PI),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*n,end:this.innerRadius*n+.99*this.d}},e.prototype.convertPoint=function(t){var e,n=t.x,r=t.y;this.isTransposed&&(n=(e=[r,n])[0],r=e[1]);var i=this.convertDim(n,"x"),o=this.a*i,a=this.convertDim(r,"y");return{x:this.center.x+Math.cos(i)*(o+a),y:this.center.y+Math.sin(i)*(o+a)}},e.prototype.invertPoint=function(t){var e,n=this.d+this.y.start,r=R.c.subtract([0,0],[t.x,t.y],[this.center.x,this.center.y]),i=R.a.angleTo(r,[1,0],!0),o=i*this.a;R.c.length(r)<o&&(o=R.c.length(r)),i=2*Math.floor((R.c.length(r)-o)/n)*Math.PI+i;var a=this.a*i,s=R.c.length(r)-a;s=Object(c.N)(s,0)?0:s;var l=this.invertDim(i,"x"),u=this.invertDim(s,"y");return l=Object(c.N)(l,0)?0:l,u=Object(c.N)(u,0)?0:u,this.isTransposed&&(l=(e=[u,l])[0],u=e[1]),{x:l,y:u}},e}(N),$=function(t){function e(e){var n=t.call(this,e)||this;n.isPolar=!0,n.type="polar";var r=e.startAngle,i=void 0===r?-Math.PI/2:r,o=e.endAngle,a=void 0===o?3*Math.PI/2:o,s=e.innerRadius,c=void 0===s?0:s,l=e.radius;return n.startAngle=i,n.endAngle=a,n.innerRadius=c,n.radius=l,n.initial(),n}return Object(s.c)(e,t),e.prototype.initial=function(){for(t.prototype.initial.call(this);this.endAngle<this.startAngle;)this.endAngle+=2*Math.PI;var e,n=this.getOneBox(),r=n.maxX-n.minX,i=n.maxY-n.minY,o=Math.abs(n.minX)/r,a=Math.abs(n.minY)/i;this.height/i>this.width/r?(e=this.width/r,this.circleCenter={x:this.center.x-(.5-o)*this.width,y:this.center.y-(.5-a)*e*i}):(e=this.height/i,this.circleCenter={x:this.center.x-(.5-o)*e*r,y:this.center.y-(.5-a)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=e*this.radius:(this.radius<=0||this.radius>e)&&(this.polarRadius=e):this.polarRadius=e,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},e.prototype.getRadius=function(){return this.polarRadius},e.prototype.convertPoint=function(t){var e,n=this.getCenter(),r=t.x,i=t.y;return this.isTransposed&&(r=(e=[i,r])[0],i=e[1]),r=this.convertDim(r,"x"),i=this.convertDim(i,"y"),{x:n.x+Math.cos(r)*i,y:n.y+Math.sin(r)*i}},e.prototype.invertPoint=function(t){var e,n=this.getCenter(),r=[t.x-n.x,t.y-n.y],i=this.startAngle,o=this.endAngle;this.isReflect("x")&&(i=(e=[o,i])[0],o=e[1]);var a=[1,0,0,0,1,0,0,0,1];R.a.leftRotate(a,a,i);var s=[1,0,0];R.d.transformMat3(s,s,a);var l=[s[0],s[1]],u=R.a.angleTo(l,r,o<i);Object(c.N)(u,2*Math.PI)&&(u=0);var h=R.c.length(r),d=u/(o-i);d=o-i>0?d:-d;var f=this.invertDim(h,"y"),p={x:0,y:0};return p.x=this.isTransposed?f:d,p.y=this.isTransposed?d:f,p},e.prototype.getCenter=function(){return this.circleCenter},e.prototype.getOneBox=function(){var t=this.startAngle,e=this.endAngle;if(Math.abs(e-t)>=2*Math.PI)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var n=[0,Math.cos(t),Math.cos(e)],r=[0,Math.sin(t),Math.sin(e)],i=Math.min(t,e);i<Math.max(t,e);i+=Math.PI/18)n.push(Math.cos(i)),r.push(Math.sin(i));return{minX:Math.min.apply(Math,n),maxX:Math.max.apply(Math,n),minY:Math.min.apply(Math,r),maxY:Math.max.apply(Math,r)}},e}(N),H={},Y=function(t,e){H[t.toLowerCase()]=e};Y("rect",z),Y("cartesian",z),Y("polar",$),Y("helix",W);var V=n(555),G=V.Axis.Line,K=V.Axis.Circle,X=V.Grid.Line,U=V.Grid.Circle,q=V.Legend.Category,Z=V.Legend.Continuous,Q=V.Tooltip.Html;function J(t){return 1===Array.from(new Set(t)).length}function tt(t){return(Object(c.bb)(t)+Object(c.Y)(t))/2}function et(t,e,n,r){return{x:t+n*Math.cos(r),y:e+n*Math.sin(r)}}function nt(t,e,n,r,i,o){void 0===o&&(o=0);var a=et(t,e,n,r),s=et(t,e,n,i),c=et(t,e,o,r),l=et(t,e,o,i);if(i-r==2*Math.PI){var u=et(t,e,n,r+Math.PI),h=et(t,e,o,r+Math.PI),d=[["M",a.x,a.y],["A",n,n,0,1,1,u.x,u.y],["A",n,n,0,1,1,s.x,s.y],["M",c.x,c.y]];return o&&(d.push(["A",o,o,0,1,0,h.x,h.y]),d.push(["A",o,o,0,1,0,l.x,l.y])),d.push(["M",a.x,a.y]),d.push(["Z"]),d}var f=i-r<=Math.PI?0:1,p=[["M",a.x,a.y],["A",n,n,0,f,1,s.x,s.y],["L",l.x,l.y]];return o&&p.push(["A",o,o,0,f,0,c.x,c.y]),p.push(["L",a.x,a.y]),p.push(["Z"]),p}function rt(t,e,n,r,i){var o=et(t,e,n,r),a=et(t,e,n,i);if(Object(c.N)(i-r,2*Math.PI)){var s=et(t,e,n,r+Math.PI);return[["M",o.x,o.y],["A",n,n,0,1,1,s.x,s.y],["A",n,n,0,1,1,o.x,o.y],["A",n,n,0,1,0,s.x,s.y],["A",n,n,0,1,0,o.x,o.y],["Z"]]}var l=i-r<=Math.PI?0:1;return[["M",o.x,o.y],["A",n,n,0,l,1,a.x,a.y]]}function it(t,e){var n,r,i=function(t){if(Object(c.G)(t))return null;var e=t[0].x,n=t[0].x,r=t[0].y,i=t[0].y;return Object(c.j)(t,(function(t){e=e>t.x?t.x:e,n=n<t.x?t.x:n,r=r>t.y?t.y:r,i=i<t.y?t.y:i})),{minX:e,maxX:n,minY:r,maxY:i,centerX:(e+n)/2,centerY:(r+i)/2}}(t.points),o=e.startAngle,a=e.endAngle-o;return e.isTransposed?(n=i.maxY*a,r=i.minY*a):(n=i.maxX*a,r=i.minX*a),{startAngle:r+=o,endAngle:n+=o}}function ot(t,e){var n=t.attr(),r=e.attr();return Object(c.j)(n,(function(t,e){void 0===r[e]&&(r[e]=void 0)})),r}function at(t,e,n){var r=Math.min(e,n),i=Math.max(e,n);return t>=r&&t<=i}function st(t,e){return"object"==typeof t&&e.forEach((function(e){delete t[e]})),t}function ct(t,e,n){var r,i;void 0===e&&(e=[]),void 0===n&&(n=new Map);try{for(var o=Object(s.i)(t),a=o.next();!a.done;a=o.next()){var c=a.value;n.has(c)||(e.push(c),n.set(c,!0))}}catch(t){r={error:t}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return e}var lt=function(){function t(t,e,n,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),this.x=t,this.y=e,this.height=r,this.width=n}return t.fromRange=function(e,n,r,i){return new t(e,n,r-e,i-n)},t.fromObject=function(e){return new t(e.minX,e.minY,e.width,e.height)},Object.defineProperty(t.prototype,"minX",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxX",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minY",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxY",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tl",{get:function(){return{x:this.x,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tr",{get:function(){return{x:this.maxX,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bl",{get:function(){return{x:this.x,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"br",{get:function(){return{x:this.maxX,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return{x:this.x+this.width/2,y:this.minY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return{x:this.maxX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return{x:this.x+this.width/2,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return{x:this.minX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height},t.prototype.contains=function(t){return t.minX>=this.minX&&t.maxX<=this.maxX&&t.minY>=this.minY&&t.maxY<=this.maxY},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.add=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.clone();return Object(c.j)(t,(function(t){n.x=Math.min(t.x,n.x),n.y=Math.min(t.y,n.y),n.width=Math.max(t.maxX,n.maxX)-n.x,n.height=Math.max(t.maxY,n.maxY)-n.y})),n},t.prototype.merge=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.clone();return Object(c.j)(t,(function(t){n.x=Math.max(t.x,n.x),n.y=Math.max(t.y,n.y),n.width=Math.min(t.maxX,n.maxX)-n.x,n.height=Math.min(t.maxY,n.maxY)-n.y})),n},t.prototype.cut=function(e,n){var r=e.width,i=e.height;switch(n){case o.TOP:case o.TOP_LEFT:case o.TOP_RIGHT:return t.fromRange(this.minX,this.minY+i,this.maxX,this.maxY);case o.RIGHT:case o.RIGHT_TOP:case o.RIGHT_BOTTOM:return t.fromRange(this.minX,this.minY,this.maxX-r,this.maxY);case o.BOTTOM:case o.BOTTOM_LEFT:case o.BOTTOM_RIGHT:return t.fromRange(this.minX,this.minY,this.maxX,this.maxY-i);case o.LEFT:case o.LEFT_TOP:case o.LEFT_BOTTOM:return t.fromRange(this.minX+r,this.minY,this.maxX,this.maxY);default:return this}},t.prototype.shrink=function(e){var n=Object(s.e)(e,4),r=n[0],i=n[1],o=n[2],a=n[3];return new t(this.x+a,this.y+r,this.width-a-i,this.height-r-o)},t.prototype.expand=function(e){var n=Object(s.e)(e,4),r=n[0],i=n[1],o=n[2],a=n[3];return new t(this.x-a,this.y-r,this.width+a+i,this.height+r+o)},t.prototype.exceed=function(t){return[Math.max(-this.minY+t.minY,0),Math.max(this.maxX-t.maxX,0),Math.max(this.maxY-t.maxY,0),Math.max(-this.minX+t.minX,0)]},t.prototype.collide=function(t){return this.minX<t.maxX&&this.maxX>t.minX&&this.minY<t.maxY&&this.maxY>t.minY},t.prototype.size=function(){return this.width*this.height},t.prototype.isPointIn=function(t){return t.x>=this.minX&&t.x<=this.maxX&&t.y>=this.minY&&t.y<=this.maxY},t}();function ut(t){if(t.isPolar&&!t.isTransposed)return(t.endAngle-t.startAngle)*t.getRadius();var e=t.convert({x:0,y:0}),n=t.convert({x:1,y:0});return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function ht(t,e){var n=t.getCenter();return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function dt(t,e){var n=t.getCenter();return Math.atan2(e.y-n.y,e.x-n.x)}function ft(t,e){void 0===e&&(e=0);var n,r=t.start,i=t.end,o=t.getWidth(),a=t.getHeight();if(t.isPolar){var s=t.startAngle,c=t.endAngle,l=t.getCenter(),u=t.getRadius();return{type:"path",startState:{path:nt(l.x,l.y,u+e,s,s)},endState:function(t){var n=(c-s)*t+s;return{path:nt(l.x,l.y,u+e,s,n)}},attrs:{path:nt(l.x,l.y,u+e,s,c)}}}return n=t.isTransposed?{height:a+2*e}:{width:o+2*e},{type:"rect",startState:{x:r.x-e,y:i.y-e,width:t.isTransposed?o+2*e:0,height:t.isTransposed?0:a+2*e},endState:n,attrs:{x:r.x-e,y:i.y-e,width:o+2*e,height:a+2*e}}}var pt=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/;function gt(t,e,n,r){return void 0===e&&(e={}),e.type?e.type:"identity"!==t.type&&v.includes(n)&&["interval"].includes(r)||t.isCategory?"cat":t.type}function vt(t,e,n){var r=e||[];if(Object(c.M)(t)||Object(c.K)(Object(c.o)(r,t))&&Object(c.G)(n))return new(Object(B.c)("identity"))({field:t.toString(),values:[t]});var i=Object(c.yb)(r,t),o=Object(c.s)(n,"type",function(t){var e="linear";return pt.test(t)?e="timeCat":Object(c.Q)(t)&&(e="cat"),e}(i[0]));return new(Object(B.c)(o))(Object(s.a)({field:t,values:i},n))}function yt(t){return t.alias||t.field}function mt(t,e,n){var r,i=t.values.length;if(1===i)r=[.5,1];else{var o=0;r=function(t){if(t.isPolar){var e=t.startAngle;return t.endAngle-e==2*Math.PI}return!1}(e)?e.isTransposed?[(o=1/i*Object(c.s)(n,"widthRatio.multiplePie",1/1.3))/2,1-o/2]:[0,1-1/i]:[o=1/i/2,1-o]}return r}function bt(t,e){var n={start:{x:0,y:0},end:{x:0,y:0}};t.isRect?n=function(t){var e,n;switch(t){case o.TOP:e={x:0,y:1},n={x:1,y:1};break;case o.RIGHT:e={x:1,y:0},n={x:1,y:1};break;case o.BOTTOM:e={x:0,y:0},n={x:1,y:0};break;case o.LEFT:e={x:0,y:0},n={x:0,y:1};break;default:e=n={x:0,y:0}}return{start:e,end:n}}(e):t.isPolar&&(n=function(t){var e,n;return t.isTransposed?(e={x:0,y:0},n={x:1,y:0}):(e={x:0,y:0},n={x:0,y:1}),{start:e,end:n}}(t));var r=n.start,i=n.end;return{start:t.convert(r),end:t.convert(i)}}function xt(t){var e=t.start,n=t.end;return e.x===n.x}function Ot(t,e){var n=t.start,r=t.end;return xt(t)?(n.y-r.y)*(e.x-n.x)>0?1:-1:(r.x-n.x)*(n.y-e.y)>0?-1:1}function jt(t,e){var n=Object(c.s)(t,["components","axis"],{});return Object(c.h)({},Object(c.s)(n,["common"],{}),Object(c.h)({},Object(c.s)(n,[e],{})))}function wt(t,e,n){var r=Object(c.s)(t,["components","axis"],{});return Object(c.h)({},Object(c.s)(r,["common","title"],{}),Object(c.h)({},Object(c.s)(r,[e,"title"],{})),n)}function Ct(t){var e=t.x,n=t.y,r=t.circleCenter,i=n.start>n.end,o=t.isTransposed?t.convert({x:i?0:1,y:0}):t.convert({x:0,y:i?0:1}),a=[o.x-r.x,o.y-r.y],s=[1,0],c=o.y>r.y?R.c.angle(a,s):-1*R.c.angle(a,s),l=c+(e.end-e.start);return{center:r,radius:Math.sqrt(Math.pow(o.x-r.x,2)+Math.pow(o.y-r.y,2)),startAngle:c,endAngle:l}}function _t(t,e){return Object(c.D)(t)?!1!==t&&{}:Object(c.s)(t,[e])}function Mt(t,e){return Object(c.s)(t,"position",e)}function St(t,e){return Object(c.s)(e,["title","text"],yt(t))}var Et=function(){function t(t,e){this.destroyed=!1,this.facets=[],this.view=t,this.cfg=Object(c.h)({},this.getDefaultCfg(),e)}return t.prototype.init=function(){this.container||(this.container=this.createContainer());var t=this.view.getData();this.facets=this.generateFacets(t)},t.prototype.render=function(){this.renderViews()},t.prototype.update=function(){},t.prototype.clear=function(){this.clearFacetViews()},t.prototype.destroy=function(){this.clear(),this.container&&(this.container.remove(!0),this.container=void 0),this.destroyed=!0,this.view=void 0,this.facets=[]},t.prototype.facetToView=function(t){var e=t.region,n=t.data,r=t.padding,i=void 0===r?this.cfg.padding:r,o=this.view.createView({region:e,padding:i});o.data(n||[]),t.view=o,this.beforeEachView(o,t);var a=this.cfg.eachView;return a&&a(o,t),this.afterEachView(o,t),o},t.prototype.createContainer=function(){return this.view.getLayer(i.FORE).addGroup()},t.prototype.renderViews=function(){this.createFacetViews()},t.prototype.createFacetViews=function(){var t=this;return this.facets.map((function(e){return t.facetToView(e)}))},t.prototype.clearFacetViews=function(){var t=this;Object(c.j)(this.facets,(function(e){e.view&&(t.view.removeView(e.view),e.view=void 0)}))},t.prototype.parseSpacing=function(){var t=this.view.viewBBox,e=t.width,n=t.height;return this.cfg.spacing.map((function(t,r){return Object(c.M)(t)?t/(0===r?e:n):parseFloat(t)/100}))},t.prototype.getFieldValues=function(t,e){var n=[],r={};return Object(c.j)(t,(function(t){var i=t[e];Object(c.K)(i)||r[i]||(n.push(i),r[i]=!0)})),n},t.prototype.getRegion=function(t,e,n,r){var i=Object(s.e)(this.parseSpacing(),2),o=i[0],a=i[1],c=(1+o)/(0===e?1:e)-o,l=(1+a)/(0===t?1:t)-a,u={x:(c+o)*n,y:(l+a)*r};return{start:u,end:{x:u.x+c,y:u.y+l}}},t.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,spacing:[0,0],padding:10,fields:[]}},t.prototype.getDefaultTitleCfg=function(){return{style:{fontSize:14,fill:"#666",fontFamily:this.view.getTheme().fontFamily}}},t.prototype.processAxis=function(t,e){var n=t.getOptions(),r=n.coordinate,i=t.geometries;if("rect"===Object(c.s)(r,"type","rect")&&i.length){Object(c.K)(n.axes)&&(n.axes={});var o=n.axes,a=Object(s.e)(i[0].getXYFields(),2),l=a[0],u=a[1],h=_t(o,l),d=_t(o,u);!1!==h&&(n.axes[l]=this.getXAxisOption(l,o,h,e)),!1!==d&&(n.axes[u]=this.getYAxisOption(u,o,d,e))}},t.prototype.getFacetDataFilter=function(t){return function(e){return Object(c.k)(t,(function(t){var n=t.field,r=t.value;return!(!Object(c.K)(r)&&n)||e[n]===r}))}},t}(),kt={},It=function(t,e){kt[Object(c.V)(t)]=e},At=function(){function t(t,e){this.context=t,this.cfg=e,t.addAction(this)}return t.prototype.applyCfg=function(t){Object(c.b)(this,t)},t.prototype.init=function(){this.applyCfg(this.cfg)},t.prototype.destroy=function(){this.context.removeAction(this),this.context=null},t}(),Pt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.execute=function(){this.callback&&this.callback(this.context)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.callback=null},e}(At),Tt={};function Bt(t){var e=Tt[t];return Object(c.s)(e,"ActionClass")}function Lt(t,e,n){Tt[t]={ActionClass:e,cfg:n}}function Dt(t,e){var n=new Pt(e);return n.callback=t,n.name="callback",n}function Ft(t,e){for(var n=[t[0]],r=1,i=t.length;r<i;r+=2){var o=e.convert({x:t[r],y:t[r+1]});n.push(o.x,o.y)}return n}function Rt(t,e){var n=e.isTransposed,r=t[1],i=t[6],o=t[7],a=e.convert({x:i,y:o});return["A",r,r,0,0,n?0:1,a.x,a.y]}function Nt(t,e,n){for(var r=!!e,i=[],o=0,a=t.length;o<a;o+=2)i.push([t[o],t[o+1]]);var c,l,u,h=function(t,e,n,r){var i,o,a,c,l,u,h,d,f=[],p=!!r;if(p){c=(i=Object(s.e)(r,2))[0],l=i[1];for(var g=0,v=t.length;g<v;g++){var y=t[g];c=R.c.min([0,0],c,y),l=R.c.max([0,0],l,y)}}g=0;for(var m=t.length;g<m;g++){y=t[g];if(0!==g||n)if(g!==m-1||n){o=t[n?g?g-1:m-1:g-1],a=t[n?(g+1)%m:g+1];var b=[0,0];b=R.c.sub(b,a,o),b=R.c.scale(b,b,e);var x=R.c.distance(y,o),O=R.c.distance(y,a),j=x+O;0!==j&&(x/=j,O/=j);var w=R.c.scale([0,0],b,-x),C=R.c.scale([0,0],b,O);h=R.c.add([0,0],y,w),u=R.c.add([0,0],y,C),u=R.c.min([0,0],u,R.c.max([0,0],a,y)),u=R.c.max([0,0],u,R.c.min([0,0],a,y)),w=R.c.sub([0,0],u,y),w=R.c.scale([0,0],w,-x/O),h=R.c.add([0,0],y,w),h=R.c.min([0,0],h,R.c.max([0,0],o,y)),h=R.c.max([0,0],h,R.c.min([0,0],o,y)),C=R.c.sub([0,0],y,h),C=R.c.scale([0,0],C,O/x),u=R.c.add([0,0],y,C),p&&(h=R.c.max([0,0],h,c),h=R.c.min([0,0],h,l),u=R.c.max([0,0],u,c),u=R.c.min([0,0],u,l)),f.push(d),f.push(h),d=u}else h=y,f.push(d),f.push(h);else d=y}return n&&f.push(f.shift()),f}(i,.4,r,n),d=i.length,f=[];for(o=0;o<d-1;o++)c=h[2*o],l=h[2*o+1],u=i[o+1],f.push(["C",c[0],c[1],l[0],l[1],u[0],u[1]]);return r&&(c=h[d],l=h[d+1],u=i[0],f.push(["C",c[0],c[1],l[0],l[1],u[0],u[1]])),f}function zt(t,e){return function(t,e){var n=[];if(t.length){n.push(["M",t[0].x,t[0].y]);for(var r=1,i=t.length;r<i;r+=1){var o=t[r];n.push(["L",o.x,o.y])}e&&n.push(["Z"])}return n}(t,e)}function Wt(t,e,n){var r=[],i=t[0],o=null;if(t.length<=2)return zt(t,e);for(var a=0,s=t.length;a<s;a++){var c=t[a];o&&o.x===c.x&&o.y===c.y||(r.push(c.x),r.push(c.y),o=c)}var l=Nt(r,e,n||[[0,0],[1,1]]);return l.unshift(["M",i.x,i.y]),l}function $t(t,e){var n,r,i,o=[];return Object(c.j)(e,(function(a,s){switch(a[0].toLowerCase()){case"m":case"c":case"q":o.push(Ft(a,t));break;case"l":n=e[s-1],r=a,i=t.isTransposed,(i?n[n.length-2]===r[1]:n[n.length-1]===r[2])?o=o.concat(function(t,e,n){var r=n.isTransposed,i=n.startAngle,o=n.endAngle,a="a"===t[0].toLowerCase()?{x:t[6],y:t[7]}:{x:t[1],y:t[2]},s={x:e[1],y:e[2]},c=[],l=r?"y":"x",u=Math.abs(s[l]-a[l])*(o-i),h=s[l]>=a[l]?1:0,d=u>Math.PI?1:0,f=n.convert(s),p=ht(n,f);if(p>=.5)if(u===2*Math.PI){var g={x:(s.x+a.x)/2,y:(s.y+a.y)/2},v=n.convert(g);c.push(["A",p,p,0,d,h,v.x,v.y]),c.push(["A",p,p,0,d,h,f.x,f.y])}else c.push(["A",p,p,0,d,h,f.x,f.y]);return c}(n,r,t)):o.push(Ft(a,t));break;case"a":o.push(Rt(a,t));break;case"z":default:o.push(a)}})),function(t){Object(c.j)(t,(function(e,n){if("a"===e[0].toLowerCase()){var r=t[n-1],i=t[n+1];i&&"a"===i[0].toLowerCase()?r&&"l"===r[0].toLowerCase()&&(r[0]="M"):r&&"a"===r[0].toLowerCase()&&i&&"l"===i[0].toLowerCase()&&(i[0]="M")}}))}(o),o}n(548);var Ht="\t\n\v\f\r \u2028\u2029",Yt=new RegExp("([a-z])["+Ht+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+Ht+"]*,?["+Ht+"]*)+)","ig"),Vt=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+Ht+"]*,?["+Ht+"]*","ig");function Gt(t){if(!t)return null;if(Object(c.C)(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(Yt,(function(t,r,i){var o=[],a=r.toLowerCase();if(i.replace(Vt,(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}Math.PI;var Kt=function(t,e,n){return t>=e&&t<=n};function Xt(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function Ut(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 qt(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(Ut(a,s,[e,n]))return!0;Xt(a[1]-n)>0!=Xt(s[1]-n)>0&&Xt(e-(n-a[1])*(a[0]-s[0])/(a[1]-s[1])-a[0])<0&&(r=!r)}return r}function Zt(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}function Qt(t,e){var n=!1;return Object(c.j)(t,(function(t){if(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,c=r.x-n.x,l=r.y-n.y,u=a*l-s*c,h=null;if(u*u>.001*(a*a+s*s)*(c*c+l*l)){var d=(i*l-o*c)/u,f=(i*s-o*a)/u;Kt(d,0,1)&&Kt(f,0,1)&&(h={x:t.x+d*a,y:t.y+d*s})}return h}(t.from,t.to,e.from,e.to))return n=!0,!1})),n}function Jt(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)}}function te(t,e){return ne(t.event.target,e)}function ee(t,e){var n=t.getCanvasBBox(),r=n.width,i=n.height;return r>0&&i>0&&(r>=e||i>=e)}function ne(t,e){var n=t.getCanvasBBox();return ee(t,e)?n:null}function re(t,e){return t.event.maskShapes.map((function(t){return ne(t,e)})).filter((function(t){return!!t}))}function ie(t,e){return ee(t,e)?t.attr("path"):null}function oe(t){var e,n=t.event.target;return n&&(e=n.get("element")),e}function ae(t){var e,n=t.event.target;return n&&(e=n.get("delegateObject")),e}function se(t){var e=t.event.gEvent;return!(e&&e.fromShape&&e.toShape&&e.fromShape.get("element")===e.toShape.get("element"))}function ce(t){return t&&t.component&&t.component.isList()}function le(t){return t&&t.component&&t.component.isSlider()}function ue(t){var e=t.event.target;return e&&"mask"===(null==e?void 0:e.get("name"))||he(t)}function he(t){var e;return"multi-mask"===(null===(e=t.event.target)||void 0===e?void 0:e.get("name"))}function de(t,e){var n=t.event.target;if(he(t))return function(t,e){if("path"===t.event.target.get("type")){var n=function(t,e){return t.event.maskShapes.map((function(t){return ie(t,e)}))}(t,e);return n.length>0?n.flatMap((function(e){return xe(t.view,e)})):null}var r=re(t,e);if(r.length>0)return r.flatMap((function(e){return me(t.view,e)}));return null}(t,e);if("path"===n.get("type")){var r=function(t,e){return ie(t.event.target,e)}(t,e);if(!r)return;return xe(t.view,r)}var i=te(t,e);return i?me(t.view,i):null}function fe(t,e,n){if(he(t))return function(t,e,n){var r=re(t,n);if(r.length>0)return r.flatMap((function(n){return pe(n,t,e)}));return null}(t,e,n);var r=te(t,n);return r?pe(r,t,e):null}function pe(t,e,n){var r=e.view,i=_e(r,n,{x:t.x,y:t.y}),o=_e(r,n,{x:t.maxX,y:t.maxY});return me(n,{minX:i.x,minY:i.y,maxX:o.x,maxY:o.y})}function ge(t){var e=t.geometries,n=[];return Object(c.j)(e,(function(t){var e=t.elements;n=n.concat(e)})),t.views&&t.views.length&&Object(c.j)(t.views,(function(t){n=n.concat(ge(t))})),n}function ve(t,e){var n=t.geometries,r=[];return Object(c.j)(n,(function(t){var n=t.getElementsBy((function(t){return t.hasState(e)}));r=r.concat(n)})),r}function ye(t,e){var n=t.getModel().data;return Object(c.C)(n)?n[0][e]:n[e]}function me(t,e){var n=ge(t),r=[];return Object(c.j)(n,(function(t){var n,i,o=t.shape.getCanvasBBox();n=e,(i=o).minX>n.maxX||i.maxX<n.minX||i.minY>n.maxY||i.maxY<n.minY||r.push(t)})),r}function be(t){var e=[];return Object(c.j)(t,(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}function xe(t,e){var n=ge(t),r=be(e);return n.filter((function(t){var e,n,i=t.shape;if("path"===i.get("type"))e=be(i.attr("path"));else{var o=i.getCanvasBBox();e=[[(n=o).minX,n.minY],[n.maxX,n.minY],[n.maxX,n.maxY],[n.minX,n.maxY]]}return function(t,e){if(t.length<2||e.length<2)return!1;var n,r,i=Jt(t),o=Jt(e);if(n=i,(r=o).minX>n.maxX||r.maxX<n.minX||r.minY>n.maxY||r.maxY<n.minY)return!1;var a=!1;if(Object(c.j)(e,(function(e){if(qt(t,e[0],e[1]))return a=!0,!1})),a)return!0;if(Object(c.j)(t,(function(t){if(qt(e,t[0],t[1]))return a=!0,!1})),a)return!0;var s=Zt(t),l=Zt(e),u=!1;return Object(c.j)(l,(function(t){if(Qt(s,t))return u=!0,!1})),u}(r,e)}))}function Oe(t){return t.getComponents().map((function(t){return t.component}))}function je(t,e){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function we(t,e){return t.x<=e.x&&t.maxX>=e.x&&t.y<=e.y&&t.maxY>e.y}function Ce(t){var e=t.parent,n=null;return e&&(n=e.views.filter((function(e){return e!==t}))),n}function _e(t,e,n){var r=function(t,e){return t.getCoordinate().invert(e)}(t,n);return e.getCoordinate().convert(r)}function Me(t,e,n,r){var i=!1;return Object(c.j)(t,(function(t){if(t[n]===e[n]&&t[r]===e[r])return i=!0,!1})),i}function Se(t,e){var n=t.getScaleByField(e);return!n&&t.views&&Object(c.j)(t.views,(function(t){if(n=Se(t,e))return!1})),n}var Ee=function(){function t(t){this.actions=[],this.event=null,this.cacheMap={},this.view=t}return t.prototype.cache=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length)return this.cacheMap[t[0]];2===t.length&&(this.cacheMap[t[0]]=t[1])},t.prototype.getAction=function(t){return this.actions.find((function(e){return e.name===t}))},t.prototype.addAction=function(t){this.actions.push(t)},t.prototype.removeAction=function(t){var e=this.actions,n=this.actions.indexOf(t);n>=0&&e.splice(n,1)},t.prototype.getCurrentPoint=function(){var t=this.event;return t?t.target instanceof HTMLElement?this.view.getCanvas().getPointByClient(t.clientX,t.clientY):{x:t.x,y:t.y}:null},t.prototype.getCurrentShape=function(){return Object(c.s)(this.event,["gEvent","shape"])},t.prototype.isInPlot=function(){var t=this.getCurrentPoint();return!!t&&this.view.isPointInPlot(t)},t.prototype.isInShape=function(t){var e=this.getCurrentShape();return!!e&&e.get("name")===t},t.prototype.isInComponent=function(t){var e=Oe(this.view),n=this.getCurrentPoint();return!!n&&!!e.find((function(e){var r=e.getBBox();return t?e.get("name")===t&&we(r,n):we(r,n)}))},t.prototype.destroy=function(){Object(c.j)(this.actions.slice(),(function(t){t.destroy()})),this.view=null,this.event=null,this.actions=null,this.cacheMap=null},t}(),ke=function(){function t(t,e){this.view=t,this.cfg=e}return t.prototype.init=function(){this.initEvents()},t.prototype.initEvents=function(){},t.prototype.clearEvents=function(){},t.prototype.destroy=function(){this.clearEvents()},t}();function Ie(t,e,n){var r=t.split(":"),i=r[0],o=e.getAction(i)||function(t,e){var n=Tt[t],r=null;return n&&((r=new(0,n.ActionClass)(e,n.cfg)).name=t,r.init()),r}(i,e);if(!o)throw new Error("There is no action named ".concat(i));return{action:o,methodName:r[1],arg:n}}function Ae(t){var e=t.action,n=t.methodName,r=t.arg;if(!e[n])throw new Error("Action(".concat(e.name,") doesn't have a method called ").concat(n));e[n](r)}var Pe="start",Te="showEnable",Be="end",Le="rollback",De="processing",Fe=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.callbackCaches={},r.emitCaches={},r.steps=n,r}return Object(s.c)(e,t),e.prototype.init=function(){this.initContext(),t.prototype.init.call(this)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.steps=null,this.context&&(this.context.destroy(),this.context=null),this.callbackCaches=null,this.view=null},e.prototype.initEvents=function(){var t=this;Object(c.j)(this.steps,(function(e,n){Object(c.j)(e,(function(e){var r=t.getActionCallback(n,e);r&&t.bindEvent(e.trigger,r)}))}))},e.prototype.clearEvents=function(){var t=this;Object(c.j)(this.steps,(function(e,n){Object(c.j)(e,(function(e){var r=t.getActionCallback(n,e);r&&t.offEvent(e.trigger,r)}))}))},e.prototype.initContext=function(){var t=this.view,e=new Ee(t);this.context=e;var n=this.steps;Object(c.j)(n,(function(t){Object(c.j)(t,(function(t){if(Object(c.I)(t.action))t.actionObject={action:Dt(t.action,e),methodName:"execute"};else if(Object(c.Q)(t.action))t.actionObject=Ie(t.action,e,t.arg);else if(Object(c.C)(t.action)){var n=t.action,r=Object(c.C)(t.arg)?t.arg:[t.arg];t.actionObject=[],Object(c.j)(n,(function(n,i){t.actionObject.push(Ie(n,e,r[i]))}))}}))}))},e.prototype.isAllowStep=function(t){var e=this.currentStepName,n=this.steps;if(e===t)return!0;if(t===Te)return!0;if(t===De)return e===Pe;if(t===Pe)return e!==De;if(t===Be)return e===De||e===Pe;if(t===Le){if(n[Be])return e===Be;if(e===Pe)return!0}return!1},e.prototype.isAllowExecute=function(t,e){if(this.isAllowStep(t)){var n=this.getKey(t,e);return(!e.once||!this.emitCaches[n])&&(!e.isEnable||e.isEnable(this.context))}return!1},e.prototype.enterStep=function(t){this.currentStepName=t,this.emitCaches={}},e.prototype.afterExecute=function(t,e){t!==Te&&this.currentStepName!==t&&this.enterStep(t);var n=this.getKey(t,e);this.emitCaches[n]=!0},e.prototype.getKey=function(t,e){return t+e.trigger+e.action},e.prototype.getActionCallback=function(t,e){var n=this,r=this.context,i=this.callbackCaches,o=e.actionObject;if(e.action&&o){var a=this.getKey(t,e);if(!i[a]){var s=function(i){r.event=i,n.isAllowExecute(t,e)?(Object(c.C)(o)?Object(c.j)(o,(function(t){r.event=i,Ae(t)})):(r.event=i,Ae(o)),n.afterExecute(t,e),e.callback&&(r.event=i,e.callback(r))):r.event=null};e.debounce?i[a]=Object(c.g)(s,e.debounce.wait,e.debounce.immediate):e.throttle?i[a]=Object(c.qb)(s,e.throttle.wait,{leading:e.throttle.leading,trailing:e.throttle.trailing}):i[a]=s}return i[a]}return null},e.prototype.bindEvent=function(t,e){var n=t.split(":");"window"===n[0]?window.addEventListener(n[1],e):"document"===n[0]?document.addEventListener(n[1],e):this.view.on(t,e)},e.prototype.offEvent=function(t,e){var n=t.split(":");"window"===n[0]?window.removeEventListener(n[1],e):"document"===n[0]?document.removeEventListener(n[1],e):this.view.off(t,e)},e}(ke),Re={};function Ne(t,e){Re[Object(c.V)(t)]=e}function ze(t,e,n){var r=function(t){return Re[Object(c.V)(t)]}(t);if(!r)return null;if(Object(c.P)(r)){var i=Object(c.db)(Object(c.e)(r),n);return new Fe(e,i)}return new r(e,n)}function We(t){var e,n={point:{default:{fill:t.pointFillColor,r:t.pointSize,stroke:t.pointBorderColor,lineWidth:t.pointBorder,fillOpacity:t.pointFillOpacity},active:{stroke:t.pointActiveBorderColor,lineWidth:t.pointActiveBorder},selected:{stroke:t.pointSelectedBorderColor,lineWidth:t.pointSelectedBorder},inactive:{fillOpacity:t.pointInactiveFillOpacity,strokeOpacity:t.pointInactiveBorderOpacity}},hollowPoint:{default:{fill:t.hollowPointFillColor,lineWidth:t.hollowPointBorder,stroke:t.hollowPointBorderColor,strokeOpacity:t.hollowPointBorderOpacity,r:t.hollowPointSize},active:{stroke:t.hollowPointActiveBorderColor,strokeOpacity:t.hollowPointActiveBorderOpacity},selected:{lineWidth:t.hollowPointSelectedBorder,stroke:t.hollowPointSelectedBorderColor,strokeOpacity:t.hollowPointSelectedBorderOpacity},inactive:{strokeOpacity:t.hollowPointInactiveBorderOpacity}},area:{default:{fill:t.areaFillColor,fillOpacity:t.areaFillOpacity,stroke:null},active:{fillOpacity:t.areaActiveFillOpacity},selected:{fillOpacity:t.areaSelectedFillOpacity},inactive:{fillOpacity:t.areaInactiveFillOpacity}},hollowArea:{default:{fill:null,stroke:t.hollowAreaBorderColor,lineWidth:t.hollowAreaBorder,strokeOpacity:t.hollowAreaBorderOpacity},active:{fill:null,lineWidth:t.hollowAreaActiveBorder},selected:{fill:null,lineWidth:t.hollowAreaSelectedBorder},inactive:{strokeOpacity:t.hollowAreaInactiveBorderOpacity}},interval:{default:{fill:t.intervalFillColor,fillOpacity:t.intervalFillOpacity},active:{stroke:t.intervalActiveBorderColor,lineWidth:t.intervalActiveBorder},selected:{stroke:t.intervalSelectedBorderColor,lineWidth:t.intervalSelectedBorder},inactive:{fillOpacity:t.intervalInactiveFillOpacity,strokeOpacity:t.intervalInactiveBorderOpacity}},hollowInterval:{default:{fill:t.hollowIntervalFillColor,stroke:t.hollowIntervalBorderColor,lineWidth:t.hollowIntervalBorder,strokeOpacity:t.hollowIntervalBorderOpacity},active:{stroke:t.hollowIntervalActiveBorderColor,lineWidth:t.hollowIntervalActiveBorder,strokeOpacity:t.hollowIntervalActiveBorderOpacity},selected:{stroke:t.hollowIntervalSelectedBorderColor,lineWidth:t.hollowIntervalSelectedBorder,strokeOpacity:t.hollowIntervalSelectedBorderOpacity},inactive:{stroke:t.hollowIntervalInactiveBorderColor,lineWidth:t.hollowIntervalInactiveBorder,strokeOpacity:t.hollowIntervalInactiveBorderOpacity}},line:{default:{stroke:t.lineBorderColor,lineWidth:t.lineBorder,strokeOpacity:t.lineBorderOpacity,fill:null,lineAppendWidth:10,lineCap:"round",lineJoin:"round"},active:{lineWidth:t.lineActiveBorder},selected:{lineWidth:t.lineSelectedBorder},inactive:{strokeOpacity:t.lineInactiveBorderOpacity}}},r=function(t){return{title:{autoRotate:!0,position:"center",spacing:t.axisTitleSpacing,style:{fill:t.axisTitleTextFillColor,fontSize:t.axisTitleTextFontSize,lineHeight:t.axisTitleTextLineHeight,textBaseline:"middle",fontFamily:t.fontFamily},iconStyle:{fill:t.axisDescriptionIconFillColor}},label:{autoRotate:!1,autoEllipsis:!1,autoHide:{type:"equidistance",cfg:{minGap:6}},offset:t.axisLabelOffset,style:{fill:t.axisLabelFillColor,fontSize:t.axisLabelFontSize,lineHeight:t.axisLabelLineHeight,fontFamily:t.fontFamily}},line:{style:{lineWidth:t.axisLineBorder,stroke:t.axisLineBorderColor}},grid:{line:{type:"line",style:{stroke:t.axisGridBorderColor,lineWidth:t.axisGridBorder,lineDash:t.axisGridLineDash}},alignTick:!0,animate:!0},tickLine:{style:{lineWidth:t.axisTickLineBorder,stroke:t.axisTickLineBorderColor},alignTick:!0,length:t.axisTickLineLength},subTickLine:null,animate:!0}}(t),i=function(t){return{title:null,marker:{symbol:"circle",spacing:t.legendMarkerSpacing,style:{r:t.legendCircleMarkerSize,fill:t.legendMarkerColor}},itemName:{spacing:5,style:{fill:t.legendItemNameFillColor,fontFamily:t.fontFamily,fontSize:t.legendItemNameFontSize,lineHeight:t.legendItemNameLineHeight,fontWeight:t.legendItemNameFontWeight,textAlign:"start",textBaseline:"middle"}},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:"#D8D8D8"},markerStyle:{fill:"#D8D8D8",stroke:"#D8D8D8"}},inactive:{nameStyle:{fill:"#D8D8D8"},markerStyle:{opacity:.2}}},flipPage:!0,pageNavigator:{marker:{style:{size:t.legendPageNavigatorMarkerSize,inactiveFill:t.legendPageNavigatorMarkerInactiveFillColor,inactiveOpacity:t.legendPageNavigatorMarkerInactiveFillOpacity,fill:t.legendPageNavigatorMarkerFillColor,opacity:t.legendPageNavigatorMarkerFillOpacity}},text:{style:{fill:t.legendPageNavigatorTextFillColor,fontSize:t.legendPageNavigatorTextFontSize}}},animate:!1,maxItemWidth:200,itemSpacing:t.legendItemSpacing,itemMarginBottom:t.legendItemMarginBottom,padding:t.legendPadding}}(t);return{background:t.backgroundColor,defaultColor:t.brandColor,subColor:t.subColor,semanticRed:t.paletteSemanticRed,semanticGreen:t.paletteSemanticGreen,padding:"auto",fontFamily:t.fontFamily,columnWidthRatio:.5,maxColumnWidth:null,minColumnWidth:null,roseWidthRatio:.9999999,multiplePieWidthRatio:1/1.3,colors10:t.paletteQualitative10,colors20:t.paletteQualitative20,sequenceColors:t.paletteSequence,shapes:{point:["hollow-circle","hollow-square","hollow-bowtie","hollow-diamond","hollow-hexagon","hollow-triangle","hollow-triangle-down","circle","square","bowtie","diamond","hexagon","triangle","triangle-down","cross","tick","plus","hyphen","line"],line:["line","dash","dot","smooth"],area:["area","smooth","line","smooth-line"],interval:["rect","hollow-rect","line","tick"]},sizes:[1,10],geometries:{interval:{rect:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:function(t){var e=t.geometry.coordinate;if(e.isPolar&&e.isTransposed){var r=it(t.getModel(),e),i=(r.startAngle+r.endAngle)/2,o=7.5*Math.cos(i),a=7.5*Math.sin(i);return{matrix:R.a.transform(null,[["t",o,a]])}}return n.interval.selected}}},"hollow-rect":{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},line:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},tick:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},funnel:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}},pyramid:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}}},line:{line:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},dot:{default:{style:Object(s.a)(Object(s.a)({},n.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:Object(s.a)(Object(s.a)({},n.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:Object(s.a)(Object(s.a)({},n.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:Object(s.a)(Object(s.a)({},n.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:Object(s.a)(Object(s.a)({},n.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:Object(s.a)(Object(s.a)({},n.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:Object(s.a)(Object(s.a)({},n.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:Object(s.a)(Object(s.a)({},n.line.selected),{lineCap:null,lineDash:[5.5,1]})}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vh:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hvh:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vhv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}}},polygon:{polygon:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}}},point:{circle:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},square:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},bowtie:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},diamond:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},hexagon:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},triangle:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},"triangle-down":{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},"hollow-circle":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-square":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-bowtie":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-diamond":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-hexagon":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-triangle":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-triangle-down":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},cross:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},tick:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},plus:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},hyphen:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},line:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}}},area:{area:{default:{style:n.area.default},active:{style:n.area.active},inactive:{style:n.area.inactive},selected:{style:n.area.selected}},smooth:{default:{style:n.area.default},active:{style:n.area.active},inactive:{style:n.area.inactive},selected:{style:n.area.selected}},line:{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}},"smooth-line":{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}}},schema:{candle:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},box:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}}},edge:{line:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vhv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},arc:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}}},violin:{violin:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hollow:{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}},"hollow-smooth":{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}}}},components:{axis:{common:r,top:{position:"top",grid:null,title:null,verticalLimitLength:.5},bottom:{position:"bottom",grid:null,title:null,verticalLimitLength:.5},left:{position:"left",title:null,line:null,tickLine:null,verticalLimitLength:1/3},right:{position:"right",title:null,line:null,tickLine:null,verticalLimitLength:1/3},circle:{title:null,grid:Object(c.h)({},r.grid,{line:{type:"line"}})},radius:{title:null,grid:Object(c.h)({},r.grid,{line:{type:"circle"}})}},legend:{common:i,right:{layout:"vertical",padding:t.legendVerticalPadding},left:{layout:"vertical",padding:t.legendVerticalPadding},top:{layout:"horizontal",padding:t.legendHorizontalPadding},bottom:{layout:"horizontal",padding:t.legendHorizontalPadding},continuous:{title:null,background:null,track:{},rail:{type:"color",size:t.sliderRailHeight,defaultLength:t.sliderRailWidth,style:{fill:t.sliderRailFillColor,stroke:t.sliderRailBorderColor,lineWidth:t.sliderRailBorder}},label:{align:"rail",spacing:4,formatter:null,style:{fill:t.sliderLabelTextFillColor,fontSize:t.sliderLabelTextFontSize,lineHeight:t.sliderLabelTextLineHeight,textBaseline:"middle",fontFamily:t.fontFamily}},handler:{size:t.sliderHandlerWidth,style:{fill:t.sliderHandlerFillColor,stroke:t.sliderHandlerBorderColor}},slidable:!0,padding:i.padding}},tooltip:{showContent:!0,follow:!0,showCrosshairs:!1,showMarkers:!0,shared:!1,enterable:!1,position:"auto",marker:{symbol:"circle",stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,r:4},crosshairs:{line:{style:{stroke:t.tooltipCrosshairsBorderColor,lineWidth:t.tooltipCrosshairsBorder}},text:null,textBackground:{padding:2,style:{fill:"rgba(0, 0, 0, 0.25)",lineWidth:0,stroke:null}},follow:!1},domStyles:(e={},e["".concat(V.TOOLTIP_CSS_CONST.CONTAINER_CLASS)]={position:"absolute",visibility:"hidden",zIndex:8,transition:"left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s",backgroundColor:t.tooltipContainerFillColor,opacity:t.tooltipContainerFillOpacity,boxShadow:t.tooltipContainerShadow,borderRadius:"".concat(t.tooltipContainerBorderRadius,"px"),color:t.tooltipTextFillColor,fontSize:"".concat(t.tooltipTextFontSize,"px"),fontFamily:t.fontFamily,lineHeight:"".concat(t.tooltipTextLineHeight,"px"),padding:"0 12px 0 12px"},e["".concat(V.TOOLTIP_CSS_CONST.TITLE_CLASS)]={marginBottom:"12px",marginTop:"12px"},e["".concat(V.TOOLTIP_CSS_CONST.LIST_CLASS)]={margin:0,listStyleType:"none",padding:0},e["".concat(V.TOOLTIP_CSS_CONST.LIST_ITEM_CLASS)]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},e["".concat(V.TOOLTIP_CSS_CONST.MARKER_CLASS)]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},e["".concat(V.TOOLTIP_CSS_CONST.VALUE_CLASS)]={display:"inline-block",float:"right",marginLeft:"30px"},e)},annotation:{arc:{style:{stroke:t.annotationArcBorderColor,lineWidth:t.annotationArcBorder},animate:!0},line:{style:{stroke:t.annotationLineBorderColor,lineDash:t.annotationLineDash,lineWidth:t.annotationLineBorder},text:{position:"start",autoRotate:!0,style:{fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,textAlign:"start",fontFamily:t.fontFamily,textBaseline:"bottom"}},animate:!0},text:{style:{fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,textBaseline:"middle",textAlign:"start",fontFamily:t.fontFamily},animate:!0},region:{top:!1,style:{lineWidth:t.annotationRegionBorder,stroke:t.annotationRegionBorderColor,fill:t.annotationRegionFillColor,fillOpacity:t.annotationRegionFillOpacity},animate:!0},image:{top:!1,animate:!0},dataMarker:{top:!0,point:{style:{r:3,stroke:t.brandColor,lineWidth:2}},line:{style:{stroke:t.annotationLineBorderColor,lineWidth:t.annotationLineBorder},length:t.annotationDataMarkerLineLength},text:{style:{textAlign:"start",fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,fontFamily:t.fontFamily}},direction:"upward",autoAdjust:!0,animate:!0},dataRegion:{style:{region:{fill:t.annotationRegionFillColor,fillOpacity:t.annotationRegionFillOpacity},text:{textAlign:"center",textBaseline:"bottom",fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,fontFamily:t.fontFamily}},animate:!0}},slider:{common:{padding:[8,8,8,8],backgroundStyle:{fill:t.cSliderBackgroundFillColor,opacity:t.cSliderBackgroundFillOpacity},foregroundStyle:{fill:t.cSliderForegroundFillColor,opacity:t.cSliderForegroundFillOpacity},handlerStyle:{width:t.cSliderHandlerWidth,height:t.cSliderHandlerHeight,fill:t.cSliderHandlerFillColor,opacity:t.cSliderHandlerFillOpacity,stroke:t.cSliderHandlerBorderColor,lineWidth:t.cSliderHandlerBorder,radius:t.cSliderHandlerBorderRadius,highLightFill:t.cSliderHandlerHighlightFillColor},textStyle:{fill:t.cSliderTextFillColor,opacity:t.cSliderTextFillOpacity,fontSize:t.cSliderTextFontSize,lineHeight:t.cSliderTextLineHeight,fontWeight:t.cSliderTextFontWeight,stroke:t.cSliderTextBorderColor,lineWidth:t.cSliderTextBorder}}},scrollbar:{common:{padding:[8,8,8,8]},default:{style:{trackColor:t.scrollbarTrackFillColor,thumbColor:t.scrollbarThumbFillColor}},hover:{style:{thumbColor:t.scrollbarThumbHighlightFillColor}}}},labels:{offset:12,style:{fill:t.labelFillColor,fontSize:t.labelFontSize,fontFamily:t.fontFamily,stroke:t.labelBorderColor,lineWidth:t.labelBorder},fillColorDark:t.labelFillColorDark,fillColorLight:t.labelFillColorLight,autoRotate:!0},innerLabels:{style:{fill:t.innerLabelFillColor,fontSize:t.innerLabelFontSize,fontFamily:t.fontFamily,stroke:t.innerLabelBorderColor,lineWidth:t.innerLabelBorder},autoRotate:!0},overflowLabels:{style:{fill:t.overflowLabelFillColor,fontSize:t.overflowLabelFontSize,fontFamily:t.fontFamily,stroke:t.overflowLabelBorderColor,lineWidth:t.overflowLabelBorder}},pieLabels:{labelHeight:14,offset:10,labelLine:{style:{lineWidth:t.labelLineBorder}},autoRotate:!0}}}var $e="#000",He="#595959",Ye="#8C8C8C",Ve="#BFBFBF",Ge="#D9D9D9",Ke="#F0F0F0",Xe="#FFFFFF",Ue="#D9D9D9",qe=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],Ze=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],Qe=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],Je=function(t){void 0===t&&(t={});var e=t.paletteQualitative10,n=void 0===e?qe:e,r=t.paletteQualitative20,i=void 0===r?Ze:r,o=t.brandColor,a=void 0===o?n[0]:o,c={backgroundColor:"transparent",brandColor:a,subColor:"rgba(0,0,0,0.05)",paletteQualitative10:n,paletteQualitative20:i,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:Qe,fontFamily:'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"',axisLineBorderColor:Ve,axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:He,axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:Ue,axisTickLineBorderColor:Ve,axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:Ge,axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:Ye,axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:Ge,axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:Ye,legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:a,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:He,legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:$e,legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:$e,legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:Ye,legendPageNavigatorTextFontSize:12,sliderRailFillColor:Ge,sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:Ye,sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:Ke,sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:Ve,annotationArcBorderColor:Ge,annotationArcBorder:1,annotationLineBorderColor:Ve,annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:He,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:$e,annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:Ve,tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:He,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:He,labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:Xe,innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:He,overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:Xe,overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:Ve,cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#000",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(0,0,0,0)",scrollbarThumbFillColor:"rgba(0,0,0,0.15)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.2)",pointFillColor:a,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:Xe,pointBorderOpacity:1,pointActiveBorderColor:$e,pointSelectedBorder:2,pointSelectedBorderColor:$e,pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:a,hollowPointBorderOpacity:.95,hollowPointFillColor:Xe,hollowPointActiveBorder:1,hollowPointActiveBorderColor:$e,hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:$e,hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:a,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:a,areaFillOpacity:.25,areaActiveFillColor:a,areaActiveFillOpacity:.5,areaSelectedFillColor:a,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:a,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:$e,hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:$e,hollowAreaInactiveBorderOpacity:.3,intervalFillColor:a,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:$e,intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:$e,intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:a,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:Xe,hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:$e,hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:$e,hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3};return Object(s.a)(Object(s.a)({},c),t)};Je();function tn(t){var e=t.styleSheet,n=void 0===e?{}:e,r=Object(s.f)(t,["styleSheet"]),i=Je(n);return Object(c.h)({},We(i),r)}var en={default:tn({})};function nn(t){return Object(c.s)(en,Object(c.V)(t),en.default)}function rn(t,e,n){var r=n.translate(t),i=n.translate(e);return Object(c.N)(r,i)}function on(t,e,n){var r=n.coordinate,i=n.getYScale(),o=i.field,a=r.invert(e),s=i.invert(a.y);return Object(c.m)(t,(function(t){var e=t._origin;return e[o][0]<=s&&e[o][1]>=s}))||t[t.length-1]}var an=Object(c.ab)((function(t){if(t.isCategory)return 1;for(var e=t.values,n=e.length,r=t.translate(e[0]),i=r,o=0;o<n;o++){var a=e[o],s=t.translate(a);s<r&&(r=s),s>i&&(i=s)}return(i-r)/(n-1)}));function sn(t){var e,n,r,i=function(t){var e=Object(c.xb)(t.attributes);return Object(c.l)(e,(function(t){return Object(c.f)(v,t.type)}))}(t);try{for(var o=Object(s.i)(i),a=o.next();!a.done;a=o.next()){var l=a.value,u=l.getScale(l.type);if(u&&u.isLinear)if("cat"!==gt(u,Object(c.s)(t.scaleDefs,u.field),l.type,t.type)){r=u;break}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}var h=t.getXScale(),d=t.getYScale();return r||d||h}function cn(t,e,n){if(0===e.length)return null;var r=n.type,i=n.getXScale(),o=n.getYScale(),a=i.field,s=o.field,l=null;if("heatmap"===r||"point"===r){for(var u=n.coordinate.invert(t),h=i.invert(u.x),d=o.invert(u.y),f=1/0,p=0;p<e.length;p++){var g=e[p],v=g._origin,y=Math.pow(v[a]-h,2)+Math.pow(v[s]-d,2);y<f&&(f=y,l=g)}return l}var m=e[0],b=e[e.length-1],x=function(t,e){var n=e.coordinate,r=e.getXScale(),i=r.range,o=i[i.length-1],a=i[0],s=n.invert(t).x;return n.isPolar&&s>(1+o)/2&&(s=a),r.translate(r.invert(s))}(t,n),O=m._origin[a],j=m._origin[s],w=b._origin[a],C=o.isLinear&&Object(c.C)(j);if(Object(c.C)(O)){for(p=0;p<e.length;p++){v=(I=e[p])._origin;if(i.translate(v[a][0])<=x&&i.translate(v[a][1])>=x){if(!C){l=I;break}Object(c.C)(l)||(l=[]),l.push(I)}}Object(c.C)(l)&&(l=on(l,t,n))}else{var _=void 0;if(i.isLinear||"timeCat"===i.type){if((x>i.translate(w)||x<i.translate(O))&&(x>i.max||x<i.min))return null;for(var M=0,S=e.length-1,E=void 0;M<=S;){var k=e[E=Math.floor((M+S)/2)]._origin[a];if(rn(k,x,i))return e[E];i.translate(k)<=i.translate(x)?(M=E+1,b=e[E],_=e[E+1]):(0===S&&(b=e[0]),S=E-1)}}else{for(p=0;p<e.length;p++){var I;if(rn((v=(I=e[p])._origin)[a],x,i)){if(!C){l=I;break}Object(c.C)(l)||(l=[]),l.push(I)}else i.translate(v[a])<=x&&(b=I,_=e[p+1])}Object(c.C)(l)&&(l=on(l,t,n))}b&&_&&Math.abs(i.translate(b._origin[a])-x)>Math.abs(i.translate(_._origin[a])-x)&&(b=_)}var A=an(n.getXScale());return!l&&Math.abs(i.translate(b._origin[a])-x)<=A/2&&(l=b),l}function ln(t,e,n,r){var i,o;void 0===n&&(n=""),void 0===r&&(r=!1);var a,l=t._origin,u=function(t,e,n){var r=e.getAttribute("position").getFields(),i=e.scales,o=Object(c.I)(n)||!n?r[0]:n,a=i[o],s=a?a.getText(t[o]):t[o]||o;return Object(c.I)(n)?n(s,t):s}(l,e,n),h=e.tooltipOption,d=e.theme.defaultColor,f=[];function p(e,n){if(r||!Object(c.K)(n)&&""!==n){var i={title:u,data:l,mappingData:t,name:e,value:n,color:t.color||d,marker:!0};f.push(i)}}if(Object(c.O)(h)){var g=h.fields,v=h.callback;if(v){var y=g.map((function(e){return t._origin[e]})),m=v.apply(void 0,Object(s.g)([],Object(s.e)(y),!1)),b=Object(s.a)({data:t._origin,mappingData:t,title:u,color:t.color||d,marker:!0},m);f.push(b)}else{var x=e.scales;try{for(var O=Object(s.i)(g),j=O.next();!j.done;j=O.next()){var w=j.value;if(!Object(c.K)(l[w])){var C=x[w];p(yt(C),a=C.getText(l[w]))}}}catch(t){i={error:t}}finally{try{j&&!j.done&&(o=O.return)&&o.call(O)}finally{if(i)throw i.error}}}}else{var _=sn(e);a=function(t,e){var n=t[e.field];return Object(c.C)(n)?n.map((function(t){return e.getText(t)})).join("-"):e.getText(n)}(l,_),p(function(t,e){var n,r=e.getGroupScales();if(r.length&&(n=r[0]),n){var i=n.field;return n.getText(t[i])}return yt(sn(e))}(l,e),a)}return f}function un(t,e,n,r){var i,o,a=r.showNil,l=[],u=t.dataArray;if(!Object(c.G)(u)){t.sort(u);try{for(var h=Object(s.i)(u),d=h.next();!d.done;d=h.next()){var f=cn(e,d.value,t);if(f){var p=t.getElementId(f),g=t.elementsMap[p];if("heatmap"===t.type||g.visible){var v=ln(f,t,n,a);v.length&&l.push(v)}}}}catch(t){i={error:t}}finally{try{d&&!d.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}}return l}function hn(t,e,n,r){var i=r.showNil,o=[],a=t.container.getShape(e.x,e.y);if(a&&a.get("visible")&&a.get("origin")){var s=ln(a.get("origin").mappingData,t,n,i);s.length&&o.push(s)}return o}function dn(t,e,n){var r,i,o=[],a=t.geometries,c=n.shared,l=n.title,u=n.reversed;try{for(var h=Object(s.i)(a),d=h.next();!d.done;d=h.next()){var f=d.value;if(f.visible&&!1!==f.tooltipOption){var p=f.type,g=void 0;(g=["point","edge","polygon"].includes(p)?hn(f,e,l,n):["area","line","path","heatmap"].includes(p)||!1!==c?un(f,e,l,n):hn(f,e,l,n)).length&&(u&&g.reverse(),o.push(g))}}}catch(t){r={error:t}}finally{try{d&&!d.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}return o}function fn(t){void 0===t&&(t=0);var e=Object(c.C)(t)?t:[t];switch(e.length){case 0:e=[0,0,0,0];break;case 1:e=new Array(4).fill(e[0]);break;case 2:e=Object(s.g)(Object(s.g)([],Object(s.e)(e),!1),Object(s.e)(e),!1);break;case 3:e=Object(s.g)(Object(s.g)([],Object(s.e)(e),!1),[e[1]],!1);break;default:e=e.slice(0,4)}return e}var pn={};function gn(t,e){pn[t]=e}var vn=function(){function t(t){this.option=this.wrapperOption(t)}return t.prototype.update=function(t){return this.option=this.wrapperOption(t),this},t.prototype.hasAction=function(t){var e=this.option.actions;return Object(c.nb)(e,(function(e){return e[0]===t}))},t.prototype.create=function(t,e){var n=this.option,r=n.type,i=n.cfg,o="theta"===r,a=Object(s.a)({start:t,end:e},i),c=function(t){return H[t.toLowerCase()]}(o?"polar":r);return this.coordinate=new c(a),this.coordinate.type=r,o&&(this.hasAction("transpose")||this.transpose()),this.execActions(),this.coordinate},t.prototype.adjust=function(t,e){return this.coordinate.update({start:t,end:e}),this.coordinate.resetMatrix(),this.execActions(["scale","rotate","translate"]),this.coordinate},t.prototype.rotate=function(t){return this.option.actions.push(["rotate",t]),this},t.prototype.reflect=function(t){return this.option.actions.push(["reflect",t]),this},t.prototype.scale=function(t,e){return this.option.actions.push(["scale",t,e]),this},t.prototype.transpose=function(){return this.option.actions.push(["transpose"]),this},t.prototype.getOption=function(){return this.option},t.prototype.getCoordinate=function(){return this.coordinate},t.prototype.wrapperOption=function(t){return Object(s.a)({type:"rect",actions:[],cfg:{}},t)},t.prototype.execActions=function(t){var e=this,n=this.option.actions;Object(c.j)(n,(function(n){var r,i=Object(s.e)(n),o=i[0],a=i.slice(1);(!!Object(c.K)(t)||t.includes(o))&&(r=e.coordinate)[o].apply(r,Object(s.g)([],Object(s.e)(a),!1))}))},t}(),yn=function(){function t(t,e,n){this.view=t,this.gEvent=e,this.data=n,this.type=e.type}return t.fromData=function(e,n,r){return new t(e,new C.Event(n,{}),r)},Object.defineProperty(t.prototype,"target",{get:function(){return this.gEvent.target},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"event",{get:function(){return this.gEvent.originalEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this.gEvent.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.gEvent.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientX",{get:function(){return this.gEvent.clientX},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientY",{get:function(){return this.gEvent.clientY},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"[Event (type=".concat(this.type,")]")},t.prototype.clone=function(){return new t(this.view,this.gEvent,this.data)},t}();function mn(t){var e=t.getController("axis"),n=t.getController("legend"),r=t.getController("annotation");[e,t.getController("slider"),t.getController("scrollbar"),n,r].forEach((function(t){t&&t.layout()}))}var bn=function(){function t(){this.scales=new Map,this.syncScales=new Map}return t.prototype.createScale=function(t,e,n,r){var i=n,o=this.getScaleMeta(r);if(0===e.length&&o){var a=o.scale,s={type:a.type};a.isCategory&&(s.values=a.values),i=Object(c.h)(s,o.scaleDef,n)}var l=vt(t,e,i);return this.cacheScale(l,n,r),l},t.prototype.sync=function(t,e){var n=this;this.syncScales.forEach((function(r,i){var o=Number.MAX_SAFE_INTEGER,a=Number.MIN_SAFE_INTEGER,s=[];Object(c.j)(r,(function(t){var e=n.getScale(t);a=Object(c.M)(e.max)?Math.max(a,e.max):a,o=Object(c.M)(e.min)?Math.min(o,e.min):o,Object(c.j)(e.values,(function(t){s.includes(t)||s.push(t)}))})),Object(c.j)(r,(function(r){var i=n.getScale(r);if(i.isContinuous)i.change({min:o,max:a,values:s});else if(i.isCategory){var l=i.range,u=n.getScaleMeta(r);s&&!Object(c.s)(u,["scaleDef","range"])&&(l=mt(Object(c.h)({},i,{values:s}),t,e)),i.change({values:s,range:l})}}))}))},t.prototype.cacheScale=function(t,e,n){var r=this.getScaleMeta(n);r&&r.scale.type===t.type?(!function(t,e){if("identity"!==t.type&&"identity"!==e.type){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);t.change(n)}}(r.scale,t),r.scaleDef=e):(r={key:n,scale:t,scaleDef:e},this.scales.set(n,r));var i=this.getSyncKey(r);if(r.syncKey=i,this.removeFromSyncScales(n),i){var o=this.syncScales.get(i);o||(o=[],this.syncScales.set(i,o)),o.push(n)}},t.prototype.getScale=function(t){var e=this.getScaleMeta(t);if(!e){var n=Object(c.U)(t.split("-")),r=this.syncScales.get(n);r&&r.length&&(e=this.getScaleMeta(r[0]))}return e&&e.scale},t.prototype.deleteScale=function(t){var e=this.getScaleMeta(t);if(e){var n=e.syncKey,r=this.syncScales.get(n);if(r&&r.length){var i=r.indexOf(t);-1!==i&&r.splice(i,1)}}this.scales.delete(t)},t.prototype.clear=function(){this.scales.clear(),this.syncScales.clear()},t.prototype.removeFromSyncScales=function(t){var e=this;this.syncScales.forEach((function(n,r){var i=n.indexOf(t);if(-1!==i)return n.splice(i,1),0===n.length&&e.syncScales.delete(r),!1}))},t.prototype.getSyncKey=function(t){var e=t.scale,n=t.scaleDef,r=e.field,i=Object(c.s)(n,["sync"]);return!0===i?r:!1===i?void 0:i},t.prototype.getScaleMeta=function(t){return this.scales.get(t)},t}(),xn=function(){function t(t,e,n,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),this.top=t,this.right=e,this.bottom=n,this.left=r}return t.instance=function(e,n,r,i){return void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),void 0===i&&(i=0),new t(e,n,r,i)},t.prototype.max=function(t){var e=Object(s.e)(t,4),n=e[0],r=e[1],i=e[2],o=e[3];return this.top=Math.max(this.top,n),this.right=Math.max(this.right,r),this.bottom=Math.max(this.bottom,i),this.left=Math.max(this.left,o),this},t.prototype.shrink=function(t){var e=Object(s.e)(t,4),n=e[0],r=e[1],i=e[2],o=e[3];return this.top+=n,this.right+=r,this.bottom+=i,this.left+=o,this},t.prototype.inc=function(t,e){var n=t.width,r=t.height;switch(e){case o.TOP:case o.TOP_LEFT:case o.TOP_RIGHT:this.top+=r;break;case o.RIGHT:case o.RIGHT_TOP:case o.RIGHT_BOTTOM:this.right+=n;break;case o.BOTTOM:case o.BOTTOM_LEFT:case o.BOTTOM_RIGHT:this.bottom+=r;break;case o.LEFT:case o.LEFT_TOP:case o.LEFT_BOTTOM:this.left+=n}return this},t.prototype.getPadding=function(){return[this.top,this.right,this.bottom,this.left]},t.prototype.clone=function(){return new(t.bind.apply(t,Object(s.g)([void 0],Object(s.e)(this.getPadding()),!1)))},t}();function On(t){var e=t.padding;if(!function(t){return!Object(c.M)(t)&&!Object(c.C)(t)}(e))return new(xn.bind.apply(xn,Object(s.g)([void 0],Object(s.e)(fn(e)),!1)));var n=t.viewBBox,r=new xn,i=[],o=[],l=[];return Object(c.j)(t.getComponents(),(function(t){var e=t.type;e===a.AXIS?i.push(t):[a.LEGEND,a.SLIDER,a.SCROLLBAR].includes(e)?o.push(t):e!==a.GRID&&e!==a.TOOLTIP&&l.push(t)})),Object(c.j)(i,(function(t){var e=t.component.getLayoutBBox(),i=new lt(e.x,e.y,e.width,e.height).exceed(n);r.max(i)})),Object(c.j)(o,(function(t){var e=t.component,n=t.direction,i=e.getLayoutBBox(),o=e.get("padding"),a=new lt(i.x,i.y,i.width,i.height).expand(o);r.inc(a,n)})),Object(c.j)(l,(function(t){var e=t.component,n=t.direction,i=e.getLayoutBBox(),o=new lt(i.x,i.y,i.width,i.height);r.inc(o,n)})),r}function jn(t,e,n){var r=n.instance();e.forEach((function(t){t.autoPadding=r.max(t.autoPadding.getPadding())}))}var wn=function(t){function e(e){var n=t.call(this,{visible:e.visible})||this;n.views=[],n.geometries=[],n.controllers=[],n.interactions={},n.limitInPlot=!1,n.options={data:[],animate:!0},n.usedControllers=Object.keys(pn),n.scalePool=new bn,n.layoutFunc=mn,n.isPreMouseInPlot=!1,n.isDataChanged=!1,n.isCoordinateChanged=!1,n.createdScaleKeys=new Map,n.onCanvasEvent=function(t){var e=t.name;if(!e.includes(":")){var r=n.createViewEvent(t);n.doPlotEvent(r),n.emit(e,r)}},n.onDelegateEvents=function(t){var e=t.name;if(e.includes(":")){var r=n.createViewEvent(t);n.emit(e,r)}};var r=e.id,i=void 0===r?Object(c.vb)("view"):r,o=e.parent,a=e.canvas,l=e.backgroundGroup,u=e.middleGroup,h=e.foregroundGroup,d=e.region,f=void 0===d?{start:{x:0,y:0},end:{x:1,y:1}}:d,p=e.padding,g=e.appendPadding,v=e.theme,y=e.options,m=e.limitInPlot,b=e.syncViewPadding;return n.parent=o,n.canvas=a,n.backgroundGroup=l,n.middleGroup=u,n.foregroundGroup=h,n.region=f,n.padding=p,n.appendPadding=g,n.options=Object(s.a)(Object(s.a)({},n.options),y),n.limitInPlot=m,n.id=i,n.syncViewPadding=b,n.themeObject=Object(c.O)(v)?Object(c.h)({},nn("default"),tn(v)):nn(v),n.init(),n}return Object(s.c)(e,t),e.prototype.setLayout=function(t){this.layoutFunc=t},e.prototype.init=function(){this.calculateViewBBox(),this.initEvents(),this.initComponentController(),this.initOptions()},e.prototype.render=function(t,e){void 0===t&&(t=!1),this.emit(l.BEFORE_RENDER,yn.fromData(this,l.BEFORE_RENDER,e)),this.paint(t),this.emit(l.AFTER_RENDER,yn.fromData(this,l.AFTER_RENDER,e)),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this;this.emit(l.BEFORE_CLEAR),this.filteredData=[],this.coordinateInstance=void 0,this.isDataChanged=!1,this.isCoordinateChanged=!1;for(var e=this.geometries,n=0;n<e.length;n++)e[n].clear(),e[n].container.remove(!0),e[n].labelsContainer.remove(!0);this.geometries=[];var r=this.controllers;for(n=0;n<r.length;n++)"annotation"===r[n].name?r[n].clear(!0):r[n].clear();this.createdScaleKeys.forEach((function(e,n){t.getRootView().scalePool.deleteScale(n)})),this.createdScaleKeys.clear();var i=this.views;for(n=0;n<i.length;n++)i[n].clear();this.emit(l.AFTER_CLEAR)},e.prototype.destroy=function(){this.emit(l.BEFORE_DESTROY);var e=this.interactions;Object(c.j)(e,(function(t){t&&t.destroy()})),this.clear();for(var n=this.controllers,r=0,i=n.length;r<i;r++){n[r].destroy()}this.backgroundGroup.remove(!0),this.middleGroup.remove(!0),this.foregroundGroup.remove(!0),t.prototype.destroy.call(this)},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e);for(var n=this.geometries,r=0,i=n.length;r<i;r++){n[r].changeVisible(e)}var o=this.controllers;for(r=0,i=o.length;r<i;r++){o[r].changeVisible(e)}return this.foregroundGroup.set("visible",e),this.middleGroup.set("visible",e),this.backgroundGroup.set("visible",e),this.getCanvas().draw(),this},e.prototype.data=function(t){return Object(c.lb)(this.options,"data",t),this.isDataChanged=!0,this},e.prototype.source=function(t){return console.warn("This method will be removed at G2 V4.1. Please use chart.data() instead."),this.data(t)},e.prototype.filter=function(t,e){return Object(c.I)(e)?(Object(c.lb)(this.options,["filters",t],e),this):(!e&&Object(c.s)(this.options,["filters",t])&&delete this.options.filters[t],this)},e.prototype.axis=function(t,e){return Object(c.D)(t)?Object(c.lb)(this.options,["axes"],t):Object(c.lb)(this.options,["axes",t],e),this},e.prototype.legend=function(t,e){return Object(c.D)(t)?Object(c.lb)(this.options,["legends"],t):Object(c.Q)(t)?(Object(c.lb)(this.options,["legends",t],e),Object(c.P)(e)&&(null==e?void 0:e.selected)&&Object(c.lb)(this.options,["filters",t],(function(t){var n;return null===(n=null==e?void 0:e.selected[t])||void 0===n||n}))):Object(c.lb)(this.options,["legends"],t),this},e.prototype.scale=function(t,e){var n=this;return Object(c.Q)(t)?Object(c.lb)(this.options,["scales",t],e):Object(c.O)(t)&&Object(c.j)(t,(function(t,e){Object(c.lb)(n.options,["scales",e],t)})),this},e.prototype.tooltip=function(t){return Object(c.lb)(this.options,"tooltip",t),this},e.prototype.annotation=function(){return this.getController("annotation")},e.prototype.guide=function(){return console.warn("This method will be removed at G2 V4.1. Please use chart.annotation() instead."),this.annotation()},e.prototype.coordinate=function(t,e){return Object(c.Q)(t)?Object(c.lb)(this.options,"coordinate",{type:t,cfg:e}):Object(c.lb)(this.options,"coordinate",t),this.coordinateController.update(this.options.coordinate),this.coordinateController},e.prototype.coord=function(t,e){return console.warn("This method will be removed at G2 V4.1. Please use chart.coordinate() instead."),this.coordinate(t,e)},e.prototype.facet=function(t,e){this.facetInstance&&this.facetInstance.destroy();var n=function(t){return kt[Object(c.V)(t)]}(t);if(!n)throw new Error("facet '".concat(t,"' is not exist!"));return this.facetInstance=new n(this,Object(s.a)(Object(s.a)({},e),{type:t})),this},e.prototype.animate=function(t){return Object(c.lb)(this.options,"animate",t),this},e.prototype.updateOptions=function(t){return this.clear(),Object(c.db)(this.options,t),this.views.forEach((function(t){return t.destroy()})),this.views=[],this.initOptions(),this.coordinateBBox=this.viewBBox,this},e.prototype.option=function(t,n){if(e.prototype[t])throw new Error("Can't use built in variable name \"".concat(t,'", please change another one.'));return Object(c.lb)(this.options,t,n),this},e.prototype.theme=function(t){return this.themeObject=Object(c.O)(t)?Object(c.h)({},this.themeObject,tn(t)):nn(t),this},e.prototype.interaction=function(t,e){var n=this.interactions[t];n&&n.destroy();var r=ze(t,this,e);return r&&(r.init(),this.interactions[t]=r),this},e.prototype.removeInteraction=function(t){var e=this.interactions[t];e&&(e.destroy(),this.interactions[t]=void 0)},e.prototype.changeData=function(t){this.isDataChanged=!0,this.emit(l.BEFORE_CHANGE_DATA,yn.fromData(this,l.BEFORE_CHANGE_DATA,null)),this.data(t),this.paint(!0);for(var e=this.views,n=0,r=e.length;n<r;n++){e[n].changeData(t)}this.emit(l.AFTER_CHANGE_DATA,yn.fromData(this,l.AFTER_CHANGE_DATA,null))},e.prototype.createView=function(t){this.parent&&this.parent.parent&&console.warn("The view nesting recursive feature will be removed at G2 V4.1. Please avoid to use it.");var n={data:this.options.data,scales:Object(c.e)(this.options.scales),axes:Object(c.e)(this.options.axes),coordinate:Object(c.e)(this.coordinateController.getOption()),tooltip:Object(c.e)(this.options.tooltip),legends:Object(c.e)(this.options.legends),animate:this.options.animate,visible:this.visible},r=new e(Object(s.a)(Object(s.a)({parent:this,canvas:this.canvas,backgroundGroup:this.backgroundGroup.addGroup({zIndex:g}),middleGroup:this.middleGroup.addGroup({zIndex:p}),foregroundGroup:this.foregroundGroup.addGroup({zIndex:f}),theme:this.themeObject,padding:this.padding},t),{options:Object(s.a)(Object(s.a)({},n),Object(c.s)(t,"options",{}))}));return this.views.push(r),r},e.prototype.view=function(t){return console.warn("This method will be removed at G2 V4.1. Please use chart.createView() instead."),this.createView(t)},e.prototype.removeView=function(t){var e=Object(c.jb)(this.views,(function(e){return e===t}))[0];return e&&e.destroy(),e},e.prototype.getCoordinate=function(){return this.coordinateInstance},e.prototype.getTheme=function(){return this.themeObject},e.prototype.getXScale=function(){var t=this.geometries[0];return t?t.getXScale():null},e.prototype.getYScales=function(){var t={},e=[];return this.geometries.forEach((function(n){var r=n.getYScale(),i=r.field;t[i]||(t[i]=!0,e.push(r))})),e},e.prototype.getScalesByDim=function(t){for(var e=this.geometries,n={},r=0,i=e.length;r<i;r++){var o=e[r],a="x"===t?o.getXScale():o.getYScale();a&&!n[a.field]&&(n[a.field]=a)}return n},e.prototype.getScale=function(t,e){var n=e||this.getScaleKey(t);return this.getRootView().scalePool.getScale(n)},e.prototype.getScaleByField=function(t,e){return this.getScale(t,e)},e.prototype.getOptions=function(){return this.options},e.prototype.getData=function(){return this.filteredData},e.prototype.getOriginalData=function(){return this.options.data},e.prototype.getPadding=function(){return this.autoPadding.getPadding()},e.prototype.getGeometries=function(){return this.geometries},e.prototype.getElements=function(){return Object(c.ib)(this.geometries,(function(t,e){return t.concat(e.getElements())}),[])},e.prototype.getElementsBy=function(t){return this.getElements().filter((function(e){return t(e)}))},e.prototype.getLayer=function(t){return t===i.BG?this.backgroundGroup:t===i.MID?this.middleGroup:(i.FORE,this.foregroundGroup)},e.prototype.isPointInPlot=function(t){return function(t,e){var n=!1;if(t)if("theta"===t.type){var r=t.start,i=t.end;n=at(e.x,r.x,i.x)&&at(e.y,r.y,i.y)}else{var o=t.invert(e);n=at(o.x,0,1)&&at(o.y,0,1)}return n}(this.getCoordinate(),t)},e.prototype.getLegendAttributes=function(){return Object(c.q)(this.geometries.map((function(t){return t.getGroupAttributes()})))},e.prototype.getGroupScales=function(){var t=this.geometries.map((function(t){return t.getGroupScales()}));return ct(Object(c.q)(t))},e.prototype.getCanvas=function(){return this.getRootView().canvas},e.prototype.getRootView=function(){for(var t=this;t.parent;)t=t.parent;return t},e.prototype.getXY=function(t){var e,n,r=this.getCoordinate(),i=this.getScalesByDim("x"),o=this.getScalesByDim("y");if(Object(c.j)(t,(function(t,r){i[r]&&(e=i[r].scale(t)),o[r]&&(n=o[r].scale(t))})),!Object(c.K)(e)&&!Object(c.K)(n))return r.convert({x:e,y:n})},e.prototype.getController=function(t){return Object(c.m)(this.controllers,(function(e){return e.name===t}))},e.prototype.showTooltip=function(t){var e=this.getController("tooltip");return e&&e.showTooltip(t),this},e.prototype.hideTooltip=function(){var t=this.getController("tooltip");return t&&t.hideTooltip(),this},e.prototype.lockTooltip=function(){var t=this.getController("tooltip");return t&&t.lockTooltip(),this},e.prototype.unlockTooltip=function(){var t=this.getController("tooltip");return t&&t.unlockTooltip(),this},e.prototype.isTooltipLocked=function(){var t=this.getController("tooltip");return t&&t.isTooltipLocked()},e.prototype.getTooltipItems=function(t){var e=this.getController("tooltip");return e?e.getTooltipItems(t):[]},e.prototype.getSnapRecords=function(t){for(var e=this.geometries,n=[],r=0,i=e.length;r<i;r++){var o=e[r],a=o.dataArray;o.sort(a);for(var s=void 0,c=0,l=a.length;c<l;c++){(s=cn(t,a[c],o))&&n.push(s)}}var u=this.views;for(r=0,i=u.length;r<i;r++){var h=u[r].getSnapRecords(t);n=n.concat(h)}return n},e.prototype.getComponents=function(){for(var t=[],e=this.controllers,n=0,r=e.length;n<r;n++){var i=e[n];t=t.concat(i.getComponents())}return t},e.prototype.filterData=function(t){var e=this.options.filters;return 0===Object(c.mb)(e)?t:Object(c.l)(t,(function(t,n){return Object.keys(e).every((function(r){return(0,e[r])(t[r],t,n)}))}))},e.prototype.filterFieldData=function(t,e){var n=this.options.filters,r=Object(c.s)(n,t);return Object(c.S)(r)?e:e.filter((function(e,n){return r(e[t],e,n)}))},e.prototype.adjustCoordinate=function(){var t=this.getCoordinate(),e=t.start,n=t.end,r=this.coordinateBBox.bl,i=this.coordinateBBox.tr;Object(c.H)(e,r)&&Object(c.H)(n,i)?this.isCoordinateChanged=!1:(this.isCoordinateChanged=!0,this.coordinateInstance=this.coordinateController.adjust(r,i))},e.prototype.paint=function(t){this.renderDataRecursive(t),this.syncScale(),this.emit(l.BEFORE_PAINT),this.renderPaddingRecursive(t),this.renderLayoutRecursive(t),this.renderBackgroundStyleShape(),this.renderPaintRecursive(t),this.emit(l.AFTER_PAINT),this.isDataChanged=!1},e.prototype.renderBackgroundStyleShape=function(){if(!this.parent){var t=Object(c.s)(this.themeObject,"background");if(t){this.backgroundStyleRectShape||(this.backgroundStyleRectShape=this.backgroundGroup.addShape("rect",{attrs:{},zIndex:-1,capture:!1}),this.backgroundStyleRectShape.toBack());var e=this.viewBBox,n=e.x,r=e.y,i=e.width,o=e.height;this.backgroundStyleRectShape.attr({fill:t,x:n,y:r,width:i,height:o})}else this.backgroundStyleRectShape&&(this.backgroundStyleRectShape.remove(!0),this.backgroundStyleRectShape=void 0)}},e.prototype.renderPaddingRecursive=function(t){this.calculateViewBBox(),this.adjustCoordinate(),this.initComponents(t),this.autoPadding=On(this).shrink(fn(this.appendPadding)),this.coordinateBBox=this.viewBBox.shrink(this.autoPadding.getPadding()),this.adjustCoordinate(),this.controllers.find((function(t){return"tooltip"===t.name})).update();for(var e=this.views,n=0,r=e.length;n<r;n++){e[n].renderPaddingRecursive(t)}},e.prototype.renderLayoutRecursive=function(t){var e=!0===this.syncViewPadding?jn:Object(c.I)(this.syncViewPadding)?this.syncViewPadding:void 0;e&&(e(this,this.views,xn),this.views.forEach((function(t){t.coordinateBBox=t.viewBBox.shrink(t.autoPadding.getPadding()),t.adjustCoordinate()}))),this.doLayout();for(var n=this.views,r=0,i=n.length;r<i;r++){n[r].renderLayoutRecursive(t)}},e.prototype.renderPaintRecursive=function(t){var e=this.middleGroup;if(this.limitInPlot){var n=ft(this.coordinateInstance),r=n.type,i=n.attrs;e.setClip({type:r,attrs:i})}else e.setClip(void 0);this.paintGeometries(t),this.renderComponents(t);for(var o=this.views,a=0,s=o.length;a<s;a++){o[a].renderPaintRecursive(t)}},e.prototype.createScale=function(t,e,n,r){var i=Object(c.s)(this.options.scales,[t]),o=Object(s.a)(Object(s.a)({},i),n);return this.parent?this.parent.createScale(t,e,o,r):this.scalePool.createScale(t,e,o,r)},e.prototype.renderDataRecursive=function(t){this.doFilterData(),this.createCoordinate(),this.initGeometries(t),this.renderFacet(t);for(var e=this.views,n=0,r=e.length;n<r;n++){e[n].renderDataRecursive(t)}},e.prototype.calculateViewBBox=function(){var t,e,n,r;if(this.parent){var i=this.parent.coordinateBBox;t=i.x,e=i.y,n=i.width,r=i.height}else t=0,e=0,n=this.canvas.get("width"),r=this.canvas.get("height");var o=this.region,a=o.start,s=o.end,c=new lt(t+n*a.x,e+r*a.y,n*(s.x-a.x),r*(s.y-a.y));this.viewBBox&&this.viewBBox.isEqual(c)||(this.viewBBox=new lt(t+n*a.x,e+r*a.y,n*(s.x-a.x),r*(s.y-a.y))),this.coordinateBBox=this.viewBBox},e.prototype.initEvents=function(){this.foregroundGroup.on("*",this.onDelegateEvents),this.middleGroup.on("*",this.onDelegateEvents),this.backgroundGroup.on("*",this.onDelegateEvents),this.canvas.on("*",this.onCanvasEvent)},e.prototype.initComponentController=function(){for(var t=this.usedControllers,e=0,n=t.length;e<n;e++){var r=t[e],i=pn[r];i&&this.controllers.push(new i(this))}},e.prototype.createViewEvent=function(t){var e=t.shape,n=t.name,r=e?e.get("origin"):null,i=new yn(this,t,r);return i.type=n,i},e.prototype.doPlotEvent=function(t){var e=t.type,n={x:t.x,y:t.y};if(["mousedown","mouseup","mousemove","mouseleave","mousewheel","touchstart","touchmove","touchend","touchcancel","click","dblclick","contextmenu"].includes(e)){var r=this.isPointInPlot(n),i=t.clone();if(r){var o="plot:".concat(e);i.type=o,this.emit(o,i),"mouseleave"!==e&&"touchend"!==e||(this.isPreMouseInPlot=!1)}"mousemove"===e||"touchmove"===e?(this.isPreMouseInPlot&&!r?("mousemove"===e&&(i.type=h.MOUSE_LEAVE,this.emit(h.MOUSE_LEAVE,i)),i.type=h.LEAVE,this.emit(h.LEAVE,i)):!this.isPreMouseInPlot&&r&&("mousemove"===e&&(i.type=h.MOUSE_ENTER,this.emit(h.MOUSE_ENTER,i)),i.type=h.ENTER,this.emit(h.ENTER,i)),this.isPreMouseInPlot=r):"mouseleave"!==e&&"touchend"!==e||this.isPreMouseInPlot&&("mouseleave"===e&&(i.type=h.MOUSE_LEAVE,this.emit(h.MOUSE_LEAVE,i)),i.type=h.LEAVE,this.emit(h.LEAVE,i),this.isPreMouseInPlot=!1)}},e.prototype.doFilterData=function(){var t=this.options.data;this.filteredData=this.filterData(t)},e.prototype.initGeometries=function(t){this.createOrUpdateScales();for(var e=this.getCoordinate(),n=Object(c.s)(this.options,"scales",{}),r=this.geometries,i=0,o=r.length;i<o;i++){var a=r[i];a.scales=this.getGeometryScales();var s={coordinate:e,scaleDefs:n,data:this.filteredData,theme:this.themeObject,isDataChanged:this.isDataChanged,isCoordinateChanged:this.isCoordinateChanged};t?a.update(s):a.init(s)}this.adjustScales()},e.prototype.createOrUpdateScales=function(){for(var t=this.getScaleFields(),e=this.getGroupedFields(),n=this.getOptions(),r=n.data,i=n.scales,o=void 0===i?{}:i,a=this.filteredData,s=0,c=t.length;s<c;s++){var l=t[s],u=o[l],h=this.getScaleKey(l);this.createScale(l,e.includes(l)?r:a,u,h),this.createdScaleKeys.set(h,!0)}},e.prototype.syncScale=function(){this.getRootView().scalePool.sync(this.getCoordinate(),this.theme)},e.prototype.getGeometryScales=function(){for(var t=this.getScaleFields(),e={},n=0;n<t.length;n++){var r=t[n];e[r]=this.getScaleByField(r)}return e},e.prototype.getScaleFields=function(){for(var t=[],e=new Map,n=this.geometries,r=0;r<n.length;r++){ct(n[r].getScaleFields(),t,e)}return t},e.prototype.getGroupedFields=function(){for(var t=[],e=new Map,n=this.geometries,r=0;r<n.length;r++){ct(n[r].getGroupFields(),t,e)}return t},e.prototype.adjustScales=function(){this.adjustCategoryScaleRange()},e.prototype.adjustCategoryScaleRange=function(){var t=this,e=Object(s.g)([this.getXScale()],Object(s.e)(this.getYScales()),!1).filter((function(t){return!!t})),n=this.getCoordinate(),r=this.options.scales;Object(c.j)(e,(function(e){var i=e.field,o=e.values,a=e.isCategory,s=e.isIdentity;(a||s)&&o&&!Object(c.s)(r,[i,"range"])&&(e.range=mt(e,n,t.theme))}))},e.prototype.initComponents=function(t){for(var e=this.controllers,n=0;n<e.length;n++){var r=e[n];t?r.update():(r.clear(),r.render())}},e.prototype.doLayout=function(){this.layoutFunc(this)},e.prototype.createCoordinate=function(){var t=this.coordinateBBox.bl,e=this.coordinateBBox.tr;this.coordinateInstance=this.coordinateController.create(t,e)},e.prototype.paintGeometries=function(t){for(var e=this.options.animate,n=this.getCoordinate(),r={x:this.viewBBox.x,y:this.viewBBox.y,minX:this.viewBBox.minX,minY:this.viewBBox.minY,maxX:this.viewBBox.maxX,maxY:this.viewBBox.maxY,width:this.viewBBox.width,height:this.viewBBox.height},i=this.geometries,o=0;o<i.length;o++){var a=i[o];a.coordinate=n,a.canvasRegion=r,e||a.animate(!1),a.paint(t)}},e.prototype.renderComponents=function(t){for(var e=this.getComponents(),n=0;n<e.length;n++){e[n].component.render()}},e.prototype.renderFacet=function(t){this.facetInstance&&(t?this.facetInstance.update():(this.facetInstance.clear(),this.facetInstance.init(),this.facetInstance.render()))},e.prototype.initOptions=function(){var t=this,e=this.options,n=e.geometries,r=void 0===n?[]:n,i=e.interactions,o=void 0===i?[]:i,a=e.views,l=void 0===a?[]:a,u=e.annotations,h=void 0===u?[]:u,d=e.coordinate,f=e.events,p=e.facets;this.coordinateController?d&&this.coordinateController.update(d):this.coordinateController=new vn(d);for(var g=0;g<r.length;g++){var v=r[g];this.createGeometry(v)}for(var y=0;y<o.length;y++){var m=o[y],b=m.type,x=m.cfg;this.interaction(b,x)}for(var O=0;O<l.length;O++){var j=l[O];this.createView(j)}for(var w=this.getController("annotation"),C=0;C<h.length;C++){var _=h[C];w.annotation(_)}f&&Object(c.j)(f,(function(e,n){t.on(n,e)})),p&&Object(c.j)(p,(function(e){var n=e.type,r=Object(s.f)(e,["type"]);t.facet(n,r)}))},e.prototype.createGeometry=function(t){var e=t.type,n=t.cfg,r=void 0===n?{}:n;if(this[e]){var i=this[e](r);Object(c.j)(t,(function(t,e){Object(c.I)(i[e])&&i[e](t)}))}},e.prototype.getScaleKey=function(t){return"".concat(this.id,"-").concat(t)},e}(w);function Cn(t,e){wn.prototype[t.toLowerCase()]=function(t){void 0===t&&(t={});var n=Object(s.a)({container:this.middleGroup.addGroup(),labelsContainer:this.foregroundGroup.addGroup()},t),r=new e(n);return this.geometries.push(r),r}}var _n=function(t){function e(e){var n=this,r=e.container,i=e.width,o=e.height,a=e.autoFit,l=void 0!==a&&a,u=e.padding,h=e.appendPadding,d=e.renderer,v=void 0===d?"canvas":d,m=e.pixelRatio,x=e.localRefresh,j=void 0===x||x,w=e.visible,C=void 0===w||w,_=e.supportCSSTransform,M=void 0!==_&&_,S=e.defaultInteractions,E=void 0===S?["tooltip","legend-filter","legend-active","continuous-filter","ellipsis-text","axis-description"]:S,k=e.options,I=e.limitInPlot,A=e.theme,P=e.syncViewPadding,T=Object(c.Q)(r)?document.getElementById(r):r,B=Object(b.b)('<div style="position:relative;"></div>');T.appendChild(B);var L=O(T,l,i,o),D=new(function(t){var e=y[t];if(!e)throw new Error("G engine '".concat(t,"' is not exist, please register it at first."));return e}(v).Canvas)(Object(s.a)({container:B,pixelRatio:m,localRefresh:j,supportCSSTransform:M},L));return(n=t.call(this,{parent:null,canvas:D,backgroundGroup:D.addGroup({zIndex:g}),middleGroup:D.addGroup({zIndex:p}),foregroundGroup:D.addGroup({zIndex:f}),padding:u,appendPadding:h,visible:C,options:k,limitInPlot:I,theme:A,syncViewPadding:P})||this).onResize=Object(c.g)((function(){n.forceFit()}),300),n.ele=T,n.canvas=D,n.width=L.width,n.height=L.height,n.autoFit=l,n.localRefresh=j,n.renderer=v,n.wrapperElement=B,n.updateCanvasStyle(),n.bindAutoFit(),n.initDefaultInteractions(E),n}return Object(s.c)(e,t),e.prototype.initDefaultInteractions=function(t){var e=this;Object(c.j)(t,(function(t){e.interaction(t)}))},e.prototype.aria=function(t){!1===t?this.ele.removeAttribute("aria-label"):this.ele.setAttribute("aria-label",t.label)},e.prototype.changeSize=function(t,e){return this.width===t&&this.height===e||(this.emit(l.BEFORE_CHANGE_SIZE),this.width=t,this.height=e,this.canvas.changeSize(t,e),this.render(!0),this.emit(l.AFTER_CHANGE_SIZE)),this},e.prototype.clear=function(){t.prototype.clear.call(this),this.aria(!1)},e.prototype.destroy=function(){var e,n;t.prototype.destroy.call(this),this.unbindAutoFit(),this.canvas.destroy(),e=this.wrapperElement,(n=e.parentNode)&&n.removeChild(e),this.wrapperElement=null},e.prototype.changeVisible=function(e){return t.prototype.changeVisible.call(this,e),this.wrapperElement.style.display=e?"":"none",this},e.prototype.forceFit=function(){if(!this.destroyed){var t=O(this.ele,!0,this.width,this.height),e=t.width,n=t.height;this.changeSize(e,n)}},e.prototype.updateCanvasStyle=function(){Object(b.e)(this.canvas.get("el"),{display:"inline-block",verticalAlign:"middle"})},e.prototype.bindAutoFit=function(){this.autoFit&&window.addEventListener("resize",this.onResize)},e.prototype.unbindAutoFit=function(){this.autoFit&&window.removeEventListener("resize",this.onResize)},e}(wn),Mn=function(){function t(t){this.visible=!0,this.components=[],this.view=t}return t.prototype.clear=function(t){Object(c.j)(this.components,(function(t){t.component.destroy()})),this.components=[]},t.prototype.destroy=function(){this.clear()},t.prototype.getComponents=function(){return this.components},t.prototype.changeVisible=function(t){this.visible!==t&&(this.components.forEach((function(e){t?e.component.show():e.component.hide()})),this.visible=t)},t}();var Sn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isLocked=!1,e}return Object(s.c)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"tooltip"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.isVisible=function(){return!1!==this.view.getOptions().tooltip},e.prototype.render=function(){},e.prototype.showTooltip=function(t){if(this.point=t,this.isVisible()){var e=this.view,n=this.getTooltipItems(t);if(n.length){var r=this.getTitle(n),i={x:n[0].x,y:n[0].y};e.emit("tooltip:show",yn.fromData(e,"tooltip:show",Object(s.a)({items:n,title:r},t)));var o=this.getTooltipCfg(),a=o.follow,l=o.showMarkers,u=o.showCrosshairs,h=o.showContent,d=o.marker,f=this.items,p=this.title;if(Object(c.H)(p,r)&&Object(c.H)(f,n)?(this.tooltip&&a&&(this.tooltip.update(t),this.tooltip.show()),this.tooltipMarkersGroup&&this.tooltipMarkersGroup.show()):(e.emit("tooltip:change",yn.fromData(e,"tooltip:change",Object(s.a)({items:n,title:r},t))),(Object(c.I)(h)?h(n):h)&&(this.tooltip||this.renderTooltip(),this.tooltip.update(Object(c.db)({},o,{items:this.getItemsAfterProcess(n),title:r},a?t:{})),this.tooltip.show()),l&&this.renderTooltipMarkers(n,d)),this.items=n,this.title=r,u){var g=Object(c.s)(o,["crosshairs","follow"],!1);this.renderCrosshairs(g?t:i,o)}}else this.hideTooltip()}},e.prototype.hideTooltip=function(){if(this.getTooltipCfg().follow){var t=this.tooltipMarkersGroup;t&&t.hide();var e=this.xCrosshair,n=this.yCrosshair;e&&e.hide(),n&&n.hide();var r=this.tooltip;r&&r.hide(),this.view.emit("tooltip:hide",yn.fromData(this.view,"tooltip:hide",{})),this.point=null}else this.point=null},e.prototype.lockTooltip=function(){this.isLocked=!0,this.tooltip&&this.tooltip.setCapture(!0)},e.prototype.unlockTooltip=function(){this.isLocked=!1;var t=this.getTooltipCfg();this.tooltip&&this.tooltip.setCapture(t.capture)},e.prototype.isTooltipLocked=function(){return this.isLocked},e.prototype.clear=function(){var t=this.tooltip,e=this.xCrosshair,n=this.yCrosshair,r=this.tooltipMarkersGroup;t&&(t.hide(),t.clear()),e&&e.clear(),n&&n.clear(),r&&r.clear(),(null==t?void 0:t.get("customContent"))&&(this.tooltip.destroy(),this.tooltip=null),this.title=null,this.items=null},e.prototype.destroy=function(){this.tooltip&&this.tooltip.destroy(),this.xCrosshair&&this.xCrosshair.destroy(),this.yCrosshair&&this.yCrosshair.destroy(),this.guideGroup&&this.guideGroup.remove(!0),this.reset()},e.prototype.reset=function(){this.items=null,this.title=null,this.tooltipMarkersGroup=null,this.tooltipCrosshairsGroup=null,this.xCrosshair=null,this.yCrosshair=null,this.tooltip=null,this.guideGroup=null,this.isLocked=!1,this.point=null},e.prototype.changeVisible=function(t){if(this.visible!==t){var e=this.tooltip,n=this.tooltipMarkersGroup,r=this.xCrosshair,i=this.yCrosshair;t?(e&&e.show(),n&&n.show(),r&&r.show(),i&&i.show()):(e&&e.hide(),n&&n.hide(),r&&r.hide(),i&&i.hide()),this.visible=t}},e.prototype.getTooltipItems=function(t){var e,n,r,i,o,a,l=this.findItemsFromView(this.view,t);if(l.length){l=Object(c.q)(l);try{for(var u=Object(s.i)(l),h=u.next();!h.done;h=u.next()){var d=h.value;try{for(var f=(r=void 0,Object(s.i)(d)),p=f.next();!p.done;p=f.next()){var g=p.value,v=g.mappingData,y=v.x,m=v.y;g.x=Object(c.C)(y)?y[y.length-1]:y,g.y=Object(c.C)(m)?m[m.length-1]:m}}catch(t){r={error:t}}finally{try{p&&!p.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}}}catch(t){e={error:t}}finally{try{h&&!h.done&&(n=u.return)&&n.call(u)}finally{if(e)throw e.error}}if(!1===this.getTooltipCfg().shared&&l.length>1){var b=l[0],x=Math.abs(t.y-b[0].y);try{for(var O=Object(s.i)(l),j=O.next();!j.done;j=O.next()){var w=j.value,C=Math.abs(t.y-w[0].y);C<=x&&(b=w,x=C)}}catch(t){o={error:t}}finally{try{j&&!j.done&&(a=O.return)&&a.call(O)}finally{if(o)throw o.error}}l=[b]}return function(t){for(var e=[],n=function(n){var r=t[n];Object(c.m)(e,(function(t){return t.color===r.color&&t.name===r.name&&t.value===r.value&&t.title===r.title}))||e.push(r)},r=0;r<t.length;r++)n(r);return e}(Object(c.q)(l))}return[]},e.prototype.layout=function(){},e.prototype.update=function(){if(this.point&&this.showTooltip(this.point),this.tooltip){var t=this.view.getCanvas();this.tooltip.set("region",{start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}})}},e.prototype.isCursorEntered=function(t){if(this.tooltip){var e=this.tooltip.getContainer(),n=this.tooltip.get("capture");if(e&&n){var r=e.getBoundingClientRect(),i=r.x,o=r.y,a=r.width,s=r.height;return new lt(i,o,a,s).isPointIn(t)}}return!1},e.prototype.getTooltipCfg=function(){var t=this.view,e=t.getOptions().tooltip,n=this.processCustomContent(e),r=t.getTheme(),i=Object(c.s)(r,["components","tooltip"],{}),o=Object(c.s)(n,"enterable",i.enterable);return Object(c.h)({},i,n,{capture:!(!o&&!this.isLocked)})},e.prototype.processCustomContent=function(t){if(Object(c.D)(t)||!Object(c.s)(t,"customContent"))return t;var e=t.customContent;return Object(s.a)(Object(s.a)({},t),{customContent:function(t,n){var r=e(t,n)||"";return Object(c.Q)(r)?'<div class="g2-tooltip">'+r+"</div>":r}})},e.prototype.getTitle=function(t){var e=t[0].title||t[0].name;return this.title=e,e},e.prototype.renderTooltip=function(){var t=this.view.getCanvas(),e={start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}},n=this.getTooltipCfg(),r=new Q(Object(s.a)(Object(s.a)({parent:t.get("el").parentNode,region:e},n),{visible:!1,crosshairs:null}));r.init(),this.tooltip=r},e.prototype.renderTooltipMarkers=function(t,e){var n,r,i=this.getTooltipMarkersGroup(),o=this.view.getRootView(),a=o.limitInPlot;try{for(var l=Object(s.i)(t),u=l.next();!u.done;u=l.next()){var h=u.value,d=h.x,f=h.y;if(a||(null==i?void 0:i.getClip())){var p=ft(o.getCoordinate()),g=p.type,v=p.attrs;null==i||i.setClip({type:g,attrs:v})}else null==i||i.setClip(void 0);var y=this.view.getTheme(),m=Object(c.s)(y,["components","tooltip","marker"],{}),b=Object(s.a)(Object(s.a)({fill:h.color,symbol:"circle",shadowColor:h.color},Object(c.I)(e)?Object(s.a)(Object(s.a)({},m),e(h)):e),{x:d,y:f});i.addShape("marker",{attrs:b})}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}},e.prototype.renderCrosshairs=function(t,e){var n=Object(c.s)(e,["crosshairs","type"],"x");"x"===n?(this.yCrosshair&&this.yCrosshair.hide(),this.renderXCrosshairs(t,e)):"y"===n?(this.xCrosshair&&this.xCrosshair.hide(),this.renderYCrosshairs(t,e)):"xy"===n&&(this.renderXCrosshairs(t,e),this.renderYCrosshairs(t,e))},e.prototype.renderXCrosshairs=function(t,e){var n,r,i=this.getViewWithGeometry(this.view).getCoordinate();if(i.isRect)i.isTransposed?(n={x:i.start.x,y:t.y},r={x:i.end.x,y:t.y}):(n={x:t.x,y:i.end.y},r={x:t.x,y:i.start.y});else{var o=dt(i,t),a=i.getCenter(),s=i.getRadius();r=et(a.x,a.y,s,o),n=a}var l=Object(c.h)({start:n,end:r,container:this.getTooltipCrosshairsGroup()},Object(c.s)(e,"crosshairs",{}),this.getCrosshairsText("x",t,e));delete l.type;var u=this.xCrosshair;u?u.update(l):(u=new V.Crosshair.Line(l)).init(),u.render(),u.show(),this.xCrosshair=u},e.prototype.renderYCrosshairs=function(t,e){var n,r,i=this.getViewWithGeometry(this.view).getCoordinate();if(i.isRect){var o=void 0,a=void 0;i.isTransposed?(o={x:t.x,y:i.end.y},a={x:t.x,y:i.start.y}):(o={x:i.start.x,y:t.y},a={x:i.end.x,y:t.y}),n={start:o,end:a},r="Line"}else n={center:i.getCenter(),radius:ht(i,t),startAngle:i.startAngle,endAngle:i.endAngle},r="Circle";delete(n=Object(c.h)({container:this.getTooltipCrosshairsGroup()},n,Object(c.s)(e,"crosshairs",{}),this.getCrosshairsText("y",t,e))).type;var s=this.yCrosshair;s?i.isRect&&"circle"===s.get("type")||!i.isRect&&"line"===s.get("type")?(s=new V.Crosshair[r](n)).init():s.update(n):(s=new V.Crosshair[r](n)).init(),s.render(),s.show(),this.yCrosshair=s},e.prototype.getCrosshairsText=function(t,e,n){var r=Object(c.s)(n,["crosshairs","text"]),i=Object(c.s)(n,["crosshairs","follow"]),o=this.items;if(r){var a=this.getViewWithGeometry(this.view),s=o[0],l=a.getXScale(),u=a.getYScales()[0],h=void 0,d=void 0;if(i){var f=this.view.getCoordinate().invert(e);h=l.invert(f.x),d=u.invert(f.y)}else h=s.data[l.field],d=s.data[u.field];var p="x"===t?h:d;return Object(c.I)(r)?r=r(t,p,o,e):r.content=p,{text:r}}},e.prototype.getGuideGroup=function(){if(!this.guideGroup){var t=this.view.foregroundGroup;this.guideGroup=t.addGroup({name:"tooltipGuide",capture:!1})}return this.guideGroup},e.prototype.getTooltipMarkersGroup=function(){var t=this.tooltipMarkersGroup;return t&&!t.destroyed?(t.clear(),t.show()):((t=this.getGuideGroup().addGroup({name:"tooltipMarkersGroup"})).toFront(),this.tooltipMarkersGroup=t),t},e.prototype.getTooltipCrosshairsGroup=function(){var t=this.tooltipCrosshairsGroup;return t||((t=this.getGuideGroup().addGroup({name:"tooltipCrosshairsGroup",capture:!1})).toBack(),this.tooltipCrosshairsGroup=t),t},e.prototype.findItemsFromView=function(t,e){var n,r;if(!1===t.getOptions().tooltip)return[];var i=dn(t,e,this.getTooltipCfg());try{for(var o=Object(s.i)(t.views),a=o.next();!a.done;a=o.next()){var c=a.value;i=i.concat(this.findItemsFromView(c,e))}}catch(t){n={error:t}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i},e.prototype.getViewWithGeometry=function(t){var e=this;return t.geometries.length?t:Object(c.m)(t.views,(function(t){return e.getViewWithGeometry(t)}))},e.prototype.getItemsAfterProcess=function(t){var e=this.getTooltipCfg().customItems;return(e||function(t){return t})(t)},e}(Mn),En={};function kn(t){return En[t.toLowerCase()]}function In(t,e){En[t.toLowerCase()]=e}var An={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},Pn={interval:function(t){return{enter:{animation:t.isRect?t.isTransposed?"scale-in-x":"scale-in-y":"fade-in"},update:{animation:t.isPolar&&t.isTransposed?"sector-path-update":null},leave:{animation:"fade-out"}}},line:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},path:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},point:{appear:{animation:"zoom-in"},enter:{animation:"zoom-in"},leave:{animation:"zoom-out"}},area:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},polygon:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},schema:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},edge:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},label:{appear:{animation:"fade-in",delay:450},enter:{animation:"fade-in"},update:{animation:"position-update"},leave:{animation:"fade-out"}}},Tn={line:function(){return{animation:"wave-in"}},area:function(){return{animation:"wave-in"}},path:function(){return{animation:"fade-in"}},interval:function(t){var e;return t.isRect?e=t.isTransposed?"grow-in-x":"grow-in-y":(e="grow-in-xy",t.isPolar&&t.isTransposed&&(e="wave-in")),{animation:e}},schema:function(t){return{animation:t.isRect?t.isTransposed?"grow-in-x":"grow-in-y":"grow-in-xy"}},polygon:function(){return{animation:"fade-in",duration:500}},edge:function(){return{animation:"fade-in"}}};function Bn(t,e,n){var r=Pn[t];return r&&(Object(c.I)(r)&&(r=r(e)),r=Object(c.h)({},An,r),n)?r[n]:r}function Ln(t,e,n){var r=Object(c.s)(t.get("origin"),"data","_origin"),i=e.animation,o=function(t,e){return{delay:Object(c.I)(t.delay)?t.delay(e):t.delay,easing:Object(c.I)(t.easing)?t.easing(e):t.easing,duration:Object(c.I)(t.duration)?t.duration(e):t.duration,callback:t.callback,repeat:t.repeat}}(e,r);if(i){var a=kn(i);a&&a(t,o,n)}else t.animate(n.toAttrs,o)}var Dn=function(t){function e(e){var n=t.call(this,e)||this;n.labelShape=[],n.states=[];var r=e.shapeFactory,i=e.container,o=e.offscreenGroup,a=e.elementIndex,s=e.visible,c=void 0===s||s;return n.shapeFactory=r,n.container=i,n.offscreenGroup=o,n.visible=c,n.elementIndex=a,n}return Object(s.c)(e,t),e.prototype.draw=function(t,e){void 0===e&&(e=!1),this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.drawShape(t,e),!1===this.visible&&this.changeVisible(!1)},e.prototype.update=function(t){var e=this.shapeFactory,n=this.shape;if(n){this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.setShapeInfo(n,t);var r=this.getOffscreenGroup(),i=e.drawShape(this.shapeType,t,r);i.cfg.data=this.data,i.cfg.origin=t,i.cfg.element=this,this.syncShapeStyle(n,i,this.getStates(),this.getAnimateCfg("update"))}},e.prototype.destroy=function(){var e=this.shapeFactory,n=this.shape;if(n){var r=this.getAnimateCfg("leave");r?Ln(n,r,{coordinate:e.coordinate,toAttrs:Object(s.a)({},n.attr())}):n.remove(!0)}this.states=[],this.shapeFactory=void 0,this.container=void 0,this.shape=void 0,this.animate=void 0,this.geometry=void 0,this.labelShape=[],this.model=void 0,this.data=void 0,this.offscreenGroup=void 0,this.statesStyle=void 0,t.prototype.destroy.call(this)},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e),e?(this.shape&&this.shape.show(),this.labelShape&&this.labelShape.forEach((function(t){t.show()}))):(this.shape&&this.shape.hide(),this.labelShape&&this.labelShape.forEach((function(t){t.hide()})))},e.prototype.setState=function(t,e){var n=this,r=n.states,i=n.shapeFactory,o=n.model,a=n.shape,s=n.shapeType,c=r.indexOf(t);if(e){if(c>-1)return;r.push(t),"active"!==t&&"selected"!==t||null==a||a.toFront()}else{if(-1===c)return;if(r.splice(c,1),"active"===t||"selected"===t){var l=this.geometry,u=l.sortZIndex,h=l.zIndexReversed?this.geometry.elements.length-this.elementIndex:this.elementIndex;u?a.setZIndex(h):a.set("zIndex",h)}}var d=i.drawShape(s,o,this.getOffscreenGroup());r.length?this.syncShapeStyle(a,d,r,null):this.syncShapeStyle(a,d,["reset"],null),d.remove(!0);var f={state:t,stateStatus:e,element:this,target:this.container};this.container.emit("statechange",f),Object(V.propagationDelegate)(this.shape,"statechange",f)},e.prototype.clearStates=function(){var t=this,e=this.states;Object(c.j)(e,(function(e){t.setState(e,!1)})),this.states=[]},e.prototype.hasState=function(t){return this.states.includes(t)},e.prototype.getStates=function(){return this.states},e.prototype.getData=function(){return this.data},e.prototype.getModel=function(){return this.model},e.prototype.getBBox=function(){var t=this.shape,e=this.labelShape,n={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return t&&(n=t.getCanvasBBox()),e&&e.forEach((function(t){var e=t.getCanvasBBox();n.x=Math.min(e.x,n.x),n.y=Math.min(e.y,n.y),n.minX=Math.min(e.minX,n.minX),n.minY=Math.min(e.minY,n.minY),n.maxX=Math.max(e.maxX,n.maxX),n.maxY=Math.max(e.maxY,n.maxY)})),n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n},e.prototype.getStatesStyle=function(){if(!this.statesStyle){var t=this.shapeType,e=this.geometry,n=this.shapeFactory,r=e.stateOption,i=n.defaultShapeType,o=n.theme[t]||n.theme[i];this.statesStyle=Object(c.h)({},o,r)}return this.statesStyle},e.prototype.getStateStyle=function(t,e){var n=this.getStatesStyle(),r=Object(c.s)(n,[t,"style"],{}),i=r[e]||r;return Object(c.I)(i)?i(this):i},e.prototype.getAnimateCfg=function(t){var e=this,n=this.animate;if(n){var r=n[t];return r?Object(s.a)(Object(s.a)({},r),{callback:function(){var t;Object(c.I)(r.callback)&&r.callback(),null===(t=e.geometry)||void 0===t||t.emit(u.AFTER_DRAW_ANIMATE)}}):r}return null},e.prototype.drawShape=function(t,e){var n;void 0===e&&(e=!1);var r=this.shapeFactory,i=this.container,o=this.shapeType;if(this.shape=r.drawShape(o,t,i),this.shape){this.setShapeInfo(this.shape,t);var a=this.shape.cfg.name;a?Object(c.Q)(a)&&(this.shape.cfg.name=["element",a]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var l=e?"enter":"appear",h=this.getAnimateCfg(l);h&&(null===(n=this.geometry)||void 0===n||n.emit(u.BEFORE_DRAW_ANIMATE),Ln(this.shape,h,{coordinate:r.coordinate,toAttrs:Object(s.a)({},this.shape.attr())}))}},e.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},e.prototype.setShapeInfo=function(t,e){var n=this;(t.cfg.origin=e,t.cfg.element=this,t.isGroup())&&t.get("children").forEach((function(t){n.setShapeInfo(t,e)}))},e.prototype.syncShapeStyle=function(t,e,n,r,i){var o,a=this;if(void 0===n&&(n=[]),void 0===i&&(i=0),t&&e){var s=t.get("clipShape"),l=e.get("clipShape");if(this.syncShapeStyle(s,l,n,r),t.isGroup())for(var h=t.get("children"),d=e.get("children"),f=0;f<h.length;f++)this.syncShapeStyle(h[f],d[f],n,r,i+f);else{if(!Object(c.G)(n)&&!Object(c.H)(n,["reset"])){var p=t.get("name");Object(c.C)(p)&&(p=p[1]),Object(c.j)(n,(function(t){if("element-background"!==e.get("name")){var n=a.getStateStyle(t,p||i);e.attr(n)}}))}var g=ot(t,e);this.animate?r?(null===(o=this.geometry)||void 0===o||o.emit(u.BEFORE_DRAW_ANIMATE),Ln(t,r,{coordinate:this.shapeFactory.coordinate,toAttrs:g,shapeModel:this.model})):Object(c.G)(n)?t.attr(g):(t.stopAnimate(),t.animate(g,{duration:300})):t.attr(g)}}},e.prototype.getShapeType=function(t){var e=Object(c.s)(t,"shape");return Object(c.C)(e)?e[0]:e},e}(w),Fn={},Rn={};function Nn(t,e){Fn[t.toLowerCase()]=e}function zn(t,e){Rn[t.toLowerCase()]=e}var Wn={coordinate:null,defaultShapeType:null,theme:null,getShapePoints:function(t,e){var n=this.getShape(t);return n.getPoints?n.getPoints(e):this.getDefaultPoints(e)},getShape:function(t){var e=this[t]||this[this.defaultShapeType];return e.coordinate=this.coordinate,e},getDefaultPoints:function(){return[]},getDefaultStyle:function(t){return Object(c.s)(t,[this.defaultShapeType,"default","style"],{})},getMarker:function(t,e){var n=this.getShape(t);if(!n.getMarker){var r=this.defaultShapeType;n=this.getShape(r)}var i=this.theme,o=Object(c.s)(i,[t,"default"],{}),a=n.getMarker(e);return Object(c.h)({},o,a)},drawShape:function(t,e,n){return this.getShape(t).draw(e,n)}},$n={coordinate:null,parsePath:function(t){var e=this.coordinate,n=Gt(t);return n=e.isPolar?$t(e,n):function(t,e){var n=[];return Object(c.j)(e,(function(e){switch(e[0].toLowerCase()){case"m":case"l":case"c":n.push(Ft(e,t));break;case"a":n.push(Rt(e,t));break;case"z":default:n.push(e)}})),n}(e,n)},parsePoint:function(t){return this.coordinate.convert(t)},parsePoints:function(t){var e=this.coordinate;return t.map((function(t){return e.convert(t)}))},draw:function(t,e){}},Hn={};function Yn(t,e){var n=Object(c.wb)(t),r=Object(s.a)(Object(s.a)(Object(s.a)({},Wn),e),{geometryType:t});return Hn[n]=r,r}function Vn(t,e,n){var r=Object(c.wb)(t),i=Hn[r],o=Object(s.a)(Object(s.a)({},$n),n);return i[e]=o,o}function Gn(t){var e=Object(c.wb)(t);return Hn[e]}function Kn(t,e){return Object(c.nb)(["color","shape","size","x","y","isInCircle","data","style","defaultStyle","points","mappingData"],(function(n){return!Object(c.H)(t[n],e[n])}))}function Xn(t){return Object(c.C)(t)?t:t.split("*")}function Un(t,e){for(var n=[],r=[],i=[],o=new Map,a=0;a<e.length;a++){var s=e[a];t[s]?r.push(s):n.push(s),o.set(s,!0)}return Object.keys(t).forEach((function(t){o.has(t)||i.push(t)})),{added:n,updated:r,removed:i}}var qn=function(t){function e(e){var n=t.call(this,e)||this;n.type="base",n.attributes={},n.elements=[],n.elementsMap={},n.animateOption=!0,n.attributeOption={},n.lastElementsMap={},n.generatePoints=!1,n.beforeMappingData=null,n.adjusts={},n.idFields=[],n.hasSorted=!1,n.isCoordinateChanged=!1;var r=e.container,i=e.labelsContainer,o=e.coordinate,a=e.data,s=e.sortable,c=void 0!==s&&s,l=e.visible,u=void 0===l||l,h=e.theme,d=e.scales,f=void 0===d?{}:d,p=e.scaleDefs,g=void 0===p?{}:p,v=e.intervalPadding,y=e.dodgePadding,m=e.maxColumnWidth,b=e.minColumnWidth,x=e.columnWidthRatio,O=e.roseWidthRatio,j=e.multiplePieWidthRatio,w=e.zIndexReversed,C=e.sortZIndex,_=e.useDeferredLabel;return n.container=r,n.labelsContainer=i,n.coordinate=o,n.data=a,n.sortable=c,n.visible=u,n.userTheme=h,n.scales=f,n.scaleDefs=g,n.intervalPadding=v,n.dodgePadding=y,n.maxColumnWidth=m,n.minColumnWidth=b,n.columnWidthRatio=x,n.roseWidthRatio=O,n.multiplePieWidthRatio=j,n.zIndexReversed=w,n.sortZIndex=C,n.useDeferredLabel=_?"number"==typeof _?_:1/0:null,n}return Object(s.c)(e,t),e.prototype.position=function(t){var e=t;Object(c.P)(t)||(e={fields:Xn(t)});var n=Object(c.s)(e,"fields");return 1===n.length&&(n.unshift("1"),Object(c.lb)(e,"fields",n)),Object(c.lb)(this.attributeOption,"position",e),this},e.prototype.color=function(t,e){return this.createAttrOption("color",t,e),this},e.prototype.shape=function(t,e){return this.createAttrOption("shape",t,e),this},e.prototype.size=function(t,e){return this.createAttrOption("size",t,e),this},e.prototype.adjust=function(t){var e=t;return(Object(c.Q)(t)||Object(c.P)(t))&&(e=[t]),Object(c.j)(e,(function(t,n){Object(c.O)(t)||(e[n]={type:t})})),this.adjustOption=e,this},e.prototype.style=function(t,e){if(Object(c.Q)(t)){var n=Xn(t);this.styleOption={fields:n,callback:e}}else{var r=t,i=(n=r.fields,r.callback),o=r.cfg;this.styleOption=n||i||o?t:{cfg:t}}return this},e.prototype.tooltip=function(t,e){if(Object(c.Q)(t)){var n=Xn(t);this.tooltipOption={fields:n,callback:e}}else this.tooltipOption=t;return this},e.prototype.animate=function(t){return this.animateOption=t,this},e.prototype.label=function(t,e,n){if(Object(c.Q)(t)){var r={},i=Xn(t);r.fields=i,Object(c.I)(e)?r.callback=e:Object(c.P)(e)&&(r.cfg=e),n&&(r.cfg=n),this.labelOption=r}else this.labelOption=t;return this},e.prototype.state=function(t){return this.stateOption=t,this},e.prototype.customInfo=function(t){return this.customOption=t,this},e.prototype.init=function(t){void 0===t&&(t={}),this.setCfg(t),this.initAttributes(),this.processData(this.data),this.adjustScale()},e.prototype.update=function(t){void 0===t&&(t={});var e=t.data,n=t.isDataChanged,r=t.isCoordinateChanged,i=this.attributeOption,o=this.lastAttributeOption;Object(c.H)(i,o)?!e||!n&&Object(c.H)(e,this.data)?this.setCfg(t):(this.setCfg(t),this.initAttributes(),this.processData(e)):this.init(t),this.adjustScale(),this.isCoordinateChanged=r},e.prototype.paint=function(t){var e=this;void 0===t&&(t=!1),this.animateOption&&(this.animateOption=Object(c.h)({},Bn(this.type,this.coordinate),this.animateOption)),this.defaultSize=void 0,this.elementsMap={},this.elements=[],this.getOffscreenGroup().clear();var n=this.beforeMappingData,r=this.beforeMapping(n);this.dataArray=new Array(r.length);for(var i=0;i<r.length;i++){var o=r[i];this.dataArray[i]=this.mapping(o)}if(this.updateElements(this.dataArray,t),this.lastElementsMap=this.elementsMap,this.canDoGroupAnimation(t)){var a=this.container,l=this.type,u=this.coordinate,h=Object(c.s)(this.animateOption,"appear"),d=this.getYScale(),f=u.convert({x:0,y:d.scale(this.getYMinValue())});!function(t,e,n,r,i){if(Tn[n]){var o=Tn[n](r),a=kn(Object(c.s)(o,"animation",""));if(a){var l=Object(s.a)(Object(s.a)(Object(s.a)({},An.appear),o),e);t.stopAnimate(),a(t,l,{coordinate:r,minYPoint:i,toAttrs:null})}}}(a,h,l,u,f)}if(this.labelOption){var p=this.useDeferredLabel,g=function(){return e.renderLabels(Object(c.q)(e.dataArray),t)}.bind(this);if("number"==typeof p){var v="number"==typeof p&&p!==1/0?p:0;if(window.requestIdleCallback){var y=v&&v!==1/0?{timeout:v}:void 0;window.requestIdleCallback(g,y)}else setTimeout(g,v)}else g()}this.lastAttributeOption=Object(s.a)({},this.attributeOption),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this.container,e=this.geometryLabel,n=this.offscreenGroup;t&&t.clear(),e&&e.clear(),n&&n.clear(),this.scaleDefs=void 0,this.attributes={},this.scales={},this.elementsMap={},this.lastElementsMap={},this.elements=[],this.adjusts={},this.dataArray=null,this.beforeMappingData=null,this.lastAttributeOption=void 0,this.defaultSize=void 0,this.idFields=[],this.groupScales=void 0,this.hasSorted=!1,this.isCoordinateChanged=!1},e.prototype.destroy=function(){this.clear(),this.container.remove(!0),this.offscreenGroup&&(this.offscreenGroup.remove(!0),this.offscreenGroup=null),this.geometryLabel&&(this.geometryLabel.destroy(),this.geometryLabel=null),this.theme=void 0,this.shapeFactory=void 0,t.prototype.destroy.call(this)},e.prototype.getGroupScales=function(){return this.groupScales},e.prototype.getAttribute=function(t){return this.attributes[t]},e.prototype.getXScale=function(){return this.getAttribute("position").scales[0]},e.prototype.getYScale=function(){return this.getAttribute("position").scales[1]},e.prototype.getGroupAttributes=function(){var t=[];return Object(c.j)(this.attributes,(function(e){v.includes(e.type)&&t.push(e)})),t},e.prototype.getDefaultValue=function(t){var e,n=this.getAttribute(t);return n&&Object(c.G)(n.scales)&&(e=n.values[0]),e},e.prototype.getAttributeValues=function(t,e){for(var n=[],r=t.scales,i=0,o=r.length;i<o;i++){var a=r[i],c=a.field;a.isIdentity?n.push(a.values):n.push(e[c])}return t.mapping.apply(t,Object(s.g)([],Object(s.e)(n),!1))},e.prototype.getAdjust=function(t){return this.adjusts[t]},e.prototype.getCoordinate=function(){return this.coordinate},e.prototype.getData=function(){return this.data},e.prototype.getShapeMarker=function(t,e){return this.getShapeFactory().getMarker(t,e)},e.prototype.getElementsBy=function(t){return this.elements.filter((function(e){return t(e)}))},e.prototype.getElements=function(){return this.elements},e.prototype.getElementId=function(t){var e=(t=Object(c.C)(t)?t[0]:t)._origin;if(this.idFields.length){for(var n=e[this.idFields[0]],r=1;r<this.idFields.length;r++)n+="-"+e[this.idFields[r]];return n}var i,o,a=this.type,s=this.getXScale(),l=this.getYScale(),u=s.field||"x",h=e[l.field||"y"];i="identity"===s.type?s.values[0]:e[u],o="interval"===a||"schema"===a?"".concat(i):"line"===a||"area"===a||"path"===a?a:"".concat(i,"-").concat(h);for(var d=this.groupScales,f=(r=0,d.length);r<f;r++){var p=d[r].field;o="".concat(o,"-").concat(e[p])}var g=this.getAdjust("dodge");if(g){var v=g.dodgeBy;v&&(o="".concat(o,"-").concat(e[v]))}return this.getAdjust("jitter")&&(o="".concat(o,"-").concat(t.x,"-").concat(t.y)),o},e.prototype.getScaleFields=function(){var t=[],e=new Map,n=this.attributeOption,r=this.labelOption,i=this.tooltipOption;for(var o in n)if(n.hasOwnProperty(o)){var a=n[o];a.fields?ct(a.fields,t,e):a.values&&ct(a.values,t,e)}return r&&r.fields&&ct(r.fields,t,e),Object(c.O)(i)&&i.fields&&ct(i.fields,t,e),t},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e);for(var n=this.elements,r=0,i=n.length;r<i;r++){n[r].changeVisible(e)}e?(this.container&&this.container.show(),this.labelsContainer&&this.labelsContainer.show()):(this.container&&this.container.hide(),this.labelsContainer&&this.labelsContainer.hide())},e.prototype.getFields=function(){var t=new Map,e=[];return Object.values(this.attributeOption).forEach((function(n){((null==n?void 0:n.fields)||[]).forEach((function(n){t.has(n)||e.push(n),t.set(n,!0)}))}),[]),e},e.prototype.getGroupFields=function(){for(var t=[],e=new Map,n=0,r=v.length;n<r;n++){var i=v[n],o=this.attributeOption[i];o&&o.fields&&ct(o.fields,t,e)}return t},e.prototype.getXYFields=function(){var t=Object(s.e)(this.attributeOption.position.fields,2);return[t[0],t[1]]},e.prototype.getXField=function(){return Object(c.s)(this.getXYFields(),[0])},e.prototype.getYField=function(){return Object(c.s)(this.getXYFields(),[1])},e.prototype.getShapes=function(){return this.elements.map((function(t){return t.shape}))},e.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},e.prototype.sort=function(t){if(!this.hasSorted)for(var e=this.getXScale(),n=e.field,r=0;r<t.length;r++){t[r].sort((function(t,r){return e.translate(t._origin[n])-e.translate(r._origin[n])}))}this.hasSorted=!0},e.prototype.adjustScale=function(){var t=this.getYScale();t&&this.getAdjust("stack")&&this.updateStackRange(t,this.beforeMappingData)},e.prototype.getShapeFactory=function(){var t=this.shapeType;if(Gn(t))return this.shapeFactory||(this.shapeFactory=Object(c.e)(Gn(t))),this.shapeFactory.coordinate=this.coordinate,this.shapeFactory.theme=this.theme.geometries[t]||{},this.shapeFactory},e.prototype.createShapePointsCfg=function(t){var e=this.getXScale(),n=this.getYScale();return{x:this.normalizeValues(t[e.field],e),y:n?this.normalizeValues(t[n.field],n):t.y?t.y:.1,y0:n?n.scale(this.getYMinValue()):void 0}},e.prototype.createElement=function(t,e,n){void 0===n&&(n=!1);var r=this.container,i=this.getDrawCfg(t),o=this.getShapeFactory(),a=new Dn({shapeFactory:o,container:r,offscreenGroup:this.getOffscreenGroup(),elementIndex:e});return a.animate=this.animateOption,a.geometry=this,a.draw(i,n),a},e.prototype.getDrawCfg=function(t){var e=t._origin,n={mappingData:t,data:e,x:t.x,y:t.y,color:t.color,size:t.size,isInCircle:this.coordinate.isPolar,customInfo:this.customOption},r=t.shape;!r&&this.getShapeFactory()&&(r=this.getShapeFactory().defaultShapeType),n.shape=r;var i=this.theme.geometries[this.shapeType];n.defaultStyle=Object(c.s)(i,[r,"default"],{}).style,!n.defaultStyle&&this.getShapeFactory()&&(n.defaultStyle=this.getShapeFactory().getDefaultStyle(i));var o=this.styleOption;return o&&(n.style=this.getStyleCfg(o,e)),this.generatePoints&&(n.points=t.points,n.nextPoints=t.nextPoints),n},e.prototype.updateElements=function(t,e){var n,r,i,o,a,c;void 0===e&&(e=!1);for(var l=new Map,u=[],h=new Map,d=0,f=0;f<t.length;f++)for(var p=t[f],g=0;g<p.length;g++){var v=p[g],y=this.getElementId(v),m=l.has(y)?"".concat(y,"-").concat(f,"-").concat(g):y;u.push(m),l.set(m,v),h.set(m,d),d++}this.elements=new Array(d);var b=Un(this.lastElementsMap,u),x=b.added,O=b.updated,j=b.removed;try{for(var w=Object(s.i)(x),C=w.next();!C.done;C=w.next()){y=C.value,v=l.get(y),f=h.get(y);var _=this.createElement(v,f,e);this.elements[f]=_,this.elementsMap[y]=_,_.shape&&_.shape.set("zIndex",this.zIndexReversed?this.elements.length-f:f)}}catch(t){n={error:t}}finally{try{C&&!C.done&&(r=w.return)&&r.call(w)}finally{if(n)throw n.error}}try{for(var M=Object(s.i)(O),S=M.next();!S.done;S=M.next()){y=S.value,_=this.lastElementsMap[y],v=l.get(y);var E=this.getDrawCfg(v),k=_.getModel();f=h.get(y);(this.isCoordinateChanged||Kn(E,k))&&(_.animate=this.animateOption,_.update(E)),this.elements[f]=_,this.elementsMap[y]=_,_.shape&&_.shape.set("zIndex",this.zIndexReversed?this.elements.length-f:f)}}catch(t){i={error:t}}finally{try{S&&!S.done&&(o=M.return)&&o.call(M)}finally{if(i)throw i.error}}this.container&&this.container.sort();try{for(var I=Object(s.i)(j),A=I.next();!A.done;A=I.next()){y=A.value;(_=this.lastElementsMap[y]).animate=this.animateOption,_.destroy()}}catch(t){a={error:t}}finally{try{A&&!A.done&&(c=I.return)&&c.call(I)}finally{if(a)throw a.error}}},e.prototype.getLabelType=function(){var t=this.labelOption,e=this.coordinate,n=this.type,r=e.type,i=e.isTransposed,o=Object(c.s)(t,["cfg","type"]);return o||(o="polar"===r?i?"pie":"polar":"theta"===r?"pie":"interval"===n||"polygon"===n?"interval":"base"),o},e.prototype.getYMinValue=function(){var t=this.getYScale(),e=t.min,n=t.max;return e>=0?e:n<=0?n:0},e.prototype.createAttrOption=function(t,e,n){if(Object(c.K)(e)||Object(c.O)(e))Object(c.O)(e)&&Object(c.H)(Object.keys(e),["values"])?Object(c.lb)(this.attributeOption,t,{fields:e.values}):Object(c.lb)(this.attributeOption,t,e);else{var r={};Object(c.M)(e)?r.values=[e]:r.fields=Xn(e),n&&(Object(c.I)(n)?r.callback=n:r.values=n),Object(c.lb)(this.attributeOption,t,r)}},e.prototype.initAttributes=function(){var t=this,e=this.attributes,n=this.attributeOption,r=this.theme,i=this.shapeType;this.groupScales=[];var o={},a=function(a){if(n.hasOwnProperty(a)){var l=n[a];if(!l)return{value:void 0};var u=Object(s.a)({},l),h=u.callback,d=u.values,f=u.fields,p=(void 0===f?[]:f).map((function(e){var n=t.scales[e];!o[e]&&v.includes(a)&&("cat"===gt(n,Object(c.s)(t.scaleDefs,e),a,t.type)&&(t.groupScales.push(n),o[e]=!0));return n}));u.scales=p,"position"!==a&&1===p.length&&"identity"===p[0].type?u.values=p[0].values:h||d||("size"===a?u.values=r.sizes:"shape"===a?u.values=r.shapes[i]||[]:"color"===a&&(p.length?u.values=p[0].values.length<=10?r.colors10:r.colors20:u.values=r.colors10));var g=D(a);e[a]=new g(u)}};for(var l in n){var u=a(l);if("object"==typeof u)return u.value}},e.prototype.processData=function(t){var e,n;this.hasSorted=!1;for(var r=this.getAttribute("position").scales.filter((function(t){return t.isCategory})),i=this.groupData(t),o=[],a=0,c=i.length;a<c;a++){for(var l=i[a],u=[],h=0,d=l.length;h<d;h++){var f=l[h],p={};for(var g in f)p[g]=f[g];p._origin=f;try{for(var v=(e=void 0,Object(s.i)(r)),y=v.next();!y.done;y=v.next()){var m=y.value,b=m.field;p[b]=m.translate(p[b])}}catch(t){e={error:t}}finally{try{y&&!y.done&&(n=v.return)&&n.call(v)}finally{if(e)throw e.error}}u.push(p)}o.push(u)}var x=this.adjustData(o);return this.beforeMappingData=x,x},e.prototype.adjustData=function(t){var e=this.adjustOption,n=this.intervalPadding,r=this.dodgePadding,i=this.theme,o=this.maxColumnWidth||i.maxColumnWidth,a=this.minColumnWidth||i.minColumnWidth,l=this.columnWidthRatio||i.columnWidthRatio,u=t;if(e){var h=this.getXScale(),d=this.getYScale(),f=h.field,p=d?d.field:null,g=ut(this.coordinate),v=h.values.length,y=this.getAttribute("size"),m=void 0;y&&(m=y.values[0]);for(var b=0,x=e.length;b<x;b++){var O=e[b],j=Object(s.a)({xField:f,yField:p,intervalPadding:n,dodgePadding:r,xDimensionLength:g,groupNum:v,defaultSize:m,maxColumnWidth:o,minColumnWidth:a,columnWidthRatio:l},O),w=O.type;if("dodge"===w){var C=[];if(h.isCategory||"identity"===h.type)C.push("x");else{if(d)throw new Error("dodge is not support linear attribute, please use category attribute!");C.push("y")}j.adjustNames=C,j.dodgeRatio=l}else if("stack"===w){var M=this.coordinate;if(!d){j.height=M.getHeight();var S=this.getDefaultValue("size")||3;j.size=S}!M.isTransposed&&Object(c.K)(j.reverseOrder)&&(j.reverseOrder=!0)}var E=Object(_.getAdjust)(w);j.dimValuesMap={},h&&h.values&&(j.dimValuesMap[h.field]=h.values.map((function(t){return h.translate(t)})));var k=new E(j);u=k.process(u),this.adjusts[w]=k}}return u},e.prototype.groupData=function(t){for(var e=this.getGroupScales(),n=this.scaleDefs,r={},i=[],o=0;o<e.length;o++){var a=e[o].field;i.push(a),Object(c.s)(n,[a,"values"])&&(r[a]=n[a].values)}return function(t,e,n){var r,i;if(void 0===n&&(n={}),!e)return[t];var o=Object(c.x)(t,e),a=[];if(1===e.length&&n[e[0]]){var l=n[e[0]];try{for(var u=Object(s.i)(l),h=u.next();!h.done;h=u.next()){var d=h.value,f=o["_".concat(d)];f&&a.push(f)}}catch(t){r={error:t}}finally{try{h&&!h.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}}else for(var p in o)if(o.hasOwnProperty(p)){var g=o[p];a.push(g)}return a}(t,i,r)},e.prototype.updateStackRange=function(t,e){for(var n=Object(c.q)(e),r=t.field,i=t.min,o=t.max,a=0;a<n.length;a++){var s=n[a],l=Math.min.apply(null,s[r]),u=Math.max.apply(null,s[r]);l<i&&(i=l),u>o&&(o=u)}var h=this.scaleDefs,d={};i<t.min&&!Object(c.s)(h,[r,"min"])&&(d.min=i),o>t.max&&!Object(c.s)(h,[r,"max"])&&(d.max=o),t.change(d)},e.prototype.beforeMapping=function(t){var e=t;if(this.sortable&&this.sort(e),this.generatePoints)for(var n=0,r=e.length;n<r;n++){var i=e[n];this.generateShapePoints(i);var o=e[n+1];o&&(this.generateShapePoints(o),i[0].nextPoints=o[0].points)}return e},e.prototype.generateShapePoints=function(t){for(var e=this.getShapeFactory(),n=this.getAttribute("shape"),r=0;r<t.length;r++){var i=t[r],o=this.createShapePointsCfg(i),a=n?this.getAttributeValues(n,i):null,s=e.getShapePoints(a,o);i.points=s}},e.prototype.normalizeValues=function(t,e){var n=[];if(Object(c.C)(t))for(var r=0;r<t.length;r++){var i=t[r];n.push(e.scale(i))}else n=e.scale(t);return n},e.prototype.mapping=function(t){for(var e=this.attributes,n=[],r=0;r<t.length;r++){var i=t[r],o={_origin:i._origin,points:i.points,nextPoints:i.nextPoints};for(var a in e)if(e.hasOwnProperty(a)){var s=e[a],l=s.names,u=this.getAttributeValues(s,i);if(l.length>1)for(var h=0;h<u.length;h+=1){var d=u[h];o[l[h]]=Object(c.C)(d)&&1===d.length?d[0]:d}else o[l[0]]=1===u.length?u[0]:u}this.convertPoint(o),n.push(o)}return n},e.prototype.convertPoint=function(t){var e,n,r,i=t.x,o=t.y,a=this.coordinate;if(Object(c.C)(i)&&Object(c.C)(o)){e=[],n=[];for(var s=0,l=0,u=i.length,h=o.length;s<u&&l<h;s+=1,l+=1)r=a.convert({x:i[s],y:o[l]}),e.push(r.x),n.push(r.y)}else if(Object(c.C)(o)){n=[];for(var d=0;d<o.length;d++){var f=o[d];r=a.convert({x:i,y:f}),e&&e!==r.x?(Object(c.C)(e)||(e=[e]),e.push(r.x)):e=r.x,n.push(r.y)}}else if(Object(c.C)(i)){e=[];for(d=0;d<i.length;d++){var p=i[d];r=a.convert({x:p,y:o}),n&&n!==r.y?(Object(c.C)(n)||(n=[n]),n.push(r.y)):n=r.y,e.push(r.x)}}else{var g=a.convert({x:i,y:o});e=g.x,n=g.y}t.x=e,t.y=n},e.prototype.getStyleCfg=function(t,e){var n=t.fields,r=void 0===n?[]:n,i=t.callback,o=t.cfg;if(o)return o;var a=r.map((function(t){return e[t]}));return i.apply(void 0,Object(s.g)([],Object(s.e)(a),!1))},e.prototype.setCfg=function(t){var e=this,n=t.coordinate,r=t.data,i=t.theme,o=t.scaleDefs;n&&(this.coordinate=n),r&&(this.data=r),o&&(this.scaleDefs=o,this.idFields=[],Object(c.j)(o,(function(t,n){t&&t.key&&e.idFields.push(n)}))),i&&(this.theme=this.userTheme?Object(c.h)({},i,this.userTheme):i)},e.prototype.renderLabels=function(t,e){return void 0===e&&(e=!1),Object(s.b)(this,void 0,void 0,(function(){var n,r,i,o,a,l,h,d,f,p,g,v,y=this;return Object(s.d)(this,(function(m){switch(m.label){case 0:return n=this.geometryLabel,this.emit(u.BEFORE_RENDER_LABEL),n||(r=this.getLabelType(),i=Fn[r.toLowerCase()],n=new i(this),this.geometryLabel=n),[4,n.render(t,e)];case 1:m.sent(),o=n.labelsRenderer.shapesMap,a=new Map,Object(c.j)(o,(function(t,e){for(var n=t.getChildren()||[],r=0;r<n.length;r++){var i=n[r],o=y.elementsMap[i.get("elementId")||e.split(" ")[0]];if(o){i.cfg.name=["element","label"],i.cfg.element=o;var s=a.get(o)||new Set;s.add(t),a.set(o,s)}}}));try{for(l=Object(s.i)(a.entries()),h=l.next();!h.done;h=l.next())d=Object(s.e)(h.value,2),f=d[0],p=d[1],f.labelShape=Object(s.g)([],Object(s.e)(p),!1)}catch(t){g={error:t}}finally{try{h&&!h.done&&(v=l.return)&&v.call(l)}finally{if(g)throw g.error}}return this.emit(u.AFTER_RENDER_LABEL),[2]}}))}))},e.prototype.canDoGroupAnimation=function(t){return!t&&this.animateOption&&(void 0===Object(c.s)(this.animateOption,"appear")||Object(c.s)(this.animateOption,"appear")&&void 0===Object(c.s)(this.animateOption,["appear","animation"]))},e}(w),Zn=R.a.transform;function Qn(t,e,n){var r=Zn(t.getMatrix(),[["t",e,n]]);t.setMatrix(r)}function Jn(t,e){var n=function(t,e){var n=t.attr(),r=n.x,i=n.y;return Zn(t.getMatrix(),[["t",-r,-i],["r",e],["t",r,i]])}(t,e);t.setMatrix(n)}function tr(t){return t.find((function(t){return"text"===t.get("type")}))}function er(t,e,n){void 0===n&&(n=[0,0,0,0]);var r=t&&t.getChildren()[0];if(r){var i=r.clone();(null==e?void 0:e.rotate)&&Jn(i,-e.rotate);var o=i.getCanvasBBox(),a=o.x,s=o.y,l=o.width,u=o.height;i.destroy();var h=n;return Object(c.K)(h)?h=[2,2,2,2]:Object(c.M)(h)&&(h=new Array(4).fill(h)),{x:a-h[3],y:s-h[0],width:l+h[1]+h[3],height:u+h[0]+h[2],rotation:(null==e?void 0:e.rotate)||0}}return{x:0,y:0,width:0,height:0,rotation:0}}function nr(t,e){var n=t.getBBox();return Object(c.nb)(e,(function(t){var e,r,i,o=t.getBBox();return e=n,r=o,void 0===(i=2)&&(i=0),Math.max(0,Math.min(e.x+e.width+i,r.x+r.width+i)-Math.max(e.x-i,r.x-i))*Math.max(0,Math.min(e.y+e.height+i,r.y+r.height+i)-Math.max(e.y-i,r.y-i))>0}))}var rr=function(){function t(t){this.shapesMap={};var e=t.layout,n=t.container;this.layout=e,this.container=n}return t.prototype.render=function(t,e,n){return void 0===n&&(n=!1),Object(s.b)(this,void 0,void 0,(function(){var r,i,o,a,l,u,h,d,f=this;return Object(s.d)(this,(function(p){switch(p.label){case 0:if(r={},i=this.createOffscreenGroup(),!t.length)return[3,2];try{for(o=Object(s.i)(t),a=o.next();!a.done;a=o.next())(l=a.value)&&(r[l.id]=this.renderLabel(l,i))}catch(t){h={error:t}}finally{try{a&&!a.done&&(d=o.return)&&d.call(o)}finally{if(h)throw h.error}}return[4,this.doLayout(t,e,r)];case 1:p.sent(),this.renderLabelLine(t,r),this.renderLabelBackground(t,r),this.adjustLabel(t,r),p.label=2;case 2:return u=this.shapesMap,Object(c.j)(r,(function(t,e){if(t.destroyed)delete r[e];else{if(u[e]){var i=t.get("data"),o=t.get("origin"),a=t.get("coordinate"),l=t.get("animateCfg"),h=u[e];!function t(e,n,r){var i=r.data,o=r.origin,a=r.animateCfg,s=r.coordinate,l=Object(c.s)(a,"update");e.set("data",i),e.set("origin",o),e.set("animateCfg",a),e.set("coordinate",s),e.set("visible",n.get("visible")),(e.getChildren()||[]).forEach((function(c,u){var h=n.getChildByIndex(u);if(h){c.set("data",i),c.set("origin",o),c.set("animateCfg",a),c.set("coordinate",s);var d=ot(c,h);l?Ln(c,l,{toAttrs:d,coordinate:s}):c.attr(d),h.isGroup()&&t(c,h,r)}else e.removeChild(c),c.remove(!0)})),Object(c.j)(n.getChildren(),(function(t,n){Object(c.C)(e.getChildren())&&n>=e.getCount()&&(t.destroyed||e.add(t))}))}(h,r[e],{data:i,origin:o,animateCfg:l,coordinate:a}),r[e]=h}else{if(f.container.destroyed)return;f.container.add(t);var d=Object(c.s)(t.get("animateCfg"),n?"enter":"appear");d&&Ln(t,d,{toAttrs:Object(s.a)({},t.attr()),coordinate:t.get("coordinate")})}delete u[e]}})),Object(c.j)(u,(function(t){var e=Object(c.s)(t.get("animateCfg"),"leave");e?Ln(t,e,{toAttrs:null,coordinate:t.get("coordinate")}):t.remove(!0)})),this.shapesMap=r,i.destroy(),[2]}}))}))},t.prototype.clear=function(){this.container.clear(),this.shapesMap={}},t.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null},t.prototype.renderLabel=function(t,e){var n,r=t.id,i=t.elementId,o=t.data,a=t.mappingData,l=t.coordinate,u=t.animate,h=t.content,d={id:r,elementId:i,capture:t.capture,data:o,origin:Object(s.a)(Object(s.a)({},a),{data:a._origin}),coordinate:l},f=e.addGroup(Object(s.a)({name:"label",animateCfg:!1!==this.animate&&null!==u&&!1!==u&&Object(c.h)({},this.animate,u)},d));if(h.isGroup&&h.isGroup()||h.isShape&&h.isShape()){var p=h.getCanvasBBox(),g=p.width,v=p.height,y=Object(c.s)(t,"textAlign","left"),m=t.x;"center"===y?m-=g/2:"right"!==y&&"end"!==y||(m-=g),Qn(h,m,t.y-v/2),n=h,f.add(h)}else{var b=Object(c.s)(t,["style","fill"]);n=f.addShape("text",Object(s.a)({attrs:Object(s.a)(Object(s.a)({x:t.x,y:t.y,textAlign:t.textAlign,textBaseline:Object(c.s)(t,"textBaseline","middle"),text:t.content},t.style),{fill:Object(c.L)(b)?t.color:b})},d))}return t.rotate&&Jn(n,t.rotate),f},t.prototype.doLayout=function(t,e,n){return Object(s.b)(this,void 0,void 0,(function(){var r,i=this;return Object(s.d)(this,(function(o){switch(o.label){case 0:return this.layout?(r=Object(c.C)(this.layout)?this.layout:[this.layout],[4,Promise.all(r.map((function(r){var o,a=(o=Object(c.s)(r,"type",""),Rn[o.toLowerCase()]);if(a){var s=[],l=[];return Object(c.j)(n,(function(t,n){s.push(t),l.push(e[t.get("elementId")])})),a(t,s,l,i.region,r.cfg)}})))]):[3,2];case 1:o.sent(),o.label=2;case 2:return[2]}}))}))},t.prototype.renderLabelLine=function(t,e){Object(c.j)(t,(function(t){var n=Object(c.s)(t,"coordinate");if(t&&n){var r=n.getCenter(),i=n.getRadius();if(t.labelLine){var o=Object(c.s)(t,"labelLine",{}),a=t.id,l=o.path;if(!l){var u=et(r.x,r.y,i,t.angle);l=[["M",u.x,u.y],["L",t.x,t.y]]}var h=e[a];h.destroyed||h.addShape("path",{capture:!1,attrs:Object(s.a)({path:l,stroke:t.color?t.color:Object(c.s)(t,["style","fill"],"#000"),fill:null},o.style),id:a,origin:t.mappingData,data:t.data,coordinate:t.coordinate})}}}))},t.prototype.renderLabelBackground=function(t,e){Object(c.j)(t,(function(t){var n=Object(c.s)(t,"coordinate"),r=Object(c.s)(t,"background");if(r&&n){var i=t.id,o=e[i];if(!o.destroyed){var a=o.getChildren()[0];if(a){var l=er(o,t,r.padding),u=l.rotation,h=Object(s.f)(l,["rotation"]),d=o.addShape("rect",{attrs:Object(s.a)(Object(s.a)({},h),r.style||{}),id:i,origin:t.mappingData,data:t.data,coordinate:t.coordinate});if(d.setZIndex(-1),u){var f=a.getMatrix();d.setMatrix(f)}}}}}))},t.prototype.createOffscreenGroup=function(){return new(this.container.getGroupBase())({})},t.prototype.adjustLabel=function(t,e){Object(c.j)(t,(function(t){if(t){var n=t.id,r=e[n];if(!r.destroyed){var i=r.findAll((function(t){return"path"!==t.get("type")}));Object(c.j)(i,(function(e){e&&(t.offsetX&&e.attr("x",e.attr("x")+t.offsetX),t.offsetY&&e.attr("y",e.attr("y")+t.offsetY))}))}}}))},t}();function ir(t){var e=0;return Object(c.j)(t,(function(t){e+=t})),e/t.length}var or=function(){function t(t){this.geometry=t}return t.prototype.getLabelItems=function(t){var e=this,n=[],r=this.getLabelCfgs(t);return Object(c.j)(t,(function(t,i){var o=r[i];if(!o||Object(c.K)(t.x)||Object(c.K)(t.y))n.push(null);else{var a=Object(c.C)(o.content)?o.content:[o.content];o.content=a;var l=a.length;Object(c.j)(a,(function(r,i){if(Object(c.K)(r)||""===r)n.push(null);else{var a=Object(s.a)(Object(s.a)({},o),e.getLabelPoint(o,t,i));a.textAlign||(a.textAlign=e.getLabelAlign(a,i,l)),a.offset<=0&&(a.labelLine=null),n.push(a)}}))}})),n},t.prototype.render=function(t,e){return void 0===e&&(e=!1),Object(s.b)(this,void 0,void 0,(function(){var n,r,i;return Object(s.d)(this,(function(o){switch(o.label){case 0:return n=this.getLabelItems(t),r=this.getLabelsRenderer(),i=this.getGeometryShapes(),[4,r.render(n,i,e)];case 1:return o.sent(),[2]}}))}))},t.prototype.clear=function(){var t=this.labelsRenderer;t&&t.clear()},t.prototype.destroy=function(){var t=this.labelsRenderer;t&&t.destroy(),this.labelsRenderer=null},t.prototype.getCoordinate=function(){return this.geometry.coordinate},t.prototype.getDefaultLabelCfg=function(t,e){var n=this.geometry,r=n.type,i=n.theme;return"polygon"===r||"interval"===r&&"middle"===e||t<0&&!["line","point","path"].includes(r)?Object(c.s)(i,"innerLabels",{}):Object(c.s)(i,"labels",{})},t.prototype.getThemedLabelCfg=function(t){var e=this.geometry,n=this.getDefaultLabelCfg(),r=e.type,i=e.theme;return"polygon"===r||t.offset<0&&!["line","point","path"].includes(r)?Object(c.h)({},n,i.innerLabels,t):Object(c.h)({},n,i.labels,t)},t.prototype.setLabelPosition=function(t,e,n,r){},t.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=this.getOffsetVector(t);return e.isTransposed?n[0]:n[1]},t.prototype.getLabelOffsetPoint=function(t,e,n){var r=t.offset,i=this.getCoordinate().isTransposed,o=i?"x":"y",a=i?1:-1,s={x:0,y:0};return s[o]=e>0||1===n?r*a:r*a*-1,s},t.prototype.getLabelPoint=function(t,e,n){var r=this.getCoordinate(),i=t.content.length;function o(e,n,r){void 0===r&&(r=!1);var i=e;return Object(c.C)(i)&&(i=1===t.content.length?r?ir(i):i.length<=2?i[e.length-1]:ir(i):i[n]),i}var a={content:t.content[n],x:0,y:0,start:{x:0,y:0},color:"#fff"},s=Object(c.C)(e.shape)?e.shape[0]:e.shape,l="funnel"===s||"pyramid"===s;if("polygon"===this.geometry.type){var u=function(t,e){if(Object(c.M)(t)&&Object(c.M)(e))return[t,e];if(e=e,J(t=t)||J(e))return[tt(t),tt(e)];for(var n,r,i=-1,o=0,a=0,s=t.length-1,l=0;++i<t.length;)n=s,s=i,l+=r=t[n]*e[s]-t[s]*e[n],o+=(t[n]+t[s])*r,a+=(e[n]+e[s])*r;return[o/(l*=3),a/l]}(e.x,e.y);a.x=u[0],a.y=u[1]}else"interval"!==this.geometry.type||l?(a.x=o(e.x,n),a.y=o(e.y,n)):(a.x=o(e.x,n,!0),a.y=o(e.y,n));if(l){var h=Object(c.s)(e,"nextPoints"),d=Object(c.s)(e,"points");if(h){var f=r.convert(d[1]),p=r.convert(h[1]);a.x=(f.x+p.x)/2,a.y=(f.y+p.y)/2}else if("pyramid"===s){f=r.convert(d[1]),p=r.convert(d[2]);a.x=(f.x+p.x)/2,a.y=(f.y+p.y)/2}}t.position&&this.setLabelPosition(a,e,n,t.position);var g=this.getLabelOffsetPoint(t,n,i);return a.start={x:a.x,y:a.y},a.x+=g.x,a.y+=g.y,a.color=e.color,a},t.prototype.getLabelAlign=function(t,e,n){var r="center";if(this.getCoordinate().isTransposed){var i=t.offset;r=i<0?"right":0===i?"center":"left",n>1&&0===e&&("right"===r?r="left":"left"===r&&(r="right"))}return r},t.prototype.getLabelId=function(t){var e=this.geometry,n=e.type,r=e.getXScale(),i=e.getYScale(),o=t._origin,a=e.getElementId(t);return"line"===n||"area"===n?a+=" ".concat(o[r.field]):"path"===n&&(a+=" ".concat(o[r.field],"-").concat(o[i.field])),a},t.prototype.getLabelsRenderer=function(){var t=this.geometry,e=t.labelsContainer,n=t.labelOption,r=t.canvasRegion,i=t.animateOption,o=this.geometry.coordinate,a=this.labelsRenderer;return a||(a=new rr({container:e,layout:Object(c.s)(n,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=a),a.region=r,a.animate=!!i&&Bn("label",o),a},t.prototype.getLabelCfgs=function(t){var e=this,n=this.geometry,r=n.labelOption,i=n.scales,o=n.coordinate,a=r,l=a.fields,u=a.callback,h=a.cfg,d=l.map((function(t){return i[t]})),f=[];return Object(c.j)(t,(function(t,n){var r,i=t._origin,a=e.getLabelText(i,d);if(u){var p=l.map((function(t){return i[t]}));if(r=u.apply(void 0,Object(s.g)([],Object(s.e)(p),!1)),Object(c.K)(r))return void f.push(null)}var g=Object(s.a)(Object(s.a)({id:e.getLabelId(t),elementId:e.geometry.getElementId(t),data:i,mappingData:t,coordinate:o},h),r);Object(c.I)(g.position)&&(g.position=g.position(i,t,n));var v=e.getLabelOffset(g.offset||0),y=e.getDefaultLabelCfg(v,g.position);(g=Object(c.h)({},y,g)).offset=e.getLabelOffset(g.offset||0);var m=g.content;Object(c.I)(m)?g.content=m(i,t,n):Object(c.S)(m)&&(g.content=a[0]),f.push(g)})),f},t.prototype.getLabelText=function(t,e){var n=[];return Object(c.j)(e,(function(e){var r=t[e.field];r=Object(c.C)(r)?r.map((function(t){return e.getText(t)})):e.getText(r),Object(c.K)(r)||""===r?n.push(null):n.push(r)})),n},t.prototype.getOffsetVector=function(t){void 0===t&&(t=0);var e=this.getCoordinate(),n=0;return Object(c.M)(t)&&(n=t),e.isTransposed?e.applyMatrix(n,0):e.applyMatrix(0,n)},t.prototype.getGeometryShapes=function(){var t=this.geometry,e={};return Object(c.j)(t.elementsMap,(function(t,n){e[n]=t.shape})),Object(c.j)(t.getOffscreenGroup().getChildren(),(function(n){var r=t.getElementId(n.get("origin").mappingData);e[r]=n})),e},t}();function ar(t,e,n){if(!t)return n;var r;if(t.callback&&t.callback.length>1){var i=Array(t.callback.length-1).fill("");r=t.mapping.apply(t,Object(s.g)([e],Object(s.e)(i),!1)).join("")}else r=t.mapping(e).join("");return r||n}var sr={hexagon:function(t,e,n){var r=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+r,e-n/2],["L",t+r,e+n/2],["L",t,e+n],["L",t-r,e+n/2],["L",t-r,e-n/2],["Z"]]},bowtie:function(t,e,n){var r=n-1.5;return[["M",t-n,e-r],["L",t+n,e+r],["L",t+n,e-r],["L",t-n,e+r],["Z"]]},cross:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]]},tick:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},plus:function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]},hyphen:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},line:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]}},cr=["line","cross","tick","plus","hyphen"];function lr(t){var e=t.symbol;Object(c.Q)(e)&&sr[e]&&(t.symbol=sr[e])}function ur(t){return t.startsWith(o.LEFT)||t.startsWith(o.RIGHT)?"vertical":"horizontal"}function hr(t,e,n,r,i){var o=n.getScale(n.type);if(o.isCategory){var a=o.field,l=e.getAttribute("color"),u=e.getAttribute("shape"),h=t.getTheme().defaultColor,d=e.coordinate.isPolar;return o.getTicks().map((function(n,f){var p,g=n.text,v=n.value,y=g,m=o.invert(v),b=0===t.filterFieldData(a,[(p={},p[a]=m,p)]).length;Object(c.j)(t.views,(function(t){var e;t.filterFieldData(a,[(e={},e[a]=m,e)]).length||(b=!0)}));var x,O,j=ar(l,m,h),w=ar(u,m,"point"),C=e.getShapeMarker(w,{color:j,isInPolar:d}),_=i;return Object(c.I)(_)&&(_=_(y,f,Object(s.a)({name:y,value:m},Object(c.h)({},r,C)))),function(t,e){var n=t.symbol;if(Object(c.Q)(n)&&-1!==cr.indexOf(n)){var r=Object(c.s)(t,"style",{}),i=Object(c.s)(r,"lineWidth",1),o=r.stroke||r.fill||e;t.style=Object(c.h)({},t.style,{lineWidth:i,stroke:o,fill:null})}}(C=Object(c.h)({},r,C,st(Object(s.a)({},_),["style"])),j),_&&_.style&&(C.style=(x=C.style,O=_.style,Object(c.I)(O)?O(x):Object(c.h)({},x,O))),lr(C),{id:m,name:y,value:m,marker:C,unchecked:b}}))}return[]}function dr(t,e){var n=Object(c.s)(t,["components","legend"],{});return Object(c.h)({},Object(c.s)(n,["common"],{}),Object(c.h)({},Object(c.s)(n,[e],{})))}function fr(t){return!t&&(null==t||isNaN(t))}function pr(t){if(Object(c.C)(t))return fr(t[1].y);var e=t.y;return Object(c.C)(e)?fr(e[0]):fr(e)}function gr(t,e,n){if(void 0===e&&(e=!1),void 0===n&&(n=!0),!t.length||1===t.length&&!n)return[];if(e){for(var r=[],i=0,o=t.length;i<o;i++){pr(c=t[i])||r.push(c)}return[r]}var a=[],s=[];for(i=0,o=t.length;i<o;i++){var c;pr(c=t[i])?s.length&&((1!==s.length||n)&&a.push(s),s=[]):s.push(c)}return s.length&&a.push(s),a}function vr(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(r){var i=0===n?"M":"L";e.push([i,r.x,r.y])}}var o=t[0];return o&&(e.push(["L",o.x,o.y]),e.push(["z"])),e}function yr(t){for(var e=t.length/2,n=[],r=[],i=0;i<t.length;i++)i<e?n.push(t[i]):r.push(t[i]);var o=Wt(n,!1),a=Wt(r,!1);r.length&&o.push(["L",r[0].x,r[0].y]),a.shift();var s=o.concat(a);return n.length&&s.push(["L",n[0].x,n[0].y]),s.push(["z"]),s}function mr(t,e,n,r){void 0===r&&(r="");var i=t.style,o=void 0===i?{}:i,a=t.defaultStyle,l=t.color,u=t.size,h=Object(s.a)(Object(s.a)({},a),o);return l&&(e&&(o.stroke||(h.stroke=l)),n&&(o.fill||(h.fill=l))),r&&Object(c.K)(o[r])&&!Object(c.K)(u)&&(h[r]=u),h}function br(t){return Object(c.h)({},{fill:"#CCD6EC",fillOpacity:.3},Object(c.s)(t,["background","style"]))}function xr(t){var e=t.x;return(Object(c.C)(t.y)?t.y:[t.y]).map((function(t,n){return{x:Object(c.C)(e)?e[n]:e,y:t}}))}var Or={line:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},dot:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},dash:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},smooth:function(t,e,n){return[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]]},hv:function(t,e,n){return[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]]},vh:function(t,e,n){return[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]]},hvh:function(t,e,n){return[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]]},vhv:function(t,e){return[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]]}};function jr(t,e){var n=t.color;return{symbol:Or[e],style:{lineWidth:2,r:6,stroke:n}}}function wr(t,e,n,r,i){return 1===t.length?[["M",t[0].x,t[0].y-i.lineWidth/2],["L",t[0].x,t[0].y],["L",t[0].x,t[0].y+i.lineWidth/2]]:(n?(e&&t.length&&t.push({x:t[0].x,y:t[0].y}),o=Wt(t,!1,r)):(o=zt(t,!1),e&&o.push(["Z"])),o);var o}function Cr(t,e,n,r,i,o){if(t.length){var a=t[0];return Object(c.C)(a.y)?function(t,e,n,r,i,o){var a=[],s=[];Object(c.j)(t,(function(t){var e=xr(t);a.push(e[1]),s.push(e[0])}));var l=wr(a,e,r,i,o),u=wr(s,e,r,i,o);return n?l:l.concat(u)}(t,e,n,r,i,o):wr(t,e,r,i,o)}return[]}Yn("line",{defaultShapeType:"line"});Object(c.j)(["line","dot","dash","smooth"],(function(t){Vn("line",t,{draw:function(e,n){var r,i="smooth"===t;if(i){var o=this.coordinate,a=o.start,s=o.end;r=[[a.x,s.y],[s.x,a.y]]}var c=function(t,e,n){for(var r=t.isStack,i=t.connectNulls,o=t.isInCircle,a=t.showSinglePoint,s=mr(t,!0,!1,"lineWidth"),c=gr(t.points,i,a),l=[],u=0,h=c.length;u<h;u++){var d=c[u];l=l.concat(Cr(d,o,r,e,n,s))}return s.path=l,s}(e,i,r);return n.addShape({type:"path",attrs:c,name:"line",capture:!i})},getMarker:function(e){return jr(e,t)}})}));var _r={getLegendItems:hr,translate:Qn,rotate:Jn,zoom:function(t,e){var n=t.getBBox(),r=(n.minX+n.maxX)/2,i=(n.minY+n.maxY)/2;t.applyToMatrix([r,i,1]);var o=Zn(t.getMatrix(),[["t",-r,-i],["s",e,e],["t",r,i]]);t.setMatrix(o)},transform:Zn,getAngle:it,getSectorPath:nt,polarToCartesian:et,getDelegationObject:ae,getTooltipItems:ln,getMappingValue:ar,getPath:Cr,getPathPoints:gr},Mr="#000",Sr="#262626",Er="#BFBFBF",kr="#F0F0F0",Ir="#FFFFFF",Ar="#A6A6A6",Pr="#737373",Tr="#404040",Br="#262626",Lr=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E86452","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],Dr=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#E86452","#F8D0CB","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],Fr=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],Rr=function(t){void 0===t&&(t={});var e=t.paletteQualitative10,n=void 0===e?Lr:e,r=t.paletteQualitative20,i=void 0===r?Dr:r,o=t.brandColor,a={backgroundColor:"#141414",brandColor:void 0===o?n[0]:o,subColor:"rgba(255,255,255,0.05)",paletteQualitative10:n,paletteQualitative20:i,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:Fr,fontFamily:'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"',axisLineBorderColor:Tr,axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:Ar,axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:Sr,axisTickLineBorderColor:Tr,axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:Br,axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:Pr,axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:Br,axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:Pr,legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:Lr[0],legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:Ar,legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendSpacing:16,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:Pr,legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:Pr,legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:Ar,legendPageNavigatorTextFontSize:12,sliderRailFillColor:Br,sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:Pr,sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:kr,sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:Er,annotationArcBorderColor:Br,annotationArcBorder:1,annotationLineBorderColor:Tr,annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:Ar,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:Ir,annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:Tr,tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"#1f1f1f",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 2px 4px rgba(0,0,0,.5)",tooltipContainerBorderRadius:3,tooltipTextFillColor:Ar,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:Ar,labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:Mr,innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:Ar,overflowLabelFillColorDark:"#2c3542",overflowLabelFillColorLight:"#ffffff",overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:Mr,overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:Tr,cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#fff",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(255,255,255,0.65)",scrollbarThumbFillColor:"rgba(0,0,0,0.35)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.45)",pointFillColor:Lr[0],pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:Mr,pointBorderOpacity:1,pointActiveBorderColor:Ir,pointSelectedBorder:2,pointSelectedBorderColor:Ir,pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:Lr[0],hollowPointBorderOpacity:.95,hollowPointFillColor:Mr,hollowPointActiveBorder:1,hollowPointActiveBorderColor:Ir,hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:Ir,hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:Lr[0],lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:Lr[0],areaFillOpacity:.25,areaActiveFillColor:Lr[0],areaActiveFillOpacity:.5,areaSelectedFillColor:Lr[0],areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:Lr[0],hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:Ir,hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:Ir,hollowAreaInactiveBorderOpacity:.3,intervalFillColor:Lr[0],intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:Ir,intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:Ir,intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:Lr[0],hollowIntervalBorderOpacity:1,hollowIntervalFillColor:Mr,hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:Ir,hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:Ir,hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3};return Object(s.a)(Object(s.a)({},a),t)}(),Nr=n(647),zr=n(701),Wr=function(t){function e(e){var n=t.call(this,e)||this;n.type="path",n.shapeType="line";var r=e.connectNulls,i=void 0!==r&&r,o=e.showSinglePoint,a=void 0===o||o;return n.connectNulls=i,n.showSinglePoint=a,n}return Object(s.c)(e,t),e.prototype.updateElements=function(t,e){var n,r,i,o,a,c;void 0===e&&(e=!1);for(var l=new Map,u=new Map,h=[],d=0,f=0;f<t.length;f++){var p=t[f],g=this.getElementId(p);h.push(g),l.set(g,p),u.set(g,d),d++}this.elements=new Array(d);var v=Un(this.lastElementsMap,h),y=v.added,m=v.updated,b=v.removed;try{for(var x=Object(s.i)(y),O=x.next();!O.done;O=x.next()){g=O.value,p=l.get(g);var j=this.getShapeFactory(),w=this.getShapeInfo(p);f=u.get(g);(M=new Dn({shapeFactory:j,container:this.container,offscreenGroup:this.getOffscreenGroup(),elementIndex:f})).geometry=this,M.animate=this.animateOption,M.draw(w,e),this.elementsMap[g]=M,this.elements[f]=M}}catch(t){n={error:t}}finally{try{O&&!O.done&&(r=x.return)&&r.call(x)}finally{if(n)throw n.error}}try{for(var C=Object(s.i)(m),_=C.next();!_.done;_=C.next()){g=_.value,p=l.get(g);var M=this.lastElementsMap[g],S=(f=u.get(g),w=this.getShapeInfo(p),M.getModel());(this.isCoordinateChanged||Kn(S,w))&&(M.animate=this.animateOption,M.update(w)),this.elementsMap[g]=M,this.elements[f]=M}}catch(t){i={error:t}}finally{try{_&&!_.done&&(o=C.return)&&o.call(C)}finally{if(i)throw i.error}}try{for(var E=Object(s.i)(b),k=E.next();!k.done;k=E.next()){g=k.value;(M=this.lastElementsMap[g]).animate=this.animateOption,M.destroy()}}catch(t){a={error:t}}finally{try{k&&!k.done&&(c=E.return)&&c.call(E)}finally{if(a)throw a.error}}},e.prototype.getPointsAndData=function(t){for(var e=[],n=[],r=0,i=t.length;r<i;r++){var o=t[r];e.push({x:o.x,y:o.y}),n.push(o._origin)}return{points:e,data:n}},e.prototype.getShapeInfo=function(t){var e=this.getDrawCfg(t[0]),n=this.getPointsAndData(t),r=n.points,i=n.data;return e.mappingData=t,e.data=i,e.isStack=!!this.getAdjust("stack"),e.points=r,e.connectNulls=this.connectNulls,e.showSinglePoint=this.showSinglePoint,e},e}(qn);function $r(t,e,n,r,i){var o=[];if(t.length){for(var a=[],s=[],l=0,u=t.length;l<u;l++){var h=t[l];a.push(h[1]),s.push(h[0])}s=s.reverse(),Object(c.j)([a,s],(function(t,c){var l=[],u=r.parsePoints(t),h=u[0];1===a.length&&1===s.length?l=0===c?[["M",h.x-.5,h.y],["L",h.x+.5,h.y]]:[["L",h.x+.5,h.y],["L",h.x-.5,h.y]]:(e&&u.push({x:h.x,y:h.y}),l=n?Wt(u,!1,i):zt(u,!1),c>0&&(l[0][0]="L")),o=o.concat(l)})),o.push(["Z"])}return o}function Hr(t,e,n,r,i){for(var o=mr(t,e,!e,"lineWidth"),a=t.connectNulls,s=t.isInCircle,c=gr(t.points,a,t.showSinglePoint),l=[],u=0,h=c.length;u<h;u++){var d=c[u];l=l.concat($r(d,s,n,r,i))}return o.path=l,o}function Yr(t){var e=t.start,n=t.end;return[[e.x,n.y],[n.x,e.y]]}Yn("area",{defaultShapeType:"area",getDefaultPoints:function(t){var e=t.x,n=t.y0;return(Object(c.C)(t.y)?t.y:[n,t.y]).map((function(t){return{x:e,y:t}}))}});Vn("area","area",{draw:function(t,e){var n=Hr(t,!1,!1,this);return e.addShape({type:"path",attrs:n,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,fill:t.color,fillOpacity:1}}}});var Vr=function(t){function e(e){var n=t.call(this,e)||this;n.type="area",n.shapeType="area",n.generatePoints=!0,n.startOnZero=!0;var r=e.startOnZero,i=void 0===r||r,o=e.sortable,a=void 0!==o&&o,s=e.showSinglePoint,c=void 0!==s&&s;return n.startOnZero=i,n.sortable=a,n.showSinglePoint=c,n}return Object(s.c)(e,t),e.prototype.getPointsAndData=function(t){for(var e=[],n=[],r=0,i=t.length;r<i;r++){var o=t[r];e.push(o.points),n.push(o._origin)}return{points:e,data:n}},e.prototype.getYMinValue=function(){return this.startOnZero?t.prototype.getYMinValue.call(this):this.getYScale().min},e}(Wr);Yn("edge",{defaultShapeType:"line",getDefaultPoints:function(t){return xr(t)}});Vn("edge","line",{draw:function(t,e){var n=mr(t,!0,!1,"lineWidth"),r=zt(this.parsePoints(t.points),this.coordinate.isPolar);return e.addShape("path",{attrs:Object(s.a)(Object(s.a)({},n),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}});var Gr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="edge",e.shapeType="edge",e.generatePoints=!0,e}return Object(s.c)(e,t),e}(qn),Kr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e.paletteCache={},e}return Object(s.c)(e,t),e.prototype.updateElements=function(t,e){void 0===e&&(e=!1);for(var n=0;n<t.length;n++){var r=t[n],i=this.prepareRange(r),o=this.prepareSize(),a=Object(c.s)(this.styleOption,["cfg","shadowBlur"]);Object(c.M)(a)||(a=o/2),this.prepareGreyScaleBlurredCircle(o,a),this.drawWithRange(r,i,o,a)}},e.prototype.color=function(t,e){return this.createAttrOption("color",t,"function"!=typeof e?e:""),this},e.prototype.clear=function(){t.prototype.clear.call(this),this.clearShadowCanvasCtx(),this.paletteCache={}},e.prototype.prepareRange=function(t){var e=this.getAttribute("color").getFields()[0],n=1/0,r=-1/0;return t.forEach((function(t){var i=t._origin[e];i>r&&(r=i),i<n&&(n=i)})),n===r&&(n=r-1),[n,r]},e.prototype.prepareSize=function(){var t=this.getDefaultValue("size");return Object(c.M)(t)||(t=this.getDefaultSize()),t},e.prototype.prepareGreyScaleBlurredCircle=function(t,e){var n=this.getGrayScaleBlurredCanvas(),r=t+e,i=n.getContext("2d");n.width=n.height=2*r,i.clearRect(0,0,n.width,n.height),i.shadowOffsetX=i.shadowOffsetY=2*r,i.shadowBlur=e,i.shadowColor="black",i.beginPath(),i.arc(-r,-r,t,0,2*Math.PI,!0),i.closePath(),i.fill()},e.prototype.drawWithRange=function(t,e,n,r){var i,o,a=this.coordinate,c=a.start,l=a.end,u=this.coordinate.getWidth(),h=this.coordinate.getHeight(),d=this.getAttribute("color").getFields()[0];this.clearShadowCanvasCtx();var f=this.getShadowCanvasCtx();e&&(t=t.filter((function(t){return t._origin[d]<=e[1]&&t._origin[d]>=e[0]})));var p=this.scales[d];try{for(var g=Object(s.i)(t),v=g.next();!v.done;v=g.next()){var y=v.value,m=this.getDrawCfg(y),b=m.x,x=m.y,O=p.scale(y._origin[d]);this.drawGrayScaleBlurredCircle(b-c.x,x-l.y,n+r,O,f)}}catch(t){i={error:t}}finally{try{v&&!v.done&&(o=g.return)&&o.call(g)}finally{if(i)throw i.error}}var j=f.getImageData(0,0,u,h);this.clearShadowCanvasCtx(),this.colorize(j),f.putImageData(j,0,0);var w=this.getImageShape();w.attr("x",c.x),w.attr("y",l.y),w.attr("width",u),w.attr("height",h),w.attr("img",f.canvas),w.set("origin",this.getShapeInfo(t))},e.prototype.getDefaultSize=function(){var t=this.getAttribute("position"),e=this.coordinate;return Math.min(e.getWidth()/(4*t.scales[0].ticks.length),e.getHeight()/(4*t.scales[1].ticks.length))},e.prototype.clearShadowCanvasCtx=function(){var t=this.getShadowCanvasCtx();t.clearRect(0,0,t.canvas.width,t.canvas.height)},e.prototype.getShadowCanvasCtx=function(){var t=this.shadowCanvas;return t||(t=document.createElement("canvas"),this.shadowCanvas=t),t.width=this.coordinate.getWidth(),t.height=this.coordinate.getHeight(),t.getContext("2d")},e.prototype.getGrayScaleBlurredCanvas=function(){return this.grayScaleBlurredCanvas||(this.grayScaleBlurredCanvas=document.createElement("canvas")),this.grayScaleBlurredCanvas},e.prototype.drawGrayScaleBlurredCircle=function(t,e,n,r,i){var o=this.getGrayScaleBlurredCanvas();i.globalAlpha=r,i.drawImage(o,t-n,e-n)},e.prototype.colorize=function(t){for(var e=this.getAttribute("color"),n=t.data,r=this.paletteCache,i=3;i<n.length;i+=4){var o=n[i];if(Object(c.M)(o)){var a=r[o]?r[o]:E.a.rgb2arr(e.gradient(o/256));n[i-3]=a[0],n[i-2]=a[1],n[i-1]=a[2],n[i]=o}}},e.prototype.getImageShape=function(){var t=this.imageShape;return t||(t=this.container.addShape({type:"image",attrs:{}}),this.imageShape=t,t)},e.prototype.getShapeInfo=function(t){var e=this.getDrawCfg(t[0]),n=t.map((function(t){return t._origin}));return Object(s.a)(Object(s.a)({},e),{mappingData:t,data:n})},e}(qn);function Xr(t){var e,n,r,i,o,a,l=t.x,u=t.y,h=t.y0,d=t.size;Object(c.C)(u)?(r=(e=Object(s.e)(u,2))[0],i=e[1]):(r=h,i=u),Object(c.C)(l)?(o=(n=Object(s.e)(l,2))[0],a=n[1]):(o=l-d/2,a=l+d/2);var f=[{x:o,y:r},{x:o,y:i}];return f.push({x:a,y:i},{x:a,y:r}),f}function Ur(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]);return e&&(n.push(["L",r.x,r.y]),n.push(["z"])),n}function qr(t,e){var n=0,r=0,i=0,o=0;return Object(c.C)(t)?1===t.length?n=r=i=o=t[0]:2===t.length?(n=i=t[0],r=o=t[1]):3===t.length?(n=t[0],r=o=t[1],i=t[2]):(n=t[0],r=t[1],i=t[2],o=t[3]):n=r=i=o=t,n+r>e&&(r=e-(n=n?e/(1+r/n):0)),i+o>e&&(o=e-(i=i?e/(1+o/i):0)),[n||0,r||0,i||0,o||0]}function Zr(t,e,n){var r=[];if(n.isRect){var i=n.isTransposed?{x:n.start.x,y:e[0].y}:{x:e[0].x,y:n.start.y},o=n.isTransposed?{x:n.end.x,y:e[2].y}:{x:e[3].x,y:n.end.y},a=Object(c.s)(t,["background","style","radius"]);if(a){var l=n.isTransposed?Math.abs(e[0].y-e[2].y):e[2].x-e[1].x,u=n.isTransposed?n.getWidth():n.getHeight(),h=Object(s.e)(qr(a,Math.min(l,u)),4),d=h[0],f=h[1],p=h[2],g=h[3],v=n.isTransposed&&n.isReflect("y"),y=v?0:1,m=function(t){return v?-t:t};r.push(["M",i.x,o.y+m(d)]),0!==d&&r.push(["A",d,d,0,0,y,i.x+d,o.y]),r.push(["L",o.x-f,o.y]),0!==f&&r.push(["A",f,f,0,0,y,o.x,o.y+m(f)]),r.push(["L",o.x,i.y-m(p)]),0!==p&&r.push(["A",p,p,0,0,y,o.x-p,i.y]),r.push(["L",i.x+g,i.y]),0!==g&&r.push(["A",g,g,0,0,y,i.x,i.y-m(g)])}else r.push(["M",i.x,i.y]),r.push(["L",o.x,i.y]),r.push(["L",o.x,o.y]),r.push(["L",i.x,o.y]),r.push(["L",i.x,i.y]);r.push(["z"])}if(n.isPolar){var b=n.getCenter(),x=it(t,n),O=x.startAngle,j=x.endAngle;if("theta"===n.type||n.isTransposed){var w=function(t){return Math.pow(t,2)};d=Math.sqrt(w(b.x-e[0].x)+w(b.y-e[0].y)),f=Math.sqrt(w(b.x-e[2].x)+w(b.y-e[2].y));r=nt(b.x,b.y,d,n.startAngle,n.endAngle,f)}else r=nt(b.x,b.y,n.getRadius(),O,j)}return r}function Qr(t,e,n){var r=[];return Object(c.K)(e)?n?r.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",(t[2].x+t[3].x)/2,(t[2].y+t[3].y)/2],["Z"]):r.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",t[2].x,t[2].y],["L",t[3].x,t[3].y],["Z"]):r.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",e[1].x,e[1].y],["L",e[0].x,e[0].y],["Z"]),r}function Jr(t,e){return[e,t]}Yn("interval",{defaultShapeType:"rect",getDefaultPoints:function(t){return Xr(t)}});Vn("interval","rect",{draw:function(t,e){var n,r=mr(t,!1,!0),i=e,o=null==t?void 0:t.background;if(o){i=e.addGroup({name:"interval-group"});var a=br(t),c=Zr(t,this.parsePoints(t.points),this.coordinate);i.addShape("path",{attrs:Object(s.a)(Object(s.a)({},a),{path:c}),capture:!1,zIndex:-1,name:"element-background"})}n=r.radius&&this.coordinate.isRect?function(t,e,n){var r,i,o,a,c,l,u,h=Object(s.e)(Object(s.g)([],Object(s.e)(t),!1),4),d=h[0],f=h[1],p=h[2],g=h[3],v=Object(s.e)("number"==typeof n?Array(4).fill(n):n,4),y=v[0],m=v[1],b=v[2],x=v[3];e.isTransposed&&(f=(r=Object(s.e)(Jr(f,g),2))[0],g=r[1]),e.isReflect("y")&&(d=(i=Object(s.e)(Jr(d,f),2))[0],f=i[1],p=(o=Object(s.e)(Jr(p,g),2))[0],g=o[1]),e.isReflect("x")&&(d=(a=Object(s.e)(Jr(d,g),2))[0],g=a[1],f=(c=Object(s.e)(Jr(f,p),2))[0],p=c[1]);var O=[],j=function(t){return Math.abs(t)};return y=(l=Object(s.e)(qr([y,m,b,x],Math.min(j(g.x-d.x),j(f.y-d.y))).map((function(t){return j(t)})),4))[0],m=l[1],b=l[2],x=l[3],e.isTransposed&&(y=(u=Object(s.e)([x,y,m,b],4))[0],m=u[1],b=u[2],x=u[3]),d.y<f.y?(O.push(["M",g.x,g.y+b]),0!==b&&O.push(["A",b,b,0,0,0,g.x-b,g.y]),O.push(["L",d.x+x,d.y]),0!==x&&O.push(["A",x,x,0,0,0,d.x,d.y+x]),O.push(["L",f.x,f.y-y]),0!==y&&O.push(["A",y,y,0,0,0,f.x+y,f.y]),O.push(["L",p.x-m,p.y]),0!==m&&O.push(["A",m,m,0,0,0,p.x,p.y-m]),O.push(["L",g.x,g.y+b]),O.push(["z"])):g.x<d.x?(O.push(["M",p.x+m,p.y]),0!==m&&O.push(["A",m,m,0,0,0,p.x,p.y+m]),O.push(["L",g.x,g.y-b]),0!==b&&O.push(["A",b,b,0,0,0,g.x+b,g.y]),O.push(["L",d.x-x,d.y]),0!==x&&O.push(["A",x,x,0,0,0,d.x,d.y-x]),O.push(["L",f.x,f.y+y]),0!==y&&O.push(["A",y,y,0,0,0,f.x-y,f.y]),O.push(["L",p.x+m,p.y]),O.push(["z"])):(O.push(["M",f.x,f.y+y]),0!==y&&O.push(["A",y,y,0,0,1,f.x+y,f.y]),O.push(["L",p.x-m,p.y]),0!==m&&O.push(["A",m,m,0,0,1,p.x,p.y+m]),O.push(["L",g.x,g.y-b]),0!==b&&O.push(["A",b,b,0,0,1,g.x-b,g.y]),O.push(["L",d.x+x,d.y]),0!==x&&O.push(["A",x,x,0,0,1,d.x,d.y-x]),O.push(["L",f.x,f.y+y]),O.push(["z"])),O}(this.parsePoints(t.points),this.coordinate,r.radius):this.parsePath(function(t,e,n){var r=n.getWidth(),i=n.getHeight(),o="rect"===n.type,a=[],s=(t[2].x-t[1].x)/2,c=n.isTransposed?s*i/r:s*r/i;return"round"===e?(o?(a.push(["M",t[0].x,t[0].y+c]),a.push(["L",t[1].x,t[1].y-c]),a.push(["A",s,s,0,0,1,t[2].x,t[2].y-c]),a.push(["L",t[3].x,t[3].y+c]),a.push(["A",s,s,0,0,1,t[0].x,t[0].y+c])):(a.push(["M",t[0].x,t[0].y]),a.push(["L",t[1].x,t[1].y]),a.push(["A",s,s,0,0,1,t[2].x,t[2].y]),a.push(["L",t[3].x,t[3].y]),a.push(["A",s,s,0,0,1,t[0].x,t[0].y])),a.push(["z"])):a=Ur(t),a}(t.points,r.lineCap,this.coordinate));var l=i.addShape("path",{attrs:Object(s.a)(Object(s.a)({},r),{path:n}),name:"interval"});return o?i:l},getMarker:function(t){var e=t.color;return t.isInPolar?{symbol:"circle",style:{r:4.5,fill:e}}:{symbol:"square",style:{r:4,fill:e}}}});function ti(t){var e=t.theme,n=t.coordinate,r=t.getXScale(),i=r.values,o=t.beforeMappingData,a=i.length,s=ut(t.coordinate),l=t.intervalPadding,u=t.dodgePadding,h=t.maxColumnWidth||e.maxColumnWidth,d=t.minColumnWidth||e.minColumnWidth,f=t.columnWidthRatio||e.columnWidthRatio,p=t.multiplePieWidthRatio||e.multiplePieWidthRatio,g=t.roseWidthRatio||e.roseWidthRatio;if(r.isLinear&&i.length>1){i.sort();var v=function(t,e){var n=t.length,r=t;Object(c.Q)(r[0])&&(r=t.map((function(t){return e.translate(t)})));for(var i=r[1]-r[0],o=2;o<n;o++){var a=r[o]-r[o-1];i>a&&(i=a)}return i}(i,r);a=(r.max-r.min)/v,i.length>a&&(a=i.length)}var y=r.range,m=1/a,b=1;(n.isPolar?b=n.isTransposed&&a>1?p:g:(r.isLinear&&(m*=y[1]-y[0]),b=f),!Object(c.K)(l)&&l>=0)?m=(1-(a-1)*(l/s))/a:m*=b;if(t.getAdjust("dodge")){var x=function(t,e){if(e){var n=Object(c.q)(t);return Object(c.yb)(n,e).length}return t.length}(o,t.getAdjust("dodge").dodgeBy);if(!Object(c.K)(u)&&u>=0)m=(m-u/s*(x-1))/x;else!Object(c.K)(l)&&l>=0?(m*=b,m/=x):m/=x;m=m>=0?m:0}if(!Object(c.K)(h)&&h>=0){var O=h/s;m>O&&(m=O)}if(!Object(c.K)(d)&&d>=0){var j=d/s;m<j&&(m=j)}return m}var ei=function(t){function e(e){var n=t.call(this,e)||this;n.type="interval",n.shapeType="interval",n.generatePoints=!0;var r=e.background;return n.background=r,n}return Object(s.c)(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),i=this.getAttribute("size");i?(n=this.getAttributeValues(i,e)[0],n/=ut(this.coordinate)):(this.defaultSize||(this.defaultSize=ti(this)),n=this.defaultSize);return r.size=n,r},e.prototype.adjustScale=function(){t.prototype.adjustScale.call(this);var e,n,r=this.getYScale();if("theta"===this.coordinate.type)r.change({nice:!1,min:0,max:(e=r,n=e.values.filter((function(t){return!Object(c.K)(t)&&!isNaN(t)})),Math.max.apply(Math,Object(s.g)(Object(s.g)([],Object(s.e)(n),!1),[Object(c.K)(e.max)?-1/0:e.max],!1)))});else{var i=this.scaleDefs,o=r.field,a=r.min,l=r.max;"time"!==r.type&&(a>0&&!Object(c.s)(i,[o,"min"])&&r.change({min:0}),l<=0&&!Object(c.s)(i,[o,"max"])&&r.change({max:0}))}},e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return n.background=this.background,n},e}(qn),ni=function(t){function e(e){var n=t.call(this,e)||this;n.type="line";var r=e.sortable,i=void 0!==r&&r;return n.sortable=i,n}return Object(s.c)(e,t),e}(Wr),ri=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"];function ii(t,e,n,r,i){var o,a,c=mr(e,i,!i,"r"),l=t.parsePoints(e.points),u=l[0];if(e.isStack)u=l[1];else if(l.length>1){var h=n.addGroup();try{for(var d=Object(s.i)(l),f=d.next();!f.done;f=d.next()){var p=f.value;h.addShape({type:"marker",attrs:Object(s.a)(Object(s.a)(Object(s.a)({},c),{symbol:sr[r]||r}),p)})}}catch(t){o={error:t}}finally{try{f&&!f.done&&(a=d.return)&&a.call(d)}finally{if(o)throw o.error}}return h}return n.addShape({type:"marker",attrs:Object(s.a)(Object(s.a)(Object(s.a)({},c),{symbol:sr[r]||r}),u)})}Yn("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(t){return xr(t)}});Object(c.j)(ri,(function(t){Vn("point","hollow-".concat(t),{draw:function(e,n){return ii(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:sr[t]||t,style:{r:4.5,stroke:n,fill:null}}}})}));var oi=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="point",e.shapeType="point",e.generatePoints=!0,e}return Object(s.c)(e,t),e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return Object(s.a)(Object(s.a)({},n),{isStack:!!this.getAdjust("stack")})},e}(qn);Yn("polygon",{defaultShapeType:"polygon",getDefaultPoints:function(t){var e=[];return Object(c.j)(t.x,(function(n,r){var i=t.y[r];e.push({x:n,y:i})})),e}});Vn("polygon","polygon",{draw:function(t,e){if(!Object(c.G)(t.points)){var n=mr(t,!0,!0),r=this.parsePath(function(t){for(var e=t[0],n=1,r=[["M",e.x,e.y]];n<t.length;){var i=t[n];i.x===t[n-1].x&&i.y===t[n-1].y||(r.push(["L",i.x,i.y]),i.x===e.x&&i.y===e.y&&n<t.length-1&&(e=t[n+1],r.push(["Z"]),r.push(["M",e.x,e.y]),n++)),n++}return Object(c.H)(Object(c.U)(r),e)||r.push(["L",e.x,e.y]),r.push(["Z"]),r}(t.points));return e.addShape("path",{attrs:Object(s.a)(Object(s.a)({},n),{path:r}),name:"polygon"})}},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}});var ai=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.shapeType="polygon",e.generatePoints=!0,e}return Object(s.c)(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),i=r.x,o=r.y;if(!Object(c.C)(i)||!Object(c.C)(o)){var a=this.getXScale(),s=this.getYScale(),l=.5/a.values.length,u=.5/s.values.length;a.isCategory&&s.isCategory?(i=[i-l,i-l,i+l,i+l],o=[o-u,o+u,o+u,o-u]):Object(c.C)(i)?(i=[(n=i)[0],n[0],n[1],n[1]],o=[o-u/2,o+u/2,o+u/2,o-u/2]):Object(c.C)(o)&&(o=[(n=o)[0],n[1],n[1],n[0]],i=[i-l/2,i-l/2,i+l/2,i+l/2]),r.x=i,r.y=o}return r},e}(qn),si=(Yn("schema",{defaultShapeType:""}),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="schema",e.shapeType="schema",e.generatePoints=!0,e}return Object(s.c)(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),i=this.getAttribute("size");i?(n=this.getAttributeValues(i,e)[0],n/=ut(this.coordinate)):(this.defaultSize||(this.defaultSize=ti(this)),n=this.defaultSize);return r.size=n,r},e}(qn));Yn("violin",{defaultShapeType:"violin",getDefaultPoints:function(t){var e=t.size/2,n=[],r=function(t){if(!Object(c.C)(t))return[];var e=Object(c.Y)(t);return Object(c.W)(t,(function(t){return t/e}))}(t._size);return Object(c.j)(t.y,(function(i,o){var a=r[o]*e,s=0===o,c=o===t.y.length-1;n.push({isMin:s,isMax:c,x:t.x-a,y:i}),n.unshift({isMin:s,isMax:c,x:t.x+a,y:i})})),n}});Vn("violin","violin",{draw:function(t,e){var n=mr(t,!0,!0),r=this.parsePath(vr(t.points));return e.addShape("path",{attrs:Object(s.a)(Object(s.a)({},n),{path:r}),name:"violin"})},getMarker:function(t){return{symbol:"circle",style:{r:4,fill:t.color}}}});var ci=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="violin",e.shapeType="violin",e.generatePoints=!0,e}return Object(s.c)(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),i=this.getAttribute("size");i?(n=this.getAttributeValues(i,e)[0],n/=ut(this.coordinate)):(this.defaultSize||(this.defaultSize=ti(this)),n=this.defaultSize);return r.size=n,r._size=Object(c.s)(e._origin,[this._sizeField]),r},e.prototype.initAttributes=function(){var e=this.attributeOption,n=e.size?e.size.fields[0]:this._sizeField?this._sizeField:"size";this._sizeField=n,delete e.size,t.prototype.initAttributes.call(this)},e}(qn);function li(t,e){return["C",1*t.x/2+1*e.x/2,t.y,1*t.x/2+1*e.x/2,e.y,e.x,e.y]}function ui(t,e){var n=[];n.push({x:e.x,y:e.y}),n.push(t);var r=["Q"];return Object(c.j)(n,(function(t){r.push(t.x,t.y)})),r}Vn("area","line",{draw:function(t,e){var n=Hr(t,!0,!1,this);return e.addShape({type:"path",attrs:n,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,stroke:t.color,fill:null}}}}),Vn("area","smooth",{draw:function(t,e){var n=Hr(t,!1,!0,this,Yr(this.coordinate));return e.addShape({type:"path",attrs:n,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,fill:t.color,fillOpacity:1}}}}),Vn("area","smooth-line",{draw:function(t,e){var n=Hr(t,!0,!0,this,Yr(this.coordinate));return e.addShape({type:"path",attrs:n,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,stroke:t.color,fill:null}}}}),Vn("edge","arc",{draw:function(t,e){var n,r=mr(t,!0,!1,"lineWidth"),i=t.points,o=i.length>2?"weight":"normal";if(t.isInCircle){var a={x:0,y:1};return"normal"===o?n=function(t,e,n){var r=ui(e,n),i=[["M",t.x,t.y]];return i.push(r),i}(i[0],i[1],a):(r.fill=r.stroke,n=function(t,e){var n=ui(t[1],e),r=ui(t[3],e),i=[["M",t[0].x,t[0].y]];return i.push(r),i.push(["L",t[3].x,t[3].y]),i.push(["L",t[2].x,t[2].y]),i.push(n),i.push(["L",t[1].x,t[1].y]),i.push(["L",t[0].x,t[0].y]),i.push(["Z"]),i}(i,a)),n=this.parsePath(n),e.addShape("path",{attrs:Object(s.a)(Object(s.a)({},r),{path:n})})}if("normal"===o)return n=rt(((i=this.parsePoints(i))[1].x+i[0].x)/2,i[0].y,Math.abs(i[1].x-i[0].x)/2,Math.PI,2*Math.PI),e.addShape("path",{attrs:Object(s.a)(Object(s.a)({},r),{path:n})});var c=li(i[1],i[3]),l=li(i[2],i[0]);return n=[["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],c,["L",i[3].x,i[3].y],["L",i[2].x,i[2].y],l,["Z"]],n=this.parsePath(n),r.fill=r.stroke,e.addShape("path",{attrs:Object(s.a)(Object(s.a)({},r),{path:n})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),Vn("edge","smooth",{draw:function(t,e){var n=mr(t,!0,!1,"lineWidth"),r=t.points,i=this.parsePath(function(t,e){var n=li(t,e),r=[["M",t.x,t.y]];return r.push(n),r}(r[0],r[1]));return e.addShape("path",{attrs:Object(s.a)(Object(s.a)({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}});Vn("edge","vhv",{draw:function(t,e){var n=mr(t,!0,!1,"lineWidth"),r=t.points,i=this.parsePath(function(t,e){var n=[];n.push({x:t.x,y:t.y*(1-1/3)+e.y*(1/3)}),n.push({x:e.x,y:t.y*(1-1/3)+e.y*(1/3)}),n.push(e);var r=[["M",t.x,t.y]];return Object(c.j)(n,(function(t){r.push(["L",t.x,t.y])})),r}(r[0],r[1]));return e.addShape("path",{attrs:Object(s.a)(Object(s.a)({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),Vn("interval","funnel",{getPoints:function(t){return t.size=2*t.size,Xr(t)},draw:function(t,e){var n=mr(t,!1,!0),r=this.parsePath(Qr(t.points,t.nextPoints,!1));return e.addShape("path",{attrs:Object(s.a)(Object(s.a)({},n),{path:r}),name:"interval"})},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}}),Vn("interval","hollow-rect",{draw:function(t,e){var n=mr(t,!0,!1),r=e,i=null==t?void 0:t.background;if(i){r=e.addGroup();var o=br(t),a=Zr(t,this.parsePoints(t.points),this.coordinate);r.addShape("path",{attrs:Object(s.a)(Object(s.a)({},o),{path:a}),capture:!1,zIndex:-1,name:"element-background"})}var c=this.parsePath(Ur(t.points)),l=r.addShape("path",{attrs:Object(s.a)(Object(s.a)({},n),{path:c}),name:"interval"});return i?r:l},getMarker:function(t){var e=t.color;return t.isInPolar?{symbol:"circle",style:{r:4.5,stroke:e,fill:null}}:{symbol:"square",style:{r:4,stroke:e,fill:null}}}}),Vn("interval","line",{getPoints:function(t){return n=(e=t).x,r=e.y,i=e.y0,Object(c.C)(r)?r.map((function(t,e){return{x:Object(c.C)(n)?n[e]:n,y:t}})):[{x:n,y:i},{x:n,y:r}];var e,n,r,i},draw:function(t,e){var n=mr(t,!0,!1,"lineWidth"),r=st(Object(s.a)({},n),["fill"]),i=this.parsePath(Ur(t.points,!1));return e.addShape("path",{attrs:Object(s.a)(Object(s.a)({},r),{path:i}),name:"interval"})},getMarker:function(t){return{symbol:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]},style:{r:5,stroke:t.color}}}}),Vn("interval","pyramid",{getPoints:function(t){return t.size=2*t.size,Xr(t)},draw:function(t,e){var n=mr(t,!1,!0),r=this.parsePath(Qr(t.points,t.nextPoints,!0));return e.addShape("path",{attrs:Object(s.a)(Object(s.a)({},n),{path:r}),name:"interval"})},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}}),Vn("interval","tick",{getPoints:function(t){return function(t){var e,n,r,i=t.x,o=t.y,a=t.y0,l=t.size;Object(c.C)(o)?(n=(e=Object(s.e)(o,2))[0],r=e[1]):(n=a,r=o);var u=i+l/2,h=i-l/2;return[{x:i,y:n},{x:i,y:r},{x:h,y:n},{x:u,y:n},{x:h,y:r},{x:u,y:r}]}(t)},draw:function(t,e){var n,r=mr(t,!0,!1),i=this.parsePath([["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["M",n[4].x,n[4].y],["L",n[5].x,n[5].y]]);return e.addShape("path",{attrs:Object(s.a)(Object(s.a)({},r),{path:i}),name:"interval"})},getMarker:function(t){return{symbol:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},style:{r:5,stroke:t.color}}}});function hi(t,e){var n=gr(t.points,t.connectNulls,t.showSinglePoint),r=[];return Object(c.j)(n,(function(t){var n=function(t,e){var n=[];return Object(c.j)(t,(function(r,i){var o=t[i+1];if(n.push(r),o){var a=function(t,e,n){var r,i=t.x,o=t.y,a=e.x,s=e.y;switch(n){case"hv":r=[{x:a,y:o}];break;case"vh":r=[{x:i,y:s}];break;case"hvh":var c=(a+i)/2;r=[{x:c,y:o},{x:c,y:s}];break;case"vhv":var l=(o+s)/2;r=[{x:i,y:l},{x:a,y:l}]}return r}(r,o,e);n=n.concat(a)}})),n}(t,e);r=r.concat(function(t){return t.map((function(t,e){return 0===e?["M",t.x,t.y]:["L",t.x,t.y]}))}(n))})),Object(s.a)(Object(s.a)({},mr(t,!0,!1,"lineWidth")),{path:r})}function di(t){var e=Object(c.C)(t)?t:[t],n=e[0],r=e[e.length-1],i=e.length>1?e[1]:n;return{min:n,max:r,min1:i,max1:e.length>3?e[3]:r,median:e.length>2?e[2]:i}}function fi(t,e,n){var r,i=n/2;if(Object(c.C)(e)){var o=di(e),a=o.min,s=o.max,l=o.median,u=o.min1,h=t-i,d=t+i;r=[[h,s],[d,s],[t,s],[t,f=o.max1],[h,u],[h,f],[d,f],[d,u],[t,u],[t,a],[h,a],[d,a],[h,l],[d,l]]}else{e=Object(c.K)(e)?.5:e;var f,p=di(t),g=(a=p.min,s=p.max,l=p.median,e-i),v=e+i;r=[[a,g],[a,v],[a,e],[u=p.min1,e],[u,g],[u,v],[f=p.max1,v],[f,g],[f,e],[s,e],[s,g],[s,v],[l,g],[l,v]]}return r.map((function(t){return{x:t[0],y:t[1]}}))}function pi(t){var e=(Object(c.C)(t)?t:[t]).sort((function(t,e){return e-t}));return function(t,e,n){if(Object(c.Q)(t))return t.padEnd(e,n);if(Object(c.C)(t)){var r=t.length;if(r<e)for(var i=e-r,o=0;o<i;o++)t.push(n)}return t}(e,4,e[e.length-1])}function gi(t,e,n){var r=pi(e);return[{x:t,y:r[0]},{x:t,y:r[1]},{x:t-n/2,y:r[2]},{x:t-n/2,y:r[1]},{x:t+n/2,y:r[1]},{x:t+n/2,y:r[2]},{x:t,y:r[2]},{x:t,y:r[3]}]}function vi(t,e){var n=Math.abs(t[0].x-t[2].x),r=Math.abs(t[0].y-t[2].y),i=Math.min(n,r);return e&&(i=Object(c.c)(e,0,Math.min(n,r))),i/=2,{x:(t[0].x+t[2].x)/2-i,y:(t[0].y+t[2].y)/2-i,width:2*i,height:2*i}}Object(c.j)(["hv","vh","hvh","vhv"],(function(t){Vn("line",t,{draw:function(e,n){var r=hi(e,t);return n.addShape({type:"path",attrs:r,name:"line"})},getMarker:function(e){return jr(e,t)}})})),Object(c.j)(["cross","tick","plus","hyphen","line"],(function(t){Vn("point",t,{draw:function(e,n){return ii(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:sr[t],style:{r:4.5,stroke:n,fill:null}}}})})),Vn("point","image",{draw:function(t,e){var n,r,i=mr(t,!1,!1,"r").r,o=this.parsePoints(t.points),a=o[0];if(t.isStack)a=o[1];else if(o.length>1){var c=e.addGroup();try{for(var l=Object(s.i)(o),u=l.next();!u.done;u=l.next()){var h=u.value;c.addShape("image",{attrs:{x:h.x-i/2,y:h.y-i,width:i,height:i,img:t.shape[1]}})}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return c}return e.addShape("image",{attrs:{x:a.x-i/2,y:a.y-i,width:i,height:i,img:t.shape[1]}})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),Object(c.j)(ri,(function(t){Vn("point",t,{draw:function(e,n){return ii(this,e,n,t,!1)},getMarker:function(e){var n=e.color;return{symbol:sr[t]||t,style:{r:4.5,fill:n}}}})})),Vn("schema","box",{getPoints:function(t){return fi(t.x,t.y,t.size)},draw:function(t,e){var n,r=mr(t,!0,!1),i=this.parsePath([["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["M",n[4].x,n[4].y],["L",n[5].x,n[5].y],["L",n[6].x,n[6].y],["L",n[7].x,n[7].y],["L",n[4].x,n[4].y],["Z"],["M",n[8].x,n[8].y],["L",n[9].x,n[9].y],["M",n[10].x,n[10].y],["L",n[11].x,n[11].y],["M",n[12].x,n[12].y],["L",n[13].x,n[13].y]]);return e.addShape("path",{attrs:Object(s.a)(Object(s.a)({},r),{path:i,name:"schema"})})},getMarker:function(t){return{symbol:function(t,e,n){var r=fi(t,[e-6,e-3,e,e+3,e+6],n);return[["M",r[0].x+1,r[0].y],["L",r[1].x-1,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["M",r[4].x,r[4].y],["L",r[5].x,r[5].y],["L",r[6].x,r[6].y],["L",r[7].x,r[7].y],["L",r[4].x,r[4].y],["Z"],["M",r[8].x,r[8].y],["L",r[9].x,r[9].y],["M",r[10].x+1,r[10].y],["L",r[11].x-1,r[11].y],["M",r[12].x,r[12].y],["L",r[13].x,r[13].y]]},style:{r:6,lineWidth:1,stroke:t.color}}}}),Vn("schema","candle",{getPoints:function(t){return gi(t.x,t.y,t.size)},draw:function(t,e){var n,r=mr(t,!0,!0),i=this.parsePath([["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["L",n[4].x,n[4].y],["L",n[5].x,n[5].y],["Z"],["M",n[6].x,n[6].y],["L",n[7].x,n[7].y]]);return e.addShape("path",{attrs:Object(s.a)(Object(s.a)({},r),{path:i,name:"schema"})})},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){var r=gi(t,[e+7.5,e+3,e-3,e-7.5],n);return[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["L",r[4].x,r[4].y],["L",r[5].x,r[5].y],["Z"],["M",r[6].x,r[6].y],["L",r[7].x,r[7].y]]},style:{lineWidth:1,stroke:e,fill:e,r:6}}}}),Vn("polygon","square",{draw:function(t,e){if(!Object(c.G)(t.points)){var n=mr(t,!0,!0),r=this.parsePoints(t.points);return e.addShape("rect",{attrs:Object(s.a)(Object(s.a)({},n),vi(r,t.size)),name:"polygon"})}},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}}),Vn("violin","smooth",{draw:function(t,e){var n=mr(t,!0,!0),r=this.parsePath(yr(t.points));return e.addShape("path",{attrs:Object(s.a)(Object(s.a)({},n),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{stroke:null,r:4,fill:t.color}}}}),Vn("violin","hollow",{draw:function(t,e){var n=mr(t,!0,!1),r=this.parsePath(vr(t.points));return e.addShape("path",{attrs:Object(s.a)(Object(s.a)({},n),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{r:4,fill:null,stroke:t.color}}}}),Vn("violin","hollow-smooth",{draw:function(t,e){var n=mr(t,!0,!1),r=this.parsePath(yr(t.points));return e.addShape("path",{attrs:Object(s.a)(Object(s.a)({},n),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{r:4,fill:null,stroke:t.color}}}});var yi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.getLabelValueDir=function(t){var e=t.points;return e[0].y<=e[2].y?1:-1},e.prototype.getLabelOffsetPoint=function(e,n,r,i){var o,a=t.prototype.getLabelOffsetPoint.call(this,e,n,r),c=this.getCoordinate(),l=c.isTransposed?"x":"y",u=this.getLabelValueDir(e.mappingData);return a=Object(s.a)(Object(s.a)({},a),((o={})[l]=a[l]*u,o)),c.isReflect("x")&&(a=Object(s.a)(Object(s.a)({},a),{x:-1*a.x})),c.isReflect("y")&&(a=Object(s.a)(Object(s.a)({},a),{y:-1*a.y})),a},e.prototype.getThemedLabelCfg=function(t){var e=this.geometry,n=this.getDefaultLabelCfg(),r=e.theme;return Object(c.h)({},n,r.labels,"middle"===t.position?{offset:0}:{},t)},e.prototype.setLabelPosition=function(t,e,n,r){var i,o,a,s,l=this.getCoordinate(),u=l.isTransposed,h=e.points,d=l.convert(h[0]),f=l.convert(h[2]),p=this.getLabelValueDir(e),g=Object(c.C)(e.shape)?e.shape[0]:e.shape;if("funnel"===g||"pyramid"===g){var v=Object(c.s)(e,"nextPoints"),y=Object(c.s)(e,"points");if(v){var m=l.convert(y[0]),b=l.convert(y[1]),x=l.convert(v[0]),O=l.convert(v[1]);u?(i=Math.min(x.y,m.y),a=Math.max(x.y,m.y),o=(b.x+O.x)/2,s=(m.x+x.x)/2):(i=Math.min((b.y+O.y)/2,(m.y+x.y)/2),a=Math.max((b.y+O.y)/2,(m.y+x.y)/2),o=O.x,s=m.x)}else i=Math.min(f.y,d.y),a=Math.max(f.y,d.y),o=f.x,s=d.x}else i=Math.min(f.y,d.y),a=Math.max(f.y,d.y),o=f.x,s=d.x;switch(r){case"right":t.x=o,t.y=(i+a)/2,t.textAlign=Object(c.s)(t,"textAlign",p>0?"left":"right");break;case"left":t.x=s,t.y=(i+a)/2,t.textAlign=Object(c.s)(t,"textAlign",p>0?"left":"right");break;case"bottom":u&&(t.x=(o+s)/2),t.y=a,t.textAlign=Object(c.s)(t,"textAlign","center"),t.textBaseline=Object(c.s)(t,"textBaseline",p>0?"bottom":"top");break;case"middle":u&&(t.x=(o+s)/2),t.y=(i+a)/2,t.textAlign=Object(c.s)(t,"textAlign","center"),t.textBaseline=Object(c.s)(t,"textBaseline","middle");break;case"top":u&&(t.x=(o+s)/2),t.y=i,t.textAlign=Object(c.s)(t,"textAlign","center"),t.textBaseline=Object(c.s)(t,"textBaseline",p>0?"bottom":"top")}},e}(or),mi=Math.PI/2,bi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=0;if(Object(c.M)(t))n=t;else if(Object(c.Q)(t)&&-1!==t.indexOf("%")){var r=e.getRadius();e.innerRadius>0&&(r*=1-e.innerRadius),n=.01*parseFloat(t)*r}return n},e.prototype.getLabelItems=function(e){var n=t.prototype.getLabelItems.call(this,e),r=this.geometry.getYScale();return Object(c.W)(n,(function(t){if(t&&r){var e=r.scale(Object(c.s)(t.data,r.field));return Object(s.a)(Object(s.a)({},t),{percent:e})}return t}))},e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate();if(t.labelEmit)e=t.angle<=Math.PI/2&&t.angle>=-Math.PI/2?"left":"right";else if(n.isTransposed){var r=n.getCenter(),i=t.offset;e=Math.abs(t.x-r.x)<1?"center":t.angle>Math.PI||t.angle<=0?i>0?"left":"right":i>0?"right":"left"}else e="center";return e},e.prototype.getLabelPoint=function(t,e,n){var r,i=1,o=t.content[n];this.isToMiddle(e)?r=this.getMiddlePoint(e.points):(1===t.content.length&&0===n?n=1:0===n&&(i=-1),r=this.getArcPoint(e,n));var a=t.offset*i,s=this.getPointAngle(r),c=t.labelEmit,l=this.getCirclePoint(s,a,r,c);return 0===l.r?l.content="":(l.content=o,l.angle=s,l.color=e.color),l.rotate=t.autoRotate?this.getLabelRotate(s,a,c):t.rotate,l.start={x:r.x,y:r.y},l},e.prototype.getArcPoint=function(t,e){return void 0===e&&(e=0),Object(c.C)(t.x)||Object(c.C)(t.y)?{x:Object(c.C)(t.x)?t.x[e]:t.x,y:Object(c.C)(t.y)?t.y[e]:t.y}:{x:t.x,y:t.y}},e.prototype.getPointAngle=function(t){return dt(this.getCoordinate(),t)},e.prototype.getCirclePoint=function(t,e,n,r){var i=this.getCoordinate(),o=i.getCenter(),a=ht(i,n);if(0===a)return Object(s.a)(Object(s.a)({},o),{r:a});var c=t;i.isTransposed&&a>e&&!r?c=t+2*Math.asin(e/(2*a)):a+=e;return{x:o.x+a*Math.cos(c),y:o.y+a*Math.sin(c),r:a}},e.prototype.getLabelRotate=function(t,e,n){var r=t+mi;return n&&(r-=mi),r&&(r>mi?r-=Math.PI:r<-mi&&(r+=Math.PI)),r},e.prototype.getMiddlePoint=function(t){var e=this.getCoordinate(),n=t.length,r={x:0,y:0};return Object(c.j)(t,(function(t){r.x+=t.x,r.y+=t.y})),r.x/=n,r.y/=n,r=e.convert(r)},e.prototype.isToMiddle=function(t){return t.x.length>2},e}(or),xi=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.defaultLayout="distribute",e}return Object(s.c)(e,t),e.prototype.getDefaultLabelCfg=function(e,n){var r=t.prototype.getDefaultLabelCfg.call(this,e,n);return Object(c.h)({},r,Object(c.s)(this.geometry.theme,"pieLabels",{}))},e.prototype.getLabelOffset=function(e){return t.prototype.getLabelOffset.call(this,e)||0},e.prototype.getLabelRotate=function(t,e,n){var r;return e<0&&((r=t)>Math.PI/2&&(r-=Math.PI),r<-Math.PI/2&&(r+=Math.PI)),r},e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate().getCenter();return e=t.angle<=Math.PI/2&&t.x>=n.x?"left":"right",t.offset<=0&&(e="right"===e?"left":"right"),e},e.prototype.getArcPoint=function(t){return t},e.prototype.getPointAngle=function(t){var e,n=this.getCoordinate(),r={x:Object(c.C)(t.x)?t.x[0]:t.x,y:t.y[0]},i={x:Object(c.C)(t.x)?t.x[1]:t.x,y:t.y[1]},o=dt(n,r);if(t.points&&t.points[0].y===t.points[1].y)e=o;else{var a=dt(n,i);o>=a&&(a+=2*Math.PI),e=o+(a-o)/2}return e},e.prototype.getCirclePoint=function(t,e){var n=this.getCoordinate(),r=n.getCenter(),i=n.getRadius()+e;return Object(s.a)(Object(s.a)({},et(r.x,r.y,i,t)),{angle:t,r:i})},e}(bi);function Oi(t,e,n){var r=t.filter((function(t){return!t.invisible}));r.sort((function(t,e){return t.y-e.y}));var i,o=!0,a=n.minY,s=n.maxY,c=Math.abs(a-s),l=0,u=Number.MIN_VALUE,h=r.map((function(t){return t.y>l&&(l=t.y),t.y<u&&(u=t.y),{content:t.content,size:e,targets:[t.y-a],pos:null}}));for(u-=a,l-a>c&&(c=l-a);o;)for(h.forEach((function(t){var e=(Math.min.apply(u,t.targets)+Math.max.apply(u,t.targets))/2;t.pos=Math.min(Math.max(u,e-t.size/2),c-t.size),t.pos=Math.max(0,t.pos)})),o=!1,i=h.length;i--;)if(i>0){var d=h[i-1],f=h[i];d.pos+d.size>f.pos&&(d.size+=f.size,d.targets=d.targets.concat(f.targets),d.pos+d.size>c&&(d.pos=c-d.size),h.splice(i,1),o=!0)}i=0,h.forEach((function(t){var n=a+e/2;t.targets.forEach((function(){r[i].y=t.pos+n,n+=e,i++}))}))}var ji=function(){function t(t){void 0===t&&(t={}),this.bitmap={};var e=t.xGap,n=void 0===e?1:e,r=t.yGap,i=void 0===r?8:r;this.xGap=n,this.yGap=i}return t.prototype.hasGap=function(t){for(var e=!0,n=this.bitmap,r=Math.round(t.minX),i=Math.round(t.maxX),o=Math.round(t.minY),a=Math.round(t.maxY),s=r;s<=i;s+=1)if(n[s]){if(s===r||s===i){for(var c=o;c<=a;c++)if(n[s][c]){e=!1;break}}else if(n[s][o]||n[s][a]){e=!1;break}}else n[s]={};return e},t.prototype.fillGap=function(t){for(var e=this.bitmap,n=Math.round(t.minX),r=Math.round(t.maxX),i=Math.round(t.minY),o=Math.round(t.maxY),a=n;a<=r;a+=1)e[a]||(e[a]={});for(a=n;a<=r;a+=this.xGap){for(var s=i;s<=o;s+=this.yGap)e[a][s]=!0;e[a][o]=!0}if(1!==this.yGap)for(a=i;a<=o;a+=1)e[n][a]=!0,e[r][a]=!0;if(1!==this.xGap)for(a=n;a<=r;a+=1)e[a][i]=!0,e[a][o]=!0},t.prototype.destroy=function(){this.bitmap={}},t}();function wi(t,e,n,r){var i=t.getCanvasBBox(),o=i.width,a=i.height,s={x:e,y:n,textAlign:"center"};switch(r){case 0:s.y-=a+1,s.x+=1,s.textAlign="left";break;case 1:s.y-=a+1,s.x-=1,s.textAlign="right";break;case 2:s.y+=a+1,s.x-=1,s.textAlign="right";break;case 3:s.y+=a+1,s.x+=1,s.textAlign="left";break;case 5:s.y-=2*a+2;break;case 6:s.y+=2*a+2;break;case 7:s.x+=o+1,s.textAlign="left";break;case 8:s.x-=o+1,s.textAlign="right"}return t.attr(s),t.getCanvasBBox()}function Ci(t){if(t.length>4)return[];var e=function(t,e){return[e.x-t.x,e.y-t.y]};return[e(t[0],t[1]),e(t[1],t[2])]}function _i(t,e,n){void 0===e&&(e=0),void 0===n&&(n={x:0,y:0});var r=t.x,i=t.y;return{x:(r-n.x)*Math.cos(-e)+(i-n.y)*Math.sin(-e)+n.x,y:(n.x-r)*Math.sin(-e)+(i-n.y)*Math.cos(-e)+n.y}}function Mi(t){var e=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],n=t.rotation;return n?[_i(e[0],n,e[0]),_i(e[1],n,e[0]),_i(e[2],n,e[0]),_i(e[3],n,e[0])]:e}function Si(t,e){if(t.length>4)return{min:0,max:0};var n=[];return t.forEach((function(t){var r,i;n.push((r=[t.x,t.y],i=e,(r[0]||0)*(i[0]||0)+(r[1]||0)*(i[1]||0)+(r[2]||0)*(i[2]||0)))})),{min:Math.min.apply(Math,Object(s.g)([],Object(s.e)(n),!1)),max:Math.max.apply(Math,Object(s.g)([],Object(s.e)(n),!1))}}function Ei(t,e){return t.max>e.min&&t.min<e.max}function ki(t){return["x","y","width","height"].every((function(e){return"number"==typeof(n=t[e])&&!Number.isNaN(n)&&n!==1/0&&n!==-1/0;var n}))}function Ii(t,e,n){if(void 0===n&&(n=0),!ki(t)||!ki(e))return!1;if(!t.rotation&&!e.rotation)return function(t,e,n){return void 0===n&&(n=0),!(e.x>t.x+t.width+n||e.x+e.width<t.x-n||e.y>t.y+t.height+n||e.y+e.height<t.y-n)}(t,e,n);for(var r=Mi(t),i=Mi(e),o=Ci(r).concat(Ci(i)),a=0;a<o.length;a++){var s=o[a];if(!Ei(Si(r,s),Si(i,s)))return!1}return!0}var Ai=function(){function t(t){var e=this;this.queue=[],this.worker=new Worker(t),this.worker.onmessage=function(t){var n;null===(n=e.queue.shift())||void 0===n||n.resolve(t)},this.worker.onmessageerror=function(t){var n;console.warn("[AntV G2] Web worker is not available"),null===(n=e.queue.shift())||void 0===n||n.reject(t)}}return t.prototype.post=function(t,e){var n=this;return new Promise((function(r,i){n.queue.push({resolve:r,reject:i});try{n.worker.postMessage(t)}catch(t){console.warn("[AntV G2] Web worker is not available"),Object(c.I)(e)&&e()}}))},t.prototype.destroy=function(){this.worker.terminate()},t}();var Pi="\n self.onmessage = ".concat(function(t){var e=function(){function t(t){if(t.length>4)return[];var e=function(t,e){return[e.x-t.x,e.y-t.y]};return[e(t[0],t[1]),e(t[1],t[2])]}function e(t,e,n){void 0===e&&(e=0),void 0===n&&(n={x:0,y:0});var r=t.x,i=t.y;return{x:(r-n.x)*Math.cos(-e)+(i-n.y)*Math.sin(-e)+n.x,y:(n.x-r)*Math.sin(-e)+(i-n.y)*Math.cos(-e)+n.y}}function n(t){var n=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],r=t.rotation;return r?[e(n[0],r,n[0]),e(n[1],r,n[0]),e(n[2],r,n[0]),e(n[3],r,n[0])]:n}function r(t,e){if(t.length>4)return{min:0,max:0};var n=[];return t.forEach((function(t){var r,i;n.push((r=[t.x,t.y],i=e,(r[0]||0)*(i[0]||0)+(r[1]||0)*(i[1]||0)+(r[2]||0)*(i[2]||0)))})),{min:Math.min.apply(null,n),max:Math.max.apply(null,n)}}function i(t,e){return t.max>e.min&&t.min<e.max}function o(t){return["x","y","width","height"].every((function(e){return"number"==typeof(n=t[e])&&!Number.isNaN(n)&&n!==1/0&&n!==-1/0;var n}))}return{intersect:function(e,a,s){if(void 0===s&&(s=0),!o(e)||!o(a))return!1;if(!e.rotation&&!a.rotation)return function(t,e,n){return void 0===n&&(n=0),!(e.x>t.x+t.width+n||e.x+e.width<t.x-n||e.y>t.y+t.height+n||e.y+e.height<t.y-n)}(e,a,s);for(var c=n(e),l=n(a),u=t(c).concat(t(l)),h=0;h<u.length;h++){var d=u[h];if(!i(r(c,d),r(l,d)))return!1}return!0}}}().intersect;var n={"hide-overlap":function(t){for(var n=t.slice(),r=0;r<n.length;r++){var i=n[r];if(i.visible)for(var o=r+1;o<n.length;o++){var a=n[o];i!==a&&a.visible&&e(i,a)&&(a.visible=!1)}}return n}};try{var r=JSON.parse(t.data);if(!r||!r.type||!n[r.type])return;var i=r.type,o=r.items,a=n[i](o);self.postMessage(a)}catch(t){throw t}}.toString(),"\n"),Ti=function(t){for(var e=t.slice(),n=0;n<e.length;n++){var r=e[n];if(r.visible)for(var i=n+1;i<e.length;i++){var o=e[i];r!==o&&o.visible&&Ii(r,o)&&(o.visible=!1)}}return e},Bi=new Map,Li=function(t){if("undefined"!=typeof window){var e;try{e=new Blob([t.toString()],{type:"application/javascript"})}catch(n){(e=new window.BlobBuilder).append(t.toString()),e=e.getBlob()}return new Ai(URL.createObjectURL(e))}}(Pi);var Di,Fi={"#5B8FF9":!0};function Ri(t,e,n){return!!t.getAdjust("stack")||e.every((function(e,r){var i=n[r];return function(t,e,n){var r=t.coordinate,i=tr(e),o=lt.fromObject(i.getCanvasBBox()),a=lt.fromObject(n.getBBox());return r.isTransposed?a.height>=o.height:a.width>=o.width}(t,e,i)}))}function Ni(t,e,n){return t.some((function(t){return n(t,e)}))}function zi(t,e){return Ni(t,e,(function(t,e){var n,r,i,o=tr(t),a=tr(e);return n=o.getCanvasBBox(),r=a.getCanvasBBox(),void 0===(i=2)&&(i=0),Math.max(0,Math.min(n.x+n.width+i,r.x+r.width+i)-Math.max(n.x-i,r.x-i))*Math.max(0,Math.min(n.y+n.height+i,r.y+r.height+i)-Math.max(n.y-i,r.y-i))>0}))}function Wi(t,e,n){return t.some((function(t){return n(t,e)}))}function $i(t,e){return Wi(t,e,(function(t,e){var n,r,i,o=tr(t),a=tr(e);return n=o.getCanvasBBox(),r=a.getCanvasBBox(),void 0===(i=2)&&(i=0),Math.max(0,Math.min(n.x+n.width+i,r.x+r.width+i)-Math.max(n.x-i,r.x-i))*Math.max(0,Math.min(n.y+n.height+i,r.y+r.height+i)-Math.max(n.y-i,r.y-i))>0}))}var Hi=Object(c.ab)((function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,i=e.fontWeight,o=e.fontStyle,a=e.fontVariant,s=(Di||(Di=document.createElement("canvas").getContext("2d")),Di);return s.font=[o,a,i,"".concat(n,"px"),r].join(" "),s.measureText(Object(c.Q)(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),Object(s.g)([t],Object(s.e)(Object(c.xb)(e)),!1).join("")}));function Yi(t,e,n,r,i){var o,a,c=n.start,l=n.end,u=n.getWidth(),h=n.getHeight();"y"===i?(o=c.x+u/2,a=r.y<c.y?r.y:c.y):"x"===i?(o=r.x>c.x?r.x:c.x,a=c.y+h/2):"xy"===i&&(n.isPolar?(o=n.getCenter().x,a=n.getCenter().y):(o=(c.x+l.x)/2,a=(c.y+l.y)/2));var d=function(t,e,n){var r,i=Object(s.e)(e,2),o=i[0],a=i[1];return t.applyToMatrix([o,a,1]),"x"===n?(t.setMatrix(R.a.transform(t.getMatrix(),[["t",-o,-a],["s",.01,1],["t",o,a]])),r=R.a.transform(t.getMatrix(),[["t",-o,-a],["s",100,1],["t",o,a]])):"y"===n?(t.setMatrix(R.a.transform(t.getMatrix(),[["t",-o,-a],["s",1,.01],["t",o,a]])),r=R.a.transform(t.getMatrix(),[["t",-o,-a],["s",1,100],["t",o,a]])):"xy"===n&&(t.setMatrix(R.a.transform(t.getMatrix(),[["t",-o,-a],["s",.01,.01],["t",o,a]])),r=R.a.transform(t.getMatrix(),[["t",-o,-a],["s",100,100],["t",o,a]])),r}(t,[o,a],i);t.animate({matrix:d},e)}function Vi(t,e){var n,r=Object(Nr.getArcParams)(t,e),i=r.startAngle,o=r.endAngle;return!Object(c.N)(i,.5*-Math.PI)&&i<.5*-Math.PI&&(i+=2*Math.PI),!Object(c.N)(o,.5*-Math.PI)&&o<.5*-Math.PI&&(o+=2*Math.PI),0===e[5]&&(i=(n=Object(s.e)([o,i],2))[0],o=n[1]),Object(c.N)(i,1.5*Math.PI)&&(i=-.5*Math.PI),Object(c.N)(o,-.5*Math.PI)&&!Object(c.N)(i,o)&&(o=1.5*Math.PI),{startAngle:i,endAngle:o}}function Gi(t){var e;return"M"===t[0]||"L"===t[0]?e=[t[1],t[2]]:"a"!==t[0]&&"A"!==t[0]&&"C"!==t[0]||(e=[t[t.length-2],t[t.length-1]]),e}function Ki(t){var e,n,r,i=t.filter((function(t){return"A"===t[0]||"a"===t[0]}));if(0===i.length)return{startAngle:0,endAngle:0,radius:0,innerRadius:0};var o=i[0],a=i.length>1?i[1]:i[0],l=t.indexOf(o),u=t.indexOf(a),h=Gi(t[l-1]),d=Gi(t[u-1]),f=Vi(h,o),p=f.startAngle,g=f.endAngle,v=Vi(d,a),y=v.startAngle,m=v.endAngle;Object(c.N)(p,y)&&Object(c.N)(g,m)?(n=p,r=g):(n=Math.min(p,y),r=Math.max(g,m));var b=o[1],x=i[i.length-1][1];return b<x?(b=(e=Object(s.e)([x,b],2))[0],x=e[1]):b===x&&(x=0),{startAngle:n,endAngle:r,radius:b,innerRadius:x}}function Xi(t,e,n){if(t.isGroup())Object(c.j)(t.getChildren(),(function(t){Xi(t,e,n)}));else{var r=t.getBBox(),i=(r.minX+r.maxX)/2,o=(r.minY+r.maxY)/2;if(t.applyToMatrix([i,o,1]),"zoomIn"===n){var a=R.a.transform(t.getMatrix(),[["t",-i,-o],["s",.01,.01],["t",i,o]]);t.setMatrix(a),t.animate({matrix:R.a.transform(t.getMatrix(),[["t",-i,-o],["s",100,100],["t",i,o]])},e)}else t.animate({matrix:R.a.transform(t.getMatrix(),[["t",-i,-o],["s",.01,.01],["t",i,o]])},Object(s.a)(Object(s.a)({},e),{callback:function(){t.remove(!0),Object(c.I)(e.callback)&&e.callback()}}))}}function Ui(t){return[o.TOP,o.BOTTOM].includes(t)?{offsetX:0,offsetY:t===o.TOP?-8:8,style:{textAlign:"center",textBaseline:t===o.TOP?"bottom":"top"}}:[o.LEFT,o.RIGHT].includes(t)?{offsetX:t===o.LEFT?-8:8,offsetY:0,style:{textAlign:t===o.LEFT?"right":"left",textBaseline:"middle",rotate:Math.PI/2}}:{}}function qi(t,e,n){return{x:t.x+e*Math.cos(n),y:t.y+e*Math.sin(n)}}var Zi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.getDefaultCfg=function(){return Object(c.h)({},t.prototype.getDefaultCfg.call(this),{type:"circle",showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.getRegion=function(t,e){var n=2*Math.PI/t,r=-1*Math.PI/2+n*e,i=.5/(1+1/Math.sin(n/2)),o=qi({x:.5,y:.5},.5-i,r),a=5*Math.PI/4,s=1*Math.PI/4;return{start:qi(o,i,a),end:qi(o,i,s)}},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){var e=this,n=this.cfg,r=n.fields,i=n.type,o=Object(s.e)(r,1)[0];if(!o)throw new Error("No `fields` specified!");var a=this.getFieldValues(t,o),l=a.length,u=[];return a.forEach((function(n,r){var s=[{field:o,value:n,values:a}],h=Object(c.l)(t,e.getFacetDataFilter(s)),d={type:i,data:h,region:e.getRegion(l,r),columnValue:n,columnField:o,columnIndex:r,columnValuesLength:l,rowValue:null,rowField:null,rowIndex:0,rowValuesLength:1};u.push(d)})),u},e.prototype.getXAxisOption=function(t,e,n,r){return n},e.prototype.getYAxisOption=function(t,e,n,r){return n},e.prototype.renderTitle=function(){var t=this;Object(c.j)(this.facets,(function(e){var n=e.columnValue,r=e.view,i=Object(c.s)(t.cfg.title,"formatter"),a=Object(c.h)({position:["50%","0%"],content:i?i(n):n},Ui(o.TOP),t.cfg.title);r.annotation().text(a)}))},e}(Et),Qi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.getDefaultCfg=function(){return Object(c.h)({},t.prototype.getDefaultCfg.call(this),{type:"list",cols:null,showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){var e=this,n=this.cfg.fields,r=this.cfg.cols,i=Object(s.e)(n,1)[0];if(!i)throw new Error("No `fields` specified!");var o=this.getFieldValues(t,i),a=o.length;r=r||a;var l=this.getPageCount(a,r),u=[];return o.forEach((function(n,s){var h=e.getRowCol(s,r),d=h.row,f=h.col,p=[{field:i,value:n,values:o}],g=Object(c.l)(t,e.getFacetDataFilter(p)),v={type:e.cfg.type,data:g,region:e.getRegion(l,r,f,d),columnValue:n,rowValue:n,columnField:i,rowField:null,columnIndex:f,rowIndex:d,columnValuesLength:r,rowValuesLength:l,total:a};u.push(v)})),u},e.prototype.getXAxisOption=function(t,e,n,r){return r.rowIndex!==r.rowValuesLength-1&&r.columnValuesLength*r.rowIndex+r.columnIndex+1+r.columnValuesLength<=r.total?Object(s.a)(Object(s.a)({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return 0!==r.columnIndex?Object(s.a)(Object(s.a)({},n),{title:null,label:null}):n},e.prototype.renderTitle=function(){var t=this;Object(c.j)(this.facets,(function(e){var n=e.columnValue,r=e.view,i=Object(c.s)(t.cfg.title,"formatter"),a=Object(c.h)({position:["50%","0%"],content:i?i(n):n},Ui(o.TOP),t.cfg.title);r.annotation().text(a)}))},e.prototype.getPageCount=function(t,e){return Math.floor((t+e-1)/e)},e.prototype.getRowCol=function(t,e){return{row:Math.floor(t/e),col:t%e}},e}(Et),Ji=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.getDefaultCfg=function(){return Object(c.h)({},t.prototype.getDefaultCfg.call(this),{type:"matrix",showTitle:!1,columnTitle:Object(s.a)({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:Object(s.a)({},t.prototype.getDefaultTitleCfg.call(this))})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){for(var e=this.cfg,n=e.fields,r=e.type,i=n.length,o=i,a=[],s=0;s<o;s++)for(var c=n[s],l=0;l<i;l++){var u=n[l],h={type:r,data:t,region:this.getRegion(i,o,s,l),columnValue:c,rowValue:u,columnField:c,rowField:u,columnIndex:s,rowIndex:l,columnValuesLength:o,rowValuesLength:i};a.push(h)}return a},e.prototype.getXAxisOption=function(t,e,n,r){return r.rowIndex!==r.rowValuesLength-1?Object(s.a)(Object(s.a)({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return 0!==r.columnIndex?Object(s.a)(Object(s.a)({},n),{title:null,label:null}):n},e.prototype.renderTitle=function(){var t=this;Object(c.j)(this.facets,(function(e,n){var r=e.columnIndex,i=e.rowIndex,a=e.columnValuesLength,s=(e.rowValuesLength,e.columnValue),l=e.rowValue,u=e.view;if(0===i){var h=Object(c.s)(t.cfg.columnTitle,"formatter"),d=Object(c.h)({position:["50%","0%"],content:h?h(s):s},Ui(o.TOP),t.cfg.columnTitle);u.annotation().text(d)}if(r===a-1){h=Object(c.s)(t.cfg.rowTitle,"formatter"),d=Object(c.h)({position:["100%","50%"],content:h?h(l):l},Ui(o.RIGHT),t.cfg.rowTitle);u.annotation().text(d)}}))},e}(Et),to=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.getDefaultCfg=function(){return Object(c.h)({},t.prototype.getDefaultCfg.call(this),{type:"mirror",showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this),transpose:!1})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.beforeEachView=function(t,e){this.cfg.transpose?e.columnIndex%2==0?t.coordinate().transpose().reflect("x"):t.coordinate().transpose():e.rowIndex%2!=0&&t.coordinate().reflect("y")},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.generateFacets=function(t){var e,n,r=this,i=Object(s.e)(this.cfg.fields,1)[0],o=[],a=1,l=1,u=[""],h=[""];return this.cfg.transpose?(e=i,u=this.getFieldValues(t,e).slice(0,2),a=u.length):(n=i,h=this.getFieldValues(t,n).slice(0,2),l=h.length),u.forEach((function(i,s){h.forEach((function(d,f){var p=[{field:e,value:i,values:u},{field:n,value:d,values:h}],g=Object(c.l)(t,r.getFacetDataFilter(p)),v={type:r.cfg.type,data:g,region:r.getRegion(l,a,s,f),columnValue:i,rowValue:d,columnField:e,rowField:n,columnIndex:s,rowIndex:f,columnValuesLength:a,rowValuesLength:l};o.push(v)}))})),o},e.prototype.getXAxisOption=function(t,e,n,r){return 1===r.columnIndex||1===r.rowIndex?Object(s.a)(Object(s.a)({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return n},e.prototype.renderTitle=function(){var t=this;Object(c.j)(this.facets,(function(e,n){var r=e.columnValue,i=e.rowValue,a=e.view,s=Object(c.s)(t.cfg.title,"formatter");if(t.cfg.transpose){var l=Object(c.h)({position:["50%","0%"],content:s?s(r):r},Ui(o.TOP),t.cfg.title);a.annotation().text(l)}else{l=Object(c.h)({position:["100%","50%"],content:s?s(i):i},Ui(o.RIGHT),t.cfg.title);a.annotation().text(l)}}))},e}(Et),eo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.getDefaultCfg=function(){return Object(c.h)({},t.prototype.getDefaultCfg.call(this),{type:"rect",columnTitle:Object(s.a)({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:Object(s.a)({},t.prototype.getDefaultTitleCfg.call(this))})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.generateFacets=function(t){var e=this,n=Object(s.e)(this.cfg.fields,2),r=n[0],i=n[1],o=[],a=1,l=1,u=[""],h=[""];return r&&(u=this.getFieldValues(t,r),a=u.length),i&&(h=this.getFieldValues(t,i),l=h.length),u.forEach((function(n,s){h.forEach((function(d,f){var p=[{field:r,value:n,values:u},{field:i,value:d,values:h}],g=Object(c.l)(t,e.getFacetDataFilter(p)),v={type:e.cfg.type,data:g,region:e.getRegion(l,a,s,f),columnValue:n,rowValue:d,columnField:r,rowField:i,columnIndex:s,rowIndex:f,columnValuesLength:a,rowValuesLength:l};o.push(v)}))})),o},e.prototype.renderTitle=function(){var t=this;Object(c.j)(this.facets,(function(e,n){var r=e.columnIndex,i=e.rowIndex,a=e.columnValuesLength,s=e.columnValue,l=e.rowValue,u=e.view;if(0===i){var h=Object(c.s)(t.cfg.columnTitle,"formatter"),d=Object(c.h)({position:["50%","0%"],content:h?h(s):s},Ui(o.TOP),t.cfg.columnTitle);u.annotation().text(d)}if(r===a-1){h=Object(c.s)(t.cfg.rowTitle,"formatter"),d=Object(c.h)({position:["100%","50%"],content:h?h(l):l},Ui(o.RIGHT),t.cfg.rowTitle);u.annotation().text(d)}}))},e.prototype.getXAxisOption=function(t,e,n,r){return r.rowIndex!==r.rowValuesLength-1?Object(s.a)(Object(s.a)({},n),{title:null,label:null}):r.columnIndex!==Math.floor((r.columnValuesLength-1)/2)?Object(s.a)(Object(s.a)({},n),{title:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return 0!==r.columnIndex?Object(s.a)(Object(s.a)({},n),{title:null,label:null}):r.rowIndex!==Math.floor((r.rowValuesLength-1)/2)?Object(s.a)(Object(s.a)({},n),{title:null}):n},e}(Et),no=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.afterChartRender=function(){e.facets&&e.cfg.line&&(e.container.clear(),e.drawLines(e.facets))},e}return Object(s.c)(e,t),e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.init=function(){t.prototype.init.call(this),this.view.on(l.AFTER_RENDER,this.afterChartRender)},e.prototype.getDefaultCfg=function(){return Object(c.h)({},t.prototype.getDefaultCfg.call(this),{type:"tree",line:{style:{lineWidth:1,stroke:"#ddd"},smooth:!1},showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.generateFacets=function(t){if(!this.cfg.fields.length)throw new Error("Please specify for the fields for rootFacet!");var e=[],n={type:this.cfg.type,data:t,region:null,rowValuesLength:this.getRows(),columnValuesLength:1,rowIndex:0,columnIndex:0,rowField:"",columnField:"",rowValue:"",columnValue:""};return e.push(n),n.children=this.getChildFacets(t,1,e),this.setRegion(e),e},e.prototype.setRegion=function(t){var e=this;this.forceColIndex(t),t.forEach((function(t){t.region=e.getRegion(t.rowValuesLength,t.columnValuesLength,t.columnIndex,t.rowIndex)}))},e.prototype.getRegion=function(t,e,n,r){var i=1/e,o=1/t,a={x:i*n,y:o*r};return{start:a,end:{x:a.x+i,y:a.y+2*o/3}}},e.prototype.forceColIndex=function(t){var e,n,r=this,i=[],o=0;t.forEach((function(t){r.isLeaf(t)&&(i.push(t),t.columnIndex=o,o++)})),i.forEach((function(t){t.columnValuesLength=i.length}));for(var a=this.cfg.fields.length-1;a>=0;a--){var c=this.getFacetsByLevel(t,a);try{for(var l=(e=void 0,Object(s.i)(c)),u=l.next();!u.done;u=l.next()){var h=u.value;this.isLeaf(h)||(h.originColIndex=h.columnIndex,h.columnIndex=this.getRegionIndex(h.children),h.columnValuesLength=i.length)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(e)throw e.error}}}},e.prototype.getFacetsByLevel=function(t,e){var n=[];return t.forEach((function(t){t.rowIndex===e&&n.push(t)})),n},e.prototype.getRegionIndex=function(t){var e=t[0];return(t[t.length-1].columnIndex-e.columnIndex)/2+e.columnIndex},e.prototype.isLeaf=function(t){return!t.children||!t.children.length},e.prototype.getRows=function(){return this.cfg.fields.length+1},e.prototype.getChildFacets=function(t,e,n){var r=this,i=this.cfg.fields;if(!(i.length<e)){var o=[],a=i[e-1],s=this.getFieldValues(t,a);return s.forEach((function(i,c){var l=[{field:a,value:i,values:s}],u=t.filter(r.getFacetDataFilter(l));if(u.length){var h={type:r.cfg.type,data:u,region:null,columnValue:i,rowValue:"",columnField:a,rowField:"",columnIndex:c,rowValuesLength:r.getRows(),columnValuesLength:1,rowIndex:e,children:r.getChildFacets(u,e+1,n)};o.push(h),n.push(h)}})),o}},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.renderTitle=function(){var t=this;Object(c.j)(this.facets,(function(e){var n=e.columnValue,r=e.view,i=Object(c.s)(t.cfg.title,"formatter"),a=Object(c.h)({position:["50%","0%"],content:i?i(n):n},Ui(o.TOP),t.cfg.title);r.annotation().text(a)}))},e.prototype.drawLines=function(t){var e=this;t.forEach((function(t){if(!e.isLeaf(t)){var n=t.children;e.addFacetLines(t,n)}}))},e.prototype.addFacetLines=function(t,e){var n=this,r=t.view.coordinateBBox,i={x:r.x+r.width/2,y:r.y+r.height};e.forEach((function(t){var e=t.view.coordinateBBox,r={x:e.bl.x+(e.tr.x-e.bl.x)/2,y:e.tr.y},o={x:i.x,y:i.y+(r.y-i.y)/2},a={x:r.x,y:o.y};n.drawLine([i,o,a,r])}))},e.prototype.getPath=function(t){var e=[];return this.cfg.line.smooth?(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])):t.forEach((function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},e.prototype.drawLine=function(t){var e=this.getPath(t),n=this.cfg.line.style;this.container.addShape("path",{attrs:Object(c.b)({path:e},n)})},e.prototype.getXAxisOption=function(t,e,n,r){return r.rowIndex!==r.rowValuesLength-1?Object(s.a)(Object(s.a)({},n),{title:null,label:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return 0!==r.originColIndex&&0!==r.columnIndex?Object(s.a)(Object(s.a)({},n),{title:null,label:null}):n},e}(Et);function ro(t){var e=Object(s.g)([],Object(s.e)(t),!1);e.sort((function(t,e){return t-e}));var n=e.length;return 0===n?0:n%2==1?e[(n-1)/2]:(e[n/2]+e[n/2-1])/2}function io(t,e){if(!e)return null;var n,r,i;switch(t){case"start":return 0;case"center":return.5;case"end":return 1;case"median":n=e.isCategory?ro(e.values.map((function(t,e){return e}))):ro(e.values);break;case"mean":n=e.isCategory?(e.values.length-1)/2:(r=e.values,i=Object(c.ib)(r,(function(t,e){return t+(isNaN(e)||!Object(c.M)(e)?0:e)}),0),0===r.length?0:i/r.length);break;case"min":n=e.isCategory?0:e[t];break;case"max":n=e.isCategory?e.values.length-1:e[t];break;default:n=t}return e.scale(n)}var oo=["regionFilter","shape"],ao=function(t){function e(e){var n=t.call(this,e)||this;return n.cache=new Map,n.foregroundContainer=n.view.getLayer(i.FORE).addGroup(),n.backgroundContainer=n.view.getLayer(i.BG).addGroup(),n.option=[],n}return Object(s.c)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"annotation"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.layout=function(){this.update()},e.prototype.render=function(){},e.prototype.update=function(){var t=this;this.onAfterRender((function(){var e=new Map;Object(c.j)(t.option,(function(n){if(Object(c.A)(oo,n.type)){var r=t.updateOrCreate(n);r&&e.set(t.getCacheKey(n),r)}})),t.cache=t.syncCache(e)}));var e=new Map;Object(c.j)(this.option,(function(n){if(!Object(c.A)(oo,n.type)){var r=t.updateOrCreate(n);r&&e.set(t.getCacheKey(n),r)}})),this.cache=this.syncCache(e)},e.prototype.clear=function(e){void 0===e&&(e=!1),t.prototype.clear.call(this),this.clearComponents(),this.foregroundContainer.clear(),this.backgroundContainer.clear(),e&&(this.option=[])},e.prototype.destroy=function(){this.clear(!0),this.foregroundContainer.remove(!0),this.backgroundContainer.remove(!0)},e.prototype.getComponents=function(){var t=[];return this.cache.forEach((function(e){t.push(e)})),t},e.prototype.clearComponents=function(){this.getComponents().forEach((function(t){t.component.destroy()})),this.cache.clear()},e.prototype.onAfterRender=function(t){var e=!1;this.view.getOptions().animate&&this.view.geometries.forEach((function(n){n.animateOption&&(n.once(u.AFTER_DRAW_ANIMATE,(function(){t()})),e=!0)})),e||this.view.getRootView().once(l.AFTER_RENDER,(function(){t()}))},e.prototype.createAnnotation=function(t){var e=t.type,n=V.Annotation[Object(c.wb)(e)];if(n){var r=this.getAnnotationTheme(e),s=this.getAnnotationCfg(e,t,r);return s?{component:new n(s),layer:this.isTop(s)?i.FORE:i.BG,direction:o.NONE,type:a.ANNOTATION,extra:t}:null}},e.prototype.annotation=function(t){this.option.push(t)},e.prototype.arc=function(t){return this.annotation(Object(s.a)({type:"arc"},t)),this},e.prototype.image=function(t){return this.annotation(Object(s.a)({type:"image"},t)),this},e.prototype.line=function(t){return this.annotation(Object(s.a)({type:"line"},t)),this},e.prototype.region=function(t){return this.annotation(Object(s.a)({type:"region"},t)),this},e.prototype.text=function(t){return this.annotation(Object(s.a)({type:"text"},t)),this},e.prototype.dataMarker=function(t){return this.annotation(Object(s.a)({type:"dataMarker"},t)),this},e.prototype.dataRegion=function(t){this.annotation(Object(s.a)({type:"dataRegion"},t))},e.prototype.regionFilter=function(t){this.annotation(Object(s.a)({type:"regionFilter"},t))},e.prototype.shape=function(t){this.annotation(Object(s.a)({type:"shape"},t))},e.prototype.html=function(t){this.annotation(Object(s.a)({type:"html"},t))},e.prototype.parsePosition=function(t){var e,n,r=this.view.getXScale(),i=this.view.getScalesByDim("y"),o=Object(c.I)(t)?t.call(null,r,i):t,a=0,l=0;if(Object(c.C)(o)){var u=Object(s.e)(o,2),h=u[0],d=u[1];if(Object(c.Q)(h)&&-1!==h.indexOf("%")&&!isNaN(h.slice(0,-1)))return this.parsePercentPosition(o);a=io(h,r),l=io(d,Object.values(i)[0])}else if(!Object(c.K)(o))try{for(var f=Object(s.i)(Object(c.T)(o)),p=f.next();!p.done;p=f.next()){var g=p.value,v=o[g];g===r.field&&(a=io(v,r)),i[g]&&(l=io(v,i[g]))}}catch(t){e={error:t}}finally{try{p&&!p.done&&(n=f.return)&&n.call(f)}finally{if(e)throw e.error}}return isNaN(a)||isNaN(l)?null:this.view.getCoordinate().convert({x:a,y:l})},e.prototype.getRegionPoints=function(t,e){var n,r=this,i=this.view.getXScale(),o=this.view.getScalesByDim("y"),a=Object.values(o)[0],s=i.field,l=this.view.getData(),u=Object(c.C)(t)?t[0]:t[s],h=Object(c.C)(e)?e[0]:e[s],d=[];return Object(c.j)(l,(function(t,e){if(t[s]===u&&(n=e),e>=n){var i=r.parsePosition([t[s],t[a.field]]);i&&d.push(i)}if(t[s]===h)return!1})),d},e.prototype.parsePercentPosition=function(t){var e=parseFloat(t[0])/100,n=parseFloat(t[1])/100,r=this.view.getCoordinate(),i=r.start,o=r.end,a=Math.min(i.x,o.x),s=Math.min(i.y,o.y);return{x:r.getWidth()*e+a,y:r.getHeight()*n+s}},e.prototype.getCoordinateBBox=function(){var t=this.view.getCoordinate(),e=t.start,n=t.end,r=t.getWidth(),i=t.getHeight(),o={x:Math.min(e.x,n.x),y:Math.min(e.y,n.y)};return{x:o.x,y:o.y,minX:o.x,minY:o.y,maxX:o.x+r,maxY:o.y+i,width:r,height:i}},e.prototype.getAnnotationCfg=function(t,e,n){var r=this,i=this.view.getCoordinate(),o=this.view.getCanvas(),a={};if(Object(c.K)(e))return null;var l=e.start,u=e.end,h=e.position,d=this.parsePosition(l),f=this.parsePosition(u),p=this.parsePosition(h);if(!(!["arc","image","line","region","regionFilter"].includes(t)||d&&f))return null;if(["text","dataMarker","html"].includes(t)&&!p)return null;if("arc"===t){var g=e,v=(g.start,g.end,Object(s.f)(g,["start","end"])),y=dt(i,d),m=dt(i,f);y>m&&(m=2*Math.PI+m),a=Object(s.a)(Object(s.a)({},v),{center:i.getCenter(),radius:ht(i,d),startAngle:y,endAngle:m})}else if("image"===t){var b=e;b.start,b.end,v=Object(s.f)(b,["start","end"]);a=Object(s.a)(Object(s.a)({},v),{start:d,end:f,src:e.src})}else if("line"===t){var x=e;x.start,x.end,v=Object(s.f)(x,["start","end"]);a=Object(s.a)(Object(s.a)({},v),{start:d,end:f,text:Object(c.s)(e,"text",null)})}else if("region"===t){var O=e;O.start,O.end,v=Object(s.f)(O,["start","end"]);a=Object(s.a)(Object(s.a)({},v),{start:d,end:f})}else if("text"===t){var j=this.view.getData(),w=e,C=(w.position,w.content),_=(v=Object(s.f)(w,["position","content"]),C);Object(c.I)(C)&&(_=C(j)),a=Object(s.a)(Object(s.a)(Object(s.a)({},p),v),{content:_})}else if("dataMarker"===t){var M=e,S=(M.position,M.point),E=M.line,k=M.text,I=M.autoAdjust,A=M.direction;v=Object(s.f)(M,["position","point","line","text","autoAdjust","direction"]);a=Object(s.a)(Object(s.a)(Object(s.a)({},v),p),{coordinateBBox:this.getCoordinateBBox(),point:S,line:E,text:k,autoAdjust:I,direction:A})}else if("dataRegion"===t){var P=e,T=P.start,B=P.end,L=P.region,D=(k=P.text,P.lineLength);v=Object(s.f)(P,["start","end","region","text","lineLength"]);a=Object(s.a)(Object(s.a)({},v),{points:this.getRegionPoints(T,B),region:L,text:k,lineLength:D})}else if("regionFilter"===t){var F=e,R=(F.start,F.end,F.apply),N=F.color,z=(v=Object(s.f)(F,["start","end","apply","color"]),this.view.geometries),W=[],$=function(t){t&&(t.isGroup()?t.getChildren().forEach((function(t){return $(t)})):W.push(t))};Object(c.j)(z,(function(t){R?Object(c.f)(R,t.type)&&Object(c.j)(t.elements,(function(t){$(t.shape)})):Object(c.j)(t.elements,(function(t){$(t.shape)}))})),a=Object(s.a)(Object(s.a)({},v),{color:N,shapes:W,start:d,end:f})}else if("shape"===t){var H=e,Y=H.render,V=Object(s.f)(H,["render"]);a=Object(s.a)(Object(s.a)({},V),{render:function(t){if(Object(c.I)(e.render))return Y(t,r.view,{parsePosition:r.parsePosition.bind(r)})}})}else if("html"===t){var G=e,K=G.html;G.position,V=Object(s.f)(G,["html","position"]);a=Object(s.a)(Object(s.a)(Object(s.a)({},V),p),{parent:o.get("el").parentNode,html:function(t){return Object(c.I)(K)?K(t,r.view):K}})}var X=Object(c.h)({},n,Object(s.a)(Object(s.a)({},a),{top:e.top,style:e.style,offsetX:e.offsetX,offsetY:e.offsetY}));return"html"!==t&&(X.container=this.getComponentContainer(X)),X.animate=this.view.getOptions().animate&&X.animate&&Object(c.s)(e,"animate",X.animate),X.animateOption=Object(c.h)({},An,X.animateOption,e.animateOption),X},e.prototype.isTop=function(t){return Object(c.s)(t,"top",!0)},e.prototype.getComponentContainer=function(t){return this.isTop(t)?this.foregroundContainer:this.backgroundContainer},e.prototype.getAnnotationTheme=function(t){return Object(c.s)(this.view.getTheme(),["components","annotation",t],{})},e.prototype.updateOrCreate=function(t){var e=this.cache.get(this.getCacheKey(t));if(e){var n=t.type,r=this.getAnnotationTheme(n),i=this.getAnnotationCfg(n,t,r);i&&st(i,["container"]),e.component.update(Object(s.a)(Object(s.a)({},i||{}),{visible:!!i})),Object(c.A)(oo,t.type)&&e.component.render()}else(e=this.createAnnotation(t))&&(e.component.init(),Object(c.A)(oo,t.type)&&e.component.render());return e},e.prototype.syncCache=function(t){var e=this,n=new Map(this.cache);return t.forEach((function(t,e){n.set(e,t)})),n.forEach((function(t,r){Object(c.m)(e.option,(function(t){return r===e.getCacheKey(t)}))||(t.component.destroy(),n.delete(r))})),n},e.prototype.getCacheKey=function(t){return t},e}(Mn);function so(t,e){var n=Object(c.h)({},Object(c.s)(t,["components","axis","common"]),Object(c.s)(t,["components","axis",e]));return Object(c.s)(n,["grid"],{})}function co(t,e,n,r){var i=[],o=e.getTicks();return t.isPolar&&o.push({value:1,text:"",tickValue:""}),o.reduce((function(e,o,a){var s=o.value;if(r)i.push({points:[t.convert("y"===n?{x:0,y:s}:{x:s,y:0}),t.convert("y"===n?{x:1,y:s}:{x:s,y:1})]});else if(a){var c=(e.value+s)/2;i.push({points:[t.convert("y"===n?{x:0,y:c}:{x:c,y:0}),t.convert("y"===n?{x:1,y:c}:{x:c,y:1})]})}return o}),o[0]),i}function lo(t,e,n,r,i){var o=e.values.length,a=[],s=n.getTicks();return s.reduce((function(e,n){var s=e?e.value:n.value,l=n.value,u=(s+l)/2;return"x"===i?a.push({points:[t.convert({x:r?l:u,y:0}),t.convert({x:r?l:u,y:1})]}):a.push({points:Object(c.W)(Array(o+1),(function(e,n){return t.convert({x:n/o,y:r?l:u})}))}),n}),s[0]),a}function uo(t,e){var n=Object(c.s)(e,"grid");if(null===n)return!1;var r=Object(c.s)(t,"grid");return!(void 0===n&&null===r)}var ho=["container"],fo=Object(s.a)(Object(s.a)({},An),{appear:null}),po=function(t){function e(e){var n=t.call(this,e)||this;return n.cache=new Map,n.gridContainer=n.view.getLayer(i.BG).addGroup(),n.gridForeContainer=n.view.getLayer(i.FORE).addGroup(),n.axisContainer=n.view.getLayer(i.BG).addGroup(),n.axisForeContainer=n.view.getLayer(i.FORE).addGroup(),n}return Object(s.c)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"axis"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){this.update()},e.prototype.layout=function(){var t=this,e=this.view.getCoordinate();Object(c.j)(this.getComponents(),(function(n){var r,i=n.component,o=n.direction,s=n.type,c=n.extra,l=c.dim,u=c.scale,h=c.alignTick;if(s===a.AXIS)e.isPolar?"x"===l?r=e.isTransposed?bt(e,o):Ct(e):"y"===l&&(r=e.isTransposed?Ct(e):bt(e,o)):r=bt(e,o);else if(s===a.GRID)if(e.isPolar){r={items:e.isTransposed?"x"===l?lo(e,t.view.getYScales()[0],u,h,l):co(e,u,l,h):"x"===l?co(e,u,l,h):lo(e,t.view.getXScale(),u,h,l),center:t.view.getCoordinate().getCenter()}}else r={items:co(e,u,l,h)};i.update(r)}))},e.prototype.update=function(){this.option=this.view.getOptions().axes;var t=new Map;this.updateXAxes(t),this.updateYAxes(t);var e=new Map;this.cache.forEach((function(n,r){t.has(r)?e.set(r,n):n.component.destroy()})),this.cache=e},e.prototype.clear=function(){t.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.gridForeContainer.clear(),this.axisContainer.clear(),this.axisForeContainer.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.gridContainer.remove(!0),this.gridForeContainer.remove(!0),this.axisContainer.remove(!0),this.axisForeContainer.remove(!0)},e.prototype.getComponents=function(){var t=[];return this.cache.forEach((function(e){t.push(e)})),t},e.prototype.updateXAxes=function(t){var e=this.view.getXScale();if(e&&!e.isIdentity){var n=_t(this.option,e.field);if(!1!==n){var r=Mt(n,o.BOTTOM),a=i.BG,s=this.view.getCoordinate(),l=this.getId("axis",e.field),u=this.getId("grid",e.field);if(s.isRect){if(h=this.cache.get(l))st(f=this.getLineAxisCfg(e,n,r),ho),h.component.update(f),t.set(l,h);else h=this.createLineAxis(e,n,a,r,"x"),this.cache.set(l,h),t.set(l,h);if(d=this.cache.get(u))st(f=this.getLineGridCfg(e,n,r,"x"),ho),d.component.update(f),t.set(u,d);else(d=this.createLineGrid(e,n,a,r,"x"))&&(this.cache.set(u,d),t.set(u,d))}else if(s.isPolar){var h,d;if(h=this.cache.get(l)){st(f=s.isTransposed?this.getLineAxisCfg(e,n,o.RADIUS):this.getCircleAxisCfg(e,n,r),ho),h.component.update(f),t.set(l,h)}else{if(s.isTransposed){if(Object(c.S)(n))return;h=this.createLineAxis(e,n,a,o.RADIUS,"x")}else h=this.createCircleAxis(e,n,a,r,"x");this.cache.set(l,h),t.set(l,h)}if(d=this.cache.get(u)){var f;st(f=s.isTransposed?this.getCircleGridCfg(e,n,o.RADIUS,"x"):this.getLineGridCfg(e,n,o.CIRCLE,"x"),ho),d.component.update(f),t.set(u,d)}else{if(s.isTransposed){if(Object(c.S)(n))return;d=this.createCircleGrid(e,n,a,o.RADIUS,"x")}else d=this.createLineGrid(e,n,a,o.CIRCLE,"x");d&&(this.cache.set(u,d),t.set(u,d))}}}}},e.prototype.updateYAxes=function(t){var e=this,n=this.view.getYScales();Object(c.j)(n,(function(n,r){if(n&&!n.isIdentity){var a=n.field,s=_t(e.option,a);if(!1!==s){var l=i.BG,u=e.getId("axis",a),h=e.getId("grid",a),d=e.view.getCoordinate();if(d.isRect){var f=Mt(s,0===r?o.LEFT:o.RIGHT);if(p=e.cache.get(u))st(v=e.getLineAxisCfg(n,s,f),ho),p.component.update(v),t.set(u,p);else p=e.createLineAxis(n,s,l,f,"y"),e.cache.set(u,p),t.set(u,p);if(g=e.cache.get(h))st(v=e.getLineGridCfg(n,s,f,"y"),ho),g.component.update(v),t.set(h,g);else(g=e.createLineGrid(n,s,l,f,"y"))&&(e.cache.set(h,g),t.set(h,g))}else if(d.isPolar){var p,g;if(p=e.cache.get(u)){st(v=d.isTransposed?e.getCircleAxisCfg(n,s,o.CIRCLE):e.getLineAxisCfg(n,s,o.RADIUS),ho),p.component.update(v),t.set(u,p)}else{if(d.isTransposed){if(Object(c.S)(s))return;p=e.createCircleAxis(n,s,l,o.CIRCLE,"y")}else p=e.createLineAxis(n,s,l,o.RADIUS,"y");e.cache.set(u,p),t.set(u,p)}if(g=e.cache.get(h)){var v;st(v=d.isTransposed?e.getLineGridCfg(n,s,o.CIRCLE,"y"):e.getCircleGridCfg(n,s,o.RADIUS,"y"),ho),g.component.update(v),t.set(h,g)}else{if(d.isTransposed){if(Object(c.S)(s))return;g=e.createLineGrid(n,s,l,o.CIRCLE,"y")}else g=e.createCircleGrid(n,s,l,o.RADIUS,"y");g&&(e.cache.set(h,g),t.set(h,g))}}}}}))},e.prototype.createLineAxis=function(t,e,n,r,i){var s={component:new G(this.getLineAxisCfg(t,e,r)),layer:n,direction:r===o.RADIUS?o.NONE:r,type:a.AXIS,extra:{dim:i,scale:t}};return s.component.set("field",t.field),s.component.init(),s},e.prototype.createLineGrid=function(t,e,n,r,i){var s=this.getLineGridCfg(t,e,r,i);if(s){var l={component:new X(s),layer:n,direction:o.NONE,type:a.GRID,extra:{dim:i,scale:t,alignTick:Object(c.s)(s,"alignTick",!0)}};return l.component.init(),l}},e.prototype.createCircleAxis=function(t,e,n,r,i){var o={component:new K(this.getCircleAxisCfg(t,e,r)),layer:n,direction:r,type:a.AXIS,extra:{dim:i,scale:t}};return o.component.set("field",t.field),o.component.init(),o},e.prototype.createCircleGrid=function(t,e,n,r,i){var s=this.getCircleGridCfg(t,e,r,i);if(s){var l={component:new U(s),layer:n,direction:o.NONE,type:a.GRID,extra:{dim:i,scale:t,alignTick:Object(c.s)(s,"alignTick",!0)}};return l.component.init(),l}},e.prototype.getLineAxisCfg=function(t,e,n){var r=Object(c.s)(e,["top"])?this.axisForeContainer:this.axisContainer,i=this.view.getCoordinate(),o=bt(i,n),a=St(t,e),l=jt(this.view.getTheme(),n),u=Object(c.s)(e,["title"])?Object(c.h)({title:{style:{text:a}}},{title:wt(this.view.getTheme(),n,e.title)},e):e,h=Object(c.h)(Object(s.a)(Object(s.a)({container:r},o),{ticks:t.getTicks().map((function(t){return{id:"".concat(t.tickValue),name:t.text,value:t.value}})),verticalFactor:i.isPolar?-1*Ot(o,i.getCenter()):Ot(o,i.getCenter()),theme:l}),l,u),d=this.getAnimateCfg(h),f=d.animate,p=d.animateOption;h.animateOption=p,h.animate=f;var g=xt(o),v=Object(c.s)(h,"verticalLimitLength",g?1/3:.5);if(v<=1){var y=this.view.getCanvas().get("width"),m=this.view.getCanvas().get("height");h.verticalLimitLength=v*(g?y:m)}return h},e.prototype.getLineGridCfg=function(t,e,n,r){if(uo(jt(this.view.getTheme(),n),e)){var i=so(this.view.getTheme(),n),o=Object(c.h)({container:Object(c.s)(e,["top"])?this.gridForeContainer:this.gridContainer},i,Object(c.s)(e,"grid"),this.getAnimateCfg(e));return o.items=co(this.view.getCoordinate(),t,r,Object(c.s)(o,"alignTick",!0)),o}},e.prototype.getCircleAxisCfg=function(t,e,n){var r=Object(c.s)(e,["top"])?this.axisForeContainer:this.axisContainer,i=this.view.getCoordinate(),a=t.getTicks().map((function(t){return{id:"".concat(t.tickValue),name:t.text,value:t.value}}));t.isCategory||Math.abs(i.endAngle-i.startAngle)!==2*Math.PI||a.length&&(a[a.length-1].name="");var l=St(t,e),u=jt(this.view.getTheme(),o.CIRCLE),h=Object(c.s)(e,["title"])?Object(c.h)({title:{style:{text:l}}},{title:wt(this.view.getTheme(),n,e.title)},e):e,d=Object(c.h)(Object(s.a)(Object(s.a)({container:r},Ct(this.view.getCoordinate())),{ticks:a,verticalFactor:1,theme:u}),u,h),f=this.getAnimateCfg(d),p=f.animate,g=f.animateOption;return d.animate=p,d.animateOption=g,d},e.prototype.getCircleGridCfg=function(t,e,n,r){if(uo(jt(this.view.getTheme(),n),e)){var i=so(this.view.getTheme(),o.RADIUS),a=Object(c.h)({container:Object(c.s)(e,["top"])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},i,Object(c.s)(e,"grid"),this.getAnimateCfg(e)),s=Object(c.s)(a,"alignTick",!0),l="x"===r?this.view.getYScales()[0]:this.view.getXScale();return a.items=lo(this.view.getCoordinate(),l,t,s,r),a}},e.prototype.getId=function(t,e){var n=this.view.getCoordinate();return"".concat(t,"-").concat(e,"-").concat(n.type)},e.prototype.getAnimateCfg=function(t){return{animate:this.view.getOptions().animate&&Object(c.s)(t,"animate"),animateOption:t&&t.animateOption?Object(c.h)({},fo,t.animateOption):fo}},e}(Mn);function go(t,e,n){return n===o.TOP?[t.minX+t.width/2-e.width/2,t.minY]:n===o.BOTTOM?[t.minX+t.width/2-e.width/2,t.maxY-e.height]:n===o.LEFT?[t.minX,t.minY+t.height/2-e.height/2]:n===o.RIGHT?[t.maxX-e.width,t.minY+t.height/2-e.height/2]:n===o.TOP_LEFT||n===o.LEFT_TOP?[t.tl.x,t.tl.y]:n===o.TOP_RIGHT||n===o.RIGHT_TOP?[t.tr.x-e.width,t.tr.y]:n===o.BOTTOM_LEFT||n===o.LEFT_BOTTOM?[t.bl.x,t.bl.y-e.height]:n===o.BOTTOM_RIGHT||n===o.RIGHT_BOTTOM?[t.br.x-e.width,t.br.y-e.height]:[0,0]}function vo(t,e){return Object(c.D)(t)?!1!==t&&{}:Object(c.s)(t,[e],t)}function yo(t){return Object(c.s)(t,"position",o.BOTTOM)}var mo=function(t){function e(e){var n=t.call(this,e)||this;return n.container=n.view.getLayer(i.FORE).addGroup(),n}return Object(s.c)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"legend"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){this.update()},e.prototype.layout=function(){var t=this;this.layoutBBox=this.view.viewBBox,Object(c.j)(this.components,(function(e){var n=e.component,r=e.direction,i=ur(r),o=n.get("maxWidthRatio"),a=n.get("maxHeightRatio"),c=t.getCategoryLegendSizeCfg(i,o,a),l=n.get("maxWidth"),u=n.get("maxHeight");n.update({maxWidth:Math.min(c.maxWidth,l||0),maxHeight:Math.min(c.maxHeight,u||0)});var h=n.get("padding"),d=n.getLayoutBBox(),f=new lt(d.x,d.y,d.width,d.height).expand(h),p=Object(s.e)(go(t.view.viewBBox,f,r),2),g=p[0],v=p[1],y=Object(s.e)(go(t.layoutBBox,f,r),2),m=y[0],b=y[1],x=0,O=0;r.startsWith("top")||r.startsWith("bottom")?(x=g,O=b):(x=m,O=v),n.setLocation({x:x+h[3],y:O+h[0]}),t.layoutBBox=t.layoutBBox.cut(f,r)}))},e.prototype.update=function(){var t=this;this.option=this.view.getOptions().legends;var e={};if(Object(c.s)(this.option,"custom")){var n="global-custom",r=this.getComponentById(n);if(r){var o=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);st(o,["container"]),r.component.update(o),e[n]=!0}else{var s=this.createCustomLegend(void 0,void 0,void 0,this.option);if(s){s.init();var l=i.FORE,u=yo(this.option);this.components.push({id:n,component:s,layer:l,direction:u,type:a.LEGEND,extra:void 0}),e[n]=!0}}}else this.loopLegends((function(n,r,i){var o=t.getId(i.field),a=t.getComponentById(o);if(a){var s=void 0,l=vo(t.option,i.field);!1!==l&&(Object(c.s)(l,"custom")?s=t.getCategoryCfg(n,r,i,l,!0):i.isLinear?s=t.getContinuousCfg(n,r,i,l):i.isCategory&&(s=t.getCategoryCfg(n,r,i,l))),s&&(st(s,["container"]),a.direction=yo(l),a.component.update(s),e[o]=!0)}else{var u=t.createFieldLegend(n,r,i);u&&(u.component.init(),t.components.push(u),e[o]=!0)}}));var h=[];Object(c.j)(this.getComponents(),(function(t){e[t.id]?h.push(t):t.component.destroy()})),this.components=h},e.prototype.clear=function(){t.prototype.clear.call(this),this.container.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.container.remove(!0)},e.prototype.getGeometries=function(t){var e=this,n=t.geometries;return Object(c.j)(t.views,(function(t){n=n.concat(e.getGeometries(t))})),n},e.prototype.loopLegends=function(t){if(this.view.getRootView()===this.view){var e=this.getGeometries(this.view),n={};Object(c.j)(e,(function(e){var r=e.getGroupAttributes();Object(c.j)(r,(function(r){var i=r.getScale(r.type);i&&"identity"!==i.type&&!n[i.field]&&(t(e,r,i),n[i.field]=!0)}))}))}},e.prototype.createFieldLegend=function(t,e,n){var r,o=vo(this.option,n.field),s=i.FORE,l=yo(o);if(!1!==o&&(Object(c.s)(o,"custom")?r=this.createCustomLegend(t,e,n,o):n.isLinear?r=this.createContinuousLegend(t,e,n,o):n.isCategory&&(r=this.createCategoryLegend(t,e,n,o))),r)return r.set("field",n.field),{id:this.getId(n.field),component:r,layer:s,direction:l,type:a.LEGEND,extra:{scale:n}}},e.prototype.createCustomLegend=function(t,e,n,r){var i=this.getCategoryCfg(t,e,n,r,!0);return new q(i)},e.prototype.createContinuousLegend=function(t,e,n,r){var i=this.getContinuousCfg(t,e,n,st(r,["value"]));return new Z(i)},e.prototype.createCategoryLegend=function(t,e,n,r){var i=this.getCategoryCfg(t,e,n,r);return new q(i)},e.prototype.getContinuousCfg=function(t,e,n,r){var i=n.getTicks(),o=Object(c.m)(i,(function(t){return 0===t.value})),a=Object(c.m)(i,(function(t){return 1===t.value})),s=i.map((function(t){var r=t.value,i=t.tickValue,o=e.mapping(n.invert(r)).join("");return{value:i,attrValue:o,color:o,scaleValue:r}}));o||s.push({value:n.min,attrValue:e.mapping(n.invert(0)).join(""),color:e.mapping(n.invert(0)).join(""),scaleValue:0}),a||s.push({value:n.max,attrValue:e.mapping(n.invert(1)).join(""),color:e.mapping(n.invert(1)).join(""),scaleValue:1}),s.sort((function(t,e){return t.value-e.value}));var l={min:Object(c.z)(s).value,max:Object(c.U)(s).value,colors:[],rail:{type:e.type},track:{}};"size"===e.type&&(l.track={style:{fill:"size"===e.type?this.view.getTheme().defaultColor:void 0}}),"color"===e.type&&(l.colors=s.map((function(t){return t.attrValue})));var u=this.container,h=ur(yo(r)),d=Object(c.s)(r,"title");return d&&(d=Object(c.h)({text:yt(n)},d)),l.container=u,l.layout=h,l.title=d,l.animateOption=An,this.mergeLegendCfg(l,r,"continuous")},e.prototype.getCategoryCfg=function(t,e,n,r,i){var a=this.container,s=Object(c.s)(r,"position",o.BOTTOM),l=dr(this.view.getTheme(),s),u=Object(c.s)(l,["marker"]),h=Object(c.s)(r,"marker"),d=ur(s),f=Object(c.s)(l,["pageNavigator"]),p=Object(c.s)(r,"pageNavigator"),g=i?function(t,e,n){return n.map((function(n,r){var i=e;Object(c.I)(i)&&(i=i(n.name,r,Object(c.h)({},t,n)));var o=Object(c.I)(n.marker)?n.marker(n.name,r,Object(c.h)({},t,n)):n.marker,a=Object(c.h)({},t,i,o);return lr(a),n.marker=a,n}))}(u,h,r.items):hr(this.view,t,e,u,h),v=Object(c.s)(r,"title");v&&(v=Object(c.h)({text:n?yt(n):""},v));var y=Object(c.s)(r,"maxWidthRatio"),m=Object(c.s)(r,"maxHeightRatio"),b=this.getCategoryLegendSizeCfg(d,y,m);b.container=a,b.layout=d,b.items=g,b.title=v,b.animateOption=An,b.pageNavigator=Object(c.h)({},f,p);var x=this.mergeLegendCfg(b,r,s);x.reversed&&x.items.reverse();var O=Object(c.s)(x,"maxItemWidth");return O&&O<=1&&(x.maxItemWidth=this.view.viewBBox.width*O),x},e.prototype.mergeLegendCfg=function(t,e,n){var r=n.split("-")[0],i=dr(this.view.getTheme(),r);return Object(c.h)({},i,t,e)},e.prototype.getId=function(t){return"".concat(this.name,"-").concat(t)},e.prototype.getComponentById=function(t){return Object(c.m)(this.components,(function(e){return e.id===t}))},e.prototype.getCategoryLegendSizeCfg=function(t,e,n){void 0===e&&(e=.25),void 0===n&&(n=.25);var r=this.view.viewBBox,i=r.width,o=r.height;return"vertical"===t?{maxWidth:i*e,maxHeight:o}:{maxWidth:i,maxHeight:o*n}},e}(Mn),bo=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=c.fb,n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=Object(s.e)(t,2),r=e[0],i=e[1];n.start=r,n.end=i,n.changeViewData(r,i)},n.container=n.view.getLayer(i.FORE).addGroup(),n.onChangeFn=Object(c.qb)(n.onValueChange,20,{leading:!0}),n.width=0,n.view.on(l.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(l.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return Object(s.c)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"slider"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.view.off(l.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(l.BEFORE_CHANGE_SIZE,this.resetMeasure)},e.prototype.init=function(){},e.prototype.render=function(){this.option=this.view.getOptions().slider;var t=this.getSliderCfg(),e=t.start,n=t.end;Object(c.K)(this.start)&&(this.start=e,this.end=n);var r=this.view.getOptions().data;this.option&&!Object(c.G)(r)?this.slider?this.slider=this.updateSlider():(this.slider=this.createSlider(),this.slider.component.on("sliderchange",this.onChangeFn)):this.slider&&(this.slider.component.destroy(),this.slider=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.width&&(this.measureSlider(),setTimeout((function(){t.view.destroyed||t.changeViewData(t.start,t.end)}),0)),this.slider){var e=this.view.coordinateBBox.width,n=this.slider.component.get("padding"),r=Object(s.e)(n,4),i=r[0],a=(r[1],r[2],r[3]),c=this.slider.component.getLayoutBBox(),l=new lt(c.x,c.y,Math.min(c.width,e),c.height).expand(n),u=this.getMinMaxText(this.start,this.end),h=u.minText,d=u.maxText,f=Object(s.e)(go(this.view.viewBBox,l,o.BOTTOM),2),p=(f[0],f[1]),g=Object(s.e)(go(this.view.coordinateBBox,l,o.BOTTOM),2),v=g[0];g[1];this.slider.component.update(Object(s.a)(Object(s.a)({},this.getSliderCfg()),{x:v+a,y:p+i,width:this.width,start:this.start,end:this.end,minText:h,maxText:d})),this.view.viewBBox=this.view.viewBBox.cut(l,o.BOTTOM)}},e.prototype.update=function(){this.render()},e.prototype.createSlider=function(){var t=this.getSliderCfg(),e=new V.Slider(Object(s.a)({container:this.container},t));return e.init(),{component:e,layer:i.FORE,direction:o.BOTTOM,type:a.SLIDER}},e.prototype.updateSlider=function(){var t=this.getSliderCfg();if(this.width){var e=this.getMinMaxText(this.start,this.end),n=e.minText,r=e.maxText;t=Object(s.a)(Object(s.a)({},t),{width:this.width,start:this.start,end:this.end,minText:n,maxText:r})}return this.slider.component.update(t),this.slider},e.prototype.measureSlider=function(){var t=this.getSliderCfg().width;this.width=t},e.prototype.getSliderCfg=function(){var t={height:16,start:0,end:1,minText:"",maxText:"",x:0,y:0,width:this.view.coordinateBBox.width};if(Object(c.O)(this.option)){var e=Object(s.a)({data:this.getData()},Object(c.s)(this.option,"trendCfg",{}));t=Object(c.h)({},t,this.getThemeOptions(),this.option),t=Object(s.a)(Object(s.a)({},t),{trendCfg:e})}return t.start=Object(c.c)(Math.min(Object(c.K)(t.start)?0:t.start,Object(c.K)(t.end)?1:t.end),0,1),t.end=Object(c.c)(Math.max(Object(c.K)(t.start)?0:t.start,Object(c.K)(t.end)?1:t.end),0,1),t},e.prototype.getData=function(){var t=this.view.getOptions().data,e=Object(s.e)(this.view.getYScales(),1)[0],n=this.view.getGroupScales();if(n.length){var r=n[0],i=r.field,o=r.ticks;return t.reduce((function(t,n){return n[i]===o[0]&&t.push(n[e.field]),t}),[])}return t.map((function(t){return t[e.field]||0}))},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return Object(c.s)(t,["components","slider","common"],{})},e.prototype.getMinMaxText=function(t,e){var n=this.view.getOptions().data,r=this.view.getXScale(),i=Object(c.yb)(n,r.field);r.isLinear&&(i=i.sort());var o=i,a=Object(c.mb)(n);if(!r||!a)return{};var s=Object(c.mb)(o),l=Math.round(t*(s-1)),u=Math.round(e*(s-1)),h=Object(c.s)(o,[l]),d=Object(c.s)(o,[u]),f=this.getSliderCfg().formatter;return f&&(h=f(h,n[l],l),d=f(d,n[u],u)),{minText:h,maxText:d}},e.prototype.changeViewData=function(t,e){var n=this.view.getOptions().data,r=this.view.getXScale(),i=Object(c.mb)(n);if(r&&i){var o=Object(c.yb)(n,r.field),a=this.view.getXScale().isLinear?o.sort((function(t,e){return Number(t)-Number(e)})):o,s=a,l=Object(c.mb)(s),u=Math.round(t*(l-1)),h=Math.round(e*(l-1));this.view.filter(r.field,(function(t,e){var n=s.indexOf(t);return!(n>-1)||at(n,u,h)})),this.view.render(!0)}},e.prototype.getComponents=function(){return this.slider?[this.slider]:[]},e.prototype.clear=function(){this.slider&&(this.slider.component.destroy(),this.slider=void 0),this.width=0,this.start=void 0,this.end=void 0},e}(Mn),xo=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=c.fb,n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=t.ratio,r=n.getValidScrollbarCfg().animate;n.ratio=Object(c.c)(e,0,1);var i=n.view.getOptions().animate;r||n.view.animate(!1),n.changeViewData(n.getScrollRange(),!0),n.view.animate(i)},n.container=n.view.getLayer(i.FORE).addGroup(),n.onChangeFn=Object(c.qb)(n.onValueChange,20,{leading:!0}),n.trackLen=0,n.thumbLen=0,n.ratio=0,n.view.on(l.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(l.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return Object(s.c)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"scrollbar"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.view.off(l.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(l.BEFORE_CHANGE_SIZE,this.resetMeasure)},e.prototype.init=function(){},e.prototype.render=function(){this.option=this.view.getOptions().scrollbar,this.option?this.scrollbar?this.scrollbar=this.updateScrollbar():(this.scrollbar=this.createScrollbar(),this.scrollbar.component.on("scrollchange",this.onChangeFn)):this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.trackLen&&(this.measureScrollbar(),setTimeout((function(){t.view.destroyed||t.changeViewData(t.getScrollRange(),!0)}))),this.scrollbar){var e=this.view.coordinateBBox.width,n=this.scrollbar.component.get("padding"),r=this.scrollbar.component.getLayoutBBox(),i=new lt(r.x,r.y,Math.min(r.width,e),r.height).expand(n),a=this.getScrollbarComponentCfg(),c=void 0,l=void 0;if(a.isHorizontal){var u=Object(s.e)(go(this.view.viewBBox,i,o.BOTTOM),2),h=(u[0],u[1]),d=Object(s.e)(go(this.view.coordinateBBox,i,o.BOTTOM),2),f=d[0];d[1];c=f,l=h}else{var p=Object(s.e)(go(this.view.viewBBox,i,o.RIGHT),2),g=(p[0],h=p[1],Object(s.e)(go(this.view.viewBBox,i,o.RIGHT),2));f=g[0],g[1];c=f,l=h}c+=n[3],l+=n[0],this.trackLen?this.scrollbar.component.update(Object(s.a)(Object(s.a)({},a),{x:c,y:l,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio})):this.scrollbar.component.update(Object(s.a)(Object(s.a)({},a),{x:c,y:l})),this.view.viewBBox=this.view.viewBBox.cut(i,a.isHorizontal?o.BOTTOM:o.RIGHT)}},e.prototype.update=function(){this.render()},e.prototype.getComponents=function(){return this.scrollbar?[this.scrollbar]:[]},e.prototype.clear=function(){this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0),this.trackLen=0,this.thumbLen=0,this.ratio=0,this.cnt=0,this.step=0,this.data=void 0,this.xScaleCfg=void 0,this.yScalesCfg=[]},e.prototype.setValue=function(t){this.onValueChange({ratio:t})},e.prototype.getValue=function(){return this.ratio},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return Object(c.s)(t,["components","scrollbar","common"],{})},e.prototype.getScrollbarTheme=function(t){var e=Object(c.s)(this.view.getTheme(),["components","scrollbar"]),n=t||{},r=n.thumbHighlightColor,i=Object(s.f)(n,["thumbHighlightColor"]);return{default:Object(c.h)({},Object(c.s)(e,["default","style"],{}),i),hover:Object(c.h)({},Object(c.s)(e,["hover","style"],{}),{thumbColor:r})}},e.prototype.measureScrollbar=function(){var t=this.view.getXScale(),e=this.view.getYScales().slice();this.data=this.getScrollbarData(),this.step=this.getStep(),this.cnt=this.getCnt();var n=this.getScrollbarComponentCfg(),r=n.trackLen,i=n.thumbLen;this.trackLen=r,this.thumbLen=i,this.xScaleCfg={field:t.field,values:t.values||[]},this.yScalesCfg=e},e.prototype.getScrollRange=function(){var t=Math.floor((this.cnt-this.step)*Object(c.c)(this.ratio,0,1));return[t,Math.min(t+this.step-1,this.cnt-1)]},e.prototype.changeViewData=function(t,e){var n=this,r=Object(s.e)(t,2),i=r[0],o=r[1],a="vertical"!==this.getValidScrollbarCfg().type,l=Object(c.yb)(this.data,this.xScaleCfg.field),u=this.view.getXScale().isLinear?l.sort((function(t,e){return Number(t)-Number(e)})):l,h=a?u:u.reverse();this.yScalesCfg.forEach((function(t){n.view.scale(t.field,{formatter:t.formatter,type:t.type,min:t.min,max:t.max,tickMethod:t.tickMethod})})),this.view.filter(this.xScaleCfg.field,(function(t){var e=h.indexOf(t);return!(e>-1)||at(e,i,o)})),this.view.render(!0)},e.prototype.createScrollbar=function(){var t="vertical"!==this.getValidScrollbarCfg().type,e=new V.Scrollbar(Object(s.a)(Object(s.a)({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return e.init(),{component:e,layer:i.FORE,direction:t?o.BOTTOM:o.RIGHT,type:a.SCROLLBAR}},e.prototype.updateScrollbar=function(){var t=this.getScrollbarComponentCfg(),e=this.trackLen?Object(s.a)(Object(s.a)({},t),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):Object(s.a)({},t);return this.scrollbar.component.update(e),this.scrollbar},e.prototype.getStep=function(){if(this.step)return this.step;var t=this.view.coordinateBBox,e=this.getValidScrollbarCfg(),n=e.type,r=e.categorySize,i="vertical"!==n;return Math.floor((i?t.width:t.height)/r)},e.prototype.getCnt=function(){if(this.cnt)return this.cnt;var t=this.view.getXScale(),e=this.getScrollbarData(),n=Object(c.yb)(e,t.field);return Object(c.mb)(n)},e.prototype.getScrollbarComponentCfg=function(){var t=this.view,e=t.coordinateBBox,n=t.viewBBox,r=this.getValidScrollbarCfg(),i=r.type,o=r.padding,a=r.width,l=r.height,u=r.style,h="vertical"!==i,d=Object(s.e)(o,4),f=d[0],p=d[1],g=d[2],v=d[3],y=h?{x:e.minX+v,y:n.maxY-l-g}:{x:n.maxX-a-p,y:e.minY+f},m=this.getStep(),b=this.getCnt(),x=h?e.width-v-p:e.height-f-g,O=Math.max(x*Object(c.c)(m/b,0,1),20);return Object(s.a)(Object(s.a)({},this.getThemeOptions()),{x:y.x,y:y.y,size:h?l:a,isHorizontal:h,trackLen:x,thumbLen:O,thumbOffset:0,theme:this.getScrollbarTheme(u)})},e.prototype.getValidScrollbarCfg=function(){var t={type:"horizontal",categorySize:32,width:8,height:8,padding:[0,0,0,0],animate:!0,style:{}};return Object(c.O)(this.option)&&(t=Object(s.a)(Object(s.a)({},t),this.option)),Object(c.O)(this.option)&&this.option.padding||(t.padding=(t.type,[0,0,0,0])),t},e.prototype.getScrollbarData=function(){var t=this.view.getCoordinate(),e=this.getValidScrollbarCfg(),n=this.view.getOptions().data||[];return t.isReflect("y")&&"vertical"===e.type&&(n=Object(s.g)([],Object(s.e)(n),!1).reverse()),n},e}(Mn),Oo={fill:"#CCD6EC",opacity:.3};function jo(t,e,n){var r,i,o,a,l,u,h=function(t,e,n){var r,i,o=dn(t,e,n);try{for(var a=Object(s.i)(t.views),c=a.next();!c.done;c=a.next()){var l=c.value;o=o.concat(dn(l,e,n))}}catch(t){r={error:t}}finally{try{c&&!c.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}(t,e,n);if(h.length){h=Object(c.q)(h);try{for(var d=Object(s.i)(h),f=d.next();!f.done;f=d.next()){var p=f.value;try{for(var g=(o=void 0,Object(s.i)(p)),v=g.next();!v.done;v=g.next()){var y=v.value,m=y.mappingData,b=m.x,x=m.y;y.x=Object(c.C)(b)?b[b.length-1]:b,y.y=Object(c.C)(x)?x[x.length-1]:x}}catch(t){o={error:t}}finally{try{v&&!v.done&&(a=g.return)&&a.call(g)}finally{if(o)throw o.error}}}}catch(t){r={error:t}}finally{try{f&&!f.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}if(!1===n.shared&&h.length>1){var O=h[0],j=Math.abs(e.y-O[0].y);try{for(var w=Object(s.i)(h),C=w.next();!C.done;C=w.next()){var _=C.value,M=Math.abs(e.y-_[0].y);M<=j&&(O=_,j=M)}}catch(t){l={error:t}}finally{try{C&&!C.done&&(u=w.return)&&u.call(w)}finally{if(l)throw l.error}}h=[O]}return Object(c.ub)(Object(c.q)(h))}return[]}var wo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.show=function(t){var e=this.context.view,n=this.context.event,r=e.getController("tooltip").getTooltipCfg(),i=jo(e,{x:n.x,y:n.y},r);if(!Object(c.H)(i,this.items)&&(this.items=i,i.length)){var o=e.getXScale().field,a=i[0].data[o],l=[],u=e.geometries;if(Object(c.j)(u,(function(t){if("interval"===t.type||"schema"===t.type){var e=t.getElementsBy((function(t){return t.getData()[o]===a}));l=l.concat(e)}})),l.length){var h=e.getCoordinate(),d=l[0].shape.getCanvasBBox(),f=l[0].shape.getCanvasBBox(),p=d;Object(c.j)(l,(function(t){var e=t.shape.getCanvasBBox();h.isTransposed?(e.minY<d.minY&&(d=e),e.maxY>f.maxY&&(f=e)):(e.minX<d.minX&&(d=e),e.maxX>f.maxX&&(f=e)),p.x=Math.min(e.minX,p.minX),p.y=Math.min(e.minY,p.minY),p.width=Math.max(e.maxX,p.maxX)-p.x,p.height=Math.max(e.maxY,p.maxY)-p.y}));var g=e.backgroundGroup,v=e.coordinateBBox,y=void 0;if(h.isRect){var m=e.getXScale(),b=t||{},x=b.appendRatio,O=b.appendWidth;Object(c.K)(O)&&(x=Object(c.K)(x)?m.isLinear?0:.25:x,O=h.isTransposed?x*f.height:x*d.width);var j=void 0,w=void 0,C=void 0,_=void 0;h.isTransposed?(j=v.minX,w=Math.min(f.minY,d.minY)-O,C=v.width,_=p.height+2*O):(j=Math.min(d.minX,f.minX)-O,w=v.minY,C=p.width+2*O,_=v.height),y=[["M",j,w],["L",j+C,w],["L",j+C,w+_],["L",j,w+_],["Z"]]}else{var M=Object(c.z)(l),S=Object(c.U)(l),E=it(M.getModel(),h).startAngle,k=it(S.getModel(),h).endAngle,I=h.getCenter(),A=h.getRadius(),P=h.innerRadius*A;y=nt(I.x,I.y,A,E,k,P)}if(this.regionPath)this.regionPath.attr("path",y),this.regionPath.show();else{var T=Object(c.s)(t,"style",Oo);this.regionPath=g.addShape({type:"path",name:"active-region",capture:!1,attrs:Object(s.a)(Object(s.a)({},T),{path:y})})}}}},e.prototype.hide=function(){this.regionPath&&this.regionPath.hide(),this.items=null},e.prototype.destroy=function(){this.hide(),this.regionPath&&this.regionPath.remove(!0),t.prototype.destroy.call(this)},e}(At),Co=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return Object(s.c)(e,t),e.prototype.show=function(){var t=this.context,e=t.event,n=t.view;if(!n.isTooltipLocked()){var r=this.timeStamp,i=+new Date;if(i-r>Object(c.s)(t.view.getOptions(),"tooltip.showDelay",16)){var o=this.location,a={x:e.x,y:e.y};o&&Object(c.H)(o,a)||this.showTooltip(n,a),this.timeStamp=i,this.location=a}}},e.prototype.hide=function(){var t=this.context.view,e=t.getController("tooltip"),n=this.context.event,r=n.clientX,i=n.clientY;e.isCursorEntered({x:r,y:i})||t.isTooltipLocked()||(this.hideTooltip(t),this.location=null)},e.prototype.showTooltip=function(t,e){t.showTooltip(e)},e.prototype.hideTooltip=function(t){t.hideTooltip()},e}(At),_o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.showTooltip=function(t,e){var n=Ce(t);Object(c.j)(n,(function(n){var r=_e(t,n,e);n.showTooltip(r)}))},e.prototype.hideTooltip=function(t){var e=Ce(t);Object(c.j)(e,(function(t){t.hideTooltip()}))},e}(Co),Mo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return Object(s.c)(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.show=function(){var t=this.context.event,e=this.timeStamp,n=+new Date;if(n-e>16){var r=this.location,i={x:t.x,y:t.y};r&&Object(c.H)(r,i)||this.showTooltip(i),this.timeStamp=n,this.location=i}},e.prototype.hide=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var e=this.context,n=e.event.target;if(n&&n.get("tip")){if(this.tooltip){var r=e.view.canvas,i={start:{x:0,y:0},end:{x:r.get("width"),y:r.get("height")}};this.tooltip.set("region",i)}else this.renderTooltip();var o=n.get("tip");this.tooltip.update(Object(s.a)({title:o},t)),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=this.context.view,n=e.canvas,r={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},i=e.getTheme(),o=Object(c.s)(i,["components","tooltip","domStyles"],{}),a=new Q({parent:n.get("el").parentNode,region:r,visible:!1,crosshairs:null,domStyles:Object(s.a)({},Object(c.h)({},o,(t={},t[V.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={"max-width":"50%"},t[V.TOOLTIP_CSS_CONST.TITLE_CLASS]={"word-break":"break-all"},t)))});a.init(),a.setCapture(!1),this.tooltip=a},e}(At),So=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e}return Object(s.c)(e,t),e.prototype.hasState=function(t){return t.hasState(this.stateName)},e.prototype.setElementState=function(t,e){t.setState(this.stateName,e)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.clear=function(){var t=this.context.view;this.clearViewState(t)},e.prototype.clearViewState=function(t){var e=this,n=ve(t,this.stateName);Object(c.j)(n,(function(t){e.setElementState(t,!1)}))},e}(At);function Eo(t){return Object(c.s)(t.get("delegateObject"),"item")}var ko=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreListItemStates=["unchecked"],e}return Object(s.c)(e,t),e.prototype.isItemIgnore=function(t,e){return!!this.ignoreListItemStates.filter((function(n){return e.hasState(t,n)})).length},e.prototype.setStateByComponent=function(t,e,n){var r=this.context.view,i=t.get("field"),o=ge(r);this.setElementsStateByItem(o,i,e,n)},e.prototype.setStateByElement=function(t,e){this.setElementState(t,e)},e.prototype.isMathItem=function(t,e,n){var r=Se(this.context.view,e),i=ye(t,e);return!Object(c.K)(i)&&n.name===r.getText(i)},e.prototype.setElementsStateByItem=function(t,e,n,r){var i=this;Object(c.j)(t,(function(t){i.isMathItem(t,e,n)&&t.setState(i.stateName,r)}))},e.prototype.setStateEnable=function(t){var e=oe(this.context);if(e)se(this.context)&&this.setStateByElement(e,t);else{var n=ae(this.context);if(ce(n)){var r=n.item,i=n.component;if(r&&i&&!this.isItemIgnore(r,i)){var o=this.context.event.gEvent;if(o&&o.fromShape&&o.toShape&&Eo(o.fromShape)===Eo(o.toShape))return;this.setStateByComponent(i,r,t)}}}},e.prototype.toggle=function(){var t=oe(this.context);if(t){var e=t.hasState(this.stateName);this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(So),Io=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(s.c)(e,t),e.prototype.active=function(){this.setState()},e}(ko),Ao=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cache={},e}return Object(s.c)(e,t),e.prototype.getColorScale=function(t,e){var n=e.geometry.getAttribute("color");return n?t.getScaleByField(n.getFields()[0]):null},e.prototype.getLinkPath=function(t,e){var n=this.context.view.getCoordinate().isTransposed,r=t.shape.getCanvasBBox(),i=e.shape.getCanvasBBox();return n?[["M",r.minX,r.minY],["L",i.minX,i.maxY],["L",i.maxX,i.maxY],["L",r.maxX,r.minY],["Z"]]:[["M",r.maxX,r.minY],["L",i.minX,i.minY],["L",i.minX,i.maxY],["L",r.maxX,r.maxY],["Z"]]},e.prototype.addLinkShape=function(t,e,n,r){var i={opacity:.4,fill:e.shape.attr("fill")};t.addShape({type:"path",attrs:Object(s.a)(Object(s.a)({},Object(c.h)({},i,Object(c.I)(r)?r(i,e):r)),{path:this.getLinkPath(e,n)})})},e.prototype.linkByElement=function(t,e){var n=this,r=this.context.view,i=this.getColorScale(r,t);if(i){var o=ye(t,i.field);if(!this.cache[o]){var a=function(t,e,n){return ge(t).filter((function(t){return ye(t,e)===n}))}(r,i.field,o),s=this.linkGroup.addGroup();this.cache[o]=s;var l=a.length;Object(c.j)(a,(function(t,r){if(r<l-1){var i=a[r+1];n.addLinkShape(s,t,i,e)}}))}}},e.prototype.removeLink=function(t){var e=this.getColorScale(this.context.view,t);if(e){var n=ye(t,e.field);this.cache[n]&&(this.cache[n].remove(),this.cache[n]=null)}},e.prototype.link=function(t){var e=this.context;this.linkGroup||(this.linkGroup=e.view.foregroundGroup.addGroup({id:"link-by-color-group",capture:!1}));var n=oe(e);n&&this.linkByElement(n,null==t?void 0:t.style)},e.prototype.unlink=function(){var t=oe(this.context);t&&this.removeLink(t)},e.prototype.clear=function(){this.linkGroup&&this.linkGroup.clear(),this.cache={}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.linkGroup&&this.linkGroup.remove()},e}(At),Po=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.endPoint=null,e.isStarted=!1,e.effectSiblings=!1,e.effectByRecord=!1,e}return Object(s.c)(e,t),e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.start=function(){this.clear(),this.startPoint=this.getCurrentPoint(),this.isStarted=!0},e.prototype.getIntersectElements=function(){var t=null;if(ue(this.context))t=de(this.context,10);else{var e=this.startPoint,n=this.isStarted?this.getCurrentPoint():this.endPoint;if(!e||!n)return;var r={minX:Math.min(e.x,n.x),minY:Math.min(e.y,n.y),maxX:Math.max(e.x,n.x),maxY:Math.max(e.y,n.y)};t=me(this.context.view,r)}return t},e.prototype.setStateEnable=function(t){if(this.effectSiblings&&!this.effectByRecord)this.setSiblingsState(t);else{var e=ge(this.context.view),n=this.getIntersectElements();n&&n.length?this.effectByRecord?this.setSiblingsStateByRecord(n,t):this.setElementsState(n,t,e):this.clear()}},e.prototype.setSiblingsStateByRecord=function(t,e){var n=this,r=this.context.view,i=Ce(r),o=t.map((function(t){return t.getModel().data})),a=r.getXScale().field,s=r.getYScales()[0].field;Object(c.j)(i,(function(t){var r=ge(t),i=r.filter((function(t){var e=t.getModel().data;return Me(o,e,a,s)}));n.setElementsState(i,e,r)}))},e.prototype.setSiblingsState=function(t){var e=this,n=Ce(this.context.view);ue(this.context)&&Object(c.j)(n,(function(n){var r=ge(n),i=fe(e.context,n,10);i&&i.length?e.setElementsState(i,t,r):e.clearViewState(n)}))},e.prototype.setElementsState=function(t,e,n){var r=this;Object(c.j)(n,(function(n){t.includes(n)?r.setElementState(n,e):r.setElementState(n,!1)}))},e.prototype.end=function(){this.isStarted=!1,this.endPoint=this.getCurrentPoint()},e.prototype.clear=function(){var t=this,e=this.context.view;if(this.effectSiblings){var n=Ce(e);Object(c.j)(n,(function(e){t.clearViewState(e)}))}else this.clearViewState(e)},e}(So),To=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(s.c)(e,t),e.prototype.active=function(){this.setState()},e}(Po),Bo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.setStateEnable=function(t){var e=oe(this.context);if(e){if(!se(this.context))return;t?(this.clear(),this.setElementState(e,!0)):this.hasState(e)&&this.setElementState(e,!1)}},e.prototype.toggle=function(){var t=oe(this.context);if(t){var e=this.hasState(t);e||this.clear(),this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(So),Lo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(s.c)(e,t),e.prototype.active=function(){this.setState()},e}(Bo);function Do(t){var e=ge(t);Object(c.j)(e,(function(t){t.hasState("active")&&t.setState("active",!1),t.hasState("inactive")&&t.setState("inactive",!1)}))}function Fo(t,e,n){Object(c.j)(t,(function(t){e(t)?(t.hasState("inactive")&&t.setState("inactive",!1),t.setState("active",n)):(t.hasState("active")&&t.setState("active",!1),t.setState("inactive",n))}))}var Ro,No=d.INACTIVE,zo=d.ACTIVE,Wo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=zo,e}return Object(s.c)(e,t),e.prototype.setElementsStateByItem=function(t,e,n,r){var i=this;this.setHighlightBy(t,(function(t){return i.isMathItem(t,e,n)}),r)},e.prototype.setElementHighlight=function(t,e){e(t)?(t.hasState(No)&&t.setState(No,!1),t.setState(zo,!0)):t.hasState(zo)||t.setState(No,!0)},e.prototype.setHighlightBy=function(t,e,n){var r=this;if(n)Object(c.j)(t,(function(t){r.setElementHighlight(t,e)}));else{var i=ve(this.context.view,zo),o=!0;Object(c.j)(i,(function(t){if(!e(t))return o=!1,!1})),o?this.clear():Object(c.j)(t,(function(t){e(t)&&(t.hasState(zo)&&t.setState(zo,!1),t.setState(No,!0))}))}},e.prototype.setElementState=function(t,e){var n=ge(this.context.view);this.setHighlightBy(n,(function(e){return t===e}),e)},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){Do(this.context.view)},e}(ko),$o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.setStateByElement=function(t,e){var n=this.context.view,r=t.geometry.getAttribute("color");if(r){var i=n.getScaleByField(r.getFields()[0]),o=ye(t,i.field),a=ge(n),s=a.filter((function(t){return ye(t,i.field)===o}));this.setHighlightBy(a,(function(t){return s.includes(t)}),e)}},e}(Wo),Ho=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.setElementHighlight=function(t,e){e(t)?(t.hasState(No)&&t.setState(No,!1),t.setState(zo,!0)):(t.setState(No,!0),t.hasState(zo)&&t.setState(zo,!1))},e.prototype.setStateByElement=function(t,e){var n=this.context.view,r=n.getXScale(),i=ye(t,r.field),o=ge(n),a=o.filter((function(t){return ye(t,r.field)===i}));this.setHighlightBy(o,(function(t){return a.includes(t)}),e)},e.prototype.toggle=function(){var t=oe(this.context);if(t){var e=t.hasState(this.stateName);this.setStateByElement(t,!e)}},e}(Wo);!function(t){t.BEFORE_HIGHLIGHT="element-range-highlight:beforehighlight",t.AFTER_HIGHLIGHT="element-range-highlight:afterhighlight",t.BEFORE_CLEAR="element-range-highlight:beforeclear",t.AFTER_CLEAR="element-range-highlight:afterclear"}(Ro||(Ro={}));var Yo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(s.c)(e,t),e.prototype.clearViewState=function(t){Do(t)},e.prototype.highlight=function(){var t=this.context,e=t.view,n={view:e,event:t.event,highlightElements:this.getIntersectElements()};e.emit(Ro.BEFORE_HIGHLIGHT,yn.fromData(e,Ro.BEFORE_HIGHLIGHT,n)),this.setState(),e.emit(Ro.AFTER_HIGHLIGHT,yn.fromData(e,Ro.AFTER_HIGHLIGHT,n))},e.prototype.clear=function(){var e=this.context.view;e.emit(Ro.BEFORE_CLEAR,yn.fromData(e,Ro.BEFORE_CLEAR,{})),t.prototype.clear.call(this),e.emit(Ro.AFTER_CLEAR,yn.fromData(e,Ro.AFTER_CLEAR,{}))},e.prototype.setElementsState=function(t,e,n){Fo(n,(function(e){return t.indexOf(e)>=0}),e)},e}(Po),Vo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(s.c)(e,t),e.prototype.highlight=function(){this.setState()},e.prototype.setElementState=function(t,e){Fo(ge(this.context.view),(function(e){return t===e}),e)},e.prototype.clear=function(){Do(this.context.view)},e}(Bo),Go=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(s.c)(e,t),e.prototype.selected=function(){this.setState()},e}(Po),Ko=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(s.c)(e,t),e.prototype.selected=function(){this.setState()},e}(ko),Xo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(s.c)(e,t),e.prototype.selected=function(){this.setState()},e}(Bo),Uo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e.ignoreItemStates=[],e}return Object(s.c)(e,t),e.prototype.getTriggerListInfo=function(){var t=ae(this.context),e=null;return ce(t)&&(e={item:t.item,list:t.component}),e},e.prototype.getAllowComponents=function(){var t=this,e=Oe(this.context.view),n=[];return Object(c.j)(e,(function(e){e.isList()&&t.allowSetStateByElement(e)&&n.push(e)})),n},e.prototype.hasState=function(t,e){return t.hasState(e,this.stateName)},e.prototype.clearAllComponentsState=function(){var t=this,e=this.getAllowComponents();Object(c.j)(e,(function(e){e.clearItemsState(t.stateName)}))},e.prototype.allowSetStateByElement=function(t){var e=t.get("field");if(!e)return!1;if(this.cfg&&this.cfg.componentNames){var n=t.get("name");if(-1===this.cfg.componentNames.indexOf(n))return!1}var r=Se(this.context.view,e);return r&&r.isCategory},e.prototype.allowSetStateByItem=function(t,e){var n=this.ignoreItemStates;return!n.length||0===n.filter((function(n){return e.hasState(t,n)})).length},e.prototype.setStateByElement=function(t,e,n){var r=t.get("field"),i=Se(this.context.view,r),o=ye(e,r),a=i.getText(o);this.setItemsState(t,a,n)},e.prototype.setStateEnable=function(t){var e=this,n=oe(this.context);if(n){var r=this.getAllowComponents();Object(c.j)(r,(function(r){e.setStateByElement(r,n,t)}))}else{var i=ae(this.context);if(ce(i)){var o=i.item,a=i.component;this.allowSetStateByElement(a)&&this.allowSetStateByItem(o,a)&&this.setItemState(a,o,t)}}},e.prototype.setItemsState=function(t,e,n){var r=this,i=t.getItems();Object(c.j)(i,(function(i){i.name===e&&r.setItemState(t,i,n)}))},e.prototype.setItemState=function(t,e,n){t.setItemState(e,this.stateName,n)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.reset=function(){this.setStateEnable(!1)},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item,r=this.hasState(e,n);this.setItemState(e,n,!r)}},e.prototype.clear=function(){var t=this.getTriggerListInfo();t?t.list.clearItemsState(this.stateName):this.clearAllComponentsState()},e}(At),qo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(s.c)(e,t),e.prototype.active=function(){this.setState()},e}(Uo);var Zo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e.ignoreItemStates=["unchecked"],e}return Object(s.c)(e,t),e.prototype.setItemsState=function(t,e,n){this.setHighlightBy(t,(function(t){return t.name===e}),n)},e.prototype.setItemState=function(t,e,n){t.getItems();this.setHighlightBy(t,(function(t){return t===e}),n)},e.prototype.setHighlightBy=function(t,e,n){var r=t.getItems();if(n)Object(c.j)(r,(function(n){e(n)?(t.hasState(n,"inactive")&&t.setItemState(n,"inactive",!1),t.setItemState(n,"active",!0)):t.hasState(n,"active")||t.setItemState(n,"inactive",!0)}));else{var i=t.getItemsByState("active"),o=!0;Object(c.j)(i,(function(t){if(!e(t))return o=!1,!1})),o?this.clear():Object(c.j)(r,(function(n){e(n)&&(t.hasState(n,"active")&&t.setItemState(n,"active",!1),t.setItemState(n,"inactive",!0))}))}},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t,e,n=this.getTriggerListInfo();if(n)t=n.list,e=t.getItems(),Object(c.j)(e,(function(e){t.hasState(e,"active")&&t.setItemState(e,"active",!1),t.hasState(e,"inactive")&&t.setItemState(e,"inactive",!1)}));else{var r=this.getAllowComponents();Object(c.j)(r,(function(t){t.clearItemsState("active"),t.clearItemsState("inactive")}))}},e}(Uo),Qo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(s.c)(e,t),e.prototype.selected=function(){this.setState()},e}(Uo),Jo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="unchecked",e}return Object(s.c)(e,t),e.prototype.unchecked=function(){this.setState()},e}(Uo),ta=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="checked",e}return Object(s.c)(e,t),e.prototype.setItemState=function(t,e,n){this.setCheckedBy(t,(function(t){return t===e}),n)},e.prototype.setCheckedBy=function(t,e,n){var r=t.getItems();n&&Object(c.j)(r,(function(n){e(n)?(t.hasState(n,"unchecked")&&t.setItemState(n,"unchecked",!1),t.setItemState(n,"checked",!0)):t.hasState(n,"checked")||t.setItemState(n,"unchecked",!0)}))},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item;!Object(c.nb)(e.getItems(),(function(t){return e.hasState(t,"unchecked")}))||e.hasState(n,"unchecked")?this.setItemState(e,n,!0):this.reset()}},e.prototype.checked=function(){this.setState()},e.prototype.reset=function(){var t=this.getAllowComponents();Object(c.j)(t,(function(t){t.clearItemsState("checked"),t.clearItemsState("unchecked")}))},e}(Uo),ea=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.toggle=function(){var t,e,n,r,i,o,a,c,l=this.getTriggerListInfo();if(null==l?void 0:l.item){var u=l.list,h=l.item,d=u.getItems(),f=d.filter((function(t){return!u.hasState(t,"unchecked")})),p=d.filter((function(t){return u.hasState(t,"unchecked")})),g=f[0];if(d.length===f.length)try{for(var v=Object(s.i)(d),y=v.next();!y.done;y=v.next()){var m=y.value;u.setItemState(m,"unchecked",m.id!==h.id)}}catch(e){t={error:e}}finally{try{y&&!y.done&&(e=v.return)&&e.call(v)}finally{if(t)throw t.error}}else if(d.length-p.length==1)if(g.id===h.id)try{for(var b=Object(s.i)(d),x=b.next();!x.done;x=b.next()){m=x.value;u.setItemState(m,"unchecked",!1)}}catch(t){n={error:t}}finally{try{x&&!x.done&&(r=b.return)&&r.call(b)}finally{if(n)throw n.error}}else try{for(var O=Object(s.i)(d),j=O.next();!j.done;j=O.next()){m=j.value;u.setItemState(m,"unchecked",m.id!==h.id)}}catch(t){i={error:t}}finally{try{j&&!j.done&&(o=O.return)&&o.call(O)}finally{if(i)throw i.error}}else try{for(var w=Object(s.i)(d),C=w.next();!C.done;C=w.next()){m=C.value;u.setItemState(m,"unchecked",m.id!==h.id)}}catch(t){a={error:t}}finally{try{C&&!C.done&&(c=w.return)&&c.call(w)}finally{if(a)throw a.error}}}},e}(Uo),na="legend-radio-tip",ra=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return Object(s.c)(e,t),e.prototype.show=function(){var t=this.getTriggerListInfo();if(null==t?void 0:t.item){var e=t.list,n=t.item;e.setItemState(n,"showRadio",!0)}},e.prototype.hide=function(){var t=this.getTriggerListInfo();if(null==t?void 0:t.item){var e=t.list,n=t.item;e.setItemState(n,"showRadio",!1)}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.showTip=function(){var t=this.context.event,e=this.timeStamp,n=+new Date,r=this.context.event.target;if(n-e>16&&"legend-item-radio"===r.get("name")){var i=this.location,o={x:t.x,y:t.y};this.timeStamp=n,this.location=o,i&&Object(c.H)(i,o)||this.showTooltip(o)}},e.prototype.hideTip=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var e=this.context,n=e.event.target;if(n&&n.get("tip")){this.tooltip||this.renderTooltip();var r=e.view.getCanvas().get("el").getBoundingClientRect(),i=r.x,o=r.y;this.tooltip.update(Object(s.a)(Object(s.a)({title:n.get("tip")},t),{x:t.x+i,y:t.y+o})),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=((t={})[V.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={padding:"6px 8px",transform:"translate(-50%, -80%)",background:"rgba(0,0,0,0.75)",color:"#fff","border-radius":"2px","z-index":100},t[V.TOOLTIP_CSS_CONST.TITLE_CLASS]={"font-size":"12px","line-height":"14px","margin-bottom":0,"word-break":"break-all"},t);document.getElementById(na)&&document.body.removeChild(document.getElementById(na));var n=new Q({parent:document.body,region:null,visible:!1,crosshairs:null,domStyles:e,containerId:na});n.init(),n.setCapture(!1),this.tooltip=n},e}(Uo),ia=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.maskShape=null,e.points=[],e.starting=!1,e.moving=!1,e.preMovePoint=null,e.shapeType="path",e}return Object(s.c)(e,t),e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.emitEvent=function(t){var e="mask:".concat(t),n=this.context.view,r=this.context.event;n.emit(e,{target:this.maskShape,shape:this.maskShape,points:this.points,x:r.x,y:r.y})},e.prototype.createMask=function(){var t=this.context.view,e=this.getMaskAttrs();return t.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:Object(s.a)({fill:"#C5D4EB",opacity:.3},e)})},e.prototype.getMaskPath=function(){return[]},e.prototype.show=function(){this.maskShape&&(this.maskShape.show(),this.emitEvent("show"))},e.prototype.start=function(t){this.starting=!0,this.moving=!1,this.points=[this.getCurrentPoint()],this.maskShape||(this.maskShape=this.createMask(),this.maskShape.set("capture",!1)),this.updateMask(null==t?void 0:t.maskStyle),this.emitEvent("start")},e.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint()},e.prototype.move=function(){if(this.moving&&this.maskShape){var t=this.getCurrentPoint(),e=this.preMovePoint,n=t.x-e.x,r=t.y-e.y,i=this.points;Object(c.j)(i,(function(t){t.x+=n,t.y+=r})),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t}},e.prototype.updateMask=function(t){var e=Object(c.h)({},this.getMaskAttrs(),t);this.maskShape.attr(e)},e.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null},e.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.maskShape&&this.maskShape.set("capture",!0)},e.prototype.hide=function(){this.maskShape&&(this.maskShape.hide(),this.emitEvent("hide"))},e.prototype.resize=function(){this.starting&&this.maskShape&&(this.points.push(this.getCurrentPoint()),this.updateMask(),this.emitEvent("change"))},e.prototype.destroy=function(){this.points=[],this.maskShape&&this.maskShape.remove(),this.maskShape=null,this.preMovePoint=null,t.prototype.destroy.call(this)},e}(At);function oa(t){var e=Object(c.U)(t),n=0,r=0,i=0;if(t.length){var o=t[0];n=je(o,e)/2,r=(e.x+o.x)/2,i=(e.y+o.y)/2}return{x:r,y:i,r:n}}var aa=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="circle",e}return Object(s.c)(e,t),e.prototype.getMaskAttrs=function(){return oa(this.points)},e}(ia);function sa(t){return{start:Object(c.z)(t),end:Object(c.U)(t)}}function ca(t,e){return{x:Math.min(t.x,e.x),y:Math.min(t.y,e.y),width:Math.abs(e.x-t.x),height:Math.abs(e.y-t.y)}}var la=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="rect",e}return Object(s.c)(e,t),e.prototype.getRegion=function(){return sa(this.points)},e.prototype.getMaskAttrs=function(){var t=this.getRegion();return ca(t.start,t.end)},e}(ia);function ua(t){t.x=Object(c.c)(t.x,0,1),t.y=Object(c.c)(t.y,0,1)}function ha(t,e,n,r){var i=null,o=null,a=r.invert(Object(c.z)(t)),s=r.invert(Object(c.U)(t));return n&&(ua(a),ua(s)),"x"===e?(i=r.convert({x:a.x,y:0}),o=r.convert({x:s.x,y:1})):(i=r.convert({x:0,y:a.y}),o=r.convert({x:1,y:s.y})),{start:i,end:o}}var da=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dim="x",e.inPlot=!0,e}return Object(s.c)(e,t),e.prototype.getRegion=function(){var t=this.context.view.getCoordinate();return ha(this.points,this.dim,this.inPlot,t)},e}(la);function fa(t){var e=[];return t.length&&(Object(c.j)(t,(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}function pa(t){return{path:fa(t)}}var ga=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.getMaskPath=function(){return fa(this.points)},e.prototype.getMaskAttrs=function(){return pa(this.points)},e.prototype.addPoint=function(){this.resize()},e}(ia);function va(t){return function(t,e){if(t.length<=2)return zt(t,!1);var n=t[0],r=[];Object(c.j)(t,(function(t){r.push(t.x),r.push(t.y)}));var i=Nt(r,e,null);return i.unshift(["M",n.x,n.y]),i}(t,!0)}function ya(t){return{path:va(t)}}var ma,ba=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.getMaskPath=function(){return va(this.points)},e.prototype.getMaskAttrs=function(){return ya(this.points)},e}(ga),xa=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.maskShapes=[],e.starting=!1,e.moving=!1,e.recordPoints=null,e.preMovePoint=null,e.shapeType="path",e.maskType="multi-mask",e}return Object(s.c)(e,t),e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.emitEvent=function(t){var e="".concat(this.maskType,":").concat(t),n=this.context.view,r=this.context.event,i={type:this.shapeType,name:this.maskType,get:function(t){return i.hasOwnProperty(t)?i[t]:void 0}};n.emit(e,{target:i,maskShapes:this.maskShapes,multiPoints:this.recordPoints,x:r.x,y:r.y})},e.prototype.createMask=function(t){var e=this.context.view,n=this.recordPoints[t],r=this.getMaskAttrs(n),i=e.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:Object(s.a)({fill:"#C5D4EB",opacity:.3},r)});this.maskShapes.push(i)},e.prototype.getMaskPath=function(t){return[]},e.prototype.show=function(){this.maskShapes.length>0&&(this.maskShapes.forEach((function(t){return t.show()})),this.emitEvent("show"))},e.prototype.start=function(t){this.recordPointStart(),this.starting=!0,this.moving=!1;var e=this.recordPoints.length-1;this.createMask(e),this.updateShapesCapture(!1),this.updateMask(null==t?void 0:t.maskStyle),this.emitEvent("start")},e.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint(),this.updateShapesCapture(!1)},e.prototype.move=function(){if(this.moving&&0!==this.maskShapes.length){var t=this.getCurrentPoint(),e=this.preMovePoint,n=t.x-e.x,r=t.y-e.y,i=this.getCurMaskShapeIndex();i>-1&&(this.recordPoints[i].forEach((function(t){t.x+=n,t.y+=r})),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t)}},e.prototype.updateMask=function(t){var e=this;this.recordPoints.forEach((function(n,r){var i=Object(c.h)({},e.getMaskAttrs(n),t);e.maskShapes[r].attr(i)}))},e.prototype.resize=function(){this.starting&&this.maskShapes.length>0&&(this.recordPointContinue(),this.updateMask(),this.emitEvent("change"))},e.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null,this.updateShapesCapture(!0)},e.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.updateShapesCapture(!0)},e.prototype.hide=function(){this.maskShapes.length>0&&(this.maskShapes.forEach((function(t){return t.hide()})),this.emitEvent("hide"))},e.prototype.remove=function(){var t=this.getCurMaskShapeIndex();t>-1&&(this.recordPoints.splice(t,1),this.maskShapes[t].remove(),this.maskShapes.splice(t,1),this.preMovePoint=null,this.updateShapesCapture(!0),this.emitEvent("change"))},e.prototype.clearAll=function(){this.recordPointClear(),this.maskShapes.forEach((function(t){return t.remove()})),this.maskShapes=[],this.preMovePoint=null},e.prototype.clear=function(){var t=this.getCurMaskShapeIndex();-1===t?(this.recordPointClear(),this.maskShapes.forEach((function(t){return t.remove()})),this.maskShapes=[],this.emitEvent("clearAll")):(this.recordPoints.splice(t,1),this.maskShapes[t].remove(),this.maskShapes.splice(t,1),this.preMovePoint=null,this.emitEvent("clearSingle")),this.preMovePoint=null},e.prototype.destroy=function(){this.clear(),t.prototype.destroy.call(this)},e.prototype.getRecordPoints=function(){var t;return Object(s.g)([],Object(s.e)(null!==(t=this.recordPoints)&&void 0!==t?t:[]),!1)},e.prototype.recordPointStart=function(){var t=this.getRecordPoints(),e=this.getCurrentPoint();this.recordPoints=Object(s.g)(Object(s.g)([],Object(s.e)(t),!1),[[e]],!1)},e.prototype.recordPointContinue=function(){var t=this.getRecordPoints(),e=this.getCurrentPoint(),n=t.splice(-1,1)[0]||[];n.push(e),this.recordPoints=Object(s.g)(Object(s.g)([],Object(s.e)(t),!1),[n],!1)},e.prototype.recordPointClear=function(){this.recordPoints=[]},e.prototype.updateShapesCapture=function(t){this.maskShapes.forEach((function(e){return e.set("capture",t)}))},e.prototype.getCurMaskShapeIndex=function(){var t=this.getCurrentPoint();return this.maskShapes.findIndex((function(e){var n=e.attrs,r=n.width,i=n.height,o=n.r;return!(0===r||0===i||0===o)&&e.isHit(t.x,t.y)}))},e}(At),Oa=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="rect",e}return Object(s.c)(e,t),e.prototype.getRegion=function(t){return sa(t)},e.prototype.getMaskAttrs=function(t){var e=this.getRegion(t);return ca(e.start,e.end)},e}(xa),ja=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dim="x",e.inPlot=!0,e}return Object(s.c)(e,t),e.prototype.getRegion=function(t){var e=this.context.view.getCoordinate();return ha(t,this.dim,this.inPlot,e)},e}(Oa),wa=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="circle",e.getMaskAttrs=oa,e}return Object(s.c)(e,t),e}(xa),Ca=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.getMaskPath=fa,e.getMaskAttrs=pa,e}return Object(s.c)(e,t),e.prototype.addPoint=function(){this.resize()},e}(xa),_a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.getMaskPath=va,e.getMaskAttrs=ya,e}return Object(s.c)(e,t),e}(Ca),Ma=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.setCursor=function(t){this.context.view.getCanvas().setCursor(t)},e.prototype.default=function(){this.setCursor("default")},e.prototype.pointer=function(){this.setCursor("pointer")},e.prototype.move=function(){this.setCursor("move")},e.prototype.crosshair=function(){this.setCursor("crosshair")},e.prototype.wait=function(){this.setCursor("wait")},e.prototype.help=function(){this.setCursor("help")},e.prototype.text=function(){this.setCursor("text")},e.prototype.eResize=function(){this.setCursor("e-resize")},e.prototype.wResize=function(){this.setCursor("w-resize")},e.prototype.nResize=function(){this.setCursor("n-resize")},e.prototype.sResize=function(){this.setCursor("s-resize")},e.prototype.neResize=function(){this.setCursor("ne-resize")},e.prototype.nwResize=function(){this.setCursor("nw-resize")},e.prototype.seResize=function(){this.setCursor("se-resize")},e.prototype.swResize=function(){this.setCursor("sw-resize")},e.prototype.nsResize=function(){this.setCursor("ns-resize")},e.prototype.ewResize=function(){this.setCursor("ew-resize")},e.prototype.zoomIn=function(){this.setCursor("zoom-in")},e.prototype.zoomOut=function(){this.setCursor("zoom-out")},e}(At),Sa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.filterView=function(t,e,n){var r=this;t.getScaleByField(e)&&t.filter(e,n),t.views&&t.views.length&&Object(c.j)(t.views,(function(t){r.filterView(t,e,n)}))},e.prototype.filter=function(){var t=ae(this.context);if(t){var e=this.context.view,n=t.component,r=n.get("field");if(ce(t)){if(r){var i=n.getItemsByState("unchecked"),o=Se(e,r),a=i.map((function(t){return t.name}));a.length?this.filterView(e,r,(function(t){var e=o.getText(t);return!a.includes(e)})):this.filterView(e,r,null),e.render(!0)}}else if(le(t)){var c=n.getValue(),l=Object(s.e)(c,2),u=l[0],h=l[1];this.filterView(e,r,(function(t){return t>=u&&t<=h})),e.render(!0)}}},e}(At);function Ea(t,e,n,r){var i=Math.min(n[e],r[e]),o=Math.max(n[e],r[e]),a=Object(s.e)(t.range,2),c=a[0],l=a[1];if(i<c&&(i=c),o>l&&(o=l),i===l&&o===l)return null;var u=t.invert(i),h=t.invert(o);if(t.isCategory){var d=t.values.indexOf(u),f=t.values.indexOf(h),p=t.values.slice(d,f+1);return function(t){return p.includes(t)}}return function(t){return t>=u&&t<=h}}!function(t){t.FILTER="brush-filter-processing",t.RESET="brush-filter-reset",t.BEFORE_FILTER="brush-filter:beforefilter",t.AFTER_FILTER="brush-filter:afterfilter",t.BEFORE_RESET="brush-filter:beforereset",t.AFTER_RESET="brush-filter:afterreset"}(ma||(ma={}));var ka=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=["x","y"],e.startPoint=null,e.isStarted=!1,e}return Object(s.c)(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.start=function(){var t=this.context;this.isStarted=!0,this.startPoint=t.getCurrentPoint()},e.prototype.filter=function(){var t,e;if(ue(this.context)){var n=this.context.event.target.getCanvasBBox();t={x:n.x,y:n.y},e={x:n.maxX,y:n.maxY}}else{if(!this.isStarted)return;t=this.startPoint,e=this.context.getCurrentPoint()}if(!(Math.abs(t.x-e.x)<5||Math.abs(t.x-e.y)<5)){var r=this.context,i=r.view,o={view:i,event:r.event,dims:this.dims};i.emit(ma.BEFORE_FILTER,yn.fromData(i,ma.BEFORE_FILTER,o));var a=i.getCoordinate(),s=a.invert(e),c=a.invert(t);if(this.hasDim("x")){var l=i.getXScale(),u=Ea(l,"x",s,c);this.filterView(i,l.field,u)}if(this.hasDim("y")){var h=i.getYScales()[0];u=Ea(h,"y",s,c);this.filterView(i,h.field,u)}this.reRender(i,{source:ma.FILTER}),i.emit(ma.AFTER_FILTER,yn.fromData(i,ma.AFTER_FILTER,o))}},e.prototype.end=function(){this.isStarted=!1},e.prototype.reset=function(){var t=this.context.view;if(t.emit(ma.BEFORE_RESET,yn.fromData(t,ma.BEFORE_RESET,{})),this.isStarted=!1,this.hasDim("x")){var e=t.getXScale();this.filterView(t,e.field,null)}if(this.hasDim("y")){var n=t.getYScales()[0];this.filterView(t,n.field,null)}this.reRender(t,{source:ma.RESET}),t.emit(ma.AFTER_RESET,yn.fromData(t,ma.AFTER_RESET,{}))},e.prototype.filterView=function(t,e,n){t.filter(e,n)},e.prototype.reRender=function(t,e){t.render(!0,e)},e}(At),Ia=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.filterView=function(t,e,n){var r=Ce(t);Object(c.j)(r,(function(t){t.filter(e,n)}))},e.prototype.reRender=function(t){var e=Ce(t);Object(c.j)(e,(function(t){t.render(!0)}))},e}(ka),Aa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.filter=function(){var t=ae(this.context),e=this.context.view,n=ge(e);if(ue(this.context)){var r=de(this.context,10);r&&Object(c.j)(n,(function(t){r.includes(t)?t.show():t.hide()}))}else if(t){var i=t.component,o=i.get("field");if(ce(t)){if(o){var a=i.getItemsByState("unchecked"),l=Se(e,o),u=a.map((function(t){return t.name}));Object(c.j)(n,(function(t){var e=ye(t,o),n=l.getText(e);u.indexOf(n)>=0?t.hide():t.show()}))}}else if(le(t)){var h=i.getValue(),d=Object(s.e)(h,2),f=d[0],p=d[1];Object(c.j)(n,(function(t){var e=ye(t,o);e>=f&&e<=p?t.show():t.hide()}))}}},e.prototype.clear=function(){var t=ge(this.context.view);Object(c.j)(t,(function(t){t.show()}))},e.prototype.reset=function(){this.clear()},e}(At),Pa=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.byRecord=!1,e}return Object(s.c)(e,t),e.prototype.filter=function(){ue(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},e.prototype.filterByRecord=function(){var t=this.context.view,e=de(this.context,10);if(e){var n=t.getXScale().field,r=t.getYScales()[0].field,i=e.map((function(t){return t.getModel().data})),o=Ce(t);Object(c.j)(o,(function(t){var e=ge(t);Object(c.j)(e,(function(t){var e=t.getModel().data;Me(i,e,n,r)?t.show():t.hide()}))}))}},e.prototype.filterByBBox=function(){var t=this,e=Ce(this.context.view);Object(c.j)(e,(function(e){var n=fe(t.context,e,10),r=ge(e);n&&Object(c.j)(r,(function(t){n.includes(t)?t.show():t.hide()}))}))},e.prototype.reset=function(){var t=Ce(this.context.view);Object(c.j)(t,(function(t){var e=ge(t);Object(c.j)(e,(function(t){t.show()}))}))},e}(At),Ta=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buttonGroup=null,e.buttonCfg={name:"button",text:"button",textStyle:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"},padding:[8,10],style:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},activeStyle:{fill:"#e6e6e6"}},e}return Object(s.c)(e,t),e.prototype.getButtonCfg=function(){return Object(c.h)(this.buttonCfg,this.cfg)},e.prototype.drawButton=function(){var t=this.getButtonCfg(),e=this.context.view.foregroundGroup.addGroup({name:t.name}),n=e.addShape({type:"text",name:"button-text",attrs:Object(s.a)({text:t.text},t.textStyle)}).getBBox(),r=fn(t.padding),i=e.addShape({type:"rect",name:"button-rect",attrs:Object(s.a)({x:n.x-r[3],y:n.y-r[0],width:n.width+r[1]+r[3],height:n.height+r[0]+r[2]},t.style)});i.toBack(),e.on("mouseenter",(function(){i.attr(t.activeStyle)})),e.on("mouseleave",(function(){i.attr(t.style)})),this.buttonGroup=e},e.prototype.resetPosition=function(){var t=this.context.view.getCoordinate().convert({x:1,y:1}),e=this.buttonGroup,n=e.getBBox(),r=R.a.transform(null,[["t",t.x-n.width-10,t.y+n.height+5]]);e.setMatrix(r)},e.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},e.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},e.prototype.destroy=function(){var e=this.buttonGroup;e&&e.remove(),t.prototype.destroy.call(this)},e}(At),Ba=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.dragStart=!1,e}return Object(s.c)(e,t),e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint()},e.prototype.drag=function(){if(this.startPoint){var t=this.context.getCurrentPoint(),e=this.context.view,n=this.context.event;this.dragStart?e.emit("drag",{target:n.target,x:n.x,y:n.y}):je(t,this.startPoint)>4&&(e.emit("dragstart",{target:n.target,x:n.x,y:n.y}),this.dragStart=!0)}},e.prototype.end=function(){if(this.dragStart){var t=this.context.view,e=this.context.event;t.emit("dragend",{target:e.target,x:e.x,y:e.y})}this.starting=!1,this.dragStart=!1},e}(At),La=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.isMoving=!1,e.startPoint=null,e.startMatrix=null,e}return Object(s.c)(e,t),e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint(),this.startMatrix=this.context.view.middleGroup.getMatrix()},e.prototype.move=function(){if(this.starting){var t=this.startPoint,e=this.context.getCurrentPoint();if(je(t,e)>5&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var n=this.context.view,r=R.a.transform(this.startMatrix,[["t",e.x-t.x,e.y-t.y]]);n.backgroundGroup.setMatrix(r),n.foregroundGroup.setMatrix(r),n.middleGroup.setMatrix(r)}}},e.prototype.end=function(){this.isMoving&&(this.isMoving=!1),this.startMatrix=null,this.starting=!1,this.startPoint=null},e.prototype.reset=function(){this.starting=!1,this.startPoint=null,this.isMoving=!1;var t=this.context.view;t.backgroundGroup.resetMatrix(),t.foregroundGroup.resetMatrix(),t.middleGroup.resetMatrix(),this.isMoving=!1},e}(At),Da=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=["x","y"],e.cfgFields=["dims"],e.cacheScaleDefs={},e}return Object(s.c)(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.getScale=function(t){var e=this.context.view;return"x"===t?e.getXScale():e.getYScales()[0]},e.prototype.resetDim=function(t){var e=this.context.view;if(this.hasDim(t)&&this.cacheScaleDefs[t]){var n=this.getScale(t);e.scale(n.field,this.cacheScaleDefs[t]),this.cacheScaleDefs[t]=null}},e.prototype.reset=function(){this.resetDim("x"),this.resetDim("y"),this.context.view.render(!0)},e}(At),Fa=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.starting=!1,e.startCache={},e}return Object(s.c)(e,t),e.prototype.start=function(){var t=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0;var e=this.dims;Object(c.j)(e,(function(e){var n=t.getScale(e),r=n.min,i=n.max,o=n.values;t.startCache[e]={min:r,max:i,values:o}}))},e.prototype.end=function(){this.startPoint=null,this.starting=!1,this.startCache={}},e.prototype.translate=function(){var t=this;if(this.starting){var e=this.startPoint,n=this.context.view.getCoordinate(),r=this.context.getCurrentPoint(),i=n.invert(e),o=n.invert(r),a=o.x-i.x,s=o.y-i.y,l=this.context.view,u=this.dims;Object(c.j)(u,(function(e){t.translateDim(e,{x:-1*a,y:-1*s})})),l.render(!0)}},e.prototype.translateDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.translateLinear(t,n,e)}},e.prototype.translateLinear=function(t,e,n){var r=this.context.view,i=this.startCache[t],o=i.min,a=i.max,s=a-o,c=n[t]*s;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:o,max:a}),r.scale(e.field,{nice:!1,min:o+c,max:a+c})},e.prototype.reset=function(){t.prototype.reset.call(this),this.startPoint=null,this.starting=!1},e}(Da),Ra=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.zoomRatio=.05,e}return Object(s.c)(e,t),e.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},e.prototype.zoom=function(t){var e=this,n=this.dims;Object(c.j)(n,(function(n){e.zoomDim(n,t)})),this.context.view.render(!0)},e.prototype.zoomOut=function(){this.zoom(-1*this.zoomRatio)},e.prototype.zoomDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.zoomLinear(t,n,e)}},e.prototype.zoomLinear=function(t,e,n){var r=this.context.view;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:e.min,max:e.max});var i=this.cacheScaleDefs[t],o=i.max-i.min,a=e.min,s=e.max,c=n*o,l=a-c,u=s+c,h=(u-l)/o;u>l&&h<100&&h>.01&&r.scale(e.field,{nice:!1,min:a-c,max:s+c})},e}(Da);var Na,za,Wa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.scroll=function(t){var e=this.context,n=e.view,r=e.event;if(n.getOptions().scrollbar){var i=(null==t?void 0:t.wheelDelta)||1,o=n.getController("scrollbar"),a=n.getXScale(),s=n.getOptions().data,l=Object(c.mb)(Object(c.yb)(s,a.field)),u=Object(c.mb)(a.values),h=o.getValue(),d=Math.floor((l-u)*h)+(function(t){return t.gEvent.originalEvent.deltaY>0}(r)?i:-i),f=i/(l-u)/1e4,p=Object(c.c)(d/(l-u)+f,0,1);o.setValue(p)}},e}(At),$a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.show=function(){var t=this.context,e=ae(t).axis.cfg.title,n=e.description,r=e.text,i=e.descriptionTooltipStyle,o=t.event,a=o.x,s=o.y;this.tooltip||this.renderTooltip(),this.tooltip.update({title:r||"",customContent:function(){return'\n <div class="'.concat(V.TOOLTIP_CSS_CONST.CONTAINER_CLASS,'" style={').concat(i,'}>\n <div class="').concat(V.TOOLTIP_CSS_CONST.TITLE_CLASS,'">\n 字段说明:').concat(n,"\n </div>\n </div>\n ")},x:a,y:s}),this.tooltip.show()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.hide=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=this.context.view.canvas,n={start:{x:0,y:0},end:{x:e.get("width"),y:e.get("height")}},r=new Q({parent:e.get("el").parentNode,region:n,visible:!1,containerId:"aixs-description-tooltip",domStyles:Object(s.a)({},Object(c.h)({},(t={},t[V.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={"max-width":"50%",padding:"10px","line-height":"15px","font-size":"12px",color:"rgba(0, 0, 0, .65)"},t[V.TOOLTIP_CSS_CONST.TITLE_CLASS]={"word-break":"break-all","margin-bottom":"3px"},t)))});r.init(),r.setCapture(!1),this.tooltip=r},e}(At);function Ha(t){return t.isInPlot()}function Ya(t){return t.gEvent.preventDefault(),t.gEvent.originalEvent.deltaY>0}Na="dark",za=We(Rr),en[Object(c.V)(Na)]=tn(za),m("canvas",Nr),m("svg",zr),Cn("Polygon",ai),Cn("Interval",ei),Cn("Schema",si),Cn("Path",Wr),Cn("Point",oi),Cn("Line",ni),Cn("Area",Vr),Cn("Edge",Gr),Cn("Heatmap",Kr),Cn("Violin",ci),Nn("base",or),Nn("interval",yi),Nn("pie",xi),Nn("polar",bi),zn("overlap",(function(t,e,n,r){var i=new ji;Object(c.j)(e,(function(t){for(var e=t.find((function(t){return"text"===t.get("type")})),n=e.attr(),r=n.x,o=n.y,a=!1,s=0;s<=8;s++){var c=wi(e,r,o,s);if(i.hasGap(c)){i.fillGap(c),a=!0;break}}a||t.remove(!0)})),i.destroy()})),zn("distribute",(function(t,e,n,r){if(t.length&&e.length){var i=t[0]?t[0].offset:0,o=e[0].get("coordinate"),a=o.getRadius(),l=o.getCenter();if(i>0){var u=2*(a+i)+28,h={start:o.start,end:o.end},d=[[],[]];t.forEach((function(t){t&&("right"===t.textAlign?d[0].push(t):d[1].push(t))})),d.forEach((function(t,n){var r=u/14;t.length>r&&(t.sort((function(t,e){return e["..percent"]-t["..percent"]})),t.splice(r,t.length-r)),t.sort((function(t,e){return t.y-e.y})),function(t,e,n,r,i,o){var a,l,u,h=!0,d=r.start,f=r.end,p=Math.min(d.y,f.y),g=Math.abs(d.y-f.y),v=0,y=Number.MIN_VALUE,m=e.map((function(t){return t.y>v&&(v=t.y),t.y<y&&(y=t.y),{size:n,targets:[t.y-p]}}));for(y-=p,v-p>g&&(g=v-p);h;)for(m.forEach((function(t){var e=(Math.min.apply(y,t.targets)+Math.max.apply(y,t.targets))/2;t.pos=Math.min(Math.max(y,e-t.size/2),g-t.size)})),h=!1,u=m.length;u--;)if(u>0){var b=m[u-1],x=m[u];b.pos+b.size>x.pos&&(b.size+=x.size,b.targets=b.targets.concat(x.targets),b.pos+b.size>g&&(b.pos=g-b.size),m.splice(u,1),h=!0)}u=0,m.forEach((function(t){var r=p+n/2;t.targets.forEach((function(){e[u].y=t.pos+r,r+=n,u++}))}));var O={};try{for(var j=Object(s.i)(t),w=j.next();!w.done;w=j.next()){var C=w.value;O[C.get("id")]=C}}catch(t){a={error:t}}finally{try{w&&!w.done&&(l=j.return)&&l.call(j)}finally{if(a)throw a.error}}e.forEach((function(t){var e=t.r*t.r,n=Math.pow(Math.abs(t.y-i.y),2);if(e<n)t.x=i.x;else{var r=Math.sqrt(e-n);t.x=o?i.x+r:i.x-r}var a=O[t.id];a.attr("x",t.x),a.attr("y",t.y);var s=Object(c.m)(a.getChildren(),(function(t){return"text"===t.get("type")}));s&&(s.attr("y",t.y),s.attr("x",t.x))}))}(e,t,14,h,l,n)}))}Object(c.j)(t,(function(t){if(t&&t.labelLine){var e=t.offset,n=t.angle,r=et(l.x,l.y,a,n),i=et(l.x,l.y,a+e/2,n),o=t.x+Object(c.s)(t,"offsetX",0),s=t.y+Object(c.s)(t,"offsetY",0),u={x:o-4*Math.cos(n),y:s-4*Math.sin(n)};Object(c.O)(t.labelLine)||(t.labelLine={}),t.labelLine.path=["M ".concat(r.x),"".concat(r.y," Q").concat(i.x),"".concat(i.y," ").concat(u.x),u.y].join(",")}}))}})),zn("fixed-overlap",(function(t,e,n,r){var i=new ji;Object(c.j)(e,(function(t){(function(t,e,n){void 0===n&&(n=100);var r,i=t.attr(),o=i.x,a=i.y,s=t.getCanvasBBox(),c=Math.sqrt(s.width*s.width+s.height*s.height),l=1,u=0,h=0;if(e.hasGap(s))return e.fillGap(s),!0;for(var d,f,p=!1,g=0,v={};Math.min(Math.abs(u),Math.abs(h))<c&&g<n;)if(d=l+=-1,f=void 0,h=~~(r=[(f=.1*d)*Math.cos(f),f*Math.sin(f)])[1],((u=~~r[0])||h)&&!v["".concat(u,"-").concat(h)]&&(t.attr({x:o+u,y:a+h}),u+h<0&&t.attr("textAlign","right"),g++,e.hasGap(t.getCanvasBBox()))){e.fillGap(t.getCanvasBBox()),p=!0,v["".concat(u,"-").concat(h)]=!0;break}return p})(t.find((function(t){return"text"===t.get("type")})),i)||t.remove(!0)})),i.destroy()})),zn("hide-overlap",(function(t,e,n,r){return Object(s.b)(this,void 0,void 0,(function(){var n,r,i,o,a,l;return Object(s.d)(this,(function(u){switch(u.label){case 0:return n=e.map((function(e,n){return Object(s.a)(Object(s.a)({},er(e,t[n],Object(c.s)(t[n],"background.padding"))),{visible:!0})})),r=JSON.stringify(n),i=function(t){return Bi.set(r,t),Object(c.j)(t,(function(t,n){var r=t.visible,i=e[n];r?null==i||i.show():null==i||i.hide()})),t},Bi.get(r)?(i(Bi.get(r)),[3,7]):[3,1];case 1:if(!Li)return[3,6];u.label=2;case 2:return u.trys.push([2,4,,5]),o=JSON.stringify({type:"hide-overlap",items:n}),[4,Li.post(o,(function(){return i(Ti(n))}))];case 3:return a=u.sent(),i(Array.isArray(a.data)?a.data:[]),[3,5];case 4:return l=u.sent(),console.error(l),i(Ti(n)),[3,5];case 5:return[3,7];case 6:i(Ti(n)),u.label=7;case 7:return[2]}}))}))})),zn("limit-in-shape",(function(t,e,n,r){Object(c.j)(e,(function(t,e){var r=t.getCanvasBBox(),i=n[e].getBBox();(r.minX<i.minX||r.minY<i.minY||r.maxX>i.maxX||r.maxY>i.maxY)&&t.remove(!0)}))})),zn("limit-in-canvas",(function(t,e,n,r){Object(c.j)(e,(function(t){var e=r.minX,n=r.minY,i=r.maxX,o=r.maxY,a=t.getCanvasBBox(),s=a.minX,c=a.minY,l=a.maxX,u=a.maxY,h=a.x,d=a.y,f=a.width,p=a.height,g=h,v=d;(s<e||l<e)&&(g=e),(c<n||u<n)&&(v=n),s>i?g=i-f:l>i&&(g-=l-i),c>o?v=o-p:u>o&&(v-=u-o),g===h&&v===d||Qn(t,g-h,v-d)}))})),zn("limit-in-plot",(function(t,e,n,r,i){if(!(e.length<=0)){var o=(null==i?void 0:i.direction)||["top","right","bottom","left"],a=(null==i?void 0:i.action)||"translate",s=(null==i?void 0:i.margin)||0,l=e[0].get("coordinate");if(l){var u=function(t,e){void 0===e&&(e=0);var n=t.start,r=t.end,i=t.getWidth(),o=t.getHeight(),a=Math.min(n.x,r.x),s=Math.min(n.y,r.y);return lt.fromRange(a-e,s-e,a+i+e,s+o+e)}(l,s),h=u.minX,d=u.minY,f=u.maxX,p=u.maxY;Object(c.j)(e,(function(t){var e=t.getCanvasBBox(),n=e.minX,r=e.minY,i=e.maxX,s=e.maxY,l=e.x,u=e.y,g=e.width,v=e.height,y=l,m=u;if(o.indexOf("left")>=0&&(n<h||i<h)&&(y=h),o.indexOf("top")>=0&&(r<d||s<d)&&(m=d),o.indexOf("right")>=0&&(n>f?y=f-g:i>f&&(y-=i-f)),o.indexOf("bottom")>=0&&(r>p?m=p-v:s>p&&(m-=s-p)),y!==l||m!==u){var b=y-l;if("translate"===a)Qn(t,b,m-u);else if("ellipsis"===a){t.findAll((function(t){return"text"===t.get("type")})).forEach((function(t){var e=Object(c.hb)(t.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),n=t.getCanvasBBox(),r=function(t,e,n){var r,i=Hi("...",n);r=Object(c.Q)(t)?t:Object(c.tb)(t);var o,a,s=e,l=[];if(Hi(t,n)<=e)return t;for(;o=r.substr(0,16),!((a=Hi(o,n))+i>s&&a>s);)if(l.push(o),s-=a,!(r=r.substr(16)))return l.join("");for(;o=r.substr(0,1),!((a=Hi(o,n))+i>s);)if(l.push(o),s-=a,!(r=r.substr(1)))return l.join("");return"".concat(l.join(""),"...")}(t.attr("text"),n.width-Math.abs(b),e);t.attr("text",r)}))}else t.hide()}}))}}})),zn("pie-outer",(function(t,e,n,r){var i,o,a=Object(c.l)(t,(function(t){return!Object(c.K)(t)})),l=e[0]&&e[0].get("coordinate");if(l){var u=l.getCenter(),h=l.getRadius(),d={};try{for(var f=Object(s.i)(e),p=f.next();!p.done;p=f.next()){var g=p.value;d[g.get("id")]=g}}catch(t){i={error:t}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}var v=Object(c.s)(a[0],"labelHeight",14),y=Object(c.s)(a[0],"offset",0);if(!(y<=0)){var m=Object(c.w)(a,(function(t){return t.x<u.x?"left":"right"})),b=l.start,x=l.end,O=Math.min(2*(h+y+v),l.getHeight()),j=O/2,w={minX:b.x,maxX:x.x,minY:u.y-j,maxY:u.y+j};Object(c.j)(m,(function(t,e){var n=Math.floor(O/v);t.length>n&&(t.sort((function(t,e){return e.percent-t.percent})),Object(c.j)(t,(function(t,e){e+1>n&&(d[t.id].set("visible",!1),t.invisible=!0)}))),Oi(t,v,w)})),Object(c.j)(m,(function(t,e){Object(c.j)(t,(function(t){var n="right"===e,r=d[t.id].getChildByIndex(0);if(r){var i=h+y,o=t.y-u.y,a=Math.pow(i,2),s=Math.pow(o,2),f=a-s>0?a-s:0,p=Math.sqrt(f),g=Math.abs(Math.cos(t.angle)*i);t.x=n?u.x+Math.max(p,g):u.x-Math.max(p,g)}r&&(r.attr("y",t.y),r.attr("x",t.x)),function(t,e){var n=e.getCenter(),r=e.getRadius();if(t&&t.labelLine){var i=t.angle,o=t.offset,a=et(n.x,n.y,r,i),s=t.x+Object(c.s)(t,"offsetX",0)*(Math.cos(i)>0?1:-1),l=t.y+Object(c.s)(t,"offsetY",0)*(Math.sin(i)>0?1:-1),u={x:s-4*Math.cos(i),y:l-4*Math.sin(i)},h=t.labelLine.smooth,d=[],f=u.x-n.x,p=u.y-n.y,g=Math.atan(p/f);if(f<0&&(g+=Math.PI),!1===h){Object(c.O)(t.labelLine)||(t.labelLine={});var v=0;(i<0&&i>-Math.PI/2||i>1.5*Math.PI)&&u.y>a.y&&(v=1),i>=0&&i<Math.PI/2&&u.y>a.y&&(v=1),i>=Math.PI/2&&i<Math.PI&&a.y>u.y&&(v=1),(i<-Math.PI/2||i>=Math.PI&&i<1.5*Math.PI)&&a.y>u.y&&(v=1);var y=o/2>4?4:Math.max(o/2-1,0),m=et(n.x,n.y,r+y,i),b=et(n.x,n.y,r+o/2,g);d.push("M ".concat(a.x," ").concat(a.y)),d.push("L ".concat(m.x," ").concat(m.y)),d.push("A ".concat(n.x," ").concat(n.y," 0 ").concat(0," ").concat(v," ").concat(b.x," ").concat(b.y)),d.push("L ".concat(u.x," ").concat(u.y))}else{m=et(n.x,n.y,r+(o/2>4?4:Math.max(o/2-1,0)),i);var x=a.x<n.x?1:-1;d.push("M ".concat(u.x," ").concat(u.y));var O=(a.y-n.y)/(a.x-n.x),j=(u.y-n.y)/(u.x-n.x);Math.abs(O-j)>Math.pow(Math.E,-16)&&d.push.apply(d,["C",u.x+4*x,u.y,2*m.x-a.x,2*m.y-a.y,a.x,a.y]),d.push("L ".concat(a.x," ").concat(a.y))}t.labelLine.path=d.join(" ")}}(t,l)}))}))}}})),zn("adjust-color",(function(t,e,n){if(0!==n.length){var r=n[0].get("element").geometry.theme,i=r.labels||{},o=i.fillColorLight,a=i.fillColorDark;n.forEach((function(t,n){var i=e[n].find((function(t){return"text"===t.get("type")})),c=lt.fromObject(t.getBBox()),l=lt.fromObject(i.getCanvasBBox()),u=!c.contains(l),h=function(t){var e=E.a.toRGB(t).toUpperCase();if(Fi[e])return Fi[e];var n=Object(s.e)(E.a.rgb2arr(e),3);return(299*n[0]+587*n[1]+114*n[2])/1e3<128}(t.attr("fill"));u?i.attr(r.overflowLabels.style):h?o&&i.attr("fill",o):a&&i.attr("fill",a)}))}})),zn("interval-adjust-position",(function(t,e,n){var r;if(0!==n.length){var i=null===(r=n[0])||void 0===r?void 0:r.get("element"),o=null==i?void 0:i.geometry;if(o&&"interval"===o.type)Ri(o,e,n)&&n.forEach((function(t,n){var r=e[n];!function(t,e,n){var r=t.coordinate,i=lt.fromObject(n.getBBox()),o=tr(e);r.isTransposed?o.attr({x:i.minX+i.width/2,textAlign:"center"}):o.attr({y:i.minY+i.height/2,textBaseline:"middle"})}(o,r,t)}))}})),zn("interval-hide-overlap",(function(t,e,n){var r;if(0!==n.length){var i=null===(r=n[0])||void 0===r?void 0:r.get("element"),o=null==i?void 0:i.geometry;if(o&&"interval"===o.type){var a,l=function(t){var e=[],n=Math.max(Math.floor(t.length/500),1);return Object(c.j)(t,(function(t,r){r%n==0?e.push(t):t.set("visible",!1)})),e}(e),u=Object(s.e)(o.getXYFields(),1)[0],h=[],d=[],f=Object(c.w)(l,(function(t){return t.get("data")[u]})),p=Object(c.ub)(Object(c.W)(l,(function(t){return t.get("data")[u]})));l.forEach((function(t){t.set("visible",!0)}));var g=function(t){t&&(t.length&&d.push(t.pop()),d.push.apply(d,Object(s.g)([],Object(s.e)(t),!1)))};for(Object(c.mb)(p)>0&&(a=p.shift(),g(f[a])),Object(c.mb)(p)>0&&(a=p.pop(),g(f[a])),Object(c.j)(p.reverse(),(function(t){g(f[t])}));d.length>0;){var v=d.shift();v.get("visible")&&(nr(v,h)?v.set("visible",!1):h.push(v))}}}})),zn("point-adjust-position",(function(t,e,n,r,i){var o,a;if(0!==n.length){var l=null===(o=n[0])||void 0===o?void 0:o.get("element"),u=null==l?void 0:l.geometry;if(u&&"point"===u.type){var h=Object(s.e)(u.getXYFields(),2),d=h[0],f=h[1],p=Object(c.w)(e,(function(t){return t.get("data")[d]})),g=[],v=i&&i.offset||(null===(a=t[0])||void 0===a?void 0:a.offset)||12;Object(c.W)(Object(c.T)(p).reverse(),(function(t){for(var e=function(t,e){var n=t.getXYFields()[1],r=[],i=e.sort((function(t,e){return t.get("data")[n]-t.get("data")[n]}));return i.length>0&&r.push(i.shift()),i.length>0&&r.push(i.pop()),r.push.apply(r,Object(s.g)([],Object(s.e)(i),!1)),r}(u,p[t]);e.length;){var n=e.shift(),r=tr(n);if(Ni(g,n,(function(t,e){return t.get("data")[d]===e.get("data")[d]&&t.get("data")[f]===e.get("data")[f]})))r.set("visible",!1);else{var i=!1;zi(g,n)&&(r.attr("y",r.attr("y")+2*v),i=zi(g,n)),i?r.set("visible",!1):g.push(n)}}}))}}})),zn("pie-spider",(function(t,e,n,r){var i,o,a=e[0]&&e[0].get("coordinate");if(a){var l=a.getCenter(),u=a.getRadius(),h={};try{for(var d=Object(s.i)(e),f=d.next();!f.done;f=d.next()){var p=f.value;h[p.get("id")]=p}}catch(t){i={error:t}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}var g=Object(c.s)(t[0],"labelHeight",14),v=Math.max(Object(c.s)(t[0],"offset",0),4);Object(c.j)(t,(function(t){if(t&&Object(c.s)(h,[t.id])){var e=t.x>l.x||t.x===l.x&&t.y>l.y,n=Object(c.K)(t.offsetX)?4:t.offsetX,r=et(l.x,l.y,u+4,t.angle),i=v+n;t.x=l.x+(e?1:-1)*(u+i),t.y=r.y}}));var y=a.start,m=a.end,b=Object(c.w)(t,(function(t){return t.x<l.x?"left":"right"})),x=2*(u+v)+g;Object(c.j)(b,(function(t){var e=t.length*g;e>x&&(x=Math.min(e,Math.abs(y.y-m.y)))}));var O={minX:y.x,maxX:m.x,minY:l.y-x/2,maxY:l.y+x/2};Object(c.j)(b,(function(t,e){var n=x/g;t.length>n&&(t.sort((function(t,e){return e.percent-t.percent})),Object(c.j)(t,(function(t,e){e>n&&(h[t.id].set("visible",!1),t.invisible=!0)}))),Oi(t,g,O)}));var j=O.minY,w=O.maxY;Object(c.j)(b,(function(t,e){var n="right"===e;Object(c.j)(t,(function(t){var e=Object(c.s)(h,t&&[t.id]);if(e)if(t.y<j||t.y>w)e.set("visible",!1);else{var r=e.getChildByIndex(0),i=r.getCanvasBBox(),o=n?i.x:i.maxX,s=i.y+i.height/2;Qn(r,t.x-o,t.y-s),t.labelLine&&function(t,e,n){var r,i=e.getCenter(),o=e.getRadius(),a={x:t.x-(n?4:-4),y:t.y},s=et(i.x,i.y,o+4,t.angle),l={x:a.x,y:a.y},u={x:s.x,y:s.y},h=et(i.x,i.y,o,t.angle);if(a.y!==s.y){var d=n?4:-4;l.y=a.y,t.angle<0&&t.angle>=-Math.PI/2&&(l.x=Math.max(s.x,a.x-d),a.y<s.y?u.y=l.y:(u.y=s.y,u.x=Math.max(u.x,l.x-d))),t.angle>0&&t.angle<Math.PI/2&&(l.x=Math.max(s.x,a.x-d),a.y>s.y?u.y=l.y:(u.y=s.y,u.x=Math.max(u.x,l.x-d))),t.angle>Math.PI/2&&(l.x=Math.min(s.x,a.x-d),a.y>s.y?u.y=l.y:(u.y=s.y,u.x=Math.min(u.x,l.x-d))),t.angle<-Math.PI/2&&(l.x=Math.min(s.x,a.x-d),a.y<s.y?u.y=l.y:(u.y=s.y,u.x=Math.min(u.x,l.x-d)))}r=["M ".concat(a.x,",").concat(a.y),"L ".concat(l.x,",").concat(l.y),"L ".concat(u.x,",").concat(u.y),"L ".concat(s.x,",").concat(s.y),"L ".concat(h.x,",").concat(h.y)].join(" "),t.labelLine=Object(c.h)({},t.labelLine,{path:r})}(t,a,n)}}))}))}})),zn("path-adjust-position",(function(t,e,n,r,i){var o,a;if(0!==n.length){var l=null===(o=n[0])||void 0===o?void 0:o.get("element"),u=null==l?void 0:l.geometry;if(u&&!(["path","line","area"].indexOf(u.type)<0)){var h=Object(s.e)(u.getXYFields(),2),d=h[0],f=h[1],p=Object(c.w)(e,(function(t){return t.get("data")[d]})),g=[],v=i&&i.offset||(null===(a=t[0])||void 0===a?void 0:a.offset)||12;Object(c.W)(Object(c.T)(p).reverse(),(function(t){for(var e=function(t,e){var n=t.getXYFields()[1],r=[],i=e.sort((function(t,e){return t.get("data")[n]-t.get("data")[n]}));return i.length>0&&r.push(i.shift()),i.length>0&&r.push(i.pop()),r.push.apply(r,Object(s.g)([],Object(s.e)(i),!1)),r}(u,p[t]);e.length;){var n=e.shift(),r=tr(n);if(Wi(g,n,(function(t,e){return t.get("data")[d]===e.get("data")[d]&&t.get("data")[f]===e.get("data")[f]})))r.set("visible",!1);else{var i=!1;$i(g,n)&&(r.attr("y",r.attr("y")+2*v),i=$i(g,n)),i?r.set("visible",!1):g.push(n)}}}))}}})),In("fade-in",(function(t,e,n){var r={fillOpacity:Object(c.K)(t.attr("fillOpacity"))?1:t.attr("fillOpacity"),strokeOpacity:Object(c.K)(t.attr("strokeOpacity"))?1:t.attr("strokeOpacity"),opacity:Object(c.K)(t.attr("opacity"))?1:t.attr("opacity")};t.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),t.animate(r,e)})),In("fade-out",(function(t,e,n){var r=e.easing,i=e.duration,o=e.delay;t.animate({fillOpacity:0,strokeOpacity:0,opacity:0},i,r,(function(){t.remove(!0)}),o)})),In("grow-in-x",(function(t,e,n){Yi(t,e,n.coordinate,n.minYPoint,"x")})),In("grow-in-xy",(function(t,e,n){Yi(t,e,n.coordinate,n.minYPoint,"xy")})),In("grow-in-y",(function(t,e,n){Yi(t,e,n.coordinate,n.minYPoint,"y")})),In("scale-in-x",(function(t,e,n){var r=t.getBBox(),i=t.get("origin").mappingData.points,o=i[0].y-i[1].y>0?r.maxX:r.minX,a=(r.minY+r.maxY)/2;t.applyToMatrix([o,a,1]);var s=R.a.transform(t.getMatrix(),[["t",-o,-a],["s",.01,1],["t",o,a]]);t.setMatrix(s),t.animate({matrix:R.a.transform(t.getMatrix(),[["t",-o,-a],["s",100,1],["t",o,a]])},e)})),In("scale-in-y",(function(t,e,n){var r=t.getBBox(),i=t.get("origin").mappingData,o=(r.minX+r.maxX)/2,a=i.points,s=a[0].y-a[1].y<=0?r.maxY:r.minY;t.applyToMatrix([o,s,1]);var c=R.a.transform(t.getMatrix(),[["t",-o,-s],["s",1,.01],["t",o,s]]);t.setMatrix(c),t.animate({matrix:R.a.transform(t.getMatrix(),[["t",-o,-s],["s",1,100],["t",o,s]])},e)})),In("wave-in",(function(t,e,n){var r=ft(n.coordinate,20),i=r.type,o=r.startState,a=r.endState,l=t.setClip({type:i,attrs:o});n.toAttrs&&t.attr(n.toAttrs),l.animate(a,Object(s.a)(Object(s.a)({},e),{callback:function(){t&&!t.get("destroyed")&&t.set("clipShape",null),l.remove(!0),Object(c.I)(e.callback)&&e.callback()}}))})),In("zoom-in",(function(t,e,n){Xi(t,e,"zoomIn")})),In("zoom-out",(function(t,e,n){Xi(t,e,"zoomOut")})),In("position-update",(function(t,e,n){var r=n.toAttrs,i=r.x,o=r.y;delete r.x,delete r.y,t.attr(r),t.animate({x:i,y:o},e)})),In("sector-path-update",(function(t,e,n){var r=n.toAttrs,i=n.coordinate,o=r.path||[],a=o.map((function(t){return t[0]}));if(!(o.length<1)){var l=Ki(o),u=l.startAngle,h=l.endAngle,d=l.radius,f=l.innerRadius,p=Ki(t.attr("path")),g=p.startAngle,v=p.endAngle,y=i.getCenter(),m=u-g,b=h-v;0!==m||0!==b?t.animate((function(t){var e=g+t*m,n=v+t*b;return Object(s.a)(Object(s.a)({},r),{path:Object(c.H)(a,["M","A","A","Z"])?rt(y.x,y.y,d,e,n):nt(y.x,y.y,d,e,n,f)})}),Object(s.a)(Object(s.a)({},e),{callback:function(){t.attr("path",o),Object(c.I)(e.callback)&&e.callback()}})):t.attr(r)}})),In("path-in",(function(t,e,n){var r=t.getTotalLength();t.attr("lineDash",[r]),t.animate((function(t){return{lineDashOffset:(1-t)*r}}),e)})),It("rect",eo),It("mirror",to),It("list",Qi),It("matrix",Ji),It("circle",Zi),It("tree",no),gn("axis",po),gn("legend",mo),gn("tooltip",Sn),gn("annotation",ao),gn("slider",bo),gn("scrollbar",xo),Lt("tooltip",Co),Lt("sibling-tooltip",_o),Lt("ellipsis-text",Mo),Lt("element-active",Io),Lt("element-single-active",Lo),Lt("element-range-active",To),Lt("element-highlight",Wo),Lt("element-highlight-by-x",Ho),Lt("element-highlight-by-color",$o),Lt("element-single-highlight",Vo),Lt("element-range-highlight",Yo),Lt("element-sibling-highlight",Yo,{effectSiblings:!0,effectByRecord:!0}),Lt("element-selected",Ko),Lt("element-single-selected",Xo),Lt("element-range-selected",Go),Lt("element-link-by-color",Ao),Lt("active-region",wo),Lt("list-active",qo),Lt("list-selected",Qo),Lt("list-highlight",Zo),Lt("list-unchecked",Jo),Lt("list-checked",ta),Lt("list-focus",ea),Lt("list-radio",ra),Lt("legend-item-highlight",Zo,{componentNames:["legend"]}),Lt("axis-label-highlight",Zo,{componentNames:["axis"]}),Lt("axis-description",$a),Lt("rect-mask",la),Lt("x-rect-mask",da,{dim:"x"}),Lt("y-rect-mask",da,{dim:"y"}),Lt("circle-mask",aa),Lt("path-mask",ga),Lt("smooth-path-mask",ba),Lt("rect-multi-mask",Oa),Lt("x-rect-multi-mask",ja,{dim:"x"}),Lt("y-rect-multi-mask",ja,{dim:"y"}),Lt("circle-multi-mask",wa),Lt("path-multi-mask",Ca),Lt("smooth-path-multi-mask",_a),Lt("cursor",Ma),Lt("data-filter",Sa),Lt("brush",ka),Lt("brush-x",ka,{dims:["x"]}),Lt("brush-y",ka,{dims:["y"]}),Lt("sibling-filter",Ia),Lt("sibling-x-filter",Ia,{dims:"x"}),Lt("sibling-y-filter",Ia,{dims:"y"}),Lt("element-filter",Aa),Lt("element-sibling-filter",Pa),Lt("element-sibling-filter-record",Pa,{byRecord:!0}),Lt("view-drag",Ba),Lt("view-move",La),Lt("scale-translate",Fa),Lt("scale-zoom",Ra),Lt("reset-button",Ta,{name:"reset-button",text:"reset"}),Lt("mousewheel-scroll",Wa),Ne("tooltip",{start:[{trigger:"plot:mousemove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseleave",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]}),Ne("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseout",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),Ne("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),Ne("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),Ne("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),Ne("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),Ne("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),Ne("legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","element-active:reset"]}]}),Ne("legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","element-highlight:reset"]}]}),Ne("axis-label-highlight",{start:[{trigger:"axis-label:mouseenter",action:["axis-label-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"axis-label:mouseleave",action:["axis-label-highlight:reset","element-highlight:reset"]}]}),Ne("element-list-highlight",{start:[{trigger:"element:mouseenter",action:["list-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"element:mouseleave",action:["list-highlight:reset","element-highlight:reset"]}]}),Ne("element-range-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(t){return!t.isInShape("mask")},action:["rect-mask:start","rect-mask:show"]},{trigger:"mask:dragstart",action:["rect-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:drag",action:["rect-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end"]},{trigger:"mask:dragend",action:["rect-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear","rect-mask:end","rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","rect-mask:hide"]}]}),Ne("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Ha,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:Ha,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:Ha,action:["brush:filter","brush:end","rect-mask:end","rect-mask:hide","reset-button:show"]}],rollback:[{trigger:"reset-button:click",action:["brush:reset","reset-button:hide","cursor:crosshair"]}]}),Ne("brush-visible",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"plot:mousedown",action:["rect-mask:start","rect-mask:show"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end","rect-mask:hide","element-filter:filter","element-range-highlight:clear"]}],rollback:[{trigger:"dblclick",action:["element-filter:clear"]}]}),Ne("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Ha,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:Ha,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:Ha,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),Ne("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Ha,action:"path-mask:start"},{trigger:"mousedown",isEnable:Ha,action:"path-mask:show"}],processing:[{trigger:"mousemove",action:"path-mask:addPoint"}],end:[{trigger:"mouseup",action:"path-mask:end"}],rollback:[{trigger:"dblclick",action:"path-mask:hide"}]}),Ne("brush-x-multi",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"mousedown",isEnable:Ha,action:["x-rect-multi-mask:start","x-rect-multi-mask:show"]},{trigger:"mask:dragstart",action:["x-rect-multi-mask:moveStart"]}],processing:[{trigger:"mousemove",isEnable:function(t){return!he(t)},action:["x-rect-multi-mask:resize"]},{trigger:"multi-mask:change",action:"element-range-highlight:highlight"},{trigger:"mask:drag",action:["x-rect-multi-mask:move"]}],end:[{trigger:"mouseup",action:["x-rect-multi-mask:end"]},{trigger:"mask:dragend",action:["x-rect-multi-mask:moveEnd"]}],rollback:[{trigger:"dblclick",action:["x-rect-multi-mask:clear","cursor:crosshair"]},{trigger:"multi-mask:clearAll",action:["element-range-highlight:clear"]},{trigger:"multi-mask:clearSingle",action:["element-range-highlight:highlight"]}]}),Ne("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),Ne("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:["cursor:pointer","list-radio:show"]},{trigger:"legend-item:mouseleave",action:["cursor:default","list-radio:hide"]}],start:[{trigger:"legend-item:click",isEnable:function(t){return!t.isInShape("legend-item-radio")},action:["legend-item-highlight:reset","element-highlight:reset","list-unchecked:toggle","data-filter:filter","list-radio:show"]},{trigger:"legend-item-radio:mouseenter",action:["list-radio:showTip"]},{trigger:"legend-item-radio:mouseleave",action:["list-radio:hideTip"]},{trigger:"legend-item-radio:click",action:["list-focus:toggle","data-filter:filter","list-radio:show"]}]}),Ne("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),Ne("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),Ne("legend-visible-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["legend-item-highlight:reset","element-highlight:reset","list-unchecked:toggle","element-filter:filter"]}]}),Ne("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),Ne("axis-description",{start:[{trigger:"axis-description:mousemove",action:"axis-description:show"}],end:[{trigger:"axis-description:mouseleave",action:"axis-description:hide"}]}),Ne("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(t){return Ya(t.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(t){return!Ya(t.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),Ne("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),Ne("plot-mousewheel-scroll",{start:[{trigger:"plot:mousewheel",action:"mousewheel-scroll:scroll"}]});var Va,Ga=["type","alias","tickCount","tickInterval","min","max","nice","minLimit","maxLimit","range","tickMethod","base","exponent","mask","sync"];!function(t){t.ERROR="error",t.WARN="warn",t.INFO="log"}(Va||(Va={}));var Ka="AntV/G2Plot";function Xa(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=0;return"".concat(Ka,": ").concat(t.replace(/%s/g,(function(){return"".concat(e[r++])})))}function Ua(t,e,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];e||console[t](Xa.apply(void 0,Object(s.g)([n],r,!1)))}function qa(t,e){var n={};return null!==t&&"object"==typeof t&&e.forEach((function(e){var r=t[e];void 0!==r&&(n[e]=r)})),n}function Za(t,e){if(!t)return{};var n=t.filter((function(t){var n=Object(c.s)(t,[e]);return Object(c.M)(n)&&!isNaN(n)})),r=n.every((function(t){return Object(c.s)(t,[e])>=0})),i=n.every((function(t){return Object(c.s)(t,[e])<=0}));return r?{min:0}:i?{max:0}:{}}function Qa(t,e,n,r,i){if(void 0===i&&(i=[]),!Array.isArray(t))return{nodes:[],links:[]};var o=[],a={},c=-1;return t.forEach((function(t){var l=t[e],u=t[n],h=t[r],d=qa(t,i);a[l]||(a[l]=Object(s.a)({id:++c,name:l},d)),a[u]||(a[u]=Object(s.a)({id:++c,name:u},d)),o.push(Object(s.a)({source:a[l].id,target:a[u].id,value:h},d))})),{nodes:Object.values(a).sort((function(t,e){return t.id-e.id})),links:o}}function Ja(t,e){var n=Object(c.l)(t,(function(t){var n=t[e];return null===n||"number"==typeof n&&!isNaN(n)}));return Ua(Va.WARN,n.length===t.length,"illegal data existed in chart data."),n}var ts,es={}.toString,ns=function(t,e){return es.call(t)==="[object "+e+"]"},rs=function(t){return ns(t,"Array")},is=function(t){if(!function(t){return"object"==typeof t&&null!==t}(t)||!ns(t,"Object"))return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},os=function(t,e,n,r){for(var i in n=n||0,r=r||5,e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=e[i];o?is(o)?(is(t[i])||(t[i]={}),n<r?os(t[i],o,n+1,r):t[i]=e[i]):rs(o)?(t[i]=[],t[i]=t[i].concat(o)):t[i]=o:t[i]=o}},as=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)os(t,e[r]);return t};function ss(t){if(!t)return{width:0,height:0};var e=getComputedStyle(t);return{width:(t.clientWidth||parseInt(e.width,10))-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10),height:(t.clientHeight||parseInt(e.height,10))-parseInt(e.paddingTop,10)-parseInt(e.paddingBottom,10)}}function cs(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return t.reduce((function(t,e){return e(t)}),e)}}function ls(t,e){return t.geometries.find((function(t){return t.type===e}))}function us(t){return Object(c.ib)(t.geometries,(function(t,e){return t.concat(e.elements)}),[])}function hs(t){return Object(c.s)(t,["views","length"],0)<=0?us(t):Object(c.ib)(t.views,(function(t,e){return t.concat(hs(e))}),us(t))}function ds(t){return t?t.match(/(([A-Z]{0,1}[a-z]*[^A-Z])|([A-Z]{1}))/g).map((function(t){return t.toLowerCase()})).join("-"):t}function fs(t){if(!Object(c.R)(t,"Object"))return t;var e=Object(s.a)({},t);return e.formatter&&!e.content&&(e.content=e.formatter),e}Object(c.ab)((function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,i=void 0===r?"sans-serif":r,o=e.fontWeight,a=e.fontStyle,s=e.fontVariant,l=(ts||(ts=document.createElement("canvas").getContext("2d")),ts);return l.font=[a,o,s,"".concat(n,"px"),i].join(" "),l.measureText(Object(c.Q)(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),Object(s.g)([t],Object(c.xb)(e),!0).join("")}));function ps(t){return"number"==typeof t&&!isNaN(t)}function gs(t){if(Object(c.M)(t))return[t,t,t,t];if(Object(c.C)(t)){var e=t.length;if(1===e)return[t[0],t[0],t[0],t[0]];if(2===e)return[t[0],t[1],t[0],t[1]];if(3===e)return[t[0],t[1],t[2],t[1]];if(4===e)return t}return[0,0,0,0]}function vs(t,e,n){void 0===e&&(e="bottom"),void 0===n&&(n=25);var r=gs(t),i=[e.startsWith("top")?n:0,e.startsWith("right")?n:0,e.startsWith("bottom")?n:0,e.startsWith("left")?n:0];return[r[0]+i[0],r[1]+i[1],r[2]+i[2],r[3]+i[3]]}function ys(t){var e=t.map((function(t){return gs(t)})),n=[0,0,0,0];return e.length>0&&(n=n.map((function(t,n){return e.forEach((function(r,i){t+=e[i][n]})),t}))),n}function ms(t,e,n){for(var r=!!e,i=[],o=0,a=t.length;o<a;o+=2)i.push([t[o],t[o+1]]);var s,c,l,u=function(t,e,n,r){var i,o,a,s,c=[],l=!!r;if(l){a=[1/0,1/0],s=[-1/0,-1/0];for(var u=0,h=t.length;u<h;u++){var d=t[u];a=R.c.min([0,0],a,d),s=R.c.max([0,0],s,d)}a=R.c.min([0,0],a,r[0]),s=R.c.max([0,0],s,r[1])}u=0;for(var f=t.length;u<f;u++){d=t[u];if(n)i=t[u?u-1:f-1],o=t[(u+1)%f];else{if(0===u||u===f-1){c.push(d);continue}i=t[u-1],o=t[u+1]}var p=[0,0];p=R.c.sub(p,o,i),p=R.c.scale(p,p,e);var g=R.c.distance(d,i),v=R.c.distance(d,o),y=g+v;0!==y&&(g/=y,v/=y);var m=R.c.scale([0,0],p,-g),b=R.c.scale([0,0],p,v),x=R.c.add([0,0],d,m),O=R.c.add([0,0],d,b);l&&(x=R.c.max([0,0],x,a),x=R.c.min([0,0],x,s),O=R.c.max([0,0],O,a),O=R.c.min([0,0],O,s)),c.push(x),c.push(O)}return n&&c.push(c.shift()),c}(i,.4,r,n),h=i.length,d=[];for(o=0;o<h-1;o++)s=u[2*o],c=u[2*o+1],l=i[o+1],d.push(["C",s[0],s[1],c[0],c[1],l[0],l[1]]);return r&&(s=u[h],c=u[h+1],l=i[0],d.push(["C",s[0],s[1],c[0],c[1],l[0],l[1]])),d}function bs(t){var e={overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis",display:"flex",justifyContent:"center",alignItems:"center"},n=["stroke","lineWidth","shadowColor","strokeOpacity","shadowBlur","shadowOffsetX","shadowOffsetY","fill"];Object(c.s)(t,"fill")&&(e.color=t.fill);var r=qa(t,n),i=r.shadowColor,o=r.shadowBlur,a=void 0===o?0:o,s=r.shadowOffsetX,l=void 0===s?0:s,u=r.shadowOffsetY,h=void 0===u?0:u;e["text-shadow"]="".concat([i,"".concat(l,"px"),"".concat(h,"px"),"".concat(a,"px")].join(" "));var d=qa(t,n),f=d.stroke,p=d.lineWidth,g=void 0===p?0:p;return e["-webkit-text-stroke"]="".concat(["".concat(g,"px"),f].join(" ")),Object(c.j)(t,(function(t,r){["fontSize"].includes(r)&&Object(c.M)(t)?e[ds(r)]="".concat(t,"px"):r&&!n.includes(r)&&(e[ds(r)]="".concat(t))})),e}function xs(t,e){t.style["pointer-events"]="none",Object(c.j)(e,(function(e,n){n&&e&&(t.style[n]=e)}))}var Os=function(t,e,n){var r=e.statistic,i=e.plotType,o=r.title,a=r.content;[o,a].forEach((function(e,r){if(e){var l="";l=0===r?a?"translate(-50%, -100%)":"translate(-50%, -50%)":o?"translate(-50%, 0)":"translate(-50%, -50%)";var u=Object(c.I)(e.style)?e.style(n):e.style;t.annotation().html(Object(s.a)({position:["50%","50%"],html:function(t,r){var o=r.getCoordinate(),a=0;if("pie"===i||"ring-progress"===i)a=o.getRadius()*o.innerRadius*2;else if("liquid"===i){var h=Object(c.s)(r.geometries,[0,"elements",0,"shape"]);if(h)a=h.find((function(t){return"wrap"===t.get("name")})).getCanvasBBox().width}else a||(a=o.getWidth());xs(t,Object(s.a)({width:"".concat(a,"px"),transform:l},bs(u)));var d=r.getData();if(e.customHtml)return e.customHtml(t,r,n,d);var f=e.content;return e.formatter&&(f=e.formatter(n,d)),f?Object(c.Q)(f)?f:"".concat(f):"<div></div>"},key:"".concat(0===r?"top":"bottom","-statistic")},qa(e,["offsetX","offsetY","rotate","style","formatter"])))}}))};function js(t,e){return e?Object(c.ib)(e,(function(t,e,n){return t.replace(new RegExp("{\\s*".concat(n,"\\s*}"),"g"),e)}),t):t}function ws(t,e){return t.views.find((function(t){return t.id===e}))}function Cs(t){var e=t.parent;return e?e.views:[]}function _s(t){return Cs(t).filter((function(e){return e!==t}))}function Ms(t,e,n){void 0===n&&(n=t.geometries),"boolean"==typeof e?t.animate(e):t.animate(!0),Object(c.j)(n,(function(t){var n;n=Object(c.I)(e)?e(t.type||t.shapeType,t)||!0:e,t.animate(n)}))}function Ss(){return"object"==typeof window?null===window||void 0===window?void 0:window.devicePixelRatio:2}function Es(t,e){void 0===e&&(e=t);var n=document.createElement("canvas"),r=Ss();return n.width=t*r,n.height=e*r,n.style.width="".concat(t,"px"),n.style.height="".concat(e,"px"),n.getContext("2d").scale(r,r),n}function ks(t,e,n,r){void 0===r&&(r=n);var i=e.backgroundColor,o=e.opacity;t.globalAlpha=o,t.fillStyle=i,t.beginPath(),t.fillRect(0,0,n,r),t.closePath()}function Is(t,e,n){var r=t+e;return n?2*r:r}function As(t,e){return e?[[t*(1/4),t*(1/4)],[t*(3/4),t*(3/4)]]:[[.5*t,.5*t]]}function Ps(t,e){var n=e*Math.PI/180;return{a:Math.cos(n)*(1/t),b:Math.sin(n)*(1/t),c:-Math.sin(n)*(1/t),d:Math.cos(n)*(1/t),e:0,f:0}}var Ts={size:6,padding:2,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0,isStagger:!0};function Bs(t,e,n,r){var i=e.size,o=e.fill,a=e.lineWidth,s=e.stroke,c=e.fillOpacity;t.beginPath(),t.globalAlpha=c,t.fillStyle=o,t.strokeStyle=s,t.lineWidth=a,t.arc(n,r,i/2,0,2*Math.PI,!1),t.fill(),a&&t.stroke(),t.closePath()}var Ls={rotation:45,spacing:5,opacity:1,backgroundColor:"transparent",strokeOpacity:.5,stroke:"#fff",lineWidth:2};function Ds(t){var e=as({},Ls,t),n=e.spacing,r=e.rotation,i=e.lineWidth,o=n+i||1,a=n+i||1,s="\n M 0 0 L ".concat(o," 0\n M 0 ").concat(a," L ").concat(o," ").concat(a,"\n "),c=Es(o,a),l=c.getContext("2d");ks(l,e,o,a),function(t,e,n){var r=e.stroke,i=e.lineWidth,o=e.strokeOpacity,a=new Path2D(n);t.globalAlpha=o,t.lineCap="square",t.strokeStyle=i?r:"transparent",t.lineWidth=i,t.stroke(a)}(l,e,s);var u=l.createPattern(c,"repeat");if(u){var h=Ps(Ss(),r);u.setTransform(h)}return u}var Fs={size:6,padding:1,isStagger:!0,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0};function Rs(t,e,n,r){var i=e.stroke,o=e.size,a=e.fill,s=e.lineWidth,c=e.fillOpacity;t.globalAlpha=c,t.strokeStyle=i,t.lineWidth=s,t.fillStyle=a,t.strokeRect(n-o/2,r-o/2,o,o),t.fillRect(n-o/2,r-o/2,o,o)}function Ns(t){var e,n=t.type,r=t.cfg;switch(n){case"dot":e=function(t){var e=as({},Ts,t),n=e.size,r=e.padding,i=e.isStagger,o=e.rotation,a=Is(n,r,i),s=As(a,i),c=Es(a,a),l=c.getContext("2d");ks(l,e,a);for(var u=0,h=s;u<h.length;u++){var d=h[u];Bs(l,e,d[0],d[1])}var f=l.createPattern(c,"repeat");if(f){var p=Ps(Ss(),o);f.setTransform(p)}return f}(r);break;case"line":e=Ds(r);break;case"square":e=function(t){var e=as({},Fs,t),n=e.size,r=e.padding,i=e.isStagger,o=e.rotation,a=Is(n,r,i),s=As(a,i),c=Es(a,a),l=c.getContext("2d");ks(l,e,a);for(var u=0,h=s;u<h.length;u++){var d=h[u];Rs(l,e,d[0],d[1])}var f=l.createPattern(c,"repeat");if(f){var p=Ps(Ss(),o);f.setTransform(p)}return f}(r)}return e}function zs(t){var e=this;return function(n){var r,i=n.options,o=n.chart,a=i.pattern;if(!a)return n;return as({},n,{options:(r={},r[t]=function(n){for(var r,l,u,h=[],d=1;d<arguments.length;d++)h[d-1]=arguments[d];var f=o.getTheme().defaultColor,p=f,g=null===(l=null===(r=o.geometries)||void 0===r?void 0:r[0])||void 0===l?void 0:l.getAttribute("color");if(g){var v=g.getFields()[0],y=Object(c.s)(n,v);p=_r.getMappingValue(g,y,(null===(u=g.values)||void 0===u?void 0:u[0])||f)}var m=a;"function"==typeof a&&(m=a.call(e,n,p)),m instanceof CanvasPattern==!1&&(m=Ns(as({},{cfg:{backgroundColor:p}},m)));var b=i[t];return Object(s.a)(Object(s.a)({},"function"==typeof b?b.call.apply(b,Object(s.g)([e,n],h,!1)):b||{}),{fill:m||p})},r)})}}function Ws(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField,o=n.seriesField;return!1===r?e.legend(!1):(i||o)&&e.legend(i||o,r),t}function $s(t){var e=t.chart,n=t.options.tooltip;return void 0!==n&&e.tooltip(n),t}function Hs(t){var e=t.chart,n=t.options.interactions;return Object(c.j)(n,(function(t){!1===t.enable?e.removeInteraction(t.type):e.interaction(t.type,t.cfg||{})})),t}function Ys(t){return Ms(t.chart,t.options.animation),t}function Vs(t){var e=t.chart,n=t.options.theme;return n&&e.theme(n),t}function Gs(t){var e=t.chart,n=t.options.state;return n&&Object(c.j)(e.geometries,(function(t){t.state(n)})),t}function Ks(t){var e=t.chart,n=t.options.slider;return e.option("slider",n),t}function Xs(t){var e=t.chart,n=t.options.scrollbar;return e.option("scrollbar",n),t}function Us(t,e){return function(n){var r=n.chart,i=n.options,o={};return Object(c.j)(t,(function(t,e){o[e]=qa(t,Ga)})),o=as({},e,i.meta,o),r.scale(o),n}}function qs(t){return function(e){var n=e.chart,r=e.options,i=n.getController("annotation");return Object(c.j)(Object(s.g)(Object(s.g)([],r.annotations||[],!0),t||[],!0),(function(t){i.annotation(t)})),e}}function Zs(t){var e=t.chart,n=t.options,r=n.yAxis,i=n.limitInPlot,o=i;return Object(c.O)(r)&&Object(c.K)(i)&&(o=!!Object.values(qa(r,["min","max","minLimit","maxLimit"])).some((function(t){return!Object(c.K)(t)}))),e.limitInPlot=o,t}function Qs(t){return void 0===t&&(t="rect"),function(e){var n=e.chart,r=e.options.coordinate,i=Array.from(r||[]).map((function(t){return"reflectX"===t.type?["reflect","x"]:"reflectY"===t.type?["reflect","y"]:"transpose"===t.type?["transpose"]:null})).filter((function(t){return!!t}));return 0!==i.length&&n.coordinate({type:t,actions:i}),e}}var Js={locale:"en-US"};var tc={};function ec(t,e){tc[t]=e}function nc(t){return{get:function(e,n){return js(Object(c.s)(tc[t],e)||Object(c.s)(tc[Js.locale],e)||Object(c.s)(tc["en-US"],e)||e,n)}}}function rc(t,e){if(!1===t)return{fields:!1};var n=Object(c.s)(t,"fields"),r=Object(c.s)(t,"formatter");return r&&!n&&(n=e),{fields:n,formatter:r}}function ic(t,e){var n=t.type,r=t.xField,i=t.yField,o=t.colorField,a=t.shapeField,l=t.sizeField,u=t.styleField,h=t.rawFields,d=[];if(h=(Object(c.I)(h)?h(n,e):h)||[],"color"===e)d=Object(s.g)([o||r],h,!0);else if("shape"===e)d=Object(s.g)([a||r],h,!0);else if("size"===e)d=Object(s.g)([l||r],h,!0);else{d=Object(s.g)([r,i,o,a,l,u],h,!0);var f=["x","y","color","shape","size","style"].indexOf(e),p=d[f];d.splice(f,1),d.unshift(p)}var g=Object(c.ub)(d.filter((function(t){return!!t}))),v="line"===n&&[r,i].includes(g.join("*"))?"":g.join("*");return{mappingFields:g,tileMappingField:v}}function oc(t,e){if(e)return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i={};return t.forEach((function(t,e){i[t]=n[e]})),delete i[void 0],e(i)}}function ac(t){var e=t.chart,n=t.options,r=n.type,i=n.args,o=n.mapping,a=n.xField,l=n.yField,u=n.colorField,h=n.shapeField,d=n.sizeField,f=n.tooltipFields,p=n.label,g=n.state,v=n.customInfo;if(!o)return t;var y=o.color,m=o.shape,b=o.size,x=o.style,O=o.tooltip,j=e[r](i).position("".concat(a,"*").concat(l));if(Object(c.Q)(y))u?j.color(u,y):j.color(y);else if(Object(c.I)(y)){var w=ic(n,"color"),C=w.mappingFields,_=w.tileMappingField;j.color(_,oc(C,y))}else u&&j.color(u,y);if(Object(c.Q)(m))h?j.shape(h,[m]):j.shape(m);else if(Object(c.I)(m)){var M=ic(n,"shape");C=M.mappingFields,_=M.tileMappingField;j.shape(_,oc(C,m))}else h&&j.shape(h,m);if(Object(c.M)(b))d?j.size(d,b):j.size(b);else if(Object(c.I)(b)){var S=ic(n,"size");C=S.mappingFields,_=S.tileMappingField;j.size(_,oc(C,b))}else d&&j.size(d,b);if(Object(c.I)(x)){var E=ic(n,"style");C=E.mappingFields,_=E.tileMappingField;j.style(_,oc(C,x))}else Object(c.O)(x)&&j.style(x);if(!1===f?j.tooltip(!1):Object(c.G)(f)||j.tooltip(f.join("*"),oc(f,O)),!1===p)j.label(!1);else if(p){var k=p.callback,I=p.fields,A=Object(s.f)(p,["callback","fields"]);j.label({fields:I||[l],callback:k,cfg:fs(A)})}return g&&j.state(g),v&&j.customInfo(v),[a,l].filter((function(t){return t!==u})).forEach((function(t){e.legend(t,!1)})),Object(s.a)(Object(s.a)({},t),{ext:{geometry:j}})}function sc(t){var e=t.options,n=e.area,r=e.xField,i=e.yField,o=e.seriesField,a=e.smooth,s=e.tooltip,l=e.useDeferredLabel,u=rc(s,[r,i,o]),h=u.fields,d=u.formatter;return n?ac(as({},t,{options:{type:"area",colorField:o,tooltipFields:h,mapping:Object(c.h)({shape:a?"smooth":"area",tooltip:d},n),args:{useDeferredLabel:l}}})):t}function cc(t){var e=t.options,n=e.edge,r=e.xField,i=e.yField,o=e.seriesField,a=e.tooltip,c=e.useDeferredLabel,l=rc(a,[r,i,o]),u=l.fields,h=l.formatter;return n?ac(as({},t,{options:{type:"edge",colorField:o,tooltipFields:u,mapping:Object(s.a)({tooltip:h},n),args:{useDeferredLabel:c}}})):t}function lc(t){var e=t.options,n=e.xField,r=e.yField,i=e.interval,o=e.seriesField,a=e.tooltip,l=e.minColumnWidth,u=e.maxColumnWidth,h=e.columnBackground,d=e.dodgePadding,f=e.intervalPadding,p=e.useDeferredLabel,g=rc(a,[n,r,o]),v=g.fields,y=g.formatter,m=(i?ac(as({},t,{options:{type:"interval",colorField:o,tooltipFields:v,mapping:Object(s.a)({tooltip:y},i),args:{dodgePadding:d,intervalPadding:f,minColumnWidth:l,maxColumnWidth:u,background:h,useDeferredLabel:p}}})):t).ext;return function(t){var e=t.chart,n=t.options,r=t.ext,i=n.seriesField,o=n.isGroup,a=n.isStack,s=n.marginRatio,l=n.widthRatio,u=n.groupField,h=n.theme,d=[];return i&&(o&&d.push({type:"dodge",dodgeBy:u||i,marginRatio:s}),a&&d.push({type:"stack",marginRatio:s})),d.length&&(null==r?void 0:r.geometry)&&(null==r?void 0:r.geometry).adjust(d),Object(c.K)(l)||e.theme(as({},Object(c.O)(h)?h:nn(h),{columnWidthRatio:l})),t}(Object(s.a)(Object(s.a)({},t),{ext:m}))}function uc(t){var e=t.options,n=e.line,r=e.stepType,i=e.xField,o=e.yField,a=e.seriesField,s=e.smooth,l=e.connectNulls,u=e.tooltip,h=e.useDeferredLabel,d=rc(u,[i,o,a]),f=d.fields,p=d.formatter;return n?ac(as({},t,{options:{type:"line",colorField:a,tooltipFields:f,mapping:Object(c.h)({shape:r||(s?"smooth":"line"),tooltip:p},n),args:{connectNulls:l,useDeferredLabel:h}}})):t}function hc(t){var e=t.options,n=e.point,r=e.xField,i=e.yField,o=e.seriesField,a=e.sizeField,c=e.shapeField,l=e.tooltip,u=e.useDeferredLabel,h=rc(l,[r,i,o,a,c]),d=h.fields,f=h.formatter;return n?ac(as({},t,{options:{type:"point",colorField:o,shapeField:c,tooltipFields:d,mapping:Object(s.a)({tooltip:f},n),args:{useDeferredLabel:u}}})):t}function dc(t){var e=t.options,n=e.polygon,r=e.xField,i=e.yField,o=e.seriesField,a=e.tooltip,c=e.useDeferredLabel,l=rc(a,[r,i,o]),u=l.fields,h=l.formatter;return n?ac(as({},t,{options:{type:"polygon",colorField:o,tooltipFields:u,mapping:Object(s.a)({tooltip:h},n),args:{useDeferredLabel:c}}})):t}function fc(t){var e=t.options,n=e.schema,r=e.xField,i=e.yField,o=e.seriesField,a=e.tooltip,c=e.useDeferredLabel,l=rc(a,[r,i,o]),u=l.fields,h=l.formatter;return n?ac(as({},t,{options:{type:"schema",colorField:o,tooltipFields:u,mapping:Object(s.a)({tooltip:h},n),args:{useDeferredLabel:c}}})):t}var pc=n(702),gc=["padding","appendPadding","renderer","pixelRatio","syncViewPadding","supportCSSTransform","limitInPlot"],vc=function(t){function e(e,n){var r=t.call(this)||this;return r.container="string"==typeof e?document.getElementById(e):e,r.options=as({},r.getDefaultOptions(),n),r.createG2(),r.bindEvents(),r}return Object(s.c)(e,t),e.getDefaultOptions=function(){return{renderer:"canvas",xAxis:{nice:!0,label:{autoRotate:!1,autoHide:{type:"equidistance",cfg:{minGap:6}}}},yAxis:{nice:!0,label:{autoHide:!0,autoRotate:!1}},animation:!0}},e.prototype.createG2=function(){var t=this.options,e=t.width,n=t.height,r=t.defaultInteractions;this.chart=new _n(Object(s.a)(Object(s.a)(Object(s.a)(Object(s.a)({container:this.container,autoFit:!1},this.getChartSize(e,n)),{localRefresh:!1}),qa(this.options,gc)),{defaultInteractions:r})),this.container.setAttribute("data-chart-source-type","G2Plot")},e.prototype.getChartSize=function(t,e){var n=ss(this.container);return{width:t||n.width||400,height:e||n.height||400}},e.prototype.bindEvents=function(){var t=this;this.chart&&this.chart.on("*",(function(e){(null==e?void 0:e.type)&&t.emit(e.type,e)}))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.render=function(){this.chart.clear(),this.chart.options={data:[],animate:!0},this.chart.views=[],this.execAdaptor(),this.chart.render(),this.bindSizeSensor()},e.prototype.update=function(t){this.updateOption(t),this.render()},e.prototype.updateOption=function(t){this.options=as({},this.options,t)},e.prototype.setState=function(t,e,n){void 0===n&&(n=!0);var r=hs(this.chart);Object(c.j)(r,(function(r){e(r.getData())&&r.setState(t,n)}))},e.prototype.getStates=function(){var t=hs(this.chart),e=[];return Object(c.j)(t,(function(t){var n=t.getData(),r=t.getStates();Object(c.j)(r,(function(r){e.push({data:n,state:r,geometry:t.geometry,element:t})}))})),e},e.prototype.changeData=function(t){this.update({data:t})},e.prototype.changeSize=function(t,e){this.chart.changeSize(t,e)},e.prototype.addAnnotations=function(t,e){e=e||this.chart;var n=Object(s.g)([],t,!0),r=e.getController("annotation"),i=r.getComponents().map((function(t){return t.extra}));r.clear(!0);for(var o=function(t){var e=i[t],o=n.findIndex((function(t){return t.id&&t.id===e.id}));-1!==o&&(e=as({},e,n[o]),n.splice(o,1)),r.annotation(e)},a=0;a<i.length;a++)o(a);n.forEach((function(t){return r.annotation(t)})),e.render(!0)},e.prototype.removeAnnotations=function(t){var e=this.chart.getController("annotation"),n=e.getComponents().map((function(t){return t.extra}));e.clear(!0);for(var r=function(r){var i=n[r];t.find((function(t){return t.id&&t.id===i.id}))||e.annotation(i)},i=0;i<n.length;i++)r(i);this.chart.render(!0)},e.prototype.destroy=function(){this.unbindSizeSensor(),this.chart.destroy(),this.off(),this.container.removeAttribute("data-chart-source-type")},e.prototype.execAdaptor=function(){var t=this.getSchemaAdaptor(),e=this.options,n=e.padding,r=e.appendPadding;this.chart.padding=n,this.chart.appendPadding=r,t({chart:this.chart,options:this.options})},e.prototype.triggerResize=function(){this.chart.forceFit()},e.prototype.bindSizeSensor=function(){var t=this;if(!this.unbind){var e=this.options.autoFit;(void 0===e||e)&&(this.unbind=Object(pc.bind)(this.container,(function(){var e=ss(t.container),n=e.width,r=e.height;n===t.chart.width&&r===t.chart.height||t.triggerResize()})))}},e.prototype.unbindSizeSensor=function(){this.unbind&&(this.unbind(),this.unbind=void 0)},e}(j.a);function yc(t,e,n,r){var i=Object(c.ib)(t,(function(t,r){var i=r[n],o=t.has(i)?t.get(i):0,a=r[e];return o=ps(a)?o+a:o,t.set(i,o),t}),new Map);return Object(c.W)(t,(function(t){var o,a=t[e],c=t[n],l=ps(a)&&0!==i.get(c)?a/i.get(c):0;return Object(s.a)(Object(s.a)({},t),((o={})[r]=l,o))}))}function mc(t,e,n,r,i){return i?yc(t,e,n,r):t}function bc(t){var e=t.chart,n=t.options,r=n.data,i=n.color,o=n.lineStyle,a=n.lineShape,c=n.point,l=n.area,u=n.seriesField,h=null==c?void 0:c.state,d=null==l?void 0:l.state;e.data(r);var f=as({},t,{options:{shapeField:u,line:{color:i,style:o,shape:a},point:c&&Object(s.a)({color:i,shape:"circle"},c),area:l&&Object(s.a)({color:i},l),label:void 0}}),p=as({},f,{options:{tooltip:!1,state:h}}),g=as({},f,{options:{tooltip:!1,state:d}});return uc(f),hc(p),sc(g),t}function xc(t){var e,n,r=t.options,i=r.xAxis,o=r.yAxis,a=r.xField,s=r.yField,c=r.data;return cs(Us(((e={})[a]=i,e[s]=o,e),((n={})[a]={type:"cat"},n[s]=Za(c,s),n)))(t)}function Oc(t){var e=t.chart,n=t.options.reflect;if(n){var r=n;Object(c.C)(r)||(r=[r]);var i=r.map((function(t){return["reflect",t]}));e.coordinate({type:"rect",actions:i})}return t}function jc(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(a,!1):e.axis(a,i),t}function wc(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField;return r&&i?e.legend(i,r):!1===r&&e.legend(!1),t}function Cc(t){var e=t.chart,n=t.options,r=n.label,i=n.yField,o=ls(e,"line");if(r){var a=r.fields,c=r.callback,l=Object(s.f)(r,["fields","callback"]);o.label({fields:a||[i],callback:c,cfg:Object(s.a)({layout:[{type:"limit-in-plot"},{type:"path-adjust-position"},{type:"point-adjust-position"},{type:"limit-in-plot",cfg:{action:"hide"}}]},fs(l))})}else o.label(!1);return t}function _c(t){var e=t.chart;return t.options.isStack&&Object(c.j)(e.geometries,(function(t){t.adjust("stack")})),t}function Mc(t){return cs(bc,xc,_c,Vs,Oc,jc,wc,$s,Cc,Ks,Xs,Hs,Ys,qs(),Zs)(t)}function Sc(t){var e=t.chart,n=t.options,r=n.data,i=n.areaStyle,o=n.areaShape,a=n.color,l=n.point,u=n.line,h=n.isPercent,d=n.xField,f=n.yField,p=n.tooltip,g=n.seriesField,v=n.startOnZero,y=null==l?void 0:l.state,m=mc(r,f,d,f,h);e.data(m);var b=h?Object(s.a)({formatter:function(t){return{name:t[g]||t[d],value:(100*Number(t[f])).toFixed(2)+"%"}}},p):p,x=as({},t,{options:{area:{color:a,style:i,shape:o},point:l&&Object(s.a)({color:a},l),tooltip:b,label:void 0,args:{startOnZero:v}}}),O={chart:e,options:as({line:{size:2}},Object(c.gb)(n,["state"]),{line:u&&Object(s.a)({color:a},u),sizeField:g,state:null==u?void 0:u.state,tooltip:!1,label:void 0,args:{startOnZero:v}})},j=as({},x,{options:{tooltip:!1,state:y}});return sc(x),uc(O),hc(j),t}function Ec(t){var e=t.chart,n=t.options,r=n.label,i=n.yField,o=ls(e,"area");if(r){var a=r.fields,c=r.callback,l=Object(s.f)(r,["fields","callback"]);o.label({fields:a||[i],callback:c,cfg:Object(s.a)({layout:[{type:"limit-in-plot"},{type:"path-adjust-position"},{type:"point-adjust-position"},{type:"limit-in-plot",cfg:{action:"hide"}}]},fs(l))})}else o.label(!1);return t}function kc(t){var e=t.chart,n=t.options,r=n.isStack,i=n.isPercent,o=n.seriesField;return(i||r)&&o&&Object(c.j)(e.geometries,(function(t){t.adjust("stack")})),t}function Ic(t){return cs(Vs,zs("areaStyle"),Qs("rect"),Sc,xc,kc,jc,wc,$s,Ec,Ks,qs(),Hs,Ys,Zs)(t)}var Ac=as({},vc.getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},isStack:!0,line:{},legend:{position:"top-left",radio:{}}}),Pc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",e}return Object(s.c)(e,t),e.getDefaultOptions=function(){return Ac},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options,n=e.isPercent,r=e.xField,i=e.yField;xc({chart:this.chart,options:this.options}),this.chart.changeData(mc(t,i,r,i,n))},e.prototype.getSchemaAdaptor=function(){return Ic},e}(vc),Tc={padding:[8,10],text:"reset",textStyle:{default:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"}},buttonStyle:{default:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},active:{fill:"#e6e6e6"}}};function Bc(t){return t.isInPlot()}function Lc(t,e,n){var r=n||{},i=r.mask,o=r.isStartEnable,a=e||"rect";switch(t){case"brush":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:o||Bc,action:["brush:start","".concat(a,"-mask:start"),"".concat(a,"-mask:show")],arg:[null,{maskStyle:null==i?void 0:i.style}]}],processing:[{trigger:"mousemove",isEnable:Bc,action:["".concat(a,"-mask:resize")]}],end:[{trigger:"mouseup",isEnable:Bc,action:["brush:filter","brush:end","".concat(a,"-mask:end"),"".concat(a,"-mask:hide"),"brush-reset-button:show"]}],rollback:[{trigger:"brush-reset-button:click",action:["brush:reset","brush-reset-button:hide","cursor:crosshair"]}]};case"brush-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"plot:mousemove",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"plot:mousemove",action:"cursor:default",isEnable:function(t){return!!o&&!o(t)}},{trigger:"mask:mouseenter",action:"cursor:move",isEnable:o||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:o||function(t){return!t.isInShape("mask")},action:["".concat(a,"-mask:start"),"".concat(a,"-mask:show")],arg:[{maskStyle:null==i?void 0:i.style}]},{trigger:"mask:dragstart",action:["".concat(a,"-mask:moveStart")]}],processing:[{trigger:"plot:mousemove",action:["".concat(a,"-mask:resize")]},{trigger:"mask:drag",action:["".concat(a,"-mask:move")]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["".concat(a,"-mask:end")]},{trigger:"mask:dragend",action:["".concat(a,"-mask:moveEnd")]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear","".concat(a,"-mask:end"),"".concat(a,"-mask:hide")]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","".concat(a,"-mask:hide")]}]};case"brush-x":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:o||Bc,action:["brush-x:start","".concat(a,"-mask:start"),"".concat(a,"-mask:show")],arg:[null,{maskStyle:null==i?void 0:i.style}]}],processing:[{trigger:"mousemove",isEnable:Bc,action:["".concat(a,"-mask:resize")]}],end:[{trigger:"mouseup",isEnable:Bc,action:["brush-x:filter","brush-x:end","".concat(a,"-mask:end"),"".concat(a,"-mask:hide")]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]};case"brush-x-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"mask:mouseenter",action:"cursor:move",isEnable:o||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:o||function(t){return!t.isInShape("mask")},action:["".concat(a,"-mask:start"),"".concat(a,"-mask:show")],arg:[{maskStyle:null==i?void 0:i.style}]},{trigger:"mask:dragstart",action:["".concat(a,"-mask:moveStart")]}],processing:[{trigger:"plot:mousemove",action:["".concat(a,"-mask:resize")]},{trigger:"mask:drag",action:["".concat(a,"-mask:move")]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["".concat(a,"-mask:end")]},{trigger:"mask:dragend",action:["".concat(a,"-mask:moveEnd")]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear","".concat(a,"-mask:end"),"".concat(a,"-mask:hide")]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","".concat(a,"-mask:hide")]}]};case"brush-y":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:o||Bc,action:["brush-y:start","".concat(a,"-mask:start"),"".concat(a,"-mask:show")],arg:[null,{maskStyle:null==i?void 0:i.style}]}],processing:[{trigger:"mousemove",isEnable:Bc,action:["".concat(a,"-mask:resize")]}],end:[{trigger:"mouseup",isEnable:Bc,action:["brush-y:filter","brush-y:end","".concat(a,"-mask:end"),"".concat(a,"-mask:hide")]}],rollback:[{trigger:"dblclick",action:["brush-y:reset"]}]};case"brush-y-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"mask:mouseenter",action:"cursor:move",isEnable:o||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:o||function(t){return!t.isInShape("mask")},action:["".concat(a,"-mask:start"),"".concat(a,"-mask:show")],arg:[{maskStyle:null==i?void 0:i.style}]},{trigger:"mask:dragstart",action:["".concat(a,"-mask:moveStart")]}],processing:[{trigger:"plot:mousemove",action:["".concat(a,"-mask:resize")]},{trigger:"mask:drag",action:["".concat(a,"-mask:move")]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["".concat(a,"-mask:end")]},{trigger:"mask:dragend",action:["".concat(a,"-mask:moveEnd")]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear","".concat(a,"-mask:end"),"".concat(a,"-mask:hide")]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","".concat(a,"-mask:hide")]}]};default:return{}}}Lt("brush-reset-button",function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buttonGroup=null,e.buttonCfg=Object(s.a)({name:"button"},Tc),e}return Object(s.c)(e,t),e.prototype.getButtonCfg=function(){var t=this.context.view,e=Object(c.s)(t,["interactions","filter-action","cfg","buttonConfig"]);return as(this.buttonCfg,e,this.cfg)},e.prototype.drawButton=function(){var t=this.getButtonCfg(),e=this.context.view.foregroundGroup.addGroup({name:t.name}),n=this.drawText(e);this.drawBackground(e,n.getBBox()),this.buttonGroup=e},e.prototype.drawText=function(t){var e,n=this.getButtonCfg();return t.addShape({type:"text",name:"button-text",attrs:Object(s.a)({text:n.text},null===(e=n.textStyle)||void 0===e?void 0:e.default)})},e.prototype.drawBackground=function(t,e){var n,r=this.getButtonCfg(),i=gs(r.padding),o=t.addShape({type:"rect",name:"button-rect",attrs:Object(s.a)({x:e.x-i[3],y:e.y-i[0],width:e.width+i[1]+i[3],height:e.height+i[0]+i[2]},null===(n=r.buttonStyle)||void 0===n?void 0:n.default)});return o.toBack(),t.on("mouseenter",(function(){var t;o.attr(null===(t=r.buttonStyle)||void 0===t?void 0:t.active)})),t.on("mouseleave",(function(){var t;o.attr(null===(t=r.buttonStyle)||void 0===t?void 0:t.default)})),o},e.prototype.resetPosition=function(){var t=this.context.view.getCoordinate().convert({x:1,y:1}),e=this.buttonGroup,n=e.getBBox(),r=_r.transform(null,[["t",t.x-n.width-10,t.y+n.height+5]]);e.setMatrix(r)},e.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},e.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},e.prototype.destroy=function(){var e=this.buttonGroup;e&&e.remove(),t.prototype.destroy.call(this)},e}(At),{name:"brush-reset-button"}),Ne("filter-action",{}),Ne("brush",Lc("brush")),Ne("brush-highlight",Lc("brush-highlight")),Ne("brush-x",Lc("brush-x","x-rect")),Ne("brush-y",Lc("brush-y","y-rect")),Ne("brush-x-highlight",Lc("brush-x-highlight","x-rect")),Ne("brush-y-highlight",Lc("brush-y-highlight","y-rect"));var Dc=["brush","brush-x","brush-y","brush-highlight","brush-x-highlight","brush-y-highlight"];function Fc(t){var e=t.options,n=e.brush,r=Object(c.l)(e.interactions||[],(function(t){return-1===Dc.indexOf(t.type)}));return(null==n?void 0:n.enabled)&&(Dc.forEach((function(t){var e=!1;switch(n.type){case"x-rect":e=t===("highlight"===n.action?"brush-x-highlight":"brush-x");break;case"y-rect":e=t===("highlight"===n.action?"brush-y-highlight":"brush-y");break;default:e=t===("highlight"===n.action?"brush-highlight":"brush")}var i={type:t,enable:e};n&&(i.cfg=Lc(t,n.type,n)),r.push(i)})),"highlight"!==(null==n?void 0:n.action)&&r.push({type:"filter-action",cfg:{buttonConfig:n.button}})),as({},t,{options:{interactions:r}})}var Rc={hover:"__interval-connected-area-hover__",click:"__interval-connected-area-click__"},Nc=function(t,e){return"hover"===t?[{trigger:"interval:mouseenter",action:["element-highlight-by-color:highlight","element-link-by-color:link"],arg:[null,{style:e}]}]:[{trigger:"interval:click",action:["element-highlight-by-color:clear","element-highlight-by-color:highlight","element-link-by-color:clear","element-link-by-color:unlink","element-link-by-color:link"],arg:[null,null,null,null,{style:e}]}]};function zc(t,e){return Object(c.M)(t)&&Object(c.M)(e)?0===t&&0===e?"-":t===e?"100%":0===t?"∞":"".concat((100*e/t).toFixed(2),"%"):"-"}function Wc(t,e){return as({size:e?32:80,spacing:e?8:12,offset:e?32:0,arrow:!1!==t.arrow&&{headSize:12,style:{fill:"rgba(0, 0, 0, 0.05)"}},text:!1!==t.text&&{style:{fontSize:12,fill:"rgba(0, 0, 0, 0.85)",textAlign:"center",textBaseline:"middle"},formatter:zc}},t)}function $c(t,e){return Object(c.W)(e.getModel().points,(function(e){return t.convertPoint(e)}))}function Hc(t,e,n){!function(t,e,n){var r=t.view,i=t.geometry,o=t.group,a=t.options,c=t.horizontal,l=a.offset,u=a.size,h=a.arrow,d=r.getCoordinate(),f=$c(d,e)[3],p=$c(d,n)[0],g=p.y-f.y,v=p.x-f.x;if("boolean"!=typeof h){var y,m=h.headSize,b=a.spacing;c?(v-m)/2<b?(b=Math.max(1,(v-m)/2),y=[[f.x+b,f.y-l],[f.x+b,f.y-l-u],[p.x-b,p.y-l-u/2]]):y=[[f.x+b,f.y-l],[f.x+b,f.y-l-u],[p.x-b-m,p.y-l-u],[p.x-b,p.y-l-u/2],[p.x-b-m,p.y-l]]:(g-m)/2<b?(b=Math.max(1,(g-m)/2),y=[[f.x+l,f.y+b],[f.x+l+u,f.y+b],[p.x+l+u/2,p.y-b]]):y=[[f.x+l,f.y+b],[f.x+l+u,f.y+b],[p.x+l+u,p.y-b-m],[p.x+l+u/2,p.y-b],[p.x+l,p.y-b-m]],o.addShape("polygon",{id:"".concat(r.id,"-conversion-tag-arrow-").concat(i.getElementId(e.getModel().mappingData)),name:"conversion-tag-arrow",origin:{element:e,nextElement:n},attrs:Object(s.a)(Object(s.a)({},h.style||{}),{points:y})})}}(t,e,n),function(t,e,n){var r,i,o,a=t.view,c=t.geometry,l=t.group,u=t.options,h=t.field,d=t.horizontal,f=u.offset,p=u.size;if("boolean"!=typeof u.text){var g=a.getCoordinate(),v=(null===(r=u.text)||void 0===r?void 0:r.formatter)&&(null===(i=u.text)||void 0===i?void 0:i.formatter(e.getData()[h],n.getData()[h])),y=$c(g,e)[d?3:0],m=$c(g,n)[d?0:3],b=l.addShape("text",{id:"".concat(a.id,"-conversion-tag-text-").concat(c.getElementId(e.getModel().mappingData)),name:"conversion-tag-text",origin:{element:e,nextElement:n},attrs:Object(s.a)(Object(s.a)({},(null===(o=u.text)||void 0===o?void 0:o.style)||{}),{text:v,x:d?(y.x+m.x)/2:y.x+f+p/2,y:d?y.y-f-p/2:(y.y+m.y)/2})});if(d){var x=m.x-y.x,O=b.getBBox().width;if(O>x){var j=O/v.length,w=Math.max(1,Math.ceil(x/j)-1),C="".concat(v.slice(0,w),"...");b.attr("text",C)}}}}(t,e,n)}function Yc(t){var e=t.options,n=e.legend,r=e.seriesField,i=e.isStack;return r?!1!==n&&(n=Object(s.a)({position:i?"right-top":"top-left"},n)):n=!1,t.options.legend=n,t}function Vc(t){var e=t.chart,n=t.options,r=n.data,i=n.columnStyle,o=n.color,a=n.columnWidthRatio,l=n.isPercent,u=n.isGroup,h=n.isStack,d=n.xField,f=n.yField,p=n.seriesField,g=n.groupField,v=n.tooltip,y=n.shape,m=l&&u&&h?function(t,e,n,r){var i=Object(c.ib)(t,(function(t,r){var i=Object(c.ib)(n,(function(t,e){return"".concat(t).concat(r[e])}),""),o=t.has(i)?t.get(i):0,a=r[e];return o=ps(a)?o+a:o,t.set(i,o),t}),new Map);return Object(c.W)(t,(function(t){var o,a=t[e],l=Object(c.ib)(n,(function(e,n){return"".concat(e).concat(t[n])}),""),u=ps(a)&&0!==i.get(l)?a/i.get(l):0;return Object(s.a)(Object(s.a)({},t),((o={})[r]=u,o))}))}(r,f,[d,g],f):mc(r,f,d,f,l),b=[];h&&p&&!u?m.forEach((function(t){var e=b.find((function(e){return e[d]===t[d]&&e[p]===t[p]}));e?e[f]+=t[f]||0:b.push(Object(s.a)({},t))})):b=m,e.data(b);var x=l?Object(s.a)({formatter:function(t){var e;return{name:u&&h?"".concat(t[p]," - ").concat(t[g]):null!==(e=t[p])&&void 0!==e?e:t[d],value:(100*Number(t[f])).toFixed(2)+"%"}}},v):v,O=as({},t,{options:{data:b,widthRatio:a,tooltip:x,interval:{shape:y,style:i,color:o}}});return lc(O),O}function Gc(t){var e,n,r=t.options,i=r.xAxis,o=r.yAxis,a=r.xField,c=r.yField,l=r.data,u=r.isPercent?{max:1,min:0,minLimit:0,maxLimit:1}:{};return cs(Us(((e={})[a]=i,e[c]=o,e),((n={})[a]={type:"cat"},n[c]=Object(s.a)(Object(s.a)({},Za(l,c)),u),n)))(t)}function Kc(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(a,!1):e.axis(a,i),t}function Xc(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField;return r&&i?e.legend(i,r):!1===r&&e.legend(!1),t}function Uc(t){var e=t.chart,n=t.options,r=n.label,i=n.yField,o=n.isRange,a=ls(e,"interval");if(r){var c=r.callback,l=Object(s.f)(r,["callback"]);a.label({fields:[i],callback:c,cfg:Object(s.a)({layout:(null==l?void 0:l.position)?void 0:[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}]},fs(o?Object(s.a)({content:function(t){var e;return null===(e=t[i])||void 0===e?void 0:e.join("-")}},l):l))})}else a.label(!1);return t}function qc(t){var e=t.chart,n=t.options,r=n.tooltip,i=n.isGroup,o=n.isStack,a=n.groupField,l=n.data,u=n.xField,h=n.yField,d=n.seriesField;if(!1===r)e.tooltip(!1);else{var f=r;if(i&&o){var p=f.customItems,g=(null==f?void 0:f.formatter)||function(t){return{name:"".concat(t[d]," - ").concat(t[a]),value:t[h]}};f=Object(s.a)(Object(s.a)({},f),{customItems:function(t){var e=[];return Object(c.j)(t,(function(t){Object(c.l)(l,(function(e){return Object(c.J)(e,qa(t.data,[u,d]))})).forEach((function(n){e.push(Object(s.a)(Object(s.a)(Object(s.a)({},t),{value:n[h],data:n,mappingData:{_origin:n}}),g(n)))}))})),p?p(e):e}})}e.tooltip(f)}return t}function Zc(t,e){void 0===e&&(e=!1);var n,r,i,o,a=t.options,s=a.seriesField;return cs(Yc,Vs,zs("columnStyle"),Gs,Qs("rect"),Vc,Gc,Kc,Xc,qc,Ks,Xs,Uc,Fc,Hs,Ys,qs(),(r=a.yField,void 0===(i=!e)&&(i=!0),void 0===(o=!!s)&&(o=!1),function(t){var e=t.options,n=t.chart,a=e.conversionTag,s=e.theme;return a&&!o&&(n.theme(as({},Object(c.O)(s)?s:nn(s),{columnWidthRatio:1/3})),n.annotation().shape({render:function(t,e){var o=t.addGroup({id:"".concat(n.id,"-conversion-tag-group"),name:"conversion-tag-group"}),s=Object(c.m)(n.geometries,(function(t){return"interval"===t.type})),l={view:e,geometry:s,group:o,field:r,horizontal:i,options:Wc(a,i)},u=s.elements;Object(c.j)(u,(function(t,e){e>0&&Hc(l,u[e-1],t)}))}})),t}),(void 0===(n=!a.isStack)&&(n=!1),function(t){var e=t.chart,r=t.options.connectedArea,i=function(){e.removeInteraction(Rc.hover),e.removeInteraction(Rc.click)};if(!n&&r){var o=r.trigger||"hover";i(),e.interaction(Rc[o],{start:Nc(o,r.style)})}else i();return t}),Zs)(t)}function Qc(t){var e=t.options,n=e.xField,r=e.yField,i=e.xAxis,o=e.yAxis,a={left:"bottom",right:"top",top:"left",bottom:"right"},c=!1!==o&&Object(s.a)({position:a[(null==o?void 0:o.position)||"left"]},o),l=!1!==i&&Object(s.a)({position:a[(null==i?void 0:i.position)||"bottom"]},i);return Object(s.a)(Object(s.a)({},t),{options:Object(s.a)(Object(s.a)({},e),{xField:r,yField:n,xAxis:c,yAxis:l})})}function Jc(t){var e=t.options.label;return e&&!e.position&&(e.position="left",e.layout||(e.layout=[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}])),as({},t,{options:{label:e}})}function tl(t){var e=t.options,n=e.seriesField,r=e.isStack,i=e.legend;return n?!1!==i&&(i=Object(s.a)({position:r?"top-left":"right-top"},i||{})):i=!1,as({},t,{options:{legend:i}})}function el(t){var e=t.options,n=[{type:"transpose"},{type:"reflectY"}].concat(e.coordinate||[]);return as({},t,{options:{coordinate:n}})}function nl(t){var e=t.chart,n=t.options,r=n.barStyle,i=n.barWidthRatio,o=n.minBarWidth,a=n.maxBarWidth,c=n.barBackground;return Zc({chart:e,options:Object(s.a)(Object(s.a)({},n),{columnStyle:r,columnWidthRatio:i,minColumnWidth:o,maxColumnWidth:a,columnBackground:c})},!0)}function rl(t){return cs(Qc,Jc,tl,$s,el,nl)(t)}Ne(Rc.hover,{start:Nc(Rc.hover),end:[{trigger:"interval:mouseleave",action:["element-highlight-by-color:reset","element-link-by-color:unlink"]}]}),Ne(Rc.click,{start:Nc(Rc.click),end:[{trigger:"document:mousedown",action:["element-highlight-by-color:clear","element-link-by-color:clear"]}]});var il,ol=as({},vc.getDefaultOptions(),{barWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),al=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bar",e}return Object(s.c)(e,t),e.getDefaultOptions=function(){return ol},e.prototype.changeData=function(t){var e,n;this.updateOption({data:t});var r=this.chart,i=this.options,o=i.isPercent,a=i.xField,c=i.yField,l=i.xAxis,u=i.yAxis;a=(e=[c,a])[0],c=e[1],l=(n=[u,l])[0],u=n[1],Gc({chart:r,options:Object(s.a)(Object(s.a)({},i),{xField:a,yField:c,yAxis:u,xAxis:l})}),r.changeData(mc(t,a,c,a,o))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return rl},e}(vc),sl=as({},vc.getDefaultOptions(),{columnWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),cl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="column",e}return Object(s.c)(e,t),e.getDefaultOptions=function(){return sl},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options,n=e.yField,r=e.xField,i=e.isPercent;Gc({chart:this.chart,options:this.options}),this.chart.changeData(mc(t,n,r,n,i))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Zc},e}(vc),ll={appendPadding:[0,80],minSize:0,maxSize:1,meta:(il={},il.$$mappingValue$$={min:0,max:1,nice:!1},il),label:{style:{fill:"#fff",fontSize:12}},tooltip:{showTitle:!1,showMarkers:!1,shared:!1},conversionTag:{offsetX:10,offsetY:0,style:{fontSize:12,fill:"rgba(0,0,0,0.45)"}}};function ul(t,e,n){var r=n.yField,i=n.maxSize,o=n.minSize,a=Object(c.s)(Object(c.Z)(e,r),[r]),s=Object(c.M)(i)?i:1,l=Object(c.M)(o)?o:0;return Object(c.W)(t,(function(e,n){var i=(e[r]||0)/a;return e.$$percentage$$=i,e.$$mappingValue$$=(s-l)*i+l,e.$$conversion$$=[Object(c.s)(t,[n-1,r]),e[r]],e}))}function hl(t){return function(e){var n=e.chart,r=e.options,i=r.conversionTag,o=r.filteredData||n.getOptions().data;if(i){var a=i.formatter;o.forEach((function(e,r){if(!(r<=0||Number.isNaN(e.$$mappingValue$$))){var l=t(e,r,o,{top:!0,name:"CONVERSION_TAG_NAME",text:{content:Object(c.I)(a)?a(e,o):a,offsetX:i.offsetX,offsetY:i.offsetY,position:"end",autoRotate:!1,style:Object(s.a)({textAlign:"start",textBaseline:"middle"},i.style)}});n.annotation().line(l)}}))}return e}}function dl(t){var e=t.chart,n=t.options,r=n.data,i=void 0===r?[]:r,o=ul(i,i,{yField:n.yField,maxSize:n.maxSize,minSize:n.minSize});return e.data(o),t}function fl(t){var e=t.chart,n=t.options,r=n.xField,i=n.yField,o=n.color,a=n.tooltip,s=n.label,l=n.shape,u=void 0===l?"funnel":l,h=n.funnelStyle,d=n.state,f=rc(a,[r,i]),p=f.fields,g=f.formatter;return ac({chart:e,options:{type:"interval",xField:r,yField:"$$mappingValue$$",colorField:r,tooltipFields:Object(c.C)(p)&&p.concat(["$$percentage$$","$$conversion$$"]),mapping:{shape:u,tooltip:g,color:o,style:h},label:s,state:d}}),ls(t.chart,"interval").adjust("symmetric"),t}function pl(t){var e=t.chart,n=t.options.isTransposed;return e.coordinate({type:"rect",actions:n?[]:[["transpose"],["scale",1,-1]]}),t}function gl(t){var e=t.options,n=t.chart,r=e.maxSize,i=Object(c.s)(n,["geometries","0","dataArray"],[]),o=Object(c.s)(n,["options","data","length"]),a=Object(c.W)(i,(function(t){return Object(c.s)(t,["0","nextPoints","0","x"])*o-.5}));return hl((function(t,e,n,i){var o=r-(r-t.$$mappingValue$$)/2;return Object(s.a)(Object(s.a)({},i),{start:[a[e-1]||e-.5,o],end:[a[e-1]||e-.5,o+.05]})}))(t),t}function vl(t){return cs(dl,fl,pl,gl)(t)}function yl(t){var e,n=t.chart,r=t.options,i=r.data,o=void 0===i?[]:i,a=r.yField;return n.data(o),n.scale(((e={})[a]={sync:!0},e)),t}function ml(t){var e=t.chart,n=t.options,r=n.data,i=n.xField,o=n.yField,a=n.color,s=n.compareField,l=n.isTransposed,u=n.tooltip,h=n.maxSize,d=n.minSize,f=n.label,p=n.funnelStyle,g=n.state,v=n.showFacetTitle;return e.facet("mirror",{fields:[s],transpose:!l,padding:l?0:[32,0,0,0],showTitle:v,eachView:function(t,e){var n=l?e.rowIndex:e.columnIndex;l||t.coordinate({type:"rect",actions:[["transpose"],["scale",0===n?-1:1,-1]]});var v=ul(e.data,r,{yField:o,maxSize:h,minSize:d});t.data(v);var y=rc(u,[i,o,s]),m=y.fields,b=y.formatter,x=l?{offset:0===n?10:-23,position:0===n?"bottom":"top"}:{offset:10,position:"left",style:{textAlign:0===n?"end":"start"}};ac({chart:t,options:{type:"interval",xField:i,yField:"$$mappingValue$$",colorField:i,tooltipFields:Object(c.C)(m)&&m.concat(["$$percentage$$","$$conversion$$"]),mapping:{shape:"funnel",tooltip:b,color:a,style:p},label:!1!==f&&as({},x,f),state:g}})}}),t}function bl(t){var e=t.chart,n=t.index,r=t.options,i=r.conversionTag,o=r.isTransposed;(Object(c.M)(n)?[e]:e.views).forEach((function(t,e){var a=Object(c.s)(t,["geometries","0","dataArray"],[]),s=Object(c.s)(t,["options","data","length"]),l=Object(c.W)(a,(function(t){return Object(c.s)(t,["0","nextPoints","0","x"])*s-.5}));hl((function(t,r,a,s){var c=0===(n||e)?-1:1;return as({},s,{start:[l[r-1]||r-.5,t.$$mappingValue$$],end:[l[r-1]||r-.5,t.$$mappingValue$$+.05],text:o?{style:{textAlign:"start"}}:{offsetX:!1!==i?c*i.offsetX:0,style:{textAlign:0===(n||e)?"end":"start"}}})}))(as({},{chart:t,options:r}))}))}function xl(t){return t.chart.once("beforepaint",(function(){return bl(t)})),t}function Ol(t){var e=t.chart,n=t.options,r=n.data,i=void 0===r?[]:r,o=n.yField,a=Object(c.ib)(i,(function(t,e){return t+(e[o]||0)}),0),s=Object(c.Z)(i,o)[o],l=Object(c.W)(i,(function(t,e){var n=[],r=[];if(t.$$totalPercentage$$=(t[o]||0)/a,e){var l=i[e-1].$$x$$,u=i[e-1].$$y$$;n[0]=l[3],r[0]=u[3],n[1]=l[2],r[1]=u[2]}else n[0]=-.5,r[0]=1,n[1]=.5,r[1]=1;return r[2]=r[1]-t.$$totalPercentage$$,n[2]=(r[2]+1)/4,r[3]=r[2],n[3]=-n[2],t.$$x$$=n,t.$$y$$=r,t.$$percentage$$=(t[o]||0)/s,t.$$conversion$$=[Object(c.s)(i,[e-1,o]),t[o]],t}));return e.data(l),t}function jl(t){var e=t.chart,n=t.options,r=n.xField,i=n.yField,o=n.color,a=n.tooltip,s=n.label,l=n.funnelStyle,u=n.state,h=rc(a,[r,i]),d=h.fields,f=h.formatter;return ac({chart:e,options:{type:"polygon",xField:"$$x$$",yField:"$$y$$",colorField:r,tooltipFields:Object(c.C)(d)&&d.concat(["$$percentage$$","$$conversion$$"]),label:s,state:u,mapping:{tooltip:f,color:o,style:l}}}),t}function wl(t){var e=t.chart,n=t.options.isTransposed;return e.coordinate({type:"rect",actions:n?[["transpose"],["reflect","x"]]:[]}),t}function Cl(t){return hl((function(t,e,n,r){return Object(s.a)(Object(s.a)({},r),{start:[t.$$x$$[1],t.$$y$$[1]],end:[t.$$x$$[1]+.05,t.$$y$$[1]]})}))(t),t}function _l(t){var e,n=t.chart,r=t.options,i=r.data,o=void 0===i?[]:i,a=r.yField;return n.data(o),n.scale(((e={})[a]={sync:!0},e)),t}function Ml(t){var e=t.chart,n=t.options,r=n.seriesField,i=n.isTransposed,o=n.showFacetTitle;return e.facet("rect",{fields:[r],padding:[i?0:32,10,0,10],showTitle:o,eachView:function(e,n){vl(as({},t,{chart:e,options:{data:n.data}}))}}),t}var Sl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.rendering=!1,e}return Object(s.c)(e,t),e.prototype.change=function(t){var e=this;if(!this.rendering){var n=t.seriesField,r=t.compareField,i=r?bl:gl,o=this.context.view,a=n||r?o.views:[o];Object(c.W)(a,(function(n,r){var o=n.getController("annotation"),a=Object(c.l)(Object(c.s)(o,["option"],[]),(function(t){return"CONVERSION_TAG_NAME"!==t.name}));o.clear(!0),Object(c.j)(a,(function(t){"object"==typeof t&&n.annotation()[t.type](t)}));var l=Object(c.s)(n,["filteredData"],n.getOptions().data);i({chart:n,index:r,options:Object(s.a)(Object(s.a)({},t),{filteredData:ul(l,l,t)})}),n.filterData(l),e.rendering=!0,n.render(!0)}))}this.rendering=!1},e}(At),El={trigger:"afterrender",action:"".concat("funnel-conversion-tag",":change")};function kl(t){var e,n=t.options,r=n.compareField,i=n.xField,o=n.yField,a=n.locale,s=n.funnelStyle,l=n.data,u=nc(a);return(r||s)&&(e=function(t){return as({},r&&{lineWidth:1,stroke:"#fff"},Object(c.I)(s)?s(t):s)}),as({options:{label:r?{fields:[i,o,r,"$$percentage$$","$$conversion$$"],formatter:function(t){return"".concat(t[o])}}:{fields:[i,o,"$$percentage$$","$$conversion$$"],offset:0,position:"middle",formatter:function(t){return"".concat(t[i]," ").concat(t[o])}},tooltip:{title:i,formatter:function(t){return{name:t[i],value:t[o]}}},conversionTag:{formatter:function(t){return"".concat(u.get(["conversionTag","label"]),": ").concat(zc.apply(void 0,t.$$conversion$$))}}}},t,{options:{funnelStyle:e,data:Object(c.e)(l)}})}function Il(t){var e=t.options,n=e.compareField,r=e.dynamicHeight;return e.seriesField?function(t){return cs(_l,Ml)(t)}(t):n?function(t){return cs(yl,ml,xl)(t)}(t):r?function(t){return cs(Ol,jl,wl,Cl)(t)}(t):vl(t)}function Al(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return cs(Us(((e={})[o]=r,e[a]=i,e)))(t)}function Pl(t){return t.chart.axis(!1),t}function Tl(t){var e=t.chart,n=t.options.legend;return!1===n?e.legend(!1):e.legend(n),t}function Bl(t){var e=t.chart,n=t.options,r=n.interactions,i=n.dynamicHeight;return Object(c.j)(r,(function(t){!1===t.enable?e.removeInteraction(t.type):e.interaction(t.type,t.cfg||{})})),i?e.removeInteraction("funnel-afterrender"):e.interaction("funnel-afterrender",{start:[Object(s.a)(Object(s.a)({},El),{arg:n})]}),t}function Ll(t){return cs(kl,Il,Al,Pl,$s,Bl,Tl,Ys,Vs,qs())(t)}Lt("funnel-conversion-tag",Sl),Ne("funnel-afterrender",{start:[El]});var Dl,Fl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="funnel",e}return Object(s.c)(e,t),e.getDefaultOptions=function(){return ll},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Ll},e.prototype.setState=function(t,e,n){void 0===n&&(n=!0);var r=hs(this.chart);Object(c.j)(r,(function(r){e(r.getData())&&r.setState(t,n)}))},e.prototype.getStates=function(){var t=hs(this.chart),e=[];return Object(c.j)(t,(function(t){var n=t.getData(),r=t.getStates();Object(c.j)(r,(function(r){e.push({data:n,state:r,geometry:t.geometry,element:t})}))})),e},e.CONVERSATION_FIELD="$$conversion$$",e.PERCENT_FIELD="$$percentage$$",e.TOTAL_PERCENT_FIELD="$$totalPercentage$$",e}(vc),Rl={percent:0,range:{ticks:[]},innerRadius:.9,radius:.95,startAngle:-7/6*Math.PI,endAngle:1/6*Math.PI,syncViewPadding:!0,axis:{line:null,label:{offset:-24,style:{textAlign:"center",textBaseline:"middle"}},subTickLine:{length:-8},tickLine:{length:-12},grid:null},indicator:{pointer:{style:{lineWidth:5,lineCap:"round"}},pin:{style:{r:9.75,lineWidth:4.5,fill:"#fff"}}},statistic:{title:!1},meta:(Dl={},Dl.range={sync:"v"},Dl.percent={sync:"v",tickCount:5,tickInterval:.2},Dl),animation:!1};function Nl(t){var e;return[(e={},e.percent=Object(c.c)(t,0,1),e)]}function zl(t,e){var n=Object(c.s)(e,["ticks"],[]),r=Object(c.mb)(n)?Object(c.ub)(n):[0,Object(c.c)(t,0,1),1];return r[0]||r.shift(),function(t,e){return t.map((function(n,r){var i;return(i={}).range=n-(t[r-1]||0),i.type="".concat(r),i.percent=e,i}))}(r,t)}function Wl(t){var e=t.chart,n=t.options,r=n.percent,i=n.range,o=n.radius,a=n.innerRadius,s=n.startAngle,l=n.endAngle,u=n.axis,h=n.indicator,d=n.gaugeStyle,f=n.type,p=n.meter,g=i.color,v=i.width;if(h){var y=Nl(r),m=e.createView({id:"indicator-view"});m.data(y),m.point().position("".concat("percent","*1")).shape(h.shape||"gauge-indicator").customInfo({defaultColor:e.getTheme().defaultColor,indicator:h}),m.coordinate("polar",{startAngle:s,endAngle:l,radius:a*o}),m.axis("percent",u),m.scale("percent",qa(u,Ga))}var b=zl(r,n.range),x=e.createView({id:"range-view"});return x.data(b),lc({chart:x,options:{xField:"1",yField:"range",seriesField:"type",rawFields:["percent"],isStack:!0,interval:{color:Object(c.Q)(g)?[g,"#f0f0f0"]:g,style:d,shape:"meter"===f?"meter-gauge":null},args:{zIndexReversed:!0,sortZIndex:!0},minColumnWidth:v,maxColumnWidth:v}}).ext.geometry.customInfo({meter:p}),x.coordinate("polar",{innerRadius:a,radius:o,startAngle:s,endAngle:l}).transpose(),t}function $l(t){var e;return cs(Us(((e={range:{min:0,max:1,maxLimit:1,minLimit:0}}).percent={},e)))(t)}function Hl(t,e){var n=t.chart,r=t.options,i=r.statistic,o=r.percent;if(n.getController("annotation").clear(!0),i){var a=i.content,l=void 0;a&&(l=as({},{content:"".concat((100*o).toFixed(2),"%"),style:{opacity:.75,fontSize:"30px",lineHeight:1,textAlign:"center",color:"rgba(44,53,66,0.85)"}},a)),function(t,e,n){var r=e.statistic;[r.title,r.content].forEach((function(e){if(e){var r=Object(c.I)(e.style)?e.style(n):e.style;t.annotation().html(Object(s.a)({position:["50%","100%"],html:function(t,i){var o=i.getCoordinate(),a=i.views[0].getCoordinate(),l=a.getCenter(),u=a.getRadius(),h=Math.max(Math.sin(a.startAngle),Math.sin(a.endAngle))*u,d=l.y+h-o.y.start-parseFloat(Object(c.s)(r,"fontSize",0)),f=o.getRadius()*o.innerRadius*2;xs(t,Object(s.a)({width:"".concat(f,"px"),transform:"translate(-50%, ".concat(d,"px)")},bs(r)));var p=i.getData();if(e.customHtml)return e.customHtml(t,i,n,p);var g=e.content;return e.formatter&&(g=e.formatter(n,p)),g?Object(c.Q)(g)?g:"".concat(g):"<div></div>"}},qa(e,["offsetX","offsetY","rotate","style","formatter"])))}}))}(n,{statistic:Object(s.a)(Object(s.a)({},i),{content:l})},{percent:o})}return e&&n.render(!0),t}function Yl(t){var e=t.chart,n=t.options.tooltip;return n?e.tooltip(as({showTitle:!1,showMarkers:!1,containerTpl:'<div class="g2-tooltip"><div class="g2-tooltip-list"></div></div>',domStyles:{"g2-tooltip":{padding:"4px 8px",fontSize:"10px"}},customContent:function(t,e){var n=Object(c.s)(e,[0,"data","percent"],0);return"".concat((100*n).toFixed(2),"%")}},n)):e.tooltip(!1),t}function Vl(t){return t.chart.legend(!1),t}function Gl(t){return cs(Vs,Ys,Wl,$l,Yl,Hl,Hs,qs(),Vl)(t)}Vn("point","gauge-indicator",{draw:function(t,e){var n=t.customInfo,r=n.indicator,i=n.defaultColor,o=r,a=o.pointer,c=o.pin,l=e.addGroup(),u=this.parsePoint({x:0,y:0});return a&&l.addShape("line",{name:"pointer",attrs:Object(s.a)({x1:u.x,y1:u.y,x2:t.x,y2:t.y,stroke:i},a.style)}),c&&l.addShape("circle",{name:"pin",attrs:Object(s.a)({x:u.x,y:u.y,stroke:i},c.style)}),l}}),Vn("interval","meter-gauge",{draw:function(t,e){var n=t.customInfo.meter,r=void 0===n?{}:n,i=r.steps,o=void 0===i?50:i,a=r.stepRatio,s=void 0===a?.5:a;o=o<1?1:o,s=Object(c.c)(s,0,1);var l=this.coordinate,u=l.startAngle,h=l.endAngle,d=0;s>0&&s<1&&(d=(h-u)/o/(s/(1-s)+1-1/o));for(var f=d/(1-s)*s,p=e.addGroup(),g=this.coordinate.getCenter(),v=this.coordinate.getRadius(),y=_r.getAngle(t,this.coordinate),m=y.startAngle,b=y.endAngle,x=m;x<b;){var O=void 0,j=(x-u)%(f+d);O=j<f?x+(f-j):(x+=f+d-j)+f;var w=_r.getSectorPath(g.x,g.y,v,x,Math.min(O,b),v*this.coordinate.innerRadius);p.addShape("path",{name:"meter-gauge",attrs:{path:w,fill:t.color,stroke:t.color,lineWidth:.5}}),x=O+d}return p}});var Kl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="gauge",e}return Object(s.c)(e,t),e.getDefaultOptions=function(){return Rl},e.prototype.changeData=function(t){this.chart.emit(l.BEFORE_CHANGE_DATA,yn.fromData(this.chart,l.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t});var e=this.chart.views.find((function(t){return"indicator-view"===t.id}));e&&e.data(Nl(t));var n=this.chart.views.find((function(t){return"range-view"===t.id}));n&&n.data(zl(t,this.options.range)),Hl({chart:this.chart,options:this.options},!0),this.chart.emit(l.AFTER_CHANGE_DATA,yn.fromData(this.chart,l.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Gl},e}(vc);function Xl(t,e,n){if(1===n)return[0,e];var r=Math.floor(t/e);return[e*r,e*(r+1)]}function Ul(t,e,n,r,i){var o=Object(c.e)(t);Object(c.ob)(o,e);var a=Object(c.yb)(o,e),s=Object(c.u)(a),l=s.max-s.min,u=n;if(!n&&r&&(u=r>1?l/(r-1):s.max),!n&&!r){var h=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}(a);u=l/h}var d={},f=Object(c.w)(o,i);Object(c.G)(f)?Object(c.j)(o,(function(t){var n=Xl(t[e],u,r),i="".concat(n[0],"-").concat(n[1]);Object(c.y)(d,i)||(d[i]={range:n,count:0}),d[i].count+=1})):Object.keys(f).forEach((function(t){Object(c.j)(f[t],(function(n){var o=Xl(n[e],u,r),a="".concat(o[0],"-").concat(o[1]),s="".concat(a,"-").concat(t);Object(c.y)(d,s)||(d[s]={range:o,count:0},d[s][i]=t),d[s].count+=1}))}));var p=[];return Object(c.j)(d,(function(t){p.push(t)})),p}var ql=as({},vc.getDefaultOptions(),{columnStyle:{stroke:"#FFFFFF"},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]});function Zl(t){var e=t.chart,n=t.options,r=n.data,i=n.binField,o=n.binNumber,a=n.binWidth,s=n.color,c=n.stackField,l=n.legend,u=n.columnStyle,h=Ul(r,i,a,o,c);return e.data(h),lc(as({},t,{options:{xField:"range",yField:"count",seriesField:c,isStack:!0,interval:{color:s,style:u}}})),l&&c?e.legend(c,l):e.legend(!1),t}function Ql(t){var e,n=t.options,r=n.xAxis,i=n.yAxis;return cs(Us(((e={}).range=r,e.count=i,e)))(t)}function Jl(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis;return!1===r?e.axis("range",!1):e.axis("range",r),!1===i?e.axis("count",!1):e.axis("count",i),t}function tu(t){var e=t.chart,n=t.options.label,r=ls(e,"interval");if(n){var i=n.callback,o=Object(s.f)(n,["callback"]);r.label({fields:["count"],callback:i,cfg:fs(o)})}else r.label(!1);return t}function eu(t){return cs(Vs,zs("columnStyle"),Zl,Ql,Jl,Gs,tu,$s,Hs,Ys)(t)}var nu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="histogram",e}return Object(s.c)(e,t),e.getDefaultOptions=function(){return ql},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options,n=e.binField,r=e.binNumber,i=e.binWidth,o=e.stackField;this.chart.changeData(Ul(t,n,i,r,o))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return eu},e}(vc),ru=as({},vc.getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},legend:{position:"top-left",radio:{}},isStack:!1});Lt("marker-active",function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.active=function(){var t=this.getView(),e=this.context.event;if(e.data){var n=e.data.items,r=t.geometries.filter((function(t){return"point"===t.type}));Object(c.j)(r,(function(t){Object(c.j)(t.elements,(function(t){var e=-1!==Object(c.n)(n,(function(e){return e.data===t.data}));t.setState("active",e)}))}))}},e.prototype.reset=function(){var t=this.getView().geometries.filter((function(t){return"point"===t.type}));Object(c.j)(t,(function(t){Object(c.j)(t.elements,(function(t){t.setState("active",!1)}))}))},e.prototype.getView=function(){return this.context.view},e}(At)),Ne("marker-active",{start:[{trigger:"tooltip:show",action:"marker-active:active"}],end:[{trigger:"tooltip:hide",action:"marker-active:reset"}]});var iu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e}return Object(s.c)(e,t),e.getDefaultOptions=function(){return ru},e.prototype.changeData=function(t){this.updateOption({data:t});xc({chart:this.chart,options:this.options}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Mc},e}(vc),ou=as({},vc.getDefaultOptions(),{legend:{position:"right",radio:{}},tooltip:{shared:!1,showTitle:!1,showMarkers:!1},label:{layout:{type:"limit-in-plot",cfg:{action:"ellipsis"}}},pieStyle:{stroke:"white",lineWidth:1},statistic:{title:{style:{fontWeight:300,color:"#4B535E",textAlign:"center",fontSize:"20px",lineHeight:1}},content:{style:{fontWeight:"bold",color:"rgba(44,53,66,0.85)",textAlign:"center",fontSize:"32px",lineHeight:1}}},theme:{components:{annotation:{text:{animate:!1}}}}}),au=[1,0,0,0,1,0,0,0,1];function su(t,e){var n=e?Object(s.g)([],e,!0):Object(s.g)([],au,!0);return _r.transform(n,t)}var cu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.getActiveElements=function(){var t=_r.getDelegationObject(this.context);if(t){var e=this.context.view,n=t.component,r=t.item,i=n.get("field");if(i)return e.geometries[0].elements.filter((function(t){return t.getModel().data[i]===r.value}))}return[]},e.prototype.getActiveElementLabels=function(){var t=this.context.view,e=this.getActiveElements();return t.geometries[0].labelsContainer.getChildren().filter((function(t){return e.find((function(e){return Object(c.H)(e.getData(),t.get("data"))}))}))},e.prototype.transfrom=function(t){void 0===t&&(t=7.5);var e=this.getActiveElements(),n=this.getActiveElementLabels();e.forEach((function(e,r){var i=n[r],o=e.geometry.coordinate;if(o.isPolar&&o.isTransposed){var a=_r.getAngle(e.getModel(),o),s=(a.startAngle+a.endAngle)/2,c=t,l=c*Math.cos(s),u=c*Math.sin(s);e.shape.setMatrix(su([["t",l,u]])),i.setMatrix(su([["t",l,u]]))}}))},e.prototype.active=function(){this.transfrom()},e.prototype.reset=function(){this.transfrom(0)},e}(At);var lu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.getAnnotations=function(t){return(t||this.context.view).getController("annotation").option},e.prototype.getInitialAnnotation=function(){return this.initialAnnotation},e.prototype.init=function(){var t=this,e=this.context.view;e.removeInteraction("tooltip"),e.on("afterchangesize",(function(){var n=t.getAnnotations(e);t.initialAnnotation=n}))},e.prototype.change=function(t){var e=this.context,n=e.view,r=e.event;this.initialAnnotation||(this.initialAnnotation=this.getAnnotations());var i=Object(c.s)(r,["data","data"]);if(r.type.match("legend-item")){var o=_r.getDelegationObject(this.context),a=n.getGroupedFields()[0];if(o&&a){var s=o.item;i=n.getData().find((function(t){return t[a]===s.value}))}}if(i){var l=Object(c.s)(t,"annotations",[]),u=Object(c.s)(t,"statistic",{});n.getController("annotation").clear(!0),Object(c.j)(l,(function(t){"object"==typeof t&&n.annotation()[t.type](t)})),Os(n,{statistic:u,plotType:"pie"},i),n.render(!0)}var h,d,f,p=(h=this.context,(f=h.event.target)&&(d=f.get("element")),d);p&&p.shape.toFront()},e.prototype.reset=function(){var t=this.context.view;t.getController("annotation").clear(!0);var e=this.getInitialAnnotation();Object(c.j)(e,(function(e){t.annotation()[e.type](e)})),t.render(!0)},e}(At);function uu(t,e){var n;switch(t){case"inner":return n="-30%",Object(c.Q)(e)&&e.endsWith("%")?.01*parseFloat(e)>0?n:e:e<0?e:n;case"outer":return n=12,Object(c.Q)(e)&&e.endsWith("%")?.01*parseFloat(e)<0?n:e:e>0?e:n;default:return e}}function hu(t,e){return Object(c.k)(Ja(t,e),(function(t){return 0===t[e]}))}function du(t){var e=t.chart,n=t.options,r=n.data,i=n.angleField,o=n.colorField,a=n.color,c=n.pieStyle,l=n.shape,u=Ja(r,i);if(hu(u,i)){u=u.map((function(t){var e;return Object(s.a)(Object(s.a)({},t),((e={}).$$percentage$$=1/u.length,e))})),e.data(u),lc(as({},t,{options:{xField:"1",yField:"$$percentage$$",seriesField:o,isStack:!0,interval:{color:a,shape:l,style:c},args:{zIndexReversed:!0,sortZIndex:!0}}}))}else{e.data(u),lc(as({},t,{options:{xField:"1",yField:i,seriesField:o,isStack:!0,interval:{color:a,shape:l,style:c},args:{zIndexReversed:!0,sortZIndex:!0}}}))}return t}function fu(t){var e,n=t.chart,r=t.options,i=r.meta,o=r.colorField,a=as({},i);return n.scale(a,((e={})[o]={type:"cat"},e)),t}function pu(t){var e=t.chart,n=t.options,r=n.radius,i=n.innerRadius,o=n.startAngle,a=n.endAngle;return e.coordinate({type:"theta",cfg:{radius:r,innerRadius:i,startAngle:o,endAngle:a}}),t}function gu(t){var e=t.chart,n=t.options,r=n.label,i=n.colorField,o=n.angleField,a=e.geometries[0];if(r){var l=r.callback,u=fs(Object(s.f)(r,["callback"]));if(u.content){var h=u.content;u.content=function(t,n,r){var a=t[i],l=t[o],u=e.getScaleByField(o),d=null==u?void 0:u.scale(l);return Object(c.I)(h)?h(Object(s.a)(Object(s.a)({},t),{percent:d}),n,r):Object(c.Q)(h)?js(h,{value:l,name:a,percentage:Object(c.M)(d)&&!Object(c.K)(l)?"".concat((100*d).toFixed(2),"%"):null}):h}}var d=u.type?{inner:"",outer:"pie-outer",spider:"pie-spider"}[u.type]:"pie-outer",f=u.layout?Object(c.C)(u.layout)?u.layout:[u.layout]:[];u.layout=(d?[{type:d}]:[]).concat(f),a.label({fields:i?[o,i]:[o],callback:l,cfg:Object(s.a)(Object(s.a)({},u),{offset:uu(u.type,u.offset),type:"pie"})})}else a.label(!1);return t}function vu(t){var e=t.innerRadius,n=t.statistic,r=t.angleField,i=t.colorField,o=t.meta,a=nc(t.locale);if(e&&n){var s=as({},ou.statistic,n),l=s.title,u=s.content;return!1!==l&&(l=as({},{formatter:function(t){var e=t?t[i]:Object(c.K)(l.content)?a.get(["statistic","total"]):l.content;return(Object(c.s)(o,[i,"formatter"])||function(t){return t})(e)}},l)),!1!==u&&(u=as({},{formatter:function(t,e){var n=t?t[r]:function(t,e){var n=null;return Object(c.j)(t,(function(t){"number"==typeof t[e]&&(n+=t[e])})),n}(e,r),i=Object(c.s)(o,[r,"formatter"])||function(t){return t};return t||Object(c.K)(u.content)?i(n):u.content}},u)),as({},{statistic:{title:l,content:u}},t)}return t}function yu(t){var e=t.chart,n=vu(t.options),r=n.innerRadius,i=n.statistic;return e.getController("annotation").clear(!0),cs(qs())(t),r&&i&&Os(e,{statistic:i,plotType:"pie"}),t}function mu(t){var e=t.chart,n=t.options,r=n.tooltip,i=n.colorField,o=n.angleField,a=n.data;if(!1===r)e.tooltip(r);else if(e.tooltip(as({},r,{shared:!1})),hu(a,o)){var s=Object(c.s)(r,"fields"),l=Object(c.s)(r,"formatter");Object(c.G)(Object(c.s)(r,"fields"))&&(s=[i,o],l=l||function(t){return{name:t[i],value:Object(c.tb)(t[o])}}),e.geometries[0].tooltip(s.join("*"),oc(s,l))}return t}function bu(t){var e=t.chart,n=vu(t.options),r=n.interactions,i=n.statistic,o=n.annotations;return Object(c.j)(r,(function(t){var n,r;if(!1===t.enable)e.removeInteraction(t.type);else if("pie-statistic-active"===t.type){var a=[];(null===(n=t.cfg)||void 0===n?void 0:n.start)||(a=[{trigger:"element:mouseenter",action:"".concat("pie-statistic",":change"),arg:{statistic:i,annotations:o}}]),Object(c.j)(null===(r=t.cfg)||void 0===r?void 0:r.start,(function(t){a.push(Object(s.a)(Object(s.a)({},t),{arg:{statistic:i,annotations:o}}))})),e.interaction(t.type,as({},t.cfg,{start:a}))}else e.interaction(t.type,t.cfg||{})})),t}function xu(t){return cs(zs("pieStyle"),du,fu,Vs,pu,Ws,mu,gu,Gs,yu,bu,Ys)(t)}Lt("pie-statistic",lu),Ne("pie-statistic-active",{start:[{trigger:"element:mouseenter",action:"pie-statistic:change"}],end:[{trigger:"element:mouseleave",action:"pie-statistic:reset"}]}),Lt("pie-legend",cu),Ne("pie-legend-active",{start:[{trigger:"legend-item:mouseenter",action:"pie-legend:active"}],end:[{trigger:"legend-item:mouseleave",action:"pie-legend:reset"}]});var Ou=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pie",e}return Object(s.c)(e,t),e.getDefaultOptions=function(){return ou},e.prototype.changeData=function(t){this.chart.emit(l.BEFORE_CHANGE_DATA,yn.fromData(this.chart,l.BEFORE_CHANGE_DATA,null));var e=this.options,n=this.options.angleField,r=Ja(e.data,n),i=Ja(t,n);hu(r,n)||hu(i,n)?this.update({data:t}):(this.updateOption({data:t}),this.chart.data(i),yu({chart:this.chart,options:this.options}),this.chart.render(!0)),this.chart.emit(l.AFTER_CHANGE_DATA,yn.fromData(this.chart,l.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return xu},e}(vc),ju=["#FAAD14","#E8EDF3"],wu={percent:.2,color:ju,animation:{}};function Cu(t){var e=Object(c.c)(ps(t)?t:0,0,1);return[{current:"".concat(e),type:"current",percent:e},{current:"".concat(e),type:"target",percent:1}]}function _u(t){var e=t.chart,n=t.options,r=n.percent,i=n.progressStyle,o=n.color,a=n.barWidthRatio;return e.data(Cu(r)),lc(as({},t,{options:{xField:"current",yField:"percent",seriesField:"type",widthRatio:a,interval:{style:i,color:Object(c.Q)(o)?[o,ju[1]]:o},args:{zIndexReversed:!0,sortZIndex:!0}}})),e.tooltip(!1),e.axis(!1),e.legend(!1),t}function Mu(t){return t.chart.coordinate("rect").transpose(),t}function Su(t){return cs(_u,Us({}),Mu,Ys,Vs,qs())(t)}var Eu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="process",e}return Object(s.c)(e,t),e.getDefaultOptions=function(){return wu},e.prototype.changeData=function(t){this.updateOption({percent:t}),this.chart.changeData(Cu(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Su},e}(vc);function ku(t){var e=t.chart,n=t.options,r=n.innerRadius,i=n.radius;return e.coordinate("theta",{innerRadius:r,radius:i}),t}function Iu(t,e){var n=t.chart,r=t.options,i=r.innerRadius,o=r.statistic,a=r.percent,l=r.meta;if(n.getController("annotation").clear(!0),i&&o){var u=Object(c.s)(l,["percent","formatter"])||function(t){return"".concat((100*t).toFixed(2),"%")},h=o.content;h&&(h=as({},h,{content:Object(c.K)(h.content)?u(a):h.content})),Os(n,{statistic:Object(s.a)(Object(s.a)({},o),{content:h}),plotType:"ring-progress"},{percent:a})}return e&&n.render(!0),t}function Au(t){return cs(_u,Us({}),ku,Iu,Ys,Vs,qs())(t)}var Pu={percent:.2,innerRadius:.8,radius:.98,color:["#FAAD14","#E8EDF3"],statistic:{title:!1,content:{style:{fontSize:"14px",fontWeight:300,fill:"#4D4D4D",textAlign:"center",textBaseline:"middle"}}},animation:{}},Tu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ring-process",e}return Object(s.c)(e,t),e.getDefaultOptions=function(){return Pu},e.prototype.changeData=function(t){this.chart.emit(l.BEFORE_CHANGE_DATA,yn.fromData(this.chart,l.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t}),this.chart.data(Cu(t)),Iu({chart:this.chart,options:this.options},!0),this.chart.emit(l.AFTER_CHANGE_DATA,yn.fromData(this.chart,l.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Au},e}(vc),Bu=n(708),Lu={exp:Bu.regressionExp,linear:Bu.regressionLinear,loess:Bu.regressionLoess,log:Bu.regressionLog,poly:Bu.regressionPoly,pow:Bu.regressionPow,quad:Bu.regressionQuad};var Du=function(t,e){var n=e.view,r=e.options,i=r.xField,o=r.yField,a=n.getScaleByField(i),s=n.getScaleByField(o);return function(t,e,n){var r=[],i=t[0],o=null;if(t.length<=2)return function(t,e){var n=[];if(t.length){n.push(["M",t[0].x,t[0].y]);for(var r=1,i=t.length;r<i;r+=1){var o=t[r];n.push(["L",o.x,o.y])}e&&n.push(["Z"])}return n}(t,e);for(var a=0,s=t.length;a<s;a++){var c=t[a];o&&o.x===c.x&&o.y===c.y||(r.push(c.x),r.push(c.y),o=c)}var l=ms(r,e,n||[[0,0],[1,1]]);return l.unshift(["M",i.x,i.y]),l}(t.map((function(t){return n.getCoordinate().convert({x:a.scale(t[0]),y:s.scale(t[1])})})),!1)},Fu=function(t){var e,n=t.options,r=n.xField,i=n.yField,o=n.data,a=n.regressionLine,s=a.type,l=void 0===s?"linear":s,u=a.algorithm,h=a.equation,d=null;u?(e=Object(c.C)(u)?u:u(o),d=h):d=function(t,e){var n,r,i,o=function(t){return Number.isFinite(t)?(e=t,void 0===n&&(n=4),Math.round(e*Math.pow(10,n))/Math.pow(10,n)):"?";var e,n};switch(t){case"linear":return"y = ".concat(o(e.a),"x + ").concat(o(e.b),", R^2 = ").concat(o(e.rSquared));case"exp":return"y = ".concat(o(e.a),"e^(").concat(o(e.b),"x), R^2 = ").concat(o(e.rSquared));case"log":return"y = ".concat(o(e.a),"ln(x) + ").concat(o(e.b),", R^2 = ").concat(o(e.rSquared));case"quad":return"y = ".concat(o(e.a),"x^2 + ").concat(o(e.b),"x + ").concat(o(e.c),", R^2 = ").concat(o(e.rSquared));case"poly":for(var a="y = ".concat(o(null===(n=e.coefficients)||void 0===n?void 0:n[0])," + ").concat(o(null===(r=e.coefficients)||void 0===r?void 0:r[1]),"x + ").concat(o(null===(i=e.coefficients)||void 0===i?void 0:i[2]),"x^2"),s=3;s<e.coefficients.length;++s)a+=" + ".concat(o(e.coefficients[s]),"x^").concat(s);return"".concat(a,", R^2 = ").concat(o(e.rSquared));case"pow":return"y = ".concat(o(e.a),"x^").concat(o(e.b),", R^2 = ").concat(o(e.rSquared))}return null}(l,e=Lu[l]().x((function(t){return t[r]})).y((function(t){return t[i]}))(o));return[Du(e,t),d]};function Ru(t){var e=t.data,n=void 0===e?[]:e,r=t.xField,i=t.yField;if(n.length){for(var o=!0,a=!0,l=n[0],u=void 0,h=1;h<n.length&&(u=n[h],l[r]!==u[r]&&(o=!1),l[i]!==u[i]&&(a=!1),o||a);h++)l=u;var d=[];o&&d.push(r),a&&d.push(i);var f=qa(function(t){var e,n=t.meta,r=void 0===n?{}:n,i=t.xField,o=t.yField,a=t.data,l=a[0][i],u=a[0][o],h=l>0,d=u>0;function f(t,e){var n=Object(c.s)(r,[t]);function i(t){return Object(c.s)(n,t)}var o={};return"x"===e?(Object(c.M)(l)&&(Object(c.M)(i("min"))||(o.min=h?0:2*l),Object(c.M)(i("max"))||(o.max=h?2*l:0)),o):(Object(c.M)(u)&&(Object(c.M)(i("min"))||(o.min=d?0:2*u),Object(c.M)(i("max"))||(o.max=d?2*u:0)),o)}return Object(s.a)(Object(s.a)({},r),((e={})[i]=Object(s.a)(Object(s.a)({},r[i]),f(i,"x")),e[o]=Object(s.a)(Object(s.a)({},r[o]),f(o,"y")),e))}(t),d);return as({},t,{meta:f})}return t}function Nu(t){var e=t.chart,n=t.options,r=n.data,i=n.type,o=n.color,a=n.shape,l=n.pointStyle,u=n.shapeField,h=n.colorField,d=n.xField,f=n.yField,p=n.sizeField,g=n.size,v=n.tooltip;p&&(g||(g=[2,8]),Object(c.M)(g)&&(g=[g,g])),v&&!v.fields&&(v=Object(s.a)(Object(s.a)({},v),{fields:[d,f,h,p,u]})),e.data(r),hc(as({},t,{options:{seriesField:h,point:{color:o,shape:a,size:g,style:l},tooltip:v}}));var y=ls(e,"point");return i&&y.adjust(i),t}function zu(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField,s=Ru(n);return cs(Us(((e={})[o]=r,e[a]=i,e)))(as({},t,{options:s}))}function Wu(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return e.axis(o,r),e.axis(a,i),t}function $u(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField,o=n.shapeField,a=n.sizeField,s=n.shapeLegend,c=n.sizeLegend,l=!1!==r;return i&&e.legend(i,!!l&&r),o&&(s?e.legend(o,s):e.legend(o,!1!==s&&r)),a&&e.legend(a,c||!1),l||s||c||e.legend(!1),t}function Hu(t){var e=t.chart,n=t.options,r=n.label,i=n.yField,o=ls(e,"point");if(r){var a=r.callback,c=Object(s.f)(r,["callback"]);o.label({fields:[i],callback:a,cfg:fs(c)})}else o.label(!1);return t}function Yu(t){var e=t.options.quadrant,n=[];if(e){var r=e.xBaseline,i=void 0===r?0:r,o=e.yBaseline,a=void 0===o?0:o,c=e.labels,l=e.regionStyle,u=e.lineStyle,h=function(t,e){return{regionStyle:[{position:{start:[t,"max"],end:["max",e]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:["min","max"],end:[t,e]},style:{fill:"#a3dda1",opacity:.4}},{position:{start:["min",e],end:[t,"min"]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:[t,e],end:["max","min"]},style:{fill:"#a3dda1",opacity:.4}}],lineStyle:{stroke:"#9ba29a",lineWidth:1},labelStyle:[{position:["max",e],offsetX:-10,offsetY:-10,style:{textAlign:"right",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",e],offsetX:10,offsetY:-10,style:{textAlign:"left",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",e],offsetX:10,offsetY:10,style:{textAlign:"left",textBaseline:"top",fontSize:14,fill:"#ccc"}},{position:["max",e],offsetX:-10,offsetY:10,style:{textAlign:"right",textBaseline:"top",fontSize:14,fill:"#ccc"}}]}}(i,a);new Array(4).join(",").split(",").forEach((function(t,e){n.push(Object(s.a)(Object(s.a)({type:"region",top:!1},h.regionStyle[e].position),{style:as({},h.regionStyle[e].style,null==l?void 0:l[e])}),Object(s.a)({type:"text",top:!0},as({},h.labelStyle[e],null==c?void 0:c[e])))})),n.push({type:"line",top:!1,start:["min",a],end:["max",a],style:as({},h.lineStyle,u)},{type:"line",top:!1,start:[i,"min"],end:[i,"max"],style:as({},h.lineStyle,u)})}return cs(qs(n))(t)}function Vu(t){var e=t.options,n=t.chart,r=e.regressionLine;if(r){var i=r.style,o=r.equationStyle,a=void 0===o?{}:o,c=r.top,l=void 0!==c&&c,u=r.showEquation,h=void 0!==u&&u,d={stroke:"#9ba29a",lineWidth:2,opacity:.5},f={x:20,y:20,textAlign:"left",textBaseline:"middle",fontSize:14,fillOpacity:.5};n.annotation().shape({top:l,render:function(t,r){var o=t.addGroup({id:"".concat(n.id,"-regression-line"),name:"regression-line-group"}),c=Fu({view:r,options:e}),l=c[0],u=c[1];o.addShape("path",{name:"regression-line",attrs:Object(s.a)(Object(s.a)({path:l},d),i)}),h&&o.addShape("text",{name:"regression-equation",attrs:Object(s.a)(Object(s.a)(Object(s.a)({},f),a),{text:u})})}})}return t}function Gu(t){var e=t.chart,n=t.options.tooltip;return n?e.tooltip(n):!1===n&&e.tooltip(!1),t}function Ku(t){return cs(Nu,zu,Wu,$u,Gu,Hu,Fc,Ks,Xs,Hs,Yu,Ys,Vs,Vu)(t)}var Xu=as({},vc.getDefaultOptions(),{size:4,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!0,crosshairs:{type:"xy"}}});Ne("drag-move",{start:[{trigger:"plot:mousedown",action:"scale-translate:start"}],processing:[{trigger:"plot:mousemove",action:"scale-translate:translate",throttle:{wait:100,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseup",action:"scale-translate:end"}]});var Uu=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.type="scatter",r.on(l.BEFORE_RENDER,(function(t){var e,n,i=r,o=i.options,a=i.chart;if((null===(e=t.data)||void 0===e?void 0:e.source)===ma.FILTER){var c=r.chart.filterData(r.chart.getData());zu({chart:a,options:Object(s.a)(Object(s.a)({},o),{data:c})})}(null===(n=t.data)||void 0===n?void 0:n.source)===ma.RESET&&zu({chart:a,options:o})})),r}return Object(s.c)(e,t),e.getDefaultOptions=function(){return Xu},e.prototype.changeData=function(t){this.updateOption(Ru(as({},this.options,{data:t})));var e=this.options;zu({chart:this.chart,options:e}),this.chart.changeData(t)},e.prototype.getSchemaAdaptor=function(){return Ku},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e}(vc),qu="$$stock-range$$",Zu=as({},vc.getDefaultOptions(),{tooltip:{showMarkers:!1,showCrosshairs:!0,shared:!0,crosshairs:{type:"xy",follow:!0,text:function(t,e,n){var r;if("x"===t){var i=n[0];r=i?i.title:e}else r=e;return{position:"y"===t?"start":"end",content:r,style:{fill:"#dfdfdf"}}},textBackground:{padding:[2,4],style:{fill:"#666"}}}},interactions:[{type:"tooltip"}],legend:{position:"top-left"},risingFill:"#ef5350",fallingFill:"#26a69a"});function Qu(t,e){return Object(c.W)(t,(function(t){var n=t&&Object(s.a)({},t);if(Object(c.C)(e)&&n){var r=e[0],i=e[1],o=e[2],a=e[3];n.trend=n[r]<=n[i]?"up":"down",n[qu]=[n[r],n[i],n[o],n[a]]}return n}))}function Ju(t){var e=t.chart,n=t.options,r=n.yField,i=n.data,o=n.risingFill,a=n.fallingFill,s=n.tooltip,c=n.stockStyle;e.data(Qu(i,r));var l=s;return!1!==l&&(l=as({},{fields:r},l)),fc(as({},t,{options:{schema:{shape:"candle",color:[o,a],style:c},yField:qu,seriesField:"trend",rawFields:r,tooltip:l}})),t}function th(t){var e,n,r=t.chart,i=t.options,o=i.meta,a=i.xAxis,s=i.yAxis,c=i.xField,l=((e={})[c]={type:"timeCat",tickCount:6},e.trend={values:["up","down"]},e),u=as(l,o,((n={})[c]=qa(a,Ga),n[qu]=qa(s,Ga),n));return r.scale(u),t}function eh(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(qu,!1):e.axis(qu,i),t}function nh(t){var e=t.chart,n=t.options.tooltip;return!1!==n?e.tooltip(n):e.tooltip(!1),t}function rh(t){var e=t.chart,n=t.options.legend;return n?e.legend("trend",n):!1===n&&e.legend(!1),t}function ih(t){cs(Vs,Ju,th,eh,nh,rh,Hs,Ys,qs(),Ks)(t)}var oh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="stock",e}return Object(s.c)(e,t),e.getDefaultOptions=function(){return Zu},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return ih},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options.yField;this.chart.changeData(Qu(t,e))},e}(vc);function ah(t){return Object(c.W)(t||[],(function(t,e){return{x:"".concat(e),y:t}}))}var sh={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(t,e){return"".concat(Object(c.s)(e,[0,"data","y"],0))},containerTpl:'<div class="g2-tooltip"><div class="g2-tooltip-list"></div></div>',itemTpl:"<span>{value}</span>",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}},showCrosshairs:!0,crosshairs:{type:"x"}},ch={appendPadding:2,tooltip:Object(s.a)({},sh),animation:{}};function lh(t){var e=t.chart,n=t.options,r=n.data,i=n.color,o=n.areaStyle,a=n.point,s=n.line,c=null==a?void 0:a.state,l=ah(r);e.data(l);var u=as({},t,{options:{xField:"x",yField:"y",area:{color:i,style:o},line:s,point:a}}),h=as({},u,{options:{tooltip:!1}}),d=as({},u,{options:{tooltip:!1,state:c}});return sc(u),uc(h),hc(d),e.axis(!1),e.legend(!1),t}function uh(t){var e,n,r=t.options,i=r.xAxis,o=r.yAxis,a=ah(r.data);return cs(Us(((e={}).x=i,e.y=o,e),((n={}).x={type:"cat"},n.y=Za(a,"y"),n)))(t)}function hh(t){return cs(zs("areaStyle"),lh,uh,$s,Vs,Ys,qs())(t)}var dh={appendPadding:2,tooltip:Object(s.a)({},sh),color:"l(90) 0:#E5EDFE 1:#ffffff",areaStyle:{fillOpacity:.6},line:{size:1,color:"#5B8FF9"},animation:{}},fh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tiny-area",e}return Object(s.c)(e,t),e.getDefaultOptions=function(){return dh},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.chart;uh({chart:e,options:this.options}),e.changeData(ah(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return hh},e}(vc);function ph(t){var e=t.chart,n=t.options,r=n.data,i=n.color,o=n.columnStyle,a=n.columnWidthRatio,s=ah(r);return e.data(s),lc(as({},t,{options:{xField:"x",yField:"y",widthRatio:a,interval:{style:o,color:i}}})),e.axis(!1),e.legend(!1),e.interaction("element-active"),t}function gh(t){return cs(Vs,zs("columnStyle"),ph,uh,$s,Ys,qs())(t)}var vh={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(t,e){return"".concat(Object(c.s)(e,[0,"data","y"],0))},containerTpl:'<div class="g2-tooltip"><div class="g2-tooltip-list"></div></div>',itemTpl:"<span>{value}</span>",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}}},yh={appendPadding:2,tooltip:Object(s.a)({},vh),animation:{}},mh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tiny-column",e}return Object(s.c)(e,t),e.getDefaultOptions=function(){return yh},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.chart;uh({chart:e,options:this.options}),e.changeData(ah(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return gh},e}(vc);function bh(t){var e=t.chart,n=t.options,r=n.data,i=n.color,o=n.lineStyle,a=n.point,s=null==a?void 0:a.state,c=ah(r);e.data(c);var l=as({},t,{options:{xField:"x",yField:"y",line:{color:i,style:o},point:a}}),u=as({},l,{options:{tooltip:!1,state:s}});return uc(l),hc(u),e.axis(!1),e.legend(!1),t}function xh(t){return cs(bh,uh,Vs,$s,Ys,qs())(t)}var Oh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tiny-line",e}return Object(s.c)(e,t),e.getDefaultOptions=function(){return ch},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.chart;uh({chart:e,options:this.options}),e.changeData(ah(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return xh},e}(vc),jh={line:Mc,pie:xu,column:Zc,bar:rl,area:Ic,gauge:Gl,"tiny-line":xh,"tiny-column":gh,"tiny-area":hh,"ring-progress":Au,progress:Su,scatter:Ku,histogram:eu,funnel:Ll,stock:ih},wh={line:iu,pie:Ou,column:cl,bar:al,area:Pc,gauge:Kl,"tiny-line":Oh,"tiny-column":mh,"tiny-area":fh,"ring-progress":Tu,progress:Eu,scatter:Uu,histogram:nu,funnel:Fl,stock:oh},Ch={pie:{label:!1},column:{tooltip:{showMarkers:!1}},bar:{tooltip:{showMarkers:!1}}};function _h(t,e,n){var r=wh[t];r?(0,jh[t])({chart:e,options:as({},r.getDefaultOptions(),Object(c.s)(Ch,t,{}),n)}):console.error("could not find ".concat(t," plot"))}function Mh(t){var e=t.chart,n=t.options,r=n.views,i=n.legend;return Object(c.j)(r,(function(t){var n=t.region,r=t.data,i=t.meta,o=t.axes,a=t.coordinate,l=t.interactions,u=t.annotations,h=t.tooltip,d=t.geometries,f=e.createView({region:n});f.data(r);var p={};o&&Object(c.j)(o,(function(t,e){p[e]=qa(t,Ga)})),p=as({},i,p),f.scale(p),o?Object(c.j)(o,(function(t,e){f.axis(e,t)})):f.axis(!1),f.coordinate(a),Object(c.j)(d,(function(t){var e=ac({chart:f,options:t}).ext,n=t.adjust;n&&e.geometry.adjust(n)})),Object(c.j)(l,(function(t){!1===t.enable?f.removeInteraction(t.type):f.interaction(t.type,t.cfg)})),Object(c.j)(u,(function(t){f.annotation()[t.type](Object(s.a)({},t))})),"boolean"==typeof t.animation?f.animate(!1):(f.animate(!0),Object(c.j)(f.geometries,(function(e){e.animate(t.animation)}))),h&&(f.interaction("tooltip"),f.tooltip(h))})),i?Object(c.j)(i,(function(t,n){e.legend(n,t)})):e.legend(!1),e.tooltip(n.tooltip),t}function Sh(t){var e=t.chart,n=t.options,r=n.plots,i=n.data,o=void 0===i?[]:i;return Object(c.j)(r,(function(t){var n=t.type,r=t.region,i=t.options,a=void 0===i?{}:i,c=t.top,l=a.tooltip;if(c)_h(n,e,Object(s.a)(Object(s.a)({},a),{data:o}));else{var u=e.createView(Object(s.a)({region:r},qa(a,gc)));l&&u.interaction("tooltip"),_h(n,u,Object(s.a)({data:o},a))}})),t}function Eh(t){var e=t.chart,n=t.options;return e.option("slider",n.slider),t}function kh(t){return cs(Ys,Mh,Sh,Hs,Ys,Vs,$s,Eh,qs())(t)}Lt("association",function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.getAssociationItems=function(t,e){var n,r=this.context.event,i=e||{},o=i.linkField,a=i.dim,s=[];if(null===(n=r.data)||void 0===n?void 0:n.data){var l=r.data.data;Object(c.j)(t,(function(t){var e,n,r=o;if("x"===a?r=t.getXScale().field:"y"===a?r=null===(e=t.getYScales().find((function(t){return t.field===r})))||void 0===e?void 0:e.field:r||(r=null===(n=t.getGroupScales()[0])||void 0===n?void 0:n.field),r){var i=Object(c.W)(us(t),(function(e){var n=!1,i=!1,o=Object(c.C)(l)?Object(c.s)(l[0],r):Object(c.s)(l,r);return function(t,e){var n=t.getModel().data;return Object(c.C)(n)?n[0][e]:n[e]}(e,r)===o?n=!0:i=!0,{element:e,view:t,active:n,inactive:i}}));s.push.apply(s,i)}}))}return s},e.prototype.showTooltip=function(t){var e=_s(this.context.view),n=this.getAssociationItems(e,t);Object(c.j)(n,(function(t){if(t.active){var e=t.element.shape.getCanvasBBox();t.view.showTooltip({x:e.minX+e.width/2,y:e.minY+e.height/2})}}))},e.prototype.hideTooltip=function(){var t=_s(this.context.view);Object(c.j)(t,(function(t){t.hideTooltip()}))},e.prototype.active=function(t){var e=Cs(this.context.view),n=this.getAssociationItems(e,t);Object(c.j)(n,(function(t){var e=t.active,n=t.element;e&&n.setState("active",!0)}))},e.prototype.selected=function(t){var e=Cs(this.context.view),n=this.getAssociationItems(e,t);Object(c.j)(n,(function(t){var e=t.active,n=t.element;e&&n.setState("selected",!0)}))},e.prototype.highlight=function(t){var e=Cs(this.context.view),n=this.getAssociationItems(e,t);Object(c.j)(n,(function(t){var e=t.inactive,n=t.element;e&&n.setState("inactive",!0)}))},e.prototype.reset=function(){var t=Cs(this.context.view);Object(c.j)(t,(function(t){var e;e=us(t),Object(c.j)(e,(function(t){t.hasState("active")&&t.setState("active",!1),t.hasState("selected")&&t.setState("selected",!1),t.hasState("inactive")&&t.setState("inactive",!1)}))}))},e}(At)),Ne("association-active",{start:[{trigger:"element:mouseenter",action:"association:active"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Ne("association-selected",{start:[{trigger:"element:mouseenter",action:"association:selected"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Ne("association-highlight",{start:[{trigger:"element:mouseenter",action:"association:highlight"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Ne("association-tooltip",{start:[{trigger:"element:mousemove",action:"association:showTooltip"}],end:[{trigger:"element:mouseleave",action:"association:hideTooltip"}]});var Ih,Ah=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="mix",e}return Object(s.c)(e,t),e.prototype.getSchemaAdaptor=function(){return kh},e}(vc);!function(t){t.DEV="DEV",t.BETA="BETA",t.STABLE="STABLE"}(Ih||(Ih={}));!function(){function t(){}Object.defineProperty(t,"MultiView",{get:function(){var t,e;return t=Ih.STABLE,e="MultiView",console.warn(t===Ih.DEV?"Plot '".concat(e,"' is in DEV stage, just give us issues."):t===Ih.BETA?"Plot '".concat(e,"' is in BETA stage, DO NOT use it in production env."):t===Ih.STABLE?"Plot '".concat(e,"' is in STABLE stage, import it by \"import { ").concat(e," } from '@antv/g2plot'\"."):"invalid Stage type."),Ah},enumerable:!1,configurable:!0})}();function Ph(t,e,n,r,i){var o=[];e.forEach((function(e){r.forEach((function(r){var i,a=((i={})[t]=r[t],i[n]=e,i[e]=r[e],i);o.push(a)}))}));var a=Object.values(Object(c.w)(o,n)),s=a[0],l=void 0===s?[]:s,u=a[1],h=void 0===u?[]:u;return i?[l.reverse(),h.reverse()]:[l,h]}function Th(t){return"vertical"!==t}function Bh(t,e,n){var r=e[0],i=e[1],o=r.autoPadding,a=i.autoPadding,s=t.__axisPosition,c=s.layout,l=s.position;if(Th(c)&&"top"===l&&(r.autoPadding=n.instance(o.top,0,o.bottom,o.left),i.autoPadding=n.instance(a.top,o.left,a.bottom,0)),Th(c)&&"bottom"===l&&(r.autoPadding=n.instance(o.top,o.right/2+5,o.bottom,o.left),i.autoPadding=n.instance(a.top,a.right,a.bottom,o.right/2+5)),!Th(c)&&"bottom"===l){var u=o.left>=a.left?o.left:a.left;r.autoPadding=n.instance(o.top,o.right,o.bottom/2+5,u),i.autoPadding=n.instance(o.bottom/2+5,a.right,a.bottom,u)}if(!Th(c)&&"top"===l){u=o.left>=a.left?o.left:a.left;r.autoPadding=n.instance(o.top,o.right,0,u),i.autoPadding=n.instance(0,a.right,o.top,u)}}function Lh(t){var e,n,r=t.chart,i=t.options,o=i.data,a=i.xField,s=i.yField,c=i.color,l=i.barStyle,u=i.widthRatio,h=i.legend,d=i.layout,f=Ph(a,s,"series-field-key",o,Th(d));h?r.legend("series-field-key",h):!1===h&&r.legend(!1);var p=f[0],g=f[1];return Th(d)?((e=r.createView({region:{start:{x:0,y:0},end:{x:.5,y:1}},id:"first-axes-view"})).coordinate().transpose().reflect("x"),(n=r.createView({region:{start:{x:.5,y:0},end:{x:1,y:1}},id:"second-axes-view"})).coordinate().transpose(),e.data(p),n.data(g)):(e=r.createView({region:{start:{x:0,y:0},end:{x:1,y:.5}},id:"first-axes-view"}),(n=r.createView({region:{start:{x:0,y:.5},end:{x:1,y:1}},id:"second-axes-view"})).coordinate().reflect("y"),e.data(p),n.data(g)),lc(as({},t,{chart:e,options:{widthRatio:u,xField:a,yField:s[0],seriesField:"series-field-key",interval:{color:c,style:l}}})),lc(as({},t,{chart:n,options:{xField:a,yField:s[1],seriesField:"series-field-key",widthRatio:u,interval:{color:c,style:l}}})),t}function Dh(t){var e,n,r,i=t.options,o=t.chart,a=i.xAxis,s=i.yAxis,l=i.xField,u=i.yField,h=ws(o,"first-axes-view"),d=ws(o,"second-axes-view"),f={};return Object(c.T)((null==i?void 0:i.meta)||{}).map((function(t){Object(c.s)(null==i?void 0:i.meta,[t,"alias"])&&(f[t]=i.meta[t].alias)})),o.scale(((e={})["series-field-key"]={sync:!0,formatter:function(t){return Object(c.s)(f,t,t)}},e)),Us(((n={})[l]=a,n[u[0]]=s[u[0]],n))(as({},t,{chart:h})),Us(((r={})[l]=a,r[u[1]]=s[u[1]],r))(as({},t,{chart:d})),t}function Fh(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField,c=n.layout,l=ws(e,"first-axes-view"),u=ws(e,"second-axes-view");return"bottom"===(null==r?void 0:r.position)?u.axis(o,Object(s.a)(Object(s.a)({},r),{label:{formatter:function(){return""}}})):u.axis(o,!1),!1===r?l.axis(o,!1):l.axis(o,Object(s.a)({position:Th(c)?"top":"bottom"},r)),!1===i?(l.axis(a[0],!1),u.axis(a[1],!1)):(l.axis(a[0],i[a[0]]),u.axis(a[1],i[a[1]])),e.__axisPosition={position:l.getOptions().axes[o].position,layout:c},t}function Rh(t){var e=t.chart;return Hs(as({},t,{chart:ws(e,"first-axes-view")})),Hs(as({},t,{chart:ws(e,"second-axes-view")})),t}function Nh(t){var e=t.chart,n=t.options,r=n.yField,i=n.yAxis;return Zs(as({},t,{chart:ws(e,"first-axes-view"),options:{yAxis:i[r[0]]}})),Zs(as({},t,{chart:ws(e,"second-axes-view"),options:{yAxis:i[r[1]]}})),t}function zh(t){var e=t.chart;return Vs(as({},t,{chart:ws(e,"first-axes-view")})),Vs(as({},t,{chart:ws(e,"second-axes-view")})),Vs(t),t}function Wh(t){var e=t.chart;return Ys(as({},t,{chart:ws(e,"first-axes-view")})),Ys(as({},t,{chart:ws(e,"second-axes-view")})),t}function $h(t){var e,n,r=this,i=t.chart,o=t.options,a=o.label,c=o.yField,l=o.layout,u=ws(i,"first-axes-view"),h=ws(i,"second-axes-view"),d=ls(u,"interval"),f=ls(h,"interval");if(a){var p=a.callback,g=Object(s.f)(a,["callback"]);g.position||(g.position="middle"),void 0===g.offset&&(g.offset=2);var v=Object(s.a)({},g);if(Th(l)){var y=(null===(e=v.style)||void 0===e?void 0:e.textAlign)||("middle"===g.position?"center":"left");g.style=as({},g.style,{textAlign:y});v.style=as({},v.style,{textAlign:{left:"right",right:"left",center:"center"}[y]})}else{var m={top:"bottom",bottom:"top",middle:"middle"};"string"==typeof g.position?g.position=m[g.position]:"function"==typeof g.position&&(g.position=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return m[g.position.apply(r,t)]});var b=(null===(n=v.style)||void 0===n?void 0:n.textBaseline)||"bottom";v.style=as({},v.style,{textBaseline:b});g.style=as({},g.style,{textBaseline:{top:"bottom",bottom:"top",middle:"middle"}[b]})}d.label({fields:[c[0]],callback:p,cfg:fs(v)}),f.label({fields:[c[1]],callback:p,cfg:fs(g)})}else d.label(!1),f.label(!1);return t}function Hh(t){return cs(Lh,Dh,Fh,Nh,zh,$h,$s,Rh,Wh)(t)}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bidirectional-bar",e}Object(s.c)(e,t),e.getDefaultOptions=function(){return as({},t.getDefaultOptions.call(this),{syncViewPadding:Bh})},e.prototype.changeData=function(t){void 0===t&&(t=[]),this.chart.emit(l.BEFORE_CHANGE_DATA,yn.fromData(this.chart,l.BEFORE_CHANGE_DATA,null)),this.updateOption({data:t});var e=this.options,n=Ph(e.xField,e.yField,"series-field-key",t,Th(e.layout)),r=n[0],i=n[1],o=ws(this.chart,"first-axes-view"),a=ws(this.chart,"second-axes-view");o.data(r),a.data(i),this.chart.render(!0),this.chart.emit(l.AFTER_CHANGE_DATA,yn.fromData(this.chart,l.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Hh},e.SERIES_FIELD_KEY="series-field-key"}(vc);var Yh,Vh=as({},vc.getDefaultOptions(),{meta:(Yh={},Yh.$$range$$={min:0,alias:"low-q1-median-q3-high"},Yh),interactions:[{type:"active-region"}],tooltip:{showMarkers:!1,shared:!0},boxStyle:{lineWidth:1}}),Gh=function(t,e){var n=t;if(Array.isArray(e)){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4];n=Object(c.W)(t,(function(t){return t.$$range$$=[t[r],t[i],t[o],t[a],t[s]],t}))}return n};function Kh(t){var e=t.chart,n=t.options,r=n.xField,i=n.yField,o=n.groupField,a=n.color,s=n.tooltip,l=n.boxStyle;e.data(Gh(n.data,i));var u=Object(c.C)(i)?"$$range$$":i,h=i?Object(c.C)(i)?i:[i]:[],d=s;!1!==d&&(d=as({},{fields:Object(c.C)(i)?i:[]},d));var f=fc(as({},t,{options:{xField:r,yField:u,seriesField:o,tooltip:d,rawFields:h,label:!1,schema:{shape:"box",color:a,style:l}}})).ext;return o&&f.geometry.adjust("dodge"),t}function Xh(t){var e=t.chart,n=t.options,r=n.xField,i=n.data,o=n.outliersField,a=n.outliersStyle,c=n.padding,l=n.label;if(!o)return t;var u=e.createView({padding:c,id:"outliers_view"}),h=i.reduce((function(t,e){return e[o].forEach((function(n){var r;return t.push(Object(s.a)(Object(s.a)({},e),((r={})[o]=n,r)))})),t}),[]);return u.data(h),hc({chart:u,options:{xField:r,yField:o,point:{shape:"circle",style:a},label:l}}),u.axis(!1),t}function Uh(t){var e,n,r=t.chart,i=t.options,o=i.meta,a=i.xAxis,s=i.yAxis,c=i.xField,l=i.yField,u=i.outliersField,h=Array.isArray(l)?"$$range$$":l,d={};if(u){(e={})[u]={sync:"$$y_outliers$$",nice:!0},e[h]={sync:"$$y_outliers$$",nice:!0},d=e}var f=as(d,o,((n={})[c]=qa(a,Ga),n[h]=qa(s,Ga),n));return r.scale(f),t}function qh(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField,s=Array.isArray(a)?"$$range$$":a;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis("$$range$$",!1):e.axis(s,i),t}function Zh(t){var e=t.chart,n=t.options,r=n.legend,i=n.groupField;return i?r?e.legend(i,r):e.legend(i,{position:"bottom"}):e.legend(!1),t}function Qh(t){return cs(Kh,Xh,Uh,qh,Zh,$s,qs(),Hs,Ys,Vs)(t)}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="box",e}Object(s.c)(e,t),e.getDefaultOptions=function(){return Vh},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options.yField,n=this.chart.views.find((function(t){return"outliers_view"===t.id}));n&&n.data(t),this.chart.changeData(Gh(t,e))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Qh}}(vc);function Jh(t,e,n){return t.length>1?"".concat(e,"_").concat(n):"".concat(e)}function td(t){var e=t.data,n=t.xField,r=t.measureField,i=t.rangeField,o=t.targetField,a=t.layout,s=[],c=[];e.forEach((function(t,e){var a=[t[i]].flat();a.sort((function(t,e){return t-e})),a.forEach((function(r,o){var c,l=0===o?r:a[o]-a[o-1];s.push(((c={rKey:"".concat(i,"_").concat(o)})[n]=n?t[n]:String(e),c[i]=l,c))}));var l=[t[r]].flat();l.forEach((function(i,o){var a;s.push(((a={mKey:Jh(l,r,o)})[n]=n?t[n]:String(e),a[r]=i,a))}));var u=[t[o]].flat();u.forEach((function(r,i){var a;s.push(((a={tKey:Jh(u,o,i)})[n]=n?t[n]:String(e),a[o]=r,a))})),c.push(t[i],t[r],t[o])}));var l=Math.min.apply(Math,c.flat(1/0)),u=Math.max.apply(Math,c.flat(1/0));return l=l>0?0:l,"vertical"===a&&s.reverse(),{min:l,max:u,ds:s}}function ed(t){var e=t.chart,n=t.options,r=n.bulletStyle,i=n.targetField,o=n.rangeField,a=n.measureField,l=n.xField,u=n.color,h=n.layout,d=n.size,f=n.label,p=td(n),g=p.min,v=p.max,y=p.ds;return e.data(y),lc(as({},t,{options:{xField:l,yField:o,seriesField:"rKey",isStack:!0,label:Object(c.s)(f,"range"),interval:{color:Object(c.s)(u,"range"),style:Object(c.s)(r,"range"),size:Object(c.s)(d,"range")}}})),e.geometries[0].tooltip(!1),lc(as({},t,{options:{xField:l,yField:a,seriesField:"mKey",isStack:!0,label:Object(c.s)(f,"measure"),interval:{color:Object(c.s)(u,"measure"),style:Object(c.s)(r,"measure"),size:Object(c.s)(d,"measure")}}})),hc(as({},t,{options:{xField:l,yField:i,seriesField:"tKey",label:Object(c.s)(f,"target"),point:{color:Object(c.s)(u,"target"),style:Object(c.s)(r,"target"),size:Object(c.I)(Object(c.s)(d,"target"))?function(t){return Object(c.s)(d,"target")(t)/2}:Object(c.s)(d,"target")/2,shape:"horizontal"===h?"line":"hyphen"}}})),"horizontal"===h&&e.coordinate().transpose(),Object(s.a)(Object(s.a)({},t),{ext:{data:{min:g,max:v}}})}function nd(t){var e,n,r=t.options,i=t.ext,o=r.xAxis,a=r.yAxis,s=r.targetField,c=r.rangeField,l=r.measureField,u=r.xField,h=i.data;return cs(Us(((e={})[u]=o,e[l]=a,e),((n={})[l]={min:null==h?void 0:h.min,max:null==h?void 0:h.max,sync:!0},n[s]={sync:"".concat(l)},n[c]={sync:"".concat(l)},n)))(t)}function rd(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.measureField,s=n.rangeField,c=n.targetField;return e.axis("".concat(s),!1),e.axis("".concat(c),!1),!1===r?e.axis("".concat(o),!1):e.axis("".concat(o),r),!1===i?e.axis("".concat(a),!1):e.axis("".concat(a),i),t}function id(t){var e=t.chart,n=t.options.legend;return e.removeInteraction("legend-filter"),e.legend(n),e.legend("rKey",!1),e.legend("mKey",!1),e.legend("tKey",!1),t}function od(t){var e=t.chart,n=t.options,r=n.label,i=n.measureField,o=n.targetField,a=n.rangeField,l=e.geometries,u=l[0],h=l[1],d=l[2];return Object(c.s)(r,"range")?u.label("".concat(a),Object(s.a)({layout:[{type:"limit-in-plot"}]},fs(r.range))):u.label(!1),Object(c.s)(r,"measure")?h.label("".concat(i),Object(s.a)({layout:[{type:"limit-in-plot"}]},fs(r.measure))):h.label(!1),Object(c.s)(r,"target")?d.label("".concat(o),Object(s.a)({layout:[{type:"limit-in-plot"}]},fs(r.target))):d.label(!1),t}function ad(t){cs(ed,nd,rd,id,Vs,od,$s,Hs,Ys)(t)}var sd=as({},vc.getDefaultOptions(),{layout:"horizontal",size:{range:30,measure:20,target:20},xAxis:{tickLine:!1,line:null},bulletStyle:{range:{fillOpacity:.5}},label:{measure:{position:"right"}},tooltip:{showMarkers:!1}}),cd=(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bullet",e}Object(s.c)(e,t),e.getDefaultOptions=function(){return sd},e.prototype.changeData=function(t){this.updateOption({data:t});var e=td(this.options),n=e.min,r=e.max,i=e.ds;nd({options:this.options,ext:{data:{min:n,max:r}},chart:this.chart}),this.chart.changeData(i)},e.prototype.getSchemaAdaptor=function(){return ad},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()}}(vc),{y:0,nodeWidthRatio:.05,weight:!1,nodePaddingRatio:.1,id:function(t){return t.id},source:function(t){return t.source},target:function(t){return t.target},sourceWeight:function(t){return t.value||1},targetWeight:function(t){return t.value||1},sortBy:null});function ld(t,e){var n=function(t){return Object(c.b)({},cd,t)}(t),r={},i=e.nodes,o=e.links;return i.forEach((function(t){var e=n.id(t);r[e]=t})),function(t,e,n){Object(c.r)(t,(function(t,r){t.inEdges=e.filter((function(t){return"".concat(n.target(t))==="".concat(r)})),t.outEdges=e.filter((function(t){return"".concat(n.source(t))==="".concat(r)})),t.edges=t.outEdges.concat(t.inEdges),t.frequency=t.edges.length,t.value=0,t.inEdges.forEach((function(e){t.value+=n.targetWeight(e)})),t.outEdges.forEach((function(e){t.value+=n.sourceWeight(e)}))}))}(r,o,n),function(t,e){var n={weight:function(t,e){return e.value-t.value},frequency:function(t,e){return e.frequency-t.frequency},id:function(t,n){return"".concat(e.id(t)).localeCompare("".concat(e.id(n)))}}[e.sortBy];!n&&Object(c.I)(e.sortBy)&&(n=e.sortBy),n&&t.sort(n)}(i,n),{nodes:function(t,e){var n=t.length;if(!n)throw new TypeError("Invalid nodes: it's empty!");if(e.weight){var r=e.nodePaddingRatio;if(r<0||r>=1)throw new TypeError("Invalid nodePaddingRatio: it must be in range [0, 1)!");var i=r/(2*n),o=e.nodeWidthRatio;if(o<=0||o>=1)throw new TypeError("Invalid nodeWidthRatio: it must be in range (0, 1)!");var a=0;t.forEach((function(t){a+=t.value})),t.forEach((function(t){t.weight=t.value/a,t.width=t.weight*(1-r),t.height=o})),t.forEach((function(n,r){for(var a=0,s=r-1;s>=0;s--)a+=t[s].width+2*i;var c=n.minX=i+a,l=n.maxX=n.minX+n.width,u=n.minY=e.y-o/2,h=n.maxY=u+o;n.x=[c,l,l,c],n.y=[u,u,h,h]}))}else{var s=1/n;t.forEach((function(t,n){t.x=(n+.5)*s,t.y=e.y}))}return t}(i,n),links:function(t,e,n){if(n.weight){var r={};Object(c.r)(t,(function(t,e){r[e]=t.value})),e.forEach((function(e){var i=n.source(e),o=n.target(e),a=t[i],s=t[o];if(a&&s){var c=r[i],l=n.sourceWeight(e),u=a.minX+(a.value-c)/a.value*a.width,h=u+l/a.value*a.width;r[i]-=l;var d=r[o],f=n.targetWeight(e),p=s.minX+(s.value-d)/s.value*s.width,g=p+f/s.value*s.width;r[o]-=f;var v=n.y;e.x=[u,h,p,g],e.y=[v,v,v,v],e.source=a,e.target=s}}))}else e.forEach((function(e){var r=t[n.source(e)],i=t[n.target(e)];r&&i&&(e.x=[r.x,i.x],e.y=[r.y,i.y],e.source=r,e.target=i)}));return e}(r,o,n)}}var ud={nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.5,lineWidth:2},label:{fields:["x","name"],callback:function(t,e){return{offsetX:(t[0]+t[1])/2>.5?-4:4,content:e}},labelEmit:!0,style:{fill:"#8c8c8c"}},tooltip:{showTitle:!1,showMarkers:!1,fields:["source","target","value","isNode"],showContent:function(t){return!Object(c.s)(t,[0,"data","isNode"])},formatter:function(t){var e=t.source,n=t.target,r=t.value;return{name:"".concat(e," -> ").concat(n),value:r}}},interactions:[{type:"element-active"}],weight:!0,nodePaddingRatio:.1,nodeWidthRatio:.05};function hd(t){var e=t.options,n=e.data,r=e.sourceField,i=e.targetField,o=e.weightField,a=e.nodePaddingRatio,c=e.nodeWidthRatio,l=e.rawFields,u=void 0===l?[]:l,h=ld({weight:!0,nodePaddingRatio:a,nodeWidthRatio:c},Qa(n,r,i,o)),d=h.nodes,f=h.links,p=d.map((function(t){return Object(s.a)(Object(s.a)({},qa(t,Object(s.g)(["id","x","y","name"],u,!0))),{isNode:!0})})),g=f.map((function(t){return Object(s.a)(Object(s.a)({source:t.source.name,target:t.target.name,name:t.source.name||t.target.name},qa(t,Object(s.g)(["x","y","value"],u,!0))),{isNode:!1})}));return Object(s.a)(Object(s.a)({},t),{ext:Object(s.a)(Object(s.a)({},t.ext),{chordData:{nodesData:p,edgesData:g}})})}function dd(t){var e;return t.chart.scale(((e={x:{sync:!0,nice:!0},y:{sync:!0,nice:!0,max:1}}).name={sync:"color"},e.source={sync:"color"},e)),t}function fd(t){return t.chart.axis(!1),t}function pd(t){return t.chart.legend(!1),t}function gd(t){var e=t.chart,n=t.options.tooltip;return e.tooltip(n),t}function vd(t){return t.chart.coordinate("polar").reflect("y"),t}function yd(t){var e=t.chart,n=t.options,r=t.ext.chordData.nodesData,i=n.nodeStyle,o=n.label,a=n.tooltip,s=e.createView();return s.data(r),dc({chart:s,options:{xField:"x",yField:"y",seriesField:"name",polygon:{style:i},label:o,tooltip:a}}),t}function md(t){var e=t.chart,n=t.options,r=t.ext.chordData.edgesData,i=n.edgeStyle,o=n.tooltip,a=e.createView();return a.data(r),cc({chart:a,options:{xField:"x",yField:"y",seriesField:"source",edge:{style:i,shape:"arc"},tooltip:o}}),t}function bd(t){var e,n=t.chart;return Ms(n,t.options.animation,(e=n,Object(c.s)(e,["views","length"],0)<=0?e.geometries:Object(c.ib)(e.views,(function(t,e){return t.concat(e.geometries)}),e.geometries))),t}function xd(t){return cs(Vs,hd,vd,dd,fd,pd,gd,md,yd,Hs,Gs,bd)(t)}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="chord",e}Object(s.c)(e,t),e.getDefaultOptions=function(){return ud},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return xd}}(vc);var Od=["x","y","r","name","value","path","depth"],jd={colorField:"name",autoFit:!0,pointStyle:{lineWidth:0,stroke:"#fff"},legend:!1,hierarchyConfig:{size:[1,1],padding:0},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1}},wd={position:"top-left",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}},Cd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="drill-down",e.historyCache=[],e.breadCrumbGroup=null,e.breadCrumbCfg=wd,e}return Object(s.c)(e,t),e.prototype.click=function(){var t=Object(c.s)(this.context,["event","data","data"]);if(!t)return!1;this.drill(t),this.drawBreadCrumb()},e.prototype.resetPosition=function(){if(this.breadCrumbGroup){var t=this.context.view.getCoordinate(),e=this.breadCrumbGroup,n=e.getBBox(),r=this.getButtonCfg().position,i={x:t.start.x,y:t.end.y-(n.height+10)};t.isPolar&&(i={x:0,y:0}),"bottom-left"===r&&(i={x:t.start.x,y:t.start.y});var o=_r.transform(null,[["t",i.x+0,i.y+n.height+5]]);e.setMatrix(o)}},e.prototype.back=function(){Object(c.mb)(this.historyCache)&&this.backTo(this.historyCache.slice(0,-1))},e.prototype.reset=function(){this.historyCache[0]&&this.backTo(this.historyCache.slice(0,1)),this.historyCache=[],this.hideCrumbGroup()},e.prototype.drill=function(t){var e=this.context.view,n=Object(c.s)(e,["interactions","drill-down","cfg","transformData"],(function(t){return t})),r=n(Object(s.a)({data:t.data},t["hierarchy-data-transform-params"]));e.changeData(r);for(var i=[],o=t;o;){var a=o.data;i.unshift({id:"".concat(a.name,"_").concat(o.height,"_").concat(o.depth),name:a.name,children:n(Object(s.a)({data:a},t["hierarchy-data-transform-params"]))}),o=o.parent}this.historyCache=(this.historyCache||[]).slice(0,-1).concat(i)},e.prototype.backTo=function(t){if(t&&!(t.length<=0)){var e=this.context.view,n=Object(c.U)(t).children;e.changeData(n),t.length>1?(this.historyCache=t,this.drawBreadCrumb()):(this.historyCache=[],this.hideCrumbGroup())}},e.prototype.getButtonCfg=function(){var t=this.context.view,e=Object(c.s)(t,["interactions","drill-down","cfg","drillDownConfig"]);return as(this.breadCrumbCfg,null==e?void 0:e.breadCrumb,this.cfg)},e.prototype.drawBreadCrumb=function(){this.drawBreadCrumbGroup(),this.resetPosition(),this.breadCrumbGroup.show()},e.prototype.drawBreadCrumbGroup=function(){var t=this,e=this.getButtonCfg(),n=this.historyCache;this.breadCrumbGroup?this.breadCrumbGroup.clear():this.breadCrumbGroup=this.context.view.foregroundGroup.addGroup({name:"drilldown-bread-crumb"});var r=0;n.forEach((function(i,o){var a=t.breadCrumbGroup.addShape({type:"text",id:i.id,name:"".concat("drilldown-bread-crumb","_").concat(i.name,"_text"),attrs:Object(s.a)(Object(s.a)({text:0!==o||Object(c.K)(e.rootText)?i.name:e.rootText},e.textStyle),{x:r,y:0})}),l=a.getBBox();if(r+=l.width+4,a.on("click",(function(e){var r,i=e.target.get("id");if(i!==(null===(r=Object(c.U)(n))||void 0===r?void 0:r.id)){var o=n.slice(0,n.findIndex((function(t){return t.id===i}))+1);t.backTo(o)}})),a.on("mouseenter",(function(t){var r;t.target.get("id")!==(null===(r=Object(c.U)(n))||void 0===r?void 0:r.id)?a.attr(e.activeTextStyle):a.attr({cursor:"default"})})),a.on("mouseleave",(function(){a.attr(e.textStyle)})),o<n.length-1){var u=t.breadCrumbGroup.addShape({type:"text",name:"".concat(e.name,"_").concat(i.name,"_divider"),attrs:Object(s.a)(Object(s.a)({text:e.dividerText},e.textStyle),{x:r,y:0})}).getBBox();r+=u.width+4}}))},e.prototype.hideCrumbGroup=function(){this.breadCrumbGroup&&this.breadCrumbGroup.hide()},e.prototype.destroy=function(){this.breadCrumbGroup&&this.breadCrumbGroup.remove(),t.prototype.destroy.call(this)},e}(At);var _d=function(t){for(var e,n,r=0,i=(t=function(t){for(var e,n,r=t.length;r;)n=Math.random()*r--|0,e=t[r],t[r]=t[n],t[n]=e;return t}(Array.from(t))).length,o=[];r<i;)e=t[r],n&&Ed(n,e)?++r:(n=Id(o=Md(o,e)),r=0);return n};function Md(t,e){var n,r;if(kd(e,t))return[e];for(n=0;n<t.length;++n)if(Sd(e,t[n])&&kd(Ad(t[n],e),t))return[t[n],e];for(n=0;n<t.length-1;++n)for(r=n+1;r<t.length;++r)if(Sd(Ad(t[n],t[r]),e)&&Sd(Ad(t[n],e),t[r])&&Sd(Ad(t[r],e),t[n])&&kd(Pd(t[n],t[r],e),t))return[t[n],t[r],e];throw new Error}function Sd(t,e){var n=t.r-e.r,r=e.x-t.x,i=e.y-t.y;return n<0||n*n<r*r+i*i}function Ed(t,e){var n=t.r-e.r+1e-9*Math.max(t.r,e.r,1),r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function kd(t,e){for(var n=0;n<e.length;++n)if(!Ed(t,e[n]))return!1;return!0}function Id(t){switch(t.length){case 1:return{x:(e=t[0]).x,y:e.y,r:e.r};case 2:return Ad(t[0],t[1]);case 3:return Pd(t[0],t[1],t[2])}var e}function Ad(t,e){var n=t.x,r=t.y,i=t.r,o=e.x,a=e.y,s=e.r,c=o-n,l=a-r,u=s-i,h=Math.sqrt(c*c+l*l);return{x:(n+o+c/h*u)/2,y:(r+a+l/h*u)/2,r:(h+i+s)/2}}function Pd(t,e,n){var r=t.x,i=t.y,o=t.r,a=e.x,s=e.y,c=e.r,l=n.x,u=n.y,h=n.r,d=r-a,f=r-l,p=i-s,g=i-u,v=c-o,y=h-o,m=r*r+i*i-o*o,b=m-a*a-s*s+c*c,x=m-l*l-u*u+h*h,O=f*p-d*g,j=(p*x-g*b)/(2*O)-r,w=(g*v-p*y)/O,C=(f*b-d*x)/(2*O)-i,_=(d*y-f*v)/O,M=w*w+_*_-1,S=2*(o+j*w+C*_),E=j*j+C*C-o*o,k=-(M?(S+Math.sqrt(S*S-4*M*E))/(2*M):E/S);return{x:r+j+w*k,y:i+C+_*k,r:k}}function Td(t,e,n){var r,i,o,a,s=t.x-e.x,c=t.y-e.y,l=s*s+c*c;l?(i=e.r+n.r,i*=i,a=t.r+n.r,i>(a*=a)?(r=(l+a-i)/(2*l),o=Math.sqrt(Math.max(0,a/l-r*r)),n.x=t.x-r*s-o*c,n.y=t.y-r*c+o*s):(r=(l+i-a)/(2*l),o=Math.sqrt(Math.max(0,i/l-r*r)),n.x=e.x+r*s-o*c,n.y=e.y+r*c+o*s)):(n.x=e.x+n.r,n.y=e.y)}function Bd(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function Ld(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,o=(e.y*n.r+n.y*e.r)/r;return i*i+o*o}function Dd(t){this._=t,this.next=null,this.previous=null}function Fd(t){if(!(o=(e=t,t="object"==typeof e&&"length"in e?e:Array.from(e)).length))return 0;var e,n,r,i,o,a,s,c,l,u,h,d;if((n=t[0]).x=0,n.y=0,!(o>1))return n.r;if(r=t[1],n.x=-r.r,r.x=n.r,r.y=0,!(o>2))return n.r+r.r;Td(r,n,i=t[2]),n=new Dd(n),r=new Dd(r),i=new Dd(i),n.next=i.previous=r,r.next=n.previous=i,i.next=r.previous=n;t:for(c=3;c<o;++c){Td(n._,r._,i=t[c]),i=new Dd(i),l=r.next,u=n.previous,h=r._.r,d=n._.r;do{if(h<=d){if(Bd(l._,i._)){r=l,n.next=r,r.previous=n,--c;continue t}h+=l._.r,l=l.next}else{if(Bd(u._,i._)){(n=u).next=r,r.previous=n,--c;continue t}d+=u._.r,u=u.previous}}while(l!==u.next);for(i.previous=n,i.next=r,n.next=r.previous=r=i,a=Ld(n);(i=i.next)!==r;)(s=Ld(i))<a&&(n=i,a=s);r=n.next}for(n=[r._],i=r;(i=i.next)!==r;)n.push(i._);for(i=_d(n),c=0;c<o;++c)(n=t[c]).x-=i.x,n.y-=i.y;return i.r}var Rd=function(t){return Fd(t),t};function Nd(t){return null==t?null:zd(t)}function zd(t){if("function"!=typeof t)throw new Error;return t}function Wd(){return 0}var $d=function(t){return function(){return t}};function Hd(t){return Math.sqrt(t.value)}var Yd=function(){var t=null,e=1,n=1,r=Wd;function i(i){return i.x=e/2,i.y=n/2,t?i.eachBefore(Vd(t)).eachAfter(Gd(r,.5)).eachBefore(Kd(1)):i.eachBefore(Vd(Hd)).eachAfter(Gd(Wd,1)).eachAfter(Gd(r,i.r/Math.min(e,n))).eachBefore(Kd(Math.min(e,n)/(2*i.r))),i}return i.radius=function(e){return arguments.length?(t=Nd(e),i):t},i.size=function(t){return arguments.length?(e=+t[0],n=+t[1],i):[e,n]},i.padding=function(t){return arguments.length?(r="function"==typeof t?t:$d(+t),i):r},i};function Vd(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function Gd(t,e){return function(n){if(r=n.children){var r,i,o,a=r.length,s=t(n)*e||0;if(s)for(i=0;i<a;++i)r[i].r+=s;if(o=Fd(r),s)for(i=0;i<a;++i)r[i].r-=s;n.r=o+s}}}function Kd(t){return function(e){var n=e.parent;e.r*=t,n&&(e.x=n.x+t*e.x,e.y=n.y+t*e.y)}}function Xd(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function Ud(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=Zd)):void 0===e&&(e=qd);for(var n,r,i,o,a,s=new tf(t),c=[s];n=c.pop();)if((i=e(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)c.push(r=i[o]=new tf(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Jd)}function qd(t){return t.children}function Zd(t){return Array.isArray(t)?t[1]:null}function Qd(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function Jd(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function tf(t){this.data=t,this.depth=this.height=0,this.parent=null}tf.prototype=Ud.prototype={constructor:tf,count:function(){return this.eachAfter(Xd)},each:function(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this},eachAfter:function(t,e){for(var n,r,i,o=this,a=[o],s=[],c=-1;o=a.pop();)if(s.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=s.pop();)t.call(e,o,++c,this);return this},eachBefore:function(t,e){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(t.call(e,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;t=n.pop(),e=r.pop();for(;t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return Ud(this).eachBefore(Qd)},[Symbol.iterator]:function*(){var t,e,n,r,i=this,o=[i];do{for(t=o.reverse(),o=[];i=t.pop();)if(yield i,e=i.children)for(n=0,r=e.length;n<r;++n)o.push(e[n])}while(o.length)}};function ef(t,e){var n=t.field,r=t.fields;if(Object(c.Q)(n))return n;if(Object(c.C)(n))return console.warn("Invalid field: it must be a string!"),n[0];if(console.warn("".concat("Invalid field: it must be a string!"," will try to get fields instead.")),Object(c.Q)(r))return r;if(Object(c.C)(r)&&r.length)return r[0];if(e)return e;throw new TypeError("Invalid field: it must be a string!")}function nf(t){var e,n,r=[];t&&t.each?t.each((function(t){var i,o;t.parent!==e?(e=t.parent,n=0):n+=1;var a=Object(c.l)(((null===(i=t.ancestors)||void 0===i?void 0:i.call(t))||[]).map((function(t){return r.find((function(e){return e.name===t.name}))||t})),(function(e){var n=e.depth;return n>0&&n<t.depth}));t.nodeAncestor=a,t.childNodeCount=(null===(o=t.children)||void 0===o?void 0:o.length)||0,t.nodeIndex=n,r.push(t)})):t&&t.eachNode&&t.eachNode((function(t){r.push(t)}));return r}var rf={field:"value",as:["x","y","r"],sort:function(t,e){return e.value-t.value}};function of(t){var e=t.data,n=t.hierarchyConfig,r=t.rawFields,i=void 0===r?[]:r,o=t.enableDrillDown,a=function(t,e){var n,r=(e=Object(c.b)({},rf,e)).as;if(!Object(c.C)(r)||3!==r.length)throw new TypeError('Invalid as: it must be an array with 3 strings (e.g. [ "x", "y", "r" ])!');try{n=ef(e)}catch(t){console.warn(t)}var i=function(t){return Yd().size(e.size).padding(e.padding)(Ud(t).sum((function(t){return t[n]})).sort(e.sort))}(t),o=r[0],a=r[1],s=r[2];return i.each((function(t){t[o]=t.x,t[a]=t.y,t[s]=t.r})),nf(i)}(e,Object(s.a)(Object(s.a)({},n),{field:"value",as:["x","y","r"]})),l=[];return a.forEach((function(t){for(var e,r=t.data.name,a=Object(s.a)({},t);a.depth>1;)r="".concat(null===(e=a.parent.data)||void 0===e?void 0:e.name," / ").concat(r),a=a.parent;if(o&&t.depth>2)return null;var c=as({},t.data,Object(s.a)(Object(s.a)(Object(s.a)({},qa(t.data,i)),{path:r}),t));c.ext=n,c["hierarchy-data-transform-params"]={hierarchyConfig:n,rawFields:i,enableDrillDown:o},l.push(c)})),l}function af(t,e,n){var r=ys([t,e]),i=r[0],o=r[1],a=r[2],s=r[3],c=n.width-(s+o),l=n.height-(i+a),u=Math.min(c,l),h=(c-u)/2,d=(l-u)/2;return{finalPadding:[i+d,o+h,a+d,s+h],finalSize:u<0?0:u}}function sf(t){var e=t.chart,n=Math.min(e.viewBBox.width,e.viewBBox.height);return as({options:{size:function(t){return t.r*n}}},t)}function cf(t){var e=t.options,n=t.chart,r=n.viewBBox,i=e.padding,o=e.appendPadding,a=e.drilldown,s=o;(null==a?void 0:a.enabled)&&(s=ys([vs(n.appendPadding,Object(c.s)(a,["breadCrumb","position"])),o]));var l=af(i,s,r).finalPadding;return n.padding=l,n.appendPadding=0,t}function lf(t){var e=t.chart,n=t.options,r=e.padding,i=e.appendPadding,o=n.color,a=n.colorField,c=n.pointStyle,l=n.hierarchyConfig,u=n.sizeField,h=n.rawFields,d=void 0===h?[]:h,f=n.drilldown,p=of({data:n.data,hierarchyConfig:l,enableDrillDown:null==f?void 0:f.enabled,rawFields:d});e.data(p);var g=af(r,i,e.viewBBox).finalSize,v=function(t){return t.r*g};return u&&(v=function(t){return t[u]*g}),hc(as({},t,{options:{xField:"x",yField:"y",seriesField:a,sizeField:u,rawFields:Object(s.g)(Object(s.g)([],Od,!0),d,!0),point:{color:o,style:c,shape:"circle",size:v}}})),t}function uf(t){return cs(Us({},{x:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0},y:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0}}))(t)}function hf(t){var e=t.chart,n=t.options.tooltip;if(!1===n)e.tooltip(!1);else{var r=n;Object(c.s)(n,"fields")||(r=as({},{customItems:function(t){return t.map((function(t){var n=Object(c.s)(e.getOptions(),"scales"),r=Object(c.s)(n,["name","formatter"],(function(t){return t})),i=Object(c.s)(n,["value","formatter"],(function(t){return t}));return Object(s.a)(Object(s.a)({},t),{name:r(t.data.name),value:i(t.data.value)})}))}},r)),e.tooltip(r)}return t}function df(t){return t.chart.axis(!1),t}function ff(t){var e=t.drilldown,n=t.interactions,r=void 0===n?[]:n;return(null==e?void 0:e.enabled)?as({},t,{interactions:Object(s.g)(Object(s.g)([],r,!0),[{type:"drill-down",cfg:{drillDownConfig:e,transformData:of,enableDrillDown:!0}}],!1)}):t}function pf(t){return Hs({chart:t.chart,options:ff(t.options)}),t}function gf(t){return cs(zs("pointStyle"),sf,cf,Vs,uf,lf,df,Ws,hf,pf,Ys,qs())(t)}function vf(t){var e=Object(c.s)(t,["event","data","data"],{});return Object(c.C)(e.children)&&e.children.length>0}function yf(t){var e=t.view.getCoordinate(),n=e.innerRadius;if(n){var r=t.event,i=r.x,o=r.y,a=e.center,s=a.x,c=a.y,l=e.getRadius()*n;return Math.sqrt(Math.pow(s-i,2)+Math.pow(c-o,2))<l}return!1}Lt("drill-down-action",Cd),Ne("drill-down",{showEnable:[{trigger:"element:mouseenter",action:"cursor:pointer",isEnable:vf},{trigger:"element:mouseleave",action:"cursor:default"},{trigger:"element:mouseleave",action:"cursor:pointer",isEnable:yf}],start:[{trigger:"element:click",isEnable:vf,action:["drill-down-action:click"]},{trigger:"afterchangesize",action:["drill-down-action:resetPosition"]},{trigger:"click",isEnable:yf,action:["drill-down-action:back"]}]});!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle-packing",e}Object(s.c)(e,t),e.getDefaultOptions=function(){return jd},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return gf},e.prototype.triggerResize=function(){this.chart.destroyed||(this.chart.forceFit(),this.chart.clear(),this.execAdaptor(),this.chart.render(!0))}}(vc);var mf,bf,xf={nice:!0,label:{autoHide:!0,autoRotate:!1}},Of=Object(s.a)(Object(s.a)({},xf),{position:"left"}),jf=Object(s.a)(Object(s.a)({},xf),{position:"right",grid:null});function wf(t){return Object(c.s)(t,"geometry")===bf.Line}function Cf(t){return Object(c.s)(t,"geometry")===bf.Column}function _f(t,e,n){return Cf(n)?as({},{geometry:bf.Column,label:n.label&&n.isRange?{content:function(t){var n;return null===(n=t[e])||void 0===n?void 0:n.join("-")}}:void 0},n):Object(s.a)({geometry:bf.Line},n)}function Mf(t,e){var n=t[0],r=t[1];return Object(c.C)(e)?[e[0],e[1]]:[Object(c.s)(e,n),Object(c.s)(e,r)]}function Sf(t,e){return e===mf.Left?!1!==t&&as({},Of,t):e===mf.Right?!1!==t&&as({},jf,t):t}function Ef(t){var e=t.view,n=t.geometryOption,r=t.yField,i=t.legend,o=Object(c.s)(i,"marker"),a=ls(e,wf(n)?"line":"interval");if(!n.seriesField){var s=Object(c.s)(e,"options.scales.".concat(r,".alias"))||r,l=a.getAttribute("color"),u=e.getTheme().defaultColor;return l&&(u=_r.getMappingValue(l,s,Object(c.s)(l,["values",0],u))),[{value:r,name:s,marker:(Object(c.I)(o)?o:!Object(c.G)(o)&&as({},{style:{stroke:u,fill:u}},o))||(wf(n)?{symbol:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},style:{lineWidth:2,r:6,stroke:u}}:{symbol:"square",style:{fill:u}}),isGeometry:!0,viewId:e.id}]}var h=a.getGroupAttributes();return Object(c.ib)(h,(function(t,n){var r=_r.getLegendItems(e,a,n,e.getTheme(),o);return t.concat(r)}),[])}!function(t){t.Left="Left",t.Right="Right"}(mf||(mf={})),function(t){t.Line="line",t.Column="column"}(bf||(bf={}));var kf=function(t,e){var n=e[0],r=e[1],i=t.getOptions().data,o=t.getXScale(),a=Object(c.mb)(i);if(o&&a){var s=Object(c.yb)(i,o.field),l=s,u=Object(c.mb)(l),h=Math.floor(n*(u-1)),d=Math.floor(r*(u-1));t.filter(o.field,(function(t){var e=l.indexOf(t);return!(e>-1)||function(t,e,n){var r=Math.min(e,n),i=Math.max(e,n);return t>=r&&t<=i}(e,h,d)})),t.getRootView().render(!0)}};function If(t){var e,n=t.options,r=n.geometryOptions,i=void 0===r?[]:r,o=n.xField,a=n.yField,s=Object(c.k)(i,(function(t){var e=t.geometry;return e===bf.Line||void 0===e}));return as({},{options:{geometryOptions:[],meta:(e={},e[o]={type:"cat",sync:!0,range:s?[0,1]:void 0},e),tooltip:{showMarkers:s,showCrosshairs:s,shared:!0,crosshairs:{type:"x"}},interactions:s?[{type:"legend-visible-filter"}]:[{type:"legend-visible-filter"},{type:"active-region"}],legend:{position:"top-left"}}},t,{options:{yAxis:Mf(a,n.yAxis),geometryOptions:[_f(0,a[0],i[0]),_f(0,a[1],i[1])],annotations:Mf(a,n.annotations)}})}function Af(t){var e,n,r=t.chart,i=t.options.geometryOptions,o={line:0,column:1};return[{type:null===(e=i[0])||void 0===e?void 0:e.geometry,id:"left-axes-view"},{type:null===(n=i[1])||void 0===n?void 0:n.geometry,id:"right-axes-view"}].sort((function(t,e){return-o[t.type]+o[e.type]})).forEach((function(t){return r.createView({id:t.id})})),t}function Pf(t){var e=t.chart,n=t.options,r=n.xField,i=n.yField,o=n.geometryOptions,a=n.data,l=n.tooltip;return[Object(s.a)(Object(s.a)({},o[0]),{id:"left-axes-view",data:a[0],yField:i[0]}),Object(s.a)(Object(s.a)({},o[1]),{id:"right-axes-view",data:a[1],yField:i[1]})].forEach((function(t){var n=t.id,i=t.data,o=t.yField,a=Cf(t)&&t.isPercent,u=a?yc(i,o,r,o):i,h=ws(e,n).data(u),d=a?Object(s.a)({formatter:function(e){return{name:e[t.seriesField]||o,value:(100*Number(e[o])).toFixed(2)+"%"}}},l):l;!function(t){var e=t.options,n=t.chart,r=e.geometryOption,i=r.isStack,o=r.color,a=r.seriesField,l=r.groupField,u=r.isGroup,h=["xField","yField"];if(wf(r)){uc(as({},t,{options:Object(s.a)(Object(s.a)(Object(s.a)({},qa(e,h)),r),{line:{color:r.color,style:r.lineStyle}})})),hc(as({},t,{options:Object(s.a)(Object(s.a)(Object(s.a)({},qa(e,h)),r),{point:r.point&&Object(s.a)({color:o,shape:"circle"},r.point)})}));var d=[];u&&d.push({type:"dodge",dodgeBy:l||a,customOffset:0}),i&&d.push({type:"stack"}),d.length&&Object(c.j)(n.geometries,(function(t){t.adjust(d)}))}Cf(r)&&Zc(as({},t,{options:Object(s.a)(Object(s.a)(Object(s.a)({},qa(e,h)),r),{widthRatio:r.columnWidthRatio,interval:Object(s.a)(Object(s.a)({},qa(r,["color"])),{style:r.columnStyle})})}))}({chart:h,options:{xField:r,yField:o,tooltip:d,geometryOption:t}})})),t}function Tf(t){var e,n=t.chart,r=t.options.geometryOptions,i=(null===(e=n.getTheme())||void 0===e?void 0:e.colors10)||[],o=0;return n.once("beforepaint",(function(){Object(c.j)(r,(function(t,e){var r=ws(n,0===e?"left-axes-view":"right-axes-view");if(!t.color){var a=r.getGroupScales(),s=Object(c.s)(a,[0,"values","length"],1),l=i.slice(o,o+s).concat(0===e?[]:i);r.geometries.forEach((function(e){t.seriesField?e.color(t.seriesField,l):e.color(l[0])})),o+=s}})),n.render(!0)})),t}function Bf(t){var e,n,r=t.chart,i=t.options,o=i.xAxis,a=i.yAxis,s=i.xField,c=i.yField;return Us(((e={})[s]=o,e[c[0]]=a[0],e))(as({},t,{chart:ws(r,"left-axes-view")})),Us(((n={})[s]=o,n[c[1]]=a[1],n))(as({},t,{chart:ws(r,"right-axes-view")})),t}function Lf(t){var e=t.chart,n=t.options,r=ws(e,"left-axes-view"),i=ws(e,"right-axes-view"),o=n.xField,a=n.yField,s=n.xAxis,c=n.yAxis;return e.axis(o,!1),e.axis(a[0],!1),e.axis(a[1],!1),r.axis(o,s),r.axis(a[0],Sf(c[0],mf.Left)),i.axis(o,!1),i.axis(a[1],Sf(c[1],mf.Right)),t}function Df(t){var e=t.chart,n=t.options.tooltip,r=ws(e,"left-axes-view"),i=ws(e,"right-axes-view");return e.tooltip(n),r.tooltip({shared:!0}),i.tooltip({shared:!0}),t}function Ff(t){var e=t.chart;return Hs(as({},t,{chart:ws(e,"left-axes-view")})),Hs(as({},t,{chart:ws(e,"right-axes-view")})),t}function Rf(t){var e=t.chart,n=t.options.annotations,r=Object(c.s)(n,[0]),i=Object(c.s)(n,[1]);return qs(r)(as({},t,{chart:ws(e,"left-axes-view"),options:{annotations:r}})),qs(i)(as({},t,{chart:ws(e,"right-axes-view"),options:{annotations:i}})),t}function Nf(t){var e=t.chart;return Vs(as({},t,{chart:ws(e,"left-axes-view")})),Vs(as({},t,{chart:ws(e,"right-axes-view")})),Vs(t),t}function zf(t){var e=t.chart;return Ys(as({},t,{chart:ws(e,"left-axes-view")})),Ys(as({},t,{chart:ws(e,"right-axes-view")})),t}function Wf(t){var e=t.chart,n=t.options.yAxis;return Zs(as({},t,{chart:ws(e,"left-axes-view"),options:{yAxis:n[0]}})),Zs(as({},t,{chart:ws(e,"right-axes-view"),options:{yAxis:n[1]}})),t}function $f(t){var e=t.chart,n=t.options,r=n.legend,i=n.geometryOptions,o=n.yField,a=n.data,s=ws(e,"left-axes-view"),l=ws(e,"right-axes-view");if(!1===r)e.legend(!1);else if(Object(c.O)(r)&&!0===r.custom)e.legend(r);else{var u=Object(c.s)(i,[0,"legend"],r),h=Object(c.s)(i,[1,"legend"],r);e.once("beforepaint",(function(){var t=a[0].length?Ef({view:s,geometryOption:i[0],yField:o[0],legend:u}):[],n=a[1].length?Ef({view:l,geometryOption:i[1],yField:o[1],legend:h}):[];e.legend(as({},r,{custom:!0,items:t.concat(n)}))})),i[0].seriesField&&s.legend(i[0].seriesField,u),i[1].seriesField&&l.legend(i[1].seriesField,h),e.on("legend-item:click",(function(t){var n=Object(c.s)(t,"gEvent.delegateObject",{});if(n&&n.item){var r=n.item,i=r.value,a=r.isGeometry,s=r.viewId;if(a){if(Object(c.n)(o,(function(t){return t===i}))>-1){var l=Object(c.s)(ws(e,s),"geometries");Object(c.j)(l,(function(t){t.changeVisible(!n.item.unchecked)}))}}else{var u=Object(c.s)(e.getController("legend"),"option.items",[]);Object(c.j)(e.views,(function(t){var n=t.getGroupScales();Object(c.j)(n,(function(e){e.values&&e.values.indexOf(i)>-1&&t.filter(e.field,(function(t){return!Object(c.m)(u,(function(e){return e.value===t})).unchecked}))})),e.render(!0)}))}}}))}return t}function Hf(t){var e=t.chart,n=t.options.slider,r=ws(e,"left-axes-view"),i=ws(e,"right-axes-view");return n&&(r.option("slider",n),r.on("slider:valuechanged",(function(t){var e=t.event,n=e.value,r=e.originValue;Object(c.H)(n,r)||kf(i,n)})),e.once("afterpaint",(function(){if(!Object(c.D)(n)){var t=n.start,e=n.end;(t||e)&&kf(i,[t,e])}}))),t}function Yf(t){return cs(If,Af,Nf,Pf,Bf,Lf,Wf,Df,Ff,Rf,zf,Tf,$f,Hf)(t)}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dual-axes",e}Object(s.c)(e,t),e.prototype.getDefaultOptions=function(){return as({},t.prototype.getDefaultOptions.call(this),{yAxis:[],syncViewPadding:!0})},e.prototype.getSchemaAdaptor=function(){return Yf}}(vc);function Vf(t){var e=t.chart,n=t.options,r=n.type,i=n.data,o=n.fields,a=n.eachView,l=Object(c.gb)(n,["type","data","fields","eachView","axes","meta","tooltip","coordinate","theme","legend","interactions","annotations"]);return e.data(i),e.facet(r,Object(s.a)(Object(s.a)({},l),{fields:o,eachView:function(t,e){var n=a(t,e);if(n.geometries)!function(t,e){var n=e.data,r=e.coordinate,i=e.interactions,o=e.annotations,a=e.animation,l=e.tooltip,u=e.axes,h=e.meta,d=e.geometries;n&&t.data(n);var f={};u&&Object(c.j)(u,(function(t,e){f[e]=qa(t,Ga)})),f=as({},h,f),t.scale(f),r&&t.coordinate(r),!1===u?t.axis(!1):Object(c.j)(u,(function(e,n){t.axis(n,e)})),Object(c.j)(d,(function(e){var n=ac({chart:t,options:e}).ext,r=e.adjust;r&&n.geometry.adjust(r)})),Object(c.j)(i,(function(e){!1===e.enable?t.removeInteraction(e.type):t.interaction(e.type,e.cfg)})),Object(c.j)(o,(function(e){t.annotation()[e.type](Object(s.a)({},e))})),Ms(t,a),l?(t.interaction("tooltip"),t.tooltip(l)):!1===l&&t.removeInteraction("tooltip")}(t,n);else{var r=n,i=r.options;i.tooltip&&t.interaction("tooltip"),_h(r.type,t,i)}}})),t}function Gf(t){var e=t.chart,n=t.options,r=n.axes,i=n.meta,o=n.tooltip,a=n.coordinate,l=n.theme,u=n.legend,h=n.interactions,d=n.annotations,f={};return r&&Object(c.j)(r,(function(t,e){f[e]=qa(t,Ga)})),f=as({},i,f),e.scale(f),e.coordinate(a),r?Object(c.j)(r,(function(t,n){e.axis(n,t)})):e.axis(!1),o?(e.interaction("tooltip"),e.tooltip(o)):!1===o&&e.removeInteraction("tooltip"),e.legend(u),l&&e.theme(l),Object(c.j)(h,(function(t){!1===t.enable?e.removeInteraction(t.type):e.interaction(t.type,t.cfg)})),Object(c.j)(d,(function(t){e.annotation()[t.type](Object(s.a)({},t))})),t}function Kf(t){return cs(Vs,Vf,Gf)(t)}var Xf={title:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},rowTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},columnTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}}};!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",e}Object(s.c)(e,t),e.getDefaultOptions=function(){return Xf},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Kf}}(vc);function Uf(t){var e=t.chart,n=t.options,r=n.data,i=n.type,o=n.xField,a=n.yField,s=n.colorField,l=n.sizeField,u=n.sizeRatio,h=n.shape,d=n.color,f=n.tooltip,p=n.heatmapStyle,g=n.meta;e.data(r);var v="polygon";"density"===i&&(v="heatmap");var y=rc(f,[o,a,s]),m=y.fields,b=y.formatter,x=1;return(u||0===u)&&(h||l?u<0||u>1?console.warn("sizeRatio is not in effect: It must be a number in [0,1]"):x=u:console.warn("sizeRatio is not in effect: Must define shape or sizeField first")),ac(as({},t,{options:{type:v,colorField:s,tooltipFields:m,shapeField:l||"",label:void 0,mapping:{tooltip:b,shape:h&&(l?function(t){var e=r.map((function(t){return t[l]})),n=(null==g?void 0:g[l])||{},i=n.min,o=n.max;return i=Object(c.M)(i)?i:Math.min.apply(Math,e),o=Object(c.M)(o)?o:Math.max.apply(Math,e),[h,(Object(c.s)(t,l)-i)/(o-i),x]}:function(){return[h,1,x]}),color:d||s&&e.getTheme().sequenceColors.join("-"),style:p}}})),t}function qf(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return cs(Us(((e={})[o]=r,e[a]=i,e)))(t)}function Zf(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(a,!1):e.axis(a,i),t}function Qf(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField,o=n.sizeField,a=n.sizeLegend,s=!1!==r;return i&&e.legend(i,!!s&&r),o&&e.legend(o,void 0===a?r:a),s||a||e.legend(!1),t}function Jf(t){var e=t.chart,n=t.options,r=n.label,i=n.colorField,o=ls(e,"density"===n.type?"heatmap":"polygon");if(r){if(i){var a=r.callback,c=Object(s.f)(r,["callback"]);o.label({fields:[i],callback:a,cfg:fs(c)})}}else o.label(!1);return t}function tp(t){var e,n,r=t.chart,i=t.options,o=i.coordinate,a=i.reflect,s=as({actions:[]},null!=o?o:{type:"rect"});return a&&(null===(n=null===(e=s.actions)||void 0===e?void 0:e.push)||void 0===n||n.call(e,["reflect",a])),r.coordinate(s),t}function ep(t){return cs(Vs,zs("heatmapStyle"),qf,tp,Uf,Zf,Qf,$s,Jf,qs(),Hs,Ys,Gs)(t)}var np=as({},vc.getDefaultOptions(),{type:"polygon",legend:!1,coordinate:{type:"rect"},xAxis:{tickLine:null,line:null,grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}},yAxis:{grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}}});Vn("polygon","circle",{draw:function(t,e){var n,r,i=t.x,o=t.y,a=this.parsePoints(t.points),c=Math.abs(a[2].x-a[1].x),l=Math.abs(a[1].y-a[0].y),u=Math.min(c,l)/2,h=Number(t.shape[1]),d=Number(t.shape[2]),f=u*Math.sqrt(d)*Math.sqrt(h),p=(null===(n=t.style)||void 0===n?void 0:n.fill)||t.color||(null===(r=t.defaultStyle)||void 0===r?void 0:r.fill);return e.addShape("circle",{attrs:Object(s.a)(Object(s.a)(Object(s.a)({x:i,y:o,r:f},t.defaultStyle),t.style),{fill:p})})}}),Vn("polygon","square",{draw:function(t,e){var n,r,i=t.x,o=t.y,a=this.parsePoints(t.points),c=Math.abs(a[2].x-a[1].x),l=Math.abs(a[1].y-a[0].y),u=Math.min(c,l),h=Number(t.shape[1]),d=Number(t.shape[2]),f=u*Math.sqrt(d)*Math.sqrt(h),p=(null===(n=t.style)||void 0===n?void 0:n.fill)||t.color||(null===(r=t.defaultStyle)||void 0===r?void 0:r.fill);return e.addShape("rect",{attrs:Object(s.a)(Object(s.a)(Object(s.a)({x:i-f/2,y:o-f/2,width:f,height:f},t.defaultStyle),t.style),{fill:p})})}});!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e}Object(s.c)(e,t),e.getDefaultOptions=function(){return np},e.prototype.getSchemaAdaptor=function(){return ep},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()}}(vc);function rp(t){return[{percent:t,type:"liquid"}]}function ip(t){var e=t.chart,n=t.options,r=n.percent,i=n.liquidStyle,o=n.radius,a=n.outline,s=n.wave,c=n.shape,l=n.shapeStyle,u=n.animation;e.scale({percent:{min:0,max:1}}),e.data(rp(r));var h=n.color||e.getTheme().defaultColor,d=lc(as({},t,{options:{xField:"type",yField:"percent",widthRatio:o,interval:{color:h,style:i,shape:"liquid-fill-gauge"}}})).ext.geometry,f={percent:r,radius:o,outline:a,wave:s,shape:c,shapeStyle:l,background:e.getTheme().background,animation:u};return d.customInfo(f),e.legend(!1),e.axis(!1),e.tooltip(!1),t}function op(t,e){var n=t.chart,r=t.options,i=r.statistic,o=r.percent,a=r.meta;n.getController("annotation").clear(!0);var l=Object(c.s)(a,["percent","formatter"])||function(t){return"".concat((100*t).toFixed(2),"%")},u=i.content;return u&&(u=as({},u,{content:Object(c.K)(u.content)?l(o):u.content})),Os(n,{statistic:Object(s.a)(Object(s.a)({},i),{content:u}),plotType:"liquid"},{percent:o}),e&&n.render(!0),t}function ap(t){return cs(Vs,zs("liquidStyle"),ip,op,Us({}),Ys,Hs)(t)}var sp={radius:.9,statistic:{title:!1,content:{style:{opacity:.75,fontSize:"30px",lineHeight:"30px",textAlign:"center"}}},outline:{border:2,distance:0},wave:{count:3,length:192},shape:"circle"};function cp(t,e,n){return t+(e-t)*n}function lp(t,e,n,r){return 0===e?[[t+.5*n/Math.PI/2,r/2],[t+.5*n/Math.PI,r],[t+n/4,r]]:1===e?[[t+.5*n/Math.PI/2*(Math.PI-2),r],[t+.5*n/Math.PI/2*(Math.PI-1),r/2],[t+n/4,0]]:2===e?[[t+.5*n/Math.PI/2,-r/2],[t+.5*n/Math.PI,-r],[t+n/4,-r]]:[[t+.5*n/Math.PI/2*(Math.PI-2),-r],[t+.5*n/Math.PI/2*(Math.PI-1),-r/2],[t+n/4,0]]}function up(t,e,n,r,i,o,a){for(var s=4*Math.ceil(2*t/n*4),c=[],l=r;l<2*-Math.PI;)l+=2*Math.PI;for(;l>0;)l-=2*Math.PI;var u=o-t+(l=l/Math.PI/2*n)-2*t;c.push(["M",u,e]);for(var h=0,d=0;d<s;++d){var f=lp(d*n/4,d%4,n,i);c.push(["C",f[0][0]+u,-f[0][1]+e,f[1][0]+u,-f[1][1]+e,f[2][0]+u,-f[2][1]+e]),d===s-1&&(h=f[2][0])}return c.push(["L",h+u,a+t]),c.push(["L",u,a+t]),c.push(["Z"]),c}var hp={pin:function(t,e,n,r){var i=2*n/3,o=Math.max(i,r),a=i/2,s=t,c=a+e-o/2,l=Math.asin(a/(.85*(o-a))),u=Math.sin(l)*a,h=Math.cos(l)*a,d=s-h,f=c+u,p=t,g=c+a/Math.sin(l);return"\n M ".concat(d," ").concat(f,"\n A ").concat(a," ").concat(a," 0 1 1 ").concat(d+2*h," ").concat(f,"\n Q ").concat(p," ").concat(g," ").concat(t," ").concat(e+o/2,"\n Q ").concat(p," ").concat(g," ").concat(d," ").concat(f,"\n Z \n ")},circle:function(t,e,n,r){var i=n/2,o=r/2;return"\n M ".concat(t," ").concat(e-o," \n a ").concat(i," ").concat(o," 0 1 0 0 ").concat(2*o,"\n a ").concat(i," ").concat(o," 0 1 0 0 ").concat(2*-o,"\n Z\n ")},diamond:function(t,e,n,r){var i=r/2,o=n/2;return"\n M ".concat(t," ").concat(e-i,"\n L ").concat(t+o," ").concat(e,"\n L ").concat(t," ").concat(e+i,"\n L ").concat(t-o," ").concat(e,"\n Z\n ")},triangle:function(t,e,n,r){var i=r/2,o=n/2;return"\n M ".concat(t," ").concat(e-i,"\n L ").concat(t+o," ").concat(e+i,"\n L ").concat(t-o," ").concat(e+i,"\n Z\n ")},rect:function(t,e,n,r){var i=r/2,o=n/2*.618;return"\n M ".concat(t-o," ").concat(e-i,"\n L ").concat(t+o," ").concat(e-i,"\n L ").concat(t+o," ").concat(e+i,"\n L ").concat(t-o," ").concat(e+i,"\n Z\n ")}};Vn("interval","liquid-fill-gauge",{draw:function(t,e){var n=t.customInfo,r=n,i=r.percent,o=r.radius,a=r.shape,l=r.shapeStyle,u=r.background,h=r.animation,d=n.outline,f=n.wave,p=d.border,g=d.distance,v=f.count,y=f.length,m=Object(c.ib)(t.points,(function(t,e){return Math.min(t,e.x)}),1/0),b=this.parsePoint({x:.5,y:.5}),x=this.parsePoint({x:m,y:.5}),O=b.x-x.x,j=Math.min(O,x.y*o),w=function(t){var e=Object(s.a)({opacity:1},t.style);return t.color&&!e.fill&&(e.fill=t.color),e}(t),C=function(t){var e=Object(c.db)({},{fill:"#fff",fillOpacity:0,lineWidth:4},t.style);return t.color&&!e.stroke&&(e.stroke=t.color),Object(c.M)(t.opacity)&&(e.opacity=e.strokeOpacity=t.opacity),e}(Object(c.db)({},t,d)),_=j-p/2,M=("function"==typeof a?a:hp[a]||hp.circle)(b.x,b.y,2*_,2*_);if(l&&e.addShape("path",{name:"shape",attrs:Object(s.a)({path:M},l)}),i>0){var S=e.addGroup({name:"waves"}),E=S.setClip({type:"path",attrs:{path:M}});!function(t,e,n,r,i,o,a,s,c,l){for(var u=i.fill,h=i.opacity,d=a.getBBox(),f=d.maxX-d.minX,p=d.maxY-d.minY,g=0;g<r;g++){var v=r<=1?1:g/(r-1),y=o.addShape("path",{name:"waterwave-path",attrs:{path:up(s,d.minY+p*n,c,0,f/32,t,e),fill:u,opacity:cp(.2,.9,v)*h}});try{if(!1===l)return;var m=su([["t",c,0]]);y.stopAnimate(),y.animate({matrix:m},{duration:cp(2500,5e3,v),repeat:!0})}catch(t){console.warn("off-screen group animate error!")}}}(b.x,b.y,1-t.points[1].y,v,w,S,E,2*j,y,h)}return e.addShape("path",{name:"distance",attrs:{path:M,fill:"transparent",lineWidth:p+2*g,stroke:"transparent"===u?"#fff":u}}),e.addShape("path",{name:"wrap",attrs:Object(c.db)(C,{path:M,fill:"transparent",lineWidth:p})}),e}});!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="liquid",e}Object(s.c)(e,t),e.getDefaultOptions=function(){return sp},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.changeData=function(t){this.chart.emit(l.BEFORE_CHANGE_DATA,yn.fromData(this.chart,l.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t}),this.chart.data(rp(t)),op({chart:this.chart,options:this.options},!0),this.chart.emit(l.AFTER_CHANGE_DATA,yn.fromData(this.chart,l.AFTER_CHANGE_DATA,null))},e.prototype.getSchemaAdaptor=function(){return ap}}(vc);function dp(t){var e=t.chart,n=t.options,r=n.data,i=n.lineStyle,o=n.color,a=n.point,c=n.area;e.data(r);var l=as({},t,{options:{line:{style:i,color:o},point:a?Object(s.a)({color:o},a):a,area:c?Object(s.a)({color:o},c):c,label:void 0}}),u=as({},l,{options:{tooltip:!1}}),h=(null==a?void 0:a.state)||n.state,d=as({},l,{options:{tooltip:!1,state:h}});return uc(l),hc(d),sc(u),t}function fp(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return cs(Us(((e={})[o]=r,e[a]=i,e)))(t)}function pp(t){var e=t.chart,n=t.options,r=n.radius,i=n.startAngle,o=n.endAngle;return e.coordinate("polar",{radius:r,startAngle:i,endAngle:o}),t}function gp(t){var e=t.chart,n=t.options,r=n.xField,i=n.xAxis,o=n.yField,a=n.yAxis;return e.axis(r,i),e.axis(o,a),t}function vp(t){var e=t.chart,n=t.options,r=n.label,i=n.yField,o=ls(e,"line");if(r){var a=r.fields,c=r.callback,l=Object(s.f)(r,["fields","callback"]);o.label({fields:a||[i],callback:c,cfg:fs(l)})}else o.label(!1);return t}function yp(t){return cs(dp,fp,Vs,pp,gp,Ws,$s,vp,Hs,Ys,qs())(t)}gn("radar-tooltip",function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"radar-tooltip"},enumerable:!1,configurable:!0}),e.prototype.getTooltipItems=function(e){var n=this.getTooltipCfg(),r=n.shared,i=n.title,o=t.prototype.getTooltipItems.call(this,e);if(o.length>0){var a=this.view.geometries[0],l=a.dataArray,u=o[0].name,h=[];return l.forEach((function(t){t.forEach((function(t){var e=_r.getTooltipItems(t,a)[0];if(!r&&e&&e.name===u){var n=Object(c.K)(i)?u:i;h.push(Object(s.a)(Object(s.a)({},e),{name:e.title,title:n}))}else if(r&&e){n=Object(c.K)(i)?e.name||u:i;h.push(Object(s.a)(Object(s.a)({},e),{name:e.title,title:n}))}}))})),h}return[]},e}(Sn)),Lt("radar-tooltip",function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.init=function(){this.context.view.removeInteraction("tooltip")},e.prototype.show=function(){var t=this.context.event;this.getTooltipController().showTooltip({x:t.x,y:t.y})},e.prototype.hide=function(){this.getTooltipController().hideTooltip()},e.prototype.getTooltipController=function(){return this.context.view.getController("radar-tooltip")},e}(At)),Ne("radar-tooltip",{start:[{trigger:"plot:mousemove",action:"radar-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"radar-tooltip:hide"}]});!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radar",e}Object(s.c)(e,t),e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return as({},t.prototype.getDefaultOptions.call(this),{xAxis:{label:{offset:15},grid:{line:{type:"line"}}},yAxis:{grid:{line:{type:"circle"}}},legend:{position:"top"},tooltip:{shared:!0,showCrosshairs:!0,showMarkers:!0,crosshairs:{type:"xy",line:{style:{stroke:"#565656",lineDash:[4]}},follow:!0}}})},e.prototype.getSchemaAdaptor=function(){return yp}}(vc);function mp(t,e,n){var r=n.map((function(t){return t[e]})).filter((function(t){return void 0!==t})),i=r.length>0?Math.max.apply(Math,r):0,o=Math.abs(t)%360;return o?360*i/o:i}function bp(t){var e=t.chart,n=t.options,r=n.barStyle,i=n.color,o=n.tooltip,a=n.colorField,s=n.type,c=n.xField,l=n.yField,u=n.data,h=n.shape,d=Ja(u,l);return e.data(d),lc(as({},t,{options:{tooltip:o,seriesField:a,interval:{style:r,color:i,shape:h||("line"===s?"line":"intervel")},minColumnWidth:n.minBarWidth,maxColumnWidth:n.maxBarWidth,columnBackground:n.barBackground}})),"line"===s&&hc({chart:e,options:{xField:c,yField:l,seriesField:a,point:{shape:"circle",color:i}}}),t}function xp(t){var e,n=t.options,r=n.yField,i=n.xField,o=n.data,a=n.isStack,c=n.isGroup,l=n.colorField,u=n.maxAngle,h=Ja(a&&!c&&l?function(t,e,n){var r=[];return t.forEach((function(t){var i=r.find((function(n){return n[e]===t[e]}));i?i[n]+=t[n]||null:r.push(Object(s.a)({},t))})),r}(o,i,r):o,r);return cs(Us(((e={})[r]={min:0,max:mp(u,r,h)},e)))(t)}function Op(t){var e=t.chart,n=t.options,r=n.radius,i=n.innerRadius,o=n.startAngle,a=n.endAngle;return e.coordinate({type:"polar",cfg:{radius:r,innerRadius:i,startAngle:o,endAngle:a}}).transpose(),t}function jp(t){var e=t.chart,n=t.options,r=n.xField,i=n.xAxis;return e.axis(r,i),t}function wp(t){var e=t.chart,n=t.options,r=n.label,i=n.yField,o=ls(e,"interval");if(r){var a=r.callback,c=Object(s.f)(r,["callback"]);o.label({fields:[i],callback:a,cfg:Object(s.a)(Object(s.a)({},fs(c)),{type:"polar"})})}else o.label(!1);return t}function Cp(t){return cs(zs("barStyle"),bp,xp,jp,Op,Hs,Ys,Vs,$s,Ws,qs(),wp)(t)}var _p=as({},vc.getDefaultOptions(),{interactions:[{type:"element-active"}],legend:!1,tooltip:{showMarkers:!1},xAxis:{grid:null,tickLine:null,line:null},maxAngle:240});!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radial-bar",e}Object(s.c)(e,t),e.getDefaultOptions=function(){return _p},e.prototype.changeData=function(t){this.updateOption({data:t}),xp({chart:this.chart,options:this.options}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Cp}}(vc);function Mp(t){var e=t.chart,n=t.options,r=n.data,i=n.sectorStyle,o=n.shape,a=n.color;return e.data(r),cs(lc)(as({},t,{options:{marginRatio:1,interval:{style:i,color:a,shape:o}}})),t}function Sp(t){var e=t.chart,n=t.options,r=n.label,i=n.xField,o=ls(e,"interval");if(!1===r)o.label(!1);else if(Object(c.O)(r)){var a=r.callback,l=r.fields,u=Object(s.f)(r,["callback","fields"]),h=u.offset,d=u.layout;(void 0===h||h>=0)&&(d=d?Object(c.C)(d)?d:[d]:[],u.layout=Object(c.l)(d,(function(t){return"limit-in-shape"!==t.type})),u.layout.length||delete u.layout),o.label({fields:l||[i],callback:a,cfg:fs(u)})}else Ua(Va.WARN,null===r,"the label option must be an Object."),o.label({fields:[i]});return t}function Ep(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField;return!1===r?e.legend(!1):i&&e.legend(i,r),t}function kp(t){var e=t.chart,n=t.options,r=n.radius,i=n.innerRadius,o=n.startAngle,a=n.endAngle;return e.coordinate({type:"polar",cfg:{radius:r,innerRadius:i,startAngle:o,endAngle:a}}),t}function Ip(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return cs(Us(((e={})[o]=r,e[a]=i,e)))(t)}function Ap(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return r?e.axis(o,r):e.axis(o,!1),i?e.axis(a,i):e.axis(a,!1),t}function Pp(t){cs(zs("sectorStyle"),Mp,Ip,Sp,kp,Ap,Ep,$s,Hs,Ys,Vs,qs(),Gs)(t)}var Tp=as({},vc.getDefaultOptions(),{xAxis:!1,yAxis:!1,legend:{position:"right",radio:{}},sectorStyle:{stroke:"#fff",lineWidth:1},label:{layout:{type:"limit-in-shape"}},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]});!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rose",e}Object(s.c)(e,t),e.getDefaultOptions=function(){return Tp},e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Pp}}(vc);function Bp(t,e,n){if(!Object(c.C)(t))return[];var r=[],i=function(t,e,n){var r=[];return t.forEach((function(t){var i=t[e],o=t[n];r.includes(i)||r.push(i),r.includes(o)||r.push(o)})),r}(t,e,n),o=function(t,e,n,r){var i={};return e.forEach((function(t){i[t]={},e.forEach((function(e){i[t][e]=0}))})),t.forEach((function(t){i[t[n]][t[r]]=1})),i}(t,i,e,n),a={};return i.forEach((function(t){a[t]=0})),i.forEach((function(t){-1!=a[t]&&function t(e){a[e]=1,i.forEach((function(n){if(0!=o[e][n])if(1==a[n])r.push("".concat(e,"_").concat(n));else{if(-1==a[n])return;t(n)}})),a[e]=-1}(t)})),0!==r.length&&console.warn("sankey data contains circle, ".concat(r.length," records removed."),r),t.filter((function(t){return r.findIndex((function(r){return r==="".concat(t[e],"_").concat(t[n])}))<0}))}function Lp(t){return t.target.depth}function Dp(t,e){return t.sourceLinks.length?t.depth:e-1}function Fp(t){return function(){return t}}function Rp(t,e){for(var n=0,r=0;r<t.length;r++)n+=e(t[r]);return n}function Np(t,e){for(var n=-1/0,r=0;r<t.length;r++)n=Math.max(e(t[r]),n);return n}function zp(t,e){return $p(t.source,e.source)||t.index-e.index}function Wp(t,e){return $p(t.target,e.target)||t.index-e.index}function $p(t,e){return t.y0-e.y0}function Hp(t){return t.value}function Yp(t){return t.index}function Vp(t){return t.nodes}function Gp(t){return t.links}function Kp(t,e){var n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function Xp(t){for(var e=0,n=t.nodes;e<n.length;e++){for(var r=n[e],i=r.y0,o=i,a=0,s=r.sourceLinks;a<s.length;a++){(u=s[a]).y0=i+u.width/2,i+=u.width}for(var c=0,l=r.targetLinks;c<l.length;c++){var u;(u=l[c]).y1=o+u.width/2,o+=u.width}}}function Up(){var t,e,n,r,i=0,o=0,a=1,s=1,c=24,l=8,u=Yp,h=Dp,d=Vp,f=Gp,p=6;function g(g){var m={nodes:d(g),links:f(g)};return function(t){var e=t.nodes,n=t.links;e.forEach((function(t,e){t.index=e,t.sourceLinks=[],t.targetLinks=[]}));var i=new Map(e.map((function(t){return[u(t),t]})));if(n.forEach((function(t,e){t.index=e;var n=t.source,r=t.target;"object"!=typeof n&&(n=t.source=Kp(i,n)),"object"!=typeof r&&(r=t.target=Kp(i,r)),n.sourceLinks.push(t),r.targetLinks.push(t)})),null!=r)for(var o=0,a=e;o<a.length;o++){var s=a[o],c=s.sourceLinks,l=s.targetLinks;c.sort(r),l.sort(r)}}(m),function(t){for(var e=t.nodes,n=0,r=e;n<r.length;n++){var i=r[n];i.value=void 0===i.fixedValue?Math.max(Rp(i.sourceLinks,Hp),Rp(i.targetLinks,Hp)):i.fixedValue}}(m),function(t){var n=t.nodes,r=n.length,i=new Set(n),o=new Set,a=0;for(;i.size;){if(i.forEach((function(t){t.depth=a;for(var e=0,n=t.sourceLinks;e<n.length;e++){var r=n[e].target;o.add(r)}})),++a>r)throw new Error("circular link");i=o,o=new Set}if(e)for(var s=Math.max(Np(n,(function(t){return t.depth}))+1,0),c=void 0,l=0;l<n.length;l++)(c=n[l]).depth=e.call(null,c,s)}(m),function(t){var e=t.nodes,n=e.length,r=new Set(e),i=new Set,o=0;for(;r.size;){if(r.forEach((function(t){t.height=o;for(var e=0,n=t.targetLinks;e<n.length;e++){var r=n[e].source;i.add(r)}})),++o>n)throw new Error("circular link");r=i,i=new Set}}(m),function(e){var r=function(t){for(var e=t.nodes,r=Math.max(Np(e,(function(t){return t.depth}))+1,0),o=(a-i-c)/(r-1),s=new Array(r).fill(0).map((function(){return[]})),l=0,u=e;l<u.length;l++){var d=u[l],f=Math.max(0,Math.min(r-1,Math.floor(h.call(null,d,r))));d.layer=f,d.x0=i+f*o,d.x1=d.x0+c,s[f]?s[f].push(d):s[f]=[d]}if(n)for(var p=0,g=s;p<g.length;p++){g[p].sort(n)}return s}(e);t=Math.min(l,(s-o)/(Np(r,(function(t){return t.length}))-1)),function(e){for(var n=function(t,e){for(var n=1/0,r=0;r<t.length;r++)n=Math.min(e(t[r]),n);return n}(e,(function(e){return(s-o-(e.length-1)*t)/Rp(e,Hp)})),r=0,i=e;r<i.length;r++){for(var a=i[r],c=o,l=0,u=a;l<u.length;l++){(g=u[l]).y0=c,g.y1=c+g.value*n,c=g.y1+t;for(var h=0,d=g.sourceLinks;h<d.length;h++){var f=d[h];f.width=f.value*n}}c=(s-c+t)/(a.length+1);for(var p=0;p<a.length;++p){var g;(g=a[p]).y0+=c*(p+1),g.y1+=c*(p+1)}j(a)}}(r);for(var u=0;u<p;++u){var d=Math.pow(.99,u),f=Math.max(1-d,(u+1)/p);y(r,d,f),v(r,d,f)}}(m),Xp(m),m}function v(t,e,r){for(var i=1,o=t.length;i<o;++i){for(var a=t[i],s=0,c=a;s<c.length;s++){for(var l=c[s],u=0,h=0,d=0,f=l.targetLinks;d<f.length;d++){var p=f[d],g=p.source,v=p.value*(l.layer-g.layer);u+=w(g,l)*v,h+=v}if(h>0){var y=(u/h-l.y0)*e;l.y0+=y,l.y1+=y,O(l)}}void 0===n&&a.sort($p),a.length&&m(a,r)}}function y(t,e,r){for(var i=t.length-2;i>=0;--i){for(var o=t[i],a=0,s=o;a<s.length;a++){for(var c=s[a],l=0,u=0,h=0,d=c.sourceLinks;h<d.length;h++){var f=d[h],p=f.target,g=f.value*(p.layer-c.layer);l+=C(c,p)*g,u+=g}if(u>0){var v=(l/u-c.y0)*e;c.y0+=v,c.y1+=v,O(c)}}void 0===n&&o.sort($p),o.length&&m(o,r)}}function m(e,n){var r=e.length>>1,i=e[r];x(e,i.y0-t,r-1,n),b(e,i.y1+t,r+1,n),x(e,s,e.length-1,n),b(e,o,0,n)}function b(e,n,r,i){for(;r<e.length;++r){var o=e[r],a=(n-o.y0)*i;a>1e-6&&(o.y0+=a,o.y1+=a),n=o.y1+t}}function x(e,n,r,i){for(;r>=0;--r){var o=e[r],a=(o.y1-n)*i;a>1e-6&&(o.y0-=a,o.y1-=a),n=o.y0-t}}function O(t){var e=t.sourceLinks,n=t.targetLinks;if(void 0===r){for(var i=0,o=n;i<o.length;i++){o[i].source.sourceLinks.sort(Wp)}for(var a=0,s=e;a<s.length;a++){s[a].target.targetLinks.sort(zp)}}}function j(t){if(void 0===r)for(var e=0,n=t;e<n.length;e++){var i=n[e],o=i.sourceLinks,a=i.targetLinks;o.sort(Wp),a.sort(zp)}}function w(e,n){for(var r=e.y0-(e.sourceLinks.length-1)*t/2,i=0,o=e.sourceLinks;i<o.length;i++){var a=o[i],s=a.target,c=a.width;if(s===n)break;r+=c+t}for(var l=0,u=n.targetLinks;l<u.length;l++){var h=u[l];s=h.source,c=h.width;if(s===e)break;r-=c}return r}function C(e,n){for(var r=n.y0-(n.targetLinks.length-1)*t/2,i=0,o=n.targetLinks;i<o.length;i++){var a=o[i],s=a.source,c=a.width;if(s===e)break;r+=c+t}for(var l=0,u=e.sourceLinks;l<u.length;l++){var h=u[l];s=h.target,c=h.width;if(s===n)break;r-=c}return r}return g.update=function(t){return Xp(t),t},g.nodeId=function(t){return arguments.length?(u="function"==typeof t?t:Fp(t),g):u},g.nodeAlign=function(t){return arguments.length?(h="function"==typeof t?t:Fp(t),g):h},g.nodeDepth=function(t){return arguments.length?(e=t,g):e},g.nodeSort=function(t){return arguments.length?(n=t,g):n},g.nodeWidth=function(t){return arguments.length?(c=+t,g):c},g.nodePadding=function(e){return arguments.length?(l=t=+e,g):l},g.nodes=function(t){return arguments.length?(d="function"==typeof t?t:Fp(t),g):d},g.links=function(t){return arguments.length?(f="function"==typeof t?t:Fp(t),g):f},g.linkSort=function(t){return arguments.length?(r=t,g):r},g.size=function(t){return arguments.length?(i=o=0,a=+t[0],s=+t[1],g):[a-i,s-o]},g.extent=function(t){return arguments.length?(i=+t[0][0],a=+t[1][0],o=+t[0][1],s=+t[1][1],g):[[i,o],[a,s]]},g.iterations=function(t){return arguments.length?(p=+t,g):p},g}var qp={left:function(t){return t.depth},right:function(t,e){return e-1-t.height},center:function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?Object(c.cb)(t.sourceLinks,Lp)-1:0},justify:Dp},Zp={nodeId:function(t){return t.index},nodeAlign:"justify",nodeWidth:.008,nodePadding:.03,nodeSort:void 0};function Qp(t,e){var n=function(t){return Object(c.b)({},Zp,t)}(t),r=n.nodeId,i=n.nodeSort,o=n.nodeAlign,a=n.nodeWidth,s=n.nodePadding,l=n.nodeDepth,u=Up().nodeSort(i).nodeWidth(a).nodePadding(s).nodeDepth(l).nodeAlign(function(t){return(Object(c.Q)(t)?qp[t]:Object(c.I)(t)?t:null)||Dp}(o)).extent([[0,0],[1,1]]).nodeId(r)(e);return{nodes:u.nodes.map((function(t){var e=t.x0,n=t.x1,r=t.y0,i=t.y1;return t.x=[e,n,n,e],t.y=[r,r,i,i],t})).filter((function(t){return null!==t.name})),links:u.links.map((function(t){var e=t.source,n=t.target,r=e.x1,i=n.x0;t.x=[r,r,i,i];var o=t.width/2;return t.y=[t.y0+o,t.y0-o,t.y1+o,t.y1-o],t})).filter((function(t){var e=t.source,n=t.target;return null!==e.name&&null!==n.name}))}}function Jp(t,e,n){return ps(t)?t/n:e}function tg(t,e,n){return ps(t)?t/n:e}function eg(t,e,n){var r,i=t.dataType,o=t.data,a=t.sourceField,c=t.targetField,l=t.weightField,u=t.nodeAlign,h=t.nodeSort,d=t.nodePadding,f=t.nodePaddingRatio,p=t.nodeWidth,g=t.nodeWidthRatio,v=t.nodeDepth,y=t.rawFields,m=void 0===y?[]:y;r=function(t){return"node-link"===t}(i)?o:Qa(Bp(o,a,c),a,c,l,m);var b=Qp({nodeAlign:u,nodePadding:tg(d,f,n),nodeWidth:Jp(p,g,e),nodeSort:h,nodeDepth:v},r),x=b.nodes,O=b.links;return{nodes:x.map((function(t){return Object(s.a)(Object(s.a)({},qa(t,Object(s.g)(["x","y","name"],m,!0))),{isNode:!0})})),edges:O.map((function(t){return Object(s.a)(Object(s.a)({source:t.source.name,target:t.target.name,name:t.source.name||t.target.name},qa(t,Object(s.g)(["x","y","value"],m,!0))),{isNode:!1})}))}}function ng(t){var e=t.options.rawFields,n=void 0===e?[]:e;return as({},{options:{tooltip:{fields:Object(c.ub)(Object(s.g)(["name","source","target","value","isNode"],n,!0))},label:{fields:Object(c.ub)(Object(s.g)(["x","name"],n,!0))}}},t)}function rg(t){var e=t.chart,n=t.options,r=n.color,i=n.nodeStyle,o=n.edgeStyle,a=n.label,c=n.tooltip,l=n.nodeState,u=n.edgeState,h=n.rawFields,d=void 0===h?[]:h;e.legend(!1),e.tooltip(c),e.axis(!1),e.coordinate().reflect("y");var f=eg(n,e.width,e.height),p=f.nodes,g=f.edges,v=e.createView({id:"edges"});v.data(g),cc({chart:v,options:{xField:"x",yField:"y",seriesField:"name",rawFields:Object(s.g)(["source","target"],d,!0),edge:{color:r,style:o,shape:"arc"},tooltip:c,state:u}});var y=e.createView({id:"nodes"});return y.data(p),dc({chart:y,options:{xField:"x",yField:"y",seriesField:"name",polygon:{color:r,style:i},label:a,tooltip:c,state:l}}),e.interaction("element-active"),e.scale({x:{sync:!0,nice:!0,min:0,max:1,minLimit:0,maxLimit:1},y:{sync:!0,nice:!0,min:0,max:1,minLimit:0,maxLimit:1},name:{sync:"color",type:"cat"}}),t}function ig(t){var e=t.chart;return Ms(e,t.options.animation,Object(s.g)(Object(s.g)([],e.views[0].geometries,!0),e.views[1].geometries,!0)),t}function og(t){var e=t.chart;return t.options.nodeDraggable?e.interaction("sankey-node-draggable"):e.removeInteraction("sankey-node-draggable"),t}function ag(t){var e=t.chart,n=t.options,r=n.interactions,i=void 0===r?[]:r,o=[].concat(i,n.nodeInteractions||[]),a=[].concat(i,n.edgeInteractions||[]),s=ws(e,"nodes"),c=ws(e,"edges");return o.forEach((function(t){!1===(null==t?void 0:t.enable)?s.removeInteraction(t.type):s.interaction(t.type,t.cfg||{})})),a.forEach((function(t){!1===(null==t?void 0:t.enable)?c.removeInteraction(t.type):c.interaction(t.type,t.cfg||{})})),t}function sg(t){return cs(ng,rg,ag,og,ig,Vs)(t)}Lt("sankey-node-drag",function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isDragging=!1,e}return Object(s.c)(e,t),e.prototype.isNodeElement=function(){var t=Object(c.s)(this.context,"event.target");if(t){var e=t.get("element");return e&&e.getModel().data.isNode}return!1},e.prototype.getNodeView=function(){return ws(this.context.view,"nodes")},e.prototype.getEdgeView=function(){return ws(this.context.view,"edges")},e.prototype.getCurrentDatumIdx=function(t){return this.getNodeView().geometries[0].elements.indexOf(t)},e.prototype.start=function(){if(this.isNodeElement()){this.prevPoint={x:Object(c.s)(this.context,"event.x"),y:Object(c.s)(this.context,"event.y")};var t=this.context.event.target.get("element"),e=this.getCurrentDatumIdx(t);if(-1===e)return;this.currentElementIdx=e,this.context.isDragging=!0,this.isDragging=!0,this.prevNodeAnimateCfg=this.getNodeView().getOptions().animate,this.prevEdgeAnimateCfg=this.getEdgeView().getOptions().animate,this.getNodeView().animate(!1),this.getEdgeView().animate(!1)}},e.prototype.translate=function(){if(this.isDragging){var t=this.context.view,e={x:Object(c.s)(this.context,"event.x"),y:Object(c.s)(this.context,"event.y")},n=e.x-this.prevPoint.x,r=e.y-this.prevPoint.y,i=this.getNodeView(),o=i.geometries[0].elements[this.currentElementIdx];if(o&&o.getModel()){var a=o.getModel().data,l=i.getOptions().data,u=i.getCoordinate(),h={x:n/u.getWidth(),y:r/u.getHeight()},d=Object(s.a)(Object(s.a)({},a),{x:a.x.map((function(t){return t+h.x})),y:a.y.map((function(t){return t+h.y}))}),f=Object(s.g)([],l,!0);f[this.currentElementIdx]=d,i.data(f);var p=a.name,g=this.getEdgeView(),v=g.getOptions().data;v.forEach((function(t){t.source===p&&(t.x[0]+=h.x,t.x[1]+=h.x,t.y[0]+=h.y,t.y[1]+=h.y),t.target===p&&(t.x[2]+=h.x,t.x[3]+=h.x,t.y[2]+=h.y,t.y[3]+=h.y)})),g.data(v),this.prevPoint=e,t.render(!0)}}},e.prototype.end=function(){this.isDragging=!1,this.context.isDragging=!1,this.prevPoint=null,this.currentElementIdx=null,this.getNodeView().animate(this.prevNodeAnimateCfg),this.getEdgeView().animate(this.prevEdgeAnimateCfg)},e}(At)),Ne("sankey-node-draggable",{showEnable:[{trigger:"polygon:mouseenter",action:"cursor:pointer"},{trigger:"polygon:mouseleave",action:"cursor:default"}],start:[{trigger:"polygon:mousedown",action:"sankey-node-drag:start"}],processing:[{trigger:"plot:mousemove",action:"sankey-node-drag:translate"},{isEnable:function(t){return t.isDragging},trigger:"plot:mousemove",action:"cursor:move"}],end:[{trigger:"plot:mouseup",action:"sankey-node-drag:end"}]});!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="sankey",e}Object(s.c)(e,t),e.getDefaultOptions=function(){return{appendPadding:8,syncViewPadding:!0,nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.3,lineWidth:0},edgeState:{active:{style:{opacity:.8,lineWidth:0}}},label:{formatter:function(t){return t.name},callback:function(t){var e=1===t[1];return{style:{fill:"#545454",textAlign:e?"end":"start"},offsetX:e?-8:8}},layout:[{type:"hide-overlap"}]},tooltip:{showTitle:!1,showMarkers:!1,shared:!1,showContent:function(t){return!Object(c.s)(t,[0,"data","isNode"])},formatter:function(t){return{name:t.source+" -> "+t.target,value:t.value}}},nodeWidthRatio:.008,nodePaddingRatio:.01,animation:{appear:{animation:"wave-in"},enter:{animation:"wave-in"}}}},e.prototype.changeData=function(t){this.updateOption({data:t});var e=eg(this.options,this.chart.width,this.chart.height),n=e.nodes,r=e.edges,i=ws(this.chart,"nodes"),o=ws(this.chart,"edges");i.changeData(n),o.changeData(r)},e.prototype.getSchemaAdaptor=function(){return sg},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()}}(vc);var cg=["path","nodeIndex","nodeAncestor","childNodeCount","name","depth","height"],lg=as({},vc.getDefaultOptions(),{innerRadius:0,radius:.85,hierarchyConfig:{field:"value"},tooltip:{shared:!0,showMarkers:!1,offset:20,showTitle:!1},legend:!1,sunburstStyle:{lineWidth:.5,stroke:"#FFF"},drilldown:{enabled:!0}}),ug=function(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)},hg=function(t,e,n,r,i){for(var o,a=t.children,s=-1,c=a.length,l=t.value&&(r-e)/t.value;++s<c;)(o=a[s]).y0=n,o.y1=i,o.x0=e,o.x1=e+=o.value*l},dg=function(){var t=1,e=1,n=0,r=!1;function i(i){var o=i.height+1;return i.x0=i.y0=n,i.x1=t,i.y1=e/o,i.eachBefore(function(t,e){return function(r){r.children&&hg(r,r.x0,t*(r.depth+1)/e,r.x1,t*(r.depth+2)/e);var i=r.x0,o=r.y0,a=r.x1-n,s=r.y1-n;a<i&&(i=a=(i+a)/2),s<o&&(o=s=(o+s)/2),r.x0=i,r.y0=o,r.x1=a,r.y1=s}}(e,o)),r&&i.eachBefore(ug),i}return i.round=function(t){return arguments.length?(r=!!t,i):r},i.size=function(n){return arguments.length?(t=+n[0],e=+n[1],i):[t,e]},i.padding=function(t){return arguments.length?(n=+t,i):n},i},fg={field:"value",size:[1,1],round:!1,padding:0,sort:function(t,e){return e.value-t.value},as:["x","y"],ignoreParentValue:!0};function pg(t,e){var n,r=(e=Object(c.b)({},fg,e)).as;if(!Object(c.C)(r)||2!==r.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{n=ef(e)}catch(t){console.warn(t)}var i=function(t){return dg().size(e.size).round(e.round).padding(e.padding)(Ud(t).sum((function(t){return Object(c.mb)(t.children)?e.ignoreParentValue?0:t[n]-Object(c.ib)(t.children,(function(t,e){return t+e[n]}),0):t[n]})).sort(e.sort))}(t),o=r[0],a=r[1];return i.each((function(t){var e,n;t[o]=[t.x0,t.x1,t.x1,t.x0],t[a]=[t.y1,t.y1,t.y0,t.y0],t.name=t.name||(null===(e=t.data)||void 0===e?void 0:e.name)||(null===(n=t.data)||void 0===n?void 0:n.label),t.data.name=t.name,["x0","x1","y0","y1"].forEach((function(e){-1===r.indexOf(e)&&delete t[e]}))})),nf(i)}function gg(t,e){return t.parent===e.parent?1:2}function vg(t,e){return t+e.x}function yg(t,e){return Math.max(t,e.y)}var mg=function(){var t=gg,e=1,n=1,r=!1;function i(i){var o,a=0;i.eachAfter((function(e){var n=e.children;n?(e.x=function(t){return t.reduce(vg,0)/t.length}(n),e.y=function(t){return 1+t.reduce(yg,0)}(n)):(e.x=o?a+=t(e,o):0,e.y=0,o=e)}));var s=function(t){for(var e;e=t.children;)t=e[0];return t}(i),c=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(i),l=s.x-t(s,c)/2,u=c.x+t(c,s)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*e,t.y=(i.y-t.y)*n}:function(t){t.x=(t.x-l)/(u-l)*e,t.y=(1-(i.y?t.y/i.y:1))*n})}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i},bg={depth:-1},xg={};function Og(t){return t.id}function jg(t){return t.parentId}var wg=function(){var t=Og,e=jg;function n(n){var r,i,o,a,s,c,l,u=Array.from(n),h=u.length,d=new Map;for(i=0;i<h;++i)r=u[i],s=u[i]=new tf(r),null!=(c=t(r,i,n))&&(c+="")&&(l=s.id=c,d.set(l,d.has(l)?xg:s)),null!=(c=e(r,i,n))&&(c+="")&&(s.parent=c);for(i=0;i<h;++i)if(c=(s=u[i]).parent){if(!(a=d.get(c)))throw new Error("missing: "+c);if(a===xg)throw new Error("ambiguous: "+c);a.children?a.children.push(s):a.children=[s],s.parent=a}else{if(o)throw new Error("multiple roots");o=s}if(!o)throw new Error("no root");if(o.parent=bg,o.eachBefore((function(t){t.depth=t.parent.depth+1,--h})).eachBefore(Jd),o.parent=null,h>0)throw new Error("cycle");return o}return n.id=function(e){return arguments.length?(t=zd(e),n):t},n.parentId=function(t){return arguments.length?(e=zd(t),n):e},n};function Cg(t,e){return t.parent===e.parent?1:2}function _g(t){var e=t.children;return e?e[0]:t.t}function Mg(t){var e=t.children;return e?e[e.length-1]:t.t}function Sg(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function Eg(t,e,n){return t.a.parent===e.parent?t.a:n}function kg(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}kg.prototype=Object.create(tf.prototype);var Ig=function(){var t=Cg,e=1,n=1,r=null;function i(i){var c=function(t){for(var e,n,r,i,o,a=new kg(t,0),s=[a];e=s.pop();)if(r=e._.children)for(e.children=new Array(o=r.length),i=o-1;i>=0;--i)s.push(n=e.children[i]=new kg(r[i],i)),n.parent=e;return(a.parent=new kg(null,0)).children=[a],a}(i);if(c.eachAfter(o),c.parent.m=-c.z,c.eachBefore(a),r)i.eachBefore(s);else{var l=i,u=i,h=i;i.eachBefore((function(t){t.x<l.x&&(l=t),t.x>u.x&&(u=t),t.depth>h.depth&&(h=t)}));var d=l===u?1:t(l,u)/2,f=d-l.x,p=e/(u.x+d+f),g=n/(h.depth||1);i.eachBefore((function(t){t.x=(t.x+f)*p,t.y=t.depth*g}))}return i}function o(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){!function(t){for(var e,n=0,r=0,i=t.children,o=i.length;--o>=0;)(e=i[o]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var o=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-o):e.z=o}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,o=e,a=e,s=n,c=o.parent.children[0],l=o.m,u=a.m,h=s.m,d=c.m;s=Mg(s),o=_g(o),s&&o;)c=_g(c),(a=Mg(a)).a=e,(i=s.z+h-o.z-l+t(s._,o._))>0&&(Sg(Eg(s,e,r),e,i),l+=i,u+=i),h+=s.m,l+=o.m,d+=c.m,u+=a.m;s&&!Mg(a)&&(a.t=s,a.m+=h-u),o&&!_g(c)&&(c.t=o,c.m+=l-d,r=e)}return r}(e,i,e.parent.A||r[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(t){t.x*=e,t.y=t.depth*n}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i},Ag=function(t,e,n,r,i){for(var o,a=t.children,s=-1,c=a.length,l=t.value&&(i-n)/t.value;++s<c;)(o=a[s]).x0=e,o.x1=r,o.y0=n,o.y1=n+=o.value*l},Pg=(1+Math.sqrt(5))/2;function Tg(t,e,n,r,i,o){for(var a,s,c,l,u,h,d,f,p,g,v,y=[],m=e.children,b=0,x=0,O=m.length,j=e.value;b<O;){c=i-n,l=o-r;do{u=m[x++].value}while(!u&&x<O);for(h=d=u,v=u*u*(g=Math.max(l/c,c/l)/(j*t)),p=Math.max(d/v,v/h);x<O;++x){if(u+=s=m[x].value,s<h&&(h=s),s>d&&(d=s),v=u*u*g,(f=Math.max(d/v,v/h))>p){u-=s;break}p=f}y.push(a={value:u,dice:c<l,children:m.slice(b,x)}),a.dice?hg(a,n,r,i,j?r+=l*u/j:o):Ag(a,n,r,j?n+=c*u/j:i,o),j-=u,b=x}return y}var Bg=function t(e){function n(t,n,r,i,o){Tg(e,t,n,r,i,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(Pg),Lg=function(){var t=Bg,e=!1,n=1,r=1,i=[0],o=Wd,a=Wd,s=Wd,c=Wd,l=Wd;function u(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(h),i=[0],e&&t.eachBefore(ug),t}function h(e){var n=i[e.depth],r=e.x0+n,u=e.y0+n,h=e.x1-n,d=e.y1-n;h<r&&(r=h=(r+h)/2),d<u&&(u=d=(u+d)/2),e.x0=r,e.y0=u,e.x1=h,e.y1=d,e.children&&(n=i[e.depth+1]=o(e)/2,r+=l(e)-n,u+=a(e)-n,(h-=s(e)-n)<r&&(r=h=(r+h)/2),(d-=c(e)-n)<u&&(u=d=(u+d)/2),t(e,r,u,h,d))}return u.round=function(t){return arguments.length?(e=!!t,u):e},u.size=function(t){return arguments.length?(n=+t[0],r=+t[1],u):[n,r]},u.tile=function(e){return arguments.length?(t=zd(e),u):t},u.padding=function(t){return arguments.length?u.paddingInner(t).paddingOuter(t):u.paddingInner()},u.paddingInner=function(t){return arguments.length?(o="function"==typeof t?t:$d(+t),u):o},u.paddingOuter=function(t){return arguments.length?u.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):u.paddingTop()},u.paddingTop=function(t){return arguments.length?(a="function"==typeof t?t:$d(+t),u):a},u.paddingRight=function(t){return arguments.length?(s="function"==typeof t?t:$d(+t),u):s},u.paddingBottom=function(t){return arguments.length?(c="function"==typeof t?t:$d(+t),u):c},u.paddingLeft=function(t){return arguments.length?(l="function"==typeof t?t:$d(+t),u):l},u},Dg=function(t,e,n,r,i){var o,a,s=t.children,c=s.length,l=new Array(c+1);for(l[0]=a=o=0;o<c;++o)l[o+1]=a+=s[o].value;!function t(e,n,r,i,o,a,c){if(e>=n-1){var u=s[e];return u.x0=i,u.y0=o,u.x1=a,void(u.y1=c)}var h=l[e],d=r/2+h,f=e+1,p=n-1;for(;f<p;){var g=f+p>>>1;l[g]<d?f=g+1:p=g}d-l[f-1]<l[f]-d&&e+1<f&&--f;var v=l[f]-h,y=r-v;if(a-i>c-o){var m=r?(i*y+a*v)/r:a;t(e,f,v,i,o,m,c),t(f,n,y,m,o,a,c)}else{var b=r?(o*y+c*v)/r:c;t(e,f,v,i,o,a,b),t(f,n,y,i,b,a,c)}}(0,c,t.value,e,n,r,i)},Fg=function(t,e,n,r,i){(1&t.depth?Ag:hg)(t,e,n,r,i)},Rg=function t(e){function n(t,n,r,i,o){if((a=t._squarify)&&a.ratio===e)for(var a,s,c,l,u,h=-1,d=a.length,f=t.value;++h<d;){for(c=(s=a[h]).children,l=s.value=0,u=c.length;l<u;++l)s.value+=c[l].value;s.dice?hg(s,n,r,i,f?r+=(o-r)*s.value/f:o):Ag(s,n,r,f?n+=(i-n)*s.value/f:i,o),f-=s.value}else t._squarify=a=Tg(e,t,n,r,i,o),a.ratio=e}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(Pg),Ng={field:"value",tile:"treemapSquarify",size:[1,1],round:!1,ignoreParentValue:!0,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,as:["x","y"],sort:function(t,e){return e.value-t.value},ratio:.5*(1+Math.sqrt(5))};function zg(t,e){var n,i=(e=Object(c.b)({},Ng,e)).as;if(!Object(c.C)(i)||2!==i.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{n=ef(e)}catch(t){console.warn(t)}var o,a,s=(o=e.tile,a=e.ratio,"treemapSquarify"===o?r[o].ratio(a):r[o]),l=function(t){return Lg().tile(s).size(e.size).round(e.round).padding(e.padding).paddingInner(e.paddingInner).paddingOuter(e.paddingOuter).paddingTop(e.paddingTop).paddingRight(e.paddingRight).paddingBottom(e.paddingBottom).paddingLeft(e.paddingLeft)(Ud(t).sum((function(t){return e.ignoreParentValue&&t.children?0:t[n]})).sort(e.sort))}(t),u=i[0],h=i[1];return l.each((function(t){t[u]=[t.x0,t.x1,t.x1,t.x0],t[h]=[t.y1,t.y1,t.y0,t.y0],["x0","x1","y0","y1"].forEach((function(e){-1===i.indexOf(e)&&delete t[e]}))})),nf(l)}function Wg(t){var e=t.data,n=t.colorField,r=t.rawFields,i=t.hierarchyConfig,o=void 0===i?{}:i,a=o.activeDepth,l={partition:pg,treemap:zg},u=t.seriesField,h=t.type||"partition",d=l[h](e,Object(s.a)(Object(s.a)({field:u||"value"},Object(c.gb)(o,["activeDepth"])),{type:"hierarchy.".concat(h),as:["x","y"]})),f=[];return d.forEach((function(t){var e,i,c,l,h,d;if(0===t.depth)return null;if(a>0&&t.depth>a)return null;for(var p=t.data.name,g=Object(s.a)({},t);g.depth>1;)p="".concat(null===(i=g.parent.data)||void 0===i?void 0:i.name," / ").concat(p),g=g.parent;var v=Object(s.a)(Object(s.a)(Object(s.a)({},qa(t.data,Object(s.g)(Object(s.g)([],r||[],!0),[o.field],!1))),((e={}).path=p,e["ancestor-node"]=g.data.name,e)),t);u&&(v[u]=t.data[u]||(null===(l=null===(c=t.parent)||void 0===c?void 0:c.data)||void 0===l?void 0:l[u])),n&&(v[n]=t.data[n]||(null===(d=null===(h=t.parent)||void 0===h?void 0:h.data)||void 0===d?void 0:d[n])),v.ext=o,v["hierarchy-data-transform-params"]={hierarchyConfig:o,colorField:n,rawFields:r},f.push(v)})),f}function $g(t){var e,n=t.chart,r=t.options,i=r.color,o=r.colorField,a=void 0===o?"ancestor-node":o,l=r.sunburstStyle,u=r.rawFields,h=void 0===u?[]:u,d=r.shape,f=Wg(r);return n.data(f),l&&(e=function(t){return as({},{fillOpacity:Math.pow(.85,t.depth)},Object(c.I)(l)?l(t):l)}),dc(as({},t,{options:{xField:"x",yField:"y",seriesField:a,rawFields:Object(c.ub)(Object(s.g)(Object(s.g)([],cg,!0),h,!0)),polygon:{color:i,style:e,shape:d}}})),t}function Hg(t){return t.chart.axis(!1),t}function Yg(t){var e=t.chart,n=t.options.label,r=ls(e,"polygon");if(n){var i=n.fields,o=void 0===i?["name"]:i,a=n.callback,c=Object(s.f)(n,["fields","callback"]);r.label({fields:o,callback:a,cfg:fs(c)})}else r.label(!1);return t}function Vg(t){var e=t.chart,n=t.options,r=n.innerRadius,i=n.radius,o=n.reflect,a=e.coordinate({type:"polar",cfg:{innerRadius:r,radius:i}});return o&&a.reflect(o),t}function Gg(t){var e,n=t.options,r=n.hierarchyConfig,i=n.meta;return cs(Us({},((e={}).value=Object(c.s)(i,Object(c.s)(r,["field"],"value")),e)))(t)}function Kg(t){var e=t.chart,n=t.options.tooltip;if(!1===n)e.tooltip(!1);else{var r=n;Object(c.s)(n,"fields")||(r=as({},{customItems:function(t){return t.map((function(t){var n=Object(c.s)(e.getOptions(),"scales"),r=Object(c.s)(n,["path","formatter"],(function(t){return t})),i=Object(c.s)(n,["value","formatter"],(function(t){return t}));return Object(s.a)(Object(s.a)({},t),{name:r(t.data.path),value:i(t.data.value)})}))}},r)),e.tooltip(r)}return t}function Xg(t){var e=t.drilldown,n=t.interactions,r=void 0===n?[]:n;return(null==e?void 0:e.enabled)?as({},t,{interactions:Object(s.g)(Object(s.g)([],r,!0),[{type:"drill-down",cfg:{drillDownConfig:e,transformData:Wg}}],!1)}):t}function Ug(t){var e=t.chart,n=t.options,r=n.drilldown;return Hs({chart:e,options:Xg(n)}),(null==r?void 0:r.enabled)&&(e.appendPadding=vs(e.appendPadding,Object(c.s)(r,["breadCrumb","position"]))),t}function qg(t){return cs(Vs,zs("sunburstStyle"),$g,Hg,Gg,Ws,Vg,Kg,Yg,Ug,Ys,qs())(t)}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="sunburst",e}Object(s.c)(e,t),e.getDefaultOptions=function(){return lg},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return qg},e.SUNBURST_ANCESTOR_FIELD="ancestor-node",e.SUNBURST_PATH_FIELD="path",e.NODE_ANCESTORS_FIELD="nodeAncestor"}(vc);function Zg(t,e){if(Object(c.C)(t))return t.find((function(t){return t.type===e}))}function Qg(t,e){var n=Zg(t,e);return n&&!1!==n.enable}function Jg(t){var e=t.interactions,n=t.drilldown;return Object(c.s)(n,"enabled")||Qg(e,"treemap-drill-down")}function tv(t){var e=t.data,n=t.colorField,r=t.enableDrillDown,i=t.hierarchyConfig,o=zg(e,Object(s.a)(Object(s.a)({},i),{type:"hierarchy.treemap",field:"value",as:["x","y"]})),a=[];return o.forEach((function(t){if(0===t.depth)return null;if(r&&1!==t.depth)return null;if(!r&&t.children)return null;var o=t.ancestors().map((function(t){return{data:t.data,height:t.height,value:t.value}})),l=r&&Object(c.C)(e.path)?o.concat(e.path.slice(1)):o,u=Object.assign({},t.data,Object(s.a)({x:t.x,y:t.y,depth:t.depth,value:t.value,path:l},t));if(!t.data[n]&&t.parent){var h=t.ancestors().find((function(t){return t.data[n]}));u[n]=null==h?void 0:h.data[n]}else u[n]=t.data[n];u["hierarchy-data-transform-params"]={hierarchyConfig:i,colorField:n,enableDrillDown:r},a.push(u)})),a}function ev(t){var e=t.options.colorField;return as({options:{rawFields:["value"],tooltip:{fields:["name","value",e,"path"],formatter:function(t){return{name:t.name,value:t.value}}}}},t)}function nv(t){var e=t.chart,n=t.options,r=n.color,i=n.colorField,o=n.rectStyle,a=n.hierarchyConfig,s=n.rawFields,c=tv({data:n.data,colorField:n.colorField,enableDrillDown:Jg(n),hierarchyConfig:a});return e.data(c),dc(as({},t,{options:{xField:"x",yField:"y",seriesField:i,rawFields:s,polygon:{color:r,style:o}}})),e.coordinate().reflect("y"),t}function rv(t){return t.chart.axis(!1),t}function iv(t){var e=t.drilldown,n=t.interactions,r=void 0===n?[]:n;return Jg(t)?as({},t,{interactions:Object(s.g)(Object(s.g)([],r,!0),[{type:"drill-down",cfg:{drillDownConfig:e,transformData:tv}}],!1)}):t}function ov(t){var e=t.chart,n=t.options,r=n.interactions,i=n.drilldown;Hs({chart:e,options:iv(n)});var o=Zg(r,"view-zoom");return o&&(!1!==o.enable?e.getCanvas().on("mousewheel",(function(t){t.preventDefault()})):e.getCanvas().off("mousewheel")),Jg(n)&&(e.appendPadding=vs(e.appendPadding,Object(c.s)(i,["breadCrumb","position"]))),t}function av(t){return cs(ev,Vs,zs("rectStyle"),nv,rv,Ws,$s,ov,Ys,qs())(t)}var sv={colorField:"name",rectStyle:{lineWidth:1,stroke:"#fff"},hierarchyConfig:{tile:"treemapSquarify"},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1,breadCrumb:{position:"bottom-left",rootText:"初始",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}}}},cv=(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="treemap",e}Object(s.c)(e,t),e.getDefaultOptions=function(){return sv},e.prototype.changeData=function(t){var e=this.options,n=e.colorField,r=e.interactions,i=e.hierarchyConfig;this.updateOption({data:t});var o,a,s=tv({data:t,colorField:n,enableDrillDown:Qg(r,"treemap-drill-down"),hierarchyConfig:i});this.chart.changeData(s),o=this.chart,(a=o.interactions["drill-down"])&&a.context.actions.find((function(t){return"drill-down-action"===t.name})).reset()},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return av}}(vc),{appendPadding:[10,0,20,0],blendMode:"multiply",tooltip:{showTitle:!1,showMarkers:!1,fields:["id","size"],formatter:function(t){return{name:t.id,value:t.size}}},legend:{position:"top-left"},label:{style:{textAlign:"center",fill:"#fff"}},interactions:[{type:"legend-filter",enable:!1}],state:{active:{style:{stroke:"#000"}},selected:{style:{stroke:"#000",lineWidth:2}},inactive:{style:{fillOpacity:.3,strokeOpacity:.3}}},defaultInteractions:["tooltip","venn-legend-active"]});function lv(t){t&&t.geometries[0].elements.forEach((function(t){t.shape.toFront()}))}var uv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.syncElementsPos=function(){lv(this.context.view)},e.prototype.active=function(){t.prototype.active.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(Bt("element-active")),hv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.syncElementsPos=function(){lv(this.context.view)},e.prototype.highlight=function(){t.prototype.highlight.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.clear=function(){t.prototype.clear.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(Bt("element-highlight")),dv=Bt("element-selected"),fv=Bt("element-single-selected"),pv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.syncElementsPos=function(){lv(this.context.view)},e.prototype.selected=function(){t.prototype.selected.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(dv),gv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.syncElementsPos=function(){lv(this.context.view)},e.prototype.selected=function(){t.prototype.selected.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(fv);Lt("venn-element-active",uv),Lt("venn-element-highlight",hv),Lt("venn-element-selected",pv),Lt("venn-element-single-selected",gv),Ne("venn-element-active",{start:[{trigger:"element:mouseenter",action:"venn-element-active:active"}],end:[{trigger:"element:mouseleave",action:"venn-element-active:reset"}]}),Ne("venn-element-highlight",{start:[{trigger:"element:mouseenter",action:"venn-element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"venn-element-highlight:reset"}]}),Ne("venn-element-selected",{start:[{trigger:"element:click",action:"venn-element-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-selected:reset"]}]}),Ne("venn-element-single-selected",{start:[{trigger:"element:click",action:"venn-element-single-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-single-selected:reset"]}]}),Ne("venn-legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","venn-element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","venn-element-active:reset"]}]}),Ne("venn-legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","venn-element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","venn-element-highlight:reset"]}]}),Nn("venn",function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.c)(e,t),e.prototype.getLabelPoint=function(t,e,n){var r=t.data,i=r.x,o=r.y,a=t.customLabelInfo,s=a.offsetX,c=a.offsetY;return{content:t.content[n],x:i+s,y:o+c}},e}(or));var vv=Array.isArray,yv=n(561),mv=yv.a.Symbol,bv=Object.prototype,xv=bv.hasOwnProperty,Ov=bv.toString,jv=mv?mv.toStringTag:void 0;var wv=function(t){var e=xv.call(t,jv),n=t[jv];try{t[jv]=void 0;var r=!0}catch(t){}var i=Ov.call(t);return r&&(e?t[jv]=n:delete t[jv]),i},Cv=Object.prototype.toString;var _v=function(t){return Cv.call(t)},Mv=mv?mv.toStringTag:void 0;var Sv=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Mv&&Mv in Object(t)?wv(t):_v(t)};var Ev=function(t){return null!=t&&"object"==typeof t};var kv=function(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var c=a[t?s:++i];if(!1===n(o[c],c,o))break}return e}}();var Iv=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r};var Av=function(t){return Ev(t)&&"[object Arguments]"==Sv(t)},Pv=Object.prototype,Tv=Pv.hasOwnProperty,Bv=Pv.propertyIsEnumerable,Lv=Av(function(){return arguments}())?Av:function(t){return Ev(t)&&Tv.call(t,"callee")&&!Bv.call(t,"callee")},Dv=n(651),Fv=/^(?:0|[1-9]\d*)$/;var Rv=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Fv.test(t))&&t>-1&&t%1==0&&t<e};var Nv=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},zv={};zv["[object Float32Array]"]=zv["[object Float64Array]"]=zv["[object Int8Array]"]=zv["[object Int16Array]"]=zv["[object Int32Array]"]=zv["[object Uint8Array]"]=zv["[object Uint8ClampedArray]"]=zv["[object Uint16Array]"]=zv["[object Uint32Array]"]=!0,zv["[object Arguments]"]=zv["[object Array]"]=zv["[object ArrayBuffer]"]=zv["[object Boolean]"]=zv["[object DataView]"]=zv["[object Date]"]=zv["[object Error]"]=zv["[object Function]"]=zv["[object Map]"]=zv["[object Number]"]=zv["[object Object]"]=zv["[object RegExp]"]=zv["[object Set]"]=zv["[object String]"]=zv["[object WeakMap]"]=!1;var Wv=function(t){return Ev(t)&&Nv(t.length)&&!!zv[Sv(t)]};var $v=function(t){return function(e){return t(e)}},Hv=n(710),Yv=Hv.a&&Hv.a.isTypedArray,Vv=Yv?$v(Yv):Wv,Gv=Object.prototype.hasOwnProperty;var Kv=function(t,e){var n=vv(t),r=!n&&Lv(t),i=!n&&!r&&Object(Dv.a)(t),o=!n&&!r&&!i&&Vv(t),a=n||r||i||o,s=a?Iv(t.length,String):[],c=s.length;for(var l in t)!e&&!Gv.call(t,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Rv(l,c))||s.push(l);return s},Xv=Object.prototype;var Uv=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Xv)};var qv=function(t,e){return function(n){return t(e(n))}}(Object.keys,Object),Zv=Object.prototype.hasOwnProperty;var Qv=function(t){if(!Uv(t))return qv(t);var e=[];for(var n in Object(t))Zv.call(t,n)&&"constructor"!=n&&e.push(n);return e};var Jv=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var ty=function(t){if(!Jv(t))return!1;var e=Sv(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};var ey=function(t){return null!=t&&Nv(t.length)&&!ty(t)};var ny=function(t){return ey(t)?Kv(t):Qv(t)};ry=function(t,e){return t&&kv(t,e,ny)};var ry,iy;var oy=function(){this.__data__=[],this.size=0};var ay=function(t,e){return t===e||t!=t&&e!=e};var sy=function(t,e){for(var n=t.length;n--;)if(ay(t[n][0],e))return n;return-1},cy=Array.prototype.splice;var ly=function(t){var e=this.__data__,n=sy(e,t);return!(n<0)&&(n==e.length-1?e.pop():cy.call(e,n,1),--this.size,!0)};var uy=function(t){var e=this.__data__,n=sy(e,t);return n<0?void 0:e[n][1]};var hy=function(t){return sy(this.__data__,t)>-1};var dy=function(t,e){var n=this.__data__,r=sy(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function fy(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])}}fy.prototype.clear=oy,fy.prototype.delete=ly,fy.prototype.get=uy,fy.prototype.has=hy,fy.prototype.set=dy;var py=fy;var gy=function(){this.__data__=new py,this.size=0};var vy=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};var yy=function(t){return this.__data__.get(t)};var my,by=function(t){return this.__data__.has(t)},xy=yv.a["__core-js_shared__"],Oy=(my=/[^.]+$/.exec(xy&&xy.keys&&xy.keys.IE_PROTO||""))?"Symbol(src)_1."+my:"";var jy=function(t){return!!Oy&&Oy in t},wy=Function.prototype.toString;var Cy=function(t){if(null!=t){try{return wy.call(t)}catch(t){}try{return t+""}catch(t){}}return""},_y=/^\[object .+?Constructor\]$/,My=Function.prototype,Sy=Object.prototype,Ey=My.toString,ky=Sy.hasOwnProperty,Iy=RegExp("^"+Ey.call(ky).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Ay=function(t){return!(!Jv(t)||jy(t))&&(ty(t)?Iy:_y).test(Cy(t))};var Py=function(t,e){return null==t?void 0:t[e]};var Ty=function(t,e){var n=Py(t,e);return Ay(n)?n:void 0},By=Ty(yv.a,"Map"),Ly=Ty(Object,"create");var Dy=function(){this.__data__=Ly?Ly(null):{},this.size=0};var Fy=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Ry=Object.prototype.hasOwnProperty;var Ny=function(t){var e=this.__data__;if(Ly){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ry.call(e,t)?e[t]:void 0},zy=Object.prototype.hasOwnProperty;var Wy=function(t){var e=this.__data__;return Ly?void 0!==e[t]:zy.call(e,t)};var $y=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Ly&&void 0===e?"__lodash_hash_undefined__":e,this};function Hy(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])}}Hy.prototype.clear=Dy,Hy.prototype.delete=Fy,Hy.prototype.get=Ny,Hy.prototype.has=Wy,Hy.prototype.set=$y;var Yy=Hy;var Vy=function(){this.size=0,this.__data__={hash:new Yy,map:new(By||py),string:new Yy}};var Gy=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var Ky=function(t,e){var n=t.__data__;return Gy(e)?n["string"==typeof e?"string":"hash"]:n.map};var Xy=function(t){var e=Ky(this,t).delete(t);return this.size-=e?1:0,e};var Uy=function(t){return Ky(this,t).get(t)};var qy=function(t){return Ky(this,t).has(t)};var Zy=function(t,e){var n=Ky(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function Qy(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])}}Qy.prototype.clear=Vy,Qy.prototype.delete=Xy,Qy.prototype.get=Uy,Qy.prototype.has=qy,Qy.prototype.set=Zy;var Jy=Qy;var tm=function(t,e){var n=this.__data__;if(n instanceof py){var r=n.__data__;if(!By||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jy(r)}return n.set(t,e),this.size=n.size,this};function em(t){var e=this.__data__=new py(t);this.size=e.size}em.prototype.clear=gy,em.prototype.delete=vy,em.prototype.get=yy,em.prototype.has=by,em.prototype.set=tm;var nm=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};var rm=function(t){return this.__data__.has(t)};function im(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jy;++e<n;)this.add(t[e])}im.prototype.add=im.prototype.push=nm,im.prototype.has=rm;yv.a.Uint8Array;var om=mv?mv.prototype:void 0;om&&om.valueOf;Object.prototype.propertyIsEnumerable,Object.getOwnPropertySymbols;Object.prototype.hasOwnProperty;var am=Ty(yv.a,"DataView"),sm=Ty(yv.a,"Promise"),cm=Ty(yv.a,"Set"),lm=Ty(yv.a,"WeakMap"),um=Cy(am),hm=Cy(By),dm=Cy(sm),fm=Cy(cm),pm=Cy(lm),gm=Sv;(am&&"[object DataView]"!=gm(new am(new ArrayBuffer(1)))||By&&"[object Map]"!=gm(new By)||sm&&"[object Promise]"!=gm(sm.resolve())||cm&&"[object Set]"!=gm(new cm)||lm&&"[object WeakMap]"!=gm(new lm))&&(gm=function(t){var e=Sv(t),n="[object Object]"==e?t.constructor:void 0,r=n?Cy(n):"";if(r)switch(r){case um:return"[object DataView]";case hm:return"[object Map]";case dm:return"[object Promise]";case fm:return"[object Set]";case pm:return"[object WeakMap]"}return e});Object.prototype.hasOwnProperty;var vm=new RegExp("([a-z])[\t\n\v\f\r \u2028\u2029,]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?[\t\n\v\f\r \u2028\u2029]*,?[\t\n\v\f\r \u2028\u2029]*)+)","ig"),ym=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)[\t\n\v\f\r \u2028\u2029]*,?[\t\n\v\f\r \u2028\u2029]*","ig");function mm(t){if(!t)return null;if(vv(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(vm,(function(t,r,i){var o=[],a=r.toLowerCase();if(i.replace(ym,(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}Math.PI;Vn("schema","venn",{draw:function(t,e){var n=mm(t.data.path),r=function(t){return as({},t.defaultStyle,{fill:t.color},t.style)}(t),i=e.addGroup({name:"venn-shape"});i.addShape("path",{attrs:Object(s.a)(Object(s.a)({},r),{path:n}),name:"venn-path"});var o=t.customInfo,a=o.offsetX,c=o.offsetY,l=_r.transform(null,[["t",a,c]]);return i.setMatrix(l),i},getMarker:function(t){var e=t.color;return{symbol:"circle",style:{lineWidth:0,stroke:e,fill:e,r:4}}}});var bm={normal:function(t){return t},multiply:function(t,e){return t*e/255},screen:function(t,e){return 255*(1-(1-t/255)*(1-e/255))},overlay:function(t,e){return e<128?2*t*e/255:255*(1-2*(1-t/255)*(1-e/255))},darken:function(t,e){return t>e?e:t},lighten:function(t,e){return t>e?t:e},dodge:function(t,e){return 255===t||(t=e/255*255/(1-t/255))>255?255:t},burn:function(t,e){return 255===e?255:0===t?0:255*(1-Math.min(1,(1-e/255)/(t/255)))}};function xm(t,e,n){void 0===n&&(n="normal");var r,i=(r=function(t){if(!bm[t])throw new Error("unknown blend mode "+t);return bm[t]}(n),function(t,e){var n=[];return n[0]=r(t[0],e[0]),n[1]=r(t[1],e[1]),n[2]=r(t[2],e[2]),n})(Om(t),Om(e)),o=Om(t),a=o[0],s=o[1],c=o[2],l=o[3],u=Om(e),h=u[0],d=u[1],f=u[2],p=u[3],g=Number((l+p*(1-l)).toFixed(2)),v=Math.round((l*(1-p)*(a/255)+l*p*(i[0]/255)+(1-l)*p*(h/255))/g*255),y=Math.round((l*(1-p)*(s/255)+l*p*(i[1]/255)+(1-l)*p*(d/255))/g*255),m=Math.round((l*(1-p)*(c/255)+l*p*(i[2]/255)+(1-l)*p*(f/255))/g*255);return"rgba(".concat(v,", ").concat(y,", ").concat(m,", ").concat(g,")")}function Om(t){var e,n=t.replace("/s+/g","");return"string"!=typeof n||n.startsWith("rgba")||n.startsWith("#")?(n.startsWith("rgba")&&(e=n.replace("rgba(","").replace(")","").split(",")),n.startsWith("#")&&(e=E.a.rgb2arr(n).concat([1])),e.map((function(t,e){return 3===e?Number(t):0|t}))):E.a.rgb2arr(E.a.toRGB(n)).concat([1])}var jm=n(653);function wm(t,e){var n,r=function(t){for(var e=[],n=0;n<t.length;++n)for(var r=n+1;r<t.length;++r)for(var i=Sm(t[n],t[r]),o=0;o<i.length;++o){var a=i[o];a.parentIndex=[n,r],e.push(a)}return e}(t),i=r.filter((function(e){return function(t,e){for(var n=0;n<e.length;++n)if(_m(t,e[n])>e[n].radius+1e-10)return!1;return!0}(e,t)})),o=0,a=0,s=[];if(i.length>1){var c=Em(i);for(n=0;n<i.length;++n){var l=i[n];l.angle=Math.atan2(l.x-c.x,l.y-c.y)}i.sort((function(t,e){return e.angle-t.angle}));var u=i[i.length-1];for(n=0;n<i.length;++n){var h=i[n];a+=(u.x+h.x)*(h.y-u.y);for(var d={x:(h.x+u.x)/2,y:(h.y+u.y)/2},f=null,p=0;p<h.parentIndex.length;++p)if(u.parentIndex.indexOf(h.parentIndex[p])>-1){var g=t[h.parentIndex[p]],v=Math.atan2(h.x-g.x,h.y-g.y),y=Math.atan2(u.x-g.x,u.y-g.y),m=y-v;m<0&&(m+=2*Math.PI);var b=y-m/2,x=_m(d,{x:g.x+g.radius*Math.sin(b),y:g.y+g.radius*Math.cos(b)});x>2*g.radius&&(x=2*g.radius),(null===f||f.width>x)&&(f={circle:g,width:x,p1:h,p2:u})}null!==f&&(s.push(f),o+=Cm(f.circle.radius,f.width),u=h)}}else{var O=t[0];for(n=1;n<t.length;++n)t[n].radius<O.radius&&(O=t[n]);var j=!1;for(n=0;n<t.length;++n)if(_m(t[n],O)>Math.abs(O.radius-t[n].radius)){j=!0;break}j?o=a=0:(o=O.radius*O.radius*Math.PI,s.push({circle:O,p1:{x:O.x,y:O.y+O.radius},p2:{x:O.x-1e-10,y:O.y+O.radius},width:2*O.radius}))}return a/=2,e&&(e.area=o+a,e.arcArea=o,e.polygonArea=a,e.arcs=s,e.innerPoints=i,e.intersectionPoints=r),o+a}function Cm(t,e){return t*t*Math.acos(1-e/t)-(t-e)*Math.sqrt(e*(2*t-e))}function _m(t,e){return Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y))}function Mm(t,e,n){if(n>=t+e)return 0;if(n<=Math.abs(t-e))return Math.PI*Math.min(t,e)*Math.min(t,e);var r=e-(n*n-t*t+e*e)/(2*n);return Cm(t,t-(n*n-e*e+t*t)/(2*n))+Cm(e,r)}function Sm(t,e){var n=_m(t,e),r=t.radius,i=e.radius;if(n>=r+i||n<=Math.abs(r-i))return[];var o=(r*r-i*i+n*n)/(2*n),a=Math.sqrt(r*r-o*o),s=t.x+o*(e.x-t.x)/n,c=t.y+o*(e.y-t.y)/n,l=-(e.y-t.y)*(a/n),u=-(e.x-t.x)*(a/n);return[{x:s+l,y:c-u},{x:s-l,y:c+u}]}function Em(t){for(var e={x:0,y:0},n=0;n<t.length;++n)e.x+=t[n].x,e.y+=t[n].y;return e.x/=t.length,e.y/=t.length,e}function km(t,e,n){var r,i,o=e[0].radius-_m(e[0],t);for(r=1;r<e.length;++r)(i=e[r].radius-_m(e[r],t))<=o&&(o=i);for(r=0;r<n.length;++r)(i=_m(n[r],t)-n[r].radius)<=o&&(o=i);return o}function Im(t,e){var n,r=[];for(n=0;n<t.length;++n){var i=t[n];r.push({x:i.x,y:i.y}),r.push({x:i.x+i.radius/2,y:i.y}),r.push({x:i.x-i.radius/2,y:i.y}),r.push({x:i.x,y:i.y+i.radius/2}),r.push({x:i.x,y:i.y-i.radius/2})}var o=r[0],a=km(r[0],t,e);for(n=1;n<r.length;++n){var s=km(r[n],t,e);s>=a&&(o=r[n],a=s)}var c=Object(jm.nelderMead)((function(n){return-1*km({x:n[0],y:n[1]},t,e)}),[o.x,o.y],{maxIterations:500,minErrorDelta:1e-10}).x,l={x:c[0],y:c[1]},u=!0;for(n=0;n<t.length;++n)if(_m(l,t[n])>t[n].radius){u=!1;break}for(n=0;n<e.length;++n)if(_m(l,e[n])<e[n].radius){u=!1;break}if(!u)if(1==t.length)l={x:t[0].x,y:t[0].y};else{var h={};wm(t,h),l=0===h.arcs.length?{x:0,y:-1e3,disjoint:!0}:1==h.arcs.length?{x:h.arcs[0].circle.x,y:h.arcs[0].circle.y}:e.length?Im(t,[]):Em(h.arcs.map((function(t){return t.p1})))}return l}function Am(t,e){for(var n={},r=function(t){var e={},n=[];for(var r in t)n.push(r),e[r]=[];for(var i=0;i<n.length;i++)for(var o=t[n[i]],a=i+1;a<n.length;++a){var s=t[n[a]],c=_m(o,s);c+s.radius<=o.radius+1e-10?e[n[a]].push(n[i]):c+o.radius<=s.radius+1e-10&&e[n[i]].push(n[a])}return e}(t),i=0;i<e.length;++i){for(var o=e[i].sets,a={},s={},c=0;c<o.length;++c){a[o[c]]=!0;for(var l=r[o[c]],u=0;u<l.length;++u)s[l[u]]=!0}var h=[],d=[];for(var f in t)f in a?h.push(t[f]):f in s||d.push(t[f]);var p=Im(h,d);n[o]=p,p.disjoint&&e[i].size>0&&console.log("WARNING: area "+o+" not represented on screen")}return n}function Pm(t,e,n){return Math.min(t,e)*Math.min(t,e)*Math.PI<=n+1e-10?Math.abs(t-e):Object(jm.bisect)((function(r){return Mm(t,e,r)-n}),0,t+e)}function Tm(t,e){var n=function(t,e){for(var n,r=e&&e.lossFunction?e.lossFunction:Bm,i={},o={},a=0;a<t.length;++a){var s=t[a];1==s.sets.length&&(n=s.sets[0],i[n]={x:1e10,y:1e10,rowid:Object.keys(i).length,size:s.size,radius:Math.sqrt(s.size/Math.PI)},o[n]=[])}t=t.filter((function(t){return 2==t.sets.length}));for(a=0;a<t.length;++a){var c=t[a],l=c.hasOwnProperty("weight")?c.weight:1,u=c.sets[0],h=c.sets[1];c.size+1e-10>=Math.min(i[u].size,i[h].size)&&(l=0),o[u].push({set:h,size:c.size,weight:l}),o[h].push({set:u,size:c.size,weight:l})}var d=[];for(n in o)if(o.hasOwnProperty(n)){var f=0;for(a=0;a<o[n].length;++a)f+=o[n][a].size*o[n][a].weight;d.push({set:n,size:f})}function p(t,e){return e.size-t.size}d.sort(p);var g={};function v(t){return t.set in g}function y(t,e){i[e].x=t.x,i[e].y=t.y,g[e]=!0}y({x:0,y:0},d[0].set);for(a=1;a<d.length;++a){var m=d[a].set,b=o[m].filter(v);if(n=i[m],b.sort(p),0===b.length)throw"ERROR: missing pairwise overlap information";for(var x=[],O=0;O<b.length;++O){var j=i[b[O].set],w=Pm(n.radius,j.radius,b[O].size);x.push({x:j.x+w,y:j.y}),x.push({x:j.x-w,y:j.y}),x.push({y:j.y+w,x:j.x}),x.push({y:j.y-w,x:j.x});for(var C=O+1;C<b.length;++C)for(var _=i[b[C].set],M=Pm(n.radius,_.radius,b[C].size),S=Sm({x:j.x,y:j.y,radius:w},{x:_.x,y:_.y,radius:M}),E=0;E<S.length;++E)x.push(S[E])}var k=1e50,I=x[0];for(O=0;O<x.length;++O){i[m].x=x[O].x,i[m].y=x[O].y;var A=r(i,t);A<k&&(k=A,I=x[O])}y(I,m)}return i}(t,e),r=e.lossFunction||Bm;if(t.length>=8){var i=function(t,e){var n,r=(e=e||{}).restarts||10,i=[],o={};for(n=0;n<t.length;++n){var a=t[n];1==a.sets.length&&(o[a.sets[0]]=i.length,i.push(a))}var s=function(t,e,n){var r=Object(jm.zerosM)(e.length,e.length),i=Object(jm.zerosM)(e.length,e.length);return t.filter((function(t){return 2==t.sets.length})).map((function(t){var o=n[t.sets[0]],a=n[t.sets[1]],s=Pm(Math.sqrt(e[o].size/Math.PI),Math.sqrt(e[a].size/Math.PI),t.size);r[o][a]=r[a][o]=s;var c=0;t.size+1e-10>=Math.min(e[o].size,e[a].size)?c=1:t.size<=1e-10&&(c=-1),i[o][a]=i[a][o]=c})),{distances:r,constraints:i}}(t,i,o),c=s.distances,l=s.constraints,u=Object(jm.norm2)(c.map(jm.norm2))/c.length;c=c.map((function(t){return t.map((function(t){return t/u}))}));var h,d,f=function(t,e){return function(t,e,n,r){var i,o=0;for(i=0;i<e.length;++i)e[i]=0;for(i=0;i<n.length;++i)for(var a=t[2*i],s=t[2*i+1],c=i+1;c<n.length;++c){var l=t[2*c],u=t[2*c+1],h=n[i][c],d=r[i][c],f=(l-a)*(l-a)+(u-s)*(u-s),p=Math.sqrt(f),g=f-h*h;d>0&&p<=h||d<0&&p>=h||(o+=2*g*g,e[2*i]+=4*g*(a-l),e[2*i+1]+=4*g*(s-u),e[2*c]+=4*g*(l-a),e[2*c+1]+=4*g*(u-s))}return o}(t,e,c,l)};for(n=0;n<r;++n){var p=Object(jm.zeros)(2*c.length).map(Math.random);d=Object(jm.conjugateGradient)(f,p,e),(!h||d.fx<h.fx)&&(h=d)}var g=h.x,v={};for(n=0;n<i.length;++n){var y=i[n];v[y.sets[0]]={x:g[2*n]*u,y:g[2*n+1]*u,radius:Math.sqrt(y.size/Math.PI)}}if(e.history)for(n=0;n<e.history.length;++n)Object(jm.scale)(e.history[n].x,u);return v}(t,e);r(i,t)+1e-8<r(n,t)&&(n=i)}return n}function Bm(t,e){var n=0;for(var r=0;r<e.length;++r){var i=e[r],o=void 0;if(1!=i.sets.length){if(2==i.sets.length){var a=t[i.sets[0]],s=t[i.sets[1]];o=Mm(a.radius,s.radius,_m(a,s))}else o=wm(i.sets.map((function(e){return t[e]})));n+=(i.hasOwnProperty("weight")?i.weight:1)*(o-i.size)*(o-i.size)}}return n}function Lm(t){var e=function(e){return{max:Math.max.apply(null,t.map((function(t){return t[e]+t.radius}))),min:Math.min.apply(null,t.map((function(t){return t[e]-t.radius})))}};return{xRange:e("x"),yRange:e("y")}}var Dm=Object(c.ab)((function(t,e,n,r){var i=new Map,o=t.length;return e.forEach((function(e,a){if(1===e[r].length)i.set(e.id,t[(a+o)%o]);else{var s=e[r].map((function(t){return i.get(t)}));i.set(e.id,s.slice(1).reduce((function(t,e){return xm(t,e,n)}),s[0]))}})),i}),(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return JSON.stringify(t)}));function Fm(t,e,n,r){void 0===r&&(r=0);var i=t.data,o=t.setsField,a=t.sizeField;if(0===i.length)return Ua(Va.WARN,!1,"warn: %s","数据不能为空"),[];var l=i.map((function(t){var e;return Object(s.a)(Object(s.a)({},t),((e={sets:t[o]||[],size:t[a]}).path="",e.id="",e))}));l.sort((function(t,e){return t.sets.length-e.sets.length}));var u=function(t,e,n,r){var i=[],o=[];for(var a in t)t.hasOwnProperty(a)&&(o.push(a),i.push(t[a]));e-=2*r,n-=2*r;var s=Lm(i),c=s.xRange,l=s.yRange;if(c.max==c.min||l.max==l.min)return console.log("not scaling solution: zero size detected"),t;for(var u=e/(c.max-c.min),h=n/(l.max-l.min),d=Math.min(h,u),f=(e-(c.max-c.min)*d)/2,p=(n-(l.max-l.min)*d)/2,g={},v=0;v<i.length;++v){var y=i[v];g[o[v]]={radius:d*y.radius,x:r+f+(y.x-c.min)*d,y:r+p+(y.y-l.min)*d}}return g}(function(t,e){(e=e||{}).maxIterations=e.maxIterations||500;var n,r=e.initialLayout||Tm,i=e.lossFunction||Bm,o=r(t=function(t){t=t.slice();var e,n,r,i,o=[],a={};for(e=0;e<t.length;++e){var s=t[e];1==s.sets.length?o.push(s.sets[0]):2==s.sets.length&&(r=s.sets[0],i=s.sets[1],a[[r,i]]=!0,a[[i,r]]=!0)}for(o.sort((function(t,e){return t>e?1:-1})),e=0;e<o.length;++e)for(r=o[e],n=e+1;n<o.length;++n)i=o[n],[r,i]in a||t.push({sets:[r,i],size:0});return t}(t),e),a=[],s=[];for(n in o)o.hasOwnProperty(n)&&(a.push(o[n].x),a.push(o[n].y),s.push(n));for(var c=Object(jm.nelderMead)((function(e){for(var n={},r=0;r<s.length;++r){var a=s[r];n[a]={x:e[2*r],y:e[2*r+1],radius:o[a].radius}}return i(n,t)}),a,e).x,l=0;l<s.length;++l)n=s[l],o[n].x=c[2*l],o[n].y=c[2*l+1];return o}(l),e,n,r),h=Am(u,l);return l.forEach((function(t){var e=t.sets,n=e.join(",");t.id=n;var r=function(t){var e={};wm(t,e);var n=e.arcs;if(0===n.length)return"M 0 0";if(1==n.length){var r=n[0].circle;return function(t,e,n){var r=[],i=t-n,o=e;return r.push("M",i,o),r.push("A",n,n,0,1,0,i+2*n,o),r.push("A",n,n,0,1,0,i,o),r.join(" ")}(r.x,r.y,r.radius)}for(var i=["\nM",n[0].p2.x,n[0].p2.y],o=0;o<n.length;++o){var a=n[o],s=a.circle.radius,c=a.width>s;i.push("\nA",s,s,0,c?1:0,1,a.p1.x,a.p1.y)}return i.join(" ")}(e.map((function(t){return u[t]})));/[zZ]$/.test(r)||(r+=" Z"),t.path=r;var i=h[n]||{x:0,y:0};Object(c.b)(t,i)})),l}function Rm(t,e,n){var r=t.chart,i=t.options,o=i.blendMode,a=i.setsField,s=r.getTheme(),l=s.colors10,u=s.colors20,h=n;Object(c.C)(h)||(h=e.filter((function(t){return 1===t[a].length})).length<=10?l:u);var d=Dm(h,e,o,a);return function(t){return d.get(t)||h[0]}}function Nm(t){var e=t.chart,n=t.options,r=n.legend,i=n.appendPadding,o=n.padding,a=gs(i);return!1!==r&&(a=vs(i,Object(c.s)(r,"position"),40)),e.appendPadding=ys([a,o]),t}function zm(t){var e=t.options.data;e||(Ua(Va.WARN,!1,"warn: %s","数据不能为空"),e=[]);var n=e.filter((function(t){return 1===t.sets.length})).map((function(t){return t.sets[0]})),r=e.filter((function(t){var e=t.sets;return function(t,e){for(var n=0;n<e.length;n++)if(!t.includes(e[n]))return!1;return!0}(n,e)}));return Object(c.H)(r,e)||Ua(Va.WARN,!1,"warn: %s","交集中不能出现不存在的集合, 请输入合法数据"),Object(c.h)({},t,{options:{data:r}})}function Wm(t){var e=t.chart,n=t.options,r=n.pointStyle,i=n.setsField,o=n.sizeField,a=gs(e.appendPadding),s=a[0],c=a[1],l=a[2],u=a[3],h={offsetX:u,offsetY:s},d=e.viewBBox,f=d.width,p=d.height,g=Fm(n,Math.max(f-(c+u),0),Math.max(p-(s+l),0),0);e.data(g);var v=fc(as({},t,{options:{xField:"x",yField:"y",sizeField:o,seriesField:"id",rawFields:[i,o],schema:{shape:"venn",style:r}}})).ext.geometry;v.customInfo(h);var y=function(t,e){var n=t.options.color;if("function"!=typeof n){var r=Rm(t,e,"string"==typeof n?[n]:n);return function(t){return r(t.id)}}return n}(t,g);return"function"==typeof y&&v.color("id",(function(e){var n=g.find((function(t){return t.id===e})),r=Rm(t,g)(e);return y(n,r)})),t}function $m(t){var e=t.chart,n=t.options.label,r=gs(e.appendPadding),i=r[0],o={offsetX:r[3],offsetY:i},a=ls(e,"schema");if(n){var l=n.callback,u=Object(s.f)(n,["callback"]);a.label({fields:["id"],callback:l,cfg:Object(c.h)({},fs(u),{type:"venn",customLabelInfo:o})})}else a.label(!1);return t}function Hm(t){var e=t.chart,n=t.options,r=n.legend,i=n.sizeField;return e.legend("id",r),e.legend(i,!1),t}function Ym(t){return t.chart.axis(!1),t}function Vm(t){var e=t.options,n=t.chart,r=e.interactions;if(r){var i={"legend-active":"venn-legend-active","legend-highlight":"venn-legend-highlight"};Hs(as({},t,{options:{interactions:r.map((function(t){return Object(s.a)(Object(s.a)({},t),{type:i[t.type]||t.type})}))}}))}return n.removeInteraction("legend-active"),n.removeInteraction("legend-highlight"),t}function Gm(t){return cs(Nm,Vs,zm,Wm,$m,Us({}),Hm,Ym,$s,Vm,Ys)(t)}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="venn",e}Object(s.c)(e,t),e.getDefaultOptions=function(){return cv},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Gm},e.prototype.triggerResize=function(){this.chart.destroyed||(this.chart.forceFit(),this.chart.clear(),this.execAdaptor(),this.chart.render(!0))}}(vc);var Km=as({},vc.getDefaultOptions(),{syncViewPadding:!0,kde:{type:"triangular",sampleSize:32,width:3},violinStyle:{lineWidth:1,fillOpacity:.3,strokeOpacity:.75},xAxis:{grid:{line:null},tickLine:{alignTick:!1}},yAxis:{grid:{line:{style:{lineWidth:.5,lineDash:[4,4]}}}},legend:{position:"top-left"},tooltip:{showMarkers:!1}}),Xm=n(711),Um=n.n(Xm);function qm(t,e){var n=t.length*e;if(0===t.length)throw new Error("quantile requires at least one data point.");if(e<0||e>1)throw new Error("quantiles must be between 0 and 1");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 Zm(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function Qm(t,e,n,r){for(n=n||0,r=r||t.length-1;r>n;){if(r-n>600){var i=r-n+1,o=e-n+1,a=Math.log(i),s=.5*Math.exp(2*a/3),c=.5*Math.sqrt(a*s*(i-s)/i);o-i/2<0&&(c*=-1),Qm(t,e,Math.max(n,Math.floor(e-o*s/i+c)),Math.min(r,Math.floor(e+(i-o)*s/i+c)))}var l=t[e],u=n,h=r;for(Zm(t,n,e),t[r]>l&&Zm(t,n,r);u<h;){for(Zm(t,u,h),u++,h--;t[u]<l;)u++;for(;t[h]>l;)h--}t[n]===l?Zm(t,n,h):Zm(t,++h,r),h<=e&&(n=h+1),e<=h&&(r=h-1)}}function Jm(t,e){var n=t.slice();if(Array.isArray(e)){!function(t,e){for(var n=[0],r=0;r<e.length;r++)n.push(nb(t.length,e[r]));n.push(t.length-1),n.sort(eb);var i=[0,n.length-1];for(;i.length;){var o=Math.ceil(i.pop()),a=Math.floor(i.pop());if(!(o-a<=1)){var s=Math.floor((a+o)/2);tb(t,n[s],Math.floor(n[a]),Math.ceil(n[o])),i.push(a,s,s,o)}}}(n,e);for(var r=[],i=0;i<e.length;i++)r[i]=qm(n,e[i]);return r}return tb(n,nb(n.length,e),0,n.length-1),qm(n,e)}function tb(t,e,n,r){e%1==0?Qm(t,e,n,r):(Qm(t,e=Math.floor(e),n,r),Qm(t,e+1,e+1,r))}function eb(t,e){return t-e}function nb(t,e){var n=t*e;return 1===e?t-1:0===e?0:n%1!=0?Math.ceil(n)-1:t%2==0?n-.5:n}var rb=function(t){return{low:Object(c.bb)(t),high:Object(c.Y)(t),q1:Jm(t,.25),q3:Jm(t,.75),median:Jm(t,[.5]),minMax:[Object(c.bb)(t),Object(c.Y)(t)],quantile:[Jm(t,.25),Jm(t,.75)]}},ib=function(t,e){var n=Um.a.create(t,e);return{violinSize:n.map((function(t){return t.y})),violinY:n.map((function(t){return t.x}))}},ob=function(t){var e=t.xField,n=t.yField,r=t.seriesField,i=t.data,o=t.kde,a={min:o.min,max:o.max,size:o.sampleSize,width:o.width};if(!r){var l=Object(c.w)(i,e);return Object.keys(l).map((function(t){var e=l[t].map((function(t){return t[n]}));return Object(s.a)(Object(s.a)({x:t},ib(e,a)),rb(e))}))}var u=[],h=Object(c.w)(i,r);return Object.keys(h).forEach((function(t){var i=Object(c.w)(h[t],e);return Object.keys(i).forEach((function(e){var o,c=i[e].map((function(t){return t[n]}));u.push(Object(s.a)(Object(s.a)(((o={x:e})[r]=t,o),ib(c,a)),rb(c)))}))})),u},ab=["low","high","q1","q3","median"],sb=[{type:"dodge",marginRatio:1/32}];function cb(t){var e=t.chart,n=t.options;return e.data(ob(n)),t}function lb(t){var e=t.chart,n=t.options,r=n.seriesField,i=n.color,o=n.shape,a=void 0===o?"violin":o,c=n.violinStyle,l=n.tooltip,u=n.state,h=e.createView({id:"violin_view"});return function(t){var e=t.options,n=e.violin,r=e.xField,i=e.yField,o=e.seriesField,a=e.sizeField,c=rc(e.tooltip,[r,i,o,a]),l=c.fields,u=c.formatter;n&&ac(as({},t,{options:{type:"violin",colorField:o,tooltipFields:l,mapping:Object(s.a)({tooltip:u},n)}}))}({chart:h,options:{xField:"x",yField:"violinY",seriesField:r||"x",sizeField:"violinSize",tooltip:Object(s.a)({fields:ab},l),violin:{style:c,color:i,shape:a},state:u}}),h.geometries[0].adjust(sb),t}function ub(t){var e=t.chart,n=t.options,r=n.seriesField,i=n.color,o=n.tooltip,a=n.box;if(!1===a)return t;var c=e.createView({id:"min_max_view"});lc({chart:c,options:{xField:"x",yField:"minMax",seriesField:r||"x",tooltip:Object(s.a)({fields:ab},o),state:"object"==typeof a?a.state:{},interval:{color:i,size:1,style:{lineWidth:0}}}}),c.geometries[0].adjust(sb);var l=e.createView({id:"quantile_view"});lc({chart:l,options:{xField:"x",yField:"quantile",seriesField:r||"x",tooltip:Object(s.a)({fields:ab},o),state:"object"==typeof a?a.state:{},interval:{color:i,size:8,style:{fillOpacity:1}}}}),l.geometries[0].adjust(sb);var u=e.createView({id:"median_view"});return hc({chart:u,options:{xField:"x",yField:"median",seriesField:r||"x",tooltip:Object(s.a)({fields:ab},o),state:"object"==typeof a?a.state:{},point:{color:i,size:1,style:{fill:"white",lineWidth:0}}}}),u.geometries[0].adjust(sb),l.axis(!1),c.axis(!1),u.axis(!1),u.legend(!1),c.legend(!1),l.legend(!1),t}function hb(t){var e,n=t.chart,r=t.options,i=r.meta,o=r.xAxis,a=r.yAxis,c=as({},i,((e={}).x=Object(s.a)(Object(s.a)({sync:!0},qa(o,Ga)),{type:"cat"}),e.violinY=Object(s.a)({sync:!0},qa(a,Ga)),e.minMax=Object(s.a)({sync:"violinY"},qa(a,Ga)),e.quantile=Object(s.a)({sync:"violinY"},qa(a,Ga)),e.median=Object(s.a)({sync:"violinY"},qa(a,Ga)),e));return n.scale(c),t}function db(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=ws(e,"violin_view");return!1===r?o.axis("x",!1):o.axis("x",r),!1===i?o.axis("violinY",!1):o.axis("violinY",i),e.axis(!1),t}function fb(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField,o=n.shape;if(!1===r)e.legend(!1);else{var a=i||"x",s=Object(c.gb)(r,["selected"]);o&&o.startsWith("hollow")||Object(c.s)(s,["marker","style","lineWidth"])||Object(c.lb)(s,["marker","style","lineWidth"],0),e.legend(a,s),Object(c.s)(r,"selected")&&Object(c.j)(e.views,(function(t){return t.legend(a,r)}))}return t}function pb(t){var e=ws(t.chart,"violin_view");return qs()(Object(s.a)(Object(s.a)({},t),{chart:e})),t}function gb(t){var e=t.chart,n=t.options.animation;return Object(c.j)(e.views,(function(t){Ms(t,n)})),t}function vb(t){return cs(Vs,cb,lb,ub,hb,$s,db,fb,Hs,pb,gb)(t)}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="violin",e}Object(s.c)(e,t),e.getDefaultOptions=function(){return Km},e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(ob(this.options))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return vb}}(vc);var yb={label:{},leaderLine:{style:{lineWidth:1,stroke:"#8c8c8c",lineDash:[4,2]}},total:{style:{fill:"rgba(0, 0, 0, 0.25)"}},interactions:[{type:"element-active"}],risingFill:"#f4664a",fallingFill:"#30bf78",waterfallStyle:{fill:"rgba(0, 0, 0, 0.25)"},yAxis:{grid:{line:{style:{lineDash:[4,2]}}}}};function mb(t,e,n,r){return function(t,e,n,r,i){var o,a=[];if(Object(c.ib)(t,(function(t,e){var i;Ua(Va.WARN,Object(c.M)(e[n]),"".concat(e[n]," is not a valid number"));var o=Object(c.S)(e[n])?null:e[n];return a.push(Object(s.a)(Object(s.a)({},e),((i={})[r]=[t,t+o],i))),t+o}),0),a.length&&i){var l=Object(c.s)(a,[[t.length-1],r,[1]]);a.push(((o={})[e]=i.label,o[n]=l,o[r]=[0,l],o))}return a}(t,e,n,"$$yField$$",r).map((function(e,n){var r;return Object(c.O)(e)?Object(s.a)(Object(s.a)({},e),((r={}).$$absoluteField$$=e.$$yField$$[1],r.$$diffField$$=e.$$yField$$[1]-e.$$yField$$[0],r.$$isTotal$$=n===t.length,r)):e}))}function bb(t){var e=t.options,n=e.locale,r=e.total,i=nc(n).get(["waterfall","total"]);return r&&"string"!=typeof r.label&&i&&(t.options.total.label=i),t}function xb(t){var e=t.chart,n=t.options,r=n.data,i=n.xField,o=n.yField,a=n.total,l=n.leaderLine,u=n.columnWidthRatio,h=n.waterfallStyle,d=n.risingFill,f=n.fallingFill,p=n.color,g=n.shape,v=n.customInfo;return e.data(mb(r,i,o,a)),lc(as({},t,{options:{xField:i,yField:"$$yField$$",seriesField:i,rawFields:[o,"$$diffField$$","$$isTotal$$","$$yField$$"],widthRatio:u,interval:{style:h,shape:g||"waterfall",color:p||function(t){return Object(c.s)(t,["$$isTotal$$"])?Object(c.s)(a,["style","fill"],""):Object(c.s)(t,["$$yField$$",1])-Object(c.s)(t,["$$yField$$",0])>0?d:f}}}})).ext.geometry.customInfo(Object(s.a)(Object(s.a)({},v),{leaderLine:l})),t}function Ob(t){var e,n,r=t.options,i=r.xAxis,o=r.yAxis,a=r.xField,s=r.yField,l=r.meta,u=as({},{alias:s},Object(c.s)(l,s));return cs(Us(((e={})[a]=i,e[s]=o,e.$$yField$$=o,e),as({},l,((n={}).$$yField$$=u,n.$$diffField$$=u,n.$$absoluteField$$=u,n))))(t)}function jb(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?(e.axis(a,!1),e.axis("$$yField$$",!1)):(e.axis(a,i),e.axis("$$yField$$",i)),t}function wb(t){var e=t.chart,n=t.options,r=n.legend,i=n.total,o=n.risingFill,a=n.fallingFill,s=nc(n.locale);if(!1===r)e.legend(!1);else{var l=[{name:s.get(["general","increase"]),value:"increase",marker:{symbol:"square",style:{r:5,fill:o}}},{name:s.get(["general","decrease"]),value:"decrease",marker:{symbol:"square",style:{r:5,fill:a}}}];i&&l.push({name:i.label||"",value:"total",marker:{symbol:"square",style:as({},{r:5},Object(c.s)(i,"style"))}}),e.legend(as({},{custom:!0,position:"top",items:l},r)),e.removeInteraction("legend-filter")}return t}function Cb(t){var e=t.chart,n=t.options,r=n.label,i=n.labelMode,o=n.xField,a=ls(e,"interval");if(r){var c=r.callback,l=Object(s.f)(r,["callback"]);a.label({fields:"absolute"===i?["$$absoluteField$$",o]:["$$diffField$$",o],callback:c,cfg:fs(l)})}else a.label(!1);return t}function _b(t){var e=t.chart,n=t.options,r=n.tooltip,i=n.xField,o=n.yField;if(!1!==r){e.tooltip(Object(s.a)({showCrosshairs:!1,showMarkers:!1,shared:!0,fields:[o]},r));var a=e.geometries[0];(null==r?void 0:r.formatter)?a.tooltip("".concat(i,"*").concat(o),r.formatter):a.tooltip(o)}else e.tooltip(!1);return t}function Mb(t){return cs(bb,Vs,xb,Ob,jb,wb,_b,Cb,Gs,Hs,Ys,qs())(t)}Vn("interval","waterfall",{draw:function(t,e){var n=t.customInfo,r=t.points,i=t.nextPoints,o=e.addGroup(),a=this.parsePath(function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(r){var i=0===n?"M":"L";e.push([i,r.x,r.y])}}var o=t[0];return e.push(["L",o.x,o.y]),e.push(["z"]),e}(r)),l=function(t){return as({},t.defaultStyle,t.style,{fill:t.color})}(t);o.addShape("path",{attrs:Object(s.a)(Object(s.a)({},l),{path:a})});var u=Object(c.s)(n,"leaderLine");if(u&&i){var h=[["M",r[2].x,r[2].y],["L",i[0].x,i[0].y]];r[2].y===i[1].y&&(h[1]=["L",i[1].x,i[1].y]),h=this.parsePath(h),o.addShape("path",{attrs:Object(s.a)({path:h},u.style||{})})}return o}});!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="waterfall",e}Object(s.c)(e,t),e.getDefaultOptions=function(){return yb},e.prototype.changeData=function(t){var e=this.options,n=e.xField,r=e.yField,i=e.total;this.updateOption({data:t}),this.chart.changeData(mb(t,n,r,i))},e.prototype.getSchemaAdaptor=function(){return Mb},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()}}(vc);var Sb=as({},vc.getDefaultOptions(),{timeInterval:2e3,legend:!1,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!1,fields:["text","value","color"],formatter:function(t){return{name:t.text,value:t.value}}},wordStyle:{fontFamily:"Verdana",fontWeight:"normal",padding:1,fontSize:[12,60],rotation:[0,90],rotationSteps:2,rotateRatio:.5}}),Eb={font:function(){return"serif"},padding:1,size:[500,500],spiral:"archimedean",timeInterval:3e3};function kb(t,e){return function(t,e){var n=function(){var t=[256,256],e=Pb,n=Bb,r=Tb,i=Lb,o=Db,a=zb,s=Math.random,c=[],l=1/0,u=Ab,h=Tb,d=$b,f={};function p(e,n,r){for(var i,o,c,l,u,h=n.x,d=n.y,f=Math.sqrt(t[0]*t[0]+t[1]*t[1]),p=a(t),g=s()<.5?1:-1,v=-g;(i=p(v+=g))&&(o=~~i[0],c=~~i[1],!(Math.min(Math.abs(o),Math.abs(c))>=f));)if(n.x=h+o,n.y=d+c,!(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>t[0]||n.y+n.y1>t[1]||r&&Rb(n,e,t[0])||r&&(u=r,!((l=n).x+l.x1>u[0].x&&l.x+l.x0<u[1].x&&l.y+l.y1>u[0].y&&l.y+l.y0<u[1].y)))){for(var y=n.sprite,m=n.width>>5,b=t[0]>>5,x=n.x-(m<<4),O=127&x,j=32-O,w=n.y1-n.y0,C=void 0,_=(n.y+n.y0)*b+(x>>5),M=0;M<w;M++){C=0;for(var S=0;S<=m;S++)e[_+S]|=C<<j|(S<m?(C=y[M*m+S])>>>O:0);_+=b}return delete n.sprite,!0}return!1}return f.start=function(){var a=t[0],g=t[1],v=function(t){t.width=t.height=1;var e=Math.sqrt(t.getContext("2d",{willReadFrequently:!0}).getImageData(0,0,1,1).data.length>>2);t.width=2048/e,t.height=2048/e;var n=t.getContext("2d",{willReadFrequently:!0});return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:e}}(d()),y=f.board?f.board:Wb((t[0]>>5)*t[1]),m=c.length,b=[],x=c.map((function(t,a,s){return t.text=u.call(this,t,a,s),t.font=e.call(this,t,a,s),t.style=h.call(this,t,a,s),t.weight=r.call(this,t,a,s),t.rotate=i.call(this,t,a,s),t.size=~~n.call(this,t,a,s),t.padding=o.call(this,t,a,s),t})).sort((function(t,e){return e.size-t.size})),O=-1,j=f.board?[{x:0,y:0},{x:a,y:g}]:null;return function(){var e=Date.now();for(;Date.now()-e<l&&++O<m;){var n=x[O];n.x=a*(s()+.5)>>1,n.y=g*(s()+.5)>>1,Fb(v,n,x,O),n.hasText&&p(y,n,j)&&(b.push(n),j?f.hasImage||Nb(j,n):j=[{x:n.x+n.x0,y:n.y+n.y0},{x:n.x+n.x1,y:n.y+n.y1}],n.x-=t[0]>>1,n.y-=t[1]>>1)}f._tags=b,f._bounds=j}(),f},f.createMask=function(e){var n=document.createElement("canvas"),r=t[0],i=t[1];if(r&&i){var o=r>>5,a=Wb((r>>5)*i);n.width=r,n.height=i;var s=n.getContext("2d");s.drawImage(e,0,0,e.width,e.height,0,0,r,i);for(var c=s.getImageData(0,0,r,i).data,l=0;l<i;l++)for(var u=0;u<r;u++){var h=o*l+(u>>5),d=l*r+u<<2,p=c[d]>=250&&c[d+1]>=250&&c[d+2]>=250?1<<31-u%32:0;a[h]|=p}f.board=a,f.hasImage=!0}},f.timeInterval=function(t){l=null==t?1/0:t},f.words=function(t){c=t},f.size=function(e){t=[+e[0],+e[1]]},f.font=function(t){e=Hb(t)},f.fontWeight=function(t){r=Hb(t)},f.rotate=function(t){i=Hb(t)},f.spiral=function(t){a=Yb[t]||t},f.fontSize=function(t){n=Hb(t)},f.padding=function(t){o=Hb(t)},f.random=function(t){s=Hb(t)},f}();["font","fontSize","fontWeight","padding","rotate","size","spiral","timeInterval","random"].forEach((function(t){Object(c.K)(e[t])||n[t](e[t])})),n.words(t),e.imageMask&&n.createMask(e.imageMask);var r=n.start()._tags;r.forEach((function(t){t.x+=e.size[0]/2,t.y+=e.size[1]/2}));var i=e.size,o=i[0],a=i[1];return r.push({text:"",value:0,x:0,y:0,opacity:0}),r.push({text:"",value:0,x:o,y:a,opacity:0}),r}(t,e=Object(c.b)({},Eb,e))}var Ib=Math.PI/180;function Ab(t){return t.text}function Pb(){return"serif"}function Tb(){return"normal"}function Bb(t){return t.value}function Lb(){return 90*~~(2*Math.random())}function Db(){return 1}function Fb(t,e,n,r){if(!e.sprite){var i=t.context,o=t.ratio;i.clearRect(0,0,2048/o,2048/o);var a=0,s=0,c=0,l=n.length;for(--r;++r<l;){e=n[r],i.save(),i.font=e.style+" "+e.weight+" "+~~((e.size+1)/o)+"px "+e.font;var u=i.measureText(e.text+"m").width*o,h=e.size<<1;if(e.rotate){var d=Math.sin(e.rotate*Ib),f=Math.cos(e.rotate*Ib),p=u*f,g=u*d,v=h*f,y=h*d;u=Math.max(Math.abs(p+y),Math.abs(p-y))+31>>5<<5,h=~~Math.max(Math.abs(g+v),Math.abs(g-v))}else u=u+31>>5<<5;if(h>c&&(c=h),a+u>=2048&&(a=0,s+=c,c=0),s+h>=2048)break;i.translate((a+(u>>1))/o,(s+(h>>1))/o),e.rotate&&i.rotate(e.rotate*Ib),i.fillText(e.text,0,0),e.padding&&(i.lineWidth=2*e.padding,i.strokeText(e.text,0,0)),i.restore(),e.width=u,e.height=h,e.xoff=a,e.yoff=s,e.x1=u>>1,e.y1=h>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,a+=u}for(var m=i.getImageData(0,0,2048/o,2048/o).data,b=[];--r>=0;)if((e=n[r]).hasText){for(var x=(u=e.width)>>5,O=(h=e.y1-e.y0,0);O<h*x;O++)b[O]=0;if(null==(a=e.xoff))return;s=e.yoff;for(var j=0,w=-1,C=0;C<h;C++){for(O=0;O<u;O++){var _=x*C+(O>>5),M=m[2048*(s+C)+(a+O)<<2]?1<<31-O%32:0;b[_]|=M,j|=M}j?w=C:(e.y0++,h--,C--,s++)}e.y1=e.y0+w,e.sprite=b.slice(0,(e.y1-e.y0)*x)}}}function Rb(t,e,n){n>>=5;for(var r,i=t.sprite,o=t.width>>5,a=t.x-(o<<4),s=127&a,c=32-s,l=t.y1-t.y0,u=(t.y+t.y0)*n+(a>>5),h=0;h<l;h++){r=0;for(var d=0;d<=o;d++)if((r<<c|(d<o?(r=i[h*o+d])>>>s:0))&e[u+d])return!0;u+=n}return!1}function Nb(t,e){var n=t[0],r=t[1];e.x+e.x0<n.x&&(n.x=e.x+e.x0),e.y+e.y0<n.y&&(n.y=e.y+e.y0),e.x+e.x1>r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}function zb(t){var e=t[0]/t[1];return function(t){return[e*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function Wb(t){for(var e=[],n=-1;++n<t;)e[n]=0;return e}function $b(){return document.createElement("canvas")}function Hb(t){return Object(c.I)(t)?t:function(){return t}}var Yb={archimedean:zb,rectangular:function(t){var e=4*t[0]/t[1],n=0,r=0;return function(t){var i=t<0?-1:1;switch(Math.sqrt(1+4*i*t)-i&3){case 0:n+=e;break;case 1:r+=4;break;case 2:n-=e;break;default:r-=4}return[n,r]}}};function Vb(t){var e=t.options,n=t.chart,r=n,i=r.width,o=r.height,a=r.padding,l=r.appendPadding,u=r.ele,h=e.data,d=e.imageMask,f=e.wordField,p=e.weightField,g=e.colorField,v=e.wordStyle,y=e.timeInterval,m=e.random,b=e.spiral,x=e.autoFit,O=void 0===x||x,j=e.placementStrategy;if(!h||!h.length)return[];var w,C=v.fontFamily,_=v.fontWeight,M=v.padding,S=v.fontSize,E=function(t,e){return t.map((function(t){return t[e]})).filter((function(t){return"number"==typeof t&&!isNaN(t)}))}(h,p),k=[(w=E,Math.min.apply(Math,w)),Ub(E)],I=h.map((function(t){return{text:t[f],value:t[p],color:t[g],datum:t}})),A={imageMask:d,font:C,fontSize:Kb(S,k),fontWeight:_,size:Gb({width:i,height:o,padding:a,appendPadding:l,autoFit:O,container:u}),padding:M,timeInterval:y,random:m,spiral:b,rotate:Xb(e)};if(Object(c.I)(j)){var P=I.map((function(t,e,r){return Object(s.a)(Object(s.a)(Object(s.a)({},t),{hasText:!!t.text,font:Hb(A.font)(t,e,r),weight:Hb(A.fontWeight)(t,e,r),rotate:Hb(A.rotate)(t,e,r),size:Hb(A.fontSize)(t,e,r),style:"normal"}),j.call(n,t,e,r))}));return P.push({text:"",value:0,x:0,y:0,opacity:0}),P.push({text:"",value:0,x:A.size[0],y:A.size[1],opacity:0}),P}return kb(I,A)}function Gb(t){var e=t.width,n=t.height,r=t.container,i=t.autoFit,o=t.padding,a=t.appendPadding;if(i){var s=ss(r);e=s.width,n=s.height}e=e||400,n=n||400;var c=function(t){var e=gs(t.padding),n=gs(t.appendPadding),r=e[0]+n[0],i=e[1]+n[1],o=e[2]+n[2],a=e[3]+n[3];return[r,i,o,a]}({padding:o,appendPadding:a}),l=c[0],u=c[1],h=c[2];return[e-(c[3]+u),n-(l+h)]}function Kb(t,e){if(Object(c.I)(t))return t;if(Object(c.C)(t)){var n=t[0],r=t[1];if(!e)return function(){return(r+n)/2};var i=e[0],o=e[1];return o===i?function(){return(r+n)/2}:function(t){var e=t.value;return(r-n)/(o-i)*(e-i)+n}}return function(){return t}}function Xb(t){var e=function(t){var e=t.wordStyle.rotationSteps;e<1&&(Ua(Va.WARN,!1,"The rotationSteps option must be greater than or equal to 1."),e=1);return{rotation:t.wordStyle.rotation,rotationSteps:e}}(t),n=e.rotation,r=e.rotationSteps;if(!Object(c.C)(n))return n;var i=n[0],o=n[1],a=1===r?0:(o-i)/(r-1);return function(){return o===i?o:Math.floor(Math.random()*r)*a}}function Ub(t){return Math.max.apply(Math,t)}function qb(t){var e=t.chart,n=t.options,r=n.colorField,i=n.color,o=Vb(t);return e.data(o),hc(as({},t,{options:{xField:"x",yField:"y",seriesField:r&&"color",rawFields:Object(c.I)(i)&&Object(s.g)(Object(s.g)([],Object(c.s)(n,"rawFields",[]),!0),["datum"],!1),point:{color:i,shape:"word-cloud"}}})).ext.geometry.label(!1),e.coordinate().reflect("y"),e.axis(!1),t}function Zb(t){return cs(Us({x:{nice:!1},y:{nice:!1}}))(t)}function Qb(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField;return!1===r?e.legend(!1):i&&e.legend("color",r),t}function Jb(t){cs(qb,Zb,$s,Qb,Hs,Ys,Vs,Gs)(t)}function tx(t){return{fontSize:t.data.size,text:t.data.text,textAlign:"center",fontFamily:t.data.font,fontWeight:t.data.weight,fill:t.color||t.defaultStyle.stroke,textBaseline:"alphabetic"}}Vn("point","word-cloud",{draw:function(t,e){var n=t.x,r=t.y,i=e.addShape("text",{attrs:Object(s.a)(Object(s.a)({},tx(t)),{x:n,y:r})}),o=t.data.rotate;return"number"==typeof o&&_r.rotate(i,o*Math.PI/180),i}});(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="word-cloud",e}Object(s.c)(e,t),e.getDefaultOptions=function(){return Sb},e.prototype.changeData=function(t){this.updateOption({data:t}),this.options.imageMask?this.render():this.chart.changeData(Vb({chart:this.chart,options:this.options}))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.render=function(){var e=this;return new Promise((function(n){var r=e.options.imageMask;if(!r)return t.prototype.render.call(e),void n();var i,o=function(r){e.options=Object(s.a)(Object(s.a)({},e.options),{imageMask:r||null}),t.prototype.render.call(e),n()};(i=r,new Promise((function(t,e){if(i instanceof HTMLImageElement)t(i);else{if(Object(c.Q)(i)){var n=new Image;return n.crossOrigin="anonymous",n.src=i,n.onload=function(){t(n)},void(n.onerror=function(){Ua(Va.ERROR,!1,"image %s load failed !!!",i),e()})}Ua(Va.WARN,void 0===i,"The type of imageMask option must be String or HTMLImageElement."),e()}}))).then(o).catch(o)}))},e.prototype.getSchemaAdaptor=function(){return Jb},e.prototype.triggerResize=function(){var e=this;this.chart.destroyed||(this.execAdaptor(),window.setTimeout((function(){t.prototype.triggerResize.call(e)})))}})(vc),function(t){function e(e,n,r,i){var o=t.call(this,e,as({},i,n))||this;return o.type="g2-plot",o.defaultOptions=i,o.adaptor=r,o}Object(s.c)(e,t),e.prototype.getDefaultOptions=function(){return this.defaultOptions},e.prototype.getSchemaAdaptor=function(){return this.adaptor}}(vc);n.d(e,"a",(function(){return Eu})),n.d(e,"b",(function(){return Tu})),n.d(e,"c",(function(){return fh})),n.d(e,"d",(function(){return mh})),n.d(e,"e",(function(){return Oh}));ec("en-US",{locale:"en-US",general:{increase:"Increase",decrease:"Decrease",root:"Root"},statistic:{total:"Total"},conversionTag:{label:"Rate"},legend:{},tooltip:{},slider:{},scrollbar:{},waterfall:{total:"Total"}}),ec("zh-CN",{locale:"zh-CN",general:{increase:"增加",decrease:"减少",root:"初始"},statistic:{total:"总计"},conversionTag:{label:"转化率"},legend:{},tooltip:{},slider:{},scrollbar:{},waterfall:{total:"总计"}})},580:function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"Base",(function(){return l})),n.d(r,"Circle",(function(){return u})),n.d(r,"Ellipse",(function(){return d})),n.d(r,"Image",(function(){return p})),n.d(r,"Line",(function(){return m})),n.d(r,"Marker",(function(){return D})),n.d(r,"Path",(function(){return K})),n.d(r,"Polygon",(function(){return U})),n.d(r,"Polyline",(function(){return q})),n.d(r,"Rect",(function(){return Q})),n.d(r,"Text",(function(){return J}));var i=n(25),o=n(549),a=n(553),s=n(576),c=n(593),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(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 c.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,c=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:c}},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),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(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,c=o.y,l=o.r,u=i/2,h=Object(a.b)(s,c,t,e);return r&&n?h<=l+u:r?h<=l:!!n&&(h>=l-u&&h<=l+u)},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}(l);function h(t,e,n,r){return t/(n*n)+e/(r*r)}var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(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,c=o.y,l=o.rx,u=o.ry,d=(t-s)*(t-s),f=(e-c)*(e-c);return r&&n?h(d,f,l+a,u+a)<=1:r?h(d,f,l,u)<=1:!!n&&(h(d,f,l-a,u-a)>=1&&h(d,f,l+a,u+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,c=i>o?o/i:1;t.save(),t.translate(n,r),t.scale(s,c),t.arc(0,0,a,0,2*Math.PI),t.restore(),t.closePath()}},e}(l);function f(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.c)(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)):f(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,c=e.sy,l=e.swidth,u=e.sheight,h=e.img;(h instanceof Image||f(h))&&(Object(a.i)(s)||Object(a.i)(c)||Object(a.i)(l)||Object(a.i)(u)?t.drawImage(h,n,r,i,o):t.drawImage(h,s,c,l,u,n,r,i,o))},e}(l),g=n(557);function v(t,e,n,r,i,o,a){var s=Math.min(t,n),c=Math.max(t,n),l=Math.min(e,r),u=Math.max(e,r),h=i/2;return o>=s-h&&o<=c+h&&a>=l-h&&a<=u+h&&g.c.pointToLine(t,e,n,r,o,a)<=i/2}var y=n(592),m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(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,c={dx:0,dy:0},l={dx:0,dy:0};a&&a.d&&(c=y.c(n,r,i,o,e.startArrow.d)),s&&s.d&&(l=y.c(n,r,i,o,e.endArrow.d)),t.beginPath(),t.moveTo(n+c.dx,r+c.dy),t.lineTo(i-l.dx,o-l.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}(l),b=n(545),x=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,O=/[^\s\,]+/gi;var j=function(t){var e=t||[];return Object(b.C)(e)?e:Object(b.Q)(e)?(e=e.match(x),Object(b.j)(e,(function(t,n){if((t=t.match(O))[0].length>1){var r=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=r}Object(b.j)(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0};n(548);var w="\t\n\v\f\r \u2028\u2029",C=new RegExp("([a-z])["+w+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+w+"]*,?["+w+"]*)+)","ig"),_=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+w+"]*,?["+w+"]*","ig");var M=/[a-z]/;function S(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function E(t){var e=function(t){if(!t)return null;if(Object(b.C)(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(_,(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}(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(M.test(i)||["V","H","T","S"].indexOf(i)>=0){n=!0;break}}if(!n)return e;var o=[],a=0,s=0,c=0,l=0,u=0,h=e[0];"M"!==h[0]&&"m"!==h[0]||(c=a=+h[1],l=s=+h[2],u++,o[0]=["M",a,s]);r=u;for(var d=e.length;r<d;r++){var f=e[r],p=o[r-1],g=[],v=(i=f[0]).toUpperCase();if(i!==v)switch(g[0]=v,v){case"A":g[1]=f[1],g[2]=f[2],g[3]=f[3],g[4]=f[4],g[5]=f[5],g[6]=+f[6]+a,g[7]=+f[7]+s;break;case"V":g[1]=+f[1]+s;break;case"H":g[1]=+f[1]+a;break;case"M":c=+f[1]+a,l=+f[2]+s,g[1]=c,g[2]=l;break;default:for(var y=1,m=f.length;y<m;y++)g[y]=+f[y]+(y%2?a:s)}else g=e[r];switch(v){case"Z":a=+c,s=+l;break;case"H":g=["L",a=g[1],s];break;case"V":g=["L",a,s=g[1]];break;case"T":a=g[1],s=g[2];var x=S([p[1],p[2]],[p[3],p[4]]);g=["Q",x[0],x[1],a,s];break;case"S":a=g[g.length-2],s=g[g.length-1];var O=p.length,j=S([p[O-4],p[O-3]],[p[O-2],p[O-1]]);g=["C",j[0],j[1],g[1],g[2],a,s];break;case"M":c=g[g.length-2],l=g[g.length-1];break;default:a=g[g.length-2],s=g[g.length-1]}o.push(g)}return o}Math.PI;function k(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function I(t,e){return k(t)*k(e)?(t[0]*e[0]+t[1]*e[1])/(k(t)*k(e)):1}function A(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(I(t,e))}function P(t,e){return t[0]===e[0]&&t[1]===e[1]}function T(t,e){var n=e[1],r=e[2],i=Object(b.eb)(Object(b.sb)(e[3]),2*Math.PI),o=e[4],a=e[5],s=t[0],c=t[1],l=e[6],u=e[7],h=Math.cos(i)*(s-l)/2+Math.sin(i)*(c-u)/2,d=-1*Math.sin(i)*(s-l)/2+Math.cos(i)*(c-u)/2,f=h*h/(n*n)+d*d/(r*r);f>1&&(n*=Math.sqrt(f),r*=Math.sqrt(f));var p=n*n*(d*d)+r*r*(h*h),g=p?Math.sqrt((n*n*(r*r)-p)/p):1;o===a&&(g*=-1),isNaN(g)&&(g=0);var v=r?g*n*d/r:0,y=n?g*-r*h/n:0,m=(s+l)/2+Math.cos(i)*v-Math.sin(i)*y,x=(c+u)/2+Math.sin(i)*v+Math.cos(i)*y,O=[(h-v)/n,(d-y)/r],j=[(-1*h-v)/n,(-1*d-y)/r],w=A([1,0],O),C=A(O,j);return I(O,j)<=-1&&(C=Math.PI),I(O,j)>=1&&(C=0),0===a&&C>0&&(C-=2*Math.PI),1===a&&C<0&&(C+=2*Math.PI),{cx:m,cy:x,rx:P(t,[l,u])?0:n,ry:P(t,[l,u])?0:r,startAngle:w,endAngle:w+C,xRotation:i,arcFlag:o,sweepFlag:a}}function B(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}var L={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"]]}},D=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(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.K)(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",c=this._getR(r);if(Object(a.h)(s))n=E(n=(t=s)(i,o,c));else{if(!(t=e.Symbols[s]))return console.warn(s+" marker is not supported."),null;n=t(i,o,c)}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=L,e}(l);function F(t,e,n){var r=Object(o.getOffScreenContext)();return t.createPath(r),r.isPointInPath(e,n)}function R(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function N(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 z(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(N(a,s,[e,n]))return!0;R(a[1]-n)>0!=R(s[1]-n)>0&&R(e-(n-a[1])*(a[0]-s[0])/(a[1]-s[1])-a[0])<0&&(r=!r)}return r}var W=n(551),$=n(609);function H(t,e,n,r,i,o,s,c){var l=(Math.atan2(c-e,s-t)+2*Math.PI)%(2*Math.PI);if(l<r||l>i)return!1;var u={x:t+n*Math.cos(l),y:e+n*Math.sin(l)};return Object(a.b)(u.x,u.y,s,c)<=o/2}var Y=W.a.transform;var V=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,c=0;c<t.length;c++){var l=t[c],u=l.currentPoint,h=l.params,d=l.prePoint,f=l.box;if(!f||Object(a.e)(f.x-s,f.y-s,f.width+e,f.height+e,n,r)){switch(l.command){case"L":case"Z":o=v(d[0],d[1],u[0],u[1],e,n,r);break;case"Q":o=g.e.pointDistance(d[0],d[1],h[1],h[2],h[3],h[4],n,r)<=e/2;break;case"C":o=g.b.pointDistance(d[0],d[1],h[1],h[2],h[3],h[4],h[5],h[6],n,r,i)<=e/2;break;case"A":var p=l.arcParams,y=p.cx,m=p.cy,b=p.rx,x=p.ry,O=p.startAngle,j=p.endAngle,w=p.xRotation,C=[n,r,1],_=b>x?b:x,M=Y(null,[["t",-y,-m],["r",-w],["s",1/(b>x?1:b/x),1/(b>x?x/b:1)]]);$.transformMat3(C,C,M),o=H(0,0,_,O,j,e,C[0],C[1])}if(o)break}}return o}},o.PathUtil);function G(t,e,n){for(var r=!1,i=0;i<t.length;i++){if(r=z(t[i],e,n))break}return r}var K=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(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=E(t);var e=V.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=function(t){for(var e=[],n=null,r=null,i=null,o=0,a=(t=j(t)).length,s=0;s<a;s++){var c=t[s];r=t[s+1];var l=c[0],u={command:l,prePoint:n,params:c,startTangent:null,endTangent:null};switch(l){case"M":i=[c[1],c[2]],o=s;break;case"A":var h=T(n,c);u.arcParams=h}if("Z"===l)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)),u.currentPoint=n,e[o]&&P(n,e[o].currentPoint)&&(e[o].prePoint=u.prePoint);var f=r?[r[r.length-2],r[r.length-1]]:null;u.nextPoint=f;var p=u.prePoint;if(["L","H","V"].includes(l))u.startTangent=[p[0]-n[0],p[1]-n[1]],u.endTangent=[n[0]-p[0],n[1]-p[1]];else if("Q"===l){var g=[c[1],c[2]];u.startTangent=[p[0]-g[0],p[1]-g[1]],u.endTangent=[n[0]-g[0],n[1]-g[1]]}else if("T"===l){g=B((m=e[s-1]).currentPoint,p);"Q"===m.command?(u.command="Q",u.startTangent=[p[0]-g[0],p[1]-g[1]],u.endTangent=[n[0]-g[0],n[1]-g[1]]):(u.command="TL",u.startTangent=[p[0]-n[0],p[1]-n[1]],u.endTangent=[n[0]-p[0],n[1]-p[1]])}else if("C"===l){var v=[c[1],c[2]],y=[c[3],c[4]];u.startTangent=[p[0]-v[0],p[1]-v[1]],u.endTangent=[n[0]-y[0],n[1]-y[1]],0===u.startTangent[0]&&0===u.startTangent[1]&&(u.startTangent=[v[0]-y[0],v[1]-y[1]]),0===u.endTangent[0]&&0===u.endTangent[1]&&(u.endTangent=[y[0]-v[0],y[1]-v[1]])}else if("S"===l){var m;v=B((m=e[s-1]).currentPoint,p),y=[c[1],c[2]];"C"===m.command?(u.command="C",u.startTangent=[p[0]-v[0],p[1]-v[1]],u.endTangent=[n[0]-y[0],n[1]-y[1]]):(u.command="SQ",u.startTangent=[p[0]-y[0],p[1]-y[1]],u.endTangent=[n[0]-y[0],n[1]-y[1]])}else if("A"===l){var b=.001,x=u.arcParams||{},O=x.cx,w=void 0===O?0:O,C=x.cy,_=void 0===C?0:C,M=x.rx,S=void 0===M?0:M,E=x.ry,k=void 0===E?0:E,I=x.sweepFlag,A=void 0===I?0:I,L=x.startAngle,D=void 0===L?0:L,F=x.endAngle,R=void 0===F?0:F;0===A&&(b*=-1);var N=S*Math.cos(D-b)+w,z=k*Math.sin(D-b)+_;u.startTangent=[N-i[0],z-i[1]];var W=S*Math.cos(D+R+b)+w,$=k*Math.sin(D+R-b)+_;u.endTangent=[p[0]-W,p[1]-$]}e.push(u)}return e}(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 c=this.getTotalLength();s=V.isPointInStroke(o,i,t,e,c)}if(!s&&r)if(a)s=F(this,t,e);else{var l=this.attr("path"),u=V.extractPolygons(l);s=G(u.polygons,t,e)||G(u.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.K)(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.j)(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.K)(o)||Object(b.K)(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",V.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,n,r,i=0,o=0,a=[],s=this.get("curve");s&&(Object(b.j)(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.j)(s,(function(c,l){n=s[l+1],r=c.length,n&&((t=[])[0]=o/i,e=g.b.length(c[r-2],c[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}(l);function X(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],c=t[o-1];if(v(s[0],s[1],c[0],c[1],e,n,r))return!0}return!1}var U=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(e,t),e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr().points,a=!1;return n&&(a=X(o,i,t,e,!0)),!a&&r&&(a=z(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}(l),q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(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],c=n[o-1][0],l=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],c,l)},e.prototype.isFill=function(){return!1},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){return!(!n||!i)&&X(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],c=n[0][1],l=n[o-1][0],u=n[o-1][1];if(r&&r.d)s+=(a=y.c(s,c,n[1][0],n[1][1],r.d)).dx,c+=a.dy;if(i&&i.d)l-=(a=y.c(n[o-2][0],n[o-2][1],l,u,i.d)).dx,u-=a.dy;t.beginPath(),t.moveTo(s,c);for(var h=0;h<o-1;h++){var d=n[h];t.lineTo(d[0],d[1])}t.lineTo(l,u)}},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.K)(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.j)(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.j)(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}(l),Z=n(648);var Q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(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,c=o.y,l=o.width,u=o.height,h=o.radius;if(h){var d=!1;return n&&(d=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)||H(t+n-i,e+i,i,1.5*Math.PI,2*Math.PI,o,a,s)||H(t+n-i,e+r-i,i,0,.5*Math.PI,o,a,s)||H(t+i,e+r-i,i,.5*Math.PI,Math.PI,o,a,s)||H(t+i,e+i,i,Math.PI,1.5*Math.PI,o,a,s)}(s,c,l,u,h,i,t,e)),!d&&r&&(d=F(this,t,e)),d}var f=i/2;return r&&n?Object(a.e)(s-f,c-f,l+f,u+f,t,e):r?Object(a.e)(s,c,l,u,t,e):n?function(t,e,n,r,i,o,s){var c=i/2;return Object(a.e)(t-c,e-c,n,i,o,s)||Object(a.e)(t+n-c,e-c,i,r,o,s)||Object(a.e)(t+c,e+r-c,n,i,o,s)||Object(a.e)(t-c,e+c,i,r,o,s)}(s,c,l,u,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(Z.a)(a),c=s[0],l=s[1],u=s[2],h=s[3];t.moveTo(n+c,r),t.lineTo(n+i-l,r),0!==l&&t.arc(n+i-l,r+l,l,-Math.PI/2,0),t.lineTo(n+i,r+o-u),0!==u&&t.arc(n+i-u,r+o-u,u,0,Math.PI/2),t.lineTo(n+h,r+o),0!==h&&t.arc(n+h,r+o-h,h,Math.PI/2,Math.PI),t.lineTo(n,r+c),0!==c&&t.arc(n+c,r+c,c,Math.PI,1.5*Math.PI),t.closePath()}},e}(l),J=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.c)(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,c=i.x,l=i.y,u=1*i.fontSize,h=this._getSpaceingY(),d=Object(o.getTextHeight)(i.text,i.fontSize,i.lineHeight);Object(a.c)(e,(function(e,i){r=l+i*(h+u)-d+u,"middle"===s&&(r+=d-u-(d-u)/2),"top"===s&&(r+=d-u),Object(a.i)(e)||(n?t.fillText(e,c,r):t.strokeText(e,c,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 s=n.text;Object(a.i)(s)||(e?t.fillText(s,r,i):t.strokeText(s,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}(l);n.d(e,"Base",(function(){return l})),n.d(e,"Circle",(function(){return u})),n.d(e,"Ellipse",(function(){return d})),n.d(e,"Image",(function(){return p})),n.d(e,"Line",(function(){return m})),n.d(e,"Marker",(function(){return D})),n.d(e,"Path",(function(){return K})),n.d(e,"Polygon",(function(){return U})),n.d(e,"Polyline",(function(){return q})),n.d(e,"Rect",(function(){return Q})),n.d(e,"Text",(function(){return J}))},581:function(t,e,n){"use strict";var r=n(1),i=n(545),o=n(56);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)}var s,c=function(){return(c=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)},l=c({},o),u=l.version,h=l.render;l.unmountComponentAtNode;try{Number((u||"").split(".")[0])>=18&&(s=l.createRoot)}catch(t){}function d(t){var e=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;e&&"object"===a(e)&&(e.usingClientEntryPoint=t)}var f="__rc_react_root__";function p(t,e){s?function(t,e){d(!0);var n=e[f]||s(e);d(!1),n.render(t),e[f]=n}(t,e):function(t,e){h(t,e)}(t,e)}var g=new Map,v=function(t,e,n){var r=document.createElement("div");return"tooltip"===e&&(r.setAttribute("data-uuid",n),g.has(n)?r=g.get(n):g.set(n,r),r.className="g2-tooltip"),p(t,r),r};function y(t){return(y="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 m=function(t,e){return{}.toString.call(t)==="[object ".concat(e,"]")},b=function(t){return t&&"object"===y(t)?(Array.isArray(t)?e=t.map((function(t){return b(t)})):(e={},Object.keys(t).forEach((function(n){return e[n]=b(t[n])}))),e):t;var e},x=function(t,e){for(var n=t,r=0;r<e.length;r+=1){if(!(null==n?void 0:n[e[r]])){n=void 0;break}n=n[e[r]]}return n};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)}n.d(e,"a",(function(){return C}));var j=function(){return(j=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)},w=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};function C(t,e){var n=Object(r.useRef)(),o=Object(r.useRef)(),a=Object(r.useRef)(null),s=e.onReady,c=e.onEvent,l=function(t,e,n,r){var i=x(t,e);!function(t,e,n){if(!t)return t;var r=t;e.forEach((function(t,i){i<e.length-1?r=r[t]:r[t]=n}))}(t,e,(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var o=m(i,"Function")?i.apply(void 0,t):i;return m(o,"String")||m(o,"Number")||m(o,"HTMLDivElement")?o:v(o,n,r)}))},u=function(){var t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}));x(e,["statistic","content","customHtml"])&&l(e,["statistic","content","customHtml"]),x(e,["statistic","title","customHtml"])&&l(e,["statistic","title","customHtml"]),"object"===O(e.tooltip)&&(x(e,["tooltip","container"])&&l(e,["tooltip","container"],"tooltip",t),x(e,["tooltip","customContent"])&&l(e,["tooltip","customContent"],"tooltip",t))};return Object(r.useEffect)((function(){if(n.current&&!Object(i.H)(o.current,e)){var t=!1;if(o.current){var r=o.current,a=(r.data,r.value,r.percent,w(r,["data","value","percent"])),s=(e.data,e.value,e.percent,w(e,["data","value","percent"]));t=Object(i.H)(a,s)}if(o.current=b(e),t&&"Mix"!==Object(i.s)(e,"chartType")){var c="data",l=Object.keys(e);["percent"].forEach((function(t){l.includes(t)&&(c=t)})),n.current.changeData((null==e?void 0:e[c])||[]),n.current.render()}else u(),n.current.update(e)}}),[e]),Object(r.useEffect)((function(){if(!a.current)return function(){return null};o.current||(o.current=b(e)),u();var r=new t(a.current,j({},e));r.toDataURL=function(t,e){return function(t,e){var r;return void 0===t&&(t="image/png"),null===(r=n.current)||void 0===r?void 0:r.chart.canvas.cfg.el.toDataURL(t,e)}(t,e)},r.downloadImage=function(t,e,r){return function(t,e,r){var i;void 0===t&&(t="download"),void 0===e&&(e="image/png");var o=t;-1===t.indexOf(".")&&(o="".concat(t,".").concat(e.split("/")[1]));var a=null===(i=n.current)||void 0===i?void 0:i.chart.canvas.cfg.el.toDataURL(e,r),s=document.createElement("a");return s.href=a,s.download=o,document.body.appendChild(s),s.click(),document.body.removeChild(s),s=null,o}(t,e,r)},r.render(),n.current=function(t){if(!t)return t;var e={};for(var n in t)e[n]=t[n];return e}(r),s&&s(r);var i=function(t){c&&c(r,t)};return r.on("*",i),function(){n.current&&(n.current.destroy(),n.current.off("*",i),n.current=void 0)}}),[]),{chart:n,container:a}}},583:function(t,e,n){"use strict";var r=n(1),i=n.n(r),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)};var a=function(t){var e=t.animate,n=t.backgroundColor,i=t.backgroundOpacity,a=t.baseUrl,s=t.children,c=t.foregroundColor,l=t.foregroundOpacity,u=t.gradientRatio,h=t.uniqueKey,d=t.interval,f=t.rtl,p=t.speed,g=t.style,v=t.title,y=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}(t,["animate","backgroundColor","backgroundOpacity","baseUrl","children","foregroundColor","foregroundOpacity","gradientRatio","uniqueKey","interval","rtl","speed","style","title"]),m=h||Math.random().toString(36).substring(6),b=m+"-diff",x=m+"-animated-diff",O=m+"-aria",j=f?{transform:"scaleX(-1)"}:null,w="0; "+d+"; 1",C=p+"s";return Object(r.createElement)("svg",o({"aria-labelledby":O,role:"img",style:o(o({},g),j)},y),v?Object(r.createElement)("title",{id:O},v):null,Object(r.createElement)("rect",{role:"presentation",x:"0",y:"0",width:"100%",height:"100%",clipPath:"url("+a+"#"+b+")",style:{fill:"url("+a+"#"+x+")"}}),Object(r.createElement)("defs",{role:"presentation"},Object(r.createElement)("clipPath",{id:b},s),Object(r.createElement)("linearGradient",{id:x},Object(r.createElement)("stop",{offset:"0%",stopColor:n,stopOpacity:i},e&&Object(r.createElement)("animate",{attributeName:"offset",values:-u+"; "+-u+"; 1",keyTimes:w,dur:C,repeatCount:"indefinite"})),Object(r.createElement)("stop",{offset:"50%",stopColor:c,stopOpacity:l},e&&Object(r.createElement)("animate",{attributeName:"offset",values:-u/2+"; "+-u/2+"; "+(1+u/2),keyTimes:w,dur:C,repeatCount:"indefinite"})),Object(r.createElement)("stop",{offset:"100%",stopColor:n,stopOpacity:i},e&&Object(r.createElement)("animate",{attributeName:"offset",values:"0; 0; "+(1+u),keyTimes:w,dur:C,repeatCount:"indefinite"})))))};a.defaultProps={animate:!0,backgroundColor:"#f5f6f7",backgroundOpacity:1,baseUrl:"",foregroundColor:"#eee",foregroundOpacity:1,gradientRatio:2,id:null,interval:.25,rtl:!1,speed:1.2,style:{},title:"Loading..."};var s=function(t){return t.children?Object(r.createElement)(a,o({},t)):Object(r.createElement)(c,o({},t))},c=function(t){return Object(r.createElement)(s,o({viewBox:"0 0 476 124"},t),Object(r.createElement)("rect",{x:"48",y:"8",width:"88",height:"6",rx:"3"}),Object(r.createElement)("rect",{x:"48",y:"26",width:"52",height:"6",rx:"3"}),Object(r.createElement)("rect",{x:"0",y:"56",width:"410",height:"6",rx:"3"}),Object(r.createElement)("rect",{x:"0",y:"72",width:"380",height:"6",rx:"3"}),Object(r.createElement)("rect",{x:"0",y:"88",width:"178",height:"6",rx:"3"}),Object(r.createElement)("circle",{cx:"20",cy:"20",r:"20"}))},l=s;e.a=function(t){var e=t.loadingTemplate,n=t.theme,r=void 0===n?"light":n;return i.a.createElement("div",{className:"charts-loading-container",style:{position:"absolute",width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",left:0,top:0,zIndex:99,backgroundColor:"dark"===r?"rgb(20, 20, 20)":"rgb(255, 255, 255)"}},e||i.a.createElement(l,{viewBox:"0 0 400 180",width:200,height:90,speed:1,backgroundColor:"dark"===r?"#262626":"#D9D9D9"},i.a.createElement("rect",{x:"20",y:"5",rx:"0",ry:"0",width:"1",height:"170"}),i.a.createElement("rect",{x:"20",y:"175",rx:"0",ry:"0",width:"360",height:"1"}),i.a.createElement("rect",{x:"40",y:"75",rx:"0",ry:"0",width:"35",height:"100"}),i.a.createElement("rect",{x:"80",y:"125",rx:"0",ry:"0",width:"35",height:"50"}),i.a.createElement("rect",{x:"120",y:"105",rx:"0",ry:"0",width:"35",height:"70"}),i.a.createElement("rect",{x:"160",y:"35",rx:"0",ry:"0",width:"35",height:"140"}),i.a.createElement("rect",{x:"200",y:"55",rx:"0",ry:"0",width:"35",height:"120"}),i.a.createElement("rect",{x:"240",y:"15",rx:"0",ry:"0",width:"35",height:"160"}),i.a.createElement("rect",{x:"280",y:"135",rx:"0",ry:"0",width:"35",height:"40"}),i.a.createElement("rect",{x:"320",y:"85",rx:"0",ry:"0",width:"35",height:"90"})))}},584:function(t,e,n){"use strict";var r=n(545);function i(t,e){return t.charCodeAt(e)>0&&t.charCodeAt(e)<128?1:2}n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return a}));function o(t){if(t.length>400)return function(t){for(var e=t.map((function(t){var e=t.attr("text");return Object(r.K)(e)?"":""+e})),n=0,i=0,o=0;o<e.length;o+=1){for(var a=0,s=0;s<=e[o].length;s+=1){var c=e[o].charCodeAt(s);a+=c>=19968&&c<=40869?2:1}a>n&&(n=a,i=o)}return t[i].getBBox().width}(t);var e=0;return Object(r.j)(t,(function(t){var n=t.getBBox().width;e<n&&(e=n)})),e}function a(t,e,n,o){var a;void 0===o&&(o="tail");var s=null!==(a=e.attr("text"))&&void 0!==a?a:"";if("tail"===o){var c=Object(r.hb)(e.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),l=Object(r.t)(s,n,c,"…");return s!==l?(e.attr("text",l),e.set("tip",s),!0):(e.set("tip",null),!1)}var u=function(t,e){var n=e.getCanvasBBox();return t?n.width:n.height}(t,e),h=function(t){for(var e=0,n=0;n<t.length;n++)e+=i(t,n);return e}(s),d=!1;if(n<u){var f=Math.floor(n/u*h)-2,p=void 0;(p=f>=0?function(t,e,n){void 0===n&&(n="tail");var r=t.length,o="";if("tail"===n){for(var a=0,s=0;a<e;){if(!(a+i(t,s)<=e))break;o+=t[s],a+=i(t,s),s++}o+="…"}else if("head"===n){for(a=0,s=r-1;a<e;){if(!(a+i(t,s)<=e))break;o+=t[s],a+=i(t,s),s--}o="…"+o}else{for(var c="",l="",u=(a=0,0),h=r-1;a<e;){var d=i(t,u),f=!1;d+a<=e&&(c+=t[u],u++,a+=d,f=!0);var p=i(t,h);if(p+a<=e&&(l=t[h]+l,a+=p,h--,f=!0),!f)break}o=c+"…"+l}return o}(s,f,o):"…")&&(e.attr("text",p),d=!0)}return d?e.set("tip",s):e.set("tip",null),d}},587: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(562),i=n(610);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()}},588:function(t,e){},589:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o}));
|
|
2
2
|
/*! *****************************************************************************
|
|
3
3
|
Copyright (c) Microsoft Corporation.
|
|
4
4
|
|